draw.io is a JavaScript, client-side editor for general diagramming.
31.4.4 release
David Benson037c96de0fb6
diff --git a/ChangeLog b/ChangeLogindex 9022a1748..502fdded9 100644--- a/ChangeLog+++ b/ChangeLog@@ -1,3 +1,33 @@+06-SEP-2026: 31.4.4++- Adds the Atlassian 2025 shape set core: glyph stencils and tile wrapper+- Adds the Atlassian sidebar palettes, agent marks and connection points+- Reworks glyph scaling in the new Atlassian library (square-canonical, per-icon hex calibration, proportional tile switching) and removes unused logo images [jgraph/drawio#5730]+- Improves logo lockups in the new Atlassian shape library [jgraph/drawio#5730]+- Deduplicates the generated Atlassian sidebar module with shared style-prefix variables [jgraph/drawio#5730]+- Deduplicates search tags and refreshes stale comments in the new Atlassian library [jgraph/drawio#5730]+- Moves per-icon data from styles onto the Atlassian stencil attributes [jgraph/drawio#5730]+- Hardens the Atlassian wrapper against degenerate box data [jgraph/drawio#5730]+- Guards the Atlassian wrapper's lockup layout and tile aspect against NaN [jgraph/drawio#5730]+- Hides the PlantUML and Mermaid round-trip identity attributes in tooltips+- Strips the characters the URL parser drops before the font scheme check [GHSA-fjgc-8xgj-rvh4]++05-SEP-2026: 31.4.3++- Updates stable channel to 31.4.1+- Fixes SVG attachment images rendering blank in Confluence diagrams by using the correct data URI MIME type [DID-20051]+- Retries transient network failures for GETs in the Confluence Cloud page IDs import and logs real failure totals [DID-19637]+- Rejects IPv6 transition prefixes in the server SSRF guard [GHSA-xj4f-x55f-699c]+- Stops stale image callbacks drawing ghost copies of Confluence attachment images after fit-on-load [jgraph/drawio-dev#658]+- Fixes local print preview head CSS: closes the malformed shadow-suppression rule that swallowed the MathJax print rule and configured font CSS, writes app CSS into the style element unescaped with the style end tag neutralized, rewrites Google font URLs on pages 2+ and suppresses the unnamed @page rule when named page CSS is in use+- Removes unused code+- Derives export to PDF via print and server-side image export from EXPORT_URL instead of hand-set flags, treats null, empty and the public build placeholder as no export service and fails the canvas-unavailable fallbacks instead of posting to a dead URL [jgraph/drawio-dev#660]+- Adds reindexInst3 resource for the Jira re-indexing page note that indexing pauses while the computer is asleep or offline [jgraph/drawio-jira-forge#1]+- Gives the Google API loader the page's CSP nonce in the Drive editor+- Update vendored drawio-plantuml bundle to commit 0fdd6ad+- Updates plantuml build+- Restricts font sources to http(s), data: and configured URLs [GHSA-fjgc-8xgj-rvh4]+31-AUG-2026: 31.4.2- Keeps the CryptoJS build tooling out of the public repo [jgraph/drawio-dev#640]diff --git a/VERSION b/VERSIONindex be5d2af94..91e08d98a 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-31.4.2\ No newline at end of file+31.4.4\ No newline at end of filediff --git a/etc/build/build.xml b/etc/build/build.xmlindex 5599bfe61..89069b14e 100644--- a/etc/build/build.xml+++ b/etc/build/build.xml@@ -186,6 +186,7 @@ OUTPUT FILES (in src/main/webapp/js/):<file name="Sidebar-ArchiMate4.js" /><file name="Sidebar-Arrows2.js" /><file name="Sidebar-Atlassian.js" />+ <file name="Sidebar-Atlassian2.js" /><file name="Sidebar-AWS.js" /><file name="Sidebar-AWS3.js" /><file name="Sidebar-AWS3D.js" />diff --git a/src/main/server/java/com/mxgraph/online/Utils.java b/src/main/server/java/com/mxgraph/online/Utils.javaindex 28e4a0f77..72c3c02eb 100644--- a/src/main/server/java/com/mxgraph/online/Utils.java+++ b/src/main/server/java/com/mxgraph/online/Utils.java@@ -766,6 +766,82 @@ public class Utilsreturn false;}+ /**+ * Returns true if the address lies in one of the IPv6 transition prefixes+ * that embed an IPv4 address: 6to4 (2002::/16, RFC 3056, deprecated by+ * RFC 7526), Teredo (2001::/32, RFC 4380), the NAT64 Well-Known Prefix+ * (64:ff9b::/96, RFC 6052) and its local-use companion (64:ff9b:1::/48,+ * RFC 8215), the deprecated IPv4-compatible form (::/96) and the+ * IPv4-mapped form (::ffff:0:0/96, normally already unwrapped to an+ * Inet4Address by the JDK, kept for completeness).+ *+ * The private-range checks in {@link #validatedAddress(String)} only see+ * the outer IPv6 address, so e.g. 64:ff9b::a9fe:a9fe passes them while a+ * NAT64 translator on the server's network would turn it into a connection+ * to 169.254.169.254. Rather than extracting and re-checking the embedded+ * IPv4 (each mechanism encodes it differently and Teredo inverts it), the+ * whole prefix is rejected: none of these is ever a legitimate host for a+ * resource a diagram fetches. A network-specific NAT64 prefix (RFC 6052+ * section 2.2) cannot be recognised here and remains the translator's+ * job - RFC 6052 section 3.1 requires it to drop non-global embedded+ * addresses.+ *+ * @param address the resolved address to test+ * @return true if the address is in an IPv4-embedding transition prefix+ */+ private static boolean isIPv6TransitionAddress(InetAddress address)+ {+ if (address instanceof Inet6Address)+ {+ byte[] b = address.getAddress();++ if (b.length != 16)+ {+ return false;+ }++ // 6to4 2002::/16+ if ((b[0] & 0xFF) == 0x20 && (b[1] & 0xFF) == 0x02)+ {+ return true;+ }++ // Teredo 2001:0000::/32+ if ((b[0] & 0xFF) == 0x20 && (b[1] & 0xFF) == 0x01+ && b[2] == 0 && b[3] == 0)+ {+ return true;+ }++ // NAT64 well-known prefix 64:ff9b::/96 and local-use 64:ff9b:1::/48+ if (b[0] == 0 && (b[1] & 0xFF) == 0x64+ && (b[2] & 0xFF) == 0xFF && (b[3] & 0xFF) == 0x9B)+ {+ boolean wellKnown = true;++ for (int i = 4; i < 12 && wellKnown; i++)+ {+ wellKnown = (b[i] == 0);+ }++ return wellKnown || (b[4] == 0 && (b[5] & 0xFF) == 0x01);+ }++ // IPv4-compatible ::/96 and IPv4-mapped ::ffff:0:0/96+ boolean leadingZero = true;++ for (int i = 0; i < 10 && leadingZero; i++)+ {+ leadingZero = (b[i] == 0);+ }++ return leadingZero && ((b[10] == 0 && b[11] == 0)+ || ((b[10] & 0xFF) == 0xFF && (b[11] & 0xFF) == 0xFF));+ }++ return false;+ }+/*** Resolves and validates the host of the given URL exactly once and returns* the resolved address, or null if the URL is not permitted (malformed,@@ -837,6 +913,7 @@ public class Utils|| hostAddress.startsWith("198.19.")|| isSharedCgnatIPv4(address)|| isUniqueLocalIPv6(address)+ || isIPv6TransitionAddress(address)|| host.endsWith(".arpa");return ((protocol.equals("http") || protocol.equals("https"))diff --git a/src/main/webapp/images/sidebar-atlassian2.png b/src/main/webapp/images/sidebar-atlassian2.pngnew file mode 100644index 000000000..6a63ac3e4Binary files /dev/null and b/src/main/webapp/images/sidebar-atlassian2.png differdiff --git a/src/main/webapp/js/PreConfig.js b/src/main/webapp/js/PreConfig.jsindex 0f7de649e..6ccc3ca46 100644--- a/src/main/webapp/js/PreConfig.js+++ b/src/main/webapp/js/PreConfig.js@@ -4,7 +4,7 @@*/// Overrides of global vars need to be pre-loadedwindow.DRAWIO_PUBLIC_BUILD = true;-window.EXPORT_URL = 'REPLACE_WITH_YOUR_IMAGE_SERVER';+window.EXPORT_URL = null; // Replace with the URL of your export server to enable server-side PDF and image export, e.g. https://www.example.com/export. With null, export to PDF uses the print dialogwindow.DRAWIO_BASE_URL = null; // Replace with path to base of deployment, e.g. https://www.example.com/folderwindow.DRAWIO_VIEWER_URL = null; // Replace your path to the viewer js, e.g. https://www.example.com/js/viewer.min.jswindow.DRAWIO_LIGHTBOX_URL = null; // Replace with your lightbox URL, eg. https://www.example.comdiff --git a/src/main/webapp/js/app.min.js b/src/main/webapp/js/app.min.jsindex b58bead0f..82a89c9f4 100644--- a/src/main/webapp/js/app.min.js+++ b/src/main/webapp/js/app.min.js@@ -53,7 +53,7 @@ var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456a.charCodeAt(c+1);56320<=e&&57343>=e&&(d=((d&1023)<<10)+(e&1023)+65536,c++)}128>d?b+=String.fromCharCode(d):(2048>d?b+=String.fromCharCode(d>>6|192):(65536>d?b+=String.fromCharCode(d>>12|224):(b+=String.fromCharCode(d>>18|240),b+=String.fromCharCode(d>>12&63|128)),b+=String.fromCharCode(d>>6&63|128)),b+=String.fromCharCode(d&63|128))}return b},_utf8_decode:function(a){var b="",c=0;for(c1=c2=0;c<a.length;){var d=a.charCodeAt(c);if(128>d)b+=String.fromCharCode(d),c++;else if(191<d&&224>d)c2=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|c2&63),c+=2;else if(240>d)c2=a.charCodeAt(c+1),c3=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(c2&63)<<6|c3&63),c+=3;else{c2=a.charCodeAt(c+1);c3=a.charCodeAt(c+2);var e=a.charCodeAt(c+3);b+=String.fromCodePoint((d&7)<<18|(c2&63)<<12|(c3&63)<<6|e&63);c+=4}}return b}};window.urlParams=window.urlParams||{};if(null==window.mxIsElectron||"1"==urlParams.embed)window.mxIsElectron=!1;window.isLocalStorage=window.isLocalStorage||!1;window.mxLoadSettings=window.mxLoadSettings||"1"!=urlParams.configure;window.isSvgBrowser=!0;window.isMermaidEnabled="function"===typeof structuredClone;window.DRAWIO_BASE_URL=window.DRAWIO_BASE_URL||(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)?window.location.protocol+"//"+window.location.hostname:"https://app.diagrams.net");window.DRAWIO_SERVER_URL=window.DRAWIO_SERVER_URL||window.location.origin+window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+"/";window.DRAWIO_LIGHTBOX_URL=window.DRAWIO_LIGHTBOX_URL||"https://viewer.diagrams.net";-window.EXPORT_URL=window.EXPORT_URL||"https://convert.diagrams.net/node/export";window.DRAW_MATH_URL=window.DRAW_MATH_URL||"math4/es5";window.VSS_CONVERT_URL=window.VSS_CONVERT_URL||"https://convert.diagrams.net/VsdConverter/api/converter";window.REALTIME_URL=window.REALTIME_URL||window.DRAWIO_SERVER_URL+"cache";window.DRAWIO_GITLAB_URL=window.DRAWIO_GITLAB_URL||"https://gitlab.com";window.DRAWIO_GITLAB_ID=window.DRAWIO_GITLAB_ID||"2b14debc5feeb18ba65358d863ec870e4cc9294b28c3c941cb3014eb4af9a9b4";+window.EXPORT_URL="undefined"===typeof window.EXPORT_URL?"https://convert.diagrams.net/node/export":window.EXPORT_URL;window.DRAW_MATH_URL=window.DRAW_MATH_URL||"math4/es5";window.VSS_CONVERT_URL=window.VSS_CONVERT_URL||"https://convert.diagrams.net/VsdConverter/api/converter";window.REALTIME_URL=window.REALTIME_URL||window.DRAWIO_SERVER_URL+"cache";window.DRAWIO_GITLAB_URL=window.DRAWIO_GITLAB_URL||"https://gitlab.com";window.DRAWIO_GITLAB_ID=window.DRAWIO_GITLAB_ID||"2b14debc5feeb18ba65358d863ec870e4cc9294b28c3c941cb3014eb4af9a9b4";window.DRAWIO_GITHUB_URL=window.DRAWIO_GITHUB_URL||"https://github.com";window.DRAWIO_GITHUB_API_URL=window.DRAWIO_GITHUB_API_URL||"https://api.github.com";window.DRAWIO_GITHUB_ID=window.DRAWIO_GITHUB_ID||"Iv1.98d62f0431e40543";window.DRAWIO_DROPBOX_ID=window.DRAWIO_DROPBOX_ID||"jg02tc0onwmhlgm";window.SAVE_URL=window.SAVE_URL||window.DRAWIO_SERVER_URL+"save";window.PROXY_URL=window.PROXY_URL||window.DRAWIO_SERVER_URL+"proxy";window.DRAWIO_VIEWER_URL=window.DRAWIO_VIEWER_URL||null;window.NOTIFICATIONS_URL=window.NOTIFICATIONS_URL||(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)?window.DRAWIO_SERVER_URL+"notifications":null);window.RT_WEBSOCKET_URL=window.RT_WEBSOCKET_URL||"wss://"+("test.draw.io"==window.location.hostname?"app.diagrams.net":window.location.hostname)+"/rt";window.DRAWIO_ATLASSIAN_PROMPT_LENGTH=null!=window.DRAWIO_ATLASSIAN_PROMPT_LENGTH?window.DRAWIO_ATLASSIAN_PROMPT_LENGTH:1E5;window.SHAPES_PATH=window.SHAPES_PATH||"shapes";window.GRAPH_IMAGE_PATH=window.GRAPH_IMAGE_PATH||"img";window.ICONSEARCH_PATH=window.ICONSEARCH_PATH||(urlParams.dev&&"file:"!=window.location.protocol?"iconSearch2":window.DRAWIO_SERVER_URL+"iconSearch2");window.ICON_SERVICE_PATH=window.ICON_SERVICE_PATH||(urlParams.dev&&"file:"!=window.location.protocol?"api/icons":window.DRAWIO_SERVER_URL+"api/icons");window.TEMPLATE_PATH=window.TEMPLATE_PATH||"templates";@@ -70,8 +70,8 @@ window.uiTheme=window.uiTheme||function(){var a=urlParams.ui;"1"==urlParams.extAb),-1!==c&&c===b&&(window.DRAWIO_LOG_URL="https://log.draw.io")))})();"1"==urlParams["gapi-stealth"]&&(urlParams.stealth="1");if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==urlParams.local||"1"==urlParams.lockdown)urlParams.picker="1"==urlParams["gapi-stealth"]?"1":"0",urlParams.gapi="1"==urlParams["gapi-stealth"]?"1":"0",urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0";"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],FORBID_ATTR:["data-icon","data-icon-content"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ALLOW_DATA_ATTR:!1,ADD_ATTR:"target content pointer-events requiredFeatures data-font-src data-action data-title data-message data-link data-effect data-lucid-type data-lucid-content".split(" ")};-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:"31.4.2",IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),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.")&&+window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL="undefined"===typeof window.EXPORT_URL?"/export":window.EXPORT_URL;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:"31.4.4",IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor),IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints,IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userAgent),IS_GC:/Google Inc/.test(navigator.vendor),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:-1<navigator.userAgent.toLowerCase().indexOf("firefox"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS||"[object SVGForeignObjectElement]"!==document.createElementNS("http://www.w3.org/2000/svg","foreignObject").toString()||0<=navigator.userAgent.indexOf("Opera/"),IS_WIN:0<navigator.appVersion.indexOf("Win"),IS_MAC:0<navigator.appVersion.indexOf("Mac"),IS_CHROMEOS:/\bCrOS\b/.test(navigator.appVersion),@@ -1030,16 +1030,16 @@ mxPrintPreview.prototype.title=null;mxPrintPreview.prototype.pageSelector=null;mmxPrintPreview.prototype.getDoctype=function(){var a="";8==document.documentMode?a='<meta http-equiv="X-UA-Compatible" content="IE=8">':8<document.documentMode&&(a='\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]--\x3e');return a};mxPrintPreview.prototype.appendGraph=function(a,b,c,d,e,f,g,k,l){this.graph=a;this.scale=null!=b?b:1/a.pageScale;this.x0=c;this.y0=d;this.open(null,null,e,f,g,k,l)};mxPrintPreview.prototype.getPageClassCss=function(a,b){var c=this.pageMargin,d=this.pixelsPerInch,e=(b.width/d).toFixed(2)+"in "+(b.height/d).toFixed(2)+"in";b="@page "+a+" {\n margin: 0;\n size: "+mxUtils.htmlEntities(e)+";\n}\n."+a+" {\n page: "+a+";\n"+(mxClient.IS_SF?" padding: "+mxUtils.htmlEntities((c/d).toFixed(2))+"in;\n":"")+" width: "+mxUtils.htmlEntities((b.width/d).toFixed(2))+"in;\n height: "+mxUtils.htmlEntities((b.height/d).toFixed(2))+"in;\n}\n";mxClient.IS_SF||(b+="."+a+" > svg {\n margin: "+mxUtils.htmlEntities((c/d).toFixed(2))+"in;\n}\n");return b};-mxPrintPreview.prototype.open=function(a,b,c,d,e,f,g){c=null;try{var k=this.graph.cellRenderer.initializeOverlay,l=null!=f;f=mxRectangle.fromRectangle(null!=f?f:this.pageFormat);var m=f.width+1,n=f.height+1;this.printOverlays&&(this.graph.cellRenderer.initializeOverlay=function(H,F){F.init(H.view.getDrawPane())});this.printControls&&(this.graph.cellRenderer.initControl=function(H,F,J,I){F.dialect=H.view.graph.dialect;F.init(H.view.getDrawPane())});this.wnd=null!=b?b:this.wnd;b=!1;null==this.wnd&&-(b=!0,this.wnd=window.open());var p=this.wnd.document;if(b){var q=this.getDoctype();null!=q&&0<q.length&&p.writeln(q);"CSS1Compat"===document.compatMode&&p.writeln("<!DOCTYPE html>");p.writeln("<html>");p.writeln("<head>");this.writeHead(p,a);p.writeln("</head>");p.writeln("<body>")}var r=mxRectangle.fromRectangle(null!=g?this.graph.getBoundingBox(g):this.graph.getGraphBounds()),t=this.graph.getView().getScale(),u=t/this.scale,v=this.graph.getView().getTranslate();this.autoOrigin||(this.x0-=v.x*this.scale,-this.y0-=v.y*this.scale,r.width+=r.x,r.height+=r.y,r.x=0,this.border=r.y=0);var y=m-2*this.border,A=n-2*this.border;n+=this.marginTop+this.marginBottom;r.width/=u;r.height/=u;var z=Math.max(1,Math.ceil((r.width+this.x0)/y)),x=Math.max(1,Math.ceil((r.height+this.y0)/A));this.pageCount=z*x;var C=null;l&&(null==this.pendingCss&&(this.pageFormatClass={},this.pendingCss=""),C=mxUtils.htmlEntities("gePageFormat-"+String(f.width).replace(/\./g,"_")+"-"+String(f.height).replace(/\./g,"_")),null==this.pageFormatClass[C]&&-(this.pageFormatClass[C]=!0,this.pendingCss+=this.getPageClassCss(C,f)));var D=mxUtils.bind(this,function(H){null!=this.borderColor&&(H.style.borderColor=this.borderColor,H.style.borderStyle="solid",H.style.borderWidth="1px");H.style.background=this.backgroundColor;null!=C?H.classList.add(C):(H.style.width=f.width+"px",H.style.height=f.height+"px");p.body.appendChild(H)}),B=this.getCoverPages(m,n);if(null!=B)for(var E=0;E<B.length;E++)D(B[E],!0);var K=this.getAppendices(m,n);for(E=0;E<x;E++){var G=-E*A/this.scale-this.y0/this.scale+(r.y-v.y*t)/t-E;for(a=0;a<z;a++){if(null==this.wnd)return null;var L=a*y/this.scale-this.x0/this.scale+(r.x-v.x*t)/t-a;g=E*z+a+1;c=p.createElement("div");c.style.display="flex";c.style.alignItems="center";c.style.justifyContent="center";var Q=new mxRectangle(L,G,y,A);this.addGraphFragment(-L,-G,this.scale,g,c,Q);null!=e&&0==E&&0==a&&c.setAttribute("id",e);D(c,!0)}}if(null!=K)for(E=0;E<K.length;E++)D(K[E],E<K.length-1);b&&!d&&this.closeDocument();this.wnd.focus()}catch(H){null!=+mxPrintPreview.prototype.open=function(a,b,c,d,e,f,g){c=null;try{var k=this.graph.cellRenderer.initializeOverlay,l=null!=f;f=mxRectangle.fromRectangle(null!=f?f:this.pageFormat);var m=f.width+1,n=f.height+1,p=null;l&&(null==this.pendingCss&&(this.pageFormatClass={},this.pendingCss=""),p=mxUtils.htmlEntities("gePageFormat-"+String(f.width).replace(/\./g,"_")+"-"+String(f.height).replace(/\./g,"_")),null==this.pageFormatClass[p]&&(this.pageFormatClass[p]=!0,this.pendingCss+=this.getPageClassCss(p,f)));+this.printOverlays&&(this.graph.cellRenderer.initializeOverlay=function(H,F){F.init(H.view.getDrawPane())});this.printControls&&(this.graph.cellRenderer.initControl=function(H,F,J,I){F.dialect=H.view.graph.dialect;F.init(H.view.getDrawPane())});this.wnd=null!=b?b:this.wnd;b=!1;null==this.wnd&&(b=!0,this.wnd=window.open());var q=this.wnd.document;if(b){var r=this.getDoctype();null!=r&&0<r.length&&q.writeln(r);"CSS1Compat"===document.compatMode&&q.writeln("<!DOCTYPE html>");q.writeln("<html>");q.writeln("<head>");+this.writeHead(q,a);q.writeln("</head>");q.writeln("<body>")}var t=mxRectangle.fromRectangle(null!=g?this.graph.getBoundingBox(g):this.graph.getGraphBounds()),u=this.graph.getView().getScale(),v=u/this.scale,y=this.graph.getView().getTranslate();this.autoOrigin||(this.x0-=y.x*this.scale,this.y0-=y.y*this.scale,t.width+=t.x,t.height+=t.y,t.x=0,this.border=t.y=0);var A=m-2*this.border,z=n-2*this.border;n+=this.marginTop+this.marginBottom;t.width/=v;t.height/=v;var x=Math.max(1,Math.ceil((t.width+this.x0)/+A)),C=Math.max(1,Math.ceil((t.height+this.y0)/z));this.pageCount=x*C;var D=mxUtils.bind(this,function(H){null!=this.borderColor&&(H.style.borderColor=this.borderColor,H.style.borderStyle="solid",H.style.borderWidth="1px");H.style.background=this.backgroundColor;null!=p?H.classList.add(p):(H.style.width=f.width+"px",H.style.height=f.height+"px");q.body.appendChild(H)}),B=this.getCoverPages(m,n);if(null!=B)for(var E=0;E<B.length;E++)D(B[E],!0);var K=this.getAppendices(m,n);for(E=0;E<C;E++){var G=E*+z/this.scale-this.y0/this.scale+(t.y-y.y*u)/u-E;for(a=0;a<x;a++){if(null==this.wnd)return null;var L=a*A/this.scale-this.x0/this.scale+(t.x-y.x*u)/u-a;g=E*x+a+1;c=q.createElement("div");c.style.display="flex";c.style.alignItems="center";c.style.justifyContent="center";var Q=new mxRectangle(L,G,A,z);this.addGraphFragment(-L,-G,this.scale,g,c,Q);null!=e&&0==E&&0==a&&c.setAttribute("id",e);D(c,!0)}}if(null!=K)for(E=0;E<K.length;E++)D(K[E],E<K.length-1);b&&!d&&this.closeDocument();this.wnd.focus()}catch(H){null!=c&&null!=c.parentNode&&c.parentNode.removeChild(c),null!=window.console&&console.error(H)}finally{this.graph.cellRenderer.initializeOverlay=k}return this.wnd};mxPrintPreview.prototype.addPendingCss=function(a){if(null!=this.pendingCss){var b=a.createElement("style");b.setAttribute("type","text/css");b.appendChild(a.createTextNode(this.pendingCss));a.getElementsByTagName("head")[0].appendChild(b);this.pendingCss=null}};mxPrintPreview.prototype.closeDocument=function(){try{if(null!=this.wnd&&null!=this.wnd.document){var a=this.wnd.document;this.writePostfix(a);a.writeln("</body>");a.writeln("</html>");a.close();this.addPendingCss(a);mxEvent.release(a.body)}}catch(b){}};-mxPrintPreview.prototype.writeHead=function(a,b){null!=this.title&&a.writeln("<title>"+mxUtils.htmlEntities(this.title)+"</title>");var c=mxClient.basePath;"/src"==c.substring(c.length-4)&&(c=c.substring(0,c.length-4));mxClient.link("stylesheet",c+"/css/common.css",a);a.writeln('<style type="text/css">');a.writeln(this.defaultCss);c=this.pageFormat;this.addPageCss&&null!=c&&(c=(c.width/this.pixelsPerInch).toFixed(2)+"in "+(c.height/this.pixelsPerInch).toFixed(2)+"in",a.writeln("@page {"),a.writeln(" margin: "+-mxUtils.htmlEntities((this.pageMargin/this.pixelsPerInch).toFixed(2))+"in;"),a.writeln(" size: "+mxUtils.htmlEntities(c)+";"),a.writeln("}"));null!=b&&a.writeln(mxUtils.htmlEntities(b,!1,!1,!1));a.writeln("</style>")};mxPrintPreview.prototype.writePostfix=function(a){};mxPrintPreview.prototype.getRoot=function(){var a=this.graph.view.currentRoot;null==a&&(a=this.graph.getModel().getRoot());return a};mxPrintPreview.prototype.useCssTransforms=function(){return!mxClient.NO_FO&&!mxClient.IS_SF};-mxPrintPreview.prototype.isCellVisible=function(a){return!0};mxPrintPreview.prototype.drawBackgroundImage=function(a){a.redraw()};+mxPrintPreview.prototype.writeHead=function(a,b){null!=this.title&&a.writeln("<title>"+mxUtils.htmlEntities(this.title)+"</title>");var c=mxClient.basePath;"/src"==c.substring(c.length-4)&&(c=c.substring(0,c.length-4));mxClient.link("stylesheet",c+"/css/common.css",a);a.writeln('<style type="text/css">');a.writeln(this.defaultCss);c=this.pageFormat;this.addPageCss&&null!=c&&null==this.pendingCss&&(c=(c.width/this.pixelsPerInch).toFixed(2)+"in "+(c.height/this.pixelsPerInch).toFixed(2)+"in",a.writeln("@page {"),+a.writeln(" margin: "+mxUtils.htmlEntities((this.pageMargin/this.pixelsPerInch).toFixed(2))+"in;"),a.writeln(" size: "+mxUtils.htmlEntities(c)+";"),a.writeln("}"));null!=b&&a.writeln(b.replace(/<\/style/gi,"<\\/style"));a.writeln("</style>")};mxPrintPreview.prototype.writePostfix=function(a){};mxPrintPreview.prototype.getRoot=function(){var a=this.graph.view.currentRoot;null==a&&(a=this.graph.getModel().getRoot());return a};+mxPrintPreview.prototype.useCssTransforms=function(){return!mxClient.NO_FO&&!mxClient.IS_SF};mxPrintPreview.prototype.isCellVisible=function(a){return!0};mxPrintPreview.prototype.drawBackgroundImage=function(a){a.redraw()};mxPrintPreview.prototype.addGraphFragment=function(a,b,c,d,e,f){var g=this.graph.getView();d=this.graph.container;this.graph.container=e;var k=g.getCanvas(),l=g.getBackgroundPane(),m=g.getDrawPane(),n=g.getOverlayPane(),p=c;if(this.graph.dialect==mxConstants.DIALECT_SVG){if(g.createSvg(),this.useCssTransforms()){var q=g.getDrawPane().parentNode;q.setAttribute("transformOrigin","0 0");q.setAttribute("transform","scale("+c+","+c+")translate("+a+","+b+")");c=1;b=a=0}}else g.createHtml();q=g.isEventsEnabled();g.setEventsEnabled(!1);var r=this.graph.isEnabled();this.graph.setEnabled(!1);var t=g.getTranslate();g.translate=new mxPoint(a,b);var u=this.graph.selectionCellsHandler.updateHandler;this.graph.selectionCellsHandler.updateHandler=function(){};var v=this.graph.cellRenderer.redraw,y=g.states,A=g.scale,z=null;if(this.printBackgroundImage){var x=this.getBackgroundImage();null!=x&&(z=new mxRectangle(Math.round(a*A+x.x),Math.round(b*A+x.y),x.width-1,x.height-1),z=new mxImageShape(z,x.src),z.dialect=this.graph.dialect)}if(this.clipping){var C=new mxRectangle((f.x+t.x+1.5)*A,(f.y+t.y+1.5)*A,(f.width-1.5)*A/p,(f.height-1.5)*A/p),D=this;this.graph.cellRenderer.redraw=function(E,K,G){if(null!=E){var L=y.get(E.cell);if(null!=L&&(L=g.getBoundingBox(L,!1),null!=L&&0<L.width&&0<L.height&&!mxUtils.intersects(C,L))||!D.isCellVisible(E.cell))return}v.apply(this,arguments)};null!=z&&(a=new mxRectangle(z.bounds.x*A+(t.x-a)*A,z.bounds.y*A+(t.y-b)*A,z.bounds.width*A,z.bounds.height*A),mxUtils.intersects(C,a)||(z=null))}null!=z&&(z.init(g.backgroundPane),@@ -2923,8 +2923,8 @@ mxText.prototype.getTextRotation=function(){var a=null!=this.state?Graph.getLabeGraph.prototype.defaultScrollbars=!0;Graph.prototype.defaultPageVisible=!0;Graph.prototype.defaultGridEnabled="0"!=urlParams.grid;Graph.prototype.defaultConnectionArrowsEnabled=!0;Graph.prototype.defaultConnectable=!0;Graph.prototype.defaultFoldingEnabled=!0;Graph.prototype.lightbox=!1;Graph.prototype.diagramBackgroundColor="#f0f0f0";Graph.prototype.enableDiagramBackground=!1;Graph.prototype.defaultPageBackgroundColor="1"==urlParams.embedInline?"transparent":Editor.getDefaultPageBackgroundColor();Graph.prototype.defaultPageBorderColor="light-dark(#ffffff, #000000)";Graph.prototype.shapeForegroundColor="light-dark(#000000, #ffffff)";Graph.prototype.shapeBackgroundColor="light-dark(#ffffff, var("+Editor.darkColorVar+", "+Editor.darkColor+"))";Graph.prototype.scrollTileSize=new mxRectangle(0,0,400,400);Graph.prototype.transparentBackground=!0;Graph.prototype.selectParentAfterDelete=!1;Graph.prototype.defaultEdgeLength=80;Graph.prototype.immediateHandling=!0;Graph.prototype.connectionArrowsEnabled=!0;Graph.prototype.placeholderPattern=RegExp("%(date{.*}|[^%{}\"'=;]+)%","g");Graph.prototype.absoluteUrlPattern=RegExp("^(?:[a-z]+:)?//","i");Graph.prototype.defaultThemeName="default";Graph.prototype.defaultThemes={};Graph.prototype.baseUrl=null!=urlParams.base?mxUtils.removeJavascriptProtocol(decodeURIComponent(urlParams.base)):(window!=window.top?document.referrer:document.location.toString()).split("#")[0];Graph.prototype.editAfterInsert=!1;-Graph.prototype.builtInProperties=["label","tooltip","placeholders","placeholder","note"];Graph.prototype.showNoteIcons=!0;Graph.prototype.standalone=!1;Graph.prototype.enableFlowAnimation=!1;Graph.prototype.roundableShapes="label rectangle internalStorage corner parallelogram swimlane triangle trapezoid ext step tee process link rhombus offPageConnector loopLimit hexagon manualInput card curlyBracket singleArrow callout doubleArrow flexArrow umlLifeline".split(" ");-Graph.prototype.vertexFontSize=null;Graph.prototype.edgeFontSize=null;Graph.prototype.adaptiveColors="auto";+Graph.prototype.builtInProperties=["label","tooltip","placeholders","placeholder","note"];Graph.prototype.builtInPropertyPrefixes=["plantUml","mermaid"];Graph.prototype.isBuiltInPropertyPrefix=function(a){for(var b=0;b<this.builtInPropertyPrefixes.length;b++)if(a.substring(0,this.builtInPropertyPrefixes[b].length)==this.builtInPropertyPrefixes[b])return!0;return!1};Graph.prototype.showNoteIcons=!0;Graph.prototype.standalone=!1;Graph.prototype.enableFlowAnimation=!1;+Graph.prototype.roundableShapes="label rectangle internalStorage corner parallelogram swimlane triangle trapezoid ext step tee process link rhombus offPageConnector loopLimit hexagon manualInput card curlyBracket singleArrow callout doubleArrow flexArrow umlLifeline".split(" ");Graph.prototype.vertexFontSize=null;Graph.prototype.edgeFontSize=null;Graph.prototype.adaptiveColors="auto";Graph.prototype.init=function(a){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(d,e){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var g=d.view.graph.tolerance,c=!0,h=null,k=mxUtils.bind(this,function(u){c=!0;h=new mxPoint(mxEvent.getClientX(u),mxEvent.getClientY(u))}),p=mxUtils.bind(this,function(u){c=c&&null!=h&&Math.abs(h.x-mxEvent.getClientX(u))<g&&Math.abs(h.y-mxEvent.getClientY(u))<g}),l=mxUtils.bind(this,function(u){if(c)for(var w=mxEvent.getSource(u);null!=w&&w!=e.node;){if("a"==w.nodeName.toLowerCase()){d.view.graph.labelLinkClicked(d,w,u);break}w=w.parentNode}});mxEvent.addGestureListeners(e.node,k,p,l);mxEvent.addListener(e.node,"click",function(u){mxEvent.consume(u)})};if(null!=this.tooltipHandler){var b=this.tooltipHandler.init;this.tooltipHandler.init=function(){b.apply(this,arguments);null!=this.div&&(null!=Editor.tooltipFontSize&&(this.div.style.fontSize=Editor.tooltipFontSize+"px"),0<Editor.tooltipMaxWidth&&(this.div.style.maxWidth=Editor.tooltipMaxWidth+"px"),mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(d){var e=mxEvent.getSource(d);"A"==e.nodeName&&(e=e.getAttribute("href"),null!=e&&this.graph.isCustomLink(e)&&(mxEvent.isTouchEvent(d)||!mxEvent.isPopupTrigger(d))&&this.graph.customLinkClicked(e)&&mxEvent.consume(d))})))}}this.initTransparentBoundsStyleSync();this.initLayoutManager()};@@ -3105,8 +3105,8 @@ a.height*this.view.scale)/2+b/2,0),g&&this.pageVisible&&(a=this.view.getBackgrouGraph.prototype.getCurrentViewBox=function(){var a=this.view,b=this.container,d=a.scale;a=a.translate;return{x:Math.round(b.scrollLeft/d-a.x),y:Math.round(b.scrollTop/d-a.y),width:Math.round(b.clientWidth/d),height:Math.round(b.clientHeight/d),scale:Math.round(1E4*d)/1E4}};Graph.prototype.convertValueToTooltip=function(a,b){var d=null;mxUtils.isNode(a.value)&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(d=a.value.getAttribute("tooltip_"+Graph.diagramLanguage)),null==d&&(d=a.value.getAttribute("tooltip")),null!=d&&(null!=d&&this.isReplacePlaceholders(a)&&(d=this.replacePlaceholders(a,d)),d=Graph.sanitizeHtml(d),b&&0<d.length&&0<Editor.tooltipMaxWidth&&(d='<div style="max-width:'+Editor.tooltipMaxWidth+'px;text-overflow:ellipsis;overflow:hidden;">'+d+"</div>")));return d};-Graph.prototype.getTooltipForCell=function(a){if(null!=window.urlParams&&"0"==urlParams.tooltips)return null;var b=this.getLockedGroupAncestor(a,!0);null!=b&&(a=b);b="";if(mxUtils.isNode(a.value)&&(b=this.convertValueToTooltip(a),null==b)){var d=this.builtInProperties;a=a.value.attributes;var e=[];b="";this.isEnabled()&&(d.push("linkTarget"),d.push("link"));for(var g=0;g<a.length;g++)(Graph.translateDiagram&&"label"==a[g].nodeName||0>mxUtils.indexOf(d,a[g].nodeName))&&0<a[g].nodeValue.length&&e.push({name:a[g].nodeName,-value:a[g].nodeValue});e.sort(function(c,h){return c.name<h.name?-1:c.name>h.name?1:0});for(g=0;g<e.length;g++)"link"==e[g].name&&this.isCustomLink(e[g].value)||(b+=("link"!=e[g].name?"<b>"+mxUtils.htmlEntities(e[g].name)+":</b> ":"")+mxUtils.htmlEntities(e[g].value)+"\n");0<b.length&&(b=b.substring(0,b.length-1),mxClient.IS_SVG&&(b='<div style="max-width:360px;text-overflow:ellipsis;overflow:hidden;">'+b+"</div>"))}return b};+Graph.prototype.getTooltipForCell=function(a){if(null!=window.urlParams&&"0"==urlParams.tooltips)return null;var b=this.getLockedGroupAncestor(a,!0);null!=b&&(a=b);b="";if(mxUtils.isNode(a.value)&&(b=this.convertValueToTooltip(a),null==b)){var d=this.builtInProperties.slice();a=a.value.attributes;var e=[];b="";this.isEnabled()&&(d.push("linkTarget"),d.push("link"));for(var g=0;g<a.length;g++)(Graph.translateDiagram&&"label"==a[g].nodeName||0>mxUtils.indexOf(d,a[g].nodeName)&&!this.isBuiltInPropertyPrefix(a[g].nodeName))&&0<+a[g].nodeValue.length&&e.push({name:a[g].nodeName,value:a[g].nodeValue});e.sort(function(c,h){return c.name<h.name?-1:c.name>h.name?1:0});for(g=0;g<e.length;g++)"link"==e[g].name&&this.isCustomLink(e[g].value)||(b+=("link"!=e[g].name?"<b>"+mxUtils.htmlEntities(e[g].name)+":</b> ":"")+mxUtils.htmlEntities(e[g].value)+"\n");0<b.length&&(b=b.substring(0,b.length-1),mxClient.IS_SVG&&(b='<div style="max-width:360px;text-overflow:ellipsis;overflow:hidden;">'+b+"</div>"))}return b};Graph.prototype.getTooltip=function(a,b,d,e){if(null!=a&&null!=a.overlays){var g=!1;a.overlays.visit(function(c,h){null==h.overlay||!h.overlay.isTooltipOverlay||b!=h.node&&b.parentNode!=h.node||(g=!0)});if(g)return this.convertValueToTooltip(a.cell,!0)}return mxGraph.prototype.getTooltip.apply(this,arguments)};Graph.prototype.addFlowAnimationToNode=function(a,b,d,e){if(null!=a&&null!=e){var g=a.getAttribute("stroke-dasharray");if(""==g||null==g){var c=String(mxUtils.getValue(b,mxConstants.STYLE_DASH_PATTERN,"8")).split(" ");g=1==mxUtils.getValue(b,mxConstants.STYLE_FIX_DASH,!1)||null==b.dashPattern?1:mxUtils.getNumber(b,mxConstants.STYLE_STROKEWIDTH,1);if(0<c.length)for(var h=0;h<c.length;h++)c[h]=Math.round(Number(c[h])*d*g*100)/100;a.setAttribute("stroke-dasharray",c.join(" "))}else c=g.split(" ");if(0<c.length){for(h=g=0;h<c.length;h++){var k=parseFloat(c[h]);isNaN(k)||(g+=parseFloat(c[h]))}0!=c.length%2&&(g*=2);d=Math.round(g/d/16*parseInt(mxUtils.getValue(b,"flowAnimationDuration",500)));c=mxUtils.getValue(b,"flowAnimationTimingFunction","linear");b=mxUtils.getValue(b,"flowAnimationDirection","normal");a.style.animation=e+" "+d+"ms "+mxUtils.htmlEntities(c)+" infinite "+mxUtils.htmlEntities(b);a.style.strokeDashoffset=g}}};@@ -4629,57 +4629,57 @@ Sidebar.prototype.archimate4="Common;Relationships and Junctions;Motivation;Straprefix:"mockup",libs:"Buttons Containers Forms Graphics Markup Misc Navigation Text".split(" ")},{id:"pid2",prefix:"pid2",libs:"Agitators;Apparatus Elements;Centrifuges;Compressors;Compressors ISO;Crushers Grinding;Driers;Engines;Feeders;Filters;Fittings;Flow Sensors;Heat Exchangers;Instruments;Misc;Mixers;Piping;Pumps;Pumps DIN;Pumps ISO;Separators;Shaping Machines;Valves;Vessels".split(";")},{id:"salesforce",prefix:"salesforce",libs:["Components","Product","Platform","Industry"]},{id:"signs",prefix:"signs",libs:Sidebar.prototype.signs},{id:"gcp",prefix:"gcp",libs:Sidebar.prototype.gcp},{id:"gcp2",prefix:"gcp2",libs:Sidebar.prototype.gcp2},{id:"gcp3",prefix:"gcp3",libs:Sidebar.prototype.gcp3},{id:"gcpicons",prefix:"gcpicons",libs:Sidebar.prototype.gcpicons},{id:"rack",prefix:"rack",libs:Sidebar.prototype.rack},{id:"electrical",prefix:"electrical",libs:Sidebar.prototype.electrical},{id:"aws2",prefix:"aws2",libs:Sidebar.prototype.aws2},{id:"aws3",prefix:"aws3",libs:Sidebar.prototype.aws3},{id:"aws4b",prefix:"aws4b",libs:Sidebar.prototype.aws4b},{id:"sap",prefix:"sap",libs:Sidebar.prototype.sap},{id:"aws4",prefix:"aws4",libs:Sidebar.prototype.aws4},{id:"pid",prefix:"pid",libs:Sidebar.prototype.pids},{id:"cisco",prefix:"cisco",libs:Sidebar.prototype.cisco},{id:"cisco_safe",prefix:"cisco_safe",libs:Sidebar.prototype.cisco_safe},{id:"office",prefix:"office",libs:Sidebar.prototype.office},{id:"openstack",prefix:"openstack",libs:Sidebar.prototype.openstack},{id:"veeam",prefix:"veeam",libs:Sidebar.prototype.veeam},-{id:"veeam2",prefix:"veeam2",libs:Sidebar.prototype.veeam2},{id:"cabinets",libs:["cabinets"]},{id:"floorplan",libs:["floorplan"]},{id:"bootstrap",libs:["bootstrap"]},{id:"atlassian",libs:["atlassian"]},{id:"fluid_power",libs:["fluid_power"]},{id:"gmdl",prefix:"gmdl",libs:Sidebar.prototype.gmdl},{id:"archimate4",prefix:"archimate4",libs:Sidebar.prototype.archimate4},{id:"archimate3",prefix:"archimate3",libs:Sidebar.prototype.archimate3},{id:"archimate",libs:["archimate"]},{id:"webicons",libs:["webicons",-"weblogos"]},{id:"sysml",prefix:"sysml",libs:Sidebar.prototype.sysml}];var a=Sidebar.prototype.addEntry;Sidebar.prototype.addEntry=function(k,l){return null!=this.currentSearchEntryLibrary&&null!=this.enabledLibraries&&0>mxUtils.indexOf(this.enabledLibraries,this.currentSearchEntryLibrary.id)?l:a.apply(this,arguments)};var c=Sidebar.prototype.refresh;Sidebar.prototype.refresh=function(){var k=this.editorUi;c.apply(this,arguments);null!=k.scratchpad&&k.loadLibrary(new StorageLibrary(k,k.scratchpad.getData(),-".scratchpad"))};Sidebar.prototype.togglePalettes=function(k,l){this.showPalettes(k,l)};Sidebar.prototype.togglePalette=function(k){this.showPalette(k)};Sidebar.prototype.showPalettes=function(k,l,n){for(var p=[],q=0;q<l.length;q++)p=p.concat(this.showPalette(k+l[q],n));return p};Sidebar.prototype.showPalette=function(k,l){k=this.palettes[k];if(null!=k){l=null!=l?l?"":"none":"none"==k[0].style.display?"":"none";for(var n=0;n<k.length;n++)k[n].style.display=l}return k};Sidebar.prototype.getConfigurationById=-function(k){for(var l=0;l<this.configuration.length;l++)if(this.configuration[l].id==k)return this.configuration[l];if(null!=this.customEntries)for(l=0;l<this.customEntries.length;l++)for(var n=this.customEntries[l]||{},p=0;null!=n.entries&&p<n.entries.length;p++){var q=n.entries[p];if(q.id==k)return{id:q.id,libs:q.libs}}return null};Sidebar.prototype.isEntryVisible=function(k){if(".scratchpad"==k)return null!=this.editorUi.scratchpad;var l=this.getConfigurationById(k);if(null!=l){var n=this.palettes[null!=-l.libs?(l.prefix||"")+l.libs[0]:k];if(null!=n)return"none"!=n[0].style.display}if(null!=this.customEntries)for(l=0;l<this.customEntries.length;l++){n=this.customEntries[l]||{};for(var p=0;null!=n.entries&&p<n.entries.length;p++){var q=n.entries[p];if(q.id==k){if(null!=q.libs&&0<q.libs.length&&(n=this.palettes[q.id+".0"],null!=n))return"none"!=n[0].style.display;break}}}return!1};Sidebar.prototype.showEntries=function(k,l,n){var p=[];l&&(mxSettings.setLibraries(k),mxSettings.save());null!=k&&(n||0<-k.length)?p.push(k):(k=!1,null!=urlParams.libs&&0<urlParams.libs.length&&(p.push(decodeURIComponent(urlParams.libs)),k="draw.io"==this.editorUi.getServiceName()),k||(null!=mxSettings&&null!=mxSettings.settings?p.push(mxSettings.getLibraries()):p.push(this.defaultEntries)));l=p.join(";").split(";");p={};for(k=0;k<l.length;k++)p[this.libAliases[l[k]]||l[k]]=!0;for(k=0;k<this.configuration.length;k++)"search"!=this.configuration[k].id&&this.showPalettes(this.configuration[k].prefix||"",this.configuration[k].libs||-[this.configuration[k].id],1==p[this.configuration[k].id]);if(null!=this.customEntries)for(k=0;k<this.customEntries.length;k++)for(l=this.customEntries[k]||{},n=0;null!=l.entries&&n<l.entries.length;n++){var q=l.entries[n];if(null!=q.libs&&0<q.libs.length){for(var r=[],t=0;t<q.libs.length;t++)r.push(q.id+"."+t);this.showPalettes("",r,1==p[q.id])}}};Sidebar.prototype.init=function(){this.updateEntries();this.addStencilsToIndex=!1;this.shapetags={};null!=this.tagIndex&&(this.addTagIndex(Graph.decompress(this.tagIndex)),-this.tagIndex=null);this.initPalettes();this.defaultPaletteOrder=this.getCurrentPaletteOrder();this.applyPaletteOrder()};Sidebar.prototype.updateEntries=function(){var k=[{title:mxResources.get("general"),id:"general",image:IMAGE_PATH+"/sidebar-general.png"},{title:mxResources.get("basic"),id:"basic",image:IMAGE_PATH+"/sidebar-basic.png"},{title:mxResources.get("arrows"),id:"arrows2",image:IMAGE_PATH+"/sidebar-arrows2.png"},{title:mxResources.get("clipart"),id:"clipart",image:IMAGE_PATH+"/sidebar-clipart.png"},-{title:mxResources.get("flowchart"),id:"flowchart",image:IMAGE_PATH+"/sidebar-flowchart.png"}];if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme)k=[{title:mxResources.get("searchShapes"),id:"search"},{title:mxResources.get("scratchpad"),id:".scratchpad"}].concat(k);var l=(new Date).getFullYear();this.entries=[{title:mxResources.get("standard"),entries:k},{title:mxResources.get("software"),entries:[{title:"Active Directory",id:"active_directory",image:IMAGE_PATH+-"/sidebar-active_directory.png"},{title:mxResources.get("android"),id:"android",image:IMAGE_PATH+"/sidebar-android.png"},{title:"Atlassian",id:"atlassian",image:IMAGE_PATH+"/sidebar-atlassian.png"},{title:mxResources.get("bootstrap"),id:"bootstrap",image:IMAGE_PATH+"/sidebar-bootstrap.png"},{title:"C4",id:"c4",image:IMAGE_PATH+"/sidebar-c4.png"},{title:"Data Flow Diagram",id:"dfd",image:IMAGE_PATH+"/sidebar-dfd.png"},{title:mxResources.get("entityRelation"),id:"er",image:IMAGE_PATH+"/sidebar-er.png"},-{title:mxResources.get("ios"),id:"ios",image:IMAGE_PATH+"/sidebar-ios.png"},{title:mxResources.get("mockups"),id:"mockups",image:IMAGE_PATH+"/sidebar-mockups.png"},{title:"Sitemap",id:"sitemap",image:IMAGE_PATH+"/sidebar-sitemap.png"},{title:"Salesforce",id:"salesforce",image:IMAGE_PATH+"/sidebar-salesforce.png"},{title:mxResources.get("uml")+" 2.5",id:"uml25",image:IMAGE_PATH+"/sidebar-uml25.png"},{title:mxResources.get("uml"),id:"uml",image:IMAGE_PATH+"/sidebar-uml.png"}]},{title:mxResources.get("networking"),-entries:[{title:"Alibaba Cloud",id:"alibaba_cloud",image:IMAGE_PATH+"/sidebar-alibaba_cloud.png"},{title:"Allied Telesis",id:"allied_telesis",image:IMAGE_PATH+"/sidebar-allied_telesis.png"},{title:"AWS17",id:"aws3",image:IMAGE_PATH+"/sidebar-aws3.png"},{title:"AWS18",id:"aws4b",image:IMAGE_PATH+"/sidebar-aws4b.png"},{title:"AWS "+l,id:"aws4",image:IMAGE_PATH+"/sidebar-aws4.png"},{title:mxResources.get("aws3d"),id:"aws3d",image:IMAGE_PATH+"/sidebar-aws3d.png"},{title:mxResources.get("azure"),id:"azure2",-image:IMAGE_PATH+"/sidebar-azure.png"},{title:"Cloud & Enterprise",id:"mscae",image:IMAGE_PATH+"/sidebar-mscae.png"},{title:mxResources.get("cisco"),id:"cisco",image:IMAGE_PATH+"/sidebar-cisco.png"},{title:"Cisco19",id:"cisco19",image:IMAGE_PATH+"/sidebar-cisco19.png"},{title:"Cisco Safe",id:"cisco_safe",image:IMAGE_PATH+"/sidebar-cisco_safe.png"},{title:"Cumulus",id:"cumulus",image:IMAGE_PATH+"/sidebar-cumulus.png"},{title:"Citrix",id:"citrix2",image:IMAGE_PATH+"/sidebar-citrix2.png"},{title:"Citrix (legacy)",-id:"citrix",image:IMAGE_PATH+"/sidebar-citrix.png"},{title:"Dynamics365",id:"dynamics365",image:IMAGE_PATH+"/sidebar-dynamics365.png"},{title:"Google Cloud Platform",id:"gcp2",image:IMAGE_PATH+"/sidebar-gcp2.png"},{title:"Google Cloud Platform 2026",id:"gcp3",image:IMAGE_PATH+"/sidebar-gcp3.png"},{title:"GCP Icons",id:"gcpicons",image:IMAGE_PATH+"/sidebar-gcpicons.png"},{title:"IBM",id:"ibm",image:IMAGE_PATH+"/sidebar-ibm.png"},{title:"IBM Cloud",id:"ibm_cloud",image:IMAGE_PATH+"/sidebar-ibmcloud.png"},-{title:"Kubernetes",id:"kubernetes",image:IMAGE_PATH+"/sidebar-kubernetes.png"},{title:"Network 2025",id:"network2",image:IMAGE_PATH+"/sidebar-network2.png"},{title:"Network 2018",id:"network",image:IMAGE_PATH+"/sidebar-network.png"},{title:"Office",id:"office",image:IMAGE_PATH+"/sidebar-office.png"},{title:"OpenStack",id:"openstack",image:IMAGE_PATH+"/sidebar-openstack.png"},{title:mxResources.get("rack"),id:"rack",image:IMAGE_PATH+"/sidebar-rack.png"},{title:"SAP",id:"sap",image:IMAGE_PATH+"/sidebar-sap.png"},-{title:"Veeam",id:"veeam2",image:IMAGE_PATH+"/sidebar-veeam.png"},{title:"VMware",id:"vvd",image:IMAGE_PATH+"/sidebar-vvd.png"}]},{title:mxResources.get("business"),entries:[{title:"ArchiMate 4",id:"archimate4",image:IMAGE_PATH+"/sidebar-archimate4.png"},{title:"ArchiMate 3.2",id:"archimate3",image:IMAGE_PATH+"/sidebar-archimate3.png"},{title:mxResources.get("archiMate21"),id:"archimate",image:IMAGE_PATH+"/sidebar-archimate.png"},{title:mxResources.get("bpmn")+" 2.0",id:"bpmn2",image:IMAGE_PATH+"/sidebar-bpmn.png"},-{title:mxResources.get("sysml"),id:"sysml",image:IMAGE_PATH+"/sidebar-sysml.png"},{title:"Value Stream Mapping",id:"lean_mapping",image:IMAGE_PATH+"/sidebar-leanmapping.png"}]},{title:mxResources.get("other"),entries:[{title:mxResources.get("cabinets"),id:"cabinets",image:IMAGE_PATH+"/sidebar-cabinets.png"},{title:"Infographic",id:"infographic",image:IMAGE_PATH+"/sidebar-infographic.png"},{title:mxResources.get("eip"),id:"eip",image:IMAGE_PATH+"/sidebar-eip.png"},{title:mxResources.get("electrical"),-id:"electrical",image:IMAGE_PATH+"/sidebar-electrical.png"},{title:mxResources.get("floorplans"),id:"floorplan",image:IMAGE_PATH+"/sidebar-floorplans.png"},{title:"Fluid Power (ISO 1219)",id:"fluid_power",image:IMAGE_PATH+"/sidebar-fluid_power.png"},{title:mxResources.get("gmdl"),id:"gmdl",image:IMAGE_PATH+"/sidebar-gmdl.png"},{title:mxResources.get("procEng"),id:"pid",image:IMAGE_PATH+"/sidebar-pid.png"},{title:"Threat Modeling",id:"threatModeling",image:IMAGE_PATH+"/sidebar-threatmodeling.png"},-{title:"Web Icons",id:"webicons",image:IMAGE_PATH+"/sidebar-webIcons.png"},{title:mxResources.get("signs"),id:"signs",image:IMAGE_PATH+"/sidebar-signs.png"}]}]};"1"==urlParams.savesidebar&&(Sidebar.prototype.addFoldingHandler=function(k,l,n){var p=!1;k.style.backgroundImage="none"==l.style.display?"url('"+Editor.arrowRightImage+"')":"url('"+Editor.arrowDownImage+"')";var q=document.createElement("button");q.style.margin="0 4px";mxUtils.write(q,"Save");"none"!=l.style.display&&k.appendChild(q);mxEvent.addListener(k,-"click",mxUtils.bind(this,function(r){if("BUTTON"==mxEvent.getSource(r).nodeName){r=l.getElementsByTagName("svg");var t=68*Math.ceil(r.length/6)+36,v=Graph.createSvgNode(0,0,432,t,mxUtils.getLightDarkColor("#ffffff"));v.ownerDocument.documentElement.style.setProperty("--ge-panel-color","#ffffff");v.ownerDocument.documentElement.style.setProperty("--ge-dark-panel-color",Editor.darkColor);var w=new mxSvgCanvas2D(v);w.setFontFamily(mxConstants.DEFAULT_FONTFAMILY);w.setFontStyle(mxConstants.FONT_BOLD);-w.setFontColor("rgb(80, 80, 80)");w.setFontSize(14);for(var u=k.getElementsByTagName("span"),x=0;x<u.length;x++){var y=mxUtils.getTextContent(u[x]);if(""!=y){w.text(6,0,0,0,y);break}}for(x=0;x<r.length;x++)w=r[x].cloneNode(!0),w.removeAttribute("style"),w.setAttribute("width",this.thumbWidth),w.setAttribute("height",this.thumbHeight),w.setAttribute("x",12+68*mxUtils.mod(x,6)),w.setAttribute("y",24+68*Math.floor(x/6)),v.appendChild(w);this.editorUi.editor.convertImages(v,mxUtils.bind(this,function(B){var z=-document.createElement("canvas");z.width=432;z.height=t;var C=document.createElement("img");C.onload=mxUtils.bind(this,function(){z.getContext("2d").drawImage(C,0,0);this.editorUi.saveCanvas(z,null,"png")});B=Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(v);C.src=Editor.createSvgDataUri(B)}))}else{if("none"==l.style.display){if(p)k.appendChild(q);else if(p=!0,null!=n){null!=q.parentNode&&q.parentNode.removeChild(q);k.style.cursor="wait";var A=k.innerHTML;k.innerHTML=mxResources.get("loading")+-"...";window.setTimeout(function(){n(l);k.style.cursor="";k.innerHTML=A;k.appendChild(q)},0)}else k.appendChild(q);k.style.backgroundImage="url('"+Editor.arrowDownImage+"')";l.style.display="block"}else k.style.backgroundImage="url('"+Editor.arrowRightImage+"')",l.style.display="none",null!=q.parentNode&&q.parentNode.removeChild(q);mxEvent.consume(r)}}))});var e=Sidebar.prototype.addPalette;Sidebar.prototype.addPalette=function(k,l,n,p,q){n=this.editorUi.getLibraryExpanded(k,n);l=e.call(this,k,l,-n,p,q);null!=k&&null!=this.palettes[k]&&(this.palettes[k][0]._paletteId=k,n=this.palettes[k][1].firstChild,null!=n&&(n._paletteId=k),"search"!=k&&this.installPaletteDragReorder(this.palettes[k][0],this.palettes[k][1],k),this.installPaletteContextMenu(this.palettes[k][0],k),null!=this._applyOrderTimer&&window.clearTimeout(this._applyOrderTimer),this._applyOrderTimer=window.setTimeout(mxUtils.bind(this,function(){this._applyOrderTimer=null;this.applyPaletteOrder()}),0));return l};var b=Sidebar.prototype.setContentVisible;-Sidebar.prototype.setContentVisible=function(k,l){b.apply(this,arguments);null!=k._paletteId&&this.editorUi.setLibraryExpanded(k._paletteId,l)};Sidebar.prototype.installPaletteDragReorder=function(k,l,n){var p=this,q=mxClient.IS_POINTER?"pointermove":"mousemove",r=mxClient.IS_POINTER?"pointerup":"mouseup";mxEvent.addListener(k,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(t){if(0==t.button){var v=t.clientY,w=!1,u=!1,x=null,y=mxUtils.bind(this,function(B){var z=B.clientY--v;if(w){null!=x&&(k.getBoundingClientRect(),x.style.top=B.clientY-x.offsetHeight/2+"px");z=p.getEntryContainer();for(var C=z.childNodes,D=null,F=0;F<C.length;F++){var E=C[F];if(!(null==E._paletteId||null==E.className||0>E.className.indexOf("geTitle")||"search"==E._paletteId||"none"==E.style.display||E._paletteId==n)){var G=E.getBoundingClientRect(),H=E.nextSibling;H=null!=H&&null!=H.firstChild&&"none"!=H.firstChild.style.display?H.getBoundingClientRect().bottom:G.bottom;if(B.clientY<(G.top+H)/2){D=-E;break}}}null!=D?l.nextSibling!=D&&(z.insertBefore(k,D),z.insertBefore(l,D),u=!0):z.lastChild!=l&&(z.appendChild(k),z.appendChild(l),u=!0);C=z.getBoundingClientRect();30>B.clientY-C.top?z.scrollTop-=10:30>C.bottom-B.clientY&&(z.scrollTop+=10);B.preventDefault()}else 20<Math.abs(z)&&(w=!0,p._paletteDragging=!0,p.container.classList.add("gePaletteDragging"),z=k.getBoundingClientRect(),x=k.cloneNode(!0),x.style.position="fixed",x.style.zIndex="10001",x.style.width=z.width+"px",x.style.left=z.left+"px",-x.style.top=B.clientY-z.height/2+"px",x.style.pointerEvents="none",x.style.opacity="0.8",x.style.boxShadow="0 2px 8px rgba(0,0,0,0.15)",document.body.appendChild(x),k.classList.add("gePaletteDragPlaceholder"),l.style.display="none")}),A=mxUtils.bind(this,function(B){w&&u&&p.savePaletteOrder();w&&(p.container.classList.remove("gePaletteDragging"),k.classList.remove("gePaletteDragPlaceholder"),l.style.display="",null!=x&&null!=x.parentNode&&(x.parentNode.removeChild(x),x=null),window.setTimeout(function(){p._paletteDragging=-!1},100));document.removeEventListener(q,y);document.removeEventListener(r,A)});document.addEventListener(q,y);document.addEventListener(r,A)}}))};Sidebar.prototype.installPaletteContextMenu=function(k,l){var n=this;mxEvent.addListener(k,"contextmenu",mxUtils.bind(this,function(p){mxEvent.consume(p);var q=document.createElement("div");q.className="mxPopupMenu geMenubarMenu";q.style.position="absolute";q.style.zIndex="10001";q.style.left=p.clientX+"px";q.style.top=p.clientY+"px";p=document.createElement("table");-p.className="mxPopupMenu";var r=document.createElement("tbody");p.appendChild(r);q.appendChild(p);var t=function(){null!=q.parentNode&&q.parentNode.removeChild(q);document.removeEventListener("mousedown",v)},v=function(x){q.contains(x.target)||t()};p=function(x,y){var A=document.createElement("tr");A.className="mxPopupMenuItem";var B=document.createElement("td");B.className="mxPopupMenuItem";B.style.padding="6px 10px";B.style.cursor="pointer";mxUtils.write(B,x);A.appendChild(B);r.appendChild(A);mxEvent.addListener(A,-"mouseup",function(){t();y()});mxEvent.addListener(A,"mouseenter",function(){A.className="mxPopupMenuItem mxPopupMenuItemHover"});mxEvent.addListener(A,"mouseleave",function(){A.className="mxPopupMenuItem"})};var w=function(){var x=document.createElement("tr"),y=document.createElement("td");y.style.padding="0";var A=document.createElement("hr");A.style.cssText="border:none;border-top:1px solid light-dark(#e0e0e0,#444);margin:4px 0";y.appendChild(A);x.appendChild(y);r.appendChild(x)},u=n.palettes[l];-u=null!=u?u[1].firstChild:null;p(mxResources.get(null!=u&&"none"!=u.style.display?"collapse":"expand"),function(){k.click()});w();p(mxResources.get("collapseAll"),function(){n.setAllPalettesExpanded(!1)});p(mxResources.get("expandAll"),function(){n.setAllPalettesExpanded(!0)});"search"!=l&&null!=mxSettings.getLibraryOrder()&&(w(),p(mxResources.get("reset"),function(){n.resetPaletteOrder()}));document.body.appendChild(q);mxUtils.fit(q);document.addEventListener("mousedown",v)}))};Sidebar.prototype.setAllPalettesExpanded=-function(k){for(var l in this.palettes){var n=this.palettes[l];if(null!=n){var p=n[0];n=n[1].firstChild;null!=p&&null!=n&&"none"!=n.style.display!=k&&p.click()}}};Sidebar.prototype.movePalette=function(k,l){var n=this.palettes[k];if(null!=n){k=n[0];n=n[1];var p=this.getEntryContainer();null!=l?(l=this.palettes[l],null!=l&&(p.insertBefore(k,l[0]),p.insertBefore(n,l[0]))):(p.appendChild(k),p.appendChild(n));this.savePaletteOrder()}};Sidebar.prototype.getCurrentPaletteOrder=function(){for(var k=[],l=-this.getEntryContainer().childNodes,n=0;n<l.length;n++)null!=l[n]._paletteId&&null!=l[n].className&&0<=l[n].className.indexOf("geTitle")&&k.push(l[n]._paletteId);return k};Sidebar.prototype.savePaletteOrder=function(){var k=this.getCurrentPaletteOrder();mxSettings.setLibraryOrder(k);mxSettings.save()};Sidebar.prototype.applyPaletteOrder=function(){var k=mxSettings.getLibraryOrder();if(null!=k&&0!=k.length)for(var l=this.getEntryContainer(),n=0;n<k.length;n++){var p=this.palettes[k[n]];null!=p&&p[0].parentNode==-l&&(l.appendChild(p[0]),l.appendChild(p[1]))}};Sidebar.prototype.resetPaletteOrder=function(){mxSettings.setLibraryOrder(null);mxSettings.save();if(null!=this.defaultPaletteOrder)for(var k=this.getEntryContainer(),l=0;l<this.defaultPaletteOrder.length;l++){var n=this.palettes[this.defaultPaletteOrder[l]];null!=n&&n[0].parentNode==k&&(k.appendChild(n[0]),k.appendChild(n[1]))}};Sidebar.prototype.extractShapeStyle=function(k){if(null!=k&&"shape="==k.substring(0,6)){var l=k.indexOf(";");0>l&&(l=k.length);-return k.substring(6,l)}return null};var d=Sidebar.prototype.getTagsForStencil;Sidebar.prototype.getTagsForStencil=function(k,l,n){var p=d.apply(this,arguments);null!=this.shapetags&&(k=k.toLowerCase(),l=l.toLowerCase(),null!=this.shapetags[k]&&p.push(this.shapetags[k]),l=k+"."+l,null!=this.shapetags[l]&&p.push(this.shapetags[l]));return p};Sidebar.prototype.addTagIndex=function(k){k=String(k).split("\n");for(var l=0;l<k.length;l++)if(null!=k[l]){var n=k[l].split("\t");if(1<n.length){var p=n[0].toLowerCase().replace(" ",-"_");n=mxUtils.trim(n.slice(1,n.length).join(" ").toLowerCase());0<n.length&&(this.shapetags[p]=n)}}};Sidebar.prototype.getUniqueLibraries=function(k){for(var l={},n=[],p=0;p<k.length;p++){var q=JSON.stringify(k[p]);null==l[q]&&(l[q]=!0,n.push(k[p]))}return n};Sidebar.prototype.openLibraries=function(k){k=this.getUniqueLibraries(k);for(var l=null,n=0;n<k.length;n++){var p=this.getConfigurationById(k[n].id);null!=p&&(p=this.openLibrary(p,k[n].lib||k[n].id),null!=p&&null==l&&(l=p))}null!=l&&window.setTimeout(function(){l[0].scrollIntoView({behavior:"smooth"})},-0)};Sidebar.prototype.openLibrary=function(k,l){this.showPalettes(k.prefix||"",k.libs||[k.id],!0);k=this.showPalette(l,!0);null!=k&&1<k.length&&null!=k[1].firstChild&&(null==k[1].firstChild.firstChild||"none"==k[1].firstChild.style.display)&&k[0].click();return k};Sidebar.prototype.showPopupMenuForEntry=function(k,l,n){if(null!=l&&0<l.length){var p=mxUtils.getOffset(k);this.editorUi.showPopupMenu(mxUtils.bind(this,function(q,r){q.addItem(mxResources.get("openLibrary"),null,mxUtils.bind(this,function(){this.openLibraries(l)}))}),-p.x,p.y+k.offsetHeight,n);mxEvent.consume(n)}};Sidebar.prototype.addSearchIndex=function(k){if(null!=k)for(var l=0;l<k.length;l++)if(null!=k[l].style){var n=k[l].style,p=this.extractShapeStyle(n);if(null!=p){var q=p.lastIndexOf(".");if(0<q){var r=p.substring(0,q);p=p.substring(q+1,p.length);q=this.getTagsForStencil(r,p,k[l].tags);if(null!=q){var t=n.indexOf(";");n="shape="+r+"."+p.toLowerCase()+";"+(0>t?"":n.substring(t+1));this.setCurrentSearchEntryLibrary(k[l].id,k[l].lib);this.createVertexTemplateEntry(n,-parseInt(k[l].w),parseInt(k[l].h),"",p.replace(/_/g," "),null,null,this.filterTags(q.join(" ")));null!=this.currentSearchEntryLibrary&&this.addLibForStyle(this.getKeyStyle(n),this.currentSearchEntryLibrary);this.setCurrentSearchEntryLibrary()}}}}};Sidebar.prototype.initPalettes=function(){var k=GRAPH_IMAGE_PATH,l=STENCIL_PATH,n=this.signs,p=this.rack,q=this.pids,r=this.cisco,t=this.sysml;"1"==urlParams.createindex&&(this.createdSearchIndex=[]);this.addSearchPalette(!0);this.appendCustomLibraries||-this.addCustomEntries();this.addGeneralPalette(null==this.customEntries);this.addMiscPalette(!1);this.addAdvancedPalette(!1);this.addBasicPalette();this.addStencilPalette("arrows",mxResources.get("arrows"),l+"/arrows.xml",";html=1;"+mxConstants.STYLE_VERTICAL_LABEL_POSITION+"=bottom;"+mxConstants.STYLE_VERTICAL_ALIGN+"=top;"+mxConstants.STYLE_STROKEWIDTH+"=2;strokeColor=#000000;",null,null,null,null,null,"arrows");this.addArrows2Palette();this.setCurrentSearchEntryLibrary("clipart","computer");this.addImagePalette("computer",-"Clipart / Computer",k+"/lib/clip_art/computers/","_128x128.png","Antivirus Data_Filtering Database Database_Add Database_Minus Database_Move_Stack Database_Remove Fujitsu_Tablet Harddrive IBM_Tablet iMac iPad Laptop MacBook Mainframe Monitor Monitor_Tower Monitor_Tower_Behind Netbook Network Network_2 Printer Printer_Commercial Secure_System Server Server_Rack Server_Rack_Empty Server_Rack_Partial Server_Tower Software Stylus Touch USB_Hub Virtual_Application Virtual_Machine Virus Workstation".split(" "),+{id:"veeam2",prefix:"veeam2",libs:Sidebar.prototype.veeam2},{id:"cabinets",libs:["cabinets"]},{id:"floorplan",libs:["floorplan"]},{id:"bootstrap",libs:["bootstrap"]},{id:"atlassian",libs:["atlassian"]},{id:"atlassian2",prefix:"atlassian2",libs:["Apps","Work Types","Logos"]},{id:"fluid_power",libs:["fluid_power"]},{id:"gmdl",prefix:"gmdl",libs:Sidebar.prototype.gmdl},{id:"archimate4",prefix:"archimate4",libs:Sidebar.prototype.archimate4},{id:"archimate3",prefix:"archimate3",libs:Sidebar.prototype.archimate3},+{id:"archimate",libs:["archimate"]},{id:"webicons",libs:["webicons","weblogos"]},{id:"sysml",prefix:"sysml",libs:Sidebar.prototype.sysml}];var a=Sidebar.prototype.addEntry;Sidebar.prototype.addEntry=function(k,l){return null!=this.currentSearchEntryLibrary&&null!=this.enabledLibraries&&0>mxUtils.indexOf(this.enabledLibraries,this.currentSearchEntryLibrary.id)?l:a.apply(this,arguments)};var c=Sidebar.prototype.refresh;Sidebar.prototype.refresh=function(){var k=this.editorUi;c.apply(this,arguments);+null!=k.scratchpad&&k.loadLibrary(new StorageLibrary(k,k.scratchpad.getData(),".scratchpad"))};Sidebar.prototype.togglePalettes=function(k,l){this.showPalettes(k,l)};Sidebar.prototype.togglePalette=function(k){this.showPalette(k)};Sidebar.prototype.showPalettes=function(k,l,n){for(var p=[],q=0;q<l.length;q++)p=p.concat(this.showPalette(k+l[q],n));return p};Sidebar.prototype.showPalette=function(k,l){k=this.palettes[k];if(null!=k){l=null!=l?l?"":"none":"none"==k[0].style.display?"":"none";for(var n=+0;n<k.length;n++)k[n].style.display=l}return k};Sidebar.prototype.getConfigurationById=function(k){for(var l=0;l<this.configuration.length;l++)if(this.configuration[l].id==k)return this.configuration[l];if(null!=this.customEntries)for(l=0;l<this.customEntries.length;l++)for(var n=this.customEntries[l]||{},p=0;null!=n.entries&&p<n.entries.length;p++){var q=n.entries[p];if(q.id==k)return{id:q.id,libs:q.libs}}return null};Sidebar.prototype.isEntryVisible=function(k){if(".scratchpad"==k)return null!=+this.editorUi.scratchpad;var l=this.getConfigurationById(k);if(null!=l){var n=this.palettes[null!=l.libs?(l.prefix||"")+l.libs[0]:k];if(null!=n)return"none"!=n[0].style.display}if(null!=this.customEntries)for(l=0;l<this.customEntries.length;l++){n=this.customEntries[l]||{};for(var p=0;null!=n.entries&&p<n.entries.length;p++){var q=n.entries[p];if(q.id==k){if(null!=q.libs&&0<q.libs.length&&(n=this.palettes[q.id+".0"],null!=n))return"none"!=n[0].style.display;break}}}return!1};Sidebar.prototype.showEntries=+function(k,l,n){var p=[];l&&(mxSettings.setLibraries(k),mxSettings.save());null!=k&&(n||0<k.length)?p.push(k):(k=!1,null!=urlParams.libs&&0<urlParams.libs.length&&(p.push(decodeURIComponent(urlParams.libs)),k="draw.io"==this.editorUi.getServiceName()),k||(null!=mxSettings&&null!=mxSettings.settings?p.push(mxSettings.getLibraries()):p.push(this.defaultEntries)));l=p.join(";").split(";");p={};for(k=0;k<l.length;k++)p[this.libAliases[l[k]]||l[k]]=!0;for(k=0;k<this.configuration.length;k++)"search"!=+this.configuration[k].id&&this.showPalettes(this.configuration[k].prefix||"",this.configuration[k].libs||[this.configuration[k].id],1==p[this.configuration[k].id]);if(null!=this.customEntries)for(k=0;k<this.customEntries.length;k++)for(l=this.customEntries[k]||{},n=0;null!=l.entries&&n<l.entries.length;n++){var q=l.entries[n];if(null!=q.libs&&0<q.libs.length){for(var r=[],t=0;t<q.libs.length;t++)r.push(q.id+"."+t);this.showPalettes("",r,1==p[q.id])}}};Sidebar.prototype.init=function(){this.updateEntries();+this.addStencilsToIndex=!1;this.shapetags={};null!=this.tagIndex&&(this.addTagIndex(Graph.decompress(this.tagIndex)),this.tagIndex=null);this.initPalettes();this.defaultPaletteOrder=this.getCurrentPaletteOrder();this.applyPaletteOrder()};Sidebar.prototype.updateEntries=function(){var k=[{title:mxResources.get("general"),id:"general",image:IMAGE_PATH+"/sidebar-general.png"},{title:mxResources.get("basic"),id:"basic",image:IMAGE_PATH+"/sidebar-basic.png"},{title:mxResources.get("arrows"),id:"arrows2",+image:IMAGE_PATH+"/sidebar-arrows2.png"},{title:mxResources.get("clipart"),id:"clipart",image:IMAGE_PATH+"/sidebar-clipart.png"},{title:mxResources.get("flowchart"),id:"flowchart",image:IMAGE_PATH+"/sidebar-flowchart.png"}];if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme)k=[{title:mxResources.get("searchShapes"),id:"search"},{title:mxResources.get("scratchpad"),id:".scratchpad"}].concat(k);var l=(new Date).getFullYear();this.entries=[{title:mxResources.get("standard"),+entries:k},{title:mxResources.get("software"),entries:[{title:"Active Directory",id:"active_directory",image:IMAGE_PATH+"/sidebar-active_directory.png"},{title:mxResources.get("android"),id:"android",image:IMAGE_PATH+"/sidebar-android.png"},{title:"Atlassian",id:"atlassian2",image:IMAGE_PATH+"/sidebar-atlassian2.png"},{title:"Atlassian (legacy)",id:"atlassian",image:IMAGE_PATH+"/sidebar-atlassian.png"},{title:mxResources.get("bootstrap"),id:"bootstrap",image:IMAGE_PATH+"/sidebar-bootstrap.png"},{title:"C4",+id:"c4",image:IMAGE_PATH+"/sidebar-c4.png"},{title:"Data Flow Diagram",id:"dfd",image:IMAGE_PATH+"/sidebar-dfd.png"},{title:mxResources.get("entityRelation"),id:"er",image:IMAGE_PATH+"/sidebar-er.png"},{title:mxResources.get("ios"),id:"ios",image:IMAGE_PATH+"/sidebar-ios.png"},{title:mxResources.get("mockups"),id:"mockups",image:IMAGE_PATH+"/sidebar-mockups.png"},{title:"Sitemap",id:"sitemap",image:IMAGE_PATH+"/sidebar-sitemap.png"},{title:"Salesforce",id:"salesforce",image:IMAGE_PATH+"/sidebar-salesforce.png"},+{title:mxResources.get("uml")+" 2.5",id:"uml25",image:IMAGE_PATH+"/sidebar-uml25.png"},{title:mxResources.get("uml"),id:"uml",image:IMAGE_PATH+"/sidebar-uml.png"}]},{title:mxResources.get("networking"),entries:[{title:"Alibaba Cloud",id:"alibaba_cloud",image:IMAGE_PATH+"/sidebar-alibaba_cloud.png"},{title:"Allied Telesis",id:"allied_telesis",image:IMAGE_PATH+"/sidebar-allied_telesis.png"},{title:"AWS17",id:"aws3",image:IMAGE_PATH+"/sidebar-aws3.png"},{title:"AWS18",id:"aws4b",image:IMAGE_PATH+"/sidebar-aws4b.png"},+{title:"AWS "+l,id:"aws4",image:IMAGE_PATH+"/sidebar-aws4.png"},{title:mxResources.get("aws3d"),id:"aws3d",image:IMAGE_PATH+"/sidebar-aws3d.png"},{title:mxResources.get("azure"),id:"azure2",image:IMAGE_PATH+"/sidebar-azure.png"},{title:"Cloud & Enterprise",id:"mscae",image:IMAGE_PATH+"/sidebar-mscae.png"},{title:mxResources.get("cisco"),id:"cisco",image:IMAGE_PATH+"/sidebar-cisco.png"},{title:"Cisco19",id:"cisco19",image:IMAGE_PATH+"/sidebar-cisco19.png"},{title:"Cisco Safe",id:"cisco_safe",image:IMAGE_PATH++"/sidebar-cisco_safe.png"},{title:"Cumulus",id:"cumulus",image:IMAGE_PATH+"/sidebar-cumulus.png"},{title:"Citrix",id:"citrix2",image:IMAGE_PATH+"/sidebar-citrix2.png"},{title:"Citrix (legacy)",id:"citrix",image:IMAGE_PATH+"/sidebar-citrix.png"},{title:"Dynamics365",id:"dynamics365",image:IMAGE_PATH+"/sidebar-dynamics365.png"},{title:"Google Cloud Platform",id:"gcp2",image:IMAGE_PATH+"/sidebar-gcp2.png"},{title:"Google Cloud Platform 2026",id:"gcp3",image:IMAGE_PATH+"/sidebar-gcp3.png"},{title:"GCP Icons",+id:"gcpicons",image:IMAGE_PATH+"/sidebar-gcpicons.png"},{title:"IBM",id:"ibm",image:IMAGE_PATH+"/sidebar-ibm.png"},{title:"IBM Cloud",id:"ibm_cloud",image:IMAGE_PATH+"/sidebar-ibmcloud.png"},{title:"Kubernetes",id:"kubernetes",image:IMAGE_PATH+"/sidebar-kubernetes.png"},{title:"Network 2025",id:"network2",image:IMAGE_PATH+"/sidebar-network2.png"},{title:"Network 2018",id:"network",image:IMAGE_PATH+"/sidebar-network.png"},{title:"Office",id:"office",image:IMAGE_PATH+"/sidebar-office.png"},{title:"OpenStack",+id:"openstack",image:IMAGE_PATH+"/sidebar-openstack.png"},{title:mxResources.get("rack"),id:"rack",image:IMAGE_PATH+"/sidebar-rack.png"},{title:"SAP",id:"sap",image:IMAGE_PATH+"/sidebar-sap.png"},{title:"Veeam",id:"veeam2",image:IMAGE_PATH+"/sidebar-veeam.png"},{title:"VMware",id:"vvd",image:IMAGE_PATH+"/sidebar-vvd.png"}]},{title:mxResources.get("business"),entries:[{title:"ArchiMate 4",id:"archimate4",image:IMAGE_PATH+"/sidebar-archimate4.png"},{title:"ArchiMate 3.2",id:"archimate3",image:IMAGE_PATH++"/sidebar-archimate3.png"},{title:mxResources.get("archiMate21"),id:"archimate",image:IMAGE_PATH+"/sidebar-archimate.png"},{title:mxResources.get("bpmn")+" 2.0",id:"bpmn2",image:IMAGE_PATH+"/sidebar-bpmn.png"},{title:mxResources.get("sysml"),id:"sysml",image:IMAGE_PATH+"/sidebar-sysml.png"},{title:"Value Stream Mapping",id:"lean_mapping",image:IMAGE_PATH+"/sidebar-leanmapping.png"}]},{title:mxResources.get("other"),entries:[{title:mxResources.get("cabinets"),id:"cabinets",image:IMAGE_PATH+"/sidebar-cabinets.png"},+{title:"Infographic",id:"infographic",image:IMAGE_PATH+"/sidebar-infographic.png"},{title:mxResources.get("eip"),id:"eip",image:IMAGE_PATH+"/sidebar-eip.png"},{title:mxResources.get("electrical"),id:"electrical",image:IMAGE_PATH+"/sidebar-electrical.png"},{title:mxResources.get("floorplans"),id:"floorplan",image:IMAGE_PATH+"/sidebar-floorplans.png"},{title:"Fluid Power (ISO 1219)",id:"fluid_power",image:IMAGE_PATH+"/sidebar-fluid_power.png"},{title:mxResources.get("gmdl"),id:"gmdl",image:IMAGE_PATH++"/sidebar-gmdl.png"},{title:mxResources.get("procEng"),id:"pid",image:IMAGE_PATH+"/sidebar-pid.png"},{title:"Threat Modeling",id:"threatModeling",image:IMAGE_PATH+"/sidebar-threatmodeling.png"},{title:"Web Icons",id:"webicons",image:IMAGE_PATH+"/sidebar-webIcons.png"},{title:mxResources.get("signs"),id:"signs",image:IMAGE_PATH+"/sidebar-signs.png"}]}]};"1"==urlParams.savesidebar&&(Sidebar.prototype.addFoldingHandler=function(k,l,n){var p=!1;k.style.backgroundImage="none"==l.style.display?"url('"++Editor.arrowRightImage+"')":"url('"+Editor.arrowDownImage+"')";var q=document.createElement("button");q.style.margin="0 4px";mxUtils.write(q,"Save");"none"!=l.style.display&&k.appendChild(q);mxEvent.addListener(k,"click",mxUtils.bind(this,function(r){if("BUTTON"==mxEvent.getSource(r).nodeName){r=l.getElementsByTagName("svg");var t=68*Math.ceil(r.length/6)+36,v=Graph.createSvgNode(0,0,432,t,mxUtils.getLightDarkColor("#ffffff"));v.ownerDocument.documentElement.style.setProperty("--ge-panel-color","#ffffff");+v.ownerDocument.documentElement.style.setProperty("--ge-dark-panel-color",Editor.darkColor);var w=new mxSvgCanvas2D(v);w.setFontFamily(mxConstants.DEFAULT_FONTFAMILY);w.setFontStyle(mxConstants.FONT_BOLD);w.setFontColor("rgb(80, 80, 80)");w.setFontSize(14);for(var u=k.getElementsByTagName("span"),x=0;x<u.length;x++){var y=mxUtils.getTextContent(u[x]);if(""!=y){w.text(6,0,0,0,y);break}}for(x=0;x<r.length;x++)w=r[x].cloneNode(!0),w.removeAttribute("style"),w.setAttribute("width",this.thumbWidth),w.setAttribute("height",+this.thumbHeight),w.setAttribute("x",12+68*mxUtils.mod(x,6)),w.setAttribute("y",24+68*Math.floor(x/6)),v.appendChild(w);this.editorUi.editor.convertImages(v,mxUtils.bind(this,function(B){var z=document.createElement("canvas");z.width=432;z.height=t;var C=document.createElement("img");C.onload=mxUtils.bind(this,function(){z.getContext("2d").drawImage(C,0,0);this.editorUi.saveCanvas(z,null,"png")});B=Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(v);C.src=Editor.createSvgDataUri(B)}))}else{if("none"==+l.style.display){if(p)k.appendChild(q);else if(p=!0,null!=n){null!=q.parentNode&&q.parentNode.removeChild(q);k.style.cursor="wait";var A=k.innerHTML;k.innerHTML=mxResources.get("loading")+"...";window.setTimeout(function(){n(l);k.style.cursor="";k.innerHTML=A;k.appendChild(q)},0)}else k.appendChild(q);k.style.backgroundImage="url('"+Editor.arrowDownImage+"')";l.style.display="block"}else k.style.backgroundImage="url('"+Editor.arrowRightImage+"')",l.style.display="none",null!=q.parentNode&&q.parentNode.removeChild(q);+mxEvent.consume(r)}}))});var e=Sidebar.prototype.addPalette;Sidebar.prototype.addPalette=function(k,l,n,p,q){n=this.editorUi.getLibraryExpanded(k,n);l=e.call(this,k,l,n,p,q);null!=k&&null!=this.palettes[k]&&(this.palettes[k][0]._paletteId=k,n=this.palettes[k][1].firstChild,null!=n&&(n._paletteId=k),"search"!=k&&this.installPaletteDragReorder(this.palettes[k][0],this.palettes[k][1],k),this.installPaletteContextMenu(this.palettes[k][0],k),null!=this._applyOrderTimer&&window.clearTimeout(this._applyOrderTimer),+this._applyOrderTimer=window.setTimeout(mxUtils.bind(this,function(){this._applyOrderTimer=null;this.applyPaletteOrder()}),0));return l};var b=Sidebar.prototype.setContentVisible;Sidebar.prototype.setContentVisible=function(k,l){b.apply(this,arguments);null!=k._paletteId&&this.editorUi.setLibraryExpanded(k._paletteId,l)};Sidebar.prototype.installPaletteDragReorder=function(k,l,n){var p=this,q=mxClient.IS_POINTER?"pointermove":"mousemove",r=mxClient.IS_POINTER?"pointerup":"mouseup";mxEvent.addListener(k,+mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(t){if(0==t.button){var v=t.clientY,w=!1,u=!1,x=null,y=mxUtils.bind(this,function(B){var z=B.clientY-v;if(w){null!=x&&(k.getBoundingClientRect(),x.style.top=B.clientY-x.offsetHeight/2+"px");z=p.getEntryContainer();for(var C=z.childNodes,D=null,F=0;F<C.length;F++){var E=C[F];if(!(null==E._paletteId||null==E.className||0>E.className.indexOf("geTitle")||"search"==E._paletteId||"none"==E.style.display||E._paletteId==n)){var G=E.getBoundingClientRect(),+H=E.nextSibling;H=null!=H&&null!=H.firstChild&&"none"!=H.firstChild.style.display?H.getBoundingClientRect().bottom:G.bottom;if(B.clientY<(G.top+H)/2){D=E;break}}}null!=D?l.nextSibling!=D&&(z.insertBefore(k,D),z.insertBefore(l,D),u=!0):z.lastChild!=l&&(z.appendChild(k),z.appendChild(l),u=!0);C=z.getBoundingClientRect();30>B.clientY-C.top?z.scrollTop-=10:30>C.bottom-B.clientY&&(z.scrollTop+=10);B.preventDefault()}else 20<Math.abs(z)&&(w=!0,p._paletteDragging=!0,p.container.classList.add("gePaletteDragging"),+z=k.getBoundingClientRect(),x=k.cloneNode(!0),x.style.position="fixed",x.style.zIndex="10001",x.style.width=z.width+"px",x.style.left=z.left+"px",x.style.top=B.clientY-z.height/2+"px",x.style.pointerEvents="none",x.style.opacity="0.8",x.style.boxShadow="0 2px 8px rgba(0,0,0,0.15)",document.body.appendChild(x),k.classList.add("gePaletteDragPlaceholder"),l.style.display="none")}),A=mxUtils.bind(this,function(B){w&&u&&p.savePaletteOrder();w&&(p.container.classList.remove("gePaletteDragging"),k.classList.remove("gePaletteDragPlaceholder"),+l.style.display="",null!=x&&null!=x.parentNode&&(x.parentNode.removeChild(x),x=null),window.setTimeout(function(){p._paletteDragging=!1},100));document.removeEventListener(q,y);document.removeEventListener(r,A)});document.addEventListener(q,y);document.addEventListener(r,A)}}))};Sidebar.prototype.installPaletteContextMenu=function(k,l){var n=this;mxEvent.addListener(k,"contextmenu",mxUtils.bind(this,function(p){mxEvent.consume(p);var q=document.createElement("div");q.className="mxPopupMenu geMenubarMenu";+q.style.position="absolute";q.style.zIndex="10001";q.style.left=p.clientX+"px";q.style.top=p.clientY+"px";p=document.createElement("table");p.className="mxPopupMenu";var r=document.createElement("tbody");p.appendChild(r);q.appendChild(p);var t=function(){null!=q.parentNode&&q.parentNode.removeChild(q);document.removeEventListener("mousedown",v)},v=function(x){q.contains(x.target)||t()};p=function(x,y){var A=document.createElement("tr");A.className="mxPopupMenuItem";var B=document.createElement("td");+B.className="mxPopupMenuItem";B.style.padding="6px 10px";B.style.cursor="pointer";mxUtils.write(B,x);A.appendChild(B);r.appendChild(A);mxEvent.addListener(A,"mouseup",function(){t();y()});mxEvent.addListener(A,"mouseenter",function(){A.className="mxPopupMenuItem mxPopupMenuItemHover"});mxEvent.addListener(A,"mouseleave",function(){A.className="mxPopupMenuItem"})};var w=function(){var x=document.createElement("tr"),y=document.createElement("td");y.style.padding="0";var A=document.createElement("hr");+A.style.cssText="border:none;border-top:1px solid light-dark(#e0e0e0,#444);margin:4px 0";y.appendChild(A);x.appendChild(y);r.appendChild(x)},u=n.palettes[l];u=null!=u?u[1].firstChild:null;p(mxResources.get(null!=u&&"none"!=u.style.display?"collapse":"expand"),function(){k.click()});w();p(mxResources.get("collapseAll"),function(){n.setAllPalettesExpanded(!1)});p(mxResources.get("expandAll"),function(){n.setAllPalettesExpanded(!0)});"search"!=l&&null!=mxSettings.getLibraryOrder()&&(w(),p(mxResources.get("reset"),+function(){n.resetPaletteOrder()}));document.body.appendChild(q);mxUtils.fit(q);document.addEventListener("mousedown",v)}))};Sidebar.prototype.setAllPalettesExpanded=function(k){for(var l in this.palettes){var n=this.palettes[l];if(null!=n){var p=n[0];n=n[1].firstChild;null!=p&&null!=n&&"none"!=n.style.display!=k&&p.click()}}};Sidebar.prototype.movePalette=function(k,l){var n=this.palettes[k];if(null!=n){k=n[0];n=n[1];var p=this.getEntryContainer();null!=l?(l=this.palettes[l],null!=l&&(p.insertBefore(k,+l[0]),p.insertBefore(n,l[0]))):(p.appendChild(k),p.appendChild(n));this.savePaletteOrder()}};Sidebar.prototype.getCurrentPaletteOrder=function(){for(var k=[],l=this.getEntryContainer().childNodes,n=0;n<l.length;n++)null!=l[n]._paletteId&&null!=l[n].className&&0<=l[n].className.indexOf("geTitle")&&k.push(l[n]._paletteId);return k};Sidebar.prototype.savePaletteOrder=function(){var k=this.getCurrentPaletteOrder();mxSettings.setLibraryOrder(k);mxSettings.save()};Sidebar.prototype.applyPaletteOrder=function(){var k=+mxSettings.getLibraryOrder();if(null!=k&&0!=k.length)for(var l=this.getEntryContainer(),n=0;n<k.length;n++){var p=this.palettes[k[n]];null!=p&&p[0].parentNode==l&&(l.appendChild(p[0]),l.appendChild(p[1]))}};Sidebar.prototype.resetPaletteOrder=function(){mxSettings.setLibraryOrder(null);mxSettings.save();if(null!=this.defaultPaletteOrder)for(var k=this.getEntryContainer(),l=0;l<this.defaultPaletteOrder.length;l++){var n=this.palettes[this.defaultPaletteOrder[l]];null!=n&&n[0].parentNode==k&&(k.appendChild(n[0]),+k.appendChild(n[1]))}};Sidebar.prototype.extractShapeStyle=function(k){if(null!=k&&"shape="==k.substring(0,6)){var l=k.indexOf(";");0>l&&(l=k.length);return k.substring(6,l)}return null};var d=Sidebar.prototype.getTagsForStencil;Sidebar.prototype.getTagsForStencil=function(k,l,n){var p=d.apply(this,arguments);null!=this.shapetags&&(k=k.toLowerCase(),l=l.toLowerCase(),null!=this.shapetags[k]&&p.push(this.shapetags[k]),l=k+"."+l,null!=this.shapetags[l]&&p.push(this.shapetags[l]));return p};Sidebar.prototype.addTagIndex=+function(k){k=String(k).split("\n");for(var l=0;l<k.length;l++)if(null!=k[l]){var n=k[l].split("\t");if(1<n.length){var p=n[0].toLowerCase().replace(" ","_");n=mxUtils.trim(n.slice(1,n.length).join(" ").toLowerCase());0<n.length&&(this.shapetags[p]=n)}}};Sidebar.prototype.getUniqueLibraries=function(k){for(var l={},n=[],p=0;p<k.length;p++){var q=JSON.stringify(k[p]);null==l[q]&&(l[q]=!0,n.push(k[p]))}return n};Sidebar.prototype.openLibraries=function(k){k=this.getUniqueLibraries(k);for(var l=null,+n=0;n<k.length;n++){var p=this.getConfigurationById(k[n].id);null!=p&&(p=this.openLibrary(p,k[n].lib||k[n].id),null!=p&&null==l&&(l=p))}null!=l&&window.setTimeout(function(){l[0].scrollIntoView({behavior:"smooth"})},0)};Sidebar.prototype.openLibrary=function(k,l){this.showPalettes(k.prefix||"",k.libs||[k.id],!0);k=this.showPalette(l,!0);null!=k&&1<k.length&&null!=k[1].firstChild&&(null==k[1].firstChild.firstChild||"none"==k[1].firstChild.style.display)&&k[0].click();return k};Sidebar.prototype.showPopupMenuForEntry=+function(k,l,n){if(null!=l&&0<l.length){var p=mxUtils.getOffset(k);this.editorUi.showPopupMenu(mxUtils.bind(this,function(q,r){q.addItem(mxResources.get("openLibrary"),null,mxUtils.bind(this,function(){this.openLibraries(l)}))}),p.x,p.y+k.offsetHeight,n);mxEvent.consume(n)}};Sidebar.prototype.addSearchIndex=function(k){if(null!=k)for(var l=0;l<k.length;l++)if(null!=k[l].style){var n=k[l].style,p=this.extractShapeStyle(n);if(null!=p){var q=p.lastIndexOf(".");if(0<q){var r=p.substring(0,q);p=p.substring(q++1,p.length);q=this.getTagsForStencil(r,p,k[l].tags);if(null!=q){var t=n.indexOf(";");n="shape="+r+"."+p.toLowerCase()+";"+(0>t?"":n.substring(t+1));this.setCurrentSearchEntryLibrary(k[l].id,k[l].lib);this.createVertexTemplateEntry(n,parseInt(k[l].w),parseInt(k[l].h),"",p.replace(/_/g," "),null,null,this.filterTags(q.join(" ")));null!=this.currentSearchEntryLibrary&&this.addLibForStyle(this.getKeyStyle(n),this.currentSearchEntryLibrary);this.setCurrentSearchEntryLibrary()}}}}};Sidebar.prototype.initPalettes=+function(){var k=GRAPH_IMAGE_PATH,l=STENCIL_PATH,n=this.signs,p=this.rack,q=this.pids,r=this.cisco,t=this.sysml;"1"==urlParams.createindex&&(this.createdSearchIndex=[]);this.addSearchPalette(!0);this.appendCustomLibraries||this.addCustomEntries();this.addGeneralPalette(null==this.customEntries);this.addMiscPalette(!1);this.addAdvancedPalette(!1);this.addBasicPalette();this.addStencilPalette("arrows",mxResources.get("arrows"),l+"/arrows.xml",";html=1;"+mxConstants.STYLE_VERTICAL_LABEL_POSITION+"=bottom;"++mxConstants.STYLE_VERTICAL_ALIGN+"=top;"+mxConstants.STYLE_STROKEWIDTH+"=2;strokeColor=#000000;",null,null,null,null,null,"arrows");this.addArrows2Palette();this.setCurrentSearchEntryLibrary("clipart","computer");this.addImagePalette("computer","Clipart / Computer",k+"/lib/clip_art/computers/","_128x128.png","Antivirus Data_Filtering Database Database_Add Database_Minus Database_Move_Stack Database_Remove Fujitsu_Tablet Harddrive IBM_Tablet iMac iPad Laptop MacBook Mainframe Monitor Monitor_Tower Monitor_Tower_Behind Netbook Network Network_2 Printer Printer_Commercial Secure_System Server Server_Rack Server_Rack_Empty Server_Rack_Partial Server_Tower Software Stylus Touch USB_Hub Virtual_Application Virtual_Machine Virus Workstation".split(" "),"Antivirus;Data Filtering;Database;Database Add;Database Minus;Database Move Stack;Database Remove;Fujitsu Tablet;Harddrive;IBMTablet;iMac;iPad;Laptop;MacBook;Mainframe;Monitor;Monitor Tower;Monitor Tower Behind;Netbook;Network;Network 2;Printer;Printer Commercial;Secure System;Server;Server Rack;Server Rack Empty;Server Rack Partial;Server Tower;Software;Stylus;Touch;USB Hub;Virtual Application;Virtual Machine;Virus;Workstation".split(";"));this.setCurrentSearchEntryLibrary("clipart","finance");this.addImagePalette("finance","Clipart / Finance",k+"/lib/clip_art/finance/","_128x128.png","Arrow_Down Arrow_Up Coins Credit_Card Dollar Graph Pie_Chart Piggy_Bank Safe Shopping_Cart Stock_Down Stock_Up".split(" "),"Arrow_Down;Arrow Up;Coins;Credit Card;Dollar;Graph;Pie Chart;Piggy Bank;Safe;Shopping Basket;Stock Down;Stock Up".split(";"));this.setCurrentSearchEntryLibrary("clipart","clipart");this.addImagePalette("clipart","Clipart / Various",k+"/lib/clip_art/general/","_128x128.png","Battery_0 Battery_100 Battery_50 Battery_75 Battery_allstates Bluetooth Earth_globe Empty_Folder Full_Folder Gear Keys Lock Mouse_Pointer Plug Ships_Wheel Star Tire".split(" "),"Battery 0%;Battery 100%;Battery 50%;Battery 75%;Battery;Bluetooth;Globe;Empty Folder;Full Folder;Gear;Keys;Lock;Mousepointer;Plug;Ships Wheel;Star;Tire".split(";"));this.setCurrentSearchEntryLibrary("clipart","networking");this.addImagePalette("networking","Clipart / Networking",k+"/lib/clip_art/networking/","_128x128.png","Bridge Certificate Certificate_Off Cloud Cloud_Computer Cloud_Computer_Private Cloud_Rack Cloud_Rack_Private Cloud_Server Cloud_Server_Private Cloud_Storage Concentrator Email Firewall_02 Firewall Firewall-page1 Ip_Camera Modem power_distribution_unit Print_Server Print_Server_Wireless Repeater Router Router_Icon Switch UPS Wireless_Router Wireless_Router_N".split(" "),"Bridge;Certificate;Certificate Off;Cloud;Cloud Computer;Cloud Computer Private;Cloud Rack;Cloud Rack Private;Cloud Server;Cloud Server Private;Cloud Storage;Concentrator;Email;Firewall 1;Firewall 2;Firewall;Camera;Modem;Power Distribution Unit;Print Server;Print Server Wireless;Repeater;Router;Router Icon;Switch;UPS;Wireless Router;Wireless Router N".split(";"),{Wireless_Router:"wireless router switch wap wifi access point wlan",Wireless_Router_N:"wireless router switch wap wifi access point wlan",Router:"router switch",Router_Icon:"router switch"});this.setCurrentSearchEntryLibrary("clipart","people");this.addImagePalette("people","Clipart / People",k+"/lib/clip_art/people/","_128x128.png","Suit_Man Suit_Man_Black Suit_Man_Blue Suit_Man_Green Suit_Man_Green_Black Suit_Woman Suit_Woman_Black Suit_Woman_Blue Suit_Woman_Green Suit_Woman_Green_Black Construction_Worker_Man Construction_Worker_Man_Black Construction_Worker_Woman Construction_Worker_Woman_Black Doctor_Man Doctor_Man_Black Doctor_Woman Doctor_Woman_Black Farmer_Man Farmer_Man_Black Farmer_Woman Farmer_Woman_Black Nurse_Man Nurse_Man_Black Nurse_Woman Nurse_Woman_Black Military_Officer Military_Officer_Black Military_Officer_Woman Military_Officer_Woman_Black Pilot_Man Pilot_Man_Black Pilot_Woman Pilot_Woman_Black Scientist_Man Scientist_Man_Black Scientist_Woman Scientist_Woman_Black Security_Man Security_Man_Black Security_Woman Security_Woman_Black Tech_Man Tech_Man_Black Telesales_Man Telesales_Man_Black Telesales_Woman Telesales_Woman_Black Waiter Waiter_Black Waiter_Woman Waiter_Woman_Black Worker_Black Worker_Man Worker_Woman Worker_Woman_Black".split(" "));this.setCurrentSearchEntryLibrary("clipart","telco");this.addImagePalette("telco","Clipart / Telecommunication",k+"/lib/clip_art/telecommunication/","_128x128.png","BlackBerry Cellphone HTC_smartphone iPhone Palm_Treo Signal_tower_off Signal_tower_on".split(" "),"BlackBerry;Cellphone;HTC smartphone;iPhone;Palm Treo;Signaltower off;Signaltower on".split(";"));this.setCurrentSearchEntryLibrary();this.addFlowchartPalette();this.addActiveDirectoryPalette();this.addAndroidPalette();this.addAtlassianPalette();-this.addBootstrapPalette();this.addDFDPalette();this.addErPalette();this.addIos7Palette();this.addIosPalette();this.addKubernetesPalette();this.addMockupPalette();this.addSitemapPalette();this.addSalesforcePalette();this.addUml25Palette();this.addUmlPalette(!1);this.addAlibabaCloudPalette();this.addAlliedTelesisPalette();this.addAWS3Palette();this.addAWS4bPalette();this.addAWS4Palette();this.addAWS3DPalette();this.addAzurePalette();this.addAzure2Palette();this.addMSCAEPalette();this.addC4Palette();-this.addCiscoPalette(r,l);this.addCisco19Palette();this.addCiscoSafePalette();this.addCumulusPalette();this.addCitrix2Palette();this.addCitrixPalette();this.addDynamics365Palette();this.addGCP3Palette();this.addGCP2Palette();this.addGCPIconsPalette();this.addIBMPalette();this.addIBMCloudPalette();this.addNetwork2Palette();this.addNetworkPalette();this.addSAPPalette();this.addOfficePalette();this.addOpenStackPalette();this.addRackPalette(p,l);this.addVeeamPalette();this.addVeeam2Palette();this.addVVDPalette();-this.addArchimate4Palette();this.addArchimate3Palette();this.addArchiMatePalette();this.addBpmn2Palette();this.addSysMLPalette(t,l);this.addLeanMappingPalette();this.addCabinetsPalette();this.addInfographicPalette();this.addEipPalette();this.addElectricalPalette();this.addFloorplanPalette();this.addFluidPowerPalette();this.addGMDLPalette();this.addPidPalette(q,l);this.addThreatModelingPalette();this.addWebIconsPalette();this.addWebLogosPalette();this.addSignsPalette(n,l);this.appendCustomLibraries&&+this.addAtlassian2Palette();this.addBootstrapPalette();this.addDFDPalette();this.addErPalette();this.addIos7Palette();this.addIosPalette();this.addKubernetesPalette();this.addMockupPalette();this.addSitemapPalette();this.addSalesforcePalette();this.addUml25Palette();this.addUmlPalette(!1);this.addAlibabaCloudPalette();this.addAlliedTelesisPalette();this.addAWS3Palette();this.addAWS4bPalette();this.addAWS4Palette();this.addAWS3DPalette();this.addAzurePalette();this.addAzure2Palette();this.addMSCAEPalette();+this.addC4Palette();this.addCiscoPalette(r,l);this.addCisco19Palette();this.addCiscoSafePalette();this.addCumulusPalette();this.addCitrix2Palette();this.addCitrixPalette();this.addDynamics365Palette();this.addGCP3Palette();this.addGCP2Palette();this.addGCPIconsPalette();this.addIBMPalette();this.addIBMCloudPalette();this.addNetwork2Palette();this.addNetworkPalette();this.addSAPPalette();this.addOfficePalette();this.addOpenStackPalette();this.addRackPalette(p,l);this.addVeeamPalette();this.addVeeam2Palette();+this.addVVDPalette();this.addArchimate4Palette();this.addArchimate3Palette();this.addArchiMatePalette();this.addBpmn2Palette();this.addSysMLPalette(t,l);this.addLeanMappingPalette();this.addCabinetsPalette();this.addInfographicPalette();this.addEipPalette();this.addElectricalPalette();this.addFloorplanPalette();this.addFluidPowerPalette();this.addGMDLPalette();this.addPidPalette(q,l);this.addThreatModelingPalette();this.addWebIconsPalette();this.addWebLogosPalette();this.addSignsPalette(n,l);this.appendCustomLibraries&&this.addCustomEntries();this.showEntries();null!=this.createdSearchIndex&&console.log("searchFileData",Graph.compress(JSON.stringify(this.createdSearchIndex)))};Sidebar.prototype.addCustomEntries=function(){if(null!=this.customEntries)for(var k=0,l=0;l<this.customEntries.length;l++)for(var n=this.customEntries[l]||{},p=0;null!=n.entries&&p<n.entries.length;p++)for(var q=n.entries[p]||{},r=0;null!=q.libs&&r<q.libs.length;r++)mxUtils.bind(this,function(t){var v=null,w=null,u=null,x=null,y=mxUtils.bind(this,function(z,C){var D=document.createElement("span");D.style.paddingBottom="6px";D.style.paddingTop="6px";D.style.fontSize="11px";mxUtils.write(D,z);C.innerHTML='<img align="top" src="'+mxGraph.prototype.warningImage.src+'"/> ';C.appendChild(D)}),A=mxUtils.bind(this,function(){null!=u&&null!=x&&(null!=w?(u.style.display="block",x.innerText="",mxUtils.write(x,this.editorUi.getResource(t.title)),y(w,u)):null!=v?(this.editorUi.addLibraryEntries(v,u),u.style.display="block",x.innerText="",mxUtils.write(x,this.editorUi.getResource(t.title))):(u.style.display="none",x.innerText="",mxUtils.write(x,mxResources.get("loading")+"...")))});if(null==t.data&&null!=t.url&&!t.preload&&k>=this.maxPreloadCount)this.addPalette(q.id+"."+r,this.editorUi.getResource(t.title),!1,mxUtils.bind(this,function(z,C){var D=mxUtils.bind(this,function(E,G){this.setCurrentSearchEntryLibrary(q.id,q.id+"."+r);this.addEntries(E,G);this.setCurrentSearchEntryLibrary();this.editorUi.addLibraryEntries(E,z)});z.style.display="none";@@ -5268,7 +5268,92 @@ b.vertex=!0;return a.createVertexTemplateFromCells([e,b],290,58,"Disabled text fthis.addEntry("atlassian error message field",function(){var e=new mxCell("Email",new mxGeometry(0,0,240,20),"fillColor=none;strokeColor=none;html=1;fontSize=11;fontStyle=0;align=left;fontColor=#596780;fontStyle=1;fontSize=11");e.vertex=!0;var b=new mxCell("shrugg#atlassian.com",new mxGeometry(0,25,300,40),"rounded=1;arcSize=9;align=left;spacingLeft=5;strokeColor=#FFAB00;html=1;strokeWidth=2;fontSize=12");b.vertex=!0;var d=new mxCell("",new mxGeometry(1,.5,20,20),"shape=mxgraph.azure.azure_alert;fillColor=#FFAB00;strokeColor=none;html=1;sketch=0;");d.geometry.relative=!0;d.geometry.offset=new mxPoint(-30,-10);d.vertex=!0;b.insert(d);return a.createVertexTemplateFromCells([e,b],290,58,"Error message field")}),this.addEntry("atlassian error message field",function(){var e=new mxCell("Email",new mxGeometry(0,0,240,20),"fillColor=none;strokeColor=none;html=1;fontSize=11;fontStyle=0;align=left;fontColor=#596780;fontStyle=1;fontSize=11");e.vertex=!0;var b=new mxCell("shrugg#atlassian.com",new mxGeometry(0,25,300,40),"rounded=1;arcSize=9;align=left;spacingLeft=5;strokeColor=#4C9AFF;html=1;strokeWidth=2;fontSize=12");b.vertex=!0;var d=new mxCell("",new mxGeometry(1,.5,20,20),"shape=mxgraph.azure.azure_alert;fillColor=#FFAB00;strokeColor=none;html=1;sketch=0;");d.geometry.relative=!0;d.geometry.offset=new mxPoint(-30,-10);d.vertex=!0;b.insert(d);d=new mxCell("Please enter a valid address.",new mxGeometry(310,22,200,46),"rounded=1;arcSize=9;align=center;strokeColor=#DFE1E5;html=1;strokeWidth=1;fontSize=12;shadow=1");d.vertex=!0;return a.createVertexTemplateFromCells([e,b,d],510,68,"Error message field")})];this.addPalette("atlassian",-"Atlassian",!1,mxUtils.bind(this,function(e){for(var b=0;b<c.length;b++)e.appendChild(c[b](e))}));this.setCurrentSearchEntryLibrary()}})();(function(){Sidebar.prototype.addAWSPalette=function(){this.setCurrentSearchEntryLibrary("aws2","aws2Analytics");this.addAWSAnalyticsPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Application Services");this.addAWSApplicationServicesPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Compute");this.addAWSComputePalette();this.setCurrentSearchEntryLibrary("aws2","aws2Database");this.addAWSDatabasePalette();this.setCurrentSearchEntryLibrary("aws2","aws2Developer Tools");this.addAWSDeveloperToolsPalette();+"Atlassian",!1,mxUtils.bind(this,function(e){for(var b=0;b<c.length;b++)e.appendChild(c[b](e))}));this.setCurrentSearchEntryLibrary()}})();(function(){Sidebar.prototype.addAtlassian2Palette=function(){this.setCurrentSearchEntryLibrary("atlassian2","atlassian2Apps");this.addAtlassian2AppsPalette();this.setCurrentSearchEntryLibrary("atlassian2","atlassian2Work Types");this.addAtlassian2WorkTypesPalette();this.setCurrentSearchEntryLibrary("atlassian2","atlassian2Logos");this.addAtlassian2LogosPalette();this.setCurrentSearchEntryLibrary()};Sidebar.prototype.addAtlassian2AppsPalette=function(){var a=[this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.admin;tileColor=#dddee1;fillColor=#101214;",+48,48,"","Admin",null,null,this.getTagsForStencil("mxgraph.atlassian2","admin","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.align;tileColor=#fb9700;fillColor=#101214;",48,48,"","Align",null,null,this.getTagsForStencil("mxgraph.atlassian2","align","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.analytics;tileColor=#dddee1;fillColor=#101214;",+48,48,"","Analytics",null,null,this.getTagsForStencil("mxgraph.atlassian2","analytics","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.assets;tileColor=#ffc716;fillColor=#101214;",48,48,"","Assets",null,null,this.getTagsForStencil("mxgraph.atlassian2","assets","app product insight cmdb").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.atlassian;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;fillColor=#1868db;",+48,47.9,"","Atlassian",null,null,this.getTagsForStencil("mxgraph.atlassian2","atlassian","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.marketplace;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;fillColor=#1868db;",48,47.9,"","Atlassian Marketplace",null,null,this.getTagsForStencil("mxgraph.atlassian2","marketplace","app product atlassian").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.bamboo;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;",+48,48,"","Bamboo",null,null,this.getTagsForStencil("mxgraph.atlassian2","bamboo","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.bitbucket;tileColor=#94c748;fillColor=#101214;",48,48,"","Bitbucket",null,null,this.getTagsForStencil("mxgraph.atlassian2","bitbucket","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.bitbucket-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;",+48,48,"","Bitbucket Data Center",null,null,this.getTagsForStencil("mxgraph.atlassian2","bitbucket data center","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.chat;tileColor=#dddee1;fillColor=#101214;",48,48,"","Chat",null,null,this.getTagsForStencil("mxgraph.atlassian2","chat","app product rovo chat").join(" ")),+this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.company-hub;tileColor=#dddee1;fillColor=#101214;",48,48,"","Company Hub",null,null,this.getTagsForStencil("mxgraph.atlassian2","company hub","app product intranet").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.compass;tileColor=#94c748;fillColor=#101214;",+48,48,"","Compass",null,null,this.getTagsForStencil("mxgraph.atlassian2","compass","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.confluence;tileColor=#1868db;fillColor=#fff;",48,48,"","Confluence",null,null,this.getTagsForStencil("mxgraph.atlassian2","confluence","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.confluence-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;",+48,48,"","Confluence Data Center",null,null,this.getTagsForStencil("mxgraph.atlassian2","confluence data center","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.crowd;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;",48,48,"","Crowd",null,null,this.getTagsForStencil("mxgraph.atlassian2","crowd",+"app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.customer-service-management;tileColor=#ffc716;fillColor=#101214;",48,48,"","Customer Service Management",null,null,this.getTagsForStencil("mxgraph.atlassian2","customer service management","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.dx;tileColor=#94c748;fillColor=#101214;",+48,48,"","DX",null,null,this.getTagsForStencil("mxgraph.atlassian2","dx","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.feedback;tileColor=#c97cf4;fillColor=#101214;",48,48,"","Feedback",null,null,this.getTagsForStencil("mxgraph.atlassian2","feedback","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.focus;tileColor=#fb9700;fillColor=#101214;",+48,48,"","Focus",null,null,this.getTagsForStencil("mxgraph.atlassian2","focus","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.goals;tileColor=#dddee1;fillColor=#101214;",48,48,"","Goals",null,null,this.getTagsForStencil("mxgraph.atlassian2","goals","app product atlas").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.guard;tileColor=#dddee1;fillColor=#101214;",+48,48,"","Guard",null,null,this.getTagsForStencil("mxgraph.atlassian2","guard","app product atlassian access").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.guard-detect;tileColor=#dddee1;fillColor=#101214;",48,48,"","Guard Detect",null,null,this.getTagsForStencil("mxgraph.atlassian2","guard detect","app product atlassian access").join(" ")),+this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.home;tileColor=#dddee1;fillColor=#101214;",48,48,"","Home",null,null,this.getTagsForStencil("mxgraph.atlassian2","home","app product atlas start").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.hub;tileColor=#dddee1;fillColor=#101214;",+48,48,"","Hub",null,null,this.getTagsForStencil("mxgraph.atlassian2","hub","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira;tileColor=#1868db;fillColor=#fff;",48,48,"","Jira",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira","app product jira software jira core").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.jira_align;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;fillColor=#1868db;",+48,48,"","Jira Align",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira align","app product agilecraft").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira-coding-agent;tileColor=#1868db;fillColor=#fff;tileShape=hex;glyphScale=0.8971;",43.1,48,"","Jira Coding Agent",null,null,this.getTagsForStencil("mxgraph.atlassian2",+"jira coding agent","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;",48,48,"","Jira Data Center",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira data center","app product jira software").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira-product-discovery;tileColor=#c97cf4;fillColor=#101214;",+48,48,"","Jira Product Discovery",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira product discovery","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira-service-management;tileColor=#ffc716;fillColor=#101214;",48,48,"","Jira Service Management",null,null,this.getTagsForStencil("mxgraph.atlassian2",+"jira service management","app product jira service desk jsm").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira-service-management-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;",48,48,"","Jira Service Management Data Center",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira service management data center",+"app product jira service desk jsm").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.loom;tileColor=#1868db;fillColor=#fff;",48,48,"","Loom",null,null,this.getTagsForStencil("mxgraph.atlassian2","loom","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.loom-internal;tileColor=#625df5;fillColor=#fff;",+48,48,"","Loom Internal",null,null,this.getTagsForStencil("mxgraph.atlassian2","loom internal","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.opsgenie;tileColor=#ffc716;fillColor=#101214;",48,48,"","Opsgenie",null,null,this.getTagsForStencil("mxgraph.atlassian2","opsgenie","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.projects;tileColor=#dddee1;fillColor=#101214;",+48,48,"","Projects",null,null,this.getTagsForStencil("mxgraph.atlassian2","projects","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.rovo;tileColor=#1868db;fillColor=#fff;",48,48,"","Rovo",null,null,this.getTagsForStencil("mxgraph.atlassian2","rovo","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.rovo-dev;tileColor=#94c748;fillColor=#101214;",+48,48,"","Rovo Dev",null,null,this.getTagsForStencil("mxgraph.atlassian2","rovo dev","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.rovo-dev-agent;tileColor=#94c748;fillColor=#101214;tileShape=hex;glyphScale=0.98;",43.1,48,"","Rovo Dev Agent",null,null,this.getTagsForStencil("mxgraph.atlassian2","rovo dev agent",+"app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.search;tileColor=#dddee1;fillColor=#101214;",48,48,"","Search",null,null,this.getTagsForStencil("mxgraph.atlassian2","search","app product rovo search").join(" ")),this.createVertexTemplateEntry("image;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;image=img/lib/atlassian/Sourcetree_Logo.svg;",+38.6,48,"","Sourcetree",null,null,this.getTagsForStencil("mxgraph.atlassian2","sourcetree","app product logo").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.statuspage;tileColor=#ffc716;fillColor=#101214;",48,48,"","Statuspage",null,null,this.getTagsForStencil("mxgraph.atlassian2","statuspage","app product").join(" ")),+this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.studio;tileColor=#dddee1;fillColor=#101214;",48,48,"","Studio",null,null,this.getTagsForStencil("mxgraph.atlassian2","studio","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.talent;tileColor=#fb9700;fillColor=#101214;",+48,48,"","Talent",null,null,this.getTagsForStencil("mxgraph.atlassian2","talent","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.teams;tileColor=#dddee1;fillColor=#101214;",48,48,"","Teams",null,null,this.getTagsForStencil("mxgraph.atlassian2","teams","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.trello;tileColor=#1558bc;fillColor=#fff;",+48,48,"","Trello",null,null,this.getTagsForStencil("mxgraph.atlassian2","trello","app product").join(" "))];this.addPaletteFunctions("atlassian2Apps","Atlassian / Apps",!1,a)};Sidebar.prototype.addAtlassian2WorkTypesPalette=function(){var a=[this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_blog;tileColor=#669DF1;fillColor=#292A2E;",+48,48,"","Blog",null,null,this.getTagsForStencil("mxgraph.atlassian2","blog","jira work item type object confluence blogpost").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_branch;tileColor=#669DF1;fillColor=#292A2E;",48,48,"","Branch",null,null,this.getTagsForStencil("mxgraph.atlassian2","branch","jira work item type object git bitbucket").join(" ")),+this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_bug;tileColor=#F87168;fillColor=#292A2E;",48,48,"","Bug",null,null,this.getTagsForStencil("mxgraph.atlassian2","bug","jira work item type object issue defect").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_calendar;tileColor=#F87168;fillColor=#292A2E;",+48,48,"","Calendar",null,null,this.getTagsForStencil("mxgraph.atlassian2","calendar","jira work item type object confluence team calendar").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_changes;tileColor=#EED12B;fillColor=#292A2E;",48,48,"","Changes",null,null,this.getTagsForStencil("mxgraph.atlassian2","changes",+"jira work item type object").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_code;tileColor=#C97CF4;fillColor=#292A2E;",48,48,"","Code",null,null,this.getTagsForStencil("mxgraph.atlassian2","code","jira work item type object git bitbucket repository").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_commit;tileColor=#EED12B;fillColor=#292A2E;",+48,48,"","Commit",null,null,this.getTagsForStencil("mxgraph.atlassian2","commit","jira work item type object git bitbucket").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_database;tileColor=#C97CF4;fillColor=#292A2E;",48,48,"","Database",null,null,this.getTagsForStencil("mxgraph.atlassian2","database","jira work item type object confluence").join(" ")),+this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_epic;tileColor=#C97CF4;fillColor=#292A2E;",48,48,"","Epic",null,null,this.getTagsForStencil("mxgraph.atlassian2","epic","jira work item type object issue").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_idea;tileColor=#EED12B;fillColor=#292A2E;",+48,48,"","Idea",null,null,this.getTagsForStencil("mxgraph.atlassian2","idea","jira work item type object jira product discovery jpd").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_improvement;tileColor=#4BCE97;fillColor=#292A2E;",48,48,"","Improvement",null,null,this.getTagsForStencil("mxgraph.atlassian2","improvement",+"jira work item type object enhancement").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_incident;tileColor=#F87168;fillColor=#292A2E;",48,48,"","Incident",null,null,this.getTagsForStencil("mxgraph.atlassian2","incident","jira work item type object itsm jsm").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_new_feature;tileColor=#4BCE97;fillColor=#292A2E;",+48,48,"","New Feature",null,null,this.getTagsForStencil("mxgraph.atlassian2","new feature","jira work item type object feature request").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_page;tileColor=#669DF1;fillColor=#292A2E;",48,48,"","Page",null,null,this.getTagsForStencil("mxgraph.atlassian2","page","jira work item type object confluence").join(" ")),+this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_page_live_doc;tileColor=#E774BB;fillColor=#292A2E;",48,48,"","Page Live Doc",null,null,this.getTagsForStencil("mxgraph.atlassian2","page live doc","jira work item type object confluence live doc").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_problem;tileColor=#F87168;fillColor=#292A2E;",+48,48,"","Problem",null,null,this.getTagsForStencil("mxgraph.atlassian2","problem","jira work item type object itsm jsm").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_pull_request;tileColor=#4BCE97;fillColor=#292A2E;",48,48,"","Pull Request",null,null,this.getTagsForStencil("mxgraph.atlassian2","pull request",+"jira work item type object git bitbucket pr review").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_question;tileColor=#C97CF4;fillColor=#292A2E;",48,48,"","Question",null,null,this.getTagsForStencil("mxgraph.atlassian2","question","jira work item type object jsm").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_story;tileColor=#4BCE97;fillColor=#292A2E;",+48,48,"","Story",null,null,this.getTagsForStencil("mxgraph.atlassian2","story","jira work item type object issue").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_subtask;tileColor=#669DF1;fillColor=#292A2E;",48,48,"","Subtask",null,null,this.getTagsForStencil("mxgraph.atlassian2","subtask","jira work item type object issue sub task").join(" ")),+this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_task;tileColor=#669DF1;fillColor=#292A2E;",48,48,"","Task",null,null,this.getTagsForStencil("mxgraph.atlassian2","task","jira work item type object issue").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_whiteboard;tileColor=#6CC3E0;fillColor=#292A2E;",+48,48,"","Whiteboard",null,null,this.getTagsForStencil("mxgraph.atlassian2","whiteboard","jira work item type object confluence").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_work_item;tileColor=#669DF1;fillColor=#292A2E;",48,48,"","Work Item",null,null,this.getTagsForStencil("mxgraph.atlassian2","work item",+"jira work item type object issue ticket").join(" "))];this.addPaletteFunctions("atlassian2Work Types","Atlassian / Work Types",!1,a)};Sidebar.prototype.addAtlassian2LogosPalette=function(){var a=[this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.admin;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_admin;atlassian2Lockup=0.245 0.689 -0.043;wordmarkColor=#1e1f21;",+93.6,24,"","Admin Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","admin","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.align;tileColor=#fb9700;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_align;atlassian2Lockup=0.25 0.872 0.048;wordmarkColor=#1e1f21;",+79.3,24,"","Align Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","align","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.analytics;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_analytics;atlassian2Lockup=0.245 0.872 0.048;wordmarkColor=#1e1f21;",+120.5,24,"","Analytics Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","analytics","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.assets;tileColor=#ffc716;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_assets;atlassian2Lockup=0.245 0.639 -0.018;wordmarkColor=#1e1f21;",+94.3,24,"","Assets Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","assets","product logo wordmark lockup insight cmdb").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.atlassian;tileColor=none;fillColor=#1868db;atlassian2Wordmark=mxgraph.atlassian2.wordmark_atlassian;atlassian2Lockup=0.384 0.895 0.047;wordmarkColor=#1868DB;",+205.2,24,"","Atlassian Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","atlassian","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.marketplace;tileColor=none;fillColor=#1868db;atlassian2Wordmark=mxgraph.atlassian2.wordmark_marketplace;atlassian2Lockup=0.651 1.201 0.14;wordmarkColor=#101214;atlassian2Wordmark2=mxgraph.atlassian2.wordmark_atlassian;atlassian2Lockup2=0.384 0.895 0.047;atlassian2LockupBox=1.241 0;",+315.4,24,"","Atlassian Marketplace Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","marketplace","product logo wordmark lockup atlassian").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.bamboo;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;atlassian2Wordmark=mxgraph.atlassian2.wordmark_bamboo;atlassian2Lockup=0.382 0.719 -0.045;wordmarkColor=#1e1f21;",+119.4,24,"","Bamboo Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","bamboo","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.bitbucket;tileColor=#94c748;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_bitbucket;atlassian2Lockup=0.346 0.689 -0.043;wordmarkColor=#1e1f21;",+123.9,24,"","Bitbucket Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","bitbucket","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.bitbucket-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;atlassian2Wordmark=mxgraph.atlassian2.wordmark_bitbucket_data_center;atlassian2Lockup=0.382 0.719 -0.045;wordmarkColor=#1e1f21;",+128.8,24,"","Bitbucket Data Center Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","bitbucket data center","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.chat;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_chat;atlassian2Lockup=0.288 0.689 -0.043;wordmarkColor=#1e1f21;",+76.2,24,"","Chat Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","chat","product logo wordmark lockup rovo chat").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.company-hub;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_company_hub;atlassian2Lockup=0.32 0.552 0.054;wordmarkColor=#292a2e;",+127.7,24,"","Company Hub Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","company hub","product logo wordmark lockup intranet").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.compass;tileColor=#94c748;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_compass;atlassian2Lockup=0.288 0.826 0.066;wordmarkColor=#1e1f21;",+121.3,24,"","Compass Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","compass","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.confluence;tileColor=#1868db;fillColor=#fff;atlassian2Wordmark=mxgraph.atlassian2.wordmark_confluence;atlassian2Lockup=0.288 0.691 -0.044;wordmarkColor=#1e1f21;",+140.9,24,"","Confluence Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","confluence","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.confluence-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;atlassian2Wordmark=mxgraph.atlassian2.wordmark_confluence_data_center;atlassian2Lockup=0.323 0.721 -0.046;wordmarkColor=#1e1f21;",+146.5,24,"","Confluence Data Center Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","confluence data center","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.crowd;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;atlassian2Wordmark=mxgraph.atlassian2.wordmark_crowd;atlassian2Lockup=0.323 0.719 -0.045;wordmarkColor=#1e1f21;",+97.5,24,"","Crowd Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","crowd","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.customer-service-management;tileColor=#ffc716;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_customer_service_management;atlassian2Lockup=0.288 0.856 0.056;wordmarkColor=#1e1f21;",+342.1,24,"","Customer Service Management Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","customer service management","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.feedback;tileColor=#c97cf4;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_feedback;atlassian2Lockup=0.335 0.689 -0.043;wordmarkColor=#1e1f21;",+126.2,24,"","Feedback Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","feedback","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.focus;tileColor=#fb9700;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_focus;atlassian2Lockup=0.335 0.639 -0.018;wordmarkColor=#1e1f21;",+87,24,"","Focus Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","focus","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.goals;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_goals;atlassian2Lockup=0.288 0.689 -0.043;wordmarkColor=#1e1f21;",+86.7,24,"","Goals Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","goals","product logo wordmark lockup atlas").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.guard;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_guard;atlassian2Lockup=0.288 0.689 -0.043;wordmarkColor=#1e1f21;",+89.8,24,"","Guard Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","guard","product logo wordmark lockup atlassian access").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.guard-detect;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_guard_detect;atlassian2Lockup=0.278 0.437 -0.003;wordmarkColor=#292a2e;",+120.2,24,"","Guard Detect Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","guard detect","product logo wordmark lockup atlassian access").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.home;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_home;atlassian2Lockup=0.345 0.639 -0.018;wordmarkColor=#1e1f21;",+90.2,24,"","Home Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","home","product logo wordmark lockup atlas start").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.hub;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_hub;atlassian2Lockup=0.345 0.689 -0.043;wordmarkColor=#1e1f21;",+70.7,24,"","Hub Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","hub","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira;tileColor=#1868db;fillColor=#fff;atlassian2Wordmark=mxgraph.atlassian2.wordmark_jira;atlassian2Lockup=0.26 0.673 -0.035;wordmarkColor=#1e1f21;",61.8,24,+"","Jira Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira","product logo wordmark lockup jira software jira core").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira_align;tileColor=none;fillColor=#1868db;atlassian2Wordmark=mxgraph.atlassian2.wordmark_jira_align;atlassian2Lockup=0.592 1.466 0.081;wordmarkColor=#101214;atlassian2LockupBox=1.466 0.152;",+124.7,24,"","Jira Align Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira align","product logo wordmark lockup agilecraft").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;atlassian2Wordmark=mxgraph.atlassian2.wordmark_jira_data_center;atlassian2Lockup=0.293 0.702 -0.037;wordmarkColor=#1e1f21;",+63.9,24,"","Jira Data Center Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira data center","product logo wordmark lockup jira software").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira-product-discovery;tileColor=#c97cf4;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_jira_product_discovery;atlassian2Lockup=0.26 0.872 0.048;wordmarkColor=#1e1f21;",+244.6,24,"","Jira Product Discovery Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira product discovery","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira-service-management;tileColor=#ffc716;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_jira_service_management;atlassian2Lockup=0.26 0.856 0.056;wordmarkColor=#1e1f21;",+278.5,24,"","Jira Service Management Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira service management","product logo wordmark lockup jira service desk jsm").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira-service-management-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;atlassian2Wordmark=mxgraph.atlassian2.wordmark_jira_service_management_data_center;atlassian2Lockup=0.293 0.893 0.059;wordmarkColor=#1e1f21;atlassian2LockupBox=1.005 0;",+288.6,24,"","Jira Service Management Data Center Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira service management data center","product logo wordmark lockup jira service desk jsm").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.loom;tileColor=#1868db;fillColor=#fff;atlassian2Wordmark=mxgraph.atlassian2.wordmark_loom;atlassian2Lockup=0.333 0.682 -0.036;wordmarkColor=#1e1f21;",+76.9,24,"","Loom Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","loom","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.loom-internal;tileColor=#625df5;fillColor=#fff;atlassian2Wordmark=mxgraph.atlassian2.wordmark_loom_internal;atlassian2Lockup=0.333 0.682 -0.036;wordmarkColor=#1e1f21;",+76.9,24,"","Loom Internal Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","loom internal","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.opsgenie;tileColor=#ffc716;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_opsgenie;atlassian2Lockup=0.288 0.856 0.056;wordmarkColor=#1e1f21;",+122.6,24,"","Opsgenie Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","opsgenie","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.projects;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_projects;atlassian2Lockup=0.345 0.852 0.055;wordmarkColor=#1e1f21;",+108.4,24,"","Projects Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","projects","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.rovo;tileColor=#1868db;fillColor=#fff;atlassian2Wordmark=mxgraph.atlassian2.wordmark_rovo;atlassian2Lockup=0.345 0.639 -0.018;wordmarkColor=#1e1f21;",+79.2,24,"","Rovo Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","rovo","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.rovo-dev;tileColor=#94c748;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_rovo_dev;atlassian2Lockup=0.345 0.639 -0.018;wordmarkColor=#1e1f21;",+123.5,24,"","Rovo Dev Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","rovo dev","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.rovo-dev-agent;tileColor=#94c748;fillColor=#101214;tileShape=hex;glyphScale=0.98;atlassian2Wordmark=mxgraph.atlassian2.wordmark_rovo_dev_agent;atlassian2Lockup=0.296 0.639 -0.008;wordmarkColor=#1e1f21;",+119.9,24,"","Rovo Dev Agent Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","rovo dev agent","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.search;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_search;atlassian2Lockup=0.29 0.689 -0.043;wordmarkColor=#1e1f21;",+96.6,24,"","Search Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","search","product logo wordmark lockup rovo search").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.statuspage;tileColor=#ffc716;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_statuspage;atlassian2Lockup=0.29 0.831 0.068;wordmarkColor=#1e1f21;",+143.7,24,"","Statuspage Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","statuspage","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.studio;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_studio;atlassian2Lockup=0.29 0.689 -0.043;wordmarkColor=#1e1f21;",+93,24,"","Studio Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","studio","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.talent;tileColor=#fb9700;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_talent;atlassian2Lockup=0.259 0.689 -0.043;wordmarkColor=#1e1f21;",+90.9,24,"","Talent Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","talent","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.teams;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_teams;atlassian2Lockup=0.259 0.639 -0.018;wordmarkColor=#1e1f21;",+94.9,24,"","Teams Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","teams","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.trello;tileColor=#1558bc;fillColor=#fff;atlassian2Wordmark=mxgraph.atlassian2.wordmark_trello;atlassian2Lockup=0.259 0.689 -0.043;wordmarkColor=#1e1f21;",+84.1,24,"","Trello Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","trello","product logo wordmark lockup").join(" "))];this.addPaletteFunctions("atlassian2Logos","Atlassian / Logos",!1,a)}})();(function(){Sidebar.prototype.addAWSPalette=function(){this.setCurrentSearchEntryLibrary("aws2","aws2Analytics");this.addAWSAnalyticsPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Application Services");this.addAWSApplicationServicesPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Compute");this.addAWSComputePalette();this.setCurrentSearchEntryLibrary("aws2","aws2Database");this.addAWSDatabasePalette();this.setCurrentSearchEntryLibrary("aws2","aws2Developer Tools");this.addAWSDeveloperToolsPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Enterprise Applications");this.addAWSEnterpriseApplicationsPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Game Development");this.addAWSGameDevelopmentPalette();this.setCurrentSearchEntryLibrary("aws2","aws2General");this.addAWSGeneralPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Internet of Things");this.addAWSInternetOfThingsPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Management Tools");this.addAWSManagementToolsPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Mobile Services");this.addAWSMobileServicesPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Networking");this.addAWSNetworkingPalette();this.setCurrentSearchEntryLibrary("aws2","aws2On-Demand Workforce");this.addAWSOnDemandWorkforcePalette();this.setCurrentSearchEntryLibrary("aws2","aws2SDKs");this.addAWSSDKPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Security and Identity");this.addAWSSecurityAndIdentityPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Storage and Content Delivery");this.addAWSStorageAndContentDeliveryPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Groups");this.addAWSGroupPalette();this.setCurrentSearchEntryLibrary()};Sidebar.prototype.addAWSAnalyticsPalette=function(){var a="dashed=0;html=1;"+mxConstants.STYLE_SHAPE+"=mxgraph.aws2.";this.addPaletteFunctions("aws2Analytics","AWS / Analytics",!1,[this.createVertexTemplateEntry(a+"analytics.data_pipeline;strokeColor=none;",60,72,"","Data Pipeline",null,null,this.getTagsForStencil("mxgraph.aws.analytics",@@ -12901,9 +12986,9 @@ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=funct$jscomp.owns=function(b,k){return Object.prototype.hasOwnProperty.call(b,k)};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,k,m){if(b==Array.prototype||b==Object.prototype)return b;b[k]=m.value;return b};$jscomp.getGlobal=function(b){b=["object"==typeof globalThis&&globalThis,b,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var k=0;k<b.length;++k){var m=b[k];if(m&&m.Math==Math)return m}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(b,k){var m=$jscomp.propertyToPolyfillSymbol[k];if(null==m)return b[k];m=b[m];return void 0!==m?m:b[k]};-$jscomp.polyfill=function(b,k,m,f){k&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(b,k,m,f):$jscomp.polyfillUnisolated(b,k,m,f))};$jscomp.polyfillUnisolated=function(b,k,m,f){m=$jscomp.global;b=b.split(".");for(f=0;f<b.length-1;f++){var q=b[f];if(!(q in m))return;m=m[q]}b=b[b.length-1];f=m[b];k=k(f);k!=f&&null!=k&&$jscomp.defineProperty(m,b,{configurable:!0,writable:!0,value:k})};-$jscomp.polyfillIsolated=function(b,k,m,f){var q=b.split(".");b=1===q.length;f=q[0];f=!b&&f in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var u=0;u<q.length-1;u++){var x=q[u];if(!(x in f))return;f=f[x]}q=q[q.length-1];m=$jscomp.IS_SYMBOL_NATIVE&&"es6"===m?f[q]:null;k=k(m);null!=k&&(b?$jscomp.defineProperty($jscomp.polyfills,q,{configurable:!0,writable:!0,value:k}):k!==m&&(void 0===$jscomp.propertyToPolyfillSymbol[q]&&(m=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[q]=$jscomp.IS_SYMBOL_NATIVE?-$jscomp.global.Symbol(q):$jscomp.POLYFILL_PREFIX+m+"$"+q),$jscomp.defineProperty(f,$jscomp.propertyToPolyfillSymbol[q],{configurable:!0,writable:!0,value:k})))};$jscomp.assign=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(b,k){for(var m=1;m<arguments.length;m++){var f=arguments[m];if(f)for(var q in f)$jscomp.owns(f,q)&&(b[q]=f[q])}return b};$jscomp.polyfill("Object.assign",function(b){return b||$jscomp.assign},"es6","es3");+$jscomp.polyfill=function(b,k,m,g){k&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(b,k,m,g):$jscomp.polyfillUnisolated(b,k,m,g))};$jscomp.polyfillUnisolated=function(b,k,m,g){m=$jscomp.global;b=b.split(".");for(g=0;g<b.length-1;g++){var q=b[g];if(!(q in m))return;m=m[q]}b=b[b.length-1];g=m[b];k=k(g);k!=g&&null!=k&&$jscomp.defineProperty(m,b,{configurable:!0,writable:!0,value:k})};+$jscomp.polyfillIsolated=function(b,k,m,g){var q=b.split(".");b=1===q.length;g=q[0];g=!b&&g in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var u=0;u<q.length-1;u++){var x=q[u];if(!(x in g))return;g=g[x]}q=q[q.length-1];m=$jscomp.IS_SYMBOL_NATIVE&&"es6"===m?g[q]:null;k=k(m);null!=k&&(b?$jscomp.defineProperty($jscomp.polyfills,q,{configurable:!0,writable:!0,value:k}):k!==m&&(void 0===$jscomp.propertyToPolyfillSymbol[q]&&(m=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[q]=$jscomp.IS_SYMBOL_NATIVE?+$jscomp.global.Symbol(q):$jscomp.POLYFILL_PREFIX+m+"$"+q),$jscomp.defineProperty(g,$jscomp.propertyToPolyfillSymbol[q],{configurable:!0,writable:!0,value:k})))};$jscomp.assign=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(b,k){for(var m=1;m<arguments.length;m++){var g=arguments[m];if(g)for(var q in g)$jscomp.owns(g,q)&&(b[q]=g[q])}return b};$jscomp.polyfill("Object.assign",function(b){return b||$jscomp.assign},"es6","es3");$jscomp.underscoreProtoCanBeSet=function(){var b={a:!0},k={};try{return k.__proto__=b,k.a}catch(m){}return!1};$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(b,k){b.__proto__=k;if(b.__proto__!==k)throw new TypeError(b+" is not extensible");return b}:null;$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(b){if(!(b instanceof Object))throw new TypeError("Iterator result "+b+" is not an object");};$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(b){this.yieldResult=b};@@ -12916,55 +13001,55 @@ $jscomp.generator.Context.PropertyIterator=function(b){this.object_=b;this.prope$jscomp.generator.Engine_.prototype.next_=function(b){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,b,this.context_.next_);this.context_.next_(b);return this.nextStep_()};$jscomp.generator.Engine_.prototype.return_=function(b){this.context_.start_();var k=this.context_.yieldAllIterator_;if(k)return this.yieldAllStep_("return"in k?k["return"]:function(m){return{value:m,done:!0}},b,this.context_.return);this.context_.return(b);return this.nextStep_()};$jscomp.generator.Engine_.prototype.throw_=function(b){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],b,this.context_.next_);this.context_.throw_(b);return this.nextStep_()};-$jscomp.generator.Engine_.prototype.yieldAllStep_=function(b,k,m){try{var f=b.call(this.context_.yieldAllIterator_,k);$jscomp.generator.ensureIteratorResultIsObject_(f);if(!f.done)return this.context_.stop_(),f;var q=f.value}catch(u){return this.context_.yieldAllIterator_=null,this.context_.throw_(u),this.nextStep_()}this.context_.yieldAllIterator_=null;m.call(this.context_,q);return this.nextStep_()};+$jscomp.generator.Engine_.prototype.yieldAllStep_=function(b,k,m){try{var g=b.call(this.context_.yieldAllIterator_,k);$jscomp.generator.ensureIteratorResultIsObject_(g);if(!g.done)return this.context_.stop_(),g;var q=g.value}catch(u){return this.context_.yieldAllIterator_=null,this.context_.throw_(u),this.nextStep_()}this.context_.yieldAllIterator_=null;m.call(this.context_,q);return this.nextStep_()};$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var b=this.program_(this.context_);if(b)return this.context_.stop_(),{value:b.value,done:!1}}catch(k){this.context_.yieldResult=void 0,this.context_.throw_(k)}this.context_.stop_();if(this.context_.abruptCompletion_){b=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(b.isException)throw b.exception;return{value:b.return,done:!0}}return{value:void 0,done:!0}};$jscomp.generator.Generator_=function(b){this.next=function(k){return b.next_(k)};this.throw=function(k){return b.throw_(k)};this.return=function(k){return b.return_(k)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(b,k){k=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(k));$jscomp.setPrototypeOf&&b.prototype&&$jscomp.setPrototypeOf(k,b.prototype);return k};-$jscomp.asyncExecutePromiseGenerator=function(b){function k(f){return b.next(f)}function m(f){return b.throw(f)}return new Promise(function(f,q){function u(x){x.done?f(x.value):Promise.resolve(x.value).then(k,m).then(u,q)}u(b.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(b){return $jscomp.asyncExecutePromiseGenerator(b())};$jscomp.asyncExecutePromiseGeneratorProgram=function(b){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(b)))};+$jscomp.asyncExecutePromiseGenerator=function(b){function k(g){return b.next(g)}function m(g){return b.throw(g)}return new Promise(function(g,q){function u(x){x.done?g(x.value):Promise.resolve(x.value).then(k,m).then(u,q)}u(b.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(b){return $jscomp.asyncExecutePromiseGenerator(b())};$jscomp.asyncExecutePromiseGeneratorProgram=function(b){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(b)))};DrawioFile=function(b,k){mxEventSource.call(this);this.ui=b;this.setData(k||"");this.initialData=this.getData();this.created=(new Date).getTime();this.stats={opened:0,merged:0,fileMerged:0,fileReloaded:0,conflicts:0,timeouts:0,saved:0,closed:0,destroyed:0,joined:0,checksumErrors:0,bytesSent:0,bytesReceived:0,msgSent:0,msgReceived:0,cacheHits:0,cacheMiss:0,cacheFail:0}};DrawioFile.SYNC=urlParams.sync||"auto";DrawioFile.LAST_WRITE_WINS=!0;DrawioFile.RESTRICT_EXPORT=!1;mxUtils.extend(DrawioFile,mxEventSource);DrawioFile.prototype.allChangesSavedKey="allChangesSaved";DrawioFile.prototype.savingSpinnerKey="saving";DrawioFile.prototype.savingStatusKey="saving";DrawioFile.prototype.autosaveDelay=1500;DrawioFile.prototype.maxAutosaveDelay=3E4;DrawioFile.prototype.optimisticSyncDelay=300;DrawioFile.prototype.loadFontsTimeout=5E3;DrawioFile.prototype.autosaveThread=null;DrawioFile.prototype.lastAutosave=null;DrawioFile.prototype.lastSaved=null;DrawioFile.prototype.lastChanged=null;DrawioFile.prototype.opened=null;DrawioFile.prototype.modified=!1;DrawioFile.prototype.shadowModified=!1;DrawioFile.prototype.data=null;DrawioFile.prototype.shadowPages=null;DrawioFile.prototype.changeListenerEnabled=!0;DrawioFile.prototype.lastAutosaveRevision=null;DrawioFile.prototype.maxAutosaveRevisionDelay=3E5;DrawioFile.prototype.inConflictState=!1;DrawioFile.prototype.invalidChecksum=!1;DrawioFile.prototype.ageStart=null;DrawioFile.prototype.getSize=function(){return null!=this.data?this.data.length:0};DrawioFile.prototype.getShadowPages=function(){if(null==this.shadowPages&&(this.shadowPages=this.ui.getPagesForXml(this.initialData,!0),void 0===this.shadowVars)){this.shadowVars=null;try{var b=mxUtils.parseXml(this.initialData).documentElement;null!=b&&"mxfile"==b.nodeName&&(this.shadowVars=b.getAttribute("vars"))}catch(k){}}return this.shadowPages};DrawioFile.prototype.setShadowPages=function(b,k){this.shadowPages=b;this.shadowVars=void 0!==k?k:null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null};DrawioFile.prototype.getShadowVars=function(){this.getShadowPages();return void 0!==this.shadowVars?this.shadowVars:null};-DrawioFile.prototype.synchronizeFile=function(b,k,m){EditorUi.debug("DrawioFile.synchronizeFile",[this],"latestFile",[m],"savingFile",this.savingFile);if(this.savingFile)null!=k&&k({message:mxResources.get("busy")});else{var f=!0,q=window.setTimeout(mxUtils.bind(this,function(){f=!1;null!=k&&k({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.synchronizeFile(b,k)})})}),this.ui.timeout),u=mxUtils.bind(this,function(z){f&&(window.clearTimeout(q),null!=-k&&k(z))}),x=mxUtils.bind(this,function(){return!f});null!=this.sync?this.sync.fileChanged(mxUtils.bind(this,function(z){f&&(window.clearTimeout(q),this.sync.cleanup(b,k,z))}),u,x):this.updateFile(mxUtils.bind(this,function(){f&&(window.clearTimeout(q),null!=b&&b())}),u,x,null,null,m)}};-DrawioFile.prototype.updateFile=function(b,k,m,f,q,u){if(null==m||!m())if(EditorUi.debug("DrawioFile.updateFile",[this],"immediate",q,"invalidChecksum",this.invalidChecksum,"latestFile",[u]),this.ui.getCurrentFile()!=this||this.invalidChecksum)null!=k&&k();else{var x=mxUtils.bind(this,function(z){try{null!=m&&m()||(EditorUi.debug("DrawioFile.updateFile",[this],"invalidChecksum",this.invalidChecksum,"latestFile",[z]),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=k&&k():null!=z?this.mergeFile(z,-b,k,f,q):this.reloadFile(b,k))}catch(F){null!=k&&k(F)}});null!=u?x(u):this.getLatestVersion(x,k)}};-DrawioFile.prototype.mergeFile=function(b,k,m,f,q){try{var u=b.getShadowPages();if(null!=u&&0<u.length){var x=this.getShadowPages(),z=[this.ui.diffPages(null!=f?f:x,u)];f=null;try{var F=mxUtils.parseXml(b.initialData).documentElement;null!=F&&"mxfile"==F.nodeName&&(f=F.getAttribute("vars"))}catch(t){}f!=this.getShadowVars()&&(z[0][EditorUi.DIFF_FILE]={vars:f});var J=this.ignorePatches(z);if(J)this.inConflictState=this.invalidChecksum=!1,this.setDescriptor(b.getDescriptor()),this.descriptorChanged(),-EditorUi.debug("File.mergeFile",[this],"file",[b],"ignored",J),null!=k&&k();else try{this.stats.fileMerged++;null!=this.sync&&this.sync.sendLocalChanges();var H=this.isModified()?this.ui.diffPages(x,this.isRealtime()?this.ownPages:this.ui.pages):null,D=this.ui.patchPages(this.ui.clonePages(x),z[0]),c=this.ui.getHashValueForPages(D,{}),g=this.ui.getHashValueForPages(u,{});EditorUi.debug("File.mergeFile",[this],"file",[b],"ui",this.ui.pages,"shadow",x,"pages",u,"patched",D,"patches",z,"changes",H,"checksum",-c,"current",g,"valid",c==g,"from",this.getCurrentRevisionId(),"to",b.getCurrentRevisionId(),"modified",this.isModified(),"immediate",q);if(null!=c&&c!=g)this.checksumError(m,z,null,null,"mergeFile",c,g,b.getCurrentRevisionId());else{this.setShadowPages(u,f);if(null!=this.sync){var l=this.sync.patchRealtime(z,DrawioFile.LAST_WRITE_WINS?H:null,null,q);null==l||mxUtils.isEmptyObject(l)||z.push(l)}this.patch(z,DrawioFile.LAST_WRITE_WINS?H:null);this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(b.getDescriptor());+DrawioFile.prototype.synchronizeFile=function(b,k,m){EditorUi.debug("DrawioFile.synchronizeFile",[this],"latestFile",[m],"savingFile",this.savingFile);if(this.savingFile)null!=k&&k({message:mxResources.get("busy")});else{var g=!0,q=window.setTimeout(mxUtils.bind(this,function(){g=!1;null!=k&&k({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.synchronizeFile(b,k)})})}),this.ui.timeout),u=mxUtils.bind(this,function(z){g&&(window.clearTimeout(q),null!=+k&&k(z))}),x=mxUtils.bind(this,function(){return!g});null!=this.sync?this.sync.fileChanged(mxUtils.bind(this,function(z){g&&(window.clearTimeout(q),this.sync.cleanup(b,k,z))}),u,x):this.updateFile(mxUtils.bind(this,function(){g&&(window.clearTimeout(q),null!=b&&b())}),u,x,null,null,m)}};+DrawioFile.prototype.updateFile=function(b,k,m,g,q,u){if(null==m||!m())if(EditorUi.debug("DrawioFile.updateFile",[this],"immediate",q,"invalidChecksum",this.invalidChecksum,"latestFile",[u]),this.ui.getCurrentFile()!=this||this.invalidChecksum)null!=k&&k();else{var x=mxUtils.bind(this,function(z){try{null!=m&&m()||(EditorUi.debug("DrawioFile.updateFile",[this],"invalidChecksum",this.invalidChecksum,"latestFile",[z]),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=k&&k():null!=z?this.mergeFile(z,+b,k,g,q):this.reloadFile(b,k))}catch(F){null!=k&&k(F)}});null!=u?x(u):this.getLatestVersion(x,k)}};+DrawioFile.prototype.mergeFile=function(b,k,m,g,q){try{var u=b.getShadowPages();if(null!=u&&0<u.length){var x=this.getShadowPages(),z=[this.ui.diffPages(null!=g?g:x,u)];g=null;try{var F=mxUtils.parseXml(b.initialData).documentElement;null!=F&&"mxfile"==F.nodeName&&(g=F.getAttribute("vars"))}catch(t){}g!=this.getShadowVars()&&(z[0][EditorUi.DIFF_FILE]={vars:g});var J=this.ignorePatches(z);if(J)this.inConflictState=this.invalidChecksum=!1,this.setDescriptor(b.getDescriptor()),this.descriptorChanged(),+EditorUi.debug("File.mergeFile",[this],"file",[b],"ignored",J),null!=k&&k();else try{this.stats.fileMerged++;null!=this.sync&&this.sync.sendLocalChanges();var H=this.isModified()?this.ui.diffPages(x,this.isRealtime()?this.ownPages:this.ui.pages):null,D=this.ui.patchPages(this.ui.clonePages(x),z[0]),c=this.ui.getHashValueForPages(D,{}),f=this.ui.getHashValueForPages(u,{});EditorUi.debug("File.mergeFile",[this],"file",[b],"ui",this.ui.pages,"shadow",x,"pages",u,"patched",D,"patches",z,"changes",H,"checksum",+c,"current",f,"valid",c==f,"from",this.getCurrentRevisionId(),"to",b.getCurrentRevisionId(),"modified",this.isModified(),"immediate",q);if(null!=c&&c!=f)this.checksumError(m,z,null,null,"mergeFile",c,f,b.getCurrentRevisionId());else{this.setShadowPages(u,g);if(null!=this.sync){var l=this.sync.patchRealtime(z,DrawioFile.LAST_WRITE_WINS?H:null,null,q);null==l||mxUtils.isEmptyObject(l)||z.push(l)}this.patch(z,DrawioFile.LAST_WRITE_WINS?H:null);this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(b.getDescriptor());this.descriptorChanged();null!=k&&k()}}catch(t){this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=m&&m(t);try{if(!(t instanceof DOMException&&"InvalidCharacterError"==t.name)){var n=this.getCurrentUser(),r=null!=n?n.id:"unknown";EditorUi.logError("Error in mergeFile",null,this.getMode()+"."+this.getId(),r,t)}}catch(v){}}}else throw Error(mxResources.get("notADiagramFile"));}catch(t){null!=m&&m(t)}};-DrawioFile.prototype.getAnonymizedXmlForPages=function(b){var k=new mxCodec(mxUtils.createXmlDocument()),m=k.document.createElement("mxfile");if(null!=b)for(var f=0;f<b.length;f++){var q=k.encode(new mxGraphModel(b[f].root));"1"!=urlParams.dev&&(q=this.ui.anonymizeNode(q,!0));q.setAttribute("id",b[f].getId());b[f].viewState&&this.ui.editor.graph.saveViewState(b[f].viewState,q,!0);m.appendChild(q)}return mxUtils.getPrettyXml(m)};+DrawioFile.prototype.getAnonymizedXmlForPages=function(b){var k=new mxCodec(mxUtils.createXmlDocument()),m=k.document.createElement("mxfile");if(null!=b)for(var g=0;g<b.length;g++){var q=k.encode(new mxGraphModel(b[g].root));"1"!=urlParams.dev&&(q=this.ui.anonymizeNode(q,!0));q.setAttribute("id",b[g].getId());b[g].viewState&&this.ui.editor.graph.saveViewState(b[g].viewState,q,!0);m.appendChild(q)}return mxUtils.getPrettyXml(m)};DrawioFile.prototype.compressReportData=function(b,k,m){k=null!=k?k:1E4;null!=m&&null!=b&&b.length>m?b=b.substring(0,m)+"[...]":null!=b&&b.length>k&&(b=Graph.compress(b)+"\n");return b};-DrawioFile.prototype.checksumError=function(b,k,m,f,q,u,x,z){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var F=this.getCurrentUser(),J=null!=F?F.id:"unknown",H=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",D=JSON.stringify(k).length,c=null;if(null!=k&&1E3>D){b=[];for(m=0;m<k.length;m++)b.push(this.ui.anonymizePatch(k[m]));c=JSON.stringify(b);c=null!=c&&1E3>-c.length?Graph.compress(c):null}this.getLatestVersion(mxUtils.bind(this,function(g){try{var l=null!=c?"report":"error",n=this.ui.getHashValueForPages(g.getShadowPages()),r="unknown",t="unknown",v="unknown";try{var B=null!=g.initialData&&0<g.initialData.length?mxUtils.parseXml(g.initialData).documentElement:null;null!=B&&(null!=B.getAttribute("version")&&(r=B.getAttribute("version")),null!=B.getAttribute("agent")&&(t=B.getAttribute("agent")),null!=B.getAttribute("type")&&(v=B.getAttribute("type")))}catch(E){}EditorUi.logError("Checksum "+-l+" in "+q,null,this.getMode()+"."+H,"user_"+J+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+D+"-patches_"+k.length+(null!=c?"-json_"+c:"")+"-size_"+this.getSize()+(null!=u?"-expected_"+u:"")+(null!=x?"-current_"+x:"")+(null!=z?"-rev_"+this.ui.hashValue(z):"")+(null!=n?"-latest_"+n:"")+"-latestRev_"+this.ui.hashValue(g.getCurrentRevisionId())+("-latestVersion_"+r)+("-latestAgent_"+t)+("-latestType_"+v));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+H,action:q,label:"user_"+-J+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+D+"-patches_"+k.length+"-size_"+this.getSize()})}catch(E){}}),function(){})}catch(g){}};-DrawioFile.prototype.sendErrorReport=function(b,k,m,f){try{var q=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),u=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),x=this.getCurrentUser(),z=null!=x?this.ui.hashValue(x.id):"unknown",F=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",J=this.getTitle(),H=J.lastIndexOf(".");x="xml";0<H&&(x=J.substring(H));var D=null!=m?m.stack:Error().stack;EditorUi.sendReport(b+" "+(new Date).toISOString()++DrawioFile.prototype.checksumError=function(b,k,m,g,q,u,x,z){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var F=this.getCurrentUser(),J=null!=F?F.id:"unknown",H=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",D=JSON.stringify(k).length,c=null;if(null!=k&&1E3>D){b=[];for(m=0;m<k.length;m++)b.push(this.ui.anonymizePatch(k[m]));c=JSON.stringify(b);c=null!=c&&1E3>+c.length?Graph.compress(c):null}this.getLatestVersion(mxUtils.bind(this,function(f){try{var l=null!=c?"report":"error",n=this.ui.getHashValueForPages(f.getShadowPages()),r="unknown",t="unknown",v="unknown";try{var B=null!=f.initialData&&0<f.initialData.length?mxUtils.parseXml(f.initialData).documentElement:null;null!=B&&(null!=B.getAttribute("version")&&(r=B.getAttribute("version")),null!=B.getAttribute("agent")&&(t=B.getAttribute("agent")),null!=B.getAttribute("type")&&(v=B.getAttribute("type")))}catch(E){}EditorUi.logError("Checksum "++l+" in "+q,null,this.getMode()+"."+H,"user_"+J+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+D+"-patches_"+k.length+(null!=c?"-json_"+c:"")+"-size_"+this.getSize()+(null!=u?"-expected_"+u:"")+(null!=x?"-current_"+x:"")+(null!=z?"-rev_"+this.ui.hashValue(z):"")+(null!=n?"-latest_"+n:"")+"-latestRev_"+this.ui.hashValue(f.getCurrentRevisionId())+("-latestVersion_"+r)+("-latestAgent_"+t)+("-latestType_"+v));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+H,action:q,label:"user_"++J+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+D+"-patches_"+k.length+"-size_"+this.getSize()})}catch(E){}}),function(){})}catch(f){}};+DrawioFile.prototype.sendErrorReport=function(b,k,m,g){try{var q=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),u=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),x=this.getCurrentUser(),z=null!=x?this.ui.hashValue(x.id):"unknown",F=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",J=this.getTitle(),H=J.lastIndexOf(".");x="xml";0<H&&(x=J.substring(H));var D=null!=m?m.stack:Error().stack;EditorUi.sendReport(b+" "+(new Date).toISOString()+":\n\nAppVersion="+navigator.appVersion+"\nFile="+this.ui.hashValue(this.getId())+" ("+this.getMode()+")"+(this.isModified()?" modified":"")+"\nSize/Type="+this.getSize()+" ("+x+")\nUser="+z+F+"\nPrefix="+this.ui.editor.graph.model.prefix+"\nSync="+DrawioFile.SYNC+(null!=this.sync?(this.sync.enabled?" enabled":"")+(this.sync.isConnected()?" connected":""):"")+"\nPlugins="+(null!=mxSettings.settings?mxSettings.getPlugins():"null")+"\n\nStats:\n"+JSON.stringify(this.stats,null,2)+(null!=k?"\n\n"+k:-"")+(null!=m?"\n\nError: "+m.message:"")+"\n\nStack:\n"+D+"\n\nShadow:\n"+q+"\n\nData:\n"+u,f)}catch(c){}};-DrawioFile.prototype.reloadFile=function(b,k){try{this.stats.fileReloaded++;var m=this.ui.diffPages(this.getShadowPages(),this.isRealtime()?this.ownPages:this.ui.pages),f=this.ui.editor.graph,q=f.getSelectionCells(),u=f.getViewState(),x=this.ui.currentPage;this.getLatestVersion(mxUtils.bind(this,function(z){EditorUi.debug("DrawioFile.reloadFile",[this],"modified",this.isModified(),"rev",this.getCurrentRevisionId(),"changes",[m],"viewState",[u],"latestFile",z);null!=z?(this.ui.replaceFileData(z.getData(),+"")+(null!=m?"\n\nError: "+m.message:"")+"\n\nStack:\n"+D+"\n\nShadow:\n"+q+"\n\nData:\n"+u,g)}catch(c){}};+DrawioFile.prototype.reloadFile=function(b,k){try{this.stats.fileReloaded++;var m=this.ui.diffPages(this.getShadowPages(),this.isRealtime()?this.ownPages:this.ui.pages),g=this.ui.editor.graph,q=g.getSelectionCells(),u=g.getViewState(),x=this.ui.currentPage;this.getLatestVersion(mxUtils.bind(this,function(z){EditorUi.debug("DrawioFile.reloadFile",[this],"modified",this.isModified(),"rev",this.getCurrentRevisionId(),"changes",[m],"viewState",[u],"latestFile",z);null!=z?(this.ui.replaceFileData(z.getData(),[m]),this.ui.restoreViewState(x,u,q),this.setDescriptor(z.getDescriptor()),this.descriptorChanged(),null!=b&&b()):(this.ui.spinner.stop(),this.ui.loadFile(this.getHash(),!0,null,mxUtils.bind(this,function(){if(null==this.ui.fileLoadedError){var F=this.ui.getCurrentFile();null!=F&&(F.stats=this.stats,F.patch([m]),F.fileChanged());this.ui.restoreViewState(x,u,q);null!=b&&b()}else null!=k&&k(this.ui.fileLoadedError)}),!0))}),k)}catch(z){null!=k&&k(z)}};DrawioFile.prototype.copyFile=function(b,k){this.ui.editor.editAsNew(this.ui.getFileData(!0),this.ui.getCopyFilename(this))};DrawioFile.prototype.ignorePatches=function(b){var k=!0;if(null!=b)for(var m=0;m<b.length&&k;m++)k=k&&mxUtils.isEmptyObject(b[m]);return k};-DrawioFile.prototype.patch=function(b,k,m,f){if(null!=b){EditorUi.debug("DrawioFile.patch",[this],"patches",b,"undoable",m,"realtime",this.isRealtime(),"modified",this.isModified());var q=this.ui.editor.undoManager,u=q.history.slice(),x=q.indexOfNextAdd,z=this.ui.editor.graph;z.container.style.visibility="hidden";var F=this.changeListenerEnabled;this.changeListenerEnabled=m;var J=z.foldingEnabled,H=z.mathEnabled,D=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null;this.ui.patchFileNode(b);-var c=z.cellRenderer.redraw;z.cellRenderer.redraw=function(v){v.view.graph.isEditing(v.cell)&&(v.view.graph.scrollCellToVisible(v.cell),v.view.graph.cellEditor.resize());c.apply(this,arguments)};z.model.beginUpdate();try{if(m){for(var g=this.ui.pages.slice(),l=this.ui.currentPage,n=this.ui.applyPatches(this.ui.pages,b,!0,k,this.isModified()),r=0;r<n.length;r++){var t=mxUtils.indexOf(this.ui.pages,n[r]);0>t?this.ui.insertPage(n[r],Math.min(r,this.ui.pages.length)):this.ui.movePage(t,r)}for(r=0;r<g.length;r++)0>-mxUtils.indexOf(n,g[r])&&this.ui.removePage(g[r]);0<=mxUtils.indexOf(this.ui.pages,l)&&this.ui.selectPage(l,!0)}else this.ui.pages=this.ui.applyPatches(this.ui.pages,b,!0,k,this.isModified());0==this.ui.pages.length&&this.ui.pages.push(this.ui.createPage());0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0);z.checkDefaultParent()}finally{z.container.style.visibility="",z.model.endUpdate(),z.cellRenderer.redraw=c,this.changeListenerEnabled=F,m||(q.history=-u,q.indexOfNextAdd=x,q.fireEvent(new mxEventObject(mxEvent.CLEAR))),q=D!=(null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null),(u=null==this.ui.currentPage||this.ui.currentPage.needsUpdate)&&H!=z.mathEnabled?(this.ui.editor.updateGraphComponents(),z.refresh()):q?z.refresh():u&&(J!=z.foldingEnabled?z.view.revalidate():z.view.validate(),z.sizeDidChange()),null!=this.sync&&this.isRealtime()&&!f&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages),this.sync.snapshotVars=null!=this.ui.fileNode?+DrawioFile.prototype.patch=function(b,k,m,g){if(null!=b){EditorUi.debug("DrawioFile.patch",[this],"patches",b,"undoable",m,"realtime",this.isRealtime(),"modified",this.isModified());var q=this.ui.editor.undoManager,u=q.history.slice(),x=q.indexOfNextAdd,z=this.ui.editor.graph;z.container.style.visibility="hidden";var F=this.changeListenerEnabled;this.changeListenerEnabled=m;var J=z.foldingEnabled,H=z.mathEnabled,D=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null;this.ui.patchFileNode(b);+var c=z.cellRenderer.redraw;z.cellRenderer.redraw=function(v){v.view.graph.isEditing(v.cell)&&(v.view.graph.scrollCellToVisible(v.cell),v.view.graph.cellEditor.resize());c.apply(this,arguments)};z.model.beginUpdate();try{if(m){for(var f=this.ui.pages.slice(),l=this.ui.currentPage,n=this.ui.applyPatches(this.ui.pages,b,!0,k,this.isModified()),r=0;r<n.length;r++){var t=mxUtils.indexOf(this.ui.pages,n[r]);0>t?this.ui.insertPage(n[r],Math.min(r,this.ui.pages.length)):this.ui.movePage(t,r)}for(r=0;r<f.length;r++)0>+mxUtils.indexOf(n,f[r])&&this.ui.removePage(f[r]);0<=mxUtils.indexOf(this.ui.pages,l)&&this.ui.selectPage(l,!0)}else this.ui.pages=this.ui.applyPatches(this.ui.pages,b,!0,k,this.isModified());0==this.ui.pages.length&&this.ui.pages.push(this.ui.createPage());0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0);z.checkDefaultParent()}finally{z.container.style.visibility="",z.model.endUpdate(),z.cellRenderer.redraw=c,this.changeListenerEnabled=F,m||(q.history=+u,q.indexOfNextAdd=x,q.fireEvent(new mxEventObject(mxEvent.CLEAR))),q=D!=(null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null),(u=null==this.ui.currentPage||this.ui.currentPage.needsUpdate)&&H!=z.mathEnabled?(this.ui.editor.updateGraphComponents(),z.refresh()):q?z.refresh():u&&(J!=z.foldingEnabled?z.view.revalidate():z.view.validate(),z.sizeDidChange()),null!=this.sync&&this.isRealtime()&&!g&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages),this.sync.snapshotVars=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null),this.ui.editor.fireEvent(new mxEventObject("pagesPatched","patches",b))}EditorUi.debug("DrawioFile.patch",[this],"patches",b,"resolver",k,"undoable",m)}return b};-DrawioFile.prototype.loadFonts=function(b){if(this.ui.getCurrentFile()==this&&/(\.svg)$/i.test(this.getTitle())&&this.ui.getSvgFileProperties(this.ui.fileNode).embedFonts){var k=null,m=!1,f=function(){m||(m=!0,window.clearTimeout(k),b())};k=window.setTimeout(f,this.loadFontsTimeout);try{this.ui.editor.loadFonts(mxUtils.bind(this,function(){this.ui.editor.embedExtFonts(f)}))}catch(q){f()}}else b()};-DrawioFile.prototype.save=function(b,k,m,f,q,u){try{if(EditorUi.debug("DrawioFile.save",[this],"revision",b,"unloading",f,"overwrite",q,"manual",u,"saving",this.savingFile,"editable",this.isEditable(),"invalidChecksum",this.invalidChecksum),this.isEditable())if(!q&&this.invalidChecksum)if(null!=m)m({message:mxResources.get("checksum")});else throw Error(mxResources.get("checksum"));else{this.clearAutosave();var x=mxUtils.bind(this,function(){try{this.updateFileData(),null!=k&&k()}catch(z){if(null!=-m)m(z);else throw z;}});f?x():this.loadFonts(x)}else if(null!=m)m({message:mxResources.get("readOnly")});else throw Error(mxResources.get("readOnly"));}catch(z){if(null!=m)m(z);else throw z;}};+DrawioFile.prototype.loadFonts=function(b){if(this.ui.getCurrentFile()==this&&/(\.svg)$/i.test(this.getTitle())&&this.ui.getSvgFileProperties(this.ui.fileNode).embedFonts){var k=null,m=!1,g=function(){m||(m=!0,window.clearTimeout(k),b())};k=window.setTimeout(g,this.loadFontsTimeout);try{this.ui.editor.loadFonts(mxUtils.bind(this,function(){this.ui.editor.embedExtFonts(g)}))}catch(q){g()}}else b()};+DrawioFile.prototype.save=function(b,k,m,g,q,u){try{if(EditorUi.debug("DrawioFile.save",[this],"revision",b,"unloading",g,"overwrite",q,"manual",u,"saving",this.savingFile,"editable",this.isEditable(),"invalidChecksum",this.invalidChecksum),this.isEditable())if(!q&&this.invalidChecksum)if(null!=m)m({message:mxResources.get("checksum")});else throw Error(mxResources.get("checksum"));else{this.clearAutosave();var x=mxUtils.bind(this,function(){try{this.updateFileData(),null!=k&&k()}catch(z){if(null!=+m)m(z);else throw z;}});g?x():this.loadFonts(x)}else if(null!=m)m({message:mxResources.get("readOnly")});else throw Error(mxResources.get("readOnly"));}catch(z){if(null!=m)m(z);else throw z;}};DrawioFile.prototype.createData=function(){var b=this.ui.pages;if(this.isRealtime()&&(this.ui.pages=this.ownPages,null!=this.ui.currentPage)){var k=this.ui.getPageById(this.ui.currentPage.getId(),this.ownPages);null!=k&&(k.viewState=this.ui.editor.graph.getViewState(),k.needsUpdate=!0)}k=this.ui.getFileData(null,null,null,null,null,null,null,null,this,!this.isCompressed());this.ui.pages=b;return k};DrawioFile.prototype.updateFileData=function(){null!=this.sync&&this.sync.sendLocalChanges();this.setData(this.createData());null!=this.sync&&this.sync.fileDataUpdated()};DrawioFile.prototype.isCompressedStorage=function(){return Editor.defaultCompressed};DrawioFile.prototype.isCompressed=function(){var b=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("compressed"):null;return null!=b?"false"!=b:this.isCompressedStorage()&&Editor.compressXml};-DrawioFile.prototype.setLocked=function(b){this.ui.fileNode.setAttribute("locked",b?"true":"false");this.ui.fireEvent(new mxEventObject("lockedChanged"));this.fileChanged();b&&this.ui.editor.graph.clearSelection()};DrawioFile.prototype.isLocked=function(){var b=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("locked"):null;return null!=b?"true"==b:!1};DrawioFile.prototype.saveAs=function(b,k,m){};DrawioFile.prototype.saveFile=function(b,k,m,f){};DrawioFile.prototype.getFileUrl=function(){return null};+DrawioFile.prototype.setLocked=function(b){this.ui.fileNode.setAttribute("locked",b?"true":"false");this.ui.fireEvent(new mxEventObject("lockedChanged"));this.fileChanged();b&&this.ui.editor.graph.clearSelection()};DrawioFile.prototype.isLocked=function(){var b=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("locked"):null;return null!=b?"true"==b:!1};DrawioFile.prototype.saveAs=function(b,k,m){};DrawioFile.prototype.saveFile=function(b,k,m,g){};DrawioFile.prototype.getFileUrl=function(){return null};DrawioFile.prototype.getFolderUrl=function(b){return null};DrawioFile.prototype.getPublicUrl=function(b){b(null)};DrawioFile.prototype.isRestricted=function(){return DrawioFile.RESTRICT_EXPORT};DrawioFile.prototype.isModified=function(){return this.modified};DrawioFile.prototype.getShadowModified=function(){return this.shadowModified};DrawioFile.prototype.setShadowModified=function(b){this.shadowModified=b};DrawioFile.prototype.setModified=function(b){this.shadowModified=this.modified=b};DrawioFile.prototype.isAutosaveOptional=function(){return!1};DrawioFile.prototype.isAutosave=function(){return!this.inConflictState&&this.ui.editor.autosave};DrawioFile.prototype.isRenamable=function(){return!1};DrawioFile.prototype.rename=function(b,k,m){};DrawioFile.prototype.isMovable=function(){return!1};DrawioFile.prototype.isTrashed=function(){return!1};DrawioFile.prototype.move=function(b,k,m){};-DrawioFile.prototype.share=function(){null!=this.ui.drive?this.ui.confirm(mxResources.get("saveItToGoogleDriveToCollaborate",[this.getTitle()]),mxUtils.bind(this,function(){this.ui.pickFolder(App.MODE_GOOGLE,mxUtils.bind(this,function(b){var k=this.ui.editor.graph,m=k.getSelectionCells(),f=k.getViewState(),q=this.ui.currentPage;this.ui.createFile(this.getTitle(),this.ui.getFileData(null,null,null,null,null,null,null,null,this),null,App.MODE_GOOGLE,null,!0,b,null,null,mxUtils.bind(this,function(){this.ui.restoreViewState(q,-f,m);this.ui.actions.get("share").funct()}))}))}),null,mxResources.get("saveToGoogleDrive"),mxResources.get("cancel")):this.ui.alert(mxResources.get("sharingAvailable"),null,380)};DrawioFile.prototype.getHash=function(){return""};DrawioFile.prototype.getId=function(){return""};DrawioFile.prototype.isEditable=function(){return!this.ui.editor.isChromelessView()||this.ui.editor.editable};DrawioFile.prototype.getUi=function(){return this.ui};DrawioFile.prototype.getTitle=function(){return""};+DrawioFile.prototype.share=function(){null!=this.ui.drive?this.ui.confirm(mxResources.get("saveItToGoogleDriveToCollaborate",[this.getTitle()]),mxUtils.bind(this,function(){this.ui.pickFolder(App.MODE_GOOGLE,mxUtils.bind(this,function(b){var k=this.ui.editor.graph,m=k.getSelectionCells(),g=k.getViewState(),q=this.ui.currentPage;this.ui.createFile(this.getTitle(),this.ui.getFileData(null,null,null,null,null,null,null,null,this),null,App.MODE_GOOGLE,null,!0,b,null,null,mxUtils.bind(this,function(){this.ui.restoreViewState(q,+g,m);this.ui.actions.get("share").funct()}))}))}),null,mxResources.get("saveToGoogleDrive"),mxResources.get("cancel")):this.ui.alert(mxResources.get("sharingAvailable"),null,380)};DrawioFile.prototype.getHash=function(){return""};DrawioFile.prototype.getId=function(){return""};DrawioFile.prototype.isEditable=function(){return!this.ui.editor.isChromelessView()||this.ui.editor.editable};DrawioFile.prototype.getUi=function(){return this.ui};DrawioFile.prototype.getTitle=function(){return""};DrawioFile.prototype.setData=function(b){this.data=b;EditorUi.debug("DrawioFile.setData",[this],"data",[b])};DrawioFile.prototype.getData=function(){return this.data};DrawioFile.prototype.removeExtFonts=function(b){for(var k=0;null!=b&&k<b.length;k++){var m=b[k];null!=m.id&&0==m.id.indexOf("extFont_")&&m.parentNode.removeChild(m)}};DrawioFile.prototype.open=function(){this.stats.opened++;var b=this.getData();null!=b&&(this.ui.setFileData(b,this),this.isModified()||this.setShadowPages(this.ui.clonePages(this.ui.pages)));this.installListeners();this.isSyncSupported()&&this.startSync();EditorUi.debug("DrawioFile.open",[this])};DrawioFile.prototype.isPolling=function(){return!1};DrawioFile.prototype.getPollingInterval=function(){return 1E4};DrawioFile.prototype.isSyncSupported=function(){return!1};DrawioFile.prototype.isRealtime=function(){return null!=this.ownPages&&null!=this.ui.pages};DrawioFile.prototype.isRealtimeSupported=function(){return!1};DrawioFile.prototype.isRealtimeEnabled=function(){return Editor.enableRealtime&&"0"!=urlParams["fast-sync"]};DrawioFile.prototype.setRealtimeEnabled=function(){};DrawioFile.prototype.isRealtimeOptional=function(){return!1};DrawioFile.prototype.getRealtimeState=function(){return null!=this.sync&&null!=this.sync.p2pCollab?this.sync.p2pCollab.getState():3};DrawioFile.prototype.getRealtimeError=function(){return null!=this.sync&&null!=this.sync.p2pCollab?this.sync.p2pCollab.getLastError():null};DrawioFile.prototype.isOptimisticSync=function(){return!1};DrawioFile.prototype.isRevisionHistorySupported=function(){return!1};DrawioFile.prototype.getRevisions=function(b,k){b(null)};-DrawioFile.prototype.getRecoveryVersion=function(b,k){this.isRevisionHistorySupported()?this.getRevisions(mxUtils.bind(this,function(m){if(null==m||2>m.length)b(null);else{var f=m.length-2,q=Math.max(0,f-5+1),u=mxUtils.bind(this,function(){if(f<q)EditorUi.debug("DrawioFile.getRecoveryVersion",[this],"no valid revision found in",m.length-1-q,"probed"),b(null);else{var x=m[f--];null==x||"function"!==typeof x.getXml?u():x.getXml(mxUtils.bind(this,function(z){if(this.ui.isFileDataLoadable(z)){var F=this.ui.formatRecoveryDate(x.modifiedDate);+DrawioFile.prototype.getRecoveryVersion=function(b,k){this.isRevisionHistorySupported()?this.getRevisions(mxUtils.bind(this,function(m){if(null==m||2>m.length)b(null);else{var g=m.length-2,q=Math.max(0,g-5+1),u=mxUtils.bind(this,function(){if(g<q)EditorUi.debug("DrawioFile.getRecoveryVersion",[this],"no valid revision found in",m.length-1-q,"probed"),b(null);else{var x=m[g--];null==x||"function"!==typeof x.getXml?u():x.getXml(mxUtils.bind(this,function(z){if(this.ui.isFileDataLoadable(z)){var F=this.ui.formatRecoveryDate(x.modifiedDate);b({type:"version",label:null!=F?mxResources.get("recoverVersionFrom",[F]):mxResources.get("recoverPreviousVersion"),description:mxResources.get("recoveryVersionDesc"),data:z,date:x.modifiedDate,lossy:!1})}else u()}),mxUtils.bind(this,function(){u()}))}});u()}}),mxUtils.bind(this,function(){b(null)})):b(null)};DrawioFile.prototype.loadDescriptor=function(b,k){b(null)};DrawioFile.prototype.loadPatchDescriptor=function(b,k){this.loadDescriptor(mxUtils.bind(this,function(m){b(m)}),k)};DrawioFile.prototype.patchDescriptor=function(b,k){this.setDescriptorEtag(b,this.getDescriptorEtag(k));this.descriptorChanged()};DrawioFile.prototype.startSync=function(){"auto"!=DrawioFile.SYNC&&"fast"!=DrawioFile.SYNC||"1"==urlParams.stealth||"1"!=urlParams.rt&&this.ui.editor.chromeless&&!this.ui.editor.editable||(null==this.sync&&(this.sync=new DrawioFileSync(this)),this.addListener("realtimeStateChanged",mxUtils.bind(this,function(){this.ui.fireEvent(new mxEventObject("realtimeStateChanged"))})),this.sync.start())};DrawioFile.prototype.isConflict=function(){return!1};@@ -12987,107 +13072,107 @@ DrawioFile.prototype.showRefreshDialog=function(b,k,m){null==m&&(m=mxResources.gfunction(){null!=b&&b();this.ui.alert(mxResources.get("copyCreated"))}),k)}),null,mxResources.get("merge"),mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&this.reloadFile(mxUtils.bind(this,function(){this.ui.spinner.stop();null!=b&&b()}),mxUtils.bind(this,function(){this.ui.spinner.stop();null!=k&&k()}))}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.ui.hideDialog()}),380,130))};DrawioFile.prototype.showCopyDialog=function(b,k,m){this.invalidChecksum=this.inConflictState=!1;this.addUnsavedStatus();this.ui.showError(mxResources.get("externalChanges"),mxResources.get("fileChangedOverwriteDialog"),mxResources.get("makeCopy"),mxUtils.bind(this,function(){this.copyFile(b,k)}),null,mxResources.get("overwrite"),m,mxResources.get("cancel"),mxUtils.bind(this,function(){this.ui.hideDialog()}),380,150)};DrawioFile.prototype.showConflictDialog=function(b,k){this.ui.showError(mxResources.get("externalChanges"),mxResources.get("fileChangedSyncDialog"),mxResources.get("overwrite"),b,null,mxResources.get("merge"),k,mxResources.get("cancel"),mxUtils.bind(this,function(){this.ui.hideDialog();this.handleFileError(null,!1)}),380,130)};-DrawioFile.prototype.redirectToNewApp=function(b,k){this.ui.spinner.stop();if(!this.redirectDialogShowing){this.redirectDialogShowing=!0;var m=window.location.protocol+"//"+window.location.host+"/"+this.ui.getSearch("create title mode url drive splash state".split(" "))+"#"+this.getHash(),f=mxResources.get("redirectToNewApp");null!=k&&(f+=" ("+k+")");k=mxUtils.bind(this,function(){var q=mxUtils.bind(this,function(){this.redirectDialogShowing=!1;window.location.href==m?window.location.reload():window.location.href=-m});null==b&&this.isModified()?this.ui.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){this.redirectDialogShowing=!1}),q,mxResources.get("cancel"),mxResources.get("discardChanges")):q()});null!=b?this.isModified()?this.ui.confirm(f,mxUtils.bind(this,function(){this.redirectDialogShowing=!1;b()}),k,mxResources.get("cancel"),mxResources.get("discardChanges")):this.ui.confirm(f,k,mxUtils.bind(this,function(){this.redirectDialogShowing=!1;b()})):this.ui.alert(mxResources.get("redirectToNewApp"),+DrawioFile.prototype.redirectToNewApp=function(b,k){this.ui.spinner.stop();if(!this.redirectDialogShowing){this.redirectDialogShowing=!0;var m=window.location.protocol+"//"+window.location.host+"/"+this.ui.getSearch("create title mode url drive splash state".split(" "))+"#"+this.getHash(),g=mxResources.get("redirectToNewApp");null!=k&&(g+=" ("+k+")");k=mxUtils.bind(this,function(){var q=mxUtils.bind(this,function(){this.redirectDialogShowing=!1;window.location.href==m?window.location.reload():window.location.href=+m});null==b&&this.isModified()?this.ui.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){this.redirectDialogShowing=!1}),q,mxResources.get("cancel"),mxResources.get("discardChanges")):q()});null!=b?this.isModified()?this.ui.confirm(g,mxUtils.bind(this,function(){this.redirectDialogShowing=!1;b()}),k,mxResources.get("cancel"),mxResources.get("discardChanges")):this.ui.confirm(g,k,mxUtils.bind(this,function(){this.redirectDialogShowing=!1;b()})):this.ui.alert(mxResources.get("redirectToNewApp"),k)}};DrawioFile.prototype.handleFileSuccess=function(b){this.ui.spinner.stop();this.ui.getCurrentFile()==this&&(EditorUi.debug("DrawioFile.handleFileSuccess",[this],"saved",b,"modified",this.isModified(),"remoteFileChanged",null==this.sync?"n/a":this.sync.remoteFileChanged),this.isModified()?this.fileChanged():b?(this.isTrashed()?this.ui.updateStatus(mxUtils.bind(this,function(){this.addAllSavedStatus(mxUtils.htmlEntities(mxResources.get(this.allChangesSavedKey))+" ("+mxUtils.htmlEntities(mxResources.get("fileMovedToTrash"))+")")})):this.ui.updateStatus(mxUtils.bind(this,function(){this.addAllSavedStatus()})),null!=this.sync&&(this.sync.resetUpdateStatusThread(),this.sync.remoteFileChanged&&(this.sync.remoteFileChanged=!1,this.sync.fileChangedNotify()))):this.ui.clearStatus())};DrawioFile.prototype.handleFileError=function(b,k){if(k||null==b||b.code!=App.ERROR_BUSY)this.ui.spinner.stop(),this.ui.getCurrentFile()==this&&(this.inConflictState?this.handleConflictError(b,k):(this.isModified()&&this.addUnsavedStatus(b),k?this.ui.handleError(b,null!=b?mxResources.get("errorSavingFile"):null):this.isModified()||this.ui.updateStatus(mxUtils.bind(this,function(){var m=this.getErrorMessage(b);null!=m&&60<m.length&&(m=m.substring(0,60)+"...");this.ui.editor.setStatus('<div class="geStatusAlert">'+mxUtils.htmlEntities(mxResources.get("error"))+(null!=m?" ("+mxUtils.htmlEntities(m)+")":"")+"</div>")}))))};-DrawioFile.prototype.handleConflictError=function(b,k){var m=mxUtils.bind(this,function(){this.handleFileSuccess(!0)}),f=mxUtils.bind(this,function(x){this.handleFileError(x,!0)}),q=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&(this.ui.clearStatus(),this.save(!0,m,f,null,!0,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage))}),u=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&-this.synchronizeFile(mxUtils.bind(this,function(){this.ui.spinner.stop();this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&this.save(!0,m,f,null,null,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage)}),f)});"none"==DrawioFile.SYNC?this.showCopyDialog(m,f,q):this.invalidChecksum&&k?this.showRefreshDialog(m,f,this.getErrorMessage(b)):k?this.showConflictDialog(q,u):this.addConflictStatus(this.getErrorMessage(b),mxUtils.bind(this,function(){this.ui.editor.setStatus(mxUtils.htmlEntities(mxResources.get("updatingDocument")));-this.synchronizeFile(m,f)}))};DrawioFile.prototype.getErrorMessage=function(b){var k=null!=b?null!=b.error?b.error.message:b.message:null;null==k&&null!=b&&b.code==App.ERROR_TIMEOUT?k=mxResources.get("timeout"):"0"==k&&(k=mxResources.get("noResponse"));return k};DrawioFile.prototype.isOverdue=function(){return null!=this.ageStart&&Date.now()-this.ageStart.getTime()>=this.ui.warnInterval};-DrawioFile.prototype.compressionChanged=function(b){var k=null!=this.ownPages?this.ownPages:this.ui.pages;if(null!=k)for(var m=0;m<k.length;m++){var f=k[m].node;if(null!=f&&(null==this.ui.currentPage||this.ui.currentPage.getId()!=k[m].getId())){var q=f.getElementsByTagName("mxGraphModel");q=0<q.length?q[0]:null;var u=Graph.decompress(mxUtils.getNodeValue(f));b?0==u.length&&null!=q&&(EditorUi.removeChildNodes(f),mxUtils.setTextContent(f,Graph.compressNode(q)),EditorUi.debug("DrawioFile.compressionChanged",-[this],"Page "+m+" compressed")):0<u.length&&null==q&&(EditorUi.removeChildNodes(f),f.appendChild(mxUtils.parseXml(u).documentElement),EditorUi.debug("DrawioFile.compressionChanged",[this],"Page "+m+" decompressed"))}}};DrawioFile.prototype.fileReplaced=function(b){this.inConflictState=this.invalidChecksum=!1;null!=b&&this.patch(b);null!=this.sync&&this.sync.initRealtime();EditorUi.debug("DrawioFile.fileReplaced",[this],"patches",b)};+DrawioFile.prototype.handleConflictError=function(b,k){var m=mxUtils.bind(this,function(){this.handleFileSuccess(!0)}),g=mxUtils.bind(this,function(x){this.handleFileError(x,!0)}),q=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&(this.ui.clearStatus(),this.save(!0,m,g,null,!0,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage))}),u=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&+this.synchronizeFile(mxUtils.bind(this,function(){this.ui.spinner.stop();this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&this.save(!0,m,g,null,null,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage)}),g)});"none"==DrawioFile.SYNC?this.showCopyDialog(m,g,q):this.invalidChecksum&&k?this.showRefreshDialog(m,g,this.getErrorMessage(b)):k?this.showConflictDialog(q,u):this.addConflictStatus(this.getErrorMessage(b),mxUtils.bind(this,function(){this.ui.editor.setStatus(mxUtils.htmlEntities(mxResources.get("updatingDocument")));+this.synchronizeFile(m,g)}))};DrawioFile.prototype.getErrorMessage=function(b){var k=null!=b?null!=b.error?b.error.message:b.message:null;null==k&&null!=b&&b.code==App.ERROR_TIMEOUT?k=mxResources.get("timeout"):"0"==k&&(k=mxResources.get("noResponse"));return k};DrawioFile.prototype.isOverdue=function(){return null!=this.ageStart&&Date.now()-this.ageStart.getTime()>=this.ui.warnInterval};+DrawioFile.prototype.compressionChanged=function(b){var k=null!=this.ownPages?this.ownPages:this.ui.pages;if(null!=k)for(var m=0;m<k.length;m++){var g=k[m].node;if(null!=g&&(null==this.ui.currentPage||this.ui.currentPage.getId()!=k[m].getId())){var q=g.getElementsByTagName("mxGraphModel");q=0<q.length?q[0]:null;var u=Graph.decompress(mxUtils.getNodeValue(g));b?0==u.length&&null!=q&&(EditorUi.removeChildNodes(g),mxUtils.setTextContent(g,Graph.compressNode(q)),EditorUi.debug("DrawioFile.compressionChanged",+[this],"Page "+m+" compressed")):0<u.length&&null==q&&(EditorUi.removeChildNodes(g),g.appendChild(mxUtils.parseXml(u).documentElement),EditorUi.debug("DrawioFile.compressionChanged",[this],"Page "+m+" decompressed"))}}};DrawioFile.prototype.fileReplaced=function(b){this.inConflictState=this.invalidChecksum=!1;null!=b&&this.patch(b);null!=this.sync&&this.sync.initRealtime();EditorUi.debug("DrawioFile.fileReplaced",[this],"patches",b)};DrawioFile.prototype.fileChanged=function(b){b=null!=b?b:!0;this.lastChanged=new Date;this.setModified(!0);EditorUi.debug("DrawioFile.fileChanged",[this],"autosaveDelay",this.autosaveDelay,"autosave",this.isAutosave(),"saving",this.savingFile);this.isAutosave()?(null!=this.savingStatusKey&&this.ui.updateStatus(mxUtils.bind(this,function(){this.addAllSavedStatus(mxUtils.htmlEntities(mxResources.get(this.savingStatusKey))+"...")})),this.ui.scheduleSanityCheck(),null==this.ageStart&&(this.ageStart=new Date),this.autosave(this.autosaveDelay,this.maxAutosaveDelay,mxUtils.bind(this,function(k){this.ui.stopSanityCheck();null==this.autosaveThread?(this.handleFileSuccess(!0),this.ageStart=null):this.isModified()&&(this.ui.scheduleSanityCheck(),this.ageStart=this.lastChanged)}),mxUtils.bind(this,function(k){this.handleFileError(k)}))):(this.ageStart=null,this.isAutosaveOptional()&&this.ui.editor.autosave||this.inConflictState||this.addUnsavedStatus());null!=this.sync&&b&&this.sync.localFileChanged()};DrawioFile.prototype.createSecret=function(b){var k=Editor.guid(32);Editor.enableRealtimeCache&&null!=this.sync&&!this.isOptimisticSync()?this.sync.createToken(k,mxUtils.bind(this,function(m){EditorUi.debug("DrawioFile.createSecret",[this],"secret",k,"token",m);b(k,m)}),mxUtils.bind(this,function(){b(k)})):b(k)};DrawioFile.prototype.fileSaving=function(){null!=this.sync&&this.sync.fileSaving()};-DrawioFile.prototype.fileSaved=function(b,k,m,f,q,u,x){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;u=null!=u?u:this.ui.getPagesForXml(b,!0);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(u),null!=this.sync&&(this.sync.lastModified=this.getLastModifiedDate(),this.sync.resetUpdateStatusThread(),this.isRealtime()&&this.sync.scheduleCleanup()),null!=m&&m()):this.sync.fileSaved(u,k,m,f,q,x)}catch(J){this.invalidChecksum=-this.inConflictState=!0;this.descriptorChanged();null!=f&&f(J);try{var z=this.getCurrentUser(),F=null!=z?z.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),F,J)}catch(H){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"desc",[k],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(J){this.descriptorChanged(),null!=f&&f(J)}};-DrawioFile.prototype.autosave=function(b,k,m,f){null==this.lastAutosave&&(this.lastAutosave=Date.now());var q=Date.now()-this.lastAutosave<k?b:0;this.clearAutosave();var u=window.setTimeout(mxUtils.bind(this,function(){try{if(this.lastAutosave=null,this.autosaveThread==u&&(this.autosaveThread=null),EditorUi.debug("DrawioFile.autosave",[this],"thread",u,"modified",this.isModified(),"now",this.isAutosaveNow(),"saving",this.savingFile),this.isModified()&&this.isAutosaveNow()){var x=this.isAutosaveRevision();-x&&(this.lastAutosaveRevision=(new Date).getTime());this.save(x,mxUtils.bind(this,function(z){this.autosaveCompleted();null!=m&&m(z)}),mxUtils.bind(this,function(z){null!=f&&f(z)}))}else this.isModified()||this.ui.clearStatus(),null!=m&&m(null)}catch(z){null!=f&&f(z)}}),q);this.autosaveThread=u;EditorUi.debug("DrawioFile.autosave",[this],"thread",u,"delay",b,"maxDelay",k,"actualDelay",q,"lastAutosave",this.lastAutosave,"saving",this.savingFile)};DrawioFile.prototype.isAutosaveNow=function(){return!0};+DrawioFile.prototype.fileSaved=function(b,k,m,g,q,u,x){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;u=null!=u?u:this.ui.getPagesForXml(b,!0);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(u),null!=this.sync&&(this.sync.lastModified=this.getLastModifiedDate(),this.sync.resetUpdateStatusThread(),this.isRealtime()&&this.sync.scheduleCleanup()),null!=m&&m()):this.sync.fileSaved(u,k,m,g,q,x)}catch(J){this.invalidChecksum=+this.inConflictState=!0;this.descriptorChanged();null!=g&&g(J);try{var z=this.getCurrentUser(),F=null!=z?z.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),F,J)}catch(H){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"desc",[k],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(J){this.descriptorChanged(),null!=g&&g(J)}};+DrawioFile.prototype.autosave=function(b,k,m,g){null==this.lastAutosave&&(this.lastAutosave=Date.now());var q=Date.now()-this.lastAutosave<k?b:0;this.clearAutosave();var u=window.setTimeout(mxUtils.bind(this,function(){try{if(this.lastAutosave=null,this.autosaveThread==u&&(this.autosaveThread=null),EditorUi.debug("DrawioFile.autosave",[this],"thread",u,"modified",this.isModified(),"now",this.isAutosaveNow(),"saving",this.savingFile),this.isModified()&&this.isAutosaveNow()){var x=this.isAutosaveRevision();+x&&(this.lastAutosaveRevision=(new Date).getTime());this.save(x,mxUtils.bind(this,function(z){this.autosaveCompleted();null!=m&&m(z)}),mxUtils.bind(this,function(z){null!=g&&g(z)}))}else this.isModified()||this.ui.clearStatus(),null!=m&&m(null)}catch(z){null!=g&&g(z)}}),q);this.autosaveThread=u;EditorUi.debug("DrawioFile.autosave",[this],"thread",u,"delay",b,"maxDelay",k,"actualDelay",q,"lastAutosave",this.lastAutosave,"saving",this.savingFile)};DrawioFile.prototype.isAutosaveNow=function(){return!0};DrawioFile.prototype.autosaveCompleted=function(){};DrawioFile.prototype.clearAutosave=function(){null!=this.autosaveThread&&(window.clearTimeout(this.autosaveThread),this.autosaveThread=null)};DrawioFile.prototype.isAutosaveRevision=function(){var b=(new Date).getTime();return null==this.lastAutosaveRevision||b-this.lastAutosaveRevision>this.maxAutosaveRevisionDelay};DrawioFile.prototype.descriptorChanged=function(){this.fireEvent(new mxEventObject("descriptorChanged"))};DrawioFile.prototype.contentChanged=function(){this.fireEvent(new mxEventObject("contentChanged"))};DrawioFile.prototype.close=function(b){try{this.isAutosave()&&this.isModified()&&(this.updateFileData(),this.save(this.isAutosaveRevision(),null,null,b))}catch(k){}this.stats.closed++;this.destroy()};DrawioFile.prototype.hasSameExtension=function(b,k){if(null!=b&&null!=k){var m=b.lastIndexOf(".");b=0<m?b.substring(m):"";m=k.lastIndexOf(".");return b===(0<m?k.substring(m):"")}return b==k};DrawioFile.prototype.removeListeners=function(){null!=this.changeListener&&(this.ui.editor.graph.model.removeListener(this.changeListener),this.ui.editor.graph.removeListener(this.changeListener),this.ui.removeListener(this.changeListener),this.changeListener=null)};DrawioFile.prototype.destroy=function(){this.clearAutosave();this.removeListeners();this.stats.destroyed++;null!=this.sync&&(this.sync.destroy(),this.sync=null)};DrawioFile.prototype.commentsSupported=function(){return!1};DrawioFile.prototype.anchoredCommentsSupported=function(){return!1};DrawioFile.prototype.mentionsSupported=function(){return!1};DrawioFile.prototype.freeMentionsSupported=function(){return this.mentionsSupported()};DrawioFile.prototype.mentionsLiveSearch=function(){return!1};DrawioFile.prototype.mentionNotificationsSupported=function(){return!0};DrawioFile.prototype.getMentionCandidates=function(b,k,m){b([])};DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};-DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,k){b([])};DrawioFile.prototype.addComment=function(b,k,m){k(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,k){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,k)};LocalFile=function(b,k,m,f,q,u,x){DrawioFile.call(this,b,k);this.title=m;this.mode=f?null:App.MODE_DEVICE;this.fileHandle=q;this.desc=u;this.editable=x};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};-LocalFile.prototype.getTitle=function(){return this.title};LocalFile.prototype.isRenamable=function(){return!0};LocalFile.prototype.isEditable=function(){return DrawioFile.prototype.isEditable.apply(this,arguments)&&(null==this.editable||this.editable)};LocalFile.prototype.setEditable=function(b){this.editable=b;this.descriptorChanged()};LocalFile.prototype.save=function(b,k,m,f,q){this.saveAs(this.title,k,m,f,q)};LocalFile.prototype.saveAs=function(b,k,m,f,q){this.saveFile(b,!1,k,m,null,f,q)};+DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,k){b([])};DrawioFile.prototype.addComment=function(b,k,m){k(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,k){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,k)};LocalFile=function(b,k,m,g,q,u,x){DrawioFile.call(this,b,k);this.title=m;this.mode=g?null:App.MODE_DEVICE;this.fileHandle=q;this.desc=u;this.editable=x};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};+LocalFile.prototype.getTitle=function(){return this.title};LocalFile.prototype.isRenamable=function(){return!0};LocalFile.prototype.isEditable=function(){return DrawioFile.prototype.isEditable.apply(this,arguments)&&(null==this.editable||this.editable)};LocalFile.prototype.setEditable=function(b){this.editable=b;this.descriptorChanged()};LocalFile.prototype.save=function(b,k,m,g,q){this.saveAs(this.title,k,m,g,q)};LocalFile.prototype.saveAs=function(b,k,m,g,q){this.saveFile(b,!1,k,m,null,g,q)};LocalFile.prototype.getDescriptor=function(){return this.desc};LocalFile.prototype.setDescriptor=function(b){this.desc=b};LocalFile.prototype.getLatestVersion=function(b,k){null==this.fileHandle?null!=k&&k({message:mxResources.get("cannotOpenFile")}):this.ui.loadFileSystemEntry(this.fileHandle,b,k)};-LocalFile.prototype.saveFile=function(b,k,m,f,q,u,x){b!=this.title&&(this.editable=this.desc=this.fileHandle=null);this.title=b;var z=mxUtils.bind(this,function(H,D){var c=mxUtils.bind(this,function(){var g=Editor.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var l=this.getData();if(g){var n=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(r){H(r,l,g)}),D,this.ui.getCurrentFile()!=this?l:null,n.scale,n.border)}else H(l,-l,g)});q||u?(q||this.updateFileData(),c()):this.loadFonts(mxUtils.bind(this,function(){this.updateFileData();c()}))}),F=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=m&&m()});if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=!0;var J=mxUtils.bind(this,function(H,D){this.savingFile=!1;null!=D&&D.abort().then(function(){},function(){});null!=f&&f({error:H})});this.fileHandle.createWritable().then(mxUtils.bind(this,-function(H){z(mxUtils.bind(this,function(D,c,g){this.saveDraft(c);this.fileHandle.getFile().then(mxUtils.bind(this,function(l){this.invalidFileHandle=null;EditorUi.debug("LocalFile.saveFile",[this],"desc",[this.desc],"newDesc",[l],"conflict",this.desc.lastModified!=l.lastModified);x||this.desc.lastModified==l.lastModified?H.write(g?this.ui.base64ToBlob(D,"image/png"):D).then(mxUtils.bind(this,function(){H.close().then(mxUtils.bind(this,function(){this.fileHandle.getFile().then(mxUtils.bind(this,function(n){try{var r=+LocalFile.prototype.saveFile=function(b,k,m,g,q,u,x){b!=this.title&&(this.editable=this.desc=this.fileHandle=null);this.title=b;var z=mxUtils.bind(this,function(H,D){var c=mxUtils.bind(this,function(){var f=Editor.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var l=this.getData();if(f){var n=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(r){H(r,l,f)}),D,this.ui.getCurrentFile()!=this?l:null,n.scale,n.border)}else H(l,+l,f)});q||u?(q||this.updateFileData(),c()):this.loadFonts(mxUtils.bind(this,function(){this.updateFileData();c()}))}),F=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=m&&m()});if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=!0;var J=mxUtils.bind(this,function(H,D){this.savingFile=!1;null!=D&&D.abort().then(function(){},function(){});null!=g&&g({error:H})});this.fileHandle.createWritable().then(mxUtils.bind(this,+function(H){z(mxUtils.bind(this,function(D,c,f){this.saveDraft(c);this.fileHandle.getFile().then(mxUtils.bind(this,function(l){this.invalidFileHandle=null;EditorUi.debug("LocalFile.saveFile",[this],"desc",[this.desc],"newDesc",[l],"conflict",this.desc.lastModified!=l.lastModified);x||this.desc.lastModified==l.lastModified?H.write(f?this.ui.base64ToBlob(D,"image/png"):D).then(mxUtils.bind(this,function(){H.close().then(mxUtils.bind(this,function(){this.fileHandle.getFile().then(mxUtils.bind(this,function(n){try{var r=this.desc;this.savingFile=!1;this.desc=n;this.fileSaved(c,r,F,J);this.removeDraft()}catch(t){J(t)}}),J)}),J)}),mxUtils.bind(this,function(n){J(n,H)})):(this.inConflictState=!0,J(null,H))}),mxUtils.bind(this,function(l){this.invalidFileHandle=!0;J(l,H)}))}),mxUtils.bind(this,function(D){J(D,H)}))}),J)}}else z(mxUtils.bind(this,function(H,D,c){this.ui.isOfflineApp()||this.ui.isLocalFileSave()?this.ui.doSaveLocalFile(H,b,c?"image/png":"text/xml",c):H.length<MAX_REQUEST_SIZE?(D=b.lastIndexOf("."),D=0<-D?b.substring(D+1):"xml",(new mxXmlRequest(SAVE_URL,"format="+D+"&xml="+encodeURIComponent(H)+"&filename="+encodeURIComponent(b)+(c?"&binary=1":""))).simulate(document,"_blank")):this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(H)}));F()}),f)};LocalFile.prototype.rename=function(b,k,m){this.title=b;this.descriptorChanged();null!=k&&k()};LocalLibrary=function(b,k,m){LocalFile.call(this,b,k,m)};mxUtils.extend(LocalLibrary,LocalFile);LocalLibrary.prototype.getHash=function(){return"F"+this.getTitle()};LocalLibrary.prototype.isAutosave=function(){return!1};LocalLibrary.prototype.saveAs=function(b,k,m){this.saveFile(b,!1,k,m)};LocalLibrary.prototype.updateFileData=function(){};LocalLibrary.prototype.open=function(){};StorageFile=function(b,k,m){DrawioFile.call(this,b,k);this.title=m;this.etag=this.getEtag(k)};mxUtils.extend(StorageFile,DrawioFile);StorageFile.prototype.getEtag=function(b){return this.ui.hashValue(null!=b?b:"")};StorageFile.prototype.autosaveDelay=500;StorageFile.prototype.maxAutosaveDelay=2E4;StorageFile.prototype.maxRetries=5;StorageFile.prototype.type="F";StorageFile.prototype.getMode=function(){return App.MODE_BROWSER};StorageFile.prototype.isSyncSupported=function(){return!0};+D?b.substring(D+1):"xml",(new mxXmlRequest(SAVE_URL,"format="+D+"&xml="+encodeURIComponent(H)+"&filename="+encodeURIComponent(b)+(c?"&binary=1":""))).simulate(document,"_blank")):this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(H)}));F()}),g)};LocalFile.prototype.rename=function(b,k,m){this.title=b;this.descriptorChanged();null!=k&&k()};LocalLibrary=function(b,k,m){LocalFile.call(this,b,k,m)};mxUtils.extend(LocalLibrary,LocalFile);LocalLibrary.prototype.getHash=function(){return"F"+this.getTitle()};LocalLibrary.prototype.isAutosave=function(){return!1};LocalLibrary.prototype.saveAs=function(b,k,m){this.saveFile(b,!1,k,m)};LocalLibrary.prototype.updateFileData=function(){};LocalLibrary.prototype.open=function(){};StorageFile=function(b,k,m){DrawioFile.call(this,b,k);this.title=m;this.etag=this.getEtag(k)};mxUtils.extend(StorageFile,DrawioFile);StorageFile.prototype.getEtag=function(b){return this.ui.hashValue(null!=b?b:"")};StorageFile.prototype.autosaveDelay=500;StorageFile.prototype.maxAutosaveDelay=2E4;StorageFile.prototype.maxRetries=5;StorageFile.prototype.type="F";StorageFile.prototype.getMode=function(){return App.MODE_BROWSER};StorageFile.prototype.isSyncSupported=function(){return!0};StorageFile.prototype.isPolling=function(){return this.isSyncSupported()};StorageFile.prototype.getPollingInterval=function(){return 1E4};StorageFile.prototype.loadDescriptor=function(b,k){this.getLatestVersionId(b,k)};StorageFile.prototype.getLatestVersionId=function(b,k){StorageFile.getFileContent(this.ui,this.title,mxUtils.bind(this,function(m){b(this.getEtag(m))}),k)};StorageFile.prototype.isAutosaveOptional=function(){return!0};StorageFile.prototype.getHash=function(){return"L"+encodeURIComponent(this.getTitle())};StorageFile.prototype.getTitle=function(){return this.title};StorageFile.prototype.isRenamable=function(){return!0};StorageFile.prototype.getDescriptor=function(){return this.etag};StorageFile.prototype.setDescriptor=function(b){this.etag=b};StorageFile.prototype.getDescriptorEtag=function(b){return b};StorageFile.prototype.save=function(b,k,m){DrawioFile.prototype.save.apply(this,[!1,mxUtils.bind(this,function(){this.saveFile(this.getTitle(),!1,k,m)}),m])};-StorageFile.prototype.saveAs=function(b,k,m){this.rename(b,k,m)};StorageFile.insertFile=function(b,k,m,f,q,u){StorageFile.doInsertFile(null!=u?u:new StorageFile(b,m,k),f,q)};StorageFile.doInsertFile=function(b,k,m){var f=b.getTitle(),q=b.getUi(),u=mxUtils.bind(this,function(x){var z=function(){b.writeFile(f,function(){k(b)},m)};x?q.confirm(mxResources.get("replaceIt",[f]),z,m):z()});StorageFile.getFileContent(q,f,function(x){u(null!=x)},function(){u(!1)})};-StorageFile.getFileContent=function(b,k,m,f){b.getDatabaseItem(k,function(q){m(null!=q?q.data:null)},mxUtils.bind(this,function(){null==b.database?b.getLocalData(k,m):null!=f&&f()}),"files")};StorageFile.getFileInfo=function(b,k,m,f){b.getDatabaseItem(k,function(q){m(q)},mxUtils.bind(this,function(){null==b.database?b.getLocalData(k,function(q){m(null!=q?{title:k}:null)}):null!=f&&f()}),"filesInfo")};-StorageFile.prototype.saveFile=function(b,k,m,f,q){q=null!=q?q:0;if(this.isEditable()){var u=mxUtils.bind(this,function(){this.writeFile(b,m,f)});this.isRenamable()&&"."==b.charAt(0)&&null!=f?f({message:mxResources.get("invalidName")}):this instanceof StorageLibrary?u():StorageFile.getFileInfo(this.ui,b,mxUtils.bind(this,function(x){this.isRenamable()&&this.getTitle()!=b&&null!=x?this.ui.confirm(mxResources.get("replaceIt",[b]),u,f):this.getLatestVersion(mxUtils.bind(this,function(z){EditorUi.debug("StorageFile.saveFile",-[this],"title",b,"data",x,"latestVersion",[z],"descriptor",this.getDescriptor(),"latestVersionDescriptor",z.getDescriptor());z.getDescriptor()!=this.getDescriptor()?this.mergeFile(z,mxUtils.bind(this,function(){q>=this.maxRetries||this.invalidChecksum||this.inConflictState?(this.inConflictState=!0,null!=f&&f()):this.retrySave(mxUtils.bind(this,function(){this.updateFileData();this.saveFile(b,k,m,f,q+1)}))}),f):u()}),f)}),f)}else null!=m&&m();EditorUi.debug("StorageFile.saveFile",[this],"title",b,+StorageFile.prototype.saveAs=function(b,k,m){this.rename(b,k,m)};StorageFile.insertFile=function(b,k,m,g,q,u){StorageFile.doInsertFile(null!=u?u:new StorageFile(b,m,k),g,q)};StorageFile.doInsertFile=function(b,k,m){var g=b.getTitle(),q=b.getUi(),u=mxUtils.bind(this,function(x){var z=function(){b.writeFile(g,function(){k(b)},m)};x?q.confirm(mxResources.get("replaceIt",[g]),z,m):z()});StorageFile.getFileContent(q,g,function(x){u(null!=x)},function(){u(!1)})};+StorageFile.getFileContent=function(b,k,m,g){b.getDatabaseItem(k,function(q){m(null!=q?q.data:null)},mxUtils.bind(this,function(){null==b.database?b.getLocalData(k,m):null!=g&&g()}),"files")};StorageFile.getFileInfo=function(b,k,m,g){b.getDatabaseItem(k,function(q){m(q)},mxUtils.bind(this,function(){null==b.database?b.getLocalData(k,function(q){m(null!=q?{title:k}:null)}):null!=g&&g()}),"filesInfo")};+StorageFile.prototype.saveFile=function(b,k,m,g,q){q=null!=q?q:0;if(this.isEditable()){var u=mxUtils.bind(this,function(){this.writeFile(b,m,g)});this.isRenamable()&&"."==b.charAt(0)&&null!=g?g({message:mxResources.get("invalidName")}):this instanceof StorageLibrary?u():StorageFile.getFileInfo(this.ui,b,mxUtils.bind(this,function(x){this.isRenamable()&&this.getTitle()!=b&&null!=x?this.ui.confirm(mxResources.get("replaceIt",[b]),u,g):this.getLatestVersion(mxUtils.bind(this,function(z){EditorUi.debug("StorageFile.saveFile",+[this],"title",b,"data",x,"latestVersion",[z],"descriptor",this.getDescriptor(),"latestVersionDescriptor",z.getDescriptor());z.getDescriptor()!=this.getDescriptor()?this.mergeFile(z,mxUtils.bind(this,function(){q>=this.maxRetries||this.invalidChecksum||this.inConflictState?(this.inConflictState=!0,null!=g&&g()):this.retrySave(mxUtils.bind(this,function(){this.updateFileData();this.saveFile(b,k,m,g,q+1)}))}),g):u()}),g)}),g)}else null!=m&&m();EditorUi.debug("StorageFile.saveFile",[this],"title",b,"revision",k,"retry",q)};StorageFile.prototype.retrySave=function(b){var k=300+300*Math.random();window.setTimeout(b,k);EditorUi.debug("StorageFile.retrySave",[this],"delay",k)};-StorageFile.prototype.writeFile=function(b,k,m){EditorUi.debug("StorageFile.writeFile",[this],"title",b);this.isRenamable()&&(this.title=b);try{var f=this.getDescriptor(),q=this.getData(),u=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.setDescriptor(this.getEtag(q));this.contentChanged();this.fileSaved(q,f,k,m)});this.setShadowModified(!1);this.ui.setDatabaseItem(null,[{title:this.title,size:q.length,lastModified:Date.now(),type:this.type},{title:this.title,data:q}],-u,mxUtils.bind(this,function(){if(null==this.ui.database)try{this.ui.setLocalData(this.title,q,u)}catch(x){null!=m&&m(x)}else null!=m&&m()}),["filesInfo","files"])}catch(x){null!=m&&m(x)}};StorageFile.prototype.rename=function(b,k,m){var f=this.getTitle();f!=b?(EditorUi.debug("StorageFile.rename",[this],"oldTitle",f,"newTitle",b),this.saveFile(b,!1,mxUtils.bind(this,function(){StorageFile.deleteFile(this.ui,f,mxUtils.bind(this,function(){this.ui.removeLocalData(f,k)},m))}),m)):k()};+StorageFile.prototype.writeFile=function(b,k,m){EditorUi.debug("StorageFile.writeFile",[this],"title",b);this.isRenamable()&&(this.title=b);try{var g=this.getDescriptor(),q=this.getData(),u=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.setDescriptor(this.getEtag(q));this.contentChanged();this.fileSaved(q,g,k,m)});this.setShadowModified(!1);this.ui.setDatabaseItem(null,[{title:this.title,size:q.length,lastModified:Date.now(),type:this.type},{title:this.title,data:q}],+u,mxUtils.bind(this,function(){if(null==this.ui.database)try{this.ui.setLocalData(this.title,q,u)}catch(x){null!=m&&m(x)}else null!=m&&m()}),["filesInfo","files"])}catch(x){null!=m&&m(x)}};StorageFile.prototype.rename=function(b,k,m){var g=this.getTitle();g!=b?(EditorUi.debug("StorageFile.rename",[this],"oldTitle",g,"newTitle",b),this.saveFile(b,!1,mxUtils.bind(this,function(){StorageFile.deleteFile(this.ui,g,mxUtils.bind(this,function(){this.ui.removeLocalData(g,k)},m))}),m)):k()};StorageFile.prototype.getLatestVersion=function(b,k){StorageFile.getFileContent(this.ui,this.title,mxUtils.bind(this,function(m){b(new StorageFile(this.ui,m,this.title))}),k)};StorageFile.prototype.destroy=function(){DrawioFile.prototype.destroy.apply(this,arguments);null!=this.storageListener&&(mxEvent.removeListener(window,"storage",this.storageListener),this.storageListener=null)};-StorageFile.listLocalStorageFiles=function(b){for(var k=[],m=0;m<localStorage.length;m++){var f=localStorage.key(m),q=localStorage.getItem(f);if(0<f.length&&"."!=f.charAt(0)&&0<q.length){var u=(null==b||"F"==b)&&("<mxfile "===q.substring(0,8)||"<?xml"===q.substring(0,5)||"\x3c!--[if IE]>"===q.substring(0,12)),x=(null==b||"L"==b)&&"<mxlibrary>"===q.substring(0,11);(u||x)&&k.push({title:f,type:u?"F":"L",size:q.length,lastModified:Date.now()})}}return k};-StorageFile.migrate=function(b){var k=StorageFile.listLocalStorageFiles();k.push({title:".scratchpad",type:"L"});var m=b.transaction(["files","filesInfo"],"readwrite");b=m.objectStore("files");m=m.objectStore("filesInfo");for(var f=0;f<k.length;f++){var q=k[f],u=localStorage.getItem(q.title);b.add({title:q.title,data:u});m.add(q)}};-StorageFile.listFiles=function(b,k,m,f){b.getDatabaseItems(function(q){var u=[];if(null!=q)for(var x=0;x<q.length;x++)"."==q[x].title.charAt(0)||null!=k&&q[x].type!=k||u.push(q[x]);m(u)},function(){null==b.database?m(StorageFile.listLocalStorageFiles(k)):null!=f&&f()},"filesInfo")};StorageFile.deleteFile=function(b,k,m,f){b.removeDatabaseItem([k,k],m,function(){null==b.database?(localStorage.removeItem(k),m()):null!=f&&f()},["files","filesInfo"])};StorageLibrary=function(b,k,m){StorageFile.call(this,b,k,m)};mxUtils.extend(StorageLibrary,StorageFile);StorageLibrary.prototype.type="L";StorageLibrary.prototype.isAutosave=function(){return!0};StorageLibrary.prototype.save=function(b,k,m){this.saveAs(this.getTitle(),k,m)};StorageLibrary.prototype.saveAs=function(b,k,m){this.saveFile(b,!1,k,m)};StorageLibrary.prototype.getHash=function(){return"L"+encodeURIComponent(this.title)};+StorageFile.listLocalStorageFiles=function(b){for(var k=[],m=0;m<localStorage.length;m++){var g=localStorage.key(m),q=localStorage.getItem(g);if(0<g.length&&"."!=g.charAt(0)&&0<q.length){var u=(null==b||"F"==b)&&("<mxfile "===q.substring(0,8)||"<?xml"===q.substring(0,5)||"\x3c!--[if IE]>"===q.substring(0,12)),x=(null==b||"L"==b)&&"<mxlibrary>"===q.substring(0,11);(u||x)&&k.push({title:g,type:u?"F":"L",size:q.length,lastModified:Date.now()})}}return k};+StorageFile.migrate=function(b){var k=StorageFile.listLocalStorageFiles();k.push({title:".scratchpad",type:"L"});var m=b.transaction(["files","filesInfo"],"readwrite");b=m.objectStore("files");m=m.objectStore("filesInfo");for(var g=0;g<k.length;g++){var q=k[g],u=localStorage.getItem(q.title);b.add({title:q.title,data:u});m.add(q)}};+StorageFile.listFiles=function(b,k,m,g){b.getDatabaseItems(function(q){var u=[];if(null!=q)for(var x=0;x<q.length;x++)"."==q[x].title.charAt(0)||null!=k&&q[x].type!=k||u.push(q[x]);m(u)},function(){null==b.database?m(StorageFile.listLocalStorageFiles(k)):null!=g&&g()},"filesInfo")};StorageFile.deleteFile=function(b,k,m,g){b.removeDatabaseItem([k,k],m,function(){null==b.database?(localStorage.removeItem(k),m()):null!=g&&g()},["files","filesInfo"])};StorageLibrary=function(b,k,m){StorageFile.call(this,b,k,m)};mxUtils.extend(StorageLibrary,StorageFile);StorageLibrary.prototype.type="L";StorageLibrary.prototype.isAutosave=function(){return!0};StorageLibrary.prototype.save=function(b,k,m){this.saveAs(this.getTitle(),k,m)};StorageLibrary.prototype.saveAs=function(b,k,m){this.saveFile(b,!1,k,m)};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(b,k,m){return".scratchpad"!=this.title};StorageLibrary.prototype.open=function(){};RemoteFile=function(b,k,m){DrawioFile.call(this,b,k);this.title=m;this.mode=null};mxUtils.extend(RemoteFile,DrawioFile);RemoteFile.prototype.isAutosave=function(){return!1};RemoteFile.prototype.getMode=function(){return this.mode};RemoteFile.prototype.getTitle=function(){return this.title};RemoteFile.prototype.isRenamable=function(){return!1};RemoteFile.prototype.open=function(){this.ui.setFileData(this.getData());this.installListeners()};RemoteLibrary=function(b,k,m){RemoteFile.call(this,b,k,m.title);this.libObj=m};mxUtils.extend(RemoteLibrary,LocalFile);RemoteLibrary.prototype.getHash=function(){return"R"+encodeURIComponent(JSON.stringify([this.libObj.id,this.libObj.title,this.libObj.downloadUrl]))};RemoteLibrary.prototype.isEditable=function(){return!1};RemoteLibrary.prototype.isRenamable=function(){return!1};RemoteLibrary.prototype.isAutosave=function(){return!1};RemoteLibrary.prototype.save=function(b,k,m){};RemoteLibrary.prototype.saveAs=function(b,k,m){};RemoteLibrary.prototype.updateFileData=function(){};RemoteLibrary.prototype.open=function(){};UrlLibrary=function(b,k,m){StorageFile.call(this,b,k,m);b=m;k=b.lastIndexOf("/");0<=k&&(b=b.substring(k+1));this.fname=b};mxUtils.extend(UrlLibrary,StorageFile);UrlLibrary.prototype.getHash=function(){return"U"+encodeURIComponent(this.title)};UrlLibrary.prototype.getTitle=function(){return this.fname};UrlLibrary.prototype.isAutosave=function(){return!1};UrlLibrary.prototype.isEditable=function(b,k,m){return!1};UrlLibrary.prototype.saveAs=function(b,k,m){};UrlLibrary.prototype.open=function(){};EmbedFile=function(b,k,m){DrawioFile.call(this,b,k);this.desc=m||{};this.mode=App.MODE_EMBED};mxUtils.extend(EmbedFile,DrawioFile);EmbedFile.prototype.getMode=function(){return this.mode};EmbedFile.prototype.getDescriptor=function(){return this.desc};EmbedFile.prototype.setDescriptor=function(b){this.desc=b||{}};EmbedFile.prototype.getTitle=function(){return this.desc.title||""};/*mxClient.IS_IOS || */-var StorageDialog=function(b,k,m){function f(D,c,g,l,n,r){function t(){mxEvent.addListener(v,"click",null!=r?r:function(){g==App.MODE_GOOGLE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(g,!0);k()})):g==App.MODE_ONEDRIVE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.oneDrive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(g,!0);k()}),function(R){b.spinner.stop();b.handleError(R)}):-(b.setMode(g,!0),k())})}z++;++x>m&&(mxUtils.br(F),x=1);var v=document.createElement("a");v.style.overflow="hidden";v.style.display="inline-block";v.className="geBaseButton";v.style.boxSizing="border-box";v.style.fontSize="11px";v.style.position="relative";v.style.margin="4px";v.style.marginTop="8px";v.style.marginBottom="0px";v.style.padding="8px 10px 8px 10px";v.style.width="88px";v.style.height="100px";v.style.whiteSpace="nowrap";v.setAttribute("title",c);var B=document.createElement("div");B.style.textOverflow=+var StorageDialog=function(b,k,m){function g(D,c,f,l,n,r){function t(){mxEvent.addListener(v,"click",null!=r?r:function(){f==App.MODE_GOOGLE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(f,!0);k()})):f==App.MODE_ONEDRIVE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.oneDrive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(f,!0);k()}),function(R){b.spinner.stop();b.handleError(R)}):+(b.setMode(f,!0),k())})}z++;++x>m&&(mxUtils.br(F),x=1);var v=document.createElement("a");v.style.overflow="hidden";v.style.display="inline-block";v.className="geBaseButton";v.style.boxSizing="border-box";v.style.fontSize="11px";v.style.position="relative";v.style.margin="4px";v.style.marginTop="8px";v.style.marginBottom="0px";v.style.padding="8px 10px 8px 10px";v.style.width="88px";v.style.height="100px";v.style.whiteSpace="nowrap";v.setAttribute("title",c);var B=document.createElement("div");B.style.textOverflow="ellipsis";B.style.overflow="hidden";B.style.position="absolute";B.style.bottom="8px";B.style.left="0px";B.style.right="0px";mxUtils.write(B,c);v.appendChild(B);if(null!=D){var E=document.createElement("img");E.setAttribute("src",D);E.setAttribute("border","0");E.setAttribute("align","absmiddle");E.style.width="60px";E.style.height="60px";E.style.paddingBottom="6px";v.appendChild(E)}else B.style.paddingTop="5px",B.style.whiteSpace="normal",mxClient.IS_IOS?(v.style.padding="0px 10px 20px 10px",v.style.top="6px"):mxClient.IS_FF&&(B.style.paddingTop="0px",B.style.marginTop="-2px");if(null!=n)for(D=0;D<n.length;D++)mxUtils.br(B),mxUtils.write(B,n[D]);if(null!=l&&null==b[l]){E.style.visibility="hidden";mxUtils.setOpacity(B,10);var K=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});K.spin(v);var C=window.setTimeout(function(){null==b[l]&&(K.stop(),v.style.display="none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,function(R,M){null!=b[l]&&M.getProperty("client")==b[l]&&(window.clearTimeout(C),mxUtils.setOpacity(B,100),E.style.visibility="",K.stop(),t(),"drive"==l&&null!=J.parentNode&&J.parentNode.removeChild(J))}))}else t();F.appendChild(v)}m=null!=m?m:2;var q=document.createElement("div");q.style.textAlign="center";q.style.whiteSpace="nowrap";q.style.paddingTop="0px";q.style.paddingBottom="20px";var u=document.createElement("div");u.style.border="1px solid #d3d3d3";u.style.borderWidth="1px 0px 1px 0px";-u.style.padding="10px 0px 20px 0px";var x=0,z=0,F=document.createElement("div");F.style.paddingTop="2px";u.appendChild(F);var J=document.createElement("p"),H=document.createElement("p");H.style.cssText="font-size:22px;padding:4px 0 16px 0;margin:0;color:gray;";mxUtils.write(H,mxResources.get("saveDiagramsTo")+":");q.appendChild(H);q.appendChild(u);x=0;"function"===typeof window.DriveClient&&f(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive");null!=b.m365&&-f(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("m365"),App.MODE_M365,"m365");"1"!=urlParams.noDevice&&f(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE);!isLocalStorage||"1"!=urlParams.browser&&"1"!=urlParams.offline||f(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER);"function"===typeof window.OneDriveClient&&f(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),App.MODE_ONEDRIVE,"oneDrive");null!=b.gitHub&&f(IMAGE_PATH+"/github-logo.svg",-mxResources.get("github"),App.MODE_GITHUB,"gitHub");null!=b.gitLab&&f(IMAGE_PATH+"/gitlab-logo.svg",mxResources.get("gitlab"),App.MODE_GITLAB,"gitLab");u=document.createElement("span");u.style.position="absolute";u.style.cursor="pointer";u.style.bottom="27px";u.style.color="gray";u.style.userSelect="none";u.style.textAlign="center";u.style.left="50%";mxUtils.setPrefixedStyle(u.style,"transform","translate(-50%,0)");mxUtils.write(u,mxResources.get("decideLater"));q.appendChild(u);mxEvent.addListener(u,+u.style.padding="10px 0px 20px 0px";var x=0,z=0,F=document.createElement("div");F.style.paddingTop="2px";u.appendChild(F);var J=document.createElement("p"),H=document.createElement("p");H.style.cssText="font-size:22px;padding:4px 0 16px 0;margin:0;color:gray;";mxUtils.write(H,mxResources.get("saveDiagramsTo")+":");q.appendChild(H);q.appendChild(u);x=0;"function"===typeof window.DriveClient&&g(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive");null!=b.m365&&+g(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("m365"),App.MODE_M365,"m365");"1"!=urlParams.noDevice&&g(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE);!isLocalStorage||"1"!=urlParams.browser&&"1"!=urlParams.offline||g(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER);"function"===typeof window.OneDriveClient&&g(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),App.MODE_ONEDRIVE,"oneDrive");null!=b.gitHub&&g(IMAGE_PATH+"/github-logo.svg",+mxResources.get("github"),App.MODE_GITHUB,"gitHub");null!=b.gitLab&&g(IMAGE_PATH+"/gitlab-logo.svg",mxResources.get("gitlab"),App.MODE_GITLAB,"gitLab");u=document.createElement("span");u.style.position="absolute";u.style.cursor="pointer";u.style.bottom="27px";u.style.color="gray";u.style.userSelect="none";u.style.textAlign="center";u.style.left="50%";mxUtils.setPrefixedStyle(u.style,"transform","translate(-50%,0)");mxUtils.write(u,mxResources.get("decideLater"));q.appendChild(u);mxEvent.addListener(u,"click",function(){b.hideDialog();var D=Editor.useLocalStorage;b.createFile(b.defaultFilename,null,null,null,null,null,null,!0);Editor.useLocalStorage=D});mxClient.IS_SVG&&isLocalStorage&&"0"!=urlParams.gapi&&(null==document.documentMode||10<=document.documentMode)&&window.setTimeout(function(){null==b.drive&&(J.style.padding="7px",J.style.fontSize="9pt",J.style.marginTop="-14px",J.innerHTML='<a style="background-color:#dcdcdc;padding:6px;color:black;text-decoration:none;" href="https://www.drawio.com/doc/faq/google-drive-connection-problems" target="_blank"><img border="0" src="'+-mxGraph.prototype.warningImage.src+'" align="absmiddle" style="margin-top:-4px"> '+mxResources.get("googleDriveMissingClickHere")+"</a>",q.appendChild(J))},5E3);this.container=q},SplashDialog=function(b){var k=document.createElement("div");k.style.textAlign="center";if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp){var m=b.addLanguageMenu(k,!1,"28px");null!=m&&(m.style.bottom="24px")}var f=document.createElement("img");f.setAttribute("border","0");f.setAttribute("align","absmiddle");f.style.width=-"32px";f.style.height="32px";f.style.marginRight="8px";f.style.marginTop="-4px";var q=document.createElement("div");q.style.margin="8px 0px 0px 0px";q.style.padding="18px 0px 24px 0px";m="";b.mode==App.MODE_GOOGLE?(f.src=IMAGE_PATH+"/google-drive-logo.svg",m=mxResources.get("googleDrive")):b.mode==App.MODE_DROPBOX?(f.src=IMAGE_PATH+"/dropbox-logo.svg",m=mxResources.get("dropbox")):b.mode==App.MODE_ONEDRIVE?(f.src=IMAGE_PATH+"/onedrive-logo.svg",m=mxResources.get("oneDrive")):b.mode==App.MODE_M365?-(f.src=IMAGE_PATH+"/onedrive-logo.svg",m=mxResources.get("m365")):b.mode==App.MODE_GITHUB?(f.src=IMAGE_PATH+"/github-logo.svg",m=mxResources.get("github")):b.mode==App.MODE_GITLAB?(f.src=IMAGE_PATH+"/gitlab-logo.svg",m=mxResources.get("gitlab")):b.mode==App.MODE_BROWSER?(f.src=IMAGE_PATH+"/osa_database.png",m=mxResources.get("browser")):b.mode==App.MODE_TRELLO?(f.src=IMAGE_PATH+"/trello-logo.svg",m=mxResources.get("trello")):(f.src=IMAGE_PATH+"/osa_drive-harddisk.png",q.style.paddingBottom="10px",+mxGraph.prototype.warningImage.src+'" align="absmiddle" style="margin-top:-4px"> '+mxResources.get("googleDriveMissingClickHere")+"</a>",q.appendChild(J))},5E3);this.container=q},SplashDialog=function(b){var k=document.createElement("div");k.style.textAlign="center";if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp){var m=b.addLanguageMenu(k,!1,"28px");null!=m&&(m.style.bottom="24px")}var g=document.createElement("img");g.setAttribute("border","0");g.setAttribute("align","absmiddle");g.style.width=+"32px";g.style.height="32px";g.style.marginRight="8px";g.style.marginTop="-4px";var q=document.createElement("div");q.style.margin="8px 0px 0px 0px";q.style.padding="18px 0px 24px 0px";m="";b.mode==App.MODE_GOOGLE?(g.src=IMAGE_PATH+"/google-drive-logo.svg",m=mxResources.get("googleDrive")):b.mode==App.MODE_DROPBOX?(g.src=IMAGE_PATH+"/dropbox-logo.svg",m=mxResources.get("dropbox")):b.mode==App.MODE_ONEDRIVE?(g.src=IMAGE_PATH+"/onedrive-logo.svg",m=mxResources.get("oneDrive")):b.mode==App.MODE_M365?+(g.src=IMAGE_PATH+"/onedrive-logo.svg",m=mxResources.get("m365")):b.mode==App.MODE_GITHUB?(g.src=IMAGE_PATH+"/github-logo.svg",m=mxResources.get("github")):b.mode==App.MODE_GITLAB?(g.src=IMAGE_PATH+"/gitlab-logo.svg",m=mxResources.get("gitlab")):b.mode==App.MODE_BROWSER?(g.src=IMAGE_PATH+"/osa_database.png",m=mxResources.get("browser")):b.mode==App.MODE_TRELLO?(g.src=IMAGE_PATH+"/trello-logo.svg",m=mxResources.get("trello")):(g.src=IMAGE_PATH+"/osa_drive-harddisk.png",q.style.paddingBottom="10px",q.style.paddingTop="30px",m=mxResources.get("device"));var u=document.createElement("button");u.className="geBigButton";u.style.marginBottom="8px";u.style.fontSize="18px";u.style.padding="10px";u.style.width="340px";if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)q.style.padding="42px 0px 10px 0px",u.style.marginBottom="12px";else{q.style.border="1px solid #d3d3d3";q.style.borderWidth="1px 0px 1px 0px";var x=document.createElement("table"),z=document.createElement("tbody"),F=document.createElement("tr"),-J=document.createElement("td"),H=document.createElement("td");x.setAttribute("align","center");J.appendChild(f);f=document.createElement("div");f.style.fontSize="22px";f.style.paddingBottom="6px";f.style.color="gray";mxUtils.write(f,m);H.style.textAlign="left";H.appendChild(f);F.appendChild(J);F.appendChild(H);z.appendChild(F);x.appendChild(z);k.appendChild(x);m=document.createElement("span");m.style.cssText="position:absolute;cursor:pointer;bottom:27px;color:gray;userSelect:none;text-align:center;left:50%;";+J=document.createElement("td"),H=document.createElement("td");x.setAttribute("align","center");J.appendChild(g);g=document.createElement("div");g.style.fontSize="22px";g.style.paddingBottom="6px";g.style.color="gray";mxUtils.write(g,m);H.style.textAlign="left";H.appendChild(g);F.appendChild(J);F.appendChild(H);z.appendChild(F);x.appendChild(z);k.appendChild(x);m=document.createElement("span");m.style.cssText="position:absolute;cursor:pointer;bottom:27px;color:gray;userSelect:none;text-align:center;left:50%;";mxUtils.setPrefixedStyle(m.style,"transform","translate(-50%,0)");mxUtils.write(m,mxResources.get("changeStorage"));mxEvent.addListener(m,"click",function(){b.hideDialog(!1);b.setMode(null);b.clearMode();b.showSplash(!0)});k.appendChild(m)}mxUtils.write(u,mxResources.get("createNewDiagram"));mxEvent.addListener(u,"click",function(){b.hideDialog();b.actions.get("new").funct()});q.appendChild(u);mxUtils.br(q);u=document.createElement("button");u.className="geBigButton";u.style.marginBottom="22px";u.style.fontSize="18px";u.style.padding="10px";u.style.width="340px";mxUtils.write(u,mxResources.get("openExistingDiagram"));mxEvent.addListener(u,"click",function(){b.actions.get("open").funct()});q.appendChild(u);b.mode==App.MODE_GOOGLE?mxResources.get("googleDrive"):b.mode==App.MODE_DROPBOX?mxResources.get("dropbox"):b.mode==App.MODE_ONEDRIVE?mxResources.get("oneDrive"):b.mode==App.MODE_GITHUB?mxResources.get("github"):b.mode==App.MODE_GITLAB?mxResources.get("gitlab"):b.mode==App.MODE_TRELLO?mxResources.get("trello"):-b.mode==App.MODE_DEVICE?mxResources.get("device"):b.mode==App.MODE_BROWSER&&mxResources.get("browser");if(!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp)if(m=function(g){u.style.marginBottom="24px";var l=document.createElement("a");l.style.display="inline-block";l.style.color="gray";l.style.cursor="pointer";l.style.marginTop="6px";mxUtils.write(l,mxResources.get("signOut"));u.style.marginBottom="16px";q.style.paddingBottom="18px";mxEvent.addListener(l,"click",function(){b.confirm(mxResources.get("areYouSure"),-function(){g()})});q.appendChild(l)},b.mode==App.MODE_GOOGLE&&null!=b.drive){var D=b.drive.getUsersList();if(0<D.length){f=document.createElement("span");f.style.marginTop="6px";mxUtils.write(f,mxResources.get("changeUser")+":");u.style.marginBottom="16px";q.style.paddingBottom="18px";q.appendChild(f);var c=document.createElement("select");c.style.marginLeft="4px";c.style.width="140px";for(m=0;m<D.length;m++)x=document.createElement("option"),mxUtils.write(x,D[m].displayName),x.value=m,c.appendChild(x),-x=document.createElement("option"),x.innerHTML=" ",mxUtils.write(x,"<"+D[m].email+">"),x.setAttribute("disabled","disabled"),c.appendChild(x);x=document.createElement("option");mxUtils.write(x,mxResources.get("addAccount"));x.value=D.length;c.appendChild(x);mxEvent.addListener(c,"change",function(){var g=c.value,l=D.length!=g;l&&b.drive.setUser(D[g]);b.drive.authorize(l,function(){b.setMode(App.MODE_GOOGLE);b.hideDialog();b.showSplash()},function(n){b.handleError(n,null,function(){b.hideDialog();-b.showSplash()})},!0)});q.appendChild(c)}else m(function(){b.drive.logout()})}else b.mode!=App.MODE_ONEDRIVE||null==b.oneDrive||b.oneDrive.noLogout?b.mode==App.MODE_GITHUB&&null!=b.gitHub?m(function(){b.gitHub.logout();b.openLink("https://www.github.com/logout")}):b.mode==App.MODE_GITLAB&&null!=b.gitLab?m(function(){b.gitLab.logout();var g=document.createElement("form");g.setAttribute("method","post");g.setAttribute("action",DRAWIO_GITLAB_URL+"/users/sign_out");g.setAttribute("target","_blank");document.body.appendChild(g);-g.submit();g.parentNode.removeChild(g)}):b.mode==App.MODE_TRELLO&&null!=b.trello?b.trello.isAuthorized()&&m(function(){b.trello.logout()}):b.mode==App.MODE_DROPBOX&&null!=b.dropbox&&m(function(){b.dropbox.logout();b.openLink("https://www.dropbox.com/logout")}):m(function(){b.oneDrive.logout()});k.appendChild(q);this.container=k},EmbedDialog=function(b,k,m,f,q,u,x,z,F,J){f=document.createElement("div");f.style.height="100%";f.style.display="flex";f.style.flexDirection="column";var H=EmbedDialog.maxSize,-D=/^https?:\/\//.test(k)||/^mailto:\/\//.test(k);x=document.createElement("div");x.style.flexShrink="0";x.style.position="relative";null!=u?mxUtils.write(x,u):mxUtils.write(x,mxResources.get(k.length<H?D?"link":"mainEmbedNotice":"preview")+":");u=document.createElement("span");u.style.cssFloat="right";u.style.color="gray";mxUtils.write(u,b.formatFileSize(k.length));x.appendChild(u);f.appendChild(x);var c=document.createElement("textarea");c.setAttribute("autocomplete","off");c.setAttribute("autocorrect",-"off");c.setAttribute("autocapitalize","off");c.setAttribute("spellcheck","false");c.style.fontFamily="monospace";c.style.wordBreak="break-all";c.style.marginTop="10px";c.style.resize="none";c.style.flex="1";c.style.width="100%";c.style.boxSizing="border-box";c.value=mxResources.get("updatingDocument");f.appendChild(c);this.init=function(){window.setTimeout(function(){k.length<H?(c.value=k,c.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?c.select():document.execCommand("selectAll",-!1,null)):(c.setAttribute("readonly","true"),c.value=mxResources.get("tooLargeUseDownload"))},0)};u=document.createElement("div");u.style.flexShrink="0";u.style.textAlign="right";u.style.paddingTop="14px";u.style.whiteSpace="nowrap";x=null;EmbedDialog.showPreviewOption&&!mxIsElectron&&!navigator.standalone&&D&&(x=mxUtils.button(null!=z?z:mxResources.get(k.length<H?"preview":"openInNewWindow"),function(){var g=k.length<H?c.value:k;if(null!=q)q(g);else if(D)try{var l=b.openLink(g);null!=l&&(null==m||-0<m)&&window.setTimeout(mxUtils.bind(this,function(){try{null!=l&&null!=l.location.href&&l.location.href.substring(0,8)!=g.substring(0,8)&&(l.close(),b.handleError({message:mxResources.get("drawingTooLarge")}))}catch(r){}}),m||500)}catch(r){b.handleError({message:r.message||mxResources.get("drawingTooLarge")})}else{var n=window.open();n=null!=n?n.document:null;null!=n?(n.writeln("<html><head><title>"+mxUtils.htmlEntities(mxResources.get("preview"))+'</title><meta charset="utf-8"></head><body>'+("<iframe"==-k.substring(0,7)?k:mxUtils.htmlEntities(k))+"</body></html>"),n.close()):b.handleError({message:mxResources.get("errorUpdatingPreview")})}}),x.className="geBtn",u.appendChild(x));J||(z=mxUtils.button(mxResources.get("export"),function(){b.hideDialog();b.saveData(null!=F?F:"embed.txt","txt",k,"text/plain")}),z.className="geBtn",u.appendChild(z));!b.isOffline()&&k.length<H&&(z=mxUtils.button("",function(){try{var g="mailto:?subject="+encodeURIComponent(F||b.defaultFilename)+"&body="+encodeURIComponent(c.value);-b.openLink(g)}catch(l){b.handleError({message:l.message||mxResources.get("drawingTooLarge")})}}),J=document.createElement("img"),J.className="geAdaptiveAsset",J.setAttribute("src",Editor.mailImage),J.setAttribute("width","18"),J.setAttribute("height","18"),J.setAttribute("border","0"),J.style.marginBottom="5px",z.appendChild(J),z.style.verticalAlign="bottom",z.style.paddingTop="4px",z.style.minWidth="46px",z.className="geBtn",u.appendChild(z));z=mxUtils.button(mxResources.get("close"),function(){b.hideDialog()});-z.className="geBtn";u.appendChild(z);J=mxUtils.button(mxResources.get("copy"),function(){c.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?c.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");b.alert(mxResources.get("copiedToClipboard"))});k.length<H?mxClient.IS_SF||null!=document.documentMode?z.className="geBtn gePrimaryBtn":(u.appendChild(J),J.className="geBtn gePrimaryBtn"):null!=x&&(u.appendChild(x),x.className="geBtn gePrimaryBtn");f.appendChild(u);-this.container=f};EmbedDialog.showPreviewOption=!0;EmbedDialog.maxSize=5E5;-var BackgroundImageDialog=function(b,k,m,f,q){function u(){if(null==U||U==mxConstants.NONE)O.style.display="none",M.checked=!1;else{var V=mxUtils.getLightDarkColor(U);mxUtils.isLightDarkColor(U)&&V.light!=V.dark?O.style.background="linear-gradient(to right bottom, "+V.cssText+" 50%, "+mxUtils.invertLightDarkColor(V).cssText+" 50.3%)":(O.style.background="",O.style.backgroundColor=V.cssText);O.style.display="";M.checked=!0}}var x=document.createElement("div"),z=document.createElement("h3");mxUtils.write(z,+b.mode==App.MODE_DEVICE?mxResources.get("device"):b.mode==App.MODE_BROWSER&&mxResources.get("browser");if(!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp)if(m=function(f){u.style.marginBottom="24px";var l=document.createElement("a");l.style.display="inline-block";l.style.color="gray";l.style.cursor="pointer";l.style.marginTop="6px";mxUtils.write(l,mxResources.get("signOut"));u.style.marginBottom="16px";q.style.paddingBottom="18px";mxEvent.addListener(l,"click",function(){b.confirm(mxResources.get("areYouSure"),+function(){f()})});q.appendChild(l)},b.mode==App.MODE_GOOGLE&&null!=b.drive){var D=b.drive.getUsersList();if(0<D.length){g=document.createElement("span");g.style.marginTop="6px";mxUtils.write(g,mxResources.get("changeUser")+":");u.style.marginBottom="16px";q.style.paddingBottom="18px";q.appendChild(g);var c=document.createElement("select");c.style.marginLeft="4px";c.style.width="140px";for(m=0;m<D.length;m++)x=document.createElement("option"),mxUtils.write(x,D[m].displayName),x.value=m,c.appendChild(x),+x=document.createElement("option"),x.innerHTML=" ",mxUtils.write(x,"<"+D[m].email+">"),x.setAttribute("disabled","disabled"),c.appendChild(x);x=document.createElement("option");mxUtils.write(x,mxResources.get("addAccount"));x.value=D.length;c.appendChild(x);mxEvent.addListener(c,"change",function(){var f=c.value,l=D.length!=f;l&&b.drive.setUser(D[f]);b.drive.authorize(l,function(){b.setMode(App.MODE_GOOGLE);b.hideDialog();b.showSplash()},function(n){b.handleError(n,null,function(){b.hideDialog();+b.showSplash()})},!0)});q.appendChild(c)}else m(function(){b.drive.logout()})}else b.mode!=App.MODE_ONEDRIVE||null==b.oneDrive||b.oneDrive.noLogout?b.mode==App.MODE_GITHUB&&null!=b.gitHub?m(function(){b.gitHub.logout();b.openLink("https://www.github.com/logout")}):b.mode==App.MODE_GITLAB&&null!=b.gitLab?m(function(){b.gitLab.logout();var f=document.createElement("form");f.setAttribute("method","post");f.setAttribute("action",DRAWIO_GITLAB_URL+"/users/sign_out");f.setAttribute("target","_blank");document.body.appendChild(f);+f.submit();f.parentNode.removeChild(f)}):b.mode==App.MODE_TRELLO&&null!=b.trello?b.trello.isAuthorized()&&m(function(){b.trello.logout()}):b.mode==App.MODE_DROPBOX&&null!=b.dropbox&&m(function(){b.dropbox.logout();b.openLink("https://www.dropbox.com/logout")}):m(function(){b.oneDrive.logout()});k.appendChild(q);this.container=k},EmbedDialog=function(b,k,m,g,q,u,x,z,F,J){g=document.createElement("div");g.style.height="100%";g.style.display="flex";g.style.flexDirection="column";var H=EmbedDialog.maxSize,+D=/^https?:\/\//.test(k)||/^mailto:\/\//.test(k);x=document.createElement("div");x.style.flexShrink="0";x.style.position="relative";null!=u?mxUtils.write(x,u):mxUtils.write(x,mxResources.get(k.length<H?D?"link":"mainEmbedNotice":"preview")+":");u=document.createElement("span");u.style.cssFloat="right";u.style.color="gray";mxUtils.write(u,b.formatFileSize(k.length));x.appendChild(u);g.appendChild(x);var c=document.createElement("textarea");c.setAttribute("autocomplete","off");c.setAttribute("autocorrect",+"off");c.setAttribute("autocapitalize","off");c.setAttribute("spellcheck","false");c.style.fontFamily="monospace";c.style.wordBreak="break-all";c.style.marginTop="10px";c.style.resize="none";c.style.flex="1";c.style.width="100%";c.style.boxSizing="border-box";c.value=mxResources.get("updatingDocument");g.appendChild(c);this.init=function(){window.setTimeout(function(){k.length<H?(c.value=k,c.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?c.select():document.execCommand("selectAll",+!1,null)):(c.setAttribute("readonly","true"),c.value=mxResources.get("tooLargeUseDownload"))},0)};u=document.createElement("div");u.style.flexShrink="0";u.style.textAlign="right";u.style.paddingTop="14px";u.style.whiteSpace="nowrap";x=null;EmbedDialog.showPreviewOption&&!mxIsElectron&&!navigator.standalone&&D&&(x=mxUtils.button(null!=z?z:mxResources.get(k.length<H?"preview":"openInNewWindow"),function(){var f=k.length<H?c.value:k;if(null!=q)q(f);else if(D)try{var l=b.openLink(f);null!=l&&(null==m||+0<m)&&window.setTimeout(mxUtils.bind(this,function(){try{null!=l&&null!=l.location.href&&l.location.href.substring(0,8)!=f.substring(0,8)&&(l.close(),b.handleError({message:mxResources.get("drawingTooLarge")}))}catch(r){}}),m||500)}catch(r){b.handleError({message:r.message||mxResources.get("drawingTooLarge")})}else{var n=window.open();n=null!=n?n.document:null;null!=n?(n.writeln("<html><head><title>"+mxUtils.htmlEntities(mxResources.get("preview"))+'</title><meta charset="utf-8"></head><body>'+("<iframe"==+k.substring(0,7)?k:mxUtils.htmlEntities(k))+"</body></html>"),n.close()):b.handleError({message:mxResources.get("errorUpdatingPreview")})}}),x.className="geBtn",u.appendChild(x));J||(z=mxUtils.button(mxResources.get("export"),function(){b.hideDialog();b.saveData(null!=F?F:"embed.txt","txt",k,"text/plain")}),z.className="geBtn",u.appendChild(z));!b.isOffline()&&k.length<H&&(z=mxUtils.button("",function(){try{var f="mailto:?subject="+encodeURIComponent(F||b.defaultFilename)+"&body="+encodeURIComponent(c.value);+b.openLink(f)}catch(l){b.handleError({message:l.message||mxResources.get("drawingTooLarge")})}}),J=document.createElement("img"),J.className="geAdaptiveAsset",J.setAttribute("src",Editor.mailImage),J.setAttribute("width","18"),J.setAttribute("height","18"),J.setAttribute("border","0"),J.style.marginBottom="5px",z.appendChild(J),z.style.verticalAlign="bottom",z.style.paddingTop="4px",z.style.minWidth="46px",z.className="geBtn",u.appendChild(z));z=mxUtils.button(mxResources.get("close"),function(){b.hideDialog()});+z.className="geBtn";u.appendChild(z);J=mxUtils.button(mxResources.get("copy"),function(){c.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?c.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");b.alert(mxResources.get("copiedToClipboard"))});k.length<H?mxClient.IS_SF||null!=document.documentMode?z.className="geBtn gePrimaryBtn":(u.appendChild(J),J.className="geBtn gePrimaryBtn"):null!=x&&(u.appendChild(x),x.className="geBtn gePrimaryBtn");g.appendChild(u);+this.container=g};EmbedDialog.showPreviewOption=!0;EmbedDialog.maxSize=5E5;+var BackgroundImageDialog=function(b,k,m,g,q){function u(){if(null==U||U==mxConstants.NONE)O.style.display="none",M.checked=!1;else{var V=mxUtils.getLightDarkColor(U);mxUtils.isLightDarkColor(U)&&V.light!=V.dark?O.style.background="linear-gradient(to right bottom, "+V.cssText+" 50%, "+mxUtils.invertLightDarkColor(V).cssText+" 50.3%)":(O.style.background="",O.style.backgroundColor=V.cssText);O.style.display="";M.checked=!0}}var x=document.createElement("div"),z=document.createElement("h3");mxUtils.write(z,mxResources.get("background"));x.appendChild(z);var F=null!=m&&null!=m.originalSrc;z=!1;var J=document.createElement("input");J.setAttribute("value","url");J.setAttribute("type","radio");J.setAttribute("name","geBackgroundImageDialogOption");var H=document.createElement("input");H.setAttribute("value","url");H.setAttribute("type","radio");H.setAttribute("name","geBackgroundImageDialogOption");var D=document.createElement("input");D.setAttribute("type","text");D.style.flex="1";D.style.minWidth="0";-D.value=F||null==m?"":m.src;var c=document.createElement("select");c.style.flex="1";c.style.minWidth="0";c.style.marginLeft="0";if(null!=b.pages)for(var g=0;g<b.pages.length;g++){var l=document.createElement("option");mxUtils.write(l,b.pages[g].getName()||mxResources.get("pageWithNumber",[g+1]));l.setAttribute("value","data:page/id,"+b.pages[g].getId());b.pages[g]==b.currentPage&&l.setAttribute("disabled","disabled");null!=m&&m.originalSrc==l.getAttribute("value")&&(l.setAttribute("selected","selected"),+D.value=F||null==m?"":m.src;var c=document.createElement("select");c.style.flex="1";c.style.minWidth="0";c.style.marginLeft="0";if(null!=b.pages)for(var f=0;f<b.pages.length;f++){var l=document.createElement("option");mxUtils.write(l,b.pages[f].getName()||mxResources.get("pageWithNumber",[f+1]));l.setAttribute("value","data:page/id,"+b.pages[f].getId());b.pages[f]==b.currentPage&&l.setAttribute("disabled","disabled");null!=m&&m.originalSrc==l.getAttribute("value")&&(l.setAttribute("selected","selected"),z=!0);c.appendChild(l)}F||null!=b.pages&&1!=b.pages.length||(J.style.display="none",H.style.display="none",c.style.display="none");var n=document.createElement("option"),r=!1,t=!1,v=function(V,fa){r||null!=V&&t||(H.checked?null!=fa&&fa(n.selected?null:c.value):""==D.value||b.isOffline()?(C.value="",R.value="",null!=fa&&fa("")):(D.value=mxUtils.trim(D.value),b.loadImage(D.value,function(y){C.value=y.width;R.value=y.height;null!=fa&&fa(D.value)},function(){b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"));C.value="";R.value="";null!=fa&&fa(null)})))},B=mxUtils.bind(this,function(V){b.importFiles(V,0,0,b.maxBackgroundSize,function(fa,y,d,p,A,G){D.value=fa;v();D.focus()},function(){},function(fa){return"image/"==fa.type.substring(0,6)},function(fa){for(var y=0;y<fa.length;y++)fa[y]()},!0,b.maxBackgroundBytes,b.maxBackgroundBytes,!0)});this.init=function(){F?c.focus():D.focus();mxEvent.addListener(c,"focus",function(){J.removeAttribute("checked");H.setAttribute("checked","checked");H.checked=!0});mxEvent.addListener(D,"focus",function(){H.removeAttribute("checked");J.setAttribute("checked","checked");J.checked=!0});if(Graph.fileSupport){D.setAttribute("placeholder",mxResources.get("dragImagesHere"));var V=x.parentNode,fa=null;mxEvent.addListener(V,"dragleave",function(y){null!=fa&&(fa.parentNode.removeChild(fa),fa=null);y.stopPropagation();y.preventDefault()});mxEvent.addListener(V,"dragover",mxUtils.bind(this,function(y){null==fa&&(fa=b.highlightElement(V));y.stopPropagation();-y.preventDefault()}));mxEvent.addListener(V,"drop",mxUtils.bind(this,function(y){null!=fa&&(fa.parentNode.removeChild(fa),fa=null);if(0<y.dataTransfer.files.length)B(y.dataTransfer.files);else if(0<=mxUtils.indexOf(y.dataTransfer.types,"text/uri-list")){var d=y.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(d)&&(D.value=decodeURIComponent(d),v())}y.stopPropagation();y.preventDefault()}),!1)}};g=document.createElement("div");g.className="geDialogSection";l=document.createElement("div");-l.className="geDialogCheckRow";l.appendChild(J);l.appendChild(D);g.appendChild(l);l=document.createElement("div");l.className="geDialogInlineFields";l.style.marginTop="6px";l.style.paddingLeft="24px";var E=document.createElement("div");E.className="geDialogInlineField";var K=document.createElement("label");mxUtils.write(K,mxResources.get("width"));E.appendChild(K);var C=document.createElement("input");C.setAttribute("type","text");C.value=null==m||F?"":m.width;E.appendChild(C);l.appendChild(E);E=-document.createElement("div");E.className="geDialogInlineField";K=document.createElement("label");mxUtils.write(K,mxResources.get("height"));E.appendChild(K);var R=document.createElement("input");R.setAttribute("type","text");R.value=null==m||F?"":m.height;E.appendChild(R);l.appendChild(E);g.appendChild(l);mxEvent.addListener(D,"change",v);ImageDialog.filePicked=function(V){V.action==google.picker.Action.PICKED&&null!=V.docs[0].thumbnails&&(V=V.docs[0].thumbnails[V.docs[0].thumbnails.length-1],null!=-V&&(D.value=V.url,v()));D.focus()};m=document.createElement("div");m.className="geDialogCheckRow";m.style.marginTop="6px";m.appendChild(H);m.appendChild(c);g.appendChild(m);x.appendChild(g);F?(H.setAttribute("checked","checked"),H.checked=!0):(J.setAttribute("checked","checked"),J.checked=!0);!z&&H.checked&&(mxUtils.write(n,mxResources.get("pageNotFound")),n.setAttribute("disabled","disabled"),n.setAttribute("selected","selected"),n.setAttribute("value","pageNotFound"),c.appendChild(n),mxEvent.addListener(c,-"change",function(){null==n.parentNode||n.selected||n.parentNode.removeChild(n)}));m=document.createElement("div");m.className="geDialogSection";m.style.display=q?"":"none";q=document.createElement("div");q.className="geDialogCheckRow";q.style.cursor="default";var M=document.createElement("input");M.setAttribute("type","checkbox");M.defaultChecked=f!=mxConstants.NONE&&null!=f;M.checked=M.defaultChecked;q.appendChild(M);z=document.createElement("label");mxUtils.write(z,mxResources.get("fillColor"));-q.appendChild(z);var O=document.createElement("button");O.style.width="36px";O.style.height="18px";O.style.cursor="pointer";O.style.marginLeft="10px";O.style.backgroundPosition="center center";O.style.backgroundRepeat="no-repeat";O.className="geColorBtn";var U=f;u();mxEvent.addListener(q,"click",function(V){mxEvent.getSource(V)!=M&&(M.checked=!M.checked);U=M.checked?b.editor.graph.defaultPageBackgroundColor:null;u()});mxEvent.addListener(O,"click",function(V){b.pickColor(U||"none",function(fa){U=-fa;u()});mxEvent.consume(V)});q.appendChild(O);m.appendChild(q);x.appendChild(m);f=document.createElement("div");f.style.marginTop="34px";f.style.textAlign="right";q=mxUtils.button(mxResources.get("cancel"),function(){r=!0;b.hideDialog()});q.className="geBtn";b.editor.cancelFirst&&f.appendChild(q);m=mxUtils.button(mxResources.get("reset"),function(){D.value="";C.value="";R.value="";J.checked=!0;U=mxConstants.NONE;u();r=!1});mxEvent.addGestureListeners(m,function(){r=!0});m.className="geBtn";f.appendChild(m);-if(Graph.fileSupport){var T=document.createElement("input");T.setAttribute("multiple","multiple");T.setAttribute("type","file");mxEvent.addListener(T,"change",function(V){null!=T.files&&(B(T.files),T.type="",T.type="file",T.value="")});T.style.display="none";x.appendChild(T);m=mxUtils.button(mxResources.get("open"),function(){T.click()});m.className="geBtn";f.appendChild(m)}applyBtn=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();v(null,function(V){k(""!=V&&null!=V?new mxImage(V,-C.value,R.value):null,null==V,U)})});mxEvent.addGestureListeners(applyBtn,function(){t=!0});applyBtn.className="geBtn gePrimaryBtn";f.appendChild(applyBtn);b.editor.cancelFirst||f.appendChild(q);x.appendChild(f);this.container=x},ParseDialog=function(b,k,m){function f(g,l,n){if("plantUmlDiagram"==l||"plantUmlImage"==l){if(b.spinner.spin(document.body,mxResources.get("inserting"))){var r=mxUtils.bind(this,function(V){b.spinner.stop();b.hideDialog();var fa=b.editor.graph;fa.getModel().beginUpdate();-try{var y=b.importXml(V,Math.max(u.x,20),Math.max(u.y,20),!0,null,null,!0);fa.setSelectionCells(y)}finally{fa.getModel().endUpdate()}fa.scrollCellToVisible(fa.getSelectionCell())});n=mxUtils.bind(this,function(V){b.spinner.stop();b.handleError(V)});"plantUmlImage"==l?b.parsePlantUmlImage(g,r,n):b.parsePlantUmlDiagram(g,null,mxUtils.bind(this,function(V){r(mxPlantUmlToDrawio.wrapGroup(V,g,null))}),n)}}else if("mermaid"==l||"mermaidImage"==l){if(b.spinner.spin(document.body,mxResources.get("inserting"))){var t=-mxUtils.bind(this,function(V){b.spinner.stop();b.hideDialog();var fa=b.editor.graph;fa.getModel().beginUpdate();try{var y=b.importXml(V,Math.max(u.x,20),Math.max(u.y,20),!0,null,null,!0);fa.setSelectionCells(y)}finally{fa.getModel().endUpdate()}fa.scrollCellToVisible(fa.getSelectionCell())});n=mxUtils.bind(this,function(V){b.spinner.stop();b.handleError(V)});"mermaidImage"==l?b.parseMermaidImage(g,t,n):b.parseMermaidDiagram(g,null,mxUtils.bind(this,function(V){t(mxMermaidToDrawio.wrapGroup(V,g,EditorUi.getInsertMermaidConfig()))}),-n)}}else if("table"==l){var v=g.split("\n");l=null;var B=[],E=0,K={};for(n=0;n<v.length;n++){var C=mxUtils.trim(v[n]);if("primary key"==C.substring(0,11).toLowerCase()){var R=C.match(/\((.+)\)/);R&&R[1]&&(K[R[1]]=!0);v.splice(n,1)}else 0<C.toLowerCase().indexOf("primary key")&&(K[C.split(" ")[0]]=!0,v[n]=mxUtils.trim(C.replace(/primary key/i,"")))}for(n=0;n<v.length;n++)if(C=mxUtils.trim(v[n]),"create table"==C.substring(0,12).toLowerCase())C=mxUtils.trim(C.substring(12)),"("==C.charAt(C.length-1)&&+y.preventDefault()}));mxEvent.addListener(V,"drop",mxUtils.bind(this,function(y){null!=fa&&(fa.parentNode.removeChild(fa),fa=null);if(0<y.dataTransfer.files.length)B(y.dataTransfer.files);else if(0<=mxUtils.indexOf(y.dataTransfer.types,"text/uri-list")){var d=y.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(d)&&(D.value=decodeURIComponent(d),v())}y.stopPropagation();y.preventDefault()}),!1)}};f=document.createElement("div");f.className="geDialogSection";l=document.createElement("div");+l.className="geDialogCheckRow";l.appendChild(J);l.appendChild(D);f.appendChild(l);l=document.createElement("div");l.className="geDialogInlineFields";l.style.marginTop="6px";l.style.paddingLeft="24px";var E=document.createElement("div");E.className="geDialogInlineField";var K=document.createElement("label");mxUtils.write(K,mxResources.get("width"));E.appendChild(K);var C=document.createElement("input");C.setAttribute("type","text");C.value=null==m||F?"":m.width;E.appendChild(C);l.appendChild(E);E=+document.createElement("div");E.className="geDialogInlineField";K=document.createElement("label");mxUtils.write(K,mxResources.get("height"));E.appendChild(K);var R=document.createElement("input");R.setAttribute("type","text");R.value=null==m||F?"":m.height;E.appendChild(R);l.appendChild(E);f.appendChild(l);mxEvent.addListener(D,"change",v);ImageDialog.filePicked=function(V){V.action==google.picker.Action.PICKED&&null!=V.docs[0].thumbnails&&(V=V.docs[0].thumbnails[V.docs[0].thumbnails.length-1],null!=+V&&(D.value=V.url,v()));D.focus()};m=document.createElement("div");m.className="geDialogCheckRow";m.style.marginTop="6px";m.appendChild(H);m.appendChild(c);f.appendChild(m);x.appendChild(f);F?(H.setAttribute("checked","checked"),H.checked=!0):(J.setAttribute("checked","checked"),J.checked=!0);!z&&H.checked&&(mxUtils.write(n,mxResources.get("pageNotFound")),n.setAttribute("disabled","disabled"),n.setAttribute("selected","selected"),n.setAttribute("value","pageNotFound"),c.appendChild(n),mxEvent.addListener(c,+"change",function(){null==n.parentNode||n.selected||n.parentNode.removeChild(n)}));m=document.createElement("div");m.className="geDialogSection";m.style.display=q?"":"none";q=document.createElement("div");q.className="geDialogCheckRow";q.style.cursor="default";var M=document.createElement("input");M.setAttribute("type","checkbox");M.defaultChecked=g!=mxConstants.NONE&&null!=g;M.checked=M.defaultChecked;q.appendChild(M);z=document.createElement("label");mxUtils.write(z,mxResources.get("fillColor"));+q.appendChild(z);var O=document.createElement("button");O.style.width="36px";O.style.height="18px";O.style.cursor="pointer";O.style.marginLeft="10px";O.style.backgroundPosition="center center";O.style.backgroundRepeat="no-repeat";O.className="geColorBtn";var U=g;u();mxEvent.addListener(q,"click",function(V){mxEvent.getSource(V)!=M&&(M.checked=!M.checked);U=M.checked?b.editor.graph.defaultPageBackgroundColor:null;u()});mxEvent.addListener(O,"click",function(V){b.pickColor(U||"none",function(fa){U=+fa;u()});mxEvent.consume(V)});q.appendChild(O);m.appendChild(q);x.appendChild(m);g=document.createElement("div");g.style.marginTop="34px";g.style.textAlign="right";q=mxUtils.button(mxResources.get("cancel"),function(){r=!0;b.hideDialog()});q.className="geBtn";b.editor.cancelFirst&&g.appendChild(q);m=mxUtils.button(mxResources.get("reset"),function(){D.value="";C.value="";R.value="";J.checked=!0;U=mxConstants.NONE;u();r=!1});mxEvent.addGestureListeners(m,function(){r=!0});m.className="geBtn";g.appendChild(m);+if(Graph.fileSupport){var T=document.createElement("input");T.setAttribute("multiple","multiple");T.setAttribute("type","file");mxEvent.addListener(T,"change",function(V){null!=T.files&&(B(T.files),T.type="",T.type="file",T.value="")});T.style.display="none";x.appendChild(T);m=mxUtils.button(mxResources.get("open"),function(){T.click()});m.className="geBtn";g.appendChild(m)}applyBtn=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();v(null,function(V){k(""!=V&&null!=V?new mxImage(V,+C.value,R.value):null,null==V,U)})});mxEvent.addGestureListeners(applyBtn,function(){t=!0});applyBtn.className="geBtn gePrimaryBtn";g.appendChild(applyBtn);b.editor.cancelFirst||g.appendChild(q);x.appendChild(g);this.container=x},ParseDialog=function(b,k,m){function g(f,l,n){if("plantUmlDiagram"==l||"plantUmlImage"==l){if(b.spinner.spin(document.body,mxResources.get("inserting"))){var r=mxUtils.bind(this,function(V){b.spinner.stop();b.hideDialog();var fa=b.editor.graph;fa.getModel().beginUpdate();+try{var y=b.importXml(V,Math.max(u.x,20),Math.max(u.y,20),!0,null,null,!0);fa.setSelectionCells(y)}finally{fa.getModel().endUpdate()}fa.scrollCellToVisible(fa.getSelectionCell())});n=mxUtils.bind(this,function(V){b.spinner.stop();b.handleError(V)});"plantUmlImage"==l?b.parsePlantUmlImage(f,r,n):b.parsePlantUmlDiagram(f,null,mxUtils.bind(this,function(V){r(mxPlantUmlToDrawio.wrapGroup(V,f,null))}),n)}}else if("mermaid"==l||"mermaidImage"==l){if(b.spinner.spin(document.body,mxResources.get("inserting"))){var t=+mxUtils.bind(this,function(V){b.spinner.stop();b.hideDialog();var fa=b.editor.graph;fa.getModel().beginUpdate();try{var y=b.importXml(V,Math.max(u.x,20),Math.max(u.y,20),!0,null,null,!0);fa.setSelectionCells(y)}finally{fa.getModel().endUpdate()}fa.scrollCellToVisible(fa.getSelectionCell())});n=mxUtils.bind(this,function(V){b.spinner.stop();b.handleError(V)});"mermaidImage"==l?b.parseMermaidImage(f,t,n):b.parseMermaidDiagram(f,null,mxUtils.bind(this,function(V){t(mxMermaidToDrawio.wrapGroup(V,f,EditorUi.getInsertMermaidConfig()))}),+n)}}else if("table"==l){var v=f.split("\n");l=null;var B=[],E=0,K={};for(n=0;n<v.length;n++){var C=mxUtils.trim(v[n]);if("primary key"==C.substring(0,11).toLowerCase()){var R=C.match(/\((.+)\)/);R&&R[1]&&(K[R[1]]=!0);v.splice(n,1)}else 0<C.toLowerCase().indexOf("primary key")&&(K[C.split(" ")[0]]=!0,v[n]=mxUtils.trim(C.replace(/primary key/i,"")))}for(n=0;n<v.length;n++)if(C=mxUtils.trim(v[n]),"create table"==C.substring(0,12).toLowerCase())C=mxUtils.trim(C.substring(12)),"("==C.charAt(C.length-1)&&(C=mxUtils.trim(C.substring(0,C.length-1))),l=new mxCell(C,new mxGeometry(E,0,160,30),"shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;align=center;resizeLast=1;"),l.vertex=!0,B.push(l),C=b.editor.graph.getPreferredSizeForCell(M),null!=C&&(l.geometry.width=C.width+10);else if(null!=l&&")"==C.charAt(0))E+=l.geometry.width+40,l=null;else if("("!=C&&null!=l){C=C.substring(0,","==C.charAt(C.length-1)?C.length-1:C.length);R=K[C.split(" ")[0]];var M=new mxCell("",new mxGeometry(0,0,160,30),"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;strokeColor=inherit;top=0;left=0;right=0;bottom="+(R?"1":"0")+";");M.vertex=!0;var O=new mxCell(R?"PK":"",new mxGeometry(0,0,30,30),"shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;strokeColor=inherit;top=0;left=0;bottom=0;right=0;"+(R?"fontStyle=1;":""));O.vertex=!0;M.insert(O);C=new mxCell(C,new mxGeometry(30,0,130,30),"shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;align=left;strokeColor=inherit;top=0;left=0;bottom=0;right=0;spacingLeft=6;"+(R?"fontStyle=5;":""));C.vertex=!0;M.insert(C);C=b.editor.graph.getPreferredSizeForCell(C);null!=C&&l.geometry.width<C.width+30&&(l.geometry.width=Math.min(320,Math.max(l.geometry.width,C.width+30)));l.insert(M,R?0:null);l.geometry.height+=30}0<B.length&&(M=b.editor.graph,M.setSelectionCells(M.importCells(B,u.x,-u.y)),M.scrollCellToVisible(M.getSelectionCell()))}else if("list"==l){if(v=g.split("\n"),0<v.length){M=b.editor.graph;l=null;B=[];for(n=E=0;n<v.length;n++)";"!=v[n].charAt(0)&&(0==v[n].length?l=null:null==l?(l=new mxCell(v[n],new mxGeometry(E,0,160,30),"swimlane;fontStyle=1;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"),l.vertex=!0,B.push(l),C=M.getPreferredSizeForCell(l),null!=C&&l.geometry.width<C.width++u.y)),M.scrollCellToVisible(M.getSelectionCell()))}else if("list"==l){if(v=f.split("\n"),0<v.length){M=b.editor.graph;l=null;B=[];for(n=E=0;n<v.length;n++)";"!=v[n].charAt(0)&&(0==v[n].length?l=null:null==l?(l=new mxCell(v[n],new mxGeometry(E,0,160,30),"swimlane;fontStyle=1;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"),l.vertex=!0,B.push(l),C=M.getPreferredSizeForCell(l),null!=C&&l.geometry.width<C.width+10&&(l.geometry.width=C.width+10),E+=l.geometry.width+40):"--"==v[n]?(C=new mxCell("",new mxGeometry(0,0,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),C.vertex=!0,l.geometry.height+=C.geometry.height,l.insert(C)):0<v[n].length&&(K=new mxCell(v[n],new mxGeometry(0,0,60,26),"text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),K.vertex=!0,C=M.getPreferredSizeForCell(K),null!=C&&K.geometry.width<C.width&&(K.geometry.width=C.width),l.geometry.width=Math.max(l.geometry.width,K.geometry.width),l.geometry.height+=K.geometry.height,l.insert(K)));if(0<B.length){M.getModel().beginUpdate();try{B=M.importCells(B,u.x,u.y);C=[];for(n=0;n<B.length;n++)C.push(B[n]),C=C.concat(B[n].children);M.fireEvent(new mxEventObject("cellsInserted","cells",C))}finally{M.getModel().endUpdate()}M.setSelectionCells(B);M.scrollCellToVisible(M.getSelectionCell())}}}else{M=-function(V){var fa=U[V];null==fa&&(fa=new mxCell(V,new mxGeometry(0,0,80,30),"whiteSpace=wrap;html=1;"),fa.vertex=!0,U[V]=fa,B.push(fa));return fa};v=g.split("\n");var U={};B=[];for(n=0;n<v.length;n++)if(";"!=v[n].charAt(0)){var T=v[n].split("->");2<=T.length&&(R=M(T[0]),O=M(T[T.length-1]),T=new mxCell(2<T.length?T[1]:"",new mxGeometry),T.edge=!0,T.geometry.relative=!0,R.insertEdge(T,!0),O.insertEdge(T,!1),B.push(T))}if(0<B.length){v=document.createElement("div");v.style.visibility="hidden";document.body.appendChild(v);+function(V){var fa=U[V];null==fa&&(fa=new mxCell(V,new mxGeometry(0,0,80,30),"whiteSpace=wrap;html=1;"),fa.vertex=!0,U[V]=fa,B.push(fa));return fa};v=f.split("\n");var U={};B=[];for(n=0;n<v.length;n++)if(";"!=v[n].charAt(0)){var T=v[n].split("->");2<=T.length&&(R=M(T[0]),O=M(T[T.length-1]),T=new mxCell(2<T.length?T[1]:"",new mxGeometry),T.edge=!0,T.geometry.relative=!0,R.insertEdge(T,!0),O.insertEdge(T,!1),B.push(T))}if(0<B.length){v=document.createElement("div");v.style.visibility="hidden";document.body.appendChild(v);M=new Graph(v);M.getModel().beginUpdate();try{B=M.importCells(B);for(n=0;n<B.length;n++)M.getModel().isVertex(B[n])&&(C=M.getPreferredSizeForCell(B[n]),B[n].geometry.width=Math.max(B[n].geometry.width,C.width),B[n].geometry.height=Math.max(B[n].geometry.height,C.height));n=!0;"horizontalFlow"==l||"verticalFlow"==l?((new mxHierarchicalLayout(M,"horizontalFlow"==l?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH)).execute(M.getDefaultParent(),B),n=!1):"circle"==l?(new mxCircleLayout(M)).execute(M.getDefaultParent()):(E=new mxFastOrganicLayout(M),E.disableEdgeStyle=!1,E.forceConstant=180,E.execute(M.getDefaultParent()));n&&(K=new mxParallelEdgeLayout(M),K.spacing=30,K.execute(M.getDefaultParent()))}finally{M.getModel().endUpdate()}M.clearCellOverlays();C=[];b.editor.graph.getModel().beginUpdate();try{B=M.getModel().getChildren(M.getDefaultParent()),C=b.editor.graph.importCells(B,u.x,u.y),b.editor.graph.fireEvent(new mxEventObject("cellsInserted","cells",C))}finally{b.editor.graph.getModel().endUpdate()}b.editor.graph.setSelectionCells(C);b.editor.graph.scrollCellToVisible(b.editor.graph.getSelectionCell());M.destroy();v.parentNode.removeChild(v)}}}function q(){return"list"==J.value?"Person\n-name: String\n-birthDate: Date\n--\n+getName(): String\n+setName(String): void\n+isBirthday(): boolean\n\nAddress\n-street: String\n-city: String\n-state: String":"mermaid"==J.value||"mermaidImage"==J.value?"graph TD;\n A--\x3eB;\n A--\x3eC;\n B--\x3eD;\n C--\x3eD;":"table"==J.value?"CREATE TABLE Suppliers\n(\nsupplier_id int NOT NULL PRIMARY KEY,\nsupplier_name char(50) NOT NULL,\ncontact_name char(50),\n);\nCREATE TABLE Customers\n(\ncustomer_id int NOT NULL PRIMARY KEY,\ncustomer_name char(50) NOT NULL,\naddress char(50),\ncity char(50),\nstate char(25),\nzip_code char(10)\n);\n":@@ -13097,13 +13182,13 @@ x.style.overflow="visible";var z=document.createElement("h3");mxUtils.write(z,k|k.setAttribute("selected","selected"));"mermaid"==m&&(k=document.createElement("option"),k.setAttribute("value","mermaid"),k.setAttribute("selected","selected"),mxUtils.write(k,mxResources.get("diagram")),J.appendChild(k),k=document.createElement("option"),k.setAttribute("value","mermaidImage"),mxUtils.write(k,mxResources.get("image")),J.appendChild(k));k=document.createElement("option");k.setAttribute("value","diagram");mxUtils.write(k,mxResources.get("diagram"));z=document.createElement("option");z.setAttribute("value","circle");mxUtils.write(z,mxResources.get("circle"));var H=document.createElement("option");H.setAttribute("value","horizontalFlow");mxUtils.write(H,mxResources.get("horizontalFlow"));var D=document.createElement("option");D.setAttribute("value","verticalFlow");mxUtils.write(D,mxResources.get("verticalFlow"));"plantUml"!=m&&"mermaid"!=m&&(J.appendChild(k),J.appendChild(z),J.appendChild(H),J.appendChild(D));"plantUml"==m&&(k=document.createElement("option"),k.setAttribute("value","plantUmlDiagram"),k.setAttribute("selected","selected"),mxUtils.write(k,mxResources.get("diagram")),J.appendChild(k),k=document.createElement("option"),k.setAttribute("value","plantUmlImage"),mxUtils.write(k,mxResources.get("image")),J.appendChild(k));var c=q();F.value=c;x.appendChild(F);k=document.createElement("div");k.style.display="flex";k.style.justifyContent="end";k.style.alignItems="center";k.style.marginTop="14px";k.style.flexShrink="0";this.init=function(){F.focus()};Graph.fileSupport&&-(F.addEventListener("dragover",function(g){g.stopPropagation();g.preventDefault()},!1),F.addEventListener("drop",function(g){g.stopPropagation();g.preventDefault();if(0<g.dataTransfer.files.length){g=g.dataTransfer.files[0];var l=new FileReader;l.onload=function(n){F.value=n.target.result};l.readAsText(g)}},!1));"plantUml"==m&&(z=document.createElement("div"),z.style.display="inline-block",z.style.color="#c00",z.style.fontSize="12px",z.style.marginRight="10px",z.style.display="flex",z.style.alignItems=-"center",z.innerHTML='<a href="https://github.com/jgraph/drawio/issues" target="_blank" rel="noopener noreferrer">Report any PlantUML issues</a>',k.appendChild(z));b.isOffline()&&!mxClient.IS_CHROMEAPP||"mermaid"!=m&&"plantUml"!=m||k.appendChild(b.createHelpIcon("mermaid"==m?"https://www.drawio.com/docs/manual/mermaid/":"https://plantuml.com/"));k.appendChild(J);mxEvent.addListener(J,"change",function(){var g=q();if(0==F.value.length||F.value==c)c=g,F.value=c});null==b.sidebar||"mermaid"!=m&&"plantUml"!=-m||(z=mxUtils.button(mxResources.get("preview"),function(g){if(b.spinner.spin(document.body,mxResources.get("loading"))){var l=function(r){b.spinner.stop();b.showPreviewTooltip(r,g)},n=function(r){b.spinner.stop();b.handleError(r)};"mermaid"==m?b.parseMermaidDiagram(F.value,"mermaidImage"!=J.value||EditorUi.isMermaidConfigured()?null:mxUtils.clone(EditorUi.legacyMermaidConfig),l,n):b.parsePlantUmlDiagram(F.value,null,l,n)}}),z.className="geBtn",k.appendChild(z));z=mxUtils.button(mxResources.get("close"),-function(){F.value==c?b.hideDialog():b.confirm(mxResources.get("areYouSure"),function(){b.hideDialog()})});z.className="geBtn";b.editor.cancelFirst&&k.appendChild(z);H=mxUtils.button(mxResources.get("insert"),function(g){try{"mermaid"!=J.value&&"mermaidImage"!=J.value&&"plantUmlDiagram"!=J.value&&"plantUmlImage"!=J.value&&b.hideDialog(),f(F.value,J.value,g)}catch(l){b.handleError(l)}});H.className="geBtn gePrimaryBtn";k.appendChild(H);b.editor.cancelFirst||k.appendChild(z);x.appendChild(k);this.container=-x},NewDialog=function(b,k,m,f,q,u,x,z,F,J,H,D,c,g,l,n,r,t,v,B){function E(Fa){null!=Fa&&(nb=ab=Fa?135:140);Fa=!0;if(null!=bb)for(;Y<bb.length&&(Fa||0!=mxUtils.mod(Y,30));){var Pa=bb[Y++];Pa=y(Pa.url,Pa.libs,Pa.title,Pa.tooltip?Pa.tooltip:Pa.title,Pa.select,Pa.imgUrl,Pa.info,Pa.onClick,Pa.preview,Pa.noImg,Pa.clibs,Pa.type);Fa&&Pa.click();Fa=!1}}function K(Fa,Pa,Ka,Ta,Qa,Ra){if(null!=Fa&&mxUtils.isAncestorNode(document.body,Ta)){Fa=mxUtils.parseXml(Fa);Fa=Editor.parseDiagramNode(Fa.documentElement,+(F.addEventListener("dragover",function(f){f.stopPropagation();f.preventDefault()},!1),F.addEventListener("drop",function(f){f.stopPropagation();f.preventDefault();if(0<f.dataTransfer.files.length){f=f.dataTransfer.files[0];var l=new FileReader;l.onload=function(n){F.value=n.target.result};l.readAsText(f)}},!1));"plantUml"==m&&(z=document.createElement("div"),z.style.display="inline-block",z.style.color="#c00",z.style.fontSize="12px",z.style.marginRight="10px",z.style.display="flex",z.style.alignItems=+"center",z.innerHTML='<a href="https://github.com/jgraph/drawio/issues" target="_blank" rel="noopener noreferrer">Report any PlantUML issues</a>',k.appendChild(z));b.isOffline()&&!mxClient.IS_CHROMEAPP||"mermaid"!=m&&"plantUml"!=m||k.appendChild(b.createHelpIcon("mermaid"==m?"https://www.drawio.com/docs/manual/mermaid/":"https://plantuml.com/"));k.appendChild(J);mxEvent.addListener(J,"change",function(){var f=q();if(0==F.value.length||F.value==c)c=f,F.value=c});null==b.sidebar||"mermaid"!=m&&"plantUml"!=+m||(z=mxUtils.button(mxResources.get("preview"),function(f){if(b.spinner.spin(document.body,mxResources.get("loading"))){var l=function(r){b.spinner.stop();b.showPreviewTooltip(r,f)},n=function(r){b.spinner.stop();b.handleError(r)};"mermaid"==m?b.parseMermaidDiagram(F.value,"mermaidImage"!=J.value||EditorUi.isMermaidConfigured()?null:mxUtils.clone(EditorUi.legacyMermaidConfig),l,n):b.parsePlantUmlDiagram(F.value,null,l,n)}}),z.className="geBtn",k.appendChild(z));z=mxUtils.button(mxResources.get("close"),+function(){F.value==c?b.hideDialog():b.confirm(mxResources.get("areYouSure"),function(){b.hideDialog()})});z.className="geBtn";b.editor.cancelFirst&&k.appendChild(z);H=mxUtils.button(mxResources.get("insert"),function(f){try{"mermaid"!=J.value&&"mermaidImage"!=J.value&&"plantUmlDiagram"!=J.value&&"plantUmlImage"!=J.value&&b.hideDialog(),g(F.value,J.value,f)}catch(l){b.handleError(l)}});H.className="geBtn gePrimaryBtn";k.appendChild(H);b.editor.cancelFirst||k.appendChild(z);x.appendChild(k);this.container=+x},NewDialog=function(b,k,m,g,q,u,x,z,F,J,H,D,c,f,l,n,r,t,v,B){function E(Fa){null!=Fa&&(nb=ab=Fa?135:140);Fa=!0;if(null!=bb)for(;Y<bb.length&&(Fa||0!=mxUtils.mod(Y,30));){var Pa=bb[Y++];Pa=y(Pa.url,Pa.libs,Pa.title,Pa.tooltip?Pa.tooltip:Pa.title,Pa.select,Pa.imgUrl,Pa.info,Pa.onClick,Pa.preview,Pa.noImg,Pa.clibs,Pa.type);Fa&&Pa.click();Fa=!1}}function K(Fa,Pa,Ka,Ta,Qa,Ra){if(null!=Fa&&mxUtils.isAncestorNode(document.body,Ta)){Fa=mxUtils.parseXml(Fa);Fa=Editor.parseDiagramNode(Fa.documentElement,null,!0);var Xa=new mxCodec(Fa.ownerDocument),fb=new mxGraphModel;Xa.decode(Fa,fb);b.sidebar.createTooltip(Ta,fb.root.children,Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-120,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-120,800),null!=Qa?mxResources.get(Qa):null,!0,new mxPoint(Pa,Ka),!0,function(){N=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display;null!=Ra&&R(Ta,null,null,Ra,-infoObj,clibs)},!0,!1)}}function C(){if(Aa==tb&&null==oa&&null!=Sa&&null!=rb&&""!=mxUtils.trim(rb.value))f&&b.spinner.spin(document.body,mxResources.get("generate")+" '"+rb.value+"'")&&(A=!0,b.hideDialog()),Sa.click();else if(A&&b.spinner.stop(),ha&&null!=g)m||A||b.hideDialog(),g(ha,ka,Q.value);else if(f)m||A||b.hideDialog(),f(oa,Q.value,ma,ia);else{var Fa=Q.value;if(null!=Fa&&0<Fa.length){var Pa=function(Ta,Qa,Ra){b.createFile(Ra,oa,null!=ia&&0<ia.length?ia:null,Ta,function(){A||b.hideDialog()},+infoObj,clibs)},!0,!1)}}function C(){if(Aa==tb&&null==oa&&null!=Sa&&null!=rb&&""!=mxUtils.trim(rb.value))g&&b.spinner.spin(document.body,mxResources.get("generate")+" '"+rb.value+"'")&&(A=!0,b.hideDialog()),Sa.click();else if(A&&b.spinner.stop(),ha&&null!=f)m||A||b.hideDialog(),f(ha,ka,Q.value);else if(g)m||A||b.hideDialog(),g(oa,Q.value,ma,ia);else{var Fa=Q.value;if(null!=Fa&&0<Fa.length){var Pa=function(Ta,Qa,Ra){b.createFile(Ra,oa,null!=ia&&0<ia.length?ia:null,Ta,function(){A||b.hideDialog()},null,Qa,null,null!=ja&&0<ja.length?ja:null)};if(b.mode==App.MODE_GOOGLE||b.mode==App.MODE_ONEDRIVE){var Ka=new SaveDialog(b,Fa,mxUtils.bind(this,function(Ta,Qa,Ra){Pa(Qa,Ra,Ta.value)}),null,null,null,null,b.mode);b.showDialog(Ka.container,420,162,!0,!1);Ka.init()}else b.pickFolder(b.mode,function(Ta){Pa(b.mode,Ta,Fa)},b.mode!=App.MODE_GOOGLE||null==b.stateArg||null==b.stateArg.folderId)}}}function R(Fa,Pa,Ka,Ta,Qa,Ra,Xa){return Aa!=Fa?(null!=Aa&&(Aa.classList.remove("geTemplateSelected"),Aa==tb&&(ib.style.display="none",gb.style.display="",jb.style.visibility="hidden",Ua.style.visibility=null!=ta?"visible":"hidden")),Fa==tb&&(Pa=ta,null!=Pa?(Ua.style.visibility="visible",Ua.style.visibility=null!=ta?"visible":"hidden",jb.style.visibility="visible"):(ib.style.display="",jb.style.visibility="hidden",Ua.style.visibility="hidden")),ca.removeAttribute("disabled"),oa=Pa,ia=Ka,ja=Ra,Aa=Fa,ha=Ta,ma=Xa,ka=Qa,Aa.classList.add("geTemplateSelected"),!0):!1}function M(){ib.style.display="";gb.style.display="none";jb.style.visibility="hidden";Ua.style.visibility="hidden";rb.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?rb.select():document.execCommand("selectAll",!1,null)}function O(){""!=rb.value?Sa.removeAttribute("disabled"):Sa.setAttribute("disabled","disabled")}function U(){gb.style.backgroundImage=yb;gb.style.backgroundSize="contain"}function T(){U();ib.style.display="none";gb.style.display="";jb.style.visibility="visible";Ua.style.visibility="visible"}function V(){kb=!0;gb.style.backgroundImage=@@ -13147,62 +13232,62 @@ if(null==Ta){var Ra=Ka.indexOf("/");Ta=Ka.substring(0,Ra);if(null==Qa){var Xa=Ka[],Pa[Qa]=Ta),Ta.push(Fa))}};G.appendChild(Ga);G.appendChild(Oa);G.appendChild(sa);var wb=!1,Eb=H;/^https?:\/\//.test(Eb)&&!b.editor.isCorsEnabledForUrl(Eb)&&(Eb=PROXY_URL+"?url="+encodeURIComponent(Eb));X.spin(sa);null!=r?r(function(Fa,Pa){Db=Fa;ra=Cb=Pa;Gb()},Gb):Gb();la=Za}mxEvent.addListener(Q,"keypress",function(Fa){b.dialog.container.firstChild==G&&13==Fa.keyCode&&C()});var pb=document.createElement("div");pb.style.marginTop=k?"4px":"16px";pb.style.textAlign="right";pb.style.position="absolute";pb.style.left="40px";pb.style.bottom="24px";pb.style.right="40px";var Ab=mxUtils.button(mxResources.get("cancel"),function(){null!=u&&u();b.hideDialog(!0)});Ab.className="geBtn";!b.editor.cancelFirst||q&&null==u||pb.appendChild(Ab);if(!(k||"1"==urlParams.embed||q||mxClient.IS_ANDROID||mxClient.IS_IOS)&&"1"!=urlParams.noDevice){var Ib=mxUtils.button(mxResources.get("fromTemplateUrl"),function(){var Fa=new FilenameDialog(b,"",mxResources.get("create"),function(Pa){null!=Pa&&0<Pa.length&&b.editor.loadUrl(b.editor.getProxiedUrl(Pa),function(Ka){oa=Ka;ia=null;templateRealURl=Pa;b.hideDialog();C()},function(Ka){b.handleError(Ka)})},mxResources.get("url"),null,null,null,!1);b.showDialog(Fa.container,300,80,!0,!0);Fa.init()});Ib.className="geBtn";pb.appendChild(Ib)}if(Graph.fileSupport&&l){var Lb=mxUtils.button(mxResources.get("import"),function(){if(null==b.newDlgFileInputElt){var Fa=document.createElement("input");Fa.setAttribute("multiple","multiple");Fa.setAttribute("type","file");mxEvent.addListener(Fa,"change",function(Pa){b.openFiles(Fa.files,-!0);Fa.value=""});Fa.style.display="none";document.body.appendChild(Fa);b.newDlgFileInputElt=Fa}b.newDlgFileInputElt.click()});Lb.className="geBtn";pb.appendChild(Lb)}pb.appendChild(ca);b.editor.cancelFirst||null!=f||q&&null==u||pb.appendChild(Ab);G.appendChild(pb);this.container=G};NewDialog.tagsList=Object.create(null);-var SaveDialog=function(b,k,m,f,q,u,x,z,F,J,H){function D(y,d,p,A,G,I){var L=null;if(y!=App.MODE_DROPBOX&&(null==f||0>mxUtils.indexOf(f,y))&&(null==F||y==F)&&(null==J||0<=mxUtils.indexOf(J,y))){G=null!=G?G:b.getTitleForService(y);var P=0<=mxUtils.indexOf(U,y);if(P||null!=b.getServiceForName(y)){L=document.createElement("option");var Q="";!P&&b.isOffline(y==App.MODE_GOOGLE&&"1"==urlParams["gapi-stealth"])&&(L.setAttribute("disabled","disabled"),Q=" ("+mxResources.get("offline")+")");if("pick"==I)L.innerHTML=+!0);Fa.value=""});Fa.style.display="none";document.body.appendChild(Fa);b.newDlgFileInputElt=Fa}b.newDlgFileInputElt.click()});Lb.className="geBtn";pb.appendChild(Lb)}pb.appendChild(ca);b.editor.cancelFirst||null!=g||q&&null==u||pb.appendChild(Ab);G.appendChild(pb);this.container=G};NewDialog.tagsList=Object.create(null);+var SaveDialog=function(b,k,m,g,q,u,x,z,F,J,H){function D(y,d,p,A,G,I){var L=null;if(y!=App.MODE_DROPBOX&&(null==g||0>mxUtils.indexOf(g,y))&&(null==F||y==F)&&(null==J||0<=mxUtils.indexOf(J,y))){G=null!=G?G:b.getTitleForService(y);var P=0<=mxUtils.indexOf(U,y);if(P||null!=b.getServiceForName(y)){L=document.createElement("option");var Q="";!P&&b.isOffline(y==App.MODE_GOOGLE&&"1"==urlParams["gapi-stealth"])&&(L.setAttribute("disabled","disabled"),Q=" ("+mxResources.get("offline")+")");if("pick"==I)L.innerHTML=mxUtils.htmlEntities(G)+" – "+mxUtils.htmlEntities(mxResources.get("pickFolder"))+"..."+Q,L.setAttribute("value","pickFolder-"+y),L.setAttribute("title",G+" - "+mxResources.get("pickFolder")+"...");else{P=y+(null!=p?"-"+p:"");var ba=V[P];null!=ba&&null!=ba.option&&ba.option.parentNode.removeChild(ba.option);ba=null;if(null!=d){"/"==d.charAt(d.length-1)&&(d=d.substring(0,d.length-1));"/"==d.charAt(0)&&(d=d.substring(1));ba=d;if(y!=App.MODE_GITHUB&&y==App.MODE_GITLAB){var W=ba.lastIndexOf("/");0<=W&&(ba=ba.substring(W+1))}40<ba.length&&(ba=ba.substring(0,20)+"..."+ba.substring(ba.length-20))}L.innerHTML=mxUtils.htmlEntities(G)+(null!=ba?" – "+mxUtils.htmlEntities(ba):"")+Q;L.setAttribute("title",G+(null!=d?" ("+d+")":"")+(null!=p&&decodeURIComponent(p)!=d?" ["+p+"]":""));L.setAttribute("value",P);V[P]={option:L,mode:y,path:d,id:p};SaveDialog.lastValue==P&&null==z&&"disabled"==!L.getAttribute("disabled")?A=!0:null==A&&("root"==I?A=null==z&&b.mode==y||null!=y&&y==z:"pickFolder-"==O.value.substring(0,11)&&(A=!0));A&&L.setAttribute("selected","selected")}O.appendChild(L)}}return L}function c(y){b.pickFolder(y,function(d){var p=null;y==App.MODE_GOOGLE&&null!=d.docs&&0<d.docs.length?p={mode:y,path:d.docs[0].name,id:d.docs[0].id}:y==App.MODE_ONEDRIVE&&null!=d.value&&0<d.value.length?p={mode:y,path:d.value[0].name,id:OneDriveFile.prototype.getIdOf(d.value[0])}:y==App.MODE_M365&&null!=d.value&&0<d.value.length?p={mode:y,path:d.value[0].name,-id:OneDriveFile.prototype.getIdOf(d.value[0])}:(y==App.MODE_GITHUB||y==App.MODE_GITLAB)&&null!=d&&0<d.length&&(p={mode:y,path:decodeURIComponent(d),id:d});null!=p&&(b.addRecent(p,"Folders",5),d=D(p.mode,p.path,p.id,!0),O.innerHTML="",V={},g(),p=O.selectedIndex,O.value=d.value,0>O.selectedIndex&&(O.selectedIndex=p))},!0,!0,!0,!0)}function g(){var y=b.getRecent("Folders"),d=0;if(null!=y&&0<y.length)for(var p=0;p<y.length;p++)null!=D(y[p].mode,y[p].path,y[p].id)&&d++;D(App.MODE_GOOGLE,mxResources.get("myDrive"),+id:OneDriveFile.prototype.getIdOf(d.value[0])}:(y==App.MODE_GITHUB||y==App.MODE_GITLAB)&&null!=d&&0<d.length&&(p={mode:y,path:decodeURIComponent(d),id:d});null!=p&&(b.addRecent(p,"Folders",5),d=D(p.mode,p.path,p.id,!0),O.innerHTML="",V={},f(),p=O.selectedIndex,O.value=d.value,0>O.selectedIndex&&(O.selectedIndex=p))},!0,!0,!0,!0)}function f(){var y=b.getRecent("Folders"),d=0;if(null!=y&&0<y.length)for(var p=0;p<y.length;p++)null!=D(y[p].mode,y[p].path,y[p].id)&&d++;D(App.MODE_GOOGLE,mxResources.get("myDrive"),"root",null,null,"root");D(App.MODE_GOOGLE,null,null,null,null,"pick");null!=b.oneDrive&&(D(App.MODE_ONEDRIVE,mxResources.get("myFiles"),OneDriveFile.prototype.getIdOf(b.oneDrive.rootId),null,null,"root"),D(App.MODE_ONEDRIVE,null,null,null,null,"pick"));null!=b.m365&&D(App.MODE_M365,null,null,null,null,"pick");D(App.MODE_GITHUB,null,null,null,null,"pick");D(App.MODE_GITLAB,null,null,null,null,"pick");D(App.MODE_TRELLO);y="1"!=urlParams.noDevice&&(!Editor.useLocalStorage||"device"==urlParams.storage||-null!=b.getCurrentFile());EditorUi.nativeFileSupport&&y&&D(App.MODE_DEVICE,null,null,b.mode==App.MODE_DEVICE||null!=f&&0<=mxUtils.indexOf(f,App.MODE_BROWSER)?!0:null);isLocalStorage&&"0"!=urlParams.browser&&D(App.MODE_BROWSER);y&&D("download");0==O.options.length&&(EditorUi.nativeFileSupport&&D(App.MODE_DEVICE,null,null,b.mode==App.MODE_DEVICE?!0:null),D("download"));Editor.popupsAllowed&&D("_blank",null,null,null,mxResources.get("openInNewWindow"));"pickFolder-"==O.value.substring(0,11)&&(y=document.createElement("option"),+null!=b.getCurrentFile());EditorUi.nativeFileSupport&&y&&D(App.MODE_DEVICE,null,null,b.mode==App.MODE_DEVICE||null!=g&&0<=mxUtils.indexOf(g,App.MODE_BROWSER)?!0:null);isLocalStorage&&"0"!=urlParams.browser&&D(App.MODE_BROWSER);y&&D("download");0==O.options.length&&(EditorUi.nativeFileSupport&&D(App.MODE_DEVICE,null,null,b.mode==App.MODE_DEVICE?!0:null),D("download"));Editor.popupsAllowed&&D("_blank",null,null,null,mxResources.get("openInNewWindow"));"pickFolder-"==O.value.substring(0,11)&&(y=document.createElement("option"),y.setAttribute("value",""),y.setAttribute("selected","selected"),mxUtils.write(y,mxResources.get("pickFolder")+"..."),O.insertBefore(y,O.firstChild));T=O.value}function l(){if("pickFolder-"==O.value.substring(0,11)){var y=O.value.substring(11);O.value=T;c(y)}else if(null!=M&&null!=V[O.value]&&null!=b.editor.diagramFileTypes&&"drawio"==b.editor.diagramFileTypes[M.value].extension){y=b.getExtensionForService(V[O.value].mode);var d=R.value;null!=y&&0>k.indexOf(".")&&0>d.indexOf(".")&&(R.value=d+y)}fa.innerHTML="";mxUtils.write(fa,null!=H?H:mxResources.get("download"==O.value||"_blank"==O.value||null!=F?"ok":"save"));""==O.value?fa.setAttribute("disabled","disabled"):fa.removeAttribute("disabled")}var n=document.createElement("div");n.style.display="flex";n.style.flexWrap="wrap";n.style.whiteSpace="nowrap";var r=document.createElement("div");r.style.display="grid";r.style.gap="5px 8px";r.style.gridAutoRows="auto auto auto";r.style.gridAutoColumns="0fr minmax(0,1fr)";r.style.width="100%";var t=null,v=null;if(null==q||null==u||"image/"!=u.substring(0,6)||"image/svg"==u.substring(0,9)&&!mxClient.IS_SVG)null==q||x||null==u||"text/"!=u.substring(0,5)&&"application/json"!=u||null==navigator.clipboard||null==navigator.clipboard.writeText||(v=mxUtils.button(mxResources.get("copy"),function(){b.writeTextToClipboard(q,function(y){b.handleError(y)},function(){"copy"==z?b.hideDialog():b.alert(mxResources.get("copiedToClipboard"))})},null,"geBtn"));else{r.style.display="inline-grid";r.style.flexBasis="75%";t=document.createElement("div");t.style.display="inline-block";t.style.height="auto";t.style.maxWidth="25%";t.style.margin="auto";var B=document.createElement("img"),E=x?q:btoa(unescape(encodeURIComponent(q))),K="data:"+u+";base64,"+E;B.setAttribute("src",K);B.style.boxSizing="border-box";B.style.maxHeight="50px";B.style.maxWidth="100%";B.style.paddingLeft="10px";t.appendChild(B);"image/png"!=u&&"image/svg+xml"!=u||"function"!==typeof window.ClipboardItem||null==navigator.clipboard||(v=mxUtils.button(mxResources.get("copy"),-function(){b.writeImageToClipboard(K,null,null,u,mxUtils.bind(this,function(){"copy"==z?b.hideDialog():b.alert(mxResources.get("copiedToClipboard"))}),mxUtils.bind(this,function(y){b.handleError(y)}))},null,"geBtn"));Editor.popupsAllowed&&(null==f||0>mxUtils.indexOf(f,"_blank"))?(t.setAttribute("title",mxResources.get("openInNewWindow")),t.style.cursor="pointer",mxEvent.addGestureListeners(t,null,null,function(y){mxEvent.isPopupTrigger(y)||b.openInNewWindow(q,u,x)})):t.setAttribute("title",mxResources.get("preview"))}E=+function(){b.writeImageToClipboard(K,null,null,u,mxUtils.bind(this,function(){"copy"==z?b.hideDialog():b.alert(mxResources.get("copiedToClipboard"))}),mxUtils.bind(this,function(y){b.handleError(y)}))},null,"geBtn"));Editor.popupsAllowed&&(null==g||0>mxUtils.indexOf(g,"_blank"))?(t.setAttribute("title",mxResources.get("openInNewWindow")),t.style.cursor="pointer",mxEvent.addGestureListeners(t,null,null,function(y){mxEvent.isPopupTrigger(y)||b.openInNewWindow(q,u,x)})):t.setAttribute("title",mxResources.get("preview"))}E=document.createElement("div");E.style.display="flex";E.style.padding="1px";E.style.alignItems="center";E.style.justifyContent="flex-end";E.style.gridColumn="1";E.style.whiteSpace="nowrap";var C=document.createElement("div");C.style.display="grid";C.style.padding="1px";C.style.alignItems="center";C.style.gridColumn="2";C.style.gridAutoColumns="minmax(0,1fr) auto";C.style.gap="6px";mxUtils.write(E,mxResources.get("saveAs")+":");var R=document.createElement("input");R.setAttribute("type","text");R.setAttribute("value",k);R.style.boxSizing="border-box";R.style.width="100%";C.appendChild(R);null==F&&(r.appendChild(E),r.appendChild(C));var M=null;null!=b.editor.diagramFileTypes&&null==u&&null==F&&(E=E.cloneNode(!1),C=C.cloneNode(!1),mxUtils.write(E,mxResources.get("type")+":"),M=FilenameDialog.createFileTypes(b,R,b.editor.diagramFileTypes),M.style.boxSizing="border-box",M.style.width="100%",C.appendChild(M),r.appendChild(E),r.appendChild(C));E=E.cloneNode(!1);C=C.cloneNode(!1);mxUtils.write(E,mxResources.get("where")+-":");var O=document.createElement("select");O.style.textOverflow="ellipsis";O.style.gridColumn="1";var U=["browser","device","download","_blank"],T=null,V={};B=mxUtils.button(mxResources.get("reset"),function(){R.value=k;R.dispatchEvent(new Event("change"));b.resetRecent("Folders");O.innerHTML="";O.value="";pickFolderOption=null;V={};g()},null,"geBtn");var fa=mxUtils.button("",function(){SaveDialog.lastValue=O.value;var y=V[SaveDialog.lastValue];null!=y&&m(R,y.mode,y.id)},null,"geBtn gePrimaryBtn");-mxEvent.addListener(R,"keypress",function(y){13==y.keyCode&&("copy"==z&&null!=v?v.click():fa.click())});mxEvent.addListener(O,"change",l);g();C.appendChild(O);null!=SaveDialog.lastValue&&null!=V[SaveDialog.lastValue]&&(O.value=SaveDialog.lastValue);l();r.appendChild(E);r.appendChild(C);n.appendChild(r);null!=t&&n.appendChild(t);r=document.createElement("div");r.style.flexBasis="100%";r.style.textAlign="right";r.style.marginTop="20px";b.isOffline()&&!mxClient.IS_CHROMEAPP||r.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/save-file-formats"));-t=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()},null,"geBtn");b.editor.cancelFirst&&r.appendChild(t);r.appendChild(B);"copy"==z&&null!=v?(v.className="geBtn gePrimaryBtn",fa.className="geBtn",r.appendChild(fa),r.appendChild(v)):(null!=v&&r.appendChild(v),r.appendChild(fa));b.editor.cancelFirst||r.appendChild(t);n.appendChild(r);this.init=function(){Editor.selectFilename(R)};this.container=n},CreateDialog=function(b,k,m,f,q,u,x,z,F,J,H,D,c,g,l,n,r){function t(O,U,T,V){function fa(){mxEvent.addListener(y,+":");var O=document.createElement("select");O.style.textOverflow="ellipsis";O.style.gridColumn="1";var U=["browser","device","download","_blank"],T=null,V={};B=mxUtils.button(mxResources.get("reset"),function(){R.value=k;R.dispatchEvent(new Event("change"));b.resetRecent("Folders");O.innerHTML="";O.value="";pickFolderOption=null;V={};f()},null,"geBtn");var fa=mxUtils.button("",function(){SaveDialog.lastValue=O.value;var y=V[SaveDialog.lastValue];null!=y&&m(R,y.mode,y.id)},null,"geBtn gePrimaryBtn");+mxEvent.addListener(R,"keypress",function(y){13==y.keyCode&&("copy"==z&&null!=v?v.click():fa.click())});mxEvent.addListener(O,"change",l);f();C.appendChild(O);null!=SaveDialog.lastValue&&null!=V[SaveDialog.lastValue]&&(O.value=SaveDialog.lastValue);l();r.appendChild(E);r.appendChild(C);n.appendChild(r);null!=t&&n.appendChild(t);r=document.createElement("div");r.style.flexBasis="100%";r.style.textAlign="right";r.style.marginTop="20px";b.isOffline()&&!mxClient.IS_CHROMEAPP||r.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/save-file-formats"));+t=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()},null,"geBtn");b.editor.cancelFirst&&r.appendChild(t);r.appendChild(B);"copy"==z&&null!=v?(v.className="geBtn gePrimaryBtn",fa.className="geBtn",r.appendChild(fa),r.appendChild(v)):(null!=v&&r.appendChild(v),r.appendChild(fa));b.editor.cancelFirst||r.appendChild(t);n.appendChild(r);this.init=function(){Editor.selectFilename(R)};this.container=n},CreateDialog=function(b,k,m,g,q,u,x,z,F,J,H,D,c,f,l,n,r){function t(O,U,T,V){function fa(){mxEvent.addListener(y,"click",function(){var I=T;if(x){var L=E.value,P=L.lastIndexOf(".");if(0>k.lastIndexOf(".")&&0>P){I=null!=I?I:M.value;var Q="";I==App.MODE_GOOGLE?Q=b.drive.extension:I==App.MODE_GITHUB?Q=b.gitHub.extension:I==App.MODE_GITLAB?Q=b.gitLab.extension:I==App.MODE_TRELLO?Q=b.trello.extension:I==App.MODE_DROPBOX?Q=b.dropbox.extension:I==App.MODE_ONEDRIVE?Q=b.oneDrive.extension:I==App.MODE_DEVICE&&(Q=".drawio");0<=P&&(L=L.substring(0,P));E.value=L+Q}}v(T)})}var y=document.createElement("a");y.style.overflow="hidden";var d=document.createElement("img");d.src=O;d.setAttribute("border","0");d.setAttribute("align","absmiddle");d.style.width="60px";d.style.height="60px";d.style.paddingBottom="6px";y.style.display="inline-block";y.className="geBaseButton";y.style.position="relative";y.style.margin="4px";y.style.padding="8px 8px 10px 8px";y.style.whiteSpace="nowrap";y.appendChild(d);y.style.color="gray";y.style.fontSize="11px";var p=document.createElement("div");y.appendChild(p);mxUtils.write(p,U);if(null!=V&&null==b[V]){d.style.visibility="hidden";mxUtils.setOpacity(p,10);var A=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});A.spin(y);var G=window.setTimeout(function(){null==b[V]&&(A.stop(),y.style.display="none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,function(){null!=b[V]&&(window.clearTimeout(G),mxUtils.setOpacity(p,100),d.style.visibility="",A.stop(),fa())}))}else fa();C.appendChild(y);-++R==D&&(mxUtils.br(C),R=0)}function v(O){var U=E.value;if(null==O||null!=U&&0<U.length)r&&b.hideDialog(),m(U,O,E)}H="1"==urlParams.noDevice?!1:H;x=null!=x?x:!0;z=null!=z?z:!0;D=null!=D?D:4;r=null!=r?r:!0;u=document.createElement("div");u.style.whiteSpace="nowrap";null==f&&b.addLanguageMenu(u);var B=document.createElement("h2");mxUtils.write(B,q||mxResources.get("create"));B.style.marginTop="0px";B.style.marginBottom="24px";u.appendChild(B);q=document.createElement("span");mxUtils.write(q,mxResources.get("filename")++++R==D&&(mxUtils.br(C),R=0)}function v(O){var U=E.value;if(null==O||null!=U&&0<U.length)r&&b.hideDialog(),m(U,O,E)}H="1"==urlParams.noDevice?!1:H;x=null!=x?x:!0;z=null!=z?z:!0;D=null!=D?D:4;r=null!=r?r:!0;u=document.createElement("div");u.style.whiteSpace="nowrap";null==g&&b.addLanguageMenu(u);var B=document.createElement("h2");mxUtils.write(B,q||mxResources.get("create"));B.style.marginTop="0px";B.style.marginBottom="24px";u.appendChild(B);q=document.createElement("span");mxUtils.write(q,mxResources.get("filename")+":");q.style.maxWidth="106px";q.style.overflow="hidden";q.style.textOverflow="ellipsis";q.style.display="inline-block";u.appendChild(q);var E=document.createElement("input");E.setAttribute("value",k);E.style.width="180px";E.style.marginLeft="10px";E.style.marginBottom="20px";E.style.maxWidth="70%";this.init=function(){Editor.selectFilename(E)};u.appendChild(E);null!=n&&null!=b.editor.diagramFileTypes&&(n=FilenameDialog.createFileTypes(b,E,b.editor.diagramFileTypes),n.style.marginLeft="6px",n.style.width=-"90px",u.appendChild(n));n=null;if("1"!=urlParams.noDevice&&null!=c&&null!=g&&"image/"==g.substring(0,6)&&("image/svg"!=g.substring(0,9)||mxClient.IS_SVG)){E.style.width="160px";q=document.createElement("img");var K=l?c:btoa(unescape(encodeURIComponent(c)));q.setAttribute("src","data:"+g+";base64,"+K);q.style.position="absolute";q.style.top="70px";q.style.right="100px";q.style.maxWidth="120px";q.style.maxHeight="80px";mxUtils.setPrefixedStyle(q.style,"transform","translate(50%,-50%)");u.appendChild(q);-mxClient.IS_FF||"image/png"!=g||null==navigator.clipboard||"function"!==typeof window.ClipboardItem||(n=mxUtils.button(mxResources.get("copy"),function(O){O=b.base64ToBlob(K,"image/png");O=new ClipboardItem({"image/png":O,"text/html":new Blob(['<img src="data:'+g+";base64,"+K+'">'],{type:"text/html"})});navigator.clipboard.write([O]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(U){b.handleError(U)}))}),n.style.marginTop="6px",+"90px",u.appendChild(n));n=null;if("1"!=urlParams.noDevice&&null!=c&&null!=f&&"image/"==f.substring(0,6)&&("image/svg"!=f.substring(0,9)||mxClient.IS_SVG)){E.style.width="160px";q=document.createElement("img");var K=l?c:btoa(unescape(encodeURIComponent(c)));q.setAttribute("src","data:"+f+";base64,"+K);q.style.position="absolute";q.style.top="70px";q.style.right="100px";q.style.maxWidth="120px";q.style.maxHeight="80px";mxUtils.setPrefixedStyle(q.style,"transform","translate(50%,-50%)");u.appendChild(q);+mxClient.IS_FF||"image/png"!=f||null==navigator.clipboard||"function"!==typeof window.ClipboardItem||(n=mxUtils.button(mxResources.get("copy"),function(O){O=b.base64ToBlob(K,"image/png");O=new ClipboardItem({"image/png":O,"text/html":new Blob(['<img src="data:'+f+";base64,"+K+'">'],{type:"text/html"})});navigator.clipboard.write([O]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(U){b.handleError(U)}))}),n.style.marginTop="6px",n.className="geBtn");F&&Editor.popupsAllowed&&(q.style.cursor="pointer",mxEvent.addGestureListeners(q,null,null,function(O){mxEvent.isPopupTrigger(O)||v("_blank")}))}mxUtils.br(u);var C=document.createElement("div");C.style.textAlign="center";var R=0;C.style.marginTop="6px";u.appendChild(C);var M=document.createElement("select");M.style.marginLeft="10px";b.isOfflineApp()||b.isOffline()||("function"===typeof window.DriveClient&&(c=document.createElement("option"),c.setAttribute("value",App.MODE_GOOGLE),mxUtils.write(c,mxResources.get("googleDrive")),M.appendChild(c),t(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive")),"function"===typeof window.OneDriveClient&&(c=document.createElement("option"),c.setAttribute("value",App.MODE_ONEDRIVE),mxUtils.write(c,mxResources.get("oneDrive")),M.appendChild(c),b.mode==App.MODE_ONEDRIVE&&c.setAttribute("selected","selected"),t(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),App.MODE_ONEDRIVE,"oneDrive")),null!=b.m365&&(c=document.createElement("option"),c.setAttribute("value",App.MODE_M365),mxUtils.write(c,mxResources.get("m365")),M.appendChild(c),b.mode==App.MODE_M365&&c.setAttribute("selected","selected"),t(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("m365"),App.MODE_M365,"m365")),null!=b.gitHub&&(c=document.createElement("option"),c.setAttribute("value",App.MODE_GITHUB),mxUtils.write(c,mxResources.get("github")),M.appendChild(c),t(IMAGE_PATH+"/github-logo.svg",mxResources.get("github"),App.MODE_GITHUB,"gitHub")),null!=b.gitLab&&(c=document.createElement("option"),c.setAttribute("value",App.MODE_GITLAB),mxUtils.write(c,mxResources.get("gitlab")),M.appendChild(c),t(IMAGE_PATH+"/gitlab-logo.svg",mxResources.get("gitlab"),App.MODE_GITLAB,"gitLab")),"function"===typeof window.TrelloClient&&(c=document.createElement("option"),c.setAttribute("value",App.MODE_TRELLO),mxUtils.write(c,mxResources.get("trello")),M.appendChild(c),t(IMAGE_PATH+"/trello-logo.svg",mxResources.get("trello"),App.MODE_TRELLO,"trello")));if(!Editor.useLocalStorage||"device"==urlParams.storage||null!=b.getCurrentFile()&&"1"!=urlParams.noDevice)c=document.createElement("option"),c.setAttribute("value",App.MODE_DEVICE),mxUtils.write(c,mxResources.get("device")),M.appendChild(c),b.mode!=App.MODE_DEVICE&&z||c.setAttribute("selected","selected"),H&&t(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE);z&&isLocalStorage&&"0"!=urlParams.browser&&(z=document.createElement("option"),z.setAttribute("value",App.MODE_BROWSER),-mxUtils.write(z,mxResources.get("browser")),M.appendChild(z),b.mode==App.MODE_BROWSER&&z.setAttribute("selected","selected"),t(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER));z=document.createElement("div");z.style.marginTop="26px";z.style.textAlign="center";null!=J&&(H=mxUtils.button(mxResources.get("help"),function(){b.openLink(J)}),H.className="geBtn",z.appendChild(H));H=mxUtils.button(mxResources.get(null!=f?"close":"cancel"),function(){null!=f?f():(b.fileLoaded(null),-b.hideDialog(),window.close(),window.location.href=b.getUrl())});H.className="geBtn";b.editor.cancelFirst&&null==f&&z.appendChild(H);null==f&&(c=mxUtils.button(mxResources.get("decideLater"),function(){v(null)}),c.className="geBtn",z.appendChild(c));F&&Editor.popupsAllowed&&(F=mxUtils.button(mxResources.get("openInNewWindow"),function(){v("_blank")}),F.className="geBtn",z.appendChild(F));CreateDialog.showDownloadButton&&(F=mxUtils.button(mxResources.get("download"),function(){v("download")}),F.className=-"geBtn",z.appendChild(F),null!=n&&(F.style.marginTop="6px",z.style.marginTop="6px"));null!=n&&(mxUtils.br(z),z.appendChild(n));b.editor.cancelFirst&&null==f||z.appendChild(H);mxEvent.addListener(E,"keypress",function(O){13==O.keyCode?v(App.MODE_DEVICE):27==O.keyCode&&(b.fileLoaded(null),b.hideDialog(),window.close())});u.appendChild(z);this.container=u};CreateDialog.showDownloadButton="1"!=urlParams.noDevice;-var PopupDialog=function(b,k,m,f,q){q=null!=q?q:!0;var u=document.createElement("div");u.style.textAlign="center";u.style.height="100%";mxUtils.write(u,mxResources.get("fileOpenLocation"));mxUtils.br(u);mxUtils.br(u);var x=mxUtils.button(mxResources.get("openInThisWindow"),function(){q&&b.hideDialog();null!=f&&f()});x.className="geBtn";x.style.marginBottom="8px";x.style.width="280px";u.appendChild(x);mxUtils.br(u);var z=mxUtils.button(mxResources.get("openInNewWindow"),function(){q&&b.hideDialog();-null!=m&&m();b.openLink(k,null,!0)});z.className="geBtn gePrimaryBtn";z.style.width=x.style.width;u.appendChild(z);mxUtils.br(u);mxUtils.br(u);mxUtils.write(u,mxResources.get("allowPopups"));this.container=u},ImageDialog=function(b,k,m,f,q,u,x,z){function F(){0<D.value.length?v.removeAttribute("disabled"):v.setAttribute("disabled","disabled");"data:"!=D.value.substring(0,5)?B.removeAttribute("disabled"):B.setAttribute("disabled","disabled")}u=null!=u?u:!0;var J=b.editor.graph,H=document.createElement("div");+mxUtils.write(z,mxResources.get("browser")),M.appendChild(z),b.mode==App.MODE_BROWSER&&z.setAttribute("selected","selected"),t(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER));z=document.createElement("div");z.style.marginTop="26px";z.style.textAlign="center";null!=J&&(H=mxUtils.button(mxResources.get("help"),function(){b.openLink(J)}),H.className="geBtn",z.appendChild(H));H=mxUtils.button(mxResources.get(null!=g?"close":"cancel"),function(){null!=g?g():(b.fileLoaded(null),+b.hideDialog(),window.close(),window.location.href=b.getUrl())});H.className="geBtn";b.editor.cancelFirst&&null==g&&z.appendChild(H);null==g&&(c=mxUtils.button(mxResources.get("decideLater"),function(){v(null)}),c.className="geBtn",z.appendChild(c));F&&Editor.popupsAllowed&&(F=mxUtils.button(mxResources.get("openInNewWindow"),function(){v("_blank")}),F.className="geBtn",z.appendChild(F));CreateDialog.showDownloadButton&&(F=mxUtils.button(mxResources.get("download"),function(){v("download")}),F.className=+"geBtn",z.appendChild(F),null!=n&&(F.style.marginTop="6px",z.style.marginTop="6px"));null!=n&&(mxUtils.br(z),z.appendChild(n));b.editor.cancelFirst&&null==g||z.appendChild(H);mxEvent.addListener(E,"keypress",function(O){13==O.keyCode?v(App.MODE_DEVICE):27==O.keyCode&&(b.fileLoaded(null),b.hideDialog(),window.close())});u.appendChild(z);this.container=u};CreateDialog.showDownloadButton="1"!=urlParams.noDevice;+var PopupDialog=function(b,k,m,g,q){q=null!=q?q:!0;var u=document.createElement("div");u.style.textAlign="center";u.style.height="100%";mxUtils.write(u,mxResources.get("fileOpenLocation"));mxUtils.br(u);mxUtils.br(u);var x=mxUtils.button(mxResources.get("openInThisWindow"),function(){q&&b.hideDialog();null!=g&&g()});x.className="geBtn";x.style.marginBottom="8px";x.style.width="280px";u.appendChild(x);mxUtils.br(u);var z=mxUtils.button(mxResources.get("openInNewWindow"),function(){q&&b.hideDialog();+null!=m&&m();b.openLink(k,null,!0)});z.className="geBtn gePrimaryBtn";z.style.width=x.style.width;u.appendChild(z);mxUtils.br(u);mxUtils.br(u);mxUtils.write(u,mxResources.get("allowPopups"));this.container=u},ImageDialog=function(b,k,m,g,q,u,x,z){function F(){0<D.value.length?v.removeAttribute("disabled"):v.setAttribute("disabled","disabled");"data:"!=D.value.substring(0,5)?B.removeAttribute("disabled"):B.setAttribute("disabled","disabled")}u=null!=u?u:!0;var J=b.editor.graph,H=document.createElement("div");mxUtils.write(H,k);k=document.createElement("div");k.className="geTitle";k.style.backgroundColor="transparent";k.style.borderColor="transparent";k.style.whiteSpace="nowrap";k.style.textOverflow="clip";k.style.cursor="default";k.style.paddingRight="20px";var D=document.createElement("input");D.setAttribute("value",m);D.setAttribute("type","text");D.setAttribute("spellcheck","false");D.setAttribute("autocorrect","off");D.setAttribute("autocomplete","off");D.setAttribute("autocapitalize","off");D.style.marginTop="6px";D.style.width=(Graph.fileSupport?460:340)-20+"px";D.style.backgroundImage="url('"+Editor.crossImage+"')";D.style.backgroundRepeat="no-repeat";D.style.backgroundPosition="100% 50%";D.style.paddingRight="14px";m=document.createElement("div");m.setAttribute("title",mxResources.get("reset"));m.style.position="relative";m.style.left="-16px";m.style.width="12px";m.style.height="14px";m.style.cursor="pointer";m.style.display="inline-block";m.style.top="3px";m.style.background="url('"+b.editor.transparentImage+-"')";mxEvent.addListener(m,"click",function(){D.value="";D.focus()});k.appendChild(D);k.appendChild(m);H.appendChild(k);var c=z,g,l,n=function(E,K,C,R){var M="data:"==E.substring(0,5);!b.isOffline()||M&&"undefined"===typeof chrome?0<E.length&&b.spinner.spin(document.body,mxResources.get("inserting"))?b.loadImage(E,function(O){b.spinner.stop();b.hideDialog();var U=!1===R?1:null!=K&&null!=C?Math.max(K/O.width,C/O.height):Math.min(1,Math.min(520/O.width,520/O.height));u&&(E=b.convertDataUri(E));f(E,-Math.round(Number(O.width)*U),Math.round(Number(O.height)*U),c,g,l)},function(){b.spinner.stop();f(null);b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b.hideDialog(),f(E,null,null,c,g,l)):(E=b.convertDataUri(E),K=null==K?120:K,C=null==C?100:C,b.hideDialog(),f(E,K,C,c,g,l))},r=function(E,K){if(null!=E){var C=q?null:J.getModel().getGeometry(J.getSelectionCell());null!=C?n(E,C.width,C.height,K):n(E,null,null,K)}else b.hideDialog(),f(null)};this.init=function(){D.focus();+"')";mxEvent.addListener(m,"click",function(){D.value="";D.focus()});k.appendChild(D);k.appendChild(m);H.appendChild(k);var c=z,f,l,n=function(E,K,C,R){var M="data:"==E.substring(0,5);!b.isOffline()||M&&"undefined"===typeof chrome?0<E.length&&b.spinner.spin(document.body,mxResources.get("inserting"))?b.loadImage(E,function(O){b.spinner.stop();b.hideDialog();var U=!1===R?1:null!=K&&null!=C?Math.max(K/O.width,C/O.height):Math.min(1,Math.min(520/O.width,520/O.height));u&&(E=b.convertDataUri(E));g(E,+Math.round(Number(O.width)*U),Math.round(Number(O.height)*U),c,f,l)},function(){b.spinner.stop();g(null);b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b.hideDialog(),g(E,null,null,c,f,l)):(E=b.convertDataUri(E),K=null==K?120:K,C=null==C?100:C,b.hideDialog(),g(E,K,C,c,f,l))},r=function(E,K){if(null!=E){var C=q?null:J.getModel().getGeometry(J.getSelectionCell());null!=C?n(E,C.width,C.height,K):n(E,null,null,K)}else b.hideDialog(),g(null)};this.init=function(){D.focus();if(Graph.fileSupport){D.setAttribute("placeholder",mxResources.get("dragImagesHere"));var E=H.parentNode,K=null;mxEvent.addListener(E,"dragleave",function(C){null!=K&&(K.parentNode.removeChild(K),K=null);C.stopPropagation();C.preventDefault()});mxEvent.addListener(E,"dragover",mxUtils.bind(this,function(C){null==K&&(K=b.highlightElement(E));C.stopPropagation();C.preventDefault()}));mxEvent.addListener(E,"drop",mxUtils.bind(this,function(C){null!=K&&(K.parentNode.removeChild(K),K=null);if(0<C.dataTransfer.files.length)b.importFiles(C.dataTransfer.files,0,0,b.maxImageSize,function(M,O,U,T,V,fa,y,d){r(M,d)},function(){},function(M){return"image/"==M.type.substring(0,6)},function(M){for(var O=0;O<M.length;O++)M[O]()},!mxEvent.isControlDown(C),null,null,!0);else if(0<=mxUtils.indexOf(C.dataTransfer.types,"text/uri-list")){var R=C.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)($|\?)/i.test(R)&&r(decodeURIComponent(R))}C.stopPropagation();C.preventDefault()}),!1)}};z=document.createElement("div");z.style.marginTop="14px";z.style.textAlign="center";m=mxUtils.button(mxResources.get("cancel"),function(){b.spinner.stop();b.hideDialog()});m.className="geBtn";b.editor.cancelFirst&&z.appendChild(m);ImageDialog.filePicked=function(E){E.action==google.picker.Action.PICKED&&null!=E.docs[0].thumbnails&&(E=E.docs[0].thumbnails[E.docs[0].thumbnails.length-1],null!=E&&(D.value=E.url));D.focus()};if(Graph.fileSupport){if(null==b.imgDlgFileInputElt){var t=document.createElement("input");t.setAttribute("multiple","multiple");t.setAttribute("type","file");mxEvent.addListener(t,"change",function(E){null!=t.files&&(b.importFiles(t.files,0,0,b.maxImageSize,function(K,C,R,M,O,U){r(K)},function(){},function(K){return"image/"==K.type.substring(0,6)},function(K){for(var C=0;C<K.length;C++)K[C]()},!0),t.type="",t.type="file",t.value="")});t.style.display="none";document.body.appendChild(t);b.imgDlgFileInputElt=t}k=mxUtils.button(mxResources.get("open"),function(){b.imgDlgFileInputElt.click()});k.className="geBtn";z.appendChild(k)}mxEvent.addListener(D,-"keypress",function(E){13==E.keyCode&&r(D.value)});var v=mxUtils.button(mxResources.get("crop"),function(){var E=new CropImageDialog(b,D.value,c,function(K,C,R){c=K;g=C;l=R});b.showDialog(E.container,380,390,!0,!0,null,null,null,new mxRectangle(0,0,440,450))});x&&(v.className="geBtn",z.appendChild(v));var B=mxUtils.button(mxResources.get("embed"),function(){if("data:"!=D.value.substring(0,5)&&b.spinner.spin(document.body,mxResources.get("loading"))){var E=b.editor.createImageUrlConverter().convert(D.value),+"keypress",function(E){13==E.keyCode&&r(D.value)});var v=mxUtils.button(mxResources.get("crop"),function(){var E=new CropImageDialog(b,D.value,c,function(K,C,R){c=K;f=C;l=R});b.showDialog(E.container,380,390,!0,!0,null,null,null,new mxRectangle(0,0,440,450))});x&&(v.className="geBtn",z.appendChild(v));var B=mxUtils.button(mxResources.get("embed"),function(){if("data:"!=D.value.substring(0,5)&&b.spinner.spin(document.body,mxResources.get("loading"))){var E=b.editor.createImageUrlConverter().convert(D.value),K=new Image;K.onload=function(){b.editor.convertImageToDataUri(E,function(C){b.confirmImageResize(function(R){b.resizeImage(K,C,mxUtils.bind(this,function(M,O,U){b.spinner.stop();null!=M&&M.length<b.maxImageBytes?(D.value=M,F()):b.handleError({message:mxResources.get("imageTooBig")})}),R,b.maxImageSize)},K.width>b.maxImageSize||K.height>b.maxImageSize||C.length>b.maxImageBytes)},mxUtils.bind(this,function(){b.handleError({message:mxResources.get("fileNotFound")})}))};K.onerror=function(){b.spinner.stop();b.handleError({message:mxResources.get("fileNotFound")})};K.src=E}});B.className="geBtn";mxEvent.addListener(D,"change",function(E){c=null;F()});F();z.appendChild(B);x=mxUtils.button(mxResources.get("apply"),function(){r(D.value)});x.className="geBtn gePrimaryBtn";z.appendChild(x);b.editor.cancelFirst||z.appendChild(m);Graph.fileSupport&&(z.style.marginTop="120px",H.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",H.style.backgroundPosition="center 65%",H.style.backgroundRepeat="no-repeat",-x=document.createElement("div"),x.style.position="absolute",x.style.width="420px",x.style.top="58%",x.style.textAlign="center",x.style.fontSize="18px",x.style.color="#a0c3ff",mxUtils.write(x,mxResources.get("dragImagesHere")),H.appendChild(x));H.appendChild(z);this.container=H},LinkDialog=function(b,k,m,f,q,u,x){function z(M,O){var U=document.createElement("option");mxUtils.write(U,mxResources.get(M));U.value=M;C.appendChild(U);R[M]=O}var F=document.createElement("div");F.style.paddingBottom="10px";+x=document.createElement("div"),x.style.position="absolute",x.style.width="420px",x.style.top="58%",x.style.textAlign="center",x.style.fontSize="18px",x.style.color="#a0c3ff",mxUtils.write(x,mxResources.get("dragImagesHere")),H.appendChild(x));H.appendChild(z);this.container=H},LinkDialog=function(b,k,m,g,q,u,x){function z(M,O){var U=document.createElement("option");mxUtils.write(U,mxResources.get(M));U.value=M;C.appendChild(U);R[M]=O}var F=document.createElement("div");F.style.paddingBottom="10px";var J=document.createElement("h3");mxUtils.write(J,mxResources.get("editLink"));F.appendChild(J);var H=document.createElement("input");H.setAttribute("value","url");H.setAttribute("type","radio");H.setAttribute("name","geLinkDialogOption");var D=document.createElement("input");D.setAttribute("value","url");D.setAttribute("type","radio");D.setAttribute("name","geLinkDialogOption");var c=document.createElement("input");c.setAttribute("value","action");c.setAttribute("type","radio");c.setAttribute("name",-"geLinkDialogOption");var g=null!=k&&"data:action/json,"==k.substring(0,17)?k:null,l=document.createElement("input");l.setAttribute("placeholder",mxResources.get("dragUrlsHere"));l.setAttribute("type","text");l.style.flex="1";l.style.minWidth="0";var n=document.createElement("div");n.setAttribute("title",mxResources.get("reset"));n.style.backgroundImage="url("+Editor.crossImage+")";n.className="geAdaptiveAsset";n.style.width="12px";n.style.height="14px";n.style.cursor="pointer";n.style.flexShrink=-"0";n.style.marginLeft="-20px";n.style.marginRight="8px";mxEvent.addListener(n,"click",function(){l.value="";l.focus()});var r=document.createElement("select");r.style.flex="1";r.style.minWidth="0";r.style.marginLeft="0";var t=document.createElement("input");t.setAttribute("type","checkbox");null!=x&&(t.setAttribute("checked","checked"),t.defaultChecked=!0);x=null!=x?x:"_blank";t.setAttribute("title",x);J=document.createElement("div");J.className="geDialogSection";if(q&&null!=b.pages){null!=g?(c.setAttribute("checked",+"geLinkDialogOption");var f=null!=k&&"data:action/json,"==k.substring(0,17)?k:null,l=document.createElement("input");l.setAttribute("placeholder",mxResources.get("dragUrlsHere"));l.setAttribute("type","text");l.style.flex="1";l.style.minWidth="0";var n=document.createElement("div");n.setAttribute("title",mxResources.get("reset"));n.style.backgroundImage="url("+Editor.crossImage+")";n.className="geAdaptiveAsset";n.style.width="12px";n.style.height="14px";n.style.cursor="pointer";n.style.flexShrink=+"0";n.style.marginLeft="-20px";n.style.marginRight="8px";mxEvent.addListener(n,"click",function(){l.value="";l.focus()});var r=document.createElement("select");r.style.flex="1";r.style.minWidth="0";r.style.marginLeft="0";var t=document.createElement("input");t.setAttribute("type","checkbox");null!=x&&(t.setAttribute("checked","checked"),t.defaultChecked=!0);x=null!=x?x:"_blank";t.setAttribute("title",x);J=document.createElement("div");J.className="geDialogSection";if(q&&null!=b.pages){null!=f?(c.setAttribute("checked","checked"),c.defaultChecked=!0):null!=k&&Graph.isPageLink(k)?(D.setAttribute("checked","checked"),D.defaultChecked=!0):(l.setAttribute("value",k),H.setAttribute("checked","checked"),H.defaultChecked=!0);q=document.createElement("div");q.className="geDialogCheckRow";q.appendChild(H);q.appendChild(l);q.appendChild(n);u&&(u=document.createElement("label"),u.style.display="flex",u.style.alignItems="center",u.style.gap="4px",u.style.marginLeft="8px",u.style.whiteSpace="nowrap",u.style.fontSize="13px",u.appendChild(t),mxUtils.write(u,mxResources.get("openInNewWindow")),q.appendChild(u));J.appendChild(q);u=!1;for(q=0;q<b.pages.length;q++)n=document.createElement("option"),mxUtils.write(n,b.pages[q].getName()||mxResources.get("pageWithNumber",[q+1])),n.setAttribute("value","data:page/id,"+b.pages[q].getId()),k==n.getAttribute("value")&&(n.setAttribute("selected","selected"),u=!0),r.appendChild(n);if(!u&&D.checked){var v=document.createElement("option");mxUtils.write(v,mxResources.get("pageNotFound"));v.setAttribute("disabled","disabled");v.setAttribute("selected","selected");v.setAttribute("value","pageNotFound");r.appendChild(v);mxEvent.addListener(r,"change",function(){null==v.parentNode||v.selected||v.parentNode.removeChild(v)})}u=document.createElement("div");u.className="geDialogCheckRow";u.style.marginTop="6px";u.appendChild(D);u.appendChild(r);J.appendChild(u);u=document.createElement("div");u.className="geDialogCheckRow";u.style.marginTop="6px";u.appendChild(c);var B=document.createElement("span");-B.style.cssText="flex:1;min-width:0;font-size:13px;line-height:1.5;color:light-dark(var(--strong-text-color), var(--dark-strong-text-color));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:8px";var E=mxUtils.button("",function(){c.checked=!0;LinkDialog.editCustomAction(b,g,function(M){g=M;f(M,LinkDialog.selectedDocs,t.checked?x:null)})});E.className="geBtn";(function(){B.textContent="";if(null==g)mxUtils.write(B,mxResources.get("action")),E.textContent=mxResources.get("insert");-else{E.textContent=mxResources.get("edit");try{var M=JSON.parse(g.substring(17));if("string"==typeof M.title&&""!=M.title.trim())var O=M.title.trim();else{var U=0<(null!=M.actions?M.actions.length:0)?Object.keys(M.actions[0])[0]:"";if("animation"==U&&null!=M.actions[0].animation.steps){var T=M.actions[0].animation.steps.length;O=mxResources.get("effects")+" ("+T+")"}else if(""!=U){var V=null!=CustomActionDialog?CustomActionDialog.SCHEMAS[U]:null;O=mxResources.get(null!=V&&V.labelKey?V.labelKey:U,-null,null!=V?V.label:U)}else O=mxResources.get("action")}mxUtils.write(B,O)}catch(fa){mxUtils.write(B,"("+mxResources.get("invalid")+")")}}})();u.appendChild(B);E.style.marginLeft="8px";u.appendChild(E);J.appendChild(u)}else l.setAttribute("value",k),q=document.createElement("div"),q.className="geDialogFormRow",q.appendChild(l),q.appendChild(n),J.appendChild(q);F.appendChild(J);var K=mxUtils.button(m,function(){b.hideDialog();f(c.checked?null!=g?g:k:D.checked?"pageNotFound"!==r.value?r.value:k:l.value,+B.style.cssText="flex:1;min-width:0;font-size:13px;line-height:1.5;color:light-dark(var(--strong-text-color), var(--dark-strong-text-color));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:8px";var E=mxUtils.button("",function(){c.checked=!0;LinkDialog.editCustomAction(b,f,function(M){f=M;g(M,LinkDialog.selectedDocs,t.checked?x:null)})});E.className="geBtn";(function(){B.textContent="";if(null==f)mxUtils.write(B,mxResources.get("action")),E.textContent=mxResources.get("insert");+else{E.textContent=mxResources.get("edit");try{var M=JSON.parse(f.substring(17));if("string"==typeof M.title&&""!=M.title.trim())var O=M.title.trim();else{var U=0<(null!=M.actions?M.actions.length:0)?Object.keys(M.actions[0])[0]:"";if("animation"==U&&null!=M.actions[0].animation.steps){var T=M.actions[0].animation.steps.length;O=mxResources.get("effects")+" ("+T+")"}else if(""!=U){var V=null!=CustomActionDialog?CustomActionDialog.SCHEMAS[U]:null;O=mxResources.get(null!=V&&V.labelKey?V.labelKey:U,+null,null!=V?V.label:U)}else O=mxResources.get("action")}mxUtils.write(B,O)}catch(fa){mxUtils.write(B,"("+mxResources.get("invalid")+")")}}})();u.appendChild(B);E.style.marginLeft="8px";u.appendChild(E);J.appendChild(u)}else l.setAttribute("value",k),q=document.createElement("div"),q.className="geDialogFormRow",q.appendChild(l),q.appendChild(n),J.appendChild(q);F.appendChild(J);var K=mxUtils.button(m,function(){b.hideDialog();g(c.checked?null!=f?f:k:D.checked?"pageNotFound"!==r.value?r.value:k:l.value,LinkDialog.selectedDocs,t.checked?x:null)});K.style.verticalAlign="middle";K.className="geBtn gePrimaryBtn";this.init=function(){D.checked?r.focus():(l.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?l.select():document.execCommand("selectAll",!1,null));mxEvent.addListener(r,"focus",function(){H.removeAttribute("checked");D.setAttribute("checked","checked");D.checked=!0});mxEvent.addListener(l,"focus",function(){D.removeAttribute("checked");H.setAttribute("checked","checked");H.checked=!0});if(Graph.fileSupport&&null!=F.parentNode){var M=F.parentNode,O=null;mxEvent.addListener(M,"dragleave",function(U){null!=O&&(O.parentNode.removeChild(O),O=null);U.stopPropagation();U.preventDefault()});mxEvent.addListener(M,"dragover",mxUtils.bind(this,function(U){null==O&&(O=b.highlightElement(M));U.stopPropagation();U.preventDefault()}));mxEvent.addListener(M,"drop",mxUtils.bind(this,function(U){try{null!=O&&(O.parentNode.removeChild(O),O=null),0<=mxUtils.indexOf(U.dataTransfer.types,"text/uri-list")&&(l.value=decodeURIComponent(U.dataTransfer.getData("text/uri-list")),H.setAttribute("checked","checked"),H.checked=!0,K.click())}catch(T){b.handleError(T)}U.stopPropagation();U.preventDefault()}),!1)}};m=document.createElement("div");m.style.marginTop="34px";m.style.textAlign="right";b.isOffline()||m.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/custom-links"));J=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});J.style.verticalAlign="middle";J.className="geBtn";@@ -13215,32 +13300,32 @@ LinkDialog.editCustomAction=function(b,k,m){b.hideDialog();null!=b.actionWindow&var ANIMATION_HELP_URL="https://www.drawio.com/docs/manual/links-tooltips-tags/animations-custom-actions/",SELECTOR_ICONS={arrowDown:'<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M8 2v8M4.5 6.5L8 10l3.5-3.5M3 13h10"/></svg>',target:'<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="8" cy="8" r="5"/><circle cx="8" cy="8" r="1.5" fill="currentColor" stroke="none"/><path d="M8 1.5v2M8 12.5v2M1.5 8h2M12.5 8h2"/></svg>',asterisk:'<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" aria-hidden="true"><path d="M8 3.5v9M4 5.5l8 5M4 10.5l8-5"/></svg>'};function installCustomActionStyles(){if(!installCustomActionStyles._done){installCustomActionStyles._done=!0;var b=document.createElement("style");b.setAttribute("data-source","customActionDialog");b.textContent='.geSelField{display:inline-flex;align-items:center;gap:6px;font:12px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}.geSelFieldLabel{color:light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));font-weight:500;letter-spacing:0.01em}.geSelChip{display:inline-flex;align-items:center;gap:4px;min-height:24px;padding:2px 10px;border-radius:999px;border:1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));background:light-dark(var(--soft-color), var(--dark-card-color));color:light-dark(var(--strong-text-color), var(--dark-strong-text-color));font:inherit;font-weight:500;flex:0 0 auto;max-width:100%;white-space:nowrap;user-select:none;transition:background-color .15s,border-color .15s,box-shadow .15s}.geSelChipReadOnly{cursor:default}button.geSelChip,a.geSelChip{cursor:pointer}button.geSelChip:hover,a.geSelChip:hover{background:light-dark(var(--soft-hover-color), var(--dark-soft-hover-color));border-color:light-dark(var(--strong-border-color), var(--dark-strong-border-color))}button.geSelChip:focus-visible{outline:2px solid light-dark(var(--focus-color), var(--dark-focus-color));outline-offset:1px}.geSelChipEmpty{color:light-dark(var(--faint-text-color), var(--dark-faint-text-color));border-style:dashed;background:transparent}.geSelChipAll{background:light-dark(var(--mention-background-color), var(--dark-mention-background-color));border-color:light-dark(#a3c4f8,#2a5aa8);color:light-dark(var(--mention-color), var(--dark-mention-color))}.geSelChipTags{padding:2px 6px;gap:3px}.geSelChipExpandable::after{content:"";display:inline-block;width:5px;height:5px;margin-left:6px;border:solid currentColor;border-width:0 1.4px 1.4px 0;transform:translateY(-2px) rotate(45deg);opacity:.55}.geSelIconBtn{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border-radius:6px;border:1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));background:light-dark(var(--field-color), var(--dark-field-color));color:light-dark(var(--text-color), var(--dark-text-color));cursor:pointer;transition:background-color .15s,border-color .15s,color .15s}.geSelIconBtn:hover{background:light-dark(var(--soft-color), var(--dark-card-color));border-color:light-dark(var(--strong-border-color), var(--dark-strong-border-color));color:light-dark(var(--focus-color), var(--dark-focus-color))}.geSelIconBtn:focus-visible{outline:2px solid light-dark(var(--focus-color), var(--dark-focus-color));outline-offset:1px}.geSelIconBtn:active{background:light-dark(var(--inactive-color), var(--dark-soft-color))}.geSelIconBtnActive{background:light-dark(var(--focus-color), var(--dark-focus-color));border-color:light-dark(var(--focus-color), var(--dark-focus-color));color:#ffffff}.geSelIconBtnActive:hover{background:light-dark(#0062c4,#1a90ff);border-color:light-dark(#0062c4,#1a90ff);color:#ffffff}.geSelIconBtn svg{display:block}.geTagPicker{position:fixed;z-index:10000;min-width:220px;max-width:300px;background:light-dark(var(--field-color), var(--dark-field-color));border:1px solid light-dark(#d0d0d0,#505050);border-radius:12px;box-shadow:0 4px 16px rgba(0,0,0,0.15);font:12px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:light-dark(var(--strong-text-color), var(--dark-strong-text-color));opacity:0;transform:scale(0);transition:transform .2s cubic-bezier(0.34,1.56,0.64,1),opacity .1s ease-out}.geTagPickerOpen{opacity:1;transform:scale(1)}.geTagPickerArrow{position:absolute;top:-7px;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid light-dark(var(--field-border-color), var(--dark-field-border-color));pointer-events:none}.geTagPickerArrow::after{content:"";position:absolute;top:1px;left:-6px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid light-dark(var(--field-color), var(--dark-field-color))}.geTagPickerArrowBottom{top:auto;bottom:-7px;border-bottom:none;border-top:7px solid light-dark(var(--field-border-color), var(--dark-field-border-color))}.geTagPickerArrowBottom::after{top:auto;bottom:1px;border-bottom:none;border-top:6px solid light-dark(var(--field-color), var(--dark-field-color))}.geTagPickerHeader{padding:10px 14px 6px;font-weight:600;color:light-dark(var(--strong-text-color), var(--dark-strong-text-color));font-size:12px;letter-spacing:.02em;text-transform:uppercase;opacity:.8}.geTagPickerEmpty{padding:14px 18px;color:light-dark(var(--faint-text-color), var(--dark-faint-text-color));font-style:italic;text-align:center}.geTagPickerFooter{padding:4px;border-top:1px solid light-dark(var(--inactive-color), var(--dark-soft-color))}.geTagPickerModeBar{display:flex;align-items:center;gap:6px;padding:6px 10px 4px}.geTagPickerModeLabel{font-size:11px;font-weight:500;color:light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));margin-right:4px}.geTagPickerModeBtn{padding:2px 10px;border-radius:999px;font:inherit;font-size:11px;font-weight:500;cursor:pointer;border:1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));background:transparent;color:light-dark(var(--text-color), var(--dark-text-color));transition:background-color .12s,color .12s,border-color .12s}.geTagPickerModeBtn:hover{background:light-dark(var(--soft-hover-color), var(--dark-card-color))}.geTagPickerModeBtnActive{background:light-dark(var(--focus-color), var(--dark-focus-color));border-color:light-dark(var(--focus-color), var(--dark-focus-color));color:#ffffff}.geTagPickerModeBtnActive:hover{background:light-dark(#0062c4,#1a90ff);border-color:light-dark(#0062c4,#1a90ff)}.geTagPickerCloud{display:flex;flex-wrap:wrap;gap:6px;padding:8px 10px 12px;max-height:320px;overflow:auto;max-width:320px}.geTagCloudPill{display:inline-block;padding:3px 10px;border-radius:999px;cursor:pointer;font:inherit;font-size:11px;font-weight:500;line-height:1.4;background:light-dark(var(--inactive-color), var(--dark-field-border-color));color:light-dark(var(--text-color), var(--dark-text-color));border:1px solid transparent;white-space:nowrap;transition:background-color .12s,color .12s,border-color .12s}.geTagCloudPill:hover{background:light-dark(#d5d5da,#5a5a5e)}.geTagCloudPillActive{background:light-dark(#d4f0db,#1c4530);color:light-dark(#1f7a3e,#86e0a3);border-color:light-dark(#a8e0b8,#2d6849)}.geTagCloudPillActive:hover{background:light-dark(#c4e8ce,#235c3d)}.geLayerPickerList{display:flex;flex-direction:column;gap:2px;padding:6px 6px 10px;max-height:320px;overflow:auto;min-width:220px}.geLayerPickerRow{display:flex;align-items:center;gap:8px;padding:5px 8px;border-radius:6px;cursor:pointer;font:inherit;font-size:12px;color:light-dark(var(--strong-text-color), var(--dark-strong-text-color));transition:background-color .1s}.geLayerPickerRow:hover{background:light-dark(var(--soft-hover-color), var(--dark-card-color))}.geLayerPickerRow input[type="checkbox"]{margin:0;flex:0 0 auto}.geLayerPickerRowLabel{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}option.geDeleteOpt{color:light-dark(#d70015,#ff453a);font-weight:500}.geNoSpin{-moz-appearance:textfield;flex:0 0 60px;width:60px;max-width:60px;box-sizing:border-box}.geNoSpin::-webkit-outer-spin-button,.geNoSpin::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.geActionMenuList{padding:4px;min-width:180px}.geActionMenuItem{display:block;width:100%;padding:6px 12px;background:none;border:0;border-radius:6px;text-align:left;font:inherit;font-size:13px;cursor:pointer;color:light-dark(var(--strong-text-color), var(--dark-strong-text-color));transition:background-color .1s}.geActionMenuItem:hover{background:light-dark(var(--soft-hover-color), var(--dark-card-color))}.geActionMenuItemActive{color:light-dark(var(--focus-color), var(--dark-focus-color));font-weight:600}.geActionMenuItemDanger{color:light-dark(#d70015,#ff453a)}.geActionMenuItemDanger:hover{background:light-dark(#fdf0f0,#3a2020)}.geActionMenuItemDisabled{color:light-dark(#aeaeb2,#636366);cursor:default;pointer-events:none}.geActionMenuSeparator{height:1px;margin:4px 6px;background:light-dark(var(--inactive-color), var(--dark-soft-color))}.geAnimationStepActive{background:light-dark(color-mix(in srgb, var(--focus-color) 10%, transparent), color-mix(in srgb, var(--dark-focus-color) 18%, transparent))}.geAnimationStepSelected{background:light-dark(color-mix(in srgb, var(--focus-color) 6%, transparent), color-mix(in srgb, var(--dark-focus-color) 10%, transparent))}.geAnimationStepActive.geAnimationStepSelected{background:light-dark(color-mix(in srgb, var(--focus-color) 16%, transparent), color-mix(in srgb, var(--dark-focus-color) 28%, transparent))}';document.head.appendChild(b)}}-function installDialogDocking(b,k){var m=EditorUi.windowed;EditorUi.windowed=!0;try{b.installResizeHandler(k,!0)}finally{EditorUi.windowed=m}}function containDragEvents(b){for(var k="dragstart dragenter dragover dragleave drop dragend".split(" "),m=0;m<k.length;m++)b.addEventListener(k[m],function(f){f.stopPropagation()})}-var SelectorChips={create:function(b,k){function m(z,F,J,H,D){for(var c=(Array.isArray(F())?F():[]).slice(),g="function"==typeof b.getAllTags?b.getAllTags():[],l=0;l<c.length;l++)0>g.indexOf(c[l])&&g.push(c[l]);g.sort();F=document.createElement("div");if(0==g.length)g=document.createElement("div"),g.className="geTagPickerEmpty",mxUtils.write(g,mxResources.get("noTagsInDiagram",null,"No tags in this diagram yet.")),F.appendChild(g);else{var n="function"==typeof H?H()||"and":null;if("function"==typeof D){H=+function installDialogDocking(b,k){var m=EditorUi.windowed;EditorUi.windowed=!0;try{b.installResizeHandler(k,!0)}finally{EditorUi.windowed=m}}function containDragEvents(b){for(var k="dragstart dragenter dragover dragleave drop dragend".split(" "),m=0;m<k.length;m++)b.addEventListener(k[m],function(g){g.stopPropagation()})}+var SelectorChips={create:function(b,k){function m(z,F,J,H,D){for(var c=(Array.isArray(F())?F():[]).slice(),f="function"==typeof b.getAllTags?b.getAllTags():[],l=0;l<c.length;l++)0>f.indexOf(c[l])&&f.push(c[l]);f.sort();F=document.createElement("div");if(0==f.length)f=document.createElement("div"),f.className="geTagPickerEmpty",mxUtils.write(f,mxResources.get("noTagsInDiagram",null,"No tags in this diagram yet.")),F.appendChild(f);else{var n="function"==typeof H?H()||"and":null;if("function"==typeof D){H=document.createElement("div");H.className="geTagPickerModeBar";l=document.createElement("span");l.className="geTagPickerModeLabel";mxUtils.write(l,mxResources.get("match")+":");H.appendChild(l);var r=document.createElement("button");r.type="button";r.className="geTagPickerModeBtn";mxUtils.write(r,mxResources.get("matchAll"));r.title=mxResources.get("matchAllHint",null,"Match cells that have every selected tag (AND)");var t=document.createElement("button");t.type="button";t.className="geTagPickerModeBtn";mxUtils.write(t,mxResources.get("matchAny"));t.title=mxResources.get("matchAnyHint",null,"Match cells that have at least one selected tag (OR)");var v=function(){r.classList.toggle("geTagPickerModeBtnActive","and"===n);t.classList.toggle("geTagPickerModeBtnActive","or"===n)};v();r.addEventListener("click",function(M){M.preventDefault();n="and";D("and");v()});t.addEventListener("click",function(M){M.preventDefault();n="or";D("or");v()});H.appendChild(r);H.appendChild(t);F.appendChild(H)}var B=document.createElement("div");-B.className="geTagPickerCloud";var E=[];for(l=0;l<g.length;l++)(function(M){var O=document.createElement("button");O.type="button";O.className="geTagCloudPill";O.title=M;O.textContent=M;var U=function(){O.classList.toggle("geTagCloudPillActive",0<=c.indexOf(M))};U();E.push(U);O.addEventListener("click",function(T){T.preventDefault();T=c.indexOf(M);0<=T?c.splice(T,1):c.push(M);J(c.slice());U();R()});B.appendChild(O)})(g[l]);F.appendChild(B);g=document.createElement("div");g.className="geTagPickerFooter";-var K=document.createElement("button");K.type="button";K.className="geActionMenuItem";mxUtils.write(K,mxResources.get("selectCellsInDiagram",null,"Select cells in diagram"));K.addEventListener("click",function(M){M.preventDefault();0!=c.length&&(M="function"==typeof b.getCellsForTags?b.getCellsForTags(c,null,null,!0,n):[],0<M.length?b.setSelectionCells(M):b.clearSelection())});g.appendChild(K);var C=document.createElement("button");C.type="button";C.className="geActionMenuItem geActionMenuItemDanger";-mxUtils.write(C,mxResources.get("reset"));C.addEventListener("click",function(M){M.preventDefault();c=[];J([]);for(M=0;M<E.length;M++)E[M]();R()});g.appendChild(C);F.appendChild(g);var R=function(){var M=0==c.length;K.classList.toggle("geActionMenuItemDisabled",M);K.disabled=M;C.classList.toggle("geActionMenuItemDisabled",M);C.disabled=M};R()}u(z,mxResources.get("tags"),F)}function f(){for(var z=b.getModel(),F=z.getRoot(),J=z.getChildCount(F),H=[],D=0;D<J;D++){var c=z.getChildAt(F,D);if(null!=c){var g=-b.convertValueToString(c);if(null==g||""===g)g=0==D?mxResources.get("background",null,"Background"):mxResources.get("untitledLayer",null,"Untitled Layer");H.push({id:c.id,name:g,cell:c})}}return H}function q(z,F,J){var H=(Array.isArray(F())?F():[]).slice(),D=f();F=document.createElement("div");var c=document.createElement("div");c.className="geLayerPickerList";for(var g=[],l=0;l<D.length;l++)(function(v){var B=document.createElement("label");B.className="geLayerPickerRow";B.title=v.name;var E=document.createElement("input");-E.type="checkbox";E.checked=0<=H.indexOf(v.id);B.appendChild(E);var K=document.createElement("span");K.className="geLayerPickerRowLabel";mxUtils.write(K,v.name);B.appendChild(K);g.push(function(){E.checked=0<=H.indexOf(v.id)});E.addEventListener("change",function(){var C=H.indexOf(v.id);E.checked&&0>C?H.push(v.id):!E.checked&&0<=C&&H.splice(C,1);J(H.slice());t()});c.appendChild(B)})(D[l]);F.appendChild(c);D=document.createElement("div");D.className="geTagPickerFooter";var n=document.createElement("button");+B.className="geTagPickerCloud";var E=[];for(l=0;l<f.length;l++)(function(M){var O=document.createElement("button");O.type="button";O.className="geTagCloudPill";O.title=M;O.textContent=M;var U=function(){O.classList.toggle("geTagCloudPillActive",0<=c.indexOf(M))};U();E.push(U);O.addEventListener("click",function(T){T.preventDefault();T=c.indexOf(M);0<=T?c.splice(T,1):c.push(M);J(c.slice());U();R()});B.appendChild(O)})(f[l]);F.appendChild(B);f=document.createElement("div");f.className="geTagPickerFooter";+var K=document.createElement("button");K.type="button";K.className="geActionMenuItem";mxUtils.write(K,mxResources.get("selectCellsInDiagram",null,"Select cells in diagram"));K.addEventListener("click",function(M){M.preventDefault();0!=c.length&&(M="function"==typeof b.getCellsForTags?b.getCellsForTags(c,null,null,!0,n):[],0<M.length?b.setSelectionCells(M):b.clearSelection())});f.appendChild(K);var C=document.createElement("button");C.type="button";C.className="geActionMenuItem geActionMenuItemDanger";+mxUtils.write(C,mxResources.get("reset"));C.addEventListener("click",function(M){M.preventDefault();c=[];J([]);for(M=0;M<E.length;M++)E[M]();R()});f.appendChild(C);F.appendChild(f);var R=function(){var M=0==c.length;K.classList.toggle("geActionMenuItemDisabled",M);K.disabled=M;C.classList.toggle("geActionMenuItemDisabled",M);C.disabled=M};R()}u(z,mxResources.get("tags"),F)}function g(){for(var z=b.getModel(),F=z.getRoot(),J=z.getChildCount(F),H=[],D=0;D<J;D++){var c=z.getChildAt(F,D);if(null!=c){var f=+b.convertValueToString(c);if(null==f||""===f)f=0==D?mxResources.get("background",null,"Background"):mxResources.get("untitledLayer",null,"Untitled Layer");H.push({id:c.id,name:f,cell:c})}}return H}function q(z,F,J){var H=(Array.isArray(F())?F():[]).slice(),D=g();F=document.createElement("div");var c=document.createElement("div");c.className="geLayerPickerList";for(var f=[],l=0;l<D.length;l++)(function(v){var B=document.createElement("label");B.className="geLayerPickerRow";B.title=v.name;var E=document.createElement("input");+E.type="checkbox";E.checked=0<=H.indexOf(v.id);B.appendChild(E);var K=document.createElement("span");K.className="geLayerPickerRowLabel";mxUtils.write(K,v.name);B.appendChild(K);f.push(function(){E.checked=0<=H.indexOf(v.id)});E.addEventListener("change",function(){var C=H.indexOf(v.id);E.checked&&0>C?H.push(v.id):!E.checked&&0<=C&&H.splice(C,1);J(H.slice());t()});c.appendChild(B)})(D[l]);F.appendChild(c);D=document.createElement("div");D.className="geTagPickerFooter";var n=document.createElement("button");n.type="button";n.className="geActionMenuItem";mxUtils.write(n,mxResources.get("selectCellsInDiagram",null,"Select cells in diagram"));n.addEventListener("click",function(v){v.preventDefault();0!=H.length&&(v="function"==typeof b.getCellsForLayers?b.getCellsForLayers(H):[],0<v.length?b.setSelectionCells(v):b.clearSelection())});D.appendChild(n);var r=document.createElement("button");r.type="button";r.className="geActionMenuItem geActionMenuItemDanger";mxUtils.write(r,mxResources.get("reset"));r.addEventListener("click",-function(v){v.preventDefault();H=[];J([]);for(v=0;v<g.length;v++)g[v]();t()});D.appendChild(r);F.appendChild(D);var t=function(){var v=0==H.length;n.classList.toggle("geActionMenuItemDisabled",v);n.disabled=v;r.classList.toggle("geActionMenuItemDisabled",v);r.disabled=v};t();u(z,mxResources.get("selectLayers"),F)}function u(z,F,J){function H(){document.removeEventListener("mousedown",D,!0);window.removeEventListener("resize",H);window.removeEventListener("scroll",H,!0);c.parentNode&&c.parentNode.removeChild(c);-u._open===v&&(u._open=null)}function D(B){c.contains(B.target)||z.contains(B.target)||null!=b.container&&b.container.contains(B.target)||H()}null!=u._open&&u._open.close();var c=document.createElement("div");c.className="geTagPicker";var g=document.createElement("div");g.className="geTagPickerArrow";c.appendChild(g);if(F){var l=document.createElement("div");l.className="geTagPickerHeader";mxUtils.write(l,F);c.appendChild(l)}c.appendChild(J);document.body.appendChild(c);l=z.getBoundingClientRect();-var n=c.offsetWidth;F=c.offsetHeight;var r=l.bottom+6;J=!1;r+F>window.innerHeight-12&&(r=Math.max(8,l.top-F-6),g.classList.add("geTagPickerArrowBottom"),J=!0);var t=l.left;t+n>window.innerWidth-8&&(t=Math.max(8,window.innerWidth-n-8));c.style.top=r+"px";c.style.left=t+"px";l=Math.min(n-24,Math.max(12,l.left+l.width/2-t-6));g.style.left=l+"px";c.style.transformOrigin=l+6+"px "+(J?F+"px":"0px");requestAnimationFrame(function(){c.classList.add("geTagPickerOpen")});document.addEventListener("mousedown",+function(v){v.preventDefault();H=[];J([]);for(v=0;v<f.length;v++)f[v]();t()});D.appendChild(r);F.appendChild(D);var t=function(){var v=0==H.length;n.classList.toggle("geActionMenuItemDisabled",v);n.disabled=v;r.classList.toggle("geActionMenuItemDisabled",v);r.disabled=v};t();u(z,mxResources.get("selectLayers"),F)}function u(z,F,J){function H(){document.removeEventListener("mousedown",D,!0);window.removeEventListener("resize",H);window.removeEventListener("scroll",H,!0);c.parentNode&&c.parentNode.removeChild(c);+u._open===v&&(u._open=null)}function D(B){c.contains(B.target)||z.contains(B.target)||null!=b.container&&b.container.contains(B.target)||H()}null!=u._open&&u._open.close();var c=document.createElement("div");c.className="geTagPicker";var f=document.createElement("div");f.className="geTagPickerArrow";c.appendChild(f);if(F){var l=document.createElement("div");l.className="geTagPickerHeader";mxUtils.write(l,F);c.appendChild(l)}c.appendChild(J);document.body.appendChild(c);l=z.getBoundingClientRect();+var n=c.offsetWidth;F=c.offsetHeight;var r=l.bottom+6;J=!1;r+F>window.innerHeight-12&&(r=Math.max(8,l.top-F-6),f.classList.add("geTagPickerArrowBottom"),J=!0);var t=l.left;t+n>window.innerWidth-8&&(t=Math.max(8,window.innerWidth-n-8));c.style.top=r+"px";c.style.left=t+"px";l=Math.min(n-24,Math.max(12,l.left+l.width/2-t-6));f.style.left=l+"px";c.style.transformOrigin=l+6+"px "+(J?F+"px":"0px");requestAnimationFrame(function(){c.classList.add("geTagPickerOpen")});document.addEventListener("mousedown",D,!0);window.addEventListener("resize",H);window.addEventListener("scroll",H,!0);var v={close:H,anchor:z};return u._open=v}function x(z,F){var J=document.createElement("div");J.className="geActionMenuList";for(var H=[],D,c=0;c<F.length;c++)(function(n){if(n.separator){var r=document.createElement("div");r.className="geActionMenuSeparator";J.appendChild(r)}else{var t=document.createElement("button");t.type="button";t.className="geActionMenuItem";n.danger&&t.classList.add("geActionMenuItemDanger");-n.active&&t.classList.add("geActionMenuItemActive");var v=function(){return"function"==typeof n.disabled?!!n.disabled():!!n.disabled};r=function(){var B=v();t.classList.toggle("geActionMenuItemDisabled",B);t.disabled=B};r();H.push(r);mxUtils.write(t,n.label);t.addEventListener("click",function(B){B.preventDefault();v()||(D&&D.close(),n.onClick(z))});J.appendChild(t)}})(F[c]);D=u(z,null,J);var g=function(){for(var n=0;n<H.length;n++)H[n]()};b.getSelectionModel().addListener(mxEvent.CHANGE,g);var l=-D.close;D.close=function(){b.getSelectionModel().removeListener(g);l()};return D}installCustomActionStyles();return{cellListField:function(z,F,J,H){H=H||{};var D=H.singularKey||"cell",c=H.pluralKey||"cells",g=H.singularFallback||"cell",l=H.pluralFallback||"cells",n=H.emptyKey||"select",r=H.emptyFallback||"Select",t=document.createElement("div");t.className="geSelField";if(z){var v=document.createElement("span");v.className="geSelFieldLabel";mxUtils.write(v,z);t.appendChild(v)}var B=document.createElement("button");+n.active&&t.classList.add("geActionMenuItemActive");var v=function(){return"function"==typeof n.disabled?!!n.disabled():!!n.disabled};r=function(){var B=v();t.classList.toggle("geActionMenuItemDisabled",B);t.disabled=B};r();H.push(r);mxUtils.write(t,n.label);t.addEventListener("click",function(B){B.preventDefault();v()||(D&&D.close(),n.onClick(z))});J.appendChild(t)}})(F[c]);D=u(z,null,J);var f=function(){for(var n=0;n<H.length;n++)H[n]()};b.getSelectionModel().addListener(mxEvent.CHANGE,f);var l=+D.close;D.close=function(){b.getSelectionModel().removeListener(f);l()};return D}installCustomActionStyles();return{cellListField:function(z,F,J,H){H=H||{};var D=H.singularKey||"cell",c=H.pluralKey||"cells",f=H.singularFallback||"cell",l=H.pluralFallback||"cells",n=H.emptyKey||"select",r=H.emptyFallback||"Select",t=document.createElement("div");t.className="geSelField";if(z){var v=document.createElement("span");v.className="geSelFieldLabel";mxUtils.write(v,z);t.appendChild(v)}var B=document.createElement("button");B.type="button";B.className="geSelChip geSelChipExpandable";var E=null,K=function(){var M=F();return Array.isArray(M)&&1==M.length&&"*"===M[0]},C=function(){var M=F();return Array.isArray(M)&&0<M.length},R=function(){var M=F(),O=Array.isArray(M)&&!K()?M.length:0;B.textContent="";B.classList.remove("geSelChipEmpty","geSelChipAll");B.title="";K()?(B.classList.add("geSelChipAll"),mxUtils.write(B,mxResources.get("allCells"))):0==O?(B.classList.add("geSelChipEmpty"),mxUtils.write(B,mxResources.get(n,null,-r))):(mxUtils.write(B,O+" "+(1==O?mxResources.get(D,null,g):mxResources.get(c,null,l))),B.title=M.join("\n"))};B.addEventListener("click",function(M){M.preventDefault();if(null!=u._open&&u._open.anchor===B)u._open.close();else{M=[];M.push({label:mxResources.get("useSelection"),disabled:function(){return 0==b.getSelectionCount()},onClick:function(){var U=b.getSelectionCells();0!=U.length&&(J(U.map(function(T){return T.id})),R())}});H.allowWildcard&&M.push({label:mxResources.get("allCells"),active:K(),+r))):(mxUtils.write(B,O+" "+(1==O?mxResources.get(D,null,f):mxResources.get(c,null,l))),B.title=M.join("\n"))};B.addEventListener("click",function(M){M.preventDefault();if(null!=u._open&&u._open.anchor===B)u._open.close();else{M=[];M.push({label:mxResources.get("useSelection"),disabled:function(){return 0==b.getSelectionCount()},onClick:function(){var U=b.getSelectionCells();0!=U.length&&(J(U.map(function(T){return T.id})),R())}});H.allowWildcard&&M.push({label:mxResources.get("allCells"),active:K(),onClick:function(){if(K())J(E),E=null;else{var U=F();E=Array.isArray(U)?U.slice():null;J(["*"])}R()}});C()&&(M.push({label:mxResources.get("selectCellsInDiagram",null,"Select cells in diagram"),onClick:function(){for(var U=F(),T=[],V=0;V<U.length;V++){if("*"===U[V]){T=b.model.getDescendants(b.model.getRoot());break}var fa=b.model.getCell(U[V]);null!=fa&&T.push(fa)}0<T.length?b.setSelectionCells(T):b.clearSelection()}}),M.push({separator:!0}),M.push({label:mxResources.get("reset"),danger:!0,onClick:function(){J(null);-E=null;R()}}));if(Array.isArray(H.extraMenuItems)&&0<H.extraMenuItems.length){0<M.length&&!M[M.length-1].separator&&M.push({separator:!0});for(var O=0;O<H.extraMenuItems.length;O++)M.push(H.extraMenuItems[O])}x(B,M)}});t.appendChild(B);R();return t},tagListField:function(z,F,J,H){H=H||{};var D=document.createElement("div");D.className="geSelField";if(z){var c=document.createElement("span");c.className="geSelFieldLabel";mxUtils.write(c,z);D.appendChild(c)}var g=document.createElement("button");g.type=-"button";g.className="geSelChip geSelChipExpandable";var l=function(){var n=F(),r=Array.isArray(n)?n.length:0;g.textContent="";g.classList.remove("geSelChipEmpty");g.title="";0==r?(g.classList.add("geSelChipEmpty"),mxUtils.write(g,mxResources.get("tags"))):(mxUtils.write(g,r+" "+(1==r?mxResources.get("tag"):mxResources.get("tags"))),g.title=n.join("\n"))};g.addEventListener("click",function(n){n.preventDefault();null!=u._open&&u._open.anchor===g?u._open.close():m(g,F,function(r){J(r);l()},H.getMode,-H.setMode)});D.appendChild(g);l();return D},layerListField:function(z,F,J){var H=document.createElement("div");H.className="geSelField";if(z){var D=document.createElement("span");D.className="geSelFieldLabel";mxUtils.write(D,z);H.appendChild(D)}var c=document.createElement("button");c.type="button";c.className="geSelChip geSelChipExpandable";var g=function(){var l=F(),n=Array.isArray(l)?l.length:0;c.textContent="";c.classList.remove("geSelChipEmpty");c.title="";if(0==n)c.classList.add("geSelChipEmpty"),-mxUtils.write(c,mxResources.get("layers"));else{mxUtils.write(c,n+" "+(1==n?mxResources.get("layer"):mxResources.get("layers")));n=[];for(var r=b.getModel(),t=0;t<l.length;t++){var v=r.getCell(l[t]);null!=v?(v=b.convertValueToString(v),n.push(null!=v&&""!==v?v:l[t])):n.push(l[t])}c.title=n.join("\n")}};c.addEventListener("click",function(l){l.preventDefault();null!=u._open&&u._open.anchor===c?u._open.close():q(c,F,function(n){J(n);g()})});H.appendChild(c);g();return H},iconButton:function(z,F,J){var H=-document.createElement("button");H.type="button";H.title=F;H.className="geSelIconBtn";H.innerHTML=SELECTOR_ICONS[z];H.addEventListener("click",function(D){D.preventDefault();J(D)});return H},openTagPicker:m,openLayerPicker:q,closePopover:function(){null!=u._open&&u._open.close()}}}},CustomActionDialog=function(b,k,m){installCustomActionStyles();var f={steps:[]};if(null!=k&&"data:action/json,"==k.substring(0,17))try{var q=JSON.parse(k.substring(17));if(Array.isArray(q.actions)){k=[];for(var u=0;u<-q.actions.length;u++){var x=q.actions[u];if(x&&x.animation&&Array.isArray(x.animation.steps))for(var z=0;z<x.animation.steps.length;z++)k.push(x.animation.steps[z]);else k.push(x)}f.steps=k}"string"==typeof q.title&&""!==q.title&&(f.title=q.title)}catch(F){}q=mxSettings.getWindowState("customAction");x=null!=q&&null!=q.w?q.w:700;f=new AnimationDialog(b,null!=q&&null!=q.x?q.x:Math.max(40,(document.body.offsetWidth-x)/2),null!=q&&null!=q.y?q.y:80,x,null!=q&&null!=q.h?q.h:560,{kind:"action",showTitle:!0,-windowTitleKey:"action",windowTitleFallback:"Action",initial:f,save:function(F){var J={actions:F.steps};F.title&&(J.title=F.title);m("data:action/json,"+JSON.stringify(J))}});b.installWindowPersistence("customAction",f);null!=q&&(b.restoreWindowState("customAction",f),f.window.setVisible(!0));return f};+E=null;R()}}));if(Array.isArray(H.extraMenuItems)&&0<H.extraMenuItems.length){0<M.length&&!M[M.length-1].separator&&M.push({separator:!0});for(var O=0;O<H.extraMenuItems.length;O++)M.push(H.extraMenuItems[O])}x(B,M)}});t.appendChild(B);R();return t},tagListField:function(z,F,J,H){H=H||{};var D=document.createElement("div");D.className="geSelField";if(z){var c=document.createElement("span");c.className="geSelFieldLabel";mxUtils.write(c,z);D.appendChild(c)}var f=document.createElement("button");f.type=+"button";f.className="geSelChip geSelChipExpandable";var l=function(){var n=F(),r=Array.isArray(n)?n.length:0;f.textContent="";f.classList.remove("geSelChipEmpty");f.title="";0==r?(f.classList.add("geSelChipEmpty"),mxUtils.write(f,mxResources.get("tags"))):(mxUtils.write(f,r+" "+(1==r?mxResources.get("tag"):mxResources.get("tags"))),f.title=n.join("\n"))};f.addEventListener("click",function(n){n.preventDefault();null!=u._open&&u._open.anchor===f?u._open.close():m(f,F,function(r){J(r);l()},H.getMode,+H.setMode)});D.appendChild(f);l();return D},layerListField:function(z,F,J){var H=document.createElement("div");H.className="geSelField";if(z){var D=document.createElement("span");D.className="geSelFieldLabel";mxUtils.write(D,z);H.appendChild(D)}var c=document.createElement("button");c.type="button";c.className="geSelChip geSelChipExpandable";var f=function(){var l=F(),n=Array.isArray(l)?l.length:0;c.textContent="";c.classList.remove("geSelChipEmpty");c.title="";if(0==n)c.classList.add("geSelChipEmpty"),+mxUtils.write(c,mxResources.get("layers"));else{mxUtils.write(c,n+" "+(1==n?mxResources.get("layer"):mxResources.get("layers")));n=[];for(var r=b.getModel(),t=0;t<l.length;t++){var v=r.getCell(l[t]);null!=v?(v=b.convertValueToString(v),n.push(null!=v&&""!==v?v:l[t])):n.push(l[t])}c.title=n.join("\n")}};c.addEventListener("click",function(l){l.preventDefault();null!=u._open&&u._open.anchor===c?u._open.close():q(c,F,function(n){J(n);f()})});H.appendChild(c);f();return H},iconButton:function(z,F,J){var H=+document.createElement("button");H.type="button";H.title=F;H.className="geSelIconBtn";H.innerHTML=SELECTOR_ICONS[z];H.addEventListener("click",function(D){D.preventDefault();J(D)});return H},openTagPicker:m,openLayerPicker:q,closePopover:function(){null!=u._open&&u._open.close()}}}},CustomActionDialog=function(b,k,m){installCustomActionStyles();var g={steps:[]};if(null!=k&&"data:action/json,"==k.substring(0,17))try{var q=JSON.parse(k.substring(17));if(Array.isArray(q.actions)){k=[];for(var u=0;u<+q.actions.length;u++){var x=q.actions[u];if(x&&x.animation&&Array.isArray(x.animation.steps))for(var z=0;z<x.animation.steps.length;z++)k.push(x.animation.steps[z]);else k.push(x)}g.steps=k}"string"==typeof q.title&&""!==q.title&&(g.title=q.title)}catch(F){}q=mxSettings.getWindowState("customAction");x=null!=q&&null!=q.w?q.w:700;g=new AnimationDialog(b,null!=q&&null!=q.x?q.x:Math.max(40,(document.body.offsetWidth-x)/2),null!=q&&null!=q.y?q.y:80,x,null!=q&&null!=q.h?q.h:560,{kind:"action",showTitle:!0,+windowTitleKey:"action",windowTitleFallback:"Action",initial:g,save:function(F){var J={actions:F.steps};F.title&&(J.title=F.title);m("data:action/json,"+JSON.stringify(J))}});b.installWindowPersistence("customAction",g);null!=q&&(b.restoreWindowState("customAction",g),g.window.setVisible(!0));return g};CustomActionDialog.SCHEMAS={toggle:{label:"Toggle",icon:"⇄",selector:!0,allowLayers:!0},show:{label:"Show",icon:"✓",selector:!0,allowLayers:!0},hide:{label:"Hide",icon:"✗",selector:!0,allowLayers:!0},select:{label:"Select",icon:"☑",selector:!0,allowLayers:!0},scroll:{label:"Scroll To",icon:"↓",selector:!0,allowLayers:!0,fields:[{name:"border",type:"number",placeholder:"0",width:36,label:"",titleKey:"border",title:"Border"},{name:"smooth",type:"checkbox",labelKey:"transition",label:"Transition"}]},opacity:{label:"Set Opacity",icon:"◐",selector:!0,allowLayers:!0,fields:[{name:"value",type:"number",min:0,max:1,step:.1,def:"1",width:50,label:"",titleKey:"opacity",title:"Opacity"}]},fadeIn:{label:"Fade In",icon:"↗",selector:!0,allowLayers:!0,fields:[{name:"delay",type:"number",min:0,step:100,width:50,placeholder:"400",label:"ms",titleKey:"duration",title:"Duration (ms)"}]},fadeOut:{label:"Fade Out",icon:"↘",selector:!0,allowLayers:!0,fields:[{name:"delay",type:"number",min:0,step:100,width:50,placeholder:"400",label:"ms",titleKey:"duration",title:"Duration (ms)"}]},fadeTo:{label:"Fade To",icon:"◐",selector:!0,allowLayers:!0,fields:[{name:"value",type:"number",min:0,max:1,step:.1,def:"0.5",width:50,label:"",titleKey:"opacity",title:"Opacity"},{name:"delay",type:"number",min:0,step:100,width:50,placeholder:"400",label:"ms",titleKey:"duration",title:"Duration (ms)"}]},wipeIn:{label:"Wipe In",icon:"→",selector:!0,allowLayers:!0},wipeOut:{label:"Wipe Out",icon:"←",selector:!0,allowLayers:!0},@@ -13249,18 +13334,18 @@ titleKey:"opacity",title:"Opacity"}]},style:{label:"Set Style",icon:"\ud83c\udfalabel:"",title:"Default value"}]},flow:{label:"Flow",icon:"➡",selector:!0,allowLayers:!0,fields:[{name:"start",type:"select",options:[{value:"",label:"(toggle)"},{value:"true",label:"On"},{value:"false",label:"Off"}],label:""}]},wait:{label:"Wait",icon:"⏱",noSelector:!0,primary:{name:"value",type:"number",min:0,step:100,width:60,def:"1000",label:"ms",titleKey:"wait",title:"Wait"}},open:{label:"Open Link",icon:"\ud83d\udd17",noSelector:!0,primary:{name:"value",type:"text",placeholder:"https://… or data:page/id,…",label:"",title:"URL"}},viewbox:{label:"View",labelKey:"view",icon:"⊞",selector:!0,allowLayers:!0,fields:[{name:"x",type:"number",placeholder:"x",width:36,label:"",title:"X",staticOnly:!0},{name:"y",type:"number",placeholder:"y",width:36,label:"",title:"Y",staticOnly:!0},{name:"width",type:"number",placeholder:"w",width:36,label:"",titleKey:"width",title:"Width",staticOnly:!0},{name:"height",type:"number",placeholder:"h",width:36,label:"",titleKey:"height",title:"Height",staticOnly:!0},{name:"border",type:"number",placeholder:"b",width:36,label:"",titleKey:"border",title:"Border"},{name:"smooth",type:"checkbox",labelKey:"transition",label:"Transition"}]},tags:{label:"Toggle Tags",icon:"\ud83c\udff7",noSelector:!0,fields:[{name:"toggle",type:"tagList",labelKey:"toggle",label:"Toggle",modeField:"toggleMatch"},{name:"hidden",type:"tagList",labelKey:"hide",label:"Hide",modeField:"hiddenMatch"},{name:"visible",type:"tagList",labelKey:"show",label:"Show",modeField:"visibleMatch"}]}};-var RevisionDialog=function(b,k,m){var f=document.createElement("div"),q=document.createElement("h3");q.style.marginTop="3px";mxUtils.write(q,mxResources.get("revisionHistory"));f.appendChild(q);q=document.createElement("div");q.style.position="absolute";q.style.overflow="auto";q.style.width="170px";q.style.height="378px";f.appendChild(q);var u=document.createElement("div");u.style.position="absolute";u.style.left="200px";u.style.width="470px";u.style.height="376px";u.style.overflow="hidden";u.style.borderWidth=-"1px";u.style.borderStyle="solid";var x=document.createElement("div");x.style.position="absolute";x.style.display="none";x.style.textAlign="center";x.style.padding="8px";x.style.borderRadius="8px";x.style.left="50%";x.style.top="50%";x.style.whiteSpace="nowrap";x.style.transform="translate(-50%, -50%)";x.style.background="inherit";x.style.border="1px solid";u.appendChild(x);mxEvent.disableContextMenu(u);f.appendChild(u);var z=new Graph(u);z.setTooltips(!1);z.setEnabled(!1);z.setPanning(!0);z.panningHandler.ignoreCell=+var RevisionDialog=function(b,k,m){var g=document.createElement("div"),q=document.createElement("h3");q.style.marginTop="3px";mxUtils.write(q,mxResources.get("revisionHistory"));g.appendChild(q);q=document.createElement("div");q.style.position="absolute";q.style.overflow="auto";q.style.width="170px";q.style.height="378px";g.appendChild(q);var u=document.createElement("div");u.style.position="absolute";u.style.left="200px";u.style.width="470px";u.style.height="376px";u.style.overflow="hidden";u.style.borderWidth=+"1px";u.style.borderStyle="solid";var x=document.createElement("div");x.style.position="absolute";x.style.display="none";x.style.textAlign="center";x.style.padding="8px";x.style.borderRadius="8px";x.style.left="50%";x.style.top="50%";x.style.whiteSpace="nowrap";x.style.transform="translate(-50%, -50%)";x.style.background="inherit";x.style.border="1px solid";u.appendChild(x);mxEvent.disableContextMenu(u);g.appendChild(u);var z=new Graph(u);z.setTooltips(!1);z.setEnabled(!1);z.setPanning(!0);z.panningHandler.ignoreCell=!0;z.panningHandler.useLeftButtonForPanning=!0;z.minFitScale=null;z.maxFitScale=null;z.centerZoom=!0;var F=0,J=null,H=0,D=z.getGlobalVariable;z.getGlobalVariable=function(Y){return"page"==Y&&null!=J&&null!=J[H]?J[H].getAttribute("name"):"pagenumber"==Y?H+1:"pagecount"==Y?null!=J?J.length:1:D.apply(this,arguments)};z.getLinkForCell=function(){return null};for(var c=new Spinner({lines:11,length:15,width:6,radius:10,corners:1,rotate:0,direction:1,color:"light-dark(#000000, #C0C0C0)",speed:1.4,trail:60,-shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9,top:"50%",left:"50%"}),g=b.getCurrentFile(),l=b.getXmlFileData(!0,!1,!0).getElementsByTagName("diagram"),n={},r=0;r<l.length;r++)n[l[r].getAttribute("id")]=l[r];var t=null,v=null,B=null,E=null,K=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){null!=B&&z.zoomIn()},20);K.setAttribute("disabled","disabled");var C=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){null!=B&&z.zoomOut()},20);C.setAttribute("disabled",+shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9,top:"50%",left:"50%"}),f=b.getCurrentFile(),l=b.getXmlFileData(!0,!1,!0).getElementsByTagName("diagram"),n={},r=0;r<l.length;r++)n[l[r].getAttribute("id")]=l[r];var t=null,v=null,B=null,E=null,K=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){null!=B&&z.zoomIn()},20);K.setAttribute("disabled","disabled");var C=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){null!=B&&z.zoomOut()},20);C.setAttribute("disabled","disabled");var R=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){null!=B&&(1==z.view.scale?(z.maxFitScale=8,z.fit(8)):z.zoomActual(),z.center())},20);R.setAttribute("disabled","disabled");var M=b.createToolbarButton(Editor.compareImage,mxResources.get("compare"));M.setAttribute("disabled","disabled");var O=b.createToolbarButton(Editor.thinDataImage,mxResources.get("merge"));O.setAttribute("disabled","disabled");var U=u.cloneNode(!1);U.style.pointerEvent="none";u.parentNode.appendChild(U);var T=new Graph(U);T.setTooltips(!1);T.setEnabled(!1);T.setPanning(!0);T.panningHandler.ignoreCell=!0;T.panningHandler.useLeftButtonForPanning=!0;T.minFitScale=null;T.maxFitScale=null;T.centerZoom=!0;var V=document.createElement("div");V.style.textAlign="left";V.style.color="gray";V.style.backgroundColor="transparent";V.style.overflow="hidden";V.style.textOverflow="ellipsis";V.style.whiteSpace="nowrap";V.style.cursor="default";V.style.height="100%";V.style.display="inline-flex";V.style.alignItems="center";V.style.flexGrow="1";mxEvent.addListener(V,"click",function(){var Y=mxUtils.getTextContent(V);""!=Y&&b.alert(Y)});var fa=null;mxEvent.addGestureListeners(M,function(Y){try{var X=null!=J[F]?n[J[F].getAttribute("id")]:null;mxUtils.setOpacity(M,20);x.innerText="";if(null==X)x.style.display="inline-block",mxUtils.write(x,mxResources.get("pageNotFound"));else{fa=V.innerHTML;V.innerHTML=mxResources.get("current");u.style.display="none";U.style.display="";U.style.backgroundColor=u.style.backgroundColor;var ca=Editor.parseDiagramNode(X);(new mxCodec(ca.ownerDocument)).decode(ca,T.getModel());T.view.scaleAndTranslate(z.view.scale,z.view.translate.x,z.view.translate.y);T.mathEnabled="1"==ca.getAttribute("math");T.setAdaptiveColors(ca.getAttribute("adaptiveColors"));Editor.MathJaxRender&&T.mathEnabled&&Editor.MathJaxRender(T.container)}}catch(S){x.style.display="inline-block",x.innerText="",mxUtils.write(x,mxResources.get("pageNotFound")+": "+S.message)}},null,function(){mxUtils.setOpacity(M,60);x.style.display=-"none";x.innerText="";"none"==u.style.display&&(u.style.display="",V.innerHTML=fa,U.style.display="none")});mxEvent.addListener(O,"click",mxUtils.bind(this,function(Y){if(null!=B){Y=b.getPagesForNode(B.documentElement);var X=b.diffPages(b.pages,Y);Y=new TextareaDialog(b,mxResources.get("merge")+":",JSON.stringify(X,null,2),function(ca){try{if(0<ca.length&&b.editor.graph.isEnabled()){var S=[JSON.parse(ca)];b.confirm(mxResources.get("areYouSure"),function(){try{g.patch(S,null,!0,!0),b.hideDialog(),+"none";x.innerText="";"none"==u.style.display&&(u.style.display="",V.innerHTML=fa,U.style.display="none")});mxEvent.addListener(O,"click",mxUtils.bind(this,function(Y){if(null!=B){Y=b.getPagesForNode(B.documentElement);var X=b.diffPages(b.pages,Y);Y=new TextareaDialog(b,mxResources.get("merge")+":",JSON.stringify(X,null,2),function(ca){try{if(0<ca.length&&b.editor.graph.isEnabled()){var S=[JSON.parse(ca)];b.confirm(mxResources.get("areYouSure"),function(){try{f.patch(S,null,!0,!0),b.hideDialog(),b.hideDialog()}catch(Z){b.handleError(Z)}})}else b.hideDialog()}catch(Z){b.handleError(Z)}},null,null,null,null,function(ca,S){if(null!=X[EditorUi.DIFF_UPDATE]){var Z=document.createElement("select"),da=document.createElement("option");mxUtils.write(da,mxResources.get("allPages"));da.setAttribute("value","allPages");Z.appendChild(da);for(var N in X[EditorUi.DIFF_UPDATE]){da=document.createElement("option");var aa=b.getPageById(N);null!=aa&&(mxUtils.write(da,aa.getName()),da.setAttribute("value","page-"+N),Z.appendChild(da))}Z.style.marginRight="8px";Z.style.order="-1";mxEvent.addListener(Z,"change",function(ea){ea=null;if("allPages"!=Z.value){var la=Z.value.substring(5);null!=X[EditorUi.DIFF_UPDATE][la]&&(ea={},ea[EditorUi.DIFF_UPDATE]={},ea[EditorUi.DIFF_UPDATE][la]=X[EditorUi.DIFF_UPDATE][la])}S.value=JSON.stringify(null==ea?X:ea,null,2)});2<Z.children.length&&ca.appendChild(Z)}},!0,null,mxResources.get(b.editor.graph.isEnabled()?"merge":"close"));b.showDialog(Y.container,620,460,!0,!0,null,null,-null,new mxRectangle(0,0,440,280));Y.init()}}));var y=mxUtils.button(mxResources.get("restore"),function(Y){null!=B&&null!=E&&b.confirm(mxResources.get("areYouSure"),function(){null!=m?m(E):b.spinner.spin(document.body,mxResources.get("restoring"))&&(y.setAttribute("disabled","disabled"),g.save(!0,function(X){b.spinner.stop();y.removeAttribute("disabled");b.replaceFileData(E);b.hideDialog()},function(X){b.spinner.stop();y.removeAttribute("disabled");b.clearStatus();b.handleError(X,null!=X?mxResources.get("errorSavingFile"):+null,new mxRectangle(0,0,440,280));Y.init()}}));var y=mxUtils.button(mxResources.get("restore"),function(Y){null!=B&&null!=E&&b.confirm(mxResources.get("areYouSure"),function(){null!=m?m(E):b.spinner.spin(document.body,mxResources.get("restoring"))&&(y.setAttribute("disabled","disabled"),f.save(!0,function(X){b.spinner.stop();y.removeAttribute("disabled");b.replaceFileData(E);b.hideDialog()},function(X){b.spinner.stop();y.removeAttribute("disabled");b.clearStatus();b.handleError(X,null!=X?mxResources.get("errorSavingFile"):null)}))})});y.className="geBtn gePrimaryBtn";y.setAttribute("disabled","disabled");var d=document.createElement("select");d.setAttribute("disabled","disabled");d.style.userSelect="none";d.style.maxWidth="100px";d.style.marginLeft="10px";d.style.display="none";var p=null;mxEvent.addListener(d,"change",function(Y){null!=p&&(p(Y),mxEvent.consume(Y))});var A=mxUtils.button(mxResources.get("open"),function(){null!=B&&(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(mxUtils.getXml(B.documentElement)),b.openLink(b.getUrl(),null,!0))});A.className="geBtn";A.setAttribute("disabled","disabled");var G=mxUtils.button(mxResources.get("createRevision"),function(){b.actions.get("save").funct(!1)});G.className="geBtn";G.setAttribute("disabled","disabled");null!=m&&(A.style.display="none");l=document.createElement("div");l.style.position="absolute";l.style.top="482px";l.style.right="28px";l.style.left="32px";l.style.justifyContent="end";l.style.display="flex";var I=document.createElement("div");I.className="geToolbarContainer";I.style.backgroundColor="transparent";I.style.left="32px";I.style.right="32px";I.style.border="none";I.style.top="442px";var L=null;if(null!=k&&0<k.length){u.style.cursor="move";var P=document.createElement("table");P.style.borderWidth="1px";P.style.borderStyle="solid";P.style.borderCollapse="collapse";P.style.borderSpacing="0px";P.style.width="100%";var Q=document.createElement("tbody"),ba=(new Date).toDateString();null!=b.currentPage&&null!=b.pages&&(F=mxUtils.indexOf(b.pages,@@ -13268,30 +13353,30 @@ b.currentPage));for(r=k.length-1;0<=r;r--){var W=function(Y){var X=new Date(Y.mo(new mxCodec(xa.ownerDocument)).decode(xa,z.getModel());z.maxFitScale=1;z.fit(8);z.center();z.mathEnabled="1"==xa.getAttribute("math");z.setAdaptiveColors(xa.getAttribute("adaptiveColors"));Editor.MathJaxRender&&z.mathEnabled&&Editor.MathJaxRender(z.container);return xa};d.style.display="none";d.innerText="";B=N;E=da;J=parseSelectFunction=null;H=0;if("mxfile"==aa.nodeName){N=aa.getElementsByTagName("diagram");J=[];for(da=0;da<N.length;da++)J.push(N[da]);H=Math.min(F,J.length-1);0<J.length&&ea(J[H]);if(1<J.length)for(d.removeAttribute("disabled"),d.style.display="",da=0;da<J.length;da++){N=document.createElement("option");N.setAttribute("title",ra+" ("+J[da].getAttribute("id")+")");N.setAttribute("value",da);var ra=J[da].getAttribute("name")||mxResources.get("pageWithNumber",[da+1]);aa=b.getPageById(J[da].getAttribute("id"));var qa="";if(null!=aa){var na=new DiagramPage(J[da]);b.getHashValueForPages([aa])!=b.getHashValueForPages([na])&&(qa=" (M)")}else qa=" (X)";mxUtils.write(N,ra+qa);da==H&&N.setAttribute("selected","selected");d.appendChild(N)}p=function(){try{var xa=parseInt(d.value);H=F=xa;ea(J[xa])}catch(wa){d.value=F,b.handleError(wa)}}}else la(aa);ra=Y.lastModifyingUserName;null!=ra&&20<ra.length&&(ra=ra.substring(0,20)+"...");V.innerText="";mxUtils.write(V,(null!=ra?ra+" ":"")+X.toLocaleDateString()+" "+X.toLocaleTimeString());V.setAttribute("title",ca.getAttribute("title"));K.removeAttribute("disabled");C.removeAttribute("disabled");R.removeAttribute("disabled");M.removeAttribute("disabled");-O.removeAttribute("disabled");null!=g&&g.isRestricted()||(b.editor.graph.isEnabled()&&y.removeAttribute("disabled"),A.removeAttribute("disabled"),G.removeAttribute("disabled"));mxUtils.setOpacity(K,60);mxUtils.setOpacity(C,60);mxUtils.setOpacity(R,60);mxUtils.setOpacity(M,60);mxUtils.setOpacity(O,60)}else d.style.display="none",d.innerText="",V.innerText="",x.innerText="",mxUtils.write(V,mxResources.get("errorLoadingFile")),mxUtils.write(x,mxResources.get("errorLoadingFile"))};ca=document.createElement("tr");+O.removeAttribute("disabled");null!=f&&f.isRestricted()||(b.editor.graph.isEnabled()&&y.removeAttribute("disabled"),A.removeAttribute("disabled"),G.removeAttribute("disabled"));mxUtils.setOpacity(K,60);mxUtils.setOpacity(C,60);mxUtils.setOpacity(R,60);mxUtils.setOpacity(M,60);mxUtils.setOpacity(O,60)}else d.style.display="none",d.innerText="",V.innerText="",x.innerText="",mxUtils.write(V,mxResources.get("errorLoadingFile")),mxUtils.write(x,mxResources.get("errorLoadingFile"))};ca=document.createElement("tr");ca.style.borderBottomWidth="1px";ca.style.borderBottomStyle="solid";ca.style.fontSize="12px";ca.style.cursor="pointer";var Z=document.createElement("td");Z.style.padding="6px";Z.style.whiteSpace="nowrap";Y==k[k.length-1]?mxUtils.write(Z,mxResources.get("current")):X.toDateString()===ba?mxUtils.write(Z,X.toLocaleTimeString()):mxUtils.write(Z,X.toLocaleDateString()+" "+X.toLocaleTimeString());ca.appendChild(Z);ca.setAttribute("title",X.toLocaleDateString()+" "+X.toLocaleTimeString()+(null!=Y.fileSize?" "+b.formatFileSize(parseInt(Y.fileSize)):"")+(null!=Y.lastModifyingUserName?" "+Y.lastModifyingUserName:""));mxEvent.addListener(ca,"click",function(da){v!=Y&&(c.stop(),null!=t&&(t.style.backgroundColor=""),v=Y,t=ca,t.style.backgroundColor="light-dark(#ebf2f9, #000000)",E=B=null,V.removeAttribute("title"),V.innerText=mxResources.get("loading")+"...",u.style.backgroundColor=z.defaultPageBackgroundColor,x.innerText="",z.getModel().clear(),y.setAttribute("disabled","disabled"),K.setAttribute("disabled","disabled"),C.setAttribute("disabled","disabled"),R.setAttribute("disabled","disabled"),M.setAttribute("disabled","disabled"),O.setAttribute("disabled","disabled"),A.setAttribute("disabled","disabled"),d.setAttribute("disabled","disabled"),mxUtils.setOpacity(K,20),mxUtils.setOpacity(C,20),mxUtils.setOpacity(R,20),mxUtils.setOpacity(M,20),mxUtils.setOpacity(O,20),c.spin(u),Y.getXml(function(N){if(v==Y)try{S(N)}catch(aa){V.innerText=mxResources.get("error")+": "+aa.message}},function(N){c.stop();d.style.display=-"none";d.innerText="";V.innerText="";mxUtils.write(V,mxResources.get("errorLoadingFile"));mxUtils.write(x,mxResources.get("errorLoadingFile"))}),mxEvent.consume(da))});mxEvent.addListener(ca,"dblclick",function(da){A.click();window.getSelection?window.getSelection().removeAllRanges():document.selection&&document.selection.empty();mxEvent.consume(da)},!1);Q.appendChild(ca)}return ca}(k[r]);null!=W&&r==k.length-1&&(L=W)}P.appendChild(Q);q.appendChild(P)}else null==g||null==b.drive&&g.constructor==window.DriveFile||-null==b.dropbox&&g.constructor==window.DropboxFile?(u.style.display="none",I.style.display="none",mxUtils.write(q,mxResources.get("notAvailable"))):(u.style.display="none",I.style.display="none",mxUtils.write(q,mxResources.get("noRevisions")));this.init=function(){null!=L&&L.click()};q=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});q.className="geBtn";I.appendChild(V);I.appendChild(M);I.appendChild(C);I.appendChild(R);I.appendChild(K);I.appendChild(d);I.appendChild(O);b.editor.cancelFirst&&-l.appendChild(q);l.appendChild(A);null!=g&&g.constructor==DriveFile&&l.appendChild(G);l.appendChild(y);b.editor.cancelFirst||l.appendChild(q);f.appendChild(l);f.appendChild(I);this.container=f},RecoveryDialog=function(b,k,m,f){var q=document.createElement("div");q.style.paddingBottom="10px";b=document.createElement("h3");mxUtils.write(b,mxResources.get("recoverTitle"));q.appendChild(b);b=function(x){var z=document.createElement("div");z.className="geDialogSection";z.style.cursor="pointer";z.style.marginBottom=+"none";d.innerText="";V.innerText="";mxUtils.write(V,mxResources.get("errorLoadingFile"));mxUtils.write(x,mxResources.get("errorLoadingFile"))}),mxEvent.consume(da))});mxEvent.addListener(ca,"dblclick",function(da){A.click();window.getSelection?window.getSelection().removeAllRanges():document.selection&&document.selection.empty();mxEvent.consume(da)},!1);Q.appendChild(ca)}return ca}(k[r]);null!=W&&r==k.length-1&&(L=W)}P.appendChild(Q);q.appendChild(P)}else null==f||null==b.drive&&f.constructor==window.DriveFile||+null==b.dropbox&&f.constructor==window.DropboxFile?(u.style.display="none",I.style.display="none",mxUtils.write(q,mxResources.get("notAvailable"))):(u.style.display="none",I.style.display="none",mxUtils.write(q,mxResources.get("noRevisions")));this.init=function(){null!=L&&L.click()};q=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});q.className="geBtn";I.appendChild(V);I.appendChild(M);I.appendChild(C);I.appendChild(R);I.appendChild(K);I.appendChild(d);I.appendChild(O);b.editor.cancelFirst&&+l.appendChild(q);l.appendChild(A);null!=f&&f.constructor==DriveFile&&l.appendChild(G);l.appendChild(y);b.editor.cancelFirst||l.appendChild(q);g.appendChild(l);g.appendChild(I);this.container=g},RecoveryDialog=function(b,k,m,g){var q=document.createElement("div");q.style.paddingBottom="10px";b=document.createElement("h3");mxUtils.write(b,mxResources.get("recoverTitle"));q.appendChild(b);b=function(x){var z=document.createElement("div");z.className="geDialogSection";z.style.cursor="pointer";z.style.marginBottom="8px";z.style.padding="10px";var F=document.createElement("div");F.style.fontWeight="600";F.style.marginBottom="4px";mxUtils.write(F,x.label);z.appendChild(F);null!=x.description&&(F=document.createElement("div"),F.style.fontSize="12px",F.style.opacity="0.75",mxUtils.write(F,x.description),z.appendChild(F));mxEvent.addListener(z,"click",function(){m(x)});q.appendChild(z)};for(var u=0;u<k.length;u++)b(k[u]);k=document.createElement("div");k.style.marginTop="34px";k.style.textAlign="right";b=mxUtils.button(mxResources.get("cancel"),-function(){null!=f&&f()});b.className="geBtn";k.appendChild(b);q.appendChild(k);this.container=q},DraftDialog=function(b,k,m,f,q,u,x,z,F){var J=document.createElement("div"),H=document.createElement("div");H.style.marginTop="0px";H.style.whiteSpace="nowrap";H.style.overflow="auto";H.style.lineHeight="normal";mxUtils.write(H,k);J.appendChild(H);var D=document.createElement("select"),c=mxUtils.bind(this,function(){"-1"==D.value?(D.value=D.options[0].value,c(),b.confirm(mxResources.get("areYouSure"),-null,mxUtils.bind(this,function(){var M=this,O;return $jscomp.asyncExecutePromiseGeneratorProgram(function(U){for(O=0;O<F.length;O++)q.apply(M,[O,mxUtils.bind(M,function(){})]);b.hideDialog(!0);U.jumpToEnd()})}),mxResources.get("no"),mxResources.get("yes"))):(v=mxUtils.parseXml(F[D.value].data),B=b.editor.extractGraphModel(v.documentElement,!0),E=0,this.init())});if(null!=F){D.style.marginLeft="4px";for(k=0;k<F.length;k++){var g=document.createElement("option");g.setAttribute("value",k);var l=new Date(F[k].created),-n=new Date(F[k].modified);mxUtils.write(g,l.toLocaleDateString()+" "+l.toLocaleTimeString()+" - "+(l.toDateString(),n.toDateString(),n.toLocaleDateString())+" "+n.toLocaleTimeString());D.appendChild(g)}g=document.createElement("option");g.setAttribute("value","-1");mxUtils.write(g,mxResources.get("deleteAll"));D.appendChild(g);H.appendChild(D);mxEvent.addListener(D,"change",c)}null==m&&(m=F[0].data);var r=document.createElement("div");r.style.position="absolute";r.style.border="1px solid lightGray";+function(){null!=g&&g()});b.className="geBtn";k.appendChild(b);q.appendChild(k);this.container=q},DraftDialog=function(b,k,m,g,q,u,x,z,F){var J=document.createElement("div"),H=document.createElement("div");H.style.marginTop="0px";H.style.whiteSpace="nowrap";H.style.overflow="auto";H.style.lineHeight="normal";mxUtils.write(H,k);J.appendChild(H);var D=document.createElement("select"),c=mxUtils.bind(this,function(){"-1"==D.value?(D.value=D.options[0].value,c(),b.confirm(mxResources.get("areYouSure"),+null,mxUtils.bind(this,function(){var M=this,O;return $jscomp.asyncExecutePromiseGeneratorProgram(function(U){for(O=0;O<F.length;O++)q.apply(M,[O,mxUtils.bind(M,function(){})]);b.hideDialog(!0);U.jumpToEnd()})}),mxResources.get("no"),mxResources.get("yes"))):(v=mxUtils.parseXml(F[D.value].data),B=b.editor.extractGraphModel(v.documentElement,!0),E=0,this.init())});if(null!=F){D.style.marginLeft="4px";for(k=0;k<F.length;k++){var f=document.createElement("option");f.setAttribute("value",k);var l=new Date(F[k].created),+n=new Date(F[k].modified);mxUtils.write(f,l.toLocaleDateString()+" "+l.toLocaleTimeString()+" - "+(l.toDateString(),n.toDateString(),n.toLocaleDateString())+" "+n.toLocaleTimeString());D.appendChild(f)}f=document.createElement("option");f.setAttribute("value","-1");mxUtils.write(f,mxResources.get("deleteAll"));D.appendChild(f);H.appendChild(D);mxEvent.addListener(D,"change",c)}null==m&&(m=F[0].data);var r=document.createElement("div");r.style.position="absolute";r.style.border="1px solid lightGray";r.style.marginTop="10px";r.style.left="40px";r.style.right="40px";r.style.top="46px";r.style.bottom="74px";r.style.overflow="hidden";mxEvent.disableContextMenu(r);J.appendChild(r);var t=new Graph(r);t.setEnabled(!1);t.setPanning(!0);t.shapeBackgroundColor="light-dark(#ffffff, #2a252f)";t.panningHandler.ignoreCell=!0;t.panningHandler.useLeftButtonForPanning=!0;t.minFitScale=null;t.maxFitScale=null;t.centerZoom=!0;var v=mxUtils.parseXml(m),B=b.editor.extractGraphModel(v.documentElement,!0),E=0,K=null,C=t.getGlobalVariable;t.getGlobalVariable=function(M){return"page"==M&&null!=K&&null!=K[E]?K[E].getAttribute("name"):"pagenumber"==M?E+1:"pagecount"==M?null!=K?K.length:1:C.apply(this,arguments)};t.getLinkForCell=function(){return null};m=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){t.zoomIn()},20);H=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){t.zoomOut()},20);k=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){1==t.view.scale?(t.maxFitScale=8,t.fit(8)):t.zoomActual();t.center()},20);x=mxUtils.button(x||mxResources.get("discard"),function(){b.confirm(mxResources.get("areYouSure"),null,mxUtils.bind(this,function(){var M=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(O){q.apply(M,[D.value,mxUtils.bind(M,function(){null!=D.parentNode&&(D.options[D.selectedIndex].parentNode.removeChild(D.options[D.selectedIndex]),1<D.options.length?(D.value=D.options[0].value,c()):b.hideDialog(!0))})]);O.jumpToEnd()})}),-mxResources.get("no"),mxResources.get("yes"))});x.className="geBtn";var R=document.createElement("select");R.style.maxWidth="80px";R.style.position="relative";R.style.top="-2px";R.style.verticalAlign="bottom";R.style.marginRight="6px";R.style.display="none";u=mxUtils.button(u||mxResources.get("edit"),function(){f.apply(this,[D.value])});u.className="geBtn gePrimaryBtn";g=document.createElement("div");g.style.position="absolute";g.style.bottom="30px";g.style.right="40px";g.style.textAlign="right";+mxResources.get("no"),mxResources.get("yes"))});x.className="geBtn";var R=document.createElement("select");R.style.maxWidth="80px";R.style.position="relative";R.style.top="-2px";R.style.verticalAlign="bottom";R.style.marginRight="6px";R.style.display="none";u=mxUtils.button(u||mxResources.get("edit"),function(){g.apply(this,[D.value])});u.className="geBtn gePrimaryBtn";f=document.createElement("div");f.style.position="absolute";f.style.bottom="30px";f.style.right="40px";f.style.textAlign="right";l=document.createElement("div");l.className="geToolbarContainer";l.style.cssText="box-shadow:none !important;background-color:transparent;padding:2px;border-style:none !important;bottom:30px;";this.init=function(){function M(V){if(null!=V){var fa=V.getAttribute("background");if(null==fa||""==fa||fa==mxConstants.NONE)fa="light-dark(#ffffff, transparent)";r.style.backgroundColor=fa;(new mxCodec(V.ownerDocument)).decode(V,t.getModel());t.maxFitScale=1;t.fit(8);t.center()}return V}function O(V){if(null!=V)try{V=M(Editor.parseDiagramNode(V))}catch(fa){b.handleError(fa)}return V}mxEvent.addListener(R,"change",function(V){E=parseInt(R.value);O(K[E]);mxEvent.consume(V)});if("mxfile"==B.nodeName){var U=B.getElementsByTagName("diagram");K=[];for(var T=0;T<U.length;T++)K.push(U[T]);0<K.length&&O(K[E]);R.innerText="";if(1<K.length)for(R.style.display="",T=0;T<K.length;T++)U=document.createElement("option"),mxUtils.write(U,K[T].getAttribute("name")||mxResources.get("pageWithNumber",[T+1])),U.setAttribute("value",-T),T==E&&U.setAttribute("selected","selected"),R.appendChild(U);else R.style.display="none"}else M(B)};l.appendChild(R);l.appendChild(m);l.appendChild(H);l.appendChild(k);m=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});m.className="geBtn";z=null!=z?mxUtils.button(mxResources.get("ignore"),z):null;null!=z&&(z.className="geBtn");b.editor.cancelFirst?(g.appendChild(m),null!=z&&g.appendChild(z),g.appendChild(x),g.appendChild(u)):(g.appendChild(u),g.appendChild(x),null!=z&&g.appendChild(z),-g.appendChild(m));J.appendChild(g);J.appendChild(l);this.container=J},FindWindow=function(b,k,m,f,q,u){function x(p,A,G){if("object"===typeof A.value&&null!=A.value.attributes){A=A.value.attributes;for(var I=0;I<A.length;I++)if("label"!=A[I].nodeName){var L=mxUtils.trim(A[I].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();if(null==p&&0<=L.indexOf(G)||null!=p&&p.test(L))return!0}}return!1}function z(){g?(fa.removeAttribute("disabled"),y.removeAttribute("disabled")):(fa.setAttribute("disabled",+T),T==E&&U.setAttribute("selected","selected"),R.appendChild(U);else R.style.display="none"}else M(B)};l.appendChild(R);l.appendChild(m);l.appendChild(H);l.appendChild(k);m=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});m.className="geBtn";z=null!=z?mxUtils.button(mxResources.get("ignore"),z):null;null!=z&&(z.className="geBtn");b.editor.cancelFirst?(f.appendChild(m),null!=z&&f.appendChild(z),f.appendChild(x),f.appendChild(u)):(f.appendChild(u),f.appendChild(x),null!=z&&f.appendChild(z),+f.appendChild(m));J.appendChild(f);J.appendChild(l);this.container=J},FindWindow=function(b,k,m,g,q,u){function x(p,A,G){if("object"===typeof A.value&&null!=A.value.attributes){A=A.value.attributes;for(var I=0;I<A.length;I++)if("label"!=A[I].nodeName){var L=mxUtils.trim(A[I].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();if(null==p&&0<=L.indexOf(G)||null!=p&&p.test(L))return!0}}return!1}function z(){f?(fa.removeAttribute("disabled"),y.removeAttribute("disabled")):(fa.setAttribute("disabled","disabled"),y.setAttribute("disabled","disabled"));E.value?d.removeAttribute("disabled"):d.setAttribute("disabled","disabled")}function F(p,A,G){T.innerText="";var I=H.model.getDescendants(H.model.getRoot()),L=E.value.toLowerCase(),P=C.checked?new RegExp(L):null,Q=null;n=null;D!=L&&(D=L,c=null,l=!1);var ba=null==c;if(0<L.length){if(l){l=!1;for(var W,Y=0;Y<b.pages.length;Y++)if(b.currentPage==b.pages[Y]){W=Y;break}p=(W+1)%b.pages.length;c=null;do l=!1,L=b.pages[p],H=b.createTemporaryGraph(H.getStylesheet()),b.updatePageRoot(L),H.model.setRoot(L.root),p=(p+1)%b.pages.length;while(!F(!0,A,G)&&p!=W);c&&(c=null,G?b.editor.graph.model.execute(new SelectPage(b,L)):b.selectPage(L));l=!1;H=b.editor.graph;return F(!0,A,G)}for(Y=0;Y<I.length;Y++){W=H.view.getState(I[Y]);A&&(ba=ba||W==c);if(null!=W&&null!=W.cell.value&&(ba||null==Q)&&(H.model.isVertex(W.cell)||H.model.isEdge(W.cell))){null!=W.style&&"1"==W.style.html?(M.innerHTML=H.sanitizeHtml(H.getLabel(W.cell)),label=mxUtils.extractTextWithWhitespace([M])):label=H.getLabel(W.cell);label=mxUtils.trim(label.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();var X=0;A&&u&&W==c&&(label=label.substr(r),X=r);var ca=null==K||""==K.value;if(null==P&&(0<=label.indexOf(L)||ca&&x(P,W.cell,L))||null!=P&&(P.test(label)||ca&&x(P,W.cell,L)))if(u&&(null!=P?(ca=label.match(P),null!=ca&&0<ca.length&&(n=ca[0].toLowerCase(),r=X+ca.index+n.length)):(n=L,r=X+label.indexOf(L)+n.length)),ba){Q=W;break}else null==Q&&(Q=W)}ba=ba||W==c}}if(null!=Q){if(Y==I.length&&R.checked)return c=-null,l=!0,F(!0,A,G);c=Q;A=H.container;(null==A||c.x<A.scrollLeft||c.y<A.scrollTop||c.x+c.width>A.scrollLeft+A.clientWidth||c.y+c.height>A.scrollTop+A.clientHeight)&&H.scrollCellToVisible(c.cell,!0);H.isEnabled()&&!H.isCellLocked(c.cell)?G||H.getSelectionCell()==c.cell&&1==H.getSelectionCount()||H.setSelectionCell(c.cell):H.highlightCell(c.cell)}else{if(!p&&R.checked)return l=!0,F(!0,A,G);H.isEnabled()&&!G&&H.clearSelection()}g=null!=Q;u&&!p&&z();return 0==L.length||null!=Q}var J=b.actions.get("findReplace"),-H=b.editor.graph,D=null,c=null,g=!1,l=!1,n=null,r=0,t=1,v=document.createElement("div");v.style.userSelect="none";v.style.overflow="hidden";v.style.padding="10px";v.style.height="100%";var B=u?"260px":"200px",E=document.createElement("input");E.setAttribute("placeholder",mxResources.get("find"));E.setAttribute("type","text");E.style.marginTop="4px";E.style.marginBottom="6px";E.style.width=B;E.style.fontSize="12px";E.style.borderRadius="4px";E.style.padding="6px";v.appendChild(E);mxUtils.br(v);if(u){var K=+null,l=!0,F(!0,A,G);c=Q;A=H.container;(null==A||c.x<A.scrollLeft||c.y<A.scrollTop||c.x+c.width>A.scrollLeft+A.clientWidth||c.y+c.height>A.scrollTop+A.clientHeight)&&H.scrollCellToVisible(c.cell,!0);H.isEnabled()&&!H.isCellLocked(c.cell)?G||H.getSelectionCell()==c.cell&&1==H.getSelectionCount()||H.setSelectionCell(c.cell):H.highlightCell(c.cell)}else{if(!p&&R.checked)return l=!0,F(!0,A,G);H.isEnabled()&&!G&&H.clearSelection()}f=null!=Q;u&&!p&&z();return 0==L.length||null!=Q}var J=b.actions.get("findReplace"),+H=b.editor.graph,D=null,c=null,f=!1,l=!1,n=null,r=0,t=1,v=document.createElement("div");v.style.userSelect="none";v.style.overflow="hidden";v.style.padding="10px";v.style.height="100%";var B=u?"260px":"200px",E=document.createElement("input");E.setAttribute("placeholder",mxResources.get("find"));E.setAttribute("type","text");E.style.marginTop="4px";E.style.marginBottom="6px";E.style.width=B;E.style.fontSize="12px";E.style.borderRadius="4px";E.style.padding="6px";v.appendChild(E);mxUtils.br(v);if(u){var K=document.createElement("input");K.setAttribute("placeholder",mxResources.get("replaceWith"));K.setAttribute("type","text");K.style.marginTop="4px";K.style.marginBottom="6px";K.style.width=B;K.style.fontSize="12px";K.style.borderRadius="4px";K.style.padding="6px";v.appendChild(K);mxUtils.br(v);mxEvent.addListener(K,"input",z)}var C=document.createElement("input");C.setAttribute("id","geFindWinRegExChck");C.setAttribute("type","checkbox");C.style.marginRight="4px";v.appendChild(C);B=document.createElement("label");B.setAttribute("for","geFindWinRegExChck");v.appendChild(B);mxUtils.write(B,mxResources.get("regularExpression"));v.appendChild(B);B=b.menus.createHelpLink("https://www.drawio.com/doc/faq/find-shapes");B.style.position="relative";B.style.marginLeft="6px";v.appendChild(B);mxUtils.br(v);var R=document.createElement("input");R.setAttribute("id","geFindWinAllPagesChck");R.setAttribute("type","checkbox");R.style.marginRight="4px";v.appendChild(R);B=document.createElement("label");B.setAttribute("for","geFindWinAllPagesChck");v.appendChild(B);mxUtils.write(B,mxResources.get("allPages"));v.appendChild(B);var M=document.createElement("div");mxUtils.br(v);B=document.createElement("div");B.style.left="0px";B.style.right="0px";B.style.marginTop="6px";B.style.padding="0 6px 0 6px";v.appendChild(B);var O=mxUtils.button(mxResources.get("reset"),function(){T.innerText="";E.value="";E.style.backgroundColor="";u&&(K.value="",z());D=c=null;l=!1;E.focus()});O.setAttribute("title",mxResources.get("reset"));@@ -13304,28 +13389,28 @@ y.style.textOverflow="ellipsis";y.className="geBtn gePrimaryBtn";y.setAttribute(V(P,n,K.value,r-n.length,H.getCurrentCellStyle(L))),G++)}p!=b.currentPage&&b.editor.graph.model.execute(new SelectPage(b,p));mxUtils.write(T,mxResources.get("matchesRepl",[G]))}catch(ba){b.handleError(ba)}finally{H.getModel().endUpdate(),b.editor.graph.setSelectionCells(A),b.editor.graph.rendering=!0}t++});d.setAttribute("title",mxResources.get("replaceAll"));d.style.float="none";d.style.width="120px";d.style.marginTop="6px";d.style.marginLeft="8px";d.style.overflow="hidden";d.style.textOverflow="ellipsis";d.className="geBtn gePrimaryBtn";d.setAttribute("disabled","disabled");B.appendChild(d);mxUtils.br(B);B.appendChild(O);O=mxUtils.button(mxResources.get("close"),mxUtils.bind(this,function(){this.window.setVisible(!1)}));O.setAttribute("title",mxResources.get("close"));O.style.float="none";O.style.width="120px";O.style.marginTop="6px";O.style.marginLeft="8px";O.style.overflow="hidden";O.style.textOverflow="ellipsis";O.className="geBtn";B.appendChild(O);mxUtils.br(B);B.appendChild(T)}else B.style.display="flex",B.style.alignItems="center",O.style.width="",U.style.width="";mxEvent.addListener(E,"keyup",function(p){if(91==p.keyCode||93==p.keyCode||17==p.keyCode)mxEvent.consume(p);else if(27==p.keyCode)J.funct();else if(D!=E.value.toLowerCase()||13==p.keyCode)try{E.style.backgroundColor=F()?"":"light-dark(#ffcfcf, #ff0000)"}catch(A){E.style.backgroundColor="light-dark(#ffcfcf, #ff0000)"}});mxEvent.addListener(v,"keydown",function(p){70==p.keyCode&&b.keyHandler.isControlDown(p)&&!mxEvent.isShiftDown(p)&&-(J.funct(),mxEvent.consume(p))});this.window=new mxWindow(mxResources.get("find")+(u?"/"+mxResources.get("replace"):""),v,k,m,f,q,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit();this.window.isVisible()?(E.focus(),mxClient.IS_GC||mxClient.IS_FF?E.select():document.execCommand("selectAll",!1,null),null!=b.pages&&1<b.pages.length?R.removeAttribute("disabled"):-(R.checked=!1,R.setAttribute("disabled","disabled"))):H.container.focus()}));b.installResizeHandler(this,!1);this.doSearch=function(p){E.focus();E.value=p;U.click()}},FreehandWindow=function(b,k,m,f,q,u){var x=b.editor.graph,z=document.createElement("div");z.style.textAlign="center";z.style.userSelect="none";z.style.overflow="hidden";z.style.height="100%";if(u){var F=function(){var g=x.freehand.getStrokeColor(!0);null!=g&&g!=mxConstants.NONE&&1<g.length&&"string"===typeof g&&("default"==g?g=mxResources.get("useBlackAndWhite"):-(g="#"==g.charAt(0)?g.substring(1).toUpperCase():g,g=ColorDialog.prototype.colorNames[g]),null!=g&&H.setAttribute("title",g))},J=document.createElement("input");J.setAttribute("id","geFreehandBrush");J.setAttribute("type","checkbox");J.checked=x.freehand.isPerfectFreehandMode();J.style.margin="10px 5px 0px 10px";J.style.float="left";z.appendChild(J);x.freehand.setPerfectFreehandMode(J.checked);u=document.createElement("label");u.setAttribute("for","geFreehandBrush");u.style.float="left";u.style.marginTop=-"10px";z.appendChild(u);mxUtils.write(u,mxResources.get("brush"));z.appendChild(u);var H=document.createElement("tempDiv");H.style.display="block";H.style.width="100%";H.style.height="100%";H.style.borderRadius="2px";H.style.boxSizing="border-box";H.style.border="1px solid black";H.style.backgroundColor=x.freehand.getStrokeColor();b.addListener("darkModeChanged",function(){H.style.backgroundColor=x.freehand.getStrokeColor()});F();u=mxUtils.button("",mxUtils.bind(this,function(g){b.pickColor(x.freehand.getStrokeColor(!0),-function(l){x.freehand.setStrokeColor(l);H.style.backgroundColor=x.freehand.getStrokeColor();F()},"default");mxEvent.consume(g)}));u.style.position="absolute";u.style.boxSizing="border-box";u.style.padding="2px";u.style.top="8px";u.style.right="8px";u.style.width="28px";u.style.height="18px";u.className="geColorBtn";u.innerText="";u.appendChild(H);z.appendChild(u);u=document.createElement("img");u.setAttribute("title",mxResources.get("settings"));u.setAttribute("src",Editor.gearImage);u.className=-"geButton";u.style.position="absolute";u.style.boxSizing="border-box";u.style.padding="2px";u.style.top="8px";u.style.right="38px";u.style.width="18px";u.style.height="18px";u.style.opacity="0.6";z.appendChild(u);mxEvent.addListener(u,"click",mxUtils.bind(this,function(g){g=x.freehand.getSmoothing();b.prompt(mxResources.get("smoothing")+" (1-20)",g,function(l){!isNaN(l)&&0<l&&20>=l&&x.freehand.setSmoothing(parseInt(l))})}));mxUtils.br(z);var D=document.createElement("input");D.setAttribute("type",+(J.funct(),mxEvent.consume(p))});this.window=new mxWindow(mxResources.get("find")+(u?"/"+mxResources.get("replace"):""),v,k,m,g,q,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit();this.window.isVisible()?(E.focus(),mxClient.IS_GC||mxClient.IS_FF?E.select():document.execCommand("selectAll",!1,null),null!=b.pages&&1<b.pages.length?R.removeAttribute("disabled"):+(R.checked=!1,R.setAttribute("disabled","disabled"))):H.container.focus()}));b.installResizeHandler(this,!1);this.doSearch=function(p){E.focus();E.value=p;U.click()}},FreehandWindow=function(b,k,m,g,q,u){var x=b.editor.graph,z=document.createElement("div");z.style.textAlign="center";z.style.userSelect="none";z.style.overflow="hidden";z.style.height="100%";if(u){var F=function(){var f=x.freehand.getStrokeColor(!0);null!=f&&f!=mxConstants.NONE&&1<f.length&&"string"===typeof f&&("default"==f?f=mxResources.get("useBlackAndWhite"):+(f="#"==f.charAt(0)?f.substring(1).toUpperCase():f,f=ColorDialog.prototype.colorNames[f]),null!=f&&H.setAttribute("title",f))},J=document.createElement("input");J.setAttribute("id","geFreehandBrush");J.setAttribute("type","checkbox");J.checked=x.freehand.isPerfectFreehandMode();J.style.margin="10px 5px 0px 10px";J.style.float="left";z.appendChild(J);x.freehand.setPerfectFreehandMode(J.checked);u=document.createElement("label");u.setAttribute("for","geFreehandBrush");u.style.float="left";u.style.marginTop=+"10px";z.appendChild(u);mxUtils.write(u,mxResources.get("brush"));z.appendChild(u);var H=document.createElement("tempDiv");H.style.display="block";H.style.width="100%";H.style.height="100%";H.style.borderRadius="2px";H.style.boxSizing="border-box";H.style.border="1px solid black";H.style.backgroundColor=x.freehand.getStrokeColor();b.addListener("darkModeChanged",function(){H.style.backgroundColor=x.freehand.getStrokeColor()});F();u=mxUtils.button("",mxUtils.bind(this,function(f){b.pickColor(x.freehand.getStrokeColor(!0),+function(l){x.freehand.setStrokeColor(l);H.style.backgroundColor=x.freehand.getStrokeColor();F()},"default");mxEvent.consume(f)}));u.style.position="absolute";u.style.boxSizing="border-box";u.style.padding="2px";u.style.top="8px";u.style.right="8px";u.style.width="28px";u.style.height="18px";u.className="geColorBtn";u.innerText="";u.appendChild(H);z.appendChild(u);u=document.createElement("img");u.setAttribute("title",mxResources.get("settings"));u.setAttribute("src",Editor.gearImage);u.className=+"geButton";u.style.position="absolute";u.style.boxSizing="border-box";u.style.padding="2px";u.style.top="8px";u.style.right="38px";u.style.width="18px";u.style.height="18px";u.style.opacity="0.6";z.appendChild(u);mxEvent.addListener(u,"click",mxUtils.bind(this,function(f){f=x.freehand.getSmoothing();b.prompt(mxResources.get("smoothing")+" (1-20)",f,function(l){!isNaN(l)&&0<l&&20>=l&&x.freehand.setSmoothing(parseInt(l))})}));mxUtils.br(z);var D=document.createElement("input");D.setAttribute("type","range");D.setAttribute("min","2");D.setAttribute("max","30");D.setAttribute("value",x.freehand.getBrushSize());D.style.width="90%";D.style.visibility="hidden";z.appendChild(D);mxUtils.br(z);u=function(){x.freehand.setPerfectFreehandMode(J.checked);D.style.visibility=J.checked?"visible":"hidden"};mxEvent.addListener(J,"change",u);u();mxEvent.addListener(D,"change",function(){x.freehand.setBrushSize(parseInt(this.value))})}var c=mxUtils.button(mxResources.get("startDrawing"),function(){x.freehand.isDrawing()?-x.freehand.stopDrawing():x.freehand.startDrawing()});c.setAttribute("title",mxResources.get("startDrawing")+" (X)");c.style.width="90%";c.style.marginLeft="0px";c.style.position="relative";c.className="geBtn gePrimaryBtn";z.appendChild(c);this.window=new mxWindow(mxResources.get("freehand"),z,k,m,f,q,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);x.addListener("freehandStateChanged",mxUtils.bind(this,function(){c.innerText=-"";mxUtils.write(c,mxResources.get(x.freehand.isDrawing()?"stopDrawing":"startDrawing"));var g=document.createElement("span");g.className="geShortcutKey";g.style.margin="0 2px 4px 0";mxUtils.write(g,"X");c.appendChild(g);c.setAttribute("title",mxResources.get(x.freehand.isDrawing()?"stopDrawing":"startDrawing")+" (X)");c.className="geBtn"+(x.freehand.isDrawing()?" gePrimaryBtn":"")}));this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit()}));this.window.addListener("hide",mxUtils.bind(this,-function(){x.freehand.isDrawing()&&x.freehand.stopDrawing()}));b.installResizeHandler(this,!1)},AdaptiveColorsWindow=function(b,k,m,f,q){var u=b.editor.graph,x=document.createElement("div");x.style.userSelect="none";x.style.overflow="hidden";x.style.boxSizing="border-box";x.style.padding="12px";x.style.height="100%";var z=function(){x.style.colorScheme=null!=Editor.isDarkMode&&Editor.isDarkMode()?"dark":"light"};z();b.addListener("darkModeChanged",z);z=document.createElement("div");z.className="geDialogSection";+x.freehand.stopDrawing():x.freehand.startDrawing()});c.setAttribute("title",mxResources.get("startDrawing")+" (X)");c.style.width="90%";c.style.marginLeft="0px";c.style.position="relative";c.className="geBtn gePrimaryBtn";z.appendChild(c);this.window=new mxWindow(mxResources.get("freehand"),z,k,m,g,q,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);x.addListener("freehandStateChanged",mxUtils.bind(this,function(){c.innerText=+"";mxUtils.write(c,mxResources.get(x.freehand.isDrawing()?"stopDrawing":"startDrawing"));var f=document.createElement("span");f.className="geShortcutKey";f.style.margin="0 2px 4px 0";mxUtils.write(f,"X");c.appendChild(f);c.setAttribute("title",mxResources.get(x.freehand.isDrawing()?"stopDrawing":"startDrawing")+" (X)");c.className="geBtn"+(x.freehand.isDrawing()?" gePrimaryBtn":"")}));this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit()}));this.window.addListener("hide",mxUtils.bind(this,+function(){x.freehand.isDrawing()&&x.freehand.stopDrawing()}));b.installResizeHandler(this,!1)},AdaptiveColorsWindow=function(b,k,m,g,q){var u=b.editor.graph,x=document.createElement("div");x.style.userSelect="none";x.style.overflow="hidden";x.style.boxSizing="border-box";x.style.padding="12px";x.style.height="100%";var z=function(){x.style.colorScheme=null!=Editor.isDarkMode&&Editor.isDarkMode()?"dark":"light"};z();b.addListener("darkModeChanged",z);z=document.createElement("div");z.className="geDialogSection";var F=b.addCheckbox(z,mxResources.get("background"),!0,null,null,null,null,null,!0),J=b.addCheckbox(z,mxResources.get("labels"),!0,null,null,null,null,null,!0);x.appendChild(z);z=mxUtils.button(mxResources.get("removeIt",[mxResources.get("userDefined")]),function(){b.removeUserDefinedDarkColors(u.isSelectionEmpty()?u.getVerticesAndEdges():u.getSelectionCells(),J.checked,F.checked)});z.className="geBtn gePrimaryBtn";z.style.boxSizing="border-box";z.style.margin="0";z.style.width="100%";x.appendChild(z);-this.window=new mxWindow(mxResources.get("adaptiveColors"),x,k,m,f,q,!0,!0);this.window.destroyOnClose=!1;this.window.setMinimizable(!1);this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!1)},ChatWindow=function(b,k,m,f,q){function u(){var ia={title:null,turns:[],el:document.createElement("div"),lastContext:null},ja=document.createElement("a");ja.style.display=+this.window=new mxWindow(mxResources.get("adaptiveColors"),x,k,m,g,q,!0,!0);this.window.destroyOnClose=!1;this.window.setMinimizable(!1);this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!1)},ChatWindow=function(b,k,m,g,q){function u(){var ia={title:null,turns:[],el:document.createElement("div"),lastContext:null},ja=document.createElement("a");ja.style.display="flex";ja.style.alignItems="center";ja.style.gap="4px";ja.style.padding="5px 6px";ja.style.borderRadius="8px";ja.style.fontSize="11px";ja.style.cursor="default";ja.style.overflow="hidden";ia.item=ja;var oa=document.createElement("span");oa.style.flexGrow="1";oa.style.overflow="hidden";oa.style.textOverflow="ellipsis";oa.style.whiteSpace="nowrap";ja.appendChild(oa);ia.label=oa;var Aa=document.createElement("img");Aa.className="geAdaptiveAsset";Aa.setAttribute("src",Editor.trashImage);Aa.setAttribute("title",mxResources.get("delete"));Aa.style.width="13px";Aa.style.flexShrink="0";Aa.style.cursor="pointer";Aa.style.opacity="0.6";Aa.style.display="none";ja.appendChild(Aa);ia.del=Aa;mxEvent.addListener(ja,"mouseenter",function(){ia.active||(ja.style.backgroundColor="light-dark(#ececec, #333333)")});mxEvent.addListener(ja,"mouseleave",function(){ia.active||(ja.style.backgroundColor="transparent")});mxEvent.addListener(ja,"click",function(ha){mxEvent.getSource(ha)==Aa?b.confirm(mxResources.get("areYouSure"),function(){M(ia)}):ia!=E&&C(ia);mxEvent.consume(ha)});R(ia,null);t.insertBefore(ja,t.firstChild);B.splice(0,0,ia);return ia}function x(){var ia=document.createElement("div");ia.style.textAlign="left";ia.style.padding="6px";ia.style.margin="6px 0";return ia}function z(ia){var ja=document.createElement("div");ja.style.whiteSpace="pre-wrap";ja.style.overflow="auto";ja.innerHTML=Graph.sanitizeHtml(mxUtils.htmlEntities(ia,!1).replace(/\n*^##### (.+)$\n*/gm,"<h5>$1</h5>").replace(/\n*^#### (.+)$\n*/gm,"<h4>$1</h4>").replace(/\n*^### (.+)$\n*/gm,"<h3>$1</h3>").replace(/\n*^## (.+)$\n*/gm,"<h2>$1</h2>").replace(/\n*^# (.+)$\n*/gm,"<h1>$1</h1>").replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").replace(/\*(.+?)\*/g,"<em>$1</em>").replace(/`([^`]+)`/g,"<code>$1</code>"));return ja}function F(ia,ja){var oa=mxResources.get("error")+": ",Aa=document.createElement("div");Aa.style.whiteSpace="pre-wrap";ia=null!=ia&&null!=ia.message?ia.message:"string"===typeof ia?ia:mxResources.get("unknownError");"string"!==typeof ia&&(ia=String(ia));ia.substring(0,oa.length)!=oa&&(ia=oa+ia);mxUtils.write(Aa,ia);if(null!=ja){oa=Aa.appendChild;ia=document.createElement("div");ia.style.display="flex";var ha=document.createElement("img");ha.className="geAdaptiveAsset geLibraryButton";ha.setAttribute("src",Editor.refreshImage);ha.setAttribute("title",mxResources.get("retry"));ia.appendChild(ha);mxEvent.addListener(ha,"click",ja);oa.call(Aa,ia)}return Aa}function J(){null!=ba&&ba();var ia=mxUtils.trim(d.value),ja=P();if(""!=-ia||"clipboard"==ja.kind&&null!=V)try{var oa=V;V=null;fa();null==E.title&&""!=ia&&R(E,40<ia.length?ia.substring(0,40)+"…":ia);pa(E,ia,oa,ja);d.value="";p();ra()}catch(Aa){EditorUi.debug("EditorUi.ChatWindow.send","error",Aa)}}var H=b.editor.graph,D=[];if(0<=mxUtils.indexOf(Editor.aiActions,"create")||0<=mxUtils.indexOf(Editor.aiActions,"update")||0<=mxUtils.indexOf(Editor.aiActions,"assist"))for(var c=0;c<Editor.aiModels.length;c++){var g=Editor.aiModels[c];null!=Editor.aiConfigs[g.config]&&null!=-Editor.aiGlobals[Editor.aiConfigs[g.config].apiKey]&&D.push({id:"model-"+g.name,kind:"model",label:g.name,model:g})}b.isExternalDataComms()&&EditorUi.isMermaidSupported()&&0<=mxUtils.indexOf(Editor.aiActions,"createPublic")&&(0==D.length||1==urlParams.test)&&D.push({id:"public",kind:"public",label:mxResources.get("draw.io")});D.push({id:"clipboard",kind:"clipboard",label:mxResources.get("clipboard")});var l=document.createElement("div");l.style.display="flex";l.style.overflow="hidden";l.style.height=+ia||"clipboard"==ja.kind&&null!=V)try{var oa=V;V=null;fa();null==E.title&&""!=ia&&R(E,40<ia.length?ia.substring(0,40)+"…":ia);pa(E,ia,oa,ja);d.value="";p();ra()}catch(Aa){EditorUi.debug("EditorUi.ChatWindow.send","error",Aa)}}var H=b.editor.graph,D=[];if(0<=mxUtils.indexOf(Editor.aiActions,"create")||0<=mxUtils.indexOf(Editor.aiActions,"update")||0<=mxUtils.indexOf(Editor.aiActions,"assist"))for(var c=0;c<Editor.aiModels.length;c++){var f=Editor.aiModels[c];null!=Editor.aiConfigs[f.config]&&null!=+Editor.aiGlobals[Editor.aiConfigs[f.config].apiKey]&&D.push({id:"model-"+f.name,kind:"model",label:f.name,model:f})}b.isExternalDataComms()&&EditorUi.isMermaidSupported()&&0<=mxUtils.indexOf(Editor.aiActions,"createPublic")&&(0==D.length||1==urlParams.test)&&D.push({id:"public",kind:"public",label:mxResources.get("draw.io")});D.push({id:"clipboard",kind:"clipboard",label:mxResources.get("clipboard")});var l=document.createElement("div");l.style.display="flex";l.style.overflow="hidden";l.style.height="100%";l.style.boxSizing="border-box";var n=function(){l.style.colorScheme=null!=Editor.isDarkMode&&Editor.isDarkMode()?"dark":"light"};n();b.addListener("darkModeChanged",n);mxEvent.addGestureListeners(l,function(ia){null!=b.sidebar&&b.sidebar.hideTooltip()},null,null);var r=document.createElement("div");r.style.display="flex";r.style.flexDirection="column";r.style.flexShrink="0";r.style.width="150px";r.style.boxSizing="border-box";r.style.padding="8px 6px 20px 6px";r.style.borderRight="1px solid light-dark(#e5e5e5, #505050)";-r.style.overflow="hidden";l.appendChild(r);var t=document.createElement("div");t.style.flexGrow="1";t.style.overflow="auto";t.style.marginTop="6px";g=document.createElement("div");g.style.display="flex";g.style.flexDirection="column";g.style.flexGrow="1";g.style.minWidth="0";g.style.boxSizing="border-box";g.style.padding="10px 12px 20px 12px";l.appendChild(g);var v=document.createElement("div");v.style.flexGrow="1";v.style.overflow="auto";v.style.fontSize="12px";v.style.marginRight="-8px";v.style.paddingRight=-"8px";g.appendChild(v);mxEvent.addListener(v,"scroll",function(){null!=b.sidebar&&b.sidebar.hideTooltip()});var B=[],E=null,K=function(){for(var ia=0;ia<B.length;ia++){var ja=B[ia];ja.active=ja==E;ja.item.style.backgroundColor=ja.active?"light-dark(var(--highlight-color), var(--dark-soft-color))":"transparent";ja.del.style.display=null!=ja.el.firstChild?"":"none"}},C=function(ia){E=ia;for(var ja=B.length-1;0<=ja;ja--)B[ja]!=ia&&null==B[ja].el.firstChild&&M(B[ja]);v.innerHTML="";v.appendChild(ia.el);+r.style.overflow="hidden";l.appendChild(r);var t=document.createElement("div");t.style.flexGrow="1";t.style.overflow="auto";t.style.marginTop="6px";f=document.createElement("div");f.style.display="flex";f.style.flexDirection="column";f.style.flexGrow="1";f.style.minWidth="0";f.style.boxSizing="border-box";f.style.padding="10px 12px 20px 12px";l.appendChild(f);var v=document.createElement("div");v.style.flexGrow="1";v.style.overflow="auto";v.style.fontSize="12px";v.style.marginRight="-8px";v.style.paddingRight=+"8px";f.appendChild(v);mxEvent.addListener(v,"scroll",function(){null!=b.sidebar&&b.sidebar.hideTooltip()});var B=[],E=null,K=function(){for(var ia=0;ia<B.length;ia++){var ja=B[ia];ja.active=ja==E;ja.item.style.backgroundColor=ja.active?"light-dark(var(--highlight-color), var(--dark-soft-color))":"transparent";ja.del.style.display=null!=ja.el.firstChild?"":"none"}},C=function(ia){E=ia;for(var ja=B.length-1;0<=ja;ja--)B[ja]!=ia&&null==B[ja].el.firstChild&&M(B[ja]);v.innerHTML="";v.appendChild(ia.el);v.scrollTop=v.scrollHeight;K();ra();d.focus()},R=function(ia,ja){ia.title=ja;ia.label.innerHTML="";mxUtils.write(ia.label,null!=ja?ja:mxResources.get("describeYourDiagram"));ia.label.style.fontStyle=null!=ja?"":"italic";ia.item.setAttribute("title",null!=ja?ja:mxResources.get("describeYourDiagram"))},M=function(ia){var ja=mxUtils.indexOf(B,ia);0<=ja&&B.splice(ja,1);null!=ia.item.parentNode&&ia.item.parentNode.removeChild(ia.item);ia==E&&(0<B.length?C(B[Math.min(ja,B.length-1)]):C(u()))},O=document.createElement("a");O.style.display="flex";O.style.alignItems="center";O.style.gap="5px";O.style.flexShrink="0";O.style.padding="5px 6px";O.style.borderRadius="8px";O.style.fontSize="11px";O.style.fontWeight="bold";O.style.cursor="pointer";O.style.overflow="hidden";O.style.whiteSpace="nowrap";var U=document.createElement("img");U.className="geAdaptiveAsset";U.setAttribute("src",Editor.plusImage);U.style.width="13px";U.style.flexShrink="0";O.appendChild(U);U=document.createElement("span");U.style.overflow="hidden";U.style.textOverflow="ellipsis";mxUtils.write(U,mxResources.get("newChat"));O.appendChild(U);mxEvent.addListener(O,"mouseenter",function(){O.style.backgroundColor="light-dark(#ececec, #333333)"});mxEvent.addListener(O,"mouseleave",function(){O.style.backgroundColor="transparent"});mxEvent.addListener(O,"click",function(){null==E||null!=E.el.firstChild?C(u()):d.focus()});r.appendChild(O);r.appendChild(t);r=document.createElement("div");r.style.borderRadius="12px";r.style.backgroundColor="light-dark(var(--highlight-color), var(--dark-soft-color))";@@ -13347,7 +13432,7 @@ N.style.border="1px solid light-dark(#d0d0d0, #505050)";N.style.boxShadow="0 4pxja.toLocaleString()+" / "+ia.toLocaleString()+" ("+oa+"%)");N.appendChild(ha);ia=document.createElement("div");ia.style.color=0>Aa?"#e53935":"";mxUtils.write(ia,mxResources.get("charactersRemaining",[Aa.toLocaleString()]));N.appendChild(ia);Aa=document.createElement("div");Aa.style.marginTop="6px";Aa.style.opacity="0.7";mxUtils.write(Aa,mxResources.get("aiFreeModelHint"));N.appendChild(Aa)},la=function(ia){ia=mxEvent.getSource(ia);ia==S||S.contains(ia)||ia==N||N.contains(ia)||aa()};aa=function(){"none"!=N.style.display&&(N.style.display="none",mxEvent.removeListener(document,"mousedown",la))};mxEvent.addListener(S,"click",function(ia){if("none"==N.style.display){ea();N.style.display="block";var ja=S.getBoundingClientRect(),oa=N.getBoundingClientRect();N.style.left=Math.max(8,ja.right-oa.width)+"px";N.style.top=(8>ja.top-oa.height-8?ja.bottom+8:ja.top-oa.height-8)+"px";mxEvent.addListener(document,"mousedown",la)}else aa();mxEvent.consume(ia)});var ra=function(){var ia=Editor.maxPublicPromptLength;if("public"!=P().kind||0>=ia)S.style.display="none",aa();else{var ja=ca();if(0==ja)S.style.display="none",aa();else{var oa=ja/ia;da.setAttribute("stroke-dasharray",100*Math.max(0,Math.min(1,oa))+" 100");da.setAttribute("stroke",1<oa?"#e53935":.8<=oa?"#f9a825":"#4d90fe");S.setAttribute("title",mxResources.get("charactersRemaining",[(ia-ja).toLocaleString()])+" — "+ja.toLocaleString()+"/"+ia.toLocaleString()+" ("+Math.round(100*oa)+"%)");S.style.display="flex";"none"!=N.style.display&&ea()}}};L=document.createElement("img");-L.setAttribute("src",Editor.sendImage);L.setAttribute("title",mxResources.get("sendMessage"));L.className="geAdaptiveAsset";L.style.cursor="pointer";L.style.opacity="0.6";L.style.height="19px";L.style.flexShrink="0";U.appendChild(L);g.appendChild(r);c();var qa=function(ia){var ja=new mxCodec(mxUtils.createXmlDocument());ja.isObjectIgnored=function(oa){return oa.constructor==mxCell&&!H.model.isRoot(oa)&&!H.model.isLayer(oa)&&!(null!=oa.id&&ia[oa.id])};ja=ja.encode(H.getModel());ja.ownerDocument.appendChild(ja);+L.setAttribute("src",Editor.sendImage);L.setAttribute("title",mxResources.get("sendMessage"));L.className="geAdaptiveAsset";L.style.cursor="pointer";L.style.opacity="0.6";L.style.height="19px";L.style.flexShrink="0";U.appendChild(L);f.appendChild(r);c();var qa=function(ia){var ja=new mxCodec(mxUtils.createXmlDocument());ja.isObjectIgnored=function(oa){return oa.constructor==mxCell&&!H.model.isRoot(oa)&&!H.model.isLayer(oa)&&!(null!=oa.id&&ia[oa.id])};ja=ja.encode(H.getModel());ja.ownerDocument.appendChild(ja);return ja},na=function(ia,ja,oa){var Aa=null;if(null!=ja&&1<ja.length&&0<ja[1].length)try{if(Aa=b.stringToCells(ja[1]),0==Aa.length){var ha=Editor.extractGraphModelFromText(ja[1]);null!=ha&&0<ha[1].length&&ha[1]!=ja[1]&&(Aa=b.stringToCells(ha[1]))}}catch(Ga){throw Error(Ga.toString()+"\n\n"+ja[1]);}ia.innerHTML="";if(null!=Aa&&0<Aa.length){var ma=H.getBoundingBoxFromGeometry(Aa);b.sidebar.graph.moveCells(Aa,-ma.x,-ma.y);var ka=null,ta=function(){var Ga=H.getFreeInsertPoint();Ga=H.importCells(Aa,Ga.x,Ga.y);H.setSelectionCells(Ga);return Ga};ha=function(Ga){null!=b.sidebar&&b.sidebar.hideTooltip();var La=null;H.model.beginUpdate();try{La=ta()}finally{H.model.endUpdate()}if(null!=oa.onInsert)oa.onInsert(La);null!=H.getSelectionCell()&&H.scrollCellToVisible(H.getSelectionCell());null!=Ga&&mxEvent.consume(Ga)};var Ca=null==oa.applyCtx?null:function(Ga){null!=b.sidebar&&b.sidebar.hideTooltip();try{var La=oa.applyCtx.page,Ha=null;if(oa.applyCtx.fresh){var Oa=(new mxCodec(mxUtils.createXmlDocument())).encode(H.getModel());Oa.ownerDocument.appendChild(Oa);var nb=new mxCodec(Oa.ownerDocument);Ha=new mxGraphModel;nb.decode(Oa,Ha);La=b.currentPage}else{if(null==ka){var ab=new mxCodec(oa.applyCtx.xmlNode.ownerDocument);ka=new mxGraphModel;ab.decode(oa.applyCtx.xmlNode,ka)}Ha=ka}Oa=null;H.model.beginUpdate();try{if(null!=Ha&&null!=La&&null!=b.getPageIndex(La)){b.selectPage(La);var tb=mxUtils.parseXml(ja[1]),yb=new mxCodec(tb),ib=new mxGraphModel;yb.decode(tb.documentElement,ib);var gb=b.diffCells(Ha.root,ib.root);b.patchPage(La,@@ -13373,21 +13458,21 @@ infoLabel:1==urlParams.test?Aa.label+" ("+Db+" ms)":null},Ua)}else{Za="Error: "+null)),ka.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})):(Oa(),b.generateOpenAiMermaidDiagram(ib,function(Ua,vb){try{var jb=Date.now()-Ga;na(ka,["",Ua,""],{prompt:ja,applyCtx:Ca,retryFn:La,partial:vb,onInsert:sa,onApplied:Ea,infoLabel:1==urlParams.test?Aa.label+" ("+jb+" ms)":null});ta.record(Ua)}catch(qb){Ha(qb)}},Ha))};La()}else{ha=null;ha=""==ja&&null!=oa?oa.data:Editor.replacePlaceholders(Editor.aiGlobals[null!=oa?"update":"create"],function(Sa){return"data"==Sa&&null!=oa?oa.data:null})+"\n\n"+ja;var gb=null,rb=function(){var Sa=mxUtils.button(mxResources.get("pasteResponse"),function(){try{navigator.clipboard.readText().then(function(Ua){try{ka.innerHTML="",xa(ka,mxUtils.trim(Ua),{prompt:""!=ja?ja:oa.label,applyCtx:Ca,recordTurn:ta.record,onInsert:sa,onApplied:Ea},gb)}catch(vb){gb(vb)}})["catch"](gb)}catch(Ua){gb(Ua)}});Sa.className="geBtn";Sa.style.margin="6px 0 0 0";ka.appendChild(Sa)};gb=function(Sa){ka.innerHTML="";ka.appendChild(F(Sa,null));rb();ka.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})};b.writeTextToClipboard(ha,function(Sa){Ha(Sa)},function(){ka.innerHTML="";var Sa=document.createElement("div");mxUtils.write(Sa,mxResources.get("copiedToClipboard"));ka.appendChild(Sa);rb();ka.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})})}};mxEvent.addListener(L,"click",J);mxEvent.addListener(d,"keydown",function(ia){13!=ia.keyCode||mxEvent.isShiftDown(ia)||(J(),mxEvent.consume(ia))});this.generate=mxUtils.bind(this,function(ia){null!=E&&null==-E.el.firstChild||C(u());d.value=ia;p();J()});C(u());this.window=new mxWindow(mxResources.get("generate"),l,k,m,f,q,!0,!0);this.window.minimumSize=new mxRectangle(0,0,280,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);b.isOffline()||(k=b.createHelpIcon("https://www.drawio.com/doc/faq/configure-ai-options"),k.style.cursor="help",k.style.opacity="0.5",this.window.buttons.insertBefore(k,this.window.buttons.firstChild));this.window.addListener("show",-mxUtils.bind(this,function(){this.window.fit();d.focus()}));this.window.addListener("hide",function(){aa()});this.window.addListener(mxEvent.DESTROY,function(){aa();b.removeListener(n);null!=N.parentNode&&N.parentNode.removeChild(N)});b.installResizeHandler(this,!0)},TagsWindow=function(b,k,m,f,q){var u=b.editor.graph,x=null;if(!b.isOffline()||mxClient.IS_CHROMEAPP)x=b.menus.createHelpLink("https://www.drawio.com/blog/tags-in-diagrams");var z=b.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return this.window.isVisible()}),-null,function(F,J){if(u.isEnabled()){var H=new FilenameDialog(b,"",mxResources.get("add"),function(D){b.hideDialog();if(null!=D&&0<D.length){D=D.split(" ");for(var c=[],g=[],l=0;l<D.length;l++){var n=mxUtils.trim(D[l]);""!=n&&(g.push(n),0>mxUtils.indexOf(F,n)&&c.push(n))}u.isSelectionEmpty()?J(F.concat(c)):u.addTagsForCells(u.getSelectionCells(),g)}},mxResources.get("tags"),null,null,"https://www.drawio.com/blog/tags-in-diagrams");b.showDialog(H.container,320,80,!0,!0);H.init()}},x);x=z.div;this.window=-new mxWindow(mxResources.get("tags"),x,k,m,f,q,!0,!0);this.window.minimumSize=new mxRectangle(0,0,212,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){z.refresh();this.window.fit()}));b.installResizeHandler(this,!0)},AnimationDialog=function(b,k,m,f,q,u){u=u||{};var x=u.kind||"page",z=b.editor.graph,F=SelectorChips.create(z,b),J=new Set,H=[],D=function(){return u.windowTitleKey?-mxResources.get(u.windowTitleKey,null,u.windowTitleFallback||"Animation"):mxResources.get("animation")},c=document.createElement("div");c.style.cssText="padding:18px;box-sizing:border-box;height:100%;display:flex;flex-direction:column;font-size:13px;overflow:hidden;color:light-dark(var(--strong-text-color), var(--dark-strong-text-color))";var g=null,l=null;if(u.showTitle){var n=document.createElement("div");n.style.cssText="display:flex;align-items:center;gap:8px;margin-bottom:8px;flex:0 0 auto";-l=document.createElement("span");l.style.cssText="font-weight:600;flex:0 0 auto";var r=function(){l.textContent="";mxUtils.write(l,mxResources.get("title")+":")};r();H.push(r);n.appendChild(l);g=document.createElement("input");g.type="text";g.style.cssText="flex:1;padding:4px 6px;border:1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));border-radius:4px;background:light-dark(var(--field-color), var(--dark-field-color));color:light-dark(var(--strong-text-color), var(--dark-strong-text-color))";-var t=function(){g.placeholder=mxResources.get("optional");g.title=mxResources.get("title")};t();H.push(t);n.appendChild(g);c.appendChild(n)}var v=document.createElement("div");v.style.cssText="display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;flex:0 0 auto";var B=null,E=null;if("page"==x){var K=document.createElement("label");K.className="geDialogHint";K.style.cssText="display:flex;align-items:center;gap:4px;cursor:pointer";B=document.createElement("input");B.type="checkbox";+E.el.firstChild||C(u());d.value=ia;p();J()});C(u());this.window=new mxWindow(mxResources.get("generate"),l,k,m,g,q,!0,!0);this.window.minimumSize=new mxRectangle(0,0,280,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);b.isOffline()||(k=b.createHelpIcon("https://www.drawio.com/doc/faq/configure-ai-options"),k.style.cursor="help",k.style.opacity="0.5",this.window.buttons.insertBefore(k,this.window.buttons.firstChild));this.window.addListener("show",+mxUtils.bind(this,function(){this.window.fit();d.focus()}));this.window.addListener("hide",function(){aa()});this.window.addListener(mxEvent.DESTROY,function(){aa();b.removeListener(n);null!=N.parentNode&&N.parentNode.removeChild(N)});b.installResizeHandler(this,!0)},TagsWindow=function(b,k,m,g,q){var u=b.editor.graph,x=null;if(!b.isOffline()||mxClient.IS_CHROMEAPP)x=b.menus.createHelpLink("https://www.drawio.com/blog/tags-in-diagrams");var z=b.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return this.window.isVisible()}),+null,function(F,J){if(u.isEnabled()){var H=new FilenameDialog(b,"",mxResources.get("add"),function(D){b.hideDialog();if(null!=D&&0<D.length){D=D.split(" ");for(var c=[],f=[],l=0;l<D.length;l++){var n=mxUtils.trim(D[l]);""!=n&&(f.push(n),0>mxUtils.indexOf(F,n)&&c.push(n))}u.isSelectionEmpty()?J(F.concat(c)):u.addTagsForCells(u.getSelectionCells(),f)}},mxResources.get("tags"),null,null,"https://www.drawio.com/blog/tags-in-diagrams");b.showDialog(H.container,320,80,!0,!0);H.init()}},x);x=z.div;this.window=+new mxWindow(mxResources.get("tags"),x,k,m,g,q,!0,!0);this.window.minimumSize=new mxRectangle(0,0,212,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){z.refresh();this.window.fit()}));b.installResizeHandler(this,!0)},AnimationDialog=function(b,k,m,g,q,u){u=u||{};var x=u.kind||"page",z=b.editor.graph,F=SelectorChips.create(z,b),J=new Set,H=[],D=function(){return u.windowTitleKey?+mxResources.get(u.windowTitleKey,null,u.windowTitleFallback||"Animation"):mxResources.get("animation")},c=document.createElement("div");c.style.cssText="padding:18px;box-sizing:border-box;height:100%;display:flex;flex-direction:column;font-size:13px;overflow:hidden;color:light-dark(var(--strong-text-color), var(--dark-strong-text-color))";var f=null,l=null;if(u.showTitle){var n=document.createElement("div");n.style.cssText="display:flex;align-items:center;gap:8px;margin-bottom:8px;flex:0 0 auto";+l=document.createElement("span");l.style.cssText="font-weight:600;flex:0 0 auto";var r=function(){l.textContent="";mxUtils.write(l,mxResources.get("title")+":")};r();H.push(r);n.appendChild(l);f=document.createElement("input");f.type="text";f.style.cssText="flex:1;padding:4px 6px;border:1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));border-radius:4px;background:light-dark(var(--field-color), var(--dark-field-color));color:light-dark(var(--strong-text-color), var(--dark-strong-text-color))";+var t=function(){f.placeholder=mxResources.get("optional");f.title=mxResources.get("title")};t();H.push(t);n.appendChild(f);c.appendChild(n)}var v=document.createElement("div");v.style.cssText="display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;flex:0 0 auto";var B=null,E=null;if("page"==x){var K=document.createElement("label");K.className="geDialogHint";K.style.cssText="display:flex;align-items:center;gap:4px;cursor:pointer";B=document.createElement("input");B.type="checkbox";B.style.margin="0";K.appendChild(B);var C=document.createElement("span"),R=function(){C.textContent="";mxUtils.write(C,mxResources.get("loop"))};R();H.push(R);K.appendChild(C);v.appendChild(K);var M=document.createElement("span");M.style.cssText="flex:1;display:flex;justify-content:center";var O=document.createElement("label");O.className="geDialogHint";O.style.cssText="display:flex;align-items:center;gap:4px;cursor:pointer";E=document.createElement("input");E.type="checkbox";E.style.margin="0";O.appendChild(E);var U=document.createElement("span"),T=function(){U.textContent="";mxUtils.write(U,mxResources.get("disabled",null,"Disabled"))};T();H.push(T);O.appendChild(U);M.appendChild(O);v.appendChild(M)}else{var V=document.createElement("span");v.appendChild(V)}var fa=document.createElement("label");fa.className="geDialogHint";fa.style.cssText="display:flex;align-items:center;gap:4px;cursor:pointer";var y=document.createElement("input");y.type="checkbox";y.style.margin="0";fa.appendChild(y);var d=document.createElement("span"),p=function(){d.textContent="";mxUtils.write(d,mxResources.get("editText",null,"Edit Text"))};p();H.push(p);fa.appendChild(d);v.appendChild(fa);c.appendChild(v);var A=document.createElement("div");A.style.cssText="flex:1 1 0;min-height:0;overflow:auto;padding:4px;box-sizing:border-box;border:1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));border-radius:6px;background:light-dark(var(--field-color), var(--dark-field-color))";containDragEvents(A);c.appendChild(A);var G=document.createElement("textarea");G.spellcheck=!1;G.style.cssText="display:none;width:100%;flex:1 1 0;min-height:0;resize:none;font-family:monospace;font-size:12px;padding:8px;box-sizing:border-box;border:1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));border-radius:6px;background:light-dark(var(--field-color), var(--dark-field-color));color:light-dark(var(--strong-text-color), var(--dark-strong-text-color))";c.appendChild(G);var I=document.createElement("div");I.style.cssText="display:none;flex:0 0 auto;margin-top:6px;padding:6px 8px;border-radius:6px;font-size:12px;background:light-dark(#fde7e9,#3a1d1f);color:light-dark(#b3261e,#ffb4ab);border:1px solid light-dark(#f1aeb5,#7a2e2e);white-space:pre-wrap;word-break:break-word";c.appendChild(I);var L=!0,P=function(ua){L=null==ua;I.style.display=null==ua?"none":"block";null!=ua&&(I.textContent=ua)},Q=function(ua,ya){ya=null!=ya&&null!=ya.message?ya.message:String(ya);if(!/line \d+/i.test(ya)){var Da=ya.match(/at position (\d+)/i);null!=Da&&(Da=Math.min(parseInt(Da[1],10),ua.length),ua=ua.substring(0,Da).split("\n"),ya+=" (line "+ua.length+" column "+(ua[ua.length-1].length+1)+")")}return mxResources.get("error")+": "+ya},ba=function(){try{Editor.parseAnimationData(G.value),P(null)}catch(ua){P(Q(G.value,ua))}},W={steps:[]},Y=z.getModel().getRoot(),X=function(){if("page"==x){var ua=z.getAttributeForCell(Y,"animation");try{W=Editor.parseAnimationData(ua)}catch(ya){W=Editor.parseAnimationData(null)}}else ua=u.initial,W=Array.isArray(ua)?-{steps:JSON.parse(JSON.stringify(ua))}:null!=ua&&"object"==typeof ua?JSON.parse(JSON.stringify(ua)):{steps:[]};null==W.steps&&(W.steps=[]);"page"!=x&&(null!=W.loop&&delete W.loop,null!=W.enabled&&delete W.enabled);G.value=JSON.stringify(W,null,2);null!=g&&(g.value=W.title||"");null!=B&&(B.checked=null==W.loop?!0:!!W.loop);null!=E&&(E.checked=null==W.enabled?!1:!W.enabled)};X();var ca=!1,S=null,Z=null,da=function(ua){ca=ua;null!=S&&(S.className="geBtn"+(ca?" gePrimaryBtn":""));null!=Z&&(Z.className=-"geBtn"+(ca?"":" gePrimaryBtn"))};null!=E&&E.addEventListener("change",function(){W.enabled=!E.checked;G.value=JSON.stringify(W,null,2);da(!0)});null!=B&&B.addEventListener("change",function(){W.loop=!!B.checked;G.value=JSON.stringify(W,null,2);da(!0)});null!=g&&(g.addEventListener("input",function(){g.value?W.title=g.value:delete W.title;da(!0)}),g.addEventListener("keydown",function(ua){13!==ua.keyCode||ua.shiftKey||ua.isComposing||null==S||(ua.preventDefault(),S.click())}));var N="wait fadeIn fadeOut fadeTo opacity wipeIn wipeOut popIn popOut flow toggle show hide select style toggleStyle highlight scroll viewbox open tags".split(" "),+{steps:JSON.parse(JSON.stringify(ua))}:null!=ua&&"object"==typeof ua?JSON.parse(JSON.stringify(ua)):{steps:[]};null==W.steps&&(W.steps=[]);"page"!=x&&(null!=W.loop&&delete W.loop,null!=W.enabled&&delete W.enabled);G.value=JSON.stringify(W,null,2);null!=f&&(f.value=W.title||"");null!=B&&(B.checked=null==W.loop?!0:!!W.loop);null!=E&&(E.checked=null==W.enabled?!1:!W.enabled)};X();var ca=!1,S=null,Z=null,da=function(ua){ca=ua;null!=S&&(S.className="geBtn"+(ca?" gePrimaryBtn":""));null!=Z&&(Z.className=+"geBtn"+(ca?"":" gePrimaryBtn"))};null!=E&&E.addEventListener("change",function(){W.enabled=!E.checked;G.value=JSON.stringify(W,null,2);da(!0)});null!=B&&B.addEventListener("change",function(){W.loop=!!B.checked;G.value=JSON.stringify(W,null,2);da(!0)});null!=f&&(f.addEventListener("input",function(){f.value?W.title=f.value:delete W.title;da(!0)}),f.addEventListener("keydown",function(ua){13!==ua.keyCode||ua.shiftKey||ua.isComposing||null==S||(ua.preventDefault(),S.click())}));var N="wait fadeIn fadeOut fadeTo opacity wipeIn wipeOut popIn popOut flow toggle show hide select style toggleStyle highlight scroll viewbox open tags".split(" "),aa=function(ua){for(var ya=0;ya<N.length;ya++)if(void 0!==ua[N[ya]])return N[ya];return null},ea=function(ua){var ya=aa(ua);return null==ya||"wait"==ya?null:ua[ya]},la=function(ua){var ya=aa(ua);if("fadeTo"==ya)return ya=ua.fadeTo.value,1===ya?{icon:"↗",text:mxResources.get("fadeIn",null,"Fade In")}:0===ya?{icon:"↘",text:mxResources.get("fadeOut",null,"Fade Out")}:{icon:"◐",text:mxResources.get("fadeTo",null,"Fade To")};if("flow"==ya)return!0===ua.flow.start?{icon:"➡",text:mxResources.get("flowOn",null,"Flow On")}:!1===ua.flow.start?{icon:"⏸",text:mxResources.get("flowOff",null,"Flow Off")}:{icon:"➡",text:mxResources.get("flowOn",null,"Flow Toggle")};if("opacity"==ya)return{icon:"◐",text:mxResources.get("setOpacity",null,"Set Opacity")};ua=null!=ya?CustomActionDialog.SCHEMAS[ya]:null;return null!=ua?{icon:ua.icon||"?",text:mxResources.get(ua.labelKey||ya,null,ua.label||ya)}:{icon:"?",text:ya||"?"}},ra=function(){G.value=JSON.stringify(W,null,2);da(!0);Ha()},qa=function(){G.value=JSON.stringify(W,null,2);da(!0)},na=new Set,xa=null,wa=null,za=null,Ba=null,va=null,pa=function(ua,ya){null!=ua&&(ua.disabled=!ya,ua.style.opacity=ya?"":"0.3",ua.style.cursor=ya?"pointer":"default")},ia=function(){var ua=AnimationDialog.stepsClipboard;pa(wa,0<na.size);pa(Ba,0<na.size);pa(va,0<na.size);pa(za,null!=ua&&0<ua.length)},ja=function(){return Array.from(na).sort(function(ua,ya){return ua-ya})},oa=function(){if(0!=na.size){for(var ua=ja(),ya=[],Da=0;Da<ua.length;Da++)ya.push(JSON.parse(JSON.stringify(W.steps[ua[Da]])));@@ -13436,58 +13521,58 @@ ya;ua++)Da.add(ua);if(Da.size===J.size){ua=!0;ya=$jscomp.makeIterator(Da);for(va(ya.loop=!1);!1===W.enabled&&(ya.enabled=!1);ya=0<ya.steps.length?JSON.stringify({animation:ya}):null;z.setAttributeForCell(ua,"animation",ya);z.setAttributeForCell(ua,"animationHideInitial",null)}else"function"==typeof u.save&&u.save(W);da(!1)};Z=mxUtils.button(mxResources.get("preview"),function(){Ta();Pa();Ab=new Editor.AnimationPlayer(z,W);Ab.snapshot=[];Ab.play({done:function(){Ab=null;Ra(-1)},onStep:function(ua,ya){Ra(ua,ya)}})});Z.className="geBtn";H.push(function(){Z.textContent=mxResources.get("preview");Z.title=mxResources.get("preview")});Z.title=mxResources.get("preview");Qa.appendChild(Z);var hb=mxUtils.button(mxResources.get("reset"),function(){Ta();Ra(-1);Ka()});hb.className="geBtn";H.push(function(){var ua=mxResources.get("reset");hb.textContent=ua;hb.title=ua});hb.title=mxResources.get("reset");Lb=hb;Fa();Qa.appendChild(hb);V=document.createElement("span");V.style.flex="1 1 auto";Qa.appendChild(V);var zb=mxUtils.button(mxResources.get("cancel"),function(){ca?lb():Xa.window.setVisible(!1)});zb.className="geBtn";H.push(function(){zb.textContent=mxResources.get("cancel");zb.title=mxResources.get("cancel")});zb.title=mxResources.get("cancel");Qa.appendChild(zb);S=mxUtils.button(mxResources.get("save"),function(){y.checked&&!L?(ba(),G.focus()):(fb(),Xa.window.setVisible(!1))});S.className="geBtn gePrimaryBtn";H.push(function(){S.textContent=mxResources.get("save");S.title=mxResources.get("save")});S.title=mxResources.get("save");Qa.appendChild(S);c.appendChild(Qa);this.window=new mxWindow(D(),-c,k,m,f,q,!0,!0);this.window.minimumSize=new mxRectangle(0,0,360,360);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);var xb=function(){"function"==typeof F.closePopover&&F.closePopover()};this.window.addListener(mxEvent.MOVE,xb);this.window.addListener(mxEvent.RESIZE,xb);var Jb=function(){for(var ua=0;ua<H.length;ua++)try{H[ua]()}catch(ya){}null!=Xa.window&&null!=Xa.window.title&&(Xa.window.title.innerHTML=mxUtils.htmlEntities(D()));+c,k,m,g,q,!0,!0);this.window.minimumSize=new mxRectangle(0,0,360,360);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);var xb=function(){"function"==typeof F.closePopover&&F.closePopover()};this.window.addListener(mxEvent.MOVE,xb);this.window.addListener(mxEvent.RESIZE,xb);var Jb=function(){for(var ua=0;ua<H.length;ua++)try{H[ua]()}catch(ya){}null!=Xa.window&&null!=Xa.window.title&&(Xa.window.title.innerHTML=mxUtils.htmlEntities(D()));Ha()};b.addListener("languageChanged",Jb);this.window.addListener(mxEvent.DESTROY,function(){b.removeListener(Jb)});var lb=function(){b.confirm(mxResources.get("allChangesLost"),null,function(){da(!1);Xa.window.setVisible(!1)},mxResources.get("cancel"),mxResources.get("discardChanges"))},Fb=Xa.window.setVisible.bind(Xa.window);Xa.window.setVisible=function(ua){!1===ua&&ca&&fb();Fb(ua)};this.window.addListener("hide",function(){Ta();Ra(-1);Ka()});"page"==x&&z.addListener(mxEvent.ROOT,function(){var ua=z.getModel().getRoot();if(ua!=Y){if(ca){var ya={steps:W.steps};!1===W.loop&&(ya.loop=!1);!1===W.enabled&&(ya.enabled=!1);ya=0<W.steps.length?JSON.stringify({animation:ya}):null;z.setAttributeForCell(Y,"animation",ya)}Y=ua;X();da(!1);na.clear();xa=null;Ha();Ta()}});var Ya=function(){da(!1);Xa.window.setVisible(!1)};b.editor.addListener("fileLoaded",Ya);this.window.addListener(mxEvent.DESTROY,function(){b.editor.removeListener(Ya)});installDialogDocking(b,this);this.window.setVisible(!0);window.setTimeout(mxUtils.bind(this,function(){null==this.window||null==this.window.div||this.window.minimized||null!=this.window.dockState||this.window.setLocation(this.window.getX(),this.window.getY())}),0)};AnimationDialog.stepsClipboard=null;-var CustomGitLabUrlWarningDialog=function(b,k){var m=document.createElement("div"),f=document.createElement("h3");mxUtils.write(f,mxResources.get("customGitlabUrlTitle"));m.appendChild(f);f=document.createElement("p");mxUtils.write(f,mxResources.get("customGitlabUrlWarning"));m.appendChild(f);f=document.createElement("p");var q=document.createElement("strong");mxUtils.write(q,mxResources.get("customGitlabUrlServer")+" ");f.appendChild(q);q=document.createElement("code");mxUtils.write(q,k);f.appendChild(q);-m.appendChild(f);k=document.createElement("p");f=document.createElement("a");f.setAttribute("href","https://github.com/jgraph/drawio/issues/493");f.setAttribute("target","_blank");f.setAttribute("rel","noopener noreferrer");mxUtils.write(f,mxResources.get("customGitlabUrlLearnMore"));k.appendChild(f);m.appendChild(k);this.container=(new CustomDialog(b,m,null,null,mxResources.get("close"),null,null,!0)).container},AuthDialog=function(b,k,m,f){var q=document.createElement("div");q.style.textAlign="center";+var CustomGitLabUrlWarningDialog=function(b,k){var m=document.createElement("div"),g=document.createElement("h3");mxUtils.write(g,mxResources.get("customGitlabUrlTitle"));m.appendChild(g);g=document.createElement("p");mxUtils.write(g,mxResources.get("customGitlabUrlWarning"));m.appendChild(g);g=document.createElement("p");var q=document.createElement("strong");mxUtils.write(q,mxResources.get("customGitlabUrlServer")+" ");g.appendChild(q);q=document.createElement("code");mxUtils.write(q,k);g.appendChild(q);+m.appendChild(g);k=document.createElement("p");g=document.createElement("a");g.setAttribute("href","https://github.com/jgraph/drawio/issues/493");g.setAttribute("target","_blank");g.setAttribute("rel","noopener noreferrer");mxUtils.write(g,mxResources.get("customGitlabUrlLearnMore"));k.appendChild(g);m.appendChild(k);this.container=(new CustomDialog(b,m,null,null,mxResources.get("close"),null,null,!0)).container},AuthDialog=function(b,k,m,g){var q=document.createElement("div");q.style.textAlign="center";var u=document.createElement("p");u.style.fontSize="16pt";u.style.padding="0px";u.style.margin="0px";u.style.color="gray";mxUtils.write(u,mxResources.get("authorizationRequired"));var x="Unknown",z=document.createElement("img");z.setAttribute("border","0");z.setAttribute("align","absmiddle");z.style.marginRight="10px";k==b.drive?(x=mxResources.get("googleDrive"),z.src=IMAGE_PATH+"/google-drive-logo-white.svg"):k==b.dropbox?(x=mxResources.get("dropbox"),z.src=IMAGE_PATH+"/dropbox-logo-white.svg"):k==b.oneDrive?(x=mxResources.get("oneDrive"),z.src=IMAGE_PATH+"/onedrive-logo-white.svg"):k==b.gitHub?(x=mxResources.get("github"),z.src=IMAGE_PATH+"/github-logo-white.svg"):k==b.gitLab?(x=mxResources.get("gitlab"),z.src=IMAGE_PATH+"/gitlab-logo.svg",z.style.width="32px"):k==b.trello?(x=mxResources.get("trello"),z.src=IMAGE_PATH+"/trello-logo-white.svg"):k==b.m365&&(x=mxResources.get("m365"),z.src=IMAGE_PATH+"/onedrive-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizeThisAppIn",-[x]));var F=document.createElement("input");F.setAttribute("type","checkbox");x=mxUtils.button(mxResources.get("authorize"),function(){f(F.checked)});x.insertBefore(z,x.firstChild);x.style.marginTop="6px";x.className="geBigButton";x.style.fontSize="18px";x.style.padding="14px";q.appendChild(u);q.appendChild(b);q.appendChild(x);m&&(m=document.createElement("p"),m.style.marginTop="20px",m.appendChild(F),u=document.createElement("span"),mxUtils.write(u," "+mxResources.get("rememberMe")),m.appendChild(u),-q.appendChild(m),F.checked=!0,F.defaultChecked=!0,mxEvent.addListener(u,"click",function(J){F.checked=!F.checked;mxEvent.consume(J)}));this.container=q},MoreShapesDialog=function(b,k,m){m=null!=m?m:b.sidebar.entries;var f=document.createElement("div"),q=[];if(null!=b.sidebar.customEntries)for(var u=0;u<b.sidebar.customEntries.length;u++){for(var x=b.sidebar.customEntries[u]||{},z={title:b.getResource(x.title),entries:[]},F=0;null!=x.entries&&F<x.entries.length;F++){var J=x.entries[F];z.entries.push({id:J.id,+[x]));var F=document.createElement("input");F.setAttribute("type","checkbox");x=mxUtils.button(mxResources.get("authorize"),function(){g(F.checked)});x.insertBefore(z,x.firstChild);x.style.marginTop="6px";x.className="geBigButton";x.style.fontSize="18px";x.style.padding="14px";q.appendChild(u);q.appendChild(b);q.appendChild(x);m&&(m=document.createElement("p"),m.style.marginTop="20px",m.appendChild(F),u=document.createElement("span"),mxUtils.write(u," "+mxResources.get("rememberMe")),m.appendChild(u),+q.appendChild(m),F.checked=!0,F.defaultChecked=!0,mxEvent.addListener(u,"click",function(J){F.checked=!F.checked;mxEvent.consume(J)}));this.container=q},MoreShapesDialog=function(b,k,m){m=null!=m?m:b.sidebar.entries;var g=document.createElement("div"),q=[];if(null!=b.sidebar.customEntries)for(var u=0;u<b.sidebar.customEntries.length;u++){for(var x=b.sidebar.customEntries[u]||{},z={title:b.getResource(x.title),entries:[]},F=0;null!=x.entries&&F<x.entries.length;F++){var J=x.entries[F];z.entries.push({id:J.id,title:b.getResource(J.title),desc:b.getResource(J.desc),image:J.preview})}0<z.entries.length&&q.push(z)}for(u=0;u<m.length;u++)if(null==b.sidebar.enabledLibraries)q.push(m[u]);else{z={title:m[u].title,entries:[]};for(F=0;F<m[u].entries.length;F++)0<=mxUtils.indexOf(b.sidebar.enabledLibraries,m[u].entries[F].id)&&z.entries.push(m[u].entries[F]);0<z.entries.length&&q.push(z)}m=q;if(k){u=mxUtils.bind(this,function(K){for(var C=0;C<K.length;C++)(function(R){var M=document.createElement("div");M.className="geMoreShapesSectionHeader";mxUtils.write(M,R.title);H.appendChild(M);for(var O=0;O<R.entries.length;O++)(function(U){var T=document.createElement("div");T.className="geMoreShapesItem";T.setAttribute("title",U.title+" ("+U.id+")");var V=document.createElement("input");V.setAttribute("type","checkbox");V.checked=b.sidebar.isEntryVisible(U.id);V.defaultChecked=V.checked;T.appendChild(V);var fa=document.createElement("span");mxUtils.write(fa,U.title);T.appendChild(fa);H.appendChild(T);fa=function(y){if(null==y||"INPUT"!=mxEvent.getSource(y).nodeName){D.style.textAlign="center";D.style.padding="0px";D.style.color="";D.innerText="";if(null!=U.desc){var d=document.createElement("pre");d.style.boxSizing="border-box";d.style.fontFamily="inherit";d.style.margin="20px";d.style.right="0px";d.style.textAlign="left";mxUtils.write(d,U.desc);D.appendChild(d)}null!=U.imageCallback?U.imageCallback(D):null!=U.image?(d=document.createElement("img"),d.setAttribute("border","0"),d.style.maxWidth="100%",d.setAttribute("src",-U.image),D.appendChild(d)):null==U.desc&&(D.style.padding="20px",D.style.color="rgb(179, 179, 179)",mxUtils.write(D,mxResources.get("noPreview")));null!=c&&c.classList.remove("geMoreShapesItemSelected");c=T;c.classList.add("geMoreShapesItemSelected");null!=y&&mxEvent.consume(y)}};mxEvent.addListener(T,"click",fa);mxEvent.addListener(T,"dblclick",function(y){V.checked=!V.checked;mxEvent.consume(y)});g.push(function(){return V.checked?U.id:null});0==C&&0==O&&fa()})(R.entries[O])})(K[C])});F=document.createElement("div");+U.image),D.appendChild(d)):null==U.desc&&(D.style.padding="20px",D.style.color="rgb(179, 179, 179)",mxUtils.write(D,mxResources.get("noPreview")));null!=c&&c.classList.remove("geMoreShapesItemSelected");c=T;c.classList.add("geMoreShapesItemSelected");null!=y&&mxEvent.consume(y)}};mxEvent.addListener(T,"click",fa);mxEvent.addListener(T,"dblclick",function(y){V.checked=!V.checked;mxEvent.consume(y)});f.push(function(){return V.checked?U.id:null});0==C&&0==O&&fa()})(R.entries[O])})(K[C])});F=document.createElement("div");F.className="geDialogTitle";mxUtils.write(F,mxResources.get("shapes"));F.style.position="absolute";F.style.top="0px";F.style.left="0px";F.style.lineHeight="40px";F.style.height="40px";F.style.right="0px";var H=document.createElement("div"),D=document.createElement("div");H.style.position="absolute";H.style.top="40px";H.style.left="0px";H.style.width="220px";H.style.bottom="70px";H.style.overflow="auto";D.className="geMoreShapesPreview";D.style.position="absolute";D.style.left="220px";D.style.right=-"0px";D.style.top="40px";D.style.bottom="70px";D.style.overflow="auto";D.style.textAlign="center";var c=null,g=[];u(m);f.appendChild(F);f.appendChild(H);f.appendChild(D);m=document.createElement("div");m.className="geDialogFooter";m.style.position="absolute";m.style.display="flex";m.style.alignItems="center";m.style.paddingRight="16px";m.style.paddingLeft="16px";m.style.left="0px";m.style.right="0px";m.style.bottom="0px";m.style.height="70px";u=document.createElement("div");u.className="geMoreShapesFooterChecks";+"0px";D.style.top="40px";D.style.bottom="70px";D.style.overflow="auto";D.style.textAlign="center";var c=null,f=[];u(m);g.appendChild(F);g.appendChild(H);g.appendChild(D);m=document.createElement("div");m.className="geDialogFooter";m.style.position="absolute";m.style.display="flex";m.style.alignItems="center";m.style.paddingRight="16px";m.style.paddingLeft="16px";m.style.left="0px";m.style.right="0px";m.style.bottom="0px";m.style.height="70px";u=document.createElement("div");u.className="geMoreShapesFooterChecks";F=document.createElement("label");F.className="geMoreShapesFooterCheck";var l=document.createElement("input");l.setAttribute("type","checkbox");l.checked=b.sidebar.sidebarTitles;l.defaultChecked=l.checked;F.appendChild(l);k=document.createElement("span");mxUtils.write(k,mxResources.get("labels"));F.appendChild(k);u.appendChild(F);var n=document.createElement("input");n.setAttribute("type","checkbox");if(isLocalStorage||mxClient.IS_CHROMEAPP)F=document.createElement("label"),F.className="geMoreShapesFooterCheck",-n.checked=!0,n.defaultChecked=!0,F.appendChild(n),k=document.createElement("span"),mxUtils.write(k,mxResources.get("rememberThisSetting")),F.appendChild(k),u.appendChild(F);m.appendChild(u);u=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});u.className="geBtn";F=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();for(var K=[],C=0;C<g.length;C++){var R=g[C].apply(this,arguments);null!=R&&K.push(R)}"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=+n.checked=!0,n.defaultChecked=!0,F.appendChild(n),k=document.createElement("span"),mxUtils.write(k,mxResources.get("rememberThisSetting")),F.appendChild(k),u.appendChild(F);m.appendChild(u);u=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});u.className="geBtn";F=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();for(var K=[],C=0;C<f.length;C++){var R=f[C].apply(this,arguments);null!=R&&K.push(R)}"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||!Editor.isSettingsEnabled()||(C=mxUtils.indexOf(K,".scratchpad"),null!=b.scratchpad!=(0<=C&&0<K.splice(C,1).length)&&b.toggleScratchpad(),C=mxUtils.indexOf(K,"search"),mxSettings.settings.search=0<=C&&0<K.splice(C,1).length,b.sidebar.showPalette("search",mxSettings.settings.search),n.checked&&mxSettings.save());b.sidebar.showEntries(K.join(";"),n.checked,!0);b.setSidebarTitles(l.checked,n.checked)});F.className="geBtn gePrimaryBtn";k=document.createElement("div");k.style.flex=-"1";k.style.textAlign="right";b.editor.cancelFirst?(k.appendChild(u),k.appendChild(F)):(k.appendChild(F),k.appendChild(u));m.appendChild(k)}else{var r=document.createElement("table");u=document.createElement("tbody");f.style.height="100%";f.style.overflow="auto";F=document.createElement("tr");r.style.width="100%";k=document.createElement("td");q=document.createElement("td");x=document.createElement("td");var t=mxUtils.bind(this,function(K,C,R){var M=document.createElement("input");M.type="checkbox";-r.appendChild(M);M.checked=b.sidebar.isEntryVisible(R);var O=document.createElement("span");mxUtils.write(O,C);C=document.createElement("div");C.style.display="block";C.appendChild(M);C.appendChild(O);mxEvent.addListener(O,"click",function(U){M.checked=!M.checked;mxEvent.consume(U)});K.appendChild(C);return function(){return M.checked?R:null}});F.appendChild(k);F.appendChild(q);F.appendChild(x);u.appendChild(F);r.appendChild(u);g=[];var v=0;for(u=0;u<m.length;u++)for(F=0;F<m[u].entries.length;F++)v++;-var B=[k,q,x],E=0;for(u=0;u<m.length;u++)(function(K){for(var C=0;C<K.entries.length;C++){var R=K.entries[C];g.push(t(B[Math.floor(E/(v/3))],R.title,R.id));E++}})(m[u]);f.appendChild(r);m=document.createElement("div");m.style.marginTop="18px";m.style.textAlign="center";n=document.createElement("input");isLocalStorage&&(n.setAttribute("type","checkbox"),n.checked=!0,n.defaultChecked=!0,m.appendChild(n),u=document.createElement("span"),mxUtils.write(u," "+mxResources.get("rememberThisSetting")),m.appendChild(u),-mxEvent.addListener(u,"click",function(K){n.checked=!n.checked;mxEvent.consume(K)}));f.appendChild(m);u=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});u.className="geBtn";F=mxUtils.button(mxResources.get("apply"),function(){for(var K=["search"],C=0;C<g.length;C++){var R=g[C].apply(this,arguments);null!=R&&K.push(R)}b.sidebar.showEntries(0<K.length?K.join(";"):"",n.checked);b.hideDialog()});F.className="geBtn gePrimaryBtn";m=document.createElement("div");m.style.marginTop="26px";-m.style.textAlign="right";b.editor.cancelFirst?(m.appendChild(u),m.appendChild(F)):(m.appendChild(F),m.appendChild(u))}f.appendChild(m);this.container=f},PluginsDialog=function(b,k,m,f){function q(){H=!0;if(0==J.length){F.innerText="";var t=document.createElement("div");t.className="geDialogHint";mxUtils.write(t,mxResources.get("noPlugins"));F.appendChild(t)}else for(F.innerText="",t=0;t<J.length;t++){var v=document.createElement("span");v.style.display="flex";v.style.alignItems="center";v.style.whiteSpace=+"1";k.style.textAlign="right";b.editor.cancelFirst?(k.appendChild(u),k.appendChild(F)):(k.appendChild(F),k.appendChild(u));m.appendChild(k)}else{var r=document.createElement("table");u=document.createElement("tbody");g.style.height="100%";g.style.overflow="auto";F=document.createElement("tr");r.style.width="100%";k=document.createElement("td");q=document.createElement("td");x=document.createElement("td");var t=mxUtils.bind(this,function(K,C,R){var M=document.createElement("input");M.type="checkbox";+r.appendChild(M);M.checked=b.sidebar.isEntryVisible(R);var O=document.createElement("span");mxUtils.write(O,C);C=document.createElement("div");C.style.display="block";C.appendChild(M);C.appendChild(O);mxEvent.addListener(O,"click",function(U){M.checked=!M.checked;mxEvent.consume(U)});K.appendChild(C);return function(){return M.checked?R:null}});F.appendChild(k);F.appendChild(q);F.appendChild(x);u.appendChild(F);r.appendChild(u);f=[];var v=0;for(u=0;u<m.length;u++)for(F=0;F<m[u].entries.length;F++)v++;+var B=[k,q,x],E=0;for(u=0;u<m.length;u++)(function(K){for(var C=0;C<K.entries.length;C++){var R=K.entries[C];f.push(t(B[Math.floor(E/(v/3))],R.title,R.id));E++}})(m[u]);g.appendChild(r);m=document.createElement("div");m.style.marginTop="18px";m.style.textAlign="center";n=document.createElement("input");isLocalStorage&&(n.setAttribute("type","checkbox"),n.checked=!0,n.defaultChecked=!0,m.appendChild(n),u=document.createElement("span"),mxUtils.write(u," "+mxResources.get("rememberThisSetting")),m.appendChild(u),+mxEvent.addListener(u,"click",function(K){n.checked=!n.checked;mxEvent.consume(K)}));g.appendChild(m);u=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});u.className="geBtn";F=mxUtils.button(mxResources.get("apply"),function(){for(var K=["search"],C=0;C<f.length;C++){var R=f[C].apply(this,arguments);null!=R&&K.push(R)}b.sidebar.showEntries(0<K.length?K.join(";"):"",n.checked);b.hideDialog()});F.className="geBtn gePrimaryBtn";m=document.createElement("div");m.style.marginTop="26px";+m.style.textAlign="right";b.editor.cancelFirst?(m.appendChild(u),m.appendChild(F)):(m.appendChild(F),m.appendChild(u))}g.appendChild(m);this.container=g},PluginsDialog=function(b,k,m,g){function q(){H=!0;if(0==J.length){F.innerText="";var t=document.createElement("div");t.className="geDialogHint";mxUtils.write(t,mxResources.get("noPlugins"));F.appendChild(t)}else for(F.innerText="",t=0;t<J.length;t++){var v=document.createElement("span");v.style.display="flex";v.style.alignItems="center";v.style.whiteSpace="nowrap";v.style.minHeight="26px";var B=document.createElement("img");B.src=Editor.trashImage;B.style.cursor="pointer";B.style.marginRight="8px";B.style.width="16px";B.style.flexShrink="0";B.setAttribute("title",mxResources.get("delete"));v.appendChild(B);var E=document.createElement("span");E.style.overflow="hidden";E.style.textOverflow="ellipsis";mxUtils.write(E,J[t]);v.appendChild(E);F.appendChild(v);mxEvent.addListener(B,"click",function(K){return function(){b.confirm(mxResources.get("delete")+' "'+J[K]+'"?',function(){null!=m&&m(J[K]);J.splice(K,1);q()})}}(t))}}function u(){if(null!=D){D.innerText="";var t=document.createElement("option");t.value="";mxUtils.write(t,mxResources.get("chooseAnOption")||"Choose…");D.appendChild(t);for(t=0;t<App.publicPlugin.length;t++){var v=App.publicPlugin[t],B=App.pluginRegistry[v],E=document.createElement("option");mxUtils.write(E,v);E.value=v;if(null==B||0<=mxUtils.indexOf(J,B))E.disabled=!0;D.appendChild(E)}null!=c&&(c.disabled=!0)}}var x=document.createElement("div"),z=document.createElement("h3");mxUtils.write(z,mxResources.get("plugins"));x.appendChild(z);var F=document.createElement("div");F.className="geDialogSection";F.style.height="160px";F.style.overflow="auto";F.style.fontSize="13px";var J=mxSettings.getPlugins().slice(),H=!1;x.appendChild(F);q();H=!1;var D=null,c=null;if(null==k){z=document.createElement("div");z.style.display="flex";z.style.alignItems="center";z.style.gap="8px";z.style.marginTop="10px";D=document.createElement("select");D.style.flex=-"1";D.style.minWidth="0";z.appendChild(D);c=mxUtils.button(mxResources.get("add"),function(){var t=D.value;""!=t&&(t=App.pluginRegistry[t],null!=t&&0>mxUtils.indexOf(J,t)&&(J.push(t),q()))});c.className="geBtn";c.style.margin="0";c.disabled=!0;z.appendChild(c);mxEvent.addListener(D,"change",function(){c.disabled=""==D.value});if(ALLOW_CUSTOM_PLUGINS){var g=mxUtils.button(mxResources.get("custom")+"...",function(){var t=new FilenameDialog(b,"",mxResources.get("add"),function(v){b.hideDialog();if(null!=-v&&0<v.length){v=v.split(";");for(var B=0;B<v.length;B++){var E=v[B],K=App.pluginRegistry[E];null!=K&&(E=K);0<E.length&&0>mxUtils.indexOf(J,E)&&J.push(E)}q()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");b.showDialog(t.container,300,80,!0,!0);t.init()});g.className="geBtn";g.style.margin="0";z.appendChild(g)}x.appendChild(z)}var l=q;q=function(){l();u()};u();z=null;null!=k&&(z=mxUtils.button(mxResources.get("add"),function(){k(function(t){t&&0>mxUtils.indexOf(J,t)&&J.push(t);q()})}),-z.className="geBtn");g=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});g.className="geBtn";var n=mxUtils.button(f?mxResources.get("close"):mxResources.get("apply"),function(){H?(mxSettings.setPlugins(J),mxSettings.save(),b.hideDialog(),b.alert(mxResources.get("restartForChangeRequired"))):b.hideDialog()});n.className="geBtn gePrimaryBtn";var r=document.createElement("div");r.style.marginTop="14px";r.style.textAlign="right";b.isOffline()||r.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/plugins"));-b.editor.cancelFirst?(f||r.appendChild(g),null!=z&&r.appendChild(z),r.appendChild(n)):(null!=z&&r.appendChild(z),r.appendChild(n),f||r.appendChild(g));x.appendChild(r);this.container=x},CropImageDialog=function(b,k,m,f){function q(){null!=g&&(D.style.overflow="hidden",g.maxFitScale=null,g.fit(8),g.center(),D.style.overflow="auto")}function u(L){var P=document.createElement("span");P.style.marginLeft="6px";P.style.fontSize="11px";mxUtils.write(P,L);M.appendChild(P);L=document.createElement("input");-L.setAttribute("type","text");L.style.cssText="width:46px;margin:0 2px;text-align:right;";M.appendChild(L);return L}function x(){var L=t.geometry;U.value=Math.round(L.x);T.value=Math.round(L.y);V.value=Math.round(L.width);fa.value=Math.round(L.height)}function z(){if(null!=g){var L=parseFloat(U.value),P=parseFloat(T.value),Q=parseFloat(V.value),ba=parseFloat(fa.value);if(isFinite(L)&&isFinite(P)&&isFinite(Q)&&isFinite(ba)&&0<Q&&0<ba){var W=t.geometry.clone();W.x=L;W.y=P;W.width=Q;W.height=ba;g.model.setGeometry(t,-W);g.model.setStyle(t,E+F());g.selectAll()}}}function F(){var L=d.checked,P=p.checked,Q=t.geometry;0>Q.x?(Q.width+=Q.x,Q.x=0):Q.x+Q.width>v&&(Q.width=v-Q.x,Q.x=Math.min(Q.x,v));0>Q.y?(Q.height+=Q.y,Q.y=0):Q.y+Q.height>B&&(Q.height=B-Q.y,Q.y=Math.min(Q.y,B));var ba=Q.x/v*100,W=100-(Q.x+Q.width)/v*100,Y=100-(Q.y+Q.height)/B*100;return"inset("+mxUtils.format(Q.y/B*100)+"% "+mxUtils.format(W)+"% "+mxUtils.format(Y)+"% "+mxUtils.format(ba)+"%"+(L?" round "+r+"%":P?" round 50%":"")+")"}function J(L){null!=-g&&(!0!==L&&(g.model.setGeometry(t,n.clone()),r=5,G.value=r),g.model.setStyle(t,E+F()),g.selectAll(),x(),A.style.visibility=d.checked?"visible":"hidden")}var H=document.createElement("div");H.style.display="flex";H.style.flexDirection="column";H.style.height="100%";var D=document.createElement("div");D.style.flex="1";D.style.minHeight="0";D.style.overflow="auto";D.style.border="1px solid";H.appendChild(D);var c=k.replace(";base64",""),g=null,l=null,n=null,r=5,t=new mxCell("",new mxGeometry(0,0,1,-1),""),v=0,B=0,E="shape=image;fillColor=none;rotatable=0;cloneable=0;deletable=0;image="+c+";clipPath=",K="shape=image;fillColor=none;movable=0;resizable=0;editable=0;connectable=0;rotatable=0;deletable=0;opacity=40;image="+c+";",C="shape=image;fillColor=none;movable=0;resizable=0;editable=0;connectable=0;rotatable=0;deletable=0;image="+c+";",R=new Image;R.onload=function(){function L(){g.model.setStyle(t,E+F());x()}v=R.naturalWidth;B=R.naturalHeight;n=new mxGeometry(.15*v,.15*B,.7*v,.7*B);t.geometry=-n.clone();g=new Graph(D);g.autoExtend=!1;g.autoScroll=!1;g.setGridEnabled(!1);g.setEnabled(!0);g.setPanning(!0);g.setConnectable(!1);g.getRubberband().setEnabled(!1);g.graphHandler.allowLivePreview=!1;g.centerZoom=!0;g.background="#ffffff";var P=g.createVertexHandler;g.createVertexHandler=function(){var aa=P.apply(this,arguments);aa.livePreview=!1;return aa};var Q=g.isCellSelectable;g.isCellSelectable=function(aa){return aa===t&&Q.apply(this,arguments)};l=new mxCell("",new mxGeometry(0,0,v,B),K);-l.vertex=!0;g.addCell(l);if(null!=m)try{if("inset"==m.substring(0,5)){var ba=t.geometry,W=m.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),Y=parseFloat(W[0]),X=parseFloat(W[1]),ca=parseFloat(W[2]),S=parseFloat(W[3]);isFinite(Y)&&isFinite(X)&&isFinite(ca)&&isFinite(S)?(ba.x=S/100*v,ba.y=Y/100*B,ba.width=(100-X)/100*v-ba.x,ba.height=(100-ca)/100*B-ba.y,"round"==W[4]?"50%"==W[5]?p.setAttribute("checked","checked"):(r=parseInt(W[5]),G.value=r,d.setAttribute("checked","checked"),A.style.visibility="visible"):-y.setAttribute("checked","checked")):m=null}else m=null}catch(aa){}t.style=E+(m?m:F());t.vertex=!0;g.addCell(t);g.selectAll();g.addListener(mxEvent.CELLS_MOVED,L);g.addListener(mxEvent.CELLS_RESIZED,L);var Z=g.graphHandler.mouseUp,da=g.graphHandler.mouseDown;g.graphHandler.mouseUp=function(){Z.apply(this,arguments);null!=l&&g.model.setStyle(l,K)};g.graphHandler.mouseDown=function(){da.apply(this,arguments);null!=l&&g.model.setStyle(l,C)};g.dblClick=function(){};var N=g.getSelectionModel().changeSelection;-g.getSelectionModel().changeSelection=function(){N.call(this,[t],[t])};x();q()};R.onerror=function(){R.onload=null;R.src=Editor.errorImage};R.src=k;var M=document.createElement("div");M.style.display="flex";M.style.flexShrink="0";M.style.alignItems="center";M.style.justifyContent="center";M.style.paddingTop="6px";k=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){null!=g&&g.zoomIn()});c=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){null!=-g&&g.zoomOut()});var O=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){q()});M.appendChild(k);M.appendChild(c);M.appendChild(O);var U=u("X"),T=u("Y"),V=u("W"),fa=u("H");mxEvent.addListener(U,"change",z);mxEvent.addListener(T,"change",z);mxEvent.addListener(V,"change",z);mxEvent.addListener(fa,"change",z);H.appendChild(M);k=document.createElement("div");k.style.whiteSpace="nowrap";k.style.display="flex";k.style.flexShrink="0";k.style.alignItems="center";k.style.justifyContent=+"1";D.style.minWidth="0";z.appendChild(D);c=mxUtils.button(mxResources.get("add"),function(){var t=D.value;""!=t&&(t=App.pluginRegistry[t],null!=t&&0>mxUtils.indexOf(J,t)&&(J.push(t),q()))});c.className="geBtn";c.style.margin="0";c.disabled=!0;z.appendChild(c);mxEvent.addListener(D,"change",function(){c.disabled=""==D.value});if(ALLOW_CUSTOM_PLUGINS){var f=mxUtils.button(mxResources.get("custom")+"...",function(){var t=new FilenameDialog(b,"",mxResources.get("add"),function(v){b.hideDialog();if(null!=+v&&0<v.length){v=v.split(";");for(var B=0;B<v.length;B++){var E=v[B],K=App.pluginRegistry[E];null!=K&&(E=K);0<E.length&&0>mxUtils.indexOf(J,E)&&J.push(E)}q()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");b.showDialog(t.container,300,80,!0,!0);t.init()});f.className="geBtn";f.style.margin="0";z.appendChild(f)}x.appendChild(z)}var l=q;q=function(){l();u()};u();z=null;null!=k&&(z=mxUtils.button(mxResources.get("add"),function(){k(function(t){t&&0>mxUtils.indexOf(J,t)&&J.push(t);q()})}),+z.className="geBtn");f=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});f.className="geBtn";var n=mxUtils.button(g?mxResources.get("close"):mxResources.get("apply"),function(){H?(mxSettings.setPlugins(J),mxSettings.save(),b.hideDialog(),b.alert(mxResources.get("restartForChangeRequired"))):b.hideDialog()});n.className="geBtn gePrimaryBtn";var r=document.createElement("div");r.style.marginTop="14px";r.style.textAlign="right";b.isOffline()||r.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/plugins"));+b.editor.cancelFirst?(g||r.appendChild(f),null!=z&&r.appendChild(z),r.appendChild(n)):(null!=z&&r.appendChild(z),r.appendChild(n),g||r.appendChild(f));x.appendChild(r);this.container=x},CropImageDialog=function(b,k,m,g){function q(){null!=f&&(D.style.overflow="hidden",f.maxFitScale=null,f.fit(8),f.center(),D.style.overflow="auto")}function u(L){var P=document.createElement("span");P.style.marginLeft="6px";P.style.fontSize="11px";mxUtils.write(P,L);M.appendChild(P);L=document.createElement("input");+L.setAttribute("type","text");L.style.cssText="width:46px;margin:0 2px;text-align:right;";M.appendChild(L);return L}function x(){var L=t.geometry;U.value=Math.round(L.x);T.value=Math.round(L.y);V.value=Math.round(L.width);fa.value=Math.round(L.height)}function z(){if(null!=f){var L=parseFloat(U.value),P=parseFloat(T.value),Q=parseFloat(V.value),ba=parseFloat(fa.value);if(isFinite(L)&&isFinite(P)&&isFinite(Q)&&isFinite(ba)&&0<Q&&0<ba){var W=t.geometry.clone();W.x=L;W.y=P;W.width=Q;W.height=ba;f.model.setGeometry(t,+W);f.model.setStyle(t,E+F());f.selectAll()}}}function F(){var L=d.checked,P=p.checked,Q=t.geometry;0>Q.x?(Q.width+=Q.x,Q.x=0):Q.x+Q.width>v&&(Q.width=v-Q.x,Q.x=Math.min(Q.x,v));0>Q.y?(Q.height+=Q.y,Q.y=0):Q.y+Q.height>B&&(Q.height=B-Q.y,Q.y=Math.min(Q.y,B));var ba=Q.x/v*100,W=100-(Q.x+Q.width)/v*100,Y=100-(Q.y+Q.height)/B*100;return"inset("+mxUtils.format(Q.y/B*100)+"% "+mxUtils.format(W)+"% "+mxUtils.format(Y)+"% "+mxUtils.format(ba)+"%"+(L?" round "+r+"%":P?" round 50%":"")+")"}function J(L){null!=+f&&(!0!==L&&(f.model.setGeometry(t,n.clone()),r=5,G.value=r),f.model.setStyle(t,E+F()),f.selectAll(),x(),A.style.visibility=d.checked?"visible":"hidden")}var H=document.createElement("div");H.style.display="flex";H.style.flexDirection="column";H.style.height="100%";var D=document.createElement("div");D.style.flex="1";D.style.minHeight="0";D.style.overflow="auto";D.style.border="1px solid";H.appendChild(D);var c=k.replace(";base64",""),f=null,l=null,n=null,r=5,t=new mxCell("",new mxGeometry(0,0,1,+1),""),v=0,B=0,E="shape=image;fillColor=none;rotatable=0;cloneable=0;deletable=0;image="+c+";clipPath=",K="shape=image;fillColor=none;movable=0;resizable=0;editable=0;connectable=0;rotatable=0;deletable=0;opacity=40;image="+c+";",C="shape=image;fillColor=none;movable=0;resizable=0;editable=0;connectable=0;rotatable=0;deletable=0;image="+c+";",R=new Image;R.onload=function(){function L(){f.model.setStyle(t,E+F());x()}v=R.naturalWidth;B=R.naturalHeight;n=new mxGeometry(.15*v,.15*B,.7*v,.7*B);t.geometry=+n.clone();f=new Graph(D);f.autoExtend=!1;f.autoScroll=!1;f.setGridEnabled(!1);f.setEnabled(!0);f.setPanning(!0);f.setConnectable(!1);f.getRubberband().setEnabled(!1);f.graphHandler.allowLivePreview=!1;f.centerZoom=!0;f.background="#ffffff";var P=f.createVertexHandler;f.createVertexHandler=function(){var aa=P.apply(this,arguments);aa.livePreview=!1;return aa};var Q=f.isCellSelectable;f.isCellSelectable=function(aa){return aa===t&&Q.apply(this,arguments)};l=new mxCell("",new mxGeometry(0,0,v,B),K);+l.vertex=!0;f.addCell(l);if(null!=m)try{if("inset"==m.substring(0,5)){var ba=t.geometry,W=m.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),Y=parseFloat(W[0]),X=parseFloat(W[1]),ca=parseFloat(W[2]),S=parseFloat(W[3]);isFinite(Y)&&isFinite(X)&&isFinite(ca)&&isFinite(S)?(ba.x=S/100*v,ba.y=Y/100*B,ba.width=(100-X)/100*v-ba.x,ba.height=(100-ca)/100*B-ba.y,"round"==W[4]?"50%"==W[5]?p.setAttribute("checked","checked"):(r=parseInt(W[5]),G.value=r,d.setAttribute("checked","checked"),A.style.visibility="visible"):+y.setAttribute("checked","checked")):m=null}else m=null}catch(aa){}t.style=E+(m?m:F());t.vertex=!0;f.addCell(t);f.selectAll();f.addListener(mxEvent.CELLS_MOVED,L);f.addListener(mxEvent.CELLS_RESIZED,L);var Z=f.graphHandler.mouseUp,da=f.graphHandler.mouseDown;f.graphHandler.mouseUp=function(){Z.apply(this,arguments);null!=l&&f.model.setStyle(l,K)};f.graphHandler.mouseDown=function(){da.apply(this,arguments);null!=l&&f.model.setStyle(l,C)};f.dblClick=function(){};var N=f.getSelectionModel().changeSelection;+f.getSelectionModel().changeSelection=function(){N.call(this,[t],[t])};x();q()};R.onerror=function(){R.onload=null;R.src=Editor.errorImage};R.src=k;var M=document.createElement("div");M.style.display="flex";M.style.flexShrink="0";M.style.alignItems="center";M.style.justifyContent="center";M.style.paddingTop="6px";k=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){null!=f&&f.zoomIn()});c=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){null!=+f&&f.zoomOut()});var O=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){q()});M.appendChild(k);M.appendChild(c);M.appendChild(O);var U=u("X"),T=u("Y"),V=u("W"),fa=u("H");mxEvent.addListener(U,"change",z);mxEvent.addListener(T,"change",z);mxEvent.addListener(V,"change",z);mxEvent.addListener(fa,"change",z);H.appendChild(M);k=document.createElement("div");k.style.whiteSpace="nowrap";k.style.display="flex";k.style.flexShrink="0";k.style.alignItems="center";k.style.justifyContent="center";var y=document.createElement("input");y.setAttribute("type","radio");y.setAttribute("id","croppingRect");y.setAttribute("name","croppingShape");y.setAttribute("checked","checked");y.style.margin="5px";k.appendChild(y);c=document.createElement("label");c.setAttribute("for","croppingRect");c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.padding="3px";mxUtils.write(c,mxResources.get("rectangle"));k.appendChild(c);var d=document.createElement("input");d.setAttribute("type","radio");d.setAttribute("id","croppingRounded");d.setAttribute("name","croppingShape");d.style.margin="5px";k.appendChild(d);c=document.createElement("label");c.setAttribute("for","croppingRounded");c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.padding="3px";mxUtils.write(c,mxResources.get("rounded"));k.appendChild(c);var p=document.createElement("input");p.setAttribute("type","radio");p.setAttribute("id","croppingEllipse");p.setAttribute("name","croppingShape");p.style.margin="5px";k.appendChild(p);c=document.createElement("label");c.setAttribute("for","croppingEllipse");c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.padding="3px";mxUtils.write(c,mxResources.get("ellipse"));k.appendChild(c);H.appendChild(k);mxEvent.addListener(y,"change",J);mxEvent.addListener(d,"change",J);mxEvent.addListener(p,"change",J);var A=document.createElement("div");A.style.textAlign="center";A.style.flexShrink="0";A.style.visibility="hidden";var G=document.createElement("input");-G.setAttribute("type","range");G.setAttribute("min","1");G.setAttribute("max","49");G.setAttribute("value",r);G.setAttribute("title",mxResources.get("arcSize"));A.appendChild(G);H.appendChild(A);mxEvent.addListener(G,"change",function(){r=this.value;J(!0)});k=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});k.className="geBtn";c=mxUtils.button(mxResources.get("apply"),function(){f(F(),t.geometry.width,t.geometry.height);b.hideDialog()});c.className="geBtn gePrimaryBtn";O=mxUtils.button(mxResources.get("reset"),-function(){f(null,v,B);b.hideDialog()});O.className="geBtn";var I=document.createElement("div");I.style.flexShrink="0";I.style.marginTop="10px";I.style.whiteSpace="nowrap";I.style.display="flex";I.style.justifyContent="flex-end";b.editor.cancelFirst?(I.appendChild(k),I.appendChild(O),I.appendChild(c)):(I.appendChild(O),I.appendChild(c),I.appendChild(k));H.appendChild(I);this.container=H},EditGeometryDialog=function(b,k){function m(v,B){var E=document.createElement("div");E.className="geDialogInlineField";-var K=document.createElement("label");mxUtils.write(K,v);E.appendChild(K);v=document.createElement("input");v.setAttribute("type","text");v.value=null!=B?B:"";E.appendChild(v);E.input=v;return E}var f=b.editor.graph,q=1==k.length?f.getCellGeometry(k[0]):null,u=document.createElement("div"),x=document.createElement("h3");mxUtils.write(x,mxResources.get("editGeometry"));u.appendChild(x);x=document.createElement("div");x.className="geDialogSection";var z=document.createElement("div");z.className="geDialogCheckRow";+G.setAttribute("type","range");G.setAttribute("min","1");G.setAttribute("max","49");G.setAttribute("value",r);G.setAttribute("title",mxResources.get("arcSize"));A.appendChild(G);H.appendChild(A);mxEvent.addListener(G,"change",function(){r=this.value;J(!0)});k=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});k.className="geBtn";c=mxUtils.button(mxResources.get("apply"),function(){g(F(),t.geometry.width,t.geometry.height);b.hideDialog()});c.className="geBtn gePrimaryBtn";O=mxUtils.button(mxResources.get("reset"),+function(){g(null,v,B);b.hideDialog()});O.className="geBtn";var I=document.createElement("div");I.style.flexShrink="0";I.style.marginTop="10px";I.style.whiteSpace="nowrap";I.style.display="flex";I.style.justifyContent="flex-end";b.editor.cancelFirst?(I.appendChild(k),I.appendChild(O),I.appendChild(c)):(I.appendChild(O),I.appendChild(c),I.appendChild(k));H.appendChild(I);this.container=H},EditGeometryDialog=function(b,k){function m(v,B){var E=document.createElement("div");E.className="geDialogInlineField";+var K=document.createElement("label");mxUtils.write(K,v);E.appendChild(K);v=document.createElement("input");v.setAttribute("type","text");v.value=null!=B?B:"";E.appendChild(v);E.input=v;return E}var g=b.editor.graph,q=1==k.length?g.getCellGeometry(k[0]):null,u=document.createElement("div"),x=document.createElement("h3");mxUtils.write(x,mxResources.get("editGeometry"));u.appendChild(x);x=document.createElement("div");x.className="geDialogSection";var z=document.createElement("div");z.className="geDialogCheckRow";var F=document.createElement("input");F.setAttribute("type","checkbox");F.setAttribute("id","geEditGeoRelative");null!=q&&q.relative&&(F.setAttribute("checked","checked"),F.defaultChecked=!0);z.appendChild(F);var J=document.createElement("label");J.setAttribute("for","geEditGeoRelative");mxUtils.write(J,mxResources.get("relative"));z.appendChild(J);x.appendChild(z);z=document.createElement("div");z.className="geDialogInlineFields";J=m(mxResources.get("left"),null!=q?q.x:null);var H=J.input;z.appendChild(J);-J=m(mxResources.get("top"),null!=q?q.y:null);var D=J.input;z.appendChild(J);x.appendChild(z);z=document.createElement("div");z.className="geDialogInlineFields";z.style.marginTop="6px";J=m(mxResources.get("dx"),null!=q&&null!=q.offset?q.offset.x:null);var c=J.input;z.appendChild(J);J=m(mxResources.get("dy"),null!=q&&null!=q.offset?q.offset.y:null);var g=J.input;z.appendChild(J);x.appendChild(z);u.appendChild(x);x=document.createElement("div");x.className="geDialogSection";z=document.createElement("div");+J=m(mxResources.get("top"),null!=q?q.y:null);var D=J.input;z.appendChild(J);x.appendChild(z);z=document.createElement("div");z.className="geDialogInlineFields";z.style.marginTop="6px";J=m(mxResources.get("dx"),null!=q&&null!=q.offset?q.offset.x:null);var c=J.input;z.appendChild(J);J=m(mxResources.get("dy"),null!=q&&null!=q.offset?q.offset.y:null);var f=J.input;z.appendChild(J);x.appendChild(z);u.appendChild(x);x=document.createElement("div");x.className="geDialogSection";z=document.createElement("div");z.className="geDialogInlineFields";J=m(mxResources.get("width"),null!=q?q.width:null);var l=J.input;z.appendChild(J);q=m(mxResources.get("height"),null!=q?q.height:null);var n=q.input;z.appendChild(q);x.appendChild(z);u.appendChild(x);q=document.createElement("div");q.className="geDialogSection";x=document.createElement("div");x.className="geDialogFormRow";z=document.createElement("span");z.className="geDialogFormLabel";mxUtils.write(z,mxResources.get("rotation")+":");x.appendChild(z);var r=document.createElement("input");-r.setAttribute("type","text");r.value=1==k.length?mxUtils.getValue(f.getCellStyle(k[0]),mxConstants.STYLE_ROTATION,0):"";x.appendChild(r);q.appendChild(x);u.appendChild(q);this.init=function(){H.focus();H.select()};var t=function(){f.getModel().beginUpdate();try{for(var v=0;v<k.length;v++){var B=f.getCellGeometry(k[v]);null!=B&&(B=B.clone(),f.isCellMovable(k[v])&&(B.relative=F.checked,0<mxUtils.trim(H.value).length&&(B.x=Number(H.value)),0<mxUtils.trim(D.value).length&&(B.y=Number(D.value)),0<mxUtils.trim(c.value).length&&-(null==B.offset&&(B.offset=new mxPoint),B.offset.x=Number(c.value)),0<mxUtils.trim(g.value).length&&(null==B.offset&&(B.offset=new mxPoint),B.offset.y=Number(g.value))),f.isCellResizable(k[v])&&(0<mxUtils.trim(l.value).length&&(B.width=Number(l.value)),0<mxUtils.trim(n.value).length&&(B.height=Number(n.value))),f.getModel().setGeometry(k[v],B));0<mxUtils.trim(r.value).length&&f.setCellRotation(k[v],Number(r.value))}}finally{f.getModel().endUpdate()}};this.container=(new CustomDialog(b,u,t,null,mxResources.get("apply"))).container;-mxEvent.addListener(this.container,"keypress",function(v){13==v.keyCode&&(t(),b.hideDialog())})},LibraryDialog=function(b,k,m,f,q,u,x){function z(T){for(T=document.elementFromPoint(T.clientX,T.clientY);null!=T&&T.parentNode!=t;)T=T.parentNode;var V=null;if(null!=T){var fa=t.firstChild;for(V=0;null!=fa&&fa!=T;)fa=fa.nextSibling,V++}return V}function F(T,V,fa,y,d,p,A,G,I){try{if(b.spinner.stop(),null==V||"image/"==V.substring(0,6))if(null==T&&null!=A||null==B[T]){var L=function(){S.innerText="";S.style.cursor=+r.setAttribute("type","text");r.value=1==k.length?mxUtils.getValue(g.getCellStyle(k[0]),mxConstants.STYLE_ROTATION,0):"";x.appendChild(r);q.appendChild(x);u.appendChild(q);this.init=function(){H.focus();H.select()};var t=function(){g.getModel().beginUpdate();try{for(var v=0;v<k.length;v++){var B=g.getCellGeometry(k[v]);null!=B&&(B=B.clone(),g.isCellMovable(k[v])&&(B.relative=F.checked,0<mxUtils.trim(H.value).length&&(B.x=Number(H.value)),0<mxUtils.trim(D.value).length&&(B.y=Number(D.value)),0<mxUtils.trim(c.value).length&&+(null==B.offset&&(B.offset=new mxPoint),B.offset.x=Number(c.value)),0<mxUtils.trim(f.value).length&&(null==B.offset&&(B.offset=new mxPoint),B.offset.y=Number(f.value))),g.isCellResizable(k[v])&&(0<mxUtils.trim(l.value).length&&(B.width=Number(l.value)),0<mxUtils.trim(n.value).length&&(B.height=Number(n.value))),g.getModel().setGeometry(k[v],B));0<mxUtils.trim(r.value).length&&g.setCellRotation(k[v],Number(r.value))}}finally{g.getModel().endUpdate()}};this.container=(new CustomDialog(b,u,t,null,mxResources.get("apply"))).container;+mxEvent.addListener(this.container,"keypress",function(v){13==v.keyCode&&(t(),b.hideDialog())})},LibraryDialog=function(b,k,m,g,q,u,x){function z(T){for(T=document.elementFromPoint(T.clientX,T.clientY);null!=T&&T.parentNode!=t;)T=T.parentNode;var V=null;if(null!=T){var fa=t.firstChild;for(V=0;null!=fa&&fa!=T;)fa=fa.nextSibling,V++}return V}function F(T,V,fa,y,d,p,A,G,I){try{if(b.spinner.stop(),null==V||"image/"==V.substring(0,6))if(null==T&&null!=A||null==B[T]){var L=function(){S.innerText="";S.style.cursor="pointer";S.style.whiteSpace="nowrap";S.style.textOverflow="ellipsis";mxUtils.write(S,null!=Z.title&&0<Z.title.length?Z.title:mxResources.get("untitled"));S.style.color=null==Z.title||0==Z.title.length?"#d0d0d0":""};t.style.backgroundImage="";v.style.display="none";var P=d,Q=p;if(d>b.maxImageSize||p>b.maxImageSize){var ba=Math.min(1,Math.min(b.maxImageSize/Math.max(1,d)),b.maxImageSize/Math.max(1,p));d*=ba;p*=ba}P>Q?(Q=Math.round(100*Q/P),P=100):(P=Math.round(100*P/Q),Q=100);var W=document.createElement("div");W.setAttribute("draggable","true");W.style.display="inline-block";W.style.position="relative";W.style.padding="0 12px";W.style.cursor="move";mxUtils.setPrefixedStyle(W.style,"transition","transform .1s ease-in-out");if(null!=T){var Y=document.createElement("img");Y.setAttribute("src",R.convert(T));Y.style.width=P+"px";Y.style.height=Q+"px";Y.style.margin="10px";Y.style.paddingBottom=Math.floor((100-Q)/2)+"px";Y.style.paddingLeft=Math.floor((100-P)/2)+"px";W.appendChild(Y)}else if(null!=A){var X=b.stringToCells("<"==A.xml.charAt(0)?A.xml:Graph.decompress(A.xml));0<X.length&&(b.sidebar.createThumb(X,100,100,W,null,!0,!1,null,null,c.shapeBackgroundColor),W.firstChild.style.display="inline-block",W.firstChild.style.cursor="")}var ca=document.createElement("img");ca.setAttribute("src",Editor.closeBlackImage);ca.setAttribute("border","0");ca.setAttribute("title",mxResources.get("delete"));ca.setAttribute("align","top");ca.style.paddingTop="4px";ca.style.position="absolute";ca.style.marginLeft="-12px";ca.style.zIndex=@@ -13500,76 +13585,76 @@ S.style.visibility=""},0))});mxEvent.addListener(W,"dragend",function(la){"hiddeQ[da].xml?F(null,null,0,0,0,0,Q[da]):F(Q[da].data,null,0,0,Q[da].w,Q[da].h,null,"fixed",Q[da].title);d=!0}else if("mxfile"==P.documentElement.nodeName){var N=P.documentElement.getElementsByTagName("diagram");for(da=0;da<N.length;da++){var aa=Editor.getDiagramNodeXml(N[da]);X=b.stringToCells(aa);if(0<X.length){var ea=b.editor.graph.getBoundingBoxFromGeometry(X);null!=ea&&F(null,null,0,0,0,0,{xml:aa,w:ea.width,h:ea.height})}}d=!0}}catch(la){null!=window.console&&console.error("Error in library dialog: "+la)}d||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(la){null!=window.console&&console.log("Error in library dialog: "+la)}return null}function J(T){T.dataTransfer.dropEffect=null!=E?"move":"copy";T.stopPropagation();T.preventDefault()}function H(T){T.stopPropagation();T.preventDefault();M=!1;K=z(T);if(null!=E)null!=K&&K<t.children.length?(D.splice(K>E?K-1:K,0,D.splice(E,1)[0]),t.insertBefore(t.children[E],t.children[K])):(D.push(D.splice(E,1)[0]),t.appendChild(t.children[E]));else if(0<T.dataTransfer.files.length)b.importFiles(T.dataTransfer.files,0,0,b.maxImageSize,O(T));else if(0<=mxUtils.indexOf(T.dataTransfer.types,"text/uri-list")){var V=decodeURIComponent(T.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(V)||/(\.png)($|\?)/i.test(V)||/(\.gif)($|\?)/i.test(V)||/(\.svg)($|\?)/i.test(V))&&b.loadImage(V,function(fa){F(V,null,0,0,fa.width,fa.height);t.scrollTop=t.scrollHeight})}T.stopPropagation();T.preventDefault()}var D=[],c=b.editor.graph;m=document.createElement("div");-m.style.height="100%";m.style.display="flex";m.style.flexDirection="column";var g=document.createElement("div");g.className="geDialogSection";g.style.flexShrink="0";var l=document.createElement("div");l.className="geDialogFormRow";var n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("filename")+":");l.appendChild(n);null==k&&(k=b.defaultLibraryName+".xml");var r=document.createElement("input");r.setAttribute("type","text");r.setAttribute("value",k);-null==q||q.isRenamable()||r.setAttribute("disabled","true");l.appendChild(r);g.appendChild(l);Editor.enableUncompressedLibraries&&(k=document.createElement("div"),k.className="geDialogCheckRow",l=document.createElement("input"),l.setAttribute("type","checkbox"),l.setAttribute("id","geLibCompressed"),k.appendChild(l),l=document.createElement("label"),l.setAttribute("for","geLibCompressed"),mxUtils.write(l,mxResources.get("compressed")),k.appendChild(l),g.appendChild(k));m.appendChild(g);this.init=+m.style.height="100%";m.style.display="flex";m.style.flexDirection="column";var f=document.createElement("div");f.className="geDialogSection";f.style.flexShrink="0";var l=document.createElement("div");l.className="geDialogFormRow";var n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("filename")+":");l.appendChild(n);null==k&&(k=b.defaultLibraryName+".xml");var r=document.createElement("input");r.setAttribute("type","text");r.setAttribute("value",k);+null==q||q.isRenamable()||r.setAttribute("disabled","true");l.appendChild(r);f.appendChild(l);Editor.enableUncompressedLibraries&&(k=document.createElement("div"),k.className="geDialogCheckRow",l=document.createElement("input"),l.setAttribute("type","checkbox"),l.setAttribute("id","geLibCompressed"),k.appendChild(l),l=document.createElement("label"),l.setAttribute("for","geLibCompressed"),mxUtils.write(l,mxResources.get("compressed")),k.appendChild(l),f.appendChild(k));m.appendChild(f);this.init=function(){if(null==q||q.isRenamable())r.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?r.select():document.execCommand("selectAll",!1,null)};var t=document.createElement("div");t.style.border="light-dark(1px solid rgba(0, 0, 0, 0.15), 1px solid rgba(255, 255, 255, 0.15))";t.style.borderRadius="8px";t.style.marginTop="10px";t.style.overflow="auto";t.style.flex="1";t.style.minHeight="0";t.style.backgroundPosition="center center";t.style.backgroundRepeat="no-repeat";0==D.length&&Graph.fileSupport&&-(t.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')");var v=document.createElement("div");v.style.position="absolute";v.style.left="0";v.style.right="0";v.style.top="260px";v.style.textAlign="center";v.style.fontSize="22px";v.style.color="#a0c3ff";mxUtils.write(v,mxResources.get("dragImagesHere"));m.appendChild(v);var B={},E=null,K=null,C=null;g=function(T){"true"!=mxEvent.getSource(T).getAttribute("contentEditable")&&null!=C&&(C(),C=null,mxEvent.consume(T))};mxEvent.addListener(t,"mousedown",-g);mxEvent.addListener(t,"pointerdown",g);mxEvent.addListener(t,"touchstart",g);var R=new mxUrlConverter,M=!1;if(null!=f)for(g=0;g<f.length;g++)k=f[g],F(k.data,null,0,0,k.w,k.h,k,k.aspect,k.title);mxEvent.addListener(t,"dragleave",function(T){v.style.cursor="";for(var V=mxEvent.getSource(T);null!=V;){if(V==t||V==v){T.stopPropagation();T.preventDefault();break}V=V.parentNode}});var O=function(T){return function(V,fa,y,d,p,A,G,I,L){null!=L&&EditorUi.isVisioFilename(L.name)?b.importVisio(L,mxUtils.bind(this,+(t.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')");var v=document.createElement("div");v.style.position="absolute";v.style.left="0";v.style.right="0";v.style.top="260px";v.style.textAlign="center";v.style.fontSize="22px";v.style.color="#a0c3ff";mxUtils.write(v,mxResources.get("dragImagesHere"));m.appendChild(v);var B={},E=null,K=null,C=null;f=function(T){"true"!=mxEvent.getSource(T).getAttribute("contentEditable")&&null!=C&&(C(),C=null,mxEvent.consume(T))};mxEvent.addListener(t,"mousedown",+f);mxEvent.addListener(t,"pointerdown",f);mxEvent.addListener(t,"touchstart",f);var R=new mxUrlConverter,M=!1;if(null!=g)for(f=0;f<g.length;f++)k=g[f],F(k.data,null,0,0,k.w,k.h,k,k.aspect,k.title);mxEvent.addListener(t,"dragleave",function(T){v.style.cursor="";for(var V=mxEvent.getSource(T);null!=V;){if(V==t||V==v){T.stopPropagation();T.preventDefault();break}V=V.parentNode}});var O=function(T){return function(V,fa,y,d,p,A,G,I,L){null!=L&&EditorUi.isVisioFilename(L.name)?b.importVisio(L,mxUtils.bind(this,function(P){F(P,fa,y,d,p,A,G,"fixed",mxEvent.isAltDown(T)?null:G.substring(0,G.lastIndexOf(".")).replace(/_/g," "))})):null!=L&&b.isGliffyData(V,L.name)?b.importGliffy(V,mxUtils.bind(this,function(P){b.spinner.stop();F(P,fa,y,d,p,A,G,"fixed",mxEvent.isAltDown(T)?null:G.substring(0,G.lastIndexOf(".")).replace(/_/g," "));t.scrollTop=t.scrollHeight}),mxUtils.bind(this,function(P){b.spinner.stop();b.showError(mxResources.get("error"),null!=P&&413==P.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))}),-L.name):(F(V,fa,y,d,p,A,G,"fixed",mxEvent.isAltDown(T)?null:G.substring(0,G.lastIndexOf(".")).replace(/_/g," ")),t.scrollTop=t.scrollHeight)}};mxEvent.addListener(t,"dragover",J);mxEvent.addListener(t,"drop",H);mxEvent.addListener(v,"dragover",J);mxEvent.addListener(v,"drop",H);m.appendChild(t);f=document.createElement("div");f.style.textAlign="right";f.style.marginTop="14px";f.style.flexShrink="0";g=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});g.setAttribute("id","btnCancel");-g.className="geBtn";b.editor.cancelFirst&&f.appendChild(g);"draw.io"!=b.getServiceName()||null==q||q.constructor!=DriveLibrary&&q.constructor!=GitHubLibrary||(k=mxUtils.button(mxResources.get("link"),function(){b.getPublicUrl(q,function(T){if(null!=T){var V=b.getSearch("create title mode url drive splash state clibs ui".split(" "));V+=(0==V.length?"?":"&")+"splash=0&clibs=U"+encodeURIComponent(T);T=new EmbedDialog(b,window.location.protocol+"//"+window.location.host+"/"+V,null,null,null,null,"Check out the library I made using @drawio");-b.showDialog(T.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));T.init()}else q.constructor==DriveLibrary?b.showError(mxResources.get("error"),mxResources.get("diagramIsNotPublic"),mxResources.get("share"),mxUtils.bind(this,function(){b.drive.showPermissions(q.getId(),q)}),null,mxResources.get("ok"),mxUtils.bind(this,function(){})):b.handleError({message:mxResources.get("diagramIsNotPublic")})})}),k.className="geBtn",f.appendChild(k));k=mxUtils.button(mxResources.get("export"),function(){var T=-b.createLibraryDataFromImages(D),V=r.value;/(\.xml)$/i.test(V)||(V+=".xml");b.isLocalFileSave()?b.saveLocalFile(T,V,"text/xml",null,null,null!=x?x:!0,null,"xml"):(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(V)+"&format=xml&xml="+encodeURIComponent(T))).simulate(document,"_blank")});k.setAttribute("id","btnDownload");k.className="geBtn";f.appendChild(k);if(Graph.fileSupport){if(null==b.libDlgFileInputElt){var U=document.createElement("input");U.setAttribute("multiple","multiple");U.setAttribute("type",-"file");mxEvent.addListener(U,"change",function(T){M=!1;b.importFiles(U.files,0,0,b.maxImageSize,function(V,fa,y,d,p,A,G,I,L){null!=U.files&&(O(T)(V,fa,y,d,p,A,G,I,L),U.type="",U.type="file",U.value="")});t.scrollTop=t.scrollHeight});U.style.display="none";document.body.appendChild(U);b.libDlgFileInputElt=U}k=mxUtils.button(mxResources.get("import"),function(){null!=C&&(C(),C=null);b.libDlgFileInputElt.click()});k.setAttribute("id","btnAddImage");k.className="geBtn";f.appendChild(k)}k=mxUtils.button(mxResources.get("addImages"),-function(){null!=C&&(C(),C=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(T,V,fa){M=!1;if(null!=T){if("data:image/"==T.substring(0,11)){var y=T.indexOf(",");0<y&&(T=T.substring(0,y)+";base64,"+T.substring(y+1))}F(T,null,0,0,V,fa);t.scrollTop=t.scrollHeight}})});k.setAttribute("id","btnAddImageUrl");k.className="geBtn";f.appendChild(k);this.saveBtnClickHandler=function(T,V,fa,y){b.saveLibrary(T,V,fa,y)};k=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=-C&&(C(),C=null);this.saveBtnClickHandler(r.value,D,q,u)}));k.setAttribute("id","btnSave");k.className="geBtn gePrimaryBtn";f.appendChild(k);b.editor.cancelFirst||f.appendChild(g);m.appendChild(f);this.container=m},EditShapeDialog=function(b,k,m){var f=document.createElement("div");f.style.position="absolute";f.style.left="30px";f.style.right="30px";f.style.top="30px";f.style.bottom="30px";var q=document.createElement("div");q.style.position="absolute";q.style.top="0px";mxUtils.write(q,m);f.appendChild(q);+L.name):(F(V,fa,y,d,p,A,G,"fixed",mxEvent.isAltDown(T)?null:G.substring(0,G.lastIndexOf(".")).replace(/_/g," ")),t.scrollTop=t.scrollHeight)}};mxEvent.addListener(t,"dragover",J);mxEvent.addListener(t,"drop",H);mxEvent.addListener(v,"dragover",J);mxEvent.addListener(v,"drop",H);m.appendChild(t);g=document.createElement("div");g.style.textAlign="right";g.style.marginTop="14px";g.style.flexShrink="0";f=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});f.setAttribute("id","btnCancel");+f.className="geBtn";b.editor.cancelFirst&&g.appendChild(f);"draw.io"!=b.getServiceName()||null==q||q.constructor!=DriveLibrary&&q.constructor!=GitHubLibrary||(k=mxUtils.button(mxResources.get("link"),function(){b.getPublicUrl(q,function(T){if(null!=T){var V=b.getSearch("create title mode url drive splash state clibs ui".split(" "));V+=(0==V.length?"?":"&")+"splash=0&clibs=U"+encodeURIComponent(T);T=new EmbedDialog(b,window.location.protocol+"//"+window.location.host+"/"+V,null,null,null,null,"Check out the library I made using @drawio");+b.showDialog(T.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));T.init()}else q.constructor==DriveLibrary?b.showError(mxResources.get("error"),mxResources.get("diagramIsNotPublic"),mxResources.get("share"),mxUtils.bind(this,function(){b.drive.showPermissions(q.getId(),q)}),null,mxResources.get("ok"),mxUtils.bind(this,function(){})):b.handleError({message:mxResources.get("diagramIsNotPublic")})})}),k.className="geBtn",g.appendChild(k));k=mxUtils.button(mxResources.get("export"),function(){var T=+b.createLibraryDataFromImages(D),V=r.value;/(\.xml)$/i.test(V)||(V+=".xml");b.isLocalFileSave()?b.saveLocalFile(T,V,"text/xml",null,null,null!=x?x:!0,null,"xml"):(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(V)+"&format=xml&xml="+encodeURIComponent(T))).simulate(document,"_blank")});k.setAttribute("id","btnDownload");k.className="geBtn";g.appendChild(k);if(Graph.fileSupport){if(null==b.libDlgFileInputElt){var U=document.createElement("input");U.setAttribute("multiple","multiple");U.setAttribute("type",+"file");mxEvent.addListener(U,"change",function(T){M=!1;b.importFiles(U.files,0,0,b.maxImageSize,function(V,fa,y,d,p,A,G,I,L){null!=U.files&&(O(T)(V,fa,y,d,p,A,G,I,L),U.type="",U.type="file",U.value="")});t.scrollTop=t.scrollHeight});U.style.display="none";document.body.appendChild(U);b.libDlgFileInputElt=U}k=mxUtils.button(mxResources.get("import"),function(){null!=C&&(C(),C=null);b.libDlgFileInputElt.click()});k.setAttribute("id","btnAddImage");k.className="geBtn";g.appendChild(k)}k=mxUtils.button(mxResources.get("addImages"),+function(){null!=C&&(C(),C=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(T,V,fa){M=!1;if(null!=T){if("data:image/"==T.substring(0,11)){var y=T.indexOf(",");0<y&&(T=T.substring(0,y)+";base64,"+T.substring(y+1))}F(T,null,0,0,V,fa);t.scrollTop=t.scrollHeight}})});k.setAttribute("id","btnAddImageUrl");k.className="geBtn";g.appendChild(k);this.saveBtnClickHandler=function(T,V,fa,y){b.saveLibrary(T,V,fa,y)};k=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=+C&&(C(),C=null);this.saveBtnClickHandler(r.value,D,q,u)}));k.setAttribute("id","btnSave");k.className="geBtn gePrimaryBtn";g.appendChild(k);b.editor.cancelFirst||g.appendChild(f);m.appendChild(g);this.container=m},EditShapeDialog=function(b,k,m){var g=document.createElement("div");g.style.position="absolute";g.style.left="30px";g.style.right="30px";g.style.top="30px";g.style.bottom="30px";var q=document.createElement("div");q.style.position="absolute";q.style.top="0px";mxUtils.write(q,m);g.appendChild(q);m=document.createElement("div");m.style.position="absolute";m.style.width="100%";m.style.display="flex";m.style.alignItems="stretch";m.style.top="24px";m.style.bottom="50px";var u=document.createElement("textarea");u.style.outline="none";u.style.resize="horizontal";u.style.width="430px";u.style.maxWidth="calc(100% - 100px)";u.style.flexShrink="0";u.style.borderRadius="4px";u.style.marginRight="4px";m.appendChild(u);var x=document.createElement("div");x.style.borderWidth="1px";x.style.borderStyle=-"solid";x.style.padding="20px";x.style.flexGrow="1";x.style.borderRadius="4px";mxEvent.disableContextMenu(x);m.appendChild(x);var z=new Graph(x);z.setEnabled(!1);var F=b.editor.graph.cloneCell(k);z.addCells([F]);q=z.view.getState(F);var J="";null!=q.shape&&null!=q.shape.stencil&&(J=mxUtils.getPrettyXml(q.shape.stencil.desc));mxUtils.write(u,J||"");f.appendChild(m);m=document.createElement("div");m.style.position="absolute";m.style.display="flex";m.style.alignItems="center";m.style.justifyContent=-"end";m.style.bottom="6px";m.style.height="30px";m.style.width="100%";b.isOffline()||m.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/shape-complex-create-edit"));q=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});q.className="geBtn";b.editor.cancelFirst&&m.appendChild(q);var H=function(c,g,l){var n=u.value,r=mxUtils.parseXml(n);n=mxUtils.getPrettyXml(r.documentElement);r=r.documentElement.getElementsByTagName("parsererror");if(null!=r&&0<r.length)b.showError(mxResources.get("error"),-mxResources.get("containsValidationErrors"),mxResources.get("ok"));else if(l&&b.hideDialog(),r=!c.model.contains(g),!l||r||n!=J){n=Graph.compress(n);c.getModel().beginUpdate();try{if(r){var t=b.editor.graph.getFreeInsertPoint();g.geometry.x=t.x;g.geometry.y=t.y;c.addCell(g)}c.setCellStyles(mxConstants.STYLE_SHAPE,"stencil("+n+")",[g])}catch(v){throw v;}finally{c.getModel().endUpdate()}r&&(c.setSelectionCell(g),c.scrollCellToVisible(g))}},D=mxUtils.button(mxResources.get("preview"),function(){H(z,-F,!1);z.fit()});D.className="geBtn";m.appendChild(D);D=mxUtils.button(mxResources.get("apply"),function(){H(b.editor.graph,k,!0)});D.className="geBtn gePrimaryBtn";m.appendChild(D);b.editor.cancelFirst||m.appendChild(q);f.appendChild(m);this.init=function(){u.focus();u.scrollTop=0;z.fit();x.style.overflow="auto";z.fit()};this.container=f},CustomDialog=function(b,k,m,f,q,u,x,z,F,J,H,D){var c=document.createElement("div");c.style.display="flex";c.style.flexDirection="column";c.style.minHeight="0";c.style.paddingBottom=-"10px";var g=document.createElement("div");g.style.flex="1 1 auto";g.style.minHeight="0";g.style.overflowY="auto";g.appendChild(k);c.appendChild(g);var l=document.createElement("div");l.style.flex="0 0 auto";l.style.marginTop=null!=D?D:"34px";l.style.textAlign="right";b.isOffline()||null==u||l.appendChild(b.createHelpIcon(u));null!=x&&l.appendChild(x);k=mxUtils.button(F||mxResources.get("cancel"),function(){b.hideDialog();null!=f&&f()});k.className="geBtn";z&&(k.style.display="none");b.editor.cancelFirst&&+"solid";x.style.padding="20px";x.style.flexGrow="1";x.style.borderRadius="4px";mxEvent.disableContextMenu(x);m.appendChild(x);var z=new Graph(x);z.setEnabled(!1);var F=b.editor.graph.cloneCell(k);z.addCells([F]);q=z.view.getState(F);var J="";null!=q.shape&&null!=q.shape.stencil&&(J=mxUtils.getPrettyXml(q.shape.stencil.desc));mxUtils.write(u,J||"");g.appendChild(m);m=document.createElement("div");m.style.position="absolute";m.style.display="flex";m.style.alignItems="center";m.style.justifyContent=+"end";m.style.bottom="6px";m.style.height="30px";m.style.width="100%";b.isOffline()||m.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/shape-complex-create-edit"));q=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});q.className="geBtn";b.editor.cancelFirst&&m.appendChild(q);var H=function(c,f,l){var n=u.value,r=mxUtils.parseXml(n);n=mxUtils.getPrettyXml(r.documentElement);r=r.documentElement.getElementsByTagName("parsererror");if(null!=r&&0<r.length)b.showError(mxResources.get("error"),+mxResources.get("containsValidationErrors"),mxResources.get("ok"));else if(l&&b.hideDialog(),r=!c.model.contains(f),!l||r||n!=J){n=Graph.compress(n);c.getModel().beginUpdate();try{if(r){var t=b.editor.graph.getFreeInsertPoint();f.geometry.x=t.x;f.geometry.y=t.y;c.addCell(f)}c.setCellStyles(mxConstants.STYLE_SHAPE,"stencil("+n+")",[f])}catch(v){throw v;}finally{c.getModel().endUpdate()}r&&(c.setSelectionCell(f),c.scrollCellToVisible(f))}},D=mxUtils.button(mxResources.get("preview"),function(){H(z,+F,!1);z.fit()});D.className="geBtn";m.appendChild(D);D=mxUtils.button(mxResources.get("apply"),function(){H(b.editor.graph,k,!0)});D.className="geBtn gePrimaryBtn";m.appendChild(D);b.editor.cancelFirst||m.appendChild(q);g.appendChild(m);this.init=function(){u.focus();u.scrollTop=0;z.fit();x.style.overflow="auto";z.fit()};this.container=g},CustomDialog=function(b,k,m,g,q,u,x,z,F,J,H,D){var c=document.createElement("div");c.style.display="flex";c.style.flexDirection="column";c.style.minHeight="0";c.style.paddingBottom=+"10px";var f=document.createElement("div");f.style.flex="1 1 auto";f.style.minHeight="0";f.style.overflowY="auto";f.appendChild(k);c.appendChild(f);var l=document.createElement("div");l.style.flex="0 0 auto";l.style.marginTop=null!=D?D:"34px";l.style.textAlign="right";b.isOffline()||null==u||l.appendChild(b.createHelpIcon(u));null!=x&&l.appendChild(x);k=mxUtils.button(F||mxResources.get("cancel"),function(){b.hideDialog();null!=g&&g()});k.className="geBtn";z&&(k.style.display="none");b.editor.cancelFirst&&l.appendChild(k);q=mxUtils.button(q||mxResources.get("ok"),mxUtils.bind(this,function(){J||b.hideDialog(null,null,this.container);if(null!=m){var n=m();if("string"===typeof n){b.showError(mxResources.get("error"),n);return}}J&&b.hideDialog(null,null,this.container)}));l.appendChild(q);q.className="geBtn gePrimaryBtn";b.editor.cancelFirst||l.appendChild(k);if(null!=H)for(z=0;z<H.length;z++)(function(n,r,t){n=mxUtils.button(n,function(v){r(v)});null!=t&&n.setAttribute("title",t);n.className="geBtn";-l.appendChild(n)})(H[z][0],H[z][1],H[z][2]);c.appendChild(l);this.cancelBtn=k;this.okButton=q;this.container=c},BtnDialog=function(b,k,m,f){var q=document.createElement("div");q.style.textAlign="center";var u=document.createElement("p");u.style.fontSize="16pt";u.style.padding="0px";u.style.margin="0px";u.style.color="gray";mxUtils.write(u,mxResources.get("done"));var x="Unknown",z=document.createElement("img");z.setAttribute("border","0");z.setAttribute("align","absmiddle");z.style.marginRight="10px";+l.appendChild(n)})(H[z][0],H[z][1],H[z][2]);c.appendChild(l);this.cancelBtn=k;this.okButton=q;this.container=c},BtnDialog=function(b,k,m,g){var q=document.createElement("div");q.style.textAlign="center";var u=document.createElement("p");u.style.fontSize="16pt";u.style.padding="0px";u.style.margin="0px";u.style.color="gray";mxUtils.write(u,mxResources.get("done"));var x="Unknown",z=document.createElement("img");z.setAttribute("border","0");z.setAttribute("align","absmiddle");z.style.marginRight="10px";k==b.drive?(x=mxResources.get("googleDrive"),z.src=IMAGE_PATH+"/google-drive-logo-white.svg"):k==b.dropbox?(x=mxResources.get("dropbox"),z.src=IMAGE_PATH+"/dropbox-logo-white.svg"):k==b.oneDrive?(x=mxResources.get("oneDrive"),z.src=IMAGE_PATH+"/onedrive-logo-white.svg"):k==b.gitHub?(x=mxResources.get("github"),z.src=IMAGE_PATH+"/github-logo-white.svg"):k==b.gitLab?(x=mxResources.get("gitlab"),z.src=IMAGE_PATH+"/gitlab-logo.svg"):k==b.trello&&(x=mxResources.get("trello"),z.src=IMAGE_PATH+"/trello-logo-white.svg");-b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizedIn",[x],"You are now authorized in {1}"));m=mxUtils.button(m,f);m.insertBefore(z,m.firstChild);m.style.marginTop="6px";m.className="geBigButton";m.style.fontSize="18px";m.style.padding="14px";q.appendChild(u);q.appendChild(b);q.appendChild(m);this.container=q},FontDialog=function(b,k,m,f,q){function u(E,K,C){var R=document.createElement("div");R.className="geDialogFormRow";R.style.paddingLeft="24px";var M=document.createElement("span");+b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizedIn",[x],"You are now authorized in {1}"));m=mxUtils.button(m,g);m.insertBefore(z,m.firstChild);m.style.marginTop="6px";m.className="geBigButton";m.style.fontSize="18px";m.style.padding="14px";q.appendChild(u);q.appendChild(b);q.appendChild(m);this.container=q},FontDialog=function(b,k,m,g,q){function u(E,K,C){var R=document.createElement("div");R.className="geDialogFormRow";R.style.paddingLeft="24px";var M=document.createElement("span");M.className="geDialogFormLabel";mxUtils.write(M,K+":");R.appendChild(M);R.appendChild(C);E.appendChild(R);return R}function x(E){this.style.border="";13==E.keyCode&&B.click()}var z=document.createElement("div"),F=document.createElement("h3");mxUtils.write(F,mxResources.get("font"));z.appendChild(F);F=document.createElement("div");F.className="geDialogSection";var J=b.addCheckbox(F,mxResources.get("sysFonts"),!1,null,null,null,!0,"current-fontdialog",!0),H=document.createElement("input");H.setAttribute("type",-"text");"s"==f&&H.setAttribute("value",k);H.className="dlg_fontName_s";var D=null;if(null!=Editor.localFonts){D=document.createElement("datalist");D.id="fontdialog-localfonts";for(var c=0;c<Editor.localFonts.length;c++){var g=document.createElement("option");g.value=Editor.localFonts[c];D.appendChild(g)}H.setAttribute("list","fontdialog-localfonts")}c=u(F,mxResources.get("fontname"),H);null!=D&&c.appendChild(D);z.appendChild(F);F=document.createElement("div");F.className="geDialogSection";var l=b.addCheckbox(F,-mxResources.get("googleFonts"),!1,null,null,null,!0,"current-fontdialog",!0);b.isOffline()&&!EditorUi.isElectronApp||l.checkRow.appendChild(b.createHelpIcon("https://fonts.google.com/"));var n=document.createElement("input");n.setAttribute("type","text");"g"==f&&n.setAttribute("value",k);n.className="dlg_fontName_g";u(F,mxResources.get("fontname"),n);"0"!=urlParams.isGoogleFontsEnabled&&z.appendChild(F);F=document.createElement("div");F.className="geDialogSection";var r=b.addCheckbox(F,mxResources.get("webfonts"),-!1,null,null,null,!0,"current-fontdialog",!0),t=document.createElement("input");t.setAttribute("type","text");"w"==f&&(Editor.enableWebFonts?t.setAttribute("value",k):H.setAttribute("value",k));t.className="dlg_fontName_w";u(F,mxResources.get("fontname"),t);var v=document.createElement("input");v.setAttribute("type","text");v.setAttribute("value",m||"");v.className="dlg_fontUrl";u(F,mxResources.get("fontUrl"),v);Editor.enableWebFonts&&z.appendChild(F);this.init=function(){var E=H;"g"==f?E=n:"w"==-f&&Editor.enableWebFonts&&(E=t);E.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?E.select():document.execCommand("selectAll",!1,null)};z.style.paddingBottom="10px";k=document.createElement("div");k.style.marginTop="34px";k.style.textAlign="right";k.style.whiteSpace="nowrap";b.isOffline()||k.appendChild(b.createHelpIcon("https://www.drawio.com/blog/external-fonts"));m=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();q()});m.className="geBtn";var B=mxUtils.button(mxResources.get("apply"),+"text");"s"==g&&H.setAttribute("value",k);H.className="dlg_fontName_s";var D=null;if(null!=Editor.localFonts){D=document.createElement("datalist");D.id="fontdialog-localfonts";for(var c=0;c<Editor.localFonts.length;c++){var f=document.createElement("option");f.value=Editor.localFonts[c];D.appendChild(f)}H.setAttribute("list","fontdialog-localfonts")}c=u(F,mxResources.get("fontname"),H);null!=D&&c.appendChild(D);z.appendChild(F);F=document.createElement("div");F.className="geDialogSection";var l=b.addCheckbox(F,+mxResources.get("googleFonts"),!1,null,null,null,!0,"current-fontdialog",!0);b.isOffline()&&!EditorUi.isElectronApp||l.checkRow.appendChild(b.createHelpIcon("https://fonts.google.com/"));var n=document.createElement("input");n.setAttribute("type","text");"g"==g&&n.setAttribute("value",k);n.className="dlg_fontName_g";u(F,mxResources.get("fontname"),n);"0"!=urlParams.isGoogleFontsEnabled&&z.appendChild(F);F=document.createElement("div");F.className="geDialogSection";var r=b.addCheckbox(F,mxResources.get("webfonts"),+!1,null,null,null,!0,"current-fontdialog",!0),t=document.createElement("input");t.setAttribute("type","text");"w"==g&&(Editor.enableWebFonts?t.setAttribute("value",k):H.setAttribute("value",k));t.className="dlg_fontName_w";u(F,mxResources.get("fontname"),t);var v=document.createElement("input");v.setAttribute("type","text");v.setAttribute("value",m||"");v.className="dlg_fontUrl";u(F,mxResources.get("fontUrl"),v);Editor.enableWebFonts&&z.appendChild(F);this.init=function(){var E=H;"g"==g?E=n:"w"==+g&&Editor.enableWebFonts&&(E=t);E.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?E.select():document.execCommand("selectAll",!1,null)};z.style.paddingBottom="10px";k=document.createElement("div");k.style.marginTop="34px";k.style.textAlign="right";k.style.whiteSpace="nowrap";b.isOffline()||k.appendChild(b.createHelpIcon("https://www.drawio.com/blog/external-fonts"));m=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();q()});m.className="geBtn";var B=mxUtils.button(mxResources.get("apply"),function(){if(J.checked){var E=H.value;var K="s"}else if(l.checked){E=n.value;var C=Editor.GOOGLE_FONTS+encodeURIComponent(E).replace(/%20/g,"+");K="g"}else r.checked&&(E=t.value,C=v.value,K="w");var R=E;var M=C,O=K,U=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/,T=z.querySelector(".dlg_fontName_"+O);null==T||null!=R&&0!=R.length?(T=z.querySelector(".dlg_fontUrl"),null==T||"w"!=O||U.test(M)?R=!0:(T.style.border="1px solid red",R=!1)):(T.style.border="1px solid red",R=!1);R&&(q(E,C,K),b.hideDialog())});B.className="geBtn gePrimaryBtn";mxEvent.addListener(H,"keypress",x);mxEvent.addListener(n,"keypress",x);mxEvent.addListener(t,"keypress",x);mxEvent.addListener(v,"keypress",x);mxEvent.addListener(H,"focus",function(){J.setAttribute("checked","checked");J.checked=!0});mxEvent.addListener(n,"focus",function(){l.setAttribute("checked","checked");l.checked=!0});mxEvent.addListener(t,"focus",function(){r.setAttribute("checked","checked");r.checked=!0});mxEvent.addListener(v,"focus",function(){r.setAttribute("checked","checked");r.checked=!0});b.editor.cancelFirst?(k.appendChild(m),k.appendChild(B)):(k.appendChild(B),k.appendChild(m));z.appendChild(k);this.container=z};-function AspectDialog(b,k,m,f,q){this.aspect={pageId:k||(b.pages?b.pages[0].getId():null),layerIds:m||[]};k=document.createElement("div");var u=document.createElement("h5");u.style.margin="0 0 10px";mxUtils.write(u,mxResources.get("pages"));k.appendChild(u);m=document.createElement("div");m.className="geAspectDlgList";k.appendChild(m);u=document.createElement("h5");u.style.margin="0 0 10px";mxUtils.write(u,mxResources.get("layers"));k.appendChild(u);u=document.createElement("div");u.className="geAspectDlgList";-k.appendChild(u);this.pagesContainer=m;this.layersContainer=u;this.ui=b;m=document.createElement("div");m.style.marginTop="16px";m.style.textAlign="center";u=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();null!=q&&q()});u.className="geBtn";b.editor.cancelFirst&&m.appendChild(u);var x=mxUtils.button(mxResources.get("ok"),mxUtils.bind(this,function(){b.hideDialog();f({pageId:this.selectedPage,layerIds:Object.keys(this.selectedLayers)})}));m.appendChild(x);x.className="geBtn gePrimaryBtn";+function AspectDialog(b,k,m,g,q){this.aspect={pageId:k||(b.pages?b.pages[0].getId():null),layerIds:m||[]};k=document.createElement("div");var u=document.createElement("h5");u.style.margin="0 0 10px";mxUtils.write(u,mxResources.get("pages"));k.appendChild(u);m=document.createElement("div");m.className="geAspectDlgList";k.appendChild(m);u=document.createElement("h5");u.style.margin="0 0 10px";mxUtils.write(u,mxResources.get("layers"));k.appendChild(u);u=document.createElement("div");u.className="geAspectDlgList";+k.appendChild(u);this.pagesContainer=m;this.layersContainer=u;this.ui=b;m=document.createElement("div");m.style.marginTop="16px";m.style.textAlign="center";u=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();null!=q&&q()});u.className="geBtn";b.editor.cancelFirst&&m.appendChild(u);var x=mxUtils.button(mxResources.get("ok"),mxUtils.bind(this,function(){b.hideDialog();g({pageId:this.selectedPage,layerIds:Object.keys(this.selectedLayers)})}));m.appendChild(x);x.className="geBtn gePrimaryBtn";b.editor.cancelFirst||m.appendChild(u);x.setAttribute("disabled","disabled");this.okBtn=x;k.appendChild(m);this.container=k}AspectDialog.prototype.init=function(){var b=this.ui.getFileData(!0);if(this.ui.pages)for(b=0;b<this.ui.pages.length;b++){var k=this.ui.updatePageRoot(this.ui.pages[b]);this.createPageItem(k.getId(),k.getName(),k.node)}else this.createPageItem("1",mxResources.get("pageWithNumber",[1]),mxUtils.parseXml(b).documentElement)};-AspectDialog.prototype.createViewer=function(b,k,m,f){mxEvent.disableContextMenu(b);b.style.userSelect="none";var q=new Graph(b);q.setTooltips(!1);q.setEnabled(!1);q.setPanning(!1);q.minFitScale=null;q.maxFitScale=null;q.centerZoom=!0;k="mxGraphModel"==k.nodeName?k:Editor.parseDiagramNode(k);if(null!=k){var u=k.getAttribute("background");if(null==u||""==u||u==mxConstants.NONE)u=null!=f?f:"#ffffff";b.style.backgroundColor=u;f=new mxCodec(k.ownerDocument);b=q.getModel();f.decode(k,b);k=b.getChildCount(b.root);-f=null==m;for(u=0;u<k;u++){var x=b.getChildAt(b.root,u);b.setVisible(x,f||m==x.id)}q.maxFitScale=1;q.fit(0);q.center()}return q};-AspectDialog.prototype.createPageItem=function(b,k,m){var f=document.createElement("div");f.className="geAspectDlgListItem";f.setAttribute("data-page-id",b);f.innerHTML='<div style="max-width: 100%; max-height: 100%;"></div><div class="geAspectDlgListItemText">'+mxUtils.htmlEntities(k)+"</div>";this.pagesContainer.appendChild(f);var q=this.createViewer(f.childNodes[0],m);k=mxUtils.bind(this,function(){null!=this.selectedItem&&(this.selectedItem.className="geAspectDlgListItem");this.selectedItem=f;-this.selectedPage=b;f.className+=" geAspectDlgListItemSelected";this.layersContainer.innerText="";this.selectedLayers={};this.okBtn.setAttribute("disabled","disabled");var u=q.model;u=u.getChildCells(u.getRoot());for(var x=0;x<u.length;x++)this.createLayerItem(u[x],b,q,m)});mxEvent.addListener(f,"click",k);this.aspect.pageId==b&&k()};-AspectDialog.prototype.createLayerItem=function(b,k,m,f){k=m.convertValueToString(b)||mxResources.get("background")||"Background";var q=document.createElement("div");q.setAttribute("data-layer-id",b.id);q.className="geAspectDlgListItem";q.innerHTML='<div style="max-width: 100%; max-height: 100%;"></div><div class="geAspectDlgListItemText">'+mxUtils.htmlEntities(k)+"</div>";this.layersContainer.appendChild(q);this.createViewer(q.childNodes[0],f,b.id);f=mxUtils.bind(this,function(){0<=q.className.indexOf("geAspectDlgListItemSelected")?-(q.className="geAspectDlgListItem",delete this.selectedLayers[b.id],mxUtils.isEmptyObject(this.selectedLayers)&&this.okBtn.setAttribute("disabled","disabled")):(q.className+=" geAspectDlgListItemSelected",this.selectedLayers[b.id]=!0,this.okBtn.removeAttribute("disabled"))});mxEvent.addListener(q,"click",f);-1!=this.aspect.layerIds.indexOf(b.id)&&f()};-var FilePropertiesDialog=function(b,k){function m(R){var M=H;H=function(O,U){try{R(function(){M(O,U)},U)}catch(T){U(T)}}}function f(R,M,O){var U=document.createElement("div");U.className="geDialogFormRow";var T=document.createElement("span");T.className="geDialogFormLabel";mxUtils.write(T,M+":");U.appendChild(T);U.appendChild(O);R.appendChild(U);return U}var q=document.createElement("div"),u=document.createElement("h3");mxUtils.write(u,mxResources.get("properties"));q.appendChild(u);var x=b.getCurrentFile(),-z=null!=x&&null!=x.getTitle()?x.getTitle():b.defaultFilename,F=/(\.png)$/i.test(z);u=/(\.svg)$/i.test(z);var J=/(\.pdf)$/i.test(z),H=function(R,M){R()},D=document.createElement("div");D.className="geDialogSection";if(J&&EditorUi.isElectronApp){var c=b.getPdfFileProperties(b.fileNode).notes,g=b.addCheckbox(D,mxResources.get("notes"),c,null,null,null,null,null,!0);this.init=this.init||function(){g.focus()};m(function(R,M){null!=b.fileNode&&c!=g.checked&&(b.fileNode.setAttribute("notes",g.checked?"true":-"false"),null!=x&&x.fileChanged());R()})}if(F||u){z=1;F=0;J=b.fileNode;null!=J&&(J.hasAttribute("scale")&&(z=parseFloat(J.getAttribute("scale"))),J.hasAttribute("border")&&(F=parseInt(J.getAttribute("border"))));var l=document.createElement("input");l.setAttribute("type","text");l.setAttribute("value",100*z+"%");f(D,mxResources.get("zoom"),l);var n=document.createElement("input");n.setAttribute("type","text");n.setAttribute("value",F);f(D,mxResources.get("borderWidth"),n);var r=null;u&&(r=b.addCheckbox(D,+AspectDialog.prototype.createViewer=function(b,k,m,g){mxEvent.disableContextMenu(b);b.style.userSelect="none";var q=new Graph(b);q.setTooltips(!1);q.setEnabled(!1);q.setPanning(!1);q.minFitScale=null;q.maxFitScale=null;q.centerZoom=!0;k="mxGraphModel"==k.nodeName?k:Editor.parseDiagramNode(k);if(null!=k){var u=k.getAttribute("background");if(null==u||""==u||u==mxConstants.NONE)u=null!=g?g:"#ffffff";b.style.backgroundColor=u;g=new mxCodec(k.ownerDocument);b=q.getModel();g.decode(k,b);k=b.getChildCount(b.root);+g=null==m;for(u=0;u<k;u++){var x=b.getChildAt(b.root,u);b.setVisible(x,g||m==x.id)}q.maxFitScale=1;q.fit(0);q.center()}return q};+AspectDialog.prototype.createPageItem=function(b,k,m){var g=document.createElement("div");g.className="geAspectDlgListItem";g.setAttribute("data-page-id",b);g.innerHTML='<div style="max-width: 100%; max-height: 100%;"></div><div class="geAspectDlgListItemText">'+mxUtils.htmlEntities(k)+"</div>";this.pagesContainer.appendChild(g);var q=this.createViewer(g.childNodes[0],m);k=mxUtils.bind(this,function(){null!=this.selectedItem&&(this.selectedItem.className="geAspectDlgListItem");this.selectedItem=g;+this.selectedPage=b;g.className+=" geAspectDlgListItemSelected";this.layersContainer.innerText="";this.selectedLayers={};this.okBtn.setAttribute("disabled","disabled");var u=q.model;u=u.getChildCells(u.getRoot());for(var x=0;x<u.length;x++)this.createLayerItem(u[x],b,q,m)});mxEvent.addListener(g,"click",k);this.aspect.pageId==b&&k()};+AspectDialog.prototype.createLayerItem=function(b,k,m,g){k=m.convertValueToString(b)||mxResources.get("background")||"Background";var q=document.createElement("div");q.setAttribute("data-layer-id",b.id);q.className="geAspectDlgListItem";q.innerHTML='<div style="max-width: 100%; max-height: 100%;"></div><div class="geAspectDlgListItemText">'+mxUtils.htmlEntities(k)+"</div>";this.layersContainer.appendChild(q);this.createViewer(q.childNodes[0],g,b.id);g=mxUtils.bind(this,function(){0<=q.className.indexOf("geAspectDlgListItemSelected")?+(q.className="geAspectDlgListItem",delete this.selectedLayers[b.id],mxUtils.isEmptyObject(this.selectedLayers)&&this.okBtn.setAttribute("disabled","disabled")):(q.className+=" geAspectDlgListItemSelected",this.selectedLayers[b.id]=!0,this.okBtn.removeAttribute("disabled"))});mxEvent.addListener(q,"click",g);-1!=this.aspect.layerIds.indexOf(b.id)&&g()};+var FilePropertiesDialog=function(b,k){function m(R){var M=H;H=function(O,U){try{R(function(){M(O,U)},U)}catch(T){U(T)}}}function g(R,M,O){var U=document.createElement("div");U.className="geDialogFormRow";var T=document.createElement("span");T.className="geDialogFormLabel";mxUtils.write(T,M+":");U.appendChild(T);U.appendChild(O);R.appendChild(U);return U}var q=document.createElement("div"),u=document.createElement("h3");mxUtils.write(u,mxResources.get("properties"));q.appendChild(u);var x=b.getCurrentFile(),+z=null!=x&&null!=x.getTitle()?x.getTitle():b.defaultFilename,F=/(\.png)$/i.test(z);u=/(\.svg)$/i.test(z);var J=/(\.pdf)$/i.test(z),H=function(R,M){R()},D=document.createElement("div");D.className="geDialogSection";if(J&&EditorUi.isElectronApp){var c=b.getPdfFileProperties(b.fileNode).notes,f=b.addCheckbox(D,mxResources.get("notes"),c,null,null,null,null,null,!0);this.init=this.init||function(){f.focus()};m(function(R,M){null!=b.fileNode&&c!=f.checked&&(b.fileNode.setAttribute("notes",f.checked?"true":+"false"),null!=x&&x.fileChanged());R()})}if(F||u){z=1;F=0;J=b.fileNode;null!=J&&(J.hasAttribute("scale")&&(z=parseFloat(J.getAttribute("scale"))),J.hasAttribute("border")&&(F=parseInt(J.getAttribute("border"))));var l=document.createElement("input");l.setAttribute("type","text");l.setAttribute("value",100*z+"%");g(D,mxResources.get("zoom"),l);var n=document.createElement("input");n.setAttribute("type","text");n.setAttribute("value",F);g(D,mxResources.get("borderWidth"),n);var r=null;u&&(r=b.addCheckbox(D,mxResources.get("embedFonts"),b.getSvgFileProperties(J).embedFonts,null,null,null,null,null,!0));this.init=this.init||function(){l.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?l.select():document.execCommand("selectAll",!1,null)};m(function(R,M){null!=b.fileNode&&(b.fileNode.setAttribute("scale",Math.max(0,parseInt(l.value)/100)),b.fileNode.setAttribute("border",Math.max(0,parseInt(n.value))),null!=r&&b.fileNode.setAttribute("embedFonts",r.checked?"true":"false"),null!=x&&x.fileChanged());R()})}else if(!/(\.html)$/i.test(z)&&!/(\.svg)$/i.test(z)){var t=null!=x?x.isCompressed():Editor.defaultCompressed,v=b.addCheckbox(D,mxResources.get("compressed"),t,null,null,null,null,null,!0);this.init=this.init||function(){v.focus()};m(function(R,M){null!=b.fileNode&&t!=v.checked?window.setTimeout(function(){b.fileNode.setAttribute("compressed",v.checked?"true":"false");null!=x&&(x.compressionChanged(v.checked),x.fileChanged());R()},0):R()})}var B=null!=x?x.isLocked():!1,E=b.addCheckbox(D,mxResources.get("locked"),B,null,null,null,null,null,!0);this.init=this.init||function(){E.focus()};m(function(R,M){null!=b.fileNode&&B!=E.checked?window.setTimeout(function(){null!=x&&x.setLocked(E.checked);R()},0):R()});if(null!=x&&x.isRealtimeOptional()){var K="disabled"!=b.drive.getCustomProperty(x.desc,"collaboration"),C=b.addCheckbox(D,mxResources.get("realtimeCollaboration"),K,null,null,null,null,null,!0);C.checkRow.appendChild(b.menus.createHelpLink("https://www.drawio.com/docs/manual/collaboration/concurrent-editing/#disable-real-time-collaboration"));-m(function(R,M){C.checked!=K?x.setRealtimeEnabled(C.checked,R,M):R()});this.init=null!=this.init?this.init:function(){C.focus()}}q.appendChild(D);u=document.createElement("div");u.className="geDialogSection";D=!1;null!=x&&"draw.io"==b.getServiceName()&&0<x.getSize()&&"1"!=urlParams.embed&&(D=b.formatFileSize(x.getSize()),z=document.createElement("input"),z.setAttribute("type","text"),z.setAttribute("title",D),z.setAttribute("value",D),z.setAttribute("disabled","disabled"),f(u,mxResources.get("size"),-z),D=!0);null!=x&&null!=x.fileObject&&null!=x.fileObject.path&&(D=document.createElement("input"),D.setAttribute("type","text"),D.setAttribute("title",x.fileObject.path),D.setAttribute("value",x.fileObject.path),D.setAttribute("disabled","disabled"),f(u,mxResources.get("pathFilename"),D),D=!0);null!=k&&(D=document.createElement("a"),D.setAttribute("href",k),D.setAttribute("title",k),D.style.flex="1",D.style.minWidth="0",D.style.whiteSpace="nowrap",D.style.overflow="hidden",D.style.textOverflow="ellipsis",-mxUtils.write(D,k),mxEvent.addListener(D,"click",function(R){b.openLink(k);mxEvent.consume(R)}),f(u,mxResources.get("publicDiagramUrl"),D),D=!0);D&&q.appendChild(u);this.init=null!=this.init?this.init:function(){};q.style.paddingBottom="10px";u=document.createElement("div");u.style.marginTop="34px";u.style.textAlign="right";u.style.whiteSpace="nowrap";D=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});D.className="geBtn";z=mxUtils.button(mxResources.get("apply"),function(){b.spinner.spin(document.body,+m(function(R,M){C.checked!=K?x.setRealtimeEnabled(C.checked,R,M):R()});this.init=null!=this.init?this.init:function(){C.focus()}}q.appendChild(D);u=document.createElement("div");u.className="geDialogSection";D=!1;null!=x&&"draw.io"==b.getServiceName()&&0<x.getSize()&&"1"!=urlParams.embed&&(D=b.formatFileSize(x.getSize()),z=document.createElement("input"),z.setAttribute("type","text"),z.setAttribute("title",D),z.setAttribute("value",D),z.setAttribute("disabled","disabled"),g(u,mxResources.get("size"),+z),D=!0);null!=x&&null!=x.fileObject&&null!=x.fileObject.path&&(D=document.createElement("input"),D.setAttribute("type","text"),D.setAttribute("title",x.fileObject.path),D.setAttribute("value",x.fileObject.path),D.setAttribute("disabled","disabled"),g(u,mxResources.get("pathFilename"),D),D=!0);null!=k&&(D=document.createElement("a"),D.setAttribute("href",k),D.setAttribute("title",k),D.style.flex="1",D.style.minWidth="0",D.style.whiteSpace="nowrap",D.style.overflow="hidden",D.style.textOverflow="ellipsis",+mxUtils.write(D,k),mxEvent.addListener(D,"click",function(R){b.openLink(k);mxEvent.consume(R)}),g(u,mxResources.get("publicDiagramUrl"),D),D=!0);D&&q.appendChild(u);this.init=null!=this.init?this.init:function(){};q.style.paddingBottom="10px";u=document.createElement("div");u.style.marginTop="34px";u.style.textAlign="right";u.style.whiteSpace="nowrap";D=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});D.className="geBtn";z=mxUtils.button(mxResources.get("apply"),function(){b.spinner.spin(document.body,mxResources.get("updatingDocument"))&&H(function(){b.spinner.stop();b.hideDialog()},function(R){b.spinner.stop();b.handleError(R,mxResources.get("error"))})});z.className="geBtn gePrimaryBtn";F=null;null!=b.fileNode&&(F=mxUtils.button(mxResources.get("editData")+"...",function(){b.hideDialog();var R={};try{var M=b.fileNode.getAttribute("vars");null!=M&&0<M.length&&(R=JSON.parse(M))}catch(T){}M=mxUtils.createXmlDocument().createElement("object");M.setAttribute("label","");for(var O in R)M.setAttribute(O,R[O]);R=b.createTemporaryGraph(b.editor.graph.getStylesheet());var U=new mxCell(M);R.getModel().add(R.getDefaultParent(),U);R.getModel().addListener(mxEvent.CHANGE,function(T,V){T=V.getProperty("edit").changes;for(V=0;V<T.length;V++)if(T[V]instanceof mxValueChange&&T[V].cell===U){for(var fa={},y=T[V].value.attributes,d=0;d<y.length;d++)"label"!=y[d].nodeName&&(fa[y[d].nodeName]=y[d].nodeValue);fa=JSON.stringify(fa);"{}"==fa?b.fileNode.removeAttribute("vars"):b.fileNode.setAttribute("vars",fa);b.updateFileVars();-b.editor.graph.refresh();fa=b.getCurrentFile();null!=fa&&fa.fileChanged()}});R=new EditDataDialog(b,U,R);b.showDialog(R.container,480,420,!0,!1,null,!1,null,new mxRectangle(0,0,440,220));R.init()}),F.className="geBtn");b.editor.cancelFirst?(u.appendChild(D),null!=F&&u.appendChild(F),u.appendChild(z)):(null!=F&&u.appendChild(F),u.appendChild(z),u.appendChild(D));q.appendChild(u);this.container=q},ConnectionPointsDialog=function(b,k){function m(){null!=q&&q.destroy()}var f=document.createElement("div");-f.style.userSelect="none";f.style.display="flex";f.style.flexDirection="column";f.style.height="100%";var q=null;this.init=function(){function u(d,p,A){var G="shape=image;points=[];rotatable=0;resizable=0;connectable=0;editable=0;image="+b.convertDataUri(mxConstraintHandler.prototype.pointImage.src)+";";d=new mxCell("",new mxGeometry(d,p,6,6),G);d.vertex=!0;d.cp=!0;d.constObj=A;return c.addCell(d)}function x(d){d=c.getSelectionCells();c.deleteCells(d)}function z(){var d=parseFloat(O.value)||0;d=0>+b.editor.graph.refresh();fa=b.getCurrentFile();null!=fa&&fa.fileChanged()}});R=new EditDataDialog(b,U,R);b.showDialog(R.container,480,420,!0,!1,null,!1,null,new mxRectangle(0,0,440,220));R.init()}),F.className="geBtn");b.editor.cancelFirst?(u.appendChild(D),null!=F&&u.appendChild(F),u.appendChild(z)):(null!=F&&u.appendChild(F),u.appendChild(z),u.appendChild(D));q.appendChild(u);this.container=q},ConnectionPointsDialog=function(b,k){function m(){null!=q&&q.destroy()}var g=document.createElement("div");+g.style.userSelect="none";g.style.display="flex";g.style.flexDirection="column";g.style.height="100%";var q=null;this.init=function(){function u(d,p,A){var G="shape=image;points=[];rotatable=0;resizable=0;connectable=0;editable=0;image="+b.convertDataUri(mxConstraintHandler.prototype.pointImage.src)+";";d=new mxCell("",new mxGeometry(d,p,6,6),G);d.vertex=!0;d.cp=!0;d.constObj=A;return c.addCell(d)}function x(d){d=c.getSelectionCells();c.deleteCells(d)}function z(){var d=parseFloat(O.value)||0;d=0>d?0:100<d?100:d;O.value=d;var p=parseFloat(T.value)||0;p=0>p?0:100<p?100:p;T.value=p;var A=parseInt(U.value)||0,G=parseInt(V.value)||0;A=new mxConnectionConstraint(new mxPoint(parseFloat((d/100).toFixed(6)),parseFloat((p/100).toFixed(6))),!1,null,A,G);d=c.getConnectionPoint(n,A);p=c.getSelectionCell();if(null!=p){p.constObj=A;A=p.geometry.clone();G=c.view.scale;var I=c.view.translate;A.x=(d.x-3*G)/G-I.x;A.y=(d.y-3*G)/G-I.y;c.model.setGeometry(p,A)}}function F(d){if(d.constObj)return{x:d.constObj.point.x,-y:d.constObj.point.y,dx:d.constObj.dx,dy:d.constObj.dy};var p=0,A=0,G=g.geometry,I=parseFloat(((d.geometry.x+3-G.x)/G.width).toFixed(6));d=parseFloat(((d.geometry.y+3-G.y)/G.height).toFixed(6));0>I?(p=I*G.width,I=0):1<I&&(p=(I-1)*G.width,I=1);0>d?(A=d*G.height,d=0):1<d&&(A=(d-1)*G.height,d=1);return{x:I,y:d,dx:parseInt(p),dy:parseInt(A)}}function J(d){if(1==c.getSelectionCount()){var p=c.getSelectionCell();d&&(p.constObj=null);d=F(p);O.value=parseFloat((100*d.x).toFixed(4));T.value=parseFloat((100*-d.y).toFixed(4));U.value=d.dx;V.value=d.dy;M.style.visibility=""}else M.style.visibility="hidden"}function H(){y.checked!=fa&&b.editor.graph.setCellStyles("connectable",y.checked?"1":"0",[k])}var D=document.createElement("div");D.style.flex="1";D.style.minHeight="0";D.style.overflow="hidden";D.style.borderStyle="solid";D.style.borderWidth="1px";D.style.boxSizing="border-box";mxEvent.disableContextMenu(D);f.appendChild(D);var c=new Graph(D);c.transparentBackground=!1;c.autoExtend=!1;c.autoScroll=!1;-c.setGridEnabled(!1);c.setEnabled(!0);c.setPanning(!0);c.setConnectable(!1);c.setTooltips(!1);c.minFitScale=null;c.maxFitScale=null;c.centerZoom=!0;c.maxFitScale=2;D=k.geometry;var g=new mxCell(k.value,new mxGeometry(0,0,D.width,D.height),k.style+";rotatable=0;resizable=0;connectable=0;editable=0;movable=0;opacity=50;");g.vertex=!0;c.addCell(g);c.dblClick=function(d,p){if(null!=p&&p!=g)c.setSelectionCell(p);else{p=mxUtils.convertPoint(c.container,mxEvent.getClientX(d),mxEvent.getClientY(d));mxEvent.consume(d);-d=c.view.scale;var A=c.view.translate;c.setSelectionCell(u((p.x-3*d)/d-A.x,(p.y-3*d)/d-A.y))}};q=new mxKeyHandler(c);q.bindKey(46,x);q.bindKey(8,x);c.getRubberband().isForceRubberbandEvent=function(d){return 0==d.evt.button&&(null==d.getCell()||d.getCell()==g)};c.panningHandler.isForcePanningEvent=function(d){return 2==d.evt.button};var l=c.isCellSelectable;c.isCellSelectable=function(d){return d==g?!1:l.apply(this,arguments)};c.getLinkForCell=function(){return null};var n=c.view.getState(g);D=c.getAllConnectionConstraints(n);+y:d.constObj.point.y,dx:d.constObj.dx,dy:d.constObj.dy};var p=0,A=0,G=f.geometry,I=parseFloat(((d.geometry.x+3-G.x)/G.width).toFixed(6));d=parseFloat(((d.geometry.y+3-G.y)/G.height).toFixed(6));0>I?(p=I*G.width,I=0):1<I&&(p=(I-1)*G.width,I=1);0>d?(A=d*G.height,d=0):1<d&&(A=(d-1)*G.height,d=1);return{x:I,y:d,dx:parseInt(p),dy:parseInt(A)}}function J(d){if(1==c.getSelectionCount()){var p=c.getSelectionCell();d&&(p.constObj=null);d=F(p);O.value=parseFloat((100*d.x).toFixed(4));T.value=parseFloat((100*+d.y).toFixed(4));U.value=d.dx;V.value=d.dy;M.style.visibility=""}else M.style.visibility="hidden"}function H(){y.checked!=fa&&b.editor.graph.setCellStyles("connectable",y.checked?"1":"0",[k])}var D=document.createElement("div");D.style.flex="1";D.style.minHeight="0";D.style.overflow="hidden";D.style.borderStyle="solid";D.style.borderWidth="1px";D.style.boxSizing="border-box";mxEvent.disableContextMenu(D);g.appendChild(D);var c=new Graph(D);c.transparentBackground=!1;c.autoExtend=!1;c.autoScroll=!1;+c.setGridEnabled(!1);c.setEnabled(!0);c.setPanning(!0);c.setConnectable(!1);c.setTooltips(!1);c.minFitScale=null;c.maxFitScale=null;c.centerZoom=!0;c.maxFitScale=2;D=k.geometry;var f=new mxCell(k.value,new mxGeometry(0,0,D.width,D.height),k.style+";rotatable=0;resizable=0;connectable=0;editable=0;movable=0;opacity=50;");f.vertex=!0;c.addCell(f);c.dblClick=function(d,p){if(null!=p&&p!=f)c.setSelectionCell(p);else{p=mxUtils.convertPoint(c.container,mxEvent.getClientX(d),mxEvent.getClientY(d));mxEvent.consume(d);+d=c.view.scale;var A=c.view.translate;c.setSelectionCell(u((p.x-3*d)/d-A.x,(p.y-3*d)/d-A.y))}};q=new mxKeyHandler(c);q.bindKey(46,x);q.bindKey(8,x);c.getRubberband().isForceRubberbandEvent=function(d){return 0==d.evt.button&&(null==d.getCell()||d.getCell()==f)};c.panningHandler.isForcePanningEvent=function(d){return 2==d.evt.button};var l=c.isCellSelectable;c.isCellSelectable=function(d){return d==f?!1:l.apply(this,arguments)};c.getLinkForCell=function(){return null};var n=c.view.getState(f);D=c.getAllConnectionConstraints(n);for(var r=0;null!=D&&r<D.length;r++){var t=c.getConnectionPoint(n,D[r]);u(t.x-3,t.y-3,D[r])}r=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){c.zoomIn()});t=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){c.zoomOut()});var v=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){1==c.view.scale?(c.maxFitScale=8,c.fit(8)):c.zoomActual();c.center()}),B=function(){b.prompt(mxResources.get("gridSize"),c.gridSize,function(d){!isNaN(d)&&0<d&&(c.setGridSize(d),c.setGridEnabled(!0),c.refresh())})},E=b.createToolbarButton(Editor.thinGridImage,mxResources.get("grid"),function(d){mxEvent.isShiftDown(d)?B():(c.setGridEnabled(!c.isGridEnabled()),c.refresh())});mxEvent.addListener(E,"dblclick",B);var K=b.createToolbarButton(Editor.trashImage,mxResources.get("delete"),x);mxUtils.setOpacity(K,10);D=document.createElement("div");D.style.display="flex";D.style.flexShrink="0";D.style.alignItems="center";D.style.paddingTop="6px";D.appendChild(r);-D.appendChild(t);D.appendChild(v);D.appendChild(E);D.appendChild(K);f.appendChild(D);var C=document.createElement("input");C.setAttribute("type","number");C.setAttribute("min","1");C.setAttribute("value","1");C.style.width="45px";C.style.position="relative";C.style.margin="0 4px 0 4px";var R=document.createElement("select");R.style.position="relative";t=["left","right","top","bottom"];for(r=0;r<t.length;r++)v=t[r],E=document.createElement("option"),mxUtils.write(E,mxResources.get(v)),E.value=v,R.appendChild(E);-r=mxUtils.button(mxResources.get("add"),function(){var d=parseInt(C.value);d=isNaN(d)?1:1>d?1:100<d?100:d;C.value=d;var p=R.value,A=g.geometry,G="top"==p||"bottom"==p,I=[0,1];for(Q in c.model.cells){var L=c.model.cells[Q];if(L.cp&&(L=F(L),"left"==p&&0==L.x||"right"==p&&1==L.x||"top"==p&&0==L.y||"bottom"==p&&1==L.y)){var P=parseFloat(G?L.x:L.y);isFinite(P)&&0<P&&1>P&&I.push(P)}}I.sort(function(W,Y){return W-Y});var Q=[];for(L=1;L<I.length;L++)I[L]>I[L-1]&&Q.push({start:I[L-1],len:I[L]-I[L-1],count:0});+D.appendChild(t);D.appendChild(v);D.appendChild(E);D.appendChild(K);g.appendChild(D);var C=document.createElement("input");C.setAttribute("type","number");C.setAttribute("min","1");C.setAttribute("value","1");C.style.width="45px";C.style.position="relative";C.style.margin="0 4px 0 4px";var R=document.createElement("select");R.style.position="relative";t=["left","right","top","bottom"];for(r=0;r<t.length;r++)v=t[r],E=document.createElement("option"),mxUtils.write(E,mxResources.get(v)),E.value=v,R.appendChild(E);+r=mxUtils.button(mxResources.get("add"),function(){var d=parseInt(C.value);d=isNaN(d)?1:1>d?1:100<d?100:d;C.value=d;var p=R.value,A=f.geometry,G="top"==p||"bottom"==p,I=[0,1];for(Q in c.model.cells){var L=c.model.cells[Q];if(L.cp&&(L=F(L),"left"==p&&0==L.x||"right"==p&&1==L.x||"top"==p&&0==L.y||"bottom"==p&&1==L.y)){var P=parseFloat(G?L.x:L.y);isFinite(P)&&0<P&&1>P&&I.push(P)}}I.sort(function(W,Y){return W-Y});var Q=[];for(L=1;L<I.length;L++)I[L]>I[L-1]&&Q.push({start:I[L-1],len:I[L]-I[L-1],count:0});for(L=0;L<d;L++){P=Q[0];for(I=1;I<Q.length;I++)Q[I].len/(Q[I].count+1)>P.len/(P.count+1)&&(P=Q[I]);P.count++}d=[];for(L=0;L<Q.length;L++)for(I=1;I<=Q[L].count;I++){P=parseFloat((Q[L].start+I*Q[L].len/(Q[L].count+1)).toFixed(6));var ba=G?P:"left"==p?0:1;P=G?"top"==p?0:1:P;d.push(u(A.x+ba*A.width-3,A.y+P*A.height-3,new mxConnectionConstraint(new mxPoint(ba,P),!1)))}c.setSelectionCells(d)});r.style.marginLeft="auto";D.appendChild(r);D.appendChild(C);D.appendChild(R);var M=document.createElement("div");M.style.flexShrink="0";M.style.margin="4px 0px 8px 0px";M.style.whiteSpace="nowrap";M.style.height="24px";D=document.createElement("span");mxUtils.write(D,mxResources.get("dx"));M.appendChild(D);var O=document.createElement("input");O.setAttribute("type","number");O.setAttribute("min","0");O.setAttribute("max","100");O.setAttribute("step","any");O.style.width="45px";O.style.margin="0 4px 0 4px";M.appendChild(O);mxUtils.write(M,"%");var U=document.createElement("input");U.setAttribute("type","number");U.style.width="45px";U.style.margin="0 4px 0 4px";M.appendChild(U);mxUtils.write(M,"pt");D=document.createElement("span");mxUtils.write(D,mxResources.get("dy"));D.style.marginLeft="12px";M.appendChild(D);var T=document.createElement("input");T.setAttribute("type","number");T.setAttribute("min","0");T.setAttribute("max","100");T.setAttribute("step","any");T.style.width="45px";T.style.margin="0 4px 0 4px";M.appendChild(T);mxUtils.write(M,"%");var V=document.createElement("input");V.setAttribute("type",-"number");V.style.width="45px";V.style.margin="0 4px 0 4px";M.appendChild(V);mxUtils.write(M,"pt");f.appendChild(M);J();c.getSelectionModel().addListener(mxEvent.CHANGE,function(){0<c.getSelectionCount()?mxUtils.setOpacity(K,60):mxUtils.setOpacity(K,10);J()});c.addListener(mxEvent.CELLS_MOVED,J);mxEvent.addListener(O,"change",z);mxEvent.addListener(T,"change",z);mxEvent.addListener(U,"change",z);mxEvent.addListener(V,"change",z);var fa=b.editor.graph.isCellConnectable(k),y=document.createElement("input");+"number");V.style.width="45px";V.style.margin="0 4px 0 4px";M.appendChild(V);mxUtils.write(M,"pt");g.appendChild(M);J();c.getSelectionModel().addListener(mxEvent.CHANGE,function(){0<c.getSelectionCount()?mxUtils.setOpacity(K,60):mxUtils.setOpacity(K,10);J()});c.addListener(mxEvent.CELLS_MOVED,J);mxEvent.addListener(O,"change",z);mxEvent.addListener(T,"change",z);mxEvent.addListener(U,"change",z);mxEvent.addListener(V,"change",z);var fa=b.editor.graph.isCellConnectable(k),y=document.createElement("input");y.setAttribute("type","checkbox");y.style.verticalAlign="middle";y.style.marginRight="6px";y.checked=fa;D=mxUtils.button(mxResources.get("cancel"),function(){m();b.hideDialog()});D.className="geBtn";r=mxUtils.button(mxResources.get("apply"),function(){var d=c.model.cells,p=[],A=[],G;for(G in d){var I=d[G];I.cp&&A.push(F(I))}A.sort(function(L,P){return L.x!=P.x?L.x-P.x:L.y!=P.y?L.y-P.y:L.dx!=P.dx?L.dx-P.dx:L.dy-P.dy});for(d=0;d<A.length;d++)0<d&&A[d].x==A[d-1].x&&A[d].y==A[d-1].y&&A[d].dx==A[d-1].dx&&A[d].dy==A[d-1].dy||p.push("["+A[d].x+","+A[d].y+",0,"+A[d].dx+","+A[d].dy+"]");A=b.editor.graph;A.getModel().beginUpdate();try{A.setCellStyles("points","["+p.join(",")+"]",[k]),H()}finally{A.getModel().endUpdate()}m();b.hideDialog()});r.className="geBtn gePrimaryBtn";t=mxUtils.button(mxResources.get("reset"),function(){var d=b.editor.graph;d.getModel().beginUpdate();try{d.setCellStyles("points",null,[k]),H()}finally{d.getModel().endUpdate()}m();b.hideDialog()});t.className="geBtn";v=document.createElement("div");-v.style.flexShrink="0";v.style.marginTop="10px";v.style.textAlign="right";b.isOffline()||v.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/shape-connection-points-customise"));E=document.createElement("label");E.style.cssFloat="left";E.style.marginTop="8px";E.appendChild(y);mxUtils.write(E,mxResources.get("connectable",null,"Connectable"));v.appendChild(E);b.editor.cancelFirst&&v.appendChild(D);v.appendChild(t);v.appendChild(r);b.editor.cancelFirst||v.appendChild(D);f.appendChild(v);-c.fit(8);c.center()};this.destroy=m;this.container=f},PolygonDialog=function(b,k,m){function f(ha){var ma=ca.getBoundingClientRect();if(0<ma.width&&0<ma.height){var ka=M+U/2,ta=O+T/2;V=Math.max(.05,Math.min(5,ha));U=ma.width*V;T=ma.height*V;M=ka-U/2;O=ta-T/2;q()}}function q(){ca.setAttribute("viewBox",M+" "+O+" "+U+" "+T);var ha=X.getBoundingClientRect();if(!(0>=ha.width||0>=ha.height)){var ma=ha.width-12,ka=Math.max(20,ma*Math.min(1,U/1200)),ta=1200-U;ta=0<ta?(M- -400)/ta:.5;ta=Math.max(0,Math.min(1,+v.style.flexShrink="0";v.style.marginTop="10px";v.style.textAlign="right";b.isOffline()||v.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/shape-connection-points-customise"));E=document.createElement("label");E.style.cssFloat="left";E.style.marginTop="8px";E.appendChild(y);mxUtils.write(E,mxResources.get("connectable",null,"Connectable"));v.appendChild(E);b.editor.cancelFirst&&v.appendChild(D);v.appendChild(t);v.appendChild(r);b.editor.cancelFirst||v.appendChild(D);g.appendChild(v);+c.fit(8);c.center()};this.destroy=m;this.container=g},PolygonDialog=function(b,k,m){function g(ha){var ma=ca.getBoundingClientRect();if(0<ma.width&&0<ma.height){var ka=M+U/2,ta=O+T/2;V=Math.max(.05,Math.min(5,ha));U=ma.width*V;T=ma.height*V;M=ka-U/2;O=ta-T/2;q()}}function q(){ca.setAttribute("viewBox",M+" "+O+" "+U+" "+T);var ha=X.getBoundingClientRect();if(!(0>=ha.width||0>=ha.height)){var ma=ha.width-12,ka=Math.max(20,ma*Math.min(1,U/1200)),ta=1200-U;ta=0<ta?(M- -400)/ta:.5;ta=Math.max(0,Math.min(1,ta));la.style.width=ka+"px";la.style.left=ta*(ma-ka)+"px";ha=ha.height-12;ma=Math.max(20,ha*Math.min(1,T/1200));ka=1200-T;ka=0<ka?(O- -400)/ka:.5;ka=Math.max(0,Math.min(1,ka));qa.style.height=ma+"px";qa.style.top=ka*(ha-ma)+"px"}}function u(ha){var ma=ca.getBoundingClientRect(),ka=M+((null!=ha.touches?ha.touches[0].clientX:ha.clientX)-ma.left)/ma.width*U;ma=O+((null!=ha.touches?ha.touches[0].clientY:ha.clientY)-ma.top)/ma.height*T;ha=mxEvent.isAltDown(ha);return{x:t&&!ha?20*Math.round(ka/20):Math.round(ka),y:t&&!ha?20*Math.round(ma/20):Math.round(ma)}}function x(ha){var ma=ca.getBoundingClientRect(),ka=M+((null!=ha.touches?ha.touches[0].clientX:ha.clientX)-ma.left)/ma.width*U;ha=O+((null!=ha.touches?ha.touches[0].clientY:ha.clientY)-ma.top)/ma.height*T;ma=U/400*9;if(r&&2<l.length&&"Q"===l[0].type){var ta=l[0].cx-ka,Ca=l[0].cy-ha;if(Math.sqrt(ta*ta+Ca*Ca)<=ma)return{type:"control",index:0}}for(var sa=1;sa<l.length;sa++)if("Q"===l[sa].type&&(ta=l[sa].cx-ka,Ca=l[sa].cy-ha,Math.sqrt(ta*ta+Ca*Ca)<=ma))return{type:"control",index:sa};for(sa=0;sa<l.length;sa++)if(ta=l[sa].x-ka,Ca=l[sa].y-ha,Math.sqrt(ta*ta+Ca*Ca)<=ma)return{type:"vertex",index:sa};return null}function z(){v.push(JSON.stringify(l));B=[];H()}function F(){0<v.length&&(B.push(JSON.stringify(l)),l=JSON.parse(v.pop()),n=Math.min(n,l.length-1),D(),H())}function J(){0<B.length&&(v.push(JSON.stringify(l)),l=JSON.parse(B.pop()),n=Math.min(n,l.length-1),D(),H())}function H(){null!=oa&&(oa.style.opacity=0<v.length?"1":"0.3",oa.style.pointerEvents=0<v.length?"":"none");@@ -13585,7 +13670,7 @@ parseInt(this.value)||0;D()});mxEvent.addListener(ta,"click",function(sa){sa.sto"change",function(){z();if("Q"===l[ma].type)l[ma].type="L",delete l[ma].cx,delete l[ma].cy;else{var sa=0<ma?l[ma-1]:l[l.length-1];var Ea=l[ma];var Ga=(sa.x+Ea.x)/2;var La=(sa.y+Ea.y)/2;var Ha=Ea.x-sa.x,Oa=Ea.y-sa.y;sa=Math.sqrt(Ha*Ha+Oa*Oa);0!==sa&&(Ea=.25*sa,Ga=Math.round(Ga+-Oa/sa*Ea),La=Math.round(La+Ha/sa*Ea));l[ma].type="Q";l[ma].cx=Ga;l[ma].cy=La}D()});ta.appendChild(Ca);ka.appendChild(ta)}ta=document.createElement("img");ta.setAttribute("src",Editor.trashImage);ta.style.cursor="pointer";ta.style.marginLeft="auto";ta.style.width="14px";ta.style.height="14px";ta.style.opacity="0.5";ta.style.flexShrink="0";ta.title=mxResources.get("delete");Editor.isDarkMode()&&(ta.style.filter="invert(1)");mxEvent.addListener(ta,"click",function(sa){sa.stopPropagation();z();l.splice(ma,1);n>=l.length&&(n=l.length-1);D()});ka.appendChild(ta);mxEvent.addListener(ka,"dragstart",function(sa){I=ma;ka.style.opacity="0.4";sa.dataTransfer.effectAllowed="move";sa.dataTransfer.setData("text/plain",""+ma);sa.stopPropagation()});mxEvent.addListener(ka,"dragover",function(sa){sa.preventDefault();sa.stopPropagation();sa.dataTransfer.dropEffect="move";sa=parseInt(ka.getAttribute("data-idx"));null!==I&&sa!==I&&(ka.style.borderTop=sa<I?"2px solid #4285f4":"",ka.style.borderBottom=sa>I?"2px solid #4285f4":"")});mxEvent.addListener(ka,"dragleave",function(sa){ka.style.borderTop="";ka.style.borderBottom=""});mxEvent.addListener(ka,"drop",function(sa){sa.preventDefault();sa.stopPropagation();ka.style.borderTop="";ka.style.borderBottom=-"";var Ea=parseInt(ka.getAttribute("data-idx"));null!==I&&Ea!==I&&(z(),sa=l.splice(I,1)[0],Ea=Ea>I?Ea-1:Ea,l.splice(Ea,0,sa),n===I?n=Ea:I<n&&Ea>=n?n--:I>n&&Ea<=n&&n++,D());I=null});mxEvent.addListener(ka,"dragend",function(sa){ka.style.opacity="";ka.style.borderTop="";ka.style.borderBottom="";I=null});pa.appendChild(ka)})(ha)}var g=b.editor.graph,l=[],n=-1,r=!0,t=!0,v=[],B=[],E=-1,K=null,C=!1,R=!1,M=0,O=0,U=400,T=400,V=1,fa=!1,y=0,d=0,p=0,A=0,G=!1,I=null,L=g.view.getState(k);if(null!=L)try{var P=+"";var Ea=parseInt(ka.getAttribute("data-idx"));null!==I&&Ea!==I&&(z(),sa=l.splice(I,1)[0],Ea=Ea>I?Ea-1:Ea,l.splice(Ea,0,sa),n===I?n=Ea:I<n&&Ea>=n?n--:I>n&&Ea<=n&&n++,D());I=null});mxEvent.addListener(ka,"dragend",function(sa){ka.style.opacity="";ka.style.borderTop="";ka.style.borderBottom="";I=null});pa.appendChild(ka)})(ha)}var f=b.editor.graph,l=[],n=-1,r=!0,t=!0,v=[],B=[],E=-1,K=null,C=!1,R=!1,M=0,O=0,U=400,T=400,V=1,fa=!1,y=0,d=0,p=0,A=0,G=!1,I=null,L=f.view.getState(k);if(null!=L)try{var P=JSON.parse(mxUtils.getValue(L.style,"polyCoords","[]")),Q=JSON.parse(mxUtils.getValue(L.style,"polyCurves","[]")),ba=mxUtils.getValue(L.style,"polyline",0);r=!(1==ba||!0===ba||"true"===ba||"1"===ba);for(L=0;L<P.length;L++){var W={x:Math.round(400*P[L][0]),y:Math.round(400*P[L][1]),type:"L"};0<L&&Q.length>L-1&&null!=Q[L-1]&&3<=Q[L-1].length&&"Q"===Q[L-1][0]&&(W.type="Q",W.cx=Math.round(400*Q[L-1][1]),W.cy=Math.round(400*Q[L-1][2]));l.push(W)}r&&2<P.length&&Q.length>=P.length&&null!=Q[P.length-1]&&3<=Q[P.length-1].length&&"Q"===Q[P.length-1][0]&&(l[0].type="Q",l[0].cx=Math.round(400*Q[P.length-1][1]),l[0].cy=Math.round(400*Q[P.length-1][2]))}catch(ha){}var Y=document.createElement("div");Y.style.userSelect="none";Y.setAttribute("tabindex","0");Y.style.outline="none";Y.style.position="absolute";Y.style.left="30px";Y.style.right="30px";Y.style.top="30px";Y.style.bottom="30px";P=document.createElement("div");P.style.display="flex";P.style.gap="10px";P.style.position="absolute";P.style.left="0px";P.style.right="0px";P.style.top="0px";P.style.bottom="40px";Y.appendChild(P);var X=document.createElement("div");X.style.border="1px solid";X.style.borderColor="inherit";X.style.borderRadius="4px";X.style.flexGrow="1";X.style.flexShrink="1";X.style.minWidth="200px";X.style.position="relative";X.style.overflow="hidden";P.appendChild(X);var ca=document.createElementNS("http://www.w3.org/2000/svg","svg");ca.setAttribute("width","100%");ca.setAttribute("height","100%");ca.setAttribute("viewBox","0 0 400 400");@@ -13600,14 +13685,14 @@ ha.width&&0<ha.height){var ma=M+U/2,ka=O+T/2;U=ha.width*V;T=ha.height*V;M=ma-U/2u(ha);z();if(2>l.length)l.push({x:ma.x,y:ma.y,type:"L"}),n=l.length-1;else{for(var ka=Infinity,ta=l.length-1,Ca=r?l.length:l.length-1,sa=0;sa<Ca;sa++){var Ea=(sa+1)%l.length;Ea=mxUtils.ptSegDistSq(l[sa].x,l[sa].y,l[Ea].x,l[Ea].y,ma.x,ma.y);Ea<ka&&(ka=Ea,ta=sa)}l.splice(ta+1,0,{x:ma.x,y:ma.y,type:"L"});n=ta+1}E=n;K="vertex";R=C=!0}D();mxEvent.consume(ha)}},function(ha){if(C&&0<=E&&E<l.length){R||(z(),R=!0);var ma=u(ha);"control"===K?(l[E].cx=ma.x,l[E].cy=ma.y):(l[E].x=ma.x,l[E].y=ma.y);D();mxEvent.consume(ha)}},function(ha){!G&&1!==ha.button&&2!==ha.button&&C&&0<=E&&(C=!1,E=-1,K=null,mxEvent.consume(ha))});mxEvent.addListener(ca,"wheel",function(ha){ha.preventDefault();var ma=ca.getBoundingClientRect(),ka=(ha.clientX-ma.left)/ma.width,ta=(ha.clientY-ma.top)/ma.height,Ca=M+ka*U,sa=O+ta*T;V=Math.max(.05,Math.min(5,V*(0<ha.deltaY?1.15:1/1.15)));U=ma.width*V;T=ma.height*V;M=Ca-ka*U;O=sa-ta*T;q()});mxEvent.addListener(ca,"contextmenu",function(ha){ha.preventDefault()});mxEvent.addListener(ca,"mousedown",function(ha){if(1===ha.button||2===ha.button||0===ha.button&&G)fa=!0,y=ha.clientX,d=ha.clientY,p=M,A=O,ca.style.cursor="grabbing",ha.preventDefault()});var ia=function(ha){if(fa){var ma=ca.getBoundingClientRect();M=p-(ha.clientX-y)/ma.width*U;O=A-(ha.clientY-d)/ma.height*T;q();ha.preventDefault()}},ja=function(ha){fa&&(fa=!1,ca.style.cursor=G?"grab":"crosshair")};mxEvent.addListener(document,"mousemove",ia);mxEvent.addListener(document,"mouseup",ja);P=document.createElement("div");P.style.display="flex";P.style.alignItems=-"center";P.style.gap="6px";P.style.position="absolute";P.style.left="0px";P.style.right="0px";P.style.bottom="0px";P.style.height="34px";var oa=b.createToolbarButton(Editor.undoImage,mxResources.get("undo"),function(){F()});P.appendChild(oa);var Aa=b.createToolbarButton(Editor.redoImage,mxResources.get("redo"),function(){J()});P.appendChild(Aa);Q=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){f(V/1.15)});P.appendChild(Q);Q=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),-function(){f(1.15*V)});P.appendChild(Q);Q=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){var ha=ca.getBoundingClientRect();if(0<ha.width&&0<ha.height){if(1==V)if(0<l.length){for(var ma=l[0].x,ka=l[0].y,ta=l[0].x,Ca=l[0].y,sa=1;sa<l.length;sa++)ma=Math.min(ma,l[sa].x),ka=Math.min(ka,l[sa].y),ta=Math.max(ta,l[sa].x),Ca=Math.max(Ca,l[sa].y),"Q"===l[sa].type&&(ma=Math.min(ma,l[sa].cx),ka=Math.min(ka,l[sa].cy),ta=Math.max(ta,l[sa].cx),Ca=Math.max(Ca,l[sa].cy));ta=ta-ma+40;+"center";P.style.gap="6px";P.style.position="absolute";P.style.left="0px";P.style.right="0px";P.style.bottom="0px";P.style.height="34px";var oa=b.createToolbarButton(Editor.undoImage,mxResources.get("undo"),function(){F()});P.appendChild(oa);var Aa=b.createToolbarButton(Editor.redoImage,mxResources.get("redo"),function(){J()});P.appendChild(Aa);Q=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){g(V/1.15)});P.appendChild(Q);Q=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),+function(){g(1.15*V)});P.appendChild(Q);Q=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){var ha=ca.getBoundingClientRect();if(0<ha.width&&0<ha.height){if(1==V)if(0<l.length){for(var ma=l[0].x,ka=l[0].y,ta=l[0].x,Ca=l[0].y,sa=1;sa<l.length;sa++)ma=Math.min(ma,l[sa].x),ka=Math.min(ka,l[sa].y),ta=Math.max(ta,l[sa].x),Ca=Math.max(Ca,l[sa].y),"Q"===l[sa].type&&(ma=Math.min(ma,l[sa].cx),ka=Math.min(ka,l[sa].cy),ta=Math.max(ta,l[sa].cx),Ca=Math.max(Ca,l[sa].cy));ta=ta-ma+40;Ca=Ca-ka+40;V=1/Math.min(ha.width/ta,ha.height/Ca);U=ha.width*V;T=ha.height*V;M=ma-20+(ta-U)/2;O=ka-20+(Ca-T)/2}else V=1,U=ha.width,T=ha.height,M=(400-U)/2,O=(400-T)/2;else V=1,U=ha.width*V,T=ha.height*V,M=(400-U)/2,O=(400-T)/2;q()}});P.appendChild(Q);Q=mxUtils.button(mxResources.get("deleteAll"),function(){0<l.length&&(z(),l=[],n=-1,D())});Q.className="geBtn";Q.style.padding="2px 10px";Q.style.fontSize="12px";P.appendChild(Q);Q=document.createElement("span");Q.style.flexGrow="1";P.appendChild(Q);Q=document.createElement("label");Q.style.display="flex";Q.style.alignItems="center";Q.style.gap="4px";Q.style.fontSize="12px";Q.style.cursor="pointer";Q.style.whiteSpace="nowrap";W=document.createElement("input");W.type="checkbox";W.checked=t;mxEvent.addListener(W,"change",function(){t=this.checked;S.style.display=t?"":"none"});Q.appendChild(W);mxUtils.write(Q,mxResources.get("grid"));P.appendChild(Q);Q=document.createElement("label");Q.style.display="flex";Q.style.alignItems="center";Q.style.gap="4px";Q.style.fontSize="12px";Q.style.cursor="pointer";Q.style.whiteSpace="nowrap";W=document.createElement("input");W.type="checkbox";W.checked=r;mxEvent.addListener(W,"change",function(){r=this.checked;D()});Q.appendChild(W);mxUtils.write(Q,mxResources.get("closePath"));P.appendChild(Q);Q=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});Q.className="geBtn";W=mxUtils.button(mxResources.get("apply"),function(){if(2>l.length)b.showError(mxResources.get("error"),mxResources.get("minTwoPoints"),mxResources.get("ok"));else{for(var ha=l[0].x,ma=l[0].x,ka=l[0].y,ta=l[0].y,Ca=0;Ca<l.length;Ca++)ha=Math.min(ha,l[Ca].x),ma=Math.max(ma,l[Ca].x),ka=Math.min(ka,l[Ca].y),ta=Math.max(ta,l[Ca].y),"Q"===l[Ca].type&&(ha=Math.min(ha,l[Ca].cx),ma=Math.max(ma,l[Ca].cx),ka=Math.min(ka,l[Ca].cy),ta=Math.max(ta,l[Ca].cy));var sa=ma-ha,Ea=ta-ka,Ga=function(Ha){return 0<sa?Math.round((Ha-ha)/sa*1E5)/1E5:.5},La=function(Ha){return 0<Ea?Math.round((Ha-ka)/Ea*1E5)/1E5:.5};ma=[];ta=[];for(Ca=0;Ca<l.length;Ca++)ma.push([Ga(l[Ca].x),-La(l[Ca].y)]),0<Ca&&("Q"===l[Ca].type?ta.push(["Q",Ga(l[Ca].cx),La(l[Ca].cy)]):ta.push([]));r&&2<l.length&&"Q"===l[0].type&&ta.push(["Q",Ga(l[0].cx),La(l[0].cy)]);if(null!=m)Ca="shape=mxgraph.basic.polygon;polyCoords="+JSON.stringify(ma)+";polyCurves="+JSON.stringify(ta)+";polyline="+(r?"0":"1")+";whiteSpace=wrap;html=1;",m(Ca);else{Ca=g.getCellGeometry(k);null!=Ca&&(Ca=Ca.clone(),0<sa&&(Ca.x+=ha/400*Ca.width,Ca.width*=sa/400),0<Ea&&(Ca.y+=ka/400*Ca.height,Ca.height*=Ea/400));g.getModel().beginUpdate();-try{null!=Ca&&g.getModel().setGeometry(k,Ca),g.setCellStyles("polyCoords",JSON.stringify(ma),[k]),g.setCellStyles("polyCurves",JSON.stringify(ta),[k]),g.setCellStyles("polyline",r?"0":"1",[k])}finally{g.getModel().endUpdate()}}b.hideDialog()}});W.className="geBtn gePrimaryBtn";b.editor.cancelFirst?(P.appendChild(Q),P.appendChild(W)):(P.appendChild(W),P.appendChild(Q));Y.appendChild(P);mxEvent.addListener(Y,"keydown",function(ha){32===ha.keyCode?(G||(G=!0,ca.style.cursor="grab"),mxEvent.consume(ha)):+La(l[Ca].y)]),0<Ca&&("Q"===l[Ca].type?ta.push(["Q",Ga(l[Ca].cx),La(l[Ca].cy)]):ta.push([]));r&&2<l.length&&"Q"===l[0].type&&ta.push(["Q",Ga(l[0].cx),La(l[0].cy)]);if(null!=m)Ca="shape=mxgraph.basic.polygon;polyCoords="+JSON.stringify(ma)+";polyCurves="+JSON.stringify(ta)+";polyline="+(r?"0":"1")+";whiteSpace=wrap;html=1;",m(Ca);else{Ca=f.getCellGeometry(k);null!=Ca&&(Ca=Ca.clone(),0<sa&&(Ca.x+=ha/400*Ca.width,Ca.width*=sa/400),0<Ea&&(Ca.y+=ka/400*Ca.height,Ca.height*=Ea/400));f.getModel().beginUpdate();+try{null!=Ca&&f.getModel().setGeometry(k,Ca),f.setCellStyles("polyCoords",JSON.stringify(ma),[k]),f.setCellStyles("polyCurves",JSON.stringify(ta),[k]),f.setCellStyles("polyline",r?"0":"1",[k])}finally{f.getModel().endUpdate()}}b.hideDialog()}});W.className="geBtn gePrimaryBtn";b.editor.cancelFirst?(P.appendChild(Q),P.appendChild(W)):(P.appendChild(W),P.appendChild(Q));Y.appendChild(P);mxEvent.addListener(Y,"keydown",function(ha){32===ha.keyCode?(G||(G=!0,ca.style.cursor="grab"),mxEvent.consume(ha)):46===ha.keyCode||8===ha.keyCode?0<=n&&n<l.length&&"INPUT"!==ha.target.tagName&&(z(),l.splice(n,1),n>=l.length&&(n=l.length-1),D(),mxEvent.consume(ha)):90===ha.keyCode&&(ha.ctrlKey||ha.metaKey)?(ha.shiftKey?J():F(),mxEvent.consume(ha)):89===ha.keyCode&&(ha.ctrlKey||ha.metaKey)&&(J(),mxEvent.consume(ha))});mxEvent.addListener(Y,"keyup",function(ha){32===ha.keyCode&&(G=!1,fa||(ca.style.cursor="crosshair"))});D();H();this.init=function(){Y.focus();var ha=ca.getBoundingClientRect();0<ha.width&&0<ha.height&&(V=1,U=ha.width*V,T=ha.height*V,M=(400-U)/2,O=(400-T)/2,q())};this.destroy=function(){mxEvent.removeListener(document,"mousemove",Ba);mxEvent.removeListener(document,"mouseup",va);mxEvent.removeListener(document,"mousemove",ia);mxEvent.removeListener(document,"mouseup",ja)};this.container=Y};(function(){"undefined"!==typeof html4&&(html4.ATTRIBS["span::data-lucid-content"]=0,html4.ATTRIBS["span::data-lucid-type"]=0,html4.ATTRIBS["font::data-font-src"]=0);Editor.sketchFontFamily="Architects Daughter";Editor.sketchFontSource="https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter";Editor.sketchFonts=[{fontFamily:Editor.sketchFontFamily,fontUrl:decodeURIComponent(Editor.sketchFontSource)}];Editor.sketchDefaultCurveFitting="1";Editor.sketchDefaultJiggle="2";Editor.thinFormatImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHdpZHRoPSI0OCI+PHBhdGggZD0ibTM2LjUgMTguMzUtNi44NS02Ljg1IDMuMjUtMy4ycS44NS0uODUgMi4wMjUtLjg1IDEuMTc1IDAgMi4wMjUuODVsMi43NSAyLjhxLjg1LjguODUgMnQtLjg1IDJaTTYuODUgNDEuMXYtNi45bDkuNTUtOS41NUw1LjUgMTMuN2w3LjgtNy44NSAxMSAxMSA1LjM1LTUuMzUgNi44NSA2Ljg1LTUuMzUgNS4zNSAxMSAxMS03Ljg1IDcuNzUtMTAuOTUtMTAuOS05LjYgOS41NVptMTEuMi0xOC4wNSA0LjY1LTQuNi00LjA1LTQuMDUtMi4zNSAyLjQtMS42LTEuNiAyLjM1LTIuNC0zLjc1LTMuNzUtNC42IDQuNjVabTE2LjIgMTYuMjUgNC42NS00LjY1LTMuNzUtMy43NS0yLjQgMi40LTEuNi0xLjYgMi40LTIuNC00LjA1LTQtNC42IDQuNjVabS0yNS4xLS40NWgzLjZsMjAuNS0yMC40NS0zLjY1LTMuNjVMOS4xNSAzNS4yWiIvPjwvc3ZnPg==";@@ -13741,54 +13826,55 @@ null;Q<d.length;){A=d.charCodeAt(Q);Q+=1;10!=A&&(L+=String.fromCharCode(A));A=="d[0].getElementsByTagName("div"),0<p.length&&(A=mxUtils.getTextContent(p[0])));return null!=A?mxUtils.trim(A):A};Editor.addRetryToError=function(d,p){null!=d&&(d=null!=d.error?d.error:d,null==d.retry&&(d.retry=p))};Editor.mermaidToDrawio=function(d,p,A){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(d,p,A)};Editor.configure=function(d){if(null!=d){Editor.config=d;Editor.configVersion=d.version;d.debug&&(urlParams.test="1");d.passiveScroll&&(Editor.passiveScroll=!0);d.noResizers&&(Editor.noResizers=!0);d.preserveViewState&&(Editor.preserveViewState=!0);null!=d.passThroughKeys&&(Editor.passThroughKeys=d.passThroughKeys);null!=d.keyboardShortcuts&&(Array.isArray(d.keyboardShortcuts)?Editor.keyboardShortcuts=d.keyboardShortcuts:EditorUi.debug("Configuration Error: Array expected for keyboardShortcuts"));d.suppressNewWindows&&(Editor.suppressNewWindows=!0,Editor.popupsAllowed=!1);d.useInternalClipboard&&(EditorUi.prototype.useInternalClipboard=d.useInternalClipboard);if(null!=d.customCss){var p=document.createElement("style");p.type="text/css";p.appendChild(document.createTextNode(d.customCss));document.head.appendChild(p)}null!=d.resources&&("object"!==typeof d.resources||Array.isArray(d.resources)?EditorUi.debug("Configuration Error: Object expected for resources"):(Editor.customResources=d.resources,Editor.applyCustomResources()));null!=d.enableLocalFonts&&(Editor.enableLocalFonts=d.enableLocalFonts);null!=d.enableCustomGitLabUrl&&(Editor.enableCustomGitLabUrl=d.enableCustomGitLabUrl);-null!=d.defaultFonts&&(Menus.prototype.defaultFonts=d.defaultFonts);null!=d.presetColors&&(ColorDialog.prototype.presetColors=d.presetColors);null!=d.defaultColors&&(ColorDialog.prototype.defaultColors=d.defaultColors);null!=d.colorNames&&(ColorDialog.prototype.colorNames=d.colorNames);null!=d.defaultColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=d.defaultColorSchemes);null!=d.defaultEdgeLength&&(Graph.prototype.defaultEdgeLength=d.defaultEdgeLength);null!=d.selectParentLayer&&(Graph.selectParentLayer=-d.selectParentLayer);null!=d.intersectionSelect&&(Graph.intersectionSelect=d.intersectionSelect);null!=d.swimlaneSelectionEnabled&&(Graph.prototype.swimlaneSelectionEnabled=d.swimlaneSelectionEnabled);null!=d.autosaveDelay&&(DrawioFile.prototype.autosaveDelay=d.autosaveDelay);null!=d.templateFile&&(EditorUi.templateFile=d.templateFile);null!=d.enabledTemplateSections&&(Array.isArray(d.enabledTemplateSections)?EditorUi.enabledTemplateSections=d.enabledTemplateSections:EditorUi.debug("Configuration Error: Array expected for enabledTemplateSections"));-null!=d.customTemplates&&(Array.isArray(d.customTemplates)?EditorUi.customTemplates=d.customTemplates:EditorUi.debug("Configuration Error: Array expected for customTemplates"));null!=d.styles&&(Array.isArray(d.styles)?Editor.styles=d.styles:EditorUi.debug("Configuration Error: Array expected for styles"));null!=d.globalVars&&(Editor.globalVars=d.globalVars);null!=d.defaultFileType&&(Editor.defaultFileType=d.defaultFileType);null!=d.compressXml&&(Editor.defaultCompressed=d.compressXml,Editor.compressXml=-d.compressXml);null!=d.compressStyles&&(p=mxCodecRegistry.getCodec(mxGraphModel),null!=p&&(p.enableStyleCompression=d.compressStyles));null!=d.includeDiagram&&(Editor.defaultIncludeDiagram=d.includeDiagram);null!=d.simpleLabels&&(Editor.simpleLabels=d.simpleLabels);null!=d.optimizeHtmlLabels&&(Editor.optimizeHtmlLabels=d.optimizeHtmlLabels);null!=d.mathOutputSize&&(Editor.mathOutputSize=d.mathOutputSize);null!=d.mermaid&&("object"!==typeof d.mermaid||Array.isArray(d.mermaid)?EditorUi.debug("Configuration Error: Object expected for mermaid"):-EditorUi.defaultMermaidConfig=d.mermaid);null!=d.pasteAtMousePointer&&(Editor.pasteAtMousePointer=d.pasteAtMousePointer);null!=d.fitDiagramOnLoad&&(Editor.fitDiagramOnLoad=d.fitDiagramOnLoad);null!=d.fitDiagramOnPage&&(Editor.fitDiagramOnPage=d.fitDiagramOnPage);null!=d.showLinkIcons&&(Editor.showLinkIcons=d.showLinkIcons);null!=d.showTooltipIcons&&(Editor.showTooltipIcons=d.showTooltipIcons);null!=d.showNoteIcons&&(Editor.showNoteIcons=d.showNoteIcons);null!=d.tooltipFontSize&&(p=parseInt(d.tooltipFontSize),-!isNaN(p)&&0<p?Editor.tooltipFontSize=p:EditorUi.debug("Configuration Error: Int > 0 expected for tooltipFontSize"));null!=d.tooltipMaxWidth&&(p=parseInt(d.tooltipMaxWidth),!isNaN(p)&&0<=p?Editor.tooltipMaxWidth=p:EditorUi.debug("Configuration Error: Int >= 0 expected for tooltipMaxWidth"));null!=d.expandPatternsForPrint&&(Editor.expandPatternsForPrint=d.expandPatternsForPrint);null!=d.showConnectHandle&&(Editor.showConnectHandle=d.showConnectHandle);null!=d.enableInlineToolbar&&(Editor.enableInlineToolbar=-d.enableInlineToolbar);null!=d.enableSizeGuides&&"undefined"!==typeof mxVertexHandler&&(mxVertexHandler.prototype.sizeGuidesEnabled=d.enableSizeGuides);null!=d.enablePositionGuides&&"undefined"!==typeof mxGuide&&(mxGuide.prototype.positionEnabled=d.enablePositionGuides);null!=d.enableDistanceGuides&&"undefined"!==typeof mxGuide&&(mxGuide.prototype.distanceEnabled=d.enableDistanceGuides);null!=d.defaultTransparentGroups&&(Editor.defaultTransparentGroups=d.defaultTransparentGroups);null!=d.oneDriveInlinePicker&&-(Editor.oneDriveInlinePicker=d.oneDriveInlinePicker);null!=d.enableNativeClipboard&&(Editor.enableNativeClipboard=d.enableNativeClipboard);null!=d.enableExportUrl&&(Editor.enableExportUrl=d.enableExportUrl);null!=d.defaultAdaptiveColors?Graph.defaultAdaptiveColors=d.defaultAdaptiveColors:0==d.enableCssDarkMode&&(Graph.defaultAdaptiveColors="simple");null!=d.enableLightDarkColors&&(mxUtils.lightDarkColorSupported=d.enableLightDarkColors);null!=d.darkColor&&(Editor.darkColor=d.darkColor);null!=d.darkColorVar&&-(Editor.darkColorVar=d.darkColorVar);null!=d.defaultPageBackgroundColor&&(Editor.pageBackgroundColor=d.defaultPageBackgroundColor);null!=d.defaultDarkPageBackgroundColor&&(Editor.darkPageBackgroundColor=d.defaultDarkPageBackgroundColor);null!=d.defaultGridColor&&(mxGraphView.prototype.defaultGridColor=d.defaultGridColor);null!=d.defaultDarkGridColor&&(mxGraphView.prototype.defaultDarkGridColor=d.defaultDarkGridColor);mxGraphView.prototype.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultDarkGridColor:-mxGraphView.prototype.defaultGridColor;Graph.prototype.defaultPageBackgroundColor=Editor.getDefaultPageBackgroundColor();Graph.prototype.shapeBackgroundColor="light-dark(#ffffff, var("+Editor.darkColorVar+", "+Editor.darkColor+"))";null!=d.settingsName&&(Editor.configurationKey="."+d.settingsName+"-configuration",Editor.settingsKey="."+d.settingsName+"-config",mxSettings.key=Editor.settingsKey);null!=d.customFonts&&(Menus.prototype.defaultFonts=d.customFonts.concat(Menus.prototype.defaultFonts));-null!=d.customPresetColors&&(ColorDialog.prototype.presetColors=d.customPresetColors.concat(ColorDialog.prototype.presetColors));null!=d.customColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=d.customColorSchemes.concat(StyleFormatPanel.prototype.defaultColorSchemes));if(null!=d.css){p=document.createElement("style");p.setAttribute("type","text/css");p.appendChild(document.createTextNode(d.css));var A=document.getElementsByTagName("script")[0];A.parentNode.insertBefore(p,A)}null!=d.expandLibraries&&-(Sidebar.prototype.expandLibraries=d.expandLibraries);null!=d.appendCustomLibraries&&(Sidebar.prototype.appendCustomLibraries=d.appendCustomLibraries);null!=d.libraries&&(Sidebar.prototype.customEntries=d.libraries);null!=d.enabledLibraries&&(Array.isArray(d.enabledLibraries)?Sidebar.prototype.enabledLibraries=d.enabledLibraries:EditorUi.debug("Configuration Error: Array expected for enabledLibraries"));null!=d.defaultLibraries&&(Sidebar.prototype.defaultEntries=d.defaultLibraries);null!=d.defaultCustomLibraries&&-(Editor.defaultCustomLibraries=d.defaultCustomLibraries);null!=d.defaultLanguages&&(Array.isArray(d.defaultLanguages)?Editor.defaultLanguages=d.defaultLanguages:EditorUi.debug("Configuration Error: Array expected for defaultLanguages"));null!=d.enableCustomLibraries&&(Editor.enableCustomLibraries=d.enableCustomLibraries);null!=d.inlineExtIcons&&(Editor.inlineExtIcons=d.inlineExtIcons);null!=d.defaultVertexStyle&&(Graph.prototype.defaultVertexStyle=d.defaultVertexStyle);null!=d.defaultEdgeStyle&&(Graph.prototype.defaultEdgeStyle=-d.defaultEdgeStyle);null!=d.shapePicker&&(EditorUi.prototype.defaultShapePickerEntries=d.shapePicker.shapes);null!=d.defaultPageVisible&&(Graph.prototype.defaultPageVisible=d.defaultPageVisible);null!=d.defaultGridEnabled&&(Graph.prototype.defaultGridEnabled=d.defaultGridEnabled);null!=d.defaultConnectionArrowsEnabled&&(Graph.prototype.defaultConnectionArrowsEnabled=d.defaultConnectionArrowsEnabled,Graph.prototype.connectionArrowsEnabled=d.defaultConnectionArrowsEnabled);null!=d.defaultConnectable&&-(Graph.prototype.defaultConnectable=d.defaultConnectable);null!=d.copyOnConnect&&(mxConnectionHandler.prototype.createTarget=d.copyOnConnect);null!=d.stopEditingOnEnter&&(mxGraph.prototype.enterStopsCellEditing=d.stopEditingOnEnter);null!=d.defaultFoldingEnabled&&(Graph.prototype.defaultFoldingEnabled=d.defaultFoldingEnabled);null!=d.foldingIconSize&&Graph.updateFoldingImages(d.foldingIconSize);null!=d.zoomWheel&&(Graph.zoomWheel=d.zoomWheel);null!=d.browserTranslate&&(Graph.browserTranslate=d.browserTranslate);-null!=d.zoomFactor&&(p=parseFloat(d.zoomFactor),!isNaN(p)&&1<p?Graph.prototype.zoomFactor=p:EditorUi.debug("Configuration Error: Float > 1 expected for zoomFactor"));null!=d.defaultGridSize&&(p=parseInt(d.defaultGridSize),!isNaN(p)&&0<p?mxGraph.prototype.gridSize=p:EditorUi.debug("Configuration Error: Int > 0 expected for defaultGridSize"));null!=d.gridSteps&&(p=parseInt(d.gridSteps),!isNaN(p)&&0<p?mxGraphView.prototype.gridSteps=p:EditorUi.debug("Configuration Error: Int > 0 expected for gridSteps"));-null!=d.pageFormat&&(p=parseInt(d.pageFormat.width),A=parseInt(d.pageFormat.height),!isNaN(p)&&0<p&&!isNaN(A)&&0<A?(mxGraph.prototype.defaultPageFormat=new mxRectangle(0,0,p,A),mxGraph.prototype.pageFormat=mxGraph.prototype.defaultPageFormat):EditorUi.debug("Configuration Error: {width: int, height: int} expected for pageFormat"));null!=d.thumbWidth&&(Sidebar.prototype.thumbWidth=d.thumbWidth);null!=d.thumbHeight&&(Sidebar.prototype.thumbHeight=d.thumbHeight);null!=d.emptyLibraryXml&&(EditorUi.prototype.emptyLibraryXml=-d.emptyLibraryXml);null!=d.emptyDiagramXml&&(EditorUi.prototype.emptyDiagramXml=d.emptyDiagramXml);null!=d.sidebarWidth&&(EditorUi.prototype.hsplitPosition=d.sidebarWidth);null!=d.updateDefaultStyle&&(EditorUi.prototype.updateDefaultStyle=d.updateDefaultStyle);null!=d.sidebarTitles&&(Sidebar.prototype.sidebarTitles=d.sidebarTitles);null!=d.sidebarTitleSize&&(p=parseInt(d.sidebarTitleSize),!isNaN(p)&&0<p?Sidebar.prototype.sidebarTitleSize=p:EditorUi.debug("Configuration Error: Int > 0 expected for sidebarTitleSize"));-null!=d.fontCss&&("string"===typeof d.fontCss?Editor.configureFontCss(d.fontCss):EditorUi.debug("Configuration Error: String expected for fontCss"));null!=d.autosaveDelay&&(p=parseInt(d.autosaveDelay),!isNaN(p)&&0<p?DrawioFile.prototype.autosaveDelay=p:EditorUi.debug("Configuration Error: Int > 0 expected for autosaveDelay"));null!=d.maxImageBytes&&(EditorUi.prototype.maxImageBytes=d.maxImageBytes);null!=d.maxImageSize&&(EditorUi.prototype.maxImageSize=d.maxImageSize);null!=d.shareCursorPosition&&-(EditorUi.prototype.shareCursorPosition=d.shareCursorPosition);null!=d.showRemoteCursors&&(EditorUi.prototype.showRemoteCursors=d.showRemoteCursors);null!=d.restrictExport&&(DrawioFile.RESTRICT_EXPORT=d.restrictExport);null!=d.removeImageMetadata&&(Editor.removeImageMetadata=d.removeImageMetadata);null!=d.defaultTextStyle&&(Editor.defaultTextStyle=d.defaultTextStyle);null!=d.replaceSvgDataUris&&(Editor.replaceSvgDataUris=d.replaceSvgDataUris);null!=d.foreignObjectImages&&(Editor.foreignObjectImages=-d.foreignObjectImages);null!=d.embedSvgFonts&&(Editor.embedSvgFonts=d.embedSvgFonts);null!=d.shadowColor&&(mxConstants.SHADOW_COLOR=d.shadowColor);null!=d.shadowOpacity&&(mxConstants.SHADOW_OPACITY=d.shadowOpacity);null!=d.shadowOffsetX&&(mxConstants.SHADOW_OFFSET_X=d.shadowOffsetX);null!=d.shadowOffsetY&&(mxConstants.SHADOW_OFFSET_Y=d.shadowOffsetY);null!=d.shadowBlur&&(mxConstants.SHADOW_BLUR=d.shadowBlur);null!=d.enableAnimations&&(Editor.enableAnimations=d.enableAnimations);null!=d.insertAnimations&&-(Editor.insertAnimations=d.insertAnimations);null!=d.enableWindowDocking&&(Editor.enableWindowDocking=d.enableWindowDocking);null!=d.compact&&(EditorUi.prototype.defaultCompact=d.compact);null!=d.noAutoFocus&&(EditorUi.prototype.noAutoFocus=d.noAutoFocus);if(null!=d.hideMenuItems)if(Array.isArray(d.hideMenuItems))for(Menus.prototype.hiddenMenuItems={},p=0;p<d.hideMenuItems.length;p++)Menus.prototype.hiddenMenuItems[d.hideMenuItems[p]]=!0;else EditorUi.debug("Configuration Error: Array expected for hideMenuItems");-if(null!=d.hideMenus)if(Array.isArray(d.hideMenus)){var G={};for(p=0;p<d.hideMenus.length;p++)G[d.hideMenus[p]]=!0;Menus.prototype.defaultMenuItems=Menus.prototype.defaultMenuItems.filter(function(I){return!G[I]})}else EditorUi.debug("Configuration Error: Array expected for hideMenus");null!=d.enableAi&&(Editor.enableAi=d.enableAi);null!=d.enableChatGpt&&(Editor.enableAi=d.enableChatGpt);null!=d.gptApiKey&&(Editor.aiGlobals.gptApiKey=d.gptApiKey);null!=d.geminiApiKey&&(Editor.aiGlobals.geminiApiKey=-d.geminiApiKey);null!=d.claudeApiKey&&(Editor.aiGlobals.claudeApiKey=d.claudeApiKey);null!=d.gptUrl&&null!=Editor.aiConfigs.gpt&&(Editor.aiConfigs.gpt.endpoint=d.gptUrl);null!=d.aiActions&&(Editor.aiActions=d.aiActions);null!=d.aiGlobals&&(Editor.aiGlobals=d.aiGlobals);null!=d.aiConfigs&&(Editor.aiConfigs=d.aiConfigs);null!=d.aiModels&&(Editor.aiModels=d.aiModels)}};Editor.applyCustomResources=function(){if(null!=Editor.customResources){var d=null!=mxClient.language?mxClient.language.toLowerCase():-null,p=null!=d?d.indexOf("-"):-1,A;for(A in Editor.customResources){var G=Editor.customResources[A];null!=G&&"object"===typeof G&&(G=(null!=d?G[d]:null)||(0<p?G[d.substring(0,p)]:null)||G.main);"string"===typeof G&&(mxResources.resources[A]=G)}}};var b=mxResources.parse;mxResources.parse=function(d){b.apply(this,arguments);Editor.applyCustomResources()};Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.expandSvgPatterns=-function(d){function p(ba,W){ba=ba.getAttribute("fill");if(null==ba||0!==ba.indexOf("url("))return null;ba=ba.match(/url\([^#]*#([^)"]+)\)?/);if(null==ba)return null;ba=ba[1];try{var Y=W.querySelector("#"+CSS.escape(ba));return null!=Y&&"pattern"===Y.nodeName?Y:null}catch(X){return null}}function A(ba,W,Y){var X,ca,S;try{var Z=ba.getBBox()}catch(ia){return}if(0!==Z.width&&0!==Z.height){var da=parseFloat(W.getAttribute("width")),N=parseFloat(W.getAttribute("height"));if(!(isNaN(da)||isNaN(N)||0>=da||-0>=N)){var aa=W.getAttribute("patternTransform");var ea=ca=X=0;var la=S=1;if(null!=aa){var ra=aa.match(/translate\(\s*([^,\s]+)[,\s]+([^)]+)\)/);null!=ra&&(X=parseFloat(ra[1]),ca=parseFloat(ra[2]));ra=aa.match(/rotate\(\s*([^)]+)\)/);null!=ra&&(ea=parseFloat(ra[1])*Math.PI/180);aa=aa.match(/scale\(\s*([^,\s)]+)(?:[,\s]+([^)]+))?\)/);null!=aa&&(S=parseFloat(aa[1]),la=null!=aa[2]?parseFloat(aa[2]):S)}var qa=[{x:Z.x,y:Z.y},{x:Z.x+Z.width,y:Z.y},{x:Z.x+Z.width,y:Z.y+Z.height},{x:Z.x,y:Z.y+Z.height}],-na=Infinity;Z=Infinity;ra=aa=-Infinity;for(var xa=0;xa<qa.length;xa++){var wa=qa[xa].x-X;var za=qa[xa].y-ca,Ba=Math.cos(-ea),va=Math.sin(-ea);var pa=(wa*Ba-za*va)/S;wa=(wa*va+za*Ba)/la;na=Math.min(na,pa);Z=Math.min(Z,wa);aa=Math.max(aa,pa);ra=Math.max(ra,wa)}na=Math.floor(na/da)-1;Z=Math.floor(Z/N)-1;aa=Math.ceil(aa/da)+1;pa=Math.ceil(ra/N)+1;if(!(1E4<(aa-na)*(pa-Z))){xa=I+ ++G;ra=Y.ownerDocument.createElementNS("http://www.w3.org/2000/svg","clipPath");ra.setAttribute("id",xa);qa=ba.cloneNode(!0);-qa.removeAttribute("fill");qa.removeAttribute("fill-opacity");qa.removeAttribute("stroke");qa.removeAttribute("stroke-width");qa.removeAttribute("stroke-opacity");qa.removeAttribute("style");qa.removeAttribute("pointer-events");qa.setAttribute("fill","black");ra.appendChild(qa);qa=Y.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");qa.setAttribute("clip-path","url(#"+xa+")");xa=ba.getAttribute("fill-opacity");null!=xa&&qa.setAttribute("opacity",xa);xa=Y.ownerDocument.createElementNS("http://www.w3.org/2000/svg",-"g");xa.setAttribute("transform","translate("+X+","+ca+")"+(0!==ea?" rotate("+180*ea/Math.PI+")":"")+" scale("+S+(la!==S?","+la:"")+")");ca=I+ ++G;X=Y.ownerDocument.createElementNS("http://www.w3.org/2000/svg","clipPath");X.setAttribute("id",ca);ea=Y.ownerDocument.createElementNS("http://www.w3.org/2000/svg","rect");ea.setAttribute("x","0");ea.setAttribute("y","0");ea.setAttribute("width",da);ea.setAttribute("height",N);X.appendChild(ea);W=W.childNodes;for(ea=na;ea<aa;ea++)for(S=Z;S<pa;S++){la=Y.ownerDocument.createElementNS("http://www.w3.org/2000/svg",-"g");la.setAttribute("transform","translate("+ea*da+","+S*N+")");la.setAttribute("clip-path","url(#"+ca+")");for(na=0;na<W.length;na++)1===W[na].nodeType&&la.appendChild(W[na].cloneNode(!0));xa.appendChild(la)}qa.appendChild(xa);da=Y.querySelector("defs");null==da&&(da=Y.ownerDocument.createElementNS("http://www.w3.org/2000/svg","defs"),Y.insertBefore(da,Y.firstChild));da.appendChild(ra);da.appendChild(X);ba.parentNode.insertBefore(qa,ba.nextSibling);ba.setAttribute("fill","none");ba.style.fill=""}}}}-for(var G=0,I="expand-pattern-clip-"+Editor.guid(8)+"-",L=d.querySelectorAll('[fill^="url("]'),P=0;P<L.length;P++){var Q=p(L[P],d);null!=Q&&A(L[P],Q,d)}L=d.querySelectorAll("[style]");for(P=0;P<L.length;P++)Q=L[P].getAttribute("style"),null!=Q&&-1!==Q.indexOf("url(")&&(Q=p(L[P],d),null!=Q&&A(L[P],Q,d))};Editor.configureFontCss=function(d){if(null!=d){Editor.prototype.fontCss=d;var p=document.getElementsByTagName("script")[0];if(null!=p&&null!=p.parentNode){var A=document.createElement("style");A.setAttribute("type",-"text/css");A.appendChild(document.createTextNode(d));p.parentNode.insertBefore(A,p);d=d.split("url(");for(A=1;A<d.length;A++){var G=d[A].indexOf(")");G=Editor.trimCssUrl(d[A].substring(0,G));var I=document.createElement("link");I.setAttribute("rel","preload");I.setAttribute("href",G);I.setAttribute("as","font");I.setAttribute("crossorigin","");p.parentNode.insertBefore(I,p)}}}};Editor.trimCssUrl=function(d){return d.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS=-"https://fonts.googleapis.com/css?family=";Editor.GOOGLE_FONTS_CSS2="https://fonts.googleapis.com/css2?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(d){d=null!=d?d:Editor.GUID_LENGTH;for(var p=[],A=0;A<d;A++)p.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));return p.join("")};Editor.updateStatusInterval=1E4;Editor.prototype.appName="draw.io";Editor.prototype.diagramFileTypes=-[{description:"diagramXmlDesc",extension:"drawio",mimeType:"text/xml"},{description:"diagramPngDesc",extension:"png",mimeType:"image/png"},{description:"diagramSvgDesc",extension:"svg",mimeType:"image/svg"},{description:"diagramHtmlDesc",extension:"html",mimeType:"text/html"}];Editor.prototype.libraryFileTypes=[{description:"Library (.drawiolib, .xml)",extensions:["drawiolib","xml"]}];Editor.prototype.fileExtensions=[{ext:"html",title:"filetypeHtml"},{ext:"png",title:"filetypePng"},{ext:"svg",title:"filetypeSvg"}];-Editor.prototype.timeout=25E3;Editor.prototype.generateTimeout=9E4;Editor.prototype.editButtonLink=null!=urlParams.edit?decodeURIComponent(urlParams.edit):null;Editor.prototype.crossOriginImages=!0;var k=Editor.prototype.setGraphXml;Editor.prototype.setGraphXml=function(d){d=null!=d&&"mxlibrary"!=d.nodeName?this.extractGraphModel(d):null;if(null!=d){var p=Editor.extractParserError(d,mxResources.get("invalidOrMissingFile"));if(p)throw EditorUi.debug("Editor.setGraphXml ParserError",[this],"node",[d],-"cause",[p]),Error(mxResources.get("notADiagramFile")+" ("+p+")");if("mxGraphModel"==d.nodeName){p=d.getAttribute("style")||"default-style2";if("1"==urlParams.embed||null!=p&&""!=p)p!=this.graph.currentStyle&&(A=null!=this.graph.themes?this.graph.themes[p]:mxUtils.load(STYLE_PATH+"/"+p+".xml").getDocumentElement(),null!=A&&(G=new mxCodec(A.ownerDocument),G.decode(A,this.graph.getStylesheet())));else{var A=null!=this.graph.themes?this.graph.themes["default-old"]:mxUtils.load(STYLE_PATH+"/default-old.xml").getDocumentElement();-if(null!=A){var G=new mxCodec(A.ownerDocument);G.decode(A,this.graph.getStylesheet())}}this.graph.currentStyle=p;this.graph.mathEnabled="1"==urlParams.math||"1"==d.getAttribute("math");this.graph.setAdaptiveColors(d.getAttribute("adaptiveColors"));p=d.getAttribute("backgroundImage");null!=p?this.graph.setBackgroundImage(this.graph.parseBackgroundImage(p)):this.graph.setBackgroundImage(null);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();-this.graph.updateCssTransform();this.graph.setShadowVisible("1"==d.getAttribute("shadow"),!1);if(p=d.getAttribute("extFonts"))try{for(p=p.split("|").map(function(I){I=I.split("^");return{name:I[0],url:I[1]}}),A=0;A<p.length;A++)this.graph.addExtFont(p[A].name,p[A].url)}catch(I){console.log("ExtFonts format error: "+I.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}k.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||"Invalid data",-toString:function(){return this.message}};};var m=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(d,p){d=null!=d?d:!0;var A=m.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&A.setAttribute("style",this.graph.currentStyle);var G=this.graph.getBackgroundImageObject(this.graph.backgroundImage,p);null!=G&&A.setAttribute("backgroundImage",JSON.stringify(G));A.setAttribute("math",this.graph.mathEnabled?"1":"0");A.setAttribute("shadow",this.graph.shadowVisible?-"1":"0");null!=this.graph.adaptiveColors?A.setAttribute("adaptiveColors",this.graph.adaptiveColors):A.removeAttribute("adaptiveColors");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(G=this.graph.extFonts.map(function(I){return I.name+"^"+I.url}),A.setAttribute("extFonts",G.join("|")));return A};Editor.prototype.isDataSvg=function(d){try{var p=mxUtils.parseXml(d).documentElement.getAttribute("content");if(null!=p&&(null!=p&&"<"!=p.charAt(0)&&"%"!=p.charAt(0)&&(p=unescape(window.atob?atob(p):-Base64.decode(cont,p))),null!=p&&"%"==p.charAt(0)&&(p=decodeURIComponent(p)),null!=p&&0<p.length)){var A=mxUtils.parseXml(p).documentElement;return"mxfile"==A.nodeName||"mxGraphModel"==A.nodeName}}catch(G){}return!1};Editor.prototype.extractGraphModel=function(d,p,A){return Editor.extractGraphModel.apply(this,arguments)};var f=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.setAdaptiveColors(null);this.graph.view.x0=null;this.graph.view.y0=-null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();f.apply(this,arguments)};var q=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){q.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.safeMathJaxFilterUrl=function(d,p){var A=(p.replace(/[\t\n\r]/g,-"").replace(/^[\u0000-\u0020]+/,"").match(/^([a-z][a-z0-9+.\-]*):/i)||[null,""])[1].toLowerCase(),G=d.allow.URLs;return"all"===G||"safe"===G&&(d.options.safeProtocols[A]||!A)?p:null};Editor.safeMathJaxFilterUrl.drawioPatched=!0;Editor.patchMathJaxUrlFilter=function(d){d=null!=d?d:"undefined"!==typeof MathJax?MathJax:null;if(null!=d){var p=null!=d._&&null!=d._.ui&&null!=d._.ui.safe&&null!=d._.ui.safe.SafeMethods?d._.ui.safe.SafeMethods.SafeMethods:null;null==p||null==p.filterURL||p.filterURL.drawioPatched||-(p.filterURL=Editor.safeMathJaxFilterUrl);d=null!=d.startup?d.startup.document:null;null==d||null==d.safe||null==d.safe.filterMethods||null==d.safe.filterMethods.filterURL||d.safe.filterMethods.filterURL.drawioPatched||(d.safe.filterMethods.filterURL=Editor.safeMathJaxFilterUrl)}};Editor.safeMathJaxDataMacro=function(d,p,A,G){var I=d.setAttribute;d.setAttribute=function(L,P,Q){if("string"!==typeof P||"data-"!==P.substring(0,5)||P.match(Editor.safeMathJaxDataPattern))return I.apply(this,arguments)};-try{return p.apply(this,[A,G])}finally{d.setAttribute=I}};Editor.safeMathJaxDataPattern=/^data-mjx-/;Editor.patchMathJaxDataMacro=function(d){d=null!=d?d:"undefined"!==typeof MathJax?MathJax:null;d=null!=d&&null!=d._&&null!=d._.input?d._.input.tex:null;if(null!=d&&null!=d.MapHandler&&null!=d.NodeUtil){var p=d.MapHandler.MapHandler.getMap("html_macros");p=null!=p&&null!=p.lookup?p.lookup("data"):null;if(null!=p&&null!=p._func&&!p._func.drawioPatched){var A=d.NodeUtil["default"],G=p._func;d=function(I,-L){return Editor.safeMathJaxDataMacro(A,G,I,L)};d.drawioPatched=!0;p._func=d}}};Editor.patchMathJaxSafeFilters=function(d){Editor.patchMathJaxUrlFilter(d);Editor.patchMathJaxDataMacro(d)};Editor.initMath=function(d,p){if("undefined"===typeof window.MathJax){var A=function(){G=null;Editor.mathJaxRendering=!1;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};d=null!=d?d:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var G=null;Editor.mathJaxRendering=-!1;Editor.doMathJaxRender=function(P){Editor.patchMathJaxSafeFilters();null!=MathJax.startup&&null!=MathJax.startup.output&&null!=MathJax.startup.output.options&&null!=MathJax.startup.output.options.linebreaks&&(MathJax.startup.output.options.linebreaks.inline=!1);try{null==G?(MathJax.typesetClear([P]),MathJax.typeset([P]),A()):G!=P&&Editor.mathJaxQueue.push(P)}catch(Q){MathJax.typesetClear([P]),null!=Q.retry?(G=P,Editor.mathJaxRendering=!0,Q.retry.then(function(){MathJax.typesetPromise([P]).then(A)["catch"](function(ba){console.log("Error in MathJax.typesetPromise: "++null!=d.defaultFonts&&(Menus.prototype.defaultFonts=d.defaultFonts,Editor.addAllowedFontUrls(d.defaultFonts));null!=d.presetColors&&(ColorDialog.prototype.presetColors=d.presetColors);null!=d.defaultColors&&(ColorDialog.prototype.defaultColors=d.defaultColors);null!=d.colorNames&&(ColorDialog.prototype.colorNames=d.colorNames);null!=d.defaultColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=d.defaultColorSchemes);null!=d.defaultEdgeLength&&(Graph.prototype.defaultEdgeLength=d.defaultEdgeLength);+null!=d.selectParentLayer&&(Graph.selectParentLayer=d.selectParentLayer);null!=d.intersectionSelect&&(Graph.intersectionSelect=d.intersectionSelect);null!=d.swimlaneSelectionEnabled&&(Graph.prototype.swimlaneSelectionEnabled=d.swimlaneSelectionEnabled);null!=d.autosaveDelay&&(DrawioFile.prototype.autosaveDelay=d.autosaveDelay);null!=d.templateFile&&(EditorUi.templateFile=d.templateFile);null!=d.enabledTemplateSections&&(Array.isArray(d.enabledTemplateSections)?EditorUi.enabledTemplateSections=d.enabledTemplateSections:+EditorUi.debug("Configuration Error: Array expected for enabledTemplateSections"));null!=d.customTemplates&&(Array.isArray(d.customTemplates)?EditorUi.customTemplates=d.customTemplates:EditorUi.debug("Configuration Error: Array expected for customTemplates"));null!=d.styles&&(Array.isArray(d.styles)?Editor.styles=d.styles:EditorUi.debug("Configuration Error: Array expected for styles"));null!=d.globalVars&&(Editor.globalVars=d.globalVars);null!=d.defaultFileType&&(Editor.defaultFileType=d.defaultFileType);+null!=d.compressXml&&(Editor.defaultCompressed=d.compressXml,Editor.compressXml=d.compressXml);null!=d.compressStyles&&(p=mxCodecRegistry.getCodec(mxGraphModel),null!=p&&(p.enableStyleCompression=d.compressStyles));null!=d.includeDiagram&&(Editor.defaultIncludeDiagram=d.includeDiagram);null!=d.simpleLabels&&(Editor.simpleLabels=d.simpleLabels);null!=d.optimizeHtmlLabels&&(Editor.optimizeHtmlLabels=d.optimizeHtmlLabels);null!=d.mathOutputSize&&(Editor.mathOutputSize=d.mathOutputSize);null!=d.mermaid&&+("object"!==typeof d.mermaid||Array.isArray(d.mermaid)?EditorUi.debug("Configuration Error: Object expected for mermaid"):EditorUi.defaultMermaidConfig=d.mermaid);null!=d.pasteAtMousePointer&&(Editor.pasteAtMousePointer=d.pasteAtMousePointer);null!=d.fitDiagramOnLoad&&(Editor.fitDiagramOnLoad=d.fitDiagramOnLoad);null!=d.fitDiagramOnPage&&(Editor.fitDiagramOnPage=d.fitDiagramOnPage);null!=d.showLinkIcons&&(Editor.showLinkIcons=d.showLinkIcons);null!=d.showTooltipIcons&&(Editor.showTooltipIcons=d.showTooltipIcons);+null!=d.showNoteIcons&&(Editor.showNoteIcons=d.showNoteIcons);null!=d.tooltipFontSize&&(p=parseInt(d.tooltipFontSize),!isNaN(p)&&0<p?Editor.tooltipFontSize=p:EditorUi.debug("Configuration Error: Int > 0 expected for tooltipFontSize"));null!=d.tooltipMaxWidth&&(p=parseInt(d.tooltipMaxWidth),!isNaN(p)&&0<=p?Editor.tooltipMaxWidth=p:EditorUi.debug("Configuration Error: Int >= 0 expected for tooltipMaxWidth"));null!=d.expandPatternsForPrint&&(Editor.expandPatternsForPrint=d.expandPatternsForPrint);null!=+d.showConnectHandle&&(Editor.showConnectHandle=d.showConnectHandle);null!=d.enableInlineToolbar&&(Editor.enableInlineToolbar=d.enableInlineToolbar);null!=d.enableSizeGuides&&"undefined"!==typeof mxVertexHandler&&(mxVertexHandler.prototype.sizeGuidesEnabled=d.enableSizeGuides);null!=d.enablePositionGuides&&"undefined"!==typeof mxGuide&&(mxGuide.prototype.positionEnabled=d.enablePositionGuides);null!=d.enableDistanceGuides&&"undefined"!==typeof mxGuide&&(mxGuide.prototype.distanceEnabled=d.enableDistanceGuides);+null!=d.defaultTransparentGroups&&(Editor.defaultTransparentGroups=d.defaultTransparentGroups);null!=d.oneDriveInlinePicker&&(Editor.oneDriveInlinePicker=d.oneDriveInlinePicker);null!=d.enableNativeClipboard&&(Editor.enableNativeClipboard=d.enableNativeClipboard);null!=d.enableExportUrl&&(Editor.enableExportUrl=d.enableExportUrl);null!=d.defaultAdaptiveColors?Graph.defaultAdaptiveColors=d.defaultAdaptiveColors:0==d.enableCssDarkMode&&(Graph.defaultAdaptiveColors="simple");null!=d.enableLightDarkColors&&+(mxUtils.lightDarkColorSupported=d.enableLightDarkColors);null!=d.darkColor&&(Editor.darkColor=d.darkColor);null!=d.darkColorVar&&(Editor.darkColorVar=d.darkColorVar);null!=d.defaultPageBackgroundColor&&(Editor.pageBackgroundColor=d.defaultPageBackgroundColor);null!=d.defaultDarkPageBackgroundColor&&(Editor.darkPageBackgroundColor=d.defaultDarkPageBackgroundColor);null!=d.defaultGridColor&&(mxGraphView.prototype.defaultGridColor=d.defaultGridColor);null!=d.defaultDarkGridColor&&(mxGraphView.prototype.defaultDarkGridColor=+d.defaultDarkGridColor);mxGraphView.prototype.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultDarkGridColor:mxGraphView.prototype.defaultGridColor;Graph.prototype.defaultPageBackgroundColor=Editor.getDefaultPageBackgroundColor();Graph.prototype.shapeBackgroundColor="light-dark(#ffffff, var("+Editor.darkColorVar+", "+Editor.darkColor+"))";null!=d.settingsName&&(Editor.configurationKey="."+d.settingsName+"-configuration",Editor.settingsKey="."+d.settingsName+"-config",mxSettings.key=Editor.settingsKey);+null!=d.customFonts&&(Menus.prototype.defaultFonts=d.customFonts.concat(Menus.prototype.defaultFonts),Editor.addAllowedFontUrls(d.customFonts));null!=d.customPresetColors&&(ColorDialog.prototype.presetColors=d.customPresetColors.concat(ColorDialog.prototype.presetColors));null!=d.customColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=d.customColorSchemes.concat(StyleFormatPanel.prototype.defaultColorSchemes));if(null!=d.css){p=document.createElement("style");p.setAttribute("type","text/css");+p.appendChild(document.createTextNode(d.css));var A=document.getElementsByTagName("script")[0];A.parentNode.insertBefore(p,A)}null!=d.expandLibraries&&(Sidebar.prototype.expandLibraries=d.expandLibraries);null!=d.appendCustomLibraries&&(Sidebar.prototype.appendCustomLibraries=d.appendCustomLibraries);null!=d.libraries&&(Sidebar.prototype.customEntries=d.libraries);null!=d.enabledLibraries&&(Array.isArray(d.enabledLibraries)?Sidebar.prototype.enabledLibraries=d.enabledLibraries:EditorUi.debug("Configuration Error: Array expected for enabledLibraries"));+null!=d.defaultLibraries&&(Sidebar.prototype.defaultEntries=d.defaultLibraries);null!=d.defaultCustomLibraries&&(Editor.defaultCustomLibraries=d.defaultCustomLibraries);null!=d.defaultLanguages&&(Array.isArray(d.defaultLanguages)?Editor.defaultLanguages=d.defaultLanguages:EditorUi.debug("Configuration Error: Array expected for defaultLanguages"));null!=d.enableCustomLibraries&&(Editor.enableCustomLibraries=d.enableCustomLibraries);null!=d.inlineExtIcons&&(Editor.inlineExtIcons=d.inlineExtIcons);null!=+d.defaultVertexStyle&&(Graph.prototype.defaultVertexStyle=d.defaultVertexStyle);null!=d.defaultEdgeStyle&&(Graph.prototype.defaultEdgeStyle=d.defaultEdgeStyle);null!=d.shapePicker&&(EditorUi.prototype.defaultShapePickerEntries=d.shapePicker.shapes);null!=d.defaultPageVisible&&(Graph.prototype.defaultPageVisible=d.defaultPageVisible);null!=d.defaultGridEnabled&&(Graph.prototype.defaultGridEnabled=d.defaultGridEnabled);null!=d.defaultConnectionArrowsEnabled&&(Graph.prototype.defaultConnectionArrowsEnabled=+d.defaultConnectionArrowsEnabled,Graph.prototype.connectionArrowsEnabled=d.defaultConnectionArrowsEnabled);null!=d.defaultConnectable&&(Graph.prototype.defaultConnectable=d.defaultConnectable);null!=d.copyOnConnect&&(mxConnectionHandler.prototype.createTarget=d.copyOnConnect);null!=d.stopEditingOnEnter&&(mxGraph.prototype.enterStopsCellEditing=d.stopEditingOnEnter);null!=d.defaultFoldingEnabled&&(Graph.prototype.defaultFoldingEnabled=d.defaultFoldingEnabled);null!=d.foldingIconSize&&Graph.updateFoldingImages(d.foldingIconSize);+null!=d.zoomWheel&&(Graph.zoomWheel=d.zoomWheel);null!=d.browserTranslate&&(Graph.browserTranslate=d.browserTranslate);null!=d.zoomFactor&&(p=parseFloat(d.zoomFactor),!isNaN(p)&&1<p?Graph.prototype.zoomFactor=p:EditorUi.debug("Configuration Error: Float > 1 expected for zoomFactor"));null!=d.defaultGridSize&&(p=parseInt(d.defaultGridSize),!isNaN(p)&&0<p?mxGraph.prototype.gridSize=p:EditorUi.debug("Configuration Error: Int > 0 expected for defaultGridSize"));null!=d.gridSteps&&(p=parseInt(d.gridSteps),+!isNaN(p)&&0<p?mxGraphView.prototype.gridSteps=p:EditorUi.debug("Configuration Error: Int > 0 expected for gridSteps"));null!=d.pageFormat&&(p=parseInt(d.pageFormat.width),A=parseInt(d.pageFormat.height),!isNaN(p)&&0<p&&!isNaN(A)&&0<A?(mxGraph.prototype.defaultPageFormat=new mxRectangle(0,0,p,A),mxGraph.prototype.pageFormat=mxGraph.prototype.defaultPageFormat):EditorUi.debug("Configuration Error: {width: int, height: int} expected for pageFormat"));null!=d.thumbWidth&&(Sidebar.prototype.thumbWidth=+d.thumbWidth);null!=d.thumbHeight&&(Sidebar.prototype.thumbHeight=d.thumbHeight);null!=d.emptyLibraryXml&&(EditorUi.prototype.emptyLibraryXml=d.emptyLibraryXml);null!=d.emptyDiagramXml&&(EditorUi.prototype.emptyDiagramXml=d.emptyDiagramXml);null!=d.sidebarWidth&&(EditorUi.prototype.hsplitPosition=d.sidebarWidth);null!=d.updateDefaultStyle&&(EditorUi.prototype.updateDefaultStyle=d.updateDefaultStyle);null!=d.sidebarTitles&&(Sidebar.prototype.sidebarTitles=d.sidebarTitles);null!=d.sidebarTitleSize&&+(p=parseInt(d.sidebarTitleSize),!isNaN(p)&&0<p?Sidebar.prototype.sidebarTitleSize=p:EditorUi.debug("Configuration Error: Int > 0 expected for sidebarTitleSize"));null!=d.fontCss&&("string"===typeof d.fontCss?Editor.configureFontCss(d.fontCss):EditorUi.debug("Configuration Error: String expected for fontCss"));null!=d.autosaveDelay&&(p=parseInt(d.autosaveDelay),!isNaN(p)&&0<p?DrawioFile.prototype.autosaveDelay=p:EditorUi.debug("Configuration Error: Int > 0 expected for autosaveDelay"));null!=d.maxImageBytes&&+(EditorUi.prototype.maxImageBytes=d.maxImageBytes);null!=d.maxImageSize&&(EditorUi.prototype.maxImageSize=d.maxImageSize);null!=d.shareCursorPosition&&(EditorUi.prototype.shareCursorPosition=d.shareCursorPosition);null!=d.showRemoteCursors&&(EditorUi.prototype.showRemoteCursors=d.showRemoteCursors);null!=d.restrictExport&&(DrawioFile.RESTRICT_EXPORT=d.restrictExport);null!=d.removeImageMetadata&&(Editor.removeImageMetadata=d.removeImageMetadata);null!=d.defaultTextStyle&&(Editor.defaultTextStyle=+d.defaultTextStyle);null!=d.replaceSvgDataUris&&(Editor.replaceSvgDataUris=d.replaceSvgDataUris);null!=d.foreignObjectImages&&(Editor.foreignObjectImages=d.foreignObjectImages);null!=d.embedSvgFonts&&(Editor.embedSvgFonts=d.embedSvgFonts);null!=d.shadowColor&&(mxConstants.SHADOW_COLOR=d.shadowColor);null!=d.shadowOpacity&&(mxConstants.SHADOW_OPACITY=d.shadowOpacity);null!=d.shadowOffsetX&&(mxConstants.SHADOW_OFFSET_X=d.shadowOffsetX);null!=d.shadowOffsetY&&(mxConstants.SHADOW_OFFSET_Y=d.shadowOffsetY);+null!=d.shadowBlur&&(mxConstants.SHADOW_BLUR=d.shadowBlur);null!=d.enableAnimations&&(Editor.enableAnimations=d.enableAnimations);null!=d.insertAnimations&&(Editor.insertAnimations=d.insertAnimations);null!=d.enableWindowDocking&&(Editor.enableWindowDocking=d.enableWindowDocking);null!=d.compact&&(EditorUi.prototype.defaultCompact=d.compact);null!=d.noAutoFocus&&(EditorUi.prototype.noAutoFocus=d.noAutoFocus);if(null!=d.hideMenuItems)if(Array.isArray(d.hideMenuItems))for(Menus.prototype.hiddenMenuItems=+{},p=0;p<d.hideMenuItems.length;p++)Menus.prototype.hiddenMenuItems[d.hideMenuItems[p]]=!0;else EditorUi.debug("Configuration Error: Array expected for hideMenuItems");if(null!=d.hideMenus)if(Array.isArray(d.hideMenus)){var G={};for(p=0;p<d.hideMenus.length;p++)G[d.hideMenus[p]]=!0;Menus.prototype.defaultMenuItems=Menus.prototype.defaultMenuItems.filter(function(I){return!G[I]})}else EditorUi.debug("Configuration Error: Array expected for hideMenus");null!=d.enableAi&&(Editor.enableAi=d.enableAi);+null!=d.enableChatGpt&&(Editor.enableAi=d.enableChatGpt);null!=d.gptApiKey&&(Editor.aiGlobals.gptApiKey=d.gptApiKey);null!=d.geminiApiKey&&(Editor.aiGlobals.geminiApiKey=d.geminiApiKey);null!=d.claudeApiKey&&(Editor.aiGlobals.claudeApiKey=d.claudeApiKey);null!=d.gptUrl&&null!=Editor.aiConfigs.gpt&&(Editor.aiConfigs.gpt.endpoint=d.gptUrl);null!=d.aiActions&&(Editor.aiActions=d.aiActions);null!=d.aiGlobals&&(Editor.aiGlobals=d.aiGlobals);null!=d.aiConfigs&&(Editor.aiConfigs=d.aiConfigs);null!=d.aiModels&&+(Editor.aiModels=d.aiModels)}};Editor.applyCustomResources=function(){if(null!=Editor.customResources){var d=null!=mxClient.language?mxClient.language.toLowerCase():null,p=null!=d?d.indexOf("-"):-1,A;for(A in Editor.customResources){var G=Editor.customResources[A];null!=G&&"object"===typeof G&&(G=(null!=d?G[d]:null)||(0<p?G[d.substring(0,p)]:null)||G.main);"string"===typeof G&&(mxResources.resources[A]=G)}}};var b=mxResources.parse;mxResources.parse=function(d){b.apply(this,arguments);Editor.applyCustomResources()};+Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.expandSvgPatterns=function(d){function p(ba,W){ba=ba.getAttribute("fill");if(null==ba||0!==ba.indexOf("url("))return null;ba=ba.match(/url\([^#]*#([^)"]+)\)?/);if(null==ba)return null;ba=ba[1];try{var Y=W.querySelector("#"+CSS.escape(ba));return null!=Y&&"pattern"===Y.nodeName?Y:null}catch(X){return null}}function A(ba,W,Y){var X,ca,S;try{var Z=ba.getBBox()}catch(ia){return}if(0!==+Z.width&&0!==Z.height){var da=parseFloat(W.getAttribute("width")),N=parseFloat(W.getAttribute("height"));if(!(isNaN(da)||isNaN(N)||0>=da||0>=N)){var aa=W.getAttribute("patternTransform");var ea=ca=X=0;var la=S=1;if(null!=aa){var ra=aa.match(/translate\(\s*([^,\s]+)[,\s]+([^)]+)\)/);null!=ra&&(X=parseFloat(ra[1]),ca=parseFloat(ra[2]));ra=aa.match(/rotate\(\s*([^)]+)\)/);null!=ra&&(ea=parseFloat(ra[1])*Math.PI/180);aa=aa.match(/scale\(\s*([^,\s)]+)(?:[,\s]+([^)]+))?\)/);null!=aa&&(S=parseFloat(aa[1]),+la=null!=aa[2]?parseFloat(aa[2]):S)}var qa=[{x:Z.x,y:Z.y},{x:Z.x+Z.width,y:Z.y},{x:Z.x+Z.width,y:Z.y+Z.height},{x:Z.x,y:Z.y+Z.height}],na=Infinity;Z=Infinity;ra=aa=-Infinity;for(var xa=0;xa<qa.length;xa++){var wa=qa[xa].x-X;var za=qa[xa].y-ca,Ba=Math.cos(-ea),va=Math.sin(-ea);var pa=(wa*Ba-za*va)/S;wa=(wa*va+za*Ba)/la;na=Math.min(na,pa);Z=Math.min(Z,wa);aa=Math.max(aa,pa);ra=Math.max(ra,wa)}na=Math.floor(na/da)-1;Z=Math.floor(Z/N)-1;aa=Math.ceil(aa/da)+1;pa=Math.ceil(ra/N)+1;if(!(1E4<(aa-na)*(pa-+Z))){xa=I+ ++G;ra=Y.ownerDocument.createElementNS("http://www.w3.org/2000/svg","clipPath");ra.setAttribute("id",xa);qa=ba.cloneNode(!0);qa.removeAttribute("fill");qa.removeAttribute("fill-opacity");qa.removeAttribute("stroke");qa.removeAttribute("stroke-width");qa.removeAttribute("stroke-opacity");qa.removeAttribute("style");qa.removeAttribute("pointer-events");qa.setAttribute("fill","black");ra.appendChild(qa);qa=Y.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");qa.setAttribute("clip-path",+"url(#"+xa+")");xa=ba.getAttribute("fill-opacity");null!=xa&&qa.setAttribute("opacity",xa);xa=Y.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");xa.setAttribute("transform","translate("+X+","+ca+")"+(0!==ea?" rotate("+180*ea/Math.PI+")":"")+" scale("+S+(la!==S?","+la:"")+")");ca=I+ ++G;X=Y.ownerDocument.createElementNS("http://www.w3.org/2000/svg","clipPath");X.setAttribute("id",ca);ea=Y.ownerDocument.createElementNS("http://www.w3.org/2000/svg","rect");ea.setAttribute("x","0");ea.setAttribute("y",+"0");ea.setAttribute("width",da);ea.setAttribute("height",N);X.appendChild(ea);W=W.childNodes;for(ea=na;ea<aa;ea++)for(S=Z;S<pa;S++){la=Y.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");la.setAttribute("transform","translate("+ea*da+","+S*N+")");la.setAttribute("clip-path","url(#"+ca+")");for(na=0;na<W.length;na++)1===W[na].nodeType&&la.appendChild(W[na].cloneNode(!0));xa.appendChild(la)}qa.appendChild(xa);da=Y.querySelector("defs");null==da&&(da=Y.ownerDocument.createElementNS("http://www.w3.org/2000/svg",+"defs"),Y.insertBefore(da,Y.firstChild));da.appendChild(ra);da.appendChild(X);ba.parentNode.insertBefore(qa,ba.nextSibling);ba.setAttribute("fill","none");ba.style.fill=""}}}}for(var G=0,I="expand-pattern-clip-"+Editor.guid(8)+"-",L=d.querySelectorAll('[fill^="url("]'),P=0;P<L.length;P++){var Q=p(L[P],d);null!=Q&&A(L[P],Q,d)}L=d.querySelectorAll("[style]");for(P=0;P<L.length;P++)Q=L[P].getAttribute("style"),null!=Q&&-1!==Q.indexOf("url(")&&(Q=p(L[P],d),null!=Q&&A(L[P],Q,d))};Editor.addAllowedFontUrl=+function(d){"string"===typeof d&&0<d.length&&(Graph.allowedFontUrls[d]=!0)};Editor.addAllowedFontUrls=function(d){if(Array.isArray(d))for(var p=0;p<d.length;p++)null!=d[p]&&"object"===typeof d[p]&&Editor.addAllowedFontUrl(d[p].fontUrl)};Editor.configureFontCss=function(d){if(null!=d){Editor.prototype.fontCss=d;for(var p=d.split("url("),A=1;A<p.length;A++){var G=p[A].indexOf(")");0<G&&Editor.addAllowedFontUrl(Editor.trimCssUrl(p[A].substring(0,G)))}p=document.getElementsByTagName("script")[0];if(null!=+p&&null!=p.parentNode)for(A=document.createElement("style"),A.setAttribute("type","text/css"),A.appendChild(document.createTextNode(d)),p.parentNode.insertBefore(A,p),d=d.split("url("),A=1;A<d.length;A++){G=d[A].indexOf(")");G=Editor.trimCssUrl(d[A].substring(0,G));var I=document.createElement("link");I.setAttribute("rel","preload");I.setAttribute("href",G);I.setAttribute("as","font");I.setAttribute("crossorigin","");p.parentNode.insertBefore(I,p)}}};Editor.trimCssUrl=function(d){return d.replace(RegExp("^[\\s\"']+",+"g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GOOGLE_FONTS_CSS2="https://fonts.googleapis.com/css2?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(d){d=null!=d?d:Editor.GUID_LENGTH;for(var p=[],A=0;A<d;A++)p.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));return p.join("")};Editor.updateStatusInterval=+1E4;Editor.prototype.appName="draw.io";Editor.prototype.diagramFileTypes=[{description:"diagramXmlDesc",extension:"drawio",mimeType:"text/xml"},{description:"diagramPngDesc",extension:"png",mimeType:"image/png"},{description:"diagramSvgDesc",extension:"svg",mimeType:"image/svg"},{description:"diagramHtmlDesc",extension:"html",mimeType:"text/html"}];Editor.prototype.libraryFileTypes=[{description:"Library (.drawiolib, .xml)",extensions:["drawiolib","xml"]}];Editor.prototype.fileExtensions=[{ext:"html",+title:"filetypeHtml"},{ext:"png",title:"filetypePng"},{ext:"svg",title:"filetypeSvg"}];Editor.prototype.timeout=25E3;Editor.prototype.generateTimeout=9E4;Editor.prototype.editButtonLink=null!=urlParams.edit?decodeURIComponent(urlParams.edit):null;Editor.prototype.crossOriginImages=!0;var k=Editor.prototype.setGraphXml;Editor.prototype.setGraphXml=function(d){d=null!=d&&"mxlibrary"!=d.nodeName?this.extractGraphModel(d):null;if(null!=d){var p=Editor.extractParserError(d,mxResources.get("invalidOrMissingFile"));+if(p)throw EditorUi.debug("Editor.setGraphXml ParserError",[this],"node",[d],"cause",[p]),Error(mxResources.get("notADiagramFile")+" ("+p+")");if("mxGraphModel"==d.nodeName){p=d.getAttribute("style")||"default-style2";if("1"==urlParams.embed||null!=p&&""!=p)p!=this.graph.currentStyle&&(A=null!=this.graph.themes?this.graph.themes[p]:mxUtils.load(STYLE_PATH+"/"+p+".xml").getDocumentElement(),null!=A&&(G=new mxCodec(A.ownerDocument),G.decode(A,this.graph.getStylesheet())));else{var A=null!=this.graph.themes?+this.graph.themes["default-old"]:mxUtils.load(STYLE_PATH+"/default-old.xml").getDocumentElement();if(null!=A){var G=new mxCodec(A.ownerDocument);G.decode(A,this.graph.getStylesheet())}}this.graph.currentStyle=p;this.graph.mathEnabled="1"==urlParams.math||"1"==d.getAttribute("math");this.graph.setAdaptiveColors(d.getAttribute("adaptiveColors"));p=d.getAttribute("backgroundImage");null!=p?this.graph.setBackgroundImage(this.graph.parseBackgroundImage(p)):this.graph.setBackgroundImage(null);this.graph.useCssTransforms=+!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();this.graph.setShadowVisible("1"==d.getAttribute("shadow"),!1);if(p=d.getAttribute("extFonts"))try{for(p=p.split("|").map(function(I){I=I.split("^");return{name:I[0],url:I[1]}}),A=0;A<p.length;A++)this.graph.addExtFont(p[A].name,p[A].url)}catch(I){console.log("ExtFonts format error: "+I.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}k.apply(this,+arguments)}else throw{message:mxResources.get("notADiagramFile")||"Invalid data",toString:function(){return this.message}};};var m=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(d,p){d=null!=d?d:!0;var A=m.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&A.setAttribute("style",this.graph.currentStyle);var G=this.graph.getBackgroundImageObject(this.graph.backgroundImage,p);null!=G&&A.setAttribute("backgroundImage",JSON.stringify(G));+A.setAttribute("math",this.graph.mathEnabled?"1":"0");A.setAttribute("shadow",this.graph.shadowVisible?"1":"0");null!=this.graph.adaptiveColors?A.setAttribute("adaptiveColors",this.graph.adaptiveColors):A.removeAttribute("adaptiveColors");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(G=this.graph.extFonts.map(function(I){return I.name+"^"+I.url}),A.setAttribute("extFonts",G.join("|")));return A};Editor.prototype.isDataSvg=function(d){try{var p=mxUtils.parseXml(d).documentElement.getAttribute("content");+if(null!=p&&(null!=p&&"<"!=p.charAt(0)&&"%"!=p.charAt(0)&&(p=unescape(window.atob?atob(p):Base64.decode(cont,p))),null!=p&&"%"==p.charAt(0)&&(p=decodeURIComponent(p)),null!=p&&0<p.length)){var A=mxUtils.parseXml(p).documentElement;return"mxfile"==A.nodeName||"mxGraphModel"==A.nodeName}}catch(G){}return!1};Editor.prototype.extractGraphModel=function(d,p,A){return Editor.extractGraphModel.apply(this,arguments)};var g=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled=+"1"==urlParams.math;this.graph.setAdaptiveColors(null);this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();g.apply(this,arguments)};var q=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){q.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};+Editor.safeMathJaxFilterUrl=function(d,p){var A=(p.replace(/[\t\n\r]/g,"").replace(/^[\u0000-\u0020]+/,"").match(/^([a-z][a-z0-9+.\-]*):/i)||[null,""])[1].toLowerCase(),G=d.allow.URLs;return"all"===G||"safe"===G&&(d.options.safeProtocols[A]||!A)?p:null};Editor.safeMathJaxFilterUrl.drawioPatched=!0;Editor.patchMathJaxUrlFilter=function(d){d=null!=d?d:"undefined"!==typeof MathJax?MathJax:null;if(null!=d){var p=null!=d._&&null!=d._.ui&&null!=d._.ui.safe&&null!=d._.ui.safe.SafeMethods?d._.ui.safe.SafeMethods.SafeMethods:+null;null==p||null==p.filterURL||p.filterURL.drawioPatched||(p.filterURL=Editor.safeMathJaxFilterUrl);d=null!=d.startup?d.startup.document:null;null==d||null==d.safe||null==d.safe.filterMethods||null==d.safe.filterMethods.filterURL||d.safe.filterMethods.filterURL.drawioPatched||(d.safe.filterMethods.filterURL=Editor.safeMathJaxFilterUrl)}};Editor.safeMathJaxDataMacro=function(d,p,A,G){var I=d.setAttribute;d.setAttribute=function(L,P,Q){if("string"!==typeof P||"data-"!==P.substring(0,5)||P.match(Editor.safeMathJaxDataPattern))return I.apply(this,+arguments)};try{return p.apply(this,[A,G])}finally{d.setAttribute=I}};Editor.safeMathJaxDataPattern=/^data-mjx-/;Editor.patchMathJaxDataMacro=function(d){d=null!=d?d:"undefined"!==typeof MathJax?MathJax:null;d=null!=d&&null!=d._&&null!=d._.input?d._.input.tex:null;if(null!=d&&null!=d.MapHandler&&null!=d.NodeUtil){var p=d.MapHandler.MapHandler.getMap("html_macros");p=null!=p&&null!=p.lookup?p.lookup("data"):null;if(null!=p&&null!=p._func&&!p._func.drawioPatched){var A=d.NodeUtil["default"],G=p._func;+d=function(I,L){return Editor.safeMathJaxDataMacro(A,G,I,L)};d.drawioPatched=!0;p._func=d}}};Editor.patchMathJaxSafeFilters=function(d){Editor.patchMathJaxUrlFilter(d);Editor.patchMathJaxDataMacro(d)};Editor.initMath=function(d,p){if("undefined"===typeof window.MathJax){var A=function(){G=null;Editor.mathJaxRendering=!1;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};d=null!=d?d:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var G=+null;Editor.mathJaxRendering=!1;Editor.doMathJaxRender=function(P){Editor.patchMathJaxSafeFilters();null!=MathJax.startup&&null!=MathJax.startup.output&&null!=MathJax.startup.output.options&&null!=MathJax.startup.output.options.linebreaks&&(MathJax.startup.output.options.linebreaks.inline=!1);try{null==G?(MathJax.typesetClear([P]),MathJax.typeset([P]),A()):G!=P&&Editor.mathJaxQueue.push(P)}catch(Q){MathJax.typesetClear([P]),null!=Q.retry?(G=P,Editor.mathJaxRendering=!0,Q.retry.then(function(){MathJax.typesetPromise([P]).then(A)["catch"](function(ba){console.log("Error in MathJax.typesetPromise: "+ba.toString());A()})})["catch"](function(ba){console.log("Error in MathJax.retry: "+ba.toString());A()})):null!=window.console&&console.log("Error in MathJax.typeset: "+Q.toString())}};window.MathJax=null!=p?p:{options:{skipHtmlTags:{"[+]":["text"]},ignoreHtmlClass:"geDisableMathJax"},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe","[tex]/html"],paths:{fonts:DRAW_MATH_URL+"/fonts"}},output:{font:"mathjax-tex"},startup:{pageReady:function(){for(var P=0;P<Editor.mathJaxQueue.length;P++)Editor.doMathJaxRender(Editor.mathJaxQueue[P])}}};Editor.MathJaxRender=function(P){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(P):Editor.mathJaxQueue.push(P)};Editor.onMathJaxDone=function(){};var I=Editor.prototype.init;Editor.prototype.init=function(){I.apply(this,arguments);var P=mxUtils.bind(this,function(W,Y){null!=this.graph.container&&this.graph.mathEnabled&&(Editor.mathOutputSize&&(this.graph.container.style.visibility="hidden"),Editor.MathJaxRender(this.graph.container))});this.graph.model.addListener(mxEvent.CHANGE,P);this.graph.addListener(mxEvent.REFRESH,P);var Q=this.graph,ba=Editor.onMathJaxDone;Editor.onMathJaxDone=function(){null!=ba&&ba.apply(this,arguments);Editor.mathOutputSize&&null!=Q&&Q.mathEnabled&&(Q.refreshMathBounds(),null!=Q.container&&(Q.container.style.visibility=""))}};p=document.getElementsByTagName("script");if(null!=p&&0<p.length){var L=document.createElement("script");L.setAttribute("type",@@ -13864,7 +13950,7 @@ defVal:20}];mxCellRenderer.defaultShapes.umlLifeline.prototype.customProperties=font:"#ffffff"},{fill:"#008a00",stroke:"#005700",font:"#ffffff"},{fill:"#1ba1e2",stroke:"#006EAF",font:"#ffffff"},{fill:"#0050ef",stroke:"#001DBC",font:"#ffffff"},{fill:"#6a00ff",stroke:"#3700CC",font:"#ffffff"},{fill:"#d80073",stroke:"#A50040",font:"#ffffff"},{fill:"#a20025",stroke:"#6F0000",font:"#ffffff"}],[{fill:"#e51400",stroke:"#B20000",font:"#ffffff"},{fill:"#fa6800",stroke:"#C73500",font:"#000000"},{fill:"#f0a30a",stroke:"#BD7000",font:"#000000"},{fill:"#e3c800",stroke:"#B09500",font:"#000000"},{fill:"#6d8764",stroke:"#3A5431",font:"#ffffff"},{fill:"#647687",stroke:"#314354",font:"#ffffff"},{fill:"#76608a",stroke:"#432D57",font:"#ffffff"},{fill:"#a0522d",stroke:"#6D1F00",font:"#ffffff"}],[{fill:"",stroke:""},{fill:mxConstants.NONE,stroke:""},{fill:"#fad7ac",stroke:"#b46504"},{fill:"#fad9d5",stroke:"#ae4132"},{fill:"#b0e3e6",stroke:"#0e8088"},{fill:"#b1ddf0",stroke:"#10739e"},{fill:"#d0cee2",stroke:"#56517e"},{fill:"#bac8d3",stroke:"#23445d"}],[{fill:"",stroke:""},{fill:"#f5f5f5",stroke:"#666666",gradient:"#b3b3b3"},{fill:"#dae8fc",stroke:"#6c8ebf",gradient:"#7ea6e0"},{fill:"#d5e8d4",stroke:"#82b366",gradient:"#97d077"},{fill:"#ffcd28",stroke:"#d79b00",gradient:"#ffa500"},{fill:"#fff2cc",stroke:"#d6b656",gradient:"#ffd966"},{fill:"#f8cecc",stroke:"#b85450",gradient:"#ea6b66"},{fill:"#e6d0de",stroke:"#996185",gradient:"#d5739d"}],[{fill:"",stroke:""},{fill:"#eeeeee",stroke:"#36393d"},{fill:"#f9f7ed",stroke:"#36393d"},{fill:"#ffcc99",stroke:"#36393d"},{fill:"#cce5ff",stroke:"#36393d"},{fill:"#ffff88",-stroke:"#36393d"},{fill:"#cdeb8b",stroke:"#36393d"},{fill:"#ffcccc",stroke:"#36393d"}]];StyleFormatPanel.prototype.customColorSchemes=null;var g=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init=function(){var d=this.editorUi.getSelectionState();null!=this.defaultColorSchemes&&0<this.defaultColorSchemes.length&&0<d.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));g.apply(this,arguments);null!=d.customProperties&&this.container.appendChild(this.addProperties(this.createPanel(),+stroke:"#36393d"},{fill:"#cdeb8b",stroke:"#36393d"},{fill:"#ffcccc",stroke:"#36393d"}]];StyleFormatPanel.prototype.customColorSchemes=null;var f=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init=function(){var d=this.editorUi.getSelectionState();null!=this.defaultColorSchemes&&0<this.defaultColorSchemes.length&&0<d.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));f.apply(this,arguments);null!=d.customProperties&&this.container.appendChild(this.addProperties(this.createPanel(),d.customProperties,d))};var l=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(d){var p=this.editorUi.getSelectionState();1==p.cells.length?this.addActions(d,["copyStyle","pasteStyle"]):1<=p.cells.length&&this.addActions(d,["pasteStyle","pasteData"]);l.apply(this,arguments);return d};EditorUi.prototype.propertiesCollapsed=!0;BaseFormatPanel.prototype.addProperties=function(d,p,A,G){function I(Ba,va,pa,ia,ja){if(null!=pa.valueChanged)pa.valueChanged(va,ja,A,X);else{ca.getModel().beginUpdate();try{ja=[];var oa=[];if(null!=pa.index){for(var Aa=[],ha=pa.parentRow.nextSibling;ha&&ha.getAttribute("data-pName")==Ba;)Aa.push(ha.getAttribute("data-pValue")),ha=ha.nextSibling;pa.index<Aa.length?null!=ia?Aa.splice(ia,1):Aa[pa.index]=va:Aa.push(va);null!=pa.size&&Aa.length>pa.size&&(Aa=Aa.slice(0,pa.size));va=Aa.join(",");null!=pa.countProperty&&(ca.setCellStyles(pa.countProperty,Aa.length,ca.getSelectionCells()),ja.push(pa.countProperty),oa.push(Aa.length))}ca.setCellStyles(Ba,va,ca.getSelectionCells());ja.push(Ba);oa.push(va);if(null!=pa.dependentProps)for(Ba=0;Ba<pa.dependentProps.length;Ba++){var ma=pa.dependentPropsDefVal[Ba],ka=pa.dependentPropsVals[Ba];if(ka.length>va)ka=ka.slice(0,va);else for(var ta=ka.length;ta<va;ta++)ka.push(ma);ka=ka.join(",");ca.setCellStyles(pa.dependentProps[Ba],ka,ca.getSelectionCells());ja.push(pa.dependentProps[Ba]);oa.push(ka)}if("function"==typeof pa.onChange)pa.onChange(ca,va);X.editorUi.fireEvent(new mxEventObject("styleChanged","keys",@@ -13898,88 +13984,89 @@ la.cssText+" 50%, "+la.light+" 50.3%)"}null==N.stroke||N.stroke==mxConstants.NON"#ffffff"),la=mxUtils.getValue(S,mxConstants.STYLE_STROKECOLOR,"#000000"),aa.style.backgroundColor=ea,aa.style.border="1px solid "+la;aa.style.borderRadius="0";G.appendChild(aa);null!=N&&null!=N.gradient&&(ea=aa.cloneNode(!1),ea.style.backgroundImage="linear-gradient(light-dark(transparent, "+mxUtils.getLightDarkColor(N.fill).light+") 0px, light-dark(transparent, "+mxUtils.getLightDarkColor(N.gradient).light+") 100%)",ea.style.clipPath="polygon(0 100%, 100% 0, 100% 100%)",ea.style.backgroundColor="transparent",G.appendChild(ea),ea.style.marginLeft="-42px",mxEvent.addListener(ea,"click",function(){aa.click()}))});G.innerText="";if(null!=ca)for(var da=0;da<ca.length;da++)0<da&&0==mxUtils.mod(da,4)&&mxUtils.br(G),Z(ca[da])});null==this.format.currentScheme?ba(Math.min(L.length-1,Editor.isDarkMode()?1:"1"==urlParams.sketch?5:0)):ba(this.format.currentScheme);P=10>=this.defaultColorSchemes.length?43:23;var Y=document.createElement("div");Y.className="geButton";Y.style.cssText="position:absolute;left:0px;bottom:"+P+"px;width:20px;background-image:url("+Editor.chevronLeftImage+");";mxEvent.addListener(Y,"click",mxUtils.bind(this,function(){ba(mxUtils.mod(this.format.currentScheme-1,this.defaultColorSchemes.length))}));var X=document.createElement("div");X.className="geButton";X.style.cssText="position:absolute;left:186px;bottom:"+P+"px;width:20px;background-image:url("+Editor.chevronRightImage+");";1<this.defaultColorSchemes.length&&(d.appendChild(Y),d.appendChild(X));mxEvent.addListener(X,"click",mxUtils.bind(this,-function(){ba(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));W(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&d.appendChild(I)}return d}}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=Object.create(null);Graph.isGoogleFontUrl=function(d){return d.substring(0,-Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS||d.substring(0,Editor.GOOGLE_FONTS_CSS2.length)==Editor.GOOGLE_FONTS_CSS2};Graph.isCssFontUrl=function(d){return Graph.isGoogleFontUrl(d)};Graph.rewriteGoogleFontUrl=function(d){null!=d&&d.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS&&(d=Editor.GOOGLE_FONTS_CSS2+d.substring(Editor.GOOGLE_FONTS.length)+":wght@400;500");return d};Graph.escapeCssString=function(d){return null!=d?String(d).replace(/[\x00-\x1f\x7f"\\]/g,function(p){return"\\"+-p.charCodeAt(0).toString(16)+" "}):d};Graph.createFontElement=function(d,p){var A=Graph.fontMapping[p];null==A&&Graph.isCssFontUrl(p)?(d=document.createElement("link"),d.setAttribute("rel","stylesheet"),d.setAttribute("type","text/css"),d.setAttribute("charset","UTF-8"),d.setAttribute("href",Graph.rewriteGoogleFontUrl(p))):(null==A&&(A='@font-face {\nfont-family: "'+Graph.escapeCssString(d)+'";\nsrc: url("'+Graph.escapeCssString(p)+'");\n}'),d=document.createElement("style"),mxUtils.write(d,A));return d};-Graph.addRecentCustomFont=function(d,p){};Graph.addFont=function(d,p,A,G){if(null!=d&&0<d.length&&null!=p&&0<p.length){G=null!=G?G:Graph.customFontElements;var I=d.toLowerCase();if("helvetica"!=I&&"arial"!=d&&"sans-serif"!=I){var L=G[I];null!=L&&L.url!=p&&(null!=L.elt.parentNode&&L.elt.parentNode.removeChild(L.elt),L=null);null==L?(L=p,"http:"==p.substring(0,5)&&(L=PROXY_URL+"?url="+encodeURIComponent(p)),L={name:d,url:p,elt:Graph.createFontElement(d,L)},G[I]=L,p=G==Graph.customFontElements?document.getElementsByTagName("head")[0]:-null,null!=A&&("link"==L.elt.nodeName.toLowerCase()?(L.elt.onload=A,L.elt.onerror=A):A()),null!=p&&p.appendChild(L.elt)):null!=A&&A()}else null!=A&&A()}else null!=A&&A();return d};Graph.getFontUrl=function(d,p){d=Graph.customFontElements[d.toLowerCase()];null!=d&&(p=d.url);return p};Graph.processFontAttributes=function(d){d=d.getElementsByTagName("*");for(var p=0;p<d.length;p++){var A=d[p].getAttribute("data-font-src");if(null!=A){var G="FONT"==d[p].nodeName.toUpperCase()?d[p].getAttribute("face"):-d[p].style.fontFamily;null!=G&&Graph.addFont(G,A)}}};Graph.processFontStyle=function(d){if(null!=d){var p=mxUtils.getValue(d,"fontSource",null);if(null!=p){var A=mxUtils.getValue(d,mxConstants.STYLE_FONTFAMILY,null);if(null!=A)try{Graph.addFont(A,decodeURIComponent(p))}catch(G){}}}return d};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible="0"!=urlParams.pv;-mxConnectionHandler.prototype.createTarget="1"==urlParams.sketch;Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var n=Graph.prototype.init;Graph.prototype.init=function(){function d(I){p=I}n.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var p=null;mxEvent.addListener(this.container,-"mouseenter",d);mxEvent.addListener(this.container,"mousemove",d);mxEvent.addListener(this.container,"mouseleave",function(I){p=null});this.isMouseInsertPoint=function(){return null!=p};var A=this.getInsertPoint;this.getInsertPoint=function(I){return null==p||I?A.apply(this,arguments):this.getPointForEvent(p)};var G=this.layoutManager.getLayout;this.layoutManager.getLayout=function(I){var L=this.graph.getCellStyle(I);if(null!=L&&"rack"==L.childLayout){var P=new mxStackLayout(this.graph,!1);P.gridSize=-null!=L.rackUnitSize?parseFloat(L.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;P.marginLeft=L.marginLeft||0;P.marginRight=L.marginRight||0;P.marginTop=L.marginTop||0;P.marginBottom=L.marginBottom||0;P.allowGaps=L.allowGaps||0;P.horizontal="1"==mxUtils.getValue(L,"horizontalRack","0");P.resizeParent=!1;P.fill=!0;return P}return G.apply(this,arguments)};this.updateGlobalUrlVariables()};var r=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=-function(d,p){return Graph.processFontStyle(r.apply(this,arguments))};var t=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(d,p,A,G,I,L,P,Q,ba,W,Y,X){t.apply(this,arguments);Graph.processFontAttributes(X)};var v=mxText.prototype.redraw;mxText.prototype.redraw=function(){v.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(d,p,A,G){function I(){for(var da=Q.getSelectionCells(),-N=[],aa=0;aa<da.length;aa++)Q.isCellVisible(da[aa])&&N.push(da[aa]);Q.setSelectionCells(N)}function L(da){Q.setHiddenTags(da?[]:ba.slice());I();Q.refresh()}function P(da,N){Y.innerText="";if(0<da.length){var aa=document.createElement("table");aa.setAttribute("cellpadding","2");aa.style.boxSizing="border-box";aa.style.tableLayout="fixed";aa.style.width="100%";var ea=document.createElement("tbody");if(null!=da&&0<da.length)for(var la=0;la<da.length;la++)(function(ra){function qa(){var va=Q.getCellsForTags([ra],-null,null,!0);Q.isEnabled()?Q.setSelectionCells(va):Q.highlightCells(va,null,null,70)}var na=0>mxUtils.indexOf(Q.hiddenTags,ra),xa=document.createElement("tr"),wa=document.createElement("td");wa.style.align="center";wa.style.width="16px";var za=document.createElement("img");za.setAttribute("src",na?Editor.visibleImage:Editor.hiddenImage);za.setAttribute("title",mxResources.get(na?"hideIt":"show",[ra])+"\n"+mxResources.get("shiftClickShowOnly",[ra]));mxUtils.setOpacity(za,na?75:25);za.className="geAdaptiveAsset";-za.style.verticalAlign="middle";za.style.cursor="pointer";za.style.width="16px";if(p||Editor.isDarkMode())za.style.filter="invert(100%)";wa.appendChild(za);mxEvent.addListener(za,"click",function(va){if(mxEvent.isShiftDown(va)){for(var pa=[],ia=0;ia<ba.length;ia++)ba[ia]!==ra&&pa.push(ba[ia]);var ja=0<pa.length;for(ia=0;ia<pa.length;ia++)if(0>mxUtils.indexOf(Q.hiddenTags,pa[ia])){ja=!1;break}ja&&0>mxUtils.indexOf(Q.hiddenTags,ra)?Q.setHiddenTags([]):Q.setHiddenTags(pa)}else Q.toggleHiddenTag(ra);-I();Q.refresh();mxEvent.consume(va)});xa.appendChild(wa);wa=document.createElement("td");wa.style.align="center";wa.style.width="16px";za=document.createElement("img");za.setAttribute("src",Editor.selectImage);za.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(za,na?75:25);za.className="geAdaptiveAsset";za.style.verticalAlign="middle";za.style.cursor="pointer";za.style.width="16px";if(p||Editor.isDarkMode())za.style.filter="invert(100%)";mxEvent.addListener(za,"click",function(va){L(!0);-qa();mxEvent.consume(va)});wa.appendChild(za);xa.appendChild(wa);wa=document.createElement("td");wa.style.overflow="hidden";wa.style.whiteSpace="nowrap";wa.style.textOverflow="ellipsis";wa.style.verticalAlign="middle";wa.style.cursor="pointer";wa.setAttribute("title",ra);a=document.createElement("a");mxUtils.write(a,ra);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,na?100:40);wa.appendChild(a);mxEvent.addListener(wa,"click",function(va){if(mxEvent.isShiftDown(va))L(!0),-qa();else if(na&&0<Q.hiddenTags.length)L(!0);else{var pa=ba.slice(),ia=mxUtils.indexOf(pa,ra);pa.splice(ia,1);Q.setHiddenTags(pa);I();Q.refresh()}mxEvent.consume(va)});xa.appendChild(wa);if(Q.isEnabled()){wa=document.createElement("td");wa.style.verticalAlign="middle";wa.style.textAlign="center";wa.style.width="18px";if(null==N){wa.style.align="center";wa.style.width="16px";za=document.createElement("img");za.setAttribute("src",Editor.trashImage);za.setAttribute("title",mxResources.get("removeIt",-[ra]));mxUtils.setOpacity(za,na?75:25);za.className="geAdaptiveAsset";za.style.verticalAlign="middle";za.style.cursor="pointer";za.style.width="16px";if(p||Editor.isDarkMode())za.style.filter="invert(100%)";mxEvent.addListener(za,"click",function(va){var pa=mxUtils.indexOf(ba,ra);0<=pa&&ba.splice(pa,1);Q.removeTagsForCells(Q.model.getDescendants(Q.model.getRoot()),[ra]);Q.refresh();mxEvent.consume(va)});wa.appendChild(za)}else{var Ba=document.createElement("input");Ba.setAttribute("type","checkbox");-Ba.style.margin="0px";Ba.defaultChecked=null!=N&&0<=mxUtils.indexOf(N,ra);Ba.checked=Ba.defaultChecked;Ba.style.background="transparent";Ba.setAttribute("title",mxResources.get(Ba.defaultChecked?"removeIt":"add",[ra]));mxEvent.addListener(Ba,"change",function(va){Ba.checked?Q.addTagsForCells(Q.getSelectionCells(),[ra]):Q.removeTagsForCells(Q.getSelectionCells(),[ra]);mxEvent.consume(va)});wa.appendChild(Ba)}xa.appendChild(wa)}ea.appendChild(xa)})(da[la]);aa.appendChild(ea);Y.appendChild(aa)}}var Q=-this,ba=Q.hiddenTags.slice(),W=document.createElement("div");W.style.userSelect="none";W.style.overflow="hidden";W.style.padding="10px";W.style.height="100%";var Y=document.createElement("div");Y.style.position="absolute";Y.style.boxSizing="border-box";Y.style.userSelect="none";Y.style.overflow="auto";Y.style.padding="3px";Y.style.left="0px";Y.style.right="0px";Y.style.top="0px";Y.style.bottom="0px";W.appendChild(Y);Q.addListener(mxEvent.ROOT,function(){ba=Q.hiddenTags.slice()});var X=mxUtils.bind(this,-function(da,N){if(d()){da=Q.getAllTags();for(N=0;N<da.length;N++)0>mxUtils.indexOf(ba,da[N])&&ba.push(da[N]);ba.sort();Q.isSelectionEmpty()?P(ba):P(ba,Q.getCommonTagsForCells(Q.getSelectionCells()))}});Q.selectionModel.addListener(mxEvent.CHANGE,X);Q.model.addListener(mxEvent.CHANGE,X);Q.addListener(mxEvent.REFRESH,X);var ca=document.createElement("div");ca.className="geToolbarContainer geDialogToolbar";ca.style.position="absolute";ca.style.display="flex";ca.style.bottom="0px";ca.style.left="0px";-ca.style.right="0px";ca.style.height="32px";ca.style.overflow="hidden";ca.style.padding="3px 4px 4px 4px";ca.style.borderWidth="1px 0px 0px 0px";ca.style.borderStyle="solid";ca.style.whiteSpace="nowrap";if(Q.isEnabled()){Y.style.bottom="32px";var S=document.createElement("a");S.className="geButton";var Z=S.cloneNode(!1);Z.style.backgroundImage="url("+Editor.visibleImage+")";Z.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(Z,"click",function(da){Q.setHiddenTags([]);mxEvent.isShiftDown(da)||-(ba=Q.hiddenTags.slice());I();Q.refresh();mxEvent.consume(da)});ca.appendChild(Z);null!=A&&(S=S.cloneNode(!1),S.style.backgroundImage="url("+Editor.plusImage+")",S.setAttribute("title",mxResources.get("add")),mxEvent.addListener(S,"click",function(da){A(ba,function(N){ba=N;X()});mxEvent.consume(da)}),ca.appendChild(S));W.appendChild(ca)}null!=G&&ca.appendChild(G);return{div:W,refresh:X}};Graph.prototype.getCustomFonts=function(d){d=null!=d?d:Graph.customFontElements;var p=this.extFonts;p=null!=p?-p.slice():[];for(var A in d){var G=d[A];p.push({name:G.name,url:G.url})}return p};Graph.prototype.getExtFontCss=function(d){d=this.getCustomFonts(d);for(var p="",A="",G=0;G<d.length;G++){var I=d[G].name,L=d[G].url;Graph.isCssFontUrl(L)?p+='@import url("'+Graph.escapeCssString(Graph.rewriteGoogleFontUrl(L))+'");\n':A+='@font-face {\nfont-family: "'+Graph.escapeCssString(I)+'";\nsrc: url("'+Graph.escapeCssString(L)+'");\n}\n'}return p+A};Graph.prototype.setFont=function(d,p){Graph.addFont(d,p);var A=-Editor.guid();document.execCommand("fontname",!1,A);for(var G=this.cellEditor.textarea.getElementsByTagName("font"),I=!1,L=0;L<G.length;L++)G[L].getAttribute("face")==A&&(I=!0,G[L].setAttribute("face",d),null!=p?G[L].setAttribute("data-font-src",p):G[L].removeAttribute("data-font-src"));I||document.execCommand("fontname",!1,d)};var B=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return B.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=-function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var d=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=d)for(var p in d)this.globalVars[p]=d[p]}catch(A){null!=window.console&&console.log("Error in vars URL parameter: "+A)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var E=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=-function(d){var p=E.apply(this,arguments);null==p&&null!=this.globalVars&&(p=this.globalVars[d]);return p};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var d=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(d.ownerDocument)).decode(d)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var K=Graph.prototype.getSvg;Graph.prototype.getSvg=function(d,p,A,G,I,L,P,Q,ba,W,Y,X,ca,S,Z,da,N){if(Editor.mathOutputSize&&-this.mathEnabled&&null!=this.container&&document.body.contains(this.container)&&"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset){if(0==this.container.getElementsByTagName("mjx-container").length)try{MathJax.typeset([this.container])}catch(qa){}this.refreshMathBounds()}var aa=K.apply(this,arguments);if(null!=X){var ea=aa.getAttribute("style");null==ea&&(ea="");X="auto"==X||"none"==this.getAdaptiveColors()?"none"==this.getAdaptiveColors()?"light":"light dark":X;aa.setAttribute("style",-ea+(" color-scheme: "+X+";"))}var la=Y?this.getExtFontCss():"";if(0<la.length){var ra=aa.ownerDocument;ea=null!=ra.createElementNS?ra.createElementNS(mxConstants.NS_SVG,"style"):ra.createElement("style");null!=ra.setAttributeNS?ea.setAttributeNS("type","text/css"):ea.setAttribute("type","text/css");ea.appendChild(ra.createTextNode(la));aa.getElementsByTagName("defs")[0].appendChild(ea)}Editor.replaceSvgDataUris&&null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&EditorUi.embedSvgImages(aa);-this.mathEnabled&&(document.body.appendChild(aa),Editor.MathJaxRender(aa),aa.parentNode.removeChild(aa),ea=aa.ownerDocument.getElementById("MJX-SVG-styles"),null!=ea&&aa.getElementsByTagName("defs")[0].appendChild(ea.cloneNode(!0)));return aa};var C=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(d){C.apply(this,arguments);null!=d.secondLabel&&(d.secondLabel.destroy(),d.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(d){return[d.shape,d.text,d.secondLabel,-d.control]};var R=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){R.apply(this,arguments);this.enumerationState=0};var M=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(d){null!=d.shape&&this.redrawEnumerationState(d);return M.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(d){d=mxUtils.safeDecodeURIComponent(mxUtils.getValue(d.style,"enumerateValue",""));""==d&&(d=++this.enumerationState);-return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(d)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(d){var p="1"==mxUtils.getValue(d.style,"enumerate",0);p&&null==d.secondLabel?(d.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),d.secondLabel.size=12,d.secondLabel.state=d,d.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(d,d.secondLabel)):-p||null==d.secondLabel||(d.secondLabel.destroy(),d.secondLabel=null);p=d.secondLabel;if(null!=p){var A=d.view.scale,G=this.createEnumerationValue(d);d=this.graph.model.isVertex(d.cell)?new mxRectangle(d.x+d.width-4*A,d.y+4*A,0,0):mxRectangle.fromPoint(d.view.getPoint(d));p.bounds.equals(d)&&p.value==G&&p.scale==A||(p.bounds=d,p.value=G,p.scale=A,p.redraw())}};var O=Graph.prototype.refresh;Graph.prototype.refresh=function(){this.refreshBackgroundImage();O.apply(this,arguments)};Graph.prototype.refreshBackgroundImage=-function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundImage())};var U=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){U.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=function(d,p){"data:action/json,"==d.substring(0,17)&&(d=JSON.parse(d.substring(17)),null!=d.actions&&this.executeCustomActions(Graph.flattenAnimationActions(d.actions),-null,p))};Graph.flattenAnimationActions=function(d){if(!Array.isArray(d))return d;for(var p=[],A=0;A<d.length;A++){var G=d[A];if(null!=G&&null!=G.animation&&Array.isArray(G.animation.steps)){G=Graph.flattenAnimationActions(G.animation.steps);for(var I=0;I<G.length;I++)p.push(G[I])}else p.push(G)}return p};Graph.smoothScrollContainer=function(d,p,A,G,I,L){L=L||600;if(p!==G||A!==I){d.scrollLeft=p;d.scrollTop=A;var P="undefined"!=typeof performance&&null!=performance.now?performance.now():Date.now(),-Q=G-p,ba=I-A,W=function(Y){Y=Math.min(1,(Y-P)/L);var X=1-Math.pow(1-Y,3);d.scrollLeft=p+Q*X;d.scrollTop=A+ba*X;1>Y&&window.requestAnimationFrame(W)};window.requestAnimationFrame(W)}};Graph.applyTransformTransition=function(d,p){p=p||600;var A=d.view.getDrawPane(),G=null!=A?A.parentNode:null;if(null!=G){var I=G.style.transition;G.style.transition="transform "+p+"ms cubic-bezier(0.16, 1, 0.3, 1)";d.armTransformTransition=!0;var L=function(){G.style.transition=I||"";d.armTransformTransition=!1;G.removeEventListener("transitionend",-L)};G.addEventListener("transitionend",L);window.setTimeout(L,p+100)}};Graph.prototype.fitBoundsCssTransform=function(d,p){var A=null!=p?p:10;p=this.view.graphBounds;var G=Math.max(p.x,d.x),I=Math.max(p.y,d.y),L=Math.max(1,Math.min(p.x+p.width,d.x+d.width)-G),P=Math.max(1,Math.min(p.y+p.height,d.y+d.height)-I),Q=this.container.clientWidth-A,ba=this.container.clientHeight-A;d=Math.floor(20*Math.min(Q/L,ba/P))/20;this.view.scaleAndTranslate(d,-p.x,-p.y);G=(G-p.x)*d-Math.max((Q-L*d)/2+A/2,0);A=(I-p.y)*-d-Math.max((ba-P*d)/2+A/2,0);L=this.getBorder();I=p.width*d+2*L-this.container.clientWidth;p=p.height*d+2*L-this.container.clientHeight;this.container.scrollLeft=0>I?0:Math.max(0,Math.min(G,I));this.container.scrollTop=0>p?0:Math.max(0,Math.min(A,p))};Graph.prototype.isGraphTornDown=function(){return!0===this.destroyed||null==this.container};Graph.prototype.smoothFitWindow=function(d,p,A){if(this.isGraphTornDown())null!=A&&A();else{var G=this.container,I=G.scrollLeft,L=G.scrollTop;this.useCssTransforms?-(Graph.applyTransformTransition(this,600),this.fitBoundsCssTransform(d,p)):this.fitWindow(d,p);Graph.smoothScrollContainer(G,I,L,G.scrollLeft,G.scrollTop,600);null!=A&&window.setTimeout(A,600)}};Graph.prototype.scrollCellToVisibleCssTransform=function(d,p){var A=this.view.getState(d);if(null!=A){var G=this.view.graphBounds,I=this.view.scale;this.view.translate.x===-G.x&&this.view.translate.y===-G.y||this.view.scaleAndTranslate(I,-G.x,-G.y);d=this.container.clientWidth;var L=this.container.clientHeight,-P=this.getBorder(),Q=G.width*I+2*P-d;P=G.height*I+2*P-L;if(null!=p){var ba=(A.x-G.x)*I,W=(A.y-G.y)*I,Y=(A.x+A.width-G.x)*I;G=(A.y+A.height-G.y)*I;var X=this.container.scrollLeft;A=this.container.scrollTop;ba-p<X?X=ba-p:Y+p>X+d&&(X=Y+p-d);W-p<A?A=W-p:G+p>A+L&&(A=G+p-L)}else X=(A.x+A.width/2-G.x)*I-d/2,A=(A.y+A.height/2-G.y)*I-L/2;this.container.scrollLeft=0>Q?0:Math.max(0,Math.min(X,Q));this.container.scrollTop=0>P?0:Math.max(0,Math.min(A,P))}};Graph.prototype.scrollCellToVisibleBorder=function(d,-p){null==p?this.scrollCellToVisible(d):(d=this.view.getState(d),null!=d&&this.scrollRectToVisible(new mxRectangle(-this.view.translate.x+d.x-p,-this.view.translate.y+d.y-p,d.width+2*p,d.height+2*p)))};Graph.prototype.smoothScrollCellToVisible=function(d,p,A){if(this.isGraphTornDown())null!=A&&A();else{var G=this.container,I=G.scrollLeft,L=G.scrollTop;this.useCssTransforms?this.scrollCellToVisibleCssTransform(d,p):this.scrollCellToVisibleBorder(d,p);Graph.smoothScrollContainer(G,I,L,G.scrollLeft,G.scrollTop,-600);null!=A&&window.setTimeout(A,600)}};Graph.prototype.toggleCellsTransient=function(d){d=this.getNodesForCells(d);for(var p=0;p<d.length;p++){var A=d[p].style.opacity;A=""===A||null===A||0<parseFloat(A);d[p].style.opacity=A?0:1}};Graph.prototype.setCellStylesTransient=function(d,p,A){for(var G=0;G<A.length;G++){var I=this.view.getState(A[G]);null!=I&&null!=I.style&&(null==p?delete I.style[d]:I.style[d]=p,null!=I.shape&&(I.shape.apply(I),I.shape.redraw()),null!=I.text&&(I.text.apply(I),I.text.redraw()))}};-Graph.prototype.toggleCellStylesTransient=function(d,p,A){null==p&&(p="0");for(var G=0;G<A.length;G++){var I=this.view.getState(A[G]);if(null!=I&&null!=I.style){var L=mxUtils.getValue(I.style,d,p)?"0":"1";I.style[d]=L;null!=I.shape&&(I.shape.apply(I),I.shape.redraw());null!=I.text&&(I.text.apply(I),I.text.redraw())}}};Graph.prototype.executeCustomActions=function(d,p,A){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 G=!1,I=0,L=0,P=mxUtils.bind(this,function(){G||(G=!0,this.model.beginUpdate())}),Q=mxUtils.bind(this,function(){G&&(G=!1,this.model.endUpdate())}),ba=null==A,W=function(S){return null!=S.transient?S.transient:ba},Y=mxUtils.bind(this,function(){0<I&&I--;0==I&&ca()}),X=mxUtils.bind(this,function(){if(this.isGraphTornDown())this.stoppingCustomActions=-this.executingCustomActions=!1,null!=p&&p();else if(L<d.length){do{var S=this.stoppingCustomActions,Z=d[L++],da=[];if(null!=Z.open)if(Q(),this.isCustomLink(Z.open)){if(!this.customLinkClicked(Z.open,A)){this.stoppingCustomActions=this.executingCustomActions=!1;null!=p&&p();return}}else this.openLink(Z.open);null==Z.wait||S||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;Y()}),I++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,-""!=Z.wait?parseInt(Z.wait):1E3),Q());null!=Z.opacity&&null!=Z.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(Z.opacity,!0)),Z.opacity.value);null!=Z.fadeIn&&(I++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(Z.fadeIn,!0)),0,1,Y,S?0:Z.fadeIn.delay));null!=Z.fadeOut&&(I++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(Z.fadeOut,!0)),1,0,Y,S?0:Z.fadeOut.delay));if(null!=Z.fadeTo&&null!=Z.fadeTo.value){I++;var N=this.getNodesForCells(this.getCellsForAction(Z.fadeTo,-!0)),aa=S?0:null!=Z.fadeTo.delay?Z.fadeTo.delay:1E3;Graph.setTransitionForNodes(N,"all "+aa+"ms ease-in-out");Graph.setOpacityForNodes(N,Z.fadeTo.value);window.setTimeout(function(){Graph.setTransitionForNodes(N,null);Y()},aa)}null!=Z.flow&&(aa=this.getCellsForAction(Z.flow,!0),Editor.toggleFlowAnimation(this,aa,!1===Z.flow.start?"stop":!0===Z.flow.start?"start":"toggle"));null!=Z.wipeIn&&(da=da.concat(this.createWipeAnimations(this.getCellsForAction(Z.wipeIn,!0),!0)));null!=Z.wipeOut&&(da=da.concat(this.createWipeAnimations(this.getCellsForAction(Z.wipeOut,-!0),!1)));null!=Z.popIn&&(da=da.concat(this.createPopAnimations(this.getCellsForAction(Z.popIn,!0),!0)));null!=Z.popOut&&(da=da.concat(this.createPopAnimations(this.getCellsForAction(Z.popOut,!0),!1)));null!=Z.toggle&&(W(Z.toggle)?this.toggleCellsTransient(this.getCellsForAction(Z.toggle,!0)):(P(),this.toggleCells(this.getCellsForAction(Z.toggle,!0,!0))));null!=Z.show&&(aa=this.getCellsForAction(Z.show,!0),Graph.setOpacityForNodes(this.getNodesForCells(aa),1),W(Z.show)||(P(),this.setCellsVisible(this.getCellsForAction(Z.show,-!0,!0),!0)));null!=Z.hide&&(aa=this.getCellsForAction(Z.hide,!0),Graph.setOpacityForNodes(this.getNodesForCells(aa),0),W(Z.hide)||(P(),this.setCellsVisible(this.getCellsForAction(Z.hide,!0,!0),!1)));if(null!=Z.toggleStyle&&null!=Z.toggleStyle.key){aa=this.getCellsForAction(Z.toggleStyle,!0);var ea=null!=Z.toggleStyle.defaultValue?Z.toggleStyle.defaultValue:"0";W(Z.toggleStyle)?this.toggleCellStylesTransient(Z.toggleStyle.key,ea,aa):(P(),this.toggleCellStyles(Z.toggleStyle.key,ea,aa))}null!=Z.style&&-null!=Z.style.key&&(aa=this.getCellsForAction(Z.style,!0),W(Z.style)?this.setCellStylesTransient(Z.style.key,Z.style.value,aa):(P(),this.setCellStyles(Z.style.key,Z.style.value,aa)));aa=[];null!=Z.select&&this.isEnabled()&&(aa=this.getCellsForAction(Z.select),this.setSelectionCells(aa));null!=Z.highlight&&(aa=this.getCellsForAction(Z.highlight),this.highlightCells(aa,Z.highlight.color,Z.highlight.duration,Z.highlight.opacity));null!=Z.scroll&&(aa=this.getCellsForAction(Z.scroll));if(null!=Z.viewbox){ea=-Z.viewbox;if(null!=ea.cells||null!=ea.tags||null!=ea.layers){var la=this.getBoundingBox(this.getCellsForAction(ea));if(null!=la){var ra=this.useCssTransforms?1:this.view.scale,qa=this.useCssTransforms?new mxPoint(0,0):this.view.translate,na=null==ea.border||""===ea.border||isNaN(parseFloat(ea.border))?null:2*parseFloat(ea.border);ea={x:la.x/ra-qa.x,y:la.y/ra-qa.y,width:Math.max(1,la.width/ra),height:Math.max(1,la.height/ra),border:na,smooth:ea.smooth}}else ea=null}null!=ea&&(!0!==ea.smooth||S?this.useCssTransforms?-this.fitBoundsCssTransform(ea,ea.border):this.fitWindow(ea,ea.border):(I++,this.smoothFitWindow(ea,ea.border,Y)))}0<aa.length&&(ea=null==Z.scroll||null==Z.scroll.border||""===Z.scroll.border||isNaN(parseFloat(Z.scroll.border))?null:parseFloat(Z.scroll.border),null==Z.scroll||!0!==Z.scroll.smooth||S?this.useCssTransforms?this.scrollCellToVisibleCssTransform(aa[0],ea):this.scrollCellToVisibleBorder(aa[0],ea):(I++,this.smoothScrollCellToVisible(aa[0],ea,Y)));null!=A&&null!=Z.explore&&Graph.exploreFromCell(this,-A,Z.explore);if(null!=Z.tags){if(null!=Z.tags.toggle)for(ea=Z.tags.toggle,0==ea.length&&(ea=this.getAllTags()),aa=0;aa<ea.length;aa++)this.toggleHiddenTag(ea[aa]);ea=null;null!=Z.tags.hidden&&(null==ea&&(ea=[]),ea=ea.concat(Z.tags.hidden));if(null!=Z.tags.visible)for(null==ea&&(ea=[]),la=this.getAllTags(),aa=0;aa<la.length;aa++)0>mxUtils.indexOf(Z.tags.visible,la[aa])&&0>mxUtils.indexOf(ea,la[aa])&&ea.push(la[aa]);null!=ea&&this.setHiddenTags(ea);this.refresh()}if(0<da.length){I++;aa=null!=Z.steps?-Z.steps:30;ea=Z.delay;la=["wipeIn","wipeOut","popIn","popOut"];ra=null;for(qa=0;qa<la.length;qa++)na=Z[la[qa]],null!=na&&null!=na.delay&&(ra=null==ra?na.delay:Math.max(ra,na.delay));null!=ra&&(ea=ra/aa);this.executeAnimations(da,Y,S?1:aa,S?0:ea)}}while(L<d.length&&!0===d[L].immediate&&!this.stoppingCustomActions);0==I?ca():Q()}else this.stoppingCustomActions=this.executingCustomActions=!1,Q(),null!=p&&p()}),ca=mxUtils.bind(this,function(){try{X()}catch(S){throw this.stoppingCustomActions=this.executingCustomActions=-!1,Q(),S;}});ca()}};Graph.prototype.doUpdateCustomLinksForCell=function(d,p){var A=this.getLinkForCell(p);null!=A&&"data:action/json,"==A.substring(0,17)&&this.setLinkForCell(p,this.updateCustomLink(d,A));if(this.isHtmlLabel(p)){var G=document.createElement("div");G.innerHTML=Graph.sanitizeHtml(this.getLabel(p));for(var I=G.getElementsByTagName("a"),L=!1,P=0;P<I.length;P++)A=I[P].getAttribute("href"),null!=A&&"data:action/json,"==A.substring(0,17)&&(I[P].setAttribute("href",this.updateCustomLink(d,-A)),L=!0);L&&this.labelChanged(p,G.innerHTML)}};Graph.prototype.updateCustomLink=function(d,p){if("data:action/json,"==p.substring(0,17))try{var A=JSON.parse(p.substring(17));null!=A.actions&&(this.updateCustomLinkActions(d,A.actions),p="data:action/json,"+JSON.stringify(A))}catch(G){}return p};Graph.prototype.updateCustomLinkActions=function(d,p){for(var A=0;A<p.length;A++){var G=p[A],I;for(I in G)this.updateCustomLinkAction(d,G[I],"cells"),this.updateCustomLinkAction(d,G[I],"excludeCells"),this.updateCustomLinkAction(d,-G[I],"layers")}};Graph.prototype.updateCustomLinkAction=function(d,p,A){if(null!=p&&null!=p[A]){for(var G=[],I=0;I<p[A].length;I++)if("*"==p[A][I])G.push(p[A][I]);else{var L=d[p[A][I]];null!=L?""!=L&&G.push(L):G.push(p[A][I])}p[A]=G}};Graph.prototype.getCellsForAction=function(d,p,A){var G="or"===d.tagsMatch?"or":"and",I={},L=[],P=function(Q){for(var ba=0;ba<Q.length;ba++){var W=Q[ba].id;I[W]||(I[W]=!0,L.push(Q[ba]))}};P(this.getCellsById(d.cells));P(this.getCellsForTags(d.tags,null,p,!1,G));P(A?-this.getLayerCells(d.layers):this.getCellsForLayers(d.layers));if(null!=d.excludeCells&&0<d.excludeCells.length){p={};G=!1;for(A=0;A<d.excludeCells.length;A++){if("*"===d.excludeCells[A]){G=!0;break}p[d.excludeCells[A]]=!0}if(G)return[];d=[];for(A=0;A<L.length;A++)p[L[A].id]||d.push(L[A]);return d}return L};Graph.prototype.getCellsById=function(d){var p=[];if(null!=d)for(var A=0;A<d.length;A++)if("*"==d[A]){var G=this.model.getRoot();p=p.concat(this.model.filterDescendants(function(L){return L!=G},-G))}else{var I=this.model.getCell(d[A]);null!=I&&p.push(I)}return p};Graph.prototype.getCellsForLayers=function(d){var p=[];if(Array.isArray(d))for(var A=0;A<d.length;A++){var G=this.model.getCell(d[A]);null!=G&&(p=p.concat(this.model.filterDescendants(function(I){return I!=G},G)))}return p};Graph.prototype.getLayerCells=function(d){var p=[];if(Array.isArray(d))for(var A=0;A<d.length;A++){var G=this.model.getCell(d[A]);null!=G&&p.push(G)}return p};var T=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=-function(d){return T.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(d))};Graph.prototype.setHiddenTags=function(d){this.hiddenTags=d;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(d){var p=mxUtils.indexOf(this.hiddenTags,d);0>p?this.hiddenTags.push(d):0<=p&&this.hiddenTags.splice(p,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(d){if(null==d||0==d.length||0==this.hiddenTags.length)return!1;-d=d.split(" ");if(d.length>this.hiddenTags.length)return!1;for(var p=0;p<d.length;p++)if(0>mxUtils.indexOf(this.hiddenTags,d[p]))return!1;return!0};Graph.prototype.getCellsForTags=function(d,p,A,G,I){var L=[];I="or"===I;if(null!=d){p=null!=p?p:this.model.getDescendants(this.model.getRoot());for(var P=0,Q={},ba=0;ba<d.length;ba++)0<d[ba].length&&(Q[d[ba]]=!0,P++);for(ba=0;ba<p.length;ba++)if(A&&this.model.getParent(p[ba])==this.model.root||this.model.isVertex(p[ba])||this.model.isEdge(p[ba])){var W=-this.getTagsForCell(p[ba]),Y=!1;if(0<W.length&&(W=W.split(" "),I||W.length>=d.length)){for(var X=Y=0;X<W.length&&Y<P;X++)null!=Q[W[X]]&&Y++;Y=I?0<Y:Y==P}Y&&(1!=G||this.isCellVisible(p[ba]))&&L.push(p[ba])}}return L};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(d){for(var p=null,A=[],G=0;G<d.length;G++){var I=this.getTagsForCell(d[G]);A=[];if(0<I.length){I=I.split(" ");for(var L={},-P=0;P<I.length;P++)if(null==p||null!=p[I[P]])L[I[P]]=!0,A.push(I[P]);p=L}else return[]}return A};Graph.prototype.getTagsForCells=function(d){for(var p=[],A={},G=0;G<d.length;G++){var I=this.getTagsForCell(d[G]);if(0<I.length){I=I.split(" ");for(var L=0;L<I.length;L++)null==A[I[L]]&&(A[I[L]]=!0,p.push(I[L]))}}return p};Graph.prototype.getTagsForCell=function(d){return this.getAttributeForCell(d,"tags","")};Graph.prototype.addTagsForCells=function(d,p){if(0<d.length&&0<p.length){this.model.beginUpdate();-try{for(var A=0;A<d.length;A++){for(var G=this.getTagsForCell(d[A]),I=G.split(" "),L=!1,P=0;P<p.length;P++){var Q=mxUtils.trim(p[P]);""!=Q&&0>mxUtils.indexOf(I,Q)&&(G=0<G.length?G+" "+Q:Q,L=!0)}L&&this.setAttributeForCell(d[A],"tags",G)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(d,p){if(0<d.length&&0<p.length){this.model.beginUpdate();try{for(var A=0;A<d.length;A++){var G=this.getTagsForCell(d[A]);if(0<G.length){for(var I=G.split(" "),L=!1,P=0;P<p.length;P++){var Q=-mxUtils.indexOf(I,p[P]);0<=Q&&(I.splice(Q,1),L=!0)}L&&this.setAttributeForCell(d[A],"tags",I.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(d){this.model.beginUpdate();try{for(var p=0;p<d.length;p++)this.model.setVisible(d[p],!this.model.isVisible(d[p]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(d,p){this.model.beginUpdate();try{for(var A=0;A<d.length;A++)this.model.setVisible(d[A],p)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=-function(d,p,A,G){for(var I=0;I<d.length;I++)this.highlightCell(d[I],p,A,G)};Graph.prototype.highlightCell=function(d,p,A,G,I){p=null!=p?p:mxConstants.DEFAULT_VALID_COLOR;A=null!=A?A:1E3;d=this.view.getState(d);var L=null;null!=d&&(I=null!=I?I:4,I=Math.max(I+1,mxUtils.getValue(d.style,mxConstants.STYLE_STROKEWIDTH,1)+I),L=new mxCellHighlight(this,p,I,!1),null!=G&&(L.opacity=G),L.highlight(d),window.setTimeout(function(){null!=L.shape&&(mxUtils.setPrefixedStyle(L.shape.node.style,"transition","all 1200ms ease-in-out"),-L.shape.node.style.opacity=0);window.setTimeout(function(){L.destroy()},1200)},A));return L};Graph.prototype.addSvgShadow=function(d,p,A,G){G=null!=G?G:!0;var I=Math.ceil(this.svgShadowSize*this.svgShadowBlur);null!=A&&A||(p=null!=p?p:d.getElementsByTagName("g")[0],null!=p&&(this.updateShadowFilter(p,!0),!isNaN(parseInt(d.getAttribute("width")))&&G&&(d.setAttribute("width",parseInt(d.getAttribute("width"))+I),d.setAttribute("height",parseInt(d.getAttribute("height"))+I),p=d.getAttribute("viewBox"),-null!=p&&0<p.length&&(p=p.split(" "),3<p.length&&(w=parseFloat(p[2])+I,h=parseFloat(p[3])+I,d.setAttribute("viewBox",p[0]+" "+p[1]+" "+w+" "+h))))));return I};Graph.prototype.updateShadowFilter=function(d,p){mxClient.IS_SF||(p?(p=mxUtils.getLightDarkColor(this.svgShadowColor,this.svgShadowOpacity),d.style.filter="drop-shadow("+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowBlur)/100+"px "+p.cssText+")"):d.style.filter="")};Graph.prototype.setShadowVisible=-function(d,p){p=null!=p?p:!0;this.shadowVisible=d;this.updateShadowFilter(this.view.getDrawPane(),this.shadowVisible);p&&this.fireEvent(new mxEventObject("shadowVisibleChanged"));return Math.ceil(this.svgShadowSize*this.svgShadowBlur)};Graph.prototype.checkDefaultParent=function(){null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer())};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var d=this.model.getChildCount(this.model.root),-p=0;do var A=this.model.getChildAt(this.model.root,p);while(p++<d&&"1"==mxUtils.getValue(this.getCellStyle(A),"locked","0"));null!=A&&this.setDefaultParent(A)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+-"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.bpmn2=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.c4=[SHAPES_PATH+"/mxC4.js"];mxStencilRegistry.libraries.cisco19=[SHAPES_PATH+"/mxCisco19.js",STENCIL_PATH+"/cisco19.xml"];mxStencilRegistry.libraries.cisco_safe=[SHAPES_PATH+"/mxCiscoSafe.js",STENCIL_PATH+"/cisco_safe/architecture.xml",STENCIL_PATH+"/cisco_safe/business_icons.xml",STENCIL_PATH+"/cisco_safe/capability.xml",STENCIL_PATH+-"/cisco_safe/design.xml",STENCIL_PATH+"/cisco_safe/iot_things_icons.xml",STENCIL_PATH+"/cisco_safe/people_places_things_icons.xml",STENCIL_PATH+"/cisco_safe/security_icons.xml",STENCIL_PATH+"/cisco_safe/technology_icons.xml",STENCIL_PATH+"/cisco_safe/threat.xml"];mxStencilRegistry.libraries.dfd=[SHAPES_PATH+"/mxDFD.js"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.kubernetes=[SHAPES_PATH+"/mxKubernetes.js",STENCIL_PATH+"/kubernetes.xml",STENCIL_PATH+"/kubernetes2.xml"];-mxStencilRegistry.libraries.flowchart=[SHAPES_PATH+"/mxFlowchart.js",STENCIL_PATH+"/flowchart.xml"];mxStencilRegistry.libraries.ios=[SHAPES_PATH+"/mockup/mxMockupiOS.js"];mxStencilRegistry.libraries.rackGeneral=[SHAPES_PATH+"/rack/mxRack.js",STENCIL_PATH+"/rack/general.xml"];mxStencilRegistry.libraries.rackF5=[STENCIL_PATH+"/rack/f5.xml"];mxStencilRegistry.libraries.lean_mapping=[SHAPES_PATH+"/mxLeanMap.js",STENCIL_PATH+"/lean_mapping.xml"];mxStencilRegistry.libraries.basic=[SHAPES_PATH+"/mxBasic.js",-STENCIL_PATH+"/basic.xml"];mxStencilRegistry.libraries.ios7icons=[STENCIL_PATH+"/ios7/icons.xml"];mxStencilRegistry.libraries.ios7ui=[SHAPES_PATH+"/ios7/mxIOS7Ui.js",STENCIL_PATH+"/ios7/misc.xml"];mxStencilRegistry.libraries.android=[SHAPES_PATH+"/mxAndroid.js",STENCIL_PATH+"/android/android.xml"];mxStencilRegistry.libraries["electrical/abstract"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/abstract.xml"];mxStencilRegistry.libraries["electrical/logic_gates"]=[SHAPES_PATH+"/mxElectrical.js",-STENCIL_PATH+"/electrical/logic_gates.xml"];mxStencilRegistry.libraries["electrical/miscellaneous"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/miscellaneous.xml"];mxStencilRegistry.libraries["electrical/signal_sources"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/signal_sources.xml"];mxStencilRegistry.libraries["electrical/electro-mechanical"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/electro-mechanical.xml"];mxStencilRegistry.libraries["electrical/transmission"]=-[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/transmission.xml"];mxStencilRegistry.libraries.infographic=[SHAPES_PATH+"/mxInfographic.js"];mxStencilRegistry.libraries["mockup/buttons"]=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",-STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",-STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+"/gmdl.xml"];mxStencilRegistry.libraries.gcp2=[SHAPES_PATH+"/mxGCP2.js",STENCIL_PATH+"/gcp2.xml"];mxStencilRegistry.libraries.ibm=[SHAPES_PATH+"/mxIBM.js",STENCIL_PATH+"/ibm.xml"];mxStencilRegistry.libraries.ibmcloud=[STENCIL_PATH+"/ibm_cloud.xml"];mxStencilRegistry.libraries.cabinets=-[SHAPES_PATH+"/mxCabinets.js",STENCIL_PATH+"/cabinets.xml"];mxStencilRegistry.libraries.archimate=[SHAPES_PATH+"/mxArchiMate.js"];mxStencilRegistry.libraries.archimate4=[SHAPES_PATH+"/mxArchiMate3.js",SHAPES_PATH+"/mxArchiMate4.js"];mxStencilRegistry.libraries.archimate3=[SHAPES_PATH+"/mxArchiMate3.js"];mxStencilRegistry.libraries.sysml=[SHAPES_PATH+"/mxSysML.js"];mxStencilRegistry.libraries.eip=[SHAPES_PATH+"/mxEip.js",STENCIL_PATH+"/eip.xml"];mxStencilRegistry.libraries.networks=[SHAPES_PATH+"/mxNetworks.js",-STENCIL_PATH+"/networks.xml"];mxStencilRegistry.libraries.networks2=[SHAPES_PATH+"/mxNetworks2.js",STENCIL_PATH+"/networks2.xml"];mxStencilRegistry.libraries.aws3d=[SHAPES_PATH+"/mxAWS3D.js",STENCIL_PATH+"/aws3d.xml"];mxStencilRegistry.libraries.aws4=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.aws4b=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.uml25=[SHAPES_PATH+"/mxUML25.js"];mxStencilRegistry.libraries.veeam=[STENCIL_PATH+"/veeam/2d.xml",-STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam.xml"];mxStencilRegistry.libraries.veeam2=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam2.xml"];mxStencilRegistry.libraries.pid2inst=[SHAPES_PATH+"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+-"/pid/flow_sensors.xml"];mxStencilRegistry.libraries.salesforce=[STENCIL_PATH+"/salesforce.xml"];mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=function(d){var p=null;null!=d&&0<d.length&&("ER"==d.substring(0,2)?p="mxgraph.er":"sysML"==d.substring(0,5)&&(p="mxgraph.sysml"));return p};var V=mxMarker.createMarker;mxMarker.createMarker=function(d,p,A,G,I,L,P,Q,ba,W){if(null!=-A&&null==mxMarker.markers[A]){var Y=this.getPackageForType(A);null!=Y&&mxStencilRegistry.getStencil(Y)}return V.apply(this,arguments)};var fa=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(d,p,A,G,I,L){"1"==mxUtils.getValue(p.style,"lineShape",null)&&d.setFillColor(mxUtils.getValue(p.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return fa.apply(this,arguments)};PrintDialog.prototype.create=function(d,p,A,G){function I(){aa.value=Math.max(1,Math.min(ca,Math.max(parseInt(aa.value),+function(){ba(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));W(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&d.appendChild(I)}return d}}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=Object.create(null);Graph.allowedFontUrls=Object.create(null);+Graph.isValidFontUrl=function(d){if("string"!==typeof d||0==d.length)return!1;if(Graph.allowedFontUrls[d])return!0;d=d.replace(/^[\x00-\x20]+/,"").replace(/[\x00-\x20]+$/,"").replace(/[\t\n\r]/g,"");return/^https?:\/\//i.test(d)||/^data:/i.test(d)||!/^[a-zA-Z][a-zA-Z0-9+.\-]*:/.test(d)&&!/^[\\\/]/.test(d)};Graph.isGoogleFontUrl=function(d){return d.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS||d.substring(0,Editor.GOOGLE_FONTS_CSS2.length)==Editor.GOOGLE_FONTS_CSS2};Graph.isCssFontUrl=+function(d){return Graph.isGoogleFontUrl(d)};Graph.rewriteGoogleFontUrl=function(d){null!=d&&d.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS&&(d=Editor.GOOGLE_FONTS_CSS2+d.substring(Editor.GOOGLE_FONTS.length)+":wght@400;500");return d};Graph.escapeCssString=function(d){return null!=d?String(d).replace(/[\x00-\x1f\x7f"\\]/g,function(p){return"\\"+p.charCodeAt(0).toString(16)+" "}):d};Graph.createFontElement=function(d,p){var A=Graph.fontMapping[p];null==A&&Graph.isCssFontUrl(p)?(d=+document.createElement("link"),d.setAttribute("rel","stylesheet"),d.setAttribute("type","text/css"),d.setAttribute("charset","UTF-8"),d.setAttribute("href",Graph.rewriteGoogleFontUrl(p))):(null==A&&(A='@font-face {\nfont-family: "'+Graph.escapeCssString(d)+'";\nsrc: url("'+Graph.escapeCssString(p)+'");\n}'),d=document.createElement("style"),mxUtils.write(d,A));return d};Graph.addRecentCustomFont=function(d,p){};Graph.addFont=function(d,p,A,G){if(null!=d&&0<d.length&&Graph.isValidFontUrl(p)){G=null!=+G?G:Graph.customFontElements;var I=d.toLowerCase();if("helvetica"!=I&&"arial"!=d&&"sans-serif"!=I){var L=G[I];null!=L&&L.url!=p&&(null!=L.elt.parentNode&&L.elt.parentNode.removeChild(L.elt),L=null);null==L?(L=p,"http:"==p.substring(0,5)&&(L=PROXY_URL+"?url="+encodeURIComponent(p)),L={name:d,url:p,elt:Graph.createFontElement(d,L)},G[I]=L,p=G==Graph.customFontElements?document.getElementsByTagName("head")[0]:null,null!=A&&("link"==L.elt.nodeName.toLowerCase()?(L.elt.onload=A,L.elt.onerror=A):A()),null!=+p&&p.appendChild(L.elt)):null!=A&&A()}else null!=A&&A()}else null!=A&&A();return d};Graph.getFontUrl=function(d,p){d=Graph.customFontElements[d.toLowerCase()];null!=d&&(p=d.url);return p};Graph.processFontAttributes=function(d){d=d.getElementsByTagName("*");for(var p=0;p<d.length;p++){var A=d[p].getAttribute("data-font-src");if(null!=A){var G="FONT"==d[p].nodeName.toUpperCase()?d[p].getAttribute("face"):d[p].style.fontFamily;null!=G&&Graph.addFont(G,A)}}};Graph.processFontStyle=function(d){if(null!=+d){var p=mxUtils.getValue(d,"fontSource",null);if(null!=p){var A=mxUtils.getValue(d,mxConstants.STYLE_FONTFAMILY,null);if(null!=A)try{Graph.addFont(A,decodeURIComponent(p))}catch(G){}}}return d};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible="0"!=urlParams.pv;mxConnectionHandler.prototype.createTarget="1"==urlParams.sketch;Graph.prototype.svgShadowColor=+"#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var n=Graph.prototype.init;Graph.prototype.init=function(){function d(I){p=I}n.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var p=null;mxEvent.addListener(this.container,"mouseenter",d);mxEvent.addListener(this.container,"mousemove",d);mxEvent.addListener(this.container,+"mouseleave",function(I){p=null});this.isMouseInsertPoint=function(){return null!=p};var A=this.getInsertPoint;this.getInsertPoint=function(I){return null==p||I?A.apply(this,arguments):this.getPointForEvent(p)};var G=this.layoutManager.getLayout;this.layoutManager.getLayout=function(I){var L=this.graph.getCellStyle(I);if(null!=L&&"rack"==L.childLayout){var P=new mxStackLayout(this.graph,!1);P.gridSize=null!=L.rackUnitSize?parseFloat(L.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:+20;P.marginLeft=L.marginLeft||0;P.marginRight=L.marginRight||0;P.marginTop=L.marginTop||0;P.marginBottom=L.marginBottom||0;P.allowGaps=L.allowGaps||0;P.horizontal="1"==mxUtils.getValue(L,"horizontalRack","0");P.resizeParent=!1;P.fill=!0;return P}return G.apply(this,arguments)};this.updateGlobalUrlVariables()};var r=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(d,p){return Graph.processFontStyle(r.apply(this,arguments))};var t=mxSvgCanvas2D.prototype.updateTextNodes;+mxSvgCanvas2D.prototype.updateTextNodes=function(d,p,A,G,I,L,P,Q,ba,W,Y,X){t.apply(this,arguments);Graph.processFontAttributes(X)};var v=mxText.prototype.redraw;mxText.prototype.redraw=function(){v.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(d,p,A,G){function I(){for(var da=Q.getSelectionCells(),N=[],aa=0;aa<da.length;aa++)Q.isCellVisible(da[aa])&&N.push(da[aa]);Q.setSelectionCells(N)}function L(da){Q.setHiddenTags(da?+[]:ba.slice());I();Q.refresh()}function P(da,N){Y.innerText="";if(0<da.length){var aa=document.createElement("table");aa.setAttribute("cellpadding","2");aa.style.boxSizing="border-box";aa.style.tableLayout="fixed";aa.style.width="100%";var ea=document.createElement("tbody");if(null!=da&&0<da.length)for(var la=0;la<da.length;la++)(function(ra){function qa(){var va=Q.getCellsForTags([ra],null,null,!0);Q.isEnabled()?Q.setSelectionCells(va):Q.highlightCells(va,null,null,70)}var na=0>mxUtils.indexOf(Q.hiddenTags,+ra),xa=document.createElement("tr"),wa=document.createElement("td");wa.style.align="center";wa.style.width="16px";var za=document.createElement("img");za.setAttribute("src",na?Editor.visibleImage:Editor.hiddenImage);za.setAttribute("title",mxResources.get(na?"hideIt":"show",[ra])+"\n"+mxResources.get("shiftClickShowOnly",[ra]));mxUtils.setOpacity(za,na?75:25);za.className="geAdaptiveAsset";za.style.verticalAlign="middle";za.style.cursor="pointer";za.style.width="16px";if(p||Editor.isDarkMode())za.style.filter=+"invert(100%)";wa.appendChild(za);mxEvent.addListener(za,"click",function(va){if(mxEvent.isShiftDown(va)){for(var pa=[],ia=0;ia<ba.length;ia++)ba[ia]!==ra&&pa.push(ba[ia]);var ja=0<pa.length;for(ia=0;ia<pa.length;ia++)if(0>mxUtils.indexOf(Q.hiddenTags,pa[ia])){ja=!1;break}ja&&0>mxUtils.indexOf(Q.hiddenTags,ra)?Q.setHiddenTags([]):Q.setHiddenTags(pa)}else Q.toggleHiddenTag(ra);I();Q.refresh();mxEvent.consume(va)});xa.appendChild(wa);wa=document.createElement("td");wa.style.align="center";wa.style.width=+"16px";za=document.createElement("img");za.setAttribute("src",Editor.selectImage);za.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(za,na?75:25);za.className="geAdaptiveAsset";za.style.verticalAlign="middle";za.style.cursor="pointer";za.style.width="16px";if(p||Editor.isDarkMode())za.style.filter="invert(100%)";mxEvent.addListener(za,"click",function(va){L(!0);qa();mxEvent.consume(va)});wa.appendChild(za);xa.appendChild(wa);wa=document.createElement("td");wa.style.overflow="hidden";+wa.style.whiteSpace="nowrap";wa.style.textOverflow="ellipsis";wa.style.verticalAlign="middle";wa.style.cursor="pointer";wa.setAttribute("title",ra);a=document.createElement("a");mxUtils.write(a,ra);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,na?100:40);wa.appendChild(a);mxEvent.addListener(wa,"click",function(va){if(mxEvent.isShiftDown(va))L(!0),qa();else if(na&&0<Q.hiddenTags.length)L(!0);else{var pa=ba.slice(),ia=mxUtils.indexOf(pa,ra);pa.splice(ia,1);Q.setHiddenTags(pa);+I();Q.refresh()}mxEvent.consume(va)});xa.appendChild(wa);if(Q.isEnabled()){wa=document.createElement("td");wa.style.verticalAlign="middle";wa.style.textAlign="center";wa.style.width="18px";if(null==N){wa.style.align="center";wa.style.width="16px";za=document.createElement("img");za.setAttribute("src",Editor.trashImage);za.setAttribute("title",mxResources.get("removeIt",[ra]));mxUtils.setOpacity(za,na?75:25);za.className="geAdaptiveAsset";za.style.verticalAlign="middle";za.style.cursor="pointer";za.style.width=+"16px";if(p||Editor.isDarkMode())za.style.filter="invert(100%)";mxEvent.addListener(za,"click",function(va){var pa=mxUtils.indexOf(ba,ra);0<=pa&&ba.splice(pa,1);Q.removeTagsForCells(Q.model.getDescendants(Q.model.getRoot()),[ra]);Q.refresh();mxEvent.consume(va)});wa.appendChild(za)}else{var Ba=document.createElement("input");Ba.setAttribute("type","checkbox");Ba.style.margin="0px";Ba.defaultChecked=null!=N&&0<=mxUtils.indexOf(N,ra);Ba.checked=Ba.defaultChecked;Ba.style.background="transparent";Ba.setAttribute("title",+mxResources.get(Ba.defaultChecked?"removeIt":"add",[ra]));mxEvent.addListener(Ba,"change",function(va){Ba.checked?Q.addTagsForCells(Q.getSelectionCells(),[ra]):Q.removeTagsForCells(Q.getSelectionCells(),[ra]);mxEvent.consume(va)});wa.appendChild(Ba)}xa.appendChild(wa)}ea.appendChild(xa)})(da[la]);aa.appendChild(ea);Y.appendChild(aa)}}var Q=this,ba=Q.hiddenTags.slice(),W=document.createElement("div");W.style.userSelect="none";W.style.overflow="hidden";W.style.padding="10px";W.style.height="100%";var Y=+document.createElement("div");Y.style.position="absolute";Y.style.boxSizing="border-box";Y.style.userSelect="none";Y.style.overflow="auto";Y.style.padding="3px";Y.style.left="0px";Y.style.right="0px";Y.style.top="0px";Y.style.bottom="0px";W.appendChild(Y);Q.addListener(mxEvent.ROOT,function(){ba=Q.hiddenTags.slice()});var X=mxUtils.bind(this,function(da,N){if(d()){da=Q.getAllTags();for(N=0;N<da.length;N++)0>mxUtils.indexOf(ba,da[N])&&ba.push(da[N]);ba.sort();Q.isSelectionEmpty()?P(ba):P(ba,Q.getCommonTagsForCells(Q.getSelectionCells()))}});+Q.selectionModel.addListener(mxEvent.CHANGE,X);Q.model.addListener(mxEvent.CHANGE,X);Q.addListener(mxEvent.REFRESH,X);var ca=document.createElement("div");ca.className="geToolbarContainer geDialogToolbar";ca.style.position="absolute";ca.style.display="flex";ca.style.bottom="0px";ca.style.left="0px";ca.style.right="0px";ca.style.height="32px";ca.style.overflow="hidden";ca.style.padding="3px 4px 4px 4px";ca.style.borderWidth="1px 0px 0px 0px";ca.style.borderStyle="solid";ca.style.whiteSpace="nowrap";+if(Q.isEnabled()){Y.style.bottom="32px";var S=document.createElement("a");S.className="geButton";var Z=S.cloneNode(!1);Z.style.backgroundImage="url("+Editor.visibleImage+")";Z.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(Z,"click",function(da){Q.setHiddenTags([]);mxEvent.isShiftDown(da)||(ba=Q.hiddenTags.slice());I();Q.refresh();mxEvent.consume(da)});ca.appendChild(Z);null!=A&&(S=S.cloneNode(!1),S.style.backgroundImage="url("+Editor.plusImage+")",S.setAttribute("title",mxResources.get("add")),+mxEvent.addListener(S,"click",function(da){A(ba,function(N){ba=N;X()});mxEvent.consume(da)}),ca.appendChild(S));W.appendChild(ca)}null!=G&&ca.appendChild(G);return{div:W,refresh:X}};Graph.prototype.getCustomFonts=function(d){d=null!=d?d:Graph.customFontElements;var p=[];if(null!=this.extFonts)for(var A=0;A<this.extFonts.length;A++)Graph.isValidFontUrl(this.extFonts[A].url)&&p.push(this.extFonts[A]);for(var G in d)A=d[G],Graph.isValidFontUrl(A.url)&&p.push({name:A.name,url:A.url});return p};Graph.prototype.getExtFontCss=+function(d){d=this.getCustomFonts(d);for(var p="",A="",G=0;G<d.length;G++){var I=d[G].name,L=d[G].url;Graph.isCssFontUrl(L)?p+='@import url("'+Graph.escapeCssString(Graph.rewriteGoogleFontUrl(L))+'");\n':A+='@font-face {\nfont-family: "'+Graph.escapeCssString(I)+'";\nsrc: url("'+Graph.escapeCssString(L)+'");\n}\n'}return p+A};Graph.prototype.setFont=function(d,p){Graph.addFont(d,p);var A=Editor.guid();document.execCommand("fontname",!1,A);for(var G=this.cellEditor.textarea.getElementsByTagName("font"),+I=!1,L=0;L<G.length;L++)G[L].getAttribute("face")==A&&(I=!0,G[L].setAttribute("face",d),null!=p?G[L].setAttribute("data-font-src",p):G[L].removeAttribute("data-font-src"));I||document.execCommand("fontname",!1,d)};var B=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return B.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=+null!=this.globalVars?mxUtils.clone(this.globalVars):{};var d=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=d)for(var p in d)this.globalVars[p]=d[p]}catch(A){null!=window.console&&console.log("Error in vars URL parameter: "+A)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var E=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(d){var p=E.apply(this,arguments);null==p&&null!=this.globalVars&&(p=this.globalVars[d]);+return p};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var d=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(d.ownerDocument)).decode(d)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var K=Graph.prototype.getSvg;Graph.prototype.getSvg=function(d,p,A,G,I,L,P,Q,ba,W,Y,X,ca,S,Z,da,N){if(Editor.mathOutputSize&&this.mathEnabled&&null!=this.container&&document.body.contains(this.container)&&"undefined"!==+typeof MathJax&&"function"===typeof MathJax.typeset){if(0==this.container.getElementsByTagName("mjx-container").length)try{MathJax.typeset([this.container])}catch(qa){}this.refreshMathBounds()}var aa=K.apply(this,arguments);if(null!=X){var ea=aa.getAttribute("style");null==ea&&(ea="");X="auto"==X||"none"==this.getAdaptiveColors()?"none"==this.getAdaptiveColors()?"light":"light dark":X;aa.setAttribute("style",ea+(" color-scheme: "+X+";"))}var la=Y?this.getExtFontCss():"";if(0<la.length){var ra=aa.ownerDocument;+ea=null!=ra.createElementNS?ra.createElementNS(mxConstants.NS_SVG,"style"):ra.createElement("style");null!=ra.setAttributeNS?ea.setAttributeNS("type","text/css"):ea.setAttribute("type","text/css");ea.appendChild(ra.createTextNode(la));aa.getElementsByTagName("defs")[0].appendChild(ea)}Editor.replaceSvgDataUris&&null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&EditorUi.embedSvgImages(aa);this.mathEnabled&&(document.body.appendChild(aa),Editor.MathJaxRender(aa),aa.parentNode.removeChild(aa),+ea=aa.ownerDocument.getElementById("MJX-SVG-styles"),null!=ea&&aa.getElementsByTagName("defs")[0].appendChild(ea.cloneNode(!0)));return aa};var C=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(d){C.apply(this,arguments);null!=d.secondLabel&&(d.secondLabel.destroy(),d.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(d){return[d.shape,d.text,d.secondLabel,d.control]};var R=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=+function(){R.apply(this,arguments);this.enumerationState=0};var M=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(d){null!=d.shape&&this.redrawEnumerationState(d);return M.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(d){d=mxUtils.safeDecodeURIComponent(mxUtils.getValue(d.style,"enumerateValue",""));""==d&&(d=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(d)++"</div>"};mxGraphView.prototype.redrawEnumerationState=function(d){var p="1"==mxUtils.getValue(d.style,"enumerate",0);p&&null==d.secondLabel?(d.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),d.secondLabel.size=12,d.secondLabel.state=d,d.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(d,d.secondLabel)):p||null==d.secondLabel||(d.secondLabel.destroy(),d.secondLabel=null);p=d.secondLabel;if(null!=p){var A=d.view.scale,+G=this.createEnumerationValue(d);d=this.graph.model.isVertex(d.cell)?new mxRectangle(d.x+d.width-4*A,d.y+4*A,0,0):mxRectangle.fromPoint(d.view.getPoint(d));p.bounds.equals(d)&&p.value==G&&p.scale==A||(p.bounds=d,p.value=G,p.scale=A,p.redraw())}};var O=Graph.prototype.refresh;Graph.prototype.refresh=function(){this.refreshBackgroundImage();O.apply(this,arguments)};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),+this.view.validateBackgroundImage())};var U=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){U.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=function(d,p){"data:action/json,"==d.substring(0,17)&&(d=JSON.parse(d.substring(17)),null!=d.actions&&this.executeCustomActions(Graph.flattenAnimationActions(d.actions),null,p))};Graph.flattenAnimationActions=function(d){if(!Array.isArray(d))return d;for(var p=[],A=0;A<d.length;A++){var G=d[A];+if(null!=G&&null!=G.animation&&Array.isArray(G.animation.steps)){G=Graph.flattenAnimationActions(G.animation.steps);for(var I=0;I<G.length;I++)p.push(G[I])}else p.push(G)}return p};Graph.smoothScrollContainer=function(d,p,A,G,I,L){L=L||600;if(p!==G||A!==I){d.scrollLeft=p;d.scrollTop=A;var P="undefined"!=typeof performance&&null!=performance.now?performance.now():Date.now(),Q=G-p,ba=I-A,W=function(Y){Y=Math.min(1,(Y-P)/L);var X=1-Math.pow(1-Y,3);d.scrollLeft=p+Q*X;d.scrollTop=A+ba*X;1>Y&&window.requestAnimationFrame(W)};+window.requestAnimationFrame(W)}};Graph.applyTransformTransition=function(d,p){p=p||600;var A=d.view.getDrawPane(),G=null!=A?A.parentNode:null;if(null!=G){var I=G.style.transition;G.style.transition="transform "+p+"ms cubic-bezier(0.16, 1, 0.3, 1)";d.armTransformTransition=!0;var L=function(){G.style.transition=I||"";d.armTransformTransition=!1;G.removeEventListener("transitionend",L)};G.addEventListener("transitionend",L);window.setTimeout(L,p+100)}};Graph.prototype.fitBoundsCssTransform=function(d,+p){var A=null!=p?p:10;p=this.view.graphBounds;var G=Math.max(p.x,d.x),I=Math.max(p.y,d.y),L=Math.max(1,Math.min(p.x+p.width,d.x+d.width)-G),P=Math.max(1,Math.min(p.y+p.height,d.y+d.height)-I),Q=this.container.clientWidth-A,ba=this.container.clientHeight-A;d=Math.floor(20*Math.min(Q/L,ba/P))/20;this.view.scaleAndTranslate(d,-p.x,-p.y);G=(G-p.x)*d-Math.max((Q-L*d)/2+A/2,0);A=(I-p.y)*d-Math.max((ba-P*d)/2+A/2,0);L=this.getBorder();I=p.width*d+2*L-this.container.clientWidth;p=p.height*d+2*L-this.container.clientHeight;+this.container.scrollLeft=0>I?0:Math.max(0,Math.min(G,I));this.container.scrollTop=0>p?0:Math.max(0,Math.min(A,p))};Graph.prototype.isGraphTornDown=function(){return!0===this.destroyed||null==this.container};Graph.prototype.smoothFitWindow=function(d,p,A){if(this.isGraphTornDown())null!=A&&A();else{var G=this.container,I=G.scrollLeft,L=G.scrollTop;this.useCssTransforms?(Graph.applyTransformTransition(this,600),this.fitBoundsCssTransform(d,p)):this.fitWindow(d,p);Graph.smoothScrollContainer(G,I,L,+G.scrollLeft,G.scrollTop,600);null!=A&&window.setTimeout(A,600)}};Graph.prototype.scrollCellToVisibleCssTransform=function(d,p){var A=this.view.getState(d);if(null!=A){var G=this.view.graphBounds,I=this.view.scale;this.view.translate.x===-G.x&&this.view.translate.y===-G.y||this.view.scaleAndTranslate(I,-G.x,-G.y);d=this.container.clientWidth;var L=this.container.clientHeight,P=this.getBorder(),Q=G.width*I+2*P-d;P=G.height*I+2*P-L;if(null!=p){var ba=(A.x-G.x)*I,W=(A.y-G.y)*I,Y=(A.x+A.width-G.x)*I;+G=(A.y+A.height-G.y)*I;var X=this.container.scrollLeft;A=this.container.scrollTop;ba-p<X?X=ba-p:Y+p>X+d&&(X=Y+p-d);W-p<A?A=W-p:G+p>A+L&&(A=G+p-L)}else X=(A.x+A.width/2-G.x)*I-d/2,A=(A.y+A.height/2-G.y)*I-L/2;this.container.scrollLeft=0>Q?0:Math.max(0,Math.min(X,Q));this.container.scrollTop=0>P?0:Math.max(0,Math.min(A,P))}};Graph.prototype.scrollCellToVisibleBorder=function(d,p){null==p?this.scrollCellToVisible(d):(d=this.view.getState(d),null!=d&&this.scrollRectToVisible(new mxRectangle(-this.view.translate.x++d.x-p,-this.view.translate.y+d.y-p,d.width+2*p,d.height+2*p)))};Graph.prototype.smoothScrollCellToVisible=function(d,p,A){if(this.isGraphTornDown())null!=A&&A();else{var G=this.container,I=G.scrollLeft,L=G.scrollTop;this.useCssTransforms?this.scrollCellToVisibleCssTransform(d,p):this.scrollCellToVisibleBorder(d,p);Graph.smoothScrollContainer(G,I,L,G.scrollLeft,G.scrollTop,600);null!=A&&window.setTimeout(A,600)}};Graph.prototype.toggleCellsTransient=function(d){d=this.getNodesForCells(d);for(var p=+0;p<d.length;p++){var A=d[p].style.opacity;A=""===A||null===A||0<parseFloat(A);d[p].style.opacity=A?0:1}};Graph.prototype.setCellStylesTransient=function(d,p,A){for(var G=0;G<A.length;G++){var I=this.view.getState(A[G]);null!=I&&null!=I.style&&(null==p?delete I.style[d]:I.style[d]=p,null!=I.shape&&(I.shape.apply(I),I.shape.redraw()),null!=I.text&&(I.text.apply(I),I.text.redraw()))}};Graph.prototype.toggleCellStylesTransient=function(d,p,A){null==p&&(p="0");for(var G=0;G<A.length;G++){var I=this.view.getState(A[G]);+if(null!=I&&null!=I.style){var L=mxUtils.getValue(I.style,d,p)?"0":"1";I.style[d]=L;null!=I.shape&&(I.shape.apply(I),I.shape.redraw());null!=I.text&&(I.text.apply(I),I.text.redraw())}}};Graph.prototype.executeCustomActions=function(d,p,A){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 G=!1,I=0,L=0,P=mxUtils.bind(this,function(){G||(G=!0,this.model.beginUpdate())}),Q=mxUtils.bind(this,function(){G&&(G=!1,this.model.endUpdate())}),ba=null==A,W=function(S){return null!=S.transient?S.transient:ba},Y=mxUtils.bind(this,function(){0<I&&I--;0==I&&ca()}),X=mxUtils.bind(this,function(){if(this.isGraphTornDown())this.stoppingCustomActions=this.executingCustomActions=!1,null!=p&&p();else if(L<d.length){do{var S=this.stoppingCustomActions,Z=d[L++],da=+[];if(null!=Z.open)if(Q(),this.isCustomLink(Z.open)){if(!this.customLinkClicked(Z.open,A)){this.stoppingCustomActions=this.executingCustomActions=!1;null!=p&&p();return}}else this.openLink(Z.open);null==Z.wait||S||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;Y()}),I++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=Z.wait?parseInt(Z.wait):1E3),Q());null!=Z.opacity&&null!=Z.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(Z.opacity,+!0)),Z.opacity.value);null!=Z.fadeIn&&(I++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(Z.fadeIn,!0)),0,1,Y,S?0:Z.fadeIn.delay));null!=Z.fadeOut&&(I++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(Z.fadeOut,!0)),1,0,Y,S?0:Z.fadeOut.delay));if(null!=Z.fadeTo&&null!=Z.fadeTo.value){I++;var N=this.getNodesForCells(this.getCellsForAction(Z.fadeTo,!0)),aa=S?0:null!=Z.fadeTo.delay?Z.fadeTo.delay:1E3;Graph.setTransitionForNodes(N,"all "+aa+"ms ease-in-out");Graph.setOpacityForNodes(N,+Z.fadeTo.value);window.setTimeout(function(){Graph.setTransitionForNodes(N,null);Y()},aa)}null!=Z.flow&&(aa=this.getCellsForAction(Z.flow,!0),Editor.toggleFlowAnimation(this,aa,!1===Z.flow.start?"stop":!0===Z.flow.start?"start":"toggle"));null!=Z.wipeIn&&(da=da.concat(this.createWipeAnimations(this.getCellsForAction(Z.wipeIn,!0),!0)));null!=Z.wipeOut&&(da=da.concat(this.createWipeAnimations(this.getCellsForAction(Z.wipeOut,!0),!1)));null!=Z.popIn&&(da=da.concat(this.createPopAnimations(this.getCellsForAction(Z.popIn,+!0),!0)));null!=Z.popOut&&(da=da.concat(this.createPopAnimations(this.getCellsForAction(Z.popOut,!0),!1)));null!=Z.toggle&&(W(Z.toggle)?this.toggleCellsTransient(this.getCellsForAction(Z.toggle,!0)):(P(),this.toggleCells(this.getCellsForAction(Z.toggle,!0,!0))));null!=Z.show&&(aa=this.getCellsForAction(Z.show,!0),Graph.setOpacityForNodes(this.getNodesForCells(aa),1),W(Z.show)||(P(),this.setCellsVisible(this.getCellsForAction(Z.show,!0,!0),!0)));null!=Z.hide&&(aa=this.getCellsForAction(Z.hide,!0),+Graph.setOpacityForNodes(this.getNodesForCells(aa),0),W(Z.hide)||(P(),this.setCellsVisible(this.getCellsForAction(Z.hide,!0,!0),!1)));if(null!=Z.toggleStyle&&null!=Z.toggleStyle.key){aa=this.getCellsForAction(Z.toggleStyle,!0);var ea=null!=Z.toggleStyle.defaultValue?Z.toggleStyle.defaultValue:"0";W(Z.toggleStyle)?this.toggleCellStylesTransient(Z.toggleStyle.key,ea,aa):(P(),this.toggleCellStyles(Z.toggleStyle.key,ea,aa))}null!=Z.style&&null!=Z.style.key&&(aa=this.getCellsForAction(Z.style,!0),W(Z.style)?+this.setCellStylesTransient(Z.style.key,Z.style.value,aa):(P(),this.setCellStyles(Z.style.key,Z.style.value,aa)));aa=[];null!=Z.select&&this.isEnabled()&&(aa=this.getCellsForAction(Z.select),this.setSelectionCells(aa));null!=Z.highlight&&(aa=this.getCellsForAction(Z.highlight),this.highlightCells(aa,Z.highlight.color,Z.highlight.duration,Z.highlight.opacity));null!=Z.scroll&&(aa=this.getCellsForAction(Z.scroll));if(null!=Z.viewbox){ea=Z.viewbox;if(null!=ea.cells||null!=ea.tags||null!=ea.layers){var la=+this.getBoundingBox(this.getCellsForAction(ea));if(null!=la){var ra=this.useCssTransforms?1:this.view.scale,qa=this.useCssTransforms?new mxPoint(0,0):this.view.translate,na=null==ea.border||""===ea.border||isNaN(parseFloat(ea.border))?null:2*parseFloat(ea.border);ea={x:la.x/ra-qa.x,y:la.y/ra-qa.y,width:Math.max(1,la.width/ra),height:Math.max(1,la.height/ra),border:na,smooth:ea.smooth}}else ea=null}null!=ea&&(!0!==ea.smooth||S?this.useCssTransforms?this.fitBoundsCssTransform(ea,ea.border):this.fitWindow(ea,+ea.border):(I++,this.smoothFitWindow(ea,ea.border,Y)))}0<aa.length&&(ea=null==Z.scroll||null==Z.scroll.border||""===Z.scroll.border||isNaN(parseFloat(Z.scroll.border))?null:parseFloat(Z.scroll.border),null==Z.scroll||!0!==Z.scroll.smooth||S?this.useCssTransforms?this.scrollCellToVisibleCssTransform(aa[0],ea):this.scrollCellToVisibleBorder(aa[0],ea):(I++,this.smoothScrollCellToVisible(aa[0],ea,Y)));null!=A&&null!=Z.explore&&Graph.exploreFromCell(this,A,Z.explore);if(null!=Z.tags){if(null!=Z.tags.toggle)for(ea=+Z.tags.toggle,0==ea.length&&(ea=this.getAllTags()),aa=0;aa<ea.length;aa++)this.toggleHiddenTag(ea[aa]);ea=null;null!=Z.tags.hidden&&(null==ea&&(ea=[]),ea=ea.concat(Z.tags.hidden));if(null!=Z.tags.visible)for(null==ea&&(ea=[]),la=this.getAllTags(),aa=0;aa<la.length;aa++)0>mxUtils.indexOf(Z.tags.visible,la[aa])&&0>mxUtils.indexOf(ea,la[aa])&&ea.push(la[aa]);null!=ea&&this.setHiddenTags(ea);this.refresh()}if(0<da.length){I++;aa=null!=Z.steps?Z.steps:30;ea=Z.delay;la=["wipeIn","wipeOut","popIn","popOut"];+ra=null;for(qa=0;qa<la.length;qa++)na=Z[la[qa]],null!=na&&null!=na.delay&&(ra=null==ra?na.delay:Math.max(ra,na.delay));null!=ra&&(ea=ra/aa);this.executeAnimations(da,Y,S?1:aa,S?0:ea)}}while(L<d.length&&!0===d[L].immediate&&!this.stoppingCustomActions);0==I?ca():Q()}else this.stoppingCustomActions=this.executingCustomActions=!1,Q(),null!=p&&p()}),ca=mxUtils.bind(this,function(){try{X()}catch(S){throw this.stoppingCustomActions=this.executingCustomActions=!1,Q(),S;}});ca()}};Graph.prototype.doUpdateCustomLinksForCell=+function(d,p){var A=this.getLinkForCell(p);null!=A&&"data:action/json,"==A.substring(0,17)&&this.setLinkForCell(p,this.updateCustomLink(d,A));if(this.isHtmlLabel(p)){var G=document.createElement("div");G.innerHTML=Graph.sanitizeHtml(this.getLabel(p));for(var I=G.getElementsByTagName("a"),L=!1,P=0;P<I.length;P++)A=I[P].getAttribute("href"),null!=A&&"data:action/json,"==A.substring(0,17)&&(I[P].setAttribute("href",this.updateCustomLink(d,A)),L=!0);L&&this.labelChanged(p,G.innerHTML)}};Graph.prototype.updateCustomLink=+function(d,p){if("data:action/json,"==p.substring(0,17))try{var A=JSON.parse(p.substring(17));null!=A.actions&&(this.updateCustomLinkActions(d,A.actions),p="data:action/json,"+JSON.stringify(A))}catch(G){}return p};Graph.prototype.updateCustomLinkActions=function(d,p){for(var A=0;A<p.length;A++){var G=p[A],I;for(I in G)this.updateCustomLinkAction(d,G[I],"cells"),this.updateCustomLinkAction(d,G[I],"excludeCells"),this.updateCustomLinkAction(d,G[I],"layers")}};Graph.prototype.updateCustomLinkAction=+function(d,p,A){if(null!=p&&null!=p[A]){for(var G=[],I=0;I<p[A].length;I++)if("*"==p[A][I])G.push(p[A][I]);else{var L=d[p[A][I]];null!=L?""!=L&&G.push(L):G.push(p[A][I])}p[A]=G}};Graph.prototype.getCellsForAction=function(d,p,A){var G="or"===d.tagsMatch?"or":"and",I={},L=[],P=function(Q){for(var ba=0;ba<Q.length;ba++){var W=Q[ba].id;I[W]||(I[W]=!0,L.push(Q[ba]))}};P(this.getCellsById(d.cells));P(this.getCellsForTags(d.tags,null,p,!1,G));P(A?this.getLayerCells(d.layers):this.getCellsForLayers(d.layers));+if(null!=d.excludeCells&&0<d.excludeCells.length){p={};G=!1;for(A=0;A<d.excludeCells.length;A++){if("*"===d.excludeCells[A]){G=!0;break}p[d.excludeCells[A]]=!0}if(G)return[];d=[];for(A=0;A<L.length;A++)p[L[A].id]||d.push(L[A]);return d}return L};Graph.prototype.getCellsById=function(d){var p=[];if(null!=d)for(var A=0;A<d.length;A++)if("*"==d[A]){var G=this.model.getRoot();p=p.concat(this.model.filterDescendants(function(L){return L!=G},G))}else{var I=this.model.getCell(d[A]);null!=I&&p.push(I)}return p};+Graph.prototype.getCellsForLayers=function(d){var p=[];if(Array.isArray(d))for(var A=0;A<d.length;A++){var G=this.model.getCell(d[A]);null!=G&&(p=p.concat(this.model.filterDescendants(function(I){return I!=G},G)))}return p};Graph.prototype.getLayerCells=function(d){var p=[];if(Array.isArray(d))for(var A=0;A<d.length;A++){var G=this.model.getCell(d[A]);null!=G&&p.push(G)}return p};var T=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(d){return T.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(d))};+Graph.prototype.setHiddenTags=function(d){this.hiddenTags=d;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(d){var p=mxUtils.indexOf(this.hiddenTags,d);0>p?this.hiddenTags.push(d):0<=p&&this.hiddenTags.splice(p,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(d){if(null==d||0==d.length||0==this.hiddenTags.length)return!1;d=d.split(" ");if(d.length>this.hiddenTags.length)return!1;for(var p=0;p<d.length;p++)if(0>+mxUtils.indexOf(this.hiddenTags,d[p]))return!1;return!0};Graph.prototype.getCellsForTags=function(d,p,A,G,I){var L=[];I="or"===I;if(null!=d){p=null!=p?p:this.model.getDescendants(this.model.getRoot());for(var P=0,Q={},ba=0;ba<d.length;ba++)0<d[ba].length&&(Q[d[ba]]=!0,P++);for(ba=0;ba<p.length;ba++)if(A&&this.model.getParent(p[ba])==this.model.root||this.model.isVertex(p[ba])||this.model.isEdge(p[ba])){var W=this.getTagsForCell(p[ba]),Y=!1;if(0<W.length&&(W=W.split(" "),I||W.length>=d.length)){for(var X=+Y=0;X<W.length&&Y<P;X++)null!=Q[W[X]]&&Y++;Y=I?0<Y:Y==P}Y&&(1!=G||this.isCellVisible(p[ba]))&&L.push(p[ba])}}return L};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(d){for(var p=null,A=[],G=0;G<d.length;G++){var I=this.getTagsForCell(d[G]);A=[];if(0<I.length){I=I.split(" ");for(var L={},P=0;P<I.length;P++)if(null==p||null!=p[I[P]])L[I[P]]=!0,A.push(I[P]);p=L}else return[]}return A};+Graph.prototype.getTagsForCells=function(d){for(var p=[],A={},G=0;G<d.length;G++){var I=this.getTagsForCell(d[G]);if(0<I.length){I=I.split(" ");for(var L=0;L<I.length;L++)null==A[I[L]]&&(A[I[L]]=!0,p.push(I[L]))}}return p};Graph.prototype.getTagsForCell=function(d){return this.getAttributeForCell(d,"tags","")};Graph.prototype.addTagsForCells=function(d,p){if(0<d.length&&0<p.length){this.model.beginUpdate();try{for(var A=0;A<d.length;A++){for(var G=this.getTagsForCell(d[A]),I=G.split(" "),L=!1,P=0;P<+p.length;P++){var Q=mxUtils.trim(p[P]);""!=Q&&0>mxUtils.indexOf(I,Q)&&(G=0<G.length?G+" "+Q:Q,L=!0)}L&&this.setAttributeForCell(d[A],"tags",G)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(d,p){if(0<d.length&&0<p.length){this.model.beginUpdate();try{for(var A=0;A<d.length;A++){var G=this.getTagsForCell(d[A]);if(0<G.length){for(var I=G.split(" "),L=!1,P=0;P<p.length;P++){var Q=mxUtils.indexOf(I,p[P]);0<=Q&&(I.splice(Q,1),L=!0)}L&&this.setAttributeForCell(d[A],"tags",+I.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(d){this.model.beginUpdate();try{for(var p=0;p<d.length;p++)this.model.setVisible(d[p],!this.model.isVisible(d[p]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(d,p){this.model.beginUpdate();try{for(var A=0;A<d.length;A++)this.model.setVisible(d[A],p)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=function(d,p,A,G){for(var I=0;I<d.length;I++)this.highlightCell(d[I],p,+A,G)};Graph.prototype.highlightCell=function(d,p,A,G,I){p=null!=p?p:mxConstants.DEFAULT_VALID_COLOR;A=null!=A?A:1E3;d=this.view.getState(d);var L=null;null!=d&&(I=null!=I?I:4,I=Math.max(I+1,mxUtils.getValue(d.style,mxConstants.STYLE_STROKEWIDTH,1)+I),L=new mxCellHighlight(this,p,I,!1),null!=G&&(L.opacity=G),L.highlight(d),window.setTimeout(function(){null!=L.shape&&(mxUtils.setPrefixedStyle(L.shape.node.style,"transition","all 1200ms ease-in-out"),L.shape.node.style.opacity=0);window.setTimeout(function(){L.destroy()},+1200)},A));return L};Graph.prototype.addSvgShadow=function(d,p,A,G){G=null!=G?G:!0;var I=Math.ceil(this.svgShadowSize*this.svgShadowBlur);null!=A&&A||(p=null!=p?p:d.getElementsByTagName("g")[0],null!=p&&(this.updateShadowFilter(p,!0),!isNaN(parseInt(d.getAttribute("width")))&&G&&(d.setAttribute("width",parseInt(d.getAttribute("width"))+I),d.setAttribute("height",parseInt(d.getAttribute("height"))+I),p=d.getAttribute("viewBox"),null!=p&&0<p.length&&(p=p.split(" "),3<p.length&&(w=parseFloat(p[2])+I,+h=parseFloat(p[3])+I,d.setAttribute("viewBox",p[0]+" "+p[1]+" "+w+" "+h))))));return I};Graph.prototype.updateShadowFilter=function(d,p){mxClient.IS_SF||(p?(p=mxUtils.getLightDarkColor(this.svgShadowColor,this.svgShadowOpacity),d.style.filter="drop-shadow("+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowBlur)/100+"px "+p.cssText+")"):d.style.filter="")};Graph.prototype.setShadowVisible=function(d,p){p=null!=p?p:!0;this.shadowVisible=+d;this.updateShadowFilter(this.view.getDrawPane(),this.shadowVisible);p&&this.fireEvent(new mxEventObject("shadowVisibleChanged"));return Math.ceil(this.svgShadowSize*this.svgShadowBlur)};Graph.prototype.checkDefaultParent=function(){null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer())};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var d=this.model.getChildCount(this.model.root),p=0;do var A=this.model.getChildAt(this.model.root,+p);while(p++<d&&"1"==mxUtils.getValue(this.getCellStyle(A),"locked","0"));null!=A&&this.setDefaultParent(A)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.bpmn2=+[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.c4=[SHAPES_PATH+"/mxC4.js"];mxStencilRegistry.libraries.cisco19=[SHAPES_PATH+"/mxCisco19.js",STENCIL_PATH+"/cisco19.xml"];mxStencilRegistry.libraries.cisco_safe=[SHAPES_PATH+"/mxCiscoSafe.js",STENCIL_PATH+"/cisco_safe/architecture.xml",STENCIL_PATH+"/cisco_safe/business_icons.xml",STENCIL_PATH+"/cisco_safe/capability.xml",STENCIL_PATH+"/cisco_safe/design.xml",STENCIL_PATH+"/cisco_safe/iot_things_icons.xml",+STENCIL_PATH+"/cisco_safe/people_places_things_icons.xml",STENCIL_PATH+"/cisco_safe/security_icons.xml",STENCIL_PATH+"/cisco_safe/technology_icons.xml",STENCIL_PATH+"/cisco_safe/threat.xml"];mxStencilRegistry.libraries.dfd=[SHAPES_PATH+"/mxDFD.js"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.kubernetes=[SHAPES_PATH+"/mxKubernetes.js",STENCIL_PATH+"/kubernetes.xml",STENCIL_PATH+"/kubernetes2.xml"];mxStencilRegistry.libraries.flowchart=[SHAPES_PATH+"/mxFlowchart.js",+STENCIL_PATH+"/flowchart.xml"];mxStencilRegistry.libraries.ios=[SHAPES_PATH+"/mockup/mxMockupiOS.js"];mxStencilRegistry.libraries.rackGeneral=[SHAPES_PATH+"/rack/mxRack.js",STENCIL_PATH+"/rack/general.xml"];mxStencilRegistry.libraries.rackF5=[STENCIL_PATH+"/rack/f5.xml"];mxStencilRegistry.libraries.lean_mapping=[SHAPES_PATH+"/mxLeanMap.js",STENCIL_PATH+"/lean_mapping.xml"];mxStencilRegistry.libraries.basic=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/basic.xml"];mxStencilRegistry.libraries.ios7icons=+[STENCIL_PATH+"/ios7/icons.xml"];mxStencilRegistry.libraries.ios7ui=[SHAPES_PATH+"/ios7/mxIOS7Ui.js",STENCIL_PATH+"/ios7/misc.xml"];mxStencilRegistry.libraries.android=[SHAPES_PATH+"/mxAndroid.js",STENCIL_PATH+"/android/android.xml"];mxStencilRegistry.libraries["electrical/abstract"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/abstract.xml"];mxStencilRegistry.libraries["electrical/logic_gates"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/logic_gates.xml"];mxStencilRegistry.libraries["electrical/miscellaneous"]=+[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/miscellaneous.xml"];mxStencilRegistry.libraries["electrical/signal_sources"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/signal_sources.xml"];mxStencilRegistry.libraries["electrical/electro-mechanical"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/electro-mechanical.xml"];mxStencilRegistry.libraries["electrical/transmission"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/transmission.xml"];mxStencilRegistry.libraries.infographic=+[SHAPES_PATH+"/mxInfographic.js"];mxStencilRegistry.libraries["mockup/buttons"]=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];+mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",SHAPES_PATH++"/mxBasic.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+"/gmdl.xml"];mxStencilRegistry.libraries.gcp2=[SHAPES_PATH+"/mxGCP2.js",STENCIL_PATH+"/gcp2.xml"];mxStencilRegistry.libraries.ibm=[SHAPES_PATH+"/mxIBM.js",STENCIL_PATH+"/ibm.xml"];mxStencilRegistry.libraries.ibmcloud=[STENCIL_PATH+"/ibm_cloud.xml"];mxStencilRegistry.libraries.cabinets=[SHAPES_PATH+"/mxCabinets.js",STENCIL_PATH+"/cabinets.xml"];mxStencilRegistry.libraries.archimate=+[SHAPES_PATH+"/mxArchiMate.js"];mxStencilRegistry.libraries.archimate4=[SHAPES_PATH+"/mxArchiMate3.js",SHAPES_PATH+"/mxArchiMate4.js"];mxStencilRegistry.libraries.archimate3=[SHAPES_PATH+"/mxArchiMate3.js"];mxStencilRegistry.libraries.sysml=[SHAPES_PATH+"/mxSysML.js"];mxStencilRegistry.libraries.eip=[SHAPES_PATH+"/mxEip.js",STENCIL_PATH+"/eip.xml"];mxStencilRegistry.libraries.networks=[SHAPES_PATH+"/mxNetworks.js",STENCIL_PATH+"/networks.xml"];mxStencilRegistry.libraries.networks2=[SHAPES_PATH+"/mxNetworks2.js",+STENCIL_PATH+"/networks2.xml"];mxStencilRegistry.libraries.atlassian2=[SHAPES_PATH+"/mxAtlassian2.js",STENCIL_PATH+"/atlassian2.xml"];mxStencilRegistry.libraries.aws3d=[SHAPES_PATH+"/mxAWS3D.js",STENCIL_PATH+"/aws3d.xml"];mxStencilRegistry.libraries.aws4=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.aws4b=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.uml25=[SHAPES_PATH+"/mxUML25.js"];mxStencilRegistry.libraries.veeam=[STENCIL_PATH++"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam.xml"];mxStencilRegistry.libraries.veeam2=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam2.xml"];mxStencilRegistry.libraries.pid2inst=[SHAPES_PATH+"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=+[STENCIL_PATH+"/pid/flow_sensors.xml"];mxStencilRegistry.libraries.salesforce=[STENCIL_PATH+"/salesforce.xml"];mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=function(d){var p=null;null!=d&&0<d.length&&("ER"==d.substring(0,2)?p="mxgraph.er":"sysML"==d.substring(0,5)&&(p="mxgraph.sysml"));return p};var V=mxMarker.createMarker;mxMarker.createMarker=function(d,p,A,G,I,L,P,+Q,ba,W){if(null!=A&&null==mxMarker.markers[A]){var Y=this.getPackageForType(A);null!=Y&&mxStencilRegistry.getStencil(Y)}return V.apply(this,arguments)};var fa=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(d,p,A,G,I,L){"1"==mxUtils.getValue(p.style,"lineShape",null)&&d.setFillColor(mxUtils.getValue(p.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return fa.apply(this,arguments)};PrintDialog.prototype.create=function(d,p,A,G){function I(){aa.value=Math.max(1,Math.min(ca,Math.max(parseInt(aa.value),parseInt(N.value))));N.value=Math.max(1,Math.min(ca,Math.min(parseInt(aa.value),parseInt(N.value))))}function L(Ha){d.lastPrintPagesRadioChecked=da.checked;d.lastPrintSelectionOnlyChecked=ea.checked;d.lastPrintCropRadioChecked=ra.checked;d.lastPrintFitRadioChecked=qa.checked;da.checked&&N.value<aa.value?(d.lastPrintPagesFromInput=N.value,d.lastPrintPagesToInput=aa.value):(d.lastPrintPagesFromInput=null,d.lastPrintPagesToInput=null);ma.value=Math.max(1,Math.min(1600,parseInt(ma.value)))+"%";d.lastPrintZoom=ma.value;d.lastPrintBorder=ha.value;d.lastPrintGrid=ka.checked;d.lastPrintShadow=ta.checked;d.lastPrintTransparent=Ca.checked;d.lastPrintInclude=sa.checked;d.lastPrintIcons=Ea.checked;d.lastPrintSheetsAcross=oa.value;d.lastPrintSheetsDown=Aa.value;var Oa={};Oa.border=parseInt(ha.value);Oa.scale=parseInt(ma.value)/100;Oa.grid=ka.checked;Oa.shadows=ta.checked;Oa.transparent=Ca.checked;Oa.includeCopy=sa.checked;Oa.icons=Ea.checked&&EditorUi.isElectronApp;Oa.sheetsAcross=parseInt(oa.value);Oa.sheetsDown=parseInt(Aa.value);Oa.pagesFrom=parseInt(N.value);Oa.pagesTo=parseInt(aa.value);Oa.allPages=S.checked;Oa.selection=ea.checked;Oa.pageView=la.checked;Oa.crop=ra.checked;Oa.fit=qa.checked;return null!=A?A(!Ha,Oa):d.print(!Ha,Oa)}function P(Ha){try{d.hideDialog(),null!=A?L(Ha):d.spinner.spin(document.body,mxResources.get("updatingPreview"))&&window.setTimeout(function(){try{L(Ha),d.spinner.stop()}catch(Oa){d.handleError(Oa)}},0)}catch(Oa){d.handleError(Oa)}}var Q=d.editor.graph,ba=document.createElement("div");@@ -14019,187 +14106,187 @@ Q)}catch(ba){}p.graph.executeCustomActions(Graph.flattenAnimationActions(A.sliced.defer?window.setTimeout(I,0):I()}};Editor.AnimationPlayer.prototype.stop=function(){this.cancelled=!0;null!=this.graph&&(this.graph.stoppingCustomActions=!0);for(var d=[],p=this.collectReferencedCells(),A=0;A<p.length;A++)this.graph.getModel().isEdge(p[A])&&d.push(p[A]);0<d.length&&Editor.toggleFlowAnimation(this.graph,d,"stop")};Editor.toggleFlowAnimation=function(d,p,A){A=A||"toggle";for(var G=0;G<p.length;G++)if(d.getModel().isEdge(p[G])){var I=d.view.getState(p[G]);if(null!=I&&null!=I.shape){var L=null!=I.shape.getFlowAnimationPath?I.shape.getFlowAnimationPath():null;if(null!=L){var P="mxEdgeFlow"==L.getAttribute("class"),Q="start"==A||"toggle"==A&&!P;P="stop"==A||"toggle"==A&&P;I="1"==mxUtils.getValue(I.style,mxConstants.STYLE_DASHED,"0");P?(L.removeAttribute("class"),I||L.removeAttribute("stroke-dasharray")):Q&&(L.setAttribute("class","mxEdgeFlow"),I||L.setAttribute("stroke-dasharray","8"))}}}};Editor.playAnimationOnGraph=function(d,p){var A=d.getModel().getRoot(),G=null;null!=A.value&&"object"==typeof A.value&&(G=A.value.getAttribute("animation"));if(null==G||""==G)return null;try{var I=Editor.parseAnimationData(G)}catch(P){return null}if(!I.steps||0==I.steps.length||!1===I.enabled)return null;A={};if(null!=p)for(var L in p)A[L]=p[L];null==A.loop&&(A.loop=I.loop);null==A.defer&&(A.defer=!0);d=new Editor.AnimationPlayer(d,I);d.play(A);return d};Editor.installAnimationStyles=function(){if(!Editor.animationStylesInstalled){Editor.animationStylesInstalled=!0;try{var d=document.createElement("style");-d.type="text/css";d.appendChild(document.createTextNode(".mxEdgeFlow { animation: mxEdgeFlow 0.5s linear infinite; }@keyframes mxEdgeFlow { to { stroke-dashoffset: -16; } }"));document.getElementsByTagName("head")[0].appendChild(d)}catch(p){}}};Editor.installAnimationStyles()})();(function(){EditorUi.VERSION="31.4.2";EditorUi.CSV_ELK_LAYOUTS={verticalflow:{layout:"elkLayered",config:{"elk.direction":"DOWN","elk.layered.layering.strategy":"LONGEST_PATH","elk.layered.nodePlacement.bk.fixedAlignment":"BALANCED","elk.edgeRouting":"POLYLINE",edgeStyle:"elkCompat",includeEdgeLabels:!1,includeVertexLabels:!1,portSpread:!0,resizeNodes:!1}},horizontalflow:{layout:"elkLayered",config:{"elk.direction":"RIGHT","elk.layered.layering.strategy":"LONGEST_PATH","elk.layered.nodePlacement.bk.fixedAlignment":"BALANCED",+d.type="text/css";d.appendChild(document.createTextNode(".mxEdgeFlow { animation: mxEdgeFlow 0.5s linear infinite; }@keyframes mxEdgeFlow { to { stroke-dashoffset: -16; } }"));document.getElementsByTagName("head")[0].appendChild(d)}catch(p){}}};Editor.installAnimationStyles()})();(function(){EditorUi.VERSION="31.4.4";EditorUi.CSV_ELK_LAYOUTS={verticalflow:{layout:"elkLayered",config:{"elk.direction":"DOWN","elk.layered.layering.strategy":"LONGEST_PATH","elk.layered.nodePlacement.bk.fixedAlignment":"BALANCED","elk.edgeRouting":"POLYLINE",edgeStyle:"elkCompat",includeEdgeLabels:!1,includeVertexLabels:!1,portSpread:!0,resizeNodes:!1}},horizontalflow:{layout:"elkLayered",config:{"elk.direction":"RIGHT","elk.layered.layering.strategy":"LONGEST_PATH","elk.layered.nodePlacement.bk.fixedAlignment":"BALANCED","elk.edgeRouting":"POLYLINE",edgeStyle:"elkCompat",includeEdgeLabels:!1,includeVertexLabels:!1,portSpread:!0,resizeNodes:!1}},elkRadial:{layout:"elkRadial",config:{edgeStyle:"elkCompat"}},elkOrganic:{layout:"elkOrganic",config:{edgeStyle:"elkCompat"}},elkStress:{layout:"elkStress",config:{edgeStyle:"elkCompat"}}};EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)||/.*\.cdn\.prod\.atlassian-dev\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&"test.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.enabledTemplateSections=null;EditorUi.customTemplates=null;EditorUi.cacheUrl=window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;EditorUi.nativeFileSupport=!mxClient.IS_OP&&!EditorUi.isElectronApp&&"1"!=urlParams.extAuth&&"showSaveFilePicker"in window&&"showOpenFilePicker"in window;EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://www.drawio.com/doc/faq/scratchpad";EditorUi.enableHtmlEditOption=!0;EditorUi.isMermaidSupported=function(){return window.isMermaidEnabled&&"undefined"!==typeof mxMermaidToDrawio&&"function"===typeof mxMermaidToDrawio.parseText};EditorUi.isNativePlantUmlSupported=function(){return"undefined"!==typeof mxPlantUmlToDrawio&&"function"===typeof mxPlantUmlToDrawio.parseText};EditorUi.isNativeGliffySupported=function(){return"undefined"!==typeof mxGliffyToDrawio&&"function"===typeof mxGliffyToDrawio.convert};EditorUi.defaultMermaidConfig={};EditorUi.legacyMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!1,sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{useWidth:1E3,useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};EditorUi.getInsertMermaidConfig=function(){return EditorUi.isMermaidConfigured()?mxUtils.clone(EditorUi.defaultMermaidConfig):null};EditorUi.isMermaidConfigured=function(){return null!=EditorUi.defaultMermaidConfig&&0<Object.keys(EditorUi.defaultMermaidConfig).length};EditorUi.mermaidImageBorder=-10;EditorUi.logError=function(c,g,l,n,r,t,v){if(null!=c){r=null!=r?r:Error(c);r.stack=null!=r.stack?r.stack:"";t=null!=t?t:0>c.indexOf("NetworkError")&&0>c.indexOf("SecurityError")&&0>c.indexOf("NS_ERROR_FAILURE")&&0>c.indexOf("out of memory")?"SEVERE":"CONFIG";try{EditorUi.enableLogging&&"1"!=urlParams.dev&&c!=EditorUi.lastErrorMessage&&0>c.indexOf("extension:")&&0>c.indexOf("ResizeObserver loop completed with undelivered notifications")&&0>r.stack.indexOf("extension:")&&0>r.stack.indexOf("<anonymous>:")&&+10;EditorUi.logError=function(c,f,l,n,r,t,v){if(null!=c){r=null!=r?r:Error(c);r.stack=null!=r.stack?r.stack:"";t=null!=t?t:0>c.indexOf("NetworkError")&&0>c.indexOf("SecurityError")&&0>c.indexOf("NS_ERROR_FAILURE")&&0>c.indexOf("out of memory")?"SEVERE":"CONFIG";try{EditorUi.enableLogging&&"1"!=urlParams.dev&&c!=EditorUi.lastErrorMessage&&0>c.indexOf("extension:")&&0>c.indexOf("ResizeObserver loop completed with undelivered notifications")&&0>r.stack.indexOf("extension:")&&0>r.stack.indexOf("<anonymous>:")&&0>r.stack.indexOf("/math4/es5/")&&0>r.stack.indexOf("blob:")&&(0>c.indexOf("strict mode")||0>r.stack.indexOf("extensions.min.js"))&&(EditorUi.lastErrorMessage=c,(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"")+"/log?severity="+t+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(c)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(l)+(null!=n?":colno:"+encodeURIComponent(n):"")+(""!=r.stack?"&stack="+encodeURIComponent(r.stack):-""))}catch(B){}try{v||null==window.console||console.error(t,c,g,l,n,r)}catch(B){}}};EditorUi.logEvent=function(c){if("1"==urlParams.dev)EditorUi.debug("logEvent",c);else if(EditorUi.enableLogging)try{var g=null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"";(new Image).src=g+"/images/1x1.png?v="+encodeURIComponent(EditorUi.VERSION)+(null!=c?"&data="+encodeURIComponent(JSON.stringify(c)):"")}catch(l){}};EditorUi.sendReport=function(c,g){if("1"==urlParams.dev)EditorUi.debug("sendReport",c);else if(EditorUi.enableLogging)try{g=-null!=g?g:5E4,c.length>g&&(c=c.substring(0,g)+"\n...[SHORTENED]"),mxUtils.post("/email","version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&data="+encodeURIComponent(c))}catch(l){}};EditorUi.debug=function(){try{if(null!=window.console&&"1"==urlParams.test){for(var c=[(new Date).toISOString()],g=0;g<arguments.length;g++)c.push(arguments[g]);mxClient.IS_IOS?(mxLog.show(),mxLog.debug(c.join(" "))):console.log.apply(console,c)}}catch(l){}};EditorUi.removeChildNodes=-function(c){for(;null!=c.firstChild;)c.removeChild(c.firstChild)};EditorUi.embedSvgImages=function(c){c=c.getElementsByTagName("image");for(var g=[],l=0;l<c.length;l++)g.push(c[l]);for(l=0;l<g.length;l++)EditorUi.replaceSvgImage(g[l])};EditorUi.replaceSvgImage=function(c){try{var g=null;g=null==c.getAttributeNS?c.getAttribute("xlink:href"):c.getAttributeNS(mxConstants.NS_XLINK,"href");var l=EditorUi.getSvgSubtree(g);if(null!=l&&"svg"==l.nodeName){var n=l.getAttribute("width"),r=l.getAttribute("height");+""))}catch(B){}try{v||null==window.console||console.error(t,c,f,l,n,r)}catch(B){}}};EditorUi.logEvent=function(c){if("1"==urlParams.dev)EditorUi.debug("logEvent",c);else if(EditorUi.enableLogging)try{var f=null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"";(new Image).src=f+"/images/1x1.png?v="+encodeURIComponent(EditorUi.VERSION)+(null!=c?"&data="+encodeURIComponent(JSON.stringify(c)):"")}catch(l){}};EditorUi.sendReport=function(c,f){if("1"==urlParams.dev)EditorUi.debug("sendReport",c);else if(EditorUi.enableLogging)try{f=+null!=f?f:5E4,c.length>f&&(c=c.substring(0,f)+"\n...[SHORTENED]"),mxUtils.post("/email","version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&data="+encodeURIComponent(c))}catch(l){}};EditorUi.debug=function(){try{if(null!=window.console&&"1"==urlParams.test){for(var c=[(new Date).toISOString()],f=0;f<arguments.length;f++)c.push(arguments[f]);mxClient.IS_IOS?(mxLog.show(),mxLog.debug(c.join(" "))):console.log.apply(console,c)}}catch(l){}};EditorUi.removeChildNodes=+function(c){for(;null!=c.firstChild;)c.removeChild(c.firstChild)};EditorUi.embedSvgImages=function(c){c=c.getElementsByTagName("image");for(var f=[],l=0;l<c.length;l++)f.push(c[l]);for(l=0;l<f.length;l++)EditorUi.replaceSvgImage(f[l])};EditorUi.replaceSvgImage=function(c){try{var f=null;f=null==c.getAttributeNS?c.getAttribute("xlink:href"):c.getAttributeNS(mxConstants.NS_XLINK,"href");var l=EditorUi.getSvgSubtree(f);if(null!=l&&"svg"==l.nodeName){var n=l.getAttribute("width"),r=l.getAttribute("height");c.hasAttribute("x")&&l.setAttribute("x",c.getAttribute("x"));c.hasAttribute("y")&&l.setAttribute("y",c.getAttribute("y"));l.setAttribute("width",c.getAttribute("width"));l.setAttribute("height",c.getAttribute("height"));l.style.fontFamily="initial";null!=c.getAttribute("preserveAspectRatio")&&l.setAttribute("preserveAspectRatio",c.getAttribute("preserveAspectRatio"));0<n&&0<r&&null==l.getAttribute("viewBox")&&l.setAttribute("viewBox","0 0 "+n+" "+r);var t=mxUtils.createElementNs(l.ownerDocument,mxConstants.NS_SVG,-"g");t.appendChild(l);c.hasAttribute("id")&&t.setAttribute("id",c.getAttribute("id"));c.hasAttribute("transform")&&t.setAttribute("transform",c.getAttribute("transform"));c.hasAttribute("opacity")&&t.setAttribute("opacity",c.getAttribute("opacity"));c.parentNode.replaceChild(t,c)}}catch(v){}};EditorUi.getSvgSubtree=function(c){var g=Graph.getSvgFromDataUri(c);c=null;if(null!=g){c=Graph.sanitizeNode(mxUtils.parseXml(g).documentElement);g=c.getElementsByTagName("style");if(0<g.length){var l="svg-image-"+-Editor.guid();c.setAttribute("id",l);for(var n=document.implementation.createHTMLDocument(""),r=document.createElement("style"),t=0;t<g.length;t++){r.textContent=g[t].textContent;n.body.appendChild(r);for(var v="",B=0;B<r.sheet.cssRules.length;B++){var E=r.sheet.cssRules[B];if(null!=E.selectorText){for(var K=E.selectorText.split(","),C=0;C<K.length;C++)K[C]="#"+l+" "+K[C];E.selectorText=K.join(",")}v+=E.cssText+"\n"}g[t].textContent=v}}null!=c.style&&"light dark"==c.style.getPropertyValue("color-scheme")&&-c.style.removeProperty("color-scheme");g=c.getElementsByTagName("*");for(l=0;l<g.length;l++)g[l].removeAttribute("data-cell-id")}return c};EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';EditorUi.prototype.emptyLibraryXml="<mxlibrary>[]</mxlibrary>";EditorUi.prototype.isDiagramDataEmpty=function(c){if(null==c||0==c.length||c==this.emptyDiagramXml)return!0;try{var g=mxUtils.parseXml(c).documentElement;c=function(B){return null==-B||2>=B.getElementsByTagName("mxCell").length};if("mxGraphModel"==g.nodeName)return c(g);if("mxfile"==g.nodeName){var l=g.getElementsByTagName("diagram");if(0==l.length)return!0;for(g=0;g<l.length;g++){var n=l[g].getElementsByTagName("mxGraphModel");if(0<n.length){if(!c(n[0]))return!1}else{var r=mxUtils.getNodeValue(l[g]);if(null!=r&&0<r.length){var t=Graph.decompress(r);if(null!=t&&0<t.length){var v=mxUtils.parseXml(t);if(!c(v.documentElement))return!1}}}}return!0}}catch(B){}return!1};EditorUi.prototype.mode=+"g");t.appendChild(l);c.hasAttribute("id")&&t.setAttribute("id",c.getAttribute("id"));c.hasAttribute("transform")&&t.setAttribute("transform",c.getAttribute("transform"));c.hasAttribute("opacity")&&t.setAttribute("opacity",c.getAttribute("opacity"));c.parentNode.replaceChild(t,c)}}catch(v){}};EditorUi.getSvgSubtree=function(c){var f=Graph.getSvgFromDataUri(c);c=null;if(null!=f){c=Graph.sanitizeNode(mxUtils.parseXml(f).documentElement);f=c.getElementsByTagName("style");if(0<f.length){var l="svg-image-"++Editor.guid();c.setAttribute("id",l);for(var n=document.implementation.createHTMLDocument(""),r=document.createElement("style"),t=0;t<f.length;t++){r.textContent=f[t].textContent;n.body.appendChild(r);for(var v="",B=0;B<r.sheet.cssRules.length;B++){var E=r.sheet.cssRules[B];if(null!=E.selectorText){for(var K=E.selectorText.split(","),C=0;C<K.length;C++)K[C]="#"+l+" "+K[C];E.selectorText=K.join(",")}v+=E.cssText+"\n"}f[t].textContent=v}}null!=c.style&&"light dark"==c.style.getPropertyValue("color-scheme")&&+c.style.removeProperty("color-scheme");f=c.getElementsByTagName("*");for(l=0;l<f.length;l++)f[l].removeAttribute("data-cell-id")}return c};EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';EditorUi.prototype.emptyLibraryXml="<mxlibrary>[]</mxlibrary>";EditorUi.prototype.isDiagramDataEmpty=function(c){if(null==c||0==c.length||c==this.emptyDiagramXml)return!0;try{var f=mxUtils.parseXml(c).documentElement;c=function(B){return null==+B||2>=B.getElementsByTagName("mxCell").length};if("mxGraphModel"==f.nodeName)return c(f);if("mxfile"==f.nodeName){var l=f.getElementsByTagName("diagram");if(0==l.length)return!0;for(f=0;f<l.length;f++){var n=l[f].getElementsByTagName("mxGraphModel");if(0<n.length){if(!c(n[0]))return!1}else{var r=mxUtils.getNodeValue(l[f]);if(null!=r&&0<r.length){var t=Graph.decompress(r);if(null!=t&&0<t.length){var v=mxUtils.parseXml(t);if(!c(v.documentElement))return!1}}}}return!0}}catch(B){}return!1};EditorUi.prototype.mode=null;EditorUi.prototype.timeout=Editor.prototype.timeout;EditorUi.prototype.defaultCustomShapeStyle="shape=stencil(tZRtTsQgEEBPw1+DJR7AoN6DbWftpAgE0Ortd/jYRGq72R+YNE2YgTePloEJGWblgA18ZuKFDcMj5/Sm8boZq+BgjCX4pTyqk6ZlKROitwusOMXKQDODx5iy4pXxZ5qTHiFHawxB0JrQZH7lCabQ0Fr+XWC1/E8zcsT/gAi+Subo2/3Mh6d/oJb5nU1b5tW7r2knautaa3T+U32o7f7vZwpJkaNDLORJjcu7t59m2jXxqX9un+tt022acsfmoKaQZ+vhhswZtS6Ne/ThQGt0IV0N3Yyv6P3CeT9/tHO0XFI5cAE=);whiteSpace=wrap;html=1;";EditorUi.prototype.maxBackgroundSize=1600;EditorUi.prototype.maxImageSize=1200;EditorUi.prototype.maxTextWidth=520;EditorUi.prototype.resampleThreshold=1E5;EditorUi.prototype.maxImageBytes=2E6;EditorUi.prototype.maxBackgroundBytes=25E5;EditorUi.prototype.maxTextBytes=5E5;EditorUi.prototype.maxPrintPageCount=1E3;EditorUi.prototype.maxCanvasExportArea=67108864;EditorUi.prototype.currentFile=null;EditorUi.prototype.printPdfExport=!1;EditorUi.prototype.pdfPageExport=!0;EditorUi.prototype.formatEnabled="0"!=urlParams.format;EditorUi.prototype.sidebarEnabled="0"!=urlParams.sidebar;EditorUi.prototype.insertTemplateEnabled=!0;EditorUi.prototype.closableScratchpad=!0;EditorUi.prototype.embedMessageSource=null;EditorUi.prototype.defaultCompact=!1;EditorUi.prototype.noAutoFocus=!1;EditorUi.prototype.embedExportBorder=8;EditorUi.prototype.embedExportTheme="auto";EditorUi.prototype.embedExportBackground=null;EditorUi.prototype.shareCursorPosition=!0;EditorUi.prototype.showRemoteCursors=!0;EditorUi.prototype.createButtonContainer=function(){var c=document.createElement("div");c.className=-"geButtonContainer";return c};EditorUi.prototype.openLink=function(c,g,l){return this.editor.graph.openLink(c,g,l)};EditorUi.prototype.showSplash=function(c){};EditorUi.prototype.getLocalData=function(c,g){g(localStorage.getItem(c))};EditorUi.prototype.setLocalData=function(c,g,l){localStorage.setItem(c,g);null!=l&&l()};EditorUi.prototype.isLocked=function(){var c=this.getCurrentFile();return null!=c&&c.isLocked()};EditorUi.prototype.removeLocalData=function(c,g){localStorage.removeItem(c);g()};EditorUi.prototype.setShareCursorPosition=+"geButtonContainer";return c};EditorUi.prototype.openLink=function(c,f,l){return this.editor.graph.openLink(c,f,l)};EditorUi.prototype.showSplash=function(c){};EditorUi.prototype.getLocalData=function(c,f){f(localStorage.getItem(c))};EditorUi.prototype.setLocalData=function(c,f,l){localStorage.setItem(c,f);null!=l&&l()};EditorUi.prototype.isLocked=function(){var c=this.getCurrentFile();return null!=c&&c.isLocked()};EditorUi.prototype.removeLocalData=function(c,f){localStorage.removeItem(c);f()};EditorUi.prototype.setShareCursorPosition=function(c){this.shareCursorPosition=c;Editor.isSettingsEnabled()&&(mxSettings.settings.shareCursorPosition=c,mxSettings.save());this.fireEvent(new mxEventObject("shareCursorPositionChanged"))};EditorUi.prototype.isShareCursorPosition=function(){return this.shareCursorPosition};EditorUi.prototype.setShowRemoteCursors=function(c){this.showRemoteCursors=c;Editor.isSettingsEnabled()&&(mxSettings.settings.showRemoteCursors=c,mxSettings.save());this.fireEvent(new mxEventObject("showRemoteCursorsChanged"))};-EditorUi.prototype.isShowRemoteCursors=function(){return this.showRemoteCursors};EditorUi.prototype.setMathEnabled=function(c){var g=this.editor.graph;g.mathEnabled=c;null!=g.view.backgroundImage&&(g.view.backgroundImage.destroy(),g.view.backgroundImage=null);this.editor.updateGraphComponents();g.refresh();g.defaultMathEnabled=c;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(c){return this.editor.graph.mathEnabled};EditorUi.prototype.setAdaptiveColors=+EditorUi.prototype.isShowRemoteCursors=function(){return this.showRemoteCursors};EditorUi.prototype.setMathEnabled=function(c){var f=this.editor.graph;f.mathEnabled=c;null!=f.view.backgroundImage&&(f.view.backgroundImage.destroy(),f.view.backgroundImage=null);this.editor.updateGraphComponents();f.refresh();f.defaultMathEnabled=c;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(c){return this.editor.graph.mathEnabled};EditorUi.prototype.setAdaptiveColors=function(c){this.editor.graph.setAdaptiveColors(c);this.editor.graph.view.clear();this.fireEvent(new mxEventObject("adaptiveColorsChanged"))};EditorUi.prototype.isStandaloneApp=function(){return mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||this.isOfflineApp()};EditorUi.prototype.isOfflineApp=function(){return"1"==urlParams.offline};EditorUi.prototype.isOffline=function(c){return this.isOfflineApp()||!navigator.onLine&&!EditorUi.isElectronApp||!c&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};-EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,g,l){var n=null==c||null==g;l=null!=l?l:24;var r=new Spinner({lines:12,length:l,width:Math.round(l/3),radius:Math.round(l/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),t=this.timeout,v=r.spin,B=null,E=null,K=mxUtils.bind(this,function(M){null!=M&&M()}),C=this;r.spin=function(M,O,-U,T){T=null!=T?T:t;var V=!1;if(!this.active){var fa=Date.now();null!=U&&(B=window.setTimeout(function(){r.stop();B=null;U({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:E})},T));n&&(g=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0)/2,c=document.body.clientWidth/2-2);M==document.body&&"1"==urlParams.embedInline&&(M=C.diagramContainer,c=M.scrollLeft+M.clientWidth/2,g=M.scrollTop+M.clientHeight/2);v.call(this,M);"1"==urlParams.embedInline&&null!=r.el&&-(r.el.style.marginTop=M.scrollTop+"px",r.el.style.marginLeft=M.scrollLeft+"px");this.active=!0;null!=O&&(V=document.createElement("div"),V.className="geSpinnerStatus",V.setAttribute("title",O),M==document.body?(V.style.left=Math.max(0,c)+"px",V.style.top=Math.max(0,g+66)+"px"):(V.style.left="50%",V.style.top="50%",V.style.marginTop="70px"),"..."!=O.substring(O.length-3,O.length)&&"!"!=O.charAt(O.length-1)&&(O+="..."),V.innerText=O,M.appendChild(V),r.status=V);this.pause=mxUtils.bind(this,function(){var y=-K;this.active&&(T=Math.max(0,T-(Date.now()-fa)),y=mxUtils.bind(this,function(d){this.spin(M,O,U,T);if(null!=d)try{d(),E=mxUtils.bind(this,function(){this.spin(M,O,U,T);try{d()}catch(p){null!=U&&U(p)}})}catch(p){null!=U&&U(p)}}));this.stop();return y});V=!0}return V};var R=r.stop;r.stop=function(){R.call(this);this.active&&(this.active=!1,null!=B&&(window.clearTimeout(B),B=null),null!=r.status&&null!=r.status.parentNode&&r.status.parentNode.removeChild(r.status),r.status=null)};r.pause=function(){return K};-return r};EditorUi.prototype.isCompatibleString=function(c){try{if(c=mxUtils.trim(c),"<"==c.charAt(0)){var g=mxUtils.parseXml(c),l=this.editor.extractGraphModel(g.documentElement,!0);return null!=l&&0==l.getElementsByTagName("parsererror").length}}catch(n){}return!1};EditorUi.isVisioFilename=function(c){return/(\.v(dx|sdx?))($|\?)/i.test(c)||/(\.vs(x|sx?))($|\?)/i.test(c)};EditorUi.prototype.isVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&-224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&4==c.charCodeAt(3)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&6==c.charCodeAt(3))};EditorUi.prototype.isRemoteVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||-60==c.charCodeAt(0)&&63==c.charCodeAt(1)&&120==c.charCodeAt(2)&&109==c.charCodeAt(3)&&108==c.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(c){var g=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var l=g.getFunction,n=this.editor.graph,r=this;g.getFunction=function(t){if(n.isSelectionEmpty()&&null!=r.pages&&0<r.pages.length){var v=r.getSelectedPageIndex();if(mxEvent.isShiftDown(t)){if(37==t.keyCode)return function(){0<-v&&r.movePage(v,v-1)};if(38==t.keyCode)return function(){0<v&&r.movePage(v,0)};if(39==t.keyCode)return function(){v<r.pages.length-1&&r.movePage(v,v+1)};if(40==t.keyCode)return function(){v<r.pages.length-1&&r.movePage(v,r.pages.length-1)}}else if(mxEvent.isControlDown(t)||mxClient.IS_MAC&&mxEvent.isMetaDown(t)){if(37==t.keyCode)return function(){0<v&&r.selectNextPage(!1)};if(38==t.keyCode)return function(){0<v&&r.selectPage(r.pages[0])};if(39==t.keyCode)return function(){v<r.pages.length-1&&r.selectNextPage(!0)};-if(40==t.keyCode)return function(){v<r.pages.length-1&&r.selectPage(r.pages[r.pages.length-1])}}}return!(65<=t.keyCode&&90>=t.keyCode)||n.isSelectionEmpty()||mxEvent.isAltDown(t)||mxEvent.isShiftDown(t)||mxEvent.isControlDown(t)||mxClient.IS_MAC&&mxEvent.isMetaDown(t)?l.apply(this,arguments):null}}return g};var k=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=function(c){var g=k.apply(this,arguments);if(null==g)try{var l=c.indexOf("<mxfile ");if(0<=l){var n=-c.lastIndexOf("</mxfile>");n>l&&(g=c.substring(l,n+15).replace(/>/g,">").replace(/</g,"<").replace(/\\"/g,'"').replace(/\n/g,""))}else{var r=mxUtils.parseXml(c),t=this.editor.extractGraphModel(r.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);g=null!=t?mxUtils.getXml(t):""}}catch(v){}return g};EditorUi.prototype.validateFileData=function(c){if(null!=c&&0<c.length){var g=c.indexOf('<meta charset="utf-8">');0<=g&&(c=c.slice(0,g)+'<meta charset="utf-8"/>'+-c.slice(g+23-1,c.length));c=Graph.zapGremlins(c)}return c};EditorUi.prototype.repairFileData=function(c){c=mxUtils.trim(c||"");if(0==c.length)return null;var g=c.replace(/<\/([A-Za-z_][\w.\-]*)(\s*)(?=<)/g,"</$1>$2"),l=g.lastIndexOf(">");g.lastIndexOf("<")>l&&(g=mxUtils.trim(g.substring(0,l+1)));if("</mxfile>"!=g.substring(g.length-9)){l=[];for(var n=/<(\/?)([A-Za-z_][\w.\-]*)[^>]*?(\/?)>/g,r;null!=(r=n.exec(g));)"/"==r[1]?0<l.length&&l[l.length-1]==r[2]&&l.pop():"/"!=r[3]&&l.push(r[2]);for(n=l.length--1;0<=n;n--)g+="</"+l[n]+">"}return g!=c?g:null};EditorUi.prototype.isFileDataLoadable=function(c){try{c=this.validateFileData(c);var g=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;if(null==g||null!=Editor.extractParserError(g))return!1;var l=this.editor.extractGraphModel(g,!0);return null!=(null!=l?l:g)}catch(n){return!1}};EditorUi.prototype.getRecoveryData=function(c,g,l,n){var r=null;try{var t=this.repairFileData(g);null!=t&&t!=g&&this.isFileDataLoadable(t)&&(r={type:"repair",label:mxResources.get("openRepairedCopy"),-description:mxResources.get("recoveryRepairedDesc"),data:t,lossy:!0})}catch(B){}var v=mxUtils.bind(this,function(B){var E=[];null!=B&&null!=B.data&&E.push(B);null!=r&&E.push(r);n(E)});null!=c&&"function"===typeof c.getRecoveryVersion?c.getRecoveryVersion(mxUtils.bind(this,function(B){v(B)}),mxUtils.bind(this,function(){v(null)})):v(null)};EditorUi.prototype.openRecoveredCopy=function(c,g){c=new LocalFile(this,c.data,mxResources.get("copyOf",[g||this.defaultFilename]),!0);this.fileLoaded(c)&&c.fileChanged()};-EditorUi.prototype.showRecoveryDialog=function(c,g){c=new RecoveryDialog(this,c,mxUtils.bind(this,function(l){this.hideDialog();this.openRecoveredCopy(l,g)}),mxUtils.bind(this,function(){this.hideDialog()}));this.showDialog(c.container,380,null,!0,!0)};EditorUi.prototype.formatRecoveryDate=function(c){c=new Date(c);return!isNaN(c.getTime())&&0<=c.getTime()?c.toLocaleString():null};EditorUi.prototype.replaceFileData=function(c,g){EditorUi.debug("EditorUi.replaceFileData",[this],"data",[c],"patches",-g);c=this.validateFileData(c);c=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var l=null!=c?this.editor.extractGraphModel(c,!0):null;null!=l&&(c=l);if(null!=c){l=this.editor.graph;l.model.beginUpdate();try{var n=null!=this.pages?this.pages.slice():null,r=c.getElementsByTagName("diagram");if(1<r.length||1==r.length&&r[0].hasAttribute("name")){this.fileNode=c;l.defaultExportLinkTarget=c.getAttribute("linkTarget");this.pages=null!=this.pages?this.pages:[];for(var t=r.length-1;0<=t;t--){var v=-this.updatePageRoot(new DiagramPage(r[t]));null==v.getName()&&v.setName(mxResources.get("pageWithNumber",[t+1]));l.model.execute(new ChangePage(this,v,0==t?v:null,0))}}else null==this.fileNode&&(this.fileNode=c.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(c.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),l.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0))),this.editor.setGraphXml(c),null!=this.currentPage&&-(this.currentPage.root=this.editor.graph.model.root,l.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=n)for(t=0;t<n.length;t++)l.model.execute(new ChangePage(this,n[t],null));var B=this.getCurrentFile();null!=B&&B.fileReplaced(g)}finally{l.model.endUpdate()}}};EditorUi.prototype.createFileData=function(c,g,l,n,r,t,v,B,E,K,C,R,M){g=null!=g?g:this.editor.graph;r=null!=r?r:!1;E=null!=E?E:!0;K=null!=K?K:this.defaultCompact;C=null!=C?C:!Editor.defaultCompressed;var O=-null;if(null==l||l.getMode()==App.MODE_DEVICE||l.getMode()==App.MODE_BROWSER)var U="_blank";else O=U=n;if(null==c)return"";var T=c;if("mxfile"!=T.nodeName.toLowerCase()){if(C){var V=c.ownerDocument.createElement("diagram");V.setAttribute("name",mxResources.get("pageWithNumber",[1]));V.setAttribute("id",Editor.guid());V.appendChild(c)}else{V=Graph.zapGremlins(mxUtils.getXml(c));T=Graph.compress(V);if(Graph.decompress(T)!=V)return V;V=c.ownerDocument.createElement("diagram");V.setAttribute("name",mxResources.get("pageWithNumber",-[1]));V.setAttribute("id",Editor.guid());mxUtils.setTextContent(V,T)}T=c.ownerDocument.createElement("mxfile");T.appendChild(V)}K?(T=T.cloneNode(!0),T.removeAttribute("modified"),T.removeAttribute("host"),T.removeAttribute("agent"),T.removeAttribute("etag"),T.removeAttribute("userAgent"),T.removeAttribute("version"),T.removeAttribute("editor"),T.removeAttribute("type")):(T.removeAttribute("userAgent"),T.removeAttribute("modified"),T.removeAttribute("version"),T.removeAttribute("editor"),T.removeAttribute("pages"),-T.removeAttribute("type"),T.removeAttribute("etag"),mxClient.IS_CHROMEAPP?T.setAttribute("host","Chrome"):EditorUi.isElectronApp?T.setAttribute("host","Electron"):T.setAttribute("host",window.location.hostname),1<T.getElementsByTagName("diagram").length&&null!=this.pages&&T.setAttribute("pages",this.pages.length));null!=R&&(T=T.cloneNode(!0),T.setAttribute("scale",R));null!=M&&(T=T.cloneNode(!0),T.setAttribute("border",M));c=C?mxUtils.getPrettyXml(T):mxUtils.getXml(T);if(!t&&!r&&(v||null!=l&&/(\.html)$/i.test(l.getTitle())))c=-this.getHtml2(mxUtils.getXml(T),g,null!=l?l.getTitle():null,U,O);else if(t||!r&&null!=l&&/(\.svg)$/i.test(l.getTitle()))null==l||l.getMode()!=App.MODE_DEVICE&&l.getMode()!=App.MODE_BROWSER||(n=null),l=this.getSvgFileProperties(T),c=this.getEmbeddedSvg(c,g,n,null,B,E,O,null,null,l.scale,l.border,null,Editor.svgFileTheme,null,l.embedFonts);return c};EditorUi.prototype.getXmlFileData=function(c,g,l,n){c=null!=c?c:!0;g=null!=g?g:!1;l=null!=l?l:!Editor.defaultCompressed;var r=this.editor.getGraphXml(c,-n);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(E){var K=E.getElementsByTagName("mxGraphModel"),C=0<K.length?K[0]:null;K=E;null==C&&l?(C=mxUtils.getNodeValue(E),0<C.length&&(C=Graph.decompress(C),null!=C&&0<C.length&&(K=E.cloneNode(!1),K.appendChild(mxUtils.parseXml(C).documentElement)))):null==C||l?K=E.cloneNode(!0):(K=E.cloneNode(!1),mxUtils.setTextContent(K,Graph.compressNode(C)));r.appendChild(K)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(r),-r=this.fileNode.cloneNode(!1),g)c(this.currentPage.node);else for(g=0;g<this.pages.length;g++){var t=this.pages[g],v=t.node;if(t!=this.currentPage)if(t.needsUpdate){var B=new mxCodec(mxUtils.createXmlDocument());B=B.encode(new mxGraphModel(t.root));this.editor.graph.saveViewState(t.viewState,B,null,n);EditorUi.removeChildNodes(v);v.appendChild(B);delete t.needsUpdate}else n&&(this.updatePageRoot(t),null!=t.viewState.backgroundImage&&null!=t.viewState.backgroundImage.originalSrc&&(B=new mxCodec(mxUtils.createXmlDocument()),-B=B.encode(new mxGraphModel(t.root)),this.editor.graph.saveViewState(t.viewState,B,null,n,t),v=v.cloneNode(!1),v.appendChild(B)));c(v)}return r};EditorUi.prototype.anonymizeString=function(c,g){for(var l=[],n=0;n<c.length;n++){var r=c.charAt(n);0<=EditorUi.ignoredAnonymizedChars.indexOf(r)?l.push(r):isNaN(parseInt(r))?r.toLowerCase()!=r?l.push(String.fromCharCode(65+Math.round(25*Math.random()))):r.toUpperCase()!=r?l.push(String.fromCharCode(97+Math.round(25*Math.random()))):/\s/.test(r)?l.push(" "):-l.push("?"):l.push(g?"0":Math.round(9*Math.random()))}return l.join("")};EditorUi.prototype.anonymizeXml=function(c){function g(v,B,E){if(v.hasAttribute(B)){var K=v.getAttribute(B);null!=K&&0<K.length&&(E&&0<=K.indexOf("<")?(t.innerHTML=Graph.sanitizeHtml(K),l(t),K=t.innerHTML):K=r.anonymizeString(K),v.setAttribute(B,K))}}function l(v){null!=v.nodeValue&&(v.nodeValue=r.anonymizeString(v.nodeValue));if(v.nodeType==mxConstants.NODETYPE_ELEMENT)for(v=v.firstChild;null!=v;)l(v),v=v.nextSibling}function n(v){if(v.nodeType==-mxConstants.NODETYPE_ELEMENT){if("mxCell"==v.nodeName)g(v,"value",!0);else if("object"==v.nodeName||"UserObject"==v.nodeName)for(var B=0;B<v.attributes.length;B++){var E=v.attributes[B];"id"!=E.name&&"style"!=E.name&&"placeholders"!=E.name&&"vertex"!=E.name&&"edge"!=E.name&&"parent"!=E.name&&"connectable"!=E.name&&"visible"!=E.name&&"collapsed"!=E.name&&"source"!=E.name&&"target"!=E.name&&(E.value=r.anonymizeString(E.value))}else"diagram"==v.nodeName&&g(v,"name",!1);for(v=v.firstChild;null!=v;)n(v),-v=v.nextSibling}}var r=this,t=document.createElement("div");c=mxUtils.parseXml(c);n(c.documentElement);return mxUtils.getPrettyXml(c.documentElement)};EditorUi.prototype.anonymizePatch=function(c){c=JSON.parse(JSON.stringify(c));if(null!=c[EditorUi.DIFF_INSERT])for(var g=0;g<c[EditorUi.DIFF_INSERT].length;g++)try{var l=mxUtils.parseXml(c[EditorUi.DIFF_INSERT][g].data).documentElement.cloneNode(!1);null!=l.getAttribute("name")&&l.setAttribute("name",this.anonymizeString(l.getAttribute("name")));c[EditorUi.DIFF_INSERT][g].data=-mxUtils.getXml(l)}catch(t){c[EditorUi.DIFF_INSERT][g].data=t.message}if(null!=c[EditorUi.DIFF_UPDATE]){for(var n in c[EditorUi.DIFF_UPDATE]){var r=c[EditorUi.DIFF_UPDATE][n];null!=r.name&&(r.name=this.anonymizeString(r.name));null!=r.cells&&(g=mxUtils.bind(this,function(t){var v=r.cells[t];if(null!=v){for(var B in v)null!=v[B].value&&(v[B].value="["+v[B].value.length+"]"),null!=v[B].xmlValue&&(v[B].xmlValue="["+v[B].xmlValue.length+"]"),null!=v[B].style&&(v[B].style="["+v[B].style.length+"]"),mxUtils.isEmptyObject(v[B])&&-delete v[B];mxUtils.isEmptyObject(v)&&delete r.cells[t]}}),g(EditorUi.DIFF_INSERT),g(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(r.cells)&&delete r.cells);mxUtils.isEmptyObject(r)&&delete c[EditorUi.DIFF_UPDATE][n]}mxUtils.isEmptyObject(c[EditorUi.DIFF_UPDATE])&&delete c[EditorUi.DIFF_UPDATE]}return c};EditorUi.prototype.anonymizeAttributes=function(c,g){if(null!=c.attributes)for(var l=0;l<c.attributes.length;l++)"as"!=c.attributes[l].name&&c.setAttribute(c.attributes[l].name,this.anonymizeString(c.attributes[l].value,-g));if(null!=c.childNodes)for(l=0;l<c.childNodes.length;l++)this.anonymizeAttributes(c.childNodes[l],g)};EditorUi.prototype.anonymizeNode=function(c,g){g=c.getElementsByTagName("mxCell");for(var l=0;l<g.length;l++)null!=g[l].getAttribute("value")&&g[l].setAttribute("value","["+g[l].getAttribute("value").length+"]"),null!=g[l].getAttribute("xmlValue")&&g[l].setAttribute("xmlValue","["+g[l].getAttribute("xmlValue").length+"]"),null!=g[l].getAttribute("style")&&g[l].setAttribute("style","["+g[l].getAttribute("style").length+-"]"),null!=g[l].parentNode&&"root"!=g[l].parentNode.nodeName&&null!=g[l].parentNode.parentNode&&(g[l].setAttribute("id",g[l].parentNode.getAttribute("id")),g[l].parentNode.parentNode.replaceChild(g[l],g[l].parentNode));return c};EditorUi.prototype.synchronizeCurrentFile=function(c){var g=this.getCurrentFile();null!=g&&(g.savingFile?this.handleError({message:mxResources.get("busy")}):!c&&g.invalidChecksum?g.handleFileError(null,!0):this.spinner.spin(document.body,mxResources.get("updatingDocument"))&&-(g.clearAutosave(),this.clearStatus(),c?g.reloadFile(mxUtils.bind(this,function(){this.spinner.stop();g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(l){this.spinner.stop();g.handleFileError(l,!0)})):g.synchronizeFile(mxUtils.bind(this,function(){g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(l){g.handleFileError(l,!0)}))))};EditorUi.prototype.getFileData=function(c,g,l,n,r,t,v,B,E,K,C,R,M){r=null!=r?r:!0;t=null!=t?t:!1;K=null!=K?K:!Editor.defaultCompressed;-var O=this.editor.graph;if((g||!c&&null!=E&&/(\.svg)$/i.test(E.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var U=O.getGlobalVariable;O=this.createTemporaryGraph(O.getStylesheet());O.setBackgroundImage=this.editor.graph.setBackgroundImage;O.background=this.editor.graph.background;var T=null!=this.pages?this.pages[0]:null;null==T||this.currentPage==T?O.setBackgroundImage(this.editor.graph.backgroundImage):null!=T.viewState&&null!=T.viewState&&O.setBackgroundImage(T.viewState.backgroundImage);-O.getGlobalVariable=function(V){return"page"==V&&null!=T?T.getName():"pagenumber"==V?1:U.apply(this,arguments)};document.body.appendChild(O.container);null!=T&&O.model.setRoot(T.root)}v=null!=v?v:this.getXmlFileData(r,t,K,C);E=null!=E?E:this.getCurrentFile();c=this.createFileData(v,O,E,window.location.href,c,g,l,n,r,B,K,R,M);O!=this.editor.graph&&O.container.parentNode.removeChild(O.container);return c};EditorUi.prototype.getHtml=function(c,g,l,n,r,t){t=null!=t?t:!0;var v=null,B=EditorUi.drawHost+-"/js/embed-static.min.js";if(null!=g){v=t?g.getGraphBounds():g.getBoundingBox(g.getSelectionCells());var E=g.view.scale;t=Math.floor(v.x/E-g.view.translate.x);E=Math.floor(v.y/E-g.view.translate.y);v=g.background;null==r&&(g=this.getBasenames().join(";"),0<g.length&&(B=EditorUi.drawHost+"/embed.js?s="+g));c.setAttribute("x0",t);c.setAttribute("y0",E)}null!=c&&(c.setAttribute("pan","1"),c.setAttribute("zoom","1"),c.setAttribute("resize","0"),c.setAttribute("fit","0"),c.setAttribute("border","20"),-c.setAttribute("links","1"),null!=n&&c.setAttribute("edit",n));null!=r&&(r=r.replace(/&/g,"&"));c=null!=c?Graph.zapGremlins(mxUtils.getXml(c)):"";n=Graph.compress(c);Graph.decompress(n)!=c&&(n=encodeURIComponent(c));return(null==r?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=r?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==r?null!=l?"<title>"+mxUtils.htmlEntities(l)+"</title>\n":"":"<title>draw.io</title>\n")+-(null!=r?'<meta http-equiv="refresh" content="0;URL=\''+r+"'\"/>\n":"")+"</head>\n<body"+(null==r&&null!=v&&v!=mxConstants.NONE?' style="background-color:'+v+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'+n+"</div>\n</div>\n"+(null==r?'<script type="text/javascript" src="'+B+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+r+'" target="_blank"><img border="0" src="'+-EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(c,g,l,n,r){g=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=r&&(r=r.replace(/&/g,"&"));c={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,resize:!0,xml:Graph.zapGremlins(c),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(c.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==r?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':-"")+"<!DOCTYPE html>\n<html"+(null!=r?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==r?null!=l?"<title>"+mxUtils.htmlEntities(l)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=r?'<meta http-equiv="refresh" content="0;URL=\''+r+"'\"/>\n":"")+'<meta charset="utf-8"/>\n</head>\n<body>\n<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(c))+'"></div>\n'+(null==r?'<script type="text/javascript" src="'+g+'">\x3c/script>':-'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+r+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.updateFileVars=function(){var c=null!=this.fileNode?this.fileNode.getAttribute("vars"):null;if(c!==this.fileVarsStr&&(this.fileVarsStr=c,this.fileVars=null,null!=c&&0<c.length))try{this.fileVars=JSON.parse(c)}catch(g){}};EditorUi.prototype.setFileData=function(c,g){c=this.validateFileData(c);-this.pages=this.fileNode=this.currentPage=null;g=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var l=Editor.extractParserError(g,mxResources.get("invalidOrMissingFile"));if(l)throw EditorUi.debug("EditorUi.setFileData ParserError",[this],"data",[c],"node",[g],"cause",[l]),Error(mxResources.get("notADiagramFile")+" ("+l+")");c=null!=g?this.editor.extractGraphModel(g,!0):null;null!=c&&(g=c);if(null!=g&&"mxfile"==g.nodeName&&(c=g.getElementsByTagName("diagram"),l={},0<c.length)){var n=-this.getHashObject(),r=null;this.fileNode=g;this.editor.graph.defaultExportLinkTarget=g.getAttribute("linkTarget");this.pages=[];for(var t=0;t<c.length;t++){null==c[t].getAttribute("id")&&c[t].setAttribute("id",t);g=new DiagramPage(c[t]);null==g.getName()&&g.setName(mxResources.get("pageWithNumber",[t+1]));this.pages.push(g);if(null==n.pageId&&null!=urlParams["page-id"]&&g.getId()==urlParams["page-id"]||null!=n.pageId&&g.getId()==n.pageId)r=g;if(null==l[g.getId()])l[g.getId()]=g;else throw Error(g.getId()+-": Duplicate page ID");}this.currentPage=null!=r?r:this.pages[Math.max(0,Math.min(this.pages.length-1,urlParams.page||0))];g=this.currentPage.node}null==this.fileNode&&null!=g&&(this.fileNode=g.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(g.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(g);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,-this.currentPage.setDiagramModified(!1),this.scrollToPage());if(null!=urlParams["layer-ids"])try{var v=decodeURIComponent(urlParams["layer-ids"]).split(" "),B=Object.create(null);for(t=0;t<v.length;t++)B[v[t]]=!0;var E=this.editor.graph.getModel(),K=E.getChildren(E.root);for(t=0;t<K.length;t++){var C=K[t];E.setVisible(C,B[C.id]||!1)}}catch(R){}};EditorUi.prototype.fileStats=function(c,g){try{if(null!=c&&5E5<c.getSize()&&""!==c.getHash()&&"draw.io"==this.getServiceName()){var l=g.getElementsByTagName("diagram");-g={};g.modified=c.getLastModifiedDate();g.fileMode=c.getMode();g.fileSize=c.getSize();g.fileHash=c.getHash();g.pages=l.length;g.redundantStencils=0;g.redundantImages=0;g.redundantSize=0;g.stencils=0;g.images=0;for(var n=g.cells=0;n<l.length;n++){var r=l[n].getElementsByTagName("mxCell");g.cells+=r.length;for(var t={},v=0;v<r.length;v++){var B=r[v].getAttribute("style");if(null!=B)for(var E=B.split(";"),K=0;K<E.length;K++){var C=E[K];if(C.startsWith("image=data:")||C.startsWith("shape=stencil("))null==-t[C]?t[C]=1:t[C]++}}for(var R in t){var M=t[R];R.startsWith("shape=stencil(")?g.stencils+=M:g.images+=M;1<M&&(g.redundantSize+=R.length*(M-1),R.startsWith("shape=stencil(")?g.redundantStencils+=M-1:g.redundantImages+=M-1)}}EditorUi.logEvent({category:c.getMode().toUpperCase()+"-FILE-STATS-"+c.getHash(),action:"size_"+c.getSize(),label:JSON.stringify(g)})}}catch(O){}};EditorUi.prototype.getBaseFilename=function(c){var g=this.getCurrentFile();g=null!=g&&null!=g.getTitle()?g.getTitle():this.defaultFilename;-if(/(\.xml)$/i.test(g)||/(\.html)$/i.test(g)||/(\.svg)$/i.test(g)||/(\.png)$/i.test(g))g=g.substring(0,g.lastIndexOf("."));/(\.drawio)$/i.test(g)&&(g=g.substring(0,g.lastIndexOf(".")));!c&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&0<this.currentPage.getName().length&&(g=g+"-"+this.currentPage.getName());return g};EditorUi.prototype.downloadFile=function(c,g,l,n,r,t,v,B,E,K,C,R,M,O,U,T,V,fa){try{n=null!=n?n:this.editor.graph.isSelectionEmpty();-var y=this.getBaseFilename(!r),d=y+("xml"==c||"pdf"==c&&C?".drawio":"")+"."+c;if("xml"==c){var p=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,n,r,null,null,null,g);this.saveData(d,c,p,"text/xml")}else if("html"==c)p=this.getHtml2(this.getFileData(!0),this.editor.graph,y),this.saveData(d,c,p,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))if("xmlpng"==c?d=y+".png":"jpeg"==c&&(d=y+".jpg"),"1"==urlParams.embed&&"json"==urlParams.proto&&-this.embedExportProtocol){var A=this.embedMessageSource||window.opener||window.parent;this.spinner.spin(document.body,mxResources.get("exporting"))&&this.createDownloadRequest(d,c,n,"1",v,r,B,E,K,C,R,void 0,void 0,!t,M,O,U,T,V,fa).send(mxUtils.bind(this,function(Q){this.spinner.stop();if(200<=Q.getStatus()&&299>=Q.getStatus()){var ba=this.createLoadMessage("export");ba.format=c;ba.filename=d;ba.data="data:application/pdf;base64,"+Q.getText();ba.xml=this.getFileData(!0);A.postMessage(JSON.stringify(ba),-"*")}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(){this.spinner.stop();this.handleError({message:mxResources.get("errorSavingFile")})}))}else this.saveRequest(d,c,mxUtils.bind(this,function(Q,ba){try{return this.createDownloadRequest(Q,c,n,ba,v,r,B,E,K,C,R,void 0,void 0,!t,M,O,U,T,V,fa)}catch(W){this.handleError(W)}}));else{var G=null,I=mxUtils.bind(this,function(Q){Q.length<=MAX_REQUEST_SIZE?this.saveData(d,"svg",Q,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},-mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(G)}))});if("svg"==c){var L=this.editor.graph.background;if(v||L==mxConstants.NONE)L=null;var P=this.editor.graph.getSvg(L,null,null,null,null,n);l&&this.editor.graph.addSvgShadow(P);this.editor.convertImages(P,mxUtils.bind(this,mxUtils.bind(this,function(Q){this.spinner.stop();I(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(Q))})))}else d=y+".svg",G=this.getFileData(!1,!0,null,mxUtils.bind(this,function(Q){this.spinner.stop();-I(Q)}),n)}}catch(Q){this.handleError(Q)}};EditorUi.prototype.createDownloadRequest=function(c,g,l,n,r,t,v,B,E,K,C,R,M,O,U,T,V,fa,y,d){c=this.downloadRequestBuilder(c,g,l,n,r,t,v,B,E,K,C,R,M,O,U,T,V,fa,y,d);g="";for(var p in c)l=c[p],null!=l&&(g+=p+"="+encodeURIComponent(l)+"&");return new mxXmlRequest(EXPORT_URL,g)};EditorUi.prototype.downloadRequestBuilder=function(c,g,l,n,r,t,v,B,E,K,C,R,M,O,U,T,V,fa,y,d){var p=this.editor.graph,A=p.getGraphBounds();l=this.getFileData(!0,null,null,null,l,0==t?!1:-"xmlpng"!=g,null,null,null,!Editor.defaultCompressed,"pdf"==g);var G=null,I=null,L=null;if(!EditorUi.isElectronApp&&(A.width*A.height>MAX_AREA||l.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};K=K?"1":"0";"pdf"==g&&(null!=C?(G=C.from,I=C.to):0==t&&(L="1"));"xmlpng"==g&&(K="1",g="png");if(("xmlpng"==g||"svg"==g)&&null!=this.pages&&null!=this.currentPage)for(t=0;t<this.pages.length;t++)if(this.pages[t]==this.currentPage){G=t;break}t=p.background;"png"!=g&&"pdf"!=g&&"svg"!=-g||!r?r||null!=t&&t!=mxConstants.NONE||(t="#ffffff"):t=mxConstants.NONE;r={globalVars:p.getExportVariables()};null!=C&&null!=C.from&&(r.globalVars.pagenumber=C.from+1);E&&(r.grid={size:p.gridSize,steps:p.view.gridSteps,color:Editor.isDarkMode()&&"pdf"==g?mxGraphView.prototype.defaultGridColor:p.view.gridColor});Graph.translateDiagram&&(r.diagramLanguage=Graph.diagramLanguage);E=this.getHiddenTagsMap();null!=E&&(r.hiddenTags=E);return{format:g,from:G,to:I,allPages:L,bg:null!=t?t:mxConstants.NONE,base64:n,-embedXml:K,xml:l,filename:null!=c?c:"",extras:JSON.stringify(r),scale:v,border:B,pageMargin:U,w:R&&isFinite(R)?R:null,h:M&&isFinite(M)?M:null,crop:null!=O&&O?"1":"0",fit:null!=T&&T?"1":"0",shadows:null!=y&&y?"1":"0",sheetsAcross:V,sheetsDown:fa,icons:null!=d&&d?"1":"0"}};EditorUi.prototype.getHiddenTagsMap=function(){var c=this.editor.graph,g={},l=!1;if(null!=this.pages)for(var n=0;n<this.pages.length;n++){var r=this.pages[n],t=r==this.currentPage?c.hiddenTags:null!=r.viewState?r.viewState.hiddenTags:-null;null!=t&&0<t.length&&(g[r.getId()]=t,l=!0)}else null!=c.hiddenTags&&0<c.hiddenTags.length&&(g[0]=c.hiddenTags,l=!0);return l?g:null};EditorUi.prototype.setMode=function(c,g){this.mode=c};EditorUi.prototype.getDiagramId=function(){var c=window.location.hash;null!=c&&0<c.length&&(c=c.substring(1));if(null!=c&&1<c.length){var g=c.indexOf("#");0<=g&&(c=c.substring(0,g))}return c};EditorUi.prototype.getHashObject=function(){var c=window.location.hash,g={};if(null!=c&&0<c.length){var l=c.lastIndexOf("#");-if(0<l){c=decodeURIComponent(c.substring(l+1));try{g=JSON.parse(c)}catch(n){}}}return g};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&null!=this.currentPage&&""!=this.currentFile.getHash()){var c=this.getHashObject();c.pageId=this.currentPage.getId();this.setHashObject(c)}else this.setHashObject(null)};EditorUi.prototype.setHashObject=function(c){if(Editor.enableHashObjects){var g=window.location.hash;if(null==g||""==g)g="#";var l=g.lastIndexOf("#");0<l&&(g=g.substring(0,-l));try{null==c||mxUtils.isEmptyObject(c)||(g=g+"#"+encodeURIComponent(JSON.stringify(c)))}catch(n){}0<l&&0<g.lastIndexOf("#")?window.location.hash=g:window.location.replace(g)}};EditorUi.prototype.loadDescriptor=function(c,g,l){var n=window.location.hash,r=mxUtils.bind(this,function(v){var B=null!=c.data?c.data:"";null!=v&&0<v.length&&(0<B.length&&(B+="\n"),B+=v);v=new LocalFile(this,"csv"!=c.format&&0<B.length?B:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,-!0);v.getHash=function(){return n};this.fileLoaded(v);"csv"==c.format&&this.importCsv(B,mxUtils.bind(this,function(M){this.editor.undoManager.clear();this.editor.setModified(!1);this.clearStatus()}));if(null!=c.update){var E=null!=c.interval?parseInt(c.interval):6E4,K=null,C=mxUtils.bind(this,function(){var M=this.currentPage;mxUtils.post(c.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(O){M===this.currentPage&&(200<=O.getStatus()&&300>=O.getStatus()?-(this.updateDiagram(O.getText()),R()):this.handleError({message:mxResources.get("error")+" "+O.getStatus()}))}),mxUtils.bind(this,function(O){this.handleError(O)}))}),R=mxUtils.bind(this,function(){window.clearTimeout(K);K=window.setTimeout(C,E)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){R();C()}));R();C()}null!=g&&g()});if(null!=c.url&&0<c.url.length){var t=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(t,mxUtils.bind(this,function(v){r(v)}),mxUtils.bind(this,function(v){null!=-l&&l(v)}))}else r("")};EditorUi.prototype.updateDiagram=function(c){function g(d){var p=new mxCellOverlay(d.image||r.warningImage,d.tooltip,d.align,d.valign,d.offset);p.addListener(mxEvent.CLICK,function(A,G){n.alert(d.tooltip)});return p}var l=null,n=this;if(null!=c&&0<c.length&&(l=mxUtils.parseXml(c),c=null!=l?l.documentElement:null,null!=c&&"updates"==c.nodeName)){var r=this.editor.graph,t=r.getModel();t.beginUpdate();var v=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var B=t.getCell(c.getAttribute("id"));-if(null!=B){try{var E=c.getAttribute("value");if(null!=E){var K=mxUtils.parseXml(E).documentElement;if(null!=K)if("1"==K.getAttribute("replace-value"))t.setValue(B,K);else for(var C=K.attributes,R=0;R<C.length;R++)r.setAttributeForCell(B,C[R].nodeName,0<C[R].nodeValue.length?C[R].nodeValue:null)}}catch(d){null!=window.console&&console.log("Error in value for "+B.id+": "+d)}try{var M=c.getAttribute("style");null!=M&&r.model.setStyle(B,M)}catch(d){null!=window.console&&console.log("Error in style for "+-B.id+": "+d)}try{var O=c.getAttribute("icon");if(null!=O){var U=0<O.length?JSON.parse(O):null;null!=U&&U.append||r.removeCellOverlays(B);null!=U&&r.addCellOverlay(B,g(U))}}catch(d){null!=window.console&&console.log("Error in icon for "+B.id+": "+d)}try{var T=c.getAttribute("geometry");if(null!=T){T=JSON.parse(T);var V=r.getCellGeometry(B);if(null!=V){V=V.clone();for(key in T){var fa=parseFloat(T[key]);"dx"==key?V.x+=fa:"dy"==key?V.y+=fa:"dw"==key?V.width+=fa:"dh"==key?V.height+=fa:V[key]=parseFloat(T[key])}r.model.setGeometry(B,-V)}}}catch(d){null!=window.console&&console.log("Error in icon for "+B.id+": "+d)}}}else if("model"==c.nodeName){for(var y=c.firstChild;null!=y&&y.nodeType!=mxConstants.NODETYPE_ELEMENT;)y=y.nextSibling;null!=y&&(new mxCodec(c.firstChild)).decode(y,t)}else if("view"==c.nodeName){if(c.hasAttribute("scale")&&(r.view.scale=parseFloat(c.getAttribute("scale"))),c.hasAttribute("dx")||c.hasAttribute("dy"))r.view.translate=new mxPoint(parseFloat(c.getAttribute("dx")||0),parseFloat(c.getAttribute("dy")||0))}else"fit"==-c.nodeName&&(v=c.hasAttribute("max-scale")?parseFloat(c.getAttribute("max-scale")):1);c=c.nextSibling}}finally{t.endUpdate()}null!=v&&this.chromelessResize&&this.chromelessResize(!0,v)}return l};EditorUi.prototype.getCopyFilename=function(c,g){var l=null!=c&&null!=c.getTitle()?c.getTitle():this.defaultFilename;c="";var n=l.lastIndexOf(".");0<=n&&(c=l.substring(n),l=l.substring(0,n));if(g){g=l;var r=new Date;l=r.getFullYear();n=r.getMonth()+1;var t=r.getDate(),v=r.getHours(),B=r.getMinutes();r=r.getSeconds();-l=g+(" "+(l+"-"+n+"-"+t+"-"+v+"-"+B+"-"+r))}return l=mxResources.get("copyOf",[l])+c};EditorUi.prototype.logIfModified=function(c,g){try{null!=c&&g&&EditorUi.debug("File.closed",[c])}catch(l){}};EditorUi.prototype.fileLoaded=function(c,g,l){EditorUi.debug("EditorUi.fileLoaded",[this],"file",[c],"noDialogs",[g]);var n=this.getCurrentFile();this.fileEditable=this.fileLoadedError=null;this.setCurrentFile(null);var r=!1;this.hideDialog();null!=n&&(n.removeListener(this.descriptorChangedListener),this.logIfModified(n,-!0),n.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var t=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);null!=n&&this.updateDocumentTitle();this.editor.graph.model.clear();this.editor.undoManager.clear();this.setBackgroundImage(null);!g&&null!=window.location.hash&&0<window.location.hash.length&&(window.location.hash="");null!=this.fname&&(this.fname.innerText="");this.clearStatus();this.updateUi();if(!g)if("0"!=urlParams.splash)this.showSplash();-else try{this.createFile(this.defaultFilename,this.getFileData(),null,null,null,null,null,!0)}catch(R){this.handleError(R)}});if(null!=c)try{this.openingFile=!0;this.setCurrentFile(c);c.addListener("descriptorChanged",this.descriptorChangedListener);c.addListener("contentChanged",this.descriptorChangedListener);c.open();delete this.openingFile;this.setGraphEnabled(!0);this.setMode(c.getMode());this.editor.graph.model.prefix=Editor.guid()+"-";this.editor.undoManager.clear();this.descriptorChanged();-this.updateUi();c.isEditable()?c.isModified()?c.addUnsavedStatus():this.clearStatus():this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus('<div class="geStatusBox" title="'+mxUtils.htmlEntities(mxResources.get("readOnly"))+'">'+mxUtils.htmlEntities(mxResources.get("readOnly"))+"</div>")}));!this.editor.isChromelessView()||this.editor.editable?(this.editor.graph.selectUnlockedLayer(),this.showLayersDialog(),null!=this.actions.layersWindow&&this.actions.layersWindow.refreshLayers(),-this.restoreLibraries(),window.self===window.top||this.noAutoFocus||window.focus()):this.editor.graph.isLightboxView()&&this.lightboxFit();this.chromelessResize&&this.chromelessResize();null!=l&&l();this.editor.fireEvent(new mxEventObject("fileLoaded"));r=!0;if(/(\.svg)$/i.test(c.getTitle())&&this.getSvgFileProperties(this.fileNode).embedFonts)try{this.editor.loadFonts(),this.editor.embedExtFonts(function(){})}catch(R){}if(!this.isOffline()&&null!=c.getMode()){var v="1"==urlParams.sketch?"sketch":-uiTheme;if(null==v)v="default";else if("sketch"==v||"min"==v)v+=Editor.isDarkMode()?"-dark":"-light";EditorUi.logEvent({category:c.getMode().toUpperCase()+"-OPEN-FILE-"+c.getHash(),action:"size_"+c.getSize(),label:"autosave_"+(this.editor.autosave?"on":"off")+"_theme_"+v})}EditorUi.debug("File.opened",[c]);"1"==urlParams.viewerOnlyMsg&&this.showAlert(mxResources.get("viewerOnlyMsg"));if(this.editor.editable&&this.mode==c.getMode()&&c.getMode()!=App.MODE_DEVICE&&null!=c.getMode())try{this.addRecent({id:c.getHash(),-title:c.getTitle(),mode:c.getMode()})}catch(R){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(R){}}catch(R){this.fileLoadedError=R;l=null;var B=this.defaultFilename;if(null!=c){try{l=c.getData(),B=c.getTitle()||this.defaultFilename}catch(M){}try{c.close()}catch(M){}}var E=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=n?this.fileLoaded(n)||-t():t()});if(g)E();else{R.dialogWidth=350;var K=mxUtils.bind(this,function(){this.handleError(R,mxResources.get("errorLoadingFile"),E,!0,null,null,!0)});if(null!=R.fallbackFileData)R.alternateAction={label:mxResources.get("makeCopy"),funct:mxUtils.bind(this,function(){this.hideDialog();var M=new LocalFile(this,R.fallbackFileData,this.defaultFilename,!0);this.fileLoaded(M)})},K();else{var C=this.spinner.spin(document.body,mxResources.get("loading"));this.getRecoveryData(c,l,R,mxUtils.bind(this,function(M){C&&-this.spinner.stop();if(null!=M&&1==M.length){var O=M[0];R.alternateAction={label:O.label,funct:mxUtils.bind(this,function(){this.hideDialog();O.lossy?this.confirm(mxResources.get("recoveryWarning"),mxUtils.bind(this,function(){this.openRecoveredCopy(O,B)})):this.openRecoveredCopy(O,B)})}}else null!=M&&1<M.length&&(R.alternateAction={label:mxResources.get("recover"),funct:mxUtils.bind(this,function(){this.hideDialog();this.showRecoveryDialog(M,B)})});K()}))}}}else t();return r};EditorUi.prototype.getHashValueForPages=-function(c,g){var l=0,n=new mxGraphModel,r=new mxCodec;null!=g&&(g.byteCount=0,g.attrCount=0,g.eltCount=0,g.nodeCount=0);for(var t=0;t<c.length;t++)if(null!=c[t]){this.updatePageRoot(c[t]);var v=c[t].node.ownerDocument.createElement("diagram");v.setAttribute("id",c[t].getId());n.root=c[t].root;var B=r.encode(n);this.editor.graph.saveViewState(c[t].viewState,B,!0);B.removeAttribute("pageWidth");B.removeAttribute("pageHeight");v.appendChild(B);null!=g&&(g.eltCount+=v.getElementsByTagName("*").length,-g.nodeCount+=v.getElementsByTagName("mxCell").length);l=(l<<5)-l+this.hashValue(v,function(E,K,C,R){return!R||"mxGeometry"!=E.nodeName&&"mxPoint"!=E.nodeName||"x"!=K&&"y"!=K&&"width"!=K&&"height"!=K?R&&"mxCell"==E.nodeName&&"previous"==K?null:C:Math.round(C)},g)<<0}return l};EditorUi.prototype.hashValue=function(c,g,l){var n=0;if(null!=c&&"object"===typeof c&&"number"===typeof c.nodeType&&"string"===typeof c.nodeName&&"function"===typeof c.getAttribute){null!=c.nodeName&&(n^=this.hashValue(c.nodeName,-g,l));if(null!=c.attributes){null!=l&&(l.attrCount+=c.attributes.length);for(var r=0;r<c.attributes.length;r++){var t=c.attributes[r].name,v=null!=g?g(c,t,c.attributes[r].value,!0):c.attributes[r].value;null!=v&&(n^=this.hashValue(t,g,l)+this.hashValue(v,g,l))}}if(null!=c.childNodes)for(r=0;r<c.childNodes.length;r++)n=(n<<5)-n+this.hashValue(c.childNodes[r],g,l)<<0}else if(null!=c&&"function"!==typeof c){c=String(c);g=0;null!=l&&(l.byteCount+=c.length);for(r=0;r<c.length;r++)g=(g<<5)-g+c.charCodeAt(r)<<-0;n^=g}return n};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(c,g,l,n,r,t,v){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(c){if(null==c||"<mxfile"==c.substring(0,7))c=this.emptyLibraryXml;-this.loadLibrary(new StorageLibrary(this,c,".scratchpad"))})):this.closeLibrary(this.scratchpad))};EditorUi.prototype.createLibraryDataFromImages=function(c){if(!Editor.defaultCompressed)for(var g=0;g<c.length;g++)null!=c[g].xml&&"<"!=c[g].xml.charAt(0)&&(c[g].xml=mxUtils.trim(Graph.decompress(c[g].xml)));g=mxUtils.createXmlDocument();var l=g.createElement("mxlibrary");mxUtils.setTextContent(l,JSON.stringify(c,null,2));g.appendChild(l);return mxUtils.getXml(g,"\n")};EditorUi.prototype.closeLibrary=-function(c){null!=c&&(this.removeLibrarySidebar(c.getHash()),c.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(c.getHash()),".scratchpad"==c.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=function(c){var g=this.sidebar.palettes[c];if(null!=g){for(var l=0;l<g.length;l++)this.sidebar.unobserveElements(g[l]),g[l].parentNode.removeChild(g[l]);delete this.sidebar.palettes[c]}};EditorUi.prototype.repositionLibrary=function(c,g){var l=this.sidebar.getEntryContainer();if(!this.sidebar.appendCustomLibraries||-null!=c||!g){null==c&&(g=this.sidebar.palettes["L.scratchpad"],null==g&&(g=this.sidebar.palettes.search),null!=g&&(c=g[g.length-1].nextSibling));c=null!=c?c:l.firstChild.nextSibling.nextSibling;g=l.lastChild;var n=g.previousSibling;l.insertBefore(g,c);l.insertBefore(n,g)}};EditorUi.prototype.loadLibrary=function(c,g){var l=mxUtils.parseXml(c.getData());if("mxlibrary"==l.documentElement.nodeName){var n=JSON.parse(mxUtils.getTextContent(l.documentElement));this.libraryLoaded(c,n,l.documentElement.getAttribute("title"),-g,l.documentElement.getAttribute("tags"))}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(c){return""};EditorUi.prototype.showSidebar=function(){null!=this.sidebarWindow?this.sidebarWindow.window.setVisible(!0):this.toggleShapesPanel(!0)};EditorUi.prototype.showSearchWindow=function(c,g){var l=c?"findReplace":"find",n=l+"Window";if(null==this[n]){var r="min"==Editor.currentTheme||"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme,-t=mxSettings.getWindowState(l),v=null!=t&&null!=t.w?t.w:c?r?330:300:240;this[n]=new FindWindow(this,null!=t&&null!=t.x?t.x:document.body.offsetWidth-(v+20),null!=t&&null!=t.y?t.y:100,v,null!=t&&null!=t.h?t.h:c?r?304:288:180,c);this[n].window.addListener("show",function(){this.fireEvent(new mxEventObject(l))});this[n].window.addListener("hide",function(){this.fireEvent(new mxEventObject(l))});this.installWindowPersistence(l,this[n]);null!=t&&null==g&&this.restoreWindowState(l,this[n]);this[n].window.setVisible(!0)}else null==-g&&this[n].window.setVisible(!this[n].window.isVisible());null!=g&&(this[n].doSearch(g),this[n].window.setVisible(!0))};EditorUi.prototype.libraryLoaded=function(c,g,l,n,r){if(null!=this.sidebar){c.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(c.getHash());var t=null;if(c.constructor!=StorageLibrary||".scratchpad"!=c.title){null==this.openLibraries&&(this.openLibraries=[]);for(var v=0;v<this.openLibraries.length;v++)if(this.openLibraries[v].file.getHash()==c.getHash()){mxUtils.remove(this.openLibraries[v],-this.openLibraries);break}t={file:c,images:g,title:l,expand:n};this.openLibraries.push(t)}else this.scratchpad=c;v=this.sidebar.palettes[c.getHash()];v=null!=v?v[v.length-1].nextSibling:null;this.removeLibrarySidebar(c.getHash());var B=null,E=mxUtils.bind(this,function(y,d){0==y.length&&c.isEditable()?(null==B&&(B=document.createElement("div"),B.className="geDropTarget",y=mxResources.get("dragElementsHere"),mxUtils.write(B,y),B.setAttribute("title",y)),d.appendChild(B)):this.addLibraryEntries(y,d)});-null!=this.sidebar&&null!=g&&(this.sidebar.setCurrentSearchEntryLibrary(c.getHash(),c.getHash()),this.sidebar.addEntries(g,r),this.sidebar.setCurrentSearchEntryLibrary());null==l&&(l=c.getTitle(),null!=l&&/(\.xml)$/i.test(l)&&(l=l.substring(0,l.lastIndexOf("."))));var K=this.sidebar.addPalette(c.getHash(),l,null!=n?n:!0,mxUtils.bind(this,function(y){E(g,y)}),!0);null!=t&&(t.div=K);this.repositionLibrary(v,"L.scratchpad"!=c.getHash());n=K.parentNode.previousSibling;l=n.getAttribute("title");null!=-l&&0<l.length&&".scratchpad"!=c.title&&n.setAttribute("title",this.getLibraryStorageHint(c)+"\n"+l);var C=document.createElement("div");C.style.backgroundColor="inherit";n.style.position="relative";var R=document.createElement("img");R.className="geLibraryButton";R.setAttribute("src",Editor.crossImage);R.setAttribute("title",mxResources.get("close"));var M=null;if(".scratchpad"!=c.title||this.closableScratchpad)C.appendChild(R),mxEvent.addListener(R,"click",mxUtils.bind(this,function(y){if(!mxEvent.isConsumed(y)){var d=-mxUtils.bind(this,function(){null!=t&&mxUtils.remove(t,this.openLibraries);this.closeLibrary(c)});null!=M?this.confirm(mxResources.get("allChangesLost"),null,d,mxResources.get("cancel"),mxResources.get("discardChanges")):d();mxEvent.consume(y)}}));if(c.isEditable()){var O=this.editor.graph,U=null;l=mxUtils.bind(this,function(y){this.showLibraryDialog(c.getTitle(),K,g,c,c.getMode());mxEvent.consume(y)});var T=mxUtils.bind(this,function(y){c.setModified(!0);c.isAutosave()?(null!=U&&null!=U.parentNode&&-U.parentNode.removeChild(U),U=R.cloneNode(!1),U.setAttribute("src",Editor.spinImage),U.setAttribute("title",mxResources.get("saving")),U.style.cursor="default",U.style.marginRight="2px",U.style.marginTop="-2px",C.insertBefore(U,C.firstChild),this.saveLibrary(c.getTitle(),g,c,c.getMode(),!0,!0,function(){null!=U&&null!=U.parentNode&&U.parentNode.removeChild(U)})):null==M&&(M=R.cloneNode(!1),M.setAttribute("src",Editor.saveImage),M.setAttribute("title",mxResources.get("save")),C.insertBefore(M,C.firstChild),-mxEvent.addListener(M,"click",mxUtils.bind(this,function(d){this.saveLibrary(c.getTitle(),g,c,c.getMode(),c.constructor==LocalLibrary,!0,function(){null==M||c.isModified()||(M.parentNode.removeChild(M),M=null)});mxEvent.consume(d)})))}),V=mxUtils.bind(this,function(y,d,p,A){y=O.cloneCells(mxUtils.sortCells(O.model.getTopmostCells(y)));for(var G=0;G<y.length;G++){var I=O.getCellGeometry(y[G]);null!=I&&I.translate(-d.x,-d.y)}K.appendChild(this.sidebar.createVertexTemplateFromCells(y,d.width,d.height,-A||"",!0,null,!1));y=mxUtils.getXml(this.editor.graph.encodeCells(y));Editor.defaultCompressed&&(y=Graph.compress(y));d={xml:y,w:d.width,h:d.height};null!=A&&(d.title=A);g.push(d);T(p);null!=B&&null!=B.parentNode&&0<g.length&&(B.parentNode.removeChild(B),B=null)}),fa=mxUtils.bind(this,function(y){if(O.isSelectionEmpty())O.getRubberband().isActive()?(O.getRubberband().execute(y),O.getRubberband().reset()):null!=y&&null!=mxEvent.getSource(y)&&mxEvent.getSource(y).classList.contains("geLibraryButton")&&-this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var d=O.getSelectionCells(),p=O.view.getBounds(d);if(null!=p&&0<p.width&&0<p.height){var A=O.view.scale;p.x/=A;p.y/=A;p.width/=A;p.height/=A;p.x-=O.view.translate.x;p.y-=O.view.translate.y;V(d,p)}else this.showError(mxResources.get("error"),mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(y)});mxEvent.addGestureListeners(K,function(){},mxUtils.bind(this,function(y){O.isMouseDown&&-null!=O.panningManager&&null!=O.graphHandler.first&&(O.graphHandler.suspend(),null!=O.graphHandler.hint&&(O.graphHandler.hint.style.visibility="hidden"),K.style.backgroundColor="light-dark(#fefefe, #000000)",K.style.cursor="copy",O.panningManager.stop(),O.autoScroll=!1,mxEvent.consume(y))}),mxUtils.bind(this,function(y){O.isMouseDown&&null!=O.panningManager&&null!=O.graphHandler&&(K.style.backgroundColor="",K.style.cursor="default",this.sidebar.showTooltips=!0,O.panningManager.stop(),O.graphHandler.reset(),-O.isMouseDown=!1,O.autoScroll=!0,fa(y),mxEvent.consume(y))}));mxEvent.addListener(K,"mouseleave",mxUtils.bind(this,function(y){O.isMouseDown&&null!=O.graphHandler.first&&(O.graphHandler.resume(),null!=O.graphHandler.hint&&(O.graphHandler.hint.style.visibility="visible"),K.style.backgroundColor="",K.style.cursor="",O.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(K,"dragover",mxUtils.bind(this,function(y){K.style.backgroundColor="light-dark(#fefefe, #000000)";y.dataTransfer.dropEffect="copy";-K.style.cursor="copy";this.sidebar.hideTooltip();y.stopPropagation();y.preventDefault()})),mxEvent.addListener(K,"drop",mxUtils.bind(this,function(y){K.style.cursor="";K.style.backgroundColor="";0<y.dataTransfer.files.length&&this.importFiles(y.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(d,p,A,G,I,L,P,Q,ba){if(null!=d&&"image/"==p.substring(0,6))d="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(d),d=[new mxCell("",-new mxGeometry(0,0,I,L),d)],d[0].vertex=!0,V(d,new mxRectangle(0,0,I,L),y,mxEvent.isAltDown(y)?null:P.substring(0,P.lastIndexOf(".")).replace(/_/g," ")),null!=B&&null!=B.parentNode&&0<g.length&&(B.parentNode.removeChild(B),B=null);else{var W=!1,Y=mxUtils.bind(this,function(X,ca){null!=X&&"application/pdf"==ca&&(ca=Editor.extractGraphModelFromPdf(X),null!=ca&&0<ca.length&&(X=ca));if(null!=X)if(X=mxUtils.parseXml(X),"mxlibrary"==X.documentElement.nodeName)try{var S=JSON.parse(mxUtils.getTextContent(X.documentElement));-E(S,K);g=g.concat(S);T(y);this.spinner.stop();W=!0}catch(aa){}else if("mxfile"==X.documentElement.nodeName)try{var Z=X.documentElement.getElementsByTagName("diagram");for(S=0;S<Z.length;S++){var da=this.stringToCells(Editor.getDiagramNodeXml(Z[S])),N=this.editor.graph.getBoundingBoxFromGeometry(da);null!=N&&V(da,new mxRectangle(0,0,N.width,N.height),y)}W=!0}catch(aa){null!=window.console&&console.log("error in drop handler:",aa)}W||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));-null!=B&&null!=B.parentNode&&0<g.length&&(B.parentNode.removeChild(B),B=null)});null!=ba&&null!=P&&EditorUi.isVisioFilename(P)?this.importVisio(ba,function(X){Y(X,"text/xml")},null,P):this.isGliffyData(d,P)&&null!=ba?this.importGliffy(d,mxUtils.bind(this,function(X){this.spinner.stop();Y(X,"text/xml")}),mxUtils.bind(this,function(X){this.spinner.stop();this.handleError({message:mxResources.get(null!=X&&413==X.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile"))}),-P):Y(d,p)}}));y.stopPropagation();y.preventDefault()})),mxEvent.addListener(K,"dragleave",function(y){K.style.cursor="";K.style.backgroundColor="";y.stopPropagation();y.preventDefault()}));R=R.cloneNode(!1);R.setAttribute("src",Editor.editImage);R.setAttribute("title",mxResources.get("edit"));C.insertBefore(R,C.firstChild);mxEvent.addListener(R,"click",l);l=R.cloneNode(!1);l.setAttribute("src",Editor.plusImage);l.setAttribute("title",mxResources.get("add"));C.insertBefore(l,C.firstChild);mxEvent.addListener(l,-"click",fa);".scratchpad"==c.title&&(this.addSelectionToScratchpad=fa);this.isOffline()||".scratchpad"!=c.title||null==EditorUi.scratchpadHelpLink||(l=this.createHelpIcon(EditorUi.scratchpadHelpLink,!0),l.className="geLibraryButton",C.insertBefore(l,C.firstChild))}n.appendChild(C);this.editor.fireEvent(new mxEventObject("libraryLoaded"))}};EditorUi.prototype.addLibraryEntries=function(c,g){for(var l=0;l<c.length;l++)try{var n=c[l],r=n.data;if(null!=r){r="data:"==r.substring(0,5)?this.convertDataUri(r):-r;var t="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==n.aspect&&(t+="aspect=fixed;");t=t+"image="+r+";";null!=n.style&&(t+=n.style);g.appendChild(this.sidebar.createVertexTemplate(t,n.w,n.h,"",n.title||"",!1,null,!0))}else if(null!=n.xml){var v=this.stringToCells("<"==n.xml.charAt(0)?n.xml:Graph.decompress(n.xml)),B=0==v.length?mxResources.get("drawingEmpty"):null!=n.title?n.title:"";g.appendChild(this.sidebar.createVertexTemplateFromCells(v,n.w,n.h,B,!0,null,-!0))}}catch(E){B=null!=E.message?mxResources.get("error")+": "+E.message:String(E),t=this.sidebar.createVertexTemplateFromCells(null,n.w,n.h,B,!0,null,!0),g.appendChild(t)}};EditorUi.prototype.getResource=function(c){return null!=c?c[mxLanguage]||c.main:null};"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"sketch"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=-".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(c,g,l,n,r,t,v){c=new ImageDialog(this,c,g,l,n,r,t,v);this.showDialog(c.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);c.init()};EditorUi.prototype.showLocalStorageDialog=function(c,g,l,n,r,t){var v=localStorage.getItem(g);c=new TextareaDialog(this,c,null!=v?JSON.stringify(JSON.parse(v),null,2):"",mxUtils.bind(this,function(B){if(null!=B)try{if(null!=t&&t(B),B==v)this.hideDialog();else{if(0<B.length){var E=-JSON.parse(B);localStorage.setItem(g,JSON.stringify(E))}else localStorage.removeItem(g);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(K){this.handleError(K)}}),null,mxResources.get("close"),null,null,null,!0,null,null,r,l,n);this.showDialog(c.container,660,480,!0,!1,null,null,null,new mxRectangle(0,0,null!=l&&2<l.length?500:440,280));c.init()};EditorUi.prototype.showConfigurationEditorDialog=function(c,g,l,n){function r(Q){U?K.confirm(mxResources.get("allChangesLost"),-null,Q,mxResources.get("cancel"),mxResources.get("discardChanges")):Q()}function t(){T=!0;K.hideDialog()}function v(Q,ba){var W=document.createElement("div");W.style.padding="4px 16px";W.style.cursor="pointer";W.style.fontSize="13px";W.style.borderBottom=ba?"2px solid #29b6f2":"2px solid transparent";W.style.fontWeight=ba?"bold":"normal";W.style.color=ba?"":"#888";W.style.userSelect="none";mxUtils.write(W,Q);return W}function B(Q,ba){Q.style.borderBottomColor=ba?"#29b6f2":"transparent";Q.style.fontWeight=-ba?"bold":"normal";Q.style.color=ba?"":"#888"}function E(Q){if(Q!==O){if("json"===O)try{var ba=JSON.parse(I.value);M=ba;A.setConfig(ba)}catch(W){}else"json"===Q&&null!=M&&(I.value=JSON.stringify(M,null,2));d.style.display="editor"===Q?"":"none";G.style.display="json"===Q?"":"none";B(fa,"editor"===Q);B(y,"json"===Q);"json"===Q&&I.focus();O=Q}}var K=this,C=localStorage.getItem(g),R={};try{null!=C&&(R=JSON.parse(C))}catch(Q){}var M=R,O="editor",U=!1,T=!1;c=document.createElement("div");c.style.position=-"absolute";c.style.top="20px";c.style.bottom="20px";c.style.left="20px";c.style.right="20px";var V=document.createElement("div");V.style.position="absolute";V.style.left="0";V.style.right="0";V.style.top="0";V.style.height="28px";V.style.display="flex";V.style.alignItems="end";V.style.borderBottom="1px solid #d0d0d0";var fa=v(mxResources.get("editor"),!0),y=v(mxResources.get("formatJson"),!1);V.appendChild(fa);V.appendChild(y);c.appendChild(V);var d=document.createElement("div");d.style.position=-"absolute";d.style.left="0";d.style.right="0";d.style.top="30px";d.style.bottom="50px";V={};try{var p=K.editor.graph;null!=p.currentVertexStyle&&(V.currentVertexStyle=p.currentVertexStyle);null!=p.currentEdgeStyle&&(V.currentEdgeStyle=p.currentEdgeStyle)}catch(Q){}var A=DrawioConfigEditor.install(d,{initialConfig:R,editorContext:V,darkMode:null!=Editor.isDarkMode&&Editor.isDarkMode(),highContrast:K.isHighContrast(),onConfigChanged:function(Q){M=Q;U=!0}}),G=document.createElement("div");G.style.position=-"absolute";G.style.left="0";G.style.right="0";G.style.top="30px";G.style.bottom="50px";G.style.display="none";var I=document.createElement("textarea");I.setAttribute("wrap","off");I.setAttribute("spellcheck","false");I.setAttribute("autocorrect","off");I.setAttribute("autocomplete","off");I.setAttribute("autocapitalize","off");I.style.resize="none";I.style.outline="none";I.style.boxSizing="border-box";I.style.width="100%";I.style.height="100%";try{I.value=null!=C?JSON.stringify(JSON.parse(C),null,-2):""}catch(Q){I.value=C||""}mxEvent.addListener(I,"input",function(){U=!0});G.appendChild(I);c.appendChild(d);c.appendChild(G);mxEvent.addListener(fa,"click",function(){E("editor")});mxEvent.addListener(y,"click",function(){E("json")});var L=document.createElement("div");L.style.position="absolute";L.style.left="0";L.style.right="0";L.style.bottom="0";L.style.height="46px";L.style.display="flex";L.style.whiteSpace="nowrap";L.style.alignItems="center";L.style.justifyContent="end";L.style.paddingTop=-"10px";L.style.paddingBottom="10px";L.style.boxSizing="border-box";null==n||K.isOffline()||L.appendChild(K.createHelpIcon(n));if(null!=l)for(n=0;n<l.length;n++)(function(Q,ba,W){Q=mxUtils.button(Q,function(Y){"json"!==O&&null!=M&&(I.value=JSON.stringify(M,null,2));ba(Y,I)});null!=W&&Q.setAttribute("title",W);Q.className="geBtn";L.appendChild(Q)})(l[n][0],l[n][1],l[n][2]);n=mxUtils.button(mxResources.get("close"),function(){r(t)});n.setAttribute("title","Escape");n.className="geBtn";var P=mxUtils.button(mxResources.get("apply"),-function(){if(U){if("json"!==O){var Q=A.getInvalidFields();if(0<Q.length){K.handleError({message:mxResources.get("invalidInput")+": "+Q.join(", ")});return}Q=null!=M&&0<Object.keys(M).length?JSON.stringify(M,null,2):""}else Q=I.value;try{if(Q==C)U=!1,t();else{if(0<Q.length){var ba=JSON.parse(Q);localStorage.setItem(g,JSON.stringify(ba))}else localStorage.removeItem(g);U=!1;t();K.alert(mxResources.get("restartForChangeRequired"))}}catch(W){K.handleError(W)}}else t()});P.className="geBtn gePrimaryBtn";-K.editor.cancelFirst?(L.appendChild(n),L.appendChild(P)):(L.appendChild(P),L.appendChild(n));c.appendChild(L);mxEvent.addListener(c,"keydown",function(Q){13===Q.keyCode&&mxEvent.isControlDown(Q)&&P.click()});K.showDialog(c,800,600,!0,!1,function(Q,ba){if(!T&&U)return r(t),!1},null,null,new mxRectangle(0,0,null!=l&&2<l.length?500:440,400));I.scrollTop=0};EditorUi.prototype.showLanguageDialog=function(){function c(){var E=mxLanguage;null==urlParams.lang&&isLocalStorage&&(E=mxSettings.settings.language);-for(var K=!1===navigator.onLine,C=Object.create(null),R=0;R<r.length;R++){var M=r[R];C[M.code]=M.box.checked;M.box.disabled="en"==M.code||M.code==E&&M.box.checked||K&&!M.box.checked;M.box.style.cursor=M.box.disabled?"":"pointer";M.row.style.cursor=M.box.disabled?"default":"pointer";K&&!M.box.checked?M.row.setAttribute("title",mxResources.get("notInOffline")):M.row.removeAttribute("title")}}var g=this,l=document.createElement("div");l.style.position="absolute";l.style.top="10px";l.style.bottom="10px";-l.style.left="16px";l.style.right="16px";var n=document.createElement("div");n.style.position="absolute";n.style.left="0";n.style.right="0";n.style.top="0";n.style.bottom="46px";n.style.overflow="auto";l.appendChild(n);var r=[];g.getOfflineLanguages(function(E){for(var K=Object.create(null),C=0;C<E.length;C++)K[E[C]]=!0;E=[];for(var R in mxLanguageMap)"i18n"!=R&&""!=mxLanguageMap[R]&&E.push({code:R,name:mxLanguageMap[R]});E.sort(function(O,U){return O.name.localeCompare(U.name)});C=document.createElement("div");-C.style.padding="8px 4px 0 4px";C.style.color="#888";mxUtils.write(C,mxResources.get("offlineLanguages",null,"Languages available offline"));n.appendChild(C);var M=document.createElement("div");M.style.display="grid";M.style.gridTemplateColumns="repeat(auto-fill, minmax(170px, 1fr))";M.style.gap="2px 16px";M.style.padding="8px 4px";M.style.cursor="pointer";for(C=0;C<E.length;C++)(function(O,U){var T=document.createElement("label");T.style.display="flex";T.style.alignItems="center";T.style.padding=-"4px";T.style.overflow="hidden";T.style.whiteSpace="nowrap";var V=document.createElement("span");V.style.display="inline-flex";V.style.alignItems="center";V.style.justifyContent="center";V.style.position="relative";V.style.width="16px";V.style.height="16px";V.style.margin="0 8px 0 0";V.style.flexShrink="0";var fa=document.createElement("input");fa.setAttribute("type","checkbox");fa.style.margin="0";fa.checked="en"==O||1==K[O];r.push({code:O,box:fa,row:T});mxEvent.addListener(fa,"change",function(){fa.style.display=-"none";var d=g.createSpinner(null,null,4);d.spin(V);var p=function(){g.getOfflineLanguages(function(A){d.stop();fa.style.display="";fa.checked=0<=mxUtils.indexOf(A,O);c()});g.updateOfflineLanguages()};fa.checked?fetch("resources/dia_"+O+".txt").then(p,p):g.removeOfflineLanguage(O,p)});V.appendChild(fa);T.appendChild(V);var y=document.createElement("span");y.style.overflow="hidden";y.style.textOverflow="ellipsis";y.style.lineHeight="normal";mxUtils.write(y,U);T.appendChild(y);M.appendChild(T)})(E[C].code,-E[C].name);n.appendChild(M);c()});var t=function(){c()};mxEvent.addListener(window,"online",t);mxEvent.addListener(window,"offline",t);var v=document.createElement("div");v.style.position="absolute";v.style.left="0";v.style.right="0";v.style.bottom="0";v.style.height="46px";v.style.display="flex";v.style.whiteSpace="nowrap";v.style.alignItems="center";v.style.justifyContent="end";v.style.paddingTop="10px";v.style.paddingBottom="10px";v.style.boxSizing="border-box";var B=mxUtils.button(mxResources.get("close"),-function(){g.hideDialog()});B.setAttribute("title","Escape");B.className="geBtn gePrimaryBtn";v.appendChild(B);l.appendChild(v);this.showDialog(l,480,460,!0,!0,function(){mxEvent.removeListener(window,"online",t);mxEvent.removeListener(window,"offline",t)})};EditorUi.prototype.showBackgroundImageDialog=function(c,g,l,n){c=null!=c?c:mxUtils.bind(this,function(r,t,v){t||(r=new ChangePageSetup(this,n?v:null,r),r.ignoreColor=!n,this.editor.graph.model.execute(r))});c=new BackgroundImageDialog(this,c,-g,l,n);this.showDialog(c.container,400,null,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,g,l,n,r){c=new LibraryDialog(this,c,g,l,n,r);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(t){t&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}),!1,!1,new mxRectangle(0,0,480,320));c.init()};EditorUi.prototype.getCollapsedSections=function(){return mxSettings.getCollapsedSections()};EditorUi.prototype.getLibraryExpanded=function(c,g){var l=mxSettings.getCollapsedLibraries();-return null!=l[c]?!l[c]:g};EditorUi.prototype.setLibraryExpanded=function(c,g){if(null!=c){var l=mxSettings.getCollapsedLibraries();l[c]=!g;mxSettings.setCollapsedLibraries(l);mxSettings.save()}};var m=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(c){var g=m.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(l){this.editor.graph.isSelectionEmpty()&&g.refresh()}));return g};EditorUi.prototype.handleError=function(c,g,l,n,r,t,-v){var B=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},E=null!=c&&null!=c.error?c.error:c;if(null!=c&&("1"==urlParams.test||null!=c.stack)&&null!=c.message)try{"1"!=urlParams.test&&!v||null==window.console||console.error("EditorUi.handleError:",c)}catch(M){}if(null!=E||null!=g){v=mxUtils.htmlEntities(mxResources.get("unknownError"),!1);var K=mxResources.get("ok"),C=null;g=null!=g?g:mxResources.get("error");if(null!=E){null!=E.retry&&(K=mxResources.get("cancel"),C=-function(){B();E.retry()});if(404==E.code||404==E.status||403==E.code){v=403==E.code?null!=E.message?mxUtils.htmlEntities(E.message,!1):mxUtils.htmlEntities(mxResources.get("accessDenied"),!1):null!=r?r:mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied")+(null!=this.drive&&null!=this.drive.user?" ("+this.drive.user.email+")":""),!1);var R=null!=r?null:null!=t?t:window.location.hash;if(null!=R&&("#G"==R.substring(0,2)||"#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D"==R.substring(0,45))&&(null!=-c&&null!=c.error&&(null!=c.error.errors&&0<c.error.errors.length&&"fileAccess"==c.error.errors[0].reason||null!=c.error.data&&0<c.error.data.length&&"fileAccess"==c.error.data[0].reason)||404==E.code||404==E.status)){R="#U"==R.substring(0,2)?R.substring(45,R.lastIndexOf("%26ex")):R.substring(2);this.showError(g,v,mxResources.get("tryOpeningViaThisPage"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+R);null!=n&&n()}),C,mxResources.get("changeUser"),mxUtils.bind(this,-function(){function M(){V.innerText="";for(var fa=0;fa<O.length;fa++){var y=document.createElement("option");mxUtils.write(y,O[fa].displayName);y.value=fa;V.appendChild(y);y=document.createElement("option");y.innerHTML=" ";mxUtils.write(y,"<"+O[fa].email+">");y.setAttribute("disabled","disabled");V.appendChild(y)}y=document.createElement("option");mxUtils.write(y,mxResources.get("addAccount"));y.value=O.length;V.appendChild(y)}var O=this.drive.getUsersList(),U=document.createElement("div"),-T=document.createElement("div");T.style.marginBottom="6px";mxUtils.write(T,mxResources.get("changeUser")+": ");U.appendChild(T);var V=document.createElement("select");V.style.width="100%";M();mxEvent.addListener(V,"change",mxUtils.bind(this,function(){var fa=V.value,y=O.length!=fa;y&&this.drive.setUser(O[fa]);this.drive.authorize(y,mxUtils.bind(this,function(){y||(O=this.drive.getUsersList(),M())}),mxUtils.bind(this,function(d){this.handleError(d)}),!0)}));U.appendChild(V);U=new CustomDialog(this,-U,mxUtils.bind(this,function(){this.loadFile(window.location.hash.substr(1),!0)}));this.showDialog(U.container,300,100,!0,!0)}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.hideDialog();null!=l&&l()}),520,150);return}}null!=E.message?v=""==E.message&&null!=E.name?mxUtils.htmlEntities(E.name,!1):mxUtils.htmlEntities(E.message,!1):null!=E.response&&null!=E.response.error?v=mxUtils.htmlEntities(E.response.error,!1):"undefined"!==typeof window.App&&(E.code==App.ERROR_TIMEOUT?v=mxUtils.htmlEntities(mxResources.get("timeout"),-!1):E.code==App.ERROR_BUSY?v=mxUtils.htmlEntities(mxResources.get("busy"),!1):"string"===typeof E&&0<E.length&&(v=mxUtils.htmlEntities(E,!1)))}r=c=null;null!=E&&null!=E.helpLink?(c=mxResources.get("help"),r=mxUtils.bind(this,function(){return this.editor.graph.openLink(E.helpLink)})):null!=E&&null!=E.ownerEmail?(c=mxResources.get("contactOwner"),v+=mxUtils.htmlEntities(" ("+c+": "+E.ownerEmail+")",!1),r=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(E.ownerEmail))})):-null!=E&&null!=E.alternateAction&&(c=E.alternateAction.label,r=E.alternateAction.funct);this.showError(g,v,K,l,C,null,null,c,r,null!=E?E.dialogWidth:null,null,null,n?l:null)}else null!=l&&l()};EditorUi.prototype.alert=function(c,g,l){c=new ErrorDialog(this,null,c,mxResources.get("ok"),g);this.showDialog(c.container,l||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,g,l,n,r,t){c=null!=c?c:"";var v=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},B=Math.min(220,-28*Math.ceil(Math.max(1,c.length)/50));c=new ConfirmDialog(this,c,function(){v();null!=g&&g()},function(){v();null!=l&&l()},n,r,null,null,null,null,B);this.showDialog(c.container,340,46+B,!0,t);c.init()};EditorUi.prototype.showBanner=function(c,g,l,n,r,t,v,B,E){t=!1;if(!(this.bannerShowing||this["hideBanner"+c]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+c])){v=null!=v?v:"translate(-50%,120%)";B=null!=B?B:"translate(-50%,0%)";var K=document.createElement("div");K.className=-"geBtn gePrimaryBtn geBanner"+(r?" geSmallBanner":"");K.style.zIndex=mxPopupMenu.prototype.zIndex;mxUtils.setPrefixedStyle(K.style,"transform",v);mxUtils.setPrefixedStyle(K.style,"transition","all 1000ms ease");null!=E&&mxUtils.setPrefixedStyle(K.style,"transform-origin",E);E=E=document.createElement("img");E.setAttribute("src",Editor.crossImage);E.setAttribute("title",mxResources.get(n?"doNotShowAgain":"close"));E.setAttribute("border","0");r||(t=document.createElement("img"),t.setAttribute("src",-IMAGE_PATH+"/logo.png"),t.setAttribute("border","0"),t.setAttribute("align","absmiddle"),t.style.cssText="margin-top:-4px;margin-left:8px;margin-right:12px;width:26px;height:26px;",K.appendChild(t),E.style.cssText=(r?"right:6px;top:9px;":"right:10px;top:12px;")+"position:absolute;filter:invert(1);padding:6px;margin:-6px;cursor:default;",K.appendChild(E));mxUtils.write(K,g);document.body.appendChild(K);this.bannerShowing=!0;r&&(E.className="geLibraryButton",K.appendChild(E));g=document.createElement("div");-g.style.cssText="display:flex;align-items:center;justify-content:center;padding-top:6px;font-size:11px;text-align:center;font-weight:normal;";var C=document.createElement("input");C.setAttribute("type","checkbox");C.setAttribute("id","geDoNotShowAgainCheckbox");C.style.marginRight="6px";if(!n){g.appendChild(C);var R=document.createElement("label");R.setAttribute("for","geDoNotShowAgainCheckbox");mxUtils.write(R,mxResources.get("doNotShowAgain"));g.appendChild(R);K.style.paddingBottom=r?"16px":"30px";-K.appendChild(g)}var M=mxUtils.bind(this,function(){null!=K.parentNode&&(K.parentNode.removeChild(K),this.bannerShowing=!1,C.checked||n)&&(this["hideBanner"+c]=!0,isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings["close"+c]=Date.now(),mxSettings.save()))});null!=E&&mxEvent.addListener(E,"click",mxUtils.bind(this,function(U){mxEvent.consume(U);M()}));var O=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(K.style,"transform",v);window.setTimeout(mxUtils.bind(this,function(){M()}),-1E3)});mxEvent.addListener(K,"click",mxUtils.bind(this,function(U){var T=mxEvent.getSource(U);T!=C&&T!=R?(null!=l&&l(),M(),mxEvent.consume(U)):O()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(K.style,"transform",B)}),500);window.setTimeout(O,r?5E3:3E4);t=!0}return t};EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.createImageDataUri=-function(c,g,l,n){c=c.toDataURL("image/"+l);if(null!=c&&6<c.length)null!=g&&(c=Editor.writeGraphModelToPng(c,"tEXt","mxfile",encodeURIComponent(g))),0<n&&(c=Editor.writeGraphModelToPng(c,"pHYs","dpi",n));else throw{message:mxResources.get("unknownError")};return c};EditorUi.prototype.saveCanvas=function(c,g,l,n,r){var t="jpeg"==l?"jpg":l;n=this.getBaseFilename(n)+(null!=g?".drawio":"")+"."+t;c=this.createImageDataUri(c,g,l,r);this.saveData(n,t,c.substring(c.lastIndexOf(",")+1),"image/"+l,!0)};EditorUi.prototype.showAnimatedGifExportDialog=-function(){var c=document.createElement("div");c.style.whiteSpace="nowrap";var g=document.createElement("h3");mxUtils.write(g,mxResources.get("formatAnimatedGif"));c.appendChild(g);g=document.createElement("div");g.className="geDialogSection";var l=document.createElement("div");l.className="geDialogFormRow";var n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("speed")+":");l.appendChild(n);var r=document.createElement("select"),t=[{label:mxResources.get("slow"),-value:8},{label:mxResources.get("medium"),value:15},{label:mxResources.get("fast"),value:24}];for(n=0;n<t.length;n++){var v=document.createElement("option");mxUtils.write(v,t[n].label);v.setAttribute("value",t[n].value);r.appendChild(v)}r.value=null!=this.lastExportFps?this.lastExportFps:15;0>r.selectedIndex&&(r.value=15);l.appendChild(r);g.appendChild(l);l=document.createElement("div");l.className="geDialogFormRow";n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,-mxResources.get("zoom")+":");l.appendChild(n);var B=document.createElement("input");B.setAttribute("type","text");B.value=this.lastExportZoom||"100%";l.appendChild(B);g.appendChild(l);l=document.createElement("div");l.className="geDialogFormRow";n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("borderWidth")+":");l.appendChild(n);var E=document.createElement("input");E.setAttribute("type","text");E.value=this.lastExportBorder||"0";l.appendChild(E);g.appendChild(l);-l=document.createElement("div");l.className="geDialogFormRow";n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("loops")+":");l.appendChild(n);var K=document.createElement("select");t=[{label:mxResources.get("forever"),value:0},{label:"1",value:1},{label:"3",value:3},{label:"5",value:5}];for(n=0;n<t.length;n++)v=document.createElement("option"),mxUtils.write(v,t[n].label),v.setAttribute("value",t[n].value),K.appendChild(v);K.value=null!=this.lastExportLoops?-this.lastExportLoops:0;0>K.selectedIndex&&(K.value=0);l.appendChild(K);g.appendChild(l);l=document.createElement("div");l.className="geDialogFormRow";n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("appearance")+":");l.appendChild(n);var C=document.createElement("select");n=document.createElement("option");n.setAttribute("value","light");mxUtils.write(n,mxResources.get("light"));C.appendChild(n);n=document.createElement("option");n.setAttribute("value",-"dark");mxUtils.write(n,mxResources.get("dark"));C.appendChild(n);var R=Editor.isDarkMode()?"dark":"light";C.value=null!=this.lastExportTheme?this.lastExportTheme:R;0>C.selectedIndex&&(C.value=R);l.appendChild(C);g.appendChild(l);c.appendChild(g);g=document.createElement("div");g.className="geDialogSection";var M=this.addCheckbox(g,mxResources.get("transparentBackground",null,"Transparent Background"),null!=this.lastExportTransparent?this.lastExportTransparent:!1,null,null,null,null,null,!0);c.appendChild(g);-c=new CustomDialog(this,c,mxUtils.bind(this,function(){var O=parseInt(B.value);if(isNaN(O)||0>=O)O=100;this.lastExportZoom=O+"%";this.lastExportBorder=E.value;this.lastExportFps=15!=parseInt(r.value)?parseInt(r.value):null;this.lastExportLoops=0!=parseInt(K.value)?parseInt(K.value):null;this.lastExportTransparent=M.checked?!0:null;this.lastExportTheme=C.value==R?null:C.value;this.exportAnimatedGif({fps:parseInt(r.value),scale:O/100,border:parseInt(E.value)||0,repeat:parseInt(K.value),transparent:M.checked,-theme:C.value,background:M.checked?null:null!=this.editor.graph.background&&this.editor.graph.background!=mxConstants.NONE?this.editor.graph.background:Editor.getDefaultPageBackgroundColor()})}),null,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram");this.showDialog(c.container,360,null,!0,!0,null,null,null,null,!0)};EditorUi.prototype.exportAnimatedGif=function(c){if(this.spinner.spin(document.body,mxResources.get("exporting")))try{(new AnimatedGifExport(this)).doExport(c,-mxUtils.bind(this,function(g){this.spinner.stop();if(null!=g){var l=new FileReader;l.onload=mxUtils.bind(this,function(){var n=l.result;this.saveData(this.getBaseFilename()+".gif","gif",n.substring(n.lastIndexOf(",")+1),"image/gif",!0)});l.onerror=mxUtils.bind(this,function(n){this.handleError(n)});l.readAsDataURL(g)}}),mxUtils.bind(this,function(g){this.spinner.stop();this.handleError(g)}))}catch(g){this.spinner.stop(),this.handleError(g)}};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=-urlParams.save&&"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(c,g){c=new TextareaDialog(this,c,g,null,null,mxResources.get("close"));this.showDialog(c.container,620,460,!0,!0,null,null,null,new mxRectangle(0,0,440,280),!0);c.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(c,g,l,n,r,t){"text/xml"!=l||/(\.drawio)$/i.test(g)||/(\.xml)$/i.test(g)||/(\.svg)$/i.test(g)||-/(\.html)$/i.test(g)||(g=g+"."+(null!=t?t:"drawio"));if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||null==l||"image/"!=l.substring(0,6)?this.showTextDialog(g+":",c):this.openInNewWindow(c,l,n);else{var v=document.createElement("a");t=(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&"undefined"!==typeof v.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var B=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);t=65==(B?parseInt(B[2],10):!1)?!1:t}if(t||this.isOffline()){v.href=-URL.createObjectURL(n?this.base64ToBlob(c,l):new Blob([c],{type:l}));t?v.download=g:v.setAttribute("target","_blank");document.body.appendChild(v);try{window.setTimeout(function(){URL.revokeObjectURL(v.href)},2E4),v.click(),v.parentNode.removeChild(v)}catch(E){}}else this.createEchoRequest(c,g,l,n,r).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(c,g,l,n,r,t){c="xml="+encodeURIComponent(c);return new mxXmlRequest(SAVE_URL,c+(null!=l?"&mime="+l:"")+(null!=r?"&format="+-r:"")+(null!=t?"&base64="+t:"")+(null!=g?"&filename="+encodeURIComponent(g):"")+(n?"&binary=1":""))};EditorUi.prototype.saveLocalFile=function(c,g,l,n,r,t,v,B,E){t=null!=t?t:!1;v=null!=v?v:"vsdx"!=r&&(!mxClient.IS_IOS||!navigator.standalone);var K=mxUtils.bind(this,function(R,M,O,U){try{if("_blank"==M)if(null!=l&&"image/"==l.substring(0,6))this.openInNewWindow(c,l,n);else if(null!=l&&"text/html"==l.substring(0,9)&&c.length<EmbedDialog.maxSize){var T=new EmbedDialog(this,c,null,null,null,null,null,-null,null,!0);this.showDialog(T.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));T.init()}else null==window.open(URL.createObjectURL(new Blob([c],{type:"text/plain;charset=utf-8"})))&&mxUtils.popup(c,!0);else if(M==App.MODE_DEVICE||"download"==M)this.doSaveLocalFile(c,R,l,n,null,B);else if(null!=R&&0<R.length){var V=mxUtils.bind(this,function(fa){try{this.exportFile(c,R,l,n,M,fa)}catch(y){this.handleError(y)}});null!=U?V(U):this.pickFolder(M,V)}}catch(fa){this.handleError(fa)}});-r=[];t||r.push(App.MODE_BROWSER);v||r.push("_blank");var C=new SaveDialog(this,g,mxUtils.bind(this,function(R,M,O){K(R.value,M,R,O);this.hideDialog(null,null,C.container)}),r,c,l,n,E);this.showDialog(C.container,420,null!=l?114:122,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));C.init()};EditorUi.prototype.openInNewWindow=function(c,g,l){null==window.open(URL.createObjectURL(l?this.base64ToBlob(c,g):new Blob([c],{type:g})))&&mxUtils.popup(c,!0)};var f=EditorUi.prototype.addChromelessToolbarItems;-EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};EditorUi.prototype.addChromelessToolbarItems=function(c){if(null!=urlParams.tags){var g=null;try{var l=urlParams.tags;try{l=decodeURIComponent(l)}catch(B){}g=JSON.parse(l)}catch(B){}if(null!=g){var n=this.editor.graph,r=mxUtils.bind(this,function(){var B=null!=this.currentPage?this.currentPage.getId():-0;B=g[B];n.hiddenTags=null!=B&&0<B.length?B:[];n.refresh()});this.editor.addListener("fileLoaded",mxUtils.bind(this,function(){r();n.isLightboxView()&&this.lightboxFit();this.chromelessResize&&this.chromelessResize()}));this.editor.addListener("pageSelected",r)}this.tagsDialog=this.tagsComponent=null;var t=c(mxUtils.bind(this,function(B){null==this.tagsComponent&&(this.tagsComponent=this.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return null!=this.tagsDialog}),!0),this.tagsComponent.div.getElementsByTagName("div")[0].style.position=+EditorUi.prototype.isRemoteExportEnabled=function(){return!this.isOffline()&&"string"===typeof EXPORT_URL&&/^(https?:\/\/|\/)/i.test(EXPORT_URL)};EditorUi.prototype.isPrintPdfExport=function(){return this.printPdfExport||!this.isRemoteExportEnabled()};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,f,l){var n=null==c||null==f;l=null!=l?l:24;var r=new Spinner({lines:12,length:l,width:Math.round(l/+3),radius:Math.round(l/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),t=this.timeout,v=r.spin,B=null,E=null,K=mxUtils.bind(this,function(M){null!=M&&M()}),C=this;r.spin=function(M,O,U,T){T=null!=T?T:t;var V=!1;if(!this.active){var fa=Date.now();null!=U&&(B=window.setTimeout(function(){r.stop();B=null;U({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:E})},T));n&&(f=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||+0)/2,c=document.body.clientWidth/2-2);M==document.body&&"1"==urlParams.embedInline&&(M=C.diagramContainer,c=M.scrollLeft+M.clientWidth/2,f=M.scrollTop+M.clientHeight/2);v.call(this,M);"1"==urlParams.embedInline&&null!=r.el&&(r.el.style.marginTop=M.scrollTop+"px",r.el.style.marginLeft=M.scrollLeft+"px");this.active=!0;null!=O&&(V=document.createElement("div"),V.className="geSpinnerStatus",V.setAttribute("title",O),M==document.body?(V.style.left=Math.max(0,c)+"px",V.style.top=Math.max(0,f+66)+"px"):+(V.style.left="50%",V.style.top="50%",V.style.marginTop="70px"),"..."!=O.substring(O.length-3,O.length)&&"!"!=O.charAt(O.length-1)&&(O+="..."),V.innerText=O,M.appendChild(V),r.status=V);this.pause=mxUtils.bind(this,function(){var y=K;this.active&&(T=Math.max(0,T-(Date.now()-fa)),y=mxUtils.bind(this,function(d){this.spin(M,O,U,T);if(null!=d)try{d(),E=mxUtils.bind(this,function(){this.spin(M,O,U,T);try{d()}catch(p){null!=U&&U(p)}})}catch(p){null!=U&&U(p)}}));this.stop();return y});V=!0}return V};var R=+r.stop;r.stop=function(){R.call(this);this.active&&(this.active=!1,null!=B&&(window.clearTimeout(B),B=null),null!=r.status&&null!=r.status.parentNode&&r.status.parentNode.removeChild(r.status),r.status=null)};r.pause=function(){return K};return r};EditorUi.prototype.isCompatibleString=function(c){try{if(c=mxUtils.trim(c),"<"==c.charAt(0)){var f=mxUtils.parseXml(c),l=this.editor.extractGraphModel(f.documentElement,!0);return null!=l&&0==l.getElementsByTagName("parsererror").length}}catch(n){}return!1};+EditorUi.isVisioFilename=function(c){return/(\.v(dx|sdx?))($|\?)/i.test(c)||/(\.vs(x|sx?))($|\?)/i.test(c)};EditorUi.prototype.isVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&4==c.charCodeAt(3)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&6==c.charCodeAt(3))};+EditorUi.prototype.isRemoteVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||60==c.charCodeAt(0)&&63==c.charCodeAt(1)&&120==c.charCodeAt(2)&&109==c.charCodeAt(3)&&108==c.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(c){var f=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var l=+f.getFunction,n=this.editor.graph,r=this;f.getFunction=function(t){if(n.isSelectionEmpty()&&null!=r.pages&&0<r.pages.length){var v=r.getSelectedPageIndex();if(mxEvent.isShiftDown(t)){if(37==t.keyCode)return function(){0<v&&r.movePage(v,v-1)};if(38==t.keyCode)return function(){0<v&&r.movePage(v,0)};if(39==t.keyCode)return function(){v<r.pages.length-1&&r.movePage(v,v+1)};if(40==t.keyCode)return function(){v<r.pages.length-1&&r.movePage(v,r.pages.length-1)}}else if(mxEvent.isControlDown(t)||mxClient.IS_MAC&&+mxEvent.isMetaDown(t)){if(37==t.keyCode)return function(){0<v&&r.selectNextPage(!1)};if(38==t.keyCode)return function(){0<v&&r.selectPage(r.pages[0])};if(39==t.keyCode)return function(){v<r.pages.length-1&&r.selectNextPage(!0)};if(40==t.keyCode)return function(){v<r.pages.length-1&&r.selectPage(r.pages[r.pages.length-1])}}}return!(65<=t.keyCode&&90>=t.keyCode)||n.isSelectionEmpty()||mxEvent.isAltDown(t)||mxEvent.isShiftDown(t)||mxEvent.isControlDown(t)||mxClient.IS_MAC&&mxEvent.isMetaDown(t)?l.apply(this,+arguments):null}}return f};var k=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=function(c){var f=k.apply(this,arguments);if(null==f)try{var l=c.indexOf("<mxfile ");if(0<=l){var n=c.lastIndexOf("</mxfile>");n>l&&(f=c.substring(l,n+15).replace(/>/g,">").replace(/</g,"<").replace(/\\"/g,'"').replace(/\n/g,""))}else{var r=mxUtils.parseXml(c),t=this.editor.extractGraphModel(r.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);+f=null!=t?mxUtils.getXml(t):""}}catch(v){}return f};EditorUi.prototype.validateFileData=function(c){if(null!=c&&0<c.length){var f=c.indexOf('<meta charset="utf-8">');0<=f&&(c=c.slice(0,f)+'<meta charset="utf-8"/>'+c.slice(f+23-1,c.length));c=Graph.zapGremlins(c)}return c};EditorUi.prototype.repairFileData=function(c){c=mxUtils.trim(c||"");if(0==c.length)return null;var f=c.replace(/<\/([A-Za-z_][\w.\-]*)(\s*)(?=<)/g,"</$1>$2"),l=f.lastIndexOf(">");f.lastIndexOf("<")>l&&(f=mxUtils.trim(f.substring(0,+l+1)));if("</mxfile>"!=f.substring(f.length-9)){l=[];for(var n=/<(\/?)([A-Za-z_][\w.\-]*)[^>]*?(\/?)>/g,r;null!=(r=n.exec(f));)"/"==r[1]?0<l.length&&l[l.length-1]==r[2]&&l.pop():"/"!=r[3]&&l.push(r[2]);for(n=l.length-1;0<=n;n--)f+="</"+l[n]+">"}return f!=c?f:null};EditorUi.prototype.isFileDataLoadable=function(c){try{c=this.validateFileData(c);var f=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;if(null==f||null!=Editor.extractParserError(f))return!1;var l=this.editor.extractGraphModel(f,+!0);return null!=(null!=l?l:f)}catch(n){return!1}};EditorUi.prototype.getRecoveryData=function(c,f,l,n){var r=null;try{var t=this.repairFileData(f);null!=t&&t!=f&&this.isFileDataLoadable(t)&&(r={type:"repair",label:mxResources.get("openRepairedCopy"),description:mxResources.get("recoveryRepairedDesc"),data:t,lossy:!0})}catch(B){}var v=mxUtils.bind(this,function(B){var E=[];null!=B&&null!=B.data&&E.push(B);null!=r&&E.push(r);n(E)});null!=c&&"function"===typeof c.getRecoveryVersion?c.getRecoveryVersion(mxUtils.bind(this,+function(B){v(B)}),mxUtils.bind(this,function(){v(null)})):v(null)};EditorUi.prototype.openRecoveredCopy=function(c,f){c=new LocalFile(this,c.data,mxResources.get("copyOf",[f||this.defaultFilename]),!0);this.fileLoaded(c)&&c.fileChanged()};EditorUi.prototype.showRecoveryDialog=function(c,f){c=new RecoveryDialog(this,c,mxUtils.bind(this,function(l){this.hideDialog();this.openRecoveredCopy(l,f)}),mxUtils.bind(this,function(){this.hideDialog()}));this.showDialog(c.container,380,null,!0,!0)};EditorUi.prototype.formatRecoveryDate=+function(c){c=new Date(c);return!isNaN(c.getTime())&&0<=c.getTime()?c.toLocaleString():null};EditorUi.prototype.replaceFileData=function(c,f){EditorUi.debug("EditorUi.replaceFileData",[this],"data",[c],"patches",f);c=this.validateFileData(c);c=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var l=null!=c?this.editor.extractGraphModel(c,!0):null;null!=l&&(c=l);if(null!=c){l=this.editor.graph;l.model.beginUpdate();try{var n=null!=this.pages?this.pages.slice():null,r=c.getElementsByTagName("diagram");+if(1<r.length||1==r.length&&r[0].hasAttribute("name")){this.fileNode=c;l.defaultExportLinkTarget=c.getAttribute("linkTarget");this.pages=null!=this.pages?this.pages:[];for(var t=r.length-1;0<=t;t--){var v=this.updatePageRoot(new DiagramPage(r[t]));null==v.getName()&&v.setName(mxResources.get("pageWithNumber",[t+1]));l.model.execute(new ChangePage(this,v,0==t?v:null,0))}}else null==this.fileNode&&(this.fileNode=c.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(c.ownerDocument.createElement("diagram")),+this.currentPage.setName(mxResources.get("pageWithNumber",[1])),l.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0))),this.editor.setGraphXml(c),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,l.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=n)for(t=0;t<n.length;t++)l.model.execute(new ChangePage(this,n[t],null));var B=this.getCurrentFile();null!=B&&B.fileReplaced(f)}finally{l.model.endUpdate()}}};EditorUi.prototype.createFileData=+function(c,f,l,n,r,t,v,B,E,K,C,R,M){f=null!=f?f:this.editor.graph;r=null!=r?r:!1;E=null!=E?E:!0;K=null!=K?K:this.defaultCompact;C=null!=C?C:!Editor.defaultCompressed;var O=null;if(null==l||l.getMode()==App.MODE_DEVICE||l.getMode()==App.MODE_BROWSER)var U="_blank";else O=U=n;if(null==c)return"";var T=c;if("mxfile"!=T.nodeName.toLowerCase()){if(C){var V=c.ownerDocument.createElement("diagram");V.setAttribute("name",mxResources.get("pageWithNumber",[1]));V.setAttribute("id",Editor.guid());V.appendChild(c)}else{V=+Graph.zapGremlins(mxUtils.getXml(c));T=Graph.compress(V);if(Graph.decompress(T)!=V)return V;V=c.ownerDocument.createElement("diagram");V.setAttribute("name",mxResources.get("pageWithNumber",[1]));V.setAttribute("id",Editor.guid());mxUtils.setTextContent(V,T)}T=c.ownerDocument.createElement("mxfile");T.appendChild(V)}K?(T=T.cloneNode(!0),T.removeAttribute("modified"),T.removeAttribute("host"),T.removeAttribute("agent"),T.removeAttribute("etag"),T.removeAttribute("userAgent"),T.removeAttribute("version"),+T.removeAttribute("editor"),T.removeAttribute("type")):(T.removeAttribute("userAgent"),T.removeAttribute("modified"),T.removeAttribute("version"),T.removeAttribute("editor"),T.removeAttribute("pages"),T.removeAttribute("type"),T.removeAttribute("etag"),mxClient.IS_CHROMEAPP?T.setAttribute("host","Chrome"):EditorUi.isElectronApp?T.setAttribute("host","Electron"):T.setAttribute("host",window.location.hostname),1<T.getElementsByTagName("diagram").length&&null!=this.pages&&T.setAttribute("pages",this.pages.length));+null!=R&&(T=T.cloneNode(!0),T.setAttribute("scale",R));null!=M&&(T=T.cloneNode(!0),T.setAttribute("border",M));c=C?mxUtils.getPrettyXml(T):mxUtils.getXml(T);if(!t&&!r&&(v||null!=l&&/(\.html)$/i.test(l.getTitle())))c=this.getHtml2(mxUtils.getXml(T),f,null!=l?l.getTitle():null,U,O);else if(t||!r&&null!=l&&/(\.svg)$/i.test(l.getTitle()))null==l||l.getMode()!=App.MODE_DEVICE&&l.getMode()!=App.MODE_BROWSER||(n=null),l=this.getSvgFileProperties(T),c=this.getEmbeddedSvg(c,f,n,null,B,E,O,null,null,l.scale,+l.border,null,Editor.svgFileTheme,null,l.embedFonts);return c};EditorUi.prototype.getXmlFileData=function(c,f,l,n){c=null!=c?c:!0;f=null!=f?f:!1;l=null!=l?l:!Editor.defaultCompressed;var r=this.editor.getGraphXml(c,n);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(E){var K=E.getElementsByTagName("mxGraphModel"),C=0<K.length?K[0]:null;K=E;null==C&&l?(C=mxUtils.getNodeValue(E),0<C.length&&(C=Graph.decompress(C),null!=C&&0<C.length&&(K=E.cloneNode(!1),K.appendChild(mxUtils.parseXml(C).documentElement)))):+null==C||l?K=E.cloneNode(!0):(K=E.cloneNode(!1),mxUtils.setTextContent(K,Graph.compressNode(C)));r.appendChild(K)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(r),r=this.fileNode.cloneNode(!1),f)c(this.currentPage.node);else for(f=0;f<this.pages.length;f++){var t=this.pages[f],v=t.node;if(t!=this.currentPage)if(t.needsUpdate){var B=new mxCodec(mxUtils.createXmlDocument());B=B.encode(new mxGraphModel(t.root));this.editor.graph.saveViewState(t.viewState,B,null,+n);EditorUi.removeChildNodes(v);v.appendChild(B);delete t.needsUpdate}else n&&(this.updatePageRoot(t),null!=t.viewState.backgroundImage&&null!=t.viewState.backgroundImage.originalSrc&&(B=new mxCodec(mxUtils.createXmlDocument()),B=B.encode(new mxGraphModel(t.root)),this.editor.graph.saveViewState(t.viewState,B,null,n,t),v=v.cloneNode(!1),v.appendChild(B)));c(v)}return r};EditorUi.prototype.anonymizeString=function(c,f){for(var l=[],n=0;n<c.length;n++){var r=c.charAt(n);0<=EditorUi.ignoredAnonymizedChars.indexOf(r)?+l.push(r):isNaN(parseInt(r))?r.toLowerCase()!=r?l.push(String.fromCharCode(65+Math.round(25*Math.random()))):r.toUpperCase()!=r?l.push(String.fromCharCode(97+Math.round(25*Math.random()))):/\s/.test(r)?l.push(" "):l.push("?"):l.push(f?"0":Math.round(9*Math.random()))}return l.join("")};EditorUi.prototype.anonymizeXml=function(c){function f(v,B,E){if(v.hasAttribute(B)){var K=v.getAttribute(B);null!=K&&0<K.length&&(E&&0<=K.indexOf("<")?(t.innerHTML=Graph.sanitizeHtml(K),l(t),K=t.innerHTML):K=r.anonymizeString(K),+v.setAttribute(B,K))}}function l(v){null!=v.nodeValue&&(v.nodeValue=r.anonymizeString(v.nodeValue));if(v.nodeType==mxConstants.NODETYPE_ELEMENT)for(v=v.firstChild;null!=v;)l(v),v=v.nextSibling}function n(v){if(v.nodeType==mxConstants.NODETYPE_ELEMENT){if("mxCell"==v.nodeName)f(v,"value",!0);else if("object"==v.nodeName||"UserObject"==v.nodeName)for(var B=0;B<v.attributes.length;B++){var E=v.attributes[B];"id"!=E.name&&"style"!=E.name&&"placeholders"!=E.name&&"vertex"!=E.name&&"edge"!=E.name&&"parent"!=+E.name&&"connectable"!=E.name&&"visible"!=E.name&&"collapsed"!=E.name&&"source"!=E.name&&"target"!=E.name&&(E.value=r.anonymizeString(E.value))}else"diagram"==v.nodeName&&f(v,"name",!1);for(v=v.firstChild;null!=v;)n(v),v=v.nextSibling}}var r=this,t=document.createElement("div");c=mxUtils.parseXml(c);n(c.documentElement);return mxUtils.getPrettyXml(c.documentElement)};EditorUi.prototype.anonymizePatch=function(c){c=JSON.parse(JSON.stringify(c));if(null!=c[EditorUi.DIFF_INSERT])for(var f=0;f<c[EditorUi.DIFF_INSERT].length;f++)try{var l=+mxUtils.parseXml(c[EditorUi.DIFF_INSERT][f].data).documentElement.cloneNode(!1);null!=l.getAttribute("name")&&l.setAttribute("name",this.anonymizeString(l.getAttribute("name")));c[EditorUi.DIFF_INSERT][f].data=mxUtils.getXml(l)}catch(t){c[EditorUi.DIFF_INSERT][f].data=t.message}if(null!=c[EditorUi.DIFF_UPDATE]){for(var n in c[EditorUi.DIFF_UPDATE]){var r=c[EditorUi.DIFF_UPDATE][n];null!=r.name&&(r.name=this.anonymizeString(r.name));null!=r.cells&&(f=mxUtils.bind(this,function(t){var v=r.cells[t];+if(null!=v){for(var B in v)null!=v[B].value&&(v[B].value="["+v[B].value.length+"]"),null!=v[B].xmlValue&&(v[B].xmlValue="["+v[B].xmlValue.length+"]"),null!=v[B].style&&(v[B].style="["+v[B].style.length+"]"),mxUtils.isEmptyObject(v[B])&&delete v[B];mxUtils.isEmptyObject(v)&&delete r.cells[t]}}),f(EditorUi.DIFF_INSERT),f(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(r.cells)&&delete r.cells);mxUtils.isEmptyObject(r)&&delete c[EditorUi.DIFF_UPDATE][n]}mxUtils.isEmptyObject(c[EditorUi.DIFF_UPDATE])&&delete c[EditorUi.DIFF_UPDATE]}return c};+EditorUi.prototype.anonymizeAttributes=function(c,f){if(null!=c.attributes)for(var l=0;l<c.attributes.length;l++)"as"!=c.attributes[l].name&&c.setAttribute(c.attributes[l].name,this.anonymizeString(c.attributes[l].value,f));if(null!=c.childNodes)for(l=0;l<c.childNodes.length;l++)this.anonymizeAttributes(c.childNodes[l],f)};EditorUi.prototype.anonymizeNode=function(c,f){f=c.getElementsByTagName("mxCell");for(var l=0;l<f.length;l++)null!=f[l].getAttribute("value")&&f[l].setAttribute("value","["+f[l].getAttribute("value").length++"]"),null!=f[l].getAttribute("xmlValue")&&f[l].setAttribute("xmlValue","["+f[l].getAttribute("xmlValue").length+"]"),null!=f[l].getAttribute("style")&&f[l].setAttribute("style","["+f[l].getAttribute("style").length+"]"),null!=f[l].parentNode&&"root"!=f[l].parentNode.nodeName&&null!=f[l].parentNode.parentNode&&(f[l].setAttribute("id",f[l].parentNode.getAttribute("id")),f[l].parentNode.parentNode.replaceChild(f[l],f[l].parentNode));return c};EditorUi.prototype.synchronizeCurrentFile=function(c){var f=+this.getCurrentFile();null!=f&&(f.savingFile?this.handleError({message:mxResources.get("busy")}):!c&&f.invalidChecksum?f.handleFileError(null,!0):this.spinner.spin(document.body,mxResources.get("updatingDocument"))&&(f.clearAutosave(),this.clearStatus(),c?f.reloadFile(mxUtils.bind(this,function(){this.spinner.stop();f.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(l){this.spinner.stop();f.handleFileError(l,!0)})):f.synchronizeFile(mxUtils.bind(this,function(){f.handleFileSuccess("manual"==+DrawioFile.SYNC)}),mxUtils.bind(this,function(l){f.handleFileError(l,!0)}))))};EditorUi.prototype.getFileData=function(c,f,l,n,r,t,v,B,E,K,C,R,M){r=null!=r?r:!0;t=null!=t?t:!1;K=null!=K?K:!Editor.defaultCompressed;var O=this.editor.graph;if((f||!c&&null!=E&&/(\.svg)$/i.test(E.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var U=O.getGlobalVariable;O=this.createTemporaryGraph(O.getStylesheet());O.setBackgroundImage=this.editor.graph.setBackgroundImage;O.background=this.editor.graph.background;+var T=null!=this.pages?this.pages[0]:null;null==T||this.currentPage==T?O.setBackgroundImage(this.editor.graph.backgroundImage):null!=T.viewState&&null!=T.viewState&&O.setBackgroundImage(T.viewState.backgroundImage);O.getGlobalVariable=function(V){return"page"==V&&null!=T?T.getName():"pagenumber"==V?1:U.apply(this,arguments)};document.body.appendChild(O.container);null!=T&&O.model.setRoot(T.root)}v=null!=v?v:this.getXmlFileData(r,t,K,C);E=null!=E?E:this.getCurrentFile();c=this.createFileData(v,O,E,+window.location.href,c,f,l,n,r,B,K,R,M);O!=this.editor.graph&&O.container.parentNode.removeChild(O.container);return c};EditorUi.prototype.getHtml=function(c,f,l,n,r,t){t=null!=t?t:!0;var v=null,B=EditorUi.drawHost+"/js/embed-static.min.js";if(null!=f){v=t?f.getGraphBounds():f.getBoundingBox(f.getSelectionCells());var E=f.view.scale;t=Math.floor(v.x/E-f.view.translate.x);E=Math.floor(v.y/E-f.view.translate.y);v=f.background;null==r&&(f=this.getBasenames().join(";"),0<f.length&&(B=EditorUi.drawHost++"/embed.js?s="+f));c.setAttribute("x0",t);c.setAttribute("y0",E)}null!=c&&(c.setAttribute("pan","1"),c.setAttribute("zoom","1"),c.setAttribute("resize","0"),c.setAttribute("fit","0"),c.setAttribute("border","20"),c.setAttribute("links","1"),null!=n&&c.setAttribute("edit",n));null!=r&&(r=r.replace(/&/g,"&"));c=null!=c?Graph.zapGremlins(mxUtils.getXml(c)):"";n=Graph.compress(c);Graph.decompress(n)!=c&&(n=encodeURIComponent(c));return(null==r?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':+"")+"<!DOCTYPE html>\n<html"+(null!=r?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==r?null!=l?"<title>"+mxUtils.htmlEntities(l)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=r?'<meta http-equiv="refresh" content="0;URL=\''+r+"'\"/>\n":"")+"</head>\n<body"+(null==r&&null!=v&&v!=mxConstants.NONE?' style="background-color:'+v+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'+n+"</div>\n</div>\n"++(null==r?'<script type="text/javascript" src="'+B+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+r+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(c,f,l,n,r){f=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=r&&(r=r.replace(/&/g,"&"));c={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,resize:!0,+xml:Graph.zapGremlins(c),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(c.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==r?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=r?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==r?null!=l?"<title>"+mxUtils.htmlEntities(l)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=r?'<meta http-equiv="refresh" content="0;URL=\''++r+"'\"/>\n":"")+'<meta charset="utf-8"/>\n</head>\n<body>\n<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(c))+'"></div>\n'+(null==r?'<script type="text/javascript" src="'+f+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+r+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.updateFileVars=+function(){var c=null!=this.fileNode?this.fileNode.getAttribute("vars"):null;if(c!==this.fileVarsStr&&(this.fileVarsStr=c,this.fileVars=null,null!=c&&0<c.length))try{this.fileVars=JSON.parse(c)}catch(f){}};EditorUi.prototype.setFileData=function(c,f){c=this.validateFileData(c);this.pages=this.fileNode=this.currentPage=null;f=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var l=Editor.extractParserError(f,mxResources.get("invalidOrMissingFile"));if(l)throw EditorUi.debug("EditorUi.setFileData ParserError",+[this],"data",[c],"node",[f],"cause",[l]),Error(mxResources.get("notADiagramFile")+" ("+l+")");c=null!=f?this.editor.extractGraphModel(f,!0):null;null!=c&&(f=c);if(null!=f&&"mxfile"==f.nodeName&&(c=f.getElementsByTagName("diagram"),l={},0<c.length)){var n=this.getHashObject(),r=null;this.fileNode=f;this.editor.graph.defaultExportLinkTarget=f.getAttribute("linkTarget");this.pages=[];for(var t=0;t<c.length;t++){null==c[t].getAttribute("id")&&c[t].setAttribute("id",t);f=new DiagramPage(c[t]);null==f.getName()&&+f.setName(mxResources.get("pageWithNumber",[t+1]));this.pages.push(f);if(null==n.pageId&&null!=urlParams["page-id"]&&f.getId()==urlParams["page-id"]||null!=n.pageId&&f.getId()==n.pageId)r=f;if(null==l[f.getId()])l[f.getId()]=f;else throw Error(f.getId()+": Duplicate page ID");}this.currentPage=null!=r?r:this.pages[Math.max(0,Math.min(this.pages.length-1,urlParams.page||0))];f=this.currentPage.node}null==this.fileNode&&null!=f&&(this.fileNode=f.ownerDocument.createElement("mxfile"),this.currentPage=+new DiagramPage(f.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(f);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,this.currentPage.setDiagramModified(!1),this.scrollToPage());if(null!=urlParams["layer-ids"])try{var v=decodeURIComponent(urlParams["layer-ids"]).split(" "),B=Object.create(null);for(t=0;t<v.length;t++)B[v[t]]=!0;var E=this.editor.graph.getModel(),+K=E.getChildren(E.root);for(t=0;t<K.length;t++){var C=K[t];E.setVisible(C,B[C.id]||!1)}}catch(R){}};EditorUi.prototype.fileStats=function(c,f){try{if(null!=c&&5E5<c.getSize()&&""!==c.getHash()&&"draw.io"==this.getServiceName()){var l=f.getElementsByTagName("diagram");f={};f.modified=c.getLastModifiedDate();f.fileMode=c.getMode();f.fileSize=c.getSize();f.fileHash=c.getHash();f.pages=l.length;f.redundantStencils=0;f.redundantImages=0;f.redundantSize=0;f.stencils=0;f.images=0;for(var n=f.cells=0;n<l.length;n++){var r=+l[n].getElementsByTagName("mxCell");f.cells+=r.length;for(var t={},v=0;v<r.length;v++){var B=r[v].getAttribute("style");if(null!=B)for(var E=B.split(";"),K=0;K<E.length;K++){var C=E[K];if(C.startsWith("image=data:")||C.startsWith("shape=stencil("))null==t[C]?t[C]=1:t[C]++}}for(var R in t){var M=t[R];R.startsWith("shape=stencil(")?f.stencils+=M:f.images+=M;1<M&&(f.redundantSize+=R.length*(M-1),R.startsWith("shape=stencil(")?f.redundantStencils+=M-1:f.redundantImages+=M-1)}}EditorUi.logEvent({category:c.getMode().toUpperCase()++"-FILE-STATS-"+c.getHash(),action:"size_"+c.getSize(),label:JSON.stringify(f)})}}catch(O){}};EditorUi.prototype.getBaseFilename=function(c){var f=this.getCurrentFile();f=null!=f&&null!=f.getTitle()?f.getTitle():this.defaultFilename;if(/(\.xml)$/i.test(f)||/(\.html)$/i.test(f)||/(\.svg)$/i.test(f)||/(\.png)$/i.test(f))f=f.substring(0,f.lastIndexOf("."));/(\.drawio)$/i.test(f)&&(f=f.substring(0,f.lastIndexOf(".")));!c&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&+0<this.currentPage.getName().length&&(f=f+"-"+this.currentPage.getName());return f};EditorUi.prototype.downloadFile=function(c,f,l,n,r,t,v,B,E,K,C,R,M,O,U,T,V,fa){try{n=null!=n?n:this.editor.graph.isSelectionEmpty();var y=this.getBaseFilename(!r),d=y+("xml"==c||"pdf"==c&&C?".drawio":"")+"."+c;if("xml"==c){var p=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,n,r,null,null,null,f);this.saveData(d,c,p,"text/xml")}else if("html"==c)p=this.getHtml2(this.getFileData(!0),this.editor.graph,+y),this.saveData(d,c,p,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))if("xmlpng"==c?d=y+".png":"jpeg"==c&&(d=y+".jpg"),"1"==urlParams.embed&&"json"==urlParams.proto&&this.embedExportProtocol){var A=this.embedMessageSource||window.opener||window.parent;this.spinner.spin(document.body,mxResources.get("exporting"))&&this.createDownloadRequest(d,c,n,"1",v,r,B,E,K,C,R,void 0,void 0,!t,M,O,U,T,V,fa).send(mxUtils.bind(this,function(Q){this.spinner.stop();+if(200<=Q.getStatus()&&299>=Q.getStatus()){var ba=this.createLoadMessage("export");ba.format=c;ba.filename=d;ba.data="data:application/pdf;base64,"+Q.getText();ba.xml=this.getFileData(!0);A.postMessage(JSON.stringify(ba),"*")}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(){this.spinner.stop();this.handleError({message:mxResources.get("errorSavingFile")})}))}else this.saveRequest(d,c,mxUtils.bind(this,function(Q,ba){try{return this.createDownloadRequest(Q,+c,n,ba,v,r,B,E,K,C,R,void 0,void 0,!t,M,O,U,T,V,fa)}catch(W){this.handleError(W)}}));else{var G=null,I=mxUtils.bind(this,function(Q){Q.length<=MAX_REQUEST_SIZE?this.saveData(d,"svg",Q,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(G)}))});if("svg"==c){var L=this.editor.graph.background;if(v||L==mxConstants.NONE)L=null;var P=this.editor.graph.getSvg(L,null,null,null,null,n);l&&this.editor.graph.addSvgShadow(P);+this.editor.convertImages(P,mxUtils.bind(this,mxUtils.bind(this,function(Q){this.spinner.stop();I(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(Q))})))}else d=y+".svg",G=this.getFileData(!1,!0,null,mxUtils.bind(this,function(Q){this.spinner.stop();I(Q)}),n)}}catch(Q){this.handleError(Q)}};EditorUi.prototype.createDownloadRequest=function(c,f,l,n,r,t,v,B,E,K,C,R,M,O,U,T,V,fa,y,d){c=this.downloadRequestBuilder(c,f,l,n,r,t,v,B,E,K,C,R,M,O,U,T,V,fa,y,d);f="";for(var p in c)l=c[p],null!=+l&&(f+=p+"="+encodeURIComponent(l)+"&");return new mxXmlRequest(EXPORT_URL,f)};EditorUi.prototype.downloadRequestBuilder=function(c,f,l,n,r,t,v,B,E,K,C,R,M,O,U,T,V,fa,y,d){var p=this.editor.graph,A=p.getGraphBounds();l=this.getFileData(!0,null,null,null,l,0==t?!1:"xmlpng"!=f,null,null,null,!Editor.defaultCompressed,"pdf"==f);var G=null,I=null,L=null;if(!EditorUi.isElectronApp&&(A.width*A.height>MAX_AREA||l.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};K=K?"1":"0";"pdf"==+f&&(null!=C?(G=C.from,I=C.to):0==t&&(L="1"));"xmlpng"==f&&(K="1",f="png");if(("xmlpng"==f||"svg"==f)&&null!=this.pages&&null!=this.currentPage)for(t=0;t<this.pages.length;t++)if(this.pages[t]==this.currentPage){G=t;break}t=p.background;"png"!=f&&"pdf"!=f&&"svg"!=f||!r?r||null!=t&&t!=mxConstants.NONE||(t="#ffffff"):t=mxConstants.NONE;r={globalVars:p.getExportVariables()};null!=C&&null!=C.from&&(r.globalVars.pagenumber=C.from+1);E&&(r.grid={size:p.gridSize,steps:p.view.gridSteps,color:Editor.isDarkMode()&&+"pdf"==f?mxGraphView.prototype.defaultGridColor:p.view.gridColor});Graph.translateDiagram&&(r.diagramLanguage=Graph.diagramLanguage);E=this.getHiddenTagsMap();null!=E&&(r.hiddenTags=E);return{format:f,from:G,to:I,allPages:L,bg:null!=t?t:mxConstants.NONE,base64:n,embedXml:K,xml:l,filename:null!=c?c:"",extras:JSON.stringify(r),scale:v,border:B,pageMargin:U,w:R&&isFinite(R)?R:null,h:M&&isFinite(M)?M:null,crop:null!=O&&O?"1":"0",fit:null!=T&&T?"1":"0",shadows:null!=y&&y?"1":"0",sheetsAcross:V,sheetsDown:fa,+icons:null!=d&&d?"1":"0"}};EditorUi.prototype.getHiddenTagsMap=function(){var c=this.editor.graph,f={},l=!1;if(null!=this.pages)for(var n=0;n<this.pages.length;n++){var r=this.pages[n],t=r==this.currentPage?c.hiddenTags:null!=r.viewState?r.viewState.hiddenTags:null;null!=t&&0<t.length&&(f[r.getId()]=t,l=!0)}else null!=c.hiddenTags&&0<c.hiddenTags.length&&(f[0]=c.hiddenTags,l=!0);return l?f:null};EditorUi.prototype.setMode=function(c,f){this.mode=c};EditorUi.prototype.getDiagramId=function(){var c=+window.location.hash;null!=c&&0<c.length&&(c=c.substring(1));if(null!=c&&1<c.length){var f=c.indexOf("#");0<=f&&(c=c.substring(0,f))}return c};EditorUi.prototype.getHashObject=function(){var c=window.location.hash,f={};if(null!=c&&0<c.length){var l=c.lastIndexOf("#");if(0<l){c=decodeURIComponent(c.substring(l+1));try{f=JSON.parse(c)}catch(n){}}}return f};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&null!=this.currentPage&&""!=this.currentFile.getHash()){var c=this.getHashObject();+c.pageId=this.currentPage.getId();this.setHashObject(c)}else this.setHashObject(null)};EditorUi.prototype.setHashObject=function(c){if(Editor.enableHashObjects){var f=window.location.hash;if(null==f||""==f)f="#";var l=f.lastIndexOf("#");0<l&&(f=f.substring(0,l));try{null==c||mxUtils.isEmptyObject(c)||(f=f+"#"+encodeURIComponent(JSON.stringify(c)))}catch(n){}0<l&&0<f.lastIndexOf("#")?window.location.hash=f:window.location.replace(f)}};EditorUi.prototype.loadDescriptor=function(c,f,l){var n=window.location.hash,+r=mxUtils.bind(this,function(v){var B=null!=c.data?c.data:"";null!=v&&0<v.length&&(0<B.length&&(B+="\n"),B+=v);v=new LocalFile(this,"csv"!=c.format&&0<B.length?B:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);v.getHash=function(){return n};this.fileLoaded(v);"csv"==c.format&&this.importCsv(B,mxUtils.bind(this,function(M){this.editor.undoManager.clear();this.editor.setModified(!1);this.clearStatus()}));if(null!=c.update){var E=null!=c.interval?+parseInt(c.interval):6E4,K=null,C=mxUtils.bind(this,function(){var M=this.currentPage;mxUtils.post(c.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(O){M===this.currentPage&&(200<=O.getStatus()&&300>=O.getStatus()?(this.updateDiagram(O.getText()),R()):this.handleError({message:mxResources.get("error")+" "+O.getStatus()}))}),mxUtils.bind(this,function(O){this.handleError(O)}))}),R=mxUtils.bind(this,function(){window.clearTimeout(K);K=window.setTimeout(C,+E)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){R();C()}));R();C()}null!=f&&f()});if(null!=c.url&&0<c.url.length){var t=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(t,mxUtils.bind(this,function(v){r(v)}),mxUtils.bind(this,function(v){null!=l&&l(v)}))}else r("")};EditorUi.prototype.updateDiagram=function(c){function f(d){var p=new mxCellOverlay(d.image||r.warningImage,d.tooltip,d.align,d.valign,d.offset);p.addListener(mxEvent.CLICK,function(A,G){n.alert(d.tooltip)});+return p}var l=null,n=this;if(null!=c&&0<c.length&&(l=mxUtils.parseXml(c),c=null!=l?l.documentElement:null,null!=c&&"updates"==c.nodeName)){var r=this.editor.graph,t=r.getModel();t.beginUpdate();var v=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var B=t.getCell(c.getAttribute("id"));if(null!=B){try{var E=c.getAttribute("value");if(null!=E){var K=mxUtils.parseXml(E).documentElement;if(null!=K)if("1"==K.getAttribute("replace-value"))t.setValue(B,K);else for(var C=K.attributes,R=0;R<+C.length;R++)r.setAttributeForCell(B,C[R].nodeName,0<C[R].nodeValue.length?C[R].nodeValue:null)}}catch(d){null!=window.console&&console.log("Error in value for "+B.id+": "+d)}try{var M=c.getAttribute("style");null!=M&&r.model.setStyle(B,M)}catch(d){null!=window.console&&console.log("Error in style for "+B.id+": "+d)}try{var O=c.getAttribute("icon");if(null!=O){var U=0<O.length?JSON.parse(O):null;null!=U&&U.append||r.removeCellOverlays(B);null!=U&&r.addCellOverlay(B,f(U))}}catch(d){null!=window.console&&+console.log("Error in icon for "+B.id+": "+d)}try{var T=c.getAttribute("geometry");if(null!=T){T=JSON.parse(T);var V=r.getCellGeometry(B);if(null!=V){V=V.clone();for(key in T){var fa=parseFloat(T[key]);"dx"==key?V.x+=fa:"dy"==key?V.y+=fa:"dw"==key?V.width+=fa:"dh"==key?V.height+=fa:V[key]=parseFloat(T[key])}r.model.setGeometry(B,V)}}}catch(d){null!=window.console&&console.log("Error in icon for "+B.id+": "+d)}}}else if("model"==c.nodeName){for(var y=c.firstChild;null!=y&&y.nodeType!=mxConstants.NODETYPE_ELEMENT;)y=+y.nextSibling;null!=y&&(new mxCodec(c.firstChild)).decode(y,t)}else if("view"==c.nodeName){if(c.hasAttribute("scale")&&(r.view.scale=parseFloat(c.getAttribute("scale"))),c.hasAttribute("dx")||c.hasAttribute("dy"))r.view.translate=new mxPoint(parseFloat(c.getAttribute("dx")||0),parseFloat(c.getAttribute("dy")||0))}else"fit"==c.nodeName&&(v=c.hasAttribute("max-scale")?parseFloat(c.getAttribute("max-scale")):1);c=c.nextSibling}}finally{t.endUpdate()}null!=v&&this.chromelessResize&&this.chromelessResize(!0,+v)}return l};EditorUi.prototype.getCopyFilename=function(c,f){var l=null!=c&&null!=c.getTitle()?c.getTitle():this.defaultFilename;c="";var n=l.lastIndexOf(".");0<=n&&(c=l.substring(n),l=l.substring(0,n));if(f){f=l;var r=new Date;l=r.getFullYear();n=r.getMonth()+1;var t=r.getDate(),v=r.getHours(),B=r.getMinutes();r=r.getSeconds();l=f+(" "+(l+"-"+n+"-"+t+"-"+v+"-"+B+"-"+r))}return l=mxResources.get("copyOf",[l])+c};EditorUi.prototype.logIfModified=function(c,f){try{null!=c&&f&&EditorUi.debug("File.closed",+[c])}catch(l){}};EditorUi.prototype.fileLoaded=function(c,f,l){EditorUi.debug("EditorUi.fileLoaded",[this],"file",[c],"noDialogs",[f]);var n=this.getCurrentFile();this.fileEditable=this.fileLoadedError=null;this.setCurrentFile(null);var r=!1;this.hideDialog();null!=n&&(n.removeListener(this.descriptorChangedListener),this.logIfModified(n,!0),n.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var t=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);+null!=n&&this.updateDocumentTitle();this.editor.graph.model.clear();this.editor.undoManager.clear();this.setBackgroundImage(null);!f&&null!=window.location.hash&&0<window.location.hash.length&&(window.location.hash="");null!=this.fname&&(this.fname.innerText="");this.clearStatus();this.updateUi();if(!f)if("0"!=urlParams.splash)this.showSplash();else try{this.createFile(this.defaultFilename,this.getFileData(),null,null,null,null,null,!0)}catch(R){this.handleError(R)}});if(null!=c)try{this.openingFile=+!0;this.setCurrentFile(c);c.addListener("descriptorChanged",this.descriptorChangedListener);c.addListener("contentChanged",this.descriptorChangedListener);c.open();delete this.openingFile;this.setGraphEnabled(!0);this.setMode(c.getMode());this.editor.graph.model.prefix=Editor.guid()+"-";this.editor.undoManager.clear();this.descriptorChanged();this.updateUi();c.isEditable()?c.isModified()?c.addUnsavedStatus():this.clearStatus():this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus('<div class="geStatusBox" title="'++mxUtils.htmlEntities(mxResources.get("readOnly"))+'">'+mxUtils.htmlEntities(mxResources.get("readOnly"))+"</div>")}));!this.editor.isChromelessView()||this.editor.editable?(this.editor.graph.selectUnlockedLayer(),this.showLayersDialog(),null!=this.actions.layersWindow&&this.actions.layersWindow.refreshLayers(),this.restoreLibraries(),window.self===window.top||this.noAutoFocus||window.focus()):this.editor.graph.isLightboxView()&&this.lightboxFit();this.chromelessResize&&this.chromelessResize();null!=+l&&l();this.editor.fireEvent(new mxEventObject("fileLoaded"));r=!0;if(/(\.svg)$/i.test(c.getTitle())&&this.getSvgFileProperties(this.fileNode).embedFonts)try{this.editor.loadFonts(),this.editor.embedExtFonts(function(){})}catch(R){}if(!this.isOffline()&&null!=c.getMode()){var v="1"==urlParams.sketch?"sketch":uiTheme;if(null==v)v="default";else if("sketch"==v||"min"==v)v+=Editor.isDarkMode()?"-dark":"-light";EditorUi.logEvent({category:c.getMode().toUpperCase()+"-OPEN-FILE-"+c.getHash(),action:"size_"++c.getSize(),label:"autosave_"+(this.editor.autosave?"on":"off")+"_theme_"+v})}EditorUi.debug("File.opened",[c]);"1"==urlParams.viewerOnlyMsg&&this.showAlert(mxResources.get("viewerOnlyMsg"));if(this.editor.editable&&this.mode==c.getMode()&&c.getMode()!=App.MODE_DEVICE&&null!=c.getMode())try{this.addRecent({id:c.getHash(),title:c.getTitle(),mode:c.getMode()})}catch(R){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(R){}}catch(R){this.fileLoadedError=R;l=null;var B=+this.defaultFilename;if(null!=c){try{l=c.getData(),B=c.getTitle()||this.defaultFilename}catch(M){}try{c.close()}catch(M){}}var E=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=n?this.fileLoaded(n)||t():t()});if(f)E();else{R.dialogWidth=350;var K=mxUtils.bind(this,function(){this.handleError(R,mxResources.get("errorLoadingFile"),E,!0,null,null,!0)});if(null!=R.fallbackFileData)R.alternateAction=+{label:mxResources.get("makeCopy"),funct:mxUtils.bind(this,function(){this.hideDialog();var M=new LocalFile(this,R.fallbackFileData,this.defaultFilename,!0);this.fileLoaded(M)})},K();else{var C=this.spinner.spin(document.body,mxResources.get("loading"));this.getRecoveryData(c,l,R,mxUtils.bind(this,function(M){C&&this.spinner.stop();if(null!=M&&1==M.length){var O=M[0];R.alternateAction={label:O.label,funct:mxUtils.bind(this,function(){this.hideDialog();O.lossy?this.confirm(mxResources.get("recoveryWarning"),+mxUtils.bind(this,function(){this.openRecoveredCopy(O,B)})):this.openRecoveredCopy(O,B)})}}else null!=M&&1<M.length&&(R.alternateAction={label:mxResources.get("recover"),funct:mxUtils.bind(this,function(){this.hideDialog();this.showRecoveryDialog(M,B)})});K()}))}}}else t();return r};EditorUi.prototype.getHashValueForPages=function(c,f){var l=0,n=new mxGraphModel,r=new mxCodec;null!=f&&(f.byteCount=0,f.attrCount=0,f.eltCount=0,f.nodeCount=0);for(var t=0;t<c.length;t++)if(null!=c[t]){this.updatePageRoot(c[t]);+var v=c[t].node.ownerDocument.createElement("diagram");v.setAttribute("id",c[t].getId());n.root=c[t].root;var B=r.encode(n);this.editor.graph.saveViewState(c[t].viewState,B,!0);B.removeAttribute("pageWidth");B.removeAttribute("pageHeight");v.appendChild(B);null!=f&&(f.eltCount+=v.getElementsByTagName("*").length,f.nodeCount+=v.getElementsByTagName("mxCell").length);l=(l<<5)-l+this.hashValue(v,function(E,K,C,R){return!R||"mxGeometry"!=E.nodeName&&"mxPoint"!=E.nodeName||"x"!=K&&"y"!=K&&"width"!=K&&+"height"!=K?R&&"mxCell"==E.nodeName&&"previous"==K?null:C:Math.round(C)},f)<<0}return l};EditorUi.prototype.hashValue=function(c,f,l){var n=0;if(null!=c&&"object"===typeof c&&"number"===typeof c.nodeType&&"string"===typeof c.nodeName&&"function"===typeof c.getAttribute){null!=c.nodeName&&(n^=this.hashValue(c.nodeName,f,l));if(null!=c.attributes){null!=l&&(l.attrCount+=c.attributes.length);for(var r=0;r<c.attributes.length;r++){var t=c.attributes[r].name,v=null!=f?f(c,t,c.attributes[r].value,!0):c.attributes[r].value;+null!=v&&(n^=this.hashValue(t,f,l)+this.hashValue(v,f,l))}}if(null!=c.childNodes)for(r=0;r<c.childNodes.length;r++)n=(n<<5)-n+this.hashValue(c.childNodes[r],f,l)<<0}else if(null!=c&&"function"!==typeof c){c=String(c);f=0;null!=l&&(l.byteCount+=c.length);for(r=0;r<c.length;r++)f=(f<<5)-f+c.charCodeAt(r)<<0;n^=f}return n};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(c,f,l,n,r,t,v){};EditorUi.prototype.isScratchpadEnabled=+function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(c){if(null==c||"<mxfile"==c.substring(0,7))c=this.emptyLibraryXml;this.loadLibrary(new StorageLibrary(this,c,".scratchpad"))})):this.closeLibrary(this.scratchpad))};EditorUi.prototype.createLibraryDataFromImages=function(c){if(!Editor.defaultCompressed)for(var f=0;f<c.length;f++)null!=+c[f].xml&&"<"!=c[f].xml.charAt(0)&&(c[f].xml=mxUtils.trim(Graph.decompress(c[f].xml)));f=mxUtils.createXmlDocument();var l=f.createElement("mxlibrary");mxUtils.setTextContent(l,JSON.stringify(c,null,2));f.appendChild(l);return mxUtils.getXml(f,"\n")};EditorUi.prototype.closeLibrary=function(c){null!=c&&(this.removeLibrarySidebar(c.getHash()),c.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(c.getHash()),".scratchpad"==c.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=+function(c){var f=this.sidebar.palettes[c];if(null!=f){for(var l=0;l<f.length;l++)this.sidebar.unobserveElements(f[l]),f[l].parentNode.removeChild(f[l]);delete this.sidebar.palettes[c]}};EditorUi.prototype.repositionLibrary=function(c,f){var l=this.sidebar.getEntryContainer();if(!this.sidebar.appendCustomLibraries||null!=c||!f){null==c&&(f=this.sidebar.palettes["L.scratchpad"],null==f&&(f=this.sidebar.palettes.search),null!=f&&(c=f[f.length-1].nextSibling));c=null!=c?c:l.firstChild.nextSibling.nextSibling;+f=l.lastChild;var n=f.previousSibling;l.insertBefore(f,c);l.insertBefore(n,f)}};EditorUi.prototype.loadLibrary=function(c,f){var l=mxUtils.parseXml(c.getData());if("mxlibrary"==l.documentElement.nodeName){var n=JSON.parse(mxUtils.getTextContent(l.documentElement));this.libraryLoaded(c,n,l.documentElement.getAttribute("title"),f,l.documentElement.getAttribute("tags"))}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(c){return""};EditorUi.prototype.showSidebar=+function(){null!=this.sidebarWindow?this.sidebarWindow.window.setVisible(!0):this.toggleShapesPanel(!0)};EditorUi.prototype.showSearchWindow=function(c,f){var l=c?"findReplace":"find",n=l+"Window";if(null==this[n]){var r="min"==Editor.currentTheme||"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme,t=mxSettings.getWindowState(l),v=null!=t&&null!=t.w?t.w:c?r?330:300:240;this[n]=new FindWindow(this,null!=t&&null!=t.x?t.x:document.body.offsetWidth-(v+20),null!=t&&null!=t.y?t.y:100,v,null!=+t&&null!=t.h?t.h:c?r?304:288:180,c);this[n].window.addListener("show",function(){this.fireEvent(new mxEventObject(l))});this[n].window.addListener("hide",function(){this.fireEvent(new mxEventObject(l))});this.installWindowPersistence(l,this[n]);null!=t&&null==f&&this.restoreWindowState(l,this[n]);this[n].window.setVisible(!0)}else null==f&&this[n].window.setVisible(!this[n].window.isVisible());null!=f&&(this[n].doSearch(f),this[n].window.setVisible(!0))};EditorUi.prototype.libraryLoaded=function(c,+f,l,n,r){if(null!=this.sidebar){c.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(c.getHash());var t=null;if(c.constructor!=StorageLibrary||".scratchpad"!=c.title){null==this.openLibraries&&(this.openLibraries=[]);for(var v=0;v<this.openLibraries.length;v++)if(this.openLibraries[v].file.getHash()==c.getHash()){mxUtils.remove(this.openLibraries[v],this.openLibraries);break}t={file:c,images:f,title:l,expand:n};this.openLibraries.push(t)}else this.scratchpad=c;v=this.sidebar.palettes[c.getHash()];+v=null!=v?v[v.length-1].nextSibling:null;this.removeLibrarySidebar(c.getHash());var B=null,E=mxUtils.bind(this,function(y,d){0==y.length&&c.isEditable()?(null==B&&(B=document.createElement("div"),B.className="geDropTarget",y=mxResources.get("dragElementsHere"),mxUtils.write(B,y),B.setAttribute("title",y)),d.appendChild(B)):this.addLibraryEntries(y,d)});null!=this.sidebar&&null!=f&&(this.sidebar.setCurrentSearchEntryLibrary(c.getHash(),c.getHash()),this.sidebar.addEntries(f,r),this.sidebar.setCurrentSearchEntryLibrary());+null==l&&(l=c.getTitle(),null!=l&&/(\.xml)$/i.test(l)&&(l=l.substring(0,l.lastIndexOf("."))));var K=this.sidebar.addPalette(c.getHash(),l,null!=n?n:!0,mxUtils.bind(this,function(y){E(f,y)}),!0);null!=t&&(t.div=K);this.repositionLibrary(v,"L.scratchpad"!=c.getHash());n=K.parentNode.previousSibling;l=n.getAttribute("title");null!=l&&0<l.length&&".scratchpad"!=c.title&&n.setAttribute("title",this.getLibraryStorageHint(c)+"\n"+l);var C=document.createElement("div");C.style.backgroundColor="inherit";n.style.position=+"relative";var R=document.createElement("img");R.className="geLibraryButton";R.setAttribute("src",Editor.crossImage);R.setAttribute("title",mxResources.get("close"));var M=null;if(".scratchpad"!=c.title||this.closableScratchpad)C.appendChild(R),mxEvent.addListener(R,"click",mxUtils.bind(this,function(y){if(!mxEvent.isConsumed(y)){var d=mxUtils.bind(this,function(){null!=t&&mxUtils.remove(t,this.openLibraries);this.closeLibrary(c)});null!=M?this.confirm(mxResources.get("allChangesLost"),null,d,mxResources.get("cancel"),+mxResources.get("discardChanges")):d();mxEvent.consume(y)}}));if(c.isEditable()){var O=this.editor.graph,U=null;l=mxUtils.bind(this,function(y){this.showLibraryDialog(c.getTitle(),K,f,c,c.getMode());mxEvent.consume(y)});var T=mxUtils.bind(this,function(y){c.setModified(!0);c.isAutosave()?(null!=U&&null!=U.parentNode&&U.parentNode.removeChild(U),U=R.cloneNode(!1),U.setAttribute("src",Editor.spinImage),U.setAttribute("title",mxResources.get("saving")),U.style.cursor="default",U.style.marginRight="2px",+U.style.marginTop="-2px",C.insertBefore(U,C.firstChild),this.saveLibrary(c.getTitle(),f,c,c.getMode(),!0,!0,function(){null!=U&&null!=U.parentNode&&U.parentNode.removeChild(U)})):null==M&&(M=R.cloneNode(!1),M.setAttribute("src",Editor.saveImage),M.setAttribute("title",mxResources.get("save")),C.insertBefore(M,C.firstChild),mxEvent.addListener(M,"click",mxUtils.bind(this,function(d){this.saveLibrary(c.getTitle(),f,c,c.getMode(),c.constructor==LocalLibrary,!0,function(){null==M||c.isModified()||(M.parentNode.removeChild(M),+M=null)});mxEvent.consume(d)})))}),V=mxUtils.bind(this,function(y,d,p,A){y=O.cloneCells(mxUtils.sortCells(O.model.getTopmostCells(y)));for(var G=0;G<y.length;G++){var I=O.getCellGeometry(y[G]);null!=I&&I.translate(-d.x,-d.y)}K.appendChild(this.sidebar.createVertexTemplateFromCells(y,d.width,d.height,A||"",!0,null,!1));y=mxUtils.getXml(this.editor.graph.encodeCells(y));Editor.defaultCompressed&&(y=Graph.compress(y));d={xml:y,w:d.width,h:d.height};null!=A&&(d.title=A);f.push(d);T(p);null!=B&&null!=+B.parentNode&&0<f.length&&(B.parentNode.removeChild(B),B=null)}),fa=mxUtils.bind(this,function(y){if(O.isSelectionEmpty())O.getRubberband().isActive()?(O.getRubberband().execute(y),O.getRubberband().reset()):null!=y&&null!=mxEvent.getSource(y)&&mxEvent.getSource(y).classList.contains("geLibraryButton")&&this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var d=O.getSelectionCells(),p=O.view.getBounds(d);if(null!=p&&0<p.width&&0<p.height){var A=+O.view.scale;p.x/=A;p.y/=A;p.width/=A;p.height/=A;p.x-=O.view.translate.x;p.y-=O.view.translate.y;V(d,p)}else this.showError(mxResources.get("error"),mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(y)});mxEvent.addGestureListeners(K,function(){},mxUtils.bind(this,function(y){O.isMouseDown&&null!=O.panningManager&&null!=O.graphHandler.first&&(O.graphHandler.suspend(),null!=O.graphHandler.hint&&(O.graphHandler.hint.style.visibility="hidden"),K.style.backgroundColor="light-dark(#fefefe, #000000)",+K.style.cursor="copy",O.panningManager.stop(),O.autoScroll=!1,mxEvent.consume(y))}),mxUtils.bind(this,function(y){O.isMouseDown&&null!=O.panningManager&&null!=O.graphHandler&&(K.style.backgroundColor="",K.style.cursor="default",this.sidebar.showTooltips=!0,O.panningManager.stop(),O.graphHandler.reset(),O.isMouseDown=!1,O.autoScroll=!0,fa(y),mxEvent.consume(y))}));mxEvent.addListener(K,"mouseleave",mxUtils.bind(this,function(y){O.isMouseDown&&null!=O.graphHandler.first&&(O.graphHandler.resume(),null!=+O.graphHandler.hint&&(O.graphHandler.hint.style.visibility="visible"),K.style.backgroundColor="",K.style.cursor="",O.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(K,"dragover",mxUtils.bind(this,function(y){K.style.backgroundColor="light-dark(#fefefe, #000000)";y.dataTransfer.dropEffect="copy";K.style.cursor="copy";this.sidebar.hideTooltip();y.stopPropagation();y.preventDefault()})),mxEvent.addListener(K,"drop",mxUtils.bind(this,function(y){K.style.cursor="";K.style.backgroundColor="";+0<y.dataTransfer.files.length&&this.importFiles(y.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(d,p,A,G,I,L,P,Q,ba){if(null!=d&&"image/"==p.substring(0,6))d="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(d),d=[new mxCell("",new mxGeometry(0,0,I,L),d)],d[0].vertex=!0,V(d,new mxRectangle(0,0,I,L),y,mxEvent.isAltDown(y)?null:P.substring(0,P.lastIndexOf(".")).replace(/_/g," ")),null!=B&&null!=B.parentNode&&0<f.length&&+(B.parentNode.removeChild(B),B=null);else{var W=!1,Y=mxUtils.bind(this,function(X,ca){null!=X&&"application/pdf"==ca&&(ca=Editor.extractGraphModelFromPdf(X),null!=ca&&0<ca.length&&(X=ca));if(null!=X)if(X=mxUtils.parseXml(X),"mxlibrary"==X.documentElement.nodeName)try{var S=JSON.parse(mxUtils.getTextContent(X.documentElement));E(S,K);f=f.concat(S);T(y);this.spinner.stop();W=!0}catch(aa){}else if("mxfile"==X.documentElement.nodeName)try{var Z=X.documentElement.getElementsByTagName("diagram");for(S=+0;S<Z.length;S++){var da=this.stringToCells(Editor.getDiagramNodeXml(Z[S])),N=this.editor.graph.getBoundingBoxFromGeometry(da);null!=N&&V(da,new mxRectangle(0,0,N.width,N.height),y)}W=!0}catch(aa){null!=window.console&&console.log("error in drop handler:",aa)}W||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=B&&null!=B.parentNode&&0<f.length&&(B.parentNode.removeChild(B),B=null)});null!=ba&&null!=P&&EditorUi.isVisioFilename(P)?this.importVisio(ba,function(X){Y(X,+"text/xml")},null,P):this.isGliffyData(d,P)&&null!=ba?this.importGliffy(d,mxUtils.bind(this,function(X){this.spinner.stop();Y(X,"text/xml")}),mxUtils.bind(this,function(X){this.spinner.stop();this.handleError({message:mxResources.get(null!=X&&413==X.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile"))}),P):Y(d,p)}}));y.stopPropagation();y.preventDefault()})),mxEvent.addListener(K,"dragleave",function(y){K.style.cursor="";K.style.backgroundColor="";y.stopPropagation();+y.preventDefault()}));R=R.cloneNode(!1);R.setAttribute("src",Editor.editImage);R.setAttribute("title",mxResources.get("edit"));C.insertBefore(R,C.firstChild);mxEvent.addListener(R,"click",l);l=R.cloneNode(!1);l.setAttribute("src",Editor.plusImage);l.setAttribute("title",mxResources.get("add"));C.insertBefore(l,C.firstChild);mxEvent.addListener(l,"click",fa);".scratchpad"==c.title&&(this.addSelectionToScratchpad=fa);this.isOffline()||".scratchpad"!=c.title||null==EditorUi.scratchpadHelpLink||(l=this.createHelpIcon(EditorUi.scratchpadHelpLink,+!0),l.className="geLibraryButton",C.insertBefore(l,C.firstChild))}n.appendChild(C);this.editor.fireEvent(new mxEventObject("libraryLoaded"))}};EditorUi.prototype.addLibraryEntries=function(c,f){for(var l=0;l<c.length;l++)try{var n=c[l],r=n.data;if(null!=r){r="data:"==r.substring(0,5)?this.convertDataUri(r):r;var t="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==n.aspect&&(t+="aspect=fixed;");t=t+"image="+r+";";null!=n.style&&(t+=n.style);f.appendChild(this.sidebar.createVertexTemplate(t,+n.w,n.h,"",n.title||"",!1,null,!0))}else if(null!=n.xml){var v=this.stringToCells("<"==n.xml.charAt(0)?n.xml:Graph.decompress(n.xml)),B=0==v.length?mxResources.get("drawingEmpty"):null!=n.title?n.title:"";f.appendChild(this.sidebar.createVertexTemplateFromCells(v,n.w,n.h,B,!0,null,!0))}}catch(E){B=null!=E.message?mxResources.get("error")+": "+E.message:String(E),t=this.sidebar.createVertexTemplateFromCells(null,n.w,n.h,B,!0,null,!0),f.appendChild(t)}};EditorUi.prototype.getResource=function(c){return null!=+c?c[mxLanguage]||c.main:null};"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"sketch"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(c,f,l,n,r,t,v){c=new ImageDialog(this,c,f,l,n,r,t,v);this.showDialog(c.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,+!0);c.init()};EditorUi.prototype.showLocalStorageDialog=function(c,f,l,n,r,t){var v=localStorage.getItem(f);c=new TextareaDialog(this,c,null!=v?JSON.stringify(JSON.parse(v),null,2):"",mxUtils.bind(this,function(B){if(null!=B)try{if(null!=t&&t(B),B==v)this.hideDialog();else{if(0<B.length){var E=JSON.parse(B);localStorage.setItem(f,JSON.stringify(E))}else localStorage.removeItem(f);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(K){this.handleError(K)}}),null,mxResources.get("close"),+null,null,null,!0,null,null,r,l,n);this.showDialog(c.container,660,480,!0,!1,null,null,null,new mxRectangle(0,0,null!=l&&2<l.length?500:440,280));c.init()};EditorUi.prototype.showConfigurationEditorDialog=function(c,f,l,n){function r(Q){U?K.confirm(mxResources.get("allChangesLost"),null,Q,mxResources.get("cancel"),mxResources.get("discardChanges")):Q()}function t(){T=!0;K.hideDialog()}function v(Q,ba){var W=document.createElement("div");W.style.padding="4px 16px";W.style.cursor="pointer";W.style.fontSize=+"13px";W.style.borderBottom=ba?"2px solid #29b6f2":"2px solid transparent";W.style.fontWeight=ba?"bold":"normal";W.style.color=ba?"":"#888";W.style.userSelect="none";mxUtils.write(W,Q);return W}function B(Q,ba){Q.style.borderBottomColor=ba?"#29b6f2":"transparent";Q.style.fontWeight=ba?"bold":"normal";Q.style.color=ba?"":"#888"}function E(Q){if(Q!==O){if("json"===O)try{var ba=JSON.parse(I.value);M=ba;A.setConfig(ba)}catch(W){}else"json"===Q&&null!=M&&(I.value=JSON.stringify(M,null,2));d.style.display=+"editor"===Q?"":"none";G.style.display="json"===Q?"":"none";B(fa,"editor"===Q);B(y,"json"===Q);"json"===Q&&I.focus();O=Q}}var K=this,C=localStorage.getItem(f),R={};try{null!=C&&(R=JSON.parse(C))}catch(Q){}var M=R,O="editor",U=!1,T=!1;c=document.createElement("div");c.style.position="absolute";c.style.top="20px";c.style.bottom="20px";c.style.left="20px";c.style.right="20px";var V=document.createElement("div");V.style.position="absolute";V.style.left="0";V.style.right="0";V.style.top="0";V.style.height=+"28px";V.style.display="flex";V.style.alignItems="end";V.style.borderBottom="1px solid #d0d0d0";var fa=v(mxResources.get("editor"),!0),y=v(mxResources.get("formatJson"),!1);V.appendChild(fa);V.appendChild(y);c.appendChild(V);var d=document.createElement("div");d.style.position="absolute";d.style.left="0";d.style.right="0";d.style.top="30px";d.style.bottom="50px";V={};try{var p=K.editor.graph;null!=p.currentVertexStyle&&(V.currentVertexStyle=p.currentVertexStyle);null!=p.currentEdgeStyle&&(V.currentEdgeStyle=+p.currentEdgeStyle)}catch(Q){}var A=DrawioConfigEditor.install(d,{initialConfig:R,editorContext:V,darkMode:null!=Editor.isDarkMode&&Editor.isDarkMode(),highContrast:K.isHighContrast(),onConfigChanged:function(Q){M=Q;U=!0}}),G=document.createElement("div");G.style.position="absolute";G.style.left="0";G.style.right="0";G.style.top="30px";G.style.bottom="50px";G.style.display="none";var I=document.createElement("textarea");I.setAttribute("wrap","off");I.setAttribute("spellcheck","false");I.setAttribute("autocorrect",+"off");I.setAttribute("autocomplete","off");I.setAttribute("autocapitalize","off");I.style.resize="none";I.style.outline="none";I.style.boxSizing="border-box";I.style.width="100%";I.style.height="100%";try{I.value=null!=C?JSON.stringify(JSON.parse(C),null,2):""}catch(Q){I.value=C||""}mxEvent.addListener(I,"input",function(){U=!0});G.appendChild(I);c.appendChild(d);c.appendChild(G);mxEvent.addListener(fa,"click",function(){E("editor")});mxEvent.addListener(y,"click",function(){E("json")});var L=document.createElement("div");+L.style.position="absolute";L.style.left="0";L.style.right="0";L.style.bottom="0";L.style.height="46px";L.style.display="flex";L.style.whiteSpace="nowrap";L.style.alignItems="center";L.style.justifyContent="end";L.style.paddingTop="10px";L.style.paddingBottom="10px";L.style.boxSizing="border-box";null==n||K.isOffline()||L.appendChild(K.createHelpIcon(n));if(null!=l)for(n=0;n<l.length;n++)(function(Q,ba,W){Q=mxUtils.button(Q,function(Y){"json"!==O&&null!=M&&(I.value=JSON.stringify(M,null,2));ba(Y,+I)});null!=W&&Q.setAttribute("title",W);Q.className="geBtn";L.appendChild(Q)})(l[n][0],l[n][1],l[n][2]);n=mxUtils.button(mxResources.get("close"),function(){r(t)});n.setAttribute("title","Escape");n.className="geBtn";var P=mxUtils.button(mxResources.get("apply"),function(){if(U){if("json"!==O){var Q=A.getInvalidFields();if(0<Q.length){K.handleError({message:mxResources.get("invalidInput")+": "+Q.join(", ")});return}Q=null!=M&&0<Object.keys(M).length?JSON.stringify(M,null,2):""}else Q=I.value;try{if(Q==+C)U=!1,t();else{if(0<Q.length){var ba=JSON.parse(Q);localStorage.setItem(f,JSON.stringify(ba))}else localStorage.removeItem(f);U=!1;t();K.alert(mxResources.get("restartForChangeRequired"))}}catch(W){K.handleError(W)}}else t()});P.className="geBtn gePrimaryBtn";K.editor.cancelFirst?(L.appendChild(n),L.appendChild(P)):(L.appendChild(P),L.appendChild(n));c.appendChild(L);mxEvent.addListener(c,"keydown",function(Q){13===Q.keyCode&&mxEvent.isControlDown(Q)&&P.click()});K.showDialog(c,800,600,!0,!1,function(Q,+ba){if(!T&&U)return r(t),!1},null,null,new mxRectangle(0,0,null!=l&&2<l.length?500:440,400));I.scrollTop=0};EditorUi.prototype.showLanguageDialog=function(){function c(){var E=mxLanguage;null==urlParams.lang&&isLocalStorage&&(E=mxSettings.settings.language);for(var K=!1===navigator.onLine,C=Object.create(null),R=0;R<r.length;R++){var M=r[R];C[M.code]=M.box.checked;M.box.disabled="en"==M.code||M.code==E&&M.box.checked||K&&!M.box.checked;M.box.style.cursor=M.box.disabled?"":"pointer";M.row.style.cursor=+M.box.disabled?"default":"pointer";K&&!M.box.checked?M.row.setAttribute("title",mxResources.get("notInOffline")):M.row.removeAttribute("title")}}var f=this,l=document.createElement("div");l.style.position="absolute";l.style.top="10px";l.style.bottom="10px";l.style.left="16px";l.style.right="16px";var n=document.createElement("div");n.style.position="absolute";n.style.left="0";n.style.right="0";n.style.top="0";n.style.bottom="46px";n.style.overflow="auto";l.appendChild(n);var r=[];f.getOfflineLanguages(function(E){for(var K=+Object.create(null),C=0;C<E.length;C++)K[E[C]]=!0;E=[];for(var R in mxLanguageMap)"i18n"!=R&&""!=mxLanguageMap[R]&&E.push({code:R,name:mxLanguageMap[R]});E.sort(function(O,U){return O.name.localeCompare(U.name)});C=document.createElement("div");C.style.padding="8px 4px 0 4px";C.style.color="#888";mxUtils.write(C,mxResources.get("offlineLanguages",null,"Languages available offline"));n.appendChild(C);var M=document.createElement("div");M.style.display="grid";M.style.gridTemplateColumns="repeat(auto-fill, minmax(170px, 1fr))";+M.style.gap="2px 16px";M.style.padding="8px 4px";M.style.cursor="pointer";for(C=0;C<E.length;C++)(function(O,U){var T=document.createElement("label");T.style.display="flex";T.style.alignItems="center";T.style.padding="4px";T.style.overflow="hidden";T.style.whiteSpace="nowrap";var V=document.createElement("span");V.style.display="inline-flex";V.style.alignItems="center";V.style.justifyContent="center";V.style.position="relative";V.style.width="16px";V.style.height="16px";V.style.margin="0 8px 0 0";+V.style.flexShrink="0";var fa=document.createElement("input");fa.setAttribute("type","checkbox");fa.style.margin="0";fa.checked="en"==O||1==K[O];r.push({code:O,box:fa,row:T});mxEvent.addListener(fa,"change",function(){fa.style.display="none";var d=f.createSpinner(null,null,4);d.spin(V);var p=function(){f.getOfflineLanguages(function(A){d.stop();fa.style.display="";fa.checked=0<=mxUtils.indexOf(A,O);c()});f.updateOfflineLanguages()};fa.checked?fetch("resources/dia_"+O+".txt").then(p,p):f.removeOfflineLanguage(O,+p)});V.appendChild(fa);T.appendChild(V);var y=document.createElement("span");y.style.overflow="hidden";y.style.textOverflow="ellipsis";y.style.lineHeight="normal";mxUtils.write(y,U);T.appendChild(y);M.appendChild(T)})(E[C].code,E[C].name);n.appendChild(M);c()});var t=function(){c()};mxEvent.addListener(window,"online",t);mxEvent.addListener(window,"offline",t);var v=document.createElement("div");v.style.position="absolute";v.style.left="0";v.style.right="0";v.style.bottom="0";v.style.height="46px";+v.style.display="flex";v.style.whiteSpace="nowrap";v.style.alignItems="center";v.style.justifyContent="end";v.style.paddingTop="10px";v.style.paddingBottom="10px";v.style.boxSizing="border-box";var B=mxUtils.button(mxResources.get("close"),function(){f.hideDialog()});B.setAttribute("title","Escape");B.className="geBtn gePrimaryBtn";v.appendChild(B);l.appendChild(v);this.showDialog(l,480,460,!0,!0,function(){mxEvent.removeListener(window,"online",t);mxEvent.removeListener(window,"offline",t)})};EditorUi.prototype.showBackgroundImageDialog=+function(c,f,l,n){c=null!=c?c:mxUtils.bind(this,function(r,t,v){t||(r=new ChangePageSetup(this,n?v:null,r),r.ignoreColor=!n,this.editor.graph.model.execute(r))});c=new BackgroundImageDialog(this,c,f,l,n);this.showDialog(c.container,400,null,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,f,l,n,r){c=new LibraryDialog(this,c,f,l,n,r);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(t){t&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}),!1,!1,+new mxRectangle(0,0,480,320));c.init()};EditorUi.prototype.getCollapsedSections=function(){return mxSettings.getCollapsedSections()};EditorUi.prototype.getLibraryExpanded=function(c,f){var l=mxSettings.getCollapsedLibraries();return null!=l[c]?!l[c]:f};EditorUi.prototype.setLibraryExpanded=function(c,f){if(null!=c){var l=mxSettings.getCollapsedLibraries();l[c]=!f;mxSettings.setCollapsedLibraries(l);mxSettings.save()}};var m=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(c){var f=+m.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(l){this.editor.graph.isSelectionEmpty()&&f.refresh()}));return f};EditorUi.prototype.handleError=function(c,f,l,n,r,t,v){var B=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},E=null!=c&&null!=c.error?c.error:c;if(null!=c&&("1"==urlParams.test||null!=c.stack)&&null!=c.message)try{"1"!=urlParams.test&&!v||null==window.console||console.error("EditorUi.handleError:",c)}catch(M){}if(null!=+E||null!=f){v=mxUtils.htmlEntities(mxResources.get("unknownError"),!1);var K=mxResources.get("ok"),C=null;f=null!=f?f:mxResources.get("error");if(null!=E){null!=E.retry&&(K=mxResources.get("cancel"),C=function(){B();E.retry()});if(404==E.code||404==E.status||403==E.code){v=403==E.code?null!=E.message?mxUtils.htmlEntities(E.message,!1):mxUtils.htmlEntities(mxResources.get("accessDenied"),!1):null!=r?r:mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied")+(null!=this.drive&&null!=this.drive.user?+" ("+this.drive.user.email+")":""),!1);var R=null!=r?null:null!=t?t:window.location.hash;if(null!=R&&("#G"==R.substring(0,2)||"#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D"==R.substring(0,45))&&(null!=c&&null!=c.error&&(null!=c.error.errors&&0<c.error.errors.length&&"fileAccess"==c.error.errors[0].reason||null!=c.error.data&&0<c.error.data.length&&"fileAccess"==c.error.data[0].reason)||404==E.code||404==E.status)){R="#U"==R.substring(0,2)?R.substring(45,R.lastIndexOf("%26ex")):R.substring(2);this.showError(f,+v,mxResources.get("tryOpeningViaThisPage"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+R);null!=n&&n()}),C,mxResources.get("changeUser"),mxUtils.bind(this,function(){function M(){V.innerText="";for(var fa=0;fa<O.length;fa++){var y=document.createElement("option");mxUtils.write(y,O[fa].displayName);y.value=fa;V.appendChild(y);y=document.createElement("option");y.innerHTML=" ";mxUtils.write(y,"<"+O[fa].email+">");y.setAttribute("disabled",+"disabled");V.appendChild(y)}y=document.createElement("option");mxUtils.write(y,mxResources.get("addAccount"));y.value=O.length;V.appendChild(y)}var O=this.drive.getUsersList(),U=document.createElement("div"),T=document.createElement("div");T.style.marginBottom="6px";mxUtils.write(T,mxResources.get("changeUser")+": ");U.appendChild(T);var V=document.createElement("select");V.style.width="100%";M();mxEvent.addListener(V,"change",mxUtils.bind(this,function(){var fa=V.value,y=O.length!=fa;y&&this.drive.setUser(O[fa]);+this.drive.authorize(y,mxUtils.bind(this,function(){y||(O=this.drive.getUsersList(),M())}),mxUtils.bind(this,function(d){this.handleError(d)}),!0)}));U.appendChild(V);U=new CustomDialog(this,U,mxUtils.bind(this,function(){this.loadFile(window.location.hash.substr(1),!0)}));this.showDialog(U.container,300,100,!0,!0)}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.hideDialog();null!=l&&l()}),520,150);return}}null!=E.message?v=""==E.message&&null!=E.name?mxUtils.htmlEntities(E.name,!1):+mxUtils.htmlEntities(E.message,!1):null!=E.response&&null!=E.response.error?v=mxUtils.htmlEntities(E.response.error,!1):"undefined"!==typeof window.App&&(E.code==App.ERROR_TIMEOUT?v=mxUtils.htmlEntities(mxResources.get("timeout"),!1):E.code==App.ERROR_BUSY?v=mxUtils.htmlEntities(mxResources.get("busy"),!1):"string"===typeof E&&0<E.length&&(v=mxUtils.htmlEntities(E,!1)))}r=c=null;null!=E&&null!=E.helpLink?(c=mxResources.get("help"),r=mxUtils.bind(this,function(){return this.editor.graph.openLink(E.helpLink)})):+null!=E&&null!=E.ownerEmail?(c=mxResources.get("contactOwner"),v+=mxUtils.htmlEntities(" ("+c+": "+E.ownerEmail+")",!1),r=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(E.ownerEmail))})):null!=E&&null!=E.alternateAction&&(c=E.alternateAction.label,r=E.alternateAction.funct);this.showError(f,v,K,l,C,null,null,c,r,null!=E?E.dialogWidth:null,null,null,n?l:null)}else null!=l&&l()};EditorUi.prototype.alert=function(c,f,l){c=new ErrorDialog(this,null,c,mxResources.get("ok"),+f);this.showDialog(c.container,l||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,f,l,n,r,t){c=null!=c?c:"";var v=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},B=Math.min(220,28*Math.ceil(Math.max(1,c.length)/50));c=new ConfirmDialog(this,c,function(){v();null!=f&&f()},function(){v();null!=l&&l()},n,r,null,null,null,null,B);this.showDialog(c.container,340,46+B,!0,t);c.init()};EditorUi.prototype.showBanner=function(c,f,l,n,r,t,v,B,E){t=!1;if(!(this.bannerShowing||+this["hideBanner"+c]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+c])){v=null!=v?v:"translate(-50%,120%)";B=null!=B?B:"translate(-50%,0%)";var K=document.createElement("div");K.className="geBtn gePrimaryBtn geBanner"+(r?" geSmallBanner":"");K.style.zIndex=mxPopupMenu.prototype.zIndex;mxUtils.setPrefixedStyle(K.style,"transform",v);mxUtils.setPrefixedStyle(K.style,"transition","all 1000ms ease");null!=E&&mxUtils.setPrefixedStyle(K.style,"transform-origin",E);E=E=document.createElement("img");+E.setAttribute("src",Editor.crossImage);E.setAttribute("title",mxResources.get(n?"doNotShowAgain":"close"));E.setAttribute("border","0");r||(t=document.createElement("img"),t.setAttribute("src",IMAGE_PATH+"/logo.png"),t.setAttribute("border","0"),t.setAttribute("align","absmiddle"),t.style.cssText="margin-top:-4px;margin-left:8px;margin-right:12px;width:26px;height:26px;",K.appendChild(t),E.style.cssText=(r?"right:6px;top:9px;":"right:10px;top:12px;")+"position:absolute;filter:invert(1);padding:6px;margin:-6px;cursor:default;",+K.appendChild(E));mxUtils.write(K,f);document.body.appendChild(K);this.bannerShowing=!0;r&&(E.className="geLibraryButton",K.appendChild(E));f=document.createElement("div");f.style.cssText="display:flex;align-items:center;justify-content:center;padding-top:6px;font-size:11px;text-align:center;font-weight:normal;";var C=document.createElement("input");C.setAttribute("type","checkbox");C.setAttribute("id","geDoNotShowAgainCheckbox");C.style.marginRight="6px";if(!n){f.appendChild(C);var R=document.createElement("label");+R.setAttribute("for","geDoNotShowAgainCheckbox");mxUtils.write(R,mxResources.get("doNotShowAgain"));f.appendChild(R);K.style.paddingBottom=r?"16px":"30px";K.appendChild(f)}var M=mxUtils.bind(this,function(){null!=K.parentNode&&(K.parentNode.removeChild(K),this.bannerShowing=!1,C.checked||n)&&(this["hideBanner"+c]=!0,isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings["close"+c]=Date.now(),mxSettings.save()))});null!=E&&mxEvent.addListener(E,"click",mxUtils.bind(this,function(U){mxEvent.consume(U);+M()}));var O=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(K.style,"transform",v);window.setTimeout(mxUtils.bind(this,function(){M()}),1E3)});mxEvent.addListener(K,"click",mxUtils.bind(this,function(U){var T=mxEvent.getSource(U);T!=C&&T!=R?(null!=l&&l(),M(),mxEvent.consume(U)):O()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(K.style,"transform",B)}),500);window.setTimeout(O,r?5E3:3E4);t=!0}return t};EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=+new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.createImageDataUri=function(c,f,l,n){c=c.toDataURL("image/"+l);if(null!=c&&6<c.length)null!=f&&(c=Editor.writeGraphModelToPng(c,"tEXt","mxfile",encodeURIComponent(f))),0<n&&(c=Editor.writeGraphModelToPng(c,"pHYs","dpi",n));else throw{message:mxResources.get("unknownError")};return c};EditorUi.prototype.saveCanvas=function(c,f,l,n,r){var t="jpeg"==l?"jpg":l;n=this.getBaseFilename(n)++(null!=f?".drawio":"")+"."+t;c=this.createImageDataUri(c,f,l,r);this.saveData(n,t,c.substring(c.lastIndexOf(",")+1),"image/"+l,!0)};EditorUi.prototype.showAnimatedGifExportDialog=function(){var c=document.createElement("div");c.style.whiteSpace="nowrap";var f=document.createElement("h3");mxUtils.write(f,mxResources.get("formatAnimatedGif"));c.appendChild(f);f=document.createElement("div");f.className="geDialogSection";var l=document.createElement("div");l.className="geDialogFormRow";var n=document.createElement("span");+n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("speed")+":");l.appendChild(n);var r=document.createElement("select"),t=[{label:mxResources.get("slow"),value:8},{label:mxResources.get("medium"),value:15},{label:mxResources.get("fast"),value:24}];for(n=0;n<t.length;n++){var v=document.createElement("option");mxUtils.write(v,t[n].label);v.setAttribute("value",t[n].value);r.appendChild(v)}r.value=null!=this.lastExportFps?this.lastExportFps:15;0>r.selectedIndex&&(r.value=15);l.appendChild(r);+f.appendChild(l);l=document.createElement("div");l.className="geDialogFormRow";n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("zoom")+":");l.appendChild(n);var B=document.createElement("input");B.setAttribute("type","text");B.value=this.lastExportZoom||"100%";l.appendChild(B);f.appendChild(l);l=document.createElement("div");l.className="geDialogFormRow";n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("borderWidth")++":");l.appendChild(n);var E=document.createElement("input");E.setAttribute("type","text");E.value=this.lastExportBorder||"0";l.appendChild(E);f.appendChild(l);l=document.createElement("div");l.className="geDialogFormRow";n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("loops")+":");l.appendChild(n);var K=document.createElement("select");t=[{label:mxResources.get("forever"),value:0},{label:"1",value:1},{label:"3",value:3},{label:"5",value:5}];for(n=+0;n<t.length;n++)v=document.createElement("option"),mxUtils.write(v,t[n].label),v.setAttribute("value",t[n].value),K.appendChild(v);K.value=null!=this.lastExportLoops?this.lastExportLoops:0;0>K.selectedIndex&&(K.value=0);l.appendChild(K);f.appendChild(l);l=document.createElement("div");l.className="geDialogFormRow";n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("appearance")+":");l.appendChild(n);var C=document.createElement("select");n=document.createElement("option");+n.setAttribute("value","light");mxUtils.write(n,mxResources.get("light"));C.appendChild(n);n=document.createElement("option");n.setAttribute("value","dark");mxUtils.write(n,mxResources.get("dark"));C.appendChild(n);var R=Editor.isDarkMode()?"dark":"light";C.value=null!=this.lastExportTheme?this.lastExportTheme:R;0>C.selectedIndex&&(C.value=R);l.appendChild(C);f.appendChild(l);c.appendChild(f);f=document.createElement("div");f.className="geDialogSection";var M=this.addCheckbox(f,mxResources.get("transparentBackground",+null,"Transparent Background"),null!=this.lastExportTransparent?this.lastExportTransparent:!1,null,null,null,null,null,!0);c.appendChild(f);c=new CustomDialog(this,c,mxUtils.bind(this,function(){var O=parseInt(B.value);if(isNaN(O)||0>=O)O=100;this.lastExportZoom=O+"%";this.lastExportBorder=E.value;this.lastExportFps=15!=parseInt(r.value)?parseInt(r.value):null;this.lastExportLoops=0!=parseInt(K.value)?parseInt(K.value):null;this.lastExportTransparent=M.checked?!0:null;this.lastExportTheme=C.value==+R?null:C.value;this.exportAnimatedGif({fps:parseInt(r.value),scale:O/100,border:parseInt(E.value)||0,repeat:parseInt(K.value),transparent:M.checked,theme:C.value,background:M.checked?null:null!=this.editor.graph.background&&this.editor.graph.background!=mxConstants.NONE?this.editor.graph.background:Editor.getDefaultPageBackgroundColor()})}),null,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram");this.showDialog(c.container,360,null,!0,!0,null,null,null,null,!0)};EditorUi.prototype.exportAnimatedGif=+function(c){if(this.spinner.spin(document.body,mxResources.get("exporting")))try{(new AnimatedGifExport(this)).doExport(c,mxUtils.bind(this,function(f){this.spinner.stop();if(null!=f){var l=new FileReader;l.onload=mxUtils.bind(this,function(){var n=l.result;this.saveData(this.getBaseFilename()+".gif","gif",n.substring(n.lastIndexOf(",")+1),"image/gif",!0)});l.onerror=mxUtils.bind(this,function(n){this.handleError(n)});l.readAsDataURL(f)}}),mxUtils.bind(this,function(f){this.spinner.stop();this.handleError(f)}))}catch(f){this.spinner.stop(),+this.handleError(f)}};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(c,f){c=new TextareaDialog(this,c,f,null,null,mxResources.get("close"));this.showDialog(c.container,620,460,!0,!0,null,null,null,new mxRectangle(0,0,440,280),!0);c.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(c,+f,l,n,r,t){"text/xml"!=l||/(\.drawio)$/i.test(f)||/(\.xml)$/i.test(f)||/(\.svg)$/i.test(f)||/(\.html)$/i.test(f)||(f=f+"."+(null!=t?t:"drawio"));if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||null==l||"image/"!=l.substring(0,6)?this.showTextDialog(f+":",c):this.openInNewWindow(c,l,n);else{var v=document.createElement("a");t=(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&"undefined"!==typeof v.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var B=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);+t=65==(B?parseInt(B[2],10):!1)?!1:t}if(t||this.isOffline()){v.href=URL.createObjectURL(n?this.base64ToBlob(c,l):new Blob([c],{type:l}));t?v.download=f:v.setAttribute("target","_blank");document.body.appendChild(v);try{window.setTimeout(function(){URL.revokeObjectURL(v.href)},2E4),v.click(),v.parentNode.removeChild(v)}catch(E){}}else this.createEchoRequest(c,f,l,n,r).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(c,f,l,n,r,t){c="xml="+encodeURIComponent(c);return new mxXmlRequest(SAVE_URL,+c+(null!=l?"&mime="+l:"")+(null!=r?"&format="+r:"")+(null!=t?"&base64="+t:"")+(null!=f?"&filename="+encodeURIComponent(f):"")+(n?"&binary=1":""))};EditorUi.prototype.saveLocalFile=function(c,f,l,n,r,t,v,B,E){t=null!=t?t:!1;v=null!=v?v:"vsdx"!=r&&(!mxClient.IS_IOS||!navigator.standalone);var K=mxUtils.bind(this,function(R,M,O,U){try{if("_blank"==M)if(null!=l&&"image/"==l.substring(0,6))this.openInNewWindow(c,l,n);else if(null!=l&&"text/html"==l.substring(0,9)&&c.length<EmbedDialog.maxSize){var T=new EmbedDialog(this,+c,null,null,null,null,null,null,null,!0);this.showDialog(T.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));T.init()}else null==window.open(URL.createObjectURL(new Blob([c],{type:"text/plain;charset=utf-8"})))&&mxUtils.popup(c,!0);else if(M==App.MODE_DEVICE||"download"==M)this.doSaveLocalFile(c,R,l,n,null,B);else if(null!=R&&0<R.length){var V=mxUtils.bind(this,function(fa){try{this.exportFile(c,R,l,n,M,fa)}catch(y){this.handleError(y)}});null!=U?V(U):this.pickFolder(M,V)}}catch(fa){this.handleError(fa)}});+r=[];t||r.push(App.MODE_BROWSER);v||r.push("_blank");var C=new SaveDialog(this,f,mxUtils.bind(this,function(R,M,O){K(R.value,M,R,O);this.hideDialog(null,null,C.container)}),r,c,l,n,E);this.showDialog(C.container,420,null!=l?114:122,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));C.init()};EditorUi.prototype.openInNewWindow=function(c,f,l){null==window.open(URL.createObjectURL(l?this.base64ToBlob(c,f):new Blob([c],{type:f})))&&mxUtils.popup(c,!0)};var g=EditorUi.prototype.addChromelessToolbarItems;+EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};EditorUi.prototype.addChromelessToolbarItems=function(c){if(null!=urlParams.tags){var f=null;try{var l=urlParams.tags;try{l=decodeURIComponent(l)}catch(B){}f=JSON.parse(l)}catch(B){}if(null!=f){var n=this.editor.graph,r=mxUtils.bind(this,function(){var B=null!=this.currentPage?this.currentPage.getId():+0;B=f[B];n.hiddenTags=null!=B&&0<B.length?B:[];n.refresh()});this.editor.addListener("fileLoaded",mxUtils.bind(this,function(){r();n.isLightboxView()&&this.lightboxFit();this.chromelessResize&&this.chromelessResize()}));this.editor.addListener("pageSelected",r)}this.tagsDialog=this.tagsComponent=null;var t=c(mxUtils.bind(this,function(B){null==this.tagsComponent&&(this.tagsComponent=this.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return null!=this.tagsDialog}),!0),this.tagsComponent.div.getElementsByTagName("div")[0].style.position="",mxUtils.setPrefixedStyle(this.tagsComponent.div.style,"borderRadius","5px"),this.tagsComponent.div.style.maxHeight="160px",this.tagsComponent.div.style.maxWidth="120px",this.tagsComponent.div.style.padding="4px",this.tagsComponent.div.style.overflow="auto",this.tagsComponent.div.style.height="auto",this.tagsComponent.div.style.position="fixed",this.tagsComponent.div.style.fontFamily=Editor.defaultHtmlFont,this.tagsComponent.div.style.backgroundColor="#000000",this.tagsComponent.div.style.color="#ffffff",mxUtils.setOpacity(this.tagsComponent.div,80));if(null!=this.tagsDialog)this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null;else{this.tagsDialog=this.tagsComponent.div;mxEvent.addListener(this.tagsDialog,"mouseleave",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null)}));var E=t.getBoundingClientRect();this.tagsDialog.style.left=E.left+"px";this.tagsDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+-this.chromelessToolbar.offsetHeight+4+"px";E=mxUtils.getCurrentStyle(this.editor.graph.container);this.tagsDialog.style.zIndex=E.zIndex;document.body.appendChild(this.tagsDialog);this.tagsComponent.refresh();this.editor.fireEvent(new mxEventObject("tagsDialogShown"))}mxEvent.consume(B)}),Editor.tagsImage,mxResources.get("tags"));this.editor.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var B=this.editor.graph.getAllTags();t.style.display=0<B.length?"":"none"}))}f.apply(this,+this.chromelessToolbar.offsetHeight+4+"px";E=mxUtils.getCurrentStyle(this.editor.graph.container);this.tagsDialog.style.zIndex=E.zIndex;document.body.appendChild(this.tagsDialog);this.tagsComponent.refresh();this.editor.fireEvent(new mxEventObject("tagsDialogShown"))}mxEvent.consume(B)}),Editor.tagsImage,mxResources.get("tags"));this.editor.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var B=this.editor.graph.getAllTags();t.style.display=0<B.length?"":"none"}))}g.apply(this,arguments);this.editor.addListener("tagsDialogShown",mxUtils.bind(this,function(){null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));this.editor.addListener("layersDialogShown",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null)}));this.editor.addListener("pageSelected",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null);null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));mxEvent.addListener(this.editor.graph.container,"click",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null);null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));if(this.editor.isExportToCanvas()&&this.isChromelessImageExportEnabled()&&"1"!=urlParams.noExport){this.exportDialog=null;var v=c(mxUtils.bind(this,function(B){var E=mxUtils.bind(this,function(){mxEvent.removeListener(this.editor.graph.container,"click",E);null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null)});if(null!=this.exportDialog)E.apply(this);else{this.exportDialog=document.createElement("div");var K=v.getBoundingClientRect();mxUtils.setPrefixedStyle(this.exportDialog.style,"borderRadius","5px");this.exportDialog.style.position=@@ -14207,40 +14294,40 @@ this.tagsDialog=null);null!=this.layersDialog&&(this.layersDialog.parentNode.rem4+"px";K=mxUtils.getCurrentStyle(this.editor.graph.container);this.exportDialog.style.zIndex=K.zIndex;var C=new Spinner({lines:8,length:6,width:5,radius:6,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"28px",zIndex:2E9});C.spin(this.exportDialog);document.body.appendChild(this.exportDialog);mxEvent.addListener(this.editor.graph.container,"click",E);this.editor.exportToCanvas(mxUtils.bind(this,function(R){C.stop();this.exportDialog.style.width="auto";this.exportDialog.style.height="auto";this.exportDialog.style.padding="10px";var M=this.createImageDataUri(R,null,"png"),O=document.createElement("img");O.style.maxWidth="140px";O.style.maxHeight="140px";O.style.cursor="pointer";O.style.backgroundColor="white";O.setAttribute("title",mxResources.get("openInNewWindow"));O.setAttribute("border","0");O.setAttribute("src",M);this.exportDialog.appendChild(O);mxEvent.addListener(O,"click",mxUtils.bind(this,function(){this.openInNewWindow(M.substring(M.indexOf(",")+1),"image/png",!0);null!=navigator.clipboard&&"function"===typeof ClipboardItem&&this.writeImageToClipboard(M,R.width,R.height,"image/png",mxUtils.bind(this,function(){var U=mxResources.get("imageClicked");null!=this.showBanner?this.showBanner("ImageClicked",U,null,!1,!0):this.alert(U)}),mxUtils.bind(this,function(U){this.handleError(U)}));E.apply(this,arguments)}))}),null,this.thumbImageCache,null,mxUtils.bind(this,function(R){C.stop();null!=this.exportDialog&&null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),-this.exportDialog=null);this.handleError(R)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(B)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(c,g,l,n,r,t){if("1"==urlParams.embed&&"json"==urlParams.proto&&this.embedExportProtocol){t=this.embedMessageSource||window.opener||window.parent;var v=this.createLoadMessage("export");v.format=g;v.filename=c;v.data=r?"data:"+n+";base64,"+l:l;v.xml=this.getFileData(!0);t.postMessage(JSON.stringify(v),-"*")}else this.isLocalFileSave()?this.saveLocalFile(l,c,n,r,g,t):this.saveRequest(c,g,mxUtils.bind(this,function(B,E){return this.createEchoRequest(l,B,n,r,g,E)}),l,r,n)};EditorUi.prototype.saveRequest=function(c,g,l,n,r,t,v){v=null!=v?v:!mxClient.IS_IOS||!navigator.standalone;var B=mxUtils.bind(this,function(K,C,R,M){if("_blank"==C||null!=K&&0<K.length){var O=l("_blank"==C?null:K,C==App.MODE_DEVICE||"download"==C||null==C||"_blank"==C?"0":"1");null!=O&&(C==App.MODE_DEVICE||"download"==C||"_blank"==-C?O.simulate(document,"_blank"):(R=mxUtils.bind(this,function(U){t=null!=t?t:"pdf"==g?"application/pdf":"image/"+g;if(null!=n)try{this.exportFile(n,K,t,!0,C,U)}catch(T){this.handleError(T)}else this.spinner.spin(document.body,mxResources.get("saving"))&&O.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=O.getStatus()&&299>=O.getStatus())try{this.exportFile(O.getText(),K,t,!0,C,U)}catch(T){this.handleError(T)}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,+this.exportDialog=null);this.handleError(R)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(B)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(c,f,l,n,r,t){if("1"==urlParams.embed&&"json"==urlParams.proto&&this.embedExportProtocol){t=this.embedMessageSource||window.opener||window.parent;var v=this.createLoadMessage("export");v.format=f;v.filename=c;v.data=r?"data:"+n+";base64,"+l:l;v.xml=this.getFileData(!0);t.postMessage(JSON.stringify(v),+"*")}else this.isLocalFileSave()?this.saveLocalFile(l,c,n,r,f,t):this.saveRequest(c,f,mxUtils.bind(this,function(B,E){return this.createEchoRequest(l,B,n,r,f,E)}),l,r,n)};EditorUi.prototype.saveRequest=function(c,f,l,n,r,t,v){v=null!=v?v:!mxClient.IS_IOS||!navigator.standalone;var B=mxUtils.bind(this,function(K,C,R,M){if("_blank"==C||null!=K&&0<K.length){var O=l("_blank"==C?null:K,C==App.MODE_DEVICE||"download"==C||null==C||"_blank"==C?"0":"1");null!=O&&(C==App.MODE_DEVICE||"download"==C||"_blank"==+C?O.simulate(document,"_blank"):(R=mxUtils.bind(this,function(U){t=null!=t?t:"pdf"==f?"application/pdf":"image/"+f;if(null!=n)try{this.exportFile(n,K,t,!0,C,U)}catch(T){this.handleError(T)}else this.spinner.spin(document.body,mxResources.get("saving"))&&O.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=O.getStatus()&&299>=O.getStatus())try{this.exportFile(O.getText(),K,t,!0,C,U)}catch(T){this.handleError(T)}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(T){this.spinner.stop();this.handleError(T)}))}),null!=M?R(M):this.pickFolder(C,R)))}});r=[App.MODE_BROWSER];v||r.push("_blank");var E=new SaveDialog(this,c,mxUtils.bind(this,function(K,C,R){B(K.value,C,K,R);this.hideDialog(null,null,E.container)}),r,null,"application/pdf");this.showDialog(E.container,420,114,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));E.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};-EditorUi.prototype.exportFile=function(c,g,l,n,r,t){};EditorUi.prototype.getServiceForName=function(c){return null};EditorUi.prototype.getTitleForService=function(c){return mxResources.get(c)};EditorUi.prototype.pickFolder=function(c,g,l){g(null)};EditorUi.prototype.addSvgIconHandlers=function(c){for(var g=c.querySelectorAll("[data-icon-content]"),l=0;l<g.length;l++)"g"==g[l].nodeName&&g[l].hasAttribute("data-icon")||g[l].removeAttribute("data-icon-content");if(null!=c.querySelector("[data-icon-content]")){g=-c.ownerDocument;l=null!=g.createElementNS?g.createElementNS(mxConstants.NS_SVG,"style"):g.createElement("style");l.appendChild(g.createTextNode(".geSvgPopup { display: inline-block; box-sizing: border-box; max-width: 100%; max-height: 100%; overflow: auto; background-color: #ffffff; border: 1px solid #c0c0c0; border-radius: 4px; box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.25); padding: 8px; color: #000000; font-family: Helvetica, Arial, sans-serif; font-size: 12px; word-break: break-word; } @media (prefers-color-scheme: dark) { .geSvgPopup { background-color: #2a252f; border-color: #505050; color: #ffffff; } } @media print { [data-icon], .geSvgPopup { display: none; } }"));-c.appendChild(l);l=null!=g.createElementNS?g.createElementNS(mxConstants.NS_SVG,"script"):g.createElement("script");l.setAttribute("type","text/javascript");var n='(function() {\nvar svg = document.documentElement;\nvar fo = null, active = null, pinned = false, thread = null;\nfunction hide() {\nif (fo != null && fo.parentNode != null) { fo.parentNode.removeChild(fo); }\nfo = null; active = null; pinned = false;\n}\nfunction cancel() {\nif (thread != null) { window.clearTimeout(thread); thread = null; }\n}\nfunction schedule() {\ncancel();\nif (!pinned) { thread = window.setTimeout(hide, 300); }\n}\nfunction show(icon) {\ncancel();\nif (active == icon) { return; }\nhide();\nvar content = icon.getAttribute("data-icon-content");\nif (content == null || content == "") { return; }\nvar x = parseFloat(icon.getAttribute("x"));\nvar y = parseFloat(icon.getAttribute("y"));\nvar w = parseFloat(icon.getAttribute("width"));\nif (isNaN(x) || isNaN(y)) {\ntry { var bb = icon.getBBox(); x = bb.x; y = bb.y; w = bb.width; }\ncatch (e) { x = 0; y = 0; }\n}\nif (isNaN(w) || w <= 0) { w = 16; }\nvar vb = (svg.viewBox != null && svg.viewBox.baseVal != null &&\nsvg.viewBox.baseVal.width > 0) ? svg.viewBox.baseVal : null;\nvar maxW = (vb != null) ? vb.width : (svg.clientWidth || 800);\nvar maxH = (vb != null) ? vb.height : (svg.clientHeight || 600);\nvar pw = Math.max(60, Math.min(320, maxW - 4));\nvar ph = Math.max(40, Math.min(220, maxH - 4));\nfo = document.createElementNS("http://www.w3.org/2000/svg", "foreignObject");\nfo.setAttribute("width", pw);\nfo.setAttribute("height", ph);\nvar div = document.createElementNS("http://www.w3.org/1999/xhtml", "div");\ndiv.setAttribute("class", "geSvgPopup");\ndiv.innerHTML = content;\ndiv.addEventListener("mouseenter", cancel);\ndiv.addEventListener("mouseleave", schedule);\nfo.appendChild(div);\nsvg.appendChild(fo);\nvar mw = div.offsetWidth;\nvar mh = div.offsetHeight;\nif (mw > 0) { pw = Math.min(pw, mw + 2); }\nif (mh > 0) { ph = Math.min(ph, mh + 2); }\nvar px = x + w + 4;\nvar py = y;\nif (vb != null) {\npx = Math.max(vb.x, Math.min(px, vb.x + vb.width - pw - 2));\npy = Math.max(vb.y, Math.min(py, vb.y + vb.height - ph - 2));\n}\nfo.setAttribute("x", px);\nfo.setAttribute("y", py);\nfo.setAttribute("width", pw);\nfo.setAttribute("height", ph);\nactive = icon;\n}\nvar icons = document.querySelectorAll("g[data-icon][data-icon-content]");\nfor (var i = 0; i < icons.length; i++) {\n(function(icon) {\nicon.addEventListener("click", function(evt) {\nif (active == icon) { hide(); }\nelse { show(icon); pinned = true; }\nevt.preventDefault();\nevt.stopPropagation();\n});\nicon.addEventListener("mouseenter", function() {\nif (pinned) { cancel(); }\nelse { show(icon); }\n});\nicon.addEventListener("mouseleave", schedule);\n})(icons[i]);\n}\ndocument.addEventListener("mousedown", function(evt) {\nif (fo != null && (active == null || !active.contains(evt.target)) &&\n!fo.contains(evt.target)) { hide(); }\n});\ndocument.addEventListener("keydown", function(evt) {\nif (evt.keyCode == 27) { hide(); }\n});\n})();'.replace(/\n/g,-" ");l.appendChild(g.createCDATASection(n));c.appendChild(l)}};EditorUi.prototype.exportSvg=function(c,g,l,n,r,t,v,B,E,K,C,R,M,O,U,T,V){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(Y){Editor.addRetryToError(Y,mxUtils.bind(this,function(){this.exportSvg(c,g,l,n,r,t,v,B,E,K,C,R,M,O,U,T,V)}));this.handleError(Y)})))try{var fa=this.editor.graph.isSelectionEmpty();l=null!=l?l:fa;var y=g?null:this.editor.graph.background;y==mxConstants.NONE&&(y=null);null==-y&&0==g&&(y=this.editor.graph.shapeBackgroundColor);var d=this.editor.graph.addForeignObjectWarning;Editor.foreignObjectImages&&(this.editor.graph.addForeignObjectWarning=function(){});var p=mxUtils.lightDarkColorSupported,A=mxUtils.preferDarkColor;if("light"==C||"dark"==C)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor="dark"==C;V&&(v=Math.max(null!=v?v:0,Math.ceil(16*c)));var G=this.editor.graph.createSvgImageExport(r,U,V,"self"==K?"_top":"_blank"),I=Object.create(null),L=this.getSvgWithFontLookup(I,+EditorUi.prototype.exportFile=function(c,f,l,n,r,t){};EditorUi.prototype.getServiceForName=function(c){return null};EditorUi.prototype.getTitleForService=function(c){return mxResources.get(c)};EditorUi.prototype.pickFolder=function(c,f,l){f(null)};EditorUi.prototype.addSvgIconHandlers=function(c){for(var f=c.querySelectorAll("[data-icon-content]"),l=0;l<f.length;l++)"g"==f[l].nodeName&&f[l].hasAttribute("data-icon")||f[l].removeAttribute("data-icon-content");if(null!=c.querySelector("[data-icon-content]")){f=+c.ownerDocument;l=null!=f.createElementNS?f.createElementNS(mxConstants.NS_SVG,"style"):f.createElement("style");l.appendChild(f.createTextNode(".geSvgPopup { display: inline-block; box-sizing: border-box; max-width: 100%; max-height: 100%; overflow: auto; background-color: #ffffff; border: 1px solid #c0c0c0; border-radius: 4px; box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.25); padding: 8px; color: #000000; font-family: Helvetica, Arial, sans-serif; font-size: 12px; word-break: break-word; } @media (prefers-color-scheme: dark) { .geSvgPopup { background-color: #2a252f; border-color: #505050; color: #ffffff; } } @media print { [data-icon], .geSvgPopup { display: none; } }"));+c.appendChild(l);l=null!=f.createElementNS?f.createElementNS(mxConstants.NS_SVG,"script"):f.createElement("script");l.setAttribute("type","text/javascript");var n='(function() {\nvar svg = document.documentElement;\nvar fo = null, active = null, pinned = false, thread = null;\nfunction hide() {\nif (fo != null && fo.parentNode != null) { fo.parentNode.removeChild(fo); }\nfo = null; active = null; pinned = false;\n}\nfunction cancel() {\nif (thread != null) { window.clearTimeout(thread); thread = null; }\n}\nfunction schedule() {\ncancel();\nif (!pinned) { thread = window.setTimeout(hide, 300); }\n}\nfunction show(icon) {\ncancel();\nif (active == icon) { return; }\nhide();\nvar content = icon.getAttribute("data-icon-content");\nif (content == null || content == "") { return; }\nvar x = parseFloat(icon.getAttribute("x"));\nvar y = parseFloat(icon.getAttribute("y"));\nvar w = parseFloat(icon.getAttribute("width"));\nif (isNaN(x) || isNaN(y)) {\ntry { var bb = icon.getBBox(); x = bb.x; y = bb.y; w = bb.width; }\ncatch (e) { x = 0; y = 0; }\n}\nif (isNaN(w) || w <= 0) { w = 16; }\nvar vb = (svg.viewBox != null && svg.viewBox.baseVal != null &&\nsvg.viewBox.baseVal.width > 0) ? svg.viewBox.baseVal : null;\nvar maxW = (vb != null) ? vb.width : (svg.clientWidth || 800);\nvar maxH = (vb != null) ? vb.height : (svg.clientHeight || 600);\nvar pw = Math.max(60, Math.min(320, maxW - 4));\nvar ph = Math.max(40, Math.min(220, maxH - 4));\nfo = document.createElementNS("http://www.w3.org/2000/svg", "foreignObject");\nfo.setAttribute("width", pw);\nfo.setAttribute("height", ph);\nvar div = document.createElementNS("http://www.w3.org/1999/xhtml", "div");\ndiv.setAttribute("class", "geSvgPopup");\ndiv.innerHTML = content;\ndiv.addEventListener("mouseenter", cancel);\ndiv.addEventListener("mouseleave", schedule);\nfo.appendChild(div);\nsvg.appendChild(fo);\nvar mw = div.offsetWidth;\nvar mh = div.offsetHeight;\nif (mw > 0) { pw = Math.min(pw, mw + 2); }\nif (mh > 0) { ph = Math.min(ph, mh + 2); }\nvar px = x + w + 4;\nvar py = y;\nif (vb != null) {\npx = Math.max(vb.x, Math.min(px, vb.x + vb.width - pw - 2));\npy = Math.max(vb.y, Math.min(py, vb.y + vb.height - ph - 2));\n}\nfo.setAttribute("x", px);\nfo.setAttribute("y", py);\nfo.setAttribute("width", pw);\nfo.setAttribute("height", ph);\nactive = icon;\n}\nvar icons = document.querySelectorAll("g[data-icon][data-icon-content]");\nfor (var i = 0; i < icons.length; i++) {\n(function(icon) {\nicon.addEventListener("click", function(evt) {\nif (active == icon) { hide(); }\nelse { show(icon); pinned = true; }\nevt.preventDefault();\nevt.stopPropagation();\n});\nicon.addEventListener("mouseenter", function() {\nif (pinned) { cancel(); }\nelse { show(icon); }\n});\nicon.addEventListener("mouseleave", schedule);\n})(icons[i]);\n}\ndocument.addEventListener("mousedown", function(evt) {\nif (fo != null && (active == null || !active.contains(evt.target)) &&\n!fo.contains(evt.target)) { hide(); }\n});\ndocument.addEventListener("keydown", function(evt) {\nif (evt.keyCode == 27) { hide(); }\n});\n})();'.replace(/\n/g,+" ");l.appendChild(f.createCDATASection(n));c.appendChild(l)}};EditorUi.prototype.exportSvg=function(c,f,l,n,r,t,v,B,E,K,C,R,M,O,U,T,V){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(Y){Editor.addRetryToError(Y,mxUtils.bind(this,function(){this.exportSvg(c,f,l,n,r,t,v,B,E,K,C,R,M,O,U,T,V)}));this.handleError(Y)})))try{var fa=this.editor.graph.isSelectionEmpty();l=null!=l?l:fa;var y=f?null:this.editor.graph.background;y==mxConstants.NONE&&(y=null);null==+y&&0==f&&(y=this.editor.graph.shapeBackgroundColor);var d=this.editor.graph.addForeignObjectWarning;Editor.foreignObjectImages&&(this.editor.graph.addForeignObjectWarning=function(){});var p=mxUtils.lightDarkColorSupported,A=mxUtils.preferDarkColor;if("light"==C||"dark"==C)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor="dark"==C;V&&(v=Math.max(null!=v?v:0,Math.ceil(16*c)));var G=this.editor.graph.createSvgImageExport(r,U,V,"self"==K?"_top":"_blank"),I=Object.create(null),L=this.getSvgWithFontLookup(I,G,mxUtils.bind(this,function(){return this.editor.graph.getSvg(y,c,v,B,null,l,null,G,"blank"==K?"_blank":"self"==K?"_top":null,null,null,C,R,null,null,null,T)}));mxUtils.lightDarkColorSupported=p;mxUtils.preferDarkColor=A;this.editor.graph.addForeignObjectWarning=d;n&&this.editor.graph.addSvgShadow(L);V&&this.addSvgIconHandlers(L);var P=this.getBaseFilename()+(r?".drawio":"")+".svg";O=null!=O?O:mxUtils.bind(this,function(Y){this.isLocalFileSave()||Y.length<=MAX_REQUEST_SIZE?this.saveData(P,"svg",Y,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(Y)}))});var Q=mxUtils.bind(this,function(Y){this.spinner.stop();r&&Y.setAttribute("content",this.getFileData(!0,null,null,null,l,E,null,null,null,null,null,c,v));O(Graph.xmlDeclaration+"\n"+(r?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(Y))});this.editor.graph.mathEnabled&&this.editor.addMathCss(L);var ba=mxUtils.bind(this,function(Y){Editor.replaceSvgDataUris&&-t&&EditorUi.embedSvgImages(Y);Editor.foreignObjectImages&&M?this.replaceAlternateContent(Y,C,Q):Q(Y)}),W=mxUtils.bind(this,function(Y){t&&!this.isOffline()&&Editor.canvasSupported?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(Y,ba,this.thumbImageCache)):ba(Y)});this.embedFonts(L,W,M?!0:!1,I)}catch(Y){this.handleError(Y)}};EditorUi.prototype.replaceAlternateContent=function(c,g,l){function n(R,M,O,U,T){var V=mxUtils.createElementNs(c.ownerDocument,mxConstants.NS_SVG,-"image");V.setAttribute("x",M);V.setAttribute("y",O+.5);V.setAttribute("width",U.width);V.setAttribute("height",U.height);null==V.setAttributeNS?V.setAttribute("xlink:href",T):V.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",T);R.replaceChild(V,R.lastChild);B()}function r(){if(v<C.length)C[v++](r)}var t="";g=c.getElementsByTagName("style");for(var v=0;v<g.length;v++)t+=g[v].innerHTML;g=c.getElementsByTagName("switch");counter=g.length;var B=mxUtils.bind(this,function(){counter--;0==counter&&l(c)}),-E={},K={},C=[];for(v=0;v<g.length;v++)mxUtils.bind(this,function(R){var M=R.getElementsByTagName("div");if(0<M.length)try{var O=M[0].cloneNode(!0),U=parseInt(O.style.marginLeft),T=parseInt(O.style.paddingTop),V=O.getElementsByTagName("div")[1],fa=M=!1,y=O.style.alignItems,d=O.style.justifyContent;if(null!=O.style.writingMode){var p=O.style.writingMode;fa="vertical-"==p.substring(0,9);M="-rl"==p.substring(p.length-3)}var A=!fa&&"1px"==O.style.width||fa&&"1px"==O.style.height;if(!fa&&"1px"==O.style.height||+t&&EditorUi.embedSvgImages(Y);Editor.foreignObjectImages&&M?this.replaceAlternateContent(Y,C,Q):Q(Y)}),W=mxUtils.bind(this,function(Y){t&&!this.isOffline()&&Editor.canvasSupported?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(Y,ba,this.thumbImageCache)):ba(Y)});this.embedFonts(L,W,M?!0:!1,I)}catch(Y){this.handleError(Y)}};EditorUi.prototype.replaceAlternateContent=function(c,f,l){function n(R,M,O,U,T){var V=mxUtils.createElementNs(c.ownerDocument,mxConstants.NS_SVG,+"image");V.setAttribute("x",M);V.setAttribute("y",O+.5);V.setAttribute("width",U.width);V.setAttribute("height",U.height);null==V.setAttributeNS?V.setAttribute("xlink:href",T):V.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",T);R.replaceChild(V,R.lastChild);B()}function r(){if(v<C.length)C[v++](r)}var t="";f=c.getElementsByTagName("style");for(var v=0;v<f.length;v++)t+=f[v].innerHTML;f=c.getElementsByTagName("switch");counter=f.length;var B=mxUtils.bind(this,function(){counter--;0==counter&&l(c)}),+E={},K={},C=[];for(v=0;v<f.length;v++)mxUtils.bind(this,function(R){var M=R.getElementsByTagName("div");if(0<M.length)try{var O=M[0].cloneNode(!0),U=parseInt(O.style.marginLeft),T=parseInt(O.style.paddingTop),V=O.getElementsByTagName("div")[1],fa=M=!1,y=O.style.alignItems,d=O.style.justifyContent;if(null!=O.style.writingMode){var p=O.style.writingMode;fa="vertical-"==p.substring(0,9);M="-rl"==p.substring(p.length-3)}var A=!fa&&"1px"==O.style.width||fa&&"1px"==O.style.height;if(!fa&&"1px"==O.style.height||fa&&"1px"==O.style.width)O.style.alignItems=fa&&M?"unsafe flex-end":"unsafe flex-start";A&&(O.style.justifyContent="unsafe flex-start");O.style.paddingTop="";O.style.marginLeft="";var G=O.outerHTML,I=E[G];null==I&&(O.style.position="absolute",O.style.visibility="hidden",document.body.appendChild(O),p=1,p="1px"==O.style.width?V.offsetWidth:parseInt(O.style.width),A=1,A="1px"==O.style.height?V.offsetHeight:parseInt(O.style.height),document.body.removeChild(O),I=new mxRectangle(U,T,p,A),E[G]=I);"1px"==O.style.height&&("unsafe center"==y?T-=I.height/2:"unsafe flex-end"==y&&(T-=I.height));if("1px"==O.style.width)if(!fa&&"unsafe center"==d||fa&&"unsafe center"==y)U-=I.width/2;else if(!fa&&"unsafe flex-end"==d||fa&&(!M&&"unsafe flex-end"==y||M&&"unsafe flex-start"==y))U-=I.width;I=new mxRectangle(U,T,I.width,I.height+parseInt(V.style.fontSize)/4);C.push(mxUtils.bind(this,function(L){var P=K[G];null==P?Graph.htmlToPng(G,I.width,I.height,mxUtils.bind(this,function(Q){n(R,U,T,I,Q);K[G]=Q;L()}),t):(n(R,-U,T,I,P),L())}))}catch(L){B()}else B()})(g[v]);0==counter&&l(c);v=0;r()};EditorUi.prototype.addRadiobox=function(c,g,l,n,r,t,v){return this.addCheckbox(c,l,n,r,t,v,!0,g)};EditorUi.prototype.addCheckbox=function(c,g,l,n,r,t,v,B,E){t=null!=t?t:!0;var K=document.createElement("input");K.style.marginRight="8px";K.setAttribute("type",v?"radio":"checkbox");v="geCheckbox-"+Editor.guid();K.id=v;null!=B&&K.setAttribute("name",B);l&&(K.setAttribute("checked","checked"),K.defaultChecked=!0);n&&K.setAttribute("disabled",-"disabled");t&&(E?(r=document.createElement("div"),r.className="geDialogCheckRow",r.appendChild(K),l=document.createElement("label"),mxUtils.write(l,g),l.setAttribute("for",v),r.appendChild(l),c.appendChild(r),K.checkRow=r):(K.style.marginTop="16px",c.appendChild(K),l=document.createElement("label"),mxUtils.write(l,g),l.setAttribute("for",v),c.appendChild(l),r||mxUtils.br(c)));return K};EditorUi.prototype.addAdvancedSection=function(c,g){var l=document.createElement("div");l.className="geCollapsibleTitle";-mxUtils.write(l,mxResources.get(g||"advanced"));var n=document.createElement("div");n.className="geCollapsibleContent geCollapsed";g=document.createElement("div");g.className="geDialogSection";n.appendChild(g);var r=function(t){if(t!==l.classList.contains("geExpanded")&&(l.classList.toggle("geExpanded"),n.classList.toggle("geCollapsed"),t=l.closest(".geDialog"),null!=t)){var v=t.firstElementChild;null!=v&&(t.style.height="",t.style.height=v.scrollHeight+48+"px")}};mxEvent.addListener(l,"click",function(){r(!l.classList.contains("geExpanded"))});-c.appendChild(l);c.appendChild(n);return{content:g,wrapper:n,expand:function(){r(!0)},collapse:function(){r(!1)},isExpanded:function(){return l.classList.contains("geExpanded")}}};EditorUi.prototype.addEditButton=function(c,g){var l=document.createElement("div");l.className="geDialogCheckRow";var n=document.createElement("span");n.className="geDialogFormLabel";n.style.display="flex";n.style.alignItems="center";var r=this.addCheckbox(n,mxResources.get("edit")+":",!0,null,!0);r.style.marginTop="0px";+U,T,I,P),L())}))}catch(L){B()}else B()})(f[v]);0==counter&&l(c);v=0;r()};EditorUi.prototype.addRadiobox=function(c,f,l,n,r,t,v){return this.addCheckbox(c,l,n,r,t,v,!0,f)};EditorUi.prototype.addCheckbox=function(c,f,l,n,r,t,v,B,E){t=null!=t?t:!0;var K=document.createElement("input");K.style.marginRight="8px";K.setAttribute("type",v?"radio":"checkbox");v="geCheckbox-"+Editor.guid();K.id=v;null!=B&&K.setAttribute("name",B);l&&(K.setAttribute("checked","checked"),K.defaultChecked=!0);n&&K.setAttribute("disabled",+"disabled");t&&(E?(r=document.createElement("div"),r.className="geDialogCheckRow",r.appendChild(K),l=document.createElement("label"),mxUtils.write(l,f),l.setAttribute("for",v),r.appendChild(l),c.appendChild(r),K.checkRow=r):(K.style.marginTop="16px",c.appendChild(K),l=document.createElement("label"),mxUtils.write(l,f),l.setAttribute("for",v),c.appendChild(l),r||mxUtils.br(c)));return K};EditorUi.prototype.addAdvancedSection=function(c,f){var l=document.createElement("div");l.className="geCollapsibleTitle";+mxUtils.write(l,mxResources.get(f||"advanced"));var n=document.createElement("div");n.className="geCollapsibleContent geCollapsed";f=document.createElement("div");f.className="geDialogSection";n.appendChild(f);var r=function(t){if(t!==l.classList.contains("geExpanded")&&(l.classList.toggle("geExpanded"),n.classList.toggle("geCollapsed"),t=l.closest(".geDialog"),null!=t)){var v=t.firstElementChild;null!=v&&(t.style.height="",t.style.height=v.scrollHeight+48+"px")}};mxEvent.addListener(l,"click",function(){r(!l.classList.contains("geExpanded"))});+c.appendChild(l);c.appendChild(n);return{content:f,wrapper:n,expand:function(){r(!0)},collapse:function(){r(!1)},isExpanded:function(){return l.classList.contains("geExpanded")}}};EditorUi.prototype.addEditButton=function(c,f){var l=document.createElement("div");l.className="geDialogCheckRow";var n=document.createElement("span");n.className="geDialogFormLabel";n.style.display="flex";n.style.alignItems="center";var r=this.addCheckbox(n,mxResources.get("edit")+":",!0,null,!0);r.style.marginTop="0px";l.appendChild(n);n=this.getCurrentFile();var t="";null!=n&&n.getMode()!=App.MODE_DEVICE&&n.getMode()!=App.MODE_BROWSER&&(t=window.location.href);var v=document.createElement("select");v.style.maxWidth="200px";v.className="geBtn";n=document.createElement("option");n.setAttribute("value","blank");mxUtils.write(n,mxResources.get("makeCopy"));v.appendChild(n);var B=document.createElement("option");B.setAttribute("value","custom");mxUtils.write(B,mxResources.get("custom")+"...");v.appendChild(B);l.appendChild(v);c.appendChild(l);mxEvent.addListener(v,"change",mxUtils.bind(this,function(){if("custom"==v.value){var E=new FilenameDialog(this,t,mxResources.get("ok"),function(K){null!=K?(t=K,B.setAttribute("title",K),v.setAttribute("title",K)):(v.value="blank",B.removeAttribute("title"),v.removeAttribute("title"))},mxResources.get("url"),null,null,null,null,function(){v.value="blank"});this.showDialog(E.container,300,80,!0,!1);E.init()}else v.removeAttribute("title")}));mxEvent.addListener(r,"change",mxUtils.bind(this,-function(){r.checked&&(null==g||g.checked)?v.removeAttribute("disabled"):v.setAttribute("disabled","disabled")}));return{getLink:function(){return r.checked?"blank"===v.value?"_blank":t:null},getEditInput:function(){return r},getEditSelect:function(){return v},getEditRow:function(){return l}}};EditorUi.prototype.addLinkSection=function(c,g){function l(){var E=document.createElement("div");E.style.width="100%";E.style.height="100%";E.style.boxSizing="border-box";null!=v&&v!=mxConstants.NONE?(E.style.border=+function(){r.checked&&(null==f||f.checked)?v.removeAttribute("disabled"):v.setAttribute("disabled","disabled")}));return{getLink:function(){return r.checked?"blank"===v.value?"_blank":t:null},getEditInput:function(){return r},getEditSelect:function(){return v},getEditRow:function(){return l}}};EditorUi.prototype.addLinkSection=function(c,f){function l(){var E=document.createElement("div");E.style.width="100%";E.style.height="100%";E.style.boxSizing="border-box";null!=v&&v!=mxConstants.NONE?(E.style.border="1px solid black",E.style.backgroundColor=v):(E.style.backgroundPosition="center center",E.style.backgroundRepeat="no-repeat",E.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");B.innerText="";B.appendChild(E)}var n=document.createElement("div");n.className="geDialogFormRow";var r=document.createElement("span");r.className="geDialogFormLabel";mxUtils.write(r,mxResources.get("links")+":");n.appendChild(r);var t=document.createElement("select");t.style.width="100px";t.style.padding="0px";-t.style.marginRight="10px";t.className="geBtn";r=document.createElement("option");r.setAttribute("value","auto");mxUtils.write(r,mxResources.get("automatic"));t.appendChild(r);r=document.createElement("option");r.setAttribute("value","blank");mxUtils.write(r,mxResources.get("openInNewWindow"));t.appendChild(r);r=document.createElement("option");r.setAttribute("value","self");mxUtils.write(r,mxResources.get("openInThisWindow"));t.appendChild(r);g&&(g=document.createElement("option"),g.setAttribute("value",-"frame"),mxUtils.write(g,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+")"),t.appendChild(g));n.appendChild(t);g=document.createElement("span");mxUtils.write(g,mxResources.get("borderColor")+":");n.appendChild(g);var v="#0000ff",B=null;B=mxUtils.button("",mxUtils.bind(this,function(E){this.pickColor(v||"none",function(K){v=K;l()});mxEvent.consume(E)}));l();B.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";B.style.marginLeft="4px";B.style.height="22px";B.style.width="22px";-B.style.position="relative";B.style.top="1px";B.className="geColorBtn";n.appendChild(B);c.appendChild(n);return{getColor:function(){return v},getTarget:function(){return t.value},focus:function(){t.focus()}}};EditorUi.prototype.createUrlParameters=function(c,g,l,n,r,t,v,B){t=null!=t?t:[];l&&(t.push("lightbox=1"),"auto"!=c&&t.push("target="+c),null!=g&&g!=mxConstants.NONE&&t.push("highlight="+("#"==g.charAt(0)?g.substring(1):g)),null!=n&&0<n.length&&t.push("edit="+encodeURIComponent(n)),r&&t.push("layers=1"),-v&&t.push("link-icons=1"),B&&t.push("tooltip-icons=1"),this.editor.graph.foldingEnabled&&t.push("nav=1"));return t};EditorUi.prototype.createLink=function(c,g,l,n,r,t,v,B,E,K,C,R,M,O,U){var T=this.getCurrentFile();E=this.createUrlParameters(c,g,n,r,t,E,O,U);c=!0;null!=v?l="#U"+encodeURIComponent(v):B||null==T||""==T.getHash()?l="#R"+encodeURIComponent(l?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(l="#"+T.getHash(),c=!1);+t.style.marginRight="10px";t.className="geBtn";r=document.createElement("option");r.setAttribute("value","auto");mxUtils.write(r,mxResources.get("automatic"));t.appendChild(r);r=document.createElement("option");r.setAttribute("value","blank");mxUtils.write(r,mxResources.get("openInNewWindow"));t.appendChild(r);r=document.createElement("option");r.setAttribute("value","self");mxUtils.write(r,mxResources.get("openInThisWindow"));t.appendChild(r);f&&(f=document.createElement("option"),f.setAttribute("value",+"frame"),mxUtils.write(f,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+")"),t.appendChild(f));n.appendChild(t);f=document.createElement("span");mxUtils.write(f,mxResources.get("borderColor")+":");n.appendChild(f);var v="#0000ff",B=null;B=mxUtils.button("",mxUtils.bind(this,function(E){this.pickColor(v||"none",function(K){v=K;l()});mxEvent.consume(E)}));l();B.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";B.style.marginLeft="4px";B.style.height="22px";B.style.width="22px";+B.style.position="relative";B.style.top="1px";B.className="geColorBtn";n.appendChild(B);c.appendChild(n);return{getColor:function(){return v},getTarget:function(){return t.value},focus:function(){t.focus()}}};EditorUi.prototype.createUrlParameters=function(c,f,l,n,r,t,v,B){t=null!=t?t:[];l&&(t.push("lightbox=1"),"auto"!=c&&t.push("target="+c),null!=f&&f!=mxConstants.NONE&&t.push("highlight="+("#"==f.charAt(0)?f.substring(1):f)),null!=n&&0<n.length&&t.push("edit="+encodeURIComponent(n)),r&&t.push("layers=1"),+v&&t.push("link-icons=1"),B&&t.push("tooltip-icons=1"),this.editor.graph.foldingEnabled&&t.push("nav=1"));return t};EditorUi.prototype.createLink=function(c,f,l,n,r,t,v,B,E,K,C,R,M,O,U){var T=this.getCurrentFile();E=this.createUrlParameters(c,f,n,r,t,E,O,U);c=!0;null!=v?l="#U"+encodeURIComponent(v):B||null==T||""==T.getHash()?l="#R"+encodeURIComponent(l?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(l="#"+T.getHash(),c=!1);c&&null!=T&&null!=T.getTitle()&&T.getTitle()!=this.defaultFilename&&E.push("title="+encodeURIComponent(T.getTitle()));K&&1<l.length&&(E.push("open="+l.substring(1)),l="");K=1==C?this.currentPage:C;null!=K&&"function"===typeof K.getId&&E.push("page-id="+K.getId());R&&E.push("transparent=1");null!=M&&E.push("dark="+M);return(n&&(null!=v||null!=T&&T.getMode()!=App.MODE_GITHUB&&T.getMode()!=App.MODE_GITLAB)?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?-EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<E.length?"?"+E.join("&"):"")+l};EditorUi.prototype.createHtml=function(c,g,l,n,r,t,v,B,E,K,C,R,M,O,U,T){this.getBasenames();var V={};U&&(V["show-link-icons"]=!0);T&&(V["show-tooltip-icons"]=!0);""!=r&&r!=mxConstants.NONE&&(V.highlight=r);"auto"!==n&&(V.target=n);K||(V.lightbox=!1);V.nav=this.editor.graph.foldingEnabled;l=parseInt(l);isNaN(l)||100==l||(V.zoom=l/100);l=[];v&&(l.push("pages"),V.resize=!0,null!=this.pages&&null!=this.currentPage&&-(V.page=mxUtils.indexOf(this.pages,this.currentPage)));g&&(l.push("zoom"),V.resize=!0);B&&l.push("layers");E&&(l.push("tags"),O&&(g=this.getHiddenTagsMap(),null!=g&&(V.hiddenTags=g)));null!=M&&(V["dark-mode"]=M);0<l.length&&(K&&l.push("lightbox"),V.toolbar=l.join(" "));null!=C&&0<C.length&&(V.edit=C);null!=c?V.url=c:V.xml=this.getFileData(!0,null,null,null,null,!v);t='<div class="mxgraph" style="'+(t?"max-width:100%;":"")+(""!=l?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(V))+-'"></div>';c=null!=c?"&fetch="+encodeURIComponent(c):"";R(t,'<script type="text/javascript" src="'+(0<c.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+"/embed2.js?")+c:"1"==urlParams.dev?"https://test.draw.io/js/viewer-static.min.js":window.DRAWIO_VIEWER_URL?window.DRAWIO_VIEWER_URL:EditorUi.lightboxHost+"/js/viewer-static.min.js")+'">\x3c/script>')};EditorUi.prototype.addPagesRow=function(c){var g=document.createElement("select");g.style.maxWidth="260px";-var l=document.createElement("option");mxUtils.write(l,mxResources.get("allPages"));l.setAttribute("value","allPages");g.appendChild(l);l=document.createElement("option");mxUtils.write(l,mxResources.get("currentPage"));l.setAttribute("value","currentPage");g.appendChild(l);l=null;if(null!=this.pages&&1<this.pages.length){l=document.createElement("div");l.className="geDialogFormRow";var n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("pages")+":");l.appendChild(n);-l.appendChild(g);c.appendChild(l)}return{row:l,select:g}};EditorUi.prototype.showHtmlDialog=function(c,g,l,n){var r=document.createElement("div");r.style.whiteSpace="nowrap";var t=document.createElement("h3");mxUtils.write(t,mxResources.get("html"));r.appendChild(t);var v=document.createElement("select");v.className="geBtn";v.style.margin="0 4px 8px 4px";v.style.width="calc(100% - 8px)";v.style.boxSizing="border-box";t=document.createElement("option");mxUtils.write(t,mxResources.get("includeCopyOfMyDiagram"));+EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<E.length?"?"+E.join("&"):"")+l};EditorUi.prototype.createHtml=function(c,f,l,n,r,t,v,B,E,K,C,R,M,O,U,T){this.getBasenames();var V={};U&&(V["show-link-icons"]=!0);T&&(V["show-tooltip-icons"]=!0);""!=r&&r!=mxConstants.NONE&&(V.highlight=r);"auto"!==n&&(V.target=n);K||(V.lightbox=!1);V.nav=this.editor.graph.foldingEnabled;l=parseInt(l);isNaN(l)||100==l||(V.zoom=l/100);l=[];v&&(l.push("pages"),V.resize=!0,null!=this.pages&&null!=this.currentPage&&+(V.page=mxUtils.indexOf(this.pages,this.currentPage)));f&&(l.push("zoom"),V.resize=!0);B&&l.push("layers");E&&(l.push("tags"),O&&(f=this.getHiddenTagsMap(),null!=f&&(V.hiddenTags=f)));null!=M&&(V["dark-mode"]=M);0<l.length&&(K&&l.push("lightbox"),V.toolbar=l.join(" "));null!=C&&0<C.length&&(V.edit=C);null!=c?V.url=c:V.xml=this.getFileData(!0,null,null,null,null,!v);t='<div class="mxgraph" style="'+(t?"max-width:100%;":"")+(""!=l?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(V))++'"></div>';c=null!=c?"&fetch="+encodeURIComponent(c):"";R(t,'<script type="text/javascript" src="'+(0<c.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+"/embed2.js?")+c:"1"==urlParams.dev?"https://test.draw.io/js/viewer-static.min.js":window.DRAWIO_VIEWER_URL?window.DRAWIO_VIEWER_URL:EditorUi.lightboxHost+"/js/viewer-static.min.js")+'">\x3c/script>')};EditorUi.prototype.addPagesRow=function(c){var f=document.createElement("select");f.style.maxWidth="260px";+var l=document.createElement("option");mxUtils.write(l,mxResources.get("allPages"));l.setAttribute("value","allPages");f.appendChild(l);l=document.createElement("option");mxUtils.write(l,mxResources.get("currentPage"));l.setAttribute("value","currentPage");f.appendChild(l);l=null;if(null!=this.pages&&1<this.pages.length){l=document.createElement("div");l.className="geDialogFormRow";var n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("pages")+":");l.appendChild(n);+l.appendChild(f);c.appendChild(l)}return{row:l,select:f}};EditorUi.prototype.showHtmlDialog=function(c,f,l,n){var r=document.createElement("div");r.style.whiteSpace="nowrap";var t=document.createElement("h3");mxUtils.write(t,mxResources.get("html"));r.appendChild(t);var v=document.createElement("select");v.className="geBtn";v.style.margin="0 4px 8px 4px";v.style.width="calc(100% - 8px)";v.style.boxSizing="border-box";t=document.createElement("option");mxUtils.write(t,mxResources.get("includeCopyOfMyDiagram"));t.setAttribute("value","copy");v.appendChild(t);t=document.createElement("option");t.setAttribute("value","url");v.appendChild(t);null!=l?(mxUtils.write(t,mxResources.get("publicDiagramUrl")),t.setAttribute("title",l)):(mxUtils.write(t,mxResources.get("publicDiagramUrl")+" ("+mxResources.get("diagramIsNotPublic")+")"),t.setAttribute("disabled","disabled"));r.appendChild(v);mxUtils.br(r);var B=this.getCurrentFile();if(null==l&&null!=B&&B.constructor==window.DriveFile){t=document.createElement("div");t.style.marginBottom="8px";var E=document.createElement("a");E.style.color="gray";E.style.cursor="pointer";mxUtils.write(E,mxResources.get("share"));t.appendChild(E);mxEvent.addListener(E,"click",mxUtils.bind(this,function(){this.hideDialog();this.drive.showPermissions(B.getId(),B)}));r.appendChild(t)}t=document.createElement("div");t.className="geDialogSection";var K=this.addLinkSection(t),C=this.addPagesRow(t);E=document.createElement("div");E.className="geDialogCheckRow";var R=document.createElement("input");R.setAttribute("type","checkbox");R.setAttribute("checked","checked");R.defaultChecked=!0;R.style.marginRight="8px";E.appendChild(R);var M=document.createElement("label");mxUtils.write(M,mxResources.get("zoom")+":");E.appendChild(M);var O=document.createElement("input");O.setAttribute("type","text");O.style.width="60px";O.style.marginLeft="4px";O.value="100%";E.appendChild(O);t.appendChild(E);var U=this.addCheckbox(t,mxResources.get("fit"),!0,null,null,null,null,null,!0),T=this.addCheckbox(t,mxResources.get("lightbox"),@@ -14248,22 +14335,22 @@ R.setAttribute("type","checkbox");R.setAttribute("checked","checked");R.defaultCE.setAttribute("selected","selected");V.appendChild(E);E=document.createElement("div");E.className="geDialogFormRow";M=document.createElement("span");M.className="geDialogFormLabel";mxUtils.write(M,mxResources.get("appearance")+":");E.appendChild(M);E.appendChild(V);t.appendChild(E);var fa=null;if(EditorUi.enableHtmlEditOption){fa=this.addEditButton(t,T);var y=fa.getEditInput();mxEvent.addListener(T,"change",function(){T.checked?y.removeAttribute("disabled"):y.setAttribute("disabled","disabled");y.checked&&T.checked?fa.getEditSelect().removeAttribute("disabled"):fa.getEditSelect().setAttribute("disabled","disabled")})}var d=this.addCheckbox(t,mxResources.get("layers"),!0,null,null,null,null,null,!0),p=this.addCheckbox(t,mxResources.get("tags"),!0,null,null,null,null,null,!0),A=this.addCheckbox(t,mxResources.get("useCurrentSettings"),!0,null,null,null,null,null,!0);A.checkRow.style.paddingLeft="24px";var G=this.addCheckbox(t,mxResources.get("linkIcons"),!1,null,null,null,null,null,!0),I=this.addCheckbox(t,mxResources.get("tooltipIcons"),!1,null,null,null,null,null,!0);mxEvent.addListener(p,"change",function(){p.checked?A.removeAttribute("disabled"):A.setAttribute("disabled","disabled")});mxEvent.addListener(T,"change",function(){T.checked?(G.removeAttribute("disabled"),I.removeAttribute("disabled")):(G.setAttribute("disabled","disabled"),I.setAttribute("disabled","disabled"))});c=new CustomDialog(this,r,mxUtils.bind(this,function(){n("url"==v.value?l:null,R.checked,O.value,K.getTarget(),K.getColor(),-U.checked,null!=C.row&&"allPages"==C.select.value,d.checked,p.checked,T.checked,null!=fa?fa.getLink():null,null!=V?V.value:null,p.checked&&A.checked,G.checked,I.checked)}),null,c,g);this.showDialog(c.container,360,null,!0,!0);v.focus()};EditorUi.prototype.showPublishLinkDialog=function(c,g,l,n,r,t,v,B,E,K,C,R){var M=document.createElement("div");M.style.whiteSpace="nowrap";var O=document.createElement("h3");mxUtils.write(O,c||mxResources.get("publish"));M.appendChild(O);var U=document.createElement("select");+U.checked,null!=C.row&&"allPages"==C.select.value,d.checked,p.checked,T.checked,null!=fa?fa.getLink():null,null!=V?V.value:null,p.checked&&A.checked,G.checked,I.checked)}),null,c,f);this.showDialog(c.container,360,null,!0,!0);v.focus()};EditorUi.prototype.showPublishLinkDialog=function(c,f,l,n,r,t,v,B,E,K,C,R){var M=document.createElement("div");M.style.whiteSpace="nowrap";var O=document.createElement("h3");mxUtils.write(O,c||mxResources.get("publish"));M.appendChild(O);var U=document.createElement("select");U.className="geBtn";U.style.margin="0 4px 8px 4px";U.style.width="calc(100% - 8px)";U.style.boxSizing="border-box";r=null!=r?r:"https://www.drawio.com/docs/manual/export/publish-link/";c=document.createElement("option");mxUtils.write(c,mxResources.get("includeCopyOfMyDiagram"));c.setAttribute("value","copy");U.appendChild(c);c=document.createElement("option");mxUtils.write(c,mxResources.get("authorizationRequired"));c.setAttribute("value","auth");U.appendChild(c);null==B||""==B.getHash()||B.getMode()==App.MODE_DEVICE||B.getMode()==App.MODE_BROWSER?c.setAttribute("disabled","disabled"):U.value="auth";B=document.createElement("option");B.setAttribute("value","public");U.appendChild(B);null!=v?(mxUtils.write(B,mxResources.get("publicDiagramUrl")),B.setAttribute("title",v),U.value="public"):(mxUtils.write(B,mxResources.get("publicDiagramUrl")+" ("+mxResources.get("diagramIsNotPublic")+")"),B.setAttribute("disabled","disabled"));M.appendChild(U);mxUtils.br(M);v=document.createElement("div");v.className=-"geDialogSection";var T=null,V=null;if(null!=g||null!=l)g=document.createElement("div"),g.className="geDialogInlineFields",B=document.createElement("div"),B.className="geDialogInlineField",c=document.createElement("label"),mxUtils.write(c,mxResources.get("width")+":"),B.appendChild(c),T=document.createElement("input"),T.setAttribute("type","text"),T.value="100%",B.appendChild(T),g.appendChild(B),B=document.createElement("div"),B.className="geDialogInlineField",c=document.createElement("label"),mxUtils.write(c,-mxResources.get("height")+":"),B.appendChild(c),V=document.createElement("input"),V.setAttribute("type","text"),V.value=l+"px",B.appendChild(V),g.appendChild(B),v.appendChild(g);var fa=this.addLinkSection(v,n),y=K?this.addCheckbox(v,mxResources.get("transparentBackground"),!1,null,null,null,null,null,!0):null,d=this.addPagesRow(v),p=d.select;null==d.row||R||(l=function(){d.row.style.display="copy"==U.value?"":"none"},mxEvent.addListener(U,"change",l),l());var A=null;if(null!=this.pages&&1<this.pages.length){l=+"geDialogSection";var T=null,V=null;if(null!=f||null!=l)f=document.createElement("div"),f.className="geDialogInlineFields",B=document.createElement("div"),B.className="geDialogInlineField",c=document.createElement("label"),mxUtils.write(c,mxResources.get("width")+":"),B.appendChild(c),T=document.createElement("input"),T.setAttribute("type","text"),T.value="100%",B.appendChild(T),f.appendChild(B),B=document.createElement("div"),B.className="geDialogInlineField",c=document.createElement("label"),mxUtils.write(c,+mxResources.get("height")+":"),B.appendChild(c),V=document.createElement("input"),V.setAttribute("type","text"),V.value=l+"px",B.appendChild(V),f.appendChild(B),v.appendChild(f);var fa=this.addLinkSection(v,n),y=K?this.addCheckbox(v,mxResources.get("transparentBackground"),!1,null,null,null,null,null,!0):null,d=this.addPagesRow(v),p=d.select;null==d.row||R||(l=function(){d.row.style.display="copy"==U.value?"":"none"},mxEvent.addListener(U,"change",l),l());var A=null;if(null!=this.pages&&1<this.pages.length){l=document.createElement("div");l.className="geDialogFormRow";K=document.createElement("span");K.className="geDialogFormLabel";mxUtils.write(K,mxResources.get("initialPage",null,"Initial Page")+":");l.appendChild(K);A=document.createElement("select");A.style.maxWidth="260px";for(K=0;K<this.pages.length;K++)R=document.createElement("option"),mxUtils.write(R,this.pages[K].getName()),R.setAttribute("value",K),this.pages[K]==this.currentPage&&R.setAttribute("selected","selected"),A.appendChild(R);l.appendChild(A);v.appendChild(l);l=function(){"none"!=d.row.style.display&&"currentPage"==p.value?A.setAttribute("disabled","disabled"):A.removeAttribute("disabled")};mxEvent.addListener(p,"change",l);mxEvent.addListener(U,"change",l);l()}var G=this.addCheckbox(v,mxResources.get("lightbox"),!0,null,null,!n,null,null,!0);n&&null!=G.checkRow&&(G.checkRow.style.display="none");M.appendChild(v);n=this.addAdvancedSection(M).content;var I=document.createElement("select");I.style.maxWidth="260px";l=document.createElement("option");l.setAttribute("value","0");mxUtils.write(l,mxResources.get("light"));I.appendChild(l);l=document.createElement("option");l.setAttribute("value","1");mxUtils.write(l,mxResources.get("dark"));I.appendChild(l);l=document.createElement("option");l.setAttribute("value","auto");mxUtils.write(l,mxResources.get("automatic"));l.setAttribute("selected","selected");I.appendChild(l);C&&(C=document.createElement("div"),C.className="geDialogFormRow",l=document.createElement("span"),l.className="geDialogFormLabel",mxUtils.write(l,mxResources.get("appearance")+":"),C.appendChild(l),C.appendChild(I),n.appendChild(C));var L=this.addEditButton(n,G),P=L.getEditInput(),Q=this.addCheckbox(n,mxResources.get("layers"),!0,null,null,null,null,null,!0),ba=this.addCheckbox(n,mxResources.get("tags"),!0,null,null,null,null,null,!0),W=this.addCheckbox(n,mxResources.get("useCurrentSettings"),!0,null,null,null,null,null,!0);W.checkRow.style.paddingLeft="24px";var Y=this.addCheckbox(n,mxResources.get("linkIcons"),!1,null,null,null,null,null,!0),X=this.addCheckbox(n,mxResources.get("tooltipIcons"),!1,null,null,null,null,null,!0);mxEvent.addListener(ba,"change",function(){ba.checked?W.removeAttribute("disabled"):W.setAttribute("disabled","disabled")});mxEvent.addListener(G,"change",function(){G.checked?(Q.removeAttribute("disabled"),P.removeAttribute("disabled"),ba.removeAttribute("disabled"),Y.removeAttribute("disabled"),X.removeAttribute("disabled"),ba.checked&&W.removeAttribute("disabled")):(Q.setAttribute("disabled","disabled"),P.setAttribute("disabled","disabled"),ba.setAttribute("disabled","disabled"),W.setAttribute("disabled","disabled"),Y.setAttribute("disabled","disabled"),X.setAttribute("disabled","disabled"));P.checked&&G.checked?L.getEditSelect().removeAttribute("disabled"):L.getEditSelect().setAttribute("disabled","disabled")});r=new CustomDialog(this,M,mxUtils.bind(this,function(){E(fa.getTarget(),fa.getColor(),null==A||0>=A.selectedIndex||null!=A.getAttribute("disabled")?null:this.pages[A.selectedIndex],-G.checked,L.getLink(),Q.checked,null!=T?T.value:null,null!=V?V.value:null,ba.checked,U.value,null!=y?y.checked:!1,I.value,"allPages"==p.value,ba.checked&&W.checked,Y.checked,X.checked)}),null,mxResources.get("create"),r,t);this.showDialog(r.container,360,null,!0,!0);null!=T?(T.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?T.select():document.execCommand("selectAll",!1,null)):U.focus()};EditorUi.prototype.showRemoteExportDialog=function(c,g,l,n,r){var t=document.createElement("div");+G.checked,L.getLink(),Q.checked,null!=T?T.value:null,null!=V?V.value:null,ba.checked,U.value,null!=y?y.checked:!1,I.value,"allPages"==p.value,ba.checked&&W.checked,Y.checked,X.checked)}),null,mxResources.get("create"),r,t);this.showDialog(r.container,360,null,!0,!0);null!=T?(T.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?T.select():document.execCommand("selectAll",!1,null)):U.focus()};EditorUi.prototype.showRemoteExportDialog=function(c,f,l,n,r){var t=document.createElement("div");t.style.whiteSpace="nowrap";var v=document.createElement("h3");mxUtils.write(v,mxResources.get("image"));t.appendChild(v);if(r){v=document.createElement("div");v.className="geDialogSection";var B=document.createElement("div");B.className="geDialogFormRow";var E=document.createElement("span");E.className="geDialogFormLabel";mxUtils.write(E,mxResources.get("zoom")+":");B.appendChild(E);var K=document.createElement("input");K.setAttribute("type","text");K.value=this.lastExportZoom||"100%";B.appendChild(K);v.appendChild(B);B=document.createElement("div");B.className="geDialogFormRow";E=document.createElement("span");E.className="geDialogFormLabel";mxUtils.write(E,mxResources.get("borderWidth")+":");B.appendChild(E);var C=document.createElement("input");C.setAttribute("type","text");C.value=this.lastExportBorder||"0";B.appendChild(C);v.appendChild(B);t.appendChild(v)}v=document.createElement("div");v.className="geDialogSection";var R=this.addCheckbox(v,mxResources.get("selectionOnly"),this.lastExportSelectionOnly&&!this.editor.graph.isSelectionEmpty(),this.editor.graph.isSelectionEmpty(),null,null,null,null,!0),M=n?null:this.addCheckbox(v,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram,null,null,null,null,null,!0);B=this.editor.graph;var O=B.background==mxConstants.NONE||null==B.background,U=n?null:this.addCheckbox(v,mxResources.get("transparentBackground"),null!=this.lastExportTransparent?this.lastExportTransparent:O,null,null,null,null,null,!0);t.appendChild(v);c=new CustomDialog(this,-t,mxUtils.bind(this,function(){this.lastExportSelectionOnly=R.checked;r&&(this.lastExportZoom=K.value,this.lastExportBorder=C.value);null!=U&&(this.lastExportTransparent=U.checked==O?null:U.checked);var T=parseInt(K.value)/100||1,V=parseInt(C.value)||0;l(!R.checked,null!=M?M.checked:!1,null!=U?U.checked:!1,T,V)}),null,c,g);this.showDialog(c.container,340,null,!0,!0)};EditorUi.prototype.showExportDialog=function(c,g,l,n,r,t,v,B,E){function K(){return Math.max(0,parseFloat(T.value)||100)/100}function C(){var Ba=+t,mxUtils.bind(this,function(){this.lastExportSelectionOnly=R.checked;r&&(this.lastExportZoom=K.value,this.lastExportBorder=C.value);null!=U&&(this.lastExportTransparent=U.checked==O?null:U.checked);var T=parseInt(K.value)/100||1,V=parseInt(C.value)||0;l(!R.checked,null!=M?M.checked:!1,null!=U?U.checked:!1,T,V)}),null,c,f);this.showDialog(c.container,340,null,!0,!0)};EditorUi.prototype.showExportDialog=function(c,f,l,n,r,t,v,B,E){function K(){return Math.max(0,parseFloat(T.value)||100)/100}function C(){var Ba=K();da.value=Math.floor(ca*Ba);N.value=Math.floor(S*Ba)}v=null!=v?v:Editor.defaultIncludeDiagram;var R=document.createElement("div");R.style.whiteSpace="nowrap";var M=this.editor.graph,O=document.createElement("h3");mxUtils.write(O,c);R.appendChild(O);c=document.createElement("div");c.className="geDialogSection";O=document.createElement("div");O.className="geDialogFormRow";var U=document.createElement("span");U.className="geDialogFormLabel";mxUtils.write(U,mxResources.get("zoom")+":");O.appendChild(U);var T=document.createElement("input");T.setAttribute("type","text");T.value=this.lastExportZoom||"100%";O.appendChild(T);c.appendChild(O);R.appendChild(c);c=document.createElement("div");c.className="geDialogSection";var V=this.addCheckbox(c,mxResources.get("selectionOnly"),this.lastExportSelectionOnly&&!M.isSelectionEmpty(),M.isSelectionEmpty(),null,null,null,null,!0),fa=document.createElement("input");fa.setAttribute("disabled","disabled");fa.setAttribute("type","checkbox");var y=document.createElement("select");y.style.marginLeft="8px";var d=["selectionOnly","diagram","page"];O={};for(U=0;U<d.length;U++)if(!M.isSelectionEmpty()||"selectionOnly"!=d[U]){var p=document.createElement("option");mxUtils.write(p,mxResources.get(d[U]));p.setAttribute("value",d[U]);y.appendChild(p);O[d[U]]=p}E?(U=document.createElement("div"),U.className="geDialogFormRow",t=document.createElement("span"),t.className="geDialogFormLabel",mxUtils.write(t,mxResources.get("size")+":"),U.appendChild(t),y.style.marginLeft="0",U.appendChild(y),@@ -14281,335 +14368,336 @@ O.setAttribute("value",c[U]),mxUtils.write(O,c[U]+"dpi"),aa.appendChild(O);c=doc"red":(ea.style.backgroundColor="",Z||(T.value=Ba+"%",C()))})}c=document.createElement("div");c.className="geDialogFormRow";O=document.createElement("span");O.className="geDialogFormLabel";mxUtils.write(O,mxResources.get("borderWidth")+":");c.appendChild(O);var la=document.createElement("input");la.setAttribute("type","text");la.value=this.lastExportBorder||"0";c.appendChild(la);v.appendChild(c);var ra=document.createElement("select");ra.style.maxWidth="260px";c=document.createElement("option");c.setAttribute("value","light");mxUtils.write(c,mxResources.get("light"));ra.appendChild(c);c=document.createElement("option");c.setAttribute("value","dark");mxUtils.write(c,mxResources.get("dark"));ra.appendChild(c);var qa=Editor.isDarkMode()?"dark":"light";"svg"==B&&mxUtils.lightDarkColorSupported&&(c=document.createElement("option"),c.setAttribute("value","auto"),mxUtils.write(c,mxResources.get("automatic")),ra.appendChild(c),qa="auto");ra.value=null!=this.lastExportTheme?this.lastExportTheme:qa;0>ra.selectedIndex&&(ra.value=qa);c=document.createElement("div");c.className="geDialogFormRow";O=document.createElement("span");O.className="geDialogFormLabel";mxUtils.write(O,mxResources.get("appearance")+":");c.appendChild(O);c.appendChild(ra);v.appendChild(c);"svg"==B&&(c=document.createElement("div"),c.className="geDialogFormRow",O=document.createElement("span"),O.className="geDialogFormLabel",mxUtils.write(O,mxResources.get("links")+":"),c.appendChild(O),c.appendChild(X),v.appendChild(c),v.appendChild(t));var na=-1==M.shadowVisible,xa=this.addCheckbox(v,mxResources.get("shadow"),null!=this.lastExportShadow?this.lastExportShadow:na,null,null,null,null,null,!0),wa=null,za="svg"!=B&&(this.isOffline()||!Editor.canvasSupported);if("png"==B||"jpeg"==B||"webp"==B||"svg"==B)wa=this.addCheckbox(v,mxResources.get("grid"),za||null==this.lastExportGrid?!1:this.lastExportGrid,za,!1,!0,null,null,!0);g&&(Q.checked=null!=this.lastEmbedImages?this.lastEmbedImages:!0,t=document.createElement("div"),t.className="geDialogCheckRow",+1==M.shadowVisible,xa=this.addCheckbox(v,mxResources.get("shadow"),null!=this.lastExportShadow?this.lastExportShadow:na,null,null,null,null,null,!0),wa=null,za="svg"!=B&&(this.isOffline()||!Editor.canvasSupported);if("png"==B||"jpeg"==B||"webp"==B||"svg"==B)wa=this.addCheckbox(v,mxResources.get("grid"),za||null==this.lastExportGrid?!1:this.lastExportGrid,za,!1,!0,null,null,!0);f&&(Q.checked=null!=this.lastEmbedImages?this.lastEmbedImages:!0,t=document.createElement("div"),t.className="geDialogCheckRow",t.appendChild(Q),M=document.createElement("label"),mxUtils.write(M,mxResources.get("embedImages")),M.setAttribute("for",Q.id),t.appendChild(M),v.appendChild(t),ba.checked=null!=this.lastEmbedFonts?this.lastEmbedFonts:Editor.embedSvgFonts,t=document.createElement("div"),t.className="geDialogCheckRow",t.appendChild(ba),M=document.createElement("label"),mxUtils.write(M,mxResources.get("embedFonts")),M.setAttribute("for",ba.id),t.appendChild(M),v.appendChild(t),W.checked=null!=this.lastEmbedCellMetadata?this.lastEmbedCellMetadata:!1,t=document.createElement("div"),t.className="geDialogCheckRow",t.appendChild(W),M=document.createElement("label"),mxUtils.write(M,mxResources.get("embedCellMetadata")),M.setAttribute("for",W.id),t.appendChild(M),v.appendChild(t),Y.checked=null!=this.lastEmbedIcons?this.lastEmbedIcons:!1,t=document.createElement("div"),t.className="geDialogCheckRow",t.appendChild(Y),M=document.createElement("label"),mxUtils.write(M,mxResources.get("icons")),M.setAttribute("for",Y.id),t.appendChild(M),v.appendChild(t));l=new CustomDialog(this,R,mxUtils.bind(this,function(){this.lastExportSelectionOnly=V.checked;this.lastExportBorder=la.value;this.lastExportZoom=T.value;G&&(this.lastExportTransparent=0==I.checked?null:I.checked);this.lastExportTheme=ra.value==qa?null:ra.value;this.lastExportShadow=xa.checked==na?null:xa.checked;null==wa||za||(this.lastExportGrid=wa.checked?!0:null);"svg"==B&&(this.lastExportLinkTarget="auto"==X.value?null:X.value);if("png"==B){var Ba=parseInt(ea.value);-this.lastExportDpi=!isNaN(Ba)&&0<Ba&&100!=Ba?Ba:null}E&&(this.lastExportType=y.value==A?null:y.value);g&&(this.lastEmbedImages=Q.checked,this.lastEmbedFonts=ba.checked,this.lastEmbedCellMetadata=W.checked,this.lastEmbedIcons=Y.checked);if("png"==B||"svg"==B)this.lastEmbedInclude=P.value;null!=r&&r(T.value,I.checked,!V.checked,xa.checked,L.checked,Q.checked&&g,la.value,fa.checked,("png"==B||"svg"==B)&&"currentPage"==P.value,X.value,null!=wa?wa.checked:null,null!=ra?ra.value:null,y.value,ba.checked,-W.checked&&g,"png"==B&&0<parseInt(ea.value)&&100!=parseInt(ea.value)?parseInt(ea.value):null,Y.checked&&g)}),null,l,n);this.showDialog(l.container,360,null,!0,!0,null,null,null,null,!0);T.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?T.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(c,g,l,n,r,t,v){var B=document.createElement("div"),E=this.editor.graph;if(null!=g){var K=document.createElement("h3");mxUtils.write(K,g);B.appendChild(K)}g=-document.createElement("div");g.className="geDialogSection";var C=v?this.addPagesRow(g):null,R=this.addCheckbox(g,mxResources.get("fit"),!0,null,null,null,null,null,!0),M=this.addCheckbox(g,mxResources.get("shadow"),E.shadowVisible&&n,!n,null,null,null,null,!0),O=this.addCheckbox(g,l,!1,null,null,null,null,null,!0),U=this.addCheckbox(g,mxResources.get("lightbox"),!0,null,null,null,null,null,!0);B.appendChild(g);l=this.addAdvancedSection(B).content;var T=null;t&&(T=document.createElement("select"),+this.lastExportDpi=!isNaN(Ba)&&0<Ba&&100!=Ba?Ba:null}E&&(this.lastExportType=y.value==A?null:y.value);f&&(this.lastEmbedImages=Q.checked,this.lastEmbedFonts=ba.checked,this.lastEmbedCellMetadata=W.checked,this.lastEmbedIcons=Y.checked);if("png"==B||"svg"==B)this.lastEmbedInclude=P.value;null!=r&&r(T.value,I.checked,!V.checked,xa.checked,L.checked,Q.checked&&f,la.value,fa.checked,("png"==B||"svg"==B)&&"currentPage"==P.value,X.value,null!=wa?wa.checked:null,null!=ra?ra.value:null,y.value,ba.checked,+W.checked&&f,"png"==B&&0<parseInt(ea.value)&&100!=parseInt(ea.value)?parseInt(ea.value):null,Y.checked&&f)}),null,l,n);this.showDialog(l.container,360,null,!0,!0,null,null,null,null,!0);T.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?T.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(c,f,l,n,r,t,v){var B=document.createElement("div"),E=this.editor.graph;if(null!=f){var K=document.createElement("h3");mxUtils.write(K,f);B.appendChild(K)}f=+document.createElement("div");f.className="geDialogSection";var C=v?this.addPagesRow(f):null,R=this.addCheckbox(f,mxResources.get("fit"),!0,null,null,null,null,null,!0),M=this.addCheckbox(f,mxResources.get("shadow"),E.shadowVisible&&n,!n,null,null,null,null,!0),O=this.addCheckbox(f,l,!1,null,null,null,null,null,!0),U=this.addCheckbox(f,mxResources.get("lightbox"),!0,null,null,null,null,null,!0);B.appendChild(f);l=this.addAdvancedSection(B).content;var T=null;t&&(T=document.createElement("select"),T.style.maxWidth="260px",t=document.createElement("option"),t.setAttribute("value","light"),mxUtils.write(t,mxResources.get("light")),T.appendChild(t),t=document.createElement("option"),t.setAttribute("value","dark"),mxUtils.write(t,mxResources.get("dark")),T.appendChild(t),mxUtils.lightDarkColorSupported?(t=document.createElement("option"),t.setAttribute("value","auto"),mxUtils.write(t,mxResources.get("automatic")),T.appendChild(t),T.value="auto"):T.value=Editor.isDarkMode()?"dark":"light",t=document.createElement("div"),t.className="geDialogFormRow",n=document.createElement("span"),n.className="geDialogFormLabel",mxUtils.write(n,mxResources.get("appearance")+":"),t.appendChild(n),t.appendChild(T),l.appendChild(t));var V=this.addEditButton(l,U),fa=V.getEditInput(),y=1<E.model.getChildCount(E.model.getRoot()),d=this.addCheckbox(l,mxResources.get("layers"),y,!y,null,null,null,null,!0),p=this.addCheckbox(l,mxResources.get("linkIcons"),!1,null,null,null,null,null,!0),A=this.addCheckbox(l,mxResources.get("tooltipIcons"),!1,null,null,null,null,null,!0);mxEvent.addListener(U,"change",function(){U.checked?(y&&d.removeAttribute("disabled"),null!=C&&C.select.removeAttribute("disabled"),fa.removeAttribute("disabled"),p.removeAttribute("disabled"),A.removeAttribute("disabled")):(null!=C&&C.select.setAttribute("disabled","disabled"),d.setAttribute("disabled","disabled"),fa.setAttribute("disabled","disabled"),p.setAttribute("disabled","disabled"),A.setAttribute("disabled","disabled"));fa.checked&&U.checked?V.getEditSelect().removeAttribute("disabled"):-V.getEditSelect().setAttribute("disabled","disabled")});r=new CustomDialog(this,B,mxUtils.bind(this,function(){c(R.checked,M.checked,O.checked,U.checked,V.getLink(),d.checked,p.checked,A.checked,null!=T?T.value:null,null!=C?null!=C.row&&"allPages"==C.select.value:null)}),null,mxResources.get("embed"),r);this.showDialog(r.container,280,null,!0,!0)};EditorUi.prototype.createEmbedImage=function(c,g,l,n,r,t,v,B,E,K){function C(T){var V=" ",fa="";n&&(V=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"++V.getEditSelect().setAttribute("disabled","disabled")});r=new CustomDialog(this,B,mxUtils.bind(this,function(){c(R.checked,M.checked,O.checked,U.checked,V.getLink(),d.checked,p.checked,A.checked,null!=T?T.value:null,null!=C?null!=C.row&&"allPages"==C.select.value:null)}),null,mxResources.get("embed"),r);this.showDialog(r.container,280,null,!0,!0)};EditorUi.prototype.createEmbedImage=function(c,f,l,n,r,t,v,B,E,K){function C(T){var V=" ",fa="";n&&(V=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(null!=M?"&page="+M:"")+(r?"&edit=_blank":"")+(t?"&layers=1":"")+(v?"&link-icons=1":"")+(B?"&tooltip-icons=1":"")+"');}})(this);\"",fa+="cursor:pointer;");c&&(fa+="max-width:100%;");var y="";l&&(y=' width="'+Math.round(R.width)+'" height="'+Math.round(R.height)+'"');E('<img src="'+T+'"'+y+(""!=fa?' style="'+fa+'"':"")+V+"/>")}var R=this.editor.graph.getGraphBounds(),M=this.getSelectedPageIndex();if(this.editor.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,-function(T){var V=n?this.getFileData(!0):null;T=this.createImageDataUri(T,V,"png");C(T)}),null,null,null,mxUtils.bind(this,function(T){K({message:mxResources.get("unknownError")})}),null,!0,l?2:1,null,g,null,null,Editor.defaultBorder);else if(g=this.getFileData(!0),R.width*R.height<=MAX_AREA&&g.length<=MAX_REQUEST_SIZE){var O="";l&&(O="&w="+Math.round(2*R.width)+"&h="+Math.round(2*R.height));var U=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(n?"1":"0")+O+"&xml="+encodeURIComponent(g));-U.send(mxUtils.bind(this,function(){200<=U.getStatus()&&299>=U.getStatus()?C("data:image/png;base64,"+U.getText()):K({message:mxResources.get("unknownError")})}))}else K({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(c,g,l,n,r,t,v,B,E,K,C){E=null!=E?E:"auto";K=null!=K?K:!0;var R=this.getSelectedPageIndex(),M=mxUtils.lightDarkColorSupported,O=mxUtils.preferDarkColor;if("light"==E||"dark"==E)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor="dark"==-E;var U=null;try{U=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!l,E)}finally{mxUtils.lightDarkColorSupported=M,mxUtils.preferDarkColor=O}E=U.getElementsByTagName("a");if(null!=E)for(M=0;M<E.length;M++)O=E[M].getAttribute("href"),null!=O&&"#"==O.charAt(0)&&"_blank"==E[M].getAttribute("target")&&E[M].removeAttribute("target");n&&U.setAttribute("content",this.getFileData(!0,null,null,null,null,!K));g&&this.editor.graph.addSvgShadow(U);if(l){var T=" ",V="";n&&(T="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+-EditorUi.lightboxHost+"/?client=1"+(K&&null!=R?"&page="+R:"")+(r?"&edit=_blank":"")+(t?"&layers=1":"")+(v?"&link-icons=1":"")+(B?"&tooltip-icons=1":"")+"');}})(this);\"",V+="cursor:pointer;");c&&(V+="max-width:100%;");this.editor.convertImages(U,mxUtils.bind(this,function(fa){C('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(fa))+'"'+(""!=V?' style="'+V+'"':"")+T+"/>")}))}else V="",n&&(U.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('"+-EditorUi.lightboxHost+"/?client=1"+(K&&null!=R?"&page="+R:"")+(r?"&edit=_blank":"")+(t?"&layers=1":"")+(v?"&link-icons=1":"")+(B?"&tooltip-icons=1":"")+"');}}})(this);"),V+="cursor:pointer;"),c&&(c=parseInt(U.getAttribute("width")),g=parseInt(U.getAttribute("height")),U.setAttribute("viewBox","-0.5 -0.5 "+c+" "+g),V+="max-width:100%;max-height:"+g+"px;",U.removeAttribute("height")),""!=V&&(c=U.getAttribute("style"),U.setAttribute("style",(null!=c&&0<c.length?c+" ":"")+V)),this.editor.addFontCss(U),-this.editor.graph.mathEnabled&&this.editor.addMathCss(U),C(mxUtils.getXml(U))};EditorUi.prototype.timeSince=function(c){c=Math.floor((new Date-c)/1E3);var g=Math.floor(c/31536E3);if(1<g)return g+" "+mxResources.get("years");g=Math.floor(c/2592E3);if(1<g)return g+" "+mxResources.get("months");g=Math.floor(c/86400);if(1<g)return g+" "+mxResources.get("days");g=Math.floor(c/3600);if(1<g)return g+" "+mxResources.get("hours");g=Math.floor(c/60);return 1<g?g+" "+mxResources.get("minutes"):1==g?g+" "+mxResources.get("minute"):-null};EditorUi.prototype.decodeNodeIntoGraph=function(c,g){if(null!=c){var l=null;if("diagram"==c.nodeName)l=c;else if("mxfile"==c.nodeName){var n=c.getElementsByTagName("diagram");if(0<n.length){l=n[0];var r=g.getGlobalVariable;g.getGlobalVariable=function(t){return"page"==t?l.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==t?1:r.apply(this,arguments)}}}null!=l&&(c=Editor.parseDiagramNode(l))}n=this.editor.graph;try{this.editor.graph=g,this.editor.setGraphXml(c)}catch(t){}finally{this.editor.graph=-n}return c};EditorUi.prototype.getSvgFileProperties=function(c){var g=this.getPngFileProperties(c);g.embedFonts=null!=c&&c.hasAttribute("embedFonts")?"false"!=c.getAttribute("embedFonts"):Editor.embedSvgFonts;return g};EditorUi.prototype.getPngFileProperties=function(c){var g=1,l=0;if(null!=c){if(c.hasAttribute("scale")){var n=parseFloat(c.getAttribute("scale"));!isNaN(n)&&0<n&&(g=n)}c.hasAttribute("border")&&(n=parseInt(c.getAttribute("border")),!isNaN(n)&&0<n&&(l=n))}return{scale:g,border:l}};EditorUi.prototype.getPdfFileProperties=-function(c){return{notes:null!=c&&"true"==c.getAttribute("notes")}};EditorUi.prototype.getEmbeddedPng=function(c,g,l,n,r){try{var t=this.editor.graph,v=null;if(null!=l&&0<l.length)t=this.createTemporaryGraph(t.getStylesheet()),document.body.appendChild(t.container),this.decodeNodeIntoGraph(this.editor.extractGraphModel(mxUtils.parseXml(l).documentElement,!0),t),v=l;else if(null!=this.pages&&this.currentPage!=this.pages[0]){t=this.createTemporaryGraph(t.getStylesheet());var B=t.getGlobalVariable;t.setBackgroundImage=+function(T){var V=n?this.getFileData(!0):null;T=this.createImageDataUri(T,V,"png");C(T)}),null,null,null,mxUtils.bind(this,function(T){K({message:mxResources.get("unknownError")})}),null,!0,l?2:1,null,f,null,null,Editor.defaultBorder);else if(this.isRemoteExportEnabled())if(f=this.getFileData(!0),R.width*R.height<=MAX_AREA&&f.length<=MAX_REQUEST_SIZE){var O="";l&&(O="&w="+Math.round(2*R.width)+"&h="+Math.round(2*R.height));var U=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(n?"1":"0")++O+"&xml="+encodeURIComponent(f));U.send(mxUtils.bind(this,function(){200<=U.getStatus()&&299>=U.getStatus()?C("data:image/png;base64,"+U.getText()):K({message:mxResources.get("unknownError")})}))}else K({message:mxResources.get("drawingTooLarge")});else K({message:mxResources.get("notAvailable")})};EditorUi.prototype.createEmbedSvg=function(c,f,l,n,r,t,v,B,E,K,C){E=null!=E?E:"auto";K=null!=K?K:!0;var R=this.getSelectedPageIndex(),M=mxUtils.lightDarkColorSupported,O=mxUtils.preferDarkColor;if("light"==+E||"dark"==E)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor="dark"==E;var U=null;try{U=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!l,E)}finally{mxUtils.lightDarkColorSupported=M,mxUtils.preferDarkColor=O}E=U.getElementsByTagName("a");if(null!=E)for(M=0;M<E.length;M++)O=E[M].getAttribute("href"),null!=O&&"#"==O.charAt(0)&&"_blank"==E[M].getAttribute("target")&&E[M].removeAttribute("target");n&&U.setAttribute("content",this.getFileData(!0,null,null,null,null,+!K));f&&this.editor.graph.addSvgShadow(U);if(l){var T=" ",V="";n&&(T="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(K&&null!=R?"&page="+R:"")+(r?"&edit=_blank":"")+(t?"&layers=1":"")+(v?"&link-icons=1":+"")+(B?"&tooltip-icons=1":"")+"');}})(this);\"",V+="cursor:pointer;");c&&(V+="max-width:100%;");this.editor.convertImages(U,mxUtils.bind(this,function(fa){C('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(fa))+'"'+(""!=V?' style="'+V+'"':"")+T+"/>")}))}else V="",n&&(U.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('"++EditorUi.lightboxHost+"/?client=1"+(K&&null!=R?"&page="+R:"")+(r?"&edit=_blank":"")+(t?"&layers=1":"")+(v?"&link-icons=1":"")+(B?"&tooltip-icons=1":"")+"');}}})(this);"),V+="cursor:pointer;"),c&&(c=parseInt(U.getAttribute("width")),f=parseInt(U.getAttribute("height")),U.setAttribute("viewBox","-0.5 -0.5 "+c+" "+f),V+="max-width:100%;max-height:"+f+"px;",U.removeAttribute("height")),""!=V&&(c=U.getAttribute("style"),U.setAttribute("style",(null!=c&&0<c.length?c+" ":"")+V)),this.editor.addFontCss(U),+this.editor.graph.mathEnabled&&this.editor.addMathCss(U),C(mxUtils.getXml(U))};EditorUi.prototype.timeSince=function(c){c=Math.floor((new Date-c)/1E3);var f=Math.floor(c/31536E3);if(1<f)return f+" "+mxResources.get("years");f=Math.floor(c/2592E3);if(1<f)return f+" "+mxResources.get("months");f=Math.floor(c/86400);if(1<f)return f+" "+mxResources.get("days");f=Math.floor(c/3600);if(1<f)return f+" "+mxResources.get("hours");f=Math.floor(c/60);return 1<f?f+" "+mxResources.get("minutes"):1==f?f+" "+mxResources.get("minute"):+null};EditorUi.prototype.decodeNodeIntoGraph=function(c,f){if(null!=c){var l=null;if("diagram"==c.nodeName)l=c;else if("mxfile"==c.nodeName){var n=c.getElementsByTagName("diagram");if(0<n.length){l=n[0];var r=f.getGlobalVariable;f.getGlobalVariable=function(t){return"page"==t?l.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==t?1:r.apply(this,arguments)}}}null!=l&&(c=Editor.parseDiagramNode(l))}n=this.editor.graph;try{this.editor.graph=f,this.editor.setGraphXml(c)}catch(t){}finally{this.editor.graph=+n}return c};EditorUi.prototype.getSvgFileProperties=function(c){var f=this.getPngFileProperties(c);f.embedFonts=null!=c&&c.hasAttribute("embedFonts")?"false"!=c.getAttribute("embedFonts"):Editor.embedSvgFonts;return f};EditorUi.prototype.getPngFileProperties=function(c){var f=1,l=0;if(null!=c){if(c.hasAttribute("scale")){var n=parseFloat(c.getAttribute("scale"));!isNaN(n)&&0<n&&(f=n)}c.hasAttribute("border")&&(n=parseInt(c.getAttribute("border")),!isNaN(n)&&0<n&&(l=n))}return{scale:f,border:l}};EditorUi.prototype.getPdfFileProperties=+function(c){return{notes:null!=c&&"true"==c.getAttribute("notes")}};EditorUi.prototype.getEmbeddedPng=function(c,f,l,n,r){try{var t=this.editor.graph,v=null;if(null!=l&&0<l.length)t=this.createTemporaryGraph(t.getStylesheet()),document.body.appendChild(t.container),this.decodeNodeIntoGraph(this.editor.extractGraphModel(mxUtils.parseXml(l).documentElement,!0),t),v=l;else if(null!=this.pages&&this.currentPage!=this.pages[0]){t=this.createTemporaryGraph(t.getStylesheet());var B=t.getGlobalVariable;t.setBackgroundImage=this.editor.graph.setBackgroundImage;var E=this.pages[0];this.currentPage==E?t.setBackgroundImage(this.editor.graph.backgroundImage):null!=E.viewState&&null!=E.viewState&&t.setBackgroundImage(E.viewState.backgroundImage);t.getGlobalVariable=function(K){return"page"==K?E.getName():"pagenumber"==K?1:B.apply(this,arguments)};document.body.appendChild(t.container);t.model.setRoot(E.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(K){try{null==v&&(v=this.getFileData(!0,null,null,null,null,null,-null,null,null,!1));var C=K.toDataURL("image/png");C=Editor.writeGraphModelToPng(C,"tEXt","mxfile",encodeURIComponent(v));c(C.substring(C.lastIndexOf(",")+1));t!=this.editor.graph&&t.container.parentNode.removeChild(t.container)}catch(R){null!=g&&g(R)}}),null,null,null,mxUtils.bind(this,function(K){null!=g&&g(K)}),null,null,n,null,t.shadowVisible,null,t,r,null,null,null,"diagram",null)}catch(K){null!=g&&g(K)}};EditorUi.prototype.getSvgWithFontLookup=function(c,g,l){var n=Graph.addFont;Graph.addFont=-function(t,v,B,E){n.call(this,t,v,B,c)};var r=g.drawCellState;g.drawCellState=function(t,v){null!=t&&Graph.processFontStyle(t.style);r.apply(this,arguments)};try{return l()}finally{Graph.addFont=n}};EditorUi.prototype.getEmbeddedSvg=function(c,g,l,n,r,t,v,B,E,K,C,R,M,O,U){B=null!=B?B:!0;C=null!=C?C:0;var T=null!=E?E:g.background;T==mxConstants.NONE&&(T=null);null==T&&"none"==g.getAdaptiveColors()&&(T="#ffffff");var V=this.editor.graph.createSvgImageExport(null!=c,O);v=Object.create(null);E=this.getSvgWithFontLookup(v,-V,function(){return g.getSvg(T,K,C,null,null,t,null,V,null,g.shadowVisible||R,null,M,"diagram")});(g.shadowVisible||R)&&g.addSvgShadow(E,null,null,0==C);null!=c&&E.setAttribute("content",c);null!=l&&E.setAttribute("resource",l);var fa=mxUtils.bind(this,function(p){p=(n?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(p);null!=r&&r(p);return p});g.mathEnabled&&this.editor.addMathCss(E);if(null!=r)this.embedFonts(E,mxUtils.bind(this,function(p){B?this.editor.convertImages(p,-mxUtils.bind(this,function(A){fa(A)})):fa(p)}),U,v);else{var y=!1;this.embedFonts(E,function(){y=!0},U,v);if(!y)try{null==this.editor.resolvedFontCss&&this.editor.addFontCss(E);var d=this.editor.graph.getExtFontCss(v);0<d.length&&this.editor.addFontCss(E,d)}catch(p){}return fa(E)}};EditorUi.prototype.embedFonts=function(c,g,l,n){if(l=null!=l?l:Editor.embedSvgFonts)this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&this.editor.addFontCss(c,this.editor.resolvedFontCss),-this.editor.embedExtFonts(mxUtils.bind(this,function(t){try{null!=t&&this.editor.addFontCss(c,t),g(c)}catch(v){g(c)}}),n)}catch(t){g(c)}}));else{try{this.editor.addFontCss(c);var r=this.editor.graph.getExtFontCss(n);0<r.length&&this.editor.addFontCss(c,r)}catch(t){}g(c)}};EditorUi.prototype.exportImage=function(c,g,l,n,r,t,v,B,E,K,C,R,M){E=null!=E?E:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(U){Editor.addRetryToError(U,mxUtils.bind(this,function(){this.exportImage(c,-g,l,n,r,t,v,B,E,K,C,R,M)}));this.handleError(U)}))){var O=this.editor.graph.isSelectionEmpty();l=null!=l?l:O;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(U){this.spinner.stop();try{this.saveCanvas(U,r?this.getFileData(!0,null,null,null,l,B,null,null,null,null,null,c,t):null,E,null==this.pages||0==this.pages.length,C)}catch(T){this.handleError(T)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(U){this.spinner.stop();this.handleError(U)}),-null,l,c||1,g,n,null,null,t,v,K,R,M)}catch(U){this.spinner.stop(),this.handleError(U)}}};EditorUi.prototype.isCorsEnabledForUrl=function(c){return this.editor.isCorsEnabledForUrl(c)};EditorUi.prototype.addLocalPagesToMapping=function(c){c=null!=c?c:{};if(null!=this.pages)for(var g=0;g<this.pages.length;g++)c[this.pages[g].getId()]=this.pages[g].getId();return c};EditorUi.prototype.importXml=function(c,g,l,n,r,t,v){EditorUi.debug("EditorUi.importXml",[this],"xml",[c],"dx",[g],"dy",[l],"crop",[n],"noErrorHandling",-[r],"addNewPage",[t],"applyDefaultStyles",[v]);g=null!=g?g:0;l=null!=l?l:0;var B=[];try{if(null!=c&&0<c.length){var E=null!=this.pages?this.pages.length:0,K=this.isDiagramEmpty(),C=this.currentPage,R=this.editor.graph;R.model.beginUpdate();try{var M=mxUtils.parseXml(c);c={};var O=this.editor.extractGraphModel(M.documentElement,null!=this.pages);if(null!=O&&"mxfile"==O.nodeName&&null!=this.pages){var U=O.getElementsByTagName("diagram");if(0<U.length){M=[];var T=0;if(1==U.length&&!t){if(null!=this.currentPage&&+null,null,null,!1));var C=K.toDataURL("image/png");C=Editor.writeGraphModelToPng(C,"tEXt","mxfile",encodeURIComponent(v));c(C.substring(C.lastIndexOf(",")+1));t!=this.editor.graph&&t.container.parentNode.removeChild(t.container)}catch(R){null!=f&&f(R)}}),null,null,null,mxUtils.bind(this,function(K){null!=f&&f(K)}),null,null,n,null,t.shadowVisible,null,t,r,null,null,null,"diagram",null)}catch(K){null!=f&&f(K)}};EditorUi.prototype.getSvgWithFontLookup=function(c,f,l){var n=Graph.addFont;Graph.addFont=+function(t,v,B,E){n.call(this,t,v,B,c)};var r=f.drawCellState;f.drawCellState=function(t,v){null!=t&&Graph.processFontStyle(t.style);r.apply(this,arguments)};try{return l()}finally{Graph.addFont=n}};EditorUi.prototype.getEmbeddedSvg=function(c,f,l,n,r,t,v,B,E,K,C,R,M,O,U){B=null!=B?B:!0;C=null!=C?C:0;var T=null!=E?E:f.background;T==mxConstants.NONE&&(T=null);null==T&&"none"==f.getAdaptiveColors()&&(T="#ffffff");var V=this.editor.graph.createSvgImageExport(null!=c,O);v=Object.create(null);E=this.getSvgWithFontLookup(v,+V,function(){return f.getSvg(T,K,C,null,null,t,null,V,null,f.shadowVisible||R,null,M,"diagram")});(f.shadowVisible||R)&&f.addSvgShadow(E,null,null,0==C);null!=c&&E.setAttribute("content",c);null!=l&&E.setAttribute("resource",l);var fa=mxUtils.bind(this,function(p){p=(n?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(p);null!=r&&r(p);return p});f.mathEnabled&&this.editor.addMathCss(E);if(null!=r)this.embedFonts(E,mxUtils.bind(this,function(p){B?this.editor.convertImages(p,+mxUtils.bind(this,function(A){fa(A)})):fa(p)}),U,v);else{var y=!1;this.embedFonts(E,function(){y=!0},U,v);if(!y)try{null==this.editor.resolvedFontCss&&this.editor.addFontCss(E);var d=this.editor.graph.getExtFontCss(v);0<d.length&&this.editor.addFontCss(E,d)}catch(p){}return fa(E)}};EditorUi.prototype.embedFonts=function(c,f,l,n){if(l=null!=l?l:Editor.embedSvgFonts)this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&this.editor.addFontCss(c,this.editor.resolvedFontCss),+this.editor.embedExtFonts(mxUtils.bind(this,function(t){try{null!=t&&this.editor.addFontCss(c,t),f(c)}catch(v){f(c)}}),n)}catch(t){f(c)}}));else{try{this.editor.addFontCss(c);var r=this.editor.graph.getExtFontCss(n);0<r.length&&this.editor.addFontCss(c,r)}catch(t){}f(c)}};EditorUi.prototype.exportImage=function(c,f,l,n,r,t,v,B,E,K,C,R,M){E=null!=E?E:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(U){Editor.addRetryToError(U,mxUtils.bind(this,function(){this.exportImage(c,+f,l,n,r,t,v,B,E,K,C,R,M)}));this.handleError(U)}))){var O=this.editor.graph.isSelectionEmpty();l=null!=l?l:O;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(U){this.spinner.stop();try{this.saveCanvas(U,r?this.getFileData(!0,null,null,null,l,B,null,null,null,null,null,c,t):null,E,null==this.pages||0==this.pages.length,C)}catch(T){this.handleError(T)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(U){this.spinner.stop();this.handleError(U)}),+null,l,c||1,f,n,null,null,t,v,K,R,M)}catch(U){this.spinner.stop(),this.handleError(U)}}};EditorUi.prototype.isCorsEnabledForUrl=function(c){return this.editor.isCorsEnabledForUrl(c)};EditorUi.prototype.addLocalPagesToMapping=function(c){c=null!=c?c:{};if(null!=this.pages)for(var f=0;f<this.pages.length;f++)c[this.pages[f].getId()]=this.pages[f].getId();return c};EditorUi.prototype.importXml=function(c,f,l,n,r,t,v){EditorUi.debug("EditorUi.importXml",[this],"xml",[c],"dx",[f],"dy",[l],"crop",[n],"noErrorHandling",+[r],"addNewPage",[t],"applyDefaultStyles",[v]);f=null!=f?f:0;l=null!=l?l:0;var B=[];try{if(null!=c&&0<c.length){var E=null!=this.pages?this.pages.length:0,K=this.isDiagramEmpty(),C=this.currentPage,R=this.editor.graph;R.model.beginUpdate();try{var M=mxUtils.parseXml(c);c={};var O=this.editor.extractGraphModel(M.documentElement,null!=this.pages);if(null!=O&&"mxfile"==O.nodeName&&null!=this.pages){var U=O.getElementsByTagName("diagram");if(0<U.length){M=[];var T=0;if(1==U.length&&!t){if(null!=this.currentPage&&(c[U[0].getAttribute("id")]=this.currentPage.getId(),this.isBlankFile())){var V=U[0].getAttribute("name");null!=V&&""!=V&&this.editor.graph.model.execute(new RenamePage(this,this.currentPage,V))}O=Editor.parseDiagramNode(U[0]);n=!1;T=1}for(;T<U.length;T++){var fa=U[T].getAttribute("id");U[T].removeAttribute("id");var y=this.updatePageRoot(new DiagramPage(U[T]));c[fa]=U[T].getAttribute("id");var d=this.pages.length;null==y.getName()&&y.setName(mxResources.get("pageWithNumber",[d+1]));R.model.execute(new ChangePage(this,-y,y,d,0<T));M.push(y)}this.updatePageLinks(c,M)}}if(null!=O&&"mxGraphModel"===O.nodeName){B=R.importGraphModel(O,g,l,n);if(null!=B)for(this.addLocalPagesToMapping(c),T=0;T<B.length;T++)this.updatePageLinksForCell(c,B[T]);var p=R.parseBackgroundImage(O.getAttribute("backgroundImage"));if(null!=p&&null!=p.originalSrc&&this.updateBackgroundPageLink(c,p)){var A=new ChangePageSetup(this,null,p);A.ignoreColor=!0;R.model.execute(A)}}v&&R.pasteCellStyles(R.includeDescendants(B),R.defaultVertexStyle,R.defaultEdgeStyle);-!t&&C!=this.currentPage&&null!=this.pages&&1<this.pages.length&&K&&1==E&&this.removePage(C)}finally{R.model.endUpdate()}}}catch(G){if(r)throw G;this.handleError(G)}return B};EditorUi.prototype.updatePageLinks=function(c,g){for(var l=0;l<g.length;l++)this.updatePageLinksForCell(c,g[l].root),g[l]!=this.currentPage&&(g[l].needsUpdate=!0),null!=g[l].viewState&&this.updateBackgroundPageLink(c,g[l].viewState.backgroundImage)&&(g[l]==this.currentPage&&this.editor.graph.setViewState(g[l].viewState,!0),g[l].needsUpdate=-!0)};EditorUi.prototype.updateBackgroundPageLink=function(c,g){var l=!1;try{if(null!=g&&Graph.isPageLink(g.originalSrc)){var n=c[g.originalSrc.substring(g.originalSrc.indexOf(",")+1)];null!=n&&(g.originalSrc="data:page/id,"+n,l=!0)}}catch(r){}return l};EditorUi.prototype.updatePageLinksForCell=function(c,g){var l=document.createElement("div"),n=this.editor.graph,r=n.getLinkForCell(g);null!=r&&n.setLinkForCell(g,this.updatePageLink(c,r));if(n.isHtmlLabel(g)){l.innerHTML=Graph.sanitizeHtml(n.getLabel(g));-for(var t=l.getElementsByTagName("a"),v=!1,B=0;B<t.length;B++)r=t[B].getAttribute("href"),null!=r&&(t[B].setAttribute("href",this.updatePageLink(c,r)),v=!0);v&&n.labelChanged(g,l.innerHTML)}for(B=0;B<n.model.getChildCount(g);B++)this.updatePageLinksForCell(c,n.model.getChildAt(g,B))};EditorUi.prototype.updatePageLink=function(c,g){if(Graph.isPageLink(g)){var l=c[g.substring(g.indexOf(",")+1)];g=null!=l?"data:page/id,"+l:null}else if("data:action/json,"==g.substring(0,17))try{var n=JSON.parse(g.substring(17));-if(null!=n.actions){for(var r=0;r<n.actions.length;r++){var t=n.actions[r];if(null!=t.open&&Graph.isPageLink(t.open)){var v=t.open.substring(t.open.indexOf(",")+1);l=c[v];null!=l?t.open="data:page/id,"+l:null==this.getPageById(v)&&delete t.open}}g="data:action/json,"+JSON.stringify(n)}}catch(B){}return g};EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||/(\.vs(s|x))($|\?)/i.test(c)};EditorUi.prototype.importVisio=function(c,g,l,n,r){var t=mxUtils.bind(this,function(v){this.loadingExtensions=+y,y,d,0<T));M.push(y)}this.updatePageLinks(c,M)}}if(null!=O&&"mxGraphModel"===O.nodeName){B=R.importGraphModel(O,f,l,n);if(null!=B)for(this.addLocalPagesToMapping(c),T=0;T<B.length;T++)this.updatePageLinksForCell(c,B[T]);var p=R.parseBackgroundImage(O.getAttribute("backgroundImage"));if(null!=p&&null!=p.originalSrc&&this.updateBackgroundPageLink(c,p)){var A=new ChangePageSetup(this,null,p);A.ignoreColor=!0;R.model.execute(A)}}v&&R.pasteCellStyles(R.includeDescendants(B),R.defaultVertexStyle,R.defaultEdgeStyle);+!t&&C!=this.currentPage&&null!=this.pages&&1<this.pages.length&&K&&1==E&&this.removePage(C)}finally{R.model.endUpdate()}}}catch(G){if(r)throw G;this.handleError(G)}return B};EditorUi.prototype.updatePageLinks=function(c,f){for(var l=0;l<f.length;l++)this.updatePageLinksForCell(c,f[l].root),f[l]!=this.currentPage&&(f[l].needsUpdate=!0),null!=f[l].viewState&&this.updateBackgroundPageLink(c,f[l].viewState.backgroundImage)&&(f[l]==this.currentPage&&this.editor.graph.setViewState(f[l].viewState,!0),f[l].needsUpdate=+!0)};EditorUi.prototype.updateBackgroundPageLink=function(c,f){var l=!1;try{if(null!=f&&Graph.isPageLink(f.originalSrc)){var n=c[f.originalSrc.substring(f.originalSrc.indexOf(",")+1)];null!=n&&(f.originalSrc="data:page/id,"+n,l=!0)}}catch(r){}return l};EditorUi.prototype.updatePageLinksForCell=function(c,f){var l=document.createElement("div"),n=this.editor.graph,r=n.getLinkForCell(f);null!=r&&n.setLinkForCell(f,this.updatePageLink(c,r));if(n.isHtmlLabel(f)){l.innerHTML=Graph.sanitizeHtml(n.getLabel(f));+for(var t=l.getElementsByTagName("a"),v=!1,B=0;B<t.length;B++)r=t[B].getAttribute("href"),null!=r&&(t[B].setAttribute("href",this.updatePageLink(c,r)),v=!0);v&&n.labelChanged(f,l.innerHTML)}for(B=0;B<n.model.getChildCount(f);B++)this.updatePageLinksForCell(c,n.model.getChildAt(f,B))};EditorUi.prototype.updatePageLink=function(c,f){if(Graph.isPageLink(f)){var l=c[f.substring(f.indexOf(",")+1)];f=null!=l?"data:page/id,"+l:null}else if("data:action/json,"==f.substring(0,17))try{var n=JSON.parse(f.substring(17));+if(null!=n.actions){for(var r=0;r<n.actions.length;r++){var t=n.actions[r];if(null!=t.open&&Graph.isPageLink(t.open)){var v=t.open.substring(t.open.indexOf(",")+1);l=c[v];null!=l?t.open="data:page/id,"+l:null==this.getPageById(v)&&delete t.open}}f="data:action/json,"+JSON.stringify(n)}}catch(B){}return f};EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||/(\.vs(s|x))($|\?)/i.test(c)};EditorUi.prototype.importVisio=function(c,f,l,n,r){var t=mxUtils.bind(this,function(v){this.loadingExtensions=!1;null!=l?l(v):this.handleError(v)});this.createTimeout(null,mxUtils.bind(this,function(v){n=null!=n?n:c.name;var B=mxUtils.bind(this,function(K){v.clear()&&t(K)}),E=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportVisio){var K=this.isRemoteVisioFormat(n);try{var C=n.lastIndexOf(".");if(0<=C&&C<n.length)n.substring(C+1).toUpperCase();else{var R=n.lastIndexOf("/");0<=R&&R<n.length&&(n=n.substring(R+1))}}catch(O){}if(K)if(null==VSS_CONVERT_URL||this.isOffline())/(\.vss|\.vsx)$/i.test(n)?B({message:mxResources.get("tryVssDraw",["https://vss.draw.io"])}):B({message:"draw.io"!=this.getServiceName()?mxResources.get("vsdNoConfig"):mxResources.get("serviceUnavailableOrBlocked")});else{K=new FormData;K.append("file1",c,n);var M=new XMLHttpRequest;M.open("POST",VSS_CONVERT_URL+(/(\.vss|\.vsx)$/.test(n)?"?stencil=1":""));M.responseType="blob";this.addRemoteServiceSecurityCheck(M);null!=r&&M.setRequestHeader("x-convert-custom",r);M.onreadystatechange=mxUtils.bind(this,function(){if(4==M.readyState&&-v.clear())if(200<=M.status&&299>=M.status)try{var O=M.response;if("text/xml"==O.type){var U=new FileReader;U.onload=mxUtils.bind(this,function(T){try{g(T.target.result)}catch(V){B({message:mxResources.get("errorLoadingFile")})}});U.readAsText(O)}else this.doImportVisio(O,g,B,n)}catch(T){B(T)}else try{""==M.responseType||"text"==M.responseType?B({message:M.responseText}):(U=new FileReader,U.onload=function(){try{B({message:JSON.parse(U.result).Message})}catch(T){null!=U.result&&0<U.result.length?B({message:U.result}):-B(T)}},U.readAsText(M.response))}catch(T){B({})}});M.send(K)}else if(v.clear())try{this.doImportVisio(c,g,B,n)}catch(O){B(O)}}else B({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?E():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",E,null,null,null,B))}),t)};EditorUi.prototype.importGraphML=function(c,g,l){var n=mxUtils.bind(this,function(r){this.loadingExtensions=!1;null!=l?l(r):this.handleError(r)});-this.createTimeout(null,mxUtils.bind(this,function(r){var t=mxUtils.bind(this,function(B){r.clear()&&n(B)}),v=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(r.clear())if(this.doImportGraphML)try{this.doImportGraphML(c,g,n)}catch(B){t(B)}else t({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportGraphML||this.loadingExtensions||this.isOffline(!0)?v():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",v,null,null,null,t))}),n)};EditorUi.prototype.importGliffy=-function(c,g,l,n){var r=mxUtils.bind(this,function(t){null!=l&&l({status:"undefined"!==typeof mxGliffyToDrawio&&"function"===typeof mxGliffyToDrawio.LimitExceededException&&t instanceof mxGliffyToDrawio.LimitExceededException?413:500,message:null!=t&&null!=t.message?t.message:mxResources.get("serviceUnavailableOrBlocked")})});this.loadGliffy(mxUtils.bind(this,function(){var t=null;try{t=mxGliffyToDrawio.convert(c)}catch(v){r(v);return}if(null!=t){try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",-action:"size_"+c.length})}catch(v){}g(t)}else r(null)}),r)};EditorUi.prototype.exportVisio=function(c){if(this.spinner.spin(document.body,mxResources.get("loading"))){var g=mxUtils.bind(this,function(l){this.loadingExtensions=!1;this.handleError(l)});this.vsdxExportEnabled()?this.createTimeout(null,mxUtils.bind(this,function(l){var n=mxUtils.bind(this,function(t){l.clear()&&g(t)}),r=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(l.clear())if("undefined"!==typeof VsdxExport)try{this.spinner.stop(),-(new VsdxExport(this)).exportCurrentDiagrams(c)||n({message:mxResources.get("unknownError")})}catch(t){n(t)}else n({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof VsdxExport||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(r,0):(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",r,null,null,null,n))}),g):g({message:mxResources.get("serviceUnavailableOrBlocked")})}};EditorUi.prototype.convertLucidChart=function(c,g,l){var n=-mxUtils.bind(this,function(r){this.loadingExtensions=!1;null!=l?l(r):this.handleError(r)});this.createTimeout(null,mxUtils.bind(this,function(r){var t=mxUtils.bind(this,function(B){r.clear()&&n(B)}),v=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(r.clear())if("undefined"!==typeof window.LucidImporter)try{var B=JSON.parse(c);g(LucidImporter.importState(B));try{if(null!=window.console&&"1"==urlParams.test){var E=[(new Date).toISOString(),"convertLucidChart",B];null!=B.state&&E.push(JSON.parse(B.state));+v.clear())if(200<=M.status&&299>=M.status)try{var O=M.response;if("text/xml"==O.type){var U=new FileReader;U.onload=mxUtils.bind(this,function(T){try{f(T.target.result)}catch(V){B({message:mxResources.get("errorLoadingFile")})}});U.readAsText(O)}else this.doImportVisio(O,f,B,n)}catch(T){B(T)}else try{""==M.responseType||"text"==M.responseType?B({message:M.responseText}):(U=new FileReader,U.onload=function(){try{B({message:JSON.parse(U.result).Message})}catch(T){null!=U.result&&0<U.result.length?B({message:U.result}):+B(T)}},U.readAsText(M.response))}catch(T){B({})}});M.send(K)}else if(v.clear())try{this.doImportVisio(c,f,B,n)}catch(O){B(O)}}else B({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?E():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",E,null,null,null,B))}),t)};EditorUi.prototype.importGraphML=function(c,f,l){var n=mxUtils.bind(this,function(r){this.loadingExtensions=!1;null!=l?l(r):this.handleError(r)});+this.createTimeout(null,mxUtils.bind(this,function(r){var t=mxUtils.bind(this,function(B){r.clear()&&n(B)}),v=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(r.clear())if(this.doImportGraphML)try{this.doImportGraphML(c,f,n)}catch(B){t(B)}else t({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportGraphML||this.loadingExtensions||this.isOffline(!0)?v():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",v,null,null,null,t))}),n)};EditorUi.prototype.importGliffy=+function(c,f,l,n){var r=mxUtils.bind(this,function(t){null!=l&&l({status:"undefined"!==typeof mxGliffyToDrawio&&"function"===typeof mxGliffyToDrawio.LimitExceededException&&t instanceof mxGliffyToDrawio.LimitExceededException?413:500,message:null!=t&&null!=t.message?t.message:mxResources.get("serviceUnavailableOrBlocked")})});this.loadGliffy(mxUtils.bind(this,function(){var t=null;try{t=mxGliffyToDrawio.convert(c)}catch(v){r(v);return}if(null!=t){try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",+action:"size_"+c.length})}catch(v){}f(t)}else r(null)}),r)};EditorUi.prototype.exportVisio=function(c){if(this.spinner.spin(document.body,mxResources.get("loading"))){var f=mxUtils.bind(this,function(l){this.loadingExtensions=!1;this.handleError(l)});this.vsdxExportEnabled()?this.createTimeout(null,mxUtils.bind(this,function(l){var n=mxUtils.bind(this,function(t){l.clear()&&f(t)}),r=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(l.clear())if("undefined"!==typeof VsdxExport)try{this.spinner.stop(),+(new VsdxExport(this)).exportCurrentDiagrams(c)||n({message:mxResources.get("unknownError")})}catch(t){n(t)}else n({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof VsdxExport||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(r,0):(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",r,null,null,null,n))}),f):f({message:mxResources.get("serviceUnavailableOrBlocked")})}};EditorUi.prototype.convertLucidChart=function(c,f,l){var n=+mxUtils.bind(this,function(r){this.loadingExtensions=!1;null!=l?l(r):this.handleError(r)});this.createTimeout(null,mxUtils.bind(this,function(r){var t=mxUtils.bind(this,function(B){r.clear()&&n(B)}),v=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(r.clear())if("undefined"!==typeof window.LucidImporter)try{var B=JSON.parse(c);f(LucidImporter.importState(B));try{if(null!=window.console&&"1"==urlParams.test){var E=[(new Date).toISOString(),"convertLucidChart",B];null!=B.state&&E.push(JSON.parse(B.state));if(null!=B.svgThumbs)for(var K=0;K<B.svgThumbs.length;K++)E.push(Editor.createSvgDataUri(B.svgThumbs[K]));null!=B.thumb&&E.push(B.thumb);console.log.apply(console,E)}}catch(C){}}catch(C){null!=window.console&&console.error(C),t(C)}else t({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof window.LucidImporter||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(v,0):(this.loadingExtensions=!0,"1"==urlParams.dev?mxscript("js/diagramly/Extensions.js",function(){mxscript("js/orgchart/bridge.min.js",-function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",v,null,null,null,t)},null,null,null,t)},null,null,null,t)},null,null,null,t)},null,null,null,t):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",v,null,null,null,t))}),n)};EditorUi.prototype.replaceLockedGroupChildren=function(c,g,l,n,r){var t=null!=r&&null!=r.dataAttr?r.dataAttr:"mermaidData",v=null!=r&&null!=r.attrPrefix?-r.attrPrefix:"mermaid",B=this.editor.graph;r=mxUtils.parseXml((null!=r&&null!=r.wrapGroup?r.wrapGroup:mxMermaidToDrawio.wrapGroup)(g,l,n));var E=new mxCodec(r);g=new mxGraphModel;E.decode(r.documentElement,g);E=g.getRoot();var K=null;for(r=0;null!=E&&r<g.getChildCount(E)&&null==K;r++)for(var C=g.getChildAt(E,r),R=0;R<g.getChildCount(C);R++){var M=g.getChildAt(C,R),O=M.value;if(null!=O&&"object"===typeof O&&null!=O.getAttribute&&null!=O.getAttribute(t)){K=M;break}}if(null!=K){E=[];for(r=0;r<g.getChildCount(K);r++)E.push(g.getChildAt(K,-r));0==E.length&&(E=[K]);K=g.getGeometry(K);C=O=Infinity;M=B.model.getChildCount(c);for(r=0;r<M;r++){var U=B.model.getChildAt(c,r);B.model.isVertex(U)&&(U=U.getGeometry(),null!=U&&(O=Math.min(O,U.x),C=Math.min(C,U.y)))}var T=Infinity;U=Infinity;for(r=0;r<E.length;r++)g.isVertex(E[r])&&(M=E[r].getGeometry(),null!=M&&(T=Math.min(T,M.x),U=Math.min(U,M.y)));O=isFinite(O)&&isFinite(T)?O-T:0;C=isFinite(C)&&isFinite(U)?C-U:0;if(0!=O||0!=C)for(r=0;r<E.length;r++)if(U=E[r],M=U.getGeometry(),null!=M){M=M.clone();-if(g.isVertex(U))M.x+=O,M.y+=C;else if(g.isEdge(U)){if(null!=M.points)for(T=0;T<M.points.length;T++)null!=M.points[T]&&(M.points[T].x+=O,M.points[T].y+=C);null!=M.sourcePoint&&(M.sourcePoint.x+=O,M.sourcePoint.y+=C);null!=M.targetPoint&&(M.targetPoint.x+=O,M.targetPoint.y+=C)}g.setGeometry(U,M)}g=this.snapshotMermaidIdentity(c,v);E=B.cloneCells(E,!0);B.getModel().beginUpdate();try{for(R=B.model.getChildCount(c)-1;0<=R;R--)B.model.remove(B.model.getChildAt(c,R));for(r=0;r<E.length;r++)this.applyMermaidUserCustomizations(E[r],-g,v),B.model.add(c,E[r]);if(null!=K){var V=B.model.getGeometry(c);null!=V&&(V=V.clone(),V.width=K.width,V.height=K.height,B.model.setGeometry(c,V))}B.setAttributeForCell(c,t,JSON.stringify({data:l,config:n},null,2))}finally{B.getModel().endUpdate()}}};EditorUi.prototype.snapshotMermaidIdentity=function(c,g){g=null!=g?g:"mermaid";for(var l=this.editor.graph,n={},r=l.model.getChildCount(c),t=0;t<r;t++){var v=l.model.getChildAt(c,t),B=v.value;if(null!=B&&"object"===typeof B&&null!=B.getAttribute){var E=-B.getAttribute(g+"Id");E&&(n[E]={currentStyle:v.style||"",currentLabel:B.getAttribute("label")||"",baseStyle:B.getAttribute(g+"BaseStyle")||"",baseValue:B.getAttribute(g+"BaseValue")||""})}}return n};EditorUi.prototype.applyMermaidUserCustomizations=function(c,g,l){var n=c.value;null!=n&&"object"===typeof n&&null!=n.getAttribute&&(l=n.getAttribute((null!=l?l:"mermaid")+"Id"))&&(g=g[l],null!=g&&(c.style=this.mergeMermaidStyleDelta(g.baseStyle,g.currentStyle,c.style||"",c.isEdge()),g.currentLabel!==-g.baseValue&&n.setAttribute("label",g.currentLabel)))};EditorUi.prototype.mergeMermaidStyleDelta=function(c,g,l,n){function r(C){var R={},M=[];if(!C)return{map:R,keys:M};C=C.split(";");for(var O=0;O<C.length;O++){var U=C[O];if(U){var T=U.indexOf("=");if(0<T){var V=U.substring(0,T);V in R||M.push(V);R[V]=U.substring(T+1)}else U in R||M.push(U),R[U]=!0}}return{map:R,keys:M}}c=r(c);g=r(g);var t=r(l),v={exitX:1,exitY:1,exitDx:1,exitDy:1,entryX:1,entryY:1,entryDx:1,entryDy:1,edgeStyle:1,noEdgeStyle:1,-orthogonal:1},B=n?{startArrow:1,endArrow:1,startFill:1,endFill:1,startSize:1,endSize:1}:{};n={};l=[];for(var E=0;E<t.keys.length;E++){var K=t.keys[E];n[K]=t.map[K];l.push(K)}for(E=0;E<g.keys.length;E++)K=g.keys[E],v[K]||B[K]||g.map[K]===c.map[K]||(K in n||l.push(K),n[K]=g.map[K]);for(E=0;E<c.keys.length;E++)K=c.keys[E],v[K]||B[K]||K in g.map||delete n[K];c=[];for(E=0;E<l.length;E++)K=l[E],g=n[K],void 0!==g&&(!0===g?c.push(K):c.push(K+"="+g));return 0<c.length?c.join(";")+";":""};EditorUi.prototype.getSvgForXml=-function(c,g,l){var n=null,r=this.createTemporaryGraph(this.editor.graph.getStylesheet());try{document.body.appendChild(r.container),(new mxCodec(mxUtils.parseXml(c))).decode(mxUtils.parseXml(c).documentElement,r.getModel()),n=r.getSvg(null,null,g,null,null,null,null,null,null,null,null,l,null,null,!0,!0)}finally{document.body.removeChild(r.container)}return n};EditorUi.prototype.showPreviewTooltip=function(c,g){if(null!=this.sidebar&&(c=this.stringToCells(c),0<c.length)){var l=window.innerWidth||-document.documentElement.clientWidth||document.body.clientWidth,n=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.sidebar.createTooltip(mxEvent.getSource(g),c,Math.min(l-120,1600),Math.min(n-120,1200),null,!0,new mxPoint(mxEvent.getClientX(g),mxEvent.getClientY(g)),!0,null,!0,!1);null==this.previewTooltipDialogListener&&(this.previewTooltipDialogListener=mxUtils.bind(this,function(){this.sidebar.hideTooltip()}),this.editor.addListener("hideDialog",this.previewTooltipDialogListener))}};-EditorUi.prototype.generateOpenAiMermaidDiagram=function(c,g,l,n){var r=0,t=mxUtils.bind(this,function(){this.createTimeout(this.editor.generateTimeout,mxUtils.bind(this,function(v){var B="";if(null!=this.drive&&null!=this.drive.getUser()){var E=this.drive.getUser();null!=E.email&&0<E.email.indexOf("@")&&(B=E.email.substring(E.email.indexOf("@")+1))}var K={prompt:c,driveDomain:B,options:null!=n?n:{}};EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"data",[K],"url",["https://www.draw.io/generate/v3"]);+function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",v,null,null,null,t)},null,null,null,t)},null,null,null,t)},null,null,null,t)},null,null,null,t):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",v,null,null,null,t))}),n)};EditorUi.prototype.replaceLockedGroupChildren=function(c,f,l,n,r){var t=null!=r&&null!=r.dataAttr?r.dataAttr:"mermaidData",v=null!=r&&null!=r.attrPrefix?+r.attrPrefix:"mermaid",B=this.editor.graph;r=mxUtils.parseXml((null!=r&&null!=r.wrapGroup?r.wrapGroup:mxMermaidToDrawio.wrapGroup)(f,l,n));var E=new mxCodec(r);f=new mxGraphModel;E.decode(r.documentElement,f);E=f.getRoot();var K=null;for(r=0;null!=E&&r<f.getChildCount(E)&&null==K;r++)for(var C=f.getChildAt(E,r),R=0;R<f.getChildCount(C);R++){var M=f.getChildAt(C,R),O=M.value;if(null!=O&&"object"===typeof O&&null!=O.getAttribute&&null!=O.getAttribute(t)){K=M;break}}if(null!=K){E=[];for(r=0;r<f.getChildCount(K);r++)E.push(f.getChildAt(K,+r));0==E.length&&(E=[K]);K=f.getGeometry(K);C=O=Infinity;M=B.model.getChildCount(c);for(r=0;r<M;r++){var U=B.model.getChildAt(c,r);B.model.isVertex(U)&&(U=U.getGeometry(),null!=U&&(O=Math.min(O,U.x),C=Math.min(C,U.y)))}var T=Infinity;U=Infinity;for(r=0;r<E.length;r++)f.isVertex(E[r])&&(M=E[r].getGeometry(),null!=M&&(T=Math.min(T,M.x),U=Math.min(U,M.y)));O=isFinite(O)&&isFinite(T)?O-T:0;C=isFinite(C)&&isFinite(U)?C-U:0;if(0!=O||0!=C)for(r=0;r<E.length;r++)if(U=E[r],M=U.getGeometry(),null!=M){M=M.clone();+if(f.isVertex(U))M.x+=O,M.y+=C;else if(f.isEdge(U)){if(null!=M.points)for(T=0;T<M.points.length;T++)null!=M.points[T]&&(M.points[T].x+=O,M.points[T].y+=C);null!=M.sourcePoint&&(M.sourcePoint.x+=O,M.sourcePoint.y+=C);null!=M.targetPoint&&(M.targetPoint.x+=O,M.targetPoint.y+=C)}f.setGeometry(U,M)}f=this.snapshotMermaidIdentity(c,v);E=B.cloneCells(E,!0);B.getModel().beginUpdate();try{for(R=B.model.getChildCount(c)-1;0<=R;R--)B.model.remove(B.model.getChildAt(c,R));for(r=0;r<E.length;r++)this.applyMermaidUserCustomizations(E[r],+f,v),B.model.add(c,E[r]);if(null!=K){var V=B.model.getGeometry(c);null!=V&&(V=V.clone(),V.width=K.width,V.height=K.height,B.model.setGeometry(c,V))}B.setAttributeForCell(c,t,JSON.stringify({data:l,config:n},null,2))}finally{B.getModel().endUpdate()}}};EditorUi.prototype.snapshotMermaidIdentity=function(c,f){f=null!=f?f:"mermaid";for(var l=this.editor.graph,n={},r=l.model.getChildCount(c),t=0;t<r;t++){var v=l.model.getChildAt(c,t),B=v.value;if(null!=B&&"object"===typeof B&&null!=B.getAttribute){var E=+B.getAttribute(f+"Id");E&&(n[E]={currentStyle:v.style||"",currentLabel:B.getAttribute("label")||"",baseStyle:B.getAttribute(f+"BaseStyle")||"",baseValue:B.getAttribute(f+"BaseValue")||""})}}return n};EditorUi.prototype.applyMermaidUserCustomizations=function(c,f,l){var n=c.value;null!=n&&"object"===typeof n&&null!=n.getAttribute&&(l=n.getAttribute((null!=l?l:"mermaid")+"Id"))&&(f=f[l],null!=f&&(c.style=this.mergeMermaidStyleDelta(f.baseStyle,f.currentStyle,c.style||"",c.isEdge()),f.currentLabel!==+f.baseValue&&n.setAttribute("label",f.currentLabel)))};EditorUi.prototype.mergeMermaidStyleDelta=function(c,f,l,n){function r(C){var R={},M=[];if(!C)return{map:R,keys:M};C=C.split(";");for(var O=0;O<C.length;O++){var U=C[O];if(U){var T=U.indexOf("=");if(0<T){var V=U.substring(0,T);V in R||M.push(V);R[V]=U.substring(T+1)}else U in R||M.push(U),R[U]=!0}}return{map:R,keys:M}}c=r(c);f=r(f);var t=r(l),v={exitX:1,exitY:1,exitDx:1,exitDy:1,entryX:1,entryY:1,entryDx:1,entryDy:1,edgeStyle:1,noEdgeStyle:1,+orthogonal:1},B=n?{startArrow:1,endArrow:1,startFill:1,endFill:1,startSize:1,endSize:1}:{};n={};l=[];for(var E=0;E<t.keys.length;E++){var K=t.keys[E];n[K]=t.map[K];l.push(K)}for(E=0;E<f.keys.length;E++)K=f.keys[E],v[K]||B[K]||f.map[K]===c.map[K]||(K in n||l.push(K),n[K]=f.map[K]);for(E=0;E<c.keys.length;E++)K=c.keys[E],v[K]||B[K]||K in f.map||delete n[K];c=[];for(E=0;E<l.length;E++)K=l[E],f=n[K],void 0!==f&&(!0===f?c.push(K):c.push(K+"="+f));return 0<c.length?c.join(";")+";":""};EditorUi.prototype.getSvgForXml=+function(c,f,l){var n=null,r=this.createTemporaryGraph(this.editor.graph.getStylesheet());try{document.body.appendChild(r.container),(new mxCodec(mxUtils.parseXml(c))).decode(mxUtils.parseXml(c).documentElement,r.getModel()),n=r.getSvg(null,null,f,null,null,null,null,null,null,null,null,l,null,null,!0,!0)}finally{document.body.removeChild(r.container)}return n};EditorUi.prototype.showPreviewTooltip=function(c,f){if(null!=this.sidebar&&(c=this.stringToCells(c),0<c.length)){var l=window.innerWidth||+document.documentElement.clientWidth||document.body.clientWidth,n=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.sidebar.createTooltip(mxEvent.getSource(f),c,Math.min(l-120,1600),Math.min(n-120,1200),null,!0,new mxPoint(mxEvent.getClientX(f),mxEvent.getClientY(f)),!0,null,!0,!1);null==this.previewTooltipDialogListener&&(this.previewTooltipDialogListener=mxUtils.bind(this,function(){this.sidebar.hideTooltip()}),this.editor.addListener("hideDialog",this.previewTooltipDialogListener))}};+EditorUi.prototype.generateOpenAiMermaidDiagram=function(c,f,l,n){var r=0,t=mxUtils.bind(this,function(){this.createTimeout(this.editor.generateTimeout,mxUtils.bind(this,function(v){var B="";if(null!=this.drive&&null!=this.drive.getUser()){var E=this.drive.getUser();null!=E.email&&0<E.email.indexOf("@")&&(B=E.email.substring(E.email.indexOf("@")+1))}var K={prompt:c,driveDomain:B,options:null!=n?n:{}};EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"data",[K],"url",["https://www.draw.io/generate/v3"]);var C=Date.now();B=new mxXmlRequest("https://www.draw.io/generate/v3",JSON.stringify(K),"POST");var R=mxUtils.bind(this,function(O){v.clear()&&(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"data",[K],"error",[O],"time",Date.now()-C+" ms"),l(O))}),M=mxUtils.bind(this,function(O){3>r++?v.clear()&&t():R(O)});B.send(mxUtils.bind(this,function(O){if(v.isAlive())if(200<=O.getStatus()&&299>=O.getStatus())this.tryAndHandle(mxUtils.bind(this,function(){var T=O.getText();try{T=JSON.parse(T),-result=T.result}catch(d){result=T}EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"data",[K],"response",[T],"time",Date.now()-C+" ms");T=Editor.extractGraphModelFromText(result);var V=!1;if((null==T||""==T[1])&&0<=result.indexOf("<mxGraphModel")){var fa=Editor.repairTruncatedXml(result);null!=fa&&(T=Editor.extractGraphModelFromText(fa),V=""!=T[1])}if(null!=T&&""!=T[1])v.clear()&&g(T[1],V);else if("<"==mxUtils.trim(result).charAt(0))v.clear()&&g(result);else{var y=this.extractMermaidDeclaration(result)||-result;this.parseMermaidDiagram(y,null,mxUtils.bind(this,function(d){this.tryAndHandle(mxUtils.bind(this,function(){v.clear()&&g(mxMermaidToDrawio.wrapGroup(d,y,EditorUi.getInsertMermaidConfig()))}),R)}),R,M)}}),R,!0);else{var U={message:mxResources.get("error")+" "+O.getStatus()};try{U=JSON.parse(O.getText()),null!=U.error&&(U.message=U.error)}catch(T){}R(U)}}),R)}),l)});t()};EditorUi.prototype.extractMermaidDeclaration=function(c){c=mxUtils.trim(c);"o\n\n"==c.substring(0,3)&&(c=c.substring(3));-var g=c.split("```");g=1<g.length?g:c.split("<pre>");g=1<g.length?g:c.split("~~~");g=1<g.length?g:c.split("(Begins)");for(var l=mxUtils.trim(1>=g.length?c:g[1]),n=l.split("\n"),r=0;r<n.length&&("mermaid"==n[r]||0==n[r].trim().length||"%%"==n[r].substring(0,2));)r++;l=[];for(var t=r;t<n.length;t++){var v=mxUtils.trim(n[t]);if("%%"!=v.substring(0,2)&&"classDef "!=v.substring(0,9))l.push(n[t]);else if("mermaid"==v)break}n=l;l=mxUtils.trim(n.join("\n"));t="undefined"!==typeof MermaidParser?MermaidParser.detectType(l):-null;EditorUi.debug("EditorUi.extractMermaidDeclaration","value",[c],"text",[l],"typeInfo",[t],"startLine",r,"lines",n,"tokens",g);return null!=t?l:null};EditorUi.prototype.getMermaidDiagramType=function(c){var g=null!=c?c.split("\n"):[],l=0;c=function(){for(;l<g.length&&(0==g[l].trim().length||"%%"==g[l].substring(0,2));)l++};c();if(l<g.length&&"---"==g[l].trim()){do l++;while(l<g.length&&"---"!=g[l].trim());l++;c()}if(l>=g.length)return"";c=g[l].trim().toLowerCase();var n=c.indexOf(" ");return c.substring(0,-0<n?n:c.length)};EditorUi.prototype.isMermaidElkFlowchart=function(c){return null!=c&&(/defaultRenderer["']?\s*:\s*["']?elk/i.test(c)||/(?:^|\n)\s*layout\s*:\s*["']?elk\b/i.test(c))&&/(?:flowchart|graph)\b/i.test(c)};EditorUi.prototype.applyMermaidElkPostPass=function(c,g,l){if("undefined"===typeof ElkLayout||"undefined"===typeof Graph)l(c);else{g=g.match(/(?:flowchart|graph)\s+(LR|RL|TB|TD|BT)/i);var n={LR:"RIGHT",RL:"LEFT",TB:"DOWN",TD:"DOWN",BT:"UP"};g=g?n[g[1].toUpperCase()]||"DOWN":"DOWN";var r=-document.createElement("div");r.style.cssText="position:absolute;left:-99999px;top:-99999px;width:1200px;height:800px;visibility:hidden;";document.body.appendChild(r);var t=null,v=!1,B=function(K){if(!v){v=!0;try{null!=t&&t.destroy()}catch(C){}r.remove();l(K)}};try{t=new Graph(r);t.foldingEnabled=!1;t.setEnabled(!1);t.setHtmlLabels(!0);var E=mxUtils.parseXml(c);(new mxCodec(E)).decode(E.documentElement,t.getModel());(new ElkLayout(t,"layered",{"elk.direction":g,"elk.layered.cycleBreaking.strategy":"GREEDY"},-Object.assign({mermaidPolicy:!0},ElkLayout.CANONICAL_EDGE))).execute(t.getDefaultParent(),function(K){var C=null;if(!K)try{var R=new mxCodec;C=mxUtils.getXml(R.encode(t.getModel()))}catch(M){}B(null!=C?C:c)})}catch(K){if(v)throw K;B(c)}}};EditorUi.prototype.parseMermaidDiagram=function(c,g,l,n,r){var t=mxUtils.bind(this,function(B){null!=r?r(B):null!=n?n(B):this.handleError(B)});if(EditorUi.isMermaidSupported())try{var v=mxMermaidToDrawio.parseText(c,this.getMermaidConfig(c,g));null!=v?this.isMermaidElkFlowchart(c)?-this.applyMermaidElkPostPass(v,c,l):l(v):t(Error("Unsupported diagram type: "+this.getMermaidDiagramType(c)))}catch(B){t(B)}else t(Error("Mermaid parser not available"))};EditorUi.prototype.loadMermaid=function(c,g){var l=mxUtils.bind(this,function(r){this.loadingMermaid=!1;g(r)}),n=mxUtils.bind(this,function(){try{this.loadingMermaid=!1,c()}catch(r){l(r)}});"undefined"!==typeof mxMermaidToDrawio||this.loadingMermaid||this.isOffline(!0)?window.setTimeout(n,0):(this.loadingMermaid=!0,"undefined"!==-typeof urlParams&&"1"==urlParams.dev||window.location.search&&0<=window.location.search.indexOf("dev=1")?mxscript("js/elk/drawio-elk.min.js",function(){mxscript("js/mermaid/drawio-mermaid.min.js",n,null,null,null,l)},null,null,null,l):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",n,null,null,null,l))};EditorUi.prototype.loadPlantUml=function(c,g){var l=mxUtils.bind(this,function(t){this.loadingPlantUml=!1;g(t)}),n=mxUtils.bind(this,function(){try{this.loadingPlantUml=!1,c()}catch(t){l(t)}});-if("undefined"!==typeof mxPlantUmlToDrawio||this.loadingPlantUml)window.setTimeout(n,0);else{this.loadingPlantUml=!0;var r="undefined"!==typeof urlParams&&"1"==urlParams.dev||window.location.search&&0<=window.location.search.indexOf("dev=1");mxscript((r?"":window.DRAWIO_SERVER_URL)+"js/plantuml/drawio-plantuml.min.js",n,null,null,null,l)}};EditorUi.prototype.loadGliffy=function(c,g){if(EditorUi.isNativeGliffySupported())window.setTimeout(c,0);else if(null==this.gliffyLoadQueue&&(this.gliffyLoadQueue=-[]),this.gliffyLoadQueue.push({success:c,error:g}),!this.loadingGliffy){this.loadingGliffy=!0;c="undefined"!==typeof urlParams&&"1"==urlParams.dev||window.location.search&&0<=window.location.search.indexOf("dev=1");var l=mxUtils.bind(this,function(n){this.loadingGliffy=!1;var r=this.gliffyLoadQueue;this.gliffyLoadQueue=null;for(var t=0;t<r.length;t++)try{null==n&&EditorUi.isNativeGliffySupported()?r[t].success():null!=r[t].error&&r[t].error(n)}catch(v){null!=r[t].error&&r[t].error(v)}});mxscript((c?-"":window.DRAWIO_SERVER_URL)+"js/gliffy/drawio-gliffy.min.js",function(){l(null)},null,null,null,l)}};EditorUi.prototype.parsePlantUmlDiagram=function(c,g,l,n){var r=mxUtils.bind(this,function(t){null!=n?n(t):this.handleError(t)});this.loadPlantUml(mxUtils.bind(this,function(){if(EditorUi.isNativePlantUmlSupported())try{l(mxPlantUmlToDrawio.parseText(c,g))}catch(t){r(t)}else r(Error("PlantUML parser not available"))}),r)};EditorUi.prototype.parsePlantUmlImage=function(c,g,l){this.parsePlantUmlDiagram(c,-null,mxUtils.bind(this,function(n){g(this.createMermaidImageXml(c,null,n,null,null,"plantUmlData"))}),l)};EditorUi.prototype.getMermaidConfig=function(c,g){g=null!=g?g:mxUtils.clone(EditorUi.defaultMermaidConfig);g.securityLevel="strict";g.startOnLoad=!1;g.maxTextSize=9E5;return g};EditorUi.prototype.getMermaidImageForXml=function(c,g){g=parseFloat(g);g=isNaN(g)?EditorUi.mermaidImageBorder:g;c=this.getSvgForXml(c,g,"auto");var l=parseFloat(c.getAttribute("width")),n=parseFloat(c.getAttribute("height"));-if(isNaN(l)||isNaN(n)){try{var r=c.getAttribute("viewBox").split(/\s+/);l=parseFloat(r[2]);n=parseFloat(r[3])}catch(t){}l=l||100;n=n||100}return{data:this.convertDataUri(Editor.createSvgDataUri(mxUtils.getXml(c))),width:l,height:n,border:g}};EditorUi.prototype.createMermaidImageXml=function(c,g,l,n,r,t){r=this.getMermaidImageForXml(l,r);l=new Graph(document.createElement("div"));r=l.insertVertex(null,null,null,0,0,r.width,r.height,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;editIcon=1;groupPadding="+-r.border+";image="+r.data+";");l.setAttributeForCell(r,null!=t?t:"mermaidData",JSON.stringify({data:c,config:g},null,2));null!=n&&l.setAttributeForCell(r,"templatePrompt",n);c=new mxCodec;return mxUtils.getXml(c.encode(l.getModel()))};EditorUi.prototype.parseMermaidImage=function(c,g,l){var n=EditorUi.isMermaidConfigured(),r=mxUtils.clone(n?EditorUi.defaultMermaidConfig:EditorUi.legacyMermaidConfig),t=n?r:null;this.parseMermaidDiagram(c,mxUtils.clone(r),mxUtils.bind(this,function(v){g(this.createMermaidImageXml(c,-t,v))}),l)};EditorUi.prototype.getMermaidImageBorder=function(c,g){c=parseFloat(mxUtils.getValue(this.editor.graph.getCurrentCellStyle(c,!0),"groupPadding",""));return isNaN(c)?g:c};EditorUi.prototype.updateMermaidImage=function(c,g,l,n,r,t){var v=this.editor.graph;n=this.getMermaidImageForXml(n,r);v.setCellStyles("image",n.data,[c]);v.setCellStyles("editIcon","1",[c]);v.setCellStyles("groupPadding",n.border,[c]);r=v.model.getGeometry(c);null!=r&&(r=r.clone(),r.width=n.width,r.height=n.height,v.cellsResized([c],-[r],!1));v.setAttributeForCell(c,null!=t?t:"mermaidData",JSON.stringify({data:g,config:l},null,2))};EditorUi.prototype.refreshMermaidImage=function(c){var g=this.editor.graph,l=g.getAttributeForCell(c,"plantUmlData"),n=null!=l?"plantUmlData":"mermaidData";l=null!=l?l:g.getAttributeForCell(c,"mermaidData");var r=null;if(null!=l)try{r=JSON.parse(l)}catch(E){}if(null!=r&&null!=r.data&&null==r.format){var t=this.getMermaidImageBorder(c,r.border);l=function(){};var v="plantUmlData"==n||null==r.config?-null:r.config,B=mxUtils.bind(this,function(E){if(g.model.contains(c)&&this.getMermaidImageBorder(c,r.border)==t){g.model.beginUpdate();try{this.updateMermaidImage(c,r.data,v,E,t,n)}finally{g.model.endUpdate()}}});"plantUmlData"==n?this.parsePlantUmlDiagram(r.data,null,B,l):this.parseMermaidDiagram(r.data,mxUtils.clone(null!=r.config?r.config:EditorUi.legacyMermaidConfig),B,l)}};EditorUi.prototype.replaceMermaidCell=function(c,g){var l=this.editor.graph,n=l.getBoundingBoxFromGeometry([c]),r=null!=-n?n.x:0;n=null!=n?n.y:0;for(var t=l.model.getParent(c);null!=t&&l.model.isVertex(t);){var v=l.model.getGeometry(t);null!=v&&(r+=v.x,n+=v.y);t=l.model.getParent(t)}l.getModel().beginUpdate();try{var B=this.importXml(g,r,n,!0,null,null,!0);l.model.remove(c);l.setSelectionCells(B)}finally{l.getModel().endUpdate()}l.scrollCellToVisible(l.getSelectionCell());return B};EditorUi.prototype.insertAsPreText=function(c,g,l){var n=this.editor.graph,r=null;n.getModel().beginUpdate();try{r=n.insertVertex(null,-null,"<pre>"+c+"</pre>",g,l,1,1,"text;html=1;align=left;verticalAlign=top;"),n.updateCellSize(r,!0)}finally{n.getModel().endUpdate()}return r};EditorUi.prototype.insertTextAt=function(c,g,l,n,r,t,v,B){t=null!=t?t:!0;v=null!=v?v:!0;if(null!=c)if(Graph.fileSupport&&this.isGliffyData(c))this.importGliffy(c.replace(/\s+/g," "),mxUtils.bind(this,function(M){this.editor.graph.setSelectionCells(this.insertTextAt(M,g,l,!0))}));else if("data:"==c.substring(0,5)||!this.isOffline()&&(r||/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c))){var E=-this.editor.graph;if("data:application/pdf;base64,"==c.substring(0,28)){var K=Editor.extractGraphModelFromPdf(c);if(null!=K&&0<K.length)return this.importXml(K,g,l,t,!0,B)}if(Editor.isPngDataUrl(c)&&(K=Editor.extractGraphModelFromPng(c),null!=K&&0<K.length))return this.importXml(K,g,l,t,!0,B);if("data:image/svg+xml;"==c.substring(0,19))try{K=null;"data:image/svg+xml;base64,"==c.substring(0,26)?(K=c.substring(c.indexOf(",")+1),K=window.atob&&!mxClient.IS_SF?atob(K):Base64.decode(K,!0)):K=decodeURIComponent(c.substring(c.indexOf(",")+-1));var C=this.importXml(K,g,l,t,!0,B);if(0<C.length)return C}catch(M){}this.loadImage(c,mxUtils.bind(this,function(M){if("data:"==c.substring(0,5))this.resizeImage(M,Editor.stripImageMetadata(c,Editor.removeImageMetadata),mxUtils.bind(this,function(T,V,fa){E.setSelectionCell(E.insertVertex(null,null,"",E.snap(g),E.snap(l),V,fa,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+this.convertDataUri(T)+";"))}),v,this.maxImageSize);-else{var O=Math.min(1,Math.min(this.maxImageSize/M.width,this.maxImageSize/M.height)),U=Math.round(M.width*O);M=Math.round(M.height*O);E.setSelectionCell(E.insertVertex(null,null,"",E.snap(g),E.snap(l),U,M,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+c+";"))}}),mxUtils.bind(this,function(){var M=null;E.getModel().beginUpdate();try{M=E.insertVertex(E.getDefaultParent(),null,c,E.snap(g),E.snap(l),1,1,"text;"+(n?"html=1;":-"")),E.updateCellSize(M),E.fireEvent(new mxEventObject("textInserted","cells",[M]))}finally{E.getModel().endUpdate()}E.setSelectionCell(M)}))}else{c=Graph.zapGremlins(mxUtils.trim(c));if(this.isCompatibleString(c))return this.importXml(c,g,l,t,null,B);if(0<c.length)if(this.isLucidChartData(c))this.convertLucidChart(c,mxUtils.bind(this,function(M){this.editor.graph.setSelectionCells(this.importXml(M,g,l,t,null,B))}),mxUtils.bind(this,function(M){this.handleError(M)}));else{E=this.editor.graph;r=null;-E.getModel().beginUpdate();try{r=E.insertVertex(E.getDefaultParent(),null,"",E.snap(g),E.snap(l),1,1,"text;whiteSpace=wrap;"+(n?"html=1;":""));E.fireEvent(new mxEventObject("textInserted","cells",[r]));n&&(c=E.sanitizeHtml(c));c.length>this.maxTextBytes&&(c=c.substring(0,this.maxTextBytes)+"...");r.value=c;E.updateCellSize(r);if(0<this.maxTextWidth&&r.geometry.width>this.maxTextWidth){var R=E.getPreferredSizeForCell(r,this.maxTextWidth);r.geometry.width=R.width;r.geometry.height=R.height}Graph.isLink(r.value)&&-E.setLinkForCell(r,r.value);r.geometry.width+=E.gridSize;r.geometry.height+=E.gridSize}finally{E.getModel().endUpdate()}return[r]}}return[]};EditorUi.prototype.formatFileSize=function(c){var g=-1;do c/=1024,g++;while(1024<c);return Math.max(c,.1).toFixed(1)+" kB; MB; GB; TB;PB;EB;ZB;YB".split(";")[g]};EditorUi.prototype.convertDataUri=function(c){if("data:"==c.substring(0,5)){var g=c.indexOf(";");0<g&&(c=c.substring(0,g)+c.substring(c.indexOf(",",g+1)))}return c};EditorUi.prototype.isGliffyData=function(c,-g){return/("contentType":\s*"application\/gliffy\+json")/.test(c)};EditorUi.prototype.isRemoteFileFormat=function(c,g){return this.isGliffyData(c,g)};EditorUi.prototype.isLucidChartData=function(c){return null!=c&&('{"state":"{\\"Properties\\":'==c.substring(0,26)||'{"Properties":'==c.substring(0,14))};EditorUi.prototype.importLocalFile=function(c,g){if(c&&Graph.fileSupport){if(null==this.importFileInputElt){var l=document.createElement("input");l.setAttribute("type","file");mxEvent.addListener(l,+result=T.result}catch(d){result=T}EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"data",[K],"response",[T],"time",Date.now()-C+" ms");T=Editor.extractGraphModelFromText(result);var V=!1;if((null==T||""==T[1])&&0<=result.indexOf("<mxGraphModel")){var fa=Editor.repairTruncatedXml(result);null!=fa&&(T=Editor.extractGraphModelFromText(fa),V=""!=T[1])}if(null!=T&&""!=T[1])v.clear()&&f(T[1],V);else if("<"==mxUtils.trim(result).charAt(0))v.clear()&&f(result);else{var y=this.extractMermaidDeclaration(result)||+result;this.parseMermaidDiagram(y,null,mxUtils.bind(this,function(d){this.tryAndHandle(mxUtils.bind(this,function(){v.clear()&&f(mxMermaidToDrawio.wrapGroup(d,y,EditorUi.getInsertMermaidConfig()))}),R)}),R,M)}}),R,!0);else{var U={message:mxResources.get("error")+" "+O.getStatus()};try{U=JSON.parse(O.getText()),null!=U.error&&(U.message=U.error)}catch(T){}R(U)}}),R)}),l)});t()};EditorUi.prototype.extractMermaidDeclaration=function(c){c=mxUtils.trim(c);"o\n\n"==c.substring(0,3)&&(c=c.substring(3));+var f=c.split("```");f=1<f.length?f:c.split("<pre>");f=1<f.length?f:c.split("~~~");f=1<f.length?f:c.split("(Begins)");for(var l=mxUtils.trim(1>=f.length?c:f[1]),n=l.split("\n"),r=0;r<n.length&&("mermaid"==n[r]||0==n[r].trim().length||"%%"==n[r].substring(0,2));)r++;l=[];for(var t=r;t<n.length;t++){var v=mxUtils.trim(n[t]);if("%%"!=v.substring(0,2)&&"classDef "!=v.substring(0,9))l.push(n[t]);else if("mermaid"==v)break}n=l;l=mxUtils.trim(n.join("\n"));t="undefined"!==typeof MermaidParser?MermaidParser.detectType(l):+null;EditorUi.debug("EditorUi.extractMermaidDeclaration","value",[c],"text",[l],"typeInfo",[t],"startLine",r,"lines",n,"tokens",f);return null!=t?l:null};EditorUi.prototype.getMermaidDiagramType=function(c){var f=null!=c?c.split("\n"):[],l=0;c=function(){for(;l<f.length&&(0==f[l].trim().length||"%%"==f[l].substring(0,2));)l++};c();if(l<f.length&&"---"==f[l].trim()){do l++;while(l<f.length&&"---"!=f[l].trim());l++;c()}if(l>=f.length)return"";c=f[l].trim().toLowerCase();var n=c.indexOf(" ");return c.substring(0,+0<n?n:c.length)};EditorUi.prototype.isMermaidElkFlowchart=function(c){return null!=c&&(/defaultRenderer["']?\s*:\s*["']?elk/i.test(c)||/(?:^|\n)\s*layout\s*:\s*["']?elk\b/i.test(c))&&/(?:flowchart|graph)\b/i.test(c)};EditorUi.prototype.applyMermaidElkPostPass=function(c,f,l){if("undefined"===typeof ElkLayout||"undefined"===typeof Graph)l(c);else{f=f.match(/(?:flowchart|graph)\s+(LR|RL|TB|TD|BT)/i);var n={LR:"RIGHT",RL:"LEFT",TB:"DOWN",TD:"DOWN",BT:"UP"};f=f?n[f[1].toUpperCase()]||"DOWN":"DOWN";var r=+document.createElement("div");r.style.cssText="position:absolute;left:-99999px;top:-99999px;width:1200px;height:800px;visibility:hidden;";document.body.appendChild(r);var t=null,v=!1,B=function(K){if(!v){v=!0;try{null!=t&&t.destroy()}catch(C){}r.remove();l(K)}};try{t=new Graph(r);t.foldingEnabled=!1;t.setEnabled(!1);t.setHtmlLabels(!0);var E=mxUtils.parseXml(c);(new mxCodec(E)).decode(E.documentElement,t.getModel());(new ElkLayout(t,"layered",{"elk.direction":f,"elk.layered.cycleBreaking.strategy":"GREEDY"},+Object.assign({mermaidPolicy:!0},ElkLayout.CANONICAL_EDGE))).execute(t.getDefaultParent(),function(K){var C=null;if(!K)try{var R=new mxCodec;C=mxUtils.getXml(R.encode(t.getModel()))}catch(M){}B(null!=C?C:c)})}catch(K){if(v)throw K;B(c)}}};EditorUi.prototype.parseMermaidDiagram=function(c,f,l,n,r){var t=mxUtils.bind(this,function(B){null!=r?r(B):null!=n?n(B):this.handleError(B)});if(EditorUi.isMermaidSupported())try{var v=mxMermaidToDrawio.parseText(c,this.getMermaidConfig(c,f));null!=v?this.isMermaidElkFlowchart(c)?+this.applyMermaidElkPostPass(v,c,l):l(v):t(Error("Unsupported diagram type: "+this.getMermaidDiagramType(c)))}catch(B){t(B)}else t(Error("Mermaid parser not available"))};EditorUi.prototype.loadMermaid=function(c,f){var l=mxUtils.bind(this,function(r){this.loadingMermaid=!1;f(r)}),n=mxUtils.bind(this,function(){try{this.loadingMermaid=!1,c()}catch(r){l(r)}});"undefined"!==typeof mxMermaidToDrawio||this.loadingMermaid||this.isOffline(!0)?window.setTimeout(n,0):(this.loadingMermaid=!0,"undefined"!==+typeof urlParams&&"1"==urlParams.dev||window.location.search&&0<=window.location.search.indexOf("dev=1")?mxscript("js/elk/drawio-elk.min.js",function(){mxscript("js/mermaid/drawio-mermaid.min.js",n,null,null,null,l)},null,null,null,l):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",n,null,null,null,l))};EditorUi.prototype.loadPlantUml=function(c,f){var l=mxUtils.bind(this,function(t){this.loadingPlantUml=!1;f(t)}),n=mxUtils.bind(this,function(){try{this.loadingPlantUml=!1,c()}catch(t){l(t)}});+if("undefined"!==typeof mxPlantUmlToDrawio||this.loadingPlantUml)window.setTimeout(n,0);else{this.loadingPlantUml=!0;var r="undefined"!==typeof urlParams&&"1"==urlParams.dev||window.location.search&&0<=window.location.search.indexOf("dev=1");mxscript((r?"":window.DRAWIO_SERVER_URL)+"js/plantuml/drawio-plantuml.min.js",n,null,null,null,l)}};EditorUi.prototype.loadGliffy=function(c,f){if(EditorUi.isNativeGliffySupported())window.setTimeout(c,0);else if(null==this.gliffyLoadQueue&&(this.gliffyLoadQueue=+[]),this.gliffyLoadQueue.push({success:c,error:f}),!this.loadingGliffy){this.loadingGliffy=!0;c="undefined"!==typeof urlParams&&"1"==urlParams.dev||window.location.search&&0<=window.location.search.indexOf("dev=1");var l=mxUtils.bind(this,function(n){this.loadingGliffy=!1;var r=this.gliffyLoadQueue;this.gliffyLoadQueue=null;for(var t=0;t<r.length;t++)try{null==n&&EditorUi.isNativeGliffySupported()?r[t].success():null!=r[t].error&&r[t].error(n)}catch(v){null!=r[t].error&&r[t].error(v)}});mxscript((c?+"":window.DRAWIO_SERVER_URL)+"js/gliffy/drawio-gliffy.min.js",function(){l(null)},null,null,null,l)}};EditorUi.prototype.parsePlantUmlDiagram=function(c,f,l,n){var r=mxUtils.bind(this,function(t){null!=n?n(t):this.handleError(t)});this.loadPlantUml(mxUtils.bind(this,function(){if(EditorUi.isNativePlantUmlSupported())try{l(mxPlantUmlToDrawio.parseText(c,f))}catch(t){r(t)}else r(Error("PlantUML parser not available"))}),r)};EditorUi.prototype.parsePlantUmlImage=function(c,f,l){this.parsePlantUmlDiagram(c,+null,mxUtils.bind(this,function(n){f(this.createMermaidImageXml(c,null,n,null,null,"plantUmlData"))}),l)};EditorUi.prototype.getMermaidConfig=function(c,f){f=null!=f?f:mxUtils.clone(EditorUi.defaultMermaidConfig);f.securityLevel="strict";f.startOnLoad=!1;f.maxTextSize=9E5;return f};EditorUi.prototype.getMermaidImageForXml=function(c,f){f=parseFloat(f);f=isNaN(f)?EditorUi.mermaidImageBorder:f;c=this.getSvgForXml(c,f,"auto");var l=parseFloat(c.getAttribute("width")),n=parseFloat(c.getAttribute("height"));+if(isNaN(l)||isNaN(n)){try{var r=c.getAttribute("viewBox").split(/\s+/);l=parseFloat(r[2]);n=parseFloat(r[3])}catch(t){}l=l||100;n=n||100}return{data:this.convertDataUri(Editor.createSvgDataUri(mxUtils.getXml(c))),width:l,height:n,border:f}};EditorUi.prototype.createMermaidImageXml=function(c,f,l,n,r,t){r=this.getMermaidImageForXml(l,r);l=new Graph(document.createElement("div"));r=l.insertVertex(null,null,null,0,0,r.width,r.height,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;editIcon=1;groupPadding="++r.border+";image="+r.data+";");l.setAttributeForCell(r,null!=t?t:"mermaidData",JSON.stringify({data:c,config:f},null,2));null!=n&&l.setAttributeForCell(r,"templatePrompt",n);c=new mxCodec;return mxUtils.getXml(c.encode(l.getModel()))};EditorUi.prototype.parseMermaidImage=function(c,f,l){var n=EditorUi.isMermaidConfigured(),r=mxUtils.clone(n?EditorUi.defaultMermaidConfig:EditorUi.legacyMermaidConfig),t=n?r:null;this.parseMermaidDiagram(c,mxUtils.clone(r),mxUtils.bind(this,function(v){f(this.createMermaidImageXml(c,+t,v))}),l)};EditorUi.prototype.getMermaidImageBorder=function(c,f){c=parseFloat(mxUtils.getValue(this.editor.graph.getCurrentCellStyle(c,!0),"groupPadding",""));return isNaN(c)?f:c};EditorUi.prototype.updateMermaidImage=function(c,f,l,n,r,t){var v=this.editor.graph;n=this.getMermaidImageForXml(n,r);v.setCellStyles("image",n.data,[c]);v.setCellStyles("editIcon","1",[c]);v.setCellStyles("groupPadding",n.border,[c]);r=v.model.getGeometry(c);null!=r&&(r=r.clone(),r.width=n.width,r.height=n.height,v.cellsResized([c],+[r],!1));v.setAttributeForCell(c,null!=t?t:"mermaidData",JSON.stringify({data:f,config:l},null,2))};EditorUi.prototype.refreshMermaidImage=function(c){var f=this.editor.graph,l=f.getAttributeForCell(c,"plantUmlData"),n=null!=l?"plantUmlData":"mermaidData";l=null!=l?l:f.getAttributeForCell(c,"mermaidData");var r=null;if(null!=l)try{r=JSON.parse(l)}catch(E){}if(null!=r&&null!=r.data&&null==r.format){var t=this.getMermaidImageBorder(c,r.border);l=function(){};var v="plantUmlData"==n||null==r.config?+null:r.config,B=mxUtils.bind(this,function(E){if(f.model.contains(c)&&this.getMermaidImageBorder(c,r.border)==t){f.model.beginUpdate();try{this.updateMermaidImage(c,r.data,v,E,t,n)}finally{f.model.endUpdate()}}});"plantUmlData"==n?this.parsePlantUmlDiagram(r.data,null,B,l):this.parseMermaidDiagram(r.data,mxUtils.clone(null!=r.config?r.config:EditorUi.legacyMermaidConfig),B,l)}};EditorUi.prototype.replaceMermaidCell=function(c,f){var l=this.editor.graph,n=l.getBoundingBoxFromGeometry([c]),r=null!=+n?n.x:0;n=null!=n?n.y:0;for(var t=l.model.getParent(c);null!=t&&l.model.isVertex(t);){var v=l.model.getGeometry(t);null!=v&&(r+=v.x,n+=v.y);t=l.model.getParent(t)}l.getModel().beginUpdate();try{var B=this.importXml(f,r,n,!0,null,null,!0);l.model.remove(c);l.setSelectionCells(B)}finally{l.getModel().endUpdate()}l.scrollCellToVisible(l.getSelectionCell());return B};EditorUi.prototype.insertAsPreText=function(c,f,l){var n=this.editor.graph,r=null;n.getModel().beginUpdate();try{r=n.insertVertex(null,+null,"<pre>"+c+"</pre>",f,l,1,1,"text;html=1;align=left;verticalAlign=top;"),n.updateCellSize(r,!0)}finally{n.getModel().endUpdate()}return r};EditorUi.prototype.insertTextAt=function(c,f,l,n,r,t,v,B){t=null!=t?t:!0;v=null!=v?v:!0;if(null!=c)if(Graph.fileSupport&&this.isGliffyData(c))this.importGliffy(c.replace(/\s+/g," "),mxUtils.bind(this,function(M){this.editor.graph.setSelectionCells(this.insertTextAt(M,f,l,!0))}));else if("data:"==c.substring(0,5)||!this.isOffline()&&(r||/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c))){var E=+this.editor.graph;if("data:application/pdf;base64,"==c.substring(0,28)){var K=Editor.extractGraphModelFromPdf(c);if(null!=K&&0<K.length)return this.importXml(K,f,l,t,!0,B)}if(Editor.isPngDataUrl(c)&&(K=Editor.extractGraphModelFromPng(c),null!=K&&0<K.length))return this.importXml(K,f,l,t,!0,B);if("data:image/svg+xml;"==c.substring(0,19))try{K=null;"data:image/svg+xml;base64,"==c.substring(0,26)?(K=c.substring(c.indexOf(",")+1),K=window.atob&&!mxClient.IS_SF?atob(K):Base64.decode(K,!0)):K=decodeURIComponent(c.substring(c.indexOf(",")++1));var C=this.importXml(K,f,l,t,!0,B);if(0<C.length)return C}catch(M){}this.loadImage(c,mxUtils.bind(this,function(M){if("data:"==c.substring(0,5))this.resizeImage(M,Editor.stripImageMetadata(c,Editor.removeImageMetadata),mxUtils.bind(this,function(T,V,fa){E.setSelectionCell(E.insertVertex(null,null,"",E.snap(f),E.snap(l),V,fa,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+this.convertDataUri(T)+";"))}),v,this.maxImageSize);+else{var O=Math.min(1,Math.min(this.maxImageSize/M.width,this.maxImageSize/M.height)),U=Math.round(M.width*O);M=Math.round(M.height*O);E.setSelectionCell(E.insertVertex(null,null,"",E.snap(f),E.snap(l),U,M,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+c+";"))}}),mxUtils.bind(this,function(){var M=null;E.getModel().beginUpdate();try{M=E.insertVertex(E.getDefaultParent(),null,c,E.snap(f),E.snap(l),1,1,"text;"+(n?"html=1;":+"")),E.updateCellSize(M),E.fireEvent(new mxEventObject("textInserted","cells",[M]))}finally{E.getModel().endUpdate()}E.setSelectionCell(M)}))}else{c=Graph.zapGremlins(mxUtils.trim(c));if(this.isCompatibleString(c))return this.importXml(c,f,l,t,null,B);if(0<c.length)if(this.isLucidChartData(c))this.convertLucidChart(c,mxUtils.bind(this,function(M){this.editor.graph.setSelectionCells(this.importXml(M,f,l,t,null,B))}),mxUtils.bind(this,function(M){this.handleError(M)}));else{E=this.editor.graph;r=null;+E.getModel().beginUpdate();try{r=E.insertVertex(E.getDefaultParent(),null,"",E.snap(f),E.snap(l),1,1,"text;whiteSpace=wrap;"+(n?"html=1;":""));E.fireEvent(new mxEventObject("textInserted","cells",[r]));n&&(c=E.sanitizeHtml(c));c.length>this.maxTextBytes&&(c=c.substring(0,this.maxTextBytes)+"...");r.value=c;E.updateCellSize(r);if(0<this.maxTextWidth&&r.geometry.width>this.maxTextWidth){var R=E.getPreferredSizeForCell(r,this.maxTextWidth);r.geometry.width=R.width;r.geometry.height=R.height}Graph.isLink(r.value)&&+E.setLinkForCell(r,r.value);r.geometry.width+=E.gridSize;r.geometry.height+=E.gridSize}finally{E.getModel().endUpdate()}return[r]}}return[]};EditorUi.prototype.formatFileSize=function(c){var f=-1;do c/=1024,f++;while(1024<c);return Math.max(c,.1).toFixed(1)+" kB; MB; GB; TB;PB;EB;ZB;YB".split(";")[f]};EditorUi.prototype.convertDataUri=function(c){if("data:"==c.substring(0,5)){var f=c.indexOf(";");0<f&&(c=c.substring(0,f)+c.substring(c.indexOf(",",f+1)))}return c};EditorUi.prototype.isGliffyData=function(c,+f){return/("contentType":\s*"application\/gliffy\+json")/.test(c)};EditorUi.prototype.isRemoteFileFormat=function(c,f){return this.isGliffyData(c,f)};EditorUi.prototype.isLucidChartData=function(c){return null!=c&&('{"state":"{\\"Properties\\":'==c.substring(0,26)||'{"Properties":'==c.substring(0,14))};EditorUi.prototype.importLocalFile=function(c,f){if(c&&Graph.fileSupport){if(null==this.importFileInputElt){var l=document.createElement("input");l.setAttribute("type","file");mxEvent.addListener(l,"change",mxUtils.bind(this,function(){null!=l.files&&(this.importFiles(l.files,null,null,this.maxImageSize),l.type="",l.type="file",l.value="")}));l.style.display="none";document.body.appendChild(l);this.importFileInputElt=l}this.importFileInputElt.click()}else{window.openNew=!1;window.openKey="import";window.listBrowserFiles=mxUtils.bind(this,function(v,B){StorageFile.listFiles(this,"F",v,B)});window.openBrowserFile=mxUtils.bind(this,function(v,B,E){StorageFile.getFileContent(this,v,B,E)});window.deleteBrowserFile=-mxUtils.bind(this,function(v,B,E){StorageFile.deleteFile(this,v,B,E)});if(!g){var n=Editor.useLocalStorage;Editor.useLocalStorage=!c}window.openFile=new OpenFile(mxUtils.bind(this,function(v){this.hideDialog(v)}));window.openFile.setConsumer(mxUtils.bind(this,function(v,B){null!=B&&Graph.fileSupport&&/(\.v(dx|sdx?))($|\?)/i.test(B)?(v=new Blob([v],{type:"application/octet-stream"}),this.importVisio(v,mxUtils.bind(this,function(E){this.importXml(E,0,0,!0)}),null,B)):this.editor.graph.setSelectionCells(this.importXml(v,-0,0,!0))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null});if(!g){var r=this.dialog,t=r.close;this.dialog.close=mxUtils.bind(this,function(v){Editor.useLocalStorage=n;t.apply(r,arguments);v&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=function(c,g,l){var n=this,r=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?-JSZip.loadAsync(c).then(function(t){if(mxUtils.isEmptyObject(t.files))l();else{var v=0,B,E=!1;t.forEach(function(K,C){K=C.name.toLowerCase();"diagram/diagram.xml"==K?(E=!0,C.async("string").then(function(R){0==R.indexOf("<mxfile ")?g(R):l()})):0==K.indexOf("versions/")&&(K=parseInt(K.substr(9)),K>v&&(v=K,B=C))});0<v?B.async("string").then(function(K){n.isGliffyData(K,c.name)?n.importGliffy(K,function(C){g(C)},function(){l()},c.name):l()}):E||l()}},function(t){l(t)}):l()});"undefined"!==typeof JSZip||-this.loadingExtensions||this.isOffline(!0)?r():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",r,null,null,null,l))};EditorUi.prototype.importFile=function(c,g,l,n,r,t,v,B,E,K,C,R){K=null!=K?K:!0;var M=!1,O=null,U=mxUtils.bind(this,function(fa){var y=null;null!=fa&&"<mxlibrary"==fa.substring(0,10)?(this.loadLibrary(new LocalLibrary(this,fa,v)),this.showSidebar()):y=this.importXml(fa,l,n,K,null,null!=R?mxEvent.isControlDown(R):null);null!=B&&B(y)});if("image"==g.substring(0,-5))E=!1,"image/png"==g.substring(0,9)&&(C=C?null:this.extractGraphModelFromPng(c),null!=C&&0<C.length&&(O=this.importXml(C,l,n,K,null,null!=R?mxEvent.isControlDown(R):null),E=!0)),E||(C=this.editor.graph,E=c.indexOf(";"),0<E&&(c=c.substring(0,E)+c.substring(c.indexOf(",",E+1))),K&&C.isGridEnabled()&&(l=C.snap(l),n=C.snap(n)),E="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;","image/svg"==g.substring(0,9)&&(E+="editableCssRules=.*;"),+mxUtils.bind(this,function(v,B,E){StorageFile.deleteFile(this,v,B,E)});if(!f){var n=Editor.useLocalStorage;Editor.useLocalStorage=!c}window.openFile=new OpenFile(mxUtils.bind(this,function(v){this.hideDialog(v)}));window.openFile.setConsumer(mxUtils.bind(this,function(v,B){null!=B&&Graph.fileSupport&&/(\.v(dx|sdx?))($|\?)/i.test(B)?(v=new Blob([v],{type:"application/octet-stream"}),this.importVisio(v,mxUtils.bind(this,function(E){this.importXml(E,0,0,!0)}),null,B)):this.editor.graph.setSelectionCells(this.importXml(v,+0,0,!0))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null});if(!f){var r=this.dialog,t=r.close;this.dialog.close=mxUtils.bind(this,function(v){Editor.useLocalStorage=n;t.apply(r,arguments);v&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=function(c,f,l){var n=this,r=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?+JSZip.loadAsync(c).then(function(t){if(mxUtils.isEmptyObject(t.files))l();else{var v=0,B,E=!1;t.forEach(function(K,C){K=C.name.toLowerCase();"diagram/diagram.xml"==K?(E=!0,C.async("string").then(function(R){0==R.indexOf("<mxfile ")?f(R):l()})):0==K.indexOf("versions/")&&(K=parseInt(K.substr(9)),K>v&&(v=K,B=C))});0<v?B.async("string").then(function(K){n.isGliffyData(K,c.name)?n.importGliffy(K,function(C){f(C)},function(){l()},c.name):l()}):E||l()}},function(t){l(t)}):l()});"undefined"!==typeof JSZip||+this.loadingExtensions||this.isOffline(!0)?r():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",r,null,null,null,l))};EditorUi.prototype.importFile=function(c,f,l,n,r,t,v,B,E,K,C,R){K=null!=K?K:!0;var M=!1,O=null,U=mxUtils.bind(this,function(fa){var y=null;null!=fa&&"<mxlibrary"==fa.substring(0,10)?(this.loadLibrary(new LocalLibrary(this,fa,v)),this.showSidebar()):y=this.importXml(fa,l,n,K,null,null!=R?mxEvent.isControlDown(R):null);null!=B&&B(y)});if("image"==f.substring(0,+5))E=!1,"image/png"==f.substring(0,9)&&(C=C?null:this.extractGraphModelFromPng(c),null!=C&&0<C.length&&(O=this.importXml(C,l,n,K,null,null!=R?mxEvent.isControlDown(R):null),E=!0)),E||(C=this.editor.graph,E=c.indexOf(";"),0<E&&(c=c.substring(0,E)+c.substring(c.indexOf(",",E+1))),K&&C.isGridEnabled()&&(l=C.snap(l),n=C.snap(n)),E="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;","image/svg"==f.substring(0,9)&&(E+="editableCssRules=.*;"),O=[C.insertVertex(null,null,"",l,n,r,t,E+"image="+c+";")]);else if(/(\.*<graphml )/.test(c))M=!0,this.importGraphML(c,U);else if(null!=E&&null!=v&&EditorUi.isVisioFilename(v))M=!0,this.importVisio(E,U);else if(this.isGliffyData(c,v)){M=!0;var T=mxUtils.bind(this,function(fa){this.importGliffy(fa,U,mxUtils.bind(this,function(y){null!=B&&(B(null),this.showError(mxResources.get("error"),null!=y&&413==y.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError")))}),v)});if(null!=c)T(c);-else{var V=new FileReader;V.onload=function(){T(V.result)};V.readAsText(E)}}else 0==c.indexOf("PK")&&null!=E?(M=!0,this.importZipFile(E,U,mxUtils.bind(this,function(){O=this.insertTextAt(this.validateFileData(c),l,n,!0,null,K);B(O)}))):/(\.v(sd|dx))($|\?)/i.test(v)||/(\.vs(s|x))($|\?)/i.test(v)||(O=this.insertTextAt(this.validateFileData(c),l,n,!0,null,K,null,null!=R?mxEvent.isControlDown(R):null));M||null==B||B(O);return O};EditorUi.prototype.importFiles=function(c,g,l,n,r,t,v,B,E,K,C,R,M){n=null!=-n?n:this.maxImageSize;K=null!=K?K:this.maxImageBytes;var O=null!=g&&null!=l,U=!0;g=null!=g?g:0;l=null!=l?l:0;var T=!1;if(!mxClient.IS_CHROMEAPP&&null!=c)for(var V=C||this.resampleThreshold,fa=0;fa<c.length;fa++)if("image/svg"!==c[fa].type.substring(0,9)&&"image/"===c[fa].type.substring(0,6)&&c[fa].size>V){T=!0;break}EditorUi.debug("EditorUi.importFiles",[this],"files",[c],"x",[g],"y",[l],"maxSize",[n],"maxBytes",[K],"resampleThreshold",[this.resampleThreshold],"largeImages",[T],"crop",[O],"resizeImages",+else{var V=new FileReader;V.onload=function(){T(V.result)};V.readAsText(E)}}else 0==c.indexOf("PK")&&null!=E?(M=!0,this.importZipFile(E,U,mxUtils.bind(this,function(){O=this.insertTextAt(this.validateFileData(c),l,n,!0,null,K);B(O)}))):/(\.v(sd|dx))($|\?)/i.test(v)||/(\.vs(s|x))($|\?)/i.test(v)||(O=this.insertTextAt(this.validateFileData(c),l,n,!0,null,K,null,null!=R?mxEvent.isControlDown(R):null));M||null==B||B(O);return O};EditorUi.prototype.importFiles=function(c,f,l,n,r,t,v,B,E,K,C,R,M){n=null!=+n?n:this.maxImageSize;K=null!=K?K:this.maxImageBytes;var O=null!=f&&null!=l,U=!0;f=null!=f?f:0;l=null!=l?l:0;var T=!1;if(!mxClient.IS_CHROMEAPP&&null!=c)for(var V=C||this.resampleThreshold,fa=0;fa<c.length;fa++)if("image/svg"!==c[fa].type.substring(0,9)&&"image/"===c[fa].type.substring(0,6)&&c[fa].size>V){T=!0;break}EditorUi.debug("EditorUi.importFiles",[this],"files",[c],"x",[f],"y",[l],"maxSize",[n],"maxBytes",[K],"resampleThreshold",[this.resampleThreshold],"largeImages",[T],"crop",[O],"resizeImages",[U],"ignoreEmbeddedXml",[R],"evt",[M]);var y=mxUtils.bind(this,function(){var d=this.editor.graph,p=d.gridSize;r=null!=r?r:mxUtils.bind(this,function(ba,W,Y,X,ca,S,Z,da,N){try{if(null!=ba&&"<mxlibrary"==ba.substring(0,10))return this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,ba,Z)),this.showSidebar(),null;this.isCompatibleString(ba)&&1==c.length&&null!=M&&"drop"==M.type&&this.isBlankFile()&&!this.canUndo()&&(O=!1,X=Y=0);return this.importFile(ba,W,Y,X,ca,S,Z,da,N,O,R,M)}catch(aa){return this.handleError(aa),null}});t=null!=t?t:mxUtils.bind(this,function(ba){d.setSelectionCells(ba)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var A=this.currentPage,G=c.length,I=G,L=[],P=mxUtils.bind(this,function(ba,W){L[ba]=W;if(0==--I){this.spinner.stop();if(null!=B)B(L);else{var Y=[];d.getModel().beginUpdate();try{for(ba=0;ba<L.length;ba++){var X=L[ba]();null!=X&&(Y=Y.concat(X))}}finally{d.getModel().endUpdate()}}A!=this.currentPage&&window.setTimeout(mxUtils.bind(this,function(){this.actions.get("resetView").funct()}),0);t(Y)}}),Q=0;Q<G;Q++)mxUtils.bind(this,function(ba){var W=c[ba];if(null!=W){var Y=new FileReader;Y.onload=mxUtils.bind(this,function(X){if(null==v||v(W))try{if("image/"==W.type.substring(0,6))if("image/svg"==W.type.substring(0,9)){var ca=Graph.clipSvgDataUri(X.target.result),S=ca.indexOf(","),Z=decodeURIComponent(escape(atob(ca.substring(S+1)))),da=mxUtils.parseXml(Z),N=da.getElementsByTagName("svg");if(0<N.length){var aa=N[0],ea=R?null:aa.getAttribute("content");null!=ea&&"<"!=ea.charAt(0)&&"%"!=ea.charAt(0)&&(ea=unescape(window.atob?atob(ea):Base64.decode(ea,!0)));null!=ea&&"%"==ea.charAt(0)&&(ea=decodeURIComponent(ea));null==ea||"<mxfile "!==ea.substring(0,8)&&"<mxGraphModel>"!==ea.substring(0,14)&&"<mxGraphModel "!==ea.substring(0,14)?P(ba,mxUtils.bind(this,function(){try{if(null!=da){var qa=da.getElementsByTagName("svg");if(0<qa.length){var na=qa[0],xa=na.getAttribute("width"),wa=na.getAttribute("height");xa=null!=xa&&"%"!=xa.charAt(xa.length-1)?parseFloat(xa):NaN;wa=null!=wa&&"%"!=wa.charAt(wa.length--1)?parseFloat(wa):NaN;var za=na.getAttribute("viewBox");if(null==za||0==za.length)na.setAttribute("viewBox","0 0 "+xa+" "+wa);else if(isNaN(xa)||isNaN(wa)){var Ba=za.split(" ");3<Ba.length&&(xa=parseFloat(Ba[2]),wa=parseFloat(Ba[3]))}ca=Editor.createSvgDataUri(mxUtils.getXml(na));var va=Math.min(1,Math.min(n/Math.max(1,xa)),n/Math.max(1,wa)),pa=r(ca,W.type,g+ba*p,l+ba*p,Math.max(1,Math.round(xa*va)),Math.max(1,Math.round(wa*va)),W.name);if(null!=pa&&(isNaN(xa)||isNaN(wa))){var ia=new Image;ia.onload=-mxUtils.bind(this,function(){xa=Math.max(1,ia.width);wa=Math.max(1,ia.height);pa[0].geometry.width=xa;pa[0].geometry.height=wa;na.setAttribute("viewBox","0 0 "+xa+" "+wa);ca=Editor.createSvgDataUri(mxUtils.getXml(na));var ja=ca.indexOf(";");0<ja&&(ca=ca.substring(0,ja)+ca.substring(ca.indexOf(",",ja+1)));d.setCellStyles("image",ca,[pa[0]])});ia.src=Editor.createSvgDataUri(mxUtils.getXml(na))}return pa}}}catch(ja){}return null})):P(ba,mxUtils.bind(this,function(){return r(ea,"text/xml",g+ba*p,l+ba*-p,0,0,W.name)}))}else P(ba,mxUtils.bind(this,function(){return null}))}else{S=!1;if("image/png"==W.type){var la=R?null:this.extractGraphModelFromPng(X.target.result);if(null!=la&&0<la.length){var ra=new Image;ra.src=X.target.result;P(ba,mxUtils.bind(this,function(){return r(la,"text/xml",g+ba*p,l+ba*p,ra.width,ra.height,W.name)}));S=!0}}S||(mxClient.IS_CHROMEAPP?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("dragAndDropNotSupported"),mxResources.get("cancel"),mxUtils.bind(this,-function(){}),null,mxResources.get("ok"),mxUtils.bind(this,function(){this.actions.get("import").funct()}))):this.loadImage(X.target.result,mxUtils.bind(this,function(qa){this.resizeImage(qa,Editor.stripImageMetadata(X.target.result,Editor.removeImageMetadata),mxUtils.bind(this,function(na,xa,wa){P(ba,mxUtils.bind(this,function(){if(null!=na&&na.length<K){var za=U&&this.isResampleImageSize(W.size,C)?Math.min(1,Math.min(n/xa,n/wa)):1;return r(na,W.type,g+ba*p,l+ba*p,Math.round(xa*za),Math.round(wa*-za),W.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),U,n,C,W.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else ca=X.target.result,r(ca,W.type,g+ba*p,l+ba*p,240,160,W.name,function(qa){P(ba,function(){return qa})},W)}catch(qa){P(ba,mxUtils.bind(this,function(){return null})),null!=window.console&&console.error(qa,W)}else P(ba,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(W.name)?-r(null,W.type,g+ba*p,l+ba*p,240,160,W.name,function(X){P(ba,function(){return X})},W):"image"==W.type.substring(0,5)||"application/pdf"==W.type?Y.readAsDataURL(W):Y.readAsText(W)}})(Q)});if(T){T=[];for(fa=0;fa<c.length;fa++)T.push(c[fa]);c=T;this.confirmImageResize(function(d){U=d;y()},E)}else y()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=-function(c,g){g=null!=g?g:!1;var l=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},n=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,r=function(t,v){if(t||g)mxSettings.setResizeImages(t?v:null),mxSettings.save();l();c(v)};null==n||g?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(t){r(t,!0)},function(t){r(t,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+-'"/>','<img style="margin-top:8px;" src="'+Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?226:200,!0,!0):r(!1,n)};EditorUi.prototype.isResampleImageSize=function(c,g){g=null!=g?g:this.resampleThreshold;return c>g};EditorUi.prototype.resizeImage=function(c,g,l,n,r,t,v){r=null!=r?r:this.maxImageSize;var B=Math.max(1,c.width),E=Math.max(1,c.height),K=g;if(n&&this.isResampleImageSize(null!=v?v:g.length,t))try{var C=Math.max(B/r,E/r);-if(1<C){var R=Math.round(B/C),M=Math.round(E/C),O=document.createElement("canvas");O.width=R;O.height=M;O.getContext("2d").drawImage(c,0,0,R,M);var U=O.toDataURL();if(U.length<g.length){var T=document.createElement("canvas");T.width=R;T.height=M;var V=T.toDataURL();U!==V&&(g=U,B=R,E=M)}}}catch(fa){}n&&K!=g&&r>this.maxImageSize/2&&g.length>this.maxImageBytes?this.resizeImage(c,g,l,n,r/1.5,t,v):l(g,B,E)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};-EditorUi.prototype.loadImage=function(c,g,l){try{var n=new Image;n.onload=function(){n.width=0<n.width?n.width:120;n.height=0<n.height?n.height:120;g(n)};null!=l&&(n.onerror=l);n.src=c}catch(r){if(null!=l)l(r);else throw r;}};EditorUi.prototype.getDefaultSketchMode=function(){var c="1"==urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:c)};var q=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){if(Editor.isSettingsEnabled()){null!=mxSettings.settings.sidebarTitles&&+1)?parseFloat(wa):NaN;var za=na.getAttribute("viewBox");if(null==za||0==za.length)na.setAttribute("viewBox","0 0 "+xa+" "+wa);else if(isNaN(xa)||isNaN(wa)){var Ba=za.split(" ");3<Ba.length&&(xa=parseFloat(Ba[2]),wa=parseFloat(Ba[3]))}ca=Editor.createSvgDataUri(mxUtils.getXml(na));var va=Math.min(1,Math.min(n/Math.max(1,xa)),n/Math.max(1,wa)),pa=r(ca,W.type,f+ba*p,l+ba*p,Math.max(1,Math.round(xa*va)),Math.max(1,Math.round(wa*va)),W.name);if(null!=pa&&(isNaN(xa)||isNaN(wa))){var ia=new Image;ia.onload=+mxUtils.bind(this,function(){xa=Math.max(1,ia.width);wa=Math.max(1,ia.height);pa[0].geometry.width=xa;pa[0].geometry.height=wa;na.setAttribute("viewBox","0 0 "+xa+" "+wa);ca=Editor.createSvgDataUri(mxUtils.getXml(na));var ja=ca.indexOf(";");0<ja&&(ca=ca.substring(0,ja)+ca.substring(ca.indexOf(",",ja+1)));d.setCellStyles("image",ca,[pa[0]])});ia.src=Editor.createSvgDataUri(mxUtils.getXml(na))}return pa}}}catch(ja){}return null})):P(ba,mxUtils.bind(this,function(){return r(ea,"text/xml",f+ba*p,l+ba*+p,0,0,W.name)}))}else P(ba,mxUtils.bind(this,function(){return null}))}else{S=!1;if("image/png"==W.type){var la=R?null:this.extractGraphModelFromPng(X.target.result);if(null!=la&&0<la.length){var ra=new Image;ra.src=X.target.result;P(ba,mxUtils.bind(this,function(){return r(la,"text/xml",f+ba*p,l+ba*p,ra.width,ra.height,W.name)}));S=!0}}S||(mxClient.IS_CHROMEAPP?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("dragAndDropNotSupported"),mxResources.get("cancel"),mxUtils.bind(this,+function(){}),null,mxResources.get("ok"),mxUtils.bind(this,function(){this.actions.get("import").funct()}))):this.loadImage(X.target.result,mxUtils.bind(this,function(qa){this.resizeImage(qa,Editor.stripImageMetadata(X.target.result,Editor.removeImageMetadata),mxUtils.bind(this,function(na,xa,wa){P(ba,mxUtils.bind(this,function(){if(null!=na&&na.length<K){var za=U&&this.isResampleImageSize(W.size,C)?Math.min(1,Math.min(n/xa,n/wa)):1;return r(na,W.type,f+ba*p,l+ba*p,Math.round(xa*za),Math.round(wa*+za),W.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),U,n,C,W.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else ca=X.target.result,r(ca,W.type,f+ba*p,l+ba*p,240,160,W.name,function(qa){P(ba,function(){return qa})},W)}catch(qa){P(ba,mxUtils.bind(this,function(){return null})),null!=window.console&&console.error(qa,W)}else P(ba,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(W.name)?+r(null,W.type,f+ba*p,l+ba*p,240,160,W.name,function(X){P(ba,function(){return X})},W):"image"==W.type.substring(0,5)||"application/pdf"==W.type?Y.readAsDataURL(W):Y.readAsText(W)}})(Q)});if(T){T=[];for(fa=0;fa<c.length;fa++)T.push(c[fa]);c=T;this.confirmImageResize(function(d){U=d;y()},E)}else y()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=+function(c,f){f=null!=f?f:!1;var l=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},n=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,r=function(t,v){if(t||f)mxSettings.setResizeImages(t?v:null),mxSettings.save();l();c(v)};null==n||f?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(t){r(t,!0)},function(t){r(t,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage++'"/>','<img style="margin-top:8px;" src="'+Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?226:200,!0,!0):r(!1,n)};EditorUi.prototype.isResampleImageSize=function(c,f){f=null!=f?f:this.resampleThreshold;return c>f};EditorUi.prototype.resizeImage=function(c,f,l,n,r,t,v){r=null!=r?r:this.maxImageSize;var B=Math.max(1,c.width),E=Math.max(1,c.height),K=f;if(n&&this.isResampleImageSize(null!=v?v:f.length,t))try{var C=Math.max(B/r,E/r);+if(1<C){var R=Math.round(B/C),M=Math.round(E/C),O=document.createElement("canvas");O.width=R;O.height=M;O.getContext("2d").drawImage(c,0,0,R,M);var U=O.toDataURL();if(U.length<f.length){var T=document.createElement("canvas");T.width=R;T.height=M;var V=T.toDataURL();U!==V&&(f=U,B=R,E=M)}}}catch(fa){}n&&K!=f&&r>this.maxImageSize/2&&f.length>this.maxImageBytes?this.resizeImage(c,f,l,n,r/1.5,t,v):l(f,B,E)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};+EditorUi.prototype.loadImage=function(c,f,l){try{var n=new Image;n.onload=function(){n.width=0<n.width?n.width:120;n.height=0<n.height?n.height:120;f(n)};null!=l&&(n.onerror=l);n.src=c}catch(r){if(null!=l)l(r);else throw r;}};EditorUi.prototype.getDefaultSketchMode=function(){var c="1"==urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:c)};var q=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){if(Editor.isSettingsEnabled()){null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles);this.formatWidth=mxSettings.getFormatWidth();var c=mxSettings.getSidebarWidth();null!=c&&(this.hsplitPosition=parseInt(c))}this.formatEnabled||(this.formatWidth=0);this.sidebarEnabled||(this.hsplitPosition=0);q.apply(this,arguments);Editor.isSettingsEnabled()&&this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?mxSettings.settings.sketchMode:this.getDefaultSketchMode())};var u=-EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();var c=this,g=this.editor.graph;"undefined"!==typeof LibavoidRouting&&null!=LibavoidRouting.installAutoRouting&&LibavoidRouting.installAutoRouting(this);this.addListener("styleChanged",mxUtils.bind(this,function(X,ca){ca.getProperty("force")&&"undefined"!==typeof mxSettings&&null!=mxSettings.setCurrentEdgeStyle&&null!=mxSettings.settings&&mxSettings.setCurrentEdgeStyle(mxUtils.clone(this.editor.graph.currentEdgeStyle))}));-this.restorePersistedEdgeStyle();if(this.editor.isChromelessView()&&"0"!=urlParams.animate){var l=null,n=function(){var X=g.getModel().getRoot();if(X===l&&null!=c.chromelessAnimationPlayer)return!0;l=X;null!=c.chromelessAnimationPlayer&&c.chromelessAnimationPlayer.stop();c.chromelessAnimationPlayer=Editor.playAnimationOnGraph(g);return null!=c.chromelessAnimationPlayer};n();this.editor.addListener("fileLoaded",n);g.addListener(mxEvent.ROOT,n)}var r=g.isEnabled;g.isEnabled=function(){return r.apply(this,-arguments)&&!c.isLocked()};g.showLinkIcons=Editor.showLinkIcons||"1"==urlParams["link-icons"];g.showTooltipIcons=Editor.showTooltipIcons||"1"==urlParams["tooltip-icons"];g.showNoteIcons=Editor.showNoteIcons&&"0"!=urlParams["note-icons"];var t=this;g.editTooltip=function(X){null!=X&&t.actions.get("editTooltip").funct()};g.editNote=function(X){null!=X&&t.actions.get("editNote").funct()};g.getLinkOverlayTooltip=function(X){if(Graph.isPageLink(X)&&null!=t.pages){var ca=X.substring(X.indexOf(",")+1);ca=-t.getPageById(ca);if(null!=ca)return ca.getName()||mxResources.get("pageWithNumber",[mxUtils.indexOf(t.pages,ca)+1])}else if(this.isCustomLink(X))return this.getLinkTitle(X);return X};Graph.touchStyle&&(g.panningHandler.isPanningTrigger=function(X){var ca=X.getEvent();return null==X.getState()&&!mxEvent.isMouseEvent(ca)&&!g.freehand.isDrawing()||mxEvent.isPopupTrigger(ca)&&(null==X.getState()||mxEvent.isControlDown(ca)||mxEvent.isShiftDown(ca))});var v=function(X){X=/(?:^|;)groupPadding=([^;]*)/.exec(null!=-X?X:"");return null!=X?X[1]:null};g.model.addListener(mxEvent.BEFORE_UNDO,function(X,ca){X=ca.getProperty("edit");if(null!=X&&null!=X.changes){ca=X.changes.length;for(var S=[],Z=0;Z<ca;Z++){var da=X.changes[Z];da instanceof mxStyleChange&&null!=da.cell&&g.model.isVertex(da.cell)&&v(da.style)!=v(da.previous)&&/(?:^|;)shape=image(?:;|$)/.test(null!=da.style?da.style:"")&&(null!=g.getAttributeForCell(da.cell,"mermaidData")||null!=g.getAttributeForCell(da.cell,"plantUmlData"))&&0>mxUtils.indexOf(S,da.cell)&&-S.push(da.cell)}for(Z=0;Z<S.length;Z++)c.refreshMermaidImage(S[Z])}});var B=function(X){var ca=!1;c.showDialog(X.container,640,420,!0,!0,function(S,Z){if(!ca&&X.shouldConfirmClose())return c.confirm(mxResources.get("allChangesLost"),null,function(){ca=!0;c.hideDialog(!0)},mxResources.get("cancel"),mxResources.get("discardChanges")),!1},null,null,new mxRectangle(0,0,320,280),!0);X.init()};g.cellEditor.editPlantUmlData=function(X,ca,S){var Z=JSON.parse(S);ca=g.getCurrentCellStyle(X);var da=mxUtils.getValue(ca,+EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();var c=this,f=this.editor.graph;"undefined"!==typeof LibavoidRouting&&null!=LibavoidRouting.installAutoRouting&&LibavoidRouting.installAutoRouting(this);this.addListener("styleChanged",mxUtils.bind(this,function(X,ca){ca.getProperty("force")&&"undefined"!==typeof mxSettings&&null!=mxSettings.setCurrentEdgeStyle&&null!=mxSettings.settings&&mxSettings.setCurrentEdgeStyle(mxUtils.clone(this.editor.graph.currentEdgeStyle))}));+this.restorePersistedEdgeStyle();if(this.editor.isChromelessView()&&"0"!=urlParams.animate){var l=null,n=function(){var X=f.getModel().getRoot();if(X===l&&null!=c.chromelessAnimationPlayer)return!0;l=X;null!=c.chromelessAnimationPlayer&&c.chromelessAnimationPlayer.stop();c.chromelessAnimationPlayer=Editor.playAnimationOnGraph(f);return null!=c.chromelessAnimationPlayer};n();this.editor.addListener("fileLoaded",n);f.addListener(mxEvent.ROOT,n)}var r=f.isEnabled;f.isEnabled=function(){return r.apply(this,+arguments)&&!c.isLocked()};f.showLinkIcons=Editor.showLinkIcons||"1"==urlParams["link-icons"];f.showTooltipIcons=Editor.showTooltipIcons||"1"==urlParams["tooltip-icons"];f.showNoteIcons=Editor.showNoteIcons&&"0"!=urlParams["note-icons"];var t=this;f.editTooltip=function(X){null!=X&&t.actions.get("editTooltip").funct()};f.editNote=function(X){null!=X&&t.actions.get("editNote").funct()};f.getLinkOverlayTooltip=function(X){if(Graph.isPageLink(X)&&null!=t.pages){var ca=X.substring(X.indexOf(",")+1);ca=+t.getPageById(ca);if(null!=ca)return ca.getName()||mxResources.get("pageWithNumber",[mxUtils.indexOf(t.pages,ca)+1])}else if(this.isCustomLink(X))return this.getLinkTitle(X);return X};Graph.touchStyle&&(f.panningHandler.isPanningTrigger=function(X){var ca=X.getEvent();return null==X.getState()&&!mxEvent.isMouseEvent(ca)&&!f.freehand.isDrawing()||mxEvent.isPopupTrigger(ca)&&(null==X.getState()||mxEvent.isControlDown(ca)||mxEvent.isShiftDown(ca))});var v=function(X){X=/(?:^|;)groupPadding=([^;]*)/.exec(null!=+X?X:"");return null!=X?X[1]:null};f.model.addListener(mxEvent.BEFORE_UNDO,function(X,ca){X=ca.getProperty("edit");if(null!=X&&null!=X.changes){ca=X.changes.length;for(var S=[],Z=0;Z<ca;Z++){var da=X.changes[Z];da instanceof mxStyleChange&&null!=da.cell&&f.model.isVertex(da.cell)&&v(da.style)!=v(da.previous)&&/(?:^|;)shape=image(?:;|$)/.test(null!=da.style?da.style:"")&&(null!=f.getAttributeForCell(da.cell,"mermaidData")||null!=f.getAttributeForCell(da.cell,"plantUmlData"))&&0>mxUtils.indexOf(S,da.cell)&&+S.push(da.cell)}for(Z=0;Z<S.length;Z++)c.refreshMermaidImage(S[Z])}});var B=function(X){var ca=!1;c.showDialog(X.container,640,420,!0,!0,function(S,Z){if(!ca&&X.shouldConfirmClose())return c.confirm(mxResources.get("allChangesLost"),null,function(){ca=!0;c.hideDialog(!0)},mxResources.get("cancel"),mxResources.get("discardChanges")),!1},null,null,new mxRectangle(0,0,320,280),!0);X.init()};f.cellEditor.editPlantUmlData=function(X,ca,S){var Z=JSON.parse(S);ca=f.getCurrentCellStyle(X);var da=mxUtils.getValue(ca,mxConstants.STYLE_SHAPE,"")==mxConstants.SHAPE_IMAGE,N=null==Z.format&&!da;ca="draw.io"==c.getServiceName()||"atlassian"==c.getServiceName();var aa=document.createElement("select");aa.className="geBtn";S=document.createElement("option");S.setAttribute("value","plantUmlDiagram");mxUtils.write(S,mxResources.get("diagram"));aa.appendChild(S);S=document.createElement("option");S.setAttribute("value","plantUmlImage");mxUtils.write(S,mxResources.get("image"));aa.appendChild(S);aa.value=da?"plantUmlImage":-"plantUmlDiagram";var ea=new SimpleTextareaDialog(c,Z.data,function(la){if(null!=la&&c.spinner.spin(document.body,mxResources.get("inserting"))){var ra="plantUmlImage"==aa.value,qa=N?Z.config:null;c.parsePlantUmlDiagram(la,qa,function(na){c.spinner.stop();ea.hide();try{g.getModel().beginUpdate();try{if(da&&ra)c.updateMermaidImage(X,la,null,na,c.getMermaidImageBorder(X,Z.border),"plantUmlData");else if(N&&!ra)c.replaceLockedGroupChildren(X,na,la,qa,{wrapGroup:mxPlantUmlToDrawio.wrapGroup,dataAttr:"plantUmlData",-attrPrefix:"plantUml"});else{var xa=c.getMermaidImageBorder(X,Z.border),wa=c.replaceMermaidCell(X,ra?c.createMermaidImageXml(la,null,na,null,xa,"plantUmlData"):mxPlantUmlToDrawio.wrapGroup(na,la,qa));ra||null==xa||g.setCellStyles("groupPadding",xa,wa)}}finally{g.getModel().endUpdate()}}catch(za){c.handleError(za)}},function(na){c.spinner.stop();c.handleError(na)})}},null,null,ca?aa:null,!0,null==c.sidebar?null:function(la,ra){c.spinner.spin(document.body,mxResources.get("loading"))&&c.parsePlantUmlDiagram(la,-N?Z.config:null,function(qa){c.spinner.stop();c.showPreviewTooltip(qa,ra)},function(qa){c.spinner.stop();c.handleError(qa)})});B(ea)};g.cellEditor.editMermaidData=function(X,ca,S){var Z=JSON.parse(S);ca=g.getCurrentCellStyle(X);var da=mxUtils.getValue(ca,mxConstants.STYLE_SHAPE,"")==mxConstants.SHAPE_IMAGE,N=da&&null==Z.config;ca="draw.io"==c.getServiceName()||"atlassian"==c.getServiceName();var aa=document.createElement("select");aa.className="geBtn";S=document.createElement("option");S.setAttribute("value",+"plantUmlDiagram";var ea=new SimpleTextareaDialog(c,Z.data,function(la){if(null!=la&&c.spinner.spin(document.body,mxResources.get("inserting"))){var ra="plantUmlImage"==aa.value,qa=N?Z.config:null;c.parsePlantUmlDiagram(la,qa,function(na){c.spinner.stop();ea.hide();try{f.getModel().beginUpdate();try{if(da&&ra)c.updateMermaidImage(X,la,null,na,c.getMermaidImageBorder(X,Z.border),"plantUmlData");else if(N&&!ra)c.replaceLockedGroupChildren(X,na,la,qa,{wrapGroup:mxPlantUmlToDrawio.wrapGroup,dataAttr:"plantUmlData",+attrPrefix:"plantUml"});else{var xa=c.getMermaidImageBorder(X,Z.border),wa=c.replaceMermaidCell(X,ra?c.createMermaidImageXml(la,null,na,null,xa,"plantUmlData"):mxPlantUmlToDrawio.wrapGroup(na,la,qa));ra||null==xa||f.setCellStyles("groupPadding",xa,wa)}}finally{f.getModel().endUpdate()}}catch(za){c.handleError(za)}},function(na){c.spinner.stop();c.handleError(na)})}},null,null,ca?aa:null,!0,null==c.sidebar?null:function(la,ra){c.spinner.spin(document.body,mxResources.get("loading"))&&c.parsePlantUmlDiagram(la,+N?Z.config:null,function(qa){c.spinner.stop();c.showPreviewTooltip(qa,ra)},function(qa){c.spinner.stop();c.handleError(qa)})});B(ea)};f.cellEditor.editMermaidData=function(X,ca,S){var Z=JSON.parse(S);ca=f.getCurrentCellStyle(X);var da=mxUtils.getValue(ca,mxConstants.STYLE_SHAPE,"")==mxConstants.SHAPE_IMAGE,N=da&&null==Z.config;ca="draw.io"==c.getServiceName()||"atlassian"==c.getServiceName();var aa=document.createElement("select");aa.className="geBtn";S=document.createElement("option");S.setAttribute("value","mermaid");mxUtils.write(S,mxResources.get("diagram"));aa.appendChild(S);S=document.createElement("option");S.setAttribute("value","mermaidImage");mxUtils.write(S,mxResources.get("image"));aa.appendChild(S);aa.value=da?"mermaidImage":"mermaid";var ea=new SimpleTextareaDialog(c,Z.data,function(la){if(null!=la&&c.spinner.spin(document.body,mxResources.get("inserting"))){var ra="mermaidImage"==aa.value;if(ra&&N){var qa=EditorUi.legacyMermaidConfig;var na=null}else na=qa=null!=Z.config?Z.config:EditorUi.getInsertMermaidConfig();-c.parseMermaidDiagram(la,mxUtils.clone(qa),function(xa){c.spinner.stop();ea.hide();try{g.getModel().beginUpdate();try{if(da&&ra)c.updateMermaidImage(X,la,na,xa,c.getMermaidImageBorder(X,Z.border));else if(da||ra){var wa=c.getMermaidImageBorder(X,Z.border),za=c.replaceMermaidCell(X,ra?c.createMermaidImageXml(la,na,xa,null,wa):mxMermaidToDrawio.wrapGroup(xa,la,na));ra||null==wa||g.setCellStyles("groupPadding",wa,za)}else c.replaceLockedGroupChildren(X,xa,la,na)}finally{g.getModel().endUpdate()}}catch(Ba){c.handleError(Ba)}},-function(xa){c.spinner.stop();c.handleError(xa)})}},null,null,ca?aa:null,!0,null==c.sidebar?null:function(la,ra){if(c.spinner.spin(document.body,mxResources.get("loading"))){var qa="mermaidImage"==aa.value&&N?EditorUi.legacyMermaidConfig:null!=Z.config?Z.config:EditorUi.getInsertMermaidConfig();c.parseMermaidDiagram(la,mxUtils.clone(qa),function(na){c.spinner.stop();c.showPreviewTooltip(na,ra)},function(na){c.spinner.stop();c.handleError(na)})}});B(ea)};var E=g.cellEditor.startEditing;g.cellEditor.startEditing=-function(X,ca,S){try{var Z=this.graph.getLockedGroupAncestor(X);null!=Z&&(X=Z);var da=this.graph.getAttributeForCell(X,"plantUmlData");if(null!=da)this.editPlantUmlData(X,ca,da);else if(da=this.graph.getAttributeForCell(X,"mermaidData"),null!=da&&EditorUi.isMermaidSupported())this.editMermaidData(X,ca,da);else{var N=g.getCellStyle(X);"1"==mxUtils.getValue(N,"metaEdit","0")?c.showDataDialog(X):E.call(this,X,ca,S)}}catch(aa){c.handleError(aa)}};g.getLinkTitle=function(X){return c.getLinkTitle(X)};g.customLinkClicked=-function(X,ca){var S=!1;try{var Z=this.view.graphBounds,da=null!=Z?new mxRectangle(Z.x,Z.y,Z.width,Z.height):null;c.handleCustomLink(X,ca);S=!0;var N=this.view.graphBounds;c.chromelessResize&&null!=da&&null!=N&&!da.equals(N)&&(c.chromelessResize(),this.scrollCellToVisible(ca))}catch(aa){c.handleError(aa)}return S};var K=g.parseBackgroundImage;g.parseBackgroundImage=function(X){var ca=K.apply(this,arguments);null!=ca&&null!=ca.src&&Graph.isPageLink(ca.src)&&(ca={originalSrc:ca.src});return ca};var C=-g.setBackgroundImage;g.setBackgroundImage=function(X){null!=X&&null!=X.originalSrc&&(X=c.createImageForPageLink(X.originalSrc,c.currentPage,this));C.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){g.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){g.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",mxUtils.bind(this,function(X,ca){X=null!=g.backgroundImage?g.backgroundImage.originalSrc:null;if(null!=-X){var S=X.indexOf(",");if(0<S)for(X=X.substring(S+1),ca=ca.getProperty("patches"),S=0;S<ca.length;S++)if(null!=ca[S][EditorUi.DIFF_UPDATE]&&null!=ca[S][EditorUi.DIFF_UPDATE][X]||null!=ca[S][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(ca[S][EditorUi.DIFF_REMOVE],X)){g.refreshBackgroundImage();break}}}));var R=g.getBackgroundImageObject;g.getBackgroundImageObject=function(X,ca,S){var Z=R.apply(this,arguments);null!=Z&&null!=Z.originalSrc&&(Z=ca?c.createImageForPageLink(Z.originalSrc,S,null,!0):{src:Z.originalSrc});+c.parseMermaidDiagram(la,mxUtils.clone(qa),function(xa){c.spinner.stop();ea.hide();try{f.getModel().beginUpdate();try{if(da&&ra)c.updateMermaidImage(X,la,na,xa,c.getMermaidImageBorder(X,Z.border));else if(da||ra){var wa=c.getMermaidImageBorder(X,Z.border),za=c.replaceMermaidCell(X,ra?c.createMermaidImageXml(la,na,xa,null,wa):mxMermaidToDrawio.wrapGroup(xa,la,na));ra||null==wa||f.setCellStyles("groupPadding",wa,za)}else c.replaceLockedGroupChildren(X,xa,la,na)}finally{f.getModel().endUpdate()}}catch(Ba){c.handleError(Ba)}},+function(xa){c.spinner.stop();c.handleError(xa)})}},null,null,ca?aa:null,!0,null==c.sidebar?null:function(la,ra){if(c.spinner.spin(document.body,mxResources.get("loading"))){var qa="mermaidImage"==aa.value&&N?EditorUi.legacyMermaidConfig:null!=Z.config?Z.config:EditorUi.getInsertMermaidConfig();c.parseMermaidDiagram(la,mxUtils.clone(qa),function(na){c.spinner.stop();c.showPreviewTooltip(na,ra)},function(na){c.spinner.stop();c.handleError(na)})}});B(ea)};var E=f.cellEditor.startEditing;f.cellEditor.startEditing=+function(X,ca,S){try{var Z=this.graph.getLockedGroupAncestor(X);null!=Z&&(X=Z);var da=this.graph.getAttributeForCell(X,"plantUmlData");if(null!=da)this.editPlantUmlData(X,ca,da);else if(da=this.graph.getAttributeForCell(X,"mermaidData"),null!=da&&EditorUi.isMermaidSupported())this.editMermaidData(X,ca,da);else{var N=f.getCellStyle(X);"1"==mxUtils.getValue(N,"metaEdit","0")?c.showDataDialog(X):E.call(this,X,ca,S)}}catch(aa){c.handleError(aa)}};f.getLinkTitle=function(X){return c.getLinkTitle(X)};f.customLinkClicked=+function(X,ca){var S=!1;try{var Z=this.view.graphBounds,da=null!=Z?new mxRectangle(Z.x,Z.y,Z.width,Z.height):null;c.handleCustomLink(X,ca);S=!0;var N=this.view.graphBounds;c.chromelessResize&&null!=da&&null!=N&&!da.equals(N)&&(c.chromelessResize(),this.scrollCellToVisible(ca))}catch(aa){c.handleError(aa)}return S};var K=f.parseBackgroundImage;f.parseBackgroundImage=function(X){var ca=K.apply(this,arguments);null!=ca&&null!=ca.src&&Graph.isPageLink(ca.src)&&(ca={originalSrc:ca.src});return ca};var C=+f.setBackgroundImage;f.setBackgroundImage=function(X){null!=X&&null!=X.originalSrc&&(X=c.createImageForPageLink(X.originalSrc,c.currentPage,this));C.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){f.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){f.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",mxUtils.bind(this,function(X,ca){X=null!=f.backgroundImage?f.backgroundImage.originalSrc:null;if(null!=+X){var S=X.indexOf(",");if(0<S)for(X=X.substring(S+1),ca=ca.getProperty("patches"),S=0;S<ca.length;S++)if(null!=ca[S][EditorUi.DIFF_UPDATE]&&null!=ca[S][EditorUi.DIFF_UPDATE][X]||null!=ca[S][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(ca[S][EditorUi.DIFF_REMOVE],X)){f.refreshBackgroundImage();break}}}));var R=f.getBackgroundImageObject;f.getBackgroundImageObject=function(X,ca,S){var Z=R.apply(this,arguments);null!=Z&&null!=Z.originalSrc&&(Z=ca?c.createImageForPageLink(Z.originalSrc,S,null,!0):{src:Z.originalSrc});return Z};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://www.drawio.com/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var M=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(X){X=null!=X?X:"";"1"==urlParams.dev&&(X+=(0<X.length?"&":"?")+"dev=1");"1"==urlParams.test&&(X+=(0<-X.length?"&":"?")+"test=1");return M.apply(this,arguments)};var O=g.addClickHandler;g.addClickHandler=function(X,ca,S){var Z=ca;ca=function(da,N,aa){if(null==N){var ea=mxEvent.getSource(da);"a"==ea.nodeName.toLowerCase()&&(N=ea.getAttribute("href"))}null!=N&&g.isCustomLink(N)&&(mxEvent.isTouchEvent(da)||!mxEvent.isPopupTrigger(da))&&g.customLinkClicked(N,aa)&&mxEvent.consume(da);null!=Z&&Z(da,N,aa)};O.call(this,X,ca,S)};u.apply(this,arguments);Graph.browserTranslate&&g.waitForBrowserTranslate();this.editor.graph.addSvgShadow(g.view.canvas.ownerSVGElement,-null,!0);if(null!=this.menus){var U=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(X,ca,S){g.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(X,["zoomIn","zoomOut","-"],null,S);if(Editor.passiveScroll&&null!=S){var Z=mxUtils.convertPoint(g.container,mxEvent.getClientX(S),mxEvent.getClientY(S));g._contextMenuPoint=new mxPoint(g.snap(Z.x/g.view.scale-g.view.translate.x),g.snap(Z.y/g.view.scale-g.view.translate.y));g._contextMenuScreenPoint=mxUtils.convertPoint(g.container,-mxEvent.getClientX(S),mxEvent.getClientY(S))}g.isSelectionEmpty()&&Editor.passiveScroll&&(this.addSubmenu("insert",X,null),X.addSeparator());U.apply(this,arguments);g.isSelectionEmpty()||null==c.addSelectionToScratchpad||Editor.passiveScroll||this.addMenuItems(X,["-","addToScratchpad"],null,S);if(0<g.getSelectionCount()&&c.commentsSupported()&&c.anchoredCommentsSupported()&&c.canComment()&&null!=this.showCommentsWindow){var da=g.getSelectionCells(),N=this;X.addSeparator();X.addItem(mxResources.get("comment")+-"...",null,function(){if(null!=c.currentPage){if(1==da.length)var aa=da[0].id;else{aa=[];for(var ea=0;ea<da.length;ea++)aa.push(da[ea].id)}N.showCommentsWindow(null,{p:c.currentPage.getId(),c:aa})}})}g.isSelectionEmpty()&&!this.isShowStyleItems()&&this.addMenuItems(X,["-","exitGroup","home"],null,S)};var T=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(X,ca,S){if(c.editor.graph.isSelectionEmpty())T.apply(this,arguments),c.menus.addMenuItems(X,["copyAsImage","copyAsSvg"],-null,S);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(X,ca,S):this.addPopupMenuArrangeItems(X,ca,S),this.addMenuItems(X,"- cut copy copyAsImage copyAsSvg duplicate".split(" "),null,S),Editor.passiveScroll&&(1==g.getSelectionCount()?this.addMenuItems(X,["-","copyStyle","pasteStyle","copyTextStyle","pasteTextStyle"],null,S):this.addMenuItems(X,["-","pasteStyle","pasteTextStyle"],null,S)),this.addMenuItems(X,["-"],null,S),this.isShowCellEditItems()||this.addPopupDeleteItem(X,ca,S),this.addMenuItems(X,-["lockUnlock","-"],null,S),!this.isShowStyleItems()){if(1==g.getSelectionCount()&&!g.isCellLocked(ca)&&g.isCellEditable(ca)&&(this.addSubmenu("editCell",X,null,mxResources.get("edit")),X.addSeparator(),g.getModel().isEdge(ca))){this.addSubmenu("line",X);var Z=g.getModel().getGeometry(ca);null!=Z&&null!=Z.points&&0<Z.points.length&&this.addMenuItems(X,["clearWaypoints"],null,S)}1==g.getSelectionCount()&&this.addMenuItems(X,["enterGroup"],null,S);Z=c.getSelectionState();null!=Z.mergeCell?this.addMenuItem(X,+X.length?"&":"?")+"test=1");return M.apply(this,arguments)};var O=f.addClickHandler;f.addClickHandler=function(X,ca,S){var Z=ca;ca=function(da,N,aa){if(null==N){var ea=mxEvent.getSource(da);"a"==ea.nodeName.toLowerCase()&&(N=ea.getAttribute("href"))}null!=N&&f.isCustomLink(N)&&(mxEvent.isTouchEvent(da)||!mxEvent.isPopupTrigger(da))&&f.customLinkClicked(N,aa)&&mxEvent.consume(da);null!=Z&&Z(da,N,aa)};O.call(this,X,ca,S)};u.apply(this,arguments);Graph.browserTranslate&&f.waitForBrowserTranslate();this.editor.graph.addSvgShadow(f.view.canvas.ownerSVGElement,+null,!0);if(null!=this.menus){var U=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(X,ca,S){f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(X,["zoomIn","zoomOut","-"],null,S);if(Editor.passiveScroll&&null!=S){var Z=mxUtils.convertPoint(f.container,mxEvent.getClientX(S),mxEvent.getClientY(S));f._contextMenuPoint=new mxPoint(f.snap(Z.x/f.view.scale-f.view.translate.x),f.snap(Z.y/f.view.scale-f.view.translate.y));f._contextMenuScreenPoint=mxUtils.convertPoint(f.container,+mxEvent.getClientX(S),mxEvent.getClientY(S))}f.isSelectionEmpty()&&Editor.passiveScroll&&(this.addSubmenu("insert",X,null),X.addSeparator());U.apply(this,arguments);f.isSelectionEmpty()||null==c.addSelectionToScratchpad||Editor.passiveScroll||this.addMenuItems(X,["-","addToScratchpad"],null,S);if(0<f.getSelectionCount()&&c.commentsSupported()&&c.anchoredCommentsSupported()&&c.canComment()&&null!=this.showCommentsWindow){var da=f.getSelectionCells(),N=this;X.addSeparator();X.addItem(mxResources.get("comment")++"...",null,function(){if(null!=c.currentPage){if(1==da.length)var aa=da[0].id;else{aa=[];for(var ea=0;ea<da.length;ea++)aa.push(da[ea].id)}N.showCommentsWindow(null,{p:c.currentPage.getId(),c:aa})}})}f.isSelectionEmpty()&&!this.isShowStyleItems()&&this.addMenuItems(X,["-","exitGroup","home"],null,S)};var T=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(X,ca,S){if(c.editor.graph.isSelectionEmpty())T.apply(this,arguments),c.menus.addMenuItems(X,["copyAsImage","copyAsSvg"],+null,S);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(X,ca,S):this.addPopupMenuArrangeItems(X,ca,S),this.addMenuItems(X,"- cut copy copyAsImage copyAsSvg duplicate".split(" "),null,S),Editor.passiveScroll&&(1==f.getSelectionCount()?this.addMenuItems(X,["-","copyStyle","pasteStyle","copyTextStyle","pasteTextStyle"],null,S):this.addMenuItems(X,["-","pasteStyle","pasteTextStyle"],null,S)),this.addMenuItems(X,["-"],null,S),this.isShowCellEditItems()||this.addPopupDeleteItem(X,ca,S),this.addMenuItems(X,+["lockUnlock","-"],null,S),!this.isShowStyleItems()){if(1==f.getSelectionCount()&&!f.isCellLocked(ca)&&f.isCellEditable(ca)&&(this.addSubmenu("editCell",X,null,mxResources.get("edit")),X.addSeparator(),f.getModel().isEdge(ca))){this.addSubmenu("line",X);var Z=f.getModel().getGeometry(ca);null!=Z&&null!=Z.points&&0<Z.points.length&&this.addMenuItems(X,["clearWaypoints"],null,S)}1==f.getSelectionCount()&&this.addMenuItems(X,["enterGroup"],null,S);Z=c.getSelectionState();null!=Z.mergeCell?this.addMenuItem(X,"mergeCells"):(1<Z.style.colspan||1<Z.style.rowspan)&&this.addMenuItem(X,"unmergeCells")}};this.menus.isShowStyleItems=function(){return"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme};this.menus.isShowHistoryItems=function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}n=mxUtils.bind(this,function(){this.updateCommentOverlays()});this.addListener("commentsChanged",-n);this.addListener("darkModeChanged",n);this.editor.addListener("pageSelected",n);this.editor.addListener("fileLoaded",mxUtils.bind(this,function(){this.commentOverlays=null;this.refreshCommentCache()}));if(Editor.passiveScroll){var V=g.getCenterInsertPoint;g.getCenterInsertPoint=function(X){if(null!=this._contextMenuPoint){var ca=this._contextMenuPoint;X=null!=X?X:new mxRectangle;return new mxPoint(g.snap(ca.x-(X.width||0)/2),g.snap(ca.y-(X.height||0)/2))}return V.apply(this,arguments)};var fa=-g.popupMenuHandler.hideMenu;g.popupMenuHandler.hideMenu=function(){fa.apply(this,arguments);window.setTimeout(function(){g._contextMenuPoint=null;g._contextMenuScreenPoint=null},0)}}this.dependsOnLanguage(mxUtils.bind(this,function(){this.defaultFilename=mxResources.get("untitledDiagram");this.defaultLibraryName=mxResources.get("untitledLibrary")}));var y=g.getExportVariables;g.getExportVariables=function(){var X=y.apply(this,arguments),ca=c.getCurrentFile();null!=ca&&(X.filename=ca.getTitle());c.updateFileVars();-if(null!=c.fileVars)for(var S in c.fileVars)null==X[S]&&(X[S]=c.fileVars[S]);X.pagecount=null!=c.pages?c.pages.length:1;X.page=null!=c.currentPage?c.currentPage.getName():"";X.pagenumber=null!=c.pages&&null!=c.currentPage?mxUtils.indexOf(c.pages,c.currentPage)+1:1;return X};var d=g.getGlobalVariable;g.getGlobalVariable=function(X){var ca=c.getCurrentFile();if("filename"==X&&null!=ca)return ca.getTitle();if("page"==X&&null!=c.currentPage)return c.currentPage.getName();if("pagenumber"==X)return null!=-c.currentPage&&null!=c.pages?mxUtils.indexOf(c.pages,c.currentPage)+1:1;if("pagecount"==X)return null!=c.pages?c.pages.length:1;ca=d.apply(this,arguments);null==ca&&(c.updateFileVars(),null!=c.fileVars&&(ca=c.fileVars[X]));return ca};var p=null,A=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var X=this.getCurrentFile(),ca=null!=X&&null!=X.getTitle()?X.getTitle():this.defaultFilename;p!=ca&&X==A&&(g.invalidateDescendantsWithPlaceholders(g.model.getRoot()),g.view.validate());-p=ca;A=X}));var G=g.labelLinkClicked;g.labelLinkClicked=function(X,ca,S){var Z=ca.getAttribute("href");if(null==Z||!g.isCustomLink(Z)||!mxEvent.isTouchEvent(S)&&mxEvent.isPopupTrigger(S))G.apply(this,arguments);else{if(!g.isEnabled()||null!=X&&g.isCellLocked(X.cell))g.customLinkClicked(Z),g.getRubberband().reset();mxEvent.consume(S)}};this.editor.getOrCreateFilename=function(){var X=c.defaultFilename,ca=c.getCurrentFile();null!=ca&&(X=null!=ca.getTitle()?ca.getTitle():X);return X};n=this.actions.get("print");+n);this.addListener("darkModeChanged",n);this.editor.addListener("pageSelected",n);this.editor.addListener("fileLoaded",mxUtils.bind(this,function(){this.commentOverlays=null;this.refreshCommentCache()}));if(Editor.passiveScroll){var V=f.getCenterInsertPoint;f.getCenterInsertPoint=function(X){if(null!=this._contextMenuPoint){var ca=this._contextMenuPoint;X=null!=X?X:new mxRectangle;return new mxPoint(f.snap(ca.x-(X.width||0)/2),f.snap(ca.y-(X.height||0)/2))}return V.apply(this,arguments)};var fa=+f.popupMenuHandler.hideMenu;f.popupMenuHandler.hideMenu=function(){fa.apply(this,arguments);window.setTimeout(function(){f._contextMenuPoint=null;f._contextMenuScreenPoint=null},0)}}this.dependsOnLanguage(mxUtils.bind(this,function(){this.defaultFilename=mxResources.get("untitledDiagram");this.defaultLibraryName=mxResources.get("untitledLibrary")}));var y=f.getExportVariables;f.getExportVariables=function(){var X=y.apply(this,arguments),ca=c.getCurrentFile();null!=ca&&(X.filename=ca.getTitle());c.updateFileVars();+if(null!=c.fileVars)for(var S in c.fileVars)null==X[S]&&(X[S]=c.fileVars[S]);X.pagecount=null!=c.pages?c.pages.length:1;X.page=null!=c.currentPage?c.currentPage.getName():"";X.pagenumber=null!=c.pages&&null!=c.currentPage?mxUtils.indexOf(c.pages,c.currentPage)+1:1;return X};var d=f.getGlobalVariable;f.getGlobalVariable=function(X){var ca=c.getCurrentFile();if("filename"==X&&null!=ca)return ca.getTitle();if("page"==X&&null!=c.currentPage)return c.currentPage.getName();if("pagenumber"==X)return null!=+c.currentPage&&null!=c.pages?mxUtils.indexOf(c.pages,c.currentPage)+1:1;if("pagecount"==X)return null!=c.pages?c.pages.length:1;ca=d.apply(this,arguments);null==ca&&(c.updateFileVars(),null!=c.fileVars&&(ca=c.fileVars[X]));return ca};var p=null,A=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var X=this.getCurrentFile(),ca=null!=X&&null!=X.getTitle()?X.getTitle():this.defaultFilename;p!=ca&&X==A&&(f.invalidateDescendantsWithPlaceholders(f.model.getRoot()),f.view.validate());+p=ca;A=X}));var G=f.labelLinkClicked;f.labelLinkClicked=function(X,ca,S){var Z=ca.getAttribute("href");if(null==Z||!f.isCustomLink(Z)||!mxEvent.isTouchEvent(S)&&mxEvent.isPopupTrigger(S))G.apply(this,arguments);else{if(!f.isEnabled()||null!=X&&f.isCellLocked(X.cell))f.customLinkClicked(Z),f.getRubberband().reset();mxEvent.consume(S)}};this.editor.getOrCreateFilename=function(){var X=c.defaultFilename,ca=c.getCurrentFile();null!=ca&&(X=null!=ca.getTitle()?ca.getTitle():X);return X};n=this.actions.get("print");n.setEnabled(!mxClient.IS_IOS||!navigator.standalone);n.visible=n.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(77,!0,"editGeometry",!0),this.keyHandler.bindAction(75,!0,"tags"),this.keyHandler.bindAction(65,!1,"insertText"),this.keyHandler.bindAction(83,!1,"insertNote"),this.keyHandler.bindAction(68,!1,"insertRectangle"),this.keyHandler.bindAction(70,!1,"insertEllipse"),this.keyHandler.bindAction(76,!1,"insertLink"),this.keyHandler.bindAction(82,!1,"insertRhombus"),this.keyHandler.bindAction(67,!1,"insertEdge"),this.keyHandler.bindAction(88,!1,"insertFreehand"),this.keyHandler.bindAction(75,!0,"toggleShapes",!0),this.keyHandler.bindAction(54,!0,"adaptiveColors",!0),this.altShiftActions[81]="copyStyle",this.altShiftActions[87]="pasteStyle",this.altShiftActions[83]="synchronize",this.ctrlAltActions[84]="runLastLayout",this.installKeyboardShortcuts(),"1"==urlParams.embedInline&&(document.body.classList.add("geEmbedInline"),-Editor.passiveScroll&&document.body.classList.add("geInlineNoUi"),Editor.passiveScroll||g.addListener(mxEvent.ESCAPE,function(X,ca){null!=ca&&g.isEnabled()&&!g.isEditing()&&null!=ca.getProperty("event")&&c.actions.get("exit").funct()})),this.installImagePasteHandler(),this.useInternalClipboard||this.installNativeClipboardHandler();this.spinner=null!=this.spinner?this.spinner:this.createSpinner(null,null,24);Graph.fileSupport&&g.addListener(mxEvent.EDITING_STARTED,mxUtils.bind(this,function(X){var ca=-g.cellEditor.text2,S=null;null!=ca&&(mxEvent.addListener(ca,"dragleave",function(Z){null!=S&&(S.parentNode.removeChild(S),S=null);Z.stopPropagation();Z.preventDefault()}),mxEvent.addListener(ca,"dragover",mxUtils.bind(this,function(Z){null==S&&(S=this.highlightElement(ca));Z.stopPropagation();Z.preventDefault()})),mxEvent.addListener(ca,"drop",mxUtils.bind(this,function(Z){null!=S&&(S.parentNode.removeChild(S),S=null);if(0<Z.dataTransfer.files.length)this.importFiles(Z.dataTransfer.files,0,0,this.maxImageSize,-function(N,aa,ea,la,ra,qa){g.insertImage(N,ra,qa)},function(){},function(N){return"image/"==N.type.substring(0,6)},function(N){for(var aa=0;aa<N.length;aa++)N[aa]()},mxEvent.isControlDown(Z));else if(0<=mxUtils.indexOf(Z.dataTransfer.types,"text/uri-list")){var da=Z.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(da)?this.loadImage(decodeURIComponent(da),mxUtils.bind(this,function(N){var aa=Math.max(1,N.width);N=Math.max(1,N.height);var ea=this.maxImageSize;ea=Math.min(1,-Math.min(ea/Math.max(1,aa)),ea/Math.max(1,N));g.insertImage(decodeURIComponent(da),aa*ea,N*ea)})):document.execCommand("insertHTML",!1,Z.dataTransfer.getData("text/plain"))}else 0<=mxUtils.indexOf(Z.dataTransfer.types,"text/html")?document.execCommand("insertHTML",!1,Z.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(Z.dataTransfer.types,"text/plain")&&document.execCommand("insertHTML",!1,Z.dataTransfer.getData("text/plain"));Z.stopPropagation();Z.preventDefault()})))}));if(Editor.isSettingsEnabled()){n=+Editor.passiveScroll&&document.body.classList.add("geInlineNoUi"),Editor.passiveScroll||f.addListener(mxEvent.ESCAPE,function(X,ca){null!=ca&&f.isEnabled()&&!f.isEditing()&&null!=ca.getProperty("event")&&c.actions.get("exit").funct()})),this.installImagePasteHandler(),this.useInternalClipboard||this.installNativeClipboardHandler();this.spinner=null!=this.spinner?this.spinner:this.createSpinner(null,null,24);Graph.fileSupport&&f.addListener(mxEvent.EDITING_STARTED,mxUtils.bind(this,function(X){var ca=+f.cellEditor.text2,S=null;null!=ca&&(mxEvent.addListener(ca,"dragleave",function(Z){null!=S&&(S.parentNode.removeChild(S),S=null);Z.stopPropagation();Z.preventDefault()}),mxEvent.addListener(ca,"dragover",mxUtils.bind(this,function(Z){null==S&&(S=this.highlightElement(ca));Z.stopPropagation();Z.preventDefault()})),mxEvent.addListener(ca,"drop",mxUtils.bind(this,function(Z){null!=S&&(S.parentNode.removeChild(S),S=null);if(0<Z.dataTransfer.files.length)this.importFiles(Z.dataTransfer.files,0,0,this.maxImageSize,+function(N,aa,ea,la,ra,qa){f.insertImage(N,ra,qa)},function(){},function(N){return"image/"==N.type.substring(0,6)},function(N){for(var aa=0;aa<N.length;aa++)N[aa]()},mxEvent.isControlDown(Z));else if(0<=mxUtils.indexOf(Z.dataTransfer.types,"text/uri-list")){var da=Z.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(da)?this.loadImage(decodeURIComponent(da),mxUtils.bind(this,function(N){var aa=Math.max(1,N.width);N=Math.max(1,N.height);var ea=this.maxImageSize;ea=Math.min(1,+Math.min(ea/Math.max(1,aa)),ea/Math.max(1,N));f.insertImage(decodeURIComponent(da),aa*ea,N*ea)})):document.execCommand("insertHTML",!1,Z.dataTransfer.getData("text/plain"))}else 0<=mxUtils.indexOf(Z.dataTransfer.types,"text/html")?document.execCommand("insertHTML",!1,Z.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(Z.dataTransfer.types,"text/plain")&&document.execCommand("insertHTML",!1,Z.dataTransfer.getData("text/plain"));Z.stopPropagation();Z.preventDefault()})))}));if(Editor.isSettingsEnabled()){n=this.editor.graph.view;var I=mxSettings.getUnit();n.setUnit(I);Editor.pageSizeUnit=I;n.addListener("unitChanged",function(X,ca){X=ca.getProperty("unit");mxSettings.setUnit(X);mxSettings.save();Editor.pageSizeUnit=X});this.ruler=!Editor.canvasSupported||9==document.documentMode||"1"!=urlParams.ruler&&!mxSettings.isRulerOn()||this.editor.isChromelessView()&&!this.editor.editable?null:new mxDualRuler(this,n.unit);this.refresh()}if("1"==urlParams.styledev){n=document.getElementById("geFooter");null!=n&&(this.styleInput=document.createElement("input"),this.styleInput.setAttribute("type","text"),this.styleInput.style.position="absolute",this.styleInput.style.top="14px",this.styleInput.style.left="2px",this.styleInput.style.width="98%",this.styleInput.style.visibility="hidden",this.styleInput.style.opacity="0.9",mxEvent.addListener(this.styleInput,"change",mxUtils.bind(this,function(){this.editor.graph.getModel().setStyle(this.editor.graph.getSelectionCell(),this.styleInput.value)})),n.appendChild(this.styleInput),this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(X,ca){0<this.editor.graph.getSelectionCount()?(X=this.editor.graph.getSelectionCell(),X=this.editor.graph.getModel().getStyle(X),this.styleInput.value=X||"",this.styleInput.style.visibility="visible"):this.styleInput.style.visibility="hidden"})));var L=this.isSelectionAllowed;this.isSelectionAllowed=function(X){return mxEvent.getSource(X)==this.styleInput?!0:L.apply(this,arguments)}}n=document.getElementById("geInfo");-null!=n&&n.parentNode.removeChild(n);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var P=null;mxEvent.addListener(g.container,"dragleave",function(X){g.isEnabled()&&(null!=P&&(P.parentNode.removeChild(P),P=null),X.stopPropagation(),X.preventDefault())});mxEvent.addListener(g.container,"dragover",mxUtils.bind(this,function(X){null==P&&(P=this.highlightElement(g.container));null!=this.sidebar&&this.sidebar.hideTooltip();X.stopPropagation();X.preventDefault()}));mxEvent.addListener(g.container,-"drop",mxUtils.bind(this,function(X){null!=P&&(P.parentNode.removeChild(P),P=null);if(g.isEnabled()){var ca=mxUtils.convertPoint(g.container,mxEvent.getClientX(X),mxEvent.getClientY(X)),S=X.dataTransfer.files,Z=g.view.translate,da=g.view.scale,N=ca.x/da-Z.x,aa=ca.y/da-Z.y;if(0<S.length)ca=this.isBlankFile()&&!this.canUndo(),Z=1==S.length&&(EditorUi.isVisioFilename(S[0].name)||/(\.drawio)$/i.test(S[0].name)||/(\.xml)$/i.test(S[0].name)),"1"!=urlParams.embed&&ca&&(Z||mxEvent.isShiftDown(X))?(ca=this.getCurrentFile(),+null!=n&&n.parentNode.removeChild(n);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var P=null;mxEvent.addListener(f.container,"dragleave",function(X){f.isEnabled()&&(null!=P&&(P.parentNode.removeChild(P),P=null),X.stopPropagation(),X.preventDefault())});mxEvent.addListener(f.container,"dragover",mxUtils.bind(this,function(X){null==P&&(P=this.highlightElement(f.container));null!=this.sidebar&&this.sidebar.hideTooltip();X.stopPropagation();X.preventDefault()}));mxEvent.addListener(f.container,+"drop",mxUtils.bind(this,function(X){null!=P&&(P.parentNode.removeChild(P),P=null);if(f.isEnabled()){var ca=mxUtils.convertPoint(f.container,mxEvent.getClientX(X),mxEvent.getClientY(X)),S=X.dataTransfer.files,Z=f.view.translate,da=f.view.scale,N=ca.x/da-Z.x,aa=ca.y/da-Z.y;if(0<S.length)ca=this.isBlankFile()&&!this.canUndo(),Z=1==S.length&&(EditorUi.isVisioFilename(S[0].name)||/(\.drawio)$/i.test(S[0].name)||/(\.xml)$/i.test(S[0].name)),"1"!=urlParams.embed&&ca&&(Z||mxEvent.isShiftDown(X))?(ca=this.getCurrentFile(),null!=ca&&ca.isModified()||this.fileLoaded(null,!0),this.openFiles(S,!0,mxUtils.bind(this,function(){var xa=this.getCurrentFile();null!=xa&&xa.fileChanged()}))):(mxEvent.isAltDown(X)&&(aa=N=null),this.importFiles(S,N,aa,this.maxImageSize,null,null,null,null,mxEvent.isControlDown(X),null,null,mxEvent.isShiftDown(X),X));else{mxEvent.isAltDown(X)&&(aa=N=0);var ea=0<=mxUtils.indexOf(X.dataTransfer.types,"text/uri-list")?X.dataTransfer.getData("text/uri-list"):null;S=this.extractGraphModelFromEvent(X,-null!=this.pages);if(null!=S)g.setSelectionCells(this.importXml(S,N,aa,!0));else if(0<=mxUtils.indexOf(X.dataTransfer.types,"text/html")){var la=X.dataTransfer.getData("text/html");S=document.createElement("div");S.innerHTML=Graph.sanitizeHtml(la);var ra=null;ca=S.getElementsByTagName("img");null!=ca&&1==ca.length?(la=ca[0].getAttribute("src"),null==la&&(la=ca[0].getAttribute("srcset")),/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(la)||(ra=!0)):(ca=S.getElementsByTagName("a"),null!=ca&&1==ca.length?la=-ca[0].getAttribute("href"):(S=S.getElementsByTagName("pre"),null!=S&&1==S.length&&(la=mxUtils.getTextContent(S[0]))));var qa=!0,na=mxUtils.bind(this,function(){g.setSelectionCells(this.insertTextAt(la,N,aa,!0,ra,null,qa,mxEvent.isControlDown(X)))});ra&&null!=la&&la.length>this.resampleThreshold?this.confirmImageResize(function(xa){qa=xa;na()},mxEvent.isControlDown(X)):na()}else null!=ea&&/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(ea)?this.loadImage(decodeURIComponent(ea),mxUtils.bind(this,function(xa){var wa=-Math.max(1,xa.width);xa=Math.max(1,xa.height);var za=this.maxImageSize;za=Math.min(1,Math.min(za/Math.max(1,wa)),za/Math.max(1,xa));g.setSelectionCell(g.insertVertex(null,null,"",N,aa,wa*za,xa*za,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+ea+";"))}),mxUtils.bind(this,function(xa){g.setSelectionCells(this.insertTextAt(ea,N,aa,!0))})):0<=mxUtils.indexOf(X.dataTransfer.types,"text/plain")&&g.setSelectionCells(this.insertTextAt(X.dataTransfer.getData("text/plain"),-N,aa,!0))}}X.stopPropagation();X.preventDefault()}),!1)}this.initPages();"1"==urlParams.embed&&this.initializeEmbedMode();this.addListener("currentThemeChanged",mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.updateEntries();this.updateButtonContainer();this.updateDocumentTitle();this.refresh(!0)}));this.addListener("realtimeStateChanged",mxUtils.bind(this,function(){this.updateButtonContainer(!0)}));this.addListener("darkModeChanged",function(){mxClient.IS_SF&&g.view.validateBackground()});-g.addListener("enabledChanged",mxUtils.bind(this,function(){g.isEnabled()||this.hideShapePicker();this.refresh()}));c=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==c.embedViewport)mxUtils.fit(this.div);else{var X=parseInt(this.div.offsetLeft),ca=parseInt(this.div.offsetWidth),S=c.embedViewport.x+c.embedViewport.width,Z=parseInt(this.div.offsetTop),da=parseInt(this.div.offsetHeight),N=c.embedViewport.y+c.embedViewport.height;this.div.style.left=Math.max(c.embedViewport.x,+null!=this.pages);if(null!=S)f.setSelectionCells(this.importXml(S,N,aa,!0));else if(0<=mxUtils.indexOf(X.dataTransfer.types,"text/html")){var la=X.dataTransfer.getData("text/html");S=document.createElement("div");S.innerHTML=Graph.sanitizeHtml(la);var ra=null;ca=S.getElementsByTagName("img");null!=ca&&1==ca.length?(la=ca[0].getAttribute("src"),null==la&&(la=ca[0].getAttribute("srcset")),/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(la)||(ra=!0)):(ca=S.getElementsByTagName("a"),null!=ca&&1==ca.length?la=+ca[0].getAttribute("href"):(S=S.getElementsByTagName("pre"),null!=S&&1==S.length&&(la=mxUtils.getTextContent(S[0]))));var qa=!0,na=mxUtils.bind(this,function(){f.setSelectionCells(this.insertTextAt(la,N,aa,!0,ra,null,qa,mxEvent.isControlDown(X)))});ra&&null!=la&&la.length>this.resampleThreshold?this.confirmImageResize(function(xa){qa=xa;na()},mxEvent.isControlDown(X)):na()}else null!=ea&&/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(ea)?this.loadImage(decodeURIComponent(ea),mxUtils.bind(this,function(xa){var wa=+Math.max(1,xa.width);xa=Math.max(1,xa.height);var za=this.maxImageSize;za=Math.min(1,Math.min(za/Math.max(1,wa)),za/Math.max(1,xa));f.setSelectionCell(f.insertVertex(null,null,"",N,aa,wa*za,xa*za,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+ea+";"))}),mxUtils.bind(this,function(xa){f.setSelectionCells(this.insertTextAt(ea,N,aa,!0))})):0<=mxUtils.indexOf(X.dataTransfer.types,"text/plain")&&f.setSelectionCells(this.insertTextAt(X.dataTransfer.getData("text/plain"),+N,aa,!0))}}X.stopPropagation();X.preventDefault()}),!1)}this.initPages();"1"==urlParams.embed&&this.initializeEmbedMode();this.addListener("currentThemeChanged",mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.updateEntries();this.updateButtonContainer();this.updateDocumentTitle();this.refresh(!0)}));this.addListener("realtimeStateChanged",mxUtils.bind(this,function(){this.updateButtonContainer(!0)}));this.addListener("darkModeChanged",function(){mxClient.IS_SF&&f.view.validateBackground()});+f.addListener("enabledChanged",mxUtils.bind(this,function(){f.isEnabled()||this.hideShapePicker();this.refresh()}));c=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==c.embedViewport)mxUtils.fit(this.div);else{var X=parseInt(this.div.offsetLeft),ca=parseInt(this.div.offsetWidth),S=c.embedViewport.x+c.embedViewport.width,Z=parseInt(this.div.offsetTop),da=parseInt(this.div.offsetHeight),N=c.embedViewport.y+c.embedViewport.height;this.div.style.left=Math.max(c.embedViewport.x,Math.min(X,S-ca))+"px";this.div.style.top=Math.max(c.embedViewport.y,Math.min(Z,N-da))+"px";this.div.style.height=Math.min(c.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(c.embedViewport.width,parseInt(this.div.style.width))+"px"}};var Q=mxWindow.prototype.setLocation;mxWindow.prototype.setLocation=function(X,ca){Q.call(this,X,ca);c.hideCurrentMenu()};var ba=mxWindow.prototype.setSize;mxWindow.prototype.setSize=function(X,ca){ba.call(this,X,ca);c.hideCurrentMenu()};if(!this.editor.chromeless||this.editor.editable){n=Editor.currentTheme;if("simple"==n||"sketch"==n)this.doSetCurrentTheme(n,!0),"1"==urlParams.embedInline?this.initializeInlineEmbedMode():(I=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,I<Editor.smallScreenWidth&&(this.formatWidth=0),"simple"==n&&I<Editor.smallScreenWidth-240&&(this.hsplitPosition=0),"simple"==n&&(this.lastWindowWidth=I)),this.fireEvent(new mxEventObject("themeInitialized"));this.restoreVisibleWindows();"kennedy"==n&&(I=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,I<Editor.smallScreenWidth&&(this.formatWidth=0),I<Editor.smallScreenWidth-240&&(this.hsplitPosition=0),this.lastWindowWidth=I)}n=!1;if(null!=urlParams.dark)n=urlParams.dark;else if(!this.editor.chromeless||this.editor.editable)n="dark"==Editor.currentTheme,!Editor.isSettingsEnabled()||"1"==urlParams.embed||n&&"auto"!=mxSettings.settings.darkMode||(n=mxSettings.settings.darkMode);"auto"==n&&this.isAutoDarkModeSupported()&&(n=window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode("string"===typeof n?"1"==n:n);if(this.isAutoDarkModeSupported())try{var W=window.matchMedia("(prefers-color-scheme: dark)"),Y=mxUtils.bind(this,function(X){this.isAutoDarkMode()&&this.setDarkMode(X.matches)});W.addEventListener("change",Y);this.destroyFunctions.push(function(){W.removeEventListener("change",Y)})}catch(X){this.actions.get("autoMode").setEnabled(!1)}"1"==urlParams["high-contrast"]?this.setHighContrast(!0):-Editor.isSettingsEnabled()&&!this.editor.graph.isLightboxView()&&null!=mxSettings.settings.highContrast?this.setHighContrast(mxSettings.settings.highContrast):null!=window.matchMedia&&window.matchMedia("(prefers-contrast: more)").matches&&this.setHighContrast(!0);Editor.isSettingsEnabled()&&null!=mxSettings.settings.pages&&this.setTabContainerVisible(mxSettings.settings.pages);this.installSettings();this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(X,ca){g.enableFlowAnimation=-Editor.enableAnimations;g.refresh()}));g.enableFlowAnimation=Editor.enableAnimations;screen.width<=Editor.smallScreenWidth&&(this.formatWidth=0);"1"==urlParams.prefetchFonts&&c.editor.loadFonts();"atlas"==Editor.currentTheme&&document.body.classList.add("geAtlas")};var x=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=function(){if("simple"==Editor.currentTheme||"kennedy"==Editor.currentTheme){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,-g=Editor.smallScreenWidth;null!=this.lastWindowWidth&&this.lastWindowWidth>=g&&c<g?this.isFormatPanelVisible()&&this.toggleFormatPanel(!1):null!=this.lastWindowWidth&&this.lastWindowWidth<g&&c>=g&&(this.isFormatPanelVisible()||this.toggleFormatPanel(!0));g=Editor.smallScreenWidth-160;null!=this.lastWindowWidth&&this.lastWindowWidth>=g&&c<g?this.isShapesPanelVisible()&&this.toggleShapesPanel(!1,!0):null!=this.lastWindowWidth&&this.lastWindowWidth<g&&c>=g&&!this.isShapesPanelVisible()&&this.sidebarEnabled&&-this.toggleShapesPanel(!0,!0);this.lastWindowWidth=c}x.apply(this,arguments);null!=this.updateFullscreenState&&this.updateFullscreenState()};EditorUi.prototype.initializeInlineEmbedMode=function(){var c=this.sketchFooterMenuElt,g=this.sketchMainMenuElt,l=this.sketchPickerMenuElt,n=this.editor.graph;l.style.transform="";mxEvent.addGestureListeners(this.diagramContainer.parentNode,mxUtils.bind(this,function(K){mxEvent.getSource(K)==this.diagramContainer.parentNode&&(this.embedExitPoint=new mxPoint(mxEvent.getClientX(K),+Editor.isSettingsEnabled()&&!this.editor.graph.isLightboxView()&&null!=mxSettings.settings.highContrast?this.setHighContrast(mxSettings.settings.highContrast):null!=window.matchMedia&&window.matchMedia("(prefers-contrast: more)").matches&&this.setHighContrast(!0);Editor.isSettingsEnabled()&&null!=mxSettings.settings.pages&&this.setTabContainerVisible(mxSettings.settings.pages);this.installSettings();this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(X,ca){f.enableFlowAnimation=+Editor.enableAnimations;f.refresh()}));f.enableFlowAnimation=Editor.enableAnimations;screen.width<=Editor.smallScreenWidth&&(this.formatWidth=0);"1"==urlParams.prefetchFonts&&c.editor.loadFonts();"atlas"==Editor.currentTheme&&document.body.classList.add("geAtlas")};var x=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=function(){if("simple"==Editor.currentTheme||"kennedy"==Editor.currentTheme){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,+f=Editor.smallScreenWidth;null!=this.lastWindowWidth&&this.lastWindowWidth>=f&&c<f?this.isFormatPanelVisible()&&this.toggleFormatPanel(!1):null!=this.lastWindowWidth&&this.lastWindowWidth<f&&c>=f&&(this.isFormatPanelVisible()||this.toggleFormatPanel(!0));f=Editor.smallScreenWidth-160;null!=this.lastWindowWidth&&this.lastWindowWidth>=f&&c<f?this.isShapesPanelVisible()&&this.toggleShapesPanel(!1,!0):null!=this.lastWindowWidth&&this.lastWindowWidth<f&&c>=f&&!this.isShapesPanelVisible()&&this.sidebarEnabled&&+this.toggleShapesPanel(!0,!0);this.lastWindowWidth=c}x.apply(this,arguments);null!=this.updateFullscreenState&&this.updateFullscreenState()};EditorUi.prototype.initializeInlineEmbedMode=function(){var c=this.sketchFooterMenuElt,f=this.sketchMainMenuElt,l=this.sketchPickerMenuElt,n=this.editor.graph;l.style.transform="";mxEvent.addGestureListeners(this.diagramContainer.parentNode,mxUtils.bind(this,function(K){mxEvent.getSource(K)==this.diagramContainer.parentNode&&(this.embedExitPoint=new mxPoint(mxEvent.getClientX(K),mxEvent.getClientY(K)),this.sendEmbeddedSvgExport())}));document.body.style.cursor="text";var r=document.createElement("div");r.style.position="absolute";r.style.width="10px";r.style.height="10px";r.style.borderRadius="5px";r.style.border="1px solid gray";r.style.background="#ffffff";r.style.cursor="row-resize";this.diagramContainer.parentNode.appendChild(r);this.bottomResizer=r;var t=null,v=null,B=null,E=null;mxEvent.addGestureListeners(r,mxUtils.bind(this,function(K){E=parseInt(this.diagramContainer.style.height);v=mxEvent.getClientY(K);n.popupMenuHandler.hideMenu();mxEvent.consume(K)}));r=r.cloneNode(!1);r.style.cursor="col-resize";this.diagramContainer.parentNode.appendChild(r);this.rightResizer=r;mxEvent.addGestureListeners(r,mxUtils.bind(this,function(K){B=parseInt(this.diagramContainer.style.width);t=mxEvent.getClientX(K);n.popupMenuHandler.hideMenu();mxEvent.consume(K)}));mxEvent.addGestureListeners(document.body,null,mxUtils.bind(this,function(K){var C=!1;null!=t&&(this.diagramContainer.style.width=Math.max(20,B+mxEvent.getClientX(K)-t)+"px",C=!0);null!=v&&(this.diagramContainer.style.height=Math.max(20,E+mxEvent.getClientY(K)-v)+"px",C=!0);C&&((this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:this.diagramContainer.getBoundingClientRect()}),"*"),this.inlineSizeChanged(),this.refresh())}),function(K){null==t&&null==v||mxEvent.consume(K);v=t=null});document.body.style.backgroundColor="transparent";this.diagramContainer.style.borderRadius=-"4px";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility="hidden";this.sketchMenubarElt.style.display="none";g.style.visibility="hidden";c.style.visibility="hidden";l.style.display="none";this.addListener("editInlineStart",mxUtils.bind(this,function(K){this.inlineSizeChanged();Editor.passiveScroll?this.hideWindows():this.fitWindows()}));this.addListener("editInlineStop",mxUtils.bind(this,function(K){this.diagramContainer.style.width="10px";this.diagramContainer.style.height=-"10px";this.diagramContainer.style.border="";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility="hidden";g.style.visibility="hidden";c.style.visibility="hidden";l.style.display="none"}));this.windowResized=mxUtils.bind(this,function(){});this.inlineSizeChanged()};EditorUi.prototype.installNativeClipboardHandler=function(){function c(){window.setTimeout(function(){l.innerHTML=" ";l.focus();try{var t=document.createRange();t.selectNodeContents(l);var v=window.getSelection();-null!=v&&(v.removeAllRanges(),v.addRange(t))}catch(B){}},0)}var g=this.editor.graph,l=document.createElement("div");l.setAttribute("autocomplete","off");l.setAttribute("autocorrect","off");l.setAttribute("autocapitalize","off");l.setAttribute("spellcheck","false");l.style.textRendering="optimizeSpeed";l.style.fontFamily="monospace";l.style.wordBreak="break-all";l.style.background="transparent";l.style.color="transparent";l.style.position="absolute";l.style.whiteSpace="nowrap";l.style.overflow="hidden";-l.style.display="block";l.style.fontSize="1";l.style.zIndex="-1";l.style.resize="none";l.style.outline="none";l.style.width="1px";l.style.height="1px";mxUtils.setOpacity(l,0);l.contentEditable=!0;l.innerHTML=" ";this.clipboardElt=l;var n=!1;this.keyHandler.bindControlKey(88,null);this.keyHandler.bindControlKey(67,null);this.keyHandler.bindControlKey(86,null);mxEvent.addListener(document,"keydown",mxUtils.bind(this,function(t){var v=mxEvent.getSource(t);null==g.container||!g.isEnabled()||g.isMouseDown||-g.isEditing()||null!=this.dialog||"INPUT"==v.nodeName||"TEXTAREA"==v.nodeName&&v!==this.typingShim||"true"==v.contentEditable||224!=t.keyCode&&(mxClient.IS_MAC||17!=t.keyCode)&&(!mxClient.IS_MAC||91!=t.keyCode&&93!=t.keyCode)||n||(l.style.left=g.container.scrollLeft+10+"px",l.style.top=g.container.scrollTop+10+"px",t=g.container.scrollLeft,v=g.container.scrollTop,g.container.appendChild(l),n=!0,l.focus(),document.execCommand("selectAll",!1,null),g.container.scrollLeft=t,g.container.scrollTop=v)}));-mxEvent.addListener(document,"keyup",mxUtils.bind(this,function(t){var v=t.keyCode;window.setTimeout(mxUtils.bind(this,function(){!n||224!=v&&17!=v&&91!=v&&93!=v||(n=!1,l.parentNode.removeChild(l),g.isEditing()||null!=this.dialog||null==g.container||g.container.focus(),null==this.dialog&&mxUtils.clearSelection())}),0)}));mxEvent.addListener(l,"copy",mxUtils.bind(this,function(t){if(g.isEnabled())try{mxClipboard.copy(g),this.copyCells(l),c()}catch(v){this.handleError(v)}}));mxEvent.addListener(l,"cut",-mxUtils.bind(this,function(t){if(g.isEnabled())try{mxClipboard.copy(g),this.copyCells(l,!0),c()}catch(v){this.handleError(v)}}));mxEvent.addListener(l,"paste",mxUtils.bind(this,function(t){if(g.isEnabled()&&!g.isCellLocked(g.getDefaultParent()))try{if(l.innerHTML=" ",l.focus(),null!=t.clipboardData&&(Graph.removePasteFormatting(l.firstChild),this.pasteCells(t,l,!0,!0)),!mxEvent.isConsumed(t)){var v=g.container.scrollLeft,B=g.container.scrollTop;window.setTimeout(mxUtils.bind(this,function(){try{g.container.scrollLeft=-v,g.container.scrollTop=B,Graph.removePasteFormatting(l.firstChild),this.pasteCells(t,l,!1,!0)}catch(E){this.handleError(E)}}),0)}}catch(E){this.handleError(E)}}),!0);var r=this.isSelectionAllowed;this.isSelectionAllowed=function(t){return mxEvent.getSource(t)==l?!0:r.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(c,g){mxSettings.setUi(c);(g=this.doSetCurrentTheme(c)||g)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=function(c){return""==-c||"dark"==c||"default"==c||"kennedy"==c||null==c};EditorUi.prototype.doSetCurrentTheme=function(c,g){if(null==c||""==c)c=App.isSimpleThemePreferred()?"simple":"kennedy";var l="simple"==Editor.currentTheme&&this.isDefaultTheme(c)||this.isDefaultTheme(Editor.currentTheme)&&"simple"==c||c==Editor.currentTheme;if(l||g)g=this.saveScrollState(),this.editor.graph.stopEditing(!1),Editor.currentTheme=c,this.switchTheme(c),this.fireEvent(new mxEventObject("currentThemeChanged")),this.editor.fireEvent(new mxEventObject("statusChanged")),-this.restoreScrollState(g);return l};EditorUi.prototype.saveScrollState=function(c){var g=this.editor.graph.view.translate,l=this.diagramContainer.scrollLeft,n=this.diagramContainer.scrollTop;null!=this.embedViewport&&(Editor.inlineFullscreen?(l-=this.embedViewport.x,n-=this.embedViewport.y):(l+=this.embedViewport.x,n+=this.embedViewport.y));g={x:l,y:n,tx:g.x,ty:g.y};c&&(g.boundingRect=this.diagramContainer.getBoundingClientRect());return g};EditorUi.prototype.restoreScrollState=function(c){var g=-this.editor.graph.view.scale,l=this.editor.graph.view.translate;if(null!=c.boundingRect){var n=this.diagramContainer.getBoundingClientRect();c.x-=c.boundingRect.x-n.x;c.y-=c.boundingRect.y-n.y}this.diagramContainer.scrollLeft=c.x+(l.x-c.tx)*g;this.diagramContainer.scrollTop=c.y+(l.y-c.ty)*g};EditorUi.prototype.installStatusMinimizer=function(c){c=null!=c?c:this.statusContainer.parentNode;var g=!1;mxEvent.addListener(c,"mouseenter",mxUtils.bind(this,function(){"sketch"==Editor.currentTheme&&""!=this.editor.getStatus()&&-(this.statusContainer.style.display="")}));mxEvent.addListener(c,"mouseleave",mxUtils.bind(this,function(){"sketch"!=Editor.currentTheme||g||(this.statusContainer.style.display="none")}));var l=mxUtils.bind(this,function(){if("sketch"==Editor.currentTheme){var n=null!=this.statusContainer.firstChild&&"function"===typeof this.statusContainer.firstChild.getAttribute?this.statusContainer.firstChild:null;g=null!=n&&null!=n.getAttribute("class");if(!g&&null!=n){n=n.getAttribute("title");var r=this.getCurrentFile();-r=null!=r?r.savingStatusKey:DrawioFile.prototype.savingStatusKey;n==mxResources.get(r)+"..."&&(this.statusContainer.innerHTML='<div><img title="'+mxUtils.htmlEntities(mxResources.get(r))+'..."src="'+Editor.tailSpin+'"></div>',g=!0)}this.statusContainer.style.display="none";n=32>=c.clientWidth;c.style.visibility=n&&""==this.editor.getStatus()?"hidden":"";if(n||g)this.statusContainer.style.display="",g=!0}else"simple"==Editor.currentTheme?(this.statusContainer.style.display="",this.statusContainer.style.display=+"4px";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility="hidden";this.sketchMenubarElt.style.display="none";f.style.visibility="hidden";c.style.visibility="hidden";l.style.display="none";this.addListener("editInlineStart",mxUtils.bind(this,function(K){this.inlineSizeChanged();Editor.passiveScroll?this.hideWindows():this.fitWindows()}));this.addListener("editInlineStop",mxUtils.bind(this,function(K){this.diagramContainer.style.width="10px";this.diagramContainer.style.height=+"10px";this.diagramContainer.style.border="";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility="hidden";f.style.visibility="hidden";c.style.visibility="hidden";l.style.display="none"}));this.windowResized=mxUtils.bind(this,function(){});this.inlineSizeChanged()};EditorUi.prototype.installNativeClipboardHandler=function(){function c(){window.setTimeout(function(){l.innerHTML=" ";l.focus();try{var t=document.createRange();t.selectNodeContents(l);var v=window.getSelection();+null!=v&&(v.removeAllRanges(),v.addRange(t))}catch(B){}},0)}var f=this.editor.graph,l=document.createElement("div");l.setAttribute("autocomplete","off");l.setAttribute("autocorrect","off");l.setAttribute("autocapitalize","off");l.setAttribute("spellcheck","false");l.style.textRendering="optimizeSpeed";l.style.fontFamily="monospace";l.style.wordBreak="break-all";l.style.background="transparent";l.style.color="transparent";l.style.position="absolute";l.style.whiteSpace="nowrap";l.style.overflow="hidden";+l.style.display="block";l.style.fontSize="1";l.style.zIndex="-1";l.style.resize="none";l.style.outline="none";l.style.width="1px";l.style.height="1px";mxUtils.setOpacity(l,0);l.contentEditable=!0;l.innerHTML=" ";this.clipboardElt=l;var n=!1;this.keyHandler.bindControlKey(88,null);this.keyHandler.bindControlKey(67,null);this.keyHandler.bindControlKey(86,null);mxEvent.addListener(document,"keydown",mxUtils.bind(this,function(t){var v=mxEvent.getSource(t);null==f.container||!f.isEnabled()||f.isMouseDown||+f.isEditing()||null!=this.dialog||"INPUT"==v.nodeName||"TEXTAREA"==v.nodeName&&v!==this.typingShim||"true"==v.contentEditable||224!=t.keyCode&&(mxClient.IS_MAC||17!=t.keyCode)&&(!mxClient.IS_MAC||91!=t.keyCode&&93!=t.keyCode)||n||(l.style.left=f.container.scrollLeft+10+"px",l.style.top=f.container.scrollTop+10+"px",t=f.container.scrollLeft,v=f.container.scrollTop,f.container.appendChild(l),n=!0,l.focus(),document.execCommand("selectAll",!1,null),f.container.scrollLeft=t,f.container.scrollTop=v)}));+mxEvent.addListener(document,"keyup",mxUtils.bind(this,function(t){var v=t.keyCode;window.setTimeout(mxUtils.bind(this,function(){!n||224!=v&&17!=v&&91!=v&&93!=v||(n=!1,l.parentNode.removeChild(l),f.isEditing()||null!=this.dialog||null==f.container||f.container.focus(),null==this.dialog&&mxUtils.clearSelection())}),0)}));mxEvent.addListener(l,"copy",mxUtils.bind(this,function(t){if(f.isEnabled())try{mxClipboard.copy(f),this.copyCells(l),c()}catch(v){this.handleError(v)}}));mxEvent.addListener(l,"cut",+mxUtils.bind(this,function(t){if(f.isEnabled())try{mxClipboard.copy(f),this.copyCells(l,!0),c()}catch(v){this.handleError(v)}}));mxEvent.addListener(l,"paste",mxUtils.bind(this,function(t){if(f.isEnabled()&&!f.isCellLocked(f.getDefaultParent()))try{if(l.innerHTML=" ",l.focus(),null!=t.clipboardData&&(Graph.removePasteFormatting(l.firstChild),this.pasteCells(t,l,!0,!0)),!mxEvent.isConsumed(t)){var v=f.container.scrollLeft,B=f.container.scrollTop;window.setTimeout(mxUtils.bind(this,function(){try{f.container.scrollLeft=+v,f.container.scrollTop=B,Graph.removePasteFormatting(l.firstChild),this.pasteCells(t,l,!1,!0)}catch(E){this.handleError(E)}}),0)}}catch(E){this.handleError(E)}}),!0);var r=this.isSelectionAllowed;this.isSelectionAllowed=function(t){return mxEvent.getSource(t)==l?!0:r.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(c,f){mxSettings.setUi(c);(f=this.doSetCurrentTheme(c)||f)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=function(c){return""==+c||"dark"==c||"default"==c||"kennedy"==c||null==c};EditorUi.prototype.doSetCurrentTheme=function(c,f){if(null==c||""==c)c=App.isSimpleThemePreferred()?"simple":"kennedy";var l="simple"==Editor.currentTheme&&this.isDefaultTheme(c)||this.isDefaultTheme(Editor.currentTheme)&&"simple"==c||c==Editor.currentTheme;if(l||f)f=this.saveScrollState(),this.editor.graph.stopEditing(!1),Editor.currentTheme=c,this.switchTheme(c),this.fireEvent(new mxEventObject("currentThemeChanged")),this.editor.fireEvent(new mxEventObject("statusChanged")),+this.restoreScrollState(f);return l};EditorUi.prototype.saveScrollState=function(c){var f=this.editor.graph.view.translate,l=this.diagramContainer.scrollLeft,n=this.diagramContainer.scrollTop;null!=this.embedViewport&&(Editor.inlineFullscreen?(l-=this.embedViewport.x,n-=this.embedViewport.y):(l+=this.embedViewport.x,n+=this.embedViewport.y));f={x:l,y:n,tx:f.x,ty:f.y};c&&(f.boundingRect=this.diagramContainer.getBoundingClientRect());return f};EditorUi.prototype.restoreScrollState=function(c){var f=+this.editor.graph.view.scale,l=this.editor.graph.view.translate;if(null!=c.boundingRect){var n=this.diagramContainer.getBoundingClientRect();c.x-=c.boundingRect.x-n.x;c.y-=c.boundingRect.y-n.y}this.diagramContainer.scrollLeft=c.x+(l.x-c.tx)*f;this.diagramContainer.scrollTop=c.y+(l.y-c.ty)*f};EditorUi.prototype.installStatusMinimizer=function(c){c=null!=c?c:this.statusContainer.parentNode;var f=!1;mxEvent.addListener(c,"mouseenter",mxUtils.bind(this,function(){"sketch"==Editor.currentTheme&&""!=this.editor.getStatus()&&+(this.statusContainer.style.display="")}));mxEvent.addListener(c,"mouseleave",mxUtils.bind(this,function(){"sketch"!=Editor.currentTheme||f||(this.statusContainer.style.display="none")}));var l=mxUtils.bind(this,function(){if("sketch"==Editor.currentTheme){var n=null!=this.statusContainer.firstChild&&"function"===typeof this.statusContainer.firstChild.getAttribute?this.statusContainer.firstChild:null;f=null!=n&&null!=n.getAttribute("class");if(!f&&null!=n){n=n.getAttribute("title");var r=this.getCurrentFile();+r=null!=r?r.savingStatusKey:DrawioFile.prototype.savingStatusKey;n==mxResources.get(r)+"..."&&(this.statusContainer.innerHTML='<div><img title="'+mxUtils.htmlEntities(mxResources.get(r))+'..."src="'+Editor.tailSpin+'"></div>',f=!0)}this.statusContainer.style.display="none";n=32>=c.clientWidth;c.style.visibility=n&&""==this.editor.getStatus()?"hidden":"";if(n||f)this.statusContainer.style.display="",f=!0}else"simple"==Editor.currentTheme?(this.statusContainer.style.display="",this.statusContainer.style.display=0==this.statusContainer.clientWidth?"none":""):this.statusContainer.style.display=""});this.editor.addListener("statusChanged",l);l()};EditorUi.prototype.switchTheme=function(c){this.destroyWindows(!0);this.updateDefaultStyles();this.switchThemeConstants(c);this.switchCssForTheme(c);this.createMainMenuForTheme(c);this.createFooterMenuForTheme(c);this.createPickerMenuForTheme(c);this.createMenubarForTheme(c);"sketch"==c&&(this.createFormatWindow(),this.createShapesWindow())};EditorUi.prototype.getWindows=-function(){var c=[this.sidebarWindow,this.formatWindow,this.freehandWindow];null!=this.actions&&(c=c.concat([this.actions.outlineWindow,this.actions.layersWindow]));null!=this.menus&&(c=c.concat([this.menus.tagsWindow,this.menus.findWindow,this.menus.findReplaceWindow,this.menus.commentsWindow]));return c};EditorUi.prototype.fitWindows=function(){for(var c=this.getWindows(),g=0;g<c.length;g++)null!=c[g]&&c[g].window.fit()};EditorUi.prototype.hideWindows=function(){for(var c=this.getWindows(),g=0;g<-c.length;g++)null!=c[g]&&c[g].window.setVisible(!1)};EditorUi.prototype.destroyWindows=function(c){null==this.sidebarWindow||c||(this.sidebarWindow.destroy(),this.sidebarWindow=null);null==this.formatWindow||c||(this.formatWindow.destroy(),this.formatWindow=null);null!=this.freehandWindow&&(this.freehandWindow.destroy(),this.freehandWindow=null);null!=this.chatWindow&&(this.chatWindow.destroy(),this.chatWindow=null);null!=this.actions.outlineWindow&&(this.actions.outlineWindow.destroy(),this.actions.outlineWindow=+function(){var c=[this.sidebarWindow,this.formatWindow,this.freehandWindow];null!=this.actions&&(c=c.concat([this.actions.outlineWindow,this.actions.layersWindow]));null!=this.menus&&(c=c.concat([this.menus.tagsWindow,this.menus.findWindow,this.menus.findReplaceWindow,this.menus.commentsWindow]));return c};EditorUi.prototype.fitWindows=function(){for(var c=this.getWindows(),f=0;f<c.length;f++)null!=c[f]&&c[f].window.fit()};EditorUi.prototype.hideWindows=function(){for(var c=this.getWindows(),f=0;f<+c.length;f++)null!=c[f]&&c[f].window.setVisible(!1)};EditorUi.prototype.destroyWindows=function(c){null==this.sidebarWindow||c||(this.sidebarWindow.destroy(),this.sidebarWindow=null);null==this.formatWindow||c||(this.formatWindow.destroy(),this.formatWindow=null);null!=this.freehandWindow&&(this.freehandWindow.destroy(),this.freehandWindow=null);null!=this.chatWindow&&(this.chatWindow.destroy(),this.chatWindow=null);null!=this.actions.outlineWindow&&(this.actions.outlineWindow.destroy(),this.actions.outlineWindow=null);null!=this.actions.layersWindow&&(this.actions.layersWindow.destroy(),this.actions.layersWindow=null);null!=this.menus&&(null!=this.menus.chatWindow&&(this.menus.chatWindow.destroy(),this.menus.chatWindow=null),null!=this.menus.tagsWindow&&(this.menus.tagsWindow.destroy(),this.menus.tagsWindow=null),null!=this.menus.findWindow&&(this.menus.findWindow.destroy(),this.menus.findWindow=null),null!=this.menus.findReplaceWindow&&(this.menus.findReplaceWindow.destroy(),this.menus.findReplaceWindow=-null),null!=this.menus.commentsWindow&&(this.menus.commentsWindow.destroy(),this.menus.commentsWindow=null));null!=this.dockManager&&(this.dockManager.destroy(),this.dockManager=null);null!=this._dockResizeListener&&(mxEvent.removeListener(window,"resize",this._dockResizeListener),this._dockResizeListener=null)};EditorUi.prototype.restoreVisibleWindows=function(){if(Editor.isSettingsEnabled()){var c={layers:"layers",outline:"outline",tags:"tags"},g;for(g in c){var l=mxSettings.getWindowState(g);null!=-l&&l.visible&&(l=this.actions.get(c[g]),null!=l&&l.funct())}}};EditorUi.prototype.saveWindowState=function(c,g){g=g.window;var l=g.minimized&&null!=g.height?parseInt(g.height):parseInt(g.div.style.height);mxSettings.setWindowState(c,{x:g.getX(),y:g.getY(),w:parseInt(g.div.style.width),h:l,visible:g.isVisible(),minimized:g.minimized||!1,dockState:g.dockState||null,dockAnchorRight:g._dockAnchorRight||null,dockAnchorBottom:g._dockAnchorBottom||null,dockOffsetX:g._dockOffsetX||null,dockOffsetY:g._dockOffsetY||-null});mxSettings.save()};EditorUi.prototype.restoreWindowState=function(c,g){c=mxSettings.getWindowState(c);if(null==c)return null;g=g.window;null!=c.w&&null!=c.h&&mxWindow.prototype.setSize.call(g,c.w,c.h);null!=c.x&&null!=c.y&&mxWindow.prototype.setLocation.call(g,c.x,c.y);null!=c.dockState&&null!=this.dockManager&&Editor.enableWindowDocking&&(g._dockAnchorRight=c.dockAnchorRight,g._dockAnchorBottom=c.dockAnchorBottom,g._dockOffsetX=c.dockOffsetX,g._dockOffsetY=c.dockOffsetY,g.dockState=c.dockState,-g.div.classList.add("mxWindowDocked"),this.dockManager.windows.push(g),this.dockManager.pinToEdge(g));g.fit();null!=c.visible&&g.setVisible(c.visible);c.minimized&&!g.minimized&&g.toggleMinimized();return c};EditorUi.prototype.installWindowPersistence=function(c,g){var l=this,n=g.window,r=function(){l.saveWindowState(c,g)};n.addListener(mxEvent.MOVE_END,r);n.addListener(mxEvent.RESIZE_END,r);n.addListener(mxEvent.SHOW,r);n.addListener(mxEvent.HIDE,r);n.addListener(mxEvent.DOCK,r);n.addListener(mxEvent.UNDOCK,-r);n.addListener(mxEvent.MAXIMIZE,r);n.addListener(mxEvent.MINIMIZE,r);n.addListener(mxEvent.NORMALIZE,r)};EditorUi.prototype.createDockManager=function(){this.dockManager={windows:[],threshold:16,previewElement:null,getDockZone:function(c,g,l){var n=this.threshold,r=c<=n;c=c+l.offsetWidth>=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-n;var t=g<=n;g=g+l.offsetHeight>=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-n;return r&&-t?"top-left":c&&t?"top-right":r&&g?"bottom-left":c&&g?"bottom-right":r?"left":c?"right":t?"top":g?"bottom":null},dock:function(c,g){var l=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,n=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,r=parseInt(c.div.style.width),t=parseInt(c.div.style.height),v=c.getX(),B=c.getY();c.dockState=g;c.div.classList.add("mxWindowDocked");var E=0<=g.indexOf("right"),K=0<=g.indexOf("bottom");0<=g.indexOf("left")?-v=0:0<=g.indexOf("right")&&(v=l-r);0<=g.indexOf("top")?B=0:0<=g.indexOf("bottom")&&(B=n-t);E||(E=v+r/2>l/2);K||(K=B+t/2>n/2);c._dockAnchorRight=E;c._dockAnchorBottom=K;c._dockOffsetX=E?l-v-r:v;c._dockOffsetY=K?n-B-t:B;this.windows.push(c);this.pinToEdge(c);c.fireEvent(new mxEventObject(mxEvent.DOCK,"side",g))},undock:function(c){var g=c.dockState;if(null!=g){for(var l=0;l<this.windows.length;l++)if(this.windows[l]===c){this.windows.splice(l,1);break}c.div.classList.remove("mxWindowDocked");c.dockState=-null;c._dockAnchorRight=null;c._dockAnchorBottom=null;c._dockOffsetX=null;c._dockOffsetY=null;c.fireEvent(new mxEventObject(mxEvent.UNDOCK,"side",g))}},pinToEdge:function(c){var g=c.dockState;if(null!=g){var l=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,n=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,r=parseInt(c.div.style.width),t=parseInt(c.div.style.height);var v=c._dockAnchorRight?l-r-(c._dockOffsetX||0):c._dockOffsetX||-0;var B=c._dockAnchorBottom?n-t-(c._dockOffsetY||0):c._dockOffsetY||0;0<=g.indexOf("left")?v=0:0<=g.indexOf("right")&&(v=l-r);0<=g.indexOf("top")?B=0:0<=g.indexOf("bottom")&&(B=n-t);v=Math.max(0,Math.min(v,l-r));B=Math.max(0,Math.min(B,n-t));c._relayouting=!0;mxWindow.prototype.setLocation.call(c,v,B);c._relayouting=!1}},layoutAll:function(){for(var c=0;c<this.windows.length;c++)this.pinToEdge(this.windows[c])},showPreview:function(c,g){null==this.previewElement&&(this.previewElement=document.createElement("div"),-this.previewElement.className="geDockPreview",document.body.appendChild(this.previewElement));var l=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,n=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,r=this.previewElement,t=g.div.offsetWidth,v=g.div.offsetHeight,B=g.getX();g=g.getY();0<=c.indexOf("left")?B=0:0<=c.indexOf("right")&&(B=l-t);0<=c.indexOf("top")?g=0:0<=c.indexOf("bottom")&&(g=n-v);B=Math.max(0,Math.min(B,l-t));g=Math.max(0,-Math.min(g,n-v));r.style.display="block";r.style.left=B+"px";r.style.top=g+"px";r.style.width=t+"px";r.style.height=v+"px"},hidePreview:function(){null!=this.previewElement&&(this.previewElement.style.display="none")},removeWindow:function(c){for(var g=0;g<this.windows.length;g++)if(this.windows[g]===c){this.windows.splice(g,1);break}},destroy:function(){null!=this.previewElement&&null!=this.previewElement.parentNode&&(this.previewElement.parentNode.removeChild(this.previewElement),this.previewElement=-null)}};this._dockResizeListener=mxUtils.bind(this,function(){null!=this.dockManager&&this.dockManager.layoutAll()});mxEvent.addListener(window,"resize",this._dockResizeListener)};var z=EditorUi.prototype.installResizeHandler;EditorUi.prototype.installResizeHandler=function(c,g,l){z.apply(this,arguments);if(EditorUi.windowed&&Editor.enableWindowDocking){var n=c.window;null==this.dockManager&&this.createDockManager();var r=this.dockManager,t=!1,v=null,B=n.setLocation;n.setLocation=function(C,R){(null==+null),null!=this.menus.commentsWindow&&(this.menus.commentsWindow.destroy(),this.menus.commentsWindow=null));null!=this.dockManager&&(this.dockManager.destroy(),this.dockManager=null);null!=this._dockResizeListener&&(mxEvent.removeListener(window,"resize",this._dockResizeListener),this._dockResizeListener=null)};EditorUi.prototype.restoreVisibleWindows=function(){if(Editor.isSettingsEnabled()){var c={layers:"layers",outline:"outline",tags:"tags"},f;for(f in c){var l=mxSettings.getWindowState(f);null!=+l&&l.visible&&(l=this.actions.get(c[f]),null!=l&&l.funct())}}};EditorUi.prototype.saveWindowState=function(c,f){f=f.window;var l=f.minimized&&null!=f.height?parseInt(f.height):parseInt(f.div.style.height);mxSettings.setWindowState(c,{x:f.getX(),y:f.getY(),w:parseInt(f.div.style.width),h:l,visible:f.isVisible(),minimized:f.minimized||!1,dockState:f.dockState||null,dockAnchorRight:f._dockAnchorRight||null,dockAnchorBottom:f._dockAnchorBottom||null,dockOffsetX:f._dockOffsetX||null,dockOffsetY:f._dockOffsetY||+null});mxSettings.save()};EditorUi.prototype.restoreWindowState=function(c,f){c=mxSettings.getWindowState(c);if(null==c)return null;f=f.window;null!=c.w&&null!=c.h&&mxWindow.prototype.setSize.call(f,c.w,c.h);null!=c.x&&null!=c.y&&mxWindow.prototype.setLocation.call(f,c.x,c.y);null!=c.dockState&&null!=this.dockManager&&Editor.enableWindowDocking&&(f._dockAnchorRight=c.dockAnchorRight,f._dockAnchorBottom=c.dockAnchorBottom,f._dockOffsetX=c.dockOffsetX,f._dockOffsetY=c.dockOffsetY,f.dockState=c.dockState,+f.div.classList.add("mxWindowDocked"),this.dockManager.windows.push(f),this.dockManager.pinToEdge(f));f.fit();null!=c.visible&&f.setVisible(c.visible);c.minimized&&!f.minimized&&f.toggleMinimized();return c};EditorUi.prototype.installWindowPersistence=function(c,f){var l=this,n=f.window,r=function(){l.saveWindowState(c,f)};n.addListener(mxEvent.MOVE_END,r);n.addListener(mxEvent.RESIZE_END,r);n.addListener(mxEvent.SHOW,r);n.addListener(mxEvent.HIDE,r);n.addListener(mxEvent.DOCK,r);n.addListener(mxEvent.UNDOCK,+r);n.addListener(mxEvent.MAXIMIZE,r);n.addListener(mxEvent.MINIMIZE,r);n.addListener(mxEvent.NORMALIZE,r)};EditorUi.prototype.createDockManager=function(){this.dockManager={windows:[],threshold:16,previewElement:null,getDockZone:function(c,f,l){var n=this.threshold,r=c<=n;c=c+l.offsetWidth>=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-n;var t=f<=n;f=f+l.offsetHeight>=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-n;return r&&+t?"top-left":c&&t?"top-right":r&&f?"bottom-left":c&&f?"bottom-right":r?"left":c?"right":t?"top":f?"bottom":null},dock:function(c,f){var l=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,n=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,r=parseInt(c.div.style.width),t=parseInt(c.div.style.height),v=c.getX(),B=c.getY();c.dockState=f;c.div.classList.add("mxWindowDocked");var E=0<=f.indexOf("right"),K=0<=f.indexOf("bottom");0<=f.indexOf("left")?+v=0:0<=f.indexOf("right")&&(v=l-r);0<=f.indexOf("top")?B=0:0<=f.indexOf("bottom")&&(B=n-t);E||(E=v+r/2>l/2);K||(K=B+t/2>n/2);c._dockAnchorRight=E;c._dockAnchorBottom=K;c._dockOffsetX=E?l-v-r:v;c._dockOffsetY=K?n-B-t:B;this.windows.push(c);this.pinToEdge(c);c.fireEvent(new mxEventObject(mxEvent.DOCK,"side",f))},undock:function(c){var f=c.dockState;if(null!=f){for(var l=0;l<this.windows.length;l++)if(this.windows[l]===c){this.windows.splice(l,1);break}c.div.classList.remove("mxWindowDocked");c.dockState=+null;c._dockAnchorRight=null;c._dockAnchorBottom=null;c._dockOffsetX=null;c._dockOffsetY=null;c.fireEvent(new mxEventObject(mxEvent.UNDOCK,"side",f))}},pinToEdge:function(c){var f=c.dockState;if(null!=f){var l=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,n=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,r=parseInt(c.div.style.width),t=parseInt(c.div.style.height);var v=c._dockAnchorRight?l-r-(c._dockOffsetX||0):c._dockOffsetX||+0;var B=c._dockAnchorBottom?n-t-(c._dockOffsetY||0):c._dockOffsetY||0;0<=f.indexOf("left")?v=0:0<=f.indexOf("right")&&(v=l-r);0<=f.indexOf("top")?B=0:0<=f.indexOf("bottom")&&(B=n-t);v=Math.max(0,Math.min(v,l-r));B=Math.max(0,Math.min(B,n-t));c._relayouting=!0;mxWindow.prototype.setLocation.call(c,v,B);c._relayouting=!1}},layoutAll:function(){for(var c=0;c<this.windows.length;c++)this.pinToEdge(this.windows[c])},showPreview:function(c,f){null==this.previewElement&&(this.previewElement=document.createElement("div"),+this.previewElement.className="geDockPreview",document.body.appendChild(this.previewElement));var l=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,n=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,r=this.previewElement,t=f.div.offsetWidth,v=f.div.offsetHeight,B=f.getX();f=f.getY();0<=c.indexOf("left")?B=0:0<=c.indexOf("right")&&(B=l-t);0<=c.indexOf("top")?f=0:0<=c.indexOf("bottom")&&(f=n-v);B=Math.max(0,Math.min(B,l-t));f=Math.max(0,+Math.min(f,n-v));r.style.display="block";r.style.left=B+"px";r.style.top=f+"px";r.style.width=t+"px";r.style.height=v+"px"},hidePreview:function(){null!=this.previewElement&&(this.previewElement.style.display="none")},removeWindow:function(c){for(var f=0;f<this.windows.length;f++)if(this.windows[f]===c){this.windows.splice(f,1);break}},destroy:function(){null!=this.previewElement&&null!=this.previewElement.parentNode&&(this.previewElement.parentNode.removeChild(this.previewElement),this.previewElement=+null)}};this._dockResizeListener=mxUtils.bind(this,function(){null!=this.dockManager&&this.dockManager.layoutAll()});mxEvent.addListener(window,"resize",this._dockResizeListener)};var z=EditorUi.prototype.installResizeHandler;EditorUi.prototype.installResizeHandler=function(c,f,l){z.apply(this,arguments);if(EditorUi.windowed&&Editor.enableWindowDocking){var n=c.window;null==this.dockManager&&this.createDockManager();var r=this.dockManager,t=!1,v=null,B=n.setLocation;n.setLocation=function(C,R){(null==this.dockState||this._undocking||this._relayouting)&&B.call(this,C,R)};var E=n.setSize;n.setSize=function(C,R){if(null!=this.dockState){mxWindow.prototype.setSize.call(this,C,R);C=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;R=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var M=parseInt(this.div.style.width),O=parseInt(this.div.style.height),U=this.getX(),T=this.getY();this._dockOffsetX=this._dockAnchorRight?C-U-M:U;this._dockOffsetY=this._dockAnchorBottom?R-T-O:T;r.pinToEdge(this)}else E.call(this,C,R)};n.addListener(mxEvent.MOVE_START,function(C,R){t=!0;v=null;null!=n.dockState&&(n._undocking=!0,r.undock(n),n._undocking=!1)});n.addListener(mxEvent.MOVE,function(C,R){t&&(C=r.getDockZone(n.getX(),n.getY(),n.div),C!=v&&(v=C,null!=C?r.showPreview(C,n):r.hidePreview()))});n.addListener(mxEvent.MOVE_END,function(C,R){t=!1;r.hidePreview();null!=v&&r.dock(n,v);v=null});n.addListener(mxEvent.DOCK,function(C,R){if(null!=n.resize){C=R.getProperty("side");var M=0<=C.indexOf("right"),O=0<=C.indexOf("bottom");if(M||O){C=n.resize;C.parentNode.removeChild(C);n.resize=null;C=document.createElement("img");C.style.position="absolute";C.style.zIndex="2";C.setAttribute("src",mxWindow.prototype.resizeImage);M?C.style.left="0px":C.style.right="0px";O?C.style.top="0px":C.style.bottom="0px";C.style.cursor=M!=O?"nesw-resize":"nwse-resize";var U=null,T=null,V=null,fa=null,y=function(p){if(null!=U&&null!=T){var A=mxEvent.getClientX(p)-U,G=mxEvent.getClientY(p)-T;n.setSize(M?V-A:V+A,O?fa-G:fa+G);n.fireEvent(new mxEventObject(mxEvent.RESIZE,"event",p));mxEvent.consume(p)}},d=function(p){null!=U&&null!=T&&(T=U=null,mxEvent.removeGestureListeners(document,null,y,d),n.fireEvent(new mxEventObject(mxEvent.RESIZE_END,"event",p)),mxEvent.consume(p))};mxEvent.addGestureListeners(C,function(p){n.activate();U=mxEvent.getClientX(p);T=mxEvent.getClientY(p);V=n.div.offsetWidth;fa=n.div.offsetHeight;mxEvent.addGestureListeners(document,null,y,d);n.fireEvent(new mxEventObject(mxEvent.RESIZE_START,"event",p));mxEvent.consume(p)},y,d);n.div.appendChild(C);n.resize=C;n._dockResize=!0}}});n.addListener(mxEvent.UNDOCK,function(C,R){n._dockResize&&(null!=n.resize&&(n.resize.parentNode.removeChild(n.resize),n.resize=null),n.setResizable(!0),n._dockResize=!1)});n.addListener(mxEvent.NORMALIZE,function(C,R){null!=n.dockState&&r.pinToEdge(n)});n.addListener(mxEvent.MAXIMIZE,function(C,R){null!=n.dockState&&(n._undocking=!0,r.undock(n),n._undocking=!1)});n.addListener(mxEvent.SHOW,function(C,R){null!=-n.dockState&&r.pinToEdge(n)});var K=c.destroy;c.destroy=function(){r.removeWindow(n);K.apply(this,arguments)}}};EditorUi.prototype.switchThemeConstants=function(c){var g=this.editor.graph;g.defaultEdgeLength=Graph.prototype.defaultEdgeLength;g.defaultGridEnabled=Graph.prototype.defaultGridEnabled;g.defaultPageVisible=Graph.prototype.defaultPageVisible;null!=this.menus&&(this.menus.autoPopup="simple"!=c&&"sketch"!=c);if("simple"==c||"sketch"==c){Editor.fitWindowBorders=new mxRectangle(60,30,30,30);-if(null==Editor.config||null==Editor.config.defaultEdgeLength)g.defaultEdgeLength=120;null==urlParams.grid&&(g.defaultGridEnabled=!1);null==urlParams.pv&&(g.defaultPageVisible=!1)}else Editor.fitWindowBorders=null};EditorUi.prototype.isPageMenuVisible=function(){return null!=this.pages&&("0"!=urlParams.pages||1<this.pages.length||Editor.pagesVisible)};EditorUi.prototype.isThemeMenuVisible=function(){return("1"!=urlParams.embed||"1"==urlParams.themes&&null==urlParams.ui&&"1"!=urlParams.sketch)&&"1"!=-urlParams.extAuth&&this.mode!=App.MODE_ATLAS};EditorUi.prototype.switchCssForTheme=function(c){};EditorUi.prototype.createMainMenuForTheme=function(c){};EditorUi.prototype.createFooterMenuForTheme=function(c){};EditorUi.prototype.createPickerMenuForTheme=function(c){};EditorUi.prototype.getNetworkStatus=function(){var c=null;if(this.isOffline(!0))c=mxResources.get("offline");else{var g=this.getCurrentFile();null!=g&&(g.invalidChecksum?c=mxResources.get("error")+": "+mxResources.get("checksum"):null==-g.sync||g.sync.enabled&&g.sync.isRealtimeActive()||"atlassian"==this.getServiceName()?null==g.sync||g.sync.isConnected()?g.isRealtimeEnabled()&&g.isRealtimeSupported()&&1<g.getRealtimeState()&&(c=g.getRealtimeError(),c=mxResources.get("realtimeCollaboration")+": "+(null!=c&&null!=c.message?c.message:mxResources.get("error"))):c=mxResources.get("notConnected"):c=mxResources.get("realtimeCollaboration")+": "+mxResources.get("disabled"))}return c};EditorUi.prototype.createMenubarForTheme=function(c){null!=+n.dockState&&r.pinToEdge(n)});var K=c.destroy;c.destroy=function(){r.removeWindow(n);K.apply(this,arguments)}}};EditorUi.prototype.switchThemeConstants=function(c){var f=this.editor.graph;f.defaultEdgeLength=Graph.prototype.defaultEdgeLength;f.defaultGridEnabled=Graph.prototype.defaultGridEnabled;f.defaultPageVisible=Graph.prototype.defaultPageVisible;null!=this.menus&&(this.menus.autoPopup="simple"!=c&&"sketch"!=c);if("simple"==c||"sketch"==c){Editor.fitWindowBorders=new mxRectangle(60,30,30,30);+if(null==Editor.config||null==Editor.config.defaultEdgeLength)f.defaultEdgeLength=120;null==urlParams.grid&&(f.defaultGridEnabled=!1);null==urlParams.pv&&(f.defaultPageVisible=!1)}else Editor.fitWindowBorders=null};EditorUi.prototype.isPageMenuVisible=function(){return null!=this.pages&&("0"!=urlParams.pages||1<this.pages.length||Editor.pagesVisible)};EditorUi.prototype.isThemeMenuVisible=function(){return("1"!=urlParams.embed||"1"==urlParams.themes&&null==urlParams.ui&&"1"!=urlParams.sketch)&&"1"!=+urlParams.extAuth&&this.mode!=App.MODE_ATLAS};EditorUi.prototype.switchCssForTheme=function(c){};EditorUi.prototype.createMainMenuForTheme=function(c){};EditorUi.prototype.createFooterMenuForTheme=function(c){};EditorUi.prototype.createPickerMenuForTheme=function(c){};EditorUi.prototype.getNetworkStatus=function(){var c=null;if(this.isOffline(!0))c=mxResources.get("offline");else{var f=this.getCurrentFile();null!=f&&(f.invalidChecksum?c=mxResources.get("error")+": "+mxResources.get("checksum"):null==+f.sync||f.sync.enabled&&f.sync.isRealtimeActive()||"atlassian"==this.getServiceName()?null==f.sync||f.sync.isConnected()?f.isRealtimeEnabled()&&f.isRealtimeSupported()&&1<f.getRealtimeState()&&(c=f.getRealtimeError(),c=mxResources.get("realtimeCollaboration")+": "+(null!=c&&null!=c.message?c.message:mxResources.get("error"))):c=mxResources.get("notConnected"):c=mxResources.get("realtimeCollaboration")+": "+mxResources.get("disabled"))}return c};EditorUi.prototype.createMenubarForTheme=function(c){null!=this.statusContainer&&(this.statusContainer.style.flexGrow="",this.statusContainer.style.flexShrink="",this.statusContainer.style.width="",this.statusContainer.style.marginTop="",this.statusContainer.style.justifyContent="",this.statusContainer.style.opacity="");null!=this.userElement&&this.menubarContainer.appendChild(this.userElement);null!=this.buttonContainer&&null!=this.menubar&&(this.buttonContainer.style.display="",this.menubar.container.appendChild(this.buttonContainer))};EditorUi.prototype.createMenu=-function(c,g,l,n){l=null!=l?l:"geButton";var r=this.menus.get(c);n=this.menubar.addMenu(mxResources.get(c),r.funct,null,n);n.className=l;n.setAttribute("title",mxResources.get(c));this.menus.menuCreated(r,n,l);null!=g&&(n.style.backgroundImage="url("+g+")",n.innerText="");return n};EditorUi.prototype.addButton=function(c,g,l,n){c=this.createToolbarButton(c,g,l);n=null!=n?n:this.container;n.appendChild(c);return c};EditorUi.prototype.createToolbarButton=function(c,g,l){var n=document.createElement("a");-n.className="geButton";null!=c&&"data:"==c.substring(0,5)&&(n.style.backgroundImage="url("+c+")");null!=g&&n.setAttribute("title",g);null!=l&&mxEvent.addListener(n,"click",function(r){"disabled"!=n.getAttribute("disabled")&&l(r);mxEvent.consume(r)});mxEvent.preventDefault(n);return n};EditorUi.prototype.createMenuItem=function(c,g,l){var n=this.actions.get(c),r=null!=n?n.funct:null,t=this.createToolbarButton(g,mxResources.get(c)+(null!=n&&null!=n.shortcut?" ("+n.shortcut+")":""),r);null==n||l||(c=-function(){n.isEnabled()?t.removeAttribute("disabled"):t.setAttribute("disabled","disabled")},this.editor.graph.addListener("enabledChanged",c),n.addListener("stateChanged",c),c());return t};EditorUi.prototype.createFormatWindow=function(){if(null==this.formatWindow){var c=this,g=mxSettings.getWindowState("format"),l=null!=g&&null!=g.x?g.x:Math.max(10,this.diagramContainer.parentNode.clientWidth-256),n=null!=g&&null!=g.y?g.y:60,r=null!=g&&null!=g.w?g.w:240,t=null!=g&&null!=g.h?g.h:"1"==urlParams.embedInline?+function(c,f,l,n){l=null!=l?l:"geButton";var r=this.menus.get(c);n=this.menubar.addMenu(mxResources.get(c),r.funct,null,n);n.className=l;n.setAttribute("title",mxResources.get(c));this.menus.menuCreated(r,n,l);null!=f&&(n.style.backgroundImage="url("+f+")",n.innerText="");return n};EditorUi.prototype.addButton=function(c,f,l,n){c=this.createToolbarButton(c,f,l);n=null!=n?n:this.container;n.appendChild(c);return c};EditorUi.prototype.createToolbarButton=function(c,f,l){var n=document.createElement("a");+n.className="geButton";null!=c&&"data:"==c.substring(0,5)&&(n.style.backgroundImage="url("+c+")");null!=f&&n.setAttribute("title",f);null!=l&&mxEvent.addListener(n,"click",function(r){"disabled"!=n.getAttribute("disabled")&&l(r);mxEvent.consume(r)});mxEvent.preventDefault(n);return n};EditorUi.prototype.createMenuItem=function(c,f,l){var n=this.actions.get(c),r=null!=n?n.funct:null,t=this.createToolbarButton(f,mxResources.get(c)+(null!=n&&null!=n.shortcut?" ("+n.shortcut+")":""),r);null==n||l||(c=+function(){n.isEnabled()?t.removeAttribute("disabled"):t.setAttribute("disabled","disabled")},this.editor.graph.addListener("enabledChanged",c),n.addListener("stateChanged",c),c());return t};EditorUi.prototype.createFormatWindow=function(){if(null==this.formatWindow){var c=this,f=mxSettings.getWindowState("format"),l=null!=f&&null!=f.x?f.x:Math.max(10,this.diagramContainer.parentNode.clientWidth-256),n=null!=f&&null!=f.y?f.y:60,r=null!=f&&null!=f.w?f.w:240,t=null!=f&&null!=f.h?f.h:"1"==urlParams.embedInline?600:"1"==urlParams.sketch?600:Math.min(600,this.editor.graph.container.clientHeight-10);this.formatWindow=new WrapperWindow(this,mxResources.get("format"),l,n,r,t,mxUtils.bind(this,function(E){E.appendChild(this.formatContainer)}));this.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){null!=this.format&&this.format.refresh();this.formatWindow.window.fit()}));var v=this.formatWindow.window.toggleMinimized,B=r;this.formatWindow.window.toggleMinimized=function(){v.apply(this,arguments);this.minimized?(B=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+B-140+"px"):(this.div.style.width=B+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-B+140)+"px");c.format.refresh();this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(E){mxEvent.getSource(E)==this.formatWindow.window.title&&-this.formatWindow.window.toggleMinimized()}));this.formatWindow.window.minimumSize=new mxRectangle(0,0,240,80);this.installWindowPersistence("format",this.formatWindow);null!=g?this.restoreWindowState("format",this.formatWindow):"sketch"==Editor.currentTheme&&this.formatEnabled?window.setTimeout(mxUtils.bind(this,mxUtils.bind(this,function(){var E=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,K=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;-this.formatWindow.window.setVisible(!0);(1E3>E||690>K)&&this.formatWindow.window.toggleMinimized()}),0)):this.formatWindow.window.setVisible(!1)}};var F=EditorUi.prototype.toggleFormatPanel;EditorUi.prototype.toggleFormatPanel=function(c){var g=this.formatWindow;null!=g?g.window.setVisible(null!=c?c:!this.isFormatPanelVisible()):F.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=function(c,g){if(this.isShapesPanelVisible()!=c){var l=EditorUi.prototype.hsplitPosition;0==l&&(l=Math.min(this.diagramContainer.clientWidth,-this.defaultSidebarWidth));var n=this.hsplitPosition,r=mxUtils.bind(this,function(){this.hsplitPosition=t;this.refresh();g||(this.diagramContainer.scrollLeft-=n-this.hsplitPosition)}),t=c?l:0,v=Editor.transitionDelay;mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==t?"translateX(0)":"translateX(-100%)");0!=t&&r();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==t?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,+this.formatWindow.window.toggleMinimized()}));this.formatWindow.window.minimumSize=new mxRectangle(0,0,240,80);this.installWindowPersistence("format",this.formatWindow);null!=f?this.restoreWindowState("format",this.formatWindow):"sketch"==Editor.currentTheme&&this.formatEnabled?window.setTimeout(mxUtils.bind(this,mxUtils.bind(this,function(){var E=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,K=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;+this.formatWindow.window.setVisible(!0);(1E3>E||690>K)&&this.formatWindow.window.toggleMinimized()}),0)):this.formatWindow.window.setVisible(!1)}};var F=EditorUi.prototype.toggleFormatPanel;EditorUi.prototype.toggleFormatPanel=function(c){var f=this.formatWindow;null!=f?f.window.setVisible(null!=c?c:!this.isFormatPanelVisible()):F.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=function(c,f){if(this.isShapesPanelVisible()!=c){var l=EditorUi.prototype.hsplitPosition;0==l&&(l=Math.min(this.diagramContainer.clientWidth,+this.defaultSidebarWidth));var n=this.hsplitPosition,r=mxUtils.bind(this,function(){this.hsplitPosition=t;this.refresh();f||(this.diagramContainer.scrollLeft-=n-this.hsplitPosition)}),t=c?l:0,v=Editor.transitionDelay;mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==t?"translateX(0)":"translateX(-100%)");0!=t&&r();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==t?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition","transform "+v+"s ease-in-out");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin","top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin",null);0==t&&r();this.fireEvent(new mxEventObject("shapesPanelChanged"))}),1E3*v)}),0)}};EditorUi.prototype.isShapesPanelVisible=-function(){return 0<this.hsplitPosition};var J=EditorUi.prototype.isFormatPanelVisible;EditorUi.prototype.isFormatPanelVisible=function(){var c=this.formatWindow;return null!=c?c.window.isVisible():J.apply(this,arguments)};EditorUi.prototype.createShapesPanel=function(c){var g=mxUtils.bind(this,function(v,B){var E=this.menus.get(v);v=this.createMenuElement(B,mxUtils.bind(this,function(){E.funct.apply(this,arguments)}));v.setAttribute("title",B);v.style.cssText="position:absolute;border-style:solid;bottom:0px;margin:0;border-radius:0;border-width:1px 0 0 0;";-v.className="geButton";c.parentNode.appendChild(v);return v});if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries))if(null!=this.actions.get("newLibrary"))g=document.createElement("div"),g.style.cssText="position:absolute;border-style:solid;bottom:0px;margin:0;border-radius:0;border-width:1px 0 0 0;",g.className="geButton",g.style.left="0px",g.style.right="50%",mxUtils.write(g,mxResources.get("newLibrary")),c.appendChild(g),mxEvent.addListener(g,"click",this.actions.get("newLibrary").funct),-g=g.cloneNode(!1),g.style.left="50%",g.style.right="0px",mxUtils.write(g,mxResources.get("openLibrary")),c.appendChild(g),mxEvent.addListener(g,"click",this.actions.get("openLibrary").funct);else{var l=g("newLibrary","");l.style.left="0px";l.style.right="50%";var n=document.createElement("span");l.appendChild(n);var r=g("openLibraryFrom","");r.style.borderLeftWidth="1px";r.style.left="50%";r.style.right="0px";var t=document.createElement("span");r.appendChild(t);this.dependsOnLanguage(mxUtils.bind(this,-function(){n.innerHTML="";mxUtils.write(n,mxResources.get("newLibrary"));l.setAttribute("title",mxResources.get("newLibrary"));t.innerHTML="";mxUtils.write(t,mxResources.get("openLibraryFrom"));r.setAttribute("title",mxResources.get("openLibraryFrom"))}))}c.appendChild(this.sidebar.container);c.style.overflow="hidden"};EditorUi.prototype.createShapesWindow=function(){if(null==this.sidebarWindow){var c=mxSettings.getWindowState("shapes"),g=null!=c&&null!=c.w?c.w:Math.min(this.diagramContainer.parentNode.clientWidth--10,230)-6,l=null!=c&&null!=c.h?c.h:("1"==urlParams.embedInline?650:Math.min(this.diagramContainer.parentNode.clientHeight,650))-6,n="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme,r=null!=c&&null!=c.x?c.x:n&&"1"!=urlParams.embedInline?66:10;n=null!=c&&null!=c.y?c.y:n&&"1"!=urlParams.embedInline?Math.max(30,(this.diagramContainer.parentNode.clientHeight-l)/2):56;this.sidebarWindow=new WrapperWindow(this,mxResources.get("shapes"),r,n,g,l,mxUtils.bind(this,function(t){this.createShapesPanel(t)}));+function(){return 0<this.hsplitPosition};var J=EditorUi.prototype.isFormatPanelVisible;EditorUi.prototype.isFormatPanelVisible=function(){var c=this.formatWindow;return null!=c?c.window.isVisible():J.apply(this,arguments)};EditorUi.prototype.createShapesPanel=function(c){var f=mxUtils.bind(this,function(v,B){var E=this.menus.get(v);v=this.createMenuElement(B,mxUtils.bind(this,function(){E.funct.apply(this,arguments)}));v.setAttribute("title",B);v.style.cssText="position:absolute;border-style:solid;bottom:0px;margin:0;border-radius:0;border-width:1px 0 0 0;";+v.className="geButton";c.parentNode.appendChild(v);return v});if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries))if(null!=this.actions.get("newLibrary"))f=document.createElement("div"),f.style.cssText="position:absolute;border-style:solid;bottom:0px;margin:0;border-radius:0;border-width:1px 0 0 0;",f.className="geButton",f.style.left="0px",f.style.right="50%",mxUtils.write(f,mxResources.get("newLibrary")),c.appendChild(f),mxEvent.addListener(f,"click",this.actions.get("newLibrary").funct),+f=f.cloneNode(!1),f.style.left="50%",f.style.right="0px",mxUtils.write(f,mxResources.get("openLibrary")),c.appendChild(f),mxEvent.addListener(f,"click",this.actions.get("openLibrary").funct);else{var l=f("newLibrary","");l.style.left="0px";l.style.right="50%";var n=document.createElement("span");l.appendChild(n);var r=f("openLibraryFrom","");r.style.borderLeftWidth="1px";r.style.left="50%";r.style.right="0px";var t=document.createElement("span");r.appendChild(t);this.dependsOnLanguage(mxUtils.bind(this,+function(){n.innerHTML="";mxUtils.write(n,mxResources.get("newLibrary"));l.setAttribute("title",mxResources.get("newLibrary"));t.innerHTML="";mxUtils.write(t,mxResources.get("openLibraryFrom"));r.setAttribute("title",mxResources.get("openLibraryFrom"))}))}c.appendChild(this.sidebar.container);c.style.overflow="hidden"};EditorUi.prototype.createShapesWindow=function(){if(null==this.sidebarWindow){var c=mxSettings.getWindowState("shapes"),f=null!=c&&null!=c.w?c.w:Math.min(this.diagramContainer.parentNode.clientWidth-+10,230)-6,l=null!=c&&null!=c.h?c.h:("1"==urlParams.embedInline?650:Math.min(this.diagramContainer.parentNode.clientHeight,650))-6,n="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme,r=null!=c&&null!=c.x?c.x:n&&"1"!=urlParams.embedInline?66:10;n=null!=c&&null!=c.y?c.y:n&&"1"!=urlParams.embedInline?Math.max(30,(this.diagramContainer.parentNode.clientHeight-l)/2):56;this.sidebarWindow=new WrapperWindow(this,mxResources.get("shapes"),r,n,f,l,mxUtils.bind(this,function(t){this.createShapesPanel(t)}));this.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.sidebarWindow.window.fit()}));this.sidebarWindow.window.minimumSize=new mxRectangle(0,0,90,90);this.installWindowPersistence("shapes",this.sidebarWindow);null!=c?this.restoreWindowState("shapes",this.sidebarWindow):this.sidebarWindow.window.setVisible(!1)}};EditorUi.prototype.setSketchMode=function(c){this.doSetSketchMode(c);null==urlParams.rough&&(mxSettings.settings.sketchMode=c,mxSettings.save());this.fireEvent(new mxEventObject("sketchModeChanged"))};-EditorUi.prototype.setAndPersistDarkMode=function(c){var g=c;"auto"==c&&(g=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode(g);mxSettings.settings.darkMode=c;mxSettings.save();c=mxSettings.getUi();null==urlParams.ui&&"dark"==c&&this.setCurrentTheme("kennedy",!0)};EditorUi.prototype.setAndPersistLanguage=function(c){this.spinner.spin(document.body,mxResources.get("working"))&&(mxSettings.setLanguage(c),mxSettings.save(),mxClient.language=c,mxResources.loadDefaultBundle=-!1,mxResources.add(RESOURCE_BASE,null,mxUtils.bind(this,function(){this.spinner.stop();for(this.updateOfflineLanguages();null!=this.dialog;){var g=this.dialog;this.hideDialog(!0);if(this.dialog==g)break}this.fireEvent(new mxEventObject("languageChanged"));null==this.getCurrentFile()&&"function"===typeof this.showSplash&&this.showSplash()})))};EditorUi.prototype.getOfflineLanguages=function(c){try{if("undefined"!==typeof caches){caches.keys().then(function(g){for(var l=[],n=0;n<g.length;n++)"workbox-precache-v2"==-g[n].substring(0,19)&&l.push(caches.open(g[n]).then(function(r){return r.keys()}));return Promise.all(l)}).then(function(g){for(var l=Object.create(null),n=!1,r=0;r<g.length;r++)for(var t=0;t<g[r].length;t++){var v=/\/resources\/dia(?:_([a-z0-9-]+))?\.txt$/.exec((new URL(g[r][t].url)).pathname);null!=v&&(null!=v[1]?l[v[1]]=!0:n=!0)}g=Object.keys(l).sort();c(null!=g?g:[],1==n)})["catch"](function(){c([],!1)});return}}catch(g){}c([],!1)};EditorUi.prototype.updateOfflineLanguages=function(){this.getOfflineLanguages(mxUtils.bind(this,-function(c,g){var l=Object.create(null);g&&(l.en=!0);for(g=0;g<c.length;g++)l[c[g]]=!0;this.offlineLanguages=l}))};EditorUi.prototype.removeOfflineLanguage=function(c,g){try{if("undefined"!==typeof caches&&/^[a-z0-9-]+$/.test(c)){caches.keys().then(function(l){for(var n=[],r=0;r<l.length;r++)"workbox-precache-v2"==l[r].substring(0,19)&&n.push(caches.open(l[r]).then(function(t){return t.keys().then(function(v){return Promise.all(v.filter(function(B){return(new URL(B.url)).pathname.endsWith("/resources/dia_"+-c+".txt")}).map(function(B){return t.delete(B)}))})}));return Promise.all(n)}).then(mxUtils.bind(this,function(){this.updateOfflineLanguages();g()}))["catch"](function(){g()});return}}catch(l){}g()};EditorUi.prototype.isLanguageAvailableOffline=function(c){return!1!==navigator.onLine||null==this.offlineLanguages||1!=this.offlineLanguages.en||""==c||"en"==c||1==this.offlineLanguages[c]};EditorUi.prototype.setElementTitle=function(c,g){this.dependsOnLanguage(mxUtils.bind(this,function(){c.setAttribute("title",-mxResources.get(g))}))};EditorUi.prototype.dependsOnLanguage=function(c){c();this.addListener("languageChanged",c)};EditorUi.prototype.setAndPersistHighContrast=function(c){this.setHighContrast(c);Editor.isSettingsEnabled()&&(mxSettings.settings.highContrast=c,mxSettings.save())};EditorUi.prototype.isHighContrast=function(){var c=document.getElementById("high-contrast-stylesheet");return null!=c&&window.matchMedia?(c=c.getAttribute("media"),"all"==c||"not all"!=c&&window.matchMedia("(forced-colors: active)").matches):-!1};EditorUi.prototype.setHighContrast=function(c){var g=document.getElementById("high-contrast-stylesheet");if(null!=g&&window.matchMedia){var l=window.matchMedia("(forced-colors: active)").matches,n=g.getAttribute("media");(n="all"==n||"not all"!=n&&l)&&!c?g.setAttribute("media",l?"not all":"(forced-colors: active)"):!n&&c&&g.setAttribute("media",l?"(forced-colors: active)":"all")}};EditorUi.prototype.isRulerVisible=function(){return null!=this.ruler};EditorUi.prototype.setRulerVisible=function(c){var g=-this.getDiagramContainerOffset();mxSettings.setRulerOn(c);mxSettings.save();c||null==this.ruler?c&&null==this.ruler&&(this.ruler=new mxDualRuler(this,this.editor.graph.view.unit)):(this.ruler.destroy(),this.ruler=null);this.fireEvent(new mxEventObject("rulerVisibleChanged"));c=this.getDiagramContainerOffset();this.diagramContainer.scrollLeft+=c.x-g.x;this.diagramContainer.scrollTop+=c.x-g.x};EditorUi.prototype.isAutoDarkModeSupported=function(){return null!=window.matchMedia};EditorUi.prototype.isAutoDarkMode=+EditorUi.prototype.setAndPersistDarkMode=function(c){var f=c;"auto"==c&&(f=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode(f);mxSettings.settings.darkMode=c;mxSettings.save();c=mxSettings.getUi();null==urlParams.ui&&"dark"==c&&this.setCurrentTheme("kennedy",!0)};EditorUi.prototype.setAndPersistLanguage=function(c){this.spinner.spin(document.body,mxResources.get("working"))&&(mxSettings.setLanguage(c),mxSettings.save(),mxClient.language=c,mxResources.loadDefaultBundle=+!1,mxResources.add(RESOURCE_BASE,null,mxUtils.bind(this,function(){this.spinner.stop();for(this.updateOfflineLanguages();null!=this.dialog;){var f=this.dialog;this.hideDialog(!0);if(this.dialog==f)break}this.fireEvent(new mxEventObject("languageChanged"));null==this.getCurrentFile()&&"function"===typeof this.showSplash&&this.showSplash()})))};EditorUi.prototype.getOfflineLanguages=function(c){try{if("undefined"!==typeof caches){caches.keys().then(function(f){for(var l=[],n=0;n<f.length;n++)"workbox-precache-v2"==+f[n].substring(0,19)&&l.push(caches.open(f[n]).then(function(r){return r.keys()}));return Promise.all(l)}).then(function(f){for(var l=Object.create(null),n=!1,r=0;r<f.length;r++)for(var t=0;t<f[r].length;t++){var v=/\/resources\/dia(?:_([a-z0-9-]+))?\.txt$/.exec((new URL(f[r][t].url)).pathname);null!=v&&(null!=v[1]?l[v[1]]=!0:n=!0)}f=Object.keys(l).sort();c(null!=f?f:[],1==n)})["catch"](function(){c([],!1)});return}}catch(f){}c([],!1)};EditorUi.prototype.updateOfflineLanguages=function(){this.getOfflineLanguages(mxUtils.bind(this,+function(c,f){var l=Object.create(null);f&&(l.en=!0);for(f=0;f<c.length;f++)l[c[f]]=!0;this.offlineLanguages=l}))};EditorUi.prototype.removeOfflineLanguage=function(c,f){try{if("undefined"!==typeof caches&&/^[a-z0-9-]+$/.test(c)){caches.keys().then(function(l){for(var n=[],r=0;r<l.length;r++)"workbox-precache-v2"==l[r].substring(0,19)&&n.push(caches.open(l[r]).then(function(t){return t.keys().then(function(v){return Promise.all(v.filter(function(B){return(new URL(B.url)).pathname.endsWith("/resources/dia_"++c+".txt")}).map(function(B){return t.delete(B)}))})}));return Promise.all(n)}).then(mxUtils.bind(this,function(){this.updateOfflineLanguages();f()}))["catch"](function(){f()});return}}catch(l){}f()};EditorUi.prototype.isLanguageAvailableOffline=function(c){return!1!==navigator.onLine||null==this.offlineLanguages||1!=this.offlineLanguages.en||""==c||"en"==c||1==this.offlineLanguages[c]};EditorUi.prototype.setElementTitle=function(c,f){this.dependsOnLanguage(mxUtils.bind(this,function(){c.setAttribute("title",+mxResources.get(f))}))};EditorUi.prototype.dependsOnLanguage=function(c){c();this.addListener("languageChanged",c)};EditorUi.prototype.setAndPersistHighContrast=function(c){this.setHighContrast(c);Editor.isSettingsEnabled()&&(mxSettings.settings.highContrast=c,mxSettings.save())};EditorUi.prototype.isHighContrast=function(){var c=document.getElementById("high-contrast-stylesheet");return null!=c&&window.matchMedia?(c=c.getAttribute("media"),"all"==c||"not all"!=c&&window.matchMedia("(forced-colors: active)").matches):+!1};EditorUi.prototype.setHighContrast=function(c){var f=document.getElementById("high-contrast-stylesheet");if(null!=f&&window.matchMedia){var l=window.matchMedia("(forced-colors: active)").matches,n=f.getAttribute("media");(n="all"==n||"not all"!=n&&l)&&!c?f.setAttribute("media",l?"not all":"(forced-colors: active)"):!n&&c&&f.setAttribute("media",l?"(forced-colors: active)":"all")}};EditorUi.prototype.isRulerVisible=function(){return null!=this.ruler};EditorUi.prototype.setRulerVisible=function(c){var f=+this.getDiagramContainerOffset();mxSettings.setRulerOn(c);mxSettings.save();c||null==this.ruler?c&&null==this.ruler&&(this.ruler=new mxDualRuler(this,this.editor.graph.view.unit)):(this.ruler.destroy(),this.ruler=null);this.fireEvent(new mxEventObject("rulerVisibleChanged"));c=this.getDiagramContainerOffset();this.diagramContainer.scrollLeft+=c.x-f.x;this.diagramContainer.scrollTop+=c.x-f.x};EditorUi.prototype.isAutoDarkModeSupported=function(){return null!=window.matchMedia};EditorUi.prototype.isAutoDarkMode=function(c){return!c&&"auto"==urlParams.dark||Editor.isSettingsEnabled()&&"auto"==mxSettings.settings.darkMode};EditorUi.prototype.setDarkMode=function(c){mxUtils.lightDarkColorSupported&&(Editor.darkMode=c,c=mxUtils.isAncestorNode(document.body,this.container)||null==this.editor?this.container:this.editor.graph.container,mxConstants.DROP_TARGET_COLOR=Editor.isDarkMode()?"#00ff00":"#0000ff",null!=c&&(Editor.isDarkMode()?(c.classList.add("geDarkMode"),c.style.colorScheme="dark"):(c.classList.remove("geDarkMode"),-c.style.colorScheme="light")),null!=this.ruler&&this.ruler.updateStyle(),this.fireEvent(new mxEventObject("darkModeChanged")))};EditorUi.prototype.setPagesVisible=function(c){Editor.pagesVisible!=c&&(Editor.pagesVisible=c,mxSettings.settings.pagesVisible=c,mxSettings.save(),this.fireEvent(new mxEventObject("pagesVisibleChanged")))};EditorUi.prototype.setSidebarTitles=function(c,g){this.sidebar.sidebarTitles!=c&&(this.sidebar.sidebarTitles=c,Editor.isSettingsEnabled()&&g&&(mxSettings.settings.sidebarTitles=+c.style.colorScheme="light")),null!=this.ruler&&this.ruler.updateStyle(),this.fireEvent(new mxEventObject("darkModeChanged")))};EditorUi.prototype.setPagesVisible=function(c){Editor.pagesVisible!=c&&(Editor.pagesVisible=c,mxSettings.settings.pagesVisible=c,mxSettings.save(),this.fireEvent(new mxEventObject("pagesVisibleChanged")))};EditorUi.prototype.setSidebarTitles=function(c,f){this.sidebar.sidebarTitles!=c&&(this.sidebar.sidebarTitles=c,Editor.isSettingsEnabled()&&f&&(mxSettings.settings.sidebarTitles=c,mxSettings.save()),this.fireEvent(new mxEventObject("sidebarTitlesChanged")))};EditorUi.prototype.setInlineFullscreen=function(c){Editor.inlineFullscreen!=c&&(this.diagramContainer.setAttribute("data-scrollState",JSON.stringify(this.saveScrollState(!0))),(this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:c,rect:this.diagramContainer.getBoundingClientRect()}),"*"))};EditorUi.prototype.inlineSizeChanged=function(){var c=this.sketchFooterMenuElt,-g=this.sketchMainMenuElt,l=this.sketchPickerMenuElt;if(Editor.inlineFullscreen)g.style.left="10px",g.style.top="10px",l.style.left="10px",l.style.top="60px",c.style.top="10px",c.style.right="12px",c.style.left="",null==this.diagramContainer.getAttribute("data-bounds")&&(this.diagramContainer.setAttribute("data-bounds",this.diagramContainer.style.top+" "+this.diagramContainer.style.left+" "+this.diagramContainer.style.width+" "+this.diagramContainer.style.height),this.diagramContainer.style.top="0px",+f=this.sketchMainMenuElt,l=this.sketchPickerMenuElt;if(Editor.inlineFullscreen)f.style.left="10px",f.style.top="10px",l.style.left="10px",l.style.top="60px",c.style.top="10px",c.style.right="12px",c.style.left="",null==this.diagramContainer.getAttribute("data-bounds")&&(this.diagramContainer.setAttribute("data-bounds",this.diagramContainer.style.top+" "+this.diagramContainer.style.left+" "+this.diagramContainer.style.width+" "+this.diagramContainer.style.height),this.diagramContainer.style.top="0px",this.diagramContainer.style.left="0px",this.diagramContainer.style.bottom="0px",this.diagramContainer.style.right="0px",this.diagramContainer.style.width="",this.diagramContainer.style.height="");else{var n=this.diagramContainer.getAttribute("data-bounds");if(null!=n){this.diagramContainer.removeAttribute("data-bounds");var r=n.split(" ");n=mxUtils.getDocumentSize();this.diagramContainer.style.top=r[0];this.diagramContainer.style.left=r[1];var t=parseInt(r[2]);r=parseInt(r[3]);t=Math.min(null!=this.minInlineWidth?-Math.max(this.minInlineWidth,t):t,n.width-80);r=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,r):r,n.height-80);this.diagramContainer.style.width=t+"px";this.diagramContainer.style.height=r+"px";this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";(this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify({event:"resize",rect:this.diagramContainer.getBoundingClientRect()}),"*")}g.style.left=this.diagramContainer.offsetLeft+"px";g.style.top=-this.diagramContainer.offsetTop-g.offsetHeight-4+"px";l.style.display="";l.style.left=this.diagramContainer.offsetLeft-l.offsetWidth-4+"px";l.style.top=this.diagramContainer.offsetTop+"px";c.style.left=this.diagramContainer.offsetLeft+this.diagramContainer.offsetWidth-c.offsetWidth+"px";c.style.top=g.style.top;c.style.right="";this.bottomResizer.style.left=this.diagramContainer.offsetLeft+(this.diagramContainer.offsetWidth-this.bottomResizer.offsetWidth)/2+"px";this.bottomResizer.style.top=this.diagramContainer.offsetTop++Math.max(this.minInlineWidth,t):t,n.width-80);r=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,r):r,n.height-80);this.diagramContainer.style.width=t+"px";this.diagramContainer.style.height=r+"px";this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";(this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify({event:"resize",rect:this.diagramContainer.getBoundingClientRect()}),"*")}f.style.left=this.diagramContainer.offsetLeft+"px";f.style.top=+this.diagramContainer.offsetTop-f.offsetHeight-4+"px";l.style.display="";l.style.left=this.diagramContainer.offsetLeft-l.offsetWidth-4+"px";l.style.top=this.diagramContainer.offsetTop+"px";c.style.left=this.diagramContainer.offsetLeft+this.diagramContainer.offsetWidth-c.offsetWidth+"px";c.style.top=f.style.top;c.style.right="";this.bottomResizer.style.left=this.diagramContainer.offsetLeft+(this.diagramContainer.offsetWidth-this.bottomResizer.offsetWidth)/2+"px";this.bottomResizer.style.top=this.diagramContainer.offsetTop+this.diagramContainer.offsetHeight-this.bottomResizer.offsetHeight/2-1+"px";this.rightResizer.style.left=this.diagramContainer.offsetLeft+this.diagramContainer.offsetWidth-this.rightResizer.offsetWidth/2-1+"px";this.rightResizer.style.top=this.diagramContainer.offsetTop+(this.diagramContainer.offsetHeight-this.bottomResizer.offsetHeight)/2+"px"}this.bottomResizer.style.visibility=Editor.inlineFullscreen||Editor.noResizers?"hidden":"";this.rightResizer.style.visibility=this.bottomResizer.style.visibility;-n="1"==urlParams.embedInline&&Editor.passiveScroll;g.style.visibility=n?"hidden":"";c.style.visibility=n?"hidden":"";l.style.display=n?"none":""};EditorUi.prototype.doSetSketchMode=function(c){Editor.sketchMode!=c&&(Editor.sketchMode=c,this.updateDefaultStyles())};EditorUi.prototype.updateDefaultStyles=function(){var c=this.editor.graph;c.defaultVertexStyle=mxUtils.clone(Graph.prototype.defaultVertexStyle);c.defaultEdgeStyle=mxUtils.clone(Graph.prototype.defaultEdgeStyle);if(null==Editor.config||+n="1"==urlParams.embedInline&&Editor.passiveScroll;f.style.visibility=n?"hidden":"";c.style.visibility=n?"hidden":"";l.style.display=n?"none":""};EditorUi.prototype.doSetSketchMode=function(c){Editor.sketchMode!=c&&(Editor.sketchMode=c,this.updateDefaultStyles())};EditorUi.prototype.updateDefaultStyles=function(){var c=this.editor.graph;c.defaultVertexStyle=mxUtils.clone(Graph.prototype.defaultVertexStyle);c.defaultEdgeStyle=mxUtils.clone(Graph.prototype.defaultEdgeStyle);if(null==Editor.config||null==Editor.config.defaultVertexStyle&&null==Editor.config.defaultEdgeStyle)"simple"==Editor.currentTheme||"1"==urlParams.embedInline?(c.vertexFontSize=16,c.edgeFontSize=c.vertexFontSize-4):"sketch"==Editor.currentTheme?(c.vertexFontSize=20,c.edgeFontSize=c.vertexFontSize-4):(c.vertexFontSize=Graph.prototype.vertexFontSize,c.edgeFontSize=Graph.prototype.edgeFontSize),c.defaultEdgeStyle.fontSize=c.edgeFontSize;if(null==Editor.config||null==Editor.config.defaultEdgeStyle)"simple"==Editor.currentTheme||"1"==urlParams.embedInline?(c.defaultEdgeStyle.edgeStyle="none",c.defaultEdgeStyle.curved="1",c.defaultEdgeStyle.rounded="0",c.defaultEdgeStyle.endSize="8",c.defaultEdgeStyle.startSize="8"):"sketch"==Editor.currentTheme&&(c.defaultEdgeStyle.edgeStyle="none",c.defaultEdgeStyle.curved="1",c.defaultEdgeStyle.rounded="0",c.defaultEdgeStyle.jettySize="auto",c.defaultEdgeStyle.orthogonalLoop="1",c.defaultEdgeStyle.endArrow="open",c.defaultEdgeStyle.endSize="14",c.defaultEdgeStyle.startSize="14",c.defaultEdgeStyle.sourcePerimeterSpacing="8",c.defaultEdgeStyle.targetPerimeterSpacing="8");if(null==Editor.config||null==Editor.config.defaultFonts){if(null==Editor.config||null==Editor.config.defaultVertexStyle&&null==Editor.config.defaultEdgeStyle){if("sketch"==Editor.currentTheme&&"1"!=urlParams.embedInline||Editor.sketchMode)c.defaultVertexStyle.fontFamily=Editor.sketchFontFamily,c.defaultVertexStyle.fontSource=Editor.sketchFontSource,c.defaultEdgeStyle.fontFamily=Editor.sketchFontFamily,c.defaultEdgeStyle.fontSource=Editor.sketchFontSource;Editor.sketchMode&&(c.defaultVertexStyle.sketch="1",c.defaultVertexStyle.curveFitting=Editor.sketchDefaultCurveFitting,c.defaultVertexStyle.jiggle=Editor.sketchDefaultJiggle,c.defaultVertexStyle.hachureGap="4",c.defaultEdgeStyle.sketch="1",c.defaultEdgeStyle.curveFitting=Editor.sketchDefaultCurveFitting,c.defaultEdgeStyle.jiggle=Editor.sketchDefaultJiggle,c.defaultEdgeStyle.hachureGap="4")}this.menus.defaultFonts="sketch"==Editor.currentTheme?Menus.prototype.defaultFonts.concat(Editor.sketchFonts):-Menus.prototype.defaultFonts}c.currentVertexStyle=mxUtils.clone(c.defaultVertexStyle);c.currentEdgeStyle=mxUtils.clone(c.defaultEdgeStyle);this.clearDefaultStyle();this.restorePersistedEdgeStyle()};EditorUi.prototype.restorePersistedEdgeStyle=function(){var c=this.editor.graph,g="undefined"!==typeof mxSettings&&null!=mxSettings.getCurrentEdgeStyle?mxSettings.getCurrentEdgeStyle():null;if(null!=g){c.currentEdgeStyle=mxUtils.clone(c.defaultEdgeStyle);for(var l in g)"__proto__"!=l&&"constructor"!=l&&-"prototype"!=l&&(c.currentEdgeStyle[l]=g[l]);null!=g.fontFamily&&null==g.fontSource&&delete c.currentEdgeStyle.fontSource;"orthogonalEdgeStyle"!=c.defaultEdgeStyle.edgeStyle&&delete c.currentEdgeStyle.libavoidRouting;this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))}};EditorUi.prototype.getLinkTitle=function(c){var g=Graph.prototype.getLinkTitle.apply(this,arguments);if(Graph.isPageLink(c)){var l=c.indexOf(",");0<l&&(g=this.getPageById(c.substring(l+1)),g=null!=g?-g.getName():mxResources.get("pageNotFound"))}else"data:"==c.substring(0,5)&&(g=this.getCustomLinkTitle(c));return g};EditorUi.prototype.getCustomLinkTitle=function(c){var g=mxResources.get("action");if("data:action/json,"==c.substring(0,17))try{var l=JSON.parse(c.substring(17));if(null!=l&&"string"==typeof l.title&&""!=l.title.trim())g=l.title.trim();else if(null!=l&&Array.isArray(l.actions)&&0<l.actions.length){var n=Object.keys(l.actions[0])[0]||"";if("animation"==n&&null!=l.actions[0].animation&&-Array.isArray(l.actions[0].animation.steps)){var r=l.actions[0].animation.steps.length;g=mxResources.get("effects")+" ("+r+")"}else if(""!=n){var t="undefined"!=typeof CustomActionDialog&&null!=CustomActionDialog?CustomActionDialog.SCHEMAS[n]:null;g=mxResources.get(null!=t&&t.labelKey?t.labelKey:n,null,null!=t?t.label:n)}}}catch(v){}return g};EditorUi.prototype.handleCustomLink=function(c,g){if(Graph.isPageLink(c))if(g=c.indexOf(","),c=this.getPageById(c.substring(g+1)))this.selectPage(c);else throw Error(mxResources.get("pageNotFound")||-"Page not found");else this.editor.graph.handleCustomLink(c,g)};EditorUi.prototype.installSettings=function(){if(Editor.isSettingsEnabled()){var c=this.editor.graph;Editor.pagesVisible=mxSettings.settings.pagesVisible;ColorDialog.recentColors=mxSettings.getRecentColors();if(isLocalStorage)try{window.addEventListener("storage",mxUtils.bind(this,function(g){g.key==mxSettings.key&&(mxSettings.load(),ColorDialog.recentColors=mxSettings.getRecentColors(),this.menus.customFonts=mxSettings.getCustomFonts())}),-!1)}catch(g){}this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]));this.menus.customFonts=mxSettings.getCustomFonts();this.addListener("customFontsChanged",mxUtils.bind(this,function(g,l){mxSettings.setCustomFonts(this.menus.customFonts);mxSettings.save()}));c.pageFormat=null!=c.defaultPageFormat?c.defaultPageFormat:mxSettings.getPageFormat();this.addListener("pageFormatChanged",mxUtils.bind(this,function(g,l){mxSettings.setPageFormat(c.pageFormat);mxSettings.save()}));-c.view.defaultDarkGridColor=mxSettings.getGridColor(!0);c.view.defaultGridColor=mxSettings.getGridColor(!1);c.view.gridColor="light-dark("+c.view.defaultGridColor+", "+c.view.defaultDarkGridColor+")";this.addListener("gridColorChanged",mxUtils.bind(this,function(g,l){mxSettings.setGridColor(c.view.defaultGridColor,!1);mxSettings.setGridColor(c.view.defaultDarkGridColor,!0);mxSettings.save()}));if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)this.editor.addListener("autosaveChanged",mxUtils.bind(this,-function(g,l){mxSettings.setAutosave(this.editor.autosave);mxSettings.save()})),this.editor.autosave=mxSettings.getAutosave();if(!this.editor.chromeless||this.editor.editable)null!=mxSettings.settings.enableAnimations&&(Editor.enableAnimations=mxSettings.settings.enableAnimations),this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(g,l){mxSettings.settings.enableAnimations=Editor.enableAnimations;mxSettings.save()}));null!=this.sidebar&&(null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes?+Menus.prototype.defaultFonts}c.currentVertexStyle=mxUtils.clone(c.defaultVertexStyle);c.currentEdgeStyle=mxUtils.clone(c.defaultEdgeStyle);this.clearDefaultStyle();this.restorePersistedEdgeStyle()};EditorUi.prototype.restorePersistedEdgeStyle=function(){var c=this.editor.graph,f="undefined"!==typeof mxSettings&&null!=mxSettings.getCurrentEdgeStyle?mxSettings.getCurrentEdgeStyle():null;if(null!=f){c.currentEdgeStyle=mxUtils.clone(c.defaultEdgeStyle);for(var l in f)"__proto__"!=l&&"constructor"!=l&&+"prototype"!=l&&(c.currentEdgeStyle[l]=f[l]);null!=f.fontFamily&&null==f.fontSource&&delete c.currentEdgeStyle.fontSource;"orthogonalEdgeStyle"!=c.defaultEdgeStyle.edgeStyle&&delete c.currentEdgeStyle.libavoidRouting;this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))}};EditorUi.prototype.getLinkTitle=function(c){var f=Graph.prototype.getLinkTitle.apply(this,arguments);if(Graph.isPageLink(c)){var l=c.indexOf(",");0<l&&(f=this.getPageById(c.substring(l+1)),f=null!=f?+f.getName():mxResources.get("pageNotFound"))}else"data:"==c.substring(0,5)&&(f=this.getCustomLinkTitle(c));return f};EditorUi.prototype.getCustomLinkTitle=function(c){var f=mxResources.get("action");if("data:action/json,"==c.substring(0,17))try{var l=JSON.parse(c.substring(17));if(null!=l&&"string"==typeof l.title&&""!=l.title.trim())f=l.title.trim();else if(null!=l&&Array.isArray(l.actions)&&0<l.actions.length){var n=Object.keys(l.actions[0])[0]||"";if("animation"==n&&null!=l.actions[0].animation&&+Array.isArray(l.actions[0].animation.steps)){var r=l.actions[0].animation.steps.length;f=mxResources.get("effects")+" ("+r+")"}else if(""!=n){var t="undefined"!=typeof CustomActionDialog&&null!=CustomActionDialog?CustomActionDialog.SCHEMAS[n]:null;f=mxResources.get(null!=t&&t.labelKey?t.labelKey:n,null,null!=t?t.label:n)}}}catch(v){}return f};EditorUi.prototype.handleCustomLink=function(c,f){if(Graph.isPageLink(c))if(f=c.indexOf(","),c=this.getPageById(c.substring(f+1)))this.selectPage(c);else throw Error(mxResources.get("pageNotFound")||+"Page not found");else this.editor.graph.handleCustomLink(c,f)};EditorUi.prototype.installSettings=function(){if(Editor.isSettingsEnabled()){var c=this.editor.graph;Editor.pagesVisible=mxSettings.settings.pagesVisible;ColorDialog.recentColors=mxSettings.getRecentColors();if(isLocalStorage)try{window.addEventListener("storage",mxUtils.bind(this,function(f){f.key==mxSettings.key&&(mxSettings.load(),ColorDialog.recentColors=mxSettings.getRecentColors(),this.menus.customFonts=mxSettings.getCustomFonts())}),+!1)}catch(f){}this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]));this.menus.customFonts=mxSettings.getCustomFonts();this.addListener("customFontsChanged",mxUtils.bind(this,function(f,l){mxSettings.setCustomFonts(this.menus.customFonts);mxSettings.save()}));c.pageFormat=null!=c.defaultPageFormat?c.defaultPageFormat:mxSettings.getPageFormat();this.addListener("pageFormatChanged",mxUtils.bind(this,function(f,l){mxSettings.setPageFormat(c.pageFormat);mxSettings.save()}));+c.view.defaultDarkGridColor=mxSettings.getGridColor(!0);c.view.defaultGridColor=mxSettings.getGridColor(!1);c.view.gridColor="light-dark("+c.view.defaultGridColor+", "+c.view.defaultDarkGridColor+")";this.addListener("gridColorChanged",mxUtils.bind(this,function(f,l){mxSettings.setGridColor(c.view.defaultGridColor,!1);mxSettings.setGridColor(c.view.defaultDarkGridColor,!0);mxSettings.save()}));if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)this.editor.addListener("autosaveChanged",mxUtils.bind(this,+function(f,l){mxSettings.setAutosave(this.editor.autosave);mxSettings.save()})),this.editor.autosave=mxSettings.getAutosave();if(!this.editor.chromeless||this.editor.editable)null!=mxSettings.settings.enableAnimations&&(Editor.enableAnimations=mxSettings.settings.enableAnimations),this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(f,l){mxSettings.settings.enableAnimations=Editor.enableAnimations;mxSettings.save()}));null!=this.sidebar&&(null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes?(this.sidebar.searchShapes(decodeURIComponent(urlParams["search-shapes"])),this.sidebar.showEntries("search")):(this.sidebar.showPalette("search",mxSettings.settings.search),this.editor.chromeless&&!this.editor.editable||!(mxSettings.settings.isNew||8>=parseInt(mxSettings.settings.version||0))||(this.toggleScratchpad(),mxSettings.save())));this.addListener("formatWidthChanged",function(){mxSettings.setFormatWidth(this.formatWidth);mxSettings.save()});this.addListener("sidebarWidthChanged",function(){mxSettings.setSidebarWidth(this.hsplitPosition);-mxSettings.save()});this.addListener("collapsedSectionsChanged",function(){null!=this.format&&(mxSettings.setCollapsedSections(this.format.collapsedSections),mxSettings.save())})}};EditorUi.prototype.writeImageToClipboard=function(c,g,l,n,r,t){n=null!=n?n:"image/png";var v=null==g||null==l?'<img src="'+c+'">':'<img src="'+c+'" width="'+g+'" height="'+l+'">',B={"text/html":new Blob([v],{type:"text/html"})};null!=ClipboardItem.supports&&ClipboardItem.supports(n)&&(B[n]=this.base64ToBlob(c.substring(c.indexOf(",")+-1),n));var E=new ClipboardItem(B);navigator.clipboard.write([E]).then(r)["catch"](t);EditorUi.debug("EditorUi.writeImageToClipboard",[this],"dataUrl",[c],"w",g,"h",l,"type",n,"html",[v],"data",[B],"item",[E])};EditorUi.prototype.writeHtmlToClipboard=function(c,g){navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([Editor.convertHtmlToText(c)],{type:"text/plain"}),"text/html":new Blob([c],{type:"text/html"})})])["catch"](g)};EditorUi.prototype.writeTextToClipboard=function(c,g,l){navigator.clipboard.writeText(c).then(function(){null!=-l&&l()})["catch"](g)};EditorUi.prototype.copySvg=function(c,g,l){try{if(null!=navigator.clipboard&&"function"===typeof window.ClipboardItem){var n=this.editor.graph.getSvg(null,l,null,null,null,null,null,null,null,null,null,Editor.isDarkMode()?"dark":"light",null,0<c.length?c:null);null!=g&&n.setAttribute("content",g);var r=Editor.createSvgDataUri(mxUtils.getXml(n)),t=parseInt(n.getAttribute("width")),v=parseInt(n.getAttribute("height"));this.writeImageToClipboard(r,t,v,"image/svg+xml",null,mxUtils.bind(this,-function(B){this.handleError(B)}))}}catch(B){this.handleError(B)}};EditorUi.prototype.copyImage=function(c,g,l){try{l=null!=l?l:4,null!=navigator.clipboard&&"function"===typeof window.ClipboardItem&&this.spinner.spin(document.body,mxResources.get("exporting"))&&this.editor.exportToCanvas(mxUtils.bind(this,function(n,r){try{this.spinner.stop();var t=this.createImageDataUri(n,g,"png"),v=Math.round(parseInt(r.getAttribute("width"))/l),B=Math.round(parseInt(r.getAttribute("height"))/l);EditorUi.debug("EditorUi.copyImage",-[this],"cells",[c],"xml",[g],"scale",[l]);this.writeImageToClipboard(t,v,B,"image/png",null,mxUtils.bind(this,function(){if(this.isLocalFileSave()){var E=this.getBaseFilename(!1)+(null!=g?".drawio":"")+".png";this.saveLocalFile(t.substring(t.lastIndexOf(",")+1),E,"image/png",!0,"png",null,null,null,"copy")}else this.handleError(e)}))}catch(E){this.handleError(E)}}),null,null,null,mxUtils.bind(this,function(n){this.spinner.stop();this.handleError(n)}),null,null,l,null==this.editor.graph.background||-this.editor.graph.background==mxConstants.NONE,null,null,null,10,null,null,Editor.isDarkMode()?"dark":"light",null,0<c.length?c:null)}catch(n){this.handleError(n)}};EditorUi.prototype.copyCells=function(c,g){var l=this.editor.graph;if(l.isSelectionEmpty())c.innerText="";else{var n=mxUtils.sortCells(l.model.getTopmostCells(l.getSelectionCells())),r=mxUtils.getXml(l.encodeCells(n));mxUtils.setTextContent(c,encodeURIComponent(r));g?(l.removeCells(n,!1),l.lastPasteXml=null):(l.lastPasteXml=r,l.pasteCounter=-0);c.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var c=null;if(Editor.enableNativeClipboard){var g=this.editor.graph;g.isSelectionEmpty()||(c=mxUtils.sortCells(g.getExportableCells(g.model.getTopmostCells(g.getSelectionCells()))),g=mxUtils.getXml(g.encodeCells(c)),navigator.clipboard.writeText(g))}return c};EditorUi.prototype.pasteXml=function(c,g,l,n,r,t){EditorUi.debug("EditorUi.pasteXml",[this],"xml",[c],"pasteAsLabel",[g],"compat",[l],"evt",[n],"html",-[r],"pt",[t]);r=null!=r?r:!0;var v=this.editor.graph,B=null!=t?t:Editor.pasteAtMousePointer&&v.isMouseInsertPoint()?v.getInsertPoint():null;t=null;v.lastPasteXml==c?null==B&&v.pasteCounter++:(v.lastPasteXml=c,v.pasteCounter=0);var E=v.pasteCounter*v.gridSize;if(l||this.isCompatibleString(c)){v.model.beginUpdate();try{if(t=this.importXml(c,E,E),null!=B){var K=v.getBoundingBoxFromGeometry(t,!0);if(null!=K){var C=Math.round(v.snap(B.x)),R=Math.round(v.snap(B.y));v.cellsMoved(t,C-K.x,R-K.y)}}}finally{v.model.endUpdate()}v.setSelectionCells(t)}else if(g&&-1==v.getSelectionCount()){g=v.getStartEditingCell(v.getSelectionCell(),n);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c)&&"image"==v.getCurrentCellStyle(g)[mxConstants.STYLE_SHAPE])v.setCellStyles(mxConstants.STYLE_IMAGE,c,[g]);else{v.model.beginUpdate();try{v.labelChanged(g,c),Graph.isLink(c)&&v.setLinkForCell(g,c)}finally{v.model.endUpdate()}}v.setSelectionCell(g)}else B=null!=B?B:v.getInsertPoint(),v.isMouseInsertPoint()&&(E=0,v.lastPasteXml==c&&0<v.pasteCounter&&v.pasteCounter--),t=this.insertTextAt(c,-B.x+E,B.y+E,r),v.setSelectionCells(t);v.isSelectionEmpty()||(v.scrollCellToVisible(v.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(v.view.getState(v.getSelectionCell())));return t};EditorUi.prototype.pasteCells=function(c,g,l,n){if(!mxEvent.isConsumed(c)){var r=c.clipboardData,t=this.editor.graph,v=!1,B=g;if(l&&null!=r&&r.getData){var E=r.getData("text/plain"),K=!1;if(null!=E&&0<E.length&&"%3CmxGraphModel%3E"==E.substring(0,18))try{var C=decodeURIComponent(E);this.isCompatibleString(C)&&+mxSettings.save()});this.addListener("collapsedSectionsChanged",function(){null!=this.format&&(mxSettings.setCollapsedSections(this.format.collapsedSections),mxSettings.save())})}};EditorUi.prototype.writeImageToClipboard=function(c,f,l,n,r,t){n=null!=n?n:"image/png";var v=null==f||null==l?'<img src="'+c+'">':'<img src="'+c+'" width="'+f+'" height="'+l+'">',B={"text/html":new Blob([v],{type:"text/html"})};null!=ClipboardItem.supports&&ClipboardItem.supports(n)&&(B[n]=this.base64ToBlob(c.substring(c.indexOf(",")++1),n));var E=new ClipboardItem(B);navigator.clipboard.write([E]).then(r)["catch"](t);EditorUi.debug("EditorUi.writeImageToClipboard",[this],"dataUrl",[c],"w",f,"h",l,"type",n,"html",[v],"data",[B],"item",[E])};EditorUi.prototype.writeHtmlToClipboard=function(c,f){navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([Editor.convertHtmlToText(c)],{type:"text/plain"}),"text/html":new Blob([c],{type:"text/html"})})])["catch"](f)};EditorUi.prototype.writeTextToClipboard=function(c,f,l){navigator.clipboard.writeText(c).then(function(){null!=+l&&l()})["catch"](f)};EditorUi.prototype.copySvg=function(c,f,l){try{if(null!=navigator.clipboard&&"function"===typeof window.ClipboardItem){var n=this.editor.graph.getSvg(null,l,null,null,null,null,null,null,null,null,null,Editor.isDarkMode()?"dark":"light",null,0<c.length?c:null);null!=f&&n.setAttribute("content",f);var r=Editor.createSvgDataUri(mxUtils.getXml(n)),t=parseInt(n.getAttribute("width")),v=parseInt(n.getAttribute("height"));this.writeImageToClipboard(r,t,v,"image/svg+xml",null,mxUtils.bind(this,+function(B){this.handleError(B)}))}}catch(B){this.handleError(B)}};EditorUi.prototype.copyImage=function(c,f,l){try{l=null!=l?l:4,null!=navigator.clipboard&&"function"===typeof window.ClipboardItem&&this.spinner.spin(document.body,mxResources.get("exporting"))&&this.editor.exportToCanvas(mxUtils.bind(this,function(n,r){try{this.spinner.stop();var t=this.createImageDataUri(n,f,"png"),v=Math.round(parseInt(r.getAttribute("width"))/l),B=Math.round(parseInt(r.getAttribute("height"))/l);EditorUi.debug("EditorUi.copyImage",+[this],"cells",[c],"xml",[f],"scale",[l]);this.writeImageToClipboard(t,v,B,"image/png",null,mxUtils.bind(this,function(){if(this.isLocalFileSave()){var E=this.getBaseFilename(!1)+(null!=f?".drawio":"")+".png";this.saveLocalFile(t.substring(t.lastIndexOf(",")+1),E,"image/png",!0,"png",null,null,null,"copy")}else this.handleError(e)}))}catch(E){this.handleError(E)}}),null,null,null,mxUtils.bind(this,function(n){this.spinner.stop();this.handleError(n)}),null,null,l,null==this.editor.graph.background||+this.editor.graph.background==mxConstants.NONE,null,null,null,10,null,null,Editor.isDarkMode()?"dark":"light",null,0<c.length?c:null)}catch(n){this.handleError(n)}};EditorUi.prototype.copyCells=function(c,f){var l=this.editor.graph;if(l.isSelectionEmpty())c.innerText="";else{var n=mxUtils.sortCells(l.model.getTopmostCells(l.getSelectionCells())),r=mxUtils.getXml(l.encodeCells(n));mxUtils.setTextContent(c,encodeURIComponent(r));f?(l.removeCells(n,!1),l.lastPasteXml=null):(l.lastPasteXml=r,l.pasteCounter=+0);c.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var c=null;if(Editor.enableNativeClipboard){var f=this.editor.graph;f.isSelectionEmpty()||(c=mxUtils.sortCells(f.getExportableCells(f.model.getTopmostCells(f.getSelectionCells()))),f=mxUtils.getXml(f.encodeCells(c)),navigator.clipboard.writeText(f))}return c};EditorUi.prototype.pasteXml=function(c,f,l,n,r,t){EditorUi.debug("EditorUi.pasteXml",[this],"xml",[c],"pasteAsLabel",[f],"compat",[l],"evt",[n],"html",+[r],"pt",[t]);r=null!=r?r:!0;var v=this.editor.graph,B=null!=t?t:Editor.pasteAtMousePointer&&v.isMouseInsertPoint()?v.getInsertPoint():null;t=null;v.lastPasteXml==c?null==B&&v.pasteCounter++:(v.lastPasteXml=c,v.pasteCounter=0);var E=v.pasteCounter*v.gridSize;if(l||this.isCompatibleString(c)){v.model.beginUpdate();try{if(t=this.importXml(c,E,E),null!=B){var K=v.getBoundingBoxFromGeometry(t,!0);if(null!=K){var C=Math.round(v.snap(B.x)),R=Math.round(v.snap(B.y));v.cellsMoved(t,C-K.x,R-K.y)}}}finally{v.model.endUpdate()}v.setSelectionCells(t)}else if(f&&+1==v.getSelectionCount()){f=v.getStartEditingCell(v.getSelectionCell(),n);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c)&&"image"==v.getCurrentCellStyle(f)[mxConstants.STYLE_SHAPE])v.setCellStyles(mxConstants.STYLE_IMAGE,c,[f]);else{v.model.beginUpdate();try{v.labelChanged(f,c),Graph.isLink(c)&&v.setLinkForCell(f,c)}finally{v.model.endUpdate()}}v.setSelectionCell(f)}else B=null!=B?B:v.getInsertPoint(),v.isMouseInsertPoint()&&(E=0,v.lastPasteXml==c&&0<v.pasteCounter&&v.pasteCounter--),t=this.insertTextAt(c,+B.x+E,B.y+E,r),v.setSelectionCells(t);v.isSelectionEmpty()||(v.scrollCellToVisible(v.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(v.view.getState(v.getSelectionCell())));return t};EditorUi.prototype.pasteCells=function(c,f,l,n){if(!mxEvent.isConsumed(c)){var r=c.clipboardData,t=this.editor.graph,v=!1,B=f;if(l&&null!=r&&r.getData){var E=r.getData("text/plain"),K=!1;if(null!=E&&0<E.length&&"%3CmxGraphModel%3E"==E.substring(0,18))try{var C=decodeURIComponent(E);this.isCompatibleString(C)&&(K=!0,E=C)}catch(y){}K=K?null:r.getData("text/html");null!=K&&0<K.length?(B=this.parseHtmlData(K),v="text/plain"!=B.getAttribute("data-type")):null!=E&&0<E.length&&(B=document.createElement("div"),mxUtils.setTextContent(B,E))}E=B.getElementsByTagName("span");if(null!=E&&0<E.length&&"application/vnd.lucid.chart.objects"===E[0].getAttribute("data-lucid-type"))l=E[0].getAttribute("data-lucid-content"),null!=l&&0<l.length&&(this.convertLucidChart(l,mxUtils.bind(this,function(y){var d=this.editor.graph;d.lastPasteXml==y?d.pasteCounter++:(d.lastPasteXml=y,d.pasteCounter=0);var p=d.pasteCounter*d.gridSize;d.setSelectionCells(this.importXml(y,p,p));d.scrollCellToVisible(d.getSelectionCell())}),mxUtils.bind(this,function(y){this.handleError(y)})),mxEvent.consume(c));else{var R=!1,M="";M=v?null!=B.textContent&&"<mxfile"==B.textContent.substring(0,7)&&"</mxfile>"==B.textContent.substring(B.textContent.length-9)||"<mxGraphModel"==B.textContent.substring(0,13)&&"</mxGraphModel>"==B.textContent.substring(B.textContent.length-15)?B.textContent.replace(/\u00a0/g," "):B.innerHTML:mxUtils.trim(null==B.innerText?mxUtils.getTextContent(B):B.innerText);try{var O=M.lastIndexOf("%3E");0<=O&&O<M.length-3&&(M=M.substring(0,O+3))}catch(y){}try{E=B.getElementsByTagName("span"),(C=null!=E&&0<E.length?mxUtils.trim(decodeURIComponent(E[0].textContent)):decodeURIComponent(M))&&(this.isCompatibleString(C)||0==C.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":'))&&(R=!0,M=C)}catch(y){}C=null;try{if(!R&&""==B.textContent)for(O=-0;O<r.items.length;O++){var U=r.items[O];if("file"===U.kind){C=U.getAsFile();break}}}catch(y){}EditorUi.debug("EditorUi.pasteCells",[this],"evt",[c],"realElt",[g.outerHTML],"elt",[B.outerHTML],"useEvent",l,"pasteAsLabel",n,"xml",[M],"compat",R,"asHtml",v,"data",r,"items",[r.items.length],"files",[r.files.length],"types",[JSON.stringify(r.types)],"blob",[C]);try{if(R||null==C)if(null!=M&&0<M.length){if(0==M.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":')){var V=mxUtils.bind(this,function(){this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})}),-fa=mxUtils.bind(this,function(){if("undefined"===typeof MiroImporter)V();else try{M=(new MiroImporter).importMiroJson(JSON.parse(M)),this.pasteXml(M,n,R,c)}catch(y){console.log("Miro import error:",y)}});"undefined"===typeof MiroImporter?mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",fa,null,null,null,V):fa()}else this.pasteXml(M,n,R,c,v);mxEvent.consume(c)}else l||(t.lastPasteXml=null,t.pasteCounter=0);else{var T=t.getInsertPoint();this.importFiles([C],T.x,T.y,this.maxImageSize);mxEvent.consume(c)}}catch(y){this.handleError(y)}}}g.innerHTML=-" "};EditorUi.prototype.pasteFromClipboard=function(c){var g=this.editor.graph;null==c&&Editor.pasteAtMousePointer&&g.isMouseInsertPoint()&&(c=g.getInsertPoint());if(g.isEnabled()&&!g.isCellLocked(g.getDefaultParent()))try{Editor.enableNativeClipboard?this.readGraphModelFromClipboard(mxUtils.bind(this,function(l,n,r,t,v){if(null!=l){g.getModel().beginUpdate();try{this.pasteXml(l,!0,null,null,null,c)}finally{g.getModel().endUpdate()}}else l=null!=n?n:null!=r?r:t,null!=l?(c=null!=c?c:g.getInsertPoint(),-this.importFiles([l],c.x,c.y,this.maxImageSize)):this.pasteFromLocalClipboard(c)})):this.pasteFromLocalClipboard(c)}catch(l){}};EditorUi.prototype.pasteFromLocalClipboard=function(c){var g=this.editor.graph;g.getModel().beginUpdate();try{g.moveCellsTo(mxClipboard.paste(g),c)}finally{g.getModel().endUpdate()}};EditorUi.prototype.installImagePasteHandler=function(){var c=this.editor.graph;c.container.addEventListener("paste",mxUtils.bind(this,function(g){for(var l=null!=g.clipboardData?g.clipboardData:-g.originalEvent.clipboardData,n=!1,r=null,t=0;t<l.types.length;t++)if("text/"===l.types[t].substring(0,5)){n=!0;break}for(t=0;t<l.items.length;t++){var v=l.items[t];if("file"===v.kind){r=v.getAsFile();break}}EditorUi.debug("EditorUi.imagePasteHandler",[this],"evt",[g],"data",[l],"items",[l.items.length],"files",[l.files.length],"types",[JSON.stringify(l.types)],"containsText",n,"file",[r],"editing",c.isEditing());var B=mxUtils.bind(this,function(){try{if(!n&&null!=r){if(c.isEditing())this.importFiles([r],-0,0,this.maxImageSize,function(K,C,R,M,O,U){c.insertImage(K,O,U)},function(){},function(K){return"image/"==K.type.substring(0,6)},function(K){for(var C=0;C<K.length;C++)K[C]()});else{var E=this.editor.graph.getInsertPoint();this.importFiles([r],E.x,E.y,this.maxImageSize)}mxEvent.consume(g)}}catch(K){}});if(!mxEvent.isConsumed(g)&&!n)if(Editor.enableNativeClipboard)navigator.clipboard.read().then(mxUtils.bind(this,function(E){this.readTypeFromClipboardData(E,"image/svg+xml",mxUtils.bind(this,function(K){if(null!=-K){K=new Blob([K],{type:"image/svg+xml"});var C=this.editor.graph.getInsertPoint();this.importFiles([K],C.x,C.y,this.maxImageSize)}else B()}),"image")}))["catch"](B);else B()}),!1)};EditorUi.prototype.readGraphModelFromClipboard=function(c){navigator.clipboard.read().then(mxUtils.bind(this,function(g){try{EditorUi.debug("EditorUi.readGraphModelFromClipboard",[this],"data",g,"types",null!=g&&0<g.length?[JSON.stringify(g[0].types)]:[]),this.readGraphModelFromHtmlClipboardData(g,mxUtils.bind(this,function(l,-n){null!=l?c(l):this.readGraphModelFromImageClipboardData(g,mxUtils.bind(this,function(r,t,v){null!=r?c(r):this.readTypeFromClipboardData(g,"text/plain",mxUtils.bind(this,function(B){c(B,t,v,n,g)}))}))}))}catch(l){c(null)}}))["catch"](function(){c(null)})};EditorUi.prototype.readGraphModelFromHtmlClipboardData=function(c,g){this.readTypeFromClipboardData(c,"text/html",mxUtils.bind(this,function(l){var n=null,r=null;try{var t=this.parseHtmlData(l);if(null!=t){n="text/plain"!=t.getAttribute("data-type")?+0;O<r.items.length;O++){var U=r.items[O];if("file"===U.kind){C=U.getAsFile();break}}}catch(y){}EditorUi.debug("EditorUi.pasteCells",[this],"evt",[c],"realElt",[f.outerHTML],"elt",[B.outerHTML],"useEvent",l,"pasteAsLabel",n,"xml",[M],"compat",R,"asHtml",v,"data",r,"items",[r.items.length],"files",[r.files.length],"types",[JSON.stringify(r.types)],"blob",[C]);try{if(R||null==C)if(null!=M&&0<M.length){if(0==M.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":')){var V=mxUtils.bind(this,function(){this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})}),+fa=mxUtils.bind(this,function(){if("undefined"===typeof MiroImporter)V();else try{M=(new MiroImporter).importMiroJson(JSON.parse(M)),this.pasteXml(M,n,R,c)}catch(y){console.log("Miro import error:",y)}});"undefined"===typeof MiroImporter?mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",fa,null,null,null,V):fa()}else this.pasteXml(M,n,R,c,v);mxEvent.consume(c)}else l||(t.lastPasteXml=null,t.pasteCounter=0);else{var T=t.getInsertPoint();this.importFiles([C],T.x,T.y,this.maxImageSize);mxEvent.consume(c)}}catch(y){this.handleError(y)}}}f.innerHTML=+" "};EditorUi.prototype.pasteFromClipboard=function(c){var f=this.editor.graph;null==c&&Editor.pasteAtMousePointer&&f.isMouseInsertPoint()&&(c=f.getInsertPoint());if(f.isEnabled()&&!f.isCellLocked(f.getDefaultParent()))try{Editor.enableNativeClipboard?this.readGraphModelFromClipboard(mxUtils.bind(this,function(l,n,r,t,v){if(null!=l){f.getModel().beginUpdate();try{this.pasteXml(l,!0,null,null,null,c)}finally{f.getModel().endUpdate()}}else l=null!=n?n:null!=r?r:t,null!=l?(c=null!=c?c:f.getInsertPoint(),+this.importFiles([l],c.x,c.y,this.maxImageSize)):this.pasteFromLocalClipboard(c)})):this.pasteFromLocalClipboard(c)}catch(l){}};EditorUi.prototype.pasteFromLocalClipboard=function(c){var f=this.editor.graph;f.getModel().beginUpdate();try{f.moveCellsTo(mxClipboard.paste(f),c)}finally{f.getModel().endUpdate()}};EditorUi.prototype.installImagePasteHandler=function(){var c=this.editor.graph;c.container.addEventListener("paste",mxUtils.bind(this,function(f){for(var l=null!=f.clipboardData?f.clipboardData:+f.originalEvent.clipboardData,n=!1,r=null,t=0;t<l.types.length;t++)if("text/"===l.types[t].substring(0,5)){n=!0;break}for(t=0;t<l.items.length;t++){var v=l.items[t];if("file"===v.kind){r=v.getAsFile();break}}EditorUi.debug("EditorUi.imagePasteHandler",[this],"evt",[f],"data",[l],"items",[l.items.length],"files",[l.files.length],"types",[JSON.stringify(l.types)],"containsText",n,"file",[r],"editing",c.isEditing());var B=mxUtils.bind(this,function(){try{if(!n&&null!=r){if(c.isEditing())this.importFiles([r],+0,0,this.maxImageSize,function(K,C,R,M,O,U){c.insertImage(K,O,U)},function(){},function(K){return"image/"==K.type.substring(0,6)},function(K){for(var C=0;C<K.length;C++)K[C]()});else{var E=this.editor.graph.getInsertPoint();this.importFiles([r],E.x,E.y,this.maxImageSize)}mxEvent.consume(f)}}catch(K){}});if(!mxEvent.isConsumed(f)&&!n)if(Editor.enableNativeClipboard)navigator.clipboard.read().then(mxUtils.bind(this,function(E){this.readTypeFromClipboardData(E,"image/svg+xml",mxUtils.bind(this,function(K){if(null!=+K){K=new Blob([K],{type:"image/svg+xml"});var C=this.editor.graph.getInsertPoint();this.importFiles([K],C.x,C.y,this.maxImageSize)}else B()}),"image")}))["catch"](B);else B()}),!1)};EditorUi.prototype.readGraphModelFromClipboard=function(c){navigator.clipboard.read().then(mxUtils.bind(this,function(f){try{EditorUi.debug("EditorUi.readGraphModelFromClipboard",[this],"data",f,"types",null!=f&&0<f.length?[JSON.stringify(f[0].types)]:[]),this.readGraphModelFromHtmlClipboardData(f,mxUtils.bind(this,function(l,+n){null!=l?c(l):this.readGraphModelFromImageClipboardData(f,mxUtils.bind(this,function(r,t,v){null!=r?c(r):this.readTypeFromClipboardData(f,"text/plain",mxUtils.bind(this,function(B){c(B,t,v,n,f)}))}))}))}catch(l){c(null)}}))["catch"](function(){c(null)})};EditorUi.prototype.readGraphModelFromHtmlClipboardData=function(c,f){this.readTypeFromClipboardData(c,"text/html",mxUtils.bind(this,function(l){var n=null,r=null;try{var t=this.parseHtmlData(l);if(null!=t){n="text/plain"!=t.getAttribute("data-type")?t.innerHTML:mxUtils.trim(null==t.innerText?mxUtils.getTextContent(t):t.innerText);try{var v=n.lastIndexOf("%3E");0<=v&&v<n.length-3&&(n=n.substring(0,v+3))}catch(K){}try{null==n&&(l=null,""==t.textContent&&1==t.children.length&&"IMG"==t.firstChild.nodeName&&(l=t.firstChild.getAttribute("src")),null!=l&&0<l.length&&("data:image/png;base64,"==l.substring(0,22)?r=this.base64ToBlob(l.substring(l.indexOf(",")+1),"image/png"):"data:image/svg+xml;base64,"==l.substring(0,26)&&(r=this.base64ToBlob(l.substring(l.indexOf(",")+-1),"image/svg+xml"))))}catch(K){}try{var B=t.getElementsByTagName("span"),E=null!=B&&0<B.length?mxUtils.trim(decodeURIComponent(B[0].textContent)):decodeURIComponent(n);this.isCompatibleString(E)&&(n=E)}catch(K){}}}catch(K){}g(this.isCompatibleString(n)?n:null,r)}))};EditorUi.prototype.readGraphModelFromImageClipboardData=function(c,g){this.readTypeFromClipboardData(c,"image/svg+xml",mxUtils.bind(this,function(l,n){var r=null;try{null!=l&&(r=mxUtils.parseXml(l).documentElement.getAttribute("content"))}catch(t){}this.isCompatibleString(r)?-g(r):this.readTypeFromClipboardData(c,"image/png",mxUtils.bind(this,function(t,v){r=Editor.extractGraphModelFromPng("data:image/png;base64,"+t);this.isCompatibleString(r)?g(r):g(null,n,v)}))}))};EditorUi.prototype.readTypeFromClipboardData=function(c,g,l){var n=!1;if(null!=c&&0<c.length)for(var r=0;r<c.length&&!n;r++)(function(t){0<=mxUtils.indexOf(t.types,g)&&(n=!0,t.getType(g).then(mxUtils.bind(this,function(v){if("image/png"==g)v.arrayBuffer().then(function(B){l(btoa(Graph.arrayBufferToString(B)),-v)})["catch"](function(){l(null)});else v.text().then(mxUtils.bind(this,function(B){EditorUi.debug("EditorUi.readTypeFromClipboardData",[this],"data",[c],"type",[g],"result",[B]);l(B,v)}))["catch"](function(){l(null)})}))["catch"](function(){l(null)}))})(c[r]);n||l()};EditorUi.prototype.parseHtmlData=function(c){var g=null;if(null!=c&&0<c.length){var l="<meta "==c.substring(0,6);g=document.createElement("div");g.innerHTML=(l?'<meta charset="utf-8">':"")+Graph.sanitizeHtml(c);asHtml=!0;l=g.getElementsByTagName("style");-if(null!=l)for(;0<l.length;)l[0].parentNode.removeChild(l[0]);if(null!=g.firstChild&&g.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=g.firstChild.nextSibling&&g.firstChild.nextSibling.nodeType==mxConstants.NODETYPE_ELEMENT&&"META"==g.firstChild.nodeName&&"A"==g.firstChild.nextSibling.nodeName&&null==g.firstChild.nextSibling.nextSibling){var n=null==g.firstChild.nextSibling.innerText?mxUtils.getTextContent(g.firstChild.nextSibling):g.firstChild.nextSibling.innerText;n==g.firstChild.nextSibling.getAttribute("href")&&-(mxUtils.setTextContent(g,n),asHtml=!1)}if(""==g.textContent&&(l=g.getElementsByTagName("img"),1==l.length&&(n=l[0].getAttribute("src"),l=null,null!=n))){if(Editor.isPngDataUrl(n)){var r=Editor.extractGraphModelFromPng(n);null!=r&&0<r.length&&(l=r)}else if("data:image/svg+xml;base64,"==n.substring(0,26)){img=this.base64ToBlob(n.substring(n.indexOf(",")+1),"image/svg+xml");n=Graph.getSvgFromDataUri(n);try{r=mxUtils.parseXml(n).documentElement.getAttribute("content"),this.isCompatibleString(r)&&(l=-r)}catch(t){}}null!=l&&(mxUtils.setTextContent(g,l),asHtml=!1)}asHtml?Graph.removePasteFormatting(g):g.setAttribute("data-type","text/plain")}EditorUi.debug("EditorUi.parseHtmlData",[this],"data",[c],"elt",[g],"asHtml",asHtml);return g};EditorUi.prototype.showPrintDialog=function(c,g,l){this.showDialog((new PrintDialog(this,c,g,l)).container,360,null,!0,!0)};EditorUi.prototype.print=function(c,g){var l=this.editor,n=l.graph,r=this.getPageIndex(this.currentPage),t=null!=r?r+1:1,v=mxUtils.bind(this,-function(d,p,A,G){var I=d.useCssTransforms,L=d.currentTranslate,P=d.currentScale,Q=d.view.translate,ba=d.view.scale;d.useCssTransforms&&(d.useCssTransforms=!1,d.currentTranslate=new mxPoint(0,0),d.currentScale=1,d.view.translate=new mxPoint(0,0),d.view.scale=1);var W=d.getGraphBounds(),Y=0,X=0,ca=mxRectangle.fromRectangle(d.pageFormat),S=g.fit||g.crop||!d.pageVisible,Z=g.scale;ca.width*=d.pageScale;ca.height*=d.pageScale;var da=1;if(g.fit){da=g.sheetsAcross;var N=g.sheetsDown;isNaN(Z)||(ca.width=-Math.ceil(ca.width*Z),ca.height=Math.ceil(ca.height*Z));da=Math.min(ca.height*N/(W.height/d.view.scale),ca.width*da/(W.width/d.view.scale))}else da=isNaN(Z)?1:Z;da*=1;!S&&d.pageVisible?(Z=d.getPageLayout(),Y-=Z.x*ca.width,X-=Z.y*ca.height):S=!0;g.crop&&(g.selection&&(W=n.getBoundingBox(n.getSelectionCells())),ca.width=(W.width+1)*da/d.view.scale,ca.height=(W.height+1)*da/d.view.scale);ca.width*=1;ca.height*=1;G=null!=G?"page/id,"+G:null;W=g.selection?d.getBoundingBox(d.getSelectionCells()):d.getGraphBounds();-if(null!=W){Z=d.view.scale/da;N=W.width;var aa=W.height,ea=Y,la=X;S||(ea-=d.view.translate.x*da,la-=d.view.translate.y*da,N+=W.x,aa+=W.y);C+=Math.max(1,Math.ceil((N/Z+ea)/(ca.width+1)))*Math.max(1,Math.ceil((aa/Z+la)/(ca.height+1)))}R=R||C>this.maxPrintPageCount;if(!R)if(null==p){p=PrintDialog.createPrintPreview(d,da,null,0,Y,X,S);p.title=this.getBaseFilename(!0);p.pageSelector=!1;p.mathEnabled=!1;Y=g.border;isNaN(Y)||(p.pageMargin=Y);var ra=p.writeHead;p.writeHead=function(xa,wa){wa=null!=wa?wa:-"";g.shadows||(wa+='g[style*="filter: drop-shadow("] {\n filter: none !important;{\n}\n');mxClient.IS_GC&&(wa+="@media print {\n .MathJax svg { shape-rendering: crispEdges; }\n}\n");null!=l.fontCss&&(wa+=l.fontCss);ra.apply(this,arguments);for(var za=d.getCustomFonts(),Ba=0;Ba<za.length;Ba++){var va=za[Ba].name,pa=za[Ba].url;Graph.isCssFontUrl(pa)?xa.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(pa))+'" charset="UTF-8" type="text/css">'):(xa.writeln('<style type="text/css">'),+1),"image/svg+xml"))))}catch(K){}try{var B=t.getElementsByTagName("span"),E=null!=B&&0<B.length?mxUtils.trim(decodeURIComponent(B[0].textContent)):decodeURIComponent(n);this.isCompatibleString(E)&&(n=E)}catch(K){}}}catch(K){}f(this.isCompatibleString(n)?n:null,r)}))};EditorUi.prototype.readGraphModelFromImageClipboardData=function(c,f){this.readTypeFromClipboardData(c,"image/svg+xml",mxUtils.bind(this,function(l,n){var r=null;try{null!=l&&(r=mxUtils.parseXml(l).documentElement.getAttribute("content"))}catch(t){}this.isCompatibleString(r)?+f(r):this.readTypeFromClipboardData(c,"image/png",mxUtils.bind(this,function(t,v){r=Editor.extractGraphModelFromPng("data:image/png;base64,"+t);this.isCompatibleString(r)?f(r):f(null,n,v)}))}))};EditorUi.prototype.readTypeFromClipboardData=function(c,f,l){var n=!1;if(null!=c&&0<c.length)for(var r=0;r<c.length&&!n;r++)(function(t){0<=mxUtils.indexOf(t.types,f)&&(n=!0,t.getType(f).then(mxUtils.bind(this,function(v){if("image/png"==f)v.arrayBuffer().then(function(B){l(btoa(Graph.arrayBufferToString(B)),+v)})["catch"](function(){l(null)});else v.text().then(mxUtils.bind(this,function(B){EditorUi.debug("EditorUi.readTypeFromClipboardData",[this],"data",[c],"type",[f],"result",[B]);l(B,v)}))["catch"](function(){l(null)})}))["catch"](function(){l(null)}))})(c[r]);n||l()};EditorUi.prototype.parseHtmlData=function(c){var f=null;if(null!=c&&0<c.length){var l="<meta "==c.substring(0,6);f=document.createElement("div");f.innerHTML=(l?'<meta charset="utf-8">':"")+Graph.sanitizeHtml(c);asHtml=!0;l=f.getElementsByTagName("style");+if(null!=l)for(;0<l.length;)l[0].parentNode.removeChild(l[0]);if(null!=f.firstChild&&f.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=f.firstChild.nextSibling&&f.firstChild.nextSibling.nodeType==mxConstants.NODETYPE_ELEMENT&&"META"==f.firstChild.nodeName&&"A"==f.firstChild.nextSibling.nodeName&&null==f.firstChild.nextSibling.nextSibling){var n=null==f.firstChild.nextSibling.innerText?mxUtils.getTextContent(f.firstChild.nextSibling):f.firstChild.nextSibling.innerText;n==f.firstChild.nextSibling.getAttribute("href")&&+(mxUtils.setTextContent(f,n),asHtml=!1)}if(""==f.textContent&&(l=f.getElementsByTagName("img"),1==l.length&&(n=l[0].getAttribute("src"),l=null,null!=n))){if(Editor.isPngDataUrl(n)){var r=Editor.extractGraphModelFromPng(n);null!=r&&0<r.length&&(l=r)}else if("data:image/svg+xml;base64,"==n.substring(0,26)){img=this.base64ToBlob(n.substring(n.indexOf(",")+1),"image/svg+xml");n=Graph.getSvgFromDataUri(n);try{r=mxUtils.parseXml(n).documentElement.getAttribute("content"),this.isCompatibleString(r)&&(l=+r)}catch(t){}}null!=l&&(mxUtils.setTextContent(f,l),asHtml=!1)}asHtml?Graph.removePasteFormatting(f):f.setAttribute("data-type","text/plain")}EditorUi.debug("EditorUi.parseHtmlData",[this],"data",[c],"elt",[f],"asHtml",asHtml);return f};EditorUi.prototype.showPrintDialog=function(c,f,l){this.showDialog((new PrintDialog(this,c,f,l)).container,360,null,!0,!0)};EditorUi.prototype.print=function(c,f){var l=this.editor,n=l.graph,r=this.getPageIndex(this.currentPage),t=null!=r?r+1:1,v=mxUtils.bind(this,+function(d,p,A,G){var I=d.useCssTransforms,L=d.currentTranslate,P=d.currentScale,Q=d.view.translate,ba=d.view.scale;d.useCssTransforms&&(d.useCssTransforms=!1,d.currentTranslate=new mxPoint(0,0),d.currentScale=1,d.view.translate=new mxPoint(0,0),d.view.scale=1);var W=d.getGraphBounds(),Y=0,X=0,ca=mxRectangle.fromRectangle(d.pageFormat),S=f.fit||f.crop||!d.pageVisible,Z=f.scale;ca.width*=d.pageScale;ca.height*=d.pageScale;var da=1;if(f.fit){da=f.sheetsAcross;var N=f.sheetsDown;isNaN(Z)||(ca.width=+Math.ceil(ca.width*Z),ca.height=Math.ceil(ca.height*Z));da=Math.min(ca.height*N/(W.height/d.view.scale),ca.width*da/(W.width/d.view.scale))}else da=isNaN(Z)?1:Z;da*=1;!S&&d.pageVisible?(Z=d.getPageLayout(),Y-=Z.x*ca.width,X-=Z.y*ca.height):S=!0;f.crop&&(f.selection&&(W=n.getBoundingBox(n.getSelectionCells())),ca.width=(W.width+1)*da/d.view.scale,ca.height=(W.height+1)*da/d.view.scale);ca.width*=1;ca.height*=1;G=null!=G?"page/id,"+G:null;W=f.selection?d.getBoundingBox(d.getSelectionCells()):d.getGraphBounds();+if(null!=W){Z=d.view.scale/da;N=W.width;var aa=W.height,ea=Y,la=X;S||(ea-=d.view.translate.x*da,la-=d.view.translate.y*da,N+=W.x,aa+=W.y);C+=Math.max(1,Math.ceil((N/Z+ea)/(ca.width+1)))*Math.max(1,Math.ceil((aa/Z+la)/(ca.height+1)))}R=R||C>this.maxPrintPageCount;if(!R)if(null==p){p=PrintDialog.createPrintPreview(d,da,null,0,Y,X,S);p.title=this.getBaseFilename(!0);p.pageSelector=!1;p.mathEnabled=!1;Y=f.border;isNaN(Y)||(p.pageMargin=Y);var ra=p.writeHead;p.writeHead=function(xa,wa){wa=null!=wa?wa:+"";f.shadows||(wa+='g[style*="filter: drop-shadow("] {\n filter: none !important;\n}\n');mxClient.IS_GC&&(wa+="@media print {\n .MathJax svg { shape-rendering: crispEdges; }\n}\n");null!=l.fontCss&&(wa+=l.fontCss);ra.apply(this,arguments);for(var za=d.getCustomFonts(),Ba=0;Ba<za.length;Ba++){var va=za[Ba].name,pa=za[Ba].url;Graph.isCssFontUrl(pa)?xa.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(pa))+'" charset="UTF-8" type="text/css">'):(xa.writeln('<style type="text/css">'),xa.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Graph.escapeCssString(va))+'";\nsrc: url("'+mxUtils.htmlEntities(Graph.escapeCssString(pa))+'");\n}'),xa.writeln("</style>"))}};if(Editor.replaceSvgDataUris){var qa=p.drawBackgroundImage;p.drawBackgroundImage=function(xa){qa.apply(this,arguments);null!=xa.node&&(EditorUi.embedSvgImages(xa.node),n.disableSvgLinks(xa.node,function(wa){wa.setAttribute("href","javascript:void(0)")}))}}var na=p.addGraphFragment;p.addGraphFragment=function(xa,-wa,za,Ba,va,pa){na.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:va.classList.add("geDisableMathJax");if(this.graph.shadowVisible)for(var ia=va.getElementsByTagName("svg"),ja=0;ja<ia.length;ja++)d.addSvgShadow(ia[ja])};g.grid&&(p.gridSize=d.gridSize,p.gridSteps=d.view.gridSteps,p.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:d.view.gridColor);p.isCellVisible=g.selection?function(xa){return d.isCellSelected(xa)&&d.isCellVisible(xa)}:function(xa){return d.isCellVisible(xa)};-p.open(null,null,A,!0,G,ca,g.selection?d.getSelectionCells():null)}else{W=d.background;if(null==W||""==W||W==mxConstants.NONE)W="#ffffff";p.backgroundColor=W;p.autoOrigin=S;g.grid&&(p.gridSize=d.gridSize,p.gridSteps=d.view.gridSteps,p.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:d.view.gridColor);p.isCellVisible=g.selection?function(xa){return d.isCellSelected(xa)&&d.isCellVisible(xa)}:function(xa){return d.isCellVisible(xa)};p.appendGraph(d,da,Y,X,A,!0,G,ca,g.selection?d.getSelectionCells():-null);A=d.getCustomFonts();if(null!=p.wnd)for(ca=0;ca<A.length;ca++)Y=A[ca].name,X=A[ca].url,Graph.isCssFontUrl(X)?p.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(X)+'" charset="UTF-8" type="text/css">'):(p.wnd.document.writeln('<style type="text/css">'),p.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Graph.escapeCssString(Y))+'";\nsrc: url("'+mxUtils.htmlEntities(Graph.escapeCssString(X))+'");\n}'),p.wnd.document.writeln("</style>"))}I&&(d.useCssTransforms=-I,d.currentTranslate=L,d.currentScale=P,d.view.translate=Q,d.view.scale=ba);return p}),B=g.pagesFrom,E=g.pagesTo,K=!g.allPages,C=0,R=!1;r=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,g);else{K&&(K=g.selection||B==t&&E==t);if(!K&&null!=this.pages&&this.pages.length){K=0;t=this.pages.length-1;g.allPages||(K=parseInt(B)-1,t=parseInt(E)-1);for(var M=K;M<=t&&!R;M++){var O=this.pages[M];B=O==this.currentPage?n:null;if(null==B){B=this.createTemporaryGraph(n.stylesheet);B.shapeForegroundColor=-n.shapeForegroundColor;B.shapeBackgroundColor=n.shapeBackgroundColor;E=!0;var U=K=!1,T=null,V=null;null==O.viewState&&null==O.root&&this.updatePageRoot(O);null!=O.viewState&&(E=O.viewState.pageVisible,K=O.viewState.mathEnabled,U=O.viewState.shadowVisible,T=O.viewState.background,V=O.viewState.backgroundImage,B.pageFormat=O.viewState.pageFormat,B.gridSize=O.viewState.gridSize,B.hiddenTags=O.viewState.hiddenTags||[]);null!=V&&null!=V.originalSrc&&(V=this.createImageForPageLink(V.originalSrc,O));B.background=-T;B.backgroundImage=null!=V?new mxImage(V.src,V.width,V.height,V.x,V.y):null;B.pageVisible=E;B.mathEnabled=K;B.shadowVisible=U;var fa=B.getGraphBounds;B.getGraphBounds=function(){var d=fa.apply(this,arguments),p=this.backgroundImage;if(null!=p&&null!=p.width&&null!=p.height){var A=this.view.translate,G=this.view.scale;d=mxRectangle.fromRectangle(d);d.add(new mxRectangle((A.x+p.x)*G,(A.y+p.y)*G,p.width*G,p.height*G))}return d};var y=B.getGlobalVariable;B.getGlobalVariable=function(d){return"page"==+wa,za,Ba,va,pa){na.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:va.classList.add("geDisableMathJax");if(this.graph.shadowVisible)for(var ia=va.getElementsByTagName("svg"),ja=0;ja<ia.length;ja++)d.addSvgShadow(ia[ja])};f.grid&&(p.gridSize=d.gridSize,p.gridSteps=d.view.gridSteps,p.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:d.view.gridColor);p.isCellVisible=f.selection?function(xa){return d.isCellSelected(xa)&&d.isCellVisible(xa)}:function(xa){return d.isCellVisible(xa)};+p.open(null,null,A,!0,G,ca,f.selection?d.getSelectionCells():null)}else{W=d.background;if(null==W||""==W||W==mxConstants.NONE)W="#ffffff";p.backgroundColor=W;p.autoOrigin=S;f.grid&&(p.gridSize=d.gridSize,p.gridSteps=d.view.gridSteps,p.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:d.view.gridColor);p.isCellVisible=f.selection?function(xa){return d.isCellSelected(xa)&&d.isCellVisible(xa)}:function(xa){return d.isCellVisible(xa)};p.appendGraph(d,da,Y,X,A,!0,G,ca,f.selection?d.getSelectionCells():+null);A=d.getCustomFonts();if(null!=p.wnd)for(ca=0;ca<A.length;ca++)Y=A[ca].name,X=A[ca].url,Graph.isCssFontUrl(X)?p.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(X))+'" charset="UTF-8" type="text/css">'):(p.wnd.document.writeln('<style type="text/css">'),p.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Graph.escapeCssString(Y))+'";\nsrc: url("'+mxUtils.htmlEntities(Graph.escapeCssString(X))+'");\n}'),p.wnd.document.writeln("</style>"))}I&&+(d.useCssTransforms=I,d.currentTranslate=L,d.currentScale=P,d.view.translate=Q,d.view.scale=ba);return p}),B=f.pagesFrom,E=f.pagesTo,K=!f.allPages,C=0,R=!1;r=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,f);else{K&&(K=f.selection||B==t&&E==t);if(!K&&null!=this.pages&&this.pages.length){K=0;t=this.pages.length-1;f.allPages||(K=parseInt(B)-1,t=parseInt(E)-1);for(var M=K;M<=t&&!R;M++){var O=this.pages[M];B=O==this.currentPage?n:null;if(null==B){B=this.createTemporaryGraph(n.stylesheet);+B.shapeForegroundColor=n.shapeForegroundColor;B.shapeBackgroundColor=n.shapeBackgroundColor;E=!0;var U=K=!1,T=null,V=null;null==O.viewState&&null==O.root&&this.updatePageRoot(O);null!=O.viewState&&(E=O.viewState.pageVisible,K=O.viewState.mathEnabled,U=O.viewState.shadowVisible,T=O.viewState.background,V=O.viewState.backgroundImage,B.pageFormat=O.viewState.pageFormat,B.gridSize=O.viewState.gridSize,B.hiddenTags=O.viewState.hiddenTags||[]);null!=V&&null!=V.originalSrc&&(V=this.createImageForPageLink(V.originalSrc,+O));B.background=T;B.backgroundImage=null!=V?new mxImage(V.src,V.width,V.height,V.x,V.y):null;B.pageVisible=E;B.mathEnabled=K;B.shadowVisible=U;var fa=B.getGraphBounds;B.getGraphBounds=function(){var d=fa.apply(this,arguments),p=this.backgroundImage;if(null!=p&&null!=p.width&&null!=p.height){var A=this.view.translate,G=this.view.scale;d=mxRectangle.fromRectangle(d);d.add(new mxRectangle((A.x+p.x)*G,(A.y+p.y)*G,p.width*G,p.height*G))}return d};var y=B.getGlobalVariable;B.getGlobalVariable=function(d){return"page"==d?O.getName():"pagenumber"==d?M+1:"pagecount"==d?null!=this.pages?this.pages.length:1:y.apply(this,arguments)};document.body.appendChild(B.container);this.updatePageRoot(O);B.model.setRoot(O.root)}r=v(B,r,M!=t,O.getId());B!=n&&B.container.parentNode.removeChild(B.container)}}else r=v(n);if(R)return null!=r&&null!=r.wnd&&r.wnd!=window&&r.wnd.close(),this.handleError({message:mxResources.get("drawingTooLarge")}),null;if(null==r||null==r.wnd)this.handleError({message:mxResources.get("errorUpdatingPreview")});-else{r.mathEnabled&&(v=r.wnd.document,c||(r.wnd.IMMEDIATE_PRINT=!0),v.writeln('<script type="text/javascript" src="js/math-print.js">\x3c/script>'));r.closeDocument();if(Editor.expandPatternsForPrint&&null!=r.wnd)for(v=r.wnd.document.getElementsByTagName("svg"),M=0;M<v.length;M++)Editor.expandSvgPatterns(v[M]);Graph.rewritePageLinks(r.wnd.document,!0);r.mathEnabled||c||PrintDialog.printPreview(r)}return r}};EditorUi.prototype.addFileDropHandler=function(c){if(Graph.fileSupport)for(var g=null,l=0;l<-c.length;l++)mxEvent.addListener(c[l],"dragleave",function(n){null!=g&&(g.parentNode.removeChild(g),g=null);n.stopPropagation();n.preventDefault()}),mxEvent.addListener(c[l],"dragover",mxUtils.bind(this,function(n){(this.editor.graph.isEnabled()||"1"!=urlParams.embed)&&null==g&&(g=this.highlightElement());n.stopPropagation();n.preventDefault()})),mxEvent.addListener(c[l],"drop",mxUtils.bind(this,function(n){null!=g&&(g.parentNode.removeChild(g),g=null);if(this.editor.graph.isEnabled()||"1"!=urlParams.embed)if(0<+else{r.mathEnabled&&(v=r.wnd.document,c||(r.wnd.IMMEDIATE_PRINT=!0),v.writeln('<script type="text/javascript" src="js/math-print.js">\x3c/script>'));r.closeDocument();if(Editor.expandPatternsForPrint&&null!=r.wnd)for(v=r.wnd.document.getElementsByTagName("svg"),M=0;M<v.length;M++)Editor.expandSvgPatterns(v[M]);Graph.rewritePageLinks(r.wnd.document,!0);r.mathEnabled||c||PrintDialog.printPreview(r)}return r}};EditorUi.prototype.addFileDropHandler=function(c){if(Graph.fileSupport)for(var f=null,l=0;l<+c.length;l++)mxEvent.addListener(c[l],"dragleave",function(n){null!=f&&(f.parentNode.removeChild(f),f=null);n.stopPropagation();n.preventDefault()}),mxEvent.addListener(c[l],"dragover",mxUtils.bind(this,function(n){(this.editor.graph.isEnabled()||"1"!=urlParams.embed)&&null==f&&(f=this.highlightElement());n.stopPropagation();n.preventDefault()})),mxEvent.addListener(c[l],"drop",mxUtils.bind(this,function(n){null!=f&&(f.parentNode.removeChild(f),f=null);if(this.editor.graph.isEnabled()||"1"!=urlParams.embed)if(0<n.dataTransfer.files.length)this.hideDialog(),"1"==urlParams.embed?this.importFiles(n.dataTransfer.files,0,0,this.maxImageSize,null,null,null,null,!mxEvent.isControlDown(n)&&!mxEvent.isShiftDown(n)):this.openFiles(n.dataTransfer.files,!0);else{var r=this.extractGraphModelFromEvent(n);if(null==r){var t=null!=n.dataTransfer?n.dataTransfer:n.clipboardData;null!=t&&(10==document.documentMode||11==document.documentMode?r=t.getData("Text"):(r=null,r=0<=mxUtils.indexOf(t.types,"text/uri-list")?n.dataTransfer.getData("text/uri-list"):0<=mxUtils.indexOf(t.types,"text/html")?t.getData("text/html"):null,null!=r&&0<r.length?(t=document.createElement("div"),t.innerHTML=Graph.sanitizeHtml(r),t=t.getElementsByTagName("img"),0<t.length&&(r=t[0].getAttribute("src"))):0<=mxUtils.indexOf(t.types,"text/plain")&&(r=t.getData("text/plain"))),null!=r&&(Editor.isPngDataUrl(r)?(r=Editor.extractGraphModelFromPng(r),null!=r&&0<r.length&&this.openLocalFile(r,null,!0)):this.isGliffyData(r)?this.importGliffy(r,mxUtils.bind(this,function(v){this.openLocalFile(v,null,!0)}),mxUtils.bind(this,function(v){this.showError(mxResources.get("error"),null!=v&&413==v.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))})):/^https?:\/\//.test(r)&&(null==this.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(r):window.geOpenWindow((mxClient.IS_CHROMEAPP?EditorUi.drawHost+"/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(r)))))}else this.openLocalFile(r,null,!0)}n.stopPropagation();n.preventDefault()}))};-EditorUi.prototype.highlightElement=function(c){var g=0,l=0;if(null==c){var n=document.body;var r=document.documentElement;if(null==n&&null==r)return null;var t=((null!=n?n.clientWidth:0)||r.clientWidth)-3;n=Math.max(null!=n?n.clientHeight:0,r.clientHeight)-3}else n=c.getBoundingClientRect(),g=n.top,l=n.left,t=n.width,n=n.height;r=document.createElement("div");r.style.zIndex=mxPopupMenu.prototype.zIndex+2;r.style.border="3px dotted rgb(254, 137, 12)";r.style.pointerEvents="none";r.style.position=-"absolute";r.style.top=g+"px";r.style.left=l+"px";r.style.width=Math.max(0,t-3)+"px";r.style.height=Math.max(0,n-3)+"px";if(null!=c&&c.parentNode==this.editor.graph.container)this.editor.graph.container.appendChild(r);else if(null!=document.body)document.body.appendChild(r);else return null;return r};EditorUi.prototype.stringToCells=function(c){c=mxUtils.parseXml(c);var g=this.editor.extractGraphModel(c.documentElement);c=[];if(null!=g){var l=new mxCodec(g.ownerDocument),n=new mxGraphModel;l.decode(g,-n);g=n.getChildAt(n.getRoot(),0);for(l=0;l<n.getChildCount(g);l++)c.push(n.getChildAt(g,l))}return c};EditorUi.prototype.openFileHandle=function(c,g,l,n,r,t,v){if(null!=g&&0<g.length){if(!Editor.useCanvasForExport&&/(\.png)$/i.test(g)||/(\.pdf)$/i.test(g))g=g.substring(0,g.length-4),/(\.drawio)$/i.test(g)||(g+=".drawio");var B=mxUtils.bind(this,function(K){g=0<=g.lastIndexOf(".")?g.substring(0,g.lastIndexOf("."))+".drawio":g+".drawio";if("<mxlibrary"==K.substring(0,10)){null==this.getCurrentFile()&&-"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,n);try{this.loadLibrary(new LocalLibrary(this,K,g)),this.showSidebar()}catch(C){this.handleError(C,mxResources.get("errorLoadingFile"))}}else this.openLocalFile(K,g,n,null,null,null,v)});if(EditorUi.isVisioFilename(g))this.importVisio(l,mxUtils.bind(this,function(K){this.spinner.stop();B(K)}));else if(/(\.*<graphml )/.test(c))this.importGraphML(c,mxUtils.bind(this,function(K){this.spinner.stop();B(K)}));else if(Graph.fileSupport&&-this.isGliffyData(c,g))this.importGliffy(c,mxUtils.bind(this,function(K){this.spinner.stop();B(K)}),mxUtils.bind(this,function(K){this.spinner.stop();this.handleError({message:mxResources.get(null!=K&&413==K.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile"))}),g);else if(this.isLucidChartData(c))/(\.json)$/i.test(g)&&(g=g.substring(0,g.length-5)+".drawio"),this.convertLucidChart(c,mxUtils.bind(this,function(K){this.spinner.stop();this.openLocalFile(K,g,n,null,null,+EditorUi.prototype.highlightElement=function(c){var f=0,l=0;if(null==c){var n=document.body;var r=document.documentElement;if(null==n&&null==r)return null;var t=((null!=n?n.clientWidth:0)||r.clientWidth)-3;n=Math.max(null!=n?n.clientHeight:0,r.clientHeight)-3}else n=c.getBoundingClientRect(),f=n.top,l=n.left,t=n.width,n=n.height;r=document.createElement("div");r.style.zIndex=mxPopupMenu.prototype.zIndex+2;r.style.border="3px dotted rgb(254, 137, 12)";r.style.pointerEvents="none";r.style.position=+"absolute";r.style.top=f+"px";r.style.left=l+"px";r.style.width=Math.max(0,t-3)+"px";r.style.height=Math.max(0,n-3)+"px";if(null!=c&&c.parentNode==this.editor.graph.container)this.editor.graph.container.appendChild(r);else if(null!=document.body)document.body.appendChild(r);else return null;return r};EditorUi.prototype.stringToCells=function(c){c=mxUtils.parseXml(c);var f=this.editor.extractGraphModel(c.documentElement);c=[];if(null!=f){var l=new mxCodec(f.ownerDocument),n=new mxGraphModel;l.decode(f,+n);f=n.getChildAt(n.getRoot(),0);for(l=0;l<n.getChildCount(f);l++)c.push(n.getChildAt(f,l))}return c};EditorUi.prototype.openFileHandle=function(c,f,l,n,r,t,v){if(null!=f&&0<f.length){if(!Editor.useCanvasForExport&&/(\.png)$/i.test(f)||/(\.pdf)$/i.test(f))f=f.substring(0,f.length-4),/(\.drawio)$/i.test(f)||(f+=".drawio");var B=mxUtils.bind(this,function(K){f=0<=f.lastIndexOf(".")?f.substring(0,f.lastIndexOf("."))+".drawio":f+".drawio";if("<mxlibrary"==K.substring(0,10)){null==this.getCurrentFile()&&+"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,n);try{this.loadLibrary(new LocalLibrary(this,K,f)),this.showSidebar()}catch(C){this.handleError(C,mxResources.get("errorLoadingFile"))}}else this.openLocalFile(K,f,n,null,null,null,v)});if(EditorUi.isVisioFilename(f))this.importVisio(l,mxUtils.bind(this,function(K){this.spinner.stop();B(K)}));else if(/(\.*<graphml )/.test(c))this.importGraphML(c,mxUtils.bind(this,function(K){this.spinner.stop();B(K)}));else if(Graph.fileSupport&&+this.isGliffyData(c,f))this.importGliffy(c,mxUtils.bind(this,function(K){this.spinner.stop();B(K)}),mxUtils.bind(this,function(K){this.spinner.stop();this.handleError({message:mxResources.get(null!=K&&413==K.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile"))}),f);else if(this.isLucidChartData(c))/(\.json)$/i.test(f)&&(f=f.substring(0,f.length-5)+".drawio"),this.convertLucidChart(c,mxUtils.bind(this,function(K){this.spinner.stop();this.openLocalFile(K,f,n,null,null,null,v)}),mxUtils.bind(this,function(K){this.spinner.stop();this.handleError(K)}));else if("<mxlibrary"==c.substring(0,10)){this.spinner.stop();null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,n);try{this.loadLibrary(new LocalLibrary(this,c,l.name)),this.showSidebar()}catch(K){this.handleError(K,mxResources.get("errorLoadingFile"))}}else if(0==c.indexOf("PK"))this.importZipFile(l,mxUtils.bind(this,function(K){this.spinner.stop();B(K)}),-mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(c,g,n,null,null,null,v)}));else{if("image/png"==l.type.substring(0,9))c=this.extractGraphModelFromPng(c);else if("application/pdf"==l.type){var E=Editor.extractGraphModelFromPdf(c);null!=E&&(r=null,n=!0,c=E)}this.spinner.stop();this.openLocalFile(c,g,n,r,null!=r?l:null,t,v)}}};EditorUi.prototype.openFiles=function(c,g,l){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var n=0;n<c.length;n++)mxUtils.bind(this,function(r){var t=-new FileReader;t.onload=mxUtils.bind(this,function(v){try{this.openFileHandle(v.target.result,r.name,r,g,null,null,l)}catch(B){this.handleError(B)}});t.onerror=mxUtils.bind(this,function(v){this.spinner.stop();this.handleError(v);window.openFile=null});"image"!==r.type.substring(0,5)&&"application/pdf"!==r.type||"image/svg"===r.type.substring(0,9)?t.readAsText(r):t.readAsDataURL(r)})(c[n])};EditorUi.prototype.openLocalFile=function(c,g,l,n,r,t,v){var B=this.getCurrentFile(),E=mxUtils.bind(this,function(){window.openFile=-null;if(null==g&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var C=mxUtils.parseXml(c);null!=C&&(this.editor.setGraphXml(C.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,c,g||this.defaultFilename,l,n,r,t));null!=v&&v()});if(null!=c&&0<c.length)if(null==B||!B.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=n||this.isDiagramEmpty()))E();else if((mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&null!=B&&B.isModified())this.confirm(mxResources.get("allChangesLost"),-null,E,mxResources.get("cancel"),mxResources.get("discardChanges"));else{window.openFile=new OpenFile(function(){window.openFile=null});window.openFile.setData(c,g,l);var K=mxUtils.bind(this,function(){null!=B&&B.isModified()?this.confirm(mxResources.get("allChangesLost"),null,E,mxResources.get("cancel"),mxResources.get("discardChanges")):E()});"1"==urlParams.openInSameWin||navigator.standalone?K():this.showDialog((new PopupDialog(this,this.getUrl(),null,K)).container,340,140,!0,!0)}else throw Error(mxResources.get("notADiagramFile"));-};EditorUi.prototype.getBasenames=function(){var c={};if(null!=this.pages)for(var g=0;g<this.pages.length;g++)this.updatePageRoot(this.pages[g]),this.addBasenamesForCell(this.pages[g].root,c);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),c);g=[];for(var l in c)g.push(l);return g};EditorUi.prototype.addBasenamesForCell=function(c,g){function l(v){if(null!=v){var B=v.lastIndexOf(".");0<B&&(v=v.substring(B+1,v.length));null==g[v]&&(g[v]=!0)}}var n=this.editor.graph,r=n.getCellStyle(c);-l(mxStencilRegistry.getBasenameForStencil(r[mxConstants.STYLE_SHAPE]));n.model.isEdge(c)&&(l(mxMarker.getPackageForType(r[mxConstants.STYLE_STARTARROW])),l(mxMarker.getPackageForType(r[mxConstants.STYLE_ENDARROW])));r=n.model.getChildCount(c);for(var t=0;t<r;t++)this.addBasenamesForCell(n.model.getChildAt(c,t),g)};EditorUi.prototype.setGraphEnabled=function(c){this.diagramContainer.style.visibility=c?"":"hidden";this.formatContainer.style.visibility=this.diagramContainer.style.visibility;this.sidebarContainer.style.display=-c?"":"none";this.hsplit.style.display=this.sidebarContainer.style.display;this.editor.graph.setEnabled(c);null!=this.tabContainer&&(this.tabContainer.style.visibility=this.diagramContainer.style.visibility);c||this.hideWindows();this.editor.graph.sizeDidChange();this.resetScrollbars()};EditorUi.prototype.fitInitialView=function(c){var g=this.editor.graph,l=this.currentPage;l=null!=l?l.getViewBox():null;var n=g.container;if(null!=l&&0<n.clientWidth&&0<n.clientHeight){c=n.clientWidth;var r=n.clientHeight,-t=Math.min(c/l.width,r/l.height);g.zoomTo(null!=l.scale?Math.min(l.scale,t):t,null,null,mxUtils.hasScrollbars(n));mxUtils.hasScrollbars(n)&&(t=g.view.translate,g=g.view.scale,n.scrollLeft=(l.x+l.width/2+t.x)*g-c/2,n.scrollTop=(l.y+l.height/2+t.y)*g-r/2)}else this.initialFitDiagram(c)};EditorUi.prototype.initializeEmbedMode=function(){this.setGraphEnabled(!1);if((this.embedMessageSource||window.opener||window.parent)!=window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))){var c=-!1;this.installMessageHandler(mxUtils.bind(this,function(g,l,n,r){c||(c=!0,this.spinner.stop(),this.addEmbedButtons(),this.setGraphEnabled(!0));if(null==g||0==g.length)g=this.emptyDiagramXml;this.setCurrentFile(new EmbedFile(this,g,{}));this.mode=App.MODE_EMBED;this.setFileData(g);Editor.fitDiagramOnLoad&&this.fitInitialView();if(r)try{var t=this.editor.graph;t.setGridEnabled(!1);t.pageVisible=!1;var v=t.model.cells,B;for(B in v){var E=v[B];null!=E&&null!=E.style&&(E.style+=";sketch=1;"+(-1==E.style.indexOf("fontFamily=")||+mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(c,f,n,null,null,null,v)}));else{if("image/png"==l.type.substring(0,9))c=this.extractGraphModelFromPng(c);else if("application/pdf"==l.type){var E=Editor.extractGraphModelFromPdf(c);null!=E&&(r=null,n=!0,c=E)}this.spinner.stop();this.openLocalFile(c,f,n,r,null!=r?l:null,t,v)}}};EditorUi.prototype.openFiles=function(c,f,l){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var n=0;n<c.length;n++)mxUtils.bind(this,function(r){var t=+new FileReader;t.onload=mxUtils.bind(this,function(v){try{this.openFileHandle(v.target.result,r.name,r,f,null,null,l)}catch(B){this.handleError(B)}});t.onerror=mxUtils.bind(this,function(v){this.spinner.stop();this.handleError(v);window.openFile=null});"image"!==r.type.substring(0,5)&&"application/pdf"!==r.type||"image/svg"===r.type.substring(0,9)?t.readAsText(r):t.readAsDataURL(r)})(c[n])};EditorUi.prototype.openLocalFile=function(c,f,l,n,r,t,v){var B=this.getCurrentFile(),E=mxUtils.bind(this,function(){window.openFile=+null;if(null==f&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var C=mxUtils.parseXml(c);null!=C&&(this.editor.setGraphXml(C.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,c,f||this.defaultFilename,l,n,r,t));null!=v&&v()});if(null!=c&&0<c.length)if(null==B||!B.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=n||this.isDiagramEmpty()))E();else if((mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&null!=B&&B.isModified())this.confirm(mxResources.get("allChangesLost"),+null,E,mxResources.get("cancel"),mxResources.get("discardChanges"));else{window.openFile=new OpenFile(function(){window.openFile=null});window.openFile.setData(c,f,l);var K=mxUtils.bind(this,function(){null!=B&&B.isModified()?this.confirm(mxResources.get("allChangesLost"),null,E,mxResources.get("cancel"),mxResources.get("discardChanges")):E()});"1"==urlParams.openInSameWin||navigator.standalone?K():this.showDialog((new PopupDialog(this,this.getUrl(),null,K)).container,340,140,!0,!0)}else throw Error(mxResources.get("notADiagramFile"));+};EditorUi.prototype.getBasenames=function(){var c={};if(null!=this.pages)for(var f=0;f<this.pages.length;f++)this.updatePageRoot(this.pages[f]),this.addBasenamesForCell(this.pages[f].root,c);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),c);f=[];for(var l in c)f.push(l);return f};EditorUi.prototype.addBasenamesForCell=function(c,f){function l(v){if(null!=v){var B=v.lastIndexOf(".");0<B&&(v=v.substring(B+1,v.length));null==f[v]&&(f[v]=!0)}}var n=this.editor.graph,r=n.getCellStyle(c);+l(mxStencilRegistry.getBasenameForStencil(r[mxConstants.STYLE_SHAPE]));n.model.isEdge(c)&&(l(mxMarker.getPackageForType(r[mxConstants.STYLE_STARTARROW])),l(mxMarker.getPackageForType(r[mxConstants.STYLE_ENDARROW])));r=n.model.getChildCount(c);for(var t=0;t<r;t++)this.addBasenamesForCell(n.model.getChildAt(c,t),f)};EditorUi.prototype.setGraphEnabled=function(c){this.diagramContainer.style.visibility=c?"":"hidden";this.formatContainer.style.visibility=this.diagramContainer.style.visibility;this.sidebarContainer.style.display=+c?"":"none";this.hsplit.style.display=this.sidebarContainer.style.display;this.editor.graph.setEnabled(c);null!=this.tabContainer&&(this.tabContainer.style.visibility=this.diagramContainer.style.visibility);c||this.hideWindows();this.editor.graph.sizeDidChange();this.resetScrollbars()};EditorUi.prototype.fitInitialView=function(c){var f=this.editor.graph,l=this.currentPage;l=null!=l?l.getViewBox():null;var n=f.container;if(null!=l&&0<n.clientWidth&&0<n.clientHeight){c=n.clientWidth;var r=n.clientHeight,+t=Math.min(c/l.width,r/l.height);f.zoomTo(null!=l.scale?Math.min(l.scale,t):t,null,null,mxUtils.hasScrollbars(n));mxUtils.hasScrollbars(n)&&(t=f.view.translate,f=f.view.scale,n.scrollLeft=(l.x+l.width/2+t.x)*f-c/2,n.scrollTop=(l.y+l.height/2+t.y)*f-r/2)}else this.initialFitDiagram(c)};EditorUi.prototype.initializeEmbedMode=function(){this.setGraphEnabled(!1);if((this.embedMessageSource||window.opener||window.parent)!=window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))){var c=+!1;this.installMessageHandler(mxUtils.bind(this,function(f,l,n,r){c||(c=!0,this.spinner.stop(),this.addEmbedButtons(),this.setGraphEnabled(!0));if(null==f||0==f.length)f=this.emptyDiagramXml;this.setCurrentFile(new EmbedFile(this,f,{}));this.mode=App.MODE_EMBED;this.setFileData(f);Editor.fitDiagramOnLoad&&this.fitInitialView();if(r)try{var t=this.editor.graph;t.setGridEnabled(!1);t.pageVisible=!1;var v=t.model.cells,B;for(B in v){var E=v[B];null!=E&&null!=E.style&&(E.style+=";sketch=1;"+(-1==E.style.indexOf("fontFamily=")||-1<E.style.indexOf("fontFamily=Helvetica;")?"fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;":""))}}catch(K){console.log(K)}this.editor.isChromelessView()?this.editor.graph.isLightboxView()&&this.lightboxFit():this.showLayersDialog();this.chromelessResize&&this.chromelessResize();this.editor.undoManager.clear();this.editor.modified=null!=n?n:!1;this.updateUi();window.self===window.top||this.noAutoFocus||window.focus();null!=this.format&&-this.format.refresh()}))}};EditorUi.prototype.showLayersDialog=function(){1<this.editor.graph.getModel().getChildCount(this.editor.graph.getModel().getRoot())&&(null==this.actions.layersWindow?this.actions.get("layers").funct():this.actions.layersWindow.window.setVisible(!0))};EditorUi.prototype.getPublicUrl=function(c,g){null!=c?this.spinner.spin(document.body,mxResources.get("loading"))&&c.getPublicUrl(mxUtils.bind(this,function(l){this.spinner.stop();g(l)})):g(null)};EditorUi.prototype.createLoadMessage=-function(c){var g=this.editor.graph,l=g.getGraphBounds(),n=g.view.scale,r=g.view.translate;return{event:c,pageVisible:g.pageVisible,translate:r,bounds:l,currentPage:this.getSelectedPageIndex(),scale:n,page:g.view.getBackgroundPageBounds(),modelBounds:{x:l.x/n-r.x,y:l.y/n-r.y,width:l.width/n,height:l.height/n},containerSize:{width:g.container.clientWidth,height:g.container.clientHeight,offsetWidth:g.container.offsetWidth,offsetHeight:g.container.offsetHeight}}};EditorUi.prototype.sendEmbeddedSvgExport=-function(c){try{var g=this.editor.graph;g.isEditing()&&g.stopEditing(!g.isInvokesStopCellEditing());var l=this.embedMessageSource||window.opener||window.parent;if(this.editor.modified){var n=g.background;if(null==n||n==mxConstants.NONE)n=this.embedExportBackground;this.getEmbeddedSvg(this.getFileData(!0,null,null,null,null,null,null,null,null,!1),g,null,!0,mxUtils.bind(this,function(r){l.postMessage(JSON.stringify({event:"export",point:this.embedExitPoint,exit:null!=c?!c:!0,data:Editor.createSvgDataUri(r)}),-"*")}),null,null,!0,n,1,this.embedExportBorder,null,this.embedExportTheme)}else c||l.postMessage(JSON.stringify({event:"exit",point:this.embedExitPoint}),"*");c||(this.diagramContainer.removeAttribute("data-bounds"),Editor.inlineFullscreen=!1,g.model.clear(),this.editor.undoManager.clear(),this.setBackgroundImage(null),this.editor.modified=!1,"1"!=urlParams.embed&&this.fireEvent(new mxEventObject("editInlineStop")))}catch(r){c||this.handleError(r)}};EditorUi.prototype.whenScriptReady=function(c,g,-l){if(c())g();else var n=0,r=window.setInterval(function(){c()?(window.clearInterval(r),g()):100<=++n&&(window.clearInterval(r),null!=l&&l())},100)};EditorUi.prototype.lastLayoutSpec=null;EditorUi.prototype.resolveLayoutList=function(c){if("string"===typeof c){c=mxUtils.trim(c);if("["==c.charAt(0))return JSON.parse(c);if("undefined"===typeof LibavoidRouting||c!==LibavoidRouting.SHORTHAND&&c!==LibavoidRouting.LAYOUT_NAME){if("parallels"===c)return[{layout:"mxParallelEdgeLayout",config:{checkOverlap:!0}}];-if("undefined"!==typeof ElkLayout&&null!=ElkLayout.MENU_PRESETS&&null!=ElkLayout.MENU_PRESETS[c]){c=ElkLayout.MENU_PRESETS[c];var g="layered"===c.algorithm?ElkLayout.CANONICAL_EDGE:{corners:(ElkLayout.CANONICAL_EDGE||{}).corners};return[{layout:Graph.elkLayoutNameForAlgorithm(c.algorithm),config:Graph.elkOptionsToConfig(c.options,g)}]}}else return[{layout:LibavoidRouting.LAYOUT_NAME}];return null}return"object"===typeof c?c:null};EditorUi.prototype.getSelectedLayoutContainer=function(){var c=this.editor.graph,-g=1==c.getSelectionCount()?c.getSelectionCell():null;return null!=g&&c.model.isVertex(g)&&(c=c.getCellStyle(g).childLayout,null!=c&&"tableLayout"!=c&&"stackLayout"!=c&&"rack"!=c)?g:null};EditorUi.prototype.setContainerChildLayout=function(c,g){var l=this.editor.graph,n=g,r=null,t=null;if("string"!==typeof g){if(!Array.isArray(g)||0==g.length)throw Error("Invalid layout list: "+JSON.stringify(g));n=[];for(var v=0;v<g.length;v++){var B=g[v];if(null!=B&&("mxRadialTreeLayout"==B.layout||"mxOrgChartLayout"==+this.format.refresh()}))}};EditorUi.prototype.showLayersDialog=function(){1<this.editor.graph.getModel().getChildCount(this.editor.graph.getModel().getRoot())&&(null==this.actions.layersWindow?this.actions.get("layers").funct():this.actions.layersWindow.window.setVisible(!0))};EditorUi.prototype.getPublicUrl=function(c,f){null!=c?this.spinner.spin(document.body,mxResources.get("loading"))&&c.getPublicUrl(mxUtils.bind(this,function(l){this.spinner.stop();f(l)})):f(null)};EditorUi.prototype.createLoadMessage=+function(c){var f=this.editor.graph,l=f.getGraphBounds(),n=f.view.scale,r=f.view.translate;return{event:c,pageVisible:f.pageVisible,translate:r,bounds:l,currentPage:this.getSelectedPageIndex(),scale:n,page:f.view.getBackgroundPageBounds(),modelBounds:{x:l.x/n-r.x,y:l.y/n-r.y,width:l.width/n,height:l.height/n},containerSize:{width:f.container.clientWidth,height:f.container.clientHeight,offsetWidth:f.container.offsetWidth,offsetHeight:f.container.offsetHeight}}};EditorUi.prototype.sendEmbeddedSvgExport=+function(c){try{var f=this.editor.graph;f.isEditing()&&f.stopEditing(!f.isInvokesStopCellEditing());var l=this.embedMessageSource||window.opener||window.parent;if(this.editor.modified){var n=f.background;if(null==n||n==mxConstants.NONE)n=this.embedExportBackground;this.getEmbeddedSvg(this.getFileData(!0,null,null,null,null,null,null,null,null,!1),f,null,!0,mxUtils.bind(this,function(r){l.postMessage(JSON.stringify({event:"export",point:this.embedExitPoint,exit:null!=c?!c:!0,data:Editor.createSvgDataUri(r)}),+"*")}),null,null,!0,n,1,this.embedExportBorder,null,this.embedExportTheme)}else c||l.postMessage(JSON.stringify({event:"exit",point:this.embedExitPoint}),"*");c||(this.diagramContainer.removeAttribute("data-bounds"),Editor.inlineFullscreen=!1,f.model.clear(),this.editor.undoManager.clear(),this.setBackgroundImage(null),this.editor.modified=!1,"1"!=urlParams.embed&&this.fireEvent(new mxEventObject("editInlineStop")))}catch(r){c||this.handleError(r)}};EditorUi.prototype.whenScriptReady=function(c,f,+l){if(c())f();else var n=0,r=window.setInterval(function(){c()?(window.clearInterval(r),f()):100<=++n&&(window.clearInterval(r),null!=l&&l())},100)};EditorUi.prototype.lastLayoutSpec=null;EditorUi.prototype.resolveLayoutList=function(c){if("string"===typeof c){c=mxUtils.trim(c);if("["==c.charAt(0))return JSON.parse(c);if("undefined"===typeof LibavoidRouting||c!==LibavoidRouting.SHORTHAND&&c!==LibavoidRouting.LAYOUT_NAME){if("parallels"===c)return[{layout:"mxParallelEdgeLayout",config:{checkOverlap:!0}}];+if("undefined"!==typeof ElkLayout&&null!=ElkLayout.MENU_PRESETS&&null!=ElkLayout.MENU_PRESETS[c]){c=ElkLayout.MENU_PRESETS[c];var f="layered"===c.algorithm?ElkLayout.CANONICAL_EDGE:{corners:(ElkLayout.CANONICAL_EDGE||{}).corners};return[{layout:Graph.elkLayoutNameForAlgorithm(c.algorithm),config:Graph.elkOptionsToConfig(c.options,f)}]}}else return[{layout:LibavoidRouting.LAYOUT_NAME}];return null}return"object"===typeof c?c:null};EditorUi.prototype.getSelectedLayoutContainer=function(){var c=this.editor.graph,+f=1==c.getSelectionCount()?c.getSelectionCell():null;return null!=f&&c.model.isVertex(f)&&(c=c.getCellStyle(f).childLayout,null!=c&&"tableLayout"!=c&&"stackLayout"!=c&&"rack"!=c)?f:null};EditorUi.prototype.setContainerChildLayout=function(c,f){var l=this.editor.graph,n=f,r=null,t=null;if("string"!==typeof f){if(!Array.isArray(f)||0==f.length)throw Error("Invalid layout list: "+JSON.stringify(f));n=[];for(var v=0;v<f.length;v++){var B=f[v];if(null!=B&&("mxRadialTreeLayout"==B.layout||"mxOrgChartLayout"==B.layout||"mxFastOrganicLayout"==B.layout||"mxCircleLayout"==B.layout))throw Error("Not supported as childLayout: "+B.layout);if(null!=B&&null!=Graph.elkLayoutAlgorithms[B.layout]){var E={},K;for(K in B.config)E[K]=B.config[K];delete E.rootCellIds;delete E.preserveOrigin;null==E.resizeNodes&&(E.resizeNodes=!1);null==E.resizeLayoutRoot&&(E.resizeLayoutRoot=!0);"elkLayered"==B.layout&&null==E.extractIsolated&&(E.extractIsolated=!1);null!=E.corners&&(t=E.corners);if(null!=E.groupPadding&&(r=String(E.groupPadding),/[;=]/.test(r)))throw Error("Invalid groupPadding: "+r);B={layout:B.layout,config:E}}n.push(B)}l.createLayouts(n);n=Graph.encodeChildLayout(n)}if(0<=n.indexOf(";"))throw Error("Invalid childLayout: "+n);l.model.beginUpdate();try{var C=l.model.getStyle(c);l.setCellStyles("childLayout",n,[c]);null!=r&&l.setCellStyles("groupPadding",r,[c]);null!=t&&"undefined"!==typeof ElkLayout&&"function"===typeof ElkLayout.applyCorners&&ElkLayout.applyCorners(l,c,t);l.model.getStyle(c)==C&&null!=l.layoutManager&&-l.layoutManager.executeLayout(c,!1)}finally{l.model.endUpdate()}};EditorUi.prototype.executeLayoutSpec=function(c,g,l){var n=this;this.whenScriptReady(function(){return"undefined"!==typeof ElkLayout&&null!=ElkLayout.MENU_PRESETS},function(){try{var r=n.resolveLayoutList(c);if(null!=r){n.lastLayoutSpec=r;var t=l?n.getSelectedLayoutContainer():null;null!=t&&Array.isArray(r)&&0<r.length?(n.setContainerChildLayout(t,r),null!=g&&g()):n.executeLayouts(n.editor.graph.createLayouts(r),g)}else n.handleError(Error("Unknown layout: "+-c))}catch(v){n.handleError(v)}},function(){n.handleError(Error(mxResources.get("serviceUnavailableOrBlocked")))})};EditorUi.prototype.applyChildLayouts=function(c){var g=this.editor.graph,l=function(){try{g.executeAllChildLayouts()}catch(n){null!=window.console&&console.error(n)}null!=c&&c()};(function(){if("undefined"!==typeof ElkLayout)return!1;for(var n=g.getChildLayoutCells(),r=0;r<n.length;r++)try{for(var t=Graph.decodeChildLayout(g.getCellStyle(n[r]).childLayout),v=0;null!=t&&v<t.length;v++)if(null!=-t[v]&&"string"===typeof Graph.elkLayoutAlgorithms[t[v].layout])return!0}catch(B){}return!1})()?this.whenScriptReady(function(){return"undefined"!==typeof ElkLayout},l,l):l()};EditorUi.prototype.installPassThroughKeys=function(){null!=Editor.passThroughKeys&&null==this.passThroughKeysListener&&(this.passThroughKeysListener=mxUtils.bind(this,function(c){for(var g=Editor.passThroughKeys,l=c.ctrlKey||c.metaKey,n=null!=c.key?c.key.toLowerCase():"",r=0;r<g.length;r++){var t=g[r];if(n===String(t.key).toLowerCase()&&+l.layoutManager.executeLayout(c,!1)}finally{l.model.endUpdate()}};EditorUi.prototype.executeLayoutSpec=function(c,f,l){var n=this;this.whenScriptReady(function(){return"undefined"!==typeof ElkLayout&&null!=ElkLayout.MENU_PRESETS},function(){try{var r=n.resolveLayoutList(c);if(null!=r){n.lastLayoutSpec=r;var t=l?n.getSelectedLayoutContainer():null;null!=t&&Array.isArray(r)&&0<r.length?(n.setContainerChildLayout(t,r),null!=f&&f()):n.executeLayouts(n.editor.graph.createLayouts(r),f)}else n.handleError(Error("Unknown layout: "++c))}catch(v){n.handleError(v)}},function(){n.handleError(Error(mxResources.get("serviceUnavailableOrBlocked")))})};EditorUi.prototype.applyChildLayouts=function(c){var f=this.editor.graph,l=function(){try{f.executeAllChildLayouts()}catch(n){null!=window.console&&console.error(n)}null!=c&&c()};(function(){if("undefined"!==typeof ElkLayout)return!1;for(var n=f.getChildLayoutCells(),r=0;r<n.length;r++)try{for(var t=Graph.decodeChildLayout(f.getCellStyle(n[r]).childLayout),v=0;null!=t&&v<t.length;v++)if(null!=+t[v]&&"string"===typeof Graph.elkLayoutAlgorithms[t[v].layout])return!0}catch(B){}return!1})()?this.whenScriptReady(function(){return"undefined"!==typeof ElkLayout},l,l):l()};EditorUi.prototype.installPassThroughKeys=function(){null!=Editor.passThroughKeys&&null==this.passThroughKeysListener&&(this.passThroughKeysListener=mxUtils.bind(this,function(c){for(var f=Editor.passThroughKeys,l=c.ctrlKey||c.metaKey,n=null!=c.key?c.key.toLowerCase():"",r=0;r<f.length;r++){var t=f[r];if(n===String(t.key).toLowerCase()&&l===!!t.ctrl&&c.shiftKey===!!t.shift&&c.altKey===!!t.alt){c.preventDefault();c.stopImmediatePropagation();null!=t.command&&(this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify({event:"shortcut",command:t.command}),"*");break}}}),window.addEventListener("keydown",this.passThroughKeysListener,!0))};EditorUi.keyNames={8:"Backspace",9:"Tab",13:"Enter",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",45:"Insert",46:"Delete",107:"+",-109:"-",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",187:"+",189:"-"};EditorUi.prototype.installKeyboardShortcuts=function(){if(null!=Editor.keyboardShortcuts)for(var c=0;c<Editor.keyboardShortcuts.length;c++)this.installKeyboardShortcut(Editor.keyboardShortcuts[c])};EditorUi.prototype.installKeyboardShortcut=function(c){var g="string"===typeof c.keyCode&&1==c.keyCode.length,l=g?c.keyCode.toUpperCase().charCodeAt(0):parseInt(c.keyCode);+109:"-",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",187:"+",189:"-"};EditorUi.prototype.installKeyboardShortcuts=function(){if(null!=Editor.keyboardShortcuts)for(var c=0;c<Editor.keyboardShortcuts.length;c++)this.installKeyboardShortcut(Editor.keyboardShortcuts[c])};EditorUi.prototype.installKeyboardShortcut=function(c){var f="string"===typeof c.keyCode&&1==c.keyCode.length,l=f?c.keyCode.toUpperCase().charCodeAt(0):parseInt(c.keyCode);if(isNaN(l))EditorUi.debug("Configuration Error: Invalid keyCode for keyboardShortcuts",c);else{if(c.alt){var n=c.control?c.shift?this.ctrlAltShiftActions:this.ctrlAltActions:c.shift?this.altShiftActions:this.altActions;null!=c.action?n[l]=c.action:delete n[l]}else null!=c.action?(n=mxUtils.bind(this,function(){var r=this.actions.get(c.action);null!=r&&r.isEnabled()&&r.funct.apply(this,arguments)}),c.control?c.shift?this.keyHandler.bindControlShiftKey(l,n):this.keyHandler.bindControlKey(l,n):c.shift?-this.keyHandler.bindShiftKey(l,n):this.keyHandler.bindKey(l,n)):delete (c.control?c.shift?this.keyHandler.controlShiftKeys:this.keyHandler.controlKeys:c.shift?this.keyHandler.shiftKeys:this.keyHandler.normalKeys)[l];null!=c.action&&(n=this.actions.get(c.action),g=g?c.keyCode.toUpperCase():48<=l&&57>=l||65<=l&&90>=l?String.fromCharCode(l):EditorUi.keyNames[l],null!=n&&null!=g&&(n.shortcut=(c.control?Editor.ctrlKey+"+":"")+(c.alt?Editor.altKey+"+":"")+(c.shift?Editor.shiftKey+"+":"")+g))}};EditorUi.prototype.installMessageHandler=-function(c){var g=null,l=!1,n=!1,r=null,t=null;this.installPassThroughKeys();var v=mxUtils.bind(this,function(K,C){this.editor.modified&&"0"!=urlParams.modified?null!=urlParams.modified&&this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(urlParams.modified)))})):this.clearStatus()});this.editor.graph.model.addListener(mxEvent.CHANGE,v);mxEvent.addListener(window,"message",mxUtils.bind(this,function(K){if(K.source==(this.embedMessageSource||window.opener||+this.keyHandler.bindShiftKey(l,n):this.keyHandler.bindKey(l,n)):delete (c.control?c.shift?this.keyHandler.controlShiftKeys:this.keyHandler.controlKeys:c.shift?this.keyHandler.shiftKeys:this.keyHandler.normalKeys)[l];null!=c.action&&(n=this.actions.get(c.action),f=f?c.keyCode.toUpperCase():48<=l&&57>=l||65<=l&&90>=l?String.fromCharCode(l):EditorUi.keyNames[l],null!=n&&null!=f&&(n.shortcut=(c.control?Editor.ctrlKey+"+":"")+(c.alt?Editor.altKey+"+":"")+(c.shift?Editor.shiftKey+"+":"")+f))}};EditorUi.prototype.installMessageHandler=+function(c){var f=null,l=!1,n=!1,r=null,t=null;this.installPassThroughKeys();var v=mxUtils.bind(this,function(K,C){this.editor.modified&&"0"!=urlParams.modified?null!=urlParams.modified&&this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(urlParams.modified)))})):this.clearStatus()});this.editor.graph.model.addListener(mxEvent.CHANGE,v);mxEvent.addListener(window,"message",mxUtils.bind(this,function(K){if(K.source==(this.embedMessageSource||window.opener||window.parent)){var C=K.data,R=null,M=null,O=mxUtils.bind(this,function(ka){if(null!=ka&&"function"===typeof ka.charAt&&"<"!=ka.charAt(0))try{Editor.isPngDataUrl(ka)?ka=Editor.extractGraphModelFromPng(ka):"data:image/svg+xml;base64,"==ka.substring(0,26)?ka=atob(ka.substring(26)):"data:image/svg+xml;utf8,"==ka.substring(0,24)&&(ka=ka.substring(24)),null!=ka&&(""==ka.trim()?ka=null:"%"==ka.charAt(0)?ka=decodeURIComponent(ka):"<"!=ka.charAt(0)&&(ka=Graph.decompress(ka)))}catch(ta){}return ka});if("json"==urlParams.proto){var U=!1;try{C=JSON.parse(C),EditorUi.debug("EditorUi.installMessageHandler",[this],"evt",[K],"data",[C])}catch(ka){C=null}try{var T=C;if(null==C)return;if("dialog"==C.action){this.showError(null!=C.titleKey?mxResources.get(C.titleKey):C.title,null!=C.messageKey?mxResources.get(C.messageKey):mxUtils.htmlEntities(C.message),null!=C.buttonKey?mxResources.get(C.buttonKey):C.button);null!=C.modified&&(this.editor.modified=C.modified);return}if("layout"==C.action){this.executeLayoutSpec(C.layouts);return}if("prompt"==C.action){this.spinner.stop();var V=new FilenameDialog(this,C.defaultValue||"",null!=C.okKey?mxResources.get(C.okKey):C.ok,function(ka){null!=ka?B.postMessage(JSON.stringify({event:"prompt",value:ka,message:C}),"*"):B.postMessage(JSON.stringify({event:"prompt-cancel",message:C}),"*")},null!=C.titleKey?mxResources.get(C.titleKey):C.title,null,null,null,null,function(){B.postMessage(JSON.stringify({event:"prompt-cancel",message:C}),"*")});this.showDialog(V.container,300,80,!0,!1);@@ -14625,53 +14713,53 @@ C.action){this.sendEmbeddedSvgExport(!0);return}if("export"==C.action){if("png"=C.scale,C.border,C.shadow,"auto",null,C.embedFonts);else{this.editor.graph.setEnabled(!0);this.spinner.stop();var Ca=this.createLoadMessage("export");Ca.format=C.format;Ca.message=T;Ca.data=ka;Ca.svg=ta;Ca.xml=X;B.postMessage(JSON.stringify(Ca),"*")}}),S=mxUtils.bind(this,function(ka){null==ka&&(ka=Editor.blankImage);"xmlpng"==C.format&&(ka=Editor.writeGraphModelToPng(ka,"tEXt","mxfile",encodeURIComponent(X)));I!=this.editor.graph&&I.container.parentNode.removeChild(I.container);ca(ka)}),Z=C.pageId||(null!=this.pages?C.currentPage?this.currentPage.getId():this.pages[0].getId():null);if(this.editor.isExportToCanvas()){var da=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=Z){var ka=I.getGlobalVariable;I=this.createTemporaryGraph(I.getStylesheet());for(var ta,Ca=0;Ca<this.pages.length;Ca++)if(this.pages[Ca].getId()==Z){ta=this.updatePageRoot(this.pages[Ca]);break}null==ta&&(ta=this.currentPage);I.getGlobalVariable=function(La){return"page"==La?ta.getName():"pagenumber"==La?1:ka.apply(this,arguments)};document.body.appendChild(I.container);I.model.setRoot(ta.root)}if(null!=C.layerIds){var sa=I.model,Ea=sa.getChildCells(sa.getRoot()),Ga=Object.create(null);for(Ca=0;Ca<C.layerIds.length;Ca++)Ga[C.layerIds[Ca]]=!0;for(Ca=0;Ca<Ea.length;Ca++)sa.setVisible(Ea[Ca],Ga[Ea[Ca].id]||!1)}Ca=null;C.keepTheme&&(Ca=Editor.isDarkMode()?"dark":"light");null==C.width&&0<this.maxCanvasExportArea&&(Ea=I.getGraphBounds(),Ga=null!=C.border?C.border:0,sa=Math.ceil(Ea.width/I.view.scale)+-2*Ga,Ea=Math.ceil(Ea.height/I.view.scale)+2*Ga,Ga=null!=C.scale?C.scale:1,sa*Ea*Ga*Ga>this.maxCanvasExportArea&&(C.scale=Math.sqrt(this.maxCanvasExportArea/(sa*Ea))));this.editor.exportToCanvas(mxUtils.bind(this,function(La){S(La.toDataURL("image/png"))}),C.width,null,C.background,mxUtils.bind(this,function(){S(null)}),null,null,C.scale,C.transparent,C.shadow,null,I,C.border,null,C.grid,Ca,C.size)});null!=C.xml&&0<C.xml.length&&(l=!0,this.setFileData(X),l=!1);da()}else(new mxXmlRequest(EXPORT_URL,-"format=png&embedXml="+("xmlpng"==C.format?"1":"0")+(null!=Z?"&pageId="+Z:"")+(null!=C.layerIds&&0<C.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:C.layerIds})):"")+(null!=C.scale?"&scale="+C.scale:"")+"&base64=1&xml="+encodeURIComponent(X))).send(mxUtils.bind(this,function(ka){200<=ka.getStatus()&&299>=ka.getStatus()?ca("data:image/png;base64,"+ka.getText()):S(null)}),mxUtils.bind(this,function(){S(null)}))}}else if(da=mxUtils.bind(this,function(){var ka=this.createLoadMessage("export");-ka.message=C;if("html2"==C.format||"html"==C.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var ta=this.getXmlFileData();ka.xml=mxUtils.getXml(ta);ka.data=this.getFileData(null,null,!0,null,null,null,ta);ka.format=C.format}else if("html"==C.format)ta=this.editor.getGraphXml(),ka.data=this.getHtml(ta,this.editor.graph),ka.xml=mxUtils.getXml(ta),ka.format=C.format;else{if("xml"==C.format)ka.xml=this.getFileData(!0),ka.format=C.format,B.postMessage(JSON.stringify(ka),"*");else if("json"==-C.format)ka.format=C.format,ka.data=this.createJsonForExport(0!=C.allPages,1==C.includeData,1==C.compressed,1==C.selection),B.postMessage(JSON.stringify(ka),"*");else{mxSvgCanvas2D.prototype.foAltText=null;var Ca=null!=C.background?C.background:this.editor.graph.background;Ca==mxConstants.NONE&&(Ca=null);ka.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);ka.format="svg";var sa=mxUtils.bind(this,function(Ha){this.editor.graph.setEnabled(!0);this.spinner.stop();ka.data=C.asText?-Ha:Editor.createSvgDataUri(Ha);B.postMessage(JSON.stringify(ka),"*")}),Ea="auto";C.keepTheme&&(Ea=Editor.isDarkMode()?"dark":"light");null!=C.theme&&(Ea=C.theme);if("xmlsvg"==C.format){if(null==C.spin&&null==C.spinKey||this.spinner.spin(document.body,null!=C.spinKey?mxResources.get(C.spinKey):C.spin)){Ea=null;if(this.isAutoDarkMode()||Editor.isDarkMode())Ea="auto";null!=C.theme&&(Ea=C.theme);this.getEmbeddedSvg(ka.xml,this.editor.graph,null,!0,sa,null,null,C.embedImages,Ca,C.scale,C.border,C.shadow,-Ea,C.embedCellMetadata,C.embedFonts)}}else if(null==C.spin&&null==C.spinKey||this.spinner.spin(document.body,null!=C.spinKey?mxResources.get(C.spinKey):C.spin)){this.editor.graph.setEnabled(!1);var Ga=this.editor.graph.createSvgImageExport(!1,C.embedCellMetadata?!0:!1);ta=Object.create(null);var La=this.getSvgWithFontLookup(ta,Ga,mxUtils.bind(this,function(){return this.editor.graph.getSvg(Ca,C.scale,C.border,null,null,null,null,Ga,null,this.editor.graph.shadowVisible||C.shadow,null,Ea)}));(this.editor.graph.shadowVisible||-C.shadow)&&this.editor.graph.addSvgShadow(La);this.embedFonts(La,mxUtils.bind(this,function(Ha){C.embedImages||null==C.embedImages?this.editor.convertImages(Ha,mxUtils.bind(this,function(Oa){sa(mxUtils.getXml(Oa))})):sa(mxUtils.getXml(Ha))}),C.embedFonts,ta)}}return}B.postMessage(JSON.stringify(ka),"*")}),null!=C.xml&&0<C.xml.length){if(this.editor.graph.mathEnabled){var N=Editor.onMathJaxDone;Editor.onMathJaxDone=function(){N.apply(this,arguments);da()}}l=!0;this.setFileData(C.xml);l=!1;this.editor.graph.mathEnabled||-da()}else da();return}if("load"==C.action){U=C.toSketch;n=1==C.autosave;this.embedDiffSync=null!=C.diffSync&&!1!==C.diffSync;this.embedDiffSyncPatchOnly="object"===typeof C.diffSync&&null!=C.diffSync&&1==C.diffSync.patchOnly;this.embedExportProtocol=1==C.exportProtocol;var aa=C.sourceMetadata||null;M=null!=C.layout?C.layout:null;this.hideDialog();null!=C.modified&&null==urlParams.modified&&(urlParams.modified=C.modified);null!=C.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=C.saveAndExit);-if("1"==urlParams.saveAndExit||"1"==urlParams.publishClose)if(this.actions.get("save").shortcut=null,!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(83,!0,"saveAndExit"),"1"!=urlParams.noSaveBtn&&(this.actions.get("save").shortcut=Editor.ctrlKey+"+"+Editor.shiftKey+"+S",this.keyHandler.bindAction(83,!0,"save",!0));null!=C.noSaveBtn&&null==urlParams.noSaveBtn&&(urlParams.noSaveBtn=C.noSaveBtn);if(null!=C.rough){var ea=Editor.sketchMode;this.doSetSketchMode(C.rough);ea!=Editor.sketchMode&&-this.fireEvent(new mxEventObject("sketchModeChanged"))}null!=C.dark&&this.setDarkMode(C.dark);null!=C.border&&(this.embedExportBorder=C.border);null!=C.theme&&(this.embedExportTheme=C.theme);null!=C.background&&(this.embedExportBackground=C.background);null!=C.viewport&&(this.embedViewport=C.viewport);this.embedExitPoint=null;if(null!=C.scale){var la=C.scale,ra=null!=C.scaleBorder?C.scaleBorder:this.embedExportBorder||0,qa=null!=C.border?C.border:0;R=mxUtils.bind(this,function(){var ka=this.editor.graph,-ta=ka.getGraphBounds();if(0<ta.width&&0<ta.height){var Ca=ka.view.scale;ka.view.scaleAndTranslate(la,ka.view.translate.x+qa-ta.x/Ca+ra/la,ka.view.translate.y+qa-ta.y/Ca+ra/la)}})}else if(null!=C.fit){var na=null!=C.border?C.border:0,xa=C.maxFitScale||1;R=mxUtils.bind(this,function(){var ka=this.editor.graph,ta=ka.maxFitScale;ka.maxFitScale=xa;ka.fit(na,null,null,null,null,!0);ka.maxFitScale=ta})}if(null!=C.scroll&&null!=C.scroll.x&&null!=C.scroll.y){var wa=C.scroll,za=R;R=mxUtils.bind(this,function(){null!=-za&&za();var ka=this.editor.graph,ta=ka.view.scale,Ca=ka.view.translate;mxUtils.hasScrollbars(ka.container)?(ka.container.scrollLeft=(Ca.x+wa.x)*ta,ka.container.scrollTop=(Ca.y+wa.y)*ta):ka.view.setTranslate(-wa.x,-wa.y)})}if(null!=C.rect){qa=this.embedExportBorder;this.diagramContainer.style.left=Math.max(60,C.rect.left)+"px";this.diagramContainer.style.top=Math.max(40,C.rect.top)+"px";this.minInlineWidth=C.minWidth;this.minInlineHeight=C.minHeight;this.diagramContainer.style.border="2px solid #295fcc";-this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";var Ba=C.maxFitScale,va=C.rect.width+2*qa,pa=C.rect.height+2*qa;R=mxUtils.bind(this,function(){var ka=mxUtils.getDocumentSize();va=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,va):va,ka.width-80);ka=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,pa):pa,ka.height-80);this.diagramContainer.style.width=va+"px";this.diagramContainer.style.height=ka+"px";var ta=this.editor.graph;ka=ta.maxFitScale;-ta.maxFitScale=Ba;ta.fit(2*qa,null,null,null,null,null,pa);this.setPageVisible("1"==urlParams.pv);if(null!=this.minInlineWidth&&ta.getGraphBounds().width<this.minInlineWidth){var Ca=ta.container.scrollTop;this.resetScrollbars();ta.container.scrollTop=Ca}ta.maxFitScale=ka;ta.container.scrollTop-=qa;ta.container.scrollLeft-=qa;window.setTimeout(mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("editInlineStart","data",[C]));ta.container.focus();null!=this.formatWindow&&null!=this.formatWindow.window&&-this.formatWindow.window.isVisible()&&(this.formatWindow.window.div.style.top=ta.container.style.top);var sa=ta.getGraphBounds();ta.container.clientWidth>sa.width+2*qa&&(ta.container.scrollLeft=sa.x+(sa.width+qa-ta.container.clientWidth)/2)}),10)})}null!=C.noExitBtn&&null==urlParams.noExitBtn&&(urlParams.noExitBtn=C.noExitBtn);null!=C.title&&null!=this.buttonContainer&&this.setEmbedTitle(C.title);try{C.libs&&this.sidebar.showEntries(C.libs)}catch(ka){}if(null!=C.xmlpng)C=this.extractGraphModelFromPng(C.xmlpng);-else if(null!=C.descriptor){if(C=C.descriptor,"mermaid"==C.format){if(EditorUi.isMermaidSupported()){var ia=mxUtils.bind(this,function(ka){c(ka,K,null,U);ka=this.createLoadMessage("load");ka.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!0);ka.message=T;(this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify(ka),"*");if(null!=aa&&null!=aa.key&&null!=aa.value){ka=this.editor.graph;var ta=ka.getModel().getRoot();if(null!=ta){ka.getModel().beginUpdate();try{ka.setAttributeForCell(ta,-aa.key,aa.value)}finally{ka.getModel().endUpdate()}}}}),ja=mxUtils.bind(this,function(ka){this.handleError(ka)});C.image?this.parseMermaidImage(C.data,ia,ja):this.parseMermaidDiagram(C.data,null,mxUtils.bind(this,function(ka){C.wrap&&(ka=mxMermaidToDrawio.wrapGroup(ka,C.data,EditorUi.getInsertMermaidConfig(),{normalize:!0}));ia(ka)}),ja)}else this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"));return}}else C=C.xml}else{if("merge"==C.action){var oa=-this.getCurrentFile();null!=oa&&(fa=O(C.xml),null!=fa&&""!=fa&&oa.mergeFile(new LocalFile(this,fa),mxUtils.bind(this,function(){this.embedDiffSync&&(t=this.clonePages(this.pages),r=ha());B.postMessage(JSON.stringify({event:"merge",message:C}),"*")}),function(ka){B.postMessage(JSON.stringify({event:"merge",message:C,error:ka}),"*")}))}else if("patch"==C.action){if(oa=this.getCurrentFile(),null!=oa&&null!=C.patch)try{l=!0,oa.patch([C.patch]),this.embedDiffSync&&null!=t&&(t=this.applyPatches(t,[C.patch])),-r=ha(),l=!1,Y={event:"patch",message:C},W=this.getHashValueForPages(this.pages),Y.checksum=W,null!=C.checksum&&C.checksum!=W&&(Y.checksumMismatch=!0),B.postMessage(JSON.stringify(Y),"*")}catch(ka){l=!1,B.postMessage(JSON.stringify({event:"patch",message:C,error:ka.message||ka.toString()}),"*")}}else if("getDiff"==C.action){G={event:"getDiff",message:C};if(this.embedDiffSync&&null!=t){var Aa=this.clonePages(this.pages);G.patch=this.diffPages(t,Aa);G.checksum=this.getHashValueForPages(Aa)}else G.xml=-ha();B.postMessage(JSON.stringify(G),"*")}else"resetDiff"==C.action?this.embedDiffSync&&(null!=C.xml?(fa=O(C.xml),oa=this.getCurrentFile(),null!=fa&&""!=fa&&null!=oa&&oa.mergeFile(new LocalFile(this,fa),mxUtils.bind(this,function(){t=this.clonePages(this.pages);r=ha();B.postMessage(JSON.stringify({event:"resetDiff",message:C,checksum:this.getHashValueForPages(this.pages)}),"*")}),function(ka){B.postMessage(JSON.stringify({event:"resetDiff",message:C,error:ka}),"*")})):(t=this.clonePages(this.pages),-r=ha(),B.postMessage(JSON.stringify({event:"resetDiff",message:C,checksum:this.getHashValueForPages(this.pages)}),"*"))):"remoteInvokeReady"==C.action?this.handleRemoteInvokeReady(B):"remoteInvoke"==C.action?this.handleRemoteInvoke(C,K.origin):"remoteInvokeResponse"==C.action?this.handleRemoteInvokeResponse(C):B.postMessage(JSON.stringify({error:"unknownMessage",data:JSON.stringify(C)}),"*");return}}catch(ka){this.handleError(ka)}}var ha=mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=-this.pages&&1<this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())}),ma=mxUtils.bind(this,function(ka,ta){l=!0;try{c(ka,ta,null,U)}catch(Ca){this.handleError(Ca)}l=!1;this.editor.graph.model.prefix=Editor.guid()+"-";ta=mxUtils.bind(this,function(){null!=urlParams.modified&&this.clearStatus();r=ha();this.embedDiffSync&&(t=this.clonePages(this.pages));n&&null==g&&(g=mxUtils.bind(this,function(sa,Ea){sa=ha();if(sa!=r&&!l){Ea=this.createLoadMessage("autosave");Ea.message=T;-if(this.embedDiffSync&&null!=t){var Ga=this.clonePages(this.pages),La=this.diffPages(t,Ga);mxUtils.isEmptyObject(La)?Ea.xml=sa:(Ea.patch=La,Ea.checksum=this.getHashValueForPages(Ga),this.embedDiffSyncPatchOnly||(Ea.xml=sa));t=Ga}else Ea.xml=sa;(this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify(Ea),"*")}r=sa}),this.editor.graph.model.addListener(mxEvent.CHANGE,g),this.editor.graph.addListener("gridSizeChanged",g),this.editor.graph.addListener("shadowVisibleChanged",-g),this.addListener("pageFormatChanged",g),this.addListener("pageScaleChanged",g),this.addListener("backgroundColorChanged",g),this.addListener("backgroundImageChanged",g),this.addListener("foldingEnabledChanged",g),this.addListener("mathEnabledChanged",g),this.addListener("gridEnabledChanged",g),this.addListener("guidesEnabledChanged",g),this.addListener("tooltipsEnabledChanged",g),this.addListener("pageViewChanged",g),this.addListener("connectionPointsChanged",g),this.addListener("connectionArrowsChanged",-g));null!=R&&R();if("1"==urlParams.returnbounds||"json"==urlParams.proto){var Ca=this.createLoadMessage("load");Ca.xml=null!=M?ha():ka;this.embedDiffSync&&null!=this.pages&&(Ca.checksum=this.getHashValueForPages(this.pages));B.postMessage(JSON.stringify(Ca),"*")}});null!=M?this.executeLayoutSpec(M,ta):ta()});null!=C&&"function"===typeof C.substring&&"data:application/vnd.visio;base64,"==C.substring(0,34)?(O="0M8R4KGxGuE"==C.substring(34,45)?"raw.vsd":"raw.vsdx",this.importVisio(this.base64ToBlob(C.substring(C.indexOf(",")+-1)),function(ka){ma(ka,K)},mxUtils.bind(this,function(ka){this.handleError(ka)}),O)):null!=C&&"function"===typeof C.substring&&this.isGliffyData(C,"")?this.importGliffy(C,mxUtils.bind(this,function(ka){"<mxGraphModel"==ka.substring(0,13)?ma(ka,K):this.handleError({message:mxResources.get("unknownError")})}),mxUtils.bind(this,function(ka){this.handleError({message:null!=ka&&413==ka.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError")})}),""):null!=C&&"function"===typeof C.substring&&-this.isLucidChartData(C)?this.convertLucidChart(C,mxUtils.bind(this,function(ka){ma(ka)}),mxUtils.bind(this,function(ka){this.handleError(ka)})):null==C||"object"!==typeof C||null==C.format||null==C.data&&null==C.url?(C=O(C),ma(C,K)):this.loadDescriptor(C,mxUtils.bind(this,function(ka){ma(ha(),K)}),mxUtils.bind(this,function(ka){this.handleError(ka,mxResources.get("errorLoadingFile"))}))}}));var B=this.embedMessageSource||window.opener||window.parent;v="json"==urlParams.proto?JSON.stringify({event:"init"}):-urlParams.ready||"ready";B.postMessage(v,"*");if("json"==urlParams.proto){var E=this.editor.graph.openLink;this.editor.graph.openLink=function(K,C,R){E.apply(this,arguments);B.postMessage(JSON.stringify({event:"openLink",href:K,target:C,allowOpener:R}),"*")};Editor.suppressNewWindows&&document.addEventListener("click",mxUtils.bind(this,function(K){for(var C=mxEvent.getSource(K);null!=C&&"A"!=C.nodeName;)C=C.parentNode;if(null!=C){var R=C.getAttribute("href");null==R||"#"==R.charAt(0)||"javascript:"==-R.substring(0,11)||this.editor.graph.isCustomLink(R)||(K.preventDefault(),this.editor.graph.openLink(R,C.getAttribute("target")))}}),!0)}};EditorUi.prototype.createEmbedButton=function(c,g,l,n){var r=document.createElement("button");r.className="geEmbedBtn geBtn";r.setAttribute("title",c+(null!=l?" ("+l+")":""));mxUtils.write(r,c);n&&r.classList.add("gePrimaryBtn");mxEvent.addListener(r,"click",g);return r};EditorUi.prototype.setEmbedTitle=function(c){c=this.createStatusDiv(c);null!=this.embedFilenameSpan&&-this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan);"kennedy"==Editor.currentTheme||"atlas"==Editor.currentTheme?this.menubarContainer.appendChild(c):this.buttonContainer.appendChild(c);this.embedFilenameSpan=c};EditorUi.prototype.addEmbedButtons=function(){this.dependsOnLanguage(mxUtils.bind(this,function(){var c=null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode==this.buttonContainer;this.buttonContainer.innerText="";c&&this.buttonContainer.appendChild(this.embedFilenameSpan);+2*Ga,Ea=Math.ceil(Ea.height/I.view.scale)+2*Ga,Ga=null!=C.scale?C.scale:1,sa*Ea*Ga*Ga>this.maxCanvasExportArea&&(C.scale=Math.sqrt(this.maxCanvasExportArea/(sa*Ea))));this.editor.exportToCanvas(mxUtils.bind(this,function(La){S(La.toDataURL("image/png"))}),C.width,null,C.background,mxUtils.bind(this,function(){S(null)}),null,null,C.scale,C.transparent,C.shadow,null,I,C.border,null,C.grid,Ca,C.size)});null!=C.xml&&0<C.xml.length&&(l=!0,this.setFileData(X),l=!1);da()}else this.isRemoteExportEnabled()?+(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==C.format?"1":"0")+(null!=Z?"&pageId="+Z:"")+(null!=C.layerIds&&0<C.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:C.layerIds})):"")+(null!=C.scale?"&scale="+C.scale:"")+"&base64=1&xml="+encodeURIComponent(X))).send(mxUtils.bind(this,function(ka){200<=ka.getStatus()&&299>=ka.getStatus()?ca("data:image/png;base64,"+ka.getText()):S(null)}),mxUtils.bind(this,function(){S(null)})):S(null)}}else if(da=mxUtils.bind(this,+function(){var ka=this.createLoadMessage("export");ka.message=C;if("html2"==C.format||"html"==C.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var ta=this.getXmlFileData();ka.xml=mxUtils.getXml(ta);ka.data=this.getFileData(null,null,!0,null,null,null,ta);ka.format=C.format}else if("html"==C.format)ta=this.editor.getGraphXml(),ka.data=this.getHtml(ta,this.editor.graph),ka.xml=mxUtils.getXml(ta),ka.format=C.format;else{if("xml"==C.format)ka.xml=this.getFileData(!0),ka.format=+C.format,B.postMessage(JSON.stringify(ka),"*");else if("json"==C.format)ka.format=C.format,ka.data=this.createJsonForExport(0!=C.allPages,1==C.includeData,1==C.compressed,1==C.selection),B.postMessage(JSON.stringify(ka),"*");else{mxSvgCanvas2D.prototype.foAltText=null;var Ca=null!=C.background?C.background:this.editor.graph.background;Ca==mxConstants.NONE&&(Ca=null);ka.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);ka.format="svg";var sa=mxUtils.bind(this,function(Ha){this.editor.graph.setEnabled(!0);+this.spinner.stop();ka.data=C.asText?Ha:Editor.createSvgDataUri(Ha);B.postMessage(JSON.stringify(ka),"*")}),Ea="auto";C.keepTheme&&(Ea=Editor.isDarkMode()?"dark":"light");null!=C.theme&&(Ea=C.theme);if("xmlsvg"==C.format){if(null==C.spin&&null==C.spinKey||this.spinner.spin(document.body,null!=C.spinKey?mxResources.get(C.spinKey):C.spin)){Ea=null;if(this.isAutoDarkMode()||Editor.isDarkMode())Ea="auto";null!=C.theme&&(Ea=C.theme);this.getEmbeddedSvg(ka.xml,this.editor.graph,null,!0,sa,null,null,C.embedImages,+Ca,C.scale,C.border,C.shadow,Ea,C.embedCellMetadata,C.embedFonts)}}else if(null==C.spin&&null==C.spinKey||this.spinner.spin(document.body,null!=C.spinKey?mxResources.get(C.spinKey):C.spin)){this.editor.graph.setEnabled(!1);var Ga=this.editor.graph.createSvgImageExport(!1,C.embedCellMetadata?!0:!1);ta=Object.create(null);var La=this.getSvgWithFontLookup(ta,Ga,mxUtils.bind(this,function(){return this.editor.graph.getSvg(Ca,C.scale,C.border,null,null,null,null,Ga,null,this.editor.graph.shadowVisible||+C.shadow,null,Ea)}));(this.editor.graph.shadowVisible||C.shadow)&&this.editor.graph.addSvgShadow(La);this.embedFonts(La,mxUtils.bind(this,function(Ha){C.embedImages||null==C.embedImages?this.editor.convertImages(Ha,mxUtils.bind(this,function(Oa){sa(mxUtils.getXml(Oa))})):sa(mxUtils.getXml(Ha))}),C.embedFonts,ta)}}return}B.postMessage(JSON.stringify(ka),"*")}),null!=C.xml&&0<C.xml.length){if(this.editor.graph.mathEnabled){var N=Editor.onMathJaxDone;Editor.onMathJaxDone=function(){N.apply(this,arguments);+da()}}l=!0;this.setFileData(C.xml);l=!1;this.editor.graph.mathEnabled||da()}else da();return}if("load"==C.action){U=C.toSketch;n=1==C.autosave;this.embedDiffSync=null!=C.diffSync&&!1!==C.diffSync;this.embedDiffSyncPatchOnly="object"===typeof C.diffSync&&null!=C.diffSync&&1==C.diffSync.patchOnly;this.embedExportProtocol=1==C.exportProtocol;var aa=C.sourceMetadata||null;M=null!=C.layout?C.layout:null;this.hideDialog();null!=C.modified&&null==urlParams.modified&&(urlParams.modified=C.modified);null!=+C.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=C.saveAndExit);if("1"==urlParams.saveAndExit||"1"==urlParams.publishClose)if(this.actions.get("save").shortcut=null,!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(83,!0,"saveAndExit"),"1"!=urlParams.noSaveBtn&&(this.actions.get("save").shortcut=Editor.ctrlKey+"+"+Editor.shiftKey+"+S",this.keyHandler.bindAction(83,!0,"save",!0));null!=C.noSaveBtn&&null==urlParams.noSaveBtn&&(urlParams.noSaveBtn=C.noSaveBtn);+if(null!=C.rough){var ea=Editor.sketchMode;this.doSetSketchMode(C.rough);ea!=Editor.sketchMode&&this.fireEvent(new mxEventObject("sketchModeChanged"))}null!=C.dark&&this.setDarkMode(C.dark);null!=C.border&&(this.embedExportBorder=C.border);null!=C.theme&&(this.embedExportTheme=C.theme);null!=C.background&&(this.embedExportBackground=C.background);null!=C.viewport&&(this.embedViewport=C.viewport);this.embedExitPoint=null;if(null!=C.scale){var la=C.scale,ra=null!=C.scaleBorder?C.scaleBorder:this.embedExportBorder||+0,qa=null!=C.border?C.border:0;R=mxUtils.bind(this,function(){var ka=this.editor.graph,ta=ka.getGraphBounds();if(0<ta.width&&0<ta.height){var Ca=ka.view.scale;ka.view.scaleAndTranslate(la,ka.view.translate.x+qa-ta.x/Ca+ra/la,ka.view.translate.y+qa-ta.y/Ca+ra/la)}})}else if(null!=C.fit){var na=null!=C.border?C.border:0,xa=C.maxFitScale||1;R=mxUtils.bind(this,function(){var ka=this.editor.graph,ta=ka.maxFitScale;ka.maxFitScale=xa;ka.fit(na,null,null,null,null,!0);ka.maxFitScale=ta})}if(null!=C.scroll&&+null!=C.scroll.x&&null!=C.scroll.y){var wa=C.scroll,za=R;R=mxUtils.bind(this,function(){null!=za&&za();var ka=this.editor.graph,ta=ka.view.scale,Ca=ka.view.translate;mxUtils.hasScrollbars(ka.container)?(ka.container.scrollLeft=(Ca.x+wa.x)*ta,ka.container.scrollTop=(Ca.y+wa.y)*ta):ka.view.setTranslate(-wa.x,-wa.y)})}if(null!=C.rect){qa=this.embedExportBorder;this.diagramContainer.style.left=Math.max(60,C.rect.left)+"px";this.diagramContainer.style.top=Math.max(40,C.rect.top)+"px";this.minInlineWidth=+C.minWidth;this.minInlineHeight=C.minHeight;this.diagramContainer.style.border="2px solid #295fcc";this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";var Ba=C.maxFitScale,va=C.rect.width+2*qa,pa=C.rect.height+2*qa;R=mxUtils.bind(this,function(){var ka=mxUtils.getDocumentSize();va=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,va):va,ka.width-80);ka=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,pa):pa,ka.height-80);this.diagramContainer.style.width=+va+"px";this.diagramContainer.style.height=ka+"px";var ta=this.editor.graph;ka=ta.maxFitScale;ta.maxFitScale=Ba;ta.fit(2*qa,null,null,null,null,null,pa);this.setPageVisible("1"==urlParams.pv);if(null!=this.minInlineWidth&&ta.getGraphBounds().width<this.minInlineWidth){var Ca=ta.container.scrollTop;this.resetScrollbars();ta.container.scrollTop=Ca}ta.maxFitScale=ka;ta.container.scrollTop-=qa;ta.container.scrollLeft-=qa;window.setTimeout(mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("editInlineStart",+"data",[C]));ta.container.focus();null!=this.formatWindow&&null!=this.formatWindow.window&&this.formatWindow.window.isVisible()&&(this.formatWindow.window.div.style.top=ta.container.style.top);var sa=ta.getGraphBounds();ta.container.clientWidth>sa.width+2*qa&&(ta.container.scrollLeft=sa.x+(sa.width+qa-ta.container.clientWidth)/2)}),10)})}null!=C.noExitBtn&&null==urlParams.noExitBtn&&(urlParams.noExitBtn=C.noExitBtn);null!=C.title&&null!=this.buttonContainer&&this.setEmbedTitle(C.title);try{C.libs&&+this.sidebar.showEntries(C.libs)}catch(ka){}if(null!=C.xmlpng)C=this.extractGraphModelFromPng(C.xmlpng);else if(null!=C.descriptor){if(C=C.descriptor,"mermaid"==C.format){if(EditorUi.isMermaidSupported()){var ia=mxUtils.bind(this,function(ka){c(ka,K,null,U);ka=this.createLoadMessage("load");ka.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!0);ka.message=T;(this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify(ka),"*");if(null!=aa&&null!=aa.key&&null!=+aa.value){ka=this.editor.graph;var ta=ka.getModel().getRoot();if(null!=ta){ka.getModel().beginUpdate();try{ka.setAttributeForCell(ta,aa.key,aa.value)}finally{ka.getModel().endUpdate()}}}}),ja=mxUtils.bind(this,function(ka){this.handleError(ka)});C.image?this.parseMermaidImage(C.data,ia,ja):this.parseMermaidDiagram(C.data,null,mxUtils.bind(this,function(ka){C.wrap&&(ka=mxMermaidToDrawio.wrapGroup(ka,C.data,EditorUi.getInsertMermaidConfig(),{normalize:!0}));ia(ka)}),ja)}else this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},+mxResources.get("errorLoadingFile"));return}}else C=C.xml}else{if("merge"==C.action){var oa=this.getCurrentFile();null!=oa&&(fa=O(C.xml),null!=fa&&""!=fa&&oa.mergeFile(new LocalFile(this,fa),mxUtils.bind(this,function(){this.embedDiffSync&&(t=this.clonePages(this.pages),r=ha());B.postMessage(JSON.stringify({event:"merge",message:C}),"*")}),function(ka){B.postMessage(JSON.stringify({event:"merge",message:C,error:ka}),"*")}))}else if("patch"==C.action){if(oa=this.getCurrentFile(),null!=oa&&null!=C.patch)try{l=+!0,oa.patch([C.patch]),this.embedDiffSync&&null!=t&&(t=this.applyPatches(t,[C.patch])),r=ha(),l=!1,Y={event:"patch",message:C},W=this.getHashValueForPages(this.pages),Y.checksum=W,null!=C.checksum&&C.checksum!=W&&(Y.checksumMismatch=!0),B.postMessage(JSON.stringify(Y),"*")}catch(ka){l=!1,B.postMessage(JSON.stringify({event:"patch",message:C,error:ka.message||ka.toString()}),"*")}}else if("getDiff"==C.action){G={event:"getDiff",message:C};if(this.embedDiffSync&&null!=t){var Aa=this.clonePages(this.pages);+G.patch=this.diffPages(t,Aa);G.checksum=this.getHashValueForPages(Aa)}else G.xml=ha();B.postMessage(JSON.stringify(G),"*")}else"resetDiff"==C.action?this.embedDiffSync&&(null!=C.xml?(fa=O(C.xml),oa=this.getCurrentFile(),null!=fa&&""!=fa&&null!=oa&&oa.mergeFile(new LocalFile(this,fa),mxUtils.bind(this,function(){t=this.clonePages(this.pages);r=ha();B.postMessage(JSON.stringify({event:"resetDiff",message:C,checksum:this.getHashValueForPages(this.pages)}),"*")}),function(ka){B.postMessage(JSON.stringify({event:"resetDiff",+message:C,error:ka}),"*")})):(t=this.clonePages(this.pages),r=ha(),B.postMessage(JSON.stringify({event:"resetDiff",message:C,checksum:this.getHashValueForPages(this.pages)}),"*"))):"remoteInvokeReady"==C.action?this.handleRemoteInvokeReady(B):"remoteInvoke"==C.action?this.handleRemoteInvoke(C,K.origin):"remoteInvokeResponse"==C.action?this.handleRemoteInvokeResponse(C):B.postMessage(JSON.stringify({error:"unknownMessage",data:JSON.stringify(C)}),"*");return}}catch(ka){this.handleError(ka)}}var ha=+mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=this.pages&&1<this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())}),ma=mxUtils.bind(this,function(ka,ta){l=!0;try{c(ka,ta,null,U)}catch(Ca){this.handleError(Ca)}l=!1;this.editor.graph.model.prefix=Editor.guid()+"-";ta=mxUtils.bind(this,function(){null!=urlParams.modified&&this.clearStatus();r=ha();this.embedDiffSync&&(t=this.clonePages(this.pages));n&&null==f&&(f=mxUtils.bind(this,function(sa,Ea){sa=ha();if(sa!=+r&&!l){Ea=this.createLoadMessage("autosave");Ea.message=T;if(this.embedDiffSync&&null!=t){var Ga=this.clonePages(this.pages),La=this.diffPages(t,Ga);mxUtils.isEmptyObject(La)?Ea.xml=sa:(Ea.patch=La,Ea.checksum=this.getHashValueForPages(Ga),this.embedDiffSyncPatchOnly||(Ea.xml=sa));t=Ga}else Ea.xml=sa;(this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify(Ea),"*")}r=sa}),this.editor.graph.model.addListener(mxEvent.CHANGE,f),this.editor.graph.addListener("gridSizeChanged",+f),this.editor.graph.addListener("shadowVisibleChanged",f),this.addListener("pageFormatChanged",f),this.addListener("pageScaleChanged",f),this.addListener("backgroundColorChanged",f),this.addListener("backgroundImageChanged",f),this.addListener("foldingEnabledChanged",f),this.addListener("mathEnabledChanged",f),this.addListener("gridEnabledChanged",f),this.addListener("guidesEnabledChanged",f),this.addListener("tooltipsEnabledChanged",f),this.addListener("pageViewChanged",f),this.addListener("connectionPointsChanged",+f),this.addListener("connectionArrowsChanged",f));null!=R&&R();if("1"==urlParams.returnbounds||"json"==urlParams.proto){var Ca=this.createLoadMessage("load");Ca.xml=null!=M?ha():ka;this.embedDiffSync&&null!=this.pages&&(Ca.checksum=this.getHashValueForPages(this.pages));B.postMessage(JSON.stringify(Ca),"*")}});null!=M?this.executeLayoutSpec(M,ta):ta()});null!=C&&"function"===typeof C.substring&&"data:application/vnd.visio;base64,"==C.substring(0,34)?(O="0M8R4KGxGuE"==C.substring(34,45)?"raw.vsd":+"raw.vsdx",this.importVisio(this.base64ToBlob(C.substring(C.indexOf(",")+1)),function(ka){ma(ka,K)},mxUtils.bind(this,function(ka){this.handleError(ka)}),O)):null!=C&&"function"===typeof C.substring&&this.isGliffyData(C,"")?this.importGliffy(C,mxUtils.bind(this,function(ka){"<mxGraphModel"==ka.substring(0,13)?ma(ka,K):this.handleError({message:mxResources.get("unknownError")})}),mxUtils.bind(this,function(ka){this.handleError({message:null!=ka&&413==ka.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError")})}),+""):null!=C&&"function"===typeof C.substring&&this.isLucidChartData(C)?this.convertLucidChart(C,mxUtils.bind(this,function(ka){ma(ka)}),mxUtils.bind(this,function(ka){this.handleError(ka)})):null==C||"object"!==typeof C||null==C.format||null==C.data&&null==C.url?(C=O(C),ma(C,K)):this.loadDescriptor(C,mxUtils.bind(this,function(ka){ma(ha(),K)}),mxUtils.bind(this,function(ka){this.handleError(ka,mxResources.get("errorLoadingFile"))}))}}));var B=this.embedMessageSource||window.opener||window.parent;+v="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||"ready";B.postMessage(v,"*");if("json"==urlParams.proto){var E=this.editor.graph.openLink;this.editor.graph.openLink=function(K,C,R){E.apply(this,arguments);B.postMessage(JSON.stringify({event:"openLink",href:K,target:C,allowOpener:R}),"*")};Editor.suppressNewWindows&&document.addEventListener("click",mxUtils.bind(this,function(K){for(var C=mxEvent.getSource(K);null!=C&&"A"!=C.nodeName;)C=C.parentNode;if(null!=C){var R=C.getAttribute("href");+null==R||"#"==R.charAt(0)||"javascript:"==R.substring(0,11)||this.editor.graph.isCustomLink(R)||(K.preventDefault(),this.editor.graph.openLink(R,C.getAttribute("target")))}}),!0)}};EditorUi.prototype.createEmbedButton=function(c,f,l,n){var r=document.createElement("button");r.className="geEmbedBtn geBtn";r.setAttribute("title",c+(null!=l?" ("+l+")":""));mxUtils.write(r,c);n&&r.classList.add("gePrimaryBtn");mxEvent.addListener(r,"click",f);return r};EditorUi.prototype.setEmbedTitle=function(c){c=this.createStatusDiv(c);+null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan);"kennedy"==Editor.currentTheme||"atlas"==Editor.currentTheme?this.menubarContainer.appendChild(c):this.buttonContainer.appendChild(c);this.embedFilenameSpan=c};EditorUi.prototype.addEmbedButtons=function(){this.dependsOnLanguage(mxUtils.bind(this,function(){var c=null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode==this.buttonContainer;this.buttonContainer.innerText="";c&&this.buttonContainer.appendChild(this.embedFilenameSpan);this.commentsSupported()&&null!=this.commentButton&&this.buttonContainer.appendChild(this.commentButton);"1"==urlParams.noSaveBtn?"0"!=urlParams.saveAndExit&&this.buttonContainer.appendChild(this.createEmbedButton("1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit"),this.actions.get("saveAndExit").funct,Editor.ctrlKey+"+S",!0)):(this.buttonContainer.appendChild(this.createEmbedButton(mxResources.get("save"),mxUtils.bind(this,function(){this.actions.get("save").funct(!1)}),"1"==urlParams.saveAndExit?Editor.ctrlKey+"+"+Editor.shiftKey+"+S":Editor.ctrlKey+"+S",!0)),"1"==urlParams.saveAndExit&&this.buttonContainer.appendChild(this.createEmbedButton(mxResources.get("saveAndExit"),this.actions.get("saveAndExit").funct,Editor.ctrlKey+"+S")));"1"!=urlParams.noExitBtn&&this.buttonContainer.appendChild(this.createEmbedButton("1"==urlParams.publishClose?mxResources.get("close"):mxResources.get("exit"),this.actions.get("exit").funct))}))};EditorUi.prototype.showImportCsvDialog=-function(){null==this.importCsvDialog&&(this.importCsvDialog=new SimpleTextareaDialog(this,Editor.defaultCsvValue,mxUtils.bind(this,function(c){this.importCsv(c)}),mxResources.get("import"),"https://www.drawio.com/blog/insert-from-csv"));this.showDialog(this.importCsvDialog.container,640,520,!0,!0,null,null,null,new mxRectangle(0,0,320,280));this.importCsvDialog.init()};EditorUi.prototype.showCustomLayoutDialog=function(c){this.loadOrgChartLayouts(mxUtils.bind(this,function(){var g=new TextareaDialog(this,+function(){null==this.importCsvDialog&&(this.importCsvDialog=new SimpleTextareaDialog(this,Editor.defaultCsvValue,mxUtils.bind(this,function(c){this.importCsv(c)}),mxResources.get("import"),"https://www.drawio.com/blog/insert-from-csv"));this.showDialog(this.importCsvDialog.container,640,520,!0,!0,null,null,null,new mxRectangle(0,0,320,280));this.importCsvDialog.init()};EditorUi.prototype.showCustomLayoutDialog=function(c){this.loadOrgChartLayouts(mxUtils.bind(this,function(){var f=new TextareaDialog(this,mxResources.get("layout"),c,mxUtils.bind(this,function(l){if(0<l.length)try{var n=JSON.parse(l),r=this.getSelectedLayoutContainer();null!=r&&Array.isArray(n)&&0<n.length?this.setContainerChildLayout(r,n):this.executeLayouts(this.editor.graph.createLayouts(n));this.lastLayoutSpec=this.customLayoutConfig=n;this.hideDialog()}catch(t){this.handleError(t)}}),null,null,null,null,mxUtils.bind(this,function(l,n){var r=this.createLayoutAddSelect(n);l.appendChild(r);r=mxUtils.button(mxResources.get("copy"),-mxUtils.bind(this,function(){try{var t=n.value;n.value=JSON.stringify(JSON.parse(t));n.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?n.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");this.alert(mxResources.get("copiedToClipboard"));n.value=t}catch(v){this.handleError(v)}}));r.setAttribute("title","copy");r.className="geBtn";l.appendChild(r)}),!0,null,null,EditorUi.APPLY_LAYOUTS_SPEC_URL);this.showDialog(g.container,620,460,!0,!0,null,null,null,new mxRectangle(0,-0,440,280));g.init()}))};EditorUi.APPLY_LAYOUTS_SPEC_URL="https://www.drawio.com/docs/reference/json-layout-specification/";EditorUi.prototype.scopeLayoutsToCells=function(c,g){for(var l={},n=0;n<g.length;n++)null!=g[n]&&(l[g[n].id]=!0);var r=function(t){return null!=t&&!0===l[t.id]};for(n=0;n<c.length;n++)g=c[n],"undefined"!==typeof ElkLayout&&g instanceof ElkLayout||void 0!==g.cellFilter?g.cellFilter=r:"function"===typeof g.isVertexIgnored&&function(t){var v=t.isVertexIgnored;t.isVertexIgnored=-function(B){return v.apply(this,arguments)||!r(B)}}(g)};EditorUi.prototype.createLayoutAddSelect=function(c){var g=this,l=document.createElement("select");l.className="geBtn";l.style.marginRight="8px";l.style.maxWidth="180px";var n=document.createElement("option");n.value="";mxUtils.write(n,mxResources.get("add")+"...");n.disabled=!0;n.selected=!0;l.appendChild(n);var r=[];"undefined"!==typeof ElkLayout&&(n=function(v,B){var E=ElkLayout.MENU_PRESETS[v];return{label:v,kind:"elk",algo:E.algorithm,preset:E.options,+mxUtils.bind(this,function(){try{var t=n.value;n.value=JSON.stringify(JSON.parse(t));n.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?n.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");this.alert(mxResources.get("copiedToClipboard"));n.value=t}catch(v){this.handleError(v)}}));r.setAttribute("title","copy");r.className="geBtn";l.appendChild(r)}),!0,null,null,EditorUi.APPLY_LAYOUTS_SPEC_URL);this.showDialog(f.container,620,460,!0,!0,null,null,null,new mxRectangle(0,+0,440,280));f.init()}))};EditorUi.APPLY_LAYOUTS_SPEC_URL="https://www.drawio.com/docs/reference/json-layout-specification/";EditorUi.prototype.scopeLayoutsToCells=function(c,f){for(var l={},n=0;n<f.length;n++)null!=f[n]&&(l[f[n].id]=!0);var r=function(t){return null!=t&&!0===l[t.id]};for(n=0;n<c.length;n++)f=c[n],"undefined"!==typeof ElkLayout&&f instanceof ElkLayout||void 0!==f.cellFilter?f.cellFilter=r:"function"===typeof f.isVertexIgnored&&function(t){var v=t.isVertexIgnored;t.isVertexIgnored=+function(B){return v.apply(this,arguments)||!r(B)}}(f)};EditorUi.prototype.createLayoutAddSelect=function(c){var f=this,l=document.createElement("select");l.className="geBtn";l.style.marginRight="8px";l.style.maxWidth="180px";var n=document.createElement("option");n.value="";mxUtils.write(n,mxResources.get("add")+"...");n.disabled=!0;n.selected=!0;l.appendChild(n);var r=[];"undefined"!==typeof ElkLayout&&(n=function(v,B){var E=ElkLayout.MENU_PRESETS[v];return{label:v,kind:"elk",algo:E.algorithm,preset:E.options,layoutName:B}},r.push(n("verticalFlow","elkLayered")),r.push(n("horizontalFlow","elkLayered")),r.push(n("verticalTree","elkTree")),r.push(n("horizontalTree","elkTree")),r.push(n("radialTree","elkRadial")),r.push(n("organic","elkOrganic")));r.push({label:"orgChart",kind:"orgchart"});r.push({label:"circle",kind:"simple",layoutName:"mxCircleLayout",config:{}});r.push({label:"parallels",kind:"simple",layoutName:"mxParallelEdgeLayout",config:{spacing:20,checkOverlap:!0}});"undefined"!==typeof LibavoidRouting&&r.push({label:"orthogonalRouting",kind:"simple",layoutName:LibavoidRouting.LAYOUT_NAME,config:{}});for(n=0;n<r.length;n++){var t=document.createElement("option");t.value=String(n);mxUtils.write(t,mxResources.get(r[n].label)+("elk"===r[n].kind||"orgchart"===r[n].kind?"...":""));l.appendChild(t)}mxEvent.addListener(l,"change",mxUtils.bind(this,function(){var v=parseInt(l.value);l.selectedIndex=0;if(!(isNaN(v)||0>v||v>=r.length)){var B=r[v],E=c.value;if(0===mxUtils.trim(E).length)var K=[];else{try{K=-JSON.parse(E)}catch(R){g.handleError(R);return}if(!Array.isArray(K)){g.handleError(Error(mxResources.get("error")+": expected JSON array"));return}}var C=mxUtils.bind(this,function(R){K.push(R);g.hideDialog();g.showCustomLayoutDialog(JSON.stringify(K,null,2))});v=mxUtils.bind(this,function(){g.hideDialog();g.showCustomLayoutDialog(E)});"elk"===B.kind?(g.hideDialog(),ElkLayout.runWithDialog(g,B.algo,B.preset,mxResources.get(B.label),function(R,M){R=Graph.elkOptionsToConfig(R,M);C({layout:B.layoutName,-config:R})},v)):"orgchart"===B.kind?(g.hideDialog(),g.showOrgChartConfigDialog(C,v)):C({layout:B.layoutName,config:B.config||{}})}}));return l};EditorUi.prototype.showOrgChartConfigDialog=function(c,g){var l=2,n=20,r=20,t=document.createElement("div"),v=function(O,U){var T=document.createElement("div");T.style.marginTop="6px";T.style.display="inline-block";T.style.width="180px";mxUtils.write(T,mxResources.get(O)+": ");t.appendChild(T);t.appendChild(U)},B=document.createElement("select");B.style.width=+JSON.parse(E)}catch(R){f.handleError(R);return}if(!Array.isArray(K)){f.handleError(Error(mxResources.get("error")+": expected JSON array"));return}}var C=mxUtils.bind(this,function(R){K.push(R);f.hideDialog();f.showCustomLayoutDialog(JSON.stringify(K,null,2))});v=mxUtils.bind(this,function(){f.hideDialog();f.showCustomLayoutDialog(E)});"elk"===B.kind?(f.hideDialog(),ElkLayout.runWithDialog(f,B.algo,B.preset,mxResources.get(B.label),function(R,M){R=Graph.elkOptionsToConfig(R,M);C({layout:B.layoutName,+config:R})},v)):"orgchart"===B.kind?(f.hideDialog(),f.showOrgChartConfigDialog(C,v)):C({layout:B.layoutName,config:B.config||{}})}}));return l};EditorUi.prototype.showOrgChartConfigDialog=function(c,f){var l=2,n=20,r=20,t=document.createElement("div"),v=function(O,U){var T=document.createElement("div");T.style.marginTop="6px";T.style.display="inline-block";T.style.width="180px";mxUtils.write(T,mxResources.get(O)+": ");t.appendChild(T);t.appendChild(U)},B=document.createElement("select");B.style.width="160px";B.style.boxSizing="border-box";for(var E=[mxResources.get("linear"),mxResources.get("hanger2"),mxResources.get("hanger4"),mxResources.get("fishbone1"),mxResources.get("fishbone2"),mxResources.get("1ColumnLeft"),mxResources.get("1ColumnRight"),mxResources.get("smart")],K=0;K<E.length;K++){var C=document.createElement("option");mxUtils.write(C,E[K]);C.value=K;2===K&&C.setAttribute("selected","selected");B.appendChild(C)}mxEvent.addListener(B,"change",function(){l=parseInt(B.value)});v("orgChartType",-B);var R=document.createElement("input");R.type="number";R.value=n;R.style.width="160px";R.style.boxSizing="border-box";mxEvent.addListener(R,"change",function(){n=parseInt(R.value)});v("parentChildSpacing",R);var M=document.createElement("input");M.type="number";M.value=r;M.style.width="160px";M.style.boxSizing="border-box";mxEvent.addListener(M,"change",function(){r=parseInt(M.value)});v("siblingSpacing",M);g=new CustomDialog(this,t,function(){c({layout:"mxOrgChartLayout",config:{branchOptimizer:l,-parentChildSpacing:n,siblingSpacing:r}})},g||null,mxResources.get("apply"),"https://www.drawio.com/docs/manual/layouts/org-chart-layout/");this.showDialog(g.container,355,null,!0,!0)};EditorUi.prototype.loadOrgChartLayouts=function(c,g){this.createTimeout(null,mxUtils.bind(this,function(l){var n=mxUtils.bind(this,function(){this.loadingOrgChart=!1;l.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),this.spinner.stop(),c())}),r=mxUtils.bind(this,function(t){this.loadingOrgChart=!1;l.clear()&&this.handleError(t)});-if("undefined"!==typeof mxOrgChartLayout||this.loadingOrgChart||this.isOffline(!0))n();else if(g||this.spinner.spin(document.body,mxResources.get("loading")))this.loadingOrgChart=!0,"1"==urlParams.dev?mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",n,null,null,null,r)},null,null,null,r)},null,null,null,r)},null,null,null,r):mxscript(window.DRAWIO_SERVER_URL+-"js/orgchart.min.js",n,null,null,null,r)}),onerror)};EditorUi.prototype.importCsv=function(c,g,l,n){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c,g,l)}),n)};EditorUi.prototype.doImportCsv=function(c,g,l){try{var n=c.split("\n"),r=[],t=[],v=[],B=Object.create(null);if(0<n.length){var E=Object.create(null);l=null!=l?l:this.editor.graph;var K=null,C=null,R=null,M=null,O=null,U=null,T=null,V="whiteSpace=wrap;html=1;",fa=null,y=null,d="",p="auto",A="auto",G=!1,I=null,L=null,-P=40,Q=40,ba=100,W=0,Y=mxUtils.bind(this,function(){null!=g?g(Ea):(l.setSelectionCells(Ea),l.scrollCellToVisible(l.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),0)}),X=l.getFreeInsertPoint(!0),ca=X.x,S=X.y;X=S;var Z=null,da="auto";y=null;for(var N=[],aa=null,ea=null,la=0;la<n.length&&"#"==n[la].charAt(0);){c=n[la].replace(/\r$/,"");for(la++;la<n.length&&"\\"==c.charAt(c.length-1)&&"#"==n[la].charAt(0);)c=c.substring(0,+B);var R=document.createElement("input");R.type="number";R.value=n;R.style.width="160px";R.style.boxSizing="border-box";mxEvent.addListener(R,"change",function(){n=parseInt(R.value)});v("parentChildSpacing",R);var M=document.createElement("input");M.type="number";M.value=r;M.style.width="160px";M.style.boxSizing="border-box";mxEvent.addListener(M,"change",function(){r=parseInt(M.value)});v("siblingSpacing",M);f=new CustomDialog(this,t,function(){c({layout:"mxOrgChartLayout",config:{branchOptimizer:l,+parentChildSpacing:n,siblingSpacing:r}})},f||null,mxResources.get("apply"),"https://www.drawio.com/docs/manual/layouts/org-chart-layout/");this.showDialog(f.container,355,null,!0,!0)};EditorUi.prototype.loadOrgChartLayouts=function(c,f){this.createTimeout(null,mxUtils.bind(this,function(l){var n=mxUtils.bind(this,function(){this.loadingOrgChart=!1;l.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),this.spinner.stop(),c())}),r=mxUtils.bind(this,function(t){this.loadingOrgChart=!1;l.clear()&&this.handleError(t)});+if("undefined"!==typeof mxOrgChartLayout||this.loadingOrgChart||this.isOffline(!0))n();else if(f||this.spinner.spin(document.body,mxResources.get("loading")))this.loadingOrgChart=!0,"1"==urlParams.dev?mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",n,null,null,null,r)},null,null,null,r)},null,null,null,r)},null,null,null,r):mxscript(window.DRAWIO_SERVER_URL++"js/orgchart.min.js",n,null,null,null,r)}),onerror)};EditorUi.prototype.importCsv=function(c,f,l,n){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c,f,l)}),n)};EditorUi.prototype.doImportCsv=function(c,f,l){try{var n=c.split("\n"),r=[],t=[],v=[],B=Object.create(null);if(0<n.length){var E=Object.create(null);l=null!=l?l:this.editor.graph;var K=null,C=null,R=null,M=null,O=null,U=null,T=null,V="whiteSpace=wrap;html=1;",fa=null,y=null,d="",p="auto",A="auto",G=!1,I=null,L=null,+P=40,Q=40,ba=100,W=0,Y=mxUtils.bind(this,function(){null!=f?f(Ea):(l.setSelectionCells(Ea),l.scrollCellToVisible(l.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),0)}),X=l.getFreeInsertPoint(!0),ca=X.x,S=X.y;X=S;var Z=null,da="auto";y=null;for(var N=[],aa=null,ea=null,la=0;la<n.length&&"#"==n[la].charAt(0);){c=n[la].replace(/\r$/,"");for(la++;la<n.length&&"\\"==c.charAt(c.length-1)&&"#"==n[la].charAt(0);)c=c.substring(0,c.length-1)+mxUtils.trim(n[la].substring(1)),la++;if("#"!=c.charAt(1)){var ra=c.indexOf(":");if(0<ra){var qa=mxUtils.trim(c.substring(1,ra)),na=mxUtils.trim(c.substring(ra+1));"label"==qa?Z=Graph.sanitizeHtml(na):"labelname"==qa&&0<na.length&&"-"!=na?O=na:"labels"==qa&&0<na.length&&"-"!=na?T=JSON.parse(na):"style"==qa?C=na:"parentstyle"==qa?V=na:"unknownStyle"==qa&&"-"!=na?U=na:"stylename"==qa&&0<na.length&&"-"!=na?M=na:"styles"==qa&&0<na.length&&"-"!=na?R=JSON.parse(na):"vars"==qa&&0<na.length&&"-"!=na?K=JSON.parse(na):"identity"==qa&&0<na.length&&"-"!=na?fa=na:"parent"==qa&&0<na.length&&"-"!=na?y=na:"namespace"==qa&&0<na.length&&"-"!=na?d=na:"width"==qa?p=na:"height"==qa?A=na:"collapsed"==qa&&"-"!=na?G="true"==na:"left"==qa&&0<na.length?I=na:"top"==qa&&0<na.length?L=na:"ignore"==qa?ea=na.split(","):"connect"==qa?N.push(JSON.parse(na)):"link"==qa?aa=na:"padding"==qa?W=parseFloat(na):"edgespacing"==qa?P=parseFloat(na):"nodespacing"==qa?Q=parseFloat(na):"levelspacing"==qa?ba=parseFloat(na):"layout"==qa&&(da=na)}}}if(null==n[la])throw Error(mxResources.get("invalidOrMissingFile"));var xa=this.editor.csvToArray(n[la].replace(/\r$/,""));ra=c=null;qa=[];for(na=0;na<xa.length;na++)fa==xa[na]&&(c=na),y==xa[na]&&(ra=na),qa.push(mxUtils.trim(xa[na]).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,""));null==Z&&(Z="%"+qa[0]+"%");if(null!=N)for(var wa=0;wa<N.length;wa++)null==E[N[wa].to]&&(E[N[wa].to]=Object.create(null));fa=[];for(na=la+1;na<n.length;na++){var za=this.editor.csvToArray(n[na].replace(/\r$/,@@ -14689,77 +14777,78 @@ if(null!=nb){var ab=Y;l.view.validate();var tb=l.createLayouts(nb);this.scopeLayvar gb=new mxCompactTreeLayout(l,"horizontaltree"==da);gb.levelDistance=Q;gb.edgeRouting=!1;gb.resetEdges=!1;gb.sortEdges=!0;var rb=gb.isVertexIgnored;gb.isVertexIgnored=function(eb){return rb.apply(this,arguments)||0>mxUtils.indexOf(v,eb)};this.executeLayout(function(){gb.execute(l.getDefaultParent(),0<sa.length?sa[0]:null)},!0,Y);Y=null}else if("orgchart"==da){l.view.validate();var Sa=new mxOrgChartLayout(l,2,ba,Q),Ua=Sa.isVertexIgnored;Sa.isVertexIgnored=function(eb){return Ua.apply(this,arguments)||0>mxUtils.indexOf(v,eb)};this.executeLayout(function(){Sa.execute(l.getDefaultParent());Oa()},!0,Y);Y=null}else if("organic"==da||"auto"==da&&Ea.length>v.length){l.view.validate();var vb=new mxFastOrganicLayout(l);vb.forceConstant=3*Q;vb.disableEdgeStyle=!1;vb.resetEdges=!1;var jb=vb.isVertexIgnored;vb.isVertexIgnored=function(eb){return jb.apply(this,arguments)||0>mxUtils.indexOf(v,eb)};this.executeLayout(function(){vb.execute(l.getDefaultParent());Oa()},!0,Y);Y=null}else if(null!=EditorUi.CSV_ELK_LAYOUTS[da]){l.view.validate();ab=Y;var qb=EditorUi.CSV_ELK_LAYOUTS[da],kb=mxUtils.clone(qb.config);kb["elk.spacing.nodeNode"]=Q;kb["elk.layered.spacing.nodeNodeBetweenLayers"]=ba;kb["elk.spacing.edgeEdge"]=P;kb["elk.layered.spacing.edgeEdgeBetweenLayers"]=P;var Za=l.createLayouts([{layout:qb.layout,config:kb}]);this.scopeLayoutsToCells(Za,Ea);l.model.beginUpdate();var Hb=!1,Db=function(){Hb||(Hb=!0,l.model.endUpdate())},Cb=this;try{Za[0].prepare(l.getDefaultParent(),function(eb,db){null!=eb?(Db(),Cb.handleError(eb)):Cb.executeLayout(function(){db();-var Wa=l.getBoundingBoxFromGeometry(Ea);null!=Wa&&l.moveCells(Ea,ca-Wa.x,S-Wa.y)},!0,function(){Db();ab()})})}catch(eb){throw Db(),eb;}Y=null}}this.hideDialog()}finally{l.model.endUpdate()}null!=Y&&Y()}}catch(eb){this.handleError(eb)}};EditorUi.prototype.getSearch=function(c){var g="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=c&&0<window.location.search.length){var l="?",n;for(n in urlParams)0>mxUtils.indexOf(c,n)&&null!=urlParams[n]&&(g+=l+n+"="+urlParams[n],l="&")}else g=window.location.search;-return g};EditorUi.prototype.getUrl=function(c){c=null!=c?c:window.location.pathname;var g=0<c.indexOf("?")?1:0;if("1"==urlParams.offline)c+=window.location.search;else{var l="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),n;for(n in urlParams)0>mxUtils.indexOf(l,n)&&(c=0==g?c+"?":c+"&",null!=urlParams[n]&&(c+=n+"="+urlParams[n],g++))}return c};EditorUi.prototype.showLinkDialog=function(c,g,l,n,r){c=new LinkDialog(this,c,g,l,!0,n,r);this.showDialog(c.container,-440,null,!0,!0);c.init()};EditorUi.prototype.getServiceCount=function(c){var g=1;null==this.drive&&"function"!==typeof window.DriveClient||g++;null==this.dropbox&&"function"!==typeof window.DropboxClient||g++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient||g++;null!=this.m365&&g++;null!=this.gitHub&&g++;null!=this.gitLab&&g++;c&&isLocalStorage&&"1"==urlParams.browser&&g++;return g};EditorUi.prototype.updateUi=function(){this.updateButtonContainer();this.updateActionStates();var c=-this.getCurrentFile(),g=null!=c||"1"==urlParams.embed&&this.editor.graph.isEnabled();this.menus.get("viewPanels").setEnabled(g);this.menus.get("viewZoom").setEnabled(g);var l=("1"!=urlParams.embed||"1"==urlParams.embedRT||!this.editor.graph.isEnabled())&&(null==c||c.isRestricted());this.actions.get("makeCopy").setEnabled(!l);this.actions.get("print").setEnabled(!l);this.menus.get("exportAs").setEnabled(!l);this.menus.get("embed").setEnabled(!l);l="1"!=urlParams.embed||this.editor.graph.isEnabled();-this.menus.get("extras").setEnabled(l);Editor.enableCustomLibraries&&(this.menus.get("openLibraryFrom").setEnabled(l),this.menus.get("newLibrary").setEnabled(l));c="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=c&&c.isEditable();this.actions.get("image").setEnabled(g);this.actions.get("zoomIn").setEnabled(g);this.actions.get("zoomOut").setEnabled(g);this.actions.get("smartFit").setEnabled(g);this.actions.get("resetView").setEnabled(g);this.menus.get("edit").setEnabled(g);this.menus.get("view").setEnabled(g);+var Wa=l.getBoundingBoxFromGeometry(Ea);null!=Wa&&l.moveCells(Ea,ca-Wa.x,S-Wa.y)},!0,function(){Db();ab()})})}catch(eb){throw Db(),eb;}Y=null}}this.hideDialog()}finally{l.model.endUpdate()}null!=Y&&Y()}}catch(eb){this.handleError(eb)}};EditorUi.prototype.getSearch=function(c){var f="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=c&&0<window.location.search.length){var l="?",n;for(n in urlParams)0>mxUtils.indexOf(c,n)&&null!=urlParams[n]&&(f+=l+n+"="+urlParams[n],l="&")}else f=window.location.search;+return f};EditorUi.prototype.getUrl=function(c){c=null!=c?c:window.location.pathname;var f=0<c.indexOf("?")?1:0;if("1"==urlParams.offline)c+=window.location.search;else{var l="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),n;for(n in urlParams)0>mxUtils.indexOf(l,n)&&(c=0==f?c+"?":c+"&",null!=urlParams[n]&&(c+=n+"="+urlParams[n],f++))}return c};EditorUi.prototype.showLinkDialog=function(c,f,l,n,r){c=new LinkDialog(this,c,f,l,!0,n,r);this.showDialog(c.container,+440,null,!0,!0);c.init()};EditorUi.prototype.getServiceCount=function(c){var f=1;null==this.drive&&"function"!==typeof window.DriveClient||f++;null==this.dropbox&&"function"!==typeof window.DropboxClient||f++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient||f++;null!=this.m365&&f++;null!=this.gitHub&&f++;null!=this.gitLab&&f++;c&&isLocalStorage&&"1"==urlParams.browser&&f++;return f};EditorUi.prototype.updateUi=function(){this.updateButtonContainer();this.updateActionStates();var c=+this.getCurrentFile(),f=null!=c||"1"==urlParams.embed&&this.editor.graph.isEnabled();this.menus.get("viewPanels").setEnabled(f);this.menus.get("viewZoom").setEnabled(f);var l=("1"!=urlParams.embed||"1"==urlParams.embedRT||!this.editor.graph.isEnabled())&&(null==c||c.isRestricted());this.actions.get("makeCopy").setEnabled(!l);this.actions.get("print").setEnabled(!l);this.menus.get("exportAs").setEnabled(!l);this.menus.get("embed").setEnabled(!l);l="1"!=urlParams.embed||this.editor.graph.isEnabled();+this.menus.get("extras").setEnabled(l);Editor.enableCustomLibraries&&(this.menus.get("openLibraryFrom").setEnabled(l),this.menus.get("newLibrary").setEnabled(l));c="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=c&&c.isEditable();this.actions.get("image").setEnabled(f);this.actions.get("zoomIn").setEnabled(f);this.actions.get("zoomOut").setEnabled(f);this.actions.get("smartFit").setEnabled(f);this.actions.get("resetView").setEnabled(f);this.menus.get("edit").setEnabled(f);this.menus.get("view").setEnabled(f);this.menus.get("importFrom").setEnabled(c);this.menus.get("arrange").setEnabled(c);this.menus.get("edgeShape").setEnabled(c);this.menus.get("edgeStyle").setEnabled(c);this.menus.get("appearance").setEnabled(mxUtils.lightDarkColorSupported)};EditorUi.prototype.updateButtonContainer=function(){};EditorUi.prototype.scheduleSanityCheck=function(){};EditorUi.prototype.stopSanityCheck=function(){};EditorUi.prototype.isDiagramActive=function(){var c=this.getCurrentFile();return null!=c&&c.isEditable()||-"1"==urlParams.embed&&this.editor.graph.isEnabled()};EditorUi.prototype.restoreOpenLibraries=function(){var c=this.openLibraries;this.openLibraries=null;if(null!=c)for(var g=0;g<c.length;g++)this.libraryLoaded(c[g].file,c[g].images,c[g].title,null!=c[g].div?"none"!=c[g].div.style.display:c[g].expand)};var H=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){H.apply(this,arguments);var c=this.editor.graph,g=this.getCurrentFile(),l=this.getSelectionState(),n=this.isDiagramActive(),-r="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=g&&g.isEditable();this.actions.get("undo").setEnabled(this.canUndo()&&r);this.actions.get("redo").setEnabled(this.canRedo()&&r);this.actions.get("autosave").setEnabled(null!=g&&g.isEditable()&&g.isAutosaveOptional());this.actions.get("guides").setEnabled(n);this.actions.get("editData").setEnabled(c.isEnabled());this.actions.get("explore").setEnabled(n&&(1==l.edges.length||1==l.vertices.length));this.actions.get("editConnectionPoints").setEnabled(n&&+"1"==urlParams.embed&&this.editor.graph.isEnabled()};EditorUi.prototype.restoreOpenLibraries=function(){var c=this.openLibraries;this.openLibraries=null;if(null!=c)for(var f=0;f<c.length;f++)this.libraryLoaded(c[f].file,c[f].images,c[f].title,null!=c[f].div?"none"!=c[f].div.style.display:c[f].expand)};var H=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){H.apply(this,arguments);var c=this.editor.graph,f=this.getCurrentFile(),l=this.getSelectionState(),n=this.isDiagramActive(),+r="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=f&&f.isEditable();this.actions.get("undo").setEnabled(this.canUndo()&&r);this.actions.get("redo").setEnabled(this.canRedo()&&r);this.actions.get("autosave").setEnabled(null!=f&&f.isEditable()&&f.isAutosaveOptional());this.actions.get("guides").setEnabled(n);this.actions.get("editData").setEnabled(c.isEnabled());this.actions.get("explore").setEnabled(n&&(1==l.edges.length||1==l.vertices.length));this.actions.get("editConnectionPoints").setEnabled(n&&0==l.edges.length&&1==l.vertices.length);this.actions.get("editPolygon").setEnabled(n&&1==l.vertices.length&&"mxgraph.basic.polygon"==l.style[mxConstants.STYLE_SHAPE]);this.actions.get("editImage").setEnabled(n&&l.image&&0<l.cells.length);this.actions.get("crop").setEnabled(n&&l.image&&0<l.cells.length);this.actions.get("pageSetup").setEnabled(n);this.actions.get("shadowVisible").setEnabled(n);this.actions.get("connectionArrows").setEnabled(n);this.actions.get("connectionPoints").setEnabled(n);this.actions.get("copyStyle").setEnabled(n&&!c.isSelectionEmpty());this.actions.get("pasteStyle").setEnabled(null!=this.copiedStyle&&n&&0<l.cells.length);this.actions.get("copyTextStyle").setEnabled(n&&!c.isSelectionEmpty());this.actions.get("pasteTextStyle").setEnabled(null!=this.copiedTextStyle&&n&&0<l.cells.length);this.actions.get("editGeometry").setEnabled(0<l.vertices.length&&!l.transparentBounds);this.actions.get("addToScratchpad").setEnabled(0<l.cells.length);this.actions.get("createShape").setEnabled(n);this.actions.get("createRevision").setEnabled(n);-this.actions.get("moveToFolder").setEnabled(null!=g);this.actions.get("makeCopy").setEnabled(null!=g&&!g.isRestricted());this.actions.get("editDiagram").setEnabled(n&&(null==g||!g.isRestricted()));this.actions.get("publishLink").setEnabled(null!=g&&!g.isRestricted());this.actions.get("removeFormat").setEnabled(c.isEnabled()&&!c.isSelectionEmpty()&&!c.isEditing());this.actions.get("tags").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("layers").setEnabled("none"!=this.diagramContainer.style.display);-this.actions.get("outline").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("rename").setEnabled(null!=g&&g.isRenamable()||"1"==urlParams.embed);this.actions.get("close").setEnabled(null!=g);this.actions.get("properties").setEnabled(null!=g);this.menus.get("publish").setEnabled(null!=g&&!g.isRestricted());g=this.actions.get("findReplace");g.setEnabled("none"!=this.diagramContainer.style.display);g.label=mxResources.get("find")+(c.isEnabled()?"/"+mxResources.get("replace"):-"");c=c.view.getState(c.getSelectionCell());this.actions.get("editShape").setEnabled(n&&null!=c&&null!=c.shape&&null!=c.shape.stencil)};var D=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);D.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(c,g,l,n,r,t,v,B){var E=c.editor.graph;-if("xml"==l)c.hideDialog(),c.saveData(g,"xml",mxUtils.getXml(c.editor.getGraphXml()),"text/xml");else if("svg"==l)c.hideDialog(),c.saveData(g,"svg",mxUtils.getXml(E.getSvg(n,r,t)),"image/svg+xml");else{var K=c.getFileData(!0,null,null,null,null,!0),C=E.getGraphBounds(),R=Math.floor(C.width*r/E.view.scale),M=Math.floor(C.height*r/E.view.scale);if(K.length<=MAX_REQUEST_SIZE&&R*M<MAX_AREA)if(c.hideDialog(),"png"!=l&&"jpg"!=l&&"jpeg"!=l||!c.editor.isExportToCanvas()){var O={globalVars:E.getExportVariables()};-B&&(O.grid={size:E.gridSize,steps:E.view.gridSteps,color:E.view.gridColor});c.saveRequest(g,l,function(U,T){return new mxXmlRequest(EXPORT_URL,"format="+l+"&base64="+(T||"0")+(null!=U?"&filename="+encodeURIComponent(U):"")+"&extras="+encodeURIComponent(JSON.stringify(O))+(0<v?"&dpi="+v:"")+"&bg="+(null!=n?n:"none")+"&w="+R+"&h="+M+"&border="+t+"&xml="+encodeURIComponent(K))})}else"png"==l?c.exportImage(r,null==n||"none"==n,!0,!1,!1,t,!0,!1,null,B,v):c.exportImage(r,!1,!0,!1,!1,t,!0,!1,"jpeg",B);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});-EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var c=this.editor.graph,g="";if(null!=this.pages)for(var l=0;l<this.pages.length;l++){var n=c;this.currentPage!=this.pages[l]&&(n=this.createTemporaryGraph(c.getStylesheet()),this.updatePageRoot(this.pages[l]),n.model.setRoot(this.pages[l].root));g+=this.pages[l].getName()+" "+n.getIndexableText()+" "}else g=c.getIndexableText();this.editor.graph.setEnabled(!0);return g};EditorUi.prototype.writeJsonLabel=function(c,-g,l){if(null!=g&&""!=g){if(this.editor.graph.isHtmlLabel(c)&&(c=document.createElement("div"),c.innerHTML=Graph.sanitizeHtml(g),0<c.getElementsByTagName("*").length)){l.label=mxUtils.trim(mxUtils.extractTextWithWhitespace([c]));l.html=g;return}l.label=g}};EditorUi.prototype.getJsonForExportCell=function(c,g){var l={id:c.getId()};l.type=g?"layer":c.edge?"edge":c.vertex?"node":"group";g||(g=c.getParent(),null!=g&&(l.parent=g.getId()));c.edge&&(null!=c.source&&(l.source=c.source.getId()),null!=c.target&&-(l.target=c.target.getId()));g=c.value;if(null!=g&&mxUtils.isNode(g)){this.writeJsonLabel(c,g.getAttribute("label"),l);c=g.attributes;g={};for(var n=0,r=0;r<c.length;r++){var t=c[r].nodeName;"label"!=t&&"placeholders"!=t&&"id"!=t&&(g[t]=c[r].nodeValue,n++)}0<n&&(l.metadata=g)}else"string"===typeof g&&this.writeJsonLabel(c,g,l);return l};EditorUi.prototype.getJsonForPage=function(c,g){var l=this.editor.graph.getModel();var n=null==c||c==this.currentPage?l.getRoot():this.updatePageRoot(c).root;var r=-[],t=mxUtils.bind(this,function(C,R){r.push(this.getJsonForExportCell(C,R));R=C.getChildCount();for(var M=0;M<R;M++)t(C.getChildAt(M),!1)});if(null!=g){n={};for(var v=0;v<g.length;v++)n[g[v].getId()]=!0;for(v=0;v<g.length;v++){for(var B=g[v],E=B.getParent(),K=!1;null!=E;){if(n[E.getId()]){K=!0;break}E=E.getParent()}K||t(B,l.isLayer(B))}}else for(g=n.getChildCount(),v=0;v<g;v++)t(n.getChildAt(v),!0);v={};null!=c&&(v.id=c.getId(),v.name=c.getName());v.cells=r;return v};EditorUi.prototype.createJsonForExport=-function(c,g,l,n){var r={version:EditorUi.VERSION};g&&(r.data=mxUtils.getXml(this.getXmlFileData(!n,!c,!l)));g=[];if(n)g.push(this.getJsonForPage(this.currentPage,this.editor.graph.getSelectionCells()));else if(c&&null!=this.pages)for(c=0;c<this.pages.length;c++)g.push(this.getJsonForPage(this.pages[c]));else g.push(this.getJsonForPage(this.currentPage));r.pages=g;return r};EditorUi.prototype.showRemotelyStoredLibrary=function(c){var g={},l=document.createElement("div");l.style.whiteSpace="nowrap";-var n=document.createElement("h3");mxUtils.write(n,mxUtils.htmlEntities(c));l.appendChild(n);var r=document.createElement("div");r.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";r.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var t={};try{var v=mxSettings.getCustomLibraries();for(c=0;c<v.length;c++){var B=v[c];if("R"==B.substring(0,1)){var E=JSON.parse(decodeURIComponent(B.substring(1)));t[E[0]]={id:E[0],title:E[1],downloadUrl:E[2]}}}}catch(K){}this.remoteInvoke("getCustomLibraries",-null,null,function(K){r.innerText="";if(0==K.length)r.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var C=0;C<K.length;C++){var R=K[C];t[R.id]&&(g[R.id]=R);var M=this.addCheckbox(r,R.title,t[R.id]);(function(O,U){mxEvent.addListener(U,"change",function(){this.checked?g[O.id]=O:delete g[O.id]})})(R,M)}},mxUtils.bind(this,function(K){r.innerText="";var C=document.createElement("div");C.style.padding="8px";-C.style.textAlign="center";mxUtils.write(C,mxResources.get("error")+": ");mxUtils.write(C,null!=K&&null!=K.message?K.message:mxResources.get("unknownError"));r.appendChild(C)}));l.appendChild(r);l=new CustomDialog(this,l,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));var K=0,C;for(C in g)null==t[C]&&(K++,mxUtils.bind(this,function(R){this.remoteInvoke("getFileContent",[R.downloadUrl],null,mxUtils.bind(this,function(M){K--;0==K&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,-M,R)),this.showSidebar()}catch(O){this.handleError(O,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){K--;0==K&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(g[C]));for(C in t)g[C]||this.closeLibrary(new RemoteLibrary(this,null,t[C]));0==K&&this.spinner.stop()}),null,null,"https://www.drawio.com/doc/faq/custom-libraries-confluence-cloud");this.showDialog(l.container,340,390,!0,!0,null,null,null,null,!0)};EditorUi.prototype.remoteInvokableFns=-{getDiagramTextContent:{isAsync:!1},getLocalStorageFile:{isAsync:!1,allowedDomains:["app.diagrams.net"]},getLocalStorageFileNames:{isAsync:!1,allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}};EditorUi.prototype.remoteInvokeCallbacks=[];EditorUi.prototype.remoteInvokeQueue=[];EditorUi.prototype.handleRemoteInvokeReady=function(c){this.remoteWin=c;for(var g=0;g<this.remoteInvokeQueue.length;g++)c.postMessage(this.remoteInvokeQueue[g],"*");this.remoteInvokeQueue=-[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var g=c.msgMarkers,l=null!=g?g.callbackId:null,n="number"===typeof l&&0<=l&&l<this.remoteInvokeCallbacks.length?this.remoteInvokeCallbacks[l]:null;if(null==n)throw Error("No callback for "+(null!=g?g.callbackId:"null"));c.error?n.error&&n.error(c.error.errResp):n.callback&&n.callback.apply(this,c.resp);this.remoteInvokeCallbacks[l]=null};EditorUi.prototype.remoteInvoke=function(c,g,l,n,r){var t=!0,v=window.setTimeout(mxUtils.bind(this,-function(){t=!1;r({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),B=mxUtils.bind(this,function(){window.clearTimeout(v);t&&n.apply(this,arguments)}),E=mxUtils.bind(this,function(){window.clearTimeout(v);t&&r.apply(this,arguments)});l=l||{};l.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:B,error:E});c=JSON.stringify({event:"remoteInvoke",funtionName:c,functionArgs:g,msgMarkers:l});null!=this.remoteWin?this.remoteWin.postMessage(c,-"*"):this.remoteInvokeQueue.push(c)};EditorUi.prototype.handleRemoteInvoke=function(c,g){var l=mxUtils.bind(this,function(K,C){var R={event:"remoteInvokeResponse",msgMarkers:c.msgMarkers};null!=C?R.error={errResp:C}:null!=K&&(R.resp=K);this.remoteWin.postMessage(JSON.stringify(R),"*")});try{var n=c.funtionName,r=null!=n&&Object.prototype.hasOwnProperty.call(this.remoteInvokableFns,n)?this.remoteInvokableFns[n]:null;if(null!=r&&"function"===typeof this[n]){if(r.allowedDomains){for(var t=!1,v=0;v<r.allowedDomains.length;v++)if(g==-"https://"+r.allowedDomains[v]){t=!0;break}if(!t){l(null,"Invalid Call: "+n+" is not allowed.");return}}var B=c.functionArgs;Array.isArray(B)||(B=[]);if(r.isAsync)B.push(function(){l(Array.prototype.slice.apply(arguments))}),B.push(function(K){l(null,K||"Unkown Error")}),this[n].apply(this,B);else{var E=this[n].apply(this,B);l([E])}}else l(null,"Invalid Call: "+n+" is not found.")}catch(K){l(null,"Invalid Call: An error occurred, "+K.message)}};EditorUi.prototype.openDatabase=function(c,g){if(null==-this.database){var l=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=l)try{var n=l.open("database",2);n.onupgradeneeded=function(r){try{var t=n.result;1>r.oldVersion&&t.createObjectStore("objects",{keyPath:"key"});2>r.oldVersion&&(t.createObjectStore("files",{keyPath:"title"}),t.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(v){null!=g&&g(v)}};n.onsuccess=mxUtils.bind(this,function(r){try{var t=n.result;this.database=t;EditorUi.migrateStorageFiles&&-(StorageFile.migrate(t),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(v){if((!v||"1"==urlParams.forceMigration)&&"1"==urlParams.forceMigration){var B=document.createElement("iframe");B.style.display="none";B.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+urlParams.forceMigration);document.body.appendChild(B);var E=!0,K=!1,-C,R=0,M=mxUtils.bind(this,function(){K=!0;this.setDatabaseItem(".drawioMigrated3",!0);B.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),O=mxUtils.bind(this,function(){R++;U()}),U=mxUtils.bind(this,function(){try{if(R>=C.length)M();else{var V=C[R];StorageFile.getFileContent(this,V,mxUtils.bind(this,function(fa){null==fa||".scratchpad"==V&&fa==this.emptyLibraryXml?B.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",-functionArgs:[V]}),"*"):O()}),O)}}catch(fa){console.log(fa)}}),T=mxUtils.bind(this,function(V){try{this.setDatabaseItem(null,[{title:V.title,size:V.data.length,lastModified:Date.now(),type:V.isLib?"L":"F"},{title:V.title,data:V.data}],O,O,["filesInfo","files"])}catch(fa){console.log(fa)}});v=mxUtils.bind(this,function(V){try{if(V.source==B.contentWindow){var fa={};try{fa=JSON.parse(V.data)}catch(y){}"init"==fa.event?(B.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),B.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",-funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=fa.event||K||(E?null!=fa.resp&&0<fa.resp.length&&null!=fa.resp[0]?(C=fa.resp[0],E=!1,U()):M():null!=fa.resp&&0<fa.resp.length&&null!=fa.resp[0]?T(fa.resp[0]):O())}}catch(y){console.log(y)}});window.addEventListener("message",v)}})));c(t);t.onversionchange=function(){t.close()}}catch(v){null!=g?g(v):null!=window.console&&console.warn(v)}});n.onerror=g;n.onblocked=function(){}}catch(r){null!=g?g(r):null!=window.console&&console.error(r)}else null!=-g&&g(Error("IndexedDB not supported"))}else c(this.database)};EditorUi.prototype.setDatabaseItem=function(c,g,l,n,r){this.openDatabase(mxUtils.bind(this,function(t){try{r=r||"objects";Array.isArray(r)||(r=[r],c=[c],g=[g]);var v=t.transaction(r,"readwrite");v.oncomplete=l;v.onerror=n;for(t=0;t<r.length;t++)v.objectStore(r[t]).put(null!=c&&null!=c[t]?{key:c[t],data:g[t]}:g[t])}catch(B){null!=n&&n(B)}}),n)};EditorUi.prototype.removeDatabaseItem=function(c,g,l,n){this.openDatabase(mxUtils.bind(this,function(r){try{n=-n||"objects";Array.isArray(n)||(n=[n],c=[c]);var t=r.transaction(n,"readwrite");t.oncomplete=g;t.onerror=l;for(r=0;r<n.length;r++)t.objectStore(n[r]).delete(c[r])}catch(v){null!=l&&l(v)}}),l)};EditorUi.prototype.getDatabaseItem=function(c,g,l,n){this.openDatabase(mxUtils.bind(this,function(r){try{n=n||"objects";var t=r.transaction([n],"readonly").objectStore(n).get(c);t.onsuccess=function(){g(t.result)};t.onerror=l}catch(v){null!=l&&l(v)}}),l)};EditorUi.prototype.getDatabaseItems=function(c,g,l){this.openDatabase(mxUtils.bind(this,-function(n){try{l=l||"objects";var r=n.transaction([l],"readonly").objectStore(l).openCursor(IDBKeyRange.lowerBound(0)),t=[];r.onsuccess=function(v){null==v.target.result?c(t):(t.push(v.target.result.value),v.target.result.continue())};r.onerror=g}catch(v){null!=g&&g(v)}}),g)};EditorUi.prototype.getDatabaseItemKeys=function(c,g,l){this.openDatabase(mxUtils.bind(this,function(n){try{l=l||"objects";var r=n.transaction([l],"readonly").objectStore(l).getAllKeys();r.onsuccess=function(){c(r.result)};r.onerror=-g}catch(t){null!=g&&g(t)}}),g)};EditorUi.prototype.commentsSupported=function(){var c=this.getCurrentFile();return null!=c?c.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(c,g){var l=this.getCurrentFile();null!=l?l.getComments(c,g):c([])};EditorUi.prototype.addComment=-function(c,g,l){var n=this.getCurrentFile();null!=n?n.addComment(c,g,l):g(Date.now())};EditorUi.prototype.canReplyToReplies=function(){var c=this.getCurrentFile();return null!=c?c.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.anchoredCommentsSupported=function(){var c=this.getCurrentFile();return null!=c?c.anchoredCommentsSupported():!1};EditorUi.prototype.mentionsSupported=function(){var c=this.getCurrentFile();-return null!=c?c.mentionsSupported():!1};EditorUi.prototype.freeMentionsSupported=function(){var c=this.getCurrentFile();return null!=c?c.freeMentionsSupported():!1};EditorUi.prototype.mentionsLiveSearch=function(){var c=this.getCurrentFile();return null!=c?c.mentionsLiveSearch():!1};EditorUi.prototype.mentionNotificationsSupported=function(){var c=this.getCurrentFile();return null!=c?c.mentionNotificationsSupported():!0};EditorUi.prototype.getMentionCandidates=function(c,g,l){var n=this.getCurrentFile();-null!=n?n.getMentionCandidates(c,g,l):c([])};EditorUi.prototype.serializeMention=function(c){return"+"+c.email};EditorUi.prototype.parseMentionTokens=function(c){for(var g=/[+@]([A-Za-z0-9.!#$%&'*/=?^_`{|}~+\-]+@[A-Za-z0-9.\-]+\.[A-Za-z]{2,})/g,l=[],n=0,r;null!=(r=g.exec(c));)r.index>n&&l.push(c.substring(n,r.index)),l.push({email:r[1]}),n=r.index+r[0].length;n<c.length&&l.push(c.substring(n));return l};EditorUi.prototype.getCommentCacheTarget=function(){var c=this.getCurrentFile();return null!=c?-c:this};EditorUi.prototype.refreshCommentCache=function(c,g){if(this.commentsSupported()){var l=this.getCommentCacheTarget();if(null!=l.commentCacheCallbacks)l.commentCacheCallbacks.push([c,g]);else{l.commentCacheCallbacks=[[c,g]];var n=mxUtils.bind(this,function(r,t){var v=l.commentCacheCallbacks;l.commentCacheCallbacks=null;for(var B=0;null!=v&&B<v.length;B++)if(null!=v[B][r])v[B][r](t)});this.getComments(mxUtils.bind(this,function(r){this.getCommentCacheTarget()==l&&(l.commentCache=r,this.fireEvent(new mxEventObject("commentsChanged")));-n(0,r)}),mxUtils.bind(this,function(r){n(1,r)}))}}else null!=c&&c(null)};EditorUi.prototype.commentsUpdated=function(){if(this.commentsSupported()){var c=this.getCurrentFile();null!=c&&null!=c.sync&&c.sync.sendCommentsChangedMessage();this.refreshCommentCache()}};EditorUi.prototype.getUnresolvedCommentCount=function(){var c=this.getCommentCacheTarget().commentCache,g=0;if(null!=c)for(var l=0;l<c.length;l++)c[l].isResolved||g++;return g};EditorUi.prototype.getCommentAnchorCells=function(c){var g=c.getAnchorCellIds(),-l=[];if(null!=g&&0<g.length){c=c.getAnchorPageId();var n=null==c?this.currentPage:this.getPageById(c);if(null!=n)if(n==this.currentPage)for(c=0;c<g.length;c++)n=this.editor.graph.model.getCell(g[c]),null!=n&&l.push(n);else{try{this.updatePageRoot(n)}catch(B){return l}if(null!=n.root){var r={},t=0;for(c=0;c<g.length;c++)r[g[c]]||(r[g[c]]=!0,t++);var v=function(B){if(0<t){r[B.getId()]&&(r[B.getId()]=!1,l.push(B),t--);for(var E=0;E<B.getChildCount();E++)v(B.getChildAt(E))}};v(n.root)}}}return l};EditorUi.prototype.gotoCommentAnchor=-function(c){var g=c.getAnchorPageId();if(null!=g&&null!=this.currentPage&&g!=this.currentPage.getId()){g=this.getPageById(g);if(null==g)return!1;this.selectPage(g)}g=this.editor.graph;var l=c.getAnchorCellIds();if(null!=l&&0<l.length){c=[];for(var n=0;n<l.length;n++){var r=g.model.getCell(l[n]);null!=r&&c.push(r)}return 0<c.length?(g.isEnabled()?g.setSelectionCells(c):g.highlightCells(c,"#0071e3",2E3),g.scrollCellToVisible(c[0]),!0):!1}l=c.getAnchorRect();null!=l&&0<l.w&&0<l.h&&g.fitWindow(new mxRectangle(l.x,-l.y,l.w,l.h),0);c=c.getAnchorPoint();if(null!=c){l=g.view.scale;n=g.view.translate;g=g.container;g.scrollLeft=Math.round((c.x+n.x)*l-g.clientWidth/2);g.scrollTop=Math.round((c.y+n.y)*l-g.clientHeight/2);var t=document.createElement("div");t.className="geCommentAnchorMarker";t.style.left=Math.round((c.x+n.x)*l)+"px";t.style.top=Math.round((c.y+n.y)*l)+"px";g.appendChild(t);window.setTimeout(function(){null!=t.parentNode&&t.parentNode.removeChild(t)},2E3)}return!0};EditorUi.prototype.addCommentsBadge=-function(c){var g=document.createElement("span");g.className="geCommentsBadge";g.style.display="none";c.appendChild(g);c=mxUtils.bind(this,function(){var l=this.getUnresolvedCommentCount();g.style.display=0<l?"":"none";g.innerText="";mxUtils.write(g,99<l?"99+":String(l))});this.addListener("commentsChanged",c);this.editor.addListener("fileLoaded",c);c();return g};EditorUi.prototype.installCommentDragSource=function(c){var g=this,l=document.createElement("div");l.style.width="24px";l.style.height=-"24px";l.style.backgroundImage="url("+Editor.lightDarkCommentImage+")";l.style.backgroundSize="100% 100%";l.style.opacity="0.9";c=mxUtils.makeDraggable(c,function(){return g.editor.graph},function(r,t,v,B,E){null!=g.currentPage&&null!=g.menus&&null!=g.menus.showCommentsWindow&&(r=null!=v?{p:g.currentPage.getId(),c:v.id}:{p:g.currentPage.getId(),pt:{x:Math.round(B),y:Math.round(E)}},g.menus.showCommentsWindow(null,r))},l);var n=c.mouseDown;c.mouseDown=function(r){mxEvent.isMouseEvent(r)&&!mxEvent.isPopupTrigger(r)&&-g.commentsSupported()&&g.anchoredCommentsSupported()&&g.canComment()&&n.apply(this,arguments)};return c};EditorUi.prototype.updateCommentOverlays=function(){var c=this.editor.graph;if(null!=this.commentOverlays)for(var g=0;g<this.commentOverlays.length;g++)c.removeCellOverlay(this.commentOverlays[g].cell,this.commentOverlays[g].overlay);this.commentOverlays=null;var l=this.getCurrentFile();if(null!=l&&l.anchoredCommentsSupported()&&null!=l.commentCache&&!this.editor.isChromelessView()){var n=null!=-this.currentPage?this.currentPage.getId():null,r={};for(g=0;g<l.commentCache.length;g++){var t=l.commentCache[g],v=t.getAnchorCellIds();if(!t.isResolved&&null!=v&&t.getAnchorPageId()==n)for(t=0;t<v.length;t++)r[v[t]]=!0}this.commentOverlays=[];for(var B in r)mxUtils.bind(this,function(E){var K=c.model.getCell(E);if(null!=K){var C=new mxCellOverlay(new mxImage(Editor.lightDarkCommentImage,16,16),mxResources.get("comments"),mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM,new mxPoint(8,8));C.isCommentOverlay=-!0;C.cursor="pointer";C.addListener(mxEvent.CLICK,mxUtils.bind(this,function(){null!=this.menus&&null!=this.menus.showCommentsWindow&&this.menus.showCommentsWindow(E)}));c.addCellOverlay(K,C);this.commentOverlays.push({cell:K,overlay:C})}})(B)}};EditorUi.prototype.newComment=function(c,g){var l=this.getCurrentFile();return null!=l?l.newComment(c,g):new DrawioComment(this,null,c,Date.now(),Date.now(),!1,g)};EditorUi.prototype.isRevisionHistorySupported=function(){var c=this.getCurrentFile();return null!=-c&&c.isRevisionHistorySupported()};EditorUi.prototype.getRevisions=function(c,g){var l=this.getCurrentFile();null!=l&&l.getRevisions?l.getRevisions(c,g):g({message:mxResources.get("unknownError")})};EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.vsdxExportEnabled=function(){return"atlassian"==this.getServiceName()};-EditorUi.prototype.addRemoteServiceSecurityCheck=function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,g,l,n,r,t,v,B){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,g,l,n,r,t,v,B)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");-return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=function(c,g){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,g)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,g,l,n,r,t,v,B,E,K,C,R,M,O,U,T){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,g,l,n,r,t,v,B,-E,K,C,R,M,O,U,T)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,g,l,n){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(c,g,l,n)};EditorUi.prototype.convertImageToDataUri=function(c,g){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,g)};-EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=function(c,g,l,n){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(c,g,l,n)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,g,l,n,r){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,-g,l,n,r)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var c=[],g=0;g<localStorage.length;g++){var l=localStorage.key(g),n=localStorage.getItem(l);if(0<l.length&&(".scratchpad"==l||"."!=l.charAt(0))&&0<n.length){var r="<mxfile "===n.substring(0,8)||"<?xml"===n.substring(0,5)||"\x3c!--[if IE]>"===n.substring(0,12);n="<mxlibrary>"===n.substring(0,11);(r||n)&&c.push(l)}}return c};EditorUi.prototype.getLocalStorageFile=-function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;var g=localStorage.getItem(c);return{title:c,data:g,isLib:"<mxlibrary>"===g.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();-var CommentsWindow=function(b,k,m,f,q,u){function x(){for(var N=I.getElementsByTagName("div"),aa=0,ea=0;ea<N.length;ea++)"none"!=N[ea].style.display&&N[ea].parentNode==I&&aa++;L.style.display=0==aa?"block":"none"}function z(N){for(var aa=0;aa<y.length;aa++)if(null!=y[aa].email&&null!=N&&y[aa].email.toLowerCase()==N.toLowerCase())return y[aa].displayName||N;return N}function F(N){var aa=document.createElement("span");aa.className="geCommentMention";aa.setAttribute("data-mention",b.serializeMention(N));+this.actions.get("moveToFolder").setEnabled(null!=f);this.actions.get("makeCopy").setEnabled(null!=f&&!f.isRestricted());this.actions.get("editDiagram").setEnabled(n&&(null==f||!f.isRestricted()));this.actions.get("publishLink").setEnabled(null!=f&&!f.isRestricted());this.actions.get("removeFormat").setEnabled(c.isEnabled()&&!c.isSelectionEmpty()&&!c.isEditing());this.actions.get("tags").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("layers").setEnabled("none"!=this.diagramContainer.style.display);+this.actions.get("outline").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("rename").setEnabled(null!=f&&f.isRenamable()||"1"==urlParams.embed);this.actions.get("close").setEnabled(null!=f);this.actions.get("properties").setEnabled(null!=f);this.menus.get("publish").setEnabled(null!=f&&!f.isRestricted());f=this.actions.get("findReplace");f.setEnabled("none"!=this.diagramContainer.style.display);f.label=mxResources.get("find")+(c.isEnabled()?"/"+mxResources.get("replace"):+"");c=c.view.getState(c.getSelectionCell());this.actions.get("editShape").setEnabled(n&&null!=c&&null!=c.shape&&null!=c.shape.stencil)};var D=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);D.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(c,f,l,n,r,t,v,B){var E=c.editor.graph;+if("xml"==l)c.hideDialog(),c.saveData(f,"xml",mxUtils.getXml(c.editor.getGraphXml()),"text/xml");else if("svg"==l)c.hideDialog(),c.saveData(f,"svg",mxUtils.getXml(E.getSvg(n,r,t)),"image/svg+xml");else{var K=c.getFileData(!0,null,null,null,null,!0),C=E.getGraphBounds(),R=Math.floor(C.width*r/E.view.scale),M=Math.floor(C.height*r/E.view.scale);if(K.length<=MAX_REQUEST_SIZE&&R*M<MAX_AREA)if(c.hideDialog(),"png"!=l&&"jpg"!=l&&"jpeg"!=l||!c.editor.isExportToCanvas())if(c.isRemoteExportEnabled()){var O=+{globalVars:E.getExportVariables()};B&&(O.grid={size:E.gridSize,steps:E.view.gridSteps,color:E.view.gridColor});c.saveRequest(f,l,function(U,T){return new mxXmlRequest(EXPORT_URL,"format="+l+"&base64="+(T||"0")+(null!=U?"&filename="+encodeURIComponent(U):"")+"&extras="+encodeURIComponent(JSON.stringify(O))+(0<v?"&dpi="+v:"")+"&bg="+(null!=n?n:"none")+"&w="+R+"&h="+M+"&border="+t+"&xml="+encodeURIComponent(K))})}else c.handleError({message:mxResources.get("notAvailable")});else"png"==l?c.exportImage(r,+null==n||"none"==n,!0,!1,!1,t,!0,!1,null,B,v):c.exportImage(r,!1,!0,!1,!1,t,!0,!1,"jpeg",B);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var c=this.editor.graph,f="";if(null!=this.pages)for(var l=0;l<this.pages.length;l++){var n=c;this.currentPage!=this.pages[l]&&(n=this.createTemporaryGraph(c.getStylesheet()),this.updatePageRoot(this.pages[l]),n.model.setRoot(this.pages[l].root));f+=this.pages[l].getName()++" "+n.getIndexableText()+" "}else f=c.getIndexableText();this.editor.graph.setEnabled(!0);return f};EditorUi.prototype.writeJsonLabel=function(c,f,l){if(null!=f&&""!=f){if(this.editor.graph.isHtmlLabel(c)&&(c=document.createElement("div"),c.innerHTML=Graph.sanitizeHtml(f),0<c.getElementsByTagName("*").length)){l.label=mxUtils.trim(mxUtils.extractTextWithWhitespace([c]));l.html=f;return}l.label=f}};EditorUi.prototype.getJsonForExportCell=function(c,f){var l={id:c.getId()};l.type=f?"layer":c.edge?"edge":+c.vertex?"node":"group";f||(f=c.getParent(),null!=f&&(l.parent=f.getId()));c.edge&&(null!=c.source&&(l.source=c.source.getId()),null!=c.target&&(l.target=c.target.getId()));f=c.value;if(null!=f&&mxUtils.isNode(f)){this.writeJsonLabel(c,f.getAttribute("label"),l);c=f.attributes;f={};for(var n=0,r=0;r<c.length;r++){var t=c[r].nodeName;"label"!=t&&"placeholders"!=t&&"id"!=t&&(f[t]=c[r].nodeValue,n++)}0<n&&(l.metadata=f)}else"string"===typeof f&&this.writeJsonLabel(c,f,l);return l};EditorUi.prototype.getJsonForPage=+function(c,f){var l=this.editor.graph.getModel();var n=null==c||c==this.currentPage?l.getRoot():this.updatePageRoot(c).root;var r=[],t=mxUtils.bind(this,function(C,R){r.push(this.getJsonForExportCell(C,R));R=C.getChildCount();for(var M=0;M<R;M++)t(C.getChildAt(M),!1)});if(null!=f){n={};for(var v=0;v<f.length;v++)n[f[v].getId()]=!0;for(v=0;v<f.length;v++){for(var B=f[v],E=B.getParent(),K=!1;null!=E;){if(n[E.getId()]){K=!0;break}E=E.getParent()}K||t(B,l.isLayer(B))}}else for(f=n.getChildCount(),v=0;v<+f;v++)t(n.getChildAt(v),!0);v={};null!=c&&(v.id=c.getId(),v.name=c.getName());v.cells=r;return v};EditorUi.prototype.createJsonForExport=function(c,f,l,n){var r={version:EditorUi.VERSION};f&&(r.data=mxUtils.getXml(this.getXmlFileData(!n,!c,!l)));f=[];if(n)f.push(this.getJsonForPage(this.currentPage,this.editor.graph.getSelectionCells()));else if(c&&null!=this.pages)for(c=0;c<this.pages.length;c++)f.push(this.getJsonForPage(this.pages[c]));else f.push(this.getJsonForPage(this.currentPage));r.pages=+f;return r};EditorUi.prototype.showRemotelyStoredLibrary=function(c){var f={},l=document.createElement("div");l.style.whiteSpace="nowrap";var n=document.createElement("h3");mxUtils.write(n,mxUtils.htmlEntities(c));l.appendChild(n);var r=document.createElement("div");r.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";r.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var t={};try{var v=mxSettings.getCustomLibraries();for(c=0;c<+v.length;c++){var B=v[c];if("R"==B.substring(0,1)){var E=JSON.parse(decodeURIComponent(B.substring(1)));t[E[0]]={id:E[0],title:E[1],downloadUrl:E[2]}}}}catch(K){}this.remoteInvoke("getCustomLibraries",null,null,function(K){r.innerText="";if(0==K.length)r.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var C=0;C<K.length;C++){var R=K[C];t[R.id]&&(f[R.id]=R);var M=this.addCheckbox(r,R.title,t[R.id]);(function(O,+U){mxEvent.addListener(U,"change",function(){this.checked?f[O.id]=O:delete f[O.id]})})(R,M)}},mxUtils.bind(this,function(K){r.innerText="";var C=document.createElement("div");C.style.padding="8px";C.style.textAlign="center";mxUtils.write(C,mxResources.get("error")+": ");mxUtils.write(C,null!=K&&null!=K.message?K.message:mxResources.get("unknownError"));r.appendChild(C)}));l.appendChild(r);l=new CustomDialog(this,l,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));+var K=0,C;for(C in f)null==t[C]&&(K++,mxUtils.bind(this,function(R){this.remoteInvoke("getFileContent",[R.downloadUrl],null,mxUtils.bind(this,function(M){K--;0==K&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,M,R)),this.showSidebar()}catch(O){this.handleError(O,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){K--;0==K&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(f[C]));for(C in t)f[C]||this.closeLibrary(new RemoteLibrary(this,+null,t[C]));0==K&&this.spinner.stop()}),null,null,"https://www.drawio.com/doc/faq/custom-libraries-confluence-cloud");this.showDialog(l.container,340,390,!0,!0,null,null,null,null,!0)};EditorUi.prototype.remoteInvokableFns={getDiagramTextContent:{isAsync:!1},getLocalStorageFile:{isAsync:!1,allowedDomains:["app.diagrams.net"]},getLocalStorageFileNames:{isAsync:!1,allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}};EditorUi.prototype.remoteInvokeCallbacks=+[];EditorUi.prototype.remoteInvokeQueue=[];EditorUi.prototype.handleRemoteInvokeReady=function(c){this.remoteWin=c;for(var f=0;f<this.remoteInvokeQueue.length;f++)c.postMessage(this.remoteInvokeQueue[f],"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var f=c.msgMarkers,l=null!=f?f.callbackId:null,n="number"===typeof l&&0<=l&&l<this.remoteInvokeCallbacks.length?this.remoteInvokeCallbacks[l]:null;if(null==n)throw Error("No callback for "+(null!=f?f.callbackId:+"null"));c.error?n.error&&n.error(c.error.errResp):n.callback&&n.callback.apply(this,c.resp);this.remoteInvokeCallbacks[l]=null};EditorUi.prototype.remoteInvoke=function(c,f,l,n,r){var t=!0,v=window.setTimeout(mxUtils.bind(this,function(){t=!1;r({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),B=mxUtils.bind(this,function(){window.clearTimeout(v);t&&n.apply(this,arguments)}),E=mxUtils.bind(this,function(){window.clearTimeout(v);t&&r.apply(this,arguments)});l=l||{};l.callbackId=+this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:B,error:E});c=JSON.stringify({event:"remoteInvoke",funtionName:c,functionArgs:f,msgMarkers:l});null!=this.remoteWin?this.remoteWin.postMessage(c,"*"):this.remoteInvokeQueue.push(c)};EditorUi.prototype.handleRemoteInvoke=function(c,f){var l=mxUtils.bind(this,function(K,C){var R={event:"remoteInvokeResponse",msgMarkers:c.msgMarkers};null!=C?R.error={errResp:C}:null!=K&&(R.resp=K);this.remoteWin.postMessage(JSON.stringify(R),+"*")});try{var n=c.funtionName,r=null!=n&&Object.prototype.hasOwnProperty.call(this.remoteInvokableFns,n)?this.remoteInvokableFns[n]:null;if(null!=r&&"function"===typeof this[n]){if(r.allowedDomains){for(var t=!1,v=0;v<r.allowedDomains.length;v++)if(f=="https://"+r.allowedDomains[v]){t=!0;break}if(!t){l(null,"Invalid Call: "+n+" is not allowed.");return}}var B=c.functionArgs;Array.isArray(B)||(B=[]);if(r.isAsync)B.push(function(){l(Array.prototype.slice.apply(arguments))}),B.push(function(K){l(null,+K||"Unkown Error")}),this[n].apply(this,B);else{var E=this[n].apply(this,B);l([E])}}else l(null,"Invalid Call: "+n+" is not found.")}catch(K){l(null,"Invalid Call: An error occurred, "+K.message)}};EditorUi.prototype.openDatabase=function(c,f){if(null==this.database){var l=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=l)try{var n=l.open("database",2);n.onupgradeneeded=function(r){try{var t=n.result;1>r.oldVersion&&t.createObjectStore("objects",{keyPath:"key"});2>r.oldVersion&&+(t.createObjectStore("files",{keyPath:"title"}),t.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(v){null!=f&&f(v)}};n.onsuccess=mxUtils.bind(this,function(r){try{var t=n.result;this.database=t;EditorUi.migrateStorageFiles&&(StorageFile.migrate(t),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(v){if((!v||+"1"==urlParams.forceMigration)&&"1"==urlParams.forceMigration){var B=document.createElement("iframe");B.style.display="none";B.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+urlParams.forceMigration);document.body.appendChild(B);var E=!0,K=!1,C,R=0,M=mxUtils.bind(this,function(){K=!0;this.setDatabaseItem(".drawioMigrated3",!0);B.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),O=mxUtils.bind(this,function(){R++;U()}),+U=mxUtils.bind(this,function(){try{if(R>=C.length)M();else{var V=C[R];StorageFile.getFileContent(this,V,mxUtils.bind(this,function(fa){null==fa||".scratchpad"==V&&fa==this.emptyLibraryXml?B.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",functionArgs:[V]}),"*"):O()}),O)}}catch(fa){console.log(fa)}}),T=mxUtils.bind(this,function(V){try{this.setDatabaseItem(null,[{title:V.title,size:V.data.length,lastModified:Date.now(),type:V.isLib?"L":"F"},{title:V.title,+data:V.data}],O,O,["filesInfo","files"])}catch(fa){console.log(fa)}});v=mxUtils.bind(this,function(V){try{if(V.source==B.contentWindow){var fa={};try{fa=JSON.parse(V.data)}catch(y){}"init"==fa.event?(B.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),B.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=fa.event||K||(E?null!=fa.resp&&0<fa.resp.length&&null!=fa.resp[0]?(C=fa.resp[0],E=!1,U()):+M():null!=fa.resp&&0<fa.resp.length&&null!=fa.resp[0]?T(fa.resp[0]):O())}}catch(y){console.log(y)}});window.addEventListener("message",v)}})));c(t);t.onversionchange=function(){t.close()}}catch(v){null!=f?f(v):null!=window.console&&console.warn(v)}});n.onerror=f;n.onblocked=function(){}}catch(r){null!=f?f(r):null!=window.console&&console.error(r)}else null!=f&&f(Error("IndexedDB not supported"))}else c(this.database)};EditorUi.prototype.setDatabaseItem=function(c,f,l,n,r){this.openDatabase(mxUtils.bind(this,+function(t){try{r=r||"objects";Array.isArray(r)||(r=[r],c=[c],f=[f]);var v=t.transaction(r,"readwrite");v.oncomplete=l;v.onerror=n;for(t=0;t<r.length;t++)v.objectStore(r[t]).put(null!=c&&null!=c[t]?{key:c[t],data:f[t]}:f[t])}catch(B){null!=n&&n(B)}}),n)};EditorUi.prototype.removeDatabaseItem=function(c,f,l,n){this.openDatabase(mxUtils.bind(this,function(r){try{n=n||"objects";Array.isArray(n)||(n=[n],c=[c]);var t=r.transaction(n,"readwrite");t.oncomplete=f;t.onerror=l;for(r=0;r<n.length;r++)t.objectStore(n[r]).delete(c[r])}catch(v){null!=+l&&l(v)}}),l)};EditorUi.prototype.getDatabaseItem=function(c,f,l,n){this.openDatabase(mxUtils.bind(this,function(r){try{n=n||"objects";var t=r.transaction([n],"readonly").objectStore(n).get(c);t.onsuccess=function(){f(t.result)};t.onerror=l}catch(v){null!=l&&l(v)}}),l)};EditorUi.prototype.getDatabaseItems=function(c,f,l){this.openDatabase(mxUtils.bind(this,function(n){try{l=l||"objects";var r=n.transaction([l],"readonly").objectStore(l).openCursor(IDBKeyRange.lowerBound(0)),t=[];r.onsuccess=function(v){null==+v.target.result?c(t):(t.push(v.target.result.value),v.target.result.continue())};r.onerror=f}catch(v){null!=f&&f(v)}}),f)};EditorUi.prototype.getDatabaseItemKeys=function(c,f,l){this.openDatabase(mxUtils.bind(this,function(n){try{l=l||"objects";var r=n.transaction([l],"readonly").objectStore(l).getAllKeys();r.onsuccess=function(){c(r.result)};r.onerror=f}catch(t){null!=f&&f(t)}}),f)};EditorUi.prototype.commentsSupported=function(){var c=this.getCurrentFile();return null!=c?c.commentsSupported():!1};+EditorUi.prototype.commentsRefreshNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(c,f){var l=this.getCurrentFile();null!=l?l.getComments(c,f):c([])};EditorUi.prototype.addComment=function(c,f,l){var n=this.getCurrentFile();null!=n?n.addComment(c,f,l):f(Date.now())};EditorUi.prototype.canReplyToReplies=+function(){var c=this.getCurrentFile();return null!=c?c.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.anchoredCommentsSupported=function(){var c=this.getCurrentFile();return null!=c?c.anchoredCommentsSupported():!1};EditorUi.prototype.mentionsSupported=function(){var c=this.getCurrentFile();return null!=c?c.mentionsSupported():!1};EditorUi.prototype.freeMentionsSupported=function(){var c=this.getCurrentFile();+return null!=c?c.freeMentionsSupported():!1};EditorUi.prototype.mentionsLiveSearch=function(){var c=this.getCurrentFile();return null!=c?c.mentionsLiveSearch():!1};EditorUi.prototype.mentionNotificationsSupported=function(){var c=this.getCurrentFile();return null!=c?c.mentionNotificationsSupported():!0};EditorUi.prototype.getMentionCandidates=function(c,f,l){var n=this.getCurrentFile();null!=n?n.getMentionCandidates(c,f,l):c([])};EditorUi.prototype.serializeMention=function(c){return"+"+c.email};+EditorUi.prototype.parseMentionTokens=function(c){for(var f=/[+@]([A-Za-z0-9.!#$%&'*/=?^_`{|}~+\-]+@[A-Za-z0-9.\-]+\.[A-Za-z]{2,})/g,l=[],n=0,r;null!=(r=f.exec(c));)r.index>n&&l.push(c.substring(n,r.index)),l.push({email:r[1]}),n=r.index+r[0].length;n<c.length&&l.push(c.substring(n));return l};EditorUi.prototype.getCommentCacheTarget=function(){var c=this.getCurrentFile();return null!=c?c:this};EditorUi.prototype.refreshCommentCache=function(c,f){if(this.commentsSupported()){var l=this.getCommentCacheTarget();+if(null!=l.commentCacheCallbacks)l.commentCacheCallbacks.push([c,f]);else{l.commentCacheCallbacks=[[c,f]];var n=mxUtils.bind(this,function(r,t){var v=l.commentCacheCallbacks;l.commentCacheCallbacks=null;for(var B=0;null!=v&&B<v.length;B++)if(null!=v[B][r])v[B][r](t)});this.getComments(mxUtils.bind(this,function(r){this.getCommentCacheTarget()==l&&(l.commentCache=r,this.fireEvent(new mxEventObject("commentsChanged")));n(0,r)}),mxUtils.bind(this,function(r){n(1,r)}))}}else null!=c&&c(null)};EditorUi.prototype.commentsUpdated=+function(){if(this.commentsSupported()){var c=this.getCurrentFile();null!=c&&null!=c.sync&&c.sync.sendCommentsChangedMessage();this.refreshCommentCache()}};EditorUi.prototype.getUnresolvedCommentCount=function(){var c=this.getCommentCacheTarget().commentCache,f=0;if(null!=c)for(var l=0;l<c.length;l++)c[l].isResolved||f++;return f};EditorUi.prototype.getCommentAnchorCells=function(c){var f=c.getAnchorCellIds(),l=[];if(null!=f&&0<f.length){c=c.getAnchorPageId();var n=null==c?this.currentPage:this.getPageById(c);+if(null!=n)if(n==this.currentPage)for(c=0;c<f.length;c++)n=this.editor.graph.model.getCell(f[c]),null!=n&&l.push(n);else{try{this.updatePageRoot(n)}catch(B){return l}if(null!=n.root){var r={},t=0;for(c=0;c<f.length;c++)r[f[c]]||(r[f[c]]=!0,t++);var v=function(B){if(0<t){r[B.getId()]&&(r[B.getId()]=!1,l.push(B),t--);for(var E=0;E<B.getChildCount();E++)v(B.getChildAt(E))}};v(n.root)}}}return l};EditorUi.prototype.gotoCommentAnchor=function(c){var f=c.getAnchorPageId();if(null!=f&&null!=this.currentPage&&+f!=this.currentPage.getId()){f=this.getPageById(f);if(null==f)return!1;this.selectPage(f)}f=this.editor.graph;var l=c.getAnchorCellIds();if(null!=l&&0<l.length){c=[];for(var n=0;n<l.length;n++){var r=f.model.getCell(l[n]);null!=r&&c.push(r)}return 0<c.length?(f.isEnabled()?f.setSelectionCells(c):f.highlightCells(c,"#0071e3",2E3),f.scrollCellToVisible(c[0]),!0):!1}l=c.getAnchorRect();null!=l&&0<l.w&&0<l.h&&f.fitWindow(new mxRectangle(l.x,l.y,l.w,l.h),0);c=c.getAnchorPoint();if(null!=c){l=f.view.scale;+n=f.view.translate;f=f.container;f.scrollLeft=Math.round((c.x+n.x)*l-f.clientWidth/2);f.scrollTop=Math.round((c.y+n.y)*l-f.clientHeight/2);var t=document.createElement("div");t.className="geCommentAnchorMarker";t.style.left=Math.round((c.x+n.x)*l)+"px";t.style.top=Math.round((c.y+n.y)*l)+"px";f.appendChild(t);window.setTimeout(function(){null!=t.parentNode&&t.parentNode.removeChild(t)},2E3)}return!0};EditorUi.prototype.addCommentsBadge=function(c){var f=document.createElement("span");f.className=+"geCommentsBadge";f.style.display="none";c.appendChild(f);c=mxUtils.bind(this,function(){var l=this.getUnresolvedCommentCount();f.style.display=0<l?"":"none";f.innerText="";mxUtils.write(f,99<l?"99+":String(l))});this.addListener("commentsChanged",c);this.editor.addListener("fileLoaded",c);c();return f};EditorUi.prototype.installCommentDragSource=function(c){var f=this,l=document.createElement("div");l.style.width="24px";l.style.height="24px";l.style.backgroundImage="url("+Editor.lightDarkCommentImage++")";l.style.backgroundSize="100% 100%";l.style.opacity="0.9";c=mxUtils.makeDraggable(c,function(){return f.editor.graph},function(r,t,v,B,E){null!=f.currentPage&&null!=f.menus&&null!=f.menus.showCommentsWindow&&(r=null!=v?{p:f.currentPage.getId(),c:v.id}:{p:f.currentPage.getId(),pt:{x:Math.round(B),y:Math.round(E)}},f.menus.showCommentsWindow(null,r))},l);var n=c.mouseDown;c.mouseDown=function(r){mxEvent.isMouseEvent(r)&&!mxEvent.isPopupTrigger(r)&&f.commentsSupported()&&f.anchoredCommentsSupported()&&+f.canComment()&&n.apply(this,arguments)};return c};EditorUi.prototype.updateCommentOverlays=function(){var c=this.editor.graph;if(null!=this.commentOverlays)for(var f=0;f<this.commentOverlays.length;f++)c.removeCellOverlay(this.commentOverlays[f].cell,this.commentOverlays[f].overlay);this.commentOverlays=null;var l=this.getCurrentFile();if(null!=l&&l.anchoredCommentsSupported()&&null!=l.commentCache&&!this.editor.isChromelessView()){var n=null!=this.currentPage?this.currentPage.getId():null,r={};+for(f=0;f<l.commentCache.length;f++){var t=l.commentCache[f],v=t.getAnchorCellIds();if(!t.isResolved&&null!=v&&t.getAnchorPageId()==n)for(t=0;t<v.length;t++)r[v[t]]=!0}this.commentOverlays=[];for(var B in r)mxUtils.bind(this,function(E){var K=c.model.getCell(E);if(null!=K){var C=new mxCellOverlay(new mxImage(Editor.lightDarkCommentImage,16,16),mxResources.get("comments"),mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM,new mxPoint(8,8));C.isCommentOverlay=!0;C.cursor="pointer";C.addListener(mxEvent.CLICK,+mxUtils.bind(this,function(){null!=this.menus&&null!=this.menus.showCommentsWindow&&this.menus.showCommentsWindow(E)}));c.addCellOverlay(K,C);this.commentOverlays.push({cell:K,overlay:C})}})(B)}};EditorUi.prototype.newComment=function(c,f){var l=this.getCurrentFile();return null!=l?l.newComment(c,f):new DrawioComment(this,null,c,Date.now(),Date.now(),!1,f)};EditorUi.prototype.isRevisionHistorySupported=function(){var c=this.getCurrentFile();return null!=c&&c.isRevisionHistorySupported()};EditorUi.prototype.getRevisions=+function(c,f){var l=this.getCurrentFile();null!=l&&l.getRevisions?l.getRevisions(c,f):f({message:mxResources.get("unknownError")})};EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.vsdxExportEnabled=function(){return"atlassian"==this.getServiceName()};EditorUi.prototype.addRemoteServiceSecurityCheck=+function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,f,l,n,r,t,v,B){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,f,l,n,r,t,v,B)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=+function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,f)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,f,l,n,r,t,v,B,E,K,C,R,M,O,U,T){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,f,l,n,r,t,v,B,E,K,C,R,M,O,U,T)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");+return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,f,l,n){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(c,f,l,n)};EditorUi.prototype.convertImageToDataUri=function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,f)};EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=+function(c,f,l,n){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(c,f,l,n)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,f,l,n,r){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,f,l,n,r)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=+urlParams.forceMigration)return null;for(var c=[],f=0;f<localStorage.length;f++){var l=localStorage.key(f),n=localStorage.getItem(l);if(0<l.length&&(".scratchpad"==l||"."!=l.charAt(0))&&0<n.length){var r="<mxfile "===n.substring(0,8)||"<?xml"===n.substring(0,5)||"\x3c!--[if IE]>"===n.substring(0,12);n="<mxlibrary>"===n.substring(0,11);(r||n)&&c.push(l)}}return c};EditorUi.prototype.getLocalStorageFile=function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;+var f=localStorage.getItem(c);return{title:c,data:f,isLib:"<mxlibrary>"===f.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();+var CommentsWindow=function(b,k,m,g,q,u){function x(){for(var N=I.getElementsByTagName("div"),aa=0,ea=0;ea<N.length;ea++)"none"!=N[ea].style.display&&N[ea].parentNode==I&&aa++;L.style.display=0==aa?"block":"none"}function z(N){for(var aa=0;aa<y.length;aa++)if(null!=y[aa].email&&null!=N&&y[aa].email.toLowerCase()==N.toLowerCase())return y[aa].displayName||N;return N}function F(N){var aa=document.createElement("span");aa.className="geCommentMention";aa.setAttribute("data-mention",b.serializeMention(N));null!=N.email&&aa.setAttribute("data-email",N.email);aa.contentEditable="false";mxUtils.write(aa,"@"+(N.displayName||(null!=N.email?z(N.email):N.id)));return aa}function J(N,aa){N.innerText="";aa=null!=aa?aa:"";if(O){aa=b.parseMentionTokens(aa);for(var ea=0;ea<aa.length;ea++)"string"===typeof aa[ea]?mxUtils.write(N,aa[ea]):N.appendChild(F(aa[ea]))}else mxUtils.write(N,aa)}function H(N,aa,ea,la){function ra(sa){for(var Ea in Aa)for(var Ga=0;Ga<Aa[Ea].length;Ga++)sa(Aa[Ea][Ga],"down"==Ea?ka:"move"==Ea?ta:Ca)}function qa(sa){sa=mxUtils.convertPoint(za,mxEvent.getClientX(sa),mxEvent.getClientY(sa));return new mxPoint(sa.x/wa.view.scale-wa.view.translate.x,sa.y/wa.view.scale-wa.view.translate.y)}function na(){ra(function(sa,Ea){document.removeEventListener(sa,Ea,!0)});document.removeEventListener("keydown",ma,!0);window.setTimeout(function(){document.removeEventListener("click",ha,!0)},0);za.classList.remove("geCommentAnchorPicking");wa.setEnabled(Ba);null!=va&&null!=va.parentNode&&va.parentNode.removeChild(va)}-function xa(sa){na();null!=sa&&(N.anchor=sa,g(N,aa,ea))}var wa=b.editor.graph,za=wa.container,Ba=wa.isEnabled(),va=null,pa=null,ia=null,ja=null,oa=null;wa.setEnabled(!1);za.classList.add("geCommentAnchorPicking");var Aa=mxClient.IS_POINTER?{down:["pointerdown"],move:["pointermove"],up:["pointerup"]}:{down:["mousedown","touchstart"],move:["mousemove","touchmove"],up:["mouseup","touchend"]},ha=function(sa){za.contains(mxEvent.getSource(sa))&&mxEvent.consume(sa)},ma=function(sa){27==sa.keyCode&&(xa(null),+function xa(sa){na();null!=sa&&(N.anchor=sa,f(N,aa,ea))}var wa=b.editor.graph,za=wa.container,Ba=wa.isEnabled(),va=null,pa=null,ia=null,ja=null,oa=null;wa.setEnabled(!1);za.classList.add("geCommentAnchorPicking");var Aa=mxClient.IS_POINTER?{down:["pointerdown"],move:["pointermove"],up:["pointerup"]}:{down:["mousedown","touchstart"],move:["mousemove","touchmove"],up:["mouseup","touchend"]},ha=function(sa){za.contains(mxEvent.getSource(sa))&&mxEvent.consume(sa)},ma=function(sa){27==sa.keyCode&&(xa(null),mxEvent.consume(sa))},ka=function(sa){za.contains(mxEvent.getSource(sa))?(pa=qa(sa),ia=new mxPoint(mxEvent.getClientX(sa),mxEvent.getClientY(sa)),la&&(va=document.createElement("div"),va.className="geCommentAnchorPickPreview",za.appendChild(va)),mxEvent.consume(sa)):xa(null)},ta=function(sa){if(null!=pa&&(ja=qa(sa),oa=new mxPoint(mxEvent.getClientX(sa),mxEvent.getClientY(sa)),null!=va)){var Ea=wa.view.scale,Ga=wa.view.translate;va.style.left=Math.round((Math.min(pa.x,ja.x)+Ga.x)*Ea)+"px";va.style.top=Math.round((Math.min(pa.y,ja.y)+Ga.y)*Ea)+"px";va.style.width=Math.round(Math.abs(ja.x-pa.x)*Ea)+"px";va.style.height=Math.round(Math.abs(ja.y-pa.y)*Ea)+"px";mxEvent.consume(sa)}},Ca=function(sa){if(null!=pa)if(null==b.currentPage)xa(null);else{var Ea=b.currentPage.getId();if(la){var Ga=ja,La=oa;try{Ga=qa(sa),La=new mxPoint(mxEvent.getClientX(sa),mxEvent.getClientY(sa))}catch(Ha){}null==Ga||null==La||4>Math.abs(La.x-ia.x)&&4>Math.abs(La.y-ia.y)?xa(null):xa({p:Ea,r:{x:Math.round(Math.min(pa.x,Ga.x)),y:Math.round(Math.min(pa.y,Ga.y)),w:Math.round(Math.abs(Ga.x-pa.x)),h:Math.round(Math.abs(Ga.y-pa.y))}})}else xa({p:Ea,pt:{x:Math.round(pa.x),y:Math.round(pa.y)}});mxEvent.consume(sa)}};window.setTimeout(function(){ra(function(sa,Ea){document.addEventListener(sa,Ea,!0)});document.addEventListener("click",ha,!0);document.addEventListener("keydown",ma,!0)},0)}function D(N){N=null!=N?mxUtils.trim(N.replace(/\s+/g," ")):"";25<N.length&&(N=N.substring(0,25)+"…");return N}function c(N){var aa="";try{var ea=-b.editor.graph.getLabel(N);"string"===typeof ea&&(aa=Editor.convertHtmlToText(ea))}catch(la){}return D(aa)||mxResources.get("shape")}function g(N,aa,ea){function la(ja){if(ea){var oa=document.createElement("span");oa.className="geCommentAnchorRemove";oa.setAttribute("title",mxResources.get("remove"));mxUtils.write(oa,"×");mxEvent.addListener(oa,"click",function(Aa){N.anchor=null;g(N,aa,ea);Aa.preventDefault();mxEvent.consume(Aa)});ja.appendChild(oa)}}function ra(ja,oa,Aa,ha){var ma=document.createElement(ha?+b.editor.graph.getLabel(N);"string"===typeof ea&&(aa=Editor.convertHtmlToText(ea))}catch(la){}return D(aa)||mxResources.get("shape")}function f(N,aa,ea){function la(ja){if(ea){var oa=document.createElement("span");oa.className="geCommentAnchorRemove";oa.setAttribute("title",mxResources.get("remove"));mxUtils.write(oa,"×");mxEvent.addListener(oa,"click",function(Aa){N.anchor=null;f(N,aa,ea);Aa.preventDefault();mxEvent.consume(Aa)});ja.appendChild(oa)}}function ra(ja,oa,Aa,ha){var ma=document.createElement(ha?"span":"a");ma.className="geCommentAnchorChip"+(ha?" geCommentAnchorChipDeleted":"");ma.innerHTML=ja;ja=document.createElement("span");mxUtils.write(ja,oa);ma.appendChild(ja);ha||(null!=Aa&&ma.setAttribute("title",Aa),mxEvent.addListener(ma,"click",function(ka){b.gotoCommentAnchor(N);ka.preventDefault();mxEvent.consume(ka)}));la(ma);aa.appendChild(ma)}aa.innerText="";aa.style.display="";if(null!=N.getAnchorCellId()){var qa=b.getCommentAnchorCells(N),na=null,xa=null;if(0==qa.length)na=mxResources.get("shapeDeleted");else if(1==qa.length)na=c(qa[0]),xa=mxResources.get("shape");else{na=qa.length+" "+mxResources.get("cells");xa=[];for(var wa=0;wa<qa.length;wa++)xa.push(c(qa[wa]));xa=xa.join("\n")}ra('<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="8" cy="8" r="5"/><circle cx="8" cy="8" r="1.5" fill="currentColor" stroke="none"/><path d="M8 1.5v2M8 12.5v2M1.5 8h2M12.5 8h2"/></svg>',na,xa,0==qa.length)}else if(null!=N.getAnchorPageId())qa=b.getPageById(N.getAnchorPageId()),xa='<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 1.5h5.5L12.5 4.5v10h-8.5z M9.5 1.5v3h3"/></svg>',na=null,null!=N.getAnchorRect()?(xa='<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2.5" y="4" width="11" height="8" rx="1" stroke-dasharray="2.6 2.2"/></svg>',na="area"):null!=N.getAnchorPoint()&&(xa='<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M8 14.5s4.5-4.2 4.5-8a4.5 4.5 0 1 0-9 0c0 3.8 4.5 8 4.5 8z"/><circle cx="8" cy="6.5" r="1.5" fill="currentColor" stroke="none"/></svg>',na="point"),na=null==qa?mxResources.get("pageNotFound"):null!=na?mxResources.get(na):D(qa.getName())||mxResources.get("page"),ra(xa,na,null!=qa?qa.getName()||-mxResources.get("page"):null,null==qa);else if(ea&&null!=b.currentPage){var za=function(ja,oa,Aa){var ha=document.createElement("div");ha.className="geCommentMentionRow";ha.innerHTML=ja;ja=document.createElement("span");mxUtils.write(ja,oa);ha.appendChild(ja);mxEvent.addListener(ha,"mousedown",function(ma){Ba();Aa();g(N,aa,ea);ma.preventDefault();mxEvent.consume(ma)});pa.appendChild(ha)},Ba=function(){null!=pa&&null!=pa.parentNode&&pa.parentNode.removeChild(pa);pa=null;null!=ia&&(mxEvent.removeListener(document,+mxResources.get("page"):null,null==qa);else if(ea&&null!=b.currentPage){var za=function(ja,oa,Aa){var ha=document.createElement("div");ha.className="geCommentMentionRow";ha.innerHTML=ja;ja=document.createElement("span");mxUtils.write(ja,oa);ha.appendChild(ja);mxEvent.addListener(ha,"mousedown",function(ma){Ba();Aa();f(N,aa,ea);ma.preventDefault();mxEvent.consume(ma)});pa.appendChild(ha)},Ba=function(){null!=pa&&null!=pa.parentNode&&pa.parentNode.removeChild(pa);pa=null;null!=ia&&(mxEvent.removeListener(document,"mousedown",ia),ia=null)},va=document.createElement("a");va.className="geCommentAnchorChip geCommentAnchorAttach";va.setAttribute("title",mxResources.get("attach"));va.innerHTML='<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M8 2v8M4.5 6.5L8 10l3.5-3.5M3 13h10"/></svg>';na=document.createElement("span");mxUtils.write(na,mxResources.get("attach"));va.appendChild(na);var pa=null,ia=null;mxEvent.addListener(va,"click",function(ja){if(null!=pa)Ba();else if(null!=b.currentPage){var oa=b.editor.graph,Aa=b.currentPage.getId();pa=document.createElement("div");pa.className="geCommentMentionMenu";1==oa.getSelectionCount()?za('<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="8" cy="8" r="5"/><circle cx="8" cy="8" r="1.5" fill="currentColor" stroke="none"/><path d="M8 1.5v2M8 12.5v2M1.5 8h2M12.5 8h2"/></svg>',c(oa.getSelectionCell()),function(){N.anchor={p:Aa,c:oa.getSelectionCell().id}}):1<oa.getSelectionCount()&&za('<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="8" cy="8" r="5"/><circle cx="8" cy="8" r="1.5" fill="currentColor" stroke="none"/><path d="M8 1.5v2M8 12.5v2M1.5 8h2M12.5 8h2"/></svg>',oa.getSelectionCount()+" "+mxResources.get("cells"),function(){for(var ha=oa.getSelectionCells(),@@ -14776,14 +14865,14 @@ Editor.userImage);oa.appendChild(ja);ja=document.createElement("span");mxUtils.wmxEvent.consume(Aa)});na.appendChild(oa)})(wa[pa],pa)}var na=null,xa=0,wa=[],za=null,Ba=null,va=null;mxEvent.addListener(N,"keydown",function(pa){null==na||mxEvent.isConsumed(pa)||(40==pa.keyCode||38==pa.keyCode?(xa=(xa+(40==pa.keyCode?1:wa.length-1))%wa.length,ra(),pa.preventDefault(),mxEvent.consume(pa)):13!=pa.keyCode&&9!=pa.keyCode||mxEvent.isControlDown(pa)||mxEvent.isMetaDown(pa)?27==pa.keyCode&&(aa(),pa.preventDefault(),mxEvent.consume(pa)):(la(wa[xa]),pa.preventDefault(),mxEvent.consume(pa)))});mxEvent.addListener(N,"input",ra);mxEvent.addListener(N,"keyup",function(pa){37!=pa.keyCode&&39!=pa.keyCode&&35!=pa.keyCode&&36!=pa.keyCode||ra()});mxEvent.addListener(N,"blur",function(){window.setTimeout(aa,200)});mxEvent.addListener(N,"paste",function(pa){pa.preventDefault();pa=null!=pa.clipboardData?pa.clipboardData.getData("text/plain"):null;null!=pa&&0<pa.length&&document.execCommand("insertText",!1,pa)})}function r(N,aa){if(O){var ea=document.createElement("div");ea.contentEditable=!0;J(ea,N);n(ea)}else ea=document.createElement("textarea"),ea.value=N;ea.className="geCommentEditTxtArea";ea.style.minHeight=aa+"px";return ea}function t(N,aa,ea,la){function ra(){aa.removeChild(za);aa.removeChild(va);na.style.display="block";qa.style.display="block"}p={div:aa,comment:N,saveCallback:ea,deleteOnCancel:la};for(var qa=aa.querySelector(".geCommentTxt"),na=aa.querySelector(".geCommentActionsList"),xa=aa.querySelectorAll(".geCommentEditTxtArea, .geCommentEditBtns, .geCommentAnchorRowEdit"),wa=-0;wa<xa.length;wa++)xa[wa].parentNode==aa&&aa.removeChild(xa[wa]);var za=r(N.content,qa.offsetHeight);aa.insertBefore(za,qa);var Ba=null;fa&&null==N.id&&null==N.pCommentId&&(Ba=document.createElement("div"),Ba.className="geCommentAnchorRow geCommentAnchorRowEdit",g(N,Ba,!0),aa.insertBefore(Ba,qa));var va=document.createElement("div");va.className="geCommentEditBtns";var pa=mxUtils.button(mxResources.get("cancel"),function(){la?(aa.parentNode.removeChild(aa),x()):ra();p=null});pa.className="geCommentEditBtn";-va.appendChild(pa);var ia=mxUtils.button(mxResources.get("save"),function(){N.content=l(za);J(qa,N.content);ra();null!=Ba&&g(N,Ba,!1);ea(N);p=null});mxEvent.addListener(za,"keydown",mxUtils.bind(this,function(ja){mxEvent.isConsumed(ja)||((mxEvent.isControlDown(ja)||mxClient.IS_MAC&&mxEvent.isMetaDown(ja))&&13==ja.keyCode?(ia.click(),mxEvent.consume(ja)):27==ja.keyCode&&(pa.click(),mxEvent.consume(ja)))}));ia.focus();ia.className="geCommentEditBtn gePrimaryBtn";va.appendChild(ia);aa.insertBefore(va,+0;wa<xa.length;wa++)xa[wa].parentNode==aa&&aa.removeChild(xa[wa]);var za=r(N.content,qa.offsetHeight);aa.insertBefore(za,qa);var Ba=null;fa&&null==N.id&&null==N.pCommentId&&(Ba=document.createElement("div"),Ba.className="geCommentAnchorRow geCommentAnchorRowEdit",f(N,Ba,!0),aa.insertBefore(Ba,qa));var va=document.createElement("div");va.className="geCommentEditBtns";var pa=mxUtils.button(mxResources.get("cancel"),function(){la?(aa.parentNode.removeChild(aa),x()):ra();p=null});pa.className="geCommentEditBtn";+va.appendChild(pa);var ia=mxUtils.button(mxResources.get("save"),function(){N.content=l(za);J(qa,N.content);ra();null!=Ba&&f(N,Ba,!1);ea(N);p=null});mxEvent.addListener(za,"keydown",mxUtils.bind(this,function(ja){mxEvent.isConsumed(ja)||((mxEvent.isControlDown(ja)||mxClient.IS_MAC&&mxEvent.isMetaDown(ja))&&13==ja.keyCode?(ia.click(),mxEvent.consume(ja)):27==ja.keyCode&&(pa.click(),mxEvent.consume(ja)))}));ia.focus();ia.className="geCommentEditBtn gePrimaryBtn";va.appendChild(ia);aa.insertBefore(va,qa);na.style.display="none";qa.style.display="none";za.focus()}function v(N,aa){aa.innerText="";N=new Date(N.modifiedDate);var ea=b.timeSince(N);null==ea&&(ea=mxResources.get("lessThanAMinute"));mxUtils.write(aa,mxResources.get("timeAgo",[ea],"{1} ago"));aa.setAttribute("title",N.toLocaleDateString()+" "+N.toLocaleTimeString())}function B(N){var aa=document.createElement("img");aa.className="geCommentBusyImg";aa.src=IMAGE_PATH+"/spin.gif";N.appendChild(aa);N.busyImg=aa}function E(N){N.style.border="1px solid red";N.busyImg.parentNode==N&&N.removeChild(N.busyImg)}function K(N){N.style.border="";N.busyImg.parentNode==N&&N.removeChild(N.busyImg)}function C(N,aa,ea,la,ra){function qa(ia,ja,oa){var Aa=document.createElement("li");Aa.className="geCommentAction";var ha=document.createElement("a");ha.className="geCommentActionLnk";mxUtils.write(ha,ia);Aa.appendChild(ha);mxEvent.addListener(ha,"click",function(ma){ja(ma,N);ma.preventDefault();mxEvent.consume(ma)});pa.appendChild(Aa);oa&&(Aa.style.display="none")}function na(){function ia(Aa){ja.push(oa);if(null!=Aa.replies)for(var ha=0;ha<Aa.replies.length;ha++)oa=oa.nextSibling,ia(Aa.replies[ha])}var ja=[],oa=wa;ia(N);return{pdiv:oa,replies:ja}}function xa(ia,ja,oa,Aa,ha){function ma(){B(sa);N.addReply(Ca,function(Ea){Ca.id=Ea;N.replies.push(Ca);K(sa);oa&&oa();b.commentsUpdated()},function(Ea){ka();E(sa);b.handleError(Ea,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},Aa,ha)}function ka(){t(Ca,sa,function(Ea){ma()},!0)}var ta=na().pdiv,Ca=b.newComment(ia,b.getCurrentUser());Ca.pCommentId=N.id;null==N.replies&&(N.replies=[]);var sa=C(Ca,N.replies,ta,la+1);ja?ka():ma()}if(ra||!N.isResolved){L.style.display="none";var wa=document.createElement("div");wa.className="geCommentContainer";wa.setAttribute("data-commentId",N.id);wa.style.marginLeft=20*la+5+"px";N.isResolved&&(A.style.opacity="0.7");var za=document.createElement("div");za.className="geCommentHeader";var Ba=document.createElement("img");Ba.className="geCommentUserImg";Ba.src=null!=N.user&&null!=N.user.pictureUrl?N.user.pictureUrl:Editor.userImage;za.appendChild(Ba);Ba=document.createElement("div");Ba.className="geCommentHeaderTxt";za.appendChild(Ba);var va=document.createElement("div");va.className="geCommentUsername";mxUtils.write(va,null!=N.user?N.user.displayName:mxResources.get("unknownUser"));Ba.appendChild(va);va=document.createElement("div");va.className="geCommentDate";va.setAttribute("data-commentId",N.id);v(N,va);Ba.appendChild(va);wa.appendChild(za);-fa&&0==la&&null!=N.getAnchorCellId&&null!=N.anchor&&(null!=N.getAnchorCellIds()&&wa.setAttribute("data-anchor-cell",N.getAnchorCellIds().join(",")),null!=N.id&&(za=document.createElement("div"),za.className="geCommentAnchorRow",g(N,za,!1),wa.appendChild(za)));za=document.createElement("div");za.className="geCommentTxt";J(za,N.content);wa.appendChild(za);N.isLocked&&(wa.style.opacity="0.5");za=document.createElement("div");za.className="geCommentActions";var pa=document.createElement("ul");pa.className=+fa&&0==la&&null!=N.getAnchorCellId&&null!=N.anchor&&(null!=N.getAnchorCellIds()&&wa.setAttribute("data-anchor-cell",N.getAnchorCellIds().join(",")),null!=N.id&&(za=document.createElement("div"),za.className="geCommentAnchorRow",f(N,za,!1),wa.appendChild(za)));za=document.createElement("div");za.className="geCommentTxt";J(za,N.content);wa.appendChild(za);N.isLocked&&(wa.style.opacity="0.5");za=document.createElement("div");za.className="geCommentActions";var pa=document.createElement("ul");pa.className="geCommentActionsList";za.appendChild(pa);R||N.isLocked||0!=la&&!M||qa(mxResources.get("reply"),function(){xa("",!0)},N.isResolved);Ba=b.getCurrentUser();null==Ba||null==N.user||Ba.id!=N.user.id||R||N.isLocked||(qa(mxResources.get("edit"),function(){function ia(){t(N,wa,function(){B(wa);N.editComment(N.content,function(){K(wa);b.commentsUpdated()},function(ja){E(wa);ia();b.handleError(ja,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}ia()},N.isResolved),qa(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){B(wa);N.deleteComment(function(ia){if(!0===ia){ia=wa.querySelector(".geCommentTxt");ia.innerText="";mxUtils.write(ia,mxResources.get("msgDeleted"));var ja=wa.querySelectorAll(".geCommentAction");for(ia=0;ia<ja.length;ia++)ja[ia].parentNode.removeChild(ja[ia]);K(wa);wa.style.opacity="0.5"}else{ja=na(N).replies;for(ia=0;ia<ja.length;ia++)I.removeChild(ja[ia]);for(ia=0;ia<aa.length;ia++)if(aa[ia]==N){aa.splice(ia,1);break}L.style.display=0==I.getElementsByTagName("div").length?"block":"none"}b.commentsUpdated()},function(ia){E(wa);b.handleError(ia,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},N.isResolved));R||N.isLocked||0!=la||qa(N.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(ia){function ja(){var oa=ia.target;oa.innerText="";N.isResolved=!N.isResolved;mxUtils.write(oa,N.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var Aa=N.isResolved?"none":"",ha=@@ -14798,17 +14887,17 @@ mxEvent.consume(N)}),P.appendChild(ba));b.commentsSaveNeeded()&&(G=G.cloneNode()null!=ea&&(p.comment.content=l(ea))}ea=I.scrollTop;I.innerText="";I.appendChild(L);L.style.display="block";X=N;for(N=0;N<X.length;N++)aa(X[N].replies),C(X[N],X,null,0,Y);null!=p&&null==p.comment.id&&null==p.comment.pCommentId&&(I.appendChild(p.div),t(p.comment,p.div,p.saveCallback,p.deleteOnCancel));I.scrollTop=ea;ca(!0)}),Z=mxUtils.bind(this,function(){this.hasError=!1;if(null!=p)try{p.div=p.div.cloneNode(!0);var N=p.div.querySelector(".geCommentEditTxtArea"),aa=p.div.querySelector(".geCommentEditBtns");p.comment.content=l(N);N.parentNode.removeChild(N);aa.parentNode.removeChild(aa)}catch(ea){b.handleError(ea)}M=b.canReplyToReplies();b.commentsSupported()?(null!=b.getCommentCacheTarget().commentCache?null==p&&S(b.getCommentCacheTarget().commentCache):I.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>",b.refreshCommentCache(mxUtils.bind(this,function(ea){null!=ea&&null!=p&&S(ea)}),mxUtils.bind(this,function(ea){null==b.getCommentCacheTarget().commentCache&&(I.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(ea&&ea.message?": "+ea.message:"")),this.hasError=!0)}))):I.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))}),da=mxUtils.bind(this,function(){if(null==p){var N=b.getCommentCacheTarget().commentCache;null!=N&&(this.hasError=!1,S(N))}});b.addListener("commentsChanged",da);Z();this.refreshComments=Z;P=mxUtils.bind(this,function(){function N(qa){var na=-ea[qa.id];if(null!=na)for(v(qa,na),na=0;null!=qa.replies&&na<qa.replies.length;na++)N(qa.replies[na])}if(this.window.isVisible()){for(var aa=I.querySelectorAll(".geCommentDate"),ea={},la=0;la<aa.length;la++){var ra=aa[la];ea[ra.getAttribute("data-commentId")]=ra}for(la=0;la<X.length;la++)N(X[la])}});setInterval(P,6E4);this.refreshCommentsTime=P;this.window=new mxWindow(mxResources.get("comments"),A,k,m,f,q,!0,!0);this.window.minimumSize=new mxRectangle(0,0,260,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);-this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!0,function(){b.removeListener(da)})},ConfirmDialog=function(b,k,m,f,q,u,x,z,F,J,H){var D=document.createElement("div");D.style.textAlign="center";H=null!=H?H:44;var c=document.createElement("div");c.style.padding="6px";c.style.overflow="auto";c.style.maxHeight=H+"px";c.style.lineHeight="1.2em";mxUtils.write(c,-k);D.appendChild(c);null!=J&&(c=document.createElement("div"),c.style.padding="6px 0 6px 0",k=document.createElement("img"),k.setAttribute("src",J),c.appendChild(k),D.appendChild(c));J=document.createElement("div");J.style.textAlign="center";J.style.whiteSpace="nowrap";var g=document.createElement("input");g.setAttribute("type","checkbox");u=mxUtils.button(u||mxResources.get("cancel"),function(){b.hideDialog();null!=f&&f(g.checked)});u.className="geBtn";null!=z&&(u.innerHTML=z+"<br>"+u.innerHTML,-u.style.display="inline-block",u.style.paddingBottom="8px",u.style.paddingTop="8px",u.style.height="auto",u.style.width="40%");b.editor.cancelFirst&&J.appendChild(u);var l=mxUtils.button(q||mxResources.get("ok"),function(){b.hideDialog();null!=m&&m(g.checked)});J.appendChild(l);null!=x?(l.innerHTML=x+"<br>"+l.innerHTML+"<br>",l.style.display="inline-block",l.style.paddingBottom="8px",l.style.paddingTop="8px",l.style.height="auto",l.className="geBtn",l.style.width="40%"):l.className="geBtn gePrimaryBtn";-b.editor.cancelFirst||J.appendChild(u);D.appendChild(J);F?(J.style.marginTop="10px",c=document.createElement("p"),c.style.marginTop="20px",c.style.marginBottom="0px",c.appendChild(g),q=document.createElement("span"),mxUtils.write(q," "+mxResources.get("rememberThisSetting")),c.appendChild(q),D.appendChild(c),mxEvent.addListener(q,"click",function(n){g.checked=!g.checked;mxEvent.consume(n)})):J.style.marginTop="12px";this.init=function(){l.focus()};this.container=D},HeadlessEditorUi=function(){EditorUi.call(this,-new Editor(!0),document.createElement("div"),!0)};mxUtils.extend(HeadlessEditorUi,EditorUi);HeadlessEditorUi.prototype.createUi=function(){};HeadlessEditorUi.prototype.addTrees=function(){};HeadlessEditorUi.prototype.onBeforeUnload=function(){};HeadlessEditorUi.prototype.updateActionStates=function(){};var DrawioConfigEditor={installCss:function(){if(null==document.getElementById("geConfigEditorStyle")){var b=document.createElement("style");b.id="geConfigEditorStyle";b.textContent=DrawioConfigEditor.css;document.head.appendChild(b)}},install:function(b,k){function m(){if("function"===typeof k.onConfigChanged)k.onConfigChanged(JSON.parse(JSON.stringify(V)))}function f(S){var Z=document.createElement("div");Z.appendChild(document.createTextNode(S));return Z.innerHTML}function q(S){return b.querySelector(S)}+ea[qa.id];if(null!=na)for(v(qa,na),na=0;null!=qa.replies&&na<qa.replies.length;na++)N(qa.replies[na])}if(this.window.isVisible()){for(var aa=I.querySelectorAll(".geCommentDate"),ea={},la=0;la<aa.length;la++){var ra=aa[la];ea[ra.getAttribute("data-commentId")]=ra}for(la=0;la<X.length;la++)N(X[la])}});setInterval(P,6E4);this.refreshCommentsTime=P;this.window=new mxWindow(mxResources.get("comments"),A,k,m,g,q,!0,!0);this.window.minimumSize=new mxRectangle(0,0,260,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);+this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!0,function(){b.removeListener(da)})},ConfirmDialog=function(b,k,m,g,q,u,x,z,F,J,H){var D=document.createElement("div");D.style.textAlign="center";H=null!=H?H:44;var c=document.createElement("div");c.style.padding="6px";c.style.overflow="auto";c.style.maxHeight=H+"px";c.style.lineHeight="1.2em";mxUtils.write(c,+k);D.appendChild(c);null!=J&&(c=document.createElement("div"),c.style.padding="6px 0 6px 0",k=document.createElement("img"),k.setAttribute("src",J),c.appendChild(k),D.appendChild(c));J=document.createElement("div");J.style.textAlign="center";J.style.whiteSpace="nowrap";var f=document.createElement("input");f.setAttribute("type","checkbox");u=mxUtils.button(u||mxResources.get("cancel"),function(){b.hideDialog();null!=g&&g(f.checked)});u.className="geBtn";null!=z&&(u.innerHTML=z+"<br>"+u.innerHTML,+u.style.display="inline-block",u.style.paddingBottom="8px",u.style.paddingTop="8px",u.style.height="auto",u.style.width="40%");b.editor.cancelFirst&&J.appendChild(u);var l=mxUtils.button(q||mxResources.get("ok"),function(){b.hideDialog();null!=m&&m(f.checked)});J.appendChild(l);null!=x?(l.innerHTML=x+"<br>"+l.innerHTML+"<br>",l.style.display="inline-block",l.style.paddingBottom="8px",l.style.paddingTop="8px",l.style.height="auto",l.className="geBtn",l.style.width="40%"):l.className="geBtn gePrimaryBtn";+b.editor.cancelFirst||J.appendChild(u);D.appendChild(J);F?(J.style.marginTop="10px",c=document.createElement("p"),c.style.marginTop="20px",c.style.marginBottom="0px",c.appendChild(f),q=document.createElement("span"),mxUtils.write(q," "+mxResources.get("rememberThisSetting")),c.appendChild(q),D.appendChild(c),mxEvent.addListener(q,"click",function(n){f.checked=!f.checked;mxEvent.consume(n)})):J.style.marginTop="12px";this.init=function(){l.focus()};this.container=D},HeadlessEditorUi=function(){EditorUi.call(this,+new Editor(!0),document.createElement("div"),!0)};mxUtils.extend(HeadlessEditorUi,EditorUi);HeadlessEditorUi.prototype.createUi=function(){};HeadlessEditorUi.prototype.addTrees=function(){};HeadlessEditorUi.prototype.onBeforeUnload=function(){};HeadlessEditorUi.prototype.updateActionStates=function(){};var DrawioConfigEditor={installCss:function(){if(null==document.getElementById("geConfigEditorStyle")){var b=document.createElement("style");b.id="geConfigEditorStyle";b.textContent=DrawioConfigEditor.css;document.head.appendChild(b)}},install:function(b,k){function m(){if("function"===typeof k.onConfigChanged)k.onConfigChanged(JSON.parse(JSON.stringify(V)))}function g(S){var Z=document.createElement("div");Z.appendChild(document.createTextNode(S));return Z.innerHTML}function q(S){return b.querySelector(S)}function u(S){return b.querySelectorAll(S)}function x(S){if("undefined"!==typeof mxResources){var Z=mxResources.get(S);if(null!=Z&&0<Z.length&&Z!=S)return Z}return null}function z(S){var Z=x(S);return null!=Z?Z:S}function F(S){return"cfg"+S.charAt(0).toUpperCase()+S.substring(1)}function J(S,Z){null!=S.firstChild&&3==S.firstChild.nodeType||S.insertBefore(S.ownerDocument.createTextNode(""),S.firstChild);S.firstChild.nodeValue=Z}function H(){Object.keys(L).forEach(function(S){var Z=u("#"+S+" .toggle-field");L[S].forEach(function(da,N){N=Z[N];if(null!=N){da=da.i18n||F(da.key);var aa=x(da),ea=x(da+"Help");J(N.querySelector(".toggle-field__name"),null!=aa?aa:da);J(N.querySelector(".toggle-field__help"),null!=ea?ea+" ":"");da=N.querySelector(".toggle-field__experimental");null!=da&&da.setAttribute("title",z("cfgExperimental"));N=N.querySelectorAll(".tri-toggle button");da=[z("cfgNotSet"),z("cfgEnabled"),z("disabled")];for(aa=0;aa<N.length;aa++)N[aa].setAttribute("title",da[aa])}})})}function D(S){delete A[S.getAttribute("data-key")];-S.classList.remove("input--invalid");S.removeAttribute("aria-invalid");S=S.nextElementSibling;null!=S&&S.classList.contains("field__error")&&S.parentNode.removeChild(S)}function c(S){var Z=q("#"+S+"-tags"),da="";fa[S].forEach(function(N,aa){var ea=null!==N&&"object"===typeof N,la=ea?String(N.fontFamily||""):String(N);N=ea&&N.fontUrl?String(N.fontUrl):null;da+='<span class="tag"'+(null!=N?' title="'+f(N).replace(/"/g,""").replace(/'/g,"'")+'"':"")+"><span>"+f(la)+"</span>"+(null!=N?'<span class="tag__link">↗</span>':-"")+'<button type="button" class="tag__remove" data-list="'+S+'" data-index="'+aa+'">×</button></span>'});Z.innerHTML=da;Z.querySelectorAll(".tag__remove").forEach(function(N){N.addEventListener("click",function(){fa[N.getAttribute("data-list")].splice(parseInt(N.getAttribute("data-index")),1);g(N.getAttribute("data-list"));c(N.getAttribute("data-list"))})})}function g(S){0<fa[S].length?V[S]=fa[S].slice():delete V[S];m()}function l(S){function Z(){var ea=N.value.trim(),la=aa.value.trim();ea&&-(fa[S].push(la?{fontFamily:ea,fontUrl:la}:ea),N.value="",aa.value="",g(S),c(S))}function da(ea){"Enter"===ea.key&&(ea.preventDefault(),Z())}var N=q("#"+S+"-input"),aa=q("#"+S+"-url");q("#"+S+"-add").addEventListener("click",Z);N.addEventListener("keydown",da);aa.addEventListener("keydown",da);c(S)}function n(S){var Z=q("#"+S+"-list");Z.innerHTML="";y[S].forEach(function(da,N){var aa="none"===da||"null"===da,ea=document.createElement("div");ea.className="color-swatch";ea.title=aa?da:"#"+da;aa?ea.style.cssText=+S.classList.remove("input--invalid");S.removeAttribute("aria-invalid");S=S.nextElementSibling;null!=S&&S.classList.contains("field__error")&&S.parentNode.removeChild(S)}function c(S){var Z=q("#"+S+"-tags"),da="";fa[S].forEach(function(N,aa){var ea=null!==N&&"object"===typeof N,la=ea?String(N.fontFamily||""):String(N);N=ea&&N.fontUrl?String(N.fontUrl):null;da+='<span class="tag"'+(null!=N?' title="'+g(N).replace(/"/g,""").replace(/'/g,"'")+'"':"")+"><span>"+g(la)+"</span>"+(null!=N?'<span class="tag__link">↗</span>':+"")+'<button type="button" class="tag__remove" data-list="'+S+'" data-index="'+aa+'">×</button></span>'});Z.innerHTML=da;Z.querySelectorAll(".tag__remove").forEach(function(N){N.addEventListener("click",function(){fa[N.getAttribute("data-list")].splice(parseInt(N.getAttribute("data-index")),1);f(N.getAttribute("data-list"));c(N.getAttribute("data-list"))})})}function f(S){0<fa[S].length?V[S]=fa[S].slice():delete V[S];m()}function l(S){function Z(){var ea=N.value.trim(),la=aa.value.trim();ea&&+(fa[S].push(la?{fontFamily:ea,fontUrl:la}:ea),N.value="",aa.value="",f(S),c(S))}function da(ea){"Enter"===ea.key&&(ea.preventDefault(),Z())}var N=q("#"+S+"-input"),aa=q("#"+S+"-url");q("#"+S+"-add").addEventListener("click",Z);N.addEventListener("keydown",da);aa.addEventListener("keydown",da);c(S)}function n(S){var Z=q("#"+S+"-list");Z.innerHTML="";y[S].forEach(function(da,N){var aa="none"===da||"null"===da,ea=document.createElement("div");ea.className="color-swatch";ea.title=aa?da:"#"+da;aa?ea.style.cssText="background: transparent; background-image: linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%), linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%); background-size: 8px 8px; background-position: 0 0, 4px 4px;":ea.style.background="#"+da;if(!aa){var la=document.createElement("input");la.type="color";la.className="color-swatch__picker";la.value="#"+(3===da.length?da[0]+da[0]+da[1]+da[1]+da[2]+da[2]:da.padEnd(6,"0"));la.addEventListener("input",function(ra){return function(){var qa=la.value.substring(1).toUpperCase();y[S][ra]=qa;ea.style.background="#"+qa;ea.title="#"+qa;r(S)}}(N));ea.appendChild(la)}da=document.createElement("button");da.className="color-swatch__delete";da.textContent="×";da.addEventListener("click",function(ra){return function(qa){qa.stopPropagation();y[S].splice(ra,1);r(S);n(S)}}(N));ea.appendChild(da);Z.appendChild(ea)})}function r(S){0<y[S].length?V[S]=y[S].slice():delete V[S];m()}function t(S){function Z(){var ea=N.value.trim().replace(/^#/,"");"none"===ea||"null"===ea?(y[S].push(ea),N.value="",r(S),n(S)):/^[0-9A-Fa-f]{3,8}$/.test(ea)&&(y[S].push(ea.toUpperCase()),N.value="",r(S),n(S))}var da=q("#"+S+"-picker"),N=q("#"+S+"-input"),aa=q("#"+S+"-add");da.addEventListener("input",function(){N.value=da.value.substring(1).toUpperCase()});aa.addEventListener("click",Z);N.addEventListener("keydown",function(ea){"Enter"===ea.key&&(ea.preventDefault(),Z())});n(S)}function v(S){var Z=q("#"+S+"-editor");Z.innerHTML="";p[S].forEach(function(da,N){var aa=document.createElement("div");@@ -14818,7 +14907,7 @@ ia.value;B(S)}}(N,xa,Ba));pa.appendChild(ia);var ja=document.createElement("spanva.appendChild(ja);va.appendChild(oa);aa.appendChild(va)}})});da=document.createElement("span");da.className="color-scheme-row__actions";ea=document.createElement("button");ea.className="color-scheme-row__btn";ea.textContent="+";ea.title="Add colour entry";ea.addEventListener("click",function(na){return function(){p[S][na].push({fill:"#dae8fc",stroke:"#6c8ebf"});B(S);v(S)}}(N));var la=document.createElement("button");la.className="color-scheme-row__btn";la.textContent="ø";la.title="Add default (null) entry";la.addEventListener("click",function(na){return function(){p[S][na].unshift(null);B(S);v(S)}}(N));var ra=document.createElement("button");ra.className="color-scheme-row__btn";ra.title="Add colour key to last entry";ra.textContent="key";ra.addEventListener("click",function(na){return function(){for(var xa=p[S][na],wa=null,za=xa.length-1;0<=za;za--)if(null!==xa[za]){wa=xa[za];break}if(wa){xa=null;for(za=0;za<P.length;za++)if(!wa[P[za]]){xa=P[za];break}xa&&(wa[xa]="#888888",B(S),v(S))}}}(N));var qa=document.createElement("button");qa.className="color-scheme-row__btn";qa.textContent="−";qa.title="Remove row";qa.addEventListener("click",function(na){return function(){p[S].splice(na,1);B(S);v(S)}}(N));da.appendChild(la);da.appendChild(ea);da.appendChild(ra);da.appendChild(qa);aa.appendChild(da);Z.appendChild(aa)})}function B(S){0<p[S].length?V[S]=JSON.parse(JSON.stringify(p[S])):delete V[S];m()}function E(S){q("#"+S+"-addRow").addEventListener("click",function(){p[S].push([null,{fill:"#f5f5f5",-stroke:"#666666"}]);B(S);v(S)});v(S)}function K(S){var Z=q("#"+S+"-tags"),da="";d[S].forEach(function(N,aa){da+='<span class="tag"><span>'+f(N)+'</span><button type="button" class="tag__remove" data-list="'+S+'" data-index="'+aa+'">×</button></span>'});Z.innerHTML=da;Z.querySelectorAll(".tag__remove").forEach(function(N){N.addEventListener("click",function(){d[N.getAttribute("data-list")].splice(parseInt(N.getAttribute("data-index")),1);C(N.getAttribute("data-list"));K(N.getAttribute("data-list"))})})}+stroke:"#666666"}]);B(S);v(S)});v(S)}function K(S){var Z=q("#"+S+"-tags"),da="";d[S].forEach(function(N,aa){da+='<span class="tag"><span>'+g(N)+'</span><button type="button" class="tag__remove" data-list="'+S+'" data-index="'+aa+'">×</button></span>'});Z.innerHTML=da;Z.querySelectorAll(".tag__remove").forEach(function(N){N.addEventListener("click",function(){d[N.getAttribute("data-list")].splice(parseInt(N.getAttribute("data-index")),1);C(N.getAttribute("data-list"));K(N.getAttribute("data-list"))})})}function C(S){0<d[S].length?V[S]=d[S].slice():delete V[S];m()}function R(S){function Z(){var N=da.value.trim();N&&(d[S].push(N),da.value="",C(S),K(S))}var da=q("#"+S+"-input");q("#"+S+"-add").addEventListener("click",Z);da.addEventListener("keydown",function(N){"Enter"===N.key&&(N.preventDefault(),Z())});K(S)}function M(S){var Z=V.defaultMacroParameters||{},da=Q[S];da.selects.forEach(function(N){q("#"+S+"-"+N).value=Z[N]||""});da.numbers.forEach(function(N){q("#"+S+"-"+N).value=void 0!==Z[N]?Z[N]:""});da.booleans.forEach(function(N){var aa=q("#"+S+"-"+N);void 0!==Z[N]?(aa.checked=Z[N],aa.indeterminate=!1,aa.dataset.cycleState=Z[N]?"checked":"unchecked"):(aa.checked=!1,aa.indeterminate=!0,aa.dataset.cycleState="indeterminate")})}function O(S){S=S||{};V={};fa={defaultFonts:[],customFonts:[]};y={presetColors:[],customPresetColors:[],defaultColors:[]};d={enabledLibraries:[],defaultCustomLibraries:[],hideMenuItems:[],hideMenus:[],enabledTemplateSections:[],defaultLanguages:[]};p={defaultColorSchemes:[],customColorSchemes:[]};Object.keys(S).forEach(function(Z){var da=S[Z];"defaultFonts"===Z||"customFonts"===Z?Array.isArray(da)&&(fa[Z]=da.slice(),V[Z]=da):"presetColors"===Z||"customPresetColors"===Z||"defaultColors"===Z?Array.isArray(da)&&(y[Z]=da.map(function(N){return N||""}),V[Z]=da):"defaultColorSchemes"===Z||"customColorSchemes"===Z?Array.isArray(da)&&(p[Z]=JSON.parse(JSON.stringify(da)),V[Z]=da):"enabledLibraries"===Z||"defaultCustomLibraries"===Z||"hideMenuItems"===Z||"hideMenus"===Z||"enabledTemplateSections"===@@ -14851,48 +14940,48 @@ S.querySelectorAll("input, select, textarea").forEach(function(N){N.id&&(da+=" "b.classList.add("dark");k.highContrast&&b.classList.add("high-contrast");return{setConfig:function(S){O(S||{})},getConfig:function(){return JSON.parse(JSON.stringify(V))},getInvalidFields:function(){return Object.keys(A).map(function(S){return A[S]})},setDarkMode:function(S){b.classList.toggle("dark",!!S)},setHighContrast:function(S){b.classList.toggle("high-contrast",!!S)}}},css:'.geConfigEditor {\n --drawio-blue: #29b6f2;\n --drawio-blue-hover: #1aa3e0;\n --color-bg: #f0f0f0;\n --color-bg-dark: #2a2a2a;\n --color-bg-secondary: #e4e4e4;\n --color-bg-secondary-dark: #333333;\n --color-bg-tertiary: #dadada;\n --color-bg-tertiary-dark: #3d3d3d;\n --color-input: #ffffff;\n --color-input-dark: #1e2022;\n --color-text: #3F3F3F;\n --color-text-dark: #C0C0C0;\n --color-text-secondary: #6c757d;\n --color-text-secondary-dark: #999999;\n --color-border: #dadada;\n --color-border-dark: #404040;\n --color-border-focus: var(--drawio-blue);\n --color-success: #198754;\n --color-error: #dc3545;\n --color-warning-bg: #fff3cd;\n --color-scrollbar: #e2e2e2;\n --color-scrollbar-dark: #3d3d3d;\n --color-scrollbar-hover: #959798;\n --color-scrollbar-hover-dark: #555555;\n --spacing-xs: 4px;\n --spacing-sm: 8px;\n --spacing-md: 12px;\n --spacing-lg: 16px;\n --radius-sm: 4px;\n --radius-md: 6px;\n --radius-lg: 8px;\n --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", system-ui, ui-sans-serif, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";\n --font-family-mono: ui-monospace, SFMono-Regular, Consolas, monospace;\n --font-size-xs: 11px;\n --font-size-sm: 12px;\n --font-size-base: 13px;\n --transition-fast: 150ms ease;\n font-family: var(--font-family);\n font-size: var(--font-size-base);\n background: light-dark(var(--color-bg), var(--color-bg-dark));\n color: light-dark(var(--color-text), var(--color-text-dark));\n line-height: 1.5;\n overflow-y: auto;\n padding: 0 8px;\n}\n.geConfigEditor { box-sizing: border-box; margin: 0; }\n.geConfigEditor *, .geConfigEditor *::before, .geConfigEditor *::after { box-sizing: border-box; margin: 0; padding: 0; }\n.geConfigEditor.dark { color-scheme: dark; }\n.geConfigEditor::-webkit-scrollbar, .geConfigEditor ::-webkit-scrollbar { width: 10px; height: 10px; }\n.geConfigEditor::-webkit-scrollbar-track, .geConfigEditor ::-webkit-scrollbar-track { background-clip: padding-box; border: solid transparent; border-width: 1px; }\n.geConfigEditor::-webkit-scrollbar-corner, .geConfigEditor ::-webkit-scrollbar-corner { background-color: transparent; }\n.geConfigEditor::-webkit-scrollbar-thumb, .geConfigEditor ::-webkit-scrollbar-thumb { background-color: light-dark(var(--color-scrollbar), var(--color-scrollbar-dark)); background-clip: padding-box; border: solid transparent; border-radius: 4px; }\n.geConfigEditor::-webkit-scrollbar-thumb:hover, .geConfigEditor ::-webkit-scrollbar-thumb:hover { background-color: light-dark(var(--color-scrollbar-hover), var(--color-scrollbar-hover-dark)); }\n.geConfigEditor input[type="text"], .geConfigEditor input[type="url"], .geConfigEditor input[type="number"], .geConfigEditor textarea, .geConfigEditor select {\n font-family: inherit;\n font-size: var(--font-size-base);\n padding: 5px 8px;\n border: 1px solid light-dark(var(--color-border), var(--color-border-dark));\n border-radius: var(--radius-md);\n background: light-dark(var(--color-input), var(--color-input-dark));\n color: light-dark(var(--color-text), var(--color-text-dark));\n width: 100%;\n transition: border-color var(--transition-fast);\n}\n.geConfigEditor input:focus, .geConfigEditor textarea:focus, .geConfigEditor select:focus {\n outline: none;\n border-color: var(--color-border-focus);\n box-shadow: 0 0 0 2px rgba(41, 182, 242, 0.15);\n}\n.geConfigEditor textarea { font-family: var(--font-family-mono); resize: vertical; min-height: 60px; }\n.geConfigEditor input.input--invalid, .geConfigEditor textarea.input--invalid { border-color: var(--color-error); }\n.geConfigEditor input.input--invalid:focus, .geConfigEditor textarea.input--invalid:focus { border-color: var(--color-error); box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15); }\n.geConfigEditor label { display: block; font-weight: 500; margin-bottom: 2px; font-size: var(--font-size-sm); }\n.geConfigEditor .btn {\n display: inline-flex; align-items: center; padding: 4px 8px;\n font-family: inherit; font-size: var(--font-size-xs); font-weight: 500;\n border: none; border-radius: var(--radius-md); cursor: pointer;\n}\n.geConfigEditor .btn--secondary { background: light-dark(var(--color-bg-tertiary), var(--color-bg-tertiary-dark)); color: light-dark(var(--color-text-secondary), var(--color-text-secondary-dark)); }\n.geConfigEditor .btn--secondary:hover { background: light-dark(var(--color-border), var(--color-border-dark)); }\n.geConfigEditor .btn--sm { padding: 3px 6px; font-size: var(--font-size-xs); }\n.geConfigEditor .btn-group { display: flex; flex-wrap: wrap; gap: 4px; }\n.geConfigEditor .card {\n background: light-dark(var(--color-bg), var(--color-bg-dark)); border: 1px solid light-dark(var(--color-border), var(--color-border-dark));\n border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--spacing-lg);\n}\n.geConfigEditor .card__header {\n padding: 6px var(--spacing-md); border-bottom: 1px solid light-dark(var(--color-border), var(--color-border-dark));\n background: light-dark(var(--color-bg-secondary), var(--color-bg-secondary-dark));\n}\n.geConfigEditor .card__title { font-size: var(--font-size-base); font-weight: 600; margin: 0; }\n.geConfigEditor .card__body { padding: var(--spacing-md); display: flex; flex-direction: column; gap: var(--spacing-md); }\n.geConfigEditor .field { display: flex; flex-direction: column; gap: 2px; }\n.geConfigEditor .field__help { font-size: var(--font-size-xs); color: light-dark(var(--color-text-secondary), var(--color-text-secondary-dark)); margin: 0; line-height: 1.3; }\n.geConfigEditor .field__error { font-size: var(--font-size-xs); color: var(--color-error); margin: 0; line-height: 1.3; font-weight: 500; }\n.geConfigEditor .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); }\n.geConfigEditor .toggle-field {\n display: flex; align-items: center; justify-content: space-between;\n padding: 4px 0; border-bottom: 1px solid light-dark(var(--color-border), var(--color-border-dark));\n}\n.geConfigEditor .toggle-field:last-child { border-bottom: none; }\n.geConfigEditor .card__body > * + .toggle-list { border-top: 1px solid light-dark(var(--color-border), var(--color-border-dark)); }\n.geConfigEditor .toggle-field__label { display: flex; flex-direction: column; gap: 1px; flex: 1; margin-bottom: 0; }\n.geConfigEditor .toggle-field__name { font-weight: 500; font-size: var(--font-size-sm); }\n.geConfigEditor .toggle-field__help { font-size: var(--font-size-xs); color: light-dark(var(--color-text-secondary), var(--color-text-secondary-dark)); }\n.geConfigEditor .toggle-field__experimental {\n display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 8px; vertical-align: middle;\n font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;\n color: light-dark(#8a5a00, #f0b429); background: light-dark(#fff3d6, rgba(240, 180, 41, 0.15));\n}\n.geConfigEditor .toggle-field__helplink {\n display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px;\n margin-left: 4px; border-radius: 50%; vertical-align: middle; text-decoration: none;\n font-size: 9px; font-weight: 700; line-height: 1;\n color: light-dark(#fff, #1a1a1a); background: light-dark(var(--color-text-secondary), var(--color-text-secondary-dark));\n}\n.geConfigEditor .tri-toggle {\n display: inline-flex; border: 1px solid light-dark(var(--color-border), var(--color-border-dark));\n border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0;\n}\n.geConfigEditor .tri-toggle button {\n padding: 3px 8px; font-size: var(--font-size-xs); border: none;\n background: light-dark(var(--color-input), var(--color-input-dark)); color: light-dark(var(--color-text-secondary), var(--color-text-secondary-dark));\n cursor: pointer; font-family: inherit; transition: all var(--transition-fast);\n}\n.geConfigEditor .tri-toggle button + button { border-left: 1px solid light-dark(var(--color-border), var(--color-border-dark)); }\n.geConfigEditor .tri-toggle button.active--unset { background: light-dark(var(--color-bg-tertiary), var(--color-bg-tertiary-dark)); color: light-dark(var(--color-text), var(--color-text-dark)); font-weight: 500; }\n.geConfigEditor .tri-toggle button.active--true { background: var(--color-success); color: #fff; font-weight: 500; }\n.geConfigEditor .tri-toggle button.active--false { background: var(--color-error); color: #fff; font-weight: 500; }\n.geConfigEditor .color-list { display: flex; flex-wrap: wrap; gap: 3px; padding: 4px 0; min-height: 24px; }\n.geConfigEditor .color-swatch {\n width: 22px; height: 22px; border-radius: var(--radius-sm);\n border: 1px solid light-dark(var(--color-border), var(--color-border-dark)); cursor: pointer; position: relative;\n transition: transform var(--transition-fast);\n}\n.geConfigEditor .color-swatch:hover { transform: scale(1.15); box-shadow: 0 0 0 2px var(--drawio-blue); }\n.geConfigEditor .color-swatch__delete {\n position: absolute; top: -5px; right: -5px; width: 12px; height: 12px;\n background: var(--color-error); color: #fff; border: none; border-radius: 50%;\n font-size: 9px; line-height: 12px; text-align: center; cursor: pointer; display: none; padding: 0;\n}\n.geConfigEditor .color-swatch:hover .color-swatch__delete { display: block; }\n.geConfigEditor .color-swatch__picker {\n position: absolute; top: 0; left: 0; width: 100%; height: 100%;\n opacity: 0; cursor: pointer; border: none; padding: 0;\n}\n.geConfigEditor .color-scheme-editor { display: flex; flex-direction: column; gap: 4px; }\n.geConfigEditor .color-scheme-row {\n display: flex; flex-wrap: wrap; gap: 3px; align-items: center;\n padding: 3px 6px; background: light-dark(var(--color-bg-secondary), var(--color-bg-secondary-dark));\n border: 1px solid light-dark(var(--color-border), var(--color-border-dark)); border-radius: var(--radius-sm);\n}\n.geConfigEditor .color-scheme-row__label { font-size: var(--font-size-xs); color: light-dark(var(--color-text-secondary), var(--color-text-secondary-dark)); min-width: 20px; text-align: center; }\n.geConfigEditor .color-scheme-entry {\n display: flex; align-items: center; gap: 3px; padding: 1px 4px;\n background: light-dark(var(--color-bg), var(--color-bg-dark)); border: 1px solid light-dark(var(--color-border), var(--color-border-dark));\n border-radius: var(--radius-sm); font-size: var(--font-size-xs);\n}\n.geConfigEditor .color-scheme-entry__swatch {\n width: 14px; height: 14px; border-radius: 2px;\n border: 1px solid light-dark(var(--color-border), var(--color-border-dark)); position: relative; cursor: pointer; flex-shrink: 0;\n}\n.geConfigEditor .color-scheme-entry__swatch input[type="color"] {\n position: absolute; top: 0; left: 0; width: 100%; height: 100%;\n opacity: 0; cursor: pointer; border: none; padding: 0;\n}\n.geConfigEditor .color-scheme-entry__key { color: light-dark(var(--color-text-secondary), var(--color-text-secondary-dark)); }\n.geConfigEditor .color-scheme-entry__remove {\n background: none; border: none; cursor: pointer;\n color: light-dark(var(--color-text-secondary), var(--color-text-secondary-dark)); font-size: 11px; padding: 0 1px; line-height: 1;\n}\n.geConfigEditor .color-scheme-entry__remove:hover { color: var(--color-error); }\n.geConfigEditor .color-scheme-row__actions { display: flex; gap: 2px; margin-left: auto; }\n.geConfigEditor .color-scheme-row__btn {\n background: none; border: 1px solid light-dark(var(--color-border), var(--color-border-dark));\n border-radius: var(--radius-sm); cursor: pointer;\n font-size: var(--font-size-xs); padding: 1px 5px; color: light-dark(var(--color-text-secondary), var(--color-text-secondary-dark));\n}\n.geConfigEditor .color-scheme-row__btn:hover { background: light-dark(var(--color-bg-tertiary), var(--color-bg-tertiary-dark)); color: light-dark(var(--color-text), var(--color-text-dark)); }\n.geConfigEditor .tag-list { display: flex; flex-wrap: wrap; gap: 3px; }\n.geConfigEditor .tag {\n display: inline-flex; align-items: center; gap: 3px;\n padding: 1px 6px; background: light-dark(var(--color-bg-tertiary), var(--color-bg-tertiary-dark));\n border-radius: var(--radius-sm); font-size: var(--font-size-xs);\n}\n.geConfigEditor .tag__remove {\n background: none; border: none; cursor: pointer;\n color: light-dark(var(--color-text-secondary), var(--color-text-secondary-dark)); font-size: 13px; padding: 0 1px; line-height: 1;\n}\n.geConfigEditor .tag__remove:hover { color: var(--color-error); }\n.geConfigEditor .tag__link { color: light-dark(var(--color-text-secondary), var(--color-text-secondary-dark)); font-size: 9px; line-height: 1; }\n.geConfigEditor .tag-input-wrap { display: flex; gap: 4px; margin-top: 4px; }\n.geConfigEditor .tag-input-wrap input { flex: 1; }\n.geConfigEditor .search-box { position: sticky; top: 0; z-index: 50; background: light-dark(var(--color-bg), var(--color-bg-dark)); padding: 6px 0 8px; }\n.geConfigEditor .search-box input { font-size: var(--font-size-base); padding: 6px 10px; }\n.geConfigEditor .search-box__count { font-size: var(--font-size-xs); color: light-dark(var(--color-text-secondary), var(--color-text-secondary-dark)); margin-top: 2px; }\n.geConfigEditor .config-section.search-hidden, .geConfigEditor .toggle-field.search-hidden,\n.geConfigEditor .field.search-hidden, .geConfigEditor .field-row.search-hidden { display: none; }\n.geConfigEditor .mt-sm { margin-top: 4px; }\n.geConfigEditor .mb-sm { margin-bottom: 4px; }\n.geConfigEditor .checkbox { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; user-select: none; }\n.geConfigEditor .checkbox input { width: auto; margin: 0; }\n@supports (scrollbar-color: auto) {\n .geConfigEditor { scrollbar-color: light-dark(var(--color-scrollbar), var(--color-scrollbar-dark)) transparent; scrollbar-width: thin; }\n}\n@media (prefers-contrast: more) {\n .geConfigEditor {\n --color-bg: #ffffff;\n --color-bg-dark: #000000;\n --color-bg-secondary: #e0e0e0;\n --color-bg-secondary-dark: #1a1a1a;\n --color-bg-tertiary: #cccccc;\n --color-bg-tertiary-dark: #2a2a2a;\n --color-input: #ffffff;\n --color-input-dark: #111111;\n --color-text: #000000;\n --color-text-dark: #ffffff;\n --color-text-secondary: #333333;\n --color-text-secondary-dark: #cccccc;\n --color-border: #666666;\n --color-border-dark: #999999;\n --color-success: #006633;\n --color-error: #cc0000;\n }\n .geConfigEditor input[type="text"], .geConfigEditor input[type="url"], .geConfigEditor input[type="number"], .geConfigEditor textarea, .geConfigEditor select {\n border: 2px solid light-dark(var(--color-border), var(--color-border-dark));\n }\n .geConfigEditor .tri-toggle { border: 2px solid light-dark(var(--color-border), var(--color-border-dark)); }\n .geConfigEditor .tri-toggle button { font-weight: 600; }\n .geConfigEditor .tri-toggle button + button { border-left: 2px solid light-dark(var(--color-border), var(--color-border-dark)); }\n .geConfigEditor .card { border: 2px solid light-dark(var(--color-border), var(--color-border-dark)); }\n .geConfigEditor .card__header { border-bottom: 2px solid light-dark(var(--color-border), var(--color-border-dark)); }\n .geConfigEditor .toggle-field { border-bottom: 2px solid light-dark(var(--color-border), var(--color-border-dark)); }\n .geConfigEditor .card__body > * + .toggle-list { border-top: 2px solid light-dark(var(--color-border), var(--color-border-dark)); }\n}\n.geConfigEditor.high-contrast {\n --color-bg: #ffffff;\n --color-bg-dark: #000000;\n --color-bg-secondary: #e0e0e0;\n --color-bg-secondary-dark: #1a1a1a;\n --color-bg-tertiary: #cccccc;\n --color-bg-tertiary-dark: #2a2a2a;\n --color-input: #ffffff;\n --color-input-dark: #111111;\n --color-text: #000000;\n --color-text-dark: #ffffff;\n --color-text-secondary: #333333;\n --color-text-secondary-dark: #cccccc;\n --color-border: #666666;\n --color-border-dark: #999999;\n --color-success: #006633;\n --color-error: #cc0000;\n}\n.geConfigEditor.high-contrast input[type="text"],\n.geConfigEditor.high-contrast input[type="url"],\n.geConfigEditor.high-contrast input[type="number"],\n.geConfigEditor.high-contrast textarea,\n.geConfigEditor.high-contrast select {\n border: 2px solid light-dark(var(--color-border), var(--color-border-dark));\n}\n.geConfigEditor.high-contrast .tri-toggle { border: 2px solid light-dark(var(--color-border), var(--color-border-dark)); }\n.geConfigEditor.high-contrast .tri-toggle button { font-weight: 600; }\n.geConfigEditor.high-contrast .tri-toggle button + button { border-left: 2px solid light-dark(var(--color-border), var(--color-border-dark)); }\n.geConfigEditor.high-contrast .card { border: 2px solid light-dark(var(--color-border), var(--color-border-dark)); }\n.geConfigEditor.high-contrast .card__header { border-bottom: 2px solid light-dark(var(--color-border), var(--color-border-dark)); }\n.geConfigEditor.high-contrast .toggle-field { border-bottom: 2px solid light-dark(var(--color-border), var(--color-border-dark)); }\n.geConfigEditor.high-contrast .card__body > * + .toggle-list { border-top: 2px solid light-dark(var(--color-border), var(--color-border-dark)); }\n@media (forced-colors: active) {\n .geConfigEditor input[type="text"], .geConfigEditor input[type="url"], .geConfigEditor input[type="number"], .geConfigEditor textarea, .geConfigEditor select {\n border: 2px solid ButtonText;\n background: Field;\n color: FieldText;\n }\n .geConfigEditor .card { border: 2px solid ButtonText; }\n .geConfigEditor .card__header { background: Canvas; border-bottom: 2px solid ButtonText; forced-color-adjust: none; }\n .geConfigEditor .tri-toggle { border: 2px solid ButtonText; }\n .geConfigEditor .tri-toggle button { background: ButtonFace; color: ButtonText; border-color: ButtonText; }\n .geConfigEditor .tri-toggle button.active--true,\n .geConfigEditor .tri-toggle button.active--false { background: Highlight; color: HighlightText; }\n .geConfigEditor .tri-toggle button.active--unset { background: ButtonFace; color: ButtonText; outline: 2px solid Highlight; outline-offset: -2px; }\n .geConfigEditor .btn--secondary { border: 1px solid ButtonText; }\n .geConfigEditor .toggle-field { border-bottom: 1px solid ButtonText; }\n .geConfigEditor .card__body > * + .toggle-list { border-top: 1px solid ButtonText; }\n .geConfigEditor .search-box { background: Canvas; }\n .geConfigEditor { background: Canvas; color: CanvasText; }\n}',html:'<div class="search-box" id="searchBox">\n <input type="text" id="searchInput" placeholder="">\n <div class="search-box__count" id="searchCount"></div>\n</div>\n<div class="config-section">\n <div class="card">\n <div class="card__header"><h3 class="card__title" data-i18n="cfgSectionGeneral"></h3></div>\n <div class="card__body">\n <div class="field-row">\n <div class="field">\n <label for="cfg-version"></label>\n <input type="text" id="cfg-version" data-key="version" placeholder="e.g. 1.0">\n <p class="field__help"></p>\n </div>\n <div class="field">\n <label for="cfg-settingsName"></label>\n <input type="text" id="cfg-settingsName" data-key="settingsName" placeholder=".drawio-config">\n <p class="field__help"></p>\n </div>\n </div>\n <div class="field">\n <label for="cfg-keyboardShortcuts"></label>\n <textarea id="cfg-keyboardShortcuts" data-key="keyboardShortcuts" data-type="json" placeholder=\'[{"keyCode": "T", "control": true, "shift": true, "action": "tags"}]\' style="min-height: 60px;"></textarea>\n <p class="field__help"></p>\n </div>\n <div class="field">\n <label for="cfg-resources"></label>\n <textarea id="cfg-resources" data-key="resources" data-type="json" placeholder=\'{"saveAs": {"main": "Save a Copy", "de": "Kopie speichern"}, "myKey": "My Text"}\' style="min-height: 60px;"></textarea>\n <p class="field__help"></p>\n </div>\n <div class="field">\n <label data-i18n="cfgDefaultLanguages"></label>\n <div class="tag-list" id="defaultLanguages-tags"></div>\n <div class="tag-input-wrap">\n <input type="text" id="defaultLanguages-input" placeholder="e.g. de, fr">\n <button type="button" class="btn btn--secondary btn--sm" id="defaultLanguages-add" data-i18n="add"></button>\n </div>\n <p class="field__help" data-i18n="cfgDefaultLanguagesHelp"></p>\n </div>\n <div id="general-toggles"></div>\n </div>\n </div>\n</div>\n<div class="config-section">\n <div class="card">\n <div class="card__header"><h3 class="card__title" data-i18n="cfgSectionCanvasGrid"></h3></div>\n <div class="card__body">\n <div class="field-row">\n <div class="field">\n <label for="cfg-defaultGridSize"></label>\n <input type="number" id="cfg-defaultGridSize" data-key="defaultGridSize" placeholder="10" min="1">\n </div>\n <div class="field">\n <label for="cfg-gridSteps"></label>\n <input type="number" id="cfg-gridSteps" data-key="gridSteps" placeholder="e.g. 4" min="1">\n </div>\n </div>\n <div class="field-row">\n <div class="field">\n <label for="cfg-defaultGridColor"></label>\n <div style="display: flex; gap: 6px; align-items: center;">\n <input type="color" id="cfg-defaultGridColorPicker" value="#E6E6E6" style="width: 36px; height: 28px; padding: 2px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);">\n <input type="text" id="cfg-defaultGridColor" data-key="defaultGridColor" placeholder="#E6E6E6" style="flex: 1;">\n </div>\n </div>\n <div class="field">\n <label for="cfg-defaultDarkGridColor"></label>\n <div style="display: flex; gap: 6px; align-items: center;">\n <input type="color" id="cfg-defaultDarkGridColorPicker" value="#424242" style="width: 36px; height: 28px; padding: 2px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);">\n <input type="text" id="cfg-defaultDarkGridColor" data-key="defaultDarkGridColor" placeholder="#424242" style="flex: 1;">\n </div>\n </div>\n </div>\n <div class="field-row">\n <div class="field">\n <label for="cfg-zoomFactor"></label>\n <input type="number" id="cfg-zoomFactor" data-key="zoomFactor" placeholder="1.2" min="1.01" step="0.05">\n </div>\n <div class="field">\n <label for="cfg-defaultEdgeLength"></label>\n <input type="number" id="cfg-defaultEdgeLength" data-key="defaultEdgeLength" placeholder="80" min="1">\n </div>\n </div>\n <div class="field-row">\n <div class="field">\n <label for="cfg-foldingIconSize"></label>\n <input type="number" id="cfg-foldingIconSize" data-key="foldingIconSize" placeholder="9" min="1">\n </div>\n <div class="field"></div>\n </div>\n <div class="field-row">\n <div class="field">\n <label for="cfg-tooltipFontSize"></label>\n <input type="number" id="cfg-tooltipFontSize" data-key="tooltipFontSize" placeholder="11" min="1">\n </div>\n <div class="field">\n <label for="cfg-tooltipMaxWidth"></label>\n <div style="display: flex; gap: 6px; align-items: center;">\n <input type="number" id="cfg-tooltipMaxWidth" placeholder="360" min="1" style="flex: 1;">\n <label class="checkbox" style="white-space: nowrap;"><input type="checkbox" id="cfg-tooltipMaxWidthEnabled"> <span>Limit</span></label>\n </div>\n </div>\n </div>\n <div class="field-row">\n <div class="field">\n <label for="cfg-pageFormatWidth"></label>\n <input type="number" id="cfg-pageFormatWidth" placeholder="850" min="1">\n </div>\n <div class="field">\n <label for="cfg-pageFormatHeight"></label>\n <input type="number" id="cfg-pageFormatHeight" placeholder="1100" min="1">\n </div>\n </div>\n <p class="field__help" data-i18n="cfgPageFormatHeightHelp"></p>\n <div class="field-row">\n <div class="field">\n <label for="cfg-defaultPageBackgroundColor"></label>\n <div style="display: flex; gap: 6px; align-items: center;">\n <input type="color" id="cfg-defaultPageBackgroundColorPicker" value="#FFFFFF" style="width: 36px; height: 28px; padding: 2px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);">\n <input type="text" id="cfg-defaultPageBackgroundColor" data-key="defaultPageBackgroundColor" placeholder="#FFFFFF" style="flex: 1;">\n </div>\n </div>\n <div class="field">\n <label for="cfg-defaultDarkPageBackgroundColor"></label>\n <div style="display: flex; gap: 6px; align-items: center;">\n <input type="color" id="cfg-defaultDarkPageBackgroundColorPicker" value="#121212" style="width: 36px; height: 28px; padding: 2px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);">\n <input type="text" id="cfg-defaultDarkPageBackgroundColor" data-key="defaultDarkPageBackgroundColor" placeholder="#121212" style="flex: 1;">\n </div>\n </div>\n </div>\n <div id="canvas-toggles"></div>\n </div>\n </div>\n</div>\n<div class="config-section">\n <div class="card">\n <div class="card__header"><h3 class="card__title" data-i18n="cfgSectionAppearance"></h3></div>\n <div class="card__body">\n <div class="field-row">\n <div class="field">\n <label for="cfg-darkColor"></label>\n <div style="display: flex; gap: 6px; align-items: center;">\n <input type="color" id="cfg-darkColorPicker" value="#2A2A2A" style="width: 36px; height: 28px; padding: 2px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);">\n <input type="text" id="cfg-darkColor" data-key="darkColor" placeholder="#2A2A2A" style="flex: 1;">\n </div>\n </div>\n <div class="field">\n <label for="cfg-defaultAdaptiveColors"></label>\n <select id="cfg-defaultAdaptiveColors" data-key="defaultAdaptiveColors">\n <option value="">- Not set -</option>\n <option value="auto">auto</option>\n <option value="simple">simple</option>\n <option value="none">none</option>\n </select>\n </div>\n </div>\n <div class="field">\n <label for="cfg-darkColorVar"></label>\n <input type="text" id="cfg-darkColorVar" data-key="darkColorVar" placeholder="--ge-dark-color">\n </div>\n <div class="field-row">\n <div class="field">\n <label for="cfg-shadowColor"></label>\n <div style="display: flex; gap: 6px; align-items: center;">\n <input type="color" id="cfg-shadowColorPicker" value="#808080" style="width: 36px; height: 28px; padding: 2px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);">\n <input type="text" id="cfg-shadowColor" data-key="shadowColor" placeholder="#808080" style="flex: 1;">\n </div>\n </div>\n <div class="field">\n <label for="cfg-shadowOpacity"></label>\n <input type="number" id="cfg-shadowOpacity" data-key="shadowOpacity" placeholder="1" min="0" max="1" step="0.1">\n </div>\n </div>\n <div class="field-row">\n <div class="field">\n <label for="cfg-shadowOffsetX"></label>\n <input type="number" id="cfg-shadowOffsetX" data-key="shadowOffsetX" placeholder="e.g. 2">\n </div>\n <div class="field">\n <label for="cfg-shadowOffsetY"></label>\n <input type="number" id="cfg-shadowOffsetY" data-key="shadowOffsetY" placeholder="e.g. 3">\n </div>\n </div>\n <div class="field">\n <label for="cfg-shadowBlur"></label>\n <input type="number" id="cfg-shadowBlur" data-key="shadowBlur" placeholder="e.g. 6" min="0">\n </div>\n <div id="appearance-toggles"></div>\n </div>\n </div>\n</div>\n<div class="config-section">\n <div class="card">\n <div class="card__header"><h3 class="card__title" data-i18n="cfgSectionSidebarPanels"></h3></div>\n <div class="card__body">\n <div class="field-row">\n <div class="field">\n <label for="cfg-thumbWidth"></label>\n <input type="number" id="cfg-thumbWidth" data-key="thumbWidth" placeholder="46" min="1">\n </div>\n <div class="field">\n <label for="cfg-thumbHeight"></label>\n <input type="number" id="cfg-thumbHeight" data-key="thumbHeight" placeholder="46" min="1">\n </div>\n </div>\n <div class="field-row">\n <div class="field">\n <label for="cfg-sidebarWidth"></label>\n <input type="number" id="cfg-sidebarWidth" data-key="sidebarWidth" placeholder="e.g. 250" min="1">\n </div>\n <div class="field">\n <label for="cfg-sidebarTitleSize"></label>\n <input type="number" id="cfg-sidebarTitleSize" data-key="sidebarTitleSize" placeholder="8" min="1">\n </div>\n </div>\n <div class="field">\n <label for="cfg-shapePicker"></label>\n <textarea id="cfg-shapePicker" data-key="shapePicker" data-type="json" placeholder=\'{"shapes": [...]}\' style="min-height: 60px;"></textarea>\n <p class="field__help"></p>\n </div>\n <div id="sidebar-toggles"></div>\n </div>\n </div>\n</div>\n<div class="config-section">\n <div class="card">\n <div class="card__header"><h3 class="card__title" data-i18n="cfgSectionLibraries"></h3></div>\n <div class="card__body">\n <div class="field">\n <label for="cfg-defaultLibraries"></label>\n <input type="text" id="cfg-defaultLibraries" data-key="defaultLibraries" placeholder="general;uml;er;bpmn;flowchart;basic;arrows2">\n <p class="field__help"></p>\n </div>\n <div class="field">\n <label>Enabled Libraries</label>\n <div class="tag-list" id="enabledLibraries-tags"></div>\n <div class="tag-input-wrap">\n <input type="text" id="enabledLibraries-input" placeholder="Add library key (e.g. general, uml)...">\n <button type="button" class="btn btn--secondary btn--sm" id="enabledLibraries-add">Add</button>\n </div>\n <p class="field__help">Libraries available in More Shapes dialog. Leave empty for all.</p>\n </div>\n <div class="field">\n <label>Default Custom Libraries</label>\n <div class="tag-list" id="defaultCustomLibraries-tags"></div>\n <div class="tag-input-wrap">\n <input type="text" id="defaultCustomLibraries-input" placeholder="Add library ID or URL...">\n <button type="button" class="btn btn--secondary btn--sm" id="defaultCustomLibraries-add">Add</button>\n </div>\n <p class="field__help">IDs or URLs of custom libraries to load on startup</p>\n </div>\n <div class="field">\n <label for="cfg-templateFile"></label>\n <input type="url" id="cfg-templateFile" data-key="templateFile" placeholder="https://app.diagrams.net/templates/index.xml">\n </div>\n <div class="field">\n <label>Template Sections</label>\n <div class="tag-list" id="enabledTemplateSections-tags"></div>\n <div class="tag-input-wrap">\n <input type="text" id="enabledTemplateSections-input" placeholder="Add section (e.g. business, charts)...">\n <button type="button" class="btn btn--secondary btn--sm" id="enabledTemplateSections-add">Add</button>\n </div>\n <p class="field__help" data-i18n="cfgTemplateFileHelp"></p>\n </div>\n <div class="field">\n <label for="cfg-customTemplates"></label>\n <textarea id="cfg-customTemplates" data-key="customTemplates" data-type="json" placeholder=\'[{"section": "basic", "url": "https://example.com/template.xml", "title": "My Template", "preview": "https://example.com/template.png"}]\' style="min-height: 60px;"></textarea>\n <p class="field__help"></p>\n </div>\n <div class="field">\n <label for="cfg-libraries"></label>\n <textarea id="cfg-libraries" data-key="libraries" data-type="json" placeholder=\'[{"title": {"main": "Company"}, "entries": [...]}]\' style="min-height: 60px;"></textarea>\n <p class="field__help"></p>\n </div>\n <div id="library-toggles"></div>\n </div>\n </div>\n</div>\n<div class="config-section">\n <div class="card">\n <div class="card__header"><h3 class="card__title" data-i18n="cfgSectionFonts"></h3></div>\n <div class="card__body">\n <div class="field">\n <label>Default Fonts</label>\n <div class="tag-list" id="defaultFonts-tags"></div>\n <div class="tag-input-wrap">\n <input type="text" id="defaultFonts-input" placeholder="Add font name...">\n <input type="text" id="defaultFonts-url" placeholder="Font URL (optional)">\n <button type="button" class="btn btn--secondary btn--sm" id="defaultFonts-add">Add</button>\n </div>\n <p class="field__help">Font names for the format panel font picker; add a URL for web fonts (e.g. a Google Fonts CSS link)</p>\n </div>\n <div class="field">\n <label>Custom Fonts</label>\n <div class="tag-list" id="customFonts-tags"></div>\n <div class="tag-input-wrap">\n <input type="text" id="customFonts-input" placeholder="Add font name...">\n <input type="text" id="customFonts-url" placeholder="Font URL (optional)">\n <button type="button" class="btn btn--secondary btn--sm" id="customFonts-add">Add</button>\n </div>\n <p class="field__help">Additional fonts added before default fonts; add a URL for web fonts (e.g. a Google Fonts CSS link)</p>\n </div>\n <div class="field">\n <label for="cfg-fontCss"></label>\n <textarea id="cfg-fontCss" data-key="fontCss" placeholder="@font-face { font-family: \'MyFont\'; src: url(\'...\'); }" style="min-height: 60px;"></textarea>\n </div>\n <div id="font-toggles"></div>\n </div>\n </div>\n</div>\n<div class="config-section">\n <div class="card">\n <div class="card__header"><h3 class="card__title" data-i18n="cfgSectionColors"></h3></div>\n <div class="card__body">\n <div class="field">\n <label>Preset Colors (upper palette)</label>\n <div class="color-list" id="presetColors-list"></div>\n <div class="tag-input-wrap">\n <input type="color" id="presetColors-picker" style="width: 36px; height: 28px; padding: 2px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);">\n <input type="text" id="presetColors-input" placeholder="Hex without # (e.g. E6D0DE)" style="flex: 1;">\n <button type="button" class="btn btn--secondary btn--sm" id="presetColors-add">Add</button>\n </div>\n </div>\n <div class="field">\n <label>Custom Preset Colors</label>\n <div class="color-list" id="customPresetColors-list"></div>\n <div class="tag-input-wrap">\n <input type="color" id="customPresetColors-picker" style="width: 36px; height: 28px; padding: 2px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);">\n <input type="text" id="customPresetColors-input" placeholder="Hex without # (e.g. FF5733)" style="flex: 1;">\n <button type="button" class="btn btn--secondary btn--sm" id="customPresetColors-add">Add</button>\n </div>\n <p class="field__help" data-i18n="cfgFontCssHelp"></p>\n </div>\n <div class="field">\n <label>Default Colors (lower palette)</label>\n <div class="color-list" id="defaultColors-list"></div>\n <div class="tag-input-wrap">\n <input type="color" id="defaultColors-picker" style="width: 36px; height: 28px; padding: 2px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);">\n <input type="text" id="defaultColors-input" placeholder="Hex without # or \'none\'" style="flex: 1;">\n <button type="button" class="btn btn--secondary btn--sm" id="defaultColors-add">Add</button>\n </div>\n </div>\n <div class="field">\n <label for="cfg-colorNames"></label>\n <textarea id="cfg-colorNames" data-key="colorNames" data-type="json" placeholder=\'{"FFFFFF": "White", "000000": "Black"}\' style="min-height: 60px;"></textarea>\n <p class="field__help"></p>\n </div>\n </div>\n </div>\n</div>\n<div class="config-section">\n <div class="card">\n <div class="card__header"><h3 class="card__title" data-i18n="cfgSectionColorSchemes"></h3></div>\n <div class="card__body">\n <div class="field">\n <label>Default Color Schemes</label>\n <div class="color-scheme-editor" id="defaultColorSchemes-editor"></div>\n <div class="btn-group mt-sm">\n <button type="button" class="btn btn--secondary btn--sm" id="defaultColorSchemes-addRow">Add Row</button>\n </div>\n <p class="field__help">Colour schemes for the Style section. Each row is a scheme group.</p>\n </div>\n <div class="field">\n <label>Custom Color Schemes</label>\n <div class="color-scheme-editor" id="customColorSchemes-editor"></div>\n <div class="btn-group mt-sm">\n <button type="button" class="btn btn--secondary btn--sm" id="customColorSchemes-addRow">Add Row</button>\n </div>\n <p class="field__help">Additional colour schemes added before default schemes</p>\n </div>\n </div>\n </div>\n</div>\n<div class="config-section">\n <div class="card">\n <div class="card__header"><h3 class="card__title" data-i18n="cfgSectionDefaultStyles"></h3></div>\n <div class="card__body">\n <div class="field" data-search="font fontFamily fontSize fontColor">\n <label for="cfg-defaultTextStyle"></label>\n <input type="text" id="cfg-defaultTextStyle" data-key="defaultTextStyle" placeholder="text;html=1;whiteSpace=wrap;...">\n </div>\n <div class="field" data-search="font fontFamily fontSize fontColor fillColor strokeColor rounded shape">\n <div style="display: flex; align-items: center; justify-content: space-between;">\n <label for="cfg-defaultVertexStyle" style="margin-bottom: 0;">Default Vertex Style (JSON)</label>\n <button type="button" class="btn btn--secondary btn--sm" id="useCurrentVertexStyle" style="display: none;">Use Current</button>\n </div>\n <textarea id="cfg-defaultVertexStyle" data-key="defaultVertexStyle" data-type="json" placeholder=\'{"fontFamily": "Arial"}\' style="min-height: 60px;"></textarea>\n </div>\n <div class="field" data-search="font fontFamily fontSize fontColor edgeStyle orthogonal endArrow connection">\n <div style="display: flex; align-items: center; justify-content: space-between;">\n <label for="cfg-defaultEdgeStyle" style="margin-bottom: 0;">Default Edge Style (JSON)</label>\n <button type="button" class="btn btn--secondary btn--sm" id="useCurrentEdgeStyle" style="display: none;">Use Current</button>\n </div>\n <textarea id="cfg-defaultEdgeStyle" data-key="defaultEdgeStyle" data-type="json" placeholder=\'{"edgeStyle": "orthogonalEdgeStyle"}\' style="min-height: 60px;"></textarea>\n </div>\n <div class="field">\n <label for="cfg-styles"></label>\n <textarea id="cfg-styles" data-key="styles" data-type="json" placeholder=\'[{}, {"commonStyle": {"fontColor": "#5C5C5C"}}]\' style="min-height: 60px;"></textarea>\n <p class="field__help"></p>\n </div>\n <div class="field" data-search="mermaid theme themeVariables flowchart sequence">\n <label for="cfg-mermaid"></label>\n <textarea id="cfg-mermaid" data-key="mermaid" data-type="json" placeholder=\'{"theme": "neutral"}\' style="min-height: 60px;"></textarea>\n <p class="field__help"></p>\n </div>\n </div>\n </div>\n</div>\n<div class="config-section">\n <div class="card">\n <div class="card__header"><h3 class="card__title" data-i18n="cfgSectionCustomCSS"></h3></div>\n <div class="card__body">\n <div class="field">\n <label for="cfg-css"></label>\n <textarea id="cfg-css" data-key="css" placeholder=".geMenubarContainer { background-color: #2A2A2A !important; }" style="min-height: 80px;"></textarea>\n <p class="field__help"></p>\n </div>\n <div class="field">\n <label for="cfg-customCss"></label>\n <textarea id="cfg-customCss" data-key="customCss" placeholder="Additional CSS rules..." style="min-height: 60px;"></textarea>\n <p class="field__help"></p>\n </div>\n </div>\n </div>\n</div>\n<div class="config-section">\n <div class="card">\n <div class="card__header"><h3 class="card__title" data-i18n="cfgSectionEmbedding"></h3></div>\n <div class="card__body">\n <div id="embedding-toggles"></div>\n </div>\n </div>\n</div>\n<div class="config-section">\n <div class="card">\n <div class="card__header"><h3 class="card__title" data-i18n="cfgSectionMenuCustomization"></h3></div>\n <div class="card__body">\n <div class="field">\n <label>Hidden Menu Items</label>\n <div class="tag-list" id="hideMenuItems-tags"></div>\n <div class="tag-input-wrap">\n <input type="text" id="hideMenuItems-input" placeholder="Add action name (e.g. print, exportPdf)...">\n <button type="button" class="btn btn--secondary btn--sm" id="hideMenuItems-add">Add</button>\n </div>\n <p class="field__help">Action names of menu items to hide</p>\n </div>\n <div class="field">\n <label>Hidden Menus</label>\n <div class="tag-list" id="hideMenus-tags"></div>\n <div class="tag-input-wrap">\n <input type="text" id="hideMenus-input" placeholder="Add menu name (e.g. extras, help)...">\n <button type="button" class="btn btn--secondary btn--sm" id="hideMenus-add">Add</button>\n </div>\n <p class="field__help">Names of top-level menus to hide</p>\n </div>\n </div>\n </div>\n</div>\n<div class="config-section">\n <div class="card">\n <div class="card__header"><h3 class="card__title" data-i18n="cfgSectionAIConfiguration"></h3></div>\n <div class="card__body">\n <div class="field-row">\n <div class="field">\n <label for="cfg-gptApiKey"></label>\n <input type="text" id="cfg-gptApiKey" data-key="gptApiKey" placeholder="sk-...">\n </div>\n <div class="field">\n <label for="cfg-gptUrl"></label>\n <input type="url" id="cfg-gptUrl" data-key="gptUrl" placeholder="https://api.openai.com/v1/chat/completions">\n </div>\n </div>\n <div class="field-row">\n <div class="field">\n <label for="cfg-geminiApiKey"></label>\n <input type="text" id="cfg-geminiApiKey" data-key="geminiApiKey" placeholder="AI...">\n </div>\n <div class="field">\n <label for="cfg-claudeApiKey"></label>\n <input type="text" id="cfg-claudeApiKey" data-key="claudeApiKey" placeholder="sk-ant-...">\n </div>\n </div>\n <div class="field">\n <label for="cfg-aiActions"></label>\n <textarea id="cfg-aiActions" data-key="aiActions" data-type="json" placeholder=\'{"myAction": {"prompt": "..."}}\' style="min-height: 60px;"></textarea>\n </div>\n <div class="field">\n <label for="cfg-aiGlobals"></label>\n <textarea id="cfg-aiGlobals" data-key="aiGlobals" data-type="json" placeholder=\'{}\' style="min-height: 60px;"></textarea>\n </div>\n <div class="field">\n <label for="cfg-aiConfigs"></label>\n <textarea id="cfg-aiConfigs" data-key="aiConfigs" data-type="json" placeholder=\'{}\' style="min-height: 60px;"></textarea>\n </div>\n <div class="field">\n <label for="cfg-aiModels"></label>\n <textarea id="cfg-aiModels" data-key="aiModels" data-type="json" placeholder=\'{}\' style="min-height: 60px;"></textarea>\n </div>\n <div id="ai-toggles"></div>\n </div>\n </div>\n</div>\n<div class="config-section">\n <div class="card">\n <div class="card__header"><h3 class="card__title" data-i18n="cfgSectionExportSecurity"></h3></div>\n <div class="card__body">\n <div class="field-row">\n <div class="field">\n <label for="cfg-maxImageBytes"></label>\n <input type="number" id="cfg-maxImageBytes" data-key="maxImageBytes" placeholder="1000000" min="0">\n </div>\n <div class="field">\n <label for="cfg-maxImageSize"></label>\n <input type="number" id="cfg-maxImageSize" data-key="maxImageSize" placeholder="520" min="0">\n </div>\n </div>\n <div class="field-row">\n <div class="field">\n <label for="cfg-autosaveDelay"></label>\n <input type="number" id="cfg-autosaveDelay" data-key="autosaveDelay" placeholder="e.g. 2000" min="0">\n </div>\n <div class="field">\n <label for="cfg-defaultFileType"></label>\n <select id="cfg-defaultFileType" data-key="defaultFileType">\n <option value="">- Not set -</option>\n <option value="drawio">XML (.drawio)</option>\n <option value="png">Editable PNG (.drawio.png)</option>\n <option value="svg">Editable SVG (.drawio.svg)</option>\n <option value="html">HTML (.drawio.html)</option>\n </select>\n </div>\n </div>\n <div id="export-toggles"></div>\n </div>\n </div>\n</div>\n<div class="config-section">\n <div class="card">\n <div class="card__header"><h3 class="card__title" data-i18n="cfgSectionCollaborationAdvanced"></h3></div>\n <div class="card__body">\n <div class="field">\n <label for="cfg-globalVars"></label>\n <textarea id="cfg-globalVars" data-key="globalVars" data-type="json" placeholder=\'{"companyName": "Acme Corp"}\' style="min-height: 60px;"></textarea>\n <p class="field__help"></p>\n </div>\n <div class="field">\n <label for="cfg-emptyDiagramXml"></label>\n <textarea id="cfg-emptyDiagramXml" data-key="emptyDiagramXml" placeholder="<mxGraphModel>...</mxGraphModel>" style="min-height: 60px;"></textarea>\n </div>\n <div class="field">\n <label for="cfg-emptyLibraryXml"></label>\n <textarea id="cfg-emptyLibraryXml" data-key="emptyLibraryXml" placeholder="<mxlibrary>[]</mxlibrary>" style="min-height: 60px;"></textarea>\n </div>\n <div id="advanced-toggles"></div>\n <div id="desktop-toggles"></div>\n </div>\n </div>\n</div>\n<div class="config-section">\n <div class="card">\n <div class="card__header"><h3 class="card__title" data-i18n="cfgSectionConfluenceCloud"></h3></div>\n <div class="card__body">\n <p class="field__help mb-sm">These options only apply to <strong>Confluence Cloud</strong>.</p>\n <div class="field">\n <label for="cfg-ui"></label>\n <select id="cfg-ui" data-key="ui">\n <option value="">- Not set -</option>\n <option value="kennedy">Kennedy</option>\n <option value="atlas">Atlas (default)</option>\n <option value="min">Minimal</option>\n <option value="sketch">Sketch</option>\n <option value="simple">Simple</option>\n </select>\n </div>\n <div id="confluence-cloud-toggles"></div>\n <div class="field">\n <label for="cfg-viewerTimeout"></label>\n <input type="number" id="cfg-viewerTimeout" data-key="viewerTimeout" placeholder="e.g. 30000" min="0">\n <p class="field__help">Timeout in milliseconds before the viewer gives up loading <code>viewerTimeout</code></p>\n </div>\n <div class="field">\n <label>Default Macro Parameters</label>\n <div class="field-row">\n <div class="field">\n <label for="cfg-cdmp-tbstyle" style="font-weight: normal;">Toolbar Style</label>\n <select id="cfg-cdmp-tbstyle">\n <option value="">- Not set -</option>\n <option value="top">top</option>\n <option value="inline">inline</option>\n <option value="hidden">hidden</option>\n </select>\n </div>\n <div class="field">\n <label for="cfg-cdmp-links" style="font-weight: normal;">Links</label>\n <select id="cfg-cdmp-links">\n <option value="">- Not set -</option>\n <option value="auto">auto</option>\n <option value="blank">blank</option>\n <option value="self">self</option>\n </select>\n </div>\n </div>\n <div class="field-row">\n <div class="field">\n <label for="cfg-cdmp-zoom" style="font-weight: normal;">Zoom</label>\n <input type="number" id="cfg-cdmp-zoom" placeholder="e.g. 100" min="1">\n </div>\n <div class="field" style="padding-top: 16px;">\n <div id="cdmp-toggles-container"></div>\n </div>\n </div>\n <div style="display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px;" id="cdmp-booleans">\n <label class="checkbox"><input type="checkbox" id="cfg-cdmp-lbox" data-tristate="true"> <span>Lightbox</span></label>\n <label class="checkbox"><input type="checkbox" id="cfg-cdmp-simple" data-tristate="true"> <span>Simple Viewer</span></label>\n <label class="checkbox"><input type="checkbox" id="cfg-cdmp-pCenter" data-tristate="true"> <span>Center</span></label>\n <label class="checkbox"><input type="checkbox" id="cfg-cdmp-hiResPreview" data-tristate="true"> <span>High Resolution Preview</span></label>\n </div>\n </div>\n </div>\n </div>\n</div>\n<div class="config-section">\n <div class="card">\n <div class="card__header"><h3 class="card__title" data-i18n="cfgSectionConfluenceServerDataCenter"></h3></div>\n <div class="card__body">\n <p class="field__help mb-sm">These options only apply to <strong>Confluence Server / Data Center</strong>.</p>\n <div id="confluence-toggles"></div>\n <div class="field">\n <label>Default Macro Parameters</label>\n <div class="field-row">\n <div class="field">\n <label for="cfg-dmp-toolbarStyle" style="font-weight: normal;">Toolbar Style</label>\n <select id="cfg-dmp-toolbarStyle">\n <option value="">- Not set -</option>\n <option value="top">top</option>\n <option value="inline">inline</option>\n <option value="hidden">hidden</option>\n </select>\n </div>\n <div class="field">\n <label for="cfg-dmp-links" style="font-weight: normal;">Links</label>\n <select id="cfg-dmp-links">\n <option value="">- Not set -</option>\n <option value="auto">auto</option>\n <option value="blank">blank</option>\n <option value="self">self</option>\n </select>\n </div>\n </div>\n <div class="field-row">\n <div class="field">\n <label for="cfg-dmp-width" style="font-weight: normal;">Width</label>\n <input type="number" id="cfg-dmp-width" placeholder="e.g. 800" min="1">\n </div>\n <div class="field" style="padding-top: 16px;">\n <div id="dmp-toggles-container"></div>\n </div>\n </div>\n <div style="display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px;" id="dmp-booleans">\n <label class="checkbox"><input type="checkbox" id="cfg-dmp-border" data-tristate="true"> <span>Border</span></label>\n <label class="checkbox"><input type="checkbox" id="cfg-dmp-lightbox" data-tristate="true"> <span>Lightbox</span></label>\n <label class="checkbox"><input type="checkbox" id="cfg-dmp-simpleViewer" data-tristate="true"> <span>Simple Viewer</span></label>\n </div>\n </div>\n </div>\n </div>\n</div>'};EditorUi.DIFF_INSERT="i";EditorUi.DIFF_REMOVE="r";EditorUi.DIFF_UPDATE="u";EditorUi.DIFF_FILE="f";EditorUi.transientViewStateProperties="defaultParent currentRoot scrollLeft scrollTop scale translate lastPasteXml pasteCounter".split(" ");EditorUi.prototype.viewStateProperties={background:!0,backgroundImage:!0,shadowVisible:!0,foldingEnabled:!0,pageScale:!0,mathEnabled:!0,pageFormat:!0,extFonts:!0,adaptiveColors:!0};EditorUi.prototype.cellProperties={id:!0,value:!0,xmlValue:!0,vertex:!0,edge:!0,visible:!0,collapsed:!0,connectable:!0,parent:!0,children:!0,previous:!0,source:!0,target:!0,edges:!0,geometry:!0,style:!0,overlays:!0,mxObjectId:!0,mxTransient:!0};EditorUi.isPrototypePollutionKey=function(b){return"__proto__"==b||"constructor"==b||"prototype"==b};EditorUi.prototype.codec=new mxCodec;-EditorUi.prototype.applyPatches=function(b,k,m,f,q){if(null!=k)for(var u=0;u<k.length;u++)null!=k[u]&&(b=this.patchPages(b,k[u],m,f,q));return b};EditorUi.prototype.patchFileNode=function(b){var k=!1;if(null!=this.fileNode&&null!=b)for(var m=0;m<b.length;m++)if(null!=b[m]&&null!=b[m][EditorUi.DIFF_FILE])for(var f in b[m][EditorUi.DIFF_FILE])k=b[m][EditorUi.DIFF_FILE][f],null!=k?this.fileNode.setAttribute(f,k):this.fileNode.removeAttribute(f),k=!0;return k};-EditorUi.prototype.patchPages=function(b,k,m,f,q){var u=Object.create(null),x=[],z=Object.create(null),F=Object.create(null),J=Object.create(null),H=Object.create(null);if(null!=f&&null!=f[EditorUi.DIFF_UPDATE])for(var D in f[EditorUi.DIFF_UPDATE])u[D]=f[EditorUi.DIFF_UPDATE][D];if(null!=k[EditorUi.DIFF_REMOVE])for(f=0;f<k[EditorUi.DIFF_REMOVE].length;f++)F[k[EditorUi.DIFF_REMOVE][f]]=!0;if(null!=k[EditorUi.DIFF_INSERT])for(f=0;f<k[EditorUi.DIFF_INSERT].length;f++)z[k[EditorUi.DIFF_INSERT][f].previous]=-k[EditorUi.DIFF_INSERT][f];if(null!=k[EditorUi.DIFF_UPDATE])for(D in k[EditorUi.DIFF_UPDATE])f=k[EditorUi.DIFF_UPDATE][D],null!=f.previous&&(H[f.previous]=D);if(null!=b){var c="";for(f=0;f<b.length;f++){var g=b[f].getId();J[g]=b[f];null!=H[c]||F[g]||null!=k[EditorUi.DIFF_UPDATE]&&null!=k[EditorUi.DIFF_UPDATE][g]&&null!=k[EditorUi.DIFF_UPDATE][g].previous||(H[c]=g);c=g}}var l=Object.create(null),n=mxUtils.bind(this,function(t){var v=null!=t?t.getId():"";if(null!=t&&!l[v]){l[v]=!0;x.push(t);var B=null!=+EditorUi.prototype.applyPatches=function(b,k,m,g,q){if(null!=k)for(var u=0;u<k.length;u++)null!=k[u]&&(b=this.patchPages(b,k[u],m,g,q));return b};EditorUi.prototype.patchFileNode=function(b){var k=!1;if(null!=this.fileNode&&null!=b)for(var m=0;m<b.length;m++)if(null!=b[m]&&null!=b[m][EditorUi.DIFF_FILE])for(var g in b[m][EditorUi.DIFF_FILE])k=b[m][EditorUi.DIFF_FILE][g],null!=k?this.fileNode.setAttribute(g,k):this.fileNode.removeAttribute(g),k=!0;return k};+EditorUi.prototype.patchPages=function(b,k,m,g,q){var u=Object.create(null),x=[],z=Object.create(null),F=Object.create(null),J=Object.create(null),H=Object.create(null);if(null!=g&&null!=g[EditorUi.DIFF_UPDATE])for(var D in g[EditorUi.DIFF_UPDATE])u[D]=g[EditorUi.DIFF_UPDATE][D];if(null!=k[EditorUi.DIFF_REMOVE])for(g=0;g<k[EditorUi.DIFF_REMOVE].length;g++)F[k[EditorUi.DIFF_REMOVE][g]]=!0;if(null!=k[EditorUi.DIFF_INSERT])for(g=0;g<k[EditorUi.DIFF_INSERT].length;g++)z[k[EditorUi.DIFF_INSERT][g].previous]=+k[EditorUi.DIFF_INSERT][g];if(null!=k[EditorUi.DIFF_UPDATE])for(D in k[EditorUi.DIFF_UPDATE])g=k[EditorUi.DIFF_UPDATE][D],null!=g.previous&&(H[g.previous]=D);if(null!=b){var c="";for(g=0;g<b.length;g++){var f=b[g].getId();J[f]=b[g];null!=H[c]||F[f]||null!=k[EditorUi.DIFF_UPDATE]&&null!=k[EditorUi.DIFF_UPDATE][f]&&null!=k[EditorUi.DIFF_UPDATE][f].previous||(H[c]=f);c=f}}var l=Object.create(null),n=mxUtils.bind(this,function(t){var v=null!=t?t.getId():"";if(null!=t&&!l[v]){l[v]=!0;x.push(t);var B=null!=k[EditorUi.DIFF_UPDATE]?k[EditorUi.DIFF_UPDATE][v]:null;null!=B&&(this.updatePageRoot(t),null!=B.name&&t.setName(B.name),null!=B.viewBox&&(""==B.viewBox?t.node.removeAttribute("viewBox"):t.node.setAttribute("viewBox",B.viewBox)),null!=B.view&&this.patchViewState(t,B.view),null!=B.cells&&this.patchPage(t,B.cells,u[t.getId()],q),!m||null==B.cells&&null==B.view||(t.needsUpdate=!0))}t=H[v];null!=t&&(delete H[v],n(J[t]));t=z[v];null!=t&&(delete z[v],r(t))}),r=mxUtils.bind(this,function(t){t=mxUtils.parseXml(t.data).documentElement;t=new DiagramPage(t);this.updatePageRoot(t);var v=J[t.getId()];null==v?n(t):(this.patchPage(v,this.diffPages([v],[t]),u[v.getId()],q),m&&(v.needsUpdate=!0))});n();for(D in H)n(J[H[D]]),delete H[D];for(D in z)r(z[D]),delete z[D];return x};-EditorUi.prototype.patchViewState=function(b,k){if(null!=k){if(null==b.viewState){var m=mxUtils.createXmlDocument();b.viewState=this.editor.graph.createViewState(m.createElement("mxGraphModel"))}b==this.currentPage&&(b.viewState=this.editor.graph.getViewState());for(var f in k)if(!EditorUi.isPrototypePollutionKey(f))try{this.patchViewStateProperty(b,k,f)}catch(q){}b==this.currentPage&&this.editor.graph.setViewState(b.viewState,!0)}};+EditorUi.prototype.patchViewState=function(b,k){if(null!=k){if(null==b.viewState){var m=mxUtils.createXmlDocument();b.viewState=this.editor.graph.createViewState(m.createElement("mxGraphModel"))}b==this.currentPage&&(b.viewState=this.editor.graph.getViewState());for(var g in k)if(!EditorUi.isPrototypePollutionKey(g))try{this.patchViewStateProperty(b,k,g)}catch(q){}b==this.currentPage&&this.editor.graph.setViewState(b.viewState,!0)}};EditorUi.prototype.patchViewStateProperty=function(b,k,m){b.viewState[m]=JSON.parse(k[m])};-EditorUi.prototype.createParentLookup=function(b,k){function m(J){var H=f[J];null==H&&(H={inserted:Object.create(null),moved:Object.create(null)},f[J]=H);return H}var f=Object.create(null);if(null!=k[EditorUi.DIFF_INSERT])for(var q=0;q<k[EditorUi.DIFF_INSERT].length;q++){var u=k[EditorUi.DIFF_INSERT][q],x=null!=u.parent?u.parent:"",z=null!=u.previous?u.previous:"";m(x).inserted[z]=u}if(null!=k[EditorUi.DIFF_UPDATE])for(var F in k[EditorUi.DIFF_UPDATE])u=k[EditorUi.DIFF_UPDATE][F],null!=u.previous&&-(x=u.parent,null==x&&(q=b.getCell(F),null!=q&&(q=b.getParent(q),null!=q&&(x=q.getId()))),null!=x&&(m(x).moved[u.previous]=F));return f};-EditorUi.prototype.patchPage=function(b,k,m,f){var q=b==this.currentPage?this.editor.graph.model:new mxGraphModel(b.root),u=this.createParentLookup(q,k);q.beginUpdate();try{var x=q.updateEdgeParent,z=new mxDictionary,F=[];q.updateEdgeParent=function(r,t){!z.get(r)&&f&&(z.put(r,!0),F.push(r))};var J=u[""],H=null!=J&&null!=J.inserted?J.inserted[""]:null,D=null;null!=H&&(D=this.getCellForJson(H));if(null==D){var c=null!=J&&null!=J.moved?J.moved[""]:null;null!=c&&(D=q.getCell(c))}null!=D&&(q.setRoot(D),-b.root=D,EditorUi.debug("EditorUi.patchPage: Root changed",D.id));this.patchCellRecursive(b,q,q.root,u,k);if(null!=k[EditorUi.DIFF_REMOVE])for(var g=0;g<k[EditorUi.DIFF_REMOVE].length;g++){c=k[EditorUi.DIFF_REMOVE][g];var l=q.getCell(c);null!=l&&q.remove(l)}if(null!=k[EditorUi.DIFF_UPDATE]){var n=null!=m&&null!=m.cells?m.cells[EditorUi.DIFF_UPDATE]:null;for(c in k[EditorUi.DIFF_UPDATE])l=q.getCell(c),null!=l?this.patchCell(q,l,k[EditorUi.DIFF_UPDATE][c],null!=n?n[c]:null):EditorUi.debug("EditorUi.patchPage: Updated cell not found",-c,"diff",[k[EditorUi.DIFF_UPDATE][c]])}if(null!=k[EditorUi.DIFF_INSERT])for(g=0;g<k[EditorUi.DIFF_INSERT].length;g++)H=k[EditorUi.DIFF_INSERT][g],l=q.getCell(H.id),null!=l&&(q.setTerminal(l,q.getCell(H.source),!0),q.setTerminal(l,q.getCell(H.target),!1));q.updateEdgeParent=x;if(f&&0<F.length)for(g=0;g<F.length;g++)q.contains(F[g])&&q.updateEdgeParent(F[g])}finally{q.endUpdate()}};-EditorUi.prototype.patchCellRecursive=function(b,k,m,f,q){if(null!=m){var u=f[m.getId()],x=null!=u&&null!=u.inserted?u.inserted:Object.create(null);u=null!=u&&null!=u.moved?u.moved:Object.create(null);for(var z=0,F=k.getChildCount(m),J="",H=0;H<F;H++){var D=k.getChildAt(m,H).getId();null==u[J]&&(null==q[EditorUi.DIFF_UPDATE]||null==q[EditorUi.DIFF_UPDATE][D]||null==q[EditorUi.DIFF_UPDATE][D].previous&&null==q[EditorUi.DIFF_UPDATE][D].parent)&&(u[J]=D);J=D}F=mxUtils.bind(this,function(c,g){var l=null!=-c?c.getId():"";null==l&&EditorUi.debug("EditorUi.patchCellRecursive: Inserting cell with null id","cell",c);null!=c&&g&&(g=k.getCell(l),null!=g&&g!=c&&(c=null));null!=c&&(k.getChildAt(m,z)!=c&&k.add(m,c,z),this.patchCellRecursive(b,k,c,f,q),z++);return l});for(J=[null];0<J.length;)if(H=J.shift(),H=F(null!=H?H.child:null,null!=H?H.insert:!1),D=u[H],null!=D&&(delete u[H],J.push({child:k.getCell(D)})),D=x[H],null!=D&&(delete x[H],J.push({child:this.getCellForJson(D),insert:!0})),0==J.length){for(H in u)J.push({child:k.getCell(u[H])}),+EditorUi.prototype.createParentLookup=function(b,k){function m(J){var H=g[J];null==H&&(H={inserted:Object.create(null),moved:Object.create(null)},g[J]=H);return H}var g=Object.create(null);if(null!=k[EditorUi.DIFF_INSERT])for(var q=0;q<k[EditorUi.DIFF_INSERT].length;q++){var u=k[EditorUi.DIFF_INSERT][q],x=null!=u.parent?u.parent:"",z=null!=u.previous?u.previous:"";m(x).inserted[z]=u}if(null!=k[EditorUi.DIFF_UPDATE])for(var F in k[EditorUi.DIFF_UPDATE])u=k[EditorUi.DIFF_UPDATE][F],null!=u.previous&&+(x=u.parent,null==x&&(q=b.getCell(F),null!=q&&(q=b.getParent(q),null!=q&&(x=q.getId()))),null!=x&&(m(x).moved[u.previous]=F));return g};+EditorUi.prototype.patchPage=function(b,k,m,g){var q=b==this.currentPage?this.editor.graph.model:new mxGraphModel(b.root),u=this.createParentLookup(q,k);q.beginUpdate();try{var x=q.updateEdgeParent,z=new mxDictionary,F=[];q.updateEdgeParent=function(r,t){!z.get(r)&&g&&(z.put(r,!0),F.push(r))};var J=u[""],H=null!=J&&null!=J.inserted?J.inserted[""]:null,D=null;null!=H&&(D=this.getCellForJson(H));if(null==D){var c=null!=J&&null!=J.moved?J.moved[""]:null;null!=c&&(D=q.getCell(c))}null!=D&&(q.setRoot(D),+b.root=D,EditorUi.debug("EditorUi.patchPage: Root changed",D.id));this.patchCellRecursive(b,q,q.root,u,k);if(null!=k[EditorUi.DIFF_REMOVE])for(var f=0;f<k[EditorUi.DIFF_REMOVE].length;f++){c=k[EditorUi.DIFF_REMOVE][f];var l=q.getCell(c);null!=l&&q.remove(l)}if(null!=k[EditorUi.DIFF_UPDATE]){var n=null!=m&&null!=m.cells?m.cells[EditorUi.DIFF_UPDATE]:null;for(c in k[EditorUi.DIFF_UPDATE])l=q.getCell(c),null!=l?this.patchCell(q,l,k[EditorUi.DIFF_UPDATE][c],null!=n?n[c]:null):EditorUi.debug("EditorUi.patchPage: Updated cell not found",+c,"diff",[k[EditorUi.DIFF_UPDATE][c]])}if(null!=k[EditorUi.DIFF_INSERT])for(f=0;f<k[EditorUi.DIFF_INSERT].length;f++)H=k[EditorUi.DIFF_INSERT][f],l=q.getCell(H.id),null!=l&&(q.setTerminal(l,q.getCell(H.source),!0),q.setTerminal(l,q.getCell(H.target),!1));q.updateEdgeParent=x;if(g&&0<F.length)for(f=0;f<F.length;f++)q.contains(F[f])&&q.updateEdgeParent(F[f])}finally{q.endUpdate()}};+EditorUi.prototype.patchCellRecursive=function(b,k,m,g,q){if(null!=m){var u=g[m.getId()],x=null!=u&&null!=u.inserted?u.inserted:Object.create(null);u=null!=u&&null!=u.moved?u.moved:Object.create(null);for(var z=0,F=k.getChildCount(m),J="",H=0;H<F;H++){var D=k.getChildAt(m,H).getId();null==u[J]&&(null==q[EditorUi.DIFF_UPDATE]||null==q[EditorUi.DIFF_UPDATE][D]||null==q[EditorUi.DIFF_UPDATE][D].previous&&null==q[EditorUi.DIFF_UPDATE][D].parent)&&(u[J]=D);J=D}F=mxUtils.bind(this,function(c,f){var l=null!=+c?c.getId():"";null==l&&EditorUi.debug("EditorUi.patchCellRecursive: Inserting cell with null id","cell",c);null!=c&&f&&(f=k.getCell(l),null!=f&&f!=c&&(c=null));null!=c&&(k.getChildAt(m,z)!=c&&k.add(m,c,z),this.patchCellRecursive(b,k,c,g,q),z++);return l});for(J=[null];0<J.length;)if(H=J.shift(),H=F(null!=H?H.child:null,null!=H?H.insert:!1),D=u[H],null!=D&&(delete u[H],J.push({child:k.getCell(D)})),D=x[H],null!=D&&(delete x[H],J.push({child:this.getCellForJson(D),insert:!0})),0==J.length){for(H in u)J.push({child:k.getCell(u[H])}),delete u[H];for(H in x)J.push({child:this.getCellForJson(x[H]),insert:!0}),delete x[H]}}};-EditorUi.prototype.patchCell=function(b,k,m,f){if(null!=k&&null!=m){if(null==f||null==f.xmlValue&&(null==f.value||""==f.value))"value"in m?b.setValue(k,m.value):null!=m.xmlValue&&b.setValue(k,mxUtils.parseXml(m.xmlValue).documentElement);(null==f||null==f.style)&&"style"in m&&b.setStyle(k,m.style);null!=m.visible&&b.setVisible(k,1==m.visible);null!=m.collapsed&&b.setCollapsed(k,1==m.collapsed);null!=m.vertex&&(k.vertex=1==m.vertex);null!=m.edge&&(k.edge=1==m.edge);null!=m.connectable&&(k.connectable=+EditorUi.prototype.patchCell=function(b,k,m,g){if(null!=k&&null!=m){if(null==g||null==g.xmlValue&&(null==g.value||""==g.value))"value"in m?b.setValue(k,m.value):null!=m.xmlValue&&b.setValue(k,mxUtils.parseXml(m.xmlValue).documentElement);(null==g||null==g.style)&&"style"in m&&b.setStyle(k,m.style);null!=m.visible&&b.setVisible(k,1==m.visible);null!=m.collapsed&&b.setCollapsed(k,1==m.collapsed);null!=m.vertex&&(k.vertex=1==m.vertex);null!=m.edge&&(k.edge=1==m.edge);null!=m.connectable&&(k.connectable=1==m.connectable);"string"==typeof m.geometry&&b.setGeometry(k,this.codec.decode(mxUtils.parseXml(m.geometry).documentElement));null!=m.source&&b.setTerminal(k,b.getCell(m.source),!0);null!=m.target&&b.setTerminal(k,b.getCell(m.target),!1);for(var q in m)this.cellProperties[q]||EditorUi.isPrototypePollutionKey(q)||(k[q]=m[q])}};EditorUi.prototype.getXmlForPages=function(b){b=this.getNodeForPages(b);var k=null;null!=b&&(k=mxUtils.getXml(b));return k};-EditorUi.prototype.getNodeForPages=function(b){var k=null;if(null!=this.fileNode&&null!=b){k=this.fileNode.cloneNode(!1);for(var m=0;m<b.length;m++){var f=(new mxCodec(mxUtils.createXmlDocument())).encode(new mxGraphModel(b[m].root));this.editor.graph.saveViewState(b[m].viewState,f);var q=b[m].node.cloneNode(!1);q.appendChild(f);k.appendChild(q)}}return k};EditorUi.prototype.getPagesForXml=function(b,k){b=mxUtils.parseXml(b);return this.getPagesForNode(b.documentElement,null,k)};-EditorUi.prototype.getPagesForNode=function(b,k,m){var f=this.editor.extractGraphModel(b,!0,!0);null!=f&&(b=f);k=b.getElementsByTagName(k||"diagram");f=[];if(0<k.length)for(b=0;b<k.length;b++){var q=new DiagramPage(k[b]);try{this.updatePageRoot(q,!0)}catch(u){if(!m)throw u;q=null}f.push(q)}else"mxGraphModel"==b.nodeName&&(q=new DiagramPage(b.ownerDocument.createElement("diagram")),q.setName(mxResources.get("pageWithNumber",[1])),q.node.appendChild(b.cloneNode(!0)),f.push(q));return f};-EditorUi.prototype.diffPages=function(b,k){var m=[],f=[],q=Object.create(null),u=Object.create(null),x=Object.create(null),z=null;if(null!=b&&null!=k){for(var F=0;F<k.length;F++)null!=k[F]&&(u[k[F].getId()]={page:k[F],prev:z},z=k[F]);z=null;for(F=0;F<b.length;F++)if(null!=b[F]){var J=b[F].getId(),H=u[J];if(null==H)f.push(J);else{this.updatePageRoot(b[F]);this.updatePageRoot(H.page);var D=this.diffCells(b[F].root,H.page.root);k={};mxUtils.isEmptyObject(D)||(k.cells=D);D=this.diffViewState(b[F],H.page);+EditorUi.prototype.getNodeForPages=function(b){var k=null;if(null!=this.fileNode&&null!=b){k=this.fileNode.cloneNode(!1);for(var m=0;m<b.length;m++){var g=(new mxCodec(mxUtils.createXmlDocument())).encode(new mxGraphModel(b[m].root));this.editor.graph.saveViewState(b[m].viewState,g);var q=b[m].node.cloneNode(!1);q.appendChild(g);k.appendChild(q)}}return k};EditorUi.prototype.getPagesForXml=function(b,k){b=mxUtils.parseXml(b);return this.getPagesForNode(b.documentElement,null,k)};+EditorUi.prototype.getPagesForNode=function(b,k,m){var g=this.editor.extractGraphModel(b,!0,!0);null!=g&&(b=g);k=b.getElementsByTagName(k||"diagram");g=[];if(0<k.length)for(b=0;b<k.length;b++){var q=new DiagramPage(k[b]);try{this.updatePageRoot(q,!0)}catch(u){if(!m)throw u;q=null}g.push(q)}else"mxGraphModel"==b.nodeName&&(q=new DiagramPage(b.ownerDocument.createElement("diagram")),q.setName(mxResources.get("pageWithNumber",[1])),q.node.appendChild(b.cloneNode(!0)),g.push(q));return g};+EditorUi.prototype.diffPages=function(b,k){var m=[],g=[],q=Object.create(null),u=Object.create(null),x=Object.create(null),z=null;if(null!=b&&null!=k){for(var F=0;F<k.length;F++)null!=k[F]&&(u[k[F].getId()]={page:k[F],prev:z},z=k[F]);z=null;for(F=0;F<b.length;F++)if(null!=b[F]){var J=b[F].getId(),H=u[J];if(null==H)g.push(J);else{this.updatePageRoot(b[F]);this.updatePageRoot(H.page);var D=this.diffCells(b[F].root,H.page.root);k={};mxUtils.isEmptyObject(D)||(k.cells=D);D=this.diffViewState(b[F],H.page);mxUtils.isEmptyObject(D)||(k.view=D);if((null!=H.prev?null==z:null!=z)||null!=z&&null!=H.prev&&z.getId()!=H.prev.getId())k.previous=null!=H.prev?H.prev.getId():"";null!=H.page.getName()&&b[F].getName()!=H.page.getName()&&(k.name=H.page.getName());z=b[F].node.getAttribute("viewBox");H=H.page.node.getAttribute("viewBox");H!=z&&(k.viewBox=null!=H?H:"");mxUtils.isEmptyObject(k)||(x[J]=k)}delete u[b[F].getId()];z=b[F]}for(J in u)H=u[J],m.push({id:H.page.getId(),data:mxUtils.getXml(H.page.node),previous:null!=-H.prev?H.prev.getId():""});mxUtils.isEmptyObject(x)||(q[EditorUi.DIFF_UPDATE]=x);0<f.length&&(q[EditorUi.DIFF_REMOVE]=f);0<m.length&&(q[EditorUi.DIFF_INSERT]=m)}return q};EditorUi.prototype.createCellLookup=function(b,k,m){m=null!=m?m:Object.create(null);null==b.getId()?EditorUi.debug("EditorUi.createCellLookup: Ignored inserted cell with no id",b):m[b.getId()]={cell:b,prev:k};var f=b.getChildCount();k=null;for(var q=0;q<f;q++){var u=b.getChildAt(q);this.createCellLookup(u,k,m);k=u}return m};-EditorUi.prototype.diffCellRecursive=function(b,k,m,f,q){f=null!=f?f:{};var u=m[b.getId()];delete m[b.getId()];if(null==u)null==b.getId()?EditorUi.debug("EditorUi.diffCellRecursive: Ignored removed cell with no id",b):q.push(b.getId());else{var x=this.diffCell(b,u.cell);if(null!=x.parent||(null!=u.prev?null==k:null!=k)||null!=k&&null!=u.prev&&k.getId()!=u.prev.getId())x.previous=null!=u.prev?u.prev.getId():"";mxUtils.isEmptyObject(x)||(null==b.getId()?EditorUi.debug("EditorUi.diffCellRecursive: Ignored changed cell with no id",-b,"diff",x):f[b.getId()]=x)}u=b.getChildCount();k=null;for(x=0;x<u;x++){var z=b.getChildAt(x);this.diffCellRecursive(z,k,m,f,q);k=z}return f};-EditorUi.prototype.diffCells=function(b,k){var m={},f=[],q=this.createCellLookup(k);k.id==b.id?(k=[],b=this.diffCellRecursive(b,null,q,null,k),mxUtils.isEmptyObject(b)||(m[EditorUi.DIFF_UPDATE]=b),0<k.length&&(m[EditorUi.DIFF_REMOVE]=k)):EditorUi.debug("EditorUi.diffCells: Root changed",k.id);for(var u in q)b=q[u],f.push(this.getJsonForCell(b.cell,b.prev));0<f.length&&(m[EditorUi.DIFF_INSERT]=f);return m};-EditorUi.prototype.diffViewState=function(b,k){var m=b.viewState,f=k.viewState,q={};b==this.currentPage&&(m=this.editor.graph.getViewState());k==this.currentPage&&(f=this.editor.graph.getViewState());null==m&&(m=this.editor.graph.createViewState(mxUtils.createXmlDocument().createElement("mxGraphModel")));null==f&&(f=this.editor.graph.createViewState(mxUtils.createXmlDocument().createElement("mxGraphModel")));for(var u in this.viewStateProperties)this.diffViewStateProperty(m,f,u,q);return q};-EditorUi.prototype.diffViewStateProperty=function(b,k,m,f){b=JSON.stringify(this.getViewStateProperty(b,m));k=JSON.stringify(this.getViewStateProperty(k,m));b!=k&&(f[m]=k)};EditorUi.prototype.getViewStateProperty=function(b,k){b=b[k];"backgroundImage"==k&&null!=b&&null!=b.originalSrc?b={originalSrc:b.originalSrc}:"extFonts"==k&&null==b&&(b=[]);return b};-EditorUi.prototype.getCellForJson=function(b){var k=null!=b.geometry?this.codec.decode(mxUtils.parseXml(b.geometry).documentElement):null,m=b.value;null!=b.xmlValue&&(m=mxUtils.parseXml(b.xmlValue).documentElement);k=new mxCell(m,k,b.style);k.connectable=0!=b.connectable;k.collapsed=1==b.collapsed;k.visible=0!=b.visible;k.vertex=1==b.vertex;k.edge=1==b.edge;k.id=b.id;for(var f in b)this.cellProperties[f]||EditorUi.isPrototypePollutionKey(f)||(k[f]=b[f]);return k};+H.prev?H.prev.getId():""});mxUtils.isEmptyObject(x)||(q[EditorUi.DIFF_UPDATE]=x);0<g.length&&(q[EditorUi.DIFF_REMOVE]=g);0<m.length&&(q[EditorUi.DIFF_INSERT]=m)}return q};EditorUi.prototype.createCellLookup=function(b,k,m){m=null!=m?m:Object.create(null);null==b.getId()?EditorUi.debug("EditorUi.createCellLookup: Ignored inserted cell with no id",b):m[b.getId()]={cell:b,prev:k};var g=b.getChildCount();k=null;for(var q=0;q<g;q++){var u=b.getChildAt(q);this.createCellLookup(u,k,m);k=u}return m};+EditorUi.prototype.diffCellRecursive=function(b,k,m,g,q){g=null!=g?g:{};var u=m[b.getId()];delete m[b.getId()];if(null==u)null==b.getId()?EditorUi.debug("EditorUi.diffCellRecursive: Ignored removed cell with no id",b):q.push(b.getId());else{var x=this.diffCell(b,u.cell);if(null!=x.parent||(null!=u.prev?null==k:null!=k)||null!=k&&null!=u.prev&&k.getId()!=u.prev.getId())x.previous=null!=u.prev?u.prev.getId():"";mxUtils.isEmptyObject(x)||(null==b.getId()?EditorUi.debug("EditorUi.diffCellRecursive: Ignored changed cell with no id",+b,"diff",x):g[b.getId()]=x)}u=b.getChildCount();k=null;for(x=0;x<u;x++){var z=b.getChildAt(x);this.diffCellRecursive(z,k,m,g,q);k=z}return g};+EditorUi.prototype.diffCells=function(b,k){var m={},g=[],q=this.createCellLookup(k);k.id==b.id?(k=[],b=this.diffCellRecursive(b,null,q,null,k),mxUtils.isEmptyObject(b)||(m[EditorUi.DIFF_UPDATE]=b),0<k.length&&(m[EditorUi.DIFF_REMOVE]=k)):EditorUi.debug("EditorUi.diffCells: Root changed",k.id);for(var u in q)b=q[u],g.push(this.getJsonForCell(b.cell,b.prev));0<g.length&&(m[EditorUi.DIFF_INSERT]=g);return m};+EditorUi.prototype.diffViewState=function(b,k){var m=b.viewState,g=k.viewState,q={};b==this.currentPage&&(m=this.editor.graph.getViewState());k==this.currentPage&&(g=this.editor.graph.getViewState());null==m&&(m=this.editor.graph.createViewState(mxUtils.createXmlDocument().createElement("mxGraphModel")));null==g&&(g=this.editor.graph.createViewState(mxUtils.createXmlDocument().createElement("mxGraphModel")));for(var u in this.viewStateProperties)this.diffViewStateProperty(m,g,u,q);return q};+EditorUi.prototype.diffViewStateProperty=function(b,k,m,g){b=JSON.stringify(this.getViewStateProperty(b,m));k=JSON.stringify(this.getViewStateProperty(k,m));b!=k&&(g[m]=k)};EditorUi.prototype.getViewStateProperty=function(b,k){b=b[k];"backgroundImage"==k&&null!=b&&null!=b.originalSrc?b={originalSrc:b.originalSrc}:"extFonts"==k&&null==b&&(b=[]);return b};+EditorUi.prototype.getCellForJson=function(b){var k=null!=b.geometry?this.codec.decode(mxUtils.parseXml(b.geometry).documentElement):null,m=b.value;null!=b.xmlValue&&(m=mxUtils.parseXml(b.xmlValue).documentElement);k=new mxCell(m,k,b.style);k.connectable=0!=b.connectable;k.collapsed=1==b.collapsed;k.visible=0!=b.visible;k.vertex=1==b.vertex;k.edge=1==b.edge;k.id=b.id;for(var g in b)this.cellProperties[g]||EditorUi.isPrototypePollutionKey(g)||(k[g]=b[g]);return k};EditorUi.prototype.getJsonForCell=function(b,k){var m={id:b.getId()};b.vertex&&(m.vertex=1);b.edge&&(m.edge=1);b.connectable||(m.connectable=0);null!=b.parent&&(m.parent=b.parent.getId());null!=k&&(m.previous=k.getId());null!=b.source&&(m.source=b.source.getId());null!=b.target&&(m.target=b.target.getId());null!=b.style&&(m.style=b.style);null!=b.geometry&&(m.geometry=mxUtils.getXml(this.codec.encode(b.geometry)));b.collapsed&&(m.collapsed=1);b.visible||(m.visible=0);null!=b.value&&("object"===typeof b.value&&-"number"===typeof b.value.nodeType&&"string"===typeof b.value.nodeName&&"function"===typeof b.value.getAttribute?m.xmlValue=mxUtils.getXml(b.value):m.value=b.value);for(var f in b)this.cellProperties[f]||"function"===typeof b[f]||(m[f]=b[f]);return m};-EditorUi.prototype.diffCell=function(b,k){function m(x){return null!=x&&"object"===typeof x&&"number"===typeof x.nodeType&&"string"===typeof x.nodeName&&"function"===typeof x.getAttribute}var f={};b.vertex!=k.vertex&&(f.vertex=k.vertex?1:0);b.edge!=k.edge&&(f.edge=k.edge?1:0);b.connectable!=k.connectable&&(f.connectable=k.connectable?1:0);if((null!=b.parent?null==k.parent:null!=k.parent)||null!=b.parent&&null!=k.parent&&b.parent.getId()!=k.parent.getId())f.parent=null!=k.parent?k.parent.getId():"";-if((null!=b.source?null==k.source:null!=k.source)||null!=b.source&&null!=k.source&&b.source.getId()!=k.source.getId())f.source=null!=k.source?k.source.getId():"";if((null!=b.target?null==k.target:null!=k.target)||null!=b.target&&null!=k.target&&b.target.getId()!=k.target.getId())f.target=null!=k.target?k.target.getId():"";m(b.value)&&m(k.value)?b.value.isEqualNode(k.value)||(f.xmlValue=mxUtils.getXml(k.value)):b.value!=k.value&&(m(k.value)?f.xmlValue=mxUtils.getXml(k.value):f.value=null!=k.value?-k.value:null);b.style!=k.style&&(f.style=null!=k.style?k.style:null);b.visible!=k.visible&&(f.visible=k.visible?1:0);b.collapsed!=k.collapsed&&(f.collapsed=k.collapsed?1:0);if(!this.isObjectEqual(b.geometry,k.geometry,new mxGeometry)){var q=this.codec.encode(k.geometry);null!=q&&(f.geometry=mxUtils.getXml(q))}for(var u in b)this.cellProperties[u]||"function"===typeof b[u]||"function"===typeof k[u]||b[u]==k[u]||(f[u]=void 0===k[u]?null:k[u]);for(u in k)u in b||this.cellProperties[u]||"function"===-typeof b[u]||"function"===typeof k[u]||b[u]==k[u]||(f[u]=void 0===k[u]?null:k[u]);return f};EditorUi.prototype.resolveCrossReferences=function(b,k){var m={};mxUtils.isEmptyObject(k)||(this.adoptTheirPages(b,k,m),this.adoptTheirCells(b,k,m));EditorUi.debug("EditorUi.resolveCrossReferences",[this],"ownDiff",b,"theirDiff",k,"resolve",m);return m};-EditorUi.prototype.adoptTheirPages=function(b,k,m){var f={};if(null!=k[EditorUi.DIFF_INSERT])for(var q=0;q<k[EditorUi.DIFF_INSERT].length;q++)f[k[EditorUi.DIFF_INSERT][q].id]=k[EditorUi.DIFF_INSERT][q];for(var u in b[EditorUi.DIFF_UPDATE])null!=f[u]&&(null==m[EditorUi.DIFF_INSERT]&&(m[EditorUi.DIFF_INSERT]=[]),null==m[EditorUi.DIFF_UPDATE]&&(m[EditorUi.DIFF_UPDATE]={}),m[EditorUi.DIFF_INSERT].push(f[u]),m[EditorUi.DIFF_UPDATE][u]=b[EditorUi.DIFF_UPDATE][u],delete b[EditorUi.DIFF_UPDATE][u])};-EditorUi.prototype.adoptTheirCells=function(b,k,m){for(var f in b[EditorUi.DIFF_UPDATE]){var q=b[EditorUi.DIFF_UPDATE][f];null!=q.cells&&this.adoptTheirCellsFromPage(q,k,f,m)}};-EditorUi.prototype.adoptTheirCellsFromPage=function(b,k,m,f){var q=null!=k[EditorUi.DIFF_UPDATE]?k[EditorUi.DIFF_UPDATE][m]:null;if(null!=q&&null!=q.cells&&null!=q.cells[EditorUi.DIFF_INSERT]){k=q.cells[EditorUi.DIFF_UPDATE];for(var u={},x=0;x<q.cells[EditorUi.DIFF_INSERT].length;x++){var z=q.cells[EditorUi.DIFF_INSERT][x];u[z.id]=z}q={cells:{}};q.cells[EditorUi.DIFF_INSERT]=[];q.cells[EditorUi.DIFF_UPDATE]={};q.inserted=Object.create(null);this.resolveOwnInsertedCells(b.cells[EditorUi.DIFF_INSERT],-u,q);this.resolveOwnUpdatedCells(b.cells[EditorUi.DIFF_UPDATE],u,k,q);null==f[EditorUi.DIFF_UPDATE]&&(f[EditorUi.DIFF_UPDATE]={});delete q.inserted;f[EditorUi.DIFF_UPDATE][m]=q}};EditorUi.prototype.resolveOwnInsertedCells=function(b,k,m){if(null!=b)for(var f=0;f<b.length;f++){var q=b[f];null!=q&&(this.adoptParentCell(q.id,null,k,m),this.adoptTerminalCell(q.id,q,k,!0,m),this.adoptTerminalCell(q.id,q,k,!1,m))}};-EditorUi.prototype.resolveOwnUpdatedCells=function(b,k,m,f){if(null!=b)for(var q in b){var u=k[q];null!=u?(f.inserted[q]||(f.cells[EditorUi.DIFF_INSERT].push(u),f.inserted[q]=!0),f.cells[EditorUi.DIFF_UPDATE][q]=b[q]):null!=m&&(u=m[q],null!=u&&(this.adoptParentCell(q,u,k,f),this.adoptTerminalCell(q,u,k,!0,f,q),this.adoptTerminalCell(q,u,k,!1,f,q)))}};-EditorUi.prototype.adoptParentCell=function(b,k,m,f){var q=m[b],u=null!=k?k.parent:null!=q?q.parent:null;null!=u&&this.adoptParentCell(u,null,m,f);null!=q?f.inserted[b]||(f.cells[EditorUi.DIFF_INSERT].push(q),f.inserted[b]=!0):null!=k&&(null==f.cells[EditorUi.DIFF_UPDATE][b]&&(f.cells[EditorUi.DIFF_UPDATE][b]={}),f.cells[EditorUi.DIFF_UPDATE][b]=k)};-EditorUi.prototype.adoptTerminalCell=function(b,k,m,f,q){k=f?k.source:k.target;m=m[k];null!=m&&(q.inserted[k]||(q.cells[EditorUi.DIFF_INSERT].push(m),q.inserted[k]=!0),null==q.cells[EditorUi.DIFF_UPDATE][b]&&(q.cells[EditorUi.DIFF_UPDATE][b]={}),q.cells[EditorUi.DIFF_UPDATE][b][f?"source":"target"]=k)};-EditorUi.prototype.isObjectEqual=function(b,k,m){if(null==b&&null==k)return!0;if(null!=b?null==k:null!=k)return!1;var f=function(q,u){return null==m||m[q]!=u?!0===u?1:u:void 0};return JSON.stringify(b,f)==JSON.stringify(k,f)};var mxSettings={currentVersion:18,defaultFormatWidth:600>screen.width?"0":"240",key:Editor.settingsKey,getLanguage:function(){return mxSettings.settings.language},setLanguage:function(b){mxSettings.settings.language=b},isMainSettings:function(){return".drawio-config"==mxSettings.key},getMainSettings:function(){var b=localStorage.getItem(".drawio-config");null==b?(b=mxSettings.getDefaults(),delete b.isNew):(b=JSON.parse(b),b.version=mxSettings.currentVersion);return b},getUi:function(){return mxSettings.isMainSettings()?+"number"===typeof b.value.nodeType&&"string"===typeof b.value.nodeName&&"function"===typeof b.value.getAttribute?m.xmlValue=mxUtils.getXml(b.value):m.value=b.value);for(var g in b)this.cellProperties[g]||"function"===typeof b[g]||(m[g]=b[g]);return m};+EditorUi.prototype.diffCell=function(b,k){function m(x){return null!=x&&"object"===typeof x&&"number"===typeof x.nodeType&&"string"===typeof x.nodeName&&"function"===typeof x.getAttribute}var g={};b.vertex!=k.vertex&&(g.vertex=k.vertex?1:0);b.edge!=k.edge&&(g.edge=k.edge?1:0);b.connectable!=k.connectable&&(g.connectable=k.connectable?1:0);if((null!=b.parent?null==k.parent:null!=k.parent)||null!=b.parent&&null!=k.parent&&b.parent.getId()!=k.parent.getId())g.parent=null!=k.parent?k.parent.getId():"";+if((null!=b.source?null==k.source:null!=k.source)||null!=b.source&&null!=k.source&&b.source.getId()!=k.source.getId())g.source=null!=k.source?k.source.getId():"";if((null!=b.target?null==k.target:null!=k.target)||null!=b.target&&null!=k.target&&b.target.getId()!=k.target.getId())g.target=null!=k.target?k.target.getId():"";m(b.value)&&m(k.value)?b.value.isEqualNode(k.value)||(g.xmlValue=mxUtils.getXml(k.value)):b.value!=k.value&&(m(k.value)?g.xmlValue=mxUtils.getXml(k.value):g.value=null!=k.value?+k.value:null);b.style!=k.style&&(g.style=null!=k.style?k.style:null);b.visible!=k.visible&&(g.visible=k.visible?1:0);b.collapsed!=k.collapsed&&(g.collapsed=k.collapsed?1:0);if(!this.isObjectEqual(b.geometry,k.geometry,new mxGeometry)){var q=this.codec.encode(k.geometry);null!=q&&(g.geometry=mxUtils.getXml(q))}for(var u in b)this.cellProperties[u]||"function"===typeof b[u]||"function"===typeof k[u]||b[u]==k[u]||(g[u]=void 0===k[u]?null:k[u]);for(u in k)u in b||this.cellProperties[u]||"function"===+typeof b[u]||"function"===typeof k[u]||b[u]==k[u]||(g[u]=void 0===k[u]?null:k[u]);return g};EditorUi.prototype.resolveCrossReferences=function(b,k){var m={};mxUtils.isEmptyObject(k)||(this.adoptTheirPages(b,k,m),this.adoptTheirCells(b,k,m));EditorUi.debug("EditorUi.resolveCrossReferences",[this],"ownDiff",b,"theirDiff",k,"resolve",m);return m};+EditorUi.prototype.adoptTheirPages=function(b,k,m){var g={};if(null!=k[EditorUi.DIFF_INSERT])for(var q=0;q<k[EditorUi.DIFF_INSERT].length;q++)g[k[EditorUi.DIFF_INSERT][q].id]=k[EditorUi.DIFF_INSERT][q];for(var u in b[EditorUi.DIFF_UPDATE])null!=g[u]&&(null==m[EditorUi.DIFF_INSERT]&&(m[EditorUi.DIFF_INSERT]=[]),null==m[EditorUi.DIFF_UPDATE]&&(m[EditorUi.DIFF_UPDATE]={}),m[EditorUi.DIFF_INSERT].push(g[u]),m[EditorUi.DIFF_UPDATE][u]=b[EditorUi.DIFF_UPDATE][u],delete b[EditorUi.DIFF_UPDATE][u])};+EditorUi.prototype.adoptTheirCells=function(b,k,m){for(var g in b[EditorUi.DIFF_UPDATE]){var q=b[EditorUi.DIFF_UPDATE][g];null!=q.cells&&this.adoptTheirCellsFromPage(q,k,g,m)}};+EditorUi.prototype.adoptTheirCellsFromPage=function(b,k,m,g){var q=null!=k[EditorUi.DIFF_UPDATE]?k[EditorUi.DIFF_UPDATE][m]:null;if(null!=q&&null!=q.cells&&null!=q.cells[EditorUi.DIFF_INSERT]){k=q.cells[EditorUi.DIFF_UPDATE];for(var u={},x=0;x<q.cells[EditorUi.DIFF_INSERT].length;x++){var z=q.cells[EditorUi.DIFF_INSERT][x];u[z.id]=z}q={cells:{}};q.cells[EditorUi.DIFF_INSERT]=[];q.cells[EditorUi.DIFF_UPDATE]={};q.inserted=Object.create(null);this.resolveOwnInsertedCells(b.cells[EditorUi.DIFF_INSERT],+u,q);this.resolveOwnUpdatedCells(b.cells[EditorUi.DIFF_UPDATE],u,k,q);null==g[EditorUi.DIFF_UPDATE]&&(g[EditorUi.DIFF_UPDATE]={});delete q.inserted;g[EditorUi.DIFF_UPDATE][m]=q}};EditorUi.prototype.resolveOwnInsertedCells=function(b,k,m){if(null!=b)for(var g=0;g<b.length;g++){var q=b[g];null!=q&&(this.adoptParentCell(q.id,null,k,m),this.adoptTerminalCell(q.id,q,k,!0,m),this.adoptTerminalCell(q.id,q,k,!1,m))}};+EditorUi.prototype.resolveOwnUpdatedCells=function(b,k,m,g){if(null!=b)for(var q in b){var u=k[q];null!=u?(g.inserted[q]||(g.cells[EditorUi.DIFF_INSERT].push(u),g.inserted[q]=!0),g.cells[EditorUi.DIFF_UPDATE][q]=b[q]):null!=m&&(u=m[q],null!=u&&(this.adoptParentCell(q,u,k,g),this.adoptTerminalCell(q,u,k,!0,g,q),this.adoptTerminalCell(q,u,k,!1,g,q)))}};+EditorUi.prototype.adoptParentCell=function(b,k,m,g){var q=m[b],u=null!=k?k.parent:null!=q?q.parent:null;null!=u&&this.adoptParentCell(u,null,m,g);null!=q?g.inserted[b]||(g.cells[EditorUi.DIFF_INSERT].push(q),g.inserted[b]=!0):null!=k&&(null==g.cells[EditorUi.DIFF_UPDATE][b]&&(g.cells[EditorUi.DIFF_UPDATE][b]={}),g.cells[EditorUi.DIFF_UPDATE][b]=k)};+EditorUi.prototype.adoptTerminalCell=function(b,k,m,g,q){k=g?k.source:k.target;m=m[k];null!=m&&(q.inserted[k]||(q.cells[EditorUi.DIFF_INSERT].push(m),q.inserted[k]=!0),null==q.cells[EditorUi.DIFF_UPDATE][b]&&(q.cells[EditorUi.DIFF_UPDATE][b]={}),q.cells[EditorUi.DIFF_UPDATE][b][g?"source":"target"]=k)};+EditorUi.prototype.isObjectEqual=function(b,k,m){if(null==b&&null==k)return!0;if(null!=b?null==k:null!=k)return!1;var g=function(q,u){return null==m||m[q]!=u?!0===u?1:u:void 0};return JSON.stringify(b,g)==JSON.stringify(k,g)};var mxSettings={currentVersion:18,defaultFormatWidth:600>screen.width?"0":"240",key:Editor.settingsKey,getLanguage:function(){return mxSettings.settings.language},setLanguage:function(b){mxSettings.settings.language=b},isMainSettings:function(){return".drawio-config"==mxSettings.key},getMainSettings:function(){var b=localStorage.getItem(".drawio-config");null==b?(b=mxSettings.getDefaults(),delete b.isNew):(b=JSON.parse(b),b.version=mxSettings.currentVersion);return b},getUi:function(){return mxSettings.isMainSettings()?mxSettings.settings.ui:mxSettings.getMainSettings().ui},setUi:function(b){if(mxSettings.isMainSettings())mxSettings.settings.ui=b,mxSettings.save();else{var k=mxSettings.getMainSettings();k.ui=b;localStorage.setItem(".drawio-config",JSON.stringify(k))}},getCurrentEdgeStyle:function(){return null!=mxSettings.settings?mxSettings.settings.currentEdgeStyle:null},setCurrentEdgeStyle:function(b){mxSettings.settings.currentEdgeStyle=b;mxSettings.save()},getGridColor:function(b){var k=b?mxSettings.settings.darkGridColor:mxSettings.settings.gridColor;mxUtils.isLightDarkColor(k)&&(k=mxUtils.getLightDarkColor(k),k=b?k.dark:k.light);return k},setGridColor:function(b,k){k?mxSettings.settings.darkGridColor=b:mxSettings.settings.gridColor=b},getAutosave:function(){return mxSettings.settings.autosave},setAutosave:function(b){mxSettings.settings.autosave=b},getResizeImages:function(){return mxSettings.settings.resizeImages},setResizeImages:function(b){mxSettings.settings.resizeImages=b},getOpenCounter:function(){return mxSettings.settings.openCounter},setOpenCounter:function(b){mxSettings.settings.openCounter=b},setCustomFonts:function(b){mxSettings.settings.customFonts=b},getCustomFonts:function(){for(var b=mxSettings.settings.customFonts||[],k=0;k<b.length;k++)"string"===typeof b[k]&&(b[k]={name:b[k],url:null});return b},getLibraries:function(){return mxSettings.settings.libraries},setLibraries:function(b){mxSettings.settings.libraries=b},addCustomLibrary:function(b){mxSettings.load();Array.isArray(mxSettings.settings.customLibraries)||(mxSettings.settings.customLibraries=@@ -14908,13 +14997,13 @@ delete mxSettings.settings.lastAlert,null==mxSettings.settings.pageFormat&&(mxSeEditorUi.isElectronApp&&null==localStorage.getItem("._autoSaveTrans_")&&(localStorage.setItem("._autoSaveTrans_","1"),mxSettings.settings.autosave=!1,mxSettings.save()),null!=mxSettings.settings.scratchpadSeen&&delete mxSettings.settings.scratchpadSeen)},clear:function(){isLocalStorage&&localStorage.removeItem(mxSettings.key)}};("undefined"==typeof mxLoadSettings||mxLoadSettings)&&mxSettings.load();DrawioFilePolling=function(b,k){this.file=b;this.sync=k};DrawioFilePolling.prototype.maxRetries=2;DrawioFilePolling.prototype.minPollDelay=2E3;DrawioFilePolling.prototype.start=function(b){if(!this.isConnected()){this.delay=this.maxDelay=b;var k=mxUtils.bind(this,function(){this.poll(0,m)}),m=mxUtils.bind(this,function(){this.thread=setTimeout(k,this.delay);this.delay=Math.min(this.maxDelay,this.delay+2E3)});m();EditorUi.debug("DrawioFilePolling.start",[this],"thread",this.thread,"delay",b,"rev",this.file.getCurrentRevisionId())}};DrawioFilePolling.prototype.updateStatus=function(){this.hasOtherWriters()&&(this.sync.lastMessage=mxResources.get("otherUsersEditing"));this.sync.lastModified=this.file.getLastModifiedDate();this.sync.updateStatus()};-DrawioFilePolling.prototype.poll=function(b,k){b=null!=b?b:0;var m=mxUtils.bind(this,function(f){b<this.maxRetries?this.retryPoll(mxUtils.bind(this,function(){this.poll(b+1,k)})):k()});this.file.getLatestVersionId(mxUtils.bind(this,function(f){if(-1!=f){var q=this.file.getCurrentRevisionId();f!=q?this.file.getLatestVersion(mxUtils.bind(this,function(u){this.file.mergeFile(u,mxUtils.bind(this,function(){this.delay=this.minPollDelay;this.lastOtherWriter=Date.now();this.updateStatus();k()}),m)}),m):+DrawioFilePolling.prototype.poll=function(b,k){b=null!=b?b:0;var m=mxUtils.bind(this,function(g){b<this.maxRetries?this.retryPoll(mxUtils.bind(this,function(){this.poll(b+1,k)})):k()});this.file.getLatestVersionId(mxUtils.bind(this,function(g){if(-1!=g){var q=this.file.getCurrentRevisionId();g!=q?this.file.getLatestVersion(mxUtils.bind(this,function(u){this.file.mergeFile(u,mxUtils.bind(this,function(){this.delay=this.minPollDelay;this.lastOtherWriter=Date.now();this.updateStatus();k()}),m)}),m):(this.updateStatus(),k())}else k()}),m)};DrawioFilePolling.prototype.retryPoll=function(b){var k=300+300*Math.random();window.setTimeout(b,k);EditorUi.debug("StorageFile.retryPoll",[this],"delay",k)};DrawioFilePolling.prototype.stop=function(){EditorUi.debug("DrawioFilePolling.stop",[this],"thread",this.thread);clearTimeout(this.thread);this.thread=null};DrawioFilePolling.prototype.isConnected=function(){return null!=this.thread};DrawioFilePolling.prototype.hasOtherWriters=function(){return null!=this.lastOtherWriter&&6E4>Date.now()-this.lastOtherWriter};DrawioFileSync=function(b){mxEventSource.call(this);this.lastActivity=Date.now();this.clientId=Editor.guid();this.ui=b.ui;this.file=b;this.onlineListener=mxUtils.bind(this,function(){this.updateOnlineState();this.isConnected()&&!this.ui.isOffline(!0)?this.fileChangedNotify():this.updateStatus()});mxEvent.addListener(window,"offline",this.onlineListener);mxEvent.addListener(window,"online",this.onlineListener);this.autosaveListener=mxUtils.bind(this,function(){this.updateRealtime()});this.ui.editor.addListener("autosaveChanged",this.autosaveListener);this.visibleListener=mxUtils.bind(this,function(){"hidden"==document.visibilityState?this.isConnected()&&this.stop():this.start()});mxEvent.addListener(document,"visibilitychange",this.visibleListener);this.activityListener=mxUtils.bind(this,function(k){this.lastActivity=Date.now();this.start()});mxEvent.addListener(document,mxClient.IS_POINTER?"pointermove":"mousemove",this.activityListener);mxEvent.addListener(document,"keypress",this.activityListener);mxEvent.addListener(window,"focus",this.activityListener);!mxClient.IS_POINTER&&mxClient.IS_TOUCH&&(mxEvent.addListener(document,"touchstart",this.activityListener),mxEvent.addListener(document,"touchmove",this.activityListener));this.file.addListener("realtimeMessage",this.activityListener);this.pusherErrorListener=mxUtils.bind(this,function(k){null!=k.error&&null!=k.error.data&&4004===k.error.data.code&&EditorUi.logError("Error: Pusher Limit",null,this.file.getId())});this.connectionListener=mxUtils.bind(this,function(){this.updateOnlineState();this.updateStatus();this.isConnected()&&(this.announced||!Editor.enableRealtimeCache||Editor.p2pSyncNotify?this.announced&&this.fileChangedNotify(null,!0):this.sendJoinMessage())});this.changeListener=mxUtils.bind(this,function(k){this.file.stats.msgReceived++;this.lastActivity=Date.now();if(this.enabled&&!this.file.inConflictState&&!this.file.redirectDialogShowing)try{var m=this.stringToObject(k);null!=m&&(EditorUi.debug("DrawioFileSync.message",[this],m,k.length,"bytes"),m.v>DrawioFileSync.PROTOCOL?-this.file.redirectToNewApp(mxUtils.bind(this,function(){})):m.v===DrawioFileSync.PROTOCOL&&null!=m.d&&this.handleMessageData(m.d,m.c))}catch(f){this.isConnected()&&this.fileChangedNotify()}})};DrawioFileSync.PROTOCOL=6;DrawioFileSync.ENABLE_SOCKETS="0"!=urlParams.sockets;DrawioFileSync.cacheAliveChecked=!1;+this.file.redirectToNewApp(mxUtils.bind(this,function(){})):m.v===DrawioFileSync.PROTOCOL&&null!=m.d&&this.handleMessageData(m.d,m.c))}catch(g){this.isConnected()&&this.fileChangedNotify()}})};DrawioFileSync.PROTOCOL=6;DrawioFileSync.ENABLE_SOCKETS="0"!=urlParams.sockets;DrawioFileSync.cacheAliveChecked=!1;DrawioFileSync.checkCacheAlive=function(b){if(!(DrawioFileSync.cacheAliveChecked||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"auto"!=DrawioFile.SYNC||"1"==urlParams.local||"1"==urlParams.stealth||b.isOffline()||!Editor.enableRealtimeCache||b.editor.chromeless&&!b.editor.editable)){DrawioFileSync.cacheAliveChecked=!0;var k=window.setTimeout(function(){Editor.enableRealtimeCache=!1},Editor.cacheTimeout);mxUtils.get(EditorUi.cacheUrl+"?alive",function(m){Editor.enableRealtimeCache=200<=m.getStatus()&&299>=m.getStatus();window.clearTimeout(k)},function(){Editor.enableRealtimeCache=!1;window.clearTimeout(k)})}};mxUtils.extend(DrawioFileSync,mxEventSource);DrawioFileSync.prototype.maxCacheEntrySize=1E6;DrawioFileSync.prototype.maxSyncMessageSize=9E3;DrawioFileSync.prototype.syncSendMessageDelay=300;DrawioFileSync.prototype.syncReceiveMessageDelay=50;DrawioFileSync.prototype.cleanupDelay=15E3;DrawioFileSync.prototype.syncChangeCounter=0;DrawioFileSync.prototype.enabled=!0;DrawioFileSync.prototype.channelId=null;DrawioFileSync.prototype.channel=null;DrawioFileSync.prototype.catchupRetryCount=0;DrawioFileSync.prototype.maxCatchupRetries=15;DrawioFileSync.prototype.maxCacheReadyRetries=1;DrawioFileSync.prototype.cacheReadyDelay=700;DrawioFileSync.prototype.maxOptimisticRetries=6;DrawioFileSync.prototype.inactivityTimeoutSeconds=1800;DrawioFileSync.prototype.lastActivity=null;@@ -14926,7 +15015,7 @@ this.p2pCollab=null))};DrawioFileSync.prototype.initRealtime=function(){this.filDrawioFileSync.prototype.resetRealtime=function(){var b=this.file.getShadowPages();null!=b&&(b=this.ui.diffPages(b,this.file.ownPages),this.file.patch([b]));this.sendLocalChanges();this.cleanup();this.file.theirPages=null;this.snapshotVars=this.snapshot=this.file.ownPages=null};DrawioFileSync.prototype.isConnected=function(){return null!=this.pusher&&null!=this.pusher.connection?"connected"==this.pusher.connection.state:null!=this.polling?this.polling.isConnected():!1};DrawioFileSync.prototype.updateOnlineState=function(){"1"!=urlParams.embedRT&&this.file.fireEvent(new mxEventObject("realtimeStateChanged"))};DrawioFileSync.prototype.updateStatus=function(){this.isConnected()&&null!=this.lastActivity&&(Date.now()-this.lastActivity)/1E3>this.inactivityTimeoutSeconds&&this.stop();this.file.isModified()||this.file.inConflictState||null!=this.file.autosaveThread||this.file.savingFile||this.file.redirectDialogShowing||(this.enabled&&null!=this.ui.statusContainer?(this.ui.updateStatus(mxUtils.bind(this,function(){var b=this.ui.timeSince(new Date(this.lastModified));null==b&&(b=mxResources.get("lessThanAMinute"));-var k=this.lastMessage;this.lastMessage=null;null!=k&&40<k.length&&(k=k.substring(0,40)+"...");var m=this.ui.getNetworkStatus();b=mxResources.get("lastChange",[b]);var f=this.file.isRevisionHistorySupported()?'data-action="revisionHistory" ':"",q=mxUtils.htmlEntities(b)+(this.file.isRevisionHistorySupported()?" - "+mxUtils.htmlEntities(mxResources.get("revisionHistory")):"");this.ui.editor.setStatus("<div "+f+'title="'+q+'">'+mxUtils.htmlEntities(b)+"</div>"+(this.file.isEditable()?this.file.isLocked()?+var k=this.lastMessage;this.lastMessage=null;null!=k&&40<k.length&&(k=k.substring(0,40)+"...");var m=this.ui.getNetworkStatus();b=mxResources.get("lastChange",[b]);var g=this.file.isRevisionHistorySupported()?'data-action="revisionHistory" ':"",q=mxUtils.htmlEntities(b)+(this.file.isRevisionHistorySupported()?" - "+mxUtils.htmlEntities(mxResources.get("revisionHistory")):"");this.ui.editor.setStatus("<div "+g+'title="'+q+'">'+mxUtils.htmlEntities(b)+"</div>"+(this.file.isEditable()?this.file.isLocked()?' <img class="geToolbarButton geAdaptiveAsset" data-action="properties" style="margin-left:4px;flex-shrink:0;" src="'+Editor.lockedImage+'"/>':"":'<div class="geStatusBox" title="'+mxUtils.htmlEntities(mxResources.get("readOnly"))+'">'+mxUtils.htmlEntities(mxResources.get("readOnly"))+"</div>")+(null!=m?'<div class="geStatusBox" title="'+mxUtils.htmlEntities(m)+'">'+mxUtils.htmlEntities(m)+"</div>":"")+(null!=k?' <div class="geStatusBox" data-effect="fade" title="'+mxUtils.htmlEntities(k)+'">'+mxUtils.htmlEntities(k)+"</div>":""))})),this.resetUpdateStatusThread()):this.ui.updateStatus(mxUtils.bind(this,function(){this.file.addAllSavedStatus()})))};DrawioFileSync.prototype.resetUpdateStatusThread=function(){null!=this.updateStatusThread&&window.clearInterval(this.updateStatusThread);null!=this.channel&&(this.updateStatusThread=window.setInterval(mxUtils.bind(this,function(){this.updateStatus()}),Editor.updateStatusInterval))};DrawioFileSync.prototype.installListeners=function(){null!=this.pusher&&null!=this.pusher.connection&&this.pusher.connection.bind("state_change",this.connectionListener);null!=this.channel&&this.channel.bind("changed",this.changeListener)};@@ -14935,56 +15024,56 @@ DrawioFileSync.prototype.sendJoinMessage=function(){if(!this.announced){var b=thDrawioFileSync.prototype.handleMessageData=function(b,k){"desc"==b.a?this.file.savingFile||this.reloadDescriptor():"comments"==b.a?null!=k&&k==this.clientId||this.commentsChanged():"join"==b.a||"leave"==b.a?("join"==b.a&&this.file.stats.joined++,null!=b.name&&(this.lastMessage=mxResources.get("join"==b.a?"userJoined":"userLeft",[decodeURIComponent(b.name)]),this.resetUpdateStatusThread(),this.updateStatus())):"change"==b.a?this.receiveRemoteChanges(b):null!=b.m&&(b=new Date(b.m),null==this.lastMessageModified||this.lastMessageModified<b)&&(this.lastMessageModified=b,this.fileChangedNotify())};DrawioFileSync.prototype.commentsChangedDelay=2E3;DrawioFileSync.prototype.sendCommentsChangedMessage=function(){this.notify(this.createMessage({a:"comments"}))};DrawioFileSync.prototype.commentsChanged=function(){null!=this.commentsChangedThread&&window.clearTimeout(this.commentsChangedThread);this.commentsChangedThread=window.setTimeout(mxUtils.bind(this,function(){this.commentsChangedThread=null;this.isValidState()&&this.ui.refreshCommentCache()}),this.commentsChangedDelay)};DrawioFileSync.prototype.isValidState=function(){return this.ui.getCurrentFile()==this.file&&this.file.sync==this&&!this.file.invalidChecksum&&!this.file.redirectDialogShowing};-DrawioFileSync.prototype.optimisticSync=function(b){null==this.reloadThread&&(b=null!=b?b:0,b<this.maxOptimisticRetries&&(this.reloadThread=window.setTimeout(mxUtils.bind(this,function(){EditorUi.debug("DrawioFileSync.optimisticSync",[this],"attempt",b,"of",this.maxOptimisticRetries,"remoteFileChanged",this.remoteFileChanged);this.remoteFileChanged=!1;this.file.getLatestVersion(mxUtils.bind(this,function(k){this.reloadThread=null;if(null!=k){var m=this.file.getCurrentRevisionId(),f=k.getCurrentRevisionId();-m==f?this.optimisticSync(b+1):this.file.mergeFile(k,mxUtils.bind(this,function(){this.lastModified=this.file.getLastModifiedDate();this.updateStatus()}))}}),mxUtils.bind(this,function(){this.reloadThread=null}))}),(b+1)*this.file.optimisticSyncDelay)))};-DrawioFileSync.prototype.fileChangedNotify=function(b,k){if(this.isValidState())if(EditorUi.debug("DrawioFileSync.fileChangedNotify",[this],"data",[b],"immediate",k,"saving",this.file.savingFile),this.file.savingFile)this.remoteFileChanged=!0;else if(null!=b&&"optimistic"==b.type)this.optimisticSync();else var m=this.fileChanged(mxUtils.bind(this,function(f){this.updateStatus()}),mxUtils.bind(this,function(f){this.file.handleFileError(f)}),mxUtils.bind(this,function(){return!this.file.savingFile&&+DrawioFileSync.prototype.optimisticSync=function(b){null==this.reloadThread&&(b=null!=b?b:0,b<this.maxOptimisticRetries&&(this.reloadThread=window.setTimeout(mxUtils.bind(this,function(){EditorUi.debug("DrawioFileSync.optimisticSync",[this],"attempt",b,"of",this.maxOptimisticRetries,"remoteFileChanged",this.remoteFileChanged);this.remoteFileChanged=!1;this.file.getLatestVersion(mxUtils.bind(this,function(k){this.reloadThread=null;if(null!=k){var m=this.file.getCurrentRevisionId(),g=k.getCurrentRevisionId();+m==g?this.optimisticSync(b+1):this.file.mergeFile(k,mxUtils.bind(this,function(){this.lastModified=this.file.getLastModifiedDate();this.updateStatus()}))}}),mxUtils.bind(this,function(){this.reloadThread=null}))}),(b+1)*this.file.optimisticSyncDelay)))};+DrawioFileSync.prototype.fileChangedNotify=function(b,k){if(this.isValidState())if(EditorUi.debug("DrawioFileSync.fileChangedNotify",[this],"data",[b],"immediate",k,"saving",this.file.savingFile),this.file.savingFile)this.remoteFileChanged=!0;else if(null!=b&&"optimistic"==b.type)this.optimisticSync();else var m=this.fileChanged(mxUtils.bind(this,function(g){this.updateStatus()}),mxUtils.bind(this,function(g){this.file.handleFileError(g)}),mxUtils.bind(this,function(){return!this.file.savingFile&&this.notifyThread!=m}),!0,k)};DrawioFileSync.prototype.localFileChanged=function(){this.file.isRealtime()&&(window.clearTimeout(this.triggerSendThread),this.localFileWasChanged=!0,this.scheduleCleanup(!0),this.triggerSendThread=window.setTimeout(mxUtils.bind(this,function(){this.sendLocalChanges()}),Math.min(this.file.autosaveDelay,this.syncSendMessageDelay-20)))};DrawioFileSync.prototype.doSendLocalChanges=function(b){if(!this.file.ignorePatches(b)){var k=this.clientId+"."+this.syncChangeCounter++,m=this.createMessage({a:"change",c:b,id:k,t:Date.now()});k=!1;null!=this.p2pCollab?this.p2pCollab.sendDiff(m):"1"==urlParams.dev?(m=encodeURIComponent(this.objectToString(m)),0==this.maxSyncMessageSize||m.length<this.maxSyncMessageSize?mxUtils.post(EditorUi.cacheUrl,this.getIdParameters()+"&msg="+m):k=!0):k=!0;EditorUi.debug("DrawioFileSync.doSendLocalChanges",[this],"changes",b,k?"(skipped)":"")}};-DrawioFileSync.prototype.receiveRemoteChanges=function(b){this.file.ignorePatches(b.c)||(null==this.receivedData?(this.receivedData=[b],window.setTimeout(mxUtils.bind(this,function(){if(this.ui.getCurrentFile()==this.file)if(1==this.receivedData.length)this.doReceiveRemoteChanges(this.receivedData[0].c);else{this.receivedData.sort(function(q,u){return q.id<u.id?-1:q.id>u.id?1:0});for(var k=null,m=0;m<this.receivedData.length;m++){var f=JSON.stringify(this.receivedData[m].c);f!=k&&this.doReceiveRemoteChanges(this.receivedData[m].c);-k=f}}this.receivedData=null}),this.syncReceiveMessageDelay)):this.receivedData.push(b))};-DrawioFileSync.prototype.scheduleCleanup=function(b){var k=Math.min(15,Math.floor(this.file.getSize()/5E6));k=0==b?0:this.cleanupDelay+1E3*k;var m=this.cleanupThread;if(1!=b||null!=this.cleanupThread)window.clearTimeout(this.cleanupThread),this.cleanupThread=window.setTimeout(mxUtils.bind(this,function(){this.cleanup(null,mxUtils.bind(this,function(f){this.file.handleFileError(f)}))}),k);EditorUi.debug("DrawioFileSync.scheduleCleanup",[this],"lazy",b,"delay",k,"prev",m,"thread",this.cleanupThread)};-DrawioFileSync.prototype.cleanup=function(b,k,m){var f=this.cleanupThread;window.clearTimeout(this.cleanupThread);this.cleanupThread=null;if(this.isValidState()&&!this.file.inConflictState&&this.file.isRealtime()&&!this.file.isModified()){var q=[this.ui.diffPages(this.ui.pages,this.file.ownPages)];this.file.theirPages=this.ui.clonePages(this.file.ownPages);"1"==urlParams.test&&EditorUi.debug("DrawioFileSync.cleanup",[this],"thread",f,"patches",q,"checkFile",m,"checksum",this.ui.getHashValueForPages(this.ui.pages));+DrawioFileSync.prototype.receiveRemoteChanges=function(b){this.file.ignorePatches(b.c)||(null==this.receivedData?(this.receivedData=[b],window.setTimeout(mxUtils.bind(this,function(){if(this.ui.getCurrentFile()==this.file)if(1==this.receivedData.length)this.doReceiveRemoteChanges(this.receivedData[0].c);else{this.receivedData.sort(function(q,u){return q.id<u.id?-1:q.id>u.id?1:0});for(var k=null,m=0;m<this.receivedData.length;m++){var g=JSON.stringify(this.receivedData[m].c);g!=k&&this.doReceiveRemoteChanges(this.receivedData[m].c);+k=g}}this.receivedData=null}),this.syncReceiveMessageDelay)):this.receivedData.push(b))};+DrawioFileSync.prototype.scheduleCleanup=function(b){var k=Math.min(15,Math.floor(this.file.getSize()/5E6));k=0==b?0:this.cleanupDelay+1E3*k;var m=this.cleanupThread;if(1!=b||null!=this.cleanupThread)window.clearTimeout(this.cleanupThread),this.cleanupThread=window.setTimeout(mxUtils.bind(this,function(){this.cleanup(null,mxUtils.bind(this,function(g){this.file.handleFileError(g)}))}),k);EditorUi.debug("DrawioFileSync.scheduleCleanup",[this],"lazy",b,"delay",k,"prev",m,"thread",this.cleanupThread)};+DrawioFileSync.prototype.cleanup=function(b,k,m){var g=this.cleanupThread;window.clearTimeout(this.cleanupThread);this.cleanupThread=null;if(this.isValidState()&&!this.file.inConflictState&&this.file.isRealtime()&&!this.file.isModified()){var q=[this.ui.diffPages(this.ui.pages,this.file.ownPages)];this.file.theirPages=this.ui.clonePages(this.file.ownPages);"1"==urlParams.test&&EditorUi.debug("DrawioFileSync.cleanup",[this],"thread",g,"patches",q,"checkFile",m,"checksum",this.ui.getHashValueForPages(this.ui.pages));this.file.ignorePatches(q)||this.file.patch(q);m?this.file.getLatestVersion(mxUtils.bind(this,function(u){try{if(this.isValidState()&&!this.file.inConflictState&&this.file.isRealtime()){var x=u.getShadowPages();q=[this.ui.diffPages(this.ui.pages,x),this.ui.diffPages(x,this.file.ownPages)];this.file.ignorePatches(q)||this.file.patch(q);EditorUi.debug("DrawioFileSync.cleanup",[this],"newFile",u,"patches",q)}null!=b&&b()}catch(z){null!=k&&k(z)}}),k):(document.hidden||"1"!=urlParams.test||"1"!=urlParams.checksum||this.testChecksum(),null!=b&&b())}else null!=b&&(b(),EditorUi.debug("DrawioFileSync.cleanup",[this],"checkFile",m,"modified",this.file.isModified()))};-DrawioFileSync.prototype.testChecksum=function(){var b=this.ui.getHashValueForPages(this.ui.pages),k=this.file.getCurrentRevisionId();this.file.getLatestVersion(mxUtils.bind(this,function(m){if(!document.hidden){var f=this.ui.getHashValueForPages(m.getShadowPages()),q=m.getDescriptorChecksum(m.getDescriptor()),u=m.getCurrentRevisionId();EditorUi.debug("DrawioFileSync.testChecksum","local",[this.file],"modified",this.file.isModified(),"inConflictState",this.file.inConflictState,"autosaveThread",this.file.autosaveThread,-"savingFile",this.file.savingFile,"localFileWasChanged",this.localFileWasChanged,"remoteFileChanged",this.remoteFileChanged,"cleanup",this.cleanupThread,"checksum",b);EditorUi.debug("DrawioFileSync.testChecksum","remote",[m],"rev",u==k,"desc",q==f,"checksum",f);f!=b?(EditorUi.debug("DrawioFileSync.testChecksum",[this],"checksums do not match"),this.ui.alert("Checksums do not match")):EditorUi.debug("DrawioFileSync.testChecksum",[this],"checksums match")}}),mxUtils.bind(this,function(m){EditorUi.debug("DrawioFileSync.testChecksum",+DrawioFileSync.prototype.testChecksum=function(){var b=this.ui.getHashValueForPages(this.ui.pages),k=this.file.getCurrentRevisionId();this.file.getLatestVersion(mxUtils.bind(this,function(m){if(!document.hidden){var g=this.ui.getHashValueForPages(m.getShadowPages()),q=m.getDescriptorChecksum(m.getDescriptor()),u=m.getCurrentRevisionId();EditorUi.debug("DrawioFileSync.testChecksum","local",[this.file],"modified",this.file.isModified(),"inConflictState",this.file.inConflictState,"autosaveThread",this.file.autosaveThread,+"savingFile",this.file.savingFile,"localFileWasChanged",this.localFileWasChanged,"remoteFileChanged",this.remoteFileChanged,"cleanup",this.cleanupThread,"checksum",b);EditorUi.debug("DrawioFileSync.testChecksum","remote",[m],"rev",u==k,"desc",q==g,"checksum",g);g!=b?(EditorUi.debug("DrawioFileSync.testChecksum",[this],"checksums do not match"),this.ui.alert("Checksums do not match")):EditorUi.debug("DrawioFileSync.testChecksum",[this],"checksums match")}}),mxUtils.bind(this,function(m){EditorUi.debug("DrawioFileSync.testChecksum",[this],"checksum test error",m)}))};DrawioFileSync.prototype.extractLocal=function(b){return mxUtils.isEmptyObject(b)?{}:this.ui.diffPages(this.file.theirPages,this.ui.patchPages(this.ui.clonePages(this.file.theirPages),b))};-DrawioFileSync.prototype.extractRemove=function(b){var k={};null!=b[EditorUi.DIFF_REMOVE]&&(k[EditorUi.DIFF_REMOVE]=b[EditorUi.DIFF_REMOVE]);if(null!=b[EditorUi.DIFF_UPDATE])for(var m in b[EditorUi.DIFF_UPDATE]){var f=b[EditorUi.DIFF_UPDATE][m];if(null!=f.cells&&null!=f.cells[EditorUi.DIFF_REMOVE]){null==k[EditorUi.DIFF_UPDATE]&&(k[EditorUi.DIFF_UPDATE]={});k[EditorUi.DIFF_UPDATE][m]={};var q=k[EditorUi.DIFF_UPDATE][m];q.cells={};q.cells[EditorUi.DIFF_REMOVE]=f.cells[EditorUi.DIFF_REMOVE]}}return k};-DrawioFileSync.prototype.patchRealtime=function(b,k,m,f){var q=null;if(this.file.isRealtime()){q=this.extractRemove(this.ui.diffPages(this.file.getShadowPages(),this.ui.pages));var u=this.extractRemove(this.extractLocal(q)),x=(null==m?b:b.concat(m)).concat([u]);this.file.ownPages=this.ui.applyPatches(this.file.ownPages,x,!0,k);mxUtils.isEmptyObject(u)?this.scheduleCleanup(null!=f?!1:null):this.file.fileChanged(!1);EditorUi.debug("DrawioFileSync.patchRealtime",[this],"patches",b,"backup",k,"own",m,-"all",q,"local",u,"applied",x,"immediate",f)}return q};DrawioFileSync.prototype.isRealtimeActive=function(){return this.ui.editor.autosave};DrawioFileSync.prototype.isRealtimeConnected=function(){return null!=this.p2pCollab&&this.p2pCollab.isFileJoined()&&1==this.p2pCollab.getState()};+DrawioFileSync.prototype.extractRemove=function(b){var k={};null!=b[EditorUi.DIFF_REMOVE]&&(k[EditorUi.DIFF_REMOVE]=b[EditorUi.DIFF_REMOVE]);if(null!=b[EditorUi.DIFF_UPDATE])for(var m in b[EditorUi.DIFF_UPDATE]){var g=b[EditorUi.DIFF_UPDATE][m];if(null!=g.cells&&null!=g.cells[EditorUi.DIFF_REMOVE]){null==k[EditorUi.DIFF_UPDATE]&&(k[EditorUi.DIFF_UPDATE]={});k[EditorUi.DIFF_UPDATE][m]={};var q=k[EditorUi.DIFF_UPDATE][m];q.cells={};q.cells[EditorUi.DIFF_REMOVE]=g.cells[EditorUi.DIFF_REMOVE]}}return k};+DrawioFileSync.prototype.patchRealtime=function(b,k,m,g){var q=null;if(this.file.isRealtime()){q=this.extractRemove(this.ui.diffPages(this.file.getShadowPages(),this.ui.pages));var u=this.extractRemove(this.extractLocal(q)),x=(null==m?b:b.concat(m)).concat([u]);this.file.ownPages=this.ui.applyPatches(this.file.ownPages,x,!0,k);mxUtils.isEmptyObject(u)?this.scheduleCleanup(null!=g?!1:null):this.file.fileChanged(!1);EditorUi.debug("DrawioFileSync.patchRealtime",[this],"patches",b,"backup",k,"own",m,+"all",q,"local",u,"applied",x,"immediate",g)}return q};DrawioFileSync.prototype.isRealtimeActive=function(){return this.ui.editor.autosave};DrawioFileSync.prototype.isRealtimeConnected=function(){return null!=this.p2pCollab&&this.p2pCollab.isFileJoined()&&1==this.p2pCollab.getState()};DrawioFileSync.prototype.sendUnconfirmedChanges=function(){try{if(this.file.isRealtime()&&this.isRealtimeActive()&&null!=this.file.ownPages){this.sendLocalChanges();var b=this.ui.diffPages(this.file.getShadowPages(),this.file.ownPages);this.file.ignorePatches([b])||(EditorUi.debug("DrawioFileSync.sendUnconfirmedChanges",[this],"patch",b),this.doSendLocalChanges([{},b]))}}catch(k){b=this.file.getCurrentUser(),b=null!=b?b.id:"unknown",EditorUi.logError("Error in sendUnconfirmedChanges",null,this.file.getMode()+"."+this.file.getId(),b,k)}};-DrawioFileSync.prototype.sendLocalChanges=function(){try{if(this.file.isRealtime()&&this.localFileWasChanged){var b=this.ui.clonePages(this.ui.pages),k=this.ui.diffPages(this.snapshot,b),m=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null;m!=this.snapshotVars&&(k[EditorUi.DIFF_FILE]={vars:m});this.snapshotVars=m;this.file.ownPages=this.ui.patchPages(this.file.ownPages,k,!0);this.snapshot=b;var f=this.ui.resolveCrossReferences(k,this.ui.diffPages(this.file.ownPages,this.ui.pages));-this.file.ownPages=this.ui.patchPages(this.file.ownPages,f,!0);this.isRealtimeActive()&&this.doSendLocalChanges([f,k])}this.localFileWasChanged=!1}catch(q){b=this.file.getCurrentUser(),b=null!=b?b.id:"unknown",EditorUi.logError("Error in sendLocalChanges",null,this.file.getMode()+"."+this.file.getId(),b,q)}};+DrawioFileSync.prototype.sendLocalChanges=function(){try{if(this.file.isRealtime()&&this.localFileWasChanged){var b=this.ui.clonePages(this.ui.pages),k=this.ui.diffPages(this.snapshot,b),m=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null;m!=this.snapshotVars&&(k[EditorUi.DIFF_FILE]={vars:m});this.snapshotVars=m;this.file.ownPages=this.ui.patchPages(this.file.ownPages,k,!0);this.snapshot=b;var g=this.ui.resolveCrossReferences(k,this.ui.diffPages(this.file.ownPages,this.ui.pages));+this.file.ownPages=this.ui.patchPages(this.file.ownPages,g,!0);this.isRealtimeActive()&&this.doSendLocalChanges([g,k])}this.localFileWasChanged=!1}catch(q){b=this.file.getCurrentUser(),b=null!=b?b.id:"unknown",EditorUi.logError("Error in sendLocalChanges",null,this.file.getMode()+"."+this.file.getId(),b,q)}};DrawioFileSync.prototype.doReceiveRemoteChanges=function(b){this.file.isRealtime()&&this.isRealtimeActive()&&(this.sendLocalChanges(),this.file.patch(b),this.file.theirPages=this.ui.applyPatches(this.file.theirPages,b),this.scheduleCleanup(),EditorUi.debug("DrawioFileSync.doReceiveRemoteChanges",[this],"changes",b))};-DrawioFileSync.prototype.merge=function(b,k,m,f,q,u,x){try{this.file.stats.merged++;this.lastModified=new Date;var z=this.file.getDescriptorRevisionId(m);if(!this.file.ignorePatches(b)){this.sendLocalChanges();var F=this.ui.clonePages(this.file.getShadowPages()),J=this.file.isModified()&&!this.file.isRealtime()?this.ui.diffPages(F,this.ui.pages):null,H=this.file.isRealtime()?this.ui.diffPages(F,this.file.ownPages):null;F=this.ui.applyPatches(F,b);var D=null==k?null:this.ui.getHashValueForPages(F);-EditorUi.debug("DrawioFileSync.merge",[this],"patches",b,"changes",J,"pending",H,"checksum",k,"current",D,"valid",k==D,"attempt",this.catchupRetryCount,"of",this.maxCatchupRetries,"from",this.file.getCurrentRevisionId(),"to",z,"etag",this.file.getDescriptorEtag(m),"immediate",x);if(null!=k&&k!=D){this.reload(mxUtils.bind(this,function(){null!=f&&f()}),mxUtils.bind(this,function(){null!=q&&q()}),u,null,x);return}var c=this.file.getShadowVars();for(k=0;k<b.length;k++)null!=b[k]&&null!=b[k][EditorUi.DIFF_FILE]&&-void 0!==b[k][EditorUi.DIFF_FILE].vars&&(c=b[k][EditorUi.DIFF_FILE].vars);this.file.setShadowPages(F,c);if(null==this.patchRealtime(b,null,H,x))this.file.patch(b,DrawioFile.LAST_WRITE_WINS?J:null);else{var g=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null;this.ui.patchFileNode(b);var l=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null;g!=l&&(this.ui.editor.graph.refresh(),this.snapshotVars=l);if(!this.isRealtimeConnected()){var n=[this.ui.diffPages(this.ui.pages,-this.file.ownPages)];this.file.ignorePatches(n)||(this.file.theirPages=this.ui.clonePages(this.file.ownPages),this.file.patch(n))}}}this.file.invalidChecksum=!1;this.file.inConflictState=!1;this.file.patchDescriptor(this.file.getDescriptor(),m);null!=f&&f(!0)}catch(v){this.file.inConflictState=!0;this.file.invalidChecksum=!0;this.file.descriptorChanged();null!=q&&q(v);try{var r=this.file.getCurrentUser(),t=null!=r?r.id:"unknown";EditorUi.logError("Error in merge",null,this.file.getMode()+"."+this.file.getId(),+DrawioFileSync.prototype.merge=function(b,k,m,g,q,u,x){try{this.file.stats.merged++;this.lastModified=new Date;var z=this.file.getDescriptorRevisionId(m);if(!this.file.ignorePatches(b)){this.sendLocalChanges();var F=this.ui.clonePages(this.file.getShadowPages()),J=this.file.isModified()&&!this.file.isRealtime()?this.ui.diffPages(F,this.ui.pages):null,H=this.file.isRealtime()?this.ui.diffPages(F,this.file.ownPages):null;F=this.ui.applyPatches(F,b);var D=null==k?null:this.ui.getHashValueForPages(F);+EditorUi.debug("DrawioFileSync.merge",[this],"patches",b,"changes",J,"pending",H,"checksum",k,"current",D,"valid",k==D,"attempt",this.catchupRetryCount,"of",this.maxCatchupRetries,"from",this.file.getCurrentRevisionId(),"to",z,"etag",this.file.getDescriptorEtag(m),"immediate",x);if(null!=k&&k!=D){this.reload(mxUtils.bind(this,function(){null!=g&&g()}),mxUtils.bind(this,function(){null!=q&&q()}),u,null,x);return}var c=this.file.getShadowVars();for(k=0;k<b.length;k++)null!=b[k]&&null!=b[k][EditorUi.DIFF_FILE]&&+void 0!==b[k][EditorUi.DIFF_FILE].vars&&(c=b[k][EditorUi.DIFF_FILE].vars);this.file.setShadowPages(F,c);if(null==this.patchRealtime(b,null,H,x))this.file.patch(b,DrawioFile.LAST_WRITE_WINS?J:null);else{var f=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null;this.ui.patchFileNode(b);var l=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null;f!=l&&(this.ui.editor.graph.refresh(),this.snapshotVars=l);if(!this.isRealtimeConnected()){var n=[this.ui.diffPages(this.ui.pages,+this.file.ownPages)];this.file.ignorePatches(n)||(this.file.theirPages=this.ui.clonePages(this.file.ownPages),this.file.patch(n))}}}this.file.invalidChecksum=!1;this.file.inConflictState=!1;this.file.patchDescriptor(this.file.getDescriptor(),m);null!=g&&g(!0)}catch(v){this.file.inConflictState=!0;this.file.invalidChecksum=!0;this.file.descriptorChanged();null!=q&&q(v);try{var r=this.file.getCurrentUser(),t=null!=r?r.id:"unknown";EditorUi.logError("Error in merge",null,this.file.getMode()+"."+this.file.getId(),t,v)}catch(B){}}};-DrawioFileSync.prototype.fileChanged=function(b,k,m,f,q){var u=window.setTimeout(mxUtils.bind(this,function(){null!=m&&m()||(EditorUi.debug("DrawioFileSync.fileChanged",[this],"lazy",f,"immediate",q,"remoteFileChanged",this.remoteFileChanged,"valid",this.isValidState()),this.isValidState()?(this.remoteFileChanged=!1,this.file.loadPatchDescriptor(mxUtils.bind(this,function(x){null!=m&&m()||(this.isValidState()?this.catchup(x,b,k,m,q):null!=k&&k())}),k)):null!=k&&k())}),f?this.cacheReadyDelay:0);return this.notifyThread=+DrawioFileSync.prototype.fileChanged=function(b,k,m,g,q){var u=window.setTimeout(mxUtils.bind(this,function(){null!=m&&m()||(EditorUi.debug("DrawioFileSync.fileChanged",[this],"lazy",g,"immediate",q,"remoteFileChanged",this.remoteFileChanged,"valid",this.isValidState()),this.isValidState()?(this.remoteFileChanged=!1,this.file.loadPatchDescriptor(mxUtils.bind(this,function(x){null!=m&&m()||(this.isValidState()?this.catchup(x,b,k,m,q):null!=k&&k())}),k)):null!=k&&k())}),g?this.cacheReadyDelay:0);return this.notifyThread=u};DrawioFileSync.prototype.fastForward=function(b){this.file.patchDescriptor(this.file.getDescriptor(),b);this.file.setShadowPages(this.ui.clonePages(this.ui.pages));this.file.theirPages=this.ui.clonePages(this.ui.pages);var k=this.file.ownPages;this.file.ownPages=this.ui.clonePages(this.ui.pages);for(var m=0;m<this.file.ownPages.length;m++)null!=k[m]&&this.ui.getHashValueForPages([this.file.ownPages[m]])!=this.ui.getHashValueForPages([k[m]])&&(this.file.ownPages[m].needsUpdate=!0);this.snapshotVars=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null;k=this.cleanupThread;window.clearTimeout(this.cleanupThread);this.cleanupThread=null;"1"==urlParams.test&&EditorUi.debug("DrawioFileSync.fastForward",[this],"desc",[b],"cleanup",k,"checksum",this.ui.getHashValueForPages(this.ui.pages));document.hidden||"1"!=urlParams.test||"1"!=urlParams.checksum||null!=this.cleanupThread||this.testChecksum()};DrawioFileSync.prototype.reloadDescriptor=function(){this.file.loadDescriptor(mxUtils.bind(this,function(b){null!=b?(this.file.setDescriptorRevisionId(b,this.file.getCurrentRevisionId()),this.updateDescriptor(b),this.fileChangedNotify()):(this.file.inConflictState=!0,this.file.handleFileError())}),mxUtils.bind(this,function(b){this.file.inConflictState=!0;this.file.handleFileError(b)}))};DrawioFileSync.prototype.updateDescriptor=function(b){this.file.setDescriptor(b);this.file.descriptorChanged();this.start()};-DrawioFileSync.prototype.catchup=function(b,k,m,f,q){if(null!=b&&(null==f||!f())){var u=this.file.getCurrentRevisionId(),x=this.file.getDescriptorRevisionId(b);EditorUi.debug("DrawioFileSync.catchup",[this],"desc",[b],"from",u,"to",x,"immediate",q,"valid",this.isValidState());if(u==x)this.file.patchDescriptor(this.file.getDescriptor(),b),"1"==urlParams.test&&EditorUi.debug("DrawioFileSync.catchup",[this],"up to date","cleanup",this.cleanupThread,"checksum",this.ui.getHashValueForPages(this.ui.pages)),-document.hidden||"1"!=urlParams.test||"1"!=urlParams.checksum||null!=this.cleanupThread||this.testChecksum(),null!=k&&k(!0);else if(this.isValidState()){var z=this.file.getDescriptorChecksum(b),F=this.file.getDescriptorSecret(b);if(null!=z&&z==this.ui.getHashValueForPages(this.ui.pages))this.fastForward(b),null!=k&&k(!0);else if(Editor.enableRealtimeCache&&null!=F&&"1"!=urlParams.lockdown){var J=0,H=!1,D=mxUtils.bind(this,function(){if(null==f||!f())if(u!=this.file.getCurrentRevisionId())null!=k&&-k(!0);else if(this.isValidState()){this.scheduleCleanup(!0);var c=!0,g=window.setTimeout(mxUtils.bind(this,function(){c=!1;this.reload(k,m,f,null,q)}),this.ui.timeout);mxUtils.get(EditorUi.cacheUrl+"?id="+encodeURIComponent(this.channelId)+"&from="+encodeURIComponent(u)+"&to="+encodeURIComponent(x)+(null!=F?"&secret="+encodeURIComponent(F):""),mxUtils.bind(this,function(l){this.file.stats.bytesReceived+=l.getText().length;window.clearTimeout(g);if(c&&(null==f||!f()))if(u!=this.file.getCurrentRevisionId())null!=+DrawioFileSync.prototype.catchup=function(b,k,m,g,q){if(null!=b&&(null==g||!g())){var u=this.file.getCurrentRevisionId(),x=this.file.getDescriptorRevisionId(b);EditorUi.debug("DrawioFileSync.catchup",[this],"desc",[b],"from",u,"to",x,"immediate",q,"valid",this.isValidState());if(u==x)this.file.patchDescriptor(this.file.getDescriptor(),b),"1"==urlParams.test&&EditorUi.debug("DrawioFileSync.catchup",[this],"up to date","cleanup",this.cleanupThread,"checksum",this.ui.getHashValueForPages(this.ui.pages)),+document.hidden||"1"!=urlParams.test||"1"!=urlParams.checksum||null!=this.cleanupThread||this.testChecksum(),null!=k&&k(!0);else if(this.isValidState()){var z=this.file.getDescriptorChecksum(b),F=this.file.getDescriptorSecret(b);if(null!=z&&z==this.ui.getHashValueForPages(this.ui.pages))this.fastForward(b),null!=k&&k(!0);else if(Editor.enableRealtimeCache&&null!=F&&"1"!=urlParams.lockdown){var J=0,H=!1,D=mxUtils.bind(this,function(){if(null==g||!g())if(u!=this.file.getCurrentRevisionId())null!=k&&+k(!0);else if(this.isValidState()){this.scheduleCleanup(!0);var c=!0,f=window.setTimeout(mxUtils.bind(this,function(){c=!1;this.reload(k,m,g,null,q)}),this.ui.timeout);mxUtils.get(EditorUi.cacheUrl+"?id="+encodeURIComponent(this.channelId)+"&from="+encodeURIComponent(u)+"&to="+encodeURIComponent(x)+(null!=F?"&secret="+encodeURIComponent(F):""),mxUtils.bind(this,function(l){this.file.stats.bytesReceived+=l.getText().length;window.clearTimeout(f);if(c&&(null==g||!g()))if(u!=this.file.getCurrentRevisionId())null!=k&&k(!0);else if(this.isValidState()){var n=null,r=[];EditorUi.debug("DrawioFileSync.doCatchup",[this],"request",[l],"status",l.getStatus(),"cacheReadyRetryCount",J,"maxCacheReadyRetries",this.maxCacheReadyRetries);if(200<=l.getStatus()&&299>=l.getStatus()&&0<l.getText().length)try{var t=JSON.parse(l.getText());if(null!=t&&0<t.length)for(var v=0;v<t.length;v++){var B=this.stringToObject(t[v]);if(B.v>DrawioFileSync.PROTOCOL){H=!0;r=[];break}else if(B.v===DrawioFileSync.PROTOCOL&&null!=B.d)n=B.d.checksum,-r.push(B.d.patch);else{H=!0;r=[];break}}EditorUi.debug("DrawioFileSync.doCatchup",[this],"response",[t],"status",H?"failed":"ok","temp",r,"checksum",n)}catch(E){r=[],null!=window.console&&"1"==urlParams.test&&console.log(E)}try{0<r.length?(this.file.stats.cacheHits++,this.merge(r,n,b,k,m,f,q)):J<=this.maxCacheReadyRetries-1&&!H&&401!=l.getStatus()&&503!=l.getStatus()&&410!=l.getStatus()?(J++,this.file.stats.cacheMiss++,window.setTimeout(D,(J+1)*this.cacheReadyDelay)):(this.file.stats.cacheFail++,-this.reload(k,m,f,null,q))}catch(E){null!=m&&m(E)}}else null!=m&&m()}),m)}else null!=m&&m()});window.setTimeout(D,this.cacheReadyDelay)}else this.reload(k,m,f,null,q)}else null!=m&&m()}};DrawioFileSync.prototype.reload=function(b,k,m,f,q){EditorUi.debug("DrawioFileSync.reload",[this],"immediate",q);this.file.updateFile(mxUtils.bind(this,function(){this.lastModified=this.file.getLastModifiedDate();this.updateStatus();this.start();null!=b&&b()}),mxUtils.bind(this,function(u){null!=k&&k(u)}),m,f,q)};-DrawioFileSync.prototype.descriptorChanged=function(b){this.lastModified=this.file.getLastModifiedDate();if(null!=this.channelId&&Editor.enableRealtimeCache){var k=this.objectToString(this.createMessage({a:"desc",m:this.lastModified.getTime()})),m=this.file.getCurrentRevisionId(),f=this.objectToString({});mxUtils.post(EditorUi.cacheUrl,this.getIdParameters()+"&from="+encodeURIComponent(b)+"&to="+encodeURIComponent(m)+"&msg="+encodeURIComponent(k)+"&data="+encodeURIComponent(f));this.file.stats.bytesSent+=-f.length;this.file.stats.msgSent++;EditorUi.debug("DrawioFileSync.descriptorChanged",[this],"from",b,"to",m)}this.updateStatus()};DrawioFileSync.encryptionAvailable=null;+r.push(B.d.patch);else{H=!0;r=[];break}}EditorUi.debug("DrawioFileSync.doCatchup",[this],"response",[t],"status",H?"failed":"ok","temp",r,"checksum",n)}catch(E){r=[],null!=window.console&&"1"==urlParams.test&&console.log(E)}try{0<r.length?(this.file.stats.cacheHits++,this.merge(r,n,b,k,m,g,q)):J<=this.maxCacheReadyRetries-1&&!H&&401!=l.getStatus()&&503!=l.getStatus()&&410!=l.getStatus()?(J++,this.file.stats.cacheMiss++,window.setTimeout(D,(J+1)*this.cacheReadyDelay)):(this.file.stats.cacheFail++,+this.reload(k,m,g,null,q))}catch(E){null!=m&&m(E)}}else null!=m&&m()}),m)}else null!=m&&m()});window.setTimeout(D,this.cacheReadyDelay)}else this.reload(k,m,g,null,q)}else null!=m&&m()}};DrawioFileSync.prototype.reload=function(b,k,m,g,q){EditorUi.debug("DrawioFileSync.reload",[this],"immediate",q);this.file.updateFile(mxUtils.bind(this,function(){this.lastModified=this.file.getLastModifiedDate();this.updateStatus();this.start();null!=b&&b()}),mxUtils.bind(this,function(u){null!=k&&k(u)}),m,g,q)};+DrawioFileSync.prototype.descriptorChanged=function(b){this.lastModified=this.file.getLastModifiedDate();if(null!=this.channelId&&Editor.enableRealtimeCache){var k=this.objectToString(this.createMessage({a:"desc",m:this.lastModified.getTime()})),m=this.file.getCurrentRevisionId(),g=this.objectToString({});mxUtils.post(EditorUi.cacheUrl,this.getIdParameters()+"&from="+encodeURIComponent(b)+"&to="+encodeURIComponent(m)+"&msg="+encodeURIComponent(k)+"&data="+encodeURIComponent(g));this.file.stats.bytesSent+=+g.length;this.file.stats.msgSent++;EditorUi.debug("DrawioFileSync.descriptorChanged",[this],"from",b,"to",m)}this.updateStatus()};DrawioFileSync.encryptionAvailable=null;DrawioFileSync.prototype.isEncryptionAvailable=function(){if(null==this.key||"undefined"===typeof CryptoJS)return!0;if(null==DrawioFileSync.encryptionAvailable)try{CryptoJS.lib.WordArray.random(8),DrawioFileSync.encryptionAvailable=!0}catch(b){DrawioFileSync.encryptionAvailable=!1,EditorUi.logError("Error: No CSPRNG for realtime encryption",null,this.file.getId(),null,b)}return DrawioFileSync.encryptionAvailable};DrawioFileSync.prototype.objectToString=function(b){b=Graph.compress(JSON.stringify(b));if(null!=this.key&&"undefined"!==typeof CryptoJS){if(!this.isEncryptionAvailable())throw Error("No CSPRNG for realtime encryption");b=CryptoJS.AES.encrypt(b,this.key).toString()}return b};DrawioFileSync.prototype.stringToObject=function(b){null!=this.key&&"undefined"!==typeof CryptoJS&&(b=CryptoJS.AES.decrypt(b,this.key).toString(CryptoJS.enc.Utf8));return JSON.parse(Graph.decompress(b))};-DrawioFileSync.prototype.createToken=function(b,k,m){var f=!0,q=window.setTimeout(mxUtils.bind(this,function(){f=!1;m({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout);mxUtils.get(EditorUi.cacheUrl+"?id="+encodeURIComponent(this.channelId)+"&secret="+encodeURIComponent(b),mxUtils.bind(this,function(u){window.clearTimeout(q);f&&(200<=u.getStatus()&&299>=u.getStatus()?k(u.getText()):m({code:u.getStatus(),message:"Token Error "+u.getStatus()}))}),m)};+DrawioFileSync.prototype.createToken=function(b,k,m){var g=!0,q=window.setTimeout(mxUtils.bind(this,function(){g=!1;m({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout);mxUtils.get(EditorUi.cacheUrl+"?id="+encodeURIComponent(this.channelId)+"&secret="+encodeURIComponent(b),mxUtils.bind(this,function(u){window.clearTimeout(q);g&&(200<=u.getStatus()&&299>=u.getStatus()?k(u.getText()):m({code:u.getStatus(),message:"Token Error "+u.getStatus()}))}),m)};DrawioFileSync.prototype.fileSaving=function(){this.file.isOptimisticSync()&&this.notify(this.createMessage({m:Date.now(),type:"optimistic"}));EditorUi.debug("DrawioFileSync.fileSaving",[this],"optimistic",this.file.isOptimisticSync())};DrawioFileSync.prototype.fileDataUpdated=function(){this.scheduleCleanup(!0);EditorUi.debug("DrawioFileSync.fileDataUpdated",[this])};-DrawioFileSync.prototype.fileSaved=function(b,k,m,f,q,u){this.lastModified=this.file.getLastModifiedDate();this.resetUpdateStatusThread();this.catchupRetryCount=0;if(!this.ui.isOffline(!0)&&!this.file.inConflictState&&!this.file.redirectDialogShowing&&(this.start(),null!=this.channelId)){var x=this.file.getDescriptorSecret(this.file.getDescriptor()),z=this.createMessage({m:this.lastModified.getTime()}),F=this.file.getDescriptorRevisionId(k),J=this.file.getCurrentRevisionId();if(null!=x&&null!=q&&-"1"!=urlParams.lockdown&&Editor.enableRealtimeCache){var H=this.ui.diffPages(this.file.getShadowPages(),b),D=this.file.getShadowVars(),c=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null;c!=D&&(H[EditorUi.DIFF_FILE]={vars:c});k=this.file.getDescriptorSecret(k);u=null!=u?u:this.ui.getHashValueForPages(b);D=this.objectToString(this.createMessage({patch:H,checksum:u}));this.file.stats.bytesSent+=D.length;this.file.stats.msgSent++;var g=!0,l=window.setTimeout(mxUtils.bind(this,function(){g=-!1;f({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout);mxUtils.post(EditorUi.cacheUrl,this.getIdParameters()+"&from="+encodeURIComponent(F)+"&to="+encodeURIComponent(J)+(Editor.p2pSyncNotify?"":"&msg="+encodeURIComponent(this.objectToString(z)))+(null!=x?"&secret="+encodeURIComponent(x):"")+(null!=k?"&last-secret="+encodeURIComponent(k):"")+(D.length<this.maxCacheEntrySize?"&data="+encodeURIComponent(D):"")+(null!=q?"&token="+encodeURIComponent(q):""),mxUtils.bind(this,-function(n){window.clearTimeout(l);g&&(200<=n.getStatus()&&299>=n.getStatus()?(Editor.p2pSyncNotify&&this.notify(z),null!=m&&m()):f({message:mxResources.get("realtimeCollaboration")+(0!=n.getStatus()?": "+n.getStatus():"")}))}));EditorUi.debug("DrawioFileSync.fileSaved",[this],"from",F,"to",J,"etag",this.file.getCurrentEtag(),"diff",H,D.length,"bytes","msg",z,"checksum",u)}else this.notify(z),null!=m&&m(),EditorUi.debug("DrawioFileSync.fileSaved",[this],"from",F,"to",J,"etag",this.file.getCurrentEtag())}this.file.setShadowPages(b);+DrawioFileSync.prototype.fileSaved=function(b,k,m,g,q,u){this.lastModified=this.file.getLastModifiedDate();this.resetUpdateStatusThread();this.catchupRetryCount=0;if(!this.ui.isOffline(!0)&&!this.file.inConflictState&&!this.file.redirectDialogShowing&&(this.start(),null!=this.channelId)){var x=this.file.getDescriptorSecret(this.file.getDescriptor()),z=this.createMessage({m:this.lastModified.getTime()}),F=this.file.getDescriptorRevisionId(k),J=this.file.getCurrentRevisionId();if(null!=x&&null!=q&&+"1"!=urlParams.lockdown&&Editor.enableRealtimeCache){var H=this.ui.diffPages(this.file.getShadowPages(),b),D=this.file.getShadowVars(),c=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null;c!=D&&(H[EditorUi.DIFF_FILE]={vars:c});k=this.file.getDescriptorSecret(k);u=null!=u?u:this.ui.getHashValueForPages(b);D=this.objectToString(this.createMessage({patch:H,checksum:u}));this.file.stats.bytesSent+=D.length;this.file.stats.msgSent++;var f=!0,l=window.setTimeout(mxUtils.bind(this,function(){f=+!1;g({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout);mxUtils.post(EditorUi.cacheUrl,this.getIdParameters()+"&from="+encodeURIComponent(F)+"&to="+encodeURIComponent(J)+(Editor.p2pSyncNotify?"":"&msg="+encodeURIComponent(this.objectToString(z)))+(null!=x?"&secret="+encodeURIComponent(x):"")+(null!=k?"&last-secret="+encodeURIComponent(k):"")+(D.length<this.maxCacheEntrySize?"&data="+encodeURIComponent(D):"")+(null!=q?"&token="+encodeURIComponent(q):""),mxUtils.bind(this,+function(n){window.clearTimeout(l);f&&(200<=n.getStatus()&&299>=n.getStatus()?(Editor.p2pSyncNotify&&this.notify(z),null!=m&&m()):g({message:mxResources.get("realtimeCollaboration")+(0!=n.getStatus()?": "+n.getStatus():"")}))}));EditorUi.debug("DrawioFileSync.fileSaved",[this],"from",F,"to",J,"etag",this.file.getCurrentEtag(),"diff",H,D.length,"bytes","msg",z,"checksum",u)}else this.notify(z),null!=m&&m(),EditorUi.debug("DrawioFileSync.fileSaved",[this],"from",F,"to",J,"etag",this.file.getCurrentEtag())}this.file.setShadowPages(b);this.snapshotVars=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null;this.scheduleCleanup()};DrawioFileSync.prototype.getIdParameters=function(){var b="id="+this.channelId;null!=this.pusher&&null!=this.pusher.connection&&null!=this.pusher.connection.socket_id&&(b+="&sid="+this.pusher.connection.socket_id);return b};DrawioFileSync.prototype.createMessage=function(b){return{v:DrawioFileSync.PROTOCOL,d:b,c:this.clientId}};DrawioFileSync.prototype.fileConflict=function(b,k,m){this.catchupRetryCount++;EditorUi.debug("DrawioFileSync.fileConflict",[this],"desc",[b],"catchupRetryCount",this.catchupRetryCount,"maxCatchupRetries",this.maxCatchupRetries);this.catchupRetryCount<this.maxCatchupRetries?(this.file.stats.conflicts++,null!=b?this.catchup(b,k,m):this.fileChanged(k,m)):(this.file.stats.timeouts++,this.catchupRetryCount=0,null!=m&&m({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")}))};DrawioFileSync.prototype.stop=function(){null!=this.pusher?(null!=this.pusher.connection&&(this.pusher.connection.unbind("state_change",this.connectionListener),this.pusher.connection.unbind("error",this.pusherErrorListener)),null!=this.channel&&(this.channel.unbind("changed",this.changeListener),this.channel=null),this.pusher.disconnect(),this.pusher=null,null!=this.p2pCollab&&(this.p2pCollab.destroy(),this.p2pCollab=null),EditorUi.debug("DrawioFileSync.stop",[this])):null!=this.polling&&(this.polling.stop(),@@ -14993,344 +15082,344 @@ DrawioFileSync.prototype.destroy=function(){if(null!=this.channelId){var b=this.null);null!=this.autosaveListener&&(this.ui.editor.removeListener(this.autosaveListener),this.autosaveListener=null);null!=this.visibleListener&&(mxEvent.removeListener(document,"visibilitychange",this.visibleListener),this.visibleListener=null);null!=this.activityListener&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointermove":"mousemove",this.activityListener),mxEvent.removeListener(document,"keypress",this.activityListener),mxEvent.removeListener(window,"focus",this.activityListener),!mxClient.IS_POINTER&&mxClient.IS_TOUCH&&(mxEvent.removeListener(document,"touchstart",this.activityListener),mxEvent.removeListener(document,"touchmove",this.activityListener)),this.activityListener=null);null!=this.p2pCollab&&this.p2pCollab.destroy()};Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;Graph.prototype.defaultThemes.darkTheme=Graph.prototype.defaultThemes["default-style2"];function mxAsyncCanvas(b){mxAbstractCanvas2D.call(this);this.htmlCanvas=b;b.images=b.images||[];b.subCanvas=b.subCanvas||[]}mxUtils.extend(mxAsyncCanvas,mxAbstractCanvas2D);mxAsyncCanvas.prototype.htmlCanvas=null;mxAsyncCanvas.prototype.canvasIndex=0;mxAsyncCanvas.prototype.waitCounter=0;mxAsyncCanvas.prototype.onComplete=null;mxAsyncCanvas.prototype.incWaitCounter=function(){this.waitCounter++};-mxAsyncCanvas.prototype.decWaitCounter=function(){this.waitCounter--;0==this.waitCounter&&null!=this.onComplete&&(this.onComplete(),this.onComplete=null)};mxAsyncCanvas.prototype.updateFont=function(){var b="";(this.state.fontStyle&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&(b+="bold ");(this.state.fontStyle&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC&&(b+="italic ");this.ctx.font=b+this.state.fontSize+"px "+this.state.fontFamily};mxAsyncCanvas.prototype.rotate=function(b,k,m,f,q){};+mxAsyncCanvas.prototype.decWaitCounter=function(){this.waitCounter--;0==this.waitCounter&&null!=this.onComplete&&(this.onComplete(),this.onComplete=null)};mxAsyncCanvas.prototype.updateFont=function(){var b="";(this.state.fontStyle&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&(b+="bold ");(this.state.fontStyle&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC&&(b+="italic ");this.ctx.font=b+this.state.fontSize+"px "+this.state.fontFamily};mxAsyncCanvas.prototype.rotate=function(b,k,m,g,q){};mxAsyncCanvas.prototype.setAlpha=function(b){this.state.alpha=b};mxAsyncCanvas.prototype.setFontColor=function(b){this.state.fontColor=b};mxAsyncCanvas.prototype.setFontBackgroundColor=function(b){b==mxConstants.NONE&&(b=null);this.state.fontBackgroundColor=b};mxAsyncCanvas.prototype.setFontBorderColor=function(b){b==mxConstants.NONE&&(b=null);this.state.fontBorderColor=b};mxAsyncCanvas.prototype.setFontSize=function(b){this.state.fontSize=b};-mxAsyncCanvas.prototype.setFontFamily=function(b){this.state.fontFamily=b};mxAsyncCanvas.prototype.setFontStyle=function(b){this.state.fontStyle=b};mxAsyncCanvas.prototype.rect=function(b,k,m,f){};mxAsyncCanvas.prototype.roundrect=function(b,k,m,f,q,u){};mxAsyncCanvas.prototype.ellipse=function(b,k,m,f){};mxAsyncCanvas.prototype.rewriteImageSource=function(b){if("http://"==b.substring(0,7)||"https://"==b.substring(0,8))b="/proxy?url="+encodeURIComponent(b);return b};-mxAsyncCanvas.prototype.image=function(b,k,m,f,q,u,x,z){q=this.rewriteImageSource(q);b=this.htmlCanvas.images[q];null==b&&(b=new Image,b.onload=mxUtils.bind(this,function(){this.decWaitCounter()}),b.onerror=mxUtils.bind(this,function(){this.decWaitCounter()}),this.incWaitCounter(),this.htmlCanvas.images[q]=b,b.src=q)};mxAsyncCanvas.prototype.fill=function(){};mxAsyncCanvas.prototype.stroke=function(){};mxAsyncCanvas.prototype.fillAndStroke=function(){};-mxAsyncCanvas.prototype.text=function(b,k,m,f,q,u,x,z,F,J,H,D){if(null!=q&&0!=q.length&&(b=this.state.scale,"html"==F&&"function"===typeof html2canvas)){this.incWaitCounter();var c=this.canvasIndex++;html2canvas(q,{onrendered:mxUtils.bind(this,function(g){this.htmlCanvas.subCanvas[c]=g;this.decWaitCounter()}),scale:b,logging:!0})}};mxAsyncCanvas.prototype.finish=function(b){0==this.waitCounter?b():this.onComplete=b};function mxJsCanvas(b){mxAbstractCanvas2D.call(this);this.ctx=b.getContext("2d");this.ctx.textBaseline="top";this.ctx.fillStyle="rgba(255,255,255,0)";this.ctx.strokeStyle="rgba(0, 0, 0, 0)";this.M_RAD_PER_DEG=Math.PI/180;this.images=null==this.images?[]:this.images;this.subCanvas=null==this.subCanvas?[]:this.subCanvas}mxUtils.extend(mxJsCanvas,mxAbstractCanvas2D);mxJsCanvas.prototype.ctx=null;mxJsCanvas.prototype.waitCounter=0;mxJsCanvas.prototype.onComplete=null;mxJsCanvas.prototype.images=null;-mxJsCanvas.prototype.subCanvas=null;mxJsCanvas.prototype.canvasIndex=0;mxJsCanvas.prototype.hexToRgb=function(b){b=b.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(k,m,f,q){return m+m+f+f+q+q});return(b=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(b))?{r:parseInt(b[1],16),g:parseInt(b[2],16),b:parseInt(b[3],16)}:null};mxJsCanvas.prototype.incWaitCounter=function(){this.waitCounter++};+mxAsyncCanvas.prototype.setFontFamily=function(b){this.state.fontFamily=b};mxAsyncCanvas.prototype.setFontStyle=function(b){this.state.fontStyle=b};mxAsyncCanvas.prototype.rect=function(b,k,m,g){};mxAsyncCanvas.prototype.roundrect=function(b,k,m,g,q,u){};mxAsyncCanvas.prototype.ellipse=function(b,k,m,g){};mxAsyncCanvas.prototype.rewriteImageSource=function(b){if("http://"==b.substring(0,7)||"https://"==b.substring(0,8))b="/proxy?url="+encodeURIComponent(b);return b};+mxAsyncCanvas.prototype.image=function(b,k,m,g,q,u,x,z){q=this.rewriteImageSource(q);b=this.htmlCanvas.images[q];null==b&&(b=new Image,b.onload=mxUtils.bind(this,function(){this.decWaitCounter()}),b.onerror=mxUtils.bind(this,function(){this.decWaitCounter()}),this.incWaitCounter(),this.htmlCanvas.images[q]=b,b.src=q)};mxAsyncCanvas.prototype.fill=function(){};mxAsyncCanvas.prototype.stroke=function(){};mxAsyncCanvas.prototype.fillAndStroke=function(){};+mxAsyncCanvas.prototype.text=function(b,k,m,g,q,u,x,z,F,J,H,D){if(null!=q&&0!=q.length&&(b=this.state.scale,"html"==F&&"function"===typeof html2canvas)){this.incWaitCounter();var c=this.canvasIndex++;html2canvas(q,{onrendered:mxUtils.bind(this,function(f){this.htmlCanvas.subCanvas[c]=f;this.decWaitCounter()}),scale:b,logging:!0})}};mxAsyncCanvas.prototype.finish=function(b){0==this.waitCounter?b():this.onComplete=b};function mxJsCanvas(b){mxAbstractCanvas2D.call(this);this.ctx=b.getContext("2d");this.ctx.textBaseline="top";this.ctx.fillStyle="rgba(255,255,255,0)";this.ctx.strokeStyle="rgba(0, 0, 0, 0)";this.M_RAD_PER_DEG=Math.PI/180;this.images=null==this.images?[]:this.images;this.subCanvas=null==this.subCanvas?[]:this.subCanvas}mxUtils.extend(mxJsCanvas,mxAbstractCanvas2D);mxJsCanvas.prototype.ctx=null;mxJsCanvas.prototype.waitCounter=0;mxJsCanvas.prototype.onComplete=null;mxJsCanvas.prototype.images=null;+mxJsCanvas.prototype.subCanvas=null;mxJsCanvas.prototype.canvasIndex=0;mxJsCanvas.prototype.hexToRgb=function(b){b=b.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(k,m,g,q){return m+m+g+g+q+q});return(b=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(b))?{r:parseInt(b[1],16),g:parseInt(b[2],16),b:parseInt(b[3],16)}:null};mxJsCanvas.prototype.incWaitCounter=function(){this.waitCounter++};mxJsCanvas.prototype.decWaitCounter=function(){this.waitCounter--;0==this.waitCounter&&null!=this.onComplete&&(this.onComplete(),this.onComplete=null)};mxJsCanvas.prototype.updateFont=function(){var b="";(this.state.fontStyle&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&(b+="bold ");(this.state.fontStyle&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC&&(b+="italic ");this.ctx.font=b+this.state.fontSize+"px "+this.state.fontFamily};mxJsCanvas.prototype.save=function(){this.states.push(this.state);this.state=mxUtils.clone(this.state);this.ctx.save()};mxJsCanvas.prototype.restore=function(){this.state=this.states.pop();this.ctx.restore()};mxJsCanvas.prototype.scale=function(b){this.state.scale*=b;this.state.strokeWidth*=b;this.ctx.scale(b,b)};mxJsCanvas.prototype.translate=function(b,k){this.state.dx+=b;this.state.dy+=k;this.ctx.translate(b,k)};-mxJsCanvas.prototype.rotate=function(b,k,m,f,q){f-=this.state.dx;q-=this.state.dy;this.ctx.translate(f,q);(k||m)&&this.ctx.scale(k?-1:1,m?-1:1);this.ctx.rotate(b*this.M_RAD_PER_DEG);this.ctx.translate(-f,-q)};mxJsCanvas.prototype.setAlpha=function(b){this.state.alpha=b;this.ctx.globalAlpha=b};mxJsCanvas.prototype.setFillColor=function(b){b==mxConstants.NONE&&(b=null);this.state.fillColor=b;this.state.gradientColor=null;this.ctx.fillStyle=b};-mxJsCanvas.prototype.setGradient=function(b,k,m,f,q,u,x,z,F){m=this.ctx.createLinearGradient(0,f,0,f+u);f=this.state;f.fillColor=b;f.fillAlpha=null!=z?z:1;f.gradientColor=k;f.gradientAlpha=null!=F?F:1;f.gradientDirection=x;b=this.hexToRgb(b);k=this.hexToRgb(k);null!=b&&m.addColorStop(0,"rgba("+b.r+","+b.g+","+b.b+","+f.fillAlpha+")");null!=k&&m.addColorStop(1,"rgba("+k.r+","+k.g+","+k.b+","+f.gradientAlpha+")");this.ctx.fillStyle=m};+mxJsCanvas.prototype.rotate=function(b,k,m,g,q){g-=this.state.dx;q-=this.state.dy;this.ctx.translate(g,q);(k||m)&&this.ctx.scale(k?-1:1,m?-1:1);this.ctx.rotate(b*this.M_RAD_PER_DEG);this.ctx.translate(-g,-q)};mxJsCanvas.prototype.setAlpha=function(b){this.state.alpha=b;this.ctx.globalAlpha=b};mxJsCanvas.prototype.setFillColor=function(b){b==mxConstants.NONE&&(b=null);this.state.fillColor=b;this.state.gradientColor=null;this.ctx.fillStyle=b};+mxJsCanvas.prototype.setGradient=function(b,k,m,g,q,u,x,z,F){m=this.ctx.createLinearGradient(0,g,0,g+u);g=this.state;g.fillColor=b;g.fillAlpha=null!=z?z:1;g.gradientColor=k;g.gradientAlpha=null!=F?F:1;g.gradientDirection=x;b=this.hexToRgb(b);k=this.hexToRgb(k);null!=b&&m.addColorStop(0,"rgba("+b.r+","+b.g+","+b.b+","+g.fillAlpha+")");null!=k&&m.addColorStop(1,"rgba("+k.r+","+k.g+","+k.b+","+g.gradientAlpha+")");this.ctx.fillStyle=m};mxJsCanvas.prototype.setStrokeColor=function(b){null!=b&&(b==mxConstants.NONE?(this.state.strokeColor=null,this.ctx.strokeStyle="rgba(0, 0, 0, 0)"):(this.ctx.strokeStyle=b,this.state.strokeColor=b))};mxJsCanvas.prototype.setStrokeWidth=function(b){this.ctx.lineWidth=b};mxJsCanvas.prototype.setDashed=function(b){if(this.state.dashed=b){b=this.state.dashPattern.split(" ");for(var k=0;k<b.length;k++)b[k]=parseInt(b[k],10);this.setLineDash(b)}else this.setLineDash([0])};mxJsCanvas.prototype.setLineDash=function(b){try{"function"===typeof this.ctx.setLineDash&&this.ctx.setLineDash(b)}catch(k){}};mxJsCanvas.prototype.setDashPattern=function(b){this.state.dashPattern=b;if(this.state.dashed){b=b.split(" ");for(var k=0;k<b.length;k++)b[k]=parseInt(b[k],10);this.ctx.setLineDash(b)}};mxJsCanvas.prototype.setLineCap=function(b){this.ctx.lineCap=b};mxJsCanvas.prototype.setLineJoin=function(b){this.ctx.lineJoin=b};mxJsCanvas.prototype.setMiterLimit=function(b){this.ctx.lineJoin=b};mxJsCanvas.prototype.setFontColor=function(b){this.ctx.fillStyle=b};mxJsCanvas.prototype.setFontBackgroundColor=function(b){b==mxConstants.NONE&&(b=null);this.state.fontBackgroundColor=b};mxJsCanvas.prototype.setFontBorderColor=function(b){b==mxConstants.NONE&&(b=null);this.state.fontBorderColor=b};mxJsCanvas.prototype.setFontSize=function(b){this.state.fontSize=b};mxJsCanvas.prototype.setFontFamily=function(b){this.state.fontFamily=b};mxJsCanvas.prototype.setFontStyle=function(b){this.state.fontStyle=b};mxJsCanvas.prototype.setShadow=function(b){(this.state.shadow=b)?(this.setShadowOffset(this.state.shadowDx,this.state.shadowDy),this.setShadowAlpha(this.state.shadowAlpha)):(this.ctx.shadowColor="transparent",this.ctx.shadowBlur=0,this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0)};mxJsCanvas.prototype.setShadowColor=function(b){if(null==b||b==mxConstants.NONE)b=null,this.ctx.shadowColor="transparent";this.state.shadowColor=b;if(this.state.shadow&&null!=b){var k=null!=this.state.shadowAlpha?this.state.shadowAlpha:1;b=this.hexToRgb(b);this.ctx.shadowColor="rgba("+b.r+","+b.g+","+b.b+","+k+")"}};mxJsCanvas.prototype.setShadowAlpha=function(b){this.state.shadowAlpha=b;this.setShadowColor(this.state.shadowColor)};-mxJsCanvas.prototype.setShadowOffset=function(b,k){this.state.shadowDx=b;this.state.shadowDy=k;this.state.shadow&&(this.ctx.shadowOffsetX=b,this.ctx.shadowOffsetY=k)};mxJsCanvas.prototype.moveTo=function(b,k){this.ctx.moveTo(b,k);this.lastMoveX=b;this.lastMoveY=k};mxJsCanvas.prototype.lineTo=function(b,k){this.ctx.lineTo(b,k);this.lastMoveX=b;this.lastMoveY=k};mxJsCanvas.prototype.quadTo=function(b,k,m,f){this.ctx.quadraticCurveTo(b,k,m,f);this.lastMoveX=m;this.lastMoveY=f};-mxJsCanvas.prototype.arcTo=function(b,k,m,f,q,u,x){b=mxUtils.arcToCurves(this.lastMoveX,this.lastMoveY,b,k,m,f,q,u,x);if(null!=b)for(k=0;k<b.length;k+=6)this.curveTo(b[k],b[k+1],b[k+2],b[k+3],b[k+4],b[k+5])};mxJsCanvas.prototype.curveTo=function(b,k,m,f,q,u){this.ctx.bezierCurveTo(b,k,m,f,q,u);this.lastMoveX=q;this.lastMoveY=u};mxJsCanvas.prototype.rect=function(b,k,m,f){this.begin();this.moveTo(b,k);this.lineTo(b+m,k);this.lineTo(b+m,k+f);this.lineTo(b,k+f);this.close()};-mxJsCanvas.prototype.roundrect=function(b,k,m,f,q,u){this.begin();this.moveTo(b+q,k);this.lineTo(b+m-q,k);this.quadTo(b+m,k,b+m,k+u);this.lineTo(b+m,k+f-u);this.quadTo(b+m,k+f,b+m-q,k+f);this.lineTo(b+q,k+f);this.quadTo(b,k+f,b,k+f-u);this.lineTo(b,k+u);this.quadTo(b,k,b+q,k)};mxJsCanvas.prototype.ellipse=function(b,k,m,f){this.ctx.save();this.ctx.translate(b+m/2,k+f/2);this.ctx.scale(m/2,f/2);this.ctx.beginPath();this.ctx.arc(0,0,1,0,2*Math.PI,!1);this.ctx.restore()};+mxJsCanvas.prototype.setShadowOffset=function(b,k){this.state.shadowDx=b;this.state.shadowDy=k;this.state.shadow&&(this.ctx.shadowOffsetX=b,this.ctx.shadowOffsetY=k)};mxJsCanvas.prototype.moveTo=function(b,k){this.ctx.moveTo(b,k);this.lastMoveX=b;this.lastMoveY=k};mxJsCanvas.prototype.lineTo=function(b,k){this.ctx.lineTo(b,k);this.lastMoveX=b;this.lastMoveY=k};mxJsCanvas.prototype.quadTo=function(b,k,m,g){this.ctx.quadraticCurveTo(b,k,m,g);this.lastMoveX=m;this.lastMoveY=g};+mxJsCanvas.prototype.arcTo=function(b,k,m,g,q,u,x){b=mxUtils.arcToCurves(this.lastMoveX,this.lastMoveY,b,k,m,g,q,u,x);if(null!=b)for(k=0;k<b.length;k+=6)this.curveTo(b[k],b[k+1],b[k+2],b[k+3],b[k+4],b[k+5])};mxJsCanvas.prototype.curveTo=function(b,k,m,g,q,u){this.ctx.bezierCurveTo(b,k,m,g,q,u);this.lastMoveX=q;this.lastMoveY=u};mxJsCanvas.prototype.rect=function(b,k,m,g){this.begin();this.moveTo(b,k);this.lineTo(b+m,k);this.lineTo(b+m,k+g);this.lineTo(b,k+g);this.close()};+mxJsCanvas.prototype.roundrect=function(b,k,m,g,q,u){this.begin();this.moveTo(b+q,k);this.lineTo(b+m-q,k);this.quadTo(b+m,k,b+m,k+u);this.lineTo(b+m,k+g-u);this.quadTo(b+m,k+g,b+m-q,k+g);this.lineTo(b+q,k+g);this.quadTo(b,k+g,b,k+g-u);this.lineTo(b,k+u);this.quadTo(b,k,b+q,k)};mxJsCanvas.prototype.ellipse=function(b,k,m,g){this.ctx.save();this.ctx.translate(b+m/2,k+g/2);this.ctx.scale(m/2,g/2);this.ctx.beginPath();this.ctx.arc(0,0,1,0,2*Math.PI,!1);this.ctx.restore()};mxJsCanvas.prototype.rewriteImageSource=function(b){if("http://"==b.substring(0,7)||"https://"==b.substring(0,8))b="/proxy?url="+encodeURIComponent(b);return b};-mxJsCanvas.prototype.image=function(b,k,m,f,q,u,x,z){q=this.rewriteImageSource(q);q=this.images[q];if(null!=q&&0<q.height&&0<q.width){var F=this.ctx;F.save();if(u){u=q.width;var J=q.height,H=Math.min(m/u,f/J);b+=(m-u*H)/2;k+=(f-J*H)/2;m=u*H;f=J*H}x&&(F.translate(2*b+m,0),F.scale(-1,1));z&&(F.translate(0,2*k+f),F.scale(1,-1));F.drawImage(q,b,k,m,f);F.restore()}};mxJsCanvas.prototype.begin=function(){this.ctx.beginPath()};mxJsCanvas.prototype.close=function(){this.ctx.closePath()};+mxJsCanvas.prototype.image=function(b,k,m,g,q,u,x,z){q=this.rewriteImageSource(q);q=this.images[q];if(null!=q&&0<q.height&&0<q.width){var F=this.ctx;F.save();if(u){u=q.width;var J=q.height,H=Math.min(m/u,g/J);b+=(m-u*H)/2;k+=(g-J*H)/2;m=u*H;g=J*H}x&&(F.translate(2*b+m,0),F.scale(-1,1));z&&(F.translate(0,2*k+g),F.scale(1,-1));F.drawImage(q,b,k,m,g);F.restore()}};mxJsCanvas.prototype.begin=function(){this.ctx.beginPath()};mxJsCanvas.prototype.close=function(){this.ctx.closePath()};mxJsCanvas.prototype.fill=function(){this.ctx.fill()};mxJsCanvas.prototype.stroke=function(){this.ctx.stroke()};mxJsCanvas.prototype.fillAndStroke=function(){if(this.state.shadow){this.ctx.stroke();this.ctx.fill();var b=this.ctx.shadowColor,k=this.ctx.shadowOffsetX,m=this.ctx.shadowOffsetY;this.ctx.shadowColor="transparent";this.ctx.shadowOffsetX=0;this.ctx.shadowOffsetY=0;this.ctx.stroke();this.ctx.shadowColor=b;this.ctx.shadowOffsetX=k;this.ctx.shadowOffsetY=m}else this.ctx.fill(),this.ctx.stroke()};-mxJsCanvas.prototype.text=function(b,k,m,f,q,u,x,z,F,J,H,D){if(null!=q&&0!=q.length){m=this.state.scale;0!=D&&(this.ctx.translate(Math.round(b),Math.round(k)),this.ctx.rotate(D*Math.PI/180),this.ctx.translate(Math.round(-b),Math.round(-k)));if("html"==F){q=this.subCanvas[this.canvasIndex++];F=q.height;D=q.width;switch(x){case mxConstants.ALIGN_MIDDLE:k-=F/2/m;break;case mxConstants.ALIGN_BOTTOM:k-=F/m}switch(u){case mxConstants.ALIGN_CENTER:b-=D/2/m;break;case mxConstants.ALIGN_RIGHT:b-=D/m}this.ctx.save();+mxJsCanvas.prototype.text=function(b,k,m,g,q,u,x,z,F,J,H,D){if(null!=q&&0!=q.length){m=this.state.scale;0!=D&&(this.ctx.translate(Math.round(b),Math.round(k)),this.ctx.rotate(D*Math.PI/180),this.ctx.translate(Math.round(-b),Math.round(-k)));if("html"==F){q=this.subCanvas[this.canvasIndex++];F=q.height;D=q.width;switch(x){case mxConstants.ALIGN_MIDDLE:k-=F/2/m;break;case mxConstants.ALIGN_BOTTOM:k-=F/m}switch(u){case mxConstants.ALIGN_CENTER:b-=D/2/m;break;case mxConstants.ALIGN_RIGHT:b-=D/m}this.ctx.save();if(null!=this.state.fontBackgroundColor||null!=this.state.fontBorderColor)null!=this.state.fontBackgroundColor&&(this.ctx.fillStyle=this.state.fontBackgroundColor,this.ctx.fillRect(Math.round(b)-.5,Math.round(k)-.5,Math.round(q.width/m),Math.round(q.height/m))),null!=this.state.fontBorderColor&&(this.ctx.strokeStyle=this.state.fontBorderColor,this.ctx.lineWidth=1,this.ctx.strokeRect(Math.round(b)-.5,Math.round(k)-.5,Math.round(q.width/m),Math.round(q.height/m)));this.ctx.scale(1/m,1/m);this.ctx.drawImage(q,Math.round(b*m),Math.round(k*m))}else{this.ctx.save();this.updateFont();D=document.createElement("div");D.innerHTML=q;D.style.position="absolute";D.style.top="-9999px";D.style.left="-9999px";D.style.fontFamily=this.state.fontFamily;D.style.fontWeight="bold";D.style.fontSize=this.state.fontSize+"pt";document.body.appendChild(D);F=[D.offsetWidth,D.offsetHeight];document.body.removeChild(D);q=q.split("\n");D=F[1];this.ctx.textBaseline="top";F=k;switch(x){case mxConstants.ALIGN_MIDDLE:this.ctx.textBaseline="middle";k-=(q.length-1)*D/2;F=k-this.state.fontSize/2;break;case mxConstants.ALIGN_BOTTOM:this.ctx.textBaseline="alphabetic",k-=D*(q.length-1),F=k-this.state.fontSize}x=[];D=[];for(m=0;m<q.length;m++)D[m]=b,x[m]=this.ctx.measureText(q[m]).width,null!=u&&u!=mxConstants.ALIGN_LEFT&&(D[m]-=x[m],u==mxConstants.ALIGN_CENTER&&(D[m]+=x[m]/2));if(null!=this.state.fontBackgroundColor||null!=this.state.fontBorderColor){b=D[0];u=x[0];for(m=1;m<q.length;m++)b=Math.min(b,D[m]),u=Math.max(u,x[m]);this.ctx.save();b=Math.round(b)-.5;F=Math.round(F)-.5;null!=this.state.fontBackgroundColor&&(this.ctx.fillStyle=this.state.fontBackgroundColor,this.ctx.fillRect(b,F,u,this.state.fontSize*mxConstants.LINE_HEIGHT*q.length));null!=this.state.fontBorderColor&&(this.ctx.strokeStyle=this.state.fontBorderColor,this.ctx.lineWidth=1,this.ctx.strokeRect(b,F,u,this.state.fontSize*mxConstants.LINE_HEIGHT*q.length));this.ctx.restore()}for(m=0;m<q.length;m++)this.ctx.fillText(q[m],D[m],k),k+=this.state.fontSize*mxConstants.LINE_HEIGHT}this.ctx.restore()}};mxJsCanvas.prototype.getCanvas=function(){return canvas};mxJsCanvas.prototype.finish=function(b){0==this.waitCounter?b():this.onComplete=b};function GifEncoder(b,k){this.width=b;this.height=k;this.delay=100;this.repeat=0;this.transparent=!1;this.dispose=2;this.out=[];this.frameCount=0;this.started=!1}GifEncoder.prototype.setDelay=function(b){this.delay=Math.max(10,Math.round(b))};GifEncoder.prototype.setRepeat=function(b){this.repeat=b};GifEncoder.prototype.setTransparent=function(b){this.transparent=b};-GifEncoder.prototype.addFrame=function(b){var k=b.getContext("2d").getImageData(0,0,this.width,this.height).data,m=k.length/4;if(this.started){b=this.globalPalette;var f=this.globalTransparentIndex;var q=new Uint8Array(m);for(var u=0;u<m;u++){var x=4*u;q[u]=this.transparent&&128>k[x+3]?f:GifEncoder.findClosest(b,k[x],k[x+1],k[x+2],f)}}else k=GifEncoder.quantize(k,256,this.transparent),b=k.palette,q=k.indexedPixels,f=k.transparentIndex,this.globalPalette=b,this.globalTransparentIndex=f,this.started=-!0,this.writeHeader(),this.writeLogicalScreenDescriptor(b),this.writeGlobalColorTable(b),0<=this.repeat&&this.writeNetscapeExtension();this.writeGraphicControlExtension(f);this.writeImageDescriptor();this.writeImageData(q,b);this.frameCount++};GifEncoder.prototype.finish=function(){if(!this.started)return null;this.out.push(59);return new Blob([new Uint8Array(this.out)],{type:"image/gif"})};GifEncoder.prototype.writeHeader=function(){this.writeString("GIF89a")};+GifEncoder.prototype.addFrame=function(b){var k=b.getContext("2d").getImageData(0,0,this.width,this.height).data,m=k.length/4;if(this.started){b=this.globalPalette;var g=this.globalTransparentIndex;var q=new Uint8Array(m);for(var u=0;u<m;u++){var x=4*u;q[u]=this.transparent&&128>k[x+3]?g:GifEncoder.findClosest(b,k[x],k[x+1],k[x+2],g)}}else k=GifEncoder.quantize(k,256,this.transparent),b=k.palette,q=k.indexedPixels,g=k.transparentIndex,this.globalPalette=b,this.globalTransparentIndex=g,this.started=+!0,this.writeHeader(),this.writeLogicalScreenDescriptor(b),this.writeGlobalColorTable(b),0<=this.repeat&&this.writeNetscapeExtension();this.writeGraphicControlExtension(g);this.writeImageDescriptor();this.writeImageData(q,b);this.frameCount++};GifEncoder.prototype.finish=function(){if(!this.started)return null;this.out.push(59);return new Blob([new Uint8Array(this.out)],{type:"image/gif"})};GifEncoder.prototype.writeHeader=function(){this.writeString("GIF89a")};GifEncoder.prototype.writeLogicalScreenDescriptor=function(b){this.writeShort(this.width);this.writeShort(this.height);b=GifEncoder.colorTableSizeFor(b.length);this.out.push(240|b);this.out.push(0);this.out.push(0)};GifEncoder.prototype.writeGlobalColorTable=function(b){for(var k=GifEncoder.colorTableEntries(b.length),m=0;m<k;m++)m<b.length?(this.out.push(b[m][0]),this.out.push(b[m][1]),this.out.push(b[m][2])):(this.out.push(0),this.out.push(0),this.out.push(0))};GifEncoder.prototype.writeNetscapeExtension=function(){this.out.push(33);this.out.push(255);this.out.push(11);this.writeString("NETSCAPE2.0");this.out.push(3);this.out.push(1);this.writeShort(this.repeat);this.out.push(0)};GifEncoder.prototype.writeGraphicControlExtension=function(b){this.out.push(33);this.out.push(249);this.out.push(4);var k=0<=b;this.out.push(this.dispose<<2|(k?1:0));this.writeShort(Math.round(this.delay/10));this.out.push(k?b:0);this.out.push(0)};-GifEncoder.prototype.writeImageDescriptor=function(){this.out.push(44);this.writeShort(0);this.writeShort(0);this.writeShort(this.width);this.writeShort(this.height);this.out.push(0)};GifEncoder.prototype.writeImageData=function(b,k){k=GifEncoder.colorDepthFor(k.length);k=Math.max(2,k);this.out.push(k);b=GifEncoder.lzwEncode(b,k);for(k=0;k<b.length;){var m=Math.min(255,b.length-k);this.out.push(m);for(var f=0;f<m;f++)this.out.push(b[k+f]);k+=m}this.out.push(0)};+GifEncoder.prototype.writeImageDescriptor=function(){this.out.push(44);this.writeShort(0);this.writeShort(0);this.writeShort(this.width);this.writeShort(this.height);this.out.push(0)};GifEncoder.prototype.writeImageData=function(b,k){k=GifEncoder.colorDepthFor(k.length);k=Math.max(2,k);this.out.push(k);b=GifEncoder.lzwEncode(b,k);for(k=0;k<b.length;){var m=Math.min(255,b.length-k);this.out.push(m);for(var g=0;g<m;g++)this.out.push(b[k+g]);k+=m}this.out.push(0)};GifEncoder.prototype.writeShort=function(b){this.out.push(b&255);this.out.push(b>>8&255)};GifEncoder.prototype.writeString=function(b){for(var k=0;k<b.length;k++)this.out.push(b.charCodeAt(k))};GifEncoder.colorTableSizeFor=function(b){for(var k=0;2<<k<b;)k++;return Math.min(k,7)};GifEncoder.colorTableEntries=function(b){for(var k=2;k<b;)k*=2;return Math.min(k,256)};GifEncoder.colorDepthFor=function(b){for(var k=1;1<<k<b;)k++;return k};-GifEncoder.quantize=function(b,k,m){var f=b.length/4,q=-1;m&&--k;for(var u=[],x=1E5<f?Math.floor(f/5E4):1,z=0;z<f;z+=x){var F=4*z;128>b[F+3]||u.push([b[F],b[F+1],b[F+2]])}u.length<=k?(x=GifEncoder.uniqueColors(u),x.length>k&&(x=GifEncoder.medianCut(u,k))):x=GifEncoder.medianCut(u,k);for(;2>x.length;)x.push([0,0,0]);m&&(q=x.length,x.push([0,0,0]));k=new Uint8Array(f);for(z=0;z<f;z++)F=4*z,k[z]=m&&128>b[F+3]?q:GifEncoder.findClosest(x,b[F],b[F+1],b[F+2],q);return{palette:x,indexedPixels:k,transparentIndex:q}};-GifEncoder.uniqueColors=function(b){for(var k={},m=[],f=0;f<b.length;f++){var q=b[f][0]<<16|b[f][1]<<8|b[f][2];null==k[q]&&(k[q]=!0,m.push(b[f]))}return m};-GifEncoder.medianCut=function(b,k){if(0==b.length)return[[0,0,0]];for(b=[b];b.length<k;){for(var m=-1,f=0,q=0;q<b.length;q++)if(!(1>=b[q].length)){var u=GifEncoder.colorRange(b[q]);u.maxRange>m&&(m=u.maxRange,f=q)}if(0>=m)break;q=b[f];u=GifEncoder.colorRange(q);q.sort(function(J,H){return J[u.channel]-H[u.channel]});m=Math.floor(q.length/2);b.splice(f,1,q.slice(0,m),q.slice(m))}k=[];for(q=0;q<b.length;q++){f=b[q];for(var x=m=0,z=0,F=0;F<f.length;F++)m+=f[F][0],x+=f[F][1],z+=f[F][2];k.push([Math.round(m/-f.length),Math.round(x/f.length),Math.round(z/f.length)])}return k};GifEncoder.colorRange=function(b){for(var k=255,m=0,f=255,q=0,u=255,x=0,z=0;z<b.length;z++){var F=b[z];F[0]<k&&(k=F[0]);F[0]>m&&(m=F[0]);F[1]<f&&(f=F[1]);F[1]>q&&(q=F[1]);F[2]<u&&(u=F[2]);F[2]>x&&(x=F[2])}b=m-k;f=q-f;u=x-u;return b>=f&&b>=u?{channel:0,maxRange:b}:f>=b&&f>=u?{channel:1,maxRange:f}:{channel:2,maxRange:u}};-GifEncoder.findClosest=function(b,k,m,f,q){for(var u=Infinity,x=0,z=0;z<b.length;z++)if(z!==q){var F=k-b[z][0],J=m-b[z][1],H=f-b[z][2];F=F*F+J*J+H*H;F<u&&(u=F,x=z)}return x};-GifEncoder.lzwEncode=function(b,k){for(var m=1<<k,f=m+1,q=k+1,u=f+1,x=1<<q,z={},F=0;F<m;F++)z[String(F)]=F;var J=0,H=0,D=[],c=function(n){J|=n<<H;for(H+=q;8<=H;)D.push(J&255),J>>=8,H-=8};c(m);if(0==b.length)return c(f),0<H&&D.push(J&255),new Uint8Array(D);var g=String(b[0]);for(F=1;F<b.length;F++){var l=g+","+b[F];if(null!=z[l])g=l;else{c(z[g]);if(4096>u)z[l]=u,u++,u>x&&12>q&&(q++,x=1<<q);else{c(m);z={};for(u=0;u<m;u++)z[String(u)]=u;q=k+1;u=f+1;x=1<<q}g=String(b[F])}}c(z[g]);c(f);0<H&&D.push(J&255);+GifEncoder.quantize=function(b,k,m){var g=b.length/4,q=-1;m&&--k;for(var u=[],x=1E5<g?Math.floor(g/5E4):1,z=0;z<g;z+=x){var F=4*z;128>b[F+3]||u.push([b[F],b[F+1],b[F+2]])}u.length<=k?(x=GifEncoder.uniqueColors(u),x.length>k&&(x=GifEncoder.medianCut(u,k))):x=GifEncoder.medianCut(u,k);for(;2>x.length;)x.push([0,0,0]);m&&(q=x.length,x.push([0,0,0]));k=new Uint8Array(g);for(z=0;z<g;z++)F=4*z,k[z]=m&&128>b[F+3]?q:GifEncoder.findClosest(x,b[F],b[F+1],b[F+2],q);return{palette:x,indexedPixels:k,transparentIndex:q}};+GifEncoder.uniqueColors=function(b){for(var k={},m=[],g=0;g<b.length;g++){var q=b[g][0]<<16|b[g][1]<<8|b[g][2];null==k[q]&&(k[q]=!0,m.push(b[g]))}return m};+GifEncoder.medianCut=function(b,k){if(0==b.length)return[[0,0,0]];for(b=[b];b.length<k;){for(var m=-1,g=0,q=0;q<b.length;q++)if(!(1>=b[q].length)){var u=GifEncoder.colorRange(b[q]);u.maxRange>m&&(m=u.maxRange,g=q)}if(0>=m)break;q=b[g];u=GifEncoder.colorRange(q);q.sort(function(J,H){return J[u.channel]-H[u.channel]});m=Math.floor(q.length/2);b.splice(g,1,q.slice(0,m),q.slice(m))}k=[];for(q=0;q<b.length;q++){g=b[q];for(var x=m=0,z=0,F=0;F<g.length;F++)m+=g[F][0],x+=g[F][1],z+=g[F][2];k.push([Math.round(m/+g.length),Math.round(x/g.length),Math.round(z/g.length)])}return k};GifEncoder.colorRange=function(b){for(var k=255,m=0,g=255,q=0,u=255,x=0,z=0;z<b.length;z++){var F=b[z];F[0]<k&&(k=F[0]);F[0]>m&&(m=F[0]);F[1]<g&&(g=F[1]);F[1]>q&&(q=F[1]);F[2]<u&&(u=F[2]);F[2]>x&&(x=F[2])}b=m-k;g=q-g;u=x-u;return b>=g&&b>=u?{channel:0,maxRange:b}:g>=b&&g>=u?{channel:1,maxRange:g}:{channel:2,maxRange:u}};+GifEncoder.findClosest=function(b,k,m,g,q){for(var u=Infinity,x=0,z=0;z<b.length;z++)if(z!==q){var F=k-b[z][0],J=m-b[z][1],H=g-b[z][2];F=F*F+J*J+H*H;F<u&&(u=F,x=z)}return x};+GifEncoder.lzwEncode=function(b,k){for(var m=1<<k,g=m+1,q=k+1,u=g+1,x=1<<q,z={},F=0;F<m;F++)z[String(F)]=F;var J=0,H=0,D=[],c=function(n){J|=n<<H;for(H+=q;8<=H;)D.push(J&255),J>>=8,H-=8};c(m);if(0==b.length)return c(g),0<H&&D.push(J&255),new Uint8Array(D);var f=String(b[0]);for(F=1;F<b.length;F++){var l=f+","+b[F];if(null!=z[l])f=l;else{c(z[f]);if(4096>u)z[l]=u,u++,u>x&&12>q&&(q++,x=1<<q);else{c(m);z={};for(u=0;u<m;u++)z[String(u)]=u;q=k+1;u=g+1;x=1<<q}f=String(b[F])}}c(z[f]);c(g);0<H&&D.push(J&255);return new Uint8Array(D)};function AnimatedGifExport(b){this.editorUi=b}-AnimatedGifExport.prototype.doExport=function(b,k,m){var f=this.editorUi.editor.graph,q=this.editorUi.editor;b=b||{};var u=b.fps||15,x=b.scale||1,z=b.border||0,F=b.transparent||!1,J=null!=b.repeat?b.repeat:0,H=F?null:null!=b.background&&b.background!=mxConstants.NONE?b.background:Editor.getDefaultPageBackgroundColor(),D=b.theme||null;try{var c=f.getSvg(H,x,z,!0,null,!0,null,null,null,f.shadowVisible,null,D),g=AnimatedGifExport.findAnimatedPaths(c);if(0==g.length)null!=m&&m(Error(mxResources.get("noAnimationsInDiagram")));-else{var l=b.duration||AnimatedGifExport.detectDuration(g)||1E3,n=Math.max(2,Math.round(u*l/1E3));AnimatedGifExport.removeAnimationCss(c,g);q.convertImages(c,mxUtils.bind(this,function(r){try{this.renderFrames(r,g,n,u,x,F,J,H,D,k,m)}catch(t){null!=m&&m(t)}}),null,q.createImageUrlConverter())}}catch(r){null!=m&&m(r)}};-AnimatedGifExport.prototype.renderFrames=function(b,k,m,f,q,u,x,z,F,J,H){var D=parseInt(b.getAttribute("width")),c=parseInt(b.getAttribute("height"));if(isNaN(D)||isNaN(c)||0>=D||0>=c)null!=H&&H(Error("Invalid SVG dimensions"));else{var g=this.editorUi.editor.getMaxCanvasScale(D,c,1);1>g&&(D=Math.ceil(D*g),c=Math.ceil(c*g));var l=new GifEncoder(D,c);l.setDelay(Math.round(1E3/f));l.setRepeat(x);l.setTransparent(u);var n=null;null!=z&&(f=mxUtils.getLightDarkColor(z),n="dark"==F&&"none"!=this.editorUi.editor.graph.getAdaptiveColors()?-f.dark:f.light);var r=0,t=mxUtils.bind(this,function(){if(r>=m)try{var v=l.finish();J(v)}catch(R){null!=H&&H(R)}else{v=1<m?r/m:0;for(var B=0;B<k.length;B++){var E=k[B];if("alternate"===E.direction||"alternate-reverse"===E.direction){var K=.5>v?2*v:2*(1-v);K="alternate"===E.direction?E.dashSum*(1-K):E.dashSum*K}else K="reverse"===E.direction?E.dashSum*v:E.dashSum*(1-v);E.node.style.strokeDashoffset=K}v=Editor.createSvgDataUri(mxUtils.getXml(b));var C=new Image;C.onload=function(){try{var R=document.createElement("canvas");-R.width=D;R.height=c;var M=R.getContext("2d");null!=n&&(M.fillStyle=n,M.fillRect(0,0,D,c));1>g&&M.scale(g,g);M.drawImage(C,0,0);l.addFrame(R);r++;setTimeout(t,0)}catch(O){null!=H&&H(O)}};C.onerror=function(){null!=H&&H(Error("Failed to render SVG frame"))};C.src=v}});t()}};-AnimatedGifExport.findAnimatedPaths=function(b){var k=[];b=b.getElementsByTagName("path");for(var m=0;m<b.length;m++){var f=b[m],q=f.style.animation||f.getAttribute("style");if(null!=q&&0<=q.indexOf("ge-flow-animation")){var u=parseFloat(f.style.strokeDashoffset);isNaN(u)&&(u=parseFloat(f.getAttribute("stroke-dashoffset")));if(!isNaN(u)&&0<u){var x="normal";"string"===typeof q&&(0<=q.indexOf("alternate-reverse")?x="alternate-reverse":0<=q.indexOf("alternate")?x="alternate":0<=q.indexOf("reverse")&&-(x="reverse"));var z=500;q="string"===typeof q?q.match(/(\d+)ms/):null;null!=q&&(z=parseInt(q[1]));k.push({node:f,dashSum:u,duration:z,direction:x})}}}return k};AnimatedGifExport.detectDuration=function(b){for(var k=0,m=0;m<b.length;m++)b[m].duration>k&&(k=b[m].duration);return k};+AnimatedGifExport.prototype.doExport=function(b,k,m){var g=this.editorUi.editor.graph,q=this.editorUi.editor;b=b||{};var u=b.fps||15,x=b.scale||1,z=b.border||0,F=b.transparent||!1,J=null!=b.repeat?b.repeat:0,H=F?null:null!=b.background&&b.background!=mxConstants.NONE?b.background:Editor.getDefaultPageBackgroundColor(),D=b.theme||null;try{var c=g.getSvg(H,x,z,!0,null,!0,null,null,null,g.shadowVisible,null,D),f=AnimatedGifExport.findAnimatedPaths(c);if(0==f.length)null!=m&&m(Error(mxResources.get("noAnimationsInDiagram")));+else{var l=b.duration||AnimatedGifExport.detectDuration(f)||1E3,n=Math.max(2,Math.round(u*l/1E3));AnimatedGifExport.removeAnimationCss(c,f);q.convertImages(c,mxUtils.bind(this,function(r){try{this.renderFrames(r,f,n,u,x,F,J,H,D,k,m)}catch(t){null!=m&&m(t)}}),null,q.createImageUrlConverter())}}catch(r){null!=m&&m(r)}};+AnimatedGifExport.prototype.renderFrames=function(b,k,m,g,q,u,x,z,F,J,H){var D=parseInt(b.getAttribute("width")),c=parseInt(b.getAttribute("height"));if(isNaN(D)||isNaN(c)||0>=D||0>=c)null!=H&&H(Error("Invalid SVG dimensions"));else{var f=this.editorUi.editor.getMaxCanvasScale(D,c,1);1>f&&(D=Math.ceil(D*f),c=Math.ceil(c*f));var l=new GifEncoder(D,c);l.setDelay(Math.round(1E3/g));l.setRepeat(x);l.setTransparent(u);var n=null;null!=z&&(g=mxUtils.getLightDarkColor(z),n="dark"==F&&"none"!=this.editorUi.editor.graph.getAdaptiveColors()?+g.dark:g.light);var r=0,t=mxUtils.bind(this,function(){if(r>=m)try{var v=l.finish();J(v)}catch(R){null!=H&&H(R)}else{v=1<m?r/m:0;for(var B=0;B<k.length;B++){var E=k[B];if("alternate"===E.direction||"alternate-reverse"===E.direction){var K=.5>v?2*v:2*(1-v);K="alternate"===E.direction?E.dashSum*(1-K):E.dashSum*K}else K="reverse"===E.direction?E.dashSum*v:E.dashSum*(1-v);E.node.style.strokeDashoffset=K}v=Editor.createSvgDataUri(mxUtils.getXml(b));var C=new Image;C.onload=function(){try{var R=document.createElement("canvas");+R.width=D;R.height=c;var M=R.getContext("2d");null!=n&&(M.fillStyle=n,M.fillRect(0,0,D,c));1>f&&M.scale(f,f);M.drawImage(C,0,0);l.addFrame(R);r++;setTimeout(t,0)}catch(O){null!=H&&H(O)}};C.onerror=function(){null!=H&&H(Error("Failed to render SVG frame"))};C.src=v}});t()}};+AnimatedGifExport.findAnimatedPaths=function(b){var k=[];b=b.getElementsByTagName("path");for(var m=0;m<b.length;m++){var g=b[m],q=g.style.animation||g.getAttribute("style");if(null!=q&&0<=q.indexOf("ge-flow-animation")){var u=parseFloat(g.style.strokeDashoffset);isNaN(u)&&(u=parseFloat(g.getAttribute("stroke-dashoffset")));if(!isNaN(u)&&0<u){var x="normal";"string"===typeof q&&(0<=q.indexOf("alternate-reverse")?x="alternate-reverse":0<=q.indexOf("alternate")?x="alternate":0<=q.indexOf("reverse")&&+(x="reverse"));var z=500;q="string"===typeof q?q.match(/(\d+)ms/):null;null!=q&&(z=parseInt(q[1]));k.push({node:g,dashSum:u,duration:z,direction:x})}}}return k};AnimatedGifExport.detectDuration=function(b){for(var k=0,m=0;m<b.length;m++)b[m].duration>k&&(k=b[m].duration);return k};AnimatedGifExport.removeAnimationCss=function(b,k){for(var m=0;m<k.length;m++)k[m].node.style.animation="",k[m].node.style.animationName="";m=b.getElementsByTagName("defs");if(0<m.length)for(b=m[0].getElementsByTagName("style"),m=b.length-1;0<=m;m--)null!=b[m].innerHTML&&0<=b[m].innerHTML.indexOf("ge-flow-animation")&&b[m].parentNode.removeChild(b[m])};DrawioClient=function(b,k){mxEventSource.call(this);this.ui=b;this.cookieName=k;this.token=this.getPersistentToken()};mxUtils.extend(DrawioClient,mxEventSource);DrawioClient.prototype.token=null;DrawioClient.prototype.user=null;DrawioClient.prototype.setUser=function(b){this.user=b;this.fireEvent(new mxEventObject("userChanged"))};DrawioClient.prototype.getUser=function(){return this.user};DrawioClient.prototype.clearPersistentToken=function(){if(isLocalStorage)localStorage.removeItem("."+this.cookieName),sessionStorage.removeItem("."+this.cookieName);else if("undefined"!=typeof Storage){var b=new Date;b.setYear(b.getFullYear()-1);document.cookie=this.cookieName+"=; expires="+b.toUTCString()}};-DrawioClient.prototype.getPersistentToken=function(b){var k=null;isLocalStorage&&(k=localStorage.getItem("."+this.cookieName),null==k&&b&&(k=sessionStorage.getItem("."+this.cookieName)));if(null==k&&"undefined"!=typeof Storage){var m=document.cookie;b=this.cookieName+"=";var f=m.indexOf(b);0<=f&&(f+=b.length,k=m.indexOf(";",f),0>k?k=m.length:postCookie=m.substring(k),k=m.substring(f,k),k=0<k.length?k:null,null!=k&&isLocalStorage&&(m=new Date,m.setYear(m.getFullYear()-1),document.cookie=b+"; expires="+-m.toUTCString(),localStorage.setItem("."+this.cookieName,k)))}return k};DrawioClient.prototype.setPersistentToken=function(b,k){try{if(null!=b)if(isLocalStorage)k?sessionStorage.setItem("."+this.cookieName,b):localStorage.setItem("."+this.cookieName,b);else{if("undefined"!=typeof Storage){var m=new Date;m.setYear(m.getFullYear()+10);var f=this.cookieName+"="+b+"; path=/"+(k?"":"; expires="+m.toUTCString());"https"==document.location.protocol.toLowerCase()&&(f+=";secure");document.cookie=f}}else this.clearPersistentToken()}catch(q){this.ui.handleError(q)}};DrawioUser=function(b,k,m,f,q){this.id=b;this.email=k;this.displayName=m;this.pictureUrl=f;this.locale=q};DriveFile=function(b,k,m){DrawioFile.call(this,b,k);this.desc=m};mxUtils.extend(DriveFile,DrawioFile);DriveFile.prototype.saveDelay=0;DriveFile.prototype.allChangesSavedKey="allChangesSavedInDrive";DriveFile.prototype.getSize=function(){return this.desc.fileSize};DriveFile.prototype.isRestricted=function(){return DrawioFile.RESTRICT_EXPORT||null!=this.desc.userPermission&&null!=this.desc.labels&&"reader"==this.desc.userPermission.role&&this.desc.labels.restricted};+DrawioClient.prototype.getPersistentToken=function(b){var k=null;isLocalStorage&&(k=localStorage.getItem("."+this.cookieName),null==k&&b&&(k=sessionStorage.getItem("."+this.cookieName)));if(null==k&&"undefined"!=typeof Storage){var m=document.cookie;b=this.cookieName+"=";var g=m.indexOf(b);0<=g&&(g+=b.length,k=m.indexOf(";",g),0>k?k=m.length:postCookie=m.substring(k),k=m.substring(g,k),k=0<k.length?k:null,null!=k&&isLocalStorage&&(m=new Date,m.setYear(m.getFullYear()-1),document.cookie=b+"; expires="++m.toUTCString(),localStorage.setItem("."+this.cookieName,k)))}return k};DrawioClient.prototype.setPersistentToken=function(b,k){try{if(null!=b)if(isLocalStorage)k?sessionStorage.setItem("."+this.cookieName,b):localStorage.setItem("."+this.cookieName,b);else{if("undefined"!=typeof Storage){var m=new Date;m.setYear(m.getFullYear()+10);var g=this.cookieName+"="+b+"; path=/"+(k?"":"; expires="+m.toUTCString());"https"==document.location.protocol.toLowerCase()&&(g+=";secure");document.cookie=g}}else this.clearPersistentToken()}catch(q){this.ui.handleError(q)}};DrawioUser=function(b,k,m,g,q){this.id=b;this.email=k;this.displayName=m;this.pictureUrl=g;this.locale=q};DriveFile=function(b,k,m){DrawioFile.call(this,b,k);this.desc=m};mxUtils.extend(DriveFile,DrawioFile);DriveFile.prototype.saveDelay=0;DriveFile.prototype.allChangesSavedKey="allChangesSavedInDrive";DriveFile.prototype.getSize=function(){return this.desc.fileSize};DriveFile.prototype.isRestricted=function(){return DrawioFile.RESTRICT_EXPORT||null!=this.desc.userPermission&&null!=this.desc.labels&&"reader"==this.desc.userPermission.role&&this.desc.labels.restricted};DriveFile.prototype.isConflict=function(b){return null!=b&&null!=b.error&&412==b.error.code};DriveFile.prototype.getCurrentUser=function(){return null!=this.ui.drive?this.ui.drive.user:null};DriveFile.prototype.getMode=function(){return App.MODE_GOOGLE};DriveFile.prototype.getFileUrl=function(){return"https://drive.google.com/open?authuser=0&id="+this.getId()};DriveFile.prototype.getFolderUrl=function(){return null!=this.desc.labels&&this.desc.labels.trashed?"https://drive.google.com/drive/trash":null!=this.desc.parents&&0<this.desc.parents.length?"https://drive.google.com/drive/folders/"+this.desc.parents[0].id:null};DriveFile.prototype.getPublicUrl=function(b){this.ui.drive.executeRequest({url:"/files/"+this.desc.id+"/permissions?supportsAllDrives=true"},mxUtils.bind(this,function(k){if(null!=k&&null!=k.items)for(var m=0;m<k.items.length;m++)if("anyoneWithLink"===k.items[m].id||"anyone"===k.items[m].id){b(this.desc.webContentLink);return}b(null)}),mxUtils.bind(this,function(){b(null)}))};DriveFile.prototype.isAutosaveOptional=function(){return!0};-DriveFile.prototype.isRenamable=function(){return this.isEditable()&&DrawioFile.prototype.isEditable.apply(this,arguments)};DriveFile.prototype.isMovable=function(){return this.isEditable()};DriveFile.prototype.isTrashed=function(){return this.desc.labels.trashed};DriveFile.prototype.save=function(b,k,m,f,q){DrawioFile.prototype.save.apply(this,[b,mxUtils.bind(this,function(){this.saveFile(null,b,k,m,f,q)}),m,f,q])};-DriveFile.prototype.saveFile=function(b,k,m,f,q,u){b=this.savingFile;try{this.isEditable()?this.savingFile?null!=f&&f({code:App.ERROR_BUSY,message:mxResources.get("busy")}):(this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.createSecret(mxUtils.bind(this,function(x,z){var F=mxUtils.bind(this,function(J,H){try{var D=this.desc;null!=this.sync&&this.sync.fileSaving();this.ui.drive.saveFile(this,H,mxUtils.bind(this,function(c,g,l,n){try{this.savingFile=!1,0!=c?(this.setModified(this.getShadowModified()),-k&&(this.lastAutosaveRevision=(new Date).getTime()),this.autosaveDelay=Math.round(Math.min(1E4,Math.max(DriveFile.prototype.autosaveDelay,this.saveDelay))),this.desc=c,this.fileSaved(g,D,mxUtils.bind(this,function(){this.contentChanged();"function"===typeof m&&m(c)}),f,z,l,n)):null!=f&&f(c)}catch(r){if(this.savingFile=!1,null!=f)f(r);else throw r;}}),mxUtils.bind(this,function(c,g){try{this.savingFile=!1,this.isConflict(c)?(this.inConflictState=!0,null!=this.sync?(this.savingFile=!0,this.sync.fileConflict(g,-mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){this.updateFileData();this.setShadowModified(!1);F(J,!0)}),100+500*Math.random())}),mxUtils.bind(this,function(){this.savingFile=!1;null!=f&&f()}))):null!=f&&f()):null!=f&&f(c)}catch(l){if(this.savingFile=!1,null!=f)f(l);else throw l;}}),q,q,J,null,x)}catch(c){if(this.savingFile=!1,null!=f)f(c);else throw c;}});F(u,k)}))):null!=m&&m()}catch(x){if(b||(this.savingFile=!1),null!=f)f(x);else throw x;}};-DriveFile.prototype.copyFile=function(b,k,m){this.isRestricted()?DrawioFile.prototype.copyFile.apply(this,arguments):this.makeCopy(mxUtils.bind(this,function(){if(this.ui.spinner.spin(document.body,mxResources.get("saving")))try{this.save(!0,b,k)}catch(f){k(f)}}),k,null!=m?m:this.ui.getCopyFilename(this,!0))};-DriveFile.prototype.makeCopy=function(b,k,m){this.ui.spinner.spin(document.body,mxResources.get("saving"))&&this.saveAs(m,mxUtils.bind(this,function(f){null!=this.sync&&(this.sync.stop(),this.sync.channelId=null,this.sync.key=null);this.desc=f;null!=this.sync&&this.sync.start();this.ui.spinner.stop();this.setModified(!1);this.inConflictState=this.invalidChecksum=!1;this.descriptorChanged();b()}),mxUtils.bind(this,function(){this.ui.spinner.stop();null!=k&&k()}))};-DriveFile.prototype.saveAs=function(b,k,m){this.ui.drive.copyFile(this.getId(),b,k,m)};DriveFile.prototype.rename=function(b,k,m){var f=this.getCurrentRevisionId();this.ui.drive.renameFile(this.getId(),b,mxUtils.bind(this,function(q){this.hasSameExtension(b,this.getTitle())?(this.desc=q,this.descriptorChanged(),null!=this.sync&&this.sync.descriptorChanged(f),null!=k&&k(q)):(this.desc=q,null!=this.sync&&this.sync.descriptorChanged(f),this.save(!0,k,m))}),m)};-DriveFile.prototype.move=function(b,k,m){this.ui.drive.moveFile(this.getId(),b,mxUtils.bind(this,function(f){this.desc=f;this.descriptorChanged();null!=k&&k(f)}),m)};DriveFile.prototype.share=function(){this.ui.drive.showPermissions(this.getId(),this)};DriveFile.prototype.getTitle=function(){return this.desc.title};DriveFile.prototype.getHash=function(){return"G"+this.getId()};DriveFile.prototype.getId=function(){return this.desc.id};+DriveFile.prototype.isRenamable=function(){return this.isEditable()&&DrawioFile.prototype.isEditable.apply(this,arguments)};DriveFile.prototype.isMovable=function(){return this.isEditable()};DriveFile.prototype.isTrashed=function(){return this.desc.labels.trashed};DriveFile.prototype.save=function(b,k,m,g,q){DrawioFile.prototype.save.apply(this,[b,mxUtils.bind(this,function(){this.saveFile(null,b,k,m,g,q)}),m,g,q])};+DriveFile.prototype.saveFile=function(b,k,m,g,q,u){b=this.savingFile;try{this.isEditable()?this.savingFile?null!=g&&g({code:App.ERROR_BUSY,message:mxResources.get("busy")}):(this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.createSecret(mxUtils.bind(this,function(x,z){var F=mxUtils.bind(this,function(J,H){try{var D=this.desc;null!=this.sync&&this.sync.fileSaving();this.ui.drive.saveFile(this,H,mxUtils.bind(this,function(c,f,l,n){try{this.savingFile=!1,0!=c?(this.setModified(this.getShadowModified()),+k&&(this.lastAutosaveRevision=(new Date).getTime()),this.autosaveDelay=Math.round(Math.min(1E4,Math.max(DriveFile.prototype.autosaveDelay,this.saveDelay))),this.desc=c,this.fileSaved(f,D,mxUtils.bind(this,function(){this.contentChanged();"function"===typeof m&&m(c)}),g,z,l,n)):null!=g&&g(c)}catch(r){if(this.savingFile=!1,null!=g)g(r);else throw r;}}),mxUtils.bind(this,function(c,f){try{this.savingFile=!1,this.isConflict(c)?(this.inConflictState=!0,null!=this.sync?(this.savingFile=!0,this.sync.fileConflict(f,+mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){this.updateFileData();this.setShadowModified(!1);F(J,!0)}),100+500*Math.random())}),mxUtils.bind(this,function(){this.savingFile=!1;null!=g&&g()}))):null!=g&&g()):null!=g&&g(c)}catch(l){if(this.savingFile=!1,null!=g)g(l);else throw l;}}),q,q,J,null,x)}catch(c){if(this.savingFile=!1,null!=g)g(c);else throw c;}});F(u,k)}))):null!=m&&m()}catch(x){if(b||(this.savingFile=!1),null!=g)g(x);else throw x;}};+DriveFile.prototype.copyFile=function(b,k,m){this.isRestricted()?DrawioFile.prototype.copyFile.apply(this,arguments):this.makeCopy(mxUtils.bind(this,function(){if(this.ui.spinner.spin(document.body,mxResources.get("saving")))try{this.save(!0,b,k)}catch(g){k(g)}}),k,null!=m?m:this.ui.getCopyFilename(this,!0))};+DriveFile.prototype.makeCopy=function(b,k,m){this.ui.spinner.spin(document.body,mxResources.get("saving"))&&this.saveAs(m,mxUtils.bind(this,function(g){null!=this.sync&&(this.sync.stop(),this.sync.channelId=null,this.sync.key=null);this.desc=g;null!=this.sync&&this.sync.start();this.ui.spinner.stop();this.setModified(!1);this.inConflictState=this.invalidChecksum=!1;this.descriptorChanged();b()}),mxUtils.bind(this,function(){this.ui.spinner.stop();null!=k&&k()}))};+DriveFile.prototype.saveAs=function(b,k,m){this.ui.drive.copyFile(this.getId(),b,k,m)};DriveFile.prototype.rename=function(b,k,m){var g=this.getCurrentRevisionId();this.ui.drive.renameFile(this.getId(),b,mxUtils.bind(this,function(q){this.hasSameExtension(b,this.getTitle())?(this.desc=q,this.descriptorChanged(),null!=this.sync&&this.sync.descriptorChanged(g),null!=k&&k(q)):(this.desc=q,null!=this.sync&&this.sync.descriptorChanged(g),this.save(!0,k,m))}),m)};+DriveFile.prototype.move=function(b,k,m){this.ui.drive.moveFile(this.getId(),b,mxUtils.bind(this,function(g){this.desc=g;this.descriptorChanged();null!=k&&k(g)}),m)};DriveFile.prototype.share=function(){this.ui.drive.showPermissions(this.getId(),this)};DriveFile.prototype.getTitle=function(){return this.desc.title};DriveFile.prototype.getHash=function(){return"G"+this.getId()};DriveFile.prototype.getId=function(){return this.desc.id};DriveFile.prototype.isEditable=function(){return DrawioFile.prototype.isEditable.apply(this,arguments)&&this.desc.editable};DriveFile.prototype.isSyncSupported=function(){return!0};DriveFile.prototype.isRealtimeSupported=function(){return!0};DriveFile.prototype.isRealtimeOptional=function(){return null!=this.sync&&this.sync.isConnected()};-DriveFile.prototype.setRealtimeEnabled=function(b,k,m){null!=this.sync?this.ui.drive.executeRequest({url:"/files/"+this.getId()+"/properties?alt=json&supportsAllDrives=true",method:"POST",contentType:"application/json; charset=UTF-8",params:{key:"collaboration",value:b?"enabled":"0"!=urlParams["fast-sync"]?"disabled":""}},mxUtils.bind(this,function(){this.loadDescriptor(mxUtils.bind(this,function(f){null!=f?(this.sync.descriptorChanged(this.getCurrentEtag()),this.sync.updateDescriptor(f),k()):m()}),+DriveFile.prototype.setRealtimeEnabled=function(b,k,m){null!=this.sync?this.ui.drive.executeRequest({url:"/files/"+this.getId()+"/properties?alt=json&supportsAllDrives=true",method:"POST",contentType:"application/json; charset=UTF-8",params:{key:"collaboration",value:b?"enabled":"0"!=urlParams["fast-sync"]?"disabled":""}},mxUtils.bind(this,function(){this.loadDescriptor(mxUtils.bind(this,function(g){null!=g?(this.sync.descriptorChanged(this.getCurrentEtag()),this.sync.updateDescriptor(g),k()):m()}),m)}),m):m()};DriveFile.prototype.isRealtimeEnabled=function(){var b=this.ui.drive.getCustomProperty(this.desc,"collaboration");return DrawioFile.prototype.isRealtimeEnabled.apply(this,arguments)&&"disabled"!=b||Editor.enableRealtime&&"enabled"==b};DriveFile.prototype.isRevisionHistorySupported=function(){return!0};-DriveFile.prototype.getRevisions=function(b,k){this.ui.drive.executeRequest({url:"/files/"+this.getId()+"/revisions"},mxUtils.bind(this,function(m){for(var f=0;f<m.items.length;f++)mxUtils.bind(this,function(q){q.title=q.originalFilename;q.getXml=mxUtils.bind(this,function(u,x){this.ui.drive.getXmlFile(q,mxUtils.bind(this,function(z){u(z.getData())}),x)});q.getUrl=mxUtils.bind(this,function(u){return this.ui.getUrl(window.location.pathname+"?rev="+q.id+"&chrome=0&nav=1&layers=1&edit=_blank"+(null!=-u?"&page="+u:""))+window.location.hash})})(m.items[f]);b(m.items)}),k)};DriveFile.prototype.getLatestVersion=function(b,k){this.ui.drive.getFile(this.getId(),b,k,!0)};DriveFile.prototype.getChannelId=function(){var b=this.ui.drive.getCustomProperty(this.desc,"channel");null!=b&&(b="G-"+this.getId()+"."+b);return b};DriveFile.prototype.getChannelKey=function(){return this.ui.drive.getCustomProperty(this.desc,"key")};DriveFile.prototype.getLastModifiedDate=function(){return new Date(this.desc.modifiedDate)};+DriveFile.prototype.getRevisions=function(b,k){this.ui.drive.executeRequest({url:"/files/"+this.getId()+"/revisions"},mxUtils.bind(this,function(m){for(var g=0;g<m.items.length;g++)mxUtils.bind(this,function(q){q.title=q.originalFilename;q.getXml=mxUtils.bind(this,function(u,x){this.ui.drive.getXmlFile(q,mxUtils.bind(this,function(z){u(z.getData())}),x)});q.getUrl=mxUtils.bind(this,function(u){return this.ui.getUrl(window.location.pathname+"?rev="+q.id+"&chrome=0&nav=1&layers=1&edit=_blank"+(null!=+u?"&page="+u:""))+window.location.hash})})(m.items[g]);b(m.items)}),k)};DriveFile.prototype.getLatestVersion=function(b,k){this.ui.drive.getFile(this.getId(),b,k,!0)};DriveFile.prototype.getChannelId=function(){var b=this.ui.drive.getCustomProperty(this.desc,"channel");null!=b&&(b="G-"+this.getId()+"."+b);return b};DriveFile.prototype.getChannelKey=function(){return this.ui.drive.getCustomProperty(this.desc,"key")};DriveFile.prototype.getLastModifiedDate=function(){return new Date(this.desc.modifiedDate)};DriveFile.prototype.getDescriptor=function(){return this.desc};DriveFile.prototype.setDescriptor=function(b){this.desc=b};DriveFile.prototype.getDescriptorChecksum=function(b){var k=this.ui.drive.getCustomProperty(b,"checksum");b=this.getDescriptorSecret(b);var m=null;null!=k&&null!=b&&(tokens=k.split(":"),2==tokens.length&&tokens[0]==b&&(m=tokens[1]));return m};DriveFile.prototype.getDescriptorSecret=function(b){return this.ui.drive.getCustomProperty(b,"secret")};DriveFile.prototype.setDescriptorRevisionId=function(b,k){b.headRevisionId=k};DriveFile.prototype.getDescriptorRevisionId=function(b){return b.headRevisionId};DriveFile.prototype.getDescriptorEtag=function(b){return b.etag};DriveFile.prototype.setDescriptorEtag=function(b,k){b.etag=k};DriveFile.prototype.loadPatchDescriptor=function(b,k){this.ui.drive.executeRequest({url:"/files/"+this.getId()+"?supportsAllDrives=true&fields="+this.ui.drive.catchupFields},mxUtils.bind(this,function(m){b(m)}),k)};DriveFile.prototype.patchDescriptor=function(b,k){b.headRevisionId=k.headRevisionId;b.modifiedDate=k.modifiedDate;DrawioFile.prototype.patchDescriptor.apply(this,arguments)};DriveFile.prototype.loadDescriptor=function(b,k){this.ui.drive.loadDescriptor(this.getId(),b,k)};DriveFile.prototype.commentsSupported=function(){return!0};DriveFile.prototype.anchoredCommentsSupported=function(){return!0};DriveFile.prototype.mentionsSupported=function(){return!0};DriveFile.prototype.commentFields="id,content,createdTime,modifiedTime,deleted,resolved,anchor,author(displayName,photoLink,me),replies(id,content,createdTime,modifiedTime,deleted,author(displayName,photoLink,me))";DriveFile.prototype.getCommentUrl=function(b,k){return this.ui.drive.GDriveV3BaseUrl+"/files/"+this.getId()+"/comments"+b+(null!=k?"?fields="+encodeURIComponent(k):"")};DriveFile.prototype.encodeCommentAnchor=function(b){return JSON.stringify({r:"head",a:[{drawio:b}]})};DriveFile.prototype.decodeCommentAnchor=function(b){try{if(null!=b){var k=JSON.parse(b);if(null!=k&&null!=k.a&&0<k.a.length)for(b=0;b<k.a.length;b++)if(null!=k.a[b]&&"object"===typeof k.a[b].drawio&&null!==k.a[b].drawio)return k.a[b].drawio}}catch(m){}return null};-DriveFile.prototype.getComments=function(b,k){function m(z,F){if(z.deleted)return null;var J=new DriveComment(q,z.id,z.content,z.modifiedTime,z.createdTime,1==z.resolved,null!=z.author&&z.author.me?f:new DrawioUser(null,null,null!=z.author?z.author.displayName:null,null!=z.author?z.author.photoLink:null),F);null==F&&(J.anchor=q.decodeCommentAnchor(z.anchor));for(F=0;null!=z.replies&&F<z.replies.length;F++)J.addReplyDirect(m(z.replies[F],z.id));return J}var f=this.ui.getCurrentUser(),q=this,u=[],x=+DriveFile.prototype.getComments=function(b,k){function m(z,F){if(z.deleted)return null;var J=new DriveComment(q,z.id,z.content,z.modifiedTime,z.createdTime,1==z.resolved,null!=z.author&&z.author.me?g:new DrawioUser(null,null,null!=z.author?z.author.displayName:null,null!=z.author?z.author.photoLink:null),F);null==F&&(J.anchor=q.decodeCommentAnchor(z.anchor));for(F=0;null!=z.replies&&F<z.replies.length;F++)J.addReplyDirect(m(z.replies[F],z.id));return J}var g=this.ui.getCurrentUser(),q=this,u=[],x=mxUtils.bind(this,function(z){this.ui.drive.executeRequest({fullUrl:this.getCommentUrl("","nextPageToken,comments("+this.commentFields+")")+"&pageSize=100"+(null!=z?"&pageToken="+encodeURIComponent(z):"")},mxUtils.bind(this,function(F){for(var J=null!=F&&null!=F.comments?F.comments:[],H=0;H<J.length;H++){var D=m(J[H]);null!=D&&u.push(D)}null!=F&&null!=F.nextPageToken?x(F.nextPageToken):b(u)}),k)});x(null)};-DriveFile.prototype.addComment=function(b,k,m){var f={content:b.content};null!=b.anchor&&(f.anchor=this.encodeCommentAnchor(b.anchor));this.ui.drive.executeRequest({fullUrl:this.getCommentUrl("","id"),method:"POST",params:f},mxUtils.bind(this,function(q){k(q.id)}),m)};-DriveFile.prototype.getMentionCandidates=function(b,k){if(null!=this.mentionCandidates)b(this.mentionCandidates);else{var m=[],f=mxUtils.bind(this,function(q){this.ui.drive.executeRequest({fullUrl:this.ui.drive.GDriveV3BaseUrl+"/files/"+this.getId()+"/permissions?supportsAllDrives=true&pageSize=100&fields="+encodeURIComponent("nextPageToken,permissions(type,deleted,emailAddress,displayName,photoLink)")+(null!=q?"&pageToken="+encodeURIComponent(q):"")},mxUtils.bind(this,function(u){for(var x=null!=-u&&null!=u.permissions?u.permissions:[],z=0;z<x.length;z++)if(("user"==x[z].type||"group"==x[z].type)&&!x[z].deleted&&null!=x[z].emailAddress){var F=new DrawioUser(null,x[z].emailAddress,x[z].displayName,x[z].photoLink);F.isGroup="group"==x[z].type;m.push(F)}null!=u&&null!=u.nextPageToken?f(u.nextPageToken):(this.mentionCandidates=m,b(m))}),k)});f(null)}};DriveFile.prototype.canReplyToReplies=function(){return!1};DriveFile.prototype.canComment=function(){return this.desc.canComment};-DriveFile.prototype.newComment=function(b,k){return new DriveComment(this,null,b,Date.now(),Date.now(),!1,k)};DriveLibrary=function(b,k,m){DriveFile.call(this,b,k,m)};mxUtils.extend(DriveLibrary,DriveFile);DriveLibrary.prototype.isAutosave=function(){return!0};DriveLibrary.prototype.save=function(b,k,m){this.ui.drive.saveFile(this,b,mxUtils.bind(this,function(f){this.desc=f;null!=k&&k(f)}),m)};DriveLibrary.prototype.open=function(){};(function(){var b=null,k={};window.DriveClient=function(m,f){null==f&&null!=window.urlParams&&"1"==window.urlParams.extAuth&&(f=!0);mxEventSource.call(this);DrawioClient.call(this,m,"gDriveAuthInfo");this.isExtAuth=f;this.ui=m;this.xmlMimeType="application/vnd.jgraph.mxfile";this.mimeType="application/vnd.jgraph.mxfile.realtime";this.ui.editor.chromeless&&!this.ui.editor.editable&&"1"!=urlParams.rt&&"1"!=urlParams.extAuth&&(this.cookieName="gDriveViewerAuthInfo",this.token=this.getPersistentToken());+DriveFile.prototype.addComment=function(b,k,m){var g={content:b.content};null!=b.anchor&&(g.anchor=this.encodeCommentAnchor(b.anchor));this.ui.drive.executeRequest({fullUrl:this.getCommentUrl("","id"),method:"POST",params:g},mxUtils.bind(this,function(q){k(q.id)}),m)};+DriveFile.prototype.getMentionCandidates=function(b,k){if(null!=this.mentionCandidates)b(this.mentionCandidates);else{var m=[],g=mxUtils.bind(this,function(q){this.ui.drive.executeRequest({fullUrl:this.ui.drive.GDriveV3BaseUrl+"/files/"+this.getId()+"/permissions?supportsAllDrives=true&pageSize=100&fields="+encodeURIComponent("nextPageToken,permissions(type,deleted,emailAddress,displayName,photoLink)")+(null!=q?"&pageToken="+encodeURIComponent(q):"")},mxUtils.bind(this,function(u){for(var x=null!=+u&&null!=u.permissions?u.permissions:[],z=0;z<x.length;z++)if(("user"==x[z].type||"group"==x[z].type)&&!x[z].deleted&&null!=x[z].emailAddress){var F=new DrawioUser(null,x[z].emailAddress,x[z].displayName,x[z].photoLink);F.isGroup="group"==x[z].type;m.push(F)}null!=u&&null!=u.nextPageToken?g(u.nextPageToken):(this.mentionCandidates=m,b(m))}),k)});g(null)}};DriveFile.prototype.canReplyToReplies=function(){return!1};DriveFile.prototype.canComment=function(){return this.desc.canComment};+DriveFile.prototype.newComment=function(b,k){return new DriveComment(this,null,b,Date.now(),Date.now(),!1,k)};DriveLibrary=function(b,k,m){DriveFile.call(this,b,k,m)};mxUtils.extend(DriveLibrary,DriveFile);DriveLibrary.prototype.isAutosave=function(){return!0};DriveLibrary.prototype.save=function(b,k,m){this.ui.drive.saveFile(this,b,mxUtils.bind(this,function(g){this.desc=g;null!=k&&k(g)}),m)};DriveLibrary.prototype.open=function(){};(function(){var b=null,k={};window.DriveClient=function(m,g){null==g&&null!=window.urlParams&&"1"==window.urlParams.extAuth&&(g=!0);mxEventSource.call(this);DrawioClient.call(this,m,"gDriveAuthInfo");this.isExtAuth=g;this.ui=m;this.xmlMimeType="application/vnd.jgraph.mxfile";this.mimeType="application/vnd.jgraph.mxfile.realtime";this.ui.editor.chromeless&&!this.ui.editor.editable&&"1"!=urlParams.rt&&"1"!=urlParams.extAuth&&(this.cookieName="gDriveViewerAuthInfo",this.token=this.getPersistentToken());this.appId=window.DRAWIO_GOOGLE_APP_ID||"671128082532";this.clientId=window.DRAWIO_GOOGLE_CLIENT_ID||"671128082532-jhphbq6d0e1gnsus9mn7vf8a6fjn10mp.apps.googleusercontent.com";this.mimeTypes=this.xmlMimeType+",application/mxe,application/mxr,application/vnd.jgraph.mxfile.realtime,application/vnd.jgraph.mxfile.rtlegacy";m=JSON.parse(this.token);null!=m&&null!=m.current&&(this.userId=m.current.userId,this.authCalled=!1)};mxUtils.extend(DriveClient,mxEventSource);mxUtils.extend(DriveClient,DrawioClient);DriveClient.prototype.redirectUri=window.DRAWIO_SERVER_URL+"google";DriveClient.prototype.GDriveBaseUrl="https://www.googleapis.com/drive/v2";DriveClient.prototype.GDriveV3BaseUrl="https://www.googleapis.com/drive/v3";DriveClient.prototype.scopes=["https://www.googleapis.com/auth/drive.file","https://www.googleapis.com/auth/drive.install","https://www.googleapis.com/auth/userinfo.profile"];DriveClient.prototype.allFields="kind,id,parents,headRevisionId,etag,title,mimeType,modifiedDate,editable,copyable,canComment,labels,properties,downloadUrl,webContentLink,userPermission,fileSize";DriveClient.prototype.catchupFields="etag,headRevisionId,modifiedDate,properties(key,value)";DriveClient.prototype.enableThumbnails=!0;DriveClient.prototype.thumbnailWidth=1E3;DriveClient.prototype.maxThumbnailSize=2E6;DriveClient.prototype.placeholderThumbnail="iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAMAAAAL34HQAAACN1BMVEXwhwXvhgX4iwXzhwXgbQzvhgXhbAzocgzqcwzldAoAAADhbgvjcQnmdgrlbgDwhgXsfwXufgjwhgXwgQfziAXxgADibgz4iwX4jAX3iwTpcwr1igXoewjsfgj3igX4iwXqcQv4jAX3iwXtfQnndQrvhAbibArwhwXgbQz//////v39jwX6jQX+/v7fagHfawzdVQDwhADgbhPgbhXwhwPocQ3uvKvwiA/faQDscgzxiAT97+XgciTgcSP6jAXgbQ3gcCHwiRfpcQzwhwfeXQD77ef74NLvhgTvegD66uPgbAf66+TvfADwjCzgcCfwiSD67ObhcjjwiBHhczvwiyrgbxj///777ujgcSHgcB/xiRzgbhveWgDeVwDhdEDgbRDqfgffYgDfXwD97+bvfQDxiz7//vvwiRr118rrcgztggbfZgDfZAD++PT98+3gbBPsgAb99vD33tPgcB7icAvuhAX//Pn66N/00sTyy7vuuqbjekLwhwzkcgr88er449n++vfutp/kh1vgcBvhbwvmdwnwgwDwgADeWQD87eLxxrTssJjqpIf0roHmjWTkhFP759n63czvvanomnjnlHDhczD22cr4y6/wwa/3xKX2wJ3rqpH0tY7qp4vpnoDymlbjf0vxjjntcwzldAroegj/kgX12s7518PzqnnnkWfynmLieUjpewjrdAD40Lj1uZTzpm3idTbiciLydQzzfwnyiQTsfgD3xqnzp3TxlkzgbCrdTwDdSwBLKUlNAAAAJ3RSTlP8/b2X/YH8wb+FAIuIggJbQin5opAM9+a/ubaubyD78NjSyr2WgRp4sjN4AAAI70lEQVR42u2cZ38SQRDGT8WGvfde4E4BxVMRRaKiUURRlJhQRDCCSgQVO/bee++9994+nMt5ywoezFJd/fm8uITi3p9n5mbYkcCpO6rVnVu2YEXd+3dRIySuo7pLv4GjGNKg7j3UHTl1l14PajmG9OFBnx7Ird4PumpYEtf1QXc112l0M7OGKXEfeg3guo3iNIyJG92Jaz61mYYxcaNacs1H/8f6j6X5j1WI/mMVIsawRFEzI49SjwOqAJa43emclk8Rp2c7AFZ+LDGyvXE2kmO2Q1Lq17RSd6ND48QIwFVuLNHTOPbEpTOz8ujMpccHGz0AV5mxIo4TpwUeUPj0YwfAVVYs0Tn7VZjnBUA8v+n6CyfERY8FR/DEJj7MQ6oL85vOvfDUAsuVC8s19s5yXuAppOPnvPk4EeSCsehCeBVTwVzHfE6RcFUQa4an8Qw91kpbw2oz4aoc1sSxniO0WAI/J24wriabmEpizZtM79bc+fr4/tUarEpiLabGElJYRsOGjbJfjGDpJCxtmosRLOEnVpqLESzZLYlLg65H1rAkLo2GESwcROwXI1jELcS1Y6OGQSzEVaupZQJLDiLhYtCtFBcbbslYhOueqKllDwtzwVhTq4RFuBh0C3EdEBl0C3OBWNUrEISLvSD+5GLQLYmLoSqfwcUiFuaqzhYDxiJc981lxqqdVsCGbHPcQLBgrtK3rwLt9tWqhblKxxI9hW3267U5ZHhuBrCKzXl4NIJTS5FrmbmMWGIEDZIouOp0/O6boYQ2jxBXWcdu13fzRILuF/2Ku+aGr96uBbhALHo5Z38+XcfXyVRZVx/+Ed513ldDCCCu0rFE0Xlo2mu5TAj8ki0XV0q6ePHilhi+d/15b9ACQGGusg3AFzc+XSMBCPzu89+CNlnB7zfD8t1z4iaLXUvDVT6sGdMOnv5pi47f6r9Qk9YF3xZ0l8S11UfMArlgLMpZM6bamYy6rWnta9q7TrZrzZPgPgoqg3atubY8WK6D8lQXHfb4p/wSK7vFfxmxSsAPQ96AlZ4LxoLNeompdkUDGQVznL5mLr4ar5ESD3PBWHA9fbpbjlT4pq1Bm6H6w9dwfOd69ePouNDYt3S3ULPGZ96S3YqtAW/Tepz1E8bgAANc+xEXhAX36ut1cslcd6rJq81SIvgEe7lmL3kY5iqxVYvOI9isswp22KeMOcrriJlWai5giwHl+yec73Ma9Mbfz+qOJndKz6hLpR5V1uPxavFuTTt0K1XfpbNeO0wKeUaR2IPBN5sMRlqu1eY8bsFmPeIFUpi0CjIGTLvSZY2EGeYSi3VL9Dgeb0I+SQl9MlcZT4TObZKzfmfS5NZSx1GsLQ5r+8Sxp7ERR/1TtDlUn2qNuGXCrZGM5URlLDiEVzDVkje5fdjXdDsm27XpXChBz4XG0UpYcDOMYaxjGc3wtyJxFtu1PohaI71f2K2imqEONcN4nrMZ9TWbMf81wg9z3VNwC26Gr3enY4ObobLqbccFefuz5AKONpVfzQp2y3NoVvrN32GLNl9orA22lTiM+Nqg5CJY1DueOjkwsdtNgAP7gidR2SWVhFqt3o9QwoKHIuiwDcwX+xT/UWztSlvCaqXGmtQBY1GadQmfh6anuE0XlkhhRFs3tGGkd+tuIVhiJN0M+brj0mlAu46lX0bcbizVLbgZrgwl4JhYA+NQa9TJQUetsSJYHscJvAVct7eJKoUbQudxPYmdirqzsYsIojhjoitD01yadH287J+vpZF1/uGt2K4ttinjshQo2C2XMzI2U64X6WY4tyZq99a7wZS3eA3BpNyrUPn1x00Z0uM1ACzilOfg7EN3VmRo8dN16WYYerYw6G9qCOSDCjQ0jQkufRbalt65LVyapaA/2mClxhK3Rxy3rsyavDxDR/DL5sMLFiyYu/7sXps7z8VldPv2Xl6PnjlTwOOuJQuytH7CXpvXCOQWoZrYeHWd4nw2Q+v22OLGnFSG0Nk1PCi0xjgjpVvTGi8hht9F+ARBGq8dtXmtOSLoDm1FhUSHnihkTecESalHkPAaWVhtFbA8jqvQGBmbt8fWkKtNn0Xw9GvAWK6DX9bBVHjzqtyvvcG9a+jXyC5oKoKV/a4YFG7Yij2ofszlgtaA3ZoRwW+pIOH3w0qZFURNh3oNtKsDsAr9LNvMC0pj93H6hTPpX9ocg8FIgTVvcgFYC03jFLBMi6ix0MDAoi8/lh7Cgt2q0VfNrSX0ayhjTa2IW0tKdotNrMq4NbPkILKZW+xdiSoGgshogfh7Ul7FcIEoFevfrPLC3+XWf6y/CEvHZoFQqlts9sQigqjLxFpQCJauakFcsqhKPXH79rGb6bE2B5Qmu0b91zn0WJtN8Wys9tgtIqfjEf2SWw7XKI8gHuKQ0X0eDsQSI44TaGBN6dYN5dlI/eFj9I7f8GWtoUJYOIgkiq6Ds/gw5T7dZDUqTrfscbLbB9eIB7JmEKsUgiii/4uO8ToBfJlhfif5tEGWEsGTMT4Mr6HDa0BBlP5Y88lcnkdkCtLhnyjMM0+Gcn2WzW6xnd/J8zn+LZq4SUeEvUBaA8LCs6Tk1p1AetXt3JoMWexWZSyr3RK6vSUGrRHbmkRUVgCLpP1HW/L4tgl5tO140mdKKFFhrkTUdxta4xleA8DCXC6n/vCYvPJFa9zAWL4m6qNaA8IiqjW73lreWnJrSj0AJYFZpvwq6RZRzjVUGEtB5tX7DdoqCXaL+PXHuEjdYsuvVqva4Sqv6NdabdW4YLeIKsoFYzHGhYPIGBd2izGuVpPaSVgAV7VEsOQgsuUXdosxLuwWxLVMW0WRK5ExLiiIpN4vq2YYVTiIbPmFgii5xRiXimCBqmIcVSS3WMqvdMqz5VcKqzdKeca4UrnVT/ryR6bi2Opuf64TwYJlfl4FLqu2Zxeux5BRXZnisvZ8103NqTtzoziuGa24+wZVRdVK9W7wyNSX1nYeOmrU6JSmjp6KhH5BR+kGvk++Ld0c/X66rPH4SEQeGl+kpq8a33eAumPqK347durWpzm9hrWhUevi1Hd4ZzVC+gGMHY0TYnDOYwAAAABJRU5ErkJggg==".replace(/\+/g,"-").replace(/\//g,"_");DriveClient.prototype.placeholderMimeType="image/png";DriveClient.prototype.libraryMimeType="application/vnd.jgraph.mxlibrary";DriveClient.prototype.newAppHostname="app.diagrams.net";DriveClient.prototype.extension=".drawio";DriveClient.prototype.tokenRefreshInterval=0;DriveClient.prototype.lastTokenRefresh=0;DriveClient.prototype.maxRetries=5;DriveClient.prototype.staleEtagMaxRetries=4;DriveClient.prototype.coolOff=1E3;DriveClient.prototype.mimeTypeCheckCoolOff=6E4;DriveClient.prototype.user=null;DriveClient.prototype.sameWinAuthMode=!1;DriveClient.prototype.sameWinRedirectUrl=null;DriveClient.prototype.setUser=function(m){this.user=m;null==this.user?(this.userId=null,null!=this.tokenRefreshThread&&(window.clearTimeout(this.tokenRefreshThread),this.tokenRefreshThread=null)):this.userId=m.id;this.fireEvent(new mxEventObject("userChanged"))};DriveClient.prototype.setUserId=function(m){this.userId=m;null!=this.user&&this.user.id!=this.userId&&(this.user=null)};DriveClient.prototype.getUser=-function(){return this.user};DriveClient.prototype.getUsersList=function(){var m=[],f=JSON.parse(this.getPersistentToken(!0)),q=null;if(null!=f){null!=f.current&&(q=f.current.userId,m.push(f[q].user),m[0].isCurrent=!0);for(var u in f)"current"!=u&&u!=q&&m.push(f[u].user)}return m};DriveClient.prototype.logout=function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&userId="+this.userId+"&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken();-this.setUser(null);b=null};DriveClient.prototype.execute=function(m){var f=mxUtils.bind(this,function(q){this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(u,x){this.authorize(!1,mxUtils.bind(this,function(){null!=x&&x();m()}),mxUtils.bind(this,function(z){var F=null!=z.message?z.message:mxResources.get("cannotLogin");null!=z&&null!=z.error&&403==z.error.code&&null!=z.error.data&&0<z.error.data.length&&"domainPolicy"==z.error.data[0].reason&&(F=z.error.message);this.logout();this.ui.showError(mxResources.get("error"),-F,mxResources.get("help"),mxUtils.bind(this,function(){this.ui.openLink("https://www.drawio.com/doc/faq/gsuite-authorisation-troubleshoot")}),null,mxResources.get("ok"))}),u)}))});this.authorize(!0,m,f)};DriveClient.prototype.executeRequest=function(m,f,q){try{var u=!0,x=null,z=0;null!=this.requestThread&&window.clearTimeout(this.requestThread);var F=mxUtils.bind(this,function(){try{this.requestThread=null;this.currentRequest=m;null!=x&&window.clearTimeout(x);x=window.setTimeout(mxUtils.bind(this,-function(){u=!1;null!=q&&q({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:F})}),this.ui.timeout);var J=null,H=!1;"string"===typeof m.params?J=m.params:null!=m.params&&(J=JSON.stringify(m.params),H=!0);var D=m.fullUrl||this.GDriveBaseUrl+m.url;H&&(D+=(0<D.indexOf("?")?"&":"?")+"alt=json");var c=new mxXmlRequest(D,J,m.method||"GET");c.setRequestHeaders=mxUtils.bind(this,function(g,l){if(null!=m.headers)for(var n in m.headers)g.setRequestHeader(n,m.headers[n]);else null!=m.contentType?-g.setRequestHeader("Content-Type",m.contentType):H&&g.setRequestHeader("Content-Type","application/json");g.setRequestHeader("Authorization","Bearer "+b)});c.send(mxUtils.bind(this,function(g){try{if(window.clearTimeout(x),u){try{var l=JSON.parse(g.getText())}catch(t){l=null}if(200<=g.getStatus()&&299>=g.getStatus())null!=f&&f(l);else{var n=null!=l&&null!=l.error?null!=l.error.data?l.error.data:l.error.errors:null,r=null!=n&&0<n.length?n[0].reason:null;null==q||null==l||null==l.error||-1!=l.error.code&&+function(){return this.user};DriveClient.prototype.getUsersList=function(){var m=[],g=JSON.parse(this.getPersistentToken(!0)),q=null;if(null!=g){null!=g.current&&(q=g.current.userId,m.push(g[q].user),m[0].isCurrent=!0);for(var u in g)"current"!=u&&u!=q&&m.push(g[u].user)}return m};DriveClient.prototype.logout=function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&userId="+this.userId+"&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken();+this.setUser(null);b=null};DriveClient.prototype.execute=function(m){var g=mxUtils.bind(this,function(q){this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(u,x){this.authorize(!1,mxUtils.bind(this,function(){null!=x&&x();m()}),mxUtils.bind(this,function(z){var F=null!=z.message?z.message:mxResources.get("cannotLogin");null!=z&&null!=z.error&&403==z.error.code&&null!=z.error.data&&0<z.error.data.length&&"domainPolicy"==z.error.data[0].reason&&(F=z.error.message);this.logout();this.ui.showError(mxResources.get("error"),+F,mxResources.get("help"),mxUtils.bind(this,function(){this.ui.openLink("https://www.drawio.com/doc/faq/gsuite-authorisation-troubleshoot")}),null,mxResources.get("ok"))}),u)}))});this.authorize(!0,m,g)};DriveClient.prototype.executeRequest=function(m,g,q){try{var u=!0,x=null,z=0;null!=this.requestThread&&window.clearTimeout(this.requestThread);var F=mxUtils.bind(this,function(){try{this.requestThread=null;this.currentRequest=m;null!=x&&window.clearTimeout(x);x=window.setTimeout(mxUtils.bind(this,+function(){u=!1;null!=q&&q({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:F})}),this.ui.timeout);var J=null,H=!1;"string"===typeof m.params?J=m.params:null!=m.params&&(J=JSON.stringify(m.params),H=!0);var D=m.fullUrl||this.GDriveBaseUrl+m.url;H&&(D+=(0<D.indexOf("?")?"&":"?")+"alt=json");var c=new mxXmlRequest(D,J,m.method||"GET");c.setRequestHeaders=mxUtils.bind(this,function(f,l){if(null!=m.headers)for(var n in m.headers)f.setRequestHeader(n,m.headers[n]);else null!=m.contentType?+f.setRequestHeader("Content-Type",m.contentType):H&&f.setRequestHeader("Content-Type","application/json");f.setRequestHeader("Authorization","Bearer "+b)});c.send(mxUtils.bind(this,function(f){try{if(window.clearTimeout(x),u){try{var l=JSON.parse(f.getText())}catch(t){l=null}if(200<=f.getStatus()&&299>=f.getStatus())null!=g&&g(l);else{var n=null!=l&&null!=l.error?null!=l.error.data?l.error.data:l.error.errors:null,r=null!=n&&0<n.length?n[0].reason:null;null==q||null==l||null==l.error||-1!=l.error.code&&(403!=l.error.code||"domainPolicy"!=r&&"The requested mime type change is forbidden."!=l.error.message)?null!=l&&null!=l.error&&(401==l.error.code||403==l.error.code&&"rateLimitExceeded"!=r)?403==l.error.code&&this.retryAuth||401==l.error.code&&this.retryAuth&&"authError"==r?(null!=q&&q(l),this.retryAuth=!1):(this.retryAuth=!0,this.execute(F)):null!=l&&null!=l.error&&412!=l.error.code&&404!=l.error.code&&400!=l.error.code&&this.currentRequest==m&&z<this.maxRetries?(z++,this.requestThread=window.setTimeout(F,-Math.round(Math.pow(2,z)*(1+.1*(Math.random()-.5))*this.coolOff))):null!=q&&q(l):q(l)}}}catch(t){if(null!=q)q(t);else throw t;}}))}catch(g){if(null!=q)q(g);else throw g;}});null!=b&&this.authCalled?F():this.execute(F)}catch(J){if(null!=q)q(J);else throw J;}};DriveClient.prototype.createAuthWin=function(m){return window.open(m?m:"about:blank","gdauth",["width=525,height=525","top="+(window.screenY+Math.max(window.outerHeight-525,0)/2),"left="+(window.screenX+Math.max(window.outerWidth-525,0)/2),"status=no,resizable=yes,toolbar=no,menubar=no,scrollbars=yes"].join())};-DriveClient.prototype.authorize=function(m,f,q,u,x){this.isExtAuth&&!m?window.parent.driveAuth(mxUtils.bind(this,function(z){this.updateAuthInfo(z,!0,!0,f,q)}),q):(new mxXmlRequest(this.redirectUri+"?getState=1",null,"GET")).send(mxUtils.bind(this,function(z){200<=z.getStatus()&&299>=z.getStatus()?this.authorizeStep2(z.getText(),m,f,q,u,x):null!=q&&q(z)}),q)};DriveClient.prototype.updateAuthInfo=function(m,f,q,u,x){b=m.access_token;delete m.access_token;m.expires=Date.now()+1E3*parseInt(m.expires_in);-m.remember=f;this.resetTokenRefresh(m);this.authCalled=!0;if(q||null==this.user){var z=JSON.stringify(m);this.updateUser(mxUtils.bind(this,function(){var F=JSON.parse(z);this.setPersistentToken(F,!f);null!=u&&u()}),x)}else null!=u&&(this.setPersistentToken(m,!f),u())};DriveClient.prototype.authorizeStep2=function(m,f,q,u,x,z){try{null!=this.ui.stateArg&&null!=this.ui.stateArg.userId&&(this.userId=this.ui.stateArg.userId,null!=this.user&&this.user.id!=this.userId&&(this.user=null));if(null==this.userId){var F=-JSON.parse(this.getPersistentToken(!0));F&&null!=F.current&&(this.userId=F.current.userId)}if(f&&null==this.userId)null!=u&&u();else if(f)(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+m)+"&userId="+this.userId,null,"GET")).send(mxUtils.bind(this,function(H){try{if(200<=H.getStatus()&&299>=H.getStatus()){var D=JSON.parse(H.getText());this.updateAuthInfo(D,!0,!1,q,u)}else 0!=H.getStatus()&&this.logout(),null!=u&&u(H)}catch(c){if(null!=+Math.round(Math.pow(2,z)*(1+.1*(Math.random()-.5))*this.coolOff))):null!=q&&q(l):q(l)}}}catch(t){if(null!=q)q(t);else throw t;}}))}catch(f){if(null!=q)q(f);else throw f;}});null!=b&&this.authCalled?F():this.execute(F)}catch(J){if(null!=q)q(J);else throw J;}};DriveClient.prototype.createAuthWin=function(m){return window.open(m?m:"about:blank","gdauth",["width=525,height=525","top="+(window.screenY+Math.max(window.outerHeight-525,0)/2),"left="+(window.screenX+Math.max(window.outerWidth-525,0)/2),"status=no,resizable=yes,toolbar=no,menubar=no,scrollbars=yes"].join())};+DriveClient.prototype.authorize=function(m,g,q,u,x){this.isExtAuth&&!m?window.parent.driveAuth(mxUtils.bind(this,function(z){this.updateAuthInfo(z,!0,!0,g,q)}),q):(new mxXmlRequest(this.redirectUri+"?getState=1",null,"GET")).send(mxUtils.bind(this,function(z){200<=z.getStatus()&&299>=z.getStatus()?this.authorizeStep2(z.getText(),m,g,q,u,x):null!=q&&q(z)}),q)};DriveClient.prototype.updateAuthInfo=function(m,g,q,u,x){b=m.access_token;delete m.access_token;m.expires=Date.now()+1E3*parseInt(m.expires_in);+m.remember=g;this.resetTokenRefresh(m);this.authCalled=!0;if(q||null==this.user){var z=JSON.stringify(m);this.updateUser(mxUtils.bind(this,function(){var F=JSON.parse(z);this.setPersistentToken(F,!g);null!=u&&u()}),x)}else null!=u&&(this.setPersistentToken(m,!g),u())};DriveClient.prototype.authorizeStep2=function(m,g,q,u,x,z){try{null!=this.ui.stateArg&&null!=this.ui.stateArg.userId&&(this.userId=this.ui.stateArg.userId,null!=this.user&&this.user.id!=this.userId&&(this.user=null));if(null==this.userId){var F=+JSON.parse(this.getPersistentToken(!0));F&&null!=F.current&&(this.userId=F.current.userId)}if(g&&null==this.userId)null!=u&&u();else if(g)(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+m)+"&userId="+this.userId,null,"GET")).send(mxUtils.bind(this,function(H){try{if(200<=H.getStatus()&&299>=H.getStatus()){var D=JSON.parse(H.getText());this.updateAuthInfo(D,!0,!1,q,u)}else 0!=H.getStatus()&&this.logout(),null!=u&&u(H)}catch(c){if(null!=window.console&&console.log("DriveClient.authorizeStep2",c),null!=u)u(c);else throw c;}}),u);else{var J="https://accounts.google.com/o/oauth2/v2/auth?client_id="+this.clientId+"&redirect_uri="+encodeURIComponent(this.redirectUri)+"&response_type=code&include_granted_scopes=true"+(x?"&access_type=offline&prompt=consent%20select_account":"")+"&scope="+encodeURIComponent(this.scopes.join(" "))+"&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+m+(this.sameWinRedirectUrl?"&redirect="+this.sameWinRedirectUrl:""));this.sameWinAuthMode?(window.location.assign(J),z=null):null==z?z=this.createAuthWin(J):z.location=J;null!=z?(window.onGoogleDriveCallback=mxUtils.bind(this,function(H,D){window.onGoogleDriveCallback=null;try{null==H?null!=u&&u({message:mxResources.get("accessDenied")}):this.updateAuthInfo(H,x,!0,q,u)}catch(c){null!=u&&u(c)}finally{null!=D&&D.close()}}),z.focus()):null!=u&&u({message:mxResources.get("allowPopups")})}}catch(H){if(null!=u)u(H);else throw H;-}};DriveClient.prototype.resetTokenRefresh=function(m){null!=this.tokenRefreshThread&&(window.clearTimeout(this.tokenRefreshThread),this.tokenRefreshThread=null);null!=m&&null==m.error&&0<m.expires_in&&(this.tokenRefreshInterval=1E3*parseInt(m.expires_in),this.lastTokenRefresh=Date.now(),this.tokenRefreshThread=window.setTimeout(mxUtils.bind(this,function(){this.authorize(!0,mxUtils.bind(this,function(){}),mxUtils.bind(this,function(){}))}),900*m.expires_in))};DriveClient.prototype.checkToken=function(m){var f=-0<this.lastTokenRefresh;Date.now()-this.lastTokenRefresh>this.tokenRefreshInterval||null==this.tokenRefreshThread?this.execute(mxUtils.bind(this,function(){m();f&&this.fireEvent(new mxEventObject("disconnected"))})):m()};DriveClient.prototype.updateUser=function(m,f){try{var q={Authorization:"Bearer "+b};this.ui.editor.loadUrl("https://www.googleapis.com/oauth2/v2/userinfo?alt=json",mxUtils.bind(this,function(u){try{var x=JSON.parse(u);this.executeRequest({url:"/about"},mxUtils.bind(this,function(z){var F=-mxResources.get("notAvailable"),J=F,H=null;null!=z&&null!=z.user&&(F=z.user.emailAddress,J=z.user.displayName,H=null!=z.user.picture?z.user.picture.url:null);this.setUser(new DrawioUser(x.id,F,J,H,x.locale));this.userId=x.id;null!=m&&m()}),f)}catch(z){null!=f&&f(z)}}),f,null,null,null,null,q)}catch(u){if(null!=f)f(u);else throw u;}};DriveClient.prototype.copyFile=function(m,f,q,u){null!=m&&null!=f&&this.executeRequest({url:"/files/"+m+"/copy?fields="+encodeURIComponent(this.allFields)+"&supportsAllDrives=true&enforceSingleParent=true",-method:"POST",params:{title:f,properties:[{key:"channel",value:Editor.guid()}]}},q,u)};DriveClient.prototype.renameFile=function(m,f,q,u){null!=m&&null!=f&&this.executeRequest(this.createDriveRequest(m,{title:f}),q,u)};DriveClient.prototype.moveFile=function(m,f,q,u){null!=m&&null!=f&&this.executeRequest(this.createDriveRequest(m,{parents:[{kind:"drive#fileLink",id:f}]}),q,u)};DriveClient.prototype.createDriveRequest=function(m,f){return{url:"/files/"+m+"?uploadType=multipart&supportsAllDrives=true",-method:"PUT",contentType:"application/json; charset=UTF-8",params:f}};DriveClient.prototype.getLibrary=function(m,f,q){return this.getFile(m,f,q,!0,!0)};DriveClient.prototype.loadDescriptor=function(m,f,q,u){this.executeRequest({url:"/files/"+m+"?supportsAllDrives=true&fields="+(null!=u?u:this.allFields)},f,q)};DriveClient.prototype.listFiles=function(m,f,q,u,x){this.executeRequest({url:"/files?supportsAllDrives=true&includeItemsFromAllDrives=true&q="+encodeURIComponent("(mimeType contains '"+this.xmlMimeType+-"') "+(m?" and (title contains '"+m+"')":"")+(f?" and (modifiedDate > '"+f.toISOString()+"')":"")+(q?" and ('me' in owners)":""))+"&orderBy=modifiedDate desc,title"},u,x)};DriveClient.prototype.getCustomProperty=function(m,f){m=m.properties;var q=null;if(null!=m)for(var u=0;u<m.length;u++)if(m[u].key==f){q=m[u].value;break}return q};DriveClient.prototype.getFile=function(m,f,q,u,x){u=null!=u?u:!1;x=null!=x?x:!1;null!=urlParams.rev?this.executeRequest({url:"/files/"+m+"/revisions/"+urlParams.rev+"?supportsAllDrives=true"},-mxUtils.bind(this,function(z){z.title=z.originalFilename;z.headRevisionId=z.id;z.id=m;this.getXmlFile(z,f,q)}),q):this.loadDescriptor(m,mxUtils.bind(this,function(z){try{if(null!=this.user){var F=/\.png$/i.test(z.title);/\.v(dx|sdx?)$/i.test(z.title)||/\.gliffy$/i.test(z.title)||!Editor.useCanvasForExport&&F?this.ui.convertFile(z.downloadUrl,z.title,z.mimeType,this.extension,f,q,null,{Authorization:"Bearer "+b}):u||x||z.mimeType==this.libraryMimeType||z.mimeType==this.xmlMimeType?this.getXmlFile(z,-f,q,!0,x):this.getXmlFile(z,f,q)}else q({message:mxResources.get("loggedOut")})}catch(J){if(null!=q)q(J);else throw J;}}),q)};DriveClient.prototype.isGoogleRealtimeMimeType=function(m){return null!=m&&"application/vnd.jgraph.mxfile."==m.substring(0,30)};DriveClient.prototype.getXmlFile=function(m,f,q,u,x){try{var z={Authorization:"Bearer "+b},F=m.downloadUrl;if(null==F)null!=q&&q({message:mxResources.get("exportOptionsDisabledDetails")});else{var J=0,H=mxUtils.bind(this,function(){this.ui.editor.loadUrl(F,-mxUtils.bind(this,function(D){try{if(null==D)q({message:mxResources.get("invalidOrMissingFile")});else if(m.mimeType==this.libraryMimeType||x)m.mimeType!=this.libraryMimeType||x?f(new DriveLibrary(this.ui,D,m)):q({message:mxResources.get("notADiagramFile")});else{var c=!1;if(/\.png$/i.test(m.title)){var g=D.lastIndexOf(",");if(0<g){var l=this.ui.extractGraphModelFromPng(D);if(null!=l&&0<l.length)D=l;else try{l=D.substring(g+1);var n=window.atob?atob(l):Base64.decode(l),r=this.ui.editor.extractGraphModel(mxUtils.parseXml(n).documentElement,-!0);null==r||0<r.getElementsByTagName("parsererror").length?c=!0:D=n}catch(t){c=!0}}}else/\.pdf$/i.test(m.title)?(l=Editor.extractGraphModelFromPdf(D),null!=l&&0<l.length&&(c=!0,D=l)):"data:image/png;base64,PG14ZmlsZS"==D.substring(0,32)&&(n=D.substring(22),D=window.atob&&!mxClient.IS_SF?atob(n):Base64.decode(n));Graph.fileSupport&&this.ui.isGliffyData(D,F)?this.ui.importGliffy(D,mxUtils.bind(this,function(t){try{f(new LocalFile(this.ui,t,m.title+this.extension,!0))}catch(v){if(null!=q)q(v);else throw v;-}}),mxUtils.bind(this,function(t){null!=q&&q({message:mxResources.get("errorLoadingFile")})}),m.title):f(c?new LocalFile(this.ui,D,m.title,!0):new DriveFile(this.ui,D,m))}}catch(t){if(null!=q)q(t);else throw t;}}),mxUtils.bind(this,function(D,c){if(J<this.maxRetries&&null!=c&&403==c.getStatus())J++,window.setTimeout(H,2*J*this.coolOff*(1+.1*(Math.random()-.5)));else if(null!=q)q(D);else throw D;}),null!=m.mimeType&&"image/"==m.mimeType.substring(0,6)&&"image/svg"!=m.mimeType.substring(0,9)||/\.png$/i.test(m.title)||-/\.jpe?g$/i.test(m.title)||/\.pdf$/i.test(m.title),null,null,null,z)});H()}}catch(D){if(null!=q)q(D);else throw D;}};DriveClient.prototype.saveFile=function(m,f,q,u,x,z,F,J,H){try{var D=0;m.saveLevel=1;var c=mxUtils.bind(this,function(R){if(null!=u)u(R);else throw R;}),g=mxUtils.bind(this,function(R){c(R);try{EditorUi.logError(R.message,null,null,null,R)}catch(M){}});if(m.isEditable()&&null!=m.desc){var l=Date.now(),n=m.desc.etag,r=m.desc.modifiedDate,t=m.desc.headRevisionId,v=Editor.useCanvasForExport&&-/(\.png)$/i.test(m.getTitle());z=null!=z?z:!1;var B=null,E=!1,K={mimeType:m.desc.mimeType,title:m.getTitle()};if(this.isGoogleRealtimeMimeType(K.mimeType))K.mimeType=this.xmlMimeType,B=m.desc,E=f=!0;else if("application/octet-stream"==K.mimeType||"1"==urlParams["override-mime"]&&K.mimeType!=this.xmlMimeType)K.mimeType=this.xmlMimeType;var C=mxUtils.bind(this,function(R,M,O){try{m.saveLevel=3;var U=m.getData(),T=null,V=null;m.constructor==DriveFile&&(null==J&&(J=[]),null==m.getChannelId()&&J.push({key:"channel",+}};DriveClient.prototype.resetTokenRefresh=function(m){null!=this.tokenRefreshThread&&(window.clearTimeout(this.tokenRefreshThread),this.tokenRefreshThread=null);null!=m&&null==m.error&&0<m.expires_in&&(this.tokenRefreshInterval=1E3*parseInt(m.expires_in),this.lastTokenRefresh=Date.now(),this.tokenRefreshThread=window.setTimeout(mxUtils.bind(this,function(){this.authorize(!0,mxUtils.bind(this,function(){}),mxUtils.bind(this,function(){}))}),900*m.expires_in))};DriveClient.prototype.checkToken=function(m){var g=+0<this.lastTokenRefresh;Date.now()-this.lastTokenRefresh>this.tokenRefreshInterval||null==this.tokenRefreshThread?this.execute(mxUtils.bind(this,function(){m();g&&this.fireEvent(new mxEventObject("disconnected"))})):m()};DriveClient.prototype.updateUser=function(m,g){try{var q={Authorization:"Bearer "+b};this.ui.editor.loadUrl("https://www.googleapis.com/oauth2/v2/userinfo?alt=json",mxUtils.bind(this,function(u){try{var x=JSON.parse(u);this.executeRequest({url:"/about"},mxUtils.bind(this,function(z){var F=+mxResources.get("notAvailable"),J=F,H=null;null!=z&&null!=z.user&&(F=z.user.emailAddress,J=z.user.displayName,H=null!=z.user.picture?z.user.picture.url:null);this.setUser(new DrawioUser(x.id,F,J,H,x.locale));this.userId=x.id;null!=m&&m()}),g)}catch(z){null!=g&&g(z)}}),g,null,null,null,null,q)}catch(u){if(null!=g)g(u);else throw u;}};DriveClient.prototype.copyFile=function(m,g,q,u){null!=m&&null!=g&&this.executeRequest({url:"/files/"+m+"/copy?fields="+encodeURIComponent(this.allFields)+"&supportsAllDrives=true&enforceSingleParent=true",+method:"POST",params:{title:g,properties:[{key:"channel",value:Editor.guid()}]}},q,u)};DriveClient.prototype.renameFile=function(m,g,q,u){null!=m&&null!=g&&this.executeRequest(this.createDriveRequest(m,{title:g}),q,u)};DriveClient.prototype.moveFile=function(m,g,q,u){null!=m&&null!=g&&this.executeRequest(this.createDriveRequest(m,{parents:[{kind:"drive#fileLink",id:g}]}),q,u)};DriveClient.prototype.createDriveRequest=function(m,g){return{url:"/files/"+m+"?uploadType=multipart&supportsAllDrives=true",+method:"PUT",contentType:"application/json; charset=UTF-8",params:g}};DriveClient.prototype.getLibrary=function(m,g,q){return this.getFile(m,g,q,!0,!0)};DriveClient.prototype.loadDescriptor=function(m,g,q,u){this.executeRequest({url:"/files/"+m+"?supportsAllDrives=true&fields="+(null!=u?u:this.allFields)},g,q)};DriveClient.prototype.listFiles=function(m,g,q,u,x){this.executeRequest({url:"/files?supportsAllDrives=true&includeItemsFromAllDrives=true&q="+encodeURIComponent("(mimeType contains '"+this.xmlMimeType++"') "+(m?" and (title contains '"+m+"')":"")+(g?" and (modifiedDate > '"+g.toISOString()+"')":"")+(q?" and ('me' in owners)":""))+"&orderBy=modifiedDate desc,title"},u,x)};DriveClient.prototype.getCustomProperty=function(m,g){m=m.properties;var q=null;if(null!=m)for(var u=0;u<m.length;u++)if(m[u].key==g){q=m[u].value;break}return q};DriveClient.prototype.getFile=function(m,g,q,u,x){u=null!=u?u:!1;x=null!=x?x:!1;null!=urlParams.rev?this.executeRequest({url:"/files/"+m+"/revisions/"+urlParams.rev+"?supportsAllDrives=true"},+mxUtils.bind(this,function(z){z.title=z.originalFilename;z.headRevisionId=z.id;z.id=m;this.getXmlFile(z,g,q)}),q):this.loadDescriptor(m,mxUtils.bind(this,function(z){try{if(null!=this.user){var F=/\.png$/i.test(z.title);/\.v(dx|sdx?)$/i.test(z.title)||/\.gliffy$/i.test(z.title)||!Editor.useCanvasForExport&&F?this.ui.convertFile(z.downloadUrl,z.title,z.mimeType,this.extension,g,q,null,{Authorization:"Bearer "+b}):u||x||z.mimeType==this.libraryMimeType||z.mimeType==this.xmlMimeType?this.getXmlFile(z,+g,q,!0,x):this.getXmlFile(z,g,q)}else q({message:mxResources.get("loggedOut")})}catch(J){if(null!=q)q(J);else throw J;}}),q)};DriveClient.prototype.isGoogleRealtimeMimeType=function(m){return null!=m&&"application/vnd.jgraph.mxfile."==m.substring(0,30)};DriveClient.prototype.getXmlFile=function(m,g,q,u,x){try{var z={Authorization:"Bearer "+b},F=m.downloadUrl;if(null==F)null!=q&&q({message:mxResources.get("exportOptionsDisabledDetails")});else{var J=0,H=mxUtils.bind(this,function(){this.ui.editor.loadUrl(F,+mxUtils.bind(this,function(D){try{if(null==D)q({message:mxResources.get("invalidOrMissingFile")});else if(m.mimeType==this.libraryMimeType||x)m.mimeType!=this.libraryMimeType||x?g(new DriveLibrary(this.ui,D,m)):q({message:mxResources.get("notADiagramFile")});else{var c=!1;if(/\.png$/i.test(m.title)){var f=D.lastIndexOf(",");if(0<f){var l=this.ui.extractGraphModelFromPng(D);if(null!=l&&0<l.length)D=l;else try{l=D.substring(f+1);var n=window.atob?atob(l):Base64.decode(l),r=this.ui.editor.extractGraphModel(mxUtils.parseXml(n).documentElement,+!0);null==r||0<r.getElementsByTagName("parsererror").length?c=!0:D=n}catch(t){c=!0}}}else/\.pdf$/i.test(m.title)?(l=Editor.extractGraphModelFromPdf(D),null!=l&&0<l.length&&(c=!0,D=l)):"data:image/png;base64,PG14ZmlsZS"==D.substring(0,32)&&(n=D.substring(22),D=window.atob&&!mxClient.IS_SF?atob(n):Base64.decode(n));Graph.fileSupport&&this.ui.isGliffyData(D,F)?this.ui.importGliffy(D,mxUtils.bind(this,function(t){try{g(new LocalFile(this.ui,t,m.title+this.extension,!0))}catch(v){if(null!=q)q(v);else throw v;+}}),mxUtils.bind(this,function(t){null!=q&&q({message:mxResources.get("errorLoadingFile")})}),m.title):g(c?new LocalFile(this.ui,D,m.title,!0):new DriveFile(this.ui,D,m))}}catch(t){if(null!=q)q(t);else throw t;}}),mxUtils.bind(this,function(D,c){if(J<this.maxRetries&&null!=c&&403==c.getStatus())J++,window.setTimeout(H,2*J*this.coolOff*(1+.1*(Math.random()-.5)));else if(null!=q)q(D);else throw D;}),null!=m.mimeType&&"image/"==m.mimeType.substring(0,6)&&"image/svg"!=m.mimeType.substring(0,9)||/\.png$/i.test(m.title)||+/\.jpe?g$/i.test(m.title)||/\.pdf$/i.test(m.title),null,null,null,z)});H()}}catch(D){if(null!=q)q(D);else throw D;}};DriveClient.prototype.saveFile=function(m,g,q,u,x,z,F,J,H){try{var D=0;m.saveLevel=1;var c=mxUtils.bind(this,function(R){if(null!=u)u(R);else throw R;}),f=mxUtils.bind(this,function(R){c(R);try{EditorUi.logError(R.message,null,null,null,R)}catch(M){}});if(m.isEditable()&&null!=m.desc){var l=Date.now(),n=m.desc.etag,r=m.desc.modifiedDate,t=m.desc.headRevisionId,v=Editor.useCanvasForExport&&+/(\.png)$/i.test(m.getTitle());z=null!=z?z:!1;var B=null,E=!1,K={mimeType:m.desc.mimeType,title:m.getTitle()};if(this.isGoogleRealtimeMimeType(K.mimeType))K.mimeType=this.xmlMimeType,B=m.desc,E=g=!0;else if("application/octet-stream"==K.mimeType||"1"==urlParams["override-mime"]&&K.mimeType!=this.xmlMimeType)K.mimeType=this.xmlMimeType;var C=mxUtils.bind(this,function(R,M,O){try{m.saveLevel=3;var U=m.getData(),T=null,V=null;m.constructor==DriveFile&&(null==J&&(J=[]),null==m.getChannelId()&&J.push({key:"channel",value:Editor.guid(32)}),null==m.getChannelKey()&&J.push({key:"key",value:Editor.guid(32)}),H=null!=H?H:Editor.guid(32),J.push({key:"secret",value:H}),V=this.ui.getPagesForXml(U,!0),T=this.ui.getHashValueForPages(V),J.push({key:"checksum",value:H+":"+T}));O||(null!=R||z||(R=this.placeholderThumbnail,M=this.placeholderMimeType),null!=R&&null!=M&&(K.thumbnail={image:R,mimeType:M}));var fa=mxUtils.bind(this,function(p){try{if(m.saveDelay=Date.now()-l,m.saveLevel=null,q(p,U,V,T),null!=B){this.executeRequest({url:"/files/"+-B.id+"/revisions/"+B.headRevisionId+"?supportsAllDrives=true"},mxUtils.bind(this,mxUtils.bind(this,function(A){A.pinned=!0;this.executeRequest({url:"/files/"+B.id+"/revisions/"+B.headRevisionId,method:"PUT",params:A})})));try{EditorUi.logEvent({category:m.convertedFrom+"-CONVERT-FILE-"+m.getHash(),action:"from_"+B.id+"."+B.headRevisionId+"-to_"+m.desc.id+"."+m.desc.headRevisionId,label:null!=this.user?"user_"+this.user.id:"nouser"+(null!=m.sync?"-client_"+m.sync.clientId:"nosync")})}catch(A){}}}catch(A){g(A)}}),+B.id+"/revisions/"+B.headRevisionId+"?supportsAllDrives=true"},mxUtils.bind(this,mxUtils.bind(this,function(A){A.pinned=!0;this.executeRequest({url:"/files/"+B.id+"/revisions/"+B.headRevisionId,method:"PUT",params:A})})));try{EditorUi.logEvent({category:m.convertedFrom+"-CONVERT-FILE-"+m.getHash(),action:"from_"+B.id+"."+B.headRevisionId+"-to_"+m.desc.id+"."+m.desc.headRevisionId,label:null!=this.user?"user_"+this.user.id:"nouser"+(null!=m.sync?"-client_"+m.sync.clientId:"nosync")})}catch(A){}}}catch(A){f(A)}}),y=mxUtils.bind(this,function(p,A){m.saveLevel=4;try{null!=J&&(K.properties=J);var G=F||m.constructor!=DriveFile||"manual"!=DrawioFile.SYNC&&"auto"!=DrawioFile.SYNC?null:m.getCurrentEtag(),I=mxUtils.bind(this,function(Q){m.saveLevel=5;try{var ba=m.desc.mimeType!=this.xmlMimeType&&m.desc.mimeType!=this.mimeType&&m.desc.mimeType!=this.libraryMimeType,W=!0,Y=null;try{Y=window.setTimeout(mxUtils.bind(this,function(){W=!1;c({code:App.ERROR_TIMEOUT})}),5*this.ui.timeout)}catch(X){}this.executeRequest(this.createUploadRequest(m.getId(),-K,p,f||Q||ba,A,Q?null:G,E),mxUtils.bind(this,function(X){window.clearTimeout(Y);if(W){var ca=null!=X?(new Date(X.modifiedDate)).getTime()-(new Date(r)).getTime():0;if(0>=ca||n==X.etag||f&&t==X.headRevisionId){var S=[];null==X?S.push("Empty response"):(0>=ca&&S.push("Invalid modified time"),n==X.etag&&S.push("Stale etag"),f&&t==X.headRevisionId&&S.push("Stale revision"),G=X.etag);0==S.length&&S.push(mxResources.get("unknownError"));ca=S.join(", ");if(D<this.staleEtagMaxRetries)D++,S=Math.round(Math.pow(2,+K,p,g||Q||ba,A,Q?null:G,E),mxUtils.bind(this,function(X){window.clearTimeout(Y);if(W){var ca=null!=X?(new Date(X.modifiedDate)).getTime()-(new Date(r)).getTime():0;if(0>=ca||n==X.etag||g&&t==X.headRevisionId){var S=[];null==X?S.push("Empty response"):(0>=ca&&S.push("Invalid modified time"),n==X.etag&&S.push("Stale etag"),g&&t==X.headRevisionId&&S.push("Stale revision"),G=X.etag);0==S.length&&S.push(mxResources.get("unknownError"));ca=S.join(", ");if(D<this.staleEtagMaxRetries)D++,S=Math.round(Math.pow(2,D)*this.coolOff*(1+.1*(Math.random()-.5))),window.setTimeout(I,S),"1"==urlParams.test&&EditorUi.debug("DriveClient: Invalid response","retry",D,"delay",S,"rev",null!=X?X.headRevisionId:"null","errors",ca);else{m.saveLevel=12;c({message:mxResources.get("error")+": "+ca},X);try{EditorUi.logError("Saving to Google Drive failed",null,"id-"+m.desc.id+"-from-"+t+"."+r+"-"+this.ui.hashValue(n)+"-to-"+X.headRevisionId+"."+X.modifiedDate+"-"+this.ui.hashValue(X.etag)+(0<ca.length?"-errors-"+ca:""),"user-"+(null!=this.user?this.user.id:"nouser")+(null!=m.sync?"-client_"+m.sync.clientId:"-nosync")+"-retries-"+D+"-delay-"+(Date.now()-l))}catch(Z){}}}else fa(X)}}),mxUtils.bind(this,function(X){window.clearTimeout(Y);if(W){m.saveLevel=6;try{m.isConflict(X)?this.executeRequest({url:"/files/"+m.getId()+"?supportsAllDrives=true&fields="+this.catchupFields},mxUtils.bind(this,function(ca){m.saveLevel=7;try{if(null!=ca&&ca.etag==G)if(D<this.staleEtagMaxRetries){D++;var S=Math.round(2*D*this.coolOff*(1+.1*(Math.random()-.5)));window.setTimeout(L,S);"1"==urlParams.test&&EditorUi.debug("DriveClient: Stale Etag Detected","retry",D,"delay",S)}else{L(!0);try{EditorUi.logEvent({category:"STALE-ETAG-SAVE-FILE-"+m.getHash(),action:"rev_"+m.desc.headRevisionId+"-mod_"+m.desc.modifiedDate+"-size_"+m.getSize()+"-mime_"+m.desc.mimeType+(this.ui.editor.autosave?"":"-nosave")+(m.isAutosave()?"":"-noauto")+(m.changeListenerEnabled?"":"-nolisten")+(m.inConflictState?"-conflict":"")+(m.invalidChecksum?"-invalid":""),label:(null!=-this.user?"user_"+this.user.id:"nouser")+(null!=m.sync?"-client_"+m.sync.clientId:"-nosync")})}catch(Z){}}else"1"==urlParams.test&&ca.headRevisionId==t&&EditorUi.debug("DriveClient: Remote Etag Changed","local",G,"remote",ca.etag,"rev",m.desc.headRevisionId,"response",[ca],"file",[m]),c(X,ca)}catch(Z){g(Z)}}),mxUtils.bind(this,function(){c(X)})):c(X)}catch(ca){g(ca)}}}))}catch(X){g(X)}}),L=mxUtils.bind(this,function(Q){m.saveLevel=9;if(Q||null==G)I(Q);else{var ba=!0,W=null;try{W=window.setTimeout(mxUtils.bind(this,-function(){ba=!1;c({code:App.ERROR_TIMEOUT})}),3*this.ui.timeout)}catch(Y){}this.executeRequest({url:"/files/"+m.getId()+"?supportsAllDrives=true&fields="+this.catchupFields},mxUtils.bind(this,function(Y){window.clearTimeout(W);if(ba){m.saveLevel=10;try{null!=Y&&Y.headRevisionId==t?("1"==urlParams.test&&G!=Y.etag&&EditorUi.debug("DriveClient: Preflight Etag Update","from",G,"to",Y.etag,"rev",m.desc.headRevisionId,"response",[Y],"file",[m]),G=Y.etag,I(Q)):c({error:{code:412}},Y)}catch(X){g(X)}}}),-mxUtils.bind(this,function(Y){window.clearTimeout(W);ba&&(m.saveLevel=11,c(Y))}))}});if(v&&null==R){m.saveLevel=8;var P=new Image;P.onload=mxUtils.bind(this,function(){try{var Q=this.thumbnailWidth/P.width,ba=document.createElement("canvas");ba.width=this.thumbnailWidth;ba.height=Math.floor(P.height*Q);ba.getContext("2d").drawImage(P,0,0,ba.width,ba.height);var W=ba.toDataURL();W=W.substring(W.indexOf(",")+1).replace(/\+/g,"-").replace(/\//g,"_");K.thumbnail={image:W,mimeType:"image/png"};L(!1)}catch(Y){try{L(!1)}catch(X){g(X)}}});-P.src="data:image/png;base64,"+p}else L(!1)}catch(Q){g(Q)}});if(v){var d=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(p){y(p,!0)}),c,this.ui.getCurrentFile()!=m?U:null,d.scale,d.border)}else y(U,!1)}catch(p){g(p)}});try{m.saveLevel=2,(z||v||m.constructor==DriveLibrary||!this.enableThumbnails||"0"==urlParams.thumb||null!=K.mimeType&&"application/vnd.jgraph.mxfile"!=K.mimeType.substring(0,29)||!this.ui.getThumbnail(this.thumbnailWidth,mxUtils.bind(this,-function(R){try{var M=null;try{null!=R&&(M=R.toDataURL("image/png")),null!=M&&(M=M.length>this.maxThumbnailSize?null:M.substring(M.indexOf(",")+1).replace(/\+/g,"-").replace(/\//g,"_"))}catch(O){M=null}C(M,"image/png")}catch(O){g(O)}}),20))&&C(null,null,m.constructor!=DriveLibrary)}catch(R){g(R)}}else this.ui.editor.graph.reset(),c({message:mxResources.get("readOnly")})}catch(R){g(R)}};DriveClient.prototype.insertFile=function(m,f,q,u,x,z,F){z=null!=z?z:this.xmlMimeType;m={mimeType:z,title:m};null!=-q&&(m.parents=[{kind:"drive#fileLink",id:q}]);this.executeRequest(this.createUploadRequest(null,m,f,!1,F),mxUtils.bind(this,function(J){z==this.libraryMimeType?u(new DriveLibrary(this.ui,f,J)):0==J?null!=x&&x({message:mxResources.get("errorSavingFile")}):u(new DriveFile(this.ui,f,J))}),x)};DriveClient.prototype.createUploadRequest=function(m,f,q,u,x,z,F){x=null!=x?x:!1;var J={"Content-Type":'multipart/mixed; boundary="-------314159265358979323846"'};null!=z&&(J["If-Match"]=z);m={fullUrl:"https://content.googleapis.com/upload/drive/v2/files"+-(null!=m?"/"+m:"")+"?uploadType=multipart&supportsAllDrives=true&enforceSingleParent=true&fields="+this.allFields,method:null!=m?"PUT":"POST",headers:J,params:"\r\n---------314159265358979323846\r\nContent-Type: application/json\r\n\r\n"+JSON.stringify(f)+"\r\n---------314159265358979323846\r\nContent-Type: application/octect-stream\r\nContent-Transfer-Encoding: base64\r\n\r\n"+(null!=q?x?q:window.btoa?Graph.base64EncodeUnicode(q):Base64.encode(q):"")+"\r\n---------314159265358979323846--"};u||(m.fullUrl+=-"&newRevision=false");F&&(m.fullUrl+="&pinned=true");return m};DriveClient.prototype.createLinkPicker=function(){var m=k.linkPicker;if(null==m||k.linkPickerToken!=b){k.linkPickerToken=b;m=(new google.picker.DocsView(google.picker.ViewId.FOLDERS)).setParent("root").setIncludeFolders(!0).setSelectFolderEnabled(!0);var f=(new google.picker.DocsView).setIncludeFolders(!0).setSelectFolderEnabled(!0),q=(new google.picker.DocsView).setIncludeFolders(!0).setEnableDrives(!0).setSelectFolderEnabled(!0);m=(new google.picker.PickerBuilder).setAppId(this.appId).setLocale(mxLanguage).setOAuthToken(k.linkPickerToken).enableFeature(google.picker.Feature.SUPPORT_DRIVES).addView(m).addView(f).addView(q).addView(google.picker.ViewId.RECENTLY_PICKED)}return m};-DriveClient.prototype.pickFile=function(m,f,q){this.filePickerCallback=null!=m?m:mxUtils.bind(this,function(u){this.ui.loadFile("G"+u)});this.filePicked=mxUtils.bind(this,function(u){u.action==google.picker.Action.PICKED&&this.filePickerCallback(u.docs[0].id,u.docs[0])});this.ui.spinner.spin(document.body,mxResources.get("authorizing"))&&this.execute(mxUtils.bind(this,function(){try{this.ui.spinner.stop();var u=f?"genericPicker":"filePicker",x=mxUtils.bind(this,function(c){"picker modal-dialog-bg picker-dialog-bg"==-mxEvent.getSource(c).className&&(mxEvent.removeListener(document,"click",x),this[u].setVisible(!1),q&&q())});if(null==k[u]||k[u+"Token"]!=b){k[u+"Token"]=b;var z=(new google.picker.DocsView(google.picker.ViewId.FOLDERS)).setParent("root").setIncludeFolders(!0),F=(new google.picker.DocsView).setIncludeFolders(!0),J=(new google.picker.DocsView).setEnableDrives(!0).setIncludeFolders(!0),H=(new google.picker.DocsUploadView).setIncludeFolders(!0);f?(z.setMimeTypes("*/*"),F.setMimeTypes("*/*"),J.setMimeTypes("*/*")):+this.user?"user_"+this.user.id:"nouser")+(null!=m.sync?"-client_"+m.sync.clientId:"-nosync")})}catch(Z){}}else"1"==urlParams.test&&ca.headRevisionId==t&&EditorUi.debug("DriveClient: Remote Etag Changed","local",G,"remote",ca.etag,"rev",m.desc.headRevisionId,"response",[ca],"file",[m]),c(X,ca)}catch(Z){f(Z)}}),mxUtils.bind(this,function(){c(X)})):c(X)}catch(ca){f(ca)}}}))}catch(X){f(X)}}),L=mxUtils.bind(this,function(Q){m.saveLevel=9;if(Q||null==G)I(Q);else{var ba=!0,W=null;try{W=window.setTimeout(mxUtils.bind(this,+function(){ba=!1;c({code:App.ERROR_TIMEOUT})}),3*this.ui.timeout)}catch(Y){}this.executeRequest({url:"/files/"+m.getId()+"?supportsAllDrives=true&fields="+this.catchupFields},mxUtils.bind(this,function(Y){window.clearTimeout(W);if(ba){m.saveLevel=10;try{null!=Y&&Y.headRevisionId==t?("1"==urlParams.test&&G!=Y.etag&&EditorUi.debug("DriveClient: Preflight Etag Update","from",G,"to",Y.etag,"rev",m.desc.headRevisionId,"response",[Y],"file",[m]),G=Y.etag,I(Q)):c({error:{code:412}},Y)}catch(X){f(X)}}}),+mxUtils.bind(this,function(Y){window.clearTimeout(W);ba&&(m.saveLevel=11,c(Y))}))}});if(v&&null==R){m.saveLevel=8;var P=new Image;P.onload=mxUtils.bind(this,function(){try{var Q=this.thumbnailWidth/P.width,ba=document.createElement("canvas");ba.width=this.thumbnailWidth;ba.height=Math.floor(P.height*Q);ba.getContext("2d").drawImage(P,0,0,ba.width,ba.height);var W=ba.toDataURL();W=W.substring(W.indexOf(",")+1).replace(/\+/g,"-").replace(/\//g,"_");K.thumbnail={image:W,mimeType:"image/png"};L(!1)}catch(Y){try{L(!1)}catch(X){f(X)}}});+P.src="data:image/png;base64,"+p}else L(!1)}catch(Q){f(Q)}});if(v){var d=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(p){y(p,!0)}),c,this.ui.getCurrentFile()!=m?U:null,d.scale,d.border)}else y(U,!1)}catch(p){f(p)}});try{m.saveLevel=2,(z||v||m.constructor==DriveLibrary||!this.enableThumbnails||"0"==urlParams.thumb||null!=K.mimeType&&"application/vnd.jgraph.mxfile"!=K.mimeType.substring(0,29)||!this.ui.getThumbnail(this.thumbnailWidth,mxUtils.bind(this,+function(R){try{var M=null;try{null!=R&&(M=R.toDataURL("image/png")),null!=M&&(M=M.length>this.maxThumbnailSize?null:M.substring(M.indexOf(",")+1).replace(/\+/g,"-").replace(/\//g,"_"))}catch(O){M=null}C(M,"image/png")}catch(O){f(O)}}),20))&&C(null,null,m.constructor!=DriveLibrary)}catch(R){f(R)}}else this.ui.editor.graph.reset(),c({message:mxResources.get("readOnly")})}catch(R){f(R)}};DriveClient.prototype.insertFile=function(m,g,q,u,x,z,F){z=null!=z?z:this.xmlMimeType;m={mimeType:z,title:m};null!=+q&&(m.parents=[{kind:"drive#fileLink",id:q}]);this.executeRequest(this.createUploadRequest(null,m,g,!1,F),mxUtils.bind(this,function(J){z==this.libraryMimeType?u(new DriveLibrary(this.ui,g,J)):0==J?null!=x&&x({message:mxResources.get("errorSavingFile")}):u(new DriveFile(this.ui,g,J))}),x)};DriveClient.prototype.createUploadRequest=function(m,g,q,u,x,z,F){x=null!=x?x:!1;var J={"Content-Type":'multipart/mixed; boundary="-------314159265358979323846"'};null!=z&&(J["If-Match"]=z);m={fullUrl:"https://content.googleapis.com/upload/drive/v2/files"++(null!=m?"/"+m:"")+"?uploadType=multipart&supportsAllDrives=true&enforceSingleParent=true&fields="+this.allFields,method:null!=m?"PUT":"POST",headers:J,params:"\r\n---------314159265358979323846\r\nContent-Type: application/json\r\n\r\n"+JSON.stringify(g)+"\r\n---------314159265358979323846\r\nContent-Type: application/octect-stream\r\nContent-Transfer-Encoding: base64\r\n\r\n"+(null!=q?x?q:window.btoa?Graph.base64EncodeUnicode(q):Base64.encode(q):"")+"\r\n---------314159265358979323846--"};u||(m.fullUrl+=+"&newRevision=false");F&&(m.fullUrl+="&pinned=true");return m};DriveClient.prototype.createLinkPicker=function(){var m=k.linkPicker;if(null==m||k.linkPickerToken!=b){k.linkPickerToken=b;m=(new google.picker.DocsView(google.picker.ViewId.FOLDERS)).setParent("root").setIncludeFolders(!0).setSelectFolderEnabled(!0);var g=(new google.picker.DocsView).setIncludeFolders(!0).setSelectFolderEnabled(!0),q=(new google.picker.DocsView).setIncludeFolders(!0).setEnableDrives(!0).setSelectFolderEnabled(!0);m=(new google.picker.PickerBuilder).setAppId(this.appId).setLocale(mxLanguage).setOAuthToken(k.linkPickerToken).enableFeature(google.picker.Feature.SUPPORT_DRIVES).addView(m).addView(g).addView(q).addView(google.picker.ViewId.RECENTLY_PICKED)}return m};+DriveClient.prototype.pickFile=function(m,g,q){this.filePickerCallback=null!=m?m:mxUtils.bind(this,function(u){this.ui.loadFile("G"+u)});this.filePicked=mxUtils.bind(this,function(u){u.action==google.picker.Action.PICKED&&this.filePickerCallback(u.docs[0].id,u.docs[0])});this.ui.spinner.spin(document.body,mxResources.get("authorizing"))&&this.execute(mxUtils.bind(this,function(){try{this.ui.spinner.stop();var u=g?"genericPicker":"filePicker",x=mxUtils.bind(this,function(c){"picker modal-dialog-bg picker-dialog-bg"==+mxEvent.getSource(c).className&&(mxEvent.removeListener(document,"click",x),this[u].setVisible(!1),q&&q())});if(null==k[u]||k[u+"Token"]!=b){k[u+"Token"]=b;var z=(new google.picker.DocsView(google.picker.ViewId.FOLDERS)).setParent("root").setIncludeFolders(!0),F=(new google.picker.DocsView).setIncludeFolders(!0),J=(new google.picker.DocsView).setEnableDrives(!0).setIncludeFolders(!0),H=(new google.picker.DocsUploadView).setIncludeFolders(!0);g?(z.setMimeTypes("*/*"),F.setMimeTypes("*/*"),J.setMimeTypes("*/*")):(z.setMimeTypes(this.mimeTypes),F.setMimeTypes(this.mimeTypes),J.setMimeTypes(this.mimeTypes));k[u]=(new google.picker.PickerBuilder).setOAuthToken(k[u+"Token"]).setLocale(mxLanguage).setAppId(this.appId).enableFeature(google.picker.Feature.SUPPORT_DRIVES).addView(z).addView(F).addView(J).addView(google.picker.ViewId.RECENTLY_PICKED).addView(H);if(urlParams.gPickerSize){var D=urlParams.gPickerSize.split(",");k[u]=k[u].setSize(D[0],D[1])}urlParams.topBaseUrl&&(k[u]=k[u].setOrigin(decodeURIComponent(urlParams.topBaseUrl)));-k[u]=k[u].setCallback(mxUtils.bind(this,function(c){if(c.action==google.picker.Action.PICKED||c.action==google.picker.Action.CANCEL)mxEvent.removeListener(document,"click",x),q&&c.action==google.picker.Action.CANCEL&&q();c.action==google.picker.Action.PICKED&&this.filePicked(c)})).build()}mxEvent.addListener(document,"click",x);k[u].setVisible(!0)}catch(c){this.ui.spinner.stop(),this.ui.handleError(c)}}))};DriveClient.prototype.pickFolder=function(m,f){this.folderPickerCallback=m;var q=mxUtils.bind(this,+k[u]=k[u].setCallback(mxUtils.bind(this,function(c){if(c.action==google.picker.Action.PICKED||c.action==google.picker.Action.CANCEL)mxEvent.removeListener(document,"click",x),q&&c.action==google.picker.Action.CANCEL&&q();c.action==google.picker.Action.PICKED&&this.filePicked(c)})).build()}mxEvent.addListener(document,"click",x);k[u].setVisible(!0)}catch(c){this.ui.spinner.stop(),this.ui.handleError(c)}}))};DriveClient.prototype.pickFolder=function(m,g){this.folderPickerCallback=m;var q=mxUtils.bind(this,function(){try{this.ui.spinner.spin(document.body,mxResources.get("authorizing"))&&this.execute(mxUtils.bind(this,function(){try{this.ui.spinner.stop();var u=mxUtils.bind(this,function(H){"picker modal-dialog-bg picker-dialog-bg"==mxEvent.getSource(H).className&&(mxEvent.removeListener(document,"click",u),k.folderPicker.setVisible(!1))});if(null==k.folderPicker||k.folderPickerToken!=b){k.folderPickerToken=b;var x=(new google.picker.DocsView(google.picker.ViewId.FOLDERS)).setParent("root").setIncludeFolders(!0).setSelectFolderEnabled(!0).setMimeTypes("application/vnd.google-apps.folder"),z=(new google.picker.DocsView).setIncludeFolders(!0).setSelectFolderEnabled(!0).setMimeTypes("application/vnd.google-apps.folder"),F=(new google.picker.DocsView).setIncludeFolders(!0).setEnableDrives(!0).setSelectFolderEnabled(!0).setMimeTypes("application/vnd.google-apps.folder");k.folderPicker=(new google.picker.PickerBuilder).setSelectableMimeTypes("application/vnd.google-apps.folder").setOAuthToken(k.folderPickerToken).setLocale(mxLanguage).setAppId(this.appId).enableFeature(google.picker.Feature.SUPPORT_DRIVES).addView(x).addView(z).addView(F).addView(google.picker.ViewId.RECENTLY_PICKED).setTitle(mxResources.get("pickFolder"));if(urlParams.gPickerSize){var J=urlParams.gPickerSize.split(",");k.folderPicker=k.folderPicker.setSize(J[0],J[1])}urlParams.topBaseUrl&&(k.folderPicker=k.folderPicker.setOrigin(decodeURIComponent(urlParams.topBaseUrl)));k.folderPicker=k.folderPicker.setCallback(mxUtils.bind(this,function(H){H.action!=google.picker.Action.PICKED&&H.action!=google.picker.Action.CANCEL||mxEvent.removeListener(document,"click",u);this.folderPickerCallback(H)})).build()}mxEvent.addListener(document,"click",u);k.folderPicker.setVisible(!0)}catch(H){this.ui.spinner.stop(),-this.ui.handleError(H)}}))}catch(u){this.ui.handleError(u)}});f?q():this.ui.spinner.spin(document.body,mxResources.get("authorizing"))&&this.execute(mxUtils.bind(this,function(){try{this.ui.spinner.stop(),this.ui.confirm(mxResources.get("useRootFolder"),mxUtils.bind(this,function(){this.folderPickerCallback({action:google.picker.Action.PICKED,docs:[{type:"folder",id:"root"}]})}),mxUtils.bind(this,function(){q()}),mxResources.get("yes"),mxResources.get("noPickFolder")+"...",!0)}catch(u){this.ui.handleError(u)}}))};-DriveClient.prototype.pickLibrary=function(m){this.filePickerCallback=m;this.filePicked=mxUtils.bind(this,function(f){f.action==google.picker.Action.PICKED?this.filePickerCallback(f.docs[0].id):f.action==google.picker.Action.CANCEL&&null==this.ui.getCurrentFile()&&this.ui.showSplash()});this.ui.spinner.spin(document.body,mxResources.get("authorizing"))&&this.execute(mxUtils.bind(this,function(){try{this.ui.spinner.stop();var f=mxUtils.bind(this,function(J){"picker modal-dialog-bg picker-dialog-bg"==-mxEvent.getSource(J).className&&(mxEvent.removeListener(document,"click",f),k.libraryPicker.setVisible(!1))});if(null==k.libraryPicker||k.libraryPickerToken!=b){k.libraryPickerToken=b;var q=(new google.picker.DocsView(google.picker.ViewId.FOLDERS)).setParent("root").setIncludeFolders(!0).setMimeTypes(this.libraryMimeType+",application/xml,text/plain,application/octet-stream"),u=(new google.picker.DocsView).setIncludeFolders(!0).setMimeTypes(this.libraryMimeType+",application/xml,text/plain,application/octet-stream"),+this.ui.handleError(H)}}))}catch(u){this.ui.handleError(u)}});g?q():this.ui.spinner.spin(document.body,mxResources.get("authorizing"))&&this.execute(mxUtils.bind(this,function(){try{this.ui.spinner.stop(),this.ui.confirm(mxResources.get("useRootFolder"),mxUtils.bind(this,function(){this.folderPickerCallback({action:google.picker.Action.PICKED,docs:[{type:"folder",id:"root"}]})}),mxUtils.bind(this,function(){q()}),mxResources.get("yes"),mxResources.get("noPickFolder")+"...",!0)}catch(u){this.ui.handleError(u)}}))};+DriveClient.prototype.pickLibrary=function(m){this.filePickerCallback=m;this.filePicked=mxUtils.bind(this,function(g){g.action==google.picker.Action.PICKED?this.filePickerCallback(g.docs[0].id):g.action==google.picker.Action.CANCEL&&null==this.ui.getCurrentFile()&&this.ui.showSplash()});this.ui.spinner.spin(document.body,mxResources.get("authorizing"))&&this.execute(mxUtils.bind(this,function(){try{this.ui.spinner.stop();var g=mxUtils.bind(this,function(J){"picker modal-dialog-bg picker-dialog-bg"==+mxEvent.getSource(J).className&&(mxEvent.removeListener(document,"click",g),k.libraryPicker.setVisible(!1))});if(null==k.libraryPicker||k.libraryPickerToken!=b){k.libraryPickerToken=b;var q=(new google.picker.DocsView(google.picker.ViewId.FOLDERS)).setParent("root").setIncludeFolders(!0).setMimeTypes(this.libraryMimeType+",application/xml,text/plain,application/octet-stream"),u=(new google.picker.DocsView).setIncludeFolders(!0).setMimeTypes(this.libraryMimeType+",application/xml,text/plain,application/octet-stream"),x=(new google.picker.DocsView).setEnableDrives(!0).setIncludeFolders(!0).setMimeTypes(this.libraryMimeType+",application/xml,text/plain,application/octet-stream"),z=(new google.picker.DocsUploadView).setIncludeFolders(!0);k.libraryPicker=(new google.picker.PickerBuilder).setOAuthToken(k.libraryPickerToken).setLocale(mxLanguage).setAppId(this.appId).enableFeature(google.picker.Feature.SUPPORT_DRIVES).addView(q).addView(u).addView(x).addView(google.picker.ViewId.RECENTLY_PICKED).addView(z);if(urlParams.gPickerSize){var F=-urlParams.gPickerSize.split(",");k.libraryPicker=k.libraryPicker.setSize(F[0],F[1])}urlParams.topBaseUrl&&(k.libraryPicker=k.libraryPicker.setOrigin(decodeURIComponent(urlParams.topBaseUrl)));k.libraryPicker=k.libraryPicker.setCallback(mxUtils.bind(this,function(J){J.action!=google.picker.Action.PICKED&&J.action!=google.picker.Action.CANCEL||mxEvent.removeListener(document,"click",f);J.action==google.picker.Action.PICKED&&this.filePicked(J)})).build()}mxEvent.addListener(document,"click",f);k.libraryPicker.setVisible(!0)}catch(J){this.ui.spinner.stop(),-this.ui.handleError(J)}}))};DriveClient.prototype.showPermissions=function(m,f){var q=mxUtils.bind(this,function(){var u=new ConfirmDialog(this.ui,mxResources.get("googleSharingNotAvailable"),mxUtils.bind(this,function(){var x=null!=f?f.getFolderUrl():"https://drive.google.com/open?id="+m;this.ui.editor.graph.openLink(x)}),null,mxResources.get("open"),null,null,null,null,IMAGE_PATH+"/google-share.png");this.ui.showDialog(u.container,400,150,!0,!0);u.init()});this.sharingFailed?q():this.checkToken(mxUtils.bind(this,+urlParams.gPickerSize.split(",");k.libraryPicker=k.libraryPicker.setSize(F[0],F[1])}urlParams.topBaseUrl&&(k.libraryPicker=k.libraryPicker.setOrigin(decodeURIComponent(urlParams.topBaseUrl)));k.libraryPicker=k.libraryPicker.setCallback(mxUtils.bind(this,function(J){J.action!=google.picker.Action.PICKED&&J.action!=google.picker.Action.CANCEL||mxEvent.removeListener(document,"click",g);J.action==google.picker.Action.PICKED&&this.filePicked(J)})).build()}mxEvent.addListener(document,"click",g);k.libraryPicker.setVisible(!0)}catch(J){this.ui.spinner.stop(),+this.ui.handleError(J)}}))};DriveClient.prototype.showPermissions=function(m,g){var q=mxUtils.bind(this,function(){var u=new ConfirmDialog(this.ui,mxResources.get("googleSharingNotAvailable"),mxUtils.bind(this,function(){var x=null!=g?g.getFolderUrl():"https://drive.google.com/open?id="+m;this.ui.editor.graph.openLink(x)}),null,mxResources.get("open"),null,null,null,null,IMAGE_PATH+"/google-share.png");this.ui.showDialog(u.container,400,150,!0,!0);u.init()});this.sharingFailed?q():this.checkToken(mxUtils.bind(this,function(){try{var u=new gapi.drive.share.ShareClient(this.appId);u.setOAuthToken(b);u.setItemIds([m]);u.showSettingsDialog();"MutationObserver"in window&&(null!=this.sharingObserver&&(this.sharingObserver.disconnect(),this.sharingObserver=null),this.sharingObserver=new MutationObserver(mxUtils.bind(this,function(x){for(var z=!1,F=0;F<x.length;F++)for(var J=0;J<x[F].addedNodes.length;J++){var H=x[F].addedNodes[J];"BUTTON"==H.nodeName&&"ok"==H.getAttribute("name")&&null!=H.parentNode&&null!=H.parentNode.parentNode&&-"dialog"==H.parentNode.parentNode.getAttribute("role")?(this.sharingFailed=!0,H.click(),q(),z=!0):"DIV"==H.nodeName&&"shr-q-shr-r-shr-xb"==H.className&&(z=!0)}z&&(this.sharingObserver.disconnect(),this.sharingObserver=null)})),this.sharingObserver.observe(document,{childList:!0,subtree:!0}))}catch(x){this.ui.handleError(x)}}))};DriveClient.prototype.clearPersistentToken=function(){var m=JSON.parse(this.getPersistentToken(!0))||{};delete m.current;delete m[this.userId];for(var f in m){m.current={userId:f,-expires:0};break}DrawioClient.prototype.setPersistentToken.call(this,JSON.stringify(m))};DriveClient.prototype.setPersistentToken=function(m,f){var q=JSON.parse(this.getPersistentToken(!0))||{};m.userId=this.userId;q.current=m;q[this.userId]={user:this.user};DrawioClient.prototype.setPersistentToken.call(this,JSON.stringify(q),f)}})();DropboxFile=function(b,k,m){DrawioFile.call(this,b,k);this.stat=m};mxUtils.extend(DropboxFile,DrawioFile);DropboxFile.prototype.getId=function(){return this.stat.path_display.substring(1)};DropboxFile.prototype.getHash=function(){return"D"+encodeURIComponent(this.getId())};DropboxFile.prototype.getMode=function(){return App.MODE_DROPBOX};DropboxFile.prototype.isAutosaveOptional=function(){return!0};DropboxFile.prototype.isEditable=function(){return!1};+"dialog"==H.parentNode.parentNode.getAttribute("role")?(this.sharingFailed=!0,H.click(),q(),z=!0):"DIV"==H.nodeName&&"shr-q-shr-r-shr-xb"==H.className&&(z=!0)}z&&(this.sharingObserver.disconnect(),this.sharingObserver=null)})),this.sharingObserver.observe(document,{childList:!0,subtree:!0}))}catch(x){this.ui.handleError(x)}}))};DriveClient.prototype.clearPersistentToken=function(){var m=JSON.parse(this.getPersistentToken(!0))||{};delete m.current;delete m[this.userId];for(var g in m){m.current={userId:g,+expires:0};break}DrawioClient.prototype.setPersistentToken.call(this,JSON.stringify(m))};DriveClient.prototype.setPersistentToken=function(m,g){var q=JSON.parse(this.getPersistentToken(!0))||{};m.userId=this.userId;q.current=m;q[this.userId]={user:this.user};DrawioClient.prototype.setPersistentToken.call(this,JSON.stringify(q),g)}})();DropboxFile=function(b,k,m){DrawioFile.call(this,b,k);this.stat=m};mxUtils.extend(DropboxFile,DrawioFile);DropboxFile.prototype.getId=function(){return this.stat.path_display.substring(1)};DropboxFile.prototype.getHash=function(){return"D"+encodeURIComponent(this.getId())};DropboxFile.prototype.getMode=function(){return App.MODE_DROPBOX};DropboxFile.prototype.isAutosaveOptional=function(){return!0};DropboxFile.prototype.isEditable=function(){return!1};DropboxFile.prototype.open=function(){DrawioFile.prototype.open.apply(this,arguments);this.ui.editor.isChromelessView()||this.ui.showBanner("DropboxDeprecationFooter","Dropbox support is ending. Click here to move this diagram.",mxUtils.bind(this,function(){this.ui.actions.get("saveAs").funct()}))};DropboxFile.prototype.getTitle=function(){return this.stat.name};DropboxFile.prototype.isRenamable=function(){return!1};DropboxFile.prototype.getSize=function(){return this.stat.size};DropboxFile.prototype.isRevisionHistorySupported=function(){return!0};DropboxFile.prototype.getFileUrl=function(){return"https://www.dropbox.com/home/Apps"+this.ui.dropbox.appPath+this.stat.path_display};DropboxFile.prototype.getFolderUrl=function(){var b=this.getFileUrl();return b.substring(0,b.lastIndexOf("/"))};-DropboxFile.prototype.getRevisions=function(b,k){var m=this.ui.dropbox.client.filesListRevisions({path:this.stat.path_lower,limit:100});m.then(mxUtils.bind(this,function(f){try{for(var q=[],u=f.entries.length-1;0<=u;u--)mxUtils.bind(this,function(x){q.push({modifiedDate:x.client_modified,fileSize:x.size,getXml:mxUtils.bind(this,function(z,F){this.ui.dropbox.readFile({path:this.stat.path_lower,rev:x.rev},z,F)}),getUrl:mxUtils.bind(this,function(z){return this.ui.getUrl(window.location.pathname+"?rev="+-x.rev+"&chrome=0&nav=1&layers=1&edit=_blank"+(null!=z?"&page="+z:""))+window.location.hash})})})(f.entries[u]);b(q)}catch(x){k(x)}}));m["catch"](function(f){k(f)})};DropboxFile.prototype.getLatestVersion=function(b,k){this.ui.dropbox.getFile(this.getId(),b,k)};DropboxFile.prototype.updateDescriptor=function(b){this.stat=b.stat};DropboxFile.prototype.save=function(b,k,m,f,q){this.doSave(this.getTitle(),b,k,m,f,q)};DropboxFile.prototype.saveAs=function(b,k,m){this.doSave(b,!1,k,m)};-DropboxFile.prototype.doSave=function(b,k,m,f,q,u){var x=this.stat.name;this.stat.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.stat.name=x;this.saveFile(b,k,m,f,q,u)}),f,q,u])};-DropboxFile.prototype.saveFile=function(b,k,m,f){this.isEditable()?this.savingFile?null!=f&&f({code:App.ERROR_BUSY}):(k=mxUtils.bind(this,function(q){if(q)try{this.savingFileTime=new Date;this.setShadowModified(!1);this.savingFile=!0;var u=mxUtils.bind(this,function(z){var F=this.stat.path_display.lastIndexOf("/");F=1<F?this.stat.path_display.substring(1,F+1):null;this.ui.dropbox.saveFile(b,z,mxUtils.bind(this,function(J){this.setModified(this.getShadowModified());this.savingFile=!1;this.stat=J;this.contentChanged();-null!=m&&m()}),mxUtils.bind(this,function(J){this.savingFile=!1;null!=f&&f(J)}),F)});if(Editor.useCanvasForExport&&/(\.png)$/i.test(this.getTitle())){var x=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(z){u(this.ui.base64ToBlob(z,"image/png"))}),f,this.ui.getCurrentFile()!=this?this.getData():null,x.scale,x.border)}else u(this.getData())}catch(z){if(this.savingFile=!1,null!=f)f(z);else throw z;}else null!=f&&f()}),this.getTitle()==b?k(!0):this.ui.dropbox.checkExists(b,-k)):null!=m&&m()};DropboxFile.prototype.rename=function(b,k,m){this.ui.dropbox.renameFile(this,b,mxUtils.bind(this,function(f){this.hasSameExtension(b,this.getTitle())?(this.stat=f,this.descriptorChanged(),null!=k&&k()):(this.stat=f,this.descriptorChanged(),this.save(!0,k,m))}),m)};DropboxLibrary=function(b,k,m){DropboxFile.call(this,b,k,m)};mxUtils.extend(DropboxLibrary,DropboxFile);DropboxLibrary.prototype.isAutosave=function(){return!0};DropboxLibrary.prototype.doSave=function(b,k,m){this.saveFile(b,!1,k,m)};DropboxLibrary.prototype.open=function(){};(function(){var b=null;window.DropboxClient=function(k){DrawioClient.call(this,k,"dbauth");this.client=new Dropbox({clientId:this.clientId})};mxUtils.extend(DropboxClient,DrawioClient);DropboxClient.prototype.appPath="/drawio-diagrams/";DropboxClient.prototype.extension=".drawio";DropboxClient.prototype.writingFile=!1;DropboxClient.prototype.maxRetries=4;DropboxClient.prototype.clientId=window.DRAWIO_DROPBOX_ID;DropboxClient.prototype.redirectUri=window.DRAWIO_SERVER_URL+"dropbox";DropboxClient.prototype.logout=-function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken();this.setUser(null);b=null;this.client.authTokenRevoke().then(mxUtils.bind(this,function(){this.client.setAccessToken(null)}))};DropboxClient.prototype.updateUser=function(k,m,f){var q=!0,u=window.setTimeout(mxUtils.bind(this,function(){q=!1;m({code:App.ERROR_TIMEOUT})}),this.ui.timeout),x=this.client.usersGetCurrentAccount();-x.then(mxUtils.bind(this,function(z){window.clearTimeout(u);q&&(this.setUser(new DrawioUser(z.account_id,z.email,z.name.display_name)),k())}));x["catch"](mxUtils.bind(this,function(z){window.clearTimeout(u);q&&(null==z||401!==z.status||f?m({message:mxResources.get("accessDenied")}):(this.setUser(null),this.client.setAccessToken(null),b=null,this.authenticate(mxUtils.bind(this,function(){this.updateUser(k,m,!0)}),m)))}))};DropboxClient.prototype.authenticate=function(k,m){(new mxXmlRequest(this.redirectUri+-"?getState=1",null,"GET")).send(mxUtils.bind(this,function(f){200<=f.getStatus()&&299>=f.getStatus()?this.authenticateStep2(f.getText(),k,m):null!=m&&m(f)}),m)};DropboxClient.prototype.authenticateStep2=function(k,m,f){if(null==window.onDropboxCallback){var q=mxUtils.bind(this,function(){var u=!0;null!=this.getPersistentToken(!0)?(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+k),null,"GET")).send(mxUtils.bind(this,function(x){if(200<=-x.getStatus()&&299>=x.getStatus())try{b=JSON.parse(x.getText()).access_token,this.client.setAccessToken(b),this.setUser(null),m()}catch(z){f({message:mxResources.get("authFailed"),retry:q})}else this.clearPersistentToken(),this.setUser(null),b=null,this.client.setAccessToken(null),401==x.getStatus()?q():f({message:mxResources.get("accessDenied"),retry:q})}),f):this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(x,z){null!=window.open("https://www.dropbox.com/oauth2/authorize?client_id="+this.clientId+-(x?"&token_access_type=offline":"")+"&redirect_uri="+encodeURIComponent(this.redirectUri)+"&response_type=code&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+k),"dbauth")?window.onDropboxCallback=mxUtils.bind(this,function(F,J){if(u){window.onDropboxCallback=null;u=!1;try{null==F?f({message:mxResources.get("accessDenied"),retry:q}):(null!=z&&z(),b=F.access_token,this.client.setAccessToken(b),this.setUser(null),x&&this.setPersistentToken("remembered"),m())}catch(H){f(H)}finally{null!=-J&&J.close()}}else null!=J&&J.close()}):f({message:mxResources.get("serviceUnavailableOrBlocked"),retry:q})}),mxUtils.bind(this,function(){u&&(window.onDropboxCallback=null,u=!1,f({message:mxResources.get("accessDenied"),retry:q}))}))});q()}else f({code:App.ERROR_BUSY})};DropboxClient.prototype.getErrorMessage=function(k){return null!=k&&null!=k.status?mxResources.get("error")+" "+k.status:mxResources.get("noResponse")};DropboxClient.prototype.executePromise=function(k,m,f){var q=mxUtils.bind(this,-function(x){var z=!0,F=window.setTimeout(mxUtils.bind(this,function(){z=!1;f({code:App.ERROR_TIMEOUT,retry:u})}),this.ui.timeout),J=k();J.then(mxUtils.bind(this,function(H){window.clearTimeout(F);z&&null!=m&&m(H)}));J["catch"](mxUtils.bind(this,function(H){window.clearTimeout(F);z&&(null==H||500!=H.status&&400!=H.status&&401!=H.status?f({message:this.getErrorMessage(H)}):(this.setUser(null),this.client.setAccessToken(null),b=null,x?f({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,-function(){this.authenticate(function(){u(!0)},f)})}):this.authenticate(function(){q(!0)},f)))}))}),u=mxUtils.bind(this,function(x){null==this.user?this.updateUser(function(){u(!0)},f,x):q(x)});null==b?this.authenticate(function(){u(!0)},f):u(!1)};DropboxClient.prototype.getLibrary=function(k,m,f){this.getFile(k,m,f,!0)};DropboxClient.prototype.getFile=function(k,m,f,q){q=null!=q?q:!1;var u=/\.png$/i.test(k);if(/^https:\/\//i.test(k)||/\.v(dx|sdx?)$/i.test(k)||/\.gliffy$/i.test(k)||/\.pdf$/i.test(k)||-!Editor.useCanvasForExport&&u){var x=mxUtils.bind(this,function(){var z=k.split("/");this.ui.convertFile(k,0<z.length?z[z.length-1]:k,null,this.extension,m,f)});null!=b?x():this.authenticate(x,f)}else x={path:"/"+k},null!=urlParams.rev&&(x.rev=urlParams.rev),this.readFile(x,mxUtils.bind(this,function(z,F){var J=null;if(0<(u?z.lastIndexOf(","):-1)){var H=this.ui.extractGraphModelFromPng(z);null!=H&&0<H.length?z=H:J=new LocalFile(this,z,k,!0)}m(null!=J?J:q?new DropboxLibrary(this.ui,z,F):new DropboxFile(this.ui,-z,F))}),f,u)};DropboxClient.prototype.readFile=function(k,m,f,q){var u=mxUtils.bind(this,function(z){var F=!0,J=window.setTimeout(mxUtils.bind(this,function(){F=!1;f({code:App.ERROR_TIMEOUT})}),this.ui.timeout),H=this.client.filesGetMetadata({path:"/"+k.path.substring(1),include_deleted:!1});H.then(mxUtils.bind(this,function(D){}));H["catch"](function(D){window.clearTimeout(J);F&&null!=D&&409==D.status&&(F=!1,f({message:mxResources.get("fileNotFound")}))});H=this.client.filesDownload(k);H.then(mxUtils.bind(this,-function(D){window.clearTimeout(J);if(F){F=!1;try{var c=new FileReader;c.onload=mxUtils.bind(this,function(g){m(c.result,D)});q?c.readAsDataURL(D.fileBlob):c.readAsText(D.fileBlob)}catch(g){f(g)}}}));H["catch"](mxUtils.bind(this,function(D){window.clearTimeout(J);F&&(F=!1,null==D||500!=D.status&&400!=D.status&&401!=D.status?f({message:this.getErrorMessage(D)}):(this.client.setAccessToken(null),this.setUser(null),b=null,z?f({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){x(!0)},-f)})}):this.authenticate(function(){u(!0)},f)))}))}),x=mxUtils.bind(this,function(z){null==this.user?this.updateUser(function(){x(!0)},f,z):u(z)});null==b?this.authenticate(function(){x(!0)},f):x(!1)};DropboxClient.prototype.checkExists=function(k,m,f){var q=mxUtils.bind(this,function(){return this.client.filesGetMetadata({path:"/"+k.toLowerCase(),include_deleted:!1})});this.executePromise(q,mxUtils.bind(this,function(u){f?m(!1,!0,u):this.ui.confirm(mxResources.get("replaceIt",[k]),function(){m(!0,-!0,u)},function(){m(!1,!0,u)})}),function(u){m(!0,!1)})};DropboxClient.prototype.renameFile=function(k,m,f,q){if(/[\\\/:\?\*"\|]/.test(m))q({message:mxResources.get("dropboxCharsNotAllowed")});else{if(null!=k&&null!=m){var u=k.stat.path_display.substring(1),x=u.lastIndexOf("/");0<x&&(m=u.substring(0,x+1)+m)}null!=k&&null!=m&&k.stat.path_lower.substring(1)!==m.toLowerCase()?this.checkExists(m,mxUtils.bind(this,function(z,F,J){z?(z=mxUtils.bind(this,function(H){H=mxUtils.bind(this,function(){return this.client.filesMove({from_path:k.stat.path_display,-to_path:"/"+m,autorename:!1})});this.executePromise(H,f,q)}),F&&J.path_lower.substring(1)!==m.toLowerCase()?(F=mxUtils.bind(this,function(){return this.client.filesDelete({path:"/"+m.toLowerCase()})}),this.executePromise(F,z,q)):z()):q()})):q({message:mxResources.get("invalidName")})}};DropboxClient.prototype.insertLibrary=function(k,m,f,q){this.insertFile(k,m,f,q,!0)};DropboxClient.prototype.insertFile=function(k,m,f,q,u){u=null!=u?u:!1;this.checkExists(k,mxUtils.bind(this,function(x){x?this.saveFile(k,-m,mxUtils.bind(this,function(z){u?f(new DropboxLibrary(this.ui,m,z)):f(new DropboxFile(this.ui,m,z))}),q):q()}))};DropboxClient.prototype.saveFile=function(k,m,f,q,u){if(/[\\\/:\?\*"\|]/.test(k))q({message:mxResources.get("dropboxCharsNotAllowed")});else if(15E7<=m.length)q({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(m.length)+" / 150 MB)"});else{u=null!=u?u:"";var x=mxUtils.bind(this,function(){return this.client.filesUpload({path:"/"+u+k,mode:{".tag":"overwrite"},mute:!0,-contents:new Blob([m],{type:"text/plain"})})});this.executePromise(x,f,q)}};DropboxClient.prototype.pickLibrary=function(k){Dropbox.choose({linkType:"direct",cancel:mxUtils.bind(this,function(){}),success:mxUtils.bind(this,function(m){if(this.ui.spinner.spin(document.body,mxResources.get("loading"))){var f=mxUtils.bind(this,function(x){this.ui.spinner.stop();this.ui.handleError(x)}),q=null!=m[0].link?m[0].link.indexOf(this.appPath):-1;if(0<q){var u=decodeURIComponent(m[0].link.substring(q+this.appPath.length--1));this.readFile({path:u},mxUtils.bind(this,function(x,z){if(null!=z&&z.id==m[0].id)try{this.ui.spinner.stop(),k(u.substring(1),new DropboxLibrary(this.ui,x,z))}catch(F){this.ui.handleError(F)}else this.createLibrary(m[0],k,f)}),f)}else this.createLibrary(m[0],k,f)}})})};DropboxClient.prototype.createLibrary=function(k,m,f){this.ui.confirm(mxResources.get("note")+": "+mxResources.get("fileWillBeSavedInAppFolder",[k.name]),mxUtils.bind(this,function(){this.ui.editor.loadUrl(k.link,mxUtils.bind(this,-function(q){this.insertFile(k.name,q,mxUtils.bind(this,function(u){try{this.ui.spinner.stop(),m(u.getHash().substring(1),u)}catch(x){f(x)}}),f,!0)}),f)}),mxUtils.bind(this,function(){this.ui.spinner.stop()}))};DropboxClient.prototype.pickFile=function(k,m){null!=Dropbox.choose?(k=null!=k?k:mxUtils.bind(this,function(f,q){this.ui.loadFile(null!=f?"D"+encodeURIComponent(f):q.getHash(),null,q)}),Dropbox.choose({linkType:"direct",cancel:mxUtils.bind(this,function(){}),success:mxUtils.bind(this,function(f){if(this.ui.spinner.spin(document.body,-mxResources.get("loading")))if(m)this.ui.spinner.stop(),k(f[0].link);else{var q=mxUtils.bind(this,function(J){this.ui.spinner.stop();this.ui.handleError(J)}),u=mxUtils.bind(this,function(J,H){this.ui.spinner.stop();k(J,H)}),x=/\.png$/i.test(f[0].name);if(/\.vsdx$/i.test(f[0].name)||/\.gliffy$/i.test(f[0].name)||!Editor.useCanvasForExport&&x)u(f[0].link);else{var z=null!=f[0].link?f[0].link.indexOf(this.appPath):-1;if(0<z){var F=decodeURIComponent(f[0].link.substring(z+this.appPath.length-1));this.readFile({path:F},-mxUtils.bind(this,function(J,H){if(null!=H&&H.id==f[0].id){var D=x?J.lastIndexOf(","):-1;this.ui.spinner.stop();var c=null;0<D&&(D=this.ui.extractGraphModelFromPng(J),null!=D&&0<D.length?J=D:c=new LocalFile(this,J,F,!0));k(F.substring(1),null!=c?c:new DropboxFile(this.ui,J,H))}else this.createFile(f[0],u,q)}),q,x)}else this.createFile(f[0],u,q)}}})})):this.ui.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})};DropboxClient.prototype.createFile=function(k,m,f){var q=/(\.png)$/i.test(k.name);-this.ui.editor.loadUrl(k.link,mxUtils.bind(this,function(u){null!=u&&0<u.length?this.ui.confirm(mxResources.get("note")+": "+mxResources.get("fileWillBeSavedInAppFolder",[k.name]),mxUtils.bind(this,function(){var x=q?u.lastIndexOf(","):-1;0<x&&(x=this.ui.extractGraphModelFromPng(u.substring(x+1)),null!=x&&0<x.length&&(u=x));this.insertFile(k.name,u,mxUtils.bind(this,function(z){m(k.name,z)}),f)}),mxUtils.bind(this,function(){this.ui.spinner.stop()})):(this.ui.spinner.stop(),f({message:mxResources.get("errorLoadingFile")}))}),-f,q)}})();OneDriveFile=function(b,k,m,f){DrawioFile.call(this,b,k);this.meta=m;this.isSP=f};mxUtils.extend(OneDriveFile,DrawioFile);OneDriveFile.prototype.autosaveDelay=500;OneDriveFile.prototype.isRealtimeSupported=function(){return!0};+DropboxFile.prototype.getRevisions=function(b,k){var m=this.ui.dropbox.client.filesListRevisions({path:this.stat.path_lower,limit:100});m.then(mxUtils.bind(this,function(g){try{for(var q=[],u=g.entries.length-1;0<=u;u--)mxUtils.bind(this,function(x){q.push({modifiedDate:x.client_modified,fileSize:x.size,getXml:mxUtils.bind(this,function(z,F){this.ui.dropbox.readFile({path:this.stat.path_lower,rev:x.rev},z,F)}),getUrl:mxUtils.bind(this,function(z){return this.ui.getUrl(window.location.pathname+"?rev="++x.rev+"&chrome=0&nav=1&layers=1&edit=_blank"+(null!=z?"&page="+z:""))+window.location.hash})})})(g.entries[u]);b(q)}catch(x){k(x)}}));m["catch"](function(g){k(g)})};DropboxFile.prototype.getLatestVersion=function(b,k){this.ui.dropbox.getFile(this.getId(),b,k)};DropboxFile.prototype.updateDescriptor=function(b){this.stat=b.stat};DropboxFile.prototype.save=function(b,k,m,g,q){this.doSave(this.getTitle(),b,k,m,g,q)};DropboxFile.prototype.saveAs=function(b,k,m){this.doSave(b,!1,k,m)};+DropboxFile.prototype.doSave=function(b,k,m,g,q,u){var x=this.stat.name;this.stat.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.stat.name=x;this.saveFile(b,k,m,g,q,u)}),g,q,u])};+DropboxFile.prototype.saveFile=function(b,k,m,g){this.isEditable()?this.savingFile?null!=g&&g({code:App.ERROR_BUSY}):(k=mxUtils.bind(this,function(q){if(q)try{this.savingFileTime=new Date;this.setShadowModified(!1);this.savingFile=!0;var u=mxUtils.bind(this,function(z){var F=this.stat.path_display.lastIndexOf("/");F=1<F?this.stat.path_display.substring(1,F+1):null;this.ui.dropbox.saveFile(b,z,mxUtils.bind(this,function(J){this.setModified(this.getShadowModified());this.savingFile=!1;this.stat=J;this.contentChanged();+null!=m&&m()}),mxUtils.bind(this,function(J){this.savingFile=!1;null!=g&&g(J)}),F)});if(Editor.useCanvasForExport&&/(\.png)$/i.test(this.getTitle())){var x=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(z){u(this.ui.base64ToBlob(z,"image/png"))}),g,this.ui.getCurrentFile()!=this?this.getData():null,x.scale,x.border)}else u(this.getData())}catch(z){if(this.savingFile=!1,null!=g)g(z);else throw z;}else null!=g&&g()}),this.getTitle()==b?k(!0):this.ui.dropbox.checkExists(b,+k)):null!=m&&m()};DropboxFile.prototype.rename=function(b,k,m){this.ui.dropbox.renameFile(this,b,mxUtils.bind(this,function(g){this.hasSameExtension(b,this.getTitle())?(this.stat=g,this.descriptorChanged(),null!=k&&k()):(this.stat=g,this.descriptorChanged(),this.save(!0,k,m))}),m)};DropboxLibrary=function(b,k,m){DropboxFile.call(this,b,k,m)};mxUtils.extend(DropboxLibrary,DropboxFile);DropboxLibrary.prototype.isAutosave=function(){return!0};DropboxLibrary.prototype.doSave=function(b,k,m){this.saveFile(b,!1,k,m)};DropboxLibrary.prototype.open=function(){};(function(){var b=null;window.DropboxClient=function(k){DrawioClient.call(this,k,"dbauth");this.client=new Dropbox({clientId:this.clientId})};mxUtils.extend(DropboxClient,DrawioClient);DropboxClient.prototype.appPath="/drawio-diagrams/";DropboxClient.prototype.extension=".drawio";DropboxClient.prototype.writingFile=!1;DropboxClient.prototype.maxRetries=4;DropboxClient.prototype.clientId=window.DRAWIO_DROPBOX_ID;DropboxClient.prototype.redirectUri=window.DRAWIO_SERVER_URL+"dropbox";DropboxClient.prototype.logout=+function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken();this.setUser(null);b=null;this.client.authTokenRevoke().then(mxUtils.bind(this,function(){this.client.setAccessToken(null)}))};DropboxClient.prototype.updateUser=function(k,m,g){var q=!0,u=window.setTimeout(mxUtils.bind(this,function(){q=!1;m({code:App.ERROR_TIMEOUT})}),this.ui.timeout),x=this.client.usersGetCurrentAccount();+x.then(mxUtils.bind(this,function(z){window.clearTimeout(u);q&&(this.setUser(new DrawioUser(z.account_id,z.email,z.name.display_name)),k())}));x["catch"](mxUtils.bind(this,function(z){window.clearTimeout(u);q&&(null==z||401!==z.status||g?m({message:mxResources.get("accessDenied")}):(this.setUser(null),this.client.setAccessToken(null),b=null,this.authenticate(mxUtils.bind(this,function(){this.updateUser(k,m,!0)}),m)))}))};DropboxClient.prototype.authenticate=function(k,m){(new mxXmlRequest(this.redirectUri++"?getState=1",null,"GET")).send(mxUtils.bind(this,function(g){200<=g.getStatus()&&299>=g.getStatus()?this.authenticateStep2(g.getText(),k,m):null!=m&&m(g)}),m)};DropboxClient.prototype.authenticateStep2=function(k,m,g){if(null==window.onDropboxCallback){var q=mxUtils.bind(this,function(){var u=!0;null!=this.getPersistentToken(!0)?(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+k),null,"GET")).send(mxUtils.bind(this,function(x){if(200<=+x.getStatus()&&299>=x.getStatus())try{b=JSON.parse(x.getText()).access_token,this.client.setAccessToken(b),this.setUser(null),m()}catch(z){g({message:mxResources.get("authFailed"),retry:q})}else this.clearPersistentToken(),this.setUser(null),b=null,this.client.setAccessToken(null),401==x.getStatus()?q():g({message:mxResources.get("accessDenied"),retry:q})}),g):this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(x,z){null!=window.open("https://www.dropbox.com/oauth2/authorize?client_id="+this.clientId++(x?"&token_access_type=offline":"")+"&redirect_uri="+encodeURIComponent(this.redirectUri)+"&response_type=code&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+k),"dbauth")?window.onDropboxCallback=mxUtils.bind(this,function(F,J){if(u){window.onDropboxCallback=null;u=!1;try{null==F?g({message:mxResources.get("accessDenied"),retry:q}):(null!=z&&z(),b=F.access_token,this.client.setAccessToken(b),this.setUser(null),x&&this.setPersistentToken("remembered"),m())}catch(H){g(H)}finally{null!=+J&&J.close()}}else null!=J&&J.close()}):g({message:mxResources.get("serviceUnavailableOrBlocked"),retry:q})}),mxUtils.bind(this,function(){u&&(window.onDropboxCallback=null,u=!1,g({message:mxResources.get("accessDenied"),retry:q}))}))});q()}else g({code:App.ERROR_BUSY})};DropboxClient.prototype.getErrorMessage=function(k){return null!=k&&null!=k.status?mxResources.get("error")+" "+k.status:mxResources.get("noResponse")};DropboxClient.prototype.executePromise=function(k,m,g){var q=mxUtils.bind(this,+function(x){var z=!0,F=window.setTimeout(mxUtils.bind(this,function(){z=!1;g({code:App.ERROR_TIMEOUT,retry:u})}),this.ui.timeout),J=k();J.then(mxUtils.bind(this,function(H){window.clearTimeout(F);z&&null!=m&&m(H)}));J["catch"](mxUtils.bind(this,function(H){window.clearTimeout(F);z&&(null==H||500!=H.status&&400!=H.status&&401!=H.status?g({message:this.getErrorMessage(H)}):(this.setUser(null),this.client.setAccessToken(null),b=null,x?g({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,+function(){this.authenticate(function(){u(!0)},g)})}):this.authenticate(function(){q(!0)},g)))}))}),u=mxUtils.bind(this,function(x){null==this.user?this.updateUser(function(){u(!0)},g,x):q(x)});null==b?this.authenticate(function(){u(!0)},g):u(!1)};DropboxClient.prototype.getLibrary=function(k,m,g){this.getFile(k,m,g,!0)};DropboxClient.prototype.getFile=function(k,m,g,q){q=null!=q?q:!1;var u=/\.png$/i.test(k);if(/^https:\/\//i.test(k)||/\.v(dx|sdx?)$/i.test(k)||/\.gliffy$/i.test(k)||/\.pdf$/i.test(k)||+!Editor.useCanvasForExport&&u){var x=mxUtils.bind(this,function(){var z=k.split("/");this.ui.convertFile(k,0<z.length?z[z.length-1]:k,null,this.extension,m,g)});null!=b?x():this.authenticate(x,g)}else x={path:"/"+k},null!=urlParams.rev&&(x.rev=urlParams.rev),this.readFile(x,mxUtils.bind(this,function(z,F){var J=null;if(0<(u?z.lastIndexOf(","):-1)){var H=this.ui.extractGraphModelFromPng(z);null!=H&&0<H.length?z=H:J=new LocalFile(this,z,k,!0)}m(null!=J?J:q?new DropboxLibrary(this.ui,z,F):new DropboxFile(this.ui,+z,F))}),g,u)};DropboxClient.prototype.readFile=function(k,m,g,q){var u=mxUtils.bind(this,function(z){var F=!0,J=window.setTimeout(mxUtils.bind(this,function(){F=!1;g({code:App.ERROR_TIMEOUT})}),this.ui.timeout),H=this.client.filesGetMetadata({path:"/"+k.path.substring(1),include_deleted:!1});H.then(mxUtils.bind(this,function(D){}));H["catch"](function(D){window.clearTimeout(J);F&&null!=D&&409==D.status&&(F=!1,g({message:mxResources.get("fileNotFound")}))});H=this.client.filesDownload(k);H.then(mxUtils.bind(this,+function(D){window.clearTimeout(J);if(F){F=!1;try{var c=new FileReader;c.onload=mxUtils.bind(this,function(f){m(c.result,D)});q?c.readAsDataURL(D.fileBlob):c.readAsText(D.fileBlob)}catch(f){g(f)}}}));H["catch"](mxUtils.bind(this,function(D){window.clearTimeout(J);F&&(F=!1,null==D||500!=D.status&&400!=D.status&&401!=D.status?g({message:this.getErrorMessage(D)}):(this.client.setAccessToken(null),this.setUser(null),b=null,z?g({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){x(!0)},+g)})}):this.authenticate(function(){u(!0)},g)))}))}),x=mxUtils.bind(this,function(z){null==this.user?this.updateUser(function(){x(!0)},g,z):u(z)});null==b?this.authenticate(function(){x(!0)},g):x(!1)};DropboxClient.prototype.checkExists=function(k,m,g){var q=mxUtils.bind(this,function(){return this.client.filesGetMetadata({path:"/"+k.toLowerCase(),include_deleted:!1})});this.executePromise(q,mxUtils.bind(this,function(u){g?m(!1,!0,u):this.ui.confirm(mxResources.get("replaceIt",[k]),function(){m(!0,+!0,u)},function(){m(!1,!0,u)})}),function(u){m(!0,!1)})};DropboxClient.prototype.renameFile=function(k,m,g,q){if(/[\\\/:\?\*"\|]/.test(m))q({message:mxResources.get("dropboxCharsNotAllowed")});else{if(null!=k&&null!=m){var u=k.stat.path_display.substring(1),x=u.lastIndexOf("/");0<x&&(m=u.substring(0,x+1)+m)}null!=k&&null!=m&&k.stat.path_lower.substring(1)!==m.toLowerCase()?this.checkExists(m,mxUtils.bind(this,function(z,F,J){z?(z=mxUtils.bind(this,function(H){H=mxUtils.bind(this,function(){return this.client.filesMove({from_path:k.stat.path_display,+to_path:"/"+m,autorename:!1})});this.executePromise(H,g,q)}),F&&J.path_lower.substring(1)!==m.toLowerCase()?(F=mxUtils.bind(this,function(){return this.client.filesDelete({path:"/"+m.toLowerCase()})}),this.executePromise(F,z,q)):z()):q()})):q({message:mxResources.get("invalidName")})}};DropboxClient.prototype.insertLibrary=function(k,m,g,q){this.insertFile(k,m,g,q,!0)};DropboxClient.prototype.insertFile=function(k,m,g,q,u){u=null!=u?u:!1;this.checkExists(k,mxUtils.bind(this,function(x){x?this.saveFile(k,+m,mxUtils.bind(this,function(z){u?g(new DropboxLibrary(this.ui,m,z)):g(new DropboxFile(this.ui,m,z))}),q):q()}))};DropboxClient.prototype.saveFile=function(k,m,g,q,u){if(/[\\\/:\?\*"\|]/.test(k))q({message:mxResources.get("dropboxCharsNotAllowed")});else if(15E7<=m.length)q({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(m.length)+" / 150 MB)"});else{u=null!=u?u:"";var x=mxUtils.bind(this,function(){return this.client.filesUpload({path:"/"+u+k,mode:{".tag":"overwrite"},mute:!0,+contents:new Blob([m],{type:"text/plain"})})});this.executePromise(x,g,q)}};DropboxClient.prototype.pickLibrary=function(k){Dropbox.choose({linkType:"direct",cancel:mxUtils.bind(this,function(){}),success:mxUtils.bind(this,function(m){if(this.ui.spinner.spin(document.body,mxResources.get("loading"))){var g=mxUtils.bind(this,function(x){this.ui.spinner.stop();this.ui.handleError(x)}),q=null!=m[0].link?m[0].link.indexOf(this.appPath):-1;if(0<q){var u=decodeURIComponent(m[0].link.substring(q+this.appPath.length-+1));this.readFile({path:u},mxUtils.bind(this,function(x,z){if(null!=z&&z.id==m[0].id)try{this.ui.spinner.stop(),k(u.substring(1),new DropboxLibrary(this.ui,x,z))}catch(F){this.ui.handleError(F)}else this.createLibrary(m[0],k,g)}),g)}else this.createLibrary(m[0],k,g)}})})};DropboxClient.prototype.createLibrary=function(k,m,g){this.ui.confirm(mxResources.get("note")+": "+mxResources.get("fileWillBeSavedInAppFolder",[k.name]),mxUtils.bind(this,function(){this.ui.editor.loadUrl(k.link,mxUtils.bind(this,+function(q){this.insertFile(k.name,q,mxUtils.bind(this,function(u){try{this.ui.spinner.stop(),m(u.getHash().substring(1),u)}catch(x){g(x)}}),g,!0)}),g)}),mxUtils.bind(this,function(){this.ui.spinner.stop()}))};DropboxClient.prototype.pickFile=function(k,m){null!=Dropbox.choose?(k=null!=k?k:mxUtils.bind(this,function(g,q){this.ui.loadFile(null!=g?"D"+encodeURIComponent(g):q.getHash(),null,q)}),Dropbox.choose({linkType:"direct",cancel:mxUtils.bind(this,function(){}),success:mxUtils.bind(this,function(g){if(this.ui.spinner.spin(document.body,+mxResources.get("loading")))if(m)this.ui.spinner.stop(),k(g[0].link);else{var q=mxUtils.bind(this,function(J){this.ui.spinner.stop();this.ui.handleError(J)}),u=mxUtils.bind(this,function(J,H){this.ui.spinner.stop();k(J,H)}),x=/\.png$/i.test(g[0].name);if(/\.vsdx$/i.test(g[0].name)||/\.gliffy$/i.test(g[0].name)||!Editor.useCanvasForExport&&x)u(g[0].link);else{var z=null!=g[0].link?g[0].link.indexOf(this.appPath):-1;if(0<z){var F=decodeURIComponent(g[0].link.substring(z+this.appPath.length-1));this.readFile({path:F},+mxUtils.bind(this,function(J,H){if(null!=H&&H.id==g[0].id){var D=x?J.lastIndexOf(","):-1;this.ui.spinner.stop();var c=null;0<D&&(D=this.ui.extractGraphModelFromPng(J),null!=D&&0<D.length?J=D:c=new LocalFile(this,J,F,!0));k(F.substring(1),null!=c?c:new DropboxFile(this.ui,J,H))}else this.createFile(g[0],u,q)}),q,x)}else this.createFile(g[0],u,q)}}})})):this.ui.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})};DropboxClient.prototype.createFile=function(k,m,g){var q=/(\.png)$/i.test(k.name);+this.ui.editor.loadUrl(k.link,mxUtils.bind(this,function(u){null!=u&&0<u.length?this.ui.confirm(mxResources.get("note")+": "+mxResources.get("fileWillBeSavedInAppFolder",[k.name]),mxUtils.bind(this,function(){var x=q?u.lastIndexOf(","):-1;0<x&&(x=this.ui.extractGraphModelFromPng(u.substring(x+1)),null!=x&&0<x.length&&(u=x));this.insertFile(k.name,u,mxUtils.bind(this,function(z){m(k.name,z)}),g)}),mxUtils.bind(this,function(){this.ui.spinner.stop()})):(this.ui.spinner.stop(),g({message:mxResources.get("errorLoadingFile")}))}),+g,q)}})();OneDriveFile=function(b,k,m,g){DrawioFile.call(this,b,k);this.meta=m;this.isSP=g};mxUtils.extend(OneDriveFile,DrawioFile);OneDriveFile.prototype.autosaveDelay=500;OneDriveFile.prototype.isRealtimeSupported=function(){return!0};OneDriveFile.prototype.getFileUrl=function(){var b=this.meta.webUrl;b=b.substring(0,b.lastIndexOf("/"));if(null!=this.meta.parentReference)try{if("personal"==this.meta.parentReference.driveType)b="https://onedrive.live.com/?cid="+encodeURIComponent(this.meta.parentReference.driveId)+"&id="+encodeURIComponent(this.meta.id);else if("documentLibrary"==this.meta.parentReference.driveType){var k=this.meta.parentReference.path;k=k.substring(k.indexOf("/root:")+6);var m=this.meta.webUrl;b=m.substring(0,-m.length-k.length-encodeURIComponent(this.meta.name).length-1);m=m.substring(m.indexOf("/",8));b=b+"/Forms/AllItems.aspx?id="+m+"&parent="+m.substring(0,m.lastIndexOf("/"))}else if("business"==this.meta.parentReference.driveType){b=this.meta["@microsoft.graph.downloadUrl"];var f=b.indexOf("/_layouts/15/download.aspx?");k=m=this.meta.webUrl;m=m.substring(8);m=m.substring(m.indexOf("/"));k=k.substring(0,k.lastIndexOf("/"));k=k.substring(k.indexOf("/",8));b=b.substring(0,f)+"/_layouts/15/onedrive.aspx?id="++m.length-k.length-encodeURIComponent(this.meta.name).length-1);m=m.substring(m.indexOf("/",8));b=b+"/Forms/AllItems.aspx?id="+m+"&parent="+m.substring(0,m.lastIndexOf("/"))}else if("business"==this.meta.parentReference.driveType){b=this.meta["@microsoft.graph.downloadUrl"];var g=b.indexOf("/_layouts/15/download.aspx?");k=m=this.meta.webUrl;m=m.substring(8);m=m.substring(m.indexOf("/"));k=k.substring(0,k.lastIndexOf("/"));k=k.substring(k.indexOf("/",8));b=b.substring(0,g)+"/_layouts/15/onedrive.aspx?id="+m+"&parent="+k}}catch(q){}return b};OneDriveFile.prototype.getFolderUrl=function(){var b=this.meta.webUrl,k=encodeURIComponent(this.meta.name);b.substring(b.length-k.length,b.length)==k&&(b=b.substring(0,b.length-k.length));return b};OneDriveFile.prototype.share=function(){this.ui.openLink(this.getFileUrl())};OneDriveFile.prototype.getId=function(){return this.getIdOf(this.meta)};OneDriveFile.prototype.getParentId=function(){return this.getIdOf(this.meta,!0)};OneDriveFile.prototype.getIdOf=function(b,k){return(null!=b.parentReference&&null!=b.parentReference.driveId?b.parentReference.driveId+"/":"")+(null!=k?b.parentReference.id:b.id+(b.folder&&b.folder.isRoot?"/root":""))};OneDriveFile.prototype.getChannelId=function(){return(this.isSP?"M-":"W-")+DrawioFile.prototype.getChannelId.apply(this,arguments)};OneDriveFile.prototype.getHash=function(){return(this.isSP?"M":"W")+encodeURIComponent(this.getId())};OneDriveFile.prototype.getMode=function(){return this.isSP?App.MODE_M365:App.MODE_ONEDRIVE};OneDriveFile.prototype.isAutosaveOptional=function(){return!0};OneDriveFile.prototype.getTitle=function(){return this.meta.name};OneDriveFile.prototype.isRenamable=function(){return!0};OneDriveFile.prototype.isOptimisticSync=function(){return!0};OneDriveFile.prototype.isSyncSupported=function(){return!0};OneDriveFile.prototype.getSize=function(){return this.meta.size};OneDriveFile.prototype.isConflict=function(b){return null!=b&&(412==b.getStatus()||409==b.getStatus())};OneDriveFile.prototype.getCurrentUser=function(){return this.isSP?null!=this.ui.m365?this.ui.m365.user:null:null!=this.ui.oneDrive?this.ui.oneDrive.user:null};-OneDriveFile.prototype.loadDescriptor=function(b,k){var m=this.isSP?this.ui.m365:this.ui.oneDrive;m.executeRequest(m.getItemURL(this.getId()),mxUtils.bind(this,function(f){200<=f.getStatus()&&299>=f.getStatus()?b(JSON.parse(f.getText())):null!=k&&k()}),k)};OneDriveFile.prototype.getLatestVersion=function(b,k){(this.isSP?this.ui.m365:this.ui.oneDrive).getFile(this.getId(),b,k)};OneDriveFile.prototype.getDescriptor=function(){return this.meta};-OneDriveFile.prototype.setDescriptor=function(b){this.meta=b};OneDriveFile.prototype.getDescriptorEtag=function(b){return b.eTag};OneDriveFile.prototype.setDescriptorEtag=function(b,k){b.eTag=k};OneDriveFile.prototype.loadPatchDescriptor=function(b,k){var m=this.isSP?this.ui.m365:this.ui.oneDrive,f=m.getItemURL(this.getId());m.executeRequest(f+"?select=etag,file",mxUtils.bind(this,function(q){200<=q.getStatus()&&299>=q.getStatus()?b(JSON.parse(q.getText())):k(m.parseRequestText(q))}),k)};-OneDriveFile.prototype.getChannelKey=function(){return"undefined"!==typeof CryptoJS?CryptoJS.MD5(this.meta.createdDateTime+(null!=this.meta.createdBy&&null!=this.meta.createdBy.user?this.meta.createdBy.user.id:"")).toString():null};OneDriveFile.prototype.getLastModifiedDate=function(){return new Date(this.meta.lastModifiedDateTime)};OneDriveFile.prototype.save=function(b,k,m,f,q){this.doSave(this.getTitle(),b,k,m,f,q)};OneDriveFile.prototype.saveAs=function(b,k,m){this.doSave(b,!1,k,m)};-OneDriveFile.prototype.doSave=function(b,k,m,f,q,u){var x=this.meta.name;this.meta.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.meta.name=x;this.saveFile(b,k,m,f,q,u)}),f,q,u])};-OneDriveFile.prototype.saveFile=function(b,k,m,f,q,u){if(!this.isEditable())null!=m&&m();else if(!this.savingFile)if(this.getTitle()==b){var x=mxUtils.bind(this,function(){try{this.savingFileTime=new Date;this.setShadowModified(!1);this.savingFile=!0;var z=u||this.constructor!=OneDriveFile||"manual"!=DrawioFile.SYNC&&"auto"!=DrawioFile.SYNC?null:this.getCurrentEtag(),F=this.meta;null!=this.sync&&this.sync.fileSaving();(this.isSP?this.ui.m365:this.ui.oneDrive).saveFile(this,mxUtils.bind(this,function(J,-H){this.setModified(this.getShadowModified());this.savingFile=!1;this.meta=J;this.fileSaved(H,F,mxUtils.bind(this,function(){this.contentChanged();null!=m&&m()}),f)}),mxUtils.bind(this,function(J,H){try{this.savingFile=!1,this.isConflict(H)?(this.inConflictState=!0,null!=this.sync?(this.savingFile=!0,this.sync.fileConflict(null,mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){this.updateFileData();x()}),100+500*Math.random())}),mxUtils.bind(this,function(){this.savingFile=-!1;null!=f&&f()}))):null!=f&&f()):null!=f&&f(J)}catch(D){if(this.savingFile=!1,null!=f)f(D);else throw D;}}),z)}catch(J){if(this.savingFile=!1,null!=f)f(J);else throw J;}});x()}else this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,(this.isSP?this.ui.m365:this.ui.oneDrive).insertFile(b,this.getData(),mxUtils.bind(this,function(z){this.setModified(this.getShadowModified());this.savingFile=!1;null!=m&&m();this.ui.fileLoaded(z)}),mxUtils.bind(this,function(){this.savingFile=-!1;null!=f&&f()}))};OneDriveFile.prototype.rename=function(b,k,m){var f=this.getCurrentRevisionId();(this.isSP?this.ui.m365:this.ui.oneDrive).renameFile(this,b,mxUtils.bind(this,function(q){this.hasSameExtension(b,this.getTitle())?(this.meta=q,this.descriptorChanged(),null!=this.sync&&this.sync.descriptorChanged(f),null!=k&&k(q)):(this.meta=q,null!=this.sync&&this.sync.descriptorChanged(f),this.save(!0,k,m))}),m)};-OneDriveFile.prototype.move=function(b,k,m){(this.isSP?this.ui.m365:this.ui.oneDrive).moveFile(this.getId(),b,mxUtils.bind(this,function(f){this.meta=f;this.descriptorChanged();null!=k&&k(f)}),m)};OneDriveLibrary=function(b,k,m,f){OneDriveFile.call(this,b,k,m,f)};mxUtils.extend(OneDriveLibrary,OneDriveFile);OneDriveLibrary.prototype.isAutosave=function(){return!0};OneDriveLibrary.prototype.save=function(b,k,m){(this.isSP?this.ui.m365:this.ui.oneDrive).saveFile(this,mxUtils.bind(this,function(f){this.desc=f;null!=k&&k(f)}),m)};OneDriveLibrary.prototype.open=function(){};(function(){var b=null,k=null,m=null,f=null,q=null,u=null,x=null,z=null;window.OneDriveClient=function(D,c,g,l,n){this.sharepointMode=!0===n;null==c&&null!=window.urlParams&&"1"==window.urlParams.extAuth&&(c=!0);null==g&&(g=null!=window.Editor?Editor.oneDriveInlinePicker:!0);null==l&&null!=window.urlParams&&"1"==window.urlParams.noLogoutOD&&(l=!0);DrawioClient.call(this,D,c?"oneDriveExtAuthInfo":this.sharepointMode?"ms365AuthInfo":"oneDriveAuthInfo");this.isExtAuth=c;this.inlinePicker=g;this.noLogout=+OneDriveFile.prototype.loadDescriptor=function(b,k){var m=this.isSP?this.ui.m365:this.ui.oneDrive;m.executeRequest(m.getItemURL(this.getId()),mxUtils.bind(this,function(g){200<=g.getStatus()&&299>=g.getStatus()?b(JSON.parse(g.getText())):null!=k&&k()}),k)};OneDriveFile.prototype.getLatestVersion=function(b,k){(this.isSP?this.ui.m365:this.ui.oneDrive).getFile(this.getId(),b,k)};OneDriveFile.prototype.getDescriptor=function(){return this.meta};+OneDriveFile.prototype.setDescriptor=function(b){this.meta=b};OneDriveFile.prototype.getDescriptorEtag=function(b){return b.eTag};OneDriveFile.prototype.setDescriptorEtag=function(b,k){b.eTag=k};OneDriveFile.prototype.loadPatchDescriptor=function(b,k){var m=this.isSP?this.ui.m365:this.ui.oneDrive,g=m.getItemURL(this.getId());m.executeRequest(g+"?select=etag,file",mxUtils.bind(this,function(q){200<=q.getStatus()&&299>=q.getStatus()?b(JSON.parse(q.getText())):k(m.parseRequestText(q))}),k)};+OneDriveFile.prototype.getChannelKey=function(){return"undefined"!==typeof CryptoJS?CryptoJS.MD5(this.meta.createdDateTime+(null!=this.meta.createdBy&&null!=this.meta.createdBy.user?this.meta.createdBy.user.id:"")).toString():null};OneDriveFile.prototype.getLastModifiedDate=function(){return new Date(this.meta.lastModifiedDateTime)};OneDriveFile.prototype.save=function(b,k,m,g,q){this.doSave(this.getTitle(),b,k,m,g,q)};OneDriveFile.prototype.saveAs=function(b,k,m){this.doSave(b,!1,k,m)};+OneDriveFile.prototype.doSave=function(b,k,m,g,q,u){var x=this.meta.name;this.meta.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.meta.name=x;this.saveFile(b,k,m,g,q,u)}),g,q,u])};+OneDriveFile.prototype.saveFile=function(b,k,m,g,q,u){if(!this.isEditable())null!=m&&m();else if(!this.savingFile)if(this.getTitle()==b){var x=mxUtils.bind(this,function(){try{this.savingFileTime=new Date;this.setShadowModified(!1);this.savingFile=!0;var z=u||this.constructor!=OneDriveFile||"manual"!=DrawioFile.SYNC&&"auto"!=DrawioFile.SYNC?null:this.getCurrentEtag(),F=this.meta;null!=this.sync&&this.sync.fileSaving();(this.isSP?this.ui.m365:this.ui.oneDrive).saveFile(this,mxUtils.bind(this,function(J,+H){this.setModified(this.getShadowModified());this.savingFile=!1;this.meta=J;this.fileSaved(H,F,mxUtils.bind(this,function(){this.contentChanged();null!=m&&m()}),g)}),mxUtils.bind(this,function(J,H){try{this.savingFile=!1,this.isConflict(H)?(this.inConflictState=!0,null!=this.sync?(this.savingFile=!0,this.sync.fileConflict(null,mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){this.updateFileData();x()}),100+500*Math.random())}),mxUtils.bind(this,function(){this.savingFile=+!1;null!=g&&g()}))):null!=g&&g()):null!=g&&g(J)}catch(D){if(this.savingFile=!1,null!=g)g(D);else throw D;}}),z)}catch(J){if(this.savingFile=!1,null!=g)g(J);else throw J;}});x()}else this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,(this.isSP?this.ui.m365:this.ui.oneDrive).insertFile(b,this.getData(),mxUtils.bind(this,function(z){this.setModified(this.getShadowModified());this.savingFile=!1;null!=m&&m();this.ui.fileLoaded(z)}),mxUtils.bind(this,function(){this.savingFile=+!1;null!=g&&g()}))};OneDriveFile.prototype.rename=function(b,k,m){var g=this.getCurrentRevisionId();(this.isSP?this.ui.m365:this.ui.oneDrive).renameFile(this,b,mxUtils.bind(this,function(q){this.hasSameExtension(b,this.getTitle())?(this.meta=q,this.descriptorChanged(),null!=this.sync&&this.sync.descriptorChanged(g),null!=k&&k(q)):(this.meta=q,null!=this.sync&&this.sync.descriptorChanged(g),this.save(!0,k,m))}),m)};+OneDriveFile.prototype.move=function(b,k,m){(this.isSP?this.ui.m365:this.ui.oneDrive).moveFile(this.getId(),b,mxUtils.bind(this,function(g){this.meta=g;this.descriptorChanged();null!=k&&k(g)}),m)};OneDriveLibrary=function(b,k,m,g){OneDriveFile.call(this,b,k,m,g)};mxUtils.extend(OneDriveLibrary,OneDriveFile);OneDriveLibrary.prototype.isAutosave=function(){return!0};OneDriveLibrary.prototype.save=function(b,k,m){(this.isSP?this.ui.m365:this.ui.oneDrive).saveFile(this,mxUtils.bind(this,function(g){this.desc=g;null!=k&&k(g)}),m)};OneDriveLibrary.prototype.open=function(){};(function(){var b=null,k=null,m=null,g=null,q=null,u=null,x=null,z=null;window.OneDriveClient=function(D,c,f,l,n){this.sharepointMode=!0===n;null==c&&null!=window.urlParams&&"1"==window.urlParams.extAuth&&(c=!0);null==f&&(f=null!=window.Editor?Editor.oneDriveInlinePicker:!0);null==l&&null!=window.urlParams&&"1"==window.urlParams.noLogoutOD&&(l=!0);DrawioClient.call(this,D,c?"oneDriveExtAuthInfo":this.sharepointMode?"ms365AuthInfo":"oneDriveAuthInfo");this.isExtAuth=c;this.inlinePicker=f;this.noLogout=l;D=JSON.parse(this.token);null!=D&&(this.endpointHint=null!=D.endpointHint?D.endpointHint.replace("/Documents","/_layouts/15/onedrive.aspx"):D.endpointHint);this.sharepointMode&&(this.redirectUri=window.DRAWIO_SERVER_URL+"ms365")};mxUtils.extend(OneDriveClient,DrawioClient);OneDriveClient.prototype.clientId=window.DRAWIO_MSGRAPH_CLIENT_ID||("test.draw.io"==window.location.hostname?"95e4b4ed-ed5c-4a05-935b-b411b4562ef2":"24b129a6-117b-4394-bdc8-3b9955e5cdef");OneDriveClient.prototype.clientId="app.diagrams.net"==window.location.hostname?"b5ff67d6-3155-4fca-965a-59a3655c4476":OneDriveClient.prototype.clientId;OneDriveClient.prototype.clientId="viewer.diagrams.net"==window.location.hostname?"417a451a-a343-4788-b6c1-901e63182565":OneDriveClient.prototype.clientId;OneDriveClient.prototype.scopes="user.read files.readwrite.all sites.read.all";OneDriveClient.prototype.scopesSP="https://microsoft.sharepoint.com/AllSites.Write https://microsoft.sharepoint.com/MyFiles.Write";OneDriveClient.prototype.redirectUri=window.DRAWIO_SERVER_URL+"microsoft";OneDriveClient.prototype.pickerRedirectUri=window.DRAWIO_SERVER_URL+"onedrive3.html";OneDriveClient.prototype.defEndpointHint="api.onedrive.com";OneDriveClient.prototype.endpointHint=OneDriveClient.prototype.defEndpointHint;OneDriveClient.prototype.rootId={id:"root",name:"root",parentReference:{driveId:"me"}};OneDriveClient.prototype.extension=".drawio";OneDriveClient.prototype.baseUrl="https://graph.microsoft.com/v1.0";OneDriveClient.prototype.authUrl="https://login.microsoftonline.com/"+(window.DRAWIO_MSGRAPH_TENANT_ID||"common");OneDriveClient.prototype.PICKER_SDK_VERSION="8.0";OneDriveClient.prototype.FILE_EXTENSIONS=".drawio .xml .svg .png .pdf .vsdx".split(" ");OneDriveClient.prototype.sharepointMode=!1;OneDriveClient.prototype.emptyFn=function(){};OneDriveClient.prototype.invalidFilenameRegExs=[/[~"#%\*:<>\?\/\\{\|}]/,/^\.lock$/i,/^CON$/i,/^PRN$/i,/^AUX$/i,/^NUL$/i,/^COM\d$/i,/^LPT\d$/i,/^desktop\.ini$/i,/_vti_/i];OneDriveClient.prototype.isValidFilename=function(D){if(null==-D||""===D)return!1;for(var c=0;c<this.invalidFilenameRegExs.length;c++)if(this.invalidFilenameRegExs[c].test(D))return!1;return!0};OneDriveClient.prototype.get=function(D,c,g){D=new mxXmlRequest(D,null,"GET");D.setRequestHeaders=mxUtils.bind(this,function(l,n){l.setRequestHeader("Authorization","Bearer "+b)});D.send(c,g);return D};OneDriveClient.prototype.updateUser=function(D,c,g){var l=!0,n=window.setTimeout(mxUtils.bind(this,function(){l=!1;c({code:App.ERROR_TIMEOUT})}),this.ui.timeout);this.get(this.baseUrl+-"/me",mxUtils.bind(this,function(r){window.clearTimeout(n);if(l)if(200>r.getStatus()||300<=r.getStatus())g?c({message:mxResources.get("accessDenied")}):(this.logout(),this.authenticate(mxUtils.bind(this,function(){this.updateUser(D,c,!0)}),c,null,this.sharepointMode));else try{var t=JSON.parse(r.getText());this.setUser(new DrawioUser(t.id,t.mail,t.displayName));D()}catch(v){c(v)}}),mxUtils.bind(this,function(r){window.clearTimeout(n);l&&c(r)}))};OneDriveClient.prototype.resetTokenRefresh=function(D){null!=-this.tokenRefreshThread&&(window.clearTimeout(this.tokenRefreshThread),this.tokenRefreshThread=null);0<D&&(this.tokenRefreshInterval=1E3*D,this.tokenRefreshThread=window.setTimeout(mxUtils.bind(this,function(){this.authenticate(this.emptyFn,this.emptyFn,!0,this.sharepointMode)}),900*D))};OneDriveClient.prototype.authenticate=function(D,c,g,l,n){this.isExtAuth?(window.oneDriveAuth?window.oneDriveAuth:window.parent.oneDriveAuth)(mxUtils.bind(this,function(r){this.updateAuthInfo(r,!0,null==this.endpointHint,-D,c)}),c,null!=window.urlParams&&"1"==urlParams.odAuthCancellable):(new mxXmlRequest(this.redirectUri+"?getState=1",null,"GET")).send(mxUtils.bind(this,function(r){200<=r.getStatus()&&299>=r.getStatus()?this.authenticateStep2(r.getText(),D,c,g,l,n):null!=c&&c({message:mxResources.get("error")+" "+r.getStatus()})}),c)};OneDriveClient.prototype.updateAuthInfo=function(D,c,g,l,n,r){g&&this.setUser(null);r?m=D.access_token:(b=D.access_token,this.sharepointMode&&(k=D.access_token));delete D.access_token;-D.expiresOn=Date.now()+1E3*D.expires_in;this.tokenExpiresOn=D.expiresOn;D.remember=c;this.setPersistentToken(JSON.stringify(D),!c);this.resetTokenRefresh(D.expires_in);g?this.getAccountTypeAndEndpoint(mxUtils.bind(this,function(){l()}),n):l()};OneDriveClient.prototype.authenticateStep2=function(D,c,g,l,n,r){if(null==window.onOneDriveCallback){var t=mxUtils.bind(this,function(){var v=!0,B=JSON.parse(this.getPersistentToken(!0));null!=B?(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+-this.clientId+"&domain="+window.location.host+"&token="+D)+"&scopes="+encodeURIComponent(n?this.scopesSP:this.scopes),null,"GET")).send(mxUtils.bind(this,function(E){if(200<=E.getStatus()&&299>=E.getStatus())try{this.updateAuthInfo(JSON.parse(E.getText()),B.remember,r,mxUtils.bind(this,function(){n?this.authenticate(c,g,l,!1):c()}),g,n)}catch(K){g({message:mxResources.get("authFailed"),retry:t})}else this.clearPersistentToken(),this.setUser(null),b=null,this.sharepointMode&&(k=null),401!=E.getStatus()&&-400!=E.getStatus()||l?g({message:mxResources.get("accessDenied"),retry:t}):t()}),g):this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(E,K){var C=this.authUrl+"/oauth2/v2.0/authorize?client_id="+this.clientId+"&response_type=code&prompt=select_account&redirect_uri="+encodeURIComponent(this.redirectUri)+"&scope="+encodeURIComponent((n?this.scopesSP:this.scopes)+(E?" offline_access":""))+"&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+D);C=window.open(C,-"odauth",["width=525,height=525","top="+(window.screenY+Math.max(window.outerHeight-525,0)/2),"left="+(window.screenX+Math.max(window.outerWidth-525,0)/2),"status=no,resizable=yes,toolbar=no,menubar=no,scrollbars=yes"].join());null!=C&&(window.onOneDriveCallback=mxUtils.bind(this,function(R,M){if(v){window.onOneDriveCallback=null;v=!1;try{null==R?g({message:mxResources.get("accessDenied"),retry:t}):(null!=K&&K(),this.updateAuthInfo(R,E,!n,mxUtils.bind(this,function(){n?this.authenticate(c,g,l,!1,-!0):c()}),g,n))}catch(O){g(O)}finally{null!=M&&M.close()}}else null!=M&&M.close()}),C.focus())}),mxUtils.bind(this,function(){v&&(window.onOneDriveCallback=null,v=!1,g({message:mxResources.get("accessDenied"),retry:t}))}))});t()}else g({code:App.ERROR_BUSY})};OneDriveClient.prototype.getAccountTypeAndEndpoint=function(D,c){this.get(this.baseUrl+"/me/drive/root",mxUtils.bind(this,function(g){try{if(200<=g.getStatus()&&299>=g.getStatus()){var l=JSON.parse(g.getText());0<l.webUrl.indexOf(".sharepoint.com")?-this.endpointHint=l.webUrl.replace("/Documents","/_layouts/15/onedrive.aspx"):this.endpointHint=this.defEndpointHint;var n=JSON.parse(this.getPersistentToken(!0));null!=n&&(n.endpointHint=this.endpointHint,this.setPersistentToken(JSON.stringify(n),!n.remember));D();return}}catch(r){}c({message:mxResources.get("unknownError")+" (Code: "+g.getStatus()+")"})}),c)};OneDriveClient.prototype.executeRequest=function(D,c,g){this.sharepointMode&&(b=k);var l=mxUtils.bind(this,function(n){var r=!0,t=window.setTimeout(mxUtils.bind(this,-function(){r=!1;g({code:App.ERROR_TIMEOUT,retry:l})}),this.ui.timeout);this.get(D,mxUtils.bind(this,function(v){window.clearTimeout(t);r&&(200<=v.getStatus()&&299>=v.getStatus()||404==v.getStatus()?(null==this.user&&this.updateUser(this.emptyFn,this.emptyFn,!0),c(v)):n||401!==v.getStatus()&&400!==v.getStatus()?g(this.parseRequestText(v)):this.authenticate(function(){l(!0)},g,n,this.sharepointMode))}),mxUtils.bind(this,function(v){window.clearTimeout(t);r&&g(v)}))});null==b||6E4>this.tokenExpiresOn--Date.now()?this.authenticate(function(){l(!0)},g,null,this.sharepointMode):l(!1)};OneDriveClient.prototype.checkToken=function(D,c){this.sharepointMode&&(b=k);null==b||null==this.tokenRefreshThread||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(D,null!=c?c:this.emptyFn,null,this.sharepointMode):D()};OneDriveClient.prototype.getItemRef=function(D){var c=D.split("/");return 1<c.length?{driveId:c[0],id:c[1]}:{id:D}};OneDriveClient.prototype.getItemURL=function(D,c){var g=D.split("/");return 1<-g.length?(D=g[1],(c?"":this.baseUrl)+"/drives/"+g[0]+("root"==D?"/root":"/items/"+D)):(c?"":this.baseUrl)+"/me/drive/items/"+D};OneDriveClient.prototype.getLibrary=function(D,c,g){this.getFile(D,c,g,!1,!0)};OneDriveClient.prototype.removeExtraHtmlContent=function(D){var c=D.lastIndexOf('<html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"><meta name="Robots" ');0<c&&(D=D.substring(0,c));return D};OneDriveClient.prototype.getFile=function(D,c,g,l,n){n=null!=n?n:!1;this.executeRequest(this.getItemURL(D),-mxUtils.bind(this,function(r){if(200<=r.getStatus()&&299>=r.getStatus()){var t=JSON.parse(r.getText()),v=/\.png$/i.test(t.name);if(/\.v(dx|sdx?)$/i.test(t.name)||/\.gliffy$/i.test(t.name)||/\.pdf$/i.test(t.name)||!Editor.useCanvasForExport&&v)this.ui.convertFile(t["@microsoft.graph.downloadUrl"],t.name,null!=t.file?t.file.mimeType:null,this.extension,c,g);else{var B=!0,E=window.setTimeout(mxUtils.bind(this,function(){B=!1;g({code:App.ERROR_TIMEOUT})}),this.ui.timeout);this.ui.editor.loadUrl(t["@microsoft.graph.downloadUrl"],+D||""===D)return!1;for(var c=0;c<this.invalidFilenameRegExs.length;c++)if(this.invalidFilenameRegExs[c].test(D))return!1;return!0};OneDriveClient.prototype.get=function(D,c,f){D=new mxXmlRequest(D,null,"GET");D.setRequestHeaders=mxUtils.bind(this,function(l,n){l.setRequestHeader("Authorization","Bearer "+b)});D.send(c,f);return D};OneDriveClient.prototype.updateUser=function(D,c,f){var l=!0,n=window.setTimeout(mxUtils.bind(this,function(){l=!1;c({code:App.ERROR_TIMEOUT})}),this.ui.timeout);this.get(this.baseUrl++"/me",mxUtils.bind(this,function(r){window.clearTimeout(n);if(l)if(200>r.getStatus()||300<=r.getStatus())f?c({message:mxResources.get("accessDenied")}):(this.logout(),this.authenticate(mxUtils.bind(this,function(){this.updateUser(D,c,!0)}),c,null,this.sharepointMode));else try{var t=JSON.parse(r.getText());this.setUser(new DrawioUser(t.id,t.mail,t.displayName));D()}catch(v){c(v)}}),mxUtils.bind(this,function(r){window.clearTimeout(n);l&&c(r)}))};OneDriveClient.prototype.resetTokenRefresh=function(D){null!=+this.tokenRefreshThread&&(window.clearTimeout(this.tokenRefreshThread),this.tokenRefreshThread=null);0<D&&(this.tokenRefreshInterval=1E3*D,this.tokenRefreshThread=window.setTimeout(mxUtils.bind(this,function(){this.authenticate(this.emptyFn,this.emptyFn,!0,this.sharepointMode)}),900*D))};OneDriveClient.prototype.authenticate=function(D,c,f,l,n){this.isExtAuth?(window.oneDriveAuth?window.oneDriveAuth:window.parent.oneDriveAuth)(mxUtils.bind(this,function(r){this.updateAuthInfo(r,!0,null==this.endpointHint,+D,c)}),c,null!=window.urlParams&&"1"==urlParams.odAuthCancellable):(new mxXmlRequest(this.redirectUri+"?getState=1",null,"GET")).send(mxUtils.bind(this,function(r){200<=r.getStatus()&&299>=r.getStatus()?this.authenticateStep2(r.getText(),D,c,f,l,n):null!=c&&c({message:mxResources.get("error")+" "+r.getStatus()})}),c)};OneDriveClient.prototype.updateAuthInfo=function(D,c,f,l,n,r){f&&this.setUser(null);r?m=D.access_token:(b=D.access_token,this.sharepointMode&&(k=D.access_token));delete D.access_token;+D.expiresOn=Date.now()+1E3*D.expires_in;this.tokenExpiresOn=D.expiresOn;D.remember=c;this.setPersistentToken(JSON.stringify(D),!c);this.resetTokenRefresh(D.expires_in);f?this.getAccountTypeAndEndpoint(mxUtils.bind(this,function(){l()}),n):l()};OneDriveClient.prototype.authenticateStep2=function(D,c,f,l,n,r){if(null==window.onOneDriveCallback){var t=mxUtils.bind(this,function(){var v=!0,B=JSON.parse(this.getPersistentToken(!0));null!=B?(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="++this.clientId+"&domain="+window.location.host+"&token="+D)+"&scopes="+encodeURIComponent(n?this.scopesSP:this.scopes),null,"GET")).send(mxUtils.bind(this,function(E){if(200<=E.getStatus()&&299>=E.getStatus())try{this.updateAuthInfo(JSON.parse(E.getText()),B.remember,r,mxUtils.bind(this,function(){n?this.authenticate(c,f,l,!1):c()}),f,n)}catch(K){f({message:mxResources.get("authFailed"),retry:t})}else this.clearPersistentToken(),this.setUser(null),b=null,this.sharepointMode&&(k=null),401!=E.getStatus()&&+400!=E.getStatus()||l?f({message:mxResources.get("accessDenied"),retry:t}):t()}),f):this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(E,K){var C=this.authUrl+"/oauth2/v2.0/authorize?client_id="+this.clientId+"&response_type=code&prompt=select_account&redirect_uri="+encodeURIComponent(this.redirectUri)+"&scope="+encodeURIComponent((n?this.scopesSP:this.scopes)+(E?" offline_access":""))+"&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+D);C=window.open(C,+"odauth",["width=525,height=525","top="+(window.screenY+Math.max(window.outerHeight-525,0)/2),"left="+(window.screenX+Math.max(window.outerWidth-525,0)/2),"status=no,resizable=yes,toolbar=no,menubar=no,scrollbars=yes"].join());null!=C&&(window.onOneDriveCallback=mxUtils.bind(this,function(R,M){if(v){window.onOneDriveCallback=null;v=!1;try{null==R?f({message:mxResources.get("accessDenied"),retry:t}):(null!=K&&K(),this.updateAuthInfo(R,E,!n,mxUtils.bind(this,function(){n?this.authenticate(c,f,l,!1,+!0):c()}),f,n))}catch(O){f(O)}finally{null!=M&&M.close()}}else null!=M&&M.close()}),C.focus())}),mxUtils.bind(this,function(){v&&(window.onOneDriveCallback=null,v=!1,f({message:mxResources.get("accessDenied"),retry:t}))}))});t()}else f({code:App.ERROR_BUSY})};OneDriveClient.prototype.getAccountTypeAndEndpoint=function(D,c){this.get(this.baseUrl+"/me/drive/root",mxUtils.bind(this,function(f){try{if(200<=f.getStatus()&&299>=f.getStatus()){var l=JSON.parse(f.getText());0<l.webUrl.indexOf(".sharepoint.com")?+this.endpointHint=l.webUrl.replace("/Documents","/_layouts/15/onedrive.aspx"):this.endpointHint=this.defEndpointHint;var n=JSON.parse(this.getPersistentToken(!0));null!=n&&(n.endpointHint=this.endpointHint,this.setPersistentToken(JSON.stringify(n),!n.remember));D();return}}catch(r){}c({message:mxResources.get("unknownError")+" (Code: "+f.getStatus()+")"})}),c)};OneDriveClient.prototype.executeRequest=function(D,c,f){this.sharepointMode&&(b=k);var l=mxUtils.bind(this,function(n){var r=!0,t=window.setTimeout(mxUtils.bind(this,+function(){r=!1;f({code:App.ERROR_TIMEOUT,retry:l})}),this.ui.timeout);this.get(D,mxUtils.bind(this,function(v){window.clearTimeout(t);r&&(200<=v.getStatus()&&299>=v.getStatus()||404==v.getStatus()?(null==this.user&&this.updateUser(this.emptyFn,this.emptyFn,!0),c(v)):n||401!==v.getStatus()&&400!==v.getStatus()?f(this.parseRequestText(v)):this.authenticate(function(){l(!0)},f,n,this.sharepointMode))}),mxUtils.bind(this,function(v){window.clearTimeout(t);r&&f(v)}))});null==b||6E4>this.tokenExpiresOn-+Date.now()?this.authenticate(function(){l(!0)},f,null,this.sharepointMode):l(!1)};OneDriveClient.prototype.checkToken=function(D,c){this.sharepointMode&&(b=k);null==b||null==this.tokenRefreshThread||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(D,null!=c?c:this.emptyFn,null,this.sharepointMode):D()};OneDriveClient.prototype.getItemRef=function(D){var c=D.split("/");return 1<c.length?{driveId:c[0],id:c[1]}:{id:D}};OneDriveClient.prototype.getItemURL=function(D,c){var f=D.split("/");return 1<+f.length?(D=f[1],(c?"":this.baseUrl)+"/drives/"+f[0]+("root"==D?"/root":"/items/"+D)):(c?"":this.baseUrl)+"/me/drive/items/"+D};OneDriveClient.prototype.getLibrary=function(D,c,f){this.getFile(D,c,f,!1,!0)};OneDriveClient.prototype.removeExtraHtmlContent=function(D){var c=D.lastIndexOf('<html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"><meta name="Robots" ');0<c&&(D=D.substring(0,c));return D};OneDriveClient.prototype.getFile=function(D,c,f,l,n){n=null!=n?n:!1;this.executeRequest(this.getItemURL(D),+mxUtils.bind(this,function(r){if(200<=r.getStatus()&&299>=r.getStatus()){var t=JSON.parse(r.getText()),v=/\.png$/i.test(t.name);if(/\.v(dx|sdx?)$/i.test(t.name)||/\.gliffy$/i.test(t.name)||/\.pdf$/i.test(t.name)||!Editor.useCanvasForExport&&v)this.ui.convertFile(t["@microsoft.graph.downloadUrl"],t.name,null!=t.file?t.file.mimeType:null,this.extension,c,f);else{var B=!0,E=window.setTimeout(mxUtils.bind(this,function(){B=!1;f({code:App.ERROR_TIMEOUT})}),this.ui.timeout);this.ui.editor.loadUrl(t["@microsoft.graph.downloadUrl"],mxUtils.bind(this,function(K){try{if(window.clearTimeout(E),B){/\.html$/i.test(t.name)&&(K=this.removeExtraHtmlContent(K));var C=null;if(0<(v?K.lastIndexOf(","):-1)){var R=this.ui.extractGraphModelFromPng(K);null!=R&&0<R.length?K=R:C=new LocalFile(this.ui,K,t.name,!0)}else if("data:image/png;base64,PG14ZmlsZS"==K.substring(0,32)){var M=K.substring(22);K=window.atob&&!mxClient.IS_SF?atob(M):Base64.decode(M)}Graph.fileSupport&&this.ui.isGliffyData(K,t["@microsoft.graph.downloadUrl"])?this.ui.importGliffy(K,-mxUtils.bind(this,function(O){try{c(new LocalFile(this.ui,O,t.name+this.extension,!0))}catch(U){if(null!=g)g(U);else throw U;}}),mxUtils.bind(this,function(O){null!=g&&g({message:mxResources.get("errorLoadingFile")})}),t.name):null!=C?c(C):n?c(new OneDriveLibrary(this.ui,K,t,this.sharepointMode)):c(new OneDriveFile(this.ui,K,t,this.sharepointMode))}}catch(O){if(null!=g)g(O);else throw O;}}),mxUtils.bind(this,function(K){window.clearTimeout(E);B&&g(this.parseRequestText(K))}),v||null!=t.file&&null!=-t.file.mimeType&&("image/"==t.file.mimeType.substring(0,6)&&"image/svg"!=t.file.mimeType.substring(0,9)||"application/pdf"==t.file.mimeType))}}else this.isExtAuth?g({message:mxResources.get("fileNotFoundOrDenied"),ownerEmail:null!=window.urlParams?urlParams.ownerEml:null}):g(this.parseRequestText(r))}),function(r){null!=g&&(null!=r&&null!=r.error&&"ObjectHandle is Invalid"===r.error.message&&(r.error.message=mxResources.get("fileNotFoundOrDenied")),g(r))})};OneDriveClient.prototype.renameFile=function(D,-c,g,l){null!=D&&null!=c&&(this.isValidFilename(c)?this.checkExists(D.getParentId(),c,!1,mxUtils.bind(this,function(n){n?this.writeFile(this.getItemURL(D.getId()),JSON.stringify({name:c}),"PATCH","application/json",g,l):l()})):l({message:this.invalidFilenameRegExs[0].test(c)?mxResources.get("oneDriveCharsNotAllowed"):mxResources.get("oneDriveInvalidDeviceName")}))};OneDriveClient.prototype.moveFile=function(D,c,g,l){c=this.getItemRef(c);var n=this.getItemRef(D);c.driveId!=n.driveId?l({message:mxResources.get("cannotMoveOneDrive")}):-this.writeFile(this.getItemURL(D),JSON.stringify({parentReference:c}),"PATCH","application/json",g,l)};OneDriveClient.prototype.insertLibrary=function(D,c,g,l,n){this.insertFile(D,c,g,l,!0,n)};OneDriveClient.prototype.insertFile=function(D,c,g,l,n,r){this.isValidFilename(D)?(n=null!=n?n:!1,this.checkExists(r,D,!0,mxUtils.bind(this,function(t){if(t){t="/me/drive/root";null!=r&&(t=this.getItemURL(r,!0));var v=mxUtils.bind(this,function(B){n?g(new OneDriveLibrary(this.ui,c,B,this.sharepointMode)):g(new OneDriveFile(this.ui,-c,B,this.sharepointMode))});t=this.baseUrl+t+"/children/"+encodeURIComponent(D)+"/content";4E6<=c.length?this.writeFile(t,"","PUT",null,mxUtils.bind(this,function(B){this.writeLargeFile(this.getItemURL(B.id),c,v,l)}),l):this.writeFile(t,c,"PUT",null,v,l)}else l()}))):l({message:this.invalidFilenameRegExs[0].test(D)?mxResources.get("oneDriveCharsNotAllowed"):mxResources.get("oneDriveInvalidDeviceName")})};OneDriveClient.prototype.checkExists=function(D,c,g,l){var n="/me/drive/root";null!=D&&(n=this.getItemURL(D,-!0));this.executeRequest(this.baseUrl+n+"/children/"+encodeURIComponent(c),mxUtils.bind(this,function(r){404==r.getStatus()?l(!0):g?(this.ui.spinner.stop(),this.ui.confirm(mxResources.get("replaceIt",[c]),function(){l(!0)},function(){l(!1)})):(this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){l(!1)}))}),function(r){l(!1)},!0)};OneDriveClient.prototype.saveFile=function(D,c,g,l){try{var n=D.getData(),r=mxUtils.bind(this,-function(v){var B=mxUtils.bind(this,function(K){c(K,n)}),E=this.getItemURL(D.getId());4E6<=v.length?this.writeLargeFile(E,v,B,g,l):this.writeFile(E+"/content/",v,"PUT",null,B,g,l)});if(Editor.useCanvasForExport&&/(\.png)$/i.test(D.meta.name)){var t=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(v){r(this.ui.base64ToBlob(v,"image/png"))}),g,this.ui.getCurrentFile()!=D?n:null,t.scale,t.border)}else r(n)}catch(v){g(v)}};OneDriveClient.prototype.writeLargeFile=-function(D,c,g,l,n){this.sharepointMode&&(b=k);try{if(null!=c){var r=(new TextEncoder).encode(c).length,t=mxUtils.bind(this,function(B,E,K,C){try{C=C||0;var R=!0,M=null;M=window.setTimeout(mxUtils.bind(this,function(){R=!1;l({code:App.ERROR_TIMEOUT})}),this.ui.timeout);var O=c.substr(E,4194304),U=(new TextEncoder).encode(O).length,T=new mxXmlRequest(B,O,"PUT");T.setRequestHeaders=mxUtils.bind(this,function(V,fa){V.setRequestHeader("Content-Range","bytes "+K+"-"+(K+U-1)+"/"+r)});T.send(mxUtils.bind(this,-function(V){window.clearTimeout(M);if(R){var fa=V.getStatus();200<=fa&&299>=fa?(fa=E+O.length,fa==c.length?g(JSON.parse(V.getText())):t(B,fa,K+U,C)):500<=fa&&599>=fa&&2>C?(C++,t(B,E,K,C)):l(this.parseRequestText(V),V)}}),mxUtils.bind(this,function(V){window.clearTimeout(M);R&&l(this.parseRequestText(V))}))}catch(V){l(V)}}),v=mxUtils.bind(this,function(B){try{var E=!0,K=null;try{K=window.setTimeout(mxUtils.bind(this,function(){E=!1;l({code:App.ERROR_TIMEOUT})}),this.ui.timeout)}catch(R){}var C=new mxXmlRequest(D++mxUtils.bind(this,function(O){try{c(new LocalFile(this.ui,O,t.name+this.extension,!0))}catch(U){if(null!=f)f(U);else throw U;}}),mxUtils.bind(this,function(O){null!=f&&f({message:mxResources.get("errorLoadingFile")})}),t.name):null!=C?c(C):n?c(new OneDriveLibrary(this.ui,K,t,this.sharepointMode)):c(new OneDriveFile(this.ui,K,t,this.sharepointMode))}}catch(O){if(null!=f)f(O);else throw O;}}),mxUtils.bind(this,function(K){window.clearTimeout(E);B&&f(this.parseRequestText(K))}),v||null!=t.file&&null!=+t.file.mimeType&&("image/"==t.file.mimeType.substring(0,6)&&"image/svg"!=t.file.mimeType.substring(0,9)||"application/pdf"==t.file.mimeType))}}else this.isExtAuth?f({message:mxResources.get("fileNotFoundOrDenied"),ownerEmail:null!=window.urlParams?urlParams.ownerEml:null}):f(this.parseRequestText(r))}),function(r){null!=f&&(null!=r&&null!=r.error&&"ObjectHandle is Invalid"===r.error.message&&(r.error.message=mxResources.get("fileNotFoundOrDenied")),f(r))})};OneDriveClient.prototype.renameFile=function(D,+c,f,l){null!=D&&null!=c&&(this.isValidFilename(c)?this.checkExists(D.getParentId(),c,!1,mxUtils.bind(this,function(n){n?this.writeFile(this.getItemURL(D.getId()),JSON.stringify({name:c}),"PATCH","application/json",f,l):l()})):l({message:this.invalidFilenameRegExs[0].test(c)?mxResources.get("oneDriveCharsNotAllowed"):mxResources.get("oneDriveInvalidDeviceName")}))};OneDriveClient.prototype.moveFile=function(D,c,f,l){c=this.getItemRef(c);var n=this.getItemRef(D);c.driveId!=n.driveId?l({message:mxResources.get("cannotMoveOneDrive")}):+this.writeFile(this.getItemURL(D),JSON.stringify({parentReference:c}),"PATCH","application/json",f,l)};OneDriveClient.prototype.insertLibrary=function(D,c,f,l,n){this.insertFile(D,c,f,l,!0,n)};OneDriveClient.prototype.insertFile=function(D,c,f,l,n,r){this.isValidFilename(D)?(n=null!=n?n:!1,this.checkExists(r,D,!0,mxUtils.bind(this,function(t){if(t){t="/me/drive/root";null!=r&&(t=this.getItemURL(r,!0));var v=mxUtils.bind(this,function(B){n?f(new OneDriveLibrary(this.ui,c,B,this.sharepointMode)):f(new OneDriveFile(this.ui,+c,B,this.sharepointMode))});t=this.baseUrl+t+"/children/"+encodeURIComponent(D)+"/content";4E6<=c.length?this.writeFile(t,"","PUT",null,mxUtils.bind(this,function(B){this.writeLargeFile(this.getItemURL(B.id),c,v,l)}),l):this.writeFile(t,c,"PUT",null,v,l)}else l()}))):l({message:this.invalidFilenameRegExs[0].test(D)?mxResources.get("oneDriveCharsNotAllowed"):mxResources.get("oneDriveInvalidDeviceName")})};OneDriveClient.prototype.checkExists=function(D,c,f,l){var n="/me/drive/root";null!=D&&(n=this.getItemURL(D,+!0));this.executeRequest(this.baseUrl+n+"/children/"+encodeURIComponent(c),mxUtils.bind(this,function(r){404==r.getStatus()?l(!0):f?(this.ui.spinner.stop(),this.ui.confirm(mxResources.get("replaceIt",[c]),function(){l(!0)},function(){l(!1)})):(this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){l(!1)}))}),function(r){l(!1)},!0)};OneDriveClient.prototype.saveFile=function(D,c,f,l){try{var n=D.getData(),r=mxUtils.bind(this,+function(v){var B=mxUtils.bind(this,function(K){c(K,n)}),E=this.getItemURL(D.getId());4E6<=v.length?this.writeLargeFile(E,v,B,f,l):this.writeFile(E+"/content/",v,"PUT",null,B,f,l)});if(Editor.useCanvasForExport&&/(\.png)$/i.test(D.meta.name)){var t=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(v){r(this.ui.base64ToBlob(v,"image/png"))}),f,this.ui.getCurrentFile()!=D?n:null,t.scale,t.border)}else r(n)}catch(v){f(v)}};OneDriveClient.prototype.writeLargeFile=+function(D,c,f,l,n){this.sharepointMode&&(b=k);try{if(null!=c){var r=(new TextEncoder).encode(c).length,t=mxUtils.bind(this,function(B,E,K,C){try{C=C||0;var R=!0,M=null;M=window.setTimeout(mxUtils.bind(this,function(){R=!1;l({code:App.ERROR_TIMEOUT})}),this.ui.timeout);var O=c.substr(E,4194304),U=(new TextEncoder).encode(O).length,T=new mxXmlRequest(B,O,"PUT");T.setRequestHeaders=mxUtils.bind(this,function(V,fa){V.setRequestHeader("Content-Range","bytes "+K+"-"+(K+U-1)+"/"+r)});T.send(mxUtils.bind(this,+function(V){window.clearTimeout(M);if(R){var fa=V.getStatus();200<=fa&&299>=fa?(fa=E+O.length,fa==c.length?f(JSON.parse(V.getText())):t(B,fa,K+U,C)):500<=fa&&599>=fa&&2>C?(C++,t(B,E,K,C)):l(this.parseRequestText(V),V)}}),mxUtils.bind(this,function(V){window.clearTimeout(M);R&&l(this.parseRequestText(V))}))}catch(V){l(V)}}),v=mxUtils.bind(this,function(B){try{var E=!0,K=null;try{K=window.setTimeout(mxUtils.bind(this,function(){E=!1;l({code:App.ERROR_TIMEOUT})}),this.ui.timeout)}catch(R){}var C=new mxXmlRequest(D+"/createUploadSession","{}","POST");C.setRequestHeaders=mxUtils.bind(this,function(R,M){R.setRequestHeader("Content-Type","application/json");R.setRequestHeader("Authorization","Bearer "+b);null!=n&&R.setRequestHeader("If-Match",n)});C.send(mxUtils.bind(this,function(R){window.clearTimeout(K);E&&(200<=R.getStatus()&&299>=R.getStatus()?(R=JSON.parse(R.getText()),t(R.uploadUrl,0,0)):B||401!==R.getStatus()?l(this.parseRequestText(R),R):this.authenticate(function(){v(!0)},l,B,this.sharepointMode))}),-mxUtils.bind(this,function(R){window.clearTimeout(K);E&&l(this.parseRequestText(R))}))}catch(R){l(R)}});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(function(){v(!0)},l,null,this.sharepointMode):v(!1)}else l({message:mxResources.get("unknownError")})}catch(B){l(B)}};OneDriveClient.prototype.writeFile=function(D,c,g,l,n,r,t){this.sharepointMode&&(b=k);try{if(null!=D&&null!=c){var v=mxUtils.bind(this,function(B){try{var E=!0,K=null;try{K=window.setTimeout(mxUtils.bind(this,function(){E=-!1;r({code:App.ERROR_TIMEOUT})}),this.ui.timeout)}catch(R){}var C=new mxXmlRequest(D,c,g);C.setRequestHeaders=mxUtils.bind(this,function(R,M){R.setRequestHeader("Content-Type",l||" ");R.setRequestHeader("Authorization","Bearer "+b);null!=t&&R.setRequestHeader("If-Match",t)});C.send(mxUtils.bind(this,function(R){window.clearTimeout(K);E&&(200<=R.getStatus()&&299>=R.getStatus()?(null==this.user&&this.updateUser(this.emptyFn,this.emptyFn,!0),n(JSON.parse(R.getText()))):B||401!==R.getStatus()?r(this.parseRequestText(R),+mxUtils.bind(this,function(R){window.clearTimeout(K);E&&l(this.parseRequestText(R))}))}catch(R){l(R)}});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(function(){v(!0)},l,null,this.sharepointMode):v(!1)}else l({message:mxResources.get("unknownError")})}catch(B){l(B)}};OneDriveClient.prototype.writeFile=function(D,c,f,l,n,r,t){this.sharepointMode&&(b=k);try{if(null!=D&&null!=c){var v=mxUtils.bind(this,function(B){try{var E=!0,K=null;try{K=window.setTimeout(mxUtils.bind(this,function(){E=+!1;r({code:App.ERROR_TIMEOUT})}),this.ui.timeout)}catch(R){}var C=new mxXmlRequest(D,c,f);C.setRequestHeaders=mxUtils.bind(this,function(R,M){R.setRequestHeader("Content-Type",l||" ");R.setRequestHeader("Authorization","Bearer "+b);null!=t&&R.setRequestHeader("If-Match",t)});C.send(mxUtils.bind(this,function(R){window.clearTimeout(K);E&&(200<=R.getStatus()&&299>=R.getStatus()?(null==this.user&&this.updateUser(this.emptyFn,this.emptyFn,!0),n(JSON.parse(R.getText()))):B||401!==R.getStatus()?r(this.parseRequestText(R),R):this.authenticate(function(){v(!0)},r,B,this.sharepointMode))}),mxUtils.bind(this,function(R){window.clearTimeout(K);E&&r(this.parseRequestText(R))}))}catch(R){r(R)}});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(function(){v(!0)},r,null,this.sharepointMode):v(!1)}else r({message:mxResources.get("unknownError")})}catch(B){r(B)}};OneDriveClient.prototype.parseRequestText=function(D){var c={message:mxResources.get("unknownError")};try{c=JSON.parse(D.getText()),c.status=D.getStatus(),-c.error&&(c.error.status=c.status,c.error.code=c.status)}catch(g){}return c};OneDriveClient.prototype.pickLibrary=function(D){this.pickFile(function(c){D(c)})};OneDriveClient.prototype.createInlinePicker=function(D,c,g){return mxUtils.bind(this,function(){var l=null,n=document.createElement("div");n.style.position="relative";var r=new CustomDialog(this.ui,n,mxUtils.bind(this,function(){var t=l.getSelectedItem();if(null!=t)if(c&&"object"==typeof t.folder)D({value:[t]});else{if(!t.folder&&this.ui.spinner.spin(document.body,+c.error&&(c.error.status=c.status,c.error.code=c.status)}catch(f){}return c};OneDriveClient.prototype.pickLibrary=function(D){this.pickFile(function(c){D(c)})};OneDriveClient.prototype.createInlinePicker=function(D,c,f){return mxUtils.bind(this,function(){var l=null,n=document.createElement("div");n.style.position="relative";var r=new CustomDialog(this.ui,n,mxUtils.bind(this,function(){var t=l.getSelectedItem();if(null!=t)if(c&&"object"==typeof t.folder)D({value:[t]});else{if(!t.folder&&this.ui.spinner.spin(document.body,mxResources.get("loading"))){var v=OneDriveFile.prototype.getIdOf(t);this.executeRequest(this.getItemURL(v),mxUtils.bind(this,function(B){this.ui.spinner.stop();200<=B.getStatus()&&299>=B.getStatus()?(B=JSON.parse(B.getText()),D(v,{value:[B]})):this.ui.handleError({code:B.getStatus()})}),mxUtils.bind(this,function(B){this.ui.spinner.stop();this.ui.handleError(B)}))}}else return mxResources.get("invalidSel")}),null,mxResources.get(c?"select":"open"),null,null,null,null,!0);this.ui.showDialog(r.container,550,500,!0,!0);n.style.width=parseInt(r.container.parentNode.style.width)-60+"px";n.style.height=parseInt(r.container.parentNode.style.height)-120+"px";l=new mxODPicker(n,null,mxUtils.bind(this,function(t,v,B,E){this.executeRequest(E?t:this.baseUrl+t,function(K){v(JSON.parse(K.getText()))},B)}),mxUtils.bind(this,function(t,v,B,E){this.executeRequest(this.baseUrl+"/drives/"+v+"/items/"+t,function(K){B(JSON.parse(K.getText()))},E)}),null,null,function(t){c?D({value:[t]}):D(OneDriveFile.prototype.getIdOf(t))},-mxUtils.bind(this,function(t){this.ui.showError(mxResources.get("error"),t)}),c,null,null,null,null,g)})};var F=function(){null!=z&&(clearInterval(z),z=null);if(null!=x){try{window.removeEventListener("message",x)}catch(D){}x=null}if(null!=q){try{q.close&&q.close()}catch(D){}q=null}if(null!=u)try{u.closed||u.close()}catch(D){}u=null},J=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(D){var c=16*Math.random()|0;return("x"===D?c:c&3|8).toString(16)})};OneDriveClient.prototype.createPickerConfig=+mxUtils.bind(this,function(t){this.ui.showError(mxResources.get("error"),t)}),c,null,null,null,null,f)})};var F=function(){null!=z&&(clearInterval(z),z=null);if(null!=x){try{window.removeEventListener("message",x)}catch(D){}x=null}if(null!=q){try{q.close&&q.close()}catch(D){}q=null}if(null!=u)try{u.closed||u.close()}catch(D){}u=null},J=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(D){var c=16*Math.random()|0;return("x"===D?c:c&3|8).toString(16)})};OneDriveClient.prototype.createPickerConfig=function(D,c){return{sdk:this.PICKER_SDK_VERSION,entry:{sharePoint:{byPath:{web:c}}},authentication:{},messaging:{origin:location.origin,channelId:J()},typesAndSources:Object.assign({},{mode:D},"files"===D&&{filters:this.FILE_EXTENSIONS},{pivots:{oneDrive:!0,recent:!0,shared:!1,sharedLibraries:!0,myOrganization:!1,site:!0}}),selection:{mode:"single"},theme:Editor.isDarkMode()?"dark":"default"}};OneDriveClient.prototype.setupPickerMessageListener=function(D,c){if(null!=x){try{window.removeEventListener("message",-x)}catch(l){}x=null}var g=function(l){if(l.source&&l.source===u){var n=l.data;"initialize"===n.type&&n.channelId===D&&(q=l.ports[0],q.addEventListener("message",c),q.start(),q.postMessage({type:"activate"}))}};x=g;window.addEventListener("message",g)};var H=function(D,c){var g,l;return $jscomp.asyncExecutePromiseGeneratorProgram(function(n){q.postMessage({type:"acknowledge",id:D.id});g=D.data;try{switch(g.command){case "authenticate":if(l=m)q.postMessage({type:"result",id:D.id,data:{result:"token",-token:l}});else throw Error("Could not get auth token for command: "+JSON.stringify(g));break;case "close":F();break;case "pick":q.postMessage({type:"result",id:D.id,data:{result:"success"}});F();c(g);break;default:console.warn("Unsupported command: "+JSON.stringify(g)),q.postMessage({type:"result",id:D.id,data:{result:"error",error:{code:"unsupportedCommand",message:g.command},isExpected:!0}})}}catch(r){console.error("Error handling picker command:",r),q.postMessage({type:"result",id:D.id,data:{result:"error",-error:{code:"commandError",message:r.message},isExpected:!0}})}n.jumpToEnd()})};OneDriveClient.prototype.handleFolderPickerMessage=function(D){var c,g;return $jscomp.asyncExecutePromiseGeneratorProgram(function(l){if(1==l.nextAddress){c=D;g=c.data;switch(g.type){case "command":return l.jumpTo(2)}return l.jumpTo(0)}return 4!=l.nextAddress?l.yield(H(g,function(n){f({value:n.items})}),4):l.jumpTo(0)})};OneDriveClient.prototype.handleFilePickerMessage=function(D){var c,g;return $jscomp.asyncExecutePromiseGeneratorProgram(function(l){if(1==-l.nextAddress){c=D;g=c.data;switch(g.type){case "command":return l.jumpTo(2)}return l.jumpTo(0)}return 4!=l.nextAddress?l.yield(H(g,function(n){n=n.items[0];f((null!=n.parentReference&&null!=n.parentReference.driveId?n.parentReference.driveId+"/":"")+(n.id+(n.folder&&n.folder.isRoot?"/root":"")))}),4):l.jumpTo(0)})};OneDriveClient.prototype.pickFile=function(D,c){this.sharepointMode?this.pickFileSP(D,c):this.pickFileOD(D,c)};OneDriveClient.prototype.pickFolder=function(D,c){var g=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(l){g.sharepointMode?-g.pickFolderSP(D,c):g.pickFolderOD(D,c);l.jumpToEnd()})};OneDriveClient.prototype.pickFileSP=function(D,c){var g;D=null!=(g=D)?g:mxUtils.bind(this,function(l){this.ui.loadFile("M"+encodeURIComponent(l))});this.launchPicker(D,"files")};OneDriveClient.prototype.pickFolderSP=function(D,c){var g=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(l){g.launchPicker(D,"folders");l.jumpToEnd()})};OneDriveClient.prototype.launchPicker=function(D,c){var g=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(l){try{f=-D,F(),g.executeRequest(g.baseUrl+"/me/drive",mxUtils.bind(g,function(n){if(200<=n.getStatus()&&299>=n.getStatus()){n=JSON.parse(n.getText()).webUrl;if(null!=n){var r=n.lastIndexOf("/");0<r&&(n=n.substring(0,r))}r=this.createPickerConfig(c,n);var t=new URLSearchParams({filePicker:JSON.stringify(r)});u=window.open("","SharePointPicker","width=1080,height=680,left="+(screen.width-1080)/2+",top="+(screen.height-680)/2+",menubar=no,toolbar=no,location=no,status=no");null==u?(this.ui.showError(mxResources.get("error"),-"Popup blocked. Please allow popups for this site."),F()):(n=n+"/_layouts/15/FilePicker.aspx?"+t,this.setupPickerMessageListener(r.messaging.channelId,"files"===c?this.handleFilePickerMessage:this.handleFolderPickerMessage),u.location.href=n,z=setInterval(function(){(null==u||u.closed)&&F()},500))}else this.ui.handleError({code:n.getStatus()})}),mxUtils.bind(g,function(n){this.ui.handleError(n)}))}catch(n){F(),g.ui.showError(mxResources.get("error"),n&&n.message?n.message:n)}l.jumpToEnd()})};OneDriveClient.prototype.pickFolderOD=-function(D,c){var g=mxUtils.bind(this,function(n){this.ui.showError(mxResources.get("error"),n&&n.message?n.message:n)}),l=mxUtils.bind(this,function(n){var r=this.inlinePicker?this.createInlinePicker(D,!0):mxUtils.bind(this,function(){OneDrive.save({clientId:this.clientId,action:"query",openInNewWindow:!0,advanced:{endpointHint:this.endpointHint,redirectUri:this.pickerRedirectUri,queryParameters:"select=id,name,parentReference",accessToken:b,isConsumerAccount:!1},success:mxUtils.bind(this,function(t){D(t)}),-cancel:mxUtils.bind(this,function(){}),error:g})});n?r():this.ui.confirm(mxResources.get("useRootFolder"),mxUtils.bind(this,function(){D({value:[this.rootId]})}),r,mxResources.get("yes"),mxResources.get("noPickFolder")+"...",!0);null==this.user&&this.updateUser(this.emptyFn,this.emptyFn,!0)});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(mxUtils.bind(this,function(){l(this.inlinePicker&&c)}),g):l(c)};OneDriveClient.prototype.pickFileOD=function(D,c){D=null!=D?D:mxUtils.bind(this,function(n){this.ui.loadFile("W"+-encodeURIComponent(n))});var g=mxUtils.bind(this,function(n){this.ui.showError(mxResources.get("authFailed"),n&&n.message?n.message:n)}),l=this.inlinePicker?this.createInlinePicker(D,null,c):mxUtils.bind(this,function(){OneDrive.open({clientId:this.clientId,action:"query",multiSelect:!1,advanced:{endpointHint:this.endpointHint,redirectUri:this.pickerRedirectUri,queryParameters:"select=id,name,parentReference,webUrl",accessToken:b,isConsumerAccount:!1},success:mxUtils.bind(this,function(n){null!=n&&-null!=n.value&&0<n.value.length&&D(OneDriveFile.prototype.getIdOf(n.value[0]),n)}),cancel:mxUtils.bind(this,function(){}),error:g});null==this.user&&this.updateUser(this.emptyFn,this.emptyFn,!0)});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(mxUtils.bind(this,function(){this.inlinePicker?l():this.ui.showDialog((new BtnDialog(this.ui,this,mxResources.get("open"),mxUtils.bind(this,function(){this.ui.hideDialog();l()}))).container,300,140,!0,!0)}),g):l()};OneDriveClient.prototype.logout=+x)}catch(l){}x=null}var f=function(l){if(l.source&&l.source===u){var n=l.data;"initialize"===n.type&&n.channelId===D&&(q=l.ports[0],q.addEventListener("message",c),q.start(),q.postMessage({type:"activate"}))}};x=f;window.addEventListener("message",f)};var H=function(D,c){var f,l;return $jscomp.asyncExecutePromiseGeneratorProgram(function(n){q.postMessage({type:"acknowledge",id:D.id});f=D.data;try{switch(f.command){case "authenticate":if(l=m)q.postMessage({type:"result",id:D.id,data:{result:"token",+token:l}});else throw Error("Could not get auth token for command: "+JSON.stringify(f));break;case "close":F();break;case "pick":q.postMessage({type:"result",id:D.id,data:{result:"success"}});F();c(f);break;default:console.warn("Unsupported command: "+JSON.stringify(f)),q.postMessage({type:"result",id:D.id,data:{result:"error",error:{code:"unsupportedCommand",message:f.command},isExpected:!0}})}}catch(r){console.error("Error handling picker command:",r),q.postMessage({type:"result",id:D.id,data:{result:"error",+error:{code:"commandError",message:r.message},isExpected:!0}})}n.jumpToEnd()})};OneDriveClient.prototype.handleFolderPickerMessage=function(D){var c,f;return $jscomp.asyncExecutePromiseGeneratorProgram(function(l){if(1==l.nextAddress){c=D;f=c.data;switch(f.type){case "command":return l.jumpTo(2)}return l.jumpTo(0)}return 4!=l.nextAddress?l.yield(H(f,function(n){g({value:n.items})}),4):l.jumpTo(0)})};OneDriveClient.prototype.handleFilePickerMessage=function(D){var c,f;return $jscomp.asyncExecutePromiseGeneratorProgram(function(l){if(1==+l.nextAddress){c=D;f=c.data;switch(f.type){case "command":return l.jumpTo(2)}return l.jumpTo(0)}return 4!=l.nextAddress?l.yield(H(f,function(n){n=n.items[0];g((null!=n.parentReference&&null!=n.parentReference.driveId?n.parentReference.driveId+"/":"")+(n.id+(n.folder&&n.folder.isRoot?"/root":"")))}),4):l.jumpTo(0)})};OneDriveClient.prototype.pickFile=function(D,c){this.sharepointMode?this.pickFileSP(D,c):this.pickFileOD(D,c)};OneDriveClient.prototype.pickFolder=function(D,c){var f=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(l){f.sharepointMode?+f.pickFolderSP(D,c):f.pickFolderOD(D,c);l.jumpToEnd()})};OneDriveClient.prototype.pickFileSP=function(D,c){var f;D=null!=(f=D)?f:mxUtils.bind(this,function(l){this.ui.loadFile("M"+encodeURIComponent(l))});this.launchPicker(D,"files")};OneDriveClient.prototype.pickFolderSP=function(D,c){var f=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(l){f.launchPicker(D,"folders");l.jumpToEnd()})};OneDriveClient.prototype.launchPicker=function(D,c){var f=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(l){try{g=+D,F(),f.executeRequest(f.baseUrl+"/me/drive",mxUtils.bind(f,function(n){if(200<=n.getStatus()&&299>=n.getStatus()){n=JSON.parse(n.getText()).webUrl;if(null!=n){var r=n.lastIndexOf("/");0<r&&(n=n.substring(0,r))}r=this.createPickerConfig(c,n);var t=new URLSearchParams({filePicker:JSON.stringify(r)});u=window.open("","SharePointPicker","width=1080,height=680,left="+(screen.width-1080)/2+",top="+(screen.height-680)/2+",menubar=no,toolbar=no,location=no,status=no");null==u?(this.ui.showError(mxResources.get("error"),+"Popup blocked. Please allow popups for this site."),F()):(n=n+"/_layouts/15/FilePicker.aspx?"+t,this.setupPickerMessageListener(r.messaging.channelId,"files"===c?this.handleFilePickerMessage:this.handleFolderPickerMessage),u.location.href=n,z=setInterval(function(){(null==u||u.closed)&&F()},500))}else this.ui.handleError({code:n.getStatus()})}),mxUtils.bind(f,function(n){this.ui.handleError(n)}))}catch(n){F(),f.ui.showError(mxResources.get("error"),n&&n.message?n.message:n)}l.jumpToEnd()})};OneDriveClient.prototype.pickFolderOD=+function(D,c){var f=mxUtils.bind(this,function(n){this.ui.showError(mxResources.get("error"),n&&n.message?n.message:n)}),l=mxUtils.bind(this,function(n){var r=this.inlinePicker?this.createInlinePicker(D,!0):mxUtils.bind(this,function(){OneDrive.save({clientId:this.clientId,action:"query",openInNewWindow:!0,advanced:{endpointHint:this.endpointHint,redirectUri:this.pickerRedirectUri,queryParameters:"select=id,name,parentReference",accessToken:b,isConsumerAccount:!1},success:mxUtils.bind(this,function(t){D(t)}),+cancel:mxUtils.bind(this,function(){}),error:f})});n?r():this.ui.confirm(mxResources.get("useRootFolder"),mxUtils.bind(this,function(){D({value:[this.rootId]})}),r,mxResources.get("yes"),mxResources.get("noPickFolder")+"...",!0);null==this.user&&this.updateUser(this.emptyFn,this.emptyFn,!0)});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(mxUtils.bind(this,function(){l(this.inlinePicker&&c)}),f):l(c)};OneDriveClient.prototype.pickFileOD=function(D,c){D=null!=D?D:mxUtils.bind(this,function(n){this.ui.loadFile("W"++encodeURIComponent(n))});var f=mxUtils.bind(this,function(n){this.ui.showError(mxResources.get("authFailed"),n&&n.message?n.message:n)}),l=this.inlinePicker?this.createInlinePicker(D,null,c):mxUtils.bind(this,function(){OneDrive.open({clientId:this.clientId,action:"query",multiSelect:!1,advanced:{endpointHint:this.endpointHint,redirectUri:this.pickerRedirectUri,queryParameters:"select=id,name,parentReference,webUrl",accessToken:b,isConsumerAccount:!1},success:mxUtils.bind(this,function(n){null!=n&&+null!=n.value&&0<n.value.length&&D(OneDriveFile.prototype.getIdOf(n.value[0]),n)}),cancel:mxUtils.bind(this,function(){}),error:f});null==this.user&&this.updateUser(this.emptyFn,this.emptyFn,!0)});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(mxUtils.bind(this,function(){this.inlinePicker?l():this.ui.showDialog((new BtnDialog(this.ui,this,mxResources.get("open"),mxUtils.bind(this,function(){this.ui.hideDialog();l()}))).container,300,140,!0,!0)}),f):l()};OneDriveClient.prototype.logout=function(){if(isLocalStorage){var D=localStorage.getItem("odpickerv7cache");null!=D&&'{"odsdkLoginHint":{'==D.substring(0,19)&&localStorage.removeItem("odpickerv7cache")}window.open(this.authUrl+"/oauth2/v2.0/logout","logout","width=525,height=525,status=no,resizable=yes,toolbar=no,menubar=no,scrollbars=yes");this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken();this.setUser(null);b=null;this.sharepointMode&&(k=m=null)}})();GitHubFile=function(b,k,m){DrawioFile.call(this,b,k);this.meta=m;this.peer=this.ui.gitHub};mxUtils.extend(GitHubFile,DrawioFile);GitHubFile.prototype.share=function(){this.ui.editor.graph.openLink("https://github.com/"+encodeURIComponent(this.meta.org)+"/"+encodeURIComponent(this.meta.repo)+"/settings/access")};GitHubFile.prototype.getId=function(){return encodeURIComponent(this.meta.org)+"/"+(null!=this.meta.repo?encodeURIComponent(this.meta.repo)+"/"+(null!=this.meta.ref?this.meta.ref+(null!=this.meta.path?"/"+this.meta.path:""):""):"")};GitHubFile.prototype.getHash=function(){return encodeURIComponent("H"+this.getId())};GitHubFile.prototype.getFileUrl=function(){return"https://github.com/"+encodeURIComponent(this.meta.org)+"/"+encodeURIComponent(this.meta.repo)+"/blob/"+this.meta.ref+"/"+this.meta.path};GitHubFile.prototype.getFolderUrl=function(){return"https://github.com/"+encodeURIComponent(this.meta.org)+"/"+encodeURIComponent(this.meta.repo)+"/tree/"+this.meta.ref+"/"+this.meta.path.split("/").slice(0,-1).join("/")};GitHubFile.prototype.getPublicUrl=function(b){if(null!=this.meta.download_url)try{""!=(new URL(this.meta.download_url)).search?b(null):mxUtils.get(this.meta.download_url,mxUtils.bind(this,function(k){b(200<=k.getStatus()&&299>=k.getStatus()?this.meta.download_url:null)}),mxUtils.bind(this,function(){b(null)}))}catch(k){b(null)}else b(null)};GitHubFile.prototype.isConflict=function(b){return null!=b&&409==b.status};GitHubFile.prototype.getMode=function(){return App.MODE_GITHUB};GitHubFile.prototype.isAutosave=function(){return!1};GitHubFile.prototype.getTitle=function(){return this.meta.name};GitHubFile.prototype.isRenamable=function(){return!1};GitHubFile.prototype.getLatestVersion=function(b,k){this.peer.getFile(this.getId(),b,k)};GitHubFile.prototype.getDescriptor=function(){return this.meta};GitHubFile.prototype.setDescriptor=function(b){this.meta=b};GitHubFile.prototype.getDescriptorEtag=function(b){return b.sha};-GitHubFile.prototype.setDescriptorEtag=function(b,k){b.sha=k};GitHubFile.prototype.save=function(b,k,m,f,q,u){this.doSave(this.getTitle(),k,m,f,q,u)};GitHubFile.prototype.saveAs=function(b,k,m){this.doSave(b,k,m)};GitHubFile.prototype.doSave=function(b,k,m,f,q,u){var x=this.meta.name;this.meta.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.meta.name=x;this.saveFile(b,!1,k,m,f,q,u)}),m,f,q])};-GitHubFile.prototype.saveFile=function(b,k,m,f,q,u,x){if(this.isEditable())if(this.savingFile)null!=f&&f({code:App.ERROR_BUSY});else{var z=mxUtils.bind(this,function(F){if(this.getTitle()==b)try{this.savingFileTime=new Date;this.setShadowModified(!1);this.savingFile=!0;var J=this.getCurrentEtag(),H=this.data;this.peer.saveFile(this,mxUtils.bind(this,function(D){this.setModified(this.getShadowModified());this.savingFile=!1;this.setDescriptorEtag(this.meta,D);this.fileSaved(H,J,mxUtils.bind(this,function(){this.contentChanged();-null!=m&&m()}),f)}),mxUtils.bind(this,function(D){this.savingFile=!1;this.isConflict(D)?(this.inConflictState=!0,null!=f&&(D.commitMessage=F,f(D))):null!=f&&f(D)}),u,F)}catch(D){if(this.savingFile=!1,null!=f)f(D);else throw D;}else this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.ui.pickFolder(this.getMode(),mxUtils.bind(this,function(D){this.peer.insertFile(b,this.getData(),mxUtils.bind(this,function(c){this.setModified(this.getShadowModified());this.savingFile=!1;-null!=m&&m();this.ui.fileLoaded(c)}),mxUtils.bind(this,function(){this.savingFile=!1;null!=f&&f()}),!1,D,F)}))});null!=x?z(x):this.peer.showCommitDialog(this.meta.name,null==this.getDescriptorEtag(this.meta)||this.meta.isNew,mxUtils.bind(this,function(F){z(F)}),f)}else null!=m&&m()};GitHubLibrary=function(b,k,m){GitHubFile.call(this,b,k,m)};mxUtils.extend(GitHubLibrary,GitHubFile);GitHubLibrary.prototype.doSave=function(b,k,m){this.saveFile(b,!1,k,m)};GitHubLibrary.prototype.open=function(){};(function(){var b=null;window.GitHubClient=function(k,m){DrawioClient.call(this,k,m||"ghauth")};mxUtils.extend(GitHubClient,DrawioClient);GitHubClient.prototype.clientId="test.draw.io"==window.location.hostname?"Iv1.1218f5567fbc258a":window.DRAWIO_GITHUB_ID;GitHubClient.prototype.extension=".drawio";GitHubClient.prototype.baseUrl=DRAWIO_GITHUB_API_URL;GitHubClient.prototype.baseHostUrl=DRAWIO_GITHUB_URL;GitHubClient.prototype.redirectUri=window.DRAWIO_SERVER_URL+"github2";GitHubClient.prototype.maxFileSize=-5E7;GitHubClient.prototype.authToken="token";GitHubClient.prototype.setToken=function(k){b=k};GitHubClient.prototype.updateUser=function(k,m,f){var q=!0,u=window.setTimeout(mxUtils.bind(this,function(){q=!1;m({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout),x=new mxXmlRequest(this.baseUrl+"/user",null,"GET"),z=this.authToken+" "+b;x.setRequestHeaders=function(F,J){F.setRequestHeader("Authorization",z)};x.send(mxUtils.bind(this,function(){window.clearTimeout(u);q&&(401===-x.getStatus()?f?m({code:x.getStatus(),message:this.getErrorMessage(x,mxResources.get("accessDenied"))}):(this.logout(),this.authenticate(mxUtils.bind(this,function(){this.updateUser(k,m,!0)}),m)):200>x.getStatus()||300<=x.getStatus()?m({message:mxResources.get("accessDenied")}):(this.setUser(this.createUser(JSON.parse(x.getText()))),k()))}),m)};GitHubClient.prototype.createUser=function(k){return new DrawioUser(k.id,k.email,k.name)};GitHubClient.prototype.authenticate=function(k,m){(new mxXmlRequest(this.redirectUri+-"?getState=1",null,"GET")).send(mxUtils.bind(this,function(f){200<=f.getStatus()&&299>=f.getStatus()?this.authenticateStep2(f.getText(),k,m):null!=m&&m(f)}),m)};GitHubClient.prototype.authenticateStep2=function(k,m,f){if(null==window.onGitHubCallback){var q=mxUtils.bind(this,function(){var u=!0;null!=this.getPersistentToken(!0)?(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+k),null,"GET")).send(mxUtils.bind(this,function(x){if(200<=-x.getStatus()&&299>=x.getStatus())try{b=JSON.parse(x.getText()).access_token,this.setUser(null),m()}catch(z){f({message:mxResources.get("authFailed"),retry:q})}else this.clearPersistentToken(),this.setUser(null),b=null,401==x.getStatus()?q():f({message:mxResources.get("accessDenied"),retry:q})}),f):this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(x,z){null!=window.open(this.baseHostUrl+"/login/oauth/authorize?client_id="+this.clientId+"&state="+encodeURIComponent("cId="+this.clientId+"&domain="+-window.location.host+"&token="+k),"ghauth")?window.onGitHubCallback=mxUtils.bind(this,function(F,J){u?(window.onGitHubCallback=null,u=!1,null==F?f({message:mxResources.get("accessDenied"),retry:q}):(null!=z&&z(),b=F.access_token,this.setUser(null),x&&this.setPersistentToken("remembered"),m(),null!=J&&J.close())):null!=J&&J.close()}):f({message:mxResources.get("serviceUnavailableOrBlocked"),retry:q})}),mxUtils.bind(this,function(){u&&(window.onGitHubCallback=null,u=!1,f({message:mxResources.get("accessDenied"),-retry:q}))}))});q()}else f({code:App.ERROR_BUSY})};GitHubClient.prototype.getErrorMessage=function(k,m){try{var f=JSON.parse(k.getText());null!=f&&null!=f.message&&(m=f.message)}catch(q){}return m};GitHubClient.prototype.showAuthorizeDialog=function(k,m){this.ui.showError(mxResources.get("accessDenied"),mxResources.get("authorizationRequired"),mxResources.get("help"),mxUtils.bind(this,function(){this.ui.openLink("https://www.drawio.com/blog/single-repository-diagrams")}),k,mxResources.get("authorize"),-mxUtils.bind(this,function(){this.ui.openLink("test.draw.io"==window.location.hostname?"https://github.com/apps/diagrams-net-app-test":"https://github.com/apps/draw-io-app")}),mxResources.get("cancel"),m,480,null,!1)};GitHubClient.prototype.executeRequest=function(k,m,f,q,u){var x=mxUtils.bind(this,function(F){var J=!0,H=window.setTimeout(mxUtils.bind(this,function(){J=!1;f({code:App.ERROR_TIMEOUT,retry:z})}),this.ui.timeout),D=this.authToken+" "+b;k.setRequestHeaders=function(c,g){c.setRequestHeader("Authorization",-D)};k.send(mxUtils.bind(this,function(){window.clearTimeout(H);var c=mxUtils.bind(this,function(){var n=this.ui.spinner.pause();this.showAuthorizeDialog(mxUtils.bind(this,function(){n();z()}),mxUtils.bind(this,function(){this.ui.hideDialog();f({name:"AbortError"})}))});if(J)if(200<=k.getStatus()&&299>=k.getStatus()||q&&404==k.getStatus())m(k);else if(401===k.getStatus())F?f({code:k.getStatus(),message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){z(!0)},-f)})}):this.authenticate(function(){x(!0)},f);else if(403===k.getStatus()){var g=!1;try{var l=JSON.parse(k.getText());null!=l&&"Resource not accessible by integration"==l.message?c():(null!=l&&null!=l.errors&&0<l.errors.length&&(g="too_large"==l.errors[0].code),f({message:mxResources.get(g?"drawingTooLarge":"forbidden")}))}catch(n){f({message:mxResources.get(g?"drawingTooLarge":"forbidden")})}}else 404===k.getStatus()?u?f({code:k.getStatus(),message:this.getErrorMessage(k,mxResources.get("fileNotFound"))}):-c():409===k.getStatus()?f({code:k.getStatus(),status:409}):f({code:k.getStatus(),message:this.getErrorMessage(k,mxResources.get("error")+" "+k.getStatus())})}),mxUtils.bind(this,function(c){window.clearTimeout(H);J&&f(c)}))}),z=mxUtils.bind(this,function(F){null==this.user?this.updateUser(function(){z(!0)},f,F):x(F)});null==b?this.authenticate(function(){z(!0)},f):z(!1)};GitHubClient.prototype.getLibrary=function(k,m,f){this.getFile(k,m,f,!0)};GitHubClient.prototype.getSha=function(k,m,f,q,u,x,z){var F=-"&t="+(new Date).getTime();k=new mxXmlRequest(this.baseUrl+"/repos/"+k+"/"+m+"/contents/"+f+"?ref="+q+F,null,"HEAD");this.executeRequest(k,mxUtils.bind(this,function(J){try{u(J.request.getResponseHeader("Etag").match(/"([^"]+)"/)[1])}catch(H){x(H)}}),x,null,z)};GitHubClient.prototype.getFile=function(k,m,f,q,u){q=null!=q?q:!1;var x=k.split("/"),z=x[0],F=x[1],J=x[2];k=x.slice(3,x.length).join("/");x=/\.png$/i.test(k);if(!u&&(/\.v(dx|sdx?)$/i.test(k)||/\.gliffy$/i.test(k)||/\.pdf$/i.test(k)||!Editor.useCanvasForExport&&-x))if(null!=b){u=this.baseUrl+"/repos/"+z+"/"+F+"/contents/"+k+"?ref="+J;var H={Authorization:"token "+b};x=k.split("/");this.ui.convertFile(u,0<x.length?x[x.length-1]:k,null,this.extension,m,f,null,H)}else f({message:mxResources.get("accessDenied")});else x="&t="+(new Date).getTime(),k=new mxXmlRequest(this.baseUrl+"/repos/"+z+"/"+F+"/contents/"+k+"?ref="+J+x,null,"GET"),this.executeRequest(k,mxUtils.bind(this,function(D){try{var c=JSON.parse(D.getText());if(""==c.content&&null!=c.git_url){var g=-new mxXmlRequest(c.git_url,null,"GET");this.executeRequest(g,mxUtils.bind(this,function(l){l=JSON.parse(l.getText());""!=l.content?(c.content=l.content,c.encoding=l.encoding,m(this.createGitHubFile(z,F,J,c,q))):f({message:mxResources.get("errorLoadingFile")})}),f)}else m(this.createGitHubFile(z,F,J,c,q))}catch(l){f(l)}}),f)};GitHubClient.prototype.createGitHubFile=function(k,m,f,q,u){k={org:k,repo:m,ref:f,name:q.name,path:q.path,sha:q.sha,html_url:q.html_url,download_url:q.download_url};m=q.content;-"base64"===q.encoding&&(/\.jpe?g$/i.test(q.name)?m="data:image/jpeg;base64,"+m:/\.gif$/i.test(q.name)?m="data:image/gif;base64,"+m:/\.png$/i.test(q.name)?(q=this.ui.extractGraphModelFromPng(m),m=null!=q&&0<q.length?q:"data:image/png;base64,"+m):m=Base64.decode(m));return u?new GitHubLibrary(this.ui,m,k):new GitHubFile(this.ui,m,k)};GitHubClient.prototype.insertLibrary=function(k,m,f,q,u){this.insertFile(k,m,f,q,!0,u,!1)};GitHubClient.prototype.insertFile=function(k,m,f,q,u,x,z){u=null!=u?u:!1;x=x.split("/");-var F=x[0],J=x[1],H=x[2],D=x.slice(3,x.length).join("/");0<D.length&&(D+="/");D+=k;this.checkExists(F+"/"+J+"/"+H+"/"+D,!0,mxUtils.bind(this,function(c,g){c?u?(z||(m=Base64.encode(m)),this.showCommitDialog(k,!0,mxUtils.bind(this,function(l){this.writeFile(F,J,H,D,l,m,g,mxUtils.bind(this,function(n){try{var r=JSON.parse(n.getText());f(this.createGitHubFile(F,J,H,r.content,u))}catch(t){q(t)}}),q)}),q)):f(new GitHubFile(this.ui,m,{org:F,repo:J,ref:H,name:k,path:D,sha:g,isNew:!0})):q()}))};GitHubClient.prototype.showCommitDialog=-function(k,m,f,q){var u=this.ui.spinner.pause();k=new FilenameDialog(this.ui,mxResources.get(m?"addedFile":"updateFile",[k]),mxResources.get("ok"),mxUtils.bind(this,function(x){u(function(){f(x)})}),mxResources.get("commitMessage"),null,null,null,null,mxUtils.bind(this,function(){q()}));this.ui.showDialog(k.container,400,80,!0,!1);k.init()};GitHubClient.prototype.writeFile=function(k,m,f,q,u,x,z,F,J){x.length>=this.maxFileSize?J({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(x.length)+-" / 1 MB)"}):(f={path:q,branch:decodeURIComponent(f),message:u,content:x},null!=z&&(f.sha=z),k=new mxXmlRequest(this.baseUrl+"/repos/"+k+"/"+m+"/contents/"+q,JSON.stringify(f),"PUT"),this.executeRequest(k,mxUtils.bind(this,function(H){F(H)}),mxUtils.bind(this,function(H){404==H.code&&(H.helpLink=this.baseHostUrl+"/settings/connections/applications/"+this.clientId,H.code=null);J(H)})))};GitHubClient.prototype.checkExists=function(k,m,f){var q=k.split("/"),u=q[0],x=q[1],z=q[2];k=q.slice(3,q.length).join("/");-this.getSha(u,x,k,z,mxUtils.bind(this,function(F){if(m){var J=this.ui.spinner.pause();this.ui.confirm(mxResources.get("replaceIt",[k]),function(){J();f(!0,F)},function(){J();f(!1)})}else this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){f(!1)})}),mxUtils.bind(this,function(F){f(!0)}),!0)};GitHubClient.prototype.saveFile=function(k,m,f,q,u){var x=k.meta.org,z=k.meta.repo,F=k.meta.ref,J=k.meta.path,H=mxUtils.bind(this,function(c,-g){this.writeFile(x,z,F,J,u,g,c,mxUtils.bind(this,function(l){delete k.meta.isNew;m(JSON.parse(l.getText()).content.sha)}),mxUtils.bind(this,function(l){f(l)}))}),D=mxUtils.bind(this,function(){if(Editor.useCanvasForExport&&/(\.png)$/i.test(J)){var c=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(g){H(k.meta.sha,g)}),f,this.ui.getCurrentFile()!=k?k.getData():null,c.scale,c.border)}else H(k.meta.sha,Base64.encode(k.getData()))});q?this.getSha(x,z,J,-F,mxUtils.bind(this,function(c){k.meta.sha=c;D()}),f):D()};GitHubClient.prototype.pickLibrary=function(k){this.pickFile(k)};GitHubClient.prototype.pickFolder=function(k){this.showGitHubDialog(!1,k,!0)};GitHubClient.prototype.pickFile=function(k){k=null!=k?k:mxUtils.bind(this,function(m){this.ui.loadFile("H"+encodeURIComponent(m))});this.showGitHubDialog(!0,k)};GitHubClient.prototype.showGitHubDialog=function(k,m,f){var q=null,u=null,x=null,z=null,F=document.createElement("div");F.style.whiteSpace=+GitHubFile.prototype.setDescriptorEtag=function(b,k){b.sha=k};GitHubFile.prototype.save=function(b,k,m,g,q,u){this.doSave(this.getTitle(),k,m,g,q,u)};GitHubFile.prototype.saveAs=function(b,k,m){this.doSave(b,k,m)};GitHubFile.prototype.doSave=function(b,k,m,g,q,u){var x=this.meta.name;this.meta.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.meta.name=x;this.saveFile(b,!1,k,m,g,q,u)}),m,g,q])};+GitHubFile.prototype.saveFile=function(b,k,m,g,q,u,x){if(this.isEditable())if(this.savingFile)null!=g&&g({code:App.ERROR_BUSY});else{var z=mxUtils.bind(this,function(F){if(this.getTitle()==b)try{this.savingFileTime=new Date;this.setShadowModified(!1);this.savingFile=!0;var J=this.getCurrentEtag(),H=this.data;this.peer.saveFile(this,mxUtils.bind(this,function(D){this.setModified(this.getShadowModified());this.savingFile=!1;this.setDescriptorEtag(this.meta,D);this.fileSaved(H,J,mxUtils.bind(this,function(){this.contentChanged();+null!=m&&m()}),g)}),mxUtils.bind(this,function(D){this.savingFile=!1;this.isConflict(D)?(this.inConflictState=!0,null!=g&&(D.commitMessage=F,g(D))):null!=g&&g(D)}),u,F)}catch(D){if(this.savingFile=!1,null!=g)g(D);else throw D;}else this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.ui.pickFolder(this.getMode(),mxUtils.bind(this,function(D){this.peer.insertFile(b,this.getData(),mxUtils.bind(this,function(c){this.setModified(this.getShadowModified());this.savingFile=!1;+null!=m&&m();this.ui.fileLoaded(c)}),mxUtils.bind(this,function(){this.savingFile=!1;null!=g&&g()}),!1,D,F)}))});null!=x?z(x):this.peer.showCommitDialog(this.meta.name,null==this.getDescriptorEtag(this.meta)||this.meta.isNew,mxUtils.bind(this,function(F){z(F)}),g)}else null!=m&&m()};GitHubLibrary=function(b,k,m){GitHubFile.call(this,b,k,m)};mxUtils.extend(GitHubLibrary,GitHubFile);GitHubLibrary.prototype.doSave=function(b,k,m){this.saveFile(b,!1,k,m)};GitHubLibrary.prototype.open=function(){};(function(){var b=null;window.GitHubClient=function(k,m){DrawioClient.call(this,k,m||"ghauth")};mxUtils.extend(GitHubClient,DrawioClient);GitHubClient.prototype.clientId="test.draw.io"==window.location.hostname?"Iv1.1218f5567fbc258a":window.DRAWIO_GITHUB_ID;GitHubClient.prototype.extension=".drawio";GitHubClient.prototype.baseUrl=DRAWIO_GITHUB_API_URL;GitHubClient.prototype.baseHostUrl=DRAWIO_GITHUB_URL;GitHubClient.prototype.redirectUri=window.DRAWIO_SERVER_URL+"github2";GitHubClient.prototype.maxFileSize=+5E7;GitHubClient.prototype.authToken="token";GitHubClient.prototype.setToken=function(k){b=k};GitHubClient.prototype.updateUser=function(k,m,g){var q=!0,u=window.setTimeout(mxUtils.bind(this,function(){q=!1;m({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout),x=new mxXmlRequest(this.baseUrl+"/user",null,"GET"),z=this.authToken+" "+b;x.setRequestHeaders=function(F,J){F.setRequestHeader("Authorization",z)};x.send(mxUtils.bind(this,function(){window.clearTimeout(u);q&&(401===+x.getStatus()?g?m({code:x.getStatus(),message:this.getErrorMessage(x,mxResources.get("accessDenied"))}):(this.logout(),this.authenticate(mxUtils.bind(this,function(){this.updateUser(k,m,!0)}),m)):200>x.getStatus()||300<=x.getStatus()?m({message:mxResources.get("accessDenied")}):(this.setUser(this.createUser(JSON.parse(x.getText()))),k()))}),m)};GitHubClient.prototype.createUser=function(k){return new DrawioUser(k.id,k.email,k.name)};GitHubClient.prototype.authenticate=function(k,m){(new mxXmlRequest(this.redirectUri++"?getState=1",null,"GET")).send(mxUtils.bind(this,function(g){200<=g.getStatus()&&299>=g.getStatus()?this.authenticateStep2(g.getText(),k,m):null!=m&&m(g)}),m)};GitHubClient.prototype.authenticateStep2=function(k,m,g){if(null==window.onGitHubCallback){var q=mxUtils.bind(this,function(){var u=!0;null!=this.getPersistentToken(!0)?(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+k),null,"GET")).send(mxUtils.bind(this,function(x){if(200<=+x.getStatus()&&299>=x.getStatus())try{b=JSON.parse(x.getText()).access_token,this.setUser(null),m()}catch(z){g({message:mxResources.get("authFailed"),retry:q})}else this.clearPersistentToken(),this.setUser(null),b=null,401==x.getStatus()?q():g({message:mxResources.get("accessDenied"),retry:q})}),g):this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(x,z){null!=window.open(this.baseHostUrl+"/login/oauth/authorize?client_id="+this.clientId+"&state="+encodeURIComponent("cId="+this.clientId+"&domain="++window.location.host+"&token="+k),"ghauth")?window.onGitHubCallback=mxUtils.bind(this,function(F,J){u?(window.onGitHubCallback=null,u=!1,null==F?g({message:mxResources.get("accessDenied"),retry:q}):(null!=z&&z(),b=F.access_token,this.setUser(null),x&&this.setPersistentToken("remembered"),m(),null!=J&&J.close())):null!=J&&J.close()}):g({message:mxResources.get("serviceUnavailableOrBlocked"),retry:q})}),mxUtils.bind(this,function(){u&&(window.onGitHubCallback=null,u=!1,g({message:mxResources.get("accessDenied"),+retry:q}))}))});q()}else g({code:App.ERROR_BUSY})};GitHubClient.prototype.getErrorMessage=function(k,m){try{var g=JSON.parse(k.getText());null!=g&&null!=g.message&&(m=g.message)}catch(q){}return m};GitHubClient.prototype.showAuthorizeDialog=function(k,m){this.ui.showError(mxResources.get("accessDenied"),mxResources.get("authorizationRequired"),mxResources.get("help"),mxUtils.bind(this,function(){this.ui.openLink("https://www.drawio.com/blog/single-repository-diagrams")}),k,mxResources.get("authorize"),+mxUtils.bind(this,function(){this.ui.openLink("test.draw.io"==window.location.hostname?"https://github.com/apps/diagrams-net-app-test":"https://github.com/apps/draw-io-app")}),mxResources.get("cancel"),m,480,null,!1)};GitHubClient.prototype.executeRequest=function(k,m,g,q,u){var x=mxUtils.bind(this,function(F){var J=!0,H=window.setTimeout(mxUtils.bind(this,function(){J=!1;g({code:App.ERROR_TIMEOUT,retry:z})}),this.ui.timeout),D=this.authToken+" "+b;k.setRequestHeaders=function(c,f){c.setRequestHeader("Authorization",+D)};k.send(mxUtils.bind(this,function(){window.clearTimeout(H);var c=mxUtils.bind(this,function(){var n=this.ui.spinner.pause();this.showAuthorizeDialog(mxUtils.bind(this,function(){n();z()}),mxUtils.bind(this,function(){this.ui.hideDialog();g({name:"AbortError"})}))});if(J)if(200<=k.getStatus()&&299>=k.getStatus()||q&&404==k.getStatus())m(k);else if(401===k.getStatus())F?g({code:k.getStatus(),message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){z(!0)},+g)})}):this.authenticate(function(){x(!0)},g);else if(403===k.getStatus()){var f=!1;try{var l=JSON.parse(k.getText());null!=l&&"Resource not accessible by integration"==l.message?c():(null!=l&&null!=l.errors&&0<l.errors.length&&(f="too_large"==l.errors[0].code),g({message:mxResources.get(f?"drawingTooLarge":"forbidden")}))}catch(n){g({message:mxResources.get(f?"drawingTooLarge":"forbidden")})}}else 404===k.getStatus()?u?g({code:k.getStatus(),message:this.getErrorMessage(k,mxResources.get("fileNotFound"))}):+c():409===k.getStatus()?g({code:k.getStatus(),status:409}):g({code:k.getStatus(),message:this.getErrorMessage(k,mxResources.get("error")+" "+k.getStatus())})}),mxUtils.bind(this,function(c){window.clearTimeout(H);J&&g(c)}))}),z=mxUtils.bind(this,function(F){null==this.user?this.updateUser(function(){z(!0)},g,F):x(F)});null==b?this.authenticate(function(){z(!0)},g):z(!1)};GitHubClient.prototype.getLibrary=function(k,m,g){this.getFile(k,m,g,!0)};GitHubClient.prototype.getSha=function(k,m,g,q,u,x,z){var F=+"&t="+(new Date).getTime();k=new mxXmlRequest(this.baseUrl+"/repos/"+k+"/"+m+"/contents/"+g+"?ref="+q+F,null,"HEAD");this.executeRequest(k,mxUtils.bind(this,function(J){try{u(J.request.getResponseHeader("Etag").match(/"([^"]+)"/)[1])}catch(H){x(H)}}),x,null,z)};GitHubClient.prototype.getFile=function(k,m,g,q,u){q=null!=q?q:!1;var x=k.split("/"),z=x[0],F=x[1],J=x[2];k=x.slice(3,x.length).join("/");x=/\.png$/i.test(k);if(!u&&(/\.v(dx|sdx?)$/i.test(k)||/\.gliffy$/i.test(k)||/\.pdf$/i.test(k)||!Editor.useCanvasForExport&&+x))if(null!=b){u=this.baseUrl+"/repos/"+z+"/"+F+"/contents/"+k+"?ref="+J;var H={Authorization:"token "+b};x=k.split("/");this.ui.convertFile(u,0<x.length?x[x.length-1]:k,null,this.extension,m,g,null,H)}else g({message:mxResources.get("accessDenied")});else x="&t="+(new Date).getTime(),k=new mxXmlRequest(this.baseUrl+"/repos/"+z+"/"+F+"/contents/"+k+"?ref="+J+x,null,"GET"),this.executeRequest(k,mxUtils.bind(this,function(D){try{var c=JSON.parse(D.getText());if(""==c.content&&null!=c.git_url){var f=+new mxXmlRequest(c.git_url,null,"GET");this.executeRequest(f,mxUtils.bind(this,function(l){l=JSON.parse(l.getText());""!=l.content?(c.content=l.content,c.encoding=l.encoding,m(this.createGitHubFile(z,F,J,c,q))):g({message:mxResources.get("errorLoadingFile")})}),g)}else m(this.createGitHubFile(z,F,J,c,q))}catch(l){g(l)}}),g)};GitHubClient.prototype.createGitHubFile=function(k,m,g,q,u){k={org:k,repo:m,ref:g,name:q.name,path:q.path,sha:q.sha,html_url:q.html_url,download_url:q.download_url};m=q.content;+"base64"===q.encoding&&(/\.jpe?g$/i.test(q.name)?m="data:image/jpeg;base64,"+m:/\.gif$/i.test(q.name)?m="data:image/gif;base64,"+m:/\.png$/i.test(q.name)?(q=this.ui.extractGraphModelFromPng(m),m=null!=q&&0<q.length?q:"data:image/png;base64,"+m):m=Base64.decode(m));return u?new GitHubLibrary(this.ui,m,k):new GitHubFile(this.ui,m,k)};GitHubClient.prototype.insertLibrary=function(k,m,g,q,u){this.insertFile(k,m,g,q,!0,u,!1)};GitHubClient.prototype.insertFile=function(k,m,g,q,u,x,z){u=null!=u?u:!1;x=x.split("/");+var F=x[0],J=x[1],H=x[2],D=x.slice(3,x.length).join("/");0<D.length&&(D+="/");D+=k;this.checkExists(F+"/"+J+"/"+H+"/"+D,!0,mxUtils.bind(this,function(c,f){c?u?(z||(m=Base64.encode(m)),this.showCommitDialog(k,!0,mxUtils.bind(this,function(l){this.writeFile(F,J,H,D,l,m,f,mxUtils.bind(this,function(n){try{var r=JSON.parse(n.getText());g(this.createGitHubFile(F,J,H,r.content,u))}catch(t){q(t)}}),q)}),q)):g(new GitHubFile(this.ui,m,{org:F,repo:J,ref:H,name:k,path:D,sha:f,isNew:!0})):q()}))};GitHubClient.prototype.showCommitDialog=+function(k,m,g,q){var u=this.ui.spinner.pause();k=new FilenameDialog(this.ui,mxResources.get(m?"addedFile":"updateFile",[k]),mxResources.get("ok"),mxUtils.bind(this,function(x){u(function(){g(x)})}),mxResources.get("commitMessage"),null,null,null,null,mxUtils.bind(this,function(){q()}));this.ui.showDialog(k.container,400,80,!0,!1);k.init()};GitHubClient.prototype.writeFile=function(k,m,g,q,u,x,z,F,J){x.length>=this.maxFileSize?J({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(x.length)++" / 1 MB)"}):(g={path:q,branch:decodeURIComponent(g),message:u,content:x},null!=z&&(g.sha=z),k=new mxXmlRequest(this.baseUrl+"/repos/"+k+"/"+m+"/contents/"+q,JSON.stringify(g),"PUT"),this.executeRequest(k,mxUtils.bind(this,function(H){F(H)}),mxUtils.bind(this,function(H){404==H.code&&(H.helpLink=this.baseHostUrl+"/settings/connections/applications/"+this.clientId,H.code=null);J(H)})))};GitHubClient.prototype.checkExists=function(k,m,g){var q=k.split("/"),u=q[0],x=q[1],z=q[2];k=q.slice(3,q.length).join("/");+this.getSha(u,x,k,z,mxUtils.bind(this,function(F){if(m){var J=this.ui.spinner.pause();this.ui.confirm(mxResources.get("replaceIt",[k]),function(){J();g(!0,F)},function(){J();g(!1)})}else this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){g(!1)})}),mxUtils.bind(this,function(F){g(!0)}),!0)};GitHubClient.prototype.saveFile=function(k,m,g,q,u){var x=k.meta.org,z=k.meta.repo,F=k.meta.ref,J=k.meta.path,H=mxUtils.bind(this,function(c,+f){this.writeFile(x,z,F,J,u,f,c,mxUtils.bind(this,function(l){delete k.meta.isNew;m(JSON.parse(l.getText()).content.sha)}),mxUtils.bind(this,function(l){g(l)}))}),D=mxUtils.bind(this,function(){if(Editor.useCanvasForExport&&/(\.png)$/i.test(J)){var c=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(f){H(k.meta.sha,f)}),g,this.ui.getCurrentFile()!=k?k.getData():null,c.scale,c.border)}else H(k.meta.sha,Base64.encode(k.getData()))});q?this.getSha(x,z,J,+F,mxUtils.bind(this,function(c){k.meta.sha=c;D()}),g):D()};GitHubClient.prototype.pickLibrary=function(k){this.pickFile(k)};GitHubClient.prototype.pickFolder=function(k){this.showGitHubDialog(!1,k,!0)};GitHubClient.prototype.pickFile=function(k){k=null!=k?k:mxUtils.bind(this,function(m){this.ui.loadFile("H"+encodeURIComponent(m))});this.showGitHubDialog(!0,k)};GitHubClient.prototype.showGitHubDialog=function(k,m,g){var q=null,u=null,x=null,z=null,F=document.createElement("div");F.style.whiteSpace="nowrap";F.style.overflow="hidden";F.style.height="320px";var J=document.createElement("h3");mxUtils.write(J,mxResources.get(k?"selectFile":"selectFolder"));F.appendChild(J);J=this.ui.createToolbarButton(Editor.refreshImage,mxResources.get("refresh"),mxUtils.bind(this,function(){E()}));J.style.position="absolute";J.style.right="40px";J.style.top="26px";F.appendChild(J);var H=document.createElement("div");H.style.whiteSpace="nowrap";H.style.border="1px solid lightgray";H.style.boxSizing="border-box";H.style.padding="4px";H.style.overflow="auto";H.style.lineHeight="1.2em";H.style.height="290px";F.appendChild(H);var D=document.createElement("div");D.style.textOverflow="ellipsis";D.style.boxSizing="border-box";D.style.overflow="hidden";D.style.padding="4px";D.style.width="100%";var c=new CustomDialog(this.ui,F,mxUtils.bind(this,function(){m(q+"/"+u+"/"+encodeURIComponent(x)+"/"+z)}),null,null,"https://www.drawio.com/blog/single-repository-diagrams",null,null,null,null,[[mxResources.get("authorize"),-mxUtils.bind(this,function(){this.ui.openLink("test.draw.io"==window.location.hostname?"https://github.com/apps/diagrams-net-app-test":"https://github.com/apps/draw-io-app")})]],"16px");this.ui.showDialog(c.container,420,370,!0,!0);k&&c.okButton.parentNode.removeChild(c.okButton);var g=mxUtils.bind(this,function(K,C,R,M){var O=document.createElement("a");O.setAttribute("title",K);O.style.cursor="pointer";mxUtils.write(O,K);mxEvent.addListener(O,"click",C);M&&(O.style.textDecoration="underline");null!=-R&&(K=D.cloneNode(),K.style.padding=R,K.appendChild(O),O=K);return O}),l=mxUtils.bind(this,function(K){var C=document.createElement("div");C.style.marginBottom="8px";C.appendChild(g(q+"/"+u,mxUtils.bind(this,function(){z=null;E()}),null,!0));K||(mxUtils.write(C," / "),C.appendChild(g(decodeURIComponent(x),mxUtils.bind(this,function(){z=null;B()}),null,!0)));if(null!=z&&0<z.length){var R=z.split("/");for(K=0;K<R.length;K++)(function(M){mxUtils.write(C," / ");C.appendChild(g(R[M],mxUtils.bind(this,+mxUtils.bind(this,function(){this.ui.openLink("test.draw.io"==window.location.hostname?"https://github.com/apps/diagrams-net-app-test":"https://github.com/apps/draw-io-app")})]],"16px");this.ui.showDialog(c.container,420,370,!0,!0);k&&c.okButton.parentNode.removeChild(c.okButton);var f=mxUtils.bind(this,function(K,C,R,M){var O=document.createElement("a");O.setAttribute("title",K);O.style.cursor="pointer";mxUtils.write(O,K);mxEvent.addListener(O,"click",C);M&&(O.style.textDecoration="underline");null!=+R&&(K=D.cloneNode(),K.style.padding=R,K.appendChild(O),O=K);return O}),l=mxUtils.bind(this,function(K){var C=document.createElement("div");C.style.marginBottom="8px";C.appendChild(f(q+"/"+u,mxUtils.bind(this,function(){z=null;E()}),null,!0));K||(mxUtils.write(C," / "),C.appendChild(f(decodeURIComponent(x),mxUtils.bind(this,function(){z=null;B()}),null,!0)));if(null!=z&&0<z.length){var R=z.split("/");for(K=0;K<R.length;K++)(function(M){mxUtils.write(C," / ");C.appendChild(f(R[M],mxUtils.bind(this,function(){z=R.slice(0,M+1).join("/");v()}),null,!0))})(K)}H.appendChild(C)}),n=mxUtils.bind(this,function(K){this.ui.handleError(K,null,mxUtils.bind(this,function(){this.ui.spinner.stop();null!=this.getUser()?(z=x=u=q=null,E()):this.ui.hideDialog()}),null,{})}),r=null,t=null,v=mxUtils.bind(this,function(K){null==K&&(H.innerText="",K=1);var C=new mxXmlRequest(this.baseUrl+"/repos/"+q+"/"+u+"/contents/"+z+"?ref="+encodeURIComponent(x)+"&per_page=100&page="+K,null,"GET");this.ui.spinner.spin(H,mxResources.get("loading"));-c.okButton.removeAttribute("disabled");null!=t&&(mxEvent.removeListener(H,"scroll",t),t=null);null!=r&&null!=r.parentNode&&r.parentNode.removeChild(r);r=document.createElement("a");r.style.display="block";r.style.cursor="pointer";mxUtils.write(r,mxResources.get("more")+"...");var R=mxUtils.bind(this,function(){v(K+1)});mxEvent.addListener(r,"click",R);this.executeRequest(C,mxUtils.bind(this,function(M){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();1==K&&(l(),H.appendChild(g("../ [Up]",-mxUtils.bind(this,function(){if(""==z)z=null,E();else{var fa=z.split("/");z=fa.slice(0,fa.length-1).join("/");v()}}),"4px")));var O=JSON.parse(M.getText());if(null==O||0==O.length)f||(mxUtils.br(H),mxUtils.write(H,mxResources.get("noFiles")));else{var U=!0,T=0,V=mxUtils.bind(this,function(fa){for(var y=0;y<O.length;y++)mxUtils.bind(this,function(d,p){if(fa==("dir"==d.type)){p=D.cloneNode();p.style.backgroundColor=U?Editor.isDarkMode()?"#000000":"#eeeeee":"";U=!U;var A=document.createElement("img");-A.src=IMAGE_PATH+"/"+("dir"==d.type?"folder.png":"file.png");A.setAttribute("align","absmiddle");A.style.marginRight="4px";A.style.marginTop="-4px";A.width=20;p.appendChild(A);p.appendChild(g(d.name+("dir"==d.type?"/":""),mxUtils.bind(this,function(){"dir"==d.type?(z=d.path,v()):k&&"file"==d.type&&(this.ui.hideDialog(),m(q+"/"+u+"/"+encodeURIComponent(x)+"/"+d.path))})));H.appendChild(p);T++}})(O[y],y)});V(!0);k&&V(!1)}}))}),n,!0)}),B=mxUtils.bind(this,function(K,C){null==K&&(H.innerText="",K=1);+c.okButton.removeAttribute("disabled");null!=t&&(mxEvent.removeListener(H,"scroll",t),t=null);null!=r&&null!=r.parentNode&&r.parentNode.removeChild(r);r=document.createElement("a");r.style.display="block";r.style.cursor="pointer";mxUtils.write(r,mxResources.get("more")+"...");var R=mxUtils.bind(this,function(){v(K+1)});mxEvent.addListener(r,"click",R);this.executeRequest(C,mxUtils.bind(this,function(M){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();1==K&&(l(),H.appendChild(f("../ [Up]",+mxUtils.bind(this,function(){if(""==z)z=null,E();else{var fa=z.split("/");z=fa.slice(0,fa.length-1).join("/");v()}}),"4px")));var O=JSON.parse(M.getText());if(null==O||0==O.length)g||(mxUtils.br(H),mxUtils.write(H,mxResources.get("noFiles")));else{var U=!0,T=0,V=mxUtils.bind(this,function(fa){for(var y=0;y<O.length;y++)mxUtils.bind(this,function(d,p){if(fa==("dir"==d.type)){p=D.cloneNode();p.style.backgroundColor=U?Editor.isDarkMode()?"#000000":"#eeeeee":"";U=!U;var A=document.createElement("img");+A.src=IMAGE_PATH+"/"+("dir"==d.type?"folder.png":"file.png");A.setAttribute("align","absmiddle");A.style.marginRight="4px";A.style.marginTop="-4px";A.width=20;p.appendChild(A);p.appendChild(f(d.name+("dir"==d.type?"/":""),mxUtils.bind(this,function(){"dir"==d.type?(z=d.path,v()):k&&"file"==d.type&&(this.ui.hideDialog(),m(q+"/"+u+"/"+encodeURIComponent(x)+"/"+d.path))})));H.appendChild(p);T++}})(O[y],y)});V(!0);k&&V(!1)}}))}),n,!0)}),B=mxUtils.bind(this,function(K,C){null==K&&(H.innerText="",K=1);var R=new mxXmlRequest(this.baseUrl+"/repos/"+q+"/"+u+"/branches?per_page=100&page="+K,null,"GET");c.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(H,mxResources.get("loading"));null!=t&&(mxEvent.removeListener(H,"scroll",t),t=null);null!=r&&null!=r.parentNode&&r.parentNode.removeChild(r);r=document.createElement("a");r.style.display="block";r.style.cursor="pointer";mxUtils.write(r,mxResources.get("more")+"...");var M=mxUtils.bind(this,function(){B(K+1)});mxEvent.addListener(r,-"click",M);this.executeRequest(R,mxUtils.bind(this,function(O){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();1==K&&(l(!0),H.appendChild(g("../ [Up]",mxUtils.bind(this,function(){z=null;E()}),"4px")));var U=JSON.parse(O.getText());if(null==U||0==U.length)mxUtils.br(H),mxUtils.write(H,mxResources.get("repositoryNotFound"));else if(1==U.length&&C)x=U[0].name,z="",v();else{for(var T=0;T<U.length;T++)mxUtils.bind(this,function(V,fa){var y=D.cloneNode();y.style.backgroundColor=-0==fa%2?Editor.isDarkMode()?"#000000":"#eeeeee":"";y.appendChild(g(V.name,mxUtils.bind(this,function(){x=V.name;z="";v()})));H.appendChild(y)})(U[T],T);100==U.length&&(H.appendChild(r),t=function(){H.scrollTop>=H.scrollHeight-H.offsetHeight&&M()},mxEvent.addListener(H,"scroll",t))}}))}),n)}),E=mxUtils.bind(this,function(K){null==K&&(H.innerText="",K=1);var C=new mxXmlRequest(this.baseUrl+"/user/repos?per_page=100&page="+K,null,"GET");c.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(H,+"click",M);this.executeRequest(R,mxUtils.bind(this,function(O){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();1==K&&(l(!0),H.appendChild(f("../ [Up]",mxUtils.bind(this,function(){z=null;E()}),"4px")));var U=JSON.parse(O.getText());if(null==U||0==U.length)mxUtils.br(H),mxUtils.write(H,mxResources.get("repositoryNotFound"));else if(1==U.length&&C)x=U[0].name,z="",v();else{for(var T=0;T<U.length;T++)mxUtils.bind(this,function(V,fa){var y=D.cloneNode();y.style.backgroundColor=+0==fa%2?Editor.isDarkMode()?"#000000":"#eeeeee":"";y.appendChild(f(V.name,mxUtils.bind(this,function(){x=V.name;z="";v()})));H.appendChild(y)})(U[T],T);100==U.length&&(H.appendChild(r),t=function(){H.scrollTop>=H.scrollHeight-H.offsetHeight&&M()},mxEvent.addListener(H,"scroll",t))}}))}),n)}),E=mxUtils.bind(this,function(K){null==K&&(H.innerText="",K=1);var C=new mxXmlRequest(this.baseUrl+"/user/repos?per_page=100&page="+K,null,"GET");c.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(H,mxResources.get("loading"));null!=t&&mxEvent.removeListener(H,"scroll",t);null!=r&&null!=r.parentNode&&r.parentNode.removeChild(r);r=document.createElement("a");r.style.display="block";r.style.cursor="pointer";mxUtils.write(r,mxResources.get("more")+"...");var R=mxUtils.bind(this,function(){E(K+1)});mxEvent.addListener(r,"click",R);this.executeRequest(C,mxUtils.bind(this,function(M){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();var O=JSON.parse(M.getText());if(null==O||-0==O.length)mxUtils.br(H),mxUtils.write(H,mxResources.get("repositoryNotFound"));else{1==K&&(H.appendChild(g(mxResources.get("enterValue")+"...",mxUtils.bind(this,function(){var T=new FilenameDialog(this.ui,"org/repo/ref",mxResources.get("ok"),mxUtils.bind(this,function(V){if(null!=V){var fa=V.split("/");if(1<fa.length){V=fa[0];var y=fa[1];3>fa.length?(q=V,u=y,z=x=null,B()):this.ui.spinner.spin(H,mxResources.get("loading"))&&(fa=encodeURIComponent(fa.slice(2,fa.length).join("/")),this.getFile(V+"/"++0==O.length)mxUtils.br(H),mxUtils.write(H,mxResources.get("repositoryNotFound"));else{1==K&&(H.appendChild(f(mxResources.get("enterValue")+"...",mxUtils.bind(this,function(){var T=new FilenameDialog(this.ui,"org/repo/ref",mxResources.get("ok"),mxUtils.bind(this,function(V){if(null!=V){var fa=V.split("/");if(1<fa.length){V=fa[0];var y=fa[1];3>fa.length?(q=V,u=y,z=x=null,B()):this.ui.spinner.spin(H,mxResources.get("loading"))&&(fa=encodeURIComponent(fa.slice(2,fa.length).join("/")),this.getFile(V+"/"+y+"/"+fa,mxUtils.bind(this,function(d){this.ui.spinner.stop();q=d.meta.org;u=d.meta.repo;x=decodeURIComponent(d.meta.ref);z="";v()}),mxUtils.bind(this,function(d){this.ui.spinner.stop();this.ui.handleError({message:mxResources.get("fileNotFound")})})))}else this.ui.spinner.stop(),this.ui.handleError({message:mxResources.get("invalidName")})}}),mxResources.get("enterValue"));this.ui.showDialog(T.container,300,80,!0,!1);T.init()}))),mxUtils.br(H),mxUtils.br(H));for(var U=0;U<O.length;U++)mxUtils.bind(this,-function(T,V){var fa=D.cloneNode();fa.style.backgroundColor=0==V%2?Editor.isDarkMode()?"#000000":"#eeeeee":"";fa.appendChild(g(T.full_name,mxUtils.bind(this,function(){q=T.owner.login;u=T.name;z="";B(null,!0)})));H.appendChild(fa)})(O[U],U)}100==O.length&&(H.appendChild(r),t=function(){H.scrollTop>=H.scrollHeight-H.offsetHeight&&R()},mxEvent.addListener(H,"scroll",t))}))}),n)});E()};GitHubClient.prototype.logout=function(){this.clearPersistentToken();this.setUser(null);b=null}})();TrelloFile=function(b,k,m){DrawioFile.call(this,b,k);this.meta=m;this.saveNeededCounter=0};mxUtils.extend(TrelloFile,DrawioFile);TrelloFile.prototype.getHash=function(){return"T"+encodeURIComponent(this.meta.compoundId)};TrelloFile.prototype.getMode=function(){return App.MODE_TRELLO};TrelloFile.prototype.isAutosave=function(){return!0};TrelloFile.prototype.getTitle=function(){return this.meta.name};TrelloFile.prototype.isRenamable=function(){return!1};TrelloFile.prototype.getSize=function(){return this.meta.bytes};-TrelloFile.prototype.save=function(b,k,m){this.doSave(this.getTitle(),k,m)};TrelloFile.prototype.saveAs=function(b,k,m){this.doSave(b,k,m)};TrelloFile.prototype.doSave=function(b,k,m){var f=this.meta.name;this.meta.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.meta.name=f;this.saveFile(b,!1,k,m)}),m])};-TrelloFile.prototype.saveFile=function(b,k,m,f){this.isEditable()?this.savingFile?null!=f&&(this.saveNeededCounter++,f({code:App.ERROR_BUSY})):(this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.getTitle()==b?this.ui.trello.saveFile(this,mxUtils.bind(this,function(q){this.setModified(this.getShadowModified());this.savingFile=!1;this.meta=q;this.contentChanged();null!=m&&m();0<this.saveNeededCounter&&(this.saveNeededCounter--,this.saveFile(b,k,m,f))}),mxUtils.bind(this,-function(q){this.savingFile=!1;null!=f&&f(q)})):this.ui.pickFolder(App.MODE_TRELLO,mxUtils.bind(this,function(q){this.ui.trello.insertFile(b,this.getData(),mxUtils.bind(this,function(u){this.savingFile=!1;null!=m&&m();this.ui.fileLoaded(u);0<this.saveNeededCounter&&(this.saveNeededCounter--,this.saveFile(b,k,m,f))}),mxUtils.bind(this,function(){this.savingFile=!1;null!=f&&f()}),!1,q)}))):null!=m&&m()};TrelloLibrary=function(b,k,m){TrelloFile.call(this,b,k,m)};mxUtils.extend(TrelloLibrary,TrelloFile);TrelloLibrary.prototype.doSave=function(b,k,m){this.saveFile(b,!1,k,m)};TrelloLibrary.prototype.open=function(){};TrelloClient=function(b){DrawioClient.call(this,b,"tauth");Trello.setKey(this.key)};mxUtils.extend(TrelloClient,DrawioClient);TrelloClient.prototype.key="e89d109082298ce91f6576f82f458551";TrelloClient.prototype.baseUrl="https://api.trello.com/1/";TrelloClient.prototype.SEPARATOR="|$|";TrelloClient.prototype.maxFileSize=1E7;TrelloClient.prototype.extension=".xml";-TrelloClient.prototype.authenticate=function(b,k,m){m&&this.logout();m=mxUtils.bind(this,function(f,q){Trello.authorize({type:"popup",name:"draw.io",scope:{read:"true",write:"true"},expiration:f?"never":"1hour",success:function(){localStorage.setItem("drawio_trello_token",localStorage.trello_token);null!=q&&q();b()},error:function(){null!=q&&q();null!=k&&k(mxResources.get("loggedOut"))}})});this.isAuthorized()?m(!0):this.ui.showAuthDialog(this,!0,m)};+function(T,V){var fa=D.cloneNode();fa.style.backgroundColor=0==V%2?Editor.isDarkMode()?"#000000":"#eeeeee":"";fa.appendChild(f(T.full_name,mxUtils.bind(this,function(){q=T.owner.login;u=T.name;z="";B(null,!0)})));H.appendChild(fa)})(O[U],U)}100==O.length&&(H.appendChild(r),t=function(){H.scrollTop>=H.scrollHeight-H.offsetHeight&&R()},mxEvent.addListener(H,"scroll",t))}))}),n)});E()};GitHubClient.prototype.logout=function(){this.clearPersistentToken();this.setUser(null);b=null}})();TrelloFile=function(b,k,m){DrawioFile.call(this,b,k);this.meta=m;this.saveNeededCounter=0};mxUtils.extend(TrelloFile,DrawioFile);TrelloFile.prototype.getHash=function(){return"T"+encodeURIComponent(this.meta.compoundId)};TrelloFile.prototype.getMode=function(){return App.MODE_TRELLO};TrelloFile.prototype.isAutosave=function(){return!0};TrelloFile.prototype.getTitle=function(){return this.meta.name};TrelloFile.prototype.isRenamable=function(){return!1};TrelloFile.prototype.getSize=function(){return this.meta.bytes};+TrelloFile.prototype.save=function(b,k,m){this.doSave(this.getTitle(),k,m)};TrelloFile.prototype.saveAs=function(b,k,m){this.doSave(b,k,m)};TrelloFile.prototype.doSave=function(b,k,m){var g=this.meta.name;this.meta.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.meta.name=g;this.saveFile(b,!1,k,m)}),m])};+TrelloFile.prototype.saveFile=function(b,k,m,g){this.isEditable()?this.savingFile?null!=g&&(this.saveNeededCounter++,g({code:App.ERROR_BUSY})):(this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.getTitle()==b?this.ui.trello.saveFile(this,mxUtils.bind(this,function(q){this.setModified(this.getShadowModified());this.savingFile=!1;this.meta=q;this.contentChanged();null!=m&&m();0<this.saveNeededCounter&&(this.saveNeededCounter--,this.saveFile(b,k,m,g))}),mxUtils.bind(this,+function(q){this.savingFile=!1;null!=g&&g(q)})):this.ui.pickFolder(App.MODE_TRELLO,mxUtils.bind(this,function(q){this.ui.trello.insertFile(b,this.getData(),mxUtils.bind(this,function(u){this.savingFile=!1;null!=m&&m();this.ui.fileLoaded(u);0<this.saveNeededCounter&&(this.saveNeededCounter--,this.saveFile(b,k,m,g))}),mxUtils.bind(this,function(){this.savingFile=!1;null!=g&&g()}),!1,q)}))):null!=m&&m()};TrelloLibrary=function(b,k,m){TrelloFile.call(this,b,k,m)};mxUtils.extend(TrelloLibrary,TrelloFile);TrelloLibrary.prototype.doSave=function(b,k,m){this.saveFile(b,!1,k,m)};TrelloLibrary.prototype.open=function(){};TrelloClient=function(b){DrawioClient.call(this,b,"tauth");Trello.setKey(this.key)};mxUtils.extend(TrelloClient,DrawioClient);TrelloClient.prototype.key="e89d109082298ce91f6576f82f458551";TrelloClient.prototype.baseUrl="https://api.trello.com/1/";TrelloClient.prototype.SEPARATOR="|$|";TrelloClient.prototype.maxFileSize=1E7;TrelloClient.prototype.extension=".xml";+TrelloClient.prototype.authenticate=function(b,k,m){m&&this.logout();m=mxUtils.bind(this,function(g,q){Trello.authorize({type:"popup",name:"draw.io",scope:{read:"true",write:"true"},expiration:g?"never":"1hour",success:function(){localStorage.setItem("drawio_trello_token",localStorage.trello_token);null!=q&&q();b()},error:function(){null!=q&&q();null!=k&&k(mxResources.get("loggedOut"))}})});this.isAuthorized()?m(!0):this.ui.showAuthDialog(this,!0,m)};TrelloClient.prototype.getLibrary=function(b,k,m){this.getFile(b,k,m,!1,!0)};-TrelloClient.prototype.getFile=function(b,k,m,f,q){q=null!=q?q:!1;var u=mxUtils.bind(this,function(){var x=b.split(this.SEPARATOR),z=!0,F=window.setTimeout(mxUtils.bind(this,function(){z=!1;m({code:App.ERROR_TIMEOUT,retry:u})}),this.ui.timeout);Trello.cards.get(x[0]+"/attachments/"+x[1],mxUtils.bind(this,function(J){window.clearTimeout(F);if(z){var H=/\.png$/i.test(J.name),D={Authorization:'OAuth oauth_consumer_key="'+Trello.key()+'", oauth_token="'+Trello.token()+'"'};/\.v(dx|sdx?)$/i.test(J.name)||-/\.gliffy$/i.test(J.name)||!Editor.useCanvasForExport&&H?this.ui.convertFile(PROXY_URL+"?url="+encodeURIComponent(J.url),J.name,J.mimeType,this.extension,k,m,null,D):(z=!0,F=window.setTimeout(mxUtils.bind(this,function(){z=!1;m({code:App.ERROR_TIMEOUT})}),this.ui.timeout),this.ui.editor.loadUrl(PROXY_URL+"?url="+encodeURIComponent(J.url),mxUtils.bind(this,function(c){window.clearTimeout(F);if(z){J.compoundId=b;if(0<(H?c.lastIndexOf(","):-1)){var g=this.ui.extractGraphModelFromPng(c);null!=g&&0<g.length&&-(c=g)}q?k(new TrelloLibrary(this.ui,c,J)):k(new TrelloFile(this.ui,c,J))}}),mxUtils.bind(this,function(c,g){window.clearTimeout(F);z&&(401==g.status?this.authenticate(u,m,!0):m())}),H||null!=J.mimeType&&"image/"==J.mimeType.substring(0,6),null,null,null,D))}}),mxUtils.bind(this,function(J){window.clearTimeout(F);z&&(null!=J&&401==J.status?this.authenticate(u,m,!0):m())}))});this.authenticate(u,m)};TrelloClient.prototype.insertLibrary=function(b,k,m,f,q){this.insertFile(b,k,m,f,!0,q)};-TrelloClient.prototype.insertFile=function(b,k,m,f,q,u){q=null!=q?q:!1;var x=mxUtils.bind(this,function(){var z=mxUtils.bind(this,function(F){this.writeFile(b,F,u,mxUtils.bind(this,function(J){q?m(new TrelloLibrary(this.ui,k,J)):m(new TrelloFile(this.ui,k,J))}),f)});Editor.useCanvasForExport&&/(\.png)$/i.test(b)?this.ui.getEmbeddedPng(mxUtils.bind(this,function(F){z(this.ui.base64ToBlob(F,"image/png"))}),f,k):z(k)});this.authenticate(x,f)};-TrelloClient.prototype.saveFile=function(b,k,m){var f=b.meta.compoundId.split(this.SEPARATOR),q=mxUtils.bind(this,function(x){this.writeFile(b.meta.name,x,f[0],function(z){Trello.del("cards/"+f[0]+"/attachments/"+f[1],mxUtils.bind(this,function(){k(z)}),mxUtils.bind(this,function(F){null!=F&&401==F.status?this.authenticate(u,m,!0):m()}))},m)}),u=mxUtils.bind(this,function(){Editor.useCanvasForExport&&/(\.png)$/i.test(b.meta.name)?this.ui.getEmbeddedPng(mxUtils.bind(this,function(x){q(this.ui.base64ToBlob(x,+TrelloClient.prototype.getFile=function(b,k,m,g,q){q=null!=q?q:!1;var u=mxUtils.bind(this,function(){var x=b.split(this.SEPARATOR),z=!0,F=window.setTimeout(mxUtils.bind(this,function(){z=!1;m({code:App.ERROR_TIMEOUT,retry:u})}),this.ui.timeout);Trello.cards.get(x[0]+"/attachments/"+x[1],mxUtils.bind(this,function(J){window.clearTimeout(F);if(z){var H=/\.png$/i.test(J.name),D={Authorization:'OAuth oauth_consumer_key="'+Trello.key()+'", oauth_token="'+Trello.token()+'"'};/\.v(dx|sdx?)$/i.test(J.name)||+/\.gliffy$/i.test(J.name)||!Editor.useCanvasForExport&&H?this.ui.convertFile(PROXY_URL+"?url="+encodeURIComponent(J.url),J.name,J.mimeType,this.extension,k,m,null,D):(z=!0,F=window.setTimeout(mxUtils.bind(this,function(){z=!1;m({code:App.ERROR_TIMEOUT})}),this.ui.timeout),this.ui.editor.loadUrl(PROXY_URL+"?url="+encodeURIComponent(J.url),mxUtils.bind(this,function(c){window.clearTimeout(F);if(z){J.compoundId=b;if(0<(H?c.lastIndexOf(","):-1)){var f=this.ui.extractGraphModelFromPng(c);null!=f&&0<f.length&&+(c=f)}q?k(new TrelloLibrary(this.ui,c,J)):k(new TrelloFile(this.ui,c,J))}}),mxUtils.bind(this,function(c,f){window.clearTimeout(F);z&&(401==f.status?this.authenticate(u,m,!0):m())}),H||null!=J.mimeType&&"image/"==J.mimeType.substring(0,6),null,null,null,D))}}),mxUtils.bind(this,function(J){window.clearTimeout(F);z&&(null!=J&&401==J.status?this.authenticate(u,m,!0):m())}))});this.authenticate(u,m)};TrelloClient.prototype.insertLibrary=function(b,k,m,g,q){this.insertFile(b,k,m,g,!0,q)};+TrelloClient.prototype.insertFile=function(b,k,m,g,q,u){q=null!=q?q:!1;var x=mxUtils.bind(this,function(){var z=mxUtils.bind(this,function(F){this.writeFile(b,F,u,mxUtils.bind(this,function(J){q?m(new TrelloLibrary(this.ui,k,J)):m(new TrelloFile(this.ui,k,J))}),g)});Editor.useCanvasForExport&&/(\.png)$/i.test(b)?this.ui.getEmbeddedPng(mxUtils.bind(this,function(F){z(this.ui.base64ToBlob(F,"image/png"))}),g,k):z(k)});this.authenticate(x,g)};+TrelloClient.prototype.saveFile=function(b,k,m){var g=b.meta.compoundId.split(this.SEPARATOR),q=mxUtils.bind(this,function(x){this.writeFile(b.meta.name,x,g[0],function(z){Trello.del("cards/"+g[0]+"/attachments/"+g[1],mxUtils.bind(this,function(){k(z)}),mxUtils.bind(this,function(F){null!=F&&401==F.status?this.authenticate(u,m,!0):m()}))},m)}),u=mxUtils.bind(this,function(){Editor.useCanvasForExport&&/(\.png)$/i.test(b.meta.name)?this.ui.getEmbeddedPng(mxUtils.bind(this,function(x){q(this.ui.base64ToBlob(x,"image/png"))}),m,this.ui.getCurrentFile()!=b?b.getData():null):q(b.getData())});this.authenticate(u,m)};-TrelloClient.prototype.writeFile=function(b,k,m,f,q){if(null!=b&&null!=k)if(k.length>=this.maxFileSize)q({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(k.length)+" / 10 MB)"});else{var u=mxUtils.bind(this,function(){var x=!0,z=window.setTimeout(mxUtils.bind(this,function(){x=!1;q({code:App.ERROR_TIMEOUT,retry:u})}),this.ui.timeout),F=new FormData;F.append("key",Trello.key());F.append("token",Trello.token());F.append("file","string"===typeof k?new Blob([k]):k,b);F.append("name",-b);var J=new XMLHttpRequest;J.responseType="json";J.onreadystatechange=mxUtils.bind(this,function(){if(4===J.readyState&&(window.clearTimeout(z),x))if(200==J.status){var H=J.response;H.compoundId=m+this.SEPARATOR+H.id;f(H)}else 401==J.status?this.authenticate(u,q,!0):q()});J.open("POST",this.baseUrl+"cards/"+m+"/attachments");J.send(F)});this.authenticate(u,q)}else q({message:mxResources.get("unknownError")})};TrelloClient.prototype.pickLibrary=function(b){this.pickFile(b)};+TrelloClient.prototype.writeFile=function(b,k,m,g,q){if(null!=b&&null!=k)if(k.length>=this.maxFileSize)q({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(k.length)+" / 10 MB)"});else{var u=mxUtils.bind(this,function(){var x=!0,z=window.setTimeout(mxUtils.bind(this,function(){x=!1;q({code:App.ERROR_TIMEOUT,retry:u})}),this.ui.timeout),F=new FormData;F.append("key",Trello.key());F.append("token",Trello.token());F.append("file","string"===typeof k?new Blob([k]):k,b);F.append("name",+b);var J=new XMLHttpRequest;J.responseType="json";J.onreadystatechange=mxUtils.bind(this,function(){if(4===J.readyState&&(window.clearTimeout(z),x))if(200==J.status){var H=J.response;H.compoundId=m+this.SEPARATOR+H.id;g(H)}else 401==J.status?this.authenticate(u,q,!0):q()});J.open("POST",this.baseUrl+"cards/"+m+"/attachments");J.send(F)});this.authenticate(u,q)}else q({message:mxResources.get("unknownError")})};TrelloClient.prototype.pickLibrary=function(b){this.pickFile(b)};TrelloClient.prototype.pickFolder=function(b){this.authenticate(mxUtils.bind(this,function(){this.showTrelloDialog(!1,b)}),mxUtils.bind(this,function(k){this.ui.showError(mxResources.get("error"),k)}))};TrelloClient.prototype.pickFile=function(b,k){b=null!=b?b:mxUtils.bind(this,function(m){this.ui.loadFile("T"+encodeURIComponent(m))});this.authenticate(mxUtils.bind(this,function(){this.showTrelloDialog(!0,b)}),mxUtils.bind(this,function(m){this.ui.showError(mxResources.get("error"),m,mxResources.get("ok"))}))};-TrelloClient.prototype.showTrelloDialog=function(b,k){var m=null,f="@me",q=0,u=document.createElement("div");u.style.whiteSpace="nowrap";u.style.overflow="hidden";u.style.height="224px";var x=document.createElement("h3");mxUtils.write(x,b?mxResources.get("selectFile"):mxResources.get("selectCard"));u.appendChild(x);var z=document.createElement("div");z.style.whiteSpace="nowrap";z.style.overflow="auto";z.style.height="194px";u.appendChild(z);u=new CustomDialog(this.ui,u);this.ui.showDialog(u.container,+TrelloClient.prototype.showTrelloDialog=function(b,k){var m=null,g="@me",q=0,u=document.createElement("div");u.style.whiteSpace="nowrap";u.style.overflow="hidden";u.style.height="224px";var x=document.createElement("h3");mxUtils.write(x,b?mxResources.get("selectFile"):mxResources.get("selectCard"));u.appendChild(x);var z=document.createElement("div");z.style.whiteSpace="nowrap";z.style.overflow="auto";z.style.height="194px";u.appendChild(z);u=new CustomDialog(this.ui,u);this.ui.showDialog(u.container,340,290,!0,!0);u.okButton.parentNode.removeChild(u.okButton);var F=mxUtils.bind(this,function(l,n,r){q++;var t=document.createElement("div");t.style="width:100%;text-overflow:ellipsis;overflow:hidden;vertical-align:middle;padding:2px 0 2px 0;background:"+(0==q%2?Editor.isDarkMode()?"#000":"#eee":Editor.isDarkMode()?"":"#fff");var v=document.createElement("a");v.style.cursor="pointer";if(null!=r){var B=document.createElement("img");B.src=r.url;B.width=r.width;B.height=r.height;B.style="border: 1px solid black;margin:5px;vertical-align:middle";v.appendChild(B)}mxUtils.write(v,l);mxEvent.addListener(v,"click",n);t.appendChild(v);return t}),J=mxUtils.bind(this,function(l){this.ui.handleError(l,null,mxUtils.bind(this,function(){this.ui.spinner.stop();this.ui.hideDialog()}))}),H=mxUtils.bind(this,function(){q=0;z.innerText="";this.ui.spinner.spin(z,mxResources.get("loading"));var l=mxUtils.bind(this,function(){Trello.cards.get(m+"/attachments",{fields:"id,name,previews"},mxUtils.bind(this,function(n){this.ui.spinner.stop();z.appendChild(F("../ [Up]",-mxUtils.bind(this,function(){g()})));mxUtils.br(z);null==n||0==n.length?mxUtils.write(z,mxResources.get("noFiles")):mxUtils.bind(this,function(){for(var r=0;r<n.length;r++)mxUtils.bind(this,function(t){z.appendChild(F(t.name,mxUtils.bind(this,function(){this.ui.hideDialog();k(m+this.SEPARATOR+t.id)}),null!=t.previews?t.previews[0]:null))})(n[r])})()}),mxUtils.bind(this,function(n){401==n.status?this.authenticate(l,J,!0):null!=J&&J(n)}))});l()}),D=null,c=null,g=mxUtils.bind(this,function(l){null==-l&&(q=0,z.innerText="",l=1);this.ui.spinner.spin(z,mxResources.get("loading"));null!=D&&null!=D.parentNode&&D.parentNode.removeChild(D);D=document.createElement("a");D.style.display="block";D.style.cursor="pointer";mxUtils.write(D,mxResources.get("more")+"...");var n=mxUtils.bind(this,function(){mxEvent.removeListener(z,"scroll",c);g(l+1)});mxEvent.addListener(D,"click",n);var r=mxUtils.bind(this,function(){Trello.get("search",{query:""==mxUtils.trim(f)?"is:open":f,cards_limit:100,cards_page:l-1},-mxUtils.bind(this,function(t){this.ui.spinner.stop();t=null!=t?t.cards:null;if(null==t||0==t.length)mxUtils.write(z,mxResources.get("noFiles"));else{1==l&&(z.appendChild(F(mxResources.get("filterCards")+"...",mxUtils.bind(this,function(){var B=new FilenameDialog(this.ui,f,mxResources.get("ok"),mxUtils.bind(this,function(E){null!=E&&(f=E,g())}),mxResources.get("filterCards"),null,null,"http://help.trello.com/article/808-searching-for-cards-all-boards");this.ui.showDialog(B.container,300,80,!0,!1);-B.init()}))),mxUtils.br(z));for(var v=0;v<t.length;v++)mxUtils.bind(this,function(B){z.appendChild(F(B.name,mxUtils.bind(this,function(){b?(m=B.id,H()):(this.ui.hideDialog(),k(B.id))})))})(t[v]);100==t.length&&(z.appendChild(D),c=function(){z.scrollTop>=z.scrollHeight-z.offsetHeight&&n()},mxEvent.addListener(z,"scroll",c))}}),mxUtils.bind(this,function(t){401==t.status?this.authenticate(r,J,!0):null!=J&&J({message:t.responseText})}))});r()});g()};+mxUtils.bind(this,function(){f()})));mxUtils.br(z);null==n||0==n.length?mxUtils.write(z,mxResources.get("noFiles")):mxUtils.bind(this,function(){for(var r=0;r<n.length;r++)mxUtils.bind(this,function(t){z.appendChild(F(t.name,mxUtils.bind(this,function(){this.ui.hideDialog();k(m+this.SEPARATOR+t.id)}),null!=t.previews?t.previews[0]:null))})(n[r])})()}),mxUtils.bind(this,function(n){401==n.status?this.authenticate(l,J,!0):null!=J&&J(n)}))});l()}),D=null,c=null,f=mxUtils.bind(this,function(l){null==+l&&(q=0,z.innerText="",l=1);this.ui.spinner.spin(z,mxResources.get("loading"));null!=D&&null!=D.parentNode&&D.parentNode.removeChild(D);D=document.createElement("a");D.style.display="block";D.style.cursor="pointer";mxUtils.write(D,mxResources.get("more")+"...");var n=mxUtils.bind(this,function(){mxEvent.removeListener(z,"scroll",c);f(l+1)});mxEvent.addListener(D,"click",n);var r=mxUtils.bind(this,function(){Trello.get("search",{query:""==mxUtils.trim(g)?"is:open":g,cards_limit:100,cards_page:l-1},+mxUtils.bind(this,function(t){this.ui.spinner.stop();t=null!=t?t.cards:null;if(null==t||0==t.length)mxUtils.write(z,mxResources.get("noFiles"));else{1==l&&(z.appendChild(F(mxResources.get("filterCards")+"...",mxUtils.bind(this,function(){var B=new FilenameDialog(this.ui,g,mxResources.get("ok"),mxUtils.bind(this,function(E){null!=E&&(g=E,f())}),mxResources.get("filterCards"),null,null,"http://help.trello.com/article/808-searching-for-cards-all-boards");this.ui.showDialog(B.container,300,80,!0,!1);+B.init()}))),mxUtils.br(z));for(var v=0;v<t.length;v++)mxUtils.bind(this,function(B){z.appendChild(F(B.name,mxUtils.bind(this,function(){b?(m=B.id,H()):(this.ui.hideDialog(),k(B.id))})))})(t[v]);100==t.length&&(z.appendChild(D),c=function(){z.scrollTop>=z.scrollHeight-z.offsetHeight&&n()},mxEvent.addListener(z,"scroll",c))}}),mxUtils.bind(this,function(t){401==t.status?this.authenticate(r,J,!0):null!=J&&J({message:t.responseText})}))});r()});f()};TrelloClient.prototype.isAuthorized=function(){try{var b=localStorage.trello_token;null==b&&(b=localStorage.drawio_trello_token,null!=b&&localStorage.setItem("trello_token",b));return null!=b}catch(k){}return!1};TrelloClient.prototype.logout=function(){localStorage.removeItem("drawio_trello_token");Trello.deauthorize()};GitLabFile=function(b,k,m){GitHubFile.call(this,b,k,m);this.peer=this.ui.gitLab};mxUtils.extend(GitLabFile,GitHubFile);GitLabFile.prototype.getFileUrl=function(){return this.meta.html_url};GitLabFile.prototype.getFolderUrl=function(){var b=this.getFileUrl();return b.substring(0,b.lastIndexOf("/"))};GitLabFile.prototype.share=function(){this.ui.editor.graph.openLink(DRAWIO_GITLAB_URL+"/"+this.meta.org+"/"+encodeURIComponent(this.meta.repo)+"/-/project_members")};GitLabFile.prototype.getId=function(){return this.meta.org+"/"+(null!=this.meta.repo?encodeURIComponent(this.meta.repo)+"/"+(null!=this.meta.ref?this.meta.ref+(null!=this.meta.path?"/"+this.meta.path:""):""):"")};GitLabFile.prototype.getHash=function(){return encodeURIComponent("A"+this.getId())};GitLabFile.prototype.isConflict=function(b){return null!=b&&400==b.status};GitLabFile.prototype.getMode=function(){return App.MODE_GITLAB};GitLabFile.prototype.getDescriptorEtag=function(b){return b.last_commit_id};GitLabFile.prototype.setDescriptorEtag=function(b,k){b.last_commit_id=k};GitLabLibrary=function(b,k,m){GitLabFile.call(this,b,k,m)};mxUtils.extend(GitLabLibrary,GitLabFile);GitLabLibrary.prototype.doSave=function(b,k,m){this.saveFile(b,!1,k,m)};GitLabLibrary.prototype.open=function(){};(function(){var b=null;window.GitLabClient=function(k){GitHubClient.call(this,k,"gitlabauth")};mxUtils.extend(GitLabClient,GitHubClient);GitLabClient.DEFAULT_URL="https://gitlab.com";GitLabClient.prototype.clientId=DRAWIO_GITLAB_ID;GitLabClient.prototype.scope="api%20read_repository%20write_repository";GitLabClient.prototype.baseUrl=DRAWIO_GITLAB_URL+"/api/v4";GitLabClient.prototype.maxFileSize=1E7;GitLabClient.prototype.authToken="Bearer";GitLabClient.prototype.redirectUri=window.DRAWIO_SERVER_URL+-"gitlab";GitLabClient.prototype.authenticate=function(k,m){DRAWIO_GITLAB_URL===GitLabClient.DEFAULT_URL||Editor.enableCustomGitLabUrl?(new mxXmlRequest(this.redirectUri+"?getState=1",null,"GET")).send(mxUtils.bind(this,function(f){200<=f.getStatus()&&299>=f.getStatus()?this.authenticateStep2(f.getText(),k,m):null!=m&&m(f)}),m):(this.ui.showDialog((new CustomGitLabUrlWarningDialog(this.ui,DRAWIO_GITLAB_URL)).container,420,null,!0,!0),null!=m&&m({message:mxResources.get("accessDenied")}))};GitLabClient.prototype.authenticateStep2=-function(k,m,f){if(null==window.onGitLabCallback){var q=mxUtils.bind(this,function(){var u=!0;null!=this.getPersistentToken(!0)?(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+k),null,"GET")).send(mxUtils.bind(this,function(x){if(200<=x.getStatus()&&299>=x.getStatus())try{b=JSON.parse(x.getText()).access_token,this.setToken(b),this.setUser(null),m()}catch(z){f({message:mxResources.get("authFailed"),retry:q})}else this.clearPersistentToken(),-this.setUser(null),b=null,this.setToken(null),401==x.getStatus()?q():f({message:mxResources.get("accessDenied"),retry:q})}),f):this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(x,z){null!=window.open(DRAWIO_GITLAB_URL+"/oauth/authorize?client_id="+this.clientId+"&scope="+this.scope+"&redirect_uri="+encodeURIComponent(this.redirectUri)+"&response_type=code&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+k),"gitlabauth")?window.onGitLabCallback=mxUtils.bind(this,-function(F,J){u?(window.onGitLabCallback=null,u=!1,null==F?f({message:mxResources.get("accessDenied"),retry:q}):(null!=z&&z(),b=F.access_token,this.setToken(b),this.setUser(null),x&&this.setPersistentToken("remembered"),m(),null!=J&&J.close())):null!=J&&J.close()}):f({message:mxResources.get("serviceUnavailableOrBlocked"),retry:q})}),mxUtils.bind(this,function(){u&&(window.onGitLabCallback=null,u=!1,f({message:mxResources.get("accessDenied"),retry:q}))}))});q()}else f({code:App.ERROR_BUSY})};GitLabClient.prototype.executeRequest=-function(k,m,f,q){var u=mxUtils.bind(this,function(z){var F=!0,J=window.setTimeout(mxUtils.bind(this,function(){F=!1;f({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout),H=this.authToken+" "+b;k.setRequestHeaders=function(D,c){D.setRequestHeader("Authorization",H);D.setRequestHeader("PRIVATE_TOKEN",H);D.setRequestHeader("Content-Type","application/json")};k.send(mxUtils.bind(this,function(){window.clearTimeout(J);if(F)if(200<=k.getStatus()&&299>=k.getStatus()||q&&404==-k.getStatus())m(k);else if(401===k.getStatus())z?f({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){x(!0)},f)})}):this.authenticate(function(){u(!0)},f);else if(403===k.getStatus()){var D=!1;try{var c=JSON.parse(k.getText());null!=c&&null!=c.errors&&0<c.errors.length&&(D="too_large"==c.errors[0].code)}catch(g){}f({message:mxResources.get(D?"drawingTooLarge":"forbidden")})}else 404===k.getStatus()?f({message:this.getErrorMessage(k,mxResources.get("fileNotFound"))}):-f({status:k.getStatus(),message:this.getErrorMessage(k,mxResources.get("error")+" "+k.getStatus())})}),mxUtils.bind(this,function(D){window.clearTimeout(J);F&&f(D)}))}),x=mxUtils.bind(this,function(z){null==this.user?this.updateUser(function(){x(!0)},f,z):u(z)});null==b?this.authenticate(function(){x(!0)},f):x(!1)};GitLabClient.prototype.getRefIndex=function(k,m,f,q,u,x){if(null!=u)f(k,u);else{var z=k.length-2,F=mxUtils.bind(this,function(){if(2>z)q({message:mxResources.get("fileNotFound")});else{var J=-Math.max(z-1,0),H=k.slice(0,J).join("/");J=k[J];var D=k[z],c=k.slice(z+1,k.length).join("/");H=this.baseUrl+"/projects/"+encodeURIComponent(H+"/"+J)+"/repository/"+(m?x?"branches?per_page=1&page=1&ref="+D:"tree?path="+c+"&ref="+D:"files/"+encodeURIComponent(c)+"?ref="+D);var g=new mxXmlRequest(H,null,"HEAD");this.executeRequest(g,mxUtils.bind(this,function(){200==g.getStatus()?f(k,z):q({message:mxResources.get("fileNotFound")})}),mxUtils.bind(this,function(){404==g.getStatus()?(z--,F()):q({message:mxResources.get("fileNotFound")})}))}});-F()}};GitLabClient.prototype.getFile=function(k,m,f,q,u,x){q=null!=q?q:!1;this.getRefIndex(k.split("/"),!1,mxUtils.bind(this,function(z,F){var J=Math.max(F-1,0),H=z.slice(0,J).join("/"),D=z[J],c=z[F];k=z.slice(F+1,z.length).join("/");z=/\.png$/i.test(k);if(!u&&(/\.v(dx|sdx?)$/i.test(k)||/\.gliffy$/i.test(k)||/\.pdf$/i.test(k)||!Editor.useCanvasForExport&&z))if(null!=b){J="&t="+(new Date).getTime();var g=this.baseUrl+"/projects/"+encodeURIComponent(H+"/"+D)+"/repository/files/"+encodeURIComponent(k)+-"?ref="+c;z=k.split("/");this.ui.convertFile(g+J,0<z.length?z[z.length-1]:k,null,this.extension,m,f,mxUtils.bind(this,function(l,n,r){l=new mxXmlRequest(l,null,"GET");this.executeRequest(l,mxUtils.bind(this,function(t){try{n(this.getFileContent(JSON.parse(t.getText())))}catch(v){r(v)}}),r)}))}else f({message:mxResources.get("accessDenied")});else J="&t="+(new Date).getTime(),g=this.baseUrl+"/projects/"+encodeURIComponent(H+"/"+D)+"/repository/files/"+encodeURIComponent(k)+"?ref="+c,z=new mxXmlRequest(g+-J,null,"GET"),this.executeRequest(z,mxUtils.bind(this,function(l){try{m(this.createGitLabFile(H,D,c,JSON.parse(l.getText()),q,F))}catch(n){f(n)}}),f)}),f,x)};GitLabClient.prototype.getFileContent=function(k){var m=k.file_name,f=k.content;"base64"===k.encoding&&(/\.jpe?g$/i.test(m)?f="data:image/jpeg;base64,"+f:/\.gif$/i.test(m)?f="data:image/gif;base64,"+f:/\.pdf$/i.test(m)?f="data:application/pdf;base64,"+f:/\.png$/i.test(m)?(k=this.ui.extractGraphModelFromPng(f),f=null!=k&&0<k.length?k:"data:image/png;base64,"+-f):f=Base64.decode(f));return f};GitLabClient.prototype.createGitLabFile=function(k,m,f,q,u,x){var z=DRAWIO_GITLAB_URL+"/";k={org:k,repo:m,ref:f,name:q.file_name,path:q.file_path,html_url:z+k+"/"+m+"/blob/"+f+"/"+q.file_path,download_url:z+k+"/"+m+"/raw/"+f+"/"+q.file_path+"?inline=false",last_commit_id:q.last_commit_id,refPos:x};q=this.getFileContent(q);return u?new GitLabLibrary(this.ui,q,k):new GitLabFile(this.ui,q,k)};GitLabClient.prototype.insertFile=function(k,m,f,q,u,x,z){u=null!=u?u:!1;x=-x.split("/");this.getRefIndex(x,!0,mxUtils.bind(this,function(F,J){var H=Math.max(J-1,0),D=F.slice(0,H).join("/"),c=F[H],g=F[J];path=F.slice(J+1,F.length).join("/");0<path.length&&(path+="/");path+=k;this.checkExists(D+"/"+c+"/"+g+"/"+path,!0,mxUtils.bind(this,function(l,n){l?u?(z||(m=Base64.encode(m)),this.showCommitDialog(k,!0,mxUtils.bind(this,function(r){this.writeFile(D,c,g,path,r,m,n,mxUtils.bind(this,function(t){try{var v=JSON.parse(t.getText());f(this.createGitLabFile(D,c,g,null!=v.content?-v.content:v,u,J))}catch(B){q(B)}}),q)}),q)):(l=DRAWIO_GITLAB_URL+"/",f(new GitLabFile(this.ui,m,{org:D,repo:c,ref:g,name:k,path:path,html_url:l+D+"/"+c+"/blob/"+g+"/"+path,download_url:l+D+"/"+c+"/raw/"+g+"/"+path+"?inline=false",refPos:J,last_commit_id:n,isNew:!0}))):q()}))}),q,null,4>=x.length)};GitLabClient.prototype.checkExists=function(k,m,f){this.getFile(k,mxUtils.bind(this,function(q){if(m){var u=this.ui.spinner.pause();this.ui.confirm(mxResources.get("replaceIt",[k]),function(){u();f(!0,q.getCurrentEtag())},-function(){u();f(!1)})}else this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){f(!1)})}),mxUtils.bind(this,function(q){f(!0)}),null,!0)};GitLabClient.prototype.writeFile=function(k,m,f,q,u,x,z,F,J){if(x.length>=this.maxFileSize)J({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(x.length)+" / 10 MB)"});else{var H="POST";f={path:encodeURIComponent(q),branch:decodeURIComponent(f),commit_message:u,content:x,-encoding:"base64"};null!=z&&(f.last_commit_id=z,H="PUT");k=this.baseUrl+"/projects/"+encodeURIComponent(k+"/"+m)+"/repository/files/"+encodeURIComponent(q);H=new mxXmlRequest(k,JSON.stringify(f),H);this.executeRequest(H,mxUtils.bind(this,function(D){F(D)}),J)}};GitLabClient.prototype.saveFile=function(k,m,f,q,u){var x=k.meta.org,z=k.meta.repo,F=k.meta.ref,J=k.meta.path,H=mxUtils.bind(this,function(c,g){this.writeFile(x,z,F,J,u,g,c,mxUtils.bind(this,function(l){delete k.meta.isNew;this.getFile(x+"/"+-z+"/"+F+"/"+J,mxUtils.bind(this,function(n){n.getData()==k.getData()?m(n.getCurrentEtag()):m({content:k.getCurrentEtag()})}),f,null,null,k.meta.refPos)}),f)}),D=mxUtils.bind(this,function(){if(Editor.useCanvasForExport&&/(\.png)$/i.test(J)){var c=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(g){H(k.meta.last_commit_id,g)}),f,this.ui.getCurrentFile()!=k?k.getData():null,c.scale,c.border)}else H(k.meta.last_commit_id,Base64.encode(k.getData()))});q?-this.getFile(x+"/"+z+"/"+F+"/"+J,mxUtils.bind(this,function(c){k.meta.last_commit_id=c.meta.last_commit_id;D()}),f):D()};GitLabClient.prototype.pickFolder=function(k){this.showGitLabDialog(!1,k,!0)};GitLabClient.prototype.pickFile=function(k){k=null!=k?k:mxUtils.bind(this,function(m){this.ui.loadFile("A"+encodeURIComponent(m))});this.showGitLabDialog(!0,k)};GitLabClient.prototype.showGitLabDialog=function(k,m,f){var q=null,u=null,x=null,z=null,F=document.createElement("div");F.style.whiteSpace="nowrap";+"gitlab";GitLabClient.prototype.authenticate=function(k,m){DRAWIO_GITLAB_URL===GitLabClient.DEFAULT_URL||Editor.enableCustomGitLabUrl?(new mxXmlRequest(this.redirectUri+"?getState=1",null,"GET")).send(mxUtils.bind(this,function(g){200<=g.getStatus()&&299>=g.getStatus()?this.authenticateStep2(g.getText(),k,m):null!=m&&m(g)}),m):(this.ui.showDialog((new CustomGitLabUrlWarningDialog(this.ui,DRAWIO_GITLAB_URL)).container,420,null,!0,!0),null!=m&&m({message:mxResources.get("accessDenied")}))};GitLabClient.prototype.authenticateStep2=+function(k,m,g){if(null==window.onGitLabCallback){var q=mxUtils.bind(this,function(){var u=!0;null!=this.getPersistentToken(!0)?(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+k),null,"GET")).send(mxUtils.bind(this,function(x){if(200<=x.getStatus()&&299>=x.getStatus())try{b=JSON.parse(x.getText()).access_token,this.setToken(b),this.setUser(null),m()}catch(z){g({message:mxResources.get("authFailed"),retry:q})}else this.clearPersistentToken(),+this.setUser(null),b=null,this.setToken(null),401==x.getStatus()?q():g({message:mxResources.get("accessDenied"),retry:q})}),g):this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(x,z){null!=window.open(DRAWIO_GITLAB_URL+"/oauth/authorize?client_id="+this.clientId+"&scope="+this.scope+"&redirect_uri="+encodeURIComponent(this.redirectUri)+"&response_type=code&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+k),"gitlabauth")?window.onGitLabCallback=mxUtils.bind(this,+function(F,J){u?(window.onGitLabCallback=null,u=!1,null==F?g({message:mxResources.get("accessDenied"),retry:q}):(null!=z&&z(),b=F.access_token,this.setToken(b),this.setUser(null),x&&this.setPersistentToken("remembered"),m(),null!=J&&J.close())):null!=J&&J.close()}):g({message:mxResources.get("serviceUnavailableOrBlocked"),retry:q})}),mxUtils.bind(this,function(){u&&(window.onGitLabCallback=null,u=!1,g({message:mxResources.get("accessDenied"),retry:q}))}))});q()}else g({code:App.ERROR_BUSY})};GitLabClient.prototype.executeRequest=+function(k,m,g,q){var u=mxUtils.bind(this,function(z){var F=!0,J=window.setTimeout(mxUtils.bind(this,function(){F=!1;g({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout),H=this.authToken+" "+b;k.setRequestHeaders=function(D,c){D.setRequestHeader("Authorization",H);D.setRequestHeader("PRIVATE_TOKEN",H);D.setRequestHeader("Content-Type","application/json")};k.send(mxUtils.bind(this,function(){window.clearTimeout(J);if(F)if(200<=k.getStatus()&&299>=k.getStatus()||q&&404==+k.getStatus())m(k);else if(401===k.getStatus())z?g({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){x(!0)},g)})}):this.authenticate(function(){u(!0)},g);else if(403===k.getStatus()){var D=!1;try{var c=JSON.parse(k.getText());null!=c&&null!=c.errors&&0<c.errors.length&&(D="too_large"==c.errors[0].code)}catch(f){}g({message:mxResources.get(D?"drawingTooLarge":"forbidden")})}else 404===k.getStatus()?g({message:this.getErrorMessage(k,mxResources.get("fileNotFound"))}):+g({status:k.getStatus(),message:this.getErrorMessage(k,mxResources.get("error")+" "+k.getStatus())})}),mxUtils.bind(this,function(D){window.clearTimeout(J);F&&g(D)}))}),x=mxUtils.bind(this,function(z){null==this.user?this.updateUser(function(){x(!0)},g,z):u(z)});null==b?this.authenticate(function(){x(!0)},g):x(!1)};GitLabClient.prototype.getRefIndex=function(k,m,g,q,u,x){if(null!=u)g(k,u);else{var z=k.length-2,F=mxUtils.bind(this,function(){if(2>z)q({message:mxResources.get("fileNotFound")});else{var J=+Math.max(z-1,0),H=k.slice(0,J).join("/");J=k[J];var D=k[z],c=k.slice(z+1,k.length).join("/");H=this.baseUrl+"/projects/"+encodeURIComponent(H+"/"+J)+"/repository/"+(m?x?"branches?per_page=1&page=1&ref="+D:"tree?path="+c+"&ref="+D:"files/"+encodeURIComponent(c)+"?ref="+D);var f=new mxXmlRequest(H,null,"HEAD");this.executeRequest(f,mxUtils.bind(this,function(){200==f.getStatus()?g(k,z):q({message:mxResources.get("fileNotFound")})}),mxUtils.bind(this,function(){404==f.getStatus()?(z--,F()):q({message:mxResources.get("fileNotFound")})}))}});+F()}};GitLabClient.prototype.getFile=function(k,m,g,q,u,x){q=null!=q?q:!1;this.getRefIndex(k.split("/"),!1,mxUtils.bind(this,function(z,F){var J=Math.max(F-1,0),H=z.slice(0,J).join("/"),D=z[J],c=z[F];k=z.slice(F+1,z.length).join("/");z=/\.png$/i.test(k);if(!u&&(/\.v(dx|sdx?)$/i.test(k)||/\.gliffy$/i.test(k)||/\.pdf$/i.test(k)||!Editor.useCanvasForExport&&z))if(null!=b){J="&t="+(new Date).getTime();var f=this.baseUrl+"/projects/"+encodeURIComponent(H+"/"+D)+"/repository/files/"+encodeURIComponent(k)++"?ref="+c;z=k.split("/");this.ui.convertFile(f+J,0<z.length?z[z.length-1]:k,null,this.extension,m,g,mxUtils.bind(this,function(l,n,r){l=new mxXmlRequest(l,null,"GET");this.executeRequest(l,mxUtils.bind(this,function(t){try{n(this.getFileContent(JSON.parse(t.getText())))}catch(v){r(v)}}),r)}))}else g({message:mxResources.get("accessDenied")});else J="&t="+(new Date).getTime(),f=this.baseUrl+"/projects/"+encodeURIComponent(H+"/"+D)+"/repository/files/"+encodeURIComponent(k)+"?ref="+c,z=new mxXmlRequest(f++J,null,"GET"),this.executeRequest(z,mxUtils.bind(this,function(l){try{m(this.createGitLabFile(H,D,c,JSON.parse(l.getText()),q,F))}catch(n){g(n)}}),g)}),g,x)};GitLabClient.prototype.getFileContent=function(k){var m=k.file_name,g=k.content;"base64"===k.encoding&&(/\.jpe?g$/i.test(m)?g="data:image/jpeg;base64,"+g:/\.gif$/i.test(m)?g="data:image/gif;base64,"+g:/\.pdf$/i.test(m)?g="data:application/pdf;base64,"+g:/\.png$/i.test(m)?(k=this.ui.extractGraphModelFromPng(g),g=null!=k&&0<k.length?k:"data:image/png;base64,"++g):g=Base64.decode(g));return g};GitLabClient.prototype.createGitLabFile=function(k,m,g,q,u,x){var z=DRAWIO_GITLAB_URL+"/";k={org:k,repo:m,ref:g,name:q.file_name,path:q.file_path,html_url:z+k+"/"+m+"/blob/"+g+"/"+q.file_path,download_url:z+k+"/"+m+"/raw/"+g+"/"+q.file_path+"?inline=false",last_commit_id:q.last_commit_id,refPos:x};q=this.getFileContent(q);return u?new GitLabLibrary(this.ui,q,k):new GitLabFile(this.ui,q,k)};GitLabClient.prototype.insertFile=function(k,m,g,q,u,x,z){u=null!=u?u:!1;x=+x.split("/");this.getRefIndex(x,!0,mxUtils.bind(this,function(F,J){var H=Math.max(J-1,0),D=F.slice(0,H).join("/"),c=F[H],f=F[J];path=F.slice(J+1,F.length).join("/");0<path.length&&(path+="/");path+=k;this.checkExists(D+"/"+c+"/"+f+"/"+path,!0,mxUtils.bind(this,function(l,n){l?u?(z||(m=Base64.encode(m)),this.showCommitDialog(k,!0,mxUtils.bind(this,function(r){this.writeFile(D,c,f,path,r,m,n,mxUtils.bind(this,function(t){try{var v=JSON.parse(t.getText());g(this.createGitLabFile(D,c,f,null!=v.content?+v.content:v,u,J))}catch(B){q(B)}}),q)}),q)):(l=DRAWIO_GITLAB_URL+"/",g(new GitLabFile(this.ui,m,{org:D,repo:c,ref:f,name:k,path:path,html_url:l+D+"/"+c+"/blob/"+f+"/"+path,download_url:l+D+"/"+c+"/raw/"+f+"/"+path+"?inline=false",refPos:J,last_commit_id:n,isNew:!0}))):q()}))}),q,null,4>=x.length)};GitLabClient.prototype.checkExists=function(k,m,g){this.getFile(k,mxUtils.bind(this,function(q){if(m){var u=this.ui.spinner.pause();this.ui.confirm(mxResources.get("replaceIt",[k]),function(){u();g(!0,q.getCurrentEtag())},+function(){u();g(!1)})}else this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){g(!1)})}),mxUtils.bind(this,function(q){g(!0)}),null,!0)};GitLabClient.prototype.writeFile=function(k,m,g,q,u,x,z,F,J){if(x.length>=this.maxFileSize)J({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(x.length)+" / 10 MB)"});else{var H="POST";g={path:encodeURIComponent(q),branch:decodeURIComponent(g),commit_message:u,content:x,+encoding:"base64"};null!=z&&(g.last_commit_id=z,H="PUT");k=this.baseUrl+"/projects/"+encodeURIComponent(k+"/"+m)+"/repository/files/"+encodeURIComponent(q);H=new mxXmlRequest(k,JSON.stringify(g),H);this.executeRequest(H,mxUtils.bind(this,function(D){F(D)}),J)}};GitLabClient.prototype.saveFile=function(k,m,g,q,u){var x=k.meta.org,z=k.meta.repo,F=k.meta.ref,J=k.meta.path,H=mxUtils.bind(this,function(c,f){this.writeFile(x,z,F,J,u,f,c,mxUtils.bind(this,function(l){delete k.meta.isNew;this.getFile(x+"/"++z+"/"+F+"/"+J,mxUtils.bind(this,function(n){n.getData()==k.getData()?m(n.getCurrentEtag()):m({content:k.getCurrentEtag()})}),g,null,null,k.meta.refPos)}),g)}),D=mxUtils.bind(this,function(){if(Editor.useCanvasForExport&&/(\.png)$/i.test(J)){var c=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(f){H(k.meta.last_commit_id,f)}),g,this.ui.getCurrentFile()!=k?k.getData():null,c.scale,c.border)}else H(k.meta.last_commit_id,Base64.encode(k.getData()))});q?+this.getFile(x+"/"+z+"/"+F+"/"+J,mxUtils.bind(this,function(c){k.meta.last_commit_id=c.meta.last_commit_id;D()}),g):D()};GitLabClient.prototype.pickFolder=function(k){this.showGitLabDialog(!1,k,!0)};GitLabClient.prototype.pickFile=function(k){k=null!=k?k:mxUtils.bind(this,function(m){this.ui.loadFile("A"+encodeURIComponent(m))});this.showGitLabDialog(!0,k)};GitLabClient.prototype.showGitLabDialog=function(k,m,g){var q=null,u=null,x=null,z=null,F=document.createElement("div");F.style.whiteSpace="nowrap";F.style.overflow="hidden";F.style.height="304px";var J=document.createElement("h3");mxUtils.write(J,mxResources.get(k?"selectFile":"selectFolder"));F.appendChild(J);var H=document.createElement("div");H.style.whiteSpace="nowrap";H.style.border="1px solid lightgray";H.style.boxSizing="border-box";H.style.padding="4px";H.style.overflow="auto";H.style.lineHeight="1.2em";H.style.height="274px";F.appendChild(H);var D=document.createElement("div");D.style.textOverflow="ellipsis";D.style.boxSizing="border-box";-D.style.overflow="hidden";D.style.padding="4px";D.style.width="100%";var c=new CustomDialog(this.ui,F,mxUtils.bind(this,function(){m(q+"/"+u+"/"+encodeURIComponent(x)+"/"+z)}));this.ui.showDialog(c.container,420,370,!0,!0);k&&c.okButton.parentNode.removeChild(c.okButton);var g=mxUtils.bind(this,function(K,C,R,M){var O=document.createElement("a");O.setAttribute("title",K);O.style.cursor="pointer";mxUtils.write(O,K);mxEvent.addListener(O,"click",C);M&&(O.style.textDecoration="underline");null!=R&&(K=-D.cloneNode(),K.style.padding=R,K.appendChild(O),O=K);return O}),l=mxUtils.bind(this,function(K){var C=document.createElement("div");C.style.marginBottom="8px";C.appendChild(g(q+"/"+u,mxUtils.bind(this,function(){z=null;E()}),null,!0));K||(mxUtils.write(C," / "),C.appendChild(g(decodeURIComponent(x),mxUtils.bind(this,function(){z=null;B()}),null,!0)));if(null!=z&&0<z.length){var R=z.split("/");for(K=0;K<R.length;K++)(function(M){mxUtils.write(C," / ");C.appendChild(g(R[M],mxUtils.bind(this,function(){z=+D.style.overflow="hidden";D.style.padding="4px";D.style.width="100%";var c=new CustomDialog(this.ui,F,mxUtils.bind(this,function(){m(q+"/"+u+"/"+encodeURIComponent(x)+"/"+z)}));this.ui.showDialog(c.container,420,370,!0,!0);k&&c.okButton.parentNode.removeChild(c.okButton);var f=mxUtils.bind(this,function(K,C,R,M){var O=document.createElement("a");O.setAttribute("title",K);O.style.cursor="pointer";mxUtils.write(O,K);mxEvent.addListener(O,"click",C);M&&(O.style.textDecoration="underline");null!=R&&(K=+D.cloneNode(),K.style.padding=R,K.appendChild(O),O=K);return O}),l=mxUtils.bind(this,function(K){var C=document.createElement("div");C.style.marginBottom="8px";C.appendChild(f(q+"/"+u,mxUtils.bind(this,function(){z=null;E()}),null,!0));K||(mxUtils.write(C," / "),C.appendChild(f(decodeURIComponent(x),mxUtils.bind(this,function(){z=null;B()}),null,!0)));if(null!=z&&0<z.length){var R=z.split("/");for(K=0;K<R.length;K++)(function(M){mxUtils.write(C," / ");C.appendChild(f(R[M],mxUtils.bind(this,function(){z=R.slice(0,M+1).join("/");v()}),null,!0))})(K)}H.appendChild(C)}),n=mxUtils.bind(this,function(K){this.ui.handleError(K,null,mxUtils.bind(this,function(){this.ui.spinner.stop();null!=this.getUser()?(z=x=u=q=null,E()):this.ui.hideDialog()}))}),r=null,t=null,v=mxUtils.bind(this,function(K){null==K&&(H.innerText="",K=1);var C=new mxXmlRequest(this.baseUrl+"/projects/"+encodeURIComponent(q+"/"+u)+"/repository/tree?path="+z+"&ref="+x+"&per_page=100&page="+K,null,"GET");this.ui.spinner.spin(H,mxResources.get("loading"));-c.okButton.removeAttribute("disabled");null!=t&&(mxEvent.removeListener(H,"scroll",t),t=null);null!=r&&null!=r.parentNode&&r.parentNode.removeChild(r);r=document.createElement("a");r.style.display="block";r.style.cursor="pointer";mxUtils.write(r,mxResources.get("more")+"...");var R=mxUtils.bind(this,function(){v(K+1)});mxEvent.addListener(r,"click",R);this.executeRequest(C,mxUtils.bind(this,function(M){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();1==K&&(l(!x),H.appendChild(g("../ [Up]",-mxUtils.bind(this,function(){if(""==z||null==z)z=null,E();else{var fa=z.split("/");z=fa.slice(0,fa.length-1).join("/");v()}}),"4px")));var O=JSON.parse(M.getText());if(null==O||0==O.length)f||(mxUtils.br(H),mxUtils.write(H,mxResources.get("noFiles")));else{var U=!0,T=0,V=mxUtils.bind(this,function(fa){for(var y=0;y<O.length;y++)mxUtils.bind(this,function(d){if(fa==("tree"==d.type)){var p=D.cloneNode();p.style.backgroundColor=U?Editor.isDarkMode()?"#000000":"#eeeeee":"";U=!U;var A=document.createElement("img");-A.src=IMAGE_PATH+"/"+("tree"==d.type?"folder.png":"file.png");A.setAttribute("align","absmiddle");A.style.marginRight="4px";A.style.marginTop="-4px";A.width=20;p.appendChild(A);p.appendChild(g(d.name+("tree"==d.type?"/":""),mxUtils.bind(this,function(){"tree"==d.type?(z=d.path,v()):k&&"blob"==d.type&&(this.ui.hideDialog(),m(q+"/"+u+"/"+x+"/"+d.path))})));H.appendChild(p);T++}})(O[y])});V(!0);k&&V(!1);100==T&&(H.appendChild(r),t=function(){H.scrollTop>=H.scrollHeight-H.offsetHeight&&R()},mxEvent.addListener(H,+c.okButton.removeAttribute("disabled");null!=t&&(mxEvent.removeListener(H,"scroll",t),t=null);null!=r&&null!=r.parentNode&&r.parentNode.removeChild(r);r=document.createElement("a");r.style.display="block";r.style.cursor="pointer";mxUtils.write(r,mxResources.get("more")+"...");var R=mxUtils.bind(this,function(){v(K+1)});mxEvent.addListener(r,"click",R);this.executeRequest(C,mxUtils.bind(this,function(M){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();1==K&&(l(!x),H.appendChild(f("../ [Up]",+mxUtils.bind(this,function(){if(""==z||null==z)z=null,E();else{var fa=z.split("/");z=fa.slice(0,fa.length-1).join("/");v()}}),"4px")));var O=JSON.parse(M.getText());if(null==O||0==O.length)g||(mxUtils.br(H),mxUtils.write(H,mxResources.get("noFiles")));else{var U=!0,T=0,V=mxUtils.bind(this,function(fa){for(var y=0;y<O.length;y++)mxUtils.bind(this,function(d){if(fa==("tree"==d.type)){var p=D.cloneNode();p.style.backgroundColor=U?Editor.isDarkMode()?"#000000":"#eeeeee":"";U=!U;var A=document.createElement("img");+A.src=IMAGE_PATH+"/"+("tree"==d.type?"folder.png":"file.png");A.setAttribute("align","absmiddle");A.style.marginRight="4px";A.style.marginTop="-4px";A.width=20;p.appendChild(A);p.appendChild(f(d.name+("tree"==d.type?"/":""),mxUtils.bind(this,function(){"tree"==d.type?(z=d.path,v()):k&&"blob"==d.type&&(this.ui.hideDialog(),m(q+"/"+u+"/"+x+"/"+d.path))})));H.appendChild(p);T++}})(O[y])});V(!0);k&&V(!1);100==T&&(H.appendChild(r),t=function(){H.scrollTop>=H.scrollHeight-H.offsetHeight&&R()},mxEvent.addListener(H,"scroll",t))}}))}),n,!0)}),B=mxUtils.bind(this,function(K,C){null==K&&(H.innerText="",K=1);var R=new mxXmlRequest(this.baseUrl+"/projects/"+encodeURIComponent(q+"/"+u)+"/repository/branches?per_page=100&page="+K,null,"GET");c.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(H,mxResources.get("loading"));null!=t&&(mxEvent.removeListener(H,"scroll",t),t=null);null!=r&&null!=r.parentNode&&r.parentNode.removeChild(r);r=document.createElement("a");r.style.display="block";r.style.cursor=-"pointer";mxUtils.write(r,mxResources.get("more")+"...");var M=mxUtils.bind(this,function(){B(K+1)});mxEvent.addListener(r,"click",M);this.executeRequest(R,mxUtils.bind(this,function(O){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();1==K&&(l(!0),H.appendChild(g("../ [Up]",mxUtils.bind(this,function(){z=null;E()}),"4px")));var U=JSON.parse(O.getText());if(null==U||0==U.length)mxUtils.br(H),mxUtils.write(H,mxResources.get("repositoryNotFound"));else if(1==U.length&&C)x=U[0].name,-z="",v();else{for(var T=0;T<U.length;T++)mxUtils.bind(this,function(V,fa){var y=D.cloneNode();y.style.backgroundColor=0==fa%2?Editor.isDarkMode()?"#000000":"#eeeeee":"";y.appendChild(g(V.name,mxUtils.bind(this,function(){x=encodeURIComponent(V.name);z="";v()})));H.appendChild(y)})(U[T],T);100==U.length&&(H.appendChild(r),t=function(){H.scrollTop>=H.scrollHeight-H.offsetHeight&&M()},mxEvent.addListener(H,"scroll",t))}}))}),n)});c.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(H,+"pointer";mxUtils.write(r,mxResources.get("more")+"...");var M=mxUtils.bind(this,function(){B(K+1)});mxEvent.addListener(r,"click",M);this.executeRequest(R,mxUtils.bind(this,function(O){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();1==K&&(l(!0),H.appendChild(f("../ [Up]",mxUtils.bind(this,function(){z=null;E()}),"4px")));var U=JSON.parse(O.getText());if(null==U||0==U.length)mxUtils.br(H),mxUtils.write(H,mxResources.get("repositoryNotFound"));else if(1==U.length&&C)x=U[0].name,+z="",v();else{for(var T=0;T<U.length;T++)mxUtils.bind(this,function(V,fa){var y=D.cloneNode();y.style.backgroundColor=0==fa%2?Editor.isDarkMode()?"#000000":"#eeeeee":"";y.appendChild(f(V.name,mxUtils.bind(this,function(){x=encodeURIComponent(V.name);z="";v()})));H.appendChild(y)})(U[T],T);100==U.length&&(H.appendChild(r),t=function(){H.scrollTop>=H.scrollHeight-H.offsetHeight&&M()},mxEvent.addListener(H,"scroll",t))}}))}),n)});c.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(H,mxResources.get("loading"));var E=mxUtils.bind(this,function(K){var C=this.ui.spinner,R=0;this.ui.spinner.stop();var M=function(){C.spin(H,mxResources.get("loading"));R+=1},O=function(){--R;0===R&&C.stop()};null==K&&(H.innerText="",K=1);null!=t&&(mxEvent.removeListener(H,"scroll",t),t=null);null!=r&&null!=r.parentNode&&r.parentNode.removeChild(r);r=document.createElement("a");r.style.display="block";r.style.cursor="pointer";mxUtils.write(r,mxResources.get("more")+"...");var U=mxUtils.bind(this,function(){0===R&&E(K+1)});mxEvent.addListener(r,"click",U);var T=mxUtils.bind(this,function(fa){M();var y=new mxXmlRequest(this.baseUrl+"/groups?per_page=100",null,"GET");this.executeRequest(y,mxUtils.bind(this,function(d){this.ui.tryAndHandle(mxUtils.bind(this,function(){fa(JSON.parse(d.getText()));O()}))}),n)}),V=mxUtils.bind(this,function(fa,y){M();var d=new mxXmlRequest(this.baseUrl+"/groups/"+fa.id+"/projects?per_page=100",null,"GET");this.executeRequest(d,mxUtils.bind(this,function(p){this.ui.tryAndHandle(mxUtils.bind(this,-function(){404==p.getStatus()?y(fa,[]):y(fa,JSON.parse(p.getText()));O()}))}),n,!0)});T(mxUtils.bind(this,function(fa){if(null==this.user)mxUtils.write(H,mxResources.get("loggedOut"));else{M();var y=new mxXmlRequest(this.baseUrl+"/users/"+this.user.id+"/projects?per_page=100&page="+K,null,"GET");this.executeRequest(y,mxUtils.bind(this,function(d){d=JSON.parse(d.getText());if(null!=d&&0!=d.length||null!=fa&&0!=fa.length){1==K&&(H.appendChild(g(mxResources.get("enterValue")+"...",mxUtils.bind(this,+function(){404==p.getStatus()?y(fa,[]):y(fa,JSON.parse(p.getText()));O()}))}),n,!0)});T(mxUtils.bind(this,function(fa){if(null==this.user)mxUtils.write(H,mxResources.get("loggedOut"));else{M();var y=new mxXmlRequest(this.baseUrl+"/users/"+this.user.id+"/projects?per_page=100&page="+K,null,"GET");this.executeRequest(y,mxUtils.bind(this,function(d){d=JSON.parse(d.getText());if(null!=d&&0!=d.length||null!=fa&&0!=fa.length){1==K&&(H.appendChild(f(mxResources.get("enterValue")+"...",mxUtils.bind(this,function(){if(0===R){var G=new FilenameDialog(this.ui,"group/project",mxResources.get("ok"),mxUtils.bind(this,function(I){null!=I&&(I=I.split("/"),1<I.length?(q=I.slice(0,I.length-1).join("/"),u=I[I.length-1],z="",B(null,!0)):(this.ui.spinner.stop(),this.ui.handleError({message:mxResources.get("invalidName")})))}),mxResources.get("enterValue"));this.ui.showDialog(G.container,300,80,!0,!1);G.init()}}))),mxUtils.br(H),mxUtils.br(H));for(var p=!0,A=0;A<d.length;A++)mxUtils.bind(this,function(G){var I=-D.cloneNode();I.style.backgroundColor=p?Editor.isDarkMode()?"#000000":"#eeeeee":"";p=!p;I.appendChild(g(G.name_with_namespace,mxUtils.bind(this,function(){0===R&&(q=G.owner.username,u=G.path,z="",B(null,!0))})));H.appendChild(I)})(d[A]);for(A=0;A<fa.length;A++)M(),V(fa[A],mxUtils.bind(this,function(G,I){O();for(var L=0;L<I.length;L++){var P=D.cloneNode();P.style.backgroundColor=p?Editor.isDarkMode()?"#000000":"#eeeeee":"";p=!p;mxUtils.bind(this,function(Q){P.appendChild(g(Q.name_with_namespace,mxUtils.bind(this,+D.cloneNode();I.style.backgroundColor=p?Editor.isDarkMode()?"#000000":"#eeeeee":"";p=!p;I.appendChild(f(G.name_with_namespace,mxUtils.bind(this,function(){0===R&&(q=G.owner.username,u=G.path,z="",B(null,!0))})));H.appendChild(I)})(d[A]);for(A=0;A<fa.length;A++)M(),V(fa[A],mxUtils.bind(this,function(G,I){O();for(var L=0;L<I.length;L++){var P=D.cloneNode();P.style.backgroundColor=p?Editor.isDarkMode()?"#000000":"#eeeeee":"";p=!p;mxUtils.bind(this,function(Q){P.appendChild(f(Q.name_with_namespace,mxUtils.bind(this,function(){0===R&&(q=G.full_path,u=Q.path,z="",B(null,!0))})));H.appendChild(P)})(I[L])}}));O()}else O(),mxUtils.br(H),mxUtils.write(H,mxResources.get("repositoryNotFound"));100==d.length&&(H.appendChild(r),t=function(){H.scrollTop>=H.scrollHeight-H.offsetHeight&&U()},mxEvent.addListener(H,"scroll",t))}),n)}}))});b?this.user?E():this.updateUser(function(){E()},n,!0):this.authenticate(mxUtils.bind(this,function(){this.updateUser(function(){E()},n,!0)}),n)};GitLabClient.prototype.logout=function(){this.ui.editor.loadUrl(this.redirectUri+-"?doLogout=1&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken();this.setUser(null);b=null;this.setToken(null)}})();DrawioComment=function(b,k,m,f,q,u,x){this.file=b;this.id=k;this.content=m;this.modifiedDate=f;this.createdDate=q;this.isResolved=u;this.user=x;this.anchor=null;this.replies=[]};DrawioComment.prototype.getAnchorPageId=function(){return null!=this.anchor?this.anchor.p:null};DrawioComment.prototype.getAnchorCellIds=function(){var b=null!=this.anchor?this.anchor.c:null;return null==b?null:b instanceof Array?b:[b]};-DrawioComment.prototype.getAnchorCellId=function(){var b=this.getAnchorCellIds();return null!=b&&0<b.length?b[0]:null};DrawioComment.prototype.getAnchorRect=function(){return null!=this.anchor?this.anchor.r:null};DrawioComment.prototype.getAnchorPoint=function(){return null!=this.anchor?this.anchor.pt:null};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,k,m,f,q){k()};DrawioComment.prototype.editComment=function(b,k,m){k()};-DrawioComment.prototype.deleteComment=function(b,k){b()};DriveComment=function(b,k,m,f,q,u,x,z){DrawioComment.call(this,b,k,m,f,q,u,x);this.pCommentId=z};mxUtils.extend(DriveComment,DrawioComment);DriveComment.prototype.addReply=function(b,k,m,f,q){b={content:b.content};f?b.action="resolve":q&&(b.action="reopen");this.file.ui.drive.executeRequest({fullUrl:this.file.getCommentUrl("/"+this.id+"/replies","id"),params:b,method:"POST"},mxUtils.bind(this,function(u){k(u.id)}),m)};-DriveComment.prototype.editComment=function(b,k,m){this.content=b;b={content:b};this.file.ui.drive.executeRequest({fullUrl:this.pCommentId?this.file.getCommentUrl("/"+this.pCommentId+"/replies/"+this.id,"id"):this.file.getCommentUrl("/"+this.id,"id"),params:b,method:"PATCH"},k,m)};DriveComment.prototype.deleteComment=function(b,k){this.file.ui.drive.executeRequest({fullUrl:this.file.getCommentUrl((this.pCommentId?"/"+this.pCommentId+"/replies":"")+"/"+this.id),method:"DELETE"},b,k)};function mxODPicker(b,k,m,f,q,u,x,z,F,J,H,D,c,g){function l(Y,X){X=X||document;return X.querySelector(Y)}function n(Y){return Y.name||(null!=Y.remoteItem?Y.remoteItem.name:null)}function r(Y){return Y.folder||(null!=Y.remoteItem?Y.remoteItem.folder:null)}function t(Y,X,ca){if(null==Y["@microsoft.graph.downloadUrl"])if(null==Y.parentReference)ca();else{f(Y.id,Y.parentReference.driveId,function(da){t(da,X,ca)},ca);return}var S=new XMLHttpRequest;S.open("GET",Y["@microsoft.graph.downloadUrl"]);var Z=+"?doLogout=1&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken();this.setUser(null);b=null;this.setToken(null)}})();DrawioComment=function(b,k,m,g,q,u,x){this.file=b;this.id=k;this.content=m;this.modifiedDate=g;this.createdDate=q;this.isResolved=u;this.user=x;this.anchor=null;this.replies=[]};DrawioComment.prototype.getAnchorPageId=function(){return null!=this.anchor?this.anchor.p:null};DrawioComment.prototype.getAnchorCellIds=function(){var b=null!=this.anchor?this.anchor.c:null;return null==b?null:b instanceof Array?b:[b]};+DrawioComment.prototype.getAnchorCellId=function(){var b=this.getAnchorCellIds();return null!=b&&0<b.length?b[0]:null};DrawioComment.prototype.getAnchorRect=function(){return null!=this.anchor?this.anchor.r:null};DrawioComment.prototype.getAnchorPoint=function(){return null!=this.anchor?this.anchor.pt:null};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,k,m,g,q){k()};DrawioComment.prototype.editComment=function(b,k,m){k()};+DrawioComment.prototype.deleteComment=function(b,k){b()};DriveComment=function(b,k,m,g,q,u,x,z){DrawioComment.call(this,b,k,m,g,q,u,x);this.pCommentId=z};mxUtils.extend(DriveComment,DrawioComment);DriveComment.prototype.addReply=function(b,k,m,g,q){b={content:b.content};g?b.action="resolve":q&&(b.action="reopen");this.file.ui.drive.executeRequest({fullUrl:this.file.getCommentUrl("/"+this.id+"/replies","id"),params:b,method:"POST"},mxUtils.bind(this,function(u){k(u.id)}),m)};+DriveComment.prototype.editComment=function(b,k,m){this.content=b;b={content:b};this.file.ui.drive.executeRequest({fullUrl:this.pCommentId?this.file.getCommentUrl("/"+this.pCommentId+"/replies/"+this.id,"id"):this.file.getCommentUrl("/"+this.id,"id"),params:b,method:"PATCH"},k,m)};DriveComment.prototype.deleteComment=function(b,k){this.file.ui.drive.executeRequest({fullUrl:this.file.getCommentUrl((this.pCommentId?"/"+this.pCommentId+"/replies":"")+"/"+this.id),method:"DELETE"},b,k)};function mxODPicker(b,k,m,g,q,u,x,z,F,J,H,D,c,f){function l(Y,X){X=X||document;return X.querySelector(Y)}function n(Y){return Y.name||(null!=Y.remoteItem?Y.remoteItem.name:null)}function r(Y){return Y.folder||(null!=Y.remoteItem?Y.remoteItem.folder:null)}function t(Y,X,ca){if(null==Y["@microsoft.graph.downloadUrl"])if(null==Y.parentReference)ca();else{g(Y.id,Y.parentReference.driveId,function(da){t(da,X,ca)},ca);return}var S=new XMLHttpRequest;S.open("GET",Y["@microsoft.graph.downloadUrl"]);var Z=Y.file?"image/png"==Y.file.mimeType:!1;S.onreadystatechange=function(){if(4==this.readyState){if(200<=this.status&&299>=this.status)try{var da=S.responseText;Z?(da="data:image/png;base64,"+Editor.base64Encode(da),da=Editor.extractGraphModelFromPng(da)):/\.pdf$/.test(Y.name)&&(da="data:application/pdf;base64,"+Editor.base64Encode(da),da=Editor.extractGraphModelFromPdf(da));var N=mxUtils.parseXml(da),aa="mxlibrary"==N.documentElement.nodeName?N.documentElement:Editor.extractGraphModel(N.documentElement);if(null!=aa){X(aa.ownerDocument);return}}catch(ea){}ca()}};(Z||/\.pdf$/.test(Y.name))&&S.overrideMimeType&&S.overrideMimeType("text/plain; charset=x-user-defined");S.send()}function v(){null!=y&&null!=y.remoteItem&&(y=y.remoteItem);D&&null!=fa?V.exportToCanvas(function(Y){Y=EditorUi.prototype.createImageDataUri(Y,null,"png");x(y,Y);u(y)},400,null,null,function(Y){console.log(Y)},600,null,null,null,null,null,fa):(x(y,void 0),u(y))}function B(Y){function X(ca){Q.style.background="transparent";Q.innerText="";var S=document.createElement("div");S.className="odPreviewStatus";mxUtils.write(S,ca);Q.appendChild(S);T.stop()}if(null!=Q)if(Q.style.background="transparent",Q.innerText="",null==Y||null!=r(Y)||/\.drawiolib$/.test(n(Y)))X(mxResources.get("noPreview"));else try{null!=Y.remoteItem&&(Y=Y.remoteItem),I=Y,T.spin(Q),t(Y,function(ca){T.stop();if(I==Y)if("mxlibrary"==ca.documentElement.nodeName)X(mxResources.get("noPreview"));else{var S=ca.getElementsByTagName("diagram");fa=AspectDialog.prototype.createViewer(Q,@@ -15338,8 +15427,8 @@ if(null!=aa){X(aa.ownerDocument);return}}catch(ea){}ca()}};(Z||/\.pdf$/.test(Y.nC(Z.driveId,Z.folderId,Z.siteId,Z.name)})})(A[X],X);var S=document.createElement("span");S.innerHTML=" > ";Y.appendChild(S)}null!=A[A.length-1]&&(X=document.createElement("span"),X.innerHTML=mxUtils.htmlEntities(1==A.length?mxResources.get(F?"selectFolder":"officeSelDiag"):A[A.length-1].name||mxResources.get("home")),Y.appendChild(X))}}function K(){if(null!=y&&!p)if("sharepoint"==d)C("site",null,y.id,y.displayName);else if("site"==d)C("subsite",null,y.id,y.name);else{var Y=null!=r(y);y=y.remoteItem?y.remoteItem:y;var X=(y.parentReference?y.parentReference.driveId:null)||d,ca=y.id;Y?C(X,ca,null,y.name):v()}}function C(Y,X,ca,S,Z){function da(Ba){T.stop();var va=document.createElement("table");va.className="odFileListGrid";for(var pa=null,ia=0,ja=0;null!=Ba&&ja<Ba.length;ja++){var oa=Ba[ja];if(1!=ea||!oa.webUrl||0<oa.webUrl.indexOf("sharepoint.com/sites/")||0>oa.webUrl.indexOf("sharepoint.com/")){var Aa=oa.displayName||n(oa),ha=mxUtils.htmlEntities(oa.description||Aa);ea&&(oa.folder=2==ea?{isRoot:!0}:!0);var ma=null!=r(oa);if(!F||ma){var ka=document.createElement("tr");ka.className=ia++%2?"odOddRow":"odEvenRow";var ta=document.createElement("td");ta.style.width="36px";var Ca=document.createElement("img");Ca.src="/images/"+(ma?"folder.png":"file.png");Ca.className="odFileImg";ta.appendChild(Ca);ka.appendChild(ta);ta=document.createElement("td");ma=document.createElement("div");ma.className="odFileTitle";ma.innerHTML=mxUtils.htmlEntities(Aa);ma.setAttribute("title",ha);ta.appendChild(ma);ka.appendChild(ta);-va.appendChild(ka);null==pa&&(pa=ka,pa.className+=" odRowSelected",y=oa,d=Y,g||k(y));(function(sa,Ea){ka.addEventListener("dblclick",K);ka.addEventListener("click",function(){pa!=Ea&&(pa.className=pa.className.replace("odRowSelected",""),pa=Ea,pa.className+=" odRowSelected",y=sa,d=Y,g||k(y))})})(oa,ka)}}}0==ia?(Ba=document.createElement("div"),Ba.className="odEmptyFolder",Ba.innerHTML=mxUtils.htmlEntities(1==ea&&Z?mxResources.get("noResultsFor",[Z],"No results for '"+Z+"'"):mxResources.get("folderEmpty")),-ra.appendChild(Ba)):ra.appendChild(va);E();p=!1}function N(Ba){m(Ba?Ba:wa,function(va){if(aa){var pa=va.value||[];if(g||ea)Array.prototype.push.apply(za,pa);else{for(var ia=0;ia<pa.length;ia++){var ja=pa[ia],oa=ja.file||(null!=ja.remoteItem?ja.remoteItem.file:null);oa=null!=oa?oa.mimeType:null;var Aa=n(ja);(null!=r(ja)||"text/html"==oa||"text/xml"==oa||"application/xml"==oa||"image/png"==oa||/\.svg$/.test(Aa)||/\.html$/.test(Aa)||/\.xml$/.test(Aa)||/\.png$/.test(Aa)||/\.drawio$/.test(Aa)||/\.drawiolib$/.test(Aa)||+va.appendChild(ka);null==pa&&(pa=ka,pa.className+=" odRowSelected",y=oa,d=Y,f||k(y));(function(sa,Ea){ka.addEventListener("dblclick",K);ka.addEventListener("click",function(){pa!=Ea&&(pa.className=pa.className.replace("odRowSelected",""),pa=Ea,pa.className+=" odRowSelected",y=sa,d=Y,f||k(y))})})(oa,ka)}}}0==ia?(Ba=document.createElement("div"),Ba.className="odEmptyFolder",Ba.innerHTML=mxUtils.htmlEntities(1==ea&&Z?mxResources.get("noResultsFor",[Z],"No results for '"+Z+"'"):mxResources.get("folderEmpty")),+ra.appendChild(Ba)):ra.appendChild(va);E();p=!1}function N(Ba){m(Ba?Ba:wa,function(va){if(aa){var pa=va.value||[];if(f||ea)Array.prototype.push.apply(za,pa);else{for(var ia=0;ia<pa.length;ia++){var ja=pa[ia],oa=ja.file||(null!=ja.remoteItem?ja.remoteItem.file:null);oa=null!=oa?oa.mimeType:null;var Aa=n(ja);(null!=r(ja)||"text/html"==oa||"text/xml"==oa||"application/xml"==oa||"image/png"==oa||/\.svg$/.test(Aa)||/\.html$/.test(Aa)||/\.xml$/.test(Aa)||/\.png$/.test(Aa)||/\.drawio$/.test(Aa)||/\.drawiolib$/.test(Aa)||/\.pdf$/.test(Aa))&&za.push(ja)}za.sort(function(ha,ma){var ka=(n(ha)||"").toLowerCase(),ta=(n(ma)||"").toLowerCase();ha=null!=r(ha);ma=null!=r(ma);return ha&&!ma?-1:!ha&&ma?1:ka<ta?-1:ka>ta?1:0})}va["@odata.nextLink"]&&1E3>za.length?N(va["@odata.nextLink"]):(clearTimeout(la),da(za))}},function(va){if(aa){clearTimeout(la);var pa=null;try{pa=JSON.parse(va.responseText).error.message}catch(ia){}z(mxResources.get("errorFetchingFolder")+(null!=pa?" ("+pa+")":""));p=!1;T.stop()}},null!=Ba)}if(!p){l(".odCatsList").style.display="block";l(".odFilesSec").style.display="block";l(".searchBar").style.display="sharepoint"==Y?"":"none";if("sharepoint"!=Y||null==Z)l("#odSearchBox").value="";null!=Q&&(Q.innerText="",Q.style.top="50%");var aa=p=!0,ea=0;G=arguments;var la=setTimeout(function(){p=aa=!1;T.stop();z(mxResources.get("timeout"))},2E4),ra=l(".odFilesList");ra.innerText="";T.spin(ra);switch(Y){case "recent":A=[{name:mxResources.get("recent"),driveId:Y}];var qa=q()||{},na=[],xa;for(xa in qa)na.push(qa[xa]);clearTimeout(la);da(na);return;case "shared":var wa="/me/drive/sharedWithMe";A=[{name:mxResources.get("sharedWithMe"),driveId:Y}];break;case "sharepoint":wa="/sites?search="+(null!=Z?encodeURIComponent(Z):"");A=[{name:mxResources.get("sharepointSites"),driveId:Y}];ea=1;break;case "site":A.push({name:S,driveId:Y,folderId:X,siteId:ca});wa="/sites/"+ca+"/drives";ea=2;break;case "subsite":A.push({name:S,driveId:Y,folderId:X,siteId:ca});wa="/drives/"+ca+(X?"/items/"+X:"/root")+"/children";break;case "search":Y=d;A=[{driveId:Y,@@ -15351,41 +15440,41 @@ mxUtils.htmlEntities(mxResources.get("back"))+"</div>":"")+(H?'<button id="odSub(U?"":"\tbackground-color: #eeeeee;")+"}.odEvenRow {"+(U?"":"\tbackground-color: #FFFFFF;")+"}.odRowSelected {\tbackground-color: #cadfff;}.odCatListTitle {\tbox-sizing: border-box;\theight: 17px;\tcursor: default;\tcolor: #666666;\tfont-size: 14px;\tline-height: 17px;\tmargin: 5px 0 5px 0px; padding-left: 10px;}.odCatSelected {\tfont-weight: bold;\tbackground-color: #cadfff;}.odEmptyFolder {\theight: 17px;\tcolor: #6D6D6D;\tfont-size: 14px;\tfont-weight: bold;\tline-height: 17px;\tmargin: 10px 0 3px 5px;\twidth: 100%; text-align: center;}.odBCFolder {\tcursor: pointer;\tcolor: #0432ff;}.odPreviewStatus {\tposition:absolute;\ttext-align:center;\twidth:100%;\ttop:50%;\ttransform: translateY(-50%);\tfont-size:13px;\topacity:0.5;}.odPreview { position:absolute;\t overflow:hidden;\t border: 1px solid #CCCCCC; bottom:0px; top: 50%; left:0px; right:0px;}.odLinkBtn { position: absolute;\tfont-size: 12px;\tcursor: pointer;\tcolor: #6D6D6D;\tleft: 5px;\tbottom: 3px;}.odSubmitBtn { position: absolute;\tcolor: #333;\tright: 5px;\tbottom: 5px;}";var T=new Spinner({left:"50%",lines:12,length:8,width:3,radius:5,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1,trail:60,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9}),V=new Editor,fa=null,y=null,d=null,p=!1,A=[],G=null,I=null;this.getSelectedItem=function(){null!=y&&(y=y.remoteItem?y.remoteItem:y,u(y));return y};if(null==l("#mxODPickerCss")){var L=document.head||document.getElementsByTagName("head")[0],P=document.createElement("style");L.appendChild(P);P.type="text/css";P.id="mxODPickerCss";P.appendChild(document.createTextNode(U))}b.innerHTML=O;var Q=l(".odPreview"),ba=l("#odFiles");b=function(Y,X){X=X||document;return X.querySelectorAll(Y)}(".odCatListTitle");for(O=0;O<b.length;O++)b[O].addEventListener("click",function(){y=I=null;if(!p)switch(R(this),this.id){case "odFiles":C();break;case "odRecent":C("recent");break;case "odShared":C("shared");break;case "odSharepoint":C("sharepoint")}});var W=null;b=l("#odSearchBox");b.addEventListener("input",function(){var Y=this.value;null!=-W&&clearTimeout(W);W=setTimeout(function(){M(Y)},500)});b.addEventListener("keyup",function(Y){13==Y.keyCode&&(null!=W&&clearTimeout(W),M(this.value))});l("#refreshOD").addEventListener("click",function(){if(null!=G){k(null);var Y=A.slice();C.apply(this,G);A=Y}});J&&l("#odBackBtn").addEventListener("click",J);H&&l("#odSubmitBtn").addEventListener("click",v);null!=c?(J=c.pop(),"sharepoint"==c[0].driveId&&R(l("#odSharepoint")),A=c,C(J.driveId,J.folderId,J.siteId,J.name)):C()};App=function(b,k,m){EditorUi.call(this,b,k,null!=m?m:"1"==urlParams.lightbox||"min"==uiTheme&&"0"!=urlParams.chrome);this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(){var f=this.getCurrentFile();null!=f&&EditorUi.logEvent({category:(this.editor.autosave?"ON":"OFF")+"-AUTOSAVE-FILE-"+f.getHash(),action:"changed",label:"autosave_"+(this.editor.autosave?"on":"off")})}));if(Editor.enableServiceWorker&&"serviceWorker"in navigator)try{navigator.serviceWorker.addEventListener("controllerchange",-mxUtils.bind(this,function(){try{var f=parseInt(localStorage.getItem(".drawio-channel-switch-ts"),10),q=Date.now()-f;!isNaN(q)&&0<=q&&6E5>q&&(null==this.getCurrentFile()||!this.getCurrentFile().isModified())&&window.location.reload()}catch(u){}}))}catch(f){}mxClient.IS_SVG?mxGraph.prototype.warningImage.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAE7SURBVHjaYvz//z8DJQAggBjwGXDuHMP/tWuD/uPTCxBAOA0AaQRK/f/+XeJ/cbHlf1wGAAQQTgPu3QNLgfHSpZo4DQAIIKwGwGyH4e/fFbG6AiQJEEAs2Ew2NFzH8OOHBMO6dT/A/KCg7wxGRh+wuhQggDBcALMdFIAcHBxgDGJjcwVIIUAAYbhAUXEdVos4OO4DXcGBIQ4QQCguQPY7sgtgAYruCpAgQACx4LJdU1OCwctLEcyWlLwPJF+AXQE0EMUBAAEEdwF6yMOiD4RRY0QT7gqQAEAAseDzu6XldYYPH9DD4joQa8L5AAEENgWb7SBcXa0JDQMBrK4AcQACiAlfyOMCEFdAnAYQQEz4FLa0XGf4/v0H0IIPONUABBAjyBmMjIwMS5cK/L927QORbtBkaG29DtYLEGAAH6f7oq3Zc+kAAAAASUVORK5CYII=":-(new Image).src=mxGraph.prototype.warningImage.src;window.geOpenWindow=mxUtils.bind(this,function(f,q,u){if("1"==urlParams.openInSameWin||navigator.standalone)null!=u&&u();else{var x=null;try{x=window.open(f)}catch(z){}null==x||void 0===x?this.showDialog((new PopupDialog(this,f,q,u)).container,340,140,!0,!0):null!=q&&q()}});this.updateDocumentTitle();this.updateUi();window.showOpenAlert=mxUtils.bind(this,function(f){null!=window.openFile&&window.openFile.cancel(!0);this.handleError(f)});this.editor.chromeless&&-!this.editor.editable||this.addFileDropHandler([document]);if(null!=App.DrawPlugins){for(b=0;b<App.DrawPlugins.length;b++)try{App.DrawPlugins[b](this)}catch(f){null!=window.console&&console.log("Plugin Error:",f,App.DrawPlugins[b])}finally{App.embedModePluginsCount--,this.initializeEmbedMode()}window.Draw.loadPlugin=mxUtils.bind(this,function(f){try{f(this)}finally{App.embedModePluginsCount--,this.initializeEmbedMode()}});setTimeout(mxUtils.bind(this,function(){0<App.embedModePluginsCount&&(App.embedModePluginsCount=+W&&clearTimeout(W);W=setTimeout(function(){M(Y)},500)});b.addEventListener("keyup",function(Y){13==Y.keyCode&&(null!=W&&clearTimeout(W),M(this.value))});l("#refreshOD").addEventListener("click",function(){if(null!=G){k(null);var Y=A.slice();C.apply(this,G);A=Y}});J&&l("#odBackBtn").addEventListener("click",J);H&&l("#odSubmitBtn").addEventListener("click",v);null!=c?(J=c.pop(),"sharepoint"==c[0].driveId&&R(l("#odSharepoint")),A=c,C(J.driveId,J.folderId,J.siteId,J.name)):C()};App=function(b,k,m){EditorUi.call(this,b,k,null!=m?m:"1"==urlParams.lightbox||"min"==uiTheme&&"0"!=urlParams.chrome);this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(){var g=this.getCurrentFile();null!=g&&EditorUi.logEvent({category:(this.editor.autosave?"ON":"OFF")+"-AUTOSAVE-FILE-"+g.getHash(),action:"changed",label:"autosave_"+(this.editor.autosave?"on":"off")})}));if(Editor.enableServiceWorker&&"serviceWorker"in navigator)try{navigator.serviceWorker.addEventListener("controllerchange",+mxUtils.bind(this,function(){try{var g=parseInt(localStorage.getItem(".drawio-channel-switch-ts"),10),q=Date.now()-g;!isNaN(q)&&0<=q&&6E5>q&&(null==this.getCurrentFile()||!this.getCurrentFile().isModified())&&window.location.reload()}catch(u){}}))}catch(g){}mxClient.IS_SVG?mxGraph.prototype.warningImage.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAE7SURBVHjaYvz//z8DJQAggBjwGXDuHMP/tWuD/uPTCxBAOA0AaQRK/f/+XeJ/cbHlf1wGAAQQTgPu3QNLgfHSpZo4DQAIIKwGwGyH4e/fFbG6AiQJEEAs2Ew2NFzH8OOHBMO6dT/A/KCg7wxGRh+wuhQggDBcALMdFIAcHBxgDGJjcwVIIUAAYbhAUXEdVos4OO4DXcGBIQ4QQCguQPY7sgtgAYruCpAgQACx4LJdU1OCwctLEcyWlLwPJF+AXQE0EMUBAAEEdwF6yMOiD4RRY0QT7gqQAEAAseDzu6XldYYPH9DD4joQa8L5AAEENgWb7SBcXa0JDQMBrK4AcQACiAlfyOMCEFdAnAYQQEz4FLa0XGf4/v0H0IIPONUABBAjyBmMjIwMS5cK/L927QORbtBkaG29DtYLEGAAH6f7oq3Zc+kAAAAASUVORK5CYII=":+(new Image).src=mxGraph.prototype.warningImage.src;window.geOpenWindow=mxUtils.bind(this,function(g,q,u){if("1"==urlParams.openInSameWin||navigator.standalone)null!=u&&u();else{var x=null;try{x=window.open(g)}catch(z){}null==x||void 0===x?this.showDialog((new PopupDialog(this,g,q,u)).container,340,140,!0,!0):null!=q&&q()}});this.updateDocumentTitle();this.updateUi();window.showOpenAlert=mxUtils.bind(this,function(g){null!=window.openFile&&window.openFile.cancel(!0);this.handleError(g)});this.editor.chromeless&&+!this.editor.editable||this.addFileDropHandler([document]);if(null!=App.DrawPlugins){for(b=0;b<App.DrawPlugins.length;b++)try{App.DrawPlugins[b](this)}catch(g){null!=window.console&&console.log("Plugin Error:",g,App.DrawPlugins[b])}finally{App.embedModePluginsCount--,this.initializeEmbedMode()}window.Draw.loadPlugin=mxUtils.bind(this,function(g){try{g(this)}finally{App.embedModePluginsCount--,this.initializeEmbedMode()}});setTimeout(mxUtils.bind(this,function(){0<App.embedModePluginsCount&&(App.embedModePluginsCount=0,this.initializeEmbedMode())}),5E3)}this.load()};App.ERROR_TIMEOUT="timeout";App.ERROR_BUSY="busy";App.ERROR_UNKNOWN="unknown";App.MODE_GOOGLE="google";App.MODE_DROPBOX="dropbox";App.MODE_ONEDRIVE="onedrive";App.MODE_M365="m365";App.MODE_GITHUB="github";App.MODE_GITLAB="gitlab";App.MODE_DEVICE="device";App.MODE_BROWSER="browser";App.MODE_TRELLO="trello";App.MODE_EMBED="embed";App.MODE_ATLAS="atlas";App.DROPBOX_APPKEY=window.DRAWIO_DROPBOX_ID;App.DROPBOX_URL="js/dropbox/Dropbox-sdk.min.js";App.DROPINS_URL="https://www.dropbox.com/static/api/2/dropins.js";App.ONEDRIVE_URL="js/onedrive/OneDrive.js";App.TRELLO_URL="https://api.trello.com/1/client.js";App.TRELLO_JQUERY_URL="js/jquery/jquery-3.6.0.min.js";App.PUSHER_KEY="1e756b07a690c5bdb054";App.PUSHER_CLUSTER="eu";App.PUSHER_URL=window.PUSHER_URL||"https://js.pusher.com/7.0.3/pusher.min.js";App.SIMPLE_PEER_URL="js/simplepeer/simplepeer9.10.0.min.js";App.GOOGLE_APIS="drive-share";App.startTime=new Date;App.pluginRegistry={"4xAKTrabTpTzahoLthkwPNUn":"plugins/explore.js",ex:"plugins/explore.js",ac:"plugins/connect.js",acj:"plugins/connectJira.js",ac148:"plugins/cConf-1-4-8.js",ac148cmnt:"plugins/cConf-comments.js",nxtcld:"plugins/nextcloud.js",monday:"plugins/monday.js",tips:"plugins/tooltips.js",svgdata:"plugins/svgdata.js",number:"plugins/number.js",sql:"plugins/sql.js",props:"plugins/props.js",text:"plugins/text.js",anim:"plugins/animation.js",update:"plugins/update.js",trees:"plugins/trees/trees.js","import":"plugins/import.js",replay:"plugins/replay.js",anon:"plugins/anonymize.js",tr:"plugins/trello.js",f5:"plugins/rackF5.js",webcola:"plugins/webcola/webcola.js",rnd:"plugins/random.js",page:"plugins/page.js",tags:"plugins/tags.js"};App.publicPlugin="ex tips svgdata number sql props text anim update trees replay anon webcola tags".split(" ");-App.loadScripts=function(b,k,m){for(var f=b.length,q=!1,u=0;u<b.length;u++)mxscript(b[u],function(){0!=--f||q||null==k||k()},null,null,null,function(x,z){q=!0;null!=m&&m(Error(x));console.error("Error loading script",x,z,z.stack)})};-App.getStoredMode=function(){var b=null;null==b&&isLocalStorage&&(b=localStorage.getItem(".mode"));if(null==b&&"undefined"!=typeof Storage)try{for(var k=document.cookie.split(";"),m=0;m<k.length;m++){var f=mxUtils.trim(k[m]);if("MODE="==f.substring(0,5)){b=f.substring(5);break}}if(null!=b&&isLocalStorage){var q=new Date;q.setYear(q.getFullYear()-1);document.cookie="MODE=; expires="+q.toUTCString();localStorage.setItem(".mode",b)}}catch(u){}return b};+App.loadScripts=function(b,k,m){for(var g=b.length,q=!1,u=0;u<b.length;u++)mxscript(b[u],function(){0!=--g||q||null==k||k()},null,null,null,function(x,z){q=!0;null!=m&&m(Error(x));console.error("Error loading script",x,z,z.stack)})};+App.getStoredMode=function(){var b=null;null==b&&isLocalStorage&&(b=localStorage.getItem(".mode"));if(null==b&&"undefined"!=typeof Storage)try{for(var k=document.cookie.split(";"),m=0;m<k.length;m++){var g=mxUtils.trim(k[m]);if("MODE="==g.substring(0,5)){b=g.substring(5);break}}if(null!=b&&isLocalStorage){var q=new Date;q.setYear(q.getFullYear()-1);document.cookie="MODE=; expires="+q.toUTCString();localStorage.setItem(".mode",b)}}catch(u){}return b};(function(){mxClient.IS_CHROMEAPP||("1"!=urlParams.offline&&("db.draw.io"==window.location.hostname&&null==urlParams.mode&&(urlParams.mode="dropbox"),App.mode=urlParams.mode),null==App.mode&&"1"!=urlParams.embed&&(App.mode=App.getStoredMode()),null!=window.mxscript&&"1"!=urlParams.embed&&("function"===typeof window.DriveClient&&("0"!=urlParams.gapi&&isSvgBrowser&&(null==document.documentMode||10<=document.documentMode)?App.mode==App.MODE_GOOGLE||null!=urlParams.state&&""==window.location.hash||null!=window.location.hash&&"#G"==window.location.hash.substring(0,2)?mxscript("https://apis.google.com/js/api.js"):"0"!=urlParams.chrome||null!=window.location.hash&&"#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D"===window.location.hash.substring(0,45)||(window.DriveClient=null):window.DriveClient=null),"function"===typeof window.DropboxClient&&("0"!=urlParams.db&&isSvgBrowser&&(null==document.documentMode||9<document.documentMode)?App.mode==App.MODE_DROPBOX||null!=window.location.hash&&"#D"==window.location.hash.substring(0,2)?mxscript(App.DROPBOX_URL,function(){mxscript(App.DROPINS_URL,null,"dropboxjs",App.DROPBOX_APPKEY,!0)}):"0"==urlParams.chrome&&(window.DropboxClient=null):window.DropboxClient=null),"function"===typeof window.OneDriveClient&&("0"!=urlParams.od&&(null==navigator.userAgent||0>navigator.userAgent.indexOf("MSIE")||10<=document.documentMode)?App.mode==App.MODE_ONEDRIVE||App.mode==App.MODE_M365||null!=window.location.hash&&("#W"==window.location.hash.substring(0,2)||"#M"==window.location.hash.substring(0,2))?mxscript(App.ONEDRIVE_URL):"0"==urlParams.chrome&&(window.OneDriveClient=null):window.OneDriveClient=null),"function"===typeof window.TrelloClient&&("1"==urlParams.tr&&isSvgBrowser?App.mode==App.MODE_TRELLO||null!=window.location.hash&&"#T"==window.location.hash.substring(0,2)?mxscript(App.TRELLO_JQUERY_URL,function(){mxscript(App.TRELLO_URL)}):"0"==urlParams.chrome&&(window.TrelloClient=null):window.TrelloClient=null)))})();App.clearServiceWorker=function(b,k){try{localStorage.removeItem(".drawio-channel"),localStorage.removeItem(".drawio-channel-ts"),localStorage.removeItem(".drawio-channel-swerr-ts"),localStorage.removeItem(".drawio-channel-swfail"),localStorage.removeItem(".drawio-channel-switch-ts")}catch(m){}navigator.serviceWorker.getRegistration().then(function(m){if(null!=m)return m.unregister().then(function(){null!=b&&(b(),b=null)});null!=b&&(b(),b=null)})["catch"](function(){null!=k&&k()})};App.getReleaseChannel=function(){try{return isLocalStorage&&"stable"==localStorage.getItem(".drawio-channel")?"stable":null}catch(b){return null}};App.setReleaseChannel=function(b){try{"stable"==b?localStorage.setItem(".drawio-channel","stable"):localStorage.removeItem(".drawio-channel")}catch(k){}};-App.logServiceWorkerError=function(b,k){try{EditorUi.debug("App.logServiceWorkerError",b,k);var m=Date.now(),f=parseInt(localStorage.getItem(".drawio-channel-swerr-ts"),10);f=m-f;if(isNaN(f)||0>f||864E5<=f)localStorage.setItem(".drawio-channel-swerr-ts",String(m)),"stable"==App.getReleaseChannel()&&localStorage.setItem(".drawio-channel-swfail",String(App.getServiceWorkerFailures()+1)),EditorUi.logError("Service worker error: "+b,null,null,null,k)}catch(q){}};+App.logServiceWorkerError=function(b,k){try{EditorUi.debug("App.logServiceWorkerError",b,k);var m=Date.now(),g=parseInt(localStorage.getItem(".drawio-channel-swerr-ts"),10);g=m-g;if(isNaN(g)||0>g||864E5<=g)localStorage.setItem(".drawio-channel-swerr-ts",String(m)),"stable"==App.getReleaseChannel()&&localStorage.setItem(".drawio-channel-swfail",String(App.getServiceWorkerFailures()+1)),EditorUi.logError("Service worker error: "+b,null,null,null,k)}catch(q){}};App.getServiceWorkerFailures=function(){try{return parseInt(localStorage.getItem(".drawio-channel-swfail"),10)||0}catch(b){return 0}};App.resetServiceWorkerFailures=function(){try{localStorage.removeItem(".drawio-channel-swfail"),localStorage.removeItem(".drawio-channel-swerr-ts")}catch(b){}};App.isSameDomain=function(b){var k=document.createElement("a");k.href=b;return k.protocol===window.location.protocol&&k.host===window.location.host};App.isBuiltInPlugin=function(b){for(var k in App.pluginRegistry){var m=App.pluginRegistry[k];if(m===b||PLUGINS_BASE_PATH+"/"+m===b)return!0}return!1};App.isSimpleThemePreferred=function(){var b=navigator.userAgent||navigator.vendor||window.opera;return 1024>=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)||/android/i.test(b)||/iPad|iPhone|iPod/.test(b)&&!window.MSStream||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints};App.main=function(b,k){try{var m=function(){try{if(null!=mxSettings.settings){if(null!=mxSettings.settings.autosaveDelay){var H=parseInt(mxSettings.settings.autosaveDelay);!isNaN(H)&&0<H?(DrawioFile.prototype.autosaveDelay=H,EditorUi.debug("Setting autosaveDelay",H)):EditorUi.debug("Invalid autosaveDelay",H)}null!=mxSettings.settings.defaultEdgeLength&&(H=parseInt(mxSettings.settings.defaultEdgeLength),!isNaN(H)&&0<H?(Graph.prototype.defaultEdgeLength=H,EditorUi.debug("Using defaultEdgeLength",H)):-EditorUi.debug("Invalid defaultEdgeLength",H))}}catch(c){null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(c.stack)):console.error(c)}try{if(null!=Menus.prototype.defaultFonts)for(H=0;H<Menus.prototype.defaultFonts.length;H++){var D=Menus.prototype.defaultFonts[H];"string"!==typeof D&&null!=D.fontFamily&&null!=D.fontUrl&&Graph.addFont(D.fontFamily,D.fontUrl)}mxResources.loadDefaultBundle=!1;f(mxResources.getDefaultBundle(RESOURCE_BASE,mxLanguage)||mxResources.getSpecialBundle(RESOURCE_BASE,-mxLanguage))}catch(c){document.body.innerHTML="",D=document.createElement("pre"),mxUtils.write(D,c.stack),document.body.appendChild(D)}},f=function(H){mxUtils.getAll("1"!=urlParams.dev?[H]:[H,STYLE_PATH+"/default.xml"],function(D){function c(){try{try{null==Editor.currentTheme&&"1"!=urlParams.embed&&(1==urlParams.dev||1==urlParams.test||"test.draw.io"===window.location.hostname||"www.draw.io"===window.location.hostname||"preprod.diagrams.net"===window.location.hostname||"app.diagrams.net"===window.location.hostname||+EditorUi.debug("Invalid defaultEdgeLength",H))}}catch(c){null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(c.stack)):console.error(c)}try{if(null!=Menus.prototype.defaultFonts)for(H=0;H<Menus.prototype.defaultFonts.length;H++){var D=Menus.prototype.defaultFonts[H];"string"!==typeof D&&null!=D.fontFamily&&null!=D.fontUrl&&Graph.addFont(D.fontFamily,D.fontUrl)}mxResources.loadDefaultBundle=!1;g(mxResources.getDefaultBundle(RESOURCE_BASE,mxLanguage)||mxResources.getSpecialBundle(RESOURCE_BASE,+mxLanguage))}catch(c){document.body.innerHTML="",D=document.createElement("pre"),mxUtils.write(D,c.stack),document.body.appendChild(D)}},g=function(H){mxUtils.getAll("1"!=urlParams.dev?[H]:[H,STYLE_PATH+"/default.xml"],function(D){function c(){try{try{null==Editor.currentTheme&&"1"!=urlParams.embed&&(1==urlParams.dev||1==urlParams.test||"test.draw.io"===window.location.hostname||"www.draw.io"===window.location.hostname||"preprod.diagrams.net"===window.location.hostname||"app.diagrams.net"===window.location.hostname||"jgraph.github.io"===window.location.hostname||/drawio-dev\.pages\.dev$/.test(window.location.hostname))&&App.isSimpleThemePreferred()&&(Editor.currentTheme="simple")}catch(v){}"kennedy"!=Editor.currentTheme&&0>mxUtils.indexOf(Editor.themes,Editor.currentTheme)&&(Editor.currentTheme="kennedy");"1"==urlParams.transparent&&(document.body.style.background="transparent");var t=null!=k?k():new App(new Editor("0"==urlParams.chrome||"min"==uiTheme,null,null,null,"0"!=urlParams.chrome));"launchQueue"in window&&"1"!=urlParams.embed&&window.launchQueue.setConsumer(function(v){null!=v.files&&0<v.files.length&&t.loadFileSystemEntry(v.files[0])});null!=window.mxscript&&("function"===typeof window.DropboxClient&&null==window.Dropbox&&null!=window.DrawDropboxClientCallback&&("1"!=urlParams.embed&&"0"!=urlParams.db||"1"==urlParams.embed&&"1"==urlParams.db)&&isSvgBrowser&&(null==document.documentMode||9<document.documentMode)?mxscript(App.DROPBOX_URL,function(){mxscript(App.DROPINS_URL,function(){DrawDropboxClientCallback()},"dropboxjs",App.DROPBOX_APPKEY)}):"undefined"===typeof window.Dropbox&&(window.DropboxClient=null),"function"===typeof window.OneDriveClient&&"undefined"===typeof OneDrive&&null!=window.DrawOneDriveClientCallback&&("1"!=urlParams.embed&&"0"!=urlParams.od||"1"==urlParams.embed&&"1"==urlParams.od)&&(null==navigator.userAgent||0>navigator.userAgent.indexOf("MSIE")||10<=document.documentMode)?mxscript(App.ONEDRIVE_URL,window.DrawOneDriveClientCallback):"undefined"===typeof window.OneDrive&&(window.OneDriveClient=null),"function"===typeof window.TrelloClient&&"undefined"===typeof window.Trello&&null!=window.DrawTrelloClientCallback&&"1"==urlParams.tr?mxscript(App.TRELLO_JQUERY_URL,function(){mxscript(App.TRELLO_URL,function(){DrawTrelloClientCallback()})}):"undefined"===typeof window.Trello&&(window.TrelloClient=null));null!=b&&b(t);"0"!=urlParams.chrome&&"1"==urlParams.test&&(EditorUi.debug("App.start",["v"+EditorUi.VERSION,t,(new Date).getTime()-t0.getTime()+"ms"]),null!=urlParams["export"]&&EditorUi.debug("Export:",EXPORT_URL))}catch(v){EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(v.stack)):(EditorUi.logError(v.message,null,null,null,v),window.setTimeout(function(){alert(v.message)},1))}}mxResources.parse(D[0].getText());try{"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(function(t){if(null!=t.active&&(t.active.postMessage({warmLazy:H,warmDev:"1"==urlParams.dev}),null!=Editor.defaultLanguages))for(var v=0;v<Editor.defaultLanguages.length;v++){var B=Editor.defaultLanguages[v];"string"===-typeof B&&/^[a-z0-9-]+$/.test(B)&&t.active.postMessage({warmLazy:"resources/dia_"+B+".txt"})}})}catch(t){}if(isLocalStorage&&null!=localStorage&&null!=window.location.hash&&"#_CONFIG_"==window.location.hash.substring(0,9))try{var g=JSON.parse(Graph.decompress(window.location.hash.substring(9)));if(null!=g){EditorUi.debug("Setting configuration",JSON.stringify(g));if(null!=g.merge){var l=localStorage.getItem(Editor.configurationKey);if(null!=l)try{var n=JSON.parse(l),r;for(r in g.merge)n[r]=g.merge[r];-g=n}catch(t){window.location.hash="",alert(t)}else g=g.merge}confirm(mxResources.get("configLinkWarn"))&&confirm(mxResources.get("configLinkConfirm"))&&(localStorage.setItem(Editor.configurationKey,JSON.stringify(g)),window.location.hash="",window.location.reload())}window.location.hash=""}catch(t){window.location.hash="",alert(t)}1<D.length&&(Graph.prototype.defaultThemes["default-style2"]=D[1].getDocumentElement(),Graph.prototype.defaultThemes.darkTheme=D[1].getDocumentElement());"1"==urlParams.dev||-EditorUi.isElectronApp?c():(mxStencilRegistry.allowEval=!1,App.loadScripts(["js/shapes-14-6-5.min.js","js/stencils.min.js","js/extensions.min.js"],c,function(t){document.body.innerHTML="";var v=document.createElement("pre");mxUtils.write(v,t.stack);document.body.appendChild(v)}))},function(D){D=document.getElementById("geStatus");null!=D&&(D.innerHTML="Error loading page. <a>Please try refreshing.</a>",D.getElementsByTagName("a")[0].onclick=function(){mxLanguage="en";f(mxResources.getDefaultBundle(RESOURCE_BASE,+typeof B&&/^[a-z0-9-]+$/.test(B)&&t.active.postMessage({warmLazy:"resources/dia_"+B+".txt"})}})}catch(t){}if(isLocalStorage&&null!=localStorage&&null!=window.location.hash&&"#_CONFIG_"==window.location.hash.substring(0,9))try{var f=JSON.parse(Graph.decompress(window.location.hash.substring(9)));if(null!=f){EditorUi.debug("Setting configuration",JSON.stringify(f));if(null!=f.merge){var l=localStorage.getItem(Editor.configurationKey);if(null!=l)try{var n=JSON.parse(l),r;for(r in f.merge)n[r]=f.merge[r];+f=n}catch(t){window.location.hash="",alert(t)}else f=f.merge}confirm(mxResources.get("configLinkWarn"))&&confirm(mxResources.get("configLinkConfirm"))&&(localStorage.setItem(Editor.configurationKey,JSON.stringify(f)),window.location.hash="",window.location.reload())}window.location.hash=""}catch(t){window.location.hash="",alert(t)}1<D.length&&(Graph.prototype.defaultThemes["default-style2"]=D[1].getDocumentElement(),Graph.prototype.defaultThemes.darkTheme=D[1].getDocumentElement());"1"==urlParams.dev||+EditorUi.isElectronApp?c():(mxStencilRegistry.allowEval=!1,App.loadScripts(["js/shapes-14-6-5.min.js","js/stencils.min.js","js/extensions.min.js"],c,function(t){document.body.innerHTML="";var v=document.createElement("pre");mxUtils.write(v,t.stack);document.body.appendChild(v)}))},function(D){D=document.getElementById("geStatus");null!=D&&(D.innerHTML="Error loading page. <a>Please try refreshing.</a>",D.getElementsByTagName("a")[0].onclick=function(){mxLanguage="en";g(mxResources.getDefaultBundle(RESOURCE_BASE,mxLanguage)||mxResources.getSpecialBundle(RESOURCE_BASE,mxLanguage))})})};if(!App.isMainCalled)if(mxIsElectron&&"undefined"===typeof electron)alert("Runtime Environment not found."),document.body.innerHTML='<div style="grid-column:1 / -1;grid-row:1 / -1;margin-top:10%;text-align:center;"><img src="mxgraph/images/warning.png" align="top" style="padding-right:6px;"/>Runtime Environment not found.</div>';else{Editor.loadCompatibleCss();App.isMainCalled=!0;if("1"==urlParams.android||"0"!=urlParams.android&&-!mxClient.IS_ANDROID&&mxClient.IS_LINUX&&mxClient.IS_GC&&1<navigator.maxTouchPoints)mxClient.IS_ANDROID=!0;window.onerror=function(H,D,c,g,l){EditorUi.logError("Global: "+(null!=H?H:""),D,c,g,l,null,!0);null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug("Message:",H,"\nURL:",D,"\nLine:",c,"\nColumn:",g,"\nError:",l)):console.error("Message:",H,"\nURL:",D,"\nLine:",c,"\nColumn:",g,"\nError:",l);window.setTimeout(function(){alert("Error: "+(null!=H?H:""))},100)};if(window.top!=window.self||+!mxClient.IS_ANDROID&&mxClient.IS_LINUX&&mxClient.IS_GC&&1<navigator.maxTouchPoints)mxClient.IS_ANDROID=!0;window.onerror=function(H,D,c,f,l){EditorUi.logError("Global: "+(null!=H?H:""),D,c,f,l,null,!0);null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug("Message:",H,"\nURL:",D,"\nLine:",c,"\nColumn:",f,"\nError:",l)):console.error("Message:",H,"\nURL:",D,"\nLine:",c,"\nColumn:",f,"\nError:",l);window.setTimeout(function(){alert("Error: "+(null!=H?H:""))},100)};if(window.top!=window.self||"import.diagrams.net"!==window.location.hostname&&"ac.draw.io"!==window.location.hostname&&"aj.draw.io"!==window.location.hostname){if("1"==urlParams.embed||"1"==urlParams.lightbox){var q=document.getElementById("geInfo");null!=q&&q.parentNode.removeChild(q)}"1"==urlParams.embed&&document.body.classList.add("geEmbed");null!=document.referrer&&"aws3"==urlParams.libs&&"https://aws.amazon.com/architecture/icons/"==document.referrer.substring(0,42)&&(urlParams.libs="aws4");if(null!=window.mxscript){try{Editor.enableServiceWorker&&("0"==urlParams.offline||/www\.draw\.io$/.test(window.location.hostname)||"1"!=urlParams.offline&&"1"!=urlParams.enableSW&&"1"==urlParams.dev)?(EditorUi.debug("App.main","Uninstalling service worker"),App.clearServiceWorker(function(){"0"==urlParams.offline&&alert("Cache cleared")})):Editor.enableServiceWorker&&navigator.serviceWorker.getRegistration().then(function(H){var D="stable"==App.getReleaseChannel();D&&14<=App.getServiceWorkerFailures()&&(EditorUi.debug("App.main","Stable channel failing, reverting to beta"),-App.setReleaseChannel(null),App.resetServiceWorkerFailures(),D=!1);var c=D?"stable/service-worker.js":"service-worker.js",g=null!=H?H.active||H.waiting||H.installing:null;null!=g&&D==/\/stable\/service-worker\.js$/.test(g.scriptURL)?(EditorUi.debug("App.main","Updating service worker"),H.update().then(function(){App.resetServiceWorkerFailures()})["catch"](function(l){App.logServiceWorkerError(c,l)})):null!=g||null!=App.getReleaseChannel()||!Editor.isSettingsEnabled()||null!=mxSettings.settings&&!mxSettings.settings.isNew||+App.setReleaseChannel(null),App.resetServiceWorkerFailures(),D=!1);var c=D?"stable/service-worker.js":"service-worker.js",f=null!=H?H.active||H.waiting||H.installing:null;null!=f&&D==/\/stable\/service-worker\.js$/.test(f.scriptURL)?(EditorUi.debug("App.main","Updating service worker"),H.update().then(function(){App.resetServiceWorkerFailures()})["catch"](function(l){App.logServiceWorkerError(c,l)})):null!=f||null!=App.getReleaseChannel()||!Editor.isSettingsEnabled()||null!=mxSettings.settings&&!mxSettings.settings.isNew||"1"==urlParams.enableSW?(EditorUi.debug("App.main","Installing service worker",c),navigator.serviceWorker.register(c,{scope:"./"}).then(function(){App.resetServiceWorkerFailures()})["catch"](function(l){App.logServiceWorkerError(c,l)})):EditorUi.debug("App.main","Skipping service worker (first load)")})}catch(H){}!("ArrayBuffer"in window)||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"auto"!=DrawioFile.SYNC||"1"==urlParams.embed&&("1"!=urlParams.embedRT||"1"==urlParams.lockdown)||"1"==urlParams.local||"0"==urlParams.chrome&&"1"!=urlParams.rt||"1"==urlParams.stealth||"1"==urlParams.offline||(mxscript(App.PUSHER_URL),"1"==urlParams["fast-sync"]&&mxscript(App.SIMPLE_PEER_URL));if("0"!=urlParams.plugins&&"1"!=urlParams.offline){var u=null!=mxSettings.settings?mxSettings.getPlugins():null;if(null==mxSettings.settings&&isLocalStorage&&"undefined"!==typeof JSON)try{var x=JSON.parse(localStorage.getItem(mxSettings.key));null!=x&&(u=x.plugins)}catch(H){}x=urlParams.p;App.initPluginCallback();null!=x&&App.loadPlugins(x.split(";"));if(null!=u&&0<u.length&&"0"!=urlParams.plugins)for(q=0;q<u.length;q++)try{("/"==u[q].charAt(0)&&(u[q]=PLUGINS_BASE_PATH+u[q]),App.isSameDomain(u[q]))?ALLOW_CUSTOM_PLUGINS||App.isBuiltInPlugin(u[q])?null==App.pluginsLoaded[u[q]]&&(App.pluginsLoaded[u[q]]=!0,App.embedModePluginsCount++,mxscript(u[q])):null!=window.console&&console.log("Unknown plugin:",u[q]):null!=window.console&&console.log("Blocked plugin:",u[q])}catch(H){}}"function"===typeof window.DriveClient&&"undefined"===typeof gapi&&("1"!=@@ -15394,7 +15483,7 @@ D&&"configure"==D.action&&(mxEvent.removeListener(window,"message",F),Editor.conwindow.DRAWIO_CONFIG),Editor.configure(window.DRAWIO_CONFIG),mxSettings.load()}catch(H){null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(H.stack)):console.error(H)}if(isLocalStorage&&null!=localStorage&&"1"!=urlParams.embed){var J=localStorage.getItem(Editor.configurationKey);if(null!=J)try{J=JSON.parse(J),null!=J&&(EditorUi.debug("Using local configuration",J),Editor.configure(J),mxSettings.load())}catch(H){null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(H.stack)):console.error(H)}}}m()}}else document.body.innerHTML='<div style="grid-column:1 / -1;grid-row:1 / -1;margin-top:10%;text-align:center;">Stand-alone mode not allowed for this domain.</div>'}}catch(H){document.body.innerHTML="",u=document.createElement("pre"),mxUtils.write(u,H.stack),document.body.appendChild(u)}};mxUtils.extend(App,EditorUi);App.prototype.warnInterval=3E5;App.prototype.compactMode=!1;App.prototype.fullscreenMode=!1;App.initPluginCallback=function(){null==App.DrawPlugins&&(App.DrawPlugins=[],window.Draw={},window.Draw.loadPlugin=function(b){App.DrawPlugins.push(b)})};App.pluginsLoaded={};App.embedModePluginsCount=0;-App.loadPlugins=function(b,k){EditorUi.debug("Loading plugins",b);for(var m=0;m<b.length;m++)if(null!=b[m]&&0<b[m].length)try{if(null!=App.pluginRegistry[b[m]]){var f=PLUGINS_BASE_PATH+App.pluginRegistry[b[m]];null==App.pluginsLoaded[f]&&(App.pluginsLoaded[f]=!0,App.embedModePluginsCount++,"undefined"===typeof window.drawDevUrl?k?mxinclude(f):mxscript(f):k?mxinclude(f):mxscript(drawDevUrl+f))}else null!=window.console&&console.log("Unknown plugin:",b[m])}catch(q){null!=window.console&&console.log("Error loading plugin:",+App.loadPlugins=function(b,k){EditorUi.debug("Loading plugins",b);for(var m=0;m<b.length;m++)if(null!=b[m]&&0<b[m].length)try{if(null!=App.pluginRegistry[b[m]]){var g=PLUGINS_BASE_PATH+App.pluginRegistry[b[m]];null==App.pluginsLoaded[g]&&(App.pluginsLoaded[g]=!0,App.embedModePluginsCount++,"undefined"===typeof window.drawDevUrl?k?mxinclude(g):mxscript(g):k?mxinclude(g):mxscript(drawDevUrl+g))}else null!=window.console&&console.log("Unknown plugin:",b[m])}catch(q){null!=window.console&&console.log("Error loading plugin:",b[m],q)}};App.prototype.initializeEmbedMode=function(){"1"==urlParams.embed&&("app.diagrams.net"==window.location.hostname&&this.showBanner("EmbedDeprecationFooter","app.diagrams.net will stop working for embed mode. Please use embed.diagrams.net."),0<App.embedModePluginsCount||this.initEmbedDone||(this.initEmbedDone=!0,EditorUi.prototype.initializeEmbedMode.apply(this,arguments)))};App.prototype.initializeViewerMode=function(){var b=window.opener||window.parent;null!=b&&this.editor.graph.addListener(mxEvent.SIZE,mxUtils.bind(this,function(){b.postMessage(JSON.stringify(this.createLoadMessage("size")),"*")}))};App.prototype.init=function(){if(!App.blockedAncestorFrames()){this.buttonContainer=this.createButtonContainer();EditorUi.prototype.init.apply(this,arguments);this.descriptorChangedListener=mxUtils.bind(this,this.descriptorChanged);this.addListener("currentThemeChanged",mxUtils.bind(this,function(){this.compactMode&&this.isDefaultTheme(Editor.currentTheme)&&this.setCompactMode(!0)}));Editor.isSettingsEnabled()&&null!=mxSettings.settings.compactMode&&this.isDefaultTheme(Editor.currentTheme)&&this.setCompactMode(mxSettings.settings.compactMode);@@ -15404,8 +15493,8 @@ new OneDriveClient(this),this.oneDrive.addListener("userChanged",mxUtils.bind(th!1,!1,!1,!0),this.m365.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries();this.checkReleaseChannel(this.m365)})),this.fireEvent(new mxEventObject("clientLoaded","client",this.m365))}catch(u){null!=window.console&&console.log("M365Client disabled: "+u.message)}if("1"!=urlParams.embed||"1"==urlParams.tr){var k=mxUtils.bind(this,function(){if("undefined"!==typeof window.Trello)try{this.trello=new TrelloClient(this),this.trello.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()})),this.fireEvent(new mxEventObject("clientLoaded","client",this.trello))}catch(u){null!=window.console&&console.log("TrelloClient disabled: "+u.message)}else null==window.DrawTrelloClientCallback&&(window.DrawTrelloClientCallback=k)});k()}if("1"!=urlParams.embed||"1"==urlParams.gapi){var m=mxUtils.bind(this,function(){if("undefined"!==typeof gapi){var u=mxUtils.bind(this,function(){try{this.drive=new DriveClient(this),this.drive.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries();"1"!=urlParams.dev&&this.checkLicense();this.checkReleaseChannel(this.drive)})),this.fireEvent(new mxEventObject("clientLoaded","client",this.drive))}catch(x){null!=window.console&&console.log("DriveClient disabled: "+x.message)}});null!=window.DrawGapiClientCallback?(gapi.load(("0"!=urlParams.picker?"picker,":"")+App.GOOGLE_APIS,u),window.DrawGapiClientCallback=null):u()}else null==-window.DrawGapiClientCallback&&(window.DrawGapiClientCallback=m)});m()}if("1"!=urlParams.embed||"1"==urlParams.db){var f=mxUtils.bind(this,function(){if("function"===typeof Dropbox){window.DrawDropboxClientCallback=null;try{this.dropbox=new DropboxClient(this),this.dropbox.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()})),this.fireEvent(new mxEventObject("clientLoaded","client",this.dropbox))}catch(u){null!=window.console&&console.log("DropboxClient disabled: "+-u.message)}}else null==window.DrawDropboxClientCallback&&(window.DrawDropboxClientCallback=f)});f()}"1"!=urlParams.embed&&(this.setGraphEnabled(!1),"1"==urlParams.local?this.setMode(App.MODE_DEVICE):this.mode=App.mode,"serviceWorker"in navigator&&!this.editor.isChromelessView()&&(mxClient.IS_ANDROID||mxClient.IS_IOS)&&window.addEventListener("beforeinstallprompt",mxUtils.bind(this,function(u){this.showBanner("AddToHomeScreenFooter",mxResources.get("installApp"),mxUtils.bind(this,function(){u.prompt()}),+window.DrawGapiClientCallback&&(window.DrawGapiClientCallback=m)});m()}if("1"!=urlParams.embed||"1"==urlParams.db){var g=mxUtils.bind(this,function(){if("function"===typeof Dropbox){window.DrawDropboxClientCallback=null;try{this.dropbox=new DropboxClient(this),this.dropbox.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()})),this.fireEvent(new mxEventObject("clientLoaded","client",this.dropbox))}catch(u){null!=window.console&&console.log("DropboxClient disabled: "++u.message)}}else null==window.DrawDropboxClientCallback&&(window.DrawDropboxClientCallback=g)});g()}"1"!=urlParams.embed&&(this.setGraphEnabled(!1),"1"==urlParams.local?this.setMode(App.MODE_DEVICE):this.mode=App.mode,"serviceWorker"in navigator&&!this.editor.isChromelessView()&&(mxClient.IS_ANDROID||mxClient.IS_IOS)&&window.addEventListener("beforeinstallprompt",mxUtils.bind(this,function(u){this.showBanner("AddToHomeScreenFooter",mxResources.get("installApp"),mxUtils.bind(this,function(){u.prompt()}),!0,!0)})),!this.isOwnGDriveDomain()||this.editor.chromeless&&!this.editor.editable||this.editor.addListener("fileLoaded",mxUtils.bind(this,function(){var u=this.getCurrentFile();u=null!=u?u.getMode():null;mxClient.IS_CHROMEAPP||mxClient.IS_ANDROID||mxClient.IS_IOS||EditorUi.isElectronApp||this.isOffline()||null!=urlParams.open||"1"==urlParams.extAuth||u!=App.MODE_DEVICE&&u!=App.MODE_BROWSER||this.showDownloadDesktopBanner();Editor.fitDiagramOnLoad&&this.fitInitialView()})),DrawioFileSync.checkCacheAlive(this));this.updateHeader();if(null!=this.menubar){if("sketch"!=Editor.currentTheme&&("simple"!=Editor.currentTheme||"1"!=urlParams.embed)){var q=mxUtils.bind(this,function(){"1"!=urlParams.embed?this.menubar.container.appendChild(this.buttonContainer):this.toolbarContainer.appendChild(this.buttonContainer)});this.addListener("languageChanged",q);this.addListener("currentThemeChanged",q);q()}("kennedy"==Editor.currentTheme&&"1"==urlParams.embed||"atlas"==Editor.currentTheme&&"1"!=urlParams.embed)&&this.setCompactMode(!0);if("atlas"==Editor.currentTheme||"1"==urlParams.atlas)this.icon=document.createElement("img"),this.icon.setAttribute("src",IMAGE_PATH+"/logo-flat-small.png"),this.icon.setAttribute("title",mxResources.get("draw.io")),this.icon.className="geSmallAppIcon","1"!=urlParams.embed&&(this.icon.style.cursor="pointer",mxEvent.addListener(this.icon,"click",mxUtils.bind(this,function(u){this.appIconClicked(u)}))),this.menubar.container.insertBefore(this.icon,this.menubar.container.firstChild)}this.editor.graph.isViewer()&&@@ -15420,35 +15509,35 @@ App.prototype.showNameConfBanner=function(){this.showBanner("ConfFooter","Try drApp.prototype.showRatingBanner=function(){if(!(this.bannerShowing||this.hideBannerratingFooter||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings.closeratingFooter)){var b=document.createElement("div");b.style.cssText="position:absolute;bottom:10px;left:50%;max-width:90%;padding:18px 34px 12px 20px;font-size:16px;font-weight:bold;white-space:nowrap;cursor:pointer;z-index:"+mxPopupMenu.prototype.zIndex+";";mxUtils.setPrefixedStyle(b.style,"box-shadow","1px 1px 2px 0px #ddd");mxUtils.setPrefixedStyle(b.style,"transform","translate(-50%,120%)");mxUtils.setPrefixedStyle(b.style,"transition","all 1s ease");b.className="geBtn gePrimaryBtn";var k=document.createElement("img");k.setAttribute("src",Dialog.prototype.closeImage);k.setAttribute("title",mxResources.get("close"));k.setAttribute("border","0");k.style.cssText="position:absolute;right:10px;top:12px;filter:invert(1);padding:6px;margin:-6px;cursor:default;";b.appendChild(k);mxUtils.write(b,"Please rate us");document.body.appendChild(b);var m=document.createElement("img");m.setAttribute("border","0");m.setAttribute("align","absmiddle");m.setAttribute("title","1 star");m.setAttribute("style","margin-top:-6px;cursor:pointer;margin-left:8px;");m.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAQRdEVYdFhNTDpjb20uYWRvYmUueG1wADw/eHBhY2tldCBiZWdpbj0iICAgIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDQuMS1jMDM0IDQ2LjI3Mjk3NiwgU2F0IEphbiAyNyAyMDA3IDIyOjExOjQxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4YXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iPgogICAgICAgICA8eGFwOkNyZWF0b3JUb29sPkFkb2JlIEZpcmV3b3JrcyBDUzM8L3hhcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhhcDpDcmVhdGVEYXRlPjIwMDgtMDItMTdUMDI6MzY6NDVaPC94YXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhhcDpNb2RpZnlEYXRlPjIwMDktMDMtMTdUMTQ6MTI6MDJaPC94YXA6TW9kaWZ5RGF0ZT4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+CiAgICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIIImu8AAAAAVdEVYdENyZWF0aW9uIFRpbWUAMi8xNy8wOCCcqlgAAAHuSURBVDiNlZJBi1JRGIbfk+fc0ZuMXorJe4XujWoMdREaA23HICj6AQeLINr0C4I27ab27VqOI9+q/sH8gMDceG1RkIwgClEXFMbRc5zTZgZURmG+5fu9PN/7Hg6wZohoh4h21nn4uqXW+q0xZgzg+SrPlTXX73uet+26bp6ICpcGaK1fua57M5vN3tZav7gUgIiSqVTqcRAEm0EQbCaTyQoRXb3Iy4hoG8CT6XSaY4xtMMaSQohMPp8v+r7vAEC3243CMGwqpfoApsaYE8uyfgM45ABOjDEvXdfNlMvlzFINAIDneY7neZVzvdlsDgaDQYtzfsjOIjtKqU+e5+0Wi0V3VV8ACMOw3+/3v3HOX0sp/7K53te11h/S6fRuoVAIhBAL76OUOm2320dRFH0VQuxJKf8BAFu+UKvVvpRKpWe2bYt5fTweq0ajQUKIN1LK43N94SMR0Y1YLLYlhBBKqQUw51wkEol7WmuzoC8FuJtIJLaUUoii6Ljb7f4yxpz6vp9zHMe2bfvacDi8BeDHKkBuNps5rVbr52QyaVuW9ZExttHpdN73ej0/Ho+nADxYCdBaV0aj0RGAz5ZlHUgpx2erR/V6/d1wOHwK4CGA/QsBnPN9AN+llH+WkqFare4R0QGAO/M6M8Ysey81/wGqa8MlVvHPNAAAAABJRU5ErkJggg==");-b.appendChild(m);var f=document.createElement("img");f.setAttribute("border","0");f.setAttribute("align","absmiddle");f.setAttribute("title","2 star");f.setAttribute("style","margin-top:-6px;margin-left:3px;cursor:pointer;");f.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAQRdEVYdFhNTDpjb20uYWRvYmUueG1wADw/eHBhY2tldCBiZWdpbj0iICAgIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDQuMS1jMDM0IDQ2LjI3Mjk3NiwgU2F0IEphbiAyNyAyMDA3IDIyOjExOjQxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4YXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iPgogICAgICAgICA8eGFwOkNyZWF0b3JUb29sPkFkb2JlIEZpcmV3b3JrcyBDUzM8L3hhcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhhcDpDcmVhdGVEYXRlPjIwMDgtMDItMTdUMDI6MzY6NDVaPC94YXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhhcDpNb2RpZnlEYXRlPjIwMDktMDMtMTdUMTQ6MTI6MDJaPC94YXA6TW9kaWZ5RGF0ZT4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+CiAgICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIIImu8AAAAAVdEVYdENyZWF0aW9uIFRpbWUAMi8xNy8wOCCcqlgAAAHuSURBVDiNlZJBi1JRGIbfk+fc0ZuMXorJe4XujWoMdREaA23HICj6AQeLINr0C4I27ab27VqOI9+q/sH8gMDceG1RkIwgClEXFMbRc5zTZgZURmG+5fu9PN/7Hg6wZohoh4h21nn4uqXW+q0xZgzg+SrPlTXX73uet+26bp6ICpcGaK1fua57M5vN3tZav7gUgIiSqVTqcRAEm0EQbCaTyQoRXb3Iy4hoG8CT6XSaY4xtMMaSQohMPp8v+r7vAEC3243CMGwqpfoApsaYE8uyfgM45ABOjDEvXdfNlMvlzFINAIDneY7neZVzvdlsDgaDQYtzfsjOIjtKqU+e5+0Wi0V3VV8ACMOw3+/3v3HOX0sp/7K53te11h/S6fRuoVAIhBAL76OUOm2320dRFH0VQuxJKf8BAFu+UKvVvpRKpWe2bYt5fTweq0ajQUKIN1LK43N94SMR0Y1YLLYlhBBKqQUw51wkEol7WmuzoC8FuJtIJLaUUoii6Ljb7f4yxpz6vp9zHMe2bfvacDi8BeDHKkBuNps5rVbr52QyaVuW9ZExttHpdN73ej0/Ho+nADxYCdBaV0aj0RGAz5ZlHUgpx2erR/V6/d1wOHwK4CGA/QsBnPN9AN+llH+WkqFare4R0QGAO/M6M8Ysey81/wGqa8MlVvHPNAAAAABJRU5ErkJggg==");-b.appendChild(f);var q=document.createElement("img");q.setAttribute("border","0");q.setAttribute("align","absmiddle");q.setAttribute("title","3 star");q.setAttribute("style","margin-top:-6px;margin-left:3px;cursor:pointer;");q.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAQRdEVYdFhNTDpjb20uYWRvYmUueG1wADw/eHBhY2tldCBiZWdpbj0iICAgIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDQuMS1jMDM0IDQ2LjI3Mjk3NiwgU2F0IEphbiAyNyAyMDA3IDIyOjExOjQxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4YXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iPgogICAgICAgICA8eGFwOkNyZWF0b3JUb29sPkFkb2JlIEZpcmV3b3JrcyBDUzM8L3hhcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhhcDpDcmVhdGVEYXRlPjIwMDgtMDItMTdUMDI6MzY6NDVaPC94YXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhhcDpNb2RpZnlEYXRlPjIwMDktMDMtMTdUMTQ6MTI6MDJaPC94YXA6TW9kaWZ5RGF0ZT4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+CiAgICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIIImu8AAAAAVdEVYdENyZWF0aW9uIFRpbWUAMi8xNy8wOCCcqlgAAAHuSURBVDiNlZJBi1JRGIbfk+fc0ZuMXorJe4XujWoMdREaA23HICj6AQeLINr0C4I27ab27VqOI9+q/sH8gMDceG1RkIwgClEXFMbRc5zTZgZURmG+5fu9PN/7Hg6wZohoh4h21nn4uqXW+q0xZgzg+SrPlTXX73uet+26bp6ICpcGaK1fua57M5vN3tZav7gUgIiSqVTqcRAEm0EQbCaTyQoRXb3Iy4hoG8CT6XSaY4xtMMaSQohMPp8v+r7vAEC3243CMGwqpfoApsaYE8uyfgM45ABOjDEvXdfNlMvlzFINAIDneY7neZVzvdlsDgaDQYtzfsjOIjtKqU+e5+0Wi0V3VV8ACMOw3+/3v3HOX0sp/7K53te11h/S6fRuoVAIhBAL76OUOm2320dRFH0VQuxJKf8BAFu+UKvVvpRKpWe2bYt5fTweq0ajQUKIN1LK43N94SMR0Y1YLLYlhBBKqQUw51wkEol7WmuzoC8FuJtIJLaUUoii6Ljb7f4yxpz6vp9zHMe2bfvacDi8BeDHKkBuNps5rVbr52QyaVuW9ZExttHpdN73ej0/Ho+nADxYCdBaV0aj0RGAz5ZlHUgpx2erR/V6/d1wOHwK4CGA/QsBnPN9AN+llH+WkqFare4R0QGAO/M6M8Ysey81/wGqa8MlVvHPNAAAAABJRU5ErkJggg==");+b.appendChild(m);var g=document.createElement("img");g.setAttribute("border","0");g.setAttribute("align","absmiddle");g.setAttribute("title","2 star");g.setAttribute("style","margin-top:-6px;margin-left:3px;cursor:pointer;");g.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAQRdEVYdFhNTDpjb20uYWRvYmUueG1wADw/eHBhY2tldCBiZWdpbj0iICAgIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDQuMS1jMDM0IDQ2LjI3Mjk3NiwgU2F0IEphbiAyNyAyMDA3IDIyOjExOjQxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4YXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iPgogICAgICAgICA8eGFwOkNyZWF0b3JUb29sPkFkb2JlIEZpcmV3b3JrcyBDUzM8L3hhcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhhcDpDcmVhdGVEYXRlPjIwMDgtMDItMTdUMDI6MzY6NDVaPC94YXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhhcDpNb2RpZnlEYXRlPjIwMDktMDMtMTdUMTQ6MTI6MDJaPC94YXA6TW9kaWZ5RGF0ZT4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+CiAgICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIIImu8AAAAAVdEVYdENyZWF0aW9uIFRpbWUAMi8xNy8wOCCcqlgAAAHuSURBVDiNlZJBi1JRGIbfk+fc0ZuMXorJe4XujWoMdREaA23HICj6AQeLINr0C4I27ab27VqOI9+q/sH8gMDceG1RkIwgClEXFMbRc5zTZgZURmG+5fu9PN/7Hg6wZohoh4h21nn4uqXW+q0xZgzg+SrPlTXX73uet+26bp6ICpcGaK1fua57M5vN3tZav7gUgIiSqVTqcRAEm0EQbCaTyQoRXb3Iy4hoG8CT6XSaY4xtMMaSQohMPp8v+r7vAEC3243CMGwqpfoApsaYE8uyfgM45ABOjDEvXdfNlMvlzFINAIDneY7neZVzvdlsDgaDQYtzfsjOIjtKqU+e5+0Wi0V3VV8ACMOw3+/3v3HOX0sp/7K53te11h/S6fRuoVAIhBAL76OUOm2320dRFH0VQuxJKf8BAFu+UKvVvpRKpWe2bYt5fTweq0ajQUKIN1LK43N94SMR0Y1YLLYlhBBKqQUw51wkEol7WmuzoC8FuJtIJLaUUoii6Ljb7f4yxpz6vp9zHMe2bfvacDi8BeDHKkBuNps5rVbr52QyaVuW9ZExttHpdN73ej0/Ho+nADxYCdBaV0aj0RGAz5ZlHUgpx2erR/V6/d1wOHwK4CGA/QsBnPN9AN+llH+WkqFare4R0QGAO/M6M8Ysey81/wGqa8MlVvHPNAAAAABJRU5ErkJggg==");+b.appendChild(g);var q=document.createElement("img");q.setAttribute("border","0");q.setAttribute("align","absmiddle");q.setAttribute("title","3 star");q.setAttribute("style","margin-top:-6px;margin-left:3px;cursor:pointer;");q.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAQRdEVYdFhNTDpjb20uYWRvYmUueG1wADw/eHBhY2tldCBiZWdpbj0iICAgIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDQuMS1jMDM0IDQ2LjI3Mjk3NiwgU2F0IEphbiAyNyAyMDA3IDIyOjExOjQxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4YXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iPgogICAgICAgICA8eGFwOkNyZWF0b3JUb29sPkFkb2JlIEZpcmV3b3JrcyBDUzM8L3hhcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhhcDpDcmVhdGVEYXRlPjIwMDgtMDItMTdUMDI6MzY6NDVaPC94YXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhhcDpNb2RpZnlEYXRlPjIwMDktMDMtMTdUMTQ6MTI6MDJaPC94YXA6TW9kaWZ5RGF0ZT4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+CiAgICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIIImu8AAAAAVdEVYdENyZWF0aW9uIFRpbWUAMi8xNy8wOCCcqlgAAAHuSURBVDiNlZJBi1JRGIbfk+fc0ZuMXorJe4XujWoMdREaA23HICj6AQeLINr0C4I27ab27VqOI9+q/sH8gMDceG1RkIwgClEXFMbRc5zTZgZURmG+5fu9PN/7Hg6wZohoh4h21nn4uqXW+q0xZgzg+SrPlTXX73uet+26bp6ICpcGaK1fua57M5vN3tZav7gUgIiSqVTqcRAEm0EQbCaTyQoRXb3Iy4hoG8CT6XSaY4xtMMaSQohMPp8v+r7vAEC3243CMGwqpfoApsaYE8uyfgM45ABOjDEvXdfNlMvlzFINAIDneY7neZVzvdlsDgaDQYtzfsjOIjtKqU+e5+0Wi0V3VV8ACMOw3+/3v3HOX0sp/7K53te11h/S6fRuoVAIhBAL76OUOm2320dRFH0VQuxJKf8BAFu+UKvVvpRKpWe2bYt5fTweq0ajQUKIN1LK43N94SMR0Y1YLLYlhBBKqQUw51wkEol7WmuzoC8FuJtIJLaUUoii6Ljb7f4yxpz6vp9zHMe2bfvacDi8BeDHKkBuNps5rVbr52QyaVuW9ZExttHpdN73ej0/Ho+nADxYCdBaV0aj0RGAz5ZlHUgpx2erR/V6/d1wOHwK4CGA/QsBnPN9AN+llH+WkqFare4R0QGAO/M6M8Ysey81/wGqa8MlVvHPNAAAAABJRU5ErkJggg==");b.appendChild(q);var u=document.createElement("img");u.setAttribute("border","0");u.setAttribute("align","absmiddle");u.setAttribute("title","4 star");u.setAttribute("style","margin-top:-6px;margin-left:3px;cursor:pointer;");u.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAQRdEVYdFhNTDpjb20uYWRvYmUueG1wADw/eHBhY2tldCBiZWdpbj0iICAgIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDQuMS1jMDM0IDQ2LjI3Mjk3NiwgU2F0IEphbiAyNyAyMDA3IDIyOjExOjQxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4YXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iPgogICAgICAgICA8eGFwOkNyZWF0b3JUb29sPkFkb2JlIEZpcmV3b3JrcyBDUzM8L3hhcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhhcDpDcmVhdGVEYXRlPjIwMDgtMDItMTdUMDI6MzY6NDVaPC94YXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhhcDpNb2RpZnlEYXRlPjIwMDktMDMtMTdUMTQ6MTI6MDJaPC94YXA6TW9kaWZ5RGF0ZT4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+CiAgICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIIImu8AAAAAVdEVYdENyZWF0aW9uIFRpbWUAMi8xNy8wOCCcqlgAAAHuSURBVDiNlZJBi1JRGIbfk+fc0ZuMXorJe4XujWoMdREaA23HICj6AQeLINr0C4I27ab27VqOI9+q/sH8gMDceG1RkIwgClEXFMbRc5zTZgZURmG+5fu9PN/7Hg6wZohoh4h21nn4uqXW+q0xZgzg+SrPlTXX73uet+26bp6ICpcGaK1fua57M5vN3tZav7gUgIiSqVTqcRAEm0EQbCaTyQoRXb3Iy4hoG8CT6XSaY4xtMMaSQohMPp8v+r7vAEC3243CMGwqpfoApsaYE8uyfgM45ABOjDEvXdfNlMvlzFINAIDneY7neZVzvdlsDgaDQYtzfsjOIjtKqU+e5+0Wi0V3VV8ACMOw3+/3v3HOX0sp/7K53te11h/S6fRuoVAIhBAL76OUOm2320dRFH0VQuxJKf8BAFu+UKvVvpRKpWe2bYt5fTweq0ajQUKIN1LK43N94SMR0Y1YLLYlhBBKqQUw51wkEol7WmuzoC8FuJtIJLaUUoii6Ljb7f4yxpz6vp9zHMe2bfvacDi8BeDHKkBuNps5rVbr52QyaVuW9ZExttHpdN73ej0/Ho+nADxYCdBaV0aj0RGAz5ZlHUgpx2erR/V6/d1wOHwK4CGA/QsBnPN9AN+llH+WkqFare4R0QGAO/M6M8Ysey81/wGqa8MlVvHPNAAAAABJRU5ErkJggg==");-b.appendChild(u);this.bannerShowing=!0;var x=mxUtils.bind(this,function(){null!=b.parentNode&&(b.parentNode.removeChild(b),this.bannerShowing=!1,this.hideBannerratingFooter=!0,isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings.closeratingFooter=Date.now(),mxSettings.save()))});mxEvent.addListener(k,"click",mxUtils.bind(this,function(z){mxEvent.consume(z);x()}));mxEvent.addListener(m,"click",mxUtils.bind(this,function(z){mxEvent.consume(z);x()}));mxEvent.addListener(f,"click",mxUtils.bind(this,+b.appendChild(u);this.bannerShowing=!0;var x=mxUtils.bind(this,function(){null!=b.parentNode&&(b.parentNode.removeChild(b),this.bannerShowing=!1,this.hideBannerratingFooter=!0,isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings.closeratingFooter=Date.now(),mxSettings.save()))});mxEvent.addListener(k,"click",mxUtils.bind(this,function(z){mxEvent.consume(z);x()}));mxEvent.addListener(m,"click",mxUtils.bind(this,function(z){mxEvent.consume(z);x()}));mxEvent.addListener(g,"click",mxUtils.bind(this,function(z){mxEvent.consume(z);x()}));mxEvent.addListener(q,"click",mxUtils.bind(this,function(z){mxEvent.consume(z);x()}));mxEvent.addListener(u,"click",mxUtils.bind(this,function(z){mxEvent.consume(z);window.open("https://marketplace.atlassian.com/apps/1210933/draw-io-diagrams-for-confluence?hosting=datacenter&tab=reviews");x()}));k=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(b.style,"transform","translate(-50%,120%)");window.setTimeout(mxUtils.bind(this,function(){x()}),1E3)});window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(b.style,"transform","translate(-50%,0%)")}),500);window.setTimeout(k,6E4)}};-App.prototype.checkReleaseChannel=function(b){try{var k=null!=b?b.getUser():null,m=null!=k?k.email:null,f=null!=m?m.lastIndexOf("@"):-1;if(!(0>f)&&isLocalStorage&&Editor.enableServiceWorker&&"serviceWorker"in navigator&&null==urlParams.channel){var q=parseInt(localStorage.getItem(".drawio-channel-ts"),10),u=Date.now()-q;if(!(!isNaN(q)&&0<=u&&864E5>u)){localStorage.setItem(".drawio-channel-ts",String(Date.now()));var x=new XMLHttpRequest;x.open("POST","channel");x.setRequestHeader("Content-Type","application/json");-x.onload=mxUtils.bind(this,function(){try{var z=null;if(404==x.status||405==x.status)z="beta";else if(200<=x.status&&299>=x.status){var F=JSON.parse(x.responseText);null==F||"stable"!=F.channel&&"beta"!=F.channel||(z=F.channel)}null!=z&&(F="stable"==z?"stable":null,F!=App.getReleaseChannel()&&(EditorUi.debug("App.checkReleaseChannel","Switching channel",z),App.setReleaseChannel(F),this.switchReleaseChannel()))}catch(J){}});x.send(JSON.stringify({domain:m.substring(f+1)}))}}}catch(z){}};-App.prototype.switchReleaseChannel=function(){try{var b="stable"==App.getReleaseChannel()?"stable/service-worker.js":"service-worker.js";localStorage.setItem(".drawio-channel-switch-ts",String(Date.now()));navigator.serviceWorker.register(b,{scope:"./"}).then(mxUtils.bind(this,function(k){var m=mxUtils.bind(this,function(f){null!=f&&f.addEventListener("statechange",mxUtils.bind(this,function(){"activated"!=f.state||null!=this.getCurrentFile()&&this.getCurrentFile().isModified()||window.location.reload()}))});+App.prototype.checkReleaseChannel=function(b){try{var k=null!=b?b.getUser():null,m=null!=k?k.email:null,g=null!=m?m.lastIndexOf("@"):-1;if(!(0>g)&&isLocalStorage&&Editor.enableServiceWorker&&"serviceWorker"in navigator&&null==urlParams.channel){var q=parseInt(localStorage.getItem(".drawio-channel-ts"),10),u=Date.now()-q;if(!(!isNaN(q)&&0<=u&&864E5>u)){localStorage.setItem(".drawio-channel-ts",String(Date.now()));var x=new XMLHttpRequest;x.open("POST","channel");x.setRequestHeader("Content-Type","application/json");+x.onload=mxUtils.bind(this,function(){try{var z=null;if(404==x.status||405==x.status)z="beta";else if(200<=x.status&&299>=x.status){var F=JSON.parse(x.responseText);null==F||"stable"!=F.channel&&"beta"!=F.channel||(z=F.channel)}null!=z&&(F="stable"==z?"stable":null,F!=App.getReleaseChannel()&&(EditorUi.debug("App.checkReleaseChannel","Switching channel",z),App.setReleaseChannel(F),this.switchReleaseChannel()))}catch(J){}});x.send(JSON.stringify({domain:m.substring(g+1)}))}}}catch(z){}};+App.prototype.switchReleaseChannel=function(){try{var b="stable"==App.getReleaseChannel()?"stable/service-worker.js":"service-worker.js";localStorage.setItem(".drawio-channel-switch-ts",String(Date.now()));navigator.serviceWorker.register(b,{scope:"./"}).then(mxUtils.bind(this,function(k){var m=mxUtils.bind(this,function(g){null!=g&&g.addEventListener("statechange",mxUtils.bind(this,function(){"activated"!=g.state||null!=this.getCurrentFile()&&this.getCurrentFile().isModified()||window.location.reload()}))});null!=k.installing?m(k.installing):k.addEventListener("updatefound",function(){m(k.installing)})}),function(k){})}catch(k){}};-App.prototype.checkLicense=function(){var b=this.drive.getUser(),k=null!=b?b.email:null;if(!this.isOffline()&&!this.editor.chromeless&&null!=k&&null!=b.id){var m=k.lastIndexOf("@"),f=0<=m?k.substring(m+1):"";b=Editor.crc32(b.id);"gmail.com"!==f.toLowerCase()&&mxUtils.post("/license","domain="+encodeURIComponent(f)+"&id="+encodeURIComponent(b)+"&ts="+(new Date).getTime(),mxUtils.bind(this,function(q){try{if(200<=q.getStatus()&&299>=q.getStatus()){var u=q.getText();if(0<u.length){var x=JSON.parse(u);-null!=x&&this.handleLicense(x,f)}}}catch(z){}}))}};App.prototype.handleLicense=function(b,k){};App.prototype.getEditBlankXml=function(){var b=this.getCurrentFile();return null!=b&&this.editor.isChromelessView()&&this.editor.graph.isLightboxView()?b.getData():this.getFileData(!0)};App.prototype.updateActionStates=function(){EditorUi.prototype.updateActionStates.apply(this,arguments);this.actions.get("revisionHistory").setEnabled(this.isRevisionHistoryEnabled())};-App.prototype.addRecent=function(b,k,m){if(isLocalStorage&&null!=localStorage){k=null!=k?k:"";var f=this.getRecent(k);if(null==f)f=[];else for(var q=0;q<f.length;q++)f[q].mode==b.mode&&f[q].id==b.id&&f.splice(q,1);null!=f&&(m=null!=m?m:10,f.unshift(b),f=f.slice(0,m),localStorage.setItem(".recent"+k,JSON.stringify(f)))}};App.prototype.getRecent=function(b){if(isLocalStorage&&null!=localStorage){try{var k=localStorage.getItem(".recent"+(null!=b?b:""));if(null!=k)return JSON.parse(k)}catch(m){}return null}};+App.prototype.checkLicense=function(){var b=this.drive.getUser(),k=null!=b?b.email:null;if(!this.isOffline()&&!this.editor.chromeless&&null!=k&&null!=b.id){var m=k.lastIndexOf("@"),g=0<=m?k.substring(m+1):"";b=Editor.crc32(b.id);"gmail.com"!==g.toLowerCase()&&mxUtils.post("/license","domain="+encodeURIComponent(g)+"&id="+encodeURIComponent(b)+"&ts="+(new Date).getTime(),mxUtils.bind(this,function(q){try{if(200<=q.getStatus()&&299>=q.getStatus()){var u=q.getText();if(0<u.length){var x=JSON.parse(u);+null!=x&&this.handleLicense(x,g)}}}catch(z){}}))}};App.prototype.handleLicense=function(b,k){};App.prototype.getEditBlankXml=function(){var b=this.getCurrentFile();return null!=b&&this.editor.isChromelessView()&&this.editor.graph.isLightboxView()?b.getData():this.getFileData(!0)};App.prototype.updateActionStates=function(){EditorUi.prototype.updateActionStates.apply(this,arguments);this.actions.get("revisionHistory").setEnabled(this.isRevisionHistoryEnabled())};+App.prototype.addRecent=function(b,k,m){if(isLocalStorage&&null!=localStorage){k=null!=k?k:"";var g=this.getRecent(k);if(null==g)g=[];else for(var q=0;q<g.length;q++)g[q].mode==b.mode&&g[q].id==b.id&&g.splice(q,1);null!=g&&(m=null!=m?m:10,g.unshift(b),g=g.slice(0,m),localStorage.setItem(".recent"+k,JSON.stringify(g)))}};App.prototype.getRecent=function(b){if(isLocalStorage&&null!=localStorage){try{var k=localStorage.getItem(".recent"+(null!=b?b:""));if(null!=k)return JSON.parse(k)}catch(m){}return null}};App.prototype.resetRecent=function(b){if(isLocalStorage&&null!=localStorage)try{localStorage.removeItem(".recent"+(null!=b?b:""))}catch(k){}};App.prototype.onBeforeUnload=function(){if("1"==urlParams.embed&&this.editor.modified)return mxResources.get("allChangesLost");this.unloading=!0;var b=this.getCurrentFile();if(null!=b)if(b.constructor!=LocalFile||""!=b.getHash()||b.isModified()||"1"==urlParams.nowarn||this.isDiagramEmpty()||null!=urlParams.url||this.editor.isChromelessView()||null!=b.fileHandle){if(b.isModified())return this.logIfModified(b),mxResources.get("allChangesLost");b.close(!0)}else return mxResources.get("ensureDataSaved")};App.prototype.updateDocumentTitle=function(){var b=this.editor.appName,k=this.getCurrentFile();null==k||!this.editor.graph.isLightboxView()&&"simple"!=Editor.currentTheme||null==this.pages||null==this.currentPage?this.isOfflineApp()&&(b+=" app"):b=this.getShortPageName(this.currentPage);null!=k&&(b=(null!=k.getTitle()?k.getTitle():this.defaultFilename)+" - "+b);document.title!=b&&(document.title=b)};-App.prototype.getThumbnail=function(b,k,m){m=null!=m?m:0;var f=!1;try{var q=!0,u=window.setTimeout(mxUtils.bind(this,function(){q=!1;k(null)}),this.timeout),x=mxUtils.bind(this,function(M){window.clearTimeout(u);q&&k(M)});null==this.thumbImageCache&&(this.thumbImageCache={});var z=this.editor.graph,F=z.backgroundImage;if(null!=this.pages&&this.currentPage!=this.pages[0]){var J=z.getGlobalVariable;z=this.createTemporaryGraph(z.getStylesheet());z.setBackgroundImage=this.editor.graph.setBackgroundImage;+App.prototype.getThumbnail=function(b,k,m){m=null!=m?m:0;var g=!1;try{var q=!0,u=window.setTimeout(mxUtils.bind(this,function(){q=!1;k(null)}),this.timeout),x=mxUtils.bind(this,function(M){window.clearTimeout(u);q&&k(M)});null==this.thumbImageCache&&(this.thumbImageCache={});var z=this.editor.graph,F=z.backgroundImage;if(null!=this.pages&&this.currentPage!=this.pages[0]){var J=z.getGlobalVariable;z=this.createTemporaryGraph(z.getStylesheet());z.setBackgroundImage=this.editor.graph.setBackgroundImage;var H=this.pages[0];this.currentPage==H?(z.mathEnabled=this.editor.graph.mathEnabled,z.setBackgroundImage(F)):null!=H.viewState&&null!=H.viewState&&(z.mathEnabled=H.viewState.mathEnabled,F=H.viewState.backgroundImage,z.setBackgroundImage(F));z.getGlobalVariable=function(M){return"page"==M?H.getName():"pagenumber"==M?1:J.apply(this,arguments)};z.getGlobalVariable=J;document.body.appendChild(z.container);z.model.setRoot(H.root)}if(mxClient.IS_CHROMEAPP||Editor.useCanvasForExport)this.editor.exportToCanvas(mxUtils.bind(this,-function(M){try{z!=this.editor.graph&&null!=z.container.parentNode&&z.container.parentNode.removeChild(z.container)}catch(O){M=null}x(M)}),b,this.thumbImageCache,"#ffffff",function(){x()},null,null,null,null,null,null,z,m,null,null,null,"diagram",null),f=!0;else if(Editor.canvasSupported&&null!=this.getCurrentFile()){var D=document.createElement("canvas"),c=z.getGraphBounds(),g=z.view.translate,l=z.view.scale;null!=F&&(c=mxRectangle.fromRectangle(c),c.add(new mxRectangle((g.x+F.x)*l,(g.y+F.y)*l,F.width*+function(M){try{z!=this.editor.graph&&null!=z.container.parentNode&&z.container.parentNode.removeChild(z.container)}catch(O){M=null}x(M)}),b,this.thumbImageCache,"#ffffff",function(){x()},null,null,null,null,null,null,z,m,null,null,null,"diagram",null),g=!0;else if(Editor.canvasSupported&&null!=this.getCurrentFile()){var D=document.createElement("canvas"),c=z.getGraphBounds(),f=z.view.translate,l=z.view.scale;null!=F&&(c=mxRectangle.fromRectangle(c),c.add(new mxRectangle((f.x+F.x)*l,(f.y+F.y)*l,F.width*l,F.height*l)));var n=b/c.width;n=Math.min(1,Math.min(3*b/(4*c.height),n));var r=Math.floor(c.x),t=Math.floor(c.y);D.setAttribute("width",Math.ceil(n*(c.width+4)));D.setAttribute("height",Math.ceil(n*(c.height+4)));var v=D.getContext("2d");v.scale(n,n);v.translate(-r,-t);var B=z.background;if(null==B||""==B||B==mxConstants.NONE)B="#ffffff";v.save();v.fillStyle=B;v.fillRect(r,t,Math.ceil(c.width+4),Math.ceil(c.height+4));v.restore();if(null!=F){var E=new Image;E.src=F.src;v.drawImage(E,F.x*n,F.y*n,F.width*n,F.height*n)}var K=new mxJsCanvas(D),C=new mxAsyncCanvas(this.thumbImageCache);K.images=this.thumbImageCache.images;var R=new mxImageExport;R.drawShape=function(M,O){M.shape instanceof mxShape&&M.shape.checkBounds()&&(O.save(),O.translate(.5,.5),M.shape.paint(O),O.translate(-.5,-.5),O.restore())};R.drawText=function(M,O){};R.drawState(z.getView().getState(z.model.root),C);C.finish(mxUtils.bind(this,function(){try{R.drawState(z.getView().getState(z.model.root),K),z!=this.editor.graph&&null!=-z.container.parentNode&&z.container.parentNode.removeChild(z.container)}catch(M){D=null}x(D)}));f=!0}}catch(M){f=!1,null!=z&&z!=this.editor.graph&&null!=z.container.parentNode&&z.container.parentNode.removeChild(z.container)}f||window.clearTimeout(u);return f};-(function(){var b=EditorUi.prototype.setMode;App.prototype.setMode=function(k,m){b.apply(this,arguments);null!=this.mode&&(Editor.useLocalStorage=this.mode==App.MODE_BROWSER);if(null!=this.appIcon){var f=this.getCurrentFile();k=null!=f?f.getMode():k;null==this.updateTitleListener&&(this.updateTitleListener=mxUtils.bind(this,function(){k==App.MODE_GOOGLE?this.appIcon.setAttribute("title",mxResources.get("openIt",[mxResources.get("googleDrive")])):k==App.MODE_DROPBOX?this.appIcon.setAttribute("title",+z.container.parentNode&&z.container.parentNode.removeChild(z.container)}catch(M){D=null}x(D)}));g=!0}}catch(M){g=!1,null!=z&&z!=this.editor.graph&&null!=z.container.parentNode&&z.container.parentNode.removeChild(z.container)}g||window.clearTimeout(u);return g};+(function(){var b=EditorUi.prototype.setMode;App.prototype.setMode=function(k,m){b.apply(this,arguments);null!=this.mode&&(Editor.useLocalStorage=this.mode==App.MODE_BROWSER);if(null!=this.appIcon){var g=this.getCurrentFile();k=null!=g?g.getMode():k;null==this.updateTitleListener&&(this.updateTitleListener=mxUtils.bind(this,function(){k==App.MODE_GOOGLE?this.appIcon.setAttribute("title",mxResources.get("openIt",[mxResources.get("googleDrive")])):k==App.MODE_DROPBOX?this.appIcon.setAttribute("title",mxResources.get("openIt",[mxResources.get("dropbox")])):k==App.MODE_ONEDRIVE?this.appIcon.setAttribute("title",mxResources.get("openIt",[mxResources.get("oneDrive")])):this.appIcon.removeAttribute("title")}),this.addListener("languageChanged",mxUtils.bind(this,function(){this.updateTitleListener()})));this.updateTitleListener()}if(m)try{if(isLocalStorage)localStorage.setItem(".mode",k);else if("undefined"!=typeof Storage){var q=new Date;q.setYear(q.getFullYear()+1);document.cookie="MODE="+k+"; expires="+q.toUTCString()}}catch(u){}}})();App.prototype.appIconClicked=function(b){var k=this.getCurrentFile(),m=null!=k?k.getMode():null;k=null!=k?mxEvent.isAltDown(b)?k.getFolderUrl():k.getFileUrl():null;null!=k?this.openLink(k):m==App.MODE_GOOGLE?this.openLink("https://drive.google.com/?authuser=0"):m==App.MODE_ONEDRIVE?this.openLink("https://onedrive.live.com/"):m==App.MODE_DROPBOX?this.openLink("https://www.dropbox.com/"):m==App.MODE_GITHUB?this.openLink("https://github.com/"):m==App.MODE_GITLAB?this.openLink(DRAWIO_GITLAB_URL):m==App.MODE_TRELLO?this.openLink("https://trello.com/"):m==App.MODE_DEVICE?this.openLink("https://get.draw.io/"):this.openLink("https://www.drawio.com/");mxEvent.consume(b)};App.prototype.clearMode=function(){if(isLocalStorage)localStorage.removeItem(".mode");else if("undefined"!=typeof Storage){var b=new Date;b.setYear(b.getFullYear()-1);document.cookie="MODE=; expires="+b.toUTCString()}};-App.prototype.open=function(){try{if(null!=window.opener){var b=urlParams.create;null!=b&&(b=decodeURIComponent(b));if(null!=b&&0<b.length&&"http://"!=b.substring(0,7)&&"https://"!=b.substring(0,8)){var k=mxUtils.parseXml(window.opener[b]);this.editor.setGraphXml(k.documentElement)}else null!=window.opener.openFile&&window.opener.openFile.setConsumer(mxUtils.bind(this,function(m,f,q){this.spinner.stop();null==f&&(f=urlParams.title,q=!0,f=null!=f?decodeURIComponent(f):this.defaultFilename);0<(Editor.useCanvasForExport?--1:".png"==f.substring(f.length-4))&&(f=f.substring(0,f.length-4)+".drawio");this.fileLoaded(mxClient.IS_IOS?new StorageFile(this,m,f):new LocalFile(this,m,f,q));m=this.getCurrentFile();q&&null!=m&&m.fileChanged()}))}}catch(m){}};App.prototype.loadGapi=function(b){"undefined"!==typeof gapi&&gapi.load(("0"!=urlParams.picker?"picker,":"")+App.GOOGLE_APIS,b)};+App.prototype.open=function(){try{if(null!=window.opener){var b=urlParams.create;null!=b&&(b=decodeURIComponent(b));if(null!=b&&0<b.length&&"http://"!=b.substring(0,7)&&"https://"!=b.substring(0,8)){var k=mxUtils.parseXml(window.opener[b]);this.editor.setGraphXml(k.documentElement)}else null!=window.opener.openFile&&window.opener.openFile.setConsumer(mxUtils.bind(this,function(m,g,q){this.spinner.stop();null==g&&(g=urlParams.title,q=!0,g=null!=g?decodeURIComponent(g):this.defaultFilename);0<(Editor.useCanvasForExport?+-1:".png"==g.substring(g.length-4))&&(g=g.substring(0,g.length-4)+".drawio");this.fileLoaded(mxClient.IS_IOS?new StorageFile(this,m,g):new LocalFile(this,m,g,q));m=this.getCurrentFile();q&&null!=m&&m.fileChanged()}))}}catch(m){}};App.prototype.loadGapi=function(b){"undefined"!==typeof gapi&&gapi.load(("0"!=urlParams.picker?"picker,":"")+App.GOOGLE_APIS,b)};App.prototype.load=function(){try{if("1"!=urlParams.embed)try{if(this.spinner.spin(document.body,mxResources.get("starting"))){try{this.stateArg=null!=urlParams.state&&null!=this.drive?JSON.parse(decodeURIComponent(urlParams.state)):null}catch(b){}this.editor.graph.setEnabled(null!=this.getCurrentFile());null!=window.location.hash&&0!=window.location.hash.length||null==this.drive||null==this.stateArg||null==this.stateArg.userId||this.drive.setUserId(this.stateArg.userId);null!=urlParams.fileId?(window.location.hash="G"+urlParams.fileId,window.location.search=this.getSearch(["fileId"])):null==this.drive?(this.mode==App.MODE_GOOGLE&&(this.mode=null),this.start()):this.loadGapi(mxUtils.bind(this,function(){this.start()}))}}catch(b){this.handleError(b)}else this.restoreLibraries(),"1"==urlParams.gapi&&this.loadGapi(function(){})}catch(b){EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(b.stack)):(EditorUi.logError(b.message,null,null,null,b),alert(b.message))}};App.prototype.showRefreshDialog=function(b,k){this.showingRefreshDialog||(this.showingRefreshDialog=!0,this.showError(b||mxResources.get("externalChanges"),k||mxResources.get("redirectToNewApp"),mxResources.get("refresh"),mxUtils.bind(this,function(){var m=this.getCurrentFile();null!=m&&m.setModified(!1);this.spinner.spin(document.body,mxResources.get("connecting"));this.editor.graph.setEnabled(!1);window.location.reload()}),null,null,null,null,null,340,180),null!=this.dialog&&null!=this.dialog.container&&@@ -15463,128 +15552,128 @@ mxResources.get("errorLoadingFile"))}else if((null==window.location.hash||1>=winthis.defaultFilename;J=new LocalFile(this,J,H,!0);this.fileLoaded(J);null!=window.location.hash&&"#P"==window.location.hash.substring(0,2)&&(window.location.hash="");this.editor.chromeless||(J.fileChanged(),window.setTimeout(mxUtils.bind(this,function(){this.actions.get("resetView").funct()}),0))}),z=window.opener||window.parent;if(z!=window){var F=urlParams.create;null!=F?x(z[decodeURIComponent(F)]):(F=urlParams.data,null!=F?x(decodeURIComponent(F)):this.spinner.spin(document.body,mxResources.get("loading"))&&this.createTimeout(2E3,mxUtils.bind(this,function(J){this.installMessageHandler(mxUtils.bind(this,function(H,D){D.source==z&&J.clear()&&(this.spinner.stop(),x(H))}))}),mxUtils.bind(this,function(J){this.handleError(J)})))}}else if(null==this.dialog)if("1"==urlParams.demo)F=Editor.useLocalStorage,this.createFile(this.defaultFilename,null,null,null,null,null,null,!0),Editor.useLocalStorage=F;else{F=!1;try{F=null!=window.opener&&null!=window.opener.openFile}catch(J){}F?this.spinner.spin(document.body,mxResources.get("loading")):(F=this.getDiagramId(),!EditorUi.enableDrafts||null!=urlParams.mode||"draw.io"!=this.getServiceName()||null!=F&&0!=F.length||this.editor.isChromelessView()?null!=F&&0<F.length?this.loadFile(F,null,null,mxUtils.bind(this,function(){var J=decodeURIComponent(urlParams.viewbox||"");if(""!=J)try{var H=JSON.parse(J);this.editor.graph.fitWindow(H,H.border)}catch(D){console.error(D)}})):"0"!=urlParams.splash||null!=urlParams.mode&&!EditorUi.isElectronApp?this.loadFile():this.createFile(this.defaultFilename,-this.getFileData(),null,null,null,null,null,!0):this.checkDrafts())}}),f=decodeURIComponent(urlParams.create||"");null!=window.location.hash&&"#create="==window.location.hash.substring(0,8)&&(f=decodeURIComponent(window.location.hash.substring(8)));null!=urlParams["smart-template"]&&(null==window.location.hash||1>=window.location.hash.length)&&(f=JSON.stringify({type:"generate",data:decodeURIComponent(urlParams["smart-template"])}));if((null==window.location.hash||1>=window.location.hash.length)&&-0<f.length&&this.spinner.spin(document.body,mxResources.get("loading"))){var q=mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("reconnecting"))&&(window.location.search=this.getSearch(["create","title"]))}),u=mxUtils.bind(this,function(x){this.spinner.stop();if("0"!=urlParams.splash){this.fileLoaded(new LocalFile(this,x,null));this.editor.graph.setEnabled(!1);this.mode=urlParams.mode;var z=urlParams.title;z=null!=z?decodeURIComponent(z):this.defaultFilename;x=this.getServiceCount(!0);-isLocalStorage&&x++;var F=4>=x?2:6<x?4:3;z=new CreateDialog(this,z,mxUtils.bind(this,function(J,H){try{if(null==H){this.hideDialog();var D=Editor.useLocalStorage;this.createFile(0<J.length?J:this.defaultFilename,this.getFileData(),null,null,null,!0,null,!0);Editor.useLocalStorage=D}else this.pickFolder(H,mxUtils.bind(this,function(c){try{this.createFile(J,this.getFileData(!0),null,H,null,!0,c)}catch(g){this.handleError(g)}}))}catch(c){this.handleError(c)}}),null,null,null,null,"1"==urlParams.browser,-null,null,!0,F,null,null,null,this.editor.fileExtensions);this.showDialog(z.container,420,x>F?390:280,!0,!1,mxUtils.bind(this,function(J){J&&null==this.getCurrentFile()&&this.showSplash()}));z.init()}});if("http://"!=f.substring(0,7)&&"https://"!=f.substring(0,8))try{if("{"==f.charAt(0))this.executeCreateObject(JSON.parse(decodeURIComponent(f)),mxUtils.bind(this,function(){window.history.replaceState(null,null,window.location.pathname+this.getSearch(["create"]))}));else if(null!=window.opener&&null!=-window.opener[f])u(window.opener[f]);else throw Error(mxResources.get("invalidCallFnNotFound",["window.opener."+f]));}catch(x){this.handleError(x,mxResources.get("errorLoadingFile"))}else this.loadTemplate(f,function(x){u(x)},mxUtils.bind(this,function(x){this.handleError(x,mxResources.get("errorLoadingFile"),q)}))}else(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.state&&null!=this.stateArg&&"open"==this.stateArg.action?null!=this.stateArg.ids&&(window.history&&window.history.replaceState&&+this.getFileData(),null,null,null,null,null,!0):this.checkDrafts())}}),g=decodeURIComponent(urlParams.create||"");null!=window.location.hash&&"#create="==window.location.hash.substring(0,8)&&(g=decodeURIComponent(window.location.hash.substring(8)));null!=urlParams["smart-template"]&&(null==window.location.hash||1>=window.location.hash.length)&&(g=JSON.stringify({type:"generate",data:decodeURIComponent(urlParams["smart-template"])}));if((null==window.location.hash||1>=window.location.hash.length)&&+0<g.length&&this.spinner.spin(document.body,mxResources.get("loading"))){var q=mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("reconnecting"))&&(window.location.search=this.getSearch(["create","title"]))}),u=mxUtils.bind(this,function(x){this.spinner.stop();if("0"!=urlParams.splash){this.fileLoaded(new LocalFile(this,x,null));this.editor.graph.setEnabled(!1);this.mode=urlParams.mode;var z=urlParams.title;z=null!=z?decodeURIComponent(z):this.defaultFilename;x=this.getServiceCount(!0);+isLocalStorage&&x++;var F=4>=x?2:6<x?4:3;z=new CreateDialog(this,z,mxUtils.bind(this,function(J,H){try{if(null==H){this.hideDialog();var D=Editor.useLocalStorage;this.createFile(0<J.length?J:this.defaultFilename,this.getFileData(),null,null,null,!0,null,!0);Editor.useLocalStorage=D}else this.pickFolder(H,mxUtils.bind(this,function(c){try{this.createFile(J,this.getFileData(!0),null,H,null,!0,c)}catch(f){this.handleError(f)}}))}catch(c){this.handleError(c)}}),null,null,null,null,"1"==urlParams.browser,+null,null,!0,F,null,null,null,this.editor.fileExtensions);this.showDialog(z.container,420,x>F?390:280,!0,!1,mxUtils.bind(this,function(J){J&&null==this.getCurrentFile()&&this.showSplash()}));z.init()}});if("http://"!=g.substring(0,7)&&"https://"!=g.substring(0,8))try{if("{"==g.charAt(0))this.executeCreateObject(JSON.parse(decodeURIComponent(g)),mxUtils.bind(this,function(){window.history.replaceState(null,null,window.location.pathname+this.getSearch(["create"]))}));else if(null!=window.opener&&null!=+window.opener[g])u(window.opener[g]);else throw Error(mxResources.get("invalidCallFnNotFound",["window.opener."+g]));}catch(x){this.handleError(x,mxResources.get("errorLoadingFile"))}else this.loadTemplate(g,function(x){u(x)},mxUtils.bind(this,function(x){this.handleError(x,mxResources.get("errorLoadingFile"),q)}))}else(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.state&&null!=this.stateArg&&"open"==this.stateArg.action?null!=this.stateArg.ids&&(window.history&&window.history.replaceState&&window.history.replaceState(null,null,window.location.pathname+this.getSearch(["state","splash"])),window.location.hash="G"+this.stateArg.ids[0]):(null==window.location.hash||1>=window.location.hash.length)&&null!=this.drive&&null!=this.stateArg&&"create"==this.stateArg.action?(window.history&&window.history.replaceState&&window.history.replaceState(null,null,window.location.pathname+this.getSearch(["state"])),this.setMode(App.MODE_GOOGLE),"0"==urlParams.splash?this.createFile(null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename):this.actions.get("new").funct()):(null!=urlParams.open&&window.history&&window.history.replaceState&&(window.history.replaceState(null,null,window.location.pathname+this.getSearch(["open","sketch"])),window.location.hash=urlParams.open),m())}}catch(x){this.handleError(x)}};App.prototype.executeCreateObject=function(b,k){try{EditorUi.debug("App.executeCreateObject",[this],"value",[b]);var m=mxUtils.bind(this,function(x){this.spinner.stop();this.createFile(null!=b.filename?b.filename:this.defaultFilename,x,null,null,mxUtils.bind(this,function(){null!=urlParams.pv&&this.setPageVisible("1"==urlParams.pv);null!=urlParams.grid&&this.editor.graph.setGridEnabled("1"==urlParams.grid);var z=mxUtils.bind(this,function(){this.initialFitDiagram(1.2);if("pop"==b.effect){var J=this.editor.graph,H=J.model.getDescendants(J.model.getRoot()),D=J.getNodesForCells(H);Graph.setOpacityForNodes(D,0);window.setTimeout(mxUtils.bind(this,function(){var c=J.createPopAnimations(H,!0);J.executeAnimations(c)}),200)}null!=k&&k();b.type="xml";b.compressed=!0;b.data=Graph.compress(null!=b.layout||b.applyLayouts?mxUtils.getXml(this.editor.getGraphXml()):x);delete b.layout;delete b.applyLayouts;window.location.hash="create="+encodeURIComponent(JSON.stringify(b))}),F=mxUtils.bind(this,function(){null!=b.layout?-this.executeLayoutSpec(b.layout,z):z()});b.applyLayouts?this.applyChildLayouts(F):F()}),!0,null,!0)}),f=b.data;b.compressed&&(f=Graph.decompress(f));if("mermaid"==b.type)if(EditorUi.isMermaidSupported()){var q=mxUtils.bind(this,function(x){this.handleError(x)});b.image?this.parseMermaidImage(f,mxUtils.bind(this,function(x){m(x)}),q):this.parseMermaidDiagram(f,null,mxUtils.bind(this,function(x){m(mxMermaidToDrawio.wrapGroup(x,f,EditorUi.getInsertMermaidConfig()))}),q)}else throw Error(mxResources.get("serviceUnavailableOrBlocked"));-else if("generate"==b.type&&this.spinner.spin(document.body,mxResources.get("generate")+" '"+f+"'"))this.generateOpenAiMermaidDiagram(f,function(x){m(x)},mxUtils.bind(this,function(x){this.handleError(x,mxResources.get("errorLoadingFile"))}),{complexity:"high"});else if("csv"==b.type){var u=this.createTemporaryGraph(this.editor.graph.getStylesheet());this.importCsv(f,mxUtils.bind(this,function(){var x=new mxCodec;m(mxUtils.getXml(x.encode(u.getModel())))}),u,!0)}else if("xml"==b.type)m(f);else throw Error(mxResources.get("invalidCallFnNotFound",+this.executeLayoutSpec(b.layout,z):z()});b.applyLayouts?this.applyChildLayouts(F):F()}),!0,null,!0)}),g=b.data;b.compressed&&(g=Graph.decompress(g));if("mermaid"==b.type)if(EditorUi.isMermaidSupported()){var q=mxUtils.bind(this,function(x){this.handleError(x)});b.image?this.parseMermaidImage(g,mxUtils.bind(this,function(x){m(x)}),q):this.parseMermaidDiagram(g,null,mxUtils.bind(this,function(x){m(mxMermaidToDrawio.wrapGroup(x,g,EditorUi.getInsertMermaidConfig()))}),q)}else throw Error(mxResources.get("serviceUnavailableOrBlocked"));+else if("generate"==b.type&&this.spinner.spin(document.body,mxResources.get("generate")+" '"+g+"'"))this.generateOpenAiMermaidDiagram(g,function(x){m(x)},mxUtils.bind(this,function(x){this.handleError(x,mxResources.get("errorLoadingFile"))}),{complexity:"high"});else if("csv"==b.type){var u=this.createTemporaryGraph(this.editor.graph.getStylesheet());this.importCsv(g,mxUtils.bind(this,function(){var x=new mxCodec;m(mxUtils.getXml(x.encode(u.getModel())))}),u,!0)}else if("xml"==b.type)m(g);else throw Error(mxResources.get("invalidCallFnNotFound",[b.type]));}catch(x){this.handleError(x,mxResources.get("errorLoadingFile"))}};App.prototype.openGenerateDialog=function(b){if(null==this.chatWindow){var k=mxSettings.getWindowState("chat");this.chatWindow=new ChatWindow(this,null!=k&&null!=k.x?k.x:224,null!=k&&null!=k.y?k.y:104,null!=k&&null!=k.w?k.w:440,null!=k&&null!=k.h?k.h:440);this.chatWindow.window.addListener("show",mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("chat"))}));this.chatWindow.window.addListener("hide",function(){this.fireEvent(new mxEventObject("chat"))});this.installWindowPersistence("chat",this.chatWindow);null!=k&&null==b?this.restoreWindowState("chat",this.chatWindow):this.chatWindow.window.setVisible(!0);this.fireEvent(new mxEventObject("chat"))}else this.chatWindow.window.setVisible(!0);null!=b&&this.chatWindow.generate(b)};-App.prototype.openTemplateDialog=function(b){var k=this.editor.graph;k.isEnabled()&&!k.isCellLocked(k.getDefaultParent())&&(b=new NewDialog(this,null,!1,mxUtils.bind(this,function(m){this.hideDialog();if(null!=m){var f=this.editor.graph.getFreeInsertPoint(!0);k.setSelectionCells(this.importXml(m,Math.max(f.x,20),Math.max(f.y,20),!0,null,null,!0));k.scrollCellToVisible(k.getSelectionCell())}}),null,null,null,null,null,null,null,null,null,null,!1,mxResources.get("insert"),null,null,b),this.showDialog(b.container,+App.prototype.openTemplateDialog=function(b){var k=this.editor.graph;k.isEnabled()&&!k.isCellLocked(k.getDefaultParent())&&(b=new NewDialog(this,null,!1,mxUtils.bind(this,function(m){this.hideDialog();if(null!=m){var g=this.editor.graph.getFreeInsertPoint(!0);k.setSelectionCells(this.importXml(m,Math.max(g.x,20),Math.max(g.y,20),!0,null,null,!0));k.scrollCellToVisible(k.getSelectionCell())}}),null,null,null,null,null,null,null,null,null,null,!1,mxResources.get("insert"),null,null,b),this.showDialog(b.container,620,460,!0,!0,mxUtils.bind(this,function(){this.sidebar.hideTooltip()})),b.init())};App.prototype.loadDraft=function(b,k){this.createFile(this.defaultFilename,b,null,null,mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){var m=this.getCurrentFile();null!=m&&(m.fileChanged(),null!=k&&k())}),0)}),null,null,!0)};-App.prototype.filterDrafts=function(b,k,m){function f(){m(q)}var q=[];try{this.getDatabaseItems(mxUtils.bind(this,function(u){EditorUi.debug("App.filterDrafts",[this],"items",u);for(var x=0;x<u.length;x++)try{var z=u[x].key;if(null!=z&&".draft_"==z.substring(0,7)){var F=JSON.parse(u[x].data);null!=F&&"draft"==F.type&&F.aliveCheck!=k&&(null==b&&null==F.fileObject||null!=F.fileObject&&F.fileObject.path==b)&&(this.isDiagramDataEmpty(F.data)?this.removeDatabaseItem(z):(F.key=z,q.push(F)))}}catch(J){}f()}),-f)}catch(u){f()}};+App.prototype.filterDrafts=function(b,k,m){function g(){m(q)}var q=[];try{this.getDatabaseItems(mxUtils.bind(this,function(u){EditorUi.debug("App.filterDrafts",[this],"items",u);for(var x=0;x<u.length;x++)try{var z=u[x].key;if(null!=z&&".draft_"==z.substring(0,7)){var F=JSON.parse(u[x].data);null!=F&&"draft"==F.type&&F.aliveCheck!=k&&(null==b&&null==F.fileObject||null!=F.fileObject&&F.fileObject.path==b)&&(this.isDiagramDataEmpty(F.data)?this.removeDatabaseItem(z):(F.key=z,q.push(F)))}}catch(J){}g()}),+g)}catch(u){g()}};App.prototype.checkDrafts=function(){try{var b=Editor.guid();localStorage.setItem(".draft-alive-check",b);window.setTimeout(mxUtils.bind(this,function(){localStorage.removeItem(".draft-alive-check");this.filterDrafts(null,b,mxUtils.bind(this,function(k){if(1==k.length)this.loadDraft(k[0].data,mxUtils.bind(this,function(){this.removeDatabaseItem(k[0].key)}));else if(1<k.length){var m=new Date(k[0].modified);m=new DraftDialog(this,1<k.length?mxResources.get("selectDraft"):mxResources.get("draftFound",[m.toLocaleDateString()+-" "+m.toLocaleTimeString()]),1<k.length?null:k[0].data,mxUtils.bind(this,function(f){this.hideDialog();f=""!=f&&null!=k[f]?f:0;this.loadDraft(k[f].data,mxUtils.bind(this,function(){this.removeDatabaseItem(k[f].key)}))}),mxUtils.bind(this,function(f,q){this.removeDatabaseItem(k[""!=f?f:0].key);null!=q&&q()}),null,null,null,1<k.length?k:null);this.showDialog(m.container,640,480,!0,!1,mxUtils.bind(this,function(f){if(f)if("0"!=urlParams.splash)this.loadFile();else try{this.createFile(this.defaultFilename,-this.getFileData(),null,null,null,null,null,!0)}catch(q){this.handleError(q)}}));m.init()}else if("0"!=urlParams.splash)this.loadFile();else try{this.createFile(this.defaultFilename,this.getFileData(),null,null,null,null,null,!0)}catch(f){}}))}),0)}catch(k){}};+" "+m.toLocaleTimeString()]),1<k.length?null:k[0].data,mxUtils.bind(this,function(g){this.hideDialog();g=""!=g&&null!=k[g]?g:0;this.loadDraft(k[g].data,mxUtils.bind(this,function(){this.removeDatabaseItem(k[g].key)}))}),mxUtils.bind(this,function(g,q){this.removeDatabaseItem(k[""!=g?g:0].key);null!=q&&q()}),null,null,null,1<k.length?k:null);this.showDialog(m.container,640,480,!0,!1,mxUtils.bind(this,function(g){if(g)if("0"!=urlParams.splash)this.loadFile();else try{this.createFile(this.defaultFilename,+this.getFileData(),null,null,null,null,null,!0)}catch(q){this.handleError(q)}}));m.init()}else if("0"!=urlParams.splash)this.loadFile();else try{this.createFile(this.defaultFilename,this.getFileData(),null,null,null,null,null,!0)}catch(g){}}))}),0)}catch(k){}};App.prototype.showSplash=function(b){if("1"!=urlParams.noFileMenu){var k=this.getServiceCount(!0),m=mxUtils.bind(this,function(){var q=new SplashDialog(this);this.showDialog(q.container,340,mxClient.IS_CHROMEAPP||EditorUi.isElectronApp?200:230,!0,!0,mxUtils.bind(this,function(u,x){!u&&!x||mxClient.IS_CHROMEAPP||(u=Editor.useLocalStorage,this.createFile(this.defaultFilename+(EditorUi.isElectronApp?".drawio":""),null,null,null,null,null,null,"1"!=urlParams.local),Editor.useLocalStorage=u)}),!0)});if(this.editor.isChromelessView())this.handleError({message:mxResources.get("noFileSelected")},-mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){this.showSplash()}));else if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=this.mode&&!b)null==urlParams.create&&m();else{b=4==k?2:3;var f=new StorageDialog(this,mxUtils.bind(this,function(){this.hideDialog();m()}),b);this.showDialog(f.container,3>b?200:300,3<k?320:210,!0,!1)}}};-App.prototype.addLanguageMenu=function(b,k,m){var f=null;null!=this.menus.get("language")&&(f=document.createElement("div"),this.setElementTitle(f,"language"),f.className="geAdaptiveAsset",f.style.backgroundImage="url("+Editor.globeImage+")",f.style.backgroundPosition="right center",f.style.backgroundRepeat="no-repeat",f.style.backgroundSize="19px 19px",f.style.width="19px",f.style.height="19px",mxUtils.setOpacity(f,40),f.style.position="absolute",f.style.cursor="pointer",f.style.bottom="20px",f.style.right=-null!=m?m:"22px",k&&(f.style.direction="rtl",f.style.textAlign="right",f.style.right=null!=m?m:"24px",k=document.createElement("span"),k.style.display="inline-block",k.style.fontSize="12px",k.style.margin="2px 24px 0 0",k.style.userSelect="none",mxUtils.write(k,mxResources.get("language")),f.appendChild(k),k.className="geAdaptiveAsset"),mxEvent.addListener(f,"click",mxUtils.bind(this,function(q){this.editor.graph.popupMenuHandler.hideMenu();var u=new mxPopupMenu(this.menus.get("language").funct);-u.smartSeparators=!0;u.showDisabled=!0;u.autoExpand=!0;u.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(u,arguments);u.destroy()});var x=mxUtils.getOffset(f);u.popup(x.x,x.y+f.offsetHeight,null,q);this.setCurrentMenu(u)})),b.appendChild(f));return f};-App.prototype.loadFileSystemEntry=function(b,k,m){m=null!=m?m:mxUtils.bind(this,function(f){this.handleError(f)});try{b.getFile().then(mxUtils.bind(this,function(f){var q=new FileReader;q.onload=mxUtils.bind(this,function(u){var x=mxUtils.bind(this,function(z){try{if(null!=k){var F=u.target.result;"image/png"==f.type&&(F=this.extractGraphModelFromPng(F));k(new LocalFile(this,F,f.name,null,b,f,z))}else this.openFileHandle(u.target.result,f.name,f,!1,b,z)}catch(J){m(J)}});b.queryPermission?b.queryPermission({mode:"readwrite"}).then(mxUtils.bind(this,-function(z){x("denied"!==z)})):b.createWritable().then(mxUtils.bind(this,function(){x(!0)}),mxUtils.bind(this,function(z){x(!1)}))});q.onerror=m;"image"!==f.type.substring(0,5)&&"application/pdf"!==f.type||"image/svg"===f.type.substring(0,9)?q.readAsText(f):q.readAsDataURL(f)}),m)}catch(f){m(f)}};-App.prototype.createFileSystemOptions=function(b){var k=[],m=null;if(null!=b){var f=b.lastIndexOf(".");0<f&&(m=b.substring(f+1))}for(f=0;f<this.editor.diagramFileTypes.length;f++){var q={description:mxResources.get(this.editor.diagramFileTypes[f].description)+(mxClient.IS_MAC?" (."+this.editor.diagramFileTypes[f].extension+")":""),accept:{}};q.accept[this.editor.diagramFileTypes[f].mimeType]=["."+this.editor.diagramFileTypes[f].extension];this.editor.diagramFileTypes[f].extension==m?k.splice(0,0,-q):this.editor.diagramFileTypes[f].extension==m?k.splice(0,0,q):k.push(q)}return{types:k,suggestedName:b}};App.prototype.showSaveFilePicker=function(b,k,m){k=null!=k?k:mxUtils.bind(this,function(f){"AbortError"!=f.name&&this.handleError(f)});m=null!=m?m:this.createFileSystemOptions();window.showSaveFilePicker(m).then(mxUtils.bind(this,function(f){null!=f&&f.getFile().then(mxUtils.bind(this,function(q){b(f,q)}),k)}),k)};+mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){this.showSplash()}));else if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=this.mode&&!b)null==urlParams.create&&m();else{b=4==k?2:3;var g=new StorageDialog(this,mxUtils.bind(this,function(){this.hideDialog();m()}),b);this.showDialog(g.container,3>b?200:300,3<k?320:210,!0,!1)}}};+App.prototype.addLanguageMenu=function(b,k,m){var g=null;null!=this.menus.get("language")&&(g=document.createElement("div"),this.setElementTitle(g,"language"),g.className="geAdaptiveAsset",g.style.backgroundImage="url("+Editor.globeImage+")",g.style.backgroundPosition="right center",g.style.backgroundRepeat="no-repeat",g.style.backgroundSize="19px 19px",g.style.width="19px",g.style.height="19px",mxUtils.setOpacity(g,40),g.style.position="absolute",g.style.cursor="pointer",g.style.bottom="20px",g.style.right=+null!=m?m:"22px",k&&(g.style.direction="rtl",g.style.textAlign="right",g.style.right=null!=m?m:"24px",k=document.createElement("span"),k.style.display="inline-block",k.style.fontSize="12px",k.style.margin="2px 24px 0 0",k.style.userSelect="none",mxUtils.write(k,mxResources.get("language")),g.appendChild(k),k.className="geAdaptiveAsset"),mxEvent.addListener(g,"click",mxUtils.bind(this,function(q){this.editor.graph.popupMenuHandler.hideMenu();var u=new mxPopupMenu(this.menus.get("language").funct);+u.smartSeparators=!0;u.showDisabled=!0;u.autoExpand=!0;u.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(u,arguments);u.destroy()});var x=mxUtils.getOffset(g);u.popup(x.x,x.y+g.offsetHeight,null,q);this.setCurrentMenu(u)})),b.appendChild(g));return g};+App.prototype.loadFileSystemEntry=function(b,k,m){m=null!=m?m:mxUtils.bind(this,function(g){this.handleError(g)});try{b.getFile().then(mxUtils.bind(this,function(g){var q=new FileReader;q.onload=mxUtils.bind(this,function(u){var x=mxUtils.bind(this,function(z){try{if(null!=k){var F=u.target.result;"image/png"==g.type&&(F=this.extractGraphModelFromPng(F));k(new LocalFile(this,F,g.name,null,b,g,z))}else this.openFileHandle(u.target.result,g.name,g,!1,b,z)}catch(J){m(J)}});b.queryPermission?b.queryPermission({mode:"readwrite"}).then(mxUtils.bind(this,+function(z){x("denied"!==z)})):b.createWritable().then(mxUtils.bind(this,function(){x(!0)}),mxUtils.bind(this,function(z){x(!1)}))});q.onerror=m;"image"!==g.type.substring(0,5)&&"application/pdf"!==g.type||"image/svg"===g.type.substring(0,9)?q.readAsText(g):q.readAsDataURL(g)}),m)}catch(g){m(g)}};+App.prototype.createFileSystemOptions=function(b){var k=[],m=null;if(null!=b){var g=b.lastIndexOf(".");0<g&&(m=b.substring(g+1))}for(g=0;g<this.editor.diagramFileTypes.length;g++){var q={description:mxResources.get(this.editor.diagramFileTypes[g].description)+(mxClient.IS_MAC?" (."+this.editor.diagramFileTypes[g].extension+")":""),accept:{}};q.accept[this.editor.diagramFileTypes[g].mimeType]=["."+this.editor.diagramFileTypes[g].extension];this.editor.diagramFileTypes[g].extension==m?k.splice(0,0,+q):this.editor.diagramFileTypes[g].extension==m?k.splice(0,0,q):k.push(q)}return{types:k,suggestedName:b}};App.prototype.showSaveFilePicker=function(b,k,m){k=null!=k?k:mxUtils.bind(this,function(g){"AbortError"!=g.name&&this.handleError(g)});m=null!=m?m:this.createFileSystemOptions();window.showSaveFilePicker(m).then(mxUtils.bind(this,function(g){null!=g&&g.getFile().then(mxUtils.bind(this,function(q){b(g,q)}),k)}),k)};App.prototype.pickFile=function(b){try{if(b=null!=b?b:this.mode,b==App.MODE_GOOGLE)null!=this.drive&&"undefined"!=typeof google&&"undefined"!=typeof google.picker?this.drive.pickFile():this.openLink("https://drive.google.com");else{var k=this.getServiceForName(b);if(null!=k)k.pickFile();else if(b==App.MODE_DEVICE&&EditorUi.nativeFileSupport)window.showOpenFilePicker().then(mxUtils.bind(this,function(x){null!=x&&0<x.length&&this.spinner.spin(document.body,mxResources.get("loading"))&&this.loadFileSystemEntry(x[0])}),mxUtils.bind(this,function(x){"AbortError"!=x.name&&this.handleError(x)}));else if(b==App.MODE_DEVICE&&Graph.fileSupport){if(null==this.openFileInputElt){var m=document.createElement("input");m.setAttribute("type","file");mxEvent.addListener(m,"change",mxUtils.bind(this,function(){null!=m.files&&(this.openFiles(m.files),m.type="",m.type="file",m.value="")}));m.style.display="none";document.body.appendChild(m);this.openFileInputElt=m}this.openFileInputElt.click()}else{this.hideDialog();window.openNew=-null!=this.getCurrentFile()&&!this.isDiagramEmpty();window.baseUrl=this.getUrl();window.openKey="open";window.listBrowserFiles=mxUtils.bind(this,function(x,z){StorageFile.listFiles(this,"F",x,z)});window.openBrowserFile=mxUtils.bind(this,function(x,z,F){StorageFile.getFileContent(this,x,z,F)});window.deleteBrowserFile=mxUtils.bind(this,function(x,z,F){StorageFile.deleteFile(this,x,z,F)});var f=Editor.useLocalStorage;Editor.useLocalStorage=b==App.MODE_BROWSER;this.openFile();window.openFile.setConsumer(mxUtils.bind(this,+null!=this.getCurrentFile()&&!this.isDiagramEmpty();window.baseUrl=this.getUrl();window.openKey="open";window.listBrowserFiles=mxUtils.bind(this,function(x,z){StorageFile.listFiles(this,"F",x,z)});window.openBrowserFile=mxUtils.bind(this,function(x,z,F){StorageFile.getFileContent(this,x,z,F)});window.deleteBrowserFile=mxUtils.bind(this,function(x,z,F){StorageFile.deleteFile(this,x,z,F)});var g=Editor.useLocalStorage;Editor.useLocalStorage=b==App.MODE_BROWSER;this.openFile();window.openFile.setConsumer(mxUtils.bind(this,function(x,z,F){var J=mxUtils.bind(this,function(){Editor.useCanvasForExport||".png"!=z.substring(z.length-4)||(z=z.substring(0,z.length-4)+".drawio");this.fileLoaded(b==App.MODE_BROWSER?new StorageFile(this,x,z):new LocalFile(this,x,z,F));var D=this.getCurrentFile();F&&null!=D&&D.fileChanged()}),H=this.getCurrentFile();null!=H&&H.isModified()?this.confirm(mxResources.get("allChangesLost"),null,J,mxResources.get("cancel"),mxResources.get("discardChanges")):J()}));var q=this.dialog,u=q.close;this.dialog.close=-mxUtils.bind(this,function(x){Editor.useLocalStorage=f;u.apply(q,arguments);null==this.getCurrentFile()&&this.showSplash()})}}}catch(x){this.handleError(x)}};+mxUtils.bind(this,function(x){Editor.useLocalStorage=g;u.apply(q,arguments);null==this.getCurrentFile()&&this.showSplash()})}}}catch(x){this.handleError(x)}};App.prototype.pickLibrary=function(b){b=null!=b?b:this.mode;var k=mxUtils.bind(this,function(u){try{this.loadLibrary(u);this.showSidebar();try{this.sidebar.palettes[u.getHash()][0].scrollIntoView({behavior:"smooth"})}catch(x){}}catch(x){this.handleError(x,mxResources.get("errorLoadingFile"))}});if(b==App.MODE_GOOGLE||b==App.MODE_DROPBOX||b==App.MODE_ONEDRIVE||b==App.MODE_GITHUB||b==App.MODE_GITLAB||b==App.MODE_TRELLO){var m=b==App.MODE_GOOGLE?this.drive:b==App.MODE_ONEDRIVE?this.oneDrive:b==App.MODE_GITHUB?-this.gitHub:b==App.MODE_GITLAB?this.gitLab:b==App.MODE_TRELLO?this.trello:this.dropbox;null!=m&&m.pickLibrary(mxUtils.bind(this,function(u,x){null!=x?k(x):this.spinner.spin(document.body,mxResources.get("loading"))&&m.getLibrary(u,mxUtils.bind(this,function(z){this.spinner.stop();k(z)}),mxUtils.bind(this,function(z){this.handleError(z,null!=z?mxResources.get("errorLoadingFile"):null)}))}))}else if(b==App.MODE_DEVICE&&Graph.fileSupport){if(null==this.libFileInputElt){var f=document.createElement("input");-f.setAttribute("type","file");mxEvent.addListener(f,"change",mxUtils.bind(this,function(){if(null!=f.files){for(var u=0;u<f.files.length;u++)mxUtils.bind(this,function(x){var z=new FileReader;z.onload=mxUtils.bind(this,function(F){k(new LocalLibrary(this,F.target.result,x.name))});z.readAsText(x)})(f.files[u]);f.type="";f.type="file";f.value=""}}));f.style.display="none";document.body.appendChild(f);this.libFileInputElt=f}this.libFileInputElt.click()}else{window.openNew=!1;window.openKey="open";window.listBrowserFiles=+this.gitHub:b==App.MODE_GITLAB?this.gitLab:b==App.MODE_TRELLO?this.trello:this.dropbox;null!=m&&m.pickLibrary(mxUtils.bind(this,function(u,x){null!=x?k(x):this.spinner.spin(document.body,mxResources.get("loading"))&&m.getLibrary(u,mxUtils.bind(this,function(z){this.spinner.stop();k(z)}),mxUtils.bind(this,function(z){this.handleError(z,null!=z?mxResources.get("errorLoadingFile"):null)}))}))}else if(b==App.MODE_DEVICE&&Graph.fileSupport){if(null==this.libFileInputElt){var g=document.createElement("input");+g.setAttribute("type","file");mxEvent.addListener(g,"change",mxUtils.bind(this,function(){if(null!=g.files){for(var u=0;u<g.files.length;u++)mxUtils.bind(this,function(x){var z=new FileReader;z.onload=mxUtils.bind(this,function(F){k(new LocalLibrary(this,F.target.result,x.name))});z.readAsText(x)})(g.files[u]);g.type="";g.type="file";g.value=""}}));g.style.display="none";document.body.appendChild(g);this.libFileInputElt=g}this.libFileInputElt.click()}else{window.openNew=!1;window.openKey="open";window.listBrowserFiles=mxUtils.bind(this,function(u,x){StorageFile.listFiles(this,"L",u,x)});window.openBrowserFile=mxUtils.bind(this,function(u,x,z){StorageFile.getFileContent(this,u,x,z)});window.deleteBrowserFile=mxUtils.bind(this,function(u,x,z){StorageFile.deleteFile(this,u,x,z)});var q=Editor.useLocalStorage;Editor.useLocalStorage=b==App.MODE_BROWSER;window.openFile=new OpenFile(mxUtils.bind(this,function(u){this.hideDialog(u)}));window.openFile.setConsumer(mxUtils.bind(this,function(u,x){k(b==App.MODE_BROWSER?new StorageLibrary(this,u,x):new LocalLibrary(this,u,x))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,function(){Editor.useLocalStorage=q;window.openFile=null})}};-App.prototype.saveLibrary=function(b,k,m,f,q,u,x){try{f=null!=f?f:this.mode;q=null!=q?q:!1;u=null!=u?u:!1;var z=this.createLibraryDataFromImages(k),F=mxUtils.bind(this,function(D){this.spinner.stop();null!=x&&x();this.handleError(D,null!=D?mxResources.get("errorSavingFile"):null)});null==m&&f==App.MODE_DEVICE&&(m=new LocalLibrary(this,z,b));if(null==m)this.pickFolder(f,mxUtils.bind(this,function(D){f==App.MODE_GOOGLE&&null!=this.drive&&this.spinner.spin(document.body,mxResources.get("inserting"))?-this.drive.insertFile(b,z,D,mxUtils.bind(this,function(c){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(c,k)}),F,this.drive.libraryMimeType):f==App.MODE_GITHUB&&null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.gitHub.insertLibrary(b,z,mxUtils.bind(this,function(c){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(c,k)}),F,D):f==App.MODE_GITLAB&&null!=this.gitLab&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.gitLab.insertLibrary(b,-z,mxUtils.bind(this,function(c){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(c,k)}),F,D):f==App.MODE_TRELLO&&null!=this.trello&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.trello.insertLibrary(b,z,mxUtils.bind(this,function(c){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(c,k)}),F,D):f==App.MODE_DROPBOX&&null!=this.dropbox&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.dropbox.insertLibrary(b,z,mxUtils.bind(this,function(c){this.spinner.stop();-this.hideDialog(!0);this.libraryLoaded(c,k)}),F,D):f==App.MODE_ONEDRIVE&&null!=this.oneDrive&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.oneDrive.insertLibrary(b,z,mxUtils.bind(this,function(c){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(c,k)}),F,D):f==App.MODE_BROWSER?StorageFile.doInsertFile(new StorageLibrary(this,z,b),mxUtils.bind(this,function(c){this.hideDialog(!0);this.libraryLoaded(c,k)}),F):this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})}));+App.prototype.saveLibrary=function(b,k,m,g,q,u,x){try{g=null!=g?g:this.mode;q=null!=q?q:!1;u=null!=u?u:!1;var z=this.createLibraryDataFromImages(k),F=mxUtils.bind(this,function(D){this.spinner.stop();null!=x&&x();this.handleError(D,null!=D?mxResources.get("errorSavingFile"):null)});null==m&&g==App.MODE_DEVICE&&(m=new LocalLibrary(this,z,b));if(null==m)this.pickFolder(g,mxUtils.bind(this,function(D){g==App.MODE_GOOGLE&&null!=this.drive&&this.spinner.spin(document.body,mxResources.get("inserting"))?+this.drive.insertFile(b,z,D,mxUtils.bind(this,function(c){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(c,k)}),F,this.drive.libraryMimeType):g==App.MODE_GITHUB&&null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.gitHub.insertLibrary(b,z,mxUtils.bind(this,function(c){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(c,k)}),F,D):g==App.MODE_GITLAB&&null!=this.gitLab&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.gitLab.insertLibrary(b,+z,mxUtils.bind(this,function(c){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(c,k)}),F,D):g==App.MODE_TRELLO&&null!=this.trello&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.trello.insertLibrary(b,z,mxUtils.bind(this,function(c){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(c,k)}),F,D):g==App.MODE_DROPBOX&&null!=this.dropbox&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.dropbox.insertLibrary(b,z,mxUtils.bind(this,function(c){this.spinner.stop();+this.hideDialog(!0);this.libraryLoaded(c,k)}),F,D):g==App.MODE_ONEDRIVE&&null!=this.oneDrive&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.oneDrive.insertLibrary(b,z,mxUtils.bind(this,function(c){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(c,k)}),F,D):g==App.MODE_BROWSER?StorageFile.doInsertFile(new StorageLibrary(this,z,b),mxUtils.bind(this,function(c){this.hideDialog(!0);this.libraryLoaded(c,k)}),F):this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})}));else if(q||this.spinner.spin(document.body,mxResources.get("saving"))){m.setData(z);var J=mxUtils.bind(this,function(){m.save(!0,mxUtils.bind(this,function(D){this.spinner.stop();this.hideDialog(!0);u||this.libraryLoaded(m,k);null!=x&&x()}),F)});if(b!=m.getTitle()){var H=m.getHash();m.rename(b,mxUtils.bind(this,function(D){m.constructor!=LocalLibrary&&H!=m.getHash()&&(mxSettings.removeCustomLibrary(H),mxSettings.addCustomLibrary(m.getHash()));this.removeLibrarySidebar(H);J()}),F)}else J()}}catch(D){this.handleError(D)}};-App.prototype.saveFile=function(b,k){var m=this.getCurrentFile(),f=this.mode;if(null!=m){var q=mxUtils.bind(this,function(){EditorUi.enableDrafts&&m.removeDraft();this.getCurrentFile()==m||m.isModified()||(m.getMode()!=App.MODE_DEVICE?this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus(mxUtils.htmlEntities(mxResources.get("allChangesSaved")))})):this.clearStatus());null!=k&&k()});if(b||null==m.getTitle()||null!=m.invalidFileHandle||null==this.mode)if(null!=m&&m.constructor==LocalFile&&+App.prototype.saveFile=function(b,k){var m=this.getCurrentFile(),g=this.mode;if(null!=m){var q=mxUtils.bind(this,function(){EditorUi.enableDrafts&&m.removeDraft();this.getCurrentFile()==m||m.isModified()||(m.getMode()!=App.MODE_DEVICE?this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus(mxUtils.htmlEntities(mxResources.get("allChangesSaved")))})):this.clearStatus());null!=k&&k()});if(b||null==m.getTitle()||null!=m.invalidFileHandle||null==this.mode)if(null!=m&&m.constructor==LocalFile&&null!=m.fileHandle)this.showSaveFilePicker(mxUtils.bind(this,function(F,J){m.invalidFileHandle=null;m.fileHandle=F;m.title=J.name;m.desc=J;m.editable=null;this.save(J.name,q)}),null,this.createFileSystemOptions(m.getTitle()));else{var u=null!=m.getTitle()?m.getTitle():this.defaultFilename,x=mxUtils.bind(this,function(F,J,H,D){if(null!=F&&0<F.length)if(/(\.pdf)$/i.test(F))this.confirm(mxResources.get("didYouMeanToExportToPdf"),mxUtils.bind(this,function(){this.hideDialog();this.actions.get("exportPdf").funct()}),-mxUtils.bind(this,function(){H.value=F.split(".").slice(0,-1).join(".");H.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?H.select():document.execCommand("selectAll",!1,null)}),mxResources.get("yes"),mxResources.get("no"));else if(this.hideDialog(),null==f&&J==App.MODE_DEVICE)null!=m&&EditorUi.nativeFileSupport?this.showSaveFilePicker(mxUtils.bind(this,function(g,l){m.fileHandle=g;m.mode=App.MODE_DEVICE;m.title=l.name;m.desc=l;this.setMode(App.MODE_DEVICE);this.save(l.name,q)}),mxUtils.bind(this,-function(g){"AbortError"!=g.name&&this.handleError(g)}),this.createFileSystemOptions(F)):(this.setMode(App.MODE_DEVICE),this.save(F,q));else if("download"==J)(new LocalFile(this,null,F)).save();else if("_blank"==J)window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(this.getFileData(!0)),this.openLink(this.getUrl(window.location.pathname),null,!0);else if(b||f!=J){var c=mxUtils.bind(this,function(g){try{var l=this.editor.graph,n=l.getSelectionCells(),r=l.getViewState(),-t=this.currentPage,v=this.getCurrentFile(),B=null==this.mode||null==v||null==v.mode;this.createFile(F,this.getFileData(/(\.xml)$/i.test(F)||0>F.indexOf(".")||/(\.drawio)$/i.test(F),/(\.svg)$/i.test(F),/(\.html)$/i.test(F)),null,J,q,B,g,null,null,mxUtils.bind(this,function(){this.restoreViewState(t,r,n)}))}catch(E){this.handleError(E)}});null!=D?c(D):this.pickFolder(J,c)}else null!=J&&this.save(F,q)}),z=!mxClient.IS_IOS||!navigator.standalone;u=new SaveDialog(this,u,mxUtils.bind(this,function(F,J,+mxUtils.bind(this,function(){H.value=F.split(".").slice(0,-1).join(".");H.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?H.select():document.execCommand("selectAll",!1,null)}),mxResources.get("yes"),mxResources.get("no"));else if(this.hideDialog(),null==g&&J==App.MODE_DEVICE)null!=m&&EditorUi.nativeFileSupport?this.showSaveFilePicker(mxUtils.bind(this,function(f,l){m.fileHandle=f;m.mode=App.MODE_DEVICE;m.title=l.name;m.desc=l;this.setMode(App.MODE_DEVICE);this.save(l.name,q)}),mxUtils.bind(this,+function(f){"AbortError"!=f.name&&this.handleError(f)}),this.createFileSystemOptions(F)):(this.setMode(App.MODE_DEVICE),this.save(F,q));else if("download"==J)(new LocalFile(this,null,F)).save();else if("_blank"==J)window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(this.getFileData(!0)),this.openLink(this.getUrl(window.location.pathname),null,!0);else if(b||g!=J){var c=mxUtils.bind(this,function(f){try{var l=this.editor.graph,n=l.getSelectionCells(),r=l.getViewState(),+t=this.currentPage,v=this.getCurrentFile(),B=null==this.mode||null==v||null==v.mode;this.createFile(F,this.getFileData(/(\.xml)$/i.test(F)||0>F.indexOf(".")||/(\.drawio)$/i.test(F),/(\.svg)$/i.test(F),/(\.html)$/i.test(F)),null,J,q,B,f,null,null,mxUtils.bind(this,function(){this.restoreViewState(t,r,n)}))}catch(E){this.handleError(E)}});null!=D?c(D):this.pickFolder(J,c)}else null!=J&&this.save(F,q)}),z=!mxClient.IS_IOS||!navigator.standalone;u=new SaveDialog(this,u,mxUtils.bind(this,function(F,J,H){try{x(F.value,J,F,H),this.hideDialog()}catch(D){this.handleError(D)}}),z?null:["_blank"]);this.showDialog(u.container,420,162,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));u.init()}else this.save(m.getTitle(),q)}};-App.prototype.loadTemplate=function(b,k,m,f,q){var u=!1,x=b,z=null!=f?f:b;f=/\.png$/i.test(z)||/\.pdf$/i.test(z);var F=EditorUi.isVisioFilename(z);this.editor.isCorsEnabledForUrl(x)||(u=f||F,x="t="+(new Date).getTime(),x=PROXY_URL+"?url="+encodeURIComponent(b)+"&"+x+(u?"&base64=1":""));this.editor.loadUrl(x,mxUtils.bind(this,function(J){try{var H=u?window.atob?atob(J):Base64.decode(J):J;if(F||this.isVisioData(H))F||(z=q?this.isRemoteVisioData(H)?"raw.vss":"raw.vssx":this.isRemoteVisioData(H)?"raw.vsd":+App.prototype.loadTemplate=function(b,k,m,g,q){var u=!1,x=b,z=null!=g?g:b;g=/\.png$/i.test(z)||/\.pdf$/i.test(z);var F=EditorUi.isVisioFilename(z);this.editor.isCorsEnabledForUrl(x)||(u=g||F,x="t="+(new Date).getTime(),x=PROXY_URL+"?url="+encodeURIComponent(b)+"&"+x+(u?"&base64=1":""));this.editor.loadUrl(x,mxUtils.bind(this,function(J){try{var H=u?window.atob?atob(J):Base64.decode(J):J;if(F||this.isVisioData(H))F||(z=q?this.isRemoteVisioData(H)?"raw.vss":"raw.vssx":this.isRemoteVisioData(H)?"raw.vsd":"raw.vsdx"),this.importVisio(this.base64ToBlob(J.substring(J.indexOf(",")+1)),function(D){k(D)},m,z);else if(this.isGliffyData(H,z))this.importGliffy(H,mxUtils.bind(this,function(D){"<mxGraphModel"==D.substring(0,13)?k(D):m()}),m,b);else if(this.isLucidChartData(H))this.convertLucidChart(H,mxUtils.bind(this,function(D){k(D)}),mxUtils.bind(this,function(D){m(D)}));else{if(/(\.png)($|\?)/i.test(z)||Editor.isPngData(H))H=Editor.extractGraphModelFromPng(J);k(H)}}catch(D){m(D)}}),m,/(\.png)($|\?)/i.test(z)||F,null,null,u)};App.prototype.getModeForChar=function(b){return"G"==b?App.MODE_GOOGLE:"D"==b?App.MODE_DROPBOX:"W"==b?App.MODE_ONEDRIVE:"M"==b?App.MODE_M365:"H"==b?App.MODE_GITHUB:"A"==b?App.MODE_GITLAB:"T"==b?App.MODE_TRELLO:null};App.prototype.isModeEnabled=function(b){return b==App.MODE_GOOGLE?"function"===typeof window.DriveClient&&("1"!=urlParams.embed&&"0"!=urlParams.gapi||"1"==urlParams.embed&&"1"==urlParams.gapi)&&mxClient.IS_SVG&&isLocalStorage&&(null==document.documentMode||10<=document.documentMode):b==App.MODE_GITHUB?null!=this.gitHub:b==App.MODE_GITLAB?null!=this.gitLab:b==App.MODE_DROPBOX?"function"===typeof window.DropboxClient&&("1"!=urlParams.embed&&"0"!=urlParams.db||"1"==urlParams.embed&&"1"==urlParams.db)&&mxClient.IS_SVG&&(null==document.documentMode||9<document.documentMode):b==App.MODE_ONEDRIVE?"function"===typeof window.OneDriveClient&&("www.draw.io"==window.location.hostname||"test.draw.io"==window.location.hostname||"drive.draw.io"==window.location.hostname||"app.diagrams.net"==window.location.hostname)&&("1"!=urlParams.embed&&"0"!=urlParams.od||"1"==urlParams.embed&&"1"==urlParams.od)&&!mxClient.IS_IOS&&(0>navigator.userAgent.indexOf("MSIE")||10<=document.documentMode):b==App.MODE_TRELLO?"function"===typeof window.TrelloClient&&"1"==urlParams.tr&&mxClient.IS_SVG&&(null==document.documentMode||9<document.documentMode):b==App.MODE_M365?null!=this.m365:!1};App.prototype.isModeReady=function(b){return null!=this.getServiceForName(b)&&(b!=App.MODE_DROPBOX||"undefined"!==typeof Dropbox.choose)};-App.prototype.uncompressPages=function(b){if(null!=b)try{var k=mxUtils.parseXml(b);if("mxfile"==k.documentElement.nodeName){for(var m=k.documentElement.getElementsByTagName("diagram"),f=0;f<m.length;f++){var q=Editor.parseDiagramNode(m[f],!0);null!=q&&(mxUtils.setTextContent(m[f],""),m[f].appendChild(q))}b=mxUtils.getPrettyXml(k.documentElement)}}catch(u){}return b};-App.prototype.createFile=function(b,k,m,f,q,u,x,z,F,J){EditorUi.debug("App.createFile",[this],"title",[b],"data",[k],"libs",[m],"mode",[f]);f=z?null:null!=f?f:this.mode;if(null!=b&&this.spinner.spin(document.body,mxResources.get("inserting"))){k=null!=k?k:this.emptyDiagramXml;null==k||Editor.defaultCompressed||(k=this.uncompressPages(k));var H=mxUtils.bind(this,function(){this.spinner.stop()}),D=mxUtils.bind(this,function(g){H();null==g&&null==this.getCurrentFile()&&null==this.dialog?this.showSplash():-null!=g&&this.handleError(g)});try{var c=mxUtils.bind(this,function(g){H();this.fileCreated(g,m,u,q,F,J)});f==App.MODE_GOOGLE&&null!=this.drive?(null==x&&null!=this.stateArg&&null!=this.stateArg.folderId&&(x=this.stateArg.folderId),this.drive.insertFile(b,k,x,c,D)):f==App.MODE_GITHUB&&null!=this.gitHub?this.gitHub.insertFile(b,k,c,D,!1,x):f==App.MODE_GITLAB&&null!=this.gitLab?this.gitLab.insertFile(b,k,c,D,!1,x):f==App.MODE_TRELLO&&null!=this.trello?this.trello.insertFile(b,k,c,D,!1,x):f==App.MODE_DROPBOX&&-null!=this.dropbox?this.dropbox.insertFile(b,k,c,D):f==App.MODE_ONEDRIVE&&null!=this.oneDrive?this.oneDrive.insertFile(b,k,c,D,!1,x):f==App.MODE_M365&&null!=this.m365?this.m365.insertFile(b,k,c,D,!1,x):f==App.MODE_BROWSER?StorageFile.insertFile(this,b,k,c,D):!z&&f==App.MODE_DEVICE&&EditorUi.nativeFileSupport?(H(),this.showSaveFilePicker(mxUtils.bind(this,function(g,l){var n=new LocalFile(this,k,l.name,null,g,l);n.saveFile(l.name,!1,mxUtils.bind(this,function(){this.fileCreated(n,m,u,q,F,J)}),D,!0)}),-mxUtils.bind(this,function(g){"AbortError"!=g.name&&D(g)}),this.createFileSystemOptions(b))):(H(),this.fileCreated(new LocalFile(this,k,b,null==f),m,u,q,F,J))}catch(g){H(),this.handleError(g)}}};-App.prototype.fileCreated=function(b,k,m,f,q,u){EditorUi.debug("App.fileCreated",[this],"file",[b],"libs",[k],"replace",[m]);var x=window.location.pathname;null!=k&&0<k.length&&(x+="?libs="+k);null!=q&&0<q.length&&(x+="?clibs="+q);x=this.getUrl(x);b.getMode()!=App.MODE_DEVICE&&(x+="#"+b.getHash());if(this.spinner.spin(document.body,mxResources.get("inserting"))){var z=b.getData();z=0<z.length?this.editor.extractGraphModel(mxUtils.parseXml(z).documentElement,!0):null;var F=window.location.protocol+-"//"+window.location.hostname+x,J=z,H=null;null!=z&&/\.svg$/i.test(b.getTitle())&&(H=this.createTemporaryGraph(this.editor.graph.getStylesheet()),document.body.appendChild(H.container),J=this.decodeNodeIntoGraph(J,H));b.setData(this.createFileData(z,H,b,F));null!=H&&H.container.parentNode.removeChild(H.container);var D=mxUtils.bind(this,function(){this.spinner.stop()}),c=mxUtils.bind(this,function(){D();var g=this.getCurrentFile();null==m&&null!=g&&(m=!g.isModified()&&(null==g.getMode()||EditorUi.isElectronApp));-var l=mxUtils.bind(this,function(){window.openFile=null;this.fileLoaded(b,null,u);m&&this.updateStatus(mxUtils.bind(this,function(){b.addAllSavedStatus()}));null!=k&&this.sidebar.showEntries(k);if(null!=q){for(var r=[],t=q.split(";"),v=0;v<t.length;v++)r.push(decodeURIComponent(t[v]));this.loadLibraries(r)}null!=f&&f()}),n=mxUtils.bind(this,function(){m||null==g||!g.isModified()?l():this.confirm(mxResources.get("allChangesLost"),null,l,mxResources.get("cancel"),mxResources.get("discardChanges"))});-null==m||m?n():(b.constructor==LocalFile&&(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(b.getData(),b.getTitle(),null==b.getMode())),window.geOpenWindow(x,null,n))});b.constructor==LocalFile?c():b.saveFile(b.getTitle(),!1,mxUtils.bind(this,function(){c()}),mxUtils.bind(this,function(g){D();null!=g&&"AbortError"==g.name||this.handleError(g)}))}};-App.prototype.loadFile=function(b,k,m,f,q){if("1"==urlParams.openInSameWin||navigator.standalone)k=!0;this.hideDialog();var u=mxUtils.bind(this,function(){if(null==b||0==b.length)this.clearStatus(),this.fileLoaded(null);else if(this.spinner.spin(document.body,mxResources.get("loading")))if("L"==b.charAt(0))if(this.spinner.stop(),isLocalStorage){var F=mxUtils.bind(this,function(r){this.handleError(r,mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var t=this.getCurrentFile();window.location.hash=-null!=t?t.getHash():""}))});b=decodeURIComponent(b.substring(1));StorageFile.getFileContent(this,b,mxUtils.bind(this,function(r){null!=r?(this.fileLoaded(new StorageFile(this,r,b)),null!=f&&f()):F({message:mxResources.get("fileNotFound")})}),F)}else this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var r=this.getCurrentFile();window.location.hash=null!=r?r.getHash():""}));else if(null!=m)this.spinner.stop(),this.fileLoaded(m),-null!=f&&f();else if("S"==b.charAt(0))this.spinner.stop(),this.alert("[Deprecation] #S is no longer supported, go to https://app.diagrams.net/?desc="+b.substring(1).substring(0,10),mxUtils.bind(this,function(){window.location.href="https://app.diagrams.net/?desc="+b.substring(1)}));else if("create="==b.substring(0,7))try{var J=JSON.parse(decodeURIComponent(b.substring(7)));if("message"==J.type){var H=window.opener||window.parent,D=mxUtils.bind(this,function(r){EditorUi.debug("EditorUi.createMessageHandler",+App.prototype.uncompressPages=function(b){if(null!=b)try{var k=mxUtils.parseXml(b);if("mxfile"==k.documentElement.nodeName){for(var m=k.documentElement.getElementsByTagName("diagram"),g=0;g<m.length;g++){var q=Editor.parseDiagramNode(m[g],!0);null!=q&&(mxUtils.setTextContent(m[g],""),m[g].appendChild(q))}b=mxUtils.getPrettyXml(k.documentElement)}}catch(u){}return b};+App.prototype.createFile=function(b,k,m,g,q,u,x,z,F,J){EditorUi.debug("App.createFile",[this],"title",[b],"data",[k],"libs",[m],"mode",[g]);g=z?null:null!=g?g:this.mode;if(null!=b&&this.spinner.spin(document.body,mxResources.get("inserting"))){k=null!=k?k:this.emptyDiagramXml;null==k||Editor.defaultCompressed||(k=this.uncompressPages(k));var H=mxUtils.bind(this,function(){this.spinner.stop()}),D=mxUtils.bind(this,function(f){H();null==f&&null==this.getCurrentFile()&&null==this.dialog?this.showSplash():+null!=f&&this.handleError(f)});try{var c=mxUtils.bind(this,function(f){H();this.fileCreated(f,m,u,q,F,J)});g==App.MODE_GOOGLE&&null!=this.drive?(null==x&&null!=this.stateArg&&null!=this.stateArg.folderId&&(x=this.stateArg.folderId),this.drive.insertFile(b,k,x,c,D)):g==App.MODE_GITHUB&&null!=this.gitHub?this.gitHub.insertFile(b,k,c,D,!1,x):g==App.MODE_GITLAB&&null!=this.gitLab?this.gitLab.insertFile(b,k,c,D,!1,x):g==App.MODE_TRELLO&&null!=this.trello?this.trello.insertFile(b,k,c,D,!1,x):g==App.MODE_DROPBOX&&+null!=this.dropbox?this.dropbox.insertFile(b,k,c,D):g==App.MODE_ONEDRIVE&&null!=this.oneDrive?this.oneDrive.insertFile(b,k,c,D,!1,x):g==App.MODE_M365&&null!=this.m365?this.m365.insertFile(b,k,c,D,!1,x):g==App.MODE_BROWSER?StorageFile.insertFile(this,b,k,c,D):!z&&g==App.MODE_DEVICE&&EditorUi.nativeFileSupport?(H(),this.showSaveFilePicker(mxUtils.bind(this,function(f,l){var n=new LocalFile(this,k,l.name,null,f,l);n.saveFile(l.name,!1,mxUtils.bind(this,function(){this.fileCreated(n,m,u,q,F,J)}),D,!0)}),+mxUtils.bind(this,function(f){"AbortError"!=f.name&&D(f)}),this.createFileSystemOptions(b))):(H(),this.fileCreated(new LocalFile(this,k,b,null==g),m,u,q,F,J))}catch(f){H(),this.handleError(f)}}};+App.prototype.fileCreated=function(b,k,m,g,q,u){EditorUi.debug("App.fileCreated",[this],"file",[b],"libs",[k],"replace",[m]);var x=window.location.pathname;null!=k&&0<k.length&&(x+="?libs="+k);null!=q&&0<q.length&&(x+="?clibs="+q);x=this.getUrl(x);b.getMode()!=App.MODE_DEVICE&&(x+="#"+b.getHash());if(this.spinner.spin(document.body,mxResources.get("inserting"))){var z=b.getData();z=0<z.length?this.editor.extractGraphModel(mxUtils.parseXml(z).documentElement,!0):null;var F=window.location.protocol++"//"+window.location.hostname+x,J=z,H=null;null!=z&&/\.svg$/i.test(b.getTitle())&&(H=this.createTemporaryGraph(this.editor.graph.getStylesheet()),document.body.appendChild(H.container),J=this.decodeNodeIntoGraph(J,H));b.setData(this.createFileData(z,H,b,F));null!=H&&H.container.parentNode.removeChild(H.container);var D=mxUtils.bind(this,function(){this.spinner.stop()}),c=mxUtils.bind(this,function(){D();var f=this.getCurrentFile();null==m&&null!=f&&(m=!f.isModified()&&(null==f.getMode()||EditorUi.isElectronApp));+var l=mxUtils.bind(this,function(){window.openFile=null;this.fileLoaded(b,null,u);m&&this.updateStatus(mxUtils.bind(this,function(){b.addAllSavedStatus()}));null!=k&&this.sidebar.showEntries(k);if(null!=q){for(var r=[],t=q.split(";"),v=0;v<t.length;v++)r.push(decodeURIComponent(t[v]));this.loadLibraries(r)}null!=g&&g()}),n=mxUtils.bind(this,function(){m||null==f||!f.isModified()?l():this.confirm(mxResources.get("allChangesLost"),null,l,mxResources.get("cancel"),mxResources.get("discardChanges"))});+null==m||m?n():(b.constructor==LocalFile&&(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(b.getData(),b.getTitle(),null==b.getMode())),window.geOpenWindow(x,null,n))});b.constructor==LocalFile?c():b.saveFile(b.getTitle(),!1,mxUtils.bind(this,function(){c()}),mxUtils.bind(this,function(f){D();null!=f&&"AbortError"==f.name||this.handleError(f)}))}};+App.prototype.loadFile=function(b,k,m,g,q){if("1"==urlParams.openInSameWin||navigator.standalone)k=!0;this.hideDialog();var u=mxUtils.bind(this,function(){if(null==b||0==b.length)this.clearStatus(),this.fileLoaded(null);else if(this.spinner.spin(document.body,mxResources.get("loading")))if("L"==b.charAt(0))if(this.spinner.stop(),isLocalStorage){var F=mxUtils.bind(this,function(r){this.handleError(r,mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var t=this.getCurrentFile();window.location.hash=+null!=t?t.getHash():""}))});b=decodeURIComponent(b.substring(1));StorageFile.getFileContent(this,b,mxUtils.bind(this,function(r){null!=r?(this.fileLoaded(new StorageFile(this,r,b)),null!=g&&g()):F({message:mxResources.get("fileNotFound")})}),F)}else this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var r=this.getCurrentFile();window.location.hash=null!=r?r.getHash():""}));else if(null!=m)this.spinner.stop(),this.fileLoaded(m),+null!=g&&g();else if("S"==b.charAt(0))this.spinner.stop(),this.alert("[Deprecation] #S is no longer supported, go to https://app.diagrams.net/?desc="+b.substring(1).substring(0,10),mxUtils.bind(this,function(){window.location.href="https://app.diagrams.net/?desc="+b.substring(1)}));else if("create="==b.substring(0,7))try{var J=JSON.parse(decodeURIComponent(b.substring(7)));if("message"==J.type){var H=window.opener||window.parent,D=mxUtils.bind(this,function(r){EditorUi.debug("EditorUi.createMessageHandler",[this],"evt",[r]);if(r.source==H)try{"create"==r.data.action&&null!=r.data.data&&(mxEvent.removeListener(window,"message",D),this.executeCreateObject(r.data.data))}catch(t){c=null}});mxEvent.addListener(window,"message",D);H.postMessage(JSON.stringify({event:"ready"}),"*")}else this.executeCreateObject(J)}catch(r){this.handleError(r,mxResources.get("errorLoadingFile"))}else if("R"==b.charAt(0)){this.spinner.stop();var c=decodeURIComponent(b.substring(1));"<"!=c.charAt(0)&&(c=Graph.decompress(c));-J=new LocalFile(this,c,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);J.getHash=function(){return b};this.fileLoaded(J);null!=f&&f()}else if("E"==b.charAt(0))null==this.getCurrentFile()?this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile")):this.remoteInvoke("getDraftFileContent",null,null,mxUtils.bind(this,function(r,t){this.spinner.stop();this.fileLoaded(new EmbedFile(this,r,t));null!=f&&f()}),mxUtils.bind(this,-function(){this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"))}));else if("U"==b.charAt(0)){var g=decodeURIComponent(b.substring(1)),l=mxUtils.bind(this,function(){if("https://drive.google.com/uc?id="!=g.substring(0,31)||null==this.drive&&"function"!==typeof window.DriveClient)return!1;this.hideDialog();var r=mxUtils.bind(this,function(){this.spinner.stop();if(null!=this.drive){var t=g.substring(31,g.lastIndexOf("&ex"));this.loadFile("G"+-t,k,null,mxUtils.bind(this,function(){var v=this.getCurrentFile();null!=v&&this.editor.chromeless&&!this.editor.editable&&(v.getHash=function(){return"G"+t},window.location.hash="#"+v.getHash());null!=f&&f()}));return!0}return!1});!r()&&this.spinner.spin(document.body,mxResources.get("loading"))&&this.addListener("clientLoaded",r);return!0});this.loadTemplate(g,mxUtils.bind(this,function(r){this.spinner.stop();if(null!=r&&0<r.length){var t=this.defaultFilename;if(null==urlParams.title&&"1"!=urlParams.notitle){var v=-g,B=g.lastIndexOf("."),E=v.lastIndexOf("/");B>E&&0<E&&(v=v.substring(E+1,B),B=g.substring(B),Editor.useCanvasForExport||".png"!=B||(B=".drawio"),".svg"===B||".xml"===B||".html"===B||".png"===B||".drawio"===B)&&(t=v+B)}r=new LocalFile(this,r,null!=urlParams.title?decodeURIComponent(urlParams.title):t,!0);r.getHash=function(){return b};this.fileLoaded(r,!0)?null!=f&&f():l()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}else l()||this.handleError({message:mxResources.get("fileNotFound")},+J=new LocalFile(this,c,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);J.getHash=function(){return b};this.fileLoaded(J);null!=g&&g()}else if("E"==b.charAt(0))null==this.getCurrentFile()?this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile")):this.remoteInvoke("getDraftFileContent",null,null,mxUtils.bind(this,function(r,t){this.spinner.stop();this.fileLoaded(new EmbedFile(this,r,t));null!=g&&g()}),mxUtils.bind(this,+function(){this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"))}));else if("U"==b.charAt(0)){var f=decodeURIComponent(b.substring(1)),l=mxUtils.bind(this,function(){if("https://drive.google.com/uc?id="!=f.substring(0,31)||null==this.drive&&"function"!==typeof window.DriveClient)return!1;this.hideDialog();var r=mxUtils.bind(this,function(){this.spinner.stop();if(null!=this.drive){var t=f.substring(31,f.lastIndexOf("&ex"));this.loadFile("G"++t,k,null,mxUtils.bind(this,function(){var v=this.getCurrentFile();null!=v&&this.editor.chromeless&&!this.editor.editable&&(v.getHash=function(){return"G"+t},window.location.hash="#"+v.getHash());null!=g&&g()}));return!0}return!1});!r()&&this.spinner.spin(document.body,mxResources.get("loading"))&&this.addListener("clientLoaded",r);return!0});this.loadTemplate(f,mxUtils.bind(this,function(r){this.spinner.stop();if(null!=r&&0<r.length){var t=this.defaultFilename;if(null==urlParams.title&&"1"!=urlParams.notitle){var v=+f,B=f.lastIndexOf("."),E=v.lastIndexOf("/");B>E&&0<E&&(v=v.substring(E+1,B),B=f.substring(B),Editor.useCanvasForExport||".png"!=B||(B=".drawio"),".svg"===B||".xml"===B||".html"===B||".png"===B||".drawio"===B)&&(t=v+B)}r=new LocalFile(this,r,null!=urlParams.title?decodeURIComponent(urlParams.title):t,!0);r.getHash=function(){return b};this.fileLoaded(r,!0)?null!=g&&g():l()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}else l()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}),mxUtils.bind(this,function(){l()||(this.spinner.stop(),this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile")))}),null!=urlParams["template-filename"]?decodeURIComponent(urlParams["template-filename"]):null)}else{var n=this.getModeForChar(b.charAt(0));mxUtils.bind(this,function(){var r=this.getServiceForName(n);if(null==r)this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var v=this.getCurrentFile();window.location.hash=null!=v?v.getHash():""}));else{var t=b.charAt(0);b=decodeURIComponent(b.substring(1));r.getFile(b,mxUtils.bind(this,function(v){this.spinner.stop();this.fileLoaded(v);var B=this.getCurrentFile();if(null==B)window.location.hash="",this.showSplash();else if(this.editor.chromeless&&!this.editor.editable){B.getHash=function(){return t+b};v="#"+B.getHash();try{var E=this.getHashObject();null==E||mxUtils.isEmptyObject(E)||(v=-v+"#"+encodeURIComponent(JSON.stringify(E)))}catch(K){}window.location.replace(v)}else v==B&&null==v.getMode()&&this.updateStatus(mxUtils.bind(this,function(){var K=mxResources.get("copyCreated");this.editor.setStatus('<div title="'+K+'" class="geStatusAlert">'+K+"</div>")}));null!=f&&f()}),mxUtils.bind(this,function(v){null!=window.console&&null!=v&&console.log("error in loadFile:",b,v);var B=mxUtils.bind(this,function(){var E=this.getCurrentFile();null==E?(window.location.hash="",this.showSplash()):+v+"#"+encodeURIComponent(JSON.stringify(E)))}catch(K){}window.location.replace(v)}else v==B&&null==v.getMode()&&this.updateStatus(mxUtils.bind(this,function(){var K=mxResources.get("copyCreated");this.editor.setStatus('<div title="'+K+'" class="geStatusAlert">'+K+"</div>")}));null!=g&&g()}),mxUtils.bind(this,function(v){null!=window.console&&null!=v&&console.log("error in loadFile:",b,v);var B=mxUtils.bind(this,function(){var E=this.getCurrentFile();null==E?(window.location.hash="",this.showSplash()):window.location.hash="#"+E.getHash()});null==v||"AbortError"!=v.name?this.handleError(v,null!=v?mxResources.get("errorLoadingFile"):null,B,null,null,"#"+t+b):B()}))}})()}}),x=this.getCurrentFile(),z=mxUtils.bind(this,function(){q||null==x||!x.isModified()?u():this.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){null!=x&&(window.location.hash=x.getHash())}),u,mxResources.get("cancel"),mxResources.get("discardChanges"))});null==b||0==b.length||null==k&&null!=x&&!x.isModified()&&this.isBlankFile()?z():null==x||k?z():this.showDialog((new PopupDialog(this,this.getUrl()+"#"+b,null,z)).container,340,140,!0,!0)};App.prototype.getLibraryStorageHint=function(b){var k=b.getTitle();b.constructor!=LocalLibrary&&(k+="\n"+b.getHash());b.constructor==DriveLibrary?k+=" ("+mxResources.get("googleDrive")+")":b.constructor==GitHubLibrary?k+=" ("+mxResources.get("github")+")":b.constructor==TrelloLibrary?k+=" ("+mxResources.get("trello")+")":b.constructor==DropboxLibrary?k+=" ("+mxResources.get("dropbox")+")":b.constructor==OneDriveLibrary?k+=" ("+mxResources.get("oneDrive")+")":b.constructor==StorageLibrary?k+=" ("+-mxResources.get("browser")+")":b.constructor==LocalLibrary&&(k+=" ("+mxResources.get("device")+")");return k};App.prototype.restoreLibraries=function(){function b(m){for(var f=0;f<m.length;f++)""!=m[f]&&0>mxUtils.indexOf(k,m[f])&&k.push(m[f])}var k=[];b(mxSettings.getCustomLibraries());b((urlParams.clibs||"").split(";"));this.loadLibraries(k)};-App.prototype.loadLibraries=function(b,k){if(null!=this.sidebar){null==this.loadedLibraries&&(this.loadedLibraries={});var m=mxUtils.bind(this,function(J,H){H||mxSettings.removeCustomLibrary(J);delete this.loadedLibraries[J]}),f=0,q=[],u=0<b.length&&"L.scratchpad"==b[0]?1:0,x=mxUtils.bind(this,function(){if(0==f){if(null!=b)for(var J=this.sidebar.appendCustomLibraries,H=0;H<b.length;H++){var D=J?H:b.length-1-H;if(null!=q[D])try{this.loadLibrary(q[D],D<=u)}catch(c){}}null!=k&&k()}});if(null!=b)for(var z=-0;z<b.length;z++){var F=encodeURIComponent(decodeURIComponent(b[z]));mxUtils.bind(this,function(J,H){if(null!=J&&0<J.length&&null==this.loadedLibraries[J]&&null==this.sidebar.palettes[J]){this.loadedLibraries[J]=!0;f++;var D=mxUtils.bind(this,function(t){q[H]=t;f--;x()}),c=mxUtils.bind(this,function(t){m(J,t);f--;x()}),g=J.substring(0,1);if("L"==g)(isLocalStorage||mxClient.IS_CHROMEAPP)&&window.setTimeout(mxUtils.bind(this,function(){try{var t=decodeURIComponent(J.substring(1));StorageFile.getFileContent(this,-t,mxUtils.bind(this,function(v){".scratchpad"!=t||null!=v&&"<mxfile"!=v.substring(0,7)||(v=this.emptyLibraryXml);null!=v?D(new StorageLibrary(this,v,t)):c()}),c)}catch(v){c()}}),0);else if("U"==g){var l=decodeURIComponent(J.substring(1));this.isOffline()?c(!0):this.loadTemplate(l,mxUtils.bind(this,function(t){null!=t&&0<t.length?D(new UrlLibrary(this,t,l)):c()}),function(){c()},null,!0)}else if("R"==g){g=decodeURIComponent(J.substring(1));try{g=JSON.parse(g);var n={id:g[0],title:g[1],downloadUrl:g[2]};-this.remoteInvoke("getFileContent",[n.downloadUrl],null,mxUtils.bind(this,function(t){try{D(new RemoteLibrary(this,t,n))}catch(v){c()}}),function(){c()})}catch(t){c()}}else if("S"==g&&null!=this.loadDesktopLib)try{this.loadDesktopLib(decodeURIComponent(J.substring(1)),function(t){D(t)},c)}catch(t){c()}else{var r=null;"G"==g?null!=this.drive&&null!=this.drive.user&&(r=this.drive):"H"==g?null!=this.gitHub&&null!=this.gitHub.getUser()&&(r=this.gitHub):"T"==g?null!=this.trello&&this.trello.isAuthorized()&&-(r=this.trello):"D"==g?null!=this.dropbox&&null!=this.dropbox.getUser()&&(r=this.dropbox):"W"==g&&null!=this.oneDrive&&null!=this.oneDrive.getUser()&&(r=this.oneDrive);null!=r?r.getLibrary(decodeURIComponent(J.substring(1)),mxUtils.bind(this,function(t){try{D(t)}catch(v){c()}}),function(t){c()}):c(!0)}}})(F,z)}x()}};+mxResources.get("browser")+")":b.constructor==LocalLibrary&&(k+=" ("+mxResources.get("device")+")");return k};App.prototype.restoreLibraries=function(){function b(m){for(var g=0;g<m.length;g++)""!=m[g]&&0>mxUtils.indexOf(k,m[g])&&k.push(m[g])}var k=[];b(mxSettings.getCustomLibraries());b((urlParams.clibs||"").split(";"));this.loadLibraries(k)};+App.prototype.loadLibraries=function(b,k){if(null!=this.sidebar){null==this.loadedLibraries&&(this.loadedLibraries={});var m=mxUtils.bind(this,function(J,H){H||mxSettings.removeCustomLibrary(J);delete this.loadedLibraries[J]}),g=0,q=[],u=0<b.length&&"L.scratchpad"==b[0]?1:0,x=mxUtils.bind(this,function(){if(0==g){if(null!=b)for(var J=this.sidebar.appendCustomLibraries,H=0;H<b.length;H++){var D=J?H:b.length-1-H;if(null!=q[D])try{this.loadLibrary(q[D],D<=u)}catch(c){}}null!=k&&k()}});if(null!=b)for(var z=+0;z<b.length;z++){var F=encodeURIComponent(decodeURIComponent(b[z]));mxUtils.bind(this,function(J,H){if(null!=J&&0<J.length&&null==this.loadedLibraries[J]&&null==this.sidebar.palettes[J]){this.loadedLibraries[J]=!0;g++;var D=mxUtils.bind(this,function(t){q[H]=t;g--;x()}),c=mxUtils.bind(this,function(t){m(J,t);g--;x()}),f=J.substring(0,1);if("L"==f)(isLocalStorage||mxClient.IS_CHROMEAPP)&&window.setTimeout(mxUtils.bind(this,function(){try{var t=decodeURIComponent(J.substring(1));StorageFile.getFileContent(this,+t,mxUtils.bind(this,function(v){".scratchpad"!=t||null!=v&&"<mxfile"!=v.substring(0,7)||(v=this.emptyLibraryXml);null!=v?D(new StorageLibrary(this,v,t)):c()}),c)}catch(v){c()}}),0);else if("U"==f){var l=decodeURIComponent(J.substring(1));this.isOffline()?c(!0):this.loadTemplate(l,mxUtils.bind(this,function(t){null!=t&&0<t.length?D(new UrlLibrary(this,t,l)):c()}),function(){c()},null,!0)}else if("R"==f){f=decodeURIComponent(J.substring(1));try{f=JSON.parse(f);var n={id:f[0],title:f[1],downloadUrl:f[2]};+this.remoteInvoke("getFileContent",[n.downloadUrl],null,mxUtils.bind(this,function(t){try{D(new RemoteLibrary(this,t,n))}catch(v){c()}}),function(){c()})}catch(t){c()}}else if("S"==f&&null!=this.loadDesktopLib)try{this.loadDesktopLib(decodeURIComponent(J.substring(1)),function(t){D(t)},c)}catch(t){c()}else{var r=null;"G"==f?null!=this.drive&&null!=this.drive.user&&(r=this.drive):"H"==f?null!=this.gitHub&&null!=this.gitHub.getUser()&&(r=this.gitHub):"T"==f?null!=this.trello&&this.trello.isAuthorized()&&+(r=this.trello):"D"==f?null!=this.dropbox&&null!=this.dropbox.getUser()&&(r=this.dropbox):"W"==f&&null!=this.oneDrive&&null!=this.oneDrive.getUser()&&(r=this.oneDrive);null!=r?r.getLibrary(decodeURIComponent(J.substring(1)),mxUtils.bind(this,function(t){try{D(t)}catch(v){c()}}),function(t){c()}):c(!0)}}})(F,z)}x()}};App.prototype.updateButtonContainer=function(b){if(null!=this.buttonContainer)if(EditorUi.isElectronApp||this.isOffline()||b||(null!=urlParams.notif?this.fetchAndShowNotification(urlParams.notif):"1"!=urlParams.extAuth&&"atlas"!=Editor.currentTheme&&this.fetchAndShowNotification("online",this.mode)),this.isStandaloneApp()||"simple"==Editor.currentTheme&&"1"!=urlParams.embed)this.buttonContainer.style.display="none",null!=this.notificationBtn&&this.notificationBtn.parentNode!=this.sketchMenubarElt&&this.sketchMenubarElt.appendChild(this.notificationBtn);else{this.buttonContainer.style.display="";b=this.getCurrentFile();null!=this.notificationBtn&&this.notificationBtn.parentNode!=this.buttonContainer&&this.buttonContainer.appendChild(this.notificationBtn);"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&(null==this.commentButton&&(this.commentButton=document.createElement("a"),this.setElementTitle(this.commentButton,"comments"),this.commentButton.className="geButton geRoundButton",this.commentButton.style.backgroundImage="url("+Editor.commentImage+")",mxEvent.addListener(this.commentButton,"click",mxUtils.bind(this,function(){this.actions.get("comments").funct()})),this.buttonContainer.appendChild(this.commentButton),this.addCommentsBadge(this.commentButton),this.installCommentDragSource(this.commentButton)),this.commentButton.style.display=this.commentsSupported()?"":"none");if(null==this.shareButton){this.shareButton=document.createElement("button");this.shareButton.className="geBtn gePrimaryBtn";var k=document.createElement("div");k.className="geButton";k.style.backgroundImage="url("+Editor.groupImage+")";this.shareButton.appendChild(k);this.dependsOnLanguage(mxUtils.bind(this,function(){k.innerHTML="";mxUtils.write(k,mxResources.get("share"));this.shareButton.setAttribute("title",mxResources.get("share"))}));mxEvent.addListener(this.shareButton,"click",mxUtils.bind(this,function(){this.actions.get("share").funct()}));this.buttonContainer.appendChild(this.shareButton)}this.shareButton.style.display=null!=b&&"kennedy"==Editor.currentTheme&&"1"!=urlParams.embed?"":"none";if("simple"!=Editor.currentTheme){if(null==this.userButton){this.userButton=document.createElement("a");this.userButton.className="geButton geRoundButton";var m=document.createElement("div");m.className="geUserAvatar";this.userButton.appendChild(m);mxEvent.addListener(this.userButton,"click",mxUtils.bind(this,function(z){this.toggleUserPanel();var F=this.userButton.getBoundingClientRect(),J=window.innerWidth||document.documentElement.clientWidth;-this.userPanel.style.top=F.bottom+"px";this.userPanel.style.right=J-F.right+"px";mxEvent.consume(z)}));var f=document.createElement("img");f.style.position="absolute";f.style.width="10px";this.userButton.appendChild(f);this.buttonContainer.appendChild(this.userButton)}if(!this.unloading){m=this.userButton.getElementsByClassName("geUserAvatar")[0];f=this.userButton.getElementsByTagName("img")[0];var q=mxResources.get("changeUser"),u=this.getMainUser();null!=u&&null!=u.displayName&&(q=u.displayName);-null!=u&&null!=u.pictureUrl?(m.classList.remove("geAdaptiveAsset"),m.classList.add("geUserPhoto"),m.style.backgroundImage="url("+u.pictureUrl+")",f.style.top="3px",f.style.right="0"):(m.classList.remove("geUserPhoto"),m.classList.add("geAdaptiveAsset"),m.style.backgroundImage="url("+Editor.userImage+")",f.style.top="6px",f.style.right="4px");if(null!=b&&b.isRealtimeEnabled()&&b.isRealtimeSupported()){f.style.display="";m=b.getRealtimeError();var x=b.getRealtimeState();q+=" (";1==x?(f.src=Editor.syncImage,-q+=mxResources.get("online")):(f.src=Editor.syncProblemImage,q=null!=m&&null!=m.message?q+m.message:q+mxResources.get("disconnected"));q+=")"}else f.style.display="none",f.src=Editor.cloudImage;this.userButton.setAttribute("title",q);this.userButton.style.display="draw.io"!=this.getServiceName()||null==u||"1"==urlParams.embed||this.isStandaloneApp()||null==b?"none":""}}}};-App.prototype.fetchAndShowNotification=function(b,k){if(!this.fetchingNotif&&null!=NOTIFICATIONS_URL){b=b||"online";var m=null,f=mxUtils.bind(this,function(q){q=q.filter(function(F){return!F.targets||-1<F.targets.indexOf(b)||null!=k&&-1<F.targets.indexOf(k)});for(var u=b+"NotifReadTS",x=isLocalStorage?parseInt(localStorage.getItem(u)):!0,z=0;z<q.length;z++)q[z].isNew=!x||q[z].timestamp>x;this.showNotification(q,u)});try{isLocalStorage&&(m=JSON.parse(localStorage.getItem(".notifCache")))}catch(q){}null==-m||m.ts+864E5<Date.now()?(this.fetchingNotif=!0,mxUtils.get(NOTIFICATIONS_URL,mxUtils.bind(this,function(q){if(200<=q.getStatus()&&299>=q.getStatus())try{var u=JSON.parse(q.getText());u.sort(function(x,z){return z.timestamp-x.timestamp});isLocalStorage&&localStorage.setItem(".notifCache",JSON.stringify({ts:Date.now(),notifs:u}));this.fetchingNotif=!1;f(u)}catch(x){}}))):f(m.notifs)}};-App.prototype.showNotification=function(b,k){function m(J){var H=document.querySelector(".geNotification-count");null!=H&&(H.innerHTML=J,H.style.display=0==J?"none":"",H=document.querySelector(".geNotification-bell"),H.style.animation=0==J?"none":"",H.className="geNotification-bell"+(0==J?" geNotification-bellOff":""),document.querySelector(".geBell-rad").style.animation=0==J?"none":"")}var f=b.length;if("min"==Editor.currentTheme||"simple"==Editor.currentTheme)for(var q=f=0;q<b.length;q++)b[q].isNew&&-f++;if(0==f)null!=this.notificationBtn&&(this.notificationBtn.style.display="none",this.editor.fireEvent(new mxEventObject("statusChanged")));else{var u=mxUtils.bind(this,function(){this.notificationWin.style.display="none";for(var J=this.notificationWin.querySelectorAll(".circle.active"),H=0;H<J.length;H++)J[H].className="circle";isLocalStorage&&b[0]&&localStorage.setItem(k,b[0].timestamp)});if(null==this.notificationBtn){this.notificationBtn=document.createElement("div");this.notificationBtn.className=-"geNotification-box";f=document.createElement("span");f.className="geNotification-count";this.notificationBtn.appendChild(f);this.notifCount=f;f=document.createElement("div");f.className="geNotification-bell";q=document.createElement("span");q.className="geBell-top";f.appendChild(q);q=document.createElement("span");q.className="geBell-middle";f.appendChild(q);q=document.createElement("span");q.className="geBell-bottom";f.appendChild(q);q=document.createElement("span");q.className="geBell-rad";f.appendChild(q);-this.notificationBtn.appendChild(f);this.notificationWin=document.createElement("div");this.notificationWin.className="geNotifPanel";this.notificationWin.style.display="none";document.body.appendChild(this.notificationWin);q=document.createElement("div");q.className="header";f=document.createElement("span");f.className="title";f.textContent=mxResources.get("notifications");q.appendChild(f);f=document.createElement("span");f.className="closeBtn";f.textContent="x";q.appendChild(f);this.notificationWin.appendChild(q);+this.userPanel.style.top=F.bottom+"px";this.userPanel.style.right=J-F.right+"px";mxEvent.consume(z)}));var g=document.createElement("img");g.style.position="absolute";g.style.width="10px";this.userButton.appendChild(g);this.buttonContainer.appendChild(this.userButton)}if(!this.unloading){m=this.userButton.getElementsByClassName("geUserAvatar")[0];g=this.userButton.getElementsByTagName("img")[0];var q=mxResources.get("changeUser"),u=this.getMainUser();null!=u&&null!=u.displayName&&(q=u.displayName);+null!=u&&null!=u.pictureUrl?(m.classList.remove("geAdaptiveAsset"),m.classList.add("geUserPhoto"),m.style.backgroundImage="url("+u.pictureUrl+")",g.style.top="3px",g.style.right="0"):(m.classList.remove("geUserPhoto"),m.classList.add("geAdaptiveAsset"),m.style.backgroundImage="url("+Editor.userImage+")",g.style.top="6px",g.style.right="4px");if(null!=b&&b.isRealtimeEnabled()&&b.isRealtimeSupported()){g.style.display="";m=b.getRealtimeError();var x=b.getRealtimeState();q+=" (";1==x?(g.src=Editor.syncImage,+q+=mxResources.get("online")):(g.src=Editor.syncProblemImage,q=null!=m&&null!=m.message?q+m.message:q+mxResources.get("disconnected"));q+=")"}else g.style.display="none",g.src=Editor.cloudImage;this.userButton.setAttribute("title",q);this.userButton.style.display="draw.io"!=this.getServiceName()||null==u||"1"==urlParams.embed||this.isStandaloneApp()||null==b?"none":""}}}};+App.prototype.fetchAndShowNotification=function(b,k){if(!this.fetchingNotif&&null!=NOTIFICATIONS_URL){b=b||"online";var m=null,g=mxUtils.bind(this,function(q){q=q.filter(function(F){return!F.targets||-1<F.targets.indexOf(b)||null!=k&&-1<F.targets.indexOf(k)});for(var u=b+"NotifReadTS",x=isLocalStorage?parseInt(localStorage.getItem(u)):!0,z=0;z<q.length;z++)q[z].isNew=!x||q[z].timestamp>x;this.showNotification(q,u)});try{isLocalStorage&&(m=JSON.parse(localStorage.getItem(".notifCache")))}catch(q){}null==+m||m.ts+864E5<Date.now()?(this.fetchingNotif=!0,mxUtils.get(NOTIFICATIONS_URL,mxUtils.bind(this,function(q){if(200<=q.getStatus()&&299>=q.getStatus())try{var u=JSON.parse(q.getText());u.sort(function(x,z){return z.timestamp-x.timestamp});isLocalStorage&&localStorage.setItem(".notifCache",JSON.stringify({ts:Date.now(),notifs:u}));this.fetchingNotif=!1;g(u)}catch(x){}}))):g(m.notifs)}};+App.prototype.showNotification=function(b,k){function m(J){var H=document.querySelector(".geNotification-count");null!=H&&(H.innerHTML=J,H.style.display=0==J?"none":"",H=document.querySelector(".geNotification-bell"),H.style.animation=0==J?"none":"",H.className="geNotification-bell"+(0==J?" geNotification-bellOff":""),document.querySelector(".geBell-rad").style.animation=0==J?"none":"")}var g=b.length;if("min"==Editor.currentTheme||"simple"==Editor.currentTheme)for(var q=g=0;q<b.length;q++)b[q].isNew&&+g++;if(0==g)null!=this.notificationBtn&&(this.notificationBtn.style.display="none",this.editor.fireEvent(new mxEventObject("statusChanged")));else{var u=mxUtils.bind(this,function(){this.notificationWin.style.display="none";for(var J=this.notificationWin.querySelectorAll(".circle.active"),H=0;H<J.length;H++)J[H].className="circle";isLocalStorage&&b[0]&&localStorage.setItem(k,b[0].timestamp)});if(null==this.notificationBtn){this.notificationBtn=document.createElement("div");this.notificationBtn.className=+"geNotification-box";g=document.createElement("span");g.className="geNotification-count";this.notificationBtn.appendChild(g);this.notifCount=g;g=document.createElement("div");g.className="geNotification-bell";q=document.createElement("span");q.className="geBell-top";g.appendChild(q);q=document.createElement("span");q.className="geBell-middle";g.appendChild(q);q=document.createElement("span");q.className="geBell-bottom";g.appendChild(q);q=document.createElement("span");q.className="geBell-rad";g.appendChild(q);+this.notificationBtn.appendChild(g);this.notificationWin=document.createElement("div");this.notificationWin.className="geNotifPanel";this.notificationWin.style.display="none";document.body.appendChild(this.notificationWin);q=document.createElement("div");q.className="header";g=document.createElement("span");g.className="title";g.textContent=mxResources.get("notifications");q.appendChild(g);g=document.createElement("span");g.className="closeBtn";g.textContent="x";q.appendChild(g);this.notificationWin.appendChild(q);q=document.createElement("div");q.className="notifications clearfix";var x=document.createElement("div");x.setAttribute("id","geNotifList");x.style.position="relative";q.appendChild(x);this.notificationWin.appendChild(q);mxEvent.addListener(this.notificationBtn,"click",mxUtils.bind(this,function(){if("none"==this.notificationWin.style.display){this.notificationWin.style.display="";document.querySelector(".notifications").scrollTop=0;var J=this.notificationBtn.getBoundingClientRect();this.notificationWin.style.top=-J.top+this.notificationBtn.clientHeight+"px";this.notificationWin.style.left=J.right-this.notificationWin.clientWidth+"px";m(0)}else u()}));mxEvent.addListener(f,"click",u)}else this.notificationBtn.style.display="";var z=0,F=document.getElementById("geNotifList");if(null!=F){F.innerHTML='<div class="line"></div>';for(q=0;q<b.length;q++)(function(J,H){H.isNew&&z++;var D=document.createElement("div");D.className="notification";J=J.timeSince(new Date(H.timestamp));null==J&&(J=mxResources.get("lessThanAMinute"));+J.top+this.notificationBtn.clientHeight+"px";this.notificationWin.style.left=J.right-this.notificationWin.clientWidth+"px";m(0)}else u()}));mxEvent.addListener(g,"click",u)}else this.notificationBtn.style.display="";var z=0,F=document.getElementById("geNotifList");if(null!=F){F.innerHTML='<div class="line"></div>';for(q=0;q<b.length;q++)(function(J,H){H.isNew&&z++;var D=document.createElement("div");D.className="notification";J=J.timeSince(new Date(H.timestamp));null==J&&(J=mxResources.get("lessThanAMinute"));D.innerHTML='<div class="circle'+(H.isNew?" active":"")+'"></div><span class="time">'+mxUtils.htmlEntities(mxResources.get("timeAgo",[J],"{1} ago"))+"</span><p>"+mxUtils.htmlEntities(H.content)+"</p>";H.link&&mxEvent.addListener(D,"click",function(){window.open(H.link,"notifWin")});F.appendChild(D)})(this,b[q]);m(z)}}};-App.prototype.save=function(b,k){var m=this.getCurrentFile(),f=!0,q=mxUtils.bind(this,function(){f&&(f=!1,m.handleFileSuccess(!0),null!=k&&k())}),u=mxUtils.bind(this,function(x){if(f){f=!1;Editor.addRetryToError(x,mxUtils.bind(this,function(){this.save(b,k)}));if(null!=x&&null!=x.retry){var z=x.retry;x.retry=function(){f=!0;try{m.isModified()?z():q()}catch(F){u(F)}}}m.handleFileError(x,null==x||"AbortError"!=x.name)}});if(null!=m&&this.spinner.spin(document.body,mxResources.get("saving"),u,3*this.timeout))try{this.clearStatus(),+App.prototype.save=function(b,k){var m=this.getCurrentFile(),g=!0,q=mxUtils.bind(this,function(){g&&(g=!1,m.handleFileSuccess(!0),null!=k&&k())}),u=mxUtils.bind(this,function(x){if(g){g=!1;Editor.addRetryToError(x,mxUtils.bind(this,function(){this.save(b,k)}));if(null!=x&&null!=x.retry){var z=x.retry;x.retry=function(){g=!0;try{m.isModified()?z():q()}catch(F){u(F)}}}m.handleFileError(x,null==x||"AbortError"!=x.name)}});if(null!=m&&this.spinner.spin(document.body,mxResources.get("saving"),u,3*this.timeout))try{this.clearStatus(),this.editor.graph.isEditing()&&this.editor.graph.stopEditing(),b==m.getTitle()?m.save(!0,q,u):m.saveAs(b,q,u)}catch(x){u(x)}};App.prototype.getExtensionForService=function(b){b=this.getServiceForName(b);return null!=b?b.extension:".drawio"};App.prototype.getServiceForName=function(b){return b==App.MODE_GOOGLE?this.drive:b==App.MODE_ONEDRIVE?this.oneDrive:b==App.MODE_M365?this.m365:b==App.MODE_DROPBOX?this.dropbox:b==App.MODE_GITHUB?this.gitHub:b==App.MODE_GITLAB?this.gitLab:b==App.MODE_TRELLO?this.trello:null};App.prototype.getTitleForService=function(b){return b==App.MODE_GOOGLE?mxResources.get("googleDrive"):b==App.MODE_ONEDRIVE?mxResources.get("oneDrive"):b==App.MODE_M365?mxResources.get("m365"):EditorUi.prototype.getTitleForService.apply(this,arguments)};-App.prototype.pickFolder=function(b,k,m,f,q,u){m=null!=m?m:!0;this.spinner=null!=this.spinner?this.spinner:this.createSpinner(null,null,24);var x=this.spinner.pause();m&&b==App.MODE_GOOGLE&&null!=this.drive?this.drive.pickFolder(mxUtils.bind(this,function(z){x();if(z.action==google.picker.Action.PICKED){var F=null;null!=z.docs&&0<z.docs.length&&"folder"==z.docs[0].type&&(F=z.docs[0].id);k(u?z:F)}}),q):m&&b==App.MODE_ONEDRIVE&&null!=this.oneDrive?this.oneDrive.pickFolder(mxUtils.bind(this,function(z){x();-if(null!=z&&null!=z.value&&0<z.value.length){var F=OneDriveFile.prototype.getIdOf(z.value[0]);k(u?z:F)}}),f):m&&b==App.MODE_M365&&null!=this.m365?this.m365.pickFolder(mxUtils.bind(this,function(z){x();if(null!=z&&null!=z.value&&0<z.value.length){var F=OneDriveFile.prototype.getIdOf(z.value[0]);k(u?z:F)}}),f):m&&b==App.MODE_GITHUB&&null!=this.gitHub?this.gitHub.pickFolder(mxUtils.bind(this,function(z){x();k(z)})):m&&b==App.MODE_GITLAB&&null!=this.gitLab?this.gitLab.pickFolder(mxUtils.bind(this,function(z){x();+App.prototype.pickFolder=function(b,k,m,g,q,u){m=null!=m?m:!0;this.spinner=null!=this.spinner?this.spinner:this.createSpinner(null,null,24);var x=this.spinner.pause();m&&b==App.MODE_GOOGLE&&null!=this.drive?this.drive.pickFolder(mxUtils.bind(this,function(z){x();if(z.action==google.picker.Action.PICKED){var F=null;null!=z.docs&&0<z.docs.length&&"folder"==z.docs[0].type&&(F=z.docs[0].id);k(u?z:F)}}),q):m&&b==App.MODE_ONEDRIVE&&null!=this.oneDrive?this.oneDrive.pickFolder(mxUtils.bind(this,function(z){x();+if(null!=z&&null!=z.value&&0<z.value.length){var F=OneDriveFile.prototype.getIdOf(z.value[0]);k(u?z:F)}}),g):m&&b==App.MODE_M365&&null!=this.m365?this.m365.pickFolder(mxUtils.bind(this,function(z){x();if(null!=z&&null!=z.value&&0<z.value.length){var F=OneDriveFile.prototype.getIdOf(z.value[0]);k(u?z:F)}}),g):m&&b==App.MODE_GITHUB&&null!=this.gitHub?this.gitHub.pickFolder(mxUtils.bind(this,function(z){x();k(z)})):m&&b==App.MODE_GITLAB&&null!=this.gitLab?this.gitLab.pickFolder(mxUtils.bind(this,function(z){x();k(z)})):m&&b==App.MODE_TRELLO&&null!=this.trello?this.trello.pickFolder(mxUtils.bind(this,function(z){x();k(z)})):EditorUi.prototype.pickFolder.apply(this,arguments)};-App.prototype.exportFile=function(b,k,m,f,q,u){q==App.MODE_DROPBOX?null!=this.dropbox&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.dropbox.insertFile(k,f?this.base64ToBlob(b,m):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(x){this.spinner.stop();this.handleError(x)})):q==App.MODE_GOOGLE?null!=this.drive&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.drive.insertFile(k,b,u,mxUtils.bind(this,function(x){this.spinner.stop()}),-mxUtils.bind(this,function(x){this.spinner.stop();this.handleError(x)}),m,f):q==App.MODE_ONEDRIVE?null!=this.oneDrive&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.oneDrive.insertFile(k,f?this.base64ToBlob(b,m):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(x){this.spinner.stop();this.handleError(x)}),!1,u):q==App.MODE_GITHUB?null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.gitHub.insertFile(k,b,mxUtils.bind(this,-function(){this.spinner.stop()}),mxUtils.bind(this,function(x){this.spinner.stop();this.handleError(x)}),!0,u,f):q==App.MODE_GITLAB?null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.gitLab.insertFile(k,b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(x){this.spinner.stop();this.handleError(x)}),!0,u,f):q==App.MODE_TRELLO?null!=this.trello&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.trello.insertFile(k,f?this.base64ToBlob(b,-m):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(x){this.spinner.stop();this.handleError(x)}),!1,u):q==App.MODE_BROWSER&&(null!=window.StorageFile&&!f&&this.spinner.spin(document.body,mxResources.get("saving"))?(m="<mxlibrary"==b.substring(0,10)?new StorageLibrary(this,b,k):new StorageFile(this,b,k),StorageFile.doInsertFile(m,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(x){this.spinner.stop();this.handleError(x)}))):(m=mxUtils.bind(this,+App.prototype.exportFile=function(b,k,m,g,q,u){q==App.MODE_DROPBOX?null!=this.dropbox&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.dropbox.insertFile(k,g?this.base64ToBlob(b,m):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(x){this.spinner.stop();this.handleError(x)})):q==App.MODE_GOOGLE?null!=this.drive&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.drive.insertFile(k,b,u,mxUtils.bind(this,function(x){this.spinner.stop()}),+mxUtils.bind(this,function(x){this.spinner.stop();this.handleError(x)}),m,g):q==App.MODE_ONEDRIVE?null!=this.oneDrive&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.oneDrive.insertFile(k,g?this.base64ToBlob(b,m):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(x){this.spinner.stop();this.handleError(x)}),!1,u):q==App.MODE_GITHUB?null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.gitHub.insertFile(k,b,mxUtils.bind(this,+function(){this.spinner.stop()}),mxUtils.bind(this,function(x){this.spinner.stop();this.handleError(x)}),!0,u,g):q==App.MODE_GITLAB?null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.gitLab.insertFile(k,b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(x){this.spinner.stop();this.handleError(x)}),!0,u,g):q==App.MODE_TRELLO?null!=this.trello&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.trello.insertFile(k,g?this.base64ToBlob(b,+m):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(x){this.spinner.stop();this.handleError(x)}),!1,u):q==App.MODE_BROWSER&&(null!=window.StorageFile&&!g&&this.spinner.spin(document.body,mxResources.get("saving"))?(m="<mxlibrary"==b.substring(0,10)?new StorageLibrary(this,b,k):new StorageFile(this,b,k),StorageFile.doInsertFile(m,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(x){this.spinner.stop();this.handleError(x)}))):(m=mxUtils.bind(this,function(){localStorage.setItem(k,b)}),null==localStorage.getItem(k)?m():this.confirm(mxResources.get("replaceIt",[k]),m)))};App.prototype.descriptorChanged=function(){var b=this.getCurrentFile();if(null!=b){if(null!=this.fname){this.fname.innerText="";var k=null!=b.getTitle()?b.getTitle():this.defaultFilename;mxUtils.write(this.fname,k)}k=this.editor.graph;var m=b.isEditable();k.isEnabled()&&!m&&k.reset();k.setEnabled(m);null==urlParams.rev&&(this.updateDocumentTitle(),k=b.getHash(),0<k.length?(k!=this.getDiagramId()&&(window.location.hash=k),this.updateHashObject()):0<window.location.hash.length&&(window.location.hash=""))}this.updateUi();null==this.format||null!=b&&this.fileEditable==b.isEditable()||!this.editor.graph.isSelectionEmpty()||(this.format.refresh(),this.fileEditable=null!=b?b.isEditable():null);this.fireEvent(new mxEventObject("fileDescriptorChanged","file",b))};-App.prototype.showAuthDialog=function(b,k,m,f){var q=this.spinner.pause();this.showDialog((new AuthDialog(this,b,k,mxUtils.bind(this,function(u){try{null!=m&&m(u,mxUtils.bind(this,function(){this.hideDialog();q()}))}catch(x){this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus(mxUtils.htmlEntities(x.message))}))}}))).container,300,k?180:140,!0,!0,mxUtils.bind(this,function(u){null!=f&&f(u);u&&null==this.getCurrentFile()&&null==this.dialog&&this.showSplash()}))};-App.prototype.convertFile=function(b,k,m,f,q,u,x,z){var F=k;/\.svg$/i.test(F)||(F=F.substring(0,k.lastIndexOf("."))+f);var J=!1;null!=this.gitHub&&b.substring(0,this.gitHub.baseUrl.length)==this.gitHub.baseUrl&&(J=!0);if(/\.v(dx|sdx?)$/i.test(k)&&Graph.fileSupport&&(new XMLHttpRequest).upload&&"string"===typeof(new XMLHttpRequest).responseType){var H=new XMLHttpRequest;H.open("GET",b,!0);J||(H.responseType="blob");if(z)for(var D in z)H.setRequestHeader(D,z[D]);H.onload=mxUtils.bind(this,function(){if(200<=-H.status&&299>=H.status){var g=null;J?(g=JSON.parse(H.responseText),g=this.base64ToBlob(g.content,"application/octet-stream")):g=new Blob([H.response],{type:"application/octet-stream"});this.importVisio(g,mxUtils.bind(this,function(l){q(new LocalFile(this,l,F,!0))}),u,k)}else null!=u&&u({message:mxResources.get("errorLoadingFile")})});H.onerror=u;H.send()}else{var c=mxUtils.bind(this,function(g){try{if(/\.pdf$/i.test(k)){var l=Editor.extractGraphModelFromPdf(g);null!=l&&0<l.length&&q(new LocalFile(this,-l,F,!0))}else/\.png$/i.test(k)?(l=this.extractGraphModelFromPng(g),null!=l?q(new LocalFile(this,l,F,!0)):q(new LocalFile(this,g,k,!0))):Graph.fileSupport&&this.isGliffyData(g,b)?this.importGliffy(g,mxUtils.bind(this,function(n){q(new LocalFile(this,n,F,!0))}),mxUtils.bind(this,function(n){null!=u&&u({message:mxResources.get("errorLoadingFile")})}),k):q(new LocalFile(this,g,F,!0))}catch(n){null!=u&&u(n)}});m=/\.png$/i.test(k)||/\.jpe?g$/i.test(k)||/\.pdf$/i.test(k)||null!=m&&"image/"==m.substring(0,-6);J?mxUtils.get(b,mxUtils.bind(this,function(g){if(200<=g.getStatus()&&299>=g.getStatus()){if(null!=q){g=JSON.parse(g.getText());var l=g.content;"base64"===g.encoding&&(l=/\.png$/i.test(k)?"data:image/png;base64,"+l:/\.pdf$/i.test(k)?"data:application/pdf;base64,"+l:window.atob?atob(l):Base64.decode(l));c(l)}}else null!=u&&u({code:App.ERROR_UNKNOWN})}),function(){null!=u&&u({code:App.ERROR_UNKNOWN})},!1,this.timeout,function(){null!=u&&u({code:App.ERROR_TIMEOUT,retry:fn})},z):null!=x?x(b,c,u,m):+App.prototype.showAuthDialog=function(b,k,m,g){var q=this.spinner.pause();this.showDialog((new AuthDialog(this,b,k,mxUtils.bind(this,function(u){try{null!=m&&m(u,mxUtils.bind(this,function(){this.hideDialog();q()}))}catch(x){this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus(mxUtils.htmlEntities(x.message))}))}}))).container,300,k?180:140,!0,!0,mxUtils.bind(this,function(u){null!=g&&g(u);u&&null==this.getCurrentFile()&&null==this.dialog&&this.showSplash()}))};+App.prototype.convertFile=function(b,k,m,g,q,u,x,z){var F=k;/\.svg$/i.test(F)||(F=F.substring(0,k.lastIndexOf("."))+g);var J=!1;null!=this.gitHub&&b.substring(0,this.gitHub.baseUrl.length)==this.gitHub.baseUrl&&(J=!0);if(/\.v(dx|sdx?)$/i.test(k)&&Graph.fileSupport&&(new XMLHttpRequest).upload&&"string"===typeof(new XMLHttpRequest).responseType){var H=new XMLHttpRequest;H.open("GET",b,!0);J||(H.responseType="blob");if(z)for(var D in z)H.setRequestHeader(D,z[D]);H.onload=mxUtils.bind(this,function(){if(200<=+H.status&&299>=H.status){var f=null;J?(f=JSON.parse(H.responseText),f=this.base64ToBlob(f.content,"application/octet-stream")):f=new Blob([H.response],{type:"application/octet-stream"});this.importVisio(f,mxUtils.bind(this,function(l){q(new LocalFile(this,l,F,!0))}),u,k)}else null!=u&&u({message:mxResources.get("errorLoadingFile")})});H.onerror=u;H.send()}else{var c=mxUtils.bind(this,function(f){try{if(/\.pdf$/i.test(k)){var l=Editor.extractGraphModelFromPdf(f);null!=l&&0<l.length&&q(new LocalFile(this,+l,F,!0))}else/\.png$/i.test(k)?(l=this.extractGraphModelFromPng(f),null!=l?q(new LocalFile(this,l,F,!0)):q(new LocalFile(this,f,k,!0))):Graph.fileSupport&&this.isGliffyData(f,b)?this.importGliffy(f,mxUtils.bind(this,function(n){q(new LocalFile(this,n,F,!0))}),mxUtils.bind(this,function(n){null!=u&&u({message:mxResources.get("errorLoadingFile")})}),k):q(new LocalFile(this,f,F,!0))}catch(n){null!=u&&u(n)}});m=/\.png$/i.test(k)||/\.jpe?g$/i.test(k)||/\.pdf$/i.test(k)||null!=m&&"image/"==m.substring(0,+6);J?mxUtils.get(b,mxUtils.bind(this,function(f){if(200<=f.getStatus()&&299>=f.getStatus()){if(null!=q){f=JSON.parse(f.getText());var l=f.content;"base64"===f.encoding&&(l=/\.png$/i.test(k)?"data:image/png;base64,"+l:/\.pdf$/i.test(k)?"data:application/pdf;base64,"+l:window.atob?atob(l):Base64.decode(l));c(l)}}else null!=u&&u({code:App.ERROR_UNKNOWN})}),function(){null!=u&&u({code:App.ERROR_UNKNOWN})},!1,this.timeout,function(){null!=u&&u({code:App.ERROR_TIMEOUT,retry:fn})},z):null!=x?x(b,c,u,m):this.editor.loadUrl(b,c,u,m,null,null,null,z)}};App.prototype.updateHeader=function(){if(null!=this.menubar){var b="url("+Editor.logoImage+")";this.appIcon=document.createElement("a");this.appIcon.className="geAppIcon";this.appIcon.style.backgroundImage=b;mxEvent.disableContextMenu(this.appIcon);mxEvent.addListener(this.appIcon,"click",mxUtils.bind(this,function(u){this.appIconClicked(u)}));mxEvent.addListener(this.appIcon,"mouseover",mxUtils.bind(this,function(){var u=this.getCurrentFile();null!=u&&(u=u.getMode(),u==App.MODE_GOOGLE?(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/google-drive-logo-white.svg)",this.appIcon.style.backgroundSize="70%"):u==App.MODE_DROPBOX?(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/dropbox-logo-white.svg)",this.appIcon.style.backgroundSize="70%"):u==App.MODE_ONEDRIVE?(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/onedrive-logo-white.svg)",this.appIcon.style.backgroundSize="70%"):u==App.MODE_GITHUB?(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/github-logo-white.svg)",this.appIcon.style.backgroundSize=@@ -15592,25 +15681,25 @@ App.prototype.updateHeader=function(){if(null!=this.menubar){var b="url("+Editorthis.fnameWrapper=document.createElement("div");this.fname=document.createElement("a");this.fnameWrapper.className="geFilenameContainer";this.fname.className="geFilename";mxEvent.addListener(this.fname,"click",mxUtils.bind(this,function(u){var x=this.getCurrentFile();null!=x&&x.isRenamable()&&(this.editor.graph.isEditing()&&this.editor.graph.stopEditing(),this.actions.get("rename").funct());mxEvent.consume(u)}));mxEvent.preventDefault(this.fname);this.fnameWrapper.appendChild(this.fname);"1"!=urlParams.embed&&this.menubarContainer.appendChild(this.fnameWrapper);var k=document.createElement("div");k.className="geToolbar geToolbarEnd";this.toolbarContainer.appendChild(k);this.fullscreenElement=document.createElement("a");this.fullscreenElement.style.backgroundImage="url('"+Editor.fullscreenImage+"')";this.fullscreenElement.className="geButton";k.appendChild(this.fullscreenElement);mxEvent.addListener(this.fullscreenElement,"click",mxUtils.bind(this,function(u){var x=this.fullscreenMode;"atlas"!=Editor.currentTheme&&"1"!=urlParams.embed&&this.setCompactMode(!x,null,Editor.transitionDelay);this.toggleShapesPanel(x);this.toggleFormatPanel(x);this.fullscreenMode=!x;this.fullscreenElement.style.backgroundImage="url('"+(this.fullscreenMode?Editor.fullscreenExitImage:Editor.fullscreenImage)+"')";mxEvent.consume(u)}));mxEvent.preventDefault(this.fullscreenElement);this.addListener("formatWidthChanged",mxUtils.bind(this,function(){this.updateFullscreenState()}));this.addListener("shapesPanelChanged",mxUtils.bind(this,-function(){this.updateFullscreenState()}));var m=document.createElement("a");m.className="geButton";k.appendChild(m);mxEvent.addListener(m,"click",mxUtils.bind(this,function(u){this.actions.get("format").funct();mxEvent.consume(u)}));mxEvent.preventDefault(m);var f=mxUtils.bind(this,function(){m.style.backgroundImage=0<this.formatWidth?"url('"+Editor.rightPanelCloseImage+"')":"url('"+Editor.rightPanelOpenImage+"')"});this.addListener("formatWidthChanged",f);f();var q=document.createElement("a");q.style.backgroundImage=+function(){this.updateFullscreenState()}));var m=document.createElement("a");m.className="geButton";k.appendChild(m);mxEvent.addListener(m,"click",mxUtils.bind(this,function(u){this.actions.get("format").funct();mxEvent.consume(u)}));mxEvent.preventDefault(m);var g=mxUtils.bind(this,function(){m.style.backgroundImage=0<this.formatWidth?"url('"+Editor.rightPanelCloseImage+"')":"url('"+Editor.rightPanelOpenImage+"')"});this.addListener("formatWidthChanged",g);g();var q=document.createElement("a");q.style.backgroundImage="url('"+(this.compactMode?Editor.chevronDownImage:Editor.chevronUpImage)+"')";q.className="geButton";"1"!=urlParams.embed&&"atlas"!=Editor.currentTheme&&(k.appendChild(q),mxEvent.addListener(q,"click",mxUtils.bind(this,function(u){this.setCompactMode(!this.compactMode,!0,Editor.transitionDelay);mxEvent.consume(u)})),mxEvent.preventDefault(q),!mxClient.IS_FF&&740>=screen.height&&"undefined"!==typeof q.click&&window.setTimeout(mxUtils.bind(this,function(){q.click()}),0),this.addListener("compactModeChanged",mxUtils.bind(this,function(){q.style.backgroundImage="url('"+(this.compactMode?Editor.chevronDownImage:Editor.chevronUpImage)+"')"})));this.dependsOnLanguage(mxUtils.bind(this,function(){this.fname.setAttribute("title",mxResources.get("rename"));this.fullscreenElement.setAttribute("title",mxResources.get("fullscreen"));q.setAttribute("title",mxResources.get("collapseExpand"));m.setAttribute("title",mxResources.get("format")+" ("+Editor.ctrlKey+"+"+Editor.shiftKey+"+P)")}))}this.updateFullscreenState()};-App.prototype.setCompactMode=function(b,k,m){var f=mxUtils.isAncestorNode(document.body,this.container)||null==this.editor?this.container:this.editor.graph.container;m=null!=m?m:0;window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.menubarContainer.style,"transition","all "+m+"s ease-in-out");mxUtils.setPrefixedStyle(this.toolbarContainer.style,"transition","all "+m+"s ease-in-out");b?f.classList.add("geCompactMode"):f.classList.remove("geCompactMode");window.setTimeout(mxUtils.bind(this,+App.prototype.setCompactMode=function(b,k,m){var g=mxUtils.isAncestorNode(document.body,this.container)||null==this.editor?this.container:this.editor.graph.container;m=null!=m?m:0;window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.menubarContainer.style,"transition","all "+m+"s ease-in-out");mxUtils.setPrefixedStyle(this.toolbarContainer.style,"transition","all "+m+"s ease-in-out");b?g.classList.add("geCompactMode"):g.classList.remove("geCompactMode");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.menubarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.toolbarContainer.style,"transition",null);this.compactMode=b;this.refresh(!0);this.fireEvent(new mxEventObject("compactModeChanged"));isLocalStorage&&k&&(mxSettings.settings.compactMode=this.compactMode,mxSettings.save())}),1E3*m)}),0)};App.prototype.updateFullscreenState=function(){if(null!=this.fullscreenElement){var b=!this.isShapesPanelVisible()&&!this.isFormatPanelVisible();this.fullscreenMode!=b&&(this.fullscreenMode=b,this.fullscreenElement.style.backgroundImage="url('"+(this.fullscreenMode?Editor.fullscreenExitImage:Editor.fullscreenImage)+"')")}};App.prototype.getMainUser=function(){var b=null;null!=this.drive&&null!=this.drive.getUser()?b=this.drive.getUser():null!=this.oneDrive&&null!=this.oneDrive.getUser()?b=this.oneDrive.getUser():null!=this.m365&&null!=this.m365.getUser()?b=this.m365.getUser():null!=this.dropbox&&null!=this.dropbox.getUser()?b=this.dropbox.getUser():null!=this.gitHub&&null!=this.gitHub.getUser()?b=this.gitHub.getUser():null!=this.gitLab&&null!=this.gitLab.getUser()&&(b=this.gitLab.getUser());return b};App.prototype.hideUserPanel=function(){null!=this.userPanel&&null!=this.userPanel.parentNode&&this.userPanel.parentNode.removeChild(this.userPanel)};App.prototype.toggleUserPanel=function(){if(null==this.userPanel){var b=document.createElement("div");b.className="geDialog geInlineDialog";b.style.minWidth="300px";this.userPanel=b;mxEvent.addListener(document.body,"click",mxUtils.bind(this,function(x){mxEvent.isConsumed(x)||this.hideUserPanel()}))}if(null!=this.userPanel.parentNode)this.userPanel.parentNode.removeChild(this.userPanel);else{var k=!1;this.userPanel.innerText="";b=document.createElement("div");b.className="geButton";b.setAttribute("title",-mxResources.get("close"));b.style.backgroundImage="url("+Editor.crossImage+")";b.style.position="absolute";b.style.right="0px";mxEvent.addListener(b,"click",mxUtils.bind(this,function(){this.hideUserPanel()}));this.userPanel.appendChild(b);if(null!=this.drive){var m=this.drive.getUsersList();if(0<m.length){var f=mxUtils.bind(this,function(x,z){var F=this.getCurrentFile();null!=F&&F.constructor==DriveFile?(this.spinner.spin(document.body,z),this.fileLoaded(null),window.setTimeout(mxUtils.bind(this,+mxResources.get("close"));b.style.backgroundImage="url("+Editor.crossImage+")";b.style.position="absolute";b.style.right="0px";mxEvent.addListener(b,"click",mxUtils.bind(this,function(){this.hideUserPanel()}));this.userPanel.appendChild(b);if(null!=this.drive){var m=this.drive.getUsersList();if(0<m.length){var g=mxUtils.bind(this,function(x,z){var F=this.getCurrentFile();null!=F&&F.constructor==DriveFile?(this.spinner.spin(document.body,z),this.fileLoaded(null),window.setTimeout(mxUtils.bind(this,function(){this.spinner.stop();x()}),2E3)):x()});b=mxUtils.bind(this,function(x){var z=document.createElement("tr"),F=document.createElement("td");F.setAttribute("valig","middle");F.style.height="59px";F.style.width="66px";var J=document.createElement("img");J.setAttribute("width","50");J.setAttribute("height","50");J.setAttribute("border","0");J.setAttribute("src",null!=x.pictureUrl?x.pictureUrl:Editor.userImage);J.style.borderRadius="50%";J.style.margin="4px 8px 0 8px";F.appendChild(J);z.appendChild(F);F=document.createElement("td");F.setAttribute("valign","middle");F.style.whiteSpace="nowrap";F.style.paddingTop="4px";F.style.maxWidth="0";F.style.overflow="hidden";F.style.textOverflow="ellipsis";mxUtils.write(F,x.displayName+(x.isCurrent&&1<m.length?" ("+mxResources.get("default")+")":""));null!=x.email&&(mxUtils.br(F),J=document.createElement("small"),J.style.color="gray",mxUtils.write(J,x.email),F.appendChild(J));J=document.createElement("div");J.style.marginTop="4px";var H=document.createElement("i");mxUtils.write(H,mxResources.get("googleDrive"));J.appendChild(H);F.appendChild(J);z.appendChild(F);x.isCurrent?z.setAttribute("title","User ID: "+x.id):(z.setAttribute("title",mxResources.get("login")+" (User ID: "+x.id+")"),z.style.cursor="pointer",z.style.opacity="0.3",mxEvent.addListener(z,"mouseenter",mxUtils.bind(this,function(){z.style.opacity="1"})),mxEvent.addListener(z,"mouseleave",mxUtils.bind(this,function(){z.style.opacity="0.3"})),mxEvent.addListener(z,"click",mxUtils.bind(this,function(D){this.hideUserPanel();-f(mxUtils.bind(this,function(){this.stateArg=null;this.drive.setUser(x);this.drive.authorize(!0,mxUtils.bind(this,function(){this.setMode(App.MODE_GOOGLE);this.hideDialog();this.showSplash()}),mxUtils.bind(this,function(c){this.handleError(c)}),!0)}),mxResources.get("changeUser")+"...");mxEvent.consume(D)})));return z});k=!0;var q=document.createElement("table");q.style.borderSpacing="0";q.style.fontSize="10pt";q.style.width="100%";q.style.padding="10px";for(var u=0;u<m.length;u++)q.appendChild(b(m[u]));-this.userPanel.appendChild(q);b=document.createElement("div");b.style.textAlign="left";b.style.padding="10px";b.style.whiteSpace="nowrap";b.style.borderTopStyle="solid";b.style.borderTopWidth="1px";q=mxUtils.button(mxResources.get("signOut"),mxUtils.bind(this,function(){this.confirm(mxResources.get("areYouSure"),mxUtils.bind(this,function(){f(mxUtils.bind(this,function(){this.stateArg=null;this.drive.logout();this.setMode(App.MODE_GOOGLE);this.hideDialog();this.showSplash()}),mxResources.get("signOut"))}))}));-q.className="geBtn";q.style.float="right";b.appendChild(q);q=mxUtils.button(mxResources.get("addAccount"),mxUtils.bind(this,function(){var x=this.drive.createAuthWin();x.blur();window.focus();f(mxUtils.bind(this,function(){this.stateArg=null;this.drive.authorize(!1,mxUtils.bind(this,function(){this.setMode(App.MODE_GOOGLE);this.hideDialog();this.showSplash()}),mxUtils.bind(this,function(z){this.handleError(z)}),!0,x)}),mxResources.get("closingFile")+"...")}));q.className="geBtn";q.style.margin="0px";-b.appendChild(q);this.userPanel.appendChild(b)}}b=mxUtils.bind(this,function(x,z,F,J){if(null!=x){k&&this.userPanel.appendChild(document.createElement("hr"));k=!0;var H=document.createElement("table");H.style.borderSpacing="0";H.style.fontSize="10pt";H.style.width="100%";H.style.padding="10px";var D=document.createElement("tbody"),c=document.createElement("tr"),g=document.createElement("td");g.setAttribute("valig","top");g.style.width="40px";if(null!=z){var l=document.createElement("img");l.setAttribute("width",-"40");l.setAttribute("height","40");l.setAttribute("border","0");l.setAttribute("src",z);l.style.marginRight="6px";g.appendChild(l)}c.appendChild(g);g=document.createElement("td");g.setAttribute("valign","middle");g.style.whiteSpace="nowrap";g.style.maxWidth="0";g.style.overflow="hidden";g.style.textOverflow="ellipsis";mxUtils.write(g,x.displayName);null!=x.email&&(mxUtils.br(g),z=document.createElement("small"),z.style.color="gray",mxUtils.write(z,x.email),g.appendChild(z));null!=J&&(x=document.createElement("div"),-x.style.marginTop="4px",z=document.createElement("i"),mxUtils.write(z,J),x.appendChild(z),g.appendChild(x));c.appendChild(g);D.appendChild(c);H.appendChild(D);this.userPanel.appendChild(H);x=document.createElement("div");x.style.textAlign="center";x.style.padding="10px";x.style.whiteSpace="nowrap";null!=F&&(F=mxUtils.button(mxResources.get("signOut"),F),F.className="geBtn",x.appendChild(F));this.userPanel.appendChild(x)}});null!=this.dropbox&&b(this.dropbox.getUser(),IMAGE_PATH+"/dropbox-logo.svg",+g(mxUtils.bind(this,function(){this.stateArg=null;this.drive.setUser(x);this.drive.authorize(!0,mxUtils.bind(this,function(){this.setMode(App.MODE_GOOGLE);this.hideDialog();this.showSplash()}),mxUtils.bind(this,function(c){this.handleError(c)}),!0)}),mxResources.get("changeUser")+"...");mxEvent.consume(D)})));return z});k=!0;var q=document.createElement("table");q.style.borderSpacing="0";q.style.fontSize="10pt";q.style.width="100%";q.style.padding="10px";for(var u=0;u<m.length;u++)q.appendChild(b(m[u]));+this.userPanel.appendChild(q);b=document.createElement("div");b.style.textAlign="left";b.style.padding="10px";b.style.whiteSpace="nowrap";b.style.borderTopStyle="solid";b.style.borderTopWidth="1px";q=mxUtils.button(mxResources.get("signOut"),mxUtils.bind(this,function(){this.confirm(mxResources.get("areYouSure"),mxUtils.bind(this,function(){g(mxUtils.bind(this,function(){this.stateArg=null;this.drive.logout();this.setMode(App.MODE_GOOGLE);this.hideDialog();this.showSplash()}),mxResources.get("signOut"))}))}));+q.className="geBtn";q.style.float="right";b.appendChild(q);q=mxUtils.button(mxResources.get("addAccount"),mxUtils.bind(this,function(){var x=this.drive.createAuthWin();x.blur();window.focus();g(mxUtils.bind(this,function(){this.stateArg=null;this.drive.authorize(!1,mxUtils.bind(this,function(){this.setMode(App.MODE_GOOGLE);this.hideDialog();this.showSplash()}),mxUtils.bind(this,function(z){this.handleError(z)}),!0,x)}),mxResources.get("closingFile")+"...")}));q.className="geBtn";q.style.margin="0px";+b.appendChild(q);this.userPanel.appendChild(b)}}b=mxUtils.bind(this,function(x,z,F,J){if(null!=x){k&&this.userPanel.appendChild(document.createElement("hr"));k=!0;var H=document.createElement("table");H.style.borderSpacing="0";H.style.fontSize="10pt";H.style.width="100%";H.style.padding="10px";var D=document.createElement("tbody"),c=document.createElement("tr"),f=document.createElement("td");f.setAttribute("valig","top");f.style.width="40px";if(null!=z){var l=document.createElement("img");l.setAttribute("width",+"40");l.setAttribute("height","40");l.setAttribute("border","0");l.setAttribute("src",z);l.style.marginRight="6px";f.appendChild(l)}c.appendChild(f);f=document.createElement("td");f.setAttribute("valign","middle");f.style.whiteSpace="nowrap";f.style.maxWidth="0";f.style.overflow="hidden";f.style.textOverflow="ellipsis";mxUtils.write(f,x.displayName);null!=x.email&&(mxUtils.br(f),z=document.createElement("small"),z.style.color="gray",mxUtils.write(z,x.email),f.appendChild(z));null!=J&&(x=document.createElement("div"),+x.style.marginTop="4px",z=document.createElement("i"),mxUtils.write(z,J),x.appendChild(z),f.appendChild(x));c.appendChild(f);D.appendChild(c);H.appendChild(D);this.userPanel.appendChild(H);x=document.createElement("div");x.style.textAlign="center";x.style.padding="10px";x.style.whiteSpace="nowrap";null!=F&&(F=mxUtils.button(mxResources.get("signOut"),F),F.className="geBtn",x.appendChild(F));this.userPanel.appendChild(x)}});null!=this.dropbox&&b(this.dropbox.getUser(),IMAGE_PATH+"/dropbox-logo.svg",mxUtils.bind(this,function(){var x=this.getCurrentFile();if(null!=x&&x.constructor==DropboxFile){var z=mxUtils.bind(this,function(){this.dropbox.logout();window.location.hash=""});x.isModified()?this.confirm(mxResources.get("allChangesLost"),null,z,mxResources.get("cancel"),mxResources.get("discardChanges")):z()}else this.dropbox.logout()}),mxResources.get("dropbox"));null!=this.oneDrive&&b(this.oneDrive.getUser(),IMAGE_PATH+"/onedrive-logo.svg",this.oneDrive.noLogout?null:mxUtils.bind(this,function(){var x=this.getCurrentFile();if(null==x||x.constructor!=OneDriveFile||x.isSP)this.oneDrive.logout();else{var z=mxUtils.bind(this,function(){this.oneDrive.logout();window.location.hash=""});x.isModified()?this.confirm(mxResources.get("allChangesLost"),null,z,mxResources.get("cancel"),mxResources.get("discardChanges")):z()}}),mxResources.get("oneDrive"));null!=this.m365&&b(this.m365.getUser(),IMAGE_PATH+"/onedrive-logo.svg",this.m365.noLogout?null:mxUtils.bind(this,function(){var x=this.getCurrentFile();if(null!=x&&x.constructor==OneDriveFile&&x.isSP){var z=mxUtils.bind(this,function(){this.m365.logout();window.location.hash=""});x.isModified()?this.confirm(mxResources.get("allChangesLost"),null,z,mxResources.get("cancel"),mxResources.get("discardChanges")):z()}else this.m365.logout()}),mxResources.get("m365"));null!=this.gitHub&&b(this.gitHub.getUser(),IMAGE_PATH+"/github-logo.svg",mxUtils.bind(this,function(){var x=this.getCurrentFile();if(null!=x&&x.constructor==GitHubFile){var z=mxUtils.bind(this,function(){this.gitHub.logout();@@ -15619,290 +15708,290 @@ null,z,mxResources.get("cancel"),mxResources.get("discardChanges")):z()}else thiz()}else this.trello.logout()}),mxResources.get("trello"));"min"==uiTheme&&(q=this.getCurrentFile(),null!=q&&q.isRealtimeEnabled()&&q.isRealtimeSupported()&&(b=document.createElement("div"),b.style.padding="10px",b.style.whiteSpace="nowrap",b.style.borderTop="1px solid rgb(224, 224, 224)",b.style.marginTop="4px",b.style.textAlign="center",b.style.padding="10px",b.style.fontSize="9pt",u=q.getRealtimeError(),1!=q.getRealtimeState()&&(mxUtils.write(b,mxResources.get("realtimeCollaboration")+": "+(null!=u&&null!=u.message?u.message:mxResources.get("disconnected"))),this.userPanel.appendChild(b))));document.body.appendChild(this.userPanel)}};App.prototype.getCurrentUser=function(){var b=null;null!=this.drive&&null!=this.drive.getUser()?b=this.drive.getUser():null!=this.oneDrive&&null!=this.oneDrive.getUser()?b=this.oneDrive.getUser():null!=this.m365&&null!=this.m365.getUser()?b=this.m365.getUser():null!=this.dropbox&&null!=this.dropbox.getUser()?b=this.dropbox.getUser():null!=this.gitHub&&null!=this.gitHub.getUser()&&(b=this.gitHub.getUser());return b};var editorResetGraph=Editor.prototype.resetGraph;-Editor.prototype.resetGraph=function(){editorResetGraph.apply(this,arguments);null==this.graph.defaultPageFormat&&(this.graph.pageFormat=mxSettings.getPageFormat())};(function(){var b=mxPopupMenu.prototype.showMenu;mxPopupMenu.prototype.showMenu=function(){this.div.style.overflowY="auto";this.div.style.overflowX="hidden";this.div.style.maxHeight=Math.max(document.body.clientHeight,document.documentElement.clientHeight)-(EditorUi.isElectronApp?50:10)+"px";b.apply(this,arguments)};Menus.layoutContainers=function(){var m=function(q,u){u.resizeLayoutRoot=!0;u.resizeNodes=!1;return"childLayout="+Graph.encodeChildLayout([{layout:q,config:u}])+";"},f=function(q,u,x,-z){return{width:u,height:x,style:"group;connectable=0;transparentBounds=1;groupPadding=20;"+z,sidebarStyle:"swimlane;html=1;startSize=20;horizontal="+(q?"0":"1")+";resizable=0;fontSize=12;transparentBounds=1;groupPadding=20;"+z}};return{horizontalFlow:f(!0,460,150,"containerType=tree;"+m("elkLayered",{"elk.direction":"RIGHT","elk.layered.spacing.nodeNodeBetweenLayers":"50","elk.padding":"[top=20,left=40,bottom=20,right=20]",edgeStyle:"orthogonalEdgeStyle",corners:"rounded",extractIsolated:!1})),verticalFlow:f(!1,-270,280,"containerType=tree;"+m("elkLayered",{"elk.direction":"DOWN","elk.layered.spacing.nodeNodeBetweenLayers":"50","elk.padding":"[top=40,left=20,bottom=20,right=20]",edgeStyle:"orthogonalEdgeStyle",corners:"rounded",extractIsolated:!1})),horizontalTree:f(!0,300,160,"containerType=tree;"+m("elkTree",{"elk.direction":"RIGHT","elk.spacing.nodeNode":"40","elk.spacing.edgeNode":"20","elk.padding":"[top=20,left=40,bottom=20,right=20]",corners:"rounded"})),verticalTree:f(!1,280,180,"containerType=tree;"+-m("elkTree",{"elk.direction":"DOWN","elk.spacing.nodeNode":"40","elk.spacing.edgeNode":"20","elk.padding":"[top=40,left=20,bottom=20,right=20]",corners:"rounded"})),radialTree:f(!1,320,320,"containerType=tree;"+m("elkRadial",{"elk.padding":"[top=40,left=20,bottom=20,right=20]"})),organic:f(!1,320,320,m("elkOrganic",{"elk.padding":"[top=40,left=20,bottom=20,right=20]"})),circle:f(!1,320,320,"childLayout=circleLayout;")}}();Menus.layoutContainerEdgeStyle="html=1;rounded=1;curved=0;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startSize=6;endSize=6;";-Menus.prototype.createHelpLink=function(m){return this.editorUi.createHelpIcon(m)};Menus.prototype.addLinkToItem=function(m,f){null!=m&&m.firstChild.nextSibling.appendChild(this.createHelpLink(f))};Menus.prototype.removeCustomFont=function(m,f){for(var q=0;q<this.customFonts.length;q++)if(this.customFonts[q].name==m&&this.customFonts[q].url==f){this.customFonts.splice(q,1);this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts));break}};Menus.prototype.containsFont=-function(m,f){for(var q=0;q<this.customFonts.length;q++)if(this.customFonts[q].name==m&&this.customFonts[q].url==f)return!0;for(q=0;q<this.defaultFonts.length;q++){var u=this.defaultFonts[q];if("string"!==typeof u&&u.fontFamily==m&&u.fontUrl==f||"string"===typeof u&&u==m&&null==f)return!0}return!1};Menus.prototype.addCustomFont=function(m,f){null==m||this.containsFont(m,f)||(this.customFonts.push({name:m,url:f}),this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts)))};-var k=Menus.prototype.init;Menus.prototype.init=function(){function m(y,d,p){f.editor.isExportToCanvas()?f.showExportDialog(mxResources.get("image"),!1,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,function(A,G,I,L,P,Q,ba,W,Y,X,ca,S,Z,da,N,aa){da=parseInt(A);!isNaN(da)&&0<da&&(f.exportImage(da/100,G&&"png"==y,I,L,P&&"png"==y,ba,!W,Y,y,ca,"png"==y?aa:null,S,Z),null!=p&&p(A,G,I,L,P,Q,ba,W,Y,X,ca,S,Z))}),!0,d,y,!0):f.isOffline()||mxClient.IS_IOS&&navigator.standalone||-f.showRemoteExportDialog(mxResources.get("export"),null,mxUtils.bind(this,function(A,G,I,L,P){f.downloadFile(G&&"png"==y?"xmlpng":y,null,null,A,null,null,I,L,P)}),!1,!0)}k.apply(this,arguments);var f=this.editorUi,q=f.editor.graph,u=mxUtils.bind(q,q.isEnabled);"1"==urlParams.noFileMenu&&(this.defaultMenuItems=this.defaultMenuItems.filter(function(y){return"file"!=y}));f.actions.addAction("new...",function(){var y=f.isOffline(),d=new NewDialog(f,y,!(f.mode==App.MODE_DEVICE&&"chooseFileSystemEntries"in-window));f.showDialog(d.container,y?350:620,y?70:460,!0,!0,function(p){null!=f.sidebar&&f.sidebar.hideTooltip();p&&null==f.getCurrentFile()&&f.showSplash()});d.init()});f.actions.put("insertTemplate",new Action("template...",function(){f.openTemplateDialog()})).isEnabled=u;var x=mxResources.get("page");f.actions.put("insertPage",new Action(mxResources.get("insertPage"),function(){try{f.insertPage()}catch(y){f.handleError(y)}})).isEnabled=function(){return null!=f.currentPage};f.actions.put("removePage",-new Action(mxResources.get("removeIt",[x]),function(){f.removePage(f.currentPage)})).isEnabled=function(){return null!=f.currentPage};f.actions.put("renamePage",new Action(mxResources.get("renameIt",[x])+"...",function(){f.renamePage(f.currentPage)})).isEnabled=function(){return null!=f.currentPage};f.actions.put("duplicatePage",new Action(mxResources.get("duplicateIt",[x]),function(){var y=f.currentPage;f.duplicatePage(y,mxResources.get("copyOf",[y.getName()]))})).isEnabled=function(){return null!=-f.currentPage};f.actions.put("sortPages",new Action(mxResources.get("sortPages"),function(){f.sortPages()})).isEnabled=function(){return null!=f.pages&&1<f.pages.length&&f.editor.graph.isEnabled()};x=f.actions.addAction("shareCursor",function(){f.setShareCursorPosition(!f.isShareCursorPosition())});x.setToggleAction(!0);x.setSelectedCallback(function(){return f.isShareCursorPosition()});x=f.actions.addAction("showRemoteCursors",function(){f.setShowRemoteCursors(!f.isShowRemoteCursors())});x.setToggleAction(!0);-x.setSelectedCallback(function(){return f.isShowRemoteCursors()});x=f.actions.addAction("points",function(){f.editor.graph.view.setUnit(mxConstants.POINTS)});x.setToggleAction(!0);x.setSelectedCallback(function(){return f.editor.graph.view.unit==mxConstants.POINTS});x=f.actions.addAction("inches",function(){f.editor.graph.view.setUnit(mxConstants.INCHES)});x.setToggleAction(!0);x.setSelectedCallback(function(){return f.editor.graph.view.unit==mxConstants.INCHES});x=f.actions.addAction("millimeters",-function(){f.editor.graph.view.setUnit(mxConstants.MILLIMETERS)});x.setToggleAction(!0);x.setSelectedCallback(function(){return f.editor.graph.view.unit==mxConstants.MILLIMETERS});x=f.actions.addAction("meters",function(){f.editor.graph.view.setUnit(mxConstants.METERS)});x.setToggleAction(!0);x.setSelectedCallback(function(){return f.editor.graph.view.unit==mxConstants.METERS});this.put("units",new Menu(mxUtils.bind(this,function(y,d){this.addMenuItems(y,["points","inches","millimeters","meters"],-d);"min"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme||f.menus.addMenuItems(y,["-","pageScale"],d)})));x=f.actions.addAction("pageTabs",function(){f.setTabContainerVisible(!f.isTabContainerVisible(),!0)});x.setToggleAction(!0);x.setSelectedCallback(function(){return f.isTabContainerVisible()});x=f.actions.addAction("ruler",function(){f.setRulerVisible(!f.isRulerVisible())});x.setEnabled(Editor.canvasSupported&&9!=document.documentMode);x.setToggleAction(!0);x.setSelectedCallback(function(){return f.isRulerVisible()});-x=f.actions.addAction("fullscreen",function(){if("1"==urlParams.embedInline)f.setInlineFullscreen(!Editor.inlineFullscreen);else{var y=mxUtils.isAncestorNode(document.body,f.container)?f.container:f.editor.graph.container;null!=y&&(null==document.fullscreenElement?(document.body.requestFullscreen(),y.classList.add("geFullscreen")):(document.exitFullscreen(),y.classList.remove("geFullscreen")))}});x.visible="1"==urlParams.embedInline||window==window.top&&document.fullscreenEnabled&&null!=document.body.requestFullscreen;-x.setToggleAction(!0);x.setSelectedCallback(function(){return"1"==urlParams.embedInline?Editor.inlineFullscreen:null!=document.fullscreenElement});x=f.actions.put("lightMode",new Action("light",function(y){f.setAndPersistDarkMode(!1)}));x.setToggleAction(!0);x.setSelectedCallback(function(){return!f.isAutoDarkMode(!0)&&!Editor.isDarkMode()});x=f.actions.put("darkMode",new Action("dark",function(y){f.setAndPersistDarkMode(!0)}));x.setToggleAction(!0);x.setSelectedCallback(function(){return!f.isAutoDarkMode(!0)&&-Editor.isDarkMode()});x=f.actions.put("autoMode",new Action("automatic",function(y){f.setAndPersistDarkMode("auto")}));x.setToggleAction(!0);x.setSelectedCallback(function(){return f.isAutoDarkMode(!0)});f.actions.addAction("properties...",function(){f.getPublicUrl(f.getCurrentFile(),function(y){y=new FilePropertiesDialog(f,y);f.showDialog(y.container,360,null,!0,!0);y.init()})}).isEnabled=u;window.mxFreehand&&(x=f.actions.put("insertFreehand",new Action("freehand",function(){if(q.isEnabled()){if(null==-f.freehandWindow){var y=mxSettings.getWindowState("freehand");f.freehandWindow=new FreehandWindow(f,null!=y&&null!=y.x?y.x:document.body.offsetWidth-420,null!=y&&null!=y.y?y.y:102,null!=y&&null!=y.w?y.w:180,null!=y&&null!=y.h?y.h:126,!0);f.installWindowPersistence("freehand",f.freehandWindow);null!=y&&f.restoreWindowState("freehand",f.freehandWindow)}q.freehand.isDrawing()?q.freehand.stopDrawing():q.freehand.startDrawing();f.freehandWindow.window.setVisible(q.freehand.isDrawing())}},null,null,"X")),-x.isEnabled=function(){return u()},x.setToggleAction(!0),x.setSelectedCallback(function(){return null!=f.freehandWindow&&f.freehandWindow.window.isVisible()}));f.actions.put("exportXml",new Action("formatXml...",function(){var y=document.createElement("div");y.style.whiteSpace="nowrap";var d=null==f.pages||1>=f.pages.length,p=document.createElement("h3");mxUtils.write(p,mxResources.get("formatXml"));y.appendChild(p);p=document.createElement("div");p.className="geDialogSection";var A=f.addCheckbox(p,-mxResources.get("selectionOnly"),!1,q.isSelectionEmpty(),null,null,null,null,!0),G=f.addCheckbox(p,mxResources.get("allPages"),!d,d,null,null,null,null,!0),I=f.addCheckbox(p,mxResources.get("compressed"),Editor.defaultCompressed,null,null,null,null,null,!0);y.appendChild(p);mxEvent.addListener(A,"change",function(){A.checked?G.setAttribute("disabled","disabled"):G.removeAttribute("disabled")});y=new CustomDialog(f,y,mxUtils.bind(this,function(){f.downloadFile("xml",!I.checked,null,!A.checked,d||!G.checked)}),-null,mxResources.get("export"));f.showDialog(y.container,300,null,!0,!0)}));Editor.enableExportUrl&&f.actions.put("exportUrl",new Action("url...",function(){f.showPublishLinkDialog(mxResources.get("url"),null,null,null,null,null,null,null,function(y,d,p,A,G,I,L,P,Q,ba,W,Y,X,ca,S,Z){L=[];A&&Q&&(Q=ca?f.getHiddenTagsMap():null,L.push("tags="+encodeURIComponent(JSON.stringify(Q||{}))));y=new EmbedDialog(f,f.createLink(y,d,X,A,G,I,null,!0,L,null,p,null,Y,S,Z));f.showDialog(y.container,450,270,!0,!0,null,-!1,null,new mxRectangle(0,0,400,250));y.init()},null,!0,!0)}));f.actions.put("exportJson",new Action("formatJson...",function(){var y=document.createElement("div");y.style.whiteSpace="nowrap";var d=null==f.pages||1>=f.pages.length,p=document.createElement("h3");mxUtils.write(p,mxResources.get("formatJson"));y.appendChild(p);p=document.createElement("div");p.className="geDialogSection";var A=f.editor.graph,G=f.addCheckbox(p,mxResources.get("selectionOnly"),!1,A.isSelectionEmpty(),null,null,null,null,-!0),I=f.addCheckbox(p,mxResources.get("allPages"),!d,d,null,null,null,null,!0),L=f.addCheckbox(p,mxResources.get("includeCopyOfMyDiagram"),!1,null,null,null,null,null,!0),P=f.addCheckbox(p,mxResources.get("compressed"),Editor.defaultCompressed,!0,null,null,null,null,!0);y.appendChild(p);mxEvent.addListener(G,"change",function(){G.checked?I.setAttribute("disabled","disabled"):d||I.removeAttribute("disabled")});mxEvent.addListener(L,"change",function(){L.checked?P.removeAttribute("disabled"):P.setAttribute("disabled",-"disabled")});y=new CustomDialog(f,y,mxUtils.bind(this,function(){var Q=G.checked&&!A.isSelectionEmpty(),ba=!Q&&!d&&I.checked;Q=f.createJsonForExport(ba,L.checked,L.checked&&P.checked,Q);f.saveData(f.getBaseFilename(ba)+".json","json",JSON.stringify(Q,null,2),"application/json")}),null,mxResources.get("export"));f.showDialog(y.container,300,null,!0,!0)}));f.actions.put("exportHtml",new Action("formatHtmlEmbedded...",function(){f.getPublicUrl(f.getCurrentFile(),function(y){f.showHtmlDialog(mxResources.get("export"),-"https://www.drawio.com/docs/manual/export/embed-html/",y,function(d,p,A,G,I,L,P,Q,ba,W,Y,X,ca,S,Z){f.createHtml(d,p,A,G,I,L,P,Q,ba,W,Y,mxUtils.bind(this,function(da,N){var aa=f.getBaseFilename(P);da='\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n<!DOCTYPE html>\n<html>\n<head>\n<title>'+mxUtils.htmlEntities(aa)+'</title>\n<meta charset="utf-8"/>\n</head>\n<body>'+da+"\n"+N+"\n</body>\n</html>";f.saveData(aa+(".drawio"==aa.substring(aa.lenth-7)?"":".drawio")+-".html","html",da,"text/html")}),X,ca,S,Z)})})}));f.actions.put("exportPdf",new Action("formatPdf...",function(){f.showPrintDialog(mxResources.get("formatPdf"),EditorUi.isElectronApp||!f.isOffline()&&!f.printPdfExport?mxUtils.bind(this,function(y,d){y=null!=f.pages?f.pages.length:1;var p=null==f.pages||1>=f.pages.length,A=f.getPageIndex(f.currentPage);A=null!=A?A+1:1;f.downloadFile("pdf",null,null,!d.selection,p||!d.allPages&&d.pagesFrom==A&&d.pagesTo==A,!d.crop,d.transparent,d.scale,null,d.grid,-d.includeCopy,d.allPages||d.pagesFrom==A&&d.pagesTo==A?null:{from:Math.max(0,Math.min(y-1,d.pagesFrom-1)),to:Math.max(0,Math.min(y-1,d.pagesTo-1))},d.border,d.fit,d.sheetsAcross,d.sheetsDown,d.shadows,d.icons)}):null,mxResources.get("export"))}));f.actions.addAction("open...",function(){f.pickFile()});f.actions.addAction("close",function(){function y(){null!=d&&d.removeDraft();f.fileLoaded(new LocalFile(f,f.emptyDiagramXml,null,!0))}var d=f.getCurrentFile();null!=d&&d.isModified()?f.confirm(mxResources.get("allChangesLost"),-null,y,mxResources.get("cancel"),mxResources.get("discardChanges")):y()});f.actions.addAction("extractText",function(y){y=q.getIndexableText(y||q.isSelectionEmpty()?null:q.getSelectionCells());y=new EmbedDialog(f,y,null,null,null,mxResources.get("extractText"));f.showDialog(y.container,450,240,!0,!0);y.init()});f.actions.addAction("editShape...",mxUtils.bind(this,function(){if(1==q.getSelectionCount()){var y=q.getSelectionCell(),d=q.view.getState(y);null!=d&&null!=d.shape&&null!=d.shape.stencil&&-(y=new EditShapeDialog(f,y,mxResources.get("editShape")),f.showDialog(y.container,640,480,!0,!1,null,null,null,new mxRectangle(0,0,300,200)),y.init())}}));f.actions.addAction("revisionHistory...",function(){f.isRevisionHistorySupported()?f.spinner.spin(document.body,mxResources.get("loading"))&&f.getRevisions(mxUtils.bind(this,function(y,d){f.spinner.stop();y=new RevisionDialog(f,y,d);f.showDialog(y.container,640,480,!0,!0);y.init()}),mxUtils.bind(this,function(y){f.handleError(null!=y?y:mxResources.get("notAvailable"))})):-f.showError(mxResources.get("error"),mxResources.get("notAvailable"),mxResources.get("ok"))});f.actions.addAction("createRevision",function(){f.actions.get("save").funct()},null,null,Editor.ctrlKey+"+S");x=f.actions.addAction("synchronize",function(){f.synchronizeCurrentFile("none"==DrawioFile.SYNC)},null,null,Editor.altKey+"+"+Editor.shiftKey+"+S");"none"==DrawioFile.SYNC&&(x.label=mxResources.get("refresh"));f.actions.addAction("upload...",function(){var y=f.getCurrentFile();null!=y&&(window.drawdata=-f.getFileData(),y=null!=y.getTitle()?y.getTitle():f.defaultFilename,f.openLink(window.location.protocol+"//"+window.location.host+"/?create=drawdata&"+(f.mode==App.MODE_DROPBOX?"mode=dropbox&":"")+"title="+encodeURIComponent(y),null,!0))},null,null,null,navigator.onLine&&"1"!=urlParams.stealth&&"1"!=urlParams.lockdown);"undefined"!==typeof MathJax&&(x=f.actions.addAction("mathematicalTypesetting",function(){var y=new ChangePageSetup(f);y.ignoreColor=!0;y.ignoreImage=!0;y.mathEnabled=!f.isMathEnabled();-q.model.execute(y)}),x.setToggleAction(!0),x.setSelectedCallback(function(){return f.isMathEnabled()}),x.isEnabled=u);x=f.actions.put("defaultAdaptiveColors",new Action("defaultAdaptiveColors",function(){var y=new ChangePageSetup(f);y.ignoreColor=!0;y.ignoreImage=!0;y.adaptiveColors="default";q.model.execute(y)}));x.getTitle=function(){return mxResources.get("default")+" ("+mxResources.get(Graph.getDefaultAdaptiveColorsKey())+")"};x.setToggleAction(!0);x.setSelectedCallback(function(){return null==-q.adaptiveColors});x=f.actions.put("automaticAdaptiveColors",new Action("automatic",function(){var y=new ChangePageSetup(f);y.ignoreColor=!0;y.ignoreImage=!0;y.adaptiveColors="auto";q.model.execute(y)}));x.setToggleAction(!0);x.setSelectedCallback(function(){return"auto"==q.adaptiveColors});x=f.actions.put("simpleAdaptiveColors",new Action("simple",function(){var y=new ChangePageSetup(f);y.ignoreColor=!0;y.ignoreImage=!0;y.adaptiveColors="simple";q.model.execute(y)}));x.setToggleAction(!0);x.setSelectedCallback(function(){return"simple"==-q.adaptiveColors});x=f.actions.put("noAdaptiveColors",new Action("none",function(){var y=new ChangePageSetup(f);y.ignoreColor=!0;y.ignoreImage=!0;y.adaptiveColors="none";q.model.execute(y)}));x.setToggleAction(!0);x.setSelectedCallback(function(){return"none"==q.adaptiveColors});this.put("adaptiveColors",new Menu(mxUtils.bind(this,function(y,d){this.addMenuItems(y,["defaultAdaptiveColors","-","automaticAdaptiveColors","simpleAdaptiveColors","noAdaptiveColors"],d)})));var z=f.actions.addAction("autosave",-function(){f.editor.setAutosave(!f.editor.autosave)});z.setToggleAction(!0);z.setSelectedCallback(function(){return z.isEnabled()&&f.editor.autosave});f.actions.addAction("editGeometry...",function(){for(var y=q.getSelectionCells(),d=[],p=0;p<y.length;p++)q.getModel().isVertex(y[p])&&d.push(y[p]);0<d.length&&(y=new EditGeometryDialog(f,d),f.showDialog(y.container,300,null,!0,!0),y.init())},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+M");f.actions.addAction("copyStyle",function(){if(q.isEnabled()&&-1==q.getSelectionCount()){var y=q.getSelectionCell(),d=q.getCellStyle(y,!1);f.copiedStyle={};var p=[],A=[],G;for(G in d)p.push(d[G]),A.push(G);q.copyCellStyles([y],A,p,f.copiedStyle,f.copiedStyle,null,null,null,!0)}},null,null,Editor.altKey+"+C");f.actions.addAction("pasteStyle",function(){q.isEnabled()&&!q.isSelectionEmpty()&&null!=f.copiedStyle&&q.pasteCellStyles(q.includeDescendantParts(q.getSelectionCells()),f.copiedStyle,f.copiedStyle,!0)},null,null,Editor.altKey+"+V");f.actions.addAction("copyTextStyle",-function(){if(q.isEnabled()&&1==q.getSelectionCount()){var y=q.getSelectionCell();y=q.getCellStyle(y,!1);f.copiedTextStyle={};for(var d=0;d<Graph.pasteTextStyles.length;d++){var p=Graph.pasteTextStyles[d];null!=y[p]?f.copiedTextStyle[p]=y[p]:"fontStyle"==p&&(f.copiedTextStyle[p]=0)}}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+C");f.actions.addAction("pasteTextStyle",function(){q.isEnabled()&&!q.isSelectionEmpty()&&null!=f.copiedTextStyle&&q.pasteTextStyles(q.includeDescendantParts(q.getSelectionCells()),-f.copiedTextStyle)},null,null,Editor.altKey+"+"+Editor.shiftKey+"+V");f.actions.put("exportSvg",new Action("formatSvg...",function(){f.showExportDialog(mxResources.get("formatSvg"),!0,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,function(y,d,p,A,G,I,L,P,Q,ba,W,Y,X,ca,S,Z,da){y=parseInt(y);f.lastExportSvgEditable=G;!isNaN(y)&&0<y&&f.exportSvg(y/100,d,p,A,G,I,L,!P,Q,ba,Y,X,ca,null,S,W,da)}),!0,f.lastExportSvgEditable,"svg",!0)}));f.actions.put("exportPng",-new Action("formatPng...",function(){m("png",f.lastExportPngEditable,function(y,d,p,A,G){f.lastExportPngEditable=G})}));f.actions.put("exportJpg",new Action("formatJpg...",function(){m("jpeg")}));f.actions.put("exportWebp",new Action("formatWebp...",function(){m("webp")}));f.actions.put("exportAnimatedGif",new Action(mxResources.get("formatAnimatedGif")+"...",function(){f.showAnimatedGifExportDialog()}));x=f.actions.addAction("copyAsImage",mxUtils.bind(this,function(){var y=mxUtils.sortCells(q.model.getTopmostCells(q.getSelectionCells()));-f.copyImage(y)}),null,null,Editor.ctrlKey+"+"+Editor.altKey+"+X");x.visible=Editor.enableNativeClipboard&&f.editor.isExportToCanvas();x=f.actions.addAction("copyAsSvg",mxUtils.bind(this,function(){var y=mxUtils.sortCells(q.model.getTopmostCells(q.getSelectionCells()));f.copySvg(y)}),null,null,Editor.ctrlKey+"+"+Editor.altKey+"+"+Editor.shiftKey+"+X");x.visible=Editor.enableNativeClipboard&&f.editor.isExportToCanvas();x=f.actions.put("shadowVisible",new Action("shadow",function(){q.setShadowVisible(!q.shadowVisible)}));-x.setToggleAction(!0);x.setSelectedCallback(function(){return q.shadowVisible});f.actions.put("about",new Action("v"+EditorUi.VERSION,function(y,d){mxEvent.isShiftDown(d)&&(EditorUi.isElectronApp||f.isOwnGDriveDomain())&&("1"==urlParams.test?(EditorUi.debug("Debug output disabled"),urlParams.test="0"):(urlParams.test="1",EditorUi.debug("Debug output enabled")))}));f.actions.addAction("support...",function(){EditorUi.isElectronApp?f.openLink("https://github.com/jgraph/drawio-desktop/wiki/Getting-Support"):-f.openLink("https://github.com/jgraph/drawio/wiki/Getting-Support")});f.actions.addAction("downloadDesktop...",function(){f.openLink("https://get.diagrams.net/")});f.actions.addAction("exportOptionsDisabled...",function(){f.handleError({message:mxResources.get("exportOptionsDisabledDetails")},mxResources.get("exportOptionsDisabled"))});f.actions.addAction("keyboardShortcuts...",function(){mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||navigator.standalone?f.openLink("https://app.diagrams.net/shortcuts.svg"):-f.openLink("shortcuts.svg")});f.actions.addAction("quickStart...",function(){"ac.draw.io"===window.location.hostname?f.openLink("https://www.youtube.com/watch?v=s5BG0705MHU"):f.openLink("https://www.youtube.com/watch?v=Z0D96ZikMkc")});x=f.actions.addAction("tags",mxUtils.bind(this,function(){if(null==this.tagsWindow){var y=mxSettings.getWindowState("tags");this.tagsWindow=new TagsWindow(f,null!=y&&null!=y.x?y.x:document.body.offsetWidth-400,null!=y&&null!=y.y?y.y:60,null!=y&&null!=y.w?y.w:212,null!=-y&&null!=y.h?y.h:200);this.tagsWindow.window.addListener("show",mxUtils.bind(this,function(){f.fireEvent(new mxEventObject("tags"))}));this.tagsWindow.window.addListener("hide",function(){f.fireEvent(new mxEventObject("tags"))});f.installWindowPersistence("tags",this.tagsWindow);null!=y&&f.restoreWindowState("tags",this.tagsWindow);this.tagsWindow.window.setVisible(!0);f.fireEvent(new mxEventObject("tags"))}else this.tagsWindow.window.setVisible(!this.tagsWindow.window.isVisible())}),null,null,Editor.ctrlKey+-"+K");x.setToggleAction(!0);x.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.tagsWindow&&this.tagsWindow.window.isVisible()}));x=f.actions.addAction("animation",mxUtils.bind(this,function(){if(null==this.animationWindow){var y=mxSettings.getWindowState("animation");this.animationWindow=new AnimationDialog(f,null!=y&&null!=y.x?y.x:Math.max(0,(document.body.offsetWidth-480)/2),null!=y&&null!=y.y?y.y:120,null!=y&&null!=y.w?y.w:480,null!=y&&null!=y.h?y.h:460);this.animationWindow.window.addListener("show",-mxUtils.bind(this,function(){f.fireEvent(new mxEventObject("animation"))}));this.animationWindow.window.addListener("hide",function(){f.fireEvent(new mxEventObject("animation"))});f.installWindowPersistence("animation",this.animationWindow);null!=y&&f.restoreWindowState("animation",this.animationWindow);this.animationWindow.window.setVisible(!0);f.fireEvent(new mxEventObject("animation"))}else this.animationWindow.window.setVisible(!this.animationWindow.window.isVisible())}));x.setToggleAction(!0);-x.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.animationWindow&&this.animationWindow.window.isVisible()}));(EditorUi.isElectronApp&&(Editor.enableAi||null==Editor.config||null==Editor.config.enableAi&&null==Editor.config.enableChatGpt)||(Editor.enableAi||(null==Editor.config||null==Editor.config.enableAi)&&/ac\.draw\.io$/.test(window.location.hostname)||/aj\.draw\.io$/.test(window.location.hostname))&&!f.isOffline()&&0<Editor.aiActions.length&&f.isExternalDataComms())&&"draw.io"==-f.getServiceName()&&EditorUi.isMermaidSupported()&&(x=f.actions.put("generate",new Action("generate",function(){EditorUi.isElectronApp||Editor.enableAi?null!=f.chatWindow?f.chatWindow.window.setVisible(!f.chatWindow.window.isVisible()):f.openGenerateDialog(""):f.alert('AI features require admin approval<br><a href="https://www.drawio.com/doc/faq/confluence-ai-options" target="_blank">Learn more</a>')})),x.isEnabled=function(){return u()},x.setToggleAction(!0),x.setSelectedCallback(function(){return null!=-f.chatWindow&&f.chatWindow.window.isVisible()}));x=f.actions.addAction("findReplace",mxUtils.bind(this,function(y,d){f.showSearchWindow(q.isEnabled()&&(null==d||!mxEvent.isShiftDown(d)))}),null,null,Editor.ctrlKey+"+F");x=new Action("exportVsdx",function(){var y=null==f.pages||1>=f.pages.length;if(y)f.exportVisio();else{var d=document.createElement("div");d.style.whiteSpace="nowrap";var p=document.createElement("h3");mxUtils.write(p,mxResources.get("formatVsdx"));d.appendChild(p);p=document.createElement("div");-p.className="geDialogSection";var A=f.addCheckbox(p,mxResources.get("allPages"),!y,y);d.appendChild(p);y=new CustomDialog(f,d,mxUtils.bind(this,function(){f.exportVisio(!A.checked)}),null,mxResources.get("export"));f.showDialog(y.container,300,146,!0,!0)}});x.getTitle=function(){return mxResources.get("formatVsdx")+" (beta)..."};f.actions.put("exportVsdx",x);isLocalStorage&&null!=localStorage&&"1"!=urlParams.embed&&f.actions.addAction("configuration...",function(){var y=[[mxResources.get("reset"),-function(){f.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.configurationKey),f.hideDialog(),f.alert(mxResources.get("restartForChangeRequired"))}catch(p){f.handleError(p)}})}]];if(!f.isOfflineApp()&&isLocalStorage&&f.mode!=App.MODE_ATLAS){var d=f.actions.get("plugins");null==d||"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||y.push([mxResources.get("plugins"),d.funct])}EditorUi.isElectronApp||y.push([mxResources.get("link"),-function(p,A){if(0<A.value.length)try{var G=JSON.parse(A.value),I=window.location.protocol+"//"+window.location.host+"/"+f.getSearch()+"#_CONFIG_"+Graph.compress(JSON.stringify(G)),L=new EmbedDialog(f,I);f.showDialog(L.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));L.init()}catch(P){f.handleError(P)}else f.handleError({message:mxResources.get("invalidInput")})}]);"atlassian"!=f.getServiceName()&&"1"!=urlParams.embed&&y.push([mxResources.get("preferences"),function(){f.showLocalStorageDialog(mxResources.get("preferences")+-":",Editor.settingsKey,[[mxResources.get("reset"),function(){f.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.settingsKey),localStorage.removeItem(".drawio-config"),f.hideDialog(),f.alert(mxResources.get("restartForChangeRequired"))}catch(p){f.handleError(p)}})}]])}]);f.showConfigurationEditorDialog(mxResources.get("configuration")+":",Editor.configurationKey,y,"https://www.drawio.com/doc/faq/configure-diagram-editor")});if(mxClient.IS_CHROMEAPP||isLocalStorage)f.updateOfflineLanguages(),-this.put("language",new Menu(mxUtils.bind(this,function(y,d){f.updateOfflineLanguages();var p=mxLanguage;null==urlParams.lang&&isLocalStorage&&(p=mxSettings.settings.language);var A=mxUtils.bind(this,function(I){var L=""==I?mxResources.get("automatic"):mxLanguageMap[I],P=null;if(""!=L){var Q=f.isLanguageAvailableOffline(I);P=y.addItem(L,null,mxUtils.bind(this,function(){f.setAndPersistLanguage(I)}),d,null,Q);Q||P.setAttribute("title",mxResources.get("notInOffline"));(I==p||""==I&&null==p)&&y.addCheckmark(P,-Editor.checkmarkImage)}return P});A("");y.addSeparator(d);for(var G in mxLanguageMap)A(G);"serviceWorker"in navigator&&null!=navigator.serviceWorker.controller&&(y.addSeparator(d),y.addItem(mxResources.get("manage")+"...",null,mxUtils.bind(this,function(){f.showLanguageDialog()}),d))})));f.customLayoutConfig=[];f.actions.addAction("runLayout",function(){f.showCustomLayoutDialog(JSON.stringify(f.customLayoutConfig,null,2))});f.actions.addAction("runLastLayout",function(){null!=f.lastLayoutSpec&&f.executeLayoutSpec(f.lastLayoutSpec,-null,!0)},null,null,Editor.ctrlKey+"+"+Editor.altKey+"+T");f.actions.put("adaptiveColors",new Action("adaptiveColors",function(y){null==f.adaptiveColorsWindow&&(f.adaptiveColorsWindow=new AdaptiveColorsWindow(f,document.body.offsetWidth-520,80,220,180));f.adaptiveColorsWindow.window.setVisible(!0)}));x=this.get("viewZoom");var F=x.funct;x.funct=mxUtils.bind(this,function(y,d){F.apply(this,arguments);"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(y,["-","outline","fullscreen"],-d)});var J=this;x=this.get("layout");var H=x.funct;this.put("legacyLayout",new Menu(H));x.funct=function(y,d){var p=f.actions.get("runLastLayout"),A=y.addItem(mxResources.get("runLastLayout"),null,function(){p.funct()},d,null,u()&&null!=f.lastLayoutSpec);J.addShortcut(A,p);y.addSeparator(d);"undefined"!==typeof ElkLayout?(A=function(G){y.addItem(mxResources.get(G)+"...",null,function(){var I=ElkLayout.MENU_PRESETS[G];ElkLayout.runWithDialog(f,I.algorithm,I.options,mxResources.get(G))},d,null,u())},-A("verticalFlow"),A("horizontalFlow"),y.addSeparator(d),A("verticalTree"),A("horizontalTree"),A("radialTree"),y.addSeparator(d),A("organic")):H.apply(this,arguments);y.addItem(mxResources.get("orgChart")+"...",null,function(){for(var G=null,I=20,L=20,P=function(){"undefined"!==typeof mxOrgChartLayout&&null!=G&&f.tryAndHandle(mxUtils.bind(this,function(){var da=f.editor.graph,N=new mxOrgChartLayout(da,G,I,L),aa=da.getDefaultParent();1<da.model.getChildCount(da.getSelectionCell())&&(aa=da.getSelectionCell());+Editor.prototype.resetGraph=function(){editorResetGraph.apply(this,arguments);null==this.graph.defaultPageFormat&&(this.graph.pageFormat=mxSettings.getPageFormat())};(function(){var b=mxPopupMenu.prototype.showMenu;mxPopupMenu.prototype.showMenu=function(){this.div.style.overflowY="auto";this.div.style.overflowX="hidden";this.div.style.maxHeight=Math.max(document.body.clientHeight,document.documentElement.clientHeight)-(EditorUi.isElectronApp?50:10)+"px";b.apply(this,arguments)};Menus.layoutContainers=function(){var m=function(q,u){u.resizeLayoutRoot=!0;u.resizeNodes=!1;return"childLayout="+Graph.encodeChildLayout([{layout:q,config:u}])+";"},g=function(q,u,x,+z){return{width:u,height:x,style:"group;connectable=0;transparentBounds=1;groupPadding=20;"+z,sidebarStyle:"swimlane;html=1;startSize=20;horizontal="+(q?"0":"1")+";resizable=0;fontSize=12;transparentBounds=1;groupPadding=20;"+z}};return{horizontalFlow:g(!0,460,150,"containerType=tree;"+m("elkLayered",{"elk.direction":"RIGHT","elk.layered.spacing.nodeNodeBetweenLayers":"50","elk.padding":"[top=20,left=40,bottom=20,right=20]",edgeStyle:"orthogonalEdgeStyle",corners:"rounded",extractIsolated:!1})),verticalFlow:g(!1,+270,280,"containerType=tree;"+m("elkLayered",{"elk.direction":"DOWN","elk.layered.spacing.nodeNodeBetweenLayers":"50","elk.padding":"[top=40,left=20,bottom=20,right=20]",edgeStyle:"orthogonalEdgeStyle",corners:"rounded",extractIsolated:!1})),horizontalTree:g(!0,300,160,"containerType=tree;"+m("elkTree",{"elk.direction":"RIGHT","elk.spacing.nodeNode":"40","elk.spacing.edgeNode":"20","elk.padding":"[top=20,left=40,bottom=20,right=20]",corners:"rounded"})),verticalTree:g(!1,280,180,"containerType=tree;"++m("elkTree",{"elk.direction":"DOWN","elk.spacing.nodeNode":"40","elk.spacing.edgeNode":"20","elk.padding":"[top=40,left=20,bottom=20,right=20]",corners:"rounded"})),radialTree:g(!1,320,320,"containerType=tree;"+m("elkRadial",{"elk.padding":"[top=40,left=20,bottom=20,right=20]"})),organic:g(!1,320,320,m("elkOrganic",{"elk.padding":"[top=40,left=20,bottom=20,right=20]"})),circle:g(!1,320,320,"childLayout=circleLayout;")}}();Menus.layoutContainerEdgeStyle="html=1;rounded=1;curved=0;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startSize=6;endSize=6;";+Menus.prototype.createHelpLink=function(m){return this.editorUi.createHelpIcon(m)};Menus.prototype.addLinkToItem=function(m,g){null!=m&&m.firstChild.nextSibling.appendChild(this.createHelpLink(g))};Menus.prototype.removeCustomFont=function(m,g){for(var q=0;q<this.customFonts.length;q++)if(this.customFonts[q].name==m&&this.customFonts[q].url==g){this.customFonts.splice(q,1);this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts));break}};Menus.prototype.containsFont=+function(m,g){for(var q=0;q<this.customFonts.length;q++)if(this.customFonts[q].name==m&&this.customFonts[q].url==g)return!0;for(q=0;q<this.defaultFonts.length;q++){var u=this.defaultFonts[q];if("string"!==typeof u&&u.fontFamily==m&&u.fontUrl==g||"string"===typeof u&&u==m&&null==g)return!0}return!1};Menus.prototype.addCustomFont=function(m,g){null==m||this.containsFont(m,g)||(this.customFonts.push({name:m,url:g}),this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts)))};+var k=Menus.prototype.init;Menus.prototype.init=function(){function m(y,d,p){g.editor.isExportToCanvas()?g.showExportDialog(mxResources.get("image"),!1,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,function(A,G,I,L,P,Q,ba,W,Y,X,ca,S,Z,da,N,aa){da=parseInt(A);!isNaN(da)&&0<da&&(g.exportImage(da/100,G&&"png"==y,I,L,P&&"png"==y,ba,!W,Y,y,ca,"png"==y?aa:null,S,Z),null!=p&&p(A,G,I,L,P,Q,ba,W,Y,X,ca,S,Z))}),!0,d,y,!0):!g.isRemoteExportEnabled()||mxClient.IS_IOS&&+navigator.standalone||g.showRemoteExportDialog(mxResources.get("export"),null,mxUtils.bind(this,function(A,G,I,L,P){g.downloadFile(G&&"png"==y?"xmlpng":y,null,null,A,null,null,I,L,P)}),!1,!0)}k.apply(this,arguments);var g=this.editorUi,q=g.editor.graph,u=mxUtils.bind(q,q.isEnabled);"1"==urlParams.noFileMenu&&(this.defaultMenuItems=this.defaultMenuItems.filter(function(y){return"file"!=y}));g.actions.addAction("new...",function(){var y=g.isOffline(),d=new NewDialog(g,y,!(g.mode==App.MODE_DEVICE&&"chooseFileSystemEntries"in+window));g.showDialog(d.container,y?350:620,y?70:460,!0,!0,function(p){null!=g.sidebar&&g.sidebar.hideTooltip();p&&null==g.getCurrentFile()&&g.showSplash()});d.init()});g.actions.put("insertTemplate",new Action("template...",function(){g.openTemplateDialog()})).isEnabled=u;var x=mxResources.get("page");g.actions.put("insertPage",new Action(mxResources.get("insertPage"),function(){try{g.insertPage()}catch(y){g.handleError(y)}})).isEnabled=function(){return null!=g.currentPage};g.actions.put("removePage",+new Action(mxResources.get("removeIt",[x]),function(){g.removePage(g.currentPage)})).isEnabled=function(){return null!=g.currentPage};g.actions.put("renamePage",new Action(mxResources.get("renameIt",[x])+"...",function(){g.renamePage(g.currentPage)})).isEnabled=function(){return null!=g.currentPage};g.actions.put("duplicatePage",new Action(mxResources.get("duplicateIt",[x]),function(){var y=g.currentPage;g.duplicatePage(y,mxResources.get("copyOf",[y.getName()]))})).isEnabled=function(){return null!=+g.currentPage};g.actions.put("sortPages",new Action(mxResources.get("sortPages"),function(){g.sortPages()})).isEnabled=function(){return null!=g.pages&&1<g.pages.length&&g.editor.graph.isEnabled()};x=g.actions.addAction("shareCursor",function(){g.setShareCursorPosition(!g.isShareCursorPosition())});x.setToggleAction(!0);x.setSelectedCallback(function(){return g.isShareCursorPosition()});x=g.actions.addAction("showRemoteCursors",function(){g.setShowRemoteCursors(!g.isShowRemoteCursors())});x.setToggleAction(!0);+x.setSelectedCallback(function(){return g.isShowRemoteCursors()});x=g.actions.addAction("points",function(){g.editor.graph.view.setUnit(mxConstants.POINTS)});x.setToggleAction(!0);x.setSelectedCallback(function(){return g.editor.graph.view.unit==mxConstants.POINTS});x=g.actions.addAction("inches",function(){g.editor.graph.view.setUnit(mxConstants.INCHES)});x.setToggleAction(!0);x.setSelectedCallback(function(){return g.editor.graph.view.unit==mxConstants.INCHES});x=g.actions.addAction("millimeters",+function(){g.editor.graph.view.setUnit(mxConstants.MILLIMETERS)});x.setToggleAction(!0);x.setSelectedCallback(function(){return g.editor.graph.view.unit==mxConstants.MILLIMETERS});x=g.actions.addAction("meters",function(){g.editor.graph.view.setUnit(mxConstants.METERS)});x.setToggleAction(!0);x.setSelectedCallback(function(){return g.editor.graph.view.unit==mxConstants.METERS});this.put("units",new Menu(mxUtils.bind(this,function(y,d){this.addMenuItems(y,["points","inches","millimeters","meters"],+d);"min"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme||g.menus.addMenuItems(y,["-","pageScale"],d)})));x=g.actions.addAction("pageTabs",function(){g.setTabContainerVisible(!g.isTabContainerVisible(),!0)});x.setToggleAction(!0);x.setSelectedCallback(function(){return g.isTabContainerVisible()});x=g.actions.addAction("ruler",function(){g.setRulerVisible(!g.isRulerVisible())});x.setEnabled(Editor.canvasSupported&&9!=document.documentMode);x.setToggleAction(!0);x.setSelectedCallback(function(){return g.isRulerVisible()});+x=g.actions.addAction("fullscreen",function(){if("1"==urlParams.embedInline)g.setInlineFullscreen(!Editor.inlineFullscreen);else{var y=mxUtils.isAncestorNode(document.body,g.container)?g.container:g.editor.graph.container;null!=y&&(null==document.fullscreenElement?(document.body.requestFullscreen(),y.classList.add("geFullscreen")):(document.exitFullscreen(),y.classList.remove("geFullscreen")))}});x.visible="1"==urlParams.embedInline||window==window.top&&document.fullscreenEnabled&&null!=document.body.requestFullscreen;+x.setToggleAction(!0);x.setSelectedCallback(function(){return"1"==urlParams.embedInline?Editor.inlineFullscreen:null!=document.fullscreenElement});x=g.actions.put("lightMode",new Action("light",function(y){g.setAndPersistDarkMode(!1)}));x.setToggleAction(!0);x.setSelectedCallback(function(){return!g.isAutoDarkMode(!0)&&!Editor.isDarkMode()});x=g.actions.put("darkMode",new Action("dark",function(y){g.setAndPersistDarkMode(!0)}));x.setToggleAction(!0);x.setSelectedCallback(function(){return!g.isAutoDarkMode(!0)&&+Editor.isDarkMode()});x=g.actions.put("autoMode",new Action("automatic",function(y){g.setAndPersistDarkMode("auto")}));x.setToggleAction(!0);x.setSelectedCallback(function(){return g.isAutoDarkMode(!0)});g.actions.addAction("properties...",function(){g.getPublicUrl(g.getCurrentFile(),function(y){y=new FilePropertiesDialog(g,y);g.showDialog(y.container,360,null,!0,!0);y.init()})}).isEnabled=u;window.mxFreehand&&(x=g.actions.put("insertFreehand",new Action("freehand",function(){if(q.isEnabled()){if(null==+g.freehandWindow){var y=mxSettings.getWindowState("freehand");g.freehandWindow=new FreehandWindow(g,null!=y&&null!=y.x?y.x:document.body.offsetWidth-420,null!=y&&null!=y.y?y.y:102,null!=y&&null!=y.w?y.w:180,null!=y&&null!=y.h?y.h:126,!0);g.installWindowPersistence("freehand",g.freehandWindow);null!=y&&g.restoreWindowState("freehand",g.freehandWindow)}q.freehand.isDrawing()?q.freehand.stopDrawing():q.freehand.startDrawing();g.freehandWindow.window.setVisible(q.freehand.isDrawing())}},null,null,"X")),+x.isEnabled=function(){return u()},x.setToggleAction(!0),x.setSelectedCallback(function(){return null!=g.freehandWindow&&g.freehandWindow.window.isVisible()}));g.actions.put("exportXml",new Action("formatXml...",function(){var y=document.createElement("div");y.style.whiteSpace="nowrap";var d=null==g.pages||1>=g.pages.length,p=document.createElement("h3");mxUtils.write(p,mxResources.get("formatXml"));y.appendChild(p);p=document.createElement("div");p.className="geDialogSection";var A=g.addCheckbox(p,+mxResources.get("selectionOnly"),!1,q.isSelectionEmpty(),null,null,null,null,!0),G=g.addCheckbox(p,mxResources.get("allPages"),!d,d,null,null,null,null,!0),I=g.addCheckbox(p,mxResources.get("compressed"),Editor.defaultCompressed,null,null,null,null,null,!0);y.appendChild(p);mxEvent.addListener(A,"change",function(){A.checked?G.setAttribute("disabled","disabled"):G.removeAttribute("disabled")});y=new CustomDialog(g,y,mxUtils.bind(this,function(){g.downloadFile("xml",!I.checked,null,!A.checked,d||!G.checked)}),+null,mxResources.get("export"));g.showDialog(y.container,300,null,!0,!0)}));Editor.enableExportUrl&&g.actions.put("exportUrl",new Action("url...",function(){g.showPublishLinkDialog(mxResources.get("url"),null,null,null,null,null,null,null,function(y,d,p,A,G,I,L,P,Q,ba,W,Y,X,ca,S,Z){L=[];A&&Q&&(Q=ca?g.getHiddenTagsMap():null,L.push("tags="+encodeURIComponent(JSON.stringify(Q||{}))));y=new EmbedDialog(g,g.createLink(y,d,X,A,G,I,null,!0,L,null,p,null,Y,S,Z));g.showDialog(y.container,450,270,!0,!0,null,+!1,null,new mxRectangle(0,0,400,250));y.init()},null,!0,!0)}));g.actions.put("exportJson",new Action("formatJson...",function(){var y=document.createElement("div");y.style.whiteSpace="nowrap";var d=null==g.pages||1>=g.pages.length,p=document.createElement("h3");mxUtils.write(p,mxResources.get("formatJson"));y.appendChild(p);p=document.createElement("div");p.className="geDialogSection";var A=g.editor.graph,G=g.addCheckbox(p,mxResources.get("selectionOnly"),!1,A.isSelectionEmpty(),null,null,null,null,+!0),I=g.addCheckbox(p,mxResources.get("allPages"),!d,d,null,null,null,null,!0),L=g.addCheckbox(p,mxResources.get("includeCopyOfMyDiagram"),!1,null,null,null,null,null,!0),P=g.addCheckbox(p,mxResources.get("compressed"),Editor.defaultCompressed,!0,null,null,null,null,!0);y.appendChild(p);mxEvent.addListener(G,"change",function(){G.checked?I.setAttribute("disabled","disabled"):d||I.removeAttribute("disabled")});mxEvent.addListener(L,"change",function(){L.checked?P.removeAttribute("disabled"):P.setAttribute("disabled",+"disabled")});y=new CustomDialog(g,y,mxUtils.bind(this,function(){var Q=G.checked&&!A.isSelectionEmpty(),ba=!Q&&!d&&I.checked;Q=g.createJsonForExport(ba,L.checked,L.checked&&P.checked,Q);g.saveData(g.getBaseFilename(ba)+".json","json",JSON.stringify(Q,null,2),"application/json")}),null,mxResources.get("export"));g.showDialog(y.container,300,null,!0,!0)}));g.actions.put("exportHtml",new Action("formatHtmlEmbedded...",function(){g.getPublicUrl(g.getCurrentFile(),function(y){g.showHtmlDialog(mxResources.get("export"),+"https://www.drawio.com/docs/manual/export/embed-html/",y,function(d,p,A,G,I,L,P,Q,ba,W,Y,X,ca,S,Z){g.createHtml(d,p,A,G,I,L,P,Q,ba,W,Y,mxUtils.bind(this,function(da,N){var aa=g.getBaseFilename(P);da='\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n<!DOCTYPE html>\n<html>\n<head>\n<title>'+mxUtils.htmlEntities(aa)+'</title>\n<meta charset="utf-8"/>\n</head>\n<body>'+da+"\n"+N+"\n</body>\n</html>";g.saveData(aa+(".drawio"==aa.substring(aa.lenth-7)?"":".drawio")++".html","html",da,"text/html")}),X,ca,S,Z)})})}));g.actions.put("exportPdf",new Action("formatPdf...",function(){g.showPrintDialog(mxResources.get("formatPdf"),!EditorUi.isElectronApp&&g.isPrintPdfExport()?null:mxUtils.bind(this,function(y,d){y=null!=g.pages?g.pages.length:1;var p=null==g.pages||1>=g.pages.length,A=g.getPageIndex(g.currentPage);A=null!=A?A+1:1;g.downloadFile("pdf",null,null,!d.selection,p||!d.allPages&&d.pagesFrom==A&&d.pagesTo==A,!d.crop,d.transparent,d.scale,null,d.grid,d.includeCopy,+d.allPages||d.pagesFrom==A&&d.pagesTo==A?null:{from:Math.max(0,Math.min(y-1,d.pagesFrom-1)),to:Math.max(0,Math.min(y-1,d.pagesTo-1))},d.border,d.fit,d.sheetsAcross,d.sheetsDown,d.shadows,d.icons)}),mxResources.get("export"))}));g.actions.addAction("open...",function(){g.pickFile()});g.actions.addAction("close",function(){function y(){null!=d&&d.removeDraft();g.fileLoaded(new LocalFile(g,g.emptyDiagramXml,null,!0))}var d=g.getCurrentFile();null!=d&&d.isModified()?g.confirm(mxResources.get("allChangesLost"),+null,y,mxResources.get("cancel"),mxResources.get("discardChanges")):y()});g.actions.addAction("extractText",function(y){y=q.getIndexableText(y||q.isSelectionEmpty()?null:q.getSelectionCells());y=new EmbedDialog(g,y,null,null,null,mxResources.get("extractText"));g.showDialog(y.container,450,240,!0,!0);y.init()});g.actions.addAction("editShape...",mxUtils.bind(this,function(){if(1==q.getSelectionCount()){var y=q.getSelectionCell(),d=q.view.getState(y);null!=d&&null!=d.shape&&null!=d.shape.stencil&&+(y=new EditShapeDialog(g,y,mxResources.get("editShape")),g.showDialog(y.container,640,480,!0,!1,null,null,null,new mxRectangle(0,0,300,200)),y.init())}}));g.actions.addAction("revisionHistory...",function(){g.isRevisionHistorySupported()?g.spinner.spin(document.body,mxResources.get("loading"))&&g.getRevisions(mxUtils.bind(this,function(y,d){g.spinner.stop();y=new RevisionDialog(g,y,d);g.showDialog(y.container,640,480,!0,!0);y.init()}),mxUtils.bind(this,function(y){g.handleError(null!=y?y:mxResources.get("notAvailable"))})):+g.showError(mxResources.get("error"),mxResources.get("notAvailable"),mxResources.get("ok"))});g.actions.addAction("createRevision",function(){g.actions.get("save").funct()},null,null,Editor.ctrlKey+"+S");x=g.actions.addAction("synchronize",function(){g.synchronizeCurrentFile("none"==DrawioFile.SYNC)},null,null,Editor.altKey+"+"+Editor.shiftKey+"+S");"none"==DrawioFile.SYNC&&(x.label=mxResources.get("refresh"));g.actions.addAction("upload...",function(){var y=g.getCurrentFile();null!=y&&(window.drawdata=+g.getFileData(),y=null!=y.getTitle()?y.getTitle():g.defaultFilename,g.openLink(window.location.protocol+"//"+window.location.host+"/?create=drawdata&"+(g.mode==App.MODE_DROPBOX?"mode=dropbox&":"")+"title="+encodeURIComponent(y),null,!0))},null,null,null,navigator.onLine&&"1"!=urlParams.stealth&&"1"!=urlParams.lockdown);"undefined"!==typeof MathJax&&(x=g.actions.addAction("mathematicalTypesetting",function(){var y=new ChangePageSetup(g);y.ignoreColor=!0;y.ignoreImage=!0;y.mathEnabled=!g.isMathEnabled();+q.model.execute(y)}),x.setToggleAction(!0),x.setSelectedCallback(function(){return g.isMathEnabled()}),x.isEnabled=u);x=g.actions.put("defaultAdaptiveColors",new Action("defaultAdaptiveColors",function(){var y=new ChangePageSetup(g);y.ignoreColor=!0;y.ignoreImage=!0;y.adaptiveColors="default";q.model.execute(y)}));x.getTitle=function(){return mxResources.get("default")+" ("+mxResources.get(Graph.getDefaultAdaptiveColorsKey())+")"};x.setToggleAction(!0);x.setSelectedCallback(function(){return null==+q.adaptiveColors});x=g.actions.put("automaticAdaptiveColors",new Action("automatic",function(){var y=new ChangePageSetup(g);y.ignoreColor=!0;y.ignoreImage=!0;y.adaptiveColors="auto";q.model.execute(y)}));x.setToggleAction(!0);x.setSelectedCallback(function(){return"auto"==q.adaptiveColors});x=g.actions.put("simpleAdaptiveColors",new Action("simple",function(){var y=new ChangePageSetup(g);y.ignoreColor=!0;y.ignoreImage=!0;y.adaptiveColors="simple";q.model.execute(y)}));x.setToggleAction(!0);x.setSelectedCallback(function(){return"simple"==+q.adaptiveColors});x=g.actions.put("noAdaptiveColors",new Action("none",function(){var y=new ChangePageSetup(g);y.ignoreColor=!0;y.ignoreImage=!0;y.adaptiveColors="none";q.model.execute(y)}));x.setToggleAction(!0);x.setSelectedCallback(function(){return"none"==q.adaptiveColors});this.put("adaptiveColors",new Menu(mxUtils.bind(this,function(y,d){this.addMenuItems(y,["defaultAdaptiveColors","-","automaticAdaptiveColors","simpleAdaptiveColors","noAdaptiveColors"],d)})));var z=g.actions.addAction("autosave",+function(){g.editor.setAutosave(!g.editor.autosave)});z.setToggleAction(!0);z.setSelectedCallback(function(){return z.isEnabled()&&g.editor.autosave});g.actions.addAction("editGeometry...",function(){for(var y=q.getSelectionCells(),d=[],p=0;p<y.length;p++)q.getModel().isVertex(y[p])&&d.push(y[p]);0<d.length&&(y=new EditGeometryDialog(g,d),g.showDialog(y.container,300,null,!0,!0),y.init())},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+M");g.actions.addAction("copyStyle",function(){if(q.isEnabled()&&+1==q.getSelectionCount()){var y=q.getSelectionCell(),d=q.getCellStyle(y,!1);g.copiedStyle={};var p=[],A=[],G;for(G in d)p.push(d[G]),A.push(G);q.copyCellStyles([y],A,p,g.copiedStyle,g.copiedStyle,null,null,null,!0)}},null,null,Editor.altKey+"+C");g.actions.addAction("pasteStyle",function(){q.isEnabled()&&!q.isSelectionEmpty()&&null!=g.copiedStyle&&q.pasteCellStyles(q.includeDescendantParts(q.getSelectionCells()),g.copiedStyle,g.copiedStyle,!0)},null,null,Editor.altKey+"+V");g.actions.addAction("copyTextStyle",+function(){if(q.isEnabled()&&1==q.getSelectionCount()){var y=q.getSelectionCell();y=q.getCellStyle(y,!1);g.copiedTextStyle={};for(var d=0;d<Graph.pasteTextStyles.length;d++){var p=Graph.pasteTextStyles[d];null!=y[p]?g.copiedTextStyle[p]=y[p]:"fontStyle"==p&&(g.copiedTextStyle[p]=0)}}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+C");g.actions.addAction("pasteTextStyle",function(){q.isEnabled()&&!q.isSelectionEmpty()&&null!=g.copiedTextStyle&&q.pasteTextStyles(q.includeDescendantParts(q.getSelectionCells()),+g.copiedTextStyle)},null,null,Editor.altKey+"+"+Editor.shiftKey+"+V");g.actions.put("exportSvg",new Action("formatSvg...",function(){g.showExportDialog(mxResources.get("formatSvg"),!0,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,function(y,d,p,A,G,I,L,P,Q,ba,W,Y,X,ca,S,Z,da){y=parseInt(y);g.lastExportSvgEditable=G;!isNaN(y)&&0<y&&g.exportSvg(y/100,d,p,A,G,I,L,!P,Q,ba,Y,X,ca,null,S,W,da)}),!0,g.lastExportSvgEditable,"svg",!0)}));g.actions.put("exportPng",+new Action("formatPng...",function(){m("png",g.lastExportPngEditable,function(y,d,p,A,G){g.lastExportPngEditable=G})}));g.actions.put("exportJpg",new Action("formatJpg...",function(){m("jpeg")}));g.actions.put("exportWebp",new Action("formatWebp...",function(){m("webp")}));g.actions.put("exportAnimatedGif",new Action(mxResources.get("formatAnimatedGif")+"...",function(){g.showAnimatedGifExportDialog()}));x=g.actions.addAction("copyAsImage",mxUtils.bind(this,function(){var y=mxUtils.sortCells(q.model.getTopmostCells(q.getSelectionCells()));+g.copyImage(y)}),null,null,Editor.ctrlKey+"+"+Editor.altKey+"+X");x.visible=Editor.enableNativeClipboard&&g.editor.isExportToCanvas();x=g.actions.addAction("copyAsSvg",mxUtils.bind(this,function(){var y=mxUtils.sortCells(q.model.getTopmostCells(q.getSelectionCells()));g.copySvg(y)}),null,null,Editor.ctrlKey+"+"+Editor.altKey+"+"+Editor.shiftKey+"+X");x.visible=Editor.enableNativeClipboard&&g.editor.isExportToCanvas();x=g.actions.put("shadowVisible",new Action("shadow",function(){q.setShadowVisible(!q.shadowVisible)}));+x.setToggleAction(!0);x.setSelectedCallback(function(){return q.shadowVisible});g.actions.put("about",new Action("v"+EditorUi.VERSION,function(y,d){mxEvent.isShiftDown(d)&&(EditorUi.isElectronApp||g.isOwnGDriveDomain())&&("1"==urlParams.test?(EditorUi.debug("Debug output disabled"),urlParams.test="0"):(urlParams.test="1",EditorUi.debug("Debug output enabled")))}));g.actions.addAction("support...",function(){EditorUi.isElectronApp?g.openLink("https://github.com/jgraph/drawio-desktop/wiki/Getting-Support"):+g.openLink("https://github.com/jgraph/drawio/wiki/Getting-Support")});g.actions.addAction("downloadDesktop...",function(){g.openLink("https://get.diagrams.net/")});g.actions.addAction("exportOptionsDisabled...",function(){g.handleError({message:mxResources.get("exportOptionsDisabledDetails")},mxResources.get("exportOptionsDisabled"))});g.actions.addAction("keyboardShortcuts...",function(){mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||navigator.standalone?g.openLink("https://app.diagrams.net/shortcuts.svg"):+g.openLink("shortcuts.svg")});g.actions.addAction("quickStart...",function(){"ac.draw.io"===window.location.hostname?g.openLink("https://www.youtube.com/watch?v=s5BG0705MHU"):g.openLink("https://www.youtube.com/watch?v=Z0D96ZikMkc")});x=g.actions.addAction("tags",mxUtils.bind(this,function(){if(null==this.tagsWindow){var y=mxSettings.getWindowState("tags");this.tagsWindow=new TagsWindow(g,null!=y&&null!=y.x?y.x:document.body.offsetWidth-400,null!=y&&null!=y.y?y.y:60,null!=y&&null!=y.w?y.w:212,null!=+y&&null!=y.h?y.h:200);this.tagsWindow.window.addListener("show",mxUtils.bind(this,function(){g.fireEvent(new mxEventObject("tags"))}));this.tagsWindow.window.addListener("hide",function(){g.fireEvent(new mxEventObject("tags"))});g.installWindowPersistence("tags",this.tagsWindow);null!=y&&g.restoreWindowState("tags",this.tagsWindow);this.tagsWindow.window.setVisible(!0);g.fireEvent(new mxEventObject("tags"))}else this.tagsWindow.window.setVisible(!this.tagsWindow.window.isVisible())}),null,null,Editor.ctrlKey++"+K");x.setToggleAction(!0);x.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.tagsWindow&&this.tagsWindow.window.isVisible()}));x=g.actions.addAction("animation",mxUtils.bind(this,function(){if(null==this.animationWindow){var y=mxSettings.getWindowState("animation");this.animationWindow=new AnimationDialog(g,null!=y&&null!=y.x?y.x:Math.max(0,(document.body.offsetWidth-480)/2),null!=y&&null!=y.y?y.y:120,null!=y&&null!=y.w?y.w:480,null!=y&&null!=y.h?y.h:460);this.animationWindow.window.addListener("show",+mxUtils.bind(this,function(){g.fireEvent(new mxEventObject("animation"))}));this.animationWindow.window.addListener("hide",function(){g.fireEvent(new mxEventObject("animation"))});g.installWindowPersistence("animation",this.animationWindow);null!=y&&g.restoreWindowState("animation",this.animationWindow);this.animationWindow.window.setVisible(!0);g.fireEvent(new mxEventObject("animation"))}else this.animationWindow.window.setVisible(!this.animationWindow.window.isVisible())}));x.setToggleAction(!0);+x.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.animationWindow&&this.animationWindow.window.isVisible()}));(EditorUi.isElectronApp&&(Editor.enableAi||null==Editor.config||null==Editor.config.enableAi&&null==Editor.config.enableChatGpt)||(Editor.enableAi||(null==Editor.config||null==Editor.config.enableAi)&&/ac\.draw\.io$/.test(window.location.hostname)||/aj\.draw\.io$/.test(window.location.hostname))&&!g.isOffline()&&0<Editor.aiActions.length&&g.isExternalDataComms())&&"draw.io"==+g.getServiceName()&&EditorUi.isMermaidSupported()&&(x=g.actions.put("generate",new Action("generate",function(){EditorUi.isElectronApp||Editor.enableAi?null!=g.chatWindow?g.chatWindow.window.setVisible(!g.chatWindow.window.isVisible()):g.openGenerateDialog(""):g.alert('AI features require admin approval<br><a href="https://www.drawio.com/doc/faq/confluence-ai-options" target="_blank">Learn more</a>')})),x.isEnabled=function(){return u()},x.setToggleAction(!0),x.setSelectedCallback(function(){return null!=+g.chatWindow&&g.chatWindow.window.isVisible()}));x=g.actions.addAction("findReplace",mxUtils.bind(this,function(y,d){g.showSearchWindow(q.isEnabled()&&(null==d||!mxEvent.isShiftDown(d)))}),null,null,Editor.ctrlKey+"+F");x=new Action("exportVsdx",function(){var y=null==g.pages||1>=g.pages.length;if(y)g.exportVisio();else{var d=document.createElement("div");d.style.whiteSpace="nowrap";var p=document.createElement("h3");mxUtils.write(p,mxResources.get("formatVsdx"));d.appendChild(p);p=document.createElement("div");+p.className="geDialogSection";var A=g.addCheckbox(p,mxResources.get("allPages"),!y,y);d.appendChild(p);y=new CustomDialog(g,d,mxUtils.bind(this,function(){g.exportVisio(!A.checked)}),null,mxResources.get("export"));g.showDialog(y.container,300,146,!0,!0)}});x.getTitle=function(){return mxResources.get("formatVsdx")+" (beta)..."};g.actions.put("exportVsdx",x);isLocalStorage&&null!=localStorage&&"1"!=urlParams.embed&&g.actions.addAction("configuration...",function(){var y=[[mxResources.get("reset"),+function(){g.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.configurationKey),g.hideDialog(),g.alert(mxResources.get("restartForChangeRequired"))}catch(p){g.handleError(p)}})}]];if(!g.isOfflineApp()&&isLocalStorage&&g.mode!=App.MODE_ATLAS){var d=g.actions.get("plugins");null==d||"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||y.push([mxResources.get("plugins"),d.funct])}EditorUi.isElectronApp||y.push([mxResources.get("link"),+function(p,A){if(0<A.value.length)try{var G=JSON.parse(A.value),I=window.location.protocol+"//"+window.location.host+"/"+g.getSearch()+"#_CONFIG_"+Graph.compress(JSON.stringify(G)),L=new EmbedDialog(g,I);g.showDialog(L.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));L.init()}catch(P){g.handleError(P)}else g.handleError({message:mxResources.get("invalidInput")})}]);"atlassian"!=g.getServiceName()&&"1"!=urlParams.embed&&y.push([mxResources.get("preferences"),function(){g.showLocalStorageDialog(mxResources.get("preferences")++":",Editor.settingsKey,[[mxResources.get("reset"),function(){g.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.settingsKey),localStorage.removeItem(".drawio-config"),g.hideDialog(),g.alert(mxResources.get("restartForChangeRequired"))}catch(p){g.handleError(p)}})}]])}]);g.showConfigurationEditorDialog(mxResources.get("configuration")+":",Editor.configurationKey,y,"https://www.drawio.com/doc/faq/configure-diagram-editor")});if(mxClient.IS_CHROMEAPP||isLocalStorage)g.updateOfflineLanguages(),+this.put("language",new Menu(mxUtils.bind(this,function(y,d){g.updateOfflineLanguages();var p=mxLanguage;null==urlParams.lang&&isLocalStorage&&(p=mxSettings.settings.language);var A=mxUtils.bind(this,function(I){var L=""==I?mxResources.get("automatic"):mxLanguageMap[I],P=null;if(""!=L){var Q=g.isLanguageAvailableOffline(I);P=y.addItem(L,null,mxUtils.bind(this,function(){g.setAndPersistLanguage(I)}),d,null,Q);Q||P.setAttribute("title",mxResources.get("notInOffline"));(I==p||""==I&&null==p)&&y.addCheckmark(P,+Editor.checkmarkImage)}return P});A("");y.addSeparator(d);for(var G in mxLanguageMap)A(G);"serviceWorker"in navigator&&null!=navigator.serviceWorker.controller&&(y.addSeparator(d),y.addItem(mxResources.get("manage")+"...",null,mxUtils.bind(this,function(){g.showLanguageDialog()}),d))})));g.customLayoutConfig=[];g.actions.addAction("runLayout",function(){g.showCustomLayoutDialog(JSON.stringify(g.customLayoutConfig,null,2))});g.actions.addAction("runLastLayout",function(){null!=g.lastLayoutSpec&&g.executeLayoutSpec(g.lastLayoutSpec,+null,!0)},null,null,Editor.ctrlKey+"+"+Editor.altKey+"+T");g.actions.put("adaptiveColors",new Action("adaptiveColors",function(y){null==g.adaptiveColorsWindow&&(g.adaptiveColorsWindow=new AdaptiveColorsWindow(g,document.body.offsetWidth-520,80,220,180));g.adaptiveColorsWindow.window.setVisible(!0)}));x=this.get("viewZoom");var F=x.funct;x.funct=mxUtils.bind(this,function(y,d){F.apply(this,arguments);"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(y,["-","outline","fullscreen"],+d)});var J=this;x=this.get("layout");var H=x.funct;this.put("legacyLayout",new Menu(H));x.funct=function(y,d){var p=g.actions.get("runLastLayout"),A=y.addItem(mxResources.get("runLastLayout"),null,function(){p.funct()},d,null,u()&&null!=g.lastLayoutSpec);J.addShortcut(A,p);y.addSeparator(d);"undefined"!==typeof ElkLayout?(A=function(G){y.addItem(mxResources.get(G)+"...",null,function(){var I=ElkLayout.MENU_PRESETS[G];ElkLayout.runWithDialog(g,I.algorithm,I.options,mxResources.get(G))},d,null,u())},+A("verticalFlow"),A("horizontalFlow"),y.addSeparator(d),A("verticalTree"),A("horizontalTree"),A("radialTree"),y.addSeparator(d),A("organic")):H.apply(this,arguments);y.addItem(mxResources.get("orgChart")+"...",null,function(){for(var G=null,I=20,L=20,P=function(){"undefined"!==typeof mxOrgChartLayout&&null!=G&&g.tryAndHandle(mxUtils.bind(this,function(){var da=g.editor.graph,N=new mxOrgChartLayout(da,G,I,L),aa=da.getDefaultParent();1<da.model.getChildCount(da.getSelectionCell())&&(aa=da.getSelectionCell());N.execute(aa)}))},Q=document.createElement("div"),ba=function(da,N){var aa=document.createElement("div");aa.style.marginBottom="8px";var ea=document.createElement("div");ea.style.display="inline-block";ea.style.width="180px";ea.style.verticalAlign="middle";mxUtils.write(ea,mxResources.get(da)+": ");aa.appendChild(ea);N.style.width="160px";N.style.boxSizing="border-box";N.style.verticalAlign="middle";aa.appendChild(N);Q.appendChild(aa)},W=document.createElement("select"),Y=[mxResources.get("linear"),mxResources.get("hanger2"),mxResources.get("hanger4"),mxResources.get("fishbone1"),mxResources.get("fishbone2"),mxResources.get("1ColumnLeft"),mxResources.get("1ColumnRight"),mxResources.get("smart")],X=0;X<Y.length;X++){var ca=document.createElement("option");mxUtils.write(ca,Y[X]);ca.value=X;2==X&&ca.setAttribute("selected","selected");W.appendChild(ca)}mxEvent.addListener(W,"change",function(){G=W.value});ba("orgChartType",W);var S=document.createElement("input");S.type="number";S.value=I;mxEvent.addListener(S,-"change",function(){I=S.value});ba("parentChildSpacing",S);var Z=document.createElement("input");Z.type="number";Z.value=L;mxEvent.addListener(Z,"change",function(){L=Z.value});ba("siblingSpacing",Z);ba=new CustomDialog(f,Q,function(){null==G&&(G=2);f.loadOrgChartLayouts(P)},null,null,"https://www.drawio.com/docs/manual/layouts/org-chart-layout/");f.showDialog(ba.container,355,null,!0,!0)},d,null,u());y.addItem(mxResources.get("circle"),null,mxUtils.bind(this,function(){f.tryAndHandle(mxUtils.bind(this,-function(){var G=f.getSelectedLayoutContainer();if(null!=G)f.setContainerChildLayout(G,"circleLayout");else{var I=new mxCircleLayout(q);f.executeLayout(function(){var L=q.getSelectionCell();if(null==L||0==q.getModel().getChildCount(L))L=q.getDefaultParent();I.execute(L);q.getModel().isVertex(L)&&q.updateGroupBounds([L],2*q.gridSize,!0)},!0)}}))}),d);y.addSeparator(d);"undefined"!==typeof LibavoidRouting&&y.addItem(mxResources.get("orthogonalRouting")+"...",null,mxUtils.bind(this,function(){f.tryAndHandle(mxUtils.bind(this,-function(){f.prompt(mxResources.get("spacing"),LibavoidRouting.shapeBufferDistance,mxUtils.bind(this,function(G){f.tryAndHandle(mxUtils.bind(this,function(){var I=parseFloat(G);LibavoidRouting.run(f,isNaN(I)?null:{shapeBufferDistance:I})}))}))}))}),d);y.addItem(mxResources.get("parallels")+"...",null,mxUtils.bind(this,function(){f.tryAndHandle(mxUtils.bind(this,function(){var G=new mxParallelEdgeLayout(q);G.checkOverlap=!0;f.prompt(mxResources.get("spacing"),G.spacing,mxUtils.bind(this,function(I){f.tryAndHandle(mxUtils.bind(this,-function(){G.spacing=I;f.lastLayoutSpec=[{layout:"mxParallelEdgeLayout",config:{spacing:G.spacing,checkOverlap:!0}}];var L=f.getSelectedLayoutContainer();null!=L?f.setContainerChildLayout(L,f.lastLayoutSpec):f.executeLayout(function(){G.execute(q.getDefaultParent(),q.isSelectionEmpty()?null:q.getSelectionCells())},!1)}))}))}))}),d);"undefined"!==typeof ElkLayout&&(y.addSeparator(d),f.menus.addSubmenu("legacyLayout",y,d,mxResources.get("legacyLayouts")));y.addSeparator(d);f.menus.addMenuItem(y,"runLayout",-d,null,null,mxResources.get("custom")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(y,d){if(mxClient.IS_CHROMEAPP||!f.isOffline()&&!navigator.standalone){var p=y.addItem(mxResources.get("search")+":",null,null,d,null,null,!1);p.style.cursor="default";var A=document.createElement("input");A.setAttribute("type","text");A.setAttribute("size","25");A.style.borderWidth="1px";A.style.marginLeft="8px";mxEvent.addListener(A,"keydown",mxUtils.bind(this,function(G){var I=mxUtils.trim(A.value);-13==G.keyCode&&0<I.length?(this.editorUi.searchHelp(I),A.value="",window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0)):27==G.keyCode&&(A.value="")}));p.firstChild.nextSibling.appendChild(A);mxEvent.addGestureListeners(A,function(G){document.activeElement!=A&&A.focus();mxEvent.consume(G)},function(G){mxEvent.consume(G)},function(G){mxEvent.consume(G)});window.setTimeout(function(){A.focus()},0);EditorUi.isElectronApp?(f.actions.addAction("website...",function(){f.openLink("https://www.drawio.com")}),-f.actions.addAction("check4Updates",function(){f.checkForUpdates()}),f.actions.put("desktopZoomIn",new Action("zoomIn",function(){f.desktopZoomIn()})),f.actions.put("desktopZoomOut",new Action("zoomOut",function(){f.desktopZoomOut()})),f.actions.put("desktopResetZoom",new Action("actualSize",function(){f.desktopResetZoom()})),this.addMenuItems(y,"- keyboardShortcuts quickStart website support -".split(" "),d),"1"!=urlParams.disableUpdate&&this.addMenuItems(y,["check4Updates","-"],d),this.addMenuItems(y,-"desktopResetZoom desktopZoomIn desktopZoomOut - openDevTools - about".split(" "),d)):this.addMenuItems(y,"- keyboardShortcuts quickStart downloadDesktop support - about".split(" "),d)}else this.addMenuItems(y,["keyboardShortcuts","-","about"],d);"1"==urlParams.test&&(y.addSeparator(d),this.addSubmenu("testDevelop",y,d))})));f.actions.addAction("languageCode...",function(){var y=new FilenameDialog(f,Graph.diagramLanguage||"",mxResources.get("ok"),mxUtils.bind(this,function(d){null!=d&&(Graph.diagramLanguage=-0<d.length?d:null,Graph.translateDiagram=!0,q.refresh())}),mxResources.get("languageCode"),null,null,"https://www.drawio.com/blog/translate-diagrams");f.showDialog(y.container,340,80,!0,!0);y.init()});this.put("diagramLanguage",new Menu(mxUtils.bind(this,function(y,d){this.addMenuItems(y,["languageCode","-"],d);d=y.addItem(mxResources.get("disabled"),null,function(){Graph.translateDiagram=!1;q.refresh()},d);Graph.translateDiagram||y.addCheckmark(d,Editor.checkmarkImage)})));if("1"==urlParams.test){mxResources.parse("testDevelop=Develop");+"change",function(){I=S.value});ba("parentChildSpacing",S);var Z=document.createElement("input");Z.type="number";Z.value=L;mxEvent.addListener(Z,"change",function(){L=Z.value});ba("siblingSpacing",Z);ba=new CustomDialog(g,Q,function(){null==G&&(G=2);g.loadOrgChartLayouts(P)},null,null,"https://www.drawio.com/docs/manual/layouts/org-chart-layout/");g.showDialog(ba.container,355,null,!0,!0)},d,null,u());y.addItem(mxResources.get("circle"),null,mxUtils.bind(this,function(){g.tryAndHandle(mxUtils.bind(this,+function(){var G=g.getSelectedLayoutContainer();if(null!=G)g.setContainerChildLayout(G,"circleLayout");else{var I=new mxCircleLayout(q);g.executeLayout(function(){var L=q.getSelectionCell();if(null==L||0==q.getModel().getChildCount(L))L=q.getDefaultParent();I.execute(L);q.getModel().isVertex(L)&&q.updateGroupBounds([L],2*q.gridSize,!0)},!0)}}))}),d);y.addSeparator(d);"undefined"!==typeof LibavoidRouting&&y.addItem(mxResources.get("orthogonalRouting")+"...",null,mxUtils.bind(this,function(){g.tryAndHandle(mxUtils.bind(this,+function(){g.prompt(mxResources.get("spacing"),LibavoidRouting.shapeBufferDistance,mxUtils.bind(this,function(G){g.tryAndHandle(mxUtils.bind(this,function(){var I=parseFloat(G);LibavoidRouting.run(g,isNaN(I)?null:{shapeBufferDistance:I})}))}))}))}),d);y.addItem(mxResources.get("parallels")+"...",null,mxUtils.bind(this,function(){g.tryAndHandle(mxUtils.bind(this,function(){var G=new mxParallelEdgeLayout(q);G.checkOverlap=!0;g.prompt(mxResources.get("spacing"),G.spacing,mxUtils.bind(this,function(I){g.tryAndHandle(mxUtils.bind(this,+function(){G.spacing=I;g.lastLayoutSpec=[{layout:"mxParallelEdgeLayout",config:{spacing:G.spacing,checkOverlap:!0}}];var L=g.getSelectedLayoutContainer();null!=L?g.setContainerChildLayout(L,g.lastLayoutSpec):g.executeLayout(function(){G.execute(q.getDefaultParent(),q.isSelectionEmpty()?null:q.getSelectionCells())},!1)}))}))}))}),d);"undefined"!==typeof ElkLayout&&(y.addSeparator(d),g.menus.addSubmenu("legacyLayout",y,d,mxResources.get("legacyLayouts")));y.addSeparator(d);g.menus.addMenuItem(y,"runLayout",+d,null,null,mxResources.get("custom")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(y,d){if(mxClient.IS_CHROMEAPP||!g.isOffline()&&!navigator.standalone){var p=y.addItem(mxResources.get("search")+":",null,null,d,null,null,!1);p.style.cursor="default";var A=document.createElement("input");A.setAttribute("type","text");A.setAttribute("size","25");A.style.borderWidth="1px";A.style.marginLeft="8px";mxEvent.addListener(A,"keydown",mxUtils.bind(this,function(G){var I=mxUtils.trim(A.value);+13==G.keyCode&&0<I.length?(this.editorUi.searchHelp(I),A.value="",window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0)):27==G.keyCode&&(A.value="")}));p.firstChild.nextSibling.appendChild(A);mxEvent.addGestureListeners(A,function(G){document.activeElement!=A&&A.focus();mxEvent.consume(G)},function(G){mxEvent.consume(G)},function(G){mxEvent.consume(G)});window.setTimeout(function(){A.focus()},0);EditorUi.isElectronApp?(g.actions.addAction("website...",function(){g.openLink("https://www.drawio.com")}),+g.actions.addAction("check4Updates",function(){g.checkForUpdates()}),g.actions.put("desktopZoomIn",new Action("zoomIn",function(){g.desktopZoomIn()})),g.actions.put("desktopZoomOut",new Action("zoomOut",function(){g.desktopZoomOut()})),g.actions.put("desktopResetZoom",new Action("actualSize",function(){g.desktopResetZoom()})),this.addMenuItems(y,"- keyboardShortcuts quickStart website support -".split(" "),d),"1"!=urlParams.disableUpdate&&this.addMenuItems(y,["check4Updates","-"],d),this.addMenuItems(y,+"desktopResetZoom desktopZoomIn desktopZoomOut - openDevTools - about".split(" "),d)):this.addMenuItems(y,"- keyboardShortcuts quickStart downloadDesktop support - about".split(" "),d)}else this.addMenuItems(y,["keyboardShortcuts","-","about"],d);"1"==urlParams.test&&(y.addSeparator(d),this.addSubmenu("testDevelop",y,d))})));g.actions.addAction("languageCode...",function(){var y=new FilenameDialog(g,Graph.diagramLanguage||"",mxResources.get("ok"),mxUtils.bind(this,function(d){null!=d&&(Graph.diagramLanguage=+0<d.length?d:null,Graph.translateDiagram=!0,q.refresh())}),mxResources.get("languageCode"),null,null,"https://www.drawio.com/blog/translate-diagrams");g.showDialog(y.container,340,80,!0,!0);y.init()});this.put("diagramLanguage",new Menu(mxUtils.bind(this,function(y,d){this.addMenuItems(y,["languageCode","-"],d);d=y.addItem(mxResources.get("disabled"),null,function(){Graph.translateDiagram=!1;q.refresh()},d);Graph.translateDiagram||y.addCheckmark(d,Editor.checkmarkImage)})));if("1"==urlParams.test){mxResources.parse("testDevelop=Develop");mxResources.parse("showBoundingBox=Show bounding box");mxResources.parse("createSidebarEntry=Create Sidebar Entry");mxResources.parse("testCheckFile=Check File");mxResources.parse("testDiff=Diff/Sync");mxResources.parse("testChecksum=Checksum");mxResources.parse("testCheckPages=Check Pages");mxResources.parse("testFixPages=Fix Pages");mxResources.parse("testInspect=Inspect");mxResources.parse("testShowConsole=Show Console");mxResources.parse("testXmlImageExport=XML Image Export");mxResources.parse("testOptimize=Remove Inline Images");-mxResources.parse("testPerformance=Performance");f.actions.addAction("createSidebarEntry",mxUtils.bind(this,function(){if(!q.isSelectionEmpty()){var y=q.cloneCells(q.getSelectionCells()),d=q.getBoundingBoxFromGeometry(y,!0);y=q.moveCells(y,-d.x,-d.y);f.showTextDialog("Create Sidebar Entry","this.addDataEntry('tag1 tag2', "+d.width+", "+d.height+", 'The Title', '"+Graph.compress(mxUtils.getXml(q.encodeCells(y)))+"'),")}}));f.actions.addAction("showBoundingBox",mxUtils.bind(this,function(){function y(L){return null==+mxResources.parse("testPerformance=Performance");g.actions.addAction("createSidebarEntry",mxUtils.bind(this,function(){if(!q.isSelectionEmpty()){var y=q.cloneCells(q.getSelectionCells()),d=q.getBoundingBoxFromGeometry(y,!0);y=q.moveCells(y,-d.x,-d.y);g.showTextDialog("Create Sidebar Entry","this.addDataEntry('tag1 tag2', "+d.width+", "+d.height+", 'The Title', '"+Graph.compress(mxUtils.getXml(q.encodeCells(y)))+"'),")}}));g.actions.addAction("showBoundingBox",mxUtils.bind(this,function(){function y(L){return null==L||null==L.boundingBox||!isNaN(L.boundingBox.x)&&!isNaN(L.boundingBox.y)&&!isNaN(L.boundingBox.width)&&!isNaN(L.boundingBox.height)}var d=q.isSelectionEmpty()?q.getGraphBounds():q.getBoundingBox(q.getSelectionCells()),p=q.view.translate,A=q.view.scale;q.insertVertex(q.getDefaultParent(),null,"",d.x/A-p.x,d.y/A-p.y,d.width/A,d.height/A,"fillColor=none;strokeColor=red;");var G=0,I=0;q.view.states.visit(function(L,P){L=!0;y(P.shape)||(console.log("invalid shape",P.cell.id,P.shape),L=!1);y(P.text)||(console.log("invalid text",-P.cell.id,P.text),L=!1);L||G++;I++});console.log("states checked",I,"invalid",G)}));f.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var y=null!=f.pages&&null!=f.getCurrentFile()?f.getCurrentFile().getAnonymizedXmlForPages(f.pages):"";y=new TextareaDialog(f,"Paste Data:",y,function(d){if(0<d.length)try{var p=function(P){function Q(aa){if(null==N[aa]){if(N[aa]=!0,null!=Y[aa]){for(;0<Y[aa].length;){var ea=Y[aa].pop();Q(ea)}delete Y[aa]}}else mxLog.debug(ba+": Visited: "+aa)}var ba=P.parentNode.id,+P.cell.id,P.text),L=!1);L||G++;I++});console.log("states checked",I,"invalid",G)}));g.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var y=null!=g.pages&&null!=g.getCurrentFile()?g.getCurrentFile().getAnonymizedXmlForPages(g.pages):"";y=new TextareaDialog(g,"Paste Data:",y,function(d){if(0<d.length)try{var p=function(P){function Q(aa){if(null==N[aa]){if(N[aa]=!0,null!=Y[aa]){for(;0<Y[aa].length;){var ea=Y[aa].pop();Q(ea)}delete Y[aa]}}else mxLog.debug(ba+": Visited: "+aa)}var ba=P.parentNode.id,W=P.childNodes;P={};for(var Y={},X=null,ca={},S=0;S<W.length;S++){var Z=W[S];if(null!=Z.id&&0<Z.id.length)if(null==P[Z.id]){P[Z.id]=Z.id;var da=Z.getAttribute("parent");null==da?null!=X?mxLog.debug(ba+": Multiple roots: "+Z.id):X=Z.id:(null==Y[da]&&(Y[da]=[]),Y[da].push(Z.id))}else ca[Z.id]=Z.id}W=Object.keys(ca);0<W.length?(W=ba+": "+W.length+" Duplicates: "+W.join(", "),mxLog.debug(W+" (see console)")):mxLog.debug(ba+": Checked");var N={};null==X?mxLog.debug(ba+": No root"):(Q(X),Object.keys(N).length!=-Object.keys(P).length&&(mxLog.debug(ba+": Invalid tree: (see console)"),console.log(ba+": Invalid tree",Y)))};"<"!=d.charAt(0)&&(d=Graph.decompress(d),mxLog.debug("See console for uncompressed XML"),console.log("xml",d));var A=mxUtils.parseXml(d),G=f.getPagesForNode(A.documentElement,"mxGraphModel");if(null!=G&&0<G.length)try{var I=f.getHashValueForPages(G);mxLog.debug("Checksum: ",I)}catch(P){mxLog.debug("Error: ",P.message)}else mxLog.debug("No pages found for checksum");var L=A.getElementsByTagName("root");-for(d=0;d<L.length;d++)p(L[d]);mxLog.show()}catch(P){f.handleError(P),null!=window.console&&console.error(P)}});f.showDialog(y.container,620,460,!0,!0,null,null,null,new mxRectangle(0,0,440,280));y.init()}));var D=null;f.actions.addAction("testDiff",mxUtils.bind(this,function(){if(null!=f.pages){var y=new TextareaDialog(f,"Diff/Sync:","",function(d){var p=f.getCurrentFile();if(0<d.length&&null!=p)try{var A=JSON.parse(d);p.patch([A],null,!0,!0);f.hideDialog()}catch(G){f.handleError(G)}},null,"Close",-null,null,null,!0,null,"Patch",null,[["Snapshot",function(d,p){try{D=f.getPagesForXml(f.getFileData(!0)),y.textarea.value="Snapshot updated "+(new Date).toLocaleString()+" Checksum "+f.getHashValueForPages(D)}catch(A){f.handleError(A)}}],["Diff",function(d,p){try{y.textarea.value=JSON.stringify(f.diffPages(D,f.pages),null,2)}catch(A){f.handleError(A)}}]]);if(null==D)try{D=f.getPagesForXml(f.getFileData(!0)),y.textarea.value="Snapshot created "+(new Date).toLocaleString()+" Checksum "+f.getHashValueForPages(D)}catch(d){f.handleError(d)}else y.textarea.value=-JSON.stringify(f.diffPages(D,f.pages),null,2);f.showDialog(y.container,620,460,!0,!0,null,null,null,new mxRectangle(0,0,440,280));y.init()}else f.alert("No pages")}));f.actions.addAction("testChecksum",mxUtils.bind(this,function(){var y=f.getCurrentFile();null!=f.pages&&null!=y?f.spinner.spin(document.body,mxResources.get("loading"))&&y.getLatestVersion(function(d){f.spinner.stop();var p=f.getHashValueForPages(f.pages),A=y.getCurrentRevisionId(),G=f.getHashValueForPages(d.getShadowPages()),I=d.getDescriptorChecksum(d.getDescriptor()),-L=d.getCurrentRevisionId();console.log("Local File",[y],"modified",y.isModified(),"checksum",p);console.log("Remote File",[d],"rev",L==A,"desc",I==G,"checksum",G);f.alert("Checksums "+(G==p?"match":"no not match"))},function(d){console.log("Error getLatestVersion",d);f.handleError(d)}):console.log("Checksum: no file or pages")}));f.actions.addAction("testCheckPages",mxUtils.bind(this,function(){var y=f.getCurrentFile();console.log("editorUi",f,"file",y);if(null!=y&&y.isRealtime()){console.log("Checksum ownPages",-f.getHashValueForPages(y.ownPages));console.log("Checksum theirPages",f.getHashValueForPages(y.theirPages));console.log("diff ownPages/theirPages",f.diffPages(y.ownPages,y.theirPages));var d=y.getShadowPages();null!=d&&(console.log("Checksum shadowPages",f.getHashValueForPages(d)),console.log("diff shadowPages/ownPages",f.diffPages(d,y.ownPages)),console.log("diff ownPages/shadowPages",f.diffPages(y.ownPages,d)),console.log("diff theirPages/shadowPages",f.diffPages(y.theirPages,d)));null!=y.sync&&-null!=y.sync.snapshot&&(console.log("Checksum snapshot",f.getHashValueForPages(y.sync.snapshot)),console.log("diff ownPages/snapshot",f.diffPages(y.ownPages,y.sync.snapshot)),console.log("diff theirPages/snapshot",f.diffPages(y.theirPages,y.sync.snapshot)),null!=f.pages&&console.log("diff snapshot/actualPages",f.diffPages(y.sync.snapshot,f.pages)));null!=f.pages&&(console.log("diff ownPages/actualPages",f.diffPages(y.ownPages,f.pages)),console.log("diff theirPages/actualPages",f.diffPages(y.theirPages,-f.pages)))}null!=y&&console.log("Shadow pages",[f.getXmlForPages(y.getShadowPages())]);null!=f.pages&&console.log("Checksum actualPages",f.getHashValueForPages(f.pages))}));f.actions.addAction("testFixPages",mxUtils.bind(this,function(){console.log("editorUi",f);var y=f.getCurrentFile();null!=y&&y.isRealtime()&&null!=y.shadowPages&&(console.log("patching actualPages to shadowPages",y.patch([f.diffPages(y.shadowPages,f.pages)])),y.ownPages=f.clonePages(f.pages),y.theirPages=f.clonePages(f.pages),y.shadowPages=-f.clonePages(f.pages),null!=y.sync&&(y.sync.snapshot=f.clonePages(f.pages)))}));f.actions.addAction("testOptimize",mxUtils.bind(this,function(){q.model.beginUpdate();try{var y=q.model.cells,d=0,p=[],A=[],G;for(G in y){var I=y[G],L=q.getCurrentCellStyle(I)[mxConstants.STYLE_IMAGE];null!=L&&"data:"==L.substring(0,5)&&(null==p[L]&&(p[L]=(p[L]||0)+1,d++),A.push(I))}q.setCellStyles(mxConstants.STYLE_IMAGE,null,A);console.log("Removed",d,"image(s) from",A.length,"cell(s): ",[A,p])}finally{q.model.endUpdate()}}));-f.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(f,q.getModel())}));f.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var y=new mxImageExport,d=q.getGraphBounds(),p=q.view.scale,A=mxUtils.createXmlDocument(),G=A.createElement("output");A.appendChild(G);A=new mxXmlCanvas2D(G);A.translate(Math.floor((1-d.x)/p),Math.floor((1-d.y)/p));A.scale(1/p);var I=0,L=A.save;A.save=function(){I++;L.apply(this,arguments)};var P=A.restore;A.restore=function(){I--;P.apply(this,-arguments)};var Q=y.drawShape;y.drawShape=function(ba){mxLog.debug("entering shape",ba,I);Q.apply(this,arguments);mxLog.debug("leaving shape",ba,I)};y.drawState(q.getView().getState(q.model.root),A);mxLog.show();mxLog.debug(mxUtils.getXml(G));mxLog.debug("stateCounter",I)}));f.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=mxPopupMenu.prototype.zIndex-2});var c=null,g=null,l=null,n=null,r=null,t=null,v=null,B=null;f.actions.addAction("testPerformance",-mxUtils.bind(this,function(){null!=c?(q.view.revalidate=c,c=null):(c=q.view.revalidate,q.view.revalidate=function(){var y=Date.now(),d=c.apply(this,arguments);EditorUi.debug("[Performance] mxGraphView.revalidate",[this],"time",Date.now()-y+" ms","args",arguments);return d});null!=g?(f.selectPage=g,g=null):(g=f.selectPage,f.selectPage=function(){var y=Date.now(),d=g.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.selectPage",[this],"time",Date.now()-y+" ms","args",arguments);return d});-null!=l?(f.diffPages=l,l=null):(l=f.diffPages,f.diffPages=function(){var y=Date.now(),d=l.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.diffPages",[this],"time",Date.now()-y+" ms","args",arguments);return d});null!=n?(f.patchPages=n,n=null):(n=f.patchPages,f.patchPages=function(){var y=Date.now(),d=n.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.patchPages",[this],"time",Date.now()-y+" ms","args",arguments);return d});null!=r?(f.clonePages=r,r=null):(r=f.clonePages,f.clonePages=-function(){var y=Date.now(),d=r.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.clonePages",[this],"time",Date.now()-y+" ms","args",arguments);return d});null!=v?(f.getHashValueForPages=v,v=null):(v=f.getHashValueForPages,f.getHashValueForPages=function(){var y=Date.now(),d=v.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getHashValueForPages",[this],"time",Date.now()-y+" ms","args",arguments);return d});null!=B?(f.resolveCrossReferences=B,B=null):(B=f.resolveCrossReferences,-f.resolveCrossReferences=function(){var y=Date.now(),d=B.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.resolveCrossReferences",[this],"time",Date.now()-y+" ms","args",arguments);return d});null!=t?(f.getFileData=t,t=null):(t=f.getFileData,f.getFileData=function(){var y=Date.now(),d=t.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getFileData",[this],"time",Date.now()-y+" ms","args",arguments);return d});EditorUi.debug("[Performance]",null!=c?"Enabled":"Disabled")}));this.put("testDevelop",-new Menu(mxUtils.bind(this,function(y,d){this.addMenuItems(y,"createSidebarEntry showBoundingBox - testCheckPages testChecksum testFixPages - testCheckFile testDiff - testInspect testOptimize - testXmlImageExport -".split(" "),d);var p=y.addItem(mxResources.get("testPerformance"),null,function(){f.actions.get("testPerformance").funct()},d);null!=c&&y.addCheckmark(p,Editor.checkmarkImage);this.addMenuItems(y,["-","testShowConsole"],d)})))}f.actions.put("shapes",new Action("moreShapes...",function(y){mxClient.IS_CHROMEAPP||-!f.isOffline()?f.showDialog((new MoreShapesDialog(f,!0)).container,680,isLocalStorage?mxClient.IS_IOS?500:480:460,!0,!0):f.showDialog((new MoreShapesDialog(f,!1)).container,360,isLocalStorage?mxClient.IS_IOS?300:280:260,!0,!0)}));f.actions.put("createShape",new Action("shape...",function(y){q.isEnabled()&&(y=new mxCell("",new mxGeometry(0,0,120,120),f.defaultCustomShapeStyle),y.vertex=!0,y=new EditShapeDialog(f,y,mxResources.get("editShape")),f.showDialog(y.container,640,480,!0,!1,null,null,null,-new mxRectangle(0,0,300,200),null,"createShape"),y.init())})).isEnabled=u;f.isOffline()||("1"!=urlParams.embed&&(f.actions.put("embedNotion",new Action("notion...",function(){var y=document.createElement("div");y.style.position="absolute";y.style.bottom="12px";y.style.textAlign="center";y.style.width="100%";y.style.left="0px";var d=document.createElement("a");d.setAttribute("href","javascript:void(0);");d.setAttribute("target","_blank");d.style.cursor="pointer";mxUtils.write(d,mxResources.get("getNotionChromeExtension"));-y.appendChild(d);mxUtils.setPrefixedStyle(d.style,"transition","all 1s ease");mxUtils.setOpacity(d,0);window.setTimeout(function(){mxUtils.setOpacity(d,100)},300);mxEvent.addListener(d,"click",function(p){f.openLink("https://chrome.google.com/webstore/detail/drawio-for-notion/plhaalebpkihaccllnkdaokdoeaokmle");mxEvent.consume(p)});f.getPublicUrl(f.getCurrentFile(),function(p){f.showPublishLinkDialog(mxResources.get("notion"),null,null,!0,"https://www.drawio.com/blog/drawio-notion",y,p,f.getCurrentFile(),-function(A,G,I,L,P,Q,ba,W,Y,X,ca,S,Z,da,N,aa){ba=["border=0"];Y&&(Y=da?f.getHiddenTagsMap():null,ba.push("tags="+encodeURIComponent(JSON.stringify(Y||{}))));A=new EmbedDialog(f,f.createLink(A,G,Z,L,P,Q,"public"==X?p:null,"copy"==X,ba,null,I,null,S,N,aa));f.showDialog(A.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));A.init()},null,!0)})})),f.actions.addAction("microsoftOffice...",function(){f.openLink("https://office.draw.io")})),f.actions.put("embedHtml",new Action("html...",function(){f.getPublicUrl(f.getCurrentFile(),-function(y){f.showHtmlDialog(mxResources.get("create"),"https://www.drawio.com/docs/manual/export/embed-html/",y,function(d,p,A,G,I,L,P,Q,ba,W,Y,X,ca,S,Z){f.createHtml(d,p,A,G,I,L,P,Q,ba,W,Y,mxUtils.bind(this,function(da,N){f.saveData("embed.html","html","\x3c!-- "+f.editor.appName+" diagram --\x3e\n"+da+"\n"+N+"\n","text/html")}),X,ca,S,Z)})})})),f.actions.put("liveImage",new Action("Live image...",function(){var y=f.getCurrentFile();null!=y&&f.getPublicUrl(y,function(d){null!=d?(d=new EmbedDialog(f,-'<img src="'+(y.constructor!=DriveFile?d:"https://drive.google.com/uc?id="+y.getId())+'"/>'),f.showDialog(d.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250)),d.init()):f.handleError({message:mxResources.get("invalidPublicUrl")})})})),f.actions.put("embedImage",new Action("image...",function(){f.showEmbedImageDialog(function(y,d,p,A,G,I,L,P){f.spinner.spin(document.body,mxResources.get("loading"))&&f.createEmbedImage(y,d,p,A,G,I,L,P,function(Q){f.spinner.stop();f.saveData("embed.html",-"html",Q,"text/html")},function(Q){f.spinner.stop();f.handleError(Q)})},mxResources.get("image"),mxResources.get("retina"),f.editor.isExportToCanvas(),"https://www.drawio.com/docs/manual/export/embed-diagram/")})),f.actions.put("embedSvg",new Action("formatSvg...",function(){f.showEmbedImageDialog(function(y,d,p,A,G,I,L,P,Q,ba){f.spinner.spin(document.body,mxResources.get("loading"))&&f.createEmbedSvg(y,d,p,A,G,I,L,P,Q,ba,function(W){f.spinner.stop();f.saveData("embed.html","html",W,"text/html")},-function(W){f.spinner.stop();f.handleError(W)})},mxResources.get("formatSvg"),mxResources.get("image"),!0,"https://www.drawio.com/docs/manual/export/embed-svg/",!0,!0)})),f.actions.put("embedIframe",new Action("iframe...",function(){f.getPublicUrl(f.getCurrentFile(),function(y){var d=q.getGraphBounds();f.showPublishLinkDialog(mxResources.get("iframe"),"100%",Math.ceil(Math.max(100,d.height/q.view.scale))+2,null,null,null,y,f.getCurrentFile(),function(p,A,G,I,L,P,Q,ba,W,Y,X,ca,S,Z,da,N){var aa=[];-W&&(W=Z?f.getHiddenTagsMap():null,aa.push("tags="+encodeURIComponent(JSON.stringify(W||{}))));p=new EmbedDialog(f,'<iframe frameborder="0" style="width:'+Q+";height:"+ba+';" src="'+f.createLink(p,A,S,I,L,P,"public"==Y?y:null,"copy"==Y,aa,null,G,X,ca,da,N)+'"'+(X?' allowtransparency="true"':"")+"></iframe>");f.showDialog(p.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));p.init()},!0,!0)})})));f.actions.put("publishLink",new Action("link...",function(){f.getPublicUrl(f.getCurrentFile(),-function(y){f.showPublishLinkDialog(null,null,null,null,null,null,y,f.getCurrentFile(),function(d,p,A,G,I,L,P,Q,ba,W,Y,X,ca,S,Z,da){P=[];G&&ba&&(ba=S?f.getHiddenTagsMap():null,P.push("tags="+encodeURIComponent(JSON.stringify(ba||{}))));d=new EmbedDialog(f,f.createLink(d,p,ca,G,I,L,"public"==W?y:null,"copy"==W,P,null,A,null,X,Z,da));f.showDialog(d.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));d.init()},null,!0)})},null,null,null,!f.isOffline()));if(isLocalStorage||mxClient.IS_CHROMEAPP)x=-f.actions.addAction("scratchpad",function(){f.toggleScratchpad()}),x.setToggleAction(!0),x.setSelectedCallback(function(){return null!=f.scratchpad}),"0"!=urlParams.plugins&&f.actions.addAction("plugins...",function(){f.showDialog((new PluginsDialog(f)).container,380,null,!0,!1)});window.matchMedia&&null!=document.getElementById("high-contrast-stylesheet")&&(x=f.actions.addAction("highContrast",function(){f.setAndPersistHighContrast(!f.isHighContrast())}),x.setToggleAction(!0),x.setSelectedCallback(function(){return f.isHighContrast()}));-x=f.actions.addAction("search",function(){if(null!=f.sidebar){var y=f.sidebar.isEntryVisible("search");f.sidebar.showPalette("search",!y);Editor.isSettingsEnabled()&&(mxSettings.settings.search=!y,mxSettings.save())}});x.label=mxResources.get("searchShapes");x.setToggleAction(!0);x.setSelectedCallback(function(){return null!=f.sidebar&&f.sidebar.isEntryVisible("search")});f.actions.get("clearDefaultStyle").funct=function(y){q.isEnabled()&&("undefined"!==typeof mxSettings&&null!=mxSettings.setCurrentEdgeStyle&&-null!=mxSettings.settings&&mxSettings.setCurrentEdgeStyle(null),f.clearDefaultStyle(),Editor.sketchMode&&f.setSketchMode(!1))};"1"==urlParams.embed&&(f.actions.get("saveAs").setEnabled(!1),f.actions.get("save").funct=function(y){q.isEditing()&&q.stopEditing();var d="0"!=urlParams.pages||null!=f.pages&&1<f.pages.length?f.getFileData(!0):mxUtils.getXml(f.editor.getGraphXml());if("json"==urlParams.proto){var p=f.createLoadMessage("save");p.xml=d;!0!==y||"1"!=urlParams.saveAndExit&&"1"!=urlParams.publishClose||-(p.exit=!0);d=JSON.stringify(p)}(window.opener||window.parent).postMessage(d,"*");"0"!=urlParams.modified&&"1"!=urlParams.keepmodified&&(f.editor.modified=!1,f.clearStatus());y=f.getCurrentFile();null==y||y.constructor==EmbedFile||y.constructor==LocalFile&&null==y.mode||f.saveFile()},f.actions.addAction("saveAndExit",function(){"1"==urlParams.toSvg?f.sendEmbeddedSvgExport():f.actions.get("save").funct(!0)},null,null,Editor.ctrlKey+"+S").label="1"==urlParams.publishClose?mxResources.get("publish"):-mxResources.get("saveAndExit"),f.actions.addAction("exit",function(){if("1"==urlParams.embedInline)f.sendEmbeddedSvgExport();else{var y=function(){f.editor.modified=!1;var d="json"==urlParams.proto?JSON.stringify({event:"exit",modified:f.editor.modified}):"";(window.opener||window.parent).postMessage(d,"*")};f.editor.modified?f.confirm(mxResources.get("allChangesLost"),null,y,mxResources.get("cancel"),mxResources.get("discardChanges")):y()}},null,null,"1"==urlParams.embedInline?"Escape":null));this.put("exportAs",-new Menu(mxUtils.bind(this,function(y,d){f.editor.isExportToCanvas()?(this.addMenuItems(y,["exportPng"],d),Editor.jpgSupported&&this.addMenuItems(y,["exportJpg"],d),Editor.webpSupported&&this.addMenuItems(y,["exportWebp"],d)):f.isOffline()||mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(y,["exportPng","exportJpg"],d);f.editor.isExportToCanvas()&&this.addMenuItems(y,["exportAnimatedGif"],d);this.addMenuItems(y,["exportSvg","-"],d);f.isOffline()||f.printPdfExport?this.addMenuItems(y,["exportPdf"],-d):f.isOffline()||mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(y,["exportPdf"],d);!f.vsdxExportEnabled()||"undefined"===typeof VsdxExport&&f.isOffline()||this.addMenuItems(y,["exportVsdx"],d);var p=["-","exportHtml","exportXml"];Editor.enableExportUrl&&p.push("exportUrl");p.push("exportJson");this.addMenuItems(y,p,d);f.isOffline()||(y.addSeparator(d),this.addMenuItem(y,"export",d).firstChild.nextSibling.innerHTML=mxResources.get("advanced")+"...");mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||-"min"!=Editor.currentTheme||f.isOffline()||this.addMenuItems(y,["publishLink"],d);f.mode==App.MODE_ATLAS||"1"==urlParams.extAuth||"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||f.isOffline()||(y.addSeparator(d),f.menus.addSubmenu("embed",y,d))})));this.put("importFrom",new Menu(mxUtils.bind(this,function(y,d){function p(I){I.pickFile(function(L){f.spinner.spin(document.body,mxResources.get("loading"))&&I.getFile(L,function(P){var Q="data:image/"==P.getData().substring(0,-11)?G(P.getTitle()):"text/xml";/\.svg$/i.test(P.getTitle())&&!f.editor.isDataSvg(P.getData())&&(P.setData(Editor.createSvgDataUri(P.getData())),Q="image/svg+xml");A(P.getData(),Q,P.getTitle())},function(P){f.handleError(P,null!=P?mxResources.get("errorLoadingFile"):null)},I==f.drive)},!0)}var A=mxUtils.bind(this,function(I,L,P){var Q=q.view,ba=q.getGraphBounds(),W=q.snap(Math.ceil(Math.max(0,ba.x/Q.scale-Q.translate.x)+4*q.gridSize)),Y=q.snap(Math.ceil(Math.max(0,(ba.y+ba.height)/Q.scale-Q.translate.y)+-4*q.gridSize));"data:image/"==I.substring(0,11)?f.loadImage(I,mxUtils.bind(this,function(X){var ca=!0,S=mxUtils.bind(this,function(){f.resizeImage(X,I,mxUtils.bind(this,function(Z,da,N){Z=ca?Math.min(1,Math.min(f.maxImageSize/da,f.maxImageSize/N)):1;f.importFile(I,L,W,Y,Math.round(da*Z),Math.round(N*Z),P,function(aa){f.spinner.stop();q.setSelectionCells(aa);q.scrollCellToVisible(q.getSelectionCell())})}),ca)});I.length>f.resampleThreshold?f.confirmImageResize(function(Z){ca=Z;S()}):S()}),mxUtils.bind(this,-function(){f.handleError({message:mxResources.get("cannotOpenFile")})})):f.importFile(I,L,W,Y,0,0,P,function(X){f.spinner.stop();q.setSelectionCells(X);q.scrollCellToVisible(q.getSelectionCell())})}),G=mxUtils.bind(this,function(I){var L="text/xml";/\.png$/i.test(I)?L="image/png":/\.jpe?g$/i.test(I)?L="image/jpg":/\.gif$/i.test(I)?L="image/gif":/\.pdf$/i.test(I)&&(L="application/pdf");return L});"undefined"!=typeof google&&"undefined"!=typeof google.picker&&(null!=f.drive?y.addItem(mxResources.get("googleDrive")+-"...",null,function(){p(f.drive)},d):f.isModeEnabled(App.MODE_GOOGLE)&&y.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1));f.isModeReady(App.MODE_ONEDRIVE)?y.addItem(mxResources.get("oneDrive")+"...",null,function(){p(f.oneDrive)},d):f.isModeEnabled(App.MODE_ONEDRIVE)&&y.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);f.isModeReady(App.MODE_DROPBOX)?y.addItem(mxResources.get("dropbox")+-"...",null,function(){p(f.dropbox)},d):f.isModeEnabled(App.MODE_DROPBOX)&&y.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);y.addSeparator(d);f.isModeReady(App.MODE_GITHUB)&&y.addItem(mxResources.get("github")+"...",null,function(){p(f.gitHub)},d);f.isModeReady(App.MODE_GITLAB)&&y.addItem(mxResources.get("gitlab")+"...",null,function(){p(f.gitLab)},d);f.isModeReady(App.MODE_TRELLO)?y.addItem(mxResources.get("trello")+"...",null,function(){p(f.trello)},-d):f.isModeEnabled(App.MODE_TRELLO)&&y.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);y.addSeparator(d);isLocalStorage&&"0"!=urlParams.browser&&y.addItem(mxResources.get("browser")+"...",null,function(){f.importLocalFile(!1)},d);"1"!=urlParams.noDevice&&y.addItem(mxResources.get("device")+"...",null,function(){f.importLocalFile(!0)},d);f.isOffline()||(y.addSeparator(d),y.addItem(mxResources.get("url")+"...",null,function(){var I=new FilenameDialog(f,-"",mxResources.get("import"),function(L){if(null!=L&&0<L.length&&f.spinner.spin(document.body,mxResources.get("loading"))){var P=/(\.png)($|\?)/i.test(L)?"image/png":"text/xml";f.editor.loadUrl(PROXY_URL+"?url="+encodeURIComponent(L),function(Q){A(Q,P,L)},function(){f.spinner.stop();f.handleError(null,mxResources.get("errorLoadingFile"))},"image/png"==P)}},mxResources.get("url"));f.showDialog(I.container,300,80,!0,!0);I.init()},d))}))).isEnabled=u;this.put("dynamicAppearance",new Menu(mxUtils.bind(this,-function(y,d){var p=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;"simple"==Editor.currentTheme&&(750>p&&this.addSubmenu("viewZoom",y,d,mxResources.get("zoom")),460>p&&f.isPageMenuVisible()&&this.addSubmenu("pages",y,d),320>p&&this.addSubmenu("insert",y,d),360>p&&"1"!=urlParams.embed&&"draw.io"==f.getServiceName()&&this.addSubmenu("share",y,d))})));this.put("appearance",new Menu(mxUtils.bind(this,function(y,d){if(f.isAutoDarkModeSupported()){var p=f.menus.addMenuItem(y,-"autoMode",d);null!=p&&p.setAttribute("title",mxResources.get("automatic")+" ("+mxResources.get(Editor.isDarkMode()?"dark":"light")+")")}this.addMenuItems(y,["lightMode","darkMode","-"],d);p=f.menus.addMenuItem(y,"highContrast",d);(!f.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&f.menus.addLinkToItem(p,"https://github.com/jgraph/drawio/issues/4296")})));f.actions.addAction("addToScratchpad",function(y){q.isSelectionEmpty()||null==f.addSelectionToScratchpad||f.addSelectionToScratchpad(y)});-f.actions.addAction("accounts...",function(){f.toggleUserPanel();f.userPanel.style.right="10px";f.userPanel.style.top="10px"});this.put("theme",new Menu(mxUtils.bind(this,function(y,d){var p="1"==urlParams.sketch?"sketch":mxSettings.getUi(),A=y.addItem(mxResources.get("automatic"),null,function(){f.setCurrentTheme("")},d),G=y.addItem(mxResources.get("classic"),null,function(){f.setCurrentTheme("kennedy")},d),I=!1;if("kennedy"==p||"dark"==p)y.addCheckmark(G,Editor.checkmarkImage),I=!0;for(var L=0;L<-Editor.themes.length;L++)mxUtils.bind(this,function(P){G=y.addItem(mxResources.get("min"==P?"minimal":P),null,function(){f.setCurrentTheme(P)},d);p==P&&(y.addCheckmark(G,Editor.checkmarkImage),I=!0);"simple"==P&&y.addSeparator(d)})(Editor.themes[L]);I||y.addCheckmark(A,Editor.checkmarkImage)})));x=this.editorUi.actions.addAction("rename...",mxUtils.bind(this,function(){var y=this.editorUi.getCurrentFile();if(null!=y)if(y.constructor==LocalFile&&null!=y.fileHandle)f.showSaveFilePicker(mxUtils.bind(f,-function(p,A){y.invalidFileHandle=null;y.fileHandle=p;y.title=A.name;y.desc=A;f.save(A.name)}),null,f.createFileSystemOptions(y.getTitle()));else{var d=null!=y.getTitle()?y.getTitle():this.editorUi.defaultFilename;d=new FilenameDialog(this.editorUi,d,mxResources.get("rename"),mxUtils.bind(this,function(p){null!=p&&0<p.length&&null!=y&&p!=y.getTitle()&&this.editorUi.spinner.spin(document.body,mxResources.get("renaming"))&&y.rename(p,mxUtils.bind(this,function(A){this.editorUi.spinner.stop()}),mxUtils.bind(this,-function(A){this.editorUi.handleError(A,null!=A?mxResources.get("errorRenamingFile"):null)}))}),y.constructor==DriveFile||y.constructor==StorageFile?mxResources.get("diagramName"):null,function(p){if(null!=p&&0<p.length)return!0;f.showError(mxResources.get("error"),mxResources.get("invalidName"),mxResources.get("ok"));return!1},null,FilenameDialog.filenameHelpLink,null,null,f.editor.fileExtensions);this.editorUi.showDialog(d.container,340,100,!0,!0);d.init()}}));x.isEnabled=function(){return this.enabled&&-u.apply(this,arguments)};x.visible="1"!=urlParams.embed;f.actions.addAction("makeCopy...",mxUtils.bind(this,function(){var y=f.getCurrentFile();if(null!=y){var d=f.getCopyFilename(y);y.constructor==DriveFile?(d=new SaveDialog(f,d,mxUtils.bind(this,function(p,A,G){f.hideDialog();y.copyFile(mxUtils.bind(this,function(I){y.move(G,mxUtils.bind(this,function(L){f.spinner.stop()}),mxUtils.bind(this,function(L){f.handleError(L)}))}),mxUtils.bind(this,function(I){f.handleError(I)}),p.value)}),null,null,null,-null,null,null,[App.MODE_GOOGLE],mxResources.get("ok")),f.showDialog(d.container,420,162,!0,!1,mxUtils.bind(this,function(){f.hideDialog()})),d.init()):f.editor.editAsNew(this.editorUi.getFileData(!0),d)}}));x=new Action("openFolder",function(y,d){y=f.getCurrentFile();null!=y&&f.openLink(y.getFolderUrl())});x.getTitle=function(){return mxResources.get("openIt",[mxResources.get("folder")])+"..."};f.actions.put("openFolder",x);f.actions.addAction("openFile...",mxUtils.bind(this,function(){var y=f.getCurrentFile();-null!=y&&f.openLink(y.getFileUrl())}));f.actions.addAction("moveToFolder...",mxUtils.bind(this,function(){var y=f.getCurrentFile();if(y.getMode()==App.MODE_GOOGLE||y.getMode()==App.MODE_ONEDRIVE){var d=new SaveDialog(f,"",mxUtils.bind(this,function(p,A,G){f.hideDialog();f.spinner.spin(document.body,mxResources.get("moving"))&&y.move(G,mxUtils.bind(this,function(I){f.spinner.stop()}),mxUtils.bind(this,function(I){f.handleError(I)}))}),null,null,null,null,null,y.getMode());f.showDialog(d.container,-420,82,!0,!1,mxUtils.bind(this,function(){f.hideDialog()}));d.init()}}));this.put("publish",new Menu(mxUtils.bind(this,function(y,d){this.addMenuItems(y,["publishLink","presentationMode"],d)})));f.actions.put("presentationMode",new Action("presentationMode...",function(){var y=Editor.isDarkMode(),d=document.createElement("div");d.style.cssText="position:fixed;inset:0;z-index:999;background-color:#000000";document.body.appendChild(d);for(var p={},A="pages page-id nav layers dark toolbar".split(" "),-G=0;G<A.length;G++)p[A[G]]=urlParams[A[G]];urlParams.pages="1";urlParams["page-id"]=null!=f.currentPage?f.currentPage.getId():null;urlParams.nav="1";urlParams.layers="1";urlParams.dark=y?"1":"0";urlParams.toolbar="0";G=EditorUi.prototype.updateActionStates;var I=EditorUi.prototype.addBeforeUnloadListener,L=EditorUi.prototype.addChromelessClickHandler;EditorUi.prototype.updateActionStates=function(){};EditorUi.prototype.addBeforeUnloadListener=function(){};EditorUi.prototype.addChromelessClickHandler=+Object.keys(P).length&&(mxLog.debug(ba+": Invalid tree: (see console)"),console.log(ba+": Invalid tree",Y)))};"<"!=d.charAt(0)&&(d=Graph.decompress(d),mxLog.debug("See console for uncompressed XML"),console.log("xml",d));var A=mxUtils.parseXml(d),G=g.getPagesForNode(A.documentElement,"mxGraphModel");if(null!=G&&0<G.length)try{var I=g.getHashValueForPages(G);mxLog.debug("Checksum: ",I)}catch(P){mxLog.debug("Error: ",P.message)}else mxLog.debug("No pages found for checksum");var L=A.getElementsByTagName("root");+for(d=0;d<L.length;d++)p(L[d]);mxLog.show()}catch(P){g.handleError(P),null!=window.console&&console.error(P)}});g.showDialog(y.container,620,460,!0,!0,null,null,null,new mxRectangle(0,0,440,280));y.init()}));var D=null;g.actions.addAction("testDiff",mxUtils.bind(this,function(){if(null!=g.pages){var y=new TextareaDialog(g,"Diff/Sync:","",function(d){var p=g.getCurrentFile();if(0<d.length&&null!=p)try{var A=JSON.parse(d);p.patch([A],null,!0,!0);g.hideDialog()}catch(G){g.handleError(G)}},null,"Close",+null,null,null,!0,null,"Patch",null,[["Snapshot",function(d,p){try{D=g.getPagesForXml(g.getFileData(!0)),y.textarea.value="Snapshot updated "+(new Date).toLocaleString()+" Checksum "+g.getHashValueForPages(D)}catch(A){g.handleError(A)}}],["Diff",function(d,p){try{y.textarea.value=JSON.stringify(g.diffPages(D,g.pages),null,2)}catch(A){g.handleError(A)}}]]);if(null==D)try{D=g.getPagesForXml(g.getFileData(!0)),y.textarea.value="Snapshot created "+(new Date).toLocaleString()+" Checksum "+g.getHashValueForPages(D)}catch(d){g.handleError(d)}else y.textarea.value=+JSON.stringify(g.diffPages(D,g.pages),null,2);g.showDialog(y.container,620,460,!0,!0,null,null,null,new mxRectangle(0,0,440,280));y.init()}else g.alert("No pages")}));g.actions.addAction("testChecksum",mxUtils.bind(this,function(){var y=g.getCurrentFile();null!=g.pages&&null!=y?g.spinner.spin(document.body,mxResources.get("loading"))&&y.getLatestVersion(function(d){g.spinner.stop();var p=g.getHashValueForPages(g.pages),A=y.getCurrentRevisionId(),G=g.getHashValueForPages(d.getShadowPages()),I=d.getDescriptorChecksum(d.getDescriptor()),+L=d.getCurrentRevisionId();console.log("Local File",[y],"modified",y.isModified(),"checksum",p);console.log("Remote File",[d],"rev",L==A,"desc",I==G,"checksum",G);g.alert("Checksums "+(G==p?"match":"no not match"))},function(d){console.log("Error getLatestVersion",d);g.handleError(d)}):console.log("Checksum: no file or pages")}));g.actions.addAction("testCheckPages",mxUtils.bind(this,function(){var y=g.getCurrentFile();console.log("editorUi",g,"file",y);if(null!=y&&y.isRealtime()){console.log("Checksum ownPages",+g.getHashValueForPages(y.ownPages));console.log("Checksum theirPages",g.getHashValueForPages(y.theirPages));console.log("diff ownPages/theirPages",g.diffPages(y.ownPages,y.theirPages));var d=y.getShadowPages();null!=d&&(console.log("Checksum shadowPages",g.getHashValueForPages(d)),console.log("diff shadowPages/ownPages",g.diffPages(d,y.ownPages)),console.log("diff ownPages/shadowPages",g.diffPages(y.ownPages,d)),console.log("diff theirPages/shadowPages",g.diffPages(y.theirPages,d)));null!=y.sync&&+null!=y.sync.snapshot&&(console.log("Checksum snapshot",g.getHashValueForPages(y.sync.snapshot)),console.log("diff ownPages/snapshot",g.diffPages(y.ownPages,y.sync.snapshot)),console.log("diff theirPages/snapshot",g.diffPages(y.theirPages,y.sync.snapshot)),null!=g.pages&&console.log("diff snapshot/actualPages",g.diffPages(y.sync.snapshot,g.pages)));null!=g.pages&&(console.log("diff ownPages/actualPages",g.diffPages(y.ownPages,g.pages)),console.log("diff theirPages/actualPages",g.diffPages(y.theirPages,+g.pages)))}null!=y&&console.log("Shadow pages",[g.getXmlForPages(y.getShadowPages())]);null!=g.pages&&console.log("Checksum actualPages",g.getHashValueForPages(g.pages))}));g.actions.addAction("testFixPages",mxUtils.bind(this,function(){console.log("editorUi",g);var y=g.getCurrentFile();null!=y&&y.isRealtime()&&null!=y.shadowPages&&(console.log("patching actualPages to shadowPages",y.patch([g.diffPages(y.shadowPages,g.pages)])),y.ownPages=g.clonePages(g.pages),y.theirPages=g.clonePages(g.pages),y.shadowPages=+g.clonePages(g.pages),null!=y.sync&&(y.sync.snapshot=g.clonePages(g.pages)))}));g.actions.addAction("testOptimize",mxUtils.bind(this,function(){q.model.beginUpdate();try{var y=q.model.cells,d=0,p=[],A=[],G;for(G in y){var I=y[G],L=q.getCurrentCellStyle(I)[mxConstants.STYLE_IMAGE];null!=L&&"data:"==L.substring(0,5)&&(null==p[L]&&(p[L]=(p[L]||0)+1,d++),A.push(I))}q.setCellStyles(mxConstants.STYLE_IMAGE,null,A);console.log("Removed",d,"image(s) from",A.length,"cell(s): ",[A,p])}finally{q.model.endUpdate()}}));+g.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(g,q.getModel())}));g.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var y=new mxImageExport,d=q.getGraphBounds(),p=q.view.scale,A=mxUtils.createXmlDocument(),G=A.createElement("output");A.appendChild(G);A=new mxXmlCanvas2D(G);A.translate(Math.floor((1-d.x)/p),Math.floor((1-d.y)/p));A.scale(1/p);var I=0,L=A.save;A.save=function(){I++;L.apply(this,arguments)};var P=A.restore;A.restore=function(){I--;P.apply(this,+arguments)};var Q=y.drawShape;y.drawShape=function(ba){mxLog.debug("entering shape",ba,I);Q.apply(this,arguments);mxLog.debug("leaving shape",ba,I)};y.drawState(q.getView().getState(q.model.root),A);mxLog.show();mxLog.debug(mxUtils.getXml(G));mxLog.debug("stateCounter",I)}));g.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=mxPopupMenu.prototype.zIndex-2});var c=null,f=null,l=null,n=null,r=null,t=null,v=null,B=null;g.actions.addAction("testPerformance",+mxUtils.bind(this,function(){null!=c?(q.view.revalidate=c,c=null):(c=q.view.revalidate,q.view.revalidate=function(){var y=Date.now(),d=c.apply(this,arguments);EditorUi.debug("[Performance] mxGraphView.revalidate",[this],"time",Date.now()-y+" ms","args",arguments);return d});null!=f?(g.selectPage=f,f=null):(f=g.selectPage,g.selectPage=function(){var y=Date.now(),d=f.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.selectPage",[this],"time",Date.now()-y+" ms","args",arguments);return d});+null!=l?(g.diffPages=l,l=null):(l=g.diffPages,g.diffPages=function(){var y=Date.now(),d=l.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.diffPages",[this],"time",Date.now()-y+" ms","args",arguments);return d});null!=n?(g.patchPages=n,n=null):(n=g.patchPages,g.patchPages=function(){var y=Date.now(),d=n.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.patchPages",[this],"time",Date.now()-y+" ms","args",arguments);return d});null!=r?(g.clonePages=r,r=null):(r=g.clonePages,g.clonePages=+function(){var y=Date.now(),d=r.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.clonePages",[this],"time",Date.now()-y+" ms","args",arguments);return d});null!=v?(g.getHashValueForPages=v,v=null):(v=g.getHashValueForPages,g.getHashValueForPages=function(){var y=Date.now(),d=v.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getHashValueForPages",[this],"time",Date.now()-y+" ms","args",arguments);return d});null!=B?(g.resolveCrossReferences=B,B=null):(B=g.resolveCrossReferences,+g.resolveCrossReferences=function(){var y=Date.now(),d=B.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.resolveCrossReferences",[this],"time",Date.now()-y+" ms","args",arguments);return d});null!=t?(g.getFileData=t,t=null):(t=g.getFileData,g.getFileData=function(){var y=Date.now(),d=t.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getFileData",[this],"time",Date.now()-y+" ms","args",arguments);return d});EditorUi.debug("[Performance]",null!=c?"Enabled":"Disabled")}));this.put("testDevelop",+new Menu(mxUtils.bind(this,function(y,d){this.addMenuItems(y,"createSidebarEntry showBoundingBox - testCheckPages testChecksum testFixPages - testCheckFile testDiff - testInspect testOptimize - testXmlImageExport -".split(" "),d);var p=y.addItem(mxResources.get("testPerformance"),null,function(){g.actions.get("testPerformance").funct()},d);null!=c&&y.addCheckmark(p,Editor.checkmarkImage);this.addMenuItems(y,["-","testShowConsole"],d)})))}g.actions.put("shapes",new Action("moreShapes...",function(y){mxClient.IS_CHROMEAPP||+!g.isOffline()?g.showDialog((new MoreShapesDialog(g,!0)).container,680,isLocalStorage?mxClient.IS_IOS?500:480:460,!0,!0):g.showDialog((new MoreShapesDialog(g,!1)).container,360,isLocalStorage?mxClient.IS_IOS?300:280:260,!0,!0)}));g.actions.put("createShape",new Action("shape...",function(y){q.isEnabled()&&(y=new mxCell("",new mxGeometry(0,0,120,120),g.defaultCustomShapeStyle),y.vertex=!0,y=new EditShapeDialog(g,y,mxResources.get("editShape")),g.showDialog(y.container,640,480,!0,!1,null,null,null,+new mxRectangle(0,0,300,200),null,"createShape"),y.init())})).isEnabled=u;g.isOffline()||("1"!=urlParams.embed&&(g.actions.put("embedNotion",new Action("notion...",function(){var y=document.createElement("div");y.style.position="absolute";y.style.bottom="12px";y.style.textAlign="center";y.style.width="100%";y.style.left="0px";var d=document.createElement("a");d.setAttribute("href","javascript:void(0);");d.setAttribute("target","_blank");d.style.cursor="pointer";mxUtils.write(d,mxResources.get("getNotionChromeExtension"));+y.appendChild(d);mxUtils.setPrefixedStyle(d.style,"transition","all 1s ease");mxUtils.setOpacity(d,0);window.setTimeout(function(){mxUtils.setOpacity(d,100)},300);mxEvent.addListener(d,"click",function(p){g.openLink("https://chrome.google.com/webstore/detail/drawio-for-notion/plhaalebpkihaccllnkdaokdoeaokmle");mxEvent.consume(p)});g.getPublicUrl(g.getCurrentFile(),function(p){g.showPublishLinkDialog(mxResources.get("notion"),null,null,!0,"https://www.drawio.com/blog/drawio-notion",y,p,g.getCurrentFile(),+function(A,G,I,L,P,Q,ba,W,Y,X,ca,S,Z,da,N,aa){ba=["border=0"];Y&&(Y=da?g.getHiddenTagsMap():null,ba.push("tags="+encodeURIComponent(JSON.stringify(Y||{}))));A=new EmbedDialog(g,g.createLink(A,G,Z,L,P,Q,"public"==X?p:null,"copy"==X,ba,null,I,null,S,N,aa));g.showDialog(A.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));A.init()},null,!0)})})),g.actions.addAction("microsoftOffice...",function(){g.openLink("https://office.draw.io")})),g.actions.put("embedHtml",new Action("html...",function(){g.getPublicUrl(g.getCurrentFile(),+function(y){g.showHtmlDialog(mxResources.get("create"),"https://www.drawio.com/docs/manual/export/embed-html/",y,function(d,p,A,G,I,L,P,Q,ba,W,Y,X,ca,S,Z){g.createHtml(d,p,A,G,I,L,P,Q,ba,W,Y,mxUtils.bind(this,function(da,N){g.saveData("embed.html","html","\x3c!-- "+g.editor.appName+" diagram --\x3e\n"+da+"\n"+N+"\n","text/html")}),X,ca,S,Z)})})})),g.actions.put("liveImage",new Action("Live image...",function(){var y=g.getCurrentFile();null!=y&&g.getPublicUrl(y,function(d){null!=d?(d=new EmbedDialog(g,+'<img src="'+(y.constructor!=DriveFile?d:"https://drive.google.com/uc?id="+y.getId())+'"/>'),g.showDialog(d.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250)),d.init()):g.handleError({message:mxResources.get("invalidPublicUrl")})})})),g.actions.put("embedImage",new Action("image...",function(){g.showEmbedImageDialog(function(y,d,p,A,G,I,L,P){g.spinner.spin(document.body,mxResources.get("loading"))&&g.createEmbedImage(y,d,p,A,G,I,L,P,function(Q){g.spinner.stop();g.saveData("embed.html",+"html",Q,"text/html")},function(Q){g.spinner.stop();g.handleError(Q)})},mxResources.get("image"),mxResources.get("retina"),g.editor.isExportToCanvas(),"https://www.drawio.com/docs/manual/export/embed-diagram/")})),g.actions.put("embedSvg",new Action("formatSvg...",function(){g.showEmbedImageDialog(function(y,d,p,A,G,I,L,P,Q,ba){g.spinner.spin(document.body,mxResources.get("loading"))&&g.createEmbedSvg(y,d,p,A,G,I,L,P,Q,ba,function(W){g.spinner.stop();g.saveData("embed.html","html",W,"text/html")},+function(W){g.spinner.stop();g.handleError(W)})},mxResources.get("formatSvg"),mxResources.get("image"),!0,"https://www.drawio.com/docs/manual/export/embed-svg/",!0,!0)})),g.actions.put("embedIframe",new Action("iframe...",function(){g.getPublicUrl(g.getCurrentFile(),function(y){var d=q.getGraphBounds();g.showPublishLinkDialog(mxResources.get("iframe"),"100%",Math.ceil(Math.max(100,d.height/q.view.scale))+2,null,null,null,y,g.getCurrentFile(),function(p,A,G,I,L,P,Q,ba,W,Y,X,ca,S,Z,da,N){var aa=[];+W&&(W=Z?g.getHiddenTagsMap():null,aa.push("tags="+encodeURIComponent(JSON.stringify(W||{}))));p=new EmbedDialog(g,'<iframe frameborder="0" style="width:'+Q+";height:"+ba+';" src="'+g.createLink(p,A,S,I,L,P,"public"==Y?y:null,"copy"==Y,aa,null,G,X,ca,da,N)+'"'+(X?' allowtransparency="true"':"")+"></iframe>");g.showDialog(p.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));p.init()},!0,!0)})})));g.actions.put("publishLink",new Action("link...",function(){g.getPublicUrl(g.getCurrentFile(),+function(y){g.showPublishLinkDialog(null,null,null,null,null,null,y,g.getCurrentFile(),function(d,p,A,G,I,L,P,Q,ba,W,Y,X,ca,S,Z,da){P=[];G&&ba&&(ba=S?g.getHiddenTagsMap():null,P.push("tags="+encodeURIComponent(JSON.stringify(ba||{}))));d=new EmbedDialog(g,g.createLink(d,p,ca,G,I,L,"public"==W?y:null,"copy"==W,P,null,A,null,X,Z,da));g.showDialog(d.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));d.init()},null,!0)})},null,null,null,!g.isOffline()));if(isLocalStorage||mxClient.IS_CHROMEAPP)x=+g.actions.addAction("scratchpad",function(){g.toggleScratchpad()}),x.setToggleAction(!0),x.setSelectedCallback(function(){return null!=g.scratchpad}),"0"!=urlParams.plugins&&g.actions.addAction("plugins...",function(){g.showDialog((new PluginsDialog(g)).container,380,null,!0,!1)});window.matchMedia&&null!=document.getElementById("high-contrast-stylesheet")&&(x=g.actions.addAction("highContrast",function(){g.setAndPersistHighContrast(!g.isHighContrast())}),x.setToggleAction(!0),x.setSelectedCallback(function(){return g.isHighContrast()}));+x=g.actions.addAction("search",function(){if(null!=g.sidebar){var y=g.sidebar.isEntryVisible("search");g.sidebar.showPalette("search",!y);Editor.isSettingsEnabled()&&(mxSettings.settings.search=!y,mxSettings.save())}});x.label=mxResources.get("searchShapes");x.setToggleAction(!0);x.setSelectedCallback(function(){return null!=g.sidebar&&g.sidebar.isEntryVisible("search")});g.actions.get("clearDefaultStyle").funct=function(y){q.isEnabled()&&("undefined"!==typeof mxSettings&&null!=mxSettings.setCurrentEdgeStyle&&+null!=mxSettings.settings&&mxSettings.setCurrentEdgeStyle(null),g.clearDefaultStyle(),Editor.sketchMode&&g.setSketchMode(!1))};"1"==urlParams.embed&&(g.actions.get("saveAs").setEnabled(!1),g.actions.get("save").funct=function(y){q.isEditing()&&q.stopEditing();var d="0"!=urlParams.pages||null!=g.pages&&1<g.pages.length?g.getFileData(!0):mxUtils.getXml(g.editor.getGraphXml());if("json"==urlParams.proto){var p=g.createLoadMessage("save");p.xml=d;!0!==y||"1"!=urlParams.saveAndExit&&"1"!=urlParams.publishClose||+(p.exit=!0);d=JSON.stringify(p)}(window.opener||window.parent).postMessage(d,"*");"0"!=urlParams.modified&&"1"!=urlParams.keepmodified&&(g.editor.modified=!1,g.clearStatus());y=g.getCurrentFile();null==y||y.constructor==EmbedFile||y.constructor==LocalFile&&null==y.mode||g.saveFile()},g.actions.addAction("saveAndExit",function(){"1"==urlParams.toSvg?g.sendEmbeddedSvgExport():g.actions.get("save").funct(!0)},null,null,Editor.ctrlKey+"+S").label="1"==urlParams.publishClose?mxResources.get("publish"):+mxResources.get("saveAndExit"),g.actions.addAction("exit",function(){if("1"==urlParams.embedInline)g.sendEmbeddedSvgExport();else{var y=function(){g.editor.modified=!1;var d="json"==urlParams.proto?JSON.stringify({event:"exit",modified:g.editor.modified}):"";(window.opener||window.parent).postMessage(d,"*")};g.editor.modified?g.confirm(mxResources.get("allChangesLost"),null,y,mxResources.get("cancel"),mxResources.get("discardChanges")):y()}},null,null,"1"==urlParams.embedInline?"Escape":null));this.put("exportAs",+new Menu(mxUtils.bind(this,function(y,d){g.editor.isExportToCanvas()?(this.addMenuItems(y,["exportPng"],d),Editor.jpgSupported&&this.addMenuItems(y,["exportJpg"],d),Editor.webpSupported&&this.addMenuItems(y,["exportWebp"],d)):!g.isRemoteExportEnabled()||mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(y,["exportPng","exportJpg"],d);g.editor.isExportToCanvas()&&this.addMenuItems(y,["exportAnimatedGif"],d);this.addMenuItems(y,["exportSvg","-"],d);g.isPrintPdfExport()?this.addMenuItems(y,["exportPdf"],+d):mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(y,["exportPdf"],d);!g.vsdxExportEnabled()||"undefined"===typeof VsdxExport&&g.isOffline()||this.addMenuItems(y,["exportVsdx"],d);var p=["-","exportHtml","exportXml"];Editor.enableExportUrl&&p.push("exportUrl");p.push("exportJson");this.addMenuItems(y,p,d);g.isOffline()||(y.addSeparator(d),this.addMenuItem(y,"export",d).firstChild.nextSibling.innerHTML=mxResources.get("advanced")+"...");mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"min"!=+Editor.currentTheme||g.isOffline()||this.addMenuItems(y,["publishLink"],d);g.mode==App.MODE_ATLAS||"1"==urlParams.extAuth||"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||g.isOffline()||(y.addSeparator(d),g.menus.addSubmenu("embed",y,d))})));this.put("importFrom",new Menu(mxUtils.bind(this,function(y,d){function p(I){I.pickFile(function(L){g.spinner.spin(document.body,mxResources.get("loading"))&&I.getFile(L,function(P){var Q="data:image/"==P.getData().substring(0,+11)?G(P.getTitle()):"text/xml";/\.svg$/i.test(P.getTitle())&&!g.editor.isDataSvg(P.getData())&&(P.setData(Editor.createSvgDataUri(P.getData())),Q="image/svg+xml");A(P.getData(),Q,P.getTitle())},function(P){g.handleError(P,null!=P?mxResources.get("errorLoadingFile"):null)},I==g.drive)},!0)}var A=mxUtils.bind(this,function(I,L,P){var Q=q.view,ba=q.getGraphBounds(),W=q.snap(Math.ceil(Math.max(0,ba.x/Q.scale-Q.translate.x)+4*q.gridSize)),Y=q.snap(Math.ceil(Math.max(0,(ba.y+ba.height)/Q.scale-Q.translate.y)++4*q.gridSize));"data:image/"==I.substring(0,11)?g.loadImage(I,mxUtils.bind(this,function(X){var ca=!0,S=mxUtils.bind(this,function(){g.resizeImage(X,I,mxUtils.bind(this,function(Z,da,N){Z=ca?Math.min(1,Math.min(g.maxImageSize/da,g.maxImageSize/N)):1;g.importFile(I,L,W,Y,Math.round(da*Z),Math.round(N*Z),P,function(aa){g.spinner.stop();q.setSelectionCells(aa);q.scrollCellToVisible(q.getSelectionCell())})}),ca)});I.length>g.resampleThreshold?g.confirmImageResize(function(Z){ca=Z;S()}):S()}),mxUtils.bind(this,+function(){g.handleError({message:mxResources.get("cannotOpenFile")})})):g.importFile(I,L,W,Y,0,0,P,function(X){g.spinner.stop();q.setSelectionCells(X);q.scrollCellToVisible(q.getSelectionCell())})}),G=mxUtils.bind(this,function(I){var L="text/xml";/\.png$/i.test(I)?L="image/png":/\.jpe?g$/i.test(I)?L="image/jpg":/\.gif$/i.test(I)?L="image/gif":/\.pdf$/i.test(I)&&(L="application/pdf");return L});"undefined"!=typeof google&&"undefined"!=typeof google.picker&&(null!=g.drive?y.addItem(mxResources.get("googleDrive")++"...",null,function(){p(g.drive)},d):g.isModeEnabled(App.MODE_GOOGLE)&&y.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1));g.isModeReady(App.MODE_ONEDRIVE)?y.addItem(mxResources.get("oneDrive")+"...",null,function(){p(g.oneDrive)},d):g.isModeEnabled(App.MODE_ONEDRIVE)&&y.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);g.isModeReady(App.MODE_DROPBOX)?y.addItem(mxResources.get("dropbox")++"...",null,function(){p(g.dropbox)},d):g.isModeEnabled(App.MODE_DROPBOX)&&y.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);y.addSeparator(d);g.isModeReady(App.MODE_GITHUB)&&y.addItem(mxResources.get("github")+"...",null,function(){p(g.gitHub)},d);g.isModeReady(App.MODE_GITLAB)&&y.addItem(mxResources.get("gitlab")+"...",null,function(){p(g.gitLab)},d);g.isModeReady(App.MODE_TRELLO)?y.addItem(mxResources.get("trello")+"...",null,function(){p(g.trello)},+d):g.isModeEnabled(App.MODE_TRELLO)&&y.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);y.addSeparator(d);isLocalStorage&&"0"!=urlParams.browser&&y.addItem(mxResources.get("browser")+"...",null,function(){g.importLocalFile(!1)},d);"1"!=urlParams.noDevice&&y.addItem(mxResources.get("device")+"...",null,function(){g.importLocalFile(!0)},d);g.isOffline()||(y.addSeparator(d),y.addItem(mxResources.get("url")+"...",null,function(){var I=new FilenameDialog(g,+"",mxResources.get("import"),function(L){if(null!=L&&0<L.length&&g.spinner.spin(document.body,mxResources.get("loading"))){var P=/(\.png)($|\?)/i.test(L)?"image/png":"text/xml";g.editor.loadUrl(PROXY_URL+"?url="+encodeURIComponent(L),function(Q){A(Q,P,L)},function(){g.spinner.stop();g.handleError(null,mxResources.get("errorLoadingFile"))},"image/png"==P)}},mxResources.get("url"));g.showDialog(I.container,300,80,!0,!0);I.init()},d))}))).isEnabled=u;this.put("dynamicAppearance",new Menu(mxUtils.bind(this,+function(y,d){var p=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;"simple"==Editor.currentTheme&&(750>p&&this.addSubmenu("viewZoom",y,d,mxResources.get("zoom")),460>p&&g.isPageMenuVisible()&&this.addSubmenu("pages",y,d),320>p&&this.addSubmenu("insert",y,d),360>p&&"1"!=urlParams.embed&&"draw.io"==g.getServiceName()&&this.addSubmenu("share",y,d))})));this.put("appearance",new Menu(mxUtils.bind(this,function(y,d){if(g.isAutoDarkModeSupported()){var p=g.menus.addMenuItem(y,+"autoMode",d);null!=p&&p.setAttribute("title",mxResources.get("automatic")+" ("+mxResources.get(Editor.isDarkMode()?"dark":"light")+")")}this.addMenuItems(y,["lightMode","darkMode","-"],d);p=g.menus.addMenuItem(y,"highContrast",d);(!g.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&g.menus.addLinkToItem(p,"https://github.com/jgraph/drawio/issues/4296")})));g.actions.addAction("addToScratchpad",function(y){q.isSelectionEmpty()||null==g.addSelectionToScratchpad||g.addSelectionToScratchpad(y)});+g.actions.addAction("accounts...",function(){g.toggleUserPanel();g.userPanel.style.right="10px";g.userPanel.style.top="10px"});this.put("theme",new Menu(mxUtils.bind(this,function(y,d){var p="1"==urlParams.sketch?"sketch":mxSettings.getUi(),A=y.addItem(mxResources.get("automatic"),null,function(){g.setCurrentTheme("")},d),G=y.addItem(mxResources.get("classic"),null,function(){g.setCurrentTheme("kennedy")},d),I=!1;if("kennedy"==p||"dark"==p)y.addCheckmark(G,Editor.checkmarkImage),I=!0;for(var L=0;L<+Editor.themes.length;L++)mxUtils.bind(this,function(P){G=y.addItem(mxResources.get("min"==P?"minimal":P),null,function(){g.setCurrentTheme(P)},d);p==P&&(y.addCheckmark(G,Editor.checkmarkImage),I=!0);"simple"==P&&y.addSeparator(d)})(Editor.themes[L]);I||y.addCheckmark(A,Editor.checkmarkImage)})));x=this.editorUi.actions.addAction("rename...",mxUtils.bind(this,function(){var y=this.editorUi.getCurrentFile();if(null!=y)if(y.constructor==LocalFile&&null!=y.fileHandle)g.showSaveFilePicker(mxUtils.bind(g,+function(p,A){y.invalidFileHandle=null;y.fileHandle=p;y.title=A.name;y.desc=A;g.save(A.name)}),null,g.createFileSystemOptions(y.getTitle()));else{var d=null!=y.getTitle()?y.getTitle():this.editorUi.defaultFilename;d=new FilenameDialog(this.editorUi,d,mxResources.get("rename"),mxUtils.bind(this,function(p){null!=p&&0<p.length&&null!=y&&p!=y.getTitle()&&this.editorUi.spinner.spin(document.body,mxResources.get("renaming"))&&y.rename(p,mxUtils.bind(this,function(A){this.editorUi.spinner.stop()}),mxUtils.bind(this,+function(A){this.editorUi.handleError(A,null!=A?mxResources.get("errorRenamingFile"):null)}))}),y.constructor==DriveFile||y.constructor==StorageFile?mxResources.get("diagramName"):null,function(p){if(null!=p&&0<p.length)return!0;g.showError(mxResources.get("error"),mxResources.get("invalidName"),mxResources.get("ok"));return!1},null,FilenameDialog.filenameHelpLink,null,null,g.editor.fileExtensions);this.editorUi.showDialog(d.container,340,100,!0,!0);d.init()}}));x.isEnabled=function(){return this.enabled&&+u.apply(this,arguments)};x.visible="1"!=urlParams.embed;g.actions.addAction("makeCopy...",mxUtils.bind(this,function(){var y=g.getCurrentFile();if(null!=y){var d=g.getCopyFilename(y);y.constructor==DriveFile?(d=new SaveDialog(g,d,mxUtils.bind(this,function(p,A,G){g.hideDialog();y.copyFile(mxUtils.bind(this,function(I){y.move(G,mxUtils.bind(this,function(L){g.spinner.stop()}),mxUtils.bind(this,function(L){g.handleError(L)}))}),mxUtils.bind(this,function(I){g.handleError(I)}),p.value)}),null,null,null,+null,null,null,[App.MODE_GOOGLE],mxResources.get("ok")),g.showDialog(d.container,420,162,!0,!1,mxUtils.bind(this,function(){g.hideDialog()})),d.init()):g.editor.editAsNew(this.editorUi.getFileData(!0),d)}}));x=new Action("openFolder",function(y,d){y=g.getCurrentFile();null!=y&&g.openLink(y.getFolderUrl())});x.getTitle=function(){return mxResources.get("openIt",[mxResources.get("folder")])+"..."};g.actions.put("openFolder",x);g.actions.addAction("openFile...",mxUtils.bind(this,function(){var y=g.getCurrentFile();+null!=y&&g.openLink(y.getFileUrl())}));g.actions.addAction("moveToFolder...",mxUtils.bind(this,function(){var y=g.getCurrentFile();if(y.getMode()==App.MODE_GOOGLE||y.getMode()==App.MODE_ONEDRIVE){var d=new SaveDialog(g,"",mxUtils.bind(this,function(p,A,G){g.hideDialog();g.spinner.spin(document.body,mxResources.get("moving"))&&y.move(G,mxUtils.bind(this,function(I){g.spinner.stop()}),mxUtils.bind(this,function(I){g.handleError(I)}))}),null,null,null,null,null,y.getMode());g.showDialog(d.container,+420,82,!0,!1,mxUtils.bind(this,function(){g.hideDialog()}));d.init()}}));this.put("publish",new Menu(mxUtils.bind(this,function(y,d){this.addMenuItems(y,["publishLink","presentationMode"],d)})));g.actions.put("presentationMode",new Action("presentationMode...",function(){var y=Editor.isDarkMode(),d=document.createElement("div");d.style.cssText="position:fixed;inset:0;z-index:999;background-color:#000000";document.body.appendChild(d);for(var p={},A="pages page-id nav layers dark toolbar".split(" "),+G=0;G<A.length;G++)p[A[G]]=urlParams[A[G]];urlParams.pages="1";urlParams["page-id"]=null!=g.currentPage?g.currentPage.getId():null;urlParams.nav="1";urlParams.layers="1";urlParams.dark=y?"1":"0";urlParams.toolbar="0";G=EditorUi.prototype.updateActionStates;var I=EditorUi.prototype.addBeforeUnloadListener,L=EditorUi.prototype.addChromelessClickHandler;EditorUi.prototype.updateActionStates=function(){};EditorUi.prototype.addBeforeUnloadListener=function(){};EditorUi.prototype.addChromelessClickHandler=function(){};var P=new EditorUi(new Editor(!0),document.createElement("div"),!0);EditorUi.prototype.updateActionStates=G;EditorUi.prototype.addBeforeUnloadListener=I;EditorUi.prototype.addChromelessClickHandler=L;P.refresh=function(){};P.updateHashObject=function(){};var Q=P.editor.graph;G=Q.container;G.style.cssText="position:fixed;inset:0;overflow:hidden;outline:none;z-index:999";var ba=document.body.style.overflow;document.body.style.overflow="hidden";var W=document.createElement("div");W.style.cssText="position:fixed;top:10px;right:10px;z-index:1000;display:inline-flex;align-items:center;gap:2px;padding:4px;white-space:nowrap;cursor:default;border:1px solid;border-radius:6px;background-color:"+(y?"#2a2a2a":"#ffffff")+";border-color:"+(y?"#505050":"#e0e0e0")+";box-shadow:0 2px 6px "+(y?"rgba(0,0,0,0.4)":"rgba(0,0,0,0.1)");var Y=y?"invert(80%)":"none",X=function(N,aa,ea){var la=document.createElement("img");la.setAttribute("src",aa);la.setAttribute("title",ea||"");la.setAttribute("border","0");la.style.cssText="width:16px;height:16px;cursor:pointer;display:block;padding:2px;opacity:0.6;filter:"+Y;la.className="geAdaptiveAsset";mxEvent.addListener(la,"mouseenter",function(){la.style.opacity="1"});mxEvent.addListener(la,"mouseleave",function(){la.style.opacity="0.6"});mxEvent.addListener(la,"click",function(ra){N(ra);mxEvent.consume(ra)});W.appendChild(la);return la},ca=function(){if(null!=P.pages&&1<P.pages.length){var N=X(function(aa){P.showPopupMenu(function(ea,la){for(la=0;la<P.pages.length;la++)(function(ra){var qa=ea.addItem(P.getShortPageName(P.pages[ra]),null,function(){P.selectPage(P.pages[ra]);P.lightboxFit();P.chromelessResize()}),na=P.pages[ra].getId();qa.setAttribute("title",P.pages[ra].getName()+" ("+(ra+1)+"/"+P.pages.length+")"+(null!=na?" ["+na+"]":""));P.pages[ra]==P.currentPage&&ea.addCheckmark(qa,Editor.checkmarkImage)})(la)},mxEvent.getClientX(aa),mxEvent.getClientY(aa),aa)},Editor.chevronDownImage,mxResources.get("pages"));W.insertBefore(N,W.firstChild)}};X(function(){Q.zoomOut();P.chromelessResize(!1)},-Editor.zoomOutImage,mxResources.get("zoomOut"));X(function(){Q.zoomIn();P.chromelessResize(!1)},Editor.zoomInImage,mxResources.get("zoomIn"));X(function(){1==Q.view.scale?P.lightboxFit():Q.zoomTo(1);P.chromelessResize(!1)},Editor.zoomFitImage,mxResources.get("smartFit"));X(function(){P.destroy()},Editor.closeImage,mxResources.get("close")+" (Escape)");var S=P.destroy;P.destroy=function(){mxEvent.removeListener(document.documentElement,"keydown",Z);f.keyHandler.setEnabled(da);document.body.removeChild(d);+Editor.zoomOutImage,mxResources.get("zoomOut"));X(function(){Q.zoomIn();P.chromelessResize(!1)},Editor.zoomInImage,mxResources.get("zoomIn"));X(function(){1==Q.view.scale?P.lightboxFit():Q.zoomTo(1);P.chromelessResize(!1)},Editor.zoomFitImage,mxResources.get("smartFit"));X(function(){P.destroy()},Editor.closeImage,mxResources.get("close")+" (Escape)");var S=P.destroy;P.destroy=function(){mxEvent.removeListener(document.documentElement,"keydown",Z);g.keyHandler.setEnabled(da);document.body.removeChild(d);document.body.removeChild(W);document.body.style.overflow=ba;for(var N=0;N<A.length;N++)urlParams[A[N]]=p[A[N]];S.apply(this,arguments)};var Z=function(N){if(27==N.keyCode)P.destroy();else if((37==N.keyCode||39==N.keyCode)&&!mxEvent.isShiftDown(N)&&(mxEvent.isControlDown(N)||mxClient.IS_MAC&&mxEvent.isMetaDown(N))&&null!=P.pages&&1<P.pages.length){var aa=P.getSelectedPageIndex()+(39==N.keyCode?1:-1);0<=aa&&aa<P.pages.length&&(P.selectPage(P.pages[aa]),P.lightboxFit(),P.chromelessResize());mxEvent.consume(N)}},-da=f.keyHandler.isEnabled();f.keyHandler.setEnabled(!1);mxEvent.addListener(document.documentElement,"keydown",Z);document.body.appendChild(G);document.body.appendChild(W);window.setTimeout(function(){try{P.setFileData(f.getFileData(!0)),ca(),P.lightboxFit(),P.chromelessResize()}catch(N){P.handleError(N,null,function(){P.destroy()})}},0)}));this.editorUi.actions.addAction("share...",mxUtils.bind(this,function(){try{var y=f.getCurrentFile();null!=y&&y.share()}catch(d){f.handleError(d)}})).isEnabled=-u;this.put("embed",new Menu(mxUtils.bind(this,function(y,d){var p=f.getCurrentFile();null==p||p.getMode()!=App.MODE_GOOGLE&&p.getMode()!=App.MODE_GITHUB||!/(\.png)$/i.test(p.getTitle())||this.addMenuItems(y,["liveImage","-"],d);this.addMenuItems(y,["embedImage","embedSvg","-","embedHtml"],d);navigator.standalone||f.isOffline()||this.addMenuItems(y,["embedIframe"],d);this.addMenuItems(y,["-","microsoftOffice","-","embedNotion"],d)})));x=function(y){var d=mxResources.get(y);f.actions.put(y,new Action(d+-"...",function(p){p=new ParseDialog(f,d,y);f.showDialog(p.container,640,420,!0,!1,null,null,null,new mxRectangle(0,0,440,280));p.init()})).isEnabled=u};var E=function(y,d,p,A){f.actions.put(y,new Action(mxResources.get(y),function(){if(q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())){var G=new mxCell("",new mxGeometry(0,0,0,0),d);G.vertex=!0;for(var I=q.getFreeInsertPoint(),L=[],P=0;P<A.nodes.length;P++){var Q=new mxCell(A.nodes[P],new mxGeometry(I.x+20,I.y+20,100,40),"whiteSpace=wrap;html=1;");+da=g.keyHandler.isEnabled();g.keyHandler.setEnabled(!1);mxEvent.addListener(document.documentElement,"keydown",Z);document.body.appendChild(G);document.body.appendChild(W);window.setTimeout(function(){try{P.setFileData(g.getFileData(!0)),ca(),P.lightboxFit(),P.chromelessResize()}catch(N){P.handleError(N,null,function(){P.destroy()})}},0)}));this.editorUi.actions.addAction("share...",mxUtils.bind(this,function(){try{var y=g.getCurrentFile();null!=y&&y.share()}catch(d){g.handleError(d)}})).isEnabled=+u;this.put("embed",new Menu(mxUtils.bind(this,function(y,d){var p=g.getCurrentFile();null==p||p.getMode()!=App.MODE_GOOGLE&&p.getMode()!=App.MODE_GITHUB||!/(\.png)$/i.test(p.getTitle())||this.addMenuItems(y,["liveImage","-"],d);this.addMenuItems(y,["embedImage","embedSvg","-","embedHtml"],d);navigator.standalone||g.isOffline()||this.addMenuItems(y,["embedIframe"],d);this.addMenuItems(y,["-","microsoftOffice","-","embedNotion"],d)})));x=function(y){var d=mxResources.get(y);g.actions.put(y,new Action(d++"...",function(p){p=new ParseDialog(g,d,y);g.showDialog(p.container,640,420,!0,!1,null,null,null,new mxRectangle(0,0,440,280));p.init()})).isEnabled=u};var E=function(y,d,p,A){g.actions.put(y,new Action(mxResources.get(y),function(){if(q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())){var G=new mxCell("",new mxGeometry(0,0,0,0),d);G.vertex=!0;for(var I=q.getFreeInsertPoint(),L=[],P=0;P<A.nodes.length;P++){var Q=new mxCell(A.nodes[P],new mxGeometry(I.x+20,I.y+20,100,40),"whiteSpace=wrap;html=1;");Q.vertex=!0;L.push(G.insert(Q))}for(P=0;P<A.edges.length;P++)I=new mxCell("",new mxGeometry,p),I.geometry.relative=!0,I.edge=!0,L[A.edges[P][0]].insertEdge(I,!0),L[A.edges[P][1]].insertEdge(I,!1),G.insert(I);M(G)}})).isEnabled=u},K={nodes:["Root","Child 1","Child 2"],edges:[[0,1],[0,2]]},C={nodes:["Start","Task","Task","End"],edges:[[0,1],[0,2],[1,3],[2,3]]},R=function(y,d){E(y,Menus.layoutContainers[y].style,Menus.layoutContainerEdgeStyle,d)};R("horizontalFlow",C);R("verticalFlow",C);R("horizontalTree",-K);R("verticalTree",K);R("radialTree",K);R("organic",K);R("circle",K);x("mermaid");x("fromText");x("formatSql");x("plantUml");var M=function(y){q.getModel().beginUpdate();try{y=q.addCell(y),q.fireEvent(new mxEventObject("cellsInserted","cells",[y])),q.model.isVertex(y)&&q.isAutoSizeCell(y)&&q.updateCellSize(y)}finally{q.getModel().endUpdate()}q.scrollCellToVisible(y);q.setSelectionCell(y);q.container.focus();q.editAfterInsert&&q.startEditing(y);window.setTimeout(function(){null!=f.hoverIcons&&f.hoverIcons.update(q.view.getState(y))},-0);return y},O=function(y,d,p,A,G){y=new mxCell(y,new mxGeometry(0,0,d,p),A);y.vertex=!0;null==G&&(G=q.getCenterInsertPoint(q.getBoundingBoxFromGeometry([y],!0)));y.geometry.x=G.x;y.geometry.y=G.y;return M(y)};f.actions.put("insertText",new Action("text",function(y){q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())&&q.startEditingAtCell(O("Text",60,30,q.appendFontSize(Editor.defaultTextStyle,q.vertexFontSize),null==y||mxEvent.isControlDown(y)||mxEvent.isMetaDown(y)||!q.isMouseInsertPoint()?null:-q.getInsertPoint()))},null,null,"A")).isEnabled=u;f.actions.put("insertRectangle",new Action("rectangle",function(y){q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())&&O("",120,60,"whiteSpace=wrap;html=1;",null==y||mxEvent.isControlDown(y)||mxEvent.isMetaDown(y)||!q.isMouseInsertPoint()?null:q.getInsertPoint())},null,null,"D")).isEnabled=u;f.actions.put("insertNote",new Action("note",function(y){q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())&&O("",160,160,Editor.defaultNoteStyle,null==y||-mxEvent.isControlDown(y)||mxEvent.isMetaDown(y)||!q.isMouseInsertPoint()?null:q.getInsertPoint())},null,null,"S")).isEnabled=u;f.actions.put("insertEllipse",new Action("ellipse",function(y){q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())&&O("",80,80,"ellipse;whiteSpace=wrap;html=1;shapeInside=1;",null==y||mxEvent.isControlDown(y)||mxEvent.isMetaDown(y)||!q.isMouseInsertPoint()?null:q.getInsertPoint())},null,null,"F")).isEnabled=u;f.actions.put("insertRhombus",new Action("rhombus",function(y){q.isEnabled()&&-!q.isCellLocked(q.getDefaultParent())&&O("",80,80,"rhombus;whiteSpace=wrap;html=1;shapeInside=1;",null==y||mxEvent.isControlDown(y)||mxEvent.isMetaDown(y)||!q.isMouseInsertPoint()?null:q.getInsertPoint())},null,null,"R")).isEnabled=u;f.actions.put("insertEdge",new Action("line",function(y){if(q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())){var d=q.defaultEdgeLength;y=null==y||mxEvent.isControlDown(y)||mxEvent.isMetaDown(y)||!q.isMouseInsertPoint()?null:q.getInsertPoint();null==y&&(y=q.getCenterInsertPoint(q.getBoundingBoxFromGeometry([p],-!0)));var p=new mxCell("",new mxGeometry(0,0,d,0),"edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;");p.geometry.setTerminalPoint(y,!0);p.geometry.setTerminalPoint(new mxPoint(y.x+p.geometry.width,y.y),!1);p.geometry.points=[];p.geometry.relative=!0;p.edge=!0;M(p)}},null,null,"C")).isEnabled=u;f.actions.put("insertPolygon",new Action("polygon...",function(y){if(q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())){var d=new PolygonDialog(f,null,function(p){p=new mxCell("",new mxGeometry(0,0,-80,80),p);p.vertex=!0;var A=null==y||mxEvent.isControlDown(y)||mxEvent.isMetaDown(y)||!q.isMouseInsertPoint()?null:q.getInsertPoint();null==A&&(A=q.getCenterInsertPoint(q.getBoundingBoxFromGeometry([p],!0)));p.geometry.x=A.x;p.geometry.y=A.y;return M(p)});f.showDialog(d.container,680,540,!0,!0,function(){d.destroy()},null,null,new mxRectangle(0,0,740,600),null,"insertPolygon");d.init()}})).isEnabled=u;x=f.actions.put("toggleShapes",new Action("shapes",function(){null!=f.sidebarWindow?f.sidebarWindow.window.setVisible(!f.sidebarWindow.window.isVisible()):-f.toggleShapesPanel(!f.isShapesPanelVisible())},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+K"));x.setToggleAction(!0);x.setSelectedCallback(mxUtils.bind(this,function(){return null!=f.sidebarWindow&&f.sidebarWindow.window.isVisible()||null==f.sidebarWindow&&0<f.hsplitPosition}));f.actions.put("showShapePicker",new Action(mxResources.get("shapes")+"...",function(){var y=q._contextMenuScreenPoint;f.showShapePicker(null!=y?y.x:q.container.clientWidth/2,null!=y?y.y:q.container.clientHeight/2)}));-this.put("insert",new Menu(mxUtils.bind(this,function(y,d){Editor.passiveScroll?(f.menus.addMenuItems(y,["showShapePicker"],d),f.menus.addSubmenu("table",y,d),y.addSeparator(d),f.menus.addMenuItems(y,"insertRectangle insertEllipse insertRhombus - insertEdge insertNote - insertText insertLink - insertImage createShape insertPolygon -".split(" "),d),f.insertTemplateEnabled&&!f.isOffline()&&f.menus.addMenuItems(y,["insertTemplate"],d),f.menus.addMenuItems(y,["-","insertFreehand","generate","-"],d),f.menus.addSubmenu("layout",-y,d),f.menus.addSubmenu("insertAdvanced",y,d,mxResources.get("advanced"))):"sketch"==Editor.currentTheme?(f.menus.addMenuItems(y,["toggleShapes"],d),f.menus.addSubmenu("table",y,d),y.addSeparator(d),f.menus.addMenuItems(y,"insertText insertLink - insertImage createShape insertPolygon -".split(" "),d),f.insertTemplateEnabled&&!f.isOffline()&&f.menus.addMenuItems(y,["insertTemplate"],d),EditorUi.isMermaidSupported()&&f.menus.addMenuItems(y,["mermaid"],d),f.menus.addMenuItems(y,["-","insertFreehand",-"generate","-"],d),f.menus.addSubmenu("layout",y,d),f.menus.addSubmenu("insertAdvanced",y,d,mxResources.get("advanced"))):(this.addMenuItems(y,"insertRectangle insertEllipse insertRhombus - insertEdge insertNote - insertText insertLink - insertImage createShape insertPolygon -".split(" "),d),f.insertTemplateEnabled&&!f.isOffline()&&this.addMenuItems(y,["insertTemplate"],d),EditorUi.isMermaidSupported()&&this.addMenuItems(y,["mermaid"],d),f.menus.addMenuItems(y,["-","insertFreehand","generate","-"],-d),"min"==uiTheme||"simple"==Editor.currentTheme?(this.addSubmenu("layout",y,d),this.addSubmenu("insertLayout",y,d,mxResources.get("insert")),y.addSeparator(d),this.addSubmenu("table",y,d)):this.addSubmenu("insertLayout",y,d,mxResources.get("layout")),this.addSubmenu("insertAdvanced",y,d,mxResources.get("advanced")))})));this.put("table",new Menu(mxUtils.bind(this,function(y,d){f.menus.addInsertTableCellItem(y,d)})));this.put("insertLayout",new Menu(mxUtils.bind(this,function(y,d){this.addMenuItems(y,-"horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),d)})));f.actions.put("csv",new Action(mxResources.get("csv")+"...",function(){q.popupMenuHandler.hideMenu();f.showImportCsvDialog()})).isEnabled=u;this.put("insertAdvanced",new Menu(mxUtils.bind(this,function(y,d){this.addMenuItems(y,["fromText","plantUml","formatSql","csv"],d);"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(y,["-","createShape","editDiagram"],d)})));this.put("openRecent",-new Menu(function(y,d){var p=f.getRecent();if(null!=p){for(var A=0;A<p.length;A++)(function(G){var I=G.mode;I==App.MODE_GOOGLE?I="googleDrive":I==App.MODE_ONEDRIVE&&(I="oneDrive");y.addItem(G.title+" ("+mxResources.get(I)+")",null,function(){f.loadFile(G.id)},d)})(p[A]);y.addSeparator(d)}y.addItem(mxResources.get("reset"),null,function(){f.resetRecent()},d)}));this.put("openFrom",new Menu(function(y,d){null!=f.drive?y.addItem(mxResources.get("googleDrive")+"...",null,function(){f.pickFile(App.MODE_GOOGLE)},-d):f.isModeEnabled(App.MODE_GOOGLE)&&y.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);f.isModeReady(App.MODE_ONEDRIVE)?y.addItem(mxResources.get("oneDrive")+"...",null,function(){f.pickFile(App.MODE_ONEDRIVE)},d):f.isModeEnabled(App.MODE_ONEDRIVE)&&y.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);f.isModeReady(App.MODE_M365)?y.addItem(mxResources.get("m365")+"...",null,function(){f.pickFile(App.MODE_M365)},-d):f.isModeEnabled(App.MODE_M365)&&y.addItem(mxResources.get("m365")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);f.isModeReady(App.MODE_DROPBOX)?y.addItem(mxResources.get("dropbox")+"...",null,function(){f.pickFile(App.MODE_DROPBOX)},d):f.isModeEnabled(App.MODE_DROPBOX)&&y.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);y.addSeparator(d);f.isModeReady(App.MODE_GITHUB)&&y.addItem(mxResources.get("github")+"...",null,function(){f.pickFile(App.MODE_GITHUB)},-d);f.isModeReady(App.MODE_GITLAB)&&y.addItem(mxResources.get("gitlab")+"...",null,function(){f.pickFile(App.MODE_GITLAB)},d);f.isModeReady(App.MODE_TRELLO)?y.addItem(mxResources.get("trello")+"...",null,function(){f.pickFile(App.MODE_TRELLO)},d):f.isModeEnabled(App.MODE_TRELLO)&&y.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);y.addSeparator(d);isLocalStorage&&"0"!=urlParams.browser&&y.addItem(mxResources.get("browser")+"...",null,function(){f.pickFile(App.MODE_BROWSER)},-d);"1"!=urlParams.noDevice&&y.addItem(mxResources.get("device")+"...",null,function(){f.pickFile(App.MODE_DEVICE)},d);f.isOffline()||(y.addSeparator(d),y.addItem(mxResources.get("url")+"...",null,function(){var p=new FilenameDialog(f,"",mxResources.get("open"),function(A){null!=A&&0<A.length&&(null==f.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(A):window.geOpenWindow((mxClient.IS_CHROMEAPP?"https://app.diagrams.net/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(A)))},-mxResources.get("url"));f.showDialog(p.container,300,80,!0,!0);p.init()},d))}));Editor.enableCustomLibraries&&(this.put("newLibrary",new Menu(function(y,d){"undefined"!=typeof google&&"undefined"!=typeof google.picker&&(null!=f.drive?y.addItem(mxResources.get("googleDrive")+"...",null,function(){f.showLibraryDialog(null,null,null,null,App.MODE_GOOGLE)},d):f.isModeEnabled(App.MODE_GOOGLE)&&y.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1));-f.isModeReady(App.MODE_ONEDRIVE)?y.addItem(mxResources.get("oneDrive")+"...",null,function(){f.showLibraryDialog(null,null,null,null,App.MODE_ONEDRIVE)},d):f.isModeEnabled(App.MODE_ONEDRIVE)&&y.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);y.addSeparator(d);f.isModeReady(App.MODE_GITHUB)&&y.addItem(mxResources.get("github")+"...",null,function(){f.showLibraryDialog(null,null,null,null,App.MODE_GITHUB)},d);f.isModeReady(App.MODE_GITLAB)&&y.addItem(mxResources.get("gitlab")+-"...",null,function(){f.showLibraryDialog(null,null,null,null,App.MODE_GITLAB)},d);f.isModeReady(App.MODE_TRELLO)?y.addItem(mxResources.get("trello")+"...",null,function(){f.showLibraryDialog(null,null,null,null,App.MODE_TRELLO)},d):f.isModeEnabled(App.MODE_TRELLO)&&y.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);y.addSeparator(d);isLocalStorage&&"0"!=urlParams.browser&&y.addItem(mxResources.get("browser")+"...",null,function(){f.showLibraryDialog(null,-null,null,null,App.MODE_BROWSER)},d);"1"!=urlParams.noDevice&&y.addItem(mxResources.get("device")+"...",null,function(){f.showLibraryDialog(null,null,null,null,App.MODE_DEVICE)},d);"1"==urlParams.confLib&&y.addItem(mxResources.get("confluenceCloud")+"...",null,function(){f.showLibraryDialog(null,null,null,null,"CONF_LIB")},d)})),this.put("openLibraryFrom",new Menu(function(y,d){"undefined"!=typeof google&&"undefined"!=typeof google.picker&&(null!=f.drive?y.addItem(mxResources.get("googleDrive")+"...",-null,function(){f.pickLibrary(App.MODE_GOOGLE)},d):f.isModeEnabled(App.MODE_GOOGLE)&&y.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1));f.isModeReady(App.MODE_ONEDRIVE)?y.addItem(mxResources.get("oneDrive")+"...",null,function(){f.pickLibrary(App.MODE_ONEDRIVE)},d):f.isModeEnabled(App.MODE_ONEDRIVE)&&y.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);f.isModeReady(App.MODE_DROPBOX)?y.addItem(mxResources.get("dropbox")+-"...",null,function(){f.pickLibrary(App.MODE_DROPBOX)},d):f.isModeEnabled(App.MODE_DROPBOX)&&y.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);y.addSeparator(d);f.isModeReady(App.MODE_GITHUB)&&y.addItem(mxResources.get("github")+"...",null,function(){f.pickLibrary(App.MODE_GITHUB)},d);f.isModeReady(App.MODE_GITLAB)&&y.addItem(mxResources.get("gitlab")+"...",null,function(){f.pickLibrary(App.MODE_GITLAB)},d);f.isModeReady(App.MODE_TRELLO)?y.addItem(mxResources.get("trello")+-"...",null,function(){f.pickLibrary(App.MODE_TRELLO)},d):f.isModeEnabled(App.MODE_TRELLO)&&y.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);y.addSeparator(d);isLocalStorage&&"0"!=urlParams.browser&&y.addItem(mxResources.get("browser")+"...",null,function(){f.pickLibrary(App.MODE_BROWSER)},d);"1"!=urlParams.noDevice&&y.addItem(mxResources.get("device")+"...",null,function(){f.pickLibrary(App.MODE_DEVICE)},d);f.isOffline()||(y.addSeparator(d),y.addItem(mxResources.get("url")+-"...",null,function(){var p=new FilenameDialog(f,"",mxResources.get("open"),function(A){if(null!=A&&0<A.length&&f.spinner.spin(document.body,mxResources.get("loading"))){var G=A;f.editor.isCorsEnabledForUrl(A)||(G=PROXY_URL+"?url="+encodeURIComponent(A));mxUtils.get(G,function(I){if(200<=I.getStatus()&&299>=I.getStatus()){f.spinner.stop();try{f.loadLibrary(new UrlLibrary(f,I.getText(),A)),f.showSidebar()}catch(L){f.handleError(L,mxResources.get("errorLoadingFile"))}}else f.spinner.stop(),f.handleError(null,-mxResources.get("errorLoadingFile"))},function(){f.spinner.stop();f.handleError(null,mxResources.get("errorLoadingFile"))})}},mxResources.get("url"));f.showDialog(p.container,300,80,!0,!0);p.init()},d));"1"==urlParams.confLib&&(y.addSeparator(d),y.addItem(mxResources.get("confluenceCloud")+"...",null,function(){f.showRemotelyStoredLibrary(mxResources.get("libraries"))},d))})));this.put("edit",new Menu(mxUtils.bind(this,function(y,d){this.addMenuItems(y,"undo redo - cut copy copyAsImage copyAsSvg paste delete - duplicate - findReplace - editData editTooltip editNote - editStyle editGeometry editPolygon editConnectionPoints - edit - editLink openLink - selectVertices selectEdges selectAll selectNone - lockUnlock".split(" "))})));-this.showCommentsWindow=mxUtils.bind(this,function(y,d){if(null==this.commentsWindow){var p=mxSettings.getWindowState("comments");this.commentsWindow=new CommentsWindow(f,null!=p&&null!=p.x?p.x:document.body.offsetWidth-380,null!=p&&null!=p.y?p.y:120,null!=p&&null!=p.w?p.w:300,null!=p&&null!=p.h?p.h:350);this.commentsWindow.window.addListener("show",function(){f.fireEvent(new mxEventObject("comments"))});this.commentsWindow.window.addListener("hide",function(){f.fireEvent(new mxEventObject("comments"))});-f.installWindowPersistence("comments",this.commentsWindow);null!=p&&f.restoreWindowState("comments",this.commentsWindow);f.fireEvent(new mxEventObject("comments"))}else this.commentsWindow.window.isVisible()||this.commentsWindow.refreshComments();this.commentsWindow.window.setVisible(!0);this.commentsWindow.refreshCommentsTime();null!=y&&this.commentsWindow.scrollToCell(y);null!=d&&this.commentsWindow.startNewComment(d)});x=f.actions.addAction("comments",mxUtils.bind(this,function(){null!=this.commentsWindow&&-this.commentsWindow.window.isVisible()?this.commentsWindow.window.setVisible(!1):this.showCommentsWindow()}));x.setToggleAction(!0);x.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.commentsWindow&&this.commentsWindow.window.isVisible()}));f.editor.addListener("fileLoaded",mxUtils.bind(this,function(){null!=this.commentsWindow&&(this.commentsWindow.destroy(),this.commentsWindow=null)}));this.get("viewPanels").funct=function(y,d){var p=f.getCurrentFile();f.menus.addMenuItems(y,"toggleShapes format ruler - findReplace layers tags outline -".split(" "),-d);f.commentsSupported()&&f.menus.addMenuItems(y,["-","comments"],d);null!=p&&p.isRealtimeEnabled()&&p.isRealtimeSupported()&&f.menus.addMenuItems(y,["-","showRemoteCursors","shareCursor"],d);f.menus.addMenuItems(y,["-","fullscreen"],d)};this.put("view",new Menu(mxUtils.bind(this,function(y,d){if("simple"==Editor.currentTheme){var p=f.getCurrentFile();f.menus.addMenuItems(y,["toggleShapes","format"],d);f.isPageMenuVisible()&&f.menus.addMenuItems(y,["pageTabs"],d);f.menus.addMenuItems(y,["ruler","-",-"search"],d);if(isLocalStorage||mxClient.IS_CHROMEAPP){var A=f.menus.addMenuItem(y,"scratchpad",d);(!f.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&f.menus.addLinkToItem(A,"https://www.drawio.com/doc/faq/scratchpad")}f.menus.addMenuItems(y,"- findReplace layers tags outline -".split(" "),d);f.commentsSupported()&&f.menus.addMenuItems(y,["comments"],d);null!=p&&p.isRealtimeEnabled()&&p.isRealtimeSupported()&&this.addMenuItems(y,["showRemoteCursors"],d);this.addMenuItems(y,["-","fullscreen"],-d)}else{this.addMenuItems(y,["format","outline","layers","tags"].concat(f.commentsSupported()?["comments","-"]:["-"]));this.addMenuItems(y,["-","search"],d);if(isLocalStorage||mxClient.IS_CHROMEAPP)A=this.addMenuItem(y,"scratchpad",d),(!f.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(A,"https://www.drawio.com/doc/faq/scratchpad");this.addMenuItems(y,["toggleShapes","-","pageView","pageScale"]);this.addSubmenu("units",y,d);y.addSeparator(d);f.isPageMenuVisible()&&-f.menus.addMenuItems(y,["pageTabs"],d);this.addMenuItems(y,"ruler - tooltips animations - grid guides - connectionArrows connectionPoints - resetView zoomIn zoomOut".split(" "),d);"1"!=urlParams.sketch&&this.addMenuItems(y,["-","fullscreen"],d)}})));this.put("editCell",new Menu(mxUtils.bind(this,function(y,d){this.addMenuItems(y,"editLink editShape editImage crop - editData copyData pasteData - editPolygon editConnectionPoints editGeometry - editTooltip editNote editStyle - edit".split(" "),d)})));-this.put("currentPage",new Menu(mxUtils.bind(this,function(y,d){null!=f.currentPage&&(this.addMenuItems(y,["renamePage","removePage"],d),1<f.pages.length&&(f.menus.addSubmenu("movePage",y,d,mxResources.get("move")),y.addSeparator(d)),this.addMenuItems(y,["-","duplicatePage"],d),1!=urlParams.embed&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=f.getServiceName()||y.addItem(mxResources.get("openInNewWindow"),null,mxUtils.bind(this,function(){f.editor.editAsNew(f.getFileData(!0,null,null,-null,!0,!0))}),d)))})));this.put("pages",new Menu(mxUtils.bind(this,function(y,d){var p=f.currentPage;f.editor.graph.isLightboxView()||this.addMenuItems(y,["insertPage","-"],d);if(null!=f.pages){for(var A=0;A<f.pages.length;A++)mxUtils.bind(this,function(G){var I=null;I=f.pages[G]==p&&!f.editor.graph.isLightboxView()&&f.editor.graph.isEnabled()?f.menus.addSubmenu("currentPage",y,d,f.getShortPageName(p)):y.addItem(f.getShortPageName(f.pages[G]),null,mxUtils.bind(this,function(){f.selectPage(f.pages[G])}),-d);var L=f.pages[G].getId();I.setAttribute("title",f.pages[G].getName()+" ("+(G+1)+"/"+f.pages.length+")"+(null!=L?" ["+L+"]":""));f.pages[G]==p&&y.addCheckmark(I,Editor.checkmarkImage)})(A);f.editor.graph.isLightboxView()||(y.addSeparator(d),this.addMenuItems(y,["sortPages"],d),y.addItem(mxResources.get("deleteAll"),null,mxUtils.bind(this,function(){q.getModel().beginUpdate();try{for(var G=f.pages.length;0<=G;G--)f.removePage(f.pages[G])}catch(I){f.handleError(I)}finally{q.getModel().endUpdate()}f.actions.get("resetView").funct()}),-d,null,f.editor.graph.isEnabled()))}})));if(EditorUi.isElectronApp){var U="1"==urlParams.enableSpellCheck;x=f.actions.addAction("spellCheck",function(){f.toggleSpellCheck();U=!U;f.alert(mxResources.get("restartForChangeRequired"))});x.setToggleAction(!0);x.setSelectedCallback(function(){return U});var T="1"==urlParams.enableStoreBkp;x=f.actions.addAction("autoBkp",function(){f.toggleStoreBkp();T=!T});x.setToggleAction(!0);x.setSelectedCallback(function(){return T});var V="1"==urlParams.isGoogleFontsEnabled;-x=f.actions.addAction("googleFonts",function(){f.toggleGoogleFonts();V=!V;f.alert(mxResources.get("restartForChangeRequired"))});x.setToggleAction(!0);x.setSelectedCallback(function(){return V});f.actions.addAction("openDevTools",function(){f.openDevTools()});f.actions.addAction("drafts...",function(){var y=new FilenameDialog(f,EditorUi.draftSaveDelay/1E3+"",mxResources.get("apply"),mxUtils.bind(this,function(d){d=parseInt(d);0<=d&&(EditorUi.draftSaveDelay=1E3*d,EditorUi.enableDrafts=0<d,mxSettings.setDraftSaveDelay(d),-mxSettings.save())}),mxResources.get("draftSaveInt"));f.showDialog(y.container,320,80,!0,!0);y.init()})}var fa=this.get("language");this.put("extras",new Menu(mxUtils.bind(this,function(y,d){if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme){f.isThemeMenuVisible()&&f.menus.addSubmenu("theme",y,d);null==fa||"1"==urlParams.embed&&null!=urlParams.lang||f.menus.addSubmenu("language",y,d);"1"==urlParams.embed&&"1"!=urlParams.atlas||"1"==urlParams.extAuth||"1"==-urlParams.embedInline||f.menus.addSubmenu("appearance",y,d);y.addSeparator(d);f.menus.addSubmenu("units",y,d);this.addSubmenu("diagramLanguage",y,d);f.menus.addMenuItems(y,["-","collapseExpand","animations","tooltips"],d);var p=f.getCurrentFile();"simple"!=Editor.currentTheme&&(null!=p&&p.isRealtimeEnabled()&&p.isRealtimeSupported()&&this.addMenuItems(y,["showRemoteCursors"],d),f.menus.addMenuItems(y,["ruler"],d));EditorUi.isElectronApp&&f.menus.addMenuItems(y,["-","googleFonts","spellCheck","autoBkp",-"drafts"],d);y.addSeparator(d);f.mode!=App.MODE_ATLAS&&f.menus.addMenuItem(y,"configuration",d);y.addSeparator(d)}else f.isThemeMenuVisible()&&this.addSubmenu("theme",y,d),"1"==urlParams.embed&&null!=urlParams.lang||this.addSubmenu("language",y,d),"1"==urlParams.embed&&"1"!=urlParams.atlas||f.menus.addSubmenu("appearance",y,d),EditorUi.isElectronApp&&this.addMenuItems(y,["-","googleFonts","spellCheck","autoBkp","drafts"],d),y.addSeparator(d),"undefined"!==typeof MathJax&&(p=this.addMenuItem(y,"mathematicalTypesetting",-d),(!f.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(p,"https://www.drawio.com/doc/faq/math-typesetting")),"1"!=urlParams.embed&&(p=f.getCurrentFile(),null!=p&&p.isRealtimeEnabled()&&p.isRealtimeSupported()&&this.addMenuItems(y,["showRemoteCursors","shareCursor"],d),this.addMenuItems(y,["autosave"],d)),this.addMenuItems(y,["collapseExpand","-"],d),this.addSubmenu("diagramLanguage",y,d),this.addMenuItems(y,["editDiagram","-"],d),!f.isOfflineApp()&&isLocalStorage&&-this.addMenuItem(y,"plugins",d),this.addMenuItems(y,["configuration"],d)})));this.put("movePage",new Menu(mxUtils.bind(this,function(y,d){var p=f.currentPage,A=f.getPageIndex(p);if(null!=f.pages)for(var G=0;G<f.pages.length;G++)G!=A&&function(I){y.addItem(f.getShortPageName(f.pages[I]),null,function(){f.movePage(A,I);f.scrollToPage(p,!0)},d)}(G)})));this.put("share",new Menu(mxUtils.bind(this,function(y,d){if(!f.isStandaloneApp()){var p=f.isOffline(!0)?mxResources.get("offline"):f.getNetworkStatus();-null!=p&&(y.addItem(p,null,null,d,null,!1),y.addSeparator(d));f.menus.addMenuItems(y,["share"],d)}this.addMenuItem(y,"publishLink",d,null,null,mxResources.get("publish")+"...");EditorUi.isElectronApp||!f.isOwnGDriveDomain()||"draw.io"!=f.getServiceName()||navigator.standalone||this.addMenuItem(y,"presentationMode",d);null!=f.getMainUser()&&this.addMenuItems(y,["accounts"],d)})));this.put("diagram",new Menu(mxUtils.bind(this,function(y,d){var p=f.getCurrentFile();"simple"!=Editor.currentTheme&&(f.menus.addSubmenu("extras",-y,d,mxResources.get("settings")),y.addSeparator(d));var A="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme;if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)f.menus.addMenuItems(y,["new","open"],d),f.menus.addSubmenu("openRecent",y,d),f.menus.addMenuItems(y,"- synchronize properties - save saveAs -".split(" "),d);else if(f.mode==App.MODE_ATLAS){"1"!=urlParams.noSaveBtn&&"1"!=urlParams.embedInline&&f.menus.addMenuItems(y,["-","save"],d);if("1"==urlParams.saveAndExit||"1"==urlParams.noSaveBtn&&-"0"!=urlParams.saveAndExit||f.mode==App.MODE_ATLAS)f.menus.addMenuItems(y,["saveAndExit"],d),null!=p&&p.isRevisionHistorySupported()&&f.menus.addMenuItems(y,["revisionHistory"],d);y.addSeparator(d)}else f.mode==App.MODE_ATLAS?f.menus.addMenuItems(y,["save","synchronize","-"],d):"1"!=urlParams.noFileMenu&&(f.menus.addSubmenu("file",y,d),y.addSeparator(d),"min"==Editor.currentTheme&&(f.menus.addMenuItems(y,"toggleShapes format layers tags - findReplace".split(" "),d),f.commentsSupported()&&f.menus.addMenuItems(y,-["comments"],d),y.addSeparator(d)));f.menus.addSubmenu("exportAs",y,d);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"atlassian"==f.getServiceName()?f.menus.addMenuItems(y,["import"],d):"1"!=urlParams.noFileMenu&&f.menus.addSubmenu("importFrom",y,d);"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme?(f.menus.addMenuItems(y,["-","findReplace"],d),f.commentsSupported()&&f.menus.addMenuItems(y,["comments","-"],d),f.menus.addMenuItems(y,["toggleShapes","format","layers","tags","-"],d),f.menus.addMenuItems(y,-["pageSetup"],d)):"min"!=Editor.currentTheme&&(this.addMenuItems(y,["-"],d),this.addSubmenu("newLibrary",y,d),this.addSubmenu("openLibraryFrom",y,d));"sketch"!=Editor.currentTheme&&y.addSeparator(d);"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||f.menus.addMenuItems(y,["pageSetup"],d);"1"==urlParams.noFileMenu||mxClient.IS_IOS&&navigator.standalone||f.menus.addMenuItems(y,["print"],d);A||"min"==Editor.currentTheme||null!=p&&null!=f.fileNode&&"1"!=urlParams.embedInline&&this.addMenuItems(y,-["-","properties"]);y.addSeparator(d);"simple"==Editor.currentTheme&&(f.menus.addSubmenu("extras",y,d,mxResources.get("settings")),y.addSeparator(d));f.menus.addSubmenu("help",y,d);y.addSeparator(d);"1"==urlParams.embed&&("1"!=urlParams.noSaveBtn&&"1"!=urlParams.embedInline&&f.menus.addMenuItems(y,["save"],d),"1"==urlParams.saveAndExit||"1"==urlParams.noSaveBtn&&"0"!=urlParams.saveAndExit)&&(f.menus.addMenuItems(y,["saveAndExit"],d),null!=p&&p.isRevisionHistorySupported()&&f.menus.addMenuItems(y,-["revisionHistory"],d));"1"!=urlParams.embed&&f.mode!=App.MODE_ATLAS||"1"==urlParams.noExitBtn&&f.mode!=App.MODE_ATLAS||f.menus.addMenuItems(y,["exit"],d);"1"!=urlParams.embed&&null!=p&&"undefined"==typeof AtlasFile&&f.menus.addMenuItems(y,["-","close"],d)})));this.put("save",new Menu(mxUtils.bind(this,function(y,d){var p=f.getCurrentFile();null==p||p.constructor!=DriveFile&&p.constructor!=OneDriveFile?(f.menus.addMenuItems(y,["save","saveAs","-","rename"],d),this.addMenuItems(y,[f.isOfflineApp()?-"upload":"makeCopy"],d)):f.menus.addMenuItems(y,["save","makeCopy","-","rename","moveToFolder"],d);f.menus.addMenuItems(y,["-","autosave"],d);null!=p&&p.isRevisionHistorySupported()&&f.menus.addMenuItems(y,["-","revisionHistory"],d)})));this.put("file",new Menu(mxUtils.bind(this,function(y,d){var p="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme;if("1"==urlParams.embed)this.addSubmenu("importFrom",y,d),this.addSubmenu("exportAs",y,d),this.addSubmenu("embed",-y,d),"1"==urlParams.libraries&&(this.addMenuItems(y,["-"],d),this.addSubmenu("newLibrary",y,d),this.addSubmenu("openLibraryFrom",y,d)),f.isRevisionHistorySupported()&&this.addMenuItems(y,["-","revisionHistory"],d),this.addMenuItems(y,["-","pageSetup","print","-","rename"],d),"1"!=urlParams.embedInline&&("1"==urlParams.noSaveBtn?"0"!=urlParams.saveAndExit&&this.addMenuItems(y,["saveAndExit"],d):(this.addMenuItems(y,["save"],d),"1"==urlParams.saveAndExit&&this.addMenuItems(y,["saveAndExit"],d))),"1"!=-urlParams.noExitBtn&&this.addMenuItems(y,["exit"],d);else if(p)p=f.getCurrentFile(),f.menus.addMenuItems(y,["new"],d),f.menus.addSubmenu("openFrom",y,d),isLocalStorage&&this.addSubmenu("openRecent",y,d),y.addSeparator(d),f.menus.addMenuItems(y,["-","save"],d),null!=p&&p.constructor==DriveFile||f.menus.addMenuItems(y,["saveAs"],d),mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null==p||p.constructor==LocalFile&&null==p.fileHandle||f.menus.addMenuItems(y,["synchronize"],d),y.addSeparator(d),null!=p&&-("simple"==Editor.currentTheme||p.constructor!=DriveFile&&p.constructor!=GitHubFile&&p.constructor!=OneDriveFile||f.menus.addMenuItems(y,["share"],d),"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||this.addMenuItem(y,"publishLink",d,null,null,mxResources.get("publish")+"..."),"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||EditorUi.isElectronApp||!f.isOwnGDriveDomain()||"draw.io"!=f.getServiceName()||navigator.standalone||this.addMenuItem(y,-"presentationMode",d)),y.addSeparator(d),null!=p&&p.isRenamable()&&this.addMenuItems(y,["rename"],d),f.isOfflineApp()?this.addMenuItems(y,["upload"],d):(f.menus.addMenuItems(y,["makeCopy"],d),null!=p&&(p.constructor!=OneDriveFile&&p.constructor!=DriveFile||f.menus.addMenuItems(y,["moveToFolder"],d),y.addSeparator(d),null!=p.getFolderUrl()&&f.menus.addMenuItems(y,["openFolder"],d),null!=p.getFileUrl()&&f.menus.addMenuItems(y,["openFile"],d))),y.addSeparator(d),null!=p&&p.isRevisionHistorySupported()&&-f.menus.addMenuItems(y,["revisionHistory"],d),null!=p&&null!=f.fileNode&&"1"!=urlParams.embedInline&&this.addMenuItems(y,["properties"],d),"simple"==Editor.currentTheme&&f.menus.addMenuItems(y,["-","autosave"],d);else{p=this.editorUi.getCurrentFile();if(null!=p&&p.constructor==DriveFile){p.isRestricted()&&this.addMenuItems(y,["exportOptionsDisabled"],d);this.addMenuItems(y,["save","-","share"],d);var A=this.addMenuItem(y,"synchronize",d);(!f.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&-this.addLinkToItem(A,"https://www.drawio.com/doc/faq/synchronize");y.addSeparator(d)}else this.addMenuItems(y,["new"],d);this.addSubmenu("openFrom",y,d);isLocalStorage&&this.addSubmenu("openRecent",y,d);null!=p&&p.constructor==DriveFile?this.addMenuItems(y,"new - rename makeCopy openFolder moveToFolder".split(" "),d):(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null==p||p.constructor==LocalFile&&null==p.fileHandle||(y.addSeparator(d),A=this.addMenuItem(y,"synchronize",d),(!f.isOffline()||mxClient.IS_CHROMEAPP||-EditorUi.isElectronApp)&&this.addLinkToItem(A,"https://www.drawio.com/doc/faq/synchronize")),this.addMenuItems(y,["-","save","saveAs","-"],d),mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=f.getServiceName()||f.isOfflineApp()||null==p||this.addMenuItems(y,["share","-"],d),null!=p&&p.isRenamable()&&this.addMenuItems(y,["rename"],d),f.isOfflineApp()?this.addMenuItems(y,["upload"],d):(this.addMenuItems(y,["makeCopy"],d),null!=p&&(p.constructor==OneDriveFile&&this.addMenuItems(y,["moveToFolder"],-d),null!=p.getFolderUrl()&&f.menus.addMenuItems(y,["openFolder"],d))));y.addSeparator(d);this.addSubmenu("importFrom",y,d);this.addSubmenu("exportAs",y,d);f.isOffline()||(y.addSeparator(d),this.addSubmenu("embed",y,d),this.addSubmenu("publish",y,d));y.addSeparator(d);this.addSubmenu("newLibrary",y,d);this.addSubmenu("openLibraryFrom",y,d);f.isRevisionHistorySupported()&&this.addMenuItems(y,["-","revisionHistory"],d);null!=p&&null!=f.fileNode&&"1"!=urlParams.embedInline&&this.addMenuItems(y,["-","properties"]);+K);R("verticalTree",K);R("radialTree",K);R("organic",K);R("circle",K);x("mermaid");x("fromText");x("formatSql");x("plantUml");var M=function(y){q.getModel().beginUpdate();try{y=q.addCell(y),q.fireEvent(new mxEventObject("cellsInserted","cells",[y])),q.model.isVertex(y)&&q.isAutoSizeCell(y)&&q.updateCellSize(y)}finally{q.getModel().endUpdate()}q.scrollCellToVisible(y);q.setSelectionCell(y);q.container.focus();q.editAfterInsert&&q.startEditing(y);window.setTimeout(function(){null!=g.hoverIcons&&g.hoverIcons.update(q.view.getState(y))},+0);return y},O=function(y,d,p,A,G){y=new mxCell(y,new mxGeometry(0,0,d,p),A);y.vertex=!0;null==G&&(G=q.getCenterInsertPoint(q.getBoundingBoxFromGeometry([y],!0)));y.geometry.x=G.x;y.geometry.y=G.y;return M(y)};g.actions.put("insertText",new Action("text",function(y){q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())&&q.startEditingAtCell(O("Text",60,30,q.appendFontSize(Editor.defaultTextStyle,q.vertexFontSize),null==y||mxEvent.isControlDown(y)||mxEvent.isMetaDown(y)||!q.isMouseInsertPoint()?null:+q.getInsertPoint()))},null,null,"A")).isEnabled=u;g.actions.put("insertRectangle",new Action("rectangle",function(y){q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())&&O("",120,60,"whiteSpace=wrap;html=1;",null==y||mxEvent.isControlDown(y)||mxEvent.isMetaDown(y)||!q.isMouseInsertPoint()?null:q.getInsertPoint())},null,null,"D")).isEnabled=u;g.actions.put("insertNote",new Action("note",function(y){q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())&&O("",160,160,Editor.defaultNoteStyle,null==y||+mxEvent.isControlDown(y)||mxEvent.isMetaDown(y)||!q.isMouseInsertPoint()?null:q.getInsertPoint())},null,null,"S")).isEnabled=u;g.actions.put("insertEllipse",new Action("ellipse",function(y){q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())&&O("",80,80,"ellipse;whiteSpace=wrap;html=1;shapeInside=1;",null==y||mxEvent.isControlDown(y)||mxEvent.isMetaDown(y)||!q.isMouseInsertPoint()?null:q.getInsertPoint())},null,null,"F")).isEnabled=u;g.actions.put("insertRhombus",new Action("rhombus",function(y){q.isEnabled()&&+!q.isCellLocked(q.getDefaultParent())&&O("",80,80,"rhombus;whiteSpace=wrap;html=1;shapeInside=1;",null==y||mxEvent.isControlDown(y)||mxEvent.isMetaDown(y)||!q.isMouseInsertPoint()?null:q.getInsertPoint())},null,null,"R")).isEnabled=u;g.actions.put("insertEdge",new Action("line",function(y){if(q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())){var d=q.defaultEdgeLength;y=null==y||mxEvent.isControlDown(y)||mxEvent.isMetaDown(y)||!q.isMouseInsertPoint()?null:q.getInsertPoint();null==y&&(y=q.getCenterInsertPoint(q.getBoundingBoxFromGeometry([p],+!0)));var p=new mxCell("",new mxGeometry(0,0,d,0),"edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;");p.geometry.setTerminalPoint(y,!0);p.geometry.setTerminalPoint(new mxPoint(y.x+p.geometry.width,y.y),!1);p.geometry.points=[];p.geometry.relative=!0;p.edge=!0;M(p)}},null,null,"C")).isEnabled=u;g.actions.put("insertPolygon",new Action("polygon...",function(y){if(q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())){var d=new PolygonDialog(g,null,function(p){p=new mxCell("",new mxGeometry(0,0,+80,80),p);p.vertex=!0;var A=null==y||mxEvent.isControlDown(y)||mxEvent.isMetaDown(y)||!q.isMouseInsertPoint()?null:q.getInsertPoint();null==A&&(A=q.getCenterInsertPoint(q.getBoundingBoxFromGeometry([p],!0)));p.geometry.x=A.x;p.geometry.y=A.y;return M(p)});g.showDialog(d.container,680,540,!0,!0,function(){d.destroy()},null,null,new mxRectangle(0,0,740,600),null,"insertPolygon");d.init()}})).isEnabled=u;x=g.actions.put("toggleShapes",new Action("shapes",function(){null!=g.sidebarWindow?g.sidebarWindow.window.setVisible(!g.sidebarWindow.window.isVisible()):+g.toggleShapesPanel(!g.isShapesPanelVisible())},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+K"));x.setToggleAction(!0);x.setSelectedCallback(mxUtils.bind(this,function(){return null!=g.sidebarWindow&&g.sidebarWindow.window.isVisible()||null==g.sidebarWindow&&0<g.hsplitPosition}));g.actions.put("showShapePicker",new Action(mxResources.get("shapes")+"...",function(){var y=q._contextMenuScreenPoint;g.showShapePicker(null!=y?y.x:q.container.clientWidth/2,null!=y?y.y:q.container.clientHeight/2)}));+this.put("insert",new Menu(mxUtils.bind(this,function(y,d){Editor.passiveScroll?(g.menus.addMenuItems(y,["showShapePicker"],d),g.menus.addSubmenu("table",y,d),y.addSeparator(d),g.menus.addMenuItems(y,"insertRectangle insertEllipse insertRhombus - insertEdge insertNote - insertText insertLink - insertImage createShape insertPolygon -".split(" "),d),g.insertTemplateEnabled&&!g.isOffline()&&g.menus.addMenuItems(y,["insertTemplate"],d),g.menus.addMenuItems(y,["-","insertFreehand","generate","-"],d),g.menus.addSubmenu("layout",+y,d),g.menus.addSubmenu("insertAdvanced",y,d,mxResources.get("advanced"))):"sketch"==Editor.currentTheme?(g.menus.addMenuItems(y,["toggleShapes"],d),g.menus.addSubmenu("table",y,d),y.addSeparator(d),g.menus.addMenuItems(y,"insertText insertLink - insertImage createShape insertPolygon -".split(" "),d),g.insertTemplateEnabled&&!g.isOffline()&&g.menus.addMenuItems(y,["insertTemplate"],d),EditorUi.isMermaidSupported()&&g.menus.addMenuItems(y,["mermaid"],d),g.menus.addMenuItems(y,["-","insertFreehand",+"generate","-"],d),g.menus.addSubmenu("layout",y,d),g.menus.addSubmenu("insertAdvanced",y,d,mxResources.get("advanced"))):(this.addMenuItems(y,"insertRectangle insertEllipse insertRhombus - insertEdge insertNote - insertText insertLink - insertImage createShape insertPolygon -".split(" "),d),g.insertTemplateEnabled&&!g.isOffline()&&this.addMenuItems(y,["insertTemplate"],d),EditorUi.isMermaidSupported()&&this.addMenuItems(y,["mermaid"],d),g.menus.addMenuItems(y,["-","insertFreehand","generate","-"],+d),"min"==uiTheme||"simple"==Editor.currentTheme?(this.addSubmenu("layout",y,d),this.addSubmenu("insertLayout",y,d,mxResources.get("insert")),y.addSeparator(d),this.addSubmenu("table",y,d)):this.addSubmenu("insertLayout",y,d,mxResources.get("layout")),this.addSubmenu("insertAdvanced",y,d,mxResources.get("advanced")))})));this.put("table",new Menu(mxUtils.bind(this,function(y,d){g.menus.addInsertTableCellItem(y,d)})));this.put("insertLayout",new Menu(mxUtils.bind(this,function(y,d){this.addMenuItems(y,+"horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),d)})));g.actions.put("csv",new Action(mxResources.get("csv")+"...",function(){q.popupMenuHandler.hideMenu();g.showImportCsvDialog()})).isEnabled=u;this.put("insertAdvanced",new Menu(mxUtils.bind(this,function(y,d){this.addMenuItems(y,["fromText","plantUml","formatSql","csv"],d);"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(y,["-","createShape","editDiagram"],d)})));this.put("openRecent",+new Menu(function(y,d){var p=g.getRecent();if(null!=p){for(var A=0;A<p.length;A++)(function(G){var I=G.mode;I==App.MODE_GOOGLE?I="googleDrive":I==App.MODE_ONEDRIVE&&(I="oneDrive");y.addItem(G.title+" ("+mxResources.get(I)+")",null,function(){g.loadFile(G.id)},d)})(p[A]);y.addSeparator(d)}y.addItem(mxResources.get("reset"),null,function(){g.resetRecent()},d)}));this.put("openFrom",new Menu(function(y,d){null!=g.drive?y.addItem(mxResources.get("googleDrive")+"...",null,function(){g.pickFile(App.MODE_GOOGLE)},+d):g.isModeEnabled(App.MODE_GOOGLE)&&y.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);g.isModeReady(App.MODE_ONEDRIVE)?y.addItem(mxResources.get("oneDrive")+"...",null,function(){g.pickFile(App.MODE_ONEDRIVE)},d):g.isModeEnabled(App.MODE_ONEDRIVE)&&y.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);g.isModeReady(App.MODE_M365)?y.addItem(mxResources.get("m365")+"...",null,function(){g.pickFile(App.MODE_M365)},+d):g.isModeEnabled(App.MODE_M365)&&y.addItem(mxResources.get("m365")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);g.isModeReady(App.MODE_DROPBOX)?y.addItem(mxResources.get("dropbox")+"...",null,function(){g.pickFile(App.MODE_DROPBOX)},d):g.isModeEnabled(App.MODE_DROPBOX)&&y.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);y.addSeparator(d);g.isModeReady(App.MODE_GITHUB)&&y.addItem(mxResources.get("github")+"...",null,function(){g.pickFile(App.MODE_GITHUB)},+d);g.isModeReady(App.MODE_GITLAB)&&y.addItem(mxResources.get("gitlab")+"...",null,function(){g.pickFile(App.MODE_GITLAB)},d);g.isModeReady(App.MODE_TRELLO)?y.addItem(mxResources.get("trello")+"...",null,function(){g.pickFile(App.MODE_TRELLO)},d):g.isModeEnabled(App.MODE_TRELLO)&&y.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);y.addSeparator(d);isLocalStorage&&"0"!=urlParams.browser&&y.addItem(mxResources.get("browser")+"...",null,function(){g.pickFile(App.MODE_BROWSER)},+d);"1"!=urlParams.noDevice&&y.addItem(mxResources.get("device")+"...",null,function(){g.pickFile(App.MODE_DEVICE)},d);g.isOffline()||(y.addSeparator(d),y.addItem(mxResources.get("url")+"...",null,function(){var p=new FilenameDialog(g,"",mxResources.get("open"),function(A){null!=A&&0<A.length&&(null==g.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(A):window.geOpenWindow((mxClient.IS_CHROMEAPP?"https://app.diagrams.net/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(A)))},+mxResources.get("url"));g.showDialog(p.container,300,80,!0,!0);p.init()},d))}));Editor.enableCustomLibraries&&(this.put("newLibrary",new Menu(function(y,d){"undefined"!=typeof google&&"undefined"!=typeof google.picker&&(null!=g.drive?y.addItem(mxResources.get("googleDrive")+"...",null,function(){g.showLibraryDialog(null,null,null,null,App.MODE_GOOGLE)},d):g.isModeEnabled(App.MODE_GOOGLE)&&y.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1));+g.isModeReady(App.MODE_ONEDRIVE)?y.addItem(mxResources.get("oneDrive")+"...",null,function(){g.showLibraryDialog(null,null,null,null,App.MODE_ONEDRIVE)},d):g.isModeEnabled(App.MODE_ONEDRIVE)&&y.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);y.addSeparator(d);g.isModeReady(App.MODE_GITHUB)&&y.addItem(mxResources.get("github")+"...",null,function(){g.showLibraryDialog(null,null,null,null,App.MODE_GITHUB)},d);g.isModeReady(App.MODE_GITLAB)&&y.addItem(mxResources.get("gitlab")++"...",null,function(){g.showLibraryDialog(null,null,null,null,App.MODE_GITLAB)},d);g.isModeReady(App.MODE_TRELLO)?y.addItem(mxResources.get("trello")+"...",null,function(){g.showLibraryDialog(null,null,null,null,App.MODE_TRELLO)},d):g.isModeEnabled(App.MODE_TRELLO)&&y.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);y.addSeparator(d);isLocalStorage&&"0"!=urlParams.browser&&y.addItem(mxResources.get("browser")+"...",null,function(){g.showLibraryDialog(null,+null,null,null,App.MODE_BROWSER)},d);"1"!=urlParams.noDevice&&y.addItem(mxResources.get("device")+"...",null,function(){g.showLibraryDialog(null,null,null,null,App.MODE_DEVICE)},d);"1"==urlParams.confLib&&y.addItem(mxResources.get("confluenceCloud")+"...",null,function(){g.showLibraryDialog(null,null,null,null,"CONF_LIB")},d)})),this.put("openLibraryFrom",new Menu(function(y,d){"undefined"!=typeof google&&"undefined"!=typeof google.picker&&(null!=g.drive?y.addItem(mxResources.get("googleDrive")+"...",+null,function(){g.pickLibrary(App.MODE_GOOGLE)},d):g.isModeEnabled(App.MODE_GOOGLE)&&y.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1));g.isModeReady(App.MODE_ONEDRIVE)?y.addItem(mxResources.get("oneDrive")+"...",null,function(){g.pickLibrary(App.MODE_ONEDRIVE)},d):g.isModeEnabled(App.MODE_ONEDRIVE)&&y.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);g.isModeReady(App.MODE_DROPBOX)?y.addItem(mxResources.get("dropbox")++"...",null,function(){g.pickLibrary(App.MODE_DROPBOX)},d):g.isModeEnabled(App.MODE_DROPBOX)&&y.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);y.addSeparator(d);g.isModeReady(App.MODE_GITHUB)&&y.addItem(mxResources.get("github")+"...",null,function(){g.pickLibrary(App.MODE_GITHUB)},d);g.isModeReady(App.MODE_GITLAB)&&y.addItem(mxResources.get("gitlab")+"...",null,function(){g.pickLibrary(App.MODE_GITLAB)},d);g.isModeReady(App.MODE_TRELLO)?y.addItem(mxResources.get("trello")++"...",null,function(){g.pickLibrary(App.MODE_TRELLO)},d):g.isModeEnabled(App.MODE_TRELLO)&&y.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);y.addSeparator(d);isLocalStorage&&"0"!=urlParams.browser&&y.addItem(mxResources.get("browser")+"...",null,function(){g.pickLibrary(App.MODE_BROWSER)},d);"1"!=urlParams.noDevice&&y.addItem(mxResources.get("device")+"...",null,function(){g.pickLibrary(App.MODE_DEVICE)},d);g.isOffline()||(y.addSeparator(d),y.addItem(mxResources.get("url")++"...",null,function(){var p=new FilenameDialog(g,"",mxResources.get("open"),function(A){if(null!=A&&0<A.length&&g.spinner.spin(document.body,mxResources.get("loading"))){var G=A;g.editor.isCorsEnabledForUrl(A)||(G=PROXY_URL+"?url="+encodeURIComponent(A));mxUtils.get(G,function(I){if(200<=I.getStatus()&&299>=I.getStatus()){g.spinner.stop();try{g.loadLibrary(new UrlLibrary(g,I.getText(),A)),g.showSidebar()}catch(L){g.handleError(L,mxResources.get("errorLoadingFile"))}}else g.spinner.stop(),g.handleError(null,+mxResources.get("errorLoadingFile"))},function(){g.spinner.stop();g.handleError(null,mxResources.get("errorLoadingFile"))})}},mxResources.get("url"));g.showDialog(p.container,300,80,!0,!0);p.init()},d));"1"==urlParams.confLib&&(y.addSeparator(d),y.addItem(mxResources.get("confluenceCloud")+"...",null,function(){g.showRemotelyStoredLibrary(mxResources.get("libraries"))},d))})));this.put("edit",new Menu(mxUtils.bind(this,function(y,d){this.addMenuItems(y,"undo redo - cut copy copyAsImage copyAsSvg paste delete - duplicate - findReplace - editData editTooltip editNote - editStyle editGeometry editPolygon editConnectionPoints - edit - editLink openLink - selectVertices selectEdges selectAll selectNone - lockUnlock".split(" "))})));+this.showCommentsWindow=mxUtils.bind(this,function(y,d){if(null==this.commentsWindow){var p=mxSettings.getWindowState("comments");this.commentsWindow=new CommentsWindow(g,null!=p&&null!=p.x?p.x:document.body.offsetWidth-380,null!=p&&null!=p.y?p.y:120,null!=p&&null!=p.w?p.w:300,null!=p&&null!=p.h?p.h:350);this.commentsWindow.window.addListener("show",function(){g.fireEvent(new mxEventObject("comments"))});this.commentsWindow.window.addListener("hide",function(){g.fireEvent(new mxEventObject("comments"))});+g.installWindowPersistence("comments",this.commentsWindow);null!=p&&g.restoreWindowState("comments",this.commentsWindow);g.fireEvent(new mxEventObject("comments"))}else this.commentsWindow.window.isVisible()||this.commentsWindow.refreshComments();this.commentsWindow.window.setVisible(!0);this.commentsWindow.refreshCommentsTime();null!=y&&this.commentsWindow.scrollToCell(y);null!=d&&this.commentsWindow.startNewComment(d)});x=g.actions.addAction("comments",mxUtils.bind(this,function(){null!=this.commentsWindow&&+this.commentsWindow.window.isVisible()?this.commentsWindow.window.setVisible(!1):this.showCommentsWindow()}));x.setToggleAction(!0);x.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.commentsWindow&&this.commentsWindow.window.isVisible()}));g.editor.addListener("fileLoaded",mxUtils.bind(this,function(){null!=this.commentsWindow&&(this.commentsWindow.destroy(),this.commentsWindow=null)}));this.get("viewPanels").funct=function(y,d){var p=g.getCurrentFile();g.menus.addMenuItems(y,"toggleShapes format ruler - findReplace layers tags outline -".split(" "),+d);g.commentsSupported()&&g.menus.addMenuItems(y,["-","comments"],d);null!=p&&p.isRealtimeEnabled()&&p.isRealtimeSupported()&&g.menus.addMenuItems(y,["-","showRemoteCursors","shareCursor"],d);g.menus.addMenuItems(y,["-","fullscreen"],d)};this.put("view",new Menu(mxUtils.bind(this,function(y,d){if("simple"==Editor.currentTheme){var p=g.getCurrentFile();g.menus.addMenuItems(y,["toggleShapes","format"],d);g.isPageMenuVisible()&&g.menus.addMenuItems(y,["pageTabs"],d);g.menus.addMenuItems(y,["ruler","-",+"search"],d);if(isLocalStorage||mxClient.IS_CHROMEAPP){var A=g.menus.addMenuItem(y,"scratchpad",d);(!g.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&g.menus.addLinkToItem(A,"https://www.drawio.com/doc/faq/scratchpad")}g.menus.addMenuItems(y,"- findReplace layers tags outline -".split(" "),d);g.commentsSupported()&&g.menus.addMenuItems(y,["comments"],d);null!=p&&p.isRealtimeEnabled()&&p.isRealtimeSupported()&&this.addMenuItems(y,["showRemoteCursors"],d);this.addMenuItems(y,["-","fullscreen"],+d)}else{this.addMenuItems(y,["format","outline","layers","tags"].concat(g.commentsSupported()?["comments","-"]:["-"]));this.addMenuItems(y,["-","search"],d);if(isLocalStorage||mxClient.IS_CHROMEAPP)A=this.addMenuItem(y,"scratchpad",d),(!g.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(A,"https://www.drawio.com/doc/faq/scratchpad");this.addMenuItems(y,["toggleShapes","-","pageView","pageScale"]);this.addSubmenu("units",y,d);y.addSeparator(d);g.isPageMenuVisible()&&+g.menus.addMenuItems(y,["pageTabs"],d);this.addMenuItems(y,"ruler - tooltips animations - grid guides - connectionArrows connectionPoints - resetView zoomIn zoomOut".split(" "),d);"1"!=urlParams.sketch&&this.addMenuItems(y,["-","fullscreen"],d)}})));this.put("editCell",new Menu(mxUtils.bind(this,function(y,d){this.addMenuItems(y,"editLink editShape editImage crop - editData copyData pasteData - editPolygon editConnectionPoints editGeometry - editTooltip editNote editStyle - edit".split(" "),d)})));+this.put("currentPage",new Menu(mxUtils.bind(this,function(y,d){null!=g.currentPage&&(this.addMenuItems(y,["renamePage","removePage"],d),1<g.pages.length&&(g.menus.addSubmenu("movePage",y,d,mxResources.get("move")),y.addSeparator(d)),this.addMenuItems(y,["-","duplicatePage"],d),1!=urlParams.embed&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=g.getServiceName()||y.addItem(mxResources.get("openInNewWindow"),null,mxUtils.bind(this,function(){g.editor.editAsNew(g.getFileData(!0,null,null,+null,!0,!0))}),d)))})));this.put("pages",new Menu(mxUtils.bind(this,function(y,d){var p=g.currentPage;g.editor.graph.isLightboxView()||this.addMenuItems(y,["insertPage","-"],d);if(null!=g.pages){for(var A=0;A<g.pages.length;A++)mxUtils.bind(this,function(G){var I=null;I=g.pages[G]==p&&!g.editor.graph.isLightboxView()&&g.editor.graph.isEnabled()?g.menus.addSubmenu("currentPage",y,d,g.getShortPageName(p)):y.addItem(g.getShortPageName(g.pages[G]),null,mxUtils.bind(this,function(){g.selectPage(g.pages[G])}),+d);var L=g.pages[G].getId();I.setAttribute("title",g.pages[G].getName()+" ("+(G+1)+"/"+g.pages.length+")"+(null!=L?" ["+L+"]":""));g.pages[G]==p&&y.addCheckmark(I,Editor.checkmarkImage)})(A);g.editor.graph.isLightboxView()||(y.addSeparator(d),this.addMenuItems(y,["sortPages"],d),y.addItem(mxResources.get("deleteAll"),null,mxUtils.bind(this,function(){q.getModel().beginUpdate();try{for(var G=g.pages.length;0<=G;G--)g.removePage(g.pages[G])}catch(I){g.handleError(I)}finally{q.getModel().endUpdate()}g.actions.get("resetView").funct()}),+d,null,g.editor.graph.isEnabled()))}})));if(EditorUi.isElectronApp){var U="1"==urlParams.enableSpellCheck;x=g.actions.addAction("spellCheck",function(){g.toggleSpellCheck();U=!U;g.alert(mxResources.get("restartForChangeRequired"))});x.setToggleAction(!0);x.setSelectedCallback(function(){return U});var T="1"==urlParams.enableStoreBkp;x=g.actions.addAction("autoBkp",function(){g.toggleStoreBkp();T=!T});x.setToggleAction(!0);x.setSelectedCallback(function(){return T});var V="1"==urlParams.isGoogleFontsEnabled;+x=g.actions.addAction("googleFonts",function(){g.toggleGoogleFonts();V=!V;g.alert(mxResources.get("restartForChangeRequired"))});x.setToggleAction(!0);x.setSelectedCallback(function(){return V});g.actions.addAction("openDevTools",function(){g.openDevTools()});g.actions.addAction("drafts...",function(){var y=new FilenameDialog(g,EditorUi.draftSaveDelay/1E3+"",mxResources.get("apply"),mxUtils.bind(this,function(d){d=parseInt(d);0<=d&&(EditorUi.draftSaveDelay=1E3*d,EditorUi.enableDrafts=0<d,mxSettings.setDraftSaveDelay(d),+mxSettings.save())}),mxResources.get("draftSaveInt"));g.showDialog(y.container,320,80,!0,!0);y.init()})}var fa=this.get("language");this.put("extras",new Menu(mxUtils.bind(this,function(y,d){if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme){g.isThemeMenuVisible()&&g.menus.addSubmenu("theme",y,d);null==fa||"1"==urlParams.embed&&null!=urlParams.lang||g.menus.addSubmenu("language",y,d);"1"==urlParams.embed&&"1"!=urlParams.atlas||"1"==urlParams.extAuth||"1"==+urlParams.embedInline||g.menus.addSubmenu("appearance",y,d);y.addSeparator(d);g.menus.addSubmenu("units",y,d);this.addSubmenu("diagramLanguage",y,d);g.menus.addMenuItems(y,["-","collapseExpand","animations","tooltips"],d);var p=g.getCurrentFile();"simple"!=Editor.currentTheme&&(null!=p&&p.isRealtimeEnabled()&&p.isRealtimeSupported()&&this.addMenuItems(y,["showRemoteCursors"],d),g.menus.addMenuItems(y,["ruler"],d));EditorUi.isElectronApp&&g.menus.addMenuItems(y,["-","googleFonts","spellCheck","autoBkp",+"drafts"],d);y.addSeparator(d);g.mode!=App.MODE_ATLAS&&g.menus.addMenuItem(y,"configuration",d);y.addSeparator(d)}else g.isThemeMenuVisible()&&this.addSubmenu("theme",y,d),"1"==urlParams.embed&&null!=urlParams.lang||this.addSubmenu("language",y,d),"1"==urlParams.embed&&"1"!=urlParams.atlas||g.menus.addSubmenu("appearance",y,d),EditorUi.isElectronApp&&this.addMenuItems(y,["-","googleFonts","spellCheck","autoBkp","drafts"],d),y.addSeparator(d),"undefined"!==typeof MathJax&&(p=this.addMenuItem(y,"mathematicalTypesetting",+d),(!g.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(p,"https://www.drawio.com/doc/faq/math-typesetting")),"1"!=urlParams.embed&&(p=g.getCurrentFile(),null!=p&&p.isRealtimeEnabled()&&p.isRealtimeSupported()&&this.addMenuItems(y,["showRemoteCursors","shareCursor"],d),this.addMenuItems(y,["autosave"],d)),this.addMenuItems(y,["collapseExpand","-"],d),this.addSubmenu("diagramLanguage",y,d),this.addMenuItems(y,["editDiagram","-"],d),!g.isOfflineApp()&&isLocalStorage&&+this.addMenuItem(y,"plugins",d),this.addMenuItems(y,["configuration"],d)})));this.put("movePage",new Menu(mxUtils.bind(this,function(y,d){var p=g.currentPage,A=g.getPageIndex(p);if(null!=g.pages)for(var G=0;G<g.pages.length;G++)G!=A&&function(I){y.addItem(g.getShortPageName(g.pages[I]),null,function(){g.movePage(A,I);g.scrollToPage(p,!0)},d)}(G)})));this.put("share",new Menu(mxUtils.bind(this,function(y,d){if(!g.isStandaloneApp()){var p=g.isOffline(!0)?mxResources.get("offline"):g.getNetworkStatus();+null!=p&&(y.addItem(p,null,null,d,null,!1),y.addSeparator(d));g.menus.addMenuItems(y,["share"],d)}this.addMenuItem(y,"publishLink",d,null,null,mxResources.get("publish")+"...");EditorUi.isElectronApp||!g.isOwnGDriveDomain()||"draw.io"!=g.getServiceName()||navigator.standalone||this.addMenuItem(y,"presentationMode",d);null!=g.getMainUser()&&this.addMenuItems(y,["accounts"],d)})));this.put("diagram",new Menu(mxUtils.bind(this,function(y,d){var p=g.getCurrentFile();"simple"!=Editor.currentTheme&&(g.menus.addSubmenu("extras",+y,d,mxResources.get("settings")),y.addSeparator(d));var A="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme;if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)g.menus.addMenuItems(y,["new","open"],d),g.menus.addSubmenu("openRecent",y,d),g.menus.addMenuItems(y,"- synchronize properties - save saveAs -".split(" "),d);else if(g.mode==App.MODE_ATLAS){"1"!=urlParams.noSaveBtn&&"1"!=urlParams.embedInline&&g.menus.addMenuItems(y,["-","save"],d);if("1"==urlParams.saveAndExit||"1"==urlParams.noSaveBtn&&+"0"!=urlParams.saveAndExit||g.mode==App.MODE_ATLAS)g.menus.addMenuItems(y,["saveAndExit"],d),null!=p&&p.isRevisionHistorySupported()&&g.menus.addMenuItems(y,["revisionHistory"],d);y.addSeparator(d)}else g.mode==App.MODE_ATLAS?g.menus.addMenuItems(y,["save","synchronize","-"],d):"1"!=urlParams.noFileMenu&&(g.menus.addSubmenu("file",y,d),y.addSeparator(d),"min"==Editor.currentTheme&&(g.menus.addMenuItems(y,"toggleShapes format layers tags - findReplace".split(" "),d),g.commentsSupported()&&g.menus.addMenuItems(y,+["comments"],d),y.addSeparator(d)));g.menus.addSubmenu("exportAs",y,d);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"atlassian"==g.getServiceName()?g.menus.addMenuItems(y,["import"],d):"1"!=urlParams.noFileMenu&&g.menus.addSubmenu("importFrom",y,d);"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme?(g.menus.addMenuItems(y,["-","findReplace"],d),g.commentsSupported()&&g.menus.addMenuItems(y,["comments","-"],d),g.menus.addMenuItems(y,["toggleShapes","format","layers","tags","-"],d),g.menus.addMenuItems(y,+["pageSetup"],d)):"min"!=Editor.currentTheme&&(this.addMenuItems(y,["-"],d),this.addSubmenu("newLibrary",y,d),this.addSubmenu("openLibraryFrom",y,d));"sketch"!=Editor.currentTheme&&y.addSeparator(d);"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||g.menus.addMenuItems(y,["pageSetup"],d);"1"==urlParams.noFileMenu||mxClient.IS_IOS&&navigator.standalone||g.menus.addMenuItems(y,["print"],d);A||"min"==Editor.currentTheme||null!=p&&null!=g.fileNode&&"1"!=urlParams.embedInline&&this.addMenuItems(y,+["-","properties"]);y.addSeparator(d);"simple"==Editor.currentTheme&&(g.menus.addSubmenu("extras",y,d,mxResources.get("settings")),y.addSeparator(d));g.menus.addSubmenu("help",y,d);y.addSeparator(d);"1"==urlParams.embed&&("1"!=urlParams.noSaveBtn&&"1"!=urlParams.embedInline&&g.menus.addMenuItems(y,["save"],d),"1"==urlParams.saveAndExit||"1"==urlParams.noSaveBtn&&"0"!=urlParams.saveAndExit)&&(g.menus.addMenuItems(y,["saveAndExit"],d),null!=p&&p.isRevisionHistorySupported()&&g.menus.addMenuItems(y,+["revisionHistory"],d));"1"!=urlParams.embed&&g.mode!=App.MODE_ATLAS||"1"==urlParams.noExitBtn&&g.mode!=App.MODE_ATLAS||g.menus.addMenuItems(y,["exit"],d);"1"!=urlParams.embed&&null!=p&&"undefined"==typeof AtlasFile&&g.menus.addMenuItems(y,["-","close"],d)})));this.put("save",new Menu(mxUtils.bind(this,function(y,d){var p=g.getCurrentFile();null==p||p.constructor!=DriveFile&&p.constructor!=OneDriveFile?(g.menus.addMenuItems(y,["save","saveAs","-","rename"],d),this.addMenuItems(y,[g.isOfflineApp()?+"upload":"makeCopy"],d)):g.menus.addMenuItems(y,["save","makeCopy","-","rename","moveToFolder"],d);g.menus.addMenuItems(y,["-","autosave"],d);null!=p&&p.isRevisionHistorySupported()&&g.menus.addMenuItems(y,["-","revisionHistory"],d)})));this.put("file",new Menu(mxUtils.bind(this,function(y,d){var p="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme;if("1"==urlParams.embed)this.addSubmenu("importFrom",y,d),this.addSubmenu("exportAs",y,d),this.addSubmenu("embed",+y,d),"1"==urlParams.libraries&&(this.addMenuItems(y,["-"],d),this.addSubmenu("newLibrary",y,d),this.addSubmenu("openLibraryFrom",y,d)),g.isRevisionHistorySupported()&&this.addMenuItems(y,["-","revisionHistory"],d),this.addMenuItems(y,["-","pageSetup","print","-","rename"],d),"1"!=urlParams.embedInline&&("1"==urlParams.noSaveBtn?"0"!=urlParams.saveAndExit&&this.addMenuItems(y,["saveAndExit"],d):(this.addMenuItems(y,["save"],d),"1"==urlParams.saveAndExit&&this.addMenuItems(y,["saveAndExit"],d))),"1"!=+urlParams.noExitBtn&&this.addMenuItems(y,["exit"],d);else if(p)p=g.getCurrentFile(),g.menus.addMenuItems(y,["new"],d),g.menus.addSubmenu("openFrom",y,d),isLocalStorage&&this.addSubmenu("openRecent",y,d),y.addSeparator(d),g.menus.addMenuItems(y,["-","save"],d),null!=p&&p.constructor==DriveFile||g.menus.addMenuItems(y,["saveAs"],d),mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null==p||p.constructor==LocalFile&&null==p.fileHandle||g.menus.addMenuItems(y,["synchronize"],d),y.addSeparator(d),null!=p&&+("simple"==Editor.currentTheme||p.constructor!=DriveFile&&p.constructor!=GitHubFile&&p.constructor!=OneDriveFile||g.menus.addMenuItems(y,["share"],d),"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||this.addMenuItem(y,"publishLink",d,null,null,mxResources.get("publish")+"..."),"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||EditorUi.isElectronApp||!g.isOwnGDriveDomain()||"draw.io"!=g.getServiceName()||navigator.standalone||this.addMenuItem(y,+"presentationMode",d)),y.addSeparator(d),null!=p&&p.isRenamable()&&this.addMenuItems(y,["rename"],d),g.isOfflineApp()?this.addMenuItems(y,["upload"],d):(g.menus.addMenuItems(y,["makeCopy"],d),null!=p&&(p.constructor!=OneDriveFile&&p.constructor!=DriveFile||g.menus.addMenuItems(y,["moveToFolder"],d),y.addSeparator(d),null!=p.getFolderUrl()&&g.menus.addMenuItems(y,["openFolder"],d),null!=p.getFileUrl()&&g.menus.addMenuItems(y,["openFile"],d))),y.addSeparator(d),null!=p&&p.isRevisionHistorySupported()&&+g.menus.addMenuItems(y,["revisionHistory"],d),null!=p&&null!=g.fileNode&&"1"!=urlParams.embedInline&&this.addMenuItems(y,["properties"],d),"simple"==Editor.currentTheme&&g.menus.addMenuItems(y,["-","autosave"],d);else{p=this.editorUi.getCurrentFile();if(null!=p&&p.constructor==DriveFile){p.isRestricted()&&this.addMenuItems(y,["exportOptionsDisabled"],d);this.addMenuItems(y,["save","-","share"],d);var A=this.addMenuItem(y,"synchronize",d);(!g.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&+this.addLinkToItem(A,"https://www.drawio.com/doc/faq/synchronize");y.addSeparator(d)}else this.addMenuItems(y,["new"],d);this.addSubmenu("openFrom",y,d);isLocalStorage&&this.addSubmenu("openRecent",y,d);null!=p&&p.constructor==DriveFile?this.addMenuItems(y,"new - rename makeCopy openFolder moveToFolder".split(" "),d):(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null==p||p.constructor==LocalFile&&null==p.fileHandle||(y.addSeparator(d),A=this.addMenuItem(y,"synchronize",d),(!g.isOffline()||mxClient.IS_CHROMEAPP||+EditorUi.isElectronApp)&&this.addLinkToItem(A,"https://www.drawio.com/doc/faq/synchronize")),this.addMenuItems(y,["-","save","saveAs","-"],d),mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=g.getServiceName()||g.isOfflineApp()||null==p||this.addMenuItems(y,["share","-"],d),null!=p&&p.isRenamable()&&this.addMenuItems(y,["rename"],d),g.isOfflineApp()?this.addMenuItems(y,["upload"],d):(this.addMenuItems(y,["makeCopy"],d),null!=p&&(p.constructor==OneDriveFile&&this.addMenuItems(y,["moveToFolder"],+d),null!=p.getFolderUrl()&&g.menus.addMenuItems(y,["openFolder"],d))));y.addSeparator(d);this.addSubmenu("importFrom",y,d);this.addSubmenu("exportAs",y,d);g.isOffline()||(y.addSeparator(d),this.addSubmenu("embed",y,d),this.addSubmenu("publish",y,d));y.addSeparator(d);this.addSubmenu("newLibrary",y,d);this.addSubmenu("openLibraryFrom",y,d);g.isRevisionHistorySupported()&&this.addMenuItems(y,["-","revisionHistory"],d);null!=p&&null!=g.fileNode&&"1"!=urlParams.embedInline&&this.addMenuItems(y,["-","properties"]);this.addMenuItems(y,["-","pageSetup"],d);mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(y,["print"],d);this.addMenuItems(y,["-","close"])}})));this.put("fontFamily",new Menu(mxUtils.bind(this,function(y,d){function p(W){var Y=encodeURIComponent(W.name)+(null==W.url?"":"@"+encodeURIComponent(W.url));if(!G[Y]){for(var X=W.name,ca=0;null!=Q[X.toLowerCase()];)X=W.name+" ("+ ++ca+")";null==P[Y]&&(ba.push({name:W.name,url:W.url,label:X,title:W.url}),Q[X.toLowerCase()]=W,P[Y]=W)}}for(var A=mxUtils.bind(this,-function(W,Y,X,ca,S){var Z=f.editor.graph,da=this.styleChange(y,null!=ca?ca:W,[mxConstants.STYLE_FONTFAMILY,"fontSource","FType"],[W,null!=Y?encodeURIComponent(Y):null,null],null,d,function(){Z.setFont(W,Y);f.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTFAMILY,"fontSource","FType"],"values",[W,null!=Y?encodeURIComponent(Y):null,null],"cells",[Z.cellEditor.getEditingCell()]))},function(){Z.updateLabelElements(Z.getSelectionCells(),function(N){N.removeAttribute("face");N.style.fontFamily=+function(W,Y,X,ca,S){var Z=g.editor.graph,da=this.styleChange(y,null!=ca?ca:W,[mxConstants.STYLE_FONTFAMILY,"fontSource","FType"],[W,null!=Y?encodeURIComponent(Y):null,null],null,d,function(){Z.setFont(W,Y);g.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTFAMILY,"fontSource","FType"],"values",[W,null!=Y?encodeURIComponent(Y):null,null],"cells",[Z.cellEditor.getEditingCell()]))},function(){Z.updateLabelElements(Z.getSelectionCells(),function(N){N.removeAttribute("face");N.style.fontFamily=null;"PRE"==N.nodeName&&Z.replaceElement(N,"div")})});X&&(X=document.createElement("img"),X.className="geAdaptiveAsset",X.setAttribute("src",Editor.crossImage),X.setAttribute("title",mxResources.get("delete")),X.setAttribute("valign","absmiddle"),X.setAttribute("border","0"),X.style.position="relative",X.style.top="2px",X.style.width="14px",X.style.cursor="default",X.style.margin="0 3px",da.firstChild.nextSibling.nextSibling.appendChild(X),mxEvent.addListener(X,mxClient.IS_POINTER?"pointerup":"mouseup",mxUtils.bind(this,function(N){this.removeCustomFont(W,Y);this.editorUi.hideCurrentMenu();mxEvent.consume(N)})));Graph.addFont(W,Y);da.firstChild.nextSibling.style.fontFamily=mxUtils.parseCssFontFamily(W);S=null!=ca?ca:W;null!=Y&&(S+=" ("+Y+")");da.setAttribute("title",S)}),G={},I=0;I<this.defaultFonts.length;I++){var L=this.defaultFonts[I];"string"===typeof L?A(L):null!=L.fontFamily&&null!=L.fontUrl&&(G[encodeURIComponent(L.fontFamily)+"@"+encodeURIComponent(L.fontUrl)]=!0,A(L.fontFamily,L.fontUrl))}y.addSeparator(d);-var P={},Q={},ba=[];for(I=0;I<this.customFonts.length;I++)p(this.customFonts[I]);ba.sort(function(W,Y){return W.label<Y.label?-1:W.label>Y.label?1:0});if(0<ba.length){for(I=0;I<ba.length;I++)A(ba[I].name,ba[I].url,!0,ba[I].label);y.addSeparator(d)}y.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFonts=[];f.fireEvent(new mxEventObject("customFontsChanged"))}),d);y.addSeparator(d);y.addItem(mxResources.get("custom")+"...",null,mxUtils.bind(this,function(){var W=this.editorUi.editor.graph,+var P={},Q={},ba=[];for(I=0;I<this.customFonts.length;I++)p(this.customFonts[I]);ba.sort(function(W,Y){return W.label<Y.label?-1:W.label>Y.label?1:0});if(0<ba.length){for(I=0;I<ba.length;I++)A(ba[I].name,ba[I].url,!0,ba[I].label);y.addSeparator(d)}y.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFonts=[];g.fireEvent(new mxEventObject("customFontsChanged"))}),d);y.addSeparator(d);y.addItem(mxResources.get("custom")+"...",null,mxUtils.bind(this,function(){var W=this.editorUi.editor.graph,Y=W.getStylesheet().getDefaultVertexStyle()[mxConstants.STYLE_FONTFAMILY],X="s",ca=null;if(W.isEditing()){var S=W.getSelectedEditingElement();if(null!=S){var Z=mxUtils.getCurrentStyle(S);if(null!=Z){Y=mxUtils.getCssFontFamily(Z.fontFamily);Z=W.getView().getState(W.cellEditor.getEditingCell());ca=null!=Z?Z.style.fontSource:null;for(null!=ca&&(ca=decodeURIComponent(ca));null!=S&&S!=W.cellEditor.textarea;){if(S.nodeType==mxConstants.NODETYPE_ELEMENT)if(null!=S.getAttribute("data-font-src")){ca=S.getAttribute("data-font-src");break}else if(S.getAttribute("face")==Y){ca=null;break}S=S.parentNode}null!=ca&&(Graph.isGoogleFontUrl(ca)?(ca=null,X="g"):X="w")}}}else Z=W.getView().getState(W.getSelectionCell()),null!=Z&&(Y=Z.style[mxConstants.STYLE_FONTFAMILY]||Y,S=Z.style.fontSource,null!=S&&(S=decodeURIComponent(S),Graph.isGoogleFontUrl(S)?X="g":(X="w",ca=S)));null!=ca&&ca.substring(0,PROXY_URL.length)==PROXY_URL&&(ca=decodeURIComponent(ca.substr((PROXY_URL+"?url=").length)));var da=null;document.activeElement==W.cellEditor.textarea&&(da=W.cellEditor.saveSelection());Y=new FontDialog(this.editorUi,Y,ca,X,mxUtils.bind(this,function(N,aa,ea){null!=da&&(W.cellEditor.restoreSelection(da),da=null);if(null!=N&&0<N.length)if(this.addCustomFont(N,aa),W.isEditing())W.setFont(N,aa);else{W.getModel().beginUpdate();try{W.stopEditing(!1),W.setCellStyles(mxConstants.STYLE_FONTFAMILY,N),W.setCellStyles("fontSource",null!=aa?encodeURIComponent(aa):null),W.setCellStyles("FType",null)}finally{W.getModel().endUpdate()}}}));this.editorUi.showDialog(Y.container,380,null,!0,!0);Y.init()}),d,null,!0)})))}})();function DiagramPage(b,k){this.node=b;null!=k?this.node.setAttribute("id",k):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.diagramModified=!1;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")};-DiagramPage.prototype.setName=function(b){null==b?this.node.removeAttribute("name"):this.node.setAttribute("name",b)};DiagramPage.prototype.getViewBox=function(){var b=this.node.getAttribute("viewBox");if(null!=b){var k=b.split(" ");b=parseFloat(k[0]);var m=parseFloat(k[1]),f=parseFloat(k[2]),q=parseFloat(k[3]);k=4<k.length?parseFloat(k[4]):null;if(isFinite(b)&&isFinite(m)&&isFinite(f)&&isFinite(q)&&0<f&&0<q)return{x:b,y:m,width:f,height:q,scale:null!=k&&isFinite(k)&&0<k?k:null}}return null};+DiagramPage.prototype.setName=function(b){null==b?this.node.removeAttribute("name"):this.node.setAttribute("name",b)};DiagramPage.prototype.getViewBox=function(){var b=this.node.getAttribute("viewBox");if(null!=b){var k=b.split(" ");b=parseFloat(k[0]);var m=parseFloat(k[1]),g=parseFloat(k[2]),q=parseFloat(k[3]);k=4<k.length?parseFloat(k[4]):null;if(isFinite(b)&&isFinite(m)&&isFinite(g)&&isFinite(q)&&0<g&&0<q)return{x:b,y:m,width:g,height:q,scale:null!=k&&isFinite(k)&&0<k?k:null}}return null};DiagramPage.prototype.setViewBox=function(b){if(null==b)this.node.removeAttribute("viewBox");else{var k=b.x+" "+b.y+" "+b.width+" "+b.height;null!=b.scale&&(k+=" "+b.scale);this.node.setAttribute("viewBox",k)}};DiagramPage.prototype.setDiagramModified=function(b){this.diagramModified=b};DiagramPage.prototype.isDiagramModified=function(){return this.diagramModified};function RenamePage(b,k,m){this.ui=b;this.page=k;this.previous=this.name=m}RenamePage.prototype.execute=function(){var b=this.page.getName();this.page.setName(this.previous);this.name=this.previous;this.previous=b;this.ui.editor.graph.updatePlaceholders();this.ui.editor.fireEvent(new mxEventObject("pageRenamed"))};function ChangePageView(b,k,m){this.ui=b;this.page=k;this.previous=this.viewBox=m}ChangePageView.prototype.execute=function(){var b=this.page.getViewBox();this.page.setViewBox(this.previous);this.viewBox=this.previous;this.previous=b;this.ui.editor.fireEvent(new mxEventObject("pageViewChanged"))};function MovePage(b,k,m){this.ui=b;this.oldIndex=k;this.newIndex=m}MovePage.prototype.execute=function(){this.ui.pages.splice(this.newIndex,0,this.ui.pages.splice(this.oldIndex,1)[0]);var b=this.oldIndex;this.oldIndex=this.newIndex;this.newIndex=b;this.ui.editor.graph.updatePlaceholders();this.ui.editor.fireEvent(new mxEventObject("pageMoved"))};function SelectPage(b,k,m){this.ui=b;this.previousPage=this.page=k;null!=k&&(this.ui.updatePageRoot(k),null!=m&&(k.viewState=m))}SelectPage.prototype.execute=function(){var b=mxUtils.indexOf(this.ui.pages,this.previousPage);if(null!=this.page&&0<=b){b=this.ui.currentPage;var k=this.ui.editor,m=k.graph;b.isDiagramModified()&&(b.setDiagramModified(!1),EditorUi.removeChildNodes(b.node),b.node.appendChild(k.getGraphXml(!0)));b.viewState=m.getViewState();b.root=m.model.root;null!=b.model&&b.model.rootChanged(b.root);m.view.clear(b.root,!0);m.clearSelection();this.ui.currentPage=this.previousPage;this.previousPage=b;b=this.ui.currentPage;-m.model.prefix=Editor.guid()+"-";m.model.rootChanged(b.root);m.setViewState(b.viewState);m.gridEnabled=m.gridEnabled&&(!this.ui.editor.isChromelessView()||"1"==urlParams.grid);k.graph.fireEvent(new mxEventObject(mxEvent.ROOT));k.fireEvent(new mxEventObject("pageSelected","change",this))}};function ChangePage(b,k,m,f,q){SelectPage.call(this,b,m);this.relatedPage=k;this.index=f;this.previousIndex=null;this.noSelect=q}mxUtils.extend(ChangePage,SelectPage);+m.model.prefix=Editor.guid()+"-";m.model.rootChanged(b.root);m.setViewState(b.viewState);m.gridEnabled=m.gridEnabled&&(!this.ui.editor.isChromelessView()||"1"==urlParams.grid);k.graph.fireEvent(new mxEventObject(mxEvent.ROOT));k.fireEvent(new mxEventObject("pageSelected","change",this))}};function ChangePage(b,k,m,g,q){SelectPage.call(this,b,m);this.relatedPage=k;this.index=g;this.previousIndex=null;this.noSelect=q}mxUtils.extend(ChangePage,SelectPage);ChangePage.prototype.execute=function(){this.ui.editor.fireEvent(new mxEventObject("beforePageChange","change",this));this.previousIndex=this.index;if(null==this.index){var b=mxUtils.indexOf(this.ui.pages,this.relatedPage);this.ui.pages.splice(b,1);this.index=b}else this.ui.pages.splice(this.index,0,this.relatedPage),this.index=null;this.noSelect||SelectPage.prototype.execute.apply(this,arguments)};function ReplaceDiagram(b,k){this.ui=b;this.data=k}-ReplaceDiagram.prototype.execute=function(){var b=this.ui.editor.graph,k=this.ui.editor.getGraphXml();this.ui.editor.readGraphState(this.data);this.ui.editor.updateGraphComponents();var m=new mxCodec(this.data.ownerDocument),f=new mxGraphModel;m.decode(this.data,f);this.data=k;this.ui.currentPage&&(this.ui.currentPage.viewState=b.getViewState(),this.ui.currentPage.root=f.root,null!=this.ui.currentPage.model&&this.ui.currentPage.model.rootChanged(this.ui.currentPage.model.root));b.view.clear(b.model.root,-!0);b.model.rootChanged(f.root);b.fireEvent(new mxEventObject(mxEvent.ROOT))};EditorUi.prototype.tabContainerVisible=!0;EditorUi.prototype.setTabContainerVisible=function(b,k){Editor.isSettingsEnabled()&&k&&(mxSettings.settings.pages=b,mxSettings.save());this.tabContainerVisible=b;this.updateTabContainer()};EditorUi.prototype.isTabContainerVisible=function(){return this.tabContainerVisible};EditorUi.prototype.getSelectedPageIndex=function(){return this.getPageIndex(this.currentPage)};+ReplaceDiagram.prototype.execute=function(){var b=this.ui.editor.graph,k=this.ui.editor.getGraphXml();this.ui.editor.readGraphState(this.data);this.ui.editor.updateGraphComponents();var m=new mxCodec(this.data.ownerDocument),g=new mxGraphModel;m.decode(this.data,g);this.data=k;this.ui.currentPage&&(this.ui.currentPage.viewState=b.getViewState(),this.ui.currentPage.root=g.root,null!=this.ui.currentPage.model&&this.ui.currentPage.model.rootChanged(this.ui.currentPage.model.root));b.view.clear(b.model.root,+!0);b.model.rootChanged(g.root);b.fireEvent(new mxEventObject(mxEvent.ROOT))};EditorUi.prototype.tabContainerVisible=!0;EditorUi.prototype.setTabContainerVisible=function(b,k){Editor.isSettingsEnabled()&&k&&(mxSettings.settings.pages=b,mxSettings.save());this.tabContainerVisible=b;this.updateTabContainer()};EditorUi.prototype.isTabContainerVisible=function(){return this.tabContainerVisible};EditorUi.prototype.getSelectedPageIndex=function(){return this.getPageIndex(this.currentPage)};EditorUi.prototype.getPageIndex=function(b){var k=null;if(null!=this.pages&&null!=b)for(var m=0;m<this.pages.length;m++)if(this.pages[m]==b){k=m;break}return k};EditorUi.prototype.getPageById=function(b,k){k=null!=k?k:this.pages;if(null!=k)for(var m=0;m<k.length;m++)if(k[m].getId()==b)return k[m];return null};-EditorUi.prototype.createImageForPageLink=function(b,k,m,f){var q=b.indexOf(","),u=null;0<q&&(q=this.getPageById(b.substring(q+1)),null!=q&&q!=k&&(u=this.getImageForPage(q,k,m,f),u.originalSrc=b));null==u&&(u={originalSrc:b});return u};+EditorUi.prototype.createImageForPageLink=function(b,k,m,g){var q=b.indexOf(","),u=null;0<q&&(q=this.getPageById(b.substring(q+1)),null!=q&&q!=k&&(u=this.getImageForPage(q,k,m,g),u.originalSrc=b));null==u&&(u={originalSrc:b});return u};EditorUi.prototype.pageSelected=function(){var b=this.editor.graph,k=this.currentPage;null!=k&&(b.tooltipHandler.hide(),null==k.viewState||null==k.viewState.scrollTop||null==k.viewState.scrollLeft?(b.selectUnlockedLayer(),this.resetScrollbars(),b.isLightboxView()?this.lightboxFit():Editor.fitDiagramOnPage&&this.fitInitialView(),null!=this.chromelessResize&&(b.container.scrollleft=0,b.container.scrollTop=0,this.chromelessResize())):b.setScrollbarPositions(k.viewState,b.view.translate.x,b.view.translate.y),this.updateTabContainer())};-EditorUi.prototype.getImageForPage=function(b,k,m,f){m=null!=m?m:this.editor.graph;var q=m.getGlobalVariable;m=this.createTemporaryGraph(m.getStylesheet());var u=this.getPageIndex(null!=k?k:this.currentPage);m.getGlobalVariable=function(z){return"pagenumber"==z?u+1:"page"==z&&null!=k?k.getName():q.apply(this,arguments)};document.body.appendChild(m.container);this.updatePageRoot(b);m.setAdaptiveColors(b.viewState.adaptiveColors);m.model.setRoot(b.root);b=Graph.foreignObjectWarningText;Graph.foreignObjectWarningText=-"";f=m.getSvg(null,null,null,null,null,null,null,null,null,null,f,null,null,null,!0,!0);var x=m.getGraphBounds();document.body.removeChild(m.container);Graph.foreignObjectWarningText=b;return new mxImage(Editor.createSvgDataUri(mxUtils.getXml(f)),x.width,x.height,x.x,x.y)};+EditorUi.prototype.getImageForPage=function(b,k,m,g){m=null!=m?m:this.editor.graph;var q=m.getGlobalVariable;m=this.createTemporaryGraph(m.getStylesheet());var u=this.getPageIndex(null!=k?k:this.currentPage);m.getGlobalVariable=function(z){return"pagenumber"==z?u+1:"page"==z&&null!=k?k.getName():q.apply(this,arguments)};document.body.appendChild(m.container);this.updatePageRoot(b);m.setAdaptiveColors(b.viewState.adaptiveColors);m.model.setRoot(b.root);b=Graph.foreignObjectWarningText;Graph.foreignObjectWarningText=+"";g=m.getSvg(null,null,null,null,null,null,null,null,null,null,g,null,null,null,!0,!0);var x=m.getGraphBounds();document.body.removeChild(m.container);Graph.foreignObjectWarningText=b;return new mxImage(Editor.createSvgDataUri(mxUtils.getXml(g)),x.width,x.height,x.x,x.y)};EditorUi.prototype.initPages=function(){if(!this.editor.graph.standalone){this.actions.addAction("previousPage",mxUtils.bind(this,function(){this.selectNextPage(!1)}));this.actions.addAction("nextPage",mxUtils.bind(this,function(){this.selectNextPage(!0)}));this.isPagesEnabled()&&(this.keyHandler.bindAction(33,!0,"previousPage",!0),this.keyHandler.bindAction(34,!0,"nextPage",!0));var b=this.editor.graph,k=b.view.validateBackground;b.view.validateBackground=mxUtils.bind(this,function(){k.apply(b.view,-arguments);null!=b.view.backgroundImage&&EditorUi.embedSvgImages(b.view.backgroundImage.node)});this.editor.graph.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(x,z){x=z.getProperty("edit").changes;for(z=0;z<x.length;z++)if(x[z]instanceof RenamePage||x[z]instanceof ChangePage||x[z]instanceof mxRootChange){this.updateTabContainer();break}null==this.currentPage||1==x.length&&x[0]instanceof SelectPage||this.currentPage.setDiagramModified(!0)}));var m=b.sizeDidChange,f=null,q=this;b.sizeDidChange=-function(){var x=m.apply(this,arguments);null!=q.currentPage&&f!=q.currentPage&&(f=q.currentPage,q.pageSelected());return x};b.addListener(mxEvent.ROOT,mxUtils.bind(this,function(){b.checkDefaultParent()}));var u=mxUtils.bind(this,function(){this.updateDocumentTitle();this.updateTabContainer()});this.addListener("currentThemeChanged",u);this.editor.addListener("pagesPatched",u);this.editor.addListener("pageRenamed",u);this.editor.addListener("pageMoved",u);this.editor.addListener("fileLoaded",u);+arguments);null!=b.view.backgroundImage&&EditorUi.embedSvgImages(b.view.backgroundImage.node)});this.editor.graph.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(x,z){x=z.getProperty("edit").changes;for(z=0;z<x.length;z++)if(x[z]instanceof RenamePage||x[z]instanceof ChangePage||x[z]instanceof mxRootChange){this.updateTabContainer();break}null==this.currentPage||1==x.length&&x[0]instanceof SelectPage||this.currentPage.setDiagramModified(!0)}));var m=b.sizeDidChange,g=null,q=this;b.sizeDidChange=+function(){var x=m.apply(this,arguments);null!=q.currentPage&&g!=q.currentPage&&(g=q.currentPage,q.pageSelected());return x};b.addListener(mxEvent.ROOT,mxUtils.bind(this,function(){b.checkDefaultParent()}));var u=mxUtils.bind(this,function(){this.updateDocumentTitle();this.updateTabContainer()});this.addListener("currentThemeChanged",u);this.editor.addListener("pagesPatched",u);this.editor.addListener("pageRenamed",u);this.editor.addListener("pageMoved",u);this.editor.addListener("fileLoaded",u);this.editor.addListener("pageSelected",mxUtils.bind(this,function(x,z){this.updateTabContainer();this.updateHashObject();this.updateDocumentTitle()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(x,z){this.updateHashObject()}));mxEvent.addListener(window,"resize",mxUtils.bind(this,function(){this.checkTabScrollerOverflow()}));this.addListener("languageChanged",mxUtils.bind(this,function(){this.updateTabContainer()}))}};-EditorUi.prototype.scrollToPage=function(b,k){var m=null!=b?this.getPageIndex(b):this.getSelectedPageIndex(),f=null!=b?b:this.currentPage;null!=m&&null!=this.tabScroller&&this.tabScroller.children.length>m&&null!=this.tabScroller.children[m]&&(f!=this.lastScrollPage||k)&&(this.tabScroller.children[m].scrollIntoView({block:"nearest",inline:null!=b?"nearest":"center"}),this.tabScroller.children[m].className="geTab gePageTab geActivePage",this.lastScrollPage=f,this.btKnownTabScroll=this.tabScroller.scrollLeft)};-EditorUi.prototype.restoreViewState=function(b,k,m){b=null!=b?this.getPageById(b.getId()):null;var f=this.editor.graph;null!=b&&null!=this.currentPage&&null!=this.pages&&(b!=this.currentPage?this.selectPage(b,!0,k):(f.setViewState(k),this.editor.updateGraphComponents(),f.view.revalidate(),f.sizeDidChange()),f.container.scrollLeft=f.view.translate.x*f.view.scale+k.scrollLeft,f.container.scrollTop=f.view.translate.y*f.view.scale+k.scrollTop,f.restoreSelection(m))};-Graph.prototype.createViewState=function(b){var k=b.getAttribute("page"),m=parseFloat(b.getAttribute("pageScale")),f=parseFloat(b.getAttribute("pageWidth")),q=parseFloat(b.getAttribute("pageHeight")),u=b.getAttribute("background"),x=this.parseBackgroundImage(b.getAttribute("backgroundImage")),z=b.getAttribute("extFonts");if(z)try{z=z.split("|").map(function(F){F=F.split("^");return{name:F[0],url:F[1]}})}catch(F){console.log("ExtFonts format error: "+F.message)}return{gridEnabled:"0"!=b.getAttribute("grid"),+EditorUi.prototype.scrollToPage=function(b,k){var m=null!=b?this.getPageIndex(b):this.getSelectedPageIndex(),g=null!=b?b:this.currentPage;null!=m&&null!=this.tabScroller&&this.tabScroller.children.length>m&&null!=this.tabScroller.children[m]&&(g!=this.lastScrollPage||k)&&(this.tabScroller.children[m].scrollIntoView({block:"nearest",inline:null!=b?"nearest":"center"}),this.tabScroller.children[m].className="geTab gePageTab geActivePage",this.lastScrollPage=g,this.btKnownTabScroll=this.tabScroller.scrollLeft)};+EditorUi.prototype.restoreViewState=function(b,k,m){b=null!=b?this.getPageById(b.getId()):null;var g=this.editor.graph;null!=b&&null!=this.currentPage&&null!=this.pages&&(b!=this.currentPage?this.selectPage(b,!0,k):(g.setViewState(k),this.editor.updateGraphComponents(),g.view.revalidate(),g.sizeDidChange()),g.container.scrollLeft=g.view.translate.x*g.view.scale+k.scrollLeft,g.container.scrollTop=g.view.translate.y*g.view.scale+k.scrollTop,g.restoreSelection(m))};+Graph.prototype.createViewState=function(b){var k=b.getAttribute("page"),m=parseFloat(b.getAttribute("pageScale")),g=parseFloat(b.getAttribute("pageWidth")),q=parseFloat(b.getAttribute("pageHeight")),u=b.getAttribute("background"),x=this.parseBackgroundImage(b.getAttribute("backgroundImage")),z=b.getAttribute("extFonts");if(z)try{z=z.split("|").map(function(F){F=F.split("^");return{name:F[0],url:F[1]}})}catch(F){console.log("ExtFonts format error: "+F.message)}return{gridEnabled:"0"!=b.getAttribute("grid"),gridSize:parseFloat(b.getAttribute("gridSize"))||mxGraph.prototype.gridSize,guidesEnabled:"0"!=b.getAttribute("guides"),foldingEnabled:function(){var F=b.getAttribute("fold");return null==F||null!=Editor.config&&null!=Editor.config.defaultFoldingEnabled?Graph.prototype.defaultFoldingEnabled:"0"!=F}(),shadowVisible:"1"==b.getAttribute("shadow"),pageVisible:this.isLightboxView()?!1:null!=k?"0"!=k:this.defaultPageVisible,background:null!=u&&0<u.length?u:null,backgroundImage:x,pageScale:isNaN(m)?mxGraph.prototype.pageScale:-m,pageFormat:isNaN(f)||isNaN(q)?"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:mxSettings.getPageFormat():new mxRectangle(0,0,f,q),tooltips:"0"!=b.getAttribute("tooltips"),connect:function(){var F=b.getAttribute("connect");return null==F||null!=Editor.config&&null!=Editor.config.defaultConnectable?Graph.prototype.defaultConnectable:"0"!=F}(),arrows:function(){var F=b.getAttribute("arrows");return null==F||null!=Editor.config&&null!=Editor.config.defaultConnectionArrowsEnabled?+m,pageFormat:isNaN(g)||isNaN(q)?"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:mxSettings.getPageFormat():new mxRectangle(0,0,g,q),tooltips:"0"!=b.getAttribute("tooltips"),connect:function(){var F=b.getAttribute("connect");return null==F||null!=Editor.config&&null!=Editor.config.defaultConnectable?Graph.prototype.defaultConnectable:"0"!=F}(),arrows:function(){var F=b.getAttribute("arrows");return null==F||null!=Editor.config&&null!=Editor.config.defaultConnectionArrowsEnabled?Graph.prototype.defaultConnectionArrowsEnabled:"0"!=F}(),mathEnabled:"1"==b.getAttribute("math"),adaptiveColors:b.getAttribute("adaptiveColors"),selectionCells:null,defaultParent:null,scrollbars:this.defaultScrollbars,scale:1,hiddenTags:[],extFonts:z||[]}};-Graph.prototype.saveViewState=function(b,k,m,f,q){m||(k.setAttribute("grid",(null==b?this.defaultGridEnabled:b.gridEnabled)?"1":"0"),k.setAttribute("page",(null==b?this.defaultPageVisible:b.pageVisible)?"1":"0"),k.setAttribute("gridSize",null!=b?b.gridSize:mxGraph.prototype.gridSize),k.setAttribute("guides",null==b||b.guidesEnabled?"1":"0"),k.setAttribute("tooltips",null==b||b.tooltips?"1":"0"),k.setAttribute("connect",null==b||b.connect?"1":"0"),k.setAttribute("arrows",null==b||b.arrows?"1":"0"),-k.setAttribute("fold",null==b||b.foldingEnabled?"1":"0"));k.setAttribute("pageScale",null!=b&&null!=b.pageScale?b.pageScale:mxGraph.prototype.pageScale);m=null!=b?b.pageFormat:"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:mxSettings.getPageFormat();null!=m&&(k.setAttribute("pageWidth",m.width),k.setAttribute("pageHeight",m.height));null!=b&&(null!=b.background&&k.setAttribute("background",b.background),f=this.getBackgroundImageObject(b.backgroundImage,-f,q),null!=f&&k.setAttribute("backgroundImage",JSON.stringify(f)));k.setAttribute("math",(null==b?this.defaultMathEnabled:b.mathEnabled)?"1":"0");k.setAttribute("shadow",null!=b&&b.shadowVisible?"1":"0");null==b||null==b.adaptiveColors?k.removeAttribute("adaptiveColors"):k.setAttribute("adaptiveColors",b.adaptiveColors);null!=b&&null!=b.extFonts&&0<b.extFonts.length&&k.setAttribute("extFonts",b.extFonts.map(function(u){return u.name+"^"+u.url}).join("|"))};+Graph.prototype.saveViewState=function(b,k,m,g,q){m||(k.setAttribute("grid",(null==b?this.defaultGridEnabled:b.gridEnabled)?"1":"0"),k.setAttribute("page",(null==b?this.defaultPageVisible:b.pageVisible)?"1":"0"),k.setAttribute("gridSize",null!=b?b.gridSize:mxGraph.prototype.gridSize),k.setAttribute("guides",null==b||b.guidesEnabled?"1":"0"),k.setAttribute("tooltips",null==b||b.tooltips?"1":"0"),k.setAttribute("connect",null==b||b.connect?"1":"0"),k.setAttribute("arrows",null==b||b.arrows?"1":"0"),+k.setAttribute("fold",null==b||b.foldingEnabled?"1":"0"));k.setAttribute("pageScale",null!=b&&null!=b.pageScale?b.pageScale:mxGraph.prototype.pageScale);m=null!=b?b.pageFormat:"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:mxSettings.getPageFormat();null!=m&&(k.setAttribute("pageWidth",m.width),k.setAttribute("pageHeight",m.height));null!=b&&(null!=b.background&&k.setAttribute("background",b.background),g=this.getBackgroundImageObject(b.backgroundImage,+g,q),null!=g&&k.setAttribute("backgroundImage",JSON.stringify(g)));k.setAttribute("math",(null==b?this.defaultMathEnabled:b.mathEnabled)?"1":"0");k.setAttribute("shadow",null!=b&&b.shadowVisible?"1":"0");null==b||null==b.adaptiveColors?k.removeAttribute("adaptiveColors"):k.setAttribute("adaptiveColors",b.adaptiveColors);null!=b&&null!=b.extFonts&&0<b.extFonts.length&&k.setAttribute("extFonts",b.extFonts.map(function(u){return u.name+"^"+u.url}).join("|"))};Graph.prototype.getViewState=function(){return{defaultParent:this.defaultParent,currentRoot:this.view.currentRoot,gridEnabled:this.gridEnabled,gridSize:this.gridSize,guidesEnabled:this.graphHandler.guidesEnabled,foldingEnabled:this.foldingEnabled,shadowVisible:this.shadowVisible,scrollbars:this.scrollbars,pageVisible:this.pageVisible,background:this.background,backgroundImage:this.backgroundImage,pageScale:this.pageScale,pageFormat:this.pageFormat,tooltips:this.tooltipHandler.isEnabled(),connect:this.connectionHandler.isEnabled(),arrows:this.connectionArrowsEnabled,scale:this.view.scale,scrollLeft:this.container.scrollLeft-this.view.translate.x*this.view.scale,scrollTop:this.container.scrollTop-this.view.translate.y*this.view.scale,translate:this.view.translate.clone(),lastPasteXml:this.lastPasteXml,pasteCounter:this.pasteCounter,mathEnabled:this.mathEnabled,adaptiveColors:this.adaptiveColors,hiddenTags:this.hiddenTags,extFonts:this.extFonts}};Graph.prototype.setViewState=function(b,k){if(null!=b){this.lastPasteXml=b.lastPasteXml;this.pasteCounter=b.pasteCounter||0;this.mathEnabled=b.mathEnabled;this.adaptiveColors=b.adaptiveColors;this.gridEnabled=null!=urlParams.grid?"0"!=urlParams.grid:b.gridEnabled;this.gridSize=b.gridSize;this.graphHandler.guidesEnabled=b.guidesEnabled;this.foldingEnabled=b.foldingEnabled;this.setShadowVisible(b.shadowVisible,!1);this.scrollbars=b.scrollbars;this.pageVisible=!this.isViewer()&&(null!=urlParams.pv?"0"!=-urlParams.pv:b.pageVisible);this.background=b.background;this.pageScale=b.pageScale;this.pageFormat=b.pageFormat;this.view.currentRoot=b.currentRoot;this.defaultParent=b.defaultParent;this.connectionArrowsEnabled=b.arrows;this.setTooltips(b.tooltips);this.setConnectable(b.connect);this.setBackgroundImage(b.backgroundImage);this.hiddenTags=b.hiddenTags;var m=this.extFonts;this.extFonts=b.extFonts||[];if(k&&null!=m)for(k=0;k<m.length;k++){var f=document.getElementById("extFont_"+m[k].name);null!=f&&-f.parentNode.removeChild(f)}for(k=0;k<this.extFonts.length;k++)this.addExtFont(this.extFonts[k].name,this.extFonts[k].url,!0);this.view.scale=null!=b.scale?b.scale:1;null==this.view.currentRoot||this.model.contains(this.view.currentRoot)||(this.view.currentRoot=null);null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer());null!=b.translate&&(this.view.translate=b.translate)}else this.view.currentRoot=null,this.view.scale=1,this.gridEnabled=+urlParams.pv:b.pageVisible);this.background=b.background;this.pageScale=b.pageScale;this.pageFormat=b.pageFormat;this.view.currentRoot=b.currentRoot;this.defaultParent=b.defaultParent;this.connectionArrowsEnabled=b.arrows;this.setTooltips(b.tooltips);this.setConnectable(b.connect);this.setBackgroundImage(b.backgroundImage);this.hiddenTags=b.hiddenTags;var m=this.extFonts;this.extFonts=b.extFonts||[];if(k&&null!=m)for(k=0;k<m.length;k++){var g=document.getElementById("extFont_"+m[k].name);null!=g&&+g.parentNode.removeChild(g)}for(k=0;k<this.extFonts.length;k++)this.addExtFont(this.extFonts[k].name,this.extFonts[k].url,!0);this.view.scale=null!=b.scale?b.scale:1;null==this.view.currentRoot||this.model.contains(this.view.currentRoot)||(this.view.currentRoot=null);null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer());null!=b.translate&&(this.view.translate=b.translate)}else this.view.currentRoot=null,this.view.scale=1,this.gridEnabled=this.defaultGridEnabled,this.gridSize=mxGraph.prototype.gridSize,this.pageScale=mxGraph.prototype.pageScale,this.pageFormat="undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:mxSettings.getPageFormat(),this.pageVisible=this.defaultPageVisible,this.backgroundImage=this.background=null,this.scrollbars=this.defaultScrollbars,this.graphHandler.guidesEnabled=!0,this.foldingEnabled=this.defaultFoldingEnabled,this.setShadowVisible(!1,!1),this.defaultParent=null,this.setTooltips(!0),this.setConnectable(this.defaultConnectable),this.lastPasteXml=null,this.pasteCounter=0,this.mathEnabled=this.defaultMathEnabled,this.adaptiveColors=null,this.connectionArrowsEnabled=this.defaultConnectionArrowsEnabled,this.hiddenTags=[],this.extFonts=[];this.setAdaptiveColors(this.adaptiveColors);this.preferPageSize=this.pageBreaksVisible=this.pageVisible;this.fireEvent(new mxEventObject("viewStateChanged","state",b))};Graph.prototype.setScrollbarPositions=function(b,k,m){null!=b&&null!=b.scrollLeft&&null!=b.scrollTop&&(this.container.scrollLeft=k*this.view.scale+b.scrollLeft,this.container.scrollTop=m*this.view.scale+b.scrollTop)};-Graph.prototype.addExtFont=function(b,k,m){if(b&&k){var f="extFont_"+b;if(null==document.getElementById(f))if(0==k.indexOf(Editor.GOOGLE_FONTS))mxClient.link("stylesheet",k,null,f);else{document.getElementsByTagName("head");var q=document.createElement("style");q.appendChild(document.createTextNode('@font-face {\n\tfont-family: "'+Graph.escapeCssString(b)+'";\n\tsrc: url("'+Graph.escapeCssString(k)+'");\n}'));q.setAttribute("id",f);document.getElementsByTagName("head")[0].appendChild(q)}if(!m){null==-this.extFonts&&(this.extFonts=[]);m=this.extFonts;f=!0;for(q=0;q<m.length;q++)if(m[q].name==b){f=!1;break}f&&this.extFonts.push({name:b,url:k})}}};+Graph.prototype.addExtFont=function(b,k,m){if(b&&k){var g="extFont_"+b;if(null==document.getElementById(g))if(0==k.indexOf(Editor.GOOGLE_FONTS))mxClient.link("stylesheet",k,null,g);else{document.getElementsByTagName("head");var q=document.createElement("style");q.appendChild(document.createTextNode('@font-face {\n\tfont-family: "'+Graph.escapeCssString(b)+'";\n\tsrc: url("'+Graph.escapeCssString(k)+'");\n}'));q.setAttribute("id",g);document.getElementsByTagName("head")[0].appendChild(q)}if(!m){null==+this.extFonts&&(this.extFonts=[]);m=this.extFonts;g=!0;for(q=0;q<m.length;q++)if(m[q].name==b){g=!1;break}g&&this.extFonts.push({name:b,url:k})}}};EditorUi.prototype.updatePageRoot=function(b,k){if(null==b.root){k=this.editor.extractGraphModel(b.node,null,k);var m=Editor.extractParserError(k);if(m)throw Error(m);null!=k?(b.graphModelNode=k,b.viewState=this.editor.graph.createViewState(k),m=new mxCodec(k.ownerDocument),b.root=m.decode(k).root):(b.root=this.editor.graph.model.createRoot(),b.root.setId("0"),b.root.children[0].setId("1"),b.needsUpdate=!0)}else if(null==b.viewState){if(null==b.graphModelNode){k=this.editor.extractGraphModel(b.node);if(m=Editor.extractParserError(k))throw Error(m);null!=k&&(b.graphModelNode=k)}null!=b.graphModelNode&&(b.viewState=this.editor.graph.createViewState(b.graphModelNode))}if(null==b.root.children||0==b.root.children.length)k=new mxCell,k.setId("1"),b.root.insert(k),b.needsUpdate=!0;return b};EditorUi.prototype.getDiagramSnapshot=function(){return{node:this.editor.getGraphXml(),page:this.currentPage}};-EditorUi.prototype.updateDiagramData=function(b,k){if(null==this.getPageIndex(b.page))this.insertPage(null,null,k);else{var m=new mxCodec(b.node.ownerDocument),f=new mxGraphModel;m.decode(b.node,f);m=new mxCodec(k.ownerDocument);var q=new mxGraphModel;m.decode(k,q);this.selectPage(b.page);k=this.diffCells(f.root,q.root);this.patchPage(b.page,k,null,!0)}};EditorUi.prototype.replaceDiagramData=function(b){this.editor.graph.model.execute(new ReplaceDiagram(this,mxUtils.parseXml(b).documentElement))};-EditorUi.prototype.selectPage=function(b,k,m){try{if(b!=this.currentPage){var f=this.editor.graph;f.isEditing()&&f.stopEditing(!1);k=null!=k?k:!1;f.isMouseDown=!1;f.reset();var q=f.model.createUndoableEdit();q.ignoreEdit=!0;var u=new SelectPage(this,b,m);u.execute();q.add(u);q.notify();k||f.model.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",q))}}catch(x){this.handleError(x)}};+EditorUi.prototype.updateDiagramData=function(b,k){if(null==this.getPageIndex(b.page))this.insertPage(null,null,k);else{var m=new mxCodec(b.node.ownerDocument),g=new mxGraphModel;m.decode(b.node,g);m=new mxCodec(k.ownerDocument);var q=new mxGraphModel;m.decode(k,q);this.selectPage(b.page);k=this.diffCells(g.root,q.root);this.patchPage(b.page,k,null,!0)}};EditorUi.prototype.replaceDiagramData=function(b){this.editor.graph.model.execute(new ReplaceDiagram(this,mxUtils.parseXml(b).documentElement))};+EditorUi.prototype.selectPage=function(b,k,m){try{if(b!=this.currentPage){var g=this.editor.graph;g.isEditing()&&g.stopEditing(!1);k=null!=k?k:!1;g.isMouseDown=!1;g.reset();var q=g.model.createUndoableEdit();q.ignoreEdit=!0;var u=new SelectPage(this,b,m);u.execute();q.add(u);q.notify();k||g.model.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",q))}}catch(x){this.handleError(x)}};EditorUi.prototype.selectNextPage=function(b){var k=this.currentPage;null!=k&&null!=this.pages&&(k=mxUtils.indexOf(this.pages,k),b?this.selectPage(this.pages[mxUtils.mod(k+1,this.pages.length)]):b||this.selectPage(this.pages[mxUtils.mod(k-1,this.pages.length)]))};EditorUi.prototype.insertPage=function(b,k,m){this.editor.graph.isEnabled()&&(this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1),b=null!=b?b:this.createPage(null,this.createPageId(),m),k=null!=k?k:this.pages.length,k=new ChangePage(this,b,b,k),this.editor.graph.model.execute(k));return b};EditorUi.prototype.createPageId=function(){do var b=Editor.guid();while(null!=this.getPageById(b));return b};EditorUi.prototype.createPage=function(b,k,m){k=new DiagramPage((null!=this.fileNode?this.fileNode.ownerDocument:document).createElement("diagram"),k);k.setName(null!=b?b:this.createPageName());this.initDiagramNode(k,m);return k};EditorUi.prototype.createPageName=function(){for(var b={},k=0;k<this.pages.length;k++){var m=this.pages[k].getName();null!=m&&0<m.length&&(b[m]=m)}k=this.pages.length;do m=mxResources.get("pageWithNumber",[++k]);while(null!=b[m]);return m};-EditorUi.prototype.removePage=function(b){try{var k=this.editor.graph,m=mxUtils.indexOf(this.pages,b);if(k.isEnabled()&&0<=m){this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1);k.model.beginUpdate();try{var f=this.currentPage;f==b&&1<this.pages.length?(m==this.pages.length-1?m--:m++,f=this.pages[m]):1>=this.pages.length&&(f=this.insertPage(),k.model.execute(new RenamePage(this,f,mxResources.get("pageWithNumber",[1]))));k.model.execute(new ChangePage(this,b,f))}finally{k.model.endUpdate()}}}catch(q){this.handleError(q)}return b};-EditorUi.prototype.duplicatePage=function(b,k){var m=null;try{var f=this.editor.graph;if(f.isEnabled()){f.isEditing()&&f.stopEditing();var q=b.node.cloneNode(!1);q.removeAttribute("id");var u={},x=f.createCellLookup([f.model.root]);m=new DiagramPage(q);m.root=f.cloneCell(f.model.root,null,u);var z=new mxGraphModel;z.prefix=Editor.guid()+"-";z.setRoot(m.root);f.updateCustomLinks(f.createCellMapping(u,x),[m.root]);m.viewState=b==this.currentPage?f.getViewState():b.viewState;this.initDiagramNode(m);+EditorUi.prototype.removePage=function(b){try{var k=this.editor.graph,m=mxUtils.indexOf(this.pages,b);if(k.isEnabled()&&0<=m){this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1);k.model.beginUpdate();try{var g=this.currentPage;g==b&&1<this.pages.length?(m==this.pages.length-1?m--:m++,g=this.pages[m]):1>=this.pages.length&&(g=this.insertPage(),k.model.execute(new RenamePage(this,g,mxResources.get("pageWithNumber",[1]))));k.model.execute(new ChangePage(this,b,g))}finally{k.model.endUpdate()}}}catch(q){this.handleError(q)}return b};+EditorUi.prototype.duplicatePage=function(b,k){var m=null;try{var g=this.editor.graph;if(g.isEnabled()){g.isEditing()&&g.stopEditing();var q=b.node.cloneNode(!1);q.removeAttribute("id");var u={},x=g.createCellLookup([g.model.root]);m=new DiagramPage(q);m.root=g.cloneCell(g.model.root,null,u);var z=new mxGraphModel;z.prefix=Editor.guid()+"-";z.setRoot(m.root);g.updateCustomLinks(g.createCellMapping(u,x),[m.root]);m.viewState=b==this.currentPage?g.getViewState():b.viewState;this.initDiagramNode(m);m.viewState.scale=1;delete m.viewState.scrollLeft;delete m.viewState.scrollTop;delete m.viewState.currentRoot;delete m.viewState.defaultParent;m.setName(k);m=this.insertPage(m,mxUtils.indexOf(this.pages,b)+1)}}catch(F){this.handleError(F)}return m};EditorUi.prototype.initDiagramNode=function(b,k){null==k&&(k=(new mxCodec(mxUtils.createXmlDocument())).encode(new mxGraphModel(b.root)));this.editor.graph.saveViewState(b.viewState,k);EditorUi.removeChildNodes(b.node);b.node.appendChild(k)};-EditorUi.prototype.clonePages=function(b){for(var k=[],m=[],f=0;f<b.length;f++)try{m.push(this.clonePage(b[f]))}catch(q){k.push(mxResources.get("pageWithNumber",[f+1])+": "+q.toString())}if(0<k.length){b=Error(k.join("\n"));try{0<m.length&&(b.fallbackFileData=this.getXmlForPages(m))}catch(q){}throw b;}return m};+EditorUi.prototype.clonePages=function(b){for(var k=[],m=[],g=0;g<b.length;g++)try{m.push(this.clonePage(b[g]))}catch(q){k.push(mxResources.get("pageWithNumber",[g+1])+": "+q.toString())}if(0<k.length){b=Error(k.join("\n"));try{0<m.length&&(b.fallbackFileData=this.getXmlForPages(m))}catch(q){}throw b;}return m};EditorUi.prototype.clonePage=function(b){this.updatePageRoot(b);var k=new DiagramPage(b.node.cloneNode(!0)),m=b==this.currentPage?this.editor.graph.getViewState():b.viewState;k.viewState=mxUtils.clone(m,EditorUi.transientViewStateProperties);k.root=this.editor.graph.model.cloneCell(b.root,null,!0);k.diagramModified=b.diagramModified;return k};EditorUi.prototype.renamePage=function(b){if(this.editor.graph.isEnabled()){var k=new FilenameDialog(this,b.getName(),mxResources.get("rename"),mxUtils.bind(this,function(m){null!=m&&0<m.length&&this.editor.graph.model.execute(new RenamePage(this,b,m))}),mxResources.get("rename"));this.showDialog(k.container,300,80,!0,!0);k.init()}return b};EditorUi.prototype.movePage=function(b,k){this.editor.graph.model.execute(new MovePage(this,b,k))};-EditorUi.prototype.sortPages=function(){var b=this.pages.slice().sort(function(q,u){return(q.getName()||"").localeCompare(u.getName()||"",void 0,{numeric:!0,sensitivity:"base"})}),k=this.editor.graph.model;k.beginUpdate();try{for(var m=0;m<b.length;m++){var f=mxUtils.indexOf(this.pages,b[m]);f!=m&&this.movePage(f,m)}}finally{k.endUpdate()}this.scrollToPage(this.currentPage,!0)};+EditorUi.prototype.sortPages=function(){var b=this.pages.slice().sort(function(q,u){return(q.getName()||"").localeCompare(u.getName()||"",void 0,{numeric:!0,sensitivity:"base"})}),k=this.editor.graph.model;k.beginUpdate();try{for(var m=0;m<b.length;m++){var g=mxUtils.indexOf(this.pages,b[m]);g!=m&&this.movePage(g,m)}}finally{k.endUpdate()}this.scrollToPage(this.currentPage,!0)};EditorUi.prototype.createTabContainer=function(){var b=document.createElement("div");b.className="geTabContainer geTabItem";return b};-EditorUi.prototype.updateTabContainer=function(){if(null!=this.tabContainer&&!this.isTabContainerVisible())this.tabContainer.style.display="none";else if(null!=this.tabContainer&&null!=this.pages){this.tabContainer.style.display="";var b=this.editor.graph,k=document.createElement("div");k.className="geTabScroller";for(var m=null,f=null,q=null,u=this,x=null!=this.tabScroller?this.tabScroller.scrollLeft:0,z=!1,F=0;F<this.pages.length;F++){var J=this.pages[F];if(null!=J){var H=J.getId(),D=J.getName()||+EditorUi.prototype.updateTabContainer=function(){if(null!=this.tabContainer&&!this.isTabContainerVisible())this.tabContainer.style.display="none";else if(null!=this.tabContainer&&null!=this.pages){this.tabContainer.style.display="";var b=this.editor.graph,k=document.createElement("div");k.className="geTabScroller";for(var m=null,g=null,q=null,u=this,x=null!=this.tabScroller?this.tabScroller.scrollLeft:0,z=!1,F=0;F<this.pages.length;F++){var J=this.pages[F];if(null!=J){var H=J.getId(),D=J.getName()||mxResources.get("untitled"),c=H+":"+D;c=null!=this.btPageTabCache?this.btPageTabCache[c]:null;null!=c?c.setAttribute("title",D+(null!=H?" ("+H+")":"")+" ["+(F+1)+"]"):(c=this.createTabForPage(J,F+1),z=!0);c.setAttribute("draggable","true");c.setAttribute("data-index",F);c.className="geTab gePageTab";null==c.btDndInstalled&&(c.btDndInstalled=!0,mxEvent.addListener(c,"dragstart",mxUtils.bind(this,function(n){b.isEnabled()?(mxClient.IS_FF&&n.dataTransfer.setData("Text","<diagram/>"),m=parseInt(n.currentTarget.getAttribute("data-index"),-10),f=n.currentTarget,window.requestAnimationFrame(function(){null!=f&&f.classList.add("gePageTabDragPlaceholder")}),u._pageTabDragOverHandler=function(r){r.dataTransfer.dropEffect="move";r.preventDefault();r.target.classList&&r.target.classList.contains("gePageTab")||r.stopPropagation()},u._pageTabDropHandler=function(r){r.preventDefault();r.stopPropagation()},document.addEventListener("dragover",u._pageTabDragOverHandler,!0),document.addEventListener("drop",u._pageTabDropHandler,!0)):mxEvent.consume(n)})),-mxEvent.addListener(c,"dragend",mxUtils.bind(this,function(n){if(null!=f){f.classList.remove("gePageTabDragPlaceholder");for(var r=f.parentNode.querySelectorAll(".gePageTab"),t=0,v=0;v<r.length;v++)if(r[v]==f){t=v;break}null!=m&&t!=m&&this.movePage(m,t)}null!=u._pageTabDragOverHandler&&(document.removeEventListener("dragover",u._pageTabDragOverHandler,!0),document.removeEventListener("drop",u._pageTabDropHandler,!0),u._pageTabDragOverHandler=null,u._pageTabDropHandler=null);f=m=null;n.stopPropagation();-n.preventDefault()})),mxEvent.addListener(c,"dragover",function(n){if(null!=m&&null!=f){n.dataTransfer.dropEffect="move";var r=n.currentTarget;if(r!=f){var t=r.getBoundingClientRect(),v=f.parentNode;n.clientX<t.left+t.width/2?v.insertBefore(f,r):r.nextSibling!=f&&v.insertBefore(f,r.nextSibling)}}n.stopPropagation();n.preventDefault()}),mxEvent.addListener(c,"drop",function(n){n.stopPropagation();n.preventDefault()}));J==this.currentPage&&(q=c);k.appendChild(c)}}this.tabContainer.innerText="";this.isPageInsertTabVisible()&&+10),g=n.currentTarget,window.requestAnimationFrame(function(){null!=g&&g.classList.add("gePageTabDragPlaceholder")}),u._pageTabDragOverHandler=function(r){r.dataTransfer.dropEffect="move";r.preventDefault();r.target.classList&&r.target.classList.contains("gePageTab")||r.stopPropagation()},u._pageTabDropHandler=function(r){r.preventDefault();r.stopPropagation()},document.addEventListener("dragover",u._pageTabDragOverHandler,!0),document.addEventListener("drop",u._pageTabDropHandler,!0)):mxEvent.consume(n)})),+mxEvent.addListener(c,"dragend",mxUtils.bind(this,function(n){if(null!=g){g.classList.remove("gePageTabDragPlaceholder");for(var r=g.parentNode.querySelectorAll(".gePageTab"),t=0,v=0;v<r.length;v++)if(r[v]==g){t=v;break}null!=m&&t!=m&&this.movePage(m,t)}null!=u._pageTabDragOverHandler&&(document.removeEventListener("dragover",u._pageTabDragOverHandler,!0),document.removeEventListener("drop",u._pageTabDropHandler,!0),u._pageTabDragOverHandler=null,u._pageTabDropHandler=null);g=m=null;n.stopPropagation();+n.preventDefault()})),mxEvent.addListener(c,"dragover",function(n){if(null!=m&&null!=g){n.dataTransfer.dropEffect="move";var r=n.currentTarget;if(r!=g){var t=r.getBoundingClientRect(),v=g.parentNode;n.clientX<t.left+t.width/2?v.insertBefore(g,r):r.nextSibling!=g&&v.insertBefore(g,r.nextSibling)}}n.stopPropagation();n.preventDefault()}),mxEvent.addListener(c,"drop",function(n){n.stopPropagation();n.preventDefault()}));J==this.currentPage&&(q=c);k.appendChild(c)}}this.tabContainer.innerText="";this.isPageInsertTabVisible()&&this.tabContainer.appendChild(this.createPageInsertTab());"simple"!=Editor.currentTheme&&(this.pageMenuTab=this.createPageMenuTab(),this.tabContainer.appendChild(this.pageMenuTab));this.tabContainer.appendChild(k);this.leftScrollTab=this.createLeftScrollTab();this.tabContainer.appendChild(this.leftScrollTab);this.rightScrollTab=this.createRightScrollTab();this.tabContainer.appendChild(this.rightScrollTab);if(Graph.browserTranslate&&Graph.isBrowserTranslated())for(this.btPageTabCache={},F=0;F<k.children.length;F++)J=null!=this.pages&&F<this.pages.length?this.pages[F]:null,null!=J&&(J=J.getId()+":"+(J.getName()||mxResources.get("untitled")),this.btPageTabCache[J]=k.children[F]);this.tabScroller=k;mxEvent.addListener(this.tabScroller,"scroll",mxUtils.bind(this,function(n){this.checkTabScrollerOverflow()}));if(Graph.browserTranslate&&Graph.isBrowserTranslated()){if(null==this.btCanary){u=this;this.btCanary=document.createElement("p");this.btCanary.setAttribute("aria-hidden","true");this.btCanary.style.cssText="position:absolute;left:-10000px;top:0;width:1px;height:1px;overflow:hidden;pointer-events:none;";-this.btCanaryOriginal="Click here to insert a new page into the document";this.btCanary.textContent=this.btCanaryOriginal;document.body.appendChild(this.btCanary);this.btCanarySavedScroll=null;var g=function(){null!=u.btCanarySavedScroll&&null!=u.tabScroller&&(u.btCanarySavedScroll=null,u.scrollToPage(null,!0))};this.btCanaryObserver=new MutationObserver(function(){null!=u.btCanarySavedScroll&&u.btCanary.textContent!=u.btCanaryOriginal&&setTimeout(g,100)});this.btCanaryObserver.observe(this.btCanary,+this.btCanaryOriginal="Click here to insert a new page into the document";this.btCanary.textContent=this.btCanaryOriginal;document.body.appendChild(this.btCanary);this.btCanarySavedScroll=null;var f=function(){null!=u.btCanarySavedScroll&&null!=u.tabScroller&&(u.btCanarySavedScroll=null,u.scrollToPage(null,!0))};this.btCanaryObserver=new MutationObserver(function(){null!=u.btCanarySavedScroll&&u.btCanary.textContent!=u.btCanaryOriginal&&setTimeout(f,100)});this.btCanaryObserver.observe(this.btCanary,{characterData:!0,childList:!0,subtree:!0})}null==this.btCanarySavedScroll&&z&&0<this.btKnownTabScroll&&(this.btCanarySavedScroll=this.btKnownTabScroll,this.btCanary.textContent=this.btCanaryOriginal,document.body.appendChild(this.btCanary))}var l=document.createElement("a");l.href="https://github.com/jgraph/drawio";l.target="_blank";l.style.cssText="margin-left:auto;display:flex;align-items:center;padding:0 8px;opacity:0.5;flex-shrink:0";k=document.createElement("img");k.src=IMAGE_PATH+(Editor.isDarkMode()?"/github-logo-white.svg":"/github-logo.svg");k.style.cssText="width:18px;height:18px";k.setAttribute("title","jgraph/drawio");l.appendChild(k);mxEvent.addListener(l,"mouseenter",function(){l.style.opacity="1"});mxEvent.addListener(l,"mouseleave",function(){l.style.opacity="0.5"});this.tabContainer.appendChild(l);null!=q&&q.classList.add("geActivePage");this.tabScroller.scrollLeft=x;this.scrollToPage();this.btKnownTabScroll=this.tabScroller.scrollLeft;this.checkTabScrollerOverflow();null!=q&&q.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}};EditorUi.prototype.checkTabScrollerOverflow=function(){null!=this.tabScroller&&null!=this.tabContainer&&2<this.tabContainer.children.length&&(this.tabScroller.scrollWidth>this.tabScroller.offsetWidth?(this.leftScrollTab.style.display="",this.rightScrollTab.style.display="",0==this.tabScroller.scrollLeft?this.leftScrollTab.classList.add("mxDisabled"):this.leftScrollTab.classList.remove("mxDisabled"),Math.ceil(this.tabScroller.scrollLeft)+this.tabScroller.offsetWidth>=this.tabScroller.scrollWidth?this.rightScrollTab.classList.add("mxDisabled"):this.rightScrollTab.classList.remove("mxDisabled")):(this.leftScrollTab.style.display="none",this.rightScrollTab.style.display="none"))};EditorUi.prototype.isPageInsertTabVisible=function(){return 1==urlParams.embed||null!=this.getCurrentFile()&&this.getCurrentFile().isEditable()};EditorUi.prototype.createTab=function(){var b=document.createElement("div");b.className="geTab";mxEvent.addListener(b,"click",mxUtils.bind(this,function(k){b.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}));return b};EditorUi.prototype.getShortPageName=function(b){var k=null;null!=b&&(k=b.getName(),null!=k&&36<k.length&&(k=k.substring(0,34)+"..."));return k};-EditorUi.prototype.createControlTab=function(b,k,m){var f=this.createTab();f.className="geTab geControlTab";null!=b&&f.setAttribute("title",b);b=document.createElement("div");b.className="geButton";b.style.backgroundImage="url("+k+")";f.appendChild(b);mxEvent.addListener(f,"click",m);return f};EditorUi.prototype.createPageInsertTab=function(){return this.createControlTab(mxResources.get("insertPage"),Editor.plusImage,mxUtils.bind(this,function(b){this.actions.get("insertPage").funct();mxEvent.consume(b)}))};+EditorUi.prototype.createControlTab=function(b,k,m){var g=this.createTab();g.className="geTab geControlTab";null!=b&&g.setAttribute("title",b);b=document.createElement("div");b.className="geButton";b.style.backgroundImage="url("+k+")";g.appendChild(b);mxEvent.addListener(g,"click",m);return g};EditorUi.prototype.createPageInsertTab=function(){return this.createControlTab(mxResources.get("insertPage"),Editor.plusImage,mxUtils.bind(this,function(b){this.actions.get("insertPage").funct();mxEvent.consume(b)}))};EditorUi.prototype.createLeftScrollTab=function(){return this.createControlTab(null,Editor.chevronLeftImage,mxUtils.bind(this,function(b){var k=Math.max(60,this.tabScroller.clientWidth/2);null!=this.tabScroller.scrollBy?this.tabScroller.scrollBy({left:-k,top:0,behavior:"smooth"}):this.tabScroller.scrollLeft-=k;mxEvent.consume(b)}))};EditorUi.prototype.createRightScrollTab=function(){return this.createControlTab(null,Editor.chevronRightImage,mxUtils.bind(this,function(b){var k=Math.max(60,this.tabScroller.clientWidth/2);null!=this.tabScroller.scrollBy?this.tabScroller.scrollBy({left:k,top:0,behavior:"smooth"}):this.tabScroller.scrollLeft+=k;mxEvent.consume(b)}))};-EditorUi.prototype.createPageMenuTab=function(){return this.createControlTab(mxResources.get("pages"),Editor.menuImage,mxUtils.bind(this,function(b){this.editor.graph.popupMenuHandler.hideMenu();var k=new mxPopupMenu(mxUtils.bind(this,function(q,u){this.menus.get("pages").funct(q,u)}));k.smartSeparators=!0;k.showDisabled=!0;k.autoExpand=!0;k.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(k,arguments);k.destroy()});var m=mxEvent.getClientX(b),f=mxEvent.getClientY(b);k.popup(m,-f,null,b);this.setCurrentMenu(k);mxEvent.consume(b)}))};EditorUi.prototype.createTabForPage=function(b,k){var m=this.createTab(),f=b.getName()||mxResources.get("untitled"),q=b.getId();m.setAttribute("title",f+(null!=q?" ("+q+")":"")+" ["+k+"]");k=document.createElement("span");k.style.maxWidth="160px";k.style.textOverflow="ellipsis";k.style.overflow="hidden";mxUtils.write(k,f);m.appendChild(k);this.addTabListeners(b,m);return m};-EditorUi.prototype.addTabListeners=function(b,k){mxEvent.disableContextMenu(k);var m=this.editor.graph;mxEvent.addListener(k,"dblclick",mxUtils.bind(this,function(F){this.renamePage(b);mxEvent.consume(F)}));var f=document.createElement("div");f.style.backgroundImage="url("+Editor.thinExpandImage+")";f.className="geButton";k.appendChild(f);var q=!1,u=!1,x=mxUtils.bind(this,function(F){q=null!=this.currentMenu;u=b==this.currentPage;this.scrollToPage(b);m.isMouseDown||u||this.selectPage(b)}),z=mxUtils.bind(this,-function(F){if(!m.isMouseDown&&(u&&(mxEvent.isTouchEvent(F)||mxEvent.getSource(F)==f)||mxEvent.isPopupTrigger(F))&&(m.popupMenuHandler.hideMenu(),this.hideCurrentMenu(),!mxEvent.isTouchEvent(F)||!q)){var J=new mxPopupMenu(this.createPageMenu(b));J.smartSeparators=!0;J.showDisabled=!0;J.autoExpand=!0;J.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(J,arguments);this.resetCurrentMenu();J.destroy()});var H=mxEvent.getClientX(F),D=mxEvent.getClientY(F);J.popup(H,D,null,F);-this.setCurrentMenu(J,k)}mxEvent.consume(F)});mxEvent.addGestureListeners(f,x,null,z);mxEvent.addGestureListeners(k,x,null,z)};-EditorUi.prototype.createPageMenu=function(b,k){return mxUtils.bind(this,function(m,f){1!=urlParams.embed&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=this.getServiceName()||navigator.standalone||m.addItem(mxResources.get("openInNewWindow"),null,mxUtils.bind(this,function(){this.editor.editAsNew(this.getFileData(!0,null,null,null,!0,!0))}),f));this.editor.graph.isEnabled()&&(this.menus.addMenuItems(m,["duplicatePage","-"],f),this.currentPage==b&&1<this.pages.length&&this.menus.addSubmenu("movePage",-m,f,mxResources.get("move")),this.menus.addMenuItems(m,["removePage","renamePage"],f))})};(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(f,q,u,x,z){q=null!=q?q:!1;null==u&&(u=this.getFoldableCells(this.getSelectionCells(),f));this.stopEditing();this.model.beginUpdate();try{for(var F=u.slice(),J=0;J<u.length;J++)"1"==mxUtils.getValue(this.getCurrentCellStyle(u[J]),"treeFolding","0")&&this.foldTreeCell(f,u[J]);u=F;u=b.apply(this,arguments)}finally{this.model.endUpdate()}return u};Graph.prototype.foldTreeCell=function(f,q){this.model.beginUpdate();try{var u=-[];this.traverse(q,!0,mxUtils.bind(this,function(z,F){var J=null!=F&&this.isTreeEdge(F);J&&u.push(F);z==q||null!=F&&!J||u.push(z);return(null==F||J)&&(z==q||!this.model.isCollapsed(z))}));this.model.setCollapsed(q,f);for(var x=0;x<u.length;x++)this.model.setVisible(u[x],!f)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(f){return!this.isEdgeIgnored(f)};Graph.prototype.getTreeEdges=function(f,q,u,x,z,F){return this.model.filterCells(this.getEdges(f,q,u,x,z,F),mxUtils.bind(this,-function(J){return this.isTreeEdge(J)}))};Graph.prototype.getIncomingTreeEdges=function(f,q){return this.getTreeEdges(f,q,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(f,q){return this.getTreeEdges(f,q,!1,!0,!1)};var k=EditorUi.prototype.init;EditorUi.prototype.init=function(){k.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function f(d){return B.isVertex(d)&&u(d)}function q(d){var p=!1;null!=d&&(p="1"==+EditorUi.prototype.createPageMenuTab=function(){return this.createControlTab(mxResources.get("pages"),Editor.menuImage,mxUtils.bind(this,function(b){this.editor.graph.popupMenuHandler.hideMenu();var k=new mxPopupMenu(mxUtils.bind(this,function(q,u){this.menus.get("pages").funct(q,u)}));k.smartSeparators=!0;k.showDisabled=!0;k.autoExpand=!0;k.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(k,arguments);k.destroy()});var m=mxEvent.getClientX(b),g=mxEvent.getClientY(b);k.popup(m,+g,null,b);this.setCurrentMenu(k);mxEvent.consume(b)}))};EditorUi.prototype.createTabForPage=function(b,k){var m=this.createTab(),g=b.getName()||mxResources.get("untitled"),q=b.getId();m.setAttribute("title",g+(null!=q?" ("+q+")":"")+" ["+k+"]");k=document.createElement("span");k.style.maxWidth="160px";k.style.textOverflow="ellipsis";k.style.overflow="hidden";mxUtils.write(k,g);m.appendChild(k);this.addTabListeners(b,m);return m};+EditorUi.prototype.addTabListeners=function(b,k){mxEvent.disableContextMenu(k);var m=this.editor.graph;mxEvent.addListener(k,"dblclick",mxUtils.bind(this,function(F){this.renamePage(b);mxEvent.consume(F)}));var g=document.createElement("div");g.style.backgroundImage="url("+Editor.thinExpandImage+")";g.className="geButton";k.appendChild(g);var q=!1,u=!1,x=mxUtils.bind(this,function(F){q=null!=this.currentMenu;u=b==this.currentPage;this.scrollToPage(b);m.isMouseDown||u||this.selectPage(b)}),z=mxUtils.bind(this,+function(F){if(!m.isMouseDown&&(u&&(mxEvent.isTouchEvent(F)||mxEvent.getSource(F)==g)||mxEvent.isPopupTrigger(F))&&(m.popupMenuHandler.hideMenu(),this.hideCurrentMenu(),!mxEvent.isTouchEvent(F)||!q)){var J=new mxPopupMenu(this.createPageMenu(b));J.smartSeparators=!0;J.showDisabled=!0;J.autoExpand=!0;J.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(J,arguments);this.resetCurrentMenu();J.destroy()});var H=mxEvent.getClientX(F),D=mxEvent.getClientY(F);J.popup(H,D,null,F);+this.setCurrentMenu(J,k)}mxEvent.consume(F)});mxEvent.addGestureListeners(g,x,null,z);mxEvent.addGestureListeners(k,x,null,z)};+EditorUi.prototype.createPageMenu=function(b,k){return mxUtils.bind(this,function(m,g){1!=urlParams.embed&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=this.getServiceName()||navigator.standalone||m.addItem(mxResources.get("openInNewWindow"),null,mxUtils.bind(this,function(){this.editor.editAsNew(this.getFileData(!0,null,null,null,!0,!0))}),g));this.editor.graph.isEnabled()&&(this.menus.addMenuItems(m,["duplicatePage","-"],g),this.currentPage==b&&1<this.pages.length&&this.menus.addSubmenu("movePage",+m,g,mxResources.get("move")),this.menus.addMenuItems(m,["removePage","renamePage"],g))})};(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(g,q,u,x,z){q=null!=q?q:!1;null==u&&(u=this.getFoldableCells(this.getSelectionCells(),g));this.stopEditing();this.model.beginUpdate();try{for(var F=u.slice(),J=0;J<u.length;J++)"1"==mxUtils.getValue(this.getCurrentCellStyle(u[J]),"treeFolding","0")&&this.foldTreeCell(g,u[J]);u=F;u=b.apply(this,arguments)}finally{this.model.endUpdate()}return u};Graph.prototype.foldTreeCell=function(g,q){this.model.beginUpdate();try{var u=+[];this.traverse(q,!0,mxUtils.bind(this,function(z,F){var J=null!=F&&this.isTreeEdge(F);J&&u.push(F);z==q||null!=F&&!J||u.push(z);return(null==F||J)&&(z==q||!this.model.isCollapsed(z))}));this.model.setCollapsed(q,g);for(var x=0;x<u.length;x++)this.model.setVisible(u[x],!g)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(g){return!this.isEdgeIgnored(g)};Graph.prototype.getTreeEdges=function(g,q,u,x,z,F){return this.model.filterCells(this.getEdges(g,q,u,x,z,F),mxUtils.bind(this,+function(J){return this.isTreeEdge(J)}))};Graph.prototype.getIncomingTreeEdges=function(g,q){return this.getTreeEdges(g,q,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(g,q){return this.getTreeEdges(g,q,!1,!0,!1)};var k=EditorUi.prototype.init;EditorUi.prototype.init=function(){k.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function g(d){return B.isVertex(d)&&u(d)}function q(d){var p=!1;null!=d&&(p="1"==v.getCurrentCellStyle(d).treeMoving);return p}function u(d){var p=!1;null!=d&&(d=B.getParent(d),p=v.view.getState(d),p="tree"==(null!=p?p.style:v.getCellStyle(d)).containerType);return p}function x(d){for(;null!=d&&!u(d);)d=B.getParent(d);return null!=d?B.getParent(d):null}function z(d){var p=!1;null!=d&&(d=B.getParent(d),p=v.view.getState(d),v.view.getState(d),p=null!=(null!=p?p.style:v.getCellStyle(d)).childLayout);return p}function F(d,p){function A(Y,X){null!=Y&&(I.cut.get(Y)||(I.cut.put(Y,!0),I.cells.push(Y)),X&&!L.get(Y)&&(L.put(Y,!0),P.push(Y)))}function G(Y){if(!I.deleted.get(Y)){I.deleted.put(Y,!0);I.cells.push(Y);Y=v.getAllEdges([Y]);for(var X=0;X<Y.length;X++)A(Y[X],!0)}}for(var I={cells:[],deleted:new mxDictionary,cut:new mxDictionary,cascaded:[]},L=new mxDictionary,P=[],Q=0;Q<d.length;Q++){var ba=d[Q];B.isEdge(ba)?A(ba,!1):B.isVertex(ba)&&null!=x(ba)?G(ba):null!=ba&&I.cells.push(ba)}for(;0<P.length;)if(d=B.getTerminal(P.shift(),!1),null!=d&&!I.deleted.get(d)&&B.isVertex(d)&&(Q=x(d),null!=Q&&(null==p||!p.get(Q)))){Q=v.getIncomingTreeEdges(d);ba=!0;for(var W=0;W<Q.length;W++)if(!I.cut.get(Q[W])){ba=!1;break}ba&&(I.cascaded.push(d),G(d))}return I}function J(d){d=v.view.getState(d);if(null!=d){var p=v.getIncomingTreeEdges(d.cell);if(0<p.length&&(p=v.view.getState(p[0]),null!=p&&(p=p.absolutePoints,null!=p&&0<p.length&&(p=p[p.length-1],null!=p)))){if(p.y==d.y&&Math.abs(p.x-d.getCenterX())<d.width/2)return mxConstants.DIRECTION_SOUTH;if(p.y==d.y+d.height&&Math.abs(p.x-d.getCenterX())<@@ -15911,34 +16000,34 @@ v.model.setTerminal(d[0],A,!1);d[1]=A}return d}function D(d,p,A){p=null!=p?p:!0;Q.x,L[1].geometry.y-=Q.y);var ba=v.view.getState(d),W=v.view.scale;if(null!=ba){var Y=mxRectangle.fromRectangle(ba);P==mxConstants.DIRECTION_SOUTH||P==mxConstants.DIRECTION_NORTH?Y.x+=(p?d.geometry.width+10:-L[1].geometry.width-10)*W:Y.y+=(p?d.geometry.height+10:-L[1].geometry.height-10)*W;var X=v.getOutgoingTreeEdges(v.model.getTerminal(I[0],!0));if(null!=X){var ca=P==mxConstants.DIRECTION_SOUTH||P==mxConstants.DIRECTION_NORTH;for(Q=I=A=0;Q<X.length;Q++){var S=v.model.getTerminal(X[Q],!1);if(P==J(S)){var Z=v.view.getState(S);S!=d&&null!=Z&&(ca&&p!=Z.getCenterX()<ba.getCenterX()||!ca&&p!=Z.getCenterY()<ba.getCenterY())&&mxUtils.intersects(Y,Z)&&(A=10+Math.max(A,(Math.min(Y.x+Y.width,Z.x+Z.width)-Math.max(Y.x,Z.x))/W),I=10+Math.max(I,(Math.min(Y.y+Y.height,Z.y+Z.height)-Math.max(Y.y,Z.y))/W))}}ca?I=0:A=0;for(Q=0;Q<X.length;Q++)if(S=v.model.getTerminal(X[Q],!1),P==J(S)&&(Z=v.view.getState(S),S!=d&&null!=Z&&(ca&&p!=Z.getCenterX()<ba.getCenterX()||!ca&&p!=Z.getCenterY()<ba.getCenterY()))){var da=[];v.traverse(Z.cell,!0,function(N,aa){var ea=null!=aa&&v.isTreeEdge(aa);ea&&da.push(aa);(null==aa||ea)&&da.push(N);return null==aa||ea});v.moveCells(da,(p?1:-1)*A,(p?1:-1)*I)}}}return v.addCells(L,G)}finally{v.model.endUpdate()}}function c(d,p){v.model.beginUpdate();try{var A=J(d),G=v.getIncomingTreeEdges(d),I=H(v.cloneCells([G[0],d]),d,p);v.model.setTerminal(G[0],I[1],!1);v.model.setTerminal(I[0],I[1],!0);v.model.setTerminal(I[0],d,!1);var L=v.model.getParent(d),P=L.geometry,Q=[];v.view.currentRoot!=-L&&(I[1].geometry.x-=P.x,I[1].geometry.y-=P.y);v.traverse(d,!0,function(Y,X){var ca=null!=X&&v.isTreeEdge(X);ca&&Q.push(X);(null==X||ca)&&Q.push(Y);return null==X||ca});var ba=d.geometry.width+40,W=d.geometry.height+40;A==mxConstants.DIRECTION_SOUTH?ba=0:A==mxConstants.DIRECTION_NORTH?(ba=0,W=-W):A==mxConstants.DIRECTION_WEST?(ba=-ba,W=0):A==mxConstants.DIRECTION_EAST&&(W=0);v.moveCells(Q,ba,W);return v.addCells(I,L)}finally{v.model.endUpdate()}}function g(d,p,A){v.model.beginUpdate();try{var G=v.model.getParent(d),+L&&(I[1].geometry.x-=P.x,I[1].geometry.y-=P.y);v.traverse(d,!0,function(Y,X){var ca=null!=X&&v.isTreeEdge(X);ca&&Q.push(X);(null==X||ca)&&Q.push(Y);return null==X||ca});var ba=d.geometry.width+40,W=d.geometry.height+40;A==mxConstants.DIRECTION_SOUTH?ba=0:A==mxConstants.DIRECTION_NORTH?(ba=0,W=-W):A==mxConstants.DIRECTION_WEST?(ba=-ba,W=0):A==mxConstants.DIRECTION_EAST&&(W=0);v.moveCells(Q,ba,W);return v.addCells(I,L)}finally{v.model.endUpdate()}}function f(d,p,A){v.model.beginUpdate();try{var G=v.model.getParent(d),I=v.getIncomingTreeEdges(d),L=J(d);0==I.length&&(I=[v.createEdge(G,null,"",null,null,v.createCurrentEdgeStyle())],L=p);var P=H(v.cloneCells([I[0],d]),d,A);v.model.setTerminal(P[0],d,!0);null==v.model.getTerminal(P[0],!1)&&(v.model.setTerminal(P[0],P[1],!1),v.applyNewEdgeStyle(P[1],[P[0]],L));I=v.getOutgoingTreeEdges(d);var Q=G.geometry;p=[];v.view.currentRoot==G&&(Q=new mxRectangle);for(A=0;A<I.length;A++){var ba=v.model.getTerminal(I[A],!1);null!=ba&&p.push(ba)}var W=v.view.getBounds(p),Y=v.view.translate,X=v.view.scale;L==mxConstants.DIRECTION_SOUTH?(P[1].geometry.x=null==W?d.geometry.x+(d.geometry.width-P[1].geometry.width)/2:(W.x+W.width)/X-Y.x-Q.x+10,P[1].geometry.y+=d.geometry.height-Q.y+40):L==mxConstants.DIRECTION_NORTH?(P[1].geometry.x=null==W?d.geometry.x+(d.geometry.width-P[1].geometry.width)/2:(W.x+W.width)/X-Y.x+-Q.x+10,P[1].geometry.y-=P[1].geometry.height+Q.y+40):(P[1].geometry.x=L==mxConstants.DIRECTION_WEST?P[1].geometry.x-(P[1].geometry.width+Q.x+40):P[1].geometry.x+(d.geometry.width-Q.x+40),P[1].geometry.y=null==W?d.geometry.y+(d.geometry.height-P[1].geometry.height)/2:(W.y+W.height)/X-Y.y+-Q.y+10);return v.addCells(P,G)}finally{v.model.endUpdate()}}function l(d,p,A){d=v.getOutgoingTreeEdges(d);A=v.view.getState(A);var G=[];if(null!=A&&null!=d){for(var I=0;I<d.length;I++){var L=v.view.getState(v.model.getTerminal(d[I],!1));null!=L&&(!p&&Math.min(L.x+L.width,A.x+A.width)>=Math.max(L.x,A.x)||p&&Math.min(L.y+L.height,A.y+A.height)>=Math.max(L.y,A.y))&&G.push(L)}G.sort(function(P,Q){return p?P.x+P.width-Q.x-Q.width:P.y+P.height-Q.y-Q.height})}return G}function n(d,p){var A=J(d),G=p==mxConstants.DIRECTION_EAST||p==mxConstants.DIRECTION_WEST;(A==mxConstants.DIRECTION_EAST||A==mxConstants.DIRECTION_WEST)==G&&A!=p?t.actions.get("selectParent").funct():A==p?(p=v.getOutgoingTreeEdges(d),null!=p&&0<p.length&&v.setSelectionCell(v.model.getTerminal(p[0],!1))):(A=v.getIncomingTreeEdges(d),null!=A&&0<A.length&&(G=l(v.model.getTerminal(A[0],!0),G,d),d=v.view.getState(d),null!=d&&(d=mxUtils.indexOf(G,-d),0<=d&&(d+=p==mxConstants.DIRECTION_NORTH||p==mxConstants.DIRECTION_WEST?-1:1,0<=d&&d<=G.length-1&&v.setSelectionCell(G[d].cell)))))}function r(d){return(q(d)||f(d))&&!z(d)&&0<v.getOutgoingTreeEdges(d).length&&!v.isCellCollapsed(d)}var t=this,v=t.editor.graph,B=v.getModel(),E=t.menus.createPopupMenu;t.menus.createPopupMenu=function(d,p,A){E.apply(this,arguments);if(1==v.getSelectionCount()){p=v.getSelectionCell();var G=v.getOutgoingTreeEdges(p);d.addSeparator();0<G.length&&(f(v.getSelectionCell())&&-this.addMenuItems(d,["selectChildren"],null,A),this.addMenuItems(d,["selectDescendants"],null,A));f(v.getSelectionCell())?(d.addSeparator(),0<v.getIncomingTreeEdges(p).length&&this.addMenuItems(d,["selectSiblings","selectParent"],null,A)):0<v.model.getEdgeCount(p)&&this.addMenuItems(d,["selectConnections"],null,A)}};t.actions.addAction("selectChildren",function(d){if(v.isEnabled()&&1==v.getSelectionCount()){var p=v.getSelectionCell();d=mxEvent.isControlDown(d)?null:v.getOutgoingTreeEdges(p);if(null!=+d),0<=d&&(d+=p==mxConstants.DIRECTION_NORTH||p==mxConstants.DIRECTION_WEST?-1:1,0<=d&&d<=G.length-1&&v.setSelectionCell(G[d].cell)))))}function r(d){return(q(d)||g(d))&&!z(d)&&0<v.getOutgoingTreeEdges(d).length&&!v.isCellCollapsed(d)}var t=this,v=t.editor.graph,B=v.getModel(),E=t.menus.createPopupMenu;t.menus.createPopupMenu=function(d,p,A){E.apply(this,arguments);if(1==v.getSelectionCount()){p=v.getSelectionCell();var G=v.getOutgoingTreeEdges(p);d.addSeparator();0<G.length&&(g(v.getSelectionCell())&&+this.addMenuItems(d,["selectChildren"],null,A),this.addMenuItems(d,["selectDescendants"],null,A));g(v.getSelectionCell())?(d.addSeparator(),0<v.getIncomingTreeEdges(p).length&&this.addMenuItems(d,["selectSiblings","selectParent"],null,A)):0<v.model.getEdgeCount(p)&&this.addMenuItems(d,["selectConnections"],null,A)}};t.actions.addAction("selectChildren",function(d){if(v.isEnabled()&&1==v.getSelectionCount()){var p=v.getSelectionCell();d=mxEvent.isControlDown(d)?null:v.getOutgoingTreeEdges(p);if(null!=d&&0<d.length){p=[];for(var A=0;A<d.length;A++)p.push(v.model.getTerminal(d[A],!1));v.setSelectionCells(p)}else v.setSelectionCells(v.model.getChildren(p))}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+C");t.actions.addAction("selectDescendants",function(d){var p=v.getSelectionCell();if(v.isEnabled()&&null!=p){var A=[];mxEvent.isControlDown(d)||v.traverse(p,!0,function(G,I){var L=null!=I&&v.isTreeEdge(I);L&&mxEvent.isControlDown(d)&&A.push(I);(null==I||L)&&A.push(G);return null==I||L});if(0==A.length||1==A.length&&A[0]==p)A=v.model.getDescendants(p);v.setSelectionCells(A)}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+X");t.actions.addAction("selectParent",function(d){var p=v.getSelectionCell();v.isEnabled()&&null!=p&&(d=mxEvent.isControlDown(d)?null:v.getIncomingTreeEdges(p),null!=d&&0<d.length?v.setSelectionCell(v.model.getTerminal(d[0],!0)):v.selectParentCell())},null,null,Editor.altKey+"+"+Editor.shiftKey+"+P");t.actions.addAction("selectSiblings",function(d){if(v.isEnabled()&&1==v.getSelectionCount()){var p=v.getSelectionCell(),A=mxEvent.isControlDown(d)?null:v.getIncomingTreeEdges(p);d=[];if(null!=A&&0<A.length&&(A=v.getOutgoingTreeEdges(v.model.getTerminal(A[0],!0)),null!=A))for(var G=0;G<A.length;G++)d.push(v.model.getTerminal(A[G],!1));0==d.length&&(d=v.model.getChildren(v.model.getParent(p)));v.setSelectionCells(d)}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+S");var K=v.removeCells;v.removeCells=function(d,p){p=null!=p?p:!0;null==d&&(d=this.getDeletableCells(this.getSelectionCells()));p&&(d=this.getDeletableCells(this.addAllEdges(d)));var A=F(d,null);var G=A;for(var I=new mxDictionary,L=null,P=0;P<G.cascaded.length;P++){var Q=x(G.cascaded[P]);if(null!=Q&&!I.get(Q)){I.put(Q,!0);a:{var ba=G;for(var W=[Q];0<W.length;)for(var Y=W.pop(),X=0;X<B.getChildCount(Y);X++){var ca=B.getChildAt(Y,X);if(B.isVertex(ca)&&!ba.deleted.get(ca))for(var S=0;S<B.getEdgeCount(ca);S++)if(!ba.cut.get(B.getEdgeAt(ca,S))){ba=!0;break a}W.push(ca)}ba=!1}ba||(L=null!=L?L:new mxDictionary,L.put(Q,!0))}}G=L;null!=-G&&(A=F(d,G));d=A.cells;return K.apply(this,arguments)};t.hoverIcons.getStateAt=function(d,p,A){return f(d.cell)?null:this.graph.view.getState(this.graph.getCellAt(p,A))};var C=v.duplicateCells;v.duplicateCells=function(d,p){d=null!=d?d:this.getSelectionCells();for(var A=d.slice(0),G=0;G<A.length;G++){var I=v.view.getState(A[G]);if(null!=I&&f(I.cell)){var L=v.getIncomingTreeEdges(I.cell);for(I=0;I<L.length;I++)mxUtils.remove(L[I],d)}}this.model.beginUpdate();try{var P=C.call(this,d,p);if(P.length==-d.length)for(G=0;G<d.length;G++)if(f(d[G])){var Q=v.getIncomingTreeEdges(P[G]);L=v.getIncomingTreeEdges(d[G]);if(0==Q.length&&0<L.length){var ba=this.cloneCell(L[0]);this.addEdge(ba,v.getDefaultParent(),this.model.getTerminal(L[0],!0),P[G])}}}finally{this.model.endUpdate()}return P};var R=v.moveCells;v.moveCells=function(d,p,A,G,I,L,P){for(var Q=null,ba=[],W=0;W<d.length;W++)(q(d[W])||f(d[W]))&&!z(d[W])&&this.isCellCollapsed(d[W])?ba=ba.concat(this.getSubtree(d[W])):ba.push(d[W]);d=mxUtils.removeDuplicates(ba);-this.model.beginUpdate();try{ba=I;var Y=this.getCurrentCellStyle(I);if(null!=d&&f(I)&&"1"==mxUtils.getValue(Y,"treeFolding","0")){for(W=0;W<d.length;W++)if(f(d[W])||v.model.isEdge(d[W])&&null==v.model.getTerminal(d[W],!0)){I=v.model.getParent(d[W]);break}if(null!=ba&&I!=ba&&null!=this.view.getState(d[0])){var X=v.getIncomingTreeEdges(d[0]);if(0<X.length){var ca=v.view.getState(v.model.getTerminal(X[0],!0));if(null!=ca){var S=v.view.getState(ba);null!=S&&(p=(S.getCenterX()-ca.getCenterX())/v.view.scale,-A=(S.getCenterY()-ca.getCenterY())/v.view.scale)}}}}Q=R.apply(this,arguments);if(null!=Q&&null!=d&&Q.length==d.length)for(W=0;W<Q.length;W++)if(this.model.isEdge(Q[W]))f(ba)&&0>mxUtils.indexOf(Q,this.model.getTerminal(Q[W],!0))&&this.model.setTerminal(Q[W],ba,!0);else if(f(d[W])&&(X=v.getIncomingTreeEdges(d[W]),0<X.length))if(!G)f(ba)&&0>mxUtils.indexOf(d,this.model.getTerminal(X[0],!0))&&this.model.setTerminal(X[0],ba,!0);else if(0==v.getIncomingTreeEdges(Q[W]).length){Y=ba;if(null==Y||Y==v.model.getParent(d[W]))Y=-v.model.getTerminal(X[0],!0);G=this.cloneCell(X[0]);this.addEdge(G,v.getDefaultParent(),Y,Q[W])}}finally{this.model.endUpdate()}return Q};if(null!=t.sidebar){var M=t.sidebar.dropAndConnect;t.sidebar.dropAndConnect=function(d,p,A,G){var I=v.model,L=null;I.beginUpdate();try{if(L=M.apply(this,arguments),f(d))for(var P=0;P<L.length;P++)if(I.isEdge(L[P])&&null==I.getTerminal(L[P],!0)){I.setTerminal(L[P],d,!0);var Q=v.getCellGeometry(L[P]);Q.points=null;null!=Q.getTerminalPoint(!0)&&Q.setTerminalPoint(null,+G&&(A=F(d,G));d=A.cells;return K.apply(this,arguments)};t.hoverIcons.getStateAt=function(d,p,A){return g(d.cell)?null:this.graph.view.getState(this.graph.getCellAt(p,A))};var C=v.duplicateCells;v.duplicateCells=function(d,p){d=null!=d?d:this.getSelectionCells();for(var A=d.slice(0),G=0;G<A.length;G++){var I=v.view.getState(A[G]);if(null!=I&&g(I.cell)){var L=v.getIncomingTreeEdges(I.cell);for(I=0;I<L.length;I++)mxUtils.remove(L[I],d)}}this.model.beginUpdate();try{var P=C.call(this,d,p);if(P.length==+d.length)for(G=0;G<d.length;G++)if(g(d[G])){var Q=v.getIncomingTreeEdges(P[G]);L=v.getIncomingTreeEdges(d[G]);if(0==Q.length&&0<L.length){var ba=this.cloneCell(L[0]);this.addEdge(ba,v.getDefaultParent(),this.model.getTerminal(L[0],!0),P[G])}}}finally{this.model.endUpdate()}return P};var R=v.moveCells;v.moveCells=function(d,p,A,G,I,L,P){for(var Q=null,ba=[],W=0;W<d.length;W++)(q(d[W])||g(d[W]))&&!z(d[W])&&this.isCellCollapsed(d[W])?ba=ba.concat(this.getSubtree(d[W])):ba.push(d[W]);d=mxUtils.removeDuplicates(ba);+this.model.beginUpdate();try{ba=I;var Y=this.getCurrentCellStyle(I);if(null!=d&&g(I)&&"1"==mxUtils.getValue(Y,"treeFolding","0")){for(W=0;W<d.length;W++)if(g(d[W])||v.model.isEdge(d[W])&&null==v.model.getTerminal(d[W],!0)){I=v.model.getParent(d[W]);break}if(null!=ba&&I!=ba&&null!=this.view.getState(d[0])){var X=v.getIncomingTreeEdges(d[0]);if(0<X.length){var ca=v.view.getState(v.model.getTerminal(X[0],!0));if(null!=ca){var S=v.view.getState(ba);null!=S&&(p=(S.getCenterX()-ca.getCenterX())/v.view.scale,+A=(S.getCenterY()-ca.getCenterY())/v.view.scale)}}}}Q=R.apply(this,arguments);if(null!=Q&&null!=d&&Q.length==d.length)for(W=0;W<Q.length;W++)if(this.model.isEdge(Q[W]))g(ba)&&0>mxUtils.indexOf(Q,this.model.getTerminal(Q[W],!0))&&this.model.setTerminal(Q[W],ba,!0);else if(g(d[W])&&(X=v.getIncomingTreeEdges(d[W]),0<X.length))if(!G)g(ba)&&0>mxUtils.indexOf(d,this.model.getTerminal(X[0],!0))&&this.model.setTerminal(X[0],ba,!0);else if(0==v.getIncomingTreeEdges(Q[W]).length){Y=ba;if(null==Y||Y==v.model.getParent(d[W]))Y=+v.model.getTerminal(X[0],!0);G=this.cloneCell(X[0]);this.addEdge(G,v.getDefaultParent(),Y,Q[W])}}finally{this.model.endUpdate()}return Q};if(null!=t.sidebar){var M=t.sidebar.dropAndConnect;t.sidebar.dropAndConnect=function(d,p,A,G){var I=v.model,L=null;I.beginUpdate();try{if(L=M.apply(this,arguments),g(d))for(var P=0;P<L.length;P++)if(I.isEdge(L[P])&&null==I.getTerminal(L[P],!0)){I.setTerminal(L[P],d,!0);var Q=v.getCellGeometry(L[P]);Q.points=null;null!=Q.getTerminalPoint(!0)&&Q.setTerminalPoint(null,!0)}}finally{I.endUpdate()}return L}}var O={67:t.actions.get("selectChildren"),88:t.actions.get("selectDescendants"),80:t.actions.get("selectParent"),83:t.actions.get("selectSiblings")},U={67:t.actions.get("copyStyle"),86:t.actions.get("pasteStyle")},T=t.onKeyDown;t.onKeyDown=function(d){try{var p=v.getSelectionCell();if(v.isEnabled()&&!v.isEditing()&&null!=p){var A=mxEvent.isAltDown(d)&&mxEvent.isShiftDown(d)?O[d.keyCode]:mxEvent.isAltDown(d)?U[d.keyCode]:null;null!=A?(A.funct(d),mxEvent.consume(d)):-f(p)&&(A=null,0<v.getIncomingTreeEdges(p).length&&(9==d.which?A=mxEvent.isShiftDown(d)?c(p):g(p):13==d.which&&(A=D(p,!mxEvent.isShiftDown(d)))),null!=A&&0<A.length?(1==A.length&&v.model.isEdge(A[0])?v.setSelectionCell(v.model.getTerminal(A[0],!1)):v.setSelectionCell(A[A.length-1]),null!=t.hoverIcons&&t.hoverIcons.update(v.view.getState(p)),v.startEditingAtCell(p),mxEvent.consume(d)):37==d.keyCode?(n(p,mxConstants.DIRECTION_WEST),mxEvent.consume(d)):38==d.keyCode?(n(p,mxConstants.DIRECTION_NORTH),-mxEvent.consume(d)):39==d.keyCode?(n(p,mxConstants.DIRECTION_EAST),mxEvent.consume(d)):40==d.keyCode&&(n(p,mxConstants.DIRECTION_SOUTH),mxEvent.consume(d)))}}catch(G){t.handleError(G)}mxEvent.isConsumed(d)||T.apply(this,arguments)};var V=v.connectVertex;v.connectVertex=function(d,p,A,G,I,L,P,Q,ba){var W=v.getIncomingTreeEdges(d);if(f(d)){var Y=J(d),X=Y==mxConstants.DIRECTION_EAST||Y==mxConstants.DIRECTION_WEST,ca=p==mxConstants.DIRECTION_EAST||p==mxConstants.DIRECTION_WEST;W=Y==p||0==W.length?g(d,-p,ba):X==ca?c(d,ba):D(d,p!=mxConstants.DIRECTION_NORTH&&p!=mxConstants.DIRECTION_WEST,ba);if(null!=Q)Q(W);else return W}else return V.apply(this,arguments)};v.getSubtree=function(d){var p=[d];!q(d)&&!f(d)||z(d)||v.traverse(d,!0,function(A,G){var I=null!=G&&v.isTreeEdge(G);I&&0>mxUtils.indexOf(p,G)&&p.push(G);(null==G||I)&&0>mxUtils.indexOf(p,A)&&p.push(A);return null==G||I});return p};var fa=v.isMoveIconVisible;v.isMoveIconVisible=function(d){return fa.apply(this,arguments)||r(d)};var y=v.getMoveIconDragCells;-v.getMoveIconDragCells=function(d){return r(d)?this.getSubtree(d):y.apply(this,arguments)}};if("undefined"!==typeof Sidebar){var m=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var f=m.apply(this,arguments),q=this.graph,u=this;return f.concat([this.addEntry("tree container",function(){var x=new mxCell("Tree Container",new mxGeometry(0,0,0,0),"swimlane;startSize=20;horizontal=1;containerType=tree;transparentBounds=1;groupPadding=20;");x.vertex=!0;var z=new mxCell("Parent",+g(p)&&(A=null,0<v.getIncomingTreeEdges(p).length&&(9==d.which?A=mxEvent.isShiftDown(d)?c(p):f(p):13==d.which&&(A=D(p,!mxEvent.isShiftDown(d)))),null!=A&&0<A.length?(1==A.length&&v.model.isEdge(A[0])?v.setSelectionCell(v.model.getTerminal(A[0],!1)):v.setSelectionCell(A[A.length-1]),null!=t.hoverIcons&&t.hoverIcons.update(v.view.getState(p)),v.startEditingAtCell(p),mxEvent.consume(d)):37==d.keyCode?(n(p,mxConstants.DIRECTION_WEST),mxEvent.consume(d)):38==d.keyCode?(n(p,mxConstants.DIRECTION_NORTH),+mxEvent.consume(d)):39==d.keyCode?(n(p,mxConstants.DIRECTION_EAST),mxEvent.consume(d)):40==d.keyCode&&(n(p,mxConstants.DIRECTION_SOUTH),mxEvent.consume(d)))}}catch(G){t.handleError(G)}mxEvent.isConsumed(d)||T.apply(this,arguments)};var V=v.connectVertex;v.connectVertex=function(d,p,A,G,I,L,P,Q,ba){var W=v.getIncomingTreeEdges(d);if(g(d)){var Y=J(d),X=Y==mxConstants.DIRECTION_EAST||Y==mxConstants.DIRECTION_WEST,ca=p==mxConstants.DIRECTION_EAST||p==mxConstants.DIRECTION_WEST;W=Y==p||0==W.length?f(d,+p,ba):X==ca?c(d,ba):D(d,p!=mxConstants.DIRECTION_NORTH&&p!=mxConstants.DIRECTION_WEST,ba);if(null!=Q)Q(W);else return W}else return V.apply(this,arguments)};v.getSubtree=function(d){var p=[d];!q(d)&&!g(d)||z(d)||v.traverse(d,!0,function(A,G){var I=null!=G&&v.isTreeEdge(G);I&&0>mxUtils.indexOf(p,G)&&p.push(G);(null==G||I)&&0>mxUtils.indexOf(p,A)&&p.push(A);return null==G||I});return p};var fa=v.isMoveIconVisible;v.isMoveIconVisible=function(d){return fa.apply(this,arguments)||r(d)};var y=v.getMoveIconDragCells;+v.getMoveIconDragCells=function(d){return r(d)?this.getSubtree(d):y.apply(this,arguments)}};if("undefined"!==typeof Sidebar){var m=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var g=m.apply(this,arguments),q=this.graph,u=this;return g.concat([this.addEntry("tree container",function(){var x=new mxCell("Tree Container",new mxGeometry(0,0,0,0),"swimlane;startSize=20;horizontal=1;containerType=tree;transparentBounds=1;groupPadding=20;");x.vertex=!0;var z=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');z.vertex=!0;var F=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');F.vertex=!0;var J=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");J.geometry.relative=!0;J.edge=!0;z.insertEdge(J,!0);F.insertEdge(J,!1);x.insert(J);x.insert(z);x.insert(F);return u.createVertexTemplateFromCells([x],160,180,x.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var x=new mxCell("Mindmap",new mxGeometry(0,0,0,0),"swimlane;startSize=20;horizontal=1;containerType=tree;transparentBounds=1;groupPadding=20;");x.vertex=!0;var z=new mxCell("Central Idea",new mxGeometry(160,60,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');z.vertex=!0;var F=new mxCell("Topic",new mxGeometry(320,40,80,20),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');F.vertex=!0;var J=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");J.geometry.relative=!0;J.edge=!0;z.insertEdge(J,!0);F.insertEdge(J,!1);var H=new mxCell("Branch",new mxGeometry(320,80,72,26),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');H.vertex=!0;var D=new mxCell("",new mxGeometry(0,0,0,0),J.style);D.geometry.relative=!0;D.edge=!0;z.insertEdge(D,!0);H.insertEdge(D,!1);var c=new mxCell("Topic",new mxGeometry(20,40,80,20),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');-c.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),J.style);g.geometry.relative=!0;g.edge=!0;z.insertEdge(g,!0);c.insertEdge(g,!1);var l=new mxCell("Branch",new mxGeometry(20,80,72,26),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');-l.vertex=!0;var n=new mxCell("",new mxGeometry(0,0,0,0),J.style);n.geometry.relative=!0;n.edge=!0;z.insertEdge(n,!0);l.insertEdge(n,!1);x.insert(J);x.insert(D);x.insert(g);x.insert(n);x.insert(z);x.insert(F);x.insert(H);x.insert(c);x.insert(l);return u.createVertexTemplateFromCells([x],420,126,x.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var x=new mxCell("Central Idea",new mxGeometry(0,0,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};treeFolding=1;treeMoving=1;');+c.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,0,0),J.style);f.geometry.relative=!0;f.edge=!0;z.insertEdge(f,!0);c.insertEdge(f,!1);var l=new mxCell("Branch",new mxGeometry(20,80,72,26),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');+l.vertex=!0;var n=new mxCell("",new mxGeometry(0,0,0,0),J.style);n.geometry.relative=!0;n.edge=!0;z.insertEdge(n,!0);l.insertEdge(n,!1);x.insert(J);x.insert(D);x.insert(f);x.insert(n);x.insert(z);x.insert(F);x.insert(H);x.insert(c);x.insert(l);return u.createVertexTemplateFromCells([x],420,126,x.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var x=new mxCell("Central Idea",new mxGeometry(0,0,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};treeFolding=1;treeMoving=1;');x.vertex=!0;return u.createVertexTemplateFromCells([x],x.geometry.width,x.geometry.height,x.value)}),this.addEntry("tree mindmap mindmaps branch",function(){var x=new mxCell("Branch",new mxGeometry(0,0,80,20),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;recursiveResize=0;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');x.vertex=!0;var z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");z.geometry.setTerminalPoint(new mxPoint(-40,40),!0);z.geometry.relative=!0;z.edge=!0;x.insertEdge(z,!1);return u.createVertexTemplateFromCells([x,z],x.geometry.width,x.geometry.height,x.value)}),this.addEntry("tree mindmap mindmaps sub topic",function(){var x=new mxCell("Sub Topic",new mxGeometry(0,0,80,26),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');x.vertex=!0;var z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");@@ -15956,87 +16045,87 @@ J.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){J.s"none",J.sidebarElt.style.width="210px",J.sidebarElt.style.borderRight="1px solid gray"),H=J.diagramContainer.parentNode,null!=J.sidebarElt.parentNode?(J.sidebarElt.parentNode.removeChild(J.sidebarElt),H.style.left="0px"):(H.parentNode.appendChild(J.sidebarElt),H.style.left=J.sidebarElt.style.width)}if("1"==urlParams.lightbox||"0"==urlParams.chrome||"undefined"===typeof window.Format||"undefined"===typeof window.Menus)window.uiTheme=null;else{var m=0;try{m=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}catch(J){}Menus.prototype.autoPopup=!1;mxConstraintHandler.prototype.pointImage=Graph.createSvgImage(5,5,'<path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke-width="2" style="stroke-opacity:0.4" stroke="#ffffff"/><path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke="#29b6f2"/>');mxOutline.prototype.sizerImage=null;mxConstants.VERTEX_SELECTION_COLOR="#C0C0C0";mxConstants.EDGE_SELECTION_COLOR="#C0C0C0";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.DEFAULT_VALID_COLOR="#29b6f2";mxConstants.GUIDE_COLOR="#C0C0C0";mxConstants.OUTLINE_COLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_FILLCOLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#fff";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowSize="0.6";Graph.prototype.svgShadowBlur="1.2";mxRubberband.prototype.defaultOpacity=50;HoverIcons.prototype.inactiveOpacity=25;EditorUi.prototype.closableScratchpad=!1;Graph.prototype.editAfterInsert=!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.prototype.isChromelessView=-function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var f=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){f.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var q=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(J,H){null!=H.shortcut&&900>m&&!mxClient.IS_IOS?J.firstChild.nextSibling.setAttribute("title",H.shortcut):q.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=+function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var g=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){g.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var q=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(J,H){null!=H.shortcut&&900>m&&!mxClient.IS_IOS?J.firstChild.nextSibling.setAttribute("title",H.shortcut):q.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(J){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=J?J:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0<this.formatWidth};var u=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();u.apply(this,arguments)};var x=EditorUi.prototype.setGraphEnabled;EditorUi.prototype.setGraphEnabled=function(J){x.apply(this,arguments);if(J){var H=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=H&&null!=this.sidebarWindow&&this.sidebarEnabled&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=H&&this.formatWindow.window.setVisible(!0)}else null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!1),null!=this.formatWindow&&this.formatWindow.window.setVisible(!1)};EditorUi.prototype.chromelessWindowResize=function(){};EditorUi.prototype.installFormatToolbar=-function(J){var H=this.editor.graph,D=document.createElement("div");D.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";H.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(c,g){0<H.getSelectionCount()?(J.appendChild(D),D.innerHTML="Selected: "+H.getSelectionCount()):null!=D.parentNode&&D.parentNode.removeChild(D)}))};var z=!1;EditorUi.prototype.initFormatWindow=+function(J){var H=this.editor.graph,D=document.createElement("div");D.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";H.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(c,f){0<H.getSelectionCount()?(J.appendChild(D),D.innerHTML="Selected: "+H.getSelectionCount()):null!=D.parentNode&&D.parentNode.removeChild(D)}))};var z=!1;EditorUi.prototype.initFormatWindow=function(){if(!z&&null!=this.formatWindow){z=!0;var J=this.formatWindow.window.toggleMinimized,H=240;this.formatWindow.window.toggleMinimized=function(){J.apply(this,arguments);this.minimized?(H=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+H-140+"px"):(this.div.style.width=H+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-H+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(D){mxEvent.getSource(D)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var F=EditorUi.prototype.init;EditorUi.prototype.init=function(){function J(p,A,G){var I=l.menus.get(p);A=t.addMenu(mxResources.get(p),mxUtils.bind(this,function(){I.funct.apply(this,arguments)}));A.className="geButton";A.setAttribute("title",mxResources.get(p));l.menus.menuCreated(I,A,"geButton");null!=G&&(A.style.backgroundImage="url("+G+")",A.innerText="");return A}function H(p,A,G,I,L,P){var Q=document.createElement("a");Q.className="geButton";r.appendChild(Q);null!=P?Q.style.backgroundImage="url("+P+")":mxUtils.write(Q,p);mxEvent.addListener(Q,"click",function(ba){"disabled"!=Q.getAttribute("disabled")&&A(ba);mxEvent.consume(ba)});mxEvent.preventDefault(Q);null!=I&&Q.setAttribute("title",I);null!=L&&(p=function(){L.isEnabled()?Q.removeAttribute("disabled"):Q.setAttribute("disabled","disabled")},L.addListener("stateChanged",p),n.addListener("enabledChanged",p),p());return Q}function D(p,A,G){A=document.createElement("div");A.className="geButtonGroup";for(G=0;G<p.length;G++)null!=p[G]&&A.appendChild(p[G]);r.appendChild(A);return A}function c(){m=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var p=0;"1"==urlParams.embed&&null!=l.buttonContainer&&(p=l.buttonContainer.offsetWidth||300);r.innerHTML="";var A=m<1E3+p,G=J("diagram",null,A?Editor.menuImage:null);D([G,H(mxResources.get("shapes"),l.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),l.actions.get("image"),A?Editor.shapesImage:null),H(mxResources.get("format"),l.actions.get("format").funct,null,mxResources.get("format")+" ("+l.actions.get("format").shortcut+")",l.actions.get("image"),A?Editor.formatImage:null)]);G=J("insert",!0,A?C:null);D([G,H(mxResources.get("delete"),l.actions.get("delete").funct,null,mxResources.get("delete"),l.actions.get("delete"),A?Editor.trashImage:null)]);n.isEnabled()||G.setAttribute("disabled","disabled");fa.setAttribute("title",mxResources.get("undo")+" ("+T.shortcut+")");y.setAttribute("title",mxResources.get("redo")+" ("+V.shortcut+")");d.setAttribute("title",mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)");m>=411+p&&(D([fa,y]),m>=520+p&&D([d,m>=640+p?H("",O.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",O,Editor.zoomInImage):null,m>=640+p?H("",U.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",U,Editor.zoomOutImage):-null]));r.appendChild(l.statusContainer);r.appendChild(l.buttonContainer)}F.apply(this,arguments);var g=mxUtils.isAncestorNode(document.body,this.container)?this.container:this.editor.graph.container;null!=g&&(g.classList.add("geSimple"),g.classList.add("geMinimal"),g.classList.remove("geClassic"));this.sidebar=this.createSidebar(this.sidebarContainer);"0"!=urlParams.sidebar&&(1E3<=m||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])&&(k(this,!0),null!=this.sidebar&&null!=+null]));r.appendChild(l.statusContainer);r.appendChild(l.buttonContainer)}F.apply(this,arguments);var f=mxUtils.isAncestorNode(document.body,this.container)?this.container:this.editor.graph.container;null!=f&&(f.classList.add("geSimple"),f.classList.add("geMinimal"),f.classList.remove("geClassic"));this.sidebar=this.createSidebar(this.sidebarContainer);"0"!=urlParams.sidebar&&(1E3<=m||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])&&(k(this,!0),null!=this.sidebar&&null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes&&(this.sidebar.searchShapes(urlParams["search-shapes"]),this.sidebar.showEntries("search")));this.formatEnabled&&EditorUi.windowed&&1E3<=m&&(b(this,!0),this.formatWindow.window.setVisible(!0));var l=this,n=l.editor.graph;l.toolbar=this.createToolbar(l.createDiv("geToolbar"));var r=document.createElement("div");r.className="geMenubarContainer";var t=new Menubar(l,r),v=l.hideCurrentMenu;l.hideCurrentMenu=function(){v.apply(this,arguments);null!=this.editor&&this.editor.graph.popupMenuHandler.hideMenu()};var B=l.descriptorChanged;l.descriptorChanged=function(){B.apply(this,arguments);var p=l.getCurrentFile();if(null!=p&&null!=p.getTitle()){var A=p.getMode();"google"==A?A="googleDrive":"github"==A?A="gitHub":"gitlab"==A?A="gitLab":"onedrive"==A&&(A="oneDrive");A=mxResources.get(A);r.setAttribute("title",p.getTitle()+(null!=A?" ("+A+")":""))}else r.removeAttribute("title")};l.setStatusText(l.editor.getStatus());r.appendChild(l.statusContainer);l.buttonContainer=this.createButtonContainer();r.appendChild(l.buttonContainer);l.menubarContainer=l.buttonContainer;l.tabContainer=this.createTabContainer();var E=this.createZoomInput(!0),K=l.updateTabContainer;l.updateTabContainer=function(){K.apply(this,arguments);l.tabContainer.appendChild(E)};var C=Editor.addBoxImage;if(null!=l.hoverIcons){var R=l.hoverIcons.update;l.hoverIcons.update=function(){n.freehand.isDrawing()||R.apply(this,arguments)}}if(null!=n.freehand){var M=n.freehand.createStyle;-n.freehand.createStyle=function(p){return M.apply(this,arguments)+"sketch=0;"}}l.editor.addListener("statusChanged",mxUtils.bind(this,function(){l.setStatusText(l.editor.getStatus())}));l.setStatusText(l.editor.getStatus());var O=l.actions.get("zoomIn"),U=l.actions.get("zoomOut");g=l.actions.get("resetView");var T=l.actions.get("undo"),V=l.actions.get("redo"),fa=H("",T.funct,null,"",T,Editor.undoImage),y=H("",V.funct,null,"",V,Editor.redoImage),d=H("",function(p){mxEvent.isAltDown(p)?(l.hideCurrentMenu(),-l.actions.get("customZoom").funct()):(l.hideCurrentMenu(),l.actions.get("smartFit").funct());mxEvent.consume(p)},!0,"",g,Editor.zoomFitImage);l.actions.get("toggleShapes").funct=mxUtils.bind(this,function(){k(l,null)});l.container.appendChild(l.tabContainer);l.container.appendChild(r);l.updateTabContainer();this.formatEnabled&&!EditorUi.windowed&&1E3<=m&&b(this,!0);c();l.addListener("lockedChanged",c);l.addListener("languageChanged",c);l.editor.graph.addListener("enabledChanged",c);mxEvent.addListener(window,+n.freehand.createStyle=function(p){return M.apply(this,arguments)+"sketch=0;"}}l.editor.addListener("statusChanged",mxUtils.bind(this,function(){l.setStatusText(l.editor.getStatus())}));l.setStatusText(l.editor.getStatus());var O=l.actions.get("zoomIn"),U=l.actions.get("zoomOut");f=l.actions.get("resetView");var T=l.actions.get("undo"),V=l.actions.get("redo"),fa=H("",T.funct,null,"",T,Editor.undoImage),y=H("",V.funct,null,"",V,Editor.redoImage),d=H("",function(p){mxEvent.isAltDown(p)?(l.hideCurrentMenu(),+l.actions.get("customZoom").funct()):(l.hideCurrentMenu(),l.actions.get("smartFit").funct());mxEvent.consume(p)},!0,"",f,Editor.zoomFitImage);l.actions.get("toggleShapes").funct=mxUtils.bind(this,function(){k(l,null)});l.container.appendChild(l.tabContainer);l.container.appendChild(r);l.updateTabContainer();this.formatEnabled&&!EditorUi.windowed&&1E3<=m&&b(this,!0);c();l.addListener("lockedChanged",c);l.addListener("languageChanged",c);l.editor.graph.addListener("enabledChanged",c);mxEvent.addListener(window,"resize",function(){c();null!=l.sidebarWindow&&l.sidebarWindow.window.fit();null!=l.formatWindow&&l.formatWindow.window.fit();null!=l.actions.outlineWindow&&l.actions.outlineWindow.window.fit();null!=l.actions.layersWindow&&l.actions.layersWindow.window.fit();null!=l.menus.chatWindow&&l.menus.chatWindow.window.fit();null!=l.menus.tagsWindow&&l.menus.tagsWindow.window.fit();null!=l.menus.findWindow&&l.menus.findWindow.window.fit();null!=l.menus.findReplaceWindow&&l.menus.findReplaceWindow.window.fit()})}}};-(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var k=EditorUi.initTheme;EditorUi.initTheme=function(){k.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();function mxRuler(b,k,m,f){function q(){var B=b.getDiagramContainerOffset(),E=b.diagramContainer;D.style.top=E.offsetTop-B.y+"px";D.style.left=E.offsetLeft-B.x+"px";D.style.width=(m?0:E.offsetWidth-1)+F+"px";D.style.height=(m?E.offsetHeight:0)+F+"px"}function u(B,E,K){if(null!=x)return B;var C;return function(){var R=this,M=arguments,O=K&&!C;clearTimeout(C);C=setTimeout(function(){C=null;K||B.apply(R,M)},E);O&&B.apply(R,M)}}var x=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||+(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var k=EditorUi.initTheme;EditorUi.initTheme=function(){k.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();function mxRuler(b,k,m,g){function q(){var B=b.getDiagramContainerOffset(),E=b.diagramContainer;D.style.top=E.offsetTop-B.y+"px";D.style.left=E.offsetLeft-B.x+"px";D.style.width=(m?0:E.offsetWidth-1)+F+"px";D.style.height=(m?E.offsetHeight:0)+F+"px"}function u(B,E,K){if(null!=x)return B;var C;return function(){var R=this,M=arguments,O=K&&!C;clearTimeout(C);C=setTimeout(function(){C=null;K||B.apply(R,M)},E);O&&B.apply(R,M)}}var x=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,z=window.cancelAnimationFrame||window.mozCancelAnimationFrame,F=this.RULER_THICKNESS,J=this;this.unit=k;var H=Editor.isDarkMode()?{bkgClr:"#202020",outBkgClr:"#1B1D1E",cornerClr:"#1B1D1E",strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{bkgClr:"#ffffff",outBkgClr:"#f1f3f4",cornerClr:"#f1f3f4",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"},D=document.createElement("div");D.className="geRuler";D.style.position="fixed";this.updateStyle=mxUtils.bind(this,function(){H=Editor.isDarkMode()?{outBkgClr:"#1B1D1E",cornerClr:"#1B1D1E",strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{outBkgClr:"#f1f3f4",cornerClr:"#f1f3f4",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"};D.style[m?"borderRight":"borderBottom"]="0.5px solid "+H.strokeClr;D.style.borderLeft="0.5px solid "+H.strokeClr});this.updateStyle();b.diagramContainer.appendChild(D);mxEvent.disableContextMenu(D);this.editorUiRefresh=b.refresh;b.refresh=function(B){J.editorUiRefresh.apply(b,-arguments);q()};q();var c=document.createElement("canvas");c.width=D.offsetWidth;c.height=D.offsetHeight;D.style.overflow="hidden";c.style.position="relative";D.appendChild(c);var g=c.getContext("2d");this.ui=b;var l=b.editor.graph;this.graph=l;this.container=D;this.canvas=c;var n=function(B,E,K,C,R){B=Math.round(B);E=Math.round(E);K=Math.round(K);C=Math.round(C);g.beginPath();g.moveTo(B+.5,E+.5);g.lineTo(K+.5,C+.5);g.stroke();R&&(m?(g.save(),g.translate(B,E),g.rotate(-Math.PI/2),g.fillText(R,0,0),-g.restore()):g.fillText(R,B,E))},r=function(){g.clearRect(0,0,c.width,c.height);g.beginPath();g.lineWidth=.7;g.strokeStyle=H.strokeClr;g.setLineDash([]);g.font="9px Arial";g.textAlign="center";var B=l.view.scale,E=l.view.getBackgroundPageBounds(),K=l.view.translate,C=l.pageVisible;K=C?F+(m?E.y-l.container.scrollTop:E.x-l.container.scrollLeft):F+(m?K.y*B-l.container.scrollTop:K.x*B-l.container.scrollLeft);var R=0;C&&(R=l.getPageLayout(),R=m?R.y*l.pageFormat.height:R.x*l.pageFormat.width);var M;switch(J.unit){case mxConstants.POINTS:var O=+arguments);q()};q();var c=document.createElement("canvas");c.width=D.offsetWidth;c.height=D.offsetHeight;D.style.overflow="hidden";c.style.position="relative";D.appendChild(c);var f=c.getContext("2d");this.ui=b;var l=b.editor.graph;this.graph=l;this.container=D;this.canvas=c;var n=function(B,E,K,C,R){B=Math.round(B);E=Math.round(E);K=Math.round(K);C=Math.round(C);f.beginPath();f.moveTo(B+.5,E+.5);f.lineTo(K+.5,C+.5);f.stroke();R&&(m?(f.save(),f.translate(B,E),f.rotate(-Math.PI/2),f.fillText(R,0,0),+f.restore()):f.fillText(R,B,E))},r=function(){f.clearRect(0,0,c.width,c.height);f.beginPath();f.lineWidth=.7;f.strokeStyle=H.strokeClr;f.setLineDash([]);f.font="9px Arial";f.textAlign="center";var B=l.view.scale,E=l.view.getBackgroundPageBounds(),K=l.view.translate,C=l.pageVisible;K=C?F+(m?E.y-l.container.scrollTop:E.x-l.container.scrollLeft):F+(m?K.y*B-l.container.scrollTop:K.x*B-l.container.scrollLeft);var R=0;C&&(R=l.getPageLayout(),R=m?R.y*l.pageFormat.height:R.x*l.pageFormat.width);var M;switch(J.unit){case mxConstants.POINTS:var O=M=10;var U=[3,5,5,5,5,10,5,5,5,5];break;case mxConstants.MILLIMETERS:M=10;O=mxConstants.PIXELS_PER_MM;U=[5,3,3,3,3,6,3,3,3,3];break;case mxConstants.METERS:M=20;O=mxConstants.PIXELS_PER_MM;U=[5,3,3,3,3,6,3,3,3,3,10,3,3,3,3,6,3,3,3,3];break;case mxConstants.INCHES:M=.5>=B||4<=B?8:16,O=mxConstants.PIXELS_PER_INCH/M,U=[5,3,5,3,7,3,5,3,7,3,5,3,7,3,5,3]}var T=O;2<=B?T=O/(2*Math.floor(B/2)):.5>=B&&(T=O*Math.floor(1/B/2)*(J.unit==mxConstants.MILLIMETERS?2:1));O=null;E=C?Math.min(K+(m?E.height:E.width),m?-c.height:c.width):m?c.height:c.width;if(C)if(g.fillStyle=H.outBkgClr,m){var V=K-F;0<V&&g.fillRect(0,F,F,V);E<c.height&&g.fillRect(0,E,F,c.height)}else V=K-F,0<V&&g.fillRect(F,0,V,F),E<c.width&&g.fillRect(E,0,c.width,F);g.fillStyle=H.fontClr;V=T*B;C=C?K:K%V;for(C<F-V&&(C+=Math.floor((F-C)/V)*V);C<=E;C+=V){var fa=Math.round((C-K)/B/T);if(!(C<F||fa==O)){O=fa;var y=null;0==fa%M&&(y=J.formatText(R+fa*T)+"");m?n(F-U[Math.abs(fa)%M],C,F,C,y):n(C,F-U[Math.abs(fa)%M],C,F,y)}}g.lineWidth=1;n(m?0:F,m?F:0,F,-F);g.fillStyle=H.cornerClr;g.fillRect(0,0,F,F)},t=-1,v=function(){null!=x?(null!=z&&z(t),t=x(r)):r()};this.drawRuler=v;this.sizeListener=k=u(function(){var B=l.container;m?(B=B.offsetHeight+F,c.height!=B&&(c.height=B,D.style.height=B+"px",v())):(B=B.offsetWidth+F,c.width!=B&&(c.width=B,D.style.width=B+"px",v()))},10);this.pageListener=function(){v()};this.scrollListener=f=u(function(){var B=m?l.container.scrollTop:l.container.scrollLeft;J.lastScroll!=B&&(J.lastScroll=B,v())},10);this.unitListener=-function(B,E){J.setUnit(E.getProperty("unit"))};l.addListener(mxEvent.SIZE,k);l.container.addEventListener("scroll",f);l.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(B){H=B;D.style.background=H.bkgClr;r()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(B,E,K,C){if(m&&4<B.height||!m&&4<B.width){if(null!=-J.guidePart)try{g.putImageData(J.guidePart.imgData1,J.guidePart.x1,J.guidePart.y1),g.putImageData(J.guidePart.imgData2,J.guidePart.x2,J.guidePart.y2),g.putImageData(J.guidePart.imgData3,J.guidePart.x3,J.guidePart.y3)}catch(A){}var R=J.origGuideMove.apply(this,arguments);try{g.lineWidth=.5;g.strokeStyle=H.guideClr;g.setLineDash([2]);if(m){var M=B.y+R.y+F-this.graph.container.scrollTop;var O=0;var U=M+B.height/2;var T=F/2;var V=M+B.height;var fa=0;var y=g.getImageData(O,M-1,F,3);n(O,M,F,M);M--;var d=-g.getImageData(T,U-1,F,3);n(T,U,F,U);U--;var p=g.getImageData(fa,V-1,F,3);n(fa,V,F,V);V--}else M=0,O=B.x+R.x+F-this.graph.container.scrollLeft,U=F/2,T=O+B.width/2,V=0,fa=O+B.width,y=g.getImageData(O-1,M,3,F),n(O,M,O,F),O--,d=g.getImageData(T-1,U,3,F),n(T,U,T,F),T--,p=g.getImageData(fa-1,V,3,F),n(fa,V,fa,F),fa--;if(null==J.guidePart||J.guidePart.x1!=O||J.guidePart.y1!=M)J.guidePart={imgData1:y,x1:O,y1:M,imgData2:d,x2:T,y2:U,imgData3:p,x3:fa,y3:V}}catch(A){}}else R=J.origGuideMove.apply(this,arguments);-return R};this.origGuideDestroy=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){var B=J.origGuideDestroy.apply(this,arguments);if(null!=J.guidePart)try{g.putImageData(J.guidePart.imgData1,J.guidePart.x1,J.guidePart.y1),g.putImageData(J.guidePart.imgData2,J.guidePart.x2,J.guidePart.y2),g.putImageData(J.guidePart.imgData3,J.guidePart.x3,J.guidePart.y3),J.guidePart=null}catch(E){}return B}}mxRuler.prototype.RULER_THICKNESS=14;mxRuler.prototype.unit=mxConstants.POINTS;+c.height:c.width):m?c.height:c.width;if(C)if(f.fillStyle=H.outBkgClr,m){var V=K-F;0<V&&f.fillRect(0,F,F,V);E<c.height&&f.fillRect(0,E,F,c.height)}else V=K-F,0<V&&f.fillRect(F,0,V,F),E<c.width&&f.fillRect(E,0,c.width,F);f.fillStyle=H.fontClr;V=T*B;C=C?K:K%V;for(C<F-V&&(C+=Math.floor((F-C)/V)*V);C<=E;C+=V){var fa=Math.round((C-K)/B/T);if(!(C<F||fa==O)){O=fa;var y=null;0==fa%M&&(y=J.formatText(R+fa*T)+"");m?n(F-U[Math.abs(fa)%M],C,F,C,y):n(C,F-U[Math.abs(fa)%M],C,F,y)}}f.lineWidth=1;n(m?0:F,m?F:0,F,+F);f.fillStyle=H.cornerClr;f.fillRect(0,0,F,F)},t=-1,v=function(){null!=x?(null!=z&&z(t),t=x(r)):r()};this.drawRuler=v;this.sizeListener=k=u(function(){var B=l.container;m?(B=B.offsetHeight+F,c.height!=B&&(c.height=B,D.style.height=B+"px",v())):(B=B.offsetWidth+F,c.width!=B&&(c.width=B,D.style.width=B+"px",v()))},10);this.pageListener=function(){v()};this.scrollListener=g=u(function(){var B=m?l.container.scrollTop:l.container.scrollLeft;J.lastScroll!=B&&(J.lastScroll=B,v())},10);this.unitListener=+function(B,E){J.setUnit(E.getProperty("unit"))};l.addListener(mxEvent.SIZE,k);l.container.addEventListener("scroll",g);l.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(B){H=B;D.style.background=H.bkgClr;r()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(B,E,K,C){if(m&&4<B.height||!m&&4<B.width){if(null!=+J.guidePart)try{f.putImageData(J.guidePart.imgData1,J.guidePart.x1,J.guidePart.y1),f.putImageData(J.guidePart.imgData2,J.guidePart.x2,J.guidePart.y2),f.putImageData(J.guidePart.imgData3,J.guidePart.x3,J.guidePart.y3)}catch(A){}var R=J.origGuideMove.apply(this,arguments);try{f.lineWidth=.5;f.strokeStyle=H.guideClr;f.setLineDash([2]);if(m){var M=B.y+R.y+F-this.graph.container.scrollTop;var O=0;var U=M+B.height/2;var T=F/2;var V=M+B.height;var fa=0;var y=f.getImageData(O,M-1,F,3);n(O,M,F,M);M--;var d=+f.getImageData(T,U-1,F,3);n(T,U,F,U);U--;var p=f.getImageData(fa,V-1,F,3);n(fa,V,F,V);V--}else M=0,O=B.x+R.x+F-this.graph.container.scrollLeft,U=F/2,T=O+B.width/2,V=0,fa=O+B.width,y=f.getImageData(O-1,M,3,F),n(O,M,O,F),O--,d=f.getImageData(T-1,U,3,F),n(T,U,T,F),T--,p=f.getImageData(fa-1,V,3,F),n(fa,V,fa,F),fa--;if(null==J.guidePart||J.guidePart.x1!=O||J.guidePart.y1!=M)J.guidePart={imgData1:y,x1:O,y1:M,imgData2:d,x2:T,y2:U,imgData3:p,x3:fa,y3:V}}catch(A){}}else R=J.origGuideMove.apply(this,arguments);+return R};this.origGuideDestroy=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){var B=J.origGuideDestroy.apply(this,arguments);if(null!=J.guidePart)try{f.putImageData(J.guidePart.imgData1,J.guidePart.x1,J.guidePart.y1),f.putImageData(J.guidePart.imgData2,J.guidePart.x2,J.guidePart.y2),f.putImageData(J.guidePart.imgData3,J.guidePart.x3,J.guidePart.y3),J.guidePart=null}catch(E){}return B}}mxRuler.prototype.RULER_THICKNESS=14;mxRuler.prototype.unit=mxConstants.POINTS;mxRuler.prototype.setUnit=function(b){this.unit=b;this.drawRuler()};mxRuler.prototype.formatText=function(b){switch(this.unit){case mxConstants.POINTS:return Math.round(b);case mxConstants.MILLIMETERS:return(b/mxConstants.PIXELS_PER_MM).toFixed(1);case mxConstants.METERS:return(b/(1E3*mxConstants.PIXELS_PER_MM)).toFixed(4);case mxConstants.INCHES:return(b/mxConstants.PIXELS_PER_INCH).toFixed(2)}};mxRuler.prototype.destroy=function(){this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.graph.removeListener(this.sizeListener);this.graph.container.removeEventListener("scroll",this.scrollListener);this.graph.view.removeListener(this.unitListener);this.ui.removeListener(this.pageListener);null!=this.container&&this.container.parentNode.removeChild(this.container)};-function mxDualRuler(b,k){var m=new mxPoint(mxRuler.prototype.RULER_THICKNESS,mxRuler.prototype.RULER_THICKNESS);this.editorUiGetDiagContOffset=b.getDiagramContainerOffset;b.getDiagramContainerOffset=function(){return m};this.editorUiRefresh=b.refresh;this.ui=b;this.origGuideMove=mxGuide.prototype.move;this.origGuideDestroy=mxGuide.prototype.destroy;this.vRuler=new mxRuler(b,k,!0);this.hRuler=new mxRuler(b,k,!1,!0);k=mxUtils.bind(this,function(f){var q=!1;mxEvent.addGestureListeners(f,mxUtils.bind(this,+function mxDualRuler(b,k){var m=new mxPoint(mxRuler.prototype.RULER_THICKNESS,mxRuler.prototype.RULER_THICKNESS);this.editorUiGetDiagContOffset=b.getDiagramContainerOffset;b.getDiagramContainerOffset=function(){return m};this.editorUiRefresh=b.refresh;this.ui=b;this.origGuideMove=mxGuide.prototype.move;this.origGuideDestroy=mxGuide.prototype.destroy;this.vRuler=new mxRuler(b,k,!0);this.hRuler=new mxRuler(b,k,!1,!0);k=mxUtils.bind(this,function(g){var q=!1;mxEvent.addGestureListeners(g,mxUtils.bind(this,function(u){q=null!=b.currentMenu;mxEvent.consume(u)}),null,mxUtils.bind(this,function(u){if(b.editor.graph.isEnabled()&&!b.editor.graph.isMouseDown&&(mxEvent.isTouchEvent(u)||mxEvent.isPopupTrigger(u))){b.editor.graph.popupMenuHandler.hideMenu();b.hideCurrentMenu();if(!mxEvent.isTouchEvent(u)||!q){var x=new mxPopupMenu(mxUtils.bind(this,function(J,H){b.menus.addMenuItems(J,["points","inches","millimeters","meters"],H)}));x.smartSeparators=!0;x.showDisabled=!0;x.autoExpand=!0;x.hideMenu=mxUtils.bind(this,-function(){mxPopupMenu.prototype.hideMenu.apply(x,arguments);b.resetCurrentMenu();x.destroy()});var z=mxEvent.getClientX(u),F=mxEvent.getClientY(u);x.popup(z,F,null,u);b.setCurrentMenu(x,f)}mxEvent.consume(u)}}))});k(this.hRuler.container);k(this.vRuler.container);this.vRuler.drawRuler();this.hRuler.drawRuler()}mxDualRuler.prototype.updateStyle=function(){this.vRuler.updateStyle();this.hRuler.updateStyle();this.vRuler.drawRuler();this.hRuler.drawRuler()};-mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var k=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=k){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var m=mxFreehand.prototype.MILD_SMOOTHING,f=null,q=[],u,x=[],z,F=!1,J=!0,H=!0,D=!0,c=!0,g=[],l=!1,n=!1,r=!1,t="default",v={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},B=!0;this.setClosedPath=function(U){F=U};this.setAutoClose=function(U){J=U};this.setAutoInsert=+function(){mxPopupMenu.prototype.hideMenu.apply(x,arguments);b.resetCurrentMenu();x.destroy()});var z=mxEvent.getClientX(u),F=mxEvent.getClientY(u);x.popup(z,F,null,u);b.setCurrentMenu(x,g)}mxEvent.consume(u)}}))});k(this.hRuler.container);k(this.vRuler.container);this.vRuler.drawRuler();this.hRuler.drawRuler()}mxDualRuler.prototype.updateStyle=function(){this.vRuler.updateStyle();this.hRuler.updateStyle();this.vRuler.drawRuler();this.hRuler.drawRuler()};+mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var k=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=k){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var m=mxFreehand.prototype.MILD_SMOOTHING,g=null,q=[],u,x=[],z,F=!1,J=!0,H=!0,D=!0,c=!0,f=[],l=!1,n=!1,r=!1,t="default",v={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},B=!0;this.setClosedPath=function(U){F=U};this.setAutoClose=function(U){J=U};this.setAutoInsert=function(U){H=U};this.setAutoScroll=function(U){D=U};this.setOpenFill=function(U){c=U};this.setStopClickEnabled=function(U){n=U};this.setSelectInserted=function(U){r=U};this.setSmoothing=function(U){m=U};this.getSmoothing=function(){return m};this.setPerfectFreehandMode=function(U){B=U};this.isPerfectFreehandMode=function(){return B};this.setBrushSize=function(U){v.size=U};this.getBrushSize=function(){return v.size};var E=function(U){l=U;b.getRubberband().setEnabled(!U);b.graphHandler.setSelectEnabled(!U);-b.graphHandler.setMoveEnabled(!U);b.panningHandler.setPinchEnabled(!U);U?b.container.classList.add("geFreehandMode"):b.container.classList.remove("geFreehandMode");b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){E(!0)};this.isDrawing=function(){return l};this.isActive=function(){return null!=f};var K=mxUtils.bind(this,function(U){if(f){var T=z.length,V=n&&0<x.length&&null!=z&&2>z.length;V||x.push.apply(x,z);z=[];x.push(null);q.push(f);f=null;(V||H)&&this.stopDrawing();+b.graphHandler.setMoveEnabled(!U);b.panningHandler.setPinchEnabled(!U);U?b.container.classList.add("geFreehandMode"):b.container.classList.remove("geFreehandMode");b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){E(!0)};this.isDrawing=function(){return l};this.isActive=function(){return null!=g};var K=mxUtils.bind(this,function(U){if(g){var T=z.length,V=n&&0<x.length&&null!=z&&2>z.length;V||x.push.apply(x,z);z=[];x.push(null);q.push(g);g=null;(V||H)&&this.stopDrawing();H&&(!V||2<=T)&&this.startDrawing();mxEvent.consume(U)}}),C=new mxCell;C.edge=!0;this.getStrokeColor=function(U){var T=null!=t?t:mxUtils.getValue(b.currentVertexStyle,mxConstants.STYLE_STROKECOLOR,mxUtils.getValue(b.getCurrentCellStyle(C),mxConstants.STYLE_STROKECOLOR,"#000"));"default"!=T||U||(T=b.shapeForegroundColor);return T};this.setStrokeColor=function(U){t=U};this.createStyle=function(U){var T=";fillColor=none;";B&&(T=";lineShape=1;");T+="strokeColor="+this.getStrokeColor(!0)+";";return mxConstants.STYLE_SHAPE+"="+U+T};this.stopDrawing=function(){if(0<q.length){if(B){for(var U=[],T=0;T<x.length;T++)null!=x[T]&&U.push([x[T].x,x[T].y]);U=PerfectFreehand.getStroke(U,v);x=[];for(T=0;T<U.length;T++)x.push({x:U[T][0],y:U[T][1]});x.push(null)}U=x[0].x;var V=x[0].x,fa=x[0].y,y=x[0].y;for(T=1;T<x.length;T++)null!=x[T]&&(U=Math.max(U,x[T].x),V=Math.min(V,x[T].x),fa=Math.max(fa,x[T].y),y=Math.min(y,x[T].y));U-=V;fa-=y;if(0<U&&0<fa){var d=100/U,p=100/fa;x.map(function(P){if(null==P)return P;P.x=(P.x-V)*d;P.y=(P.y-y)*p;return P});var A='<shape strokewidth="inherit"><foreground>',G=0;for(T=0;T<x.length;T++){var I=x[T];if(null==I){I=!1;G=x[G];var L=x[T-1];!F&&J&&(I=G.x-L.x,L=G.y-L.y,I=Math.sqrt(I*I+L*L)<=b.tolerance);if(F||I)A+='<line x="'+G.x.toFixed(2)+'" y="'+G.y.toFixed(2)+'"/>';A+="</path>"+(c||F||I?"<fillstroke/>":"<stroke/>");G=T+1}else A=T==G?A+('<path><move x="'+I.x.toFixed(2)+'" y="'+I.y.toFixed(2)+'"/>'):A+('<line x="'+I.x.toFixed(2)+'" y="'+I.y.toFixed(2)+'"/>')}A+="</foreground></shape>";if(b.isEnabled()&&-!b.isCellLocked(b.getDefaultParent())){T=this.createStyle("stencil("+Graph.compress(A)+")");A=b.view.scale;G=b.view.translate;T=new mxCell("",new mxGeometry(V/A-G.x,y/A-G.y,U/A,fa/A),T);T.vertex=1;b.model.beginUpdate();try{T=b.addCell(T),b.fireEvent(new mxEventObject("cellsInserted","cells",[T])),b.fireEvent(new mxEventObject("freehandInserted","cell",T))}finally{b.model.endUpdate()}r&&b.setSelectionCells([T])}}for(T=0;T<q.length;T++)q[T].parentNode.removeChild(q[T]);f=null;q=[];x=[]}E(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,+!b.isCellLocked(b.getDefaultParent())){T=this.createStyle("stencil("+Graph.compress(A)+")");A=b.view.scale;G=b.view.translate;T=new mxCell("",new mxGeometry(V/A-G.x,y/A-G.y,U/A,fa/A),T);T.vertex=1;b.model.beginUpdate();try{T=b.addCell(T),b.fireEvent(new mxEventObject("cellsInserted","cells",[T])),b.fireEvent(new mxEventObject("freehandInserted","cell",T))}finally{b.model.endUpdate()}r&&b.setSelectionCells([T])}}for(T=0;T<q.length;T++)q[T].parentNode.removeChild(q[T]);g=null;q=[];x=[]}E(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(U,T){l&&T.getProperty("event").consume()}));b.addListener(mxEvent.GESTURE,mxUtils.bind(this,function(U,T){l&&mxEvent.consume(T.getProperty("event"))}));b.addMouseListener({mouseDown:mxUtils.bind(this,function(U,T){if(b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(U=T.getEvent(),l&&!mxEvent.isPopupTrigger(U)&&!mxEvent.isMiddleMouseButton(U)&&!mxEvent.isMultiTouchEvent(U))){var V=parseFloat(b.currentVertexStyle[mxConstants.STYLE_STROKEWIDTH]||1);V=Math.max(1,V*b.view.scale);-var fa=this.getStrokeColor();f=document.createElementNS("http://www.w3.org/2000/svg","path");f.setAttribute("fill",B?fa:"none");f.setAttribute("pointer-events","none");f.setAttribute("stroke",fa);f.setAttribute("stroke-width",V);"1"==b.currentVertexStyle[mxConstants.STYLE_DASHED]&&(fa=b.currentVertexStyle[mxConstants.STYLE_DASH_PATTERN]||"3 3",fa=fa.split(" ").map(function(y){return parseFloat(y)*V}).join(" "),f.setAttribute("stroke-dasharray",fa));g=[];U=R(U);M(U);u="M"+U.x+" "+U.y;x.push(U);z=[];-f.setAttribute("d",B?PerfectFreehand.getSvgPathFromStroke([[U.x,U.y]],v):u);k.appendChild(f);T.consume()}}),mouseMove:mxUtils.bind(this,function(U,T){if(null!=f&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){U=T.getEvent();U=R(U);M(U);var V=O(0);if(V)if(x.push(V),B){var fa=[];for(V=0;V<x.length;V++)fa.push([x[V].x,x[V].y]);z=[];for(var y=2;y<g.length;y+=2)V=O(y),fa.push([V.x,V.y]),z.push(V);f.setAttribute("d",PerfectFreehand.getSvgPathFromStroke(fa,v))}else{u+=" L"+V.x+" "+V.y;fa="";z=[];-for(y=2;y<g.length;y+=2)V=O(y),fa+=" L"+V.x+" "+V.y,z.push(V);f.setAttribute("d",u+fa)}D&&(V=b.view.translate,b.scrollRectToVisible((new mxRectangle(U.x-V.x,U.y-V.y)).grow(20)));T.consume()}}),mouseUp:mxUtils.bind(this,function(U,T){null!=f&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(K(T.getEvent()),T.consume())})});var R=function(U){return mxUtils.convertPoint(b.container,mxEvent.getClientX(U),mxEvent.getClientY(U))},M=function(U){for(g.push(U);g.length>m;)g.shift()},O=function(U){var T=-g.length;if(1===T%2||T>=m){var V=0,fa=0,y,d=0;for(y=U;y<T;y++)d++,U=g[y],V+=U.x,fa+=U.y;return{x:V/d,y:fa/d}}return null}}}mxFreehand.prototype.NO_SMOOTHING=1;mxFreehand.prototype.MILD_SMOOTHING=4;mxFreehand.prototype.NORMAL_SMOOTHING=8;mxFreehand.prototype.VERY_SMOOTH_SMOOTHING=12;mxFreehand.prototype.SUPER_SMOOTH_SMOOTHING=16;mxFreehand.prototype.HYPER_SMOOTH_SMOOTHING=20;function P2PCollab(b,k,m){function f(N,aa){try{if(!V){var ea=k.file.getCurrentUser();if(T&&null!=ea&&null!=ea.displayName)if(A&&d&&0==y&&("cursor"==N||"selectionChange"==N||"diff"==N))"cursor"!=N&&EditorUi.debug("P2PCollab: skipped message while alone",[N]);else{var la={from:R,id:v,type:N,sessionId:k.clientId,userId:ea.id,username:ea.displayName,data:aa,protocol:DrawioFileSync.PROTOCOL,editor:EditorUi.VERSION};la={bytes:k.objectToString(la),data:"aes"};la=JSON.stringify(la);p&&"cursor"!=N&&EditorUi.debug("P2PCollab: sending to socket server",-[la]);v++;ea=!p&&("cursor"==N||"selectionChange"==N);U&&!ea&&X("message",la);if(ea)for(p2pId in O)O[p2pId].send(la)}else"cursor"!=N&&EditorUi.debug("P2PCollab: message dropped, not joined",[N],"fileJoined",T)}}catch(ra){null!=window.console&&console.error(ra,N,aa)}}function q(N){if(b.shareCursorPosition&&!g.isMouseDown){var aa=mxUtils.getOffset(g.container),ea=g.view.translate,la=g.view.scale,ra=null!=b.currentPage?b.currentPage.getId():null;f("cursor",{pageId:ra,x:Math.round((N.getX()-aa.x+g.container.scrollLeft)/-la-ea.x),y:Math.round((N.getY()-aa.y+g.container.scrollTop)/la-ea.y)})}}function u(N){return null==N||N==R||fa[N]?!1:(fa[N]=!0,y++,1==y&&(da(),A&&null!=k&&"function"===typeof k.sendUnconfirmedChanges&&k.sendUnconfirmedChanges()),!0)}function x(N,aa){var ea=null!=b.currentPage?b.currentPage.getId():null;if(null!=N&&null!=N.cursor&&null!=N.lastCursor)if(null!=N.lastCursor.hide||!b.isShowRemoteCursors()||null!=N.lastCursor.pageId&&N.lastCursor.pageId!=ea)N.cursor.style.display="none";else{ea=function(){var wa=-Math.max(g.container.scrollLeft,Math.min(g.container.scrollLeft+g.container.clientWidth-N.cursor.clientWidth,qa)),za=Math.max(g.container.scrollTop-22,Math.min(g.container.scrollTop+g.container.clientHeight-N.cursor.clientHeight,na));xa.style.opacity=wa!=qa||za!=na?0:1;N.cursor.style.left=wa+"px";N.cursor.style.top=za+"px";N.cursor.style.display=""};var la=g.view.translate,ra=g.view.scale,qa=(la.x+N.lastCursor.x)*ra+8,na=(la.y+N.lastCursor.y)*ra-12,xa=N.cursor.getElementsByTagName("img")[0];aa?(mxUtils.setPrefixedStyle(N.cursor.style,+var fa=this.getStrokeColor();g=document.createElementNS("http://www.w3.org/2000/svg","path");g.setAttribute("fill",B?fa:"none");g.setAttribute("pointer-events","none");g.setAttribute("stroke",fa);g.setAttribute("stroke-width",V);"1"==b.currentVertexStyle[mxConstants.STYLE_DASHED]&&(fa=b.currentVertexStyle[mxConstants.STYLE_DASH_PATTERN]||"3 3",fa=fa.split(" ").map(function(y){return parseFloat(y)*V}).join(" "),g.setAttribute("stroke-dasharray",fa));f=[];U=R(U);M(U);u="M"+U.x+" "+U.y;x.push(U);z=[];+g.setAttribute("d",B?PerfectFreehand.getSvgPathFromStroke([[U.x,U.y]],v):u);k.appendChild(g);T.consume()}}),mouseMove:mxUtils.bind(this,function(U,T){if(null!=g&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){U=T.getEvent();U=R(U);M(U);var V=O(0);if(V)if(x.push(V),B){var fa=[];for(V=0;V<x.length;V++)fa.push([x[V].x,x[V].y]);z=[];for(var y=2;y<f.length;y+=2)V=O(y),fa.push([V.x,V.y]),z.push(V);g.setAttribute("d",PerfectFreehand.getSvgPathFromStroke(fa,v))}else{u+=" L"+V.x+" "+V.y;fa="";z=[];+for(y=2;y<f.length;y+=2)V=O(y),fa+=" L"+V.x+" "+V.y,z.push(V);g.setAttribute("d",u+fa)}D&&(V=b.view.translate,b.scrollRectToVisible((new mxRectangle(U.x-V.x,U.y-V.y)).grow(20)));T.consume()}}),mouseUp:mxUtils.bind(this,function(U,T){null!=g&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(K(T.getEvent()),T.consume())})});var R=function(U){return mxUtils.convertPoint(b.container,mxEvent.getClientX(U),mxEvent.getClientY(U))},M=function(U){for(f.push(U);f.length>m;)f.shift()},O=function(U){var T=+f.length;if(1===T%2||T>=m){var V=0,fa=0,y,d=0;for(y=U;y<T;y++)d++,U=f[y],V+=U.x,fa+=U.y;return{x:V/d,y:fa/d}}return null}}}mxFreehand.prototype.NO_SMOOTHING=1;mxFreehand.prototype.MILD_SMOOTHING=4;mxFreehand.prototype.NORMAL_SMOOTHING=8;mxFreehand.prototype.VERY_SMOOTH_SMOOTHING=12;mxFreehand.prototype.SUPER_SMOOTH_SMOOTHING=16;mxFreehand.prototype.HYPER_SMOOTH_SMOOTHING=20;function P2PCollab(b,k,m){function g(N,aa){try{if(!V){var ea=k.file.getCurrentUser();if(T&&null!=ea&&null!=ea.displayName)if(A&&d&&0==y&&("cursor"==N||"selectionChange"==N||"diff"==N))"cursor"!=N&&EditorUi.debug("P2PCollab: skipped message while alone",[N]);else{var la={from:R,id:v,type:N,sessionId:k.clientId,userId:ea.id,username:ea.displayName,data:aa,protocol:DrawioFileSync.PROTOCOL,editor:EditorUi.VERSION};la={bytes:k.objectToString(la),data:"aes"};la=JSON.stringify(la);p&&"cursor"!=N&&EditorUi.debug("P2PCollab: sending to socket server",+[la]);v++;ea=!p&&("cursor"==N||"selectionChange"==N);U&&!ea&&X("message",la);if(ea)for(p2pId in O)O[p2pId].send(la)}else"cursor"!=N&&EditorUi.debug("P2PCollab: message dropped, not joined",[N],"fileJoined",T)}}catch(ra){null!=window.console&&console.error(ra,N,aa)}}function q(N){if(b.shareCursorPosition&&!f.isMouseDown){var aa=mxUtils.getOffset(f.container),ea=f.view.translate,la=f.view.scale,ra=null!=b.currentPage?b.currentPage.getId():null;g("cursor",{pageId:ra,x:Math.round((N.getX()-aa.x+f.container.scrollLeft)/+la-ea.x),y:Math.round((N.getY()-aa.y+f.container.scrollTop)/la-ea.y)})}}function u(N){return null==N||N==R||fa[N]?!1:(fa[N]=!0,y++,1==y&&(da(),A&&null!=k&&"function"===typeof k.sendUnconfirmedChanges&&k.sendUnconfirmedChanges()),!0)}function x(N,aa){var ea=null!=b.currentPage?b.currentPage.getId():null;if(null!=N&&null!=N.cursor&&null!=N.lastCursor)if(null!=N.lastCursor.hide||!b.isShowRemoteCursors()||null!=N.lastCursor.pageId&&N.lastCursor.pageId!=ea)N.cursor.style.display="none";else{ea=function(){var wa=+Math.max(f.container.scrollLeft,Math.min(f.container.scrollLeft+f.container.clientWidth-N.cursor.clientWidth,qa)),za=Math.max(f.container.scrollTop-22,Math.min(f.container.scrollTop+f.container.clientHeight-N.cursor.clientHeight,na));xa.style.opacity=wa!=qa||za!=na?0:1;N.cursor.style.left=wa+"px";N.cursor.style.top=za+"px";N.cursor.style.display=""};var la=f.view.translate,ra=f.view.scale,qa=(la.x+N.lastCursor.x)*ra+8,na=(la.y+N.lastCursor.y)*ra-12,xa=N.cursor.getElementsByTagName("img")[0];aa?(mxUtils.setPrefixedStyle(N.cursor.style,"transition","all 900ms ease-out"),mxUtils.setPrefixedStyle(xa.style,"transition","all 900ms ease-out"),window.setTimeout(ea,0)):(mxUtils.setPrefixedStyle(N.cursor.style,"transition",null),mxUtils.setPrefixedStyle(xa.style,"transition",null),ea())}}function z(N,aa){try{var ea=function(){if(null==t[qa]){var ia=C[qa];null==ia&&(ia=l%r.length,C[qa]=ia,l++);var ja=r[ia];ia=11<ia?"black":"white";t[qa]={cursor:document.createElement("div"),color:ja,selection:{}};E[aa]=qa;na=t[qa].cursor;na.style.pointerEvents="none";na.style.position="absolute";na.style.display="none";na.style.opacity="0.9";var oa=document.createElement("img");mxUtils.setPrefixedStyle(oa.style,"transform","rotate(-45deg)translateX(-14px)");oa.setAttribute("src",Graph.createSvgImage(8,12,'<path d="M 4 0 L 8 12 L 4 10 L 0 12 Z" stroke="'+ja+'" fill="'+ja+'"/>').src);oa.style.width="10px";na.appendChild(oa);oa=document.createElement("div");oa.style.backgroundColor=ja;oa.style.color=ia;oa.style.fontSize="9pt";oa.style.padding="3px 7px";oa.style.marginTop="8px";oa.style.borderRadius="10px";oa.style.maxWidth="100px";oa.style.overflow="hidden";oa.style.textOverflow="ellipsis";oa.style.whiteSpace="nowrap";mxUtils.write(oa,ra);na.appendChild(oa);b.diagramContainer.appendChild(na)}else na=t[qa].cursor;xa=t[qa].selection};if(!V){N=JSON.parse(N);null!=N.bytes&&(N=k.stringToObject(N.bytes));p&&"cursor"!=N.type&&EditorUi.debug("P2PCollab: msg received",[N]);var la=!1;if(null!=aa){la=u(aa);if(N.from==R||B[N.from]>=N.id){EditorUi.debug("P2PCollab: Dropped Message",N,R,B[N.from]);return}B[N.from]=N.id}var ra=N.username?N.username:"Anonymous",qa=N.sessionId,na,xa;null!=t[qa]&&(clearTimeout(t[qa].inactiveTO),t[qa].inactiveTO=setTimeout(function(){D(null,qa)},12E4));var wa=N.data;switch(N.type){case "join":la&&H();break;case "cursor":ea();t[qa].lastCursor=wa;x(t[qa],!0);break;case "diff":try{N=null!=wa.patch?k.stringToObject(decodeURIComponent(wa.patch)):wa.diff,k.receiveRemoteChanges(N.d)}catch(ia){EditorUi.debug("P2PCollab: Diff msg error",ia)}break;case "selectionChange":if("0"!=-urlParams["remote-selection"]){var za=null!=b.currentPage?b.currentPage.getId():null;if(null==za||null!=wa.pageId&&wa.pageId==za){ea();for(ea=0;ea<wa.removed.length;ea++){var Ba=wa.removed[ea];if(null!=Ba){var va=xa[Ba];delete xa[Ba];null!=va&&va.destroy()}}for(ea=0;ea<wa.added.length;ea++)if(Ba=wa.added[ea],null!=Ba){var pa=g.model.getCell(Ba);null!=pa&&(null!=xa[Ba]&&xa[Ba].destroy(),xa[Ba]=g.highlightCell(pa,t[qa].color,6E4,70,3))}}}break;case "notify":N=null!=wa.data?k.stringToObject(decodeURIComponent(wa.data)):+urlParams["remote-selection"]){var za=null!=b.currentPage?b.currentPage.getId():null;if(null==za||null!=wa.pageId&&wa.pageId==za){ea();for(ea=0;ea<wa.removed.length;ea++){var Ba=wa.removed[ea];if(null!=Ba){var va=xa[Ba];delete xa[Ba];null!=va&&va.destroy()}}for(ea=0;ea<wa.added.length;ea++)if(Ba=wa.added[ea],null!=Ba){var pa=f.model.getCell(Ba);null!=pa&&(null!=xa[Ba]&&xa[Ba].destroy(),xa[Ba]=f.highlightCell(pa,t[qa].color,6E4,70,3))}}}break;case "notify":N=null!=wa.data?k.stringToObject(decodeURIComponent(wa.data)):wa.msg,k.handleMessageData(N.d,N.c)}k.file.fireEvent(new mxEventObject("realtimeMessage","message",N))}}catch(ia){null!=window.console&&console.warn(ia,N,aa)}}function F(N,aa){if(!p&&SimplePeer.WEBRTC_SUPPORT){var ea=new SimplePeer({initiator:aa,config:{iceServers:[{urls:"stun:54.89.235.160:3478"}]}});ea.on("signal",function(la){X("sendSignal",{to:N,from:R,signal:la})});ea.on("error",function(la){delete M[N];EditorUi.debug("P2PCollab: p2p socket error",la);!V&&aa&&ea.destroyed&&K[N]&&(EditorUi.debug("P2PCollab: p2p socket reconnecting",N),F(N,!0))});ea.on("connect",function(){delete M[N];null==O[N]||O[N].destroyed?(O[N]=ea,K[N]=!0,EditorUi.debug("P2PCollab: p2p socket connected",N)):(ea.noP2PMapDel=!0,ea.destroy(),EditorUi.debug("P2PCollab: p2p socket duplicate",N))});ea.on("close",function(){ea.noP2PMapDel||(EditorUi.debug("P2PCollab: p2p socket closed",N),c(E[N]),delete O[N])});ea.on("data",z);return M[N]=ea}}function J(N){R=N.cId;T=!0;P=0;ba=!1;L=null;fa=Object.create(null);y=0;d=null!=N.list;if(null!=N.list)for(var aa=0;aa<-N.list.length;aa++)u(N.list[aa]),F(N.list[aa],!0);H();window.setTimeout(function(){V||H()},3E3)}function H(){"0"!=urlParams["join-announce"]&&f("join",{})}function D(N,aa){c(aa||E[N]);null!=N&&(delete E[N],K[N]=!1,null!=N&&fa[N]&&(delete fa[N],y--))}function c(N){var aa=t[N];if(null!=aa){var ea=aa.selection,la;for(la in ea)null!=ea[la]&&ea[la].destroy();null!=aa.cursor&&null!=aa.cursor.parentNode&&aa.cursor.parentNode.removeChild(aa.cursor);clearTimeout(aa.inactiveTO);delete t[N]}}var g=b.editor.graph,+N.list.length;aa++)u(N.list[aa]),F(N.list[aa],!0);H();window.setTimeout(function(){V||H()},3E3)}function H(){"0"!=urlParams["join-announce"]&&g("join",{})}function D(N,aa){c(aa||E[N]);null!=N&&(delete E[N],K[N]=!1,null!=N&&fa[N]&&(delete fa[N],y--))}function c(N){var aa=t[N];if(null!=aa){var ea=aa.selection,la;for(la in ea)null!=ea[la]&&ea[la].destroy();null!=aa.cursor&&null!=aa.cursor.parentNode&&aa.cursor.parentNode.removeChild(aa.cursor);clearTimeout(aa.inactiveTO);delete t[N]}}var f=b.editor.graph,l=0,n=null,r="#e6194b #3cb44b #4363d8 #f58231 #911eb4 #f032e6 #469990 #9A6324 #800000 #808000 #000075 #a9a9a9 #ffe119 #42d4f4 #bfef45 #fabed4 #dcbeff #fffac8 #aaffc3 #ffd8b1".split(" "),t=Object.create(null),v=1,B=Object.create(null),E=Object.create(null),K=Object.create(null),C=Object.create(null),R,M=Object.create(null),O=Object.create(null),U=!0,T=!1,V=!1,fa=Object.create(null),y=0,d=!1,p="0"!=urlParams["no-p2p"],A="0"!=urlParams["alone-gate"],G=!1,I=0,L=null,P=0,Q=null,ba=!1,W=mxUtils.bind(this,function(){if(!V&&null==Q)if(10<=P)ba||(ba=!0,L="rejoinStopped",EditorUi.debug("P2PCollab: rejoin stopped after",P,"attempts"),k.file.fireEvent(new mxEventObject("realtimeStateChanged")));else{P++;var N=2E3*P;EditorUi.debug("P2PCollab: scheduling rejoin attempt",P,"of",10,"delay",N);Q=window.setTimeout(mxUtils.bind(this,function(){Q=null;this.joinFile(!0)}),N)}}),Y=mxUtils.bind(this,function(){V||!ba||document.hidden||(EditorUi.debug("P2PCollab: rejoin restarted on activation"),ba=!1,P=0,L=null,this.joinFile(!0))});-document.addEventListener("visibilitychange",Y);window.addEventListener("focus",Y);var X=mxUtils.bind(this,function(N,aa){if(!V)try{null!=n?(n.send(JSON.stringify({action:N,msg:aa})),p||EditorUi.debug("P2PCollab: sending to socket server",[N],[aa])):this.joinFile(!0)}catch(ea){L=ea,k.file.fireEvent(new mxEventObject("realtimeStateChanged")),EditorUi.debug("P2PCollab:","sendReply error",arguments,ea)}});this.sendMessage=f;this.sendDiff=function(N){this.sendMessage("diff",{diff:N})};this.sendNotification=+document.addEventListener("visibilitychange",Y);window.addEventListener("focus",Y);var X=mxUtils.bind(this,function(N,aa){if(!V)try{null!=n?(n.send(JSON.stringify({action:N,msg:aa})),p||EditorUi.debug("P2PCollab: sending to socket server",[N],[aa])):this.joinFile(!0)}catch(ea){L=ea,k.file.fireEvent(new mxEventObject("realtimeStateChanged")),EditorUi.debug("P2PCollab:","sendReply error",arguments,ea)}});this.sendMessage=g;this.sendDiff=function(N){this.sendMessage("diff",{diff:N})};this.sendNotification=function(N){this.sendMessage("notify",{msg:N})};this.getState=function(){return null!=n?n.readyState:3};this.getLastError=function(){return L};this.isFileJoined=function(){return T};this.mouseListeners={startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(N,aa){},mouseMove:function(N,aa){var ea,la=-1;return function(){clearTimeout(ea);var ra=this,qa=arguments,na=function(){ea=null;la=Date.now();N.apply(ra,qa)};Date.now()-la>aa?na():ea=setTimeout(na,aa)}}(function(N,aa){q(aa)},300),mouseUp:function(N,-aa){q(aa)}};g.addMouseListener(this.mouseListeners);this.shareCursorPositionListener=function(){b.isShareCursorPosition()||f("cursor",{hide:!0})};b.addListener("shareCursorPositionChanged",this.shareCursorPositionListener);var ca=mxGraphHandler.prototype.maxCells,S=null,Z={};this.selectionChangeListener=function(N,aa){var ea=function(la){return null!=la?la.id:null};null!=S&&window.clearTimeout(S);S=window.setTimeout(function(){for(var la=g.getSelectionCount()>ca?[]:g.getSelectionCells().map(ea),ra=-null!=b.currentPage?b.currentPage.getId():null,qa={},na=[],xa=[],wa=0;wa<la.length;wa++){var za=la[wa];null!=za&&(qa[za]=!0,null==Z[za]&&xa.push(za))}for(za in Z)qa[za]||na.push(za);Z=qa;f("selectionChange",{pageId:ra,removed:na,added:xa})},300)};g.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionChangeListener);var da=mxUtils.bind(this,function(){A&&!g.isSelectionEmpty()&&(Z={},this.selectionChangeListener())});this.cursorHandler=mxUtils.bind(this,function(){for(var N in t)x(t[N])});-mxEvent.addListener(g.container,"scroll",this.cursorHandler);g.getView().addListener(mxEvent.SCALE,this.cursorHandler);g.getView().addListener(mxEvent.TRANSLATE,this.cursorHandler);g.getView().addListener(mxEvent.SCALE_AND_TRANSLATE,this.cursorHandler);b.addListener("showRemoteCursorsChanged",this.cursorHandler);b.editor.addListener("pageSelected",this.cursorHandler);this.joinFile=function(N){if(!V)try{d=!1;G&&(EditorUi.debug("P2PCollab: joinInProgress on",G),L="busy");G=++I;try{null!=n&&1==n.readyState&&+aa){q(aa)}};f.addMouseListener(this.mouseListeners);this.shareCursorPositionListener=function(){b.isShareCursorPosition()||g("cursor",{hide:!0})};b.addListener("shareCursorPositionChanged",this.shareCursorPositionListener);var ca=mxGraphHandler.prototype.maxCells,S=null,Z={};this.selectionChangeListener=function(N,aa){var ea=function(la){return null!=la?la.id:null};null!=S&&window.clearTimeout(S);S=window.setTimeout(function(){for(var la=f.getSelectionCount()>ca?[]:f.getSelectionCells().map(ea),ra=+null!=b.currentPage?b.currentPage.getId():null,qa={},na=[],xa=[],wa=0;wa<la.length;wa++){var za=la[wa];null!=za&&(qa[za]=!0,null==Z[za]&&xa.push(za))}for(za in Z)qa[za]||na.push(za);Z=qa;g("selectionChange",{pageId:ra,removed:na,added:xa})},300)};f.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionChangeListener);var da=mxUtils.bind(this,function(){A&&!f.isSelectionEmpty()&&(Z={},this.selectionChangeListener())});this.cursorHandler=mxUtils.bind(this,function(){for(var N in t)x(t[N])});+mxEvent.addListener(f.container,"scroll",this.cursorHandler);f.getView().addListener(mxEvent.SCALE,this.cursorHandler);f.getView().addListener(mxEvent.TRANSLATE,this.cursorHandler);f.getView().addListener(mxEvent.SCALE_AND_TRANSLATE,this.cursorHandler);b.addListener("showRemoteCursorsChanged",this.cursorHandler);b.editor.addListener("pageSelected",this.cursorHandler);this.joinFile=function(N){if(!V)try{d=!1;G&&(EditorUi.debug("P2PCollab: joinInProgress on",G),L="busy");G=++I;try{null!=n&&1==n.readyState&&(EditorUi.debug("P2PCollab: force closing socket on",n.joinId),n.close(1E3),n=null)}catch(la){EditorUi.debug("P2PCollab: closing socket error",la)}var aa=P2PCollab.createSocket(window.RT_WEBSOCKET_URL+"?id="+m);aa.joinId=G;null==n&&(n=aa);aa.addEventListener("open",function(la){n=aa;G=!1;k.file.fireEvent(new mxEventObject("realtimeStateChanged"));EditorUi.debug("P2PCollab: open socket",n.joinId);Editor.enableRealtimeCache||window.setTimeout(function(){k.sendJoinMessage()},0);N&&k.scheduleCleanup()});aa.addEventListener("message",function(la){try{p||EditorUi.debug("P2PCollab: msg received",[la]);var ra=JSON.parse(la.data);p&&"message"!=ra.action&&EditorUi.debug("P2PCollab: msg received",[la]);switch(ra.action){case "message":z(ra.msg,ra.from);break;case "clientsList":J(ra.msg);break;case "signal":var qa=ra.msg;u(qa.from);if(!p){if(M[qa.from])var na=M[qa.from];else na=F(qa.from,!1),U=!0;na.signal(qa.signal)}break;case "newClient":var xa=ra.msg;U=!0;u(xa);break;case "clientLeft":D(ra.msg);break;case "sendSignalFailed":var wa=ra.msg;EditorUi.debug("P2PCollab: signal failed (socket not found on server)",wa);delete M[wa.to];K[wa.to]=!1}}catch(za){null!=window.console&&console.warn(za,la)}});var ea=!1;aa.addEventListener("close",mxUtils.bind(this,function(la){EditorUi.debug("P2PCollab: WebSocket closed",aa.joinId,"reconnecting",la.code,la.reason);EditorUi.debug("P2PCollab: closing socket on",aa.joinId);V||1E3==la.code||I!=aa.joinId||(G==I&&(EditorUi.debug("P2PCollab: joinInProgress in close on",aa.joinId),G=!1),ea||(EditorUi.debug("P2PCollab: calling rejoin on",aa.joinId),ea=!0,W()));k.file.fireEvent(new mxEventObject("realtimeStateChanged"))}));aa.addEventListener("error",mxUtils.bind(this,function(la){EditorUi.debug("P2PCollab: WebSocket error, reconnecting",la);EditorUi.debug("P2PCollab: error socket on",aa.joinId);V||I!=aa.joinId||(G==I&&(EditorUi.debug("P2PCollab: joinInProgress in error on",aa.joinId),G=!1),ea||(EditorUi.debug("P2PCollab: calling rejoin on",aa.joinId),ea=!0,W()));-k.file.fireEvent(new mxEventObject("realtimeStateChanged"))}));k.file.fireEvent(new mxEventObject("realtimeStateChanged"))}catch(la){L=la,k.file.fireEvent(new mxEventObject("realtimeStateChanged"))}};this.destroy=function(){if(!V){EditorUi.debug("P2PCollab: destroyed");V=!0;window.clearTimeout(Q);Q=null;document.removeEventListener("visibilitychange",Y);window.removeEventListener("focus",Y);for(sessionId in t)c(sessionId);null!=this.mouseListeners&&g.removeMouseListener(this.mouseListeners);null!=-this.selectionChangeListener&&g.getSelectionModel().removeListener(this.selectionChangeListener);null!=this.shareCursorPositionListener&&b.removeListener(this.shareCursorPositionListener);null!=this.cursorHandler&&(mxEvent.removeListener(g.container,"scroll",this.cursorHandler),g.view.removeListener(this.cursorHandler),b.editor.removeListener(this.cursorHandler),b.removeListener(this.cursorHandler));null!=n&&1<=n.readyState&&(n.close(1E3),n=null);for(var N in O)null!=O[N]&&O[N].destroy();k.file.fireEvent(new mxEventObject("realtimeStateChanged"))}}}+k.file.fireEvent(new mxEventObject("realtimeStateChanged"))}));k.file.fireEvent(new mxEventObject("realtimeStateChanged"))}catch(la){L=la,k.file.fireEvent(new mxEventObject("realtimeStateChanged"))}};this.destroy=function(){if(!V){EditorUi.debug("P2PCollab: destroyed");V=!0;window.clearTimeout(Q);Q=null;document.removeEventListener("visibilitychange",Y);window.removeEventListener("focus",Y);for(sessionId in t)c(sessionId);null!=this.mouseListeners&&f.removeMouseListener(this.mouseListeners);null!=+this.selectionChangeListener&&f.getSelectionModel().removeListener(this.selectionChangeListener);null!=this.shareCursorPositionListener&&b.removeListener(this.shareCursorPositionListener);null!=this.cursorHandler&&(mxEvent.removeListener(f.container,"scroll",this.cursorHandler),f.view.removeListener(this.cursorHandler),b.editor.removeListener(this.cursorHandler),b.removeListener(this.cursorHandler));null!=n&&1<=n.readyState&&(n.close(1E3),n=null);for(var N in O)null!=O[N]&&O[N].destroy();k.file.fireEvent(new mxEventObject("realtimeStateChanged"))}}}P2PCollab.createSocket=function(b){return new WebSocket(b)};Editor.themes.unshift("simple");Editor.themes.push("sketch");Editor.themes.push("atlas");(function(){EditorUi.prototype.switchCssForTheme=function(q){var u=mxUtils.isAncestorNode(document.body,this.container)?this.container:this.editor.graph.container;null!=u&&("kennedy"==q?u.classList.add("geClassic"):u.classList.remove("geClassic"),"sketch"==q&&u.classList.add("geSketch"),"simple"==q||"sketch"==q?u.classList.add("geSimple"):u.classList.remove("geSimple"))};var b=EditorUi.prototype.createMainMenuForTheme;EditorUi.prototype.createMainMenuForTheme=function(q){if("simple"==q||"sketch"==q){if(null==this.sketchMainMenuElt){this.sketchMainMenuElt=document.createElement("div");var u=this.createMenu("simple"==q?"view":"diagram","simple"==q?Editor.thinViewImage:Editor.menuImage);this.sketchMainMenuElt.appendChild(u);var x=this.createMenuItem("delete",Editor.trashImage),z=this.createMenuItem("undo",Editor.undoImage),F=this.createMenuItem("redo",Editor.redoImage);this.dependsOnLanguage(mxUtils.bind(this,function(){u.setAttribute("title",mxResources.get("simple"==q?"view":"diagram"));x.setAttribute("title",mxResources.get("delete"));z.setAttribute("title",mxResources.get("undo"));F.setAttribute("title",mxResources.get("redo"))}));"simple"==q?this.sketchMainMenuElt.className="geToolbarContainer geSimpleMainMenu":(this.container.appendChild(this.sketchMainMenuElt),this.sketchMainMenuElt.className="geToolbarContainer geSketchMainMenu",this.sketchMainMenuElt.appendChild(x),this.sketchMainMenuElt.appendChild(z),this.sketchMainMenuElt.appendChild(F));this.container.appendChild(this.sketchMainMenuElt)}}else b.apply(this,arguments)};var k=EditorUi.prototype.createFooterMenuForTheme;EditorUi.prototype.createFooterMenuForTheme=function(q){if("simple"==q||"sketch"==q){if(null==this.sketchFooterMenuElt){var u=this.createPageMenuTab(!1,"simple"!=q),x=this.createMenu("pages",Editor.thinNoteImage),z=this.createMenuItem("undo",Editor.thinUndoImage),F=this.createMenuItem("redo",Editor.thinRedoImage),J=this.createMenuItem("delete",Editor.thinDeleteImage),H=this.createMenuItem("zoomOut",Editor.zoomOutImage),D=this.createMenuItem("zoomIn",-Editor.zoomInImage),c=this.createMenuItem("fullscreen",Editor.fullscreenImage),g=this.createMenuItem("exit",Editor.closeImage);this.dependsOnLanguage(mxUtils.bind(this,function(){x.setAttribute("title",mxResources.get("pages"));z.setAttribute("title",mxResources.get("undo"));F.setAttribute("title",mxResources.get("redo"));J.setAttribute("title",mxResources.get("delete"));H.setAttribute("title",mxResources.get("zoomOut"));D.setAttribute("title",mxResources.get("zoomIn"));c.setAttribute("title",mxResources.get("fullscreen"));-g.setAttribute("title",mxResources.get("exit"))}));this.sketchFooterMenuElt=document.createElement("div");this.sketchFooterMenuElt.className="geToolbarContainer geFooterToolbar";var l=this.sketchFooterMenuElt;if("simple"!=q){u.className="geButton gePageMenu";u.style.backgroundImage="url("+Editor.arrowDownImage+")";l.appendChild(u);var n=document.createElement("span");u.innerText="";u.appendChild(n);var r=mxUtils.bind(this,function(){n.innerText="";if(null!=this.currentPage){mxUtils.write(n,this.currentPage.getName());+Editor.zoomInImage),c=this.createMenuItem("fullscreen",Editor.fullscreenImage),f=this.createMenuItem("exit",Editor.closeImage);this.dependsOnLanguage(mxUtils.bind(this,function(){x.setAttribute("title",mxResources.get("pages"));z.setAttribute("title",mxResources.get("undo"));F.setAttribute("title",mxResources.get("redo"));J.setAttribute("title",mxResources.get("delete"));H.setAttribute("title",mxResources.get("zoomOut"));D.setAttribute("title",mxResources.get("zoomIn"));c.setAttribute("title",mxResources.get("fullscreen"));+f.setAttribute("title",mxResources.get("exit"))}));this.sketchFooterMenuElt=document.createElement("div");this.sketchFooterMenuElt.className="geToolbarContainer geFooterToolbar";var l=this.sketchFooterMenuElt;if("simple"!=q){u.className="geButton gePageMenu";u.style.backgroundImage="url("+Editor.arrowDownImage+")";l.appendChild(u);var n=document.createElement("span");u.innerText="";u.appendChild(n);var r=mxUtils.bind(this,function(){n.innerText="";if(null!=this.currentPage){mxUtils.write(n,this.currentPage.getName());var E=null!=this.pages?this.pages.length:1,K=this.getPageIndex(this.currentPage);K=null!=K?K+1:1;var C=this.currentPage.getId();u.setAttribute("title",this.currentPage.getName()+" ("+K+"/"+E+")"+(null!=C?" ["+C+"]":""))}});this.editor.addListener("pagesPatched",r);this.editor.addListener("pageSelected",r);this.editor.addListener("pageRenamed",r);this.editor.addListener("fileLoaded",r);r();var t=mxUtils.bind(this,function(){u.style.display=this.isPageMenuVisible()?"":"none"});this.addListener("editInlineStart",mxUtils.bind(this,function(){t();r()}));this.addListener("fileDescriptorChanged",t);this.addListener("pagesVisibleChanged",t);this.editor.addListener("pagesPatched",t);t();l.appendChild(H)}var v=this.createZoomInput("simple"!=q);l.appendChild(v);if("simple"==q){z.style.marginLeft="auto";l.appendChild(x);l.appendChild(z);l.appendChild(F);l.appendChild(J);var B=mxUtils.bind(this,function(){var E=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,K="1"==urlParams.embed&&null!=this.buttonContainer?this.buttonContainer.offsetWidth||300:0;x.style.display=E<480+K?"none":"";v.style.display=E<750+K?"none":"";J.style.display=E<290+K?"none":"";z.style.display=E<360+K?"none":"";F.style.display=E<360+K?"none":""});mxEvent.addListener(window,"resize",B);B()}"simple"!=q&&l.appendChild(D);"1"==urlParams.embedInline&&(l.appendChild(c),B=mxUtils.bind(this,function(){c.style.backgroundImage="url("+(Editor.inlineFullscreen?Editor.fullscreenExitImage:Editor.fullscreenImage)+")";this.inlineSizeChanged();-this.editor.graph.refresh();this.fitWindows()}),this.addListener("editInlineStart",mxUtils.bind(this,function(){c.style.backgroundImage="url("+(Editor.inlineFullscreen?Editor.fullscreenExitImage:Editor.fullscreenImage)+")"})),this.addListener("inlineFullscreenChanged",B),l.appendChild(g));"simple"==q?(this.sketchFooterMenuElt.style.cssText="position:relative;gap:6px;flex-shrink:0;flex-grow:0.5;",this.sketchMainMenuElt.appendChild(this.sketchFooterMenuElt)):this.container.appendChild(this.sketchFooterMenuElt)}}else k.apply(this,+this.editor.graph.refresh();this.fitWindows()}),this.addListener("editInlineStart",mxUtils.bind(this,function(){c.style.backgroundImage="url("+(Editor.inlineFullscreen?Editor.fullscreenExitImage:Editor.fullscreenImage)+")"})),this.addListener("inlineFullscreenChanged",B),l.appendChild(f));"simple"==q?(this.sketchFooterMenuElt.style.cssText="position:relative;gap:6px;flex-shrink:0;flex-grow:0.5;",this.sketchMainMenuElt.appendChild(this.sketchFooterMenuElt)):this.container.appendChild(this.sketchFooterMenuElt)}}else k.apply(this,arguments)};var m=EditorUi.prototype.createPickerMenuForTheme;EditorUi.prototype.createPickerMenuForTheme=function(q){if("simple"==q||"sketch"==q){if(null==this.sketchPickerMenuElt){var u=this.editor.graph;this.sketchPickerMenuElt=document.createElement("div");this.sketchPickerMenuElt.className="geToolbarContainer";"sketch"==q&&this.sketchPickerMenuElt.classList.add("geVerticalToolbar");var x=this.sketchPickerMenuElt,z=document.createElement("a");z.className="geButton";z.style.height="18px";z.style.opacity="0.4";z.style.backgroundImage="url("+Editor.expandMoreImage+")";z.setAttribute("title",mxResources.get("collapseExpand"));var F=this.createMenuItem("insertFreehand","simple"==q?Editor.thinGestureImage:Editor.freehandImage,!0),J=this.createMenu("insert","simple"==q?Editor.thinAddCircleImage:Editor.addBoxImage),H=J.cloneNode(!0);H.style.backgroundImage="url("+("simple"==q?Editor.thinShapesImage:Editor.shapesImage)+")";H.setAttribute("title",mxResources.get("shapes"));this.addShapePicker(H,"simple"==q);var D=!1,c=mxUtils.bind(this,function(n){if(n||null!=document.body&&document.body.contains(x)){n=function(B,E,K,C,R,M){null!=E&&B.setAttribute("title",E);x.appendChild(B);"simple"!=q&&null!=C&&null!=B&&null==B.querySelector(".geShortcutKey")&&(E=document.createElement("div"),E.className="geShortcutKey",mxUtils.write(E,C),B.appendChild(E));u.isEnabled()||"1"==urlParams.embedInline||B.classList.add("mxDisabled");return B};u.isEnabled()||"1"==urlParams.embedInline?(F.classList.remove("mxDisabled"),@@ -16045,9 +16134,9 @@ u.vertexFontSize),60,30,"Text",mxResources.get("text")+" (A)",!0,!1,null,"simpler>=680+t&&n(F,mxResources.get("freehand")+" (X)",null,"X")):(n(this.sidebar.createVertexTemplate(Editor.defaultNoteStyle,160,160,"",mxResources.get("note")+" (S)",!0,!1,null,!0,null,28,28),mxResources.get("note")+" (S)",null,"S"),n(v,mxResources.get("rectangle")+" (D)",null,"D"),n(this.sidebar.createVertexTemplate("ellipse;whiteSpace=wrap;html=1;shapeInside=1;",160,100,"",mxResources.get("ellipse")+" (F)",!0,!1,null,!0,null,28,28),mxResources.get("ellipse")+" (F)",null,"F"),t=new mxCell("",new mxGeometry(0,0,this.editor.graph.defaultEdgeLength+20,0),"edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;"),t.geometry.setTerminalPoint(new mxPoint(0,0),!0),t.geometry.setTerminalPoint(new mxPoint(t.geometry.width,0),!1),t.geometry.points=[],t.geometry.relative=!0,t.edge=!0,n(this.sidebar.createEdgeTemplateFromCells([t],t.geometry.width,t.geometry.height,mxResources.get("line")+" (C)",!0,null,"simple"!=q,!1,null,28,28),mxResources.get("line")+" (C)",null,"C"),t=t.clone(),t.style="edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;shape=flexArrow;rounded=1;startSize=8;endSize=8;",t.geometry.width=this.editor.graph.defaultEdgeLength+20,t.geometry.setTerminalPoint(new mxPoint(0,20),!0),t.geometry.setTerminalPoint(new mxPoint(t.geometry.width,20),!1),n(F,mxResources.get("freehand")+" (X)",null,"X"),this.sketchPickerMenuElt.appendChild(H));("simple"!=q||320<r)&&this.sketchPickerMenuElt.appendChild(J)}"simple"!=q&&"1"!=urlParams.embedInline&&x.appendChild(z);this.sidebar.graph.cellRenderer.minSvgStrokeWidth=this.sidebar.minThumbStrokeWidth}});mxEvent.addListener(z,"click",mxUtils.bind(this,-function(){D?(x.classList.remove("geCollapsedToolbar"),z.style.backgroundImage="url("+Editor.expandMoreImage+")",D=!1,c()):(x.innerText="",x.appendChild(z),x.classList.add("geCollapsedToolbar"),z.style.backgroundImage="url("+Editor.expandLessImage+")",D=!0)}));var g=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,l=null;mxEvent.addListener(window,"resize",function(){var n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;n!=g&&(g=+function(){D?(x.classList.remove("geCollapsedToolbar"),z.style.backgroundImage="url("+Editor.expandMoreImage+")",D=!1,c()):(x.innerText="",x.appendChild(z),x.classList.add("geCollapsedToolbar"),z.style.backgroundImage="url("+Editor.expandLessImage+")",D=!0)}));var f=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,l=null;mxEvent.addListener(window,"resize",function(){var n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;n!=f&&(f=n,null!=l&&window.clearTimeout(l),l=window.setTimeout(function(){l=null;c()},200))});this.editor.addListener("fileLoaded",c);this.addListener("sketchModeChanged",c);this.addListener("currentThemeChanged",c);this.addListener("languageChanged",c);this.addListener("lockedChanged",c);c(!0);"simple"==q?(this.sketchPickerMenuElt.style.cssText="position:relative;white-space:nowrap;user-select:none;display:flex;align-items:center;justify-content:flex-end;flex-grow:1;gap:6px;flex-shrink:0;",this.sketchMainMenuElt.appendChild(this.sketchPickerMenuElt)):-this.container.appendChild(this.sketchPickerMenuElt);mxClient.IS_POINTER&&(this.sketchPickerMenuElt.style.touchAction="none")}}else m.apply(this,arguments)};var f=EditorUi.prototype.createMenubarForTheme;EditorUi.prototype.createMenubarForTheme=function(q){if("simple"==q||"sketch"==q){if(null==this.sketchMenubarElt){this.sketchMenubarElt=document.createElement("div");this.sketchMenubarElt.className="geToolbarContainer";if("simple"==q){if(this.sketchMenubarElt.style.cssText="position:relative;"+("1"!=+this.container.appendChild(this.sketchPickerMenuElt);mxClient.IS_POINTER&&(this.sketchPickerMenuElt.style.touchAction="none")}}else m.apply(this,arguments)};var g=EditorUi.prototype.createMenubarForTheme;EditorUi.prototype.createMenubarForTheme=function(q){if("simple"==q||"sketch"==q){if(null==this.sketchMenubarElt){this.sketchMenubarElt=document.createElement("div");this.sketchMenubarElt.className="geToolbarContainer";if("simple"==q){if(this.sketchMenubarElt.style.cssText="position:relative;"+("1"!=urlParams.embed?"flex-grow:0.5;overflow:visible;":"")+"flex-shrink:0;display:flex;white-space:nowrap;user-select:none;justify-content:flex-end;align-items:center;flex-wrap:nowrap;gap:6px;",null==this.commentElt&&(this.commentElt=this.createMenuItem("comments",Editor.thinCommentImage,!0),this.commentElt.style.backgroundSize="24px",this.addCommentsBadge(this.commentElt),this.installCommentDragSource(this.commentElt)),null==this.shareElt&&"1"!=urlParams.embed&&"draw.io"==this.getServiceName())if(this.shareElt=this.createMenu("share",Editor.thinUserAddImage),this.shareElt.style.backgroundSize="24px",this.shareElt.style.flexShrink="0",this.isStandaloneApp())this.shareElt.style.backgroundImage="url("+Editor.thinShareImage+")";else{var u=mxUtils.bind(this,function(){var x=mxResources.get("share"),z=Editor.thinUserAddImage,F=this.getNetworkStatus();null!=F&&(x=x+" ("+F+")",z=Editor.thinUserFlashImage);this.shareElt.style.backgroundImage="url("+z+")";this.shareElt.setAttribute("title",x)});this.addListener("realtimeStateChanged",u);this.editor.addListener("statusChanged",u);mxEvent.addListener(window,"offline",u);mxEvent.addListener(window,"online",u);u()}}else this.sketchMenubarElt.style.cssText="position:absolute;right:12px;top:10px;height:44px;border-radius:4px;overflow:hidden;user-select:none;max-width:calc(100% - 170px);box-sizing:border-box;justify-content:flex-end;z-index:1;padding:7px 12px;display:flex;white-space:nowrap;user-select:none;justify-content:flex-end;align-items:center;flex-wrap:nowrap;gap:6px;",this.container.appendChild(this.sketchMenubarElt);@@ -16057,4 +16146,4 @@ this.commentElt&&this.commentElt.setAttribute("title",mxResources.get("comments"null!=this.shareElt&&this.sketchMenubarElt.appendChild(this.shareElt),null==this.mainMenuElt&&(this.mainMenuElt=this.createMenu("diagram",Editor.thinMenuImage)),this.sketchMenubarElt.appendChild(this.mainMenuElt),null==this.formatElt&&(this.formatElt=this.createMenuItem("format",Editor.thinFormatImage,!0),this.formatElt.style.marginLeft="1"!=urlParams.embed?"auto":"0",u=mxUtils.bind(this,function(){0<this.formatWidth?this.formatElt.classList.add("geActiveItem"):this.formatElt.classList.remove("geActiveItem")}),this.addListener("formatWidthChanged",u),u()),this.sketchMenubarElt.appendChild(this.formatElt));null!=this.statusContainer&&(this.statusContainer.style.flexGrow="1",this.statusContainer.style.flexShrink="1",this.statusContainer.style.marginTop="0px","simple"!=q?this.sketchMenubarElt.appendChild(this.statusContainer):(this.statusContainer.style.justifyContent="center",this.statusContainer.style.minWidth="0",this.statusContainer.style.overflow="hidden","1"!=urlParams.embed&&(this.statusContainer.style.width="22%")));"simple"==q?(null==this.overflowMenuElt&&(this.overflowMenuElt=this.createMenu("dynamicAppearance",Editor.thinDoubleArrowRightImage),this.overflowMenuElt.style.backgroundSize="24px",this.overflowMenuElt.style.display="inline-block",this.overflowMenuElt.style.flexShrink="0",this.overflowMenuElt.style.display="none",this.overflowMenuElt.removeAttribute("title")),this.sketchMenubarElt.appendChild(this.overflowMenuElt),this.sketchMainMenuElt.appendChild(this.statusContainer),this.sketchMainMenuElt.appendChild(this.sketchMenubarElt)):-null!=this.buttonContainer&&this.sketchMenubarElt.appendChild(this.buttonContainer)}else f.apply(this,arguments)}})();+null!=this.buttonContainer&&this.sketchMenubarElt.appendChild(this.buttonContainer)}else g.apply(this,arguments)}})();diff --git a/src/main/webapp/js/diagramly/Devel.js b/src/main/webapp/js/diagramly/Devel.jsindex 3808ecd08..2aeaa1b0c 100644--- a/src/main/webapp/js/diagramly/Devel.js+++ b/src/main/webapp/js/diagramly/Devel.js@@ -130,6 +130,7 @@ mxscript(drawDevUrl + 'js/diagramly/sidebar/Sidebar-ArchiMate3.js');mxscript(drawDevUrl + 'js/diagramly/sidebar/Sidebar-ArchiMate4.js');mxscript(drawDevUrl + 'js/diagramly/sidebar/Sidebar-Arrows2.js');mxscript(drawDevUrl + 'js/diagramly/sidebar/Sidebar-Atlassian.js');+mxscript(drawDevUrl + 'js/diagramly/sidebar/Sidebar-Atlassian2.js');mxscript(drawDevUrl + 'js/diagramly/sidebar/Sidebar-AWS.js');mxscript(drawDevUrl + 'js/diagramly/sidebar/Sidebar-AWS3.js');mxscript(drawDevUrl + 'js/diagramly/sidebar/Sidebar-AWS3D.js');diff --git a/src/main/webapp/js/diagramly/Editor.js b/src/main/webapp/js/diagramly/Editor.jsindex 5ab8ea587..5971c3036 100644--- a/src/main/webapp/js/diagramly/Editor.js+++ b/src/main/webapp/js/diagramly/Editor.js@@ -2831,6 +2831,7 @@if (config.defaultFonts != null){Menus.prototype.defaultFonts = config.defaultFonts+ Editor.addAllowedFontUrls(config.defaultFonts);}if (config.presetColors != null)@@ -3159,6 +3160,7 @@{Menus.prototype.defaultFonts = config.customFonts.concat(Menus.prototype.defaultFonts);+ Editor.addAllowedFontUrls(config.customFonts);}if (config.customPresetColors != null)@@ -4041,6 +4043,35 @@}};+ /**+ * Allows the given font URL to point at the local filesystem. Only for+ * URLs that come from the configuration, see Graph.isValidFontUrl.+ */+ Editor.addAllowedFontUrl = function(url)+ {+ if (typeof url === 'string' && url.length > 0)+ {+ Graph.allowedFontUrls[url] = true;+ }+ };++ /**+ * Allows the font URLs in a configured font list (customFonts, defaultFonts).+ */+ Editor.addAllowedFontUrls = function(fonts)+ {+ if (Array.isArray(fonts))+ {+ for (var i = 0; i < fonts.length; i++)+ {+ if (fonts[i] != null && typeof fonts[i] === 'object')+ {+ Editor.addAllowedFontUrl(fonts[i].fontUrl);+ }+ }+ }+ };+/*** Adds the global fontCss configuration.*/@@ -4049,6 +4080,22 @@if (fontCss != null){Editor.prototype.fontCss = fontCss;++ // The configured font CSS is trusted, so its URLs are allowed+ // even where they point at local files+ var urls = fontCss.split('url(');++ for (var i = 1; i < urls.length; i++)+ {+ var end = urls[i].indexOf(')');++ if (end > 0)+ {+ Editor.addAllowedFontUrl(Editor.trimCssUrl(+ urls[i].substring(0, end)));+ }+ }+var t = document.getElementsByTagName('script')[0];if (t != null && t.parentNode != null)@@ -8656,6 +8703,53 @@// regular entries instead of resolving to inherited object membersGraph.customFontElements = Object.create(null);+ /**+ * Font URLs that are allowed to point at the local filesystem. Populated+ * from the configuration (customFonts, defaultFonts, fontCss) by+ * Editor.addAllowedFontUrl. Null prototype as the keys are URLs.+ */+ Graph.allowedFontUrls = Object.create(null);++ /**+ * Returns true if the given font URL may be loaded. Font URLs come from+ * untrusted diagram content: a cell style's fontSource, a label's+ * data-font-src attribute and the file's extFonts attribute all end up+ * here. The desktop app resolves file:// URLs and absolute paths through+ * the main process, so an unchecked font URL is a read of an arbitrary+ * local file whose bytes are then embedded in the export. Only http(s),+ * data: and relative URLs are accepted, plus the local paths named in the+ * configuration.+ */+ Graph.isValidFontUrl = function(url)+ {+ if (typeof url !== 'string' || url.length == 0)+ {+ return false;+ }++ if (Graph.allowedFontUrls[url])+ {+ return true;+ }++ // The check must run on the string the URL parser will see, not the+ // raw one: leading and trailing C0 controls and spaces are stripped+ // and tab, LF and CR are removed anywhere in the URL, so " file:..."+ // and "file<tab>:..." would otherwise read as relative URLs here and+ // still be fetched as file: URLs. Spaces inside the URL are kept as+ // they are legal in a relative path.+ var test = url.replace(/^[\x00-\x20]+/, '').replace(+ /[\x00-\x20]+$/, '').replace(/[\t\n\r]/g, '');++ // Anything with a scheme other than http(s) and data: is refused,+ // which covers file: and Windows drive letters (C:\...), and so is+ // anything starting with a slash or backslash, which covers absolute+ // paths (/etc/passwd), UNC paths and protocol-relative URLs. What is+ // left is relative URLs, which resolve against the app itself.+ return /^https?:\/\//i.test(test) || /^data:/i.test(test) ||+ (!/^[a-zA-Z][a-zA-Z0-9+.\-]*:/.test(test) && !/^[\\\/]/.test(test));+ };+/*** Returns true if the given font URL references a Google font.*/@@ -8749,7 +8843,7 @@*/Graph.addFont = function(name, url, callback, elementLookup){- if (name != null && name.length > 0 && url != null && url.length > 0)+ if (name != null && name.length > 0 && Graph.isValidFontUrl(url)){elementLookup = (elementLookup != null) ?elementLookup : Graph.customFontElements;@@ -9525,21 +9619,30 @@Graph.prototype.getCustomFonts = function(lookup){lookup = (lookup != null) ? lookup : Graph.customFontElements;- var fonts = this.extFonts;+ var fonts = [];- if (fonts != null)+ // This is the single funnel for embedExtFonts and getExtFontCss, which+ // fetch the font and inline it in the export, so the fonts that came+ // from the file (extFonts) are filtered here too+ if (this.extFonts != null){- fonts = fonts.slice();- }- else- {- fonts = [];+ for (var i = 0; i < this.extFonts.length; i++)+ {+ if (Graph.isValidFontUrl(this.extFonts[i].url))+ {+ fonts.push(this.extFonts[i]);+ }+ }}for (var key in lookup){var font = lookup[key];- fonts.push({name: font.name, url: font.url});++ if (Graph.isValidFontUrl(font.url))+ {+ fonts.push({name: font.name, url: font.url});+ }}return fonts;@@ -12001,6 +12104,7 @@mxStencilRegistry.libraries['eip'] = [SHAPES_PATH + '/mxEip.js', STENCIL_PATH + '/eip.xml'];mxStencilRegistry.libraries['networks'] = [SHAPES_PATH + '/mxNetworks.js', STENCIL_PATH + '/networks.xml'];mxStencilRegistry.libraries['networks2'] = [SHAPES_PATH + '/mxNetworks2.js', STENCIL_PATH + '/networks2.xml'];+ mxStencilRegistry.libraries['atlassian2'] = [SHAPES_PATH + '/mxAtlassian2.js', STENCIL_PATH + '/atlassian2.xml'];mxStencilRegistry.libraries['aws3d'] = [SHAPES_PATH + '/mxAWS3D.js', STENCIL_PATH + '/aws3d.xml'];mxStencilRegistry.libraries['aws4'] = [SHAPES_PATH + '/mxAWS4.js', STENCIL_PATH + '/aws4.xml'];mxStencilRegistry.libraries['aws4b'] = [SHAPES_PATH + '/mxAWS4.js', STENCIL_PATH + '/aws4.xml'];diff --git a/src/main/webapp/js/diagramly/EditorUi.js b/src/main/webapp/js/diagramly/EditorUi.jsindex 5ee1bfa04..d8221eaa4 100644--- a/src/main/webapp/js/diagramly/EditorUi.js+++ b/src/main/webapp/js/diagramly/EditorUi.js@@ -848,8 +848,8 @@EditorUi.prototype.currentFile = null;/**- * Specifies if PDF export should be done via print dialog. Default is- * false which uses the PhantomJS backend to create the PDF.+ * Forces PDF export via the print dialog. Default is false, which uses+ * the export service if one is available (see isPrintPdfExport).*/EditorUi.prototype.printPdfExport = false;@@ -1107,6 +1107,28 @@(!ignoreStealth && (urlParams['stealth'] == '1' || urlParams['lockdown'] == '1'));};+ /**+ * Returns true if a server-side export service is configured and the app+ * is not offline. EXPORT_URL must be an absolute HTTP(S) or root-relative+ * URL. Null, empty and other values (such as the placeholder in the+ * PreConfig.js of the public build) mean that no service is available.+ */+ EditorUi.prototype.isRemoteExportEnabled = function()+ {+ return !this.isOffline() && typeof EXPORT_URL === 'string' &&+ /^(https?:\/\/|\/)/i.test(EXPORT_URL);+ };++ /**+ * Returns true if PDF export should use the print dialog instead of the+ * export service. This is the case if printPdfExport is set or if no+ * export service is available.+ */+ EditorUi.prototype.isPrintPdfExport = function()+ {+ return this.printPdfExport || !this.isRemoteExportEnabled();+ };+/*** Returns true if diagram data transmission other than save/load is allowed or possible..*/@@ -10418,6 +10440,10 @@err({message: mxResources.get('unknownError')});}), null, true, (retina) ? 2 : 1, null, shadow, null, null, Editor.defaultBorder);}+ else if (!this.isRemoteExportEnabled())+ {+ err({message: mxResources.get('notAvailable')});+ }else{var data = this.getFileData(true);@@ -21475,7 +21501,7 @@if (!args.shadows){css += 'g[style*="filter: drop-shadow("] {\n' +- ' filter: none !important;{\n' ++ ' filter: none !important;\n' +'}\n';}@@ -21650,7 +21676,7 @@if (Graph.isCssFontUrl(fontUrl)){pv.wnd.document.writeln('<link rel="stylesheet" href="' +- mxUtils.htmlEntities(fontUrl) ++ mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(fontUrl)) +'" charset="UTF-8" type="text/css">');}else@@ -24075,6 +24101,10 @@graphReady();}+ else if (!this.isRemoteExportEnabled())+ {+ processUri(null);+ }else{// Data from server is base64 encoded to avoid binary XHR@@ -26958,6 +26988,10 @@false, false, b, true, false, 'jpeg', grid);}}+ else if (!editorUi.isRemoteExportEnabled())+ {+ editorUi.handleError({message: mxResources.get('notAvailable')});+ }else{var extras = {globalVars: graph.getExportVariables()};diff --git a/src/main/webapp/js/diagramly/Init.js b/src/main/webapp/js/diagramly/Init.jsindex cc4925c31..c80903574 100644--- a/src/main/webapp/js/diagramly/Init.js+++ b/src/main/webapp/js/diagramly/Init.js@@ -32,7 +32,10 @@ window.DRAWIO_BASE_URL = window.DRAWIO_BASE_URL || ((/.*\.draw\.io$/.test(windowwindow.DRAWIO_SERVER_URL = window.DRAWIO_SERVER_URL || window.location.origin +window.location.pathname.substring(0, window.location.pathname.lastIndexOf('/')) + '/';window.DRAWIO_LIGHTBOX_URL = window.DRAWIO_LIGHTBOX_URL || 'https://viewer.diagrams.net';-window.EXPORT_URL = window.EXPORT_URL || 'https://convert.diagrams.net/node/export';+// Defaults only if unset so that a pre-configuration can set null to disable+// server-side export (see EditorUi.isRemoteExportEnabled)+window.EXPORT_URL = (typeof window.EXPORT_URL === 'undefined') ?+ 'https://convert.diagrams.net/node/export' : window.EXPORT_URL;window.DRAW_MATH_URL = window.DRAW_MATH_URL || 'math4/es5';window.VSS_CONVERT_URL = window.VSS_CONVERT_URL || 'https://convert.diagrams.net/VsdConverter/api/converter';window.REALTIME_URL = window.REALTIME_URL || window.DRAWIO_SERVER_URL + 'cache';diff --git a/src/main/webapp/js/diagramly/Menus.js b/src/main/webapp/js/diagramly/Menus.jsindex 11f8d227f..69051330c 100644--- a/src/main/webapp/js/diagramly/Menus.js+++ b/src/main/webapp/js/diagramly/Menus.js@@ -640,7 +640,7 @@editorUi.actions.put('exportPdf', new Action('formatPdf' + '...', function(){editorUi.showPrintDialog(mxResources.get('formatPdf'),- (!EditorUi.isElectronApp && (editorUi.isOffline() || editorUi.printPdfExport)) ?+ (!EditorUi.isElectronApp && editorUi.isPrintPdfExport()) ?null : mxUtils.bind(this, function(preview, args){var pageCount = (editorUi.pages != null) ? editorUi.pages.length : 1;@@ -998,7 +998,7 @@}}), true, defaultEditable, format, true);}- else if (!editorUi.isOffline() && (!mxClient.IS_IOS || !navigator.standalone))+ else if (editorUi.isRemoteExportEnabled() && (!mxClient.IS_IOS || !navigator.standalone)){editorUi.showRemoteExportDialog(mxResources.get('export'), null, mxUtils.bind(this,function(ignoreSelection, editable, transparent, scale, border)@@ -3165,7 +3165,7 @@}// Disabled for standalone mode in iOS because new tab cannot be closed- else if (!editorUi.isOffline() && (!mxClient.IS_IOS || !navigator.standalone))+ else if (editorUi.isRemoteExportEnabled() && (!mxClient.IS_IOS || !navigator.standalone)){this.addMenuItems(menu, ['exportPng', 'exportJpg'], parent);}@@ -3177,13 +3177,13 @@this.addMenuItems(menu, ['exportSvg', '-'], parent);- // Redirects export to PDF to print in Chrome App- if (editorUi.isOffline() || editorUi.printPdfExport)+ // Redirects export to PDF to print if no export service is available+ if (editorUi.isPrintPdfExport()){this.addMenuItems(menu, ['exportPdf'], parent);}// Disabled for standalone mode in iOS because new tab cannot be closed- else if (!editorUi.isOffline() && (!mxClient.IS_IOS || !navigator.standalone))+ else if (!mxClient.IS_IOS || !navigator.standalone){this.addMenuItems(menu, ['exportPdf'], parent);}diff --git a/src/main/webapp/js/diagramly/sidebar/Sidebar-Atlassian2.js b/src/main/webapp/js/diagramly/sidebar/Sidebar-Atlassian2.jsnew file mode 100644index 000000000..b2b3e1bb1--- /dev/null+++ b/src/main/webapp/js/diagramly/sidebar/Sidebar-Atlassian2.js@@ -0,0 +1,167 @@+/**+ * Copyright (c) 2006-2026, JGraph Holdings Ltd+ */++// GENERATED by gen_sidebar_atlassian2.py from @atlaskit sources - do not edit+// entries by hand, rerun the atlassian2 pipeline instead+(function()+{+ Sidebar.prototype.addAtlassian2Palette = function()+ {+ this.setCurrentSearchEntryLibrary('atlassian2', 'atlassian2Apps');+ this.addAtlassian2AppsPalette();+ this.setCurrentSearchEntryLibrary('atlassian2', 'atlassian2Work Types');+ this.addAtlassian2WorkTypesPalette();+ this.setCurrentSearchEntryLibrary('atlassian2', 'atlassian2Logos');+ this.addAtlassian2LogosPalette();+ this.setCurrentSearchEntryLibrary();+ };++ Sidebar.prototype.addAtlassian2AppsPalette = function()+ {+ var c = 'html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;';+ var s = 'shape=mxgraph.atlassian2.icon;' + c + 'atlassian2Icon=mxgraph.atlassian2.';+ var s2 = 'shape=mxgraph.atlassian2.';+ var dt = 'app product';+ var gn = 'mxgraph.atlassian2';+ var fns = [+ this.createVertexTemplateEntry(s + 'admin;tileColor=#dddee1;fillColor=#101214;', 48, 48, '', 'Admin', null, null, this.getTagsForStencil(gn, 'admin', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'align;tileColor=#fb9700;fillColor=#101214;', 48, 48, '', 'Align', null, null, this.getTagsForStencil(gn, 'align', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'analytics;tileColor=#dddee1;fillColor=#101214;', 48, 48, '', 'Analytics', null, null, this.getTagsForStencil(gn, 'analytics', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'assets;tileColor=#ffc716;fillColor=#101214;', 48, 48, '', 'Assets', null, null, this.getTagsForStencil(gn, 'assets', dt + ' insight cmdb').join(' ')),+ this.createVertexTemplateEntry(s2 + 'atlassian;' + c + 'fillColor=#1868db;', 48, 47.9, '', 'Atlassian', null, null, this.getTagsForStencil(gn, 'atlassian', dt).join(' ')),+ this.createVertexTemplateEntry(s2 + 'marketplace;' + c + 'fillColor=#1868db;', 48, 47.9, '', 'Atlassian Marketplace', null, null, this.getTagsForStencil(gn, 'marketplace', dt + ' atlassian').join(' ')),+ this.createVertexTemplateEntry(s + 'bamboo;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;', 48, 48, '', 'Bamboo', null, null, this.getTagsForStencil(gn, 'bamboo', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'bitbucket;tileColor=#94c748;fillColor=#101214;', 48, 48, '', 'Bitbucket', null, null, this.getTagsForStencil(gn, 'bitbucket', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'bitbucket-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;', 48, 48, '', 'Bitbucket Data Center', null, null, this.getTagsForStencil(gn, 'bitbucket data center', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'chat;tileColor=#dddee1;fillColor=#101214;', 48, 48, '', 'Chat', null, null, this.getTagsForStencil(gn, 'chat', dt + ' rovo chat').join(' ')),+ this.createVertexTemplateEntry(s + 'company-hub;tileColor=#dddee1;fillColor=#101214;', 48, 48, '', 'Company Hub', null, null, this.getTagsForStencil(gn, 'company hub', dt + ' intranet').join(' ')),+ this.createVertexTemplateEntry(s + 'compass;tileColor=#94c748;fillColor=#101214;', 48, 48, '', 'Compass', null, null, this.getTagsForStencil(gn, 'compass', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'confluence;tileColor=#1868db;fillColor=#fff;', 48, 48, '', 'Confluence', null, null, this.getTagsForStencil(gn, 'confluence', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'confluence-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;', 48, 48, '', 'Confluence Data Center', null, null, this.getTagsForStencil(gn, 'confluence data center', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'crowd;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;', 48, 48, '', 'Crowd', null, null, this.getTagsForStencil(gn, 'crowd', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'customer-service-management;tileColor=#ffc716;fillColor=#101214;', 48, 48, '', 'Customer Service Management', null, null, this.getTagsForStencil(gn, 'customer service management', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'dx;tileColor=#94c748;fillColor=#101214;', 48, 48, '', 'DX', null, null, this.getTagsForStencil(gn, 'dx', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'feedback;tileColor=#c97cf4;fillColor=#101214;', 48, 48, '', 'Feedback', null, null, this.getTagsForStencil(gn, 'feedback', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'focus;tileColor=#fb9700;fillColor=#101214;', 48, 48, '', 'Focus', null, null, this.getTagsForStencil(gn, 'focus', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'goals;tileColor=#dddee1;fillColor=#101214;', 48, 48, '', 'Goals', null, null, this.getTagsForStencil(gn, 'goals', dt + ' atlas').join(' ')),+ this.createVertexTemplateEntry(s + 'guard;tileColor=#dddee1;fillColor=#101214;', 48, 48, '', 'Guard', null, null, this.getTagsForStencil(gn, 'guard', dt + ' atlassian access').join(' ')),+ this.createVertexTemplateEntry(s + 'guard-detect;tileColor=#dddee1;fillColor=#101214;', 48, 48, '', 'Guard Detect', null, null, this.getTagsForStencil(gn, 'guard detect', dt + ' atlassian access').join(' ')),+ this.createVertexTemplateEntry(s + 'home;tileColor=#dddee1;fillColor=#101214;', 48, 48, '', 'Home', null, null, this.getTagsForStencil(gn, 'home', dt + ' atlas start').join(' ')),+ this.createVertexTemplateEntry(s + 'hub;tileColor=#dddee1;fillColor=#101214;', 48, 48, '', 'Hub', null, null, this.getTagsForStencil(gn, 'hub', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'jira;tileColor=#1868db;fillColor=#fff;', 48, 48, '', 'Jira', null, null, this.getTagsForStencil(gn, 'jira', dt + ' jira software jira core').join(' ')),+ this.createVertexTemplateEntry(s2 + 'jira_align;' + c + 'fillColor=#1868db;', 48, 48, '', 'Jira Align', null, null, this.getTagsForStencil(gn, 'jira align', dt + ' agilecraft').join(' ')),+ this.createVertexTemplateEntry(s + 'jira-coding-agent;tileColor=#1868db;fillColor=#fff;tileShape=hex;glyphScale=0.8971;', 43.1, 48, '', 'Jira Coding Agent', null, null, this.getTagsForStencil(gn, 'jira coding agent', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'jira-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;', 48, 48, '', 'Jira Data Center', null, null, this.getTagsForStencil(gn, 'jira data center', dt + ' jira software').join(' ')),+ this.createVertexTemplateEntry(s + 'jira-product-discovery;tileColor=#c97cf4;fillColor=#101214;', 48, 48, '', 'Jira Product Discovery', null, null, this.getTagsForStencil(gn, 'jira product discovery', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'jira-service-management;tileColor=#ffc716;fillColor=#101214;', 48, 48, '', 'Jira Service Management', null, null, this.getTagsForStencil(gn, 'jira service management', dt + ' jira service desk jsm').join(' ')),+ this.createVertexTemplateEntry(s + 'jira-service-management-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;', 48, 48, '', 'Jira Service Management Data Center', null, null, this.getTagsForStencil(gn, 'jira service management data center', dt + ' jira service desk jsm').join(' ')),+ this.createVertexTemplateEntry(s + 'loom;tileColor=#1868db;fillColor=#fff;', 48, 48, '', 'Loom', null, null, this.getTagsForStencil(gn, 'loom', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'loom-internal;tileColor=#625df5;fillColor=#fff;', 48, 48, '', 'Loom Internal', null, null, this.getTagsForStencil(gn, 'loom internal', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'opsgenie;tileColor=#ffc716;fillColor=#101214;', 48, 48, '', 'Opsgenie', null, null, this.getTagsForStencil(gn, 'opsgenie', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'projects;tileColor=#dddee1;fillColor=#101214;', 48, 48, '', 'Projects', null, null, this.getTagsForStencil(gn, 'projects', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'rovo;tileColor=#1868db;fillColor=#fff;', 48, 48, '', 'Rovo', null, null, this.getTagsForStencil(gn, 'rovo', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'rovo-dev;tileColor=#94c748;fillColor=#101214;', 48, 48, '', 'Rovo Dev', null, null, this.getTagsForStencil(gn, 'rovo dev', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'rovo-dev-agent;tileColor=#94c748;fillColor=#101214;tileShape=hex;glyphScale=0.98;', 43.1, 48, '', 'Rovo Dev Agent', null, null, this.getTagsForStencil(gn, 'rovo dev agent', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'search;tileColor=#dddee1;fillColor=#101214;', 48, 48, '', 'Search', null, null, this.getTagsForStencil(gn, 'search', dt + ' rovo search').join(' ')),+ this.createVertexTemplateEntry('image;' + c + 'image=img/lib/atlassian/Sourcetree_Logo.svg;', 38.6, 48, '', 'Sourcetree', null, null, this.getTagsForStencil(gn, 'sourcetree', dt + ' logo').join(' ')),+ this.createVertexTemplateEntry(s + 'statuspage;tileColor=#ffc716;fillColor=#101214;', 48, 48, '', 'Statuspage', null, null, this.getTagsForStencil(gn, 'statuspage', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'studio;tileColor=#dddee1;fillColor=#101214;', 48, 48, '', 'Studio', null, null, this.getTagsForStencil(gn, 'studio', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'talent;tileColor=#fb9700;fillColor=#101214;', 48, 48, '', 'Talent', null, null, this.getTagsForStencil(gn, 'talent', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'teams;tileColor=#dddee1;fillColor=#101214;', 48, 48, '', 'Teams', null, null, this.getTagsForStencil(gn, 'teams', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'trello;tileColor=#1558bc;fillColor=#fff;', 48, 48, '', 'Trello', null, null, this.getTagsForStencil(gn, 'trello', dt).join(' '))+ ];++ this.addPaletteFunctions('atlassian2Apps', 'Atlassian / Apps', false, fns);+ };++ Sidebar.prototype.addAtlassian2WorkTypesPalette = function()+ {+ var c = 'html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;';+ var s = 'shape=mxgraph.atlassian2.icon;' + c + 'atlassian2Icon=mxgraph.atlassian2.';+ var dt = 'jira work item type object';+ var gn = 'mxgraph.atlassian2';+ var fns = [+ this.createVertexTemplateEntry(s + 'object_blog;tileColor=#669DF1;fillColor=#292A2E;', 48, 48, '', 'Blog', null, null, this.getTagsForStencil(gn, 'blog', dt + ' confluence blogpost').join(' ')),+ this.createVertexTemplateEntry(s + 'object_branch;tileColor=#669DF1;fillColor=#292A2E;', 48, 48, '', 'Branch', null, null, this.getTagsForStencil(gn, 'branch', dt + ' git bitbucket').join(' ')),+ this.createVertexTemplateEntry(s + 'object_bug;tileColor=#F87168;fillColor=#292A2E;', 48, 48, '', 'Bug', null, null, this.getTagsForStencil(gn, 'bug', dt + ' issue defect').join(' ')),+ this.createVertexTemplateEntry(s + 'object_calendar;tileColor=#F87168;fillColor=#292A2E;', 48, 48, '', 'Calendar', null, null, this.getTagsForStencil(gn, 'calendar', dt + ' confluence team calendar').join(' ')),+ this.createVertexTemplateEntry(s + 'object_changes;tileColor=#EED12B;fillColor=#292A2E;', 48, 48, '', 'Changes', null, null, this.getTagsForStencil(gn, 'changes', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'object_code;tileColor=#C97CF4;fillColor=#292A2E;', 48, 48, '', 'Code', null, null, this.getTagsForStencil(gn, 'code', dt + ' git bitbucket repository').join(' ')),+ this.createVertexTemplateEntry(s + 'object_commit;tileColor=#EED12B;fillColor=#292A2E;', 48, 48, '', 'Commit', null, null, this.getTagsForStencil(gn, 'commit', dt + ' git bitbucket').join(' ')),+ this.createVertexTemplateEntry(s + 'object_database;tileColor=#C97CF4;fillColor=#292A2E;', 48, 48, '', 'Database', null, null, this.getTagsForStencil(gn, 'database', dt + ' confluence').join(' ')),+ this.createVertexTemplateEntry(s + 'object_epic;tileColor=#C97CF4;fillColor=#292A2E;', 48, 48, '', 'Epic', null, null, this.getTagsForStencil(gn, 'epic', dt + ' issue').join(' ')),+ this.createVertexTemplateEntry(s + 'object_idea;tileColor=#EED12B;fillColor=#292A2E;', 48, 48, '', 'Idea', null, null, this.getTagsForStencil(gn, 'idea', dt + ' jira product discovery jpd').join(' ')),+ this.createVertexTemplateEntry(s + 'object_improvement;tileColor=#4BCE97;fillColor=#292A2E;', 48, 48, '', 'Improvement', null, null, this.getTagsForStencil(gn, 'improvement', dt + ' enhancement').join(' ')),+ this.createVertexTemplateEntry(s + 'object_incident;tileColor=#F87168;fillColor=#292A2E;', 48, 48, '', 'Incident', null, null, this.getTagsForStencil(gn, 'incident', dt + ' itsm jsm').join(' ')),+ this.createVertexTemplateEntry(s + 'object_new_feature;tileColor=#4BCE97;fillColor=#292A2E;', 48, 48, '', 'New Feature', null, null, this.getTagsForStencil(gn, 'new feature', dt + ' feature request').join(' ')),+ this.createVertexTemplateEntry(s + 'object_page;tileColor=#669DF1;fillColor=#292A2E;', 48, 48, '', 'Page', null, null, this.getTagsForStencil(gn, 'page', dt + ' confluence').join(' ')),+ this.createVertexTemplateEntry(s + 'object_page_live_doc;tileColor=#E774BB;fillColor=#292A2E;', 48, 48, '', 'Page Live Doc', null, null, this.getTagsForStencil(gn, 'page live doc', dt + ' confluence live doc').join(' ')),+ this.createVertexTemplateEntry(s + 'object_problem;tileColor=#F87168;fillColor=#292A2E;', 48, 48, '', 'Problem', null, null, this.getTagsForStencil(gn, 'problem', dt + ' itsm jsm').join(' ')),+ this.createVertexTemplateEntry(s + 'object_pull_request;tileColor=#4BCE97;fillColor=#292A2E;', 48, 48, '', 'Pull Request', null, null, this.getTagsForStencil(gn, 'pull request', dt + ' git bitbucket pr review').join(' ')),+ this.createVertexTemplateEntry(s + 'object_question;tileColor=#C97CF4;fillColor=#292A2E;', 48, 48, '', 'Question', null, null, this.getTagsForStencil(gn, 'question', dt + ' jsm').join(' ')),+ this.createVertexTemplateEntry(s + 'object_story;tileColor=#4BCE97;fillColor=#292A2E;', 48, 48, '', 'Story', null, null, this.getTagsForStencil(gn, 'story', dt + ' issue').join(' ')),+ this.createVertexTemplateEntry(s + 'object_subtask;tileColor=#669DF1;fillColor=#292A2E;', 48, 48, '', 'Subtask', null, null, this.getTagsForStencil(gn, 'subtask', dt + ' issue sub task').join(' ')),+ this.createVertexTemplateEntry(s + 'object_task;tileColor=#669DF1;fillColor=#292A2E;', 48, 48, '', 'Task', null, null, this.getTagsForStencil(gn, 'task', dt + ' issue').join(' ')),+ this.createVertexTemplateEntry(s + 'object_whiteboard;tileColor=#6CC3E0;fillColor=#292A2E;', 48, 48, '', 'Whiteboard', null, null, this.getTagsForStencil(gn, 'whiteboard', dt + ' confluence').join(' ')),+ this.createVertexTemplateEntry(s + 'object_work_item;tileColor=#669DF1;fillColor=#292A2E;', 48, 48, '', 'Work Item', null, null, this.getTagsForStencil(gn, 'work item', dt + ' issue ticket').join(' '))+ ];++ this.addPaletteFunctions('atlassian2Work Types', 'Atlassian / Work Types', false, fns);+ };++ Sidebar.prototype.addAtlassian2LogosPalette = function()+ {+ var c = 'html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;';+ var s = 'shape=mxgraph.atlassian2.icon;' + c + 'atlassian2Icon=mxgraph.atlassian2.';+ var w = 'atlassian2Wordmark=mxgraph.atlassian2.wordmark_';+ var dt = 'product logo wordmark lockup';+ var gn = 'mxgraph.atlassian2';+ var fns = [+ this.createVertexTemplateEntry(s + 'admin;tileColor=#dddee1;fillColor=#101214;' + w + 'admin;atlassian2Lockup=0.245 0.689 -0.043;wordmarkColor=#1e1f21;', 93.6, 24, '', 'Admin Logo', null, null, this.getTagsForStencil(gn, 'admin', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'align;tileColor=#fb9700;fillColor=#101214;' + w + 'align;atlassian2Lockup=0.25 0.872 0.048;wordmarkColor=#1e1f21;', 79.3, 24, '', 'Align Logo', null, null, this.getTagsForStencil(gn, 'align', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'analytics;tileColor=#dddee1;fillColor=#101214;' + w + 'analytics;atlassian2Lockup=0.245 0.872 0.048;wordmarkColor=#1e1f21;', 120.5, 24, '', 'Analytics Logo', null, null, this.getTagsForStencil(gn, 'analytics', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'assets;tileColor=#ffc716;fillColor=#101214;' + w + 'assets;atlassian2Lockup=0.245 0.639 -0.018;wordmarkColor=#1e1f21;', 94.3, 24, '', 'Assets Logo', null, null, this.getTagsForStencil(gn, 'assets', dt + ' insight cmdb').join(' ')),+ this.createVertexTemplateEntry(s + 'atlassian;tileColor=none;fillColor=#1868db;' + w + 'atlassian;atlassian2Lockup=0.384 0.895 0.047;wordmarkColor=#1868DB;', 205.2, 24, '', 'Atlassian Logo', null, null, this.getTagsForStencil(gn, 'atlassian', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'marketplace;tileColor=none;fillColor=#1868db;' + w + 'marketplace;atlassian2Lockup=0.651 1.201 0.14;wordmarkColor=#101214;atlassian2Wordmark2=mxgraph.atlassian2.wordmark_atlassian;atlassian2Lockup2=0.384 0.895 0.047;atlassian2LockupBox=1.241 0;', 315.4, 24, '', 'Atlassian Marketplace Logo', null, null, this.getTagsForStencil(gn, 'marketplace', dt + ' atlassian').join(' ')),+ this.createVertexTemplateEntry(s + 'bamboo;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;' + w + 'bamboo;atlassian2Lockup=0.382 0.719 -0.045;wordmarkColor=#1e1f21;', 119.4, 24, '', 'Bamboo Logo', null, null, this.getTagsForStencil(gn, 'bamboo', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'bitbucket;tileColor=#94c748;fillColor=#101214;' + w + 'bitbucket;atlassian2Lockup=0.346 0.689 -0.043;wordmarkColor=#1e1f21;', 123.9, 24, '', 'Bitbucket Logo', null, null, this.getTagsForStencil(gn, 'bitbucket', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'bitbucket-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;' + w + 'bitbucket_data_center;atlassian2Lockup=0.382 0.719 -0.045;wordmarkColor=#1e1f21;', 128.8, 24, '', 'Bitbucket Data Center Logo', null, null, this.getTagsForStencil(gn, 'bitbucket data center', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'chat;tileColor=#dddee1;fillColor=#101214;' + w + 'chat;atlassian2Lockup=0.288 0.689 -0.043;wordmarkColor=#1e1f21;', 76.2, 24, '', 'Chat Logo', null, null, this.getTagsForStencil(gn, 'chat', dt + ' rovo chat').join(' ')),+ this.createVertexTemplateEntry(s + 'company-hub;tileColor=#dddee1;fillColor=#101214;' + w + 'company_hub;atlassian2Lockup=0.32 0.552 0.054;wordmarkColor=#292a2e;', 127.7, 24, '', 'Company Hub Logo', null, null, this.getTagsForStencil(gn, 'company hub', dt + ' intranet').join(' ')),+ this.createVertexTemplateEntry(s + 'compass;tileColor=#94c748;fillColor=#101214;' + w + 'compass;atlassian2Lockup=0.288 0.826 0.066;wordmarkColor=#1e1f21;', 121.3, 24, '', 'Compass Logo', null, null, this.getTagsForStencil(gn, 'compass', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'confluence;tileColor=#1868db;fillColor=#fff;' + w + 'confluence;atlassian2Lockup=0.288 0.691 -0.044;wordmarkColor=#1e1f21;', 140.9, 24, '', 'Confluence Logo', null, null, this.getTagsForStencil(gn, 'confluence', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'confluence-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;' + w + 'confluence_data_center;atlassian2Lockup=0.323 0.721 -0.046;wordmarkColor=#1e1f21;', 146.5, 24, '', 'Confluence Data Center Logo', null, null, this.getTagsForStencil(gn, 'confluence data center', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'crowd;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;' + w + 'crowd;atlassian2Lockup=0.323 0.719 -0.045;wordmarkColor=#1e1f21;', 97.5, 24, '', 'Crowd Logo', null, null, this.getTagsForStencil(gn, 'crowd', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'customer-service-management;tileColor=#ffc716;fillColor=#101214;' + w + 'customer_service_management;atlassian2Lockup=0.288 0.856 0.056;wordmarkColor=#1e1f21;', 342.1, 24, '', 'Customer Service Management Logo', null, null, this.getTagsForStencil(gn, 'customer service management', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'feedback;tileColor=#c97cf4;fillColor=#101214;' + w + 'feedback;atlassian2Lockup=0.335 0.689 -0.043;wordmarkColor=#1e1f21;', 126.2, 24, '', 'Feedback Logo', null, null, this.getTagsForStencil(gn, 'feedback', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'focus;tileColor=#fb9700;fillColor=#101214;' + w + 'focus;atlassian2Lockup=0.335 0.639 -0.018;wordmarkColor=#1e1f21;', 87, 24, '', 'Focus Logo', null, null, this.getTagsForStencil(gn, 'focus', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'goals;tileColor=#dddee1;fillColor=#101214;' + w + 'goals;atlassian2Lockup=0.288 0.689 -0.043;wordmarkColor=#1e1f21;', 86.7, 24, '', 'Goals Logo', null, null, this.getTagsForStencil(gn, 'goals', dt + ' atlas').join(' ')),+ this.createVertexTemplateEntry(s + 'guard;tileColor=#dddee1;fillColor=#101214;' + w + 'guard;atlassian2Lockup=0.288 0.689 -0.043;wordmarkColor=#1e1f21;', 89.8, 24, '', 'Guard Logo', null, null, this.getTagsForStencil(gn, 'guard', dt + ' atlassian access').join(' ')),+ this.createVertexTemplateEntry(s + 'guard-detect;tileColor=#dddee1;fillColor=#101214;' + w + 'guard_detect;atlassian2Lockup=0.278 0.437 -0.003;wordmarkColor=#292a2e;', 120.2, 24, '', 'Guard Detect Logo', null, null, this.getTagsForStencil(gn, 'guard detect', dt + ' atlassian access').join(' ')),+ this.createVertexTemplateEntry(s + 'home;tileColor=#dddee1;fillColor=#101214;' + w + 'home;atlassian2Lockup=0.345 0.639 -0.018;wordmarkColor=#1e1f21;', 90.2, 24, '', 'Home Logo', null, null, this.getTagsForStencil(gn, 'home', dt + ' atlas start').join(' ')),+ this.createVertexTemplateEntry(s + 'hub;tileColor=#dddee1;fillColor=#101214;' + w + 'hub;atlassian2Lockup=0.345 0.689 -0.043;wordmarkColor=#1e1f21;', 70.7, 24, '', 'Hub Logo', null, null, this.getTagsForStencil(gn, 'hub', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'jira;tileColor=#1868db;fillColor=#fff;' + w + 'jira;atlassian2Lockup=0.26 0.673 -0.035;wordmarkColor=#1e1f21;', 61.8, 24, '', 'Jira Logo', null, null, this.getTagsForStencil(gn, 'jira', dt + ' jira software jira core').join(' ')),+ this.createVertexTemplateEntry(s + 'jira_align;tileColor=none;fillColor=#1868db;' + w + 'jira_align;atlassian2Lockup=0.592 1.466 0.081;wordmarkColor=#101214;atlassian2LockupBox=1.466 0.152;', 124.7, 24, '', 'Jira Align Logo', null, null, this.getTagsForStencil(gn, 'jira align', dt + ' agilecraft').join(' ')),+ this.createVertexTemplateEntry(s + 'jira-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;' + w + 'jira_data_center;atlassian2Lockup=0.293 0.702 -0.037;wordmarkColor=#1e1f21;', 63.9, 24, '', 'Jira Data Center Logo', null, null, this.getTagsForStencil(gn, 'jira data center', dt + ' jira software').join(' ')),+ this.createVertexTemplateEntry(s + 'jira-product-discovery;tileColor=#c97cf4;fillColor=#101214;' + w + 'jira_product_discovery;atlassian2Lockup=0.26 0.872 0.048;wordmarkColor=#1e1f21;', 244.6, 24, '', 'Jira Product Discovery Logo', null, null, this.getTagsForStencil(gn, 'jira product discovery', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'jira-service-management;tileColor=#ffc716;fillColor=#101214;' + w + 'jira_service_management;atlassian2Lockup=0.26 0.856 0.056;wordmarkColor=#1e1f21;', 278.5, 24, '', 'Jira Service Management Logo', null, null, this.getTagsForStencil(gn, 'jira service management', dt + ' jira service desk jsm').join(' ')),+ this.createVertexTemplateEntry(s + 'jira-service-management-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;' + w + 'jira_service_management_data_center;atlassian2Lockup=0.293 0.893 0.059;wordmarkColor=#1e1f21;atlassian2LockupBox=1.005 0;', 288.6, 24, '', 'Jira Service Management Data Center Logo', null, null, this.getTagsForStencil(gn, 'jira service management data center', dt + ' jira service desk jsm').join(' ')),+ this.createVertexTemplateEntry(s + 'loom;tileColor=#1868db;fillColor=#fff;' + w + 'loom;atlassian2Lockup=0.333 0.682 -0.036;wordmarkColor=#1e1f21;', 76.9, 24, '', 'Loom Logo', null, null, this.getTagsForStencil(gn, 'loom', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'loom-internal;tileColor=#625df5;fillColor=#fff;' + w + 'loom_internal;atlassian2Lockup=0.333 0.682 -0.036;wordmarkColor=#1e1f21;', 76.9, 24, '', 'Loom Internal Logo', null, null, this.getTagsForStencil(gn, 'loom internal', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'opsgenie;tileColor=#ffc716;fillColor=#101214;' + w + 'opsgenie;atlassian2Lockup=0.288 0.856 0.056;wordmarkColor=#1e1f21;', 122.6, 24, '', 'Opsgenie Logo', null, null, this.getTagsForStencil(gn, 'opsgenie', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'projects;tileColor=#dddee1;fillColor=#101214;' + w + 'projects;atlassian2Lockup=0.345 0.852 0.055;wordmarkColor=#1e1f21;', 108.4, 24, '', 'Projects Logo', null, null, this.getTagsForStencil(gn, 'projects', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'rovo;tileColor=#1868db;fillColor=#fff;' + w + 'rovo;atlassian2Lockup=0.345 0.639 -0.018;wordmarkColor=#1e1f21;', 79.2, 24, '', 'Rovo Logo', null, null, this.getTagsForStencil(gn, 'rovo', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'rovo-dev;tileColor=#94c748;fillColor=#101214;' + w + 'rovo_dev;atlassian2Lockup=0.345 0.639 -0.018;wordmarkColor=#1e1f21;', 123.5, 24, '', 'Rovo Dev Logo', null, null, this.getTagsForStencil(gn, 'rovo dev', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'rovo-dev-agent;tileColor=#94c748;fillColor=#101214;tileShape=hex;glyphScale=0.98;' + w + 'rovo_dev_agent;atlassian2Lockup=0.296 0.639 -0.008;wordmarkColor=#1e1f21;', 119.9, 24, '', 'Rovo Dev Agent Logo', null, null, this.getTagsForStencil(gn, 'rovo dev agent', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'search;tileColor=#dddee1;fillColor=#101214;' + w + 'search;atlassian2Lockup=0.29 0.689 -0.043;wordmarkColor=#1e1f21;', 96.6, 24, '', 'Search Logo', null, null, this.getTagsForStencil(gn, 'search', dt + ' rovo search').join(' ')),+ this.createVertexTemplateEntry(s + 'statuspage;tileColor=#ffc716;fillColor=#101214;' + w + 'statuspage;atlassian2Lockup=0.29 0.831 0.068;wordmarkColor=#1e1f21;', 143.7, 24, '', 'Statuspage Logo', null, null, this.getTagsForStencil(gn, 'statuspage', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'studio;tileColor=#dddee1;fillColor=#101214;' + w + 'studio;atlassian2Lockup=0.29 0.689 -0.043;wordmarkColor=#1e1f21;', 93, 24, '', 'Studio Logo', null, null, this.getTagsForStencil(gn, 'studio', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'talent;tileColor=#fb9700;fillColor=#101214;' + w + 'talent;atlassian2Lockup=0.259 0.689 -0.043;wordmarkColor=#1e1f21;', 90.9, 24, '', 'Talent Logo', null, null, this.getTagsForStencil(gn, 'talent', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'teams;tileColor=#dddee1;fillColor=#101214;' + w + 'teams;atlassian2Lockup=0.259 0.639 -0.018;wordmarkColor=#1e1f21;', 94.9, 24, '', 'Teams Logo', null, null, this.getTagsForStencil(gn, 'teams', dt).join(' ')),+ this.createVertexTemplateEntry(s + 'trello;tileColor=#1558bc;fillColor=#fff;' + w + 'trello;atlassian2Lockup=0.259 0.689 -0.043;wordmarkColor=#1e1f21;', 84.1, 24, '', 'Trello Logo', null, null, this.getTagsForStencil(gn, 'trello', dt).join(' '))+ ];++ this.addPaletteFunctions('atlassian2Logos', 'Atlassian / Logos', false, fns);+ };+})();diff --git a/src/main/webapp/js/diagramly/sidebar/Sidebar.js b/src/main/webapp/js/diagramly/sidebar/Sidebar.jsindex 98003ff0b..d77be0786 100644--- a/src/main/webapp/js/diagramly/sidebar/Sidebar.js+++ b/src/main/webapp/js/diagramly/sidebar/Sidebar.js@@ -176,6 +176,7 @@{id: 'floorplan', libs: ['floorplan']},{id: 'bootstrap', libs: ['bootstrap']},{id: 'atlassian', libs: ['atlassian']},+ {id: 'atlassian2', prefix: 'atlassian2', libs: ['Apps', 'Work Types', 'Logos']},{id: 'fluid_power', libs: ['fluid_power']},{id: 'gmdl', prefix: 'gmdl', libs: Sidebar.prototype.gmdl},{id: 'archimate4', prefix: 'archimate4', libs: Sidebar.prototype.archimate4},@@ -509,7 +510,8 @@{title: mxResources.get('software'),entries: [{title: 'Active Directory', id: 'active_directory', image: IMAGE_PATH + '/sidebar-active_directory.png'},{title: mxResources.get('android'), id: 'android', image: IMAGE_PATH + '/sidebar-android.png'},- {title: 'Atlassian', id: 'atlassian', image: IMAGE_PATH + '/sidebar-atlassian.png'},+ {title: 'Atlassian', id: 'atlassian2', image: IMAGE_PATH + '/sidebar-atlassian2.png'},+ {title: 'Atlassian (legacy)', id: 'atlassian', image: IMAGE_PATH + '/sidebar-atlassian.png'},{title: mxResources.get('bootstrap'), id: 'bootstrap', image: IMAGE_PATH + '/sidebar-bootstrap.png'},{title: 'C4', id: 'c4', image: IMAGE_PATH + '/sidebar-c4.png'},{title: 'Data Flow Diagram', id: 'dfd', image: IMAGE_PATH + '/sidebar-dfd.png'},@@ -1584,6 +1586,7 @@this.addActiveDirectoryPalette();this.addAndroidPalette();this.addAtlassianPalette();+ this.addAtlassian2Palette();this.addBootstrapPalette();this.addDFDPalette();this.addErPalette();diff --git a/src/main/webapp/js/grapheditor/Graph.js b/src/main/webapp/js/grapheditor/Graph.jsindex 5ff5b2629..b4086e266 100644--- a/src/main/webapp/js/grapheditor/Graph.js+++ b/src/main/webapp/js/grapheditor/Graph.js@@ -6644,6 +6644,36 @@ Graph.prototype.editAfterInsert = false;*/Graph.prototype.builtInProperties = ['label', 'tooltip', 'placeholders', 'placeholder', 'note'];+/**+ * Defines the property name prefixes to be ignored in tooltips. The PlantUML+ * and Mermaid converters stamp round-trip identity onto every generated cell+ * (plantUmlId / plantUmlBaseStyle / plantUmlBaseValue and the mermaid+ * equivalents, plus plantUmlData / mermaidData on the wrapper group). Those+ * attributes must stay in the model - EditorUi.replaceLockedGroupChildren and+ * mergeMermaidStyleDelta re-parse them - but they are internal bookkeeping,+ * so hovering a shape of an inserted diagram must not dump them as a tooltip.+ * Matched by prefix so attributes added by a later bundle stay hidden too.+ */+Graph.prototype.builtInPropertyPrefixes = ['plantUml', 'mermaid'];++/**+ * Returns true if the given property name starts with one of the prefixes in+ * builtInPropertyPrefixes and is therefore ignored in tooltips.+ */+Graph.prototype.isBuiltInPropertyPrefix = function(name)+{+ for (var i = 0; i < this.builtInPropertyPrefixes.length; i++)+ {+ if (name.substring(0, this.builtInPropertyPrefixes[i].length) ==+ this.builtInPropertyPrefixes[i])+ {+ return true;+ }+ }++ return false;+};+/*** Specifies if icons should be shown on cells with a note. Default is* true (the icon is the affordance for reading the note).@@ -13861,7 +13891,8 @@ Graph.prototype.getTooltipForCell = function(cell)if (tip == null){- var ignored = this.builtInProperties;+ // Copies the shared list as the link handling below appends to it+ var ignored = this.builtInProperties.slice();var attrs = cell.value.attributes;var temp = [];tip = '';@@ -13876,7 +13907,8 @@ Graph.prototype.getTooltipForCell = function(cell)for (var i = 0; i < attrs.length; i++){if (((Graph.translateDiagram && attrs[i].nodeName == 'label') ||- mxUtils.indexOf(ignored, attrs[i].nodeName) < 0) &&+ (mxUtils.indexOf(ignored, attrs[i].nodeName) < 0 &&+ !this.isBuiltInPropertyPrefix(attrs[i].nodeName))) &&attrs[i].nodeValue.length > 0){temp.push({name: attrs[i].nodeName, value: attrs[i].nodeValue});diff --git a/src/main/webapp/js/grapheditor/Init.js b/src/main/webapp/js/grapheditor/Init.jsindex 415d8a7bc..d97294816 100644--- a/src/main/webapp/js/grapheditor/Init.js+++ b/src/main/webapp/js/grapheditor/Init.js@@ -35,7 +35,9 @@ window.MAX_REQUEST_SIZE = window.MAX_REQUEST_SIZE || 10485760;window.MAX_AREA = window.MAX_AREA || 15000 * 15000;// URLs for save and export-window.EXPORT_URL = window.EXPORT_URL || '/export';+// Defaults only if unset so that a pre-configuration can set null to disable+// server-side export (see EditorUi.isRemoteExportEnabled)+window.EXPORT_URL = (typeof window.EXPORT_URL === 'undefined') ? '/export' : window.EXPORT_URL;window.SAVE_URL = window.SAVE_URL || '/save';window.OPEN_URL = window.OPEN_URL || '/open';window.RESOURCES_PATH = window.RESOURCES_PATH || 'resources';diff --git a/src/main/webapp/js/integrate.min.js b/src/main/webapp/js/integrate.min.jsindex 4e2bdb257..22d8d6973 100644--- a/src/main/webapp/js/integrate.min.js+++ b/src/main/webapp/js/integrate.min.js@@ -53,7 +53,7 @@ var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456a.charCodeAt(c+1);56320<=e&&57343>=e&&(d=((d&1023)<<10)+(e&1023)+65536,c++)}128>d?b+=String.fromCharCode(d):(2048>d?b+=String.fromCharCode(d>>6|192):(65536>d?b+=String.fromCharCode(d>>12|224):(b+=String.fromCharCode(d>>18|240),b+=String.fromCharCode(d>>12&63|128)),b+=String.fromCharCode(d>>6&63|128)),b+=String.fromCharCode(d&63|128))}return b},_utf8_decode:function(a){var b="",c=0;for(c1=c2=0;c<a.length;){var d=a.charCodeAt(c);if(128>d)b+=String.fromCharCode(d),c++;else if(191<d&&224>d)c2=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|c2&63),c+=2;else if(240>d)c2=a.charCodeAt(c+1),c3=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(c2&63)<<6|c3&63),c+=3;else{c2=a.charCodeAt(c+1);c3=a.charCodeAt(c+2);var e=a.charCodeAt(c+3);b+=String.fromCodePoint((d&7)<<18|(c2&63)<<12|(c3&63)<<6|e&63);c+=4}}return b}};window.urlParams=window.urlParams||{};if(null==window.mxIsElectron||"1"==urlParams.embed)window.mxIsElectron=!1;window.isLocalStorage=window.isLocalStorage||!1;window.mxLoadSettings=window.mxLoadSettings||"1"!=urlParams.configure;window.isSvgBrowser=!0;window.isMermaidEnabled="function"===typeof structuredClone;window.DRAWIO_BASE_URL=window.DRAWIO_BASE_URL||(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)?window.location.protocol+"//"+window.location.hostname:"https://app.diagrams.net");window.DRAWIO_SERVER_URL=window.DRAWIO_SERVER_URL||window.location.origin+window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+"/";window.DRAWIO_LIGHTBOX_URL=window.DRAWIO_LIGHTBOX_URL||"https://viewer.diagrams.net";-window.EXPORT_URL=window.EXPORT_URL||"https://convert.diagrams.net/node/export";window.DRAW_MATH_URL=window.DRAW_MATH_URL||"math4/es5";window.VSS_CONVERT_URL=window.VSS_CONVERT_URL||"https://convert.diagrams.net/VsdConverter/api/converter";window.REALTIME_URL=window.REALTIME_URL||window.DRAWIO_SERVER_URL+"cache";window.DRAWIO_GITLAB_URL=window.DRAWIO_GITLAB_URL||"https://gitlab.com";window.DRAWIO_GITLAB_ID=window.DRAWIO_GITLAB_ID||"2b14debc5feeb18ba65358d863ec870e4cc9294b28c3c941cb3014eb4af9a9b4";+window.EXPORT_URL="undefined"===typeof window.EXPORT_URL?"https://convert.diagrams.net/node/export":window.EXPORT_URL;window.DRAW_MATH_URL=window.DRAW_MATH_URL||"math4/es5";window.VSS_CONVERT_URL=window.VSS_CONVERT_URL||"https://convert.diagrams.net/VsdConverter/api/converter";window.REALTIME_URL=window.REALTIME_URL||window.DRAWIO_SERVER_URL+"cache";window.DRAWIO_GITLAB_URL=window.DRAWIO_GITLAB_URL||"https://gitlab.com";window.DRAWIO_GITLAB_ID=window.DRAWIO_GITLAB_ID||"2b14debc5feeb18ba65358d863ec870e4cc9294b28c3c941cb3014eb4af9a9b4";window.DRAWIO_GITHUB_URL=window.DRAWIO_GITHUB_URL||"https://github.com";window.DRAWIO_GITHUB_API_URL=window.DRAWIO_GITHUB_API_URL||"https://api.github.com";window.DRAWIO_GITHUB_ID=window.DRAWIO_GITHUB_ID||"Iv1.98d62f0431e40543";window.DRAWIO_DROPBOX_ID=window.DRAWIO_DROPBOX_ID||"jg02tc0onwmhlgm";window.SAVE_URL=window.SAVE_URL||window.DRAWIO_SERVER_URL+"save";window.PROXY_URL=window.PROXY_URL||window.DRAWIO_SERVER_URL+"proxy";window.DRAWIO_VIEWER_URL=window.DRAWIO_VIEWER_URL||null;window.NOTIFICATIONS_URL=window.NOTIFICATIONS_URL||(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)?window.DRAWIO_SERVER_URL+"notifications":null);window.RT_WEBSOCKET_URL=window.RT_WEBSOCKET_URL||"wss://"+("test.draw.io"==window.location.hostname?"app.diagrams.net":window.location.hostname)+"/rt";window.DRAWIO_ATLASSIAN_PROMPT_LENGTH=null!=window.DRAWIO_ATLASSIAN_PROMPT_LENGTH?window.DRAWIO_ATLASSIAN_PROMPT_LENGTH:1E5;window.SHAPES_PATH=window.SHAPES_PATH||"shapes";window.GRAPH_IMAGE_PATH=window.GRAPH_IMAGE_PATH||"img";window.ICONSEARCH_PATH=window.ICONSEARCH_PATH||(urlParams.dev&&"file:"!=window.location.protocol?"iconSearch2":window.DRAWIO_SERVER_URL+"iconSearch2");window.ICON_SERVICE_PATH=window.ICON_SERVICE_PATH||(urlParams.dev&&"file:"!=window.location.protocol?"api/icons":window.DRAWIO_SERVER_URL+"api/icons");window.TEMPLATE_PATH=window.TEMPLATE_PATH||"templates";@@ -70,8 +70,8 @@ window.uiTheme=window.uiTheme||function(){var a=urlParams.ui;"1"==urlParams.extAb),-1!==c&&c===b&&(window.DRAWIO_LOG_URL="https://log.draw.io")))})();"1"==urlParams["gapi-stealth"]&&(urlParams.stealth="1");if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==urlParams.local||"1"==urlParams.lockdown)urlParams.picker="1"==urlParams["gapi-stealth"]?"1":"0",urlParams.gapi="1"==urlParams["gapi-stealth"]?"1":"0",urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0";"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],FORBID_ATTR:["data-icon","data-icon-content"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ALLOW_DATA_ATTR:!1,ADD_ATTR:"target content pointer-events requiredFeatures data-font-src data-action data-title data-message data-link data-effect data-lucid-type data-lucid-content".split(" ")};-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:"31.4.2",IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),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.")&&+window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL="undefined"===typeof window.EXPORT_URL?"/export":window.EXPORT_URL;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:"31.4.4",IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor),IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints,IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userAgent),IS_GC:/Google Inc/.test(navigator.vendor),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:-1<navigator.userAgent.toLowerCase().indexOf("firefox"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS||"[object SVGForeignObjectElement]"!==document.createElementNS("http://www.w3.org/2000/svg","foreignObject").toString()||0<=navigator.userAgent.indexOf("Opera/"),IS_WIN:0<navigator.appVersion.indexOf("Win"),IS_MAC:0<navigator.appVersion.indexOf("Mac"),IS_CHROMEOS:/\bCrOS\b/.test(navigator.appVersion),@@ -1030,16 +1030,16 @@ mxPrintPreview.prototype.title=null;mxPrintPreview.prototype.pageSelector=null;mmxPrintPreview.prototype.getDoctype=function(){var a="";8==document.documentMode?a='<meta http-equiv="X-UA-Compatible" content="IE=8">':8<document.documentMode&&(a='\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]--\x3e');return a};mxPrintPreview.prototype.appendGraph=function(a,b,c,d,e,f,g,k,l){this.graph=a;this.scale=null!=b?b:1/a.pageScale;this.x0=c;this.y0=d;this.open(null,null,e,f,g,k,l)};mxPrintPreview.prototype.getPageClassCss=function(a,b){var c=this.pageMargin,d=this.pixelsPerInch,e=(b.width/d).toFixed(2)+"in "+(b.height/d).toFixed(2)+"in";b="@page "+a+" {\n margin: 0;\n size: "+mxUtils.htmlEntities(e)+";\n}\n."+a+" {\n page: "+a+";\n"+(mxClient.IS_SF?" padding: "+mxUtils.htmlEntities((c/d).toFixed(2))+"in;\n":"")+" width: "+mxUtils.htmlEntities((b.width/d).toFixed(2))+"in;\n height: "+mxUtils.htmlEntities((b.height/d).toFixed(2))+"in;\n}\n";mxClient.IS_SF||(b+="."+a+" > svg {\n margin: "+mxUtils.htmlEntities((c/d).toFixed(2))+"in;\n}\n");return b};-mxPrintPreview.prototype.open=function(a,b,c,d,e,f,g){c=null;try{var k=this.graph.cellRenderer.initializeOverlay,l=null!=f;f=mxRectangle.fromRectangle(null!=f?f:this.pageFormat);var m=f.width+1,n=f.height+1;this.printOverlays&&(this.graph.cellRenderer.initializeOverlay=function(H,F){F.init(H.view.getDrawPane())});this.printControls&&(this.graph.cellRenderer.initControl=function(H,F,J,I){F.dialect=H.view.graph.dialect;F.init(H.view.getDrawPane())});this.wnd=null!=b?b:this.wnd;b=!1;null==this.wnd&&-(b=!0,this.wnd=window.open());var p=this.wnd.document;if(b){var q=this.getDoctype();null!=q&&0<q.length&&p.writeln(q);"CSS1Compat"===document.compatMode&&p.writeln("<!DOCTYPE html>");p.writeln("<html>");p.writeln("<head>");this.writeHead(p,a);p.writeln("</head>");p.writeln("<body>")}var r=mxRectangle.fromRectangle(null!=g?this.graph.getBoundingBox(g):this.graph.getGraphBounds()),t=this.graph.getView().getScale(),u=t/this.scale,v=this.graph.getView().getTranslate();this.autoOrigin||(this.x0-=v.x*this.scale,-this.y0-=v.y*this.scale,r.width+=r.x,r.height+=r.y,r.x=0,this.border=r.y=0);var y=m-2*this.border,A=n-2*this.border;n+=this.marginTop+this.marginBottom;r.width/=u;r.height/=u;var z=Math.max(1,Math.ceil((r.width+this.x0)/y)),x=Math.max(1,Math.ceil((r.height+this.y0)/A));this.pageCount=z*x;var C=null;l&&(null==this.pendingCss&&(this.pageFormatClass={},this.pendingCss=""),C=mxUtils.htmlEntities("gePageFormat-"+String(f.width).replace(/\./g,"_")+"-"+String(f.height).replace(/\./g,"_")),null==this.pageFormatClass[C]&&-(this.pageFormatClass[C]=!0,this.pendingCss+=this.getPageClassCss(C,f)));var D=mxUtils.bind(this,function(H){null!=this.borderColor&&(H.style.borderColor=this.borderColor,H.style.borderStyle="solid",H.style.borderWidth="1px");H.style.background=this.backgroundColor;null!=C?H.classList.add(C):(H.style.width=f.width+"px",H.style.height=f.height+"px");p.body.appendChild(H)}),B=this.getCoverPages(m,n);if(null!=B)for(var E=0;E<B.length;E++)D(B[E],!0);var K=this.getAppendices(m,n);for(E=0;E<x;E++){var G=-E*A/this.scale-this.y0/this.scale+(r.y-v.y*t)/t-E;for(a=0;a<z;a++){if(null==this.wnd)return null;var L=a*y/this.scale-this.x0/this.scale+(r.x-v.x*t)/t-a;g=E*z+a+1;c=p.createElement("div");c.style.display="flex";c.style.alignItems="center";c.style.justifyContent="center";var Q=new mxRectangle(L,G,y,A);this.addGraphFragment(-L,-G,this.scale,g,c,Q);null!=e&&0==E&&0==a&&c.setAttribute("id",e);D(c,!0)}}if(null!=K)for(E=0;E<K.length;E++)D(K[E],E<K.length-1);b&&!d&&this.closeDocument();this.wnd.focus()}catch(H){null!=+mxPrintPreview.prototype.open=function(a,b,c,d,e,f,g){c=null;try{var k=this.graph.cellRenderer.initializeOverlay,l=null!=f;f=mxRectangle.fromRectangle(null!=f?f:this.pageFormat);var m=f.width+1,n=f.height+1,p=null;l&&(null==this.pendingCss&&(this.pageFormatClass={},this.pendingCss=""),p=mxUtils.htmlEntities("gePageFormat-"+String(f.width).replace(/\./g,"_")+"-"+String(f.height).replace(/\./g,"_")),null==this.pageFormatClass[p]&&(this.pageFormatClass[p]=!0,this.pendingCss+=this.getPageClassCss(p,f)));+this.printOverlays&&(this.graph.cellRenderer.initializeOverlay=function(H,F){F.init(H.view.getDrawPane())});this.printControls&&(this.graph.cellRenderer.initControl=function(H,F,J,I){F.dialect=H.view.graph.dialect;F.init(H.view.getDrawPane())});this.wnd=null!=b?b:this.wnd;b=!1;null==this.wnd&&(b=!0,this.wnd=window.open());var q=this.wnd.document;if(b){var r=this.getDoctype();null!=r&&0<r.length&&q.writeln(r);"CSS1Compat"===document.compatMode&&q.writeln("<!DOCTYPE html>");q.writeln("<html>");q.writeln("<head>");+this.writeHead(q,a);q.writeln("</head>");q.writeln("<body>")}var t=mxRectangle.fromRectangle(null!=g?this.graph.getBoundingBox(g):this.graph.getGraphBounds()),u=this.graph.getView().getScale(),v=u/this.scale,y=this.graph.getView().getTranslate();this.autoOrigin||(this.x0-=y.x*this.scale,this.y0-=y.y*this.scale,t.width+=t.x,t.height+=t.y,t.x=0,this.border=t.y=0);var A=m-2*this.border,z=n-2*this.border;n+=this.marginTop+this.marginBottom;t.width/=v;t.height/=v;var x=Math.max(1,Math.ceil((t.width+this.x0)/+A)),C=Math.max(1,Math.ceil((t.height+this.y0)/z));this.pageCount=x*C;var D=mxUtils.bind(this,function(H){null!=this.borderColor&&(H.style.borderColor=this.borderColor,H.style.borderStyle="solid",H.style.borderWidth="1px");H.style.background=this.backgroundColor;null!=p?H.classList.add(p):(H.style.width=f.width+"px",H.style.height=f.height+"px");q.body.appendChild(H)}),B=this.getCoverPages(m,n);if(null!=B)for(var E=0;E<B.length;E++)D(B[E],!0);var K=this.getAppendices(m,n);for(E=0;E<C;E++){var G=E*+z/this.scale-this.y0/this.scale+(t.y-y.y*u)/u-E;for(a=0;a<x;a++){if(null==this.wnd)return null;var L=a*A/this.scale-this.x0/this.scale+(t.x-y.x*u)/u-a;g=E*x+a+1;c=q.createElement("div");c.style.display="flex";c.style.alignItems="center";c.style.justifyContent="center";var Q=new mxRectangle(L,G,A,z);this.addGraphFragment(-L,-G,this.scale,g,c,Q);null!=e&&0==E&&0==a&&c.setAttribute("id",e);D(c,!0)}}if(null!=K)for(E=0;E<K.length;E++)D(K[E],E<K.length-1);b&&!d&&this.closeDocument();this.wnd.focus()}catch(H){null!=c&&null!=c.parentNode&&c.parentNode.removeChild(c),null!=window.console&&console.error(H)}finally{this.graph.cellRenderer.initializeOverlay=k}return this.wnd};mxPrintPreview.prototype.addPendingCss=function(a){if(null!=this.pendingCss){var b=a.createElement("style");b.setAttribute("type","text/css");b.appendChild(a.createTextNode(this.pendingCss));a.getElementsByTagName("head")[0].appendChild(b);this.pendingCss=null}};mxPrintPreview.prototype.closeDocument=function(){try{if(null!=this.wnd&&null!=this.wnd.document){var a=this.wnd.document;this.writePostfix(a);a.writeln("</body>");a.writeln("</html>");a.close();this.addPendingCss(a);mxEvent.release(a.body)}}catch(b){}};-mxPrintPreview.prototype.writeHead=function(a,b){null!=this.title&&a.writeln("<title>"+mxUtils.htmlEntities(this.title)+"</title>");var c=mxClient.basePath;"/src"==c.substring(c.length-4)&&(c=c.substring(0,c.length-4));mxClient.link("stylesheet",c+"/css/common.css",a);a.writeln('<style type="text/css">');a.writeln(this.defaultCss);c=this.pageFormat;this.addPageCss&&null!=c&&(c=(c.width/this.pixelsPerInch).toFixed(2)+"in "+(c.height/this.pixelsPerInch).toFixed(2)+"in",a.writeln("@page {"),a.writeln(" margin: "+-mxUtils.htmlEntities((this.pageMargin/this.pixelsPerInch).toFixed(2))+"in;"),a.writeln(" size: "+mxUtils.htmlEntities(c)+";"),a.writeln("}"));null!=b&&a.writeln(mxUtils.htmlEntities(b,!1,!1,!1));a.writeln("</style>")};mxPrintPreview.prototype.writePostfix=function(a){};mxPrintPreview.prototype.getRoot=function(){var a=this.graph.view.currentRoot;null==a&&(a=this.graph.getModel().getRoot());return a};mxPrintPreview.prototype.useCssTransforms=function(){return!mxClient.NO_FO&&!mxClient.IS_SF};-mxPrintPreview.prototype.isCellVisible=function(a){return!0};mxPrintPreview.prototype.drawBackgroundImage=function(a){a.redraw()};+mxPrintPreview.prototype.writeHead=function(a,b){null!=this.title&&a.writeln("<title>"+mxUtils.htmlEntities(this.title)+"</title>");var c=mxClient.basePath;"/src"==c.substring(c.length-4)&&(c=c.substring(0,c.length-4));mxClient.link("stylesheet",c+"/css/common.css",a);a.writeln('<style type="text/css">');a.writeln(this.defaultCss);c=this.pageFormat;this.addPageCss&&null!=c&&null==this.pendingCss&&(c=(c.width/this.pixelsPerInch).toFixed(2)+"in "+(c.height/this.pixelsPerInch).toFixed(2)+"in",a.writeln("@page {"),+a.writeln(" margin: "+mxUtils.htmlEntities((this.pageMargin/this.pixelsPerInch).toFixed(2))+"in;"),a.writeln(" size: "+mxUtils.htmlEntities(c)+";"),a.writeln("}"));null!=b&&a.writeln(b.replace(/<\/style/gi,"<\\/style"));a.writeln("</style>")};mxPrintPreview.prototype.writePostfix=function(a){};mxPrintPreview.prototype.getRoot=function(){var a=this.graph.view.currentRoot;null==a&&(a=this.graph.getModel().getRoot());return a};+mxPrintPreview.prototype.useCssTransforms=function(){return!mxClient.NO_FO&&!mxClient.IS_SF};mxPrintPreview.prototype.isCellVisible=function(a){return!0};mxPrintPreview.prototype.drawBackgroundImage=function(a){a.redraw()};mxPrintPreview.prototype.addGraphFragment=function(a,b,c,d,e,f){var g=this.graph.getView();d=this.graph.container;this.graph.container=e;var k=g.getCanvas(),l=g.getBackgroundPane(),m=g.getDrawPane(),n=g.getOverlayPane(),p=c;if(this.graph.dialect==mxConstants.DIALECT_SVG){if(g.createSvg(),this.useCssTransforms()){var q=g.getDrawPane().parentNode;q.setAttribute("transformOrigin","0 0");q.setAttribute("transform","scale("+c+","+c+")translate("+a+","+b+")");c=1;b=a=0}}else g.createHtml();q=g.isEventsEnabled();g.setEventsEnabled(!1);var r=this.graph.isEnabled();this.graph.setEnabled(!1);var t=g.getTranslate();g.translate=new mxPoint(a,b);var u=this.graph.selectionCellsHandler.updateHandler;this.graph.selectionCellsHandler.updateHandler=function(){};var v=this.graph.cellRenderer.redraw,y=g.states,A=g.scale,z=null;if(this.printBackgroundImage){var x=this.getBackgroundImage();null!=x&&(z=new mxRectangle(Math.round(a*A+x.x),Math.round(b*A+x.y),x.width-1,x.height-1),z=new mxImageShape(z,x.src),z.dialect=this.graph.dialect)}if(this.clipping){var C=new mxRectangle((f.x+t.x+1.5)*A,(f.y+t.y+1.5)*A,(f.width-1.5)*A/p,(f.height-1.5)*A/p),D=this;this.graph.cellRenderer.redraw=function(E,K,G){if(null!=E){var L=y.get(E.cell);if(null!=L&&(L=g.getBoundingBox(L,!1),null!=L&&0<L.width&&0<L.height&&!mxUtils.intersects(C,L))||!D.isCellVisible(E.cell))return}v.apply(this,arguments)};null!=z&&(a=new mxRectangle(z.bounds.x*A+(t.x-a)*A,z.bounds.y*A+(t.y-b)*A,z.bounds.width*A,z.bounds.height*A),mxUtils.intersects(C,a)||(z=null))}null!=z&&(z.init(g.backgroundPane),@@ -2923,8 +2923,8 @@ mxText.prototype.getTextRotation=function(){var a=null!=this.state?Graph.getLabeGraph.prototype.defaultScrollbars=!0;Graph.prototype.defaultPageVisible=!0;Graph.prototype.defaultGridEnabled="0"!=urlParams.grid;Graph.prototype.defaultConnectionArrowsEnabled=!0;Graph.prototype.defaultConnectable=!0;Graph.prototype.defaultFoldingEnabled=!0;Graph.prototype.lightbox=!1;Graph.prototype.diagramBackgroundColor="#f0f0f0";Graph.prototype.enableDiagramBackground=!1;Graph.prototype.defaultPageBackgroundColor="1"==urlParams.embedInline?"transparent":Editor.getDefaultPageBackgroundColor();Graph.prototype.defaultPageBorderColor="light-dark(#ffffff, #000000)";Graph.prototype.shapeForegroundColor="light-dark(#000000, #ffffff)";Graph.prototype.shapeBackgroundColor="light-dark(#ffffff, var("+Editor.darkColorVar+", "+Editor.darkColor+"))";Graph.prototype.scrollTileSize=new mxRectangle(0,0,400,400);Graph.prototype.transparentBackground=!0;Graph.prototype.selectParentAfterDelete=!1;Graph.prototype.defaultEdgeLength=80;Graph.prototype.immediateHandling=!0;Graph.prototype.connectionArrowsEnabled=!0;Graph.prototype.placeholderPattern=RegExp("%(date{.*}|[^%{}\"'=;]+)%","g");Graph.prototype.absoluteUrlPattern=RegExp("^(?:[a-z]+:)?//","i");Graph.prototype.defaultThemeName="default";Graph.prototype.defaultThemes={};Graph.prototype.baseUrl=null!=urlParams.base?mxUtils.removeJavascriptProtocol(decodeURIComponent(urlParams.base)):(window!=window.top?document.referrer:document.location.toString()).split("#")[0];Graph.prototype.editAfterInsert=!1;-Graph.prototype.builtInProperties=["label","tooltip","placeholders","placeholder","note"];Graph.prototype.showNoteIcons=!0;Graph.prototype.standalone=!1;Graph.prototype.enableFlowAnimation=!1;Graph.prototype.roundableShapes="label rectangle internalStorage corner parallelogram swimlane triangle trapezoid ext step tee process link rhombus offPageConnector loopLimit hexagon manualInput card curlyBracket singleArrow callout doubleArrow flexArrow umlLifeline".split(" ");-Graph.prototype.vertexFontSize=null;Graph.prototype.edgeFontSize=null;Graph.prototype.adaptiveColors="auto";+Graph.prototype.builtInProperties=["label","tooltip","placeholders","placeholder","note"];Graph.prototype.builtInPropertyPrefixes=["plantUml","mermaid"];Graph.prototype.isBuiltInPropertyPrefix=function(a){for(var b=0;b<this.builtInPropertyPrefixes.length;b++)if(a.substring(0,this.builtInPropertyPrefixes[b].length)==this.builtInPropertyPrefixes[b])return!0;return!1};Graph.prototype.showNoteIcons=!0;Graph.prototype.standalone=!1;Graph.prototype.enableFlowAnimation=!1;+Graph.prototype.roundableShapes="label rectangle internalStorage corner parallelogram swimlane triangle trapezoid ext step tee process link rhombus offPageConnector loopLimit hexagon manualInput card curlyBracket singleArrow callout doubleArrow flexArrow umlLifeline".split(" ");Graph.prototype.vertexFontSize=null;Graph.prototype.edgeFontSize=null;Graph.prototype.adaptiveColors="auto";Graph.prototype.init=function(a){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(d,e){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var g=d.view.graph.tolerance,c=!0,h=null,k=mxUtils.bind(this,function(u){c=!0;h=new mxPoint(mxEvent.getClientX(u),mxEvent.getClientY(u))}),p=mxUtils.bind(this,function(u){c=c&&null!=h&&Math.abs(h.x-mxEvent.getClientX(u))<g&&Math.abs(h.y-mxEvent.getClientY(u))<g}),l=mxUtils.bind(this,function(u){if(c)for(var w=mxEvent.getSource(u);null!=w&&w!=e.node;){if("a"==w.nodeName.toLowerCase()){d.view.graph.labelLinkClicked(d,w,u);break}w=w.parentNode}});mxEvent.addGestureListeners(e.node,k,p,l);mxEvent.addListener(e.node,"click",function(u){mxEvent.consume(u)})};if(null!=this.tooltipHandler){var b=this.tooltipHandler.init;this.tooltipHandler.init=function(){b.apply(this,arguments);null!=this.div&&(null!=Editor.tooltipFontSize&&(this.div.style.fontSize=Editor.tooltipFontSize+"px"),0<Editor.tooltipMaxWidth&&(this.div.style.maxWidth=Editor.tooltipMaxWidth+"px"),mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(d){var e=mxEvent.getSource(d);"A"==e.nodeName&&(e=e.getAttribute("href"),null!=e&&this.graph.isCustomLink(e)&&(mxEvent.isTouchEvent(d)||!mxEvent.isPopupTrigger(d))&&this.graph.customLinkClicked(e)&&mxEvent.consume(d))})))}}this.initTransparentBoundsStyleSync();this.initLayoutManager()};@@ -3105,8 +3105,8 @@ a.height*this.view.scale)/2+b/2,0),g&&this.pageVisible&&(a=this.view.getBackgrouGraph.prototype.getCurrentViewBox=function(){var a=this.view,b=this.container,d=a.scale;a=a.translate;return{x:Math.round(b.scrollLeft/d-a.x),y:Math.round(b.scrollTop/d-a.y),width:Math.round(b.clientWidth/d),height:Math.round(b.clientHeight/d),scale:Math.round(1E4*d)/1E4}};Graph.prototype.convertValueToTooltip=function(a,b){var d=null;mxUtils.isNode(a.value)&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(d=a.value.getAttribute("tooltip_"+Graph.diagramLanguage)),null==d&&(d=a.value.getAttribute("tooltip")),null!=d&&(null!=d&&this.isReplacePlaceholders(a)&&(d=this.replacePlaceholders(a,d)),d=Graph.sanitizeHtml(d),b&&0<d.length&&0<Editor.tooltipMaxWidth&&(d='<div style="max-width:'+Editor.tooltipMaxWidth+'px;text-overflow:ellipsis;overflow:hidden;">'+d+"</div>")));return d};-Graph.prototype.getTooltipForCell=function(a){if(null!=window.urlParams&&"0"==urlParams.tooltips)return null;var b=this.getLockedGroupAncestor(a,!0);null!=b&&(a=b);b="";if(mxUtils.isNode(a.value)&&(b=this.convertValueToTooltip(a),null==b)){var d=this.builtInProperties;a=a.value.attributes;var e=[];b="";this.isEnabled()&&(d.push("linkTarget"),d.push("link"));for(var g=0;g<a.length;g++)(Graph.translateDiagram&&"label"==a[g].nodeName||0>mxUtils.indexOf(d,a[g].nodeName))&&0<a[g].nodeValue.length&&e.push({name:a[g].nodeName,-value:a[g].nodeValue});e.sort(function(c,h){return c.name<h.name?-1:c.name>h.name?1:0});for(g=0;g<e.length;g++)"link"==e[g].name&&this.isCustomLink(e[g].value)||(b+=("link"!=e[g].name?"<b>"+mxUtils.htmlEntities(e[g].name)+":</b> ":"")+mxUtils.htmlEntities(e[g].value)+"\n");0<b.length&&(b=b.substring(0,b.length-1),mxClient.IS_SVG&&(b='<div style="max-width:360px;text-overflow:ellipsis;overflow:hidden;">'+b+"</div>"))}return b};+Graph.prototype.getTooltipForCell=function(a){if(null!=window.urlParams&&"0"==urlParams.tooltips)return null;var b=this.getLockedGroupAncestor(a,!0);null!=b&&(a=b);b="";if(mxUtils.isNode(a.value)&&(b=this.convertValueToTooltip(a),null==b)){var d=this.builtInProperties.slice();a=a.value.attributes;var e=[];b="";this.isEnabled()&&(d.push("linkTarget"),d.push("link"));for(var g=0;g<a.length;g++)(Graph.translateDiagram&&"label"==a[g].nodeName||0>mxUtils.indexOf(d,a[g].nodeName)&&!this.isBuiltInPropertyPrefix(a[g].nodeName))&&0<+a[g].nodeValue.length&&e.push({name:a[g].nodeName,value:a[g].nodeValue});e.sort(function(c,h){return c.name<h.name?-1:c.name>h.name?1:0});for(g=0;g<e.length;g++)"link"==e[g].name&&this.isCustomLink(e[g].value)||(b+=("link"!=e[g].name?"<b>"+mxUtils.htmlEntities(e[g].name)+":</b> ":"")+mxUtils.htmlEntities(e[g].value)+"\n");0<b.length&&(b=b.substring(0,b.length-1),mxClient.IS_SVG&&(b='<div style="max-width:360px;text-overflow:ellipsis;overflow:hidden;">'+b+"</div>"))}return b};Graph.prototype.getTooltip=function(a,b,d,e){if(null!=a&&null!=a.overlays){var g=!1;a.overlays.visit(function(c,h){null==h.overlay||!h.overlay.isTooltipOverlay||b!=h.node&&b.parentNode!=h.node||(g=!0)});if(g)return this.convertValueToTooltip(a.cell,!0)}return mxGraph.prototype.getTooltip.apply(this,arguments)};Graph.prototype.addFlowAnimationToNode=function(a,b,d,e){if(null!=a&&null!=e){var g=a.getAttribute("stroke-dasharray");if(""==g||null==g){var c=String(mxUtils.getValue(b,mxConstants.STYLE_DASH_PATTERN,"8")).split(" ");g=1==mxUtils.getValue(b,mxConstants.STYLE_FIX_DASH,!1)||null==b.dashPattern?1:mxUtils.getNumber(b,mxConstants.STYLE_STROKEWIDTH,1);if(0<c.length)for(var h=0;h<c.length;h++)c[h]=Math.round(Number(c[h])*d*g*100)/100;a.setAttribute("stroke-dasharray",c.join(" "))}else c=g.split(" ");if(0<c.length){for(h=g=0;h<c.length;h++){var k=parseFloat(c[h]);isNaN(k)||(g+=parseFloat(c[h]))}0!=c.length%2&&(g*=2);d=Math.round(g/d/16*parseInt(mxUtils.getValue(b,"flowAnimationDuration",500)));c=mxUtils.getValue(b,"flowAnimationTimingFunction","linear");b=mxUtils.getValue(b,"flowAnimationDirection","normal");a.style.animation=e+" "+d+"ms "+mxUtils.htmlEntities(c)+" infinite "+mxUtils.htmlEntities(b);a.style.strokeDashoffset=g}}};@@ -4629,57 +4629,57 @@ Sidebar.prototype.archimate4="Common;Relationships and Junctions;Motivation;Straprefix:"mockup",libs:"Buttons Containers Forms Graphics Markup Misc Navigation Text".split(" ")},{id:"pid2",prefix:"pid2",libs:"Agitators;Apparatus Elements;Centrifuges;Compressors;Compressors ISO;Crushers Grinding;Driers;Engines;Feeders;Filters;Fittings;Flow Sensors;Heat Exchangers;Instruments;Misc;Mixers;Piping;Pumps;Pumps DIN;Pumps ISO;Separators;Shaping Machines;Valves;Vessels".split(";")},{id:"salesforce",prefix:"salesforce",libs:["Components","Product","Platform","Industry"]},{id:"signs",prefix:"signs",libs:Sidebar.prototype.signs},{id:"gcp",prefix:"gcp",libs:Sidebar.prototype.gcp},{id:"gcp2",prefix:"gcp2",libs:Sidebar.prototype.gcp2},{id:"gcp3",prefix:"gcp3",libs:Sidebar.prototype.gcp3},{id:"gcpicons",prefix:"gcpicons",libs:Sidebar.prototype.gcpicons},{id:"rack",prefix:"rack",libs:Sidebar.prototype.rack},{id:"electrical",prefix:"electrical",libs:Sidebar.prototype.electrical},{id:"aws2",prefix:"aws2",libs:Sidebar.prototype.aws2},{id:"aws3",prefix:"aws3",libs:Sidebar.prototype.aws3},{id:"aws4b",prefix:"aws4b",libs:Sidebar.prototype.aws4b},{id:"sap",prefix:"sap",libs:Sidebar.prototype.sap},{id:"aws4",prefix:"aws4",libs:Sidebar.prototype.aws4},{id:"pid",prefix:"pid",libs:Sidebar.prototype.pids},{id:"cisco",prefix:"cisco",libs:Sidebar.prototype.cisco},{id:"cisco_safe",prefix:"cisco_safe",libs:Sidebar.prototype.cisco_safe},{id:"office",prefix:"office",libs:Sidebar.prototype.office},{id:"openstack",prefix:"openstack",libs:Sidebar.prototype.openstack},{id:"veeam",prefix:"veeam",libs:Sidebar.prototype.veeam},-{id:"veeam2",prefix:"veeam2",libs:Sidebar.prototype.veeam2},{id:"cabinets",libs:["cabinets"]},{id:"floorplan",libs:["floorplan"]},{id:"bootstrap",libs:["bootstrap"]},{id:"atlassian",libs:["atlassian"]},{id:"fluid_power",libs:["fluid_power"]},{id:"gmdl",prefix:"gmdl",libs:Sidebar.prototype.gmdl},{id:"archimate4",prefix:"archimate4",libs:Sidebar.prototype.archimate4},{id:"archimate3",prefix:"archimate3",libs:Sidebar.prototype.archimate3},{id:"archimate",libs:["archimate"]},{id:"webicons",libs:["webicons",-"weblogos"]},{id:"sysml",prefix:"sysml",libs:Sidebar.prototype.sysml}];var a=Sidebar.prototype.addEntry;Sidebar.prototype.addEntry=function(k,l){return null!=this.currentSearchEntryLibrary&&null!=this.enabledLibraries&&0>mxUtils.indexOf(this.enabledLibraries,this.currentSearchEntryLibrary.id)?l:a.apply(this,arguments)};var c=Sidebar.prototype.refresh;Sidebar.prototype.refresh=function(){var k=this.editorUi;c.apply(this,arguments);null!=k.scratchpad&&k.loadLibrary(new StorageLibrary(k,k.scratchpad.getData(),-".scratchpad"))};Sidebar.prototype.togglePalettes=function(k,l){this.showPalettes(k,l)};Sidebar.prototype.togglePalette=function(k){this.showPalette(k)};Sidebar.prototype.showPalettes=function(k,l,n){for(var p=[],q=0;q<l.length;q++)p=p.concat(this.showPalette(k+l[q],n));return p};Sidebar.prototype.showPalette=function(k,l){k=this.palettes[k];if(null!=k){l=null!=l?l?"":"none":"none"==k[0].style.display?"":"none";for(var n=0;n<k.length;n++)k[n].style.display=l}return k};Sidebar.prototype.getConfigurationById=-function(k){for(var l=0;l<this.configuration.length;l++)if(this.configuration[l].id==k)return this.configuration[l];if(null!=this.customEntries)for(l=0;l<this.customEntries.length;l++)for(var n=this.customEntries[l]||{},p=0;null!=n.entries&&p<n.entries.length;p++){var q=n.entries[p];if(q.id==k)return{id:q.id,libs:q.libs}}return null};Sidebar.prototype.isEntryVisible=function(k){if(".scratchpad"==k)return null!=this.editorUi.scratchpad;var l=this.getConfigurationById(k);if(null!=l){var n=this.palettes[null!=-l.libs?(l.prefix||"")+l.libs[0]:k];if(null!=n)return"none"!=n[0].style.display}if(null!=this.customEntries)for(l=0;l<this.customEntries.length;l++){n=this.customEntries[l]||{};for(var p=0;null!=n.entries&&p<n.entries.length;p++){var q=n.entries[p];if(q.id==k){if(null!=q.libs&&0<q.libs.length&&(n=this.palettes[q.id+".0"],null!=n))return"none"!=n[0].style.display;break}}}return!1};Sidebar.prototype.showEntries=function(k,l,n){var p=[];l&&(mxSettings.setLibraries(k),mxSettings.save());null!=k&&(n||0<-k.length)?p.push(k):(k=!1,null!=urlParams.libs&&0<urlParams.libs.length&&(p.push(decodeURIComponent(urlParams.libs)),k="draw.io"==this.editorUi.getServiceName()),k||(null!=mxSettings&&null!=mxSettings.settings?p.push(mxSettings.getLibraries()):p.push(this.defaultEntries)));l=p.join(";").split(";");p={};for(k=0;k<l.length;k++)p[this.libAliases[l[k]]||l[k]]=!0;for(k=0;k<this.configuration.length;k++)"search"!=this.configuration[k].id&&this.showPalettes(this.configuration[k].prefix||"",this.configuration[k].libs||-[this.configuration[k].id],1==p[this.configuration[k].id]);if(null!=this.customEntries)for(k=0;k<this.customEntries.length;k++)for(l=this.customEntries[k]||{},n=0;null!=l.entries&&n<l.entries.length;n++){var q=l.entries[n];if(null!=q.libs&&0<q.libs.length){for(var r=[],t=0;t<q.libs.length;t++)r.push(q.id+"."+t);this.showPalettes("",r,1==p[q.id])}}};Sidebar.prototype.init=function(){this.updateEntries();this.addStencilsToIndex=!1;this.shapetags={};null!=this.tagIndex&&(this.addTagIndex(Graph.decompress(this.tagIndex)),-this.tagIndex=null);this.initPalettes();this.defaultPaletteOrder=this.getCurrentPaletteOrder();this.applyPaletteOrder()};Sidebar.prototype.updateEntries=function(){var k=[{title:mxResources.get("general"),id:"general",image:IMAGE_PATH+"/sidebar-general.png"},{title:mxResources.get("basic"),id:"basic",image:IMAGE_PATH+"/sidebar-basic.png"},{title:mxResources.get("arrows"),id:"arrows2",image:IMAGE_PATH+"/sidebar-arrows2.png"},{title:mxResources.get("clipart"),id:"clipart",image:IMAGE_PATH+"/sidebar-clipart.png"},-{title:mxResources.get("flowchart"),id:"flowchart",image:IMAGE_PATH+"/sidebar-flowchart.png"}];if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme)k=[{title:mxResources.get("searchShapes"),id:"search"},{title:mxResources.get("scratchpad"),id:".scratchpad"}].concat(k);var l=(new Date).getFullYear();this.entries=[{title:mxResources.get("standard"),entries:k},{title:mxResources.get("software"),entries:[{title:"Active Directory",id:"active_directory",image:IMAGE_PATH+-"/sidebar-active_directory.png"},{title:mxResources.get("android"),id:"android",image:IMAGE_PATH+"/sidebar-android.png"},{title:"Atlassian",id:"atlassian",image:IMAGE_PATH+"/sidebar-atlassian.png"},{title:mxResources.get("bootstrap"),id:"bootstrap",image:IMAGE_PATH+"/sidebar-bootstrap.png"},{title:"C4",id:"c4",image:IMAGE_PATH+"/sidebar-c4.png"},{title:"Data Flow Diagram",id:"dfd",image:IMAGE_PATH+"/sidebar-dfd.png"},{title:mxResources.get("entityRelation"),id:"er",image:IMAGE_PATH+"/sidebar-er.png"},-{title:mxResources.get("ios"),id:"ios",image:IMAGE_PATH+"/sidebar-ios.png"},{title:mxResources.get("mockups"),id:"mockups",image:IMAGE_PATH+"/sidebar-mockups.png"},{title:"Sitemap",id:"sitemap",image:IMAGE_PATH+"/sidebar-sitemap.png"},{title:"Salesforce",id:"salesforce",image:IMAGE_PATH+"/sidebar-salesforce.png"},{title:mxResources.get("uml")+" 2.5",id:"uml25",image:IMAGE_PATH+"/sidebar-uml25.png"},{title:mxResources.get("uml"),id:"uml",image:IMAGE_PATH+"/sidebar-uml.png"}]},{title:mxResources.get("networking"),-entries:[{title:"Alibaba Cloud",id:"alibaba_cloud",image:IMAGE_PATH+"/sidebar-alibaba_cloud.png"},{title:"Allied Telesis",id:"allied_telesis",image:IMAGE_PATH+"/sidebar-allied_telesis.png"},{title:"AWS17",id:"aws3",image:IMAGE_PATH+"/sidebar-aws3.png"},{title:"AWS18",id:"aws4b",image:IMAGE_PATH+"/sidebar-aws4b.png"},{title:"AWS "+l,id:"aws4",image:IMAGE_PATH+"/sidebar-aws4.png"},{title:mxResources.get("aws3d"),id:"aws3d",image:IMAGE_PATH+"/sidebar-aws3d.png"},{title:mxResources.get("azure"),id:"azure2",-image:IMAGE_PATH+"/sidebar-azure.png"},{title:"Cloud & Enterprise",id:"mscae",image:IMAGE_PATH+"/sidebar-mscae.png"},{title:mxResources.get("cisco"),id:"cisco",image:IMAGE_PATH+"/sidebar-cisco.png"},{title:"Cisco19",id:"cisco19",image:IMAGE_PATH+"/sidebar-cisco19.png"},{title:"Cisco Safe",id:"cisco_safe",image:IMAGE_PATH+"/sidebar-cisco_safe.png"},{title:"Cumulus",id:"cumulus",image:IMAGE_PATH+"/sidebar-cumulus.png"},{title:"Citrix",id:"citrix2",image:IMAGE_PATH+"/sidebar-citrix2.png"},{title:"Citrix (legacy)",-id:"citrix",image:IMAGE_PATH+"/sidebar-citrix.png"},{title:"Dynamics365",id:"dynamics365",image:IMAGE_PATH+"/sidebar-dynamics365.png"},{title:"Google Cloud Platform",id:"gcp2",image:IMAGE_PATH+"/sidebar-gcp2.png"},{title:"Google Cloud Platform 2026",id:"gcp3",image:IMAGE_PATH+"/sidebar-gcp3.png"},{title:"GCP Icons",id:"gcpicons",image:IMAGE_PATH+"/sidebar-gcpicons.png"},{title:"IBM",id:"ibm",image:IMAGE_PATH+"/sidebar-ibm.png"},{title:"IBM Cloud",id:"ibm_cloud",image:IMAGE_PATH+"/sidebar-ibmcloud.png"},-{title:"Kubernetes",id:"kubernetes",image:IMAGE_PATH+"/sidebar-kubernetes.png"},{title:"Network 2025",id:"network2",image:IMAGE_PATH+"/sidebar-network2.png"},{title:"Network 2018",id:"network",image:IMAGE_PATH+"/sidebar-network.png"},{title:"Office",id:"office",image:IMAGE_PATH+"/sidebar-office.png"},{title:"OpenStack",id:"openstack",image:IMAGE_PATH+"/sidebar-openstack.png"},{title:mxResources.get("rack"),id:"rack",image:IMAGE_PATH+"/sidebar-rack.png"},{title:"SAP",id:"sap",image:IMAGE_PATH+"/sidebar-sap.png"},-{title:"Veeam",id:"veeam2",image:IMAGE_PATH+"/sidebar-veeam.png"},{title:"VMware",id:"vvd",image:IMAGE_PATH+"/sidebar-vvd.png"}]},{title:mxResources.get("business"),entries:[{title:"ArchiMate 4",id:"archimate4",image:IMAGE_PATH+"/sidebar-archimate4.png"},{title:"ArchiMate 3.2",id:"archimate3",image:IMAGE_PATH+"/sidebar-archimate3.png"},{title:mxResources.get("archiMate21"),id:"archimate",image:IMAGE_PATH+"/sidebar-archimate.png"},{title:mxResources.get("bpmn")+" 2.0",id:"bpmn2",image:IMAGE_PATH+"/sidebar-bpmn.png"},-{title:mxResources.get("sysml"),id:"sysml",image:IMAGE_PATH+"/sidebar-sysml.png"},{title:"Value Stream Mapping",id:"lean_mapping",image:IMAGE_PATH+"/sidebar-leanmapping.png"}]},{title:mxResources.get("other"),entries:[{title:mxResources.get("cabinets"),id:"cabinets",image:IMAGE_PATH+"/sidebar-cabinets.png"},{title:"Infographic",id:"infographic",image:IMAGE_PATH+"/sidebar-infographic.png"},{title:mxResources.get("eip"),id:"eip",image:IMAGE_PATH+"/sidebar-eip.png"},{title:mxResources.get("electrical"),-id:"electrical",image:IMAGE_PATH+"/sidebar-electrical.png"},{title:mxResources.get("floorplans"),id:"floorplan",image:IMAGE_PATH+"/sidebar-floorplans.png"},{title:"Fluid Power (ISO 1219)",id:"fluid_power",image:IMAGE_PATH+"/sidebar-fluid_power.png"},{title:mxResources.get("gmdl"),id:"gmdl",image:IMAGE_PATH+"/sidebar-gmdl.png"},{title:mxResources.get("procEng"),id:"pid",image:IMAGE_PATH+"/sidebar-pid.png"},{title:"Threat Modeling",id:"threatModeling",image:IMAGE_PATH+"/sidebar-threatmodeling.png"},-{title:"Web Icons",id:"webicons",image:IMAGE_PATH+"/sidebar-webIcons.png"},{title:mxResources.get("signs"),id:"signs",image:IMAGE_PATH+"/sidebar-signs.png"}]}]};"1"==urlParams.savesidebar&&(Sidebar.prototype.addFoldingHandler=function(k,l,n){var p=!1;k.style.backgroundImage="none"==l.style.display?"url('"+Editor.arrowRightImage+"')":"url('"+Editor.arrowDownImage+"')";var q=document.createElement("button");q.style.margin="0 4px";mxUtils.write(q,"Save");"none"!=l.style.display&&k.appendChild(q);mxEvent.addListener(k,-"click",mxUtils.bind(this,function(r){if("BUTTON"==mxEvent.getSource(r).nodeName){r=l.getElementsByTagName("svg");var t=68*Math.ceil(r.length/6)+36,v=Graph.createSvgNode(0,0,432,t,mxUtils.getLightDarkColor("#ffffff"));v.ownerDocument.documentElement.style.setProperty("--ge-panel-color","#ffffff");v.ownerDocument.documentElement.style.setProperty("--ge-dark-panel-color",Editor.darkColor);var w=new mxSvgCanvas2D(v);w.setFontFamily(mxConstants.DEFAULT_FONTFAMILY);w.setFontStyle(mxConstants.FONT_BOLD);-w.setFontColor("rgb(80, 80, 80)");w.setFontSize(14);for(var u=k.getElementsByTagName("span"),x=0;x<u.length;x++){var y=mxUtils.getTextContent(u[x]);if(""!=y){w.text(6,0,0,0,y);break}}for(x=0;x<r.length;x++)w=r[x].cloneNode(!0),w.removeAttribute("style"),w.setAttribute("width",this.thumbWidth),w.setAttribute("height",this.thumbHeight),w.setAttribute("x",12+68*mxUtils.mod(x,6)),w.setAttribute("y",24+68*Math.floor(x/6)),v.appendChild(w);this.editorUi.editor.convertImages(v,mxUtils.bind(this,function(B){var z=-document.createElement("canvas");z.width=432;z.height=t;var C=document.createElement("img");C.onload=mxUtils.bind(this,function(){z.getContext("2d").drawImage(C,0,0);this.editorUi.saveCanvas(z,null,"png")});B=Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(v);C.src=Editor.createSvgDataUri(B)}))}else{if("none"==l.style.display){if(p)k.appendChild(q);else if(p=!0,null!=n){null!=q.parentNode&&q.parentNode.removeChild(q);k.style.cursor="wait";var A=k.innerHTML;k.innerHTML=mxResources.get("loading")+-"...";window.setTimeout(function(){n(l);k.style.cursor="";k.innerHTML=A;k.appendChild(q)},0)}else k.appendChild(q);k.style.backgroundImage="url('"+Editor.arrowDownImage+"')";l.style.display="block"}else k.style.backgroundImage="url('"+Editor.arrowRightImage+"')",l.style.display="none",null!=q.parentNode&&q.parentNode.removeChild(q);mxEvent.consume(r)}}))});var e=Sidebar.prototype.addPalette;Sidebar.prototype.addPalette=function(k,l,n,p,q){n=this.editorUi.getLibraryExpanded(k,n);l=e.call(this,k,l,-n,p,q);null!=k&&null!=this.palettes[k]&&(this.palettes[k][0]._paletteId=k,n=this.palettes[k][1].firstChild,null!=n&&(n._paletteId=k),"search"!=k&&this.installPaletteDragReorder(this.palettes[k][0],this.palettes[k][1],k),this.installPaletteContextMenu(this.palettes[k][0],k),null!=this._applyOrderTimer&&window.clearTimeout(this._applyOrderTimer),this._applyOrderTimer=window.setTimeout(mxUtils.bind(this,function(){this._applyOrderTimer=null;this.applyPaletteOrder()}),0));return l};var b=Sidebar.prototype.setContentVisible;-Sidebar.prototype.setContentVisible=function(k,l){b.apply(this,arguments);null!=k._paletteId&&this.editorUi.setLibraryExpanded(k._paletteId,l)};Sidebar.prototype.installPaletteDragReorder=function(k,l,n){var p=this,q=mxClient.IS_POINTER?"pointermove":"mousemove",r=mxClient.IS_POINTER?"pointerup":"mouseup";mxEvent.addListener(k,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(t){if(0==t.button){var v=t.clientY,w=!1,u=!1,x=null,y=mxUtils.bind(this,function(B){var z=B.clientY--v;if(w){null!=x&&(k.getBoundingClientRect(),x.style.top=B.clientY-x.offsetHeight/2+"px");z=p.getEntryContainer();for(var C=z.childNodes,D=null,F=0;F<C.length;F++){var E=C[F];if(!(null==E._paletteId||null==E.className||0>E.className.indexOf("geTitle")||"search"==E._paletteId||"none"==E.style.display||E._paletteId==n)){var G=E.getBoundingClientRect(),H=E.nextSibling;H=null!=H&&null!=H.firstChild&&"none"!=H.firstChild.style.display?H.getBoundingClientRect().bottom:G.bottom;if(B.clientY<(G.top+H)/2){D=-E;break}}}null!=D?l.nextSibling!=D&&(z.insertBefore(k,D),z.insertBefore(l,D),u=!0):z.lastChild!=l&&(z.appendChild(k),z.appendChild(l),u=!0);C=z.getBoundingClientRect();30>B.clientY-C.top?z.scrollTop-=10:30>C.bottom-B.clientY&&(z.scrollTop+=10);B.preventDefault()}else 20<Math.abs(z)&&(w=!0,p._paletteDragging=!0,p.container.classList.add("gePaletteDragging"),z=k.getBoundingClientRect(),x=k.cloneNode(!0),x.style.position="fixed",x.style.zIndex="10001",x.style.width=z.width+"px",x.style.left=z.left+"px",-x.style.top=B.clientY-z.height/2+"px",x.style.pointerEvents="none",x.style.opacity="0.8",x.style.boxShadow="0 2px 8px rgba(0,0,0,0.15)",document.body.appendChild(x),k.classList.add("gePaletteDragPlaceholder"),l.style.display="none")}),A=mxUtils.bind(this,function(B){w&&u&&p.savePaletteOrder();w&&(p.container.classList.remove("gePaletteDragging"),k.classList.remove("gePaletteDragPlaceholder"),l.style.display="",null!=x&&null!=x.parentNode&&(x.parentNode.removeChild(x),x=null),window.setTimeout(function(){p._paletteDragging=-!1},100));document.removeEventListener(q,y);document.removeEventListener(r,A)});document.addEventListener(q,y);document.addEventListener(r,A)}}))};Sidebar.prototype.installPaletteContextMenu=function(k,l){var n=this;mxEvent.addListener(k,"contextmenu",mxUtils.bind(this,function(p){mxEvent.consume(p);var q=document.createElement("div");q.className="mxPopupMenu geMenubarMenu";q.style.position="absolute";q.style.zIndex="10001";q.style.left=p.clientX+"px";q.style.top=p.clientY+"px";p=document.createElement("table");-p.className="mxPopupMenu";var r=document.createElement("tbody");p.appendChild(r);q.appendChild(p);var t=function(){null!=q.parentNode&&q.parentNode.removeChild(q);document.removeEventListener("mousedown",v)},v=function(x){q.contains(x.target)||t()};p=function(x,y){var A=document.createElement("tr");A.className="mxPopupMenuItem";var B=document.createElement("td");B.className="mxPopupMenuItem";B.style.padding="6px 10px";B.style.cursor="pointer";mxUtils.write(B,x);A.appendChild(B);r.appendChild(A);mxEvent.addListener(A,-"mouseup",function(){t();y()});mxEvent.addListener(A,"mouseenter",function(){A.className="mxPopupMenuItem mxPopupMenuItemHover"});mxEvent.addListener(A,"mouseleave",function(){A.className="mxPopupMenuItem"})};var w=function(){var x=document.createElement("tr"),y=document.createElement("td");y.style.padding="0";var A=document.createElement("hr");A.style.cssText="border:none;border-top:1px solid light-dark(#e0e0e0,#444);margin:4px 0";y.appendChild(A);x.appendChild(y);r.appendChild(x)},u=n.palettes[l];-u=null!=u?u[1].firstChild:null;p(mxResources.get(null!=u&&"none"!=u.style.display?"collapse":"expand"),function(){k.click()});w();p(mxResources.get("collapseAll"),function(){n.setAllPalettesExpanded(!1)});p(mxResources.get("expandAll"),function(){n.setAllPalettesExpanded(!0)});"search"!=l&&null!=mxSettings.getLibraryOrder()&&(w(),p(mxResources.get("reset"),function(){n.resetPaletteOrder()}));document.body.appendChild(q);mxUtils.fit(q);document.addEventListener("mousedown",v)}))};Sidebar.prototype.setAllPalettesExpanded=-function(k){for(var l in this.palettes){var n=this.palettes[l];if(null!=n){var p=n[0];n=n[1].firstChild;null!=p&&null!=n&&"none"!=n.style.display!=k&&p.click()}}};Sidebar.prototype.movePalette=function(k,l){var n=this.palettes[k];if(null!=n){k=n[0];n=n[1];var p=this.getEntryContainer();null!=l?(l=this.palettes[l],null!=l&&(p.insertBefore(k,l[0]),p.insertBefore(n,l[0]))):(p.appendChild(k),p.appendChild(n));this.savePaletteOrder()}};Sidebar.prototype.getCurrentPaletteOrder=function(){for(var k=[],l=-this.getEntryContainer().childNodes,n=0;n<l.length;n++)null!=l[n]._paletteId&&null!=l[n].className&&0<=l[n].className.indexOf("geTitle")&&k.push(l[n]._paletteId);return k};Sidebar.prototype.savePaletteOrder=function(){var k=this.getCurrentPaletteOrder();mxSettings.setLibraryOrder(k);mxSettings.save()};Sidebar.prototype.applyPaletteOrder=function(){var k=mxSettings.getLibraryOrder();if(null!=k&&0!=k.length)for(var l=this.getEntryContainer(),n=0;n<k.length;n++){var p=this.palettes[k[n]];null!=p&&p[0].parentNode==-l&&(l.appendChild(p[0]),l.appendChild(p[1]))}};Sidebar.prototype.resetPaletteOrder=function(){mxSettings.setLibraryOrder(null);mxSettings.save();if(null!=this.defaultPaletteOrder)for(var k=this.getEntryContainer(),l=0;l<this.defaultPaletteOrder.length;l++){var n=this.palettes[this.defaultPaletteOrder[l]];null!=n&&n[0].parentNode==k&&(k.appendChild(n[0]),k.appendChild(n[1]))}};Sidebar.prototype.extractShapeStyle=function(k){if(null!=k&&"shape="==k.substring(0,6)){var l=k.indexOf(";");0>l&&(l=k.length);-return k.substring(6,l)}return null};var d=Sidebar.prototype.getTagsForStencil;Sidebar.prototype.getTagsForStencil=function(k,l,n){var p=d.apply(this,arguments);null!=this.shapetags&&(k=k.toLowerCase(),l=l.toLowerCase(),null!=this.shapetags[k]&&p.push(this.shapetags[k]),l=k+"."+l,null!=this.shapetags[l]&&p.push(this.shapetags[l]));return p};Sidebar.prototype.addTagIndex=function(k){k=String(k).split("\n");for(var l=0;l<k.length;l++)if(null!=k[l]){var n=k[l].split("\t");if(1<n.length){var p=n[0].toLowerCase().replace(" ",-"_");n=mxUtils.trim(n.slice(1,n.length).join(" ").toLowerCase());0<n.length&&(this.shapetags[p]=n)}}};Sidebar.prototype.getUniqueLibraries=function(k){for(var l={},n=[],p=0;p<k.length;p++){var q=JSON.stringify(k[p]);null==l[q]&&(l[q]=!0,n.push(k[p]))}return n};Sidebar.prototype.openLibraries=function(k){k=this.getUniqueLibraries(k);for(var l=null,n=0;n<k.length;n++){var p=this.getConfigurationById(k[n].id);null!=p&&(p=this.openLibrary(p,k[n].lib||k[n].id),null!=p&&null==l&&(l=p))}null!=l&&window.setTimeout(function(){l[0].scrollIntoView({behavior:"smooth"})},-0)};Sidebar.prototype.openLibrary=function(k,l){this.showPalettes(k.prefix||"",k.libs||[k.id],!0);k=this.showPalette(l,!0);null!=k&&1<k.length&&null!=k[1].firstChild&&(null==k[1].firstChild.firstChild||"none"==k[1].firstChild.style.display)&&k[0].click();return k};Sidebar.prototype.showPopupMenuForEntry=function(k,l,n){if(null!=l&&0<l.length){var p=mxUtils.getOffset(k);this.editorUi.showPopupMenu(mxUtils.bind(this,function(q,r){q.addItem(mxResources.get("openLibrary"),null,mxUtils.bind(this,function(){this.openLibraries(l)}))}),-p.x,p.y+k.offsetHeight,n);mxEvent.consume(n)}};Sidebar.prototype.addSearchIndex=function(k){if(null!=k)for(var l=0;l<k.length;l++)if(null!=k[l].style){var n=k[l].style,p=this.extractShapeStyle(n);if(null!=p){var q=p.lastIndexOf(".");if(0<q){var r=p.substring(0,q);p=p.substring(q+1,p.length);q=this.getTagsForStencil(r,p,k[l].tags);if(null!=q){var t=n.indexOf(";");n="shape="+r+"."+p.toLowerCase()+";"+(0>t?"":n.substring(t+1));this.setCurrentSearchEntryLibrary(k[l].id,k[l].lib);this.createVertexTemplateEntry(n,-parseInt(k[l].w),parseInt(k[l].h),"",p.replace(/_/g," "),null,null,this.filterTags(q.join(" ")));null!=this.currentSearchEntryLibrary&&this.addLibForStyle(this.getKeyStyle(n),this.currentSearchEntryLibrary);this.setCurrentSearchEntryLibrary()}}}}};Sidebar.prototype.initPalettes=function(){var k=GRAPH_IMAGE_PATH,l=STENCIL_PATH,n=this.signs,p=this.rack,q=this.pids,r=this.cisco,t=this.sysml;"1"==urlParams.createindex&&(this.createdSearchIndex=[]);this.addSearchPalette(!0);this.appendCustomLibraries||-this.addCustomEntries();this.addGeneralPalette(null==this.customEntries);this.addMiscPalette(!1);this.addAdvancedPalette(!1);this.addBasicPalette();this.addStencilPalette("arrows",mxResources.get("arrows"),l+"/arrows.xml",";html=1;"+mxConstants.STYLE_VERTICAL_LABEL_POSITION+"=bottom;"+mxConstants.STYLE_VERTICAL_ALIGN+"=top;"+mxConstants.STYLE_STROKEWIDTH+"=2;strokeColor=#000000;",null,null,null,null,null,"arrows");this.addArrows2Palette();this.setCurrentSearchEntryLibrary("clipart","computer");this.addImagePalette("computer",-"Clipart / Computer",k+"/lib/clip_art/computers/","_128x128.png","Antivirus Data_Filtering Database Database_Add Database_Minus Database_Move_Stack Database_Remove Fujitsu_Tablet Harddrive IBM_Tablet iMac iPad Laptop MacBook Mainframe Monitor Monitor_Tower Monitor_Tower_Behind Netbook Network Network_2 Printer Printer_Commercial Secure_System Server Server_Rack Server_Rack_Empty Server_Rack_Partial Server_Tower Software Stylus Touch USB_Hub Virtual_Application Virtual_Machine Virus Workstation".split(" "),+{id:"veeam2",prefix:"veeam2",libs:Sidebar.prototype.veeam2},{id:"cabinets",libs:["cabinets"]},{id:"floorplan",libs:["floorplan"]},{id:"bootstrap",libs:["bootstrap"]},{id:"atlassian",libs:["atlassian"]},{id:"atlassian2",prefix:"atlassian2",libs:["Apps","Work Types","Logos"]},{id:"fluid_power",libs:["fluid_power"]},{id:"gmdl",prefix:"gmdl",libs:Sidebar.prototype.gmdl},{id:"archimate4",prefix:"archimate4",libs:Sidebar.prototype.archimate4},{id:"archimate3",prefix:"archimate3",libs:Sidebar.prototype.archimate3},+{id:"archimate",libs:["archimate"]},{id:"webicons",libs:["webicons","weblogos"]},{id:"sysml",prefix:"sysml",libs:Sidebar.prototype.sysml}];var a=Sidebar.prototype.addEntry;Sidebar.prototype.addEntry=function(k,l){return null!=this.currentSearchEntryLibrary&&null!=this.enabledLibraries&&0>mxUtils.indexOf(this.enabledLibraries,this.currentSearchEntryLibrary.id)?l:a.apply(this,arguments)};var c=Sidebar.prototype.refresh;Sidebar.prototype.refresh=function(){var k=this.editorUi;c.apply(this,arguments);+null!=k.scratchpad&&k.loadLibrary(new StorageLibrary(k,k.scratchpad.getData(),".scratchpad"))};Sidebar.prototype.togglePalettes=function(k,l){this.showPalettes(k,l)};Sidebar.prototype.togglePalette=function(k){this.showPalette(k)};Sidebar.prototype.showPalettes=function(k,l,n){for(var p=[],q=0;q<l.length;q++)p=p.concat(this.showPalette(k+l[q],n));return p};Sidebar.prototype.showPalette=function(k,l){k=this.palettes[k];if(null!=k){l=null!=l?l?"":"none":"none"==k[0].style.display?"":"none";for(var n=+0;n<k.length;n++)k[n].style.display=l}return k};Sidebar.prototype.getConfigurationById=function(k){for(var l=0;l<this.configuration.length;l++)if(this.configuration[l].id==k)return this.configuration[l];if(null!=this.customEntries)for(l=0;l<this.customEntries.length;l++)for(var n=this.customEntries[l]||{},p=0;null!=n.entries&&p<n.entries.length;p++){var q=n.entries[p];if(q.id==k)return{id:q.id,libs:q.libs}}return null};Sidebar.prototype.isEntryVisible=function(k){if(".scratchpad"==k)return null!=+this.editorUi.scratchpad;var l=this.getConfigurationById(k);if(null!=l){var n=this.palettes[null!=l.libs?(l.prefix||"")+l.libs[0]:k];if(null!=n)return"none"!=n[0].style.display}if(null!=this.customEntries)for(l=0;l<this.customEntries.length;l++){n=this.customEntries[l]||{};for(var p=0;null!=n.entries&&p<n.entries.length;p++){var q=n.entries[p];if(q.id==k){if(null!=q.libs&&0<q.libs.length&&(n=this.palettes[q.id+".0"],null!=n))return"none"!=n[0].style.display;break}}}return!1};Sidebar.prototype.showEntries=+function(k,l,n){var p=[];l&&(mxSettings.setLibraries(k),mxSettings.save());null!=k&&(n||0<k.length)?p.push(k):(k=!1,null!=urlParams.libs&&0<urlParams.libs.length&&(p.push(decodeURIComponent(urlParams.libs)),k="draw.io"==this.editorUi.getServiceName()),k||(null!=mxSettings&&null!=mxSettings.settings?p.push(mxSettings.getLibraries()):p.push(this.defaultEntries)));l=p.join(";").split(";");p={};for(k=0;k<l.length;k++)p[this.libAliases[l[k]]||l[k]]=!0;for(k=0;k<this.configuration.length;k++)"search"!=+this.configuration[k].id&&this.showPalettes(this.configuration[k].prefix||"",this.configuration[k].libs||[this.configuration[k].id],1==p[this.configuration[k].id]);if(null!=this.customEntries)for(k=0;k<this.customEntries.length;k++)for(l=this.customEntries[k]||{},n=0;null!=l.entries&&n<l.entries.length;n++){var q=l.entries[n];if(null!=q.libs&&0<q.libs.length){for(var r=[],t=0;t<q.libs.length;t++)r.push(q.id+"."+t);this.showPalettes("",r,1==p[q.id])}}};Sidebar.prototype.init=function(){this.updateEntries();+this.addStencilsToIndex=!1;this.shapetags={};null!=this.tagIndex&&(this.addTagIndex(Graph.decompress(this.tagIndex)),this.tagIndex=null);this.initPalettes();this.defaultPaletteOrder=this.getCurrentPaletteOrder();this.applyPaletteOrder()};Sidebar.prototype.updateEntries=function(){var k=[{title:mxResources.get("general"),id:"general",image:IMAGE_PATH+"/sidebar-general.png"},{title:mxResources.get("basic"),id:"basic",image:IMAGE_PATH+"/sidebar-basic.png"},{title:mxResources.get("arrows"),id:"arrows2",+image:IMAGE_PATH+"/sidebar-arrows2.png"},{title:mxResources.get("clipart"),id:"clipart",image:IMAGE_PATH+"/sidebar-clipart.png"},{title:mxResources.get("flowchart"),id:"flowchart",image:IMAGE_PATH+"/sidebar-flowchart.png"}];if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme)k=[{title:mxResources.get("searchShapes"),id:"search"},{title:mxResources.get("scratchpad"),id:".scratchpad"}].concat(k);var l=(new Date).getFullYear();this.entries=[{title:mxResources.get("standard"),+entries:k},{title:mxResources.get("software"),entries:[{title:"Active Directory",id:"active_directory",image:IMAGE_PATH+"/sidebar-active_directory.png"},{title:mxResources.get("android"),id:"android",image:IMAGE_PATH+"/sidebar-android.png"},{title:"Atlassian",id:"atlassian2",image:IMAGE_PATH+"/sidebar-atlassian2.png"},{title:"Atlassian (legacy)",id:"atlassian",image:IMAGE_PATH+"/sidebar-atlassian.png"},{title:mxResources.get("bootstrap"),id:"bootstrap",image:IMAGE_PATH+"/sidebar-bootstrap.png"},{title:"C4",+id:"c4",image:IMAGE_PATH+"/sidebar-c4.png"},{title:"Data Flow Diagram",id:"dfd",image:IMAGE_PATH+"/sidebar-dfd.png"},{title:mxResources.get("entityRelation"),id:"er",image:IMAGE_PATH+"/sidebar-er.png"},{title:mxResources.get("ios"),id:"ios",image:IMAGE_PATH+"/sidebar-ios.png"},{title:mxResources.get("mockups"),id:"mockups",image:IMAGE_PATH+"/sidebar-mockups.png"},{title:"Sitemap",id:"sitemap",image:IMAGE_PATH+"/sidebar-sitemap.png"},{title:"Salesforce",id:"salesforce",image:IMAGE_PATH+"/sidebar-salesforce.png"},+{title:mxResources.get("uml")+" 2.5",id:"uml25",image:IMAGE_PATH+"/sidebar-uml25.png"},{title:mxResources.get("uml"),id:"uml",image:IMAGE_PATH+"/sidebar-uml.png"}]},{title:mxResources.get("networking"),entries:[{title:"Alibaba Cloud",id:"alibaba_cloud",image:IMAGE_PATH+"/sidebar-alibaba_cloud.png"},{title:"Allied Telesis",id:"allied_telesis",image:IMAGE_PATH+"/sidebar-allied_telesis.png"},{title:"AWS17",id:"aws3",image:IMAGE_PATH+"/sidebar-aws3.png"},{title:"AWS18",id:"aws4b",image:IMAGE_PATH+"/sidebar-aws4b.png"},+{title:"AWS "+l,id:"aws4",image:IMAGE_PATH+"/sidebar-aws4.png"},{title:mxResources.get("aws3d"),id:"aws3d",image:IMAGE_PATH+"/sidebar-aws3d.png"},{title:mxResources.get("azure"),id:"azure2",image:IMAGE_PATH+"/sidebar-azure.png"},{title:"Cloud & Enterprise",id:"mscae",image:IMAGE_PATH+"/sidebar-mscae.png"},{title:mxResources.get("cisco"),id:"cisco",image:IMAGE_PATH+"/sidebar-cisco.png"},{title:"Cisco19",id:"cisco19",image:IMAGE_PATH+"/sidebar-cisco19.png"},{title:"Cisco Safe",id:"cisco_safe",image:IMAGE_PATH++"/sidebar-cisco_safe.png"},{title:"Cumulus",id:"cumulus",image:IMAGE_PATH+"/sidebar-cumulus.png"},{title:"Citrix",id:"citrix2",image:IMAGE_PATH+"/sidebar-citrix2.png"},{title:"Citrix (legacy)",id:"citrix",image:IMAGE_PATH+"/sidebar-citrix.png"},{title:"Dynamics365",id:"dynamics365",image:IMAGE_PATH+"/sidebar-dynamics365.png"},{title:"Google Cloud Platform",id:"gcp2",image:IMAGE_PATH+"/sidebar-gcp2.png"},{title:"Google Cloud Platform 2026",id:"gcp3",image:IMAGE_PATH+"/sidebar-gcp3.png"},{title:"GCP Icons",+id:"gcpicons",image:IMAGE_PATH+"/sidebar-gcpicons.png"},{title:"IBM",id:"ibm",image:IMAGE_PATH+"/sidebar-ibm.png"},{title:"IBM Cloud",id:"ibm_cloud",image:IMAGE_PATH+"/sidebar-ibmcloud.png"},{title:"Kubernetes",id:"kubernetes",image:IMAGE_PATH+"/sidebar-kubernetes.png"},{title:"Network 2025",id:"network2",image:IMAGE_PATH+"/sidebar-network2.png"},{title:"Network 2018",id:"network",image:IMAGE_PATH+"/sidebar-network.png"},{title:"Office",id:"office",image:IMAGE_PATH+"/sidebar-office.png"},{title:"OpenStack",+id:"openstack",image:IMAGE_PATH+"/sidebar-openstack.png"},{title:mxResources.get("rack"),id:"rack",image:IMAGE_PATH+"/sidebar-rack.png"},{title:"SAP",id:"sap",image:IMAGE_PATH+"/sidebar-sap.png"},{title:"Veeam",id:"veeam2",image:IMAGE_PATH+"/sidebar-veeam.png"},{title:"VMware",id:"vvd",image:IMAGE_PATH+"/sidebar-vvd.png"}]},{title:mxResources.get("business"),entries:[{title:"ArchiMate 4",id:"archimate4",image:IMAGE_PATH+"/sidebar-archimate4.png"},{title:"ArchiMate 3.2",id:"archimate3",image:IMAGE_PATH++"/sidebar-archimate3.png"},{title:mxResources.get("archiMate21"),id:"archimate",image:IMAGE_PATH+"/sidebar-archimate.png"},{title:mxResources.get("bpmn")+" 2.0",id:"bpmn2",image:IMAGE_PATH+"/sidebar-bpmn.png"},{title:mxResources.get("sysml"),id:"sysml",image:IMAGE_PATH+"/sidebar-sysml.png"},{title:"Value Stream Mapping",id:"lean_mapping",image:IMAGE_PATH+"/sidebar-leanmapping.png"}]},{title:mxResources.get("other"),entries:[{title:mxResources.get("cabinets"),id:"cabinets",image:IMAGE_PATH+"/sidebar-cabinets.png"},+{title:"Infographic",id:"infographic",image:IMAGE_PATH+"/sidebar-infographic.png"},{title:mxResources.get("eip"),id:"eip",image:IMAGE_PATH+"/sidebar-eip.png"},{title:mxResources.get("electrical"),id:"electrical",image:IMAGE_PATH+"/sidebar-electrical.png"},{title:mxResources.get("floorplans"),id:"floorplan",image:IMAGE_PATH+"/sidebar-floorplans.png"},{title:"Fluid Power (ISO 1219)",id:"fluid_power",image:IMAGE_PATH+"/sidebar-fluid_power.png"},{title:mxResources.get("gmdl"),id:"gmdl",image:IMAGE_PATH++"/sidebar-gmdl.png"},{title:mxResources.get("procEng"),id:"pid",image:IMAGE_PATH+"/sidebar-pid.png"},{title:"Threat Modeling",id:"threatModeling",image:IMAGE_PATH+"/sidebar-threatmodeling.png"},{title:"Web Icons",id:"webicons",image:IMAGE_PATH+"/sidebar-webIcons.png"},{title:mxResources.get("signs"),id:"signs",image:IMAGE_PATH+"/sidebar-signs.png"}]}]};"1"==urlParams.savesidebar&&(Sidebar.prototype.addFoldingHandler=function(k,l,n){var p=!1;k.style.backgroundImage="none"==l.style.display?"url('"++Editor.arrowRightImage+"')":"url('"+Editor.arrowDownImage+"')";var q=document.createElement("button");q.style.margin="0 4px";mxUtils.write(q,"Save");"none"!=l.style.display&&k.appendChild(q);mxEvent.addListener(k,"click",mxUtils.bind(this,function(r){if("BUTTON"==mxEvent.getSource(r).nodeName){r=l.getElementsByTagName("svg");var t=68*Math.ceil(r.length/6)+36,v=Graph.createSvgNode(0,0,432,t,mxUtils.getLightDarkColor("#ffffff"));v.ownerDocument.documentElement.style.setProperty("--ge-panel-color","#ffffff");+v.ownerDocument.documentElement.style.setProperty("--ge-dark-panel-color",Editor.darkColor);var w=new mxSvgCanvas2D(v);w.setFontFamily(mxConstants.DEFAULT_FONTFAMILY);w.setFontStyle(mxConstants.FONT_BOLD);w.setFontColor("rgb(80, 80, 80)");w.setFontSize(14);for(var u=k.getElementsByTagName("span"),x=0;x<u.length;x++){var y=mxUtils.getTextContent(u[x]);if(""!=y){w.text(6,0,0,0,y);break}}for(x=0;x<r.length;x++)w=r[x].cloneNode(!0),w.removeAttribute("style"),w.setAttribute("width",this.thumbWidth),w.setAttribute("height",+this.thumbHeight),w.setAttribute("x",12+68*mxUtils.mod(x,6)),w.setAttribute("y",24+68*Math.floor(x/6)),v.appendChild(w);this.editorUi.editor.convertImages(v,mxUtils.bind(this,function(B){var z=document.createElement("canvas");z.width=432;z.height=t;var C=document.createElement("img");C.onload=mxUtils.bind(this,function(){z.getContext("2d").drawImage(C,0,0);this.editorUi.saveCanvas(z,null,"png")});B=Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(v);C.src=Editor.createSvgDataUri(B)}))}else{if("none"==+l.style.display){if(p)k.appendChild(q);else if(p=!0,null!=n){null!=q.parentNode&&q.parentNode.removeChild(q);k.style.cursor="wait";var A=k.innerHTML;k.innerHTML=mxResources.get("loading")+"...";window.setTimeout(function(){n(l);k.style.cursor="";k.innerHTML=A;k.appendChild(q)},0)}else k.appendChild(q);k.style.backgroundImage="url('"+Editor.arrowDownImage+"')";l.style.display="block"}else k.style.backgroundImage="url('"+Editor.arrowRightImage+"')",l.style.display="none",null!=q.parentNode&&q.parentNode.removeChild(q);+mxEvent.consume(r)}}))});var e=Sidebar.prototype.addPalette;Sidebar.prototype.addPalette=function(k,l,n,p,q){n=this.editorUi.getLibraryExpanded(k,n);l=e.call(this,k,l,n,p,q);null!=k&&null!=this.palettes[k]&&(this.palettes[k][0]._paletteId=k,n=this.palettes[k][1].firstChild,null!=n&&(n._paletteId=k),"search"!=k&&this.installPaletteDragReorder(this.palettes[k][0],this.palettes[k][1],k),this.installPaletteContextMenu(this.palettes[k][0],k),null!=this._applyOrderTimer&&window.clearTimeout(this._applyOrderTimer),+this._applyOrderTimer=window.setTimeout(mxUtils.bind(this,function(){this._applyOrderTimer=null;this.applyPaletteOrder()}),0));return l};var b=Sidebar.prototype.setContentVisible;Sidebar.prototype.setContentVisible=function(k,l){b.apply(this,arguments);null!=k._paletteId&&this.editorUi.setLibraryExpanded(k._paletteId,l)};Sidebar.prototype.installPaletteDragReorder=function(k,l,n){var p=this,q=mxClient.IS_POINTER?"pointermove":"mousemove",r=mxClient.IS_POINTER?"pointerup":"mouseup";mxEvent.addListener(k,+mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(t){if(0==t.button){var v=t.clientY,w=!1,u=!1,x=null,y=mxUtils.bind(this,function(B){var z=B.clientY-v;if(w){null!=x&&(k.getBoundingClientRect(),x.style.top=B.clientY-x.offsetHeight/2+"px");z=p.getEntryContainer();for(var C=z.childNodes,D=null,F=0;F<C.length;F++){var E=C[F];if(!(null==E._paletteId||null==E.className||0>E.className.indexOf("geTitle")||"search"==E._paletteId||"none"==E.style.display||E._paletteId==n)){var G=E.getBoundingClientRect(),+H=E.nextSibling;H=null!=H&&null!=H.firstChild&&"none"!=H.firstChild.style.display?H.getBoundingClientRect().bottom:G.bottom;if(B.clientY<(G.top+H)/2){D=E;break}}}null!=D?l.nextSibling!=D&&(z.insertBefore(k,D),z.insertBefore(l,D),u=!0):z.lastChild!=l&&(z.appendChild(k),z.appendChild(l),u=!0);C=z.getBoundingClientRect();30>B.clientY-C.top?z.scrollTop-=10:30>C.bottom-B.clientY&&(z.scrollTop+=10);B.preventDefault()}else 20<Math.abs(z)&&(w=!0,p._paletteDragging=!0,p.container.classList.add("gePaletteDragging"),+z=k.getBoundingClientRect(),x=k.cloneNode(!0),x.style.position="fixed",x.style.zIndex="10001",x.style.width=z.width+"px",x.style.left=z.left+"px",x.style.top=B.clientY-z.height/2+"px",x.style.pointerEvents="none",x.style.opacity="0.8",x.style.boxShadow="0 2px 8px rgba(0,0,0,0.15)",document.body.appendChild(x),k.classList.add("gePaletteDragPlaceholder"),l.style.display="none")}),A=mxUtils.bind(this,function(B){w&&u&&p.savePaletteOrder();w&&(p.container.classList.remove("gePaletteDragging"),k.classList.remove("gePaletteDragPlaceholder"),+l.style.display="",null!=x&&null!=x.parentNode&&(x.parentNode.removeChild(x),x=null),window.setTimeout(function(){p._paletteDragging=!1},100));document.removeEventListener(q,y);document.removeEventListener(r,A)});document.addEventListener(q,y);document.addEventListener(r,A)}}))};Sidebar.prototype.installPaletteContextMenu=function(k,l){var n=this;mxEvent.addListener(k,"contextmenu",mxUtils.bind(this,function(p){mxEvent.consume(p);var q=document.createElement("div");q.className="mxPopupMenu geMenubarMenu";+q.style.position="absolute";q.style.zIndex="10001";q.style.left=p.clientX+"px";q.style.top=p.clientY+"px";p=document.createElement("table");p.className="mxPopupMenu";var r=document.createElement("tbody");p.appendChild(r);q.appendChild(p);var t=function(){null!=q.parentNode&&q.parentNode.removeChild(q);document.removeEventListener("mousedown",v)},v=function(x){q.contains(x.target)||t()};p=function(x,y){var A=document.createElement("tr");A.className="mxPopupMenuItem";var B=document.createElement("td");+B.className="mxPopupMenuItem";B.style.padding="6px 10px";B.style.cursor="pointer";mxUtils.write(B,x);A.appendChild(B);r.appendChild(A);mxEvent.addListener(A,"mouseup",function(){t();y()});mxEvent.addListener(A,"mouseenter",function(){A.className="mxPopupMenuItem mxPopupMenuItemHover"});mxEvent.addListener(A,"mouseleave",function(){A.className="mxPopupMenuItem"})};var w=function(){var x=document.createElement("tr"),y=document.createElement("td");y.style.padding="0";var A=document.createElement("hr");+A.style.cssText="border:none;border-top:1px solid light-dark(#e0e0e0,#444);margin:4px 0";y.appendChild(A);x.appendChild(y);r.appendChild(x)},u=n.palettes[l];u=null!=u?u[1].firstChild:null;p(mxResources.get(null!=u&&"none"!=u.style.display?"collapse":"expand"),function(){k.click()});w();p(mxResources.get("collapseAll"),function(){n.setAllPalettesExpanded(!1)});p(mxResources.get("expandAll"),function(){n.setAllPalettesExpanded(!0)});"search"!=l&&null!=mxSettings.getLibraryOrder()&&(w(),p(mxResources.get("reset"),+function(){n.resetPaletteOrder()}));document.body.appendChild(q);mxUtils.fit(q);document.addEventListener("mousedown",v)}))};Sidebar.prototype.setAllPalettesExpanded=function(k){for(var l in this.palettes){var n=this.palettes[l];if(null!=n){var p=n[0];n=n[1].firstChild;null!=p&&null!=n&&"none"!=n.style.display!=k&&p.click()}}};Sidebar.prototype.movePalette=function(k,l){var n=this.palettes[k];if(null!=n){k=n[0];n=n[1];var p=this.getEntryContainer();null!=l?(l=this.palettes[l],null!=l&&(p.insertBefore(k,+l[0]),p.insertBefore(n,l[0]))):(p.appendChild(k),p.appendChild(n));this.savePaletteOrder()}};Sidebar.prototype.getCurrentPaletteOrder=function(){for(var k=[],l=this.getEntryContainer().childNodes,n=0;n<l.length;n++)null!=l[n]._paletteId&&null!=l[n].className&&0<=l[n].className.indexOf("geTitle")&&k.push(l[n]._paletteId);return k};Sidebar.prototype.savePaletteOrder=function(){var k=this.getCurrentPaletteOrder();mxSettings.setLibraryOrder(k);mxSettings.save()};Sidebar.prototype.applyPaletteOrder=function(){var k=+mxSettings.getLibraryOrder();if(null!=k&&0!=k.length)for(var l=this.getEntryContainer(),n=0;n<k.length;n++){var p=this.palettes[k[n]];null!=p&&p[0].parentNode==l&&(l.appendChild(p[0]),l.appendChild(p[1]))}};Sidebar.prototype.resetPaletteOrder=function(){mxSettings.setLibraryOrder(null);mxSettings.save();if(null!=this.defaultPaletteOrder)for(var k=this.getEntryContainer(),l=0;l<this.defaultPaletteOrder.length;l++){var n=this.palettes[this.defaultPaletteOrder[l]];null!=n&&n[0].parentNode==k&&(k.appendChild(n[0]),+k.appendChild(n[1]))}};Sidebar.prototype.extractShapeStyle=function(k){if(null!=k&&"shape="==k.substring(0,6)){var l=k.indexOf(";");0>l&&(l=k.length);return k.substring(6,l)}return null};var d=Sidebar.prototype.getTagsForStencil;Sidebar.prototype.getTagsForStencil=function(k,l,n){var p=d.apply(this,arguments);null!=this.shapetags&&(k=k.toLowerCase(),l=l.toLowerCase(),null!=this.shapetags[k]&&p.push(this.shapetags[k]),l=k+"."+l,null!=this.shapetags[l]&&p.push(this.shapetags[l]));return p};Sidebar.prototype.addTagIndex=+function(k){k=String(k).split("\n");for(var l=0;l<k.length;l++)if(null!=k[l]){var n=k[l].split("\t");if(1<n.length){var p=n[0].toLowerCase().replace(" ","_");n=mxUtils.trim(n.slice(1,n.length).join(" ").toLowerCase());0<n.length&&(this.shapetags[p]=n)}}};Sidebar.prototype.getUniqueLibraries=function(k){for(var l={},n=[],p=0;p<k.length;p++){var q=JSON.stringify(k[p]);null==l[q]&&(l[q]=!0,n.push(k[p]))}return n};Sidebar.prototype.openLibraries=function(k){k=this.getUniqueLibraries(k);for(var l=null,+n=0;n<k.length;n++){var p=this.getConfigurationById(k[n].id);null!=p&&(p=this.openLibrary(p,k[n].lib||k[n].id),null!=p&&null==l&&(l=p))}null!=l&&window.setTimeout(function(){l[0].scrollIntoView({behavior:"smooth"})},0)};Sidebar.prototype.openLibrary=function(k,l){this.showPalettes(k.prefix||"",k.libs||[k.id],!0);k=this.showPalette(l,!0);null!=k&&1<k.length&&null!=k[1].firstChild&&(null==k[1].firstChild.firstChild||"none"==k[1].firstChild.style.display)&&k[0].click();return k};Sidebar.prototype.showPopupMenuForEntry=+function(k,l,n){if(null!=l&&0<l.length){var p=mxUtils.getOffset(k);this.editorUi.showPopupMenu(mxUtils.bind(this,function(q,r){q.addItem(mxResources.get("openLibrary"),null,mxUtils.bind(this,function(){this.openLibraries(l)}))}),p.x,p.y+k.offsetHeight,n);mxEvent.consume(n)}};Sidebar.prototype.addSearchIndex=function(k){if(null!=k)for(var l=0;l<k.length;l++)if(null!=k[l].style){var n=k[l].style,p=this.extractShapeStyle(n);if(null!=p){var q=p.lastIndexOf(".");if(0<q){var r=p.substring(0,q);p=p.substring(q++1,p.length);q=this.getTagsForStencil(r,p,k[l].tags);if(null!=q){var t=n.indexOf(";");n="shape="+r+"."+p.toLowerCase()+";"+(0>t?"":n.substring(t+1));this.setCurrentSearchEntryLibrary(k[l].id,k[l].lib);this.createVertexTemplateEntry(n,parseInt(k[l].w),parseInt(k[l].h),"",p.replace(/_/g," "),null,null,this.filterTags(q.join(" ")));null!=this.currentSearchEntryLibrary&&this.addLibForStyle(this.getKeyStyle(n),this.currentSearchEntryLibrary);this.setCurrentSearchEntryLibrary()}}}}};Sidebar.prototype.initPalettes=+function(){var k=GRAPH_IMAGE_PATH,l=STENCIL_PATH,n=this.signs,p=this.rack,q=this.pids,r=this.cisco,t=this.sysml;"1"==urlParams.createindex&&(this.createdSearchIndex=[]);this.addSearchPalette(!0);this.appendCustomLibraries||this.addCustomEntries();this.addGeneralPalette(null==this.customEntries);this.addMiscPalette(!1);this.addAdvancedPalette(!1);this.addBasicPalette();this.addStencilPalette("arrows",mxResources.get("arrows"),l+"/arrows.xml",";html=1;"+mxConstants.STYLE_VERTICAL_LABEL_POSITION+"=bottom;"++mxConstants.STYLE_VERTICAL_ALIGN+"=top;"+mxConstants.STYLE_STROKEWIDTH+"=2;strokeColor=#000000;",null,null,null,null,null,"arrows");this.addArrows2Palette();this.setCurrentSearchEntryLibrary("clipart","computer");this.addImagePalette("computer","Clipart / Computer",k+"/lib/clip_art/computers/","_128x128.png","Antivirus Data_Filtering Database Database_Add Database_Minus Database_Move_Stack Database_Remove Fujitsu_Tablet Harddrive IBM_Tablet iMac iPad Laptop MacBook Mainframe Monitor Monitor_Tower Monitor_Tower_Behind Netbook Network Network_2 Printer Printer_Commercial Secure_System Server Server_Rack Server_Rack_Empty Server_Rack_Partial Server_Tower Software Stylus Touch USB_Hub Virtual_Application Virtual_Machine Virus Workstation".split(" "),"Antivirus;Data Filtering;Database;Database Add;Database Minus;Database Move Stack;Database Remove;Fujitsu Tablet;Harddrive;IBMTablet;iMac;iPad;Laptop;MacBook;Mainframe;Monitor;Monitor Tower;Monitor Tower Behind;Netbook;Network;Network 2;Printer;Printer Commercial;Secure System;Server;Server Rack;Server Rack Empty;Server Rack Partial;Server Tower;Software;Stylus;Touch;USB Hub;Virtual Application;Virtual Machine;Virus;Workstation".split(";"));this.setCurrentSearchEntryLibrary("clipart","finance");this.addImagePalette("finance","Clipart / Finance",k+"/lib/clip_art/finance/","_128x128.png","Arrow_Down Arrow_Up Coins Credit_Card Dollar Graph Pie_Chart Piggy_Bank Safe Shopping_Cart Stock_Down Stock_Up".split(" "),"Arrow_Down;Arrow Up;Coins;Credit Card;Dollar;Graph;Pie Chart;Piggy Bank;Safe;Shopping Basket;Stock Down;Stock Up".split(";"));this.setCurrentSearchEntryLibrary("clipart","clipart");this.addImagePalette("clipart","Clipart / Various",k+"/lib/clip_art/general/","_128x128.png","Battery_0 Battery_100 Battery_50 Battery_75 Battery_allstates Bluetooth Earth_globe Empty_Folder Full_Folder Gear Keys Lock Mouse_Pointer Plug Ships_Wheel Star Tire".split(" "),"Battery 0%;Battery 100%;Battery 50%;Battery 75%;Battery;Bluetooth;Globe;Empty Folder;Full Folder;Gear;Keys;Lock;Mousepointer;Plug;Ships Wheel;Star;Tire".split(";"));this.setCurrentSearchEntryLibrary("clipart","networking");this.addImagePalette("networking","Clipart / Networking",k+"/lib/clip_art/networking/","_128x128.png","Bridge Certificate Certificate_Off Cloud Cloud_Computer Cloud_Computer_Private Cloud_Rack Cloud_Rack_Private Cloud_Server Cloud_Server_Private Cloud_Storage Concentrator Email Firewall_02 Firewall Firewall-page1 Ip_Camera Modem power_distribution_unit Print_Server Print_Server_Wireless Repeater Router Router_Icon Switch UPS Wireless_Router Wireless_Router_N".split(" "),"Bridge;Certificate;Certificate Off;Cloud;Cloud Computer;Cloud Computer Private;Cloud Rack;Cloud Rack Private;Cloud Server;Cloud Server Private;Cloud Storage;Concentrator;Email;Firewall 1;Firewall 2;Firewall;Camera;Modem;Power Distribution Unit;Print Server;Print Server Wireless;Repeater;Router;Router Icon;Switch;UPS;Wireless Router;Wireless Router N".split(";"),{Wireless_Router:"wireless router switch wap wifi access point wlan",Wireless_Router_N:"wireless router switch wap wifi access point wlan",Router:"router switch",Router_Icon:"router switch"});this.setCurrentSearchEntryLibrary("clipart","people");this.addImagePalette("people","Clipart / People",k+"/lib/clip_art/people/","_128x128.png","Suit_Man Suit_Man_Black Suit_Man_Blue Suit_Man_Green Suit_Man_Green_Black Suit_Woman Suit_Woman_Black Suit_Woman_Blue Suit_Woman_Green Suit_Woman_Green_Black Construction_Worker_Man Construction_Worker_Man_Black Construction_Worker_Woman Construction_Worker_Woman_Black Doctor_Man Doctor_Man_Black Doctor_Woman Doctor_Woman_Black Farmer_Man Farmer_Man_Black Farmer_Woman Farmer_Woman_Black Nurse_Man Nurse_Man_Black Nurse_Woman Nurse_Woman_Black Military_Officer Military_Officer_Black Military_Officer_Woman Military_Officer_Woman_Black Pilot_Man Pilot_Man_Black Pilot_Woman Pilot_Woman_Black Scientist_Man Scientist_Man_Black Scientist_Woman Scientist_Woman_Black Security_Man Security_Man_Black Security_Woman Security_Woman_Black Tech_Man Tech_Man_Black Telesales_Man Telesales_Man_Black Telesales_Woman Telesales_Woman_Black Waiter Waiter_Black Waiter_Woman Waiter_Woman_Black Worker_Black Worker_Man Worker_Woman Worker_Woman_Black".split(" "));this.setCurrentSearchEntryLibrary("clipart","telco");this.addImagePalette("telco","Clipart / Telecommunication",k+"/lib/clip_art/telecommunication/","_128x128.png","BlackBerry Cellphone HTC_smartphone iPhone Palm_Treo Signal_tower_off Signal_tower_on".split(" "),"BlackBerry;Cellphone;HTC smartphone;iPhone;Palm Treo;Signaltower off;Signaltower on".split(";"));this.setCurrentSearchEntryLibrary();this.addFlowchartPalette();this.addActiveDirectoryPalette();this.addAndroidPalette();this.addAtlassianPalette();-this.addBootstrapPalette();this.addDFDPalette();this.addErPalette();this.addIos7Palette();this.addIosPalette();this.addKubernetesPalette();this.addMockupPalette();this.addSitemapPalette();this.addSalesforcePalette();this.addUml25Palette();this.addUmlPalette(!1);this.addAlibabaCloudPalette();this.addAlliedTelesisPalette();this.addAWS3Palette();this.addAWS4bPalette();this.addAWS4Palette();this.addAWS3DPalette();this.addAzurePalette();this.addAzure2Palette();this.addMSCAEPalette();this.addC4Palette();-this.addCiscoPalette(r,l);this.addCisco19Palette();this.addCiscoSafePalette();this.addCumulusPalette();this.addCitrix2Palette();this.addCitrixPalette();this.addDynamics365Palette();this.addGCP3Palette();this.addGCP2Palette();this.addGCPIconsPalette();this.addIBMPalette();this.addIBMCloudPalette();this.addNetwork2Palette();this.addNetworkPalette();this.addSAPPalette();this.addOfficePalette();this.addOpenStackPalette();this.addRackPalette(p,l);this.addVeeamPalette();this.addVeeam2Palette();this.addVVDPalette();-this.addArchimate4Palette();this.addArchimate3Palette();this.addArchiMatePalette();this.addBpmn2Palette();this.addSysMLPalette(t,l);this.addLeanMappingPalette();this.addCabinetsPalette();this.addInfographicPalette();this.addEipPalette();this.addElectricalPalette();this.addFloorplanPalette();this.addFluidPowerPalette();this.addGMDLPalette();this.addPidPalette(q,l);this.addThreatModelingPalette();this.addWebIconsPalette();this.addWebLogosPalette();this.addSignsPalette(n,l);this.appendCustomLibraries&&+this.addAtlassian2Palette();this.addBootstrapPalette();this.addDFDPalette();this.addErPalette();this.addIos7Palette();this.addIosPalette();this.addKubernetesPalette();this.addMockupPalette();this.addSitemapPalette();this.addSalesforcePalette();this.addUml25Palette();this.addUmlPalette(!1);this.addAlibabaCloudPalette();this.addAlliedTelesisPalette();this.addAWS3Palette();this.addAWS4bPalette();this.addAWS4Palette();this.addAWS3DPalette();this.addAzurePalette();this.addAzure2Palette();this.addMSCAEPalette();+this.addC4Palette();this.addCiscoPalette(r,l);this.addCisco19Palette();this.addCiscoSafePalette();this.addCumulusPalette();this.addCitrix2Palette();this.addCitrixPalette();this.addDynamics365Palette();this.addGCP3Palette();this.addGCP2Palette();this.addGCPIconsPalette();this.addIBMPalette();this.addIBMCloudPalette();this.addNetwork2Palette();this.addNetworkPalette();this.addSAPPalette();this.addOfficePalette();this.addOpenStackPalette();this.addRackPalette(p,l);this.addVeeamPalette();this.addVeeam2Palette();+this.addVVDPalette();this.addArchimate4Palette();this.addArchimate3Palette();this.addArchiMatePalette();this.addBpmn2Palette();this.addSysMLPalette(t,l);this.addLeanMappingPalette();this.addCabinetsPalette();this.addInfographicPalette();this.addEipPalette();this.addElectricalPalette();this.addFloorplanPalette();this.addFluidPowerPalette();this.addGMDLPalette();this.addPidPalette(q,l);this.addThreatModelingPalette();this.addWebIconsPalette();this.addWebLogosPalette();this.addSignsPalette(n,l);this.appendCustomLibraries&&this.addCustomEntries();this.showEntries();null!=this.createdSearchIndex&&console.log("searchFileData",Graph.compress(JSON.stringify(this.createdSearchIndex)))};Sidebar.prototype.addCustomEntries=function(){if(null!=this.customEntries)for(var k=0,l=0;l<this.customEntries.length;l++)for(var n=this.customEntries[l]||{},p=0;null!=n.entries&&p<n.entries.length;p++)for(var q=n.entries[p]||{},r=0;null!=q.libs&&r<q.libs.length;r++)mxUtils.bind(this,function(t){var v=null,w=null,u=null,x=null,y=mxUtils.bind(this,function(z,C){var D=document.createElement("span");D.style.paddingBottom="6px";D.style.paddingTop="6px";D.style.fontSize="11px";mxUtils.write(D,z);C.innerHTML='<img align="top" src="'+mxGraph.prototype.warningImage.src+'"/> ';C.appendChild(D)}),A=mxUtils.bind(this,function(){null!=u&&null!=x&&(null!=w?(u.style.display="block",x.innerText="",mxUtils.write(x,this.editorUi.getResource(t.title)),y(w,u)):null!=v?(this.editorUi.addLibraryEntries(v,u),u.style.display="block",x.innerText="",mxUtils.write(x,this.editorUi.getResource(t.title))):(u.style.display="none",x.innerText="",mxUtils.write(x,mxResources.get("loading")+"...")))});if(null==t.data&&null!=t.url&&!t.preload&&k>=this.maxPreloadCount)this.addPalette(q.id+"."+r,this.editorUi.getResource(t.title),!1,mxUtils.bind(this,function(z,C){var D=mxUtils.bind(this,function(E,G){this.setCurrentSearchEntryLibrary(q.id,q.id+"."+r);this.addEntries(E,G);this.setCurrentSearchEntryLibrary();this.editorUi.addLibraryEntries(E,z)});z.style.display="none";@@ -5268,7 +5268,92 @@ b.vertex=!0;return a.createVertexTemplateFromCells([e,b],290,58,"Disabled text fthis.addEntry("atlassian error message field",function(){var e=new mxCell("Email",new mxGeometry(0,0,240,20),"fillColor=none;strokeColor=none;html=1;fontSize=11;fontStyle=0;align=left;fontColor=#596780;fontStyle=1;fontSize=11");e.vertex=!0;var b=new mxCell("shrugg#atlassian.com",new mxGeometry(0,25,300,40),"rounded=1;arcSize=9;align=left;spacingLeft=5;strokeColor=#FFAB00;html=1;strokeWidth=2;fontSize=12");b.vertex=!0;var d=new mxCell("",new mxGeometry(1,.5,20,20),"shape=mxgraph.azure.azure_alert;fillColor=#FFAB00;strokeColor=none;html=1;sketch=0;");d.geometry.relative=!0;d.geometry.offset=new mxPoint(-30,-10);d.vertex=!0;b.insert(d);return a.createVertexTemplateFromCells([e,b],290,58,"Error message field")}),this.addEntry("atlassian error message field",function(){var e=new mxCell("Email",new mxGeometry(0,0,240,20),"fillColor=none;strokeColor=none;html=1;fontSize=11;fontStyle=0;align=left;fontColor=#596780;fontStyle=1;fontSize=11");e.vertex=!0;var b=new mxCell("shrugg#atlassian.com",new mxGeometry(0,25,300,40),"rounded=1;arcSize=9;align=left;spacingLeft=5;strokeColor=#4C9AFF;html=1;strokeWidth=2;fontSize=12");b.vertex=!0;var d=new mxCell("",new mxGeometry(1,.5,20,20),"shape=mxgraph.azure.azure_alert;fillColor=#FFAB00;strokeColor=none;html=1;sketch=0;");d.geometry.relative=!0;d.geometry.offset=new mxPoint(-30,-10);d.vertex=!0;b.insert(d);d=new mxCell("Please enter a valid address.",new mxGeometry(310,22,200,46),"rounded=1;arcSize=9;align=center;strokeColor=#DFE1E5;html=1;strokeWidth=1;fontSize=12;shadow=1");d.vertex=!0;return a.createVertexTemplateFromCells([e,b,d],510,68,"Error message field")})];this.addPalette("atlassian",-"Atlassian",!1,mxUtils.bind(this,function(e){for(var b=0;b<c.length;b++)e.appendChild(c[b](e))}));this.setCurrentSearchEntryLibrary()}})();(function(){Sidebar.prototype.addAWSPalette=function(){this.setCurrentSearchEntryLibrary("aws2","aws2Analytics");this.addAWSAnalyticsPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Application Services");this.addAWSApplicationServicesPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Compute");this.addAWSComputePalette();this.setCurrentSearchEntryLibrary("aws2","aws2Database");this.addAWSDatabasePalette();this.setCurrentSearchEntryLibrary("aws2","aws2Developer Tools");this.addAWSDeveloperToolsPalette();+"Atlassian",!1,mxUtils.bind(this,function(e){for(var b=0;b<c.length;b++)e.appendChild(c[b](e))}));this.setCurrentSearchEntryLibrary()}})();(function(){Sidebar.prototype.addAtlassian2Palette=function(){this.setCurrentSearchEntryLibrary("atlassian2","atlassian2Apps");this.addAtlassian2AppsPalette();this.setCurrentSearchEntryLibrary("atlassian2","atlassian2Work Types");this.addAtlassian2WorkTypesPalette();this.setCurrentSearchEntryLibrary("atlassian2","atlassian2Logos");this.addAtlassian2LogosPalette();this.setCurrentSearchEntryLibrary()};Sidebar.prototype.addAtlassian2AppsPalette=function(){var a=[this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.admin;tileColor=#dddee1;fillColor=#101214;",+48,48,"","Admin",null,null,this.getTagsForStencil("mxgraph.atlassian2","admin","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.align;tileColor=#fb9700;fillColor=#101214;",48,48,"","Align",null,null,this.getTagsForStencil("mxgraph.atlassian2","align","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.analytics;tileColor=#dddee1;fillColor=#101214;",+48,48,"","Analytics",null,null,this.getTagsForStencil("mxgraph.atlassian2","analytics","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.assets;tileColor=#ffc716;fillColor=#101214;",48,48,"","Assets",null,null,this.getTagsForStencil("mxgraph.atlassian2","assets","app product insight cmdb").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.atlassian;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;fillColor=#1868db;",+48,47.9,"","Atlassian",null,null,this.getTagsForStencil("mxgraph.atlassian2","atlassian","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.marketplace;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;fillColor=#1868db;",48,47.9,"","Atlassian Marketplace",null,null,this.getTagsForStencil("mxgraph.atlassian2","marketplace","app product atlassian").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.bamboo;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;",+48,48,"","Bamboo",null,null,this.getTagsForStencil("mxgraph.atlassian2","bamboo","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.bitbucket;tileColor=#94c748;fillColor=#101214;",48,48,"","Bitbucket",null,null,this.getTagsForStencil("mxgraph.atlassian2","bitbucket","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.bitbucket-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;",+48,48,"","Bitbucket Data Center",null,null,this.getTagsForStencil("mxgraph.atlassian2","bitbucket data center","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.chat;tileColor=#dddee1;fillColor=#101214;",48,48,"","Chat",null,null,this.getTagsForStencil("mxgraph.atlassian2","chat","app product rovo chat").join(" ")),+this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.company-hub;tileColor=#dddee1;fillColor=#101214;",48,48,"","Company Hub",null,null,this.getTagsForStencil("mxgraph.atlassian2","company hub","app product intranet").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.compass;tileColor=#94c748;fillColor=#101214;",+48,48,"","Compass",null,null,this.getTagsForStencil("mxgraph.atlassian2","compass","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.confluence;tileColor=#1868db;fillColor=#fff;",48,48,"","Confluence",null,null,this.getTagsForStencil("mxgraph.atlassian2","confluence","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.confluence-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;",+48,48,"","Confluence Data Center",null,null,this.getTagsForStencil("mxgraph.atlassian2","confluence data center","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.crowd;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;",48,48,"","Crowd",null,null,this.getTagsForStencil("mxgraph.atlassian2","crowd",+"app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.customer-service-management;tileColor=#ffc716;fillColor=#101214;",48,48,"","Customer Service Management",null,null,this.getTagsForStencil("mxgraph.atlassian2","customer service management","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.dx;tileColor=#94c748;fillColor=#101214;",+48,48,"","DX",null,null,this.getTagsForStencil("mxgraph.atlassian2","dx","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.feedback;tileColor=#c97cf4;fillColor=#101214;",48,48,"","Feedback",null,null,this.getTagsForStencil("mxgraph.atlassian2","feedback","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.focus;tileColor=#fb9700;fillColor=#101214;",+48,48,"","Focus",null,null,this.getTagsForStencil("mxgraph.atlassian2","focus","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.goals;tileColor=#dddee1;fillColor=#101214;",48,48,"","Goals",null,null,this.getTagsForStencil("mxgraph.atlassian2","goals","app product atlas").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.guard;tileColor=#dddee1;fillColor=#101214;",+48,48,"","Guard",null,null,this.getTagsForStencil("mxgraph.atlassian2","guard","app product atlassian access").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.guard-detect;tileColor=#dddee1;fillColor=#101214;",48,48,"","Guard Detect",null,null,this.getTagsForStencil("mxgraph.atlassian2","guard detect","app product atlassian access").join(" ")),+this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.home;tileColor=#dddee1;fillColor=#101214;",48,48,"","Home",null,null,this.getTagsForStencil("mxgraph.atlassian2","home","app product atlas start").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.hub;tileColor=#dddee1;fillColor=#101214;",+48,48,"","Hub",null,null,this.getTagsForStencil("mxgraph.atlassian2","hub","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira;tileColor=#1868db;fillColor=#fff;",48,48,"","Jira",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira","app product jira software jira core").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.jira_align;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;fillColor=#1868db;",+48,48,"","Jira Align",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira align","app product agilecraft").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira-coding-agent;tileColor=#1868db;fillColor=#fff;tileShape=hex;glyphScale=0.8971;",43.1,48,"","Jira Coding Agent",null,null,this.getTagsForStencil("mxgraph.atlassian2",+"jira coding agent","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;",48,48,"","Jira Data Center",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira data center","app product jira software").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira-product-discovery;tileColor=#c97cf4;fillColor=#101214;",+48,48,"","Jira Product Discovery",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira product discovery","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira-service-management;tileColor=#ffc716;fillColor=#101214;",48,48,"","Jira Service Management",null,null,this.getTagsForStencil("mxgraph.atlassian2",+"jira service management","app product jira service desk jsm").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira-service-management-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;",48,48,"","Jira Service Management Data Center",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira service management data center",+"app product jira service desk jsm").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.loom;tileColor=#1868db;fillColor=#fff;",48,48,"","Loom",null,null,this.getTagsForStencil("mxgraph.atlassian2","loom","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.loom-internal;tileColor=#625df5;fillColor=#fff;",+48,48,"","Loom Internal",null,null,this.getTagsForStencil("mxgraph.atlassian2","loom internal","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.opsgenie;tileColor=#ffc716;fillColor=#101214;",48,48,"","Opsgenie",null,null,this.getTagsForStencil("mxgraph.atlassian2","opsgenie","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.projects;tileColor=#dddee1;fillColor=#101214;",+48,48,"","Projects",null,null,this.getTagsForStencil("mxgraph.atlassian2","projects","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.rovo;tileColor=#1868db;fillColor=#fff;",48,48,"","Rovo",null,null,this.getTagsForStencil("mxgraph.atlassian2","rovo","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.rovo-dev;tileColor=#94c748;fillColor=#101214;",+48,48,"","Rovo Dev",null,null,this.getTagsForStencil("mxgraph.atlassian2","rovo dev","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.rovo-dev-agent;tileColor=#94c748;fillColor=#101214;tileShape=hex;glyphScale=0.98;",43.1,48,"","Rovo Dev Agent",null,null,this.getTagsForStencil("mxgraph.atlassian2","rovo dev agent",+"app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.search;tileColor=#dddee1;fillColor=#101214;",48,48,"","Search",null,null,this.getTagsForStencil("mxgraph.atlassian2","search","app product rovo search").join(" ")),this.createVertexTemplateEntry("image;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;image=img/lib/atlassian/Sourcetree_Logo.svg;",+38.6,48,"","Sourcetree",null,null,this.getTagsForStencil("mxgraph.atlassian2","sourcetree","app product logo").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.statuspage;tileColor=#ffc716;fillColor=#101214;",48,48,"","Statuspage",null,null,this.getTagsForStencil("mxgraph.atlassian2","statuspage","app product").join(" ")),+this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.studio;tileColor=#dddee1;fillColor=#101214;",48,48,"","Studio",null,null,this.getTagsForStencil("mxgraph.atlassian2","studio","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.talent;tileColor=#fb9700;fillColor=#101214;",+48,48,"","Talent",null,null,this.getTagsForStencil("mxgraph.atlassian2","talent","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.teams;tileColor=#dddee1;fillColor=#101214;",48,48,"","Teams",null,null,this.getTagsForStencil("mxgraph.atlassian2","teams","app product").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.trello;tileColor=#1558bc;fillColor=#fff;",+48,48,"","Trello",null,null,this.getTagsForStencil("mxgraph.atlassian2","trello","app product").join(" "))];this.addPaletteFunctions("atlassian2Apps","Atlassian / Apps",!1,a)};Sidebar.prototype.addAtlassian2WorkTypesPalette=function(){var a=[this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_blog;tileColor=#669DF1;fillColor=#292A2E;",+48,48,"","Blog",null,null,this.getTagsForStencil("mxgraph.atlassian2","blog","jira work item type object confluence blogpost").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_branch;tileColor=#669DF1;fillColor=#292A2E;",48,48,"","Branch",null,null,this.getTagsForStencil("mxgraph.atlassian2","branch","jira work item type object git bitbucket").join(" ")),+this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_bug;tileColor=#F87168;fillColor=#292A2E;",48,48,"","Bug",null,null,this.getTagsForStencil("mxgraph.atlassian2","bug","jira work item type object issue defect").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_calendar;tileColor=#F87168;fillColor=#292A2E;",+48,48,"","Calendar",null,null,this.getTagsForStencil("mxgraph.atlassian2","calendar","jira work item type object confluence team calendar").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_changes;tileColor=#EED12B;fillColor=#292A2E;",48,48,"","Changes",null,null,this.getTagsForStencil("mxgraph.atlassian2","changes",+"jira work item type object").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_code;tileColor=#C97CF4;fillColor=#292A2E;",48,48,"","Code",null,null,this.getTagsForStencil("mxgraph.atlassian2","code","jira work item type object git bitbucket repository").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_commit;tileColor=#EED12B;fillColor=#292A2E;",+48,48,"","Commit",null,null,this.getTagsForStencil("mxgraph.atlassian2","commit","jira work item type object git bitbucket").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_database;tileColor=#C97CF4;fillColor=#292A2E;",48,48,"","Database",null,null,this.getTagsForStencil("mxgraph.atlassian2","database","jira work item type object confluence").join(" ")),+this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_epic;tileColor=#C97CF4;fillColor=#292A2E;",48,48,"","Epic",null,null,this.getTagsForStencil("mxgraph.atlassian2","epic","jira work item type object issue").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_idea;tileColor=#EED12B;fillColor=#292A2E;",+48,48,"","Idea",null,null,this.getTagsForStencil("mxgraph.atlassian2","idea","jira work item type object jira product discovery jpd").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_improvement;tileColor=#4BCE97;fillColor=#292A2E;",48,48,"","Improvement",null,null,this.getTagsForStencil("mxgraph.atlassian2","improvement",+"jira work item type object enhancement").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_incident;tileColor=#F87168;fillColor=#292A2E;",48,48,"","Incident",null,null,this.getTagsForStencil("mxgraph.atlassian2","incident","jira work item type object itsm jsm").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_new_feature;tileColor=#4BCE97;fillColor=#292A2E;",+48,48,"","New Feature",null,null,this.getTagsForStencil("mxgraph.atlassian2","new feature","jira work item type object feature request").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_page;tileColor=#669DF1;fillColor=#292A2E;",48,48,"","Page",null,null,this.getTagsForStencil("mxgraph.atlassian2","page","jira work item type object confluence").join(" ")),+this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_page_live_doc;tileColor=#E774BB;fillColor=#292A2E;",48,48,"","Page Live Doc",null,null,this.getTagsForStencil("mxgraph.atlassian2","page live doc","jira work item type object confluence live doc").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_problem;tileColor=#F87168;fillColor=#292A2E;",+48,48,"","Problem",null,null,this.getTagsForStencil("mxgraph.atlassian2","problem","jira work item type object itsm jsm").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_pull_request;tileColor=#4BCE97;fillColor=#292A2E;",48,48,"","Pull Request",null,null,this.getTagsForStencil("mxgraph.atlassian2","pull request",+"jira work item type object git bitbucket pr review").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_question;tileColor=#C97CF4;fillColor=#292A2E;",48,48,"","Question",null,null,this.getTagsForStencil("mxgraph.atlassian2","question","jira work item type object jsm").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_story;tileColor=#4BCE97;fillColor=#292A2E;",+48,48,"","Story",null,null,this.getTagsForStencil("mxgraph.atlassian2","story","jira work item type object issue").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_subtask;tileColor=#669DF1;fillColor=#292A2E;",48,48,"","Subtask",null,null,this.getTagsForStencil("mxgraph.atlassian2","subtask","jira work item type object issue sub task").join(" ")),+this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_task;tileColor=#669DF1;fillColor=#292A2E;",48,48,"","Task",null,null,this.getTagsForStencil("mxgraph.atlassian2","task","jira work item type object issue").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_whiteboard;tileColor=#6CC3E0;fillColor=#292A2E;",+48,48,"","Whiteboard",null,null,this.getTagsForStencil("mxgraph.atlassian2","whiteboard","jira work item type object confluence").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.object_work_item;tileColor=#669DF1;fillColor=#292A2E;",48,48,"","Work Item",null,null,this.getTagsForStencil("mxgraph.atlassian2","work item",+"jira work item type object issue ticket").join(" "))];this.addPaletteFunctions("atlassian2Work Types","Atlassian / Work Types",!1,a)};Sidebar.prototype.addAtlassian2LogosPalette=function(){var a=[this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.admin;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_admin;atlassian2Lockup=0.245 0.689 -0.043;wordmarkColor=#1e1f21;",+93.6,24,"","Admin Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","admin","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.align;tileColor=#fb9700;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_align;atlassian2Lockup=0.25 0.872 0.048;wordmarkColor=#1e1f21;",+79.3,24,"","Align Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","align","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.analytics;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_analytics;atlassian2Lockup=0.245 0.872 0.048;wordmarkColor=#1e1f21;",+120.5,24,"","Analytics Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","analytics","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.assets;tileColor=#ffc716;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_assets;atlassian2Lockup=0.245 0.639 -0.018;wordmarkColor=#1e1f21;",+94.3,24,"","Assets Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","assets","product logo wordmark lockup insight cmdb").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.atlassian;tileColor=none;fillColor=#1868db;atlassian2Wordmark=mxgraph.atlassian2.wordmark_atlassian;atlassian2Lockup=0.384 0.895 0.047;wordmarkColor=#1868DB;",+205.2,24,"","Atlassian Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","atlassian","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.marketplace;tileColor=none;fillColor=#1868db;atlassian2Wordmark=mxgraph.atlassian2.wordmark_marketplace;atlassian2Lockup=0.651 1.201 0.14;wordmarkColor=#101214;atlassian2Wordmark2=mxgraph.atlassian2.wordmark_atlassian;atlassian2Lockup2=0.384 0.895 0.047;atlassian2LockupBox=1.241 0;",+315.4,24,"","Atlassian Marketplace Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","marketplace","product logo wordmark lockup atlassian").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.bamboo;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;atlassian2Wordmark=mxgraph.atlassian2.wordmark_bamboo;atlassian2Lockup=0.382 0.719 -0.045;wordmarkColor=#1e1f21;",+119.4,24,"","Bamboo Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","bamboo","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.bitbucket;tileColor=#94c748;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_bitbucket;atlassian2Lockup=0.346 0.689 -0.043;wordmarkColor=#1e1f21;",+123.9,24,"","Bitbucket Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","bitbucket","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.bitbucket-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;atlassian2Wordmark=mxgraph.atlassian2.wordmark_bitbucket_data_center;atlassian2Lockup=0.382 0.719 -0.045;wordmarkColor=#1e1f21;",+128.8,24,"","Bitbucket Data Center Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","bitbucket data center","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.chat;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_chat;atlassian2Lockup=0.288 0.689 -0.043;wordmarkColor=#1e1f21;",+76.2,24,"","Chat Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","chat","product logo wordmark lockup rovo chat").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.company-hub;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_company_hub;atlassian2Lockup=0.32 0.552 0.054;wordmarkColor=#292a2e;",+127.7,24,"","Company Hub Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","company hub","product logo wordmark lockup intranet").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.compass;tileColor=#94c748;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_compass;atlassian2Lockup=0.288 0.826 0.066;wordmarkColor=#1e1f21;",+121.3,24,"","Compass Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","compass","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.confluence;tileColor=#1868db;fillColor=#fff;atlassian2Wordmark=mxgraph.atlassian2.wordmark_confluence;atlassian2Lockup=0.288 0.691 -0.044;wordmarkColor=#1e1f21;",+140.9,24,"","Confluence Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","confluence","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.confluence-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;atlassian2Wordmark=mxgraph.atlassian2.wordmark_confluence_data_center;atlassian2Lockup=0.323 0.721 -0.046;wordmarkColor=#1e1f21;",+146.5,24,"","Confluence Data Center Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","confluence data center","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.crowd;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;atlassian2Wordmark=mxgraph.atlassian2.wordmark_crowd;atlassian2Lockup=0.323 0.719 -0.045;wordmarkColor=#1e1f21;",+97.5,24,"","Crowd Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","crowd","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.customer-service-management;tileColor=#ffc716;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_customer_service_management;atlassian2Lockup=0.288 0.856 0.056;wordmarkColor=#1e1f21;",+342.1,24,"","Customer Service Management Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","customer service management","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.feedback;tileColor=#c97cf4;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_feedback;atlassian2Lockup=0.335 0.689 -0.043;wordmarkColor=#1e1f21;",+126.2,24,"","Feedback Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","feedback","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.focus;tileColor=#fb9700;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_focus;atlassian2Lockup=0.335 0.639 -0.018;wordmarkColor=#1e1f21;",+87,24,"","Focus Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","focus","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.goals;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_goals;atlassian2Lockup=0.288 0.689 -0.043;wordmarkColor=#1e1f21;",+86.7,24,"","Goals Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","goals","product logo wordmark lockup atlas").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.guard;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_guard;atlassian2Lockup=0.288 0.689 -0.043;wordmarkColor=#1e1f21;",+89.8,24,"","Guard Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","guard","product logo wordmark lockup atlassian access").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.guard-detect;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_guard_detect;atlassian2Lockup=0.278 0.437 -0.003;wordmarkColor=#292a2e;",+120.2,24,"","Guard Detect Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","guard detect","product logo wordmark lockup atlassian access").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.home;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_home;atlassian2Lockup=0.345 0.639 -0.018;wordmarkColor=#1e1f21;",+90.2,24,"","Home Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","home","product logo wordmark lockup atlas start").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.hub;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_hub;atlassian2Lockup=0.345 0.689 -0.043;wordmarkColor=#1e1f21;",+70.7,24,"","Hub Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","hub","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira;tileColor=#1868db;fillColor=#fff;atlassian2Wordmark=mxgraph.atlassian2.wordmark_jira;atlassian2Lockup=0.26 0.673 -0.035;wordmarkColor=#1e1f21;",61.8,24,+"","Jira Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira","product logo wordmark lockup jira software jira core").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira_align;tileColor=none;fillColor=#1868db;atlassian2Wordmark=mxgraph.atlassian2.wordmark_jira_align;atlassian2Lockup=0.592 1.466 0.081;wordmarkColor=#101214;atlassian2LockupBox=1.466 0.152;",+124.7,24,"","Jira Align Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira align","product logo wordmark lockup agilecraft").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;atlassian2Wordmark=mxgraph.atlassian2.wordmark_jira_data_center;atlassian2Lockup=0.293 0.702 -0.037;wordmarkColor=#1e1f21;",+63.9,24,"","Jira Data Center Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira data center","product logo wordmark lockup jira software").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira-product-discovery;tileColor=#c97cf4;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_jira_product_discovery;atlassian2Lockup=0.26 0.872 0.048;wordmarkColor=#1e1f21;",+244.6,24,"","Jira Product Discovery Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira product discovery","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira-service-management;tileColor=#ffc716;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_jira_service_management;atlassian2Lockup=0.26 0.856 0.056;wordmarkColor=#1e1f21;",+278.5,24,"","Jira Service Management Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira service management","product logo wordmark lockup jira service desk jsm").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.jira-service-management-data-center;tileColor=#fff;fillColor=#1868db;tileOutlineColor=#dddee1;atlassian2Wordmark=mxgraph.atlassian2.wordmark_jira_service_management_data_center;atlassian2Lockup=0.293 0.893 0.059;wordmarkColor=#1e1f21;atlassian2LockupBox=1.005 0;",+288.6,24,"","Jira Service Management Data Center Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","jira service management data center","product logo wordmark lockup jira service desk jsm").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.loom;tileColor=#1868db;fillColor=#fff;atlassian2Wordmark=mxgraph.atlassian2.wordmark_loom;atlassian2Lockup=0.333 0.682 -0.036;wordmarkColor=#1e1f21;",+76.9,24,"","Loom Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","loom","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.loom-internal;tileColor=#625df5;fillColor=#fff;atlassian2Wordmark=mxgraph.atlassian2.wordmark_loom_internal;atlassian2Lockup=0.333 0.682 -0.036;wordmarkColor=#1e1f21;",+76.9,24,"","Loom Internal Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","loom internal","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.opsgenie;tileColor=#ffc716;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_opsgenie;atlassian2Lockup=0.288 0.856 0.056;wordmarkColor=#1e1f21;",+122.6,24,"","Opsgenie Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","opsgenie","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.projects;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_projects;atlassian2Lockup=0.345 0.852 0.055;wordmarkColor=#1e1f21;",+108.4,24,"","Projects Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","projects","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.rovo;tileColor=#1868db;fillColor=#fff;atlassian2Wordmark=mxgraph.atlassian2.wordmark_rovo;atlassian2Lockup=0.345 0.639 -0.018;wordmarkColor=#1e1f21;",+79.2,24,"","Rovo Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","rovo","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.rovo-dev;tileColor=#94c748;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_rovo_dev;atlassian2Lockup=0.345 0.639 -0.018;wordmarkColor=#1e1f21;",+123.5,24,"","Rovo Dev Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","rovo dev","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.rovo-dev-agent;tileColor=#94c748;fillColor=#101214;tileShape=hex;glyphScale=0.98;atlassian2Wordmark=mxgraph.atlassian2.wordmark_rovo_dev_agent;atlassian2Lockup=0.296 0.639 -0.008;wordmarkColor=#1e1f21;",+119.9,24,"","Rovo Dev Agent Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","rovo dev agent","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.search;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_search;atlassian2Lockup=0.29 0.689 -0.043;wordmarkColor=#1e1f21;",+96.6,24,"","Search Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","search","product logo wordmark lockup rovo search").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.statuspage;tileColor=#ffc716;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_statuspage;atlassian2Lockup=0.29 0.831 0.068;wordmarkColor=#1e1f21;",+143.7,24,"","Statuspage Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","statuspage","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.studio;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_studio;atlassian2Lockup=0.29 0.689 -0.043;wordmarkColor=#1e1f21;",+93,24,"","Studio Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","studio","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.talent;tileColor=#fb9700;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_talent;atlassian2Lockup=0.259 0.689 -0.043;wordmarkColor=#1e1f21;",+90.9,24,"","Talent Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","talent","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.teams;tileColor=#dddee1;fillColor=#101214;atlassian2Wordmark=mxgraph.atlassian2.wordmark_teams;atlassian2Lockup=0.259 0.639 -0.018;wordmarkColor=#1e1f21;",+94.9,24,"","Teams Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","teams","product logo wordmark lockup").join(" ")),this.createVertexTemplateEntry("shape=mxgraph.atlassian2.icon;html=1;aspect=fixed;strokeColor=none;labelBackgroundColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;atlassian2Icon=mxgraph.atlassian2.trello;tileColor=#1558bc;fillColor=#fff;atlassian2Wordmark=mxgraph.atlassian2.wordmark_trello;atlassian2Lockup=0.259 0.689 -0.043;wordmarkColor=#1e1f21;",+84.1,24,"","Trello Logo",null,null,this.getTagsForStencil("mxgraph.atlassian2","trello","product logo wordmark lockup").join(" "))];this.addPaletteFunctions("atlassian2Logos","Atlassian / Logos",!1,a)}})();(function(){Sidebar.prototype.addAWSPalette=function(){this.setCurrentSearchEntryLibrary("aws2","aws2Analytics");this.addAWSAnalyticsPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Application Services");this.addAWSApplicationServicesPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Compute");this.addAWSComputePalette();this.setCurrentSearchEntryLibrary("aws2","aws2Database");this.addAWSDatabasePalette();this.setCurrentSearchEntryLibrary("aws2","aws2Developer Tools");this.addAWSDeveloperToolsPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Enterprise Applications");this.addAWSEnterpriseApplicationsPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Game Development");this.addAWSGameDevelopmentPalette();this.setCurrentSearchEntryLibrary("aws2","aws2General");this.addAWSGeneralPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Internet of Things");this.addAWSInternetOfThingsPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Management Tools");this.addAWSManagementToolsPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Mobile Services");this.addAWSMobileServicesPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Networking");this.addAWSNetworkingPalette();this.setCurrentSearchEntryLibrary("aws2","aws2On-Demand Workforce");this.addAWSOnDemandWorkforcePalette();this.setCurrentSearchEntryLibrary("aws2","aws2SDKs");this.addAWSSDKPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Security and Identity");this.addAWSSecurityAndIdentityPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Storage and Content Delivery");this.addAWSStorageAndContentDeliveryPalette();this.setCurrentSearchEntryLibrary("aws2","aws2Groups");this.addAWSGroupPalette();this.setCurrentSearchEntryLibrary()};Sidebar.prototype.addAWSAnalyticsPalette=function(){var a="dashed=0;html=1;"+mxConstants.STYLE_SHAPE+"=mxgraph.aws2.";this.addPaletteFunctions("aws2Analytics","AWS / Analytics",!1,[this.createVertexTemplateEntry(a+"analytics.data_pipeline;strokeColor=none;",60,72,"","Data Pipeline",null,null,this.getTagsForStencil("mxgraph.aws.analytics",@@ -13740,54 +13825,55 @@ null;Q<d.length;){x=d.charCodeAt(Q);Q+=1;10!=x&&(G+=String.fromCharCode(x));x=="d[0].getElementsByTagName("div"),0<m.length&&(x=mxUtils.getTextContent(m[0])));return null!=x?mxUtils.trim(x):x};Editor.addRetryToError=function(d,m){null!=d&&(d=null!=d.error?d.error:d,null==d.retry&&(d.retry=m))};Editor.mermaidToDrawio=function(d,m,x){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(d,m,x)};Editor.configure=function(d){if(null!=d){Editor.config=d;Editor.configVersion=d.version;d.debug&&(urlParams.test="1");d.passiveScroll&&(Editor.passiveScroll=!0);d.noResizers&&(Editor.noResizers=!0);d.preserveViewState&&(Editor.preserveViewState=!0);null!=d.passThroughKeys&&(Editor.passThroughKeys=d.passThroughKeys);null!=d.keyboardShortcuts&&(Array.isArray(d.keyboardShortcuts)?Editor.keyboardShortcuts=d.keyboardShortcuts:EditorUi.debug("Configuration Error: Array expected for keyboardShortcuts"));d.suppressNewWindows&&(Editor.suppressNewWindows=!0,Editor.popupsAllowed=!1);d.useInternalClipboard&&(EditorUi.prototype.useInternalClipboard=d.useInternalClipboard);if(null!=d.customCss){var m=document.createElement("style");m.type="text/css";m.appendChild(document.createTextNode(d.customCss));document.head.appendChild(m)}null!=d.resources&&("object"!==typeof d.resources||Array.isArray(d.resources)?EditorUi.debug("Configuration Error: Object expected for resources"):(Editor.customResources=d.resources,Editor.applyCustomResources()));null!=d.enableLocalFonts&&(Editor.enableLocalFonts=d.enableLocalFonts);null!=d.enableCustomGitLabUrl&&(Editor.enableCustomGitLabUrl=d.enableCustomGitLabUrl);-null!=d.defaultFonts&&(Menus.prototype.defaultFonts=d.defaultFonts);null!=d.presetColors&&(ColorDialog.prototype.presetColors=d.presetColors);null!=d.defaultColors&&(ColorDialog.prototype.defaultColors=d.defaultColors);null!=d.colorNames&&(ColorDialog.prototype.colorNames=d.colorNames);null!=d.defaultColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=d.defaultColorSchemes);null!=d.defaultEdgeLength&&(Graph.prototype.defaultEdgeLength=d.defaultEdgeLength);null!=d.selectParentLayer&&(Graph.selectParentLayer=-d.selectParentLayer);null!=d.intersectionSelect&&(Graph.intersectionSelect=d.intersectionSelect);null!=d.swimlaneSelectionEnabled&&(Graph.prototype.swimlaneSelectionEnabled=d.swimlaneSelectionEnabled);null!=d.autosaveDelay&&(DrawioFile.prototype.autosaveDelay=d.autosaveDelay);null!=d.templateFile&&(EditorUi.templateFile=d.templateFile);null!=d.enabledTemplateSections&&(Array.isArray(d.enabledTemplateSections)?EditorUi.enabledTemplateSections=d.enabledTemplateSections:EditorUi.debug("Configuration Error: Array expected for enabledTemplateSections"));-null!=d.customTemplates&&(Array.isArray(d.customTemplates)?EditorUi.customTemplates=d.customTemplates:EditorUi.debug("Configuration Error: Array expected for customTemplates"));null!=d.styles&&(Array.isArray(d.styles)?Editor.styles=d.styles:EditorUi.debug("Configuration Error: Array expected for styles"));null!=d.globalVars&&(Editor.globalVars=d.globalVars);null!=d.defaultFileType&&(Editor.defaultFileType=d.defaultFileType);null!=d.compressXml&&(Editor.defaultCompressed=d.compressXml,Editor.compressXml=-d.compressXml);null!=d.compressStyles&&(m=mxCodecRegistry.getCodec(mxGraphModel),null!=m&&(m.enableStyleCompression=d.compressStyles));null!=d.includeDiagram&&(Editor.defaultIncludeDiagram=d.includeDiagram);null!=d.simpleLabels&&(Editor.simpleLabels=d.simpleLabels);null!=d.optimizeHtmlLabels&&(Editor.optimizeHtmlLabels=d.optimizeHtmlLabels);null!=d.mathOutputSize&&(Editor.mathOutputSize=d.mathOutputSize);null!=d.mermaid&&("object"!==typeof d.mermaid||Array.isArray(d.mermaid)?EditorUi.debug("Configuration Error: Object expected for mermaid"):-EditorUi.defaultMermaidConfig=d.mermaid);null!=d.pasteAtMousePointer&&(Editor.pasteAtMousePointer=d.pasteAtMousePointer);null!=d.fitDiagramOnLoad&&(Editor.fitDiagramOnLoad=d.fitDiagramOnLoad);null!=d.fitDiagramOnPage&&(Editor.fitDiagramOnPage=d.fitDiagramOnPage);null!=d.showLinkIcons&&(Editor.showLinkIcons=d.showLinkIcons);null!=d.showTooltipIcons&&(Editor.showTooltipIcons=d.showTooltipIcons);null!=d.showNoteIcons&&(Editor.showNoteIcons=d.showNoteIcons);null!=d.tooltipFontSize&&(m=parseInt(d.tooltipFontSize),-!isNaN(m)&&0<m?Editor.tooltipFontSize=m:EditorUi.debug("Configuration Error: Int > 0 expected for tooltipFontSize"));null!=d.tooltipMaxWidth&&(m=parseInt(d.tooltipMaxWidth),!isNaN(m)&&0<=m?Editor.tooltipMaxWidth=m:EditorUi.debug("Configuration Error: Int >= 0 expected for tooltipMaxWidth"));null!=d.expandPatternsForPrint&&(Editor.expandPatternsForPrint=d.expandPatternsForPrint);null!=d.showConnectHandle&&(Editor.showConnectHandle=d.showConnectHandle);null!=d.enableInlineToolbar&&(Editor.enableInlineToolbar=-d.enableInlineToolbar);null!=d.enableSizeGuides&&"undefined"!==typeof mxVertexHandler&&(mxVertexHandler.prototype.sizeGuidesEnabled=d.enableSizeGuides);null!=d.enablePositionGuides&&"undefined"!==typeof mxGuide&&(mxGuide.prototype.positionEnabled=d.enablePositionGuides);null!=d.enableDistanceGuides&&"undefined"!==typeof mxGuide&&(mxGuide.prototype.distanceEnabled=d.enableDistanceGuides);null!=d.defaultTransparentGroups&&(Editor.defaultTransparentGroups=d.defaultTransparentGroups);null!=d.oneDriveInlinePicker&&-(Editor.oneDriveInlinePicker=d.oneDriveInlinePicker);null!=d.enableNativeClipboard&&(Editor.enableNativeClipboard=d.enableNativeClipboard);null!=d.enableExportUrl&&(Editor.enableExportUrl=d.enableExportUrl);null!=d.defaultAdaptiveColors?Graph.defaultAdaptiveColors=d.defaultAdaptiveColors:0==d.enableCssDarkMode&&(Graph.defaultAdaptiveColors="simple");null!=d.enableLightDarkColors&&(mxUtils.lightDarkColorSupported=d.enableLightDarkColors);null!=d.darkColor&&(Editor.darkColor=d.darkColor);null!=d.darkColorVar&&-(Editor.darkColorVar=d.darkColorVar);null!=d.defaultPageBackgroundColor&&(Editor.pageBackgroundColor=d.defaultPageBackgroundColor);null!=d.defaultDarkPageBackgroundColor&&(Editor.darkPageBackgroundColor=d.defaultDarkPageBackgroundColor);null!=d.defaultGridColor&&(mxGraphView.prototype.defaultGridColor=d.defaultGridColor);null!=d.defaultDarkGridColor&&(mxGraphView.prototype.defaultDarkGridColor=d.defaultDarkGridColor);mxGraphView.prototype.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultDarkGridColor:-mxGraphView.prototype.defaultGridColor;Graph.prototype.defaultPageBackgroundColor=Editor.getDefaultPageBackgroundColor();Graph.prototype.shapeBackgroundColor="light-dark(#ffffff, var("+Editor.darkColorVar+", "+Editor.darkColor+"))";null!=d.settingsName&&(Editor.configurationKey="."+d.settingsName+"-configuration",Editor.settingsKey="."+d.settingsName+"-config",mxSettings.key=Editor.settingsKey);null!=d.customFonts&&(Menus.prototype.defaultFonts=d.customFonts.concat(Menus.prototype.defaultFonts));-null!=d.customPresetColors&&(ColorDialog.prototype.presetColors=d.customPresetColors.concat(ColorDialog.prototype.presetColors));null!=d.customColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=d.customColorSchemes.concat(StyleFormatPanel.prototype.defaultColorSchemes));if(null!=d.css){m=document.createElement("style");m.setAttribute("type","text/css");m.appendChild(document.createTextNode(d.css));var x=document.getElementsByTagName("script")[0];x.parentNode.insertBefore(m,x)}null!=d.expandLibraries&&-(Sidebar.prototype.expandLibraries=d.expandLibraries);null!=d.appendCustomLibraries&&(Sidebar.prototype.appendCustomLibraries=d.appendCustomLibraries);null!=d.libraries&&(Sidebar.prototype.customEntries=d.libraries);null!=d.enabledLibraries&&(Array.isArray(d.enabledLibraries)?Sidebar.prototype.enabledLibraries=d.enabledLibraries:EditorUi.debug("Configuration Error: Array expected for enabledLibraries"));null!=d.defaultLibraries&&(Sidebar.prototype.defaultEntries=d.defaultLibraries);null!=d.defaultCustomLibraries&&-(Editor.defaultCustomLibraries=d.defaultCustomLibraries);null!=d.defaultLanguages&&(Array.isArray(d.defaultLanguages)?Editor.defaultLanguages=d.defaultLanguages:EditorUi.debug("Configuration Error: Array expected for defaultLanguages"));null!=d.enableCustomLibraries&&(Editor.enableCustomLibraries=d.enableCustomLibraries);null!=d.inlineExtIcons&&(Editor.inlineExtIcons=d.inlineExtIcons);null!=d.defaultVertexStyle&&(Graph.prototype.defaultVertexStyle=d.defaultVertexStyle);null!=d.defaultEdgeStyle&&(Graph.prototype.defaultEdgeStyle=-d.defaultEdgeStyle);null!=d.shapePicker&&(EditorUi.prototype.defaultShapePickerEntries=d.shapePicker.shapes);null!=d.defaultPageVisible&&(Graph.prototype.defaultPageVisible=d.defaultPageVisible);null!=d.defaultGridEnabled&&(Graph.prototype.defaultGridEnabled=d.defaultGridEnabled);null!=d.defaultConnectionArrowsEnabled&&(Graph.prototype.defaultConnectionArrowsEnabled=d.defaultConnectionArrowsEnabled,Graph.prototype.connectionArrowsEnabled=d.defaultConnectionArrowsEnabled);null!=d.defaultConnectable&&-(Graph.prototype.defaultConnectable=d.defaultConnectable);null!=d.copyOnConnect&&(mxConnectionHandler.prototype.createTarget=d.copyOnConnect);null!=d.stopEditingOnEnter&&(mxGraph.prototype.enterStopsCellEditing=d.stopEditingOnEnter);null!=d.defaultFoldingEnabled&&(Graph.prototype.defaultFoldingEnabled=d.defaultFoldingEnabled);null!=d.foldingIconSize&&Graph.updateFoldingImages(d.foldingIconSize);null!=d.zoomWheel&&(Graph.zoomWheel=d.zoomWheel);null!=d.browserTranslate&&(Graph.browserTranslate=d.browserTranslate);-null!=d.zoomFactor&&(m=parseFloat(d.zoomFactor),!isNaN(m)&&1<m?Graph.prototype.zoomFactor=m:EditorUi.debug("Configuration Error: Float > 1 expected for zoomFactor"));null!=d.defaultGridSize&&(m=parseInt(d.defaultGridSize),!isNaN(m)&&0<m?mxGraph.prototype.gridSize=m:EditorUi.debug("Configuration Error: Int > 0 expected for defaultGridSize"));null!=d.gridSteps&&(m=parseInt(d.gridSteps),!isNaN(m)&&0<m?mxGraphView.prototype.gridSteps=m:EditorUi.debug("Configuration Error: Int > 0 expected for gridSteps"));-null!=d.pageFormat&&(m=parseInt(d.pageFormat.width),x=parseInt(d.pageFormat.height),!isNaN(m)&&0<m&&!isNaN(x)&&0<x?(mxGraph.prototype.defaultPageFormat=new mxRectangle(0,0,m,x),mxGraph.prototype.pageFormat=mxGraph.prototype.defaultPageFormat):EditorUi.debug("Configuration Error: {width: int, height: int} expected for pageFormat"));null!=d.thumbWidth&&(Sidebar.prototype.thumbWidth=d.thumbWidth);null!=d.thumbHeight&&(Sidebar.prototype.thumbHeight=d.thumbHeight);null!=d.emptyLibraryXml&&(EditorUi.prototype.emptyLibraryXml=-d.emptyLibraryXml);null!=d.emptyDiagramXml&&(EditorUi.prototype.emptyDiagramXml=d.emptyDiagramXml);null!=d.sidebarWidth&&(EditorUi.prototype.hsplitPosition=d.sidebarWidth);null!=d.updateDefaultStyle&&(EditorUi.prototype.updateDefaultStyle=d.updateDefaultStyle);null!=d.sidebarTitles&&(Sidebar.prototype.sidebarTitles=d.sidebarTitles);null!=d.sidebarTitleSize&&(m=parseInt(d.sidebarTitleSize),!isNaN(m)&&0<m?Sidebar.prototype.sidebarTitleSize=m:EditorUi.debug("Configuration Error: Int > 0 expected for sidebarTitleSize"));-null!=d.fontCss&&("string"===typeof d.fontCss?Editor.configureFontCss(d.fontCss):EditorUi.debug("Configuration Error: String expected for fontCss"));null!=d.autosaveDelay&&(m=parseInt(d.autosaveDelay),!isNaN(m)&&0<m?DrawioFile.prototype.autosaveDelay=m:EditorUi.debug("Configuration Error: Int > 0 expected for autosaveDelay"));null!=d.maxImageBytes&&(EditorUi.prototype.maxImageBytes=d.maxImageBytes);null!=d.maxImageSize&&(EditorUi.prototype.maxImageSize=d.maxImageSize);null!=d.shareCursorPosition&&-(EditorUi.prototype.shareCursorPosition=d.shareCursorPosition);null!=d.showRemoteCursors&&(EditorUi.prototype.showRemoteCursors=d.showRemoteCursors);null!=d.restrictExport&&(DrawioFile.RESTRICT_EXPORT=d.restrictExport);null!=d.removeImageMetadata&&(Editor.removeImageMetadata=d.removeImageMetadata);null!=d.defaultTextStyle&&(Editor.defaultTextStyle=d.defaultTextStyle);null!=d.replaceSvgDataUris&&(Editor.replaceSvgDataUris=d.replaceSvgDataUris);null!=d.foreignObjectImages&&(Editor.foreignObjectImages=-d.foreignObjectImages);null!=d.embedSvgFonts&&(Editor.embedSvgFonts=d.embedSvgFonts);null!=d.shadowColor&&(mxConstants.SHADOW_COLOR=d.shadowColor);null!=d.shadowOpacity&&(mxConstants.SHADOW_OPACITY=d.shadowOpacity);null!=d.shadowOffsetX&&(mxConstants.SHADOW_OFFSET_X=d.shadowOffsetX);null!=d.shadowOffsetY&&(mxConstants.SHADOW_OFFSET_Y=d.shadowOffsetY);null!=d.shadowBlur&&(mxConstants.SHADOW_BLUR=d.shadowBlur);null!=d.enableAnimations&&(Editor.enableAnimations=d.enableAnimations);null!=d.insertAnimations&&-(Editor.insertAnimations=d.insertAnimations);null!=d.enableWindowDocking&&(Editor.enableWindowDocking=d.enableWindowDocking);null!=d.compact&&(EditorUi.prototype.defaultCompact=d.compact);null!=d.noAutoFocus&&(EditorUi.prototype.noAutoFocus=d.noAutoFocus);if(null!=d.hideMenuItems)if(Array.isArray(d.hideMenuItems))for(Menus.prototype.hiddenMenuItems={},m=0;m<d.hideMenuItems.length;m++)Menus.prototype.hiddenMenuItems[d.hideMenuItems[m]]=!0;else EditorUi.debug("Configuration Error: Array expected for hideMenuItems");-if(null!=d.hideMenus)if(Array.isArray(d.hideMenus)){var C={};for(m=0;m<d.hideMenus.length;m++)C[d.hideMenus[m]]=!0;Menus.prototype.defaultMenuItems=Menus.prototype.defaultMenuItems.filter(function(F){return!C[F]})}else EditorUi.debug("Configuration Error: Array expected for hideMenus");null!=d.enableAi&&(Editor.enableAi=d.enableAi);null!=d.enableChatGpt&&(Editor.enableAi=d.enableChatGpt);null!=d.gptApiKey&&(Editor.aiGlobals.gptApiKey=d.gptApiKey);null!=d.geminiApiKey&&(Editor.aiGlobals.geminiApiKey=-d.geminiApiKey);null!=d.claudeApiKey&&(Editor.aiGlobals.claudeApiKey=d.claudeApiKey);null!=d.gptUrl&&null!=Editor.aiConfigs.gpt&&(Editor.aiConfigs.gpt.endpoint=d.gptUrl);null!=d.aiActions&&(Editor.aiActions=d.aiActions);null!=d.aiGlobals&&(Editor.aiGlobals=d.aiGlobals);null!=d.aiConfigs&&(Editor.aiConfigs=d.aiConfigs);null!=d.aiModels&&(Editor.aiModels=d.aiModels)}};Editor.applyCustomResources=function(){if(null!=Editor.customResources){var d=null!=mxClient.language?mxClient.language.toLowerCase():-null,m=null!=d?d.indexOf("-"):-1,x;for(x in Editor.customResources){var C=Editor.customResources[x];null!=C&&"object"===typeof C&&(C=(null!=d?C[d]:null)||(0<m?C[d.substring(0,m)]:null)||C.main);"string"===typeof C&&(mxResources.resources[x]=C)}}};var b=mxResources.parse;mxResources.parse=function(d){b.apply(this,arguments);Editor.applyCustomResources()};Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.expandSvgPatterns=-function(d){function m(ba,T){ba=ba.getAttribute("fill");if(null==ba||0!==ba.indexOf("url("))return null;ba=ba.match(/url\([^#]*#([^)"]+)\)?/);if(null==ba)return null;ba=ba[1];try{var Z=T.querySelector("#"+CSS.escape(ba));return null!=Z&&"pattern"===Z.nodeName?Z:null}catch(X){return null}}function x(ba,T,Z){var X,da,R;try{var Y=ba.getBBox()}catch(ha){return}if(0!==Y.width&&0!==Y.height){var ca=parseFloat(T.getAttribute("width")),P=parseFloat(T.getAttribute("height"));if(!(isNaN(ca)||isNaN(P)||0>=ca||-0>=P)){var aa=T.getAttribute("patternTransform");var ea=da=X=0;var na=R=1;if(null!=aa){var ta=aa.match(/translate\(\s*([^,\s]+)[,\s]+([^)]+)\)/);null!=ta&&(X=parseFloat(ta[1]),da=parseFloat(ta[2]));ta=aa.match(/rotate\(\s*([^)]+)\)/);null!=ta&&(ea=parseFloat(ta[1])*Math.PI/180);aa=aa.match(/scale\(\s*([^,\s)]+)(?:[,\s]+([^)]+))?\)/);null!=aa&&(R=parseFloat(aa[1]),na=null!=aa[2]?parseFloat(aa[2]):R)}var ua=[{x:Y.x,y:Y.y},{x:Y.x+Y.width,y:Y.y},{x:Y.x+Y.width,y:Y.y+Y.height},{x:Y.x,y:Y.y+Y.height}],-ma=Infinity;Y=Infinity;ta=aa=-Infinity;for(var xa=0;xa<ua.length;xa++){var ya=ua[xa].x-X;var Aa=ua[xa].y-da,Ca=Math.cos(-ea),va=Math.sin(-ea);var pa=(ya*Ca-Aa*va)/R;ya=(ya*va+Aa*Ca)/na;ma=Math.min(ma,pa);Y=Math.min(Y,ya);aa=Math.max(aa,pa);ta=Math.max(ta,ya)}ma=Math.floor(ma/ca)-1;Y=Math.floor(Y/P)-1;aa=Math.ceil(aa/ca)+1;pa=Math.ceil(ta/P)+1;if(!(1E4<(aa-ma)*(pa-Y))){xa=F+ ++C;ta=Z.ownerDocument.createElementNS("http://www.w3.org/2000/svg","clipPath");ta.setAttribute("id",xa);ua=ba.cloneNode(!0);-ua.removeAttribute("fill");ua.removeAttribute("fill-opacity");ua.removeAttribute("stroke");ua.removeAttribute("stroke-width");ua.removeAttribute("stroke-opacity");ua.removeAttribute("style");ua.removeAttribute("pointer-events");ua.setAttribute("fill","black");ta.appendChild(ua);ua=Z.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");ua.setAttribute("clip-path","url(#"+xa+")");xa=ba.getAttribute("fill-opacity");null!=xa&&ua.setAttribute("opacity",xa);xa=Z.ownerDocument.createElementNS("http://www.w3.org/2000/svg",-"g");xa.setAttribute("transform","translate("+X+","+da+")"+(0!==ea?" rotate("+180*ea/Math.PI+")":"")+" scale("+R+(na!==R?","+na:"")+")");da=F+ ++C;X=Z.ownerDocument.createElementNS("http://www.w3.org/2000/svg","clipPath");X.setAttribute("id",da);ea=Z.ownerDocument.createElementNS("http://www.w3.org/2000/svg","rect");ea.setAttribute("x","0");ea.setAttribute("y","0");ea.setAttribute("width",ca);ea.setAttribute("height",P);X.appendChild(ea);T=T.childNodes;for(ea=ma;ea<aa;ea++)for(R=Y;R<pa;R++){na=Z.ownerDocument.createElementNS("http://www.w3.org/2000/svg",-"g");na.setAttribute("transform","translate("+ea*ca+","+R*P+")");na.setAttribute("clip-path","url(#"+da+")");for(ma=0;ma<T.length;ma++)1===T[ma].nodeType&&na.appendChild(T[ma].cloneNode(!0));xa.appendChild(na)}ua.appendChild(xa);ca=Z.querySelector("defs");null==ca&&(ca=Z.ownerDocument.createElementNS("http://www.w3.org/2000/svg","defs"),Z.insertBefore(ca,Z.firstChild));ca.appendChild(ta);ca.appendChild(X);ba.parentNode.insertBefore(ua,ba.nextSibling);ba.setAttribute("fill","none");ba.style.fill=""}}}}-for(var C=0,F="expand-pattern-clip-"+Editor.guid(8)+"-",G=d.querySelectorAll('[fill^="url("]'),K=0;K<G.length;K++){var Q=m(G[K],d);null!=Q&&x(G[K],Q,d)}G=d.querySelectorAll("[style]");for(K=0;K<G.length;K++)Q=G[K].getAttribute("style"),null!=Q&&-1!==Q.indexOf("url(")&&(Q=m(G[K],d),null!=Q&&x(G[K],Q,d))};Editor.configureFontCss=function(d){if(null!=d){Editor.prototype.fontCss=d;var m=document.getElementsByTagName("script")[0];if(null!=m&&null!=m.parentNode){var x=document.createElement("style");x.setAttribute("type",-"text/css");x.appendChild(document.createTextNode(d));m.parentNode.insertBefore(x,m);d=d.split("url(");for(x=1;x<d.length;x++){var C=d[x].indexOf(")");C=Editor.trimCssUrl(d[x].substring(0,C));var F=document.createElement("link");F.setAttribute("rel","preload");F.setAttribute("href",C);F.setAttribute("as","font");F.setAttribute("crossorigin","");m.parentNode.insertBefore(F,m)}}}};Editor.trimCssUrl=function(d){return d.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS=-"https://fonts.googleapis.com/css?family=";Editor.GOOGLE_FONTS_CSS2="https://fonts.googleapis.com/css2?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(d){d=null!=d?d:Editor.GUID_LENGTH;for(var m=[],x=0;x<d;x++)m.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));return m.join("")};Editor.updateStatusInterval=1E4;Editor.prototype.appName="draw.io";Editor.prototype.diagramFileTypes=-[{description:"diagramXmlDesc",extension:"drawio",mimeType:"text/xml"},{description:"diagramPngDesc",extension:"png",mimeType:"image/png"},{description:"diagramSvgDesc",extension:"svg",mimeType:"image/svg"},{description:"diagramHtmlDesc",extension:"html",mimeType:"text/html"}];Editor.prototype.libraryFileTypes=[{description:"Library (.drawiolib, .xml)",extensions:["drawiolib","xml"]}];Editor.prototype.fileExtensions=[{ext:"html",title:"filetypeHtml"},{ext:"png",title:"filetypePng"},{ext:"svg",title:"filetypeSvg"}];-Editor.prototype.timeout=25E3;Editor.prototype.generateTimeout=9E4;Editor.prototype.editButtonLink=null!=urlParams.edit?decodeURIComponent(urlParams.edit):null;Editor.prototype.crossOriginImages=!0;var l=Editor.prototype.setGraphXml;Editor.prototype.setGraphXml=function(d){d=null!=d&&"mxlibrary"!=d.nodeName?this.extractGraphModel(d):null;if(null!=d){var m=Editor.extractParserError(d,mxResources.get("invalidOrMissingFile"));if(m)throw EditorUi.debug("Editor.setGraphXml ParserError",[this],"node",[d],-"cause",[m]),Error(mxResources.get("notADiagramFile")+" ("+m+")");if("mxGraphModel"==d.nodeName){m=d.getAttribute("style")||"default-style2";if("1"==urlParams.embed||null!=m&&""!=m)m!=this.graph.currentStyle&&(x=null!=this.graph.themes?this.graph.themes[m]:mxUtils.load(STYLE_PATH+"/"+m+".xml").getDocumentElement(),null!=x&&(C=new mxCodec(x.ownerDocument),C.decode(x,this.graph.getStylesheet())));else{var x=null!=this.graph.themes?this.graph.themes["default-old"]:mxUtils.load(STYLE_PATH+"/default-old.xml").getDocumentElement();-if(null!=x){var C=new mxCodec(x.ownerDocument);C.decode(x,this.graph.getStylesheet())}}this.graph.currentStyle=m;this.graph.mathEnabled="1"==urlParams.math||"1"==d.getAttribute("math");this.graph.setAdaptiveColors(d.getAttribute("adaptiveColors"));m=d.getAttribute("backgroundImage");null!=m?this.graph.setBackgroundImage(this.graph.parseBackgroundImage(m)):this.graph.setBackgroundImage(null);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();-this.graph.updateCssTransform();this.graph.setShadowVisible("1"==d.getAttribute("shadow"),!1);if(m=d.getAttribute("extFonts"))try{for(m=m.split("|").map(function(F){F=F.split("^");return{name:F[0],url:F[1]}}),x=0;x<m.length;x++)this.graph.addExtFont(m[x].name,m[x].url)}catch(F){console.log("ExtFonts format error: "+F.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}l.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||"Invalid data",-toString:function(){return this.message}};};var p=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(d,m){d=null!=d?d:!0;var x=p.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&x.setAttribute("style",this.graph.currentStyle);var C=this.graph.getBackgroundImageObject(this.graph.backgroundImage,m);null!=C&&x.setAttribute("backgroundImage",JSON.stringify(C));x.setAttribute("math",this.graph.mathEnabled?"1":"0");x.setAttribute("shadow",this.graph.shadowVisible?-"1":"0");null!=this.graph.adaptiveColors?x.setAttribute("adaptiveColors",this.graph.adaptiveColors):x.removeAttribute("adaptiveColors");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(C=this.graph.extFonts.map(function(F){return F.name+"^"+F.url}),x.setAttribute("extFonts",C.join("|")));return x};Editor.prototype.isDataSvg=function(d){try{var m=mxUtils.parseXml(d).documentElement.getAttribute("content");if(null!=m&&(null!=m&&"<"!=m.charAt(0)&&"%"!=m.charAt(0)&&(m=unescape(window.atob?atob(m):-Base64.decode(cont,m))),null!=m&&"%"==m.charAt(0)&&(m=decodeURIComponent(m)),null!=m&&0<m.length)){var x=mxUtils.parseXml(m).documentElement;return"mxfile"==x.nodeName||"mxGraphModel"==x.nodeName}}catch(C){}return!1};Editor.prototype.extractGraphModel=function(d,m,x){return Editor.extractGraphModel.apply(this,arguments)};var g=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.setAdaptiveColors(null);this.graph.view.x0=null;this.graph.view.y0=-null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();g.apply(this,arguments)};var u=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){u.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.safeMathJaxFilterUrl=function(d,m){var x=(m.replace(/[\t\n\r]/g,-"").replace(/^[\u0000-\u0020]+/,"").match(/^([a-z][a-z0-9+.\-]*):/i)||[null,""])[1].toLowerCase(),C=d.allow.URLs;return"all"===C||"safe"===C&&(d.options.safeProtocols[x]||!x)?m:null};Editor.safeMathJaxFilterUrl.drawioPatched=!0;Editor.patchMathJaxUrlFilter=function(d){d=null!=d?d:"undefined"!==typeof MathJax?MathJax:null;if(null!=d){var m=null!=d._&&null!=d._.ui&&null!=d._.ui.safe&&null!=d._.ui.safe.SafeMethods?d._.ui.safe.SafeMethods.SafeMethods:null;null==m||null==m.filterURL||m.filterURL.drawioPatched||-(m.filterURL=Editor.safeMathJaxFilterUrl);d=null!=d.startup?d.startup.document:null;null==d||null==d.safe||null==d.safe.filterMethods||null==d.safe.filterMethods.filterURL||d.safe.filterMethods.filterURL.drawioPatched||(d.safe.filterMethods.filterURL=Editor.safeMathJaxFilterUrl)}};Editor.safeMathJaxDataMacro=function(d,m,x,C){var F=d.setAttribute;d.setAttribute=function(G,K,Q){if("string"!==typeof K||"data-"!==K.substring(0,5)||K.match(Editor.safeMathJaxDataPattern))return F.apply(this,arguments)};-try{return m.apply(this,[x,C])}finally{d.setAttribute=F}};Editor.safeMathJaxDataPattern=/^data-mjx-/;Editor.patchMathJaxDataMacro=function(d){d=null!=d?d:"undefined"!==typeof MathJax?MathJax:null;d=null!=d&&null!=d._&&null!=d._.input?d._.input.tex:null;if(null!=d&&null!=d.MapHandler&&null!=d.NodeUtil){var m=d.MapHandler.MapHandler.getMap("html_macros");m=null!=m&&null!=m.lookup?m.lookup("data"):null;if(null!=m&&null!=m._func&&!m._func.drawioPatched){var x=d.NodeUtil["default"],C=m._func;d=function(F,-G){return Editor.safeMathJaxDataMacro(x,C,F,G)};d.drawioPatched=!0;m._func=d}}};Editor.patchMathJaxSafeFilters=function(d){Editor.patchMathJaxUrlFilter(d);Editor.patchMathJaxDataMacro(d)};Editor.initMath=function(d,m){if("undefined"===typeof window.MathJax){var x=function(){C=null;Editor.mathJaxRendering=!1;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};d=null!=d?d:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var C=null;Editor.mathJaxRendering=-!1;Editor.doMathJaxRender=function(K){Editor.patchMathJaxSafeFilters();null!=MathJax.startup&&null!=MathJax.startup.output&&null!=MathJax.startup.output.options&&null!=MathJax.startup.output.options.linebreaks&&(MathJax.startup.output.options.linebreaks.inline=!1);try{null==C?(MathJax.typesetClear([K]),MathJax.typeset([K]),x()):C!=K&&Editor.mathJaxQueue.push(K)}catch(Q){MathJax.typesetClear([K]),null!=Q.retry?(C=K,Editor.mathJaxRendering=!0,Q.retry.then(function(){MathJax.typesetPromise([K]).then(x)["catch"](function(ba){console.log("Error in MathJax.typesetPromise: "++null!=d.defaultFonts&&(Menus.prototype.defaultFonts=d.defaultFonts,Editor.addAllowedFontUrls(d.defaultFonts));null!=d.presetColors&&(ColorDialog.prototype.presetColors=d.presetColors);null!=d.defaultColors&&(ColorDialog.prototype.defaultColors=d.defaultColors);null!=d.colorNames&&(ColorDialog.prototype.colorNames=d.colorNames);null!=d.defaultColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=d.defaultColorSchemes);null!=d.defaultEdgeLength&&(Graph.prototype.defaultEdgeLength=d.defaultEdgeLength);+null!=d.selectParentLayer&&(Graph.selectParentLayer=d.selectParentLayer);null!=d.intersectionSelect&&(Graph.intersectionSelect=d.intersectionSelect);null!=d.swimlaneSelectionEnabled&&(Graph.prototype.swimlaneSelectionEnabled=d.swimlaneSelectionEnabled);null!=d.autosaveDelay&&(DrawioFile.prototype.autosaveDelay=d.autosaveDelay);null!=d.templateFile&&(EditorUi.templateFile=d.templateFile);null!=d.enabledTemplateSections&&(Array.isArray(d.enabledTemplateSections)?EditorUi.enabledTemplateSections=d.enabledTemplateSections:+EditorUi.debug("Configuration Error: Array expected for enabledTemplateSections"));null!=d.customTemplates&&(Array.isArray(d.customTemplates)?EditorUi.customTemplates=d.customTemplates:EditorUi.debug("Configuration Error: Array expected for customTemplates"));null!=d.styles&&(Array.isArray(d.styles)?Editor.styles=d.styles:EditorUi.debug("Configuration Error: Array expected for styles"));null!=d.globalVars&&(Editor.globalVars=d.globalVars);null!=d.defaultFileType&&(Editor.defaultFileType=d.defaultFileType);+null!=d.compressXml&&(Editor.defaultCompressed=d.compressXml,Editor.compressXml=d.compressXml);null!=d.compressStyles&&(m=mxCodecRegistry.getCodec(mxGraphModel),null!=m&&(m.enableStyleCompression=d.compressStyles));null!=d.includeDiagram&&(Editor.defaultIncludeDiagram=d.includeDiagram);null!=d.simpleLabels&&(Editor.simpleLabels=d.simpleLabels);null!=d.optimizeHtmlLabels&&(Editor.optimizeHtmlLabels=d.optimizeHtmlLabels);null!=d.mathOutputSize&&(Editor.mathOutputSize=d.mathOutputSize);null!=d.mermaid&&+("object"!==typeof d.mermaid||Array.isArray(d.mermaid)?EditorUi.debug("Configuration Error: Object expected for mermaid"):EditorUi.defaultMermaidConfig=d.mermaid);null!=d.pasteAtMousePointer&&(Editor.pasteAtMousePointer=d.pasteAtMousePointer);null!=d.fitDiagramOnLoad&&(Editor.fitDiagramOnLoad=d.fitDiagramOnLoad);null!=d.fitDiagramOnPage&&(Editor.fitDiagramOnPage=d.fitDiagramOnPage);null!=d.showLinkIcons&&(Editor.showLinkIcons=d.showLinkIcons);null!=d.showTooltipIcons&&(Editor.showTooltipIcons=d.showTooltipIcons);+null!=d.showNoteIcons&&(Editor.showNoteIcons=d.showNoteIcons);null!=d.tooltipFontSize&&(m=parseInt(d.tooltipFontSize),!isNaN(m)&&0<m?Editor.tooltipFontSize=m:EditorUi.debug("Configuration Error: Int > 0 expected for tooltipFontSize"));null!=d.tooltipMaxWidth&&(m=parseInt(d.tooltipMaxWidth),!isNaN(m)&&0<=m?Editor.tooltipMaxWidth=m:EditorUi.debug("Configuration Error: Int >= 0 expected for tooltipMaxWidth"));null!=d.expandPatternsForPrint&&(Editor.expandPatternsForPrint=d.expandPatternsForPrint);null!=+d.showConnectHandle&&(Editor.showConnectHandle=d.showConnectHandle);null!=d.enableInlineToolbar&&(Editor.enableInlineToolbar=d.enableInlineToolbar);null!=d.enableSizeGuides&&"undefined"!==typeof mxVertexHandler&&(mxVertexHandler.prototype.sizeGuidesEnabled=d.enableSizeGuides);null!=d.enablePositionGuides&&"undefined"!==typeof mxGuide&&(mxGuide.prototype.positionEnabled=d.enablePositionGuides);null!=d.enableDistanceGuides&&"undefined"!==typeof mxGuide&&(mxGuide.prototype.distanceEnabled=d.enableDistanceGuides);+null!=d.defaultTransparentGroups&&(Editor.defaultTransparentGroups=d.defaultTransparentGroups);null!=d.oneDriveInlinePicker&&(Editor.oneDriveInlinePicker=d.oneDriveInlinePicker);null!=d.enableNativeClipboard&&(Editor.enableNativeClipboard=d.enableNativeClipboard);null!=d.enableExportUrl&&(Editor.enableExportUrl=d.enableExportUrl);null!=d.defaultAdaptiveColors?Graph.defaultAdaptiveColors=d.defaultAdaptiveColors:0==d.enableCssDarkMode&&(Graph.defaultAdaptiveColors="simple");null!=d.enableLightDarkColors&&+(mxUtils.lightDarkColorSupported=d.enableLightDarkColors);null!=d.darkColor&&(Editor.darkColor=d.darkColor);null!=d.darkColorVar&&(Editor.darkColorVar=d.darkColorVar);null!=d.defaultPageBackgroundColor&&(Editor.pageBackgroundColor=d.defaultPageBackgroundColor);null!=d.defaultDarkPageBackgroundColor&&(Editor.darkPageBackgroundColor=d.defaultDarkPageBackgroundColor);null!=d.defaultGridColor&&(mxGraphView.prototype.defaultGridColor=d.defaultGridColor);null!=d.defaultDarkGridColor&&(mxGraphView.prototype.defaultDarkGridColor=+d.defaultDarkGridColor);mxGraphView.prototype.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultDarkGridColor:mxGraphView.prototype.defaultGridColor;Graph.prototype.defaultPageBackgroundColor=Editor.getDefaultPageBackgroundColor();Graph.prototype.shapeBackgroundColor="light-dark(#ffffff, var("+Editor.darkColorVar+", "+Editor.darkColor+"))";null!=d.settingsName&&(Editor.configurationKey="."+d.settingsName+"-configuration",Editor.settingsKey="."+d.settingsName+"-config",mxSettings.key=Editor.settingsKey);+null!=d.customFonts&&(Menus.prototype.defaultFonts=d.customFonts.concat(Menus.prototype.defaultFonts),Editor.addAllowedFontUrls(d.customFonts));null!=d.customPresetColors&&(ColorDialog.prototype.presetColors=d.customPresetColors.concat(ColorDialog.prototype.presetColors));null!=d.customColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=d.customColorSchemes.concat(StyleFormatPanel.prototype.defaultColorSchemes));if(null!=d.css){m=document.createElement("style");m.setAttribute("type","text/css");+m.appendChild(document.createTextNode(d.css));var x=document.getElementsByTagName("script")[0];x.parentNode.insertBefore(m,x)}null!=d.expandLibraries&&(Sidebar.prototype.expandLibraries=d.expandLibraries);null!=d.appendCustomLibraries&&(Sidebar.prototype.appendCustomLibraries=d.appendCustomLibraries);null!=d.libraries&&(Sidebar.prototype.customEntries=d.libraries);null!=d.enabledLibraries&&(Array.isArray(d.enabledLibraries)?Sidebar.prototype.enabledLibraries=d.enabledLibraries:EditorUi.debug("Configuration Error: Array expected for enabledLibraries"));+null!=d.defaultLibraries&&(Sidebar.prototype.defaultEntries=d.defaultLibraries);null!=d.defaultCustomLibraries&&(Editor.defaultCustomLibraries=d.defaultCustomLibraries);null!=d.defaultLanguages&&(Array.isArray(d.defaultLanguages)?Editor.defaultLanguages=d.defaultLanguages:EditorUi.debug("Configuration Error: Array expected for defaultLanguages"));null!=d.enableCustomLibraries&&(Editor.enableCustomLibraries=d.enableCustomLibraries);null!=d.inlineExtIcons&&(Editor.inlineExtIcons=d.inlineExtIcons);null!=+d.defaultVertexStyle&&(Graph.prototype.defaultVertexStyle=d.defaultVertexStyle);null!=d.defaultEdgeStyle&&(Graph.prototype.defaultEdgeStyle=d.defaultEdgeStyle);null!=d.shapePicker&&(EditorUi.prototype.defaultShapePickerEntries=d.shapePicker.shapes);null!=d.defaultPageVisible&&(Graph.prototype.defaultPageVisible=d.defaultPageVisible);null!=d.defaultGridEnabled&&(Graph.prototype.defaultGridEnabled=d.defaultGridEnabled);null!=d.defaultConnectionArrowsEnabled&&(Graph.prototype.defaultConnectionArrowsEnabled=+d.defaultConnectionArrowsEnabled,Graph.prototype.connectionArrowsEnabled=d.defaultConnectionArrowsEnabled);null!=d.defaultConnectable&&(Graph.prototype.defaultConnectable=d.defaultConnectable);null!=d.copyOnConnect&&(mxConnectionHandler.prototype.createTarget=d.copyOnConnect);null!=d.stopEditingOnEnter&&(mxGraph.prototype.enterStopsCellEditing=d.stopEditingOnEnter);null!=d.defaultFoldingEnabled&&(Graph.prototype.defaultFoldingEnabled=d.defaultFoldingEnabled);null!=d.foldingIconSize&&Graph.updateFoldingImages(d.foldingIconSize);+null!=d.zoomWheel&&(Graph.zoomWheel=d.zoomWheel);null!=d.browserTranslate&&(Graph.browserTranslate=d.browserTranslate);null!=d.zoomFactor&&(m=parseFloat(d.zoomFactor),!isNaN(m)&&1<m?Graph.prototype.zoomFactor=m:EditorUi.debug("Configuration Error: Float > 1 expected for zoomFactor"));null!=d.defaultGridSize&&(m=parseInt(d.defaultGridSize),!isNaN(m)&&0<m?mxGraph.prototype.gridSize=m:EditorUi.debug("Configuration Error: Int > 0 expected for defaultGridSize"));null!=d.gridSteps&&(m=parseInt(d.gridSteps),+!isNaN(m)&&0<m?mxGraphView.prototype.gridSteps=m:EditorUi.debug("Configuration Error: Int > 0 expected for gridSteps"));null!=d.pageFormat&&(m=parseInt(d.pageFormat.width),x=parseInt(d.pageFormat.height),!isNaN(m)&&0<m&&!isNaN(x)&&0<x?(mxGraph.prototype.defaultPageFormat=new mxRectangle(0,0,m,x),mxGraph.prototype.pageFormat=mxGraph.prototype.defaultPageFormat):EditorUi.debug("Configuration Error: {width: int, height: int} expected for pageFormat"));null!=d.thumbWidth&&(Sidebar.prototype.thumbWidth=+d.thumbWidth);null!=d.thumbHeight&&(Sidebar.prototype.thumbHeight=d.thumbHeight);null!=d.emptyLibraryXml&&(EditorUi.prototype.emptyLibraryXml=d.emptyLibraryXml);null!=d.emptyDiagramXml&&(EditorUi.prototype.emptyDiagramXml=d.emptyDiagramXml);null!=d.sidebarWidth&&(EditorUi.prototype.hsplitPosition=d.sidebarWidth);null!=d.updateDefaultStyle&&(EditorUi.prototype.updateDefaultStyle=d.updateDefaultStyle);null!=d.sidebarTitles&&(Sidebar.prototype.sidebarTitles=d.sidebarTitles);null!=d.sidebarTitleSize&&+(m=parseInt(d.sidebarTitleSize),!isNaN(m)&&0<m?Sidebar.prototype.sidebarTitleSize=m:EditorUi.debug("Configuration Error: Int > 0 expected for sidebarTitleSize"));null!=d.fontCss&&("string"===typeof d.fontCss?Editor.configureFontCss(d.fontCss):EditorUi.debug("Configuration Error: String expected for fontCss"));null!=d.autosaveDelay&&(m=parseInt(d.autosaveDelay),!isNaN(m)&&0<m?DrawioFile.prototype.autosaveDelay=m:EditorUi.debug("Configuration Error: Int > 0 expected for autosaveDelay"));null!=d.maxImageBytes&&+(EditorUi.prototype.maxImageBytes=d.maxImageBytes);null!=d.maxImageSize&&(EditorUi.prototype.maxImageSize=d.maxImageSize);null!=d.shareCursorPosition&&(EditorUi.prototype.shareCursorPosition=d.shareCursorPosition);null!=d.showRemoteCursors&&(EditorUi.prototype.showRemoteCursors=d.showRemoteCursors);null!=d.restrictExport&&(DrawioFile.RESTRICT_EXPORT=d.restrictExport);null!=d.removeImageMetadata&&(Editor.removeImageMetadata=d.removeImageMetadata);null!=d.defaultTextStyle&&(Editor.defaultTextStyle=+d.defaultTextStyle);null!=d.replaceSvgDataUris&&(Editor.replaceSvgDataUris=d.replaceSvgDataUris);null!=d.foreignObjectImages&&(Editor.foreignObjectImages=d.foreignObjectImages);null!=d.embedSvgFonts&&(Editor.embedSvgFonts=d.embedSvgFonts);null!=d.shadowColor&&(mxConstants.SHADOW_COLOR=d.shadowColor);null!=d.shadowOpacity&&(mxConstants.SHADOW_OPACITY=d.shadowOpacity);null!=d.shadowOffsetX&&(mxConstants.SHADOW_OFFSET_X=d.shadowOffsetX);null!=d.shadowOffsetY&&(mxConstants.SHADOW_OFFSET_Y=d.shadowOffsetY);+null!=d.shadowBlur&&(mxConstants.SHADOW_BLUR=d.shadowBlur);null!=d.enableAnimations&&(Editor.enableAnimations=d.enableAnimations);null!=d.insertAnimations&&(Editor.insertAnimations=d.insertAnimations);null!=d.enableWindowDocking&&(Editor.enableWindowDocking=d.enableWindowDocking);null!=d.compact&&(EditorUi.prototype.defaultCompact=d.compact);null!=d.noAutoFocus&&(EditorUi.prototype.noAutoFocus=d.noAutoFocus);if(null!=d.hideMenuItems)if(Array.isArray(d.hideMenuItems))for(Menus.prototype.hiddenMenuItems=+{},m=0;m<d.hideMenuItems.length;m++)Menus.prototype.hiddenMenuItems[d.hideMenuItems[m]]=!0;else EditorUi.debug("Configuration Error: Array expected for hideMenuItems");if(null!=d.hideMenus)if(Array.isArray(d.hideMenus)){var C={};for(m=0;m<d.hideMenus.length;m++)C[d.hideMenus[m]]=!0;Menus.prototype.defaultMenuItems=Menus.prototype.defaultMenuItems.filter(function(F){return!C[F]})}else EditorUi.debug("Configuration Error: Array expected for hideMenus");null!=d.enableAi&&(Editor.enableAi=d.enableAi);+null!=d.enableChatGpt&&(Editor.enableAi=d.enableChatGpt);null!=d.gptApiKey&&(Editor.aiGlobals.gptApiKey=d.gptApiKey);null!=d.geminiApiKey&&(Editor.aiGlobals.geminiApiKey=d.geminiApiKey);null!=d.claudeApiKey&&(Editor.aiGlobals.claudeApiKey=d.claudeApiKey);null!=d.gptUrl&&null!=Editor.aiConfigs.gpt&&(Editor.aiConfigs.gpt.endpoint=d.gptUrl);null!=d.aiActions&&(Editor.aiActions=d.aiActions);null!=d.aiGlobals&&(Editor.aiGlobals=d.aiGlobals);null!=d.aiConfigs&&(Editor.aiConfigs=d.aiConfigs);null!=d.aiModels&&+(Editor.aiModels=d.aiModels)}};Editor.applyCustomResources=function(){if(null!=Editor.customResources){var d=null!=mxClient.language?mxClient.language.toLowerCase():null,m=null!=d?d.indexOf("-"):-1,x;for(x in Editor.customResources){var C=Editor.customResources[x];null!=C&&"object"===typeof C&&(C=(null!=d?C[d]:null)||(0<m?C[d.substring(0,m)]:null)||C.main);"string"===typeof C&&(mxResources.resources[x]=C)}}};var b=mxResources.parse;mxResources.parse=function(d){b.apply(this,arguments);Editor.applyCustomResources()};+Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.expandSvgPatterns=function(d){function m(ba,T){ba=ba.getAttribute("fill");if(null==ba||0!==ba.indexOf("url("))return null;ba=ba.match(/url\([^#]*#([^)"]+)\)?/);if(null==ba)return null;ba=ba[1];try{var Z=T.querySelector("#"+CSS.escape(ba));return null!=Z&&"pattern"===Z.nodeName?Z:null}catch(X){return null}}function x(ba,T,Z){var X,da,R;try{var Y=ba.getBBox()}catch(ha){return}if(0!==+Y.width&&0!==Y.height){var ca=parseFloat(T.getAttribute("width")),P=parseFloat(T.getAttribute("height"));if(!(isNaN(ca)||isNaN(P)||0>=ca||0>=P)){var aa=T.getAttribute("patternTransform");var ea=da=X=0;var na=R=1;if(null!=aa){var ta=aa.match(/translate\(\s*([^,\s]+)[,\s]+([^)]+)\)/);null!=ta&&(X=parseFloat(ta[1]),da=parseFloat(ta[2]));ta=aa.match(/rotate\(\s*([^)]+)\)/);null!=ta&&(ea=parseFloat(ta[1])*Math.PI/180);aa=aa.match(/scale\(\s*([^,\s)]+)(?:[,\s]+([^)]+))?\)/);null!=aa&&(R=parseFloat(aa[1]),+na=null!=aa[2]?parseFloat(aa[2]):R)}var ua=[{x:Y.x,y:Y.y},{x:Y.x+Y.width,y:Y.y},{x:Y.x+Y.width,y:Y.y+Y.height},{x:Y.x,y:Y.y+Y.height}],ma=Infinity;Y=Infinity;ta=aa=-Infinity;for(var xa=0;xa<ua.length;xa++){var ya=ua[xa].x-X;var Aa=ua[xa].y-da,Ca=Math.cos(-ea),va=Math.sin(-ea);var pa=(ya*Ca-Aa*va)/R;ya=(ya*va+Aa*Ca)/na;ma=Math.min(ma,pa);Y=Math.min(Y,ya);aa=Math.max(aa,pa);ta=Math.max(ta,ya)}ma=Math.floor(ma/ca)-1;Y=Math.floor(Y/P)-1;aa=Math.ceil(aa/ca)+1;pa=Math.ceil(ta/P)+1;if(!(1E4<(aa-ma)*(pa-+Y))){xa=F+ ++C;ta=Z.ownerDocument.createElementNS("http://www.w3.org/2000/svg","clipPath");ta.setAttribute("id",xa);ua=ba.cloneNode(!0);ua.removeAttribute("fill");ua.removeAttribute("fill-opacity");ua.removeAttribute("stroke");ua.removeAttribute("stroke-width");ua.removeAttribute("stroke-opacity");ua.removeAttribute("style");ua.removeAttribute("pointer-events");ua.setAttribute("fill","black");ta.appendChild(ua);ua=Z.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");ua.setAttribute("clip-path",+"url(#"+xa+")");xa=ba.getAttribute("fill-opacity");null!=xa&&ua.setAttribute("opacity",xa);xa=Z.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");xa.setAttribute("transform","translate("+X+","+da+")"+(0!==ea?" rotate("+180*ea/Math.PI+")":"")+" scale("+R+(na!==R?","+na:"")+")");da=F+ ++C;X=Z.ownerDocument.createElementNS("http://www.w3.org/2000/svg","clipPath");X.setAttribute("id",da);ea=Z.ownerDocument.createElementNS("http://www.w3.org/2000/svg","rect");ea.setAttribute("x","0");ea.setAttribute("y",+"0");ea.setAttribute("width",ca);ea.setAttribute("height",P);X.appendChild(ea);T=T.childNodes;for(ea=ma;ea<aa;ea++)for(R=Y;R<pa;R++){na=Z.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");na.setAttribute("transform","translate("+ea*ca+","+R*P+")");na.setAttribute("clip-path","url(#"+da+")");for(ma=0;ma<T.length;ma++)1===T[ma].nodeType&&na.appendChild(T[ma].cloneNode(!0));xa.appendChild(na)}ua.appendChild(xa);ca=Z.querySelector("defs");null==ca&&(ca=Z.ownerDocument.createElementNS("http://www.w3.org/2000/svg",+"defs"),Z.insertBefore(ca,Z.firstChild));ca.appendChild(ta);ca.appendChild(X);ba.parentNode.insertBefore(ua,ba.nextSibling);ba.setAttribute("fill","none");ba.style.fill=""}}}}for(var C=0,F="expand-pattern-clip-"+Editor.guid(8)+"-",G=d.querySelectorAll('[fill^="url("]'),K=0;K<G.length;K++){var Q=m(G[K],d);null!=Q&&x(G[K],Q,d)}G=d.querySelectorAll("[style]");for(K=0;K<G.length;K++)Q=G[K].getAttribute("style"),null!=Q&&-1!==Q.indexOf("url(")&&(Q=m(G[K],d),null!=Q&&x(G[K],Q,d))};Editor.addAllowedFontUrl=+function(d){"string"===typeof d&&0<d.length&&(Graph.allowedFontUrls[d]=!0)};Editor.addAllowedFontUrls=function(d){if(Array.isArray(d))for(var m=0;m<d.length;m++)null!=d[m]&&"object"===typeof d[m]&&Editor.addAllowedFontUrl(d[m].fontUrl)};Editor.configureFontCss=function(d){if(null!=d){Editor.prototype.fontCss=d;for(var m=d.split("url("),x=1;x<m.length;x++){var C=m[x].indexOf(")");0<C&&Editor.addAllowedFontUrl(Editor.trimCssUrl(m[x].substring(0,C)))}m=document.getElementsByTagName("script")[0];if(null!=+m&&null!=m.parentNode)for(x=document.createElement("style"),x.setAttribute("type","text/css"),x.appendChild(document.createTextNode(d)),m.parentNode.insertBefore(x,m),d=d.split("url("),x=1;x<d.length;x++){C=d[x].indexOf(")");C=Editor.trimCssUrl(d[x].substring(0,C));var F=document.createElement("link");F.setAttribute("rel","preload");F.setAttribute("href",C);F.setAttribute("as","font");F.setAttribute("crossorigin","");m.parentNode.insertBefore(F,m)}}};Editor.trimCssUrl=function(d){return d.replace(RegExp("^[\\s\"']+",+"g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GOOGLE_FONTS_CSS2="https://fonts.googleapis.com/css2?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(d){d=null!=d?d:Editor.GUID_LENGTH;for(var m=[],x=0;x<d;x++)m.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));return m.join("")};Editor.updateStatusInterval=+1E4;Editor.prototype.appName="draw.io";Editor.prototype.diagramFileTypes=[{description:"diagramXmlDesc",extension:"drawio",mimeType:"text/xml"},{description:"diagramPngDesc",extension:"png",mimeType:"image/png"},{description:"diagramSvgDesc",extension:"svg",mimeType:"image/svg"},{description:"diagramHtmlDesc",extension:"html",mimeType:"text/html"}];Editor.prototype.libraryFileTypes=[{description:"Library (.drawiolib, .xml)",extensions:["drawiolib","xml"]}];Editor.prototype.fileExtensions=[{ext:"html",+title:"filetypeHtml"},{ext:"png",title:"filetypePng"},{ext:"svg",title:"filetypeSvg"}];Editor.prototype.timeout=25E3;Editor.prototype.generateTimeout=9E4;Editor.prototype.editButtonLink=null!=urlParams.edit?decodeURIComponent(urlParams.edit):null;Editor.prototype.crossOriginImages=!0;var l=Editor.prototype.setGraphXml;Editor.prototype.setGraphXml=function(d){d=null!=d&&"mxlibrary"!=d.nodeName?this.extractGraphModel(d):null;if(null!=d){var m=Editor.extractParserError(d,mxResources.get("invalidOrMissingFile"));+if(m)throw EditorUi.debug("Editor.setGraphXml ParserError",[this],"node",[d],"cause",[m]),Error(mxResources.get("notADiagramFile")+" ("+m+")");if("mxGraphModel"==d.nodeName){m=d.getAttribute("style")||"default-style2";if("1"==urlParams.embed||null!=m&&""!=m)m!=this.graph.currentStyle&&(x=null!=this.graph.themes?this.graph.themes[m]:mxUtils.load(STYLE_PATH+"/"+m+".xml").getDocumentElement(),null!=x&&(C=new mxCodec(x.ownerDocument),C.decode(x,this.graph.getStylesheet())));else{var x=null!=this.graph.themes?+this.graph.themes["default-old"]:mxUtils.load(STYLE_PATH+"/default-old.xml").getDocumentElement();if(null!=x){var C=new mxCodec(x.ownerDocument);C.decode(x,this.graph.getStylesheet())}}this.graph.currentStyle=m;this.graph.mathEnabled="1"==urlParams.math||"1"==d.getAttribute("math");this.graph.setAdaptiveColors(d.getAttribute("adaptiveColors"));m=d.getAttribute("backgroundImage");null!=m?this.graph.setBackgroundImage(this.graph.parseBackgroundImage(m)):this.graph.setBackgroundImage(null);this.graph.useCssTransforms=+!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();this.graph.setShadowVisible("1"==d.getAttribute("shadow"),!1);if(m=d.getAttribute("extFonts"))try{for(m=m.split("|").map(function(F){F=F.split("^");return{name:F[0],url:F[1]}}),x=0;x<m.length;x++)this.graph.addExtFont(m[x].name,m[x].url)}catch(F){console.log("ExtFonts format error: "+F.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}l.apply(this,+arguments)}else throw{message:mxResources.get("notADiagramFile")||"Invalid data",toString:function(){return this.message}};};var p=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(d,m){d=null!=d?d:!0;var x=p.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&x.setAttribute("style",this.graph.currentStyle);var C=this.graph.getBackgroundImageObject(this.graph.backgroundImage,m);null!=C&&x.setAttribute("backgroundImage",JSON.stringify(C));+x.setAttribute("math",this.graph.mathEnabled?"1":"0");x.setAttribute("shadow",this.graph.shadowVisible?"1":"0");null!=this.graph.adaptiveColors?x.setAttribute("adaptiveColors",this.graph.adaptiveColors):x.removeAttribute("adaptiveColors");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(C=this.graph.extFonts.map(function(F){return F.name+"^"+F.url}),x.setAttribute("extFonts",C.join("|")));return x};Editor.prototype.isDataSvg=function(d){try{var m=mxUtils.parseXml(d).documentElement.getAttribute("content");+if(null!=m&&(null!=m&&"<"!=m.charAt(0)&&"%"!=m.charAt(0)&&(m=unescape(window.atob?atob(m):Base64.decode(cont,m))),null!=m&&"%"==m.charAt(0)&&(m=decodeURIComponent(m)),null!=m&&0<m.length)){var x=mxUtils.parseXml(m).documentElement;return"mxfile"==x.nodeName||"mxGraphModel"==x.nodeName}}catch(C){}return!1};Editor.prototype.extractGraphModel=function(d,m,x){return Editor.extractGraphModel.apply(this,arguments)};var g=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled=+"1"==urlParams.math;this.graph.setAdaptiveColors(null);this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();g.apply(this,arguments)};var u=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){u.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};+Editor.safeMathJaxFilterUrl=function(d,m){var x=(m.replace(/[\t\n\r]/g,"").replace(/^[\u0000-\u0020]+/,"").match(/^([a-z][a-z0-9+.\-]*):/i)||[null,""])[1].toLowerCase(),C=d.allow.URLs;return"all"===C||"safe"===C&&(d.options.safeProtocols[x]||!x)?m:null};Editor.safeMathJaxFilterUrl.drawioPatched=!0;Editor.patchMathJaxUrlFilter=function(d){d=null!=d?d:"undefined"!==typeof MathJax?MathJax:null;if(null!=d){var m=null!=d._&&null!=d._.ui&&null!=d._.ui.safe&&null!=d._.ui.safe.SafeMethods?d._.ui.safe.SafeMethods.SafeMethods:+null;null==m||null==m.filterURL||m.filterURL.drawioPatched||(m.filterURL=Editor.safeMathJaxFilterUrl);d=null!=d.startup?d.startup.document:null;null==d||null==d.safe||null==d.safe.filterMethods||null==d.safe.filterMethods.filterURL||d.safe.filterMethods.filterURL.drawioPatched||(d.safe.filterMethods.filterURL=Editor.safeMathJaxFilterUrl)}};Editor.safeMathJaxDataMacro=function(d,m,x,C){var F=d.setAttribute;d.setAttribute=function(G,K,Q){if("string"!==typeof K||"data-"!==K.substring(0,5)||K.match(Editor.safeMathJaxDataPattern))return F.apply(this,+arguments)};try{return m.apply(this,[x,C])}finally{d.setAttribute=F}};Editor.safeMathJaxDataPattern=/^data-mjx-/;Editor.patchMathJaxDataMacro=function(d){d=null!=d?d:"undefined"!==typeof MathJax?MathJax:null;d=null!=d&&null!=d._&&null!=d._.input?d._.input.tex:null;if(null!=d&&null!=d.MapHandler&&null!=d.NodeUtil){var m=d.MapHandler.MapHandler.getMap("html_macros");m=null!=m&&null!=m.lookup?m.lookup("data"):null;if(null!=m&&null!=m._func&&!m._func.drawioPatched){var x=d.NodeUtil["default"],C=m._func;+d=function(F,G){return Editor.safeMathJaxDataMacro(x,C,F,G)};d.drawioPatched=!0;m._func=d}}};Editor.patchMathJaxSafeFilters=function(d){Editor.patchMathJaxUrlFilter(d);Editor.patchMathJaxDataMacro(d)};Editor.initMath=function(d,m){if("undefined"===typeof window.MathJax){var x=function(){C=null;Editor.mathJaxRendering=!1;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};d=null!=d?d:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var C=+null;Editor.mathJaxRendering=!1;Editor.doMathJaxRender=function(K){Editor.patchMathJaxSafeFilters();null!=MathJax.startup&&null!=MathJax.startup.output&&null!=MathJax.startup.output.options&&null!=MathJax.startup.output.options.linebreaks&&(MathJax.startup.output.options.linebreaks.inline=!1);try{null==C?(MathJax.typesetClear([K]),MathJax.typeset([K]),x()):C!=K&&Editor.mathJaxQueue.push(K)}catch(Q){MathJax.typesetClear([K]),null!=Q.retry?(C=K,Editor.mathJaxRendering=!0,Q.retry.then(function(){MathJax.typesetPromise([K]).then(x)["catch"](function(ba){console.log("Error in MathJax.typesetPromise: "+ba.toString());x()})})["catch"](function(ba){console.log("Error in MathJax.retry: "+ba.toString());x()})):null!=window.console&&console.log("Error in MathJax.typeset: "+Q.toString())}};window.MathJax=null!=m?m:{options:{skipHtmlTags:{"[+]":["text"]},ignoreHtmlClass:"geDisableMathJax"},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe","[tex]/html"],paths:{fonts:DRAW_MATH_URL+"/fonts"}},output:{font:"mathjax-tex"},startup:{pageReady:function(){for(var K=0;K<Editor.mathJaxQueue.length;K++)Editor.doMathJaxRender(Editor.mathJaxQueue[K])}}};Editor.MathJaxRender=function(K){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(K):Editor.mathJaxQueue.push(K)};Editor.onMathJaxDone=function(){};var F=Editor.prototype.init;Editor.prototype.init=function(){F.apply(this,arguments);var K=mxUtils.bind(this,function(T,Z){null!=this.graph.container&&this.graph.mathEnabled&&(Editor.mathOutputSize&&(this.graph.container.style.visibility="hidden"),Editor.MathJaxRender(this.graph.container))});this.graph.model.addListener(mxEvent.CHANGE,K);this.graph.addListener(mxEvent.REFRESH,K);var Q=this.graph,ba=Editor.onMathJaxDone;Editor.onMathJaxDone=function(){null!=ba&&ba.apply(this,arguments);Editor.mathOutputSize&&null!=Q&&Q.mathEnabled&&(Q.refreshMathBounds(),null!=Q.container&&(Q.container.style.visibility=""))}};m=document.getElementsByTagName("script");if(null!=m&&0<m.length){var G=document.createElement("script");G.setAttribute("type",@@ -13897,88 +13983,89 @@ na.cssText+" 50%, "+na.light+" 50.3%)"}null==P.stroke||P.stroke==mxConstants.NON"#ffffff"),na=mxUtils.getValue(R,mxConstants.STYLE_STROKECOLOR,"#000000"),aa.style.backgroundColor=ea,aa.style.border="1px solid "+na;aa.style.borderRadius="0";C.appendChild(aa);null!=P&&null!=P.gradient&&(ea=aa.cloneNode(!1),ea.style.backgroundImage="linear-gradient(light-dark(transparent, "+mxUtils.getLightDarkColor(P.fill).light+") 0px, light-dark(transparent, "+mxUtils.getLightDarkColor(P.gradient).light+") 100%)",ea.style.clipPath="polygon(0 100%, 100% 0, 100% 100%)",ea.style.backgroundColor="transparent",C.appendChild(ea),ea.style.marginLeft="-42px",mxEvent.addListener(ea,"click",function(){aa.click()}))});C.innerText="";if(null!=da)for(var ca=0;ca<da.length;ca++)0<ca&&0==mxUtils.mod(ca,4)&&mxUtils.br(C),Y(da[ca])});null==this.format.currentScheme?ba(Math.min(G.length-1,Editor.isDarkMode()?1:"1"==urlParams.sketch?5:0)):ba(this.format.currentScheme);K=10>=this.defaultColorSchemes.length?43:23;var Z=document.createElement("div");Z.className="geButton";Z.style.cssText="position:absolute;left:0px;bottom:"+K+"px;width:20px;background-image:url("+Editor.chevronLeftImage+");";mxEvent.addListener(Z,"click",mxUtils.bind(this,function(){ba(mxUtils.mod(this.format.currentScheme-1,this.defaultColorSchemes.length))}));var X=document.createElement("div");X.className="geButton";X.style.cssText="position:absolute;left:186px;bottom:"+K+"px;width:20px;background-image:url("+Editor.chevronRightImage+");";1<this.defaultColorSchemes.length&&(d.appendChild(Z),d.appendChild(X));mxEvent.addListener(X,"click",mxUtils.bind(this,-function(){ba(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));T(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&d.appendChild(F)}return d}}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=Object.create(null);Graph.isGoogleFontUrl=function(d){return d.substring(0,-Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS||d.substring(0,Editor.GOOGLE_FONTS_CSS2.length)==Editor.GOOGLE_FONTS_CSS2};Graph.isCssFontUrl=function(d){return Graph.isGoogleFontUrl(d)};Graph.rewriteGoogleFontUrl=function(d){null!=d&&d.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS&&(d=Editor.GOOGLE_FONTS_CSS2+d.substring(Editor.GOOGLE_FONTS.length)+":wght@400;500");return d};Graph.escapeCssString=function(d){return null!=d?String(d).replace(/[\x00-\x1f\x7f"\\]/g,function(m){return"\\"+-m.charCodeAt(0).toString(16)+" "}):d};Graph.createFontElement=function(d,m){var x=Graph.fontMapping[m];null==x&&Graph.isCssFontUrl(m)?(d=document.createElement("link"),d.setAttribute("rel","stylesheet"),d.setAttribute("type","text/css"),d.setAttribute("charset","UTF-8"),d.setAttribute("href",Graph.rewriteGoogleFontUrl(m))):(null==x&&(x='@font-face {\nfont-family: "'+Graph.escapeCssString(d)+'";\nsrc: url("'+Graph.escapeCssString(m)+'");\n}'),d=document.createElement("style"),mxUtils.write(d,x));return d};-Graph.addRecentCustomFont=function(d,m){};Graph.addFont=function(d,m,x,C){if(null!=d&&0<d.length&&null!=m&&0<m.length){C=null!=C?C:Graph.customFontElements;var F=d.toLowerCase();if("helvetica"!=F&&"arial"!=d&&"sans-serif"!=F){var G=C[F];null!=G&&G.url!=m&&(null!=G.elt.parentNode&&G.elt.parentNode.removeChild(G.elt),G=null);null==G?(G=m,"http:"==m.substring(0,5)&&(G=PROXY_URL+"?url="+encodeURIComponent(m)),G={name:d,url:m,elt:Graph.createFontElement(d,G)},C[F]=G,m=C==Graph.customFontElements?document.getElementsByTagName("head")[0]:-null,null!=x&&("link"==G.elt.nodeName.toLowerCase()?(G.elt.onload=x,G.elt.onerror=x):x()),null!=m&&m.appendChild(G.elt)):null!=x&&x()}else null!=x&&x()}else null!=x&&x();return d};Graph.getFontUrl=function(d,m){d=Graph.customFontElements[d.toLowerCase()];null!=d&&(m=d.url);return m};Graph.processFontAttributes=function(d){d=d.getElementsByTagName("*");for(var m=0;m<d.length;m++){var x=d[m].getAttribute("data-font-src");if(null!=x){var C="FONT"==d[m].nodeName.toUpperCase()?d[m].getAttribute("face"):-d[m].style.fontFamily;null!=C&&Graph.addFont(C,x)}}};Graph.processFontStyle=function(d){if(null!=d){var m=mxUtils.getValue(d,"fontSource",null);if(null!=m){var x=mxUtils.getValue(d,mxConstants.STYLE_FONTFAMILY,null);if(null!=x)try{Graph.addFont(x,decodeURIComponent(m))}catch(C){}}}return d};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible="0"!=urlParams.pv;-mxConnectionHandler.prototype.createTarget="1"==urlParams.sketch;Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var n=Graph.prototype.init;Graph.prototype.init=function(){function d(F){m=F}n.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var m=null;mxEvent.addListener(this.container,-"mouseenter",d);mxEvent.addListener(this.container,"mousemove",d);mxEvent.addListener(this.container,"mouseleave",function(F){m=null});this.isMouseInsertPoint=function(){return null!=m};var x=this.getInsertPoint;this.getInsertPoint=function(F){return null==m||F?x.apply(this,arguments):this.getPointForEvent(m)};var C=this.layoutManager.getLayout;this.layoutManager.getLayout=function(F){var G=this.graph.getCellStyle(F);if(null!=G&&"rack"==G.childLayout){var K=new mxStackLayout(this.graph,!1);K.gridSize=-null!=G.rackUnitSize?parseFloat(G.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;K.marginLeft=G.marginLeft||0;K.marginRight=G.marginRight||0;K.marginTop=G.marginTop||0;K.marginBottom=G.marginBottom||0;K.allowGaps=G.allowGaps||0;K.horizontal="1"==mxUtils.getValue(G,"horizontalRack","0");K.resizeParent=!1;K.fill=!0;return K}return C.apply(this,arguments)};this.updateGlobalUrlVariables()};var q=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=-function(d,m){return Graph.processFontStyle(q.apply(this,arguments))};var t=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(d,m,x,C,F,G,K,Q,ba,T,Z,X){t.apply(this,arguments);Graph.processFontAttributes(X)};var r=mxText.prototype.redraw;mxText.prototype.redraw=function(){r.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(d,m,x,C){function F(){for(var ca=Q.getSelectionCells(),-P=[],aa=0;aa<ca.length;aa++)Q.isCellVisible(ca[aa])&&P.push(ca[aa]);Q.setSelectionCells(P)}function G(ca){Q.setHiddenTags(ca?[]:ba.slice());F();Q.refresh()}function K(ca,P){Z.innerText="";if(0<ca.length){var aa=document.createElement("table");aa.setAttribute("cellpadding","2");aa.style.boxSizing="border-box";aa.style.tableLayout="fixed";aa.style.width="100%";var ea=document.createElement("tbody");if(null!=ca&&0<ca.length)for(var na=0;na<ca.length;na++)(function(ta){function ua(){var va=Q.getCellsForTags([ta],-null,null,!0);Q.isEnabled()?Q.setSelectionCells(va):Q.highlightCells(va,null,null,70)}var ma=0>mxUtils.indexOf(Q.hiddenTags,ta),xa=document.createElement("tr"),ya=document.createElement("td");ya.style.align="center";ya.style.width="16px";var Aa=document.createElement("img");Aa.setAttribute("src",ma?Editor.visibleImage:Editor.hiddenImage);Aa.setAttribute("title",mxResources.get(ma?"hideIt":"show",[ta])+"\n"+mxResources.get("shiftClickShowOnly",[ta]));mxUtils.setOpacity(Aa,ma?75:25);Aa.className="geAdaptiveAsset";-Aa.style.verticalAlign="middle";Aa.style.cursor="pointer";Aa.style.width="16px";if(m||Editor.isDarkMode())Aa.style.filter="invert(100%)";ya.appendChild(Aa);mxEvent.addListener(Aa,"click",function(va){if(mxEvent.isShiftDown(va)){for(var pa=[],ha=0;ha<ba.length;ha++)ba[ha]!==ta&&pa.push(ba[ha]);var ia=0<pa.length;for(ha=0;ha<pa.length;ha++)if(0>mxUtils.indexOf(Q.hiddenTags,pa[ha])){ia=!1;break}ia&&0>mxUtils.indexOf(Q.hiddenTags,ta)?Q.setHiddenTags([]):Q.setHiddenTags(pa)}else Q.toggleHiddenTag(ta);-F();Q.refresh();mxEvent.consume(va)});xa.appendChild(ya);ya=document.createElement("td");ya.style.align="center";ya.style.width="16px";Aa=document.createElement("img");Aa.setAttribute("src",Editor.selectImage);Aa.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(Aa,ma?75:25);Aa.className="geAdaptiveAsset";Aa.style.verticalAlign="middle";Aa.style.cursor="pointer";Aa.style.width="16px";if(m||Editor.isDarkMode())Aa.style.filter="invert(100%)";mxEvent.addListener(Aa,"click",function(va){G(!0);-ua();mxEvent.consume(va)});ya.appendChild(Aa);xa.appendChild(ya);ya=document.createElement("td");ya.style.overflow="hidden";ya.style.whiteSpace="nowrap";ya.style.textOverflow="ellipsis";ya.style.verticalAlign="middle";ya.style.cursor="pointer";ya.setAttribute("title",ta);a=document.createElement("a");mxUtils.write(a,ta);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,ma?100:40);ya.appendChild(a);mxEvent.addListener(ya,"click",function(va){if(mxEvent.isShiftDown(va))G(!0),-ua();else if(ma&&0<Q.hiddenTags.length)G(!0);else{var pa=ba.slice(),ha=mxUtils.indexOf(pa,ta);pa.splice(ha,1);Q.setHiddenTags(pa);F();Q.refresh()}mxEvent.consume(va)});xa.appendChild(ya);if(Q.isEnabled()){ya=document.createElement("td");ya.style.verticalAlign="middle";ya.style.textAlign="center";ya.style.width="18px";if(null==P){ya.style.align="center";ya.style.width="16px";Aa=document.createElement("img");Aa.setAttribute("src",Editor.trashImage);Aa.setAttribute("title",mxResources.get("removeIt",-[ta]));mxUtils.setOpacity(Aa,ma?75:25);Aa.className="geAdaptiveAsset";Aa.style.verticalAlign="middle";Aa.style.cursor="pointer";Aa.style.width="16px";if(m||Editor.isDarkMode())Aa.style.filter="invert(100%)";mxEvent.addListener(Aa,"click",function(va){var pa=mxUtils.indexOf(ba,ta);0<=pa&&ba.splice(pa,1);Q.removeTagsForCells(Q.model.getDescendants(Q.model.getRoot()),[ta]);Q.refresh();mxEvent.consume(va)});ya.appendChild(Aa)}else{var Ca=document.createElement("input");Ca.setAttribute("type","checkbox");-Ca.style.margin="0px";Ca.defaultChecked=null!=P&&0<=mxUtils.indexOf(P,ta);Ca.checked=Ca.defaultChecked;Ca.style.background="transparent";Ca.setAttribute("title",mxResources.get(Ca.defaultChecked?"removeIt":"add",[ta]));mxEvent.addListener(Ca,"change",function(va){Ca.checked?Q.addTagsForCells(Q.getSelectionCells(),[ta]):Q.removeTagsForCells(Q.getSelectionCells(),[ta]);mxEvent.consume(va)});ya.appendChild(Ca)}xa.appendChild(ya)}ea.appendChild(xa)})(ca[na]);aa.appendChild(ea);Z.appendChild(aa)}}var Q=-this,ba=Q.hiddenTags.slice(),T=document.createElement("div");T.style.userSelect="none";T.style.overflow="hidden";T.style.padding="10px";T.style.height="100%";var Z=document.createElement("div");Z.style.position="absolute";Z.style.boxSizing="border-box";Z.style.userSelect="none";Z.style.overflow="auto";Z.style.padding="3px";Z.style.left="0px";Z.style.right="0px";Z.style.top="0px";Z.style.bottom="0px";T.appendChild(Z);Q.addListener(mxEvent.ROOT,function(){ba=Q.hiddenTags.slice()});var X=mxUtils.bind(this,-function(ca,P){if(d()){ca=Q.getAllTags();for(P=0;P<ca.length;P++)0>mxUtils.indexOf(ba,ca[P])&&ba.push(ca[P]);ba.sort();Q.isSelectionEmpty()?K(ba):K(ba,Q.getCommonTagsForCells(Q.getSelectionCells()))}});Q.selectionModel.addListener(mxEvent.CHANGE,X);Q.model.addListener(mxEvent.CHANGE,X);Q.addListener(mxEvent.REFRESH,X);var da=document.createElement("div");da.className="geToolbarContainer geDialogToolbar";da.style.position="absolute";da.style.display="flex";da.style.bottom="0px";da.style.left="0px";-da.style.right="0px";da.style.height="32px";da.style.overflow="hidden";da.style.padding="3px 4px 4px 4px";da.style.borderWidth="1px 0px 0px 0px";da.style.borderStyle="solid";da.style.whiteSpace="nowrap";if(Q.isEnabled()){Z.style.bottom="32px";var R=document.createElement("a");R.className="geButton";var Y=R.cloneNode(!1);Y.style.backgroundImage="url("+Editor.visibleImage+")";Y.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(Y,"click",function(ca){Q.setHiddenTags([]);mxEvent.isShiftDown(ca)||-(ba=Q.hiddenTags.slice());F();Q.refresh();mxEvent.consume(ca)});da.appendChild(Y);null!=x&&(R=R.cloneNode(!1),R.style.backgroundImage="url("+Editor.plusImage+")",R.setAttribute("title",mxResources.get("add")),mxEvent.addListener(R,"click",function(ca){x(ba,function(P){ba=P;X()});mxEvent.consume(ca)}),da.appendChild(R));T.appendChild(da)}null!=C&&da.appendChild(C);return{div:T,refresh:X}};Graph.prototype.getCustomFonts=function(d){d=null!=d?d:Graph.customFontElements;var m=this.extFonts;m=null!=m?-m.slice():[];for(var x in d){var C=d[x];m.push({name:C.name,url:C.url})}return m};Graph.prototype.getExtFontCss=function(d){d=this.getCustomFonts(d);for(var m="",x="",C=0;C<d.length;C++){var F=d[C].name,G=d[C].url;Graph.isCssFontUrl(G)?m+='@import url("'+Graph.escapeCssString(Graph.rewriteGoogleFontUrl(G))+'");\n':x+='@font-face {\nfont-family: "'+Graph.escapeCssString(F)+'";\nsrc: url("'+Graph.escapeCssString(G)+'");\n}\n'}return m+x};Graph.prototype.setFont=function(d,m){Graph.addFont(d,m);var x=-Editor.guid();document.execCommand("fontname",!1,x);for(var C=this.cellEditor.textarea.getElementsByTagName("font"),F=!1,G=0;G<C.length;G++)C[G].getAttribute("face")==x&&(F=!0,C[G].setAttribute("face",d),null!=m?C[G].setAttribute("data-font-src",m):C[G].removeAttribute("data-font-src"));F||document.execCommand("fontname",!1,d)};var z=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return z.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=-function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var d=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=d)for(var m in d)this.globalVars[m]=d[m]}catch(x){null!=window.console&&console.log("Error in vars URL parameter: "+x)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var D=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=-function(d){var m=D.apply(this,arguments);null==m&&null!=this.globalVars&&(m=this.globalVars[d]);return m};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var d=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(d.ownerDocument)).decode(d)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var H=Graph.prototype.getSvg;Graph.prototype.getSvg=function(d,m,x,C,F,G,K,Q,ba,T,Z,X,da,R,Y,ca,P){if(Editor.mathOutputSize&&-this.mathEnabled&&null!=this.container&&document.body.contains(this.container)&&"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset){if(0==this.container.getElementsByTagName("mjx-container").length)try{MathJax.typeset([this.container])}catch(ua){}this.refreshMathBounds()}var aa=H.apply(this,arguments);if(null!=X){var ea=aa.getAttribute("style");null==ea&&(ea="");X="auto"==X||"none"==this.getAdaptiveColors()?"none"==this.getAdaptiveColors()?"light":"light dark":X;aa.setAttribute("style",-ea+(" color-scheme: "+X+";"))}var na=Z?this.getExtFontCss():"";if(0<na.length){var ta=aa.ownerDocument;ea=null!=ta.createElementNS?ta.createElementNS(mxConstants.NS_SVG,"style"):ta.createElement("style");null!=ta.setAttributeNS?ea.setAttributeNS("type","text/css"):ea.setAttribute("type","text/css");ea.appendChild(ta.createTextNode(na));aa.getElementsByTagName("defs")[0].appendChild(ea)}Editor.replaceSvgDataUris&&null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&EditorUi.embedSvgImages(aa);-this.mathEnabled&&(document.body.appendChild(aa),Editor.MathJaxRender(aa),aa.parentNode.removeChild(aa),ea=aa.ownerDocument.getElementById("MJX-SVG-styles"),null!=ea&&aa.getElementsByTagName("defs")[0].appendChild(ea.cloneNode(!0)));return aa};var B=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(d){B.apply(this,arguments);null!=d.secondLabel&&(d.secondLabel.destroy(),d.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(d){return[d.shape,d.text,d.secondLabel,-d.control]};var W=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){W.apply(this,arguments);this.enumerationState=0};var I=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(d){null!=d.shape&&this.redrawEnumerationState(d);return I.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(d){d=mxUtils.safeDecodeURIComponent(mxUtils.getValue(d.style,"enumerateValue",""));""==d&&(d=++this.enumerationState);-return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(d)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(d){var m="1"==mxUtils.getValue(d.style,"enumerate",0);m&&null==d.secondLabel?(d.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),d.secondLabel.size=12,d.secondLabel.state=d,d.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(d,d.secondLabel)):-m||null==d.secondLabel||(d.secondLabel.destroy(),d.secondLabel=null);m=d.secondLabel;if(null!=m){var x=d.view.scale,C=this.createEnumerationValue(d);d=this.graph.model.isVertex(d.cell)?new mxRectangle(d.x+d.width-4*x,d.y+4*x,0,0):mxRectangle.fromPoint(d.view.getPoint(d));m.bounds.equals(d)&&m.value==C&&m.scale==x||(m.bounds=d,m.value=C,m.scale=x,m.redraw())}};var N=Graph.prototype.refresh;Graph.prototype.refresh=function(){this.refreshBackgroundImage();N.apply(this,arguments)};Graph.prototype.refreshBackgroundImage=-function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundImage())};var U=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){U.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=function(d,m){"data:action/json,"==d.substring(0,17)&&(d=JSON.parse(d.substring(17)),null!=d.actions&&this.executeCustomActions(Graph.flattenAnimationActions(d.actions),-null,m))};Graph.flattenAnimationActions=function(d){if(!Array.isArray(d))return d;for(var m=[],x=0;x<d.length;x++){var C=d[x];if(null!=C&&null!=C.animation&&Array.isArray(C.animation.steps)){C=Graph.flattenAnimationActions(C.animation.steps);for(var F=0;F<C.length;F++)m.push(C[F])}else m.push(C)}return m};Graph.smoothScrollContainer=function(d,m,x,C,F,G){G=G||600;if(m!==C||x!==F){d.scrollLeft=m;d.scrollTop=x;var K="undefined"!=typeof performance&&null!=performance.now?performance.now():Date.now(),-Q=C-m,ba=F-x,T=function(Z){Z=Math.min(1,(Z-K)/G);var X=1-Math.pow(1-Z,3);d.scrollLeft=m+Q*X;d.scrollTop=x+ba*X;1>Z&&window.requestAnimationFrame(T)};window.requestAnimationFrame(T)}};Graph.applyTransformTransition=function(d,m){m=m||600;var x=d.view.getDrawPane(),C=null!=x?x.parentNode:null;if(null!=C){var F=C.style.transition;C.style.transition="transform "+m+"ms cubic-bezier(0.16, 1, 0.3, 1)";d.armTransformTransition=!0;var G=function(){C.style.transition=F||"";d.armTransformTransition=!1;C.removeEventListener("transitionend",-G)};C.addEventListener("transitionend",G);window.setTimeout(G,m+100)}};Graph.prototype.fitBoundsCssTransform=function(d,m){var x=null!=m?m:10;m=this.view.graphBounds;var C=Math.max(m.x,d.x),F=Math.max(m.y,d.y),G=Math.max(1,Math.min(m.x+m.width,d.x+d.width)-C),K=Math.max(1,Math.min(m.y+m.height,d.y+d.height)-F),Q=this.container.clientWidth-x,ba=this.container.clientHeight-x;d=Math.floor(20*Math.min(Q/G,ba/K))/20;this.view.scaleAndTranslate(d,-m.x,-m.y);C=(C-m.x)*d-Math.max((Q-G*d)/2+x/2,0);x=(F-m.y)*-d-Math.max((ba-K*d)/2+x/2,0);G=this.getBorder();F=m.width*d+2*G-this.container.clientWidth;m=m.height*d+2*G-this.container.clientHeight;this.container.scrollLeft=0>F?0:Math.max(0,Math.min(C,F));this.container.scrollTop=0>m?0:Math.max(0,Math.min(x,m))};Graph.prototype.isGraphTornDown=function(){return!0===this.destroyed||null==this.container};Graph.prototype.smoothFitWindow=function(d,m,x){if(this.isGraphTornDown())null!=x&&x();else{var C=this.container,F=C.scrollLeft,G=C.scrollTop;this.useCssTransforms?-(Graph.applyTransformTransition(this,600),this.fitBoundsCssTransform(d,m)):this.fitWindow(d,m);Graph.smoothScrollContainer(C,F,G,C.scrollLeft,C.scrollTop,600);null!=x&&window.setTimeout(x,600)}};Graph.prototype.scrollCellToVisibleCssTransform=function(d,m){var x=this.view.getState(d);if(null!=x){var C=this.view.graphBounds,F=this.view.scale;this.view.translate.x===-C.x&&this.view.translate.y===-C.y||this.view.scaleAndTranslate(F,-C.x,-C.y);d=this.container.clientWidth;var G=this.container.clientHeight,-K=this.getBorder(),Q=C.width*F+2*K-d;K=C.height*F+2*K-G;if(null!=m){var ba=(x.x-C.x)*F,T=(x.y-C.y)*F,Z=(x.x+x.width-C.x)*F;C=(x.y+x.height-C.y)*F;var X=this.container.scrollLeft;x=this.container.scrollTop;ba-m<X?X=ba-m:Z+m>X+d&&(X=Z+m-d);T-m<x?x=T-m:C+m>x+G&&(x=C+m-G)}else X=(x.x+x.width/2-C.x)*F-d/2,x=(x.y+x.height/2-C.y)*F-G/2;this.container.scrollLeft=0>Q?0:Math.max(0,Math.min(X,Q));this.container.scrollTop=0>K?0:Math.max(0,Math.min(x,K))}};Graph.prototype.scrollCellToVisibleBorder=function(d,-m){null==m?this.scrollCellToVisible(d):(d=this.view.getState(d),null!=d&&this.scrollRectToVisible(new mxRectangle(-this.view.translate.x+d.x-m,-this.view.translate.y+d.y-m,d.width+2*m,d.height+2*m)))};Graph.prototype.smoothScrollCellToVisible=function(d,m,x){if(this.isGraphTornDown())null!=x&&x();else{var C=this.container,F=C.scrollLeft,G=C.scrollTop;this.useCssTransforms?this.scrollCellToVisibleCssTransform(d,m):this.scrollCellToVisibleBorder(d,m);Graph.smoothScrollContainer(C,F,G,C.scrollLeft,C.scrollTop,-600);null!=x&&window.setTimeout(x,600)}};Graph.prototype.toggleCellsTransient=function(d){d=this.getNodesForCells(d);for(var m=0;m<d.length;m++){var x=d[m].style.opacity;x=""===x||null===x||0<parseFloat(x);d[m].style.opacity=x?0:1}};Graph.prototype.setCellStylesTransient=function(d,m,x){for(var C=0;C<x.length;C++){var F=this.view.getState(x[C]);null!=F&&null!=F.style&&(null==m?delete F.style[d]:F.style[d]=m,null!=F.shape&&(F.shape.apply(F),F.shape.redraw()),null!=F.text&&(F.text.apply(F),F.text.redraw()))}};-Graph.prototype.toggleCellStylesTransient=function(d,m,x){null==m&&(m="0");for(var C=0;C<x.length;C++){var F=this.view.getState(x[C]);if(null!=F&&null!=F.style){var G=mxUtils.getValue(F.style,d,m)?"0":"1";F.style[d]=G;null!=F.shape&&(F.shape.apply(F),F.shape.redraw());null!=F.text&&(F.text.apply(F),F.text.redraw())}}};Graph.prototype.executeCustomActions=function(d,m,x){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 C=!1,F=0,G=0,K=mxUtils.bind(this,function(){C||(C=!0,this.model.beginUpdate())}),Q=mxUtils.bind(this,function(){C&&(C=!1,this.model.endUpdate())}),ba=null==x,T=function(R){return null!=R.transient?R.transient:ba},Z=mxUtils.bind(this,function(){0<F&&F--;0==F&&da()}),X=mxUtils.bind(this,function(){if(this.isGraphTornDown())this.stoppingCustomActions=-this.executingCustomActions=!1,null!=m&&m();else if(G<d.length){do{var R=this.stoppingCustomActions,Y=d[G++],ca=[];if(null!=Y.open)if(Q(),this.isCustomLink(Y.open)){if(!this.customLinkClicked(Y.open,x)){this.stoppingCustomActions=this.executingCustomActions=!1;null!=m&&m();return}}else this.openLink(Y.open);null==Y.wait||R||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;Z()}),F++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,-""!=Y.wait?parseInt(Y.wait):1E3),Q());null!=Y.opacity&&null!=Y.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(Y.opacity,!0)),Y.opacity.value);null!=Y.fadeIn&&(F++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(Y.fadeIn,!0)),0,1,Z,R?0:Y.fadeIn.delay));null!=Y.fadeOut&&(F++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(Y.fadeOut,!0)),1,0,Z,R?0:Y.fadeOut.delay));if(null!=Y.fadeTo&&null!=Y.fadeTo.value){F++;var P=this.getNodesForCells(this.getCellsForAction(Y.fadeTo,-!0)),aa=R?0:null!=Y.fadeTo.delay?Y.fadeTo.delay:1E3;Graph.setTransitionForNodes(P,"all "+aa+"ms ease-in-out");Graph.setOpacityForNodes(P,Y.fadeTo.value);window.setTimeout(function(){Graph.setTransitionForNodes(P,null);Z()},aa)}null!=Y.flow&&(aa=this.getCellsForAction(Y.flow,!0),Editor.toggleFlowAnimation(this,aa,!1===Y.flow.start?"stop":!0===Y.flow.start?"start":"toggle"));null!=Y.wipeIn&&(ca=ca.concat(this.createWipeAnimations(this.getCellsForAction(Y.wipeIn,!0),!0)));null!=Y.wipeOut&&(ca=ca.concat(this.createWipeAnimations(this.getCellsForAction(Y.wipeOut,-!0),!1)));null!=Y.popIn&&(ca=ca.concat(this.createPopAnimations(this.getCellsForAction(Y.popIn,!0),!0)));null!=Y.popOut&&(ca=ca.concat(this.createPopAnimations(this.getCellsForAction(Y.popOut,!0),!1)));null!=Y.toggle&&(T(Y.toggle)?this.toggleCellsTransient(this.getCellsForAction(Y.toggle,!0)):(K(),this.toggleCells(this.getCellsForAction(Y.toggle,!0,!0))));null!=Y.show&&(aa=this.getCellsForAction(Y.show,!0),Graph.setOpacityForNodes(this.getNodesForCells(aa),1),T(Y.show)||(K(),this.setCellsVisible(this.getCellsForAction(Y.show,-!0,!0),!0)));null!=Y.hide&&(aa=this.getCellsForAction(Y.hide,!0),Graph.setOpacityForNodes(this.getNodesForCells(aa),0),T(Y.hide)||(K(),this.setCellsVisible(this.getCellsForAction(Y.hide,!0,!0),!1)));if(null!=Y.toggleStyle&&null!=Y.toggleStyle.key){aa=this.getCellsForAction(Y.toggleStyle,!0);var ea=null!=Y.toggleStyle.defaultValue?Y.toggleStyle.defaultValue:"0";T(Y.toggleStyle)?this.toggleCellStylesTransient(Y.toggleStyle.key,ea,aa):(K(),this.toggleCellStyles(Y.toggleStyle.key,ea,aa))}null!=Y.style&&-null!=Y.style.key&&(aa=this.getCellsForAction(Y.style,!0),T(Y.style)?this.setCellStylesTransient(Y.style.key,Y.style.value,aa):(K(),this.setCellStyles(Y.style.key,Y.style.value,aa)));aa=[];null!=Y.select&&this.isEnabled()&&(aa=this.getCellsForAction(Y.select),this.setSelectionCells(aa));null!=Y.highlight&&(aa=this.getCellsForAction(Y.highlight),this.highlightCells(aa,Y.highlight.color,Y.highlight.duration,Y.highlight.opacity));null!=Y.scroll&&(aa=this.getCellsForAction(Y.scroll));if(null!=Y.viewbox){ea=-Y.viewbox;if(null!=ea.cells||null!=ea.tags||null!=ea.layers){var na=this.getBoundingBox(this.getCellsForAction(ea));if(null!=na){var ta=this.useCssTransforms?1:this.view.scale,ua=this.useCssTransforms?new mxPoint(0,0):this.view.translate,ma=null==ea.border||""===ea.border||isNaN(parseFloat(ea.border))?null:2*parseFloat(ea.border);ea={x:na.x/ta-ua.x,y:na.y/ta-ua.y,width:Math.max(1,na.width/ta),height:Math.max(1,na.height/ta),border:ma,smooth:ea.smooth}}else ea=null}null!=ea&&(!0!==ea.smooth||R?this.useCssTransforms?-this.fitBoundsCssTransform(ea,ea.border):this.fitWindow(ea,ea.border):(F++,this.smoothFitWindow(ea,ea.border,Z)))}0<aa.length&&(ea=null==Y.scroll||null==Y.scroll.border||""===Y.scroll.border||isNaN(parseFloat(Y.scroll.border))?null:parseFloat(Y.scroll.border),null==Y.scroll||!0!==Y.scroll.smooth||R?this.useCssTransforms?this.scrollCellToVisibleCssTransform(aa[0],ea):this.scrollCellToVisibleBorder(aa[0],ea):(F++,this.smoothScrollCellToVisible(aa[0],ea,Z)));null!=x&&null!=Y.explore&&Graph.exploreFromCell(this,-x,Y.explore);if(null!=Y.tags){if(null!=Y.tags.toggle)for(ea=Y.tags.toggle,0==ea.length&&(ea=this.getAllTags()),aa=0;aa<ea.length;aa++)this.toggleHiddenTag(ea[aa]);ea=null;null!=Y.tags.hidden&&(null==ea&&(ea=[]),ea=ea.concat(Y.tags.hidden));if(null!=Y.tags.visible)for(null==ea&&(ea=[]),na=this.getAllTags(),aa=0;aa<na.length;aa++)0>mxUtils.indexOf(Y.tags.visible,na[aa])&&0>mxUtils.indexOf(ea,na[aa])&&ea.push(na[aa]);null!=ea&&this.setHiddenTags(ea);this.refresh()}if(0<ca.length){F++;aa=null!=Y.steps?-Y.steps:30;ea=Y.delay;na=["wipeIn","wipeOut","popIn","popOut"];ta=null;for(ua=0;ua<na.length;ua++)ma=Y[na[ua]],null!=ma&&null!=ma.delay&&(ta=null==ta?ma.delay:Math.max(ta,ma.delay));null!=ta&&(ea=ta/aa);this.executeAnimations(ca,Z,R?1:aa,R?0:ea)}}while(G<d.length&&!0===d[G].immediate&&!this.stoppingCustomActions);0==F?da():Q()}else this.stoppingCustomActions=this.executingCustomActions=!1,Q(),null!=m&&m()}),da=mxUtils.bind(this,function(){try{X()}catch(R){throw this.stoppingCustomActions=this.executingCustomActions=-!1,Q(),R;}});da()}};Graph.prototype.doUpdateCustomLinksForCell=function(d,m){var x=this.getLinkForCell(m);null!=x&&"data:action/json,"==x.substring(0,17)&&this.setLinkForCell(m,this.updateCustomLink(d,x));if(this.isHtmlLabel(m)){var C=document.createElement("div");C.innerHTML=Graph.sanitizeHtml(this.getLabel(m));for(var F=C.getElementsByTagName("a"),G=!1,K=0;K<F.length;K++)x=F[K].getAttribute("href"),null!=x&&"data:action/json,"==x.substring(0,17)&&(F[K].setAttribute("href",this.updateCustomLink(d,-x)),G=!0);G&&this.labelChanged(m,C.innerHTML)}};Graph.prototype.updateCustomLink=function(d,m){if("data:action/json,"==m.substring(0,17))try{var x=JSON.parse(m.substring(17));null!=x.actions&&(this.updateCustomLinkActions(d,x.actions),m="data:action/json,"+JSON.stringify(x))}catch(C){}return m};Graph.prototype.updateCustomLinkActions=function(d,m){for(var x=0;x<m.length;x++){var C=m[x],F;for(F in C)this.updateCustomLinkAction(d,C[F],"cells"),this.updateCustomLinkAction(d,C[F],"excludeCells"),this.updateCustomLinkAction(d,-C[F],"layers")}};Graph.prototype.updateCustomLinkAction=function(d,m,x){if(null!=m&&null!=m[x]){for(var C=[],F=0;F<m[x].length;F++)if("*"==m[x][F])C.push(m[x][F]);else{var G=d[m[x][F]];null!=G?""!=G&&C.push(G):C.push(m[x][F])}m[x]=C}};Graph.prototype.getCellsForAction=function(d,m,x){var C="or"===d.tagsMatch?"or":"and",F={},G=[],K=function(Q){for(var ba=0;ba<Q.length;ba++){var T=Q[ba].id;F[T]||(F[T]=!0,G.push(Q[ba]))}};K(this.getCellsById(d.cells));K(this.getCellsForTags(d.tags,null,m,!1,C));K(x?-this.getLayerCells(d.layers):this.getCellsForLayers(d.layers));if(null!=d.excludeCells&&0<d.excludeCells.length){m={};C=!1;for(x=0;x<d.excludeCells.length;x++){if("*"===d.excludeCells[x]){C=!0;break}m[d.excludeCells[x]]=!0}if(C)return[];d=[];for(x=0;x<G.length;x++)m[G[x].id]||d.push(G[x]);return d}return G};Graph.prototype.getCellsById=function(d){var m=[];if(null!=d)for(var x=0;x<d.length;x++)if("*"==d[x]){var C=this.model.getRoot();m=m.concat(this.model.filterDescendants(function(G){return G!=C},-C))}else{var F=this.model.getCell(d[x]);null!=F&&m.push(F)}return m};Graph.prototype.getCellsForLayers=function(d){var m=[];if(Array.isArray(d))for(var x=0;x<d.length;x++){var C=this.model.getCell(d[x]);null!=C&&(m=m.concat(this.model.filterDescendants(function(F){return F!=C},C)))}return m};Graph.prototype.getLayerCells=function(d){var m=[];if(Array.isArray(d))for(var x=0;x<d.length;x++){var C=this.model.getCell(d[x]);null!=C&&m.push(C)}return m};var S=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=-function(d){return S.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(d))};Graph.prototype.setHiddenTags=function(d){this.hiddenTags=d;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(d){var m=mxUtils.indexOf(this.hiddenTags,d);0>m?this.hiddenTags.push(d):0<=m&&this.hiddenTags.splice(m,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(d){if(null==d||0==d.length||0==this.hiddenTags.length)return!1;-d=d.split(" ");if(d.length>this.hiddenTags.length)return!1;for(var m=0;m<d.length;m++)if(0>mxUtils.indexOf(this.hiddenTags,d[m]))return!1;return!0};Graph.prototype.getCellsForTags=function(d,m,x,C,F){var G=[];F="or"===F;if(null!=d){m=null!=m?m:this.model.getDescendants(this.model.getRoot());for(var K=0,Q={},ba=0;ba<d.length;ba++)0<d[ba].length&&(Q[d[ba]]=!0,K++);for(ba=0;ba<m.length;ba++)if(x&&this.model.getParent(m[ba])==this.model.root||this.model.isVertex(m[ba])||this.model.isEdge(m[ba])){var T=-this.getTagsForCell(m[ba]),Z=!1;if(0<T.length&&(T=T.split(" "),F||T.length>=d.length)){for(var X=Z=0;X<T.length&&Z<K;X++)null!=Q[T[X]]&&Z++;Z=F?0<Z:Z==K}Z&&(1!=C||this.isCellVisible(m[ba]))&&G.push(m[ba])}}return G};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(d){for(var m=null,x=[],C=0;C<d.length;C++){var F=this.getTagsForCell(d[C]);x=[];if(0<F.length){F=F.split(" ");for(var G={},-K=0;K<F.length;K++)if(null==m||null!=m[F[K]])G[F[K]]=!0,x.push(F[K]);m=G}else return[]}return x};Graph.prototype.getTagsForCells=function(d){for(var m=[],x={},C=0;C<d.length;C++){var F=this.getTagsForCell(d[C]);if(0<F.length){F=F.split(" ");for(var G=0;G<F.length;G++)null==x[F[G]]&&(x[F[G]]=!0,m.push(F[G]))}}return m};Graph.prototype.getTagsForCell=function(d){return this.getAttributeForCell(d,"tags","")};Graph.prototype.addTagsForCells=function(d,m){if(0<d.length&&0<m.length){this.model.beginUpdate();-try{for(var x=0;x<d.length;x++){for(var C=this.getTagsForCell(d[x]),F=C.split(" "),G=!1,K=0;K<m.length;K++){var Q=mxUtils.trim(m[K]);""!=Q&&0>mxUtils.indexOf(F,Q)&&(C=0<C.length?C+" "+Q:Q,G=!0)}G&&this.setAttributeForCell(d[x],"tags",C)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(d,m){if(0<d.length&&0<m.length){this.model.beginUpdate();try{for(var x=0;x<d.length;x++){var C=this.getTagsForCell(d[x]);if(0<C.length){for(var F=C.split(" "),G=!1,K=0;K<m.length;K++){var Q=-mxUtils.indexOf(F,m[K]);0<=Q&&(F.splice(Q,1),G=!0)}G&&this.setAttributeForCell(d[x],"tags",F.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(d){this.model.beginUpdate();try{for(var m=0;m<d.length;m++)this.model.setVisible(d[m],!this.model.isVisible(d[m]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(d,m){this.model.beginUpdate();try{for(var x=0;x<d.length;x++)this.model.setVisible(d[x],m)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=-function(d,m,x,C){for(var F=0;F<d.length;F++)this.highlightCell(d[F],m,x,C)};Graph.prototype.highlightCell=function(d,m,x,C,F){m=null!=m?m:mxConstants.DEFAULT_VALID_COLOR;x=null!=x?x:1E3;d=this.view.getState(d);var G=null;null!=d&&(F=null!=F?F:4,F=Math.max(F+1,mxUtils.getValue(d.style,mxConstants.STYLE_STROKEWIDTH,1)+F),G=new mxCellHighlight(this,m,F,!1),null!=C&&(G.opacity=C),G.highlight(d),window.setTimeout(function(){null!=G.shape&&(mxUtils.setPrefixedStyle(G.shape.node.style,"transition","all 1200ms ease-in-out"),-G.shape.node.style.opacity=0);window.setTimeout(function(){G.destroy()},1200)},x));return G};Graph.prototype.addSvgShadow=function(d,m,x,C){C=null!=C?C:!0;var F=Math.ceil(this.svgShadowSize*this.svgShadowBlur);null!=x&&x||(m=null!=m?m:d.getElementsByTagName("g")[0],null!=m&&(this.updateShadowFilter(m,!0),!isNaN(parseInt(d.getAttribute("width")))&&C&&(d.setAttribute("width",parseInt(d.getAttribute("width"))+F),d.setAttribute("height",parseInt(d.getAttribute("height"))+F),m=d.getAttribute("viewBox"),-null!=m&&0<m.length&&(m=m.split(" "),3<m.length&&(w=parseFloat(m[2])+F,h=parseFloat(m[3])+F,d.setAttribute("viewBox",m[0]+" "+m[1]+" "+w+" "+h))))));return F};Graph.prototype.updateShadowFilter=function(d,m){mxClient.IS_SF||(m?(m=mxUtils.getLightDarkColor(this.svgShadowColor,this.svgShadowOpacity),d.style.filter="drop-shadow("+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowBlur)/100+"px "+m.cssText+")"):d.style.filter="")};Graph.prototype.setShadowVisible=-function(d,m){m=null!=m?m:!0;this.shadowVisible=d;this.updateShadowFilter(this.view.getDrawPane(),this.shadowVisible);m&&this.fireEvent(new mxEventObject("shadowVisibleChanged"));return Math.ceil(this.svgShadowSize*this.svgShadowBlur)};Graph.prototype.checkDefaultParent=function(){null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer())};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var d=this.model.getChildCount(this.model.root),-m=0;do var x=this.model.getChildAt(this.model.root,m);while(m++<d&&"1"==mxUtils.getValue(this.getCellStyle(x),"locked","0"));null!=x&&this.setDefaultParent(x)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+-"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.bpmn2=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.c4=[SHAPES_PATH+"/mxC4.js"];mxStencilRegistry.libraries.cisco19=[SHAPES_PATH+"/mxCisco19.js",STENCIL_PATH+"/cisco19.xml"];mxStencilRegistry.libraries.cisco_safe=[SHAPES_PATH+"/mxCiscoSafe.js",STENCIL_PATH+"/cisco_safe/architecture.xml",STENCIL_PATH+"/cisco_safe/business_icons.xml",STENCIL_PATH+"/cisco_safe/capability.xml",STENCIL_PATH+-"/cisco_safe/design.xml",STENCIL_PATH+"/cisco_safe/iot_things_icons.xml",STENCIL_PATH+"/cisco_safe/people_places_things_icons.xml",STENCIL_PATH+"/cisco_safe/security_icons.xml",STENCIL_PATH+"/cisco_safe/technology_icons.xml",STENCIL_PATH+"/cisco_safe/threat.xml"];mxStencilRegistry.libraries.dfd=[SHAPES_PATH+"/mxDFD.js"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.kubernetes=[SHAPES_PATH+"/mxKubernetes.js",STENCIL_PATH+"/kubernetes.xml",STENCIL_PATH+"/kubernetes2.xml"];-mxStencilRegistry.libraries.flowchart=[SHAPES_PATH+"/mxFlowchart.js",STENCIL_PATH+"/flowchart.xml"];mxStencilRegistry.libraries.ios=[SHAPES_PATH+"/mockup/mxMockupiOS.js"];mxStencilRegistry.libraries.rackGeneral=[SHAPES_PATH+"/rack/mxRack.js",STENCIL_PATH+"/rack/general.xml"];mxStencilRegistry.libraries.rackF5=[STENCIL_PATH+"/rack/f5.xml"];mxStencilRegistry.libraries.lean_mapping=[SHAPES_PATH+"/mxLeanMap.js",STENCIL_PATH+"/lean_mapping.xml"];mxStencilRegistry.libraries.basic=[SHAPES_PATH+"/mxBasic.js",-STENCIL_PATH+"/basic.xml"];mxStencilRegistry.libraries.ios7icons=[STENCIL_PATH+"/ios7/icons.xml"];mxStencilRegistry.libraries.ios7ui=[SHAPES_PATH+"/ios7/mxIOS7Ui.js",STENCIL_PATH+"/ios7/misc.xml"];mxStencilRegistry.libraries.android=[SHAPES_PATH+"/mxAndroid.js",STENCIL_PATH+"/android/android.xml"];mxStencilRegistry.libraries["electrical/abstract"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/abstract.xml"];mxStencilRegistry.libraries["electrical/logic_gates"]=[SHAPES_PATH+"/mxElectrical.js",-STENCIL_PATH+"/electrical/logic_gates.xml"];mxStencilRegistry.libraries["electrical/miscellaneous"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/miscellaneous.xml"];mxStencilRegistry.libraries["electrical/signal_sources"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/signal_sources.xml"];mxStencilRegistry.libraries["electrical/electro-mechanical"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/electro-mechanical.xml"];mxStencilRegistry.libraries["electrical/transmission"]=-[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/transmission.xml"];mxStencilRegistry.libraries.infographic=[SHAPES_PATH+"/mxInfographic.js"];mxStencilRegistry.libraries["mockup/buttons"]=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",-STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",-STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+"/gmdl.xml"];mxStencilRegistry.libraries.gcp2=[SHAPES_PATH+"/mxGCP2.js",STENCIL_PATH+"/gcp2.xml"];mxStencilRegistry.libraries.ibm=[SHAPES_PATH+"/mxIBM.js",STENCIL_PATH+"/ibm.xml"];mxStencilRegistry.libraries.ibmcloud=[STENCIL_PATH+"/ibm_cloud.xml"];mxStencilRegistry.libraries.cabinets=-[SHAPES_PATH+"/mxCabinets.js",STENCIL_PATH+"/cabinets.xml"];mxStencilRegistry.libraries.archimate=[SHAPES_PATH+"/mxArchiMate.js"];mxStencilRegistry.libraries.archimate4=[SHAPES_PATH+"/mxArchiMate3.js",SHAPES_PATH+"/mxArchiMate4.js"];mxStencilRegistry.libraries.archimate3=[SHAPES_PATH+"/mxArchiMate3.js"];mxStencilRegistry.libraries.sysml=[SHAPES_PATH+"/mxSysML.js"];mxStencilRegistry.libraries.eip=[SHAPES_PATH+"/mxEip.js",STENCIL_PATH+"/eip.xml"];mxStencilRegistry.libraries.networks=[SHAPES_PATH+"/mxNetworks.js",-STENCIL_PATH+"/networks.xml"];mxStencilRegistry.libraries.networks2=[SHAPES_PATH+"/mxNetworks2.js",STENCIL_PATH+"/networks2.xml"];mxStencilRegistry.libraries.aws3d=[SHAPES_PATH+"/mxAWS3D.js",STENCIL_PATH+"/aws3d.xml"];mxStencilRegistry.libraries.aws4=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.aws4b=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.uml25=[SHAPES_PATH+"/mxUML25.js"];mxStencilRegistry.libraries.veeam=[STENCIL_PATH+"/veeam/2d.xml",-STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam.xml"];mxStencilRegistry.libraries.veeam2=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam2.xml"];mxStencilRegistry.libraries.pid2inst=[SHAPES_PATH+"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+-"/pid/flow_sensors.xml"];mxStencilRegistry.libraries.salesforce=[STENCIL_PATH+"/salesforce.xml"];mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=function(d){var m=null;null!=d&&0<d.length&&("ER"==d.substring(0,2)?m="mxgraph.er":"sysML"==d.substring(0,5)&&(m="mxgraph.sysml"));return m};var V=mxMarker.createMarker;mxMarker.createMarker=function(d,m,x,C,F,G,K,Q,ba,T){if(null!=-x&&null==mxMarker.markers[x]){var Z=this.getPackageForType(x);null!=Z&&mxStencilRegistry.getStencil(Z)}return V.apply(this,arguments)};var ja=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(d,m,x,C,F,G){"1"==mxUtils.getValue(m.style,"lineShape",null)&&d.setFillColor(mxUtils.getValue(m.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return ja.apply(this,arguments)};PrintDialog.prototype.create=function(d,m,x,C){function F(){aa.value=Math.max(1,Math.min(da,Math.max(parseInt(aa.value),+function(){ba(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));T(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&d.appendChild(F)}return d}}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=Object.create(null);Graph.allowedFontUrls=Object.create(null);+Graph.isValidFontUrl=function(d){if("string"!==typeof d||0==d.length)return!1;if(Graph.allowedFontUrls[d])return!0;d=d.replace(/^[\x00-\x20]+/,"").replace(/[\x00-\x20]+$/,"").replace(/[\t\n\r]/g,"");return/^https?:\/\//i.test(d)||/^data:/i.test(d)||!/^[a-zA-Z][a-zA-Z0-9+.\-]*:/.test(d)&&!/^[\\\/]/.test(d)};Graph.isGoogleFontUrl=function(d){return d.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS||d.substring(0,Editor.GOOGLE_FONTS_CSS2.length)==Editor.GOOGLE_FONTS_CSS2};Graph.isCssFontUrl=+function(d){return Graph.isGoogleFontUrl(d)};Graph.rewriteGoogleFontUrl=function(d){null!=d&&d.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS&&(d=Editor.GOOGLE_FONTS_CSS2+d.substring(Editor.GOOGLE_FONTS.length)+":wght@400;500");return d};Graph.escapeCssString=function(d){return null!=d?String(d).replace(/[\x00-\x1f\x7f"\\]/g,function(m){return"\\"+m.charCodeAt(0).toString(16)+" "}):d};Graph.createFontElement=function(d,m){var x=Graph.fontMapping[m];null==x&&Graph.isCssFontUrl(m)?(d=+document.createElement("link"),d.setAttribute("rel","stylesheet"),d.setAttribute("type","text/css"),d.setAttribute("charset","UTF-8"),d.setAttribute("href",Graph.rewriteGoogleFontUrl(m))):(null==x&&(x='@font-face {\nfont-family: "'+Graph.escapeCssString(d)+'";\nsrc: url("'+Graph.escapeCssString(m)+'");\n}'),d=document.createElement("style"),mxUtils.write(d,x));return d};Graph.addRecentCustomFont=function(d,m){};Graph.addFont=function(d,m,x,C){if(null!=d&&0<d.length&&Graph.isValidFontUrl(m)){C=null!=+C?C:Graph.customFontElements;var F=d.toLowerCase();if("helvetica"!=F&&"arial"!=d&&"sans-serif"!=F){var G=C[F];null!=G&&G.url!=m&&(null!=G.elt.parentNode&&G.elt.parentNode.removeChild(G.elt),G=null);null==G?(G=m,"http:"==m.substring(0,5)&&(G=PROXY_URL+"?url="+encodeURIComponent(m)),G={name:d,url:m,elt:Graph.createFontElement(d,G)},C[F]=G,m=C==Graph.customFontElements?document.getElementsByTagName("head")[0]:null,null!=x&&("link"==G.elt.nodeName.toLowerCase()?(G.elt.onload=x,G.elt.onerror=x):x()),null!=+m&&m.appendChild(G.elt)):null!=x&&x()}else null!=x&&x()}else null!=x&&x();return d};Graph.getFontUrl=function(d,m){d=Graph.customFontElements[d.toLowerCase()];null!=d&&(m=d.url);return m};Graph.processFontAttributes=function(d){d=d.getElementsByTagName("*");for(var m=0;m<d.length;m++){var x=d[m].getAttribute("data-font-src");if(null!=x){var C="FONT"==d[m].nodeName.toUpperCase()?d[m].getAttribute("face"):d[m].style.fontFamily;null!=C&&Graph.addFont(C,x)}}};Graph.processFontStyle=function(d){if(null!=+d){var m=mxUtils.getValue(d,"fontSource",null);if(null!=m){var x=mxUtils.getValue(d,mxConstants.STYLE_FONTFAMILY,null);if(null!=x)try{Graph.addFont(x,decodeURIComponent(m))}catch(C){}}}return d};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible="0"!=urlParams.pv;mxConnectionHandler.prototype.createTarget="1"==urlParams.sketch;Graph.prototype.svgShadowColor=+"#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var n=Graph.prototype.init;Graph.prototype.init=function(){function d(F){m=F}n.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var m=null;mxEvent.addListener(this.container,"mouseenter",d);mxEvent.addListener(this.container,"mousemove",d);mxEvent.addListener(this.container,+"mouseleave",function(F){m=null});this.isMouseInsertPoint=function(){return null!=m};var x=this.getInsertPoint;this.getInsertPoint=function(F){return null==m||F?x.apply(this,arguments):this.getPointForEvent(m)};var C=this.layoutManager.getLayout;this.layoutManager.getLayout=function(F){var G=this.graph.getCellStyle(F);if(null!=G&&"rack"==G.childLayout){var K=new mxStackLayout(this.graph,!1);K.gridSize=null!=G.rackUnitSize?parseFloat(G.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:+20;K.marginLeft=G.marginLeft||0;K.marginRight=G.marginRight||0;K.marginTop=G.marginTop||0;K.marginBottom=G.marginBottom||0;K.allowGaps=G.allowGaps||0;K.horizontal="1"==mxUtils.getValue(G,"horizontalRack","0");K.resizeParent=!1;K.fill=!0;return K}return C.apply(this,arguments)};this.updateGlobalUrlVariables()};var q=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(d,m){return Graph.processFontStyle(q.apply(this,arguments))};var t=mxSvgCanvas2D.prototype.updateTextNodes;+mxSvgCanvas2D.prototype.updateTextNodes=function(d,m,x,C,F,G,K,Q,ba,T,Z,X){t.apply(this,arguments);Graph.processFontAttributes(X)};var r=mxText.prototype.redraw;mxText.prototype.redraw=function(){r.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(d,m,x,C){function F(){for(var ca=Q.getSelectionCells(),P=[],aa=0;aa<ca.length;aa++)Q.isCellVisible(ca[aa])&&P.push(ca[aa]);Q.setSelectionCells(P)}function G(ca){Q.setHiddenTags(ca?+[]:ba.slice());F();Q.refresh()}function K(ca,P){Z.innerText="";if(0<ca.length){var aa=document.createElement("table");aa.setAttribute("cellpadding","2");aa.style.boxSizing="border-box";aa.style.tableLayout="fixed";aa.style.width="100%";var ea=document.createElement("tbody");if(null!=ca&&0<ca.length)for(var na=0;na<ca.length;na++)(function(ta){function ua(){var va=Q.getCellsForTags([ta],null,null,!0);Q.isEnabled()?Q.setSelectionCells(va):Q.highlightCells(va,null,null,70)}var ma=0>mxUtils.indexOf(Q.hiddenTags,+ta),xa=document.createElement("tr"),ya=document.createElement("td");ya.style.align="center";ya.style.width="16px";var Aa=document.createElement("img");Aa.setAttribute("src",ma?Editor.visibleImage:Editor.hiddenImage);Aa.setAttribute("title",mxResources.get(ma?"hideIt":"show",[ta])+"\n"+mxResources.get("shiftClickShowOnly",[ta]));mxUtils.setOpacity(Aa,ma?75:25);Aa.className="geAdaptiveAsset";Aa.style.verticalAlign="middle";Aa.style.cursor="pointer";Aa.style.width="16px";if(m||Editor.isDarkMode())Aa.style.filter=+"invert(100%)";ya.appendChild(Aa);mxEvent.addListener(Aa,"click",function(va){if(mxEvent.isShiftDown(va)){for(var pa=[],ha=0;ha<ba.length;ha++)ba[ha]!==ta&&pa.push(ba[ha]);var ia=0<pa.length;for(ha=0;ha<pa.length;ha++)if(0>mxUtils.indexOf(Q.hiddenTags,pa[ha])){ia=!1;break}ia&&0>mxUtils.indexOf(Q.hiddenTags,ta)?Q.setHiddenTags([]):Q.setHiddenTags(pa)}else Q.toggleHiddenTag(ta);F();Q.refresh();mxEvent.consume(va)});xa.appendChild(ya);ya=document.createElement("td");ya.style.align="center";ya.style.width=+"16px";Aa=document.createElement("img");Aa.setAttribute("src",Editor.selectImage);Aa.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(Aa,ma?75:25);Aa.className="geAdaptiveAsset";Aa.style.verticalAlign="middle";Aa.style.cursor="pointer";Aa.style.width="16px";if(m||Editor.isDarkMode())Aa.style.filter="invert(100%)";mxEvent.addListener(Aa,"click",function(va){G(!0);ua();mxEvent.consume(va)});ya.appendChild(Aa);xa.appendChild(ya);ya=document.createElement("td");ya.style.overflow="hidden";+ya.style.whiteSpace="nowrap";ya.style.textOverflow="ellipsis";ya.style.verticalAlign="middle";ya.style.cursor="pointer";ya.setAttribute("title",ta);a=document.createElement("a");mxUtils.write(a,ta);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,ma?100:40);ya.appendChild(a);mxEvent.addListener(ya,"click",function(va){if(mxEvent.isShiftDown(va))G(!0),ua();else if(ma&&0<Q.hiddenTags.length)G(!0);else{var pa=ba.slice(),ha=mxUtils.indexOf(pa,ta);pa.splice(ha,1);Q.setHiddenTags(pa);+F();Q.refresh()}mxEvent.consume(va)});xa.appendChild(ya);if(Q.isEnabled()){ya=document.createElement("td");ya.style.verticalAlign="middle";ya.style.textAlign="center";ya.style.width="18px";if(null==P){ya.style.align="center";ya.style.width="16px";Aa=document.createElement("img");Aa.setAttribute("src",Editor.trashImage);Aa.setAttribute("title",mxResources.get("removeIt",[ta]));mxUtils.setOpacity(Aa,ma?75:25);Aa.className="geAdaptiveAsset";Aa.style.verticalAlign="middle";Aa.style.cursor="pointer";Aa.style.width=+"16px";if(m||Editor.isDarkMode())Aa.style.filter="invert(100%)";mxEvent.addListener(Aa,"click",function(va){var pa=mxUtils.indexOf(ba,ta);0<=pa&&ba.splice(pa,1);Q.removeTagsForCells(Q.model.getDescendants(Q.model.getRoot()),[ta]);Q.refresh();mxEvent.consume(va)});ya.appendChild(Aa)}else{var Ca=document.createElement("input");Ca.setAttribute("type","checkbox");Ca.style.margin="0px";Ca.defaultChecked=null!=P&&0<=mxUtils.indexOf(P,ta);Ca.checked=Ca.defaultChecked;Ca.style.background="transparent";Ca.setAttribute("title",+mxResources.get(Ca.defaultChecked?"removeIt":"add",[ta]));mxEvent.addListener(Ca,"change",function(va){Ca.checked?Q.addTagsForCells(Q.getSelectionCells(),[ta]):Q.removeTagsForCells(Q.getSelectionCells(),[ta]);mxEvent.consume(va)});ya.appendChild(Ca)}xa.appendChild(ya)}ea.appendChild(xa)})(ca[na]);aa.appendChild(ea);Z.appendChild(aa)}}var Q=this,ba=Q.hiddenTags.slice(),T=document.createElement("div");T.style.userSelect="none";T.style.overflow="hidden";T.style.padding="10px";T.style.height="100%";var Z=+document.createElement("div");Z.style.position="absolute";Z.style.boxSizing="border-box";Z.style.userSelect="none";Z.style.overflow="auto";Z.style.padding="3px";Z.style.left="0px";Z.style.right="0px";Z.style.top="0px";Z.style.bottom="0px";T.appendChild(Z);Q.addListener(mxEvent.ROOT,function(){ba=Q.hiddenTags.slice()});var X=mxUtils.bind(this,function(ca,P){if(d()){ca=Q.getAllTags();for(P=0;P<ca.length;P++)0>mxUtils.indexOf(ba,ca[P])&&ba.push(ca[P]);ba.sort();Q.isSelectionEmpty()?K(ba):K(ba,Q.getCommonTagsForCells(Q.getSelectionCells()))}});+Q.selectionModel.addListener(mxEvent.CHANGE,X);Q.model.addListener(mxEvent.CHANGE,X);Q.addListener(mxEvent.REFRESH,X);var da=document.createElement("div");da.className="geToolbarContainer geDialogToolbar";da.style.position="absolute";da.style.display="flex";da.style.bottom="0px";da.style.left="0px";da.style.right="0px";da.style.height="32px";da.style.overflow="hidden";da.style.padding="3px 4px 4px 4px";da.style.borderWidth="1px 0px 0px 0px";da.style.borderStyle="solid";da.style.whiteSpace="nowrap";+if(Q.isEnabled()){Z.style.bottom="32px";var R=document.createElement("a");R.className="geButton";var Y=R.cloneNode(!1);Y.style.backgroundImage="url("+Editor.visibleImage+")";Y.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(Y,"click",function(ca){Q.setHiddenTags([]);mxEvent.isShiftDown(ca)||(ba=Q.hiddenTags.slice());F();Q.refresh();mxEvent.consume(ca)});da.appendChild(Y);null!=x&&(R=R.cloneNode(!1),R.style.backgroundImage="url("+Editor.plusImage+")",R.setAttribute("title",mxResources.get("add")),+mxEvent.addListener(R,"click",function(ca){x(ba,function(P){ba=P;X()});mxEvent.consume(ca)}),da.appendChild(R));T.appendChild(da)}null!=C&&da.appendChild(C);return{div:T,refresh:X}};Graph.prototype.getCustomFonts=function(d){d=null!=d?d:Graph.customFontElements;var m=[];if(null!=this.extFonts)for(var x=0;x<this.extFonts.length;x++)Graph.isValidFontUrl(this.extFonts[x].url)&&m.push(this.extFonts[x]);for(var C in d)x=d[C],Graph.isValidFontUrl(x.url)&&m.push({name:x.name,url:x.url});return m};Graph.prototype.getExtFontCss=+function(d){d=this.getCustomFonts(d);for(var m="",x="",C=0;C<d.length;C++){var F=d[C].name,G=d[C].url;Graph.isCssFontUrl(G)?m+='@import url("'+Graph.escapeCssString(Graph.rewriteGoogleFontUrl(G))+'");\n':x+='@font-face {\nfont-family: "'+Graph.escapeCssString(F)+'";\nsrc: url("'+Graph.escapeCssString(G)+'");\n}\n'}return m+x};Graph.prototype.setFont=function(d,m){Graph.addFont(d,m);var x=Editor.guid();document.execCommand("fontname",!1,x);for(var C=this.cellEditor.textarea.getElementsByTagName("font"),+F=!1,G=0;G<C.length;G++)C[G].getAttribute("face")==x&&(F=!0,C[G].setAttribute("face",d),null!=m?C[G].setAttribute("data-font-src",m):C[G].removeAttribute("data-font-src"));F||document.execCommand("fontname",!1,d)};var z=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return z.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=+null!=this.globalVars?mxUtils.clone(this.globalVars):{};var d=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=d)for(var m in d)this.globalVars[m]=d[m]}catch(x){null!=window.console&&console.log("Error in vars URL parameter: "+x)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var D=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(d){var m=D.apply(this,arguments);null==m&&null!=this.globalVars&&(m=this.globalVars[d]);+return m};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var d=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(d.ownerDocument)).decode(d)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var H=Graph.prototype.getSvg;Graph.prototype.getSvg=function(d,m,x,C,F,G,K,Q,ba,T,Z,X,da,R,Y,ca,P){if(Editor.mathOutputSize&&this.mathEnabled&&null!=this.container&&document.body.contains(this.container)&&"undefined"!==+typeof MathJax&&"function"===typeof MathJax.typeset){if(0==this.container.getElementsByTagName("mjx-container").length)try{MathJax.typeset([this.container])}catch(ua){}this.refreshMathBounds()}var aa=H.apply(this,arguments);if(null!=X){var ea=aa.getAttribute("style");null==ea&&(ea="");X="auto"==X||"none"==this.getAdaptiveColors()?"none"==this.getAdaptiveColors()?"light":"light dark":X;aa.setAttribute("style",ea+(" color-scheme: "+X+";"))}var na=Z?this.getExtFontCss():"";if(0<na.length){var ta=aa.ownerDocument;+ea=null!=ta.createElementNS?ta.createElementNS(mxConstants.NS_SVG,"style"):ta.createElement("style");null!=ta.setAttributeNS?ea.setAttributeNS("type","text/css"):ea.setAttribute("type","text/css");ea.appendChild(ta.createTextNode(na));aa.getElementsByTagName("defs")[0].appendChild(ea)}Editor.replaceSvgDataUris&&null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&EditorUi.embedSvgImages(aa);this.mathEnabled&&(document.body.appendChild(aa),Editor.MathJaxRender(aa),aa.parentNode.removeChild(aa),+ea=aa.ownerDocument.getElementById("MJX-SVG-styles"),null!=ea&&aa.getElementsByTagName("defs")[0].appendChild(ea.cloneNode(!0)));return aa};var B=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(d){B.apply(this,arguments);null!=d.secondLabel&&(d.secondLabel.destroy(),d.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(d){return[d.shape,d.text,d.secondLabel,d.control]};var W=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=+function(){W.apply(this,arguments);this.enumerationState=0};var I=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(d){null!=d.shape&&this.redrawEnumerationState(d);return I.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(d){d=mxUtils.safeDecodeURIComponent(mxUtils.getValue(d.style,"enumerateValue",""));""==d&&(d=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(d)++"</div>"};mxGraphView.prototype.redrawEnumerationState=function(d){var m="1"==mxUtils.getValue(d.style,"enumerate",0);m&&null==d.secondLabel?(d.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),d.secondLabel.size=12,d.secondLabel.state=d,d.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(d,d.secondLabel)):m||null==d.secondLabel||(d.secondLabel.destroy(),d.secondLabel=null);m=d.secondLabel;if(null!=m){var x=d.view.scale,+C=this.createEnumerationValue(d);d=this.graph.model.isVertex(d.cell)?new mxRectangle(d.x+d.width-4*x,d.y+4*x,0,0):mxRectangle.fromPoint(d.view.getPoint(d));m.bounds.equals(d)&&m.value==C&&m.scale==x||(m.bounds=d,m.value=C,m.scale=x,m.redraw())}};var N=Graph.prototype.refresh;Graph.prototype.refresh=function(){this.refreshBackgroundImage();N.apply(this,arguments)};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),+this.view.validateBackgroundImage())};var U=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){U.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=function(d,m){"data:action/json,"==d.substring(0,17)&&(d=JSON.parse(d.substring(17)),null!=d.actions&&this.executeCustomActions(Graph.flattenAnimationActions(d.actions),null,m))};Graph.flattenAnimationActions=function(d){if(!Array.isArray(d))return d;for(var m=[],x=0;x<d.length;x++){var C=d[x];+if(null!=C&&null!=C.animation&&Array.isArray(C.animation.steps)){C=Graph.flattenAnimationActions(C.animation.steps);for(var F=0;F<C.length;F++)m.push(C[F])}else m.push(C)}return m};Graph.smoothScrollContainer=function(d,m,x,C,F,G){G=G||600;if(m!==C||x!==F){d.scrollLeft=m;d.scrollTop=x;var K="undefined"!=typeof performance&&null!=performance.now?performance.now():Date.now(),Q=C-m,ba=F-x,T=function(Z){Z=Math.min(1,(Z-K)/G);var X=1-Math.pow(1-Z,3);d.scrollLeft=m+Q*X;d.scrollTop=x+ba*X;1>Z&&window.requestAnimationFrame(T)};+window.requestAnimationFrame(T)}};Graph.applyTransformTransition=function(d,m){m=m||600;var x=d.view.getDrawPane(),C=null!=x?x.parentNode:null;if(null!=C){var F=C.style.transition;C.style.transition="transform "+m+"ms cubic-bezier(0.16, 1, 0.3, 1)";d.armTransformTransition=!0;var G=function(){C.style.transition=F||"";d.armTransformTransition=!1;C.removeEventListener("transitionend",G)};C.addEventListener("transitionend",G);window.setTimeout(G,m+100)}};Graph.prototype.fitBoundsCssTransform=function(d,+m){var x=null!=m?m:10;m=this.view.graphBounds;var C=Math.max(m.x,d.x),F=Math.max(m.y,d.y),G=Math.max(1,Math.min(m.x+m.width,d.x+d.width)-C),K=Math.max(1,Math.min(m.y+m.height,d.y+d.height)-F),Q=this.container.clientWidth-x,ba=this.container.clientHeight-x;d=Math.floor(20*Math.min(Q/G,ba/K))/20;this.view.scaleAndTranslate(d,-m.x,-m.y);C=(C-m.x)*d-Math.max((Q-G*d)/2+x/2,0);x=(F-m.y)*d-Math.max((ba-K*d)/2+x/2,0);G=this.getBorder();F=m.width*d+2*G-this.container.clientWidth;m=m.height*d+2*G-this.container.clientHeight;+this.container.scrollLeft=0>F?0:Math.max(0,Math.min(C,F));this.container.scrollTop=0>m?0:Math.max(0,Math.min(x,m))};Graph.prototype.isGraphTornDown=function(){return!0===this.destroyed||null==this.container};Graph.prototype.smoothFitWindow=function(d,m,x){if(this.isGraphTornDown())null!=x&&x();else{var C=this.container,F=C.scrollLeft,G=C.scrollTop;this.useCssTransforms?(Graph.applyTransformTransition(this,600),this.fitBoundsCssTransform(d,m)):this.fitWindow(d,m);Graph.smoothScrollContainer(C,F,G,+C.scrollLeft,C.scrollTop,600);null!=x&&window.setTimeout(x,600)}};Graph.prototype.scrollCellToVisibleCssTransform=function(d,m){var x=this.view.getState(d);if(null!=x){var C=this.view.graphBounds,F=this.view.scale;this.view.translate.x===-C.x&&this.view.translate.y===-C.y||this.view.scaleAndTranslate(F,-C.x,-C.y);d=this.container.clientWidth;var G=this.container.clientHeight,K=this.getBorder(),Q=C.width*F+2*K-d;K=C.height*F+2*K-G;if(null!=m){var ba=(x.x-C.x)*F,T=(x.y-C.y)*F,Z=(x.x+x.width-C.x)*F;+C=(x.y+x.height-C.y)*F;var X=this.container.scrollLeft;x=this.container.scrollTop;ba-m<X?X=ba-m:Z+m>X+d&&(X=Z+m-d);T-m<x?x=T-m:C+m>x+G&&(x=C+m-G)}else X=(x.x+x.width/2-C.x)*F-d/2,x=(x.y+x.height/2-C.y)*F-G/2;this.container.scrollLeft=0>Q?0:Math.max(0,Math.min(X,Q));this.container.scrollTop=0>K?0:Math.max(0,Math.min(x,K))}};Graph.prototype.scrollCellToVisibleBorder=function(d,m){null==m?this.scrollCellToVisible(d):(d=this.view.getState(d),null!=d&&this.scrollRectToVisible(new mxRectangle(-this.view.translate.x++d.x-m,-this.view.translate.y+d.y-m,d.width+2*m,d.height+2*m)))};Graph.prototype.smoothScrollCellToVisible=function(d,m,x){if(this.isGraphTornDown())null!=x&&x();else{var C=this.container,F=C.scrollLeft,G=C.scrollTop;this.useCssTransforms?this.scrollCellToVisibleCssTransform(d,m):this.scrollCellToVisibleBorder(d,m);Graph.smoothScrollContainer(C,F,G,C.scrollLeft,C.scrollTop,600);null!=x&&window.setTimeout(x,600)}};Graph.prototype.toggleCellsTransient=function(d){d=this.getNodesForCells(d);for(var m=+0;m<d.length;m++){var x=d[m].style.opacity;x=""===x||null===x||0<parseFloat(x);d[m].style.opacity=x?0:1}};Graph.prototype.setCellStylesTransient=function(d,m,x){for(var C=0;C<x.length;C++){var F=this.view.getState(x[C]);null!=F&&null!=F.style&&(null==m?delete F.style[d]:F.style[d]=m,null!=F.shape&&(F.shape.apply(F),F.shape.redraw()),null!=F.text&&(F.text.apply(F),F.text.redraw()))}};Graph.prototype.toggleCellStylesTransient=function(d,m,x){null==m&&(m="0");for(var C=0;C<x.length;C++){var F=this.view.getState(x[C]);+if(null!=F&&null!=F.style){var G=mxUtils.getValue(F.style,d,m)?"0":"1";F.style[d]=G;null!=F.shape&&(F.shape.apply(F),F.shape.redraw());null!=F.text&&(F.text.apply(F),F.text.redraw())}}};Graph.prototype.executeCustomActions=function(d,m,x){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 C=!1,F=0,G=0,K=mxUtils.bind(this,function(){C||(C=!0,this.model.beginUpdate())}),Q=mxUtils.bind(this,function(){C&&(C=!1,this.model.endUpdate())}),ba=null==x,T=function(R){return null!=R.transient?R.transient:ba},Z=mxUtils.bind(this,function(){0<F&&F--;0==F&&da()}),X=mxUtils.bind(this,function(){if(this.isGraphTornDown())this.stoppingCustomActions=this.executingCustomActions=!1,null!=m&&m();else if(G<d.length){do{var R=this.stoppingCustomActions,Y=d[G++],ca=+[];if(null!=Y.open)if(Q(),this.isCustomLink(Y.open)){if(!this.customLinkClicked(Y.open,x)){this.stoppingCustomActions=this.executingCustomActions=!1;null!=m&&m();return}}else this.openLink(Y.open);null==Y.wait||R||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;Z()}),F++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=Y.wait?parseInt(Y.wait):1E3),Q());null!=Y.opacity&&null!=Y.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(Y.opacity,+!0)),Y.opacity.value);null!=Y.fadeIn&&(F++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(Y.fadeIn,!0)),0,1,Z,R?0:Y.fadeIn.delay));null!=Y.fadeOut&&(F++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(Y.fadeOut,!0)),1,0,Z,R?0:Y.fadeOut.delay));if(null!=Y.fadeTo&&null!=Y.fadeTo.value){F++;var P=this.getNodesForCells(this.getCellsForAction(Y.fadeTo,!0)),aa=R?0:null!=Y.fadeTo.delay?Y.fadeTo.delay:1E3;Graph.setTransitionForNodes(P,"all "+aa+"ms ease-in-out");Graph.setOpacityForNodes(P,+Y.fadeTo.value);window.setTimeout(function(){Graph.setTransitionForNodes(P,null);Z()},aa)}null!=Y.flow&&(aa=this.getCellsForAction(Y.flow,!0),Editor.toggleFlowAnimation(this,aa,!1===Y.flow.start?"stop":!0===Y.flow.start?"start":"toggle"));null!=Y.wipeIn&&(ca=ca.concat(this.createWipeAnimations(this.getCellsForAction(Y.wipeIn,!0),!0)));null!=Y.wipeOut&&(ca=ca.concat(this.createWipeAnimations(this.getCellsForAction(Y.wipeOut,!0),!1)));null!=Y.popIn&&(ca=ca.concat(this.createPopAnimations(this.getCellsForAction(Y.popIn,+!0),!0)));null!=Y.popOut&&(ca=ca.concat(this.createPopAnimations(this.getCellsForAction(Y.popOut,!0),!1)));null!=Y.toggle&&(T(Y.toggle)?this.toggleCellsTransient(this.getCellsForAction(Y.toggle,!0)):(K(),this.toggleCells(this.getCellsForAction(Y.toggle,!0,!0))));null!=Y.show&&(aa=this.getCellsForAction(Y.show,!0),Graph.setOpacityForNodes(this.getNodesForCells(aa),1),T(Y.show)||(K(),this.setCellsVisible(this.getCellsForAction(Y.show,!0,!0),!0)));null!=Y.hide&&(aa=this.getCellsForAction(Y.hide,!0),+Graph.setOpacityForNodes(this.getNodesForCells(aa),0),T(Y.hide)||(K(),this.setCellsVisible(this.getCellsForAction(Y.hide,!0,!0),!1)));if(null!=Y.toggleStyle&&null!=Y.toggleStyle.key){aa=this.getCellsForAction(Y.toggleStyle,!0);var ea=null!=Y.toggleStyle.defaultValue?Y.toggleStyle.defaultValue:"0";T(Y.toggleStyle)?this.toggleCellStylesTransient(Y.toggleStyle.key,ea,aa):(K(),this.toggleCellStyles(Y.toggleStyle.key,ea,aa))}null!=Y.style&&null!=Y.style.key&&(aa=this.getCellsForAction(Y.style,!0),T(Y.style)?+this.setCellStylesTransient(Y.style.key,Y.style.value,aa):(K(),this.setCellStyles(Y.style.key,Y.style.value,aa)));aa=[];null!=Y.select&&this.isEnabled()&&(aa=this.getCellsForAction(Y.select),this.setSelectionCells(aa));null!=Y.highlight&&(aa=this.getCellsForAction(Y.highlight),this.highlightCells(aa,Y.highlight.color,Y.highlight.duration,Y.highlight.opacity));null!=Y.scroll&&(aa=this.getCellsForAction(Y.scroll));if(null!=Y.viewbox){ea=Y.viewbox;if(null!=ea.cells||null!=ea.tags||null!=ea.layers){var na=+this.getBoundingBox(this.getCellsForAction(ea));if(null!=na){var ta=this.useCssTransforms?1:this.view.scale,ua=this.useCssTransforms?new mxPoint(0,0):this.view.translate,ma=null==ea.border||""===ea.border||isNaN(parseFloat(ea.border))?null:2*parseFloat(ea.border);ea={x:na.x/ta-ua.x,y:na.y/ta-ua.y,width:Math.max(1,na.width/ta),height:Math.max(1,na.height/ta),border:ma,smooth:ea.smooth}}else ea=null}null!=ea&&(!0!==ea.smooth||R?this.useCssTransforms?this.fitBoundsCssTransform(ea,ea.border):this.fitWindow(ea,+ea.border):(F++,this.smoothFitWindow(ea,ea.border,Z)))}0<aa.length&&(ea=null==Y.scroll||null==Y.scroll.border||""===Y.scroll.border||isNaN(parseFloat(Y.scroll.border))?null:parseFloat(Y.scroll.border),null==Y.scroll||!0!==Y.scroll.smooth||R?this.useCssTransforms?this.scrollCellToVisibleCssTransform(aa[0],ea):this.scrollCellToVisibleBorder(aa[0],ea):(F++,this.smoothScrollCellToVisible(aa[0],ea,Z)));null!=x&&null!=Y.explore&&Graph.exploreFromCell(this,x,Y.explore);if(null!=Y.tags){if(null!=Y.tags.toggle)for(ea=+Y.tags.toggle,0==ea.length&&(ea=this.getAllTags()),aa=0;aa<ea.length;aa++)this.toggleHiddenTag(ea[aa]);ea=null;null!=Y.tags.hidden&&(null==ea&&(ea=[]),ea=ea.concat(Y.tags.hidden));if(null!=Y.tags.visible)for(null==ea&&(ea=[]),na=this.getAllTags(),aa=0;aa<na.length;aa++)0>mxUtils.indexOf(Y.tags.visible,na[aa])&&0>mxUtils.indexOf(ea,na[aa])&&ea.push(na[aa]);null!=ea&&this.setHiddenTags(ea);this.refresh()}if(0<ca.length){F++;aa=null!=Y.steps?Y.steps:30;ea=Y.delay;na=["wipeIn","wipeOut","popIn","popOut"];+ta=null;for(ua=0;ua<na.length;ua++)ma=Y[na[ua]],null!=ma&&null!=ma.delay&&(ta=null==ta?ma.delay:Math.max(ta,ma.delay));null!=ta&&(ea=ta/aa);this.executeAnimations(ca,Z,R?1:aa,R?0:ea)}}while(G<d.length&&!0===d[G].immediate&&!this.stoppingCustomActions);0==F?da():Q()}else this.stoppingCustomActions=this.executingCustomActions=!1,Q(),null!=m&&m()}),da=mxUtils.bind(this,function(){try{X()}catch(R){throw this.stoppingCustomActions=this.executingCustomActions=!1,Q(),R;}});da()}};Graph.prototype.doUpdateCustomLinksForCell=+function(d,m){var x=this.getLinkForCell(m);null!=x&&"data:action/json,"==x.substring(0,17)&&this.setLinkForCell(m,this.updateCustomLink(d,x));if(this.isHtmlLabel(m)){var C=document.createElement("div");C.innerHTML=Graph.sanitizeHtml(this.getLabel(m));for(var F=C.getElementsByTagName("a"),G=!1,K=0;K<F.length;K++)x=F[K].getAttribute("href"),null!=x&&"data:action/json,"==x.substring(0,17)&&(F[K].setAttribute("href",this.updateCustomLink(d,x)),G=!0);G&&this.labelChanged(m,C.innerHTML)}};Graph.prototype.updateCustomLink=+function(d,m){if("data:action/json,"==m.substring(0,17))try{var x=JSON.parse(m.substring(17));null!=x.actions&&(this.updateCustomLinkActions(d,x.actions),m="data:action/json,"+JSON.stringify(x))}catch(C){}return m};Graph.prototype.updateCustomLinkActions=function(d,m){for(var x=0;x<m.length;x++){var C=m[x],F;for(F in C)this.updateCustomLinkAction(d,C[F],"cells"),this.updateCustomLinkAction(d,C[F],"excludeCells"),this.updateCustomLinkAction(d,C[F],"layers")}};Graph.prototype.updateCustomLinkAction=+function(d,m,x){if(null!=m&&null!=m[x]){for(var C=[],F=0;F<m[x].length;F++)if("*"==m[x][F])C.push(m[x][F]);else{var G=d[m[x][F]];null!=G?""!=G&&C.push(G):C.push(m[x][F])}m[x]=C}};Graph.prototype.getCellsForAction=function(d,m,x){var C="or"===d.tagsMatch?"or":"and",F={},G=[],K=function(Q){for(var ba=0;ba<Q.length;ba++){var T=Q[ba].id;F[T]||(F[T]=!0,G.push(Q[ba]))}};K(this.getCellsById(d.cells));K(this.getCellsForTags(d.tags,null,m,!1,C));K(x?this.getLayerCells(d.layers):this.getCellsForLayers(d.layers));+if(null!=d.excludeCells&&0<d.excludeCells.length){m={};C=!1;for(x=0;x<d.excludeCells.length;x++){if("*"===d.excludeCells[x]){C=!0;break}m[d.excludeCells[x]]=!0}if(C)return[];d=[];for(x=0;x<G.length;x++)m[G[x].id]||d.push(G[x]);return d}return G};Graph.prototype.getCellsById=function(d){var m=[];if(null!=d)for(var x=0;x<d.length;x++)if("*"==d[x]){var C=this.model.getRoot();m=m.concat(this.model.filterDescendants(function(G){return G!=C},C))}else{var F=this.model.getCell(d[x]);null!=F&&m.push(F)}return m};+Graph.prototype.getCellsForLayers=function(d){var m=[];if(Array.isArray(d))for(var x=0;x<d.length;x++){var C=this.model.getCell(d[x]);null!=C&&(m=m.concat(this.model.filterDescendants(function(F){return F!=C},C)))}return m};Graph.prototype.getLayerCells=function(d){var m=[];if(Array.isArray(d))for(var x=0;x<d.length;x++){var C=this.model.getCell(d[x]);null!=C&&m.push(C)}return m};var S=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(d){return S.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(d))};+Graph.prototype.setHiddenTags=function(d){this.hiddenTags=d;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(d){var m=mxUtils.indexOf(this.hiddenTags,d);0>m?this.hiddenTags.push(d):0<=m&&this.hiddenTags.splice(m,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(d){if(null==d||0==d.length||0==this.hiddenTags.length)return!1;d=d.split(" ");if(d.length>this.hiddenTags.length)return!1;for(var m=0;m<d.length;m++)if(0>+mxUtils.indexOf(this.hiddenTags,d[m]))return!1;return!0};Graph.prototype.getCellsForTags=function(d,m,x,C,F){var G=[];F="or"===F;if(null!=d){m=null!=m?m:this.model.getDescendants(this.model.getRoot());for(var K=0,Q={},ba=0;ba<d.length;ba++)0<d[ba].length&&(Q[d[ba]]=!0,K++);for(ba=0;ba<m.length;ba++)if(x&&this.model.getParent(m[ba])==this.model.root||this.model.isVertex(m[ba])||this.model.isEdge(m[ba])){var T=this.getTagsForCell(m[ba]),Z=!1;if(0<T.length&&(T=T.split(" "),F||T.length>=d.length)){for(var X=+Z=0;X<T.length&&Z<K;X++)null!=Q[T[X]]&&Z++;Z=F?0<Z:Z==K}Z&&(1!=C||this.isCellVisible(m[ba]))&&G.push(m[ba])}}return G};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(d){for(var m=null,x=[],C=0;C<d.length;C++){var F=this.getTagsForCell(d[C]);x=[];if(0<F.length){F=F.split(" ");for(var G={},K=0;K<F.length;K++)if(null==m||null!=m[F[K]])G[F[K]]=!0,x.push(F[K]);m=G}else return[]}return x};+Graph.prototype.getTagsForCells=function(d){for(var m=[],x={},C=0;C<d.length;C++){var F=this.getTagsForCell(d[C]);if(0<F.length){F=F.split(" ");for(var G=0;G<F.length;G++)null==x[F[G]]&&(x[F[G]]=!0,m.push(F[G]))}}return m};Graph.prototype.getTagsForCell=function(d){return this.getAttributeForCell(d,"tags","")};Graph.prototype.addTagsForCells=function(d,m){if(0<d.length&&0<m.length){this.model.beginUpdate();try{for(var x=0;x<d.length;x++){for(var C=this.getTagsForCell(d[x]),F=C.split(" "),G=!1,K=0;K<+m.length;K++){var Q=mxUtils.trim(m[K]);""!=Q&&0>mxUtils.indexOf(F,Q)&&(C=0<C.length?C+" "+Q:Q,G=!0)}G&&this.setAttributeForCell(d[x],"tags",C)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(d,m){if(0<d.length&&0<m.length){this.model.beginUpdate();try{for(var x=0;x<d.length;x++){var C=this.getTagsForCell(d[x]);if(0<C.length){for(var F=C.split(" "),G=!1,K=0;K<m.length;K++){var Q=mxUtils.indexOf(F,m[K]);0<=Q&&(F.splice(Q,1),G=!0)}G&&this.setAttributeForCell(d[x],"tags",+F.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(d){this.model.beginUpdate();try{for(var m=0;m<d.length;m++)this.model.setVisible(d[m],!this.model.isVisible(d[m]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(d,m){this.model.beginUpdate();try{for(var x=0;x<d.length;x++)this.model.setVisible(d[x],m)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=function(d,m,x,C){for(var F=0;F<d.length;F++)this.highlightCell(d[F],m,+x,C)};Graph.prototype.highlightCell=function(d,m,x,C,F){m=null!=m?m:mxConstants.DEFAULT_VALID_COLOR;x=null!=x?x:1E3;d=this.view.getState(d);var G=null;null!=d&&(F=null!=F?F:4,F=Math.max(F+1,mxUtils.getValue(d.style,mxConstants.STYLE_STROKEWIDTH,1)+F),G=new mxCellHighlight(this,m,F,!1),null!=C&&(G.opacity=C),G.highlight(d),window.setTimeout(function(){null!=G.shape&&(mxUtils.setPrefixedStyle(G.shape.node.style,"transition","all 1200ms ease-in-out"),G.shape.node.style.opacity=0);window.setTimeout(function(){G.destroy()},+1200)},x));return G};Graph.prototype.addSvgShadow=function(d,m,x,C){C=null!=C?C:!0;var F=Math.ceil(this.svgShadowSize*this.svgShadowBlur);null!=x&&x||(m=null!=m?m:d.getElementsByTagName("g")[0],null!=m&&(this.updateShadowFilter(m,!0),!isNaN(parseInt(d.getAttribute("width")))&&C&&(d.setAttribute("width",parseInt(d.getAttribute("width"))+F),d.setAttribute("height",parseInt(d.getAttribute("height"))+F),m=d.getAttribute("viewBox"),null!=m&&0<m.length&&(m=m.split(" "),3<m.length&&(w=parseFloat(m[2])+F,+h=parseFloat(m[3])+F,d.setAttribute("viewBox",m[0]+" "+m[1]+" "+w+" "+h))))));return F};Graph.prototype.updateShadowFilter=function(d,m){mxClient.IS_SF||(m?(m=mxUtils.getLightDarkColor(this.svgShadowColor,this.svgShadowOpacity),d.style.filter="drop-shadow("+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowBlur)/100+"px "+m.cssText+")"):d.style.filter="")};Graph.prototype.setShadowVisible=function(d,m){m=null!=m?m:!0;this.shadowVisible=+d;this.updateShadowFilter(this.view.getDrawPane(),this.shadowVisible);m&&this.fireEvent(new mxEventObject("shadowVisibleChanged"));return Math.ceil(this.svgShadowSize*this.svgShadowBlur)};Graph.prototype.checkDefaultParent=function(){null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer())};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var d=this.model.getChildCount(this.model.root),m=0;do var x=this.model.getChildAt(this.model.root,+m);while(m++<d&&"1"==mxUtils.getValue(this.getCellStyle(x),"locked","0"));null!=x&&this.setDefaultParent(x)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.bpmn2=+[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.c4=[SHAPES_PATH+"/mxC4.js"];mxStencilRegistry.libraries.cisco19=[SHAPES_PATH+"/mxCisco19.js",STENCIL_PATH+"/cisco19.xml"];mxStencilRegistry.libraries.cisco_safe=[SHAPES_PATH+"/mxCiscoSafe.js",STENCIL_PATH+"/cisco_safe/architecture.xml",STENCIL_PATH+"/cisco_safe/business_icons.xml",STENCIL_PATH+"/cisco_safe/capability.xml",STENCIL_PATH+"/cisco_safe/design.xml",STENCIL_PATH+"/cisco_safe/iot_things_icons.xml",+STENCIL_PATH+"/cisco_safe/people_places_things_icons.xml",STENCIL_PATH+"/cisco_safe/security_icons.xml",STENCIL_PATH+"/cisco_safe/technology_icons.xml",STENCIL_PATH+"/cisco_safe/threat.xml"];mxStencilRegistry.libraries.dfd=[SHAPES_PATH+"/mxDFD.js"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.kubernetes=[SHAPES_PATH+"/mxKubernetes.js",STENCIL_PATH+"/kubernetes.xml",STENCIL_PATH+"/kubernetes2.xml"];mxStencilRegistry.libraries.flowchart=[SHAPES_PATH+"/mxFlowchart.js",+STENCIL_PATH+"/flowchart.xml"];mxStencilRegistry.libraries.ios=[SHAPES_PATH+"/mockup/mxMockupiOS.js"];mxStencilRegistry.libraries.rackGeneral=[SHAPES_PATH+"/rack/mxRack.js",STENCIL_PATH+"/rack/general.xml"];mxStencilRegistry.libraries.rackF5=[STENCIL_PATH+"/rack/f5.xml"];mxStencilRegistry.libraries.lean_mapping=[SHAPES_PATH+"/mxLeanMap.js",STENCIL_PATH+"/lean_mapping.xml"];mxStencilRegistry.libraries.basic=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/basic.xml"];mxStencilRegistry.libraries.ios7icons=+[STENCIL_PATH+"/ios7/icons.xml"];mxStencilRegistry.libraries.ios7ui=[SHAPES_PATH+"/ios7/mxIOS7Ui.js",STENCIL_PATH+"/ios7/misc.xml"];mxStencilRegistry.libraries.android=[SHAPES_PATH+"/mxAndroid.js",STENCIL_PATH+"/android/android.xml"];mxStencilRegistry.libraries["electrical/abstract"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/abstract.xml"];mxStencilRegistry.libraries["electrical/logic_gates"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/logic_gates.xml"];mxStencilRegistry.libraries["electrical/miscellaneous"]=+[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/miscellaneous.xml"];mxStencilRegistry.libraries["electrical/signal_sources"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/signal_sources.xml"];mxStencilRegistry.libraries["electrical/electro-mechanical"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/electro-mechanical.xml"];mxStencilRegistry.libraries["electrical/transmission"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/transmission.xml"];mxStencilRegistry.libraries.infographic=+[SHAPES_PATH+"/mxInfographic.js"];mxStencilRegistry.libraries["mockup/buttons"]=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];+mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",SHAPES_PATH++"/mxBasic.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+"/gmdl.xml"];mxStencilRegistry.libraries.gcp2=[SHAPES_PATH+"/mxGCP2.js",STENCIL_PATH+"/gcp2.xml"];mxStencilRegistry.libraries.ibm=[SHAPES_PATH+"/mxIBM.js",STENCIL_PATH+"/ibm.xml"];mxStencilRegistry.libraries.ibmcloud=[STENCIL_PATH+"/ibm_cloud.xml"];mxStencilRegistry.libraries.cabinets=[SHAPES_PATH+"/mxCabinets.js",STENCIL_PATH+"/cabinets.xml"];mxStencilRegistry.libraries.archimate=+[SHAPES_PATH+"/mxArchiMate.js"];mxStencilRegistry.libraries.archimate4=[SHAPES_PATH+"/mxArchiMate3.js",SHAPES_PATH+"/mxArchiMate4.js"];mxStencilRegistry.libraries.archimate3=[SHAPES_PATH+"/mxArchiMate3.js"];mxStencilRegistry.libraries.sysml=[SHAPES_PATH+"/mxSysML.js"];mxStencilRegistry.libraries.eip=[SHAPES_PATH+"/mxEip.js",STENCIL_PATH+"/eip.xml"];mxStencilRegistry.libraries.networks=[SHAPES_PATH+"/mxNetworks.js",STENCIL_PATH+"/networks.xml"];mxStencilRegistry.libraries.networks2=[SHAPES_PATH+"/mxNetworks2.js",+STENCIL_PATH+"/networks2.xml"];mxStencilRegistry.libraries.atlassian2=[SHAPES_PATH+"/mxAtlassian2.js",STENCIL_PATH+"/atlassian2.xml"];mxStencilRegistry.libraries.aws3d=[SHAPES_PATH+"/mxAWS3D.js",STENCIL_PATH+"/aws3d.xml"];mxStencilRegistry.libraries.aws4=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.aws4b=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.uml25=[SHAPES_PATH+"/mxUML25.js"];mxStencilRegistry.libraries.veeam=[STENCIL_PATH++"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam.xml"];mxStencilRegistry.libraries.veeam2=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam2.xml"];mxStencilRegistry.libraries.pid2inst=[SHAPES_PATH+"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=+[STENCIL_PATH+"/pid/flow_sensors.xml"];mxStencilRegistry.libraries.salesforce=[STENCIL_PATH+"/salesforce.xml"];mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=function(d){var m=null;null!=d&&0<d.length&&("ER"==d.substring(0,2)?m="mxgraph.er":"sysML"==d.substring(0,5)&&(m="mxgraph.sysml"));return m};var V=mxMarker.createMarker;mxMarker.createMarker=function(d,m,x,C,F,G,K,+Q,ba,T){if(null!=x&&null==mxMarker.markers[x]){var Z=this.getPackageForType(x);null!=Z&&mxStencilRegistry.getStencil(Z)}return V.apply(this,arguments)};var ja=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(d,m,x,C,F,G){"1"==mxUtils.getValue(m.style,"lineShape",null)&&d.setFillColor(mxUtils.getValue(m.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return ja.apply(this,arguments)};PrintDialog.prototype.create=function(d,m,x,C){function F(){aa.value=Math.max(1,Math.min(da,Math.max(parseInt(aa.value),parseInt(P.value))));P.value=Math.max(1,Math.min(da,Math.min(parseInt(aa.value),parseInt(P.value))))}function G(Ha){d.lastPrintPagesRadioChecked=ca.checked;d.lastPrintSelectionOnlyChecked=ea.checked;d.lastPrintCropRadioChecked=ta.checked;d.lastPrintFitRadioChecked=ua.checked;ca.checked&&P.value<aa.value?(d.lastPrintPagesFromInput=P.value,d.lastPrintPagesToInput=aa.value):(d.lastPrintPagesFromInput=null,d.lastPrintPagesToInput=null);la.value=Math.max(1,Math.min(1600,parseInt(la.value)))+"%";d.lastPrintZoom=la.value;d.lastPrintBorder=fa.value;d.lastPrintGrid=ka.checked;d.lastPrintShadow=ra.checked;d.lastPrintTransparent=Ba.checked;d.lastPrintInclude=qa.checked;d.lastPrintIcons=Ea.checked;d.lastPrintSheetsAcross=oa.value;d.lastPrintSheetsDown=za.value;var Oa={};Oa.border=parseInt(fa.value);Oa.scale=parseInt(la.value)/100;Oa.grid=ka.checked;Oa.shadows=ra.checked;Oa.transparent=Ba.checked;Oa.includeCopy=qa.checked;Oa.icons=Ea.checked&&EditorUi.isElectronApp;Oa.sheetsAcross=parseInt(oa.value);Oa.sheetsDown=parseInt(za.value);Oa.pagesFrom=parseInt(P.value);Oa.pagesTo=parseInt(aa.value);Oa.allPages=R.checked;Oa.selection=ea.checked;Oa.pageView=na.checked;Oa.crop=ta.checked;Oa.fit=ua.checked;return null!=x?x(!Ha,Oa):d.print(!Ha,Oa)}function K(Ha){try{d.hideDialog(),null!=x?G(Ha):d.spinner.spin(document.body,mxResources.get("updatingPreview"))&&window.setTimeout(function(){try{G(Ha),d.spinner.stop()}catch(Oa){d.handleError(Oa)}},0)}catch(Oa){d.handleError(Oa)}}var Q=d.editor.graph,ba=document.createElement("div");@@ -14018,7 +14105,7 @@ Q)}catch(ba){}m.graph.executeCustomActions(Graph.flattenAnimationActions(x.sliced.defer?window.setTimeout(F,0):F()}};Editor.AnimationPlayer.prototype.stop=function(){this.cancelled=!0;null!=this.graph&&(this.graph.stoppingCustomActions=!0);for(var d=[],m=this.collectReferencedCells(),x=0;x<m.length;x++)this.graph.getModel().isEdge(m[x])&&d.push(m[x]);0<d.length&&Editor.toggleFlowAnimation(this.graph,d,"stop")};Editor.toggleFlowAnimation=function(d,m,x){x=x||"toggle";for(var C=0;C<m.length;C++)if(d.getModel().isEdge(m[C])){var F=d.view.getState(m[C]);if(null!=F&&null!=F.shape){var G=null!=F.shape.getFlowAnimationPath?F.shape.getFlowAnimationPath():null;if(null!=G){var K="mxEdgeFlow"==G.getAttribute("class"),Q="start"==x||"toggle"==x&&!K;K="stop"==x||"toggle"==x&&K;F="1"==mxUtils.getValue(F.style,mxConstants.STYLE_DASHED,"0");K?(G.removeAttribute("class"),F||G.removeAttribute("stroke-dasharray")):Q&&(G.setAttribute("class","mxEdgeFlow"),F||G.setAttribute("stroke-dasharray","8"))}}}};Editor.playAnimationOnGraph=function(d,m){var x=d.getModel().getRoot(),C=null;null!=x.value&&"object"==typeof x.value&&(C=x.value.getAttribute("animation"));if(null==C||""==C)return null;try{var F=Editor.parseAnimationData(C)}catch(K){return null}if(!F.steps||0==F.steps.length||!1===F.enabled)return null;x={};if(null!=m)for(var G in m)x[G]=m[G];null==x.loop&&(x.loop=F.loop);null==x.defer&&(x.defer=!0);d=new Editor.AnimationPlayer(d,F);d.play(x);return d};Editor.installAnimationStyles=function(){if(!Editor.animationStylesInstalled){Editor.animationStylesInstalled=!0;try{var d=document.createElement("style");-d.type="text/css";d.appendChild(document.createTextNode(".mxEdgeFlow { animation: mxEdgeFlow 0.5s linear infinite; }@keyframes mxEdgeFlow { to { stroke-dashoffset: -16; } }"));document.getElementsByTagName("head")[0].appendChild(d)}catch(m){}}};Editor.installAnimationStyles()})();(function(){EditorUi.VERSION="31.4.2";EditorUi.CSV_ELK_LAYOUTS={verticalflow:{layout:"elkLayered",config:{"elk.direction":"DOWN","elk.layered.layering.strategy":"LONGEST_PATH","elk.layered.nodePlacement.bk.fixedAlignment":"BALANCED","elk.edgeRouting":"POLYLINE",edgeStyle:"elkCompat",includeEdgeLabels:!1,includeVertexLabels:!1,portSpread:!0,resizeNodes:!1}},horizontalflow:{layout:"elkLayered",config:{"elk.direction":"RIGHT","elk.layered.layering.strategy":"LONGEST_PATH","elk.layered.nodePlacement.bk.fixedAlignment":"BALANCED",+d.type="text/css";d.appendChild(document.createTextNode(".mxEdgeFlow { animation: mxEdgeFlow 0.5s linear infinite; }@keyframes mxEdgeFlow { to { stroke-dashoffset: -16; } }"));document.getElementsByTagName("head")[0].appendChild(d)}catch(m){}}};Editor.installAnimationStyles()})();(function(){EditorUi.VERSION="31.4.4";EditorUi.CSV_ELK_LAYOUTS={verticalflow:{layout:"elkLayered",config:{"elk.direction":"DOWN","elk.layered.layering.strategy":"LONGEST_PATH","elk.layered.nodePlacement.bk.fixedAlignment":"BALANCED","elk.edgeRouting":"POLYLINE",edgeStyle:"elkCompat",includeEdgeLabels:!1,includeVertexLabels:!1,portSpread:!0,resizeNodes:!1}},horizontalflow:{layout:"elkLayered",config:{"elk.direction":"RIGHT","elk.layered.layering.strategy":"LONGEST_PATH","elk.layered.nodePlacement.bk.fixedAlignment":"BALANCED","elk.edgeRouting":"POLYLINE",edgeStyle:"elkCompat",includeEdgeLabels:!1,includeVertexLabels:!1,portSpread:!0,resizeNodes:!1}},elkRadial:{layout:"elkRadial",config:{edgeStyle:"elkCompat"}},elkOrganic:{layout:"elkOrganic",config:{edgeStyle:"elkCompat"}},elkStress:{layout:"elkStress",config:{edgeStyle:"elkCompat"}}};EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)||/.*\.cdn\.prod\.atlassian-dev\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&"test.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.enabledTemplateSections=null;EditorUi.customTemplates=null;EditorUi.cacheUrl=window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;EditorUi.nativeFileSupport=!mxClient.IS_OP&&!EditorUi.isElectronApp&&@@ -14042,157 +14129,157 @@ EditorUi.prototype.insertTemplateEnabled=!0;EditorUi.prototype.closableScratchpafunction(c){this.shareCursorPosition=c;Editor.isSettingsEnabled()&&(mxSettings.settings.shareCursorPosition=c,mxSettings.save());this.fireEvent(new mxEventObject("shareCursorPositionChanged"))};EditorUi.prototype.isShareCursorPosition=function(){return this.shareCursorPosition};EditorUi.prototype.setShowRemoteCursors=function(c){this.showRemoteCursors=c;Editor.isSettingsEnabled()&&(mxSettings.settings.showRemoteCursors=c,mxSettings.save());this.fireEvent(new mxEventObject("showRemoteCursorsChanged"))};EditorUi.prototype.isShowRemoteCursors=function(){return this.showRemoteCursors};EditorUi.prototype.setMathEnabled=function(c){var f=this.editor.graph;f.mathEnabled=c;null!=f.view.backgroundImage&&(f.view.backgroundImage.destroy(),f.view.backgroundImage=null);this.editor.updateGraphComponents();f.refresh();f.defaultMathEnabled=c;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(c){return this.editor.graph.mathEnabled};EditorUi.prototype.setAdaptiveColors=function(c){this.editor.graph.setAdaptiveColors(c);this.editor.graph.view.clear();this.fireEvent(new mxEventObject("adaptiveColorsChanged"))};EditorUi.prototype.isStandaloneApp=function(){return mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||this.isOfflineApp()};EditorUi.prototype.isOfflineApp=function(){return"1"==urlParams.offline};EditorUi.prototype.isOffline=function(c){return this.isOfflineApp()||!navigator.onLine&&!EditorUi.isElectronApp||!c&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};-EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,f,k){var n=null==c||null==f;k=null!=k?k:24;var q=new Spinner({lines:12,length:k,width:Math.round(k/3),radius:Math.round(k/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),t=this.timeout,r=q.spin,z=null,D=null,H=mxUtils.bind(this,function(I){null!=I&&I()}),B=this;q.spin=function(I,N,-U,S){S=null!=S?S:t;var V=!1;if(!this.active){var ja=Date.now();null!=U&&(z=window.setTimeout(function(){q.stop();z=null;U({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:D})},S));n&&(f=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0)/2,c=document.body.clientWidth/2-2);I==document.body&&"1"==urlParams.embedInline&&(I=B.diagramContainer,c=I.scrollLeft+I.clientWidth/2,f=I.scrollTop+I.clientHeight/2);r.call(this,I);"1"==urlParams.embedInline&&null!=q.el&&-(q.el.style.marginTop=I.scrollTop+"px",q.el.style.marginLeft=I.scrollLeft+"px");this.active=!0;null!=N&&(V=document.createElement("div"),V.className="geSpinnerStatus",V.setAttribute("title",N),I==document.body?(V.style.left=Math.max(0,c)+"px",V.style.top=Math.max(0,f+66)+"px"):(V.style.left="50%",V.style.top="50%",V.style.marginTop="70px"),"..."!=N.substring(N.length-3,N.length)&&"!"!=N.charAt(N.length-1)&&(N+="..."),V.innerText=N,I.appendChild(V),q.status=V);this.pause=mxUtils.bind(this,function(){var v=-H;this.active&&(S=Math.max(0,S-(Date.now()-ja)),v=mxUtils.bind(this,function(d){this.spin(I,N,U,S);if(null!=d)try{d(),D=mxUtils.bind(this,function(){this.spin(I,N,U,S);try{d()}catch(m){null!=U&&U(m)}})}catch(m){null!=U&&U(m)}}));this.stop();return v});V=!0}return V};var W=q.stop;q.stop=function(){W.call(this);this.active&&(this.active=!1,null!=z&&(window.clearTimeout(z),z=null),null!=q.status&&null!=q.status.parentNode&&q.status.parentNode.removeChild(q.status),q.status=null)};q.pause=function(){return H};-return q};EditorUi.prototype.isCompatibleString=function(c){try{if(c=mxUtils.trim(c),"<"==c.charAt(0)){var f=mxUtils.parseXml(c),k=this.editor.extractGraphModel(f.documentElement,!0);return null!=k&&0==k.getElementsByTagName("parsererror").length}}catch(n){}return!1};EditorUi.isVisioFilename=function(c){return/(\.v(dx|sdx?))($|\?)/i.test(c)||/(\.vs(x|sx?))($|\?)/i.test(c)};EditorUi.prototype.isVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&-224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&4==c.charCodeAt(3)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&6==c.charCodeAt(3))};EditorUi.prototype.isRemoteVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||-60==c.charCodeAt(0)&&63==c.charCodeAt(1)&&120==c.charCodeAt(2)&&109==c.charCodeAt(3)&&108==c.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(c){var f=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var k=f.getFunction,n=this.editor.graph,q=this;f.getFunction=function(t){if(n.isSelectionEmpty()&&null!=q.pages&&0<q.pages.length){var r=q.getSelectedPageIndex();if(mxEvent.isShiftDown(t)){if(37==t.keyCode)return function(){0<-r&&q.movePage(r,r-1)};if(38==t.keyCode)return function(){0<r&&q.movePage(r,0)};if(39==t.keyCode)return function(){r<q.pages.length-1&&q.movePage(r,r+1)};if(40==t.keyCode)return function(){r<q.pages.length-1&&q.movePage(r,q.pages.length-1)}}else if(mxEvent.isControlDown(t)||mxClient.IS_MAC&&mxEvent.isMetaDown(t)){if(37==t.keyCode)return function(){0<r&&q.selectNextPage(!1)};if(38==t.keyCode)return function(){0<r&&q.selectPage(q.pages[0])};if(39==t.keyCode)return function(){r<q.pages.length-1&&q.selectNextPage(!0)};-if(40==t.keyCode)return function(){r<q.pages.length-1&&q.selectPage(q.pages[q.pages.length-1])}}}return!(65<=t.keyCode&&90>=t.keyCode)||n.isSelectionEmpty()||mxEvent.isAltDown(t)||mxEvent.isShiftDown(t)||mxEvent.isControlDown(t)||mxClient.IS_MAC&&mxEvent.isMetaDown(t)?k.apply(this,arguments):null}}return f};var l=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=function(c){var f=l.apply(this,arguments);if(null==f)try{var k=c.indexOf("<mxfile ");if(0<=k){var n=-c.lastIndexOf("</mxfile>");n>k&&(f=c.substring(k,n+15).replace(/>/g,">").replace(/</g,"<").replace(/\\"/g,'"').replace(/\n/g,""))}else{var q=mxUtils.parseXml(c),t=this.editor.extractGraphModel(q.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);f=null!=t?mxUtils.getXml(t):""}}catch(r){}return f};EditorUi.prototype.validateFileData=function(c){if(null!=c&&0<c.length){var f=c.indexOf('<meta charset="utf-8">');0<=f&&(c=c.slice(0,f)+'<meta charset="utf-8"/>'+-c.slice(f+23-1,c.length));c=Graph.zapGremlins(c)}return c};EditorUi.prototype.repairFileData=function(c){c=mxUtils.trim(c||"");if(0==c.length)return null;var f=c.replace(/<\/([A-Za-z_][\w.\-]*)(\s*)(?=<)/g,"</$1>$2"),k=f.lastIndexOf(">");f.lastIndexOf("<")>k&&(f=mxUtils.trim(f.substring(0,k+1)));if("</mxfile>"!=f.substring(f.length-9)){k=[];for(var n=/<(\/?)([A-Za-z_][\w.\-]*)[^>]*?(\/?)>/g,q;null!=(q=n.exec(f));)"/"==q[1]?0<k.length&&k[k.length-1]==q[2]&&k.pop():"/"!=q[3]&&k.push(q[2]);for(n=k.length--1;0<=n;n--)f+="</"+k[n]+">"}return f!=c?f:null};EditorUi.prototype.isFileDataLoadable=function(c){try{c=this.validateFileData(c);var f=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;if(null==f||null!=Editor.extractParserError(f))return!1;var k=this.editor.extractGraphModel(f,!0);return null!=(null!=k?k:f)}catch(n){return!1}};EditorUi.prototype.getRecoveryData=function(c,f,k,n){var q=null;try{var t=this.repairFileData(f);null!=t&&t!=f&&this.isFileDataLoadable(t)&&(q={type:"repair",label:mxResources.get("openRepairedCopy"),-description:mxResources.get("recoveryRepairedDesc"),data:t,lossy:!0})}catch(z){}var r=mxUtils.bind(this,function(z){var D=[];null!=z&&null!=z.data&&D.push(z);null!=q&&D.push(q);n(D)});null!=c&&"function"===typeof c.getRecoveryVersion?c.getRecoveryVersion(mxUtils.bind(this,function(z){r(z)}),mxUtils.bind(this,function(){r(null)})):r(null)};EditorUi.prototype.openRecoveredCopy=function(c,f){c=new LocalFile(this,c.data,mxResources.get("copyOf",[f||this.defaultFilename]),!0);this.fileLoaded(c)&&c.fileChanged()};-EditorUi.prototype.showRecoveryDialog=function(c,f){c=new RecoveryDialog(this,c,mxUtils.bind(this,function(k){this.hideDialog();this.openRecoveredCopy(k,f)}),mxUtils.bind(this,function(){this.hideDialog()}));this.showDialog(c.container,380,null,!0,!0)};EditorUi.prototype.formatRecoveryDate=function(c){c=new Date(c);return!isNaN(c.getTime())&&0<=c.getTime()?c.toLocaleString():null};EditorUi.prototype.replaceFileData=function(c,f){EditorUi.debug("EditorUi.replaceFileData",[this],"data",[c],"patches",-f);c=this.validateFileData(c);c=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var k=null!=c?this.editor.extractGraphModel(c,!0):null;null!=k&&(c=k);if(null!=c){k=this.editor.graph;k.model.beginUpdate();try{var n=null!=this.pages?this.pages.slice():null,q=c.getElementsByTagName("diagram");if(1<q.length||1==q.length&&q[0].hasAttribute("name")){this.fileNode=c;k.defaultExportLinkTarget=c.getAttribute("linkTarget");this.pages=null!=this.pages?this.pages:[];for(var t=q.length-1;0<=t;t--){var r=-this.updatePageRoot(new DiagramPage(q[t]));null==r.getName()&&r.setName(mxResources.get("pageWithNumber",[t+1]));k.model.execute(new ChangePage(this,r,0==t?r:null,0))}}else null==this.fileNode&&(this.fileNode=c.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(c.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),k.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0))),this.editor.setGraphXml(c),null!=this.currentPage&&-(this.currentPage.root=this.editor.graph.model.root,k.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=n)for(t=0;t<n.length;t++)k.model.execute(new ChangePage(this,n[t],null));var z=this.getCurrentFile();null!=z&&z.fileReplaced(f)}finally{k.model.endUpdate()}}};EditorUi.prototype.createFileData=function(c,f,k,n,q,t,r,z,D,H,B,W,I){f=null!=f?f:this.editor.graph;q=null!=q?q:!1;D=null!=D?D:!0;H=null!=H?H:this.defaultCompact;B=null!=B?B:!Editor.defaultCompressed;var N=-null;if(null==k||k.getMode()==App.MODE_DEVICE||k.getMode()==App.MODE_BROWSER)var U="_blank";else N=U=n;if(null==c)return"";var S=c;if("mxfile"!=S.nodeName.toLowerCase()){if(B){var V=c.ownerDocument.createElement("diagram");V.setAttribute("name",mxResources.get("pageWithNumber",[1]));V.setAttribute("id",Editor.guid());V.appendChild(c)}else{V=Graph.zapGremlins(mxUtils.getXml(c));S=Graph.compress(V);if(Graph.decompress(S)!=V)return V;V=c.ownerDocument.createElement("diagram");V.setAttribute("name",mxResources.get("pageWithNumber",-[1]));V.setAttribute("id",Editor.guid());mxUtils.setTextContent(V,S)}S=c.ownerDocument.createElement("mxfile");S.appendChild(V)}H?(S=S.cloneNode(!0),S.removeAttribute("modified"),S.removeAttribute("host"),S.removeAttribute("agent"),S.removeAttribute("etag"),S.removeAttribute("userAgent"),S.removeAttribute("version"),S.removeAttribute("editor"),S.removeAttribute("type")):(S.removeAttribute("userAgent"),S.removeAttribute("modified"),S.removeAttribute("version"),S.removeAttribute("editor"),S.removeAttribute("pages"),-S.removeAttribute("type"),S.removeAttribute("etag"),mxClient.IS_CHROMEAPP?S.setAttribute("host","Chrome"):EditorUi.isElectronApp?S.setAttribute("host","Electron"):S.setAttribute("host",window.location.hostname),1<S.getElementsByTagName("diagram").length&&null!=this.pages&&S.setAttribute("pages",this.pages.length));null!=W&&(S=S.cloneNode(!0),S.setAttribute("scale",W));null!=I&&(S=S.cloneNode(!0),S.setAttribute("border",I));c=B?mxUtils.getPrettyXml(S):mxUtils.getXml(S);if(!t&&!q&&(r||null!=k&&/(\.html)$/i.test(k.getTitle())))c=-this.getHtml2(mxUtils.getXml(S),f,null!=k?k.getTitle():null,U,N);else if(t||!q&&null!=k&&/(\.svg)$/i.test(k.getTitle()))null==k||k.getMode()!=App.MODE_DEVICE&&k.getMode()!=App.MODE_BROWSER||(n=null),k=this.getSvgFileProperties(S),c=this.getEmbeddedSvg(c,f,n,null,z,D,N,null,null,k.scale,k.border,null,Editor.svgFileTheme,null,k.embedFonts);return c};EditorUi.prototype.getXmlFileData=function(c,f,k,n){c=null!=c?c:!0;f=null!=f?f:!1;k=null!=k?k:!Editor.defaultCompressed;var q=this.editor.getGraphXml(c,-n);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(D){var H=D.getElementsByTagName("mxGraphModel"),B=0<H.length?H[0]:null;H=D;null==B&&k?(B=mxUtils.getNodeValue(D),0<B.length&&(B=Graph.decompress(B),null!=B&&0<B.length&&(H=D.cloneNode(!1),H.appendChild(mxUtils.parseXml(B).documentElement)))):null==B||k?H=D.cloneNode(!0):(H=D.cloneNode(!1),mxUtils.setTextContent(H,Graph.compressNode(B)));q.appendChild(H)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(q),-q=this.fileNode.cloneNode(!1),f)c(this.currentPage.node);else for(f=0;f<this.pages.length;f++){var t=this.pages[f],r=t.node;if(t!=this.currentPage)if(t.needsUpdate){var z=new mxCodec(mxUtils.createXmlDocument());z=z.encode(new mxGraphModel(t.root));this.editor.graph.saveViewState(t.viewState,z,null,n);EditorUi.removeChildNodes(r);r.appendChild(z);delete t.needsUpdate}else n&&(this.updatePageRoot(t),null!=t.viewState.backgroundImage&&null!=t.viewState.backgroundImage.originalSrc&&(z=new mxCodec(mxUtils.createXmlDocument()),-z=z.encode(new mxGraphModel(t.root)),this.editor.graph.saveViewState(t.viewState,z,null,n,t),r=r.cloneNode(!1),r.appendChild(z)));c(r)}return q};EditorUi.prototype.anonymizeString=function(c,f){for(var k=[],n=0;n<c.length;n++){var q=c.charAt(n);0<=EditorUi.ignoredAnonymizedChars.indexOf(q)?k.push(q):isNaN(parseInt(q))?q.toLowerCase()!=q?k.push(String.fromCharCode(65+Math.round(25*Math.random()))):q.toUpperCase()!=q?k.push(String.fromCharCode(97+Math.round(25*Math.random()))):/\s/.test(q)?k.push(" "):-k.push("?"):k.push(f?"0":Math.round(9*Math.random()))}return k.join("")};EditorUi.prototype.anonymizeXml=function(c){function f(r,z,D){if(r.hasAttribute(z)){var H=r.getAttribute(z);null!=H&&0<H.length&&(D&&0<=H.indexOf("<")?(t.innerHTML=Graph.sanitizeHtml(H),k(t),H=t.innerHTML):H=q.anonymizeString(H),r.setAttribute(z,H))}}function k(r){null!=r.nodeValue&&(r.nodeValue=q.anonymizeString(r.nodeValue));if(r.nodeType==mxConstants.NODETYPE_ELEMENT)for(r=r.firstChild;null!=r;)k(r),r=r.nextSibling}function n(r){if(r.nodeType==-mxConstants.NODETYPE_ELEMENT){if("mxCell"==r.nodeName)f(r,"value",!0);else if("object"==r.nodeName||"UserObject"==r.nodeName)for(var z=0;z<r.attributes.length;z++){var D=r.attributes[z];"id"!=D.name&&"style"!=D.name&&"placeholders"!=D.name&&"vertex"!=D.name&&"edge"!=D.name&&"parent"!=D.name&&"connectable"!=D.name&&"visible"!=D.name&&"collapsed"!=D.name&&"source"!=D.name&&"target"!=D.name&&(D.value=q.anonymizeString(D.value))}else"diagram"==r.nodeName&&f(r,"name",!1);for(r=r.firstChild;null!=r;)n(r),-r=r.nextSibling}}var q=this,t=document.createElement("div");c=mxUtils.parseXml(c);n(c.documentElement);return mxUtils.getPrettyXml(c.documentElement)};EditorUi.prototype.anonymizePatch=function(c){c=JSON.parse(JSON.stringify(c));if(null!=c[EditorUi.DIFF_INSERT])for(var f=0;f<c[EditorUi.DIFF_INSERT].length;f++)try{var k=mxUtils.parseXml(c[EditorUi.DIFF_INSERT][f].data).documentElement.cloneNode(!1);null!=k.getAttribute("name")&&k.setAttribute("name",this.anonymizeString(k.getAttribute("name")));c[EditorUi.DIFF_INSERT][f].data=-mxUtils.getXml(k)}catch(t){c[EditorUi.DIFF_INSERT][f].data=t.message}if(null!=c[EditorUi.DIFF_UPDATE]){for(var n in c[EditorUi.DIFF_UPDATE]){var q=c[EditorUi.DIFF_UPDATE][n];null!=q.name&&(q.name=this.anonymizeString(q.name));null!=q.cells&&(f=mxUtils.bind(this,function(t){var r=q.cells[t];if(null!=r){for(var z in r)null!=r[z].value&&(r[z].value="["+r[z].value.length+"]"),null!=r[z].xmlValue&&(r[z].xmlValue="["+r[z].xmlValue.length+"]"),null!=r[z].style&&(r[z].style="["+r[z].style.length+"]"),mxUtils.isEmptyObject(r[z])&&-delete r[z];mxUtils.isEmptyObject(r)&&delete q.cells[t]}}),f(EditorUi.DIFF_INSERT),f(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(q.cells)&&delete q.cells);mxUtils.isEmptyObject(q)&&delete c[EditorUi.DIFF_UPDATE][n]}mxUtils.isEmptyObject(c[EditorUi.DIFF_UPDATE])&&delete c[EditorUi.DIFF_UPDATE]}return c};EditorUi.prototype.anonymizeAttributes=function(c,f){if(null!=c.attributes)for(var k=0;k<c.attributes.length;k++)"as"!=c.attributes[k].name&&c.setAttribute(c.attributes[k].name,this.anonymizeString(c.attributes[k].value,-f));if(null!=c.childNodes)for(k=0;k<c.childNodes.length;k++)this.anonymizeAttributes(c.childNodes[k],f)};EditorUi.prototype.anonymizeNode=function(c,f){f=c.getElementsByTagName("mxCell");for(var k=0;k<f.length;k++)null!=f[k].getAttribute("value")&&f[k].setAttribute("value","["+f[k].getAttribute("value").length+"]"),null!=f[k].getAttribute("xmlValue")&&f[k].setAttribute("xmlValue","["+f[k].getAttribute("xmlValue").length+"]"),null!=f[k].getAttribute("style")&&f[k].setAttribute("style","["+f[k].getAttribute("style").length+-"]"),null!=f[k].parentNode&&"root"!=f[k].parentNode.nodeName&&null!=f[k].parentNode.parentNode&&(f[k].setAttribute("id",f[k].parentNode.getAttribute("id")),f[k].parentNode.parentNode.replaceChild(f[k],f[k].parentNode));return c};EditorUi.prototype.synchronizeCurrentFile=function(c){var f=this.getCurrentFile();null!=f&&(f.savingFile?this.handleError({message:mxResources.get("busy")}):!c&&f.invalidChecksum?f.handleFileError(null,!0):this.spinner.spin(document.body,mxResources.get("updatingDocument"))&&-(f.clearAutosave(),this.clearStatus(),c?f.reloadFile(mxUtils.bind(this,function(){this.spinner.stop();f.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){this.spinner.stop();f.handleFileError(k,!0)})):f.synchronizeFile(mxUtils.bind(this,function(){f.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){f.handleFileError(k,!0)}))))};EditorUi.prototype.getFileData=function(c,f,k,n,q,t,r,z,D,H,B,W,I){q=null!=q?q:!0;t=null!=t?t:!1;H=null!=H?H:!Editor.defaultCompressed;-var N=this.editor.graph;if((f||!c&&null!=D&&/(\.svg)$/i.test(D.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var U=N.getGlobalVariable;N=this.createTemporaryGraph(N.getStylesheet());N.setBackgroundImage=this.editor.graph.setBackgroundImage;N.background=this.editor.graph.background;var S=null!=this.pages?this.pages[0]:null;null==S||this.currentPage==S?N.setBackgroundImage(this.editor.graph.backgroundImage):null!=S.viewState&&null!=S.viewState&&N.setBackgroundImage(S.viewState.backgroundImage);-N.getGlobalVariable=function(V){return"page"==V&&null!=S?S.getName():"pagenumber"==V?1:U.apply(this,arguments)};document.body.appendChild(N.container);null!=S&&N.model.setRoot(S.root)}r=null!=r?r:this.getXmlFileData(q,t,H,B);D=null!=D?D:this.getCurrentFile();c=this.createFileData(r,N,D,window.location.href,c,f,k,n,q,z,H,W,I);N!=this.editor.graph&&N.container.parentNode.removeChild(N.container);return c};EditorUi.prototype.getHtml=function(c,f,k,n,q,t){t=null!=t?t:!0;var r=null,z=EditorUi.drawHost+-"/js/embed-static.min.js";if(null!=f){r=t?f.getGraphBounds():f.getBoundingBox(f.getSelectionCells());var D=f.view.scale;t=Math.floor(r.x/D-f.view.translate.x);D=Math.floor(r.y/D-f.view.translate.y);r=f.background;null==q&&(f=this.getBasenames().join(";"),0<f.length&&(z=EditorUi.drawHost+"/embed.js?s="+f));c.setAttribute("x0",t);c.setAttribute("y0",D)}null!=c&&(c.setAttribute("pan","1"),c.setAttribute("zoom","1"),c.setAttribute("resize","0"),c.setAttribute("fit","0"),c.setAttribute("border","20"),-c.setAttribute("links","1"),null!=n&&c.setAttribute("edit",n));null!=q&&(q=q.replace(/&/g,"&"));c=null!=c?Graph.zapGremlins(mxUtils.getXml(c)):"";n=Graph.compress(c);Graph.decompress(n)!=c&&(n=encodeURIComponent(c));return(null==q?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=q?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==q?null!=k?"<title>"+mxUtils.htmlEntities(k)+"</title>\n":"":"<title>draw.io</title>\n")+-(null!=q?'<meta http-equiv="refresh" content="0;URL=\''+q+"'\"/>\n":"")+"</head>\n<body"+(null==q&&null!=r&&r!=mxConstants.NONE?' style="background-color:'+r+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'+n+"</div>\n</div>\n"+(null==q?'<script type="text/javascript" src="'+z+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+q+'" target="_blank"><img border="0" src="'+-EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(c,f,k,n,q){f=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=q&&(q=q.replace(/&/g,"&"));c={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,resize:!0,xml:Graph.zapGremlins(c),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(c.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==q?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':-"")+"<!DOCTYPE html>\n<html"+(null!=q?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==q?null!=k?"<title>"+mxUtils.htmlEntities(k)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=q?'<meta http-equiv="refresh" content="0;URL=\''+q+"'\"/>\n":"")+'<meta charset="utf-8"/>\n</head>\n<body>\n<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(c))+'"></div>\n'+(null==q?'<script type="text/javascript" src="'+f+'">\x3c/script>':-'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+q+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.updateFileVars=function(){var c=null!=this.fileNode?this.fileNode.getAttribute("vars"):null;if(c!==this.fileVarsStr&&(this.fileVarsStr=c,this.fileVars=null,null!=c&&0<c.length))try{this.fileVars=JSON.parse(c)}catch(f){}};EditorUi.prototype.setFileData=function(c,f){c=this.validateFileData(c);-this.pages=this.fileNode=this.currentPage=null;f=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var k=Editor.extractParserError(f,mxResources.get("invalidOrMissingFile"));if(k)throw EditorUi.debug("EditorUi.setFileData ParserError",[this],"data",[c],"node",[f],"cause",[k]),Error(mxResources.get("notADiagramFile")+" ("+k+")");c=null!=f?this.editor.extractGraphModel(f,!0):null;null!=c&&(f=c);if(null!=f&&"mxfile"==f.nodeName&&(c=f.getElementsByTagName("diagram"),k={},0<c.length)){var n=-this.getHashObject(),q=null;this.fileNode=f;this.editor.graph.defaultExportLinkTarget=f.getAttribute("linkTarget");this.pages=[];for(var t=0;t<c.length;t++){null==c[t].getAttribute("id")&&c[t].setAttribute("id",t);f=new DiagramPage(c[t]);null==f.getName()&&f.setName(mxResources.get("pageWithNumber",[t+1]));this.pages.push(f);if(null==n.pageId&&null!=urlParams["page-id"]&&f.getId()==urlParams["page-id"]||null!=n.pageId&&f.getId()==n.pageId)q=f;if(null==k[f.getId()])k[f.getId()]=f;else throw Error(f.getId()+-": Duplicate page ID");}this.currentPage=null!=q?q:this.pages[Math.max(0,Math.min(this.pages.length-1,urlParams.page||0))];f=this.currentPage.node}null==this.fileNode&&null!=f&&(this.fileNode=f.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(f.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(f);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,-this.currentPage.setDiagramModified(!1),this.scrollToPage());if(null!=urlParams["layer-ids"])try{var r=decodeURIComponent(urlParams["layer-ids"]).split(" "),z=Object.create(null);for(t=0;t<r.length;t++)z[r[t]]=!0;var D=this.editor.graph.getModel(),H=D.getChildren(D.root);for(t=0;t<H.length;t++){var B=H[t];D.setVisible(B,z[B.id]||!1)}}catch(W){}};EditorUi.prototype.fileStats=function(c,f){try{if(null!=c&&5E5<c.getSize()&&""!==c.getHash()&&"draw.io"==this.getServiceName()){var k=f.getElementsByTagName("diagram");-f={};f.modified=c.getLastModifiedDate();f.fileMode=c.getMode();f.fileSize=c.getSize();f.fileHash=c.getHash();f.pages=k.length;f.redundantStencils=0;f.redundantImages=0;f.redundantSize=0;f.stencils=0;f.images=0;for(var n=f.cells=0;n<k.length;n++){var q=k[n].getElementsByTagName("mxCell");f.cells+=q.length;for(var t={},r=0;r<q.length;r++){var z=q[r].getAttribute("style");if(null!=z)for(var D=z.split(";"),H=0;H<D.length;H++){var B=D[H];if(B.startsWith("image=data:")||B.startsWith("shape=stencil("))null==-t[B]?t[B]=1:t[B]++}}for(var W in t){var I=t[W];W.startsWith("shape=stencil(")?f.stencils+=I:f.images+=I;1<I&&(f.redundantSize+=W.length*(I-1),W.startsWith("shape=stencil(")?f.redundantStencils+=I-1:f.redundantImages+=I-1)}}EditorUi.logEvent({category:c.getMode().toUpperCase()+"-FILE-STATS-"+c.getHash(),action:"size_"+c.getSize(),label:JSON.stringify(f)})}}catch(N){}};EditorUi.prototype.getBaseFilename=function(c){var f=this.getCurrentFile();f=null!=f&&null!=f.getTitle()?f.getTitle():this.defaultFilename;-if(/(\.xml)$/i.test(f)||/(\.html)$/i.test(f)||/(\.svg)$/i.test(f)||/(\.png)$/i.test(f))f=f.substring(0,f.lastIndexOf("."));/(\.drawio)$/i.test(f)&&(f=f.substring(0,f.lastIndexOf(".")));!c&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&0<this.currentPage.getName().length&&(f=f+"-"+this.currentPage.getName());return f};EditorUi.prototype.downloadFile=function(c,f,k,n,q,t,r,z,D,H,B,W,I,N,U,S,V,ja){try{n=null!=n?n:this.editor.graph.isSelectionEmpty();-var v=this.getBaseFilename(!q),d=v+("xml"==c||"pdf"==c&&B?".drawio":"")+"."+c;if("xml"==c){var m=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,n,q,null,null,null,f);this.saveData(d,c,m,"text/xml")}else if("html"==c)m=this.getHtml2(this.getFileData(!0),this.editor.graph,v),this.saveData(d,c,m,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))if("xmlpng"==c?d=v+".png":"jpeg"==c&&(d=v+".jpg"),"1"==urlParams.embed&&"json"==urlParams.proto&&-this.embedExportProtocol){var x=this.embedMessageSource||window.opener||window.parent;this.spinner.spin(document.body,mxResources.get("exporting"))&&this.createDownloadRequest(d,c,n,"1",r,q,z,D,H,B,W,void 0,void 0,!t,I,N,U,S,V,ja).send(mxUtils.bind(this,function(Q){this.spinner.stop();if(200<=Q.getStatus()&&299>=Q.getStatus()){var ba=this.createLoadMessage("export");ba.format=c;ba.filename=d;ba.data="data:application/pdf;base64,"+Q.getText();ba.xml=this.getFileData(!0);x.postMessage(JSON.stringify(ba),-"*")}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(){this.spinner.stop();this.handleError({message:mxResources.get("errorSavingFile")})}))}else this.saveRequest(d,c,mxUtils.bind(this,function(Q,ba){try{return this.createDownloadRequest(Q,c,n,ba,r,q,z,D,H,B,W,void 0,void 0,!t,I,N,U,S,V,ja)}catch(T){this.handleError(T)}}));else{var C=null,F=mxUtils.bind(this,function(Q){Q.length<=MAX_REQUEST_SIZE?this.saveData(d,"svg",Q,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},-mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(C)}))});if("svg"==c){var G=this.editor.graph.background;if(r||G==mxConstants.NONE)G=null;var K=this.editor.graph.getSvg(G,null,null,null,null,n);k&&this.editor.graph.addSvgShadow(K);this.editor.convertImages(K,mxUtils.bind(this,mxUtils.bind(this,function(Q){this.spinner.stop();F(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(Q))})))}else d=v+".svg",C=this.getFileData(!1,!0,null,mxUtils.bind(this,function(Q){this.spinner.stop();-F(Q)}),n)}}catch(Q){this.handleError(Q)}};EditorUi.prototype.createDownloadRequest=function(c,f,k,n,q,t,r,z,D,H,B,W,I,N,U,S,V,ja,v,d){c=this.downloadRequestBuilder(c,f,k,n,q,t,r,z,D,H,B,W,I,N,U,S,V,ja,v,d);f="";for(var m in c)k=c[m],null!=k&&(f+=m+"="+encodeURIComponent(k)+"&");return new mxXmlRequest(EXPORT_URL,f)};EditorUi.prototype.downloadRequestBuilder=function(c,f,k,n,q,t,r,z,D,H,B,W,I,N,U,S,V,ja,v,d){var m=this.editor.graph,x=m.getGraphBounds();k=this.getFileData(!0,null,null,null,k,0==t?!1:-"xmlpng"!=f,null,null,null,!Editor.defaultCompressed,"pdf"==f);var C=null,F=null,G=null;if(!EditorUi.isElectronApp&&(x.width*x.height>MAX_AREA||k.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};H=H?"1":"0";"pdf"==f&&(null!=B?(C=B.from,F=B.to):0==t&&(G="1"));"xmlpng"==f&&(H="1",f="png");if(("xmlpng"==f||"svg"==f)&&null!=this.pages&&null!=this.currentPage)for(t=0;t<this.pages.length;t++)if(this.pages[t]==this.currentPage){C=t;break}t=m.background;"png"!=f&&"pdf"!=f&&"svg"!=-f||!q?q||null!=t&&t!=mxConstants.NONE||(t="#ffffff"):t=mxConstants.NONE;q={globalVars:m.getExportVariables()};null!=B&&null!=B.from&&(q.globalVars.pagenumber=B.from+1);D&&(q.grid={size:m.gridSize,steps:m.view.gridSteps,color:Editor.isDarkMode()&&"pdf"==f?mxGraphView.prototype.defaultGridColor:m.view.gridColor});Graph.translateDiagram&&(q.diagramLanguage=Graph.diagramLanguage);D=this.getHiddenTagsMap();null!=D&&(q.hiddenTags=D);return{format:f,from:C,to:F,allPages:G,bg:null!=t?t:mxConstants.NONE,base64:n,-embedXml:H,xml:k,filename:null!=c?c:"",extras:JSON.stringify(q),scale:r,border:z,pageMargin:U,w:W&&isFinite(W)?W:null,h:I&&isFinite(I)?I:null,crop:null!=N&&N?"1":"0",fit:null!=S&&S?"1":"0",shadows:null!=v&&v?"1":"0",sheetsAcross:V,sheetsDown:ja,icons:null!=d&&d?"1":"0"}};EditorUi.prototype.getHiddenTagsMap=function(){var c=this.editor.graph,f={},k=!1;if(null!=this.pages)for(var n=0;n<this.pages.length;n++){var q=this.pages[n],t=q==this.currentPage?c.hiddenTags:null!=q.viewState?q.viewState.hiddenTags:-null;null!=t&&0<t.length&&(f[q.getId()]=t,k=!0)}else null!=c.hiddenTags&&0<c.hiddenTags.length&&(f[0]=c.hiddenTags,k=!0);return k?f:null};EditorUi.prototype.setMode=function(c,f){this.mode=c};EditorUi.prototype.getDiagramId=function(){var c=window.location.hash;null!=c&&0<c.length&&(c=c.substring(1));if(null!=c&&1<c.length){var f=c.indexOf("#");0<=f&&(c=c.substring(0,f))}return c};EditorUi.prototype.getHashObject=function(){var c=window.location.hash,f={};if(null!=c&&0<c.length){var k=c.lastIndexOf("#");-if(0<k){c=decodeURIComponent(c.substring(k+1));try{f=JSON.parse(c)}catch(n){}}}return f};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&null!=this.currentPage&&""!=this.currentFile.getHash()){var c=this.getHashObject();c.pageId=this.currentPage.getId();this.setHashObject(c)}else this.setHashObject(null)};EditorUi.prototype.setHashObject=function(c){if(Editor.enableHashObjects){var f=window.location.hash;if(null==f||""==f)f="#";var k=f.lastIndexOf("#");0<k&&(f=f.substring(0,-k));try{null==c||mxUtils.isEmptyObject(c)||(f=f+"#"+encodeURIComponent(JSON.stringify(c)))}catch(n){}0<k&&0<f.lastIndexOf("#")?window.location.hash=f:window.location.replace(f)}};EditorUi.prototype.loadDescriptor=function(c,f,k){var n=window.location.hash,q=mxUtils.bind(this,function(r){var z=null!=c.data?c.data:"";null!=r&&0<r.length&&(0<z.length&&(z+="\n"),z+=r);r=new LocalFile(this,"csv"!=c.format&&0<z.length?z:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,-!0);r.getHash=function(){return n};this.fileLoaded(r);"csv"==c.format&&this.importCsv(z,mxUtils.bind(this,function(I){this.editor.undoManager.clear();this.editor.setModified(!1);this.clearStatus()}));if(null!=c.update){var D=null!=c.interval?parseInt(c.interval):6E4,H=null,B=mxUtils.bind(this,function(){var I=this.currentPage;mxUtils.post(c.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(N){I===this.currentPage&&(200<=N.getStatus()&&300>=N.getStatus()?-(this.updateDiagram(N.getText()),W()):this.handleError({message:mxResources.get("error")+" "+N.getStatus()}))}),mxUtils.bind(this,function(N){this.handleError(N)}))}),W=mxUtils.bind(this,function(){window.clearTimeout(H);H=window.setTimeout(B,D)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){W();B()}));W();B()}null!=f&&f()});if(null!=c.url&&0<c.url.length){var t=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(t,mxUtils.bind(this,function(r){q(r)}),mxUtils.bind(this,function(r){null!=-k&&k(r)}))}else q("")};EditorUi.prototype.updateDiagram=function(c){function f(d){var m=new mxCellOverlay(d.image||q.warningImage,d.tooltip,d.align,d.valign,d.offset);m.addListener(mxEvent.CLICK,function(x,C){n.alert(d.tooltip)});return m}var k=null,n=this;if(null!=c&&0<c.length&&(k=mxUtils.parseXml(c),c=null!=k?k.documentElement:null,null!=c&&"updates"==c.nodeName)){var q=this.editor.graph,t=q.getModel();t.beginUpdate();var r=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var z=t.getCell(c.getAttribute("id"));-if(null!=z){try{var D=c.getAttribute("value");if(null!=D){var H=mxUtils.parseXml(D).documentElement;if(null!=H)if("1"==H.getAttribute("replace-value"))t.setValue(z,H);else for(var B=H.attributes,W=0;W<B.length;W++)q.setAttributeForCell(z,B[W].nodeName,0<B[W].nodeValue.length?B[W].nodeValue:null)}}catch(d){null!=window.console&&console.log("Error in value for "+z.id+": "+d)}try{var I=c.getAttribute("style");null!=I&&q.model.setStyle(z,I)}catch(d){null!=window.console&&console.log("Error in style for "+-z.id+": "+d)}try{var N=c.getAttribute("icon");if(null!=N){var U=0<N.length?JSON.parse(N):null;null!=U&&U.append||q.removeCellOverlays(z);null!=U&&q.addCellOverlay(z,f(U))}}catch(d){null!=window.console&&console.log("Error in icon for "+z.id+": "+d)}try{var S=c.getAttribute("geometry");if(null!=S){S=JSON.parse(S);var V=q.getCellGeometry(z);if(null!=V){V=V.clone();for(key in S){var ja=parseFloat(S[key]);"dx"==key?V.x+=ja:"dy"==key?V.y+=ja:"dw"==key?V.width+=ja:"dh"==key?V.height+=ja:V[key]=parseFloat(S[key])}q.model.setGeometry(z,-V)}}}catch(d){null!=window.console&&console.log("Error in icon for "+z.id+": "+d)}}}else if("model"==c.nodeName){for(var v=c.firstChild;null!=v&&v.nodeType!=mxConstants.NODETYPE_ELEMENT;)v=v.nextSibling;null!=v&&(new mxCodec(c.firstChild)).decode(v,t)}else if("view"==c.nodeName){if(c.hasAttribute("scale")&&(q.view.scale=parseFloat(c.getAttribute("scale"))),c.hasAttribute("dx")||c.hasAttribute("dy"))q.view.translate=new mxPoint(parseFloat(c.getAttribute("dx")||0),parseFloat(c.getAttribute("dy")||0))}else"fit"==-c.nodeName&&(r=c.hasAttribute("max-scale")?parseFloat(c.getAttribute("max-scale")):1);c=c.nextSibling}}finally{t.endUpdate()}null!=r&&this.chromelessResize&&this.chromelessResize(!0,r)}return k};EditorUi.prototype.getCopyFilename=function(c,f){var k=null!=c&&null!=c.getTitle()?c.getTitle():this.defaultFilename;c="";var n=k.lastIndexOf(".");0<=n&&(c=k.substring(n),k=k.substring(0,n));if(f){f=k;var q=new Date;k=q.getFullYear();n=q.getMonth()+1;var t=q.getDate(),r=q.getHours(),z=q.getMinutes();q=q.getSeconds();-k=f+(" "+(k+"-"+n+"-"+t+"-"+r+"-"+z+"-"+q))}return k=mxResources.get("copyOf",[k])+c};EditorUi.prototype.logIfModified=function(c,f){try{null!=c&&f&&EditorUi.debug("File.closed",[c])}catch(k){}};EditorUi.prototype.fileLoaded=function(c,f,k){EditorUi.debug("EditorUi.fileLoaded",[this],"file",[c],"noDialogs",[f]);var n=this.getCurrentFile();this.fileEditable=this.fileLoadedError=null;this.setCurrentFile(null);var q=!1;this.hideDialog();null!=n&&(n.removeListener(this.descriptorChangedListener),this.logIfModified(n,-!0),n.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var t=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);null!=n&&this.updateDocumentTitle();this.editor.graph.model.clear();this.editor.undoManager.clear();this.setBackgroundImage(null);!f&&null!=window.location.hash&&0<window.location.hash.length&&(window.location.hash="");null!=this.fname&&(this.fname.innerText="");this.clearStatus();this.updateUi();if(!f)if("0"!=urlParams.splash)this.showSplash();-else try{this.createFile(this.defaultFilename,this.getFileData(),null,null,null,null,null,!0)}catch(W){this.handleError(W)}});if(null!=c)try{this.openingFile=!0;this.setCurrentFile(c);c.addListener("descriptorChanged",this.descriptorChangedListener);c.addListener("contentChanged",this.descriptorChangedListener);c.open();delete this.openingFile;this.setGraphEnabled(!0);this.setMode(c.getMode());this.editor.graph.model.prefix=Editor.guid()+"-";this.editor.undoManager.clear();this.descriptorChanged();-this.updateUi();c.isEditable()?c.isModified()?c.addUnsavedStatus():this.clearStatus():this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus('<div class="geStatusBox" title="'+mxUtils.htmlEntities(mxResources.get("readOnly"))+'">'+mxUtils.htmlEntities(mxResources.get("readOnly"))+"</div>")}));!this.editor.isChromelessView()||this.editor.editable?(this.editor.graph.selectUnlockedLayer(),this.showLayersDialog(),null!=this.actions.layersWindow&&this.actions.layersWindow.refreshLayers(),-this.restoreLibraries(),window.self===window.top||this.noAutoFocus||window.focus()):this.editor.graph.isLightboxView()&&this.lightboxFit();this.chromelessResize&&this.chromelessResize();null!=k&&k();this.editor.fireEvent(new mxEventObject("fileLoaded"));q=!0;if(/(\.svg)$/i.test(c.getTitle())&&this.getSvgFileProperties(this.fileNode).embedFonts)try{this.editor.loadFonts(),this.editor.embedExtFonts(function(){})}catch(W){}if(!this.isOffline()&&null!=c.getMode()){var r="1"==urlParams.sketch?"sketch":-uiTheme;if(null==r)r="default";else if("sketch"==r||"min"==r)r+=Editor.isDarkMode()?"-dark":"-light";EditorUi.logEvent({category:c.getMode().toUpperCase()+"-OPEN-FILE-"+c.getHash(),action:"size_"+c.getSize(),label:"autosave_"+(this.editor.autosave?"on":"off")+"_theme_"+r})}EditorUi.debug("File.opened",[c]);"1"==urlParams.viewerOnlyMsg&&this.showAlert(mxResources.get("viewerOnlyMsg"));if(this.editor.editable&&this.mode==c.getMode()&&c.getMode()!=App.MODE_DEVICE&&null!=c.getMode())try{this.addRecent({id:c.getHash(),-title:c.getTitle(),mode:c.getMode()})}catch(W){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(W){}}catch(W){this.fileLoadedError=W;k=null;var z=this.defaultFilename;if(null!=c){try{k=c.getData(),z=c.getTitle()||this.defaultFilename}catch(I){}try{c.close()}catch(I){}}var D=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=n?this.fileLoaded(n)||-t():t()});if(f)D();else{W.dialogWidth=350;var H=mxUtils.bind(this,function(){this.handleError(W,mxResources.get("errorLoadingFile"),D,!0,null,null,!0)});if(null!=W.fallbackFileData)W.alternateAction={label:mxResources.get("makeCopy"),funct:mxUtils.bind(this,function(){this.hideDialog();var I=new LocalFile(this,W.fallbackFileData,this.defaultFilename,!0);this.fileLoaded(I)})},H();else{var B=this.spinner.spin(document.body,mxResources.get("loading"));this.getRecoveryData(c,k,W,mxUtils.bind(this,function(I){B&&-this.spinner.stop();if(null!=I&&1==I.length){var N=I[0];W.alternateAction={label:N.label,funct:mxUtils.bind(this,function(){this.hideDialog();N.lossy?this.confirm(mxResources.get("recoveryWarning"),mxUtils.bind(this,function(){this.openRecoveredCopy(N,z)})):this.openRecoveredCopy(N,z)})}}else null!=I&&1<I.length&&(W.alternateAction={label:mxResources.get("recover"),funct:mxUtils.bind(this,function(){this.hideDialog();this.showRecoveryDialog(I,z)})});H()}))}}}else t();return q};EditorUi.prototype.getHashValueForPages=-function(c,f){var k=0,n=new mxGraphModel,q=new mxCodec;null!=f&&(f.byteCount=0,f.attrCount=0,f.eltCount=0,f.nodeCount=0);for(var t=0;t<c.length;t++)if(null!=c[t]){this.updatePageRoot(c[t]);var r=c[t].node.ownerDocument.createElement("diagram");r.setAttribute("id",c[t].getId());n.root=c[t].root;var z=q.encode(n);this.editor.graph.saveViewState(c[t].viewState,z,!0);z.removeAttribute("pageWidth");z.removeAttribute("pageHeight");r.appendChild(z);null!=f&&(f.eltCount+=r.getElementsByTagName("*").length,-f.nodeCount+=r.getElementsByTagName("mxCell").length);k=(k<<5)-k+this.hashValue(r,function(D,H,B,W){return!W||"mxGeometry"!=D.nodeName&&"mxPoint"!=D.nodeName||"x"!=H&&"y"!=H&&"width"!=H&&"height"!=H?W&&"mxCell"==D.nodeName&&"previous"==H?null:B:Math.round(B)},f)<<0}return k};EditorUi.prototype.hashValue=function(c,f,k){var n=0;if(null!=c&&"object"===typeof c&&"number"===typeof c.nodeType&&"string"===typeof c.nodeName&&"function"===typeof c.getAttribute){null!=c.nodeName&&(n^=this.hashValue(c.nodeName,-f,k));if(null!=c.attributes){null!=k&&(k.attrCount+=c.attributes.length);for(var q=0;q<c.attributes.length;q++){var t=c.attributes[q].name,r=null!=f?f(c,t,c.attributes[q].value,!0):c.attributes[q].value;null!=r&&(n^=this.hashValue(t,f,k)+this.hashValue(r,f,k))}}if(null!=c.childNodes)for(q=0;q<c.childNodes.length;q++)n=(n<<5)-n+this.hashValue(c.childNodes[q],f,k)<<0}else if(null!=c&&"function"!==typeof c){c=String(c);f=0;null!=k&&(k.byteCount+=c.length);for(q=0;q<c.length;q++)f=(f<<5)-f+c.charCodeAt(q)<<-0;n^=f}return n};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(c,f,k,n,q,t,r){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(c){if(null==c||"<mxfile"==c.substring(0,7))c=this.emptyLibraryXml;-this.loadLibrary(new StorageLibrary(this,c,".scratchpad"))})):this.closeLibrary(this.scratchpad))};EditorUi.prototype.createLibraryDataFromImages=function(c){if(!Editor.defaultCompressed)for(var f=0;f<c.length;f++)null!=c[f].xml&&"<"!=c[f].xml.charAt(0)&&(c[f].xml=mxUtils.trim(Graph.decompress(c[f].xml)));f=mxUtils.createXmlDocument();var k=f.createElement("mxlibrary");mxUtils.setTextContent(k,JSON.stringify(c,null,2));f.appendChild(k);return mxUtils.getXml(f,"\n")};EditorUi.prototype.closeLibrary=-function(c){null!=c&&(this.removeLibrarySidebar(c.getHash()),c.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(c.getHash()),".scratchpad"==c.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=function(c){var f=this.sidebar.palettes[c];if(null!=f){for(var k=0;k<f.length;k++)this.sidebar.unobserveElements(f[k]),f[k].parentNode.removeChild(f[k]);delete this.sidebar.palettes[c]}};EditorUi.prototype.repositionLibrary=function(c,f){var k=this.sidebar.getEntryContainer();if(!this.sidebar.appendCustomLibraries||-null!=c||!f){null==c&&(f=this.sidebar.palettes["L.scratchpad"],null==f&&(f=this.sidebar.palettes.search),null!=f&&(c=f[f.length-1].nextSibling));c=null!=c?c:k.firstChild.nextSibling.nextSibling;f=k.lastChild;var n=f.previousSibling;k.insertBefore(f,c);k.insertBefore(n,f)}};EditorUi.prototype.loadLibrary=function(c,f){var k=mxUtils.parseXml(c.getData());if("mxlibrary"==k.documentElement.nodeName){var n=JSON.parse(mxUtils.getTextContent(k.documentElement));this.libraryLoaded(c,n,k.documentElement.getAttribute("title"),-f,k.documentElement.getAttribute("tags"))}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(c){return""};EditorUi.prototype.showSidebar=function(){null!=this.sidebarWindow?this.sidebarWindow.window.setVisible(!0):this.toggleShapesPanel(!0)};EditorUi.prototype.showSearchWindow=function(c,f){var k=c?"findReplace":"find",n=k+"Window";if(null==this[n]){var q="min"==Editor.currentTheme||"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme,-t=mxSettings.getWindowState(k),r=null!=t&&null!=t.w?t.w:c?q?330:300:240;this[n]=new FindWindow(this,null!=t&&null!=t.x?t.x:document.body.offsetWidth-(r+20),null!=t&&null!=t.y?t.y:100,r,null!=t&&null!=t.h?t.h:c?q?304:288:180,c);this[n].window.addListener("show",function(){this.fireEvent(new mxEventObject(k))});this[n].window.addListener("hide",function(){this.fireEvent(new mxEventObject(k))});this.installWindowPersistence(k,this[n]);null!=t&&null==f&&this.restoreWindowState(k,this[n]);this[n].window.setVisible(!0)}else null==-f&&this[n].window.setVisible(!this[n].window.isVisible());null!=f&&(this[n].doSearch(f),this[n].window.setVisible(!0))};EditorUi.prototype.libraryLoaded=function(c,f,k,n,q){if(null!=this.sidebar){c.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(c.getHash());var t=null;if(c.constructor!=StorageLibrary||".scratchpad"!=c.title){null==this.openLibraries&&(this.openLibraries=[]);for(var r=0;r<this.openLibraries.length;r++)if(this.openLibraries[r].file.getHash()==c.getHash()){mxUtils.remove(this.openLibraries[r],-this.openLibraries);break}t={file:c,images:f,title:k,expand:n};this.openLibraries.push(t)}else this.scratchpad=c;r=this.sidebar.palettes[c.getHash()];r=null!=r?r[r.length-1].nextSibling:null;this.removeLibrarySidebar(c.getHash());var z=null,D=mxUtils.bind(this,function(v,d){0==v.length&&c.isEditable()?(null==z&&(z=document.createElement("div"),z.className="geDropTarget",v=mxResources.get("dragElementsHere"),mxUtils.write(z,v),z.setAttribute("title",v)),d.appendChild(z)):this.addLibraryEntries(v,d)});-null!=this.sidebar&&null!=f&&(this.sidebar.setCurrentSearchEntryLibrary(c.getHash(),c.getHash()),this.sidebar.addEntries(f,q),this.sidebar.setCurrentSearchEntryLibrary());null==k&&(k=c.getTitle(),null!=k&&/(\.xml)$/i.test(k)&&(k=k.substring(0,k.lastIndexOf("."))));var H=this.sidebar.addPalette(c.getHash(),k,null!=n?n:!0,mxUtils.bind(this,function(v){D(f,v)}),!0);null!=t&&(t.div=H);this.repositionLibrary(r,"L.scratchpad"!=c.getHash());n=H.parentNode.previousSibling;k=n.getAttribute("title");null!=-k&&0<k.length&&".scratchpad"!=c.title&&n.setAttribute("title",this.getLibraryStorageHint(c)+"\n"+k);var B=document.createElement("div");B.style.backgroundColor="inherit";n.style.position="relative";var W=document.createElement("img");W.className="geLibraryButton";W.setAttribute("src",Editor.crossImage);W.setAttribute("title",mxResources.get("close"));var I=null;if(".scratchpad"!=c.title||this.closableScratchpad)B.appendChild(W),mxEvent.addListener(W,"click",mxUtils.bind(this,function(v){if(!mxEvent.isConsumed(v)){var d=-mxUtils.bind(this,function(){null!=t&&mxUtils.remove(t,this.openLibraries);this.closeLibrary(c)});null!=I?this.confirm(mxResources.get("allChangesLost"),null,d,mxResources.get("cancel"),mxResources.get("discardChanges")):d();mxEvent.consume(v)}}));if(c.isEditable()){var N=this.editor.graph,U=null;k=mxUtils.bind(this,function(v){this.showLibraryDialog(c.getTitle(),H,f,c,c.getMode());mxEvent.consume(v)});var S=mxUtils.bind(this,function(v){c.setModified(!0);c.isAutosave()?(null!=U&&null!=U.parentNode&&-U.parentNode.removeChild(U),U=W.cloneNode(!1),U.setAttribute("src",Editor.spinImage),U.setAttribute("title",mxResources.get("saving")),U.style.cursor="default",U.style.marginRight="2px",U.style.marginTop="-2px",B.insertBefore(U,B.firstChild),this.saveLibrary(c.getTitle(),f,c,c.getMode(),!0,!0,function(){null!=U&&null!=U.parentNode&&U.parentNode.removeChild(U)})):null==I&&(I=W.cloneNode(!1),I.setAttribute("src",Editor.saveImage),I.setAttribute("title",mxResources.get("save")),B.insertBefore(I,B.firstChild),-mxEvent.addListener(I,"click",mxUtils.bind(this,function(d){this.saveLibrary(c.getTitle(),f,c,c.getMode(),c.constructor==LocalLibrary,!0,function(){null==I||c.isModified()||(I.parentNode.removeChild(I),I=null)});mxEvent.consume(d)})))}),V=mxUtils.bind(this,function(v,d,m,x){v=N.cloneCells(mxUtils.sortCells(N.model.getTopmostCells(v)));for(var C=0;C<v.length;C++){var F=N.getCellGeometry(v[C]);null!=F&&F.translate(-d.x,-d.y)}H.appendChild(this.sidebar.createVertexTemplateFromCells(v,d.width,d.height,-x||"",!0,null,!1));v=mxUtils.getXml(this.editor.graph.encodeCells(v));Editor.defaultCompressed&&(v=Graph.compress(v));d={xml:v,w:d.width,h:d.height};null!=x&&(d.title=x);f.push(d);S(m);null!=z&&null!=z.parentNode&&0<f.length&&(z.parentNode.removeChild(z),z=null)}),ja=mxUtils.bind(this,function(v){if(N.isSelectionEmpty())N.getRubberband().isActive()?(N.getRubberband().execute(v),N.getRubberband().reset()):null!=v&&null!=mxEvent.getSource(v)&&mxEvent.getSource(v).classList.contains("geLibraryButton")&&-this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var d=N.getSelectionCells(),m=N.view.getBounds(d);if(null!=m&&0<m.width&&0<m.height){var x=N.view.scale;m.x/=x;m.y/=x;m.width/=x;m.height/=x;m.x-=N.view.translate.x;m.y-=N.view.translate.y;V(d,m)}else this.showError(mxResources.get("error"),mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(v)});mxEvent.addGestureListeners(H,function(){},mxUtils.bind(this,function(v){N.isMouseDown&&-null!=N.panningManager&&null!=N.graphHandler.first&&(N.graphHandler.suspend(),null!=N.graphHandler.hint&&(N.graphHandler.hint.style.visibility="hidden"),H.style.backgroundColor="light-dark(#fefefe, #000000)",H.style.cursor="copy",N.panningManager.stop(),N.autoScroll=!1,mxEvent.consume(v))}),mxUtils.bind(this,function(v){N.isMouseDown&&null!=N.panningManager&&null!=N.graphHandler&&(H.style.backgroundColor="",H.style.cursor="default",this.sidebar.showTooltips=!0,N.panningManager.stop(),N.graphHandler.reset(),-N.isMouseDown=!1,N.autoScroll=!0,ja(v),mxEvent.consume(v))}));mxEvent.addListener(H,"mouseleave",mxUtils.bind(this,function(v){N.isMouseDown&&null!=N.graphHandler.first&&(N.graphHandler.resume(),null!=N.graphHandler.hint&&(N.graphHandler.hint.style.visibility="visible"),H.style.backgroundColor="",H.style.cursor="",N.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(H,"dragover",mxUtils.bind(this,function(v){H.style.backgroundColor="light-dark(#fefefe, #000000)";v.dataTransfer.dropEffect="copy";-H.style.cursor="copy";this.sidebar.hideTooltip();v.stopPropagation();v.preventDefault()})),mxEvent.addListener(H,"drop",mxUtils.bind(this,function(v){H.style.cursor="";H.style.backgroundColor="";0<v.dataTransfer.files.length&&this.importFiles(v.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(d,m,x,C,F,G,K,Q,ba){if(null!=d&&"image/"==m.substring(0,6))d="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(d),d=[new mxCell("",-new mxGeometry(0,0,F,G),d)],d[0].vertex=!0,V(d,new mxRectangle(0,0,F,G),v,mxEvent.isAltDown(v)?null:K.substring(0,K.lastIndexOf(".")).replace(/_/g," ")),null!=z&&null!=z.parentNode&&0<f.length&&(z.parentNode.removeChild(z),z=null);else{var T=!1,Z=mxUtils.bind(this,function(X,da){null!=X&&"application/pdf"==da&&(da=Editor.extractGraphModelFromPdf(X),null!=da&&0<da.length&&(X=da));if(null!=X)if(X=mxUtils.parseXml(X),"mxlibrary"==X.documentElement.nodeName)try{var R=JSON.parse(mxUtils.getTextContent(X.documentElement));-D(R,H);f=f.concat(R);S(v);this.spinner.stop();T=!0}catch(aa){}else if("mxfile"==X.documentElement.nodeName)try{var Y=X.documentElement.getElementsByTagName("diagram");for(R=0;R<Y.length;R++){var ca=this.stringToCells(Editor.getDiagramNodeXml(Y[R])),P=this.editor.graph.getBoundingBoxFromGeometry(ca);null!=P&&V(ca,new mxRectangle(0,0,P.width,P.height),v)}T=!0}catch(aa){null!=window.console&&console.log("error in drop handler:",aa)}T||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));-null!=z&&null!=z.parentNode&&0<f.length&&(z.parentNode.removeChild(z),z=null)});null!=ba&&null!=K&&EditorUi.isVisioFilename(K)?this.importVisio(ba,function(X){Z(X,"text/xml")},null,K):this.isGliffyData(d,K)&&null!=ba?this.importGliffy(d,mxUtils.bind(this,function(X){this.spinner.stop();Z(X,"text/xml")}),mxUtils.bind(this,function(X){this.spinner.stop();this.handleError({message:mxResources.get(null!=X&&413==X.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile"))}),-K):Z(d,m)}}));v.stopPropagation();v.preventDefault()})),mxEvent.addListener(H,"dragleave",function(v){H.style.cursor="";H.style.backgroundColor="";v.stopPropagation();v.preventDefault()}));W=W.cloneNode(!1);W.setAttribute("src",Editor.editImage);W.setAttribute("title",mxResources.get("edit"));B.insertBefore(W,B.firstChild);mxEvent.addListener(W,"click",k);k=W.cloneNode(!1);k.setAttribute("src",Editor.plusImage);k.setAttribute("title",mxResources.get("add"));B.insertBefore(k,B.firstChild);mxEvent.addListener(k,-"click",ja);".scratchpad"==c.title&&(this.addSelectionToScratchpad=ja);this.isOffline()||".scratchpad"!=c.title||null==EditorUi.scratchpadHelpLink||(k=this.createHelpIcon(EditorUi.scratchpadHelpLink,!0),k.className="geLibraryButton",B.insertBefore(k,B.firstChild))}n.appendChild(B);this.editor.fireEvent(new mxEventObject("libraryLoaded"))}};EditorUi.prototype.addLibraryEntries=function(c,f){for(var k=0;k<c.length;k++)try{var n=c[k],q=n.data;if(null!=q){q="data:"==q.substring(0,5)?this.convertDataUri(q):-q;var t="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==n.aspect&&(t+="aspect=fixed;");t=t+"image="+q+";";null!=n.style&&(t+=n.style);f.appendChild(this.sidebar.createVertexTemplate(t,n.w,n.h,"",n.title||"",!1,null,!0))}else if(null!=n.xml){var r=this.stringToCells("<"==n.xml.charAt(0)?n.xml:Graph.decompress(n.xml)),z=0==r.length?mxResources.get("drawingEmpty"):null!=n.title?n.title:"";f.appendChild(this.sidebar.createVertexTemplateFromCells(r,n.w,n.h,z,!0,null,-!0))}}catch(D){z=null!=D.message?mxResources.get("error")+": "+D.message:String(D),t=this.sidebar.createVertexTemplateFromCells(null,n.w,n.h,z,!0,null,!0),f.appendChild(t)}};EditorUi.prototype.getResource=function(c){return null!=c?c[mxLanguage]||c.main:null};"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"sketch"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=-".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(c,f,k,n,q,t,r){c=new ImageDialog(this,c,f,k,n,q,t,r);this.showDialog(c.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);c.init()};EditorUi.prototype.showLocalStorageDialog=function(c,f,k,n,q,t){var r=localStorage.getItem(f);c=new TextareaDialog(this,c,null!=r?JSON.stringify(JSON.parse(r),null,2):"",mxUtils.bind(this,function(z){if(null!=z)try{if(null!=t&&t(z),z==r)this.hideDialog();else{if(0<z.length){var D=-JSON.parse(z);localStorage.setItem(f,JSON.stringify(D))}else localStorage.removeItem(f);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(H){this.handleError(H)}}),null,mxResources.get("close"),null,null,null,!0,null,null,q,k,n);this.showDialog(c.container,660,480,!0,!1,null,null,null,new mxRectangle(0,0,null!=k&&2<k.length?500:440,280));c.init()};EditorUi.prototype.showConfigurationEditorDialog=function(c,f,k,n){function q(Q){U?H.confirm(mxResources.get("allChangesLost"),-null,Q,mxResources.get("cancel"),mxResources.get("discardChanges")):Q()}function t(){S=!0;H.hideDialog()}function r(Q,ba){var T=document.createElement("div");T.style.padding="4px 16px";T.style.cursor="pointer";T.style.fontSize="13px";T.style.borderBottom=ba?"2px solid #29b6f2":"2px solid transparent";T.style.fontWeight=ba?"bold":"normal";T.style.color=ba?"":"#888";T.style.userSelect="none";mxUtils.write(T,Q);return T}function z(Q,ba){Q.style.borderBottomColor=ba?"#29b6f2":"transparent";Q.style.fontWeight=-ba?"bold":"normal";Q.style.color=ba?"":"#888"}function D(Q){if(Q!==N){if("json"===N)try{var ba=JSON.parse(F.value);I=ba;x.setConfig(ba)}catch(T){}else"json"===Q&&null!=I&&(F.value=JSON.stringify(I,null,2));d.style.display="editor"===Q?"":"none";C.style.display="json"===Q?"":"none";z(ja,"editor"===Q);z(v,"json"===Q);"json"===Q&&F.focus();N=Q}}var H=this,B=localStorage.getItem(f),W={};try{null!=B&&(W=JSON.parse(B))}catch(Q){}var I=W,N="editor",U=!1,S=!1;c=document.createElement("div");c.style.position=-"absolute";c.style.top="20px";c.style.bottom="20px";c.style.left="20px";c.style.right="20px";var V=document.createElement("div");V.style.position="absolute";V.style.left="0";V.style.right="0";V.style.top="0";V.style.height="28px";V.style.display="flex";V.style.alignItems="end";V.style.borderBottom="1px solid #d0d0d0";var ja=r(mxResources.get("editor"),!0),v=r(mxResources.get("formatJson"),!1);V.appendChild(ja);V.appendChild(v);c.appendChild(V);var d=document.createElement("div");d.style.position=-"absolute";d.style.left="0";d.style.right="0";d.style.top="30px";d.style.bottom="50px";V={};try{var m=H.editor.graph;null!=m.currentVertexStyle&&(V.currentVertexStyle=m.currentVertexStyle);null!=m.currentEdgeStyle&&(V.currentEdgeStyle=m.currentEdgeStyle)}catch(Q){}var x=DrawioConfigEditor.install(d,{initialConfig:W,editorContext:V,darkMode:null!=Editor.isDarkMode&&Editor.isDarkMode(),highContrast:H.isHighContrast(),onConfigChanged:function(Q){I=Q;U=!0}}),C=document.createElement("div");C.style.position=-"absolute";C.style.left="0";C.style.right="0";C.style.top="30px";C.style.bottom="50px";C.style.display="none";var F=document.createElement("textarea");F.setAttribute("wrap","off");F.setAttribute("spellcheck","false");F.setAttribute("autocorrect","off");F.setAttribute("autocomplete","off");F.setAttribute("autocapitalize","off");F.style.resize="none";F.style.outline="none";F.style.boxSizing="border-box";F.style.width="100%";F.style.height="100%";try{F.value=null!=B?JSON.stringify(JSON.parse(B),null,-2):""}catch(Q){F.value=B||""}mxEvent.addListener(F,"input",function(){U=!0});C.appendChild(F);c.appendChild(d);c.appendChild(C);mxEvent.addListener(ja,"click",function(){D("editor")});mxEvent.addListener(v,"click",function(){D("json")});var G=document.createElement("div");G.style.position="absolute";G.style.left="0";G.style.right="0";G.style.bottom="0";G.style.height="46px";G.style.display="flex";G.style.whiteSpace="nowrap";G.style.alignItems="center";G.style.justifyContent="end";G.style.paddingTop=-"10px";G.style.paddingBottom="10px";G.style.boxSizing="border-box";null==n||H.isOffline()||G.appendChild(H.createHelpIcon(n));if(null!=k)for(n=0;n<k.length;n++)(function(Q,ba,T){Q=mxUtils.button(Q,function(Z){"json"!==N&&null!=I&&(F.value=JSON.stringify(I,null,2));ba(Z,F)});null!=T&&Q.setAttribute("title",T);Q.className="geBtn";G.appendChild(Q)})(k[n][0],k[n][1],k[n][2]);n=mxUtils.button(mxResources.get("close"),function(){q(t)});n.setAttribute("title","Escape");n.className="geBtn";var K=mxUtils.button(mxResources.get("apply"),-function(){if(U){if("json"!==N){var Q=x.getInvalidFields();if(0<Q.length){H.handleError({message:mxResources.get("invalidInput")+": "+Q.join(", ")});return}Q=null!=I&&0<Object.keys(I).length?JSON.stringify(I,null,2):""}else Q=F.value;try{if(Q==B)U=!1,t();else{if(0<Q.length){var ba=JSON.parse(Q);localStorage.setItem(f,JSON.stringify(ba))}else localStorage.removeItem(f);U=!1;t();H.alert(mxResources.get("restartForChangeRequired"))}}catch(T){H.handleError(T)}}else t()});K.className="geBtn gePrimaryBtn";-H.editor.cancelFirst?(G.appendChild(n),G.appendChild(K)):(G.appendChild(K),G.appendChild(n));c.appendChild(G);mxEvent.addListener(c,"keydown",function(Q){13===Q.keyCode&&mxEvent.isControlDown(Q)&&K.click()});H.showDialog(c,800,600,!0,!1,function(Q,ba){if(!S&&U)return q(t),!1},null,null,new mxRectangle(0,0,null!=k&&2<k.length?500:440,400));F.scrollTop=0};EditorUi.prototype.showLanguageDialog=function(){function c(){var D=mxLanguage;null==urlParams.lang&&isLocalStorage&&(D=mxSettings.settings.language);-for(var H=!1===navigator.onLine,B=Object.create(null),W=0;W<q.length;W++){var I=q[W];B[I.code]=I.box.checked;I.box.disabled="en"==I.code||I.code==D&&I.box.checked||H&&!I.box.checked;I.box.style.cursor=I.box.disabled?"":"pointer";I.row.style.cursor=I.box.disabled?"default":"pointer";H&&!I.box.checked?I.row.setAttribute("title",mxResources.get("notInOffline")):I.row.removeAttribute("title")}}var f=this,k=document.createElement("div");k.style.position="absolute";k.style.top="10px";k.style.bottom="10px";-k.style.left="16px";k.style.right="16px";var n=document.createElement("div");n.style.position="absolute";n.style.left="0";n.style.right="0";n.style.top="0";n.style.bottom="46px";n.style.overflow="auto";k.appendChild(n);var q=[];f.getOfflineLanguages(function(D){for(var H=Object.create(null),B=0;B<D.length;B++)H[D[B]]=!0;D=[];for(var W in mxLanguageMap)"i18n"!=W&&""!=mxLanguageMap[W]&&D.push({code:W,name:mxLanguageMap[W]});D.sort(function(N,U){return N.name.localeCompare(U.name)});B=document.createElement("div");-B.style.padding="8px 4px 0 4px";B.style.color="#888";mxUtils.write(B,mxResources.get("offlineLanguages",null,"Languages available offline"));n.appendChild(B);var I=document.createElement("div");I.style.display="grid";I.style.gridTemplateColumns="repeat(auto-fill, minmax(170px, 1fr))";I.style.gap="2px 16px";I.style.padding="8px 4px";I.style.cursor="pointer";for(B=0;B<D.length;B++)(function(N,U){var S=document.createElement("label");S.style.display="flex";S.style.alignItems="center";S.style.padding=-"4px";S.style.overflow="hidden";S.style.whiteSpace="nowrap";var V=document.createElement("span");V.style.display="inline-flex";V.style.alignItems="center";V.style.justifyContent="center";V.style.position="relative";V.style.width="16px";V.style.height="16px";V.style.margin="0 8px 0 0";V.style.flexShrink="0";var ja=document.createElement("input");ja.setAttribute("type","checkbox");ja.style.margin="0";ja.checked="en"==N||1==H[N];q.push({code:N,box:ja,row:S});mxEvent.addListener(ja,"change",function(){ja.style.display=-"none";var d=f.createSpinner(null,null,4);d.spin(V);var m=function(){f.getOfflineLanguages(function(x){d.stop();ja.style.display="";ja.checked=0<=mxUtils.indexOf(x,N);c()});f.updateOfflineLanguages()};ja.checked?fetch("resources/dia_"+N+".txt").then(m,m):f.removeOfflineLanguage(N,m)});V.appendChild(ja);S.appendChild(V);var v=document.createElement("span");v.style.overflow="hidden";v.style.textOverflow="ellipsis";v.style.lineHeight="normal";mxUtils.write(v,U);S.appendChild(v);I.appendChild(S)})(D[B].code,-D[B].name);n.appendChild(I);c()});var t=function(){c()};mxEvent.addListener(window,"online",t);mxEvent.addListener(window,"offline",t);var r=document.createElement("div");r.style.position="absolute";r.style.left="0";r.style.right="0";r.style.bottom="0";r.style.height="46px";r.style.display="flex";r.style.whiteSpace="nowrap";r.style.alignItems="center";r.style.justifyContent="end";r.style.paddingTop="10px";r.style.paddingBottom="10px";r.style.boxSizing="border-box";var z=mxUtils.button(mxResources.get("close"),-function(){f.hideDialog()});z.setAttribute("title","Escape");z.className="geBtn gePrimaryBtn";r.appendChild(z);k.appendChild(r);this.showDialog(k,480,460,!0,!0,function(){mxEvent.removeListener(window,"online",t);mxEvent.removeListener(window,"offline",t)})};EditorUi.prototype.showBackgroundImageDialog=function(c,f,k,n){c=null!=c?c:mxUtils.bind(this,function(q,t,r){t||(q=new ChangePageSetup(this,n?r:null,q),q.ignoreColor=!n,this.editor.graph.model.execute(q))});c=new BackgroundImageDialog(this,c,-f,k,n);this.showDialog(c.container,400,null,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,f,k,n,q){c=new LibraryDialog(this,c,f,k,n,q);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(t){t&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}),!1,!1,new mxRectangle(0,0,480,320));c.init()};EditorUi.prototype.getCollapsedSections=function(){return mxSettings.getCollapsedSections()};EditorUi.prototype.getLibraryExpanded=function(c,f){var k=mxSettings.getCollapsedLibraries();-return null!=k[c]?!k[c]:f};EditorUi.prototype.setLibraryExpanded=function(c,f){if(null!=c){var k=mxSettings.getCollapsedLibraries();k[c]=!f;mxSettings.setCollapsedLibraries(k);mxSettings.save()}};var p=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(c){var f=p.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(k){this.editor.graph.isSelectionEmpty()&&f.refresh()}));return f};EditorUi.prototype.handleError=function(c,f,k,n,q,t,-r){var z=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},D=null!=c&&null!=c.error?c.error:c;if(null!=c&&("1"==urlParams.test||null!=c.stack)&&null!=c.message)try{"1"!=urlParams.test&&!r||null==window.console||console.error("EditorUi.handleError:",c)}catch(I){}if(null!=D||null!=f){r=mxUtils.htmlEntities(mxResources.get("unknownError"),!1);var H=mxResources.get("ok"),B=null;f=null!=f?f:mxResources.get("error");if(null!=D){null!=D.retry&&(H=mxResources.get("cancel"),B=-function(){z();D.retry()});if(404==D.code||404==D.status||403==D.code){r=403==D.code?null!=D.message?mxUtils.htmlEntities(D.message,!1):mxUtils.htmlEntities(mxResources.get("accessDenied"),!1):null!=q?q:mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied")+(null!=this.drive&&null!=this.drive.user?" ("+this.drive.user.email+")":""),!1);var W=null!=q?null:null!=t?t:window.location.hash;if(null!=W&&("#G"==W.substring(0,2)||"#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D"==W.substring(0,45))&&(null!=-c&&null!=c.error&&(null!=c.error.errors&&0<c.error.errors.length&&"fileAccess"==c.error.errors[0].reason||null!=c.error.data&&0<c.error.data.length&&"fileAccess"==c.error.data[0].reason)||404==D.code||404==D.status)){W="#U"==W.substring(0,2)?W.substring(45,W.lastIndexOf("%26ex")):W.substring(2);this.showError(f,r,mxResources.get("tryOpeningViaThisPage"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+W);null!=n&&n()}),B,mxResources.get("changeUser"),mxUtils.bind(this,-function(){function I(){V.innerText="";for(var ja=0;ja<N.length;ja++){var v=document.createElement("option");mxUtils.write(v,N[ja].displayName);v.value=ja;V.appendChild(v);v=document.createElement("option");v.innerHTML=" ";mxUtils.write(v,"<"+N[ja].email+">");v.setAttribute("disabled","disabled");V.appendChild(v)}v=document.createElement("option");mxUtils.write(v,mxResources.get("addAccount"));v.value=N.length;V.appendChild(v)}var N=this.drive.getUsersList(),U=document.createElement("div"),-S=document.createElement("div");S.style.marginBottom="6px";mxUtils.write(S,mxResources.get("changeUser")+": ");U.appendChild(S);var V=document.createElement("select");V.style.width="100%";I();mxEvent.addListener(V,"change",mxUtils.bind(this,function(){var ja=V.value,v=N.length!=ja;v&&this.drive.setUser(N[ja]);this.drive.authorize(v,mxUtils.bind(this,function(){v||(N=this.drive.getUsersList(),I())}),mxUtils.bind(this,function(d){this.handleError(d)}),!0)}));U.appendChild(V);U=new CustomDialog(this,-U,mxUtils.bind(this,function(){this.loadFile(window.location.hash.substr(1),!0)}));this.showDialog(U.container,300,100,!0,!0)}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.hideDialog();null!=k&&k()}),520,150);return}}null!=D.message?r=""==D.message&&null!=D.name?mxUtils.htmlEntities(D.name,!1):mxUtils.htmlEntities(D.message,!1):null!=D.response&&null!=D.response.error?r=mxUtils.htmlEntities(D.response.error,!1):"undefined"!==typeof window.App&&(D.code==App.ERROR_TIMEOUT?r=mxUtils.htmlEntities(mxResources.get("timeout"),-!1):D.code==App.ERROR_BUSY?r=mxUtils.htmlEntities(mxResources.get("busy"),!1):"string"===typeof D&&0<D.length&&(r=mxUtils.htmlEntities(D,!1)))}q=c=null;null!=D&&null!=D.helpLink?(c=mxResources.get("help"),q=mxUtils.bind(this,function(){return this.editor.graph.openLink(D.helpLink)})):null!=D&&null!=D.ownerEmail?(c=mxResources.get("contactOwner"),r+=mxUtils.htmlEntities(" ("+c+": "+D.ownerEmail+")",!1),q=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(D.ownerEmail))})):-null!=D&&null!=D.alternateAction&&(c=D.alternateAction.label,q=D.alternateAction.funct);this.showError(f,r,H,k,B,null,null,c,q,null!=D?D.dialogWidth:null,null,null,n?k:null)}else null!=k&&k()};EditorUi.prototype.alert=function(c,f,k){c=new ErrorDialog(this,null,c,mxResources.get("ok"),f);this.showDialog(c.container,k||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,f,k,n,q,t){c=null!=c?c:"";var r=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},z=Math.min(220,-28*Math.ceil(Math.max(1,c.length)/50));c=new ConfirmDialog(this,c,function(){r();null!=f&&f()},function(){r();null!=k&&k()},n,q,null,null,null,null,z);this.showDialog(c.container,340,46+z,!0,t);c.init()};EditorUi.prototype.showBanner=function(c,f,k,n,q,t,r,z,D){t=!1;if(!(this.bannerShowing||this["hideBanner"+c]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+c])){r=null!=r?r:"translate(-50%,120%)";z=null!=z?z:"translate(-50%,0%)";var H=document.createElement("div");H.className=-"geBtn gePrimaryBtn geBanner"+(q?" geSmallBanner":"");H.style.zIndex=mxPopupMenu.prototype.zIndex;mxUtils.setPrefixedStyle(H.style,"transform",r);mxUtils.setPrefixedStyle(H.style,"transition","all 1000ms ease");null!=D&&mxUtils.setPrefixedStyle(H.style,"transform-origin",D);D=D=document.createElement("img");D.setAttribute("src",Editor.crossImage);D.setAttribute("title",mxResources.get(n?"doNotShowAgain":"close"));D.setAttribute("border","0");q||(t=document.createElement("img"),t.setAttribute("src",-IMAGE_PATH+"/logo.png"),t.setAttribute("border","0"),t.setAttribute("align","absmiddle"),t.style.cssText="margin-top:-4px;margin-left:8px;margin-right:12px;width:26px;height:26px;",H.appendChild(t),D.style.cssText=(q?"right:6px;top:9px;":"right:10px;top:12px;")+"position:absolute;filter:invert(1);padding:6px;margin:-6px;cursor:default;",H.appendChild(D));mxUtils.write(H,f);document.body.appendChild(H);this.bannerShowing=!0;q&&(D.className="geLibraryButton",H.appendChild(D));f=document.createElement("div");-f.style.cssText="display:flex;align-items:center;justify-content:center;padding-top:6px;font-size:11px;text-align:center;font-weight:normal;";var B=document.createElement("input");B.setAttribute("type","checkbox");B.setAttribute("id","geDoNotShowAgainCheckbox");B.style.marginRight="6px";if(!n){f.appendChild(B);var W=document.createElement("label");W.setAttribute("for","geDoNotShowAgainCheckbox");mxUtils.write(W,mxResources.get("doNotShowAgain"));f.appendChild(W);H.style.paddingBottom=q?"16px":"30px";-H.appendChild(f)}var I=mxUtils.bind(this,function(){null!=H.parentNode&&(H.parentNode.removeChild(H),this.bannerShowing=!1,B.checked||n)&&(this["hideBanner"+c]=!0,isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings["close"+c]=Date.now(),mxSettings.save()))});null!=D&&mxEvent.addListener(D,"click",mxUtils.bind(this,function(U){mxEvent.consume(U);I()}));var N=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(H.style,"transform",r);window.setTimeout(mxUtils.bind(this,function(){I()}),-1E3)});mxEvent.addListener(H,"click",mxUtils.bind(this,function(U){var S=mxEvent.getSource(U);S!=B&&S!=W?(null!=k&&k(),I(),mxEvent.consume(U)):N()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(H.style,"transform",z)}),500);window.setTimeout(N,q?5E3:3E4);t=!0}return t};EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.createImageDataUri=-function(c,f,k,n){c=c.toDataURL("image/"+k);if(null!=c&&6<c.length)null!=f&&(c=Editor.writeGraphModelToPng(c,"tEXt","mxfile",encodeURIComponent(f))),0<n&&(c=Editor.writeGraphModelToPng(c,"pHYs","dpi",n));else throw{message:mxResources.get("unknownError")};return c};EditorUi.prototype.saveCanvas=function(c,f,k,n,q){var t="jpeg"==k?"jpg":k;n=this.getBaseFilename(n)+(null!=f?".drawio":"")+"."+t;c=this.createImageDataUri(c,f,k,q);this.saveData(n,t,c.substring(c.lastIndexOf(",")+1),"image/"+k,!0)};EditorUi.prototype.showAnimatedGifExportDialog=-function(){var c=document.createElement("div");c.style.whiteSpace="nowrap";var f=document.createElement("h3");mxUtils.write(f,mxResources.get("formatAnimatedGif"));c.appendChild(f);f=document.createElement("div");f.className="geDialogSection";var k=document.createElement("div");k.className="geDialogFormRow";var n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("speed")+":");k.appendChild(n);var q=document.createElement("select"),t=[{label:mxResources.get("slow"),-value:8},{label:mxResources.get("medium"),value:15},{label:mxResources.get("fast"),value:24}];for(n=0;n<t.length;n++){var r=document.createElement("option");mxUtils.write(r,t[n].label);r.setAttribute("value",t[n].value);q.appendChild(r)}q.value=null!=this.lastExportFps?this.lastExportFps:15;0>q.selectedIndex&&(q.value=15);k.appendChild(q);f.appendChild(k);k=document.createElement("div");k.className="geDialogFormRow";n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,-mxResources.get("zoom")+":");k.appendChild(n);var z=document.createElement("input");z.setAttribute("type","text");z.value=this.lastExportZoom||"100%";k.appendChild(z);f.appendChild(k);k=document.createElement("div");k.className="geDialogFormRow";n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("borderWidth")+":");k.appendChild(n);var D=document.createElement("input");D.setAttribute("type","text");D.value=this.lastExportBorder||"0";k.appendChild(D);f.appendChild(k);-k=document.createElement("div");k.className="geDialogFormRow";n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("loops")+":");k.appendChild(n);var H=document.createElement("select");t=[{label:mxResources.get("forever"),value:0},{label:"1",value:1},{label:"3",value:3},{label:"5",value:5}];for(n=0;n<t.length;n++)r=document.createElement("option"),mxUtils.write(r,t[n].label),r.setAttribute("value",t[n].value),H.appendChild(r);H.value=null!=this.lastExportLoops?-this.lastExportLoops:0;0>H.selectedIndex&&(H.value=0);k.appendChild(H);f.appendChild(k);k=document.createElement("div");k.className="geDialogFormRow";n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("appearance")+":");k.appendChild(n);var B=document.createElement("select");n=document.createElement("option");n.setAttribute("value","light");mxUtils.write(n,mxResources.get("light"));B.appendChild(n);n=document.createElement("option");n.setAttribute("value",-"dark");mxUtils.write(n,mxResources.get("dark"));B.appendChild(n);var W=Editor.isDarkMode()?"dark":"light";B.value=null!=this.lastExportTheme?this.lastExportTheme:W;0>B.selectedIndex&&(B.value=W);k.appendChild(B);f.appendChild(k);c.appendChild(f);f=document.createElement("div");f.className="geDialogSection";var I=this.addCheckbox(f,mxResources.get("transparentBackground",null,"Transparent Background"),null!=this.lastExportTransparent?this.lastExportTransparent:!1,null,null,null,null,null,!0);c.appendChild(f);-c=new CustomDialog(this,c,mxUtils.bind(this,function(){var N=parseInt(z.value);if(isNaN(N)||0>=N)N=100;this.lastExportZoom=N+"%";this.lastExportBorder=D.value;this.lastExportFps=15!=parseInt(q.value)?parseInt(q.value):null;this.lastExportLoops=0!=parseInt(H.value)?parseInt(H.value):null;this.lastExportTransparent=I.checked?!0:null;this.lastExportTheme=B.value==W?null:B.value;this.exportAnimatedGif({fps:parseInt(q.value),scale:N/100,border:parseInt(D.value)||0,repeat:parseInt(H.value),transparent:I.checked,-theme:B.value,background:I.checked?null:null!=this.editor.graph.background&&this.editor.graph.background!=mxConstants.NONE?this.editor.graph.background:Editor.getDefaultPageBackgroundColor()})}),null,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram");this.showDialog(c.container,360,null,!0,!0,null,null,null,null,!0)};EditorUi.prototype.exportAnimatedGif=function(c){if(this.spinner.spin(document.body,mxResources.get("exporting")))try{(new AnimatedGifExport(this)).doExport(c,-mxUtils.bind(this,function(f){this.spinner.stop();if(null!=f){var k=new FileReader;k.onload=mxUtils.bind(this,function(){var n=k.result;this.saveData(this.getBaseFilename()+".gif","gif",n.substring(n.lastIndexOf(",")+1),"image/gif",!0)});k.onerror=mxUtils.bind(this,function(n){this.handleError(n)});k.readAsDataURL(f)}}),mxUtils.bind(this,function(f){this.spinner.stop();this.handleError(f)}))}catch(f){this.spinner.stop(),this.handleError(f)}};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=-urlParams.save&&"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(c,f){c=new TextareaDialog(this,c,f,null,null,mxResources.get("close"));this.showDialog(c.container,620,460,!0,!0,null,null,null,new mxRectangle(0,0,440,280),!0);c.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(c,f,k,n,q,t){"text/xml"!=k||/(\.drawio)$/i.test(f)||/(\.xml)$/i.test(f)||/(\.svg)$/i.test(f)||-/(\.html)$/i.test(f)||(f=f+"."+(null!=t?t:"drawio"));if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||null==k||"image/"!=k.substring(0,6)?this.showTextDialog(f+":",c):this.openInNewWindow(c,k,n);else{var r=document.createElement("a");t=(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&"undefined"!==typeof r.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var z=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);t=65==(z?parseInt(z[2],10):!1)?!1:t}if(t||this.isOffline()){r.href=-URL.createObjectURL(n?this.base64ToBlob(c,k):new Blob([c],{type:k}));t?r.download=f:r.setAttribute("target","_blank");document.body.appendChild(r);try{window.setTimeout(function(){URL.revokeObjectURL(r.href)},2E4),r.click(),r.parentNode.removeChild(r)}catch(D){}}else this.createEchoRequest(c,f,k,n,q).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(c,f,k,n,q,t){c="xml="+encodeURIComponent(c);return new mxXmlRequest(SAVE_URL,c+(null!=k?"&mime="+k:"")+(null!=q?"&format="+-q:"")+(null!=t?"&base64="+t:"")+(null!=f?"&filename="+encodeURIComponent(f):"")+(n?"&binary=1":""))};EditorUi.prototype.saveLocalFile=function(c,f,k,n,q,t,r,z,D){t=null!=t?t:!1;r=null!=r?r:"vsdx"!=q&&(!mxClient.IS_IOS||!navigator.standalone);var H=mxUtils.bind(this,function(W,I,N,U){try{if("_blank"==I)if(null!=k&&"image/"==k.substring(0,6))this.openInNewWindow(c,k,n);else if(null!=k&&"text/html"==k.substring(0,9)&&c.length<EmbedDialog.maxSize){var S=new EmbedDialog(this,c,null,null,null,null,null,-null,null,!0);this.showDialog(S.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));S.init()}else null==window.open(URL.createObjectURL(new Blob([c],{type:"text/plain;charset=utf-8"})))&&mxUtils.popup(c,!0);else if(I==App.MODE_DEVICE||"download"==I)this.doSaveLocalFile(c,W,k,n,null,z);else if(null!=W&&0<W.length){var V=mxUtils.bind(this,function(ja){try{this.exportFile(c,W,k,n,I,ja)}catch(v){this.handleError(v)}});null!=U?V(U):this.pickFolder(I,V)}}catch(ja){this.handleError(ja)}});+EditorUi.prototype.isRemoteExportEnabled=function(){return!this.isOffline()&&"string"===typeof EXPORT_URL&&/^(https?:\/\/|\/)/i.test(EXPORT_URL)};EditorUi.prototype.isPrintPdfExport=function(){return this.printPdfExport||!this.isRemoteExportEnabled()};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,f,k){var n=null==c||null==f;k=null!=k?k:24;var q=new Spinner({lines:12,length:k,width:Math.round(k/+3),radius:Math.round(k/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),t=this.timeout,r=q.spin,z=null,D=null,H=mxUtils.bind(this,function(I){null!=I&&I()}),B=this;q.spin=function(I,N,U,S){S=null!=S?S:t;var V=!1;if(!this.active){var ja=Date.now();null!=U&&(z=window.setTimeout(function(){q.stop();z=null;U({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:D})},S));n&&(f=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||+0)/2,c=document.body.clientWidth/2-2);I==document.body&&"1"==urlParams.embedInline&&(I=B.diagramContainer,c=I.scrollLeft+I.clientWidth/2,f=I.scrollTop+I.clientHeight/2);r.call(this,I);"1"==urlParams.embedInline&&null!=q.el&&(q.el.style.marginTop=I.scrollTop+"px",q.el.style.marginLeft=I.scrollLeft+"px");this.active=!0;null!=N&&(V=document.createElement("div"),V.className="geSpinnerStatus",V.setAttribute("title",N),I==document.body?(V.style.left=Math.max(0,c)+"px",V.style.top=Math.max(0,f+66)+"px"):+(V.style.left="50%",V.style.top="50%",V.style.marginTop="70px"),"..."!=N.substring(N.length-3,N.length)&&"!"!=N.charAt(N.length-1)&&(N+="..."),V.innerText=N,I.appendChild(V),q.status=V);this.pause=mxUtils.bind(this,function(){var v=H;this.active&&(S=Math.max(0,S-(Date.now()-ja)),v=mxUtils.bind(this,function(d){this.spin(I,N,U,S);if(null!=d)try{d(),D=mxUtils.bind(this,function(){this.spin(I,N,U,S);try{d()}catch(m){null!=U&&U(m)}})}catch(m){null!=U&&U(m)}}));this.stop();return v});V=!0}return V};var W=+q.stop;q.stop=function(){W.call(this);this.active&&(this.active=!1,null!=z&&(window.clearTimeout(z),z=null),null!=q.status&&null!=q.status.parentNode&&q.status.parentNode.removeChild(q.status),q.status=null)};q.pause=function(){return H};return q};EditorUi.prototype.isCompatibleString=function(c){try{if(c=mxUtils.trim(c),"<"==c.charAt(0)){var f=mxUtils.parseXml(c),k=this.editor.extractGraphModel(f.documentElement,!0);return null!=k&&0==k.getElementsByTagName("parsererror").length}}catch(n){}return!1};+EditorUi.isVisioFilename=function(c){return/(\.v(dx|sdx?))($|\?)/i.test(c)||/(\.vs(x|sx?))($|\?)/i.test(c)};EditorUi.prototype.isVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&4==c.charCodeAt(3)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&6==c.charCodeAt(3))};+EditorUi.prototype.isRemoteVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||60==c.charCodeAt(0)&&63==c.charCodeAt(1)&&120==c.charCodeAt(2)&&109==c.charCodeAt(3)&&108==c.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(c){var f=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var k=+f.getFunction,n=this.editor.graph,q=this;f.getFunction=function(t){if(n.isSelectionEmpty()&&null!=q.pages&&0<q.pages.length){var r=q.getSelectedPageIndex();if(mxEvent.isShiftDown(t)){if(37==t.keyCode)return function(){0<r&&q.movePage(r,r-1)};if(38==t.keyCode)return function(){0<r&&q.movePage(r,0)};if(39==t.keyCode)return function(){r<q.pages.length-1&&q.movePage(r,r+1)};if(40==t.keyCode)return function(){r<q.pages.length-1&&q.movePage(r,q.pages.length-1)}}else if(mxEvent.isControlDown(t)||mxClient.IS_MAC&&+mxEvent.isMetaDown(t)){if(37==t.keyCode)return function(){0<r&&q.selectNextPage(!1)};if(38==t.keyCode)return function(){0<r&&q.selectPage(q.pages[0])};if(39==t.keyCode)return function(){r<q.pages.length-1&&q.selectNextPage(!0)};if(40==t.keyCode)return function(){r<q.pages.length-1&&q.selectPage(q.pages[q.pages.length-1])}}}return!(65<=t.keyCode&&90>=t.keyCode)||n.isSelectionEmpty()||mxEvent.isAltDown(t)||mxEvent.isShiftDown(t)||mxEvent.isControlDown(t)||mxClient.IS_MAC&&mxEvent.isMetaDown(t)?k.apply(this,+arguments):null}}return f};var l=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=function(c){var f=l.apply(this,arguments);if(null==f)try{var k=c.indexOf("<mxfile ");if(0<=k){var n=c.lastIndexOf("</mxfile>");n>k&&(f=c.substring(k,n+15).replace(/>/g,">").replace(/</g,"<").replace(/\\"/g,'"').replace(/\n/g,""))}else{var q=mxUtils.parseXml(c),t=this.editor.extractGraphModel(q.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);+f=null!=t?mxUtils.getXml(t):""}}catch(r){}return f};EditorUi.prototype.validateFileData=function(c){if(null!=c&&0<c.length){var f=c.indexOf('<meta charset="utf-8">');0<=f&&(c=c.slice(0,f)+'<meta charset="utf-8"/>'+c.slice(f+23-1,c.length));c=Graph.zapGremlins(c)}return c};EditorUi.prototype.repairFileData=function(c){c=mxUtils.trim(c||"");if(0==c.length)return null;var f=c.replace(/<\/([A-Za-z_][\w.\-]*)(\s*)(?=<)/g,"</$1>$2"),k=f.lastIndexOf(">");f.lastIndexOf("<")>k&&(f=mxUtils.trim(f.substring(0,+k+1)));if("</mxfile>"!=f.substring(f.length-9)){k=[];for(var n=/<(\/?)([A-Za-z_][\w.\-]*)[^>]*?(\/?)>/g,q;null!=(q=n.exec(f));)"/"==q[1]?0<k.length&&k[k.length-1]==q[2]&&k.pop():"/"!=q[3]&&k.push(q[2]);for(n=k.length-1;0<=n;n--)f+="</"+k[n]+">"}return f!=c?f:null};EditorUi.prototype.isFileDataLoadable=function(c){try{c=this.validateFileData(c);var f=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;if(null==f||null!=Editor.extractParserError(f))return!1;var k=this.editor.extractGraphModel(f,+!0);return null!=(null!=k?k:f)}catch(n){return!1}};EditorUi.prototype.getRecoveryData=function(c,f,k,n){var q=null;try{var t=this.repairFileData(f);null!=t&&t!=f&&this.isFileDataLoadable(t)&&(q={type:"repair",label:mxResources.get("openRepairedCopy"),description:mxResources.get("recoveryRepairedDesc"),data:t,lossy:!0})}catch(z){}var r=mxUtils.bind(this,function(z){var D=[];null!=z&&null!=z.data&&D.push(z);null!=q&&D.push(q);n(D)});null!=c&&"function"===typeof c.getRecoveryVersion?c.getRecoveryVersion(mxUtils.bind(this,+function(z){r(z)}),mxUtils.bind(this,function(){r(null)})):r(null)};EditorUi.prototype.openRecoveredCopy=function(c,f){c=new LocalFile(this,c.data,mxResources.get("copyOf",[f||this.defaultFilename]),!0);this.fileLoaded(c)&&c.fileChanged()};EditorUi.prototype.showRecoveryDialog=function(c,f){c=new RecoveryDialog(this,c,mxUtils.bind(this,function(k){this.hideDialog();this.openRecoveredCopy(k,f)}),mxUtils.bind(this,function(){this.hideDialog()}));this.showDialog(c.container,380,null,!0,!0)};EditorUi.prototype.formatRecoveryDate=+function(c){c=new Date(c);return!isNaN(c.getTime())&&0<=c.getTime()?c.toLocaleString():null};EditorUi.prototype.replaceFileData=function(c,f){EditorUi.debug("EditorUi.replaceFileData",[this],"data",[c],"patches",f);c=this.validateFileData(c);c=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var k=null!=c?this.editor.extractGraphModel(c,!0):null;null!=k&&(c=k);if(null!=c){k=this.editor.graph;k.model.beginUpdate();try{var n=null!=this.pages?this.pages.slice():null,q=c.getElementsByTagName("diagram");+if(1<q.length||1==q.length&&q[0].hasAttribute("name")){this.fileNode=c;k.defaultExportLinkTarget=c.getAttribute("linkTarget");this.pages=null!=this.pages?this.pages:[];for(var t=q.length-1;0<=t;t--){var r=this.updatePageRoot(new DiagramPage(q[t]));null==r.getName()&&r.setName(mxResources.get("pageWithNumber",[t+1]));k.model.execute(new ChangePage(this,r,0==t?r:null,0))}}else null==this.fileNode&&(this.fileNode=c.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(c.ownerDocument.createElement("diagram")),+this.currentPage.setName(mxResources.get("pageWithNumber",[1])),k.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0))),this.editor.setGraphXml(c),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,k.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=n)for(t=0;t<n.length;t++)k.model.execute(new ChangePage(this,n[t],null));var z=this.getCurrentFile();null!=z&&z.fileReplaced(f)}finally{k.model.endUpdate()}}};EditorUi.prototype.createFileData=+function(c,f,k,n,q,t,r,z,D,H,B,W,I){f=null!=f?f:this.editor.graph;q=null!=q?q:!1;D=null!=D?D:!0;H=null!=H?H:this.defaultCompact;B=null!=B?B:!Editor.defaultCompressed;var N=null;if(null==k||k.getMode()==App.MODE_DEVICE||k.getMode()==App.MODE_BROWSER)var U="_blank";else N=U=n;if(null==c)return"";var S=c;if("mxfile"!=S.nodeName.toLowerCase()){if(B){var V=c.ownerDocument.createElement("diagram");V.setAttribute("name",mxResources.get("pageWithNumber",[1]));V.setAttribute("id",Editor.guid());V.appendChild(c)}else{V=+Graph.zapGremlins(mxUtils.getXml(c));S=Graph.compress(V);if(Graph.decompress(S)!=V)return V;V=c.ownerDocument.createElement("diagram");V.setAttribute("name",mxResources.get("pageWithNumber",[1]));V.setAttribute("id",Editor.guid());mxUtils.setTextContent(V,S)}S=c.ownerDocument.createElement("mxfile");S.appendChild(V)}H?(S=S.cloneNode(!0),S.removeAttribute("modified"),S.removeAttribute("host"),S.removeAttribute("agent"),S.removeAttribute("etag"),S.removeAttribute("userAgent"),S.removeAttribute("version"),+S.removeAttribute("editor"),S.removeAttribute("type")):(S.removeAttribute("userAgent"),S.removeAttribute("modified"),S.removeAttribute("version"),S.removeAttribute("editor"),S.removeAttribute("pages"),S.removeAttribute("type"),S.removeAttribute("etag"),mxClient.IS_CHROMEAPP?S.setAttribute("host","Chrome"):EditorUi.isElectronApp?S.setAttribute("host","Electron"):S.setAttribute("host",window.location.hostname),1<S.getElementsByTagName("diagram").length&&null!=this.pages&&S.setAttribute("pages",this.pages.length));+null!=W&&(S=S.cloneNode(!0),S.setAttribute("scale",W));null!=I&&(S=S.cloneNode(!0),S.setAttribute("border",I));c=B?mxUtils.getPrettyXml(S):mxUtils.getXml(S);if(!t&&!q&&(r||null!=k&&/(\.html)$/i.test(k.getTitle())))c=this.getHtml2(mxUtils.getXml(S),f,null!=k?k.getTitle():null,U,N);else if(t||!q&&null!=k&&/(\.svg)$/i.test(k.getTitle()))null==k||k.getMode()!=App.MODE_DEVICE&&k.getMode()!=App.MODE_BROWSER||(n=null),k=this.getSvgFileProperties(S),c=this.getEmbeddedSvg(c,f,n,null,z,D,N,null,null,k.scale,+k.border,null,Editor.svgFileTheme,null,k.embedFonts);return c};EditorUi.prototype.getXmlFileData=function(c,f,k,n){c=null!=c?c:!0;f=null!=f?f:!1;k=null!=k?k:!Editor.defaultCompressed;var q=this.editor.getGraphXml(c,n);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(D){var H=D.getElementsByTagName("mxGraphModel"),B=0<H.length?H[0]:null;H=D;null==B&&k?(B=mxUtils.getNodeValue(D),0<B.length&&(B=Graph.decompress(B),null!=B&&0<B.length&&(H=D.cloneNode(!1),H.appendChild(mxUtils.parseXml(B).documentElement)))):+null==B||k?H=D.cloneNode(!0):(H=D.cloneNode(!1),mxUtils.setTextContent(H,Graph.compressNode(B)));q.appendChild(H)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(q),q=this.fileNode.cloneNode(!1),f)c(this.currentPage.node);else for(f=0;f<this.pages.length;f++){var t=this.pages[f],r=t.node;if(t!=this.currentPage)if(t.needsUpdate){var z=new mxCodec(mxUtils.createXmlDocument());z=z.encode(new mxGraphModel(t.root));this.editor.graph.saveViewState(t.viewState,z,null,+n);EditorUi.removeChildNodes(r);r.appendChild(z);delete t.needsUpdate}else n&&(this.updatePageRoot(t),null!=t.viewState.backgroundImage&&null!=t.viewState.backgroundImage.originalSrc&&(z=new mxCodec(mxUtils.createXmlDocument()),z=z.encode(new mxGraphModel(t.root)),this.editor.graph.saveViewState(t.viewState,z,null,n,t),r=r.cloneNode(!1),r.appendChild(z)));c(r)}return q};EditorUi.prototype.anonymizeString=function(c,f){for(var k=[],n=0;n<c.length;n++){var q=c.charAt(n);0<=EditorUi.ignoredAnonymizedChars.indexOf(q)?+k.push(q):isNaN(parseInt(q))?q.toLowerCase()!=q?k.push(String.fromCharCode(65+Math.round(25*Math.random()))):q.toUpperCase()!=q?k.push(String.fromCharCode(97+Math.round(25*Math.random()))):/\s/.test(q)?k.push(" "):k.push("?"):k.push(f?"0":Math.round(9*Math.random()))}return k.join("")};EditorUi.prototype.anonymizeXml=function(c){function f(r,z,D){if(r.hasAttribute(z)){var H=r.getAttribute(z);null!=H&&0<H.length&&(D&&0<=H.indexOf("<")?(t.innerHTML=Graph.sanitizeHtml(H),k(t),H=t.innerHTML):H=q.anonymizeString(H),+r.setAttribute(z,H))}}function k(r){null!=r.nodeValue&&(r.nodeValue=q.anonymizeString(r.nodeValue));if(r.nodeType==mxConstants.NODETYPE_ELEMENT)for(r=r.firstChild;null!=r;)k(r),r=r.nextSibling}function n(r){if(r.nodeType==mxConstants.NODETYPE_ELEMENT){if("mxCell"==r.nodeName)f(r,"value",!0);else if("object"==r.nodeName||"UserObject"==r.nodeName)for(var z=0;z<r.attributes.length;z++){var D=r.attributes[z];"id"!=D.name&&"style"!=D.name&&"placeholders"!=D.name&&"vertex"!=D.name&&"edge"!=D.name&&"parent"!=+D.name&&"connectable"!=D.name&&"visible"!=D.name&&"collapsed"!=D.name&&"source"!=D.name&&"target"!=D.name&&(D.value=q.anonymizeString(D.value))}else"diagram"==r.nodeName&&f(r,"name",!1);for(r=r.firstChild;null!=r;)n(r),r=r.nextSibling}}var q=this,t=document.createElement("div");c=mxUtils.parseXml(c);n(c.documentElement);return mxUtils.getPrettyXml(c.documentElement)};EditorUi.prototype.anonymizePatch=function(c){c=JSON.parse(JSON.stringify(c));if(null!=c[EditorUi.DIFF_INSERT])for(var f=0;f<c[EditorUi.DIFF_INSERT].length;f++)try{var k=+mxUtils.parseXml(c[EditorUi.DIFF_INSERT][f].data).documentElement.cloneNode(!1);null!=k.getAttribute("name")&&k.setAttribute("name",this.anonymizeString(k.getAttribute("name")));c[EditorUi.DIFF_INSERT][f].data=mxUtils.getXml(k)}catch(t){c[EditorUi.DIFF_INSERT][f].data=t.message}if(null!=c[EditorUi.DIFF_UPDATE]){for(var n in c[EditorUi.DIFF_UPDATE]){var q=c[EditorUi.DIFF_UPDATE][n];null!=q.name&&(q.name=this.anonymizeString(q.name));null!=q.cells&&(f=mxUtils.bind(this,function(t){var r=q.cells[t];+if(null!=r){for(var z in r)null!=r[z].value&&(r[z].value="["+r[z].value.length+"]"),null!=r[z].xmlValue&&(r[z].xmlValue="["+r[z].xmlValue.length+"]"),null!=r[z].style&&(r[z].style="["+r[z].style.length+"]"),mxUtils.isEmptyObject(r[z])&&delete r[z];mxUtils.isEmptyObject(r)&&delete q.cells[t]}}),f(EditorUi.DIFF_INSERT),f(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(q.cells)&&delete q.cells);mxUtils.isEmptyObject(q)&&delete c[EditorUi.DIFF_UPDATE][n]}mxUtils.isEmptyObject(c[EditorUi.DIFF_UPDATE])&&delete c[EditorUi.DIFF_UPDATE]}return c};+EditorUi.prototype.anonymizeAttributes=function(c,f){if(null!=c.attributes)for(var k=0;k<c.attributes.length;k++)"as"!=c.attributes[k].name&&c.setAttribute(c.attributes[k].name,this.anonymizeString(c.attributes[k].value,f));if(null!=c.childNodes)for(k=0;k<c.childNodes.length;k++)this.anonymizeAttributes(c.childNodes[k],f)};EditorUi.prototype.anonymizeNode=function(c,f){f=c.getElementsByTagName("mxCell");for(var k=0;k<f.length;k++)null!=f[k].getAttribute("value")&&f[k].setAttribute("value","["+f[k].getAttribute("value").length++"]"),null!=f[k].getAttribute("xmlValue")&&f[k].setAttribute("xmlValue","["+f[k].getAttribute("xmlValue").length+"]"),null!=f[k].getAttribute("style")&&f[k].setAttribute("style","["+f[k].getAttribute("style").length+"]"),null!=f[k].parentNode&&"root"!=f[k].parentNode.nodeName&&null!=f[k].parentNode.parentNode&&(f[k].setAttribute("id",f[k].parentNode.getAttribute("id")),f[k].parentNode.parentNode.replaceChild(f[k],f[k].parentNode));return c};EditorUi.prototype.synchronizeCurrentFile=function(c){var f=+this.getCurrentFile();null!=f&&(f.savingFile?this.handleError({message:mxResources.get("busy")}):!c&&f.invalidChecksum?f.handleFileError(null,!0):this.spinner.spin(document.body,mxResources.get("updatingDocument"))&&(f.clearAutosave(),this.clearStatus(),c?f.reloadFile(mxUtils.bind(this,function(){this.spinner.stop();f.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){this.spinner.stop();f.handleFileError(k,!0)})):f.synchronizeFile(mxUtils.bind(this,function(){f.handleFileSuccess("manual"==+DrawioFile.SYNC)}),mxUtils.bind(this,function(k){f.handleFileError(k,!0)}))))};EditorUi.prototype.getFileData=function(c,f,k,n,q,t,r,z,D,H,B,W,I){q=null!=q?q:!0;t=null!=t?t:!1;H=null!=H?H:!Editor.defaultCompressed;var N=this.editor.graph;if((f||!c&&null!=D&&/(\.svg)$/i.test(D.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var U=N.getGlobalVariable;N=this.createTemporaryGraph(N.getStylesheet());N.setBackgroundImage=this.editor.graph.setBackgroundImage;N.background=this.editor.graph.background;+var S=null!=this.pages?this.pages[0]:null;null==S||this.currentPage==S?N.setBackgroundImage(this.editor.graph.backgroundImage):null!=S.viewState&&null!=S.viewState&&N.setBackgroundImage(S.viewState.backgroundImage);N.getGlobalVariable=function(V){return"page"==V&&null!=S?S.getName():"pagenumber"==V?1:U.apply(this,arguments)};document.body.appendChild(N.container);null!=S&&N.model.setRoot(S.root)}r=null!=r?r:this.getXmlFileData(q,t,H,B);D=null!=D?D:this.getCurrentFile();c=this.createFileData(r,N,D,+window.location.href,c,f,k,n,q,z,H,W,I);N!=this.editor.graph&&N.container.parentNode.removeChild(N.container);return c};EditorUi.prototype.getHtml=function(c,f,k,n,q,t){t=null!=t?t:!0;var r=null,z=EditorUi.drawHost+"/js/embed-static.min.js";if(null!=f){r=t?f.getGraphBounds():f.getBoundingBox(f.getSelectionCells());var D=f.view.scale;t=Math.floor(r.x/D-f.view.translate.x);D=Math.floor(r.y/D-f.view.translate.y);r=f.background;null==q&&(f=this.getBasenames().join(";"),0<f.length&&(z=EditorUi.drawHost++"/embed.js?s="+f));c.setAttribute("x0",t);c.setAttribute("y0",D)}null!=c&&(c.setAttribute("pan","1"),c.setAttribute("zoom","1"),c.setAttribute("resize","0"),c.setAttribute("fit","0"),c.setAttribute("border","20"),c.setAttribute("links","1"),null!=n&&c.setAttribute("edit",n));null!=q&&(q=q.replace(/&/g,"&"));c=null!=c?Graph.zapGremlins(mxUtils.getXml(c)):"";n=Graph.compress(c);Graph.decompress(n)!=c&&(n=encodeURIComponent(c));return(null==q?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':+"")+"<!DOCTYPE html>\n<html"+(null!=q?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==q?null!=k?"<title>"+mxUtils.htmlEntities(k)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=q?'<meta http-equiv="refresh" content="0;URL=\''+q+"'\"/>\n":"")+"</head>\n<body"+(null==q&&null!=r&&r!=mxConstants.NONE?' style="background-color:'+r+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'+n+"</div>\n</div>\n"++(null==q?'<script type="text/javascript" src="'+z+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+q+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(c,f,k,n,q){f=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=q&&(q=q.replace(/&/g,"&"));c={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,resize:!0,+xml:Graph.zapGremlins(c),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(c.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==q?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=q?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==q?null!=k?"<title>"+mxUtils.htmlEntities(k)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=q?'<meta http-equiv="refresh" content="0;URL=\''++q+"'\"/>\n":"")+'<meta charset="utf-8"/>\n</head>\n<body>\n<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(c))+'"></div>\n'+(null==q?'<script type="text/javascript" src="'+f+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+q+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.updateFileVars=+function(){var c=null!=this.fileNode?this.fileNode.getAttribute("vars"):null;if(c!==this.fileVarsStr&&(this.fileVarsStr=c,this.fileVars=null,null!=c&&0<c.length))try{this.fileVars=JSON.parse(c)}catch(f){}};EditorUi.prototype.setFileData=function(c,f){c=this.validateFileData(c);this.pages=this.fileNode=this.currentPage=null;f=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var k=Editor.extractParserError(f,mxResources.get("invalidOrMissingFile"));if(k)throw EditorUi.debug("EditorUi.setFileData ParserError",+[this],"data",[c],"node",[f],"cause",[k]),Error(mxResources.get("notADiagramFile")+" ("+k+")");c=null!=f?this.editor.extractGraphModel(f,!0):null;null!=c&&(f=c);if(null!=f&&"mxfile"==f.nodeName&&(c=f.getElementsByTagName("diagram"),k={},0<c.length)){var n=this.getHashObject(),q=null;this.fileNode=f;this.editor.graph.defaultExportLinkTarget=f.getAttribute("linkTarget");this.pages=[];for(var t=0;t<c.length;t++){null==c[t].getAttribute("id")&&c[t].setAttribute("id",t);f=new DiagramPage(c[t]);null==f.getName()&&+f.setName(mxResources.get("pageWithNumber",[t+1]));this.pages.push(f);if(null==n.pageId&&null!=urlParams["page-id"]&&f.getId()==urlParams["page-id"]||null!=n.pageId&&f.getId()==n.pageId)q=f;if(null==k[f.getId()])k[f.getId()]=f;else throw Error(f.getId()+": Duplicate page ID");}this.currentPage=null!=q?q:this.pages[Math.max(0,Math.min(this.pages.length-1,urlParams.page||0))];f=this.currentPage.node}null==this.fileNode&&null!=f&&(this.fileNode=f.ownerDocument.createElement("mxfile"),this.currentPage=+new DiagramPage(f.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(f);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,this.currentPage.setDiagramModified(!1),this.scrollToPage());if(null!=urlParams["layer-ids"])try{var r=decodeURIComponent(urlParams["layer-ids"]).split(" "),z=Object.create(null);for(t=0;t<r.length;t++)z[r[t]]=!0;var D=this.editor.graph.getModel(),+H=D.getChildren(D.root);for(t=0;t<H.length;t++){var B=H[t];D.setVisible(B,z[B.id]||!1)}}catch(W){}};EditorUi.prototype.fileStats=function(c,f){try{if(null!=c&&5E5<c.getSize()&&""!==c.getHash()&&"draw.io"==this.getServiceName()){var k=f.getElementsByTagName("diagram");f={};f.modified=c.getLastModifiedDate();f.fileMode=c.getMode();f.fileSize=c.getSize();f.fileHash=c.getHash();f.pages=k.length;f.redundantStencils=0;f.redundantImages=0;f.redundantSize=0;f.stencils=0;f.images=0;for(var n=f.cells=0;n<k.length;n++){var q=+k[n].getElementsByTagName("mxCell");f.cells+=q.length;for(var t={},r=0;r<q.length;r++){var z=q[r].getAttribute("style");if(null!=z)for(var D=z.split(";"),H=0;H<D.length;H++){var B=D[H];if(B.startsWith("image=data:")||B.startsWith("shape=stencil("))null==t[B]?t[B]=1:t[B]++}}for(var W in t){var I=t[W];W.startsWith("shape=stencil(")?f.stencils+=I:f.images+=I;1<I&&(f.redundantSize+=W.length*(I-1),W.startsWith("shape=stencil(")?f.redundantStencils+=I-1:f.redundantImages+=I-1)}}EditorUi.logEvent({category:c.getMode().toUpperCase()++"-FILE-STATS-"+c.getHash(),action:"size_"+c.getSize(),label:JSON.stringify(f)})}}catch(N){}};EditorUi.prototype.getBaseFilename=function(c){var f=this.getCurrentFile();f=null!=f&&null!=f.getTitle()?f.getTitle():this.defaultFilename;if(/(\.xml)$/i.test(f)||/(\.html)$/i.test(f)||/(\.svg)$/i.test(f)||/(\.png)$/i.test(f))f=f.substring(0,f.lastIndexOf("."));/(\.drawio)$/i.test(f)&&(f=f.substring(0,f.lastIndexOf(".")));!c&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&+0<this.currentPage.getName().length&&(f=f+"-"+this.currentPage.getName());return f};EditorUi.prototype.downloadFile=function(c,f,k,n,q,t,r,z,D,H,B,W,I,N,U,S,V,ja){try{n=null!=n?n:this.editor.graph.isSelectionEmpty();var v=this.getBaseFilename(!q),d=v+("xml"==c||"pdf"==c&&B?".drawio":"")+"."+c;if("xml"==c){var m=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,n,q,null,null,null,f);this.saveData(d,c,m,"text/xml")}else if("html"==c)m=this.getHtml2(this.getFileData(!0),this.editor.graph,+v),this.saveData(d,c,m,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))if("xmlpng"==c?d=v+".png":"jpeg"==c&&(d=v+".jpg"),"1"==urlParams.embed&&"json"==urlParams.proto&&this.embedExportProtocol){var x=this.embedMessageSource||window.opener||window.parent;this.spinner.spin(document.body,mxResources.get("exporting"))&&this.createDownloadRequest(d,c,n,"1",r,q,z,D,H,B,W,void 0,void 0,!t,I,N,U,S,V,ja).send(mxUtils.bind(this,function(Q){this.spinner.stop();+if(200<=Q.getStatus()&&299>=Q.getStatus()){var ba=this.createLoadMessage("export");ba.format=c;ba.filename=d;ba.data="data:application/pdf;base64,"+Q.getText();ba.xml=this.getFileData(!0);x.postMessage(JSON.stringify(ba),"*")}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(){this.spinner.stop();this.handleError({message:mxResources.get("errorSavingFile")})}))}else this.saveRequest(d,c,mxUtils.bind(this,function(Q,ba){try{return this.createDownloadRequest(Q,+c,n,ba,r,q,z,D,H,B,W,void 0,void 0,!t,I,N,U,S,V,ja)}catch(T){this.handleError(T)}}));else{var C=null,F=mxUtils.bind(this,function(Q){Q.length<=MAX_REQUEST_SIZE?this.saveData(d,"svg",Q,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(C)}))});if("svg"==c){var G=this.editor.graph.background;if(r||G==mxConstants.NONE)G=null;var K=this.editor.graph.getSvg(G,null,null,null,null,n);k&&this.editor.graph.addSvgShadow(K);+this.editor.convertImages(K,mxUtils.bind(this,mxUtils.bind(this,function(Q){this.spinner.stop();F(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(Q))})))}else d=v+".svg",C=this.getFileData(!1,!0,null,mxUtils.bind(this,function(Q){this.spinner.stop();F(Q)}),n)}}catch(Q){this.handleError(Q)}};EditorUi.prototype.createDownloadRequest=function(c,f,k,n,q,t,r,z,D,H,B,W,I,N,U,S,V,ja,v,d){c=this.downloadRequestBuilder(c,f,k,n,q,t,r,z,D,H,B,W,I,N,U,S,V,ja,v,d);f="";for(var m in c)k=c[m],null!=+k&&(f+=m+"="+encodeURIComponent(k)+"&");return new mxXmlRequest(EXPORT_URL,f)};EditorUi.prototype.downloadRequestBuilder=function(c,f,k,n,q,t,r,z,D,H,B,W,I,N,U,S,V,ja,v,d){var m=this.editor.graph,x=m.getGraphBounds();k=this.getFileData(!0,null,null,null,k,0==t?!1:"xmlpng"!=f,null,null,null,!Editor.defaultCompressed,"pdf"==f);var C=null,F=null,G=null;if(!EditorUi.isElectronApp&&(x.width*x.height>MAX_AREA||k.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};H=H?"1":"0";"pdf"==+f&&(null!=B?(C=B.from,F=B.to):0==t&&(G="1"));"xmlpng"==f&&(H="1",f="png");if(("xmlpng"==f||"svg"==f)&&null!=this.pages&&null!=this.currentPage)for(t=0;t<this.pages.length;t++)if(this.pages[t]==this.currentPage){C=t;break}t=m.background;"png"!=f&&"pdf"!=f&&"svg"!=f||!q?q||null!=t&&t!=mxConstants.NONE||(t="#ffffff"):t=mxConstants.NONE;q={globalVars:m.getExportVariables()};null!=B&&null!=B.from&&(q.globalVars.pagenumber=B.from+1);D&&(q.grid={size:m.gridSize,steps:m.view.gridSteps,color:Editor.isDarkMode()&&+"pdf"==f?mxGraphView.prototype.defaultGridColor:m.view.gridColor});Graph.translateDiagram&&(q.diagramLanguage=Graph.diagramLanguage);D=this.getHiddenTagsMap();null!=D&&(q.hiddenTags=D);return{format:f,from:C,to:F,allPages:G,bg:null!=t?t:mxConstants.NONE,base64:n,embedXml:H,xml:k,filename:null!=c?c:"",extras:JSON.stringify(q),scale:r,border:z,pageMargin:U,w:W&&isFinite(W)?W:null,h:I&&isFinite(I)?I:null,crop:null!=N&&N?"1":"0",fit:null!=S&&S?"1":"0",shadows:null!=v&&v?"1":"0",sheetsAcross:V,sheetsDown:ja,+icons:null!=d&&d?"1":"0"}};EditorUi.prototype.getHiddenTagsMap=function(){var c=this.editor.graph,f={},k=!1;if(null!=this.pages)for(var n=0;n<this.pages.length;n++){var q=this.pages[n],t=q==this.currentPage?c.hiddenTags:null!=q.viewState?q.viewState.hiddenTags:null;null!=t&&0<t.length&&(f[q.getId()]=t,k=!0)}else null!=c.hiddenTags&&0<c.hiddenTags.length&&(f[0]=c.hiddenTags,k=!0);return k?f:null};EditorUi.prototype.setMode=function(c,f){this.mode=c};EditorUi.prototype.getDiagramId=function(){var c=+window.location.hash;null!=c&&0<c.length&&(c=c.substring(1));if(null!=c&&1<c.length){var f=c.indexOf("#");0<=f&&(c=c.substring(0,f))}return c};EditorUi.prototype.getHashObject=function(){var c=window.location.hash,f={};if(null!=c&&0<c.length){var k=c.lastIndexOf("#");if(0<k){c=decodeURIComponent(c.substring(k+1));try{f=JSON.parse(c)}catch(n){}}}return f};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&null!=this.currentPage&&""!=this.currentFile.getHash()){var c=this.getHashObject();+c.pageId=this.currentPage.getId();this.setHashObject(c)}else this.setHashObject(null)};EditorUi.prototype.setHashObject=function(c){if(Editor.enableHashObjects){var f=window.location.hash;if(null==f||""==f)f="#";var k=f.lastIndexOf("#");0<k&&(f=f.substring(0,k));try{null==c||mxUtils.isEmptyObject(c)||(f=f+"#"+encodeURIComponent(JSON.stringify(c)))}catch(n){}0<k&&0<f.lastIndexOf("#")?window.location.hash=f:window.location.replace(f)}};EditorUi.prototype.loadDescriptor=function(c,f,k){var n=window.location.hash,+q=mxUtils.bind(this,function(r){var z=null!=c.data?c.data:"";null!=r&&0<r.length&&(0<z.length&&(z+="\n"),z+=r);r=new LocalFile(this,"csv"!=c.format&&0<z.length?z:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);r.getHash=function(){return n};this.fileLoaded(r);"csv"==c.format&&this.importCsv(z,mxUtils.bind(this,function(I){this.editor.undoManager.clear();this.editor.setModified(!1);this.clearStatus()}));if(null!=c.update){var D=null!=c.interval?+parseInt(c.interval):6E4,H=null,B=mxUtils.bind(this,function(){var I=this.currentPage;mxUtils.post(c.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(N){I===this.currentPage&&(200<=N.getStatus()&&300>=N.getStatus()?(this.updateDiagram(N.getText()),W()):this.handleError({message:mxResources.get("error")+" "+N.getStatus()}))}),mxUtils.bind(this,function(N){this.handleError(N)}))}),W=mxUtils.bind(this,function(){window.clearTimeout(H);H=window.setTimeout(B,+D)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){W();B()}));W();B()}null!=f&&f()});if(null!=c.url&&0<c.url.length){var t=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(t,mxUtils.bind(this,function(r){q(r)}),mxUtils.bind(this,function(r){null!=k&&k(r)}))}else q("")};EditorUi.prototype.updateDiagram=function(c){function f(d){var m=new mxCellOverlay(d.image||q.warningImage,d.tooltip,d.align,d.valign,d.offset);m.addListener(mxEvent.CLICK,function(x,C){n.alert(d.tooltip)});+return m}var k=null,n=this;if(null!=c&&0<c.length&&(k=mxUtils.parseXml(c),c=null!=k?k.documentElement:null,null!=c&&"updates"==c.nodeName)){var q=this.editor.graph,t=q.getModel();t.beginUpdate();var r=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var z=t.getCell(c.getAttribute("id"));if(null!=z){try{var D=c.getAttribute("value");if(null!=D){var H=mxUtils.parseXml(D).documentElement;if(null!=H)if("1"==H.getAttribute("replace-value"))t.setValue(z,H);else for(var B=H.attributes,W=0;W<+B.length;W++)q.setAttributeForCell(z,B[W].nodeName,0<B[W].nodeValue.length?B[W].nodeValue:null)}}catch(d){null!=window.console&&console.log("Error in value for "+z.id+": "+d)}try{var I=c.getAttribute("style");null!=I&&q.model.setStyle(z,I)}catch(d){null!=window.console&&console.log("Error in style for "+z.id+": "+d)}try{var N=c.getAttribute("icon");if(null!=N){var U=0<N.length?JSON.parse(N):null;null!=U&&U.append||q.removeCellOverlays(z);null!=U&&q.addCellOverlay(z,f(U))}}catch(d){null!=window.console&&+console.log("Error in icon for "+z.id+": "+d)}try{var S=c.getAttribute("geometry");if(null!=S){S=JSON.parse(S);var V=q.getCellGeometry(z);if(null!=V){V=V.clone();for(key in S){var ja=parseFloat(S[key]);"dx"==key?V.x+=ja:"dy"==key?V.y+=ja:"dw"==key?V.width+=ja:"dh"==key?V.height+=ja:V[key]=parseFloat(S[key])}q.model.setGeometry(z,V)}}}catch(d){null!=window.console&&console.log("Error in icon for "+z.id+": "+d)}}}else if("model"==c.nodeName){for(var v=c.firstChild;null!=v&&v.nodeType!=mxConstants.NODETYPE_ELEMENT;)v=+v.nextSibling;null!=v&&(new mxCodec(c.firstChild)).decode(v,t)}else if("view"==c.nodeName){if(c.hasAttribute("scale")&&(q.view.scale=parseFloat(c.getAttribute("scale"))),c.hasAttribute("dx")||c.hasAttribute("dy"))q.view.translate=new mxPoint(parseFloat(c.getAttribute("dx")||0),parseFloat(c.getAttribute("dy")||0))}else"fit"==c.nodeName&&(r=c.hasAttribute("max-scale")?parseFloat(c.getAttribute("max-scale")):1);c=c.nextSibling}}finally{t.endUpdate()}null!=r&&this.chromelessResize&&this.chromelessResize(!0,+r)}return k};EditorUi.prototype.getCopyFilename=function(c,f){var k=null!=c&&null!=c.getTitle()?c.getTitle():this.defaultFilename;c="";var n=k.lastIndexOf(".");0<=n&&(c=k.substring(n),k=k.substring(0,n));if(f){f=k;var q=new Date;k=q.getFullYear();n=q.getMonth()+1;var t=q.getDate(),r=q.getHours(),z=q.getMinutes();q=q.getSeconds();k=f+(" "+(k+"-"+n+"-"+t+"-"+r+"-"+z+"-"+q))}return k=mxResources.get("copyOf",[k])+c};EditorUi.prototype.logIfModified=function(c,f){try{null!=c&&f&&EditorUi.debug("File.closed",+[c])}catch(k){}};EditorUi.prototype.fileLoaded=function(c,f,k){EditorUi.debug("EditorUi.fileLoaded",[this],"file",[c],"noDialogs",[f]);var n=this.getCurrentFile();this.fileEditable=this.fileLoadedError=null;this.setCurrentFile(null);var q=!1;this.hideDialog();null!=n&&(n.removeListener(this.descriptorChangedListener),this.logIfModified(n,!0),n.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var t=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);+null!=n&&this.updateDocumentTitle();this.editor.graph.model.clear();this.editor.undoManager.clear();this.setBackgroundImage(null);!f&&null!=window.location.hash&&0<window.location.hash.length&&(window.location.hash="");null!=this.fname&&(this.fname.innerText="");this.clearStatus();this.updateUi();if(!f)if("0"!=urlParams.splash)this.showSplash();else try{this.createFile(this.defaultFilename,this.getFileData(),null,null,null,null,null,!0)}catch(W){this.handleError(W)}});if(null!=c)try{this.openingFile=+!0;this.setCurrentFile(c);c.addListener("descriptorChanged",this.descriptorChangedListener);c.addListener("contentChanged",this.descriptorChangedListener);c.open();delete this.openingFile;this.setGraphEnabled(!0);this.setMode(c.getMode());this.editor.graph.model.prefix=Editor.guid()+"-";this.editor.undoManager.clear();this.descriptorChanged();this.updateUi();c.isEditable()?c.isModified()?c.addUnsavedStatus():this.clearStatus():this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus('<div class="geStatusBox" title="'++mxUtils.htmlEntities(mxResources.get("readOnly"))+'">'+mxUtils.htmlEntities(mxResources.get("readOnly"))+"</div>")}));!this.editor.isChromelessView()||this.editor.editable?(this.editor.graph.selectUnlockedLayer(),this.showLayersDialog(),null!=this.actions.layersWindow&&this.actions.layersWindow.refreshLayers(),this.restoreLibraries(),window.self===window.top||this.noAutoFocus||window.focus()):this.editor.graph.isLightboxView()&&this.lightboxFit();this.chromelessResize&&this.chromelessResize();null!=+k&&k();this.editor.fireEvent(new mxEventObject("fileLoaded"));q=!0;if(/(\.svg)$/i.test(c.getTitle())&&this.getSvgFileProperties(this.fileNode).embedFonts)try{this.editor.loadFonts(),this.editor.embedExtFonts(function(){})}catch(W){}if(!this.isOffline()&&null!=c.getMode()){var r="1"==urlParams.sketch?"sketch":uiTheme;if(null==r)r="default";else if("sketch"==r||"min"==r)r+=Editor.isDarkMode()?"-dark":"-light";EditorUi.logEvent({category:c.getMode().toUpperCase()+"-OPEN-FILE-"+c.getHash(),action:"size_"++c.getSize(),label:"autosave_"+(this.editor.autosave?"on":"off")+"_theme_"+r})}EditorUi.debug("File.opened",[c]);"1"==urlParams.viewerOnlyMsg&&this.showAlert(mxResources.get("viewerOnlyMsg"));if(this.editor.editable&&this.mode==c.getMode()&&c.getMode()!=App.MODE_DEVICE&&null!=c.getMode())try{this.addRecent({id:c.getHash(),title:c.getTitle(),mode:c.getMode()})}catch(W){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(W){}}catch(W){this.fileLoadedError=W;k=null;var z=+this.defaultFilename;if(null!=c){try{k=c.getData(),z=c.getTitle()||this.defaultFilename}catch(I){}try{c.close()}catch(I){}}var D=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=n?this.fileLoaded(n)||t():t()});if(f)D();else{W.dialogWidth=350;var H=mxUtils.bind(this,function(){this.handleError(W,mxResources.get("errorLoadingFile"),D,!0,null,null,!0)});if(null!=W.fallbackFileData)W.alternateAction=+{label:mxResources.get("makeCopy"),funct:mxUtils.bind(this,function(){this.hideDialog();var I=new LocalFile(this,W.fallbackFileData,this.defaultFilename,!0);this.fileLoaded(I)})},H();else{var B=this.spinner.spin(document.body,mxResources.get("loading"));this.getRecoveryData(c,k,W,mxUtils.bind(this,function(I){B&&this.spinner.stop();if(null!=I&&1==I.length){var N=I[0];W.alternateAction={label:N.label,funct:mxUtils.bind(this,function(){this.hideDialog();N.lossy?this.confirm(mxResources.get("recoveryWarning"),+mxUtils.bind(this,function(){this.openRecoveredCopy(N,z)})):this.openRecoveredCopy(N,z)})}}else null!=I&&1<I.length&&(W.alternateAction={label:mxResources.get("recover"),funct:mxUtils.bind(this,function(){this.hideDialog();this.showRecoveryDialog(I,z)})});H()}))}}}else t();return q};EditorUi.prototype.getHashValueForPages=function(c,f){var k=0,n=new mxGraphModel,q=new mxCodec;null!=f&&(f.byteCount=0,f.attrCount=0,f.eltCount=0,f.nodeCount=0);for(var t=0;t<c.length;t++)if(null!=c[t]){this.updatePageRoot(c[t]);+var r=c[t].node.ownerDocument.createElement("diagram");r.setAttribute("id",c[t].getId());n.root=c[t].root;var z=q.encode(n);this.editor.graph.saveViewState(c[t].viewState,z,!0);z.removeAttribute("pageWidth");z.removeAttribute("pageHeight");r.appendChild(z);null!=f&&(f.eltCount+=r.getElementsByTagName("*").length,f.nodeCount+=r.getElementsByTagName("mxCell").length);k=(k<<5)-k+this.hashValue(r,function(D,H,B,W){return!W||"mxGeometry"!=D.nodeName&&"mxPoint"!=D.nodeName||"x"!=H&&"y"!=H&&"width"!=H&&+"height"!=H?W&&"mxCell"==D.nodeName&&"previous"==H?null:B:Math.round(B)},f)<<0}return k};EditorUi.prototype.hashValue=function(c,f,k){var n=0;if(null!=c&&"object"===typeof c&&"number"===typeof c.nodeType&&"string"===typeof c.nodeName&&"function"===typeof c.getAttribute){null!=c.nodeName&&(n^=this.hashValue(c.nodeName,f,k));if(null!=c.attributes){null!=k&&(k.attrCount+=c.attributes.length);for(var q=0;q<c.attributes.length;q++){var t=c.attributes[q].name,r=null!=f?f(c,t,c.attributes[q].value,!0):c.attributes[q].value;+null!=r&&(n^=this.hashValue(t,f,k)+this.hashValue(r,f,k))}}if(null!=c.childNodes)for(q=0;q<c.childNodes.length;q++)n=(n<<5)-n+this.hashValue(c.childNodes[q],f,k)<<0}else if(null!=c&&"function"!==typeof c){c=String(c);f=0;null!=k&&(k.byteCount+=c.length);for(q=0;q<c.length;q++)f=(f<<5)-f+c.charCodeAt(q)<<0;n^=f}return n};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(c,f,k,n,q,t,r){};EditorUi.prototype.isScratchpadEnabled=+function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(c){if(null==c||"<mxfile"==c.substring(0,7))c=this.emptyLibraryXml;this.loadLibrary(new StorageLibrary(this,c,".scratchpad"))})):this.closeLibrary(this.scratchpad))};EditorUi.prototype.createLibraryDataFromImages=function(c){if(!Editor.defaultCompressed)for(var f=0;f<c.length;f++)null!=+c[f].xml&&"<"!=c[f].xml.charAt(0)&&(c[f].xml=mxUtils.trim(Graph.decompress(c[f].xml)));f=mxUtils.createXmlDocument();var k=f.createElement("mxlibrary");mxUtils.setTextContent(k,JSON.stringify(c,null,2));f.appendChild(k);return mxUtils.getXml(f,"\n")};EditorUi.prototype.closeLibrary=function(c){null!=c&&(this.removeLibrarySidebar(c.getHash()),c.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(c.getHash()),".scratchpad"==c.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=+function(c){var f=this.sidebar.palettes[c];if(null!=f){for(var k=0;k<f.length;k++)this.sidebar.unobserveElements(f[k]),f[k].parentNode.removeChild(f[k]);delete this.sidebar.palettes[c]}};EditorUi.prototype.repositionLibrary=function(c,f){var k=this.sidebar.getEntryContainer();if(!this.sidebar.appendCustomLibraries||null!=c||!f){null==c&&(f=this.sidebar.palettes["L.scratchpad"],null==f&&(f=this.sidebar.palettes.search),null!=f&&(c=f[f.length-1].nextSibling));c=null!=c?c:k.firstChild.nextSibling.nextSibling;+f=k.lastChild;var n=f.previousSibling;k.insertBefore(f,c);k.insertBefore(n,f)}};EditorUi.prototype.loadLibrary=function(c,f){var k=mxUtils.parseXml(c.getData());if("mxlibrary"==k.documentElement.nodeName){var n=JSON.parse(mxUtils.getTextContent(k.documentElement));this.libraryLoaded(c,n,k.documentElement.getAttribute("title"),f,k.documentElement.getAttribute("tags"))}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(c){return""};EditorUi.prototype.showSidebar=+function(){null!=this.sidebarWindow?this.sidebarWindow.window.setVisible(!0):this.toggleShapesPanel(!0)};EditorUi.prototype.showSearchWindow=function(c,f){var k=c?"findReplace":"find",n=k+"Window";if(null==this[n]){var q="min"==Editor.currentTheme||"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme,t=mxSettings.getWindowState(k),r=null!=t&&null!=t.w?t.w:c?q?330:300:240;this[n]=new FindWindow(this,null!=t&&null!=t.x?t.x:document.body.offsetWidth-(r+20),null!=t&&null!=t.y?t.y:100,r,null!=+t&&null!=t.h?t.h:c?q?304:288:180,c);this[n].window.addListener("show",function(){this.fireEvent(new mxEventObject(k))});this[n].window.addListener("hide",function(){this.fireEvent(new mxEventObject(k))});this.installWindowPersistence(k,this[n]);null!=t&&null==f&&this.restoreWindowState(k,this[n]);this[n].window.setVisible(!0)}else null==f&&this[n].window.setVisible(!this[n].window.isVisible());null!=f&&(this[n].doSearch(f),this[n].window.setVisible(!0))};EditorUi.prototype.libraryLoaded=function(c,+f,k,n,q){if(null!=this.sidebar){c.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(c.getHash());var t=null;if(c.constructor!=StorageLibrary||".scratchpad"!=c.title){null==this.openLibraries&&(this.openLibraries=[]);for(var r=0;r<this.openLibraries.length;r++)if(this.openLibraries[r].file.getHash()==c.getHash()){mxUtils.remove(this.openLibraries[r],this.openLibraries);break}t={file:c,images:f,title:k,expand:n};this.openLibraries.push(t)}else this.scratchpad=c;r=this.sidebar.palettes[c.getHash()];+r=null!=r?r[r.length-1].nextSibling:null;this.removeLibrarySidebar(c.getHash());var z=null,D=mxUtils.bind(this,function(v,d){0==v.length&&c.isEditable()?(null==z&&(z=document.createElement("div"),z.className="geDropTarget",v=mxResources.get("dragElementsHere"),mxUtils.write(z,v),z.setAttribute("title",v)),d.appendChild(z)):this.addLibraryEntries(v,d)});null!=this.sidebar&&null!=f&&(this.sidebar.setCurrentSearchEntryLibrary(c.getHash(),c.getHash()),this.sidebar.addEntries(f,q),this.sidebar.setCurrentSearchEntryLibrary());+null==k&&(k=c.getTitle(),null!=k&&/(\.xml)$/i.test(k)&&(k=k.substring(0,k.lastIndexOf("."))));var H=this.sidebar.addPalette(c.getHash(),k,null!=n?n:!0,mxUtils.bind(this,function(v){D(f,v)}),!0);null!=t&&(t.div=H);this.repositionLibrary(r,"L.scratchpad"!=c.getHash());n=H.parentNode.previousSibling;k=n.getAttribute("title");null!=k&&0<k.length&&".scratchpad"!=c.title&&n.setAttribute("title",this.getLibraryStorageHint(c)+"\n"+k);var B=document.createElement("div");B.style.backgroundColor="inherit";n.style.position=+"relative";var W=document.createElement("img");W.className="geLibraryButton";W.setAttribute("src",Editor.crossImage);W.setAttribute("title",mxResources.get("close"));var I=null;if(".scratchpad"!=c.title||this.closableScratchpad)B.appendChild(W),mxEvent.addListener(W,"click",mxUtils.bind(this,function(v){if(!mxEvent.isConsumed(v)){var d=mxUtils.bind(this,function(){null!=t&&mxUtils.remove(t,this.openLibraries);this.closeLibrary(c)});null!=I?this.confirm(mxResources.get("allChangesLost"),null,d,mxResources.get("cancel"),+mxResources.get("discardChanges")):d();mxEvent.consume(v)}}));if(c.isEditable()){var N=this.editor.graph,U=null;k=mxUtils.bind(this,function(v){this.showLibraryDialog(c.getTitle(),H,f,c,c.getMode());mxEvent.consume(v)});var S=mxUtils.bind(this,function(v){c.setModified(!0);c.isAutosave()?(null!=U&&null!=U.parentNode&&U.parentNode.removeChild(U),U=W.cloneNode(!1),U.setAttribute("src",Editor.spinImage),U.setAttribute("title",mxResources.get("saving")),U.style.cursor="default",U.style.marginRight="2px",+U.style.marginTop="-2px",B.insertBefore(U,B.firstChild),this.saveLibrary(c.getTitle(),f,c,c.getMode(),!0,!0,function(){null!=U&&null!=U.parentNode&&U.parentNode.removeChild(U)})):null==I&&(I=W.cloneNode(!1),I.setAttribute("src",Editor.saveImage),I.setAttribute("title",mxResources.get("save")),B.insertBefore(I,B.firstChild),mxEvent.addListener(I,"click",mxUtils.bind(this,function(d){this.saveLibrary(c.getTitle(),f,c,c.getMode(),c.constructor==LocalLibrary,!0,function(){null==I||c.isModified()||(I.parentNode.removeChild(I),+I=null)});mxEvent.consume(d)})))}),V=mxUtils.bind(this,function(v,d,m,x){v=N.cloneCells(mxUtils.sortCells(N.model.getTopmostCells(v)));for(var C=0;C<v.length;C++){var F=N.getCellGeometry(v[C]);null!=F&&F.translate(-d.x,-d.y)}H.appendChild(this.sidebar.createVertexTemplateFromCells(v,d.width,d.height,x||"",!0,null,!1));v=mxUtils.getXml(this.editor.graph.encodeCells(v));Editor.defaultCompressed&&(v=Graph.compress(v));d={xml:v,w:d.width,h:d.height};null!=x&&(d.title=x);f.push(d);S(m);null!=z&&null!=+z.parentNode&&0<f.length&&(z.parentNode.removeChild(z),z=null)}),ja=mxUtils.bind(this,function(v){if(N.isSelectionEmpty())N.getRubberband().isActive()?(N.getRubberband().execute(v),N.getRubberband().reset()):null!=v&&null!=mxEvent.getSource(v)&&mxEvent.getSource(v).classList.contains("geLibraryButton")&&this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var d=N.getSelectionCells(),m=N.view.getBounds(d);if(null!=m&&0<m.width&&0<m.height){var x=+N.view.scale;m.x/=x;m.y/=x;m.width/=x;m.height/=x;m.x-=N.view.translate.x;m.y-=N.view.translate.y;V(d,m)}else this.showError(mxResources.get("error"),mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(v)});mxEvent.addGestureListeners(H,function(){},mxUtils.bind(this,function(v){N.isMouseDown&&null!=N.panningManager&&null!=N.graphHandler.first&&(N.graphHandler.suspend(),null!=N.graphHandler.hint&&(N.graphHandler.hint.style.visibility="hidden"),H.style.backgroundColor="light-dark(#fefefe, #000000)",+H.style.cursor="copy",N.panningManager.stop(),N.autoScroll=!1,mxEvent.consume(v))}),mxUtils.bind(this,function(v){N.isMouseDown&&null!=N.panningManager&&null!=N.graphHandler&&(H.style.backgroundColor="",H.style.cursor="default",this.sidebar.showTooltips=!0,N.panningManager.stop(),N.graphHandler.reset(),N.isMouseDown=!1,N.autoScroll=!0,ja(v),mxEvent.consume(v))}));mxEvent.addListener(H,"mouseleave",mxUtils.bind(this,function(v){N.isMouseDown&&null!=N.graphHandler.first&&(N.graphHandler.resume(),null!=+N.graphHandler.hint&&(N.graphHandler.hint.style.visibility="visible"),H.style.backgroundColor="",H.style.cursor="",N.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(H,"dragover",mxUtils.bind(this,function(v){H.style.backgroundColor="light-dark(#fefefe, #000000)";v.dataTransfer.dropEffect="copy";H.style.cursor="copy";this.sidebar.hideTooltip();v.stopPropagation();v.preventDefault()})),mxEvent.addListener(H,"drop",mxUtils.bind(this,function(v){H.style.cursor="";H.style.backgroundColor="";+0<v.dataTransfer.files.length&&this.importFiles(v.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(d,m,x,C,F,G,K,Q,ba){if(null!=d&&"image/"==m.substring(0,6))d="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(d),d=[new mxCell("",new mxGeometry(0,0,F,G),d)],d[0].vertex=!0,V(d,new mxRectangle(0,0,F,G),v,mxEvent.isAltDown(v)?null:K.substring(0,K.lastIndexOf(".")).replace(/_/g," ")),null!=z&&null!=z.parentNode&&0<f.length&&+(z.parentNode.removeChild(z),z=null);else{var T=!1,Z=mxUtils.bind(this,function(X,da){null!=X&&"application/pdf"==da&&(da=Editor.extractGraphModelFromPdf(X),null!=da&&0<da.length&&(X=da));if(null!=X)if(X=mxUtils.parseXml(X),"mxlibrary"==X.documentElement.nodeName)try{var R=JSON.parse(mxUtils.getTextContent(X.documentElement));D(R,H);f=f.concat(R);S(v);this.spinner.stop();T=!0}catch(aa){}else if("mxfile"==X.documentElement.nodeName)try{var Y=X.documentElement.getElementsByTagName("diagram");for(R=+0;R<Y.length;R++){var ca=this.stringToCells(Editor.getDiagramNodeXml(Y[R])),P=this.editor.graph.getBoundingBoxFromGeometry(ca);null!=P&&V(ca,new mxRectangle(0,0,P.width,P.height),v)}T=!0}catch(aa){null!=window.console&&console.log("error in drop handler:",aa)}T||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=z&&null!=z.parentNode&&0<f.length&&(z.parentNode.removeChild(z),z=null)});null!=ba&&null!=K&&EditorUi.isVisioFilename(K)?this.importVisio(ba,function(X){Z(X,+"text/xml")},null,K):this.isGliffyData(d,K)&&null!=ba?this.importGliffy(d,mxUtils.bind(this,function(X){this.spinner.stop();Z(X,"text/xml")}),mxUtils.bind(this,function(X){this.spinner.stop();this.handleError({message:mxResources.get(null!=X&&413==X.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile"))}),K):Z(d,m)}}));v.stopPropagation();v.preventDefault()})),mxEvent.addListener(H,"dragleave",function(v){H.style.cursor="";H.style.backgroundColor="";v.stopPropagation();+v.preventDefault()}));W=W.cloneNode(!1);W.setAttribute("src",Editor.editImage);W.setAttribute("title",mxResources.get("edit"));B.insertBefore(W,B.firstChild);mxEvent.addListener(W,"click",k);k=W.cloneNode(!1);k.setAttribute("src",Editor.plusImage);k.setAttribute("title",mxResources.get("add"));B.insertBefore(k,B.firstChild);mxEvent.addListener(k,"click",ja);".scratchpad"==c.title&&(this.addSelectionToScratchpad=ja);this.isOffline()||".scratchpad"!=c.title||null==EditorUi.scratchpadHelpLink||(k=this.createHelpIcon(EditorUi.scratchpadHelpLink,+!0),k.className="geLibraryButton",B.insertBefore(k,B.firstChild))}n.appendChild(B);this.editor.fireEvent(new mxEventObject("libraryLoaded"))}};EditorUi.prototype.addLibraryEntries=function(c,f){for(var k=0;k<c.length;k++)try{var n=c[k],q=n.data;if(null!=q){q="data:"==q.substring(0,5)?this.convertDataUri(q):q;var t="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==n.aspect&&(t+="aspect=fixed;");t=t+"image="+q+";";null!=n.style&&(t+=n.style);f.appendChild(this.sidebar.createVertexTemplate(t,+n.w,n.h,"",n.title||"",!1,null,!0))}else if(null!=n.xml){var r=this.stringToCells("<"==n.xml.charAt(0)?n.xml:Graph.decompress(n.xml)),z=0==r.length?mxResources.get("drawingEmpty"):null!=n.title?n.title:"";f.appendChild(this.sidebar.createVertexTemplateFromCells(r,n.w,n.h,z,!0,null,!0))}}catch(D){z=null!=D.message?mxResources.get("error")+": "+D.message:String(D),t=this.sidebar.createVertexTemplateFromCells(null,n.w,n.h,z,!0,null,!0),f.appendChild(t)}};EditorUi.prototype.getResource=function(c){return null!=+c?c[mxLanguage]||c.main:null};"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"sketch"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(c,f,k,n,q,t,r){c=new ImageDialog(this,c,f,k,n,q,t,r);this.showDialog(c.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,+!0);c.init()};EditorUi.prototype.showLocalStorageDialog=function(c,f,k,n,q,t){var r=localStorage.getItem(f);c=new TextareaDialog(this,c,null!=r?JSON.stringify(JSON.parse(r),null,2):"",mxUtils.bind(this,function(z){if(null!=z)try{if(null!=t&&t(z),z==r)this.hideDialog();else{if(0<z.length){var D=JSON.parse(z);localStorage.setItem(f,JSON.stringify(D))}else localStorage.removeItem(f);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(H){this.handleError(H)}}),null,mxResources.get("close"),+null,null,null,!0,null,null,q,k,n);this.showDialog(c.container,660,480,!0,!1,null,null,null,new mxRectangle(0,0,null!=k&&2<k.length?500:440,280));c.init()};EditorUi.prototype.showConfigurationEditorDialog=function(c,f,k,n){function q(Q){U?H.confirm(mxResources.get("allChangesLost"),null,Q,mxResources.get("cancel"),mxResources.get("discardChanges")):Q()}function t(){S=!0;H.hideDialog()}function r(Q,ba){var T=document.createElement("div");T.style.padding="4px 16px";T.style.cursor="pointer";T.style.fontSize=+"13px";T.style.borderBottom=ba?"2px solid #29b6f2":"2px solid transparent";T.style.fontWeight=ba?"bold":"normal";T.style.color=ba?"":"#888";T.style.userSelect="none";mxUtils.write(T,Q);return T}function z(Q,ba){Q.style.borderBottomColor=ba?"#29b6f2":"transparent";Q.style.fontWeight=ba?"bold":"normal";Q.style.color=ba?"":"#888"}function D(Q){if(Q!==N){if("json"===N)try{var ba=JSON.parse(F.value);I=ba;x.setConfig(ba)}catch(T){}else"json"===Q&&null!=I&&(F.value=JSON.stringify(I,null,2));d.style.display=+"editor"===Q?"":"none";C.style.display="json"===Q?"":"none";z(ja,"editor"===Q);z(v,"json"===Q);"json"===Q&&F.focus();N=Q}}var H=this,B=localStorage.getItem(f),W={};try{null!=B&&(W=JSON.parse(B))}catch(Q){}var I=W,N="editor",U=!1,S=!1;c=document.createElement("div");c.style.position="absolute";c.style.top="20px";c.style.bottom="20px";c.style.left="20px";c.style.right="20px";var V=document.createElement("div");V.style.position="absolute";V.style.left="0";V.style.right="0";V.style.top="0";V.style.height=+"28px";V.style.display="flex";V.style.alignItems="end";V.style.borderBottom="1px solid #d0d0d0";var ja=r(mxResources.get("editor"),!0),v=r(mxResources.get("formatJson"),!1);V.appendChild(ja);V.appendChild(v);c.appendChild(V);var d=document.createElement("div");d.style.position="absolute";d.style.left="0";d.style.right="0";d.style.top="30px";d.style.bottom="50px";V={};try{var m=H.editor.graph;null!=m.currentVertexStyle&&(V.currentVertexStyle=m.currentVertexStyle);null!=m.currentEdgeStyle&&(V.currentEdgeStyle=+m.currentEdgeStyle)}catch(Q){}var x=DrawioConfigEditor.install(d,{initialConfig:W,editorContext:V,darkMode:null!=Editor.isDarkMode&&Editor.isDarkMode(),highContrast:H.isHighContrast(),onConfigChanged:function(Q){I=Q;U=!0}}),C=document.createElement("div");C.style.position="absolute";C.style.left="0";C.style.right="0";C.style.top="30px";C.style.bottom="50px";C.style.display="none";var F=document.createElement("textarea");F.setAttribute("wrap","off");F.setAttribute("spellcheck","false");F.setAttribute("autocorrect",+"off");F.setAttribute("autocomplete","off");F.setAttribute("autocapitalize","off");F.style.resize="none";F.style.outline="none";F.style.boxSizing="border-box";F.style.width="100%";F.style.height="100%";try{F.value=null!=B?JSON.stringify(JSON.parse(B),null,2):""}catch(Q){F.value=B||""}mxEvent.addListener(F,"input",function(){U=!0});C.appendChild(F);c.appendChild(d);c.appendChild(C);mxEvent.addListener(ja,"click",function(){D("editor")});mxEvent.addListener(v,"click",function(){D("json")});var G=document.createElement("div");+G.style.position="absolute";G.style.left="0";G.style.right="0";G.style.bottom="0";G.style.height="46px";G.style.display="flex";G.style.whiteSpace="nowrap";G.style.alignItems="center";G.style.justifyContent="end";G.style.paddingTop="10px";G.style.paddingBottom="10px";G.style.boxSizing="border-box";null==n||H.isOffline()||G.appendChild(H.createHelpIcon(n));if(null!=k)for(n=0;n<k.length;n++)(function(Q,ba,T){Q=mxUtils.button(Q,function(Z){"json"!==N&&null!=I&&(F.value=JSON.stringify(I,null,2));ba(Z,+F)});null!=T&&Q.setAttribute("title",T);Q.className="geBtn";G.appendChild(Q)})(k[n][0],k[n][1],k[n][2]);n=mxUtils.button(mxResources.get("close"),function(){q(t)});n.setAttribute("title","Escape");n.className="geBtn";var K=mxUtils.button(mxResources.get("apply"),function(){if(U){if("json"!==N){var Q=x.getInvalidFields();if(0<Q.length){H.handleError({message:mxResources.get("invalidInput")+": "+Q.join(", ")});return}Q=null!=I&&0<Object.keys(I).length?JSON.stringify(I,null,2):""}else Q=F.value;try{if(Q==+B)U=!1,t();else{if(0<Q.length){var ba=JSON.parse(Q);localStorage.setItem(f,JSON.stringify(ba))}else localStorage.removeItem(f);U=!1;t();H.alert(mxResources.get("restartForChangeRequired"))}}catch(T){H.handleError(T)}}else t()});K.className="geBtn gePrimaryBtn";H.editor.cancelFirst?(G.appendChild(n),G.appendChild(K)):(G.appendChild(K),G.appendChild(n));c.appendChild(G);mxEvent.addListener(c,"keydown",function(Q){13===Q.keyCode&&mxEvent.isControlDown(Q)&&K.click()});H.showDialog(c,800,600,!0,!1,function(Q,+ba){if(!S&&U)return q(t),!1},null,null,new mxRectangle(0,0,null!=k&&2<k.length?500:440,400));F.scrollTop=0};EditorUi.prototype.showLanguageDialog=function(){function c(){var D=mxLanguage;null==urlParams.lang&&isLocalStorage&&(D=mxSettings.settings.language);for(var H=!1===navigator.onLine,B=Object.create(null),W=0;W<q.length;W++){var I=q[W];B[I.code]=I.box.checked;I.box.disabled="en"==I.code||I.code==D&&I.box.checked||H&&!I.box.checked;I.box.style.cursor=I.box.disabled?"":"pointer";I.row.style.cursor=+I.box.disabled?"default":"pointer";H&&!I.box.checked?I.row.setAttribute("title",mxResources.get("notInOffline")):I.row.removeAttribute("title")}}var f=this,k=document.createElement("div");k.style.position="absolute";k.style.top="10px";k.style.bottom="10px";k.style.left="16px";k.style.right="16px";var n=document.createElement("div");n.style.position="absolute";n.style.left="0";n.style.right="0";n.style.top="0";n.style.bottom="46px";n.style.overflow="auto";k.appendChild(n);var q=[];f.getOfflineLanguages(function(D){for(var H=+Object.create(null),B=0;B<D.length;B++)H[D[B]]=!0;D=[];for(var W in mxLanguageMap)"i18n"!=W&&""!=mxLanguageMap[W]&&D.push({code:W,name:mxLanguageMap[W]});D.sort(function(N,U){return N.name.localeCompare(U.name)});B=document.createElement("div");B.style.padding="8px 4px 0 4px";B.style.color="#888";mxUtils.write(B,mxResources.get("offlineLanguages",null,"Languages available offline"));n.appendChild(B);var I=document.createElement("div");I.style.display="grid";I.style.gridTemplateColumns="repeat(auto-fill, minmax(170px, 1fr))";+I.style.gap="2px 16px";I.style.padding="8px 4px";I.style.cursor="pointer";for(B=0;B<D.length;B++)(function(N,U){var S=document.createElement("label");S.style.display="flex";S.style.alignItems="center";S.style.padding="4px";S.style.overflow="hidden";S.style.whiteSpace="nowrap";var V=document.createElement("span");V.style.display="inline-flex";V.style.alignItems="center";V.style.justifyContent="center";V.style.position="relative";V.style.width="16px";V.style.height="16px";V.style.margin="0 8px 0 0";+V.style.flexShrink="0";var ja=document.createElement("input");ja.setAttribute("type","checkbox");ja.style.margin="0";ja.checked="en"==N||1==H[N];q.push({code:N,box:ja,row:S});mxEvent.addListener(ja,"change",function(){ja.style.display="none";var d=f.createSpinner(null,null,4);d.spin(V);var m=function(){f.getOfflineLanguages(function(x){d.stop();ja.style.display="";ja.checked=0<=mxUtils.indexOf(x,N);c()});f.updateOfflineLanguages()};ja.checked?fetch("resources/dia_"+N+".txt").then(m,m):f.removeOfflineLanguage(N,+m)});V.appendChild(ja);S.appendChild(V);var v=document.createElement("span");v.style.overflow="hidden";v.style.textOverflow="ellipsis";v.style.lineHeight="normal";mxUtils.write(v,U);S.appendChild(v);I.appendChild(S)})(D[B].code,D[B].name);n.appendChild(I);c()});var t=function(){c()};mxEvent.addListener(window,"online",t);mxEvent.addListener(window,"offline",t);var r=document.createElement("div");r.style.position="absolute";r.style.left="0";r.style.right="0";r.style.bottom="0";r.style.height="46px";+r.style.display="flex";r.style.whiteSpace="nowrap";r.style.alignItems="center";r.style.justifyContent="end";r.style.paddingTop="10px";r.style.paddingBottom="10px";r.style.boxSizing="border-box";var z=mxUtils.button(mxResources.get("close"),function(){f.hideDialog()});z.setAttribute("title","Escape");z.className="geBtn gePrimaryBtn";r.appendChild(z);k.appendChild(r);this.showDialog(k,480,460,!0,!0,function(){mxEvent.removeListener(window,"online",t);mxEvent.removeListener(window,"offline",t)})};EditorUi.prototype.showBackgroundImageDialog=+function(c,f,k,n){c=null!=c?c:mxUtils.bind(this,function(q,t,r){t||(q=new ChangePageSetup(this,n?r:null,q),q.ignoreColor=!n,this.editor.graph.model.execute(q))});c=new BackgroundImageDialog(this,c,f,k,n);this.showDialog(c.container,400,null,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,f,k,n,q){c=new LibraryDialog(this,c,f,k,n,q);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(t){t&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}),!1,!1,+new mxRectangle(0,0,480,320));c.init()};EditorUi.prototype.getCollapsedSections=function(){return mxSettings.getCollapsedSections()};EditorUi.prototype.getLibraryExpanded=function(c,f){var k=mxSettings.getCollapsedLibraries();return null!=k[c]?!k[c]:f};EditorUi.prototype.setLibraryExpanded=function(c,f){if(null!=c){var k=mxSettings.getCollapsedLibraries();k[c]=!f;mxSettings.setCollapsedLibraries(k);mxSettings.save()}};var p=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(c){var f=+p.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(k){this.editor.graph.isSelectionEmpty()&&f.refresh()}));return f};EditorUi.prototype.handleError=function(c,f,k,n,q,t,r){var z=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},D=null!=c&&null!=c.error?c.error:c;if(null!=c&&("1"==urlParams.test||null!=c.stack)&&null!=c.message)try{"1"!=urlParams.test&&!r||null==window.console||console.error("EditorUi.handleError:",c)}catch(I){}if(null!=+D||null!=f){r=mxUtils.htmlEntities(mxResources.get("unknownError"),!1);var H=mxResources.get("ok"),B=null;f=null!=f?f:mxResources.get("error");if(null!=D){null!=D.retry&&(H=mxResources.get("cancel"),B=function(){z();D.retry()});if(404==D.code||404==D.status||403==D.code){r=403==D.code?null!=D.message?mxUtils.htmlEntities(D.message,!1):mxUtils.htmlEntities(mxResources.get("accessDenied"),!1):null!=q?q:mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied")+(null!=this.drive&&null!=this.drive.user?+" ("+this.drive.user.email+")":""),!1);var W=null!=q?null:null!=t?t:window.location.hash;if(null!=W&&("#G"==W.substring(0,2)||"#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D"==W.substring(0,45))&&(null!=c&&null!=c.error&&(null!=c.error.errors&&0<c.error.errors.length&&"fileAccess"==c.error.errors[0].reason||null!=c.error.data&&0<c.error.data.length&&"fileAccess"==c.error.data[0].reason)||404==D.code||404==D.status)){W="#U"==W.substring(0,2)?W.substring(45,W.lastIndexOf("%26ex")):W.substring(2);this.showError(f,+r,mxResources.get("tryOpeningViaThisPage"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+W);null!=n&&n()}),B,mxResources.get("changeUser"),mxUtils.bind(this,function(){function I(){V.innerText="";for(var ja=0;ja<N.length;ja++){var v=document.createElement("option");mxUtils.write(v,N[ja].displayName);v.value=ja;V.appendChild(v);v=document.createElement("option");v.innerHTML=" ";mxUtils.write(v,"<"+N[ja].email+">");v.setAttribute("disabled",+"disabled");V.appendChild(v)}v=document.createElement("option");mxUtils.write(v,mxResources.get("addAccount"));v.value=N.length;V.appendChild(v)}var N=this.drive.getUsersList(),U=document.createElement("div"),S=document.createElement("div");S.style.marginBottom="6px";mxUtils.write(S,mxResources.get("changeUser")+": ");U.appendChild(S);var V=document.createElement("select");V.style.width="100%";I();mxEvent.addListener(V,"change",mxUtils.bind(this,function(){var ja=V.value,v=N.length!=ja;v&&this.drive.setUser(N[ja]);+this.drive.authorize(v,mxUtils.bind(this,function(){v||(N=this.drive.getUsersList(),I())}),mxUtils.bind(this,function(d){this.handleError(d)}),!0)}));U.appendChild(V);U=new CustomDialog(this,U,mxUtils.bind(this,function(){this.loadFile(window.location.hash.substr(1),!0)}));this.showDialog(U.container,300,100,!0,!0)}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.hideDialog();null!=k&&k()}),520,150);return}}null!=D.message?r=""==D.message&&null!=D.name?mxUtils.htmlEntities(D.name,!1):+mxUtils.htmlEntities(D.message,!1):null!=D.response&&null!=D.response.error?r=mxUtils.htmlEntities(D.response.error,!1):"undefined"!==typeof window.App&&(D.code==App.ERROR_TIMEOUT?r=mxUtils.htmlEntities(mxResources.get("timeout"),!1):D.code==App.ERROR_BUSY?r=mxUtils.htmlEntities(mxResources.get("busy"),!1):"string"===typeof D&&0<D.length&&(r=mxUtils.htmlEntities(D,!1)))}q=c=null;null!=D&&null!=D.helpLink?(c=mxResources.get("help"),q=mxUtils.bind(this,function(){return this.editor.graph.openLink(D.helpLink)})):+null!=D&&null!=D.ownerEmail?(c=mxResources.get("contactOwner"),r+=mxUtils.htmlEntities(" ("+c+": "+D.ownerEmail+")",!1),q=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(D.ownerEmail))})):null!=D&&null!=D.alternateAction&&(c=D.alternateAction.label,q=D.alternateAction.funct);this.showError(f,r,H,k,B,null,null,c,q,null!=D?D.dialogWidth:null,null,null,n?k:null)}else null!=k&&k()};EditorUi.prototype.alert=function(c,f,k){c=new ErrorDialog(this,null,c,mxResources.get("ok"),+f);this.showDialog(c.container,k||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,f,k,n,q,t){c=null!=c?c:"";var r=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},z=Math.min(220,28*Math.ceil(Math.max(1,c.length)/50));c=new ConfirmDialog(this,c,function(){r();null!=f&&f()},function(){r();null!=k&&k()},n,q,null,null,null,null,z);this.showDialog(c.container,340,46+z,!0,t);c.init()};EditorUi.prototype.showBanner=function(c,f,k,n,q,t,r,z,D){t=!1;if(!(this.bannerShowing||+this["hideBanner"+c]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+c])){r=null!=r?r:"translate(-50%,120%)";z=null!=z?z:"translate(-50%,0%)";var H=document.createElement("div");H.className="geBtn gePrimaryBtn geBanner"+(q?" geSmallBanner":"");H.style.zIndex=mxPopupMenu.prototype.zIndex;mxUtils.setPrefixedStyle(H.style,"transform",r);mxUtils.setPrefixedStyle(H.style,"transition","all 1000ms ease");null!=D&&mxUtils.setPrefixedStyle(H.style,"transform-origin",D);D=D=document.createElement("img");+D.setAttribute("src",Editor.crossImage);D.setAttribute("title",mxResources.get(n?"doNotShowAgain":"close"));D.setAttribute("border","0");q||(t=document.createElement("img"),t.setAttribute("src",IMAGE_PATH+"/logo.png"),t.setAttribute("border","0"),t.setAttribute("align","absmiddle"),t.style.cssText="margin-top:-4px;margin-left:8px;margin-right:12px;width:26px;height:26px;",H.appendChild(t),D.style.cssText=(q?"right:6px;top:9px;":"right:10px;top:12px;")+"position:absolute;filter:invert(1);padding:6px;margin:-6px;cursor:default;",+H.appendChild(D));mxUtils.write(H,f);document.body.appendChild(H);this.bannerShowing=!0;q&&(D.className="geLibraryButton",H.appendChild(D));f=document.createElement("div");f.style.cssText="display:flex;align-items:center;justify-content:center;padding-top:6px;font-size:11px;text-align:center;font-weight:normal;";var B=document.createElement("input");B.setAttribute("type","checkbox");B.setAttribute("id","geDoNotShowAgainCheckbox");B.style.marginRight="6px";if(!n){f.appendChild(B);var W=document.createElement("label");+W.setAttribute("for","geDoNotShowAgainCheckbox");mxUtils.write(W,mxResources.get("doNotShowAgain"));f.appendChild(W);H.style.paddingBottom=q?"16px":"30px";H.appendChild(f)}var I=mxUtils.bind(this,function(){null!=H.parentNode&&(H.parentNode.removeChild(H),this.bannerShowing=!1,B.checked||n)&&(this["hideBanner"+c]=!0,isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings["close"+c]=Date.now(),mxSettings.save()))});null!=D&&mxEvent.addListener(D,"click",mxUtils.bind(this,function(U){mxEvent.consume(U);+I()}));var N=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(H.style,"transform",r);window.setTimeout(mxUtils.bind(this,function(){I()}),1E3)});mxEvent.addListener(H,"click",mxUtils.bind(this,function(U){var S=mxEvent.getSource(U);S!=B&&S!=W?(null!=k&&k(),I(),mxEvent.consume(U)):N()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(H.style,"transform",z)}),500);window.setTimeout(N,q?5E3:3E4);t=!0}return t};EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=+new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.createImageDataUri=function(c,f,k,n){c=c.toDataURL("image/"+k);if(null!=c&&6<c.length)null!=f&&(c=Editor.writeGraphModelToPng(c,"tEXt","mxfile",encodeURIComponent(f))),0<n&&(c=Editor.writeGraphModelToPng(c,"pHYs","dpi",n));else throw{message:mxResources.get("unknownError")};return c};EditorUi.prototype.saveCanvas=function(c,f,k,n,q){var t="jpeg"==k?"jpg":k;n=this.getBaseFilename(n)++(null!=f?".drawio":"")+"."+t;c=this.createImageDataUri(c,f,k,q);this.saveData(n,t,c.substring(c.lastIndexOf(",")+1),"image/"+k,!0)};EditorUi.prototype.showAnimatedGifExportDialog=function(){var c=document.createElement("div");c.style.whiteSpace="nowrap";var f=document.createElement("h3");mxUtils.write(f,mxResources.get("formatAnimatedGif"));c.appendChild(f);f=document.createElement("div");f.className="geDialogSection";var k=document.createElement("div");k.className="geDialogFormRow";var n=document.createElement("span");+n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("speed")+":");k.appendChild(n);var q=document.createElement("select"),t=[{label:mxResources.get("slow"),value:8},{label:mxResources.get("medium"),value:15},{label:mxResources.get("fast"),value:24}];for(n=0;n<t.length;n++){var r=document.createElement("option");mxUtils.write(r,t[n].label);r.setAttribute("value",t[n].value);q.appendChild(r)}q.value=null!=this.lastExportFps?this.lastExportFps:15;0>q.selectedIndex&&(q.value=15);k.appendChild(q);+f.appendChild(k);k=document.createElement("div");k.className="geDialogFormRow";n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("zoom")+":");k.appendChild(n);var z=document.createElement("input");z.setAttribute("type","text");z.value=this.lastExportZoom||"100%";k.appendChild(z);f.appendChild(k);k=document.createElement("div");k.className="geDialogFormRow";n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("borderWidth")++":");k.appendChild(n);var D=document.createElement("input");D.setAttribute("type","text");D.value=this.lastExportBorder||"0";k.appendChild(D);f.appendChild(k);k=document.createElement("div");k.className="geDialogFormRow";n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("loops")+":");k.appendChild(n);var H=document.createElement("select");t=[{label:mxResources.get("forever"),value:0},{label:"1",value:1},{label:"3",value:3},{label:"5",value:5}];for(n=+0;n<t.length;n++)r=document.createElement("option"),mxUtils.write(r,t[n].label),r.setAttribute("value",t[n].value),H.appendChild(r);H.value=null!=this.lastExportLoops?this.lastExportLoops:0;0>H.selectedIndex&&(H.value=0);k.appendChild(H);f.appendChild(k);k=document.createElement("div");k.className="geDialogFormRow";n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("appearance")+":");k.appendChild(n);var B=document.createElement("select");n=document.createElement("option");+n.setAttribute("value","light");mxUtils.write(n,mxResources.get("light"));B.appendChild(n);n=document.createElement("option");n.setAttribute("value","dark");mxUtils.write(n,mxResources.get("dark"));B.appendChild(n);var W=Editor.isDarkMode()?"dark":"light";B.value=null!=this.lastExportTheme?this.lastExportTheme:W;0>B.selectedIndex&&(B.value=W);k.appendChild(B);f.appendChild(k);c.appendChild(f);f=document.createElement("div");f.className="geDialogSection";var I=this.addCheckbox(f,mxResources.get("transparentBackground",+null,"Transparent Background"),null!=this.lastExportTransparent?this.lastExportTransparent:!1,null,null,null,null,null,!0);c.appendChild(f);c=new CustomDialog(this,c,mxUtils.bind(this,function(){var N=parseInt(z.value);if(isNaN(N)||0>=N)N=100;this.lastExportZoom=N+"%";this.lastExportBorder=D.value;this.lastExportFps=15!=parseInt(q.value)?parseInt(q.value):null;this.lastExportLoops=0!=parseInt(H.value)?parseInt(H.value):null;this.lastExportTransparent=I.checked?!0:null;this.lastExportTheme=B.value==+W?null:B.value;this.exportAnimatedGif({fps:parseInt(q.value),scale:N/100,border:parseInt(D.value)||0,repeat:parseInt(H.value),transparent:I.checked,theme:B.value,background:I.checked?null:null!=this.editor.graph.background&&this.editor.graph.background!=mxConstants.NONE?this.editor.graph.background:Editor.getDefaultPageBackgroundColor()})}),null,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram");this.showDialog(c.container,360,null,!0,!0,null,null,null,null,!0)};EditorUi.prototype.exportAnimatedGif=+function(c){if(this.spinner.spin(document.body,mxResources.get("exporting")))try{(new AnimatedGifExport(this)).doExport(c,mxUtils.bind(this,function(f){this.spinner.stop();if(null!=f){var k=new FileReader;k.onload=mxUtils.bind(this,function(){var n=k.result;this.saveData(this.getBaseFilename()+".gif","gif",n.substring(n.lastIndexOf(",")+1),"image/gif",!0)});k.onerror=mxUtils.bind(this,function(n){this.handleError(n)});k.readAsDataURL(f)}}),mxUtils.bind(this,function(f){this.spinner.stop();this.handleError(f)}))}catch(f){this.spinner.stop(),+this.handleError(f)}};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(c,f){c=new TextareaDialog(this,c,f,null,null,mxResources.get("close"));this.showDialog(c.container,620,460,!0,!0,null,null,null,new mxRectangle(0,0,440,280),!0);c.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(c,+f,k,n,q,t){"text/xml"!=k||/(\.drawio)$/i.test(f)||/(\.xml)$/i.test(f)||/(\.svg)$/i.test(f)||/(\.html)$/i.test(f)||(f=f+"."+(null!=t?t:"drawio"));if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||null==k||"image/"!=k.substring(0,6)?this.showTextDialog(f+":",c):this.openInNewWindow(c,k,n);else{var r=document.createElement("a");t=(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&"undefined"!==typeof r.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var z=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);+t=65==(z?parseInt(z[2],10):!1)?!1:t}if(t||this.isOffline()){r.href=URL.createObjectURL(n?this.base64ToBlob(c,k):new Blob([c],{type:k}));t?r.download=f:r.setAttribute("target","_blank");document.body.appendChild(r);try{window.setTimeout(function(){URL.revokeObjectURL(r.href)},2E4),r.click(),r.parentNode.removeChild(r)}catch(D){}}else this.createEchoRequest(c,f,k,n,q).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(c,f,k,n,q,t){c="xml="+encodeURIComponent(c);return new mxXmlRequest(SAVE_URL,+c+(null!=k?"&mime="+k:"")+(null!=q?"&format="+q:"")+(null!=t?"&base64="+t:"")+(null!=f?"&filename="+encodeURIComponent(f):"")+(n?"&binary=1":""))};EditorUi.prototype.saveLocalFile=function(c,f,k,n,q,t,r,z,D){t=null!=t?t:!1;r=null!=r?r:"vsdx"!=q&&(!mxClient.IS_IOS||!navigator.standalone);var H=mxUtils.bind(this,function(W,I,N,U){try{if("_blank"==I)if(null!=k&&"image/"==k.substring(0,6))this.openInNewWindow(c,k,n);else if(null!=k&&"text/html"==k.substring(0,9)&&c.length<EmbedDialog.maxSize){var S=new EmbedDialog(this,+c,null,null,null,null,null,null,null,!0);this.showDialog(S.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));S.init()}else null==window.open(URL.createObjectURL(new Blob([c],{type:"text/plain;charset=utf-8"})))&&mxUtils.popup(c,!0);else if(I==App.MODE_DEVICE||"download"==I)this.doSaveLocalFile(c,W,k,n,null,z);else if(null!=W&&0<W.length){var V=mxUtils.bind(this,function(ja){try{this.exportFile(c,W,k,n,I,ja)}catch(v){this.handleError(v)}});null!=U?V(U):this.pickFolder(I,V)}}catch(ja){this.handleError(ja)}});q=[];t||q.push(App.MODE_BROWSER);r||q.push("_blank");var B=new SaveDialog(this,f,mxUtils.bind(this,function(W,I,N){H(W.value,I,W,N);this.hideDialog(null,null,B.container)}),q,c,k,n,D);this.showDialog(B.container,420,null!=k?114:122,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));B.init()};EditorUi.prototype.openInNewWindow=function(c,f,k){null==window.open(URL.createObjectURL(k?this.base64ToBlob(c,f):new Blob([c],{type:f})))&&mxUtils.popup(c,!0)};var g=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};EditorUi.prototype.addChromelessToolbarItems=function(c){if(null!=urlParams.tags){var f=null;try{var k=urlParams.tags;try{k=decodeURIComponent(k)}catch(z){}f=JSON.parse(k)}catch(z){}if(null!=f){var n=this.editor.graph,q=mxUtils.bind(this,function(){var z=null!=this.currentPage?this.currentPage.getId():0;z=f[z];n.hiddenTags=null!=z&&0<z.length?z:[];n.refresh()});this.editor.addListener("fileLoaded",mxUtils.bind(this,function(){q();n.isLightboxView()&&this.lightboxFit();this.chromelessResize&&this.chromelessResize()}));this.editor.addListener("pageSelected",q)}this.tagsDialog=this.tagsComponent=null;var t=c(mxUtils.bind(this,function(z){null==this.tagsComponent&&(this.tagsComponent=this.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return null!=this.tagsDialog}),!0),this.tagsComponent.div.getElementsByTagName("div")[0].style.position=@@ -14292,10 +14379,11 @@ t.className="geDialogFormRow",n=document.createElement("span"),n.className="geDi!1,null,null,null,null,null,!0);mxEvent.addListener(U,"change",function(){U.checked?(v&&d.removeAttribute("disabled"),null!=B&&B.select.removeAttribute("disabled"),ja.removeAttribute("disabled"),m.removeAttribute("disabled"),x.removeAttribute("disabled")):(null!=B&&B.select.setAttribute("disabled","disabled"),d.setAttribute("disabled","disabled"),ja.setAttribute("disabled","disabled"),m.setAttribute("disabled","disabled"),x.setAttribute("disabled","disabled"));ja.checked&&U.checked?V.getEditSelect().removeAttribute("disabled"):V.getEditSelect().setAttribute("disabled","disabled")});q=new CustomDialog(this,z,mxUtils.bind(this,function(){c(W.checked,I.checked,N.checked,U.checked,V.getLink(),d.checked,m.checked,x.checked,null!=S?S.value:null,null!=B?null!=B.row&&"allPages"==B.select.value:null)}),null,mxResources.get("embed"),q);this.showDialog(q.container,280,null,!0,!0)};EditorUi.prototype.createEmbedImage=function(c,f,k,n,q,t,r,z,D,H){function B(S){var V=" ",ja="";n&&(V=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(null!=I?"&page="+I:"")+(q?"&edit=_blank":"")+(t?"&layers=1":"")+(r?"&link-icons=1":"")+(z?"&tooltip-icons=1":"")+"');}})(this);\"",ja+="cursor:pointer;");c&&(ja+="max-width:100%;");var v="";k&&(v=' width="'+Math.round(W.width)+'" height="'+Math.round(W.height)+'"');D('<img src="'+S+'"'+v+(""!=ja?' style="'+ja+'"':"")+V+"/>")}var W=this.editor.graph.getGraphBounds(),I=this.getSelectedPageIndex();if(this.editor.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,-function(S){var V=n?this.getFileData(!0):null;S=this.createImageDataUri(S,V,"png");B(S)}),null,null,null,mxUtils.bind(this,function(S){H({message:mxResources.get("unknownError")})}),null,!0,k?2:1,null,f,null,null,Editor.defaultBorder);else if(f=this.getFileData(!0),W.width*W.height<=MAX_AREA&&f.length<=MAX_REQUEST_SIZE){var N="";k&&(N="&w="+Math.round(2*W.width)+"&h="+Math.round(2*W.height));var U=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(n?"1":"0")+N+"&xml="+encodeURIComponent(f));-U.send(mxUtils.bind(this,function(){200<=U.getStatus()&&299>=U.getStatus()?B("data:image/png;base64,"+U.getText()):H({message:mxResources.get("unknownError")})}))}else H({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(c,f,k,n,q,t,r,z,D,H,B){D=null!=D?D:"auto";H=null!=H?H:!0;var W=this.getSelectedPageIndex(),I=mxUtils.lightDarkColorSupported,N=mxUtils.preferDarkColor;if("light"==D||"dark"==D)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor="dark"==-D;var U=null;try{U=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!k,D)}finally{mxUtils.lightDarkColorSupported=I,mxUtils.preferDarkColor=N}D=U.getElementsByTagName("a");if(null!=D)for(I=0;I<D.length;I++)N=D[I].getAttribute("href"),null!=N&&"#"==N.charAt(0)&&"_blank"==D[I].getAttribute("target")&&D[I].removeAttribute("target");n&&U.setAttribute("content",this.getFileData(!0,null,null,null,null,!H));f&&this.editor.graph.addSvgShadow(U);if(k){var S=" ",V="";n&&(S="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+-EditorUi.lightboxHost+"/?client=1"+(H&&null!=W?"&page="+W:"")+(q?"&edit=_blank":"")+(t?"&layers=1":"")+(r?"&link-icons=1":"")+(z?"&tooltip-icons=1":"")+"');}})(this);\"",V+="cursor:pointer;");c&&(V+="max-width:100%;");this.editor.convertImages(U,mxUtils.bind(this,function(ja){B('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(ja))+'"'+(""!=V?' style="'+V+'"':"")+S+"/>")}))}else V="",n&&(U.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('"++function(S){var V=n?this.getFileData(!0):null;S=this.createImageDataUri(S,V,"png");B(S)}),null,null,null,mxUtils.bind(this,function(S){H({message:mxResources.get("unknownError")})}),null,!0,k?2:1,null,f,null,null,Editor.defaultBorder);else if(this.isRemoteExportEnabled())if(f=this.getFileData(!0),W.width*W.height<=MAX_AREA&&f.length<=MAX_REQUEST_SIZE){var N="";k&&(N="&w="+Math.round(2*W.width)+"&h="+Math.round(2*W.height));var U=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(n?"1":"0")++N+"&xml="+encodeURIComponent(f));U.send(mxUtils.bind(this,function(){200<=U.getStatus()&&299>=U.getStatus()?B("data:image/png;base64,"+U.getText()):H({message:mxResources.get("unknownError")})}))}else H({message:mxResources.get("drawingTooLarge")});else H({message:mxResources.get("notAvailable")})};EditorUi.prototype.createEmbedSvg=function(c,f,k,n,q,t,r,z,D,H,B){D=null!=D?D:"auto";H=null!=H?H:!0;var W=this.getSelectedPageIndex(),I=mxUtils.lightDarkColorSupported,N=mxUtils.preferDarkColor;if("light"==+D||"dark"==D)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor="dark"==D;var U=null;try{U=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!k,D)}finally{mxUtils.lightDarkColorSupported=I,mxUtils.preferDarkColor=N}D=U.getElementsByTagName("a");if(null!=D)for(I=0;I<D.length;I++)N=D[I].getAttribute("href"),null!=N&&"#"==N.charAt(0)&&"_blank"==D[I].getAttribute("target")&&D[I].removeAttribute("target");n&&U.setAttribute("content",this.getFileData(!0,null,null,null,null,+!H));f&&this.editor.graph.addSvgShadow(U);if(k){var S=" ",V="";n&&(S="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(H&&null!=W?"&page="+W:"")+(q?"&edit=_blank":"")+(t?"&layers=1":"")+(r?"&link-icons=1":+"")+(z?"&tooltip-icons=1":"")+"');}})(this);\"",V+="cursor:pointer;");c&&(V+="max-width:100%;");this.editor.convertImages(U,mxUtils.bind(this,function(ja){B('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(ja))+'"'+(""!=V?' style="'+V+'"':"")+S+"/>")}))}else V="",n&&(U.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(H&&null!=W?"&page="+W:"")+(q?"&edit=_blank":"")+(t?"&layers=1":"")+(r?"&link-icons=1":"")+(z?"&tooltip-icons=1":"")+"');}}})(this);"),V+="cursor:pointer;"),c&&(c=parseInt(U.getAttribute("width")),f=parseInt(U.getAttribute("height")),U.setAttribute("viewBox","-0.5 -0.5 "+c+" "+f),V+="max-width:100%;max-height:"+f+"px;",U.removeAttribute("height")),""!=V&&(c=U.getAttribute("style"),U.setAttribute("style",(null!=c&&0<c.length?c+" ":"")+V)),this.editor.addFontCss(U),this.editor.graph.mathEnabled&&this.editor.addMathCss(U),B(mxUtils.getXml(U))};EditorUi.prototype.timeSince=function(c){c=Math.floor((new Date-c)/1E3);var f=Math.floor(c/31536E3);if(1<f)return f+" "+mxResources.get("years");f=Math.floor(c/2592E3);if(1<f)return f+" "+mxResources.get("months");f=Math.floor(c/86400);if(1<f)return f+" "+mxResources.get("days");f=Math.floor(c/3600);if(1<f)return f+" "+mxResources.get("hours");f=Math.floor(c/60);return 1<f?f+" "+mxResources.get("minutes"):1==f?f+" "+mxResources.get("minute"):null};EditorUi.prototype.decodeNodeIntoGraph=function(c,f){if(null!=c){var k=null;if("diagram"==c.nodeName)k=c;else if("mxfile"==c.nodeName){var n=c.getElementsByTagName("diagram");if(0<n.length){k=n[0];var q=f.getGlobalVariable;f.getGlobalVariable=function(t){return"page"==t?k.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==t?1:q.apply(this,arguments)}}}null!=k&&(c=Editor.parseDiagramNode(k))}n=this.editor.graph;try{this.editor.graph=f,this.editor.setGraphXml(c)}catch(t){}finally{this.editor.graph=@@ -14562,14 +14650,14 @@ q)}catch(t){}}null!=k&&(mxUtils.setTextContent(f,k),asHtml=!1)}asHtml?Graph.remofunction(d,m,x,C){var F=d.useCssTransforms,G=d.currentTranslate,K=d.currentScale,Q=d.view.translate,ba=d.view.scale;d.useCssTransforms&&(d.useCssTransforms=!1,d.currentTranslate=new mxPoint(0,0),d.currentScale=1,d.view.translate=new mxPoint(0,0),d.view.scale=1);var T=d.getGraphBounds(),Z=0,X=0,da=mxRectangle.fromRectangle(d.pageFormat),R=f.fit||f.crop||!d.pageVisible,Y=f.scale;da.width*=d.pageScale;da.height*=d.pageScale;var ca=1;if(f.fit){ca=f.sheetsAcross;var P=f.sheetsDown;isNaN(Y)||(da.width=Math.ceil(da.width*Y),da.height=Math.ceil(da.height*Y));ca=Math.min(da.height*P/(T.height/d.view.scale),da.width*ca/(T.width/d.view.scale))}else ca=isNaN(Y)?1:Y;ca*=1;!R&&d.pageVisible?(Y=d.getPageLayout(),Z-=Y.x*da.width,X-=Y.y*da.height):R=!0;f.crop&&(f.selection&&(T=n.getBoundingBox(n.getSelectionCells())),da.width=(T.width+1)*ca/d.view.scale,da.height=(T.height+1)*ca/d.view.scale);da.width*=1;da.height*=1;C=null!=C?"page/id,"+C:null;T=f.selection?d.getBoundingBox(d.getSelectionCells()):d.getGraphBounds();if(null!=T){Y=d.view.scale/ca;P=T.width;var aa=T.height,ea=Z,na=X;R||(ea-=d.view.translate.x*ca,na-=d.view.translate.y*ca,P+=T.x,aa+=T.y);B+=Math.max(1,Math.ceil((P/Y+ea)/(da.width+1)))*Math.max(1,Math.ceil((aa/Y+na)/(da.height+1)))}W=W||B>this.maxPrintPageCount;if(!W)if(null==m){m=PrintDialog.createPrintPreview(d,ca,null,0,Z,X,R);m.title=this.getBaseFilename(!0);m.pageSelector=!1;m.mathEnabled=!1;Z=f.border;isNaN(Z)||(m.pageMargin=Z);var ta=m.writeHead;m.writeHead=function(xa,ya){ya=null!=ya?ya:-"";f.shadows||(ya+='g[style*="filter: drop-shadow("] {\n filter: none !important;{\n}\n');mxClient.IS_GC&&(ya+="@media print {\n .MathJax svg { shape-rendering: crispEdges; }\n}\n");null!=k.fontCss&&(ya+=k.fontCss);ta.apply(this,arguments);for(var Aa=d.getCustomFonts(),Ca=0;Ca<Aa.length;Ca++){var va=Aa[Ca].name,pa=Aa[Ca].url;Graph.isCssFontUrl(pa)?xa.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(pa))+'" charset="UTF-8" type="text/css">'):(xa.writeln('<style type="text/css">'),+"";f.shadows||(ya+='g[style*="filter: drop-shadow("] {\n filter: none !important;\n}\n');mxClient.IS_GC&&(ya+="@media print {\n .MathJax svg { shape-rendering: crispEdges; }\n}\n");null!=k.fontCss&&(ya+=k.fontCss);ta.apply(this,arguments);for(var Aa=d.getCustomFonts(),Ca=0;Ca<Aa.length;Ca++){var va=Aa[Ca].name,pa=Aa[Ca].url;Graph.isCssFontUrl(pa)?xa.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(pa))+'" charset="UTF-8" type="text/css">'):(xa.writeln('<style type="text/css">'),xa.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Graph.escapeCssString(va))+'";\nsrc: url("'+mxUtils.htmlEntities(Graph.escapeCssString(pa))+'");\n}'),xa.writeln("</style>"))}};if(Editor.replaceSvgDataUris){var ua=m.drawBackgroundImage;m.drawBackgroundImage=function(xa){ua.apply(this,arguments);null!=xa.node&&(EditorUi.embedSvgImages(xa.node),n.disableSvgLinks(xa.node,function(ya){ya.setAttribute("href","javascript:void(0)")}))}}var ma=m.addGraphFragment;m.addGraphFragment=function(xa,ya,Aa,Ca,va,pa){ma.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:va.classList.add("geDisableMathJax");if(this.graph.shadowVisible)for(var ha=va.getElementsByTagName("svg"),ia=0;ia<ha.length;ia++)d.addSvgShadow(ha[ia])};f.grid&&(m.gridSize=d.gridSize,m.gridSteps=d.view.gridSteps,m.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:d.view.gridColor);m.isCellVisible=f.selection?function(xa){return d.isCellSelected(xa)&&d.isCellVisible(xa)}:function(xa){return d.isCellVisible(xa)};m.open(null,null,x,!0,C,da,f.selection?d.getSelectionCells():null)}else{T=d.background;if(null==T||""==T||T==mxConstants.NONE)T="#ffffff";m.backgroundColor=T;m.autoOrigin=R;f.grid&&(m.gridSize=d.gridSize,m.gridSteps=d.view.gridSteps,m.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:d.view.gridColor);m.isCellVisible=f.selection?function(xa){return d.isCellSelected(xa)&&d.isCellVisible(xa)}:function(xa){return d.isCellVisible(xa)};m.appendGraph(d,ca,Z,X,x,!0,C,da,f.selection?d.getSelectionCells():-null);x=d.getCustomFonts();if(null!=m.wnd)for(da=0;da<x.length;da++)Z=x[da].name,X=x[da].url,Graph.isCssFontUrl(X)?m.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(X)+'" charset="UTF-8" type="text/css">'):(m.wnd.document.writeln('<style type="text/css">'),m.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Graph.escapeCssString(Z))+'";\nsrc: url("'+mxUtils.htmlEntities(Graph.escapeCssString(X))+'");\n}'),m.wnd.document.writeln("</style>"))}F&&(d.useCssTransforms=-F,d.currentTranslate=G,d.currentScale=K,d.view.translate=Q,d.view.scale=ba);return m}),z=f.pagesFrom,D=f.pagesTo,H=!f.allPages,B=0,W=!1;q=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,f);else{H&&(H=f.selection||z==t&&D==t);if(!H&&null!=this.pages&&this.pages.length){H=0;t=this.pages.length-1;f.allPages||(H=parseInt(z)-1,t=parseInt(D)-1);for(var I=H;I<=t&&!W;I++){var N=this.pages[I];z=N==this.currentPage?n:null;if(null==z){z=this.createTemporaryGraph(n.stylesheet);z.shapeForegroundColor=-n.shapeForegroundColor;z.shapeBackgroundColor=n.shapeBackgroundColor;D=!0;var U=H=!1,S=null,V=null;null==N.viewState&&null==N.root&&this.updatePageRoot(N);null!=N.viewState&&(D=N.viewState.pageVisible,H=N.viewState.mathEnabled,U=N.viewState.shadowVisible,S=N.viewState.background,V=N.viewState.backgroundImage,z.pageFormat=N.viewState.pageFormat,z.gridSize=N.viewState.gridSize,z.hiddenTags=N.viewState.hiddenTags||[]);null!=V&&null!=V.originalSrc&&(V=this.createImageForPageLink(V.originalSrc,N));z.background=-S;z.backgroundImage=null!=V?new mxImage(V.src,V.width,V.height,V.x,V.y):null;z.pageVisible=D;z.mathEnabled=H;z.shadowVisible=U;var ja=z.getGraphBounds;z.getGraphBounds=function(){var d=ja.apply(this,arguments),m=this.backgroundImage;if(null!=m&&null!=m.width&&null!=m.height){var x=this.view.translate,C=this.view.scale;d=mxRectangle.fromRectangle(d);d.add(new mxRectangle((x.x+m.x)*C,(x.y+m.y)*C,m.width*C,m.height*C))}return d};var v=z.getGlobalVariable;z.getGlobalVariable=function(d){return"page"==+null);x=d.getCustomFonts();if(null!=m.wnd)for(da=0;da<x.length;da++)Z=x[da].name,X=x[da].url,Graph.isCssFontUrl(X)?m.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(X))+'" charset="UTF-8" type="text/css">'):(m.wnd.document.writeln('<style type="text/css">'),m.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Graph.escapeCssString(Z))+'";\nsrc: url("'+mxUtils.htmlEntities(Graph.escapeCssString(X))+'");\n}'),m.wnd.document.writeln("</style>"))}F&&+(d.useCssTransforms=F,d.currentTranslate=G,d.currentScale=K,d.view.translate=Q,d.view.scale=ba);return m}),z=f.pagesFrom,D=f.pagesTo,H=!f.allPages,B=0,W=!1;q=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,f);else{H&&(H=f.selection||z==t&&D==t);if(!H&&null!=this.pages&&this.pages.length){H=0;t=this.pages.length-1;f.allPages||(H=parseInt(z)-1,t=parseInt(D)-1);for(var I=H;I<=t&&!W;I++){var N=this.pages[I];z=N==this.currentPage?n:null;if(null==z){z=this.createTemporaryGraph(n.stylesheet);+z.shapeForegroundColor=n.shapeForegroundColor;z.shapeBackgroundColor=n.shapeBackgroundColor;D=!0;var U=H=!1,S=null,V=null;null==N.viewState&&null==N.root&&this.updatePageRoot(N);null!=N.viewState&&(D=N.viewState.pageVisible,H=N.viewState.mathEnabled,U=N.viewState.shadowVisible,S=N.viewState.background,V=N.viewState.backgroundImage,z.pageFormat=N.viewState.pageFormat,z.gridSize=N.viewState.gridSize,z.hiddenTags=N.viewState.hiddenTags||[]);null!=V&&null!=V.originalSrc&&(V=this.createImageForPageLink(V.originalSrc,+N));z.background=S;z.backgroundImage=null!=V?new mxImage(V.src,V.width,V.height,V.x,V.y):null;z.pageVisible=D;z.mathEnabled=H;z.shadowVisible=U;var ja=z.getGraphBounds;z.getGraphBounds=function(){var d=ja.apply(this,arguments),m=this.backgroundImage;if(null!=m&&null!=m.width&&null!=m.height){var x=this.view.translate,C=this.view.scale;d=mxRectangle.fromRectangle(d);d.add(new mxRectangle((x.x+m.x)*C,(x.y+m.y)*C,m.width*C,m.height*C))}return d};var v=z.getGlobalVariable;z.getGlobalVariable=function(d){return"page"==d?N.getName():"pagenumber"==d?I+1:"pagecount"==d?null!=this.pages?this.pages.length:1:v.apply(this,arguments)};document.body.appendChild(z.container);this.updatePageRoot(N);z.model.setRoot(N.root)}q=r(z,q,I!=t,N.getId());z!=n&&z.container.parentNode.removeChild(z.container)}}else q=r(n);if(W)return null!=q&&null!=q.wnd&&q.wnd!=window&&q.wnd.close(),this.handleError({message:mxResources.get("drawingTooLarge")}),null;if(null==q||null==q.wnd)this.handleError({message:mxResources.get("errorUpdatingPreview")});else{q.mathEnabled&&(r=q.wnd.document,c||(q.wnd.IMMEDIATE_PRINT=!0),r.writeln('<script type="text/javascript" src="js/math-print.js">\x3c/script>'));q.closeDocument();if(Editor.expandPatternsForPrint&&null!=q.wnd)for(r=q.wnd.document.getElementsByTagName("svg"),I=0;I<r.length;I++)Editor.expandSvgPatterns(r[I]);Graph.rewritePageLinks(q.wnd.document,!0);q.mathEnabled||c||PrintDialog.printPreview(q)}return q}};EditorUi.prototype.addFileDropHandler=function(c){if(Graph.fileSupport)for(var f=null,k=0;k<c.length;k++)mxEvent.addListener(c[k],"dragleave",function(n){null!=f&&(f.parentNode.removeChild(f),f=null);n.stopPropagation();n.preventDefault()}),mxEvent.addListener(c[k],"dragover",mxUtils.bind(this,function(n){(this.editor.graph.isEnabled()||"1"!=urlParams.embed)&&null==f&&(f=this.highlightElement());n.stopPropagation();n.preventDefault()})),mxEvent.addListener(c[k],"drop",mxUtils.bind(this,function(n){null!=f&&(f.parentNode.removeChild(f),f=null);if(this.editor.graph.isEnabled()||"1"!=urlParams.embed)if(0<@@ -14624,36 +14712,36 @@ B.action){this.sendEmbeddedSvgExport(!0);return}if("export"==B.action){if("png"=B.scale,B.border,B.shadow,"auto",null,B.embedFonts);else{this.editor.graph.setEnabled(!0);this.spinner.stop();var Ba=this.createLoadMessage("export");Ba.format=B.format;Ba.message=S;Ba.data=ka;Ba.svg=ra;Ba.xml=X;z.postMessage(JSON.stringify(Ba),"*")}}),R=mxUtils.bind(this,function(ka){null==ka&&(ka=Editor.blankImage);"xmlpng"==B.format&&(ka=Editor.writeGraphModelToPng(ka,"tEXt","mxfile",encodeURIComponent(X)));F!=this.editor.graph&&F.container.parentNode.removeChild(F.container);da(ka)}),Y=B.pageId||(null!=this.pages?B.currentPage?this.currentPage.getId():this.pages[0].getId():null);if(this.editor.isExportToCanvas()){var ca=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=Y){var ka=F.getGlobalVariable;F=this.createTemporaryGraph(F.getStylesheet());for(var ra,Ba=0;Ba<this.pages.length;Ba++)if(this.pages[Ba].getId()==Y){ra=this.updatePageRoot(this.pages[Ba]);break}null==ra&&(ra=this.currentPage);F.getGlobalVariable=function(La){return"page"==La?ra.getName():"pagenumber"==La?1:ka.apply(this,arguments)};document.body.appendChild(F.container);F.model.setRoot(ra.root)}if(null!=B.layerIds){var qa=F.model,Ea=qa.getChildCells(qa.getRoot()),Ga=Object.create(null);for(Ba=0;Ba<B.layerIds.length;Ba++)Ga[B.layerIds[Ba]]=!0;for(Ba=0;Ba<Ea.length;Ba++)qa.setVisible(Ea[Ba],Ga[Ea[Ba].id]||!1)}Ba=null;B.keepTheme&&(Ba=Editor.isDarkMode()?"dark":"light");null==B.width&&0<this.maxCanvasExportArea&&(Ea=F.getGraphBounds(),Ga=null!=B.border?B.border:0,qa=Math.ceil(Ea.width/F.view.scale)+-2*Ga,Ea=Math.ceil(Ea.height/F.view.scale)+2*Ga,Ga=null!=B.scale?B.scale:1,qa*Ea*Ga*Ga>this.maxCanvasExportArea&&(B.scale=Math.sqrt(this.maxCanvasExportArea/(qa*Ea))));this.editor.exportToCanvas(mxUtils.bind(this,function(La){R(La.toDataURL("image/png"))}),B.width,null,B.background,mxUtils.bind(this,function(){R(null)}),null,null,B.scale,B.transparent,B.shadow,null,F,B.border,null,B.grid,Ba,B.size)});null!=B.xml&&0<B.xml.length&&(k=!0,this.setFileData(X),k=!1);ca()}else(new mxXmlRequest(EXPORT_URL,-"format=png&embedXml="+("xmlpng"==B.format?"1":"0")+(null!=Y?"&pageId="+Y:"")+(null!=B.layerIds&&0<B.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:B.layerIds})):"")+(null!=B.scale?"&scale="+B.scale:"")+"&base64=1&xml="+encodeURIComponent(X))).send(mxUtils.bind(this,function(ka){200<=ka.getStatus()&&299>=ka.getStatus()?da("data:image/png;base64,"+ka.getText()):R(null)}),mxUtils.bind(this,function(){R(null)}))}}else if(ca=mxUtils.bind(this,function(){var ka=this.createLoadMessage("export");-ka.message=B;if("html2"==B.format||"html"==B.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var ra=this.getXmlFileData();ka.xml=mxUtils.getXml(ra);ka.data=this.getFileData(null,null,!0,null,null,null,ra);ka.format=B.format}else if("html"==B.format)ra=this.editor.getGraphXml(),ka.data=this.getHtml(ra,this.editor.graph),ka.xml=mxUtils.getXml(ra),ka.format=B.format;else{if("xml"==B.format)ka.xml=this.getFileData(!0),ka.format=B.format,z.postMessage(JSON.stringify(ka),"*");else if("json"==-B.format)ka.format=B.format,ka.data=this.createJsonForExport(0!=B.allPages,1==B.includeData,1==B.compressed,1==B.selection),z.postMessage(JSON.stringify(ka),"*");else{mxSvgCanvas2D.prototype.foAltText=null;var Ba=null!=B.background?B.background:this.editor.graph.background;Ba==mxConstants.NONE&&(Ba=null);ka.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);ka.format="svg";var qa=mxUtils.bind(this,function(Ha){this.editor.graph.setEnabled(!0);this.spinner.stop();ka.data=B.asText?-Ha:Editor.createSvgDataUri(Ha);z.postMessage(JSON.stringify(ka),"*")}),Ea="auto";B.keepTheme&&(Ea=Editor.isDarkMode()?"dark":"light");null!=B.theme&&(Ea=B.theme);if("xmlsvg"==B.format){if(null==B.spin&&null==B.spinKey||this.spinner.spin(document.body,null!=B.spinKey?mxResources.get(B.spinKey):B.spin)){Ea=null;if(this.isAutoDarkMode()||Editor.isDarkMode())Ea="auto";null!=B.theme&&(Ea=B.theme);this.getEmbeddedSvg(ka.xml,this.editor.graph,null,!0,qa,null,null,B.embedImages,Ba,B.scale,B.border,B.shadow,-Ea,B.embedCellMetadata,B.embedFonts)}}else if(null==B.spin&&null==B.spinKey||this.spinner.spin(document.body,null!=B.spinKey?mxResources.get(B.spinKey):B.spin)){this.editor.graph.setEnabled(!1);var Ga=this.editor.graph.createSvgImageExport(!1,B.embedCellMetadata?!0:!1);ra=Object.create(null);var La=this.getSvgWithFontLookup(ra,Ga,mxUtils.bind(this,function(){return this.editor.graph.getSvg(Ba,B.scale,B.border,null,null,null,null,Ga,null,this.editor.graph.shadowVisible||B.shadow,null,Ea)}));(this.editor.graph.shadowVisible||-B.shadow)&&this.editor.graph.addSvgShadow(La);this.embedFonts(La,mxUtils.bind(this,function(Ha){B.embedImages||null==B.embedImages?this.editor.convertImages(Ha,mxUtils.bind(this,function(Oa){qa(mxUtils.getXml(Oa))})):qa(mxUtils.getXml(Ha))}),B.embedFonts,ra)}}return}z.postMessage(JSON.stringify(ka),"*")}),null!=B.xml&&0<B.xml.length){if(this.editor.graph.mathEnabled){var P=Editor.onMathJaxDone;Editor.onMathJaxDone=function(){P.apply(this,arguments);ca()}}k=!0;this.setFileData(B.xml);k=!1;this.editor.graph.mathEnabled||-ca()}else ca();return}if("load"==B.action){U=B.toSketch;n=1==B.autosave;this.embedDiffSync=null!=B.diffSync&&!1!==B.diffSync;this.embedDiffSyncPatchOnly="object"===typeof B.diffSync&&null!=B.diffSync&&1==B.diffSync.patchOnly;this.embedExportProtocol=1==B.exportProtocol;var aa=B.sourceMetadata||null;I=null!=B.layout?B.layout:null;this.hideDialog();null!=B.modified&&null==urlParams.modified&&(urlParams.modified=B.modified);null!=B.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=B.saveAndExit);-if("1"==urlParams.saveAndExit||"1"==urlParams.publishClose)if(this.actions.get("save").shortcut=null,!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(83,!0,"saveAndExit"),"1"!=urlParams.noSaveBtn&&(this.actions.get("save").shortcut=Editor.ctrlKey+"+"+Editor.shiftKey+"+S",this.keyHandler.bindAction(83,!0,"save",!0));null!=B.noSaveBtn&&null==urlParams.noSaveBtn&&(urlParams.noSaveBtn=B.noSaveBtn);if(null!=B.rough){var ea=Editor.sketchMode;this.doSetSketchMode(B.rough);ea!=Editor.sketchMode&&-this.fireEvent(new mxEventObject("sketchModeChanged"))}null!=B.dark&&this.setDarkMode(B.dark);null!=B.border&&(this.embedExportBorder=B.border);null!=B.theme&&(this.embedExportTheme=B.theme);null!=B.background&&(this.embedExportBackground=B.background);null!=B.viewport&&(this.embedViewport=B.viewport);this.embedExitPoint=null;if(null!=B.scale){var na=B.scale,ta=null!=B.scaleBorder?B.scaleBorder:this.embedExportBorder||0,ua=null!=B.border?B.border:0;W=mxUtils.bind(this,function(){var ka=this.editor.graph,-ra=ka.getGraphBounds();if(0<ra.width&&0<ra.height){var Ba=ka.view.scale;ka.view.scaleAndTranslate(na,ka.view.translate.x+ua-ra.x/Ba+ta/na,ka.view.translate.y+ua-ra.y/Ba+ta/na)}})}else if(null!=B.fit){var ma=null!=B.border?B.border:0,xa=B.maxFitScale||1;W=mxUtils.bind(this,function(){var ka=this.editor.graph,ra=ka.maxFitScale;ka.maxFitScale=xa;ka.fit(ma,null,null,null,null,!0);ka.maxFitScale=ra})}if(null!=B.scroll&&null!=B.scroll.x&&null!=B.scroll.y){var ya=B.scroll,Aa=W;W=mxUtils.bind(this,function(){null!=-Aa&&Aa();var ka=this.editor.graph,ra=ka.view.scale,Ba=ka.view.translate;mxUtils.hasScrollbars(ka.container)?(ka.container.scrollLeft=(Ba.x+ya.x)*ra,ka.container.scrollTop=(Ba.y+ya.y)*ra):ka.view.setTranslate(-ya.x,-ya.y)})}if(null!=B.rect){ua=this.embedExportBorder;this.diagramContainer.style.left=Math.max(60,B.rect.left)+"px";this.diagramContainer.style.top=Math.max(40,B.rect.top)+"px";this.minInlineWidth=B.minWidth;this.minInlineHeight=B.minHeight;this.diagramContainer.style.border="2px solid #295fcc";-this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";var Ca=B.maxFitScale,va=B.rect.width+2*ua,pa=B.rect.height+2*ua;W=mxUtils.bind(this,function(){var ka=mxUtils.getDocumentSize();va=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,va):va,ka.width-80);ka=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,pa):pa,ka.height-80);this.diagramContainer.style.width=va+"px";this.diagramContainer.style.height=ka+"px";var ra=this.editor.graph;ka=ra.maxFitScale;-ra.maxFitScale=Ca;ra.fit(2*ua,null,null,null,null,null,pa);this.setPageVisible("1"==urlParams.pv);if(null!=this.minInlineWidth&&ra.getGraphBounds().width<this.minInlineWidth){var Ba=ra.container.scrollTop;this.resetScrollbars();ra.container.scrollTop=Ba}ra.maxFitScale=ka;ra.container.scrollTop-=ua;ra.container.scrollLeft-=ua;window.setTimeout(mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("editInlineStart","data",[B]));ra.container.focus();null!=this.formatWindow&&null!=this.formatWindow.window&&-this.formatWindow.window.isVisible()&&(this.formatWindow.window.div.style.top=ra.container.style.top);var qa=ra.getGraphBounds();ra.container.clientWidth>qa.width+2*ua&&(ra.container.scrollLeft=qa.x+(qa.width+ua-ra.container.clientWidth)/2)}),10)})}null!=B.noExitBtn&&null==urlParams.noExitBtn&&(urlParams.noExitBtn=B.noExitBtn);null!=B.title&&null!=this.buttonContainer&&this.setEmbedTitle(B.title);try{B.libs&&this.sidebar.showEntries(B.libs)}catch(ka){}if(null!=B.xmlpng)B=this.extractGraphModelFromPng(B.xmlpng);-else if(null!=B.descriptor){if(B=B.descriptor,"mermaid"==B.format){if(EditorUi.isMermaidSupported()){var ha=mxUtils.bind(this,function(ka){c(ka,H,null,U);ka=this.createLoadMessage("load");ka.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!0);ka.message=S;(this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify(ka),"*");if(null!=aa&&null!=aa.key&&null!=aa.value){ka=this.editor.graph;var ra=ka.getModel().getRoot();if(null!=ra){ka.getModel().beginUpdate();try{ka.setAttributeForCell(ra,-aa.key,aa.value)}finally{ka.getModel().endUpdate()}}}}),ia=mxUtils.bind(this,function(ka){this.handleError(ka)});B.image?this.parseMermaidImage(B.data,ha,ia):this.parseMermaidDiagram(B.data,null,mxUtils.bind(this,function(ka){B.wrap&&(ka=mxMermaidToDrawio.wrapGroup(ka,B.data,EditorUi.getInsertMermaidConfig(),{normalize:!0}));ha(ka)}),ia)}else this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"));return}}else B=B.xml}else{if("merge"==B.action){var oa=-this.getCurrentFile();null!=oa&&(ja=N(B.xml),null!=ja&&""!=ja&&oa.mergeFile(new LocalFile(this,ja),mxUtils.bind(this,function(){this.embedDiffSync&&(t=this.clonePages(this.pages),q=fa());z.postMessage(JSON.stringify({event:"merge",message:B}),"*")}),function(ka){z.postMessage(JSON.stringify({event:"merge",message:B,error:ka}),"*")}))}else if("patch"==B.action){if(oa=this.getCurrentFile(),null!=oa&&null!=B.patch)try{k=!0,oa.patch([B.patch]),this.embedDiffSync&&null!=t&&(t=this.applyPatches(t,[B.patch])),-q=fa(),k=!1,Z={event:"patch",message:B},T=this.getHashValueForPages(this.pages),Z.checksum=T,null!=B.checksum&&B.checksum!=T&&(Z.checksumMismatch=!0),z.postMessage(JSON.stringify(Z),"*")}catch(ka){k=!1,z.postMessage(JSON.stringify({event:"patch",message:B,error:ka.message||ka.toString()}),"*")}}else if("getDiff"==B.action){C={event:"getDiff",message:B};if(this.embedDiffSync&&null!=t){var za=this.clonePages(this.pages);C.patch=this.diffPages(t,za);C.checksum=this.getHashValueForPages(za)}else C.xml=-fa();z.postMessage(JSON.stringify(C),"*")}else"resetDiff"==B.action?this.embedDiffSync&&(null!=B.xml?(ja=N(B.xml),oa=this.getCurrentFile(),null!=ja&&""!=ja&&null!=oa&&oa.mergeFile(new LocalFile(this,ja),mxUtils.bind(this,function(){t=this.clonePages(this.pages);q=fa();z.postMessage(JSON.stringify({event:"resetDiff",message:B,checksum:this.getHashValueForPages(this.pages)}),"*")}),function(ka){z.postMessage(JSON.stringify({event:"resetDiff",message:B,error:ka}),"*")})):(t=this.clonePages(this.pages),-q=fa(),z.postMessage(JSON.stringify({event:"resetDiff",message:B,checksum:this.getHashValueForPages(this.pages)}),"*"))):"remoteInvokeReady"==B.action?this.handleRemoteInvokeReady(z):"remoteInvoke"==B.action?this.handleRemoteInvoke(B,H.origin):"remoteInvokeResponse"==B.action?this.handleRemoteInvokeResponse(B):z.postMessage(JSON.stringify({error:"unknownMessage",data:JSON.stringify(B)}),"*");return}}catch(ka){this.handleError(ka)}}var fa=mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=-this.pages&&1<this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())}),la=mxUtils.bind(this,function(ka,ra){k=!0;try{c(ka,ra,null,U)}catch(Ba){this.handleError(Ba)}k=!1;this.editor.graph.model.prefix=Editor.guid()+"-";ra=mxUtils.bind(this,function(){null!=urlParams.modified&&this.clearStatus();q=fa();this.embedDiffSync&&(t=this.clonePages(this.pages));n&&null==f&&(f=mxUtils.bind(this,function(qa,Ea){qa=fa();if(qa!=q&&!k){Ea=this.createLoadMessage("autosave");Ea.message=S;-if(this.embedDiffSync&&null!=t){var Ga=this.clonePages(this.pages),La=this.diffPages(t,Ga);mxUtils.isEmptyObject(La)?Ea.xml=qa:(Ea.patch=La,Ea.checksum=this.getHashValueForPages(Ga),this.embedDiffSyncPatchOnly||(Ea.xml=qa));t=Ga}else Ea.xml=qa;(this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify(Ea),"*")}q=qa}),this.editor.graph.model.addListener(mxEvent.CHANGE,f),this.editor.graph.addListener("gridSizeChanged",f),this.editor.graph.addListener("shadowVisibleChanged",-f),this.addListener("pageFormatChanged",f),this.addListener("pageScaleChanged",f),this.addListener("backgroundColorChanged",f),this.addListener("backgroundImageChanged",f),this.addListener("foldingEnabledChanged",f),this.addListener("mathEnabledChanged",f),this.addListener("gridEnabledChanged",f),this.addListener("guidesEnabledChanged",f),this.addListener("tooltipsEnabledChanged",f),this.addListener("pageViewChanged",f),this.addListener("connectionPointsChanged",f),this.addListener("connectionArrowsChanged",-f));null!=W&&W();if("1"==urlParams.returnbounds||"json"==urlParams.proto){var Ba=this.createLoadMessage("load");Ba.xml=null!=I?fa():ka;this.embedDiffSync&&null!=this.pages&&(Ba.checksum=this.getHashValueForPages(this.pages));z.postMessage(JSON.stringify(Ba),"*")}});null!=I?this.executeLayoutSpec(I,ra):ra()});null!=B&&"function"===typeof B.substring&&"data:application/vnd.visio;base64,"==B.substring(0,34)?(N="0M8R4KGxGuE"==B.substring(34,45)?"raw.vsd":"raw.vsdx",this.importVisio(this.base64ToBlob(B.substring(B.indexOf(",")+-1)),function(ka){la(ka,H)},mxUtils.bind(this,function(ka){this.handleError(ka)}),N)):null!=B&&"function"===typeof B.substring&&this.isGliffyData(B,"")?this.importGliffy(B,mxUtils.bind(this,function(ka){"<mxGraphModel"==ka.substring(0,13)?la(ka,H):this.handleError({message:mxResources.get("unknownError")})}),mxUtils.bind(this,function(ka){this.handleError({message:null!=ka&&413==ka.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError")})}),""):null!=B&&"function"===typeof B.substring&&-this.isLucidChartData(B)?this.convertLucidChart(B,mxUtils.bind(this,function(ka){la(ka)}),mxUtils.bind(this,function(ka){this.handleError(ka)})):null==B||"object"!==typeof B||null==B.format||null==B.data&&null==B.url?(B=N(B),la(B,H)):this.loadDescriptor(B,mxUtils.bind(this,function(ka){la(fa(),H)}),mxUtils.bind(this,function(ka){this.handleError(ka,mxResources.get("errorLoadingFile"))}))}}));var z=this.embedMessageSource||window.opener||window.parent;r="json"==urlParams.proto?JSON.stringify({event:"init"}):-urlParams.ready||"ready";z.postMessage(r,"*");if("json"==urlParams.proto){var D=this.editor.graph.openLink;this.editor.graph.openLink=function(H,B,W){D.apply(this,arguments);z.postMessage(JSON.stringify({event:"openLink",href:H,target:B,allowOpener:W}),"*")};Editor.suppressNewWindows&&document.addEventListener("click",mxUtils.bind(this,function(H){for(var B=mxEvent.getSource(H);null!=B&&"A"!=B.nodeName;)B=B.parentNode;if(null!=B){var W=B.getAttribute("href");null==W||"#"==W.charAt(0)||"javascript:"==-W.substring(0,11)||this.editor.graph.isCustomLink(W)||(H.preventDefault(),this.editor.graph.openLink(W,B.getAttribute("target")))}}),!0)}};EditorUi.prototype.createEmbedButton=function(c,f,k,n){var q=document.createElement("button");q.className="geEmbedBtn geBtn";q.setAttribute("title",c+(null!=k?" ("+k+")":""));mxUtils.write(q,c);n&&q.classList.add("gePrimaryBtn");mxEvent.addListener(q,"click",f);return q};EditorUi.prototype.setEmbedTitle=function(c){c=this.createStatusDiv(c);null!=this.embedFilenameSpan&&-this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan);"kennedy"==Editor.currentTheme||"atlas"==Editor.currentTheme?this.menubarContainer.appendChild(c):this.buttonContainer.appendChild(c);this.embedFilenameSpan=c};EditorUi.prototype.addEmbedButtons=function(){this.dependsOnLanguage(mxUtils.bind(this,function(){var c=null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode==this.buttonContainer;this.buttonContainer.innerText="";c&&this.buttonContainer.appendChild(this.embedFilenameSpan);+2*Ga,Ea=Math.ceil(Ea.height/F.view.scale)+2*Ga,Ga=null!=B.scale?B.scale:1,qa*Ea*Ga*Ga>this.maxCanvasExportArea&&(B.scale=Math.sqrt(this.maxCanvasExportArea/(qa*Ea))));this.editor.exportToCanvas(mxUtils.bind(this,function(La){R(La.toDataURL("image/png"))}),B.width,null,B.background,mxUtils.bind(this,function(){R(null)}),null,null,B.scale,B.transparent,B.shadow,null,F,B.border,null,B.grid,Ba,B.size)});null!=B.xml&&0<B.xml.length&&(k=!0,this.setFileData(X),k=!1);ca()}else this.isRemoteExportEnabled()?+(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==B.format?"1":"0")+(null!=Y?"&pageId="+Y:"")+(null!=B.layerIds&&0<B.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:B.layerIds})):"")+(null!=B.scale?"&scale="+B.scale:"")+"&base64=1&xml="+encodeURIComponent(X))).send(mxUtils.bind(this,function(ka){200<=ka.getStatus()&&299>=ka.getStatus()?da("data:image/png;base64,"+ka.getText()):R(null)}),mxUtils.bind(this,function(){R(null)})):R(null)}}else if(ca=mxUtils.bind(this,+function(){var ka=this.createLoadMessage("export");ka.message=B;if("html2"==B.format||"html"==B.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var ra=this.getXmlFileData();ka.xml=mxUtils.getXml(ra);ka.data=this.getFileData(null,null,!0,null,null,null,ra);ka.format=B.format}else if("html"==B.format)ra=this.editor.getGraphXml(),ka.data=this.getHtml(ra,this.editor.graph),ka.xml=mxUtils.getXml(ra),ka.format=B.format;else{if("xml"==B.format)ka.xml=this.getFileData(!0),ka.format=+B.format,z.postMessage(JSON.stringify(ka),"*");else if("json"==B.format)ka.format=B.format,ka.data=this.createJsonForExport(0!=B.allPages,1==B.includeData,1==B.compressed,1==B.selection),z.postMessage(JSON.stringify(ka),"*");else{mxSvgCanvas2D.prototype.foAltText=null;var Ba=null!=B.background?B.background:this.editor.graph.background;Ba==mxConstants.NONE&&(Ba=null);ka.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);ka.format="svg";var qa=mxUtils.bind(this,function(Ha){this.editor.graph.setEnabled(!0);+this.spinner.stop();ka.data=B.asText?Ha:Editor.createSvgDataUri(Ha);z.postMessage(JSON.stringify(ka),"*")}),Ea="auto";B.keepTheme&&(Ea=Editor.isDarkMode()?"dark":"light");null!=B.theme&&(Ea=B.theme);if("xmlsvg"==B.format){if(null==B.spin&&null==B.spinKey||this.spinner.spin(document.body,null!=B.spinKey?mxResources.get(B.spinKey):B.spin)){Ea=null;if(this.isAutoDarkMode()||Editor.isDarkMode())Ea="auto";null!=B.theme&&(Ea=B.theme);this.getEmbeddedSvg(ka.xml,this.editor.graph,null,!0,qa,null,null,B.embedImages,+Ba,B.scale,B.border,B.shadow,Ea,B.embedCellMetadata,B.embedFonts)}}else if(null==B.spin&&null==B.spinKey||this.spinner.spin(document.body,null!=B.spinKey?mxResources.get(B.spinKey):B.spin)){this.editor.graph.setEnabled(!1);var Ga=this.editor.graph.createSvgImageExport(!1,B.embedCellMetadata?!0:!1);ra=Object.create(null);var La=this.getSvgWithFontLookup(ra,Ga,mxUtils.bind(this,function(){return this.editor.graph.getSvg(Ba,B.scale,B.border,null,null,null,null,Ga,null,this.editor.graph.shadowVisible||+B.shadow,null,Ea)}));(this.editor.graph.shadowVisible||B.shadow)&&this.editor.graph.addSvgShadow(La);this.embedFonts(La,mxUtils.bind(this,function(Ha){B.embedImages||null==B.embedImages?this.editor.convertImages(Ha,mxUtils.bind(this,function(Oa){qa(mxUtils.getXml(Oa))})):qa(mxUtils.getXml(Ha))}),B.embedFonts,ra)}}return}z.postMessage(JSON.stringify(ka),"*")}),null!=B.xml&&0<B.xml.length){if(this.editor.graph.mathEnabled){var P=Editor.onMathJaxDone;Editor.onMathJaxDone=function(){P.apply(this,arguments);+ca()}}k=!0;this.setFileData(B.xml);k=!1;this.editor.graph.mathEnabled||ca()}else ca();return}if("load"==B.action){U=B.toSketch;n=1==B.autosave;this.embedDiffSync=null!=B.diffSync&&!1!==B.diffSync;this.embedDiffSyncPatchOnly="object"===typeof B.diffSync&&null!=B.diffSync&&1==B.diffSync.patchOnly;this.embedExportProtocol=1==B.exportProtocol;var aa=B.sourceMetadata||null;I=null!=B.layout?B.layout:null;this.hideDialog();null!=B.modified&&null==urlParams.modified&&(urlParams.modified=B.modified);null!=+B.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=B.saveAndExit);if("1"==urlParams.saveAndExit||"1"==urlParams.publishClose)if(this.actions.get("save").shortcut=null,!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(83,!0,"saveAndExit"),"1"!=urlParams.noSaveBtn&&(this.actions.get("save").shortcut=Editor.ctrlKey+"+"+Editor.shiftKey+"+S",this.keyHandler.bindAction(83,!0,"save",!0));null!=B.noSaveBtn&&null==urlParams.noSaveBtn&&(urlParams.noSaveBtn=B.noSaveBtn);+if(null!=B.rough){var ea=Editor.sketchMode;this.doSetSketchMode(B.rough);ea!=Editor.sketchMode&&this.fireEvent(new mxEventObject("sketchModeChanged"))}null!=B.dark&&this.setDarkMode(B.dark);null!=B.border&&(this.embedExportBorder=B.border);null!=B.theme&&(this.embedExportTheme=B.theme);null!=B.background&&(this.embedExportBackground=B.background);null!=B.viewport&&(this.embedViewport=B.viewport);this.embedExitPoint=null;if(null!=B.scale){var na=B.scale,ta=null!=B.scaleBorder?B.scaleBorder:this.embedExportBorder||+0,ua=null!=B.border?B.border:0;W=mxUtils.bind(this,function(){var ka=this.editor.graph,ra=ka.getGraphBounds();if(0<ra.width&&0<ra.height){var Ba=ka.view.scale;ka.view.scaleAndTranslate(na,ka.view.translate.x+ua-ra.x/Ba+ta/na,ka.view.translate.y+ua-ra.y/Ba+ta/na)}})}else if(null!=B.fit){var ma=null!=B.border?B.border:0,xa=B.maxFitScale||1;W=mxUtils.bind(this,function(){var ka=this.editor.graph,ra=ka.maxFitScale;ka.maxFitScale=xa;ka.fit(ma,null,null,null,null,!0);ka.maxFitScale=ra})}if(null!=B.scroll&&+null!=B.scroll.x&&null!=B.scroll.y){var ya=B.scroll,Aa=W;W=mxUtils.bind(this,function(){null!=Aa&&Aa();var ka=this.editor.graph,ra=ka.view.scale,Ba=ka.view.translate;mxUtils.hasScrollbars(ka.container)?(ka.container.scrollLeft=(Ba.x+ya.x)*ra,ka.container.scrollTop=(Ba.y+ya.y)*ra):ka.view.setTranslate(-ya.x,-ya.y)})}if(null!=B.rect){ua=this.embedExportBorder;this.diagramContainer.style.left=Math.max(60,B.rect.left)+"px";this.diagramContainer.style.top=Math.max(40,B.rect.top)+"px";this.minInlineWidth=+B.minWidth;this.minInlineHeight=B.minHeight;this.diagramContainer.style.border="2px solid #295fcc";this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";var Ca=B.maxFitScale,va=B.rect.width+2*ua,pa=B.rect.height+2*ua;W=mxUtils.bind(this,function(){var ka=mxUtils.getDocumentSize();va=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,va):va,ka.width-80);ka=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,pa):pa,ka.height-80);this.diagramContainer.style.width=+va+"px";this.diagramContainer.style.height=ka+"px";var ra=this.editor.graph;ka=ra.maxFitScale;ra.maxFitScale=Ca;ra.fit(2*ua,null,null,null,null,null,pa);this.setPageVisible("1"==urlParams.pv);if(null!=this.minInlineWidth&&ra.getGraphBounds().width<this.minInlineWidth){var Ba=ra.container.scrollTop;this.resetScrollbars();ra.container.scrollTop=Ba}ra.maxFitScale=ka;ra.container.scrollTop-=ua;ra.container.scrollLeft-=ua;window.setTimeout(mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("editInlineStart",+"data",[B]));ra.container.focus();null!=this.formatWindow&&null!=this.formatWindow.window&&this.formatWindow.window.isVisible()&&(this.formatWindow.window.div.style.top=ra.container.style.top);var qa=ra.getGraphBounds();ra.container.clientWidth>qa.width+2*ua&&(ra.container.scrollLeft=qa.x+(qa.width+ua-ra.container.clientWidth)/2)}),10)})}null!=B.noExitBtn&&null==urlParams.noExitBtn&&(urlParams.noExitBtn=B.noExitBtn);null!=B.title&&null!=this.buttonContainer&&this.setEmbedTitle(B.title);try{B.libs&&+this.sidebar.showEntries(B.libs)}catch(ka){}if(null!=B.xmlpng)B=this.extractGraphModelFromPng(B.xmlpng);else if(null!=B.descriptor){if(B=B.descriptor,"mermaid"==B.format){if(EditorUi.isMermaidSupported()){var ha=mxUtils.bind(this,function(ka){c(ka,H,null,U);ka=this.createLoadMessage("load");ka.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!0);ka.message=S;(this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify(ka),"*");if(null!=aa&&null!=aa.key&&null!=+aa.value){ka=this.editor.graph;var ra=ka.getModel().getRoot();if(null!=ra){ka.getModel().beginUpdate();try{ka.setAttributeForCell(ra,aa.key,aa.value)}finally{ka.getModel().endUpdate()}}}}),ia=mxUtils.bind(this,function(ka){this.handleError(ka)});B.image?this.parseMermaidImage(B.data,ha,ia):this.parseMermaidDiagram(B.data,null,mxUtils.bind(this,function(ka){B.wrap&&(ka=mxMermaidToDrawio.wrapGroup(ka,B.data,EditorUi.getInsertMermaidConfig(),{normalize:!0}));ha(ka)}),ia)}else this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},+mxResources.get("errorLoadingFile"));return}}else B=B.xml}else{if("merge"==B.action){var oa=this.getCurrentFile();null!=oa&&(ja=N(B.xml),null!=ja&&""!=ja&&oa.mergeFile(new LocalFile(this,ja),mxUtils.bind(this,function(){this.embedDiffSync&&(t=this.clonePages(this.pages),q=fa());z.postMessage(JSON.stringify({event:"merge",message:B}),"*")}),function(ka){z.postMessage(JSON.stringify({event:"merge",message:B,error:ka}),"*")}))}else if("patch"==B.action){if(oa=this.getCurrentFile(),null!=oa&&null!=B.patch)try{k=+!0,oa.patch([B.patch]),this.embedDiffSync&&null!=t&&(t=this.applyPatches(t,[B.patch])),q=fa(),k=!1,Z={event:"patch",message:B},T=this.getHashValueForPages(this.pages),Z.checksum=T,null!=B.checksum&&B.checksum!=T&&(Z.checksumMismatch=!0),z.postMessage(JSON.stringify(Z),"*")}catch(ka){k=!1,z.postMessage(JSON.stringify({event:"patch",message:B,error:ka.message||ka.toString()}),"*")}}else if("getDiff"==B.action){C={event:"getDiff",message:B};if(this.embedDiffSync&&null!=t){var za=this.clonePages(this.pages);+C.patch=this.diffPages(t,za);C.checksum=this.getHashValueForPages(za)}else C.xml=fa();z.postMessage(JSON.stringify(C),"*")}else"resetDiff"==B.action?this.embedDiffSync&&(null!=B.xml?(ja=N(B.xml),oa=this.getCurrentFile(),null!=ja&&""!=ja&&null!=oa&&oa.mergeFile(new LocalFile(this,ja),mxUtils.bind(this,function(){t=this.clonePages(this.pages);q=fa();z.postMessage(JSON.stringify({event:"resetDiff",message:B,checksum:this.getHashValueForPages(this.pages)}),"*")}),function(ka){z.postMessage(JSON.stringify({event:"resetDiff",+message:B,error:ka}),"*")})):(t=this.clonePages(this.pages),q=fa(),z.postMessage(JSON.stringify({event:"resetDiff",message:B,checksum:this.getHashValueForPages(this.pages)}),"*"))):"remoteInvokeReady"==B.action?this.handleRemoteInvokeReady(z):"remoteInvoke"==B.action?this.handleRemoteInvoke(B,H.origin):"remoteInvokeResponse"==B.action?this.handleRemoteInvokeResponse(B):z.postMessage(JSON.stringify({error:"unknownMessage",data:JSON.stringify(B)}),"*");return}}catch(ka){this.handleError(ka)}}var fa=+mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=this.pages&&1<this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())}),la=mxUtils.bind(this,function(ka,ra){k=!0;try{c(ka,ra,null,U)}catch(Ba){this.handleError(Ba)}k=!1;this.editor.graph.model.prefix=Editor.guid()+"-";ra=mxUtils.bind(this,function(){null!=urlParams.modified&&this.clearStatus();q=fa();this.embedDiffSync&&(t=this.clonePages(this.pages));n&&null==f&&(f=mxUtils.bind(this,function(qa,Ea){qa=fa();if(qa!=+q&&!k){Ea=this.createLoadMessage("autosave");Ea.message=S;if(this.embedDiffSync&&null!=t){var Ga=this.clonePages(this.pages),La=this.diffPages(t,Ga);mxUtils.isEmptyObject(La)?Ea.xml=qa:(Ea.patch=La,Ea.checksum=this.getHashValueForPages(Ga),this.embedDiffSyncPatchOnly||(Ea.xml=qa));t=Ga}else Ea.xml=qa;(this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify(Ea),"*")}q=qa}),this.editor.graph.model.addListener(mxEvent.CHANGE,f),this.editor.graph.addListener("gridSizeChanged",+f),this.editor.graph.addListener("shadowVisibleChanged",f),this.addListener("pageFormatChanged",f),this.addListener("pageScaleChanged",f),this.addListener("backgroundColorChanged",f),this.addListener("backgroundImageChanged",f),this.addListener("foldingEnabledChanged",f),this.addListener("mathEnabledChanged",f),this.addListener("gridEnabledChanged",f),this.addListener("guidesEnabledChanged",f),this.addListener("tooltipsEnabledChanged",f),this.addListener("pageViewChanged",f),this.addListener("connectionPointsChanged",+f),this.addListener("connectionArrowsChanged",f));null!=W&&W();if("1"==urlParams.returnbounds||"json"==urlParams.proto){var Ba=this.createLoadMessage("load");Ba.xml=null!=I?fa():ka;this.embedDiffSync&&null!=this.pages&&(Ba.checksum=this.getHashValueForPages(this.pages));z.postMessage(JSON.stringify(Ba),"*")}});null!=I?this.executeLayoutSpec(I,ra):ra()});null!=B&&"function"===typeof B.substring&&"data:application/vnd.visio;base64,"==B.substring(0,34)?(N="0M8R4KGxGuE"==B.substring(34,45)?"raw.vsd":+"raw.vsdx",this.importVisio(this.base64ToBlob(B.substring(B.indexOf(",")+1)),function(ka){la(ka,H)},mxUtils.bind(this,function(ka){this.handleError(ka)}),N)):null!=B&&"function"===typeof B.substring&&this.isGliffyData(B,"")?this.importGliffy(B,mxUtils.bind(this,function(ka){"<mxGraphModel"==ka.substring(0,13)?la(ka,H):this.handleError({message:mxResources.get("unknownError")})}),mxUtils.bind(this,function(ka){this.handleError({message:null!=ka&&413==ka.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError")})}),+""):null!=B&&"function"===typeof B.substring&&this.isLucidChartData(B)?this.convertLucidChart(B,mxUtils.bind(this,function(ka){la(ka)}),mxUtils.bind(this,function(ka){this.handleError(ka)})):null==B||"object"!==typeof B||null==B.format||null==B.data&&null==B.url?(B=N(B),la(B,H)):this.loadDescriptor(B,mxUtils.bind(this,function(ka){la(fa(),H)}),mxUtils.bind(this,function(ka){this.handleError(ka,mxResources.get("errorLoadingFile"))}))}}));var z=this.embedMessageSource||window.opener||window.parent;+r="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||"ready";z.postMessage(r,"*");if("json"==urlParams.proto){var D=this.editor.graph.openLink;this.editor.graph.openLink=function(H,B,W){D.apply(this,arguments);z.postMessage(JSON.stringify({event:"openLink",href:H,target:B,allowOpener:W}),"*")};Editor.suppressNewWindows&&document.addEventListener("click",mxUtils.bind(this,function(H){for(var B=mxEvent.getSource(H);null!=B&&"A"!=B.nodeName;)B=B.parentNode;if(null!=B){var W=B.getAttribute("href");+null==W||"#"==W.charAt(0)||"javascript:"==W.substring(0,11)||this.editor.graph.isCustomLink(W)||(H.preventDefault(),this.editor.graph.openLink(W,B.getAttribute("target")))}}),!0)}};EditorUi.prototype.createEmbedButton=function(c,f,k,n){var q=document.createElement("button");q.className="geEmbedBtn geBtn";q.setAttribute("title",c+(null!=k?" ("+k+")":""));mxUtils.write(q,c);n&&q.classList.add("gePrimaryBtn");mxEvent.addListener(q,"click",f);return q};EditorUi.prototype.setEmbedTitle=function(c){c=this.createStatusDiv(c);+null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan);"kennedy"==Editor.currentTheme||"atlas"==Editor.currentTheme?this.menubarContainer.appendChild(c):this.buttonContainer.appendChild(c);this.embedFilenameSpan=c};EditorUi.prototype.addEmbedButtons=function(){this.dependsOnLanguage(mxUtils.bind(this,function(){var c=null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode==this.buttonContainer;this.buttonContainer.innerText="";c&&this.buttonContainer.appendChild(this.embedFilenameSpan);this.commentsSupported()&&null!=this.commentButton&&this.buttonContainer.appendChild(this.commentButton);"1"==urlParams.noSaveBtn?"0"!=urlParams.saveAndExit&&this.buttonContainer.appendChild(this.createEmbedButton("1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit"),this.actions.get("saveAndExit").funct,Editor.ctrlKey+"+S",!0)):(this.buttonContainer.appendChild(this.createEmbedButton(mxResources.get("save"),mxUtils.bind(this,function(){this.actions.get("save").funct(!1)}),"1"==urlParams.saveAndExit?Editor.ctrlKey+"+"+Editor.shiftKey+"+S":Editor.ctrlKey+"+S",!0)),"1"==urlParams.saveAndExit&&this.buttonContainer.appendChild(this.createEmbedButton(mxResources.get("saveAndExit"),this.actions.get("saveAndExit").funct,Editor.ctrlKey+"+S")));"1"!=urlParams.noExitBtn&&this.buttonContainer.appendChild(this.createEmbedButton("1"==urlParams.publishClose?mxResources.get("close"):mxResources.get("exit"),this.actions.get("exit").funct))}))};EditorUi.prototype.showImportCsvDialog=function(){null==this.importCsvDialog&&(this.importCsvDialog=new SimpleTextareaDialog(this,Editor.defaultCsvValue,mxUtils.bind(this,function(c){this.importCsv(c)}),mxResources.get("import"),"https://www.drawio.com/blog/insert-from-csv"));this.showDialog(this.importCsvDialog.container,640,520,!0,!0,null,null,null,new mxRectangle(0,0,320,280));this.importCsvDialog.init()};EditorUi.prototype.showCustomLayoutDialog=function(c){this.loadOrgChartLayouts(mxUtils.bind(this,function(){var f=new TextareaDialog(this,@@ -14701,51 +14789,52 @@ q="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=f&&f.isEditable();tthis.actions.get("moveToFolder").setEnabled(null!=f);this.actions.get("makeCopy").setEnabled(null!=f&&!f.isRestricted());this.actions.get("editDiagram").setEnabled(n&&(null==f||!f.isRestricted()));this.actions.get("publishLink").setEnabled(null!=f&&!f.isRestricted());this.actions.get("removeFormat").setEnabled(c.isEnabled()&&!c.isSelectionEmpty()&&!c.isEditing());this.actions.get("tags").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("layers").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("outline").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("rename").setEnabled(null!=f&&f.isRenamable()||"1"==urlParams.embed);this.actions.get("close").setEnabled(null!=f);this.actions.get("properties").setEnabled(null!=f);this.menus.get("publish").setEnabled(null!=f&&!f.isRestricted());f=this.actions.get("findReplace");f.setEnabled("none"!=this.diagramContainer.style.display);f.label=mxResources.get("find")+(c.isEnabled()?"/"+mxResources.get("replace"):"");c=c.view.getState(c.getSelectionCell());this.actions.get("editShape").setEnabled(n&&null!=c&&null!=c.shape&&null!=c.shape.stencil)};var O=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);O.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(c,f,k,n,q,t,r,z){var D=c.editor.graph;-if("xml"==k)c.hideDialog(),c.saveData(f,"xml",mxUtils.getXml(c.editor.getGraphXml()),"text/xml");else if("svg"==k)c.hideDialog(),c.saveData(f,"svg",mxUtils.getXml(D.getSvg(n,q,t)),"image/svg+xml");else{var H=c.getFileData(!0,null,null,null,null,!0),B=D.getGraphBounds(),W=Math.floor(B.width*q/D.view.scale),I=Math.floor(B.height*q/D.view.scale);if(H.length<=MAX_REQUEST_SIZE&&W*I<MAX_AREA)if(c.hideDialog(),"png"!=k&&"jpg"!=k&&"jpeg"!=k||!c.editor.isExportToCanvas()){var N={globalVars:D.getExportVariables()};-z&&(N.grid={size:D.gridSize,steps:D.view.gridSteps,color:D.view.gridColor});c.saveRequest(f,k,function(U,S){return new mxXmlRequest(EXPORT_URL,"format="+k+"&base64="+(S||"0")+(null!=U?"&filename="+encodeURIComponent(U):"")+"&extras="+encodeURIComponent(JSON.stringify(N))+(0<r?"&dpi="+r:"")+"&bg="+(null!=n?n:"none")+"&w="+W+"&h="+I+"&border="+t+"&xml="+encodeURIComponent(H))})}else"png"==k?c.exportImage(q,null==n||"none"==n,!0,!1,!1,t,!0,!1,null,z,r):c.exportImage(q,!1,!0,!1,!1,t,!0,!1,"jpeg",z);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});-EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var c=this.editor.graph,f="";if(null!=this.pages)for(var k=0;k<this.pages.length;k++){var n=c;this.currentPage!=this.pages[k]&&(n=this.createTemporaryGraph(c.getStylesheet()),this.updatePageRoot(this.pages[k]),n.model.setRoot(this.pages[k].root));f+=this.pages[k].getName()+" "+n.getIndexableText()+" "}else f=c.getIndexableText();this.editor.graph.setEnabled(!0);return f};EditorUi.prototype.writeJsonLabel=function(c,-f,k){if(null!=f&&""!=f){if(this.editor.graph.isHtmlLabel(c)&&(c=document.createElement("div"),c.innerHTML=Graph.sanitizeHtml(f),0<c.getElementsByTagName("*").length)){k.label=mxUtils.trim(mxUtils.extractTextWithWhitespace([c]));k.html=f;return}k.label=f}};EditorUi.prototype.getJsonForExportCell=function(c,f){var k={id:c.getId()};k.type=f?"layer":c.edge?"edge":c.vertex?"node":"group";f||(f=c.getParent(),null!=f&&(k.parent=f.getId()));c.edge&&(null!=c.source&&(k.source=c.source.getId()),null!=c.target&&-(k.target=c.target.getId()));f=c.value;if(null!=f&&mxUtils.isNode(f)){this.writeJsonLabel(c,f.getAttribute("label"),k);c=f.attributes;f={};for(var n=0,q=0;q<c.length;q++){var t=c[q].nodeName;"label"!=t&&"placeholders"!=t&&"id"!=t&&(f[t]=c[q].nodeValue,n++)}0<n&&(k.metadata=f)}else"string"===typeof f&&this.writeJsonLabel(c,f,k);return k};EditorUi.prototype.getJsonForPage=function(c,f){var k=this.editor.graph.getModel();var n=null==c||c==this.currentPage?k.getRoot():this.updatePageRoot(c).root;var q=-[],t=mxUtils.bind(this,function(B,W){q.push(this.getJsonForExportCell(B,W));W=B.getChildCount();for(var I=0;I<W;I++)t(B.getChildAt(I),!1)});if(null!=f){n={};for(var r=0;r<f.length;r++)n[f[r].getId()]=!0;for(r=0;r<f.length;r++){for(var z=f[r],D=z.getParent(),H=!1;null!=D;){if(n[D.getId()]){H=!0;break}D=D.getParent()}H||t(z,k.isLayer(z))}}else for(f=n.getChildCount(),r=0;r<f;r++)t(n.getChildAt(r),!0);r={};null!=c&&(r.id=c.getId(),r.name=c.getName());r.cells=q;return r};EditorUi.prototype.createJsonForExport=-function(c,f,k,n){var q={version:EditorUi.VERSION};f&&(q.data=mxUtils.getXml(this.getXmlFileData(!n,!c,!k)));f=[];if(n)f.push(this.getJsonForPage(this.currentPage,this.editor.graph.getSelectionCells()));else if(c&&null!=this.pages)for(c=0;c<this.pages.length;c++)f.push(this.getJsonForPage(this.pages[c]));else f.push(this.getJsonForPage(this.currentPage));q.pages=f;return q};EditorUi.prototype.showRemotelyStoredLibrary=function(c){var f={},k=document.createElement("div");k.style.whiteSpace="nowrap";-var n=document.createElement("h3");mxUtils.write(n,mxUtils.htmlEntities(c));k.appendChild(n);var q=document.createElement("div");q.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";q.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var t={};try{var r=mxSettings.getCustomLibraries();for(c=0;c<r.length;c++){var z=r[c];if("R"==z.substring(0,1)){var D=JSON.parse(decodeURIComponent(z.substring(1)));t[D[0]]={id:D[0],title:D[1],downloadUrl:D[2]}}}}catch(H){}this.remoteInvoke("getCustomLibraries",-null,null,function(H){q.innerText="";if(0==H.length)q.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var B=0;B<H.length;B++){var W=H[B];t[W.id]&&(f[W.id]=W);var I=this.addCheckbox(q,W.title,t[W.id]);(function(N,U){mxEvent.addListener(U,"change",function(){this.checked?f[N.id]=N:delete f[N.id]})})(W,I)}},mxUtils.bind(this,function(H){q.innerText="";var B=document.createElement("div");B.style.padding="8px";-B.style.textAlign="center";mxUtils.write(B,mxResources.get("error")+": ");mxUtils.write(B,null!=H&&null!=H.message?H.message:mxResources.get("unknownError"));q.appendChild(B)}));k.appendChild(q);k=new CustomDialog(this,k,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));var H=0,B;for(B in f)null==t[B]&&(H++,mxUtils.bind(this,function(W){this.remoteInvoke("getFileContent",[W.downloadUrl],null,mxUtils.bind(this,function(I){H--;0==H&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,-I,W)),this.showSidebar()}catch(N){this.handleError(N,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){H--;0==H&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(f[B]));for(B in t)f[B]||this.closeLibrary(new RemoteLibrary(this,null,t[B]));0==H&&this.spinner.stop()}),null,null,"https://www.drawio.com/doc/faq/custom-libraries-confluence-cloud");this.showDialog(k.container,340,390,!0,!0,null,null,null,null,!0)};EditorUi.prototype.remoteInvokableFns=-{getDiagramTextContent:{isAsync:!1},getLocalStorageFile:{isAsync:!1,allowedDomains:["app.diagrams.net"]},getLocalStorageFileNames:{isAsync:!1,allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}};EditorUi.prototype.remoteInvokeCallbacks=[];EditorUi.prototype.remoteInvokeQueue=[];EditorUi.prototype.handleRemoteInvokeReady=function(c){this.remoteWin=c;for(var f=0;f<this.remoteInvokeQueue.length;f++)c.postMessage(this.remoteInvokeQueue[f],"*");this.remoteInvokeQueue=-[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var f=c.msgMarkers,k=null!=f?f.callbackId:null,n="number"===typeof k&&0<=k&&k<this.remoteInvokeCallbacks.length?this.remoteInvokeCallbacks[k]:null;if(null==n)throw Error("No callback for "+(null!=f?f.callbackId:"null"));c.error?n.error&&n.error(c.error.errResp):n.callback&&n.callback.apply(this,c.resp);this.remoteInvokeCallbacks[k]=null};EditorUi.prototype.remoteInvoke=function(c,f,k,n,q){var t=!0,r=window.setTimeout(mxUtils.bind(this,-function(){t=!1;q({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),z=mxUtils.bind(this,function(){window.clearTimeout(r);t&&n.apply(this,arguments)}),D=mxUtils.bind(this,function(){window.clearTimeout(r);t&&q.apply(this,arguments)});k=k||{};k.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:z,error:D});c=JSON.stringify({event:"remoteInvoke",funtionName:c,functionArgs:f,msgMarkers:k});null!=this.remoteWin?this.remoteWin.postMessage(c,-"*"):this.remoteInvokeQueue.push(c)};EditorUi.prototype.handleRemoteInvoke=function(c,f){var k=mxUtils.bind(this,function(H,B){var W={event:"remoteInvokeResponse",msgMarkers:c.msgMarkers};null!=B?W.error={errResp:B}:null!=H&&(W.resp=H);this.remoteWin.postMessage(JSON.stringify(W),"*")});try{var n=c.funtionName,q=null!=n&&Object.prototype.hasOwnProperty.call(this.remoteInvokableFns,n)?this.remoteInvokableFns[n]:null;if(null!=q&&"function"===typeof this[n]){if(q.allowedDomains){for(var t=!1,r=0;r<q.allowedDomains.length;r++)if(f==-"https://"+q.allowedDomains[r]){t=!0;break}if(!t){k(null,"Invalid Call: "+n+" is not allowed.");return}}var z=c.functionArgs;Array.isArray(z)||(z=[]);if(q.isAsync)z.push(function(){k(Array.prototype.slice.apply(arguments))}),z.push(function(H){k(null,H||"Unkown Error")}),this[n].apply(this,z);else{var D=this[n].apply(this,z);k([D])}}else k(null,"Invalid Call: "+n+" is not found.")}catch(H){k(null,"Invalid Call: An error occurred, "+H.message)}};EditorUi.prototype.openDatabase=function(c,f){if(null==-this.database){var k=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=k)try{var n=k.open("database",2);n.onupgradeneeded=function(q){try{var t=n.result;1>q.oldVersion&&t.createObjectStore("objects",{keyPath:"key"});2>q.oldVersion&&(t.createObjectStore("files",{keyPath:"title"}),t.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(r){null!=f&&f(r)}};n.onsuccess=mxUtils.bind(this,function(q){try{var t=n.result;this.database=t;EditorUi.migrateStorageFiles&&-(StorageFile.migrate(t),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(r){if((!r||"1"==urlParams.forceMigration)&&"1"==urlParams.forceMigration){var z=document.createElement("iframe");z.style.display="none";z.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+urlParams.forceMigration);document.body.appendChild(z);var D=!0,H=!1,-B,W=0,I=mxUtils.bind(this,function(){H=!0;this.setDatabaseItem(".drawioMigrated3",!0);z.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),N=mxUtils.bind(this,function(){W++;U()}),U=mxUtils.bind(this,function(){try{if(W>=B.length)I();else{var V=B[W];StorageFile.getFileContent(this,V,mxUtils.bind(this,function(ja){null==ja||".scratchpad"==V&&ja==this.emptyLibraryXml?z.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",-functionArgs:[V]}),"*"):N()}),N)}}catch(ja){console.log(ja)}}),S=mxUtils.bind(this,function(V){try{this.setDatabaseItem(null,[{title:V.title,size:V.data.length,lastModified:Date.now(),type:V.isLib?"L":"F"},{title:V.title,data:V.data}],N,N,["filesInfo","files"])}catch(ja){console.log(ja)}});r=mxUtils.bind(this,function(V){try{if(V.source==z.contentWindow){var ja={};try{ja=JSON.parse(V.data)}catch(v){}"init"==ja.event?(z.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),z.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",-funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=ja.event||H||(D?null!=ja.resp&&0<ja.resp.length&&null!=ja.resp[0]?(B=ja.resp[0],D=!1,U()):I():null!=ja.resp&&0<ja.resp.length&&null!=ja.resp[0]?S(ja.resp[0]):N())}}catch(v){console.log(v)}});window.addEventListener("message",r)}})));c(t);t.onversionchange=function(){t.close()}}catch(r){null!=f?f(r):null!=window.console&&console.warn(r)}});n.onerror=f;n.onblocked=function(){}}catch(q){null!=f?f(q):null!=window.console&&console.error(q)}else null!=-f&&f(Error("IndexedDB not supported"))}else c(this.database)};EditorUi.prototype.setDatabaseItem=function(c,f,k,n,q){this.openDatabase(mxUtils.bind(this,function(t){try{q=q||"objects";Array.isArray(q)||(q=[q],c=[c],f=[f]);var r=t.transaction(q,"readwrite");r.oncomplete=k;r.onerror=n;for(t=0;t<q.length;t++)r.objectStore(q[t]).put(null!=c&&null!=c[t]?{key:c[t],data:f[t]}:f[t])}catch(z){null!=n&&n(z)}}),n)};EditorUi.prototype.removeDatabaseItem=function(c,f,k,n){this.openDatabase(mxUtils.bind(this,function(q){try{n=-n||"objects";Array.isArray(n)||(n=[n],c=[c]);var t=q.transaction(n,"readwrite");t.oncomplete=f;t.onerror=k;for(q=0;q<n.length;q++)t.objectStore(n[q]).delete(c[q])}catch(r){null!=k&&k(r)}}),k)};EditorUi.prototype.getDatabaseItem=function(c,f,k,n){this.openDatabase(mxUtils.bind(this,function(q){try{n=n||"objects";var t=q.transaction([n],"readonly").objectStore(n).get(c);t.onsuccess=function(){f(t.result)};t.onerror=k}catch(r){null!=k&&k(r)}}),k)};EditorUi.prototype.getDatabaseItems=function(c,f,k){this.openDatabase(mxUtils.bind(this,-function(n){try{k=k||"objects";var q=n.transaction([k],"readonly").objectStore(k).openCursor(IDBKeyRange.lowerBound(0)),t=[];q.onsuccess=function(r){null==r.target.result?c(t):(t.push(r.target.result.value),r.target.result.continue())};q.onerror=f}catch(r){null!=f&&f(r)}}),f)};EditorUi.prototype.getDatabaseItemKeys=function(c,f,k){this.openDatabase(mxUtils.bind(this,function(n){try{k=k||"objects";var q=n.transaction([k],"readonly").objectStore(k).getAllKeys();q.onsuccess=function(){c(q.result)};q.onerror=-f}catch(t){null!=f&&f(t)}}),f)};EditorUi.prototype.commentsSupported=function(){var c=this.getCurrentFile();return null!=c?c.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(c,f){var k=this.getCurrentFile();null!=k?k.getComments(c,f):c([])};EditorUi.prototype.addComment=-function(c,f,k){var n=this.getCurrentFile();null!=n?n.addComment(c,f,k):f(Date.now())};EditorUi.prototype.canReplyToReplies=function(){var c=this.getCurrentFile();return null!=c?c.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.anchoredCommentsSupported=function(){var c=this.getCurrentFile();return null!=c?c.anchoredCommentsSupported():!1};EditorUi.prototype.mentionsSupported=function(){var c=this.getCurrentFile();-return null!=c?c.mentionsSupported():!1};EditorUi.prototype.freeMentionsSupported=function(){var c=this.getCurrentFile();return null!=c?c.freeMentionsSupported():!1};EditorUi.prototype.mentionsLiveSearch=function(){var c=this.getCurrentFile();return null!=c?c.mentionsLiveSearch():!1};EditorUi.prototype.mentionNotificationsSupported=function(){var c=this.getCurrentFile();return null!=c?c.mentionNotificationsSupported():!0};EditorUi.prototype.getMentionCandidates=function(c,f,k){var n=this.getCurrentFile();-null!=n?n.getMentionCandidates(c,f,k):c([])};EditorUi.prototype.serializeMention=function(c){return"+"+c.email};EditorUi.prototype.parseMentionTokens=function(c){for(var f=/[+@]([A-Za-z0-9.!#$%&'*/=?^_`{|}~+\-]+@[A-Za-z0-9.\-]+\.[A-Za-z]{2,})/g,k=[],n=0,q;null!=(q=f.exec(c));)q.index>n&&k.push(c.substring(n,q.index)),k.push({email:q[1]}),n=q.index+q[0].length;n<c.length&&k.push(c.substring(n));return k};EditorUi.prototype.getCommentCacheTarget=function(){var c=this.getCurrentFile();return null!=c?-c:this};EditorUi.prototype.refreshCommentCache=function(c,f){if(this.commentsSupported()){var k=this.getCommentCacheTarget();if(null!=k.commentCacheCallbacks)k.commentCacheCallbacks.push([c,f]);else{k.commentCacheCallbacks=[[c,f]];var n=mxUtils.bind(this,function(q,t){var r=k.commentCacheCallbacks;k.commentCacheCallbacks=null;for(var z=0;null!=r&&z<r.length;z++)if(null!=r[z][q])r[z][q](t)});this.getComments(mxUtils.bind(this,function(q){this.getCommentCacheTarget()==k&&(k.commentCache=q,this.fireEvent(new mxEventObject("commentsChanged")));-n(0,q)}),mxUtils.bind(this,function(q){n(1,q)}))}}else null!=c&&c(null)};EditorUi.prototype.commentsUpdated=function(){if(this.commentsSupported()){var c=this.getCurrentFile();null!=c&&null!=c.sync&&c.sync.sendCommentsChangedMessage();this.refreshCommentCache()}};EditorUi.prototype.getUnresolvedCommentCount=function(){var c=this.getCommentCacheTarget().commentCache,f=0;if(null!=c)for(var k=0;k<c.length;k++)c[k].isResolved||f++;return f};EditorUi.prototype.getCommentAnchorCells=function(c){var f=c.getAnchorCellIds(),-k=[];if(null!=f&&0<f.length){c=c.getAnchorPageId();var n=null==c?this.currentPage:this.getPageById(c);if(null!=n)if(n==this.currentPage)for(c=0;c<f.length;c++)n=this.editor.graph.model.getCell(f[c]),null!=n&&k.push(n);else{try{this.updatePageRoot(n)}catch(z){return k}if(null!=n.root){var q={},t=0;for(c=0;c<f.length;c++)q[f[c]]||(q[f[c]]=!0,t++);var r=function(z){if(0<t){q[z.getId()]&&(q[z.getId()]=!1,k.push(z),t--);for(var D=0;D<z.getChildCount();D++)r(z.getChildAt(D))}};r(n.root)}}}return k};EditorUi.prototype.gotoCommentAnchor=-function(c){var f=c.getAnchorPageId();if(null!=f&&null!=this.currentPage&&f!=this.currentPage.getId()){f=this.getPageById(f);if(null==f)return!1;this.selectPage(f)}f=this.editor.graph;var k=c.getAnchorCellIds();if(null!=k&&0<k.length){c=[];for(var n=0;n<k.length;n++){var q=f.model.getCell(k[n]);null!=q&&c.push(q)}return 0<c.length?(f.isEnabled()?f.setSelectionCells(c):f.highlightCells(c,"#0071e3",2E3),f.scrollCellToVisible(c[0]),!0):!1}k=c.getAnchorRect();null!=k&&0<k.w&&0<k.h&&f.fitWindow(new mxRectangle(k.x,-k.y,k.w,k.h),0);c=c.getAnchorPoint();if(null!=c){k=f.view.scale;n=f.view.translate;f=f.container;f.scrollLeft=Math.round((c.x+n.x)*k-f.clientWidth/2);f.scrollTop=Math.round((c.y+n.y)*k-f.clientHeight/2);var t=document.createElement("div");t.className="geCommentAnchorMarker";t.style.left=Math.round((c.x+n.x)*k)+"px";t.style.top=Math.round((c.y+n.y)*k)+"px";f.appendChild(t);window.setTimeout(function(){null!=t.parentNode&&t.parentNode.removeChild(t)},2E3)}return!0};EditorUi.prototype.addCommentsBadge=-function(c){var f=document.createElement("span");f.className="geCommentsBadge";f.style.display="none";c.appendChild(f);c=mxUtils.bind(this,function(){var k=this.getUnresolvedCommentCount();f.style.display=0<k?"":"none";f.innerText="";mxUtils.write(f,99<k?"99+":String(k))});this.addListener("commentsChanged",c);this.editor.addListener("fileLoaded",c);c();return f};EditorUi.prototype.installCommentDragSource=function(c){var f=this,k=document.createElement("div");k.style.width="24px";k.style.height=-"24px";k.style.backgroundImage="url("+Editor.lightDarkCommentImage+")";k.style.backgroundSize="100% 100%";k.style.opacity="0.9";c=mxUtils.makeDraggable(c,function(){return f.editor.graph},function(q,t,r,z,D){null!=f.currentPage&&null!=f.menus&&null!=f.menus.showCommentsWindow&&(q=null!=r?{p:f.currentPage.getId(),c:r.id}:{p:f.currentPage.getId(),pt:{x:Math.round(z),y:Math.round(D)}},f.menus.showCommentsWindow(null,q))},k);var n=c.mouseDown;c.mouseDown=function(q){mxEvent.isMouseEvent(q)&&!mxEvent.isPopupTrigger(q)&&-f.commentsSupported()&&f.anchoredCommentsSupported()&&f.canComment()&&n.apply(this,arguments)};return c};EditorUi.prototype.updateCommentOverlays=function(){var c=this.editor.graph;if(null!=this.commentOverlays)for(var f=0;f<this.commentOverlays.length;f++)c.removeCellOverlay(this.commentOverlays[f].cell,this.commentOverlays[f].overlay);this.commentOverlays=null;var k=this.getCurrentFile();if(null!=k&&k.anchoredCommentsSupported()&&null!=k.commentCache&&!this.editor.isChromelessView()){var n=null!=-this.currentPage?this.currentPage.getId():null,q={};for(f=0;f<k.commentCache.length;f++){var t=k.commentCache[f],r=t.getAnchorCellIds();if(!t.isResolved&&null!=r&&t.getAnchorPageId()==n)for(t=0;t<r.length;t++)q[r[t]]=!0}this.commentOverlays=[];for(var z in q)mxUtils.bind(this,function(D){var H=c.model.getCell(D);if(null!=H){var B=new mxCellOverlay(new mxImage(Editor.lightDarkCommentImage,16,16),mxResources.get("comments"),mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM,new mxPoint(8,8));B.isCommentOverlay=-!0;B.cursor="pointer";B.addListener(mxEvent.CLICK,mxUtils.bind(this,function(){null!=this.menus&&null!=this.menus.showCommentsWindow&&this.menus.showCommentsWindow(D)}));c.addCellOverlay(H,B);this.commentOverlays.push({cell:H,overlay:B})}})(z)}};EditorUi.prototype.newComment=function(c,f){var k=this.getCurrentFile();return null!=k?k.newComment(c,f):new DrawioComment(this,null,c,Date.now(),Date.now(),!1,f)};EditorUi.prototype.isRevisionHistorySupported=function(){var c=this.getCurrentFile();return null!=-c&&c.isRevisionHistorySupported()};EditorUi.prototype.getRevisions=function(c,f){var k=this.getCurrentFile();null!=k&&k.getRevisions?k.getRevisions(c,f):f({message:mxResources.get("unknownError")})};EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.vsdxExportEnabled=function(){return"atlassian"==this.getServiceName()};-EditorUi.prototype.addRemoteServiceSecurityCheck=function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,f,k,n,q,t,r,z){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,f,k,n,q,t,r,z)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");-return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,f)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,f,k,n,q,t,r,z,D,H,B,W,I,N,U,S){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,f,k,n,q,t,r,z,-D,H,B,W,I,N,U,S)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,f,k,n){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(c,f,k,n)};EditorUi.prototype.convertImageToDataUri=function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,f)};-EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=function(c,f,k,n){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(c,f,k,n)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,f,k,n,q){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,-f,k,n,q)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var c=[],f=0;f<localStorage.length;f++){var k=localStorage.key(f),n=localStorage.getItem(k);if(0<k.length&&(".scratchpad"==k||"."!=k.charAt(0))&&0<n.length){var q="<mxfile "===n.substring(0,8)||"<?xml"===n.substring(0,5)||"\x3c!--[if IE]>"===n.substring(0,12);n="<mxlibrary>"===n.substring(0,11);(q||n)&&c.push(k)}}return c};EditorUi.prototype.getLocalStorageFile=-function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;var f=localStorage.getItem(c);return{title:c,data:f,isLib:"<mxlibrary>"===f.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();+if("xml"==k)c.hideDialog(),c.saveData(f,"xml",mxUtils.getXml(c.editor.getGraphXml()),"text/xml");else if("svg"==k)c.hideDialog(),c.saveData(f,"svg",mxUtils.getXml(D.getSvg(n,q,t)),"image/svg+xml");else{var H=c.getFileData(!0,null,null,null,null,!0),B=D.getGraphBounds(),W=Math.floor(B.width*q/D.view.scale),I=Math.floor(B.height*q/D.view.scale);if(H.length<=MAX_REQUEST_SIZE&&W*I<MAX_AREA)if(c.hideDialog(),"png"!=k&&"jpg"!=k&&"jpeg"!=k||!c.editor.isExportToCanvas())if(c.isRemoteExportEnabled()){var N=+{globalVars:D.getExportVariables()};z&&(N.grid={size:D.gridSize,steps:D.view.gridSteps,color:D.view.gridColor});c.saveRequest(f,k,function(U,S){return new mxXmlRequest(EXPORT_URL,"format="+k+"&base64="+(S||"0")+(null!=U?"&filename="+encodeURIComponent(U):"")+"&extras="+encodeURIComponent(JSON.stringify(N))+(0<r?"&dpi="+r:"")+"&bg="+(null!=n?n:"none")+"&w="+W+"&h="+I+"&border="+t+"&xml="+encodeURIComponent(H))})}else c.handleError({message:mxResources.get("notAvailable")});else"png"==k?c.exportImage(q,+null==n||"none"==n,!0,!1,!1,t,!0,!1,null,z,r):c.exportImage(q,!1,!0,!1,!1,t,!0,!1,"jpeg",z);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var c=this.editor.graph,f="";if(null!=this.pages)for(var k=0;k<this.pages.length;k++){var n=c;this.currentPage!=this.pages[k]&&(n=this.createTemporaryGraph(c.getStylesheet()),this.updatePageRoot(this.pages[k]),n.model.setRoot(this.pages[k].root));f+=this.pages[k].getName()++" "+n.getIndexableText()+" "}else f=c.getIndexableText();this.editor.graph.setEnabled(!0);return f};EditorUi.prototype.writeJsonLabel=function(c,f,k){if(null!=f&&""!=f){if(this.editor.graph.isHtmlLabel(c)&&(c=document.createElement("div"),c.innerHTML=Graph.sanitizeHtml(f),0<c.getElementsByTagName("*").length)){k.label=mxUtils.trim(mxUtils.extractTextWithWhitespace([c]));k.html=f;return}k.label=f}};EditorUi.prototype.getJsonForExportCell=function(c,f){var k={id:c.getId()};k.type=f?"layer":c.edge?"edge":+c.vertex?"node":"group";f||(f=c.getParent(),null!=f&&(k.parent=f.getId()));c.edge&&(null!=c.source&&(k.source=c.source.getId()),null!=c.target&&(k.target=c.target.getId()));f=c.value;if(null!=f&&mxUtils.isNode(f)){this.writeJsonLabel(c,f.getAttribute("label"),k);c=f.attributes;f={};for(var n=0,q=0;q<c.length;q++){var t=c[q].nodeName;"label"!=t&&"placeholders"!=t&&"id"!=t&&(f[t]=c[q].nodeValue,n++)}0<n&&(k.metadata=f)}else"string"===typeof f&&this.writeJsonLabel(c,f,k);return k};EditorUi.prototype.getJsonForPage=+function(c,f){var k=this.editor.graph.getModel();var n=null==c||c==this.currentPage?k.getRoot():this.updatePageRoot(c).root;var q=[],t=mxUtils.bind(this,function(B,W){q.push(this.getJsonForExportCell(B,W));W=B.getChildCount();for(var I=0;I<W;I++)t(B.getChildAt(I),!1)});if(null!=f){n={};for(var r=0;r<f.length;r++)n[f[r].getId()]=!0;for(r=0;r<f.length;r++){for(var z=f[r],D=z.getParent(),H=!1;null!=D;){if(n[D.getId()]){H=!0;break}D=D.getParent()}H||t(z,k.isLayer(z))}}else for(f=n.getChildCount(),r=0;r<+f;r++)t(n.getChildAt(r),!0);r={};null!=c&&(r.id=c.getId(),r.name=c.getName());r.cells=q;return r};EditorUi.prototype.createJsonForExport=function(c,f,k,n){var q={version:EditorUi.VERSION};f&&(q.data=mxUtils.getXml(this.getXmlFileData(!n,!c,!k)));f=[];if(n)f.push(this.getJsonForPage(this.currentPage,this.editor.graph.getSelectionCells()));else if(c&&null!=this.pages)for(c=0;c<this.pages.length;c++)f.push(this.getJsonForPage(this.pages[c]));else f.push(this.getJsonForPage(this.currentPage));q.pages=+f;return q};EditorUi.prototype.showRemotelyStoredLibrary=function(c){var f={},k=document.createElement("div");k.style.whiteSpace="nowrap";var n=document.createElement("h3");mxUtils.write(n,mxUtils.htmlEntities(c));k.appendChild(n);var q=document.createElement("div");q.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";q.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var t={};try{var r=mxSettings.getCustomLibraries();for(c=0;c<+r.length;c++){var z=r[c];if("R"==z.substring(0,1)){var D=JSON.parse(decodeURIComponent(z.substring(1)));t[D[0]]={id:D[0],title:D[1],downloadUrl:D[2]}}}}catch(H){}this.remoteInvoke("getCustomLibraries",null,null,function(H){q.innerText="";if(0==H.length)q.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var B=0;B<H.length;B++){var W=H[B];t[W.id]&&(f[W.id]=W);var I=this.addCheckbox(q,W.title,t[W.id]);(function(N,+U){mxEvent.addListener(U,"change",function(){this.checked?f[N.id]=N:delete f[N.id]})})(W,I)}},mxUtils.bind(this,function(H){q.innerText="";var B=document.createElement("div");B.style.padding="8px";B.style.textAlign="center";mxUtils.write(B,mxResources.get("error")+": ");mxUtils.write(B,null!=H&&null!=H.message?H.message:mxResources.get("unknownError"));q.appendChild(B)}));k.appendChild(q);k=new CustomDialog(this,k,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));+var H=0,B;for(B in f)null==t[B]&&(H++,mxUtils.bind(this,function(W){this.remoteInvoke("getFileContent",[W.downloadUrl],null,mxUtils.bind(this,function(I){H--;0==H&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,I,W)),this.showSidebar()}catch(N){this.handleError(N,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){H--;0==H&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(f[B]));for(B in t)f[B]||this.closeLibrary(new RemoteLibrary(this,+null,t[B]));0==H&&this.spinner.stop()}),null,null,"https://www.drawio.com/doc/faq/custom-libraries-confluence-cloud");this.showDialog(k.container,340,390,!0,!0,null,null,null,null,!0)};EditorUi.prototype.remoteInvokableFns={getDiagramTextContent:{isAsync:!1},getLocalStorageFile:{isAsync:!1,allowedDomains:["app.diagrams.net"]},getLocalStorageFileNames:{isAsync:!1,allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}};EditorUi.prototype.remoteInvokeCallbacks=+[];EditorUi.prototype.remoteInvokeQueue=[];EditorUi.prototype.handleRemoteInvokeReady=function(c){this.remoteWin=c;for(var f=0;f<this.remoteInvokeQueue.length;f++)c.postMessage(this.remoteInvokeQueue[f],"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var f=c.msgMarkers,k=null!=f?f.callbackId:null,n="number"===typeof k&&0<=k&&k<this.remoteInvokeCallbacks.length?this.remoteInvokeCallbacks[k]:null;if(null==n)throw Error("No callback for "+(null!=f?f.callbackId:+"null"));c.error?n.error&&n.error(c.error.errResp):n.callback&&n.callback.apply(this,c.resp);this.remoteInvokeCallbacks[k]=null};EditorUi.prototype.remoteInvoke=function(c,f,k,n,q){var t=!0,r=window.setTimeout(mxUtils.bind(this,function(){t=!1;q({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),z=mxUtils.bind(this,function(){window.clearTimeout(r);t&&n.apply(this,arguments)}),D=mxUtils.bind(this,function(){window.clearTimeout(r);t&&q.apply(this,arguments)});k=k||{};k.callbackId=+this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:z,error:D});c=JSON.stringify({event:"remoteInvoke",funtionName:c,functionArgs:f,msgMarkers:k});null!=this.remoteWin?this.remoteWin.postMessage(c,"*"):this.remoteInvokeQueue.push(c)};EditorUi.prototype.handleRemoteInvoke=function(c,f){var k=mxUtils.bind(this,function(H,B){var W={event:"remoteInvokeResponse",msgMarkers:c.msgMarkers};null!=B?W.error={errResp:B}:null!=H&&(W.resp=H);this.remoteWin.postMessage(JSON.stringify(W),+"*")});try{var n=c.funtionName,q=null!=n&&Object.prototype.hasOwnProperty.call(this.remoteInvokableFns,n)?this.remoteInvokableFns[n]:null;if(null!=q&&"function"===typeof this[n]){if(q.allowedDomains){for(var t=!1,r=0;r<q.allowedDomains.length;r++)if(f=="https://"+q.allowedDomains[r]){t=!0;break}if(!t){k(null,"Invalid Call: "+n+" is not allowed.");return}}var z=c.functionArgs;Array.isArray(z)||(z=[]);if(q.isAsync)z.push(function(){k(Array.prototype.slice.apply(arguments))}),z.push(function(H){k(null,+H||"Unkown Error")}),this[n].apply(this,z);else{var D=this[n].apply(this,z);k([D])}}else k(null,"Invalid Call: "+n+" is not found.")}catch(H){k(null,"Invalid Call: An error occurred, "+H.message)}};EditorUi.prototype.openDatabase=function(c,f){if(null==this.database){var k=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=k)try{var n=k.open("database",2);n.onupgradeneeded=function(q){try{var t=n.result;1>q.oldVersion&&t.createObjectStore("objects",{keyPath:"key"});2>q.oldVersion&&+(t.createObjectStore("files",{keyPath:"title"}),t.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(r){null!=f&&f(r)}};n.onsuccess=mxUtils.bind(this,function(q){try{var t=n.result;this.database=t;EditorUi.migrateStorageFiles&&(StorageFile.migrate(t),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(r){if((!r||+"1"==urlParams.forceMigration)&&"1"==urlParams.forceMigration){var z=document.createElement("iframe");z.style.display="none";z.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+urlParams.forceMigration);document.body.appendChild(z);var D=!0,H=!1,B,W=0,I=mxUtils.bind(this,function(){H=!0;this.setDatabaseItem(".drawioMigrated3",!0);z.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),N=mxUtils.bind(this,function(){W++;U()}),+U=mxUtils.bind(this,function(){try{if(W>=B.length)I();else{var V=B[W];StorageFile.getFileContent(this,V,mxUtils.bind(this,function(ja){null==ja||".scratchpad"==V&&ja==this.emptyLibraryXml?z.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",functionArgs:[V]}),"*"):N()}),N)}}catch(ja){console.log(ja)}}),S=mxUtils.bind(this,function(V){try{this.setDatabaseItem(null,[{title:V.title,size:V.data.length,lastModified:Date.now(),type:V.isLib?"L":"F"},{title:V.title,+data:V.data}],N,N,["filesInfo","files"])}catch(ja){console.log(ja)}});r=mxUtils.bind(this,function(V){try{if(V.source==z.contentWindow){var ja={};try{ja=JSON.parse(V.data)}catch(v){}"init"==ja.event?(z.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),z.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=ja.event||H||(D?null!=ja.resp&&0<ja.resp.length&&null!=ja.resp[0]?(B=ja.resp[0],D=!1,U()):+I():null!=ja.resp&&0<ja.resp.length&&null!=ja.resp[0]?S(ja.resp[0]):N())}}catch(v){console.log(v)}});window.addEventListener("message",r)}})));c(t);t.onversionchange=function(){t.close()}}catch(r){null!=f?f(r):null!=window.console&&console.warn(r)}});n.onerror=f;n.onblocked=function(){}}catch(q){null!=f?f(q):null!=window.console&&console.error(q)}else null!=f&&f(Error("IndexedDB not supported"))}else c(this.database)};EditorUi.prototype.setDatabaseItem=function(c,f,k,n,q){this.openDatabase(mxUtils.bind(this,+function(t){try{q=q||"objects";Array.isArray(q)||(q=[q],c=[c],f=[f]);var r=t.transaction(q,"readwrite");r.oncomplete=k;r.onerror=n;for(t=0;t<q.length;t++)r.objectStore(q[t]).put(null!=c&&null!=c[t]?{key:c[t],data:f[t]}:f[t])}catch(z){null!=n&&n(z)}}),n)};EditorUi.prototype.removeDatabaseItem=function(c,f,k,n){this.openDatabase(mxUtils.bind(this,function(q){try{n=n||"objects";Array.isArray(n)||(n=[n],c=[c]);var t=q.transaction(n,"readwrite");t.oncomplete=f;t.onerror=k;for(q=0;q<n.length;q++)t.objectStore(n[q]).delete(c[q])}catch(r){null!=+k&&k(r)}}),k)};EditorUi.prototype.getDatabaseItem=function(c,f,k,n){this.openDatabase(mxUtils.bind(this,function(q){try{n=n||"objects";var t=q.transaction([n],"readonly").objectStore(n).get(c);t.onsuccess=function(){f(t.result)};t.onerror=k}catch(r){null!=k&&k(r)}}),k)};EditorUi.prototype.getDatabaseItems=function(c,f,k){this.openDatabase(mxUtils.bind(this,function(n){try{k=k||"objects";var q=n.transaction([k],"readonly").objectStore(k).openCursor(IDBKeyRange.lowerBound(0)),t=[];q.onsuccess=function(r){null==+r.target.result?c(t):(t.push(r.target.result.value),r.target.result.continue())};q.onerror=f}catch(r){null!=f&&f(r)}}),f)};EditorUi.prototype.getDatabaseItemKeys=function(c,f,k){this.openDatabase(mxUtils.bind(this,function(n){try{k=k||"objects";var q=n.transaction([k],"readonly").objectStore(k).getAllKeys();q.onsuccess=function(){c(q.result)};q.onerror=f}catch(t){null!=f&&f(t)}}),f)};EditorUi.prototype.commentsSupported=function(){var c=this.getCurrentFile();return null!=c?c.commentsSupported():!1};+EditorUi.prototype.commentsRefreshNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(c,f){var k=this.getCurrentFile();null!=k?k.getComments(c,f):c([])};EditorUi.prototype.addComment=function(c,f,k){var n=this.getCurrentFile();null!=n?n.addComment(c,f,k):f(Date.now())};EditorUi.prototype.canReplyToReplies=+function(){var c=this.getCurrentFile();return null!=c?c.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.anchoredCommentsSupported=function(){var c=this.getCurrentFile();return null!=c?c.anchoredCommentsSupported():!1};EditorUi.prototype.mentionsSupported=function(){var c=this.getCurrentFile();return null!=c?c.mentionsSupported():!1};EditorUi.prototype.freeMentionsSupported=function(){var c=this.getCurrentFile();+return null!=c?c.freeMentionsSupported():!1};EditorUi.prototype.mentionsLiveSearch=function(){var c=this.getCurrentFile();return null!=c?c.mentionsLiveSearch():!1};EditorUi.prototype.mentionNotificationsSupported=function(){var c=this.getCurrentFile();return null!=c?c.mentionNotificationsSupported():!0};EditorUi.prototype.getMentionCandidates=function(c,f,k){var n=this.getCurrentFile();null!=n?n.getMentionCandidates(c,f,k):c([])};EditorUi.prototype.serializeMention=function(c){return"+"+c.email};+EditorUi.prototype.parseMentionTokens=function(c){for(var f=/[+@]([A-Za-z0-9.!#$%&'*/=?^_`{|}~+\-]+@[A-Za-z0-9.\-]+\.[A-Za-z]{2,})/g,k=[],n=0,q;null!=(q=f.exec(c));)q.index>n&&k.push(c.substring(n,q.index)),k.push({email:q[1]}),n=q.index+q[0].length;n<c.length&&k.push(c.substring(n));return k};EditorUi.prototype.getCommentCacheTarget=function(){var c=this.getCurrentFile();return null!=c?c:this};EditorUi.prototype.refreshCommentCache=function(c,f){if(this.commentsSupported()){var k=this.getCommentCacheTarget();+if(null!=k.commentCacheCallbacks)k.commentCacheCallbacks.push([c,f]);else{k.commentCacheCallbacks=[[c,f]];var n=mxUtils.bind(this,function(q,t){var r=k.commentCacheCallbacks;k.commentCacheCallbacks=null;for(var z=0;null!=r&&z<r.length;z++)if(null!=r[z][q])r[z][q](t)});this.getComments(mxUtils.bind(this,function(q){this.getCommentCacheTarget()==k&&(k.commentCache=q,this.fireEvent(new mxEventObject("commentsChanged")));n(0,q)}),mxUtils.bind(this,function(q){n(1,q)}))}}else null!=c&&c(null)};EditorUi.prototype.commentsUpdated=+function(){if(this.commentsSupported()){var c=this.getCurrentFile();null!=c&&null!=c.sync&&c.sync.sendCommentsChangedMessage();this.refreshCommentCache()}};EditorUi.prototype.getUnresolvedCommentCount=function(){var c=this.getCommentCacheTarget().commentCache,f=0;if(null!=c)for(var k=0;k<c.length;k++)c[k].isResolved||f++;return f};EditorUi.prototype.getCommentAnchorCells=function(c){var f=c.getAnchorCellIds(),k=[];if(null!=f&&0<f.length){c=c.getAnchorPageId();var n=null==c?this.currentPage:this.getPageById(c);+if(null!=n)if(n==this.currentPage)for(c=0;c<f.length;c++)n=this.editor.graph.model.getCell(f[c]),null!=n&&k.push(n);else{try{this.updatePageRoot(n)}catch(z){return k}if(null!=n.root){var q={},t=0;for(c=0;c<f.length;c++)q[f[c]]||(q[f[c]]=!0,t++);var r=function(z){if(0<t){q[z.getId()]&&(q[z.getId()]=!1,k.push(z),t--);for(var D=0;D<z.getChildCount();D++)r(z.getChildAt(D))}};r(n.root)}}}return k};EditorUi.prototype.gotoCommentAnchor=function(c){var f=c.getAnchorPageId();if(null!=f&&null!=this.currentPage&&+f!=this.currentPage.getId()){f=this.getPageById(f);if(null==f)return!1;this.selectPage(f)}f=this.editor.graph;var k=c.getAnchorCellIds();if(null!=k&&0<k.length){c=[];for(var n=0;n<k.length;n++){var q=f.model.getCell(k[n]);null!=q&&c.push(q)}return 0<c.length?(f.isEnabled()?f.setSelectionCells(c):f.highlightCells(c,"#0071e3",2E3),f.scrollCellToVisible(c[0]),!0):!1}k=c.getAnchorRect();null!=k&&0<k.w&&0<k.h&&f.fitWindow(new mxRectangle(k.x,k.y,k.w,k.h),0);c=c.getAnchorPoint();if(null!=c){k=f.view.scale;+n=f.view.translate;f=f.container;f.scrollLeft=Math.round((c.x+n.x)*k-f.clientWidth/2);f.scrollTop=Math.round((c.y+n.y)*k-f.clientHeight/2);var t=document.createElement("div");t.className="geCommentAnchorMarker";t.style.left=Math.round((c.x+n.x)*k)+"px";t.style.top=Math.round((c.y+n.y)*k)+"px";f.appendChild(t);window.setTimeout(function(){null!=t.parentNode&&t.parentNode.removeChild(t)},2E3)}return!0};EditorUi.prototype.addCommentsBadge=function(c){var f=document.createElement("span");f.className=+"geCommentsBadge";f.style.display="none";c.appendChild(f);c=mxUtils.bind(this,function(){var k=this.getUnresolvedCommentCount();f.style.display=0<k?"":"none";f.innerText="";mxUtils.write(f,99<k?"99+":String(k))});this.addListener("commentsChanged",c);this.editor.addListener("fileLoaded",c);c();return f};EditorUi.prototype.installCommentDragSource=function(c){var f=this,k=document.createElement("div");k.style.width="24px";k.style.height="24px";k.style.backgroundImage="url("+Editor.lightDarkCommentImage++")";k.style.backgroundSize="100% 100%";k.style.opacity="0.9";c=mxUtils.makeDraggable(c,function(){return f.editor.graph},function(q,t,r,z,D){null!=f.currentPage&&null!=f.menus&&null!=f.menus.showCommentsWindow&&(q=null!=r?{p:f.currentPage.getId(),c:r.id}:{p:f.currentPage.getId(),pt:{x:Math.round(z),y:Math.round(D)}},f.menus.showCommentsWindow(null,q))},k);var n=c.mouseDown;c.mouseDown=function(q){mxEvent.isMouseEvent(q)&&!mxEvent.isPopupTrigger(q)&&f.commentsSupported()&&f.anchoredCommentsSupported()&&+f.canComment()&&n.apply(this,arguments)};return c};EditorUi.prototype.updateCommentOverlays=function(){var c=this.editor.graph;if(null!=this.commentOverlays)for(var f=0;f<this.commentOverlays.length;f++)c.removeCellOverlay(this.commentOverlays[f].cell,this.commentOverlays[f].overlay);this.commentOverlays=null;var k=this.getCurrentFile();if(null!=k&&k.anchoredCommentsSupported()&&null!=k.commentCache&&!this.editor.isChromelessView()){var n=null!=this.currentPage?this.currentPage.getId():null,q={};+for(f=0;f<k.commentCache.length;f++){var t=k.commentCache[f],r=t.getAnchorCellIds();if(!t.isResolved&&null!=r&&t.getAnchorPageId()==n)for(t=0;t<r.length;t++)q[r[t]]=!0}this.commentOverlays=[];for(var z in q)mxUtils.bind(this,function(D){var H=c.model.getCell(D);if(null!=H){var B=new mxCellOverlay(new mxImage(Editor.lightDarkCommentImage,16,16),mxResources.get("comments"),mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM,new mxPoint(8,8));B.isCommentOverlay=!0;B.cursor="pointer";B.addListener(mxEvent.CLICK,+mxUtils.bind(this,function(){null!=this.menus&&null!=this.menus.showCommentsWindow&&this.menus.showCommentsWindow(D)}));c.addCellOverlay(H,B);this.commentOverlays.push({cell:H,overlay:B})}})(z)}};EditorUi.prototype.newComment=function(c,f){var k=this.getCurrentFile();return null!=k?k.newComment(c,f):new DrawioComment(this,null,c,Date.now(),Date.now(),!1,f)};EditorUi.prototype.isRevisionHistorySupported=function(){var c=this.getCurrentFile();return null!=c&&c.isRevisionHistorySupported()};EditorUi.prototype.getRevisions=+function(c,f){var k=this.getCurrentFile();null!=k&&k.getRevisions?k.getRevisions(c,f):f({message:mxResources.get("unknownError")})};EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.vsdxExportEnabled=function(){return"atlassian"==this.getServiceName()};EditorUi.prototype.addRemoteServiceSecurityCheck=+function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,f,k,n,q,t,r,z){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,f,k,n,q,t,r,z)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=+function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,f)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,f,k,n,q,t,r,z,D,H,B,W,I,N,U,S){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,f,k,n,q,t,r,z,D,H,B,W,I,N,U,S)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");+return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,f,k,n){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(c,f,k,n)};EditorUi.prototype.convertImageToDataUri=function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,f)};EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=+function(c,f,k,n){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(c,f,k,n)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,f,k,n,q){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,f,k,n,q)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=+urlParams.forceMigration)return null;for(var c=[],f=0;f<localStorage.length;f++){var k=localStorage.key(f),n=localStorage.getItem(k);if(0<k.length&&(".scratchpad"==k||"."!=k.charAt(0))&&0<n.length){var q="<mxfile "===n.substring(0,8)||"<?xml"===n.substring(0,5)||"\x3c!--[if IE]>"===n.substring(0,12);n="<mxlibrary>"===n.substring(0,11);(q||n)&&c.push(k)}}return c};EditorUi.prototype.getLocalStorageFile=function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;+var f=localStorage.getItem(c);return{title:c,data:f,isLib:"<mxlibrary>"===f.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();var CommentsWindow=function(b,l,p,g,u,y){function A(){for(var P=F.getElementsByTagName("div"),aa=0,ea=0;ea<P.length;ea++)"none"!=P[ea].style.display&&P[ea].parentNode==F&&aa++;G.style.display=0==aa?"block":"none"}function E(P){for(var aa=0;aa<v.length;aa++)if(null!=v[aa].email&&null!=P&&v[aa].email.toLowerCase()==P.toLowerCase())return v[aa].displayName||P;return P}function J(P){var aa=document.createElement("span");aa.className="geCommentMention";aa.setAttribute("data-mention",b.serializeMention(P));null!=P.email&&aa.setAttribute("data-email",P.email);aa.contentEditable="false";mxUtils.write(aa,"@"+(P.displayName||(null!=P.email?E(P.email):P.id)));return aa}function M(P,aa){P.innerText="";aa=null!=aa?aa:"";if(N){aa=b.parseMentionTokens(aa);for(var ea=0;ea<aa.length;ea++)"string"===typeof aa[ea]?mxUtils.write(P,aa[ea]):P.appendChild(J(aa[ea]))}else mxUtils.write(P,aa)}function L(P,aa,ea,na){function ta(qa){for(var Ea in za)for(var Ga=0;Ga<za[Ea].length;Ga++)qa(za[Ea][Ga],"down"==Ea?ka:"move"==Ea?ra:Ba)}function ua(qa){qa=mxUtils.convertPoint(Aa,mxEvent.getClientX(qa),mxEvent.getClientY(qa));return new mxPoint(qa.x/ya.view.scale-ya.view.translate.x,qa.y/ya.view.scale-ya.view.translate.y)}function ma(){ta(function(qa,Ea){document.removeEventListener(qa,Ea,!0)});document.removeEventListener("keydown",la,!0);window.setTimeout(function(){document.removeEventListener("click",fa,!0)},0);Aa.classList.remove("geCommentAnchorPicking");ya.setEnabled(Ca);null!=va&&null!=va.parentNode&&va.parentNode.removeChild(va)}@@ -15264,8 +15353,8 @@ E){return{width:y,height:A,style:"group;connectable=0;transparentBounds=1;groupPp("elkTree",{"elk.direction":"DOWN","elk.spacing.nodeNode":"40","elk.spacing.edgeNode":"20","elk.padding":"[top=40,left=20,bottom=20,right=20]",corners:"rounded"})),radialTree:g(!1,320,320,"containerType=tree;"+p("elkRadial",{"elk.padding":"[top=40,left=20,bottom=20,right=20]"})),organic:g(!1,320,320,p("elkOrganic",{"elk.padding":"[top=40,left=20,bottom=20,right=20]"})),circle:g(!1,320,320,"childLayout=circleLayout;")}}();Menus.layoutContainerEdgeStyle="html=1;rounded=1;curved=0;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startSize=6;endSize=6;";Menus.prototype.createHelpLink=function(p){return this.editorUi.createHelpIcon(p)};Menus.prototype.addLinkToItem=function(p,g){null!=p&&p.firstChild.nextSibling.appendChild(this.createHelpLink(g))};Menus.prototype.removeCustomFont=function(p,g){for(var u=0;u<this.customFonts.length;u++)if(this.customFonts[u].name==p&&this.customFonts[u].url==g){this.customFonts.splice(u,1);this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts));break}};Menus.prototype.containsFont=function(p,g){for(var u=0;u<this.customFonts.length;u++)if(this.customFonts[u].name==p&&this.customFonts[u].url==g)return!0;for(u=0;u<this.defaultFonts.length;u++){var y=this.defaultFonts[u];if("string"!==typeof y&&y.fontFamily==p&&y.fontUrl==g||"string"===typeof y&&y==p&&null==g)return!0}return!1};Menus.prototype.addCustomFont=function(p,g){null==p||this.containsFont(p,g)||(this.customFonts.push({name:p,url:g}),this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts)))};-var l=Menus.prototype.init;Menus.prototype.init=function(){function p(v,d,m){g.editor.isExportToCanvas()?g.showExportDialog(mxResources.get("image"),!1,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,function(x,C,F,G,K,Q,ba,T,Z,X,da,R,Y,ca,P,aa){ca=parseInt(x);!isNaN(ca)&&0<ca&&(g.exportImage(ca/100,C&&"png"==v,F,G,K&&"png"==v,ba,!T,Z,v,da,"png"==v?aa:null,R,Y),null!=m&&m(x,C,F,G,K,Q,ba,T,Z,X,da,R,Y))}),!0,d,v,!0):g.isOffline()||mxClient.IS_IOS&&navigator.standalone||-g.showRemoteExportDialog(mxResources.get("export"),null,mxUtils.bind(this,function(x,C,F,G,K){g.downloadFile(C&&"png"==v?"xmlpng":v,null,null,x,null,null,F,G,K)}),!1,!0)}l.apply(this,arguments);var g=this.editorUi,u=g.editor.graph,y=mxUtils.bind(u,u.isEnabled);"1"==urlParams.noFileMenu&&(this.defaultMenuItems=this.defaultMenuItems.filter(function(v){return"file"!=v}));g.actions.addAction("new...",function(){var v=g.isOffline(),d=new NewDialog(g,v,!(g.mode==App.MODE_DEVICE&&"chooseFileSystemEntries"in+var l=Menus.prototype.init;Menus.prototype.init=function(){function p(v,d,m){g.editor.isExportToCanvas()?g.showExportDialog(mxResources.get("image"),!1,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,function(x,C,F,G,K,Q,ba,T,Z,X,da,R,Y,ca,P,aa){ca=parseInt(x);!isNaN(ca)&&0<ca&&(g.exportImage(ca/100,C&&"png"==v,F,G,K&&"png"==v,ba,!T,Z,v,da,"png"==v?aa:null,R,Y),null!=m&&m(x,C,F,G,K,Q,ba,T,Z,X,da,R,Y))}),!0,d,v,!0):!g.isRemoteExportEnabled()||mxClient.IS_IOS&&+navigator.standalone||g.showRemoteExportDialog(mxResources.get("export"),null,mxUtils.bind(this,function(x,C,F,G,K){g.downloadFile(C&&"png"==v?"xmlpng":v,null,null,x,null,null,F,G,K)}),!1,!0)}l.apply(this,arguments);var g=this.editorUi,u=g.editor.graph,y=mxUtils.bind(u,u.isEnabled);"1"==urlParams.noFileMenu&&(this.defaultMenuItems=this.defaultMenuItems.filter(function(v){return"file"!=v}));g.actions.addAction("new...",function(){var v=g.isOffline(),d=new NewDialog(g,v,!(g.mode==App.MODE_DEVICE&&"chooseFileSystemEntries"inwindow));g.showDialog(d.container,v?350:620,v?70:460,!0,!0,function(m){null!=g.sidebar&&g.sidebar.hideTooltip();m&&null==g.getCurrentFile()&&g.showSplash()});d.init()});g.actions.put("insertTemplate",new Action("template...",function(){g.openTemplateDialog()})).isEnabled=y;var A=mxResources.get("page");g.actions.put("insertPage",new Action(mxResources.get("insertPage"),function(){try{g.insertPage()}catch(v){g.handleError(v)}})).isEnabled=function(){return null!=g.currentPage};g.actions.put("removePage",new Action(mxResources.get("removeIt",[A]),function(){g.removePage(g.currentPage)})).isEnabled=function(){return null!=g.currentPage};g.actions.put("renamePage",new Action(mxResources.get("renameIt",[A])+"...",function(){g.renamePage(g.currentPage)})).isEnabled=function(){return null!=g.currentPage};g.actions.put("duplicatePage",new Action(mxResources.get("duplicateIt",[A]),function(){var v=g.currentPage;g.duplicatePage(v,mxResources.get("copyOf",[v.getName()]))})).isEnabled=function(){return null!=g.currentPage};g.actions.put("sortPages",new Action(mxResources.get("sortPages"),function(){g.sortPages()})).isEnabled=function(){return null!=g.pages&&1<g.pages.length&&g.editor.graph.isEnabled()};A=g.actions.addAction("shareCursor",function(){g.setShareCursorPosition(!g.isShareCursorPosition())});A.setToggleAction(!0);A.setSelectedCallback(function(){return g.isShareCursorPosition()});A=g.actions.addAction("showRemoteCursors",function(){g.setShowRemoteCursors(!g.isShowRemoteCursors())});A.setToggleAction(!0);@@ -15283,8 +15372,8 @@ null,mxResources.get("export"));g.showDialog(v.container,300,null,!0,!0)}));Edit!0),F=g.addCheckbox(m,mxResources.get("allPages"),!d,d,null,null,null,null,!0),G=g.addCheckbox(m,mxResources.get("includeCopyOfMyDiagram"),!1,null,null,null,null,null,!0),K=g.addCheckbox(m,mxResources.get("compressed"),Editor.defaultCompressed,!0,null,null,null,null,!0);v.appendChild(m);mxEvent.addListener(C,"change",function(){C.checked?F.setAttribute("disabled","disabled"):d||F.removeAttribute("disabled")});mxEvent.addListener(G,"change",function(){G.checked?K.removeAttribute("disabled"):K.setAttribute("disabled","disabled")});v=new CustomDialog(g,v,mxUtils.bind(this,function(){var Q=C.checked&&!x.isSelectionEmpty(),ba=!Q&&!d&&F.checked;Q=g.createJsonForExport(ba,G.checked,G.checked&&K.checked,Q);g.saveData(g.getBaseFilename(ba)+".json","json",JSON.stringify(Q,null,2),"application/json")}),null,mxResources.get("export"));g.showDialog(v.container,300,null,!0,!0)}));g.actions.put("exportHtml",new Action("formatHtmlEmbedded...",function(){g.getPublicUrl(g.getCurrentFile(),function(v){g.showHtmlDialog(mxResources.get("export"),"https://www.drawio.com/docs/manual/export/embed-html/",v,function(d,m,x,C,F,G,K,Q,ba,T,Z,X,da,R,Y){g.createHtml(d,m,x,C,F,G,K,Q,ba,T,Z,mxUtils.bind(this,function(ca,P){var aa=g.getBaseFilename(K);ca='\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n<!DOCTYPE html>\n<html>\n<head>\n<title>'+mxUtils.htmlEntities(aa)+'</title>\n<meta charset="utf-8"/>\n</head>\n<body>'+ca+"\n"+P+"\n</body>\n</html>";g.saveData(aa+(".drawio"==aa.substring(aa.lenth-7)?"":".drawio")+-".html","html",ca,"text/html")}),X,da,R,Y)})})}));g.actions.put("exportPdf",new Action("formatPdf...",function(){g.showPrintDialog(mxResources.get("formatPdf"),EditorUi.isElectronApp||!g.isOffline()&&!g.printPdfExport?mxUtils.bind(this,function(v,d){v=null!=g.pages?g.pages.length:1;var m=null==g.pages||1>=g.pages.length,x=g.getPageIndex(g.currentPage);x=null!=x?x+1:1;g.downloadFile("pdf",null,null,!d.selection,m||!d.allPages&&d.pagesFrom==x&&d.pagesTo==x,!d.crop,d.transparent,d.scale,null,d.grid,-d.includeCopy,d.allPages||d.pagesFrom==x&&d.pagesTo==x?null:{from:Math.max(0,Math.min(v-1,d.pagesFrom-1)),to:Math.max(0,Math.min(v-1,d.pagesTo-1))},d.border,d.fit,d.sheetsAcross,d.sheetsDown,d.shadows,d.icons)}):null,mxResources.get("export"))}));g.actions.addAction("open...",function(){g.pickFile()});g.actions.addAction("close",function(){function v(){null!=d&&d.removeDraft();g.fileLoaded(new LocalFile(g,g.emptyDiagramXml,null,!0))}var d=g.getCurrentFile();null!=d&&d.isModified()?g.confirm(mxResources.get("allChangesLost"),+".html","html",ca,"text/html")}),X,da,R,Y)})})}));g.actions.put("exportPdf",new Action("formatPdf...",function(){g.showPrintDialog(mxResources.get("formatPdf"),!EditorUi.isElectronApp&&g.isPrintPdfExport()?null:mxUtils.bind(this,function(v,d){v=null!=g.pages?g.pages.length:1;var m=null==g.pages||1>=g.pages.length,x=g.getPageIndex(g.currentPage);x=null!=x?x+1:1;g.downloadFile("pdf",null,null,!d.selection,m||!d.allPages&&d.pagesFrom==x&&d.pagesTo==x,!d.crop,d.transparent,d.scale,null,d.grid,d.includeCopy,+d.allPages||d.pagesFrom==x&&d.pagesTo==x?null:{from:Math.max(0,Math.min(v-1,d.pagesFrom-1)),to:Math.max(0,Math.min(v-1,d.pagesTo-1))},d.border,d.fit,d.sheetsAcross,d.sheetsDown,d.shadows,d.icons)}),mxResources.get("export"))}));g.actions.addAction("open...",function(){g.pickFile()});g.actions.addAction("close",function(){function v(){null!=d&&d.removeDraft();g.fileLoaded(new LocalFile(g,g.emptyDiagramXml,null,!0))}var d=g.getCurrentFile();null!=d&&d.isModified()?g.confirm(mxResources.get("allChangesLost"),null,v,mxResources.get("cancel"),mxResources.get("discardChanges")):v()});g.actions.addAction("extractText",function(v){v=u.getIndexableText(v||u.isSelectionEmpty()?null:u.getSelectionCells());v=new EmbedDialog(g,v,null,null,null,mxResources.get("extractText"));g.showDialog(v.container,450,240,!0,!0);v.init()});g.actions.addAction("editShape...",mxUtils.bind(this,function(){if(1==u.getSelectionCount()){var v=u.getSelectionCell(),d=u.view.getState(v);null!=d&&null!=d.shape&&null!=d.shape.stencil&&(v=new EditShapeDialog(g,v,mxResources.get("editShape")),g.showDialog(v.container,640,480,!0,!1,null,null,null,new mxRectangle(0,0,300,200)),v.init())}}));g.actions.addAction("revisionHistory...",function(){g.isRevisionHistorySupported()?g.spinner.spin(document.body,mxResources.get("loading"))&&g.getRevisions(mxUtils.bind(this,function(v,d){g.spinner.stop();v=new RevisionDialog(g,v,d);g.showDialog(v.container,640,480,!0,!0);v.init()}),mxUtils.bind(this,function(v){g.handleError(null!=v?v:mxResources.get("notAvailable"))})):g.showError(mxResources.get("error"),mxResources.get("notAvailable"),mxResources.get("ok"))});g.actions.addAction("createRevision",function(){g.actions.get("save").funct()},null,null,Editor.ctrlKey+"+S");A=g.actions.addAction("synchronize",function(){g.synchronizeCurrentFile("none"==DrawioFile.SYNC)},null,null,Editor.altKey+"+"+Editor.shiftKey+"+S");"none"==DrawioFile.SYNC&&(A.label=mxResources.get("refresh"));g.actions.addAction("upload...",function(){var v=g.getCurrentFile();null!=v&&(window.drawdata=@@ -15363,9 +15452,9 @@ A=g.actions.addAction("search",function(){if(null!=g.sidebar){var v=g.sidebar.isnull!=mxSettings.settings&&mxSettings.setCurrentEdgeStyle(null),g.clearDefaultStyle(),Editor.sketchMode&&g.setSketchMode(!1))};"1"==urlParams.embed&&(g.actions.get("saveAs").setEnabled(!1),g.actions.get("save").funct=function(v){u.isEditing()&&u.stopEditing();var d="0"!=urlParams.pages||null!=g.pages&&1<g.pages.length?g.getFileData(!0):mxUtils.getXml(g.editor.getGraphXml());if("json"==urlParams.proto){var m=g.createLoadMessage("save");m.xml=d;!0!==v||"1"!=urlParams.saveAndExit&&"1"!=urlParams.publishClose||(m.exit=!0);d=JSON.stringify(m)}(window.opener||window.parent).postMessage(d,"*");"0"!=urlParams.modified&&"1"!=urlParams.keepmodified&&(g.editor.modified=!1,g.clearStatus());v=g.getCurrentFile();null==v||v.constructor==EmbedFile||v.constructor==LocalFile&&null==v.mode||g.saveFile()},g.actions.addAction("saveAndExit",function(){"1"==urlParams.toSvg?g.sendEmbeddedSvgExport():g.actions.get("save").funct(!0)},null,null,Editor.ctrlKey+"+S").label="1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit"),g.actions.addAction("exit",function(){if("1"==urlParams.embedInline)g.sendEmbeddedSvgExport();else{var v=function(){g.editor.modified=!1;var d="json"==urlParams.proto?JSON.stringify({event:"exit",modified:g.editor.modified}):"";(window.opener||window.parent).postMessage(d,"*")};g.editor.modified?g.confirm(mxResources.get("allChangesLost"),null,v,mxResources.get("cancel"),mxResources.get("discardChanges")):v()}},null,null,"1"==urlParams.embedInline?"Escape":null));this.put("exportAs",-new Menu(mxUtils.bind(this,function(v,d){g.editor.isExportToCanvas()?(this.addMenuItems(v,["exportPng"],d),Editor.jpgSupported&&this.addMenuItems(v,["exportJpg"],d),Editor.webpSupported&&this.addMenuItems(v,["exportWebp"],d)):g.isOffline()||mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(v,["exportPng","exportJpg"],d);g.editor.isExportToCanvas()&&this.addMenuItems(v,["exportAnimatedGif"],d);this.addMenuItems(v,["exportSvg","-"],d);g.isOffline()||g.printPdfExport?this.addMenuItems(v,["exportPdf"],-d):g.isOffline()||mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(v,["exportPdf"],d);!g.vsdxExportEnabled()||"undefined"===typeof VsdxExport&&g.isOffline()||this.addMenuItems(v,["exportVsdx"],d);var m=["-","exportHtml","exportXml"];Editor.enableExportUrl&&m.push("exportUrl");m.push("exportJson");this.addMenuItems(v,m,d);g.isOffline()||(v.addSeparator(d),this.addMenuItem(v,"export",d).firstChild.nextSibling.innerHTML=mxResources.get("advanced")+"...");mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||-"min"!=Editor.currentTheme||g.isOffline()||this.addMenuItems(v,["publishLink"],d);g.mode==App.MODE_ATLAS||"1"==urlParams.extAuth||"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||g.isOffline()||(v.addSeparator(d),g.menus.addSubmenu("embed",v,d))})));this.put("importFrom",new Menu(mxUtils.bind(this,function(v,d){function m(F){F.pickFile(function(G){g.spinner.spin(document.body,mxResources.get("loading"))&&F.getFile(G,function(K){var Q="data:image/"==K.getData().substring(0,+new Menu(mxUtils.bind(this,function(v,d){g.editor.isExportToCanvas()?(this.addMenuItems(v,["exportPng"],d),Editor.jpgSupported&&this.addMenuItems(v,["exportJpg"],d),Editor.webpSupported&&this.addMenuItems(v,["exportWebp"],d)):!g.isRemoteExportEnabled()||mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(v,["exportPng","exportJpg"],d);g.editor.isExportToCanvas()&&this.addMenuItems(v,["exportAnimatedGif"],d);this.addMenuItems(v,["exportSvg","-"],d);g.isPrintPdfExport()?this.addMenuItems(v,["exportPdf"],+d):mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(v,["exportPdf"],d);!g.vsdxExportEnabled()||"undefined"===typeof VsdxExport&&g.isOffline()||this.addMenuItems(v,["exportVsdx"],d);var m=["-","exportHtml","exportXml"];Editor.enableExportUrl&&m.push("exportUrl");m.push("exportJson");this.addMenuItems(v,m,d);g.isOffline()||(v.addSeparator(d),this.addMenuItem(v,"export",d).firstChild.nextSibling.innerHTML=mxResources.get("advanced")+"...");mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"min"!=+Editor.currentTheme||g.isOffline()||this.addMenuItems(v,["publishLink"],d);g.mode==App.MODE_ATLAS||"1"==urlParams.extAuth||"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||g.isOffline()||(v.addSeparator(d),g.menus.addSubmenu("embed",v,d))})));this.put("importFrom",new Menu(mxUtils.bind(this,function(v,d){function m(F){F.pickFile(function(G){g.spinner.spin(document.body,mxResources.get("loading"))&&F.getFile(G,function(K){var Q="data:image/"==K.getData().substring(0,11)?C(K.getTitle()):"text/xml";/\.svg$/i.test(K.getTitle())&&!g.editor.isDataSvg(K.getData())&&(K.setData(Editor.createSvgDataUri(K.getData())),Q="image/svg+xml");x(K.getData(),Q,K.getTitle())},function(K){g.handleError(K,null!=K?mxResources.get("errorLoadingFile"):null)},F==g.drive)},!0)}var x=mxUtils.bind(this,function(F,G,K){var Q=u.view,ba=u.getGraphBounds(),T=u.snap(Math.ceil(Math.max(0,ba.x/Q.scale-Q.translate.x)+4*u.gridSize)),Z=u.snap(Math.ceil(Math.max(0,(ba.y+ba.height)/Q.scale-Q.translate.y)+4*u.gridSize));"data:image/"==F.substring(0,11)?g.loadImage(F,mxUtils.bind(this,function(X){var da=!0,R=mxUtils.bind(this,function(){g.resizeImage(X,F,mxUtils.bind(this,function(Y,ca,P){Y=da?Math.min(1,Math.min(g.maxImageSize/ca,g.maxImageSize/P)):1;g.importFile(F,G,T,Z,Math.round(ca*Y),Math.round(P*Y),K,function(aa){g.spinner.stop();u.setSelectionCells(aa);u.scrollCellToVisible(u.getSelectionCell())})}),da)});F.length>g.resampleThreshold?g.confirmImageResize(function(Y){da=Y;R()}):R()}),mxUtils.bind(this,function(){g.handleError({message:mxResources.get("cannotOpenFile")})})):g.importFile(F,G,T,Z,0,0,K,function(X){g.spinner.stop();u.setSelectionCells(X);u.scrollCellToVisible(u.getSelectionCell())})}),C=mxUtils.bind(this,function(F){var G="text/xml";/\.png$/i.test(F)?G="image/png":/\.jpe?g$/i.test(F)?G="image/jpg":/\.gif$/i.test(F)?G="image/gif":/\.pdf$/i.test(F)&&(G="application/pdf");return G});"undefined"!=typeof google&&"undefined"!=typeof google.picker&&(null!=g.drive?v.addItem(mxResources.get("googleDrive")+@@ -20643,7 +20732,31 @@ null!=c&&(a.setFillColor("#999C95"),c.drawShape(a,this,5,5,10,10));break;case "enull!=c&&(a.setFillColor("#5EA3E4"),c.drawShape(a,this,5,5,10,10))}switch(e){case "blocker":c=mxStencilRegistry.getStencil("mxgraph.atlassian.no");null!=c&&(a.setFillColor("#CE0000"),c.drawShape(a,this,85,5,10,10));break;case "critical":c=mxStencilRegistry.getStencil("mxgraph.atlassian.critical");null!=c&&(a.setFillColor("#CE0000"),c.drawShape(a,this,86,3,8,14));break;case "major":c=mxStencilRegistry.getStencil("mxgraph.atlassian.double_up");null!=c&&(a.setFillColor("#CE0000"),c.drawShape(a,this,85,5,10,10));break;case "minor":c=mxStencilRegistry.getStencil("mxgraph.atlassian.double");null!=c&&(a.setFillColor("#2A8735"),c.drawShape(a,this,85,5,10,10));break;case "trivial":c=mxStencilRegistry.getStencil("mxgraph.atlassian.single"),null!=c&&(a.setFillColor("#9AA1B2"),c.drawShape(a,this,85,5,10,10))}a.setFillColor("#FFFFFD");a.setFontColor("#4E6B89");switch(d){case "todo":a.rect(b-45,5,40,20);a.fill();a.text(b-25,15,0,0,"TO DO",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);break;case "inProgress":a.rect(b-85,5,80,20);a.fill();a.text(b-45,15,0,0,"IN PROGRESS",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);break;case "inReview":a.rect(b-75,5,70,20);a.fill();a.text(b-40,15,0,0,"IN REVIEW",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);break;case "done":a.rect(b-45,5,40,20);a.fill();a.text(b-25,15,0,0,"DONE",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);break;default:e=mxUtils.getValue(this.style,"issueStatusWidth",6.5*-d.length),a.rect(b-e-5,5,e,20),a.fill(),a.text(b-7,15,0,0,d,mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)}};mxCellRenderer.registerShape(mxAtlassianJiraIssue.prototype.cst.ISSUE,mxAtlassianJiraIssue);function mxShapeBasicCross(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=.5}mxUtils.extend(mxShapeBasicCross,mxActor);mxShapeBasicCross.prototype.cst={CROSS:"mxgraph.basic.cross2"};+d.length),a.rect(b-e-5,5,e,20),a.fill(),a.text(b-7,15,0,0,d,mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)}};mxCellRenderer.registerShape(mxAtlassianJiraIssue.prototype.cst.ISSUE,mxAtlassianJiraIssue);function mxShapeAtlassian2Icon(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAtlassian2Icon,mxShape);+mxShapeAtlassian2Icon.prototype.customProperties=[{name:"tileShape",dispName:"Tile Shape",type:"enum",defVal:"square",enumList:[{val:"square",dispName:"Rounded Square"},{val:"hex",dispName:"Hexagon"}]},{name:"tileColor",dispName:"Tile Color",type:"color",defVal:"#1868DB",primary:!0},{name:"tileOutlineColor",dispName:"Tile Outline",type:"color",defVal:"#DDDEE1",primary:!0},{name:"wordmarkColor",dispName:"Text Color",type:"color",defVal:"#101214",primary:!0},{name:"glyphScale",dispName:"Icon Scale",+type:"float",min:0,defVal:1}];mxShapeAtlassian2Icon.prototype.cst={SHAPE_ICON:"mxgraph.atlassian2.icon"};mxShapeAtlassian2Icon.HEX_ASPECT=.8971;mxShapeAtlassian2Icon.HEX_GLYPH_FACTOR=.8971;+mxShapeAtlassian2Icon.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getColorValue(this.style,"tileColor","none"),g="none"!=f,h=mxUtils.getValue(this.style,"atlassian2Wordmark",null),k=c,l=0;null!=h&&(l=String(mxUtils.getValue(this.style,"atlassian2LockupBox","1 0")).split(" "),k=parseFloat(l[0]),k=isNaN(k)||0>=k?c:c/k,c=parseFloat(l[1]||0),l=isNaN(c)?0:k*c);b=null!=h?Math.min(b,k*this.tileAspect()):b;a.translate(d,e);g&&this.background(a,0,l,b,k,f);a.setShadow(!1);this.foreground(a,+0,l,b,k,g,null!=h);null!=h&&this.wordmark(a,k,h,b,l)};mxShapeAtlassian2Icon.prototype.iconData=function(a,d,e,b){a=mxUtils.getValue(a,e,null);null==a&&null!=d&&null!=d.desc&&(a=d.desc.getAttribute(b));return null!=a&&""!=a?String(a):null};mxShapeAtlassian2Icon.prototype.parseBox=function(a){if(null==a)return null;a=String(a).split(" ");a=[parseFloat(a[0]),parseFloat(a[1]),parseFloat(a[2]),parseFloat(a[3])];return!isNaN(a[0])&&!isNaN(a[1])&&0<a[2]&&0<a[3]?a:null};+mxShapeAtlassian2Icon.prototype.parseLayout=function(a){var d=String(null!=a?a:"").split(" ");a=parseFloat(d[0]);var e=parseFloat(d[1]);d=parseFloat(d[2]);return[isNaN(a)?.3:a,isNaN(e)||0>=e?.65:e,isNaN(d)?0:d]};+mxShapeAtlassian2Icon.prototype.tileBounds=function(a){if("hex"!=mxUtils.getValue(this.style,"tileShape","square"))return null;var d=this.parseBox(this.iconData(this.style,a,"atlassian2TileBounds","tile"));return null!=d?d:null!=a&&"hex"==mxUtils.getValue(this.style,"tileShape","square")?(d=a.h0*mxShapeAtlassian2Icon.HEX_ASPECT,[(a.w0-d)/2,0,d,a.h0]):null};+mxShapeAtlassian2Icon.prototype.tileAspect=function(){if("hex"!=mxUtils.getValue(this.style,"tileShape","square"))return 1;var a=this.parseBox(mxUtils.getValue(this.style,"atlassian2TileBounds",null));return null!=a?a[2]/a[3]:mxShapeAtlassian2Icon.HEX_ASPECT};+mxShapeAtlassian2Icon.prototype.background=function(a,d,e,b,c,f){var g=mxUtils.getColorValue(this.style,mxConstants.STYLE_GRADIENTCOLOR,"none"),h=mxUtils.getValue(this.style,"gradientDirection","south"),k=mxUtils.getColorValue(this.style,"tileOutlineColor","none");"none"==g?a.setFillColor(f):a.setGradient(f,g,0,0,b,c,h);"none"!=k?(f=Math.max(1,b/24),g=f/2,a.setStrokeColor(k),a.setStrokeWidth(f),this.tilePath(a,d,e,b,c,g),a.fillAndStroke(),a.setStrokeColor(this.stroke),a.setStrokeWidth(this.strokewidth)):+(this.tilePath(a,d,e,b,c,0),a.fill())};+mxShapeAtlassian2Icon.prototype.tilePath=function(a,d,e,b,c,f){if("hex"==mxUtils.getValue(this.style,"tileShape","square")){var g=c-2*f,h=b-2*f;c=Math.max(0,.1146*g-.5*f);d+=b/2;e+=f;g=[[d,e],[d+h/2,e+g/4],[d+h/2,e+3*g/4],[d,e+g],[d-h/2,e+3*g/4],[d-h/2,e+g/4]];h=c/Math.sqrt(3);e=[];for(f=0;6>f;f++){d=g[f];b=g[(f+1)%6];var k=b[0]-d[0],l=b[1]-d[1],m=Math.sqrt(k*k+l*l);e.push([d[0]+k*h/m,d[1]+l*h/m,b[0]-k*h/m,b[1]-l*h/m])}a.begin();a.moveTo(e[0][0],e[0][1]);for(f=0;6>f;f++)a.lineTo(e[f][2],e[f][3]),+g=e[(f+1)%6],a.arcTo(c,c,0,0,1,g[0],g[1]);a.close()}else a.roundrect(d+f,e+f,b-2*f,c-2*f,.25*b-f,.25*c-f)};+mxShapeAtlassian2Icon.prototype.foreground=function(a,d,e,b,c,f,g){var h=mxUtils.getValue(this.style,"atlassian2Icon",null),k=null;null!=h&&(k=mxStencilRegistry.getStencil(h));if(null!=k){a.setFillColor(mxUtils.getColorValue(this.style,mxConstants.STYLE_FILLCOLOR,"none"));if(f||g){var l=this.tileBounds(k);null!=l?(f=d-l[0]*b/l[2],g=e-l[1]*c/l[3],h=b*k.w0/l[2],l=c*k.h0/l[3]):(f=d,g=e,h=b,l=c)}else f=this.parseBox(this.iconData(this.style,k,"atlassian2IconBounds","ink"))||[4,4,16,16],g=f[1],h=f[2],+l=f[3],f=d-f[0]*b/h,g=e-g*c/l,h=b*k.w0/h,l=c*k.h0/l;var m=parseFloat(mxUtils.getValue(this.style,"glyphScale",1));m=isNaN(m)?1:m;1!=m&&(f=d+b/2+(f-(d+b/2))*m,g=e+c/2+(g-(e+c/2))*m,h*=m,l*=m);k.drawShape(a,this,f,g,h,l)}};+mxShapeAtlassian2Icon.prototype.wordmark=function(a,d,e,b,c){e=mxStencilRegistry.getStencil(e);c=c||0;if(null!=e){var f=this.parseLayout(mxUtils.getValue(this.style,"atlassian2Lockup",null)),g=f[0],h=d*f[1];f=f[2];var k=h*e.w0/e.h0,l=mxUtils.getValue(this.style,"atlassian2Wordmark2",null);l=null!=l?mxStencilRegistry.getStencil(l):null;if(null!=l){var m=this.parseLayout(mxUtils.getValue(this.style,"atlassian2Lockup2",null)),n=d*m[1],p=n*l.w0/l.h0;a.setFillColor(mxUtils.getColorValue(this.style,mxConstants.STYLE_FILLCOLOR,+"none"));l.drawShape(a,this,b+d*m[0],c+d*(.5+m[2])-n/2,p,n);b+=d*m[0]+p}a.setFillColor(mxUtils.getColorValue(this.style,"wordmarkColor","none"));e.drawShape(a,this,b+d*g,c+d*(.5+f)-h/2,k,h)}};+mxShapeAtlassian2Icon.prototype.getConstraints=function(a,d,e){function b(l,m,n){l=new mxConnectionConstraint(new mxPoint(Math.round(1E3*l)/1E3,Math.round(1E3*m)/1E3),!1);l.name=n;c.push(l)}d=mxUtils.getColorValue(a,"tileColor","none");var c=[];if(null!=mxUtils.getValue(a,"atlassian2Wordmark",null))return c.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(1,+.5),!1)),c.push(new mxConnectionConstraint(new mxPoint(1,1),!1)),c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),c.push(new mxConnectionConstraint(new mxPoint(0,1),!1)),c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1)),c;if("none"!=d)"hex"==mxUtils.getValue(a,"tileShape","square")?(b(.5,0,"N"),b(1,.5,"E"),b(.5,1,"S"),b(0,.5,"W"),b(.75,.125,"NE"),b(.75,.875,"SE"),b(.25,.875,"SW"),b(.25,.125,"NW")):(b(.5,0,"N"),b(1,.5,"E"),b(.5,1,"S"),b(0,.5,"W"),d=.25*(1-Math.SQRT1_2),b(1-d,d,"NE"),+b(1-d,1-d,"SE"),b(d,1-d,"SW"),b(d,d,"NW")),b(.5,.5,"C");else{d=mxUtils.getValue(a,"atlassian2Icon",null);d=null!=d?mxStencilRegistry.getStencil(d):null;var f=this.parseBox(this.iconData(a,d,"atlassian2IconBounds","ink"));if(null!=d&&null!=d.constraints&&null!=f){a=f[0];e=f[1];var g=f[2];f=f[3];for(var h=0;h<d.constraints.length;h++){var k=d.constraints[h].point;k=new mxConnectionConstraint(new mxPoint(Math.min(1,Math.max(0,(k.x*d.w0-a)/g)),Math.min(1,Math.max(0,(k.y*d.h0-e)/f))),!1);k.name=d.constraints[h].name;+c.push(k)}}else c.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1)),c.push(new mxConnectionConstraint(new mxPoint(1,1),!1)),c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),c.push(new mxConnectionConstraint(new mxPoint(0,1),!1)),c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1))}return c};+mxShapeAtlassian2Icon.prototype.styleChanged=function(a,d,e){if("tileColor"==a||"tileOutlineColor"==a||"wordmarkColor"==a){var b="prev_"+a,c=mxUtils.getColorValue(e.style,a,"none");if(null==d||"none"==d)"none"!=c&&(this[b]=c);else if(null!=this[b]&&(c=this[b],this[b]=null,d!=c)){e.view.graph.setCellStyles(a,c,[e.cell]);return}}if("tileShape"==a){var f=mxUtils.getValue(e.style,"tileShape","square"),g=null!=d&&""!=d?d:"square";if(f!=g){b=e.view.graph;c=b.getCellGeometry(e.cell);var h="hex"==f?mxShapeAtlassian2Icon.HEX_ASPECT:+1,k="hex"==g?mxShapeAtlassian2Icon.HEX_ASPECT:1;if(null!=c&&b.getModel().isVertex(e.cell)&&h!=k){c=c.clone();if(null!=mxUtils.getValue(e.style,"atlassian2Wordmark",null)){var l=String(mxUtils.getValue(e.style,"atlassian2LockupBox","1 0")).split(" ");l=parseFloat(l[0]);l=isNaN(l)||0>=l?1:l;c.width+=c.height/l*(k-h)}else h=k/h,c.x+=c.width*(1-h)/2,c.width*=h;b.getModel().setGeometry(e.cell,c)}b=mxUtils.getValue(e.style,"atlassian2Icon",null);b=null!=b?mxStencilRegistry.getStencil(b):null;c=parseFloat(this.iconData(e.style,+b,"atlassian2HexScale","hexscale"));b=c=isNaN(c)?mxShapeAtlassian2Icon.HEX_GLYPH_FACTOR:c;c/=mxShapeAtlassian2Icon.HEX_GLYPH_FACTOR;h=parseFloat(mxUtils.getValue(e.style,"glyphScale",1));h=isNaN(h)?1:h;g="hex"==g?b:c;5E-4>Math.abs(h-("hex"==f?b:c))&&e.view.graph.setCellStyles("glyphScale",5E-4>Math.abs(g-1)?null:String(Math.round(1E4*g)/1E4),[e.cell])}}"tileColor"==a&&(a=mxUtils.getColorValue(e.style,"tileColor","none"),d=null!=d&&"none"!=d,"none"!=a!=d&&null==mxUtils.getValue(e.style,"atlassian2Wordmark",+null)&&(b=e.view.graph,c=b.getCellGeometry(e.cell),a=16/24,f=16/24,g=mxUtils.getValue(e.style,"atlassian2Icon",null),g=null!=g?mxStencilRegistry.getStencil(g):null,h=this.parseBox(this.iconData(e.style,g,"atlassian2IconBounds","ink")),null!=g&&null!=h&&(f=this.tileBounds(g),a=h[2]/(null!=f?f[2]:g.w0),f=h[3]/(null!=f?f[3]:g.h0)),null!=c&&b.getModel().isVertex(e.cell)&&(c=c.clone(),a=d?1/a:a,d=d?1/f:f,c.x+=c.width*(1-a)/2,c.y+=c.height*(1-d)/2,c.width*=a,c.height*=d,b.getModel().setGeometry(e.cell,+c))))};mxCellRenderer.registerShape(mxShapeAtlassian2Icon.prototype.cst.SHAPE_ICON,mxShapeAtlassian2Icon);function mxShapeBasicCross(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=.5}mxUtils.extend(mxShapeBasicCross,mxActor);mxShapeBasicCross.prototype.cst={CROSS:"mxgraph.basic.cross2"};mxShapeBasicCross.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));a.begin();a.moveTo(.5*b+d,0);a.lineTo(.5*b+d,.5*c-d);a.lineTo(b,.5*c-d);a.lineTo(b,.5*c+d);a.lineTo(.5*b+d,.5*c+d);a.lineTo(.5*b+d,c);a.lineTo(.5*b-d,c);a.lineTo(.5*b-d,.5*c+d);a.lineTo(0,.5*c+d);a.lineTo(0,.5*c-d);a.lineTo(.5*b-d,.5*c-d);a.lineTo(.5*b-d,0);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeBasicCross.prototype.cst.CROSS,mxShapeBasicCross);mxShapeBasicCross.prototype.constraints=null;Graph.handleFactory[mxShapeBasicCross.prototype.cst.CROSS]=function(a){return[Graph.createHandle(a,["dx"],function(d){var e=Math.max(0,Math.min(d.width/2,d.width/2,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx))));return new mxPoint(d.x+d.width/2+e,d.y+d.height/2-e)},function(d,e){this.state.style.dx=Math.round(100*Math.max(0,Math.min(d.height/2,d.width/2,e.x-d.x-d.width/2)))/100})]};@@ -21955,6 +22068,7 @@ f['alibaba_cloud.xml'] = 'vL1bjyW5cS76VwrzrmXeL4BtYCQdX7A9OLLH8H48KM20Ro3d6h5U98f['android/android.xml'] = '7R1rk9u28a9w5M+W8SbZsT2TxHWbNnWc2k3afqMl3p3GsnQjyY/015cPgATAJQSQlO4RKTM+ZYXFaxe72MVi8Xx/k93m+2iTfcpfzD59u95ltzfzbLPcbVfL2cvn1c9Rtr/NF4cXsy/ZbpV9WOez6ObFjKKZRPtucVhtN9H32W4W7Q+77cf862p5KIqsNjf5bnWYRV9fzHDMivoW280mr4rvn718frXd5de77efN8uXzXQFW1cri0bcXs+L/fi//LUuv1uviT93CYrve7qLq3xez8pcfyq9kFi3zq+zzuujsk7T6lJi32eHm5fNP2y95WSWu60zKX9arTQXjFQhzHSbLEVICn9V11I3LzgT1QY2PV8Pj1eAwr9sV2vBc5TCZc9+iqVbwmT7RzyqaBpM2+qngiv2iwHEQmSQohMhl8UdPZCKQF5FVOQ8iN0XHEBmjhso/bDeHrGjm+2x5nUevt4vP+3zpWsvITWaAejWoO3fkKl6m2cx/ssmSM0H0ya4GInsFcJMHNaneAF0IGtNejipbKX7Ldotone2u86fFt6dX6+y6anj3rWbu3e/13/3XPL+VP+Oqd7Qk4dPs22r/dLc9ZOX0qS7HR2vmsmZu1lyPW4yp2dnnFPXWLKdjsd7u83YFSZbM1+vV7T6v2Dep+TepGRjXyFjj32D6m+ShdX840ld3rAMdwy+WfzX88i9Asv7hc8fo+wfEDH6jH3jOuwNKjAlu5ZUUbCDUSY3JBMSb7e5Tth4hHzoz84RVn4BVDc3vE1F9Lkv3zpeuRs8Ht0qfLKrPQ1qQb3f5fpzG7s5Cq5jHrEiaJCK7KNN7sCJbej68FXlvVSQ1FmT+7fA5W0eTmMP77EvZPflneuP4qvrMGpSqi5HsaMVJy2x/U0zOId9tIvm3+CVqfsuXUf1Hlm/ERM2cuGZONe2ibapDRlEThhrkIrVdZtCQsLYu21brG4bF7ZrBrWqVMMKgagvJeijIIsf3LNw4bCdaTZCo5kfI6SGtnWpZfEY53Z51lZP1YeFZoVFwQu6xxD1J69YMexwzrFEeEjO4FjN4LmV19aUrrDFN+2VqRdZORyjYkXhwR/DxjgijI1RAMyKhNS+2a4E7oAKqAARiAnO4XLdcanfDj5Qa67Z/NZyOdXgsKTY3HTeCGvBOeWyWRhq0U1bYdSMD3imfmqWxBm3LSqKZ/eDUARXQAEFgClFyYu01icfPqccm8P+dS48RxAE9Nul6eDhKcRLVR1DspdII5n7lUOyn+lSFgOo7NlOEMkBqEyam0WOEMU891nSEgh0Zq8ecHTH0GFGq05oRDGgsIm0NGCqgCkBgiB5TrvI712NEEFCPEZGAeqwpj83SHNBjTVlh181BPdaUT83SAtBjagJNjUV44oAKaIAg8Lx6LPrtZnWYTptNoNS0s6N7r796z9oeif0GnOPdd30VyksXbfaH12bhXHJRXHeluI6pqzAn4gS+xLOpK9hteFFX/urq3nsWgwXRxYn4B3QihnPJxV94Kn9hDKmrd7fr1SE6fQgoQ4DcOarDBnuqoJhK5hunyf3jNHk6zusZqG8m1YEn4Z8pvc5Oy9zFUP02/CQMpbamzDcmlPvHhI5lqLNvbO6Hp/zEvDyV5+nuONovyPn+cHTovuEuOPqkFsppOHoik/Qcqt7z8sVdaPV7xp33ixG54sMfN8v8kO8+rTbZoQxy3F6XcY7HNpksdTKgOUDpIrK8T1yHWoFyVtkULKvcF1bhsm8aeOxEafGgf89//7DNdsvJnEWeWgFVHzBKdMCe3LyHUX2qqssOVvUXtvR+9b+8tHjnnNSTkNbNlWZdRbx6iuPEU2kweIvhGbzfuxGncyyPC6S96YqinBPpEai/AZGU8VzEvU6BxDJ1Zenyl2R80/VI+ppOeoIpe0L9KG66Fs+J4bYwfoqPdZzOYxW/W33r+nNo6uy4aqNpPm0opnrWCt85q4VeiuecmjK4+YnJCrss0PzUJVDzk3+IBe/ZlQUtkqpxqmuzIHQ0Dp8m4/C56OBPIlQKigm9wTKsuZktQ6IEYGOOuviTkNduMCn0Su2DZWLOmF+veyc5puOIlI5kEizPR4dXIDclwyuQHt3hFfCRjI7lwWM6eKWmIytg8cgK5Ene8AoSMrKCdOwcYCzG1kDp2BqkFDFqOKXQUw1yalg9p9VLap6sRgdRa0wdkmXGVCHZdkwVcumMqUIu3zFVkDSMD6bSt1aD59/DS+ErjA1fCsCwZFrzFC6GSnIHMDaAWAOq/XV7VpRqbob2rCd2QK3qZQ02VO+fa1fvokYPA1iTKw/BhHXsJjtgWtMKiqFjNMEDD9K3m0MYGxUIJcNGkmsrW7Z0kJW29ovZL7MoW6+uC8tikW8O+W4WfZH//2m1XJameikNNEdKi/qbDyqJQdw/++AyBuL+0we3Cfsxcd97DReBuP/xwU3h8f7LBxdjeMA/eiFTDCL/7IXM4G6/9UIWcLe/80KW2+TExH3ngytdiDbuKx9ceQZt4772wY0JiPsXL95KQNy/es0VEiDy37yQCdzrv/sxVwoi/+SFzOFu/zeAxsLirX8H0NjG/SGAxjburwE0tnG/D6GxjfwmhMY28j9CaGwjY0L92tZcaqd1kqp99h17SRVfJ6aXXEJTBMW8JHG9LfT3OTatxHbUDnfDwYOVlqzzEJ6oqXq6XQmfOSvpYZp2MMhPT8l9p4mb+skwDOEmfpPIINzYb0sQQ7jCT5QgCJd7iTAKoTKvnZeAUL1kCEsgVOKlJ8Cx4gDJxWchh9/t0dHws6ba7TnTDLO0NRonCMt+k31ZXWfN4Tc+R35DS3glWtSlklAMaUBHpCmrT0gYdK7D+pNzmEe7VAc2wfW8m14P7CrhQNxqAmEjBB02Iz0/n5WeBARiClrMlADBkVDUvwJi4YxzrVmPyJBnInGQEeg6Hd+dN/midf+DQxwYT8CBsS8HxgAHUtLlIbCrlECR0wzID9nkzqQQ1OS2JpwahMJMSEh9Vlm2W562GvETqcdPWP3mx5YEt5hEYg5mzopderjz13x3WC2cKeGoH29WrXyVqYOO82a9LSDUFDlUhzqYk86bI2T43hjtZ1BqOtmYDrWSXBHznBvssypKTS5V3GTei1NROTEEZazbGAykoG9RWpopsK5AIItdDCkv9aT1DqNGIKcRkuTEUWmjYiYtthVtja7gDBWaAXJnWUkPd1LTchIacHBzuL85R0KtgEywvUbiY9oB+buprUxnlx1TkDCg50+9NlImKLqNXKUIeUqFGE0hFWI0RCr4cv2jXvoTiMbzSQV/uRW03i1yTyRyppMid5kCa6w8kWbLSHnCue8uQ20SRzZI+CklyqMyZk8gUc5qF48VKk771qL7yUzvyYQNezj2ixK/Y2VL4i1bkmlkS3LZrdxbV+0k0uwx7T74+U8bHo6Z2Qp2oHMUyuLE9G6c1Urtd53yu3OdPhzfosKOQcep3G7QpN8FfA+ck+Ica/nilfTU6H9I39oE1sFEwjZ4VaXNsnp7s93kLk8/CX3opFkjPhMgGVkcu5wo5LmSAG9UHuHZdoUwrwXpbo24PIJmajvJ3ZSzUS1W/e5r0QzqokKHDm7RMcJ6LGoB2gtRmhWG0adgZkxYSt3gYyFpwXljtOde9OxqQouEMhoA4v8YmSfyfgWrqmB1qEwsZ10Ir1rQrE1zwOTdwFoXxx38nl5jEvd0uw+BeiAkWviPug2QDHz2b1PIFcDBejb+GJwkwTctgmChTzb2PuIF5zaQnNmT2wCqH6E4zjLf+s2sDD719z0bBNeP+KS5GUSHQO8Wu88fPuS76NVqX5ZbjiGX9CkHUy2BaOZ3A117Xi9b395kUfVvUXE9Y9rCxEIOYqb5LM2kLv5pLlsqai1IeabfJhdj3kJN+qnl8RzqFMTqDByWSFr+X5uKqR8V2/m0qBh3yGikZJUC9mRklIl14yOZc9yLOgX24Omp17PH83t3v5zdcxnAJu7FzkjP67uT8grrLvlwXjHfhkb9UxfuBWjslV8+rxYf94vddu3y8BRGXkAaZ2Cg7ZOVfumk9LPBZgbU+R0am5i4nfbGN4W0vR1XViT3Jh8wKtrHmtBFGFHlW3F3ZNBQ+16cbdz+HGAyzDhkKws+7JVSNcmsHhvT/X+yA4OfN4QY2RlpJ4bKuVAWpl0OpmdiYHRP+BeB7Buu2USV+kmjcySfl3VpNI6mzyZ2PAtp4/GSnZY9GZVo7IqX/+m1J8NrHvfWHaJuj486LJQ+UcYDQxEQ5AyZ9NVy9cgqlFCvD2oFGyAnWBg+KwMYOqAjXMAlF0iviXRzotQ7LYWREaXvVWkMHbioRIES7J8crGdIlnKSeUVA+5fzge8mS+brD9/hfAiRBHwFDJScprA2l6/gXobLAHr6vl6glL8VGSPBPA2jdKx3pvfhe3UUYL+ZwGGw3BCZUQUtOIaCMiTYO/47jFcxVRsZDL9GYCbob0qbrxzIS7h4oucM7Uku1LM0XtOjyR55lZmtXED1N+j9BzQn/S70mM8JOdIIm5cZjCoVUX2DXrtg8/JG7ohGRJX6sGyk/gaNJJmj/pgbNVtuhaQ7fOekNjaLL7E665qr3LNinhAvHd2zdCyRkoAvkMzrlRObi5hyA+7MW+m+cySb6JsxMiRM6fQyDXNQpsHH71PJNCZAmWaDpfBisKizlKCq26WrppNpLAVlGktBmcYJKNM4mcS/1VgA7yojr/whep99mCBuQb0J0xu3EHz2Icy+fsh2e5d3RXh1kyMtkTeHnJ1Gvm99b8HxGN9zY2O/u10VnXSe4mAUnNwam8ocu6AIjIHQ7elRh1YksYbaHIX4eNlxHHyC5XJwEhTzpNfiRvMYN32WrQPc65lV3ZWbHnJrWNsX7IJiE4poNyv8iYkW/bS6vjlMTLokWUjhCfm+roiM9zwR6VpN6PK8PTzSeRxVTLzMNF/aiWiVZXnek45I++3B0uokq+tuKdZu7fw96vePYrGmuO/zG2ijn6PB0HmZ3HxCSQzICCP7nrzZMh0vnD51y7Bnnx4RV5zt8algmd5yxdfVYXET/Vzoon4u8GQC6d4MoWxfoK9jm3OUEIBuwPNYxhvG9VUE6aSRzhEM5OYCk+t289gVAJdDTkvW+vp1N0WZlcFMuwBVmzajybp52FR1a/weqqrnbs9B1Dc+NOVjaCqSxqnwPvvgOuFmMXksEeaMigkizMsJ8YswZyonLB/ZomOAJSG7EeYSeoIIczkWO7JcxpaYPjuuksuas9KkigfBnJwytlyPoWZMEY11lrQVP1TrW3xsTpGcUwRyaT/bWHdomwOoUe0x0f+uNjNOl5jMcypYPK5Fx0veIo6Bi/0SOrjF/qMDOZa+27bWRR8R+824PMyA06c55II59lS0wIGNMYSPcJPfiI8TAO4FOjpkkRBo0BI8sEHXsOVQhgUPwNHH55Rqw+9evi82DlerfD0mIhe8McC7oScUvLIFQ925G5UdLzp2/LiZiH7c7MtLxoU5+na72hycl+cG7mysPL1pakYmyr0tMSITBz0JCQcdQacXBDrn0GHw4V6wLaBN9upTHr1dLT66j3BOEjgXl/8ZU07RRNFx3ZfMj9WsB4erbshb6ZJSoqc4qYO8CdML49jvzSsjPm0prtBVOnNWL68gm/UH2FnL6tN7v8g6YuMG2F8qewzLWF5Y3ezHfhFPlrFGeICxllUf01j7E0oCnoghFEhmL6w3VPxeX0BYy37iJiOF59QkY5NayHRnYQMc9u6QNsZk5DR/5zUp6sZ2SgZNqQqHsNGxV0Z5OYExG5BSXr7AluABmeyx9O6kyYAM+k2qKsIGpO5XTcsYjsA3A+Sgy2cWwh8rUOxqT7fXKwlNdG064HkGlZTMHrPXuxB9041RQNM2pTEOGHTNY24R9KrcDvsTgRAE1EmEe8139zpiAAPzWBOs02xnolfZ7uO59zSk+pxkT9PeqfPe0wS/dHNHmyD+ODdB/LIJumyCLpugyybosgm6bIIm2QTVf/cv/w8=';f['arrows.xml'] = '7Vxtb9s2EP4rgr4nEd8lIAmwdQWKYSiwJV0/q7Zqa1UkQ1aaZr9+eqFtUTpSb7bipPsSO8cjebx77nikTr7erv1NsLVi/yG4sR9+rFJ/s7700zR52tq312Wr5W83wSK7sb/7aeh/iQLbWt/Ynrhktuz3S8Fv/ZY8xba1zdLkW/AULrOcKYzXQRpmtvV0YwsnH3CRxHE+VpjE2/KfnNsP40yO89G2Njn/Q5AF6Y3t2NaP/G8xzXPx3xXQ487QAxU9rpQZv/iLb6s0eYyXt9cbP1vfXj8k34OiE3YOs0RhXKcxr06EaKSasFRJjSwgXmYgVmuMkm1QSF4JeFWX+WuSBvvvYRRVyi6Y6y1XpdmM1itEq9vuj+BrZrBdubIu632GbFGtq9JLq8d7oAeq9+hrvQqMz6XJ6nZxzWSnbVjCQE4BD8AU8l4K9nKG/CtcrV+zJR3AXrmvaImwAVQrSlYB9WcABmY0XzuKftq89hjaDIOSXDpN298aVAJ4poBZmZG8k2ImM+6M+GuQ67WIplZpTrMnOqjTnLBx3Jp1Bnkv9oYYlLtSlXX9SiJ1C6KfLqzIT1fBRf7t4mvkr8q50sIO+cdz+bF9CoLNobEYg+QfF/6PcHuRJplfCLKTkRI10uqJjLfhhF2A0QFoSBmxkGdPNKyJyEWRxqqQXYUf/apcNU7V9PoSAC13iZMiFJkQatothiEUe4WIbZAe6CNxWlmU0HKYXlBlhyk1dBWwlXbboD3wOzBZha4UcQp6dzYzLVUR0VGVPguCXXLYKUsMf9r0APDI7VIgw35piq8uHp7sMNLYwKiJjBtkikEyB9MjkNWlJrJLoG17R509SXrnR1HymOWHzce8uRMB7KwTJhkkMa0reBc5lQMiB2gYSJUoBRgJ0xPVuWXuBBIFBbrDRA8QSUCyN1NFDrAiZiDSNjQhWrWgmXfaHVT/fPSXpwtVk4B6Tie/w2G9EXH2DaiR6eebPNxAwQM+Fxp25nY1NEUSpKuheSoRbldDuZp2tKY6fi40DczVyKRtEESzbn1DY6i9boXOFK38DOYnbmdDQyZMuhqa60ZuV0NTtw5oCqQzHdIZG5OuBjzrxuo2Y1WPpIofYUsdeKNAPOA+Qd3OEIL2OOBSl3oAI3X0RHVybiB6bhszEK3qPIuF+f568N06+J4mcfdGxMddD14SNNM+IZUIXNyp4Z4DGTAH+kpGDgzI57sJ5F4tyQ3TxWN+iDtG1nAHWwthqXtO4dThPXww8ujwNFdGT1rZ2XBALVnKI2r1rX0gdz39EZXC+2eDLCoyb4RsBnNz1ld27Oxkr761D9h5Etol+zxR37ukaAe13x8fNhehDAsWmhYYPprSRwfTAUkqlwZBI0IDd4oFKkmISjeYsQiYaeX50B2J1oK4e2gh8SFAZAtXO3ZrPR6H6fIaszLwADgV/f9JchQUf27sklr0PxXM8ESYmfaSYTAjlAyHGecng5m8SOanwJnU0wCcacjkrGDGD/tm+dzFj5e97gb5xAehAj5Bd18o9k5+9+eX5imss6F1SYg0DRw8KVc6he4ESVeDqzuEaRvKydqg0x2QyqXMnz6X0Lpb++nGer9cBUvrQ9DrVudV1k0gTd2EA4EFmaopYE4OD8thbgo/46fz5eZkD4OPSbZY59a/C1exH+13tJPEmUtE5qy5cFR/NkQFxABW0m1+Uus9+4ODnrewPYz11u9hPeCGg3j665XGrQnw4EmWDKiMzNMT1cmFiagJDhAvdwEig+YHieoTCLkmAS2++VhDKkpAKgWJ6vzIQOTA/RKFGBu+6M19E3UoVKuKD3aR9M3Ez0Z5mqsnwlG1UbPmQjVrbkfNWiPUkpfIlOpJ0s+VH+F9/edR86PDsOzs86MBedGrKER1gIoIWN0IKp7QJ0VzO2UUxMsg7V2Z+Ia8crL/nZGjtQ16/5RYn/3nV29T4Z6DTUUHmWvKzWHul8TF53AZWPd+GJ00xRqMDefSHYMOdhboYBp0EBgdHCQLDoJmzw0P/RIvlNxlabh5A0kcpi/6TomcfsJLJWm+yF2aleu7eHRbpBi1BZjYqd08oxwr1GTPUbjNAfLmjnIMOOgPOclBrBy6EaHAzXcjyycjksaHMNdDFOYfVvm3AMtku+9rhe5z6gxRQeDBptZ0OVo50k99NfZ2r6YOIU3Jpq0PSRr+m8SZH52gXmqeeMYJcDjlpG9lFIFCFwFCFzEQeWcaRgCByPxPCzgMg7+DNAsXRhDw1/CaASfAY1YCRC2PA8WNKidleiIhUMEk6SrMhPhQfcSZS2I/WfePaXz6Ejw0rP4OK+UH/5fgHbEEzyVA3q4v6p1nb8INPBa/snEUUMIA85AJlDCQMRlRqyexwTEAGIK73mSU5VMErNIj+reLiTId5QARE0AwqPcuNe8UFkthMeRORdDUCOsAbuBM0gwzaGbkwJ3Vi6rShFvT7swvZEkP6nUHngs4LqzvwjOHjyKmPmji84n6rjrakkRf48opMBtDXa/g7bIKARBdOtJ55O8IYK2wTIEdx9MCS6UbZtr6poUsvdYR8PNDyHs59+n32wFj/QeN8B80xn8kIlQHwkeIsQT3dSAMOJAUS0CcDQ/C0zwIdVS0M+0GOF41x3cf1KXzxnvUeG7/aSVwR/rdAmP65gzYfPbpmzMifYN+X4BM3IAMOYoDZW8OkL31LUbsltW4/xiSNzV/lNkbn7j/6FVT3cCN9kxT/uYA+duRn0dVn9vb/wA=';f['atlassian.xml'] = '7Vzbbhs5Ev0VwfucTvNOAkle9ksURYmFdSxDsifKfv0WWRc22S15PJEXMOB5GDNis5osFutyqtifjrfrh+1xdb/+uf188/P047B+uB3Wj3fr43G3vr/58qk8sFofH7abx883f60Pu/XXu+3N6vbzjRrHGxq53my2x+PN6vh42P9n+2v37RH6d/e328Pu8Wb1C5/98mmzv78HOrv9/fHjl0/f94ftj8P+6f7bl08P68fbL59+7v/ark6fb6wZbLhZ/YbWOAR7Aw/f7e67LgMtlbs2T4c8TEnnSUPTD8pA03y+ceNgFAyBB3QaXB4ND+iQh69+G242lJwdrEFKzg82EiVsFko0HB4wQB8J5Sml6Wx5wGQhm7v9cfuxrtXbQcfltdYuo4hwnSF1lhnGQVlZq/M0QzsoWquKQ9Q4RWy2XNND0EjJuEEnpETNTImHZ66ZQRPXYE4uTqfLIxZWov0QnukJcTB+2hP0YPVzXWfZmsZB4WTGdrXJD7TYIr95qaWRFzrShg7e4hrT0GwnPgg/6yxcDVkkpgv95JAuPGZJ8ODXYGkzChF67XRRAy6Jfq6kzaCQNE2XJot08hvjMPJ89eCbGeN8gX+2pUmTBXlFmiBBJNgGBQhf99sw/4i9H/Ggft/d3eFZz79ND/LHojD+tt74tf79B1pje3e3ezhuhegv3gdeeJl7M9n8j83+bn9Ylf/D+4D8v3PzZvVt+339dAfT/df38l8e3Com7QrZVu7pR6ub3bzwIw5fYOmfMfPr04+raeCsM/H4BJO1Z696bEIBCiguWYSomWUIxxQh8npIAQUJaOpODHm4LkSTrgqbVI8BNU6UtEPdbbjZHhL4CQnpgFTy36IHneh8oGacTKZblSbLYeC0mNlEvMnarlDh1Zkpc97VzxtUP5vb9f2P7dUOzfumv8qmM3vhYDpUoNEMsfEialdQQ3TTrqgGr5/rAi3l0jLBC10OPCDV7BVwBR02HwYfF929MU+9mAY/jKabTtErxU2NofEEZZQyQ1DLXeDwhVZ0whDic13G5p1cJChd1zx+2Qby6dtu/nO1w4dS58YFyxzc0oEqT9KKrqNMYDlf96e35M+ADLrAZr4VOT1yoJXtdtsVB03uPJygpss6JugC2ei50w4+vw2d5CsJ6lJ4Fe+It2el/2CDjuu/8qTKvw7wyGp92Bx3/93mkTfPbJts2WF7fASapbV5nPYsSbQqg+E9q7v14cf2A7Q+fL9b/yj9hxO++YAPro6/ttsH6lY3K+o9fVifdscPh/3jOi+qmRVvQZr89gcvO/82NS5atT97Ybr0vu6F01//8QvPvy+N58X2zw6pGgfUxz6bzqkl8tTRnlxwQ+ic9dYO1SHoftPF7UgmgObvzBnaI2fRJ7n+ocwE31QAqJhXmZsNLrVkf/hp0Jiu06C4F+WJKWCE07bNBgV15ukQB79In3Xw2D3tFucu9ENPhoxqWJw7P301qSjeMwkGSMBus767IBtgYMCd+/sOgjbDiNyKfhaIUmeJH32BuEoIGQfyUCMYL3JR41iYbqjVus16INQQfCdPgSg1Cxkcq4sLy6EoTMc1bOcBcJTtbKZMWMvbmommUIBLcvoxHjHSbtdMC9V1+aaySU0IoMNvCOWESblFzI3BweI8KNOq3yHgCYFJh45rYSA0wQ6WYgNgt6PYwA2KeAZLtwRjAhXXRRclgJqELPAe4rqBPkcggsd5GMRHG1QRfqBzo2eQB4wjsBWIRWIVOCtKUxQ3jKmJYHQHWTqHAVN5jY4d2hxKZ8Fyi1Qj+gBal9Fm2CpiAsQG5VdkQugp6TKRwsyYff5CKbt5prLTCDu9F0radCIYNW9l66zVLu/I+2ukM2qRTtnNWOLTgqPEwr6Co1D4ZbjZc9x4kU45kSRiqg7P2FHKMlUowZzOOpB/4OWrfA5JN33bP5WOs5oplQjqBemOHEAXy+wJUp8FzSjMRSqKScmnE+eU1+9yiIobmU9pQyAWCKtgDxY5atAFEMl1xMURD1qhotukC4SqjhMRqTVBEDfg5A1F15NzHURVxUISw35fgL4J9oH+Snmv7VQDshJBjlGAg4CYYlEdjrWdHjyhcsp1IgsniUHa1OsNiG4sSay1gvxBkB8J+XOwMEL+HKGRCA36tKQEIWYODBz0p2MU3FRN9lPThrqIjNHlGDMcBDMObralxFZlBPgB2Uk0YxswPsM02ISQ70K1GMWQtzi15XjMjaQkm11lhmUjJlvCeCu8ffTydlvBX98RiqlMgPaWRRMoRSWc96RVXRLMFfjaAhaZWbgQMH6uewlowUQm2eoC4ZbtTRmdIiOnEIfS9ZwXKxe6zNJrKZLV08Nr6JJo5+J3VpckhvUcWkpcf9IvUyXZXwi6snIkO5XisjIBtW2WdQm83KQXKhPZPH77ZCPjy7RKKiAb+mngYpPDEF1m3KJacYqF5e/rFTgnhs8JGWVK4LqLeiXjjy/SKyD3hnbFRvZdnRpeqFWcQf7osnDWtUDH22W1okteeVmtFOF4kVqBd/IxhWaoaqW3mM+qFWC8I3fQqqIdfqNK0MtaxTCU+/eVyigqcGTL5l4xj/Ftv7rfP66+7Y6PT4evbymeNpERwdBpAgbmG2haM1apF2sIzOskVrcPu83VcGpwW4NmX0R3YQacEFaxAVxyyoeCzxxYdq1kVkF2RzoF0FRNUgBIUyIC5HNsY3qF8UPxpXuTDEJvjBTQjOR0W/KAsBREckpxCGQrtGpzVuDvMxwyM8jaSbWJDkUfnLCYJFKE4mq+1tUsEzbb80m612c+TBcfONYMRUG3R9eXyPKEaoRz186jSlDFGYq2RvrE4RAonntP9L7FRG9RQ9crjiD3oMiN71bs4SwQHz2F3yCGvD+YFeFgwlUj2ns7WKh2Iimkgwi/MiwCchzIHNpRCJlStjbVmBFhpqIIelmCWJlNrlfiUrmJi2IkIslOBMMOMZvSVm94OdS55E0JpeQFdnBJyuW4IkQnEhiRzbGgHwh19ohAhr+tHF3D2EYoMAfXqbEnn9ACI87T+3+gLyNhC9kDEC3nBS9i2AvWSpE1dLd5RHBvyFsFPvZOiCpRG2o5LD884VQseQg+IZChUemLlrGzqpTyFob7ohTnjUYgRVWRSWWF0rIb+a6v3oK+2v18OMCG/dzeX09rgetAPgE4qql1F6QLZLE/dtRZDkvAGAEd7zGJxeTSKJBAZwQcd50sZL1pRUtoI7ZXV1lmOCeHe+RdlPPRFtVqw9Wf2nfqzqJ0Z/egi5LCKKc+WDmT2bJb8TwUAzCuRjggZ32oNJYxhVIanBBiOmNx3QgBMQRuWXZGJuGjFWVnzuO4AYNVg9n1quqM+GFJix/WAndaghh4u9JzHRVERwlWq4UfMPlIOgqWlJgfOrOxVVJWDAm4fqMTn25UErzFUDlrKmfNu5J6s0rqcXW7vXu4moICyUuMnMZOihOnTpqO4J/rOEuKO2Y5LCX1W42GHHlcaCNVq2pSVc+8DD7C41AxAk5fGLH+HGO4noLxTCHnaohCSfoVCpxHwTIAQ63pagPN+mxHHNsOn2g5Zzt6UuD8xKajcdiiuJdsNxJnKuF5JwvQwoIeno98gBxTCMIANygpybU1kzRLrhnJrZkZDTXUdJQTGq2ijoxGdJsf+o7Ggaeti0rOqeK1F/HC1JVn58/bVuSiYuHuMzrITHL4yPjgTFSxAUp8YHKBs6bv6hJIXaV+3jjohHaFuKWEuCqrKmlIxfNuE4dKWGL6mEaRMKg0ELDBqTyQIbIOPvBG8gmcWBlOVqtudGVm4BXL6Lll0f/csDxrVy6YlWpVqlF5NZsiBiUs2pPnzIlma7JgTGZVRq9hYoq3gFbmbr8pdVYXzEw+ay/JkWT/NzBru7JH6cphcDhXK6awViyDy7lWLP+d14p5pHWmXkzov5J1vt/+Wn3frh+fDtcrcNcj1RtBMNyiitKTAY7OPo7hmR4JVicKl0LrC109vQyOXO6YzboSu9ClSy3K4sQvdAnBd9/2zfi2KZVX0PnZX8rKppwxf0HsnRAJ43e0dm0sGN2ckTSf4pw4DCkx8g5qObFrKiqWEMVG8mGJcdVVcYI14rpQRrA5kb5c1DW5PdU5DjwUJ5uszIMhQHBROLrmhZkpP3pHPHH9eVR8DWFaZpS0JOD4yqpTctE3kmsZg1RsYLN1UEMBck/4oJ4kHRmQCHL9LDQlGWPvk9FwXRLvfBsX/LPEsbSSvTRWahnyfeTF+2OaIAR8r+vq6L3l0qweIvUl/V9c7nEYaSttxWGVE0RXaawpM6XZF7xB8K5ZHema7MdmoaQlEwXRBBeS5fqazoPn4RrfTr4brU+ViMBW/23km3W87Fcyjw9Ph83t+ng925iLbjB2DImS22JL5M564JTfQpfOiE4buaTC1xNeo/S0B9mxngQv1XF2UQKJHvD2Ti7G56I92gQgavl6o8Z5IEDDhRu5aEfP5sQZSkdE8cFYExNJSVkDg/AZ/Oov6ztEivAMewHhRydlC8lIhiPW5ENfkGSpXIGSlqnehLeSfODqTGMEj4NAOnURCqwoEptgncFUNnExqkHcHU+xzMnl8zWNiY3kWNM8jaFK1QjnSjgDSYKAkD/nSrSvaQzX+RpVdLIB0V0GtBbinu1ys4K9zH2u3kzCSePLr1SHyoW0WC7CjOy1h0ELUPgkVLhYFvhlkqSVRiciEvpq0lDrLIyklUCdWVJCFtHGIrYKtTYilH3VdK4eUSK2ctHYYTEqYtMMPTvMUFPWOZiZjATGE0zBqMnOMdYJ+2tpTnASefu85XrBKbAeaxLKC0CkJSjmxI7XMiNQ63721QW5c9gXFgMDuRYm5/+8pMykiHYUDQIKiOsJgsmreXde3xgwW+w5mrfj7v7HxRrl7Jqkl8TMXG4BB1+12+dQPWDpVw8nKblX4aWexeAVBYUlMLU0jS8rWDcv7uck6MgkuCLFaoakTKjXAwwZ00nROt1pHXo4zWANMSkZBpdy4iZwMRdXzEsxV1u2GKQ62sxMClh8TjohyxGu81JrCHqR3fOsBoKwIPaUtPi8OatP88xawgozuUIOmMl5OOso8SMWgOp2ylZ6v9yVuM67KXrjlLalwgGDxQdGTmM9jNW3HDlJt4hra06fkYCpyWhdijfZtUy6K8G5skeYL2X+vh5UErAoo1wdGu3irarONAfNyctY7PBil/KUjZxA+fQi6XrX2m8xnXZ8+vq4Pl7vQnzJiVEqPHX3nOSrAL1HqS93mP4OgSXYjzsm6mLkrcpOCJ3xwAkQkxhbtpoTCfmuwtx9OU/DYgt9vyCu3/JauaM/G0G+KKFmipuzLBKdYKsAA0ZST0nyd7bNjNHTZaKdLieSmsHJk5EyIDRpdD6MpHB6zntOSJ7t0GaGDoysdp2wk2MkFdmzV5KNywqlY2bVNH1uh3e79HHtOJ14amm5Uoy1UI2Ko2ewCqMj7oW45KQokYsRaRI32ckdkfZGZRjkUs5yR3B99hK7KH1bCzCWbnIywmRafvWy9Z6Leou5KNbPV1XOIFz0rbwMdOmZ6rRero4EL2GvVFzV0BA8STZ4oTd44JgqvjIyu3Ob8HYoJqi5wCjXMAUJ0uPkyqkWFKKP9eG1DPz6UFEqy8IFJ1UxaGDliiG4LW05pcXroqgA2s/q5EIix9/M6Qu6yf/hW8yk1nJi20oRq7Fia6wVY6PiTM1wEasKxQcgpJJLw20SV31aHxb5otW72/UG3a7H7eZ2ddWznSuFDd/wUPNPlPI1thzjKYGPPBt/J9eaCfOi6uOefw4vvBKkpQTRUiL2DEMBSVPx+X5GNBhvnTo7m5DTQshZLDo33OyvVnCsTywgRDcYqQLkmvX2gqtazoGwbYYnbJydev4IgpeUlRsFzA7kEgREDop6HGchtccKxRM+KOX62CR4LFbngmHxhfnwcCql9+2EMuCpBDdllE2H2cUyU1NxOgi6TozAZSdbv2XYT2eeRIr12rOdZR0dQ7RKoBlHoTd+y4KNTK4pot3K2cQ0Sy4wtorpejYlrDepVog+nuBqpsjOrgA6J1+DDHE2Je+r3QsiimF+wTN/eyBKaSt/UEHXLAUPR6Ol+im9a/L/54f9IuaLf5dLqy2POITijua6KsPwNQEsnyymVvZu5Ao6EGu/PSzfK45x5gwQ0UKAP42ilKgy4E1iiMribSDDzWkIGNBzmnRNhAdv4p0qjZOp5FRt6vJslDR2+8k1fqrcyu4r1ZkwkmDQkBle2OjkIxKaNKUw+3Us7unK3/xb/LAYCX7/fb/+y1oLFC6OX1w2/j1++R8=';+f['atlassian2.xml'] = '7L3JsiS3kS78Kse4ZzTmwaz7btrulhst/qXssOqIrKsa2FXFFvn2f2Bwd8ABZFZkZJJS9zGTFVPwE5gHHz//9y8/P//y8uXp4/OHl//47sNvP31+/uXn7fnr++cvX949f1Tf/Z9/z39R/+D57Yd3H797+sd/fKfMd08/l/88f/nl5c3X//jub+9+e3n73dOXr58//f3lH+/eft3p7z7+/PL53dfvnt59/Pt/fGc36Z7sk9SbC0/S7JW/+fTx4/7xu08fv+T/s3/8/O7j19rcD989/bJ//uHl68vn//hOfPf02/7vZr97+j39V4nw3b9NvvrLxa98VNOv/r/pVyrE+p2dfvV/p195KS9+9cPiMwUji4uRXfnOi/nY/rIa3JXvfrjyXe3nv3Wr+LdPn19++vzp149v/8+///L89ef/8+8fPv33S/pSis0Yk7/N8/L+3cdSrjdr7aTcbFaXcr852ZH83gsgSas7WthCaSXuPzz7TPhMkmr+yd4mr46akm6okLq4E3UchuUKrSekeZgR4macm1fm9k3lFp1Ix0oueu+2qOVkxOmb+RyllhYzm/q3WA+2tG/ef/ry8m/N0ivon1P5D54/v3n6vBNULnj6/Dv+/O3759/effn+86evz2lH5W33/vnzTy/f7998/7f3zz/t9ezXzD9eXn6p/7dszNpG3LS/QxPiQhM0DBjnv5Wd/rd379+X+y+VtSfh3/I1ym7T9+9+OnWbmv023Uy+UEUs/569U5W/5U71+sidqvwtd+rexi13qjMwNO0OXarY3mp0q1tVO/hwb/vItYrzUlfhm+/VsFlTL6HyszvOKkhGe/Pr5/SlTHvIi/SlpFp+U3lr5QtZ5WIVU7GmYp1vRd9fXkDMl0G6MbuLI+pvoJlNOP4CCMeJcK7NZmI51uXXDadafrecP36D0fDKr/6FSHMBtLzo//Xr89s8w1i5xDp+U02xKkvEXiPsj8638WJKLhHLtPbzLHtKM5F7p2Em08+bp3IyS+euyI/P73//+u7NlzPXZPBP+R8pt6CepNqUu/GaNBEYO23NgYuSvvPWHrkqjb3lqtT+pqsSP1PGHroq8cPV6P5ybXirDxdXpUaW1ywerP+8sg720AW7v/e67uoQ2NF3cPKDn1OkTUxnf0prdRdI0NJ4D4UAV5XU/QUcPDKPi15eIk3qYy2t+7KPw82/3Ve5u4bCFs01yro2oAz8Za4s/UnYuGxR+d8lYWiOKrtAqtWdu92+fHn5euJqM3tnnvI/Mv1vE/Lmew1OvleHrjU4vubQrUanNx651vC2WHy2ZAGRA5THOECDHKA5xgHibe+OMYASGUB55H4Km64nR+5zww4VkHZmIbqeM7RKX6fJfX+Fll3Q+xUVCrtQf94gslXOq1Se2ikt9gfUR3uVlgbYi6JlDjpa03WDPT/D50xmnF9Jfr+0fGW4eplXbhq6UX/eLPNSIzhH51oRl1uBoQz3b4R70W9G99J3EmuK8J1+3b5XzM7t3q2JuSAQE2vYNjEuqqnHIv/pIzpBTeQBP2Iqu1HM19NtMTx4oE0bDxtpP475UPUWgDdizBhS9gPANXhOXSWt6wPKZNpBPylGjWfVRV8ipXuxI1GFF0hQ4TlmBowGhZ/RiWfMLE1WSx3gasSTeMqfP6nzGq2btFlHeBktb5HQ3GWzwoIjiRH6GEM8wpEI6GSM8pCcFVB7tmBl/vPiVB6SspTaBZhyQJTMNpROVZU2Q3BFkbL/qUxWiKRJSVslWyRULldWF2UVlutcbtxYX6FLavq3UkfIKjxFbf5W6siKsN81lveCWyxPB9GorZ2qva9tQZ2q6Ouz1q+0G5MaP7WVD6vGvqvI1HZSVLrM51hZVeoLuyAtq95ObVbU6qBYk9iCVQEtq6eKdlxlTb+EOd2npur/9majrFMqeEU7JyRdnc99xwVdhyipKlGrkXtDrlYzVBJ8XWRRK1B7ZVVTBvXqXKxgiva+9DzgfCsNb7mt52Jv1YvI56VQZV4Nla6wMjFl4lW5QE3tTaT12qXlyJY/0mqpfQh5WUpdqdo8yWLvsIe6jI117WUuZpUpWLB9mM5FWPoycbBrLSy99q7ZtJ1wkJaz2bRsQZN9TzZ7tm4NgdvV522nS1E9ZTKwSrCnuEn3GTASK8n7P1eSDbow7DRhnQagWSsluRIb90yyQ9k6I67MdF4qUaYhtePKYv6usbirzO1j8FhZ+SpX5pzHykytC7ZQ2dT+/CP64/OHHz99OqHsfNJbtgdF+bTvz9v1AWDiNfKYQgC+C/LQKyrB2GKCPPCOWu+vfLfUdaIiV5lDSgEU7dUxVSf21Et96AmWwCroI4/pfktUK+5+UTqreu7aoz3UnzKHyv2qQ52djobJ4UiMm42x7YIrtM+/488TJgcp0R4SPLNyCzCoFx+Dzh4yztDAj4fN+NU0JpN3GUL5dcb+FKvHiExMCXsSw+Yye1/eeqPr65GON/A9+wTL/EKVhzG4epGmidfLVcElu//GMHufUe4Qyjxm3mzlntrVaYxo49IN65tmQ4NVTD5kLmb7DPfntXIbPH/rhK6sRNyFo/qk+v11CmhMlBr5LAGchN3FGjlshH7oF2Znf1B0YIuYmOS6iunn7cu4Dz9AM05w84StUqrfvHGP6gI1s28b1oXUPYMLUpxlHtGH5mTu3JJ0i9XCpTjHaLz7+uOvb/7+8vWMYVXrJ5eYjf2/Up31PLG3iOqHzA72Jl8+c5svn9NXBrb4TqDbycpasRhd9Fc+XFkdyOx7zCiatE4BeHLNnOb2V10Y0JAZyW6x5MOm4U3bD3Y6X/VNs/CkhXqJ1QutiFZtG+m7evszoWNvUYFTC1yQsgpH2Fxm30V06M9Se0m8g65OejvvLwy/hkF14MoEVq8ZEMEcOMwEVep37G2SVTx1w2Nv0ynMNaOniJd0uesqLiW2wNZ5wQ5OGojgkdI1IiU+IsHB5Psi6VcZR+g6iDQ1eaI1lvf6TkF+P5XYSqvRkGxW6syib8gzU5qSoKjY/1pobInZfETtRmH0KhfdqkSsCCiwh1ilwFTuQWLXldcs9Tt4HGs5sw5r1KlWYtOY3neYxcYiTuFeHiI2VjpRGrBSYmNBcmtWVCTdKj00Fp3FOaSRmU0GEnBBfbAXm/xeaSju31O0vnPFQlp/rbAd73FbREdrFQNtixA9Cr+657DOPUrfv33++vz9m5eP+0116oHyT646SCqd/H/i6WfKxVveKXfooXL45Cyk6JVQG698d9VCvhrd6rFCadj4Y49VuPLh8rGKfVePvFYGLdrpde5fq2A9vFY+jK9VihoAL0kJiqz0Wmlyk9TO45MlvURtYCrvni3yx6yk7uUy5I9ZaizPV8B3sXYgv19SGfLHDPz9CsA5CzOIEVppeMAc6GrtvnHgAds74vERg4uylLKHpl5dSOseGuPgNasVqvp0eWjHoUZ3f/tAiYpdnjQUR53oThWWtHYqNE+aoivS2OZJ0xbvyFTOnjRwqEdi96RZ06gbmyctYlOwRLGK9vXFMUMgQAQLqBJ+fNEkqKBN0XbjiwbbzuwXr6cXzUFbpZz7O2Fjldi/aOgJDJXWF81FbKx0orxixZlOt51vLZ3EGzptxxfNwMj2p0NqetHQ71jue97Sk2YdPjUycPdbcCBGWveqeR+wLQlq7PSsCY9taXyq4aLQ7U1x6ll78/PzKTHLmKf8T1YOPWUf3z/Fzd9Fe5ubv7rNz18desPwu+Xgrn24Gt9frg0wSPWHOfqD52i6OAO7TKSyC+K+fzT6Qdg5pfxifujojbqmUWsTBZLXur5BmjG9cpeWQqVxg1k6qLKKDSE7f9aLL8J7G7MDFlx75bjGrHTkd6hyrfyh8bKWGi9rpcFYFoWjy5q7p1qJPq0+rmj7VaKZV6twQLL8JQkghyXDZzQ4ztLpav2Mio90L63r0Q21zI7MdJKpYS7LbZ59rqt2sCxAuWAli7ygpduJXGBJLvRhTUTfQay26aba15NEJwUhJ0lP3Aza492vN3Nh0HrvJg0aFaJZNgp4u5ep1cWhNxq83U3s3+N9mwc1X8eWNqw/VttunM78X3ojabup2nnTCNyaD3m2o2GeJB4C1cyqwgOjm6XQdMgmazg7m8O5PfcCfvrwy/PH37//+dcfb38Idy7cpuhhkSycf07wsFtEdK3iZG/yDZLxJoUjfrYc2rUPV6HRf7k2vNWHP1z7cNXVO3oVuQ2sQDyedhZx7MGNdVEs48BT6ysEC/r61kOQ4hkuEOcdLsX8qS1Rr8WAIRw/zVJdp7mqTSf7KNS4pmB9Y7xv1SXO2izRs9dovNWmygukdY9opPXnfBoif89otBdIF6sk4nrV6hOxqOAisQx+3q1LNKx0mCpahMm4iBgnT3/w12kXK11PVlvDOCFNDReJw4y01V4kDvN1+1P45UTQj3syxcWn/HPrO4gOMDCob3wJKbblmO0N/HTckZAfR5FC7lDMTxCg0pTxkP3NkYOPPhb2bdH+Zg45+Cjn0RUpHnkNcSXMQVWogqfEgyat2e6VZLJBvBf4avCkYYF0ieBbChnHbQTbuI3n4jIgqFjE/mQDJRlO+sD3pIWlIJ018cIkIGlyFdGt4KSdfz5vlgTFC8RkjXzMVNpdJGitpk3EV3XCkOEhLTscmeh8XRy4XTj/mHb3z+WFlb5OG5cqvaL6Ou3S3kDaydfk49/e//ry8c3LGQWj2uWqzcKjotJBPyddaXmTdBUOavzw4jwU1+nI+GSPxXUq0hQecuEUCOxUPJiOGK0C6lmGCIYEzSEc6uwdODtkyA6HOvug0L4iQX9k9+uPXz4QQ+Szk/9gAbMa7VJKkwXMkMPG3mokC1hwaAHjuqV9mwmMR48iDBoi6xuHR/DnTnoccr1XPqIeS6JKp5RzvVixYMjmO1V8DSRWZyN68hfdWzEFWBt7ZV6wFBPPVTNh80qS8S6gZ77TEufIgLkm1DBVjcWsMh3I5mjAHhOq1qZWJhVUJrUii6NiXrDWYeCZV2EwBcqA02O9BFugsjg7ZQ00lpapBtfp1ivGYk0Sxm9r3EwNmfBoVkzaN9iOzCK7FxhET9BBciupwhXV2VJY5yZ6in5JHnQYtYIOsehZ1+03h9XBd9WBw8QmmiaQhSiQ4tS4qfNkeswBkGoGuxMt6vBAv53AeAyot2UgHyIDsTvMvdnvbYDxlcev7HNkPMT1eG/BkGxN9eVIrQWwIwdpwE80mMHtJiqwI8cwKOqNqts01R1QHSlhKXzecuiaLDzoI4edmO4FjZV5CPBKghdUZdC31VTFb7VKB6aOlQZhNLg/Nflu2f3OBDtnchaBibEWtcUWDAK5lFfkFFSEuD62qk5LRZFqAheq/avAGWijYYaVDxP3b5yUbLUGrzALs1LmXVNpnl8XRk9yb6GmIMkaXzCgclVRRbLGCwwaU4b7lykLsBqjutvV+IpqlXA4NUJF1Ml78o0SeHfJbbi+kyKebMWe3LokhrrJEnhSonvKsdPtubsPh3UvpyQfnlzGa1P70c+gRObmMB2MDdHH4IgiKrSPOQpZjbLqITQ1R7pibW6DCHL+GESQRCOr8weZLu3IK8ON/gTFy6IwXQYCA5OfgTHIdFm0OCWoxIivRQjc8ygDbv2OPin8JGnV+Mmi5chVz35waG2uGQxuKx1lWmlozGUWbOC7hML3W0RPfJeEBzwprBUyXgoPbikf/FfQ9grfVVOXccTIoadM8RUqXZeCCVWC2NPhYgvVc746MTrkBwL6RzY3W7oFicOLagj8dMjqwle5snzL1soCmNj2uxssbKlYMOw94dFGro0ewhaNIb4UeYBAXGlZA03Fdar9UFUhl5nOXEupLCiNC+fBocttguoylpkZwMUuPaIjU+Eg+iSJiS4AK1048Mp4CU/xJ4qMt6ODU4pvIeNt+a4wXq4xBRsMP/bljdbdyRz4LuuB7/KcqQYwxMx3OXA72t+M6IHvMgpfEq3wJZGm57sMoa6EwfncSQU+bxrYLnR3ThMcBqZ9/8sBUNWi+56VZmS7DLzkUTniuiCaPGxNPJiHOyEMbGK6E4ApqN+A7zLyBEEo8sMClwGXtX69kj1YVWel4u50JvAIEfCueHkBT4Aeh6Kx0mc/rdKOiGbCwUWoS6DbRIpn01CZ1A0TJ7HTSnJ/aJxlN7AeITO8wDDh5RswmAAmv5eu98/MWBX5s0jf1CQjLJjy5J0YYWMkNxvDwSZrjEhSvJrxwRDk7SasQR7am8YfAmUjRRH9tXzgvtCxEr6rLiqePPWQAYXTp9vjd4r9+vzpH2/PxEPv+25ntbLzXPhTfAaMcIcioQnk7JDXQLj23YqlC6RFOwaQKxVqw46xdCFc+fCHa1HitasH/OYIOsrpxwSjRtAjRx7rExyhTOiJSOaRmwxWIjcpvUd2Q0a6gR0GXRR9ExsMRSOaU9GIZr88FGLiSq4bd+DUZoFVo06kZ/Pz7/DrTFyoB5h0kxUHXXhuZh1KfG7+eTtueAKhM4t27jcamaOt+zlrsHlNZJP9gEWN++MANh7YOy1zFBRx0TIiR6qMJmWylcCRSvKjq/u6D1/Go3D3s5Y0iv1xpp1ZDZEx8pwA/AY49yz9+uXrpw8vn7//8vL5v9+9efn+w/PH559ePrx8POPpnbzbzL9IYgwRbvFti+q2xBgOL/5j0bT4YdW5ffMbhUb5g75tGt9vVUBDv/mNcgjKl8NXe7AMj1gZpxD31NSxzFwq3e8jrg9WeFn2iRb0BnkWyq/TaRbspkaREUMhbYEGrG7NpKBAPb3eAPooddVxvQub7cHGX6OI4Y97UccjrAgHEKo9AP9mEnRANKtjqLKJgtd8oqYmxls38lKgkE+Kj/EUzaS4vGBAuWz9Y7ZVbBKM3L/2cR0msIl1NXP8OAOKdVMQ1ntv1v2B0RPZCWQ+T8FbHv20G8d+hR7fvWdcXrR2ZI+6FMYQLQBza3awIsMGGnoNBqHbsFDIhG7/NQA8lBPCDBq9JhLZIrqdpoAtBDjzuj1Bd19f6qZmlwiOjDZmo5Gzke4pYKUwCsPVO8rOun63pR2m/hTP8/a3zNokUf/n8p9vZ21Suq8nrZMHvxK3sjeS8k4dASWj77w4Akom3U15avRteWow0ZiK+hCLQ36HK7ZvxalcmZUfrnxXO/qtDI4uqv4ksHH/bZN8fgu4Tfd2aQcw25rdD7oia6SfOVomHS+doprLEdMqpzVIR0wbNL3upYI9sztV1oMKwFpQlPAJk5YYqwFQxsDwdycj45egqhdaxjbsb3hlNgFppbryAGjBbOx7pxCmwWxVIbcXIqCGzWuUOy2Iv7AbN97vVPBCAGMwFNWI9kjVWEQU6xOTTUbGB7+vC5oUOLiFLoxmjTqu6mdd7r0qcoI5Qe8CpUV+rvdO3XcQOtZ1vYsAcrxvE+V7fHQQq8uvm29ZVfuV2+gx8JTeXE9pljFpnCs6ZknCkYcucej7fIKvUJpBMtnUx5LNcsCG+vjDsjZicF8AHjXms1fNOJrMZeQ9YxVZy4YYMnRY7UmBkjZxI0HsSc2MJIU1bgYBO9tsrRWvmgigNP9k1VRS2eFYTa1cwWIA5xzqsR4WL7CVG32AKzRUaoXLBxEpI/gOIB8Vaundfq8CeqtH8QBKZ4OspPrToEFBx3EJ6QacLWEdxQUSDvAU//C3l5e3Pz6/+fvtXIR7kmLnIp7UrZp8g7jbOrojDhP4nVNHwh6kuiV/U5C3aUlQJaP1MRYCP1y5gyxBTeU1P5JrH666+p9X1uEYsriYaDimEX21UIuuUKwL59F44GHffaHVurAPAqyfTwvL58MTC24dXd1xXag7R0LgsmaFcp5wSU/qhuiFWWFfd/18WjhvsOJUMwzLC4VhDDKYlp0Hbf7bpze/ngjo0jkr8mbNU/ZtyQ74p2GqVi7xV2Cq4pHLzdwS3hzsTeHNDjMRaOGPeZ4ZtDbqY/KRu/LhD9c+rF399mtqCw0AKNdXohLMKaYJAk2Hu1XTAWlhbOCNNPpghdYrw/Q4BsMnDQtp2ieP8o84MdGQeQpgyFn9qiNLSRCgmvKi0dUI2Ij1tVrZ2E8fZbhUmCpUnQkmmizRcBVDZuXsrdrfqDtJEU0yRV8APa326iELTLsI22iBdiscy6DxN7vsgN1mKNp5SRD5QkcmYiVPtSpj5Z+3a1kFmZyxHdqBMmKkXxCRLb3VuPZWn5i+ycqeejd++vT8/ssdgaEydvhr/mcW7KVvfDeivvHdEP7GdwM/XHX1jrAYGeNNTew2qpQXx4r88+bkW3FzJtytiZWbSj+MVeL5AlfVXarWKbhV88/TFhSAJzrXhLxkucVhTExgUszW05Tycv/ln2fSAMZwtybmvjh8GOcu2F+fP789k141qqeMcp5CkHx2IfSnL1h1wwUbDnkQ4vUq5SEPQn3lu+umCxWOXbGIPKQOYZ3rK58t/QfllY5euWDloaysFsE9xTamcZBNlqFQte+mIikUOzHAyUJpNRT3rI9B8AWb8Sy7VoBY7JEaUV4RD85m/QuGY0KAmuYQdqrqApDUhUsIbENDG6EG+ilqWVOpbnrbhNZiBgap/AJi/BJtMgFI7WcgZ3G2wxRk6LbVJGRHebWahWQbBpzzZhoy0Kkb5gGLZxOBxNlo97WL+iptNhNAZTORfObVOBMpINetZiK5KC4nIgXdmHEiUgCPGScCiqcTAcS677mfDZAlnRbVdEDR0dLUad0cxwYCkx/UIdG5l3aeqjRs1Vaff5xxaaQsMUqO10WUDVAknmRtKAbSQ8oEW1K6ayztF09T0js5CTZFvwWosU6qaMIHHMWbBkGh1bKH8AibgqlR59IjqdDM/oiCIDX5hEnyoI4SDaIqmCaZAaEgpPLeo4Ng2yqtdZAVoXHqAIBNW1Io1JYk+seWLaO7Xo8+ZoqyxXoe554iwBzBgRfptRpF0UwbN9COKDTRqgGxGg1rcVMUk2QIugEAq1117Ne1S2N2PMo7mREKSgSVxRQBrkQ1lbqCo7qk5hoHWVOPELGLszTaE5oARg/6Ghilmi7oZip1N5en2cfv3+7MwJuvr1zkKxf5ykW+cpGvXOQrF/nKRb5yka9c5CsX+W1c5M+fPpwC5wvhKYPyKXsfC89NwWH2mIUHQVtMOJT7w1777oerH5pjAWKWUkna23BpVh/+cHVuFl29zD7Wmfl29hHxi8WQMURNoM4DAUuPHzTEMGA4a3TBvUTTHLtbtPEVK9JQYzOuSzTBU5PcdoRr2oJ0e/xc/vPtJzg+uZ2tyIGdIfEXr3kLXvMWfEsC9+KdNvDNEVKS9lnllL5YPtaTcETsdRqPVkjAO9dJi15T+cSZGk+s57UGSERzgRZ5CpoLpVjPhJGCoJ+xrbjsYZy2RnWtytf9aMZcfi4mRO+8pJ6P8QLpYpVIXC9Rwp1xq+8vEtPY3bxTF0hY5dCluB5SXE9EswIXiRcqXc9S8/04FXE9hXE9EU2VF4nDPN302P2/d5+fz2g7ddZ2pgdvv6Kf8kzd6q0fKE/aIXhD/C4cefZkQLf7hVP6CtRAX/luqfJ019x1FypP42+D3tEIme2OJSnQhMDg5RGHfVyKOjff/PxtAtDXk18Ng1/z2jBah4VnCHXQQGhM2piS8lgCABYUQ34xw3PUgdOhGltKug1PcHimScYlJAEROww2gvKKesqAvYCavUzlAHoGyW8l0mvQlrCELu0hMBuKqxzrGJjiMLez257g70NkLvZ7XzQjtooChStQyKAqoDTSDpBxPaZIT9fXEEYlLEKd6QlAgoL4+ihJF2khCjRSqlwsLsCwzLsaiMXz2cpRLetQh+AQowmmqCqHGkw1a2mZ1YCdNE7sxJtLeMDX1S5yN+cKV4S0DiDDQ1hhIQOGJyr5fDMrUFw0tKyhhG3pQEXrRkQ7T6pgamjfXIB2bgvwOahoNTYUfeQqWlAn6k0OePBJJ4OAGlIEwkD1pLd0XiMkgYDsy3EvNsyPfpjY06/l928+vX338afvn386Bf/z+nS+Pp2vT+fr0/n6dL4+nf9rns67YOqbFP6yb6OnZDl7yhvq5ncT3xV5KEAcvwvmUAyl1zc9nEHIGx/OaK4xBouH02Ksd4zHHk4MwDTHgGYUBom7cOjhdLc9nCl/DD6OVun+4XSKkTqwp4DPpgWcaFPTudVn0xt4NqUkYzcPmJQlb1AXTdk/mwipX+j4bApKVeMxSwqU12ezD0dEan4WjRgTJ0lA4ap0TLOj8dmMGvMZRUTictkq3GdBH6Z29m46zJwXeu+K9G5KzYjtuyl9k0kdXKH8htdcMoLAs+kxr0nQkj+bAfDcKq17NjUsdCHDs+kU5u0RiOINxSW3gXXs2XQKUzF4PzoCBUFma4/ocTBF1emGXk1n6dVkyXBm0zoLH6rBswmIfNAOK9fT+lczILS5wp7KnB6qvpo5DQC8mgpddWTktsecMOf3hta9mtFjvh0ZLb6aSqIXVsJ2hVdTgeeE3YLkryb6yejsP8BfTR0JwjH7F9Rns0xSfTadoWxnPuKzKRXP6shn9vyz+cvnT29/ffP1+7fvvrzZl/Dz72c8DJx6Sggx53PKShLKzCGANocABIfslJqM4uaI1OnCle+WjyeZYY9llUX4mHAQo01d+XD1dmpMORiPwdDqnIizgCiH0MX5xRT4n12xyq/bg7mTd13sG+ld8kw9fjsZsrsloCpbb5T9mkY+PNYcCuVGmfh1OciR6LboJLqiOUg8EUr6N15ZAr6Sceha6UP1FrQN627I5zY7QYNnW6D6fBeBmt7XGhyff90+nbRm2Eif4QPT8kHfKmiuUMPrmDFr7YUp0JTcC2ZONcWqzPNY2WxxoAuSllQ1PVa0AXQzTF22jVyYTmVEGZErJZJYFr+JGKMfNpJRseHySGZulAjatwqLQBkZiyxFkcEaET71OYfPJm96jAzfVwdqJZzDiK2jyS2KkQWQEf2jExmYleLrrKi4cismYC48zpHaGjIet8F8LaPtSB2rGjQmVIQdHhuXyrTxMdFUcARdH0Mfmi4BLaL+PIELjHOWNqVx494H5MlKx2yH6HKa/P0IqU4iBqCENGoNjzZu+/Nsxj3R7XMcjC6uUPtV8JRSkJ3OeycXiEXX8t4FdYzR0JhcxR9iNOyV7xaMhiWcOnfMKQrRjow/5BQFV98a4W4ZDgMtVs3gAU6jJMyryRx51hStFCP2LAIlmExklAVM47Uv6RVG/NKUTpIJlq4ukxLge94Klto2OX0VQmWWJSovgBEk3iinSRLzgxfkMOLhARM1qXOBOPIsxsBpRuridIxCqcV5DAfyEESTVAAKI3WkcqiGsMIMwJ4VuRSx/dpcXg6m3+Z4Jri5tMFsVhpTn6q9L4oYCqO4j+cw3EdcXKOm0d4kLFn5pKuw5N1TztF38y0GYo/0/tAthrpGeSi1FJq+Dt5ixtx6i8krlq/VLebwvvWHsHcMYvaoY56dePtZdRBFR0rkvJUYIpyqxygRuztMWbrElKAgJ0MpHjDiJJJqPpseuGVEwPMfd+5b80ssaIOXmHS2ScTpSZtElg0XQ6NO4tqgcciTS8yRi53TDDZfCctonS4V43AKGYKUBKWEjDGM8TEqJ6pmaaoi3GLB2zEjoUV9kvNNpjyBSRQNZlbdr872FmNmmNl4T99if31+/+6nj/myygJmvq/qr2+/ssSTeMoflX/P+Z8f9j2X335BHfY5l7f4m0fkkMSRfHfywmgWl5HAVEAxHGGpaKa/+Roqe+J3+NXuzP2wyZ5ERyCxlwYjugCLWqA060CXLSjDbY/+LiAxvOKZMapO7wIpsR1qcFGuDutE7APZMIBRkaEFhl+ZMe3oyjQYzCamtvpmstuUoBUkN5f/16/Pb0kvVVrfF1fIsfE818w6i2iRQl4Y65roePI9t1UJGSkNKvh+zaGyywKof13QBJhpuvUUp6+p958+fTgpEuZ/KjSCSQiLZwNk7E3Jz+yh5Gf2puRn9qYAGY2y4DGLLX3ovDukdVYGk7XHYxZbNC47efQCC2jdU8yC0hCTsSlwix0A2I/EnQNTqIIJLDVUStgOFjilBibHYkCEtNyioxQGNHgzJEEOiNWnOJfmA3YnmhUtjVcNxk/5DURea0SQ5rE3e9chiRkfRSxK199xInruzS1mzWalw3y2Y01YX0e6QJ+4SJMME7mpkpOoJzx1N3a/DH866PJrOlUJgDfOZ9iCyqVbGOiF6D9raGZIpE1b4RJtrNMguPbYF9qzeQbme30YeN4Zcj5feUdFnGS5OpUXzzMSV7idSTOquYZWkoZWns/clkYtzzchL2UyxGGcfm2/f5c0GB+f378+u6/P7uuz+/rsvj67r8/u67P7yGf3w/Pnv798/eX985sK5KJzorSf86/kFXlMGZc/fyqf/rHKuISif8jseRMOhLuMA7F4NmMkbVk8pmaD7+IhHD+NikC1eKfviOagkmYmAG7CgD6VNgM4Ue5/KlV11E9bRVVjgFIVukk35TqXGzfWV+iSmv6t1BEwz1xt87dSh4pVj17L2bVSkyUhrdOjl9ioZhzgyAApr/f6IyTSTIazqLHvavDzFBQdke5P8LRJEToUGWSFwvy/Ft15eYrDSisafuXAdmvAL1sVpJgK2xfBYUdso9+1hHTIolyj1ckVqxJkPAG7qhgqQe2cIL/tUD2doN5iylAwRcli2l3y863E7nG/T1AD0ManxaL1PHmhwLSUaa/xIcaAtwyuVvLAdUPAEi6WSlpRdL3x4I+eUub4AJUZC1lUZS7m0U+wXkohFl+o08b2bKi5g6ZbVmQohNWWTV6RctyxAjerh4Mm6IwxL0WB/URAtWROk1hHOcQa4GJg0L5nFW27UEpyWxhuGCk28BByRflcDYQadPTJrEauhpqnpU+Ya4QVWr5SABgDlRl0kS+90u3+OfOEfvrx/+235F9/fP/ppxNy61MyuD99AwTaKtgm3JKw7MaEzg6doa06JD8SstjBvDPkK3wsGaM2fU+/9VGrkXQdD1f5tzNJywu7PME8unNDVXoLk+SBsvPWNDW3yZnUalUa7MQbkOdszwVb4IHPZa2fpUMmUJwxEaLUd55fyMjVyZU05fzJwr7Jzc763O0zAbMkzs1SlbHsOB2+X5Y7NWjbwTRvQDNVd27RXZxUKF+k97z32a4W8Vl+0Huf7pqfNcxytt77dINBu79K3CPPd1IDTA44FfeKNfuYI44ReZM0rtNDTv1jGxIJjzjmdYuxc14n5TEHPSVNnDwv5pFHXV6ZWn7YT3Fyn58/vvn5dl4uZbwV8ik74CdfynjWALFMXX1ZH6KORGtTOJZZxECvctCGK9+tmEiDYVzuWMCZo3k5pE1R1l3mPldMpCMm8mDQdQ1gcfwcejwU3p7QBWID4Wz14mL1bv6SAjeh2Cug8BlQ9kyOxapLZelc4+QR8NOnAUojzzp7SxcvMPQwA8OLYAFr9FEbgFp4zA4YRjAyU5t97C7ITMZ0IyCloLM2jWtsXJ/MKqwRppm/sAKzXUi/PWjoTRuORVtAt1yflBjWXZ5d935iGV/xuAM17Ce+4cJ85Pe/UqU/f2Yv36p3ADQFjuXXM6qnzSYU/hwef9ZscyOGt7eHANkoxP1I+qZAHE44lr6JAs71sTzLmDDKHUPg15ihyh1E4Mfw/9rVb3aXULN3Sm54ndhzCc5nAoOeiUX3alJdfLUAPkyou7Yt8dF0iCYV+ZsFiaN9hmVjeeodYIS4AT8kaniJtbDsuxihvd60LfFelifv5b1vHkHXOHiWwuBlZl1DkpRzROhFsWKPLdWzpuh9Zvl8GnjGnPCPmhcPkdC71Ce4s1BEFsFIvmjk1SOGaUNAIc9cKxwQdNT3VvUoykkxYCnJhkDJsWEWzblZ3GeAIKh0H0Xp97VTNBuWxQsoRZPIMmWIsJj7fc8Exdbs7jtjP+hs8zW+P6stSyS2z812pVzOq5kXDwc1TWR/ulvrmjIakaEkGuoixsM6bcBOh5BccBM1y+EW99feuF5ce37TVs1vy1CBL5tLtjUDG4NwhxmHo5rZJfRZVOQN7K6YCJndzqjYCfq8jjhMWGrowAT0w0+1oYYWk6m/1eXynD5PMxKlD6uwA8TZe+Ts/R1eZNAZt+HYkFzuQerkfaagBXMvjvvN8/uXj2+fTwA72ieTE+fYP4fjXqSHWXknI8vt4yH/ZHXlu6WFmRKRHmK5PYJOencoolEpf+XDpYk59l39du1gp1npTafuIZp7UJiwoDtI/sL5k0vF/hFKfj+bEGnnE4XlgZWbC6W8DnGhlNUQ5s2xZRx0pAujEJY/YiL9XGXlF4qNOy1eN6JxH60mYGWmheWdjcHe29gXx3NRy/oFukdbdRnixGEi3rmt2YpMzu8dWvLjWoXZAkKhmRy4WdnsEM/KzPRqmJfezVL45ufnjz+9fDnFBGyxJNAzO4N8khXQC7zkv9xkXVyhL97iOO3cTQn0XLg6tFXuy2um05Xi7dqHKy6AdfSb9W5hq557u5yi7qxvxuzAHuI7VBgA7lGs5OFKBoNkWATHLq+ZmYTh1oVhXkGYN7mLkXrez3RamIaFTd/EWxjlcDvxzVkVO2ZIdJPiiNPnWb8Czl5kY7GbIm1GeMiCUxO75KPm3eKLGpc7YZjAu1ycn96+nHGWTfg22V82IfacvDWN0jdlDT4UbmLjLeEm5iYYGGfNjQlk0NHBq2P+uYZQjo+Fd2r0JF7M5x0DVQJe7wnw1PB0m0BMgWZc0ICHKCGiMq0KkNJJt4zVGdub5FQEVHbJmRVh8bAGy3sUDSYOdYbn7HQRofR0tI95VZpWkoZz2b+kwrOrkblNmsGW0c3HKE8h8qhgKPwG8WhYpWFvEHH4WG9MBd8qMykeM1nUSIQFGfvm+ELSkDzfAHwW7nMnf/jw7gQIalIwPpknm4DWz3Ky8iaPt6CPZHLX4ZaQeydvCrm3yDYvh3btw9XoVniByHKvPvzh2oe1q9/My0pSPWvLU2apmUSmgFNfFGNFrTpakj5anjN3oWYd8reMPVBiPo5Vea7LParL4wyvopzBqeKMXeti/LFmPld3MJz1DfAM0mfutgSQ+uPzl5czkrotYvq/lLre3qSsPxgMhukYD8rojjTuh4R0gqz2B4V0/HDV1Ttym3+Ymu1VJXpPleigP/jzzDGbXRhkFoQ/ziTjLzpXYUfV/Eldlpv5eBfF6nLjdrAz+6uUfy6DiV3Mr1z6JBPFLowt9s+3Qg3dX5rMzIrFWpSr6dDmpXfzBHj55d2bMxmqsh+APi8yKaNv8rw9pMbCwO9DjAUGYR9TY4mrGPJXIdaPBQhpTCAZ1LEIIU35jOVBkHVVE4+a7UHKB/IUMpu3Kx8iHfijEiJCoQtpH2Wa0IAiLHM6pT7CwlqEfvb2MV0gt6jIYh1iK9JxB0IpUMNWEbAfoMYHhPf0QhmebsNUneu+g8zDNo7y3d4cjSsFTb90kYF5icbNUYcVzW9acudXgHtIe0KtAl+SKmZBc5sLzH4z9vMed/+7ty/PJ+JE99siXf6iGDP+BVRmKt5kxhA3mjEQpdIcShTk0Brh1DGUSjScHEwUpNFQU7v67ff/3ClSXCx+SBw5ZjXgjlOaEe4eTT5zOe/nZaHksiMoVvQBk/dAnlwBaWXDfo1qQFiyylPKkRC4MRSvLiXHhCOUQNXbAKhQOXFHzYhMufIgvcDMZ0WyoEUPMYv+3K1tHOt9Y3oxHnES66i7JAQREpTAXJXEA0JhsjtMfQRp7i57b8m742zAfmQaWNEV37HBsM2CIgJJVELyWEgMhTwXJqiIx9AsggBz/KpNSsOhtRSsocFk0SWHoCoRIs36mWELSMibYTCfaMCcMR7TAvtAyWnkYLv03rO+33l6aIPhAgx+XjLc7aH/8MvnfWefyxLo9ulLWmS530j/Gopk4255762Wt6FSo0OGu81CthrcVQvZ6sOVhQzB1pQMj9YjN+qpuNB7LMqz507vyUMYuYFF4FDaK444XEn2Yf5pCvpleePU46FfrnFlUmGuz+MTwKfyLjfDxze7FHDmWvhXsixpp26xmetwk81c6SvH7C/XLFkHbwQynB2+EXzf1YNx1/ZRJwtUCInx43jaIaLjS2TEBJIZ5urbeLE4jmaVaRnHpcv57RbqYlAR4RgeMFGjXzh5jcnVVNh9CtWKJKKaqtx3GUWEBYW3NMERhL/gwYA4f4YJbw4IPDephqoUk326JibpD7H/YpAUcdCchEGcnvWCV3aPO/njyz/++reX56+/fn45p5nPvkx6/9/Zq1nFmwDN5RHdjLpJN+Nv49Xws6WK/Wp7Wt7IrHl5mzvTahUewqytjYySY+o0GHYriuKa+8aYuiaFpeVtTeHV2e0aYeg1VbYmLafH3u8a+OX5p1eHn1eHn1eHn1eHn38Jh5//LZHA/yx+Sm4WRrAs40+mu1DaO+VzY49mbP+lUjUzG0wL9X0fzr++f/ffL399++mMb0vKabA/ogm+48Y3VCEMxKEUfPiZljc+o0eA5UDGXn72w7X3Vx0CwPUCYeXMjdqNY6By+J06xgxPIejtutBNnp5Z2UI6BvOomtW9KJUz++q0UF1uNEwqn5XdYOkdrZ+bbxwkHqMR0ZvF3C2Cx5cBSW/6UcFlBmPLvGaK3+ARKowHJlMSxagf5RNDqG2S5zW3lPP8UQo9vvJ3ue8/f/rx/cuHUwG5ORr3X8GHRaIU8kdkyqH4Vncw0yphlR/yYSGw8tWH11HOF129o6zkNm0gd6TuIStDOSnhDG6y35xFTapzt1e/QPYbOj+6MEcBD110HZPtgOF15xjeBJKAynQRmTp9aH7kfjdbHTz9ZoR5QBdL22WeouBe/CLiiyi0ecwMDSO8y2356/v3f/388l+/vnz5epckEf5blEzXsjbYm3I2HHPIQ3BhrY6l/UL7X3Vj/fbLTF358DVlw79QygazORV4u5IalidapmghaOSfJguEmmLM6UVuiDsAbg6JE5Rd5U143ILI1XrIvleN7xm6HlrKs5oREFR5sDVNm+bgQWoCKHQRA/x/bCKBMfvIg0bYNPCoIfIx3OP9zg/33otXcedV3PmDxJ3eX/12PvciIEPYHiJnqJlZtk+T2vs/30GAg2SG6s6Sm7kUOVwGGofE1kZWf+gImbHLixQLpWTGhuTE00SUgkcQ0EOHGcVF+f27qgxL66Pth5zdmnrlIdChJuBTVK/GQj32olJqBnANvv77+xogabLcvHD47mod0OFbWB46oLagIAezwnzOYNevic2twiTgnrzHl/4LeumloK/6L3RLqGikGSC6JjiPOuJIlaEE5Rryzyf/JMOhaQwBlAQfx2nA6JCU3hx86DUltXbgQ68XC1PB9mF/1bmD3RH7vREvpDiV7MKpnN0prk7eoeaL+Tbv6ADy5eunz7+f8dePITmBpNznOY9j+FNcQZw3h0L05E0hejfhs9JnKhxzBRHoCnLMEwQjtA96gdG01J5+89O970fIsfqQvKaI5OYGP9GgH+iLEDZT6+fIpbU4WVqEmwhUKb5Na34raonyHjPL0AxOqmTTO8HzQKS7ksmjFzO8Qzkj/TyTswndoUP+yeKZIBh+J+rppKTAKccSlEBsO37U9pwkJH8uz0wMhk1QoweuNH/3oDioefB7rkbau7sneayau5WMO+Qur8evP359/vL3fwIPQnVT+l9/KLJb+Zu8hy+LiTc7Av4z+PORGxOHuruvz9KNzr0PeY3W6U7/XCgkvdKtUrDbY2Li/T9bjhYG63hfN8GbXLn9ykdl9SVr7P4urLhd/hQ31uYQ3duVtcXO+kb/fXbH3N+vVvC4gD/MDRpP5923EUWQXonhuAef8U/CZLyGKfzzhCm8hhy8hhy8hhz8Tww52LSCRAAm8Dhnhcl9zWMyw8iEpWj6RhqMNI8JFAzDugnQNblZtUR5C0N6IWgt8M/GibjHU/qPn999ffnx0/Pnt+eSy1iZMsvE+JQDq298WVPKSxDg3YG3lb479rqSpdccy9F5+auVM5hHU+8xbAaDvmD+EDaDVhT1cMjSSx/qQ0oDw2bmm/UGel8KcD0B6NLWQmRMtRC5zVg0Km4hVIwtt+88NCxuHuxE+10mOQOsAjg4CstSICeARO0BDC16bMdpDVhe0gU0erlqwzSbD2owN1pbrVL7gZBobwy2IkOZTUWw7dnNAzSYtH6AlxIZna8gtEmwxSXPfQe9ipBOOhWbaopzkPC8q6zkVcpTGaiuAqOQLamKehWVxYnUvF8JbNODQTVqichn2iH4lYoBKxMGE0c7KYd+WfJlMh7ss37nCx1UFsDGW3NyJVMeejlSVXFv1aM90UeoK2bMLTCsKhGxNpXLdcUI5Xg6AqA1kzWW23CTr7RCS6mzGjtuYaFTNEiyAebGfFn1ail1flyfGKjzCm3d+wpFD0b0KMlU7R0ZXqWTg8FamaY6K9FkHTTZVzNGZTVZW03dSxagLl2FgWwV5pyoGCNKwjKwuI8Iz3Y8CeMCPnNRsLiWgJxBOBlZYgI+yCL0UyUUzJU4KVe7alxKLIUabkbvEHxQouU7WIOJ5iFre5p2jSfQqvHCEj5CXdpH3CnFo7gcZ0m+DQZ8GwK4NrTwlzqiL30YGopRoSOGo6vRiAh3UH4N6g53mevJ91nys+Ab3Ct8GpyIWBn4UCSYHEunBe6gvVjrsS44LOXqxLrA6SGxYE2/LNSlxFiXAQ+K/RqNNJsRBmnL61VnU8JbQu/fABzcJ6+/oyMyxB50SQXu6PLL6o8XHaMkU7tp5OT1rb6XqAm092vikrOUZGl4WujyPrTyIcF2EdNSBmcGhHIM96vE+3fBX0PZ65UH9xTVnPBseC2sk/BsYh6C/20vB7/u5avcGcBwTUimQVb3goP38RrvIhh++vz3v+6y4akYR5edftVZRau9KU3DP63LL6aEUPZYUBB+6Ffw3ittqbny4Q/XPlx19Z7WY8BueghYd9gkRMLLSfZiP8vB/BjNm22HOWBDuUdoNOcR86Ervv+E20kC6H6RZxjY1UEiZmeu/v0AWubJ9KMeEVMdO6iVxtNL4RuiLUdAb3DCI4OEBX2fCPxehxrjLiUOTmB8Lvh8gde3u7fmP0zgGNxj0MnNZJeY8R64Q0tuAo8RZmXohuYYLMEdOlGXrJvZbhnPPd6/fPnp5eO7UyCOWj8l5VTy3zX7v3bforc+4Ai7Iv0hOEf8LqgjgI5a3ALoCIlODsf2WsxgcShnOLAazh1LtYHJnVYfLlNtqCsd/c8rq3AU0BGz8MRtUM8l1VvVWezkICXFFhiIooi7pO9QnWtsVQCk6pThkSEiyFqdz1Afv2VBPYDzf1KuhhqoYGsMSI2KdHHIAgDK0aTDcLUyW3OuV3WIj1CZdRErkyYyT1aL0mDF4P2vX5/f1pwbThhUGipd82GELXiDOkNrAh9pFBQuksO/ahhMRL2m3gU80k8LDxOX1CRm0MOoJitH+U5VnaFDPWlpp2hwlQ+Y/6N2D8eUXis7jik7CZMilKUMTlE3iMVVZ7Dp4T4h0mEPFeqkkrcxjdiirihUTc1ieZNg6mAGYVfUZB2+6rjSHpKRNPyx2XomLgQ64THplNAXV03QWivRBLhozLFSivNPGXmqlkLM+ikBeSr2Bmwkk8K4+LmUa6dkhIwV5ZsyDRGVZnlCwApgVz0CoiR05LqFZCRVexk035I0V2feu18+f0rS6pcz752UT24zCXRNh/yvv9l8STmNzCHzJaZjEPZQ4Arcz8ocee+svPLdSnBViGp2LCO7Q8wNL8MxCyZ9eCx4BdHldThmwWRz881+RZus73OJwO9DChyZkILpxT78rMxv952zwP+zXE8pJs7OSeUirVA7LCjDbybIq7TcE8fEFHzSE8qZXBF9zsDDuoMAyn7wwIwYNxN7FPaEZubn3+03tEYtn+Dg6ABkmJ6xPqPdLqBFzA7EhLcUZBMxKKU3AU5WdiK2akkmLRGZLSii4Sz/PONs7h1iazp9vpkVSsE4nFPX9OdP//3pzBXtVML+cXBH7+yKvPWOJgTJxY3ylyvf+eCO3NGoQTPxkI+JvfLZ6o6WePHpY1IJIoC6gxiZzt8mlyjHvEy+WcJI+IqYYsf6/hhYD6fA+pM5djATiPLcK0BJcCOJZmAzS/rGwrJJ5Foxo54Gk2wALwYVzUwzlwID2eAcDs6dtNFITKkRw4CzYwyiQt7P0xMvseCwehV5JAASZX43udASXCM6KTKsGpSdRHG9qRxn0I2DRODPqDJwnbqoFzQHSTFJ2ElEdKNBWQf4lcxBS6sH7yKjI9iEfYj4VQEXUyVdi0a5V6gIXkGKJYqdHIAx8Umo77mtW/SOa7gL6A4YCadl/8wCKS8gw0oSaEsWZ8OMAqbL84bzHNqjX6jSYUX0u8hiH3d5IN/jLI9Isw7DLyFWvdWQiABqiLBF3F57nwTs8VQ+2Sm5scjSBFHunBgl13hEBHrY96REjUdxbihSoQTXOks+D2PMMhAzathDLi0aSrp0WeJpvtlPsyvfv33571Na1JC8YrMStbjG2vNK1BBuU6LKY1lxbuRYgr6RZTHIsshjWetRkHX+mD0U8yS7cEystKjzVQc5FgW5xz1zqsMb5+SFE6kFxV36o4ZsUk76QctWFKzFj5PYlc1TDtNAGjbkWURgPMvmkW1h/hVycxFG6eI5vgWGkvzhNRdEZc1clDSLQnMiiH9h6vxV2FFZPUI9qrI0agZjCOj9BUg0yauJJxZDM2Ac7vZCrAhCgbwxvUfmxRgC7pOBmBcxhBFo9Aw0ekVLjqOWMy86GPRNU8S9GIduzi6M3IsNyL2oQF8FUj9GQ1p7BYhAgxU164dhq2qeO5Odk5GtiQHSHhn7gCy5+1NiIYKZpXkDQlpZjgFJbatzfE10lAa4h6ZInI6nDHlLWnKa7ldc1yRiZXML5XDjuaiRo1CDN3JSrlv8zjlPTqGgKpb7RSBI64we48kNW3HEkwA8UczgUQ+4BiUmdcsdYCFcmB463R2es0IuAtdVgaKr8ccTK2Q8skLaEysUXJ+wsRLLLRkfchPSYPY7vZ/odERcd0Tuwgx9//zTuaSt+/I/7dxko8T57unru/cvaS60fBJPamcQ9VOu/OW3L2+eE0mcwJASlAxV3cQ4gb/xNzJOxt4Sq+tuSifoIiVsOajnCaiuORSrS8DZLhyL1fUG9TzHLMki62IrW+9ZTnRhEHY3/zxz6QoF0UfOcRUB0JJcxrxB7tgHWeNj6m3NNeVOIW/FtO8acwVnC+2K5jMYIZN1JQm78hzzGSxq613g7qlBIVfmhXtUJ+RGzbje/8pTrlcH0kljZXGo+heKPYE7+xQaAdngqxACvQqZ1SmvQimuAjJ/FUJAAVkbLiLTNDh56l2A4fjKpDRbuT1NK+/kUNNA7I+Y4LliwICyz+fgWQ6xfx7rbjWiEZjr6hhRRYwmtsR7MuOXYl1mirtmOYRUc84OsozCcKy0LhRHVvIqVH8QQ+FYpdslck4wh3WzH3gEOBPKPOrs72dakUpKD3ILRRJHznferxN6k5Q3XnGoOgsw9cFyNWkVwvcVVHFOcjlI7tHH3kLqsjY+HJDVsqnxgbcfOzOnGK4vL3uLP59wu88gnJtLECf7WuZ/5c08FDqAm2M8FHqci3iEh5L2SrLjVX6Oa0mSl158yJys3PEWzv8Ion0oP4dufD30MWuZQ4bPHfLiM/3MHOC+SFEuffduJ3THenzqzxNJD/YKkLlRRrLEaUpITEvEgIVT1Dc6GgYzBCGChcBVs33Te4+d9+ecxYcpmmR/hzBRP0B5pmMFcA9GycF1DGCNFUQxx8q/l59gAki4x5IURW6oSERNblpRgg+ag+c33dXg15h6SZXFXrvlCbVU5njqFc0pRgsCaT4Y7tlGUdRqkw7GKlA7sYuMxo+DVZvjaAGRIkKTv73AyqKQ6DNoELoaVqBq9ST3J4G1Sxp8zZ8+3H4jsfpA/t5W2wFs26Cwl6U7FT/ckmujQCxxVV0UF4POInXEGdTgHJiZb5zCJnrXBYWunD5wBaawi2XsaGz5c63IQ9R9w+DOCeYbnTmh56rZnDDidk+rYQbLTJUl14qMZDDidGwafSTFKxulFgs5O6HD6T33uO93zK9fzuVZT1Gq+wMf5VPiye8QX2fcLQF25pAfDDqhm+gO+cGEK99ddYRR8RDcijNoHLL60NNO5qhFsNzqaUfL2aqrl6Ps6swcTK2xn5o6o62SXwCgQCGjszI5VziQdl1FtCnnqzrwodLZVYSAeqcDBIqrD7rCYiZvCxfHr2wxg4NDsbMob2u6xxK8QXN0k/48wEg9a0fvhxmTBjgQ6zXCBqSErfU9pPRJ6eUJvB5v8ZEG/bjOyCqlGgmypq7IHrogQUc+bi0QTCVpIeqjJZVHjBdMnaHALaTOeWdfCl6jbQeTIXhS9EP1OoUd7SKvXvZJpbAdCaPDtVBiUzhLClIzQOl8moBaUnmA4Ss1QKgmZRVqtyIqAOrSNRoACc4TuOSdBkA0rETZKQrS27bbDhQAhfnU7XYkw4kv0QV8OyYxXVGoxrgMtuDO1MfOKbL0RfgOzlebmAJP5DzRShqEHOJfAppoPK34PkvoweEKboOm0sLsKD2wYRK9QVQF+1DUBPhWqb7XtWyIMNA0AeWbGg7SZDeRDQJS8G3P9DChAQ5aGo83FGmgLRlopWZ9K2XnH+1f37475cBqDHiDyCyQi7OJsJRWfyDC+SJq/BrE+SrYfBUlcM1nf/VioyOp08debHx4nTSHXmycmVsw1cu0HJDDbcR0BdXru1WyAVFk/SyLr6pTc5l4sVokTuBMDGFjCT8gVlQQoOTvJsaHSmAM3H4oJDlyBkymtAtGqhFZnMfYrurk1qd3QqSrFM2msD6JYYV7m4rQkCyAiKWuRg5brAlvQ18icu8PqLeCvY0WdWkoBE0qyiFlsJvJpTNMhr3fItx/D6erPjqK7kWBLFuyZkt0XFGaFN6OxeM1C+onC+rBQjUjRsrqAWiD7fVNw4bu1KE6Q3p5ZfA5MMFcGPb+t7h7YLrqUAXVJ4HRSX0SJOVzHbbbJdNmQS8QedBMqheJamCnXbPJYfOppvuq2ax82LNNDtMlm8OhmulVzWHSzaro9hB2CxrWx3c825MLIEiwCMnIKwBaClHyvYOCDOEaKXePBeIYHSiOys5pY09EZWuSZnzVR/zqFJ/w9fn9KRcJvbMISYvyJH0S7aU/my1zJcBeZhLkIYRyGW/CUEWF/TEQ1WAwaCQeS5cJzrDiWLZMf+W7BYcgre/6+a2vPaBXZoOaHQFQyqOcNsmQTUrNSQZzjg01JrFMw0nUPS6OIkcYiXlXWzDioMhPTXIIafCZ2Ks1433qV0r75GKBAGUiMCO+9HHxoasX56xFn5WY867qfoyhp0Gs3TA3k0WaqP0F4UbLPg5iXyPAm3PnnEaqR0ECY2WwRjIDX/bEe7evSxhLHaPgURhINPWQk/U1UKBFuDHSgpx3YJ6hmdZ5Z1iDST4cdClOMenMMSPjQJaOFkjIm4MqqZ2YQ4tONyOuNEPDOfeovTx/OBNfn0DgzHkl9UJy/YZQ9UNmXUqd4Q/ZdSlRx+K7pXMcdtQfMs8mRdciK1CKGqxOIU6fylgnGsikM9XLi9UPuWGauOpoHjxIauMxo5yMYZLjABDCUmhY340QoRsh3iHPk92Mm+UO4ZkV/AwBLIuplNDyMR0dJ4PPF715un/VBD5rwt1j32MPCNbHrtbpXttRbhJ9/Ht/tISWNFkUuy6DGTp3/39+ef/+0xl3JJMAxfZ/spz6jdH7C646oA5tkQphITXIa9+t3hHEBpPxkJt1ILcbdewdoffnmH8Qflh7+u0Sh0a/2T6QwG6asoQyBZ7ZAkWGgNoprTIq40PVOdVCQL/vYP62Ks3llnoYeIRzjGfgHHEIuanuMNVRA+HuTSdvBtONrg3PogD4xwx8XNXh1QkbwdJ4rgh0sif1qlsy7HqKCXKucdZp9JdooA08ZMm5x64+jYMvPw3+cesfN4zRZ+uPFJyU+7c+ru6pV+Afnz6//fD8+e9/fX774d3H/BqElO+nPAglnP9b3oRzQoBWR1RT4pZ4nHgbGiR8JMyxvL4K+hjDIb2URDll9eHinRARNGHCH0Jdqcv9O6SdaNkiJCnJcluGBJR7jZTUVxzsrhKre1e1akt0PcicWHZXDEW3V9Ja9JV4t4EvYPn75P9gNkv+ZmAwhtJyZ/X+YUCbDMHLLdprJLf1Tq1U35oStshM6t6WSyN7iABqpvcb+MW4rb63Pm7g0ZjK+KxGTHEBbqB18VTNOVY8BWqhblabPyBu5wHKM7avFTN9AC09EhsY95wt17GqbFHxInIbpLBBXomq8ehfU79I1ZRu5hXcwNYBhXram0rMDjuQowfqLsCJQ2fMxvtSey/h7xUNU2HFmgrbrvCpS5iiuG96tDgk8d3h/Bb9FcqF6pA0iFMYdD1sfSIN+9vgA3OBNDnYQOwOtvG4pHiwjV2caqMQahRPtdlvYDecaiidnWqgTfqvw6bUNRJfA6pvTRlPtZF4TuhUG705y061sZuXi1O9T6lW7FRbsUlw+DJ1d1uajqRBZ/HPMqPnlp6YalC1egNkAuyJLVlwpj2xERMSYU+c3CiHF/hdQ6GevCZAm0z/Xr9Q10gZ2XbolyDnY1F5Vuu3SLsOhmc3gxuPD08h3mn9QNEZqVsPAsRrqW77w9HbFaqGMk/du8xVooSI/uIyV5LJ1cj76hyh/IawxqmwryduFuGWay1abuj5H2BdobAGL/a+lBJPtN64dR+IdXKhpzEHuNfJtdjT5lizc53GRq91PdgwDQoDynI9tbT0VUwBsKjPw6XYDCfUKMlmOMkFuHRDgctj2OorWznd3AeH72wp5cun60mAb4rHo5Y48Taiw6OWNJrRd1KjFybuA7UBSHPRl9UeecxJxVPs7WOICFkGN40W5VYpSbcUbQQN10QfUgekxE62xQbtpPPiCyuwfJbybq14Fpo7KiKmssc3pGToheR7oHvA8M6EeNeb9+T8IhELfg7P6sax2MycEEH3MNQlK186IyELmEKKwpjvLeDA4Yhk0AuCr8aYIEtD93o+wxa1wioMruAhkIdNwGgNRe41GoX8Bmg8sKwY1YaqNw58S6EzbKf6TZKHFLqga8JzBwf0Zog4gPvIuO/f/VRk3J19SmP7OV9d8T4i7kIuM8dTEN2EHOFRUaiOeVlGcPSI9liSd8pfG27KQntESq0LNpNSiTScOqdB636BNGFmgdgxs04VZqNlZm15hWfsrPVFUdGys9bSfid2Fkpn7CzQZpyRAu+XCyTOtKb6/BVKAiFkY3Eotdf3JA0m5GPcv1VOlEtr+lY5Cqugt8pZ5EUDyVq1UE/0XJhYMHtS5fELBptEJBkq0mnDVmcDTGUEUiIYYM7B4zw97A4lDZCXS2nPUjjk5eAblZ/HSFxYrQgKKy/AugTUst8g3GTfQAbntz7iu2ChcXq50LHLqgant66SscjGehKg3EYgtVLzqQtzeSfAOVtTElPjBikGZAeVwlhqt9wGHqLlBq6Dk/U45cJ+jgIqSuoXZY5gDypfYCjTZNsNUngojiUOtMKX8jaq3iW1YfPs50ZiuQ1ULoUYk72zkNOhlPajNkUmk/SNoslNNekNUnA0q6HEPL2g9hv6ow670G8UKQIRFPtsRUq7An7HRkJG6lLIu9xkcAHf26bLKQgnDF1OQoWf76BiV+4bqcQqVICBybQKQNikaoOA5VzYDzpu4IIbUPVTZ6Ki3kGcl98oAkVMZ1cFvEmH7Qu0TuNVha9O4aVF2Z9ThVfiiw1XeGlFQh8qvKBwqvACYqfwgrpbhVfTmUHhRZIj6rtgkJ2+S5EGdqXvUrHVqHSMIJH4bbH3d6FRIcqF6paChXLAlKY/4WKS28BTPVHrLaTcBlGLeymkE1JVt6ahlEuAEPAM35TPgVlXRdD8TVOpBstpOyIJI+qEK6VhDhbF0g/6CyDW5DoRdQoA9Vllljo4fIjixtPaKLcpvAIAoVg51Ea3FTm8ZFNpx3/MluIxYmBYioEivsqBr3LgXA78+Pz+96/v3hT3R6lEdmqowqD8IwyeFZX+W2VIdZPFM9yYxhYaE/qYi6WjcMR4QJC88tEyVA+l3WNJJupq15t0ANyo1BonjfATsXCmvapQphRjdqkrlOk820FZKOHslWcDcxqIiKaAvWmWaRSIRbPLw89k5UUrtDy0ozeMZo7Ffa12WhIX6Ia6PIpH8FWuLFBlWW1a6qql5RriADVIloDWU+vyKGvJCtWTKzOoeU0T6yaDpKgrDLETkQy/akOcEdHcHjszyG+/SpUl7xD0S7YGGtnMl1mJtHm6NJdp08Ajym4YDi6Kh00G4+mfK6RlRBuznsZi8ChtuA1yYxDTnHu75Jplxp7mbLPMMfAY+g8VKbI+jBMIVAn5/7CmQIAOsjknJM2HAfIl4otQLGTlKRKEcWNoXaFYt+d3CNLwcD+gIYBOkm84ST1sDAdI3g1zJ4XZAMymPf5CF8vG/PjHgMap5vRHW76pWOyVUYTSTkqhmixaUGKx+qlSvR42a9OlyWYVJJU2m1VYBFFwlGpQ1I2da2KZZICGSSH6GZSo9wqG2pASN6uj3oK5MIBTMI06bpDWsX5SR20RoQHEUShdTF9ATVwKP4L5i2gjSeKuoS554o8HtCNh0fUEvlJl0IrEbUzhAXtNt4ootllDRGZxkPeAloVP6LfAGSDhM1b34qnwGRXe6CR87oURWC4481A2lT2BWGRPqkVGJns2fRlkT+h8K3zCIDvhEwovCJ+hqMpm0iKRuIgZqwR9iXKhuqXwmfyaJCa9mzg9EU67BiwPjUci4eE59NABqbuU9jXZ4mIq6RuVSxEFJaKpOrhNk4Ameh8tB36kSm5jG5HuQEi9GywqK1SJT6u9dZJEZXbwgiyCtKRvVHZk8tRbCJKGUj3J/we0fKN0t7n3W+WN15TBGyuulONE0VufuJyWd03htdEcrylhC4va1hTaYNz7KGw17EMJbiOp6o8ZSWxxrqhJ6nozp4TNIeQ/QxLU+a6eza4DgXmgiM2ivKzs4OTVaFKdQS8v5KE9cgd7jyMpfrng6RQ+KPBN8WOJpIkGtMS9FJhk5TcWlSrR8GA3NTYiGsUvuMjpotMoKmRQxzpNHmV20Mc6i5Z9+EbllcTuGjK7hE2h6DA3lzixmZV2zInWJALaMUsHtdGO2Ugyz6gdsw5tEA0DZQ11mrRjUDrTjgGNqcGsh52yKJ5ox4DYa8ds2Oyg07KxqFLnyjEb0UrTaMccemQ1FaXJlgvl2GQhuLY/4vEa/UaA2DsQGYk2CnIgMnoLduVAZNymJPcgSi5nmnsQQeHMgwhoUw8iIPYeRHvDhjsQGVPsOFMHIiNxd5IDEUxD70AEpZcciKjLw0PfjGZ0IDIejaDgQGRswcLu5QKjyYw1igXJcuEHsUB7NC7n9OlouxBq6UEE1M6DKBmrPBcLjC5uRVOpwBThrJMJTPEu7B2ITOFdZg5EQJqYlXOmj8uUC+uwZLi0gfd9cAgg0ujnKSFy5AJp4hAAxM4hQAtcfXQIUB5foMEjIN3ihnkEqHpEe48A1Rxc7hEAtMkQyKRwgcSXgSwLa8ro4KrMxME1qf25g2uyIq0cXLVCvQa6labFc9xtHQovua2/+pW92hP+LHvCly8vX4sxIQlPttgSRPaJfbwt4SCCPzh7HUmBJIy7xQAh4k0GiCaS6Rh0v0ZPtmNpIzEpdzxmgkBE4Zoe4ptDrizEECUUAT+K3xSCC4qWYEo+DIUbK4vflW/XUNofDL8BeDh8o7IYJohTjBQo1bCKmgdKAR6NG1TKvrpalTum3q0+kMW4qClrb9EfOpcOShKyYQiNShKsyYOGCQohvQurSKMTjzSodQj5UQd1svSodbABH1rjx7FRSCyInt6g3j2lIlE4gR4DDAK/oiqxPHQGFyKA6gzjs8QGOX/NoMfbhwDaQNNuDBEBS1jURzfYkoqxJvft9AgWsjSGKpf0M4dWEUPBeaD7LqIn9BMZSm6v8MT21y9KSBts4GwoKpPmcbiTSavEgoYbcGeB1jux/Q67g7tXDlEiwWwN/q1olGYErgfLCKW6ZlBf6FkQyoEDFVdaMXiBMxYETCQTWe2xFxSVkUv7oddUmpK+Ubk00MMNGmuvUFMq/dbnTwZaugCGFtCLheycXkJa1IrsXLtq8Y4ZtDNVw01g0BARSNIMzC2UVkhEz5x4HeSyVYE76porFMO0B1TbmiIZBgit6orA66LZXVN8VeEOlS0JtKl4PJ/ZHCi1Oaa3lch+OVJxiM2gZ63HWDF4MdLl1af6DpvHLBBDHs3sylplF4WBVhD2UlvV1E3d9HNURVlM8GLHmC5NG0pSS354/qwtxvr582cFAho0z58pbqL1EIGuHEp1TYs1SP6USjkoisRDtzuMMjMbxpnaMYgOolUNRpk52QjajfLRKNabRvloMGTLWSZQK0bqZsNSHlSwHFhFdiuPt3uaVxIG+PW+r4WjFx/ud0t6h3RloRrMWqyoz3A42wRcU2MBSGTCJwGx55MMRTY2GyWphdxyoySvXzdsFG2JYSA+aZdEtVrwSUCb8knaogco8Ul7yyj9E5+09xb92kY+KYWWDmySUVQRsklQOGeTgNqzSXvtaBYkNkmTznfCJqWh2YFN0gZlP+KSauH0va+0jkfSDrUBxCSl+bErJslIZLVMuyus5UySMejAyJkkIM2YpGbeiElKbvmWM0mpn2rFJOly3HsmSTuMXScmSVP432TSXJOpApgk7WnrEpNkGvZ7ZJLSwZEDkwSHrGeSoPQSk6TlFlZHV7dbGL2h6T5tTm7y0DXLk6s0LnZzcpPhwQ8nNxlGFge3kqbnVikKMcZzq4r/ETu3e19BiT05tyqQMEEHN/k1a35woXB+cIHaH1xVNbD9wVXNSo0HN41NDwdXCXKoopMLpdNdqOhxobO71+4sP7vKoVfReHZVQF8qOrsqou2Izq6W6ErFzy6QZmc3TZ3hZ1d5lOfo7CqHblTj2U2Gt8DPrtK4f+nsQuF81jT6UNHZTUrXMJzdFAK8PLpabOPJ1Y2wQCcXSi+dXFSkusHRsFGkuqLP6xSpRXPBFKm2ugUOitQEpjxRpPJiPzUEkhpVLJSovJ5GiTqQTKPZtBeUqHWATInqULXZaBhx8pZKVEB0nitRM5UrUck/plWiaiYXoRJVbWquRNWbXipRNfpaNUrU2pt+iDiA+yhRv75//vLl3XMJ0JUuS4hVkZr4zccrUoWwtyhSozvkyi3/iHBg+EQcyyEfzG2oVUq721CrKC+sOAZumAI3KQ8jP0hIro8t4J6E/RJWxGRYyNSUXLEcOVBYnvHBJ3snyZIWMqh53ySmiCVvWlaZpFhaj6xA6F1QkVqtuqPa1oDiKxsqoPN7w8iMuYJMzDtfy7lC2Si6tst3KnshycYNu2RL1k15MdBwMRbJkJ4lkIMYypIJUAU0aqomCSzSrDIjmJdHtwq5P6ygQ7aUOyU5knqcWgMZXkr2qMkli3+UM89JN0BuYVKZpHR2qFqUoGQQJUslKJtBs1uKl9MBX5WdZrAupyHHqSjZQvJcbKb3JEPitNNhFxU1poATjeufdahG1pL2hAKfjVI8OOYp1EVoSTuMpK0g9aDrTZjHvF+VWjRPoKrcSyN0yxcw/totSpbHU56FpEFAN2cFjod4lgtHFNHJVDQRqEbPQeBNggLCSJE+0lla02aT5ERgg1LaO5afOL39gTCJ7Io61ppfNXudmOKomc+1Sxh/bkW1KTMQJHMXPcclbbWzw86Z0xQm6CK+iKbvMhUHM6a427e/0IsRN8RJ/Ynd0uobqBcrXnctZ7DT9IgMyXyBXl4RSmYlQrmVwZ8NkiVKsYs8kRRNjlcZm4zI+GHa40nuJGWTx5zIydpNJrPYZ7JAahH5Bv/5XTZxGt8RbbH76Z4K9JD4OOl+JQzxAxH8YPDL6t7v0MqRNF0QRYKE+piE0Z/eYWZQXbNzqrapmjIZcz6J5KBIulotx2FruJEyNHuVz9JsBcTviHBTYvH8ekNyfisURKfEpAMFzEOavWLx1lUoWQxT0C4SjSe/c03kEr7nu1DveCCYrRaMSXdTxIF2aCSM6PMhSiIP8NQ3zY71jiLFuYYg7ZUAum/4rgZPRBTuPSw3FnePcxvRgfkzXfkJG9IK1IIbrZpgFoHis3DDdgw5qRG8GEJSgF05uOXJCBjTggTdHfnR/VK4OL9ZDPpEXyClq6nPKJaMBWFBS8iJcXUFN325SFzecimwbHH9arvZqySzsdxCsebsvUjKfe0D+G1NCnuFOFSK/V9T1ld8Yo3ZcvVZ+wiVQYE+I+fHpVh+HQylwjUkJOghvXpwejG+hI3v0TQAMlKrYqBL0GOASNK+xdZJjZLbSyUpBs4OWppgfOP2BQz1zuKTqhGgvPfb0pHOIvZp25Kgstp8YlGeRKIVUzVbjkmCJYtaiiFre0vzLcJ2hNxH8VzuI7VLd5iNLlo9bz9pWPsQlXqDoezDVkSRXkfiI1K0nQqHCqvb2Fq0WALNKjefZZ9kGrPYiSl8wNoVcb+b6vrMtqnbb3p8/WmbuhRy6Mdt6lQ5U6ttmgJPdBz3aeK8nR02qt0lqkbM5TvV5xQQ8y2587giLolxWwkBs1keViKNUrENe+dNmSeebS7sI7WfNqVjQ3OwnpNdmQIRjBr3ZZJgohp3JjZ1cWvKBLgjVwKQMUV7srgm91dc+iU1gfS69S2qaw50fo3uj5k3cXKPalMFrsUOlVrXtPZsi0otd9HHD3tUJuBNDIgfNqlUyXl8Ke+onSOxS1lsb1I7ubpYJ3M+LoxB+XLcqlLURGXiVOY4WILZVm07MOxVmtL5ZpV651SFHXdrWiQL1t3uIu2Wd9iv57TVPz5/+PFTyZ6TuMo09z8jCtwf4PMbDiRMuClbgrsNOwT3YDCHXHelRL9kdSxfgr7y4Q+X5uRgroQs49UTOg3412YW8O8IOMNZDPh35lLAv0PLIJi1I1l424B/gkyeBfz7EqLC0CkEYrpFtLRj6bxLSJY0DtW0wKERqFs0UwOrh7M5j/53k+h/RU4l4LwFpcvof0UumaC5h+q7eLm212PAXEY2iDxiLk2AQ11KdBT579ZzWamShqGa+hlGAvUpLBKnBYdw/uOuDBInstmVPpCfD+1KKJ13G6jdrgwEA0+7Ejo03ZRR5LjQfk9GDVZk2pG1bLGserPDboSq+83Y9Ga5F2kKx62YsmsEvhX3cVszbEUonfcZqP1WhOq7rdj0edyJIeKppo0YBcGO0kaE0sUkiq01vRgEZLADVkfTodU29AbizyfBikCUFU6m7EK1ecVbcrENoXODvzHoNGktHIVhQpypptLW96Xh7C1qTv0Qd20JrUFivLlpDH0Suwp5RUppP2SFJw++UTQR1VHSYviAjBwfls+vQNCGEYs2Bf/bAYs2xf1TCDcciHZm4ibcfGZSrJljokbw10hiXtmiOMte/Thc8V0rPgkWU8NozfPhCHTfGwILU7wFz4eTwi0UXDEWrImO/GEwXrg1TYLuN7mxR1xA5+mSMdgd3WABmUXkcZgnZEHKmHSlOpVdJM3ysVRin4/FFnCCLh+LwitrTMkiSnBJG7G6S2FmCFithbN41UqaRdyugbuJNGCEQnVLwghfrSNGBBF8NUSV80BpZS8ESo/oScYje+cxDYrB6YgDKIqJaDD1iA9hZeNJD52xGvO6jJ2xFB1DnbFxw+vUGMQ0UAxJu9EPqPl5TjAO7hqp4MsN8A+OIv4Dwp6bIabXdnyNGrzVTeThBgbTdUiB2GK1ULfdGVXgJizzsQjE1mrzsdQsX30+FtPd9qweT+h0+Cbv8r50HE4BCmdwCkCbwikAkSVk8ehB2iRkMe0bapcurU1CFkG4ZE1CFtHhkvkFCLBco/bCcEY8hcYhVlEAOYg4bUYWXRikBcpi3OKIsdg51kNCFiidwykAtU/IIoZsLAZj1ibZWNxmB952H6iyHExBRQSY4WAKCjWSM4BkeYVyYRHW6FVbRKVNd0MoNGktCYBrhlbpFe6+JAzsQgXvxtC4UoMirZZWD2g12EtAgpAaIeVlATcvdaL3Dgl0aoG2Ekiprywb4xWCFCyKi1JMiwG7SwqKmxEYgSMleh9HZF2hUFfQfj6P4PRekDx/q2cW3YAgcq/2RtMI+NjF/I4XM4CCgME422i/QrkG5WKzWYQUd2DRrYUlNiwMCWjh7MQNFa0UfyAw9XCSVSj9LAeqS74QGoUa8I+XlKRQFozE3zSVln2m+UxTasAUo2SHPpWJg41GmOGz2cTiOykg33398dc3f3/5WjGMVX4F/kgdZFikfbmbDtL523SQaBQ+ltrbR/J+tYe8X9FGFLU85v0KH0pzTA8pq7Q3hRtEao83mEFp7QA4mHylrF8iDkolSe9HkIOy4oQxzEHYh1PQQSQS6iBYHzLq6uff64/bsyPXKKDfp3CEGavXD3iEUtYUrD0gIRbPEAmROAIPJoxdEa+R+PvdVHiBxMEHm31wgTRUSOtwgcQBCJsKL5CW4ITJoav6LQ1iZvLpCprJmckrCEJjZQldK/pQQbjEagD3DRuZkMLoLgQJRkF0rQpcxYVi7G0jFc/cB5HlkhOEaWVpr0lqTKshzVByz/JumWcoe+zpQbkTSfUuS+h21vh5Uu6MyWIiGQQiRkDl+iNPNZTmoMk7qMYBGs+zDckSOQ6KXDhJtbDtEu0dCXmnpGXcVF7r0NP6WbGEhIdsoFAUUhdRIkpT3CCc2JlKXo9vvWicNGIJR9fN2he/TN+bOWcbY1Q3uwX2WQL0MNdIgsGJunCpODlW9jy6hlioAQXXbX6OEwZa4Vxd7C726Nv0rYa1ZBZge03/DINcmEzPMIMS5mKA+CbSBOE7CEzt1gBU+oBg0I3g6T0k25rInZ5S/DaCp4ubHtC9a+FcB+8Q74Cwvb1E8ZUET+rNKHfu/XeBy50+YjQx4Xonz3w7h/UG0gTVe68qeg7q7QPCDpP23tfY46n23qPRhpT3XlLAIyF6Q+nCEkVwFw2it9dkkiFEb+8Jg2AE9E6RPXLA8w4dpqdG2w46Zq3AvK1GE4jd+tg7pEwS7wV9hZIkEQ7IYUkIDniVW9dCQYNPsY2Yn7eU9jtQbo1Z06FXF0YBU4gzlJZliYbBsdj5CJ1b8RtEGTOcY3UXSDIO0bAJ5VdSej+DKK1jql8APJkf8H2C1Yjfv6+jGnJq1EJNyz6o/v22VEFWWmcZMw4tHnS2UgLx1dEyEkOb6Ww1mesawxiUzgxjQJsZxoDWGcaMJEB+MowlPXpcGsZMRcvvDWN1Gnq7WC28ZBYzZmUTM5JSDzaYBgLzKjY2sXZSuE2MJmWQ7bUD3fIFkphXtigebWIGA7zJJGZkk2GEEC30hVzyYcwlD4oMsohB4dwiBtTeImYCIvg3FjGju9yZZqE7rj7cEzkWiL0Yu5cGPUixWrY3nBrz5jWpDUGG1QRQ0IiwWmPk/yDBAm0Gmw+19bD5e6nUA2y+ll2GOTsoxoUdxNSUwc4OUiqUzoRUoI2CaNKo+yuUAQ0Wa1tTuBBKy7umDJpsnOM1hQugVNuaspZMA6YzH3WJgW4qyFchI94flIAjBQ3IVQKORoVCCThaExMCf0hkziaZKCUCQ+q2FhlYAo6mL0MCDkl5MzEBBwyyS8ABhRcScMjQ2m97X91lrtj9T81lwoXKXg0Y/6MNGP5fzIDhLxgwVJxaMKYGDHvRgGGmBgw/NWCoiwYMMzVg4FyDo9gFiOtHGDD++vb56/Nf37x8/Pry+dWY8WrM+Jc1ZvTteD8wg7Kkt+HcIFot9KvZ4tVs8U9ltlCvZos/0mxhXs0Wr2aLV7PFn2S2CBfMFo03amO38GS38GS38BftFhSZDxigXqOkwewW5qLdYma2EHFqtzD/W+0W5n+q3cJctFvImd1CxpnhQsZXy8Wr5eLVcvG/zXJxZ9c7MGm8WjReLRqvFo1Xi8arReM1JON/WUjGm5+fSzTGzrQnUOE/0n6hdbgFuzwcwi4X8hbLB4K0/kGWD4GWj9WH8+FpqW8DMccPpx/958UVsEcsJRZTGEx4TiD2PKf1JRtGz3PasK2NJCkBlxxYTlvCLHuOs270KccJtJl9xFLMJllHbMRUj41xxAbM0DhhLHdZVw985S7UjnaRWjjjKitpZB0tJk1eUwbdB1S2JHDGkVZ1TRn0Dzi5awpnHKm2NWXJUmoPCb7nici1GWKodSghqX1KetlqtdyQg2jA1zGuTYwO4qJr86KzjPQOtLqzjPSOsvk0Gekph2aTkl6i4n0ModYBHZCblPSeUvA0Kek9Zk1fp6R3S010M5xJSnqLvC+mpEf/1DYjvShK30VGetcpGyzm7/JyCKGG0kVGeoNJpJqM9K7AGPRAC7KY3uZAC5SHtAFasEUG6FPSuyIMzVLSu5U8lgB3/RXKhXVYp6SXW1SLlPRIGjOzx2VybyJlnPkxlxEp34THWHOQngJF8VtMfxeGfA67fAzqwoBpCfeuWFK/wXUPpbrpUCPs2IWmSdbDcpEk5pUtikM15XSgBsCqekpBZdCsRwnpHT4oY0J6gdcDJaSXiKsUEOADCi8lpN9ZVQ8HV8YedH9DkMswssoGj3RGuKkiGahKOvsrPr8THWKTG41UiILkuqo2E8i1e7bDBEg0cJAp7/FGUMQakcoHCQRh2FF2aPKmba5xYUK53LPMBXAe7aZH2URhsjCDnhzFHJp7Gz3vpB5S0dmyGST+vcq9cHjR1E1D2ZbGeVJ4fSaBBfglBAmSEbdN0pITv2TGGbPknGImcxYwP1ndQlWtcUcZ5tOHX54//v7Xn3/9MYsy0Wa1wM8Ar3IXUeZ+4oW8SbRA3yhxSEBQBjycvD+WKF4j6LU45BoVFWZeh+SH//Xr89viEqHw3paU+zDKzROMS8HDAU2vAk2vOqXpjZhgL9bjCg3U6k9VLsCEHjfJsuPYK4R0zvtc5wHSeF4gia3H0o0CHH7WlMGTQEBtQLnnlEjwvtLVLYD2QE07mq8voYYtsG+f1Z4pd03+e4WGbFUTdNAHzSNCHxjEwtNVEUgfWPTW03grR9v49vIhlAumPDTAxEJhyS4oVx/47GQHLSDbU+zEXZc8MKWA4BwNQlLFKvLQMUnTUc5JVmTevHCqML7N6R2yAeajWBgavlIBPRciYmSC92ConjGI3pz+JsM35z++Fb95byFAenLP1skga+RBzQ5l02Wiv7foRwb15/dRsREEGEE4NwIFGmLjVlNq0BhZF0DVMna4ILVu8/cSkyLmU9B9IBAn1CDkXhR4Gm2yP7AP4MG3W8C/h508zin9vc/6B9aAr5xo1yN0XNE0Akyr5oYRO77pFCLT1T06KOsrzGXZ5v11EBqHF4F+QnspgqeLKkQ2j5TBV8qcOH1BlLsRHwzqlGjwzxDHVmyUgsZyByMQ/ZiuIUhwPVpTfBWU2jmJmEA6BgSBJa8J3d8FQaFUHWCbpKx0eOEFNj6NLl4BkSeCacCFS8ZcOnoGjp45cfSCAQNUqCoG6pEpNp88ZEh6BYWqOgf0HoMAs93buIJDCNIVYXzqLWYNmZHg/jWcgl7DfE8bnN4ITi97mUJw0TgshxuPgCL8aTg1Q2qJWKz8k44TiTMpXm6YJWBFMfXuRYoDH681ZagtbOTwv6AM3abqLpBsxe8c+72mXJggJA0+bx6zauiarRsVomGreVp3ca/38bQBEg8n42m/M3YaIAgWMRH02pIcBV132xW86s+/w6+bD19K9RGhW6bfgDstREJ5jqTQpx3oI1Mig5eq2Pr8hvusAZrg1qejIzRRRnBis2Ah9/1d6AQmVy4OmNXnjRw0VT/FTjaItCCwO3pPIgcmFhvKKj1BAsjirA2NF7ShNlCJ6fssMXo+atu8GoE1DRtPVutL27ZtLKUBG5dkSNeKzyGiFCvUujpR/NiydZRvB4hNqTJ93Q6YyRaAVNuNjX4CzSdho/xFkr3iFh5xe+INt4XDr0d0qnS16HdkN5YSCCnD7WDiZq5Qht2NFp8ZxUGGMk6RuqPQjEpU82n0I7QKPRI141l2ksOUtZDJ0RYzfpXceqbBmnQN8A8MylWq3qX0QasKUx6Re6NEfRrrkkO/TYM2ECjM7K4ZrEyLWd/7Va3EF0h284EPUaOIAQ6z+5wAV2GG+1lvTS5DnPMQyd2Izbkx458LdOowPRelkY3SZ/goKyn3XvR811AOYDTxSmQd4QgM9iVdNkMjidJJjXBS44mTaiRIjiBOY6eTqUdx+duIzS/kdSMQ2drn16H+vVppBJoPLIpFqQG50DkYie4oGi94UwMjGq3GvedIl8iwiZ7FmLKtOj2LMZRahfP4hjhqjYEExoLtT9dXm/6+QnCX+8bj3zs83H1OSgtquDWF34PGo+P7kjLet3apoiMS0/gZC2xfJdA6OVgnd2ad7KY6/WY365psbprWialcu4X1g5YWdoK6oBoCJ+RRN5TaM0xMh55NpPp9OFoyJYChjBmD0mCnecW1DFA4PX/0gd0gJXBqgVQ9Y48UV5QY01zcRg8jxosbjHsG/1qyOdfo6t38tUb+BhQ3jerJou7Jnri5jdqqiQBUPagGhp2pTyUC3BvADPHsfCt06/XI4qf+eFxlzT9wqGCE5z5NEmkYwzCrpFWI/RrkkrlJPKAzhgwcsXzOUGldru5LFH4t7ZTQU7DjWjdexnD1aVMkvNldmfPG8bt1L4yLu1hbfJWJ1dK2YbUYbwYeEf0HvuxxVVvtPiCnbXqwdDVhlBeODYFg7ehJhMJyhtXqA3p0dWgeaT/0KOKjbmgIaHx6iEo9zSoae5h+V1vyQhJoe0jrRrmBlH2AQQz2Un4w1J2tP7SxY/WTaQ+DuUK5cOqQNJxZC17F/OHRXDm8b2TSQo6bnJTJKuAHEVMhMAuD9mg6QgsDlM2enebvycLQNPAgCwOMeWJh0I6bC2AuZ/aFfduM9oh098SFfWGnwRmlZ1Nr3N+DfQGuy9a+AGXTGaW/p5e/aWBgFVKPFGMtNHJDnBFJA458B9mN3pB5MAvF9XEOkUj8oVAC/a04BVSgvY6/eOK0FOx2CrVDaQFjl8iKormCuPq0lusdFPxKoWOW4oKsaqDjSjibyn5ZsPVzYfeBRktT84HBDC66BhzSBwYNQaRuUBbfQFOFMJwOA8yn4eKZai280WJVFoUnE/gHUXMjdRP7parykT5w7egozY0lKzXrUkBXo+YDcj9V1cuKPohl9eT/z96bJNuSG1mCe6kFXEHfjHOek1oAxdPpGWQWSY9yOqOSuy+DAXpUAQXs+fuNZzR38uUL9JldAIZG23NGzi2V5yXM33o2Gdp3nraFoU035+x6s1+rrQSufCSKi1ZHkvuXqej/mgm2bOPignBwQbivOONcolsijEtCfpwA3d0WfE2q1g2j+IP7hC59VY8iBRnDSAKX6yuutTejzY0ELznZ8XWIqVybKvmPRHE1TUjUP1HC3nXwEi2alnOw3MUEup7x6nYzznRN4gEr3Rvxe8w4HJ5BbR+LtOMIY4MaKfdtzts04aMj/BinsZ6CgU2tmw9C6/omtySkAq6KeEAtsyFGOtnXEU0g4We95LoLgBRpwP7DK5oGlMPugYjsQXp/VwOWMXemzlE1qYfsR0R9mqTV2rDsJlXmiY3SGVVRrFVP778jImuHMuLNegQZ4QQxZCbS03PED2RG08oyom1VlxCjjesIlIuyjVh4aYqao976uDgpJZlfGroHxA4ZZXNWpFOksPYCaFJ0zTRUhgrta/EpZFrK+Ws42+HQo2n/9j8QKLLr7aKRZ6jkX/UTY1bvtXb8CoHBs2SQYAmPNab4pB5w2F76F/omGWp5xgN0oNOo5QOcGRXx9+60+PHnrJSL19Oy2PVHrCMegF53PGKxUHmKkGy/eiiF63a1hHamuMOlWF9l6QKg1ivGaFAdqvJJDOXoU4AUytiSa2NwLBW8FBGzJUzOMCT2zrjuXfZUF7/Ekjw0SDNcYeQrMXPIBmBf4+8SAhnKWcwUknwIZcyCGbg1nFjCWIbIQ+m/dvfcpOWvK4wSOkI55uuHiYHUCqqaJgH7TBz5TL5Gu0g97o8UVbx+vPyrXg3wg2U1RKBBWRS7c+KoHcEz4bSCz+prfLaoTB/VPWIJVSy4TPY/4+wNw4K1rldWNk5PVHCb1GD3MvAVEMzdaNttFP5zLmFwSHXMq4vdCUdBtWvXy3LOf3VcZpnJssZl4gsXLalcMiF4DY0LUDCkd+BsKuvUpBfoemnRpBcyLhfrOGMeM87eLFAKywzM0NUOFsjdirwYstcLFKSyODIDbcrwhZuya7WZHYrhO7w+UfizlZStnyQlpcZ3JxepX/kbF7n8/e8DbNjc2+lP3bT9zhUu/ksK6OuX1c8jO69fG7+5fj5xlYv/HHLwF1bHGIJGtsV9Cjh4fLpet+xWNG6S9oJ4QJnagkCOAfqovdREqjI345yW8B6OXAz0jOuAmVRs5kxXGfxAGOUirzSbuyS8u1wUjAinwzWTh37HIZTUKvs9dxk1iEUDZbRSbsZ28aTI2swvy8CNpdYBumE1AjG5D22Er/oGJh6vCoxIbgNjynmqjZzHWJGuVj0jlqJ42gKNDc0ewf4Zy5XUzMT1cta+oNszPMnwPfvRquaqsJ/N8kpJrMPTiypgcOLIiGIE1Uq4h6Rj7+dQ2LDXL7N958SnJeb3rAp/7Zi2YRGIYRe8qVrGsKVx6/kj4UAWzrzekkB4iQwsDWAuqxCh2mwh+bXrJd3uYFx/6/m7Spxu7F2FvZzg+dnsbzMtcIYqjgzpJja4GbBS+x1euZ5f7PCaoTCJDV4jiunV/ibZdnvXzPzt2N21IpAgN7exKKzd7G3jkUAh97bhcmext6n1sLdJvOxt45kPXmxuI76b3tyVkcrF3r4mBRc5b21q3a1Mkk0b+3p5rmpjXxPlynFjG4/AudjYJiKJjzf2tZycO2xskm03dpvAoja2caC1ExvbDAD47cZuS8Gt+7oyQiFva2rczl2RuAC0qa93G6f3tLG8ljd7uu2loPd023lJ72lqftrTDYw2ASNhKekmYXfgkdugOIbHLfS5Suwhn7FBlvfkbuVbPOFuIGiUryci4qDGvpx9XZCjGWnNLiudhN3moJ5mhJwyI34xHn8myC9+jWPjwkVURxmUJhJ0NzUOwIH93KLDjVAgHMaSR0BUdKJwAXt9UXVOAuyBOEbLSMTan6Kluy2WUzQXBgzLAHSmVr9dCSTtNlpCiRYDqtEBUAIAl/X+vz4IR8xRCVUAbzfyBsZCwMYsbp27OPyXM8RIHV64J4mj/D79KfCV1g+ZPYpXNlPjESyuhFGRObicAfKUGDw5K5CnlFFHkYHxlIJwEhKKGjX2D2UnLxHJOtbO8guBvS2Jsg9SeglN1qKjlgGq1wuqjU1sZgvMbCCgpn4yeW4di6oeqqpGTX1bo3paAMJsuJYiQrWyFXtBTkxeq0swMd2olCIHoNSzKC4ZPfy+syQrQqKr3zWunuY0XaNj3gzQeMJrXW8SZ4OckpO7hKDPEy4lPqL4NQKerK+9+0WB6fGMBJ4HXJE5gO0EYJzaG4tlRvFxeb/5Wuqw/0jUi6RWoKXE55HI+/XYdQOQaDjS+qZTKNQx6QSngi1XPCCjACK/Do5kmxH4CFDys2hdP/y+syQPLXfGv+KVZZFyn9KyskJ3Nm9XVuC8SayskEWOIlCeeD6KQsK/vjbrihQej1wUja5ED9JF1ZXIyWroSiyAcMk9EOS5sX+asJYGpsOniQCjehDhW0/9Mn5VMyLnemPdRdcrPHbrLoxKP7nuAiPk8roLjJDLfVlxrwMB024UAGc4E1Y4SjLbkxlnNbWO42J1uWSx4cgooddPCgB1aKsAuPqK6/3vHYrpxqs9N+57Q1LLI3B4+awhie7wBB3nUF/MDfQprhdzsz6tCJ0RKLKzxy6TdGCmJiRp4NqELi26rHVpJ6JM0KXbyOlCjGBroNZDhyrCkhVcHAKujBUX0R/MzxFba3Wps6QqpgGJrWWAAS+xtQzUHomtpfUEAYvCaoKBPpIXbC2jsJ44n2zF1jIraJU54moZhRBlblt+QdWyK1sWULU0gp9A1eLMOOEQcgzbhQ46zfGBUkKHjHtG1Yp0IgtULT1DAlUrAr5MoGoVnMkSVatobGaBqlU4oC9QtXpyyYKqleZs1K8NOPztf/7lHz/97cefeswhdKKgDhDcbrnfgeDwwOb3zQgOR17+Z8MUEdBYh6jBkeDQfYDWe0Tx+jKUX2MLAiqf4ze89L5KbmF1JPmMbC5mP7E+ytgX9rQXLlgqiMaubqVmdimWFvvao+akh9/GNnBwzzJbC3os+VrWEzhE1O9YhckvCrYcl7G3X8NB4pixLXT+pIFjqCjbRGEHPXXPkQOYkC3sEKTmjlCqX+ZQLV9v1zvNN1OSEBB5MPC5JKqVmIaYy6p30s4eRHI0n9Qq+8TfjQnF4pod2fq1yOaJKcwkh1CKz0jGFsQ2VkCubpht2repXlHbtGEGQVpCKzF0tZ+Y5GY6w83SUGlzhgjbOn/DNGjIbgaF5TSvSGa0KEOzriAfqi0RRBlGJrmnZsXSSblh9BRFCAsvLAp/FLzLBv0uyxH7yhmEzsJETN0Xu3QrKcqceywJCwv5ZBXfgf0dbaoS0PsXpzXJbuz+pKeR1EzUYrRf5pQrEAS4DNW4KEPQOg/9cDxD405w+eOipubDHJJ49hG0nyBwHQaSbt0S5KxJT2JWWNJt1JnR0H3lWcwrz6vmzUQMwLrFQyhkbVHalTw1lg9lTUtRUWcPzaWirrZF50JRJ7ap8L1vLhnD9JnikjGRD9BxJXjRPFB+F6ZSubWX0RhPtJdPsrTwdolXPog23CUmvRB2wflreAmLDUc8H/sNZ8PLqf1Gn5QSiMaLOEjUGU92mH7+dbrtq9l8h1JfVl31pciPMB+QNVMF2uairxkKvLjnG2hiWBfN6OjDJV8rgTLpO75m3Bfiiqe4kLjeCS5yf7uXglQycbmXxGx1fLdT6/5qJ+l0s7fX5/VmJ3bP7cVemW9a3OuNajaqe51at/c6CTf3eilAhtTXeqn8BflWrwbxGHGpV2Zv2dzpNUkmB7rSa5a4/HSj06feXeibZbBGLAxhlNoV9oVF6/bOrh+7TxIbFdwyCQeBZEVAQJCrZQeftGedJzsVZWK8ZYrctiBWXQkHqPG2ERdswLAfXfEE/nOWtI2zf9tZ0r5ZVWSgkakjKUKSKSFZaEQ5IkCyUYhEqEXoQ9m8BI1D5YgB80ZuD4+UaZF3NnQVaImKzzZxSQdpd/4OGhFrcW9d4kxKHUyOtHl3w8zcL+ltnkiX57ALAKHTCuH1kcTmkSA9hV2MYNWKCCIhaF7vE/HuVn4xZV8IapK8AAQPmKS4fVFhTpeFE2TzJVYYrUgQLWGh12XJuo5jJ2B6lJQlfMFvO0vWtR89GbZniXqbIRCls0T1Gm87S4KKx5KsZ5V7uOjT5M6LGXlYiz8vjiwz9ufFCm+vwS3aAP4y0fHN3GckYk8cJe4WquApX1XBc3WRPoDKEYkJXB0OHH70LR3wKjw3el5jD0G9VccWQb1VuRRBvbNoo2CLoB7r1yKoJ+hrOaqnlToR1hP8tRzXE7q1DOytqrUI7K2jEIG9s2hds/y+s0Rr1SKwx1q1COyxUi0ie1qnbjy5cdWpp5gTqdQy5nTSqEXMSV9aMuYkjHgRcyqgHpQxp439mcV6ABMKx5x47CJCocfOMSceuog5VWYGEjEn3RsZc+KyBhFz4ltdxpwwQcc51Ea8iDmxDS9iTtYKIk5nj12WMafMpf5WktUmHeTZUHvLqBNze8uw03j/Enba9InDThaEpxNLDjk6RI8wRQ+ULvMZLCldqnuidMlxR+kCX+hE6bKaOBOlC9lKRgVEBKVLPVG67Dhd0obUJT2xuqQNrUv2O1qXfKJ1CeGB1iU6FYAKHZFp6mYYeEm7AFQAgtNE65J2vC71gdeFgJtnXpe65XWpj7wuVU9a3ZG6pO8Rf/rDH3/49Yc//PjT33796Zd3LOodi3rHot6xqHcs6h2L+g8Ui0qPsai8jUXFfSwqPsei4j4WZbexKPcYiyrbWFTex6LcOxb1jkW9Y1HvWNQ7FvWORf2njkWFx1iU3cWiTN0Fo0z9jxGNoi6/w1HvcNQ7HPUOR73DUe9w1Dsc9Q5HvcNR73DUf51w1C8//39/vKNPpdMj9eBTc3B//+BTNAdUs8encv5EyOpljP102Mp+PmQ1HvlUqCoWhJziZ0JVlmaiVv+ZUJUFT635HLpbM62HTaPLFEloCXuB0AS0czYPmKitb/ayVv3qmS2WybnY6B6N/VRXXM8BnCohKUwbwsu3BnWMucKw75Ctd08zwIGK0g7b2FBnQWyLNA1draOLnFp7X80JhyfAd5rDYThloKfPEC+4PIDvwo42ExkMgo17E7Vxn3BzmMiJphYTH0WmKd/xaiEYuAkqr4NxK3QlyaJH5O9P2tvA5SIJSlsxgiSNbsQ2Owxb5daJ87wlBZk1IRzumx++AETKneFfh4eTAb7IKrqsPkJsDivN5oDnaKNKC/8mEWurZ5ywA+ZfCkWa+LPIU3wiLX6BS0tnL5VdjeRIHqdFBApv9VBm2uHFAeGImlf7JhJ9Q/XQABvcSNS32FAqOVgM62ag2Ni8GVwGyEPDISR0gcxqalBvcuwGr+Aa9IxSyZuBOrTdDB5hTd4LgkpuvNpz4743JLU8AoeXz6eF6A5P0HEONzavBdCNsHl5+w7KhPunDNx3mz57DorYjmZ2v8mCVIrvFdFnfa9cdmtQIT9fGUZovNxz66FDM3d3ADGbjruJDp1iKM4CfbShSc8UHYE37GxLDGzER9G6J/h9Z0nV1pETzNseXCoEpJdut8e9DxImLb1mqpYhuZ1My2VxvYoZGch/Sf2ZoinUOKAs7EfWl60n66ukJ+sr1Z31ZdLO+jLpwfoyabW+TFbWlz9ZXxvja2N7PZleG8sr5Z3lZU+Wly8PllfQSBS+079PnfSDMHlneXnQxU+W187w8g+Gl087w8tvDS//aHht5qzcqqq2vb6h6fWPv//6819/+uUPf//pl3/7848//eGvP/zth3/56a8//e3X2yALV3eac+dP923S3P3f3yJzJn1n2+pDEO2jtUTQ1H1d/VbbJVjku1hyd4qL0fKNbzOQa4O1nN5UAIYWrOfAbiEFQ7zMM3b6eMr17+gY6YecSvR5x8uin/QvEnbGphWti95oR+h1/I5HdqCzwK8NhFHsqXl+l6ky4OZBCl4Q2W47ZLyLWjssy8zbB+HNOjAzVZuBvPkoigt+kHjhg8gNGFieOnzwB5F6IU/4g6gMaofNCx9EvO7WoIahnJB2gs+PQ+TsQKdlkSECtidZp6FavrXBAh14prcuVBE2zJ0k8daFBgWKH62LLhTgPM0gVvTVMa8T5SJQo9eaDok2A/HV9DvtWbZ+K37jWVKGFiRH44E5nVhFjAJznEzgNi2EThoHm4WcYAvXQARfF33LTp9jaSshzaZ9/L2efZm9I6Vn8wly3n2CnODAHqGrO7oUxTeYEzF8CUITDUp7DkgW4VwRXzwwjMWSoe7KJaOGlAQipMYyjAiZOqgy968VHGyRzIcy8jQ9NS/zE+FIoKfuCfKINdkCOGg09wCcfhmjVxemWckj09aR6jZmgcyaqI2RCFWKlb2SAb3Ztfj+ntEqe8QfLZOB3k6nWZYjsNqDuqTaAvFWAeh5AcZBbvQ2wYlzEFZPevssnoE9wM5dAttWBVkW+PBCj+LRbBbFunDScC9tjhEW6bMi5m76Pss2hyWk82HZotpZrfzY6WgPh2XsNAjzRg0VtJHisKTW3WlJst1QQhYurKNMHYr8ygfR5sCMBqkJfGBGJ5g+6bNHhqnW52WbYwplRsHXXmDkJwCt+8hTU5Ua09ZAzNQjMi98ciAZE31KEeHVTZ9SAfCw6FOWHsjq6NQQLgy3BP4g7N9k3qNJxvSPMutUchqkPRZNc58SEhppTabAPuz1HZbcSiADZ4dvvfWW/grh8EVX1o3pM6UBbpZ+I9FWS98zi4q4o7yTS3+5pIIV+R/qkmo1DE5dUr4i909sVeru0yUVPNEA7y6pYFErIi4p4VKSl5QvgLrdXVIeqPPyjvIGF568o6j5cEeReL6j2i+k9Y7ynRJrf0e1nJaw3lFBkhDijqLW7R0VvLqHIPMOXGybO8p7BhoXd5QPMkUV11RzwbnzNRUM5XHLW+r6iFlfUvThd5fUblGsC8cNl1L7m+lhFtiirFDvfFfBeqYExYF980o5vaRaqmc6LykbkWsh19T1fUTutKEvSM3jC649I3G/BOlD2Nh1iGlNNZTXfFpTPT1pWVPNCQh/OK5AF1DNRmSy0zTuLULvMkUfHkSW6C5l1zKAnV3gxeaYHna4X2iUFHTqzct8JWRJ0VNjwkLAy0zgySfcerea0xB2jvmsvzKZco7TIfy1XQL1OiBRtvXaU6ZsUJmy7UNQtSE9NaYgcDyRwI7R3Pfb4QhtXjNUI+zWqGDXcqL3jp0ORqws1FhV7XxtrurAOzzp3tvMrnnZ+/Ca07Yh7KQ568FP0n71UqedE3mBBqvYdHJRP1qX8Wfwy4xnnJiVzoucafSjdezQfR5cLVQS0/5mzZki6ZhuOhKMAQFqmzha4mYYd56al7hMlLnHhpa4yaT9tdnGu3rrmOxZnx2yPtfrChnCPtXocBRlqTj/DaPJF338GyModZHxQzNCFNQjX2wqr4l7oxzd7rTs+xEVraSYxGWFTCrrTUBp6CgL7INyuKF7s/qijmMXEcOaCmQo7oBmf1geskSGVkf7CR+U7mwcEiU3urMJUE6F7txGDtrNJFYGMmeTmsaDVWKR/vIgevgwEOkd5JFrsTrjhExZV64a8Oc+yDYGJqSTgelKxXpgrdUVrrbUWrYrQZLAFnoTO2nYwkTrxsKEbDcW9kU9ydavIl75INIWpithMS9didD+eD22iSlHW85VWN68HPE1pwMbrU8OOdcKOOrxmCXpfMy6VqaS1DHrUsUNsTlmXebUW3HMuuy5VpXPWTTvDloItyctpNNR236+hPWobX1Op5O2jZOJInDS0qTMJy21Pp20ot9qR8sx6bPWZce+Pz5r3WWRk2NBnLUuFeQJ787ay5AWdVQ4a5Nj/UKctdR8OGtJPJ+1108kvbZTIa/tZmlnC51NrO1r4CUtR+09V2V71EK02Z4ZJMEPoqcPcz5rA9iV7J0YLp/3leJBboR/dyL1sz710+FZRrE0iC4zcNQWaVHqR24Pdc8XQiiwKNaMA9c4Xg6PNWfY/sfI5fUo0gdvTLIE8yhrL5hEnthRrVkn6+r+8Zy/puTkgdx9U/XdWxKGO7iKnC2ww8QldhlUya2+otZKXLTKV+Sa5XZyFTVhjquryJEBPl+61N0HV5FzPCXaVeTcQGaZXEWOkl9mu95d/69nu76N2Xll17sW9bXKV4Tmva8I4slXdP9EXez6Ngs1Huz6NsCUF7veuSzU9ILZzJKvdPYVQbjxFd0fu5x8RU2aoyYEsgUWt/AVuZHpdvAVtS9TvHIWtVF6r7xF+PYbb9F2XagUsBFfEXcYDxqyvgqXQbP/va0rVCRVJtwV95thHWl3v5lBWDXfb7ZWLlQr3Ub3onkyRzmxhsQSQeT+BeWGl93a3G+mIsdB3G8twQhvIm4fZzkSmEZoQE5kdKcstJaqDZgl73gaI1QfUDxx6kNR8AruMnwMW5lBjFskhVPmKDXvpxDinuXE5WZBgP+ixOnqlhUxOqdnkfYnPTWmMSUFpIBF56Wbcs21uxRlAiZSzjQIW07b/b++lAJy6ohTqUZ8spVVqSYEtolWqWFbUNlsf60XrX7flQzDH0s6iepTfg13xStGVvTd4hknxnm/iWwItMoOqekLPfi0UVSEbFW5WteL/Uj09MajNmYvw6r6w/OFKuC1KCfylake5UqJ5UpUAmklKGlgWaWgth6jpVxS/UbdfTXEbACY5Qa0B3cWMqXU2JRPCSos0qPHCx9ERZ149tLoPUKYmVZaRk5N5KqyHLtzut/Jy3iG7CYEXVNer7dFDshRER116z7xkPdIrYNutu4zbwsZ8Vqls5GzHVils037VCpda40nlc5eVpM9qXQ2ccq5QChLfMSxSofuPqh0NnmawI1K17qSlErXfi1rlc7GCrfNRqVrYw5apbPRIPQgVDo071U6iCeV7v6JVaVrs2BPKl0bYFlVOnsZqFmpdGjdqXQQblS6+2MfVbomrVqla6speaXStTl2Z5WurQ6jVbo2yqhVOnz7jUq3XRcK/rBgYFFx8UHa+wJQqcus0l6JBswXj0pbQ/NLG6XNR9R0CAJFH2SBRJ1Lbkl4T7Zd0cYu29lqyj4/Y+EF7nLi/Fh1I4cArZWecgIXcCEADAJwLCpCZYh7fjpQ4Rr+Ir3Mo9SkgTYWPsuc06NECMkKLMkAbbNCfUNrr3hYB0nSTttI29AnWGnd60vzFQi5I2+QJClRy/B1EDi/z/J9EDKTwa/15yRr29lYPYt0H3jwUjdUUFK3fPeejd5SBtfduoy7wPvnGenQj9yjuz6bPgY1HiZwSPulwQuOelQA49R6VB2lBGnoysRQAUIZbZuQ7BpR4EHNo0xifzU4R+qU1iNYppUFWwWEzVGm1AV+5YNoo0lcZqxJSpNwAdqvUCUuyzsdNIkh2ioSLsirHdX4ktAXioSbGH0PioRBvtlGkTCpf+hZkWjhQKsUCSOqwZQi0fweR+dQkxJqlNAk7CiFmjUJw+loR03CxjGBO0WiFXEGpUhYxwF8oUhcC7jEsyJxjdk6rUgY90pajxitBzXCICNJaBHt/WXVIgxzw2stwjLUL2sRNsHNJrQIat1qERZWhtYi2pfORy3CRHxMqUWYzL4coUVcEyxq05UWYQemzaJFtEIMp7WI8d13SsRmSaz14JVyXNb4HEvUKVImG/Ag2gQhSTjFIC+LKtt1wRev8+ZkLXpWeX65CnBEij9S4yb8SKLNGHLqu+JRtJ6R/L6zREcer6EYv8QeCwfD2H91TcgxOlMSQkbsvCoF3lVOay08Hzqr9RKSSs9JrdUCLo47U4NIOl970zA5lSutOerimtBKjbt8VpJtUlYbuqj9SLRJZiXhlMtaE1JRGZiT4nMrKicHwQpgU0NcE1mp8SmPNSWRRL6q25cRsQkBxsL5iIyxQ6177x5J+/lK8IYWFxl/UurQ9pNmAz8bf9LscVGNd3tu3HeHpLN+T2+fLRLRIZ6i4yxqJ2lycK6zj/QaOkF0W4PiOGrdd5qkA38nANxRQH1SmF10ehNlTxU+QhFkz4Zj7Ak4itR6mEiDKDqNw/H7J1ey6BImaQVddEgB10WLkQ10UbN4Gc2CkJ1KFpsHph4rFmMvC5rrFWOSSKf0Ra7WGg/ViiQTxYqEM5iaYvPLP8d/vgBn0P5fA1qCdev1lIwWhfmigjFOyW00HZyVp+oXSbapUcx0g54l6xXDbztL1vgwf/WzRL0Nc3+WrLWJ/Laz5Fy0mGACZQ00kRiaDmALIeB0E6fJZZGHo3vDl5c+bn1CeXZbZ4yfQXQMLdVjgUA0ibq6moc+cRpj4UzdwkByFRgdV18jZ0SuUAmBfar0jLvBVSJvIzeOo8BXWceyn9/kGZIu4nZoeIrjRbHnYHesisxYFStEkWfszWbxUKpqYPAMR1uCGm8FRGUGB2gOIk03L5ZAMK+TN7Ehj9TFDGiODaBIENhjREgszVohSW5MCK/mi/E1GR4FZAUUJWtrDbzZRhUdihigwRg5BJgB0XmeJ2SrNjsCdX09R7OjniQUkWO9NsNyXUucYkzuK9e3FTl94EahxrGU9nQsRfhZyxJtIZFK77Gn6A1LrpW4ugpJOADKkVoBF1rbHAGIioWtLatS0voJafmZDs0In2MGwpab+DfCHIQfsl2yaM8qeZLoPCK87kHUETmXXEZkolHSuEsSzxqB+tC12VOcfuvx3R5Ytkjky1KeQVPy8FTvQFN8eAJNYR4SBk0RXgsBmrIpVGHQFHZZGP7AcQVNcfYAmoIcdKCmCB8rEEk2LlbGTZEeVgGcYuMGOEUhzAzglLBDmHHwidawAU4h/CYJnBLiGTiFoKQYOCVxEqhETlknSyCnRLjeo1QZySKVyCllsMfskVOEg2hCTglOIafkxaP6ddAp//Onn/74P3748f/ptGkutsP3T4Cx+hYwKd+M/yy5L0E7KUCXr8F+ChuyACal1k+AQxIwZP4UMGTzZtkUGHFt8d013O/0G6RmdZHRS4+CmwRnjnPckFh5C3TVloite6g72y6r4dhoJVeL/7Fl8PGpv46hpezZ4wBFd5s3NJ+k/OzOKx4pC7XdMXPoQEib5bMeHI32JlZBuCadoLZEBf7WfKY5n8EiG3mJ38BFNlAMYXtSsRw1Dzy11d1O4o6RZxNzqvTf6DB5DOor+tbbFZuRjagasPDRmpa8BtgyVzK7r4PD+4qv69QGR3qnq17PbAio4Cre88QyoU7M3PUaC+OJrrFM0xyzjiFFs5gK5Jg3NjzLDDNeVLGpqeU/IMRtyyEBY1ghiwztnGTVV/Q7sqjCZk4ExHNbZALG2zvLExytuEn2EO43igR0VLPygUA88GVpbkrg7MQWQCOCpAaKwlUVUfm7ByGWFY+1BXzNShbJ/BS6QvsObBbCgTa7rBGIB94sHK/XKR30Irl6Xk06rpHSMMitWiKYHsKdZee0F3qx2XN7iBHcZ5A/DY+/nnS9msqJMMZkOGBd1EdLCzTU88lS3KsQv5I4WIp5ic8SSwTvjvgqes0YKDuXlUya8vUT1WR1rlzz7o6HSnMc+6rOlOZ2ZsgkS1qiXC2XLm5Oq2W9gmor3wofiR6/EAsVB1O8KU1P+wvivko97YjcnDZ6lebrd0o8rtLUTk2vVmmjqzFMemHg4qZ2L7eQIKfxBvG9VDUFjmFQU0PqdSur8lWfDFfPQy7nkyG3PE+vjwZMEHFHBHAm9fbHHdbglcsRb/bqaw161ad2Y2X2dNF9Ok1X48eMh+nSS6UVGH0sM/fdsH/nk6zlMi1elTaGAngqGzIDS3MQzJJLPDsQafXW+dO0AjqxCwOjXZPV0SuD7ldRK32XovClkxNEYeTxaXHEnMW5xRDe/Qt6tO+8otfFx9luapdBvNxi8VL1w2axtvy4nM+LtTnuBfYSFmtLb4xR32No391jEO7vMYiXe6zVFzmvToiW3flwQkxZijggMD/jGiO/HTU/7jHRf7245eA2t1hsyUZB32J35mpQt9jtH/fHWyw07HININ3KpnzV1xjaD/cY5PNF1hC9i1aQY6Ncrcer7BpRsEVdZQ2BibNbLNFfyAWjrjIxp2bBO0/VP7Y/fqDzJeabqYBa4Rq1l7owmnAFXsy1iQSHJiCu/aXQczi45gV6k8LcLJPQm9dQOM5nSa9uHma4nXsPvOi2l/1ejw4v4Byt1/5zw5k9BUvKAARcgncX1iF38Ob+PqfX5dlgyePGfEP7wciAfDbg2vQKYiTANGRWADfLs3GA26yW5x07Qvmwx86h5qlr+IQk7RGT2Sl8dc+7uAinOUpVIMICjGegXpDZJGZcYJO09gUR8loBRVhNEVEKx6+zlcNDiS2mbPIC168WikYVT/W0TWyhaK/YJA0wphS9SVoBu/WnTeIuWzzV4y5pVYE26l3S8HWY6AvbpPW61A+2yV0hmE/7xDVUw6r3SfvFojdKg7Nx53O8WcwIKfNGaV4c4HKLjYL2kzVO8sXTkXsW/rxPbqSks0XScIK89nK4a958VPsEzdt9Aulun9wIBuG4T+6IqtP75OYhrXqjXNNY7cNGcU0rSXqj3JGSzU65l0M5bZXtYlHZmdeBBMfDUs38yukDiXb4mcd2e7viJuch4NHOonCfpbvfP0taxWNdcox5qI9CGu03ctP//OM//n776PMNdvunHqKPvwuSuc9fwC1F+uH3CgcUUo8+wy3VvBk8rM+hpntwTPWEkt8aR3CjZKDBrdtPkUxlQbDzmwmmgIMdVYbqkPX7i+KnucfTR50LBdFSRglZb13JdwGZZBBISx54rq00xoMTmH2hM9XOEPUEojUxjVktLFgzUgQsu2UolcZzzDf9esqnivQ+y1gqLcfMwxPhOC3NI6VpLfAgab+FqMAjVeSzdrQYykurDDi8Zp2lAdZnCdiCku6AVGl7BbXn1vs+L1alARq2Q+g9I/TtQO435ghEfiu9bJsit9IBZsbtj8gQajWPDEzoFkZxxqWPx6nLoIhIFYHOhAKHhBKKpOB1EgMkJISAm8cFyKTIeQwY7WbSgmAgLQUrywujeZhuqTDYFyVLi1FZTjFirpK2ySyqpugzUmsP5e5rHEKkso3rwbIk7mSiRl64d8trqB1nCdOlSesauaoJ1OCBE37bViH71QJZsbfOtnBgJriCSYiceCzSPqNIIPVruhyyXdeBXFZtjh9InBmZL/p1D6LORbua9tYrNvDokXkjzshrYlw6npEhY82LMzJECTFCJxi1ev702rSlLvt5aQCNU3Fo8OHQEBQ90wxnNRRfn4bi/auokXgLOrqmfQOHEy/qiSwroxVliXC2bXu7xXllVYfuxtUSpHKUwMlqFjMbUD4SnCjunnPwSdS6oqhMwDjG2GOt7JFLDpjminPt6mrUM2KNYN3ySK2uYO2mxsOsCSSViOPTR84tzjg/fQVIZFYHKOXLWX6k28+G4SaJWZaQWduCqwf7uCC1KWirjzD+xZK5jTemFo7C5DsOnqR9ybCl7fK6ZKhD2yXjEnKteMm4ilNqvNtz4747JLU8BMdvnzeV6BBP0XEW9fqhzLNp/QhLt3J2WEYR+m4Kh7SvHwSbRbZbUR22RbkhYKIWDBpl3xG8xtR6mL4EzUcA5I13TztL9AUzo61ORgc72G9HiboWzFOz2ZuUh2YFVoYfPQnskp1DAzs006i+jW35Lz//8JdhW/aC698h/+sLCa9KiV9k9MXPcwqnivSvkj6VN0aunk/ZepGy1Ez8FCnX+GRdNYg6EOsZJ5dq8TPD2As/Xipgkt2FVxPTZInoaoAnVxY3efDXg6hdsIo64HStnseGDskG6vCCNToGRh+jMrTGLMFBvaQriBKH9JKHRSNcjoWj8IEzK61S8TPjRwWm9KWML8vQWSlz2WtUGncbW4D1SErFNR0WVQRUOTgaR/6oVbYj4GmpzChF6f10PEPMDOz0BLHnk9dFiCuGfOYqi7xkapPoRiONeuIAJCOMbodSALq7Ui+MGjHOoJZdgqM98nATrkACU6PGw6xFRoC1gFRIiQvmHOjqU8XytXcd3EryTKnjg6NupHigEjrgQ1KrJ4DZXZWfFfWea7q7SFLPlP8xYNbcSEMcpkh9FU4P30RmfRSpi4jL5gilJXGVW2YNsqysxHkTq7zMMF+fmnuNwRoJ9wK/hOLglW3nCqKAZLjktCqegCTcMhXFR0ng/og3jbqK8aY552PzIRTJnCigV0yC5iWyBIm0m0yJiWS3gbekE8luoxhyqu6rwqfD7O3UuEtEINmWvZ2EM3t7yOCZZ/b2q6s1n9jbg1up22kSZur2YCRPwJ66nTusubV5LJq6PRQmXbfIEYC1zvdbo1B5iOdW0NbJcG7mOljmbqfWPXc7SSfudl9RcMN01dfcunyiqw5c9i74qgtcZszd3qYn7rnbSbShEbcE3nGWPHyIIye4K2Bt0ZPcIEGD5gS3cm0nNp7E4ja6QMqGlROcXj9NMnVozwnuwZHHk+wjKraZFJwaD3zWUfqYEydNGKvjpdyhIys4z6JmBW/WUlpZwZ1nqCZmBafWwxx6xuFg+5JePx1Yos8bVnA7KVsYu9Wk4KzYhG1GhaYEtyCOZEpw0ZsTJfgdigc2yFp3E2WRc2QS5ho2afxcrbQ5NSay6rjWXRWnyKrdoe6KAtmBnWr3/zoGCs++Rg/yYJgaTwwdxALZipwECUuYaLcZj41wSIMCyLUR3oMAWJPuviXGas/9BKjVmuYfUbzqUY0rK6/qjrM6pSfOaqrWBwJ089g69MXzTa8i7g7uKXqmD0rU/3mAx/EmahkqMyDYK4MqZvbLAl/9QWJWFB6s2gcRL+hvY/z/44df/tiN//Lta7+eA8tDlftkXNmE78yrbT/vYrCf9y9k0pk/61/wFgVt5UtdDOUzLoaUAVOg1Z3EtJNC7W1GXVhvEQJl3d4i2Us1PiFhvMRV7aXGndpLsq3aS8JZ7b1+uLpV7W1B8XJSe1MRgO+k+dI8zJovtT5pvtxnpXCJ4WjNNzNBEB3L11iMV3dYfrzDEkNEz56dGJTmS617zVe4OFjzJQt+UsqyQaW5VsoaP7BblbJrsHQ7s+bbpiftNV8SLTZpP+OOrQ8f4KjxRtCnryBcLLnrKRdLmql0TyKlmeN9Z4mG1IgdPbB7jDys44DyHYrtJw+M4vRanXaAWs7a/LbYDIiXFgFXhnBpmeDKThY2ZZtuLWxbdxZ2ShsL29ejhS1oDtjCLhKinyy0wgERZWEX4LtsLOzCuELCwk6C+FNY2GcD2+JQnGxsW3c2tszi3dvYRTDlLqYdj2ZjY2ehMGMoJu5s7FSfbGw4tCYbO6adjR3Tk40d08bGpgCwtLEfDGwXlIGdAQgnDOwCwFtlYA/R1oyO7gPJw1c4G9gWkIbxtZB7kGT9RReIauss2WAsk3BU93g2EFlLTiBG4gyGqvR2b2Cz0jPduBO3OzN5yuu9hgVRpOyH2MiR6wcSNd38ugeRrSrx5xoO37xMUdEJM1dzP3cngD95RELZeURCUiEPavX86d9m79vsfZu9X2z2/uGPl4X046+39Vs6auafevio/juDPin2S8Le/JgZy/u32qbJImW5fCrX2SHX2YbPGKfGkn1veyr+bzVOy4CFvJMrygLx6ym/3077vvQQ3aPk/DZ3QDQvkYCrzEAvwrPEb3IUUCz8//3HD3/s1fKZC4woXakUAMCXbmnwnzOHLUfTSkFqbBnQXIQlOZAkvwxHsn+zUhgTsY+KXh77y+PXvLwSHHV5rZ8hJlDjTT/rG1zIPaob1u1L8TFLIQ6cu4b/mw0Mb/eW3h7UNxcg+6RvlY5K1W2pDj/GT8SbBrTrwXQxUOP92d10cOslqhaxgd5jRt46fi1XDhh0A3KUjhcmJS3zF6F19lWIpTkTf9ug3OQeZeiVXf+8O5RfjHnTEwp2D3AmHL2/Eyvk7zGCQpRLftgyu0l1DG/NCSZu4BXzNxf4yfyAw9FwKwvTAw757g46SCMMzqTJ9MRYfsDjF/xLoKMUmiOzrFu2E7quPUBlHHCYZ7WrOIYZ7yqK7KsHvDblpVyNDt+nTCvs5nX55Z/jP19+3Fgy48Jg4+Af8PQD/ut+IKAKzc0/kOgH0tf8gOERrFeJoaqfwKjUFZryDUK4rMiIapAc8QCTBfr17yk1lOHwqHG7CfkBTq8WP5CHk2nXI6YWFEMoI61yM+R+SdGeYmKuuO4pp/7eIhuKLjj59+wBpsycYkWHYv0eH9m9HF25NquNU1cOkcIJXZTaJhSdAcmVR3at3M7WrQHmwrF1okaczgt4Yyi3qnjkVteRRvSND9VrdBZXqXfqkGRXf6hqCfTWPcoMsRjrC9CCY0xegAb2Ux2GEo/UJRqqS18x1gZ+TjfgPNJUENQQCYEF94fafeIBvgKJQN3pE/AbqVW5k3b2K7Cu00pkfXyjtWTEcrgCswfXgZOI/bRC3bDm+YEAN4uHwyKP1Kb7CozLmRaRzBUQisqoqsvLXyekbPXnBgiOwQk4wwuRqH2yBQiokkfiLLkzTucYhcl7CRgrKQNUzogFM13kSBiYaXqUVdyzARdt+Ioj7PqNQGVey57N7NIJHJ3jZRCGGiHXTfXqAYvAlf4FK3w6kRkKCMk7ridbNogUiA9rkDdJRaKYcKSap2Fw7V6Vp9/GnaRH5/gY9qpYt4yPzQ84VPfUHtQZud6gXeudlQ+w9WA4hAibUe26xJee2HV+vvTkGjMR13bBrmNaK7Mu5OomKhm5Hxn1AenEEcAf9RXXn+YkvMpJupQmbc1w6srRBY7Y0C1G2b6OWncZvFnUfZQF1gvYA7OfoVUAPwvO7zr5H1J4odJ8djOkRF60s0R5IEg0uSBaNDfuXRCXiIGDyAWRZE7psiPSYI9aH4j+oHWljEVQkMWcMq66xVXQinfD7CqQryp8k+MWBFL99zD92wSVg+mfIock2fQXef3K9E9BKF2kE1PjxvTXq0MFsmu/hneaTyy4cYXm0/LK83fWfGLqVawb1YdITCfVRzCbKtVHPMCqT/uB/F1VnzgW+kb1IfbYSZOJFdEQpfrEkUg8PZAMDnml+iQuuWXV52rM6aD6JIdKHwYmoD2pVJ/GFGTXG5IaN6oPibSCExPlPZwlq4JzjaOkvaRzRwjVhz6qa36MX/45/vPFikwyRMm70ZXYKRG/7ifcXlVq5R5K84lVFMUuykQs8DKJBwqKVvQvZGSNsKoUM3RgpSrFjOQfXgjUuFGVSLRRlcSr8vTb+aAqtcwSu6pKsQC/QqlKkW0g1nxiBe6cUpUuGUGP8QPX9zF1ryulzsgzqUpil2r/ALTr8HULphLL6KxaJUcAEkq1ot09qVaJ/YmrapUswEJYtUoGUWStWiWDI0ioVrG+wgeaVahkLMDCR6YEMzGeRWUp/g2VDmKS8Ac2cDwWFAzGHtwf1+my5qyANEH9Ek9bHnXE/IADUEaCNkyN945apk08EMDLIX7BD/YuPtiaGtBPtlsh+NJl1IZNSqizappIS4avLzAzmx1M1eJbDIPoLFkrrttXT5NE/jzdfgY1ApFxc8zIpaMpCS2R65d/jv98+QXu6ax3y2aIAfPhAeRDjduPyg8kyTeXC/gj8/cYgSMtqq43eDQM426gSQY+DLHB1PbMyLEcxoPkckuH3RlR236SnN9mDvhzPr0CYnYhzrui0qaoXzGBfhiUrOliAj37SysTrHkko5WRz8EPAIYrgyrHeybyivbw55F5w7jeJwwgnak/4CEnVd0HmEl+XN3feoZSP67uTTLbKo2GnJXWwnl/FkqrXR+oGALdSY0DDCffvA0vUeBtmPH30HFnTEBfCKX7LFGL0JBf+CxRS9qXV/5AUl927YBs/2Za6/hIZaiUdSTgTlPOFrHmbmvXelBfVXhMIpgFSe2yJ9CT628q5T3U9Z1MIFfRhwpFLq3fnYkceJlEgLpk9ffZKQ6+gr2k9x4/EKHI+YLUq7iqBb4AcSF0LJ15BGG1/H1GpCJw2VtCCD+sdyDts/UBA6/nfAD2RMauXJavMUd8pHv59rtNdjJs/fR1P+DIXb3s74jEtXxnnxIAEnJ1l0utFWSiSNJlNUlFHVEJoR12RonPQN6rTaWmP+ihLFp9eS0dtnwg8UvOnR9KNEu471x53lHmBhJ1RUZAXQzUiqB2/ZoInHcdLG135A9Q5vnId4y0ve5kB4CG7nIdf58r/n7Oz3VUpRxGniFOynFOfs1CdCJIYb9xapO3lF8UxjbiSbAADAud5rRnSQv/VP0O2Q/esH/FpCVujV9IX/kTjs6Oavfr+mEDHVXQRon5fRU/Z7rPY6P4XSITVsXPVmHlL4qfrfCisuZHjbvrRzzAut9ICd/qfq1LcdX9HHNwfyfdzznCmlQHgeMSez4IWtp7OOh+rYo/r7qf66krW+XPBaQ+sPLnAnyWq47X4LHtVvtjyXouN9wy94FEr99A/KcPokX/c4HcYkoBTPSlvsadThO50QDbxAuOLc+fyp9UQOeV/kdL4Un/c44DfXXtAwedKsM6pL3+54JIe+WlEsJB/2vTrjiYqXG3AcUDrP+5gLQapf+1HsVV/6MlvdP/2ojrmp7lnFAYF/2vTXBa9T9ncdtTPtc31/8aLSLRsLv8HfQ/Z19uq/45pGex9ufsKxyUP2dfSvdrE1QOul+b0bzqfuITnHQ/S7HattBnb7h1SBDrQqq1sexUMWXx3gV4774m2tTQM6o8QbhTBhu8MCanwe7Ko/6QiRvJ7+KW2kcL7essyavri0Q9Ra2g+ITTAfx8GLT5hU9WUArjel1ujlaiicOjUMlOREm0CiDaCN76wh8pIt+6jMon+QCFAW4WXnqAvXc2ruzPpOjnpa4l22eBujOofusgonT5sEpgagc1+oSYRuDZSojoqukNQa9pLzwEYe8npMyvToc8abxTZIAgaF5MRbZEMy30oYqTwLySIKmXf23gaJ1r1OKa8WygPuCViKcu57XFjcN1Z458d2YNK3icLIYK3cgtaGYvLKL54w8TEvLM2tvcV7QdqBj/u6d30h+vqa0Mz3AbNf8b4Ht9eHPs0pObyX+Vm6kHknrgfE6QosQ3EojjD6ff10TAiG19lBx+Q6MwvUgB/NZvjqTy3ZC331Ln6+/visj9/rz4VboeZodoML8TgsQ4zPiexHnhUIzuEEKmcJTYKRSr6bELhyY3zJn9X6eX9+vL8yjf3vSFo28MvF9e6zasuEgyNmLdJzJFcesQ6KII9C7r9lssrErJoItikoW5iKQ3YS3OGT6D4eFBoGKSWSTQUMYbXDTltf4x+VopoI2Yb13PdcYUqSg54bIke2MVzHMe1DUgEEjo3lDJ2nS9qhsxk1WWh/KmBOm1MJ2RW+YoWKvRRxnDg2DTrbXD36ac9U8///WnDuKUb8fRoAdKvw89UPwieqD4XemBKgrdPkkPROEff8CZOpXMlo9GdoKLzv6DB//7Bw9uH/pvj7MfPwUxbbov5d7xCv0pA0SDAZs9J95YEOIA/MUuleEZbheIZi7hpNKg2WroP+u5l567uZ4WiFDaqpCGM8MqNrYMhx8iXXTsJ0KHEsD+SWENV0GOlID0TJkeA4+fMHcco+UnhfUcYPgi4TWt3D4N3ymduH0y2ziC2ycjczoDCHu0ya7gCw0ZYR7PGcSEIOIVcEFKjImbYIunwnnY+VUZcgsQCFnjSXuGz86o0coREZ0O3t3flHhS84oLtVkDax4se6TtwnHEoganHpckheHRexBZQ64Eia2TkDZN/p+QEGHE+hY8IwokKMZlD/oqfGaEy+4ZJFqNjGSb7vvuKnsWrdQ8/L6zJA+NcUJ4KkgipMUaHPxzTPYRAvBmNvwwWQRhwQ9TX6hHJdjswDNShpU10Stz7FdkeGXFPBIjUDfCDuk6x7UzyQC0KvU8Ks+N/fvYNZ818fdJK/iX+0hk7QigzWTUzPRbkA1deeWNA6ZxPGHxLedLY4fi1efAxe3SCnRFjV72ZvUMJ1K2NqQyFOxZSGU4HCJJZSoYwHaMKFUqvsJz7RWpDBO56U/r77jb/GU917cwpww1Hvh9goRQNMyvFDWlDHfnTCmTWJNdKWWchz9bQP5yfTVTylDjgcfFcT0Ap9LT2yWljCDCKxoUqsyUMt4yFA1TylDrkVOKbQ2iCKB3z5Qy3JcjpYynGgizAAVZ/9SsTkZ+0YOoIxwdeEcPEvU689Rstu/Yty7lM9zNo8B8QwPmH//jtl9i9/ANFNrfxX4p5YtgaHsw+DvaL19Gbzr0tM9B0brypVC08YMHD7aLA8CQyZ+C+wmle+f3AJFDOPwIgPSzdoUQD4O4xu8Q1hshmiqAbwj+HLph+re6sHwKNQdAllnhIDKsHrPXFcETwVqOEYi5Ws0xAseSOQIoftF04ggMwyjw67f2UdOpCrD79aREAfqWmBTPgY3ERDUtdcH+wLQ4O4KzUpdMH4nM9l371jpUqFm9hNfQMn08p/9Z8DEaxqfV5BkJuJEoFBA3aGZ6SLsickq9CTdo50IZSqrEEAys7Ao0vr3mZAgbQuFCQqLQHx1FlM6SHS6kA5CgxIX0r7rBhRw0FntcSFdedYMLaYQawbiQhgl+FC7kkG3QH32PozxJNPgjXvcg2uBCugqCWokLmWGLSVzI2KtUDriQIn1O4EKyWi1xIYVefcKFZJXjlfYazFGgAIqFanMWdXzGrWpzlKjXmafmpcP8/lO7mbeF6OtZ8krfTsX5X3/+5Ydbxwl9Z/8JpGm/g482hy/y0aZPQO3b4Vj5zlD7zUVAj7n0OVhDqDnVfwrVsH6pmlPIm2xC/d5u2utoYvroqBF4M/OWEuhSS+AtOFBMgbVa+czeYC8LEFGqS7tuXc9stLFAEfAMSm1XBcmDznJlqiXhbNRlJHwzdbKPoPTS3O8tCxn5YagjMYjB3ymddLsIBua4L1tAj51dqPDEYIpy4/rS04mH36IguZzIcAV3og/MnWhHafZsMnuG8KWbtzBxfIeIHCw5pMNs1gNJ7wl2bDU7UL4Dibu7jTuFclx8j9cgMvD0ItdHBBjfgiiZvtKqEIaRVDYH6sYp+Sh5+A4QbQC0wQ1rywKgjYvITSU+tsLFdhat3cTrjoKi5vO67AMofylDuOFwo94kVMaV9vRZlpTUTOkXReEmO4/CCMYJGx3qdcyMNs083rae+HftVNwpPGxDdiepUFKudWDWMsNN58E2aBTvM8GJGE7MQkpMGqucGv22ExGuIY+qbXrxnTCQiuqHJ3gVCZucgB6FrC9Ge/OgUKBG2Zt10tzrsHYhWdeLjaedwJLz244bAViglvI54TaGZJz+QI2jXPizIJJxiekrTKFaOMuAbPKWVUpmY08w8NQ4fwQJue4pnwswFo0QbkIdv07a4jdaYxkucgFGzlAwhfKpLLDEGp8b+TIZmL6oRRKFMxOLJCLfZTCW33YhuE8sFVJ9OwXzDz/85c//8rdbzbSdsuLWM/O9Lr+/njnIiz+pZyb/KUqn+DvpmdlgWD59Rs8sDtTRp/l4chPm9Kk8AGftnInxWxXGe4EUXIY5zpmoQnqbwfPxYtslXH6DtB1EClwf8s7ggdIW23AkUKMXKmH4mwHm4al5fp259lTm1OZK2awmIIvSGvB5oLkf/G7WSyHdDsy0Qij3G6TpFUw9vPdJdt3AbjM8l5EJZi2Gl6H4Xea6wfDqpSUy9bPZTH5KzLBkMPn0wbur1FEoDe1erpP1Oqnt5EfII86BSCG8+WWWLtXLOLDMUGzIvVgbYYGgmSHlp9QbX549YuuV09ifEvtPAADaMCIdk81Q5BXt5KtbrgjI+3KNAmk76g9QW/6IPc5/bTGsqqa/zUFm8BDi8MTMdfaZ+doV06rWVM2XkuQ/lLkGf7b2kMS9oKUM9a22zEgyWa4bhbzgtTnEyT/Z2+fZu+w2UgbxXEc2N4QT5RqjD33da72ZiveZXBbk2jQyTlqx1Dq7JQ1zvVOlGjIeG3g+FTK5hjvteCkRu/Ron+eiYX8UvC/QUYWp765PT0qC/F68DxTMevNGchxDrTcSD6oroPBmYK239JXKHyBZ9rjHNep7rbhKKF14bhlDsxxJ95djuDd/Pe3lxny1ThiJRx0Z1fxdE2kZOzBG7nt1iQmw9NqpUZDt8dIJtggSrDH7aJ838poI1uIiVLisVj+kt9ZpgR7ZrHjYH5HWT77sV4oq9+a5/1cbnUT0VMeK9iCMH7/hRbPf9gzijsxOFcL4jU6kYzY9683zMGk8lp9yYvQdG46UVjRPPVvntSEu+sPlKISrK74015z9SHS/Mhxe+bHQHbgXk2Edx26S53ByXXIq6GvQwZ4NmOLHYZ1b9V+GDVP8mmTYO0Lv6891HFiLyvimDxdk9lniFmrESrOmAulKZ+g4G/XQbrNKZoF0GGoM8JqJ6a3RAxWLoRZBseeL1fmUlqOTnuqxGmiriBPx++hLjPdFu0DDTt/pUegONI3ReRp8Vsle6ToiBbmgi4CTDI6TFWOglK82LQVfxs0hjQa35MSq9QvJW3XhILz6URIFMmKNSw6Yp0RCJSsvL8gm55ema85NOQnbLrc0MTYvLsfUp5smJgbOYLOBjdvsmOUxOs6+HBMtEtI2X+HhUzXNd804q4CcHGLCtLSOk4esJc7SVqLocSWU7JcOpYES25CMZ1mrIU90SdfVudyAQym1tv0gKZnxWg5EIogOrjODce1mhge9eqCblzod1QaIF7XhdvMXrTfcjv5y1htuV3/ResPtZY1ab0D7Vm+AdK83QLzoDbfX3yu94fb7x6Pe4BnFVKgNmKBFbUD7o9ogBqCvNzm6jYVzxwCCtnDuKIDXFs4dB3BnC8d3oixl4TS/PhU2SQsH7QcLB/LZwmkRAReVhdNiAqRwbiycFhWIRVk4N0pXVBaOXDXKwhHTqqyYFgfw7kPZ47c6qwbNAT7c6M1gXpAiWKhP1DskkD4Wqk7fb3UfyjBJS9yAka2qjBwIrHqrYgfX55kvEhk8yNlu0kdRKh9Qp0d966VgSFalZv/BFLJwG2LIJ00d0llTv/31QWnqt48/HzV1y5DxQlG/QwhZKepo3ivqEM+KOv3ErKfLfm30dIxm1tMx9llPR/OTnt5cciafnFgsXJXxO9wQPxJpVfx+ZXkS5g82o4xV5OoPwYpFJxLRiqMk3s6EU7ziOieoynwcWKTxJxGzcKzwp6eoRX9ohC04bpFmutQW3phnCJGLlHXowvH9bKh8REQvWpl85vAFc4PamnUAw+Fd/ak1hJHLLoYxPsg3DGL88Ydff/jDjz/97deffnlnzLwzZt4ZM++Mme+ZMZPeGTPvjJl3xsw7Y+a/WsbMO2WmaZv/+svPf/zHj7/+4Y9//vuP15f+5Z+3zulKvOdqpM/8Pkgan0mDcfaLysq+iEge1FGHLh7Ux5rBI/85NniMbSQU/VaNzuXcdYSOejo7HHIkbuuNzBDWrCqFaWAT/iAqdJoATYDBax0RtqnHxsravrEShUs7hdaqkMw07y6Cb6INGoRR+YXrbpQxjKj8+iqH4rHxzP20BYaSGxC1vs9OjHjVXOjmmNnz6pNbf8YCNK5Fz+l+zsxMezVTxVTrMqmmvXl5WWSi0AhmapcTqINdeMHHlVHx5ogXRJdKB+AHL0B8QqQKUFyyRF7yJFMfl1/5IKoD6kqMO0VQQWbAnKY001COcqsKFI30miFnSXTfL6v/sIG2VDj2aGFRr7pfDzXoo9UTzuVuZiOoucprXcatyg1eRKptakAY7Jr3NKCG5cCwJHVW22KkPQaZ+JkYAThpDWOrtrAOwglUjGUFEMR+qTQCKnxzG9bfSlBDm6fHid8StV9kaCCSruss24DJWhSFli4EfG7bESX69ASoYTZsXhYAPlG5Ui9kfNaErLg2B5V9+k4PkMzhBGZ2d4fPsEDoRaNR9ok/WQHYD4HnMvZxBjhL1Hr4Jc0coS0Aeq6wndohjC/qX0akxKxLMAZoR/SU66Mk6p6Bvd1flnmWy2sO3G0Xxrp4fHnJcMH0vA+vQ7Ghc4VIG9WB4e2LYx+LKFEyYRvaAi9tCbFFPRY8KbH6jbr7GtPZ4Obd1DM2HNKsCxpb+iUnICUEDkbzWEHqZR5bpDLwNP1EX9X06ahbfrQuxmMEV8545t6pGfyF4tij1kOnSGx5KE78wlL9KbrF03WeUl2k7pp6XNcq9TYJxPNj7YtCbGg+TWgEH54VuCD0E6PeVHf9bl2mwb+EGznxLJCfxApADmo+TekQWx6MEz8xVfTLbmG2lCPDEr3GHaOdXQyQ3R74dYaYw85ZYHE5w0Tr8uua/ArhXNxrGOxSbAZbK5DLbTcBO5JNxcs2kwRx3wx0MBuLamyxGUS/NpuhDcapzWAqcg77udIXlMXxesPrLjNpqATf63m0SOcjArn2GyarL2oyMHw26990wrVl/RsHz4+1XAtHzYeFZhjxwTLU5v0T4moJol/ialmXyjUYx4lPEQjtpuvuI+/J80QidbMMhgnlAakZTBhZqcWQdm+pBU1ERBm9WJu2Wtbl9dq0hXsv12YZatjse7Ut29ZCya6zP4WE3YXg1x/K4J20wPpvP5+DKnFvnU7izFnfVX3/Igzt1Gcg8MsK4dyh1RNo3PKuwN6XJFCmPB+sN9nseNkgvuyuiRXk4R4kvSzAa9xmhgBlrQPMFpp9r0lfe0biie/YFkbTY2XunrBwUubu+fKrMtcWTABbK0GQ2JpgR+XVY0ayOy4QzxPJxKLtpx2TMAXRXYutHvSaZGD3KAaegD+LID+1nuaw4NRoGEuFlx0t7+a8pSh/qz+A7VHUqovEM9ChD8cAM6zRljWGD5KBEWcJ6Fft81wBIvjyy4EHYYcep44bRJEMACFtsT3uMzId1jlgxlcDlD1bAPzc3+65zW/7U8BL6MVbJFf0pjvhpXpjYHkGDCszi47n04ZaZX/WKSzjgtmo00Km0heKO1ntQvT0xqNibFMmOImwRkKSI1bJB5FdKGLaC6ObRHKVOLBR3tIxn4HRRxP78Km5O+JXJz5J7eBoHq9y2MB3p/ubaJCeh6Inwrxkosc8JsgUEEnuljWjcUw9xL1NuqbNGSHaKIY6WvtQ15xSiIdxiXXIoDbOwupGn/wOA2UzTDUVIRGco0106YtATkLIqWED0YEXOJprO0X83ZlQOWxZldncxOJuJMoC29AYWbchQ6E143KsQzvg2Am4sJz+FvTCkSpPMxiqjDgQIKINA/nHU/PSaeamoKfulwWO21Y+W6m5n60z8zWEt8I5A9kFDiueJOo04Nc9iPyCwym+94NI51Rhvh9E5VVOL3wQ8bJTS9PsDSQSbKwj6ysTvLJ1ZH3uWtuigTb/RDproN68NsaRK4x9JIwjaj4YRySejKP7F+xqHMluaePoHovyFFhfkBnBxlGbjmr3xhFkG+Oova361Thqv1zqahy13oZ4Mo6sdxI1O4lxB2Ucofkwh55BeYVx1H4iKtuodUvgfSlNzhfmjGXb6F4/SdlG14rr3HGPtpF1L7sHPhMitX9sIJ6iB9EG+wzSGfzMEjnPjH5m7Uhk2cOfWceMTAL/zLrOr7EAoKF5h4AG4WZAzQVVPxLpK5nf+CTbwKDZZiFqHDRrxVUgjgOiPDocBy0NanMeDDV9NRSp+QEMrebXSCneQEiScFRQUKEkmxrsCGvV3v7oCLPGv6iGlh1hrZS78Kelo8dM7rmFUcsgbHmXTeja8CKqJvA7HjjOjMB816cz7OUy07XAw1/gEaf5oIKJUbSZGc8Y0IbrxuR+6/UjxlRU4KZVw3PqAg/IeL14jGEofr14KvOQiLVTBbNIQdYWtfr9uggw5Csvi9RVq/keMQbZCpt7xHjE8sQ9YgK4VLLAKYiIStUFxx6yFZLYlFd8an76Fkd9tUQ6SDeTXAzw58Uk5ywXOnn2qXV/1ZB08uvT66dJpg5t57j5kNQUX6Y8Gcrs06fGfXdIOnv06e3zQhQdOvrzeRb1jV04W4cv7Gvo4N5kZz617jtN0tmVT6+fDjDRZ31+lfIK6+lVKvQm4cWn1kN/RLUe+/DH2yeVRnTn5MDPFsiMS7ieJcogSwVkhWfRejPy+84SHalvtnFaAvWtgLaucfqcXmUbpR+CXYw+e0FRTiF66s20rLO4mE4B+pQY3ttbRdtBeRb3PBOBCd0oNoLAJPZK4XHfzhDkFGN9FKnzKLqjA4dFi5OAerHxESTJcZaYoQYkDlQDSI338vPHGmKA2qxuteQQSrQOuTnJg8mjYdsk0L5EpGCvjDckvDPkiDyL3t69LoErSgucLmE/wWcJBiFrUNfx7SpQT8rTnDKf0y5lPu0y5tNTwnzS+fLQnOZ0+VQPGeZabxLp8kJtmvLlSWua8uVXpWnKlyelSeTLC6VJJsyflKYpG3tBHpYJ86vKJBPmrc6W53tKZsvrq1xmy4so/ZQtT/qSzJbXS2HKls9JZcvzVS6y5fVVLrLl+SoX2fKsLHG6/KoqIV9+Pck5K/4sefgM51QIkS+fT+nyi9NQpsufRCot4+SkgmCTS8bp8lkwZhunMslkjag7VoiWY7K8SCNDsrzIppDJ8vsbipPlN8EHTpbnWIjIledQiEiX15EQkTHPIQxOmudACOfMb/oic+bxFs6Z5zgI90WHQThjnqMgMmEeQRBOmD/GQEQiew7bFPdt+eYHkvPbjjthLts8JMynQ758OlZs2qeCTbfJl6eyxSlfvuSnWs28yZcnL4NZcu51oWY55sv33ayqNJ3Kl6/rEhHp8pWWyFydWTfZ8t86Wf7vP/3yb3/+8ac//PWHv/3wLz/99ae//Xpny/vhJezZ8i2W+v3T5aOrn8mXt+VL8uVL+aLKQpeAO59GwrRUGvhaE9Emf4OgKR+3d5VDV4V2mnhZlR5JygtoH8TzrU1Fxl46e8sol2NKhCHsfruJnz4RQXP6QoLmzgzdestYPV5VHzLBehePiQlShcS8BJ6XtHDXQ3hr2HP9XDuuPpCsZUPidQ8iN1jNWIRV8CBSL+Sv8CAqIwqzeeGDiBfjqnjakUZ2H+uzxSBkqpjPWzJYH0Ttzlq3wBD2akpS7No1QYpdpYrY69q0SEBRiu+lYGdQuRHuhW8JZcgNSVDAR6vXqhlku4GY9PpQpD4Vv/BBVFSGShuQgfeKFGfL9ECizvSaGTK+N4WmNiN8LypNLScZFih7aO0zs4dlcjUxqbJKtq9+8x1cc6EBGITup9YqvsNMNeqbRxfAsaomu1Ph9WVDjEeuVsQCeN2gu3LdKGvWvUZpfINdW2FsjH0JVFLPv+aY8whZgTWDvbE3L/NjEdujp27TqvYO9FOa0inQPEqR15eR+FZ+KqaBcz4jsnWbjzqi6lUPkBw9EWvNcE72HRcfe0ekZPul1gnCznY157C3j11mmZwWhw96rVeqUnQNDJWVI6pcb3OcWT8yin6nckphFdXrFqGDdhOift3xHJfZxNmui3U75ATGpdXOY5E6MVqNU7IfyjZHJqTTmdlKqaJViz9VFHNsNmvitESxWRPHpvjQRKvf1UjJ0MEyluRfzn4oU5Xe/MoHkT42WwFT8cux6RLH7fjYbAVr+XRq3lVzdj01W+WZgRO3wkTmqalKl2mLgCtmKorVCiwK0aViYZls+lQ4k1L0qSTk92bkwqBVnuRceJgEsZVb6hVDD7Y/y6xTuVOQdugJmvtW/0i8e9Q3A2/duiJzBml24bI+x8uRjgBq9bIvqlbLUzXdZvFHs1v8jdbNq5sqFLn4Q1oLf4I9XVVNyqknuKoiF6mI3Ur9fbiqXKyChjk5/Ws1qavqhijUV1Xj883nqyqwQS2vqpBw78mripoPVxWJ56sq3OnY800VPbJE1U3VysbI+o28vQ0ck3xToXV3U0G4u6kCRxE2N1Wo+J7ypormVaO+qajw73BTtTqzoG6q9hVlET2tQvr0m5tquyzWpRMM+fXdTP3Kgpaost43vlJ+cwNhoWPHZ+kSwZrykfyvuyXlOwLBuqRcRSGiLUDTQfP4gop+sIIHuhcr9H5ZlBTzmrp6le1pTfkM6mpeU74iZ42T4O+JqkBjsWoS6/7GCp5STR5E1wIoarF5pKFc5iUWW+gcm6M8m1CC2ygjV3p75ZN1XRew/NSYMAKvby5dfMiR0jzIG+cLxHO+s9cKirfI3AvwhDrvEcBvYPJVLBiKmIcxO/Pic/wyyj5uk80pRAC3HK19sx3Oz6tz1QHsabNAK1cAOdF3z2ldqN/1vWpiYjiVLxsBCstPzX23maucRN/DEiUlGVWJLGvEvHC/8GQXLF8271p/mT7DKFBHL5IFCfQFM9JBn6iQilrH1vT7+Ed4MdCrLlwM2HYCWMs114RTyFquJSfHI7SWa6eJVdharURQkMJHHCyeWeFXdC0It/BakE74Wm44jCZ8rdblkE4AW/c464qwhUmZILbQ+oSxJfqtIG3kmDTKlru2ELHBC5itVklZrKr1cu0N8Qi01frqs0basuwBkOR01HzA2iLxBLbVfoJQ0oXubAsgDza6s9PKvJOMv0ksjT3eFkSbU/w6IV35SPT0Wc6gW6ZS7bdyyAmZtq1MonPuSbazL0k625ctPcwpjdWgMmijYRuDPC7WsK3w0lRRXlY5YXMxLyHbgojBGfUkU/BP/MoH0ca8NEYUiidRZBvVejQBWcub9WjY9BZLkj7ofGxT65NXrhVXEW643kiQzoftXdOkzlpbImeW6bO2FTPmqs5aWyoMPXHWonl31kK4PWshnc7a9vO1rIdt63MOp8P2HmdeD1tMynTYovXpsBUd1/hhYlD6sG2Vh3AAGlF5mOFZmAprQ3en7g/bVneWojpsbS6vpM5aat0ftSSdTtr2/qxWdptr8tvqld1G4sq6si3XjiexMNz2pIVotzsdHXkPoqdvcjxpbSyvACZot0S/I+U7udfMHCBF6mejezHA+FG2YsLZBiXi96LkXgyWvdTOBZgSZQAPsiwBoUo9lw3da+rXyN/1KNIHb3YCM+kse9WlYq4rmOMDzLOV4vmcT+7oftx9VM2KnuhL6EvM+vCySV1i3mFjsJvoLrfJBzdRqyVjnHN1LFxafCmrm6gVxFASCl+66O+Dm8gGhxCudhO1vsSyuonarwEpwIpanoJy9I1N3wbtk7LpravSh4ECUWreu4kgntxE97y6xaZv9VDk31E2fRvg6iaylzGt4hnUuHMSkWzjI7qrnuzJR9SkpSgfUVtKMSkfUZtfwb6h7i5f4dITPqI2wpCUjwjffeMj2q4JlTMEFCNcXpznwwhHDXF8/XTseXfdjd3XQcS3kxebY+1od7HZwsUE4mKzPTGNFhUlVFHzZI2KlyU4phlhwhZ8DHG1uSelrY2FskXF1XYNPOBNQIRwHAdMr5lQBrJd6lx7HaMceMfTmDheG7i7DOEcdFWZw7C5+qpwXpvhkiBqPk1hQXKb7aV9vVcGvnnKaKJuCa+n09MosIGQB9UWEH9cIoS6V13Cig6HIqNRXrAFszVceyAgda2B34swda1F0MRossy8oOq2dGINq0ute1xdks7AupYtUYGsK3qzgdal7s/YuoZLMwS4rhGlGSd03Qa2d9BUIFIqlwW45YPo4YVnZaxB8eT947WDf2xF7oAcXePLH9TGy6Tz8I1UVXPnTo+VE3z1ru8b4kei8FrBtFmktJkWYQsfidbu8PvOEo2nXTIcaoynXTidhvG060AQ3eBpk2iHp10KjjnG06YeTYDa1PiEqJ0D1VRpFa6VwSgNLlXhaCMFLlWGF1r1t1xgX2v1Lcs0d9LeWuBXKW/U0QfdrRh8Za265TJlxuGXilbcboq9o96WhlNhVttSxhcWWhu17pU2kk46W2LkFqhsjRbxpLHluqhr1yzUVVsbbTtlbYg2ulrDOz2qatngwwlNrfEzZqWoNdjZs57WkEO0mtasaq2l0RfeKGm7j7+WbAUMSBemk3DgvmSUDSWvlLDIwGobHaxRGwalgsWRv+QIPbm/yfQtNiIvMya6oaO38QqufIuO/VIF2KwxImvbFoR3YkciHrO2Xq3JsFLBqAmJXXO2Izfc69myPz2qBHCS9soAU0F0iEJWjyLMq0/QPN1r5ZKKwx4cRY+UrG0QoWSgUmrsdRbL2CKnu3mUv0T3YnYrgmiOA03Nj8Z1iggi0OBMbw4Fmmuc6ckD2m5NHiFR26prCCkNeLa7n4TWEivUJN/9Xb2fgVSbsOLBB2RFezjIrtWIOooA7k13nLEu60f+eENAP8pLkDEa1AutBQXD19Jrw0jFahsMCGEUCRyNfT2l8kHF3Jtk5r8wyUx+k8y8SWbeJDNvkpn/aiQzb46ZbdmcIjl8l9D9Jy2hEz9Eb+z7BZ2uHcvHcdWbF6Vy/l0r966Ve9fKvWvl3rVy71q5d63cu1buXSv3rpV718q9a+XetXLvWrl3rdy7Vu5dK/eulXvXyr1r5d61cu9auXet3LtW7l0r966Ve9fKvWvl3rVy71q5d63cu1buXSv3rpX7XK1c+T61cuXTtXLvQrl3ody7UO5UKBfehXLvQrl3ody7UO7/ZKGcfdfJfVmdXHjXyb3r5D6qk4vvOrl3ndy7Tu4318mF71AnV759nVz5ZJ3cu0juP3eR3H/5Krm//PzzX+8yuEsdqr0Iro/j+xfB+W0x2//9+Eyt8bcXzn1J0Vx9LrX77/vH8qD2vQZlDsM6PehpZMXuH9zXBDr8Yg37B//7w5x8piDQ0JEwE1QazXbvuwV2aj28As1KccovogIv0+UfRhrlk6SMSCJvtsBaHWfPhYBTJYEkNXBG5t04vyZ3O8Piifaa2j0a9zHlLUwng4y2sm59i72fpenEWT+BTNiArJ+klMTLXvEoKQgJlg0MCkPklBUeCrs4E4eof4mZmDqJOOpJ1HzEy/FNwn6j01xfxrNnTm7D1hIpir11nSaKudEz3VKlUrPr/T5gvouH8lHtYusXXoXTGR+SXKAH0fXC5QOSbIxxaApXK6Xot/7SggrshTCK/Tlwihs94+6lTEGVNsZhF1KrF/mWYvEn3N9hrn7KIg9Ai6a9tNE+Cp5ddaUi62phWbN5WJBEGjmQeBdOHS7CStd9QQ1w6ozGfcgFpnVY1TbO7UjMgSx9GoXSBNmnsemLY6dG6z5FgLr5S8S2ukPuQXsrw6NuJLNn97f+8k/63xdwe/YzffirxWC++U+IMZShfnz730g9lvw7jcNsrbwiqsh1xrsge8dib7qyVaudWg9LzCL6ifVOb58WPPVnu+C9f/l1vbcs6rKud2rcd4ak83r3XGEp1rvjWqPjeqe/uf0kcS2BQ2ZhD3OMkcMVbXmTBsSodzMYYJBavobp9f1beK863VuXGmR2jxcu5/ccbmDFgFoPE+kRbqBxOH6/w5DnLmGSvpk6/4c/N2yLv/3wl7de/9br33r9W69/6/Vvvf6t17/1+rde/9br33r9f0i9vv3z06//+pcffvzp1upbQUUL8nfQuqZcfAu9/tto2/aLNO3sxmNuhJ5+q6ZN+nIe2QC/VdEO1M9cwqcV7es6L59RtlvZjLcE6RZUOVnDYnCoAguVMqJjy6tJUDw8squjyKW/FIa8VKRcmkXlsuwVDqXJXeAcEsoAsk1lpEJ46oaXvfey++uF2CBzDIpdrKv6V2sQagXyvhviheWaeUPR6rtChrTIIVjm7VJSgUJAT94jub6wQFTKHgipJOib3ax2AP/BfZgFS9G99lMZlWIWCeUtZQhnuVUJ5cld5wTOc4uM8nsDA//NQ/NA+9Q/WUhlEuKmLti1bqtwCp5bS0TbcnKUIdPgG1Hid62/KrLlow/8BSJg17pgGd+1Kh0jWvUnXf/aRbzSUn0+L5OBCmnmSo79KlI1ROXaGFBdalmqSVjaQr9KpbyMPUt1xG0lotPNRERhuVyJTdUn43G7En1LMXWblXjdw57wDqaVCMFpJeIPlpWIn1pWouzjbim2wXHuNC/Fy7gppAS3inCqYgojk/x+XfFlneKRwdJsZKcn2HhACBSUilxdqBVZIzEm7nqMkQ6YGDclaJErTyIhON1TEdhkRD0p2o9zS3/QdwLPRUNKqWIjRO5hsklshPWNzUQsYh/Q12prLVm80TueXWsZMmcsYW1lNLM+kP5s8jozkPeBZEyNa5AZXNIVK831pU3ZyngVTbC8cswwDaVithvStEBKqCgTI0Gf7rSknEB8Z80EVfIHOZnKyPwZiSDLamn6oHHn1eK8vE15tWCuRoGRpVQeCPw0y6oYk8fRUDVmz8k0Sv6eU/1gqmxoGINuXSdx3B06LqJeZ3vm3C42uzlz2joTeLwRtwsE/rCc8Af3mZNhJrfEQbpP5ZnT0HBrOp85LWOQYJXkmePGy/85MnvCZiVdl8ZS2Cum+NLezbLKRjLQs+z5w7FUp61dX6nAa5btere2NG6Rl54ziqjyZRUKHwPu1lat5rkQoqi7tX0hFzfXVMvU4mT35FGZ5Rgd4erugmhA0sWRa1sCVsrPAnuX3SzdI/HI08Lqa9lKXKbAvbs+tGNMIl/0DPrKR6gvPIGxuO37CoHL3ut27vz2e6lyrnTdyOl8vELejyaPs/CuwNqcTcZ1Heh0NjWUDkKhFWdTvfYJJfbiCPSi3cuzU1Scdak8dvnHILbivG4/1hCo6uZqMK1WoDxcDW3Uxm2uBszTKGggI50Fz0fr9cuVau93R12D3KVrTh511xBrZoeGIe1qmrdWHRYO83abz24pyQvuQ1lagh7ilQ+iOtLZxTdqNTkcMQiYUHOp8oUPXMyn7w5LT83LPDVLrfB567n+0mcAikTUZKOdPk/WBao+c65jAHGEadEWYbRFXkOVoPF6+1KCuPnOa6FZQ70rhAZeiy4BrLEI385YC6V09Wcsa0e56LWhv3NpglvTp6sRKhQ91+bpuvNEuZX1iQsL/XltkbRn2/fOk8czNdfeL/8c//kCf6e9vRC11TYDuUldHCWNTbHcG6UVivFBWukWR3u/N+ZPBuGtyc/nT7nszVo+lK0bQrzyQeRH1i1EvCoeRGrz8ed4ELXe+8Mbn2RieerCzzAAhDcOn2yvI9Iqf082jF8qvD2tJjQcvT25vOLR1ZMb0n5Wnp7cvnJVjh50+snP0yByOXyo3Dz52hHRaS9Pq0N0WsnNcRgbByX3GntxGx03XQed2ZjVaD9YfpDPRnX7maL122tC4oN3JzfA1ay029J8w0X5dtC8de1AuvPs3PAz8ejYudaNF9Ys/Dr5mjBXtVsnN8SGcvbq5IbLn7VT51pNVbwPPh0sia1LZ79g1tKCFq6oBxU9Nno797HQLKFseuOpvZU4lbWM0JSDhZEaukTey2IlA+N6Z53JSRL5V0bv/fKDzqeDUHa1AbTEg/BstjSvBGP0pZqWOLiN6TCtwb/4ijnK1jNVvPJB1Cy7qvIvTOA8jjq2ebgON1aDDBVsRNuN2rEvZ7AmCO9CkkWhuV7IyCPBi/h+RDgnIGOEmr2cvk1kjNJ2djYExIuH5jaBN1p4QxQqD0q4D9cGr1oHb9BLhJEkvTNo3zpnIN37ZiBeXDP+sv0IF1mYPw17qp79eA1CySnbBxO0uGXQ/mg6iAHohSpHt/HJ+GapBu2SacBaREEiLytvR2bX4bJqBoPZWCk3Qk7V/hi0H9wxkM/emPYz5EUVl5VvNBb1eFldg/KuqMvKp7HxZk+MXDXKESOmVZ2EDalrFBI+yR6/1fk8A9TaTaozQ4cSg5BfOQXAcKR+0zy2X+dInXT7cAcLt6LmfwDGpY1zTKMlSwVahWvA47pxGIp4fbJlpcX9L14LzBK4/4Ns4/Cqwx76QNiOg7j0xpxm/zoeY/aHe6zZGvF0x+kv+m1i5j//69//5ae//XkEzK8Zaef+78ny5nqJ5GdTYUe61m/khjPudwrQj4VP6Ie/NT5fKXf0Or78ZwL0llNo62cC9C/naIDOu08F6S/VOqQT2GK7/7MCW2xbOymwRWu4XlOBLdpKMFE7sEUrMQwAtthKUBXWInX3CWtxVL4esBavNkrobLlLAn/Oav6E5q8+s0e1MYtyW2AtmtI7sGAtUvMBa5HEM9Zim1a/Yi2KWm6NtXgNkKlyEG9xSO0SaIvUuoVbJOEOb7HFHd0Rb7EleVaNt9hO/aLxFtsU1zPeoi0M3CLwFm0FY4vEW6Rvv8Nb3K2LjU92oE3vgOsc8qtEqf7t3ptr9SmzymhXMtnhhn3qDB2DOntq3Rfrk1RU69Ob53J9E47F+tTrBbLOYRdIyDrHYOCnzFDjJIeRWx2gKR7g2QYu1qPo6Y3Huv3bS74HameRAqmo6QiVy6INSjsJJ5D2GoESwkdYdcjI1yduc3IqeLRSgH/CCO3UuAFoJ9EOmS6KBPGTSEHT4X1nybVJF39sBWJoegnvsmeQT5oQ3+MLfjSu88pkMGSI0fdjDitq8eJrK+9kIgC8DSyd38x7toJ4je65bOW8h9XpY8+wdPVVNSxdP7oWWLoEEL8jLJ0FoKO+4ooBEIe44RpY3QaXrmUFHS+4bEFBInHpOvbJiks3Wg+4dIWJxHC5tblUuHQJyfXqahu4chMynXspqqnRtkWmc68DzVTzTp+R6Sy+nUSm8yB1kch0+eUekOkG0e58mxUjqYSBTGd5Rldkus33X5HpPOF6msX35k/UUonpPQS1VDLIwxYLpzF/uePCiQEXnVg40YEnScAvRcas3NBKkXRilYoDWl0unJY36Q8LJxnosVg5bbB1ZZRKDK6yEkolpFOsp2CKRFB2lmzYpEg4k0ldP4PYLnNJXYMDfKSmkiLI+5lJ6pokr3ikWrakP9BIkWzLIhUHuNXMIhUTp9YziVRbG/nIIZWc4o9qc8txEkqbp9Yn/iiqKNseOiSc2aOuPluryKMilydsuKOSfTnFHCV6LZijZK9X5iiSbZmjSDgxRyWLVcoMJJHJlzRvVOScPKaNopmYWKNENd6RNCqA+gFBUuFXrszOVWlfhQLrUKC1hQAVcoPW1uDhk0Jr8xXEuc1RSaTIheuUzGuu/yooickKQTAwVYwt2CTBsalWgY0UgjzD17SnkF6c/Ev1jiFPNt/Yt9Q6gsza/08WX8sfcvDLA0k+9iPP9/ADO7TXld4GR2/y92Ew4OUYH9FXzF8mF+dayTlkPRxBAzMbZtQ2QfEEdRdST9eYoO5a7mxETIOmp0L7uI1A6XYcojs24Y7zBiSqwCy5vFFaN91po7Qi2rpulGslOryG7Chq3M4ZCXuwoHLJI1JqLWhSr/4Uhij1xyhNc4p6lOOSddmovComrvoleUEFCbw8GpMq8EmoXiqFQS7zCmrvmINcg9q7DHBExrS/DvYK/xCYKEfjCOcvhHqyXK6o8qjKBJ8RrMgvkc1lQGHeFXBPrSvGpRWkdBXlUShOzX3aPbdOSoliXhcVdlHPjNacG9J+QQ5j9HpqymuOo/LUuLyQ4DhHl8mDSBNc0vvOkvJKUcVkKtNseY7IlNWY8+OU3RpzPoB0lo05zypERUYVNU4gozJA5zi4WDIHsASzhcOSKAJXee8qeHEqrAISfWneC8NYdWEC02vIwgtoHg0XmKqvCKBgytt7UfavUaHbcS8MnOBMnG2or4zsRxPc9FbdWZap6SXhWAQ6o1DtuT+8rk8z5vXh3M1MO2R9qeAKSVw3yDQSNx7zvOAAlmoj39UwYG0B2zd3tjeu0JiJCyLhU2WGbnq759Z9h0hqMQTHr3cY69QhzM03Ce386y8//6+ffvz17z20Y2xbRz2y09St3wHiZMAbfy6yk4r/viAniJh8KrLTq7TuYFJNnyq9TBTZSZ+J7NBDuXwqqjMyiFpUZx8O+m+Pkx8/FQnqS2po+srlbOkctJXdecwpJU7cGieOvGUjNW+fAGZ2nHYKo4EzWCv0fD8ziBiASOfV1q+W8bvLzX16/4AHbW5T2tHTwkVBy9lRM2I744nheRRk65x4XUUqaVEZ6bCSIg6hWsABf2e3oUeWjcf1LmpDc6zljxeZbqsMLb9g9siCqQpUn4Rdzx+vceD8Fq7ZiMtz45rNSGwRrtkKcoPEpWlm1Cx3Pb+slC+ZEsXXHL/K5IwF/qjrd6kQRHRzaKhqsdE3LBhmQQpPynDJ0zA3k+UY99a8KGu1evjkm35PSz8xivttXaxp7yDq9FyAbAZX8tDwEbsZzV5uyNUN7OlAshpPh4RDSxrrrgTpaswetC6W6RyyV7nV6Ph4xt0pwZ6xURCXyJLwLLoliZgVZpNVhrvAX7EVJDSFvQlUSHi1GvYm+NX/7SZaFpGgytFHzz5WDDytzuIhuwFc4pJ+nJ8FcdiJ+l1nyc0LIiX4umeJehum+CwpC/8Zv+0s4fW1RlXyi8lV57kgSSeunt3g7KQSzDnhJcpa6DrJHoBDm+sk5VdVt0mKCDPZblTfjrnIyEVevyiCmIjLutrb7Xooig7pQzEHwHjzoZgjiMAiaFoy05WksYTFzBl7yOVswSEcicTqd/1qrSvfQ/Y952LL95A4PMd8D224XnHRUeth3jJjRyWOGTBRZjO1LXokaOjWJREnzh7mbbKs9BcOWjEDXTqkVg8NIWtXtn9xrC8jNGErYn0FGbeV3TXz6m5REYSXVcK9Ea5cRjIzHAwmFyxfGOjnGsdxICw3mhZl5GGMUF/hn6o7hqH4wDAEhk5h6DYsuKL4Hal1z01IUsnuGC1OcfYhxvRAl3Gjdaw+xNTJfka0L8PfblcvtvC3W9SRzzzBERE0iKagk2drmSoBrnUjyuQpAzXmHjjckytGTm0S3IqNwKgq3Pz2pTPW9cwYvFsFq6se1om7/VjSmcqioLPDLcfqAkE4CT/oaOx+UKygoEDkHGxt8RoPUscW47Lsyy7IKK5+n2a/XmDNrew+kDiv6IdI2CGbKHbToA04OubGmRyGh9BT6zpRxNlEz3T/OJEXuK5Ne57w/iK7Vd6ukZpTqhHJpkyjq7HMiUbXKOo206hhTsyJRtc0ZJVnRI3bNCMScpYRvXVKMuI+6Cwj6vGUZERjm3KMqPEhxahhUiF3Zb2GXNmZlW6Yon2fWYcM9Hy+0Ejazy+HdP2grCPq0N7XCf8v6wHXqnDwr1deKtLV6VRgx3E1M9kM4+WzoiS6c/R08hxqleCuzVhVAleYksxAyafWwwwWPj3TPW8o/eDTM6tO91bl6OXieJN59JUBzchjnzmNUPfJM9QpjcPx+2eeLC+wTs02KtoqZpkaKS+55O7Eep8I3fBBtJ5t/L6zpKjV5zgemOA2bkRFcNgT+1tDn+NU0rxEBAa9XBnVBRPsn2dWNwu/tEvr+qZGL3ikNLQRDSVrAuaA1Kw+2cQrVNhoJvs7MSlheM2luSiIOEs6lOGuUmLXTBYsbuj+2yyYKJ6I8NhiFdO4+mEKyB1MViYo2lUfhN5J4LfSTQfjwDqEpq1FuOD6g4C8W8QLGhaL6nFADjHSmqHAjhCzR2/8aNuXphwECr13M7Rv4jr/5ed/+/l2m19aVBwIgh0Z9d8PgqAZIFGfL1KIqL3w8TOu7EJlPZ+DEGSQ7/gZX7Ydivin8LoJZpm+18rEmUW2WuQ8A07KAWoxw3ptzDWS2rEVCJg5g+YyUuZNRHJPUOAwl65PCV0BnOxjyXWzr0Ro+qLEUlmPDmzANATHb2ck4KVDPEWrLYxZvGFpVXodIrtUVXkNXcXvR9u+x0M4wnWJs/2QJqp6u4b540gltuOvB/Z34ThdYvTvcu6JzLJF3iEnUI9Bzn3BtKwaukUK5dDhJdJ0PogsZdGF4faCJHSnyEYy+J/vDz6jfYdBlaofCvk1olhKovqtUhc8PLF6Y9kK21tsLCsAaXljUev+a1jGyOWNRa+fNhZ1aLuxHNOC8sbyFtUkvLGocd8dks4bi94+byzRoePG4lnUG8sZbGLeWC2Q5NadRY2HKRzSeW85mTCsOqxSaDJj2BcMOqqtNRr3HRnCaWPRi6eNJTpy2ljptfd4u9cAfDgKqlIZytQ+6UJcVFYrq0JwlCamowzIQvNWa0I41C3KbeBgdkjuShSEos7vtFwqIHZRa7mc5lzBAlqT4ga4ftyJINNCdOkOJ5a1xFapRFnU5qV9efFZot5mnprN/LtWQFjMjKh+rpIKnGaM0A01dtLp9G3VxT/88ad/G0W0toV0hsr4+2RahPAFmRYlh3+PmRYVYNWfVE9zraiF/VwRLeUSflcqmVaDmeNprzk4JJXMJPLkrtd2wx0bPLVK1JAS7F5DaBWS9fBYX7zbF+rubyroLIFLrqHsCPM/kZO/pVigxJTsw6sxeWRVLXi6xlGOL2RzhaJByVD0jBGXkUdckX9hEUrbYyePee11yOp3Mqs7zgkwOqEWEA5aRSpwb13zDaIwSQjn0HJ66dAuZFhJ5a9AYfKca1CgMDmM2bHC5DbVnQkaE4YUEIbJL64R7Y3bum0S3j61NMnqqH4SIjGIwPwBPVlz1ENmts0oEfCaUgKP7K0q8wgKUObUu1YByu/CVW74TXYpGV1XwBrI7iGljfKRA2pCj5KWmjxJQHZOkikxI/GIInDqkFkUkSBPrePaX97DuaEROkML2YdVNaGxPSgnVNe40w8gMkuuQ627+7tE7AKDCtaEFYyxjUZPKG3zSwqKGG3CriwR+ttwcY7hVU4Vm0tuNuPa2cf2yctgt14Gu/Uy2Ecvg915GezOy2D///aurtdy3Dj+lSDveyB+ky/5K8HAmewa2CTGzBpx/n2ODtVVTTapO/dmd+AY8+Qxe6+ORFIUu1hddYcy1BXKkFYoQ7pFGdISZahLlMF9A8rgblCGsEAZUlvADKnd4QxiUz8BDcECDW4PNGQLNJQl0FBugYayAhryCmhwfxDQ4LdAQ90CDekH0PADaPgBNPwAGn4ADX8nQMO/fvr583/+9v8Nbkh/73BD/seFG9IN3JAM3AAIwBu4IaxDwporky/niDWELdYQbrCG9ANrEKzB/cAavhlryHdYQ1hiDW6JNYR7rMGtsQa3wBoC0s7/I9wQt3BD3MMNbo83uFvAwS0Rh7ZEHNwN5BBWiENcIQ7xbcQh/YMiDm+cyC9e7InXkJe8hrzkNeQ7XkNe8Rr8itfg73gNfsVryEteQ77lNeQlryEveQ35TV5DueM1lAWvIa14DfmO11AWvAZqsmhqgxVl0ewGqrKMBIeyJDjkO4JDWhEcyorgUN7EHdIed0hb3MFvcQe/xx38FncIW9whbHGH9DbukG9xh7zEHfISd8h3uENe4Q5+hTv4O9zBr3CHvMQd8i3ukJe4Q17iDvlN3KHc4Q5lhTukJe6Qb3GHssAd8JIN0IN5yQb0AS/ZCECUFQCRbwCItAIgygqAKBsAwi2/5V7V9q0D7pjwB6fdvjX8ICctB7AHSth4QA9pLDYb0uAE4IFkz1Dmj3qGes3um04ibzblE4rI22Tv8LJvIfAAP6VHIO7gZuAh7tIg2R3YT7IGHuIWeIhb4CGtgYf0NvDgvh14yCvgIf8RwMPXz5++/OmXF+BQe1XYL128//sADvUjGuG1pvdohPv8IQpu+5CaRNKj/K30WydIRcvlXRTcy5L+PYDDsz9EIPzyovlW4OGaH/0NKbMDVaL6/WjsEx/KpmUTcuGSoFV78Iit5kk3L8wwAKYKkF8dULlqMp5StemGoxsTy1udUkBlNdCoiSux/hh5ysVieyt0rC+2aa4G238+hsP2QmybCneNGYp11SslNWezNmXH7VC+n6CEECOq9xOX3lI2eVustBeZUp9YaUFtDJtSVgZtqBSWAl/lqJcLCtPgpzckElIWJH/Td9OF+/ISsZsuyuXWnuIVyKBFpja+zR2s7sh2cOYehh1cDpQU5460d/nggHGqc94YRPEumK6LMPCpET0XUE0G9UkWa1cj+paDEuFNSgfV002atahKxXIxAMEbI+nz8lRYkFOn844o7250gVmH7njcc06VSK2GgL6LNNxqa0utoCqzymSZxcKscUlKhyrM2oVmaydebx+x2pEpojCryCbomahlZfcEPdKMiTJ6f1WWZRWrBBuw7kXWLdOvAUf6QZdllWVFcUiQ2YlG1kaCl8MTDZkq7SglaWk81G8PW1XbkhERjQ9ldEc1R+VyN8lFXrHL0Wn6CaoRn1+VDOlPp8xscauNVk7WF0q52MIUSgRaXz5O12UShWCi1IPNyTdu+WUQs3maarTKz1JZaF7Yam0uoqELWWwW0RBRlKYW0UCptpdpEy2ulJ9tNbqKhfbZtJMSLJqL6LN3/W4NVdXVXENjgB9BQf1ujMiB2wS7SmjpxFb8G5GbcUBokSIXeRtNjeSkUeqUKsaBanjXyFXx0wfVF0GJERqdt+ggL0fGPlMe6UGOQeG03mhZcgl00cITyt3S8YcaJ12mmKVyC1sgL5xzBF4yVSYKCR/aONICLxkwmJQYq/rTzGrvAEA7W53BChnUzOpqfn3aI0LXMsXpbgBuHUgv05WmaWepKTR0RnFGxvI0uOdHNKFk/aDIxLwweaXPpCCL+lC+laKCcw40RSZGV9XVJLAJ/uWh4vIlUTFk+EEt5SQX4Eydi1PB7n21NlEKikuTA8YpUicU3uxy9bZGt1wlzeoeqepWe9ntqCzZQFIpsKXojQZ1oVqNsGVOJIW6Hi4Te2nQmArNoi8yeFcl81WoK1fqh18dgMmErWaTAqVu6zpk47vAIR3WL9zqauwF09OD0R0pUOkVBgBdq+nVOaLw7h7BFiELCAmc5/rIvy4GX5mAwzjJNZRBXBAzkmQcgSAvEKnvh9RO0rqHUIFnWQuBy4RaBA3DiJp1r3A9408I752KjCHi1xuk/JQcwXHJsYwAUMJgeWBAkBD3+PZKa589v6Og6NffPv32169/+fTz5Rb33Oqez/PLaz35LkCQ22lv3v5VKf49QFAJ38ksrvCx/PuAII+S6vcBQb58UFfUi6+d63zOb2ahRJD+y8xGd/EAMRmqku6544tUd8aLT91352ZByFiELYKY/hXoqlRgCC5mqJRAggf3Gniz5mPGulvrz+FiFZ3/8zTCq98qOE0RNTenpN1783it5xPLoih/9eqezGOOgtwMzUGhbvpiGUhKJVXw7FSsZFX1QpVjp+rtE8q5+fUnngtB30HKkEljWACBCHYn6MnqswlVELGxXzLO3BOkMdygO5bYx8z/LbGRW0L5I9+fEbqPBbLRGPpO3pj8QFfzYp47z12fOGO0Wc1FxcqVqGqDvgYY5toC9m0S/A71vDrliOJ+Xp2aLs3OK9doTVQeUPxQez8v8iKDDaO45HTPvX5bDuCrmlaeHlWLeSVbz3FePXvlgAyimLy8+ipAhySYfpRtgBvPgUJ4JPdWaOHkgqh7pQaYcoFGK/3zJ73f4JZj+p6GLdefXP0FTfUMZbHTlVFsFM4hHXc7EnzdktlVn8a2AXdc5ITOX+K2XVtNUuzXhKkQaTM68L6bj10ybZCICbSZVMmcHpxX6ra02/RyTL9aqyR6iUGpmy/e2KWc0yoq+8Zq51WltrPIHeqbdxnqjcPNh3PRXk8t503Ci+jrVWCPw6oNnp4+Axkp5jTDSd7t8DdedUnftjblxak292lNLYQnovNWKUmiTvRar1Qia0wHbqRNo6nBWnjWRBVtOnjiuDaD1SetVz+PLo4S7P1snF8DqmiqWr3IsClc/Z83XNHThrmXoTRXuPZLh3i4MgbVenfIoe67v5ybZyp2h3IiNczGC01zcc5xEOQ4KpCZ3jw9VtTVZ0UTErltkLMFNIfN9KBCY1WzI4J72v8lnY0KtOoW/q4Ry7tT9q4Q+cSHwgWwmYphGQcpFTBr+Inv+LdCdyODmGEal75NXfaRBF+wkii1Z9BnqBTZAtApKxTZtDia6ETWDn15zPSAtrDQkbtCHc821poeb3mFgL6j0mEgIzoQ7JkrTk61cvWOO8irSwWgy6BkSOuwdZh7FuDrYqfSHPJmtVFpB/hCruGtUN1S5jNn6Rafp7GvWfZsN6F5MuFy20BZqeeLdnVCrVnzoGdCLrV1NffrJTLK9hGk6UoaeAKr3Svx/OTm5Uq91Qf2M91iTOwFUDh04DC08QSlt6415cWc/sWmnpnEkjC4ip1dpbyvWtvKlcetl7aS+pd+XNmK0os98JUtntY2bVLvk1h/GYKxdRUtz5dRhKhxK/vSQNvOql4Va9tZSS0LtO1sZAzK5D3o2mmrvCTa2W5ypP9shTFm7Fvvi5lAZWMjBB5wdH1+ceTk1Ivpo7IluBrD6kDyir0AcNmdFQJR3PKXArMMu+MvDW931NNCfHYSlqTq8cFLExNUQisHqnoAMCtwICj9OPNamcnnEH/AYsSACz036YL0fNyKywgEKI3rTovcHfXV4JpY6nhHGJulal+mGcysShrSA0euAdwMFzCM0nohgXXDiW4wZh9PpRGZ1zqpWr6LuHhtoNeF1AUwRGrcmlRg6dlrf4kZTM8R/BT5m/MIJ5OYkLGESWt/KUbKnsTsg+RK27NdxOwmeLmbkCuXgPVoJaDy+wh2hIypWiTzxZhZL5KpYNarRTIlpjtcwKQ1cOjNiXMVUvdz7ZlhCQk68RsRBfhEIAEl7Y74XbHV/pCSlz/prHmck3cnCrGjpT9mMXa0qBpbCLQT9hAYPjlmxPQvSE5/9Oazs1iQosnfdLVspwTaPeSy8dhzDi+xF9m0Tormxb0RmWclr7aPvD66OsLR3UbMC44+3kfKxSOyV9tHOL8Wnol+t/uW4Ji/BsdzTKSvIbLwxWSvIeP8kMlrIA8cqWsgDXxOXK/QMm0NIIhXTXyRF4U5a4g44bI564k45TlllS4YMlZpvEtYcb9mreKT2GQ1FO7nkKsG8pHUShWCrsiZVyo/lFQUsuZdM3mqp+f8ahJc0SFL9dc5+pCkBtZ72iT1+RBy0Msc9XzcNqeooWJ/PWeoElq8hlc6fxfZj8Q2OfVO6O2LFdrTE0Ot0F6VIxWtjZDzdoX2URtoyhLtWbKplmivCpvmJdrrOrZgfgOezlyiTxeIaJZoT6uaxRJ9ZgLZLNHnupzNEi2tqyVaYnYhdlk8mPYRg0PgavvIvBCr4d1G5quxj/eReSHm1faR7RKtKB7WvF1TPGovVJgoHioBJMXDLhiK4qGALW42OslZe6u2yRLlkKwv7Cke3SjamIceluJR7UmBonhUkpUUxSNjk68pHskYD2uKR4AhmaZ4eO6UtQtp3FM8DtjSkOJRYSlLhkcybEgyPDwyWTI8jpnfcWzZHYfhdhyoxVfcDncmtEtuR7SIObkdAfR/cjv8o8zsjovlu+B3ePmekeHBXIoMD9tBZHgUcMLI8Cg91+4MD7EdNMiDc8jzm4gWOK59jgwmae3/bL8nv+Ov//bnrntfO/L7C/hUfzy3wzf3AW5Hq/ldRT71Q0U+6SP8jiz8jnepihzljSfbcTuKe4MUsuV2SOGTi+GP9ow9Qbzr+29JfOXAbl6x+HIl4lvheyGtm3KDivKKBpkwufxAMJYbWjKMS8PBjCqD4VEKyfFVHaTY26leu0pnVZbTLM2RN8Qumgtq0Iu2ZKN4VACxZOP56CyaRB1Tb1zf8hXsiZXs9woJ8OTqqxu2XP1SwRAgV78eqFN2FOeS1k0XKo6gQ9GpXH6oaFE3hO6Zi2zh5eYttsSFmK6i2UMc5ECFdg44OD+szSERv0P7TEKDFAe50hiWd5OgxBGgM5OJP8aHvZk4M63k7p38956P6XHhwEZ9K9ZdMIY1+Z2hmTH/fIprXdtHbi635dJHlMItqgwkONabxPow5SbJce9hpvBp/tjmKZxo0MlyE2lclZtIbFluIsGx3OT5w7XO5SapM3XX9SaxKj4OkKmhiFHqTaIqYtzVm/Cezdiox7H1JiniaF3qTZJfrXVnrVTYcrpjRqWX+hzE+Eim3ORqXFebXMGh2CRmnDTwW5B4EGO/Bc/RkEM8fgtS55cNxSYpAXuZi00kNBV0putob9t80/37MpP6QNo2lqlLYH4VTy2ItyIuGX68BPvHTSorwvipyIC3Mg1dZ12mUJitXH/TYTgy+2C5Vh/8VrQZM9kU9DjhTO0jpqdxtX3ENZOVBDqdewfgJWTQ2XTRVejZ0Kaw4WAljR+EQdm5ARIVERnlW2BRNqqUGiyqyBU1WNRAZtBgUTNsBg0WNdAZNFjUsAnRYFG7nn4BFrm+Kn/68qd/+vLStng+85f/uf7xt58+/e3PX3/68l+/fTo3oK8t6q+fvvz8+afnf//Tv//66edX09f//vz5L9f/df98lWIljHu9AZEcJWIViNRoWVc1eHZsQKQ6+/Fl2oXvIvNU5dX2kXDhzxbC2Ufmq3kllbSL1C0ktY9w4v2oE/pRJ/SjTugfsU7ot0+/ijrtycL4vlox8XoN3qkVE96lFVM+pBXzIRSpVMF1fGnvQpLCx4Ck4D/o11gFuTq6O/o3Y0IZJ7x2VyLBcVdSCvNo7kpKg+roYldyMo6S2ZXUi0g/7kr6tF1uSq4Q9yQDRgG7b/diqwvM4/F5ETn4Qomzxd7jZB1Fs/coETJxau8hrau9h8TsDqM4UavaR+YvP6+2j8w7DA7uPjJfDV28Dcz7C15rH9nuPHIT9R1Tp8SQ0fnIGWSTfejUipsmtAR7OhqAC5U0leDn0MugwkIoIB8d7NFaAanpL7ILULM5aHI9Vh1JbKVicpVV3IaMjAmut4/Ui8I3PItobRQk1tkB+8gCr4gYTU/Pp4uUXjXo5L/3HLzeqQKTqSIGFJ/MqFIWPVbT8THYjo8e9X1KpOHZerSNSMOJe6SdSEM6HsloNMTO7RgmiNzmXqMheYUgzCUryT2sRMP5O8VU9ZyUJ7eVaIgOAqNKo+Gs48xGo0Fa1xoNEh00GiIzUGo0nBIcO4mG54NFP0s0pABuICQaUhgki/IkySN8vVmi4ZSB8TuJhuhhyqAkGmJkSSE1GoRJttZoECLdqNEg3LRRoyF5XQU1ajSsJsFMBSoQQnSi7KOxDJnyZ7SAGBPUV01gmQx0srfOAjIoS6OeV/Ca5ijKkdLav2qTJ40XGbkBLwvp4cpd80LoWoIXPb0RqKEQRhDuV8GC3FsNMYrgVajopry4UuVlZhFdMxBznlyQSluoU4Ij5O0qlc2BeXuH8kKLefsAQiYgb6/UvwF5eyX+PUPensxiC3l76oIryNsHwMSEvPsXaAN5u6oXZEnoCzdKhLyl9Q7y5j0bvE89joW8fcShkUDeZ2GmASeu0ooNOnEWKmULT0SKyVedvWW3xbwlOoDejmV9BL1PfDLtQO/nM3hzACrSMgPq7UkmnlFvCS2gpCof2n3kZhy22PeF0TymmnPZg2wD8aL/Y78pv7QN2L1fl5+6i8RJM/K4aZUc4/fJyz9/+o+vPS1/4aa/wFbqO7A7dl6ub7A73peWu4+k5Uf7WF4O3xj/Pt8YF994ui3DA5l5a+/KzG+JKL8ju6NPq74xmtW/r1hfsuU8vMa+XxgNzp5pnnz7Fx5wpfbP8OgB98zzgsLlA6gAjjusMNaBJfDis4ECn5dTNXIBbANVgi5HUfUgdvpqNdQPpeOvHDDozcBqneKBxx3WkgPabRGQwPPyNaAOzBWAC40lL7HYZ/OoIBI8tySSMno16tWBBylrzqAUB49Eo9HMpZZ9PRTxemZKVA+KQ9QzQ0TpEnDd07WjCAlvrOqT0HmfwdqnFpR6S1rx/FUfoM9O3Afy2S1uqSyZ1XOlP9jrWyg+L9K47rSC0qXunHnNLJVCCpGlOi16s1A+BrzPtKtS2EaYo4Gt/Wyw1Q0nJlNFZ+hchoyGeWpiM30TOovbmtHRPdysSJOKkoBsNKVoo32SLuppcTJ6SlS2rOC1SGNYPJzEFk8QuxPffWi2uOT19pFi6kWTx6qW8BKkiNRXeb3mx97qtSqiD6xeeeJDFZXMHrHKOJknPglJUY5Q1uTN5AxkwN5NOSBdy7spHpWrGSUD0tjHZ6xrl1gfBAPPubdC/cxq1hCmOnKs4BkGTj4Pblbh7PNGHTlw+pFXldOcwkhj0LczJ+FEHF7HYmN2SeUY1zeSl2RqaaPXptTnLLw2A32ApQA1slxSMAl+N45RL9dLb1YDeczFN/EASJHhpBW6Z9jVlQttWXqDiLQsMZsKHSZVVXT201oo16+dHiMqMOfsPToYH7mOD3UIy1lr45DB71nsTsLg1ya7k3AQBsjd8jOwNayH/ADvrHLE9aEitIPJ5bIvYbhEv4eX8HxcLAnykY4ekqHl+kgryOtYr3YxyqdhH9mNw94D2EmZY7b1JBXAQcbadJmUXSUNTPeVuV+ZcshCb79ioIlMBq0qQ+Ky1YhMwNqvrssXu/pcx/CCUWEN1tvv+Usr01/Wva58kQv4ztoXOT5YnSVHW1fjxtI3PlBgCBWugrdAmSK7O1Nkqs1xyvkKPLjDnkJZmu9G89Ro4TcatxSxqERo6AsZPpdxznepwkvRW0SvNp6dzTu+50gUitbLls93qzfx9kOFIvk/U9GVnQFLuOJYYxKb5tl8hojENjBvYQhV7COTt+5x03r8jkDFl8+//toLUUo3vvmubjMfqkNp79IYrR8zm4kfQioO/4E6lEwaQHsXSpHjG7yDXR2K+xh9IEdxN1gZf6jaNWX8USgtwJISad0YfxRl2i0rbD6UyReMP6IyYlgYf/hsjD8c9BlYUiKNm/oMGkIpulmmnrn2RuENbUtK2IsLFxCntsuJLozN1pRI69Y8pdmqErn8cDyh7tkeT+Si9TAz3U2SqSqR1k2dUCOvkFUlcvnRJ4U3tKsqSQC6F8doz2Dx5hgtJQ4Yj9HSZYu4PkY77SSLOUY7FVWLOUaT1tUxmsRm2nkYPMhs8+IYTYLjMVq6fHbHw6+UyPCzx2iJKk/qGC0lwCzjlVrcnKStxsIWj+yHK5bVcMWyGq7zIH4/XMpLRA1X9KvhktbVcElsGpeYlsPF5sVwSXAcrudjLIYrlrvhimU1XLGshiuW/XCtxmLOj714hVrfjAZJFrAyntvHUA0r45LMXZEyQkYRviVlBIUHk5UREraCYGXIbe5ZGaHKQC5YGechszO0jPOHqqFlBALGC1qGLyheVLSMZ3ITi6FlSOualiHRgZbx7EniOHIKGLxKiGZeRujg62SdwX05rTOU57axzmhwtJ55Gf7yPlvyMnzVgL7wMgIdtxQv49mvde+dERJxV/IyQtGUAeFlyFCveBmraTCf9cO+evamYsScM7oMUGwfWhQPtPZGxKqauaYE3APdSNzsTXXmtH7pTSWRlTeVHE0P3lRyP8NeydFde+tN9eNQuP/v13/5Xw==';f['aws/compute.xml'] = '7VxZcxy3Ef4rW/wBo0HjmEGVpCrHVip+cCoVP/h5Ta1NlimSxcMU/30A9IHBMctdikpim0+i0ItG4+jjazTm7e3Z9np3u7ncftq9O/n0+deb7fXZsH24HU6vPl3f3+1O3r9NP6FffHtxdf/xp+3d6dnJ5uzdibWDtiebh/CXHkZ1stneXu9O796d/L69Od/+fLE72dze3Vz9tns4/3gXfn9+eba7Ob8LTE+vLi/DL8+vLm/Tf8LPtueXd5vP707GIbB8DP+ebK7Drz/t7nY36X8owj9P3qz1UP0eP/Z6jJpGiX17vX7q9fLwRK8PnV57ZesMo/Z2SCO8Kdbv5+3pb7/eXN1ffnz/9ia05lGNH8AtNyhsghvGOfFYdvvl6mYnf59fXOC2vcn8IHWPcjnec6UGA4klzINRkWe/a1htw1uK/WaT+hkzTG61n54G0KkfmEFPVd/A1TRd3yzn8Sad3LUDvPnmYnvzCY+xH7z6asd4MKa/lae7y9DwQsfZPOc06/+Lw1yLNeu9+n+gAsBAuhoOCu1u58AeqQTjADMydYOx9YmEYZ6aI3m9vTt7//bT1e+7dKbnYWbN1BB/fHF+mShRVZ8kKTskyun9TeSnAk0PNqjGY/hTzYMLP/sMMgykHmE5P2tp09S24N8KdXpxdZv0CaXvLgYehaAxM6xYmKLb7uLi/PoWx3PDrJYGIfCYU0/862it/vAtbqtFxg/JM01/IHd0tPKq4zV3GMV5pb+6s/lpf0c/2cNVn37+xIgf9ndcH/EJO1DqHR1WFc9HoT8j6o41SY2i7gTDYVB36DhF5bGoOdiyUB07xnP2uKBk1kEhjCP2xAn4ZCb2NKaWRr0QUUawPELFHdsVC5x404iQ5pUYj8x4LJjSkS440sRxUT4jj0dZkM8aGzRJwqzqlS0tx2H29RAF33zzw/evSv6q5HuUXJTxv3XW/6JWhHWc193YwSD3ENDPReiiQsQET5H0OJTxjvBbpwi7dWFCjKZcf8Q9pBDPWd0fcw9JGD7L/kl8qYeJlgQGBDxz1P5gxvzgYBUpKXheP206/eCojsoEKH1EzzzFZc+j5nhgx4Ocynd/21xdbr4Phml7ebpD/zINHjGzU8P0P3cwwTrOX9HHBPbP8jJabL4+zstwR2+P8jLz/OSAH9Y9qH8R/6JtAn1RXYKJ9KUljUSNpjRSyU5zK6RWTb6FW3VqBbePk9KZkxNOo8qcPHEK8LOWKSAxMu/RklrkZGBwntzdHCFr4hRBJvknbC39hEJLp3If9BTkhcCnFETphUKjtn/kWPal/HvYB/IugTTZZrsnJQ4edHNwwuo41xyc0IooWwbpnM7nOKMqpuIt09Og5u5mRsrUbGjKryrJ4lHQkpKIgK0ctZg0vXSEJ84/ZE4GDzhy0nw4TPwhc9KZkzKZk28CqZipIE5G52PmhVNcwMRJxykxJzNXnCB5COJEWhUaUzyLjCwQIxhsFgmjh4KR0pmRI04KDwRxmomTwiQQcnKNeoISRpmPMsLHKeEz5qm5Otoc04DMCIjTGM+acDJiMWzeOGeqxJSXuJX7AGaYbI8T254eJ9rskpMOnNgeBn1jBXHJ1j+irmhXaaFHBQkHsT6xgfNIE4/6piWPBlbUHDiT5qOlZVWfqr0I5lWxPk8p4ZgmbuPuIycMMMikjWw0Umu5GbNMnPsARiVZptEjJ24ly+CXE6c45jGtiaoOsxvj+cbVDex4x+eoP7y6k65Nu1iDfZnC0pLwJidfpKvlN3S6FVNx+R3mqCF5N5jzHu/xnkRVKUplb8L8kamy7blLrbVSTXlllBWD4VmrbDpQvDIg587VG+lx89Haj1o20maP7rVspGhVOzumqrQi1pNMHq1M5KSSPatlGqOG1ObQG1lxdms8Z8j7UK2T7N2ejT8o9P5wsb29Oz/dfP8viuGVT1F3dA32haLur5JyOThcNGlK0d6Q0xdLNLEqmKE0UdJFR1+0QimDqnh2oEsB22ZDWAWrn85o/TIhH5TggsiVq8HRMeHATBymSfqRYjMSPDNQyTqnWAx/vwzHdBGNmdqxUeDlksGNHYkZRJGnZvC5ia5oZPoxyHTwL/LSNPuoM8PcW8KV5nRmu1tRd1iehXUKCf/VUqglzl3mUSMgeE2kviZSX29L/iS3Jazqt1zhYDG/RzHlX1vXD9UDMJx3CkfSViErEzFQBwqcgaA+yKLHowAT/lZza3lkNTkN3wwSxvU8iM9R2izwl4fWuVUvxJVBZh4klj6s44wgPpUQ8MhxTph6ItXjMbB16RQnXi0hLVaL1kVldpDXEGRknRv1QlgZo7MjX57kAJBKI3bPC8mJiFuuKA4BjUAZsO6DVD50B4Im2FpeFtDqrFJUtFIlLkKSwqw3gxkjhkulvH0KgkDKO2Ao9l5ZRMqZsojNtCSfiBUyZWjNo+rcqrOcMgLwCEYPFb5kGk6GN57HjbPJfoMl1dy63HnZoz2kvH0Hw1KfspmPSaQaARJNYekQR6CUa4F0a8RQUgH+VnNrGRYarM/aQ6pSQ0xI8TOnvQLkG33hsTSWlzUuS/dcFjJqXZaSxDS5LN26rIArVT8YiFdHvKs4AGBUyylq4mmIAfOVhV+n5C35UrDJ7nDzcH53tqnLWF8rCl4D4T9dRYHzR4fafC1UxtrOrwfbPMjXqSpwlNcIOLsYFzCdto9i5gqbZ3Z7SMyvliWmO9HBhSCnLAEwmE7fR2kGzOz2kJhfLUuIicRu6voGyD1BacYTbusU4VZLEis+cbVtKp9YbkQmKcprd0hQk2CVBB4vM3qk+RCSWifVwmdSTHxCX4yGlIVvSfoAkojxZSUkfpBUv8aEqolX/GdYqbxe0THjjVeavVZlx5lulrs9QzhmaUlCdFN0nOgiYk1SGjHMHOs5IF1hpyGH6RnV/ZxS/mF7/e/dx3tOdKmEZB7SLQq8Jrp6Yxzh15/3AmA8tmjjRd6/hJNrsTo93hFijbnm1PpximWWDxMe0juYWBFxllDL+uOX3C3LcnRXEr7uuk+5xlSCcqy04+FdjlfGzTf3d1ebH0+3wfb9ig8FYKBKq3Tt8JqVOigoDecCJqmEm+uCRNcnBQDnTBvLqild6vR6RGvsniKBjiZ1Oc7IAUy8dIR+r+BtTJ9ikpZ0BWxIdNf5SAepuw5Np7x6e0jx3n+ucDo9wWlmlXvFnJB+qZSUkxu5kbxvzrbwQzwPnfYghZ9bjLHSLPUWFZe19vhkr0y+tIIennyJF6FyWKZivOC16YlmM2QmRSkLPEWGZD8pLoXvM9xData7I/yX5Skag/ntxf1tfCKISQoMYf4SyfuVEs8Par1LNBLdPnCUbfWcpNVNYRSVoUk1G0j6VzLwnBpXVUbLAuezmqo0kOwrzFJtRTicU2gklU4tS9MDDDHr3JxROX1I+N6kQ0p8B746HyO2I9YVQqKUbgjTodMMQ52xdJyuBClh1HOZrTRSwzZWNsT2kypU05izKlyOhaNoatAiT3VDr+JL75onyTlKlW68VfCS0p2cJPO5Ui6szVi+F6D6KARHVcGayvcpkUrnRc1SjqeoQic0jZxSL53oQAfG1xlcqcXwZQrXD34q0kzhDLpeHtc1lcucx52lxklJjYQmSVGgVPtWOWdFiZPO4pupesjK1RS6vobgPbGGr5945wEtX9oPJ5VRtq6aAb4UamprNV+fOa4pkxyX1JMRU13eavCVhotlVKXDn+i9LMS/asWj+xSjpZrOUOwV/9RyXcOHy+jqsS8xX7VAprJAgRezZQsURtTQsUAhjnF9AxTLyWr7o6G2P9XDZIqWeo3QnxX0c1oOa4BTmLHcAmBFgCqd5cnu+TocUXwRNNpeO2vF4uzRfgXIxGdvzAXyo9x/wShlRmFUW9mvQvwmlSlotIoqJ4mwfSVvONOG7+zGyrgHms/3Un7KFeNW7LvzUjE+eTFiUEbJI0f3ZQhfi9vslipNSbXGWlfPpKJk0mOqIviJtMzUDmHZXngEvnU3RkwF0HZRqTDdInOVaHwrVggUVpuPrm+utcI+ay8mkS+qc0G24wGUVI6W1faL+j9+0W/qKjHfa8dqYcH77Y7EX3SaTe2dYrqXR25KvLUV7xSo8t7ApEtsXMTGWxuz51izTamFbeqvg1vUTBpVZVLpYxQxf1laDiVZEEXPvBbWdsw1/SpVu2KkIzXD7DvMKCW1rrtXLiU9Mdvteoda9Q878OOHRZU5Q+P6uaAWIzjVetAM3wiIFYz4PYu5t978QZS6ub24NeTxQ+SqZgkOZ37Ko8XkhbVnHQqtzY6xpYVql2tB25udntswHEpAHeLKfYhTdY+552vseqOGr1h21eC3f3z39x+7IG5KruRlcBxdXR0D5KjLnxrJWcOupYFyVgqSBcvhhtRwbhKP3yI6ovVBHRErXGeldpmBHQvZIruJP+nTKK8bamBn5WMvGdflh2INroshqu1Cu0xp0B2TlgAvgkdTAjyPl9RNOYoaLPQAnqY89QLgedmKjPF83ogK5nnZhg7S81nmBdjzCI0rsOfTo58+2NPpBcwj912SjFxFj3W77bVrjhT1SNihnUqLm4TUgU55khk98bIu0BNvQYueaM9a9MT7u0BPfAwKAMWNHQyVT1QLoyw79h6McphFrnCUG1wFo0hPGhiV1d+sq79p1X+JpbL6t3BK1L+DqLL2L0BVVn6OUBfKX2M1Yb7SDitz7aMrDJw6MEpqDVQNcL3rw6sA+Gdgd+xtfcEA+0CQFVWtcVBYdA8rOMjzRVYPCHmpjl0AoSA+P7VbACGOcLpAKIvWYKFW6gYO0XPAHtCYKGmq6e59scRrkMjxdw4qdCAmtIZEMe9uS0gUX3u7FhLld4siaXNWxBpUw8/8eLJsj/oyr4AWWboGtwglQhdbJ1fMGnQx+CSthi4ePye2hC7ZD61AF1vrb0fqGsAES6TnFQBj8TVdD8C49P25FQBjOamzxC9WzNESwlgxR2soJpqpLoiJGUmWztcufw2uxHsX38crzUCNJJo/8dbCFVngBrFkSge0WLGqS9xi5YXoErdQ7XoPt1g+xzVw6YjcFDyNfcNsPIOUOhWWXFcXvPgVWz4+1f4FEKaMkGMsIt/XHKc6TMkk19SMm1wPL/XcigxObNRSFC340fAHcpaV4fy+FozsaGjlXGloBSWc+DsXsRUaTjAJJ/7ORXQYNnOi9LiifAJxqhPsCuMz5KSl4jvz0Ur46MxH64bPmBdJs0T5Cia2kmIrfBbJnOr6+VFS2EhlTlplTrNwgnVOXm6wTMpwRT5eMv2QEo6Ri0dYramt4qGEh2EWo84sFL+o9FkQU9efihXnHinYn3ICgt9TjPjBCHxOUb6hHfmDtDGKqaQc5QU+fr0Bb0owqMEknic5AY8tfh6zvtBCiTAPOPHLV/kggMb6NVwxy1XuvvmygLJYH6dyF7wN4mWLWWCVL4S0vLAvay4izfADktqPxIsY3hktnjEO7WVR+bksK7deKP7hV/YSB+DVVrViHLQv7r1GyaQzruYbqpT0611Fgcqfech2BSslq9OlG9QXlUyuauWx/eJNSyw2mfNSWDlgrt45hwlZegTEB3WSy0LAD8omTpPEVp15MRXTyxylMX+8v3O2kUnxA+Puc5qwxhzy8pwhr3yxTHmvji1QwH9v3/8H';f['aws/content_delivery.xml'] = '7VpLbxs5DP4rhveujJ6jAZJctu1psZceely4yTQx6tiB7TTJv1/qOSOOOI6DBXaBTQ/1RN+QIimKIqm5PNyvHvvDYrt66K+WDy93+9XjPVs9H9jNbnvst8e/bvvN+le/f11eX/p346u/b3ZPt1/28NJycX+11C2Tarl4Dk9muVgdHvub49Xy12q/Xn3f9MvF4bjf/eyf17dHeH+9ve/36yMwhXm28OZ6tz34P+C11Xp7XLxcLRuml4tX+F0uHuHth/7Y7/1fQYQ/lxcUBa9TfK1QhBkcXY3i25SCz1N8rknFVdQkPFW1+TZPaDVB+LVK6F8/MePneUJ6Rk94Uazcj92+v9vvnra315ePq+P99eXD7lfvWGrWdJ6jaJk2jnKz3iKEM8vHCPgQgVimwwJYJr34T3s3Db9aSibA717hiUumgPxFhOWFH9GwFsheZBiBH2GZsSWDJlBLASaL1MzwwEBqpkxgwFmrAg8JwshSoa49pWpCbja7Q+/MGKz1Y73ZhB1ygQ0I6uhArKyzy4jtCNJMiDEkmA2yKM54V2oazQtP2vux05Ub1nZBWW1YZ4OyIG7SNmzx8eSWtSfFStDb1dXcaVJd/BE0MXDjBuqQTtLAghlemgJ09Qpyv8ZaBGPEIOZXHtyhDcZIo3X3SSj37mZs5KRYYwMn55YqcAKzeGNL58ei8CHVkbuiYpm3m1VoZgKxYbZYLRk9eg6BZSxEUWA2GWlUaQfwNxvNwOI+ipZ9DRvyJdvPG6ApyZ1qMtA30TOBWsd9zKIBeRO0kVmA7PdZT0sBSc23G0+pZPmJr8uOGWIbyOAGr943hJ2YyfnVa/BB57veXSBex03YMBFDFviQisZSHG1zJxlPEUAaAjp/F3ZkBAbTK16HBhPDS60mISUQwxzT1Znr0pKbRcV45rnyulfDzFKSkNWIX6Peu/l4x9roP7DWtjBMx3h0Ejg+iikhXEXtQE+uCMi4vTU2ZzGXODNKtG7dfKwUKIyO+EokzQhSSJqRoDMQnN0KGSVuqizGGU5BZxwjCGxTX3mYuyOcAp7KFVKwXcOpowQzhQqwUxsKMozL92YDsJeFIrSTIaTUphwC2AwEy1CcNzIrDuGgLYhsOOzepcLI1i2z1AJB0JMEJJlBcTZudY6Vc45kT0HgC5aIEBl6u3aWcV5fH+m2fjKnIBIm6fKFOoQ14CrneBjy5/U7l2cI1W4rlDFgyECMS4jrENbbRXxiQ/KW3CUARXNNoEFCCA/Nuen0IKiiMgSQsyNOtomzwLuUHw3Q1PuMc+8qNBIQHP3kuX0xLr0ufI1OleqLT7vn7Wa3ul18WgP9+vuTq95CAQ/BmIcCPjx9FPD/rwL+++rmZ72AhyjQRJuVKSx4btcVqXostyMwLrc9j1q57cK6jIl+5CeCE4pYKsTpZRot0+hA7tPoSCOyDztOib8cRuvyJHRQ7GUgH5cugzzNeG/m061zUcAHJ5+3j48wkTLyOcggaMRwBkoMJ+KotHrGJWlj4vY00mFEn0YsRtRpJEkwkT5zFRIlzgME6ach5J+BZhhmaCLOQG1cUVplLH09U2U8A80wzBBtHW6Y0YR1RDxEKtaZgWYYJgiLI9q6N3HSzzjlGZEVMUx5i6hPI9Tc8GQOOTeM3V7wueETgoL928oc1LCJPSc0CTke2VCTw9YwtWmIcZeMyMo01HjmQ8wPXm14bR5i3O2drjIPNZ754Pm5ZjbFTN2ijqY4hRiMZG40krhNJFGJEvVPFcFRMkuJIVIJLlvkDl3qjE61UvPjvk4tC45YuAIkTJ2k7DRlVS2LeQlUOGU/hutcgDa4sWByom9dB7/sOXQ6Nbi7Di0Wnmvig01d8+F4ro9LPC7nx/EypXmpccpToFSRsRjqGC87axBEdeoA2pKrYDH9hCJf4X5ca1NvCcfFyVwTcUI55xoEqKiJBanmZYkuYP9EpHH9rqIOT+Nl81nkppIjadG5Ef1wMk8p2OTAlMmfnGpll0dkL2yRq0md/UnhXqJxFXIyftmim841EcfmxGCS2em3QBJD7VsgnHuOxJiBDJVgdv5qLOy2skvkqIc9ittj0cncpYxGqXBs50A8aFqU7+K5sDjuIqzLgRA1uritm1Qp0toFJFG7zWZ+nCZqNAFNagDrL4iq0EQr1BK4GNdv447Au3sFn2/v+sUfu5tV7hHEbvtz6Ed/tAgqc5zRGphVgpbp7a0APjvDWXf4cA7HbNkd1hY1X8UpBI5qVLaDF0udL0t1vCeEnd+lmz7hWqThsjRe8kh/NKHb0uECCB9+A9SMhxtqyDHQ+JOCLt3owoESr+i60MwU/uRVsc2RDCS9PtKiJAYb74xeeTIiHIdC19nOQdIZt1Cqy5f/YE33fYO/oWVJJ+OvX8svJbqptYJ1S3PzE4jr/qKmi1txEaXRvt/rpfHXpUEe6Q8DJ080hfSD6DpsYqV/qmP69bjvVw/r7d1Hy/SjZfqfb5nyasuUz7ZM+b/fMoUQEzMp7T4eQXchuXhVqCTLtSENGdz+M4wrEpGJXVmOK5PurybQVPJ35WUo5qskpEVCCjl83EIhLoNt0WnAdR1y4uePV8oiWvERQ/Rdy7gNcPrDEvfHzW6z2y/8/1fL3774f8up4uTq0Cs64wZzzkN63Mxiz7jIVPJJXULbc2YV5taOXnHaTWjXqizqjCucfbyG38P13w==';f['aws/database.xml'] = '7V3Zbx43kv9XDO17u3k2G4gD7GyywAB7YMcPeVYc7VgY+YCsjO3/fnnUwfvrz3Ywm0nnIZJZYjWPYrHqx2Lxuw+vb9/ffXj29vbN3YubN5/++nj7/vVy+/HD8svt0+3Ptx/ubr7/Lv4N/MmPD7cfnu7/7fbV67ubZ69f3Bi7OHHz7KP/zSzbzbPbD+/vXj29uPn77eP97c8P/o8+PD2++9vdx/tfnvyf3799ffd4/+SZvnr39q3/y/t3bz/Ef/g/u71/+/Ts04ubdTE3zz77nzfP3vu/fnP3dPcY/5Wa8F83z0c1RL/Gy06N9IVQr1fjp7aGmNf4sdeqVUJP0m/d3vw0r7hvg4ovuxXjn1/44o/ziuMvxorPi5n7+fbV3/76+O7Xt798/93726fX33/35t3f73iEjQjyEb7362MoF4ngfxi9GC8wn+SLG7lI7QslidMn5X/1JQpLPIOH+7eRr1mDnH3OKMzaqEVbYA+cJEpmZA/fVFSosibSFwx+oeKeygU2OPKGL8rYr8h4RcZrwRREuuAIHU+D8inx+EwD8kmlAgUtQVb1yD68+3AXJiaN//N8Sv733eMd/X7/8JAW4/P0j1fvHt49Pov/f3HzL/8e/wsMy3kUetl1Wl16cTpvSEYyy7qXfUNi+HVbpEwd9KWrS50U+6JSJ4VYlEgdjYUFH7coZJMq+KrbogUw2RblEhcoDEzUIraSCxAjv90mLsA58lsNN0UlLrGw7pJ1iQvUSD1y0KN9MRLYQGH41ctDPWqRFkm+LTlJLvt+gLTZqmFAFKENFlaVL7Qgmm7RshlqFyS3YLMvu8RB0jBI+yJ37J0CJlAGIy1rJhKaImzkl7hEzmnCnGunPZbWfXKO5CfWkfGDK3TKsxcoQFCqkiSWww20ufwiqVpMxZqp1oUfozQhXrpdzlb6uesT4GN7aFFeLkOb+yQYo9TdrWi9HxU7JIk+Pz88YvCptkM4GNhlKXCwbPk5L3SJqQtNqiiiT3HLiF1dfnxOlB/IrT/XGanVVUgsdZUS8ddSV0k/Snqkq6RZ9FYrK+k3HdNoKyztqyukFvoKuRcKS6al2ldYKu4RlcIKnRW1wsLCnsJCWkcrqTWuwYukWmEhsVBYcl9cra+y4W71ldzS0i4UlrSLVrXGwsK+ykJqqbOQe6m08vlvlZbv1yoapRV6uzdKC0t7Sgtpc0G+Xmkptai+blJmkdsFSho3KndBTmblNSe9LlZeoDRqKfvMhKQWM2r0hNQwpOGZkGrteHnUtYxmZ6/fDnegMaXWnFov2lyg+M1TqIqddRdJatnkgOGE5G2rsuk7SeiEVA8wD9KEdGTsn+dG7/PovJY+7F9+eJl81z3opeC7+maFyT2d1/Yb4gq3Faq4/bjHKi585sdxleFnrnJTddokPsfNUJfaXG/LjvuCX/6wTXmtI2Eb9no7mNiwn1s2QW1toIu4/UZOUCdUT+oLzNrS44vNyp0+79BDM+VeEZKeMDKsyJIiiFJtVLxPeUcZPRlopKSlUXUslZYbHgyG4DoyDaogjx4sFSxUWYMyvaCqtuakQQcDyeDciZpSzeqXeMmtqKQtwAZhKEUFaNGpd4YkRZXggB/MTWfoQCEhaBEhFrAIRAMcDGEqUr0GJFK0p8LCgPkUYAl5pb/ppgmptJ5PBSYV1pHcu2hToSWEhVlz8uGvRuorFfazH/707M9eC9y+fQXA4xbtYq+8rV9G/3Dk0Vu/7jfU3+hRXgs/KgID1XXwI1bcr0IfAdeYfW+i0Pdvgjt68w4ME2+y6drRM8l6F4kKAGEohYUSzDxYKFiqYqm0LSdFnIRiTpY4rYI5wUrx1rur22TJ+fRmvwTd4W0eC0vOuxxuozUnwWtMpSVAKcj9xDoJooTtyjtYuMsw/CmjEv0dw5/fClj28yAlIsubaaZ74w1TqkZwDJsCmeD40rV2Phrp/PqdiaZMbYtw3ckMlK2ZUAVGiadin0KTYeMJpQiXRzAmifAGpknGSScBT5wUCodOm3DipJiT0MxpbxB8J4mTVixmO3HSsBuaiJsgp9rC8dbCbokTrCpfuBlihOCHLzXcJKMaRrgzByqYOF7+Nh4mA3uiL5WOONlmeUpBjJiP0MTHCuKzctdsfcyxxg8iI8ArfClC66FUk8YwljnpxmzRPEg22+5NjxPqnh4nmOySk9rJAvLLy+ECsVHXf05rRdlqFe5pgXhBrCXWc16h42G9KTbIDS1zifBKMoRgqdd2q1evAtfzltCm0HETZj9xSvYFqLQVlcYGKFc2GY46jnVkMkq4TeueOGEpaIbCjgcz5nMcE1EJs12DfKfRtdETiDPuyCzzpZuqVTtpgyugCpjkuBc1Ri5It0BqGn6bvKQELUrHczzZPS15VkrTboL8E1NhWrmLpfWi2nhkhCGFseOqMlGgcGQkyV3to3n/xWCb/OQomkjDO/quaCJpVbW9Q2pClg2Y42ZPWiYhy3pv27QCnlOoQzxE81Tc1rDPkuehGqf1gNl9/AhQq+BeBaHQazhoyi39LSmQHokdt7UGt/aIg/dIqEE7DP1QSXGJFLaXQqEElb9dIvkeWl2T1IC0onPTMNQO3c6WZKKH0GOoDaq8CallSJMyIdFAfUv/69lf7m5/8f97/3D/6vZ0xk5n7CucMXU6Y6czdjpj1ztj9nTGTmfsdMZ+x84YWdcGTzf1CkswMzW1K0nFUrAgLolKng80w7tTRtPq3GH8vXG4tescw8dCY3g7wdAvbaOTAothQ05bFbWAtETamo9ga7d42APfwOC5YDsLbq2g4Mw2xhNdx3RWhOoNFWVoN2k3g3wURI9QWzWZzyqMf9kNq0pSoTcUHnilDyW9QeddctlY/ex03iUaLydtb34h21Y1CZCvcDbPGmWTOFSkBCxIsK6DB8BoHJU3nQ4T7y6RWAoPAwoGAiqjUqpXEhKTDsDl6ntqUShkVH7QWbTbUmm/vxMSggetg6o7uMKaItcEUmmiQSf5UbE00Rgzyn08EZf/H4iL+n0iLiy1WwurWFOSCqndJGnZfWezhrWsZU0uYRwSz0o/7Xjo3lu1gjQwj5DaGgUMmlT1tKwGb31KqUP+UM+X6lfResAtodlF1o5ty0o2249A9HCTare8bbzl6eYbGAuNO2i1Q5sv2KEF79Ac4Y0WgGKjQXUMiomtwaR2A5hsG62gNvbNRDnvGHJMpFID77Q5qI4GlmwV9lRwd5sxS7bLCDJvMtWnwPto94vJVtL28Zsibi/9j19+/nyCbSfYdoJtJ9h2gm0n2HaCbSfYdoJtZ+TDGfnw2/rhcHlU7xXYWZB0pTmRCG4MtN6X4r3lYLBYar1jP7VxeOFmlOA6UB0YrXGcQHVq8uedbi0kxhQ1Y4o7AQNipwativxdU+1T3vexGzu1G+sPR04t4pNQmHzaWg8ZUuVe+ldcCFuU5M9Jg+LCTiBpmuBYWm9TKypgqAPGnybneGM3G6PffZNk6csrvE7WxnwIvI9HpBKvZUc1G9qNcHjLiC2qwVRaSw3e+sQ6aWbQlgvscU+CUuiIaDihgem3J1zRQf5wkjTZABru6MYJq3FwQJpMY7sHpMSwGFgyfAQDKFtm+FiSTOUaE0pYgpOEJXtFM56kua1mZ0RfNqKJIoV1kjxqAofQMYFCYOkqIEQfWPKr/iZe/n9+fvk//3Hebjh9/NPHP338f2IfP7sLLRzcXq7AYIX+z5gi4o3MCniVF0k7bBXZhWJoxITkKiCXEn+Y7EJ6WTlkt7EXSSts1zlJDUhiGbTT/6kSfZJLrmKHnUvu3JRSc7PpXGdGqedrx8wPNUHEcxhIWWJqkpADksIrrg0/mooxhZrdZjPJ5KO2KWXyOaI+AKtBxtIVVoQvxeQzju61+kJZaS1PXXdiJDE3D+RuSYxQH4gEHyAnUaV0gRwrvhG1agzsQF2n5DPwDTxnkuwk+PYIsMlTad3azTAj0INip4uk4eOgaQTf5/Wl5aVkAR5lygBTp6aBdSAq7SFSqpMeyX9A4ypXuqaoAUlEu7TLjyKkW1JHLGrJ2RbKEmHbFDBozSYq5YDRnEuEU8DgTVwbdr4iVVCiRUkuD4ClXdQlim3kEGhJWBA484UOE5O4LMONAL88FpZs9nTQJahG2nnRjfTMDcgHlqbu2b1htO10I94wJ0lX69HAkJAqKOXVKtNQSEqF0s4DXsj2+gN9qXCZfacr0Y6vRFtsqWhsIaSm3FaGRm6l5FoiGzmFyWqEalLD7BsmqyGLKn4OLlaD+41lqTVVXhigpYaWk79jHokZZbXNNGBegpUyBAVLymCrEKYIQm8wN0EnE4+gMcoz8dj61jgWqn5zLKGyIlO7ljAtX4r4US6nEjRZ1mXcHVUD5qmVM4sBsJWmAuGuIGWOJgPhLmFrGVOMdvnFgFkdMLeRZA2gSGeoXGlUaiVY2tToJrOQIth25zZrylDFUqgSKjOQwp1iN1gK9ZqlTEKgDwtVtzlITct3Z0Yrp7pCyVEMxAtXYS4aDvnTPl3i4Xu242lRJf4ha0W2GSko1cZOikVtJIvZpGRD1VHlOLqlKseJAFWO7hSUFqP19cdbodmpoxGeK+15Q0l2yuwL4VRmw31A1RmTaLNskqAx+iQsHUApRzEmwlCMCZZCd9skEhiZ6rWKEDQFTtZaJZuBVqtkbglrFcX5FgNzzF+WJVzsNEjnuQStIf8GD7J498tFotn9MPKTt75wUEgs8MgQZk1l03ZFwOR5onmeaJ4nmueJ5tHrA/llz9KJKC7nylHs816524G09UlB6rc+w3AD9wKFEPvO1dwxKUT5icHV3IbEV3NrhtnV3IbEV3NrhoGkL5Fahiq7WzAi0TidR9RnqPjXHFHPRXQk2OPlMFlEs6U3X7CjZc739sekVqPkOQJavebGem2k8iaKcqJeJ8u8VQ5XZJaeQKGCsN2aNARdhzDtGNkdo8FTBHmAOk+g6gm+PQHF51D6CICfwPZjGLmBno9P4wyZHMKZEwx0hpyO4VYCQiRm2sjQ3p2sYcR1JWPAV+HGG91PyHFjgKUlwdIVyI1Idgfklk1MA2LmgjFzyfi6ZHz9IiaPML4gGF8y4h8ZAWbDN2QICz6GIG8THLuSiSsEqgW1iK8jlSGbyUH4TDB8VqJzguMiDsNzO2W3RuzvCrRwJ4gmQwsTEikZiVRUmLfmMt6pyEqdkzrZ0jGX6Y6HKIjaHsd5ERkuELYMdwYM+RrYGaFqybC2ZFhbAQquGAbPxIKT6W+yhfIFQXiEtWZYPuDyV2H5gP8Dlq+vO1yA44jycMHS3Vo8uVBcqrLDjvwYRAxOSCbHKkzCw5gyHz8/ZuJoLoQ9BPT28t7nkGIGPTs+aD8KPQNaLRnZloxsK9YbKkfDj6eMb7DWAwDtHNY1FjHNWjMjgCwYQC7xaQSbrwGoM7yc8xIfxcsZA85ObRgCZry8iwD34HtEjUv8/jgqvfERyZ7jJoS8Z686OFKfBJTXhw78Gs0cN82AXMZNjwK5GyGBGZCbIcvA/Cpk2VDOA0Su0/sKmjuv6KGGEp+ZIeRTXL0C44seStJceMqPF2KPossMd2cAcwZ3A3Q9gruP4wiToBlFT+KMSU18zjimZxJo04bnfHUw5X8/3r56uDujKc9oyjOa8oym/CNEUxrEtGwVGBPuvMsLFFehJ+HyhbhAEaJN2InAz4QUIcA+wwkpGvIlQ3x0ZkLaIH1CBsYpfYmEo9TYRxueYdXjGO6aiAuUppla0TN+E1LdTG7EhDTqwUYurwtaprSSE54rkJgklRIjBE8I9RJdEvET1ig4ypXDqTSAdUDpKSQMmqKgrHo3EJ8qs+RChkfFFNrrmI4DC/tNQarg1ktiLrmfRWt4ZOpYX1eOejfkUmx0jBD+kANg0NEPpeTIOdkwspoajGckodQ2bngoVVUkXMmJwppoCDd2MdIrkZ9SO1aeztIRFpos4AmplsOAUVyg1MvEN6JaQEUgqrQoDpg5BTyb9ACeoShUI9HvMC3AadAsZ3ST7Gm5CB7XjUVqrzFJGg7VNnPbGFpT1E48c88e9glmLocx1tfqxJ4HVDEjrfnhuI0ZZfKk2j6TXCpHjPA2muAoALnyQ3YlCI0z2X8G0tLDk/VcexJWrnczKfPHYmuSVAOGK57ntCSFoHctWNJgUp6G4kgzd5pe96oXoLePVKla8YJlpkolHytmuhRL+xpM8lEna1PgXmhTFRMg9bWpN1AwHojVafBtNapTxy4pBszswTGpfGGNBy1lLJJ3QOFMb0pq4ISNQmD3jRxcNAspMhoHOirpBgMQBEpkSIpYaKMgJ1ks2SiLhgsvN8LPBCsHS+hq1ppUWneKIAlLgcbBQWfIalXstrP+XkU1bE4REKOqebCXKLoB64GW2rVaxm72ZifMe1hvhV8RvRi+i7hA9dYsbSRjijcnbf127e5KUrH5EcAm+IW1bD9OSD7ux3Q44VpGGz29itMZdlFaOavlTdQhcLjaKw9zdLrJ2traUmVPV1Yv45oEkPdIGl/QRH7H27Lx05/1YrMEf/JaM0klp3daMVIilfXXGhBBEjF2g+0SXmqZSdauNEdZvLKFtjMGb2md7XTfuNOanS5oODoMc5RUjEN6uS3b1QjbGcR5BnGeQZxnEOeXBXG6cWySG0c0uXEQpxsHcbphEKcbBnGacXSXGceE6XEkmR7Hn5lx1JoZx7rpcRCnHsdpTaK7JjFhZ56hM4jz2wZx6qOCPV4Ok0U0W3rzBTta5kUQpxkHcY4feho9D9XVayOVN1GUE/U6WeatcvgCm7r1zRl0zVxzwlwZ6DwIuWYwJ2OuF2DODuqaoRYZ7JqhFodxV0YtGHadYsBDwLr1AdgfyXwAdkgyH+CgR8I+ADskUx+g446wa8TeCLtGB52RzDVib+SCa3Q8pBggwxFiqDMEemPske9iq4MYJvoviHtKxkglY6QN5Fq+dV5ArnJvIFeKSUkAbokMC3EdMEyuCELOURTQdkOMWkHhANdWB6HwCX4+Qd0tPuROpAKuoBUhKeM7HEkAAo1u1eXjA9vcyMfjCcnHEwdONDaGoKVpgoHxwEQB1Ky6wO/w5CW9M/+Zz05QAoi7chOkvE3nUqNKR7CoMYDVgF7lZGnUO2uLUTla7UchKkS1JCNgkhEwxd1TOWp2HKUaY+wTYH4C508OASZHBzYGKHQZTgB9Mzh3ajvVnHBMIDiNj6E0uF2DwB2B7dovXRGaOcaFJ2Ayk3R7iKH5VJMtdIS4r4LFGaXPYXFBbwoh7K64dIjU4ysKju9uM1JfXsIfHxtoQlYoghcPJCQdSCguVHiAceTMw9IFjDEJj1cKJ42Pepwibw/BnoNnPSulOrF59LVpjs4PHzxlNiVyP3BiUETA7G1cgV0yqJahJ8snInZ+7HGFlz2Os5hEZ0xCOsZhIOPYjE5Ex1UPJ41iXSYRMpO4GoQw5yTRwk+jyJ9xuNA4xGgcljQOZZrE73Sifr4qiPTl/Zv3D3c//CmFjSYN+DEihqHV/9iwUfEbxoyK6yNGp734aVRBHA8RFdMvDGNDxfHA0FwaHn0pXFYUZA4GX+djeu5FR5HYA9T7vJIqrLrizbXgTX2MFwZcrOV5pij+SbUAiNmy2oGP6WRs5rVcUEejWtw7bib3bt5Orstf5brTz5KwlN1Ld0YufGxtpuBQNR7Pq2aPJ30+DYc1ybN/fXp6vP/51ycIRU+XdZJOWbdTp/wRdIp3UsAEhPR5H+M1MZOk0nsHxh5aOjKZi69jbdmu1Mp3o6+ulceEjUEmtJtaNAMmpAGzdZDsdSV1s7chSrukW7g7GomS0rYH4AjPDiWlbRftm5xITXAeW5s7vpdJZ5DYIAWFJS7L3rnm03dBMBjwVlzYbw5SBXdBMnfJ3S0bxEM0sWCqvYbFiUWjK06zo4i7h4f79x+SMSspBT5yFgmUeI2/fQNN+CGpQkmqMN31P1XhP68qrFTTRqdTUQjKxx8h78OEFA7XS6yHGE5IxLBRU2sKisDwiFIrKMp4CsETGJhg+HmHnR+8MPQMoem8eGHocU4MpUH+Kcxjs3S5VfGTCVt7nxKjD7BOOofFtzOQv+LSfpuQKrgfkvlzwEjVJh6nw7oqTUzUVfGBhdfZHezZLsYzq2vnj+VhTBJ7FWfJDCckYjgWFRkeVBlJSiTWgiIVP2jCgiLtMpYTmQDsSk6UoBdWsikRixtKCdQohQSZl0LStieTEexCKSPQ27I9ND7HwWYa/nUwYVs1Ydk0j0kDZut8enuXj3k8E7UeUO88GNEMqGtCs7IBNfSCTr7m+JWXbH5D4VAzpRqlvBl6gCUTt7Y1mbhhB0pxw86W7Tl077hyruKCq1XA5o4Zv1QFp/qLDBwYehyyj9FnJPdXN3y7dZPAf1ldUKgXKx+3q35498bv0SdkdUJWJ2R1QlbfALL689PdmxOtOtGq69GqHA+q6nURqy+FMyrD0XaRrnVU1KBbzGBC6hqMnCAwRD1UkbMbHYEnIkT6cVYYOgRdOBSqgckwk0IK+vgkiW9kZvBOEzREQWFzmxYNRcp3IClqDjgrLuw3BamCGy+JueRels3hgfnCUNncjMLLM7Eb3xSdCkoPgKn0dmACpgL3U+v9IbTeThezUAulRB6vUzzETOntW+mpYLUYnDdXXmv20TZzSZ1YNuRy3C6RBsyouKPEHAQ6rw3+lQX2JiqEqGKyTM1BIVCYHE5RR8vie1rhps/eBBqH20GKdIfThDM10aqWwH6sA09U0Rup+JAtFHbbAzTBHZDMW3Jfy/bw+BxwelkuQvY12YjU5V2tqN7M56DYm5HNFrZvl0jEbCwcSjbXoDLhSNRKOCTPKguHjCczA+mQuheGLrOARp4N2bkGzNIhs2vAJB3IvpCOToNYPGQmZCwe2NtKXOXVz47zDByzXUildKZwTFrnM9uJBMzzqPCU8MwKQffseWZdGJ/BxBpCzPJVHzGvehSbq6P5mk81ikk1rDpoTtum8JRi28spFZlocGN4aL7eenEYOpo6kSCgEJz9Gn+bIEhUGeT6C2ur+DT4kdpd0yn9/PD9/wE=';diff --git a/src/main/webapp/js/plantuml/drawio-plantuml.min.js b/src/main/webapp/js/plantuml/drawio-plantuml.min.jsindex bc668d474..9bd338296 100644--- a/src/main/webapp/js/plantuml/drawio-plantuml.min.js+++ b/src/main/webapp/js/plantuml/drawio-plantuml.min.js@@ -1,178 +1,301 @@-var PlantUml=(()=>{var Es=Object.defineProperty;var gv=Object.getOwnPropertyDescriptor;var pv=Object.getOwnPropertyNames;var cv=Object.prototype.hasOwnProperty;var hf=(Or,_r)=>{for(var qr in _r)Es(Or,qr,{get:_r[qr],enumerable:!0})},dv=(Or,_r,qr,nr)=>{if(_r&&typeof _r=="object"||typeof _r=="function")for(let H of pv(_r))!cv.call(Or,H)&&H!==qr&&Es(Or,H,{get:()=>_r[H],enumerable:!(nr=gv(_r,H))||nr.enumerable});return Or};var yv=Or=>dv(Es({},"__esModule",{value:!0}),Or);var wv={};hf(wv,{default:()=>Cv});var Ds={};hf(Ds,{ActivityParser:()=>Ui,ArchimateParser:()=>hs,C4Parser:()=>gs,ClassParser:()=>rs,ComponentParser:()=>es,GanttParser:()=>os,JsonParser:()=>ss,MindmapParser:()=>ns,NetworkParser:()=>us,ObjectParser:()=>ts,PlantUml2Drawio:()=>Ki,PlantUml2Png:()=>cf,PlantUml2Svg:()=>Ti,PlantUmlCellFactory:()=>Ci,PlantUmlLexer:()=>gf,PlantUmlParser:()=>Wn,PlantUmlPreprocessor:()=>Li,PlantUmlUnsupported:()=>li,SaltParser:()=>vs,SequenceParser:()=>Yi,StateParser:()=>Xi,TimingParser:()=>is,UseCaseParser:()=>as,WbsParser:()=>ls,YamlParser:()=>fs,mxPlantUmlToDrawio:()=>pf});var gf=(function(){function Or(_r){this.input=_r,this.pos=0,this.line=1,this.col=1,this.len=_r.length}return Or.prototype.peek=function(_r){return this.input[this.pos+(_r||0)]||""},Or.prototype.peekStr=function(_r){return this.input.substring(this.pos,this.pos+_r)},Or.prototype.isEof=function(){return this.pos>=this.len},Or.prototype.advance=function(_r){_r=_r||1;for(var qr=0;qr<_r&&this.pos<this.len;qr++)this.input[this.pos]===`-`?(this.line++,this.col=1):this.col++,this.pos++},Or.prototype.skipInlineWhitespace=function(){for(;this.pos<this.len;){var _r=this.input[this.pos];if(_r===" "||_r===" ")this.pos++,this.col++;else break}},Or.prototype.skipWhitespace=function(){for(;this.pos<this.len;){var _r=this.input[this.pos];if(_r===" "||_r===" "||_r==="\r"||_r===`-`)this.advance(1);else break}},Or.prototype.skipLineComment=function(){for(;this.pos<this.len&&this.input[this.pos]!==`-`;)this.pos++,this.col++},Or.prototype.skipBlockComment=function(){for(this.advance(2);this.pos<this.len-1;){if(this.input[this.pos]==="'"&&this.input[this.pos+1]==="/"){this.advance(2);return}this.advance(1)}this.pos=this.len},Or.prototype.skipWhitespaceAndComments=function(){for(;this.pos<this.len;){var _r=this.input[this.pos];if(_r===" "||_r===" "||_r==="\r"||_r===`-`)this.advance(1);else if(_r==="'")this.skipLineComment();else if(_r==="/"&&this.input[this.pos+1]==="'")this.skipBlockComment();else break}},Or.prototype.readQuotedString=function(){var _r=this.input[this.pos];if(_r!=='"'&&_r!=="'"&&_r!=="`")return null;var qr=this.pos+1,nr="";for(this.advance(1);this.pos<this.len;){var H=this.input[this.pos];if(H==="\\"&&this.pos+1<this.len)nr+=this.input[this.pos+1],this.advance(2);else{if(H===_r)return this.advance(1),nr;nr+=H,this.advance(1)}}return nr},Or.prototype.readLine=function(){for(var _r=this.pos;this.pos<this.len&&this.input[this.pos]!==`-`;)this.pos++,this.col++;var qr=this.input.substring(_r,this.pos);return this.pos<this.len&&this.advance(1),qr},Or.prototype.readIdentifier=function(){var _r=this.input[this.pos];if(!(_r>="a"&&_r<="z"||_r>="A"&&_r<="Z"||_r==="_"))return null;for(var qr=this.pos;this.pos<this.len;){var nr=this.input[this.pos];if(nr>="a"&&nr<="z"||nr>="A"&&nr<="Z"||nr>="0"&&nr<="9"||nr==="_")this.pos++,this.col++;else break}return this.input.substring(qr,this.pos)},{create:function(_r){return new Or(_r)}}})();var Li=(function(){function Or(t){return t.replace(/\r\n|\r/g,`-`)}function _r(t){if(t==null||typeof t!="string")return t;t=Or(t);for(var e=t.length,n=[],l=0,A=0;l<e;){var D=t.charAt(l);A===0?D==='"'?(n.push(D),A=1,l++):D==="/"&&l+1<e&&t.charAt(l+1)==="'"?(A=3,l+=2):D==="'"&&(l===0||t.charAt(l-1)===" "||t.charAt(l-1)===" "||t.charAt(l-1)===`-`)?(A=2,l++):(n.push(D),l++):A===1?D==="\\"&&l+1<e?(n.push(D),n.push(t.charAt(l+1)),l+=2):D==='"'||D===`-`?(n.push(D),A=0,l++):(n.push(D),l++):A===2?(D===`-`&&(n.push(D),A=0),l++):D==="'"&&l+1<e&&t.charAt(l+1)==="/"?(A=0,l+=2):(D===`-`&&n.push(D),l++)}return n.join("")}function qr(t){if(t=t.replace(/^\s+|\s+$/g,""),t.length===0)return"";if(t.charAt(0)==='"'){for(var e=t.length-1;e>0&&t.charAt(e)!=='"';)e--;if(e>0){var n=t.substring(1,e);return n.replace(/\\"/g,'"').replace(/\\\\/g,"\\")}return t}return/^-?\d+$/.test(t)?parseInt(t,10):/^-?\d*\.\d+$/.test(t)?parseFloat(t):t}function nr(t,e){var n=t.replace(/^\s+|\s+$/g,"");if(n.length===0)return"";var l=n.charAt(0),A=l==="$"||l==="%"||l==="("||l==='"'||l==="'"||l==="-"||l==="!"||l==="."||l>="0"&&l<="9"||/^(?:true|false)\b/.test(n),D=n.match(/^([A-Za-z_][\w]*)/);if(!A&&D!=null&&e!=null&&e.defines!=null&&Object.prototype.hasOwnProperty.call(e.defines,D[1])&&(A=!0),!A&&D!=null&&e!=null&&e.functions!=null&&Object.prototype.hasOwnProperty.call(e.functions,D[1])&&(A=!0),A){var V=Z(n,e||{});if(V.complete)return V.value}return qr(t)}function H(t,e){return t.replace(/%([A-Za-z_][\w]*)%/g,function(n,l){return Object.prototype.hasOwnProperty.call(e,l)?String(e[l]):n})}function F(t,e){if(t==null||typeof t!="string")return t;e=e||{};var n={};if(e.variables!=null)for(var l in e.variables)e.variables.hasOwnProperty(l)&&(n[l]=e.variables[l]);for(var A=t.split(`-`),D=[],V=/^(\s*)!\$([A-Za-z_][\w]*)\s*=\s*(.*)$/,Q=0;Q<A.length;Q++){var yr=H(A[Q],n),hr=yr.match(V);if(hr!=null){n[hr[2]]=nr(hr[3],{defines:e.defines||{},paramDefines:e.paramDefines||{},variables:n}),D.push("");continue}D.push(yr)}e.variables==null&&(e.variables={});for(var ye in n)n.hasOwnProperty(ye)&&(e.variables[ye]=n[ye]);return D.join(`-`)}function R(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function E(t){if(t.length===0)return null;for(var e=t.slice().sort(function(A,D){return D.length-A.length}),n=[],l=0;l<e.length;l++)n.push(R(e[l]));return new RegExp("\\b("+n.join("|")+")\\b","g")}function O(t,e,n){return n==null?t:t.replace(n,function(l){return e[l]})}function C(t){if(t=t.replace(/^\s+|\s+$/g,""),t.length===0)return[];for(var e=t.split(","),n=[],l=0;l<e.length;l++)n.push(e[l].replace(/^\s+|\s+$/g,""));return n}function B(t,e){for(var n=0,l=null,A=t.length,D=e;D<A;D++){var V=t.charAt(D);if(l!=null){V==="\\"&&D+1<A?D++:V===l&&(l=null);continue}if(V==='"'||V==="'")l=V;else if(V==="(")n++;else if(V===")"&&(n--,n===0))return D}return-1}function _(t){var e=[],n=t.length;if(n===0)return e;for(var l="",A=0,D=null,V=0;V<n;V++){var Q=t.charAt(V);if(D!=null){l+=Q,Q==="\\"&&V+1<n?(l+=t.charAt(V+1),V++):Q===D&&(D=null);continue}Q==='"'||Q==="'"?(D=Q,l+=Q):Q==="("?(A++,l+=Q):Q===")"?(A--,l+=Q):Q===","&&A===0?(e.push(l.replace(/^\s+|\s+$/g,"")),l=""):l+=Q}return e.push(l.replace(/^\s+|\s+$/g,"")),e}function g(t){for(var e=_(t.replace(/^\s+|\s+$/g,"")),n=[],l=0;l<e.length;l++){var A=e[l].match(/^\s*\$?([A-Za-z_][\w]*)(?:\s*=\s*(.*))?$/);A!=null&&n.push({name:A[1],defaultExpression:A[2]!=null?A[2]:null})}return n}function w(t){var e=t.match(/^\s*!(?:(unquoted)\s+)?function\s+(\$?[A-Za-z_][\w]*)\s*\(/i);if(e==null)return null;var n=t.indexOf("(",e.index),l=B(t,n);if(l<0)return null;var A=t.substring(l+1).replace(/^\s+|\s+$/g,""),D=null;if(A.length>0){var V=A.match(/^!?return\b(.*)$/i);if(V==null)return null;D=V[1].replace(/^\s+|\s+$/g,"")}return{name:e[2].replace(/^\$/,""),params:g(t.substring(n+1,l)),unquoted:e[1]!=null,inlineReturn:D}}function d(t){if(t==null)return[];if(t=t.replace(/^\s+|\s+$/g,""),t.length===0)return[];var e=t.charAt(0),n=t.charAt(t.length-1);if((e==="["&&n==="]"||e==="("&&n===")")&&(t=t.substring(1,t.length-1).replace(/^\s+|\s+$/g,"")),t.length===0)return[];for(var l=_(t),A=[],D=0;D<l.length;D++)A.push(qr(l[D]));return A}function c(t,e,n){if(e.length===0)return t;for(var l={},A=0;A<e.length;A++){var D=A<n.length?n[A]:"";D.length>=2&&D.charAt(0)==='"'&&D.charAt(D.length-1)==='"'&&(D=D.substring(1,D.length-1)),l[e[A]]=D}for(var V=e.slice().sort(function(ae,We){return We.length-ae.length}),Q=[],yr=0;yr<V.length;yr++){var hr=V[yr];hr.charAt(0)==="$"?Q.push("\\$"+R(hr.substring(1))+"(?![\\w])"):Q.push("\\b"+R(hr)+"\\b")}var ye=new RegExp("("+Q.join("|")+")","g");return t.replace(ye,function(ae,We){return l[We]})}function o(t,e){for(var n="",l=0,A=t.length,D=/[A-Za-z_]/,V=/[A-Za-z0-9_]/;l<A;){var Q=t.charAt(l);if(Q==="$"&&l+1<A&&D.test(t.charAt(l+1))){var yr=l;for(l++;l<A&&V.test(t.charAt(l));)l++;var hr=t.substring(yr,l);if(e.hasOwnProperty(hr)&&l<A&&t.charAt(l)==="("){var ye=B(t,l);if(ye<0){n+=hr;continue}var ae=t.substring(l+1,ye),We=_(ae),ze=e[hr];n+=c(ze.body,ze.params,We),l=ye+1}else n+=hr;continue}if(D.test(Q)){for(var Na=l;l<A&&V.test(t.charAt(l));)l++;var zr=t.substring(Na,l);if(e.hasOwnProperty(zr)&&l<A&&t.charAt(l)==="("){var ea=B(t,l);if(ea<0){n+=zr;continue}var Qe=t.substring(l+1,ea),ve=_(Qe),De=e[zr];n+=c(De.body,De.params,ve),l=ea+1}else n+=zr}else n+=Q,l++}return n}function p(t,e,n){for(var l="",A=0,D=t.length,V=/[A-Za-z_]/,Q=/[A-Za-z0-9_]/;A<D;){var yr=A,hr=!1;if(t.charAt(A)==="$"&&A+1<D&&V.test(t.charAt(A+1)))hr=!0,A++;else if(!V.test(t.charAt(A))){l+=t.charAt(A),A++;continue}for(var ye=A;A<D&&Q.test(t.charAt(A));)A++;var ae=t.substring(ye,A);if(Object.prototype.hasOwnProperty.call(e,ae)&&A<D&&t.charAt(A)==="("){var We=B(t,A);if(We>=0){var ze=t.substring(yr,We+1),Na=S(ze,n);l+=Na==null?"":String(Na),A=We+1;continue}}l+=(hr?"$":"")+ae}return l}function h(t,e){return t.replace(/\$([A-Za-z_][\w]*)/g,function(n,l,A,D){if(D.charAt(A+n.length)==="(")return n;if(Object.prototype.hasOwnProperty.call(e,l)){var V=e[l];return typeof V=="string"&&/^\$?[A-Za-z_][\w]*\s*\(/.test(V)?n:String(V)}return n})}function v(t,e){if(t==null||typeof t!="string")return t;e=e||{};var n={},l={};if(e.defines!=null)for(var A in e.defines)e.defines.hasOwnProperty(A)&&(n[A]=e.defines[A]);if(e.paramDefines!=null)for(var D in e.paramDefines)e.paramDefines.hasOwnProperty(D)&&(l[D]=e.paramDefines[D]);var V=t.split(`-`),Q=[],yr=/^\s*!define\s+([A-Za-z_][\w]*)\(([^)]*)\)(?:[ \t]+(.*))?$/,hr=/^\s*!define\s+([A-Za-z_][\w]*)(?:[ \t]+(.*))?$/,ye=/^\s*!undef\s+([A-Za-z_][\w]*)\s*$/,ae=/^\s*!definelong\s+([A-Za-z_][\w]*)(?:\(([^)]*)\))?\s*$/,We=/^\s*!enddefinelong\s*$/,ze=/^\s*!procedure\s+\$([A-Za-z_][\w]*)(?:\(([^)]*)\))?\s*$/,Na=/^\s*!endprocedure\s*$/,zr=E(k(n)),ea=!1,Qe=null,ve=null,De=null;function Ka(){var Xa=De.join(`-`);ve!=null?(l[Qe]={params:ve,body:Xa},n.hasOwnProperty(Qe)&&(delete n[Qe],zr=E(k(n)))):(n[Qe]=Xa,zr=E(k(n)),l.hasOwnProperty(Qe)&&delete l[Qe]),ea=!1,Qe=null,ve=null,De=null}for(var Ya=0;Ya<V.length;Ya++){var Jt=V[Ya],Ce;if(ea){if(We.test(Jt)||Na.test(Jt)){Ka(),Q.push("");continue}De.push(Jt),Q.push("");continue}if((Ce=Jt.match(ae))!=null){ea=!0,Qe=Ce[1],ve=Ce[2]!=null?C(Ce[2]):null,De=[],Q.push("");continue}if((Ce=Jt.match(ze))!=null){ea=!0,Qe="$"+Ce[1],ve=C(Ce[2]||""),De=[],Q.push("");continue}if((Ce=Jt.match(yr))!=null){var La=Ce[1],Ft=Ce[3]!=null?Ce[3].replace(/\s+$/,""):"";l[La]={params:C(Ce[2]),body:Ft},n.hasOwnProperty(La)&&(delete n[La],zr=E(k(n))),Q.push("");continue}if((Ce=Jt.match(hr))!=null){var Ia=Ce[2]!=null?Ce[2].replace(/\s+$/,""):"";n[Ce[1]]=Ia,zr=E(k(n)),l.hasOwnProperty(Ce[1])&&delete l[Ce[1]],Q.push("");continue}if((Ce=Jt.match(ye))!=null){n.hasOwnProperty(Ce[1])&&(delete n[Ce[1]],zr=E(k(n))),l.hasOwnProperty(Ce[1])&&delete l[Ce[1]],Q.push("");continue}var Za=o(Jt,l);Q.push(O(Za,n,zr))}ea&&Ka(),e.defines==null&&(e.defines={});for(var Sn in e.defines)e.defines.hasOwnProperty(Sn)&&!n.hasOwnProperty(Sn)&&delete e.defines[Sn];for(var _a in n)n.hasOwnProperty(_a)&&(e.defines[_a]=n[_a]);e.paramDefines==null&&(e.paramDefines={});for(var hn in e.paramDefines)e.paramDefines.hasOwnProperty(hn)&&!l.hasOwnProperty(hn)&&delete e.paramDefines[hn];for(var Qn in l)l.hasOwnProperty(Qn)&&(e.paramDefines[Qn]=l[Qn]);return Q.join(`-`)}function k(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function S(t,e){return t==null?"":Z(t,e||{}).value}function Z(t,e){if(t==null)return{value:"",complete:!0};var n={text:String(t),pos:0,config:e||{},supported:!0};U(n);var l=gr(n);return U(n),{value:l,complete:n.supported&&n.pos===n.text.length}}function U(t){for(;t.pos<t.text.length;){var e=t.text.charAt(t.pos);if(e===" "||e===" ")t.pos++;else break}}function vr(t,e){return t.text.substr(t.pos,e.length)===e}function G(t,e){return vr(t,e)?(t.pos+=e.length,!0):!1}function fr(t){if(typeof t=="number")return t;if(typeof t=="boolean")return t?1:0;if(t==null||t==="")return 0;var e=parseFloat(t);return isNaN(e)?0:e}function j(t){return typeof t=="boolean"?t:typeof t=="number"?t!==0:t==null?!1:typeof t=="string"?!(t===""||t==="false"||t==="0"):!!t}function lr(t){return typeof t=="number"?!0:typeof t=="string"?/^-?\d+(?:\.\d+)?$/.test(t):!1}function dr(t,e,n){var l,A;switch(lr(t)&&lr(e)?(l=fr(t),A=fr(e)):(l=String(t),A=String(e)),n){case"==":return l===A;case"!=":return l!==A;case"<":return l<A;case">":return l>A;case"<=":return l<=A;case">=":return l>=A}return!1}function gr(t){for(var e=or(t);U(t),!!G(t,"||");){var n=or(t);e=j(e)||j(n)}return e}function or(t){for(var e=ar(t);U(t),!!G(t,"&&");){var n=ar(t);e=j(e)&&j(n)}return e}function ar(t){var e=u(t);U(t);for(var n=["==","!=","<=",">=","<",">"],l=0;l<n.length;l++)if(G(t,n[l])){var A=u(t);return dr(e,A,n[l])}return e}function u(t){for(var e=z(t);;){U(t);var n=t.text.charAt(t.pos);if(n!=="+"&&n!=="-")break;t.pos++;var l=z(t);n==="+"?typeof e=="string"||typeof l=="string"?e=String(e)+String(l):e=fr(e)+fr(l):e=fr(e)-fr(l)}return e}function z(t){for(var e=N(t);;){U(t);var n=t.text.charAt(t.pos);if(n!=="*"&&n!=="/")break;t.pos++;var l=N(t);if(n==="*")e=fr(e)*fr(l);else{var A=fr(l);e=A===0?0:fr(e)/A}}return e}function N(t){U(t);var e=t.text.charAt(t.pos);return e==="-"?(t.pos++,-fr(N(t))):e==="!"&&t.text.charAt(t.pos+1)!=="="?(t.pos++,!j(N(t))):pe(t)}function pe(t){if(U(t),t.pos>=t.text.length)return"";var e=t.text.charAt(t.pos);if(e==="("){t.pos++;var n=gr(t);return U(t),t.text.charAt(t.pos)===")"&&t.pos++,n}if(e==='"'||e==="'")return Zr(t);if(e==="$"){t.pos++;var l=Hr(t);return l===""?"":(U(t),t.text.charAt(t.pos)==="("?Pr(l,t,!1):Pe(l,t.config))}if(e==="%"){var A=t.pos;t.pos++;var D=Hr(t);return D!==""&&t.text.charAt(t.pos)==="%"?(t.pos++,Pe(D,t.config)):D!==""&&t.text.charAt(t.pos)==="("?Pr(D,t,!0):(t.pos=A,"")}if(e>="0"&&e<="9"||e===".")return jr(t);if(e>="A"&&e<="Z"||e>="a"&&e<="z"||e==="_"){var V=Hr(t);return V==="true"?!0:V==="false"?!1:(U(t),t.text.charAt(t.pos)==="("?Pr(V,t,!1):t.config.variables!=null&&Object.prototype.hasOwnProperty.call(t.config.variables,V)?t.config.variables[V]:Ae(V,t.config))}return""}function Hr(t){var e=t.pos,n=t.text.charAt(t.pos);if(!(n>="A"&&n<="Z"||n>="a"&&n<="z"||n==="_"))return"";for(t.pos++;t.pos<t.text.length&&(n=t.text.charAt(t.pos),n>="A"&&n<="Z"||n>="a"&&n<="z"||n>="0"&&n<="9"||n==="_");)t.pos++;return t.text.substring(e,t.pos)}function jr(t){for(var e=t.pos,n=!1;t.pos<t.text.length;){var l=t.text.charAt(t.pos);if(l>="0"&&l<="9")t.pos++;else if(l==="."&&!n)n=!0,t.pos++;else break}var A=t.text.substring(e,t.pos),D=parseFloat(A);return isNaN(D)?0:D}function Zr(t){var e=t.text.charAt(t.pos);t.pos++;for(var n="";t.pos<t.text.length;){var l=t.text.charAt(t.pos);if(l===e)return t.pos++,n;if(l==="\\"&&t.pos+1<t.text.length){n+=t.text.charAt(t.pos+1),t.pos+=2;continue}n+=l,t.pos++}return n}function Pe(t,e){return e.variables!=null&&Object.prototype.hasOwnProperty.call(e.variables,t)?e.variables[t]:""}function Ae(t,e){return e.defines!=null&&Object.prototype.hasOwnProperty.call(e.defines,t)?e.defines[t]:""}function be(t,e){return!!(e.defines!=null&&Object.prototype.hasOwnProperty.call(e.defines,t)||e.paramDefines!=null&&Object.prototype.hasOwnProperty.call(e.paramDefines,t))}function Mr(t){return/^(?:newline|n|breakline|true|false|not|boolval|intval|string|strlen|size|upper|lower|substr|strpos|mod|function_exists|variable_exists|get_variable_value|set_variable_value|call_user_func)$/.test(t)}function Pr(t,e,n){if(e.pos++,n&&(t==="newline"||t==="n"||t==="breakline")&&(U(e),e.text.charAt(e.pos)===")"))return e.pos++,`-`;if(n&&(t==="true"||t==="false")&&(U(e),e.text.charAt(e.pos)===")"))return e.pos++,t==="true";if(n&&Mr(t)){var l=e.pos-1,A=B(e.text,l);if(A<0)return e.supported=!1,e.pos=e.text.length,"";for(var D=e.text.substring(l+1,A),V=_(D),Q=[],yr=0;yr<V.length;yr++)Q.push(nr(V[yr],e.config));switch(e.pos=A+1,t){case"not":return!j(Q[0]);case"boolval":return j(Q[0]);case"intval":return parseInt(Q[0],10)||0;case"string":return Q[0]==null?"":String(Q[0]);case"strlen":case"size":return Q[0]==null?0:String(Q[0]).length;case"upper":return Q[0]==null?"":String(Q[0]).toUpperCase();case"lower":return Q[0]==null?"":String(Q[0]).toLowerCase();case"substr":{var hr=Q[0]==null?"":String(Q[0]),ye=fr(Q[1]);return Q.length>2?hr.substr(ye,fr(Q[2])):hr.substr(ye)}case"strpos":return String(Q[0]==null?"":Q[0]).indexOf(String(Q[1]==null?"":Q[1]));case"mod":{var ae=fr(Q[1]);return ae===0?0:fr(Q[0])%ae}case"function_exists":{var We=String(Q[0]||"").replace(/^[\$%]/,"");return Mr(We)||e.config.functions!=null&&Object.prototype.hasOwnProperty.call(e.config.functions,We)}case"variable_exists":{var ze=String(Q[0]||"").replace(/^\$/,"");return e.config.variables!=null&&Object.prototype.hasOwnProperty.call(e.config.variables,ze)}case"get_variable_value":{var Na=String(Q[0]||"").replace(/^\$/,"");return Pe(Na,e.config)}case"set_variable_value":{var zr=String(Q[0]||"").replace(/^\$/,"");return typeof e.config.setGlobalVariable=="function"&&e.config.setGlobalVariable(zr,Q.length>1?Q[1]:""),""}case"call_user_func":{var ea=String(Q.shift()||"").replace(/^\$/,"");return typeof e.config.callUserFunction=="function"?e.config.callUserFunction(ea,Q,{}):""}}}if(!n&&t==="defined"){U(e);var Qe=Hr(e);return U(e),e.text.charAt(e.pos)===")"&&e.pos++,be(Qe,e.config)}if(!n&&e.config.functions!=null&&Object.prototype.hasOwnProperty.call(e.config.functions,t)&&typeof e.config.callUserFunction=="function"){var ve=e.pos-1,De=B(e.text,ve);if(De<0)return e.supported=!1,e.pos=e.text.length,"";for(var Ka=e.text.substring(ve+1,De),Ya=e.config.functions[t],Jt=_(Ka),Ce=[],La={},Ft=0;Ft<Jt.length;Ft++){var Ia=Jt[Ft].match(/^\s*\$?([A-Za-z_][\w]*)\s*=(?!=)\s*(.*)$/);Ia!=null?La[Ia[1]]=nr(Ia[2],e.config):Ce.push(nr(Jt[Ft],e.config))}return e.pos=De+1,e.config.callUserFunction(t,Ce,La,Ya)}for(e.supported=!1,U(e);e.pos<e.text.length&&e.text.charAt(e.pos)!==")";)gr(e),U(e),e.text.charAt(e.pos)===","&&(e.pos++,U(e));return e.text.charAt(e.pos)===")"&&e.pos++,""}function _e(t,e){if(t==null||typeof t!="string")return t;e=e||{};var n={},l={},A={},D={};if(e.defines!=null)for(var V in e.defines)e.defines.hasOwnProperty(V)&&(n[V]=e.defines[V]);if(e.paramDefines!=null)for(var Q in e.paramDefines)e.paramDefines.hasOwnProperty(Q)&&(l[Q]=e.paramDefines[Q]);if(e.functions!=null)for(var yr in e.functions)e.functions.hasOwnProperty(yr)&&(A[yr]=e.functions[yr]);if(e.variables!=null)for(var hr in e.variables)e.variables.hasOwnProperty(hr)&&(D[hr]=e.variables[hr]);var ye=e._functionScope||null,ae=ye!=null?ye.globals:D,We=ye!=null?ye.localNames:null,ze=e._preprocessorRuntime;ze==null&&(ze={steps:0,outputChars:0,callDepth:0,maxSteps:e.maxPreprocessorSteps!=null?e.maxPreprocessorSteps:$,maxOutputChars:e.maxPreprocessorOutputChars!=null?e.maxPreprocessorOutputChars:P,maxCallDepth:e.maxFunctionCallDepth!=null?e.maxFunctionCallDepth:b,exhausted:!1,warningKeys:{},warnings:e.preprocessorWarnings||[]}),e._preprocessorRuntime=ze,(e.preprocessorWarnings!=null||ye!=null)&&(e.preprocessorWarnings=ze.warnings);var Na=t.split(`-`),zr=[];function ea(Va,gl){ze.warningKeys.hasOwnProperty(Va)||(ze.warningKeys[Va]=!0,ze.warnings.push(gl),e.preprocessorWarnings=ze.warnings)}zr.push=function(Va){var gl=Va==null?0:String(Va).length;return ze.outputChars+=gl+1,ze.outputChars>ze.maxOutputChars?(ze.exhausted=!0,ea("output-budget","preprocessor output exceeded "+ze.maxOutputChars+" characters"),zr.length):Array.prototype.push.call(zr,Va)};var Qe=[],ve=!0,De=[],Ka=!1,Ya=e.maxLoopIterations!=null?e.maxLoopIterations:_t,Jt=!1,Ce=null,La=null,Ft=null,Ia=!1,Za=null,Sn=null,_a=!1,hn=/^(\s*)!\$([A-Za-z_][\w]*)\s*=\s*(.*)$/,Qn=/^\s*!local\s+\$([A-Za-z_][\w]*)\s*=\s*(.*)$/i,Xa=/^\s*!global\s+\$([A-Za-z_][\w]*)\s*=\s*(.*)$/i,fl=/^\s*!define\s+([A-Za-z_][\w]*)\(([^)]*)\)(?:[ \t]+(.*))?$/,ma=/^\s*!define\s+([A-Za-z_][\w]*)(?:[ \t]+(.*))?$/,Ln=/^\s*!undef\s+([A-Za-z_][\w]*)\s*$/,Tn=/^\s*!definelong\s+([A-Za-z_][\w]*)(?:\(([^)]*)\))?\s*$/,kn=/^\s*!enddefinelong\s*$/,Nn=/^\s*!procedure\s+\$([A-Za-z_][\w]*)(?:\(([^)]*)\))?\s*$/,yn=/^\s*!endprocedure\s*$/,Oa=/^\s*!end\s*function\s*$/i,Un=/^\s*!return\b(.*)$/i,vl=/^\s*!if\b(.*)$/,al=/^\s*!elseif\b(.*)$/,xn=/^\s*!else\s*$/,ul=/^\s*!endif\s*$/,Sl=/^\s*!ifdef\s+([A-Za-z_][\w]*)\s*$/,Pn=/^\s*!ifndef\s+([A-Za-z_][\w]*)\s*$/,hl=/^\s*!while\b(.*)$/,zl=/^\s*!endwhile\s*$/,Jl=/^\s*!foreach\s+\$([A-Za-z_][\w]*)\s+(?:in|from)\s+(.*)$/,eo=/^\s*!end(?:for|foreach)\s*$/,Fo=/^\s*!exit\b(.*)$/,Vl=/^\s*!log\b(.*)$/,Uo=/^\s*!assert\b(.*)$/,Tl=E(k(n));function to(){var Va=Ft.join(`-`);La!=null?(l[Ce]={params:La,body:Va},n.hasOwnProperty(Ce)&&(delete n[Ce],Tl=E(k(n)))):(n[Ce]=Va,Tl=E(k(n)),l.hasOwnProperty(Ce)&&delete l[Ce]),Jt=!1,Ce=null,La=null,Ft=null}function fo(Va,gl,mo){A[Va.name]={params:Va.params,body:gl.slice(),unquoted:Va.unquoted,declarationLine:mo}}function Ul(){if(ye!=null)for(var Va in ae)ae.hasOwnProperty(Va)&&!We.hasOwnProperty(Va)&&(D[Va]=ae[Va])}function Gl(Va,gl,mo){if(ye==null){D[Va]=gl;return}if(mo==="global"){ae[Va]=gl,We.hasOwnProperty(Va)||(D[Va]=gl);return}if(mo==="local"||We.hasOwnProperty(Va)){We[Va]=!0,D[Va]=gl;return}if(ae.hasOwnProperty(Va)){ae[Va]=gl,D[Va]=gl;return}We[Va]=!0,D[Va]=gl}function vo(Va,gl,mo){if(!A.hasOwnProperty(Va))return"";if(ze.callDepth>=ze.maxCallDepth)return ea("call-depth","return-function call depth exceeded "+ze.maxCallDepth+" while calling "+Va+"()"),"";var Ko=A[Va],fi={},vi={};for(var mi in ae)ae.hasOwnProperty(mi)&&(fi[mi]=ae[mi]);for(var jl=0;jl<Ko.params.length;jl++){var xo=Ko.params[jl],Wl;mo.hasOwnProperty(xo.name)?Wl=mo[xo.name]:jl<gl.length?Wl=gl[jl]:xo.defaultExpression!=null?Wl=nr(xo.defaultExpression,{defines:n,paramDefines:l,variables:fi,functions:A,callUserFunction:vo,setGlobalVariable:function(qo,ds){ae[qo]=ds}}):Wl="",vi[xo.name]=!0,fi[xo.name]=Wl}var Yo={defines:n,paramDefines:l,functions:A,variables:fi,maxLoopIterations:Ya,_preprocessorRuntime:ze,_functionScope:{globals:ae,localNames:vi},preprocessorWarnings:ze.warnings,preprocessorLogs:e.preprocessorLogs||[]};ze.callDepth++;try{_e(Ko.body.join(`-`),Yo)}finally{ze.callDepth--}return e.preprocessorLogs=Yo.preprocessorLogs,ze.warnings.length>0&&(e.preprocessorWarnings=ze.warnings),Ul(),Yo.functionReturned?Yo.functionReturn:""}function Zn(){return{defines:n,paramDefines:l,variables:D,functions:A,callUserFunction:vo,setGlobalVariable:function(Va,gl){Gl(Va,gl,"global")}}}for(var Kn=0;Kn<Na.length&&!ze.exhausted;Kn++){if(ze.steps++,ze.steps>ze.maxSteps){ze.exhausted=!0,ea("step-budget","preprocessor execution exceeded "+ze.maxSteps+" steps");break}var Hl=Na[Kn],xa=H(Hl,D),et;if(Ia){if(Oa.test(Hl)){_a&&fo(Za,Sn,Za.declarationLine),Ia=!1,Za=null,Sn=null,_a=!1,zr.push("");continue}Sn.push(Hl),zr.push("");continue}if(Jt){if(kn.test(xa)||yn.test(xa)){to(),zr.push("");continue}Ft.push(xa),zr.push("");continue}var kl=w(Hl);if(kl!=null){kl.declarationLine=Kn+1,kl.inlineReturn!=null?ve&&fo(kl,["!return "+kl.inlineReturn],Kn+1):(Ia=!0,Za=kl,Sn=[],_a=ve),zr.push("");continue}if((et=xa.match(vl))!=null){var uo=ve?j(S(et[1],Zn())):!1;Qe.push({parentOutputting:ve,hasMatched:uo}),ve=uo,zr.push("");continue}if((et=xa.match(Sl))!=null){var jo=ve&&(n.hasOwnProperty(et[1])||l.hasOwnProperty(et[1]));Qe.push({parentOutputting:ve,hasMatched:jo}),ve=jo,zr.push("");continue}if((et=xa.match(Pn))!=null){var $o=ve&&!(n.hasOwnProperty(et[1])||l.hasOwnProperty(et[1]));Qe.push({parentOutputting:ve,hasMatched:$o}),ve=$o,zr.push("");continue}if((et=xa.match(al))!=null){if(Qe.length>0){var ho=Qe[Qe.length-1];if(ho.hasMatched)ve=!1;else{var Wo=ho.parentOutputting?j(S(et[1],Zn())):!1;Wo?(ho.hasMatched=!0,ve=!0):ve=!1}}zr.push("");continue}if(xn.test(xa)){if(Qe.length>0){var zn=Qe[Qe.length-1];zn.hasMatched?ve=!1:(zn.hasMatched=!0,ve=zn.parentOutputting)}zr.push("");continue}if(ul.test(xa)){if(Qe.length>0){var Zo=Qe.pop();ve=Zo.parentOutputting}zr.push("");continue}if((et=xa.match(hl))!=null){var yo=ve,Qo={type:"while",startIdx:Kn,cond:et[1],iters:0,outerOutputting:yo,active:!1};if(yo){var nl=j(S(et[1],Zn()));Qo.active=nl,ve=nl}De.push(Qo),zr.push("");continue}if(zl.test(xa)){var ao=De.length>0&&De[De.length-1].type==="while"?De[De.length-1]:null;if(ao==null){zr.push("");continue}if(!ao.active){ve=ao.outerOutputting,De.pop(),zr.push("");continue}if(ao.iters++,ao.iters>=Ya){e.preprocessorWarnings=e.preprocessorWarnings||[],e.preprocessorWarnings.push("!while exceeded "+Ya+" iterations at line "+(ao.startIdx+1)),ve=ao.outerOutputting,De.pop(),zr.push("");continue}var ps=Na[ao.startIdx],Zi=H(ps,D).match(hl),Bi=Zi!=null?Zi[1]:"",cs=j(S(Bi,Zn()));if(cs){zr.push(""),Kn=ao.startIdx;continue}ve=ao.outerOutputting,De.pop(),zr.push("");continue}if((et=xa.match(Jl))!=null){var No=ve,wi=et[1],bi=d(et[2]),Co={type:"foreach",startIdx:Kn,varName:wi,list:bi,index:0,iters:0,outerOutputting:No,active:!1};No&&bi.length>0?(Gl(wi,bi[0],null),Co.active=!0,ve=!0):ve=!1,De.push(Co),zr.push("");continue}if(eo.test(xa)){var Fl=De.length>0&&De[De.length-1].type==="foreach"?De[De.length-1]:null;if(Fl==null){zr.push("");continue}if(!Fl.active){ve=Fl.outerOutputting,De.pop(),zr.push("");continue}if(Fl.iters++,Fl.index++,Fl.iters>=Ya){e.preprocessorWarnings=e.preprocessorWarnings||[],e.preprocessorWarnings.push("!foreach exceeded "+Ya+" iterations at line "+(Fl.startIdx+1)),ve=Fl.outerOutputting,De.pop(),zr.push("");continue}if(Fl.index<Fl.list.length){Gl(Fl.varName,Fl.list[Fl.index],null),zr.push(""),Kn=Fl.startIdx;continue}ve=Fl.outerOutputting,De.pop(),zr.push("");continue}if(!ve){zr.push("");continue}if(ye!=null&&(et=xa.match(Un))!=null){var Ri=et[1].replace(/^\s+|\s+$/g,"");e.functionReturn=Ri.length>0?S(Ri,Zn()):"",e.functionReturned=!0,zr.push("");break}if(Fo.test(xa)){Ka=!0,zr.push("");break}if((et=xa.match(Vl))!=null){var wo=et[1].replace(/^\s+|\s+$/g,""),Bo=wo.length>0?S(wo,Zn()):"";e.preprocessorLogs=e.preprocessorLogs||[],e.preprocessorLogs.push(String(Bo)),zr.push("");continue}if((et=xa.match(Uo))!=null){var oi=et[1].replace(/^\s+|\s+$/g,""),Ls=oi.length>0?S(oi,Zn()):!1;j(Ls)||(e.preprocessorWarnings=e.preprocessorWarnings||[],e.preprocessorWarnings.push("!assert failed: "+oi+" (line "+(Kn+1)+")")),zr.push("");continue}if((et=xa.match(Qn))!=null){Gl(et[1],nr(et[2],Zn()),"local"),zr.push("");continue}if((et=xa.match(Xa))!=null){Gl(et[1],nr(et[2],Zn()),"global"),zr.push("");continue}if((et=xa.match(hn))!=null){Gl(et[2],nr(et[3],Zn()),null),zr.push("");continue}if((et=xa.match(Tn))!=null){Jt=!0,Ce=et[1],La=et[2]!=null?C(et[2]):null,Ft=[],zr.push("");continue}if((et=xa.match(Nn))!=null){Jt=!0,Ce="$"+et[1],La=C(et[2]||""),Ft=[],zr.push("");continue}if((et=xa.match(fl))!=null){var _i=et[1],ii=et[3]!=null?et[3].replace(/\s+$/,""):"";l[_i]={params:C(et[2]),body:ii},n.hasOwnProperty(_i)&&(delete n[_i],Tl=E(k(n))),zr.push("");continue}if((et=xa.match(ma))!=null){var Ml=et[2]!=null?et[2].replace(/\s+$/,""):"";n[et[1]]=Ml,Tl=E(k(n)),l.hasOwnProperty(et[1])&&delete l[et[1]],zr.push("");continue}if((et=xa.match(Ln))!=null){n.hasOwnProperty(et[1])&&(delete n[et[1]],Tl=E(k(n))),l.hasOwnProperty(et[1])&&delete l[et[1]],zr.push("");continue}var bo=p(xa,A,Zn());bo=o(bo,l),bo=O(bo,n,Tl),zr.push(h(bo,D))}Ia&&_a&&fo(Za,Sn,Za.declarationLine),Jt&&to(),Ka&&(e.exited=!0),e.defines==null&&(e.defines={});for(var qi in e.defines)e.defines.hasOwnProperty(qi)&&!n.hasOwnProperty(qi)&&delete e.defines[qi];for(var Mi in n)n.hasOwnProperty(Mi)&&(e.defines[Mi]=n[Mi]);e.paramDefines==null&&(e.paramDefines={});for(var go in e.paramDefines)e.paramDefines.hasOwnProperty(go)&&!l.hasOwnProperty(go)&&delete e.paramDefines[go];for(var si in l)l.hasOwnProperty(si)&&(e.paramDefines[si]=l[si]);e.functions==null&&(e.functions={});for(var _o in A)A.hasOwnProperty(_o)&&(e.functions[_o]=A[_o]);e.variables==null&&(e.variables={});for(var Ro in D)D.hasOwnProperty(Ro)&&(e.variables[Ro]=D[Ro]);var Ii=zr.join(`-`);return ye==null&&!e._preserveRuntime&&delete e._preprocessorRuntime,Ii}var Qt=16,_t=1024,b=64,$=5e5,P=32*1024*1024;function x(t,e){if(t==null||typeof t!="string")return t;e=e||{},delete e._preprocessorRuntime,e._preserveRuntime=!0;for(var n=t,l=null,A=0;n!==l&&A<Qt;)l=n,n=_r(n),n=_e(n,e),A++;if(delete e._preprocessorRuntime,delete e._preserveRuntime,n!==l)throw new Error("PlantUmlPreprocessor: expansion did not converge after "+Qt+" iterations (possible cycle in defines / variables)");return n}return{run:x,stripComments:_r,expandVariables:F,expandDefines:v,expandDirectives:_e,evaluateExpression:S,parseScalarValue:qr,normaliseLineEndings:Or}})();var li=(function(){var Or={ditaa:{wrapper:"@startditaa",grounds:["licence","out-of-domain"],summary:"ditaa is a separate LGPL-licensed project, not PlantUML diagram syntax",detail:`ditaa ("DIagrams Through Ascii Art") is an independent tool by Efstathios Sideris that converts ASCII-art drawings into bitmaps. Its sources are present in the plantuml-asl jar under org/stathissideris/ascii2image/, but each file carries an intact LGPL-3.0-or-later notice from its author underneath the Apache-2.0 header that upstream's build prepends \u2014 conflicting notices this port will not rely on. Upstream's own Apache build refuses @startditaa for the same reason. Nothing about it is PlantUML diagram language.`},dot:{wrapper:"@startdot",grounds:["out-of-domain"],summary:"DOT is GraphViz's own language, rendered by a layout engine this port does not ship",detail:"A @startdot block is raw GraphViz DOT passed straight through to GraphViz \u2014 a different language with its own grammar and its own layout engine. PlantUML delegates it either to a native dot binary or to Smetana, its Java translation of GraphViz. This port is browser JavaScript with no GraphViz available and no intention of carrying a layout engine, so there is nothing to render DOT with. Supporting it would mean porting GraphViz, not PlantUML."},jcckit:{wrapper:"@startjcckit",grounds:["licence","out-of-domain"],summary:"JCCKit is a separate charting library, and upstream has removed it",detail:'JCCKit is an independent Java charting toolkit that PlantUML once bundled to draw plots. It is gone from the 1.2026.6 artifacts entirely \u2014 neither edition contains it, and upstream answers @startjcckit with "Diagram not supported by this release of PlantUML". Its licensing has the same third-party-relabelling problem as ditaa, and charting is not the PlantUML diagram language, so there is nothing here worth reviving.'},sudoku:{wrapper:"@startsudoku",grounds:["out-of-domain"],summary:"a Sudoku generator is not a diagram language feature, and upstream has removed it",detail:'PlantUML could once generate Sudoku grids. It is gone from the 1.2026.6 artifacts \u2014 upstream answers @startsudoku with "Diagram not supported by this release of PlantUML" \u2014 so its licensing could not be re-verified from the artifacts, and it does not matter: a puzzle generator has nothing to do with drawing diagrams from a modelling language.'}},_r={};for(var qr in Or)Object.prototype.hasOwnProperty.call(Or,qr)&&(_r[Or[qr].wrapper]=qr);function nr(O){return O!=null&&Object.prototype.hasOwnProperty.call(Or,O)}function H(O){if(!nr(O))return null;var C=Or[O];return{type:O,wrapper:C.wrapper,grounds:C.grounds.slice(),summary:C.summary,detail:C.detail}}function F(O){return O!=null&&Object.prototype.hasOwnProperty.call(_r,O)?_r[O]:null}function R(){var O=[];for(var C in Or)Object.prototype.hasOwnProperty.call(Or,C)&&O.push(C);return O.sort()}function E(O){var C=H(O);if(C==null)return new Error('PlantUML: no parser registered for type "'+O+'"');var B=new Error("PlantUML: "+C.wrapper+" is not supported");return B.plantUmlUnsupported=!0,B.diagramType=O,B.grounds=C.grounds,B}return{FAMILIES:Or,isUnsupported:nr,describe:H,typeForWrapper:F,list:R,unsupportedError:E}})();var Wn=(function(){var Or={"@startuml":null,"@startmindmap":"mindmap","@startwbs":"wbs","@startgantt":"gantt","@startsalt":"salt","@startjson":"json","@startyaml":"yaml","@startebnf":"ebnf","@startregex":"regex","@startditaa":"ditaa","@startdot":"dot","@startchronology":"chronology","@startchen":"chen","@startnwdiag":"network","@startboard":"board"},_r={};for(var qr in Or)_r["@end"+qr.substring(6)]=qr;var nr={};function H(B,_){nr[B]=_}function F(){var B=[];for(var _ in nr)nr.hasOwnProperty(_)&&B.push(_);return B}function R(B){if(B==null||typeof B!="string")return null;B.charCodeAt(0)===65279&&(B=B.substring(1));for(var _=B.split(/\r\n|\r|\n/),g=-1,w=null,d="",c=/^[ \t]*[@\\]start([A-Za-z][A-Za-z0-9_]*)\b[ \t]*(.*?)[ \t]*$/i,o=/^[ \t]*[@\\]end/i,p=0;p<_.length;p++){var h=_[p].match(c);if(h!=null){g=p,w="@start"+h[1].toLowerCase(),d=h[2]||"";continue}if(g>=0&&o.test(_[p]))return{wrapper:w,body:_.slice(g+1,p).join(`-`),header:d,startLine:g+1,endLine:p+1}}return null}function E(B){for(var _=B.split(/\r\n|\r|\n/),g=[],w=!1,d=!1,c=null,o=0,p=0;p<_.length;p++){var h=_[p],v=h.replace(/^\s+|\s+$/g,"");if(w){h.indexOf("'/")>=0&&(w=!1);continue}if(v!==""){if(v.substring(0,2)==="/'"){v.indexOf("'/",2)<0&&(w=!0);continue}if(v.charAt(0)!=="'"){if(d){/<\/style\s*>/i.test(v)&&(d=!1);continue}if(/^<style\b/i.test(v)){/<\/style\s*>/i.test(v)||(d=!0);continue}if(o>0){v.indexOf("{")>=0&&o++,v.indexOf("}")>=0&&o--;continue}if(c!==null){var k=c==="note"?/^end\s*(?:h?note|rnote)\b/i:new RegExp("^end\\s*"+c+"\\b","i");k.test(v)&&(c=null);continue}if(v.charAt(0)!=="!"){if(/^skinparam\b/i.test(v)){/\{\s*$/.test(v)&&o++;continue}if(!/^(caption|scale|mainframe|hide|show)\b/i.test(v)&&!/^(top\s+to\s+bottom|left\s+to\s+right)\s+direction\b/i.test(v)){var S=v.match(/^(?:(?:center|left|right)\s+)?(title|header|footer|legend)\b(.*)$/i);if(S!=null){var Z=S[2].replace(/^\s+|\s+$/g,"");Z===""&&(c=S[1].toLowerCase());continue}var U=v.match(/^(?:h?note|rnote|ref\s+over)\b/i);if(U!=null&&v.indexOf(":")<0&&!/^(?:h?note|rnote)\s+"/i.test(v)){c=/^ref/i.test(v)?"ref":"note";continue}g.push(v)}}}}}return g}function O(B){if(B==null||typeof B!="string")return null;var _=E(B);if(_.length===0)return null;var g,w;for(g=0;g<_.length;g++){if(w=_[g],/^salt\s*$/i.test(w))return"salt";if(/^listopeniconic\s*$/i.test(w)||/^listsprites?\s*$/i.test(w))return"openiconicList";if(/^@[+\-]?\d+/.test(w)||/^(robust|concise|clock|binary)\b(?!\s*[-<.])/i.test(w))return"timing";if(/^archimate\b/i.test(w)||/^!include\s*<archimate[\/>]/i.test(w)||/^(Motivation|Strategy|Business|Application|Technology|Physical|Implementation)_[A-Za-z][A-Za-z0-9]*\s*\(/.test(w))return"archimate";if(/^!include\s*<C4[\/>]/i.test(w)||/^!include\s*.*C4_(Container|Context|Component|Code|Dynamic|Deployment)\.puml\b/i.test(w)||/^(Person|Person_Ext|System(?:Db|Queue)?(?:_Ext)?|Container(?:Db|Queue)?(?:_Ext)?|Component(?:Db|Queue)?(?:_Ext)?)\s*\(/.test(w)||/^(System_Boundary|Container_Boundary|Enterprise_Boundary)\s*\(/.test(w))return"c4";if(/^nwdiag\s*\{/i.test(w))return"network";if(/\[\s*\*\s*\]/.test(w))return"state";if(/^entity\s+\S+.*\{/i.test(w)||/[}|][|o][-.]|[-.][|o][{|]/.test(w))return"class";if(/^(node|artifact|cloud|storage|stack|folder|frame|file|hexagon|card|agent)\b(?!\s*[-<.])/i.test(w)||/^\[[^\]]+\]/.test(w))return"component"}for(g=0;g<_.length;g++){if(w=_[g],/^state\b(?!\s*[-<.])/i.test(w))return"state";if(/^(class|interface|enum|abstract(?:\s+class)?|annotation|struct|protocol|exception)\b(?!\s*[-<.])/i.test(w))return"class";if(/^(object|map)\b(?!\s*[-<.])/i.test(w))return"object";if(/^usecase\b(?!\s*[-<.])/i.test(w))return"useCase";if(/^component\b(?!\s*[-<.])/i.test(w))return"component";if(/^(participant|boundary|control|entity|collections|queue|create)\b(?!\s*[-<.])/i.test(w))return"sequence"}for(g=0;g<_.length;g++)if(/-\[hidden\]-/i.test(_[g]))return"component";for(g=0;g<_.length;g++)if(w=_[g],/^(start|stop)\s*$/i.test(w)||/^:[^;]*;\s*$/.test(w)||/^if\s*\(/i.test(w)||/^while\s*\(/i.test(w)||/^repeat\b(?!\s*[-<.])/i.test(w)||/^(fork|split|partition|swimlane)\b(?!\s*[-<.])/i.test(w)||/^detach\b(?!\s*[-<.])/i.test(w))return"activity";for(g=0;g<_.length;g++)if(/\(\s*\*\s*(?:top|bottom)?\s*\)/.test(_[g]))return"activityLegacy";for(g=0;g<_.length;g++)if(w=_[g],/^:[^:;]+:\s*(?:as\s+\S+)?\s*(?:<<[^>]*>>)?\s*$/i.test(w)||/^\([^)]+\)\s*(?:as\s+\S+)?\s*(?:<<[^>]*>>)?\s*$/i.test(w)||/:[^:;]+:\s*[-.<>|]+\s*\([^)]+\)/.test(w)||/\([^)]+\)\s*[-.<>|]+\s*:[^:;]+:/.test(w)||/\([^)]+\)\s*[-.<>|]+\s*\([^)]+\)/.test(w)||/^\w[\w.]*\s*[-.<>|]+\s*\([^)]+\)/.test(w)||/^\([^)]+\)\s*[-.<>|]+\s*\w/.test(w))return"useCase";var d=/(?:^|\s)(?:<\|[-.]+|[*o+#][-.]+)|(?:[-.]+\|>|[-.]+[*o+#])(?=\s|$)/;for(g=0;g<_.length;g++)if(d.test(_[g]))return"class";var c='(?:[^\\s"<>\\[\\]\\-.][^\\s"<>\\[\\]]*|"[^"]*")',o="(?:-+>>?|<<?-+>?)",p=new RegExp("^(?:"+c+"|[\\[\\]])\\s*"+o+"\\s*(?:"+c+"|[\\[\\]])"),h=/\[[^\]]+\]/,v=new RegExp("^"+o+"\\s*(?:"+c+"|\\])");for(g=0;g<_.length;g++)if(!h.test(_[g])&&(p.test(_[g])||v.test(_[g])))return"sequence";for(g=0;g<_.length;g++)if(/^actor\b/i.test(_[g]))return"sequence";for(g=0;g<_.length;g++)if(w=_[g],/^(node|folder|frame|cloud|artifact|storage|database|rectangle|hexagon|card|package|namespace)\b/i.test(w))return"component";for(g=0;g<_.length;g++)if(/\[[\w][^\]]*\]/.test(_[g]))return"component";return null}function C(B,_){_=_||{};var g=R(B);if(g==null)throw new Error("PlantUML: missing @start/@end wrapper");var w=typeof Li<"u"?Li.run(g.body,_):g.body,d=Or[g.wrapper],c=li.typeForWrapper(g.wrapper);if(c!=null)throw li.unsupportedError(c);if(d==null&&(d=O(w)),li.isUnsupported(d))throw li.unsupportedError(d);if(d==="openiconicList")return{type:"openiconicList",ir:{},config:_,header:g.header};if(d==null&&/(^|\n)\s*stdlib\s*(\n|$)/i.test(w))return{type:"stdlib",ir:{},config:_,header:g.header};if(d==null){for(var o=w.split(/\r\n|\r|\n/),p=null,h=0;h<o.length;h++){var v=o[h].replace(/^\s+|\s+$/g,"").match(/^(?:(?:center|left|right)\s+)?title\b\s*:?\s*(.+)$/i);if(v!=null){p=v[1].replace(/\s+$/,"");break}}if(p!=null)return{type:"titleOnly",ir:{title:p},config:_,header:g.header};throw new Error("PlantUML: unable to detect diagram type")}var k=nr[d];if(k==null||typeof k.parse!="function")throw new Error('PlantUML: no parser registered for type "'+d+'"');var S=k.parse(w,_);return{type:d,ir:S,config:_,header:g.header}}return{START_WRAPPERS:Or,END_WRAPPERS:_r,registerParser:H,listParsers:F,stripWrapper:R,detectGenericUmlType:O,parse:C}})();var Ci=(function(){var Or={fillColor:"light-dark(#FEFECE,#1f2020)",strokeColor:"light-dark(#A80036,#cccccc)",fontColor:"light-dark(#000000,#cccccc)",fontFamily:"Verdana"},_r={};function qr(r,s,a){_r[r]||(_r[r]={}),_r[r][s]=a}function nr(){var r=new Graph;return r.setExtendParents(!1),r.setExtendParentsOnAdd(!1),r.setConstrainChildren(!1),r.setHtmlLabels(!0),r.getModel().maintainEdgeParent=!1,r}function H(r,s){return s=s||nr(),{graph:s,root:s.getDefaultParent()}}var F={lightblue:"#ADD8E6",pink:"#FFC0CB",red:"#FF0000",green:"#008000",blue:"#0000FF",yellow:"#FFFF00",orange:"#FFA500",gold:"#FFD700",lavender:"#E6E6FA",lightgreen:"#90EE90",salmon:"#FA8072",coral:"#FF7F50",gray:"#808080",grey:"#808080",black:"#000000",white:"#FFFFFF",cyan:"#00FFFF",magenta:"#FF00FF",lime:"#00FF00",aqua:"#00FFFF",navy:"#000080",maroon:"#800000",olive:"#808000",purple:"#800080",teal:"#008080",silver:"#C0C0C0",lightyellow:"#FFFFE0",lightcoral:"#F08080",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",darkgreen:"#006400",darkblue:"#00008B",darkred:"#8B0000",wheat:"#F5DEB3",tomato:"#FF6347",skyblue:"#87CEEB",steelblue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",turquoise:"#40E0D0",violet:"#EE82EE",plum:"#DDA0DD",linen:"#FAF0E6",khaki:"#F0E68C",ivory:"#FFFFF0",honeydew:"#F0FFF0",gainsboro:"#DCDCDC",beige:"#F5F5DC",hotpink:"#FF69B4",palegreen:"#98FB98",antiquewhite:"#FAEBD7",powderblue:"#B0E0E6",peachpuff:"#FFDAB9",mistyrose:"#FFE4E1",mintcream:"#F5FFFA",aliceblue:"#F0F8FF",firebrick:"#B22222",indianred:"#CD5C5C",deeppink:"#FF1493",mediumblue:"#0000CD",limegreen:"#32CD32",darkorange:"#FF8C00",dodgerblue:"#1E90FF",cadetblue:"#5F9EA0",chocolate:"#D2691E",crimson:"#DC143C",orchid:"#DA70D6",seagreen:"#2E8B57",springgreen:"#00FF7F",royalblue:"#4169E1",darksalmon:"#E9967A",lightsalmon:"#FFA07A",lightpink:"#FFB6C1",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",dimgray:"#696969",dimgrey:"#696969",slategray:"#708090",slategrey:"#708090",orangered:"#FF4500",forestgreen:"#228B22",midnightblue:"#191970",slateblue:"#6A5ACD",darkviolet:"#9400D3",darkorchid:"#9932CC",goldenrod:"#DAA520",darkgoldenrod:"#B8860B",rosybrown:"#BC8F8F",sienna:"#A0522D",peru:"#CD853F",sandybrown:"#F4A460",burlywood:"#DEB887",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",blanchedalmond:"#FFEBCD",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",palegoldenrod:"#EEE8AA",darkkhaki:"#BDB76B",yellowgreen:"#9ACD32",olivedrab:"#6B8E23",darkolivegreen:"#556B2F",greenyellow:"#ADFF2F",chartreuse:"#7FFF00",lawngreen:"#7CFC00",mediumseagreen:"#3CB371",darkseagreen:"#8FBC8F",mediumspringgreen:"#00FA9A",lightseagreen:"#20B2AA",darkcyan:"#008B8B",darkturquoise:"#00CED1",mediumturquoise:"#48D1CC",paleturquoise:"#AFEEEE",lightcyan:"#E0FFFF",azure:"#F0FFFF",lightsteelblue:"#B0C4DE",cornflowerblue:"#6495ED",deepskyblue:"#00BFFF",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",mediumslateblue:"#7B68EE",mediumpurple:"#9370DB",blueviolet:"#8A2BE2",indigo:"#4B0082",darkmagenta:"#8B008B",mediumorchid:"#BA55D3",mediumvioletred:"#C71585",palevioletred:"#DB7093",fuchsia:"#FF00FF",lightgoldenrodyellow:"#FAFAD2",floralwhite:"#FFFAF0",ghostwhite:"#F8F8FF",lavenderblush:"#FFF0F5",oldlace:"#FDF5E6",papayawhip:"#FFEFD5",seashell:"#FFF5EE",snow:"#FFFAFA",whitesmoke:"#F5F5F5",brown:"#A52A2A",rebeccapurple:"#663399",saddlebrown:"#8B4513",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",lightblue1:"#BFEFFF",aquamarine:"#7FFFD4",mediumaquamarine:"#66CDAA",honeydew2:"#E0EEE0"},R=/[;=<>"'`(){}\r\n\t ]/,E=/^[0-9A-Za-z|\/\\.\-]+$/;function O(r){if(!r)return r;var s=String(r).replace(/^\s+|\s+$/g,"");if(!s||R.test(s))return null;if(s.charAt(0)==="#"){var a=s.substring(1),i=a.toLowerCase();return F.hasOwnProperty(i)?F[i]:/^[0-9A-Fa-f]{3,8}$/.test(a)||E.test(a)?s:null}return F.hasOwnProperty(s.toLowerCase())?F[s.toLowerCase()]:E.test(s)?s:null}function C(r){return r==null?"":String(r).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\r\n?/g,`-`).replace(/\n/g," ")}var B={heart:"\u2665",star:"\u2605",star_o:"\u2606",check:"\u2714",check_circle:"\u2714",circle_check:"\u2714",ban:"\u2718",x:"\u2717",cloud:"\u2601",sun:"\u2600",gear:"\u2699",cog:"\u2699",cogs:"\u2699",exchange:"\u21C4",envelope:"\u2709",mail:"\u2709",home:"\u2302",house:"\u2302",info:"\u2139",warning:"\u26A0",bolt:"\u26A1",flag:"\u2691",key:"\u26BF",person:"\u263B",people:"\u263B",user:"\u263B",users:"\u263B",phone:"\u260E",clock:"\u23F1",cubes:"\u29C9",cube:"\u25A2",arrow_right:"\u2192",arrow_left:"\u2190",share_alt_square:"\u21AA",plus:"+",minus:"\u2212"};function _(r){var s=B[r]||B[r.replace(/-/g,"_")];return s||""}function g(r){return r==null?"":(r=String(r),r=r.replace(/<U\+([0-9A-Fa-f]{2,6})>/g,function(s,a){try{return String.fromCodePoint(parseInt(a,16))}catch{return""}}),r=r.replace(/\\r\\n|\\n|\\r/g,`-`).replace(/\\t/g," "),r=r.replace(/<\/?(?:size|color|colour|back|b|i|u|s|strike|del|sub|sup|font|w)(?::[^>]*)?\s*>/gi,""),r=r.replace(/<&([a-zA-Z0-9_-]+)>/g,function(s,a){return _(a)}).replace(/<\$([a-zA-Z0-9_-]+)>/g,function(s,a){return _(a)}),r=r.replace(/\*\*([\s\S]+?)\*\*/g,"$1").replace(/\/\/([\s\S]+?)\/\//g,"$1").replace(/__([\s\S]+?)__/g,"$1").replace(/~~([\s\S]+?)~~/g,"$1").replace(/""([\s\S]+?)""/g,"$1"),r)}function w(r){return C(g(r))}function d(r,s){var a=g(r);return s&&String(s).indexOf("html=1")>=0&&(a=a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),C(a)}function c(r){return r==null?"":(r=String(r),r=r.replace(/<U\+([0-9A-Fa-f]{2,6})>/g,function(s,a){try{return String.fromCodePoint(parseInt(a,16))}catch{return""}}),r=r.replace(/\\r\\n|\\n|\\r/g,`-`).replace(/\\t/g," "),r=r.replace(/<\/?(?:size|color|colour|back|b|i|u|s|strike|del|sub|sup|font|w)(?::[^>]*)?\s*>/gi,""),r=r.replace(/""([\s\S]+?)""/g,"$1"),r=r.replace(/<&([a-zA-Z0-9_-]+)>/g,function(s,a){return _(a)}).replace(/<\$([a-zA-Z0-9_-]+)>/g,function(s,a){return _(a)}),r=r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),r=r.replace(/\*\*([\s\S]+?)\*\*/g,"<b>$1</b>").replace(/\/\/([\s\S]+?)\/\//g,"<i>$1</i>").replace(/__([\s\S]+?)__/g,"<u>$1</u>").replace(/~~([\s\S]+?)~~/g,"<u>$1</u>"),r.replace(/\n/g,"<br>"))}function o(r){for(var s=String(r??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/<(\/?)([biu])>/gi,"<$1$2>"),a=s.match(/<\/?[biu]>/gi)||[],i=[],f=0;f<a.length;f++){var y=a[f].toLowerCase(),T=y.charAt(1)==="/",L=T?y.charAt(2):y.charAt(1);if(T){var m=i.lastIndexOf(L);m>=0&&i.splice(m,1)}else i.push(L)}for(;i.length;)s+="</"+i.pop()+">";return s}function p(r){return g(r).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r\n?/g,`-`).replace(/\n/g,"<br>")}var h=5,v=33,k=14,S=10,Z=25,U=17.7,vr=15,G=17,fr=22,j=4;function lr(r){for(var s=[],a=0;a<r.length;a++){var i=r[a];if(/^[-=.]{3,}$/.test(i)){s.push("\u2500\u2500\u2500\u2500\u2500\u2500");continue}var f=/^=+\s*/.test(i),y=/^"{2}.*"{2}$/.test(i),T=w(i.replace(/^=+\s*/,"").replace(/^"{2}|"{2}$/g,""));f?s.push('<b><font style="font-size:17px">'+T+"</font></b>"):y?s.push('<font face="monospace">'+T+"</font>"):s.push(T)}return s.join("<br>")}function dr(r,s,a){for(var i=String(r??""),f=0,y=0,T=0;T<i.length;T++){var L=i.charAt(T);L===`-`?(f>y&&(y=f),f=0):`iIljtfr.,:;!|'"()[]{} `.indexOf(L)>=0?f+=4.2:"mwMW".indexOf(L)>=0?f+=11.7:f+=7.8}return f>y&&(y=f),y*(s/14)*(a?1.08:1)}function gr(r){return r?String(r).split(`-`).length:0}function or(r,s,a){var i=O(r.color)||(s?"#E3E3E3":"#E2E2F0"),f="rounded=1;absoluteArcSize=1;arcSize=5;fillColor="+i+";strokeColor=#181818;strokeWidth=0.5;fontColor=#000000;fontSize=14;whiteSpace=wrap;html=1;",y=a?"verticalLabelPosition=top;verticalAlign=bottom;":"verticalLabelPosition=bottom;verticalAlign=top;",T=y+"fillColor="+i+";strokeColor=#181818;fontColor=#000000;fontSize=14;html=1;";switch(r.kind){case"actor":return"shape=umlActor;"+T;case"boundary":return"shape=umlBoundary;"+T;case"control":return"ellipse;shape=umlControl;"+T;case"entity":return"ellipse;shape=umlEntity;"+T;case"database":return"shape=cylinder3;size=6;"+T;case"queue":return"shape=cylinder3;direction=east;size=8;"+T;default:return"shape=rectangle;"+f}}function ar(r){switch(r){case"open":return"endArrow=open;endFill=0;endSize=9;";case"lost":return"endArrow=cross;endSize=12;";case"circle":return"endArrow=classic;endFill=1;endSize=9;";case"halfTop":return"endArrow=open;endFill=0;endSize=9;endHalf=top;";case"halfBottom":return"endArrow=open;endFill=0;endSize=9;endHalf=bottom;";case"bidirectional":return"endArrow=classic;endFill=1;endSize=9;startArrow=classic;startFill=1;startSize=9;";default:return"endArrow=classic;endFill=1;endSize=9;"}}function u(r,s,a,i,f,y,T,L){return' <mxCell id="'+C(r)+'" value="'+d(s,a)+'" style="'+C(a)+'" vertex="1" parent="'+C(L||"1")+`">- <mxGeometry x="`+i+'" y="'+f+'" width="'+y+'" height="'+T+`" as="geometry"/>+var PlantUml=(()=>{var wf=Object.defineProperty;var xC=Object.getOwnPropertyDescriptor;var HC=Object.getOwnPropertyNames;var KC=Object.prototype.hasOwnProperty;var lc=(hr,G)=>{for(var Wr in G)wf(hr,Wr,{get:G[Wr],enumerable:!0})},zC=(hr,G,Wr,vr)=>{if(G&&typeof G=="object"||typeof G=="function")for(let ae of HC(G))!KC.call(hr,ae)&&ae!==Wr&&wf(hr,ae,{get:()=>G[ae],enumerable:!(vr=xC(G,ae))||vr.enumerable});return hr};var WC=hr=>zC(wf({},"__esModule",{value:!0}),hr);var XC={};lc(XC,{default:()=>UC});var Pf={};lc(Pf,{ActivityLegacyParser:()=>Tu,ActivityParser:()=>Du,ArchimateParser:()=>zu,C4Parser:()=>Wu,ClassParser:()=>Su,ComponentParser:()=>Iu,GanttParser:()=>Pu,JsonParser:()=>Mu,MindmapParser:()=>Gu,NetworkParser:()=>Ku,ObjectParser:()=>Nu,PlantUml2Drawio:()=>Bu,PlantUml2Png:()=>uc,PlantUml2Svg:()=>Vs,PlantUmlCellFactory:()=>Ss,PlantUmlLexer:()=>ic,PlantUmlParser:()=>il,PlantUmlPreprocessor:()=>js,PlantUmlSkinParam:()=>bu,PlantUmlStyleSheet:()=>nt,PlantUmlThemes:()=>Fu,PlantUmlUnsupported:()=>Cs,SaltParser:()=>Hu,SequenceParser:()=>yu,StateParser:()=>Eu,TimingParser:()=>Yu,UseCaseParser:()=>Lu,WbsParser:()=>wu,YamlParser:()=>xu,mxPlantUmlToDrawio:()=>sc});var ic=(function(){function hr(G){this.input=G,this.pos=0,this.line=1,this.col=1,this.len=G.length}return hr.prototype.peek=function(G){return this.input[this.pos+(G||0)]||""},hr.prototype.peekStr=function(G){return this.input.substring(this.pos,this.pos+G)},hr.prototype.isEof=function(){return this.pos>=this.len},hr.prototype.advance=function(G){G=G||1;for(var Wr=0;Wr<G&&this.pos<this.len;Wr++)this.input[this.pos]===`+`?(this.line++,this.col=1):this.col++,this.pos++},hr.prototype.skipInlineWhitespace=function(){for(;this.pos<this.len;){var G=this.input[this.pos];if(G===" "||G===" ")this.pos++,this.col++;else break}},hr.prototype.skipWhitespace=function(){for(;this.pos<this.len;){var G=this.input[this.pos];if(G===" "||G===" "||G==="\r"||G===`+`)this.advance(1);else break}},hr.prototype.skipLineComment=function(){for(;this.pos<this.len&&this.input[this.pos]!==`+`;)this.pos++,this.col++},hr.prototype.skipBlockComment=function(){for(this.advance(2);this.pos<this.len-1;){if(this.input[this.pos]==="'"&&this.input[this.pos+1]==="/"){this.advance(2);return}this.advance(1)}this.pos=this.len},hr.prototype.skipWhitespaceAndComments=function(){for(;this.pos<this.len;){var G=this.input[this.pos];if(G===" "||G===" "||G==="\r"||G===`+`)this.advance(1);else if(G==="'")this.skipLineComment();else if(G==="/"&&this.input[this.pos+1]==="'")this.skipBlockComment();else break}},hr.prototype.readQuotedString=function(){var G=this.input[this.pos];if(G!=='"'&&G!=="'"&&G!=="`")return null;var Wr=this.pos+1,vr="";for(this.advance(1);this.pos<this.len;){var ae=this.input[this.pos];if(ae==="\\"&&this.pos+1<this.len)vr+=this.input[this.pos+1],this.advance(2);else{if(ae===G)return this.advance(1),vr;vr+=ae,this.advance(1)}}return vr},hr.prototype.readLine=function(){for(var G=this.pos;this.pos<this.len&&this.input[this.pos]!==`+`;)this.pos++,this.col++;var Wr=this.input.substring(G,this.pos);return this.pos<this.len&&this.advance(1),Wr},hr.prototype.readIdentifier=function(){var G=this.input[this.pos];if(!(G>="a"&&G<="z"||G>="A"&&G<="Z"||G==="_"))return null;for(var Wr=this.pos;this.pos<this.len;){var vr=this.input[this.pos];if(vr>="a"&&vr<="z"||vr>="A"&&vr<="Z"||vr>="0"&&vr<="9"||vr==="_")this.pos++,this.col++;else break}return this.input.substring(Wr,this.pos)},{create:function(G){return new hr(G)}}})();var Fu=(function(){var hr={},G={};G._none_={author:"The-Lum",license:"PlantUML (Apache-2.0 asl edition)",source:""},hr._none_=[].join(`+`),G.amiga={author:"Matthew Leather",license:"PlantUML (Apache-2.0 asl edition)",source:""},hr.amiga=['!$THEME = "amiga"',"",'!$BLACK = "#000121"','!$BLUE = "#0B58A8"','!$ORANGE = "#FDA325"','!$RED = "#DB252B"','!$WHITE = "#FFFFFF"',"","!$BGCOLOR = $BLUE","!$FGCOLOR = $WHITE","","!ifndef $FONT_NAME",'!$FONT_NAME = "Verdana"',"!endif","","!ifndef $FONT_NAME_MONOSPACED",'!$FONT_NAME_MONOSPACED = "Courier"',"!endif","","<style>","root {","BackgroundColor $BGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","HyperLinkColor $ORANGE","LineColor $FGCOLOR","LineThickness 1","Margin 5","}","document {","caption {","LineThickness 0","}","footer {","LineThickness 0","}","header {","LineThickness 0","}","title {","FontSize 22","LineThickness 0","}","}","groupHeader {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","node {","MaximumWidth 300","}","referenceHeader {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","participant {","Margin 5 10","Padding 5 5","}","</style>","","skinparam ArrowLollipopColor $FGCOLOR","skinparam BackgroundColor $BGCOLOR","skinparam DefaultFontName $FONT_NAME","skinparam DefaultMonospacedFontName $FONT_NAME_MONOSPACED","skinparam LifelineStrategy nosolid","skinparam SequenceLifeLineBorderColor $FGCOLOR","skinparam Shadowing false","skinparam UseBetaStyle true","","skinparam Activity {","BackgroundColor $BGCOLOR","BarColor $FGCOLOR","BorderColor $FGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Boundary {","FontColor $FGCOLOR","}","skinparam Box {","Padding 5","}","skinparam CircledCharacter {","FontColor $BGCOLOR","FontName $FONT_NAME_MONOSPACED","Radius 9","}","skinparam Class {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam ClassAttribute {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam ClassStereotype {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Footer {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Header {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Hyperlink {","Color $ORANGE","}","skinparam IconPackage {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam IconPrivate {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam IconProtected {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam IconPublic {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam Note {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Object {","BorderColor $FGCOLOR","}","skinparam Package {","BorderColor $FGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam State {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeA {","BackgroundColor $FGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeC {","BackgroundColor $FGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeE {","BackgroundColor $FGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeI {","BackgroundColor $FGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeN {","BackgroundColor $FGCOLOR","BorderColor $FGCOLOR","}","skinparam UseCaseStereoType {","FontColor $FGCOLOR","FontName $FONT_NAME","}"].join(`+`),G["aws-orange"]={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr["aws-orange"]=['!$PUML_THEME = "aws-orange"','!$THEME = "aws-orange"','!if %not(%variable_exists("$PUML_BGCOLOR"))','!$PUML_BGCOLOR = "transparent"',"!endif",'!if %not(%variable_exists("$PUML_GRADIENT"))',"!$PUML_GRADIENT = 20","!endif",'!if %not(%variable_exists("$PUML_MODE"))','!$PUML_MODE = "light"',"!endif",'!if %not(%variable_exists("$PUML_OUTLINE"))','!$PUML_OUTLINE = "false"',"!endif","skinparam BackgroundColor $PUML_BGCOLOR","skinparam useBetaStyle false",'!$WHITE = "#FFF"','!$GRAY_LIGHT = "#222"','!$GRAY = "#868e96"','!$PRIMARY = "#EC7211"','!$WARNING = "#EC7211"','!$LIGHT = "#abb6c2"','!$DARK = "#4E5D6C"','!if ($PUML_MODE == "light")','!$SECONDARY = "#eeeeee"','!$SECONDARY_LIGHT = "ffffff"','!$SUCCESS = "#1D8102"','!$INFO = "#0073bb"','!$DANGER = "#d13212"',"!$SECONDARY_TEXT = $DARK","!$FGCOLOR = $DARK","!$DIAMOND_BD = %darken($SECONDARY, $PUML_GRADIENT)","!assume transparent light","!else",'!$SECONDARY = "#2a2e33"',"!$SECONDARY_LIGHT = %lighten($SECONDARY, $PUML_GRADIENT)",'!$SUCCESS = "#6aaf35"','!$INFO = "#44b9d6"','!$DANGER = "#ff5d64"',"!$SECONDARY_TEXT = $WHITE","!$FGCOLOR = $WHITE","!$DIAMOND_BD = %lighten($SECONDARY, $PUML_GRADIENT)","!assume transparent dark","!endif","!$PRIMARY_DARK = %darken($PRIMARY, $PUML_GRADIENT)","!$PRIMARY_LIGHT = %lighten($PRIMARY, $PUML_GRADIENT)","!$SECONDARY_DARK = %darken($SECONDARY, $PUML_GRADIENT)","!$SUCCESS_DARK = %darken($SUCCESS, $PUML_GRADIENT)","!$SUCCESS_LIGHT = %lighten($SUCCESS, $PUML_GRADIENT)","!$INFO_DARK = %darken($INFO, $PUML_GRADIENT)","!$INFO_LIGHT = %lighten($INFO, $PUML_GRADIENT)","!$DANGER_DARK = %darken($DANGER, $PUML_GRADIENT)","!$DANGER_LIGHT = %lighten($DANGER, $PUML_GRADIENT)","!$WARNING_DARK = %darken($WARNING, $PUML_GRADIENT)","!$WARNING_LIGHT = %lighten($WARNING, $PUML_GRADIENT)","!$DARK_DARK = %darken($DARK, $PUML_GRADIENT)","!$DARK_LIGHT = %lighten($DARK, $PUML_GRADIENT)","!$LIGHT_DARK = %darken($LIGHT, $PUML_GRADIENT)","!$LIGHT_LIGHT = %lighten($LIGHT, $PUML_GRADIENT)","!$INFO_TEXT = $WHITE","!$SUCCESS_TEXT = $WHITE","!$WARNING_TEXT = $WHITE","!$DANGER_TEXT = $WHITE","!$PRIMARY_TEXT = $WHITE","!$HEADER_TEXT = $WHITE",'!if ($PUML_OUTLINE == "true")',"!$HEADER_TEXT = $PRIMARY_TEXT","!$PRIMARY_TEXT = $PRIMARY_LIGHT","!$INFO_TEXT = $INFO_LIGHT","!$WARNING_TEXT = $WARNING_LIGHT","!$DARK_BG = $PUML_BGCOLOR","!$INFO_BG = $PUML_BGCOLOR","!$DANGER_BG = $PUML_BGCOLOR","!$WARNING_BG = $PUML_BGCOLOR","!$SECONDARY_BG = $PUML_BGCOLOR","!else","!$DARK_BG = $DARK","!$INFO_BG = $INFO","!$DANGER_BG = $DANGER","!$WARNING_BG = $WARNING","!$SECONDARY_BG = $SECONDARY","!endif","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","!procedure $primary_scheme()",'!if ($PUML_OUTLINE == "true")',"FontColor $PRIMARY","BorderColor $PRIMARY","BackgroundColor $PUML_BGCOLOR","!else","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY","BackgroundColor $PRIMARY_LIGHT-$PRIMARY","!endif","!endprocedure","!procedure $secondary_scheme()",'!if ($PUML_OUTLINE == "true")',"FontColor $SECONDARY_DARK","BorderColor $SECONDARY_DARK","BackgroundColor $PUML_BGCOLOR","!else","FontColor $SECONDARY_TEXT","BorderColor $SECONDARY_DARK","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","!endif","!endprocedure",'!_POST = "<color #007a3e>POST</color>"','!_PUT = "<color #ea7400>PUT</color>"','!_DELETE = "<color #cf2a2a>DELETE</color>"','!_GET = "<color #009fdb>GET</color>"','!_PATCH = "<color #b5bd00>PATCH</color>"','!_HEAD = "<color #9012fe>HEAD</color>"','skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 8","skinparam BoxPadding 40","skinparam ArrowColor $DARK","skinparam stereotype {","CBackgroundColor $SECONDARY_LIGHT","CBorderColor $SECONDARY_DARK","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","FontColor $PRIMARY","BorderColor $SECONDARY","}","","skinparam legend {","$secondary_scheme()","BackgroundColor transparent","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY","}","!endsub","","' <style> ","' mindmapDiagram {","' Padding 15","' Margin 10","' FontSize 12","' FontName Verdana","' Shadowing 0.0","' LineThickness 1.5","' FontColor $PRIMARY_TEXT","' LineColor $PRIMARY_DARK","' node {","' LineColor $PRIMARY","' BackGroundColor $PRIMARY_LIGHT-$PRIMARY","' }","' }","' </style>","","!startsub activity","skinparam activity {","$primary_scheme()","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $SECONDARY_BG","DiamondBorderColor $DIAMOND_BD","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","!endsub","","!startsub actor","skinparam actor {","$primary_scheme()","FontColor $FGCOLOR","}","!endsub","","!startsub arrow","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","skinparam sequence {","ArrowThickness 3","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY","BackgroundColor $PUML_BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $PUML_BGCOLOR","BoxBorderColor $DARK","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $LIGHT","LifeLineBorderThickness 2","LifeLineBackgroundColor $LIGHT_DARK","GroupBorderColor $DARK","GroupFontColor $DARK","GroupHeaderFontColor $INFO","GroupBackgroundColor $SECONDARY","GroupBodyBackgroundColor $PUML_BGCOLOR","GroupHeaderBackgroundColor $PUML_BGCOLOR","DividerBackgroundColor $DARK","DividerBorderColor $DARK","DividerBorderThickness 2","DividerFontColor $LIGHT","ReferenceBackgroundColor $PUML_BGCOLOR","ReferenceBorderColor $DARK","ReferenceFontColor $DARK","ReferenceHeaderFontColor $INFO","ReferenceHeaderBackgroundColor $SECONDARY","StereotypeFontColor $PRIMARY_TEXT","StereotypeFontSize 12","}","!endsub","","!startsub partition","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY","BackgroundColor $PUML_BGCOLOR","}","!endsub","","!startsub collections","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","skinparam control {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub entity","skinparam entity {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub boundary","skinparam boundary {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub agent","skinparam agent {","BackgroundColor $WARNING","BorderColor $WARNING_LIGHT","FontColor $DARK","}","!endsub","","!startsub note","skinparam note {","BorderThickness 1","BackgroundColor $INFO_BG","BorderColor $INFO_DARK","FontColor $INFO_TEXT","}","!endsub","","!startsub artifact","skinparam artifact {","BackgroundColor $DARK_BG","BorderColor $DARK_DARK","FontColor $LIGHT","}","!endsub","","!startsub component","skinparam component {","$primary_scheme()","}","!endsub","","!startsub interface","skinparam interface {","BackgroundColor $DANGER_DARK","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","skinparam storage {","BackgroundColor $WARNING_BG","BorderColor $WARNING_DARK","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","skinparam node {","BackgroundColor $PUML_BGCOLOR","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub cloud","skinparam cloud {","BackgroundColor transparent","BorderColor $DARK","FontColor $FGCOLOR","}","!endsub","","!startsub database","skinparam database {","$primary_scheme()","FontColor $FGCOLOR","StereotypeFontColor $FGCOLOR","}","!endsub","","!startsub class","skinparam class {","$primary_scheme()","FontColor $HEADER_TEXT","HeaderBackgroundColor $PRIMARY_LIGHT-$PRIMARY","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $PRIMARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub object","skinparam object {","$primary_scheme()","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $PRIMARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub usecase","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","skinparam rectangle {","BackgroundColor $PUML_BGCOLOR","FontColor $SECONDARY_TEXT","BorderColor $SECONDARY_TEXT","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","skinparam package {","BackgroundColor $PUML_BGCOLOR","BorderColor $SECONDARY_TEXT","FontColor $SECONDARY_TEXT","BorderThickness 2","}","!endsub","","!startsub folder","skinparam folder {","BackgroundColor $SECONDARY_BG","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","skinparam frame {","BackgroundColor $SECONDARY_BG","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","!endsub","","!startsub state","skinparam state {","$primary_scheme()","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","skinparam card {","BackgroundColor $INFO_BG","BorderColor $INFO_DARK","FontColor $INFO_TEXT","}","!endsub","","!startsub file","skinparam file {","BackgroundColor $SECONDARY_BG","BorderColor $LIGHT","FontColor $FGCOLOR","}","!endsub","","!startsub stack","skinparam stack {","$primary_scheme()","}","!endsub","","!startsub map","skinparam map {","$primary_scheme()","}","!endsub","","<style>","participant {","Margin 5 40","Padding 15 20","}","wbsDiagram, mindmapDiagram {","root {","BackgroundColor $PUML_BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $INFO_BG","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","$primary_scheme()","Padding 15","RoundCorner 20","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY_BG","FontColor $INFO_BG","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $PUML_BGCOLOR","FontColor $DARK_BG","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $PUML_BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY_BG","FontColor $PRIMARY_TEXT","BorderColor $SECONDARY_BG","}","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY_BG","LineThickness 1.0","FontColor $PRIMARY_DARK","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_DARK","LineColor $PRIMARY_DARK","}","group {","BackGroundColor $LIGHT_BG","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY_BG","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $INFO_BG","}","separator {","LineColor $SECONDARY_BG","BackGroundColor $secondary_scheme()","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO_BG","FontSize 16","FontStyle italic","BackGroundColor $DIAMOND_BG","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY_BG","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>"].join(`+`),G["black-knight"]={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr["black-knight"]=['!$THEME = "black-knight"',"!assume transparent dark",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif",'!if %not(%variable_exists("$GRADIENT"))',"!$GRADIENT = 20","!endif","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false",'!$PRIMARY = "#303030"',"!$PRIMARY_DARK = %darken($PRIMARY, $GRADIENT)","!$PRIMARY_LIGHT = %lighten($PRIMARY, $GRADIENT)",'!$PRIMARY_TEXT = "#fff200"','!$SECONDARY = "#484848"',"!$SECONDARY_DARK = %darken($SECONDARY, $GRADIENT)","!$SECONDARY_LIGHT = %lighten($SECONDARY, $GRADIENT)",'!$SECONDARY_TEXT = "#fefefe"','!$SUCCESS = "#00FF00"',"!$SUCCESS_DARK = %darken($SUCCESS, $GRADIENT)","!$SUCCESS_LIGHT = %lighten($SUCCESS, $GRADIENT)",'!$SUCCESS_TEXT = "ffffff"','!$INFO = "#0060a8"',"!$INFO_DARK = %darken($INFO, $GRADIENT)","!$INFO_LIGHT = %lighten($INFO, $GRADIENT)",'!$INFO_TEXT = "ffffff"','!$WARNING = "#ff8000"',"!$WARNING_DARK = %darken($WARNING, $GRADIENT)","!$WARNING_LIGHT = %lighten($WARNING, $GRADIENT)",'!$WARNING_TEXT = "#222222"','!$DANGER = "#ff0000"',"!$DANGER_DARK = %darken($DANGER, $GRADIENT)","!$DANGER_LIGHT = %lighten($DANGER, $GRADIENT)",'!$DANGER_TEXT = "ffffff"','!$LIGHT = "#fff200"','!$DARK = "#484848"',"!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","!procedure $info($msg)","<font color=$INFO><b>$msg","!endprocedure","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY_DARK","BackgroundColor $PRIMARY_LIGHT-$PRIMARY_DARK","!endprocedure","!procedure $secondary_scheme()","FontColor $SECONDARY_TEXT","BorderColor $SECONDARY_DARK","BackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK","!endprocedure","","skinparam {",'defaultFontName "Verdana"',"defaultFontSize 12","defaultTextAlignment center","shadowing false","RoundCorner 10","TitleFontSize 18","' TitleFontColor $PRIMARY_TEXT","}","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $PRIMARY-$PRIMARY_DARK","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_LIGHT","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_LIGHT","LineColor $PRIMARY_LIGHT","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 40","Padding 15 20","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $INFO","}","separator {","LineColor $SECONDARY","BackGroundColor $SECONDARY-$SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 8","skinparam BoxPadding 40","skinparam ArrowColor $DARK","skinparam stereotype {","CBackgroundColor $SECONDARY_DARK","CBorderColor $SECONDARY_LIGHT","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","","skinparam title {","FontColor $SECONDARY_TEXT","BorderColor $SECONDARY_DARK","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","}","","skinparam legend {","BackgroundColor $PRIMARY","BorderColor $PRIMARY_DARK","FontColor $PRIMARY_TEXT","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY","}","!endsub","","!startsub activity","skinparam activity {","$primary_scheme()","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK","DiamondBorderColor $SECONDARY_DARK","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","!endsub","","!startsub actor","skinparam actor {","$primary_scheme()","}","!endsub","","!startsub arrow","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY","BackgroundColor $BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $BGCOLOR","BoxBorderColor $DARK","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY","LifeLineBorderThickness 2","LifeLineBackgroundColor $SECONDARY_DARK","GroupBorderColor $DARK","GroupFontColor $DARK","GroupHeaderFontColor $INFO","GroupBackgroundColor $SECONDARY","GroupBodyBackgroundColor $BGCOLOR","GroupHeaderBackgroundColor $BGCOLOR","DividerBackgroundColor $DARK","DividerBorderColor $DARK","DividerBorderThickness 2","DividerFontColor $LIGHT","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $DARK","ReferenceFontColor $SECONDARY_TEXT","ReferenceHeaderBackgroundColor $SECONDARY","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY_LIGHT","BackgroundColor $BGCOLOR","}","!endsub","","!startsub collections","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","skinparam control {","$primary_scheme()","}","!endsub","","!startsub entity","skinparam entity {","$primary_scheme()","}","!endsub","","!startsub boundary","skinparam boundary {","$primary_scheme()","}","!endsub","","!startsub agent","skinparam agent {","BackgroundColor $WARNING","BorderColor $WARNING_LIGHT","FontColor $DARK","}","!endsub","","!startsub note","skinparam note {","BorderThickness 1","BackgroundColor $INFO","BorderColor $INFO_DARK","FontColor $INFO_TEXT","}","!endsub","","!startsub artifact","skinparam artifact {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub component","skinparam component {","$primary_scheme()","}","!endsub","","!startsub interface","skinparam interface {","BackgroundColor $DANGER_DARK","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","skinparam storage {","BackgroundColor $WARNING_LIGHT-$WARNING_DARK","BorderColor $WARNING_DARK","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","skinparam node {","BackgroundColor $BGCOLOR","BorderColor $PRIMARY_LIGHT","FontColor $PRIMARY_TEXT","}","!endsub","","!startsub cloud","skinparam cloud {","BackgroundColor transparent","BorderColor $PRIMARY_LIGHT","FontColor $LIGHT","}","!endsub","","!startsub database","skinparam database {","$primary_scheme()","BackgroundColor $BGCOLOR","}","!endsub","","!startsub class","skinparam class {","$primary_scheme()","HeaderBackgroundColor $SECONDARY_DARK-$SECONDARY","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $LIGHT","AttributeFontSize 11","}","!endsub","","!startsub object","skinparam object {","$primary_scheme()","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub usecase","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","skinparam rectangle {","$primary_scheme()","BackgroundColor $BGCOLOR","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","skinparam package {","$primary_scheme()","BackgroundColor $BGCOLOR","BorderThickness 2","}","!endsub","","!startsub folder","skinparam folder {","BackgroundColor $SECONDARY_LIGHT","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","skinparam frame {","BackgroundColor $SECONDARY_LIGHT","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","!endsub","","!startsub state","skinparam state {","$primary_scheme()","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","skinparam card {","BackgroundColor $INFO_LIGHT-$INFO_DARK","BorderColor $INFO_DARK","FontColor $INFO_TEXT","}","!endsub","","!startsub file","skinparam file {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK","BorderColor $INFO","FontColor $SECONDARY_TEXT","}","!endsub","","!startsub stack","skinparam stack {","$primary_scheme()","}","!endsub","",'!if %variable_exists("NEWSTYLE")',"<>","wbsDiagram {","LineColor $PRIMARY","BorderThickness 3","BackgroundColor $LIGHT","FontColor $PRIMARY_TEXT",":depth(0) {","fontSize 16","fontStyle bold","fontColor $SECONDARY","}",":depth(1) {","fontSize 14","padding 5","fontStyle bold","}",":depth(2) {","fontSize 12","padding 4","}",":depth(3) {","fontSize 11","padding 3","fontColor $INFO","}","","}","</>","!endif"].join(`+`),G.bluegray={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr.bluegray=['!$THEME = "bluegray"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif","","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false","",'!$WHITE = "#fff"','!$GRAY_DARK = "#5a5a5a"','!$GRAY = "#959595"','!$PRIMARY = "#009fdb"','!$SECONDARY = "#f2f2f2"','!$SUCCESS = "#b5bd00"','!$INFO = "#0568ae"','!$WARNING = "#ea7400"','!$DANGER = "#cf2a2a"','!$LIGHT = "#d2d2d2"','!$DARK = "#5a5a5a"',"","!$FGCOLOR = $DARK",'!$PRIMARY_LIGHT = "#33b2e2"','!$PRIMARY_DARK = "#007faf"',"!$PRIMARY_TEXT = $WHITE",'!$SECONDARY_LIGHT = "#f5f5f5"','!$SECONDARY_DARK = "#c2c2c2"',"!$SECONDARY_TEXT = $DARK",'!$INFO_LIGHT = "#3786be"','!$INFO_DARK = "#04538b"',"!$INFO_TEXT = $WHITE",'!$SUCCESS_LIGHT = "#c4ca33"','!$SUCCESS_DARK = "#919700"',"!$SUCCESS_TEXT = $WHITE",'!$WARNING_LIGHT = "#ee9033"','!$WARNING_DARK = "#bb5d00"',"!$WARNING_TEXT = $WHITE",'!$DANGER_LIGHT = "#d95555"','!$DANGER_DARK = "#a62222"',"!$DANGER_TEXT = $WHITE","","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY_LIGHT","BackgroundColor $PRIMARY_LIGHT-$PRIMARY","","!endprocedure","","!procedure $secondary_scheme()","FontColor $SECONDARY_TEXT","BorderColor $SECONDARY_DARK","BackgroundColor $WHITE-#fefefe","!endprocedure","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $PRIMARY-$PRIMARY_DARK","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_DARK","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_DARK","LineColor $PRIMARY_DARK","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 30","Padding 15 20","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $INFO","}","separator {","LineColor $SECONDARY","BackGroundColor $SECONDARY-$SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 20","skinparam BoxPadding 40","skinparam ArrowColor $GRAY","skinparam stereotype {","CBackgroundColor $SECONDARY_LIGHT","CBorderColor $SECONDARY_DARK","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $PRIMARY","BorderColor $SECONDARY_DARK","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","}","","skinparam legend {","BackgroundColor $SECONDARY","BorderColor $SECONDARY_DARK","FontColor $DARK","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY","}","!endsub","","!startsub activity","","skinparam activity {","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY","BackgroundColor $PRIMARY_LIGHT-$PRIMARY","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK","DiamondBorderColor $SECONDARY_DARK","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","FontColor $PRIMARY","}","!endsub","","!startsub arrow","","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY","BackgroundColor $BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $LIGHT","BoxBorderColor $GRAY","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY_DARK","LifeLineBorderThickness 2","LifeLineBackgroundColor $SECONDARY_LIGHT","GroupBorderColor $GRAY","GroupFontColor $DARK","GroupHeaderFontColor $INFO","DividerBackgroundColor $WHITE-$LIGHT","DividerBorderColor $GRAY","DividerBorderThickness 2","DividerFontColor $DARK","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $GRAY","ReferenceFontColor $DARK","ReferenceHeaderFontColor $INFO","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY","BackgroundColor $BGCOLOR","}","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","FontColor $PRIMARY","}","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","FontColor $PRIMARY","}","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","FontColor $PRIMARY","}","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor #orange","BorderColor #999999","FontColor #333333","}","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $INFO_LIGHT-$INFO","BorderColor $INFO","FontColor $WHITE","}","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor $WHITE-$LIGHT","BorderColor $SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","}","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $DANGER_LIGHT","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $WARNING_LIGHT-$WARNING","BorderColor $WARNING","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","","skinparam node {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","BorderColor $SECONDARY_DARK","FontColor $PRIMARY","}","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor #F2FCFE-#eeeeee","BorderColor #F2FCFE","FontColor $PRIMARY","}","!endsub","","!startsub database","","skinparam database {","$primary_scheme()","' FontColor $PRIMARY","BorderColor $PRIMARY_DARK","' BackgroundColor $BGCOLOR","}","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","HeaderBackgroundColor $PRIMARY_LIGHT-$PRIMARY","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $LIGHT","AttributeFontSize 11","}","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $LIGHT","AttributeFontSize 11","}","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","","skinparam rectangle {","$secondary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","","skinparam package {","FontColor $PRIMARY","BorderColor $PRIMARY_LIGHT","BackgroundColor $BGCOLOR","BorderThickness 2","}","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $WHITE-$SECONDARY_LIGHT","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $WHITE-$SECONDARY_LIGHT","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","BorderColor $PRIMARY_DARK","StartColor $INFO","EndColor $INFO","AttributeFontColor $LIGHT","AttributeFontSize 11","}","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","","skinparam card {","BackgroundColor $INFO_LIGHT-$INFO","BorderColor $INFO","FontColor $INFO_TEXT","}","!endsub","","!startsub file","","skinparam file {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","BorderColor $INFO","FontColor $SECONDARY_TEXT","","}","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","}","!endsub"].join(`+`),G.blueprint={author:"Matthew Leather",license:"PlantUML (Apache-2.0 asl edition)",source:""},hr.blueprint=['!$THEME = "blueprint"',"",'!$BGCOLOR = "#003153"','!$FGCOLOR = "#D9D3D0"',"","!ifndef $FONT_NAME",'!$FONT_NAME = "Verdana"',"!endif","","!ifndef $FONT_NAME_MONOSPACED",'!$FONT_NAME_MONOSPACED = "Courier"',"!endif","","<style>","root {","BackgroundColor $BGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","HyperLinkColor $FGCOLOR","LineColor $FGCOLOR","LineThickness 1","Margin 5","}","document {","caption {","LineThickness 0","}","footer {","LineThickness 0","}","header {","LineThickness 0","}","title {","FontSize 22","LineThickness 0","}","}","node {","MaximumWidth 300","}","participant {","Margin 5 10","Padding 5 5","}","</style>","","skinparam ArrowLollipopColor $FGCOLOR","skinparam BackgroundColor $BGCOLOR","skinparam DefaultFontName $FONT_NAME","skinparam DefaultMonospacedFontName $FONT_NAME_MONOSPACED","skinparam LifelineStrategy nosolid","skinparam SequenceLifeLineBorderColor $FGCOLOR","skinparam Shadowing false","skinparam UseBetaStyle true","","skinparam Activity {","BackgroundColor $BGCOLOR","BarColor $FGCOLOR","BorderColor $FGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Boundary {","FontColor $FGCOLOR","}","skinparam Box {","Padding 5","}","skinparam CircledCharacter {","FontColor $FGCOLOR","FontName $FONT_NAME_MONOSPACED","Radius 9","}","skinparam Class {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam ClassAttribute {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam ClassStereotype {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Footer {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Header {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Hyperlink {","Color $FGCOLOR","}","skinparam IconPackage {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam IconPrivate {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam IconProtected {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam IconPublic {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam Note {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Object {","BorderColor $FGCOLOR","}","skinparam Package {","BorderColor $FGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam State {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeA {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeC {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeE {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeI {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeN {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam UseCaseStereoType {","FontColor $FGCOLOR","FontName $FONT_NAME","}"].join(`+`),G["carbon-gray"]={author:"Bharat Rajagopalan",license:"PlantUML (Apache-2.0 asl edition)",source:""},hr["carbon-gray"]=['!$THEME = "carbon-gray"',"",`'!$BGCOLOR = "#f5f5f5"`,"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif","","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false","","!$RED_80 = '#750e13'","!$RED_70 = '#a2191f'","!$RED_60 = '#da1e28'","!$RED_50 = '#fa4d56'","!$RED_40 = '#ff8389'","!$RED_30 = '#ffb3b8'","!$RED_20 = '#ffd7d9'","!$RED_10 = '#fff1f1'","","!$CYAN_10 = '#e5f6ff'","!$CYAN_20 = '#bae6ff'","!$CYAN_30 = '#82cfff'","!$CYAN_40 = '#33b1ff'","!$CYAN_50 = '#1192e8'","!$CYAN_60 = '#0072c3'","!$CYAN_70 = '#00539a'","!$CYAN_80 = '#003a6d'","","!$PURPLE_80 ='#491d8b'","!$PURPLE_70 = '#6929c4'","!$PURPLE_60 = '#8a3ffc'","!$PURPLE_50 = '#a56eff'","!$PURPLE_40 = '#be95ff'","!$PURPLE_30 = '#d4bbff'","!$PURPLE_20 = '#e8daff'","!$PURPLE_10 = '#f6f2ff'","","!$TEAL_10 = '#d9fbfb'","!$TEAL_20 = '#9ef0f0'","!$TEAL_30 = '#3ddbd9'","!$TEAL_40 = '#08bdba'","!$TEAL_50 = '#009d9a'","!$TEAL_60 = '#007d79'","!$TEAL_70 = '#005d5d'","!$TEAL_80 = '#004144'","","!$GRAY_10 = '#f4f4f4'","!$GRAY_20 = '#e0e0e0'","!$GRAY_30 = '#c6c6c6'","!$GRAY_40 = '#a8a8a8'","!$GRAY_50 = '#8d8d8d'","!$GRAY_60 = '#6f6f6f'","!$GRAY_70 = '#525252'","!$GRAY_80 = '#393939'","!$GRAY_90 = '#262626'","!$GRAY_100 = '#161616'","!$WHITE = '#FFFFF'","","!$GRAY_DARK = $GRAY_100","!$GRAY = $GRAY_30","!$LIGHT = $GRAY_70","!$DARK = $GRAY_90","","!$FGCOLOR = $DARK","!$PRIMARY = $GRAY_10","!$PRIMARY_LIGHT = $GRAY_10 ","!$PRIMARY_DARK = $GRAY_30","!$PRIMARY_TEXT = $DARK","!$SECONDARY = $GRAY_10 ","!$SECONDARY_LIGHT = $GRAY_10","!$SECONDARY_DARK = $GRAY_30","!$SECONDARY_TEXT = $DARK","!$INFO = $WHITE","!$INFO_LIGHT = $GRAY_20","!$INFO_DARK = $GRAY_30","!$INFO_TEXT = $DARK","!$SUCCESS = $DARK","!$SUCCESS_LIGHT = $DARK","!$SUCCESS_DARK = $DARK","!$SUCCESS_TEXT = $WHITE","!$WARNING = $WHITE","!$WARNING_LIGHT = $WHITE","!$WARNING_DARK = $WHITE","!$WARNING_TEXT = $DARK","!$DANGER = $WHITE","!$DANGER_LIGHT = $WHITE","!$DANGER_DARK = $WHITE","!$DANGER_TEXT = $DARK","","!$OTHER_BG = $WHITE","!$DB_BG = $GRAY","!$LINE_THICKNESS = 1","!$BORDER_THICKNESS = 1","","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY_DARK","BackgroundColor $PRIMARY_LIGHT-$PRIMARY","RoundCorner 0","!endprocedure","",'skinparam defaultFontName "IBM Plex Sans, Noto Sans, Verdana"',"skinparam defaultFontSize 12","'skinparam dpi 125","skinparam shadowing false","skinparam roundcorner 0","skinparam BoxPadding 30","skinparam ArrowColor $GRAY","<style>","participant {","Margin 5 30","Padding 15 20","}","</style>","skinparam stereotype {","CBackgroundColor $SECONDARY_LIGHT","CBorderColor $SECONDARY_DARK","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $SECONDARY_TEXT","BorderColor $SECONDARY","FontSize 20","BorderRoundCorner 8","BorderThickness 0","BackgroundColor $BGCOLOR","}","","skinparam legend {","BackgroundColor $OTHER_BG","BorderColor $DARK","FontColor $PRIMARY_TEXT","}","","!startsub swimlane","skinparam swimlane {","BorderColor $PRIMARY","BorderThickness $LINE_THICKNESS","TitleBackgroundColor $PRIMARY_LIGHT-$PRIMARY","TitleFontColor $PRIMARY_TEXT","BackgroundColor $BG_COLOR","TitleFontStyle bold","}","!endsub","","!startsub activity","","skinparam activity {","$primary_scheme()","BarColor $DARK","StartColor $LIGHT-$DARK","EndColor $LIGHT-$DARK","DiamondBackgroundColor $SECONDARY_LIGHT-$SECONDARY","DiamondBorderColor $SECONDARY","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","ParticipantBorderThickness $BORDER_THICKNESS","}","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","}","!endsub","","!startsub arrow","","skinparam arrow {","Thickness $LINE_THICKNESS","Color $GRAY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY_DARK","' For some reason sequence title font color does not pick up from global","TitleFontColor $SECONDARY_TEXT","BackgroundColor $OTHER_BG","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $OTHER_BG","BoxBorderColor $PRIMARY_DARK","BoxFontColor $PRIMARY_TEXT","DelayFontColor $PRIMARY_TEXT","LifeLineBorderColor $PRIMARY_DARK","LifeLineBorderThickness $LINE_THICKNESS","LifeLineBackgroundColor $PRIMARY","GroupBorderColor $PRIMARY_DARK","GroupFontColor $PRIMARY_TEXT","GroupFontStyle bold","GroupHeaderFontColor $INFO_TEXT","GroupBackgroundColor $PRIMARY","GroupBodyBackgroundColor $OTHER_BG","GroupHeaderBackgroundColor $PRIMARY","DividerBackgroundColor $PRIMARY","DividerBorderColor $PRIMARY_DARK","DividerBorderThickness $LINE_THICKNESS","DividerFontColor $PRIMARY_TEXT","ReferenceBackgroundColor $BGCOLOR","ReferenceHeaderBorderColor $PRIMARY_DARK","ReferenceHeaderBackgroundColor $PRIMARY","ReferenceBorderColor $PRIMARY_DARK","ReferenceFontColor $DARK","ReferenceHeaderFontColor $INFO_TEXT","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY_TEXT","BackgroundColor $OTHER_BG","fontStyle bold","}","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","}","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","}","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","}","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor $PRIMARY_LIGHT","BorderColor $PRIMARY_DARK","FontColor $PRIMARY_TEXT","RoundCorner 0","}","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $INFO_LIGHT-$INFO","BorderColor $DARK","FontColor $INFO_TEXT","RoundCorner 0","}","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor $PRIMARY","BorderColor $PRIMARY_DARK","FontColor $DARK","RoundCorner 0","}","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","BackgroundColor $PRIMARY","BorderColor $PRIMARY_DARK","}","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $PRIMARY_DARK","BorderColor $PRIMARY_DARK","FontColor $PRIMARY_TEXT","}","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $OTHER_BG","BorderColor $DARK","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","","skinparam node {","BackgroundColor $OTHER_BG","BorderColor $PRIMARY_DARK","FontColor $PRIMARY_TEXT","Roundcorner 0","}","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor $OTHER_BG","BorderColor $PRIMARY_DARK","FontColor $PRIMARY_TEXT","Roundcorner 0","}","!endsub","","!startsub database","","skinparam database {","$primary_scheme()","BorderColor $PRIMARY_DARK","BackgroundColor $OTHER_BG","Roundcorner 0","}","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","HeaderBackgroundColor $PRIMARY_LIGHT-$PRIMARY","StereotypeFontColor $PRIMARY_TEXT","StereotypeFontSize 9","BorderThickness $LINE_THICKNESS","AttributeFontColor $PRIMARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","StereotypeFontColor $PRIMARY_TEXT","BorderThickness $BORDER_THICKNESS","AttributeFontColor $PRIMARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","BorderThickness $BORDER_THICKNESS","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub rectangle","","skinparam rectangle {","$primary_scheme()","BackgroundColor $OTHER_BG","BorderThickness $BORDER_THICKNESS","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub package","","skinparam package {","$primary_scheme()","BackgroundColor $OTHER_BG","BorderThickness $BORDER_THICKNESS","}","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $OTHER_BG","BorderColor $PRIMARY_DARK","FontColor $WARNING_TEXT","BorderThickness $BORDER_THICKNESS","Roundcorner 0","}","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $OTHER_BG","BorderColor $PRIMARY_DARK","FontColor $DARK","BorderThickness $BORDER_THICKNESS","Roundcorner 0","}","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","BorderColor $PRIMARY_DARK","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","","}","!endsub","","!startsub card","","skinparam card {","BackgroundColor $OTHER_BG","BorderColor $PRIMARY_DARK","FontColor $INFO_TEXT","RoundCorner 0","}","!endsub","","!startsub file","","skinparam file {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","BorderColor $SECONDARY_DARK","FontColor $SECONDARY_TEXT","RoundCorner 0","","}","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","}","!endsub","","!startsub person","","skinparam person {","$primary_scheme()","}","!endsub","",'!if (%variable_exists("LEGACY"))','!$LEGACY = "true"',"!endif","",'!if (%getenv("LEGACY") == "true")','!$LEGACY = "true"',"!endif","",`'!if (not %variable_exists("$LEGACY"))`,"","skinparam useBetaStyle true","","!startsub mindmap","","<style>","","boardDiagram {","node {","$primary_scheme()","BackGroundColor $PRIMARY","LineColor $PRIMARY_DARK",'FontName "IBM Plex Sans, Noto Sans, Verdana"',"'FontColor ","FontSize 12","'FontStyle bold","RoundCorner 0","'LineThickness 2","'LineStyle 10-5","separator {","LineThickness $LINE_THICKNESS","LineColor $PRIMARY_DARK","'LineStyle 1-5","}","}","}","","ganttDiagram {","","task {","BackGroundColor $PRIMARY","LineColor $PRIMARY_DARK","FontStyle Bold","FontSize 12","unstarted {","BackGroundColor $PRIMARY_LIGHT","LineColor $PRIMARY_DARK","'FontColor $RED_80","}","Padding 3","Margin 3","","}","timeline {","LineColor $PRIMARY","FontColor $WHITE","BackgroundColor $DARK","FontName Helvetica","'FontSize 12","FontStyle bold","YearFontColor $WHITE","QuarterFontColor $WHITE","MonthFontColor $WHITE","WeekFontColor $WHITE","WeekdayFontColor $WHITE","DayFontColor $WHITE","}","arrow {","'FontName Helvetica","'FontColor red","FontSize 12","FontStyle bold","'BackGroundColor GreenYellow","LineColor $PRIMARY_DARK","'LineStyle 8.0-13.0","'LineThickness 3.0","}","","milestone {","FontColor $PRIMARY_TEXT","FontSize 12","FontStyle bold","BackGroundColor $DARK","LineColor $DARK","}","separator {","BackgroundColor $PRIMARY","'LineStyle 8.0-3.0","LineColor $PRIMARY","LineThickness 1.0","FontSize 12","FontStyle bold","FontColor $PRIMARY_TEXT","Margin 3","'Padding 20","}","closed {","BackgroundColor $RED_20","FontColor $RED_20","}","}","","jsonDiagram {","node {","$primary_scheme()","BackGroundColor $PRIMARY","LineColor $PRIMARY_DARK",'FontName "IBM Plex Sans, Noto Sans, Verdana"',"'FontColor ","FontSize 12","'FontStyle bold","RoundCorner 0","'LineThickness 2","'LineStyle 10-5","separator {","LineThickness $LINE_THICKNESS","LineColor $PRIMARY_DARK","'LineStyle 1-5","}","}","arrow {","BackGroundColor $PRIMARY_DARK","LineColor $PRIMARY_DARK","LineThickness $LINE_THICKNESS","LineStyle 3-6","}","highlight {","BackGroundColor $PRIMARY_DARK","FontColor $PRIMARY_TEXT","FontStyle italic","}","}","","mindmapDiagram {","'Padding 8","'Margin 8","LineThickness $LINE_THICKNESS","FontColor $PRIMARY_TEXT","LineColor $PRIMARY_DARK","'BackgroundColor $PRIMARY_LIGHT-$PRIMARY","Roundcorner 0","node {","'Padding 12","'Margin 3","'HorizontalAlignment center","LineColor $PRIMARY_DARK","LineThickness $BORDER_THICKNESS","BackgroundColor $PRIMARY_LIGHT-$PRIMARY","RoundCorner 0","MaximumWidth 100","FontColor $DARK","'FontStyle bold","}","}","","'Salt Diagram only has limited skinning","saltDiagram {","BackGroundColor $BG_COLOR","'Fontname Monospaced","'FontSize 10","'FontStyle italic","'LineThickness 0.5","'LineColor PRIMARY_DARK","}","","timingDiagram {","document {","BackGroundColor $BG_COLOR","LineColor $PRIMARY","BorderColor $PRIMARY","FontColor $PRIMARY_TEXT","","}","highlight {","BackGroundColor $PRIMARY","}","","constraintArrow {","'LineStyle 2-1","LineThickness 2","LineColor $RED_80","FontColor $RED_80","FontStyle bold","}","}","","wbsDiagram {","'Padding 8","node {","'Padding 12","'Margin 3","'HorizontalAlignment center","LineColor $PRIMARY_DARK","LineThickness $BORDER_THICKNESS","BackgroundColor $PRIMARY_LIGHT-$PRIMARY","RoundCorner 0","MaximumWidth 100","FontColor $PRIMARY_TEXT","'FontStyle bold","}","'Margin 8","'LineThickness $LINE_THICKNESS","'FontColor $PRIMARY_TEXT","'LineColor $PRIMARY","'BorderColor $PRIMARY","'BackgroundColor $PRIMARY_LIGHT-$PRIMARY","'RoundCorner 0","","arrow {",`' note that Connectors are actually "Arrows"; this may change in the future`,"' so this means all Connectors and Arrows are now going to be green","","lineColor $PRIMARY_DARK","fontColor $PRIMARY_TEXT","thickness $LINE_THICKNESS","}","","noteBorderColor $DARK","}","","'Placeholder for adding wirediagram skins","wireDiagram {","}","","yamlDiagram {","node {","$primary_scheme()","BackGroundColor $PRIMARY","LineColor $PRIMARY_DARK",'FontName "IBM Plex Sans, Noto Sans, Verdana"',"'FontColor ","FontSize 12","'FontStyle bold","RoundCorner 0","'LineThickness 2","'LineStyle 10-5","separator {","LineThickness $LINE_THICKNESS","LineColor $PRIMARY_DARK","'LineStyle 1-5","}","}","arrow {","BackGroundColor $PRIMARY_DARK","LineColor $PRIMARY_DARK","LineThickness $LINE_THICKNESS","LineStyle 3-6","}","highlight {","BackGroundColor $PRIMARY_DARK","FontColor $PRIMARY_TEXT","FontStyle italic","}","}","</style>","!endsub","'!endif"].join(`+`),G.cerulean={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr.cerulean=['!$THEME = "cerulean"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif","","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false","",'!$BLUE = "#033C73"','!$INDIGO = "#6610F2"','!$PURPLE = "#6F42C1"','!$PINK = "#E83E8C"','!$RED = "#C71C22"','!$ORANGE = "#FD7E14"','!$YELLOW = "#DD5600"','!$GREEN = "#73A839"','!$TEAL = "#20C997"','!$CYAN = "#2FA4E7"','!$WHITE = "#FFF"','!$GRAY_DARK = "#343A40"','!$GRAY = "#868E96"','!$PRIMARY = "#2FA4E7"','!$SECONDARY = "#E9ECEF"','!$SUCCESS = "#73A839"','!$INFO = "#033C73"','!$WARNING = "#DD5600"','!$DANGER = "#C71C22"','!$LIGHT = "#F8F9FA"','!$DARK = "#343A40"',"","!$FGCOLOR = $DARK",'!$PRIMARY_LIGHT = "#59B6EC"','!$PRIMARY_DARK = "#2683B9"',"!$PRIMARY_TEXT = $WHITE",'!$SECONDARY_LIGHT = "#EDF0F2"','!$SECONDARY_DARK = "#BABDBF"',"!$SECONDARY_TEXT = $DARK",'!$INFO_LIGHT = "#35638F"','!$INFO_DARK = "#02305C"',"!$INFO_TEXT = $WHITE",'!$SUCCESS_LIGHT = "#8FB961"','!$SUCCESS_DARK = "#5C862E"',"!$SUCCESS_TEXT = $WHITE",'!$WARNING_LIGHT = "#E47833"','!$WARNING_DARK = "#B14500"',"!$WARNING_TEXT = $WHITE",'!$DANGER_LIGHT = "#D2494E"','!$DANGER_DARK = "#9F161B"',"!$DANGER_TEXT = $WHITE","","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY","BackgroundColor $PRIMARY_LIGHT-$PRIMARY","!endprocedure","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $PRIMARY-$PRIMARY_DARK","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_DARK","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_DARK","LineColor $PRIMARY_DARK","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 40","Padding 15 20","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $INFO","}","separator {","LineColor $SECONDARY","BackGroundColor $SECONDARY-$SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 8","skinparam BoxPadding 40","skinparam ArrowColor $GRAY","skinparam stereotype {","CBackgroundColor $SECONDARY_LIGHT","CBorderColor $SECONDARY_DARK","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $PRIMARY","BorderColor $SECONDARY_DARK","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","}","","skinparam legend {","BackgroundColor $SECONDARY","BorderColor $SECONDARY_DARK","FontColor $DARK","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY","}","!endsub","","!startsub activity","","skinparam activity {","$primary_scheme()","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $WHITE-$SECONDARY_LIGHT","DiamondBorderColor $SECONDARY_DARK","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub arrow","","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY","BackgroundColor $BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $LIGHT","BoxBorderColor $GRAY","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY_DARK","LifeLineBorderThickness 2","LifeLineBackgroundColor $SECONDARY_LIGHT","GroupBorderColor $GRAY","GroupFontColor $DARK","GroupHeaderFontColor $INFO","DividerBackgroundColor $WHITE-$LIGHT","DividerBorderColor $GRAY","DividerBorderThickness 2","DividerFontColor $DARK","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $GRAY","ReferenceFontColor $DARK","ReferenceHeaderFontColor $INFO","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY","BackgroundColor $BGCOLOR","}","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor #orange","BorderColor #999999","FontColor #333333","}","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $INFO_LIGHT-$INFO","BorderColor $INFO","FontColor $WHITE","}","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor $WHITE-$LIGHT","BorderColor $SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","}","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $DANGER_LIGHT","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $WARNING_LIGHT-$WARNING","BorderColor $WARNING","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","","skinparam node {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","BorderColor $SECONDARY","FontColor $SECONDARY_TEXT","}","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor #F2FCFE-#eeeeee","BorderColor #F2FCFE","FontColor $PRIMARY","}","!endsub","","!startsub database","","skinparam database {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","HeaderBackgroundColor $PRIMARY-$PRIMARY_DARK","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $LIGHT","AttributeFontSize 11","}","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","","skinparam rectangle {","FontColor $PRIMARY","BorderColor $PRIMARY_LIGHT","BackgroundColor $BGCOLOR","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","","skinparam package {","FontColor $PRIMARY","BorderColor $PRIMARY_LIGHT","BackgroundColor $BGCOLOR","BorderThickness 2","}","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $WHITE-$SECONDARY_LIGHT","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $WHITE-$SECONDARY_LIGHT","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","BorderColor $PRIMARY_DARK","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","","skinparam card {","BackgroundColor $INFO_LIGHT-$INFO","BorderColor $INFO","FontColor $INFO_TEXT","}","!endsub","","!startsub file","","skinparam file {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","BorderColor $INFO","FontColor $GRAY","","}","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","}","!endsub"].join(`+`),G["cerulean-outline"]={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr["cerulean-outline"]=['!$THEME = "cerulean-outline"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif","","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false","",'!$BLUE = "#033C73"','!$INDIGO = "#6610F2"','!$PURPLE = "#6F42C1"','!$PINK = "#E83E8C"','!$RED = "#C71C22"','!$ORANGE = "#FD7E14"','!$YELLOW = "#DD5600"','!$GREEN = "#73A839"','!$TEAL = "#20C997"','!$CYAN = "#2FA4E7"','!$WHITE = "#FFF"','!$GRAY_DARK = "#343A40"','!$GRAY = "#868E96"','!$PRIMARY = "#2FA4E7"','!$SECONDARY = "#E9ECEF"','!$SUCCESS = "#73A839"','!$INFO = "#033C73"','!$WARNING = "#DD5600"','!$DANGER = "#C71C22"','!$LIGHT = "#F8F9FA"','!$DARK = "#343A40"',"","!$FGCOLOR = $DARK",'!$PRIMARY_LIGHT = "#59B6EC"','!$PRIMARY_DARK = "#2683B9"',"!$PRIMARY_TEXT = $PRIMARY",'!$SECONDARY_LIGHT = "#EDF0F2"','!$SECONDARY_DARK = "#BABDBF"',"!$SECONDARY_TEXT = $SECONDARY_DARK",'!$INFO_LIGHT = "#35638F"',"!$INFO_TEXT = $INFO",'!$SUCCESS_LIGHT = "#8FB961"',"!$SUCCESS_TEXT = $SUCCESS",'!$WARNING_LIGHT = "#E47833"',"!$WARNING_TEXT = $WARNING",'!$DANGER_LIGHT = "#D2494E"',"!$DANGER_TEXT = $WHITE","","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY","BackgroundColor $BGCOLOR","!endprocedure","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $BGCOLOR","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $BGCOLOR","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_DARK","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_DARK","LineColor $PRIMARY_DARK","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 40","Padding 15 20","}","","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $BGCOLOR","}","separator {","LineColor $SECONDARY_DARK","BackGroundColor $BGCOLOR","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 8","skinparam BoxPadding 40","skinparam ArrowColor $GRAY","skinparam stereotype {","CBackgroundColor $SECONDARY_LIGHT","CBorderColor $SECONDARY_DARK","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $PRIMARY","BorderColor $SECONDARY_DARK","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $BGCOLOR","}","","skinparam legend {","BackgroundColor $BGCOLOR","BorderColor $SECONDARY_DARK","FontColor $DARK","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY","}","!endsub","","!startsub activity","","skinparam activity {","$primary_scheme()","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $BGCOLOR","DiamondBorderColor $SECONDARY_DARK","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","}","!endsub","","!startsub arrow","","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY","BackgroundColor $BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $BGCOLOR","BoxBorderColor $GRAY","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY_DARK","LifeLineBorderThickness 2","LifeLineBackgroundColor $BGCOLOR","GroupBorderColor $GRAY","GroupFontColor $DARK","GroupHeaderFontColor $INFO_TEXT","DividerBackgroundColor $LIGHT","DividerBorderColor $GRAY","DividerBorderThickness 2","DividerFontColor $DARK","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $GRAY","ReferenceFontColor $DARK","ReferenceHeaderFontColor $INFO_TEXT","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY","BackgroundColor $BGCOLOR","}","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","}","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","}","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","}","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor $BGCOLOR","BorderColor #999999","FontColor #333333","}","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $BGCOLOR","BorderColor $INFO","FontColor $INFO_TEXT","}","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor $BGCOLOR","BorderColor $GRAY","FontColor $GRAY","}","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","' BackgroundColor $BGCOLOR","' BorderColor $SUCCESS","' FontColor $SUCCESS_TEXT","}","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $BGCOLOR","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $BGCOLOR","BorderColor $WARNING","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","","skinparam node {","BackgroundColor $BGCOLOR","BorderColor $DARK","FontColor $DARK","}","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor #F2FCFE-#eeeeee","BorderColor #F2FCFE","FontColor $DARK","}","!endsub","","!startsub database","","skinparam database {","$primary_scheme()","}","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","FontColor $LIGHT","HeaderBackgroundColor $PRIMARY-$PRIMARY_DARK","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $DARK","AttributeFontSize 11","}","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $SECONDARY_DARK","AttributeFontSize 11","}","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","","skinparam rectangle {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","","skinparam package {","BackgroundColor $BGCOLOR","BorderColor $PRIMARY","FontColor $PRIMARY","BorderThickness 2","}","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $BGCOLOR","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $BGCOLOR","BorderColor $INFO","FontColor $INFO_TEXT","BorderThickness 2","}","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","","skinparam card {","BackgroundColor $BGCOLOR","BorderColor $INFO","FontColor $INFO_TEXT","}","!endsub","","!startsub file","","skinparam file {","BackgroundColor $BGCOLOR","BorderColor $GRAY","FontColor $GRAY","}","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","}","!endsub","",'!if (%variable_exists("LEGACY"))','!$LEGACY = "true"',"!endif","",'!if (%getenv("LEGACY") == "true")','!$LEGACY = "true"',"!endif","",'!if (%variable_exists("$LEGACY"))',"","skinparam useBetaStyle true","","!startsub mindmap","","<style>","style mindmapDiagram {","'Padding 8","Margin 8","LineThickness 2.0","FontColor $PRIMARY_TEXT","LineColor $SECONDARY","BackGroundColor $PRIMARY_LIGHT-$PRIMARY","}","wbsDiagram {","'Padding 8","Margin 8","LineThickness 2.0","FontColor $PRIMARY_TEXT","LineColor $PRIMARY","BackGroundColor $PRIMARY_LIGHT-$PRIMARY","}","</style>","!endsub","!endif"].join(`+`),G["cloudscape-design"]={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr["cloudscape-design"]=[`'!$PUML_OUTLINE = "true"`,`'!$PUML_BGCOLOR = "#0f1b2a"`,`'!$PUML_MODE = "dark"`,'!$PUML_THEME = "cloudscape-design"','!$THEME = "cloudscape-design"','!if %not(%variable_exists("$PUML_BGCOLOR"))','!$PUML_BGCOLOR = "transparent"',"!endif",'!if %not(%variable_exists("$PUML_GRADIENT"))',"!$PUML_GRADIENT = 20","!endif",'!if %not(%variable_exists("$PUML_MODE"))','!$PUML_MODE = "light"',"!endif",'!if %not(%variable_exists("$PUML_OUTLINE"))','!$PUML_OUTLINE = "false"',"!endif","skinparam BackgroundColor $PUML_BGCOLOR","skinparam useBetaStyle false",'!$ALPHA = "80"','!$WHITE = "#FFF"','!$GRAY_LIGHT = "#222"','!$GRAY = "#868e96"','!$PRIMARY = "#0972d3"','!$WARNING = "#ecdd00"','!$LIGHT = "#d1d5db"','!$DARK = "#000716"','!$SECONDARY_TEXT = "#539fe5"','!if ($PUML_MODE == "light")',"!$PRIMARY_TEXT = $LIGHT",'!$SECONDARY = "#eeeeee"',"!$SECONDARY_LIGHT = %lighten($SECONDARY, $PUML_GRADIENT)",'!$SUCCESS = "#037f0c"','!$INFO = "#0972d3"','!$DANGER = "#d91515"',"!$SECONDARY_TEXT = $DARK","!$FGCOLOR = $DARK","!$DIAMOND_BD = %darken($SECONDARY, $PUML_GRADIENT)","!$GRAY_LIGHT = %lighten($GRAY, $PUML_GRADIENT)","!$GRAY_DARK = %darken($GRAY, $PUML_GRADIENT)","!$MAIN_BG = $WHITE","!assume transparent light","!else","!$TMP = $LIGHT","!$LIGHT = $DARK","!$DARK = $TMP",'!$PRIMARY = "#539fe5"',"!$PRIMARY_TEXT = $WHITE",'!$SECONDARY = "#2a2e33"',"!$SECONDARY_LIGHT = %lighten($SECONDARY, $PUML_GRADIENT)",'!$SUCCESS = "#037f0c"','!$INFO = "#0972d3"','!$DANGER = "#ff5d64"','!$WARNING = "#fbf8cc"',"!$SECONDARY_TEXT = $WHITE","!$FGCOLOR = $WHITE","!$DIAMOND_BD = %lighten($SECONDARY, $PUML_GRADIENT)","!$GRAY_LIGHT = %darken($GRAY, $PUML_GRADIENT)","!$GRAY_DARK = %lighten($GRAY, $PUML_GRADIENT)",'!$MAIN_BG = "#0f1b2a"',"!assume transparent dark","!endif","!$PRIMARY_DARK = %darken($PRIMARY, $PUML_GRADIENT)","!$PRIMARY_LIGHT = %lighten($PRIMARY, $PUML_GRADIENT)","!$SECONDARY_DARK = %darken($SECONDARY, $PUML_GRADIENT)","!$SUCCESS_DARK = %darken($SUCCESS, $PUML_GRADIENT)","!$SUCCESS_LIGHT = %lighten($SUCCESS, $PUML_GRADIENT)","!$INFO_DARK = %darken($INFO, $PUML_GRADIENT)","!$INFO_LIGHT = %lighten($INFO, $PUML_GRADIENT)","!$DANGER_DARK = %darken($DANGER, $PUML_GRADIENT)","!$DANGER_LIGHT = %lighten($DANGER, $PUML_GRADIENT)","!$WARNING_DARK = %darken($WARNING, $PUML_GRADIENT)","!$WARNING_LIGHT = %lighten($WARNING, $PUML_GRADIENT)","!$DARK_DARK = %darken($DARK, $PUML_GRADIENT)","!$DARK_LIGHT = %lighten($DARK, $PUML_GRADIENT)","!$LIGHT_DARK = %darken($LIGHT, $PUML_GRADIENT)","!$LIGHT_LIGHT = %lighten($LIGHT, $PUML_GRADIENT)","!$INFO_TEXT = $WHITE","!$SUCCESS_TEXT = $WHITE","!$WARNING_TEXT = $WHITE","!$DANGER_TEXT = $WHITE","!$HEADER_TEXT = $WHITE",'!if ($PUML_OUTLINE == "true")',"!$HEADER_TEXT = $PRIMARY_TEXT","!$PRIMARY_TEXT = $PRIMARY_LIGHT","!$INFO_TEXT = $INFO","!$WARNING_TEXT = $WARNING_LIGHT","!$DARK_BG = $PUML_BGCOLOR","!$INFO_BG = $PUML_BGCOLOR","!$DANGER_BG = $PUML_BGCOLOR","!$WARNING_BG = $PUML_BGCOLOR","!$SECONDARY_BG = $PUML_BGCOLOR","!else","!$DARK_BG = $DARK","!$INFO_BG = $INFO","!$DANGER_BG = $DANGER","!$WARNING_BG = $WARNING","!$SECONDARY_BG = $SECONDARY","!endif","!unquoted function $alpha($color, $alpha) !return $color + $alpha","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","!procedure $primary_scheme()",'!if ($PUML_OUTLINE == "true")',"FontColor $PRIMARY","BorderColor $PRIMARY","BackgroundColor $PUML_BGCOLOR","!else","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY","BackgroundColor $PRIMARY_LIGHT-$PRIMARY","!endif","!endprocedure","!procedure $secondary_scheme()",'!if ($PUML_OUTLINE == "true")',"FontColor $SECONDARY_DARK","BorderColor $SECONDARY_DARK","BackgroundColor $PUML_BGCOLOR","!else","FontColor $SECONDARY_TEXT","BorderColor $SECONDARY_DARK","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","!endif","!endprocedure",'!_POST = "<color #007a3e>POST</color>"','!_PUT = "<color #ea7400>PUT</color>"','!_DELETE = "<color #cf2a2a>DELETE</color>"','!_GET = "<color #009fdb>GET</color>"','!_PATCH = "<color #b5bd00>PATCH</color>"','!_HEAD = "<color #9012fe>HEAD</color>"','skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 8","skinparam BoxPadding 40","skinparam ArrowColor $DARK","skinparam stereotype {","CBackgroundColor $SECONDARY_LIGHT","CBorderColor $SECONDARY_DARK","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","FontColor $PRIMARY","BorderColor $SECONDARY","}","","skinparam legend {","$secondary_scheme()","BackgroundColor transparent","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY","}","!endsub","","!startsub activity","skinparam activity {","$primary_scheme()","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $SECONDARY_BG","DiamondBorderColor $DIAMOND_BD","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","!endsub","","!startsub actor","skinparam actor {","$primary_scheme()","FontColor $FGCOLOR","}","!endsub","","!startsub arrow","skinparam arrow {","Thickness 2","Color $GRAY_LIGHT","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","skinparam sequence {","ArrowThickness 2","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY","BackgroundColor $PUML_BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $alpha($PUML_BGCOLOR, $ALPHA)","BoxBorderColor $GRAY_DARK","BoxFontColor $GRAY_DARK","DelayFontColor $LIGHT","LifeLineBorderColor $PRIMARY","LifeLineBorderThickness 0","LifeLineBackgroundColor $SECONDARY","GroupBorderColor $DARK","GroupBorderThickness 1","GroupFontColor $DARK","GroupHeaderFontColor $INFO","GroupBackgroundColor $alpha($SECONDARY, $ALPHA)","GroupBodyBackgroundColor $alpha($PUML_BGCOLOR, $ALPHA)","GroupHeaderBackgroundColor $PUML_BGCOLOR","DividerBackgroundColor $SECONDARY","DividerBorderColor $SECONDARY_LIGHT","DividerBorderThickness 2","DividerFontColor $DARK","ReferenceAlignment left","ReferenceBackgroundColor $alpha($PUML_BGCOLOR, $ALPHA)","ReferenceBorderColor $SECONDARY","ReferenceBorderThickness 2","ReferenceFontColor $DARK","ReferenceHeaderFontColor $INFO","ReferenceHeaderBackgroundColor $alpha($SECONDARY, $ALPHA)","StereotypeFontColor $PRIMARY_TEXT","StereotypeFontSize 12","}","!endsub","","!startsub partition","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY","BackgroundColor $PUML_BGCOLOR","}","!endsub","","!startsub collections","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","skinparam control {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub entity","skinparam entity {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub boundary","skinparam boundary {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub agent","skinparam agent {","BackgroundColor $WARNING","BorderColor $WARNING_LIGHT","FontColor $GRAY","}","!endsub","","!startsub note","skinparam note {","BorderThickness 1","BackgroundColor $INFO_BG","BorderColor $INFO","FontColor $INFO_TEXT","}","!endsub","","!startsub artifact","skinparam artifact {","BackgroundColor $DARK_BG","BorderColor $DARK_DARK","FontColor $LIGHT","}","!endsub","","!startsub component","skinparam component {","$primary_scheme()","}","!endsub","","!startsub interface","skinparam interface {","BackgroundColor $DANGER_DARK","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","skinparam storage {","BackgroundColor $WARNING_BG","BorderColor $WARNING_DARK","FontColor $GRAY","}","!endsub","","!startsub node","skinparam node {","BackgroundColor $PUML_BGCOLOR","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub cloud","skinparam cloud {","BackgroundColor transparent","BorderColor $DARK","FontColor $FGCOLOR","}","!endsub","","!startsub database","skinparam database {","$primary_scheme()","FontColor $FGCOLOR","StereotypeFontColor $FGCOLOR","}","!endsub","","!startsub class","skinparam class {","$primary_scheme()","FontColor $HEADER_TEXT","HeaderBackgroundColor $PRIMARY_LIGHT-$PRIMARY","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $PRIMARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub object","skinparam object {","$primary_scheme()","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $PRIMARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub usecase","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","skinparam rectangle {","BackgroundColor $PUML_BGCOLOR","FontColor $SECONDARY_TEXT","BorderColor $SECONDARY_TEXT","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","skinparam package {","BackgroundColor $PUML_BGCOLOR","BorderColor $SECONDARY_TEXT","FontColor $SECONDARY_TEXT","BorderThickness 2","}","!endsub","","!startsub folder","skinparam folder {","BackgroundColor $SECONDARY_BG","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","skinparam frame {","BackgroundColor $SECONDARY_BG","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","!endsub","","!startsub state","skinparam state {","$primary_scheme()","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","skinparam card {","BackgroundColor $INFO_BG","BorderColor $INFO_DARK","FontColor $INFO_TEXT","}","!endsub","","!startsub file","skinparam file {","BackgroundColor $SECONDARY_BG","BorderColor $LIGHT","FontColor $FGCOLOR","}","!endsub","","!startsub stack","skinparam stack {","$primary_scheme()","}","!endsub","","!startsub map","skinparam map {","$primary_scheme()","}","!endsub","","<style>","participant {","Margin 5 40","Padding 15 20","}","wbsDiagram, mindmapDiagram {","root {","BackgroundColor $PUML_BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $INFO_BG","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","$primary_scheme()","Padding 15","RoundCorner 20","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY_BG","FontColor $INFO_BG","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $PUML_BGCOLOR","FontColor $DARK_BG","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $PUML_BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY_BG","FontColor $PRIMARY_TEXT","BorderColor $SECONDARY_BG","}","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY_BG","LineThickness 1.0","FontColor $PRIMARY_DARK","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_DARK","LineColor $PRIMARY_DARK","}","group {","BackGroundColor $LIGHT_BG","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY_BG","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $INFO_BG","}","separator {","LineColor $SECONDARY_BG","BackGroundColor $secondary_scheme()","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO_BG","FontSize 16","FontStyle italic","BackGroundColor $DIAMOND_BG","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY_BG","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>"].join(`+`),G["crt-amber"]={author:"Matthew Leather",license:"PlantUML (Apache-2.0 asl edition)",source:""},hr["crt-amber"]=['!$THEME = "crt-amber"',"",'!$DARK_AMBER = "#FFB000"','!$LIGHT_AMBER = "#FFCC00"',"",'!$BGCOLOR = "#282828"',"!$FGCOLOR = $DARK_AMBER","","!ifndef $FONT_NAME",'!$FONT_NAME = "Verdana"',"!endif","","!ifndef $FONT_NAME_MONOSPACED",'!$FONT_NAME_MONOSPACED = "Courier"',"!endif","","<style>","root {","BackgroundColor $BGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","HyperLinkColor $LIGHT_AMBER","LineColor $FGCOLOR","LineThickness 1","Margin 5","}","box {","LineStyle 12-18","LineThickness 3","}","document {","caption {","LineThickness 0","}","footer {","LineThickness 0","}","header {","LineThickness 0","}","title {","FontSize 22","LineThickness 0","}","}","groupHeader {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","node {","MaximumWidth 300","}","referenceHeader {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","participant {","Margin 5 10","Padding 5 5","}","</style>","","skinparam ArrowLollipopColor $FGCOLOR","skinparam BackgroundColor $BGCOLOR","skinparam DefaultFontName $FONT_NAME","skinparam DefaultMonospacedFontName $FONT_NAME_MONOSPACED","skinparam LifelineStrategy solid","skinparam SequenceLifeLineBorderColor $FGCOLOR","skinparam Shadowing false","skinparam UseBetaStyle true","","skinparam Activity {","BackgroundColor $BGCOLOR","BarColor $FGCOLOR","BorderColor $FGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Boundary {","FontColor $FGCOLOR","}","skinparam Box {","Padding 5","}","skinparam CircledCharacter {","FontColor $BGCOLOR","FontName $FONT_NAME_MONOSPACED","Radius 9","}","skinparam Class {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam ClassAttribute {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam ClassStereotype {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Footer {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Header {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Hyperlink {","Color $LIGHT_AMBER","}","skinparam IconPackage {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam IconPrivate {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam IconProtected {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam IconPublic {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam Note {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Object {","BorderColor $FGCOLOR","}","skinparam Package {","BorderColor $FGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam State {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeA {","BackgroundColor $FGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeC {","BackgroundColor $FGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeE {","BackgroundColor $FGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeI {","BackgroundColor $FGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeN {","BackgroundColor $FGCOLOR","BorderColor $FGCOLOR","}","skinparam UseCaseStereoType {","FontColor $FGCOLOR","FontName $FONT_NAME","}"].join(`+`),G["crt-green"]={author:"Matthew Leather",license:"PlantUML (Apache-2.0 asl edition)",source:""},hr["crt-green"]=['!$THEME = "crt-green"',"",'!$BGCOLOR = "#282828"','!$FGCOLOR = "#33FF33"',"","!ifndef $FONT_NAME",'!$FONT_NAME = "Verdana"',"!endif","","!ifndef $FONT_NAME_MONOSPACED",'!$FONT_NAME_MONOSPACED = "Courier"',"!endif","","<style>","root {","BackgroundColor $BGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","HyperLinkColor $FGCOLOR","LineColor $FGCOLOR","LineThickness 1","Margin 5","}","box {","LineStyle 12-18","LineThickness 3","}","document {","caption {","LineThickness 0","}","footer {","LineThickness 0","}","header {","LineThickness 0","}","title {","FontSize 22","LineThickness 0","}","}","groupHeader {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","node {","MaximumWidth 300","}","referenceHeader {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","participant {","Margin 5 10","Padding 5 5","}","</style>","","skinparam ArrowLollipopColor $FGCOLOR","skinparam BackgroundColor $BGCOLOR","skinparam DefaultFontName $FONT_NAME","skinparam DefaultMonospacedFontName $FONT_NAME_MONOSPACED","skinparam LifelineStrategy solid","skinparam SequenceLifeLineBorderColor $FGCOLOR","skinparam Shadowing false","skinparam UseBetaStyle true","","skinparam Activity {","BackgroundColor $BGCOLOR","BarColor $FGCOLOR","BorderColor $FGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Boundary {","FontColor $FGCOLOR","}","skinparam Box {","Padding 5","}","skinparam CircledCharacter {","FontColor $BGCOLOR","FontName $FONT_NAME_MONOSPACED","Radius 9","}","skinparam Class {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam ClassAttribute {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam ClassStereotype {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Footer {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Header {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Hyperlink {","Color $FGCOLOR","}","skinparam IconPackage {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam IconPrivate {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam IconProtected {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam IconPublic {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam Note {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Object {","BorderColor $FGCOLOR","}","skinparam Package {","BorderColor $FGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam State {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeA {","BackgroundColor $FGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeC {","BackgroundColor $FGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeE {","BackgroundColor $FGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeI {","BackgroundColor $FGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeN {","BackgroundColor $FGCOLOR","BorderColor $FGCOLOR","}","skinparam UseCaseStereoType {","FontColor $FGCOLOR","FontName $FONT_NAME","}"].join(`+`),G.cyborg={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr.cyborg=['!$THEME = "cyborg"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif","","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false","",'!$BLUE = "#2A9FD6"','!$INDIGO = "#6610f2"','!$PURPLE = "#6f42c1"','!$PINK = "#e83e8c"','!$RED = "#CC0000"','!$ORANGE = "#fd7e14"','!$YELLOW = "#FF8800"','!$GREEN = "#77B300"','!$TEAL = "#20c997"','!$CYAN = "#9933CC"','!$WHITE = "#FFF"','!$GRAY_LIGHT = "#222"','!$GRAY = "#555"','!$PRIMARY = "#2A9FD6"','!$SECONDARY = "#555"','!$SUCCESS = "#77B300"','!$INFO = "#9933CC"','!$WARNING = "#FF8800"','!$DANGER = "#CC0000"','!$LIGHT = "#222"','!$DARK = "#ADAFAE"',"","!$FGCOLOR = $WHITE",'!$PRIMARY_DARK = "#55B2DE"','!$PRIMARY_LIGHT = "#227FAB"',"!$PRIMARY_TEXT = $WHITE",'!$SECONDARY_DARK = "#777777"','!$SECONDARY_LIGHT = "#444444"',"!$SECONDARY_TEXT = $WHITE",'!$INFO_DARK = "#AD5CD6"','!$INFO_LIGHT = "#9F161B"',"!$INFO_TEXT = $WHITE",'!$SUCCESS_DARK = "#92C233"','!$SUCCESS_LIGHT = "#5F8F00"',"!$SUCCESS_TEXT = $WHITE",'!$WARNING_DARK = "#FFA033"','!$WARNING_LIGHT = "#CC6D00"',"!$WARNING_TEXT = $WHITE",'!$DANGER_DARK = "#D63333"','!$DANGER_LIGHT = "#A30000"',"!$DANGER_TEXT = $WHITE",'!$DARK_DARK = "#BDBFBE"','!$DARK_LIGHT = "#8A8C8B"','!$LIGHT_DARK = "#4E4E4E"','!$LIGHT_LIGHT = "#1B1B1B"',"","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY_DARK","BackgroundColor $PRIMARY","!endprocedure","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $PRIMARY-$PRIMARY_DARK","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_LIGHT","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_LIGHT","LineColor $PRIMARY_LIGHT","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 40","Padding 15 20","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $INFO","}","separator {","LineColor $SECONDARY","BackGroundColor $SECONDARY-$SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 8","skinparam BoxPadding 40","skinparam ArrowColor $DARK","skinparam stereotype {","CBackgroundColor $SECONDARY_DARK","CBorderColor $SECONDARY_LIGHT","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $PRIMARY","BorderColor $SECONDARY_DARK","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","}","","skinparam legend {","BackgroundColor $SECONDARY","BorderColor $SECONDARY_DARK","FontColor $DARK","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY","}","!endsub","","!startsub activity","","skinparam activity {","$primary_scheme()","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $SECONDARY_LIGHT","DiamondBorderColor $SECONDARY_DARK","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","FontColor $PRIMARY","}","!endsub","","!startsub arrow","","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY","BackgroundColor $BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $BGCOLOR","BoxBorderColor $DARK","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY","LifeLineBorderThickness 2","LifeLineBackgroundColor $SECONDARY_DARK","GroupBorderColor $SECONDARY","GroupFontColor $DARK","GroupHeaderFontColor $INFO","GroupBackgroundColor $SECONDARY","GroupHeaderBackgroundColor $BGCOLOR","DividerBackgroundColor $DARK","DividerBorderColor $DARK","DividerBorderThickness 2","DividerFontColor $LIGHT","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $SECONDARY","ReferenceFontColor $SECONDARY_TEXT","ReferenceHeaderBackgroundColor $SECONDARY","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY","BackgroundColor $BGCOLOR","}","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor $WARNING","BorderColor $WARNING_LIGHT","FontColor $DARK","}","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $INFO","BorderColor $INFO_DARK","FontColor $WHITE","}","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor $DARK","BorderColor $DARK_DARK","FontColor $LIGHT","}","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","}","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $DANGER_DARK","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $WARNING","BorderColor $WARNING_DARK","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","","skinparam node {","BackgroundColor $SECONDARY","BorderColor $DARK","FontColor $DARK","}","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor $LIGHT-black","BorderColor $LIGHT","FontColor $DARK","}","!endsub","","!startsub database","","skinparam database {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub actor","","skinparam actor {","FontColor $DARK","}","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","HeaderBackgroundColor $PRIMARY_LIGHT","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $LIGHT","AttributeFontSize 11","}","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","","skinparam rectangle {","$primary_scheme()","BackgroundColor $SECONDARY_LIGHT","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","","skinparam package {","BackgroundColor $SECONDARY","BorderColor $PRIMARY","FontColor $PRIMARY","BorderThickness 2","}","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $SECONDARY_LIGHT","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $SECONDARY_LIGHT","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","","skinparam card {","BackgroundColor $INFO","BorderColor $INFO_DARK","FontColor $INFO_TEXT","}","!endsub","","!startsub file","","skinparam file {","BackgroundColor $SECONDARY_DARK","BorderColor $DARK","FontColor $DARK","}","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","}","!endsub"].join(`+`),G["cyborg-outline"]={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr["cyborg-outline"]=['!$THEME = "cyborg-outline"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif","","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false","",'!$BLUE = "#2A9FD6"','!$INDIGO = "#6610f2"','!$PURPLE = "#6f42c1"','!$PINK = "#e83e8c"','!$RED = "#CC0000"','!$ORANGE = "#fd7e14"','!$YELLOW = "#FF8800"','!$GREEN = "#77B300"','!$TEAL = "#20c997"','!$CYAN = "#9933CC"','!$WHITE = "#FFF"','!$GRAY_LIGHT = "#222"','!$GRAY = "#555"','!$PRIMARY = "#2A9FD6"','!$SECONDARY = "#555"','!$SUCCESS = "#77B300"','!$INFO = "#9933CC"','!$WARNING = "#FF8800"','!$DANGER = "#CC0000"','!$LIGHT = "#222"','!$DARK = "#ADAFAE"',"","!$FGCOLOR = $WHITE",'!$PRIMARY_DARK = "#55B2DE"','!$PRIMARY_LIGHT = "#227FAB"',"!$PRIMARY_TEXT = $PRIMARY",'!$SECONDARY_DARK = "#777777"','!$SECONDARY_LIGHT = "#444444"',"!$SECONDARY_TEXT = $SECONDARY_DARK",'!$INFO_DARK = "#AD5CD6"','!$INFO_LIGHT = "#7a29a3"',"!$INFO_TEXT = $INFO",'!$SUCCESS_DARK = "#92C233"','!$SUCCESS_LIGHT = "#5F8F00"',"!$SUCCESS_TEXT = $SUCCESS",'!$WARNING_DARK = "#FFA033"','!$WARNING_LIGHT = "#cc6d00"',"!$WARNING_TEXT = $WARNING",'!$DANGER_DARK = "#D63333"','!$DANGER_LIGHT = "#a30000"',"!$DANGER_TEXT = $WHITE",'!$DARK_DARK = "#BDBFBE"','!$DARK_LIGHT = "#8A8C8B"','!$LIGHT_DARK = "#4E4E4E"','!$LIGHT_LIGHT = "#1B1B1B"',"","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY_DARK","BackgroundColor $BGCOLOR","!endprocedure","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $BGCOLOR","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $BGCOLOR","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_LIGHT","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_LIGHT","LineColor $PRIMARY_LIGHT","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 40","Padding 15 20","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $BGCOLOR","}","separator {","LineColor $SECONDARY_DARK","BackGroundColor $BGCOLOR","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 8","skinparam BoxPadding 40","skinparam ArrowColor $DARK","skinparam stereotype {","CBackgroundColor $SECONDARY_DARK","CBorderColor $SECONDARY_LIGHT","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $PRIMARY","BorderColor $SECONDARY_DARK","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $BGCOLOR","}","","skinparam legend {","BackgroundColor $BGCOLOR","BorderColor $SECONDARY_DARK","FontColor $DARK","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY","}","!endsub","","!startsub activity","","skinparam activity {","$primary_scheme()","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $BGCOLOR","DiamondBorderColor $SECONDARY_DARK","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","FontColor $PRIMARY","}","!endsub","","!startsub arrow","","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY","BackgroundColor $BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $BGCOLOR","BoxBorderColor $DARK","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY","LifeLineBorderThickness 2","LifeLineBackgroundColor $BGCOLOR","GroupBorderColor $DARK","GroupFontColor $DARK","GroupHeaderFontColor $INFO_TEXT","GroupBackgroundColor $BGCOLOR","GroupHeaderBackgroundColor $BGCOLOR","DividerBackgroundColor $BGCOLOR","DividerBorderColor $DARK","DividerBorderThickness 2","DividerFontColor $DARK","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $DARK","ReferenceFontColor $DARK","ReferenceHeaderFontColor $INFO_TEXT","ReferenceHeaderBackgroundColor $BGCOLOR","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY","BackgroundColor $BGCOLOR","}","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","FontColor $PRIMARY","}","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","FontColor $PRIMARY","}","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","FontColor $PRIMARY","}","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor $BGCOLOR","BorderColor $WARNING_LIGHT","FontColor $DARK","}","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $BGCOLOR","BorderColor $INFO_DARK","FontColor $INFO_DARK","}","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor $BGCOLOR","BorderColor $DARK_DARK","FontColor $DARK_DARK","}","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","}","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $BGCOLOR","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $BGCOLOR","BorderColor $WARNING_DARK","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","","skinparam node {","BackgroundColor $BGCOLOR","BorderColor $DARK","FontColor $DARK","}","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor $BGCOLOR","BorderColor #F2FCFE","FontColor $DARK","}","!endsub","","!startsub database","","skinparam database {","$primary_scheme()","FontColor $PRIMARY","}","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","FontColor $LIGHT","HeaderBackgroundColor $PRIMARY_LIGHT","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $DARK","AttributeFontSize 11","}","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $SECONDARY_DARK","AttributeFontSize 11","}","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","","skinparam rectangle {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","","skinparam package {","BackgroundColor $BGCOLOR","BorderColor $PRIMARY","FontColor $PRIMARY","BorderThickness 2","}","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $BGCOLOR","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $BGCOLOR","BorderColor $INFO","FontColor $INFO_TEXT","BorderThickness 2","}","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","","skinparam card {","BackgroundColor $BGCOLOR","BorderColor $INFO","FontColor $INFO_TEXT","}","!endsub","","!startsub file","","skinparam file {","BackgroundColor $BGCOLOR","BorderColor $GRAY","FontColor $GRAY","}","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","}","!endsub"].join(`+`),G.hacker={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr.hacker=['!$THEME = "hacker"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif","","skinparam BackgroundColor $BGCOLOR","skinparam useBetaStyle false","",'!$PRIMARY = "#b5e853"','!$PRIMARY_LIGHT = "#d3f198"','!$PRIMARY_DARK = "#6d8b32"','!$PRIMARY_TEXT = "#151515"','!$SECONDARY = "#6a9fb5"','!$SECONDARY_LIGHT = "#88b2c4"','!$SECONDARY_DARK = "#557f91"','!$SECONDARY_TEXT = "#fefefe"','!$SUCCESS = "#90a959"','!$SUCCESS_LIGHT = "#a6ba7a"','!$INFO = "#aa759f"','!$INFO_LIGHT = "#bb91b2"','!$INFO_DARK = "#885E7F"','!$WARNING = "#f4bf75"','!$WARNING_LIGHT = "#f6cc91"','!$WARNING_TEXT = "#151515"','!$DANGER = "#ac4142"','!$DANGER_LIGHT = "#bd6768"','!$LIGHT = "#151515"','!$DARK = "#eaeaea"',"","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY_LIGHT","BackgroundColor $PRIMARY_LIGHT-$PRIMARY","!endprocedure","","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $PRIMARY-$PRIMARY_DARK","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_LIGHT","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_LIGHT","LineColor $PRIMARY_LIGHT","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 40","Padding 15 20","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $INFO","}","separator {","LineColor $SECONDARY","BackGroundColor $SECONDARY-$SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 40","skinparam BoxPadding 40","skinparam ArrowColor $DARK","skinparam stereotype {","CBackgroundColor $SECONDARY_DARK","CBorderColor $SECONDARY_LIGHT","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $PRIMARY","BorderColor $PRIMARY","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $LIGHT-black","}","","skinparam legend {","BackgroundColor $SECONDARY","BorderColor $SECONDARY_DARK","FontColor $DARK","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY","}","!endsub","","!startsub activity","","skinparam activity {","$primary_scheme()","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $SECONDARY_LIGHT-$SECONDARY","DiamondBorderColor $SECONDARY_LIGHT","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","BorderThickness 2","}","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub arrow","","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY","BackgroundColor $BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $BGCOLOR","BoxBorderColor $DARK","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY","LifeLineBorderThickness 2","LifeLineBackgroundColor $SECONDARY_DARK","GroupBackgroundColor $LIGHT","GroupBorderColor $DARK","GroupFontColor $DARK","GroupHeaderFontColor $INFO","GroupHeaderBackgroundColor $BGCOLOR","DividerBackgroundColor $DARK","DividerBorderColor $DARK","DividerBorderThickness 2","DividerFontColor $LIGHT","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $DARK","ReferenceFontColor $DARK","ReferenceHeaderBackgroundColor $LIGHT","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY","BackgroundColor $LIGHT-black","}","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor $WARNING_LIGHT-$WARNING","BorderColor $WARNING_LIGHT","FontColor $DARK","}","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $INFO_LIGHT-$INFO_DARK","BorderColor $INFO_DARK","FontColor $WHITE","}","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor $DARK","BorderColor white","FontColor $LIGHT","}","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","}","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $DANGER_LIGHT-$DANGER","BorderColor $DANGER_LIGHT","FontColor $DARK","}","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $WARNING_LIGHT-$WARNING","BorderColor $WARNING_LIGHT","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","","skinparam node {","BackgroundColor $LIGHT-black","BorderColor $PRIMARY_LIGHT","FontColor $DARK","}","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor $BGCOLOR","BorderColor $DARK","FontColor $DARK","}","!endsub","","!startsub database","","skinparam database {","BackgroundColor $LIGHT-black","BorderColor $PRIMARY_LIGHT","FontColor $DARK","}","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","HeaderBackgroundColor $PRIMARY_LIGHT-$PRIMARY","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $LIGHT","AttributeFontSize 11","}","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $LIGHT","AttributeFontSize 11","}","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","","skinparam rectangle {","BackgroundColor $BGCOLOR","BorderColor $PRIMARY","BorderThickness 2","FontColor $PRIMARY_DARK","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","","skinparam package {","BackgroundColor $LIGHT","BorderColor $PRIMARY","FontColor $PRIMARY","BorderThickness 2","}","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $LIGHT-black","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $LIGHT-black","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","","skinparam card {","BackgroundColor $INFO_LIGHT-$INFO","BorderColor $INFO_LIGHT","FontColor $INFO_TEXT","}","!endsub","","!startsub file","","skinparam file {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","BorderColor $SECONDARY_LIGHT","FontColor $DARK","}","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","}","!endsub","","<style>","mindmapDiagram, wbsDiagram {","element {","$primary_scheme()","}",":depth(0) {","fontSize 16","fontStyle bold","fontColor $SECONDARY","}",":depth(1) {","fontSize 14","padding 5","fontStyle bold","}",":depth(2) {","fontSize 12","padding 4","}",":depth(3) {","fontSize 11","padding 3","fontColor $INFO","}","","}","</style>"].join(`+`),G.lightgray={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr.lightgray=['!$THEME = "lightgray"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif","","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false","",'!$WHITE = "#FFF"','!$GRAY_DARK = "#4d4d4d"','!$GRAY = "#737373"','!$LIGHT = "#fcfcfc"','!$DARK = "#303030"',"","!$FGCOLOR = $DARK",'!$PRIMARY = "#e2e2e2"','!$PRIMARY_LIGHT = "#f3f3f3"','!$PRIMARY_DARK = "#888888"','!$PRIMARY_TEXT = "#336699"','!$SECONDARY = "#d2d2d2"','!$SECONDARY_LIGHT = "#dbdbdb"','!$SECONDARY_DARK = "#a8a8a8"','!$SECONDARY_TEXT = "white"','!$INFO = "#336699"','!$INFO_LIGHT = "#5c85ad"','!$INFO_DARK = "#29527a"',"!$INFO_TEXT = $WHITE",'!$SUCCESS = "#339933"','!$SUCCESS_LIGHT = "#5cad5c"','!$SUCCESS_DARK = "#297a29"',"!$SUCCESS_TEXT = $WHITE",'!$WARNING = "#ffae42"','!$WARNING_LIGHT = "#ffbe68"','!$WARNING_DARK = "#cc8b35"',"!$WARNING_TEXT = $WHITE",'!$DANGER = "#ff3333"','!$DANGER_LIGHT = "#ff5c5c"','!$DANGER_DARK = "#cc2929"',"!$DANGER_TEXT = $WHITE","","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY_LIGHT","BackgroundColor $PRIMARY_LIGHT-$PRIMARY","!endprocedure","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $PRIMARY-$PRIMARY_DARK","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_DARK","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_DARK","LineColor $PRIMARY_DARK","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 30","Padding 15 20","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $INFO","}","separator {","LineColor $SECONDARY","BackGroundColor $SECONDARY-$SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 15","skinparam BoxPadding 30","skinparam ArrowColor $GRAY","skinparam stereotype {","CBackgroundColor $SECONDARY_LIGHT","CBorderColor $SECONDARY_DARK","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $SECONDARY_TEXT","BorderColor $SECONDARY","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","}","","skinparam legend {","BackgroundColor $PRIMARY","BorderColor $PRIMARY_DARK","FontColor $PRIMARY_TEXT","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY","}","!endsub","","!startsub activity","","skinparam activity {","$primary_scheme()","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $SECONDARY-$SECONDARY_DARK","DiamondBorderColor $SECONDARY_DARK","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","}","!endsub","","!startsub arrow","","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $SECONDARY_TEXT","BackgroundColor $BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $LIGHT","BoxBorderColor $GRAY","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY_DARK","LifeLineBorderThickness 2","LifeLineBackgroundColor $SECONDARY_LIGHT","GroupBorderColor $GRAY","GroupFontColor $DARK","GroupHeaderFontColor $INFO","DividerBackgroundColor $WHITE-$LIGHT","DividerBorderColor $GRAY","DividerBorderThickness 2","DividerFontColor $DARK","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $GRAY","ReferenceFontColor $DARK","ReferenceHeaderFontColor $INFO","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY_DARK","BackgroundColor $BGCOLOR","}","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","}","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","}","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","}","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor #orange","BorderColor #999999","FontColor #333333","}","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $INFO_LIGHT-$INFO","BorderColor $INFO","FontColor $WHITE","}","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor white-$LIGHT","BorderColor $SECONDARY_DARK","FontColor $SECONDARY_DARK","}","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","}","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $DANGER_LIGHT","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $WARNING_LIGHT-$WARNING","BorderColor $WARNING","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","","skinparam node {","BackgroundColor $BGCOLOR","BorderColor $PRIMARY_LIGHT","FontColor $PRIMARY_TEXT","}","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor #F2FCFE-#eeeeee","BorderColor $F2FCFE","FontColor $PRIMARY_TEXT","}","!endsub","","!startsub database","","skinparam database {","$primary_scheme()","BackgroundColor $BGCOLOR","}","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","HeaderBackgroundColor $PRIMARY_LIGHT-$PRIMARY_DARK","StereotypeFontColor $DARK","StereotypeFontSize 9","BorderThickness 1","AttributeFontColor $DARK","AttributeFontSize 11","}","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","StereotypeFontColor $LIGHT","BorderThickness 1","AttributeFontColor $DARK","AttributeFontSize 11","}","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","","skinparam rectangle {","$primary_scheme()","BackgroundColor $BGCOLOR","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","","skinparam package {","$primary_scheme()","BackgroundColor $BGCOLOR","BorderThickness 2","}","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $PRIMARY_LIGHT","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $PRIMARY_LIGHT","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","BorderColor $PRIMARY_DARK","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","","skinparam card {","BackgroundColor $INFO_LIGHT-$INFO","BorderColor $INFO","FontColor $INFO_TEXT","}","!endsub","","!startsub file","","skinparam file {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","BorderColor $SECONDARY_DARK","FontColor $SECONDARY_TEXT","","}","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","}","!endsub"].join(`+`),G.mars={author:"future-architect",license:"Apache-2.0",source:"https://github.com/future-architect/puml-themes/tree/master/themes"},hr.mars=["skinparam BackgroundColor F9F9F9","skinparam shadowing false","skinparam RoundCorner 7","skinparam ArrowColor 191919","skinparam FontColor 191919","skinparam SequenceLifeLineBorderColor 393939","skinparam SequenceGroupHeaderFontColor 191919","skinparam SequenceGroupFontColor 393939","skinparam SequenceGroupBorderColor 393939","skinparam SequenceGroupBorderThickness 1","","skinparam sequenceDivider {","BorderColor 191919","BorderThickness 1","FontColor 191919","}","","skinparam participant {","BackgroundColor E55756","BorderColor 191919","FontColor F9F9F9","BorderThickness 1.5","}","","skinparam database {","BackgroundColor A4DBD8","BorderColor 191919","FontColor 191919","}","","skinparam entity {","BackgroundColor EFBABC","BorderColor 191919","FontColor 191919","}","","skinparam note {","BackgroundColor e5e5e5","BorderColor 191919","FontColor 191919","BorderThickness 1.5","}","","skinparam actor {","BackgroundColor 191919","BorderColor 191919","FontColor 191919","}","","skinparam boundary {","BackgroundColor EFBABC","BorderColor 191919","FontColor 191919","}","","skinparam control {","BackgroundColor EFBABC","BorderColor 191919","FontColor 191919","}","","skinparam collections {","BackgroundColor E55756","BorderColor 191919","FontColor 191919","BorderThickness 1.5","}","","skinparam queue {","BackgroundColor E55756","BorderColor 191919","FontColor FFF","BorderThickness 1.5","}"].join(`+`),G.materia={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr.materia=['!$THEME = "materia"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif","","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false","",'!$BLUE = "#2196F3"','!$INDIGO = "#6610f2"','!$PURPLE = "#6f42c1"','!$PINK = "#e83e8c"','!$RED = "#e51c23"','!$ORANGE = "#fd7e14"','!$YELLOW = "#ff9800"','!$GREEN = "#4CAF50"','!$TEAL = "#20c997"','!$CYAN = "#9C27B0"','!$WHITE = "#FFF"','!$GRAY_DARK = "#222"','!$GRAY = "#666"','!$PRIMARY = "#2196F3"','!$SECONDARY = "#fff"','!$SUCCESS = "#4CAF50"','!$INFO = "#9C27B0"','!$WARNING = "#ff9800"','!$DANGER = "#e51c23"','!$LIGHT = "#fff"','!$DARK = "#222"',"","!$FGCOLOR = $DARK",'!$PRIMARY_LIGHT = "#4dabf5"','!$PRIMARY_DARK = "#1a78c2"',"!$PRIMARY_TEXT = $WHITE",'!$SECONDARY_LIGHT = "#fff"','!$SECONDARY_DARK = "#cccccc"',"!$SECONDARY_TEXT = $DARK",'!$INFO_LIGHT = "#b052c0"','!$INFO_DARK = "#7D1F8D"',"!$INFO_TEXT = $WHITE",'!$SUCCESS_LIGHT = "#70bf73"','!$SUCCESS_DARK = "#3D8C40"',"!$SUCCESS_TEXT = $WHITE",'!$WARNING_LIGHT = "#ffad33"','!$WARNING_DARK = "#CC7A00"',"!$WARNING_TEXT = $WHITE",'!$DANGER_DARK = "#b7161c"','!$DANGER_LIGHT = "#B7161C"',"!$DANGER_TEXT = $WHITE","","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY","BackgroundColor $PRIMARY_LIGHT-$PRIMARY","!endprocedure","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $PRIMARY-$PRIMARY_DARK","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_DARK","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_DARK","LineColor $PRIMARY_DARK","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 40","Padding 15 20","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $INFO","}","separator {","LineColor $SECONDARY","BackGroundColor $SECONDARY-$SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing true","skinparam roundcorner 8","skinparam BoxPadding 40","skinparam ArrowColor $GRAY","skinparam stereotype {","CBackgroundColor $SECONDARY_LIGHT","CBorderColor $SECONDARY_DARK","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $PRIMARY","BorderColor $SECONDARY_DARK","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","}","","skinparam legend {","BackgroundColor $SECONDARY","BorderColor $SECONDARY_DARK","FontColor $DARK","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY","}","!endsub","","!startsub activity","","skinparam activity {","$primary_scheme()","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $WHITE-$SECONDARY_LIGHT","DiamondBorderColor $SECONDARY_DARK","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub arrow","","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY","BackgroundColor transparent","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $LIGHT","BoxBorderColor $GRAY","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY_DARK","LifeLineBorderThickness 2","LifeLineBackgroundColor $SECONDARY_LIGHT","GroupBorderColor $GRAY","GroupFontColor $DARK","GroupHeaderFontColor $INFO","DividerBackgroundColor $WHITE-$LIGHT","DividerBorderColor $GRAY","DividerBorderThickness 2","DividerFontColor $DARK","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $GRAY","ReferenceFontColor $DARK","ReferenceHeaderFontColor $INFO","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY","BackgroundColor transparent","}","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor #orange","BorderColor #999999","FontColor #333333","}","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $INFO_LIGHT-$INFO","BorderColor $INFO","FontColor $WHITE","}","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor $WHITE-$LIGHT","BorderColor $GRAY","FontColor $GRAY","}","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","}","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $DANGER_LIGHT","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $WARNING_LIGHT-$WARNING","BorderColor $WARNING","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","","skinparam node {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","BorderColor $DARK","FontColor $DARK","}","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor #F2FCFE-#eeeeee","BorderColor #F2FCFE","FontColor $DARK","}","!endsub","","!startsub database","","skinparam database {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","HeaderBackgroundColor $PRIMARY-$PRIMARY_DARK","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $LIGHT","AttributeFontSize 11","}","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","","skinparam rectangle {","FontColor $PRIMARY","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","","skinparam package {","$primary_scheme()","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","BorderThickness 2","}","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $WHITE-$SECONDARY_LIGHT","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $WHITE-$SECONDARY_LIGHT","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","BorderColor $PRIMARY_DARK","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","","skinparam card {","BackgroundColor $INFO_LIGHT-$INFO","BorderColor $INFO","FontColor $INFO_TEXT","}","!endsub","","!startsub file","","skinparam file {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","BorderColor $GRAY","FontColor $GRAY","","}","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","}","!endsub"].join(`+`),G["materia-outline"]={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr["materia-outline"]=['!$THEME = "materia-outline"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif","","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false","",'!$BLUE = "#2196F3"','!$INDIGO = "#6610f2"','!$PURPLE = "#6f42c1"','!$PINK = "#e83e8c"','!$RED = "#e51c23"','!$ORANGE = "#fd7e14"','!$YELLOW = "#ff9800"','!$GREEN = "#4CAF50"','!$TEAL = "#20c997"','!$CYAN = "#9C27B0"','!$WHITE = "#FFF"','!$GRAY_DARK = "#222"','!$GRAY = "#666"','!$PRIMARY = "#2196F3"','!$SECONDARY = "#fff"','!$SUCCESS = "#4CAF50"','!$INFO = "#9C27B0"','!$WARNING = "#ff9800"','!$DANGER = "#e51c23"','!$LIGHT = "#fff"','!$DARK = "#222"',"","!$FGCOLOR = $DARK",'!$PRIMARY_LIGHT = "#4dabf5"','!$PRIMARY_DARK = "#1a78c2"',"!$PRIMARY_TEXT = $PRIMARY",'!$SECONDARY_LIGHT = "#fff"','!$SECONDARY_DARK = "#cccccc"',"!$SECONDARY_TEXT = $SECONDARY_DARK",'!$INFO_LIGHT = "#b052c0"','!$INFO_DARK = "#7D1F8D"',"!$INFO_TEXT = $INFO",'!$SUCCESS_LIGHT = "#70bf73"','!$SUCCESS_DARK = "#3D8C40"',"!$SUCCESS_TEXT = $SUCCESS",'!$WARNING_LIGHT = "#ffad33"','!$WARNING_DARK = "#CC7A00"',"!$WARNING_TEXT = $WARNING",'!$DANGER_LIGHT = "#B7161C"',"!$DANGER_TEXT = $DANGER","","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY","BackgroundColor $BGCOLOR","!endprocedure","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $BGCOLOR","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $BGCOLOR","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_DARK","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_DARK","LineColor $PRIMARY_DARK","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 40","Padding 15 20","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $BGCOLOR","}","separator {","LineColor $SECONDARY_DARK","BackGroundColor $BGCOLOR","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing true","skinparam roundcorner 8","skinparam BoxPadding 40","skinparam TitleFontColor $DARK","skinparam TitleFontSize 20","skinparam TitleBorderThickness 0","skinparam ArrowColor $GRAY","skinparam stereotype {","CBackgroundColor $SECONDARY_LIGHT","CBorderColor $SECONDARY_DARK","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $PRIMARY","BorderColor $SECONDARY_DARK","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $BGCOLOR","}","","skinparam legend {","BackgroundColor $BGCOLOR","BorderColor $SECONDARY_DARK","FontColor $DARK","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY","}","!endsub","","!startsub activity","","skinparam activity {","$primary_scheme()","' FontColor $PRIMARY_TEXT","' BorderColor $PRIMARY","' BackgroundColor $BGCOLOR","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $BGCOLOR","DiamondBorderColor $SECONDARY_DARK","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","' FontColor $DARK","}","!endsub","","!startsub arrow","","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY","BackgroundColor $BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $BGCOLOR","BoxBorderColor $GRAY","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY_DARK","LifeLineBorderThickness 2","LifeLineBackgroundColor $BGCOLOR","GroupBorderColor $GRAY","GroupFontColor $DARK","GroupHeaderFontColor $INFO","DividerBackgroundColor $BGCOLOR","DividerBorderColor $GRAY","DividerBorderThickness 2","DividerFontColor $DARK","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $GRAY","ReferenceFontColor $DARK","ReferenceHeaderFontColor $INFO","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY","BackgroundColor $BGCOLOR","}","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","' BackgroundColor $BGCOLOR","' BorderColor $PRIMARY","}","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","' BackgroundColor $BGCOLOR","' BorderColor $PRIMARY_DARK","' FontColor $DARK","}","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","' BackgroundColor $BGCOLOR","' BorderColor $PRIMARY_DARK","' FontColor $DARK","}","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","' BackgroundColor $BGCOLOR","' BorderColor $PRIMARY_DARK","' FontColor $DARK","}","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor $BGCOLOR","BorderColor #999999","FontColor #333333","}","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $BGCOLOR","BorderColor $INFO","FontColor $INFO","}","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor $BGCOLOR","BorderColor $GRAY","FontColor $GRAY","}","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","' BackgroundColor $BGCOLOR","' BorderColor $SUCCESS","' FontColor $SUCCESS_TEXT","}","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $BGCOLOR","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $BGCOLOR","BorderColor $WARNING","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","","skinparam node {","BackgroundColor $BGCOLOR","BorderColor $DARK","FontColor $DARK","}","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor #F2FCFE-#eeeeee","BorderColor #F2FCFE","FontColor $DARK","}","!endsub","","!startsub database","","skinparam database {","$primary_scheme()","' BackgroundColor $BGCOLOR","' BorderColor $PRIMARY_DARK","' FontColor $DARK","}","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","FontColor $LIGHT","HeaderBackgroundColor $PRIMARY-$PRIMARY_DARK","' FontColor $PRIMARY_TEXT","' BackgroundColor $BGCOLOR","' BorderColor $PRIMARY_DARK","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $DARK","AttributeFontSize 11","}","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","' FontColor $SUCCESS","' BackgroundColor $BGCOLOR","' BorderColor $SECONDARY_DARK","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $SECONDARY_DARK","AttributeFontSize 11","}","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","' BackgroundColor $BGCOLOR","' BorderColor $SECONDARY_DARK","BorderThickness 2","' FontColor $SECONDARY_TEXT","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","","skinparam rectangle {","$primary_scheme()","' BackgroundColor $BGCOLOR","' BorderColor $PRIMARY_DARK","BorderThickness 2","' FontColor $PRIMARY","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","","skinparam package {","BackgroundColor $BGCOLOR","BorderColor $PRIMARY","FontColor $PRIMARY","BorderThickness 2","}","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $BGCOLOR","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $BGCOLOR","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","StartColor $INFO","EndColor $INFO","' BackgroundColor $BGCOLOR","' BorderColor $SECONDARY_DARK","' FontColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","' BackgroundColor $BGCOLOR","' BorderColor $WARNING_DARK","' FontColor $WARNING_TEXT","}","!endsub","","!startsub card","","skinparam card {","BackgroundColor $BGCOLOR","BorderColor $INFO","FontColor $INFO_TEXT","}","!endsub","","!startsub file","","skinparam file {","BackgroundColor $BGCOLOR","BorderColor $GRAY","FontColor $GRAY","","}","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","' BackgroundColor $BGCOLOR","' BorderColor $PRIMARY","' FontColor $PRIMARY_TEXT","}","!endsub"].join(`+`),G.metal={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr.metal=['!$THEME = "metal"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif","","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false","",'!$WHITE = "#fdfdfd"','!$GRAY_DARK = "#4d4d4d"','!$GRAY = "#737373"','!$LIGHT = "#f2f2f2"','!$DARK = "#4d4d4d"',"",'!$SILVER = "#c0c0c0"','!$COPPER = "#B87333c"','!$STEELBLUE = "#4682b4"','!$LIGHTSTEELBLUE = "#B0C4DE" ','!$LIGHTSTEELBLUE_DARK = "#8d9db2" ','!$LIGHTSTEELBLUE_LIGHT = "#c0d0e5" ','!$ALUMINUM = "#c9ced0"','!$ALUMINUM_DARK = "#a1a5a6"','!$ALUMINUM_LIGHT = "#d4d8d9"','!$BRONZE = "#CD7F32" ','!$BRONZE_DARK = "#a46628" ','!$BRONZE_LIGHT = "#d7995b" ','!$GOLD = "#FFD700"','!$PLATINUM = "#E5E4E2"','!$RUST = "#B7410E"',"","!$FGCOLOR = $DARK","!$PRIMARY = $PLATINUM",'!$PRIMARY_LIGHT = "#eae9e8"','!$PRIMARY_DARK = "#b7b6b5"',"!$PRIMARY_TEXT = $STEELBLUE","!$SECONDARY = $SILVER",'!$SECONDARY_LIGHT = "#cdcdcd"','!$SECONDARY_DARK = "#9a9a9a"',"!$SECONDARY_TEXT = $WHITE","!$INFO = $STEELBLUE",'!$INFO_LIGHT = "#5c85ad"','!$INFO_DARK = "#29527a"',"!$INFO_TEXT = $WHITE",'!$SUCCESS = "#339933"','!$SUCCESS_LIGHT = "#5cad5c"','!$SUCCESS_DARK = "#297a29"',"!$SUCCESS_TEXT = $WHITE","!$WARNING = $GOLD",'!$WARNING_LIGHT = "#ffdf33"','!$WARNING_DARK = "#ccac00"',"!$WARNING_TEXT = $WHITE","!$DANGER = $RUST",'!$DANGER_LIGHT = "#c5673e"','!$DANGER_DARK = "#92340b"',"!$DANGER_TEXT = $WHITE","","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY_DARK","BackgroundColor $PRIMARY-$PRIMARY_DARK","!endprocedure","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $PRIMARY-$PRIMARY_DARK","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_DARK","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_DARK","LineColor $PRIMARY_DARK","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 30","Padding 15 20","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $INFO","}","separator {","LineColor $SECONDARY","BackGroundColor $SECONDARY-$SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 15","skinparam BoxPadding 30","skinparam ArrowColor $GRAY","skinparam stereotype {","CBackgroundColor $SECONDARY_LIGHT","CBorderColor $SECONDARY_DARK","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $WHITE","BorderColor $SECONDARY_DARK","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK","}","","skinparam legend {","BackgroundColor $PRIMARY_LIGHT-$PRIMARY","BorderColor $SECONDARY_DARK","FontColor $PRIMARY_TEXT","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY","}","!endsub","","!startsub activity","","skinparam activity {","$primary_scheme()","BarColor $BRONZE","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $SECONDARY-$SECONDARY_DARK","DiamondBorderColor $SECONDARY_DARK","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub arrow","","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $WHITE","BackgroundColor $BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $LIGHT","BoxBorderColor $GRAY","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY_DARK","LifeLineBorderThickness 3","LifeLineBackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK","GroupBorderColor $GRAY","GroupFontColor $DARK","GroupHeaderFontColor $INFO","DividerBackgroundColor $WHITE-$LIGHT","DividerBorderColor $GRAY","DividerBorderThickness 2","DividerFontColor $DARK","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $GRAY","ReferenceFontColor $DARK","ReferenceHeaderFontColor $INFO","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY_DARK","BackgroundColor $BGCOLOR","}","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor #orange","BorderColor #999999","FontColor #333333","}","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $LIGHTSTEELBLUE_LIGHT-$LIGHTSTEELBLUE_DARK","BorderColor $LIGHTSTEELBLUE_DARK","FontColor $WHITE","}","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK","BorderColor $SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","}","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $DANGER_LIGHT","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $WARNING_LIGHT-$WARNING_DARK","BorderColor $WARNING_DARK","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","","skinparam node {","BackgroundColor $PRIMARY_LIGHT-$PRIMARY","BorderColor $PRIMARY","FontColor $DARK","}","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor #F2FCFE-#eeeeee","BorderColor #F2FCFE","FontColor $DARK","}","!endsub","","!startsub database","","skinparam database {","$primary_scheme()","FontColor $DARK","}","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","HeaderBackgroundColor $PRIMARY_LIGHT-$PRIMARY_DARK","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $DARK","AttributeFontSize 11","}","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","StereotypeFontColor $LIGHT","BorderThickness 1","AttributeFontColor $WHITE","AttributeFontSize 11","}","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","","skinparam rectangle {","$primary_scheme()","BackgroundColor $WHITE-$LIGHT","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","","skinparam package {","$primary_scheme()","BackgroundColor $PRIMARY_LIGHT-$PRIMARY","BorderThickness 2","}","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $PRIMARY_LIGHT-$PRIMARY","BorderColor $RUST","FontColor $RUST","BorderThickness 2","}","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $PRIMARY_LIGHT-$PRIMARY","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY","AttributeFontSize 11","}","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","","skinparam card {","BackgroundColor $INFO_LIGHT-$INFO_DARK","BorderColor $INFO","FontColor $INFO_TEXT","}","!endsub","","!startsub file","","skinparam file {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK","BorderColor $GRAY","FontColor $LIGHT","","}","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","}","!endsub"].join(`+`),G.mimeograph={author:"Matthew Leather",license:"PlantUML (Apache-2.0 asl edition)",source:""},hr.mimeograph=['!$THEME = "mimeograph"',"",'!$BGCOLOR = "#D9D3D0"','!$FGCOLOR = "#9275B6"',"","!ifndef $FONT_NAME",'!$FONT_NAME = "Verdana"',"!endif","","!ifndef $FONT_NAME_MONOSPACED",'!$FONT_NAME_MONOSPACED = "Courier"',"!endif","","<style>","root {","BackgroundColor $BGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","HyperLinkColor $FGCOLOR","LineColor $FGCOLOR","LineThickness 1","Margin 5","}","document {","caption {","LineThickness 0","}","footer {","LineThickness 0","}","header {","LineThickness 0","}","title {","FontSize 22","LineThickness 0","}","}","node {","MaximumWidth 300","}","participant {","Margin 5 10","Padding 5 5","}","</style>","","skinparam ArrowLollipopColor $FGCOLOR","skinparam BackgroundColor $BGCOLOR","skinparam DefaultFontName $FONT_NAME","skinparam DefaultMonospacedFontName $FONT_NAME_MONOSPACED","skinparam LifelineStrategy nosolid","skinparam SequenceLifeLineBorderColor $FGCOLOR","skinparam Shadowing false","skinparam UseBetaStyle true","","skinparam Activity {","BackgroundColor $BGCOLOR","BarColor $FGCOLOR","BorderColor $FGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Boundary {","FontColor $FGCOLOR","}","skinparam Box {","Padding 5","}","skinparam CircledCharacter {","FontColor $FGCOLOR","FontName $FONT_NAME_MONOSPACED","Radius 9","}","skinparam Class {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam ClassAttribute {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam ClassStereotype {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Footer {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Header {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Hyperlink {","Color $FGCOLOR","}","skinparam IconPackage {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam IconPrivate {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam IconProtected {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam IconPublic {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam Note {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Object {","BorderColor $FGCOLOR","}","skinparam Package {","BorderColor $FGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam State {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeA {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeC {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeE {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeI {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeN {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam UseCaseStereoType {","FontColor $FGCOLOR","FontName $FONT_NAME","}"].join(`+`),G.minty={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr.minty=['!$THEME = "minty"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif","","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false","",'!$BLUE = "#007bff"','!$INDIGO = "#6610f2"','!$PURPLE = "#6f42c1"','!$PINK = "#e83e8c"','!$RED = "#ff7851"','!$ORANGE = "#fd7e14"','!$YELLOW = "#ffce67"','!$GREEN = "#56cc9d"','!$TEAL = "#20c997"','!$CYAN = "#6cc3d5"','!$WHITE = "#fff"','!$GRAY = "#888"','!$GRAYDARK = "#343a40"','!$PRIMARY = "#78c2ad"','!$SECONDARY = "#f3969a"','!$SUCCESS = "#56cc9d"','!$INFO = "#6cc3d5"','!$WARNING = "#ffce67"','!$DANGER = "#ff7851"','!$LIGHT = "#f8f9fa"','!$DARK = "#343a40"',"","!$FGCOLOR = $WHITE",'!$PRIMARY_DARK = "#6caf9c"','!$PRIMARY_LIGHT = "#86c8b5"',"!$PRIMARY_TEXT = $WHITE",'!$SECONDARY_DARK = "#db878b"','!$SECONDARY_LIGHT = "#f4a1a4"',"!$SECONDARY_TEXT = $WHITE",'!$INFO_DARK = "#61b0c0"','!$INFO_LIGHT = "#7bc9d9"',"!$INFO_TEXT = $WHITE",'!$SUCCESS_DARK = "#4db88d"','!$SUCCESS_LIGHT = "#67d1a7"',"!$SUCCESS_TEXT = $WHITE",'!$WARNING_DARK = "#e6b95d"','!$WARNING_LIGHT = "#ffd376"',"!$WARNING_TEXT = $WHITE",'!$DANGER_DARK = "#e66c49"','!$DANGER_LIGHT = "#ff8662"',"!$DANGER_TEXT = $WHITE",'!$DARK_DARK = "#2f343a"','!$DARK_LIGHT = "#484e53"','!$LIGHT_DARK = "#dfe0e1"','!$LIGHT_LIGHT = "#f9fafb"',"","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY","BackgroundColor $PRIMARY_LIGHT","!endprocedure","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $PRIMARY-$PRIMARY_DARK","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_DARK","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_DARK","LineColor $PRIMARY_DARK","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 40","Padding 15 20","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $INFO","}","separator {","LineColor $SECONDARY","BackGroundColor $SECONDARY-$SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 8","skinparam BoxPadding 40","skinparam ArrowColor $DARK","skinparam stereotype {","CBackgroundColor $SECONDARY_LIGHT","CBorderColor $SECONDARY_DARK","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $PRIMARY_DARK","BorderColor $SECONDARY_DARK","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","}","","skinparam legend {","BackgroundColor $SECONDARY","BorderColor $SECONDARY_DARK","FontColor $LIGHT","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY","}","!endsub","","!startsub activity","","skinparam activity {","$primary_scheme()","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $SECONDARY_LIGHT","DiamondBorderColor $SECONDARY_DARK","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","}","!endsub","","!startsub arrow","","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY","BackgroundColor $BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $BGCOLOR","BoxBorderColor $DARK","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY","LifeLineBorderThickness 2","LifeLineBackgroundColor $SECONDARY_DARK","GroupBorderColor $DARK","GroupFontColor $DARK","GroupHeaderFontColor $INFO","GroupBackgroundColor $SECONDARY","GroupHeaderBackgroundColor $BGCOLOR","DividerBackgroundColor $DARK","DividerBorderColor $DARK","DividerBorderThickness 2","DividerFontColor $LIGHT","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $DARK","ReferenceFontColor $DARK","ReferenceHeaderFontColor $INFO","ReferenceHeaderBackgroundColor $SECONDARY","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY","BackgroundColor $BGCOLOR","}","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","}","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","}","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","}","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor $WARNING","BorderColor $WARNING_LIGHT","FontColor $DARK","}","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $INFO","BorderColor $INFO_DARK","FontColor $WHITE","}","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor $DARK","BorderColor $DARK_DARK","FontColor $LIGHT","}","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","}","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $DANGER_DARK","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $WARNING","BorderColor $WARNING_DARK","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","","skinparam node {","BackgroundColor $SECONDARY","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor #F2FCFE-#eeeeee","BorderColor #F2FCFE","FontColor $DARK","}","!endsub","","!startsub database","","skinparam database {","$primary_scheme()","}","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","HeaderBackgroundColor $PRIMARY_LIGHT","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $DARK","AttributeFontSize 11","}","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","","skinparam rectangle {","$primary_scheme()","BackgroundColor $SECONDARY_LIGHT","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","","skinparam package {","BackgroundColor $SECONDARY","BorderColor $PRIMARY","FontColor $PRIMARY","BorderThickness 2","}","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $SECONDARY_LIGHT","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $SECONDARY_LIGHT","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","","skinparam card {","BackgroundColor $INFO","BorderColor $INFO_DARK","FontColor $INFO_TEXT","}","!endsub","","!startsub file","","skinparam file {","BackgroundColor $SECONDARY_DARK","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","}","!endsub"].join(`+`),G.mono={author:"Denis Bondarenko feat Matthew Leather",license:"PlantUML (Apache-2.0 asl edition)",source:""},hr.mono=['!$THEME = "mono"',"","' Theme colors","",'!if %not(%variable_exists("$CLR_BG"))','!$CLR_BG = "white"',"!endif","","' For icons bg in legend. usage: <THM_BG>","!ifndef THM_BG","!define THM_BG #$CLR_BG","!endif","","' Highlighted background",'!if %not(%variable_exists("$CLR_BG_EMPH"))','!$CLR_BG_EMPH = "#eee"',"!endif","","' Main foreground color",'!if %not(%variable_exists("$CLR_FG"))','!$CLR_FG = "black"',"!endif","","' Less hued, 3 levels","",'!if %not(%variable_exists("$CLR_FG_DIMMED"))','!$CLR_FG_DIMMED = "#666"',"!endif","",'!if %not(%variable_exists("$CLR_FG_DIMMED_2"))','!$CLR_FG_DIMMED_2 = "#999"',"!endif","",'!if %not(%variable_exists("$CLR_FG_DIMMED_3"))','!$CLR_FG_DIMMED_3 = "#ccc"',"!endif","","' Hyperlinks color",'!if %not(%variable_exists("$CLR_HYPERLINK"))','!$CLR_HYPERLINK = "#333"',"!endif","","' Theme fonts","","' Basic font","!ifndef $FNT","","' Multiple fallback fonts defined",'!$FNT_MONO = "Courier"','!$FNT_MONO = "Courier New"','!$FNT = "DejaVu Sans Mono"','!$FNT = "monospace"','!$FNT = "Rec Mono Linear"',"","' The preferred theme font",'!$FNT = "Hack"',"","!endif","","' Monospaced font","!ifndef $FNT_MONO","","' A different font can be used",`' !$FNT_MONO = "Rec Mono Semicasual"`,"!$FNT_MONO = $FNT","!endif","","' Theme body","","<style>","root {","BackgroundColor $CLR_BG","FontColor $CLR_FG","FontName $FNT","HyperLinkColor $CLR_HYPERLINK","LineColor $CLR_FG","LineThickness 1","Margin 5","}","document {","caption {","LineThickness 0","}","footer {","LineThickness 0","}","header {","LineThickness 0","}","title {","FontSize 22","LineThickness 0","}","}","node {","' MaximumWidth 300","}","ganttDiagram {","closed {","BackGroundColor $CLR_BG_EMPH","}","task {","BackGroundColor $CLR_FG_DIMMED_2","LineColor $CLR_FG","unstarted {","BackGroundColor $CLR_FG_DIMMED_3","LineColor $CLR_FG","}","}","note {","LineThickness .5","}","timeline {","LineThickness .5","LineColor $CLR_FG_DIMMED_3","}","separator {","}","}","</style>","","' skinparam is flattened to support YAML, JSON diagram types","skinparam {","","shadowing false","useBetaStyle true","arrowLollipopColor $CLR_FG","backgroundColor $CLR_BG","lifelineStrategy nosolid","","defaultFontName $FNT","defaultMonospacedFontName $FNT_MONO","","hyperlinkColor $CLR_HYPERLINK","","headerFontColor $CLR_FG_DIMMED_2","headerFontName $FNT","","footerFontColor $CLR_FG_DIMMED_2","footerFontName $FNT","","legendBorderThickness 0","legendBorderColor transparent","","noteFontColor $CLR_FG","noteFontName $FNT","","packageBorderColor $CLR_FG","packageFontColor $CLR_FG","packageFontName $FNT","","nodeStereotypeFontColor $CLR_FG_DIMMED","nodeStereotypeFontName $FNT","nodeStereotypeFontSize 10","","componentStereotypeFontColor $CLR_FG_DIMMED","componentStereotypeFontName $FNT","componentStereotypeFontSize 10","","participantPadding 10","","actorStereotypeFontColor $CLR_FG_DIMMED","actorStereotypeFontName $FNT","actorStereotypeFontSize 10","","useCaseStereoTypeFontColor $CLR_FG","useCaseStereoTypeFontName $FNT","","classBackgroundColor $CLR_BG","classBorderColor $CLR_FG","classFontColor $CLR_FG","classFontName $FNT","classAttributeFontColor $CLR_FG","classAttributeFontName $FNT","classStereotypeFontColor $CLR_FG_DIMMED","classStereotypeFontName $FNT","classStereotypeFontSize 10","","objectBorderColor $CLR_FG","","activityBackgroundColor $CLR_BG","activityBarColor $CLR_FG","activityBorderColor $CLR_FG","activityFontColor $CLR_FG","activityFontName $FNT","","sequenceLifeLineBorderColor $CLR_FG","","stateBackgroundColor $CLR_BG","stateBorderColor $CLR_FG","","boundaryFontColor $CLR_FG","","boxPadding 5","","circledCharacterFontColor $CLR_FG","circledCharacterFontName $FNT_MONO","circledCharacterFontSize 10","circledCharacterRadius 8","","stereotypeFontColor $CLR_FG_DIMMED","stereotypeFontName $FNT","stereotypeFontSize 10","stereotypeABackgroundColor $CLR_BG","stereotypeABorderColor $CLR_FG","stereotypeCBackgroundColor $CLR_BG","stereotypeCBorderColor $CLR_FG","stereotypeEBackgroundColor $CLR_BG","stereotypeEBorderColor $CLR_FG","stereotypeIBackgroundColor $CLR_BG","stereotypeIBorderColor $CLR_FG","stereotypeNBackgroundColor $CLR_BG","stereotypeNBorderColor $CLR_FG","","iconPackageColor $CLR_FG","iconPackageBackgroundColor $CLR_BG","iconPrivateColor $CLR_FG","iconPrivateBackgroundColor $CLR_BG","iconProtectedColor $CLR_FG","iconProtectedBackgroundColor $CLR_BG","iconPublicColor $CLR_FG","iconPublicBackgroundColor $CLR_BG","","}"].join(`+`),G.plain={author:"Matthew Leather",license:"PlantUML (Apache-2.0 asl edition)",source:""},hr.plain=['!$THEME = "plain"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "white"',"!endif","",'!if %not(%variable_exists("$FGCOLOR"))','!$FGCOLOR = "black"',"!endif","",'!if %not(%variable_exists("$HYPERLINK_COLOR"))','!$HYPERLINK_COLOR = "blue"',"!endif","","!ifndef $FONT_NAME",'!$FONT_NAME = "Verdana"',"!endif","","!ifndef $FONT_NAME_MONOSPACED",'!$FONT_NAME_MONOSPACED = "Courier"',"!endif","","<style>","root {","BackgroundColor $BGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","HyperLinkColor $HYPERLINK_COLOR","LineColor $FGCOLOR","LineThickness 1","Margin 5","}","document {","caption {","LineThickness 0","}","footer {","LineThickness 0","}","header {","LineThickness 0","}","title {","FontSize 22","LineThickness 0","}","}","node {","MaximumWidth 300","}","participant {","Margin 5 10","Padding 5 5","}","</style>","","skinparam ArrowLollipopColor $FGCOLOR","skinparam BackgroundColor $BGCOLOR","skinparam DefaultFontName $FONT_NAME","skinparam DefaultMonospacedFontName $FONT_NAME_MONOSPACED","skinparam LifelineStrategy nosolid","skinparam SequenceLifeLineBorderColor $FGCOLOR","skinparam Shadowing false","skinparam UseBetaStyle true","","skinparam Activity {","BackgroundColor $BGCOLOR","BarColor $FGCOLOR","BorderColor $FGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Boundary {","FontColor $FGCOLOR","}","skinparam Box {","Padding 5","}","skinparam CircledCharacter {","FontColor $FGCOLOR","FontName $FONT_NAME_MONOSPACED","Radius 9","}","skinparam Class {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam ClassAttribute {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam ClassStereotype {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Footer {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Header {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Hyperlink {","Color $HYPERLINK_COLOR","}","skinparam IconPackage {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam IconPrivate {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam IconProtected {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam IconPublic {","Color $FGCOLOR","BackgroundColor $BGCOLOR","}","skinparam Note {","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam Object {","BorderColor $FGCOLOR","}","skinparam Package {","BorderColor $FGCOLOR","FontColor $FGCOLOR","FontName $FONT_NAME","}","skinparam State {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeA {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeC {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeE {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeI {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam StereotypeN {","BackgroundColor $BGCOLOR","BorderColor $FGCOLOR","}","skinparam UseCaseStereoType {","FontColor $FGCOLOR","FontName $FONT_NAME","}"].join(`+`),G["reddress-darkblue"]={author:"Drakemor",license:"MIT",source:"https://github.com/Drakemor/RedDress-PlantUML"},hr["reddress-darkblue"]=['!if (%not(%variable_exists("$FONTNAME")))','!$FONTNAME = "Verdana"',"!endif","",'!if (%not(%variable_exists("$FONTSIZE")))',"!$FONTSIZE = 11","!endif","","skinparam backgroundColor 777",'!$ACCENT = "1a66c2"','!$ACCENTDARK = "002642"',"skinparam stereotypeCBackgroundColor $ACCENT",'!$PRIMARYFONTCOLOR = "fff"','!$SECONDARY = "aaa"','!$ARROWCOLOR = "fff"','!$ARROWFONTCOLOR = "bbb"','!$BORDERCOLOR = "1b1b1b"','!$BOXBG = "2e2e2e"','!$LIGHTBORDERCOLOR = "767676"','!$LIGHTBG = "575757"',"skinparam backgroundColor 777","","!procedure font_style()","fontColor $PRIMARYFONTCOLOR","fontName $FONTNAME","fontSize $FONTSIZE","stereotypeFontColor $SECONDARY","stereotypeFontSize $FONTSIZE","!endprocedure","","!procedure basic_style()","backgroundColor $BOXBG","borderColor $BORDERCOLOR","!endprocedure","","!procedure light_style()","backgroundColor $LIGHTBG","borderColor $LIGHTBORDERCOLOR","!endprocedure","","!procedure accent_style()","backgroundColor $ACCENT","borderColor $ACCENTDARK","!endprocedure","","!procedure arrow_style()","arrowColor $ARROWCOLOR","arrowFontName $FONTNAME","arrowFontColor $ARROWFONTCOLOR","arrowFontSize $FONTSIZE","!endprocedure","","' Class diagrams","","skinparam circledCharacter {","radius 8","fontSize $FONTSIZE","fontName $FONTNAME","}","","skinparam class {","basic_style()","font_style()","arrow_style()","","attributeFontColor $SECONDARY","attributeFontSize $FONTSIZE","attributeIconSize $FONTSIZE","}","","' Sequence diagrams","","skinparam actor {","accent_style()","font_style()","}","","skinparam participant {","basic_style()","font_style()","}","","skinparam collections {","basic_style()","font_style()","}","","skinparam SequenceBox{","light_style()","font_style()","}","","' Component diagrams","","skinparam interface {","accent_style()","font_style()","}","","skinparam component {","basic_style()","font_style()","}","","skinparam node {","basic_style()","font_style()","}","","skinparam database {","basic_style()","font_style()","}","","skinparam queue {","basic_style()","font_style()","}","","' Use Case diagrams","","skinparam usecase {","basic_style()","font_style()","arrow_style()","}","","skinparam activity {","basic_style()","font_style()","arrow_style()","}","","skinparam sequence {","font_style()","arrow_style()","","lifeLineBorderColor $ACCENT","lifeLineBackgroundColor $LIGHTBG","}","","skinparam boundary {","accent_style()","font_style()","}","","skinparam control {","accent_style()","font_style()","}","","skinparam entity {","accent_style()","font_style()","}","","' State diagrams","","skinparam state {","basic_style()","font_style()","arrow_style()","startColor $ACCENT","endColor $ACCENTDARK","}","","' Object diagrams","","skinparam object {","basic_style()","font_style()","arrow_style()","}","","' Common","","skinparam note {","accent_style()","font_style()","}","","skinparam cloud {","basic_style()","font_style()","arrow_style()","}","","skinparam rectangle {","basic_style()","font_style()","}","","skinparam storage {","basic_style()","font_style()","}"].join(`+`),G["reddress-darkgreen"]={author:"Drakemor",license:"MIT",source:"https://github.com/Drakemor/RedDress-PlantUML"},hr["reddress-darkgreen"]=['!if (%not(%variable_exists("$FONTNAME")))','!$FONTNAME = "Verdana"',"!endif","",'!if (%not(%variable_exists("$FONTSIZE")))',"!$FONTSIZE = 11","!endif","",'!$ACCENT = "228811"','!$ACCENTDARK = "113300"',"skinparam stereotypeCBackgroundColor $ACCENT",'!$PRIMARYFONTCOLOR = "fff"','!$SECONDARY = "aaa"','!$ARROWCOLOR = "fff"','!$ARROWFONTCOLOR = "bbb"','!$BORDERCOLOR = "1b1b1b"','!$BOXBG = "2e2e2e"','!$LIGHTBORDERCOLOR = "767676"','!$LIGHTBG = "575757"',"skinparam backgroundColor 777","","!procedure font_style()","fontColor $PRIMARYFONTCOLOR","fontName $FONTNAME","fontSize $FONTSIZE","stereotypeFontColor $SECONDARY","stereotypeFontSize $FONTSIZE","!endprocedure","","!procedure basic_style()","backgroundColor $BOXBG","borderColor $BORDERCOLOR","!endprocedure","","!procedure light_style()","backgroundColor $LIGHTBG","borderColor $LIGHTBORDERCOLOR","!endprocedure","","!procedure accent_style()","backgroundColor $ACCENT","borderColor $ACCENTDARK","!endprocedure","","!procedure arrow_style()","arrowColor $ARROWCOLOR","arrowFontName $FONTNAME","arrowFontColor $ARROWFONTCOLOR","arrowFontSize $FONTSIZE","!endprocedure","","' Class diagrams","","skinparam circledCharacter {","radius 8","fontSize $FONTSIZE","fontName $FONTNAME","}","","skinparam class {","basic_style()","font_style()","arrow_style()","","attributeFontColor $SECONDARY","attributeFontSize $FONTSIZE","attributeIconSize $FONTSIZE","}","","' Sequence diagrams","","skinparam actor {","accent_style()","font_style()","}","","skinparam participant {","basic_style()","font_style()","}","","skinparam collections {","basic_style()","font_style()","}","","skinparam SequenceBox{","light_style()","font_style()","}","","' Component diagrams","","skinparam interface {","accent_style()","font_style()","}","","skinparam component {","basic_style()","font_style()","}","","skinparam node {","basic_style()","font_style()","}","","skinparam database {","basic_style()","font_style()","}","","skinparam queue {","basic_style()","font_style()","}","","' Use Case diagrams","","skinparam usecase {","basic_style()","font_style()","arrow_style()","}","","skinparam activity {","basic_style()","font_style()","arrow_style()","}","","skinparam sequence {","font_style()","arrow_style()","","lifeLineBorderColor $ACCENT","lifeLineBackgroundColor $LIGHTBG","}","","skinparam boundary {","accent_style()","font_style()","}","","skinparam control {","accent_style()","font_style()","}","","skinparam entity {","accent_style()","font_style()","}","","' State diagrams","","skinparam state {","basic_style()","font_style()","arrow_style()","startColor $ACCENT","endColor $ACCENTDARK","}","","' Object diagrams","","skinparam object {","basic_style()","font_style()","arrow_style()","}","","' Common","","skinparam note {","accent_style()","font_style()","}","","skinparam cloud {","basic_style()","font_style()","arrow_style()","}","","skinparam rectangle {","basic_style()","font_style()","}","","skinparam storage {","basic_style()","font_style()","}"].join(`+`),G["reddress-darkorange"]={author:"Drakemor",license:"MIT",source:"https://github.com/Drakemor/RedDress-PlantUML"},hr["reddress-darkorange"]=['!if (%not(%variable_exists("$FONTNAME")))','!$FONTNAME = "Verdana"',"!endif","",'!if (%not(%variable_exists("$FONTSIZE")))',"!$FONTSIZE = 11","!endif","",'!$ACCENT = "BB6600"','!$ACCENTDARK = "662200"',"skinparam stereotypeCBackgroundColor $ACCENT",'!$PRIMARYFONTCOLOR = "fff"','!$SECONDARY = "aaa"','!$ARROWCOLOR = "fff"','!$ARROWFONTCOLOR = "bbb"','!$BORDERCOLOR = "1b1b1b"','!$BOXBG = "2e2e2e"','!$LIGHTBORDERCOLOR = "767676"','!$LIGHTBG = "575757"',"skinparam backgroundColor 777","","!procedure font_style()","fontColor $PRIMARYFONTCOLOR","fontName $FONTNAME","fontSize $FONTSIZE","stereotypeFontColor $SECONDARY","stereotypeFontSize $FONTSIZE","!endprocedure","","!procedure basic_style()","backgroundColor $BOXBG","borderColor $BORDERCOLOR","!endprocedure","","!procedure light_style()","backgroundColor $LIGHTBG","borderColor $LIGHTBORDERCOLOR","!endprocedure","","!procedure accent_style()","backgroundColor $ACCENT","borderColor $ACCENTDARK","!endprocedure","","!procedure arrow_style()","arrowColor $ARROWCOLOR","arrowFontName $FONTNAME","arrowFontColor $ARROWFONTCOLOR","arrowFontSize $FONTSIZE","!endprocedure","","' Class diagrams","","skinparam circledCharacter {","radius 8","fontSize $FONTSIZE","fontName $FONTNAME","}","","skinparam class {","basic_style()","font_style()","arrow_style()","","attributeFontColor $SECONDARY","attributeFontSize $FONTSIZE","attributeIconSize $FONTSIZE","}","","' Sequence diagrams","","skinparam actor {","accent_style()","font_style()","}","","skinparam participant {","basic_style()","font_style()","}","","skinparam collections {","basic_style()","font_style()","}","","skinparam SequenceBox{","light_style()","font_style()","}","","' Component diagrams","","skinparam interface {","accent_style()","font_style()","}","","skinparam component {","basic_style()","font_style()","}","","skinparam node {","basic_style()","font_style()","}","","skinparam database {","basic_style()","font_style()","}","","skinparam queue {","basic_style()","font_style()","}","","' Use Case diagrams","","skinparam usecase {","basic_style()","font_style()","arrow_style()","}","","skinparam activity {","basic_style()","font_style()","arrow_style()","}","","skinparam sequence {","font_style()","arrow_style()","","lifeLineBorderColor $ACCENT","lifeLineBackgroundColor $LIGHTBG","}","","skinparam boundary {","accent_style()","font_style()","}","","skinparam control {","accent_style()","font_style()","}","","skinparam entity {","accent_style()","font_style()","}","","' State diagrams","","skinparam state {","basic_style()","font_style()","arrow_style()","startColor $ACCENT","endColor $ACCENTDARK","}","","' Object diagrams","","skinparam object {","basic_style()","font_style()","arrow_style()","}","","' Common","","skinparam note {","accent_style()","font_style()","}","","skinparam cloud {","basic_style()","font_style()","arrow_style()","}","","skinparam rectangle {","basic_style()","font_style()","}","","skinparam storage {","basic_style()","font_style()","}"].join(`+`),G["reddress-darkred"]={author:"Drakemor",license:"MIT",source:"https://github.com/Drakemor/RedDress-PlantUML"},hr["reddress-darkred"]=['!if (%not(%variable_exists("$FONTNAME")))','!$FONTNAME = "Verdana"',"!endif","",'!if (%not(%variable_exists("$FONTSIZE")))',"!$FONTSIZE = 11","!endif","",'!$ACCENT = "880000"','!$ACCENTDARK = "330000"',"skinparam stereotypeCBackgroundColor $ACCENT",'!$PRIMARYFONTCOLOR = "fff"','!$SECONDARY = "aaa"','!$ARROWCOLOR = "fff"','!$ARROWFONTCOLOR = "bbb"','!$BORDERCOLOR = "1b1b1b"','!$BOXBG = "2e2e2e"','!$LIGHTBORDERCOLOR = "767676"','!$LIGHTBG = "575757"',"skinparam backgroundColor 777","","!procedure font_style()","fontColor $PRIMARYFONTCOLOR","fontName $FONTNAME","fontSize $FONTSIZE","stereotypeFontColor $SECONDARY","stereotypeFontSize $FONTSIZE","!endprocedure","","!procedure basic_style()","backgroundColor $BOXBG","borderColor $BORDERCOLOR","!endprocedure","","!procedure light_style()","backgroundColor $LIGHTBG","borderColor $LIGHTBORDERCOLOR","!endprocedure","","!procedure accent_style()","backgroundColor $ACCENT","borderColor $ACCENTDARK","!endprocedure","","!procedure arrow_style()","arrowColor $ARROWCOLOR","arrowFontName $FONTNAME","arrowFontColor $ARROWFONTCOLOR","arrowFontSize $FONTSIZE","!endprocedure","","' Class diagrams","","skinparam circledCharacter {","radius 8","fontSize $FONTSIZE","fontName $FONTNAME","}","","skinparam class {","basic_style()","font_style()","arrow_style()","","attributeFontColor $SECONDARY","attributeFontSize $FONTSIZE","attributeIconSize $FONTSIZE","}","","' Sequence diagrams","","skinparam actor {","accent_style()","font_style()","}","","skinparam participant {","basic_style()","font_style()","}","","skinparam collections {","basic_style()","font_style()","}","","skinparam SequenceBox{","light_style()","font_style()","}","","' Component diagrams","","skinparam interface {","accent_style()","font_style()","}","","skinparam component {","basic_style()","font_style()","}","","skinparam node {","basic_style()","font_style()","}","","skinparam database {","basic_style()","font_style()","}","","skinparam queue {","basic_style()","font_style()","}","","' Use Case diagrams","","skinparam usecase {","basic_style()","font_style()","arrow_style()","}","","skinparam activity {","basic_style()","font_style()","arrow_style()","}","","skinparam sequence {","font_style()","arrow_style()","","lifeLineBorderColor $ACCENT","lifeLineBackgroundColor $LIGHTBG","}","","skinparam boundary {","accent_style()","font_style()","}","","skinparam control {","accent_style()","font_style()","}","","skinparam entity {","accent_style()","font_style()","}","","' State diagrams","","skinparam state {","basic_style()","font_style()","arrow_style()","startColor $ACCENT","endColor $ACCENTDARK","}","","' Object diagrams","","skinparam object {","basic_style()","font_style()","arrow_style()","}","","' Common","","skinparam note {","accent_style()","font_style()","}","","skinparam cloud {","basic_style()","font_style()","arrow_style()","}","","skinparam rectangle {","basic_style()","font_style()","}","","skinparam storage {","basic_style()","font_style()","}"].join(`+`),G["reddress-lightblue"]={author:"Drakemor",license:"MIT",source:"https://github.com/Drakemor/RedDress-PlantUML"},hr["reddress-lightblue"]=['!if (%not(%variable_exists("$FONTNAME")))','!$FONTNAME = "Verdana"',"!endif","",'!if (%not(%variable_exists("$FONTSIZE")))',"!$FONTSIZE = 11","!endif","",'!$ACCENT = "2a86e2"','!$ACCENTDARK = "1a66c2"',"skinparam stereotypeCBackgroundColor $ACCENTDARK",'!$PRIMARYFONTCOLOR = "000"','!$SECONDARY = "333"','!$ARROWCOLOR = "000"','!$ARROWFONTCOLOR = "333"','!$BORDERCOLOR = "aaa"','!$BOXBG = "ccc"','!$LIGHTBORDERCOLOR = "cccccc"','!$LIGHTBG = "e0e0e0"',"skinparam backgroundColor fff","","!procedure font_style()","fontColor $PRIMARYFONTCOLOR","fontName $FONTNAME","fontSize $FONTSIZE","stereotypeFontColor $SECONDARY","stereotypeFontSize $FONTSIZE","!endprocedure","","!procedure basic_style()","backgroundColor $BOXBG","borderColor $BORDERCOLOR","!endprocedure","","!procedure light_style()","backgroundColor $LIGHTBG","borderColor $LIGHTBORDERCOLOR","!endprocedure","","!procedure accent_style()","backgroundColor $ACCENT","borderColor $ACCENTDARK","!endprocedure","","!procedure arrow_style()","arrowColor $ARROWCOLOR","arrowFontName $FONTNAME","arrowFontColor $ARROWFONTCOLOR","arrowFontSize $FONTSIZE","!endprocedure","","' Class diagrams","","skinparam circledCharacter {","radius 8","fontSize $FONTSIZE","fontName $FONTNAME","}","","skinparam class {","basic_style()","font_style()","arrow_style()","","attributeFontColor $SECONDARY","attributeFontSize $FONTSIZE","attributeIconSize $FONTSIZE","}","","' Sequence diagrams","","skinparam actor {","accent_style()","font_style()","}","","skinparam participant {","basic_style()","font_style()","}","","skinparam collections {","basic_style()","font_style()","}","","skinparam SequenceBox{","light_style()","font_style()","}","","' Component diagrams","","skinparam interface {","accent_style()","font_style()","}","","skinparam component {","basic_style()","font_style()","}","","skinparam node {","basic_style()","font_style()","}","","skinparam database {","basic_style()","font_style()","}","","skinparam queue {","basic_style()","font_style()","}","","' Use Case diagrams","","skinparam usecase {","basic_style()","font_style()","arrow_style()","}","","skinparam activity {","basic_style()","font_style()","arrow_style()","}","","skinparam sequence {","font_style()","arrow_style()","","lifeLineBorderColor $ACCENT","lifeLineBackgroundColor $LIGHTBG","}","","skinparam boundary {","accent_style()","font_style()","}","","skinparam control {","accent_style()","font_style()","}","","skinparam entity {","accent_style()","font_style()","}","","' State diagrams","","skinparam state {","basic_style()","font_style()","arrow_style()","startColor $ACCENT","endColor $ACCENTDARK","}","","' Object diagrams","","skinparam object {","basic_style()","font_style()","arrow_style()","}","","' Common","","skinparam note {","accent_style()","font_style()","}","","skinparam cloud {","basic_style()","font_style()","arrow_style()","}","","skinparam rectangle {","basic_style()","font_style()","}","","skinparam storage {","basic_style()","font_style()","}"].join(`+`),G["reddress-lightgreen"]={author:"Drakemor",license:"MIT",source:"https://github.com/Drakemor/RedDress-PlantUML"},hr["reddress-lightgreen"]=['!if (%not(%variable_exists("$FONTNAME")))','!$FONTNAME = "Verdana"',"!endif","",'!if (%not(%variable_exists("$FONTSIZE")))',"!$FONTSIZE = 11","!endif","",'!$ACCENT = "55BB33"','!$ACCENTDARK = "338822"',"skinparam stereotypeCBackgroundColor $ACCENTDARK",'!$PRIMARYFONTCOLOR = "000"','!$SECONDARY = "333"','!$ARROWCOLOR = "000"','!$ARROWFONTCOLOR = "333"','!$BORDERCOLOR = "aaa"','!$BOXBG = "ccc"','!$LIGHTBORDERCOLOR = "cccccc"','!$LIGHTBG = "e0e0e0"',"skinparam backgroundColor fff","","!procedure font_style()","fontColor $PRIMARYFONTCOLOR","fontName $FONTNAME","fontSize $FONTSIZE","stereotypeFontColor $SECONDARY","stereotypeFontSize $FONTSIZE","!endprocedure","","!procedure basic_style()","backgroundColor $BOXBG","borderColor $BORDERCOLOR","!endprocedure","","!procedure light_style()","backgroundColor $LIGHTBG","borderColor $LIGHTBORDERCOLOR","!endprocedure","","!procedure accent_style()","backgroundColor $ACCENT","borderColor $ACCENTDARK","!endprocedure","","!procedure arrow_style()","arrowColor $ARROWCOLOR","arrowFontName $FONTNAME","arrowFontColor $ARROWFONTCOLOR","arrowFontSize $FONTSIZE","!endprocedure","","' Class diagrams","","skinparam circledCharacter {","radius 8","fontSize $FONTSIZE","fontName $FONTNAME","}","","skinparam class {","basic_style()","font_style()","arrow_style()","","attributeFontColor $SECONDARY","attributeFontSize $FONTSIZE","attributeIconSize $FONTSIZE","}","","' Sequence diagrams","","skinparam actor {","accent_style()","font_style()","}","","skinparam participant {","basic_style()","font_style()","}","","skinparam collections {","basic_style()","font_style()","}","","skinparam SequenceBox{","light_style()","font_style()","}","","' Component diagrams","","skinparam interface {","accent_style()","font_style()","}","","skinparam component {","basic_style()","font_style()","}","","skinparam node {","basic_style()","font_style()","}","","skinparam database {","basic_style()","font_style()","}","","skinparam queue {","basic_style()","font_style()","}","","' Use Case diagrams","","skinparam usecase {","basic_style()","font_style()","arrow_style()","}","","skinparam activity {","basic_style()","font_style()","arrow_style()","}","","skinparam sequence {","font_style()","arrow_style()","","lifeLineBorderColor $ACCENT","lifeLineBackgroundColor $LIGHTBG","}","","skinparam boundary {","accent_style()","font_style()","}","","skinparam control {","accent_style()","font_style()","}","","skinparam entity {","accent_style()","font_style()","}","","' State diagrams","","skinparam state {","basic_style()","font_style()","arrow_style()","startColor $ACCENT","endColor $ACCENTDARK","}","","' Object diagrams","","skinparam object {","basic_style()","font_style()","arrow_style()","}","","' Common","","skinparam note {","accent_style()","font_style()","}","","skinparam cloud {","basic_style()","font_style()","arrow_style()","}","","skinparam rectangle {","basic_style()","font_style()","}","","skinparam storage {","basic_style()","font_style()","}"].join(`+`),G["reddress-lightorange"]={author:"Drakemor",license:"MIT",source:"https://github.com/Drakemor/RedDress-PlantUML"},hr["reddress-lightorange"]=['!if (%not(%variable_exists("$FONTNAME")))','!$FONTNAME = "Verdana"',"!endif","",'!if (%not(%variable_exists("$FONTSIZE")))',"!$FONTSIZE = 11","!endif","",'!$ACCENT = "FF8800"','!$ACCENTDARK = "BB6600"',"skinparam stereotypeCBackgroundColor $ACCENT",'!$PRIMARYFONTCOLOR = "000"','!$SECONDARY = "333"','!$ARROWCOLOR = "000"','!$ARROWFONTCOLOR = "333"','!$BORDERCOLOR = "aaa"','!$BOXBG = "ccc"','!$LIGHTBORDERCOLOR = "cccccc"','!$LIGHTBG = "e0e0e0"',"skinparam backgroundColor fff","","!procedure font_style()","fontColor $PRIMARYFONTCOLOR","fontName $FONTNAME","fontSize $FONTSIZE","stereotypeFontColor $SECONDARY","stereotypeFontSize $FONTSIZE","!endprocedure","","!procedure basic_style()","backgroundColor $BOXBG","borderColor $BORDERCOLOR","!endprocedure","","!procedure light_style()","backgroundColor $LIGHTBG","borderColor $LIGHTBORDERCOLOR","!endprocedure","","!procedure accent_style()","backgroundColor $ACCENT","borderColor $ACCENTDARK","!endprocedure","","!procedure arrow_style()","arrowColor $ARROWCOLOR","arrowFontName $FONTNAME","arrowFontColor $ARROWFONTCOLOR","arrowFontSize $FONTSIZE","!endprocedure","","' Class diagrams","","skinparam circledCharacter {","radius 8","fontSize $FONTSIZE","fontName $FONTNAME","}","","skinparam class {","basic_style()","font_style()","arrow_style()","","attributeFontColor $SECONDARY","attributeFontSize $FONTSIZE","attributeIconSize $FONTSIZE","}","","' Sequence diagrams","","skinparam actor {","accent_style()","font_style()","}","","skinparam participant {","basic_style()","font_style()","}","","skinparam collections {","basic_style()","font_style()","}","","skinparam SequenceBox{","light_style()","font_style()","}","","' Component diagrams","","skinparam interface {","accent_style()","font_style()","}","","skinparam component {","basic_style()","font_style()","}","","skinparam node {","basic_style()","font_style()","}","","skinparam database {","basic_style()","font_style()","}","","skinparam queue {","basic_style()","font_style()","}","","' Use Case diagrams","","skinparam usecase {","basic_style()","font_style()","arrow_style()","}","","skinparam activity {","basic_style()","font_style()","arrow_style()","}","","skinparam sequence {","font_style()","arrow_style()","","lifeLineBorderColor $ACCENT","lifeLineBackgroundColor $LIGHTBG","}","","skinparam boundary {","accent_style()","font_style()","}","","skinparam control {","accent_style()","font_style()","}","","skinparam entity {","accent_style()","font_style()","}","","' State diagrams","","skinparam state {","basic_style()","font_style()","arrow_style()","startColor $ACCENT","endColor $ACCENTDARK","}","","' Object diagrams","","skinparam object {","basic_style()","font_style()","arrow_style()","}","","' Common","","skinparam note {","accent_style()","font_style()","}","","skinparam cloud {","basic_style()","font_style()","arrow_style()","}","","skinparam rectangle {","basic_style()","font_style()","}","","skinparam storage {","basic_style()","font_style()","}"].join(`+`),G["reddress-lightred"]={author:"Drakemor",license:"MIT",source:"https://github.com/Drakemor/RedDress-PlantUML"},hr["reddress-lightred"]=['!if (%not(%variable_exists("$FONTNAME")))','!$FONTNAME = "Verdana"',"!endif","",'!if (%not(%variable_exists("$FONTSIZE")))',"!$FONTSIZE = 11","!endif","",'!$ACCENT = "CC0033"','!$ACCENTDARK = "AA0033"',"skinparam stereotypeCBackgroundColor $ACCENTDARK",'!$PRIMARYFONTCOLOR = "000"','!$SECONDARY = "333"','!$ARROWCOLOR = "000"','!$ARROWFONTCOLOR = "333"','!$BORDERCOLOR = "aaa"','!$BOXBG = "ccc"','!$LIGHTBORDERCOLOR = "cccccc"','!$LIGHTBG = "e0e0e0"',"skinparam backgroundColor fff","","!procedure font_style()","fontColor $PRIMARYFONTCOLOR","fontName $FONTNAME","fontSize $FONTSIZE","stereotypeFontColor $SECONDARY","stereotypeFontSize $FONTSIZE","!endprocedure","","!procedure basic_style()","backgroundColor $BOXBG","borderColor $BORDERCOLOR","!endprocedure","","!procedure light_style()","backgroundColor $LIGHTBG","borderColor $LIGHTBORDERCOLOR","!endprocedure","","!procedure accent_style()","backgroundColor $ACCENT","borderColor $ACCENTDARK","!endprocedure","","!procedure arrow_style()","arrowColor $ARROWCOLOR","arrowFontName $FONTNAME","arrowFontColor $ARROWFONTCOLOR","arrowFontSize $FONTSIZE","!endprocedure","","' Class diagrams","","skinparam circledCharacter {","radius 8","fontSize $FONTSIZE","fontName $FONTNAME","}","","skinparam class {","basic_style()","font_style()","arrow_style()","","attributeFontColor $SECONDARY","attributeFontSize $FONTSIZE","attributeIconSize $FONTSIZE","}","","' Sequence diagrams","","skinparam actor {","accent_style()","font_style()","}","","skinparam participant {","basic_style()","font_style()","}","","skinparam collections {","basic_style()","font_style()","}","","skinparam SequenceBox{","light_style()","font_style()","}","","' Component diagrams","","skinparam interface {","accent_style()","font_style()","}","","skinparam component {","basic_style()","font_style()","}","","skinparam node {","basic_style()","font_style()","}","","skinparam database {","basic_style()","font_style()","}","","skinparam queue {","basic_style()","font_style()","}","","' Use Case diagrams","","skinparam usecase {","basic_style()","font_style()","arrow_style()","}","","skinparam activity {","basic_style()","font_style()","arrow_style()","}","","skinparam sequence {","font_style()","arrow_style()","","lifeLineBorderColor $ACCENT","lifeLineBackgroundColor $LIGHTBG","}","","skinparam boundary {","accent_style()","font_style()","}","","skinparam control {","accent_style()","font_style()","}","","skinparam entity {","accent_style()","font_style()","}","","' State diagrams","","skinparam state {","basic_style()","font_style()","arrow_style()","startColor $ACCENT","endColor $ACCENTDARK","}","","' Object diagrams","","skinparam object {","basic_style()","font_style()","arrow_style()","}","","' Common","","skinparam note {","accent_style()","font_style()","}","","skinparam cloud {","basic_style()","font_style()","arrow_style()","}","","skinparam rectangle {","basic_style()","font_style()","}","","skinparam storage {","basic_style()","font_style()","}"].join(`+`),G.sandstone={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr.sandstone=['!$THEME = "sandstone"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif","","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false","",'!$BLUE = "#325d88"','!$INDIGO = "#6610f2"','!$PURPLE = "#6f42c1"','!$PINK = "#e83e8c"','!$RED = "#d9534f"','!$ORANGE = "#f47c3c"','!$YELLOW = "#ffc107"','!$GREEN = "#93c54b"','!$TEAL = "#20c997"','!$CYAN = "#29abe0"','!$WHITE = "#fff"','!$GRAY = "#8e8c84"','!$GRAYDARK = "#3e3f3a"','!$PRIMARY = "#325d88"','!$SECONDARY = "#8e8c84"','!$SUCCESS = "#93c54b"','!$INFO = "#29abe0"','!$WARNING = "#f47c3c"','!$DANGER = "#d9534f"','!$LIGHT = "#f8f5f0"','!$DARK = "#3e3f3a"',"","!$FGCOLOR = $WHITE",'!$PRIMARY_DARK = "#2d547a"','!$PRIMARY_LIGHT = "#476d94"',"!$PRIMARY_TEXT = $WHITE",'!$SECONDARY_DARK = "#807e77"','!$SECONDARY_LIGHT = "#999890"',"!$SECONDARY_TEXT = $WHITE",'!$INFO_DARK = "#259aca"','!$INFO_LIGHT = "#3eb3e3"',"!$INFO_TEXT = $WHITE",'!$SUCCESS_DARK = "#84b144"','!$SUCCESS_LIGHT = "#9ecb5d"',"!$SUCCESS_TEXT = $WHITE",'!$WARNING_DARK = "#dc7036"','!$WARNING_LIGHT = "#f58950"',"!$WARNING_TEXT = $WHITE",'!$DANGER_DARK = "#c34b47"','!$DANGER_LIGHT = "#AE423F"',"!$DANGER_TEXT = $WHITE",'!$DARK_DARK = "#383934"','!$DARK_LIGHT = "#51524e"','!$LIGHT_DARK = "#dfddd8"','!$LIGHT_LIGHT = "#f9f6f2"',"","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY_DARK","BackgroundColor $PRIMARY","!endprocedure","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $PRIMARY-$PRIMARY_DARK","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_DARK","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_DARK","LineColor $PRIMARY_DARK","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 40","Padding 15 20","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $INFO","}","separator {","LineColor $SECONDARY","BackGroundColor $SECONDARY-$SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 8","skinparam BoxPadding 40","skinparam ArrowColor $DARK","skinparam stereotype {","CBackgroundColor $SECONDARY_LIGHT","CBorderColor $SECONDARY_DARK","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $PRIMARY","BorderColor $SECONDARY_DARK","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","}","","skinparam legend {","BackgroundColor $SECONDARY","BorderColor $SECONDARY_DARK","FontColor $LIGHT","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY","}","!endsub","","!startsub activity","","skinparam activity {","$primary_scheme()","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $SECONDARY_LIGHT","DiamondBorderColor $SECONDARY_DARK","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","}","!endsub","","!startsub arrow","","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY","BackgroundColor $BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $BGCOLOR","BoxBorderColor $DARK","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY","LifeLineBorderThickness 2","LifeLineBackgroundColor $SECONDARY_DARK","GroupBorderColor $DARK","GroupFontColor $DARK","GroupHeaderFontColor $INFO","GroupBackgroundColor $SECONDARY","GroupHeaderBackgroundColor $BGCOLOR","DividerBackgroundColor $DARK","DividerBorderColor $DARK","DividerBorderThickness 2","DividerFontColor $LIGHT","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $DARK","ReferenceFontColor $DARK","ReferenceHeaderFontColor $INFO","ReferenceHeaderBackgroundColor $SECONDARY","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY","BackgroundColor $BGCOLOR","}","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","}","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","}","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","}","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor $WARNING","BorderColor $WARNING_LIGHT","FontColor $DARK","}","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $INFO","BorderColor $INFO_DARK","FontColor $WHITE","}","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor $DARK","BorderColor $DARK_DARK","FontColor $LIGHT","}","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","}","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $DANGER_DARK","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $WARNING","BorderColor $WARNING_DARK","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","","skinparam node {","BackgroundColor $SECONDARY","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor #F2FCFE-#eeeeee","BorderColor #F2FCFE","FontColor $DARK","}","!endsub","","!startsub database","","skinparam database {","$primary_scheme()","}","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","HeaderBackgroundColor $PRIMARY_LIGHT","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $PRIMARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","","skinparam rectangle {","$primary_scheme()","BackgroundColor $SECONDARY_LIGHT","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","","skinparam package {","BackgroundColor $SECONDARY","BorderColor $PRIMARY","FontColor $PRIMARY","BorderThickness 2","}","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $SECONDARY_LIGHT","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $SECONDARY_LIGHT","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","BackgroundColor $PRIMARY_LIGHT","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","","skinparam card {","BackgroundColor $INFO","BorderColor $INFO_DARK","FontColor $INFO_TEXT","}","!endsub","","!startsub file","","skinparam file {","BackgroundColor $SECONDARY_DARK","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","}","!endsub"].join(`+`),G.silver={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr.silver=['!$THEME = "silver"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif","","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false","",'!$WHITE = "#FFF"','!$GRAY_DARK = "#4d4d4d"','!$GRAY = "#737373"','!$LIGHT = "#ffffff"','!$DARK = "#303030"',"","!$FGCOLOR = $DARK",'!$PRIMARY = "#eeeeee"','!$PRIMARY_LIGHT = "#f1f1f1"','!$PRIMARY_DARK = "#bebebe"','!$PRIMARY_TEXT = "#336699"','!$SECONDARY = "#d6d6d6"','!$SECONDARY_LIGHT = "#dedede"','!$SECONDARY_DARK = "#ababab"',"!$SECONDARY_TEXT = $LIGHT",'!$INFO = "#336699"','!$INFO_LIGHT = "#5c85ad"','!$INFO_DARK = "#29527a"',"!$INFO_TEXT = $WHITE",'!$SUCCESS = "#339933"','!$SUCCESS_LIGHT = "#5cad5c"','!$SUCCESS_DARK = "#297a29"',"!$SUCCESS_TEXT = $WHITE",'!$WARNING = "#ffae42"','!$WARNING_LIGHT = "#ffbe68"','!$WARNING_DARK = "#cc8b35"',"!$WARNING_TEXT = $WHITE",'!$DANGER = "#ff3333"','!$DANGER_LIGHT = "#ff5c5c"','!$DANGER_DARK = "#cc2929"',"!$DANGER_TEXT = $WHITE","","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY_LIGHT","BackgroundColor $PRIMARY-$PRIMARY_DARK","!endprocedure","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $PRIMARY-$PRIMARY_DARK","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_DARK","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_DARK","LineColor $PRIMARY_DARK","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 30","Padding 15 20","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $INFO","}","separator {","LineColor $SECONDARY","BackGroundColor $SECONDARY-$SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 15","skinparam BoxPadding 30","skinparam ArrowColor $GRAY","skinparam stereotype {","CBackgroundColor $SECONDARY_LIGHT","CBorderColor $SECONDARY_DARK","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $PRIMARY","BorderColor $SECONDARY_DARK","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","}","","skinparam legend {","BackgroundColor $SECONDARY","BorderColor $SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY","}","!endsub","","!startsub activity","","skinparam activity {","$primary_scheme()","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $SECONDARY-$SECONDARY_DARK","DiamondBorderColor $SECONDARY_DARK","DiamondFontColor $SECONDARY_TEXT","}","","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","FontColor $DARK","}","","!endsub","","!startsub arrow","","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY","BackgroundColor $BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $LIGHT","BoxBorderColor $GRAY","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY_DARK","LifeLineBorderThickness 2","LifeLineBackgroundColor $SECONDARY_LIGHT","GroupBorderColor $GRAY","GroupFontColor $DARK","GroupHeaderFontColor $INFO","DividerBackgroundColor $WHITE-$LIGHT","DividerBorderColor $GRAY","DividerBorderThickness 2","DividerFontColor $DARK","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $GRAY","ReferenceFontColor $DARK","ReferenceHeaderFontColor $INFO","StereotypeFontColor $PRIMARY_TEXT","}","","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY_DARK","BackgroundColor $BGCOLOR","}","","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","}","","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","}","","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","}","","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","}","","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor #orange","BorderColor #999999","FontColor #333333","}","","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $INFO_LIGHT-$INFO","BorderColor $INFO","FontColor $WHITE","}","","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK","BorderColor $SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","}","","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $DANGER_LIGHT","BorderColor $DANGER","FontColor $DARK","}","","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $WARNING_LIGHT-$WARNING","BorderColor $WARNING","FontColor $WARNING_TEXT","}","","!endsub","","!startsub node","","skinparam node {","BackgroundColor $PRIMARY_LIGHT-$PRIMARY_DARK","BorderColor $PRIMARY_LIGHT","FontColor $PRIMARY_TEXT","}","","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor #F2FCFE-#eeeeee","BorderColor #F2FCFE","FontColor $DARK","}","","!endsub","","!startsub database","","skinparam database {","$primary_scheme()","FontColor $DARK","}","","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","HeaderBackgroundColor $PRIMARY_LIGHT-$PRIMARY_DARK","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $DARK","AttributeFontSize 9","}","","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","StereotypeFontColor $LIGHT","BorderThickness 1","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","","!endsub","","!startsub rectangle","","skinparam rectangle {","$primary_scheme()","BackgroundColor $PRIMARY_LIGHT","BorderThickness 2","StereotypeFontColor $PRIMARY","}","","!endsub","","!startsub package","","skinparam package {","$primary_scheme()","BorderThickness 2","}","","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $PRIMARY-$PRIMARY_DARK","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $PRIMARY-$PRIMARY_DARK","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","}","","!endsub","","!startsub card","","skinparam card {","BackgroundColor $INFO_LIGHT-$INFO","BorderColor $INFO","FontColor $INFO_TEXT","}","","!endsub","","!startsub file","","skinparam file {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","BorderColor $LIGHT","FontColor $LIGHT","","}","","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","}","","!endsub"].join(`+`),G.sketchy={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr.sketchy=['!$THEME = "sketchy"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif","","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false","!option handwritten true","skinparam shadowing false","",'!$BLUE = "#007bff"','!$INDIGO = "#6610f2"','!$PURPLE = "#6f42c1"','!$PINK = "#e83e8c"','!$RED = "#dc3545"','!$ORANGE = "#fd7e14"','!$YELLOW = "#ffc107"','!$GREEN = "#28a745"','!$TEAL = "#20c997"','!$CYAN = "#17a2b8"','!$WHITE = "#ffffff"','!$GRAY = "#868e96"','!$GRAYDARK = "#333333"','!$PRIMARY = "#333333"','!$SECONDARY = "#555555"','!$SUCCESS = "#28a745"','!$INFO = "#17a2b8"','!$WARNING = "#ffc107"','!$DANGER = "#dc3545"','!$LIGHT = "#ffffff"','!$DARK = "#555555"',"","!$FGCOLOR = $WHITE",'!$PRIMARY_DARK = "#2e2e2e"','!$PRIMARY_LIGHT = "#474747"',"!$PRIMARY_TEXT = $WHITE",'!$SECONDARY_DARK = "#4d4d4d"','!$SECONDARY_LIGHT = "#666666"',"!$SECONDARY_TEXT = $WHITE",'!$INFO_DARK = "#1592a6"','!$INFO_LIGHT = "#2eabbf"',"!$INFO_TEXT = $WHITE",'!$SUCCESS_DARK = "#24963e"','!$SUCCESS_LIGHT = "#3eb058"',"!$SUCCESS_TEXT = $WHITE",'!$WARNING_DARK = "#e6ae06"','!$WARNING_LIGHT = "#ffc720"',"!$WARNING_TEXT = $WHITE",'!$DANGER_DARK = "#c6303e"','!$DANGER_LIGHT = "#e04958"',"!$DANGER_TEXT = $WHITE",'!$DARK_DARK = "#4d4d4d"','!$DARK_LIGHT = "#666666"','!$LIGHT_DARK = "#e6e6e6"','!$LIGHT_LIGHT = "#ffffff"',"","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY","BackgroundColor $PRIMARY_LIGHT","!endprocedure","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $PRIMARY-$PRIMARY_DARK","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_DARK","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_DARK","LineColor $PRIMARY_DARK","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 40","Padding 15 20","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $INFO","}","separator {","LineColor $SECONDARY","BackGroundColor $SECONDARY-$SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Segoe Print"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 8","skinparam BoxPadding 40","skinparam ArrowColor $DARK","skinparam stereotype {","CBackgroundColor $SECONDARY_LIGHT","CBorderColor $SECONDARY_DARK","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $FGCOLOR","BorderColor $SECONDARY_DARK","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","}","","skinparam legend {","BackgroundColor $SECONDARY","BorderColor $SECONDARY_DARK","FontColor $LIGHT","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $FGCOLOR","}","!endsub","","!startsub activity","","skinparam activity {","$primary_scheme()","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $SECONDARY_LIGHT","DiamondBorderColor $SECONDARY_DARK","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","}","!endsub","","!startsub arrow","","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY","BackgroundColor $BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $BGCOLOR","BoxBorderColor $DARK","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY","LifeLineBorderThickness 2","LifeLineBackgroundColor $SECONDARY_DARK","GroupBorderColor $DARK","GroupFontColor $DARK","GroupHeaderFontColor $INFO","GroupBackgroundColor $SECONDARY","GroupHeaderBackgroundColor $BGCOLOR","DividerBackgroundColor $DARK","DividerBorderColor $DARK","DividerBorderThickness 2","DividerFontColor $LIGHT","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $DARK","ReferenceFontColor $DARK","ReferenceHeaderFontColor $INFO","ReferenceHeaderBackgroundColor $SECONDARY","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY","BackgroundColor $BGCOLOR","}","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","}","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","}","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","}","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor $WARNING","BorderColor $WARNING_LIGHT","FontColor $DARK","}","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $INFO","BorderColor $INFO_DARK","FontColor $WHITE","}","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor $DARK","BorderColor $DARK_DARK","FontColor $LIGHT","}","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","}","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $DANGER_DARK","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $WARNING","BorderColor $WARNING_DARK","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","","skinparam node {","BackgroundColor $SECONDARY","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor #F2FCFE-#eeeeee","BorderColor #F2FCFE","FontColor $DARK","}","!endsub","","!startsub database","","skinparam database {","$primary_scheme()","}","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","FontColor $FGCOLOR","HeaderBackgroundColor $PRIMARY_LIGHT","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $LIGHT","AttributeFontSize 11","}","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","","skinparam rectangle {","$primary_scheme()","BackgroundColor $SECONDARY_LIGHT","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","","skinparam package {","BackgroundColor $SECONDARY","BorderColor $PRIMARY","FontColor $PRIMARY","BorderThickness 2","}","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $SECONDARY_LIGHT","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $SECONDARY_LIGHT","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","","skinparam card {","BackgroundColor $INFO","BorderColor $INFO_DARK","FontColor $INFO_TEXT","}","!endsub","","!startsub file","","skinparam file {","BackgroundColor $SECONDARY_DARK","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","}","!endsub"].join(`+`),G["sketchy-outline"]={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr["sketchy-outline"]=['!$THEME = "sketchy-outline"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif","","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false","!option handwritten true","skinparam shadowing false","",'!$BLUE = "#007bff"','!$INDIGO = "#6610f2"','!$PURPLE = "#6f42c1"','!$PINK = "#e83e8c"','!$RED = "#dc3545"','!$ORANGE = "#fd7e14"','!$YELLOW = "#ffc107"','!$GREEN = "#28a745"','!$TEAL = "#20c997"','!$CYAN = "#17a2b8"','!$WHITE = "#ffffff"','!$GRAY = "#868e96"','!$GRAYDARK = "#333333"','!$PRIMARY = "#333333"','!$SECONDARY = "#555555"','!$SUCCESS = "#28a745"','!$INFO = "#17a2b8"','!$WARNING = "#ffc107"','!$DANGER = "#dc3545"','!$LIGHT = "#ffffff"','!$DARK = "#555555"',"","!$FGCOLOR = $WHITE",'!$PRIMARY_DARK = "#2e2e2e"','!$PRIMARY_LIGHT = "#474747"','!$PRIMARY_TEXT = "#2e2e2e"','!$SECONDARY_DARK = "#4d4d4d"','!$SECONDARY_LIGHT = "#666666"',"!$SECONDARY_TEXT = $WHITE",'!$INFO_DARK = "#1592a6"','!$INFO_LIGHT = "#2eabbf"',"!$INFO_TEXT = $WHITE",'!$SUCCESS_DARK = "#24963e"','!$SUCCESS_LIGHT = "#3eb058"',"!$SUCCESS_TEXT = $WHITE",'!$WARNING_DARK = "#e6ae06"','!$WARNING_LIGHT = "#ffc720"',"!$WARNING_TEXT = $WHITE",'!$DANGER_DARK = "#c6303e"','!$DANGER_LIGHT = "#e04958"',"!$DANGER_TEXT = $WHITE",'!$DARK_DARK = "#4d4d4d"','!$DARK_LIGHT = "#666666"','!$LIGHT_DARK = "#e6e6e6"','!$LIGHT_LIGHT = "#ffffff"',"","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY","BackgroundColor $BGCOLOR","!endprocedure","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $BGCOLOR","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $BGCOLOR","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_DARK","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_DARK","LineColor $PRIMARY_DARK","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 40","Padding 15 20","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $BGCOLOR","}","separator {","LineColor $SECONDARY_DARK","BackGroundColor $BGCOLOR","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Segoe Print"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 8","skinparam BoxPadding 40","skinparam ArrowColor $DARK","skinparam stereotype {","CBackgroundColor $BGCOLOR","CBorderColor $SECONDARY_DARK","ABackgroundColor $BGCOLOR","ABorderColor $SUCCESS_DARK","IBackgroundColor $BGCOLOR","IBorderColor $DANGER_DARK","EBackgroundColor $BGCOLOR","EBorderColor $WARNING_DARK","NBackgroundColor $BGCOLOR","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $PRIMARY_TEXT","BorderColor $SECONDARY_DARK","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $BGCOLOR","}","","skinparam legend {","BackgroundColor $BGCOLOR","BorderColor $SECONDARY_DARK","FontColor $PRIMARY_TEXT","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $BGCOLOR","TitleFontColor $PRIMARY_TEXT","}","!endsub","","!startsub activity","","skinparam activity {","$primary_scheme()","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $BGCOLOR","DiamondBorderColor $SECONDARY_DARK","DiamondFontColor $PRIMARY_TEXT","}","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","}","!endsub","","!startsub arrow","","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $PRIMARY_TEXT","}","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY_TEXT","BackgroundColor $BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $BGCOLOR","BoxBorderColor $DARK","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY","LifeLineBorderThickness 2","LifeLineBackgroundColor $SECONDARY_DARK","GroupBorderColor $DARK","GroupFontColor $DARK","GroupHeaderFontColor $INFO","GroupBackgroundColor $SECONDARY","GroupHeaderBackgroundColor $BGCOLOR","DividerBackgroundColor $DARK","DividerBorderColor $DARK","DividerBorderThickness 2","DividerFontColor $LIGHT","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $DARK","ReferenceFontColor $DARK","ReferenceHeaderFontColor $INFO","ReferenceHeaderBackgroundColor $SECONDARY","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY","BackgroundColor $BGCOLOR","}","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","}","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","}","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","}","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor $WARNING","BorderColor $WARNING_LIGHT","FontColor $DARK","}","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $INFO","BorderColor $INFO_DARK","FontColor $WHITE","}","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor $BGCOLOR","BorderColor $DARK_DARK","FontColor $DARK_DARK","}","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","}","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $BGCOLOR","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $BGCOLOR","BorderColor $WARNING_DARK","FontColor $WARNING_DARK","}","!endsub","","!startsub node","","skinparam node {","BackgroundColor $BGCOLOR","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor $BGCOLOR","BorderColor #F2FCFE","FontColor $PRIMARY_TEXT","}","!endsub","","!startsub database","","skinparam database {","$primary_scheme()","}","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","HeaderBackgroundColor $BGCOLOR","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $DARK","AttributeFontSize 11","}","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","StereotypeFontColor $PRIMARY_TEXT","BorderThickness 1","AttributeFontColor $PRIMARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","","skinparam rectangle {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","","skinparam package {","BackgroundColor $BGCOLOR","BorderColor $PRIMARY","FontColor $PRIMARY","BorderThickness 2","}","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $BGCOLOR","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $BGCOLOR","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","","skinparam card {","BackgroundColor $BGCOLOR","BorderColor $INFO_DARK","FontColor $INFO_DARK","}","!endsub","","!startsub file","","skinparam file {","BackgroundColor $BGCOLOR","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","}","!endsub"].join(`+`),G.spacelab={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr.spacelab=['!$THEME = "spacelab"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif","","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false","",'!$BLUE = "#446e9b"','!$INDIGO = "#6610f2"','!$PURPLE = "#6f42c1"','!$PINK = "#e83e8c"','!$RED = "#cd0200"','!$ORANGE = "#fd7e14"','!$YELLOW = "#d47500"','!$GREEN = "#3cb521"','!$TEAL = "#20c997"','!$CYAN = "#3399f3"','!$WHITE = "#ffffff"','!$GRAY = "#777777"','!$GRAYDARK = "#333333"','!$PRIMARY = "#446e9b"','!$SECONDARY = "#999999"','!$SUCCESS = "#3cb521"','!$INFO = "#3399f3"','!$WARNING = "#d47500"','!$DANGER = "#cd0200"','!$LIGHT = "#eeeeee"','!$DARK = "#333333"',"","!$FGCOLOR = $WHITE",'!$PRIMARY_DARK = "#304d6d"','!$PRIMARY_LIGHT = "#7c9ab9"',"!$PRIMARY_TEXT = $WHITE",'!$SECONDARY_DARK = "#6b6b6b"','!$SECONDARY_LIGHT = "#b8b8b8"',"!$SECONDARY_TEXT = $WHITE",'!$INFO_DARK = "#246baa"','!$INFO_LIGHT = "#70b8f7"',"!$INFO_TEXT = $WHITE",'!$SUCCESS_DARK = "#32a243"','!$SUCCESS_LIGHT = "#4cbc5c"',"!$SUCCESS_TEXT = $WHITE",'!$WARNING_DARK = "#945200"','!$WARNING_LIGHT = "#e19e4d"',"!$WARNING_TEXT = $WHITE",'!$DANGER_DARK = "#900100"','!$DANGER_LIGHT = "#dc4e4d"',"!$DANGER_TEXT = $WHITE",'!$DARK_DARK = "#242424"','!$DARK_LIGHT = "#707070"','!$LIGHT_DARK = "#a7a7a7"','!$LIGHT_LIGHT = "#f3f3f3"',"","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY_DARK","BackgroundColor $PRIMARY_LIGHT-$PRIMARY_DARK","!endprocedure","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $PRIMARY-$PRIMARY_DARK","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_DARK","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_DARK","LineColor $PRIMARY_DARK","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 40","Padding 15 20","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $INFO","}","separator {","LineColor $SECONDARY","BackGroundColor $SECONDARY-$SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 8","skinparam BoxPadding 40","skinparam ArrowColor $DARK","skinparam stereotype {","CBackgroundColor $SECONDARY_LIGHT","CBorderColor $SECONDARY_DARK","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $PRIMARY_DARK","BorderColor $SECONDARY_DARK","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","}","","skinparam legend {","BackgroundColor $SECONDARY","BorderColor $SECONDARY_DARK","FontColor $LIGHT","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY_DARK","}","!endsub","","!startsub activity","","skinparam activity {","$primary_scheme()","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK","DiamondBorderColor $SECONDARY_DARK","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","}","!endsub","","!startsub arrow","","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY","BackgroundColor $BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $BGCOLOR","BoxBorderColor $DARK","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY","LifeLineBorderThickness 2","LifeLineBackgroundColor $SECONDARY_DARK-$SECONDARY_DARK","GroupBorderColor $DARK","GroupFontColor $DARK","GroupHeaderFontColor $INFO","GroupBackgroundColor $SECONDARY_DARK-$SECONDARY_DARK","GroupHeaderBackgroundColor $BGCOLOR","DividerBackgroundColor $DARK_LIGHT-$DARK_DARK","DividerBorderColor $DARK","DividerBorderThickness 2","DividerFontColor $LIGHT","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $DARK","ReferenceFontColor $DARK","ReferenceHeaderFontColor $INFO","ReferenceHeaderBackgroundColor $SECONDARY_DARK-$SECONDARY_DARK","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY","BackgroundColor $BGCOLOR","}","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","}","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","}","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","}","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor $WARNING","BorderColor $WARNING_LIGHT","FontColor $DARK","}","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $INFO_LIGHT-$INFO_DARK","BorderColor $INFO_DARK","FontColor $WHITE","}","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor $DARK","BorderColor $DARK_DARK","FontColor $LIGHT","}","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","}","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $DANGER_DARK","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $WARNING","BorderColor $WARNING_DARK","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","","skinparam node {","BackgroundColor $SECONDARY","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor #F2FCFE-#eeeeee","BorderColor #F2FCFE","FontColor $DARK","}","!endsub","","!startsub database","","skinparam database {","$primary_scheme()","}","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","FontColor $WHITE","HeaderBackgroundColor $PRIMARY_LIGHT-$PRIMARY","StereotypeFontColor $LIGHT","BorderThickness 1","AttributeFontColor $LIGHT","AttributeFontSize 11","}","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","","skinparam rectangle {","$primary_scheme()","BackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","","skinparam package {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK","BorderColor $PRIMARY","FontColor $PRIMARY","BorderThickness 2","}","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","","skinparam card {","BackgroundColor $INFO_LIGHT-$INFO_DARK","BorderColor $INFO_DARK","FontColor $INFO_TEXT","}","!endsub","","!startsub file","","skinparam file {","BackgroundColor $SECONDARY_DARK-$SECONDARY_DARK","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","}","!endsub"].join(`+`),G["spacelab-white"]={author:"KingPlus-lang",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr["spacelab-white"]=['!$THEME = "spacelab-white"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "white"',"!endif","","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false","",'!$BLUE = "#446e9b"','!$INDIGO = "#6610f2"','!$PURPLE = "#6f42c1"','!$PINK = "#e83e8c"','!$RED = "#cd0200"','!$ORANGE = "#fd7e14"','!$YELLOW = "#d47500"','!$GREEN = "#3cb521"','!$TEAL = "#20c997"','!$CYAN = "#3399f3"','!$WHITE = "#ffffff"','!$GRAY = "#777777"','!$GRAYDARK = "#333333"','!$PRIMARY = "#446e9b"','!$SECONDARY = "#999999"','!$SUCCESS = "#3cb521"','!$INFO = "#3399f3"','!$WARNING = "#d47500"','!$DANGER = "#cd0200"','!$LIGHT = "#eeeeee"','!$DARK = "#333333"',"","!$FGCOLOR = $WHITE",'!$PRIMARY_DARK = "#304d6d"','!$PRIMARY_LIGHT = "#7c9ab9"',"!$PRIMARY_TEXT = $WHITE",'!$SECONDARY_DARK = "#6b6b6b"','!$SECONDARY_LIGHT = "#b8b8b8"',"!$SECONDARY_TEXT = $WHITE",'!$INFO_DARK = "#246baa"','!$INFO_LIGHT = "#70b8f7"',"!$INFO_TEXT = $WHITE",'!$SUCCESS_DARK = "#32a243"','!$SUCCESS_LIGHT = "#4cbc5c"',"!$SUCCESS_TEXT = $WHITE",'!$WARNING_DARK = "#945200"','!$WARNING_LIGHT = "#e19e4d"',"!$WARNING_TEXT = $WHITE",'!$DANGER_DARK = "#900100"','!$DANGER_LIGHT = "#dc4e4d"',"!$DANGER_TEXT = $WHITE",'!$DARK_DARK = "#242424"','!$DARK_LIGHT = "#707070"','!$LIGHT_DARK = "#a7a7a7"','!$LIGHT_LIGHT = "#f3f3f3"',"","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY_DARK","BackgroundColor $PRIMARY_LIGHT-$PRIMARY_DARK","!endprocedure","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $PRIMARY-$PRIMARY_DARK","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_DARK","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_DARK","LineColor $PRIMARY_DARK","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 40","Padding 15 20","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $INFO","}","separator {","LineColor $SECONDARY","BackGroundColor $SECONDARY-$SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 8","skinparam BoxPadding 40","skinparam ArrowColor $DARK","skinparam stereotype {","CBackgroundColor $SECONDARY_LIGHT","CBorderColor $SECONDARY_DARK","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $PRIMARY_DARK","BorderColor $SECONDARY_DARK","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","}","","skinparam legend {","BackgroundColor $SECONDARY","BorderColor $SECONDARY_DARK","FontColor $LIGHT","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY_DARK","}","!endsub","","!startsub activity","","skinparam activity {","$primary_scheme()","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK","DiamondBorderColor $SECONDARY_DARK","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","}","!endsub","","!startsub arrow","","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY","BackgroundColor $BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $BGCOLOR","BoxBorderColor $DARK","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY","LifeLineBorderThickness 2","LifeLineBackgroundColor $SECONDARY_DARK-$SECONDARY_DARK","GroupBorderColor $DARK","GroupFontColor $DARK","GroupHeaderFontColor $INFO","GroupBackgroundColor $SECONDARY_DARK-$SECONDARY_DARK","GroupHeaderBackgroundColor $BGCOLOR","DividerBackgroundColor $DARK_LIGHT-$DARK_DARK","DividerBorderColor $DARK","DividerBorderThickness 2","DividerFontColor $LIGHT","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $DARK","ReferenceFontColor $DARK","ReferenceHeaderFontColor $INFO","ReferenceHeaderBackgroundColor $SECONDARY_DARK-$SECONDARY_DARK","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY","BackgroundColor $BGCOLOR","}","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","}","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","}","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","}","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor $WARNING","BorderColor $WARNING_LIGHT","FontColor $DARK","}","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $INFO_LIGHT-$INFO_DARK","BorderColor $INFO_DARK","FontColor $WHITE","}","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor $DARK","BorderColor $DARK_DARK","FontColor $LIGHT","}","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","}","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $DANGER_DARK","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $WARNING","BorderColor $WARNING_DARK","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","","skinparam node {","BackgroundColor $SECONDARY","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor #F2FCFE-#eeeeee","BorderColor #F2FCFE","FontColor $DARK","}","!endsub","","!startsub database","","skinparam database {","$primary_scheme()","}","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","FontColor $WHITE","HeaderBackgroundColor $PRIMARY_LIGHT-$PRIMARY","StereotypeFontColor $LIGHT","BorderThickness 1","AttributeFontColor $LIGHT","AttributeFontSize 11","}","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","","skinparam rectangle {","$primary_scheme()","BackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","","skinparam package {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK","BorderColor $PRIMARY","FontColor $PRIMARY","BorderThickness 2","}","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","","skinparam card {","BackgroundColor $INFO_LIGHT-$INFO_DARK","BorderColor $INFO_DARK","FontColor $INFO_TEXT","}","!endsub","","!startsub file","","skinparam file {","BackgroundColor $SECONDARY_DARK-$SECONDARY_DARK","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","}","!endsub"].join(`+`),G.superhero={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr.superhero=['!$THEME = "superhero"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif","","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false","",'!$BLUE = "#DF691A"','!$INDIGO = "#6610f2"','!$PURPLE = "#6f42c1"','!$PINK = "#e83e8c"','!$RED = "#d9534f"','!$ORANGE = "#f0ad4e"','!$YELLOW = "#f0ad4e"','!$GREEN = "#5cb85c"','!$TEAL = "#20c997"','!$CYAN = "#5bc0de"','!$WHITE = "#FFF"','!$GRAY_LIGHT = "#222"','!$GRAY = "#868e96"','!$PRIMARY = "#DF691A"','!$SECONDARY = "#4E5D6C"','!$SUCCESS = "#5cb85c"','!$INFO = "#5bc0de"','!$WARNING = "#f0ad4e"','!$DANGER = "#d9534f"','!$LIGHT = "#abb6c2"','!$DARK = "#4E5D6C"',"","!$FGCOLOR = $WHITE",'!$PRIMARY_DARK = "#e58748"','!$PRIMARY_LIGHT = "#b25415"',"!$PRIMARY_TEXT = $WHITE",'!$SECONDARY_DARK = "#717d89"','!$SECONDARY_LIGHT = "#3e4a56"',"!$SECONDARY_TEXT = $WHITE",'!$INFO_DARK = "#7ccde5"','!$INFO_LIGHT = "#499AB2"',"!$INFO_TEXT = $WHITE",'!$SUCCESS_DARK = "#4a934a"','!$SUCCESS_LIGHT = "#5F8F00"',"!$SUCCESS_TEXT = $WHITE",'!$WARNING_DARK = "#f3bd71"','!$WARNING_LIGHT = "#C08A3E"',"!$WARNING_TEXT = $WHITE",'!$DANGER_DARK = "#e17572"','!$DANGER_LIGHT = "#AE423F"',"!$DANGER_TEXT = $WHITE",'!$DARK_DARK = "#717d89"','!$DARK_LIGHT = "#3e4a56"','!$LIGHT_DARK = "#bcc5ce"','!$LIGHT_LIGHT = "#89929b"',"","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY_DARK","BackgroundColor $PRIMARY","!endprocedure","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $PRIMARY-$PRIMARY_DARK","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_LIGHT","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_LIGHT","LineColor $PRIMARY_LIGHT","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 40","Padding 15 20","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $INFO","}","separator {","LineColor $SECONDARY","BackGroundColor $SECONDARY-$SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 8","skinparam BoxPadding 40","skinparam ArrowColor $DARK","skinparam stereotype {","CBackgroundColor $SECONDARY_LIGHT","CBorderColor $SECONDARY_DARK","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $PRIMARY","BorderColor $SECONDARY_DARK","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","}","","skinparam legend {","BackgroundColor $SECONDARY","BorderColor $SECONDARY_DARK","FontColor $LIGHT","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY","}","!endsub","","!startsub activity","","skinparam activity {","$primary_scheme()","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $SECONDARY_LIGHT","DiamondBorderColor $SECONDARY_DARK","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","BorderThickness 2","}","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","}","!endsub","","!startsub arrow","","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY","BackgroundColor $BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $BGCOLOR","BoxBorderColor $DARK","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY","LifeLineBorderThickness 2","LifeLineBackgroundColor $SECONDARY_DARK","GroupBackgroundColor $SECONDARY","GroupBorderColor $DARK","GroupFontColor $DARK","GroupHeaderFontColor $INFO","GroupHeaderBackgroundColor $BGCOLOR","DividerBackgroundColor $DARK","DividerBorderColor $DARK","DividerBorderThickness 2","DividerFontColor $LIGHT","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $DARK","ReferenceFontColor $DARK","ReferenceHeaderFontColor $INFO","ReferenceHeaderBackgroundColor $SECONDARY","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY","BackgroundColor $BGCOLOR","}","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","}","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","}","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","}","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor $WARNING","BorderColor $WARNING_LIGHT","FontColor $DARK","}","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $INFO","BorderColor $INFO_DARK","FontColor $WHITE","}","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor $DARK","BorderColor $DARK_DARK","FontColor $LIGHT","}","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","}","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $DANGER_DARK","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $WARNING","BorderColor $WARNING_DARK","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","","skinparam node {","BackgroundColor $SECONDARY","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor $LIGHT-black","BorderColor $LIGHT","FontColor $DARK","}","!endsub","","!startsub database","","skinparam database {","$primary_scheme()","}","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","HeaderBackgroundColor $PRIMARY_LIGHT","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $DARK","AttributeFontSize 11","}","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","","skinparam rectangle {","$primary_scheme()","BackgroundColor $SECONDARY_LIGHT","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","","skinparam package {","BackgroundColor $SECONDARY","BorderColor $PRIMARY","FontColor $PRIMARY","BorderThickness 2","}","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $SECONDARY_LIGHT","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $SECONDARY_LIGHT","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","","skinparam card {","BackgroundColor $INFO","BorderColor $INFO_DARK","FontColor $INFO_TEXT","}","!endsub","","!startsub file","","skinparam file {","BackgroundColor $SECONDARY_DARK","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","}","!endsub"].join(`+`),G["superhero-outline"]={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr["superhero-outline"]=['!$THEME = "superhero-outline"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif","","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false","",'!$BLUE = "#DF691A"','!$INDIGO = "#6610f2"','!$PURPLE = "#6f42c1"','!$PINK = "#e83e8c"','!$RED = "#d9534f"','!$ORANGE = "#f0ad4e"','!$YELLOW = "#f0ad4e"','!$GREEN = "#5cb85c"','!$TEAL = "#20c997"','!$CYAN = "#5bc0de"','!$WHITE = "#FFF"','!$GRAY_LIGHT = "#222"','!$GRAY = "#868e96"','!$PRIMARY = "#DF691A"','!$SECONDARY = "#4E5D6C"','!$SUCCESS = "#5cb85c"','!$INFO = "#5bc0de"','!$WARNING = "#f0ad4e"','!$DANGER = "#d9534f"','!$LIGHT = "#abb6c2"','!$DARK = "#4E5D6C"',"","!$FGCOLOR = $WHITE",'!$PRIMARY_DARK = "#e58748"','!$PRIMARY_LIGHT = "#b25415"',"!$PRIMARY_TEXT = $PRIMARY",'!$SECONDARY_DARK = "#717d89"','!$SECONDARY_LIGHT = "#3e4a56"',"!$SECONDARY_TEXT = $SECONDARY_DARK ",'!$INFO_DARK = "#7ccde5"','!$INFO_LIGHT = "#499AB2"',"!$INFO_TEXT = $INFO",'!$SUCCESS_DARK = "#4a934a"','!$SUCCESS_LIGHT = "#5F8F00"',"!$SUCCESS_TEXT = $SUCCESS",'!$WARNING_DARK = "#f3bd71"','!$WARNING_LIGHT = "#C08A3E"',"!$WARNING_TEXT = $WARNING",'!$DANGER_DARK = "#e17572"','!$DANGER_LIGHT = "#AE423F"',"!$DANGER_TEXT = $WHITE",'!$DARK_DARK = "#717d89"','!$DARK_LIGHT = "#3e4a56"','!$LIGHT_DARK = "#bcc5ce"','!$LIGHT_LIGHT = "#89929b"',"","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY_DARK","BackgroundColor $BGCOLOR","!endprocedure","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $BGCOLOR","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $BGCOLOR","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_LIGHT","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_LIGHT","LineColor $PRIMARY_LIGHT","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 40","Padding 15 20","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $BGCOLOR","}","separator {","LineColor $SECONDARY_DARK","BackGroundColor $BGCOLOR","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 8","skinparam BoxPadding 40","skinparam TitleFontColor $DARK","skinparam TitleFontSize 20","skinparam TitleBorderThickness 0","skinparam ArrowColor $DARK","skinparam stereotype {","CBackgroundColor $SECONDARY_DARK","CBorderColor $SECONDARY_LIGHT","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $PRIMARY","BorderColor $SECONDARY_DARK","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $BGCOLOR","}","","skinparam legend {","BackgroundColor $BGCOLOR","BorderColor $SECONDARY_DARK","FontColor $LIGHT","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY","}","!endsub","","!startsub activity","","skinparam activity {","$primary_scheme()","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $BGCOLOR","DiamondBorderColor $SECONDARY_DARK","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","FontColor $PRIMARY","}","!endsub","","!startsub arrow","","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY","BackgroundColor $BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $BGCOLOR","BoxBorderColor $DARK","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY","LifeLineBorderThickness 2","LifeLineBackgroundColor $BGCOLOR","GroupBorderColor $DARK","GroupFontColor $DARK","GroupHeaderFontColor $INFO","GroupBackgroundColor $BGCOLOR","GroupHeaderBackgroundColor $BGCOLOR","DividerBackgroundColor $BGCOLOR","DividerBorderColor $DARK","DividerBorderThickness 2","DividerFontColor $LIGHT","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $LIGHT","ReferenceFontColor $LIGHT","ReferenceHeaderFontColor $INFO","ReferenceHeaderBackgroundColor $BGCOLOR","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY","BackgroundColor $BGCOLOR","}","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","}","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","}","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","}","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor $BGCOLOR","BorderColor $WARNING_LIGHT","FontColor $DARK","}","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $BGCOLOR","BorderColor $INFO_DARK","FontColor $INFO_DARK","}","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor $BGCOLOR","BorderColor $DARK_DARK","FontColor $LIGHT","}","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","}","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $BGCOLOR","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $BGCOLOR","BorderColor $WARNING_DARK","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","","skinparam node {","BackgroundColor $BGCOLOR","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor $BGCOLOR","BorderColor #F2FCFE","FontColor $DARK","}","!endsub","","!startsub database","","skinparam database {","$primary_scheme()","FontColor $PRIMARY","}","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","FontColor $LIGHT","HeaderBackgroundColor $PRIMARY_LIGHT","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $DARK","AttributeFontSize 11","}","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $SECONDARY_DARK","AttributeFontSize 11","}","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","","skinparam rectangle {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","","skinparam package {","BackgroundColor $BGCOLOR","BorderColor $PRIMARY","FontColor $PRIMARY","BorderThickness 2","}","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $BGCOLOR","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $BGCOLOR","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","","skinparam card {","BackgroundColor $BGCOLOR","BorderColor $INFO","FontColor $INFO_TEXT","}","!endsub","","!startsub file","","skinparam file {","BackgroundColor $BGCOLOR","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","}","!endsub"].join(`+`),G.toy={author:"future-architect",license:"Apache-2.0",source:"https://github.com/future-architect/puml-themes/tree/master/themes"},hr.toy=["skinparam BackgroundColor DDDDDD","skinparam shadowing false","skinparam RoundCorner 7","skinparam ArrowColor 454645","skinparam FontColor 454645","skinparam SequenceLifeLineBorderColor 454645","skinparam SequenceGroupHeaderFontColor 454645","skinparam SequenceGroupFontColor 454645","skinparam SequenceGroupBorderColor 454645","skinparam SequenceGroupBorderThickness 1","","skinparam sequenceDivider {","BorderColor 454645","BorderThickness 1","FontColor 454645","}","","skinparam participant {","BackgroundColor FF6F61","BorderColor 454645","FontColor White","BorderThickness 1.5","}","","skinparam database {","BackgroundColor 98DDDE","BorderColor 454645","FontColor 454645","}","","skinparam entity {","BackgroundColor FFDA29","BorderColor 454645","FontColor 454645","}","","skinparam note {","BackgroundColor LightGreen","BorderColor 454645","FontColor 454645","BorderThickness 1","}","","skinparam actor {","BackgroundColor 454645","BorderColor 454645","FontColor 454645","}","","skinparam boundary {","BackgroundColor FFDA29","BorderColor 454645","FontColor 454645","}","","skinparam control {","BackgroundColor FFDA29","BorderColor 454645","FontColor 454645","}","","skinparam collections {","BackgroundColor FF6F61","BorderColor 454645","FontColor 454645","BorderThickness 1.5","}","","skinparam queue {","BackgroundColor FF6F61","BorderColor 454645","FontColor FFF","BorderThickness 1.5","}"].join(`+`),G.united={author:"Brett Schwarz",license:"MIT",source:"https://github.com/bschwarz/puml-themes"},hr.united=['!$THEME = "united"',"",'!if %not(%variable_exists("$BGCOLOR"))','!$BGCOLOR = "transparent"',"!endif","","skinparam backgroundColor $BGCOLOR","skinparam useBetaStyle false","",'!$BLUE = "#007bff"','!$INDIGO = "#6610f2"','!$PURPLE = "#772953"','!$PINK = "#e83e8c"','!$RED = "#df382c"','!$ORANGE = "#e95420"','!$YELLOW = "#efb73e"','!$GREEN = "#38b44a"','!$TEAL = "#20c997"','!$CYAN = "#17a2b8"','!$WHITE = "#fff"','!$GRAY = "#868e96"','!$GRAYDARK = "#333"','!$PRIMARY = "#e95420"','!$SECONDARY = "#aea79f"','!$SUCCESS = "#38b44a"','!$INFO = "#17a2b8"','!$WARNING = "#efb73e"','!$DANGER = "#df382c"','!$LIGHT = "#e9ecef"','!$DARK = "#772953"',"","!$FGCOLOR = $WHITE",'!$PRIMARY_DARK = "#d24c1d"','!$PRIMARY_LIGHT = "#eb6536"',"!$PRIMARY_TEXT = $WHITE",'!$SECONDARY_DARK = "#9d968f"','!$SECONDARY_LIGHT = "#b6b0a9"',"!$SECONDARY_TEXT = $WHITE",'!$INFO_DARK = "#1592a6"','!$INFO_LIGHT = "#2eabbf"',"!$INFO_TEXT = $WHITE",'!$SUCCESS_DARK = "#32a243"','!$SUCCESS_LIGHT = "#4cbc5c"',"!$SUCCESS_TEXT = $WHITE",'!$WARNING_DARK = "#d7a538"','!$WARNING_LIGHT = "#f1be51"',"!$WARNING_TEXT = $WHITE",'!$DANGER_DARK = "#c93228"','!$DANGER_LIGHT = "#e24c41"',"!$DANGER_TEXT = $WHITE",'!$DARK_DARK = "#6b254b"','!$DARK_LIGHT = "#853e64"','!$LIGHT_DARK = "#d2d4d7"','!$LIGHT_LIGHT = "#ebeef1"',"","!procedure $success($msg)","<font color=$SUCCESS><b>$msg","!endprocedure","","!procedure $failure($msg)","<font color=$DANGER><b>$msg","!endprocedure","","!procedure $warning($msg)","<font color=$WARNING><b>$msg","!endprocedure","","!procedure $primary_scheme()","FontColor $PRIMARY_TEXT","BorderColor $PRIMARY_DARK","BackgroundColor $PRIMARY","!endprocedure","<style>","root {","BackgroundColor $BGCOLOR","FontColor $PRIMARY_TEXT","HyperLinkColor $ORANGE","LineColor $PRIMARY_DARK","LineThickness 1","Margin 10","Padding 6","Shadowing 0.0","}","node {","Padding 15","roundcorner 20","BackgroundColor $PRIMARY-$PRIMARY_DARK","}","caption {","LineThickness 0","}","footer {","LineThickness 0","}","groupHeader {","BackgroundColor $SECONDARY","FontColor $INFO","FontStyle bold","}","header {","LineThickness 0","}","referenceHeader {","BackgroundColor $BGCOLOR","FontColor $DARK","FontStyle bold","}","separator {","BackgroundColor $FGCOLOR","FontColor $BGCOLOR","FontStyle bold","}","title {","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","FontColor $PRIMARY","BorderColor $SECONDARY","}","nwdiagDiagram {","network {","$primary_scheme() ","LineColor $PRIMARY","LineThickness 1.0","FontColor $PRIMARY_DARK","}","server {","$primary_scheme()","}","arrow {","FontColor $PRIMARY_DARK","LineColor $PRIMARY_DARK","}","group {","BackGroundColor $LIGHT","LineColor $LIGHT_DARK","LineThickness 2.0","Margin 5","Padding 5","}","}","participant {","Margin 5 40","Padding 15 20","}","ganttDiagram {","task {","$primary_scheme()","LineColor $PRIMARY","Margin 10 2 2 2","Padding 6","}","note {","FontColor $INFO_TEXT","LineColor $INFO_DARK","BackGroundColor $INFO","}","separator {","LineColor $SECONDARY","BackGroundColor $SECONDARY-$SECONDARY_DARK","FontColor $SECONDARY_TEXT","}","milestone {","FontColor $INFO","FontSize 16","FontStyle italic","BackGroundColor $SECONDARY","LineColor $SECONDARY_DARK","}","timeline {","BackgroundColor $SECONDARY","FontColor $SECONDARY_TEXT","}","closed {","BackgroundColor $WARNING_DARK","FontColor $WARNING_TEXT","}","}","</style>",'skinparam defaultFontName "Verdana"',"skinparam defaultFontSize 12","skinparam dpi 100","skinparam shadowing false","skinparam roundcorner 8","skinparam BoxPadding 40","skinparam ArrowColor $DARK","skinparam stereotype {","CBackgroundColor $SECONDARY_LIGHT","CBorderColor $SECONDARY_DARK","ABackgroundColor $SUCCESS_LIGHT","ABorderColor $SUCCESS_DARK","IBackgroundColor $DANGER_LIGHT","IBorderColor $DANGER_DARK","EBackgroundColor $WARNING_LIGHT","EBorderColor $WARNING_DARK","NBackgroundColor $INFO_LIGHT","NBorderColor $INFO_DARK","}","skinparam title {","FontColor $PRIMARY","BorderColor $SECONDARY_DARK","FontSize 20","BorderRoundCorner 8","BorderThickness 1","BackgroundColor $SECONDARY_LIGHT-$SECONDARY","}","","skinparam legend {","BackgroundColor $SECONDARY","BorderColor $SECONDARY_DARK","FontColor $LIGHT","}","","!startsub swimlane","skinparam swimlane {","BorderColor $INFO","BorderThickness 2","TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY","TitleFontColor $PRIMARY","}","!endsub","","!startsub activity","","skinparam activity {","$primary_scheme()","BarColor $SUCCESS","StartColor $INFO","EndColor $INFO","DiamondBackgroundColor $SECONDARY_LIGHT","DiamondBorderColor $SECONDARY_DARK","DiamondFontColor $SECONDARY_TEXT","}","!endsub","","!startsub participant","","skinparam participant {","$primary_scheme()","ParticipantBorderThickness 2","}","!endsub","","!startsub actor","","skinparam actor {","$primary_scheme()","}","!endsub","","!startsub arrow","","skinparam arrow {","Thickness 3","Color $PRIMARY","FontColor $FGCOLOR","}","!endsub","","!startsub sequence","","skinparam sequence {","BorderColor $PRIMARY","' For some reason sequence title font color does not pick up from global","TitleFontColor $PRIMARY","BackgroundColor $BGCOLOR","StartColor $PRIMARY","EndColor $PRIMARY","BoxBackgroundColor $BGCOLOR","BoxBorderColor $DARK","BoxFontColor $DARK","DelayFontColor $DARK","LifeLineBorderColor $SECONDARY","LifeLineBorderThickness 2","LifeLineBackgroundColor $SECONDARY_DARK","GroupBorderColor $DARK","GroupFontColor $DARK","GroupHeaderFontColor $INFO","GroupBackgroundColor $SECONDARY","GroupHeaderBackgroundColor $BGCOLOR","DividerBackgroundColor $DARK","DividerBorderColor $DARK","DividerBorderThickness 2","DividerFontColor $LIGHT","ReferenceBackgroundColor $BGCOLOR","ReferenceBorderColor $DARK","ReferenceFontColor $DARK","ReferenceHeaderFontColor $INFO","ReferenceHeaderBackgroundColor $SECONDARY","StereotypeFontColor $PRIMARY_TEXT","}","!endsub","","!startsub partition","","skinparam partition {","BorderColor $PRIMARY","FontColor $PRIMARY","BackgroundColor $BGCOLOR","}","!endsub","","!startsub collections","","skinparam collections {","$primary_scheme()","}","!endsub","","!startsub control","","skinparam control {","$primary_scheme()","}","!endsub","","!startsub entity","","skinparam entity {","$primary_scheme()","}","!endsub","","!startsub boundary","","skinparam boundary {","$primary_scheme()","}","!endsub","","!startsub agent","","skinparam agent {","BackgroundColor $WARNING","BorderColor $WARNING_LIGHT","FontColor $DARK","}","!endsub","","!startsub note","","skinparam note {","BorderThickness 1","BackgroundColor $INFO","BorderColor $INFO_DARK","FontColor $WHITE","}","!endsub","","!startsub artifact","","skinparam artifact {","BackgroundColor $DARK","BorderColor $DARK_DARK","FontColor $LIGHT","}","!endsub","","!startsub component","","skinparam component {","$primary_scheme()","}","!endsub","","!startsub interface","","skinparam interface {","BackgroundColor $DANGER_DARK","BorderColor $DANGER","FontColor $DARK","}","!endsub","","!startsub storage","","skinparam storage {","BackgroundColor $WARNING","BorderColor $WARNING_DARK","FontColor $WARNING_TEXT","}","!endsub","","!startsub node","","skinparam node {","BackgroundColor $SECONDARY","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub cloud","","skinparam cloud {","BackgroundColor #F2FCFE-#eeeeee","BorderColor #F2FCFE","FontColor $DARK","}","!endsub","","!startsub database","","skinparam database {","$primary_scheme()","}","!endsub","","!startsub class","","skinparam class {","$primary_scheme()","HeaderBackgroundColor $PRIMARY_LIGHT","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $DARK","AttributeFontSize 11","}","!endsub","","!startsub object","","skinparam object {","$primary_scheme()","StereotypeFontColor $DARK","BorderThickness 1","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub usecase","","skinparam usecase {","$primary_scheme()","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub rectangle","","skinparam rectangle {","$primary_scheme()","BackgroundColor $SECONDARY_LIGHT","BorderThickness 2","StereotypeFontColor $PRIMARY","}","!endsub","","!startsub package","","skinparam package {","BackgroundColor $SECONDARY","BorderColor $PRIMARY","FontColor $PRIMARY","BorderThickness 2","}","!endsub","","!startsub folder","","skinparam folder {","BackgroundColor $SECONDARY_LIGHT","BorderColor $WARNING","FontColor $WARNING","BorderThickness 2","}","!endsub","","!startsub frame","","skinparam frame {","BackgroundColor $SECONDARY_LIGHT","BorderColor $INFO","FontColor $INFO","BorderThickness 2","}","!endsub","","!startsub state","","skinparam state {","$primary_scheme()","BackgroundColor $PRIMARY_LIGHT","StartColor $INFO","EndColor $INFO","AttributeFontColor $SECONDARY_TEXT","AttributeFontSize 11","}","!endsub","","!startsub queue","","skinparam queue {","$primary_scheme()","}","!endsub","","!startsub card","","skinparam card {","BackgroundColor $INFO","BorderColor $INFO_DARK","FontColor $INFO_TEXT","}","!endsub","","!startsub file","","skinparam file {","BackgroundColor $SECONDARY_DARK","BorderColor $LIGHT","FontColor $LIGHT","}","!endsub","","!startsub stack","","skinparam stack {","$primary_scheme()","}","!endsub"].join(`+`),G.vibrant={author:"future-architect",license:"Apache-2.0",source:"https://github.com/future-architect/puml-themes/tree/master/themes"},hr.vibrant=["skinparam BackgroundColor FFFFFF","skinparam shadowing false","skinparam RoundCorner 7","skinparam ArrowColor 454645","skinparam FontColor 454645","skinparam SequenceLifeLineBorderColor 696969","skinparam SequenceGroupHeaderFontColor 454645","skinparam SequenceGroupFontColor 696969","skinparam SequenceGroupBorderColor 696969","skinparam SequenceGroupBorderThickness 1","","skinparam sequenceDivider {","BorderColor 454645","BorderThickness 1","FontColor 454645","}","","skinparam participant {","BackgroundColor FF6347","BorderColor 454645","FontColor FFFFFF","BorderThickness 1.5","}","","skinparam database {","BackgroundColor 00FFFF","BorderColor 454645","FontColor 454645","}","","skinparam entity {","BackgroundColor FFE552","BorderColor 454645","FontColor 454645","}","","skinparam note {","BackgroundColor 7FFFD4","BorderColor 454645","FontColor 454645","BorderThickness 1.5","}","","skinparam actor {","BackgroundColor 454645","BorderColor 454645","FontColor 454645","}","","skinparam boundary {","BackgroundColor FFE552","BorderColor 454645","FontColor 454645","}","","skinparam control {","BackgroundColor FFE552","BorderColor 454645","FontColor 454645","}","","skinparam collections {","BackgroundColor FF5F42","BorderColor 454645","FontColor 454645","}","","skinparam queue {","BackgroundColor FF6347","BorderColor 454645","FontColor FFF","BorderThickness 1.5","}"].join(`+`);function Wr(fr){var Ar=String(fr??"").replace(/^\s+|\s+$/g,"").toLowerCase();return hr.hasOwnProperty(Ar)?hr[Ar]:null}function vr(fr){return Wr(fr)!=null}function ae(fr){var Ar=String(fr??"").replace(/^\s+|\s+$/g,"").toLowerCase();return G.hasOwnProperty(Ar)?G[Ar]:null}function Tr(){var fr=[];for(var Ar in hr)hr.hasOwnProperty(Ar)&&fr.push(Ar);return fr}return{get:Wr,has:vr,meta:ae,names:Tr}})();var js=(function(){function hr(t){return t.replace(/\r\n|\r/g,`+`)}function G(t,o){for(;o>0;){var v=t.charAt(o-1);if(v===`+`)return!0;if(v!==" "&&v!==" ")return!1;o--}return!0}function Wr(t){if(t==null||typeof t!="string")return t;t=hr(t);for(var o=t.length,v=[],u=0,l=0;u<o;){var d=t.charAt(u);l===0?d==='"'?(v.push(d),l=1,u++):d==="/"&&u+1<o&&t.charAt(u+1)==="'"?(l=3,u+=2):d==="'"&&G(t,u)?(l=2,u++):(v.push(d),u++):l===1?d==="\\"&&u+1<o?(v.push(d),v.push(t.charAt(u+1)),u+=2):d==='"'||d===`+`?(v.push(d),l=0,u++):(v.push(d),u++):l===2?(d===`+`&&(v.push(d),l=0),u++):d==="'"&&u+1<o&&t.charAt(u+1)==="/"?(l=0,u+=2):(d===`+`&&v.push(d),u++)}return v.join("")}function vr(t){if(t=t.replace(/^\s+|\s+$/g,""),t.length===0)return"";if(t.charAt(0)==='"'){for(var o=t.length-1;o>0&&t.charAt(o)!=='"';)o--;if(o>0){var v=t.substring(1,o);return v.replace(/\\"/g,'"').replace(/\\\\/g,"\\")}return t}return/^-?\d+$/.test(t)?parseInt(t,10):/^-?\d*\.\d+$/.test(t)?parseFloat(t):t}function ae(t,o){var v=t.replace(/^\s+|\s+$/g,"");if(v.length===0)return"";var u=v.charAt(0),l=u==="$"||u==="%"||u==="("||u==='"'||u==="'"||u==="-"||u==="!"||u==="."||u>="0"&&u<="9"||/^(?:true|false)\b/.test(v),d=v.match(/^([A-Za-z_][\w]*)/);if(!l&&d!=null&&o!=null&&o.defines!=null&&Object.prototype.hasOwnProperty.call(o.defines,d[1])&&(l=!0),!l&&d!=null&&o!=null&&o.functions!=null&&Object.prototype.hasOwnProperty.call(o.functions,d[1])&&(l=!0),l){var b=I(v,o||{});if(b.complete)return b.value}return vr(t)}function Tr(t,o){return t.replace(/%([A-Za-z_][\w]*)%/g,function(v,u){return Object.prototype.hasOwnProperty.call(o,u)?String(o[u]):v})}function fr(t,o){if(t==null||typeof t!="string")return t;o=o||{};var v={};if(o.variables!=null)for(var u in o.variables)o.variables.hasOwnProperty(u)&&(v[u]=o.variables[u]);for(var l=t.split(`+`),d=[],b=/^(\s*)!\$([A-Za-z_][\w]*)\s*=\s*(.*)$/,m=0;m<l.length;m++){var w=Tr(l[m],v),S=w.match(b);if(S!=null){v[S[2]]=ae(S[3],{defines:o.defines||{},paramDefines:o.paramDefines||{},variables:v}),d.push("");continue}d.push(w)}o.variables==null&&(o.variables={});for(var tr in v)v.hasOwnProperty(tr)&&(o.variables[tr]=v[tr]);return d.join(`+`)}function Ar(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function P(t){if(t.length===0)return null;for(var o=t.slice().sort(function(l,d){return d.length-l.length}),v=[],u=0;u<o.length;u++)v.push(Ar(o[u]));return new RegExp("\\b("+v.join("|")+")\\b","g")}function J(t,o,v){return v==null?t:t.replace(v,function(u){return o[u]})}function K(t){if(t=t.replace(/^\s+|\s+$/g,""),t.length===0)return[];for(var o=t.split(","),v=[],u=0;u<o.length;u++)v.push(o[u].replace(/^\s+|\s+$/g,""));return v}function R(t,o){for(var v=0,u=null,l=t.length,d=o;d<l;d++){var b=t.charAt(d);if(u!=null){b==="\\"&&d+1<l?d++:b===u&&(u=null);continue}if(b==='"'||b==="'")u=b;else if(b==="(")v++;else if(b===")"&&(v--,v===0))return d}return-1}function g(t){var o=[],v=t.length;if(v===0)return o;for(var u="",l=0,d=null,b=0;b<v;b++){var m=t.charAt(b);if(d!=null){u+=m,m==="\\"&&b+1<v?(u+=t.charAt(b+1),b++):m===d&&(d=null);continue}m==='"'||m==="'"?(d=m,u+=m):m==="("?(l++,u+=m):m===")"?(l--,u+=m):m===","&&l===0?(o.push(u.replace(/^\s+|\s+$/g,"")),u=""):u+=m}return o.push(u.replace(/^\s+|\s+$/g,"")),o}function y(t){for(var o=g(t.replace(/^\s+|\s+$/g,"")),v=[],u=0;u<o.length;u++){var l=o[u].match(/^\s*\$?([A-Za-z_][\w]*)(?:\s*=\s*(.*))?$/);l!=null&&v.push({name:l[1],defaultExpression:l[2]!=null?l[2]:null})}return v}function C(t){var o=t.match(/^\s*!(?:(unquoted)\s+)?function\s+(\$?[A-Za-z_][\w]*)\s*\(/i);if(o==null)return null;var v=t.indexOf("(",o.index),u=R(t,v);if(u<0)return null;var l=t.substring(u+1).replace(/^\s+|\s+$/g,""),d=null;if(l.length>0){var b=l.match(/^!?return\b(.*)$/i);if(b==null)return null;d=b[1].replace(/^\s+|\s+$/g,"")}return{name:o[2].replace(/^\$/,""),params:y(t.substring(v+1,u)),unquoted:o[1]!=null,inlineReturn:d}}function s(t){if(t==null)return[];if(t=t.replace(/^\s+|\s+$/g,""),t.length===0)return[];var o=t.charAt(0),v=t.charAt(t.length-1);if((o==="["&&v==="]"||o==="("&&v===")")&&(t=t.substring(1,t.length-1).replace(/^\s+|\s+$/g,"")),t.length===0)return[];for(var u=g(t),l=[],d=0;d<u.length;d++)l.push(vr(u[d]));return l}function i(t,o,v){if(o.length===0)return t;for(var u={},l=0;l<o.length;l++){var d=l<v.length?v[l]:"";d.length>=2&&d.charAt(0)==='"'&&d.charAt(d.length-1)==='"'&&(d=d.substring(1,d.length-1)),u[o[l]]=d}for(var b=o.slice().sort(function(xr,Ve){return Ve.length-xr.length}),m=[],w=0;w<b.length;w++){var S=b[w];S.charAt(0)==="$"?m.push("\\$"+Ar(S.substring(1))+"(?![\\w])"):m.push("\\b"+Ar(S)+"\\b")}for(var tr=new RegExp("("+m.join("|")+")","g"),ir=0;ir<b.length;ir++){var Nr=Ar(b[ir]);t=t.replace(new RegExp(Nr+"##","g"),b[ir]+"").replace(new RegExp("##"+Nr,"g"),""+b[ir])}return t.replace(tr,function(xr,Ve){return u[Ve]}).replace(/\u0001/g,"")}function k(t,o){for(var v="",u=0,l=t.length,d=/[A-Za-z_]/,b=/[A-Za-z0-9_]/;u<l;){var m=t.charAt(u);if(m==="$"&&u+1<l&&d.test(t.charAt(u+1))){var w=u;for(u++;u<l&&b.test(t.charAt(u));)u++;var S=t.substring(w,u);if(o.hasOwnProperty(S)&&u<l&&t.charAt(u)==="("){var tr=R(t,u);if(tr<0){v+=S;continue}var ir=t.substring(u+1,tr),Nr=g(ir),xr=o[S];v+=i(xr.body,xr.params,Nr),u=tr+1}else v+=S;continue}if(d.test(m)){for(var Ve=u;u<l&&b.test(t.charAt(u));)u++;var qr=t.substring(Ve,u);if(o.hasOwnProperty(qr)&&u<l&&t.charAt(u)==="("){var $e=R(t,u);if($e<0){v+=qr;continue}var se=t.substring(u+1,$e),Re=g(se),Ne=o[qr];v+=i(Ne.body,Ne.params,Re),u=$e+1}else v+=qr}else v+=m,u++}return v}function F(t,o,v){for(var u="",l=0,d=t.length,b=/[A-Za-z_]/,m=/[A-Za-z0-9_]/;l<d;){var w=l,S=!1;if(t.charAt(l)==="$"&&l+1<d&&b.test(t.charAt(l+1)))S=!0,l++;else if(!b.test(t.charAt(l))){u+=t.charAt(l),l++;continue}for(var tr=l;l<d&&m.test(t.charAt(l));)l++;var ir=t.substring(tr,l);if(Object.prototype.hasOwnProperty.call(o,ir)&&l<d&&t.charAt(l)==="("){var Nr=R(t,l);if(Nr>=0){var xr=t.substring(w,Nr+1),Ve=A(xr,v);u+=Ve==null?"":String(Ve),l=Nr+1;continue}}u+=(S?"$":"")+ir}return u}function D(t,o){if(t.indexOf("%")<0)return t;for(var v="",u=0,l=t.length,d=/[A-Za-z_]/,b=/[A-Za-z0-9_]/;u<l;){if(t.charAt(u)!=="%"||u+1>=l||!d.test(t.charAt(u+1))){v+=t.charAt(u),u++;continue}for(var m=u+1,w=m;w<l&&b.test(t.charAt(w));)w++;var S=t.substring(m,w);if(w<l&&t.charAt(w)==="("&&Xe(S)){var tr=R(t,w);if(tr>=0){var ir=A(t.substring(u,tr+1),o);v+=ir==null?"":String(ir),u=tr+1;continue}}v+=t.substring(u,w),u=w}return v}function T(t,o){return t.replace(/\$([A-Za-z_][\w]*)/g,function(v,u,l,d){if(d.charAt(l+v.length)==="(")return v;if(Object.prototype.hasOwnProperty.call(o,u)){var b=o[u];return typeof b=="string"&&/^\$?[A-Za-z_][\w]*\s*\(/.test(b)?v:String(b)}return v})}function M(t,o){if(t==null||typeof t!="string")return t;o=o||{};var v={},u={};if(o.defines!=null)for(var l in o.defines)o.defines.hasOwnProperty(l)&&(v[l]=o.defines[l]);if(o.paramDefines!=null)for(var d in o.paramDefines)o.paramDefines.hasOwnProperty(d)&&(u[d]=o.paramDefines[d]);var b=t.split(`+`),m=[],w=/^\s*!define\s+([A-Za-z_][\w]*)\(([^)]*)\)(?:[ \t]+(.*))?$/,S=/^\s*!define\s+([A-Za-z_][\w]*)(?:[ \t]+(.*))?$/,tr=/^\s*!undef\s+([A-Za-z_][\w]*)\s*$/,ir=/^\s*!definelong\s+([A-Za-z_][\w]*)(?:\(([^)]*)\))?\s*$/,Nr=/^\s*!enddefinelong\s*$/,xr=/^\s*!procedure\s+\$([A-Za-z_][\w]*)(?:\(([^)]*)\))?\s*$/,Ve=/^\s*!end\s*(?:procedure|function)\s*$/i,qr=P(V(v)),$e=!1,se=null,Re=null,Ne=null;function Do(){var xa=Ne.join(`+`);Re!=null?(u[se]={params:Re,body:xa},v.hasOwnProperty(se)&&(delete v[se],qr=P(V(v)))):(v[se]=xa,qr=P(V(v)),u.hasOwnProperty(se)&&delete u[se]),$e=!1,se=null,Re=null,Ne=null}for(var Zo=0;Zo<b.length;Zo++){var uo=b[Zo],ke;if($e){if(Nr.test(uo)||Ve.test(uo)){Do(),m.push("");continue}Ne.push(uo),m.push("");continue}if((ke=uo.match(ir))!=null){$e=!0,se=ke[1],Re=ke[2]!=null?K(ke[2]):null,Ne=[],m.push("");continue}if((ke=uo.match(xr))!=null){$e=!0,se="$"+ke[1],Re=K(ke[2]||""),Ne=[],m.push("");continue}if((ke=uo.match(w))!=null){var Qt=ke[1],zo=ke[3]!=null?ke[3].replace(/\s+$/,""):"";u[Qt]={params:K(ke[2]),body:zo},v.hasOwnProperty(Qt)&&(delete v[Qt],qr=P(V(v))),m.push("");continue}if((ke=uo.match(S))!=null){var Lt=ke[2]!=null?ke[2].replace(/\s+$/,""):"";v[ke[1]]=Lt,qr=P(V(v)),u.hasOwnProperty(ke[1])&&delete u[ke[1]],m.push("");continue}if((ke=uo.match(tr))!=null){v.hasOwnProperty(ke[1])&&(delete v[ke[1]],qr=P(V(v))),u.hasOwnProperty(ke[1])&&delete u[ke[1]],m.push("");continue}var Ua=J(uo,v,qr);m.push(k(Ua,u))}$e&&Do(),o.defines==null&&(o.defines={});for(var Mt in o.defines)o.defines.hasOwnProperty(Mt)&&!v.hasOwnProperty(Mt)&&delete o.defines[Mt];for(var yt in v)v.hasOwnProperty(yt)&&(o.defines[yt]=v[yt]);o.paramDefines==null&&(o.paramDefines={});for(var Ta in o.paramDefines)o.paramDefines.hasOwnProperty(Ta)&&!u.hasOwnProperty(Ta)&&delete o.paramDefines[Ta];for(var hn in u)u.hasOwnProperty(hn)&&(o.paramDefines[hn]=u[hn]);return m.join(`+`)}function V(t){var o=[];for(var v in t)t.hasOwnProperty(v)&&o.push(v);return o}function A(t,o){return t==null?"":I(t,o||{}).value}function I(t,o){if(t==null)return{value:"",complete:!0};var v={text:String(t),pos:0,config:o||{},supported:!0};$(v);var u=W(v);return $(v),{value:u,complete:v.supported&&v.pos===v.text.length}}function $(t){for(;t.pos<t.text.length;){var o=t.text.charAt(t.pos);if(o===" "||o===" ")t.pos++;else break}}function c(t,o){return t.text.substr(t.pos,o.length)===o}function x(t,o){return c(t,o)?(t.pos+=o.length,!0):!1}function E(t){if(typeof t=="number")return t;if(typeof t=="boolean")return t?1:0;if(t==null||t==="")return 0;var o=parseFloat(t);return isNaN(o)?0:o}function z(t){return typeof t=="boolean"?t:typeof t=="number"?t!==0:t==null?!1:typeof t=="string"?!(t===""||t==="false"||t==="0"):!!t}function lr(t){return typeof t=="number"?!0:typeof t=="string"?/^-?\d+(?:\.\d+)?$/.test(t):!1}function rr(t,o,v){var u,l;switch(lr(t)&&lr(o)?(u=E(t),l=E(o)):(u=String(t),l=String(o)),v){case"==":return u===l;case"!=":return u!==l;case"<":return u<l;case">":return u>l;case"<=":return u<=l;case">=":return u>=l}return!1}function W(t){for(var o=dr(t);$(t),!!x(t,"||");){var v=dr(t);o=z(o)||z(v)}return o}function dr(t){for(var o=or(t);$(t),!!x(t,"&&");){var v=or(t);o=z(o)&&z(v)}return o}function or(t){var o=yr(t);$(t);for(var v=["==","!=","<=",">=","<",">"],u=0;u<v.length;u++)if(x(t,v[u])){var l=yr(t);return rr(o,l,v[u])}return o}function yr(t){for(var o=pr(t);;){$(t);var v=t.text.charAt(t.pos);if(v!=="+"&&v!=="-")break;t.pos++;var u=pr(t);v==="+"?typeof o=="string"||typeof u=="string"?o=String(o)+String(u):o=E(o)+E(u):o=E(o)-E(u)}return o}function pr(t){for(var o=Ur(t);;){$(t);var v=t.text.charAt(t.pos);if(v!=="*"&&v!=="/")break;t.pos++;var u=Ur(t);if(v==="*")o=E(o)*E(u);else{var l=E(u);o=l===0?0:E(o)/l}}return o}function Ur(t){$(t);var o=t.text.charAt(t.pos);return o==="-"?(t.pos++,-E(Ur(t))):o==="!"&&t.text.charAt(t.pos+1)!=="="?(t.pos++,!z(Ur(t))):Pr(t)}function Pr(t){if($(t),t.pos>=t.text.length)return"";var o=t.text.charAt(t.pos);if(o==="("){t.pos++;var v=W(t);return $(t),t.text.charAt(t.pos)===")"&&t.pos++,v}if(o==='"'||o==="'")return Te(t);if(o==="$"){t.pos++;var u=le(t);return u===""?"":($(t),t.text.charAt(t.pos)==="("?ie(u,t,!1):Ir(u,t.config))}if(o==="%"){var l=t.pos;t.pos++;var d=le(t);return d!==""&&t.text.charAt(t.pos)==="%"?(t.pos++,Ir(d,t.config)):d!==""&&t.text.charAt(t.pos)==="("?ie(d,t,!0):(t.pos=l,"")}if(o>="0"&&o<="9"||o===".")return Pe(t);if(o>="A"&&o<="Z"||o>="a"&&o<="z"||o==="_"){var b=le(t);return b==="true"?!0:b==="false"?!1:($(t),t.text.charAt(t.pos)==="("?ie(b,t,!1):t.config.variables!=null&&Object.prototype.hasOwnProperty.call(t.config.variables,b)?t.config.variables[b]:Er(b,t.config))}return""}function le(t){var o=t.pos,v=t.text.charAt(t.pos);if(!(v>="A"&&v<="Z"||v>="a"&&v<="z"||v==="_"))return"";for(t.pos++;t.pos<t.text.length&&(v=t.text.charAt(t.pos),v>="A"&&v<="Z"||v>="a"&&v<="z"||v>="0"&&v<="9"||v==="_");)t.pos++;return t.text.substring(o,t.pos)}function Pe(t){for(var o=t.pos,v=!1;t.pos<t.text.length;){var u=t.text.charAt(t.pos);if(u>="0"&&u<="9")t.pos++;else if(u==="."&&!v)v=!0,t.pos++;else break}var l=t.text.substring(o,t.pos),d=parseFloat(l);return isNaN(d)?0:d}function Te(t){var o=t.text.charAt(t.pos);t.pos++;for(var v="";t.pos<t.text.length;){var u=t.text.charAt(t.pos);if(u===o)return t.pos++,v;if(u==="\\"&&t.pos+1<t.text.length){v+=t.text.charAt(t.pos+1),t.pos+=2;continue}v+=u,t.pos++}return v}function Ir(t,o){return o.variables!=null&&Object.prototype.hasOwnProperty.call(o.variables,t)?o.variables[t]:""}function Er(t,o){return o.defines!=null&&Object.prototype.hasOwnProperty.call(o.defines,t)?o.defines[t]:""}function Kr(t,o){return!!(o.defines!=null&&Object.prototype.hasOwnProperty.call(o.defines,t)||o.paramDefines!=null&&Object.prototype.hasOwnProperty.call(o.paramDefines,t))}function Xe(t){return/^(?:newline|n|breakline|true|false|not|boolval|intval|string|strlen|size|upper|lower|substr|strpos|mod|function_exists|variable_exists|get_variable_value|set_variable_value|call_user_func|lighten|darken)$/.test(t)}function Be(t,o){var v=String(t??"").replace(/^\s+|\s+$/g,""),u=/^#?([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.exec(v);if(u==null)return v;var l=u[1].length===3?u[1].charAt(0)+u[1].charAt(0)+u[1].charAt(1)+u[1].charAt(1)+u[1].charAt(2)+u[1].charAt(2):u[1],d=parseInt(l.substring(0,2),16)/255,b=parseInt(l.substring(2,4),16)/255,m=parseInt(l.substring(4,6),16)/255,w=Math.min(d,Math.min(b,m)),S=Math.max(d,Math.max(b,m)),tr=0;S===w?tr=0:S===d?tr=(60*(b-m)/(S-w)+360)%360:S===b?tr=60*(m-d)/(S-w)+120:tr=60*(d-b)/(S-w)+240;var ir=(S+w)/2,Nr=0;S===w?Nr=0:ir<=.5?Nr=(S-w)/(S+w):Nr=(S-w)/(2-S-w);var xr=ir*100;xr+=xr*(o/100),xr<0&&(xr=0),xr>100&&(xr=100);var Ve=tr%360/360,qr=Nr,$e=xr/100,se=$e<.5?$e*(1+qr):$e+qr-qr*$e,Re=2*$e-se;function Ne(Zo,uo,ke){return ke<0&&(ke+=1),ke>1&&(ke-=1),6*ke<1?Zo+(uo-Zo)*6*ke:2*ke<1?uo:3*ke<2?Zo+(uo-Zo)*6*(2/3-ke):Zo}function Do(Zo){var uo=Math.round(Math.max(0,Math.min(1,Zo))*255),ke=uo.toString(16).toUpperCase();return ke.length<2?"0"+ke:ke}return"#"+Do(Ne(Re,se,Ve+1/3))+Do(Ne(Re,se,Ve))+Do(Ne(Re,se,Ve-1/3))}function ie(t,o,v){if(o.pos++,v&&(t==="newline"||t==="n"||t==="breakline")&&($(o),o.text.charAt(o.pos)===")"))return o.pos++,`+`;if(v&&(t==="true"||t==="false")&&($(o),o.text.charAt(o.pos)===")"))return o.pos++,t==="true";if(v&&Xe(t)){var u=o.pos-1,l=R(o.text,u);if(l<0)return o.supported=!1,o.pos=o.text.length,"";for(var d=o.text.substring(u+1,l),b=g(d),m=[],w=0;w<b.length;w++)m.push(ae(b[w],o.config));switch(o.pos=l+1,t){case"not":return!z(m[0]);case"boolval":return z(m[0]);case"intval":return parseInt(m[0],10)||0;case"string":return m[0]==null?"":String(m[0]);case"strlen":case"size":return m[0]==null?0:String(m[0]).length;case"upper":return m[0]==null?"":String(m[0]).toUpperCase();case"lower":return m[0]==null?"":String(m[0]).toLowerCase();case"substr":{var S=m[0]==null?"":String(m[0]),tr=E(m[1]);return m.length>2?S.substr(tr,E(m[2])):S.substr(tr)}case"strpos":return String(m[0]==null?"":m[0]).indexOf(String(m[1]==null?"":m[1]));case"mod":{var ir=E(m[1]);return ir===0?0:E(m[0])%ir}case"function_exists":{var Nr=String(m[0]||"").replace(/^[\$%]/,"");return Xe(Nr)||o.config.functions!=null&&Object.prototype.hasOwnProperty.call(o.config.functions,Nr)}case"variable_exists":{var xr=String(m[0]||"").replace(/^\$/,"");return o.config.variables!=null&&Object.prototype.hasOwnProperty.call(o.config.variables,xr)}case"get_variable_value":{var Ve=String(m[0]||"").replace(/^\$/,"");return Ir(Ve,o.config)}case"set_variable_value":{var qr=String(m[0]||"").replace(/^\$/,"");return typeof o.config.setGlobalVariable=="function"&&o.config.setGlobalVariable(qr,m.length>1?m[1]:""),""}case"call_user_func":{var $e=String(m.shift()||"").replace(/^\$/,"");return typeof o.config.callUserFunction=="function"?o.config.callUserFunction($e,m,{}):""}case"lighten":return Be(m[0],E(m[1]));case"darken":return Be(m[0],-E(m[1]))}}if(!v&&t==="defined"){$(o);var se=le(o);return $(o),o.text.charAt(o.pos)===")"&&o.pos++,Kr(se,o.config)}if(!v&&o.config.functions!=null&&Object.prototype.hasOwnProperty.call(o.config.functions,t)&&typeof o.config.callUserFunction=="function"){var Re=o.pos-1,Ne=R(o.text,Re);if(Ne<0)return o.supported=!1,o.pos=o.text.length,"";for(var Do=o.text.substring(Re+1,Ne),Zo=o.config.functions[t],uo=g(Do),ke=[],Qt={},zo=0;zo<uo.length;zo++){var Lt=uo[zo].match(/^\s*\$?([A-Za-z_][\w]*)\s*=(?!=)\s*(.*)$/);Lt!=null?Qt[Lt[1]]=ae(Lt[2],o.config):ke.push(ae(uo[zo],o.config))}return o.pos=Ne+1,o.config.callUserFunction(t,ke,Qt,Zo)}for(o.supported=!1,$(o);o.pos<o.text.length&&o.text.charAt(o.pos)!==")";)W(o),$(o),o.text.charAt(o.pos)===","&&(o.pos++,$(o));return o.text.charAt(o.pos)===")"&&o.pos++,""}function Z(t,o){if(t==null||typeof t!="string")return t;o=o||{};var v={},u={},l={},d={};if(o.defines!=null)for(var b in o.defines)o.defines.hasOwnProperty(b)&&(v[b]=o.defines[b]);if(o.paramDefines!=null)for(var m in o.paramDefines)o.paramDefines.hasOwnProperty(m)&&(u[m]=o.paramDefines[m]);if(o.functions!=null)for(var w in o.functions)o.functions.hasOwnProperty(w)&&(l[w]=o.functions[w]);if(o.variables!=null)for(var S in o.variables)o.variables.hasOwnProperty(S)&&(d[S]=o.variables[S]);var tr=o._functionScope||null,ir=tr!=null?tr.globals:d,Nr=tr!=null?tr.localNames:null,xr=o._preprocessorRuntime;xr==null&&(xr={steps:0,outputChars:0,callDepth:0,maxSteps:o.maxPreprocessorSteps!=null?o.maxPreprocessorSteps:ye,maxOutputChars:o.maxPreprocessorOutputChars!=null?o.maxPreprocessorOutputChars:_,maxCallDepth:o.maxFunctionCallDepth!=null?o.maxFunctionCallDepth:Ko,exhausted:!1,warningKeys:{},warnings:o.preprocessorWarnings||[]}),o._preprocessorRuntime=xr,(o.preprocessorWarnings!=null||tr!=null)&&(o.preprocessorWarnings=xr.warnings);var Ve=t.split(`+`),qr=[];function $e(dn,yl){xr.warningKeys.hasOwnProperty(dn)||(xr.warningKeys[dn]=!0,xr.warnings.push(yl),o.preprocessorWarnings=xr.warnings)}qr.push=function(dn){var yl=dn==null?0:String(dn).length;return xr.outputChars+=yl+1,xr.outputChars>xr.maxOutputChars?(xr.exhausted=!0,$e("output-budget","preprocessor output exceeded "+xr.maxOutputChars+" characters"),qr.length):Array.prototype.push.call(qr,dn)};var se=[],Re=!0,Ne=[],Do=!1,Zo=o.maxLoopIterations!=null?o.maxLoopIterations:ee,uo=!1,ke=null,Qt=null,zo=null,Lt=!1,Ua=null,Mt=null,yt=!1,Ta=/^(\s*)!\$([A-Za-z_][\w]*)\s*=\s*(.*)$/,hn=/^\s*!local\s+\$([A-Za-z_][\w]*)\s*=\s*(.*)$/i,xa=/^\s*!global\s+\$([A-Za-z_][\w]*)\s*=\s*(.*)$/i,ze=/^\s*!define\s+([A-Za-z_][\w]*)\(([^)]*)\)(?:[ \t]+(.*))?$/,Aa=/^\s*!define\s+([A-Za-z_][\w]*)(?:[ \t]+(.*))?$/,Gt=/^\s*!undef\s+([A-Za-z_][\w]*)\s*$/,ra=/^\s*!definelong\s+([A-Za-z_][\w]*)(?:\(([^)]*)\))?\s*$/,Sa=/^\s*!enddefinelong\s*$/,Wn=/^\s*!(?:(unquoted)\s+)?procedure\s+\$([A-Za-z_][\w]*)(?:\(([^)]*)\))?\s*$/i,xn=/^\s*!end\s*(?:procedure|function)\s*$/i,Sn=/^\s*!end\s*(?:function|procedure)\s*$/i,Kn=/^\s*!return\b(.*)$/i,zn=/^\s*!if\b(.*)$/,un=/^\s*!elseif\b(.*)$/,sl=/^\s*!else\s*$/,yn=/^\s*!endif\s*$/,vl=/^\s*!ifdef\s+([A-Za-z_][\w]*)\s*$/,Hn=/^\s*!ifndef\s+([A-Za-z_][\w]*)\s*$/,ul=/^\s*!while\b(.*)$/,pl=/^\s*!endwhile\s*$/,Xn=/^\s*!foreach\s+\$([A-Za-z_][\w]*)\s+(?:in|from)\s+(.*)$/,ol=/^\s*!end(?:for|foreach)\s*$/,fl=/^\s*!exit\b(.*)$/,fi=/^\s*!log\b(.*)$/,_n=/^\s*!assert\b(.*)$/,Ll=/^\s*!theme\s+(\S+)(?:\s+from\s+(.*?))?\s*$/i,ml=P(V(v));function Dl(){var dn=zo.join(`+`);Qt!=null?(u[ke]={params:Qt,body:dn},v.hasOwnProperty(ke)&&(delete v[ke],ml=P(V(v)))):(v[ke]=dn,ml=P(V(v)),u.hasOwnProperty(ke)&&delete u[ke]),uo=!1,ke=null,Qt=null,zo=null}function qn(dn,yl,Gi){l[dn.name]={params:dn.params,body:yl.slice(),unquoted:dn.unquoted,procedure:dn.procedure===!0,declarationLine:Gi}}function Rl(){if(tr!=null)for(var dn in ir)ir.hasOwnProperty(dn)&&!Nr.hasOwnProperty(dn)&&(d[dn]=ir[dn])}function Qn(dn,yl,Gi){if(tr==null){d[dn]=yl;return}if(Gi==="global"){ir[dn]=yl,Nr.hasOwnProperty(dn)||(d[dn]=yl);return}if(Gi==="local"||Nr.hasOwnProperty(dn)){Nr[dn]=!0,d[dn]=yl;return}if(ir.hasOwnProperty(dn)){ir[dn]=yl,d[dn]=yl;return}Nr[dn]=!0,d[dn]=yl}function Ca(dn,yl,Gi){if(!l.hasOwnProperty(dn))return"";if(xr.callDepth>=xr.maxCallDepth)return $e("call-depth","return-function call depth exceeded "+xr.maxCallDepth+" while calling "+dn+"()"),"";var vs=l[dn],ls={},Ls={};for(var ps in ir)ir.hasOwnProperty(ps)&&(ls[ps]=ir[ps]);for(var Vi=0;Vi<vs.params.length;Vi++){var Ji=vs.params[Vi],is;Gi.hasOwnProperty(Ji.name)?is=Gi[Ji.name]:Vi<yl.length?is=yl[Vi]:Ji.defaultExpression!=null?is=ae(Ji.defaultExpression,{defines:v,paramDefines:u,variables:ls,functions:l,callUserFunction:Ca,setGlobalVariable:function(Gs,Uu){ir[Gs]=Uu}}):is="",Ls[Ji.name]=!0,ls[Ji.name]=is}var Ol={defines:v,paramDefines:u,functions:l,variables:ls,maxLoopIterations:Zo,_preprocessorRuntime:xr,_functionScope:{globals:ir,localNames:Ls},preprocessorWarnings:xr.warnings,preprocessorLogs:o.preprocessorLogs||[]};xr.callDepth++;var ru;try{ru=Z(vs.body.join(`+`),Ol)}finally{xr.callDepth--}return o.preprocessorLogs=Ol.preprocessorLogs,xr.warnings.length>0&&(o.preprocessorWarnings=xr.warnings),Rl(),vs.procedure?ru.split(`+`).filter(function(Gs){return Gs.length>0}).join(`+`):Ol.functionReturned?Ol.functionReturn:""}function Qa(){return{defines:v,paramDefines:u,variables:d,functions:l,callUserFunction:Ca,setGlobalVariable:function(dn,yl){Qn(dn,yl,"global")}}}for(var gn=0;gn<Ve.length&&!xr.exhausted;gn++){if(xr.steps++,xr.steps>xr.maxSteps){xr.exhausted=!0,$e("step-budget","preprocessor execution exceeded "+xr.maxSteps+" steps");break}var In=Ve[gn],Ga=Tr(In,d),Fo;if(Lt){if(Sn.test(In)){yt&&qn(Ua,Mt,Ua.declarationLine),Lt=!1,Ua=null,Mt=null,yt=!1,qr.push("");continue}Mt.push(In),qr.push("");continue}if(uo){if(Sa.test(Ga)||xn.test(Ga)){Dl(),qr.push("");continue}zo.push(Ga),qr.push("");continue}var vn=C(In);if(vn!=null){vn.declarationLine=gn+1,vn.inlineReturn!=null?Re&&qn(vn,["!return "+vn.inlineReturn],gn+1):(Lt=!0,Ua=vn,Mt=[],yt=Re),qr.push("");continue}if((Fo=Ga.match(zn))!=null){var kl=Re?z(A(Fo[1],Qa())):!1;se.push({parentOutputting:Re,hasMatched:kl}),Re=kl,qr.push("");continue}if((Fo=Ga.match(vl))!=null){var Wl=Re&&(v.hasOwnProperty(Fo[1])||u.hasOwnProperty(Fo[1]));se.push({parentOutputting:Re,hasMatched:Wl}),Re=Wl,qr.push("");continue}if((Fo=Ga.match(Hn))!=null){var oi=Re&&!(v.hasOwnProperty(Fo[1])||u.hasOwnProperty(Fo[1]));se.push({parentOutputting:Re,hasMatched:oi}),Re=oi,qr.push("");continue}if((Fo=Ga.match(un))!=null){if(se.length>0){var Ul=se[se.length-1];if(Ul.hasMatched)Re=!1;else{var di=Ul.parentOutputting?z(A(Fo[1],Qa())):!1;di?(Ul.hasMatched=!0,Re=!0):Re=!1}}qr.push("");continue}if(sl.test(Ga)){if(se.length>0){var Bi=se[se.length-1];Bi.hasMatched?Re=!1:(Bi.hasMatched=!0,Re=Bi.parentOutputting)}qr.push("");continue}if(yn.test(Ga)){if(se.length>0){var Bl=se.pop();Re=Bl.parentOutputting}qr.push("");continue}if((Fo=Ga.match(ul))!=null){var ci=Re,Xl={type:"while",startIdx:gn,cond:Fo[1],iters:0,outerOutputting:ci,active:!1};if(ci){var gi=z(A(Fo[1],Qa()));Xl.active=gi,Re=gi}Ne.push(Xl),qr.push("");continue}if(pl.test(Ga)){var fn=Ne.length>0&&Ne[Ne.length-1].type==="while"?Ne[Ne.length-1]:null;if(fn==null){qr.push("");continue}if(!fn.active){Re=fn.outerOutputting,Ne.pop(),qr.push("");continue}if(fn.iters++,fn.iters>=Zo){o.preprocessorWarnings=o.preprocessorWarnings||[],o.preprocessorWarnings.push("!while exceeded "+Zo+" iterations at line "+(fn.startIdx+1)),Re=fn.outerOutputting,Ne.pop(),qr.push("");continue}var ti=Ve[fn.startIdx],ai=Tr(ti,d).match(ul),Gl=ai!=null?ai[1]:"",yi=z(A(Gl,Qa()));if(yi){qr.push(""),gn=fn.startIdx;continue}Re=fn.outerOutputting,Ne.pop(),qr.push("");continue}if((Fo=Ga.match(Xn))!=null){var Ai=Re,ni=Fo[1],wl=s(Fo[2]),mi={type:"foreach",startIdx:gn,varName:ni,list:wl,index:0,iters:0,outerOutputting:Ai,active:!1};Ai&&wl.length>0?(Qn(ni,wl[0],null),mi.active=!0,Re=!0):Re=!1,Ne.push(mi),qr.push("");continue}if(ol.test(Ga)){var dl=Ne.length>0&&Ne[Ne.length-1].type==="foreach"?Ne[Ne.length-1]:null;if(dl==null){qr.push("");continue}if(!dl.active){Re=dl.outerOutputting,Ne.pop(),qr.push("");continue}if(dl.iters++,dl.index++,dl.iters>=Zo){o.preprocessorWarnings=o.preprocessorWarnings||[],o.preprocessorWarnings.push("!foreach exceeded "+Zo+" iterations at line "+(dl.startIdx+1)),Re=dl.outerOutputting,Ne.pop(),qr.push("");continue}if(dl.index<dl.list.length){Qn(dl.varName,dl.list[dl.index],null),qr.push(""),gn=dl.startIdx;continue}Re=dl.outerOutputting,Ne.pop(),qr.push("");continue}if(!Re){qr.push("");continue}if((Fo=Ga.match(Ll))!=null){var Ei=T(Fo[1],d).replace(/^["']|["']$/g,""),Ii=Fo[2]==null?Fu.get(Ei):null;if(Ii==null){$e("theme:"+Ei.toLowerCase(),'theme "'+Ei+'" is not bundled'+(Fo[2]!=null?" (external themes are not loaded)":"")+"; the default look is used"),qr.push("");continue}var Di=Ii.split(`+`);Array.prototype.splice.apply(Ve,[gn+1,0].concat(Di)),qr.push("");continue}if(tr!=null&&(Fo=Ga.match(Kn))!=null){var Ni=Fo[1].replace(/^\s+|\s+$/g,"");o.functionReturn=Ni.length>0?A(Ni,Qa()):"",o.functionReturned=!0,qr.push("");break}if(fl.test(Ga)){Do=!0,qr.push("");break}if((Fo=Ga.match(fi))!=null){var li=Fo[1].replace(/^\s+|\s+$/g,""),as=li.length>0?A(li,Qa()):"";o.preprocessorLogs=o.preprocessorLogs||[],o.preprocessorLogs.push(String(as)),qr.push("");continue}if((Fo=Ga.match(_n))!=null){var hs=Fo[1].replace(/^\s+|\s+$/g,""),Is=hs.length>0?A(hs,Qa()):!1;z(Is)||(o.preprocessorWarnings=o.preprocessorWarnings||[],o.preprocessorWarnings.push("!assert failed: "+hs+" (line "+(gn+1)+")")),qr.push("");continue}if((Fo=Ga.match(hn))!=null){Qn(Fo[1],ae(Fo[2],Qa()),"local"),qr.push("");continue}if((Fo=Ga.match(xa))!=null){Qn(Fo[1],ae(Fo[2],Qa()),"global"),qr.push("");continue}if((Fo=Ga.match(Ta))!=null){Qn(Fo[2],ae(Fo[3],Qa()),null),qr.push("");continue}if((Fo=Ga.match(ra))!=null){uo=!0,ke=Fo[1],Qt=Fo[2]!=null?K(Fo[2]):null,zo=[],qr.push("");continue}if((Fo=In.match(Wn))!=null){Lt=!0,Ua={name:Fo[2],params:y(Fo[3]||""),unquoted:Fo[1]!=null,inlineReturn:null,procedure:!0,declarationLine:gn+1},Mt=[],yt=Re,qr.push("");continue}if((Fo=Ga.match(ze))!=null){var Js=Fo[1],qi=Fo[3]!=null?Fo[3].replace(/\s+$/,""):"";u[Js]={params:K(Fo[2]),body:qi},v.hasOwnProperty(Js)&&(delete v[Js],ml=P(V(v))),qr.push("");continue}if((Fo=Ga.match(Aa))!=null){var Yf=Fo[2]!=null?Fo[2].replace(/\s+$/,""):"";v[Fo[1]]=Yf,ml=P(V(v)),u.hasOwnProperty(Fo[1])&&delete u[Fo[1]],qr.push("");continue}if((Fo=Ga.match(Gt))!=null){v.hasOwnProperty(Fo[1])&&(delete v[Fo[1]],ml=P(V(v))),u.hasOwnProperty(Fo[1])&&delete u[Fo[1]],qr.push("");continue}var Li=F(Ga,l,Qa());Li=D(Li,Qa()),Li=k(Li,u),Li=J(Li,v,ml),qr.push(T(Li,d))}Lt&&yt&&qn(Ua,Mt,Ua.declarationLine),uo&&Dl(),Do&&(o.exited=!0),o.defines==null&&(o.defines={});for(var Zi in o.defines)o.defines.hasOwnProperty(Zi)&&!v.hasOwnProperty(Zi)&&delete o.defines[Zi];for(var ji in v)v.hasOwnProperty(ji)&&(o.defines[ji]=v[ji]);o.paramDefines==null&&(o.paramDefines={});for(var Ns in o.paramDefines)o.paramDefines.hasOwnProperty(Ns)&&!u.hasOwnProperty(Ns)&&delete o.paramDefines[Ns];for(var Tl in u)u.hasOwnProperty(Tl)&&(o.paramDefines[Tl]=u[Tl]);o.functions==null&&(o.functions={});for(var ns in l)l.hasOwnProperty(ns)&&(o.functions[ns]=l[ns]);o.variables==null&&(o.variables={});for(var $s in d)d.hasOwnProperty($s)&&(o.variables[$s]=d[$s]);var Qs=qr.join(`+`);return tr==null&&!o._preserveRuntime&&delete o._preprocessorRuntime,Qs}var oe=16,ee=1024,Ko=64,ye=5e5,_=32*1024*1024;function O(t,o){if(t==null||typeof t!="string")return t;o=o||{},delete o._preprocessorRuntime,o._preserveRuntime=!0;for(var v=t,u=null,l=0;v!==u&&l<oe;)u=v,v=Wr(v),v=Z(v,o),l++;if(delete o._preprocessorRuntime,delete o._preserveRuntime,v!==u)throw new Error("PlantUmlPreprocessor: expansion did not converge after "+oe+" iterations (possible cycle in defines / variables)");return v}return{run:O,stripComments:Wr,expandVariables:fr,expandDefines:M,expandDirectives:Z,evaluateExpression:A,parseScalarValue:vr,normaliseLineEndings:hr}})();var Cs=(function(){var hr={ditaa:{wrapper:"@startditaa",grounds:["licence","out-of-domain"],summary:"ditaa is a separate LGPL-licensed project, not PlantUML diagram syntax",detail:`ditaa ("DIagrams Through Ascii Art") is an independent tool by Efstathios Sideris that converts ASCII-art drawings into bitmaps. Its sources are present in the plantuml-asl jar under org/stathissideris/ascii2image/, but each file carries an intact LGPL-3.0-or-later notice from its author underneath the Apache-2.0 header that upstream's build prepends \u2014 conflicting notices this port will not rely on. Upstream's own Apache build refuses @startditaa for the same reason. Nothing about it is PlantUML diagram language.`},dot:{wrapper:"@startdot",grounds:["out-of-domain"],summary:"DOT is GraphViz's own language, rendered by a layout engine this port does not ship",detail:"A @startdot block is raw GraphViz DOT passed straight through to GraphViz \u2014 a different language with its own grammar and its own layout engine. PlantUML delegates it either to a native dot binary or to Smetana, its Java translation of GraphViz. This port is browser JavaScript with no GraphViz available and no intention of carrying a layout engine, so there is nothing to render DOT with. Supporting it would mean porting GraphViz, not PlantUML."},jcckit:{wrapper:"@startjcckit",grounds:["licence","out-of-domain"],summary:"JCCKit is a separate charting library, and upstream has removed it",detail:'JCCKit is an independent Java charting toolkit that PlantUML once bundled to draw plots. It is gone from the 1.2026.6 artifacts entirely \u2014 neither edition contains it, and upstream answers @startjcckit with "Diagram not supported by this release of PlantUML". Its licensing has the same third-party-relabelling problem as ditaa, and charting is not the PlantUML diagram language, so there is nothing here worth reviving.'},sudoku:{wrapper:"@startsudoku",grounds:["out-of-domain"],summary:"a Sudoku generator is not a diagram language feature, and upstream has removed it",detail:'PlantUML could once generate Sudoku grids. It is gone from the 1.2026.6 artifacts \u2014 upstream answers @startsudoku with "Diagram not supported by this release of PlantUML" \u2014 so its licensing could not be re-verified from the artifacts, and it does not matter: a puzzle generator has nothing to do with drawing diagrams from a modelling language.'}},G={};for(var Wr in hr)Object.prototype.hasOwnProperty.call(hr,Wr)&&(G[hr[Wr].wrapper]=Wr);function vr(P){return P!=null&&Object.prototype.hasOwnProperty.call(hr,P)}function ae(P){if(!vr(P))return null;var J=hr[P];return{type:P,wrapper:J.wrapper,grounds:J.grounds.slice(),summary:J.summary,detail:J.detail}}function Tr(P){return P!=null&&Object.prototype.hasOwnProperty.call(G,P)?G[P]:null}function fr(){var P=[];for(var J in hr)Object.prototype.hasOwnProperty.call(hr,J)&&P.push(J);return P.sort()}function Ar(P){var J=ae(P);if(J==null)return new Error('PlantUML: no parser registered for type "'+P+'"');var K=new Error("PlantUML: "+J.wrapper+" is not supported");return K.plantUmlUnsupported=!0,K.diagramType=P,K.grounds=J.grounds,K}return{FAMILIES:hr,isUnsupported:vr,describe:ae,typeForWrapper:Tr,list:fr,unsupportedError:Ar}})();var bu=(function(){var hr={};function G(R,g){var y=Array.prototype.slice.call(arguments,2),C=R.toLowerCase();hr.hasOwnProperty(C)||(hr[C]=[]),hr[C].push({names:y,prop:g})}function Wr(R){var g=Array.prototype.slice.call(arguments,1);G.apply(null,[R+"FontSize","FontSize"].concat(g)),G.apply(null,[R+"FontStyle","FontStyle"].concat(g)),G.apply(null,[R+"FontColor","FontColor"].concat(g)),G.apply(null,[R+"FontName","FontName"].concat(g))}function vr(R){var g=R.replace(/_/g,"");G(g+"BackgroundColor","BackGroundColor",R),G(g+"BorderColor","LineColor",R),G(g+"BorderThickness","LineThickness",R),G(g+"RoundCorner","RoundCorner",R),G(g+"DiagonalCorner","DiagonalCorner",R),G(g+"BorderStyle","LineStyle",R),Wr(g,R),G(g+"Shadowing","Shadowing",R),G(g+"StereotypeFontSize","FontSize","stereotype",R),G(g+"StereotypeFontStyle","FontStyle","stereotype",R),G(g+"StereotypeFontColor","FontColor","stereotype",R),G(g+"StereotypeFontName","FontName","stereotype",R)}G("participantClickableBackgroundColor","BackGroundColor","participant","clickable"),G("participantClickableBorderColor","LineColor","participant","clickable"),vr("participant"),vr("boundary"),vr("control"),vr("collections"),vr("actor"),vr("database"),vr("entity"),Wr("header","document","header"),Wr("footer","document","footer"),Wr("caption","document","caption"),G("defaultFontSize","FontSize","element"),G("sequenceStereotypeFontSize","FontSize","stereotype"),G("sequenceStereotypeFontStyle","FontStyle","stereotype"),G("sequenceStereotypeFontColor","FontColor","stereotype"),G("sequenceStereotypeFontName","FontName","stereotype"),G("SequenceReferenceBorderColor","LineColor","reference"),G("SequenceReferenceBorderColor","LineColor","referenceHeader"),G("SequenceReferenceBackgroundColor","BackGroundColor","reference"),G("sequenceReferenceHeaderBackgroundColor","BackGroundColor","referenceHeader"),Wr("sequenceReference","reference"),Wr("sequenceReference","referenceHeader"),G("sequenceGroupBorderThickness","LineThickness","group"),G("SequenceGroupBorderColor","LineColor","group"),G("SequenceGroupBorderColor","LineColor","groupHeader"),G("SequenceGroupBackgroundColor","BackGroundColor","groupHeader"),Wr("SequenceGroup","group"),Wr("SequenceGroupHeader","groupHeader"),G("SequenceBoxBorderColor","LineColor","box"),G("SequenceBoxBackgroundColor","BackGroundColor","box"),G("SequenceBoxFontColor","FontColor","box"),G("SequenceLifeLineBorderColor","LineColor","lifeLine"),G("SequenceLifeLineBackgroundColor","BackGroundColor","activationBox"),Wr("sequenceDelay","delay"),G("sequenceDelayBorderColor","LineColor","delay"),G("sequenceDividerBackgroundColor","BackGroundColor","separator"),G("sequenceDividerBorderColor","LineColor","separator"),Wr("sequenceDivider","separator"),G("sequenceDividerBorderThickness","LineThickness","separator"),G("SequenceMessageAlignment","HorizontalAlignment","arrow"),Wr("note","note"),G("noteBorderThickness","LineThickness","note"),G("noteBorderColor","LineColor","note"),G("noteBackgroundColor","BackGroundColor","note"),G("packageBackgroundColor","BackGroundColor","group"),G("packageBorderColor","LineColor","group"),vr("package"),G("PartitionBorderColor","LineColor","composite"),G("PartitionBackgroundColor","BackGroundColor","composite"),Wr("Partition","composite"),G("hyperlinkColor","HyperLinkColor","root"),G("activityStartColor","BackGroundColor","circle","start"),G("activityEndColor","LineColor","circle","end"),G("activityStopColor","LineColor","circle","stop"),G("activityBarColor","BackGroundColor","activityBar"),G("activityBorderColor","LineColor","activity"),G("activityBorderThickness","LineThickness","activity"),G("activityBackgroundColor","BackGroundColor","activity"),Wr("activity","activity"),G("activityDiamondBackgroundColor","BackGroundColor","diamond"),G("activityDiamondBorderColor","LineColor","diamond"),Wr("activityDiamond","diamond"),Wr("arrow","arrow"),G("arrowThickness","LineThickness","arrow"),G("arrowColor","LineColor","arrow"),G("arrowStyle","LineStyle","arrow"),G("arrowHeadColor","HeadColor","arrow"),G("defaulttextalignment","HorizontalAlignment","root"),G("defaultFontName","FontName","root"),G("defaultFontColor","FontColor","root"),Wr("SwimlaneTitle","swimlane"),G("SwimlaneTitleBackgroundColor","BackGroundColor","swimlane"),G("SwimlaneBorderColor","LineColor","swimlane"),G("SwimlaneBorderThickness","LineThickness","swimlane"),G("roundCorner","RoundCorner","root"),G("titleBorderThickness","LineThickness","title"),G("titleBorderColor","LineColor","title"),G("titleBackgroundColor","BackGroundColor","title"),G("titleBorderRoundCorner","RoundCorner","title"),Wr("title","document","title"),G("legendBorderThickness","LineThickness","legend"),G("legendBorderColor","LineColor","legend"),G("legendBackgroundColor","BackGroundColor","legend"),G("legendBorderRoundCorner","RoundCorner","legend"),Wr("legend","legend"),G("noteTextAlignment","HorizontalAlignment","note"),G("BackgroundColor","BackGroundColor","document"),G("classBackgroundColor","BackGroundColor","element","class"),G("classBorderColor","LineColor","element","class"),G("classFontSize","FontSize","element","class","header"),G("classFontStyle","FontStyle","element","class","header"),G("classFontColor","FontColor","element","class","header"),G("classFontName","FontName","element","class","header"),G("classAttributeFontSize","FontSize","element","class"),G("classAttributeFontStyle","FontStyle","element","class"),G("classAttributeFontColor","FontColor","element","class"),G("classAttributeFontName","FontName","element","class"),G("classBorderThickness","LineThickness","element","class"),G("classHeaderBackgroundColor","BackGroundColor","element","class","header"),G("objectBackgroundColor","BackGroundColor","object"),G("objectBorderColor","LineColor","object"),Wr("object","object"),Wr("objectAttribute","object"),G("objectBorderThickness","LineThickness","object"),G("stateBackgroundColor","BackGroundColor","state"),G("stateBorderColor","LineColor","state"),Wr("state","state"),Wr("stateAttribute","state"),G("stateBorderThickness","LineThickness","state"),vr("agent"),vr("artifact"),vr("card"),vr("interface"),vr("cloud"),vr("component"),vr("file"),vr("folder"),vr("frame"),vr("hexagon"),vr("node"),vr("person"),vr("queue"),vr("rectangle"),vr("stack"),vr("storage"),vr("usecase"),vr("map"),vr("archimate"),vr("hnote"),vr("rnote"),G("IconPrivateColor","LineColor","visibilityIcon","private"),G("IconPrivateBackgroundColor","BackGroundColor","visibilityIcon","private"),G("IconPackageColor","LineColor","visibilityIcon","package"),G("IconPackageBackgroundColor","BackGroundColor","visibilityIcon","package"),G("IconProtectedColor","LineColor","visibilityIcon","protected"),G("IconProtectedBackgroundColor","BackGroundColor","visibilityIcon","protected"),G("IconPublicColor","LineColor","visibilityIcon","public"),G("IconPublicBackgroundColor","BackGroundColor","visibilityIcon","public"),G("MinClassWidth","MinimumWidth"),G("wrapWidth","MaximumWidth","element"),G("HyperlinkUnderline","HyperlinkUnderlineThickness","element"),G("StereotypeAlignment","HorizontalAlignment","stereotype"),G("stereotypeABackgroundColor","BackGroundColor","spotAbstractClass"),G("stereotypeABorderColor","LineColor","spotAbstractClass"),G("stereotypeCBackgroundColor","BackGroundColor","spotClass"),G("stereotypeCBorderColor","LineColor","spotClass"),G("stereotypeEBackgroundColor","BackGroundColor","spotEnum"),G("stereotypeEBorderColor","LineColor","spotEnum"),G("stereotypeIBackgroundColor","BackGroundColor","spotInterface"),G("stereotypeIBorderColor","LineColor","spotInterface"),G("stereotypeNBackgroundColor","BackGroundColor","spotAnnotation"),G("stereotypeNBorderColor","LineColor","spotAnnotation"),G("stereotypeRBackgroundColor","BackGroundColor","spotRecord"),G("stereotypeRBorderColor","LineColor","spotRecord"),G("stereotypeDBackgroundColor","BackGroundColor","spotDataClass"),G("stereotypeDBorderColor","LineColor","spotDataClass");var ae=/<<(.*?)>>/g;function Tr(R){R=String(R).replace(/^\s+|\s+$/g,"").toLowerCase(),R=R.replace(/_|\./g,""),R=R.replace(/sequence(participant|actor)/g,"$1"),R=R.replace(/(activity|class|component|object|sequence|state|usecase)arrow/g,"arrow"),R=R.replace(/align$/,"alignment");var g=[],y;for(ae.lastIndex=0;(y=ae.exec(R))!=null;)g.push(R.replace(/<<(.*?)>>/g,"")+"<<"+y[1]+">>");return g.length===0&&g.push(R),g}function fr(R){var g=R.toLowerCase();return g==="false"||g==="no"?"0":g==="true"||g==="yes"?"3":R}function Ar(R){return R.indexOf(";")>=0||R.indexOf("text:")===0}function P(R,g,y){var C=null;if(R.indexOf("<<")>=0){var s=R.split(/[<>]+/);R=s[0],C=s.length>1&&s[1]!=null?s[1].replace(/^\s+|\s+$/g,""):null}var i=C?C.split("&"):[];function k($,c,x){var E={};E[$]=c,y.addRule(x,i,E)}g=String(g),/shadowing$/.test(R)?g.toLowerCase()==="false"?g="0":g.toLowerCase()==="true"&&(g="3"):R==="hyperlinkunderline"&&(g.toLowerCase()==="false"&&(g="0"),g.toLowerCase()==="true"&&(g="1")),g.toLowerCase()==="right:right"&&(g="right"),g.toLowerCase()==="dotted"&&(g="1;3"),g.toLowerCase()==="dashed"&&(g="7;7");var F=hr[R.toLowerCase()];if(F==null){R==="shadowing"?k("Shadowing",fr(g),["root"]):R==="noteshadowing"&&k("Shadowing",fr(g),["root","note"]);return}function D($){var c;if($.indexOf("text:")===0){var x=$.split(":")[1];for(c=0;c<F.length;c++)k("FontColor",x,F[c].names)}else if($.indexOf("line.dotted")===0)for(c=0;c<F.length;c++)k("LineStyle","1;3",F[c].names);else if($.indexOf("line.dashed")===0)for(c=0;c<F.length;c++)k("LineStyle","7;7",F[c].names);else if($.toLowerCase().indexOf("bold")>=0)for(c=0;c<F.length;c++)k("LineThickness","2",F[c].names)}if(Ar(g))if(g.indexOf(";")>=0){g.charAt(0)===";"&&(g=" "+g);for(var T=g.split(";"),M=[],V=0;V<T.length;V++)T[V].length>0&&M.push(T[V]);g=M.length>0?M[0]:" ";for(var A=1;A<M.length;A++)D(M[A])}else{D(g);return}if(g!==" ")for(var I=0;I<F.length;I++)k(F[I].prop,g,F[I].names)}function J(R,g,y){for(var C=Tr(R),s=String(g??"").replace(/^\s+|\s+$/g,""),i=0;i<C.length;i++)y.skinparams[C[i]]=s,P(C[i],s,y)}function K(R){return hr.hasOwnProperty(String(R).toLowerCase().replace(/<<.*$/,""))}return{cleanKeys:Tr,apply:J,isKnown:K}})();var nt=(function(){for(var hr=["Shadowing","FontName","FontColor","FontSize","FontStyle","FontWeight","BackGroundColor","RoundCorner","LineThickness","DiagonalCorner","HyperLinkColor","HyperlinkUnderlineStyle","HyperlinkUnderlineThickness","HeadColor","LineColor","LineStyle","Padding","Margin","MaximumWidth","MinimumWidth","ExportedName","Image","HorizontalAlignment","ShowStereotype","ImagePosition","MarkerShape","MarkerSize","MarkerColor","BarWidth","Width"],G={},Wr=0;Wr<hr.length;Wr++)G[hr[Wr].toLowerCase()]=hr[Wr];for(var vr="action activationBox activity activityBar activityDiagram actor agent analog archimate arrow artifact binary body boundary box boxless business caption card cardinality circle classDiagram class clickable cloud closed collection collections component composite robust chenAttribute chenEerDiagram chenEntity chenRelationship concise clock componentDiagram constraintArrow control database day delay description destroy diamond document ebnf element entity end start stop file filesDiagram folder footer frame ganttDiagram generic goto group groupHeader header hexagon highlight hnote interface json jsonDiagram gitDiagram label leafNode legend lifeLine mainframe map milestone mindmapDiagram month name network newpage node note nwdiagDiagram packetdiagDiagram objectDiagram object package participant partition person port process qualified queue rectangle reference referenceHeader regex requirement rnote root rootNode saltDiagram separator sequenceDiagram server stack stateDiagram state stateBody stereotype storage swimlane task timegrid timeline timingDiagram title undone unstarted usecase verticalSeparator year visibilityIcon private protected public IEMandatory spot spotAnnotation spotInterface spotEnum spotProtocol spotStruct spotEntity spotException spotClass spotAbstractClass spotMetaClass spotStereotype spotDataClass spotRecord wbsDiagram yamlDiagram chartDiagram bar line area scatter axis hAxis vAxis grid annotation".split(" "),ae={},Tr=0;Tr<vr.length;Tr++)ae[vr[Tr].toLowerCase()]=!0;function fr(l){var d=String(l).replace(/_/g,"").toLowerCase();return ae.hasOwnProperty(d)?d:null}function Ar(l){return String(l).replace(/[_.]/g,"").toLowerCase()}function P(){return{names:{},level:-1,starred:!1,stereotypes:{},withDot:!1}}function J(l){var d={},b={},m;for(m in l.names)l.names.hasOwnProperty(m)&&(d[m]=!0);for(m in l.stereotypes)l.stereotypes.hasOwnProperty(m)&&(b[m]=!0);return{names:d,level:l.level,starred:l.starred,stereotypes:b,withDot:l.withDot}}function K(l,d,b,m){var w=P(),S;for(S=0;S<l.length;S++){var tr=fr(l[S]);tr!=null&&(w.names[tr]=!0)}if(w.level=d??-1,b!=null)for(S=0;S<b.length;S++)w.stereotypes[Ar(b[S])]=!0;return w.starred=!!m,w}function R(l,d){var b;if(l.level!==-1){if(l.starred){if(d.level===-1||d.level<l.level)return!1}else if(d.level===-1||d.level!==l.level)return!1}if(d.starred&&!l.starred)return!1;for(b in l.names)if(l.names.hasOwnProperty(b)&&!d.names[b])return!1;for(b in l.stereotypes)if(l.stereotypes.hasOwnProperty(b)&&!d.stereotypes[b])return!1;return!0}var g=1,y=2,C=3,s=4,i=5,k=6,F=7,D=8,T=9;function M(l){var d=String(l),b=d.length,m=0,w=[];function S(Re){for(;m<b;){if(d.charAt(m)===Re){m++;return}m++}}function tr(Re,Ne){for(;m<b;){if(d.charAt(m)===Re&&d.charAt(m+1)===Ne){m+=2;return}m++}}for(;m<b;){var ir=d.charAt(m),Nr=d.charAt(m+1);if(ir===" "||ir===" ")m++;else if(ir==="/"&&Nr==="/")S(`+`);else if(ir==="/"&&Nr==="'")tr("'","/");else if(ir==="/"&&Nr==="*")tr("*","/");else if(ir===",")w.push({type:y,data:","}),m++;else if(ir===";")w.push({type:C,data:";"}),m++;else if(ir===`+`||ir==="\r")w.push({type:s,data:"NEWLINE"}),m++;else if(ir==="*")w.push({type:i,data:"*"}),m++;else if(ir===":")w.push({type:k,data:":"}),m++;else if(ir==="{")w.push({type:F,data:"{"}),m++;else if(ir==="}")w.push({type:D,data:"}"}),m++;else if(ir==="@"){m++;for(var xr="";m<b;){var Ve=d.charAt(m);if(m++,Ve==="{"||Ve==="}"||Ve===";")break;xr+=Ve}w.push({type:T,data:xr})}else if(ir==='"'){m++;for(var qr="";m<b&&d.charAt(m)!=='"';)qr+=d.charAt(m),m++;d.charAt(m)==='"'&&m++,w.push({type:g,data:qr})}else{for(var $e="";m<b;){var se=d.charAt(m);if(se===`+`||se==="\r"||se===" "&&$e.charAt(0)!=="."||se==="{"||se==="}"||se===";"||se===","||se===":"||se===" ")break;$e+=se,m++}$e.charAt(0)==="."&&($e=$e.replace(/^\s+|\s+$/g,"")),w.push({type:g,data:$e})}}return w}function V(l,d){this.parent=l,this.signatures=d,this.map={}}function A(l,d){d.charAt(0)===":"&&(d=d.substring(1));var b=!1;d.charAt(d.length-1)==="*"&&(d=d.substring(0,d.length-1).replace(/^\s+|\s+$/g,""),b=!0);for(var m=d.split(","),w=new V(l,[]),S=0;S<m.length;S++)for(var tr=m[S],ir=0;ir<l.signatures.length;ir++){var Nr=J(l.signatures[ir]);if(tr.charAt(0)===".")Nr.stereotypes[Ar(tr)]=!0,Nr.withDot=!0;else if(tr.indexOf("depth(")===0)Nr.level=parseInt(tr.replace(/\D/g,""),10);else{var xr=fr(tr);xr==null?(Nr.stereotypes[Ar(tr)]=!0,Nr.withDot=!0):Nr.names[xr]=!0}b&&(Nr.starred=!0),w.signatures.push(Nr)}return w}function I(l){var d=l.signatures[0],b;for(b in d.names)if(d.names.hasOwnProperty(b))return!1;for(b in d.stereotypes)if(d.stereotypes.hasOwnProperty(b))return!1;return d.level===-1&&!d.starred}var $=1e3;function c(l){var d=[],b=!1,m;for(m in l.map)if(l.map.hasOwnProperty(m)){b=!0;break}if(!b)return d;for(var w=0;w<l.signatures.length;w++){var S=l.signatures[w],tr={};for(m in l.map)l.map.hasOwnProperty(m)&&(tr[m]={value:l.map[m].value,priority:l.map[m].priority+(S.withDot?$:0)});d.push({sig:S,props:tr})}return d}function x(l){return new Error("PlantUML: Error in style definition: "+l)}function E(l,d){var b=M(l),m=d.variables,w=!1,S=new V(null,[P()]),tr=0;function ir(zo){return b[tr+zo]||null}function Nr(){for(;ir(0)!=null&&ir(0).type===s;)tr++}function xr(){for(;ir(0)!=null&&ir(0).type===k;)tr++}function Ve(){for(var zo="";ir(0)!=null;){var Lt=ir(0);if(Lt.type!==g&&Lt.type!==y)return zo;zo+=Lt.data,tr++}return zo}function qr(){for(var zo="";ir(0)!=null;){var Lt=ir(0);if(Lt.type===s||Lt.type===C||Lt.type===D)return zo;if(Lt.type===g)zo.length>0&&(zo+=" "),zo+=Lt.data,tr++;else if(Lt.type===y)zo+=Lt.data,tr++;else if(Lt.type===k)if(zo+=Lt.data,tr++,ir(0)!=null&&ir(0).type===g)zo+=ir(0).data,tr++;else throw x("bad definition");else throw x("bad definition")}return zo}function $e(zo){if(zo.indexOf("var(")===0){var Lt=/^var\(-*([_\w][-_\w]+)\)$/.exec(zo);if(Lt!=null&&m.hasOwnProperty(Lt[1]))return m[Lt[1]]}return zo}for(;ir(0)!=null;){var se=ir(0);if(tr++,!(se.type===s||se.type===C)&&!(se.type===g&&(se.data.toLowerCase()==="<style>"||se.data.toLowerCase()==="</style>"))){if(ir(0)!=null&&ir(0).type===y){var Re=se.data+Ve();if(Nr(),ir(0)!=null&&ir(0).type===F){S=A(S,Re),tr++;continue}throw x('unexpected token after "'+Re+'"')}if(se.type===g){var Ne=se.data;if(ir(0)!=null&&ir(0).type===i&&(tr++,Ne+="*"),Nr(),ir(0)!=null&&ir(0).type===F){S=A(S,Ne),tr++;continue}if(xr(),se.data.indexOf("--")===0)m[se.data.substring(2)]=qr();else if(ir(0)!=null&&ir(0).type===g){var Do=$e(qr()),Zo=G[se.data.toLowerCase()],uo=++d.counter;Zo!=null&&!w&&(S.map[Zo]={value:Do,priority:uo})}else throw x("parsing")}else if(se.type===D){for(var ke=c(S),Qt=0;Qt<ke.length;Qt++)d.rules.push(ke[Qt]);I(S)||(S=S.parent)}else if(se.type===T)w=!0;else if(se.type===k&&ir(0)!=null&&ir(0).type===g&&ir(1)!=null&&ir(1).type===F)S=A(S,":"+ir(0).data),tr+=2;else if(se.type===k&&ir(0)!=null&&ir(0).type===g&&ir(1)!=null&&ir(1).type===i&&ir(2)!=null&&ir(2).type===F)S=A(S,":"+ir(0).data+"*"),tr+=3;else throw se.type===F?x("Invalid open bracket"):x("unexpected token "+se.data)}}}var z=["root {"," FontName SansSerif"," HyperLinkColor blue"," HyperLinkUnderlineThickness 1"," FontColor black"," FontSize 14"," FontStyle plain"," HorizontalAlignment left"," RoundCorner 0"," DiagonalCorner 0"," LineThickness 1.0"," LineColor #181818"," BackGroundColor #f1f1f1"," Shadowing 0.0","}","element {"," Shadowing 0.0"," LineThickness 0.5","}","arrow {"," FontSize 13"," LineThickness 1.0"," BackGroundColor black","}","mindmapDiagram {"," node {"," Padding 10"," Margin 10"," RoundCorner 25"," LineThickness 1.5"," }"," arrow {"," LineThickness 1.0"," }","}","wbsDiagram {"," Padding 10"," Margin 15"," RoundCorner 0"," LineThickness 1.5"," FontSize 12","}"].join(`+`),lr=null;function rr(){var l={rules:[],counter:0,variables:{},blocks:0,skinparams:{}};return lr==null?(E(z,l),lr={rules:l.rules.slice(),counter:l.counter}):(l.rules=lr.rules.slice(),l.counter=lr.counter),l.userStart=l.rules.length,l.addBlock=function(d){E(d,l),l.blocks++},l.addRule=function(d,b,m){var w=K(d,-1,b,!1),S=b!=null&&b.length>0?$:0,tr={sig:w,props:{}},ir=!1;for(var Nr in m)if(m.hasOwnProperty(Nr)){var xr=G[String(Nr).toLowerCase()];xr!=null&&(tr.props[xr]={value:m[Nr],priority:++l.counter+S},ir=!0)}ir&&l.rules.push(tr)},l.addSkinParam=function(d,b){bu.apply(d,b,l)},l}function W(l){return l!=null&&l.rules.length>l.userStart}var dr=/^<style>\s*$/i,or=/^<style>(.*)<\/style>\s*$/i,yr=/^<\/?style>\s*$/i,pr=/^<style\s+(?:src|file|import)\b/i,Ur=/^skinparam(?:locked)?\s+([\w.]*(?:<<[^<>]*>>)?[\w.]*)\s+([^{}]*)$/i,Pr=/^skinparam(?:locked)?\s*(?:\s+([\w.]*(?:<<.*>>)?[\w.]*))?\s*\{$/i,le=/^([\w.]*(?:<<.*>>)?[\w.]*)\s+(?:(\{)|(.*))$/;function Pe(l,d){d=d||rr();var b=String(l??"").split(/\r\n|\r|\n/),m=[],w=0;function S(Ne){d.addBlock(Ne)}for(w=0;w<b.length;w++){var tr=b[w],ir=tr.replace(/^\s+|\s+$/g,""),Nr;if(ir.charAt(0)==="'"){m.push(tr);continue}if(dr.test(ir)){var xr=[];for(m.push("");w+1<b.length;){w++;var Ve=b[w].replace(/^\s+|\s+$/g,"");if(m.push(""),yr.test(Ve))break;Ve.charAt(0)!=="'"&&xr.push(b[w])}S(xr.join(`+`));continue}if((Nr=or.exec(ir))!=null){S(Nr[1]),m.push("");continue}if(pr.test(ir)){m.push("");continue}if((Nr=Pr.exec(ir))!=null){var qr=Nr[1]?[Nr[1]]:[],$e=1;for(m.push(tr);w+1<b.length;){w++;var se=b[w].replace(/^\s+|\s+$/g,"");if(m.push(b[w]),!(se===""||se.charAt(0)==="'")){if(se==="}"){if($e--,$e===0)break;qr.pop();continue}var Re=le.exec(se);Re!=null&&(Re[2]!=null?(qr.push(Re[1]),$e++):d.addSkinParam(qr.join("")+Re[1],Re[3]))}}continue}if((Nr=Ur.exec(ir))!=null){d.addSkinParam(Nr[1],Nr[2]),m.push(tr);continue}if((Nr=/^!option\s+handwritten\s+(\S+)/i.exec(ir))!=null){d.skinparams.handwritten=Nr[1].toLowerCase(),m.push("");continue}m.push(tr)}return{sheet:d,body:m.join(`+`)}}function Te(l,d,b,m){for(var w=null,S=m||0;S<l.rules.length;S++){var tr=l.rules[S];if(R(tr.sig,d)){var ir=tr.sig.starred&&b||0;w==null&&(w={});for(var Nr in tr.props)if(tr.props.hasOwnProperty(Nr)){var xr={value:tr.props[Nr].value,priority:tr.props[Nr].priority+ir},Ve=w[Nr];(Ve==null||xr.priority>Ve.priority)&&(w[Nr]=xr)}}}return w}function Ir(l,d){if(d==null)return l;l==null&&(l={});for(var b in d)if(d.hasOwnProperty(b)){var m=l[b];(m==null||d[b].priority>m.priority)&&(l[b]=d[b])}return l}var Er=10001e3;function Kr(l,d){for(var b=Er*1e3,m=Te(l,d[0],b),w=1;w<d.length;w++)b-=Er,m=Ir(m,Te(l,d[w],b));return m||{}}function Xe(l,d){return Te(l,d,0)||{}}function Be(l,d,b){if(!W(l))return{};var m=d!=null&&d.names!=null?d:K(d||[],-1,b||[],!1);return Te(l,m,0,l.userStart)||{}}function ie(l){return u(Be(l,["root","document"]),"BackGroundColor")}function Z(l,d){var b=l!=null?l[d]:null;return b==null?null:b.value}function oe(l){return String(l??"").replace(/[^0-9.]/g,"")}function ee(l,d,b){var m=Z(l,d);if(m==null)return b;var w=parseFloat(oe(m));return isNaN(w)?0:w}function Ko(l,d,b){var m=Z(l,d);if(m==null)return b;var w=String(m).replace(/[^0-9]/g,"");return w.length===0?-1:parseInt(w,10)}function ye(l,d){var b=Z(l,d),m={top:0,right:0,bottom:0,left:0};if(b==null||!/^[0-9 ]+$/.test(b))return m;var w=b.replace(/^\s+|\s+$/g,"").split(/ +/),S=parseInt(w[0],10),tr,ir,Nr;switch(w.length){case 1:return{top:S,right:S,bottom:S,left:S};case 2:return tr=parseInt(w[1],10),{top:S,right:tr,bottom:S,left:tr};case 3:return tr=parseInt(w[1],10),ir=parseInt(w[2],10),{top:S,right:tr,bottom:ir,left:tr};case 4:return tr=parseInt(w[1],10),ir=parseInt(w[2],10),Nr=parseInt(w[3],10),{top:S,right:tr,bottom:ir,left:Nr};default:return m}}function _(l){var d=ee(l,"LineThickness",1),b=Z(l,"LineStyle"),m={thickness:d,dashVisible:0,dashSpace:0};if(b==null||b.length===0)return m;var w=String(b).split(/[-;,]/),S=parseFloat(String(w[0]).replace(/^\s+|\s+$/g,""));if(isNaN(S))return m;var tr=S;return w.length>1&&(tr=parseFloat(String(w[1]).replace(/^\s+|\s+$/g,"")),isNaN(tr))||(m.dashVisible=S,m.dashSpace=tr),m}function O(l){var d=Z(l,"Shadowing");if(d==null)return 0;var b=oe(d);if(b.length>0){var m=parseFloat(b);if(!isNaN(m))return m}return 1.5}function t(l){var d=Z(l,"MaximumWidth");return d==null||!/^-?\d+$/.test(String(d).replace(/^\s+|\s+$/g,""))?0:Math.abs(parseInt(d,10))}function o(l){var d=String(Z(l,"FontStyle")||"").replace(/^\s+|\s+$/g,"").toLowerCase(),b=!1,m=!1;d==="bold"?b=!0:d==="italic"?m=!0:/^[1-9]00$/.test(d)&&(b=parseInt(d,10)>=600);var w=String(Z(l,"FontWeight")||"").replace(/^\s+|\s+$/g,"").toLowerCase();return w==="bold"||w==="bolder"?b=!0:/^[1-9]00$/.test(w)?b=parseInt(w,10)>=600:(w==="normal"||w==="lighter")&&w.length&&(b=!1),{bold:b,italic:m}}function v(l){var d=String(Z(l,"HorizontalAlignment")||"").replace(/^\s+|\s+$/g,"").toLowerCase();return d==="center"||d==="centre"?"center":d==="right"?"right":"left"}function u(l,d){var b=Z(l,d);if(b==null)return null;var m=String(b).replace(/^\s+|\s+$/g,""),w=m.replace(/^#/,"").toLowerCase();return w==="none"||w==="transparent"||w==="background"?"none":m}return{createSheet:rr,collect:Pe,hasUserRules:W,userStyle:Be,pageBackground:ie,signature:K,matchAll:R,nodeStyle:Kr,plainStyle:Xe,cleanStereotype:Ar,raw:Z,asDouble:ee,asInt:Ko,clockwise:ye,stroke:_,shadowing:O,maxWidth:t,fontFace:o,horizontalAlignment:v,color:u,STEP_BY_PARENT:Er}})();var il=(function(){var hr={"@startuml":null,"@startmindmap":"mindmap","@startwbs":"wbs","@startgantt":"gantt","@startsalt":"salt","@startjson":"json","@startyaml":"yaml","@startebnf":"ebnf","@startregex":"regex","@startditaa":"ditaa","@startdot":"dot","@startchronology":"chronology","@startchen":"chen","@startnwdiag":"network","@startboard":"board"},G={};for(var Wr in hr)G["@end"+Wr.substring(6)]=Wr;var vr={};function ae(g,y){vr[g]=y}function Tr(){var g=[];for(var y in vr)vr.hasOwnProperty(y)&&g.push(y);return g}function fr(g){if(g==null||typeof g!="string")return null;g.charCodeAt(0)===65279&&(g=g.substring(1));for(var y=g.split(/\r\n|\r|\n/),C=-1,s=null,i="",k=/^[ \t]*[@\\]start([A-Za-z][A-Za-z0-9_]*)\b[ \t]*(.*?)[ \t]*$/i,F=/^[ \t]*[@\\]end/i,D=0;D<y.length;D++){var T=y[D].match(k);if(T!=null){C=D,s="@start"+T[1].toLowerCase(),i=T[2]||"";continue}if(C>=0&&F.test(y[D]))return{wrapper:s,body:y.slice(C+1,D).join(`+`),header:i,startLine:C+1,endLine:D+1}}return null}function Ar(g){var y=g.split(/\r\n|\r|\n/),C=[],s=!1,i=!1,k=null,F=0,D=0,T=!1;function M(lr){for(var rr=0,W=0;W<lr.length;W++){var dr=lr.charAt(W);dr==="{"||dr==="["?rr++:(dr==="}"||dr==="]")&&rr--}return rr}for(var V=0;V<y.length;V++){var A=y[V],I=A.replace(/^\s+|\s+$/g,"");if(s){A.indexOf("'/")>=0&&(s=!1);continue}if(I!==""){if(I.substring(0,2)==="/'"){I.indexOf("'/",2)<0&&(s=!0);continue}if(I.charAt(0)!=="'"){if(i){/<\/style\s*>/i.test(I)&&(i=!1);continue}if(/^<style\b/i.test(I)){!/<\/style\s*>/i.test(I)&&!/^<style\s+(?:src|file)\s*=/i.test(I)&&(i=!0);continue}if(F>0){I.indexOf("{")>=0&&F++,I.indexOf("}")>=0&&F--;continue}if(k!==null){var $=k==="note"?/^end\s*(?:h?note|rnote)\b/i:new RegExp("^end\\s*"+k+"\\b","i");$.test(I)&&(k=null);continue}if(I.charAt(0)!=="!"){if(D>0){D+=M(A);continue}if(T){/^\}\}\s*$/.test(I)&&(T=!1);continue}if(/^\{\{/.test(I)){/\}\}\s*$/.test(I)||(T=!0);continue}var c=I.match(/^json\s+(?:"[^"]+"|\S+)\s+(\S.*)$/i);if(c!=null){/^[\[{]/.test(c[1])&&(D=Math.max(0,M(c[1])));continue}if(/^skinparam\b/i.test(I)){/\{\s*$/.test(I)&&F++;continue}if(!/^(caption|scale|mainframe|hide|show)\b/i.test(I)&&!/^(top\s+to\s+bottom|left\s+to\s+right)\s+direction\b/i.test(I)){var x=I.match(/^(?:(?:center|left|right)\s+)?(title|header|footer|legend)\b(.*)$/i);if(x!=null){var E=x[2].replace(/^\s+|\s+$/g,"");E===""&&(k=x[1].toLowerCase());continue}var z=I.match(/^(?:h?note|rnote|ref\s+over)\b/i);if(z!=null&&I.indexOf(":")<0&&!/^(?:h?note|rnote)\s+"/i.test(I)){k=/^ref/i.test(I)?"ref":"note",C.push(I);continue}C.push(I)}}}}}return C}function P(g){if(g==null||typeof g!="string")return null;var y=Ar(g);if(y.length===0)return null;var C,s;for(C=0;C<y.length;C++){if(s=y[C],/^salt\s*$/i.test(s))return"salt";if(/^listopeniconic\s*$/i.test(s)||/^listsprites?\s*$/i.test(s))return"openiconicList";if(/^@(?:[+\-]?\d[\d.:\/]*|:[\w.]+)(?:\s+as\s+:\S+)?\s*$/.test(s)||/^(robust|concise|clock|binary)\b(?!\s*[-<.])/i.test(s))return"timing";if(/^archimate\b/i.test(s)||/^!include\s*<archimate[\/>]/i.test(s)||/^(Motivation|Strategy|Business|Application|Technology|Physical|Implementation)_[A-Za-z][A-Za-z0-9]*\s*\(/.test(s))return"archimate";if(/^!include\s*<C4[\/>]/i.test(s)||/^!include\s*.*C4_(Container|Context|Component|Code|Dynamic|Deployment)\.puml\b/i.test(s)||/^(Person|Person_Ext|System(?:Db|Queue)?(?:_Ext)?|Container(?:Db|Queue)?(?:_Ext)?|Component(?:Db|Queue)?(?:_Ext)?)\s*\(/.test(s)||/^(System_Boundary|Container_Boundary|Enterprise_Boundary)\s*\(/.test(s))return"c4";if(/^nwdiag\s*\{/i.test(s))return"network";if(/\[\s*\*\s*\]/.test(s))return"state";if(/^entity\s+\S+.*\{/i.test(s)||/[}|][|o][-.]|[-.][|o][{|]/.test(s))return"class";if(/^(node|artifact|cloud|storage|stack|folder|frame|file|hexagon|card|agent)\b(?!\s*[-<.])/i.test(s)||/^\[(?!\[)[^\]]+\]/.test(s))return"component"}for(C=0;C<y.length;C++){if(s=y[C],/^state\b(?!\s*[-<.])/i.test(s))return"state";if(/^(class|interface|enum|abstract(?:\s+class)?|annotation|struct|protocol|exception|namespace|record|dataclass)\b(?!\s*[-<.])/i.test(s))return"class";if(/^(object|map)\b(?!\s*[-<.])/i.test(s))return"object";if(/^usecase\b(?!\s*[-<.])/i.test(s))return"useCase";if(/^component\b(?!\s*[-<.])/i.test(s))return"component";if(/^(participant|boundary|control|entity|collections|queue|create)\b(?!\s*[-<.])/i.test(s)||/^ref(?:#\w+)?\s+over\b/i.test(s)||/^[hr]?note\s+over\b/i.test(s)||/^(activate|deactivate|destroy|autonumber|autoactivate)\b(?!\s*[-<.])/i.test(s)||/^box\b(?!\s*[-<.])/i.test(s)||/^&\s*\S/.test(s)&&/[-.]+>|<[-.]+/.test(s))return"sequence"}var i=!1;for(C=0;C<y.length;C++){if(s=y[C],/^(start|stop)\s*$/i.test(s)||/^(?:#\w+)?:[^;]*;\s*(?:<<[^>]*>>\s*)*$/.test(s)||/^if\s*\(/i.test(s)||/^while\s*\(/i.test(s)||/^repeat\b(?!\s*[-<.])/i.test(s)||/^(fork|split|swimlane)\b(?!\s*[-<.])/i.test(s)||/^detach\b(?!\s*[-<.])/i.test(s))return"activity";/^partition\b(?!\s*[-<.])/i.test(s)&&(i=!0)}if(i){var k=/^(?:\(\*(?:top)?\)|"[^"]*"(?:\s+as\s+\S+)?|===+\s*[\w.]+\s*===+|[\w\u00A0-\uFFFF][\w.\u00A0-\uFFFF]*)?\s*(?:<<[^>]*>>)?\s*(?:#\w+)?\s*[-.]+(?:\[[^\]]*\])?(?:left|right|up|down|le?|ri?|up?|do?)?(?:\[[^\]]*\])?[-.]*>\s*(?:\[[^\]*][^\]]*\]\s*)?(?:\(\*|"|===|[\w\u00A0-\uFFFF])/i;for(C=0;C<y.length;C++)if(/\(\s*\*\s*(?:top|bottom)?\s*\)/.test(y[C])||k.test(y[C]))return"activityLegacy";return"activity"}for(C=0;C<y.length;C++)if(/\(\s*\*\s*(?:top|bottom)?\s*\)/.test(y[C]))return"activityLegacy";for(C=0;C<y.length;C++)if(/-\[hidden\]-/i.test(y[C]))return"component";for(C=0;C<y.length;C++)if(s=y[C],/^:[^:;]+:\/?\s*(?:as\s+\S+)?\s*(?:<<[^>]*>>)?\s*(?:#\w+)?\s*$/i.test(s)||/^\([^)]+\)\/?\s*(?:as\s+\S+)?\s*(?:<<[^>]*>>)?\s*(?:#\w+)?\s*$/i.test(s)||/:[^:;]+:\/?\s*(?:<<[^>]*>>)?\s*(?:#\w+)?\s*[-.<>|]+(?:\[[^\]]*\][-.<>|]*)?\s*\([^)]+\)/.test(s)||/\([^)]+\)\/?\s*(?:<<[^>]*>>)?\s*(?:#\w+)?\s*[-.<>|]+(?:\[[^\]]*\][-.<>|]*)?\s*:[^:;]+:/.test(s)||/\([^)]+\)\s*[-.<>|]+\s*\([^)]+\)/.test(s)||/^\w[\w.]*\s*[-.<>|]+\s*\([^)]+\)/.test(s)||/^\([^)]+\)\s*[-.<>|]+\s*\w/.test(s))return"useCase";var F=/(?:^|\s)(?:<\|[-.]+|[*o+#][-.]+)|(?:[-.]+\|>|[-.]+[*o+#])(?=\s|$)/;for(C=0;C<y.length;C++)if(s=y[C],!/(?:^|\s)\[o?[<-]|[->]o?\]\s*(?::|$)/.test(s)&&F.test(s))return"class";for(C=0;C<y.length;C++)if(/^rectangle\s+(?:"[^"]*"|\S+)\s+as\s+\S+\s*$/i.test(y[C]))return"component";var D='(?:[^\\s"<>\\[\\]\\-.][^\\s"<>\\[\\]]*|"[^"]*")',T="(?:[xo]?<<?[xo]?|\\\\\\\\?|\\/\\/?)",M="(?:[xo]?>>?[xo]?|\\\\\\\\?|\\/\\/?)",V="(?:-+(?:\\[[^\\]]*\\]-*)?|\\[[^\\]]*\\]-+)",A="(?:"+T+V+M+"?|[xo]?"+V+M+")",I=new RegExp("^(?:"+D+"|[\\[\\]])\\s*"+A+"\\s*(?:"+D+"|[\\[\\]])"),$=/^\[[^\[\]]+\]|[-.>]\s*\[[^\[\]]+\]\s*(?::|$)/,c=new RegExp("^"+A+"\\s*(?:"+D+"|\\])"),x=new RegExp("^"+D+"\\s+-{2,}>?\\s*$");for(C=0;C<y.length;C++){s=y[C];var E=s.search(/\s:\s|:\s|\s:/),z=E>0?s.substring(0,E):s;if(!$.test(z)&&(I.test(s)||c.test(s)||x.test(s)))return"sequence"}for(C=0;C<y.length;C++){if(s=y[C],/^actor\b/i.test(s)||/^[hr]?note\s+(?:left|right)\s+of\b/i.test(s))return"sequence";if(/^note\s+(?:top|bottom)\s+of\b/i.test(s))return"class"}if(/^\*+(?:\[#\w+\])?_?\s+\S/.test(y[0]))return"mindmap";for(C=0;C<y.length;C++)if(s=y[C],/^(node|folder|frame|cloud|artifact|storage|database|rectangle|hexagon|card|package|circle)\b/i.test(s)||/^\(\)\s+\S/.test(s))return"component";for(C=0;C<y.length;C++)if(/(?:^|[^\[])\[[\w][^\[\]]*\]/.test(y[C]))return"component";var lr=/^(?:[\w.]+|"[^"]*")\s+(?:"[^"]*"\s+)?(?:-+|\.+|[-.]+(?:up|down|left|right|u|d|l|r)[-.]+>?)\s+(?:"[^"]*"\s+)?(?:[\w.]+|"[^"]*")\s*(?::.*)?$/i;for(C=0;C<y.length;C++)if(lr.test(y[C]))return"class";var rr=/^[\w.]+\s*:\s*\S/;for(C=0;C<y.length;C++)if(rr.test(y[C]))return"state";if(y.length>0){for(C=0;C<y.length;C++)if(!/^-[ \t]?(?![-.>\[])\S/.test(y[C]))return null;return"activity"}return null}function J(g){var y=g.split(/\r\n|\r|\n/),C={},s=0,i;for(i=0;i<y.length;i++){var k=y[i].replace(/^\s+|\s+$/g,""),F=k.match(/^json\s+(?:"([^"]+)"|(\S+))\s+(\S.*)$/i);if(F!=null){var D=F[1]!=null?F[1]:F[2],T=F[3];if(/^[\[{]/.test(T)){for(var M=0,V=i,A=[];V<y.length;){var I=V===i?T:y[V];A.push(I);for(var $=0;$<I.length;$++)I.charAt($)==="{"||I.charAt($)==="["?M++:(I.charAt($)==="}"||I.charAt($)==="]")&&M--;if(M<=0)break;V++}T=A.join(`+`),i=V}try{C[D]=JSON.parse(T),s++}catch{return null}}}return s>0?C:null}function K(g){var y=g.split(/\r\n|\r|\n/),C={title:null,header:null,footer:null,caption:null,legend:null,notes:[]},s=!1,i=!1,k=0,F;function D(lr){for(var rr=[];F+1<y.length;){F++;var W=y[F].replace(/^\s+|\s+$/g,"");if(lr.test(W))break;rr.push(W)}return rr}for(F=0;F<y.length;F++){var T=y[F].replace(/^\s+|\s+$/g,"");if(!(T===""||T.charAt(0)==="'")){if(i){/<\/style\s*>/i.test(T)&&(i=!1);continue}if(/^<style\b/i.test(T)){!/<\/style\s*>/i.test(T)&&!/^<style\s+(?:src|file)\s*=/i.test(T)&&(i=!0);continue}if(k>0){T.indexOf("{")>=0&&k++,T.indexOf("}")>=0&&k--;continue}if(/^skinparam\b/i.test(T)){/\{\s*$/.test(T)&&k++;continue}var M=T.match(/^(?:(?:center|left|right)\s+)?(title|header|footer|caption|legend)\b(.*)$/i);if(M!=null){var V=M[1].toLowerCase(),A=M[2].replace(/^\s+|\s+$/g,"");if(V==="legend")if(/^(?:(?:left|right|center|top|bottom)\s*)*$/i.test(A)){for(var I=A.toLowerCase().split(/\s+/),$="center",c=0;c<I.length;c++)(I[c]==="left"||I[c]==="right")&&($=I[c]);C.legend={position:$,lines:D(/^end\s*legend\b/i)}}else C.legend={position:"center",lines:[A.replace(/^:\s*/,"")]};else A===""?C[V]=D(new RegExp("^end\\s*"+V+"\\b","i")).join(`+`):C[V]=A.replace(/^:\s*/,"");s=!0;continue}var x=T.match(/^note\s+"([^"]*)"\s+as\s+\S+(?:\s+(#\w+))?\s*$/i);if(x!=null){C.notes.push({lines:[x[1]],color:x[2]||null}),s=!0;continue}var E=T.match(/^note\s+as\s+\S+(?:\s+(#\w+))?\s*$/i);if(E!=null){C.notes.push({lines:D(/^end\s*note\b/i),color:E[1]||null}),s=!0;continue}var z=T.match(/^note\s+(?:left|right|top|bottom)(?:\s+(#\w+))?\s*(?::\s*(.*))?$/i);if(z!=null){C.notes.push({lines:z[2]!=null?[z[2]]:D(/^end\s*note\b/i),color:z[1]||null}),s=!0;continue}}}return s?C:null}function R(g,y){y=y||{};var C=fr(g);if(C==null)throw new Error("PlantUML: missing @start/@end wrapper");var s=typeof js<"u"?js.run(C.body,y):C.body;/^\s*@(?:pause|a|append)\b/m.test(s)&&(s=s.replace(/^([ \t]*)@(?:a|append)[ \t]+/gm,"$1").replace(/^[ \t]*@pause[ \t]*$/gm,""));var i=nt.collect(s);s=i.body,y.styleSheet=i.sheet;var k=hr[C.wrapper],F=Cs.typeForWrapper(C.wrapper);if(F!=null)throw Cs.unsupportedError(F);if(k==null&&(k=P(s)),Cs.isUnsupported(k))throw Cs.unsupportedError(k);if(k==="openiconicList")return{type:"openiconicList",ir:{},config:y,header:C.header};if(k==null&&/(^|\n)\s*stdlib\s*(\n|$)/i.test(s))return{type:"stdlib",ir:{},config:y,header:C.header};if(k==null){var D=J(s);if(D!=null)return{type:"json",ir:{data:D,rootPresent:!0,highlights:[]},config:y,header:C.header};var T=K(s);if(T!=null)return{type:"titleOnly",ir:T,config:y,header:C.header};throw new Error("PlantUML: unable to detect diagram type")}var M=vr[k];if(M==null||typeof M.parse!="function")throw new Error('PlantUML: no parser registered for type "'+k+'"');var V=M.parse(s,y);return V!=null&&typeof V=="object"&&V.styleSheet==null&&(V.styleSheet=i.sheet),{type:k,ir:V,config:y,header:C.header}}return{START_WRAPPERS:hr,END_WRAPPERS:G,registerParser:ae,listParsers:Tr,stripWrapper:fr,detectGenericUmlType:P,parse:R}})();var Ss=(function(){var hr={fillColor:"light-dark(#FEFECE,#1f2020)",strokeColor:"light-dark(#A80036,#cccccc)",fontColor:"light-dark(#000000,#cccccc)",fontFamily:"Verdana"},G={};function Wr(r,n,e){G[r]||(G[r]={}),G[r][n]=e}function vr(){var r=new Graph;return r.setExtendParents(!1),r.setExtendParentsOnAdd(!1),r.setConstrainChildren(!1),r.setHtmlLabels(!0),r.getModel().maintainEdgeParent=!1,r}function ae(r,n){return n=n||vr(),{graph:n,root:n.getDefaultParent()}}var Tr={lightblue:"#ADD8E6",pink:"#FFC0CB",red:"#FF0000",green:"#008000",blue:"#0000FF",yellow:"#FFFF00",orange:"#FFA500",gold:"#FFD700",lavender:"#E6E6FA",lightgreen:"#90EE90",salmon:"#FA8072",coral:"#FF7F50",gray:"#808080",grey:"#808080",black:"#000000",white:"#FFFFFF",cyan:"#00FFFF",magenta:"#FF00FF",lime:"#00FF00",aqua:"#00FFFF",navy:"#000080",maroon:"#800000",olive:"#808000",purple:"#800080",teal:"#008080",silver:"#C0C0C0",lightyellow:"#FFFFE0",lightcoral:"#F08080",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",darkgreen:"#006400",darkblue:"#00008B",darkred:"#8B0000",wheat:"#F5DEB3",tomato:"#FF6347",skyblue:"#87CEEB",steelblue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",turquoise:"#40E0D0",violet:"#EE82EE",plum:"#DDA0DD",linen:"#FAF0E6",khaki:"#F0E68C",ivory:"#FFFFF0",honeydew:"#F0FFF0",gainsboro:"#DCDCDC",beige:"#F5F5DC",hotpink:"#FF69B4",palegreen:"#98FB98",antiquewhite:"#FAEBD7",powderblue:"#B0E0E6",peachpuff:"#FFDAB9",mistyrose:"#FFE4E1",mintcream:"#F5FFFA",aliceblue:"#F0F8FF",firebrick:"#B22222",indianred:"#CD5C5C",deeppink:"#FF1493",mediumblue:"#0000CD",limegreen:"#32CD32",darkorange:"#FF8C00",dodgerblue:"#1E90FF",cadetblue:"#5F9EA0",chocolate:"#D2691E",crimson:"#DC143C",orchid:"#DA70D6",seagreen:"#2E8B57",springgreen:"#00FF7F",royalblue:"#4169E1",darksalmon:"#E9967A",lightsalmon:"#FFA07A",lightpink:"#FFB6C1",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",dimgray:"#696969",dimgrey:"#696969",slategray:"#708090",slategrey:"#708090",orangered:"#FF4500",forestgreen:"#228B22",midnightblue:"#191970",slateblue:"#6A5ACD",darkviolet:"#9400D3",darkorchid:"#9932CC",goldenrod:"#DAA520",darkgoldenrod:"#B8860B",rosybrown:"#BC8F8F",sienna:"#A0522D",peru:"#CD853F",sandybrown:"#F4A460",burlywood:"#DEB887",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",blanchedalmond:"#FFEBCD",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",palegoldenrod:"#EEE8AA",darkkhaki:"#BDB76B",yellowgreen:"#9ACD32",olivedrab:"#6B8E23",darkolivegreen:"#556B2F",greenyellow:"#ADFF2F",chartreuse:"#7FFF00",lawngreen:"#7CFC00",mediumseagreen:"#3CB371",darkseagreen:"#8FBC8F",mediumspringgreen:"#00FA9A",lightseagreen:"#20B2AA",darkcyan:"#008B8B",darkturquoise:"#00CED1",mediumturquoise:"#48D1CC",paleturquoise:"#AFEEEE",lightcyan:"#E0FFFF",azure:"#F0FFFF",lightsteelblue:"#B0C4DE",cornflowerblue:"#6495ED",deepskyblue:"#00BFFF",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",mediumslateblue:"#7B68EE",mediumpurple:"#9370DB",blueviolet:"#8A2BE2",indigo:"#4B0082",darkmagenta:"#8B008B",mediumorchid:"#BA55D3",mediumvioletred:"#C71585",palevioletred:"#DB7093",fuchsia:"#FF00FF",lightgoldenrodyellow:"#FAFAD2",floralwhite:"#FFFAF0",ghostwhite:"#F8F8FF",lavenderblush:"#FFF0F5",oldlace:"#FDF5E6",papayawhip:"#FFEFD5",seashell:"#FFF5EE",snow:"#FFFAFA",whitesmoke:"#F5F5F5",brown:"#A52A2A",rebeccapurple:"#663399",saddlebrown:"#8B4513",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",lightblue1:"#BFEFFF",aquamarine:"#7FFFD4",mediumaquamarine:"#66CDAA",honeydew2:"#E0EEE0"},fr=/[;=<>"'`(){}\r\n\t ]/,Ar=/^[0-9A-Za-z|\/\\.\-]+$/;function P(r){if(!r)return r;var n=String(r).replace(/^\s+|\s+$/g,"");if(!n||fr.test(n))return null;if(/^#?(?:transparent|none)$/i.test(n))return"none";if(n.charAt(0)==="#"){var e=n.substring(1),f=e.toLowerCase();return Tr.hasOwnProperty(f)?Tr[f]:/^[0-9A-Fa-f]{3,8}$/.test(e)||Ar.test(e)?n:null}return Tr.hasOwnProperty(n.toLowerCase())?Tr[n.toLowerCase()]:Ar.test(n)?n:null}function J(r){var n=String(r).replace(/^\s+|\s+$/g,""),e=/^(#?[A-Za-z0-9]+)[\/|\\\-](#?[A-Za-z0-9]+)$/.exec(n);if(e!=null){var f=P(e[1]),a=P(e[2]);if(f&&a&&f!=="none"&&a!=="none")return{fill:f,gradient:a}}var h=P(n);return h?{fill:h,gradient:null}:null}function K(r){return String(Math.round(r*100)/100)}function R(r,n,e,f){var a={};if(r==null||!nt.hasUserRules(r))return a;var h=nt.userStyle(r,n,e),B;if(f!=="edge"&&f!=="text"){if(B=nt.color(h,"BackGroundColor"),B!=null)if(B==="none")a.fillColor="none";else{var H=J(B);H!=null&&(a.fillColor=H.fill,H.gradient!=null&&(a.gradientColor=H.gradient))}if(nt.raw(h,"RoundCorner")!=null){var p=nt.asDouble(h,"RoundCorner",0);p>0?(a.rounded="1",a.arcSize=K(p),a.absoluteArcSize="1"):a.rounded="0"}nt.raw(h,"Shadowing")!=null&&(a.shadow=nt.shadowing(h)>0?"1":"0")}if(f!=="text"){if(B=nt.color(h,"LineColor"),B!=null){var U=B==="none"?"none":P(B);U&&(a.strokeColor=U)}if(nt.raw(h,"LineThickness")!=null&&(a.strokeWidth=K(nt.asDouble(h,"LineThickness",1))),nt.raw(h,"LineStyle")!=null){var N=nt.stroke(h);N.dashVisible>0?(a.dashed="1",a.fixDash="1",a.dashPattern=K(N.dashVisible)+" "+K(N.dashSpace)):a.dashed="0"}}if(B=nt.color(h,"FontColor"),B!=null&&B!=="none"){var j=P(B);j&&(a.fontColor=j)}if(nt.raw(h,"FontSize")!=null){var Q=nt.asInt(h,"FontSize",-1);Q>0&&(a.fontSize=String(Q))}if(nt.raw(h,"FontName")!=null){var _r=ed(nt.raw(h,"FontName"));_r&&(a.fontFamily=_r)}if(nt.raw(h,"FontStyle")!=null||nt.raw(h,"FontWeight")!=null){var Lr=nt.fontFace(h);a.fontStyleBits=(Lr.bold?1:0)|(Lr.italic?2:0)}return nt.raw(h,"HorizontalAlignment")!=null&&(a.align=nt.horizontalAlignment(h)),a}function g(r,n){var e,f=!1;for(e in n)if(n.hasOwnProperty(e)){f=!0;break}if(!f)return r;var a=String(r||"");a.length>0&&a.charAt(a.length-1)!==";"&&(a+=";");for(e in n)if(n.hasOwnProperty(e)){var h=e,B=n[e];if(e==="fontStyleBits"){var H=/(?:^|;)fontStyle=(\d+);/.exec(a),p=H!=null?parseInt(H[1],10):0;if(h="fontStyle",B=String(B|p&4),B==="0"&&H==null)continue}var U=new RegExp("(^|;)"+h+"=[^;]*;");U.test(a)?a=a.replace(U,"$1"+h+"="+B+";"):a+=h+"="+B+";"}return a}function y(r,n){return n!=null&&n.skinparams!=null&&/^ortho$/i.test(String(n.skinparams.linetype||""))?g(r,{edgeStyle:"orthogonalEdgeStyle"}):r}function C(r,n){return r.replace(/(<mxCell id="(?:cl)?(title|header|footer|caption|legend|legendtext)_\d+"[^>]*? style=")([^"]*)"/g,function(e,f,a,h){var B=a==="legend"||a==="legendtext"?["root","element","legend"]:["root","document",a],H=a==="legend"?"vertex":"text";return f+g(h,R(n,B,[],H))+'"'})}function s(r,n,e,f,a,h){var B=R(n,e,f,a);if(h!=null)for(var H=0;H<h.length;H++)delete B[h[H]];return g(r,B)}function i(r){return r==null?"":String(r).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\r\n?/g,`+`).replace(/\n/g," ")}var k={heart:"\u2665",star:"\u2605",star_o:"\u2606",check:"\u2714",check_circle:"\u2714",circle_check:"\u2714",ban:"\u2718",x:"\u2717",cloud:"\u2601",sun:"\u2600",gear:"\u2699",cog:"\u2699",cogs:"\u2699",exchange:"\u21C4",envelope:"\u2709",mail:"\u2709",home:"\u2302",house:"\u2302",info:"\u2139",warning:"\u26A0",bolt:"\u26A1",flag:"\u2691",key:"\u26BF",person:"\u263B",people:"\u263B",user:"\u263B",users:"\u263B",phone:"\u260E",clock:"\u23F1",cubes:"\u29C9",cube:"\u25A2",arrow_right:"\u2192",arrow_left:"\u2190",share_alt_square:"\u21AA",plus:"+",minus:"\u2212"};function F(r){var n=k[r]||k[r.replace(/-/g,"_")];return n||""}function D(r){return r==null?"":(r=String(r),r=r.replace(/<U\+([0-9A-Fa-f]{2,6})>/g,function(n,e){try{return String.fromCodePoint(parseInt(e,16))}catch{return""}}),r=r.replace(/\\r\\n|\\n|\\r/g,`+`).replace(/\\t/g," "),r=r.replace(/<\/?(?:size|color|colour|back|b|i|u|s|strike|del|sub|sup|font|w|plain)(?:[:\s][^>]*)?\s*>/gi,""),r=r.replace(/<&([a-zA-Z0-9_-]+)>/g,function(n,e){return F(e)}).replace(/<\$([a-zA-Z0-9_-]+)>/g,function(n,e){return F(e)}),r=r.replace(/\*\*([\s\S]+?)\*\*/g,"$1").replace(/\/\/([\s\S]+?)\/\//g,"$1").replace(/__([\s\S]+?)__/g,"$1").replace(/~~([\s\S]+?)~~/g,"$1").replace(/""([\s\S]+?)""/g,"$1"),r)}function T(r){return i(D(r))}function M(r,n){var e=D(r);return n&&String(n).indexOf("html=1")>=0&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),i(e)}function V(r){if(r==null)return"";r=String(r),r=r.replace(/<U\+([0-9A-Fa-f]{2,6})>/g,function(H,p){try{return String.fromCodePoint(parseInt(p,16))}catch{return""}}),r=r.replace(/\\r\\n|\\n|\\r/g,`+`).replace(/\\t/g," "),r=r.replace(/<\/?(?:size|color|colour|back|b|i|u|s|strike|del|sub|sup|font|w|plain)(?:[:\s][^>]*)?\s*>/gi,""),r=r.replace(/""([\s\S]+?)""/g,"$1"),r=r.replace(/<&([a-zA-Z0-9_-]+)>/g,function(H,p){return F(p)}).replace(/<\$([a-zA-Z0-9_-]+)>/g,function(H,p){return F(p)}),r=r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),r=r.replace(/\*\*([\s\S]+?)\*\*/g,"<b>$1</b>").replace(/\/\/([\s\S]+?)\/\//g,"<i>$1</i>").replace(/__([\s\S]+?)__/g,"<u>$1</u>").replace(/~~([\s\S]+?)~~/g,"<u>$1</u>").replace(/\u0001/g,'<font face="monospace">').replace(/\u0002/g,"</font>");for(var n=r.split(`+`),e="",f=!0,a=0;a<n.length;a++){var h=/^\s*(-{3,}|={3,}|\.{3,})\s*$/.exec(n[a]);if(h){var B=h[1].charAt(0);e+='<hr style="border:none;border-top:'+(B==="="?"3px double":B==="."?"1px dotted":"1px solid")+' #181818;margin:4px 0 5px;">',f=!0;continue}f||(e+="<br>"),e+=n[a],f=!1}return e}function A(r){return/\*\*[\s\S]+?\*\*|\/\/[\s\S]+?\/\/|""[\s\S]+?""|__[\s\S]+?__|~~[\s\S]+?~~|(?:^|\n)\s*[*#]+\s+\S/.test(String(r??""))}function I(r){if(r=String(r??""),!/(?:^|\n)\s*[*#]+\s+\S/.test(r))return V(r);for(var n=r.split(`+`),e="",f=[],a="",h=0;h<n.length;h++){var B=n[h].match(/^\s*([*#]+)\s+(.*)$/);if(!B){for(;f.length>0;)e+="</li></"+f.pop()+">";e+=a+V(n[h]),a="<br>";continue}for(var H=B[1].length,p=B[1].charAt(0)==="#"?"ol":"ul";f.length>H;)e+="</li></"+f.pop()+">";for(f.length===H&&(e+="</li>");f.length<H;)e+="<"+p+' style="margin:0;padding-left:14px">',f.push(p);e+="<li>"+V(B[2]),a=""}for(;f.length>0;)e+="</li></"+f.pop()+">";return e}function $(r){for(var n=String(r??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/<(\/?)([biu])>/gi,"<$1$2>"),e=n.match(/<\/?[biu]>/gi)||[],f=[],a=0;a<e.length;a++){var h=e[a].toLowerCase(),B=h.charAt(1)==="/",H=B?h.charAt(2):h.charAt(1);if(B){var p=f.lastIndexOf(H);p>=0&&f.splice(p,1)}else f.push(H)}for(;f.length;)n+="</"+f.pop()+">";return n}function c(r){return D(r).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r\n?/g,`+`).replace(/\n/g,"<br>")}var x=5,E=33,z=14,lr=24,rr=10,W=25,dr=17.7,or=15,yr=17,pr=22,Ur=4;function Pr(r){return/^-{3,}$/.test(r)?"solid":/^\.{3,}$/.test(r)?"dotted":/^={3,}$/.test(r)?"double":null}function le(r){return r<=1?18:r===2?16:r===3?15:14}var Pe=10,Te=8.43;function Ir(r){for(var n="",e=!0,f=0;f<r.length;f++){var a=r[f],h=Pr(a);if(h){n+='<hr style="border:none;border-top:'+(h==="double"?"3px double":h==="dotted"?"1px dotted":"1px solid")+' #181818;margin:4px 0 5px;">',e=!0;continue}e||(n+="<br>"),e=!1;var B=/^(=+)\s*/.exec(a),H=/^"{2}.*"{2}$/.test(a),p=a.replace(/^=+\s*/,"").replace(/^"{2}|"{2}$/g,"");B?n+='<b><font style="font-size:'+le(B[1].length)+'px">'+V(p)+"</font></b>":H?n+='<font face="monospace">'+T(p)+"</font>":n+=V(p)}return n}function Er(r,n,e){return Ki(r,n,e)}function Kr(r){return r?String(r).split(`+`).length:0}function Xe(r,n){var e=n==="box"?8:n==="hexagon"?23:20;return Er(r||"",13,!1)+e}function Be(r,n,e){var f=P(r.color)||(n?"#E3E3E3":"#E2E2F0"),a=P(r.borderColor)||"#181818",h=P(r.fontColor)||"#000000",B="rounded=1;absoluteArcSize=1;arcSize=5;fillColor="+f+";strokeColor="+a+";strokeWidth=0.5;fontColor="+h+";fontSize=14;whiteSpace=wrap;html=1;",H=e?"verticalLabelPosition=top;verticalAlign=bottom;":"verticalLabelPosition=bottom;verticalAlign=top;",p=H+"fillColor="+f+";strokeColor="+a+";fontColor="+h+";fontSize=14;html=1;";switch(r.kind){case"actor":return"shape=umlActor;"+p;case"boundary":return"shape=umlBoundary;"+p;case"control":return"ellipse;shape=umlControl;"+p;case"entity":return"ellipse;shape=umlEntity;"+p;case"database":return"shape=cylinder3;size=6;"+p;case"queue":return"shape=cylinder3;direction=east;size=8;"+p;default:return"shape=rectangle;"+B}}function ie(r){switch(r){case"open":return"endArrow=open;endFill=0;endSize=9;";case"lost":return"endArrow=cross;endSize=12;";case"circle":return"endArrow=classic;endFill=1;endSize=9;";case"halfTop":return"endArrow=open;endFill=0;endSize=9;endHalf=top;";case"halfBottom":return"endArrow=open;endFill=0;endSize=9;endHalf=bottom;";case"bidirectional":return"endArrow=classic;endFill=1;endSize=9;startArrow=classic;startFill=1;startSize=9;";default:return"endArrow=classic;endFill=1;endSize=9;"}}function Z(r,n,e,f,a,h,B,H){return' <mxCell id="'+i(r)+'" value="'+M(n,e)+'" style="'+i(e)+'" vertex="1" parent="'+i(H||"1")+`">+ <mxGeometry x="`+f+'" y="'+a+'" width="'+h+'" height="'+B+`" as="geometry"/></mxCell>-`}function z(r,s,a,i,f,y,T,L){return' <mxCell id="'+C(r)+'" value="'+d(s,a)+'" style="'+C(a)+'" edge="1" parent="'+C(L||"1")+`">+`}var oe=Z;function ee(r,n,e,f,a,h,B,H){return' <mxCell id="'+i(r)+'" value="'+M(n,e)+'" style="'+i(e)+'" edge="1" parent="'+i(H||"1")+`"><mxGeometry relative="1" as="geometry">- <mxPoint x="`+i+'" y="'+f+`" as="sourcePoint"/>- <mxPoint x="`+y+'" y="'+T+`" as="targetPoint"/>+ <mxPoint x="`+f+'" y="'+a+`" as="sourcePoint"/>+ <mxPoint x="`+h+'" y="'+B+`" as="targetPoint"/></mxGeometry></mxCell>-`}var N=u,pe=z;function Hr(r,s,a,i,f,y,T,L){return' <mxCell id="'+C(r)+'" value="'+C(s)+'" style="'+C(a)+'" vertex="1" parent="'+C(L||"1")+`">- <mxGeometry x="`+i+'" y="'+f+'" width="'+y+'" height="'+T+`" as="geometry"/>+`}var Ko=ee;function ye(r,n,e,f,a,h,B,H){return' <mxCell id="'+i(r)+'" value="'+i(n)+'" style="'+i(e)+'" vertex="1" parent="'+i(H||"1")+`">+ <mxGeometry x="`+f+'" y="'+a+'" width="'+h+'" height="'+B+`" as="geometry"/></mxCell>-`}function jr(r,s,a,i,f,y){return' <mxCell id="'+C(r)+'" value="'+d(s,a)+'" style="'+C(a)+'" edge="1" source="'+C(i)+'" target="'+C(f)+'" parent="'+C(y||"1")+`">+`}var _=ye;function O(r,n,e,f,a,h){return' <mxCell id="'+i(r)+'" value="'+M(n,e)+'" style="'+i(e)+'" edge="1" source="'+i(f)+'" target="'+i(a)+'" parent="'+i(h||"1")+`"><mxGeometry relative="1" as="geometry"/></mxCell>-`}function Zr(r,s){var a=r.participants,i=r.elements,f="",y=0,T=r.skin||{},L="",m="",K=O(T.sequencedividerbackgroundcolor)||"#EEEEEE",W=O(T.sequencedividerbordercolor)||"#000000",Y=O(T.sequencedividerfontcolor)||"#000000",Lr=O(T.sequencelifelinebackgroundcolor)||"#FFFFFF",mr=O(T.sequencearrowcolor||T.arrowcolor)||null,Rr=parseFloat(T.sequencearrowthickness||T.arrowthickness)||null,fe=parseFloat(T.sequencelinethickness||T.linethickness)||null,ie=(T.sequencemessagealign||"").toLowerCase(),Ir=r.hideStereotype===!0;function ir(ba){return ba+"_"+y++}var Le={};function Te(ba,dn,bn,On,Jn,Rn,Bl,Yl,_n,mn,tl){var Vn=Math.round((On+Rn)/2);if(On!==Rn){var sl=Le[On<Rn?_n:mn]||null,jn=Le[On<Rn?mn:_n]||null,un=Math.min(On,Rn)+4,bl=Math.max(On,Rn)-4;sl&&(un=Math.max(un,sl.x+sl.w+8)),jn&&(bl=Math.min(bl,jn.x-8)),un>bl?Vn=Math.round((un+bl)/2):Vn<un?Vn=Math.round(un):Vn>bl&&(Vn=Math.round(bl))}return' <mxCell id="'+C(ba)+'" value="'+(tl!=null?C(tl):d(dn,bn))+'" style="'+C(bn)+'" edge="1"'+(_n?' source="'+C(_n)+'"':"")+(mn?' target="'+C(mn)+'"':"")+` parent="1">- <mxGeometry x="`+Math.round(Yl*1e3)/1e3+`" relative="1" as="geometry">- <mxPoint x="`+On+'" y="'+Jn+`" as="sourcePoint"/>- <mxPoint x="`+Rn+'" y="'+Bl+`" as="targetPoint"/>+`}var t=17,o=18,v=5,u=9,l=7;function d(r){var n=/^(?:<#(\w+)>)?\|(.*)\|$/,e=[],f=null,a,h,B;for(a=0;a<r.length;a++){var H=n.exec(r[a]);if(H){var p=H[2].split("|"),U={fill:H[1]?P(H[1]):null,cells:[]};for(h=0;h<p.length;h++){var N=p[h].replace(/^\s+|\s+$/g,""),j={text:"",bold:!1,fill:null};N.charAt(0)==="="&&(j.bold=!0,N=N.substring(1).replace(/^\s+/,""));var Q=/^<#(\w+)>\s*/.exec(N);Q&&(j.fill=P(Q[1]),N=N.substring(Q[0].length)),j.text=N.replace(/^<[lrc]>\s*/,""),U.cells.push(j)}(f==null||f.kind!=="table")&&(f={kind:"table",rows:[]},e.push(f)),f.rows.push(U)}else(f==null||f.kind!=="text")&&(f={kind:"text",lines:[]},e.push(f)),f.lines.push(r[a])}var _r=0,Lr=0,er=!1;for(a=0;a<e.length;a++){var Qr=e[a];if(Qr.kind==="table"){for(er=!0,Qr.colW=[],h=0;h<Qr.rows.length;h++)for(B=0;B<Qr.rows[h].cells.length;B++){var Vr=Qr.rows[h].cells[B],he=Math.round(Er(D(Vr.text),14,Vr.bold)+u);Qr.colW[B]>=he||(Qr.colW[B]=he)}for(Qr.w=0,B=0;B<Qr.colW.length;B++)Qr.w+=Qr.colW[B];Qr.h=Qr.rows.length*o,Lr+=Qr.h+4}else{for(Qr.w=0,h=0;h<Qr.lines.length;h++)Qr.w=Math.max(Qr.w,Math.ceil(Er(D(Qr.lines[h]),14,!1)));Qr.h=Qr.lines.length*t,Lr+=Qr.h}_r=Math.max(_r,Qr.w)}return{blocks:e,contentW:_r,hasTable:er,w:Math.max(40,_r+2*v),h:Lr+2*v}}function b(r,n,e,f,a){var h=f("legend"),B="rounded=1;absoluteArcSize=1;arcSize=15;fillColor="+(a||"#DDDDDD")+";strokeColor=#000000;strokeWidth=1;fontColor=#000000;fontSize=14;align=left;verticalAlign=top;spacing=0;spacingLeft="+v+";spacingTop="+v+";whiteSpace=wrap;html=1;",H,p,U;if(!r.hasTable){var N=[];for(H=0;H<r.blocks.length;H++)N=N.concat(r.blocks[H].lines);return ye(h,V(N.join(`+`)),B,n,e,r.w,r.h,"1")}var j=Z(h,"",B+"container=1;collapsible=0;",n,e,r.w,r.h,"1"),Q=v;for(H=0;H<r.blocks.length;H++){var _r=r.blocks[H];if(_r.kind==="text"){j+=ye(f("legendtext"),V(_r.lines.join(`+`)),"text;html=1;strokeColor=none;fillColor=none;fontColor=#000000;fontSize=14;align=left;verticalAlign=top;spacing=0;whiteSpace=wrap;",v,Q,r.contentW,_r.h,h),Q+=_r.h;continue}Q+=2;var Lr=f("legendtable");for(j+=Z(Lr,"","shape=table;childLayout=tableLayout;container=1;collapsible=0;startSize=0;rowLines=1;fixedRows=1;resizeLast=1;fillColor=none;strokeColor=#000000;strokeWidth=1;fontSize=14;whiteSpace=wrap;",v,Q,_r.w,_r.h,h),p=0;p<_r.rows.length;p++){var er=_r.rows[p],Qr=f("legendrow");j+=Z(Qr,"","shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;collapsible=0;dropTarget=0;strokeColor=#000000;top=0;left=0;right=0;bottom=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fillColor="+(er.fill||"none")+";",0,p*o,_r.w,o,Lr);var Vr=0;for(U=0;U<_r.colW.length;U++){var he=er.cells[U]||{text:"",bold:!1,fill:null},zr=U===_r.colW.length-1,Jr=zr?_r.w-Vr:_r.colW[U];j+=ye(f("legendcell"),V(he.text),"shape=partialRectangle;connectable=0;overflow=hidden;fillColor="+(he.fill||"none")+";top=0;left=0;bottom=0;right="+(zr?0:1)+";strokeColor=#000000;whiteSpace=wrap;html=1;fontSize=14;fontColor=#000000;align=left;spacing=0;spacingLeft=4;verticalAlign=middle;"+(he.bold?"fontStyle=1;":""),Vr,0,Jr,o,Qr),Vr+=Jr}}Q+=_r.h+2}return j}function m(r,n){var e=r.participants,f=r.elements,a="",h=0,B=r.skin||{},H="",p="",U=P(B.sequencedividerbackgroundcolor)||"#EEEEEE",N=P(B.sequencedividerbordercolor)||"#000000",j=P(B.sequencedividerfontcolor)||"#000000",Q=P(B.sequencelifelinebackgroundcolor)||"#FFFFFF",_r=P(B.sequencearrowcolor||B.arrowcolor)||null,Lr=parseFloat(B.sequencearrowthickness||B.arrowthickness)||null,er=parseFloat(B.sequencelinethickness||B.linethickness)||null,Qr=(B.sequencemessagealign||"").toLowerCase(),Vr=r.hideStereotype===!0,he=r.styleSheet||null,zr=["fillColor","gradientColor"];function Jr(At){return At[0]==="document"?["root"].concat(At):["root","element","sequenceDiagram"].concat(At)}function br(At,Na,Fn,we,za){return s(At,he,Jr(Na),Fn||[],we||"vertex",za)}function Br(At){return At+"_"+h++}var Ie={};function To(At,Na,Fn,we,za,Za,Yn,Jn,bn,Wa,Mn){var Jl=Math.round((we+Za)/2);if(we!==Za){var Kl=Ie[we<Za?bn:Wa]||null,Da=Ie[we<Za?Wa:bn]||null,Oi=Math.min(we,Za)+4,Ql=Math.max(we,Za)-4;Kl&&(Oi=Math.max(Oi,Kl.x+Kl.w+8)),Da&&(Ql=Math.min(Ql,Da.x-8)),Oi>Ql?Jl=Math.round((Oi+Ql)/2):Jl<Oi?Jl=Math.round(Oi):Jl>Ql&&(Jl=Math.round(Ql))}return' <mxCell id="'+i(At)+'" value="'+(Mn!=null?i(Mn):M(Na,Fn))+'" style="'+i(Fn)+'" edge="1"'+(bn?' source="'+i(bn)+'"':"")+(Wa?' target="'+i(Wa)+'"':"")+` parent="1">+ <mxGeometry x="`+Math.round(Jn*1e3)/1e3+`" relative="1" as="geometry">+ <mxPoint x="`+we+'" y="'+za+`" as="sourcePoint"/>+ <mxPoint x="`+Za+'" y="'+Yn+`" as="targetPoint"/><Array as="points">- <mxPoint x="`+Vn+'" y="'+Jn+`"/>+ <mxPoint x="`+Jl+'" y="'+za+`"/></Array></mxGeometry></mxCell>-`}for(var Qr={},Br=0;Br<a.length;Br++)Qr[a[Br].id]=Br;var q=a.length;function ur(ba,dn){return ba!=null&&Qr.hasOwnProperty(ba)?Qr[ba]:dn}for(var Sr=[],Fr=[],Ee=[],ot=[],I=0;I<q;I++){var Tr=a[I],de=dr(Tr.name,14,!1),Wr=de+k,zt=v+15*Math.max(0,gr(Tr.name)-1);if(Tr.stereoLetter)Wr=Math.max(de,dr(Tr.stereotype||"",14,!1))+42,zt=52;else if(Tr.stereotype&&!Ir)Wr=Math.max(de,dr(Tr.stereotype,14,!1)+12)+k,zt=52;else if(Tr.bodyLines&&Tr.bodyLines.length>0){for(var Ue=0,Ne=14,Ze=0;Ze<Tr.bodyLines.length;Ze++){var Ut=Tr.bodyLines[Ze],Zt=/^=+\s*/.test(Ut),Be=Ut.replace(/^=+\s*/,"").replace(/^"{2}|"{2}$/g,"");Ue=Math.max(Ue,dr(Be,Zt?17:14,Zt)),Ne+=/^[-=.]{3,}$/.test(Ut)?8:Zt?24:19}Wr=Ue+k+10,zt=Math.max(v,Ne)}var he=0,Jr=0;Tr.kind==="actor"?(he=24,Jr=38):Tr.kind==="boundary"?(he=38,Jr=28):Tr.kind==="control"||Tr.kind==="entity"?(he=28,Jr=28):Tr.kind==="database"?(he=36,Jr=34):Tr.kind==="queue"?(he=44,Jr=22):Tr.kind==="collections"&&(Wr=de+24),he>0&&(Wr=Math.max(de,he),zt=Jr+19),Sr.push(Math.max(24,Wr)),Fr.push(zt),Ee.push(he),ot.push(Jr)}var me=v;for(I=0;I<q;I++)Fr[I]>me&&(me=Fr[I]);for(I=0;I<q;I++)Ee[I]===0&&!(a[I].bodyLines&&a[I].bodyLines.length>0)&&Fr[I]<me&&(Fr[I]=me);var ge=[],M=r.boxes||[];for(I=0;I<q;I++)ge.push(-1);for(var J=0;J<M.length;J++)for(var Cr=M[J].participants||[],br=0;br<Cr.length;br++)Qr.hasOwnProperty(Cr[br])&&(ge[Qr[Cr[br]]]=J);var $r=!1;for(I=0;I<q;I++)ge[I]>=0&&($r=!0);var vt=[];for(I=0;I+1<q;I++){var ht=S+($r&&ge[I]!==ge[I+1]?14:0);vt.push(Sr[I]/2+Sr[I+1]/2+ht)}var gt=[],X=0,ue=0;function ne(ba,dn,bn){if(!(ba===dn||ba==null||dn==null)){var On=Math.min(ba,dn),Jn=Math.max(ba,dn);Jn-On===1?bn>vt[On]&&(vt[On]=bn):gt.push({lo:On,hi:Jn,dist:bn})}}for(var Re=0,Tt=0,Se=0;Se<i.length;Se++){var qe=i[Se];if(qe.type==="message"){var ke=ur(qe.from,0),Er=ur(qe.to,0),Vt=qe.label||"";qe.number!=null&&(Vt=qe.number+" "+Vt);var Bt=dr(Vt,13,!1);if(ke===Er){var Ge=Bt+55;ke+1<q?ne(ke,ke+1,Ge):Ge-Sr[ke]/2>ue&&(ue=Ge-Sr[ke]/2)}else ne(ke,Er,Bt+Z),Re=Math.min(ke,Er),Tt=Math.max(ke,Er)}else if(qe.type==="note"){var ut=dr(qe.text||"",13,!1)+21,Gr=qe.over&&qe.over.length>0?ur(qe.over[0],null):null;if(qe.position==="left"){var re=Gr??Re;re<=0?ut+4-Sr[0]/2>X&&(X=ut+4-Sr[0]/2):ne(re-1,re,ut+9+Sr[re-1]/2)}else if(qe.position==="right"){var ee=Gr??Tt;ee>=q-1?q>0&&ut+4-Sr[q-1]/2>ue&&(ue=ut+4-Sr[q-1]/2):ne(ee,ee+1,ut+9+Sr[ee+1]/2)}else qe.over&&qe.over.length>1?ne(ur(qe.over[0],0),ur(qe.over[qe.over.length-1],0),ut-40):Gr!=null&&q>0&&(Gr===0&&ut/2-Sr[0]/2>X&&(X=ut/2-Sr[0]/2),Gr===q-1&&ut/2-Sr[q-1]/2>ue&&(ue=ut/2-Sr[q-1]/2))}}var Yr=[];if(q>0)for(Yr[0]=h+X+(ge[0]>=0?j:0)+Sr[0]/2,I=1;I<q;I++){for(var Et=Yr[I-1]+vt[I-1],da=0;da<gt.length;da++)gt[da].hi===I&&Yr[gt[da].lo]+gt[da].dist>Et&&(Et=Yr[gt[da].lo]+gt[da].dist);Yr[I]=Et}var He=q>0?Yr[q-1]+Sr[q-1]/2+(ge[q-1]>=0?j:0)+ue+h:120;for(Se=0;Se<i.length;Se++)if(i[Se].type==="divider"){var ct=dr(i[Se].label||"",13,!0)+57;ct>He&&(He=ct)}function Ke(ba){return Yr[ba]!=null?Yr[ba]:h}var Pa={},rn=h+($r?fr+1:0),za=rn+me,Ct=[],le=[];for(I=0;I<q;I++)Ct[I]=za,le[I]=null;var Xr=za+3,Dt=[],wt=[],Ve=[],tt=null;function jt(ba){for(var dn=0;dn<wt.length;dn++)ba<wt[dn].min&&(wt[dn].min=ba),ba>wt[dn].max&&(wt[dn].max=ba)}for(Se=0;Se<i.length;Se++){var Ur=i[Se],xr={el:Ur};switch(Dt.push(xr),Ur.type){case"message":{var kt=Ur.from!=null?ur(Ur.from,0):null,Aa=Ur.to!=null?ur(Ur.to,0):null;if(Ur.isReturn&&Ur.from==null){var Nr=Ve.length?Ve.pop():null;Nr!=null&&(kt=Nr.calleeIdx,Aa=Nr.callerIdx,xr.returnCloses=a[Nr.calleeIdx].id)}var Dr=Ur.label||"",Rt=null;if(Ur.number!=null){var mt=Ur.numberText!=null?Ur.numberText:String(Ur.number),wr=g(mt);wr!==mt&&(Rt=o(mt)+" "+p(Dr)),Dr=wr+" "+Dr}var at=gr(Dr);if(Ur.from!=null&&Ur.from===Ur.to){xr.kind="self",xr.outY=Xr+(at?17+vr*at:14),xr.backY=xr.outY+20,xr.idx=kt,xr.label=Dr,xr.labelHtml=Rt,Xr=xr.backY,jt(kt);break}xr.kind="msg",xr.fromIdx=kt,xr.toIdx=Aa,xr.fromEdge=Ur.fromEdge||null,xr.toEdge=Ur.toEdge||null,xr.label=Dr,xr.labelHtml=Rt;var we=Se+1<i.length?i[Se+1]:null;if(we!=null&&we.type==="note"&&(!we.over||we.over.length===0)&&(we.position==="left"||we.position==="right")){var va=gr(we.text)*U+9.3;xr.noteTop=Xr+13,xr.lineY=xr.noteTop+va/2+8,Xr=Math.max(xr.lineY,xr.noteTop+va)}else xr.lineY=Xr+(at?17+vr*at:14),Xr=xr.lineY;kt!=null&&jt(kt),Aa!=null&&jt(Aa);var ya=Pa[Ur.to]===!0?Ur.to:Pa[Ur.from]===!0?Ur.from:null;if(ya!=null){var qt=Qr[ya];xr.createIdx=qt,le[qt]=xr.lineY-23.7,Ct[qt]=le[qt]+Fr[qt],Pa[ya]=!1,Xr=Math.max(Xr,le[qt]+Fr[qt]+3)}tt=xr,Ur.activate&&Aa!==kt&&Ve.push({callerIdx:kt,calleeIdx:Aa});break}case"note":{var Sa=gr(Ur.text),Wt=Sa*U+9.3,Ga=(!Ur.over||Ur.over.length===0)&&(Ur.position==="left"||Ur.position==="right")&&Se>0&&i[Se-1].type==="message"&&i[Se-1].from!==i[Se-1].to;if(xr.h=Wt,Ga){xr.kind="noteAttached";var xt=Dt[Dt.length-2];xr.top=xt.noteTop!=null?xt.noteTop:xt.lineY!=null?xt.lineY-Wt/2-8:Xr+13,xr.anchorLo=xt.fromIdx!=null?Math.min(xt.fromIdx,xt.toIdx):0,xr.anchorHi=xt.fromIdx!=null?Math.max(xt.fromIdx,xt.toIdx):0}else if(xr.kind="note",xr.top=Xr+13,Xr=xr.top+Wt+2,Ur.over&&Ur.over.length)for(var pt=0;pt<Ur.over.length;pt++)jt(ur(Ur.over[pt],0));else Ur.position==="across"&&q>0&&(jt(0),jt(q-1));break}case"divider":{xr.kind="divider",xr.barY=Xr+31,Xr=xr.barY+13;break}case"delay":{xr.kind="delay",xr.top=Xr+8,xr.h=43,Xr=xr.top+xr.h-8;break}case"gap":{Xr+=Ur.h!=null?Ur.h:25;break}case"groupStart":{xr.kind="group",xr.groupKind=Ur.kind,xr.label=Ur.label||"",xr.color=Ur.color||null,xr.headColor=Ur.headColor||null,xr.top=Xr+15,xr.min=q,xr.max=-1,xr.elses=[],wt.push(xr),Xr=xr.top+11.5;break}case"groupElse":{var Ta=wt.length?wt[wt.length-1]:null,Ca=Xr+9;Ta?.elses.push({y:Ca,label:Ur.label||""}),Xr=Ca-7+(Ur.label?15.3:0);break}case"groupEnd":{var Mt=wt.pop();Mt!=null&&(Mt.bottom=Xr+8,Xr=Mt.bottom-1);break}case"ref":{if(xr.kind="ref",xr.top=Xr+11,xr.h=44+Math.max(0,gr(Ur.label)-1)*vr,Xr=xr.top+xr.h-3,Ur.over&&Ur.over.length)for(var Lt=0;Lt<Ur.over.length;Lt++)jt(ur(Ur.over[Lt],0));break}case"create":{Ur.participant!=null&&(Pa[Ur.participant]=!0);break}case"activate":case"deactivate":case"destroy":{xr.kind=Ur.type,xr.y=Xr;var Je=ur(Ur.participant,null);if(Ur.type==="activate"&&Je!=null&&tt!=null&&tt.toIdx===Je&&tt.fromIdx!==Je)Ve.push({callerIdx:tt.fromIdx,calleeIdx:Je});else if(Ur.type!=="activate"&&Je!=null){for(var $t=Ve.length-1;$t>=0;$t--)if(Ve[$t].calleeIdx===Je){Ve.splice($t,1);break}}break}default:break}}for(;wt.length;){var wa=wt.pop();wa.bottom=Xr+8,Xr=wa.bottom-1}var Ba=Xr+G,nt={};for(I=0;I<q;I++)nt[a[I].id]=[];function Ra(ba){for(var dn=nt[ba],bn=0,On=0;On<dn.length;On++)dn[On].end==null&&bn++;return bn}for(var Ha=0;Ha<Dt.length;Ha++){var it=Dt[Ha];if(it.kind==="activate"&&it.el.participant!=null&&nt.hasOwnProperty(it.el.participant))nt[it.el.participant].push({start:it.y,end:null,depth:Ra(it.el.participant),color:it.el.color});else if(it.kind==="deactivate"&&it.el.participant!=null&&nt.hasOwnProperty(it.el.participant)){for(var ta=nt[it.el.participant],Ea=ta.length-1;Ea>=0;Ea--)if(ta[Ea].end==null){ta[Ea].end=it.y;break}}else if(it.kind==="destroy"&&it.el.participant!=null&&nt.hasOwnProperty(it.el.participant))for(var ua=nt[it.el.participant],ha=0;ha<ua.length;ha++)ua[ha].end==null&&(ua[ha].end=it.y);else if(it.kind==="msg"&&it.returnCloses!=null&&nt.hasOwnProperty(it.returnCloses)){for(var Nt=nt[it.returnCloses],tr=Nt.length-1;tr>=0;tr--)if(Nt[tr].end==null){Nt[tr].end=it.lineY;break}}else if(it.kind==="msg"){if(it.el.deactivate&&it.el.from!=null&&nt.hasOwnProperty(it.el.from)){for(var pr=nt[it.el.from],rr=pr.length-1;rr>=0;rr--)if(pr[rr].end==null){pr[rr].end=it.lineY;break}}it.el.activate&&it.el.to!=null&&nt.hasOwnProperty(it.el.to)&&nt[it.el.to].push({start:it.lineY,end:null,depth:Ra(it.el.to),color:it.el.activateColor})}}function er(ba,dn){if(ba==null||ba<0||ba>=q)return 0;for(var bn=nt[a[ba].id]||[],On=0,Jn=0;Jn<bn.length;Jn++){var Rn=bn[Jn].end!=null?bn[Jn].end:Ba;if(bn[Jn].start-1<=dn&&dn<=Rn+1){var Bl=5+bn[Jn].depth*5;Bl>On&&(On=Bl)}}return On}for(I=0;I<q;I++)for(var Ar=nt[a[I].id]||[],se=0;se<Ar.length;se++)Ar[se].cellId=ir("act");var kr=[],xe=[];function Kr(ba,dn){if(ba==null||ba<0||ba>=q)return null;for(var bn=nt[a[ba].id]||[],On=null,Jn=-1,Rn=0;Rn<bn.length;Rn++){var Bl=bn[Rn].end!=null?bn[Rn].end:Ba;bn[Rn].start-1<=dn&&dn<=Bl+1&&bn[Rn].depth>Jn&&bn[Rn].cellId&&(On=bn[Rn].cellId,Jn=bn[Rn].depth)}return On||(kr[ba]&&dn>=xe[ba]&&dn<=Ba?kr[ba]:null)}if($r)for(J=0;J<M.length;J++){var oe=null,Kt=null,ga=M[J].participants||[];for(br=0;br<ga.length;br++)if(Qr.hasOwnProperty(ga[br])){var Fe=Qr[ga[br]];(oe===null||Fe<oe)&&(oe=Fe),(Kt===null||Fe>Kt)&&(Kt=Fe)}if(oe!==null){var Da=Yr[oe]-Sr[oe]/2-j,It=Yr[Kt]+Sr[Kt]/2+j,dt=O(M[J].color)||"#DDDDDD";f+=u(ir("boxfr"),M[J].label||"","rounded=0;fillColor="+dt+";strokeColor=#181818;strokeWidth=0.5;fontSize=14;fontColor=#000000;verticalAlign=top;align=center;spacingTop=2;html=1;whiteSpace=wrap;",Da,h+1,It-Da,Ba+me+5-(h+1),"1")}}for(I=0;I<q;I++){var Me=a[I];if(Ee[I]===0&&Me.kind!=="collections"){var At=le[I]!=null?le[I]:za-Fr[I],sa=or(Me,r.monochrome,!1).replace("shape=rectangle;",""),Gt="shape=umlLifeline;perimeter=lifelinePerimeter;size="+Fr[I]+";lifelineMirror=1;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;"+sa+(Me.stereoLetter?"spacingLeft=24;":"")+(fe?"strokeWidth="+fe+";":""),Yt=Yr[I]-Sr[I]/2,St=Ba+Fr[I]-At,st=ir("p");kr[I]=st,Le[st]={x:Yt,w:Sr[I]},xe[I]=At+Fr[I],Me.stereotype&&!Ir?f+=Hr(st,"<i>\xAB"+w(Me.stereotype)+"\xBB</i><br>"+w(Me.name),Gt,Yt,At,Sr[I],St,"1"):Me.bodyLines&&Me.bodyLines.length>0?f+=Hr(st,lr(Me.bodyLines),Gt,Yt,At,Sr[I],St,"1"):f+=u(st,Me.name,Gt,Yt,At,Sr[I],St,"1"),Me.stereoLetter&&Me.stereoColor&&(f+=u(ir("ps"),Me.stereoLetter,"ellipse;fillColor="+Me.stereoColor+";strokeColor=#181818;strokeWidth=1;fontSize=12;fontColor=#000000;align=center;verticalAlign=middle;",Yt+7,At+7,22,22,"1"));continue}f+=z(ir("life"),"","endArrow=none;html=1;strokeColor=#181818;strokeWidth=0.5;dashed=1;dashPattern=5 5;",Ke(I),Ct[I],Ke(I),Ba+1,"1")}for(Ha=0;Ha<Dt.length;Ha++){var Ye=Dt[Ha];if(Ye.kind==="group"){var $e,bt;Ye.min<=Ye.max?($e=Yr[Ye.min]-Sr[Ye.min]/2-10,bt=Yr[Ye.max]+Sr[Ye.max]/2+10):($e=h+5,bt=He-h-5),$e<1&&($e=1);for(var aa=0;aa<Dt.length;aa++){var ka=Dt[aa];if(ka.kind==="self"&&ka.label&&ka.outY>=Ye.top&&ka.backY<=Ye.bottom){var Fa=Ke(ka.idx)+7+dr(ka.label,13,!1)+6+10;Fa>bt&&(bt=Fa)}}var Oe=Ye.groupKind==="group"&&Ye.label,na=Oe?Ye.label:Ye.groupKind||"",ja=Oe?"":Ye.label,an=Math.max(55,dr(na,13,!0)+40),Xt=ja?dr("["+ja+"]",11,!0):0;bt<$e+an+Xt+30&&(bt=$e+an+Xt+30),Ye.color&&O(Ye.color)&&(m+=u(ir("grpbg"),"","rounded=0;fillColor="+O(Ye.color)+";strokeColor=none;",$e,Ye.top,bt-$e,Ye.bottom-Ye.top,"1")),f+=u(ir("grpframe"),"","rounded=0;fillColor=none;strokeColor=#000000;strokeWidth="+(fe||1.5)+";",$e,Ye.top,bt-$e,Ye.bottom-Ye.top,"1"),f+=u(ir("grptab"),na,"rounded=0;fillColor="+(Ye.headColor&&O(Ye.headColor)?O(Ye.headColor):"#EEEEEE")+";strokeColor=#000000;strokeWidth=1.5;fontColor=#000000;fontSize=13;fontStyle=1;align=left;spacingLeft=10;verticalAlign=middle;html=1;",$e,Ye.top,an,19.7,"1"),ja&&(f+=u(ir("grpcond"),"["+ja+"]","text;html=1;fontColor=#000000;fontSize=11;fontStyle=1;align=left;verticalAlign=middle;",$e+an+10,Ye.top+3,Xt+8,15,"1"));for(var gn=0;gn<Ye.elses.length;gn++){var Xe=Ye.elses[gn];f+=z(ir("grpelse"),"","endArrow=none;html=1;strokeColor=#000000;strokeWidth=1;dashed=1;dashPattern=2 2;",$e,Xe.y,bt,Xe.y,"1"),Xe.label&&(f+=u(ir("grpelselbl"),"["+Xe.label+"]","text;html=1;fontColor=#000000;fontSize=11;fontStyle=1;align=left;verticalAlign=middle;",$e+5,Xe.y+2,dr("["+Xe.label+"]",11,!0)+8,15,"1"))}}}for(Ha=0;Ha<Dt.length;Ha++){var sr=Dt[Ha],cr=sr.el;switch(sr.kind){case"msg":{var te=sr.fromEdge?sr.fromEdge==="left"?6:He-8:Ke(sr.fromIdx),Ie=sr.toEdge?sr.toEdge==="left"?6:He-8:Ke(sr.toIdx),rt=Ie>=te?1:-1,ce=te+(sr.fromIdx!=null?rt*er(sr.fromIdx,sr.lineY):0),lt=Ie-(sr.toIdx!=null?rt*er(sr.toIdx,sr.lineY):0);sr.createIdx!=null&&sr.toIdx===sr.createIdx&&(lt=Ie-rt*(Sr[sr.toIdx]/2+2)),cr.headDecor==="circle"||cr.arrowHead==="circle"?(lt=Ie-rt*8,f+=u(ir("tipdot"),"","ellipse;fillColor="+(O(cr.color)||"#181818")+";strokeColor=none;",Ie-5,sr.lineY-5,10,10,"1")):cr.arrowHead==="lost"&&(lt=Ie-rt*6),cr.tailDecor==="circle"?(ce=te+rt*8,f+=u(ir("taildot"),"","ellipse;fillColor="+(O(cr.color)||"#181818")+";strokeColor=none;",te-5,sr.lineY-5,10,10,"1")):cr.tailDecor==="lost"&&(ce=te+rt*6);var Ot=ar(cr.arrowHead)+"html=1;rounded=0;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;strokeColor="+(O(cr.color)||mr||"#181818")+";strokeWidth="+(Rr||1)+";fontColor=#000000;fontSize=13;verticalAlign=bottom;labelBackgroundColor=none;";cr.lineStyle==="dashed"?Ot+="dashed=1;dashPattern=2 2;":cr.lineStyle==="dotted"&&(Ot+="dashed=1;dashPattern=1 3;"),cr.tailDecor==="lost"&&(Ot+="startArrow=cross;startSize=12;");var la=0;if(sr.label&<!==ce&&ie!=="center"){var Ua=Math.min(ce,lt),oa=dr(sr.label,13,!1),Pt=ie==="right"?Math.max(ce,lt)-7-oa/2:Ua+(rt>0?7:17)+oa/2;(Pt>Math.max(ce,lt)-4||Pt-oa/2<Ua+4)&&(Pt=(ce+lt)/2),la=2*(Pt-ce)/(lt-ce)-1}var yt=sr.fromEdge?null:Kr(sr.fromIdx,sr.lineY),fa=sr.toEdge||sr.createIdx!=null&&sr.toIdx===sr.createIdx||cr.headDecor==="circle"||cr.arrowHead==="circle"||cr.arrowHead==="lost"?null:Kr(sr.toIdx,sr.lineY);f+=Te(ir("msg"),sr.label,Ot,ce,sr.lineY,lt,sr.lineY,la,yt,fa,sr.labelHtml);break}case"self":{var ft=Ke(sr.idx)+er(sr.idx,sr.outY),pa=38,cn=O(cr.color)||mr||"#181818",$a="html=1;strokeColor="+cn+";strokeWidth="+(Rr||1)+";";if(cr.lineStyle==="dashed"&&($a+="dashed=1;dashPattern=2 2;"),f+=z(ir("msg"),"","endArrow=none;"+$a,ft,sr.outY,ft+pa,sr.outY,"1"),f+=z(ir("msg"),"","endArrow=none;"+$a,ft+pa,sr.outY,ft+pa,sr.backY,"1"),f+=z(ir("msg"),"",ar(cr.arrowHead)+$a,ft+pa,sr.backY,ft+3,sr.backY,"1"),sr.label){var nn=gr(sr.label),An=nn*vr+3,tn="text;html=1;fontColor=#000000;fontSize=13;align=left;verticalAlign=middle;",qa=dr(sr.label,13,!1)+6;f+=sr.labelHtml!=null?Hr(ir("msglbl"),sr.labelHtml,tn,Ke(sr.idx)+7,sr.outY-An-2,qa,An,"1"):u(ir("msglbl"),sr.label,tn,Ke(sr.idx)+7,sr.outY-An-2,qa,An,"1")}break}case"note":case"noteAttached":{var ra=dr(cr.text||"",13,!1)+21;cr.shape==="hexagon"&&(ra+=20);var Ja,pn=cr.over&&cr.over.length>0?ur(cr.over[0],0):null;if(cr.position==="across"&&q>0){var Fn=Ke(0),En=Ke(q-1);ra<En-Fn+50&&(ra=En-Fn+50),Ja=(Fn+En)/2-ra/2}else if(cr.position==="left"){var Ma=pn??(sr.anchorLo!=null?sr.anchorLo:0);Ja=Ke(Ma)-4-ra}else if(cr.position==="right"){var Dn=pn??(sr.anchorHi!=null?sr.anchorHi:0);Ja=Ke(Dn)+5}else if(cr.over&&cr.over.length>1){var ln=Ke(ur(cr.over[0],0)),el=Ke(ur(cr.over[cr.over.length-1],0));if(el<ln){var on=ln;ln=el,el=on}ra<el-ln+40&&(ra=el-ln+40),Ja=(ln+el)/2-ra/2}else Ja=Ke(pn??0)-ra/2;var Cn=O(cr.color)||(r.monochrome?"#E3E3E3":"#FEFFDD"),$n;cr.shape==="box"?$n="rounded=0;fillColor="+Cn+";strokeColor=#181818;strokeWidth=0.5;":cr.shape==="hexagon"?$n="shape=hexagon;size=10;fixedSize=1;fillColor="+Cn+";strokeColor=#181818;strokeWidth=0.5;":$n="shape=note;size=10;fillColor="+Cn+";strokeColor=#181818;strokeWidth=0.5;",$n+="fontColor=#000000;fontSize=13;align=left;spacingLeft=4;spacing=2;verticalAlign=middle;whiteSpace=wrap;html=1;",L+=u(ir("note"),cr.text||"",$n,Ja,sr.top,ra,sr.h,"1");break}case"divider":{L+=z(ir("divbar"),"","endArrow=none;html=1;strokeColor="+W+";strokeWidth=1;",0,sr.barY,He,sr.barY,"1"),L+=z(ir("divbar"),"","endArrow=none;html=1;strokeColor="+W+";strokeWidth=1;",0,sr.barY+3,He,sr.barY+3,"1");var pl=cr.label||"",sn=dr(pl,13,!0)+17;L+=u(ir("div"),pl,"rounded=0;fillColor="+K+";strokeColor="+W+";strokeWidth=2;fontColor="+Y+";fontSize=13;fontStyle=1;align=center;verticalAlign=middle;html=1;",(He-sn)/2,sr.barY-12.9,sn,25.7,"1");break}case"delay":{for(I=0;I<q;I++)f+=z(ir("dllife"),"","endArrow=none;html=1;strokeColor=#A80036;strokeWidth=1;dashed=1;dashPattern=1 4;",Ke(I),sr.top,Ke(I),sr.top+sr.h,"1");cr.label&&(f+=u(ir("delay"),cr.label,"text;html=1;fontColor=#000000;fontSize=11;align=center;verticalAlign=middle;",0,sr.top+sr.h/2-8,He,16,"1"));break}case"ref":{var ia=0,fn=q>0?q-1:0;if(cr.over&&cr.over.length>0&&(ia=ur(cr.over[0],0),fn=ur(cr.over[cr.over.length-1],ia),fn<ia)){var vn=ia;ia=fn,fn=vn}var Mn=Ke(ia)-25,ll=Ke(fn)+25-Mn,ol=dr(cr.label||"",12,!1);ll<ol+60&&(ll=ol+60),f+=u(ir("refframe"),"","rounded=0;fillColor=none;strokeColor=#000000;strokeWidth=1.5;",Mn,sr.top,ll,sr.h,"1"),f+=u(ir("reftab"),"ref","rounded=0;fillColor=#EEEEEE;strokeColor=#000000;strokeWidth=2;fontColor=#000000;fontSize=13;fontStyle=1;align=left;spacingLeft=10;verticalAlign=middle;html=1;",Mn,sr.top,63,19,"1"),f+=u(ir("reflbl"),cr.label||"","text;html=1;fontColor=#000000;fontSize=12;align=center;verticalAlign=middle;",Mn,sr.top+21,ll,sr.h-23,"1");break}case"destroy":{var il=Ke(ur(cr.participant,0));f+=z(ir("destx1"),"","endArrow=none;html=1;strokeColor=#A80036;strokeWidth=2;",il-9,sr.y-9,il+9,sr.y+9,"1"),f+=z(ir("destx2"),"","endArrow=none;html=1;strokeColor=#A80036;strokeWidth=2;",il-9,sr.y+9,il+9,sr.y-9,"1");break}default:break}}for(I=0;I<q;I++)for(var In=nt[a[I].id],Yn=0;Yn<In.length;Yn++){var wn=In[Yn],cl=wn.end!=null?wn.end:Ba,yl=O(wn.color)||Lr;f+=u(wn.cellId||ir("act"),"","rounded=0;fillColor="+yl+";strokeColor=#181818;strokeWidth=1;points=[];perimeter=orthogonalPerimeter;outlineConnect=0;portConstraint=eastwest;",Ke(I)-5+wn.depth*5,wn.start,10,Math.max(6,cl-wn.start),"1")}for(f+=L,f=m+f,I=0;I<q;I++){var je=a[I],Cl=Yr[I]-Sr[I]/2,El=le[I]!=null?le[I]:za-Fr[I],Xn=je.name,lo=null;je.stereotype&&!Ir?lo="<i>\xAB"+w(je.stereotype)+"\xBB</i><br>"+w(je.name):je.bodyLines&&je.bodyLines.length>0&&(lo=lr(je.bodyLines));for(var $l=[El,Ba],Bn=0;Bn<$l.length;Bn++){if(Ee[I]===0&&je.kind!=="collections"){Bn===1&&je.stereoLetter&&je.stereoColor&&(f+=u(ir("psf"),je.stereoLetter,"ellipse;fillColor="+je.stereoColor+";strokeColor=#181818;strokeWidth=1;fontSize=12;fontColor=#000000;align=center;verticalAlign=middle;",Cl+7,$l[Bn]+7,22,22,"1"));continue}var Nl=or(je,r.monochrome,Bn===1);if(Ee[I]>0){var Wa=Bn===0?$l[Bn]:$l[Bn]+(Fr[I]-ot[I]);f+=u(ir(Bn===0?"p":"pf"),Xn,Nl,Yr[I]-Ee[I]/2,Wa,Ee[I],ot[I],"1");continue}je.kind==="collections"&&(f+=u(ir(Bn===0?"pc":"pcf"),"","rounded=0;fillColor="+(O(je.color)||(r.monochrome?"#E3E3E3":"#E2E2F0"))+";strokeColor=#181818;strokeWidth=0.5;",Cl+4,$l[Bn]-4,Sr[I],Fr[I],"1")),lo!=null?f+=Hr(ir(Bn===0?"p":"pf"),lo,Nl+(je.stereoLetter?"spacingLeft=24;":""),Cl,$l[Bn],Sr[I],Fr[I],"1"):f+=u(ir(Bn===0?"p":"pf"),Xn,Nl,Cl,$l[Bn],Sr[I],Fr[I],"1"),je.stereoLetter&&je.stereoColor&&(f+=u(ir(Bn===0?"ps":"psf"),je.stereoLetter,"ellipse;fillColor="+je.stereoColor+";strokeColor=#181818;strokeWidth=1;fontSize=12;fontColor=#000000;align=center;verticalAlign=middle;",Cl+7,$l[Bn]+7,22,22,"1"))}}var Kl=Ba;if(r.legend&&r.legend.lines&&r.legend.lines.length){for(var oo=[],Ol=40,Qa=0;Qa<r.legend.lines.length;Qa++){var ca=r.legend.lines[Qa];/^\|.*\|$/.test(ca)&&(ca=ca.replace(/^\|\s*|\s*\|$/g,"").split("|").map(function(ba){return ba.replace(/^\s+|\s+$/g,"").replace(/^=/,"")}).join(" ")),oo.push(ca),Ol=Math.max(Ol,dr(ca,12,!1)+26)}for(var Il=oo.length*17+12,xl=Ba+50,Dl=0,Gn=0;Gn<q;Gn++)Fr[Gn]>Dl&&(Dl=Fr[Gn]);xl=Ba+Dl+8;var Io=r.legend.position==="left"?h:r.legend.position==="right"?Math.max(h,He-h-Ol):Math.max(h,(He-Ol)/2);f+=u(ir("legend"),oo.join(`-`),"rounded=0;fillColor=#DDDDDD;strokeColor=#000000;strokeWidth=1;fontColor=#000000;fontSize=12;align=left;spacingLeft=8;verticalAlign=middle;whiteSpace=wrap;html=1;",Io,xl,Ol,Il,"1"),Kl=xl+Il}if(r.title){var So=dr(r.title,14,!0)+10;f+=u(ir("title"),r.title,"text;html=1;fillColor=none;strokeColor=none;fontSize=14;fontStyle=1;fontColor=#000000;align=center;verticalAlign=middle;",(He-So)/2,-34,So,24,"1")}if(r.header){var Pl=dr(r.header,11,!1)+8;f+=u(ir("header"),r.header,"text;html=1;fillColor=none;strokeColor=none;fontSize=11;fontColor=#888888;align=right;verticalAlign=middle;",He-h-Pl,r.title?-56:-34,Pl,18,"1")}if(r.caption||r.footer){for(var wl=0,Hn=0;Hn<q;Hn++)Fr[Hn]>wl&&(wl=Fr[Hn]);var Zl=Math.max(Ba+wl+8,Kl+6);if(r.caption){var Po=dr(r.caption,14,!1)+10;f+=u(ir("caption"),r.caption,"text;html=1;fillColor=none;strokeColor=none;fontSize=14;fontColor=#000000;align=center;verticalAlign=middle;",(He-Po)/2,Zl,Po,22,"1"),Zl+=26}if(r.footer){var ko=dr(r.footer,11,!1)+8;f+=u(ir("footer"),r.footer,"text;html=1;fillColor=none;strokeColor=none;fontSize=11;fontColor=#888888;align=center;verticalAlign=middle;",(He-ko)/2,Zl,ko,18,"1")}}return f}var Pe=120,Ae=40,be=60,Mr=60,Pr=30,_e=20,Qt=24,_t=80,b=6,$=30,P=28,x=16,t=20,e=26,n=50,l=45,A=46;function D(r){switch(r.kind){case"initial":return"ellipse;fillColor=#222222;strokeColor=#222222;";case"final":return"shape=endState;fillColor=#222222;strokeColor=#222222;";case"fork":case"join":return"shape=rectangle;fillColor=#555555;strokeColor=#555555;";case"choice":return"rhombus;fillColor=#F1F1F1;strokeColor=#181818;";case"start":return"ellipse;fillColor=#222222;strokeColor=#222222;";case"end":return"shape=endState;fillColor=#222222;strokeColor=#222222;";case"history_shallow":return"ellipse;fillColor=#F1F1F1;strokeColor=#181818;fontStyle=1;fontSize=14;";case"history_deep":return"ellipse;fillColor=#F1F1F1;strokeColor=#181818;fontStyle=1;fontSize=14;";case"entrypoint":return"ellipse;fillColor=#FFFFFF;strokeColor=#181818;strokeWidth=1.5;verticalLabelPosition=top;verticalAlign=bottom;fontSize=12;";case"exitpoint":return"shape=doubleCircle;fillColor=none;strokeColor=#222222;verticalLabelPosition=bottom;verticalAlign=top;fontSize=12;";default:var s=O(r.color)||"#F1F1F1";return"rounded=1;absoluteArcSize=1;arcSize=25;fillColor="+s+";strokeColor=#181818;whiteSpace=wrap;align=center;"}}function V(r){switch(r.kind){case"initial":case"start":return{w:_e,h:_e};case"final":case"end":return{w:Qt,h:Qt};case"fork":case"join":return{w:_t,h:b};case"choice":return{w:$,h:$};case"history_shallow":case"history_deep":return{w:P,h:P};case"entrypoint":return{w:_e,h:_e};case"exitpoint":return{w:Qt,h:Qt};default:{var s=n,a=0;if(r.description&&r.description.length>0){s=e+r.description.length*x+14;for(var i=0;i<r.description.length;i++)r.description[i].length>a&&(a=r.description[i].length)}var f=r.name?r.name.length:0,y=Math.max(50,Math.ceil(f*6.5)+20,Math.ceil(a*5.6)+20);if(r.children&&r.children.length>0){var T=Q(r);y=Math.max(y,T.w),s=T.h}return{w:y,h:s}}}}function Q(r){var s=t,a=e,i=r.regions&&r.regions.length>0?r.regions:[{states:r.children||[]}],f=[],y=[],T=r.name?r.name.length:0,L,m,K;if(r.regionSep==="|"&&i.length>1){var W=s,Y=a+s;for(L=0;L<i.length;L++){var Lr=i[L].states||[],mr=0,Rr=a+s;for(m=0;m<Lr.length;m++){var fe=V(Lr[m]);fe.w>mr&&(mr=fe.w)}for(m=0;m<Lr.length;m++)K=V(Lr[m]),f.push({state:Lr[m],x:W+(mr-K.w)/2,y:Rr,w:K.w,h:K.h}),Rr+=K.h,m<Lr.length-1&&(Rr+=l);Rr>Y&&(Y=Rr),W+=mr,L<i.length-1&&(y.push(W+A/2),W+=A)}return{w:Math.max(W+s,Math.ceil(T*6.5)+24),h:Y+s,placements:f,seps:y,sepDir:"v"}}var ie=0,Ir=a+s;for(L=0;L<i.length;L++){var ir=i[L].states||[];for(m=0;m<ir.length;m++){var Le=V(ir[m]);Le.w>ie&&(ie=Le.w)}for(m=0;m<ir.length;m++)K=V(ir[m]),f.push({state:ir[m],x:0,y:Ir,w:K.w,h:K.h}),Ir+=K.h,m<ir.length-1&&(Ir+=l);L<i.length-1&&(y.push(Ir+A/2),Ir+=A)}for(var Te=Math.max(ie+s*2,Math.ceil(T*6.5)+24),Qr=Ir+s,Br=0;Br<f.length;Br++)f[Br].x=(Te-f[Br].w)/2;return{w:Te,h:Qr,placements:f,seps:y,sepDir:"h"}}function yr(r){switch(r.kind){case"initial":case"start":case"final":case"end":case"fork":case"join":return"";case"history_shallow":return"H";case"history_deep":return"H*";case"choice":return"";case"entrypoint":case"exitpoint":return r.name;default:return r.name}}function hr(r,s){var a=r.states,i=r.transitions,f=r.notes,y="",T=0;function L(Pt){return Pt+"_"+T++}var m={};function K(Pt){for(var yt=Pt?String(Pt).split(`-`):[""],fa=0,ft=0;ft<yt.length;ft++)yt[ft].length>fa&&(fa=yt[ft].length);return{w:Math.max(50,Math.ceil(fa*6)+21),h:Math.max(24,Math.round(yt.length*17.7+10))}}for(var W={},Y=0;Y<a.length;Y++)W[a[Y].id]=!0;for(var Lr={},mr={},Y=0;Y<a.length;Y++)Lr[a[Y].id]=[],mr[a[Y].id]=0;var Rr={};(function Pt(yt,fa){for(var ft=0;ft<yt.length;ft++){var pa=yt[ft],cn=fa||pa.id;if(fa&&(Rr[pa.id]=fa),pa.children&&Pt(pa.children,cn),pa.regions)for(var $a=0;$a<pa.regions.length;$a++)Pt(pa.regions[$a].children||[],cn)}})(a,null);for(var fe=0;fe<i.length;fe++){var ie=i[fe],Ir=W[ie.from]?ie.from:Rr[ie.from],ir=W[ie.to]?ie.to:Rr[ie.to];if(!(!Ir||!ir||!W[Ir]||!W[ir]||Ir===ir)&&!(ie.direction==="left"||ie.direction==="right")){if(ie.direction==="up"){Lr[ir].push(Ir),mr[Ir]++;continue}Lr[Ir].push(ir),mr[ir]++}}var Le="",Te={},Qr;for(Qr=0;Qr<a.length;Qr++)for(var Br=a[Qr].id,q=Lr[Br]||[],ur=0;ur<q.length;ur++){var Sr=Br+Le+q[ur];Te[Sr]=(Te[Sr]||0)+1}var Fr={},Ee={};for(Qr=0;Qr<a.length;Qr++)Fr[a[Qr].id]=[],Ee[a[Qr].id]=0;for(Qr=0;Qr<a.length;Qr++)for(var ot=a[Qr].id,I=Lr[ot]||[],Tr=0;Tr<I.length;Tr++){var de=I[Tr],Wr=Te[ot+Le+de]||0,zt=Te[de+Le+ot]||0;zt>Wr||(Fr[ot].push(de),Ee[de]++)}Lr=Fr,mr=Ee;for(var Ue={},Ne={},Ze="",Ut=0;Ut<a.length;Ut++)Ne[a[Ut].id]=0;function Zt(Pt){var yt=[{node:Pt,idx:0}];for(Ne[Pt]=1;yt.length>0;){var fa=yt[yt.length-1],ft=Lr[fa.node]||[];if(fa.idx<ft.length){var pa=ft[fa.idx++];Ne[pa]===1?Ue[fa.node+Ze+pa]=!0:Ne[pa]===0&&(Ne[pa]=1,yt.push({node:pa,idx:0}))}else Ne[fa.node]=2,yt.pop()}}for(var Be=0;Be<a.length;Be++)mr[a[Be].id]===0&&Ne[a[Be].id]===0&&Zt(a[Be].id);for(var Be=0;Be<a.length;Be++)Ne[a[Be].id]===0&&Zt(a[Be].id);for(var he={},Jr=0;Jr<a.length;Jr++)he[a[Jr].id]=0;for(var me=0;me<a.length;me++)for(var ge=a[me].id,M=Lr[ge]||[],J=0;J<M.length;J++)Ue[ge+Ze+M[J]]||he[M[J]]++;for(var Cr={},br=[],$r=0;$r<a.length;$r++)Cr[a[$r].id]=0,he[a[$r].id]===0&&br.push(a[$r].id);for(var vt=a.length*a.length+16;br.length>0&&vt-- >0;)for(var ht=br.shift(),gt=Lr[ht]||[],X=0;X<gt.length;X++){var ue=gt[X];Ue[ht+Ze+ue]||(Cr[ue]<Cr[ht]+1&&(Cr[ue]=Cr[ht]+1),--he[ue]===0&&br.push(ue))}for(var ne={},Re=[],Y=0;Y<a.length;Y++){var Tt=Cr[a[Y].id];ne[Tt]||(ne[Tt]=[],Re.push(Tt)),ne[Tt].push(a[Y])}Re.sort(function(Pt,yt){return Pt-yt});for(var Se=0;Se<i.length;Se++){var qe=i[Se];if(!(qe.direction!=="left"&&qe.direction!=="right")&&!(Cr[qe.from]===void 0||Cr[qe.from]!==Cr[qe.to])){for(var ke=ne[Cr[qe.from]],Er=-1,Vt=-1,Bt=0;Bt<ke.length;Bt++)ke[Bt].id===qe.from&&(Er=Bt),ke[Bt].id===qe.to&&(Vt=Bt);if(!(Er<0||Vt<0)){if(qe.direction==="left"&&Vt>Er){var Ge=ke.splice(Vt,1)[0];ke.splice(Er,0,Ge)}else if(qe.direction==="right"&&Vt<Er){var ut=ke.splice(Vt,1)[0];ke.splice(Er,0,ut)}}}}for(var Gr={},re=0;re<a.length;re++){var ee=a[re],Yr=V(ee),Et={w:Yr.w,h:Yr.h};ee.children&&ee.children.length>0&&(Et.layout=Q(ee)),Gr[ee.id]=Et}for(var da=r.direction==="LR",He=0,ct=0;ct<f.length;ct++)if(f[ct].position!=="right"){var Ke=K(f[ct].text);Ke.w+10>He&&(He=Ke.w+10)}for(var Pa=[],rn=[],za=0,Ct=0,le=0;le<Re.length;le++){for(var Xr=ne[Re[le]],Dt=0,wt=0,Ve=0;Ve<Xr.length;Ve++)Dt+=Gr[Xr[Ve].id].w,wt+=Gr[Xr[Ve].id].h;Dt+=(Xr.length-1)*be,wt+=(Xr.length-1)*Mr,Pa[le]=Dt,rn[le]=wt,Dt>za&&(za=Dt),wt>Ct&&(Ct=wt)}var tt=[],jt=!1;if(da)for(var Ur=0;Ur<a.length;Ur++){var xr=a[Ur].kind;(xr==="initial"||xr==="start")&&(jt=!0)}for(var kt=jt?_e+Mr:0,Aa=Pr,Nr=Pr+He,Dr=0;Dr<Re.length;Dr++){for(var Rt=ne[Re[Dr]],mt=0,wr=0,at=0;at<Rt.length;at++)Gr[Rt[at].id].h>mt&&(mt=Gr[Rt[at].id].h),Gr[Rt[at].id].w>wr&&(wr=Gr[Rt[at].id].w);if(da){for(var we=[],at=0;at<Rt.length;at++){var va=Rt[at].kind;va==="initial"||va==="start"||va==="final"||va==="end"?tt.push(Rt[at]):we.push(Rt[at])}if(we.length>0){for(var ya=0,qt=0,Sa=0;Sa<we.length;Sa++)Gr[we[Sa].id].w>ya&&(ya=Gr[we[Sa].id].w),qt+=Gr[we[Sa].id].h;qt+=(we.length-1)*Mr;for(var Wt=Pr+kt+(Ct-qt)/2,Sa=0;Sa<we.length;Sa++){var Ga=Gr[we[Sa].id];Ga.x=Nr+(ya-Ga.w)/2,Ga.y=Wt,Wt+=Ga.h+Mr}Nr+=ya+be}}else{for(var xt=Pr+He+(za-Pa[Dr])/2,at=0;at<Rt.length;at++){var pt=Rt[at],Ga=Gr[pt.id];Gr[pt.id].x=xt,Gr[pt.id].y=Aa+(mt-Ga.h)/2,xt+=Ga.w+be}Aa+=mt+Mr}}for(var Ta=0;Ta<tt.length;Ta++){var Ca=tt[Ta],Mt=Gr[Ca.id];if(Ca.kind==="initial"||Ca.kind==="start"){for(var Lt=null,Je=0;Je<i.length;Je++)if(i[Je].from===Ca.id&&Gr[i[Je].to]){Lt=Gr[i[Je].to];break}Lt&&Lt.x!=null&&(Mt.x=Lt.x+(Lt.w-Mt.w)/2,Mt.y=Lt.y-Mr-Mt.h)}else{for(var $t=0,wa=0,Ba=-1e9,Je=0;Je<i.length;Je++)if(i[Je].to===Ca.id&&Gr[i[Je].from]&&Gr[i[Je].from].x!=null){var nt=Gr[i[Je].from];$t+=nt.x+nt.w/2,wa++,nt.y+nt.h>Ba&&(Ba=nt.y+nt.h)}wa>0&&(Mt.x=$t/wa-Mt.w/2,Mt.y=Ba+Mr)}Mt.x==null&&(Mt.x=Pr+He,Mt.y=Pr)}if(!da){for(var Ra={},Ha=0;Ha<a.length;Ha++){var it=Cr[a[Ha].id];Ra[it]=(Ra[it]||0)+1}for(var ta={},Ea=0;Ea<i.length;Ea++){var ua=i[Ea].from,ha=i[Ea].to;ua!==ha&&(ta[ua]||(ta[ua]=[]),ta[ua].indexOf(ha)<0&&ta[ua].push(ha))}for(var Nt=0;Nt<a.length;Nt++){var tr=a[Nt];if(!(tr.kind!=="choice"&&tr.kind!=="fork")){var pr=ta[tr.id]||[];if(!(pr.length<2))for(var rr=130,er=0;er<pr.length;er++){var Ar=pr[er];Ra[Cr[Ar]]===1&&(!Gr[Ar]||Gr[Ar].x==null||(Gr[Ar].x+=((pr.length-1)/2-er)*rr))}}}}function se(Pt){var yt=O(Pt.color)||"#F1F1F1";return"swimlane;collapsible=0;startSize="+e+";whiteSpace=wrap;align=center;html=1;fontSize=14;rounded=1;absoluteArcSize=1;arcSize=25;fillColor="+yt+";strokeColor=#181818;"}function kr(Pt){var yt=O(Pt.color)||"#F1F1F1";return"swimlane;collapsible=0;startSize="+e+";fillColor="+yt+";swimlaneFillColor=#FFFFFF;strokeColor=#181818;rounded=1;absoluteArcSize=1;arcSize=25;whiteSpace=wrap;align=center;html=1;fontSize=14;"}function xe(Pt,yt,fa,ft,pa,cn){for(var $a=Pt.placements,nn=[],An=[],tn=[],qa=0;qa<$a.length;qa++){var ra=$a[qa].state.kind;ra==="history_shallow"||ra==="history_deep"?nn.push($a[qa]):ra==="entrypoint"?An.push($a[qa]):ra==="exitpoint"&&tn.push($a[qa])}for(var Ja=0,pn=0;pn<nn.length;pn++)Ja+=nn[pn].w+(pn>0?16:0);for(var Fn=10,En=0;En<nn.length;En++)nn[En].x=Fn,nn[En].y=e+12,Fn+=nn[En].w+12;if(nn.length>0)for(var Ma=0;Ma<$a.length;Ma++)$a[Ma].state.kind==="initial"&&$a[Ma].y<e+60&&($a[Ma].x=Math.max(Fn+8,pa-$a[Ma].w-10),$a[Ma].y=e+16);for(var Dn=0;Dn<An.length;Dn++)An[Dn].x=pa*(Dn+1)/(An.length+1)-An[Dn].w/2,An[Dn].y=-An[Dn].h/2;for(var ln=0;ln<tn.length;ln++)tn[ln].x=pa*(ln+1)/(tn.length+1)-tn[ln].w/2,tn[ln].y=cn-tn[ln].h/2;for(var el=0;el<$a.length;el++){var on=$a[el],Cn=on.state,$n=L("sc"),pl=Cn.children&&Cn.children.length>0,sn,ia;pl?(sn=Cn.name,ia=kr(Cn)):Cn.kind==="state"?(sn=Cn.name,ia=se(Cn)):(sn=yr(Cn),ia=D(Cn)),y+=u($n,sn,ia,on.x,on.y,on.w,on.h,yt),m[Cn.id]={x:fa+on.x,y:ft+on.y,w:on.w,h:on.h,cellId:$n},pl&&xe(Q(Cn),$n,fa+on.x,ft+on.y,on.w,on.h)}for(var fn=Pt.seps||[],vn=0;vn<fn.length;vn++){var Mn="strokeColor=#181818;strokeWidth=1;dashed=1;dashPattern=6 6;endArrow=none;";Pt.sepDir==="v"?y+=z(L("sconc"),"",Mn,fa+fn[vn],ft+e,fa+fn[vn],ft+cn-2,"1"):y+=z(L("sconc"),"",Mn,fa+2,ft+fn[vn],fa+pa-2,ft+fn[vn],"1")}}for(var re=0;re<a.length;re++){var ee=a[re],Kr=Gr[ee.id],oe=Kr.x+re*.1,Kt=Kr.y,Yr={w:Kr.w,h:Kr.h},ga=L("s"),Fe=ee.children&&ee.children.length>0,Da=ee.kind==="state"&&!Fe&&ee.description&&ee.description.length>0;Fe?y+=u(ga,ee.name,kr(ee),oe,Kt,Yr.w,Yr.h,"1"):Da?(y+=u(ga,ee.name,se(ee),oe,Kt,Yr.w,Yr.h,"1"),y+=u(L("sdesc"),ee.description.join(`-`),"text;align=left;verticalAlign=top;spacingLeft=6;spacingTop=2;whiteSpace=wrap;fillColor=none;strokeColor=none;html=1;",0,e,Yr.w,Yr.h-e,ga)):ee.kind==="state"?y+=u(ga,ee.name,se(ee),oe,Kt,Yr.w,Yr.h,"1"):y+=u(ga,yr(ee),D(ee),oe,Kt,Yr.w,Yr.h,"1"),m[ee.id]={x:oe,y:Kt,w:Yr.w,h:Yr.h,cellId:ga},Fe&&Kr.layout&&xe(Kr.layout,ga,oe,Kt,Yr.w,Yr.h)}function It(Pt,yt,fa,ft,pa,cn){var $a=cn!=null?' <mxGeometry relative="1" x="'+cn+`" as="geometry"/>+`}for(var Sr={},Rr=0;Rr<e.length;Rr++)Sr[e[Rr].id]=Rr;var ue=e.length;function L(At,Na){return At!=null&&Sr.hasOwnProperty(At)?Sr[At]:Na}for(var Y=[],nr=[],Yr=[],mr=[],q=0;q<ue;q++){var ur=e[q],kr=Er(ur.name,14,!1),Ye=kr+z,Fe=E+15*Math.max(0,Kr(ur.name)-1);if(ur.stereoLetter)Ye=Math.max(kr,Er(ur.stereotype||"",14,!1))+42,Fe=52;else if(ur.stereotype&&!Vr)Ye=Math.max(kr,Er(ur.stereotype,14,!1)+12)+z,Fe=52;else if(ur.bodyLines&&ur.bodyLines.length>0){for(var qe=0,Ae=10,Ue=0;Ue<ur.bodyLines.length;Ue++){var no=ur.bodyLines[Ue];if(Pr(no)){Ae+=Pe;continue}var Ee=/^(=+)\s*/.exec(no),$o=/^"{2}.*"{2}$/.test(no),ve=Ee?le(Ee[1].length):14,Mr=D(no.replace(/^=+\s*/,"").replace(/^"{2}|"{2}$/g,""));qe=Math.max(qe,$o?Mr.length*Te:Er(Mr,ve,!!Ee)),Ae+=Math.ceil(ve*1.2)}Ye=Math.ceil(qe)+z+4,Fe=Math.max(E,Ae)}var _o=0,et=0;ur.kind==="actor"?(_o=24,et=38):ur.kind==="boundary"?(_o=38,et=28):ur.kind==="control"||ur.kind==="entity"?(_o=28,et=28):ur.kind==="database"?(_o=36,et=34):ur.kind==="queue"?(_o=44,et=22):ur.kind==="collections"&&(Ye=kr+24),_o>0&&(Ye=Math.max(kr,_o),Fe=et+19*Math.max(1,Kr(ur.name))),Y.push(Math.max(24,Ye)),nr.push(Fe),Yr.push(_o),mr.push(et)}var io=E,po=E;for(q=0;q<ue;q++)nr[q]>io&&(io=nr[q]),Yr[q]===0&&!(e[q].bodyLines&&e[q].bodyLines.length>0)&&nr[q]>po&&(po=nr[q]);for(q=0;q<ue;q++)Yr[q]===0&&!(e[q].bodyLines&&e[q].bodyLines.length>0)&&nr[q]<po&&(nr[q]=po);var So=[],Ao=r.boxes||[];for(q=0;q<ue;q++)So.push(-1);for(var Qo=0;Qo<Ao.length;Qo++)for(var Io=Ao[Qo].participants||[],fo=0;fo<Io.length;fo++)Sr.hasOwnProperty(Io[fo])&&(So[Sr[Io[fo]]]=Qo);var mt=!1;for(q=0;q<ue;q++)So[q]>=0&&(mt=!0);var bo=[];for(q=0;q+1<ue;q++){var ea=rr+(mt&&So[q]!==So[q+1]?14:0);bo.push(Y[q]/2+Y[q+1]/2+ea)}var No=[],oo=0,Oe=0;function Yo(At,Na,Fn){if(!(At===Na||At==null||Na==null)){var we=Math.min(At,Na),za=Math.max(At,Na);za-we===1?Fn>bo[we]&&(bo[we]=Fn):No.push({lo:we,hi:za,dist:Fn})}}var _e=0,X=0,$r={};for(q=0;q<ue;q++)$r[e[q].id]=0;function to(At){return At!=null&&$r[At]>0?5*$r[At]:0}for(var Hr=0;Hr<f.length;Hr++){var cr=f[Hr];if((cr.type==="activate"||cr.type==="deactivate"||cr.type==="destroy")&&$r.hasOwnProperty(cr.participant)){$r[cr.participant]=cr.type==="activate"?$r[cr.participant]+1:cr.type==="deactivate"?Math.max(0,$r[cr.participant]-1):0;continue}if(cr.type==="message"){var ro=L(cr.from,0),Me=L(cr.to,0),Lo=cr.label||"";cr.number!=null&&(Lo=cr.number+" "+Lo);var sr=Er(Lo,13,!1),Go=Hr+1<f.length?f[Hr+1]:null,rn=cr.to!=null&&(cr.activate===cr.to||Go!=null&&Go.type==="activate"&&Go.participant===cr.to),wt=to(cr.from)+to(cr.to)+(rn?5:0);if(cr.deactivate&&$r[cr.deactivate]>0&&$r[cr.deactivate]--,cr.activate!=null&&$r.hasOwnProperty(cr.activate)&&$r[cr.activate]++,cr.fromEdge||cr.toEdge){var zt=L(cr.fromEdge?cr.to:cr.from,0),ka=sr+lr+wt+(cr.tailDecor==="circle"||cr.headDecor==="circle"?12:0);(cr.fromEdge||cr.toEdge)==="left"?zt===0?oo=Math.max(oo,ka-x-Y[0]/2):Yo(zt-1,zt,ka):ue>0&&(zt===ue-1?Oe=Math.max(Oe,ka+5-x-Y[ue-1]/2):Yo(zt,zt+1,ka)),_e=zt,X=zt;continue}if(ro===Me){var Rt=sr+55+to(cr.from);ro+1<ue?Yo(ro,ro+1,Rt):Rt-Y[ro]/2>Oe&&(Oe=Rt-Y[ro]/2)}else Yo(ro,Me,sr+W+wt),_e=Math.min(ro,Me),X=Math.max(ro,Me)}else if(cr.type==="note"){var gt=Xe(cr.text,cr.shape),dt=cr.over&&cr.over.length>0?L(cr.over[0],null):null;if(cr.position==="left"){var Fa=dt??_e;Fa<=0?gt+4-Y[0]/2>oo&&(oo=gt+4-Y[0]/2):Yo(Fa-1,Fa,gt+9+Y[Fa-1]/2)}else if(cr.position==="right"){var oa=dt??X;oa>=ue-1?ue>0&>+4-Y[ue-1]/2>Oe&&(Oe=gt+4-Y[ue-1]/2):Yo(oa,oa+1,gt+9+Y[oa+1]/2)}else cr.over&&cr.over.length>1?Yo(L(cr.over[0],0),L(cr.over[cr.over.length-1],0),gt-40):dt!=null&&ue>0&&(dt===0&>/2-Y[0]/2>oo&&(oo=gt/2-Y[0]/2),dt===ue-1&>/2-Y[ue-1]/2>Oe&&(Oe=gt/2-Y[ue-1]/2))}}var bt=[];if(ue>0)for(bt[0]=x+oo+(So[0]>=0?Ur:0)+Y[0]/2,q=1;q<ue;q++){for(var Wt=bt[q-1]+bo[q-1],ha=0;ha<No.length;ha++)No[ha].hi===q&&bt[No[ha].lo]+No[ha].dist>Wt&&(Wt=bt[No[ha].lo]+No[ha].dist);bt[q]=Wt}var co=ue>0?bt[ue-1]+Y[ue-1]/2+(So[ue-1]>=0?Ur:0)+Oe+x:120;for(Hr=0;Hr<f.length;Hr++)if(f[Hr].type==="divider"){var lt=Er(f[Hr].label||"",13,!0)+57;lt>co&&(co=lt)}function it(At){return bt[At]!=null?bt[At]:x}var st={},ja=x+(mt?pr+1:0),Je=ja+io,mo=[];for(q=0;q<ue;q++)mo[q]=null;var ge=Je+3,We=[],Et=[],wo=[],la=null;function ia(At){for(var Na=0;Na<Et.length;Na++)At<Et[Na].min&&(Et[Na].min=At),At>Et[Na].max&&(Et[Na].max=At)}for(Hr=0;Hr<f.length;Hr++){var pe=f[Hr],Zr={el:pe};switch(We.push(Zr),pe.type){case"message":{var $t=pe.from!=null?L(pe.from,0):null,xt=pe.to!=null?L(pe.to,0):null,kt=pe.fromEdge||null,Dt=pe.toEdge||null;if(pe.isReturn&&pe.from==null){var Ut=wo.length?wo.pop():null;Ut!=null&&($t=Ut.calleeIdx,xt=Ut.callerIdx,kt=Ut.calleeEdge,Dt=Ut.callerEdge,Zr.returnCloses=Ut.closes)}var Co=pe.label||"",Ht=null;if(pe.number!=null){var Po=pe.numberText!=null?pe.numberText:String(pe.number),Tt=D(Po);Tt!==Po&&(Ht=$(Po)+" "+c(Co)),Co=Tt+" "+Co}var St=Kr(Co);if(pe.from!=null&&pe.from===pe.to){Zr.kind="self",Zr.outY=ge+(St?17+or*St:14),Zr.backY=Zr.outY+20,Zr.idx=$t,Zr.label=Co,Zr.labelHtml=Ht,ge=Zr.backY,ia($t);break}Zr.kind="msg",Zr.fromIdx=$t,Zr.toIdx=xt,Zr.fromEdge=kt,Zr.toEdge=Dt,Zr.label=Co,Zr.labelHtml=Ht;var vt=Hr+1<f.length?f[Hr+1]:null;if(vt!=null&&vt.type==="note"&&(!vt.over||vt.over.length===0)&&(vt.position==="left"||vt.position==="right")){var Xt=Kr(vt.text)*dr+9.3;Zr.noteTop=ge+13,Zr.lineY=Zr.noteTop+Xt/2+8,ge=Math.max(Zr.lineY,Zr.noteTop+Xt)}else Zr.lineY=ge+(St?17+or*St:14),ge=Zr.lineY;$t!=null&&ia($t),xt!=null&&ia(xt);var sa=st[pe.to]===!0?pe.to:st[pe.from]===!0?pe.from:null;if(sa!=null){var Xa=Sr[sa];Zr.createIdx=Xa,mo[Xa]=Zr.lineY-23.7,st[sa]=!1,ge=Math.max(ge,mo[Xa]+nr[Xa]+3)}la=Zr,pe.activate&&xt!==$t&&wo.push({callerIdx:$t,calleeIdx:xt,callerEdge:kt,calleeEdge:Dt,closes:pe.activate});break}case"note":{var ya=Kr(pe.text),Mo=ya*dr+9.3,_t=(!pe.over||pe.over.length===0)&&(pe.position==="left"||pe.position==="right")&&Hr>0&&f[Hr-1].type==="message"&&f[Hr-1].from!==f[Hr-1].to;if(Zr.h=Mo,_t){Zr.kind="noteAttached";var ct=We[We.length-2];Zr.top=ct.noteTop!=null?ct.noteTop:ct.lineY!=null?ct.lineY-Mo/2-8:ge+13,Zr.anchorLo=ct.fromIdx!=null?Math.min(ct.fromIdx,ct.toIdx):0,Zr.anchorHi=ct.fromIdx!=null?Math.max(ct.fromIdx,ct.toIdx):0}else if(Zr.kind="note",Zr.top=ge+13,ge=Zr.top+Mo+2,pe.over&&pe.over.length)for(var $a=0;$a<pe.over.length;$a++)ia(L(pe.over[$a],0));else pe.position==="across"&&ue>0&&(ia(0),ia(ue-1));break}case"divider":{Zr.kind="divider",Zr.barY=ge+31,ge=Zr.barY+13;break}case"delay":{Zr.kind="delay",Zr.top=ge+8,Zr.lines=pe.label?pe.label.split(`+`).length:0,Zr.h=28+13*Zr.lines,ge=Zr.top+Zr.h-11;break}case"gap":{ge+=pe.h!=null?pe.h:25;break}case"groupStart":{Zr.kind="group",Zr.groupKind=pe.kind,Zr.label=pe.label||"",Zr.color=pe.color||null,Zr.headColor=pe.headColor||null,Zr.top=ge+15,Zr.min=ue,Zr.max=-1,Zr.elses=[],Et.push(Zr),ge=Zr.top+11.5;break}case"groupElse":{var en=Et.length?Et[Et.length-1]:null,da=ge+9;en?.elses.push({y:da,label:pe.label||""}),ge=da-7+(pe.label?15.3:0);break}case"groupEnd":{var Kt=Et.pop();Kt!=null&&(Kt.bottom=ge+8,ge=Kt.bottom-1);break}case"ref":{if(Zr.kind="ref",Zr.top=ge+11,Zr.h=44+Math.max(0,Kr(pe.label)-1)*or,ge=Zr.top+Zr.h-3,pe.over&&pe.over.length)for(var va=0;va<pe.over.length;va++)ia(L(pe.over[va],0));break}case"create":{pe.participant!=null&&(st[pe.participant]=!0);break}case"activate":case"deactivate":case"destroy":{Zr.kind=pe.type,Zr.y=ge;var ma=L(pe.participant,null);if(pe.type==="activate"&&ma!=null&&la!=null&&la.toIdx===ma&&la.fromIdx!==ma)wo.push({callerIdx:la.fromIdx,calleeIdx:ma});else if(pe.type!=="activate"&&ma!=null){for(var ba=wo.length-1;ba>=0;ba--)if(wo[ba].calleeIdx===ma){wo.splice(ba,1);break}}break}default:break}}for(;Et.length;){var ot=Et.pop();ot.bottom=ge+8,ge=ot.bottom-1}var jt=ge+yr,ta={};for(q=0;q<ue;q++)ta[e[q].id]=[];function _a(At){for(var Na=ta[At],Fn=0,we=0;we<Na.length;we++)Na[we].end==null&&Fn++;return Fn}for(var ca=0;ca<We.length;ca++){var ut=We[ca];if(ut.kind==="activate"&&ut.el.participant!=null&&ta.hasOwnProperty(ut.el.participant))ta[ut.el.participant].push({start:ut.y,end:null,depth:_a(ut.el.participant),color:ut.el.color});else if(ut.kind==="deactivate"&&ut.el.participant!=null&&ta.hasOwnProperty(ut.el.participant)){for(var wa=ta[ut.el.participant],Bt=wa.length-1;Bt>=0;Bt--)if(wa[Bt].end==null){wa[Bt].end=ut.y;break}}else if(ut.kind==="destroy"&&ut.el.participant!=null&&ta.hasOwnProperty(ut.el.participant))for(var Bo=ta[ut.el.participant],Oa=0;Oa<Bo.length;Oa++)Bo[Oa].end==null&&(Bo[Oa].end=ut.y);else if(ut.kind==="msg"&&ut.returnCloses!=null&&ta.hasOwnProperty(ut.returnCloses)){for(var Vt=ta[ut.returnCloses],go=Vt.length-1;go>=0;go--)if(Vt[go].end==null){Vt[go].end=ut.lineY;break}}else if(ut.kind==="msg"){if(ut.el.deactivate&&ta.hasOwnProperty(ut.el.deactivate)){for(var xo=ta[ut.el.deactivate],qt=xo.length-1;qt>=0;qt--)if(xo[qt].end==null){xo[qt].end=ut.lineY;break}}ut.el.activate&&ta.hasOwnProperty(ut.el.activate)&&ta[ut.el.activate].push({start:ut.lineY,end:null,depth:_a(ut.el.activate),color:ut.el.activateColor})}}function Pt(At,Na){if(At==null||At<0||At>=ue)return 0;for(var Fn=ta[e[At].id]||[],we=0,za=0;za<Fn.length;za++){var Za=Fn[za].end!=null?Fn[za].end:jt;if(Fn[za].start-1<=Na&&Na<=Za+1){var Yn=5+Fn[za].depth*5;Yn>we&&(we=Yn)}}return we}for(q=0;q<ue;q++)for(var Jt=ta[e[q].id]||[],aa=0;aa<Jt.length;aa++)Jt[aa].cellId=Br("act");var Pa=[],gr=[],de=[],Gr=[];function Or(At,Na){if(At==null||At<0||At>=ue)return null;for(var Fn=ta[e[At].id]||[],we=null,za=-1,Za=0;Za<Fn.length;Za++){var Yn=Fn[Za].end!=null?Fn[Za].end:jt;Fn[Za].start-1<=Na&&Na<=Yn+1&&Fn[Za].depth>za&&Fn[Za].cellId&&(we=Fn[Za].cellId,za=Fn[Za].depth)}return we||(Pa[At]&&Na>=Gr[At]&&Na<=jt?Pa[At]:null)}if(mt)for(Qo=0;Qo<Ao.length;Qo++){var re=null,be=null,Cr=Ao[Qo].participants||[];for(fo=0;fo<Cr.length;fo++)if(Sr.hasOwnProperty(Cr[fo])){var te=Sr[Cr[fo]];(re===null||te<re)&&(re=te),(be===null||te>be)&&(be=te)}if(re!==null){var ce=bt[re]-Y[re]/2-Ur,fe=bt[be]+Y[be]/2+Ur,tt=P(Ao[Qo].color)||"#DDDDDD";a+=Z(Br("boxfr"),Ao[Qo].label||"",br("rounded=0;fillColor="+tt+";strokeColor=#181818;strokeWidth=0.5;fontSize=14;fontColor=#000000;verticalAlign=top;align=center;spacingTop=2;html=1;whiteSpace=wrap;",["box"],null,"vertex",Ao[Qo].color?zr:null),ce,x+1,fe-ce,jt+io+5-(x+1),"1")}}for(q=0;q<ue;q++){var ko=e[q],Xr=mo[q]!=null?mo[q]:Je-nr[q],Ce=bt[q]-Y[q]/2,jr=jt+nr[q]-Xr;if(Yr[q]===0&&ko.kind!=="collections"){var ao=br(Be(ko,r.monochrome,!1).replace("shape=rectangle;",""),[ko.kind||"participant"],ko.stereotype?[ko.stereotype]:[],"vertex",ko.colorInline?zr:null),De="shape=umlLifeline;perimeter=lifelinePerimeter;size="+nr[q]+";lifelineMirror=1;dashPattern=5 5;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;"+ao+(ko.stereoLetter?"spacingLeft=24;":"")+(er?"strokeWidth="+er+";":""),ft=Br("p");Pa[q]=ft,gr[q]=Ce,de[q]=Xr,Ie[ft]={x:Ce,w:Y[q]},Gr[q]=Xr+nr[q],ko.stereotype&&!Vr?a+=ye(ft,"<i>\xAB"+T(ko.stereotype)+"\xBB</i><br>"+T(ko.name),De,Ce,Xr,Y[q],jr,"1"):ko.bodyLines&&ko.bodyLines.length>0?a+=ye(ft,Ir(ko.bodyLines),De,Ce,Xr,Y[q],jr,"1"):a+=Z(ft,ko.name,De,Ce,Xr,Y[q],jr,"1"),ko.stereoLetter&&ko.stereoColor&&(a+=Z(Br("ps"),ko.stereoLetter,"ellipse;fillColor="+ko.stereoColor+";strokeColor=#181818;strokeWidth=1;fontSize=12;fontColor=#000000;align=center;verticalAlign=middle;",Ce+7,Xr+7,22,22,"1"));continue}var Ho=Br("pl");Pa[q]=Ho,gr[q]=Ce,de[q]=Xr,Ie[Ho]={x:Ce,w:Y[q]},Gr[q]=Xr+nr[q],a+=Z(Ho,"",br("shape=umlLifeline;perimeter=lifelinePerimeter;participant=none;size="+nr[q]+";lifelineMirror=1;dashPattern=5 5;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;fillColor=none;strokeColor=#181818;strokeWidth=0.5;",["lifeLine"],null,"edge"),Ce,Xr,Y[q],jr,"1")}for(ca=0;ca<We.length;ca++){var Ze=We[ca];if(Ze.kind==="group"){var Ro,Ot;Ze.min<=Ze.max?(Ro=bt[Ze.min]-Y[Ze.min]/2-10,Ot=bt[Ze.max]+Y[Ze.max]/2+10):(Ro=x+5,Ot=co-x-5),Ro<1&&(Ro=1);for(var Wo=0;Wo<We.length;Wo++){var It=We[Wo];if(It.kind==="self"&&It.label&&It.outY>=Ze.top&&It.backY<=Ze.bottom){var Uo=it(It.idx)+7+Er(It.label,13,!1)+6+10;Uo>Ot&&(Ot=Uo)}}var jo=Ze.groupKind==="group"&&Ze.label,Nt=jo?Ze.label:Ze.groupKind||"",ne=jo?"":Ze.label,xe=Math.max(55,Er(Nt,13,!0)+45),Le=ne?Er("["+ne+"]",11,!0):0;Ot<Ro+xe+Le+30&&(Ot=Ro+xe+Le+30);var He=R(he,Jr(["group"]),[],"vertex"),Ge=Ze.color&&P(Ze.color)?P(Ze.color):He.fillColor&&He.fillColor!=="none"?He.fillColor:null;Ge&&(p+=Z(Br("grpbg"),"","rounded=0;fillColor="+Ge+";strokeColor=none;",Ro,Ze.top,Ot-Ro,Ze.bottom-Ze.top,"1")),a+=Z(Br("grpframe"),"",br("rounded=0;fillColor=none;strokeColor=#000000;strokeWidth="+(er||1.5)+";",["group"],null,"vertex",zr),Ro,Ze.top,Ot-Ro,Ze.bottom-Ze.top,"1"),a+=Z(Br("grptab"),Nt,br("rounded=0;fillColor="+(Ze.headColor&&P(Ze.headColor)?P(Ze.headColor):"#EEEEEE")+";strokeColor=#000000;strokeWidth=1.5;fontColor=#000000;fontSize=13;fontStyle=1;align=left;spacingLeft=10;verticalAlign=middle;html=1;",["groupHeader"],null,"vertex",Ze.headColor?zr:null),Ro,Ze.top,xe,19.7,"1"),ne&&(a+=Z(Br("grpcond"),"["+ne+"]","text;html=1;fontColor=#000000;fontSize=11;fontStyle=1;align=left;verticalAlign=middle;",Ro+xe+10,Ze.top+3,Le+8,15,"1"));for(var je=0;je<Ze.elses.length;je++){var Xo=Ze.elses[je];a+=ee(Br("grpelse"),"",br("endArrow=none;html=1;strokeColor=#000000;strokeWidth=1;dashed=1;dashPattern=2 2;",["group"],null,"edge",["strokeWidth","dashed","dashPattern","fixDash"]),Ro,Xo.y,Ot,Xo.y,"1"),Xo.label&&(a+=Z(Br("grpelselbl"),"["+Xo.label+"]","text;html=1;fontColor=#000000;fontSize=11;fontStyle=1;align=left;verticalAlign=middle;",Ro+5,Xo.y+2,Er("["+Xo.label+"]",11,!0)+8,15,"1"))}}}for(ca=0;ca<We.length;ca++){var Dr=We[ca],wr=Dr.el;switch(Dr.kind){case"msg":{var Oo=wr.short?Math.ceil(Er(Dr.label||"",13,!1))+22:0,eo=Dr.fromEdge?wr.short?it(Dr.toIdx)+(Dr.fromEdge==="left"?-1:1)*(Oo+(wr.tailDecor==="circle"?8:0)):Dr.fromEdge==="left"?wr.tailDecor==="circle"?7:0:co-7:it(Dr.fromIdx),yo=Dr.toEdge?wr.short?it(Dr.fromIdx)+(Dr.toEdge==="left"?-1:1)*(Oo+(wr.headDecor==="circle"||wr.arrowHead==="circle"?8:0)):Dr.toEdge==="left"?wr.headDecor==="circle"?7:0:co-7:it(Dr.toIdx),Zt=yo>=eo?1:-1,Ct=eo+(Dr.fromIdx!=null?Zt*Pt(Dr.fromIdx,Dr.lineY):0),Ia=yo-(Dr.toIdx!=null?Zt*Pt(Dr.toIdx,Dr.lineY):0);Dr.createIdx!=null&&Dr.toIdx===Dr.createIdx&&(Ia=yo-Zt*(Y[Dr.toIdx]/2+2)),wr.headDecor==="circle"||wr.arrowHead==="circle"?(Ia=yo-Zt*8,a+=Z(Br("tipdot"),"","ellipse;fillColor="+(P(wr.color)||"#181818")+";strokeColor=none;",yo-5,Dr.lineY-5,10,10,"1")):wr.arrowHead==="lost"&&(Ia=yo-Zt*6),wr.tailDecor==="circle"?(Ct=eo+Zt*8,a+=Z(Br("taildot"),"","ellipse;fillColor="+(P(wr.color)||"#181818")+";strokeColor=none;",eo-5,Dr.lineY-5,10,10,"1")):wr.tailDecor==="lost"&&(Ct=eo+Zt*6);var Ba=ie(wr.arrowHead)+"html=1;rounded=0;edgeStyle=none;curved=0;strokeColor="+(P(wr.color)||_r||"#181818")+";strokeWidth="+(Lr||1)+";fontColor=#000000;fontSize=13;verticalAlign=bottom;labelBackgroundColor=none;";wr.lineStyle==="dashed"?Ba+="dashed=1;dashPattern=2 2;":wr.lineStyle==="dotted"&&(Ba+="dashed=1;dashPattern=1 3;"),wr.tailDecor==="lost"&&(Ba+="startArrow=cross;startSize=12;"),Ba=br(Ba,["arrow"],null,"edge",wr.color?["strokeColor"]:null);var An=0;if(Dr.label&&Ia!==Ct&&Qr!=="center"){var Fr=Math.min(Ct,Ia),Qe=Er(Dr.label,13,!1),lo=Qr==="right"?Math.max(Ct,Ia)-7-Qe/2:Fr+(Zt>0?7:17)+Qe/2;(lo>Math.max(Ct,Ia)-4||lo-Qe/2<Fr+4)&&(lo=(Ct+Ia)/2),An=2*(lo-Ct)/(Ia-Ct)-1}var at=Dr.fromEdge?null:Or(Dr.fromIdx,Dr.lineY),ua=Dr.toEdge||Dr.createIdx!=null&&Dr.toIdx===Dr.createIdx||wr.headDecor==="circle"||wr.arrowHead==="circle"||wr.arrowHead==="lost"?null:Or(Dr.toIdx,Dr.lineY);a+=To(Br("msg"),Dr.label,Ba,Ct,Dr.lineY,Ia,Dr.lineY,An,at,ua,Dr.labelHtml);break}case"self":{var pa=it(Dr.idx)+Pt(Dr.idx,Dr.outY),Ea=38,on=P(wr.color)||_r||"#181818",Ya="html=1;strokeColor="+on+";strokeWidth="+(Lr||1)+";";if(wr.lineStyle==="dashed"&&(Ya+="dashed=1;dashPattern=2 2;"),Ya=br(Ya,["arrow"],null,"edge",wr.color?["strokeColor"]:null),a+=ee(Br("msg"),"","endArrow=none;"+Ya,pa,Dr.outY,pa+Ea,Dr.outY,"1"),a+=ee(Br("msg"),"","endArrow=none;"+Ya,pa+Ea,Dr.outY,pa+Ea,Dr.backY,"1"),a+=ee(Br("msg"),"",ie(wr.arrowHead)+Ya,pa+Ea,Dr.backY,pa+3,Dr.backY,"1"),Dr.label){var Tn=Kr(Dr.label),Ha=Tn*or+3,Nn="text;html=1;fontColor=#000000;fontSize=13;align=left;verticalAlign=middle;",so=Er(Dr.label,13,!1)+6;a+=Dr.labelHtml!=null?ye(Br("msglbl"),Dr.labelHtml,Nn,it(Dr.idx)+7,Dr.outY-Ha-2,so,Ha,"1"):Z(Br("msglbl"),Dr.label,Nn,it(Dr.idx)+7,Dr.outY-Ha-2,so,Ha,"1")}break}case"note":case"noteAttached":{var Eo=Xe(wr.text,wr.shape),rt,Ra=wr.over&&wr.over.length>0?L(wr.over[0],0):null;if(wr.position==="across"&&ue>0){var pt=it(0),tn=it(ue-1);Eo<tn-pt+50&&(Eo=tn-pt+50),rt=(pt+tn)/2-Eo/2}else if(wr.position==="left"){var Ka=Ra??(Dr.anchorLo!=null?Dr.anchorLo:0);rt=it(Ka)-4-Eo}else if(wr.position==="right"){var Va=Ra??(Dr.anchorHi!=null?Dr.anchorHi:0);rt=it(Va)+5}else if(wr.over&&wr.over.length>1){var Ja=it(L(wr.over[0],0)),an=it(L(wr.over[wr.over.length-1],0));if(an<Ja){var Ln=Ja;Ja=an,an=Ln}Eo<an-Ja+40&&(Eo=an-Ja+40),rt=(Ja+an)/2-Eo/2}else rt=it(Ra??0)-Eo/2;var Gn=P(wr.color)||(r.monochrome?"#E3E3E3":"#FEFFDD"),cn;wr.shape==="box"?cn="rounded=0;fillColor="+Gn+";strokeColor=#181818;strokeWidth=0.5;":wr.shape==="hexagon"?cn="shape=hexagon;size=10;fixedSize=1;fillColor="+Gn+";strokeColor=#181818;strokeWidth=0.5;":cn="shape=note;size=10;fillColor="+Gn+";strokeColor=#181818;strokeWidth=0.5;",cn+="fontColor=#000000;fontSize=13;align=left;spacingLeft=4;spacing=2;verticalAlign=middle;whiteSpace=wrap;html=1;",cn=br(cn,["note",wr.shape==="hexagon"?"hnote":wr.shape==="box"?"rnote":"note"],null,"vertex",wr.color?zr:null),H+=Z(Br("note"),wr.text||"",cn,rt,Dr.top,Eo,Dr.h,"1");break}case"divider":{var Yt=R(he,Jr(["separator"]),[],"vertex"),wn="endArrow=none;html=1;strokeColor="+(Yt.fillColor&&Yt.fillColor!=="none"?Yt.fillColor:N)+";strokeWidth=1;";H+=ee(Br("divbar"),"",wn,0,Dr.barY,co,Dr.barY,"1"),H+=ee(Br("divbar"),"",wn,0,Dr.barY+3,co,Dr.barY+3,"1");var Ke=wr.label||"",qo=Er(Ke,13,!0)+18.28;H+=Z(Br("div"),Ke,br("rounded=0;fillColor="+U+";strokeColor="+N+";strokeWidth=2;fontColor="+j+";fontSize=13;fontStyle=1;align=center;verticalAlign=middle;html=1;",["separator"]),(co-qo)/2,Dr.barY-12.9,qo,25.7,"1");break}case"delay":{for(q=0;q<ue;q++){var na=So[q]>=0?P(Ao[So[q]].color)||"#DDDDDD":P(B.backgroundcolor)||"#FFFFFF";a+=Z(Br("dlmask"),"","rounded=0;strokeColor=none;fillColor="+na+";",it(q)-4,Dr.top,8,Dr.h,"1"),a+=ee(Br("dllife"),"","endArrow=none;html=1;strokeColor=#181818;strokeWidth=0.5;dashed=1;dashPattern=1 4;",it(q),Dr.top,it(q),Dr.top+Dr.h,"1")}if(wr.label){var Ft=ue>0?(it(0)+it(ue-1))/2:co/2,fa=Math.max(40,Math.ceil(Er(wr.label,11,!1))+10),mn=13*Dr.lines+4;a+=Z(Br("delay"),wr.label,br("text;html=1;fontColor=#000000;fontSize=11;align=center;verticalAlign=middle;",["delay"],null,"text"),Math.round(Ft-fa/2),Math.round(Dr.top+Dr.h/2-mn/2),fa,mn,"1")}break}case"ref":{var En=0,Zn=ue>0?ue-1:0;if(wr.over&&wr.over.length>0&&(En=L(wr.over[0],0),Zn=L(wr.over[wr.over.length-1],En),Zn<En)){var nn=En;En=Zn,Zn=nn}var Dn=it(En)-25,rl=it(Zn)+25-Dn,Un=Er(wr.label||"",12,!1);rl<Un+47&&(rl=Un+47),a+=Z(Br("refframe"),"",br("rounded=0;fillColor=none;strokeColor=#000000;strokeWidth=1.5;",["reference"]),Dn,Dr.top,rl,Dr.h,"1"),a+=Z(Br("reftab"),"ref",br("rounded=0;fillColor=#EEEEEE;strokeColor=#000000;strokeWidth=2;fontColor=#000000;fontSize=13;fontStyle=1;align=left;spacingLeft=10;verticalAlign=middle;html=1;",["referenceHeader"]),Dn,Dr.top,63,19,"1"),a+=Z(Br("reflbl"),wr.label||"",br("text;html=1;fontColor=#000000;fontSize=12;align=center;verticalAlign=middle;",["reference"],null,"text"),Dn,Dr.top+21,rl,Dr.h-23,"1");break}case"destroy":{var el=it(L(wr.participant,0));a+=ee(Br("destx1"),"","endArrow=none;html=1;strokeColor=#A80036;strokeWidth=2;",el-9,Dr.y-9,el+9,Dr.y+9,"1"),a+=ee(Br("destx2"),"","endArrow=none;html=1;strokeColor=#A80036;strokeWidth=2;",el-9,Dr.y+9,el+9,Dr.y-9,"1");break}default:break}}for(q=0;q<ue;q++)for(var Cl=ta[e[q].id],Il=0;Il<Cl.length;Il++){var jn=Cl[Il],hi=jn.end!=null?jn.end:jt,$i=P(jn.color)||Q;a+=Z(jn.cellId||Br("act"),"",br("rounded=0;fillColor="+$i+";strokeColor=#181818;strokeWidth=1;points=[];perimeter=orthogonalPerimeter;outlineConnect=0;portConstraint=eastwest;",["activationBox"],null,"vertex",jn.color?zr:null),it(q)-5+jn.depth*5,jn.start,10,Math.max(6,hi-jn.start),"1")}for(a+=H,a=p+a,q=0;q<ue;q++){var pn=e[q],Fl=bt[q]-Y[q]/2,hl=mo[q]!=null?mo[q]:Je-nr[q],tl=pn.name,al=null;pn.stereotype&&!Vr?al="<i>\xAB"+T(pn.stereotype)+"\xBB</i><br>"+T(pn.name):pn.bodyLines&&pn.bodyLines.length>0&&(al=Ir(pn.bodyLines));for(var ga=[hl,jt],Vo=0;Vo<ga.length;Vo++){if(Yr[q]===0&&pn.kind!=="collections"){Vo===1&&pn.stereoLetter&&pn.stereoColor&&(a+=Z(Br("psf"),pn.stereoLetter,"ellipse;fillColor="+pn.stereoColor+";strokeColor=#181818;strokeWidth=1;fontSize=12;fontColor=#000000;align=center;verticalAlign=middle;",Fl+7,ga[Vo]+7,22,22,"1"));continue}var qa=Pa[q],Rn=gr[q],On=de[q],ln=br(Be(pn,r.monochrome,Vo===1),[pn.kind||"participant"],pn.stereotype?[pn.stereotype]:[],"vertex",pn.colorInline?zr:null)+"part=1;";if(Yr[q]>0){var kn=Vo===0?ga[Vo]:ga[Vo]+(nr[q]-mr[q]);a+=Z(Br(Vo===0?"p":"pf"),tl,ln,bt[q]-Yr[q]/2-Rn,kn-On,Yr[q],mr[q],qa);continue}pn.kind==="collections"&&(a+=Z(Br(Vo===0?"pc":"pcf"),"","rounded=0;fillColor="+(P(pn.color)||(r.monochrome?"#E3E3E3":"#E2E2F0"))+";strokeColor=#181818;strokeWidth=0.5;part=1;",Fl+4-Rn,ga[Vo]-4-On,Y[q],nr[q],qa)),al!=null?a+=ye(Br(Vo===0?"p":"pf"),al,ln+(pn.stereoLetter?"spacingLeft=24;":""),Fl-Rn,ga[Vo]-On,Y[q],nr[q],qa):a+=Z(Br(Vo===0?"p":"pf"),tl,ln,Fl-Rn,ga[Vo]-On,Y[q],nr[q],qa),pn.stereoLetter&&pn.stereoColor&&(a+=Z(Br(Vo===0?"ps":"psf"),pn.stereoLetter,"ellipse;fillColor="+pn.stereoColor+";strokeColor=#181818;strokeWidth=1;fontSize=12;fontColor=#000000;align=center;verticalAlign=middle;part=1;",Fl+7-Rn,ga[Vo]+7-On,22,22,qa))}}var $n=jt;if(r.legend&&r.legend.lines&&r.legend.lines.length){for(var gl=d(r.legend.lines),Pn=0,Vn=0;Vn<ue;Vn++)nr[Vn]>Pn&&(Pn=nr[Vn]);var Pl=jt+Pn+14,$l=x+l,ql=r.legend.position==="left"?$l:r.legend.position==="right"?Math.max($l,co-x-gl.w):Math.max($l,(co-gl.w)/2);a+=b(gl,ql,Pl,Br),$n=Pl+gl.h}if(r.title){var ii=Er(r.title,14,!0)+10;a+=Z(Br("title"),r.title,br("text;html=1;fillColor=none;strokeColor=none;fontSize=14;fontStyle=1;fontColor=#000000;align=center;verticalAlign=middle;",["document","title"],null,"text"),(co-ii)/2,-34,ii,24,"1")}if(r.header){var Yl=Er(r.header,11,!1)+8;a+=Z(Br("header"),r.header,br("text;html=1;fillColor=none;strokeColor=none;fontSize=11;fontColor=#888888;align=right;verticalAlign=middle;",["document","header"],null,"text"),co-x-Yl,r.title?-56:-34,Yl,18,"1")}if(r.caption||r.footer){for(var Ml=0,El=0;El<ue;El++)nr[El]>Ml&&(Ml=nr[El]);var _l=Math.max(jt+Ml+8,$n+6);if(r.caption){var xl=Er(r.caption,14,!1)+10;a+=Z(Br("caption"),r.caption,br("text;html=1;fillColor=none;strokeColor=none;fontSize=14;fontColor=#000000;align=center;verticalAlign=middle;",["document","caption"],null,"text"),(co-xl)/2,_l,xl,22,"1"),_l+=26}if(r.footer){var Hl=Er(r.footer,11,!1)+8;a+=Z(Br("footer"),r.footer,br("text;html=1;fillColor=none;strokeColor=none;fontSize=11;fontColor=#888888;align=center;verticalAlign=middle;",["document","footer"],null,"text"),(co-Hl)/2,_l,Hl,18,"1")}}return a}var w=120,S=40,tr=60,ir=60,Nr=30,xr=20,Ve=24,qr=80,$e=6,se=30,Re=28,Ne=16,Do=20,Zo=26,uo=35,ke=50,Qt=45,zo=46;function Lt(r){switch(r.kind){case"initial":return"ellipse;fillColor=#222222;strokeColor=#222222;";case"final":return"shape=endState;fillColor=#222222;strokeColor=#222222;";case"fork":case"join":return"shape=rectangle;fillColor=#555555;strokeColor=#555555;";case"choice":return"rhombus;fillColor=#F1F1F1;strokeColor=#181818;";case"start":return"ellipse;fillColor=#222222;strokeColor=#222222;";case"end":return"shape=endState;fillColor=#222222;strokeColor=#222222;";case"history_shallow":return"ellipse;fillColor=#F1F1F1;strokeColor=#181818;fontStyle=1;fontSize=14;";case"history_deep":return"ellipse;fillColor=#F1F1F1;strokeColor=#181818;fontStyle=1;fontSize=14;";case"entrypoint":return"ellipse;fillColor=#FFFFFF;strokeColor=#181818;strokeWidth=1.5;verticalLabelPosition=top;verticalAlign=bottom;fontSize=12;";case"exitpoint":return"shape=mxgraph.flowchart.summing_function;fillColor=#F1F1F1;strokeColor=#181818;strokeWidth=1;verticalLabelPosition=bottom;verticalAlign=top;fontSize=12;";default:var n=P(r.color)||"#F1F1F1";return"rounded=1;absoluteArcSize=1;arcSize=25;fillColor="+n+";strokeColor=#181818;whiteSpace=wrap;align=center;"}}function Ua(r){switch(r.kind){case"initial":case"start":return{w:xr,h:xr};case"final":case"end":return{w:Ve,h:Ve};case"fork":case"join":return{w:qr,h:$e};case"choice":return{w:se,h:se};case"history_shallow":case"history_deep":return{w:Re,h:Re};case"entrypoint":return{w:xr,h:xr};case"exitpoint":return{w:Ve,h:Ve};default:{var n=ke,e=Ki(r.name,14,!1);if(r.description&&r.description.length>0){n=Zo+r.description.length*Ne+14;for(var f=0;f<r.description.length;f++){var a=Ki(r.description[f],14,!1);a>e&&(e=a)}}var h=Math.max(50,Math.ceil(e+20));if(r.children&&r.children.length>0){var B=Mt(r);h=Math.max(h,B.w),n=B.h}return{w:h,h:n}}}}function Mt(r){var n=Do,e=Zo,f=r.description?r.description.length:0,a=f>0?f*Ne+8:0,h=f>0?r.description.join(`+`):"",B=r.regions&&r.regions.length>0?r.regions:[{states:r.children||[]}],H=[],p=[],U=Math.ceil(Ki(r.name,14,!1))+24,N,j,Q;if(r.regionSep==="|"&&B.length>1){var _r=n,Lr=e+n+a;for(N=0;N<B.length;N++){var er=B[N].states||[],Qr=0,Vr=e+n+a;for(j=0;j<er.length;j++){var he=Ua(er[j]);he.w>Qr&&(Qr=he.w)}for(j=0;j<er.length;j++)Q=Ua(er[j]),H.push({state:er[j],x:_r+(Qr-Q.w)/2,y:Vr,w:Q.w,h:Q.h}),Vr+=Q.h,j<er.length-1&&(Vr+=Qt);Vr>Lr&&(Lr=Vr),_r+=Qr,N<B.length-1&&(p.push(_r+zo/2),_r+=zo)}return{w:Math.max(_r+n,U),h:Lr+n,placements:H,seps:p,sepDir:"v",descH:a,descText:h}}var zr=0,Jr=e+n+a,br=[],Br=[],Ie=!1;for(N=0;N<B.length;N++){var To=B[N].states||[],Sr=[];for(j=0;j<To.length;j++){var Rr=To[j].kind;Rr==="history_shallow"||Rr==="history_deep"?(br.push(To[j]),Ie=!0):Rr==="entrypoint"||Rr==="exitpoint"?(Q=Ua(To[j]),H.push({state:To[j],x:0,y:0,w:Q.w,h:Q.h,pinned:!0})):Sr.push(To[j])}Br.push(Sr)}if(Ie){for(N=0;N<Br.length;N++)for(j=0;j<Br[N].length;j++)if(Br[N][j].kind==="initial"){br.unshift(Br[N].splice(j,1)[0]);break}}var ue=0;if(br.length>0){var L=0,Y=n;for(j=0;j<br.length;j++)Q=Ua(br[j]),Q.h>L&&(L=Q.h);for(j=0;j<br.length;j++)Q=Ua(br[j]),H.push({state:br[j],x:Y,y:e+16+a+(L-Q.h)/2,w:Q.w,h:Q.h,pinned:!0}),Y+=Q.w+34;ue=Y-34,Jr=e+16+a+L+Qt+16}for(N=0;N<Br.length;N++){var nr=Br[N];for(j=0;j<nr.length;j++){var Yr=Ua(nr[j]);Yr.w>zr&&(zr=Yr.w)}for(j=0;j<nr.length;j++)Q=Ua(nr[j]),H.push({state:nr[j],x:0,y:Jr,w:Q.w,h:Q.h}),Jr+=Q.h,j<nr.length-1&&(Jr+=Qt);N<Br.length-1&&(p.push(Jr+zo/2),Jr+=zo)}for(var mr=Math.max(zr+n*2,ue+n*2,U),q=Jr+n,ur=0;ur<H.length;ur++)H[ur].pinned||(H[ur].x=(mr-H[ur].w)/2);return{w:mr,h:q,placements:H,seps:p,sepDir:"h",descH:a,descText:h}}function yt(r){switch(r.kind){case"initial":case"start":case"final":case"end":case"fork":case"join":return"";case"history_shallow":return"H";case"history_deep":return"H*";case"choice":return"";case"entrypoint":case"exitpoint":return r.name;default:return r.name}}function Ta(r,n){var e=r.states,f=r.transitions,a=r.notes,h="",B=0,H=r.styleSheet||null;function p(so,Eo,rt,Ra,pt){return s(so,H,["root","element","stateDiagram"].concat(Eo),rt||[],Ra||"vertex",pt)}function U(so){return so.stereotype?[so.stereotype]:[]}function N(so,Eo){if(so.kind==="initial"||so.kind==="start"||so.kind==="final"||so.kind==="end")return p(Eo,["circle"],U(so));if(so.kind!=="state")return Eo;var rt=R(H,["root","element","stateDiagram","state"],U(so),"vertex");return so.color?(delete rt.fillColor,delete rt.gradientColor):rt.fillColor!=null&&/swimlaneFillColor=/.test(Eo)&&!/swimlaneFillColor=#FFFFFF;/.test(Eo)&&(rt.swimlaneFillColor=rt.fillColor),g(Eo,rt)}function j(so){return so+"_"+B++}var Q={};function _r(so){for(var Eo=so?String(so).split(`+`):[""],rt=0,Ra=0;Ra<Eo.length;Ra++){var pt=qn(Eo[Ra])*.9285714285714286;pt>rt&&(rt=pt)}return{w:Math.max(30,Math.round(rt+21)),h:Math.round(Eo.length*15.3+10)}}for(var Lr={},er=0;er<e.length;er++)Lr[e[er].id]=!0;for(var Qr={},Vr={},er=0;er<e.length;er++)Qr[e[er].id]=[],Vr[e[er].id]=0;var he={};(function so(Eo,rt){for(var Ra=0;Ra<Eo.length;Ra++){var pt=Eo[Ra],tn=rt||pt.id;if(rt&&(he[pt.id]=rt),pt.children&&so(pt.children,tn),pt.regions)for(var Ka=0;Ka<pt.regions.length;Ka++)so(pt.regions[Ka].children||[],tn)}})(e,null);for(var zr=0;zr<f.length;zr++){var Jr=f[zr],br=Lr[Jr.from]?Jr.from:he[Jr.from],Br=Lr[Jr.to]?Jr.to:he[Jr.to];if(!(!br||!Br||!Lr[br]||!Lr[Br]||br===Br)&&!(Jr.direction==="left"||Jr.direction==="right")){if(Jr.direction==="up"){Qr[Br].push(br),Vr[br]++;continue}Qr[br].push(Br),Vr[Br]++}}var Ie="",To={},Sr;for(Sr=0;Sr<e.length;Sr++)for(var Rr=e[Sr].id,ue=Qr[Rr]||[],L=0;L<ue.length;L++){var Y=Rr+Ie+ue[L];To[Y]=(To[Y]||0)+1}var nr={},Yr={};for(Sr=0;Sr<e.length;Sr++)nr[e[Sr].id]=[],Yr[e[Sr].id]=0;for(Sr=0;Sr<e.length;Sr++)for(var mr=e[Sr].id,q=Qr[mr]||[],ur=0;ur<q.length;ur++){var kr=q[ur],Ye=To[mr+Ie+kr]||0,Fe=To[kr+Ie+mr]||0;Fe>Ye||(nr[mr].push(kr),Yr[kr]++)}Qr=nr,Vr=Yr;for(var qe={},Ae={},Ue="",no=0;no<e.length;no++)Ae[e[no].id]=0;function Ee(so){var Eo=[{node:so,idx:0}];for(Ae[so]=1;Eo.length>0;){var rt=Eo[Eo.length-1],Ra=Qr[rt.node]||[];if(rt.idx<Ra.length){var pt=Ra[rt.idx++];Ae[pt]===1?qe[rt.node+Ue+pt]=!0:Ae[pt]===0&&(Ae[pt]=1,Eo.push({node:pt,idx:0}))}else Ae[rt.node]=2,Eo.pop()}}for(var $o=0;$o<e.length;$o++)Vr[e[$o].id]===0&&Ae[e[$o].id]===0&&Ee(e[$o].id);for(var $o=0;$o<e.length;$o++)Ae[e[$o].id]===0&&Ee(e[$o].id);for(var ve={},Mr=0;Mr<e.length;Mr++)ve[e[Mr].id]=0;for(var _o=0;_o<e.length;_o++)for(var et=e[_o].id,io=Qr[et]||[],po=0;po<io.length;po++)qe[et+Ue+io[po]]||ve[io[po]]++;for(var So={},Ao=[],Qo=0;Qo<e.length;Qo++)So[e[Qo].id]=0,ve[e[Qo].id]===0&&Ao.push(e[Qo].id);for(var Io=e.length*e.length+16;Ao.length>0&&Io-- >0;)for(var fo=Ao.shift(),mt=Qr[fo]||[],bo=0;bo<mt.length;bo++){var ea=mt[bo];qe[fo+Ue+ea]||(So[ea]<So[fo]+1&&(So[ea]=So[fo]+1),--ve[ea]===0&&Ao.push(ea))}for(var No={},oo=[],er=0;er<e.length;er++){var Oe=So[e[er].id];No[Oe]||(No[Oe]=[],oo.push(Oe)),No[Oe].push(e[er])}oo.sort(function(so,Eo){return so-Eo});for(var Yo=0;Yo<f.length;Yo++){var _e=f[Yo];if(!(_e.direction!=="left"&&_e.direction!=="right")&&!(So[_e.from]===void 0||So[_e.from]!==So[_e.to])){for(var X=No[So[_e.from]],$r=-1,to=-1,Hr=0;Hr<X.length;Hr++)X[Hr].id===_e.from&&($r=Hr),X[Hr].id===_e.to&&(to=Hr);if(!($r<0||to<0)){if(_e.direction==="left"&&to>$r){var cr=X.splice(to,1)[0];X.splice($r,0,cr)}else if(_e.direction==="right"&&to<$r){var ro=X.splice(to,1)[0];X.splice($r,0,ro)}}}}for(var Me={},Lo=0;Lo<e.length;Lo++){var sr=e[Lo],Go=Ua(sr),rn={w:Go.w,h:Go.h};sr.children&&sr.children.length>0&&(rn.layout=Mt(sr)),Me[sr.id]=rn}for(var wt=r.direction==="LR",zt=0,ka=0;ka<a.length;ka++)if(a[ka].position!=="right"){var Rt=_r(a[ka].text);Rt.w+uo>zt&&(zt=Rt.w+uo)}for(var gt=[],dt=[],Fa=0,oa=0,bt=0;bt<oo.length;bt++){for(var Wt=No[oo[bt]],ha=0,co=0,lt=0;lt<Wt.length;lt++)ha+=Me[Wt[lt].id].w,co+=Me[Wt[lt].id].h;ha+=(Wt.length-1)*tr,co+=(Wt.length-1)*ir,gt[bt]=ha,dt[bt]=co,ha>Fa&&(Fa=ha),co>oa&&(oa=co)}var it=[],st=!1;if(wt)for(var ja=0;ja<e.length;ja++){var Je=e[ja].kind;(Je==="initial"||Je==="start")&&(st=!0)}for(var mo=st?xr+ir:0,ge=Nr,We=Nr+zt,Et=0;Et<oo.length;Et++){for(var wo=No[oo[Et]],la=0,ia=0,pe=0;pe<wo.length;pe++)Me[wo[pe].id].h>la&&(la=Me[wo[pe].id].h),Me[wo[pe].id].w>ia&&(ia=Me[wo[pe].id].w);if(wt){for(var Zr=[],pe=0;pe<wo.length;pe++){var $t=wo[pe].kind;$t==="initial"||$t==="start"||$t==="final"||$t==="end"?it.push(wo[pe]):Zr.push(wo[pe])}if(Zr.length>0){for(var xt=0,kt=0,Dt=0;Dt<Zr.length;Dt++)Me[Zr[Dt].id].w>xt&&(xt=Me[Zr[Dt].id].w),kt+=Me[Zr[Dt].id].h;kt+=(Zr.length-1)*ir;for(var Ut=Nr+mo+(oa-kt)/2,Dt=0;Dt<Zr.length;Dt++){var Co=Me[Zr[Dt].id];Co.x=We+(xt-Co.w)/2,Co.y=Ut,Ut+=Co.h+ir}We+=xt+tr}}else{for(var Ht=Nr+zt+(Fa-gt[Et])/2,pe=0;pe<wo.length;pe++){var Po=wo[pe],Co=Me[Po.id];Me[Po.id].x=Ht,Me[Po.id].y=ge+(la-Co.h)/2,Ht+=Co.w+tr}ge+=la+ir}}for(var Tt=0;Tt<it.length;Tt++){var St=it[Tt],vt=Me[St.id];if(St.kind==="initial"||St.kind==="start"){for(var Xt=null,sa=0;sa<f.length;sa++)if(f[sa].from===St.id&&Me[f[sa].to]){Xt=Me[f[sa].to];break}Xt&&Xt.x!=null&&(vt.x=Xt.x+(Xt.w-vt.w)/2,vt.y=Xt.y-ir-vt.h)}else{for(var Xa=0,ya=0,Mo=-1e9,sa=0;sa<f.length;sa++)if(f[sa].to===St.id&&Me[f[sa].from]&&Me[f[sa].from].x!=null){var _t=Me[f[sa].from];Xa+=_t.x+_t.w/2,ya++,_t.y+_t.h>Mo&&(Mo=_t.y+_t.h)}ya>0&&(vt.x=Xa/ya-vt.w/2,vt.y=Mo+ir)}vt.x==null&&(vt.x=Nr+zt,vt.y=Nr)}if(!wt){for(var ct={},$a=0;$a<e.length;$a++){var en=So[e[$a].id];ct[en]=(ct[en]||0)+1}for(var da={},Kt=0;Kt<f.length;Kt++){var va=f[Kt].from,ma=f[Kt].to;va!==ma&&(da[va]||(da[va]=[]),da[va].indexOf(ma)<0&&da[va].push(ma))}for(var ba=0;ba<e.length;ba++){var ot=e[ba];if(!(ot.kind!=="choice"&&ot.kind!=="fork")){var jt=da[ot.id]||[];if(!(jt.length<2))for(var ta=130,_a=0;_a<jt.length;_a++){var ca=jt[_a];ct[So[ca]]===1&&(!Me[ca]||Me[ca].x==null||(Me[ca].x+=((jt.length-1)/2-_a)*ta))}}}}function ut(so){var Eo={fill:null,line:null,text:null,dashed:!1,bold:!1};if(!so)return Eo;for(var rt=String(so).split(";"),Ra=0;Ra<rt.length;Ra++){var pt=rt[Ra].replace(/^\s+|\s+$/g,""),tn=pt.match(/^(line|text|back|header)\s*:\s*#?([\w-]+)$/i);if(tn){var Ka=P("#"+tn[2]);if(Ka){var Va=tn[1].toLowerCase();Va==="line"?Eo.line=Ka:Va==="text"?Eo.text=Ka:Eo.fill=Ka}}else/^line\.(dashed|dotted)$/i.test(pt)?Eo.dashed=!0:/^line\.bold$/i.test(pt)?Eo.bold=!0:pt&&(Eo.fill=P(pt.charAt(0)==="#"?pt:"#"+pt)||Eo.fill)}return Eo}function wa(so){return"strokeColor="+(so.line||"#181818")+";strokeWidth="+(so.bold?1.5:.5)+";"+(so.text?"fontColor="+so.text+";":"")+(so.dashed?"dashed=1;":"")}function Bt(so){var Eo=ut(so.color);return"swimlane;collapsible=0;startSize="+Zo+";whiteSpace=wrap;align=center;html=1;fontSize=14;fontStyle=0;rounded=1;absoluteArcSize=1;arcSize=25;fillColor="+(Eo.fill||"#F1F1F1")+";swimlaneFillColor="+(Eo.fill||"#F1F1F1")+";"+wa(Eo)}function Bo(so){var Eo=ut(so.color);return"swimlane;collapsible=0;startSize="+Zo+";fillColor="+(Eo.fill||"#F1F1F1")+";swimlaneFillColor=#FFFFFF;"+wa(Eo)+"rounded=1;absoluteArcSize=1;arcSize=25;whiteSpace=wrap;align=center;html=1;fontSize=14;fontStyle=0;"}function Oa(so,Eo,rt,Ra,pt,tn){var Ka=so.placements;so.descH>0&&(h+=Z(j("sdesc"),so.descText,"text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;whiteSpace=wrap;fontSize=12;fontColor=#000000;spacingLeft=4;spacingTop=2;",Do/2,Zo+2,pt-Do,so.descH-4,Eo));for(var Va=[],Ja=[],an=[],Ln=0;Ln<Ka.length;Ln++){var Gn=Ka[Ln].state.kind;Gn==="history_shallow"||Gn==="history_deep"?Va.push(Ka[Ln]):Gn==="entrypoint"?Ja.push(Ka[Ln]):Gn==="exitpoint"&&an.push(Ka[Ln])}for(var cn=0;cn<Ja.length;cn++)Ja[cn].x=pt*(cn+1)/(Ja.length+1)-Ja[cn].w/2,Ja[cn].y=-Ja[cn].h/2;for(var Yt=0;Yt<an.length;Yt++)an[Yt].x=pt*(Yt+1)/(an.length+1)-an[Yt].w/2,an[Yt].y=tn-an[Yt].h/2;for(var wn=0;wn<Ka.length;wn++){var Ke=Ka[wn],qo=Ke.state,na=j("sc"),Ft=qo.children&&qo.children.length>0,fa,mn;Ft?(fa=qo.name,mn=N(qo,Bo(qo))):qo.kind==="state"?(fa=qo.name,mn=N(qo,Bt(qo))):(fa=yt(qo),mn=N(qo,Lt(qo))),h+=Z(na,fa,mn,Ke.x,Ke.y,Ke.w,Ke.h,Eo),Q[qo.id]={x:rt+Ke.x,y:Ra+Ke.y,w:Ke.w,h:Ke.h,cellId:na},Ft&&Oa(Mt(qo),na,rt+Ke.x,Ra+Ke.y,Ke.w,Ke.h)}for(var En=so.seps||[],Zn=0;Zn<En.length;Zn++){var nn="strokeColor=#181818;strokeWidth=1;dashed=1;dashPattern=6 6;endArrow=none;";so.sepDir==="v"?h+=ee(j("sconc"),"",nn,rt+En[Zn],Ra+Zo,rt+En[Zn],Ra+tn-2,"1"):h+=ee(j("sconc"),"",nn,rt+2,Ra+En[Zn],rt+pt-2,Ra+En[Zn],"1")}}for(var Lo=0;Lo<e.length;Lo++){var sr=e[Lo],Vt=Me[sr.id],go=Vt.x+Lo*.1,xo=Vt.y,Go={w:Vt.w,h:Vt.h},qt=j("s"),Pt=sr.children&&sr.children.length>0,Jt=sr.kind==="state"&&!Pt&&sr.description&&sr.description.length>0;Pt?h+=Z(qt,sr.name,N(sr,Bo(sr)),go,xo,Go.w,Go.h,"1"):Jt?(h+=Z(qt,sr.name,N(sr,Bt(sr)),go,xo,Go.w,Go.h,"1"),h+=Z(j("sdesc"),sr.description.join(`+`),p("text;align=left;verticalAlign=top;spacingLeft=6;spacingTop=2;whiteSpace=wrap;fillColor=none;strokeColor=none;html=1;fontSize=14;",["state"],U(sr),"text"),0,Zo,Go.w,Go.h-Zo,qt)):sr.kind==="state"?h+=Z(qt,sr.name,N(sr,Bt(sr)),go,xo,Go.w,Go.h,"1"):h+=Z(qt,yt(sr),N(sr,Lt(sr)),go,xo,Go.w,Go.h,"1"),Q[sr.id]={x:go,y:xo,w:Go.w,h:Go.h,cellId:qt},Pt&&Vt.layout&&Oa(Vt.layout,qt,go,xo,Go.w,Go.h)}function aa(so,Eo,rt,Ra,pt,tn,Ka,Va){var Ja=' <mxGeometry relative="1"'+(tn!=null?' x="'+tn+'"':"")+' as="geometry"',an;if(Ka&&Ka.length||Va){if(an=Ja+`>+`,Ka&&Ka.length){an+=` <Array as="points">+`;for(var Ln=0;Ln<Ka.length;Ln++)an+=' <mxPoint x="'+Math.round(Ka[Ln].x)+'" y="'+Math.round(Ka[Ln].y)+`"/>+`;an+=` </Array>+`}Va&&(an+=' <mxPoint x="'+Math.round(Va.x)+'" y="'+Math.round(Va.y)+`" as="offset"/>+`),an+=` </mxGeometry>+`}else an=Ja+`/>+`;return' <mxCell id="'+i(so)+'" value="'+T(Eo)+'" style="'+i(rt)+'" edge="1" source="'+i(Ra)+'" target="'+i(pt)+`" parent="1">+`+an+` </mxCell>+`}var Pa="",gr={},de=[],Gr={},Or={};(function so(Eo){for(var rt=0;rt<Eo.length;rt++)Or[Eo[rt].id]=Eo[rt].kind,Eo[rt].children&&so(Eo[rt].children)})(e);for(var re=0;re<f.length;re++)gr[f[re].from+Pa+f[re].to]=!0,Gr[f[re].from]=(Gr[f[re].from]||0)+1;for(var be=0;be<f.length;be++){var Cr=f[be],te=Q[Cr.from],ce=Q[Cr.to];if(!(!te||!ce)){var fe="endArrow=block;endFill=1;strokeColor="+(P(Cr.color)||"#181818")+";fontColor=#000000;fontSize=12;html=1;rounded=0;";Cr.lineStyle==="dashed"?fe+="dashed=1;":Cr.lineStyle==="dotted"&&(fe+="dashed=1;dashPattern=1 3;"),Cr.bold&&(fe+="strokeWidth=2;");var tt=[];Cr.color&&tt.push("strokeColor"),Cr.bold&&tt.push("strokeWidth"),Cr.lineStyle&&tt.push("dashed","dashPattern","fixDash"),fe=y(p(fe,["arrow"],null,"edge",tt),H);var ko=Cr.label||"",Xr=null,Ce=null,jr=te.x+te.w/2,ao=te.y+te.h/2,De=ce.x+ce.w/2,ft=ce.y+ce.h/2;de[be]={x:(jr+De)/2,y:(ao+ft)/2};var Ho=Cr.from!==Cr.to&&gr[Cr.to+Pa+Cr.from];if(Cr.from===Cr.to)fe+="exitX=1;exitY=0.25;exitDx=0;exitDy=0;entryX=1;entryY=0.75;entryDx=0;entryDy=0;";else if(Ho){var Ze=Cr.from<Cr.to,Ro=Ze?.18:.82,Ot=qn(ko)*12/14;if(Math.abs(ft-ao)>=Math.abs(De-jr)){var Wo=ft>ao;fe+="exitX="+Ro+";exitY="+(Wo?1:0)+";exitDx=0;exitDy=0;entryX="+Ro+";entryY="+(Wo?0:1)+";entryDx=0;entryDy=0;",ko&&(Ce={x:(Ze?-1:1)*(Ot/2+6),y:0})}else{var It=De>jr;fe+="exitX="+(It?1:0)+";exitY="+Ro+";exitDx=0;exitDy=0;entryX="+(It?0:1)+";entryY="+Ro+";entryDx=0;entryDy=0;",ko&&(Ce={x:0,y:(Ze?-1:1)*12})}}else Gr[Cr.from]>1&&Or[Cr.from]==="choice"?Xr=.35:Gr[Cr.from]>1&&ko&&Math.abs(De-jr)>10&&(Ce={x:(De>jr?1:-1)*(qn(ko)*12/14/2+4),y:0});var Uo=null;if(Cr.from!==Cr.to&&fe.indexOf("edgeStyle=")<0){var jo=te.y+te.h<=ce.y,Nt=ce.y+ce.h<=te.y;if(jo||Nt){for(var ne=jo?te.y+te.h:te.y,xe=jo?ce.y:ce.y+ce.h,Le=[],He=0;He<e.length;He++){var Ge=e[He].id;if(!(Ge===Cr.from||Ge===Cr.to||he[Cr.from]===Ge||he[Cr.to]===Ge)){var je=Q[Ge];je&&Ll(jr,ne,De,xe,je.x-3,je.y-3,je.w+6,je.h+6)&&Le.push(je)}}if(Le.length>0){for(var Xo=1/0,Dr=-1/0,wr=1/0,Oo=-1/0,eo=0,yo=0;yo<Le.length;yo++)Le[yo].y<Xo&&(Xo=Le[yo].y),Le[yo].y+Le[yo].h>Dr&&(Dr=Le[yo].y+Le[yo].h),Le[yo].x<wr&&(wr=Le[yo].x),Le[yo].x+Le[yo].w>Oo&&(Oo=Le[yo].x+Le[yo].w),eo+=Le[yo].x+Le[yo].w/2;var Zt=eo/Le.length>(jr+De)/2+1,Ct=Zt?wr-14:Oo+14,Ia=Xo-10,Ba=Dr+10;if(Nt){var An=Ia;Ia=Ba,Ba=An}Uo=[{x:Ct,y:Ia},{x:Ct,y:Ba}],fe=fe.replace(/(exit|entry)(X|Y|Dx|Dy)=[-0-9.]+;/g,"")+"curved=1;",Xr=null,Ce=null}}}h+=aa(j("t"),ko,fe,te.cellId,ce.cellId,Xr,Uo,Ce)}}for(var Fr=p("shape=note;size=10;fillColor=#FEFFDD;strokeColor=#181818;strokeWidth=0.5;fontSize=13;fontColor=#000000;whiteSpace=wrap;align=left;verticalAlign=middle;spacingLeft=4;",["note"]),Qe=p("fillColor=#FEFFDD;strokeColor=#181818;strokeWidth=0.5;",["note"]),lo=0;lo<a.length;lo++){var at=a[lo],ua=_r(at.text),pa=ua.w,Ea=ua.h,on=Nr,Ya=Nr,Tn="";if(at.position==="link"){var Ha=de[at.linkIndex];Ha&&(Ya=Math.round(Ha.y),at.side==="left"?on=Math.round(Ha.x-5-pa):at.side==="top"||at.side==="bottom"?(on=Math.round(Ha.x-pa/2),Ya=Math.round(at.side==="top"?Ha.y-10-Ea:Ha.y+10)):on=Math.round(Ha.x+5))}else{var Nn=Q[at.target];Nn&&(Ya=Nn.y+(Nn.h-Ea)/2,at.position==="right"?(on=Nn.x+Nn.w+uo,Tn=Z(j("noteptr"),"","triangle;direction=west;"+Qe,Nn.x+Nn.w,Math.round(Ya+Ea/2-4),uo+1,8,"1")):(on=Nn.x-pa-uo,Tn=Z(j("noteptr"),"","triangle;direction=east;"+Qe,on+pa-1,Math.round(Ya+Ea/2-4),uo+1,8,"1")))}h+=Tn+Z(j("note"),at.text||"",Fr,on,Ya,pa,Ea,"1")}return h}var hn=180,xa=40,ze=19,Aa=8,Gt=32,ra=26,Sa=21,Wn=16,xn=24,Sn=35,Kn=60,zn=78,un=10,sl=4,yn=160,vl=40,Hn=20,ul=24,pl=45,Xn=14,ol=15,fl=14,fi=34;function _n(r){return Ki(r,Xn,!1)}function Ll(r,n,e,f,a,h,B,H){for(var p=0,U=1,N=e-r,j=f-n,Q=[-N,N,-j,j],_r=[r-a,a+B-r,n-h,h+H-n],Lr=0;Lr<4;Lr++)if(Q[Lr]===0){if(_r[Lr]<0)return!1}else{var er=_r[Lr]/Q[Lr];if(Q[Lr]<0){if(er>U)return!1;er>p&&(p=er)}else{if(er<p)return!1;er<U&&(U=er)}}return p<=U}function ml(r,n){var e=r.classes,f=r.relationships,a=r.packages,h=r.notes,B="",H=0,p=r.hideRules||[],U=r.hideEntities||[],N=r.styleSheet||null,j=[],Q={pkg:"vertex",pkgl:"text"};function _r(ar,Se,ho,vo,me){return s(ar,N,["root","element","classDiagram"].concat(Se),ho||[],vo||"vertex",me)}function Lr(ar,Se){var ho=Q[String(ar).split("_")[0]];return ho==null||N==null?Se:_r(Se,["package"],j,ho)}var er=function(ar,Se,ho,vo,me,Jo,ht,sn){return oe(ar,Se,Lr(ar,ho),vo,me,Jo,ht,sn)},Qr=function(ar,Se,ho,vo,me,Jo,ht,sn){return Ko(ar,Se,Lr(ar,ho),vo,me,Jo,ht,sn)};function Vr(ar){if(!ar.stereotype)return[];var Se=ar.stereotype.replace(/\(\s*[A-Za-z@]\s*,\s*(?:#[0-9A-Fa-f]{3,8}|[A-Za-z]+)\s*\)/,"");return Se.split(/>>\s*<<|\s+/).map(function(ho){return ho.replace(/^\s+|\s+$/g,"")}).filter(function(ho){return ho.length>0})}function he(ar,Se){return ar.type==="all"?!0:ar.type==="kind"?(Se.kind||"class")===ar.value:ar.type==="name"?Se.id===ar.value||Se.name===ar.value||(Se.id||"").split(/::|\./).pop()===ar.value:ar.type==="stereotype"?Ie(ar.value,Vr(Se)):!1}function zr(ar,Se){for(var ho=ar.members||[],vo=0;vo<ho.length;vo++){var me=ho[vo].kind;if(me!=="separator"&&Se==="method"==(me==="method"))return!1}return!0}function Jr(ar,Se){if(Se==="circle"&&ar.kind==="object")return!1;for(var ho=Se==="circle"?!r.hideCircle&&!r.strictUml:!0,vo=0;vo<p.length;vo++){var me=p[vo];me.portion===Se&&he(me.gender,ar)&&(me.empty&&!zr(ar,Se)||(ho=me.show))}return ho}function br(ar){return String(ar??"").split(/::|\./).pop()}function Br(ar,Se){return ar.indexOf("*")>=0?new RegExp("^"+ar.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*")+"$").test(Se):Se===ar}function Ie(ar,Se){for(var ho=0;ho<Se.length;ho++)if(Br(ar,Se[ho]))return!0;return!1}function To(ar,Se){return Br(ar,br(Se))}function Sr(ar){for(var Se=!1,ho=0;ho<U.length;ho++){var vo=U[ho].what,me;if(vo==="@unlinked"){me=!ar.isGroup;for(var Jo=0;Jo<f.length&&me;Jo++)(f[Jo].from===ar.id||f[Jo].to===ar.id)&&(me=!1)}else vo.charAt(0)==="<"?me=Ie(vo.replace(/^<<|>>$/g,"").replace(/^\s+|\s+$/g,""),Vr(ar)):vo.charAt(0)==="$"?me=Ie(vo.substring(1),ar.tags||[]):me=To(vo,ar.id)||ar.name!=null&&ar.name!==ar.id&&To(vo,ar.name);me&&(Se=!U[ho].show)}return Se}if(U.length>0){var Rr={},ue={},L;for(L=0;L<a.length;L++){var Y=a[L].parentIndex;if(Y!=null&&ue[Y]||Sr({id:a[L].name,name:a[L].name,isGroup:!0,tags:[]})){ue[L]=!0;for(var nr=0;nr<(a[L].classes||[]).length;nr++)Rr[a[L].classes[nr]]=!0}}for(var Yr=[],mr=0;mr<e.length;mr++)Rr[e[mr].id]||Sr(e[mr])?Rr[e[mr].id]=!0:Yr.push(e[mr]);e=Yr,f=f.filter(function(ar){return!Rr[ar.from]&&!Rr[ar.to]}),h=h.filter(function(ar){return ar.targets&&ar.targets.length?(ar.targets=ar.targets.filter(function(Se){return!Rr[Se]}),ar.targets.length===0?!1:(Rr[ar.target]&&(ar.target=ar.targets[0]),!0)):ar.target?!Rr[ar.target]:ar.id?!Sr({id:ar.id,name:ar.id,tags:ar.tags||[]}):!0});var q={},ur=[];for(L=0;L<a.length;L++)ue[L]||(q[L]=ur.length,ur.push(a[L]));a=ur.map(function(ar){var Se={};for(var ho in ar)ar.hasOwnProperty(ho)&&(Se[ho]=ar[ho]);return Se.parentIndex=ar.parentIndex!=null&&q[ar.parentIndex]!=null?q[ar.parentIndex]:null,Se});for(var kr=[],Ye=0;Ye<h.length;Ye++){var Fe=h[Ye];if(Fe.pkgIndex!=null){if(ue[Fe.pkgIndex])continue;var qe={};for(var Ae in Fe)Fe.hasOwnProperty(Ae)&&(qe[Ae]=Fe[Ae]);qe.pkgIndex=q[Fe.pkgIndex]!=null?q[Fe.pkgIndex]:null,Fe=qe}kr.push(Fe)}h=kr}function Ue(ar){for(var Se=ar.text?ar.text.split(`+`):[""],ho=0,vo=0;vo<Se.length;vo++){var me=_n(Se[vo])*13/Xn;me>ho&&(ho=me)}return{w:Math.round(ho+20),h:Math.round(Se.length*17.7+12)}}var no={};function Ee(ar){return ar+"_"+H++}var $o=r.title?fi:0,ve={},Mr={};function _o(ar){for(var Se=[],ho=[],vo=ar.members||[],me=0;me<vo.length;me++)vo[me].kind!=="separator"&&(vo[me].kind==="method"?ho.push(vo[me]):Se.push(vo[me]));return{fields:Se,methods:ho}}function et(ar){for(var Se=ar.members||[],ho=[{style:null,title:"",rows:[]}],vo=ar.kind==="object",me=0;me<Se.length;me++)Se[me].kind==="separator"?(vo=!0,ho.push({style:Se[me].style,title:Se[me].title||"",rows:[]})):ho[ho.length-1].rows.push(Se[me]);return vo?ho:null}function io(ar,Se){return Se===0&&ar.rows.length===0?0:ar.rows.length*ze+Aa+(ar.title?fl:0)}function po(ar){return ar>0?ar*ze+Aa:Aa}function So(ar){return!ar.stereotype||!Jr(ar,"stereotype")?"":ar.stereotype.replace(/\(\s*[A-Za-z@]\s*,\s*(?:#[0-9A-Fa-f]{3,8}|[A-Za-z]+)\s*\)/,"").replace(/^\s+|\s+$/g,"")}function Ao(ar){var Se=ar.kind==="object"?Sa:Jr(ar,"circle")?Gt:ra,ho=(ar.name||"").split(`+`).length-1;return Se+(So(ar)?15:0)+ho*16}function Qo(ar){if(ar.kind==="circle")return 20;if(ar.kind==="diamond")return xn;var Se=Jr(ar,"field"),ho=Jr(ar,"method"),vo=Se||ho?et(ar):null;if(vo){for(var me=Ao(ar),Jo=0;Jo<vo.length;Jo++)me+=io(vo[Jo],Jo);return ar.kind==="object"&&vo.length===1&&vo[0].rows.length===0&&(me+=Wn),me}var ht=_o(ar);return Ao(ar)+(Se?po(ht.fields.length):0)+(ho?po(ht.methods.length):0)}function Io(ar){return Dl(ar,!0)}function fo(ar){if(ar.kind==="circle")return Math.max(24,Math.round(_n(ar.name)*.6));if(ar.kind==="diamond")return xn;var Se=_o(ar),ho=(Jr(ar,"field")?Se.fields:[]).concat(Jr(ar,"method")?Se.methods:[]),vo=xa,me,Jo=ar.members||[];for(me=0;me<Jo.length;me++)if(Jo[me].kind==="separator"&&Jo[me].title){var ht=_n(Jo[me].title)+26;ht>vo&&(vo=ht)}for(me=0;me<ho.length;me++){var sn=ho[me].visibility?20:6,Bn=sn+_n(Io(ho[me]))+6;Bn>vo&&(vo=Bn)}for(var nl=(ar.name||"").split(`+`),ll=0,Al=0;Al<nl.length;Al++)_n(nl[Al])>ll&&(ll=_n(nl[Al]));var Zl=Jr(ar,"circle")?ll+32:ll+12;if(Zl>vo&&(vo=Zl),ar.stereotype){var jl=ar.stereotype.replace(/\(\s*[A-Za-z@]\s*,\s*(?:#[0-9A-Fa-f]{3,8}|[A-Za-z]+)\s*\)/,"").replace(/^\s+|\s+$/g,"");if(jl){var bi=_n("\xAB"+jl+"\xBB")+16;bi>vo&&(vo=bi)}}return Math.round(vo*100)/100}function mt(ar){return ar.fromArrow==="triangle"?ar.from:ar.toArrow==="triangle"?ar.to:ar.fromArrow==="diamond_filled"||ar.fromArrow==="diamond_open"?ar.from:ar.toArrow==="diamond_filled"||ar.toArrow==="diamond_open"||ar.type==="extends"||ar.type==="implements"||ar.fromArrow==="open"&&!ar.toArrow?ar.to:ar.from}function bo(ar,Se){return Se===ar.from?ar.to:ar.from}function ea(ar){if(ar._sameRank)return null;if(ar._topId!=null&&ar._botId!=null)return{top:ar._topId,bot:ar._botId};var Se=mt(ar);return Se==null?null:{top:Se,bot:bo(ar,Se)}}for(var No={},oo=0;oo<e.length;oo++)No[e[oo].id]=!0;for(var Oe={},Yo={},oo=0;oo<e.length;oo++)Oe[e[oo].id]=[],Yo[e[oo].id]=0;for(var _e=0;_e<f.length;_e++){var X=ea(f[_e]);if(X!=null){var $r=X.top,to=X.bot;!No[$r]||!No[to]||$r===to||(Oe[$r].push(to),Yo[to]++)}}var Hr={},cr={},ro={};function Me(ar){if(cr[ar]!==void 0)return cr[ar];if(ro[ar])return 0;ro[ar]=!0;for(var Se=0,ho=Oe[ar]||[],vo=0;vo<ho.length;vo++){var me=1+Me(ho[vo]);me>Se&&(Se=me)}return ro[ar]=!1,cr[ar]=Se,Se}var Lo={};for(var sr in Oe)if(Oe.hasOwnProperty(sr)){Lo[sr]||(Lo[sr]=[]);for(var Go=0;Go<Oe[sr].length;Go++){var rn=Oe[sr][Go];Lo[rn]||(Lo[rn]=[]),Lo[sr].push(rn),Lo[rn].push(sr)}}for(var wt={},zt=[],oo=0;oo<e.length;oo++){var ka=e[oo].id;if(wt[ka]===void 0){var Rt=zt.length,gt=[ka],dt=0;for(wt[ka]=Rt;gt.length>0;){var Fa=gt.pop(),oa=Me(Fa);oa>dt&&(dt=oa);for(var bt=Lo[Fa]||[],Wt=0;Wt<bt.length;Wt++)wt[bt[Wt]]===void 0&&(wt[bt[Wt]]=Rt,gt.push(bt[Wt]))}zt.push(dt)}}for(var oo=0;oo<e.length;oo++){var ha=e[oo].id;Hr[ha]=zt[wt[ha]]-Me(ha)}for(var co=!0,lt=0;co&<++<10;){co=!1;for(var it=0;it<f.length;it++){var st=f[it];if(st._sameRank&&!(Hr[st.from]===void 0||Hr[st.to]===void 0)){var ja=Math.max(Hr[st.from],Hr[st.to]);(Hr[st.from]!==ja||Hr[st.to]!==ja)&&(Hr[st.from]=ja,Hr[st.to]=ja,co=!0)}}}for(var oo=0;oo<e.length;oo++)e[oo]._w=fo(e[oo]);if(f.length===0&&e.length>5)for(var Je=560,mo=0,ge=0,We=0;We<e.length;We++){var Et=e[We]._w+40;ge>0&&ge+Et>Je&&(mo++,ge=0),Hr[e[We].id]=mo,ge+=Et}for(var wo={},la=[],oo=0;oo<e.length;oo++){var ia=Hr[e[oo].id];wo[ia]||(wo[ia]=[],la.push(ia)),wo[ia].push(e[oo])}la.sort(function(ar,Se){return ar-Se});for(var pe=0;pe<f.length;pe++){var Zr=f[pe];if(Zr._side&&!(Hr[Zr.from]===void 0||Hr[Zr.from]!==Hr[Zr.to])){for(var $t=wo[Hr[Zr.from]],xt=-1,kt=-1,Dt=0;Dt<$t.length;Dt++)$t[Dt].id===Zr.from&&(xt=Dt),$t[Dt].id===Zr.to&&(kt=Dt);if(!(xt<0||kt<0)){if(Zr._side==="left"&&kt>xt)$t.splice(xt,0,$t.splice(kt,1)[0]);else if(Zr._side==="right"&&kt<xt){var Ut=$t.splice(kt,1)[0];$t.splice(xt,0,Ut)}}}}for(var Co={},Ht=0;Ht<f.length;Ht++){var Po=f[Ht],Tt=ea(Po);if(Tt!=null){var St=Tt.top,vt=Tt.bot;!No[St]||!No[vt]||Hr[vt]===Hr[St]+1&&(Po.label||Po.fromCardinality||Po.toCardinality)&&(Co[Hr[St]]=!0)}}var Xt={},sa={};function Xa(ar,Se,ho,vo){var me={},Jo;for(Jo=0;Jo<ar.length;Jo++)me[ar[Jo].id]=ar[Jo];var ht={},sn={};for(Jo=0;Jo<ar.length;Jo++)ht[ar[Jo].id]=[],sn[ar[Jo].id]=0;for(var Bn=0;Bn<Se.length;Bn++){var nl=Se[Bn];me[nl.top]&&me[nl.bot]&&nl.top!==nl.bot&&(ht[nl.top].push(nl.bot),sn[nl.bot]++)}var ll={},Al=[];for(Jo=0;Jo<ar.length;Jo++)sn[ar[Jo].id]===0&&(ll[ar[Jo].id]=0,Al.push(ar[Jo].id));for(var Zl=ar.length*ar.length+16;Al.length>0&&Zl-- >0;)for(var jl=Al.shift(),bi=ht[jl],Ri=0;Ri<bi.length;Ri++){var qs=ll[jl]+1;(ll[bi[Ri]]===void 0||ll[bi[Ri]]<qs)&&(ll[bi[Ri]]=qs,Al.push(bi[Ri]))}var ts={},Ui=[];for(Jo=0;Jo<ar.length;Jo++){var ds=ll[ar[Jo].id]===void 0?0:ll[ar[Jo].id];ts[ds]||(ts[ds]=[],Ui.push(ds)),ts[ds].push(ar[Jo])}Ui.sort(function(YC,MC){return YC-MC});var _u=[],Ts=0,Xi,ei;for(Xi=0;Xi<Ui.length;Xi++){var tc=ts[Ui[Xi]],Zs=0;for(ei=0;ei<tc.length;ei++)ei>0&&(Zs+=ho),Zs+=tc[ei].w;_u.push(Zs),Zs>Ts&&(Ts=Zs)}var ac={},Gf=0;for(Xi=0;Xi<Ui.length;Xi++){var cs=ts[Ui[Xi]],Ou=0;for(ei=0;ei<cs.length;ei++)cs[ei].h>Ou&&(Ou=cs[ei].h);var nc=(Ts-_u[Xi])/2;for(ei=0;ei<cs.length;ei++)ac[cs[ei].id]={x:nc,y:Gf+(Ou-cs[ei].h)/2},nc+=cs[ei].w+ho;Gf+=Ou+vo}return{pos:ac,width:Ts,height:Math.max(0,Gf-vo)}}if(a.length>0){let ar=function(me,Jo){var ht=ya[me];if(ht===void 0)return Jo===-1?me:null;if(ht===Jo)return me;for(var sn=a.length+1;ht!==void 0&&sn-- >0;){var Bn=$a[ht];if(Bn===void 0&&Jo===-1||Bn===Jo)return"pkg#"+ht;ht=Bn}return null},Se=function(me){var Jo=(me.stereotype||"").toLowerCase();return Jo==="node"?{side:46,top:40,bottom:16}:Jo==="cloud"?{side:18,top:36,bottom:22}:Jo==="database"?{side:31,top:50,bottom:16}:{side:Hn,top:35,bottom:16}},ho=function(me){var Jo=[],ht;for(ht=0;ht<e.length;ht++)ya[e[ht].id]===me&&Jo.push({id:e[ht].id,w:e[ht]._w,h:Qo(e[ht])});for(ht=0;ht<en[me].length;ht++){var sn=en[me][ht];ho(sn),Jo.push({id:"pkg#"+sn,w:va[sn],h:ma[sn]})}for(ht=0;ht<h.length;ht++)if(h[ht].pkgIndex===me&&!h[ht].target){var Bn=Ue(h[ht]);Jo.push({id:"note#"+ht,w:Bn.w,h:Bn.h})}var nl=[];for(ht=0;ht<f.length;ht++){var ll=ea(f[ht]);if(ll){var Al=ar(ll.top,me),Zl=ar(ll.bot,me);Al&&Zl&&Al!==Zl&&nl.push({top:Al,bot:Zl})}}var jl=Xa(Jo,nl,Sn,Kn);for(ht=0;ht<Jo.length;ht++)Kt[Jo[ht].id]=jl.pos[Jo[ht].id];var bi=Math.max(jl.width,_n(a[me].name)+24),Ri=Se(a[me]);va[me]=bi+Ri.side*2,ma[me]=Ri.top+jl.height+Ri.bottom},vo=function(me,Jo,ht){var sn=Se(a[me]);Xt[me]={x:Jo,y:ht,w:va[me],h:ma[me]},sa[me]=Ee("pkg"),!No[a[me].name]&&!ve[a[me].name]&&(ve[a[me].name]=sa[me],Mr[a[me].name]=Xt[me]);for(var Bn=0;Bn<e.length;Bn++)ya[e[Bn].id]===me&&Kt[e[Bn].id]&&(e[Bn]._x=Jo+sn.side+Kt[e[Bn].id].x,e[Bn]._y=ht+sn.top+Kt[e[Bn].id].y,e[Bn]._h=Qo(e[Bn]));for(var nl=0;nl<en[me].length;nl++){var ll=en[me][nl],Al=Kt["pkg#"+ll];Al&&vo(ll,Jo+sn.side+Al.x,ht+sn.top+Al.y)}for(var Zl=0;Zl<h.length;Zl++){var jl=Kt["note#"+Zl];h[Zl].pkgIndex===me&&jl&&(no[Zl]={x:Jo+sn.side+jl.x,y:ht+sn.top+jl.y})}};var ya={},Mo,_t;for(Mo=0;Mo<a.length;Mo++){var ct=a[Mo].classes||[];for(_t=0;_t<ct.length;_t++)No[ct[_t]]&&(ya[ct[_t]]=Mo)}var $a={},en={};for(Mo=0;Mo<a.length;Mo++)en[Mo]=[];for(Mo=0;Mo<a.length;Mo++){var da=a[Mo].parentIndex;da!=null&&da>=0&&da<a.length&&da!==Mo&&($a[Mo]=da,en[da].push(Mo))}var Kt={},va={},ma={};for(Mo=0;Mo<a.length;Mo++)$a[Mo]===void 0&&ho(Mo);var ba=[],ot;for(Mo=0;Mo<a.length;Mo++)$a[Mo]===void 0&&ba.push({id:"pkg#"+Mo,w:va[Mo],h:ma[Mo]});for(ot=0;ot<e.length;ot++)ya[e[ot].id]===void 0&&ba.push({id:e[ot].id,w:e[ot]._w,h:Qo(e[ot])});var jt=[];for(ot=0;ot<f.length;ot++){var ta=ea(f[ot]);if(!(!ta||!No[ta.top]||!No[ta.bot])){var _a=ar(ta.top,-1),ca=ar(ta.bot,-1);_a&&ca&&_a!==ca&&jt.push({top:_a,bot:ca})}}var ut=Xa(ba,jt,Sn,pl),wa=un,Bt=un+$o;for(Mo=0;Mo<a.length;Mo++){var Bo=ut.pos["pkg#"+Mo];Bo&&vo(Mo,wa+Bo.x,Bt+Bo.y)}for(ot=0;ot<e.length;ot++)if(ya[e[ot].id]===void 0){var Oa=ut.pos[e[ot].id];if(!Oa)continue;e[ot]._x=wa+Oa.x,e[ot]._y=Bt+Oa.y,e[ot]._h=Qo(e[ot])}}else{for(var Vt=[],go=0,xo=0;xo<la.length;xo++){for(var qt=wo[la[xo]],Pt=0,Jt=0;Jt<qt.length;Jt++)Jt>0&&(Pt+=Sn),Pt+=qt[Jt]._w;Vt.push(Pt),Pt>go&&(go=Pt)}for(var aa=un+$o,xo=0;xo<la.length;xo++){for(var Pa=wo[la[xo]],gr=0,Jt=0;Jt<Pa.length;Jt++){var de=Qo(Pa[Jt]);de>gr&&(gr=de)}for(var Gr=un+(go-Vt[xo])/2,Jt=0;Jt<Pa.length;Jt++){var Or=Pa[Jt],re=Qo(Or);Or._x=Gr,Or._y=aa+(gr-re)/2,Or._h=re,Gr+=Or._w+Sn}var be=Co[la[xo]]?zn:Kn;aa+=gr+be}}for(var Cr=r.associationClasses||[],te=0;te<Cr.length;te++){for(var ce=Cr[te],fe=null,tt=null,ko=null,Xr=0;Xr<e.length;Xr++)e[Xr].id===ce.a&&(fe=e[Xr]),e[Xr].id===ce.b&&(tt=e[Xr]),e[Xr].id===ce.cls&&(ko=e[Xr]);if(!(!fe||!tt||!ko)){for(var Ce=0,jr=0;jr<f.length;jr++)(f[jr].from===ce.cls||f[jr].to===ce.cls)&&Ce++;if(!(Ce>0)){if(tt._y!==fe._y){for(var ao=!0,De=0;De<e.length;De++)if(e[De]!==tt&&e[De]!==ko&&e[De]._y===tt._y){ao=!1;break}ao&&(tt._x=fe._x+fe._w/2-tt._w/2)}var ft=(fe._x+fe._w/2+tt._x+tt._w/2)/2,Ho=(fe._y+fe._h/2+tt._y+tt._h/2)/2;ko._x=ft+70,ko._y=Ho-ko._h/2,ce._midX=ft,ce._midY=Ho}}}for(var Ze=0;Ze<e.length;Ze++){var Ro=e[Ze];if(Ro.kind==="circle"){for(var Ot=null,Wo=0,It=0;It<f.length;It++)f[It].type!=="lollipop"&&(f[It].from===Ro.id||f[It].to===Ro.id)&&(Wo++,Ot=f[It]);if(Wo===1){for(var Uo=Ot.from===Ro.id?Ot.to:Ot.from,jo=null,Nt=0;Nt<e.length;Nt++)if(e[Nt].id===Uo){jo=e[Nt];break}!jo||jo._y===Ro._y||(Ro._x=jo._x+jo._w/2-Ro._w/2)}}}if(e.length>0){for(var ne=1/0,xe=1/0,Le=-1/0,He=-1/0,Ge=0;Ge<e.length;Ge++){var je=e[Ge];je._x<ne&&(ne=je._x),je._y<xe&&(xe=je._y),je._x+je._w>Le&&(Le=je._x+je._w),je._y+je._h>He&&(He=je._y+je._h)}var Xo=e.length===1?9:3;if(B+=er(Ee("mtl"),"","text;fillColor=none;strokeColor=none;",ne-3,xe-3,0,0,"1"),B+=er(Ee("mbr"),"","text;fillColor=none;strokeColor=none;",Le+Xo,He+Xo,0,0,"1"),r.title){var Dr=Math.max(120,_n(r.title)+20),wr=(ne+Le)/2-Dr/2;B+=er(Ee("cltitle"),r.title,"text;html=1;fillColor=none;strokeColor=none;fontSize="+Xn+";fontStyle=1;fontColor=#000000;align=center;verticalAlign=middle;",wr,un-3,Dr,24,"1")}}var Oo=ya||{},eo=$a||{};function yo(ar){var Se=[],ho=Oo[ar];if(ho===void 0&&!No[ar]){for(var vo=0;vo<a.length;vo++)if(a[vo].name===ar&&Xt[vo]){ho=eo[vo];break}}for(var me=a.length+1;ho!==void 0&&me-- >0;)Se.push(ho),ho=eo[ho];return Se}function Zt(ar){var Se=ar!=null&&ar>=0?Xt[ar]:null;return!Se||!sa[ar]?{id:"1",x:0,y:0,pkg:-1}:{id:sa[ar],x:Se.x,y:Se.y,pkg:ar}}function Ct(ar){return Zt(Oo[ar])}function Ia(ar,Se){for(var ho=yo(ar),vo=yo(Se),me=0;me<ho.length;me++)if(vo.indexOf(ho[me])>=0&&Xt[ho[me]])return Zt(ho[me]);return Zt(-1)}function Ba(ar,Se,ho,vo){for(var me=-1,Jo=1/0,ht=0;ht<a.length;ht++){var sn=Xt[ht];!sn||!sa[ht]||ar<sn.x||Se<sn.y||ar+ho>sn.x+sn.w||Se+vo>sn.y+sn.h||sn.w*sn.h<Jo&&(me=ht,Jo=sn.w*sn.h)}return Zt(me)}for(var An=0;An<e.length;An++){let Se=function(vo,me,Jo){for(var ht=me+ol+Jo*ze,sn=ht-ze/2,Bn=vo.visibility,nl=Bn&&qa[Bn],ll=vo.kind==="method",Al=0,Zl=vo.modifiers||[],jl=0;jl<Zl.length;jl++)Zl[jl]==="static"&&(Al|=4);var bi=nl?20:6,Ri="text;html=1;align=left;verticalAlign=middle;spacingLeft="+bi+";spacingRight=4;overflow=hidden;rotatable=0;fillColor=none;strokeColor=none;fontSize="+Xn+";fontColor=#000000;fontStyle="+Al+";points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;",qs=Ee("mb");if(Ri=_r(Ri,["class"],qo,"text"),B+=er(qs,Io(vo),Ri,0,sn,Fr._w,ze,Qe),nl){var ts=On[Bn]||[6,6],Ui=ts[0],ds=ts[1],_u=ll||Bn==="*"?Vo[Bn]:"none",Ts=(Rn[Bn]||"ellipse")+";fillColor="+_u+";strokeColor="+qa[Bn]+";strokeWidth=1;movable=0;connectable=0;";B+=er(Ee("vis"),"",Ts,11-Ui/2,ze/2-ds/2,Ui,ds,qs)}},ho=function(vo,me,Jo){var ht="line;strokeColor=#181818;fillColor=none;align=left;verticalAlign=middle;rotatable=0;points=[];portConstraint=eastwest;connectable=0;",sn=vo.style;ht+="strokeWidth="+(sn==="_"?"0.5":"1")+";"+(sn==="."?"dashed=1;dashPattern=1 2;":""),vo.title&&(me+=2);var Bn=vo.title?_n(vo.title)+8:0,nl=vo.title?Math.max(2,(Fr._w-Bn)/2):Fr._w;ht=_r(ht,["class"],qo,"edge",["dashed","dashPattern","fixDash"]);function ll(Al){B+=er(Ee("clssep"),"",ht,0,Al,nl,Jo,Qe),vo.title&&(B+=er(Ee("clssep"),"",ht,Fr._w-nl,Al,nl,Jo,Qe))}sn==="="?(ll(me-1),ll(me+1)):ll(me),vo.title&&(B+=er(Ee("septitle"),vo.title,"text;html=1;align=center;verticalAlign=middle;fillColor=none;strokeColor=none;fontSize="+Xn+";fontColor=#000000;movable=0;connectable=0;",(Fr._w-Bn)/2,me+Jo/2-ze/2,Bn,ze,Qe))};var Fr=e[An],oa=Fr._h,Qe=Ee("cls");ve[Fr.id]=Qe;var lo=Ct(Fr.id),at=Fr._x,ua=Fr._y;if(Mr[Fr.id]={x:at,y:ua,w:Fr._w,h:oa},Fr.kind==="circle"){var pa=16,Ea=at+(Fr._w-pa)/2,on=ua+(oa-pa)/2;B+=er(Qe,Fr.name,"ellipse;fillColor=#F1F1F1;strokeColor=#181818;strokeWidth=1;verticalLabelPosition=bottom;verticalAlign=top;fontSize="+Xn+";fontColor=#000000;",Ea-lo.x,on-lo.y,pa,pa,lo.id),Mr[Fr.id]={x:Ea,y:on,w:pa,h:pa};continue}if(Fr.kind==="diamond"){B+=er(Qe,"","rhombus;fillColor=#F1F1F1;strokeColor=#181818;strokeWidth=0.5;",at-lo.x,ua-lo.y,xn,xn,lo.id),Mr[Fr.id]={x:at,y:ua,w:xn,h:xn};continue}var Ya="",Tn=So(Fr);Tn&&(Ya+="\xAB"+Tn+`\xBB+`);var Ha=Ao(Fr);Ya+=Fr.name;var Nn="0",so=Jr(Fr,"circle"),Eo=so?25:0,rt="#F1F1F1",Ra="#181818",pt="#000000",tn="";if(Fr.color){var Ka=Fr.color.match(/##(?:\[(\w+)\])?(\S+)/);if(Ka){var Va=P(Ka[2]);Va&&(Ra=Va),Ka[1]&&/bold/i.test(Ka[1])&&(tn="strokeWidth=2;")}var Ja=Fr.color.replace(/^#/,"").split(";"),an=Ja[0].replace(/\s*##.*$/,"");if(an){var Ln=P("#"+an);Ln&&(rt=Ln)}for(var Gn=1;Gn<Ja.length;Gn++){var cn=Ja[Gn].match(/^(line|text)\s*:\s*(\S+)/i);if(cn&&cn[1].toLowerCase()==="line"){var Yt=P(cn[2]);Yt&&(Ra=Yt)}else if(cn){var wn=P(cn[2]);wn&&(pt=wn)}}}var Ke="swimlane;collapsible=0;fontStyle="+Nn+";align=center;fontSize="+Xn+";fontColor="+pt+";startSize="+Ha+";spacingLeft="+Eo+";fillColor="+rt+";strokeColor="+Ra+";"+tn+"childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;marginBottom=0;stackSpacing=0;marginTop="+(ol-ze/2)+";",qo=Fr.stereotype?[Fr.stereotype]:[],na=R(N,["root","element","classDiagram","class"],qo,"vertex"),Ft=R(N,["root","element","classDiagram","class","header"],qo,"vertex");Fr.color?(delete na.fillColor,delete na.gradientColor,delete Ft.fillColor,delete Ft.gradientColor):na.fillColor!=null&&(na.swimlaneFillColor=na.fillColor);for(var fa in Ft)Ft.hasOwnProperty(fa)&&!/^(strokeColor|strokeWidth|dashed|dashPattern|fixDash|rounded|arcSize|absoluteArcSize|shadow)$/.test(fa)&&(na[fa]=Ft[fa]);if(Ke=g(Ke,na),B+=er(Qe,Ya,Ke,at-lo.x,ua-lo.y,Fr._w,oa,lo.id),Fr.generics){var mn=Fr.generics,En=Math.max(20,Fr.generics.length*7+8),Zn=18;B+=er(Ee("gen"),mn,"rounded=0;fillColor=#FFFFFF;strokeColor=#181818;dashed=1;dashPattern=2 2;fontSize=10;align=center;verticalAlign=middle;movable=0;connectable=0;",Fr._w-En-6,-3,En,Zn,Qe)}var nn=r.monochrome?"#C2C2C2":"#ADD1B2",Dn="C";if(Fr.kind==="interface"?(r.monochrome||(nn="#B4A7E5"),Dn="I"):Fr.kind==="enum"?(r.monochrome||(nn="#EB937F"),Dn="E"):Fr.kind==="abstract"?(r.monochrome||(nn="#A9DCDF"),Dn="A"):Fr.kind==="annotation"?(r.monochrome||(nn="#E3C6AA"),Dn="@"):Fr.kind==="struct"?(r.monochrome||(nn="#FFFFFF"),Dn="S"):Fr.kind==="protocol"?(r.monochrome||(nn="#FFFFFF"),Dn="P"):Fr.kind==="exception"?(r.monochrome||(nn="#E5574F"),Dn="X"):Fr.kind==="metaclass"?(r.monochrome||(nn="#B3B3B3"),Dn="M"):Fr.kind==="stereotype"?(r.monochrome||(nn="#EE7EEE"),Dn="S"):Fr.kind==="entity"&&(r.monochrome||(nn="#ADD1B2"),Dn="E"),Fr.stereotype){var rl=Fr.stereotype.match(/\(\s*([A-Za-z@])\s*,\s*(#[0-9A-Fa-f]{3,8}|[A-Za-z]+)\s*\)/);rl&&(Dn=rl[1],nn=P(rl[2])||nn)}if(so){for(var Un=(Fr.name||"").split(`+`),el=0,Cl=0;Cl<Un.length;Cl++)_n(Un[Cl])>el&&(el=_n(Un[Cl]));var Il=So(Fr);Il&&_n("\xAB"+Il+"\xBB")>el&&(el=_n("\xAB"+Il+"\xBB"));var jn=25+el,hi=(Fr._w-jn)/2;B+=er(Ee("ico"),Dn,"ellipse;fillColor="+nn+";strokeColor=#181818;fontSize=13;fontStyle=1;fontColor=#000000;movable=0;connectable=0;",hi,Math.round((Ha-22)/2),22,22,Qe)}var $i=_o(Fr),pn=Jr(Fr,"field"),Fl=Jr(Fr,"method"),hl=pn?$i.fields:[],tl=Fl?$i.methods:[],al=pn?po(hl.length):0,ga=Ha+al,Vo={"+":"#84BE84","-":"#F24D5C","#":"#FFFF44","~":"#4177AF","*":"#000000"},qa={"+":"#038048","-":"#C82930","#":"#B38D22","~":"#1963A0","*":"#000000"},Rn={"+":"ellipse","-":"rounded=0","#":"rhombus","~":"triangle;direction=north","*":"ellipse"},On={"+":[6,6],"-":[6,6],"#":[8,8],"~":[8,6],"*":[6,6]},ln=pn||Fl?et(Fr):null;if(ln)for(var kn=Ha,$n=ol-ze/2,gl=Ha+$n,Pn=0;Pn<ln.length;Pn++){var Vn=ln[Pn],Pl=kn+$n+(Vn.title?fl:0);Pn>0&&ho(Vn,gl,Math.max(2,Pl-gl));for(var $l=0;$l<Vn.rows.length;$l++)Se(Vn.rows[$l],Pl-$n,$l);gl=Pl+Vn.rows.length*ze,kn+=io(Vn,Pn)}else if(pn||Fl){for(var ql=0;ql<hl.length;ql++)Se(hl[ql],Ha,ql);var ii=ol-ze/2,Yl=Ha+ii+hl.length*ze,Ml=Math.max(2,ga+ii-Yl);pn&&Fl&&(B+=er(Ee("clssep"),"",_r("line;strokeWidth=0.5;strokeColor=#181818;fillColor=none;align=left;verticalAlign=middle;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;connectable=0;",["class"],qo,"edge",["dashed","dashPattern","fixDash"]),0,Yl,Fr._w,Ml,Qe));for(var El=0;El<tl.length;El++)Se(tl[El],ga,El)}}var _l={},xl={};function Hl(ar){return ar.from<ar.to?ar.from+"\0"+ar.to:ar.to+"\0"+ar.from}for(var At=0;At<f.length;At++){var Na=Hl(f[At]);_l[Na]=(_l[Na]||0)+1}for(var Fn={},$l=0;$l<f.length;$l++){let Se=function(ho){return ho==="cross"||ho==="circlePlus"||ho&&ho.indexOf("ER")===0?ho:null};var we=f[$l],za=ve[we.from],Za=ve[we.to];if(we.type==="lollipop"){var Yn=Mr[we.to];if(Yn){var Jn=Fn[we.to]=(Fn[we.to]||0)+1,bn=Yn.y+Yn.h/2-8+(Jn-1)*32,Wa=Yn.x-52,Mn=Ba(Wa,bn,16,16);B+=er(Ee("lolli"),"","ellipse;fillColor=#F1F1F1;strokeColor=#181818;strokeWidth=1;",Wa-Mn.x,bn-Mn.y,16,16,Mn.id);var Jl=_n(we.from)+8;B+=er(Ee("lollilbl"),we.from,"text;html=1;fillColor=none;strokeColor=none;fontSize="+Xn+";fontColor=#000000;align=center;verticalAlign=middle;",Wa+8-Jl/2-Mn.x,bn+18-Mn.y,Jl,18,Mn.id),B+=Qr(Ee("lolliln"),"","endArrow=none;strokeColor=#181818;html=1;",Wa+16,bn+8,Yn.x,bn+8,"1")}continue}if(!(!za||!Za)){var Kl=Ia(we.from,we.to);if(!we.hidden){var Da="endArrow=open;html=1;strokeColor=#181818;fontColor=#000000;fontSize=11;";switch(we.type){case"extends":Da="endArrow=block;endFill=0;endSize=12;html=1;strokeColor=#181818;fontColor=#000000;fontSize=11;";break;case"implements":Da="endArrow=block;endFill=0;endSize=12;dashed=1;html=1;strokeColor=#181818;fontColor=#000000;fontSize=11;";break;case"composition":Da="startArrow=diamond;startFill=1;startSize=12;endArrow=none;html=1;strokeColor=#181818;fontColor=#000000;fontSize=11;";break;case"aggregation":Da="startArrow=diamond;startFill=0;startSize=12;endArrow=none;html=1;strokeColor=#181818;fontColor=#000000;fontSize=11;";break;case"association":Da="endArrow=open;html=1;strokeColor=#181818;fontColor=#000000;fontSize=11;";break;case"dependency":Da="dashed=1;endArrow=open;html=1;strokeColor=#181818;fontColor=#000000;fontSize=11;";break;case"link":Da="endArrow=none;html=1;strokeColor=#181818;fontColor=#000000;fontSize=11;";break}if((we.lineStyle==="dotted"||we.lineStyle==="dashed")&&Da.indexOf("dashed=1")<0&&(Da+="dashed=1;"),we.color){var Oi=P(we.color);Oi&&(Da=Da.replace(/strokeColor=[^;]*;/,""),Da+="strokeColor="+Oi+";")}we.bold&&(Da+="strokeWidth=2;");var Ql=[];we.color&&Ql.push("strokeColor"),we.bold&&Ql.push("strokeWidth"),we.lineStyle&&Ql.push("dashed","dashPattern","fixDash"),Da=_r(Da,["arrow"],null,"edge",Ql);var Fs=Se(we.fromArrow),Pi=Se(we.toArrow);Fs&&(Da=Da.replace(/startArrow=[^;]*;/,""),Da+="startArrow="+Fs+";"),Pi&&(Da=Da.replace(/endArrow=[^;]*/,"endArrow="+Pi)),Da.indexOf("startArrow=")<0&&(we.fromArrow==="diamond_filled"?Da+="startArrow=diamond;startFill=1;":we.fromArrow==="diamond_open"&&(Da+="startArrow=diamond;startFill=0;"));var La=Mr[we.from],Ma=Mr[we.to],vi=La&&Ma&&Math.abs(La.y-Ma.y)>=Math.abs(La.x-Ma.x),us=we.label||"";if((we.fromCardinality||we.toCardinality)&&!vi){var cu=[];we.fromCardinality&&cu.push(we.fromCardinality),us&&cu.push(us),we.toCardinality&&cu.push(we.toCardinality),us=cu.join(" ")}var zi=Hl(we);if(_l[zi]>1&&vi&&La&&Ma&&r.linetype!=="ortho"){var bC=xl[zi]=(xl[zi]||0)+1,yd=(bC-(_l[zi]+1)/2)*.22,Ed=La.y>Ma.y,Ks=(La.x+La.w/2-(Ma.x+Ma.w/2))/Ma.w*.55;Ks>.3&&(Ks=.3),Ks<-.3&&(Ks=-.3);var zs=(Ma.x+Ma.w/2-(La.x+La.w/2))/La.w*.4;zs>.28&&(zs=.28),zs<-.28&&(zs=-.28),Da+="exitX="+Math.round((.5+zs+yd)*100)/100+";exitY="+(Ed?0:1)+";exitDx=0;exitDy=0;entryX="+Math.round((.5+Ks+yd*.6)*100)/100+";entryY="+(Ed?1:0)+";entryDx=0;entryDy=0;"}else if(_l[zi]>1&&!vi&&La&&Ma&&r.linetype!=="ortho"){var BC=xl[zi]=(xl[zi]||0)+1,Dd=(BC-(_l[zi]+1)/2)*.3,Td=La.x+La.w/2>Ma.x+Ma.w/2;Da+="exitX="+(Td?0:1)+";exitY="+Math.round((.5+Dd)*100)/100+";exitDx=0;exitDy=0;entryX="+(Td?1:0)+";entryY="+Math.round((.5+Dd)*100)/100+";entryDx=0;entryDy=0;"}if(_l[zi]===1&&vi&&La&&Ma&&r.linetype!=="ortho"&&Da.indexOf("exitX=")<0){var Sd=La.y>Ma.y,Id=La.x+La.w/2,Nd=Ma.x+Ma.w/2,yC=.5+Math.max(-.25,Math.min(.25,(Nd-Id)/La.w*.35)),EC=.5+Math.max(-.25,Math.min(.25,(Id-Nd)/Ma.w*.35));Da+="exitX="+Math.round(yC*100)/100+";exitY="+(Sd?0:1)+";exitDx=0;exitDy=0;entryX="+Math.round(EC*100)/100+";entryY="+(Sd?1:0)+";entryDx=0;entryDy=0;"}if(r.linetype==="ortho"&&vi&&La&&Ma){var Ld=La.y<Ma.y,DC=Ma.x+Ma.w/2,es=(DC-La.x)/La.w;es<.05&&(es=.05),es>.95&&(es=.95);var TC=La.x+es*La.w,fs=(TC-Ma.x)/Ma.w;fs<.05&&(fs=.05),fs>.95&&(fs=.95),es=Math.round(es*1e3)/1e3,fs=Math.round(fs*1e3)/1e3,Da+="exitX="+es+";exitY="+(Ld?1:0)+";exitDx=0;exitDy=0;entryX="+fs+";entryY="+(Ld?0:1)+";entryDx=0;entryDy=0;"}var df="";if(La&&Ma&&we.from!==we.to&&we.type!=="lollipop"&&Da.indexOf("edgeStyle=")<0){var Cu=La.y+La.h<=Ma.y,SC=Ma.y+Ma.h<=La.y;if(Cu||SC){for(var Gd=La.x+La.w/2,IC=Cu?La.y+La.h:La.y,wd=Ma.x+Ma.w/2,NC=Cu?Ma.y:Ma.y+Ma.h,zl=[],cf=0;cf<e.length;cf++){var Cf=e[cf].id;if(!(Cf===we.from||Cf===we.to)){var bs=Mr[Cf];bs&&Ll(Gd,IC,wd,NC,bs.x-3,bs.y-3,bs.w+6,bs.h+6)&&zl.push(bs)}}if(zl.length>0){for(var hf=1/0,$f=-1/0,vf=1/0,pf=-1/0,Pd=0,ri=0;ri<zl.length;ri++)zl[ri].y<hf&&(hf=zl[ri].y),zl[ri].y+zl[ri].h>$f&&($f=zl[ri].y+zl[ri].h),zl[ri].x<vf&&(vf=zl[ri].x),zl[ri].x+zl[ri].w>pf&&(pf=zl[ri].x+zl[ri].w),Pd+=zl[ri].x+zl[ri].w/2;var LC=Pd/zl.length>=(Gd+wd)/2,Yd=LC?vf-14:pf+14,Rf=hf-10,gf=$f+10;if(!Cu){var GC=Rf;Rf=gf,gf=GC}df=` <Array as="points">+ <mxPoint x="`+(Math.round(Yd)-Kl.x)+'" y="'+(Math.round(Rf)-Kl.y)+`"/>+ <mxPoint x="`+(Math.round(Yd)-Kl.x)+'" y="'+(Math.round(gf)-Kl.y)+`"/>+ </Array>+`,Da=Da.replace(/(exit|entry)(X|Y|Dx|Dy)=[-0-9.]+;/g,"")}}}if(B+=' <mxCell id="'+i(Ee("rel"))+'" value="'+T(us)+'" style="'+i(Da)+'" edge="1" parent="'+i(Kl.id)+'" source="'+i(za)+'" target="'+i(Za)+`">+`+(df?` <mxGeometry relative="1" as="geometry">+`+df+` </mxGeometry>`:` <mxGeometry relative="1" as="geometry"/>-`;return' <mxCell id="'+C(Pt)+'" value="'+w(yt)+'" style="'+C(fa)+'" edge="1" source="'+C(ft)+'" target="'+C(pa)+`" parent="1">-`+$a+` </mxCell>-`}var dt="",Me={},At={},sa={};(function Pt(yt){for(var fa=0;fa<yt.length;fa++)sa[yt[fa].id]=yt[fa].kind,yt[fa].children&&Pt(yt[fa].children)})(a);for(var Gt=0;Gt<i.length;Gt++)Me[i[Gt].from+dt+i[Gt].to]=!0,At[i[Gt].from]=(At[i[Gt].from]||0)+1;for(var Yt=0;Yt<i.length;Yt++){var St=i[Yt],st=m[St.from],Ye=m[St.to];if(!(!st||!Ye)){var $e="endArrow=block;endFill=1;strokeColor="+(O(St.color)||"#181818")+";fontColor=#000000;fontSize=12;html=1;rounded=0;labelBackgroundColor=#FFFFFF;";St.lineStyle==="dashed"?$e+="dashed=1;":St.lineStyle==="dotted"&&($e+="dashed=1;dashPattern=1 3;"),St.bold&&($e+="strokeWidth=2;");var bt=St.label||"",aa=null,ka=st.x+st.w/2,Fa=st.y+st.h/2,Oe=Ye.x+Ye.w/2,na=Ye.y+Ye.h/2,ja=St.from!==St.to&&Me[St.to+dt+St.from];if(St.from===St.to)$e+="exitX=1;exitY=0.25;exitDx=0;exitDy=0;entryX=1;entryY=0.75;entryDx=0;entryDy=0;";else if(ja){var an=St.from<St.to,Xt=an?.18:.82;if(Math.abs(na-Fa)>=Math.abs(Oe-ka)){var gn=na>Fa;$e+="exitX="+Xt+";exitY="+(gn?1:0)+";exitDx=0;exitDy=0;entryX="+Xt+";entryY="+(gn?0:1)+";entryDx=0;entryDy=0;"}else{var Xe=Oe>ka;$e+="exitX="+(Xe?1:0)+";exitY="+Xt+";exitDx=0;exitDy=0;entryX="+(Xe?0:1)+";entryY="+Xt+";entryDx=0;entryDy=0;"}}else At[St.from]>1&&sa[St.from]==="choice"&&(aa=.35);y+=It(L("t"),bt,$e,st.cellId,Ye.cellId,aa)}}for(var sr=0;sr<f.length;sr++){var cr=f[sr],te=m[cr.target],Ie=K(cr.text),rt=Ie.w,ce=Ie.h,lt=Pr,Ot=Pr,la=!0;te&&(cr.position==="right"?(lt=te.x+te.w+10,la=!0):(lt=te.x-rt-10,la=!1),Ot=te.y+(te.h-ce)/2);var Ua=L("note");if(y+=' <mxCell id="'+Ua+'" value="'+w(cr.text||"")+`" style="shape=note;size=14;fillColor=#FEFFDD;strokeColor=#181818;fontSize=12;whiteSpace=wrap;align=left;" vertex="1" parent="1">- <mxGeometry x="`+lt+'" y="'+Ot+'" width="'+rt+'" height="'+ce+`" as="geometry"/>- </mxCell>-`,te&&te.cellId){var oa=la?"endArrow=none;html=1;strokeColor=#181818;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;":"endArrow=none;html=1;strokeColor=#181818;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;";y+=jr(L("noteln"),"",oa,Ua,te.cellId,"1")}}return y}var ye=180,ae=60,We=19,ze=8,Na=32,zr=35,ea=60,Qe=78,ve=10,De=4,Ka=160,Ya=40,Jt=20,Ce=24,La=45,Ft=14,Ia=15,Za=34,Sn={" ":278,"!":278,'"':355,"#":556,$:556,"%":889,"&":667,"'":191,"(":333,")":333,"*":389,"+":584,",":278,"-":333,".":278,"/":278,0:556,1:556,2:556,3:556,4:556,5:556,6:556,7:556,8:556,9:556,":":278,";":278,"<":584,"=":584,">":584,"?":556,"@":1015,A:667,B:667,C:722,D:722,E:667,F:611,G:778,H:722,I:278,J:500,K:667,L:556,M:833,N:722,O:778,P:667,Q:778,R:722,S:667,T:611,U:722,V:667,W:944,X:667,Y:667,Z:611,"[":278,"\\":278,"]":278,"^":469,_:556,"`":333,a:556,b:556,c:500,d:556,e:556,f:278,g:556,h:556,i:222,j:222,k:500,l:222,m:833,n:556,o:556,p:556,q:556,r:333,s:500,t:278,u:556,v:500,w:722,x:500,y:500,z:500,"{":334,"|":260,"}":334,"~":584};function _a(r){if(!r)return 0;for(var s=0,a=0;a<r.length;a++){var i=Sn[r.charAt(a)];i===void 0&&(i=556),s+=i}return s/1e3*Ft*1.09}function hn(r,s){var a=r.classes,i=r.relationships,f=r.packages,y=r.notes,T="",L=0;function m(Vr){return Vr+"_"+L++}var K=r.title?Za:0,W={},Y={};function Lr(Vr){for(var en=[],Ll=[],dl=Vr.members||[],_l=0;_l<dl.length;_l++)dl[_l].kind==="method"?Ll.push(dl[_l]):en.push(dl[_l]);return{fields:en,methods:Ll}}function mr(Vr){return Vr>0?Vr*We+ze:ze}function Rr(Vr){return Vr.stereotype?Vr.stereotype.replace(/\(\s*[A-Za-z@]\s*,\s*(?:#[0-9A-Fa-f]{3,8}|[A-Za-z]+)\s*\)/,"").replace(/^\s+|\s+$/g,""):""}function fe(Vr){return Na+(Rr(Vr)?15:0)}function ie(Vr){if(Vr.kind==="circle")return 20;var en=Lr(Vr);return fe(Vr)+mr(en.fields.length)+mr(en.methods.length)}function Ir(Vr){return Qn(Vr,!0)}function ir(Vr){if(Vr.kind==="circle")return Math.max(24,Math.round(_a(Vr.name)*.6));var en=Lr(Vr),Ll=en.fields.concat(en.methods),dl=ae,_l;for(_l=0;_l<Ll.length;_l++){var qn=Ll[_l].visibility?20:6,Jo=qn+_a(Ir(Ll[_l]))+12;Jo>dl&&(dl=Jo)}var Xl=_a(Vr.name),Eo=r.hideCircle?Xl+12:Xl+32;if(Eo>dl&&(dl=Eo),Vr.stereotype){var so=Vr.stereotype.replace(/\(\s*[A-Za-z@]\s*,\s*(?:#[0-9A-Fa-f]{3,8}|[A-Za-z]+)\s*\)/,"").replace(/^\s+|\s+$/g,"");if(so){var ro=_a("\xAB"+so+"\xBB")+16;ro>dl&&(dl=ro)}}return Math.round(dl*100)/100}function Le(Vr){return Vr.fromArrow==="triangle"?Vr.from:Vr.toArrow==="triangle"?Vr.to:Vr.fromArrow==="diamond_filled"||Vr.fromArrow==="diamond_open"?Vr.from:Vr.toArrow==="diamond_filled"||Vr.toArrow==="diamond_open"||Vr.type==="extends"||Vr.type==="implements"||Vr.fromArrow==="open"&&!Vr.toArrow?Vr.to:Vr.from}function Te(Vr,en){return en===Vr.from?Vr.to:Vr.from}function Qr(Vr){if(Vr._sameRank)return null;if(Vr._topId!=null&&Vr._botId!=null)return{top:Vr._topId,bot:Vr._botId};var en=Le(Vr);return en==null?null:{top:en,bot:Te(Vr,en)}}for(var Br={},q=0;q<a.length;q++)Br[a[q].id]=!0;for(var ur={},Sr={},q=0;q<a.length;q++)ur[a[q].id]=[],Sr[a[q].id]=0;for(var Fr=0;Fr<i.length;Fr++){var Ee=Qr(i[Fr]);if(Ee!=null){var ot=Ee.top,I=Ee.bot;!Br[ot]||!Br[I]||ot===I||(ur[ot].push(I),Sr[I]++)}}var Tr={},de={},Wr={};function zt(Vr){if(de[Vr]!==void 0)return de[Vr];if(Wr[Vr])return 0;Wr[Vr]=!0;for(var en=0,Ll=ur[Vr]||[],dl=0;dl<Ll.length;dl++){var _l=1+zt(Ll[dl]);_l>en&&(en=_l)}return Wr[Vr]=!1,de[Vr]=en,en}var Ue={};for(var Ne in ur)if(ur.hasOwnProperty(Ne)){Ue[Ne]||(Ue[Ne]=[]);for(var Ze=0;Ze<ur[Ne].length;Ze++){var Ut=ur[Ne][Ze];Ue[Ut]||(Ue[Ut]=[]),Ue[Ne].push(Ut),Ue[Ut].push(Ne)}}for(var Zt={},Be=[],q=0;q<a.length;q++){var he=a[q].id;if(Zt[he]===void 0){var Jr=Be.length,me=[he],ge=0;for(Zt[he]=Jr;me.length>0;){var M=me.pop(),J=zt(M);J>ge&&(ge=J);for(var Cr=Ue[M]||[],br=0;br<Cr.length;br++)Zt[Cr[br]]===void 0&&(Zt[Cr[br]]=Jr,me.push(Cr[br]))}Be.push(ge)}}for(var q=0;q<a.length;q++){var $r=a[q].id;Tr[$r]=Be[Zt[$r]]-zt($r)}for(var vt=!0,ht=0;vt&&ht++<10;){vt=!1;for(var gt=0;gt<i.length;gt++){var X=i[gt];if(X._sameRank&&!(Tr[X.from]===void 0||Tr[X.to]===void 0)){var ue=Math.max(Tr[X.from],Tr[X.to]);(Tr[X.from]!==ue||Tr[X.to]!==ue)&&(Tr[X.from]=ue,Tr[X.to]=ue,vt=!0)}}}for(var q=0;q<a.length;q++)a[q]._w=ir(a[q]);if(i.length===0&&a.length>5)for(var ne=560,Re=0,Tt=0,Se=0;Se<a.length;Se++){var qe=a[Se]._w+40;Tt>0&&Tt+qe>ne&&(Re++,Tt=0),Tr[a[Se].id]=Re,Tt+=qe}for(var ke={},Er=[],q=0;q<a.length;q++){var Vt=Tr[a[q].id];ke[Vt]||(ke[Vt]=[],Er.push(Vt)),ke[Vt].push(a[q])}Er.sort(function(Vr,en){return Vr-en});for(var Bt=0;Bt<i.length;Bt++){var Ge=i[Bt];if(Ge._side&&!(Tr[Ge.from]===void 0||Tr[Ge.from]!==Tr[Ge.to])){for(var ut=ke[Tr[Ge.from]],Gr=-1,re=-1,ee=0;ee<ut.length;ee++)ut[ee].id===Ge.from&&(Gr=ee),ut[ee].id===Ge.to&&(re=ee);if(!(Gr<0||re<0)){if(Ge._side==="left"&&re>Gr)ut.splice(Gr,0,ut.splice(re,1)[0]);else if(Ge._side==="right"&&re<Gr){var Yr=ut.splice(re,1)[0];ut.splice(Gr,0,Yr)}}}}for(var Et={},da=0;da<i.length;da++){var He=i[da],ct=Qr(He);if(ct!=null){var Ke=ct.top,Pa=ct.bot;!Br[Ke]||!Br[Pa]||Tr[Pa]===Tr[Ke]+1&&(He.label||He.fromCardinality||He.toCardinality)&&(Et[Tr[Ke]]=!0)}}var rn={};function za(Vr,en,Ll,dl){var _l={},qn;for(qn=0;qn<Vr.length;qn++)_l[Vr[qn].id]=Vr[qn];var Jo={},Xl={};for(qn=0;qn<Vr.length;qn++)Jo[Vr[qn].id]=[],Xl[Vr[qn].id]=0;for(var Eo=0;Eo<en.length;Eo++){var so=en[Eo];_l[so.top]&&_l[so.bot]&&so.top!==so.bot&&(Jo[so.top].push(so.bot),Xl[so.bot]++)}var ro={},ti=[];for(qn=0;qn<Vr.length;qn++)Xl[Vr[qn].id]===0&&(ro[Vr[qn].id]=0,ti.push(Vr[qn].id));for(var zi=Vr.length*Vr.length+16;ti.length>0&&zi-- >0;)for(var ji=ti.shift(),ai=Jo[ji],Do=0;Do<ai.length;Do++){var Ei=ro[ji]+1;(ro[ai[Do]]===void 0||ro[ai[Do]]<Ei)&&(ro[ai[Do]]=Ei,ti.push(ai[Do]))}var Vo={},Lo=[];for(qn=0;qn<Vr.length;qn++){var yi=ro[Vr[qn].id]===void 0?0:ro[Vr[qn].id];Vo[yi]||(Vo[yi]=[],Lo.push(yi)),Vo[yi].push(Vr[qn])}Lo.sort(function(uv,hv){return uv-hv});var Wi=[],Qi=0,To,ql;for(To=0;To<Lo.length;To++){var ff=Vo[Lo[To]],Di=0;for(ql=0;ql<ff.length;ql++)ql>0&&(Di+=Ll),Di+=ff[ql].w;Wi.push(Di),Di>Qi&&(Qi=Di)}var vf={},zs=0;for(To=0;To<Lo.length;To++){var ni=Vo[Lo[To]],Ni=0;for(ql=0;ql<ni.length;ql++)ni[ql].h>Ni&&(Ni=ni[ql].h);var uf=(Qi-Wi[To])/2;for(ql=0;ql<ni.length;ql++)vf[ni[ql].id]={x:uf,y:zs+(Ni-ni[ql].h)/2},uf+=ni[ql].w+Ll;zs+=Ni+dl}return{pos:vf,width:Qi,height:Math.max(0,zs-dl)}}if(f.length>0){let Vr=function(en){return Ct[en]!==void 0?"pkg#"+Ct[en]:en};var Ct={},le,Xr;for(le=0;le<f.length;le++){var Dt=f[le].classes||[];for(Xr=0;Xr<Dt.length;Xr++)Br[Dt[Xr]]&&(Ct[Dt[Xr]]=le)}var wt={},Ve={},tt={},jt=Jt,Ur=Ce+Jt;for(le=0;le<f.length;le++){var xr=[],kt;for(kt=0;kt<a.length;kt++)Ct[a[kt].id]===le&&xr.push({id:a[kt].id,w:a[kt]._w,h:ie(a[kt])});var Aa=[];for(kt=0;kt<i.length;kt++){var Nr=Qr(i[kt]);Nr&&Ct[Nr.top]===le&&Ct[Nr.bot]===le&&Aa.push(Nr)}var Dr=za(xr,Aa,zr,ea);for(kt=0;kt<xr.length;kt++)wt[xr[kt].id]=Dr.pos[xr[kt].id];var Rt=Math.max(Dr.width,_a(f[le].name)+24);Ve[le]=Rt+Jt*2,tt[le]=Ur+Dr.height+Jt}var mt=[],wr;for(le=0;le<f.length;le++)mt.push({id:"pkg#"+le,w:Ve[le],h:tt[le]});for(wr=0;wr<a.length;wr++)Ct[a[wr].id]===void 0&&mt.push({id:a[wr].id,w:a[wr]._w,h:ie(a[wr])});var at=[];for(wr=0;wr<i.length;wr++){var we=Qr(i[wr]);if(!(!we||!Br[we.top]||!Br[we.bot])){var va=Vr(we.top),ya=Vr(we.bot);va!==ya&&at.push({top:va,bot:ya})}}var qt=za(mt,at,zr,La),Sa=ve,Wt=ve+K;for(le=0;le<f.length;le++){var Ga=qt.pos["pkg#"+le];if(Ga){var xt=Sa+Ga.x,pt=Wt+Ga.y;for(rn[le]={x:xt,y:pt,w:Ve[le],h:tt[le]},wr=0;wr<a.length;wr++)Ct[a[wr].id]===le&&wt[a[wr].id]&&(a[wr]._x=xt+jt+wt[a[wr].id].x,a[wr]._y=pt+Ur+wt[a[wr].id].y,a[wr]._h=ie(a[wr]))}}for(wr=0;wr<a.length;wr++)if(Ct[a[wr].id]===void 0){var Ta=qt.pos[a[wr].id];if(!Ta)continue;a[wr]._x=Sa+Ta.x,a[wr]._y=Wt+Ta.y,a[wr]._h=ie(a[wr])}}else{for(var Ca=[],Mt=0,Lt=0;Lt<Er.length;Lt++){for(var Je=ke[Er[Lt]],$t=0,wa=0;wa<Je.length;wa++)wa>0&&($t+=zr),$t+=Je[wa]._w;Ca.push($t),$t>Mt&&(Mt=$t)}for(var Ba=ve+K,Lt=0;Lt<Er.length;Lt++){for(var nt=ke[Er[Lt]],Ra=0,wa=0;wa<nt.length;wa++){var Ha=ie(nt[wa]);Ha>Ra&&(Ra=Ha)}for(var it=ve+(Mt-Ca[Lt])/2,wa=0;wa<nt.length;wa++){var ta=nt[wa],Ea=ie(ta);ta._x=it,ta._y=Ba+(Ra-Ea)/2,ta._h=Ea,it+=ta._w+zr}var ua=Et[Er[Lt]]?Qe:ea;Ba+=Ra+ua}}for(var ha=r.associationClasses||[],Nt=0;Nt<ha.length;Nt++){for(var tr=ha[Nt],pr=null,rr=null,er=null,Ar=0;Ar<a.length;Ar++)a[Ar].id===tr.a&&(pr=a[Ar]),a[Ar].id===tr.b&&(rr=a[Ar]),a[Ar].id===tr.cls&&(er=a[Ar]);if(!(!pr||!rr||!er)){for(var se=0,kr=0;kr<i.length;kr++)(i[kr].from===tr.cls||i[kr].to===tr.cls)&&se++;if(!(se>0)){if(rr._y!==pr._y){for(var xe=!0,Kr=0;Kr<a.length;Kr++)if(a[Kr]!==rr&&a[Kr]!==er&&a[Kr]._y===rr._y){xe=!1;break}xe&&(rr._x=pr._x+pr._w/2-rr._w/2)}var oe=(pr._x+pr._w/2+rr._x+rr._w/2)/2,Kt=(pr._y+pr._h/2+rr._y+rr._h/2)/2;er._x=oe+70,er._y=Kt-er._h/2,tr._midX=oe,tr._midY=Kt}}}for(var ga=0;ga<a.length;ga++){var Fe=a[ga];if(Fe.kind==="circle"){for(var Da=null,It=0,dt=0;dt<i.length;dt++)i[dt].type!=="lollipop"&&(i[dt].from===Fe.id||i[dt].to===Fe.id)&&(It++,Da=i[dt]);if(It===1){for(var Me=Da.from===Fe.id?Da.to:Da.from,At=null,sa=0;sa<a.length;sa++)if(a[sa].id===Me){At=a[sa];break}!At||At._y===Fe._y||(Fe._x=At._x+At._w/2-Fe._w/2)}}}if(a.length>0){for(var Gt=1/0,Yt=1/0,St=-1/0,st=-1/0,Ye=0;Ye<a.length;Ye++){var $e=a[Ye];$e._x<Gt&&(Gt=$e._x),$e._y<Yt&&(Yt=$e._y),$e._x+$e._w>St&&(St=$e._x+$e._w),$e._y+$e._h>st&&(st=$e._y+$e._h)}var bt=a.length===1?9:3;if(T+=u(m("mtl"),"","text;fillColor=none;strokeColor=none;",Gt-3,Yt-3,0,0,"1"),T+=u(m("mbr"),"","text;fillColor=none;strokeColor=none;",St+bt,st+bt,0,0,"1"),r.title){var aa=Math.max(120,_a(r.title)+20),ka=(Gt+St)/2-aa/2;T+=u(m("cltitle"),r.title,"text;html=1;fillColor=none;strokeColor=none;fontSize="+Ft+";fontStyle=1;fontColor=#000000;align=center;verticalAlign=middle;",ka,ve-3,aa,24,"1")}}for(var Fa=0;Fa<a.length;Fa++){let en=function(Ll,dl,_l){for(var qn=dl+Ia+_l*We,Jo=qn-We/2,Xl=Ll.visibility,Eo=Xl&&$n[Xl],so=Ll.kind==="method",ro=0,ti=Ll.modifiers||[],zi=0;zi<ti.length;zi++)ti[zi]==="static"&&(ro|=4);var ji=Eo?20:6,ai="text;html=1;align=left;verticalAlign=middle;spacingLeft="+ji+";spacingRight=4;overflow=hidden;rotatable=0;fillColor=none;strokeColor=none;fontSize="+Ft+";fontColor=#000000;fontStyle="+ro+";points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;",Do=m("mb");if(T+=u(Do,Ir(Ll),ai,0,Jo,Oe._w,We,na),Eo){var Ei=sn[Xl]||[6,6],Vo=Ei[0],Lo=Ei[1],yi=so?Cn[Xl]:"none",Wi=(pl[Xl]||"ellipse")+";fillColor="+yi+";strokeColor="+$n[Xl]+";strokeWidth=1;movable=0;connectable=0;";T+=u(m("vis"),"",Wi,11-Vo/2,We/2-Lo/2,Vo,Lo,Do)}};var Oe=a[Fa],J=Oe._h,na=m("cls");W[Oe.id]=na;var ja=Oe._x,an=Oe._y;if(Y[Oe.id]={x:ja,y:an,w:Oe._w,h:J},Oe.kind==="circle"){var Xt=16,gn=ja+(Oe._w-Xt)/2,Xe=an+(J-Xt)/2;T+=u(na,Oe.name,"ellipse;fillColor=#F1F1F1;strokeColor=#181818;strokeWidth=1;verticalLabelPosition=bottom;verticalAlign=top;fontSize="+Ft+";fontColor=#000000;",gn,Xe,Xt,Xt,"1"),Y[Oe.id]={x:gn,y:Xe,w:Xt,h:Xt};continue}var sr="",cr=Rr(Oe);cr&&(sr+="\xAB"+cr+`\xBB-`);var te=fe(Oe);sr+=Oe.name;var Ie="0",rt=r.hideCircle?0:25,ce="#F1F1F1",lt="#181818",Ot="#000000",la="";if(Oe.color){var Ua=Oe.color.match(/##(?:\[(\w+)\])?(\S+)/);if(Ua){var oa=O(Ua[2]);oa&&(lt=oa),Ua[1]&&/bold/i.test(Ua[1])&&(la="strokeWidth=2;")}var Pt=Oe.color.replace(/^#/,"").split(";"),yt=Pt[0].replace(/\s*##.*$/,"");if(yt){var fa=O("#"+yt);fa&&(ce=fa)}for(var ft=1;ft<Pt.length;ft++){var pa=Pt[ft].match(/^(line|text)\s*:\s*(\S+)/i);if(pa&&pa[1].toLowerCase()==="line"){var cn=O(pa[2]);cn&&(lt=cn)}else if(pa){var $a=O(pa[2]);$a&&(Ot=$a)}}}var nn="swimlane;collapsible=0;fontStyle="+Ie+";align=center;fontSize="+Ft+";fontColor="+Ot+";startSize="+te+";spacingLeft="+rt+";fillColor="+ce+";strokeColor="+lt+";"+la+"childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;marginBottom=0;stackSpacing=0;marginTop="+(Ia-We/2)+";";if(T+=u(na,sr,nn,ja,an,Oe._w,J,"1"),Oe.generics){var An=Oe.generics,tn=Math.max(20,Oe.generics.length*7+8),qa=18;T+=u(m("gen"),An,"rounded=0;fillColor=#FFFFFF;strokeColor=#181818;dashed=1;dashPattern=2 2;fontSize=10;align=center;verticalAlign=middle;movable=0;connectable=0;",Oe._w-tn-6,-3,tn,qa,na)}var ra=r.monochrome?"#C2C2C2":"#ADD1B2",Ja="C";if(Oe.kind==="interface"?(r.monochrome||(ra="#B4A7E5"),Ja="I"):Oe.kind==="enum"?(r.monochrome||(ra="#EB937F"),Ja="E"):Oe.kind==="abstract"?(r.monochrome||(ra="#A9DCDF"),Ja="A"):Oe.kind==="annotation"?(r.monochrome||(ra="#E3C6AA"),Ja="@"):Oe.kind==="struct"?(r.monochrome||(ra="#FFFFFF"),Ja="S"):Oe.kind==="protocol"?(r.monochrome||(ra="#FFFFFF"),Ja="P"):Oe.kind==="exception"?(r.monochrome||(ra="#E5574F"),Ja="X"):Oe.kind==="metaclass"?(r.monochrome||(ra="#B3B3B3"),Ja="M"):Oe.kind==="stereotype"?(r.monochrome||(ra="#EE7EEE"),Ja="S"):Oe.kind==="entity"&&(r.monochrome||(ra="#EB937F"),Ja="E"),Oe.stereotype){var pn=Oe.stereotype.match(/\(\s*([A-Za-z@])\s*,\s*(#[0-9A-Fa-f]{3,8}|[A-Za-z]+)\s*\)/);pn&&(Ja=pn[1],ra=O(pn[2])||ra)}if(!r.hideCircle){var Fn=25+_a(Oe.name),En=(Oe._w-Fn)/2;T+=u(m("ico"),Ja,"ellipse;fillColor="+ra+";strokeColor=#181818;fontSize=13;fontStyle=1;fontColor=#000000;movable=0;connectable=0;",En,5,22,22,na)}for(var Ma=Lr(Oe),Dn=Ma.fields,ln=Ma.methods,el=mr(Dn.length),on=te+el,Cn={"+":"#84BE84","-":"#F24D5C","#":"#FFFF44","~":"#4177AF"},$n={"+":"#038048","-":"#C82930","#":"#B38D22","~":"#1963A0"},pl={"+":"ellipse","-":"rounded=0","#":"rhombus","~":"triangle;direction=north"},sn={"+":[6,6],"-":[6,6],"#":[8,8],"~":[8,6]},ia=0;ia<Dn.length;ia++)en(Dn[ia],te,ia);var fn=Ia-We/2,vn=te+fn+Dn.length*We,Mn=Math.max(2,on+fn-vn);T+=u(m("clssep"),"","line;strokeWidth=0.5;strokeColor=#181818;fillColor=none;align=left;verticalAlign=middle;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;connectable=0;",0,vn,Oe._w,Mn,na);for(var ll=0;ll<ln.length;ll++)en(ln[ll],on,ll)}var ol={},il={};function In(Vr){return Vr.from<Vr.to?Vr.from+"\0"+Vr.to:Vr.to+"\0"+Vr.from}for(var Yn=0;Yn<i.length;Yn++){var wn=In(i[Yn]);ol[wn]=(ol[wn]||0)+1}for(var cl={},yl=0;yl<i.length;yl++){let Vr=function(en){return en==="cross"||en==="circlePlus"||en&&en.indexOf("ER")===0?en:null};var je=i[yl],Cl=W[je.from],El=W[je.to];if(je.type==="lollipop"){var Xn=Y[je.to];if(Xn){var lo=cl[je.to]=(cl[je.to]||0)+1,$l=Xn.y+Xn.h/2-8+(lo-1)*32,Bn=Xn.x-52;T+=u(m("lolli"),"","ellipse;fillColor=#F1F1F1;strokeColor=#181818;strokeWidth=1;",Bn,$l,16,16,"1");var Nl=_a(je.from)+8;T+=u(m("lollilbl"),je.from,"text;html=1;fillColor=none;strokeColor=none;fontSize="+Ft+";fontColor=#000000;align=center;verticalAlign=middle;",Bn+8-Nl/2,$l+18,Nl,18,"1"),T+=z(m("lolliln"),"","endArrow=none;strokeColor=#181818;html=1;",Bn+16,$l+8,Xn.x,$l+8,"1")}continue}if(!(!Cl||!El)&&!je.hidden){var Wa="endArrow=open;html=1;strokeColor=#181818;fontColor=#000000;fontSize=11;";switch(je.type){case"extends":Wa="endArrow=block;endFill=0;endSize=12;html=1;strokeColor=#181818;fontColor=#000000;fontSize=11;";break;case"implements":Wa="endArrow=block;endFill=0;endSize=12;dashed=1;html=1;strokeColor=#181818;fontColor=#000000;fontSize=11;";break;case"composition":Wa="startArrow=diamond;startFill=1;startSize=12;endArrow=none;html=1;strokeColor=#181818;fontColor=#000000;fontSize=11;";break;case"aggregation":Wa="startArrow=diamond;startFill=0;startSize=12;endArrow=none;html=1;strokeColor=#181818;fontColor=#000000;fontSize=11;";break;case"association":Wa="endArrow=open;html=1;strokeColor=#181818;fontColor=#000000;fontSize=11;";break;case"dependency":Wa="dashed=1;endArrow=open;html=1;strokeColor=#181818;fontColor=#000000;fontSize=11;";break;case"link":Wa="endArrow=none;html=1;strokeColor=#181818;fontColor=#000000;fontSize=11;";break}if((je.lineStyle==="dotted"||je.lineStyle==="dashed")&&Wa.indexOf("dashed=1")<0&&(Wa+="dashed=1;"),je.color){var Kl=O(je.color);Kl&&(Wa=Wa.replace(/strokeColor=[^;]*;/,""),Wa+="strokeColor="+Kl+";")}je.bold&&(Wa+="strokeWidth=2;");var oo=Vr(je.fromArrow),Ol=Vr(je.toArrow);oo&&(Wa=Wa.replace(/startArrow=[^;]*;/,""),Wa+="startArrow="+oo+";"),Ol&&(Wa=Wa.replace(/endArrow=[^;]*/,"endArrow="+Ol)),Wa.indexOf("startArrow=")<0&&(je.fromArrow==="diamond_filled"?Wa+="startArrow=diamond;startFill=1;":je.fromArrow==="diamond_open"&&(Wa+="startArrow=diamond;startFill=0;"));var Qa=Y[je.from],ca=Y[je.to],Il=Qa&&ca&&Math.abs(Qa.y-ca.y)>=Math.abs(Qa.x-ca.x),xl=je.label||"";if((je.fromCardinality||je.toCardinality)&&!Il){var Dl=[];je.fromCardinality&&Dl.push(je.fromCardinality),xl&&Dl.push(xl),je.toCardinality&&Dl.push(je.toCardinality),xl=Dl.join(" ")}var Gn=In(je);if(ol[Gn]>1&&Il&&Qa&&ca&&r.linetype!=="ortho"){var Io=il[Gn]=(il[Gn]||0)+1,So=(Io-(ol[Gn]+1)/2)*.22,Pl=Qa.y>ca.y,wl=(Qa.x+Qa.w/2-(ca.x+ca.w/2))/ca.w*.55;wl>.3&&(wl=.3),wl<-.3&&(wl=-.3);var Hn=(ca.x+ca.w/2-(Qa.x+Qa.w/2))/Qa.w*.4;Hn>.28&&(Hn=.28),Hn<-.28&&(Hn=-.28),Wa+="exitX="+Math.round((.5+Hn+So)*100)/100+";exitY="+(Pl?0:1)+";exitDx=0;exitDy=0;entryX="+Math.round((.5+wl+So*.6)*100)/100+";entryY="+(Pl?1:0)+";entryDx=0;entryDy=0;"}else if(ol[Gn]>1&&!Il&&Qa&&ca&&r.linetype!=="ortho"){var Zl=il[Gn]=(il[Gn]||0)+1,Po=(Zl-(ol[Gn]+1)/2)*.3,ko=Qa.x+Qa.w/2>ca.x+ca.w/2;Wa+="exitX="+(ko?0:1)+";exitY="+Math.round((.5+Po)*100)/100+";exitDx=0;exitDy=0;entryX="+(ko?1:0)+";entryY="+Math.round((.5+Po)*100)/100+";entryDx=0;entryDy=0;"}if(ol[Gn]===1&&Il&&Qa&&ca&&r.linetype!=="ortho"&&Wa.indexOf("exitX=")<0){var ba=Qa.y>ca.y,dn=Qa.x+Qa.w/2,bn=ca.x+ca.w/2,On=.5+Math.max(-.25,Math.min(.25,(bn-dn)/Qa.w*.35)),Jn=.5+Math.max(-.25,Math.min(.25,(dn-bn)/ca.w*.35));Wa+="exitX="+Math.round(On*100)/100+";exitY="+(ba?0:1)+";exitDx=0;exitDy=0;entryX="+Math.round(Jn*100)/100+";entryY="+(ba?1:0)+";entryDx=0;entryDy=0;"}if(r.linetype==="ortho"&&Il&&Qa&&ca){var Rn=Qa.y<ca.y,Bl=ca.x+ca.w/2,Yl=(Bl-Qa.x)/Qa.w;Yl<.05&&(Yl=.05),Yl>.95&&(Yl=.95);var _n=Qa.x+Yl*Qa.w,mn=(_n-ca.x)/ca.w;mn<.05&&(mn=.05),mn>.95&&(mn=.95),Yl=Math.round(Yl*1e3)/1e3,mn=Math.round(mn*1e3)/1e3,Wa+="exitX="+Yl+";exitY="+(Rn?1:0)+";exitDx=0;exitDy=0;entryX="+mn+";entryY="+(Rn?0:1)+";entryDx=0;entryDy=0;"}if(T+=' <mxCell id="'+C(m("rel"))+'" value="'+w(xl)+'" style="'+C(Wa)+'" edge="1" parent="1" source="'+C(Cl)+'" target="'+C(El)+`">- <mxGeometry relative="1" as="geometry"/>- </mxCell>-`,Il&&(je.fromCardinality||je.toCardinality)){var tl="text;html=1;align=left;verticalAlign=middle;fillColor=none;strokeColor=none;fontSize=13;fontColor=#000000;";if(je.fromCardinality){var Vn=_a(je.fromCardinality)*13/Ft,sl=Qa.x+Qa.w/2-Vn-4,jn=Qa.y<ca.y?Qa.y+Qa.h+4:Qa.y-20;T+=u(m("card"),je.fromCardinality,tl,sl,jn,Vn+4,16,"1")}if(je.toCardinality){var un=_a(je.toCardinality)*13/Ft,bl=ca.x+ca.w/2-un-4,$s=ca.y>Qa.y?ca.y-20:ca.y+ca.h+4;T+=u(m("card"),je.toCardinality,tl,bl,$s,un+4,16,"1")}}}}for(var io=0;io<ha.length;io++){var Al=ha[io];if(Al._midX!=null){var $i=Y[Al.cls];$i&&(T+=u(m("acdot"),"","ellipse;fillColor=#181818;strokeColor=#181818;",Al._midX-4,Al._midY-4,8,8,"1"),T+=z(m("aclink"),"","endArrow=none;dashed=1;dashPattern=5 5;strokeColor=#181818;html=1;",Al._midX+4,Al._midY,$i.x,Al._midY,"1"))}}for(var ei={},Go=0;Go<a.length;Go++)ei[a[Go].id]=a[Go];for(var po=0;po<y.length;po++){for(var Rl=y[po],rl=Y[Rl.target],co=Rl.text?Rl.text.split(`-`):[""],gi=0,Os=0;Os<co.length;Os++){var nf=_a(co[Os])*13/Ft;nf>gi&&(gi=nf)}var Hi=Math.round(gi+20),Oi=Math.round(co.length*17.7+12),pi=ve,ci=ve;if(rl&&Rl.method){for(var lf=ei[Rl.target],Ps=lf?Lr(lf):{fields:[],methods:[]},of=0,Ji=0;Ji<Ps.methods.length;Ji++)if(Ps.methods[Ji].name===Rl.method){of=Ji;break}var fv=Na+mr(Ps.fields.length),vv=rl.y+fv+Ia+of*We;pi=rl.x+rl.w+36,ci=vv-Oi/2}else if(rl)switch(Rl.position){case"left":pi=rl.x-Hi-36,ci=rl.y+rl.h/2-Oi/2;break;case"right":pi=rl.x+rl.w+36,ci=rl.y+rl.h/2-Oi/2;break;case"top":pi=rl.x+rl.w/2-Hi/2,ci=rl.y-Oi-40;break;case"bottom":pi=rl.x+rl.w/2-Hi/2,ci=rl.y+rl.h+40;break}var sf=m("note");T+=' <mxCell id="'+sf+'" value="'+w(Rl.text||"")+`" style="shape=note;size=10;fillColor=#FEFFDD;strokeColor=#181818;fontSize=13;fontColor=#000000;whiteSpace=wrap;align=left;verticalAlign=middle;spacingLeft=4;" vertex="1" parent="1">- <mxGeometry x="`+pi+'" y="'+ci+'" width="'+Hi+'" height="'+Oi+`" as="geometry"/>+`)+` </mxCell>+`,vi&&(we.fromCardinality||we.toCardinality)){var Md="text;html=1;align=left;verticalAlign=middle;fillColor=none;strokeColor=none;fontSize=13;fontColor=#000000;";if(we.fromCardinality){var Af=_n(we.fromCardinality)*13/Xn,xd=La.x+La.w/2-Af-4,Hd=La.y<Ma.y?La.y+La.h+4:La.y-20,mf=Ba(xd,Hd,Af+4,16);B+=er(Ee("card"),we.fromCardinality,Md,xd-mf.x,Hd-mf.y,Af+4,16,mf.id)}if(we.toCardinality){var kf=_n(we.toCardinality)*13/Xn,Kd=Ma.x+Ma.w/2-kf-4,zd=Ma.y>La.y?Ma.y-20:Ma.y+Ma.h+4,_f=Ba(Kd,zd,kf+4,16);B+=er(Ee("card"),we.toCardinality,Md,Kd-_f.x,zd-_f.y,kf+4,16,_f.id)}}}}}for(var Of=0;Of<Cr.length;Of++){var Wi=Cr[Of];if(Wi._midX!=null){var Wd=Mr[Wi.cls];if(Wd){var Ff=Ba(Wi._midX-4,Wi._midY-4,8,8);B+=er(Ee("acdot"),"","ellipse;fillColor=#181818;strokeColor=#181818;",Wi._midX-4-Ff.x,Wi._midY-4-Ff.y,8,8,Ff.id),B+=Qr(Ee("aclink"),"","endArrow=none;dashed=1;dashPattern=5 5;strokeColor=#181818;html=1;",Wi._midX+4,Wi._midY,Wd.x,Wi._midY,"1")}}}for(var hu={},$u=0;$u<e.length;$u++)hu[e[$u].id]=e[$u];var Ws=un,Ud=un,Fi;for(Fi in Mr)Mr.hasOwnProperty(Fi)&&Mr[Fi].y+Mr[Fi].h>Ws&&(Ws=Mr[Fi].y+Mr[Fi].h);for(Fi in Xt)Xt.hasOwnProperty(Fi)&&Xt[Fi].y+Xt[Fi].h>Ws&&(Ws=Xt[Fi].y+Xt[Fi].h);for(var Bs=0;Bs<h.length;Bs++){var bl=h[Bs],Cn=bl.target?Mr[bl.target]:null;if(bl.method&&hu[bl.target]){for(var Xd=hu[bl.target],vu=Xd.members||[],qd=!1,Us=0;Us<vu.length;Us++)if(vu[Us].kind!=="separator"&&vu[Us].name===bl.method){qd=!Jr(Xd,vu[Us].kind==="method"?"method":"field");break}if(qd)continue}var Zd=Ue(bl),Yi=Zd.w,Mi=Zd.h,si=un,ui=un;if(Cn||(no[Bs]?(si=no[Bs].x,ui=no[Bs].y):(si=Ud,ui=Ws+40,Ud+=Yi+30)),Cn&&bl.method){for(var jd=hu[bl.target],bf=jd?_o(jd):{fields:[],methods:[]},Vd=0,pu=0;pu<bf.methods.length;pu++)if(bf.methods[pu].name===bl.method){Vd=pu;break}var wC=Gt+po(bf.fields.length),PC=Cn.y+wC+ol+Vd*ze;si=Cn.x+Cn.w+36,ui=PC-Mi/2}else if(Cn)switch(bl.position){case"left":si=Cn.x-Yi-36,ui=Cn.y+Cn.h/2-Mi/2;break;case"right":si=Cn.x+Cn.w+36,ui=Cn.y+Cn.h/2-Mi/2;break;case"top":si=Cn.x+Cn.w/2-Yi/2,ui=Cn.y-Mi-40;break;case"bottom":si=Cn.x+Cn.w/2-Yi/2,ui=Cn.y+Cn.h+40;break}var Bf=Ee("note"),yf=Ba(si,ui,Yi,Mi);B+=' <mxCell id="'+Bf+'" value="'+T(bl.text||"")+'" style="'+i(_r("shape=note;size=10;fillColor=#FEFFDD;strokeColor=#181818;fontSize=13;fontColor=#000000;whiteSpace=wrap;align=left;verticalAlign=middle;spacingLeft=4;",["note"]))+'" vertex="1" parent="'+i(yf.id)+`">+ <mxGeometry x="`+(si-yf.x)+'" y="'+(ui-yf.y)+'" width="'+Yi+'" height="'+Mi+`" as="geometry"/></mxCell>-`,W[Rl.target]&&(T+=jr(m("noteln"),"","shape=arrow;width=12;endWidth=1;endSize=1;html=1;fillColor=#FEFFDD;strokeColor=#181818;",sf,W[Rl.target],"1"))}for(var Vi=0;Vi<f.length;Vi++){var zo=f[Vi],Ht=rn[Vi];if(Ht){var Pi=(zo.stereotype||"").toLowerCase();if(Pi==="node"){T+=u(m("pkg"),zo.name,"shape=cube;size=10;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=12;align=left;verticalAlign=top;spacingLeft=6;spacingTop=10;",Ht.x,Ht.y,Ht.w,Ht.h,"1");continue}if(Pi==="rectangle"){T+=u(m("pkg"),zo.name,"rounded=0;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=12;align=left;verticalAlign=top;spacingLeft=6;spacingTop=2;",Ht.x,Ht.y,Ht.w,Ht.h,"1");continue}if(Pi==="cloud"){T+=u(m("pkg"),zo.name,"shape=cloud;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=12;align=center;verticalAlign=top;spacingTop=10;",Ht.x,Ht.y,Ht.w,Ht.h,"1");continue}if(Pi==="database"){T+=u(m("pkg"),zo.name,"shape=cylinder;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=12;align=center;verticalAlign=top;spacingTop=16;",Ht.x,Ht.y,Ht.w,Ht.h,"1");continue}if(Pi==="frame"){var Ho=Math.min(Ht.w,Math.round(_a(zo.name)+22));Ho<30&&(Ho=30),T+=u(m("pkg"),"","rounded=0;fillColor=none;strokeColor=#000000;",Ht.x,Ht.y,Ht.w,Ht.h,"1"),T+=u(m("pkgtab"),zo.name,"text;html=1;fillColor=none;strokeColor=none;fontColor=#000000;fontSize=12;align=left;verticalAlign=middle;spacingLeft=4;",Ht.x,Ht.y,Ho-8,Ce,"1"),T+=z(m("pkgfr"),"","endArrow=none;startArrow=none;strokeColor=#000000;",Ht.x,Ht.y+Ce,Ht.x+Ho-8,Ht.y+Ce,"1"),T+=z(m("pkgfr"),"","endArrow=none;startArrow=none;strokeColor=#000000;",Ht.x+Ho-8,Ht.y+Ce,Ht.x+Ho,Ht.y+Ce-8,"1"),T+=z(m("pkgfr"),"","endArrow=none;startArrow=none;strokeColor=#000000;",Ht.x+Ho,Ht.y+Ce-8,Ht.x+Ho,Ht.y,"1");continue}var di=Math.min(Ht.w,Math.round(_a(zo.name)+20));di<30&&(di=30),T+=u(m("pkg"),"","rounded=0;fillColor=none;strokeColor=#000000;",Ht.x,Ht.y+Ce,Ht.w,Ht.h-Ce,"1"),T+=u(m("pkgtab"),zo.name,"text;html=1;fillColor=none;strokeColor=none;fontColor=#000000;fontSize=12;fontStyle=1;align=left;verticalAlign=middle;spacingLeft=6;",Ht.x,Ht.y,di-8,Ce,"1"),T+=z(m("pkgtb"),"","endArrow=none;startArrow=none;strokeColor=#000000;",Ht.x,Ht.y,Ht.x+di-8,Ht.y,"1"),T+=z(m("pkgtb"),"","endArrow=none;startArrow=none;strokeColor=#000000;",Ht.x+di-8,Ht.y,Ht.x+di,Ht.y+Ce,"1"),T+=z(m("pkgtb"),"","endArrow=none;startArrow=none;strokeColor=#000000;",Ht.x,Ht.y,Ht.x,Ht.y+Ce,"1")}}return T}function Qn(r,s){var a="";return r.visibility&&!s&&(a+=r.visibility+" "),a+=r.name,r.kind==="method"?(r.params!==null&&r.params!==void 0&&(a+="("+r.params+")"),r.returnType&&(a+=": "+r.returnType)):r.type&&(a+=": "+r.type),a.replace(/<<\s*([^<>]*?)\s*>>/g,"\xAB$1\xBB")}var Xa=140,fl=36,ma=20,Ln=40,Tn=30,kn=20,Nn=24,yn=40,Oa=28,Un=24,vl=10,al=12,xn=80,ul=6,Sl=120,Pn=30;function hl(r,s){var a=0;function i(Jr){return(Jr||"act")+"_"+a++}function f(Jr){for(var me=(Jr||"").split(`-`),ge=0,M=0;M<me.length;M++){for(var J=0,Cr=0;Cr<me[M].length;Cr++){var br=me[M].charAt(Cr);`iIljtfr.,:;!|'"()[]{} `.indexOf(br)>=0?J+=4.2:"mwMW".indexOf(br)>=0?J+=11.7:J+=7.8}J>ge&&(ge=J)}return Math.max(30,Math.round(ge*.8571428571428571+20))}function y(Jr){if(!Jr||!Jr.length)return yn;for(var me=yn,ge=0;ge<Jr.length;ge++){var M=Jr[ge],J=yn;if(M.type==="action")J=f(M.label||"");else if(M.type==="if"){var Cr=y(M.elseBranch);if(M.elseIfBranches)for(var br=0;br<M.elseIfBranches.length;br++){var $r=y(M.elseIfBranches[br].body);$r>Cr&&(Cr=$r)}J=y(M.thenBranch)+32+Cr}else if(M.type==="while"||M.type==="repeat"){if(J=y(M.body)+Xa/2,M.type==="repeat"){if(M.label){var vt=f(M.label)+Xa/2;vt>J&&(J=vt)}M.backward&&(J+=f(M.backward.label||""))}}else M.type==="switch"?J=(M.cases?M.cases.length:1)*(Xa+Ln):(M.type==="fork"||M.type==="split")&&(J=(M.branches?M.branches.length:1)*(Xa+Ln));J>me&&(me=J)}return me}var T="#F1F1F1",L=r.arrowHeadColor==="none"||r.arrowHeadColor==="transparent"?"endArrow=none;":"endArrow=classic;endSize=8;",m="",K=Tn+Xa/2,W=Tn;function Y(Jr,me,ge){var M=me,J=ge,Cr=null,br=J,$r=M+Xa/2,vt="";function ht(){var Pl=vt;return vt="",Pl}for(var gt=0;gt<Jr.length;gt++){var X=Jr[gt],ue=i(X.type);switch(X.type){case"start":{m+=u(ue,"","ellipse;fillColor=#222222;strokeColor=#222222;",M-kn/2,J,kn,kn,"1"),Cr&&(m+=z(i("e"),ht(),L+"strokeColor=#181818;",M,br,M,J,"1")),Cr=ue,br=J+kn,J+=kn+ma;break}case"stop":{m+=u(ue,"","ellipse;shape=endState;fillColor=#222222;strokeColor=#222222;",M-Nn/2,J,Nn,Nn,"1"),Cr&&(m+=z(i("e"),ht(),L+"strokeColor=#181818;",M,br,M,J,"1")),Cr=ue,br=J+Nn,J+=Nn+ma;break}case"end":{m+=u(ue,"","ellipse;fillColor=#222222;strokeColor=#222222;",M-kn/2,J,kn,kn,"1"),Cr&&(m+=z(i("e"),ht(),L+"strokeColor=#181818;",M,br,M,J,"1")),Cr=ue,br=J+kn,J+=kn+ma;break}case"action":{var ne=O(X.color)||"#F1F1F1",Re=X.label||"",Tt=Re.split(`-`),Se=f(Re),qe=Math.max(fl,Math.round(20+Tt.length*16.3));m+=u(ue,Re,"rounded=1;absoluteArcSize=1;arcSize=25;fillColor="+ne+";strokeColor=#181818;strokeWidth=0.5;whiteSpace=wrap;fontSize=12;align=left;spacingLeft=6;",M-Se/2,J,Se,qe,"1"),Cr&&(m+=z(i("e"),ht(),L+"strokeColor=#181818;",M,br,M,J,"1")),Cr=ue,br=J+qe,J+=qe+ma;break}case"if":{let Pl=function(wl){if(!wl||wl.length===0)return!1;var Hn=wl[wl.length-1];return Hn.type==="stop"||Hn.type==="end"||Hn.type==="kill"||Hn.type==="detach"};if(X.elseIfBranches&&X.elseIfBranches.length>0){let wl=function(Hn){if(!Hn||Hn.length===0)return!1;var Zl=Hn[Hn.length-1];return Zl.type==="stop"||Zl.type==="end"||Zl.type==="kill"||Zl.type==="detach"};for(var ke=[{condition:X.condition,thenLabel:X.thenLabel,body:X.thenBranch||[]}],Er=0;Er<X.elseIfBranches.length;Er++)ke.push(X.elseIfBranches[Er]);var Vt=J,Bt=Vt+Oa/2,Ge=Vt+Oa+ma,ut=42,Gr=[],re=[];for(Er=0;Er<ke.length;Er++){var ee=Math.max(yn,(ke[Er].condition||"").length*5.5+24);Gr.push(ee),re.push(Math.max(ee,y(ke[Er].body)))}var Yr=[],Et=M;for(Er=0;Er<ke.length;Er++)Er>0&&(Et+=re[Er-1]/2+ut+re[Er]/2),Yr.push(Et);var da=X.elseBranch&&X.elseBranch.length>0,He=da?Math.max(y(X.elseBranch),60):0,ct=Et+re[ke.length-1]/2+ut+He/2;Cr&&(m+=z(i("e"),ht(),L+"strokeColor=#181818;",M,br,M,Vt,"1"));var Ke=[],Pa=[],rn=[],za=Ge;for(Er=0;Er<ke.length;Er++){var Ct=ke[Er],le=Yr[Er];m+=u(i("diamond"),Ct.condition||"","shape=hexagon;perimeter=hexagonPerimeter2;fillColor="+T+";strokeColor=#181818;whiteSpace=wrap;fontSize=11;",le-Gr[Er]/2,Vt,Gr[Er],Oa,"1"),Er>0&&(m+=z(i("e"),"",L+"strokeColor=#181818;",Yr[Er-1]+Gr[Er-1]/2,Bt,le-Gr[Er]/2,Bt,"1")),m+=z(i("e"),Ct.thenLabel||"yes",L+"strokeColor=#181818;fontSize=11;",le,Vt+Oa,le,Ge,"1");var Xr=Ge;if(Ct.body&&Ct.body.length>0){var Dt=Y(Ct.body,le,Ge);Xr=Dt.prevY||Dt.y,Dt.maxX>$r&&($r=Dt.maxX)}Ke.push(le),Pa.push(Xr),rn.push(!wl(Ct.body)),Xr>za&&(za=Xr),le+re[Er]/2>$r&&($r=le+re[Er]/2)}if(da){m+=z(i("e"),X.elseLabel||"no","endArrow=none;strokeColor=#181818;fontSize=11;",Yr[ke.length-1]+Gr[ke.length-1]/2,Bt,ct,Bt,"1"),m+=z(i("e"),"",L+"strokeColor=#181818;",ct,Bt,ct,Ge,"1");var wt=Y(X.elseBranch,ct,Ge),Ve=wt.prevY||wt.y;wt.maxX>$r&&($r=wt.maxX),ct+He/2>$r&&($r=ct+He/2),Ke.push(ct),Pa.push(Ve),rn.push(!wl(X.elseBranch)),Ve>za&&(za=Ve)}var tt=za+ma,jt=1/0,Ur=-1/0,xr=0;for(Er=0;Er<Ke.length;Er++)rn[Er]&&(xr++,Ke[Er]<jt&&(jt=Ke[Er]),Ke[Er]>Ur&&(Ur=Ke[Er]),m+=z(i("e"),"",L+"strokeColor=#181818;",Ke[Er],Pa[Er],Ke[Er],tt,"1"));xr>1&&(m+=z(i("e"),"","endArrow=none;strokeColor=#181818;",jt,tt,Ur,tt,"1")),M=xr>0?Math.round((jt+Ur)/2):M,Cr="cascade",br=tt,J=tt+ma;break}var kt=i("diamond"),Aa=Math.max(yn,(X.condition||"").length*5.5+24);m+=u(kt,X.condition||"","shape=hexagon;perimeter=hexagonPerimeter2;fillColor="+T+";strokeColor=#181818;whiteSpace=wrap;fontSize=11;",M-Aa/2,J,Aa,Oa,"1"),Cr&&(m+=z(i("e"),ht(),L+"strokeColor=#181818;",M,br,M,J,"1"));var Nr=J+Oa/2,Dr=J+Oa+ma,Rt=[];if(X.elseIfBranches&&X.elseIfBranches.length>0)for(var mt=0;mt<X.elseIfBranches.length;mt++)for(var wr=0;wr<X.elseIfBranches[mt].body.length;wr++)Rt.push(X.elseIfBranches[mt].body[wr]);if(X.elseBranch)for(var at=0;at<X.elseBranch.length;at++)Rt.push(X.elseBranch[at]);var we=Rt.length>0,va=y(X.thenBranch),ya=y(Rt),qt=32,Sa=we?Math.round(M-(qt/2+va/2)):M,Wt=Math.round(M+(qt/2+ya/2)),Ga=Dr,xt=Sa,pt=!1;if(m+=z(i("e"),X.thenLabel||"yes","endArrow=none;strokeColor=#181818;fontSize=11;",M-Aa/2,Nr,Sa,Nr,"1"),m+=z(i("e"),"",L+"strokeColor=#181818;",Sa,Nr,Sa,Dr,"1"),X.thenBranch&&X.thenBranch.length>0){var Ta=Y(X.thenBranch,Sa,Dr);Ga=Ta.prevY||Ta.y,pt=!0,Ta.maxX>$r&&($r=Ta.maxX)}var Ca=Dr,Mt=Wt,Lt=!1;if(we){m+=z(i("e"),X.elseLabel||"no","endArrow=none;strokeColor=#181818;fontSize=11;",M+Aa/2,Nr,Wt,Nr,"1"),m+=z(i("e"),"",L+"strokeColor=#181818;",Wt,Nr,Wt,Dr,"1");var Je=Y(Rt,Wt,Dr);Ca=Je.prevY||Je.y,Lt=!0,Je.maxX>$r&&($r=Je.maxX),Wt+ya/2>$r&&($r=Wt+ya/2)}var $t=!pt||!Pl(X.thenBranch),wa=!Lt||!Pl(Rt),Ba=($t?1:0)+(wa?1:0);if(Ba===1&&(pt||Lt)){br=$t?Ga:Ca,M=$t?xt:Mt,J=br+ma;break}J=Math.max($t?Ga:Dr,wa?Ca:Dr)+ma;var nt=i("merge"),Ra=Un/2,Ha=J+Ra;m+=u(nt,"","rhombus;fillColor="+T+";strokeColor=#181818;",M-Ra,J,Un,Un,"1"),pt&&$t&&(m+=z(i("e"),"","endArrow=none;strokeColor=#181818;",xt,Ga,xt,Ha,"1"),m+=z(i("e"),"",L+"strokeColor=#181818;",xt,Ha,M-Ra,Ha,"1")),Lt&&wa&&(m+=z(i("e"),"","endArrow=none;strokeColor=#181818;",Mt,Ca,Mt,Ha,"1"),m+=z(i("e"),"",L+"strokeColor=#181818;",Mt,Ha,M+Ra,Ha,"1")),Cr=nt,br=J+Un,J+=Un+ma;break}case"while":{var it=i("wdiamond"),ta=Math.max(yn,(X.condition||"").length*5.5+24),Ea=J,ua=J+Oa/2;m+=u(it,X.condition||"","shape=hexagon;perimeter=hexagonPerimeter2;fillColor="+T+";strokeColor=#181818;whiteSpace=wrap;fontSize=11;",M-ta/2,J,ta,Oa,"1"),Cr&&(m+=z(i("e"),ht(),L+"strokeColor=#181818;",M,br,M,J,"1"));var ha=J+Oa+ma+14;m+=z(i("e"),X.isLabel||"yes",L+"strokeColor=#181818;fontSize=11;",M,J+Oa,M,ha,"1");var Nt=ha,tr=ha;if(X.body&&X.body.length>0){var pr=Y(X.body,M,ha);Nt=pr.y,tr=pr.prevY||Nt,pr.maxX>$r&&($r=pr.maxX)}var rr=M+ta/2+15,er=Math.round((tr+ua)/2);m+=z(i("e"),"","endArrow=none;strokeColor=#181818;",M,tr,rr,tr,"1"),m+=z(i("e"),"",L+"strokeColor=#181818;",rr,tr,rr,er,"1"),m+=z(i("e"),"","endArrow=none;strokeColor=#181818;",rr,er,rr,ua,"1"),m+=z(i("e"),"",L+"strokeColor=#181818;",rr,ua,M+ta/2,ua,"1");var Ar=X.body&&X.body.length>0?y(X.body)/2:0,se=Math.round(M-Math.max(ta/2+18,Ar+24)),kr=tr+26;m+=z(i("e"),X.endLabel||"no","endArrow=none;strokeColor=#181818;fontSize=11;",M-ta/2,ua,se,ua,"1"),m+=z(i("e"),"","endArrow=none;strokeColor=#181818;",se,ua,se,kr,"1"),m+=z(i("e"),"","endArrow=none;strokeColor=#181818;",se,kr,M,kr,"1"),Cr=it,br=kr,J=kr+ma;break}case"repeat":{Cr&&(m+=z(i("e"),ht(),L+"strokeColor=#181818;",M,br,M,J,"1"));var xe=i("rstart"),Kr=J,oe=24,Kt=24;if(X.label){var ga=O(X.color)||"#F1F1F1";oe=f(X.label),Kt=Math.max(fl,Math.round(20+X.label.split(`-`).length*16.3)),m+=u(xe,X.label,"rounded=1;absoluteArcSize=1;arcSize=25;fillColor="+ga+";strokeColor=#181818;strokeWidth=0.5;whiteSpace=wrap;fontSize=12;align=left;spacingLeft=6;",M-oe/2,J,oe,Kt,"1")}else m+=u(xe,"","rhombus;fillColor="+T+";strokeColor=#181818;",M-12,J,24,24,"1");var Fe=Math.round(Kr+Kt/2),Da=M+oe/2,It=Kr+Kt+ma;m+=z(i("e"),"",L+"strokeColor=#181818;",M,Kr+Kt,M,It,"1"),J=It;var dt=J,Me=M+yn/2;if(X.body&&X.body.length>0){var At=Y(X.body,M,J);dt=At.prevY||At.y,At.maxX>$r&&($r=At.maxX),At.maxX>Me&&(Me=At.maxX)}var sa=i("rdiamond"),ta=Math.max(yn,(X.condition||"").length*5.5+24),Gt=dt+Oa/2;m+=u(sa,X.condition||"","shape=hexagon;perimeter=hexagonPerimeter2;fillColor="+T+";strokeColor=#181818;whiteSpace=wrap;fontSize=11;",M-ta/2,dt,ta,Oa,"1");var Yt=0,St=0;X.backward&&(Yt=f(X.backward.label||""),St=Math.max(fl,Math.round(20+(X.backward.label||"").split(`-`).length*16.3)));var st=Math.round(Math.max(M+ta/2,Me,Da)+12+Yt/2);if(m+=z(i("e"),X.isLabel||"","endArrow=none;strokeColor=#181818;fontSize=11;",M+ta/2,Gt,st,Gt,"1"),X.backward){var Ye=Math.round((Kr+Kt+Gt)/2-St/2);m+=z(i("e"),X.backward.incomingLabel||"",L+"strokeColor=#181818;fontSize=11;",st,Gt,st,Ye+St,"1"),m+=u(i("backward"),X.backward.label||"","rounded=1;absoluteArcSize=1;arcSize=25;fillColor=#F1F1F1;strokeColor=#181818;strokeWidth=0.5;whiteSpace=wrap;fontSize=12;align=left;spacingLeft=6;",st-Yt/2,Ye,Yt,St,"1"),m+=z(i("e"),X.backward.outgoingLabel||"","endArrow=none;strokeColor=#181818;fontSize=11;",st,Ye,st,Fe,"1")}else{var $e=Math.round((Gt+Fe)/2);m+=z(i("e"),"",L+"strokeColor=#181818;",st,Gt,st,$e,"1"),m+=z(i("e"),"","endArrow=none;strokeColor=#181818;",st,$e,st,Fe,"1")}m+=z(i("e"),"",L+"strokeColor=#181818;",st,Fe,Da,Fe,"1"),st+Yt/2>$r&&($r=st+Yt/2),Cr=sa,br=dt+Oa,vt=X.notLabel||"",J=dt+Oa+ma+14;break}case"fork":{for(var bt=X.branches?X.branches.length:0,aa=[],ka=0,Fa=0;Fa<bt;Fa++){var Oe=y(X.branches[Fa]);aa.push(Oe),ka+=Oe}bt>1&&(ka+=vl*(bt-1));for(var na=M-ka/2,ja=[],an=0,Xt=0;Xt<bt;Xt++)ja.push(Math.round(na+an+aa[Xt]/2)),an+=aa[Xt]+vl;var gn=Math.round(na-al),Xe=Math.round(ka+2*al);Xe<xn&&(gn=Math.round(M-xn/2),Xe=xn);var sr=i("forkbar");m+=u(sr,"","shape=rectangle;fillColor=#555555;strokeColor=#555555;",gn,J,Xe,ul,"1"),Cr&&(m+=z(i("e"),ht(),L+"strokeColor=#181818;",M,br,M,J,"1"));for(var cr=J+ul,te=cr+ma,Ie=te,rt=[],ce=0;ce<bt;ce++){var lt=ja[ce];m+=z(i("e"),"",L+"strokeColor=#181818;",lt,cr,lt,te,"1");var Ot=Y(X.branches[ce],lt,te);rt.push({bx:lt,by:Ot.prevY||Ot.y}),Ot.y>Ie&&(Ie=Ot.y),Ot.maxX>$r&&($r=Ot.maxX)}J=Ie;for(var la=0;la<rt.length;la++)m+=z(i("e"),"",L+"strokeColor=#181818;",rt[la].bx,rt[la].by,rt[la].bx,J,"1");var Ua=i("joinbar");m+=u(Ua,"","shape=rectangle;fillColor=#555555;strokeColor=#555555;",gn,J,Xe,ul,"1"),gn+Xe>$r&&($r=gn+Xe),Cr=Ua,br=J+ul,J+=ul+ma;break}case"split":{for(var oa=X.branches?X.branches.length:0,Pt=[],yt=0,fa=0;fa<oa;fa++){var ft=y(X.branches[fa]);Pt.push(ft),yt+=ft}oa>1&&(yt+=vl*(oa-1));for(var pa=M-yt/2,cn=[],$a=0,nn=0;nn<oa;nn++)cn.push(Math.round(pa+$a+Pt[nn]/2)),$a+=Pt[nn]+vl;var An=J;Cr&&(m+=z(i("e"),ht(),L+"strokeColor=#181818;",M,br,M,An,"1")),oa>1&&(m+=z(i("e"),"","endArrow=none;strokeColor=#181818;",cn[0],An,cn[oa-1],An,"1"));for(var tn=An+ma+8,qa=tn,ra=[],Ja=0;Ja<oa;Ja++){var pn=cn[Ja];m+=z(i("e"),"",L+"strokeColor=#181818;",pn,An,pn,tn,"1");var Fn=Y(X.branches[Ja],pn,tn);ra.push({bx:pn,by:Fn.prevY||Fn.y}),Fn.y>qa&&(qa=Fn.y),Fn.maxX>$r&&($r=Fn.maxX)}for(var En=qa+8,Ma=0;Ma<ra.length;Ma++)m+=z(i("e"),"",L+"strokeColor=#181818;",ra[Ma].bx,ra[Ma].by,ra[Ma].bx,En,"1");oa>1&&(m+=z(i("e"),"","endArrow=none;strokeColor=#181818;",ra[0].bx,En,ra[oa-1].bx,En,"1")),Cr="splitmerge",br=En,J=En+ma;break}case"switch":{var Dn=i("swdiamond"),ta=Math.max(yn,(X.condition||"").length*5.5+24),ln=J+Oa/2,el=J+Oa;m+=u(Dn,X.condition||"","shape=hexagon;perimeter=hexagonPerimeter2;fillColor="+T+";strokeColor=#181818;whiteSpace=wrap;fontSize=11;",M-ta/2,J,ta,Oa,"1"),Cr&&(m+=z(i("e"),ht(),L+"strokeColor=#181818;",M,br,M,J,"1"));for(var on=J+Oa+ma+14,Cn=on,$n=X.cases?X.cases.length:0,pl=[],sn=0,ia=0;ia<$n;ia++){var fn=(X.cases[ia].label||"").length*5.5+20,vn=Math.max(y(X.cases[ia].body),fn);pl.push(vn),sn+=vn}$n>1&&(sn+=Ln*($n-1));for(var Mn=M-sn/2,ll=[],ol=0,il=0;il<$n;il++)ll.push(Math.round(Mn+ol+pl[il]/2)),ol+=pl[il]+Ln;for(var In=[],Yn=0;Yn<$n;Yn++){var wn=ll[Yn];if(wn<M-1?(m+=z(i("e"),"","endArrow=none;strokeColor=#181818;",M-ta/2,ln,wn,ln,"1"),m+=z(i("e"),X.cases[Yn].label||"",L+"strokeColor=#181818;fontSize=11;",wn,ln,wn,on,"1")):wn>M+1?(m+=z(i("e"),"","endArrow=none;strokeColor=#181818;",M+ta/2,ln,wn,ln,"1"),m+=z(i("e"),X.cases[Yn].label||"",L+"strokeColor=#181818;fontSize=11;",wn,ln,wn,on,"1")):m+=z(i("e"),X.cases[Yn].label||"",L+"strokeColor=#181818;fontSize=11;",M,el,wn,on,"1"),X.cases[Yn].body&&X.cases[Yn].body.length>0){var cl=Y(X.cases[Yn].body,wn,on);cl.y>Cn&&(Cn=cl.y),cl.maxX>$r&&($r=cl.maxX),In.push({x:wn,y:cl.prevY||on})}else In.push({x:wn,y:on})}var yl=Cn+ma,je=Un/2,Cl=yl+je,nt=i("swmerge");m+=u(nt,"","rhombus;fillColor="+T+";strokeColor=#181818;",M-je,yl,Un,Un,"1");for(var El=0;El<In.length;El++){var Xn=In[El].x;Xn<M-1?(m+=z(i("e"),"","endArrow=none;strokeColor=#181818;",Xn,In[El].y,Xn,Cl,"1"),m+=z(i("e"),"",L+"strokeColor=#181818;",Xn,Cl,M-je,Cl,"1")):Xn>M+1?(m+=z(i("e"),"","endArrow=none;strokeColor=#181818;",Xn,In[El].y,Xn,Cl,"1"),m+=z(i("e"),"",L+"strokeColor=#181818;",Xn,Cl,M+je,Cl,"1")):m+=z(i("e"),"",L+"strokeColor=#181818;",Xn,In[El].y,M,yl,"1")}Cr=nt,br=yl+Un,J=yl+Un+ma;break}case"note":{var lo=X.position==="left"?M-Xa/2-Sl-10:M+Xa/2+10,$l=X.text?X.text.split(`-`):[""],Bn=Math.max(Pn,$l.length*16+10);m+=' <mxCell id="'+ue+'" value="'+w(X.text||"")+`" style="shape=note;size=14;fillColor=#FEFFDD;strokeColor=#181818;fontSize=11;whiteSpace=wrap;align=left;" vertex="1" parent="1">- <mxGeometry x="`+lo+'" y="'+(J-ma)+'" width="'+Sl+'" height="'+Bn+`" as="geometry"/>+`;var Ef=bl.targets&&bl.targets.length?bl.targets:[bl.target];if(bl.id)for(var Ru=0;Ru<Ef.length;Ru++)ve[Ef[Ru]]&&(B+=O(Ee("noteln"),"","endArrow=none;dashed=1;html=1;strokeColor=#181818;",Bf,ve[Ef[Ru]],"1"));else if(Cn&&ve[bl.target]){var gu=_r("shape=triangle;fillColor=#FEFFDD;strokeColor=#181818;strokeWidth=0.5;",["note"]),Jd=Math.round(ui+Mi/2),Qd=Math.round(Math.min(Math.max(si+Yi/2,Cn.x+8),Cn.x+Cn.w-8)),Df=bl.method?"right":bl.position,pi=null;if(Df==="left"&&si+Yi<=Cn.x?pi=[gu+"direction=east;",si+Yi-1,Jd-4,Math.max(6,Cn.x-(si+Yi)+1),8]:Df==="top"&&ui+Mi<=Cn.y?pi=[gu+"direction=south;",Qd-4,ui+Mi-1,8,Math.max(6,Cn.y-(ui+Mi)+1)]:Df==="bottom"&&ui>=Cn.y+Cn.h?pi=[gu+"direction=north;",Qd-4,Cn.y+Cn.h,8,Math.max(6,ui-(Cn.y+Cn.h)+1)]:si>=Cn.x+Cn.w&&(pi=[gu+"direction=west;",Cn.x+Cn.w,Jd-4,Math.max(6,si-(Cn.x+Cn.w)+1),8]),pi){var Tf=Ba(Math.round(pi[1]),Math.round(pi[2]),Math.round(pi[3]),Math.round(pi[4]));B+=er(Ee("noteptr"),"",pi[0],Math.round(pi[1])-Tf.x,Math.round(pi[2])-Tf.y,Math.round(pi[3]),Math.round(pi[4]),Tf.id)}else B+=O(Ee("noteln"),"","endArrow=none;dashed=1;html=1;strokeColor=#181818;",Bf,ve[bl.target],"1")}}var xi="",Au=[];function rc(ar){for(var Se=0,ho=eo[ar],vo=a.length+1;ho!==void 0&&vo-- >0;)Se++,ho=eo[ho];return Se}for(var mu=0;mu<a.length;mu++)Xt[mu]&&Au.push(mu);Au.sort(function(ar,Se){return rc(ar)-rc(Se)||ar-Se});for(var Sf=0;Sf<Au.length;Sf++){var ku=Au[Sf],Si=a[ku],Nl=Xt[ku],Hi=sa[ku]||Ee("pkg"),os=Zt(eo[ku]),ys=Nl.x-os.x,Es=Nl.y-os.y,Xs=(Si.stereotype||"").toLowerCase(),Ds="container=1;collapsible=0;";j=Si.stereotype?[Si.stereotype]:[];var If="text;html=1;fillColor=none;strokeColor=none;fontColor=#000000;fontSize=14;align=center;verticalAlign=middle;";if(Xs==="node"){xi+=er(Hi,"","shape=cube;size=10;fillColor=none;strokeColor=#000000;"+Ds,ys,Es,Nl.w,Nl.h,os.id),xi+=er(Ee("pkgl"),Si.name,If,0,15,Nl.w-10,20,Hi);continue}if(Xs==="rectangle"){xi+=er(Hi,Si.name,"rounded=0;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=14;align=left;verticalAlign=top;spacingLeft=6;spacingTop=2;"+Ds,ys,Es,Nl.w,Nl.h,os.id);continue}if(Xs==="cloud"){xi+=er(Hi,"","shape=mxgraph.basic.cloud_rect;fillColor=none;strokeColor=#000000;"+Ds,ys,Es,Nl.w,Nl.h,os.id),xi+=er(Ee("pkgl"),Si.name,If,0,12,Nl.w,20,Hi);continue}if(Xs==="database"){xi+=er(Hi,"","shape=cylinder3;size=10;boundedLbl=1;backgroundOutline=1;fillColor=none;strokeColor=#000000;"+Ds,ys,Es,Nl.w,Nl.h,os.id),xi+=er(Ee("pkgl"),Si.name,If,0,24,Nl.w,20,Hi);continue}if(Xs==="frame"){var Nf=Math.round(Math.min(Nl.w,_n(Si.name)+22));Nf<30&&(Nf=30);var ec=Lr(Hi,"shape=umlFrame;width="+Nf+";height="+ul+";html=1;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=14;align=left;verticalAlign=middle;spacingLeft=4;"+Ds),oc=/(?:^|;)fillColor=([^;]+);/.exec(ec);xi+=oe(Hi,Si.name,ec+"swimlaneFillColor="+(oc?oc[1]:"none")+";",ys,Es,Nl.w,Nl.h,os.id);continue}var Lf=Math.round(Math.min(Nl.w,_n(Si.name)+20));Lf<30&&(Lf=30),xi+=er(Hi,Si.name,"shape=folder;tabWidth="+Lf+";tabHeight="+ul+";tabPosition=left;html=1;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=14;align=left;verticalAlign=top;spacingLeft=6;spacingTop=1;"+Ds,ys,Es,Nl.w,Nl.h,os.id)}return xi+B}function Dl(r,n){var e="";return r.visibility&&!n&&(e+=r.visibility+" "),r.text!=null?e+=r.text:(e+=r.name,r.kind==="method"?(r.params!==null&&r.params!==void 0&&(e+="("+r.params+")"),r.returnType&&(e+=": "+r.returnType)):r.type&&(e+=": "+r.type)),e.replace(/<<\s*([^<>]*?)\s*>>/g,"\xAB$1\xBB")}function qn(r){return Ki(r,14,!1)}var Rl=140,Qn=36,Ca=20,Qa=40,gn=30,In=20,Ga=24,Fo=40,vn=28,kl=24,Wl=10,oi=12,Ul=80,di=6;function Bi(r,n){var e=0;function f(Oe){return(Oe||"act")+"_"+e++}function a(Oe,Yo,_e){var X=R(he,Jr(Oe),Yo||[],"text"),$r=X.fontSize?parseInt(X.fontSize,10):0;return $r>0?$r:_e}function h(Oe,Yo){for(var _e=a(["activity"],Yo,12),X={size:_e,bold:!1,italic:!1,family:"sans",name:"SansSerif"},$r=String(Oe??"").replace(/\\r\\n|\\n|\\r/g,`+`).replace(/(^|\n)\s*[*#]+\s+/g,"$1\u2022 ").split(`+`),to=0,Hr=0;Hr<$r.length;Hr++){var cr=Vu($r[Hr],X);cr>to&&(to=cr)}return Math.max(30,Math.round(to+20))}function B(Oe){var Yo=a(["activity","diamond"],[],11);return Math.max(Fo,Math.round(Ki(Oe||"",Yo,!1)+24))}var H=13,p=15.3,U=20,N=10,j="stencil(jVHRDoIwDPyavZqNhvgBiE/+RHVVFmEj2wT9e7eUoJCQ8HZ3vbXXTkAVGuxJFNJiRwJOoiiCbi8OdUJJbliDkunIVCnJHENPt8jigN7gtSWuhOjdk0aj49TC2Ia8ibkKtYDq7jw9vHtZzbzH7Myoc0NO9OZ30+QPM557ZmNr7J9RLozqeCi3vcumsHAm8MvCa8y1rZBK7o45325X0HXj/VETWJ84SfzdUH8B)";function Q(Oe){for(var Yo=(Oe.text||"").split(`+`),_e=0,X=0;X<Yo.length;X++){var $r=qn(Yo[X])*(H/14);$r>_e&&(_e=$r)}return{w:Math.max(30,Math.round(_e+21)),h:Math.round(Yo.length*p+10)}}function _r(Oe,Yo,_e){var X=Oe.length===1,$r={left:[],right:[]},to=["left","right"],Hr={left:0,right:0},cr={left:0,right:0},ro,Me;for(ro=0;ro<Oe.length;ro++){var Lo=Q(Oe[ro]);Me=Oe[ro].position==="right"?"right":"left",$r[Me].push({node:Oe[ro],w:Lo.w,h:Lo.h}),Hr[Me]+=Lo.h+(X?0:2*N),Lo.w>cr[Me]&&(cr[Me]=Lo.w)}var sr=Math.max(_e,Hr.left,Hr.right),Go=[];for(ro=0;ro<2;ro++){Me=to[ro];for(var rn=(sr-Hr[Me])/2,wt=X?0:N,zt=X?U:N,ka=0;ka<$r[Me].length;ka++){var Rt=$r[Me][ka],gt=Me==="left"?-zt-Rt.w-(cr.left-Rt.w)/2:Yo+zt+(cr.right-Rt.w)/2;Go.push({node:Rt.node,side:Me,w:Rt.w,h:Rt.h,dx:Math.round(gt),dy:Math.round(rn+wt),pointer:X&&!Rt.node.floating}),rn+=Rt.h+2*wt}}return{totalH:sr,actDy:Math.round((sr-_e)/2),notes:Go}}function Lr(Oe){return br("shape=note;size=10;fillColor="+(P(Oe.color)||"#FEFFDD")+";strokeColor=#181818;strokeWidth=0.5;fontSize="+H+";fontColor=#000000;whiteSpace=wrap;align=left;verticalAlign=middle;spacingLeft=4;",["note"],Br(Oe),"vertex",Oe.color?zr:null)}function er(Oe){if(!Oe||!Oe.length)return Fo;for(var Yo=Fo,_e=0;_e<Oe.length;_e++){var X=Oe[_e],$r=Fo;if(X.type==="action")$r=h(X.label||"",Br(X))+(X.shape==="input"||X.shape==="output"?10:0);else if(X.type==="if"){var to=er(X.elseBranch);if(X.elseIfBranches)for(var Hr=0;Hr<X.elseIfBranches.length;Hr++){var cr=er(X.elseIfBranches[Hr].body);cr>to&&(to=cr)}$r=er(X.thenBranch)+32+to}else if(X.type==="while"||X.type==="repeat"){if($r=er(X.body)+Rl/2,X.type==="repeat"){if(X.label){var ro=h(X.label)+Rl/2;ro>$r&&($r=ro)}X.backward&&($r+=h(X.backward.label||""))}}else X.type==="switch"?$r=(X.cases?X.cases.length:1)*(Rl+Qa):(X.type==="fork"||X.type==="split")&&($r=(X.branches?X.branches.length:1)*(Rl+Qa));$r>Yo&&(Yo=$r)}return Yo}var Qr="#F1F1F1",Vr=r.arrowHeadColor==="none"||r.arrowHeadColor==="transparent"?"endArrow=none;":"endArrow=classic;endSize=8;",he=r.styleSheet||null,zr=["fillColor","gradientColor"];function Jr(Oe){return["root","element","activityDiagram"].concat(Oe)}function br(Oe,Yo,_e,X,$r){return s(Oe,he,Jr(Yo),_e||[],X||"vertex",$r)}function Br(Oe){return Oe.stereotypes||(Oe.stereotype?[Oe.stereotype]:[])}function Ie(){var Oe=R(he,Jr(["activityBar"]),[],"vertex");return Oe.fillColor!=null&&Oe.strokeColor==null&&(Oe.strokeColor=Oe.fillColor),g("shape=rectangle;fillColor=#555555;strokeColor=#555555;",Oe)}var To=R(he,Jr(["arrow"]),[],"edge"),Sr=function(Oe,Yo,_e,X,$r,to,Hr,cr){return Ko(Oe,Yo,g(_e,To),X,$r,to,Hr,cr)},Rr="",ue=gn+Rl/2,L=gn;function Y(Oe,Yo,_e){var X=Yo,$r=_e,to=null,Hr=$r,cr=X+Rl/2,ro="";function Me(){var bn=ro;return ro="",bn}for(var Lo=0;Lo<Oe.length;Lo++){var sr=Oe[Lo],Go=f(sr.type);switch(sr.type){case"start":{Rr+=Z(Go,"",br("ellipse;fillColor=#222222;strokeColor=#222222;",["circle","start"]),X-In/2,$r,In,In,"1"),to&&(Rr+=Sr(f("e"),Me(),Vr+"strokeColor=#181818;",X,Hr,X,$r,"1")),to=Go,Hr=$r+In,$r+=In+Ca;break}case"stop":{Rr+=Z(Go,"",br("ellipse;shape=endState;fillColor=#222222;strokeColor=#222222;",["circle","stop"]),X-Ga/2,$r,Ga,Ga,"1"),to&&(Rr+=Sr(f("e"),Me(),Vr+"strokeColor=#181818;",X,Hr,X,$r,"1")),to=Go,Hr=$r+Ga,$r+=Ga+Ca;break}case"end":{Rr+=Z(Go,"",br("ellipse;fillColor=#222222;strokeColor=#222222;",["circle","end"]),X-In/2,$r,In,In,"1"),to&&(Rr+=Sr(f("e"),Me(),Vr+"strokeColor=#181818;",X,Hr,X,$r,"1")),to=Go,Hr=$r+In,$r+=In+Ca;break}case"action":{for(var rn=P(sr.color)||"#F1F1F1",wt=sr.label||"",zt=wt.split(`+`),ka=h(wt,Br(sr)),Rt=Math.max(Qn,Math.round(20+zt.length*16.3)),gt=sr.shape||null,dt=ka+(gt==="input"||gt==="output"?10:0),Fa=[];Lo+1<Oe.length&&Oe[Lo+1].type==="note";)Fa.push(Oe[++Lo]);var oa=Fa.length?_r(Fa,dt,Rt):null,bt=$r+(oa?oa.actDy:0),Wt=X-ka/2,ha="fillColor="+rn+";strokeColor=#181818;strokeWidth=0.5;whiteSpace=wrap;fontSize=12;align=left;spacingLeft=6;",co;if(gt==="input"||gt==="output"){var lt=Math.round(1e4*(1-10/dt))/1e4;co="shape=mxgraph.basic.polygon;polyline=0;polyCoords="+(gt==="input"?"[[0,0],[1,0],["+lt+",0.5],[1,1],[0,1]]":"[[0,0],["+lt+",0],[1,0.5],["+lt+",1],[0,1]]")+";"+ha}else gt==="procedure"?co="shape=process;size=5;fixedSize=1;"+ha:gt==="save"?co="shape=parallelogram;size=10;fixedSize=1;"+ha:gt==="load"?co="shape=parallelogram;size=10;fixedSize=1;flipH=1;"+ha:gt==="task"?co="rounded=0;"+ha:gt==="continuous"?co="shape="+j+";"+ha:co="rounded=1;absoluteArcSize=1;arcSize=25;"+ha;if(co=br(co,["activity"],Br(sr),"vertex",sr.color?zr:null),A(wt)?Rr+=ye(Go,I(wt),co+"html=1;",Wt,bt,dt,Rt,"1"):Rr+=Z(Go,wt,co,Wt,bt,dt,Rt,"1"),to&&(Rr+=Sr(f("e"),Me(),Vr+"strokeColor=#181818;",X,Hr,X,bt,"1")),oa)for(var it=0;it<oa.notes.length;it++){var st=oa.notes[it],ja=f("note");if(st.pointer){var Je=st.side==="left"?Wt+st.dx+st.w-1:Wt+dt;Rr+=Z(f("noteptr"),"",br("triangle;direction="+(st.side==="left"?"east":"west")+";fillColor="+(P(st.node.color)||"#FEFFDD")+";strokeColor=#181818;strokeWidth=0.5;",["note"],Br(st.node),"vertex",st.node.color?zr:null),Je,Math.round($r+st.dy+st.h/2-4),U+1,8,"1")}Rr+=Z(ja,st.node.text||"",Lr(st.node),Wt+st.dx,$r+st.dy,st.w,st.h,"1"),Wt+st.dx+st.w>cr&&(cr=Wt+st.dx+st.w)}to=Go,Hr=bt+Rt,$r+=(oa?oa.totalH:Rt)+Ca;break}case"if":{let bn=function(Wa){if(!Wa||Wa.length===0)return!1;var Mn=Wa[Wa.length-1];return Mn.type==="stop"||Mn.type==="end"||Mn.type==="kill"||Mn.type==="detach"};if(sr.elseIfBranches&&sr.elseIfBranches.length>0){let Wa=function(Mn){if(!Mn||Mn.length===0)return!1;var Jl=Mn[Mn.length-1];return Jl.type==="stop"||Jl.type==="end"||Jl.type==="kill"||Jl.type==="detach"};for(var mo=[{condition:sr.condition,thenLabel:sr.thenLabel,body:sr.thenBranch||[]}],ge=0;ge<sr.elseIfBranches.length;ge++)mo.push(sr.elseIfBranches[ge]);var We=$r,Et=We+vn/2,wo=We+vn+Ca,la=42,ia=[],pe=[];for(ge=0;ge<mo.length;ge++){var Zr=B(mo[ge].condition);ia.push(Zr),pe.push(Math.max(Zr,er(mo[ge].body)))}var $t=[],xt=X;for(ge=0;ge<mo.length;ge++)ge>0&&(xt+=pe[ge-1]/2+la+pe[ge]/2),$t.push(xt);var kt=sr.elseBranch&&sr.elseBranch.length>0,Dt=kt?Math.max(er(sr.elseBranch),60):0,Ut=xt+pe[mo.length-1]/2+la+Dt/2;to&&(Rr+=Sr(f("e"),Me(),Vr+"strokeColor=#181818;",X,Hr,X,We,"1"));var Co=[],Ht=[],Po=[],Tt=wo;for(ge=0;ge<mo.length;ge++){var St=mo[ge],vt=$t[ge];Rr+=Z(f("diamond"),St.condition||"",br("shape=hexagon;perimeter=hexagonPerimeter2;fillColor="+Qr+";strokeColor=#181818;whiteSpace=wrap;fontSize=11;",["activity","diamond"]),vt-ia[ge]/2,We,ia[ge],vn,"1"),ge>0&&(Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",$t[ge-1]+ia[ge-1]/2,Et,vt-ia[ge]/2,Et,"1")),Rr+=Sr(f("e"),St.thenLabel||"",Vr+"strokeColor=#181818;fontSize=11;",vt,We+vn,vt,wo,"1");var Xt=wo;if(St.body&&St.body.length>0){var sa=Y(St.body,vt,wo);Xt=sa.prevY||sa.y,sa.maxX>cr&&(cr=sa.maxX)}Co.push(vt),Ht.push(Xt),Po.push(!Wa(St.body)),Xt>Tt&&(Tt=Xt),vt+pe[ge]/2>cr&&(cr=vt+pe[ge]/2)}if(kt){Rr+=Sr(f("e"),sr.elseLabel||"","endArrow=none;strokeColor=#181818;fontSize=11;",$t[mo.length-1]+ia[mo.length-1]/2,Et,Ut,Et,"1"),Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",Ut,Et,Ut,wo,"1");var Xa=Y(sr.elseBranch,Ut,wo),ya=Xa.prevY||Xa.y;Xa.maxX>cr&&(cr=Xa.maxX),Ut+Dt/2>cr&&(cr=Ut+Dt/2),Co.push(Ut),Ht.push(ya),Po.push(!Wa(sr.elseBranch)),ya>Tt&&(Tt=ya)}var Mo=Tt+Ca,_t=1/0,ct=-1/0,$a=0;for(ge=0;ge<Co.length;ge++)Po[ge]&&($a++,Co[ge]<_t&&(_t=Co[ge]),Co[ge]>ct&&(ct=Co[ge]),Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",Co[ge],Ht[ge],Co[ge],Mo,"1"));$a>1&&(Rr+=Sr(f("e"),"","endArrow=none;strokeColor=#181818;",_t,Mo,ct,Mo,"1")),X=$a>0?Math.round((_t+ct)/2):X,to="cascade",Hr=Mo,$r=Mo+Ca;break}var en=f("diamond"),da=B(sr.condition);Rr+=Z(en,sr.condition||"",br("shape=hexagon;perimeter=hexagonPerimeter2;fillColor="+Qr+";strokeColor=#181818;whiteSpace=wrap;fontSize=11;",["activity","diamond"]),X-da/2,$r,da,vn,"1"),to&&(Rr+=Sr(f("e"),Me(),Vr+"strokeColor=#181818;",X,Hr,X,$r,"1"));var Kt=$r+vn/2,va=$r+vn+Ca,ma=[];if(sr.elseIfBranches&&sr.elseIfBranches.length>0)for(var ba=0;ba<sr.elseIfBranches.length;ba++)for(var ot=0;ot<sr.elseIfBranches[ba].body.length;ot++)ma.push(sr.elseIfBranches[ba].body[ot]);if(sr.elseBranch)for(var jt=0;jt<sr.elseBranch.length;jt++)ma.push(sr.elseBranch[jt]);var ta=ma.length>0,_a=er(sr.thenBranch),ca=er(ma),ut=32,wa=ta?Math.round(X-(ut/2+_a/2)):X,Bt=Math.round(X+(ut/2+ca/2)),Bo=va,Oa=va,Vt=wa,go=!1;if(Rr+=Sr(f("e"),sr.thenLabel||"","endArrow=none;strokeColor=#181818;fontSize=11;",X-da/2,Kt,wa,Kt,"1"),Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",wa,Kt,wa,va,"1"),sr.thenBranch&&sr.thenBranch.length>0){var xo=Y(sr.thenBranch,wa,va);Bo=xo.prevY||xo.y,Oa=Math.max(Bo,xo.y-Ca),go=!0,xo.maxX>cr&&(cr=xo.maxX)}var qt=va,Pt=va,Jt=Bt,aa=!1;if(ta){Rr+=Sr(f("e"),sr.elseLabel||"","endArrow=none;strokeColor=#181818;fontSize=11;",X+da/2,Kt,Bt,Kt,"1"),Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",Bt,Kt,Bt,va,"1");var Pa=Y(ma,Bt,va);qt=Pa.prevY||Pa.y,Pt=Math.max(qt,Pa.y-Ca),aa=!0,Pa.maxX>cr&&(cr=Pa.maxX),Bt+ca/2>cr&&(cr=Bt+ca/2)}var gr=!go||!bn(sr.thenBranch),de=!aa||!bn(ma),Gr=(gr?1:0)+(de?1:0);if(Gr===1&&(go||aa)){Hr=gr?Bo:qt,X=gr?Vt:Jt,$r=Math.max(Oa,Pt)+Ca;break}$r=Math.max(Oa,Pt)+Ca;var Or=f("merge"),re=kl/2,be=$r+re;Rr+=Z(Or,"",br("rhombus;fillColor="+Qr+";strokeColor=#181818;",["activity","diamond"]),X-re,$r,kl,kl,"1"),go&&gr&&(Rr+=Sr(f("e"),"","endArrow=none;strokeColor=#181818;",Vt,Bo,Vt,be,"1"),Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",Vt,be,X-re,be,"1")),aa&&de&&(Rr+=Sr(f("e"),"","endArrow=none;strokeColor=#181818;",Jt,qt,Jt,be,"1"),Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",Jt,be,X+re,be,"1")),to=Or,Hr=$r+kl,$r+=kl+Ca;break}case"while":{var Cr=f("wdiamond"),te=B(sr.condition),ce=$r,fe=$r+vn/2;Rr+=Z(Cr,sr.condition||"",br("shape=hexagon;perimeter=hexagonPerimeter2;fillColor="+Qr+";strokeColor=#181818;whiteSpace=wrap;fontSize=11;",["activity","diamond"]),X-te/2,$r,te,vn,"1"),to&&(Rr+=Sr(f("e"),Me(),Vr+"strokeColor=#181818;",X,Hr,X,$r,"1"));var tt=$r+vn+Ca+14;Rr+=Sr(f("e"),sr.isLabel||"",Vr+"strokeColor=#181818;fontSize=11;",X,$r+vn,X,tt,"1");var ko=tt,Xr=tt;if(sr.body&&sr.body.length>0){var Ce=Y(sr.body,X,tt);ko=Ce.y,Xr=Ce.prevY||ko,Ce.maxX>cr&&(cr=Ce.maxX)}var jr=X+te/2+15,ao=Math.round((Xr+fe)/2);Rr+=Sr(f("e"),"","endArrow=none;strokeColor=#181818;",X,Xr,jr,Xr,"1"),Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",jr,Xr,jr,ao,"1"),Rr+=Sr(f("e"),"","endArrow=none;strokeColor=#181818;",jr,ao,jr,fe,"1"),Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",jr,fe,X+te/2,fe,"1");var De=sr.body&&sr.body.length>0?er(sr.body)/2:0,ft=Math.round(X-Math.max(te/2+18,De+24)),Ho=Xr+26;Rr+=Sr(f("e"),sr.endLabel||"","endArrow=none;strokeColor=#181818;fontSize=11;",X-te/2,fe,ft,fe,"1"),Rr+=Sr(f("e"),"","endArrow=none;strokeColor=#181818;",ft,fe,ft,Ho,"1"),Rr+=Sr(f("e"),"","endArrow=none;strokeColor=#181818;",ft,Ho,X,Ho,"1"),to=Cr,Hr=Ho,$r=Ho+Ca;break}case"repeat":{to&&(Rr+=Sr(f("e"),Me(),Vr+"strokeColor=#181818;",X,Hr,X,$r,"1"));var Ze=f("rstart"),Ro=$r,Ot=24,Wo=24;if(sr.label){var It=P(sr.color)||"#F1F1F1";Ot=h(sr.label),Wo=Math.max(Qn,Math.round(20+sr.label.split(`+`).length*16.3)),Rr+=Z(Ze,sr.label,br("rounded=1;absoluteArcSize=1;arcSize=25;fillColor="+It+";strokeColor=#181818;strokeWidth=0.5;whiteSpace=wrap;fontSize=12;align=left;spacingLeft=6;",["activity"],null,"vertex",sr.color?zr:null),X-Ot/2,$r,Ot,Wo,"1")}else Rr+=Z(Ze,"",br("rhombus;fillColor="+Qr+";strokeColor=#181818;",["activity","diamond"]),X-12,$r,24,24,"1");var Uo=Math.round(Ro+Wo/2),jo=X+Ot/2,Nt=Ro+Wo+Ca;Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",X,Ro+Wo,X,Nt,"1"),$r=Nt;var ne=$r,xe=X+Fo/2;if(sr.body&&sr.body.length>0){var Le=Y(sr.body,X,$r);ne=Le.prevY||Le.y,Le.maxX>cr&&(cr=Le.maxX),Le.maxX>xe&&(xe=Le.maxX)}var He=f("rdiamond"),te=B(sr.condition),Ge=ne+vn/2;Rr+=Z(He,sr.condition||"",br("shape=hexagon;perimeter=hexagonPerimeter2;fillColor="+Qr+";strokeColor=#181818;whiteSpace=wrap;fontSize=11;",["activity","diamond"]),X-te/2,ne,te,vn,"1");var je=0,Xo=0;sr.backward&&(je=h(sr.backward.label||""),Xo=Math.max(Qn,Math.round(20+(sr.backward.label||"").split(`+`).length*16.3)));var Dr=Math.round(Math.max(X+te/2,xe,jo)+12+je/2);if(Rr+=Sr(f("e"),sr.isLabel||"","endArrow=none;strokeColor=#181818;fontSize=11;",X+te/2,Ge,Dr,Ge,"1"),sr.backward){var wr=Math.round((Ro+Wo+Ge)/2-Xo/2);Rr+=Sr(f("e"),sr.backward.incomingLabel||"",Vr+"strokeColor=#181818;fontSize=11;",Dr,Ge,Dr,wr+Xo,"1"),Rr+=Z(f("backward"),sr.backward.label||"",br("rounded=1;absoluteArcSize=1;arcSize=25;fillColor=#F1F1F1;strokeColor=#181818;strokeWidth=0.5;whiteSpace=wrap;fontSize=12;align=left;spacingLeft=6;",["activity"]),Dr-je/2,wr,je,Xo,"1"),Rr+=Sr(f("e"),sr.backward.outgoingLabel||"","endArrow=none;strokeColor=#181818;fontSize=11;",Dr,wr,Dr,Uo,"1")}else{var Oo=Math.round((Ge+Uo)/2);Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",Dr,Ge,Dr,Oo,"1"),Rr+=Sr(f("e"),"","endArrow=none;strokeColor=#181818;",Dr,Oo,Dr,Uo,"1")}Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",Dr,Uo,jo,Uo,"1"),Dr+je/2>cr&&(cr=Dr+je/2),to=He,Hr=ne+vn,ro=sr.notLabel||"",$r=ne+vn+Ca+14;break}case"fork":{for(var eo=sr.branches?sr.branches.length:0,yo=[],Zt=0,Ct=0;Ct<eo;Ct++){var Ia=er(sr.branches[Ct]);yo.push(Ia),Zt+=Ia}eo>1&&(Zt+=Wl*(eo-1));for(var Ba=X-Zt/2,An=[],Fr=0,Qe=0;Qe<eo;Qe++)An.push(Math.round(Ba+Fr+yo[Qe]/2)),Fr+=yo[Qe]+Wl;var lo=Math.round(Ba-oi),at=Math.round(Zt+2*oi);at<Ul&&(lo=Math.round(X-Ul/2),at=Ul);var ua=f("forkbar");Rr+=Z(ua,"",Ie(),lo,$r,at,di,"1"),to&&(Rr+=Sr(f("e"),Me(),Vr+"strokeColor=#181818;",X,Hr,X,$r,"1"));for(var pa=$r+di,Ea=pa+Ca,on=Ea,Ya=[],Tn=0;Tn<eo;Tn++){var Ha=An[Tn];Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",Ha,pa,Ha,Ea,"1");var Nn=Y(sr.branches[Tn],Ha,Ea);Ya.push({bx:Ha,by:Nn.prevY||Nn.y,alive:Nn.lastId!=null||!(sr.branches[Tn]||[]).length}),Nn.y>on&&(on=Nn.y),Nn.maxX>cr&&(cr=Nn.maxX)}$r=on;for(var so=0;so<Ya.length;so++)Ya[so].alive&&(Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",Ya[so].bx,Ya[so].by,Ya[so].bx,$r,"1"));var Eo=f("joinbar");Rr+=Z(Eo,"",Ie(),lo,$r,at,di,"1"),lo+at>cr&&(cr=lo+at),to=Eo,Hr=$r+di,$r+=di+Ca;break}case"split":{for(var rt=sr.branches?sr.branches.length:0,Ra=[],pt=0,tn=0;tn<rt;tn++){var Ka=er(sr.branches[tn]);Ra.push(Ka),pt+=Ka}rt>1&&(pt+=Wl*(rt-1));for(var Va=X-pt/2,Ja=[],an=0,Ln=0;Ln<rt;Ln++)Ja.push(Math.round(Va+an+Ra[Ln]/2)),an+=Ra[Ln]+Wl;var Gn=$r;to&&(Rr+=Sr(f("e"),Me(),Vr+"strokeColor=#181818;",X,Hr,X,Gn,"1")),rt>1&&(Rr+=Sr(f("e"),"","endArrow=none;strokeColor=#181818;",Ja[0],Gn,Ja[rt-1],Gn,"1"));for(var cn=Gn+Ca+8,Yt=cn,wn=[],Ke=0;Ke<rt;Ke++){var qo=Ja[Ke];Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",qo,Gn,qo,cn,"1");var na=Y(sr.branches[Ke],qo,cn);wn.push({bx:qo,by:na.prevY||na.y,alive:na.lastId!=null||!(sr.branches[Ke]||[]).length}),na.y>Yt&&(Yt=na.y),na.maxX>cr&&(cr=na.maxX)}for(var Ft=Yt+8,fa=0;fa<wn.length;fa++)wn[fa].alive&&(Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",wn[fa].bx,wn[fa].by,wn[fa].bx,Ft,"1"));rt>1&&(Rr+=Sr(f("e"),"","endArrow=none;strokeColor=#181818;",wn[0].bx,Ft,wn[rt-1].bx,Ft,"1")),to="splitmerge",Hr=Ft,$r=Ft+Ca;break}case"switch":{var mn=f("swdiamond"),te=B(sr.condition),En=$r+vn/2,Zn=$r+vn;Rr+=Z(mn,sr.condition||"",br("shape=hexagon;perimeter=hexagonPerimeter2;fillColor="+Qr+";strokeColor=#181818;whiteSpace=wrap;fontSize=11;",["activity","diamond"]),X-te/2,$r,te,vn,"1"),to&&(Rr+=Sr(f("e"),Me(),Vr+"strokeColor=#181818;",X,Hr,X,$r,"1"));for(var nn=$r+vn+Ca+14,Dn=nn,rl=sr.cases?sr.cases.length:0,Un=[],el=0,Cl=0;Cl<rl;Cl++){var Il=(sr.cases[Cl].label||"").length*5.5+20,jn=Math.max(er(sr.cases[Cl].body),Il);Un.push(jn),el+=jn}rl>1&&(el+=Qa*(rl-1));for(var hi=X-el/2,$i=[],pn=0,Fl=0;Fl<rl;Fl++)$i.push(Math.round(hi+pn+Un[Fl]/2)),pn+=Un[Fl]+Qa;for(var hl=[],tl=0;tl<rl;tl++){var al=$i[tl];if(al<X-1?(Rr+=Sr(f("e"),"","endArrow=none;strokeColor=#181818;",X-te/2,En,al,En,"1"),Rr+=Sr(f("e"),sr.cases[tl].label||"",Vr+"strokeColor=#181818;fontSize=11;",al,En,al,nn,"1")):al>X+1?(Rr+=Sr(f("e"),"","endArrow=none;strokeColor=#181818;",X+te/2,En,al,En,"1"),Rr+=Sr(f("e"),sr.cases[tl].label||"",Vr+"strokeColor=#181818;fontSize=11;",al,En,al,nn,"1")):Rr+=Sr(f("e"),sr.cases[tl].label||"",Vr+"strokeColor=#181818;fontSize=11;",X,Zn,al,nn,"1"),sr.cases[tl].body&&sr.cases[tl].body.length>0){var ga=Y(sr.cases[tl].body,al,nn);ga.y>Dn&&(Dn=ga.y),ga.maxX>cr&&(cr=ga.maxX),hl.push({x:al,y:ga.prevY||nn})}else hl.push({x:al,y:nn})}var Vo=Dn+Ca,qa=kl/2,Rn=Vo+qa,Or=f("swmerge");Rr+=Z(Or,"",br("rhombus;fillColor="+Qr+";strokeColor=#181818;",["activity","diamond"]),X-qa,Vo,kl,kl,"1");for(var On=0;On<hl.length;On++){var ln=hl[On].x;ln<X-1?(Rr+=Sr(f("e"),"","endArrow=none;strokeColor=#181818;",ln,hl[On].y,ln,Rn,"1"),Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",ln,Rn,X-qa,Rn,"1")):ln>X+1?(Rr+=Sr(f("e"),"","endArrow=none;strokeColor=#181818;",ln,hl[On].y,ln,Rn,"1"),Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",ln,Rn,X+qa,Rn,"1")):Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",ln,hl[On].y,X,Vo,"1")}to=Or,Hr=Vo+kl,$r=Vo+kl+Ca;break}case"note":{var kn=Q(sr),$n=sr.position==="left"?X-Rl/2-kn.w-N:X+Rl/2+N;Rr+=Z(Go,sr.text||"",Lr(sr),$n,Math.round(Hr-Qn/2-kn.h/2),kn.w,kn.h,"1"),to&&(Rr+=O(f("noteln"),"","endArrow=none;dashed=1;html=1;strokeColor=#181818;",Go,to,"1")),$n+kn.w>cr&&(cr=$n+kn.w);break}case"partition":{if(!sr.body||sr.body.length===0)break;var gl=sr.name||sr.label||"",Pn=Math.round(qn(gl))+10,Vn=20,Pl=$r,$l=Pl+Vn+16,ql="";to&&(ql=Sr(f("e"),Me(),Vr+"strokeColor=#181818;",X,Hr,X,$l,"1"));var ii=Rr;Rr="";for(var Yl=Y(sr.body,X,$l),Ml=Rr,El=X,_l=X,xl=$l,Hl=/<mxGeometry x="([-\d.]+)" y="([-\d.]+)" width="([-\d.]+)" height="([-\d.]+)"/g,At;(At=Hl.exec(Ml))!=null;)+At[1]<El&&(El=+At[1]),+At[1]+ +At[3]>_l&&(_l=+At[1]+ +At[3]),+At[2]+ +At[4]>xl&&(xl=+At[2]+ +At[4]);var Na=El-10,Fn=_l+10,we=Pn+10-(Fn-Na);we>0&&(Na-=we/2,Fn+=we/2);var za=Fn-Na,Za=xl+12,Yn=P(sr.color)||"none",Jn=R(he,Jr(["partition"]),[],"vertex");sr.color?(delete Jn.fillColor,delete Jn.gradientColor):Jn.fillColor!=null&&(Jn.swimlaneFillColor=Jn.fillColor),Rr=ii+Z(Go,gl,g("shape=umlFrame;width="+Pn+";height="+Vn+";fillColor="+Yn+";swimlaneFillColor="+Yn+";strokeColor=#181818;strokeWidth=1;fontSize=14;fontColor=#000000;align=left;verticalAlign=middle;spacingLeft=1;whiteSpace=wrap;",Jn),Na,Pl,za,Za-Pl,"1")+ql+Ml,Na+za>cr&&(cr=Na+za),to=Yl.lastId,Hr=Yl.prevY||Yl.y,$r=Za+Ca/2;break}case"detach":{to=null,$r-=Ca/2;break}case"spot":{Rr+=Z(Go,sr.letter||"","ellipse;fillColor=#F1F1F1;strokeColor=#181818;strokeWidth=0.5;fontSize=12;fontColor=#000000;align=center;verticalAlign=middle;",X-In/2,$r,In,In,"1"),to&&(Rr+=Sr(f("e"),Me(),Vr+"strokeColor=#181818;",X,Hr,X,$r,"1")),to=Go,Hr=$r+In,$r+=In+Ca;break}case"swimlane":break;case"arrowLabel":{ro=sr.label||"",$r+=16;break}default:break}}return{y:$r,maxX:cr,lastId:to,prevY:Hr}}var nr=r.swimlanes||[];if(nr.length>0){let Oe=function(Yo){var _e=mr[Yo]!=null?mr[Yo]:0;return gn+_e*(qe+Ae)+qe/2};for(var Yr=r.nodes||[],mr={},q=0;q<nr.length;q++)mr[nr[q].name]=q;for(var ur=30,kr=40,Ye=0;Ye<Yr.length;Ye++)if(Yr[Ye].type==="action"){var Fe=h(Yr[Ye].label||"",Br(Yr[Ye]));Fe>kr&&(kr=Fe)}for(var qe=Math.max(90,kr+56),Ae=0,Ue=nr[0].name,no=gn+ur,Ee=null,$o=null,ve=null,Mr=0;Mr<Yr.length;Mr++){var _o=Yr[Mr];if(_o.type==="swimlane"){Ue=_o.name;continue}var et=Oe(Ue);if(Ee!=null)if(ve===Ue)Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",$o,no-Ca,et,no,"1");else{var io=no-Ca+5;Rr+=Sr(f("e"),"","endArrow=none;strokeColor=#181818;",$o,no-Ca,$o,io,"1"),Rr+=Sr(f("e"),"","endArrow=none;strokeColor=#181818;",$o,io,et,io,"1"),Rr+=Sr(f("e"),"",Vr+"strokeColor=#181818;",et,io,et,no,"1")}var po=Y([_o],et,no);Ee="tracker",$o=et,ve=Ue,no=po.y}for(var So=Rr,Ao="",Qo=no,Io=Qo-Ca-gn+6,fo=gn,mt=0;mt<nr.length;mt++){var bo=nr[mt],ea=P(bo.color)||"none",No=f("lane"),oo=R(he,Jr(["swimlane"]),[],"vertex");bo.color?(delete oo.fillColor,delete oo.gradientColor):oo.fillColor!=null&&(oo.swimlaneFillColor=oo.fillColor),Ao+=Z(No,bo.name,g("swimlane;collapsible=0;startSize="+ur+";fillColor="+ea+";swimlaneFillColor="+ea+";strokeColor=#181818;strokeWidth=1.5;fontColor=#000000;fontSize=18;fontStyle=0;html=1;",oo),fo,gn,qe,Io,"1"),fo+=qe+Ae}return Ao+So}return Y(r.nodes,ue,L),Rr}var Bl=41,ci=13,Xl=20,gi=7,fn=14.13,ti=20,ai=22,Gl=24,yi=80,Ai=8,ni=16,wl=22,mi=12;function dl(r,n){var e=r.nodes||[],f=r.edges||[],a=r.partitions||[],h=r.skin||{},B="",H=0,p,U,N,j,Q;if(e.length===0)return"";function _r(ne){return"lg"+ne+"_"+H++}function Lr(ne,xe){if(xe){var Le=h[(ne+"<<"+xe+">>").toLowerCase()];if(Le!=null)return Le}return h[ne.toLowerCase()]}function er(ne,xe,Le){return P(Lr(ne,xe))||Le}function Qr(ne){return D(ne||"").split(`+`)}function Vr(ne,xe){for(var Le=0,He=0;He<ne.length;He++){var Ge=Er(ne[He],xe);Ge>Le&&(Le=Ge)}return Le}var he={},zr={};for(p=0;p<e.length;p++){j=e[p],he[j.id]=j;var Jr={w:0,h:0,cellId:_r(j.type),x:0,y:0};if(j.type==="start")Jr.w=ti,Jr.h=ti;else if(j.type==="end")Jr.w=ai,Jr.h=ai;else if(j.type==="branch")Jr.w=Gl,Jr.h=Gl;else if(j.type==="bar")Jr.w=yi,Jr.h=Ai;else if(j.type==="note"){var br=Qr(j.label);Jr.w=Math.max(40,Math.round(Vr(br,13)+22)),Jr.h=Math.max(24,Math.round(br.length*15.3+10))}else{var Br=Qr(j.label),Ie=parseFloat(Lr("activityFontSize",j.stereotype))||12;Jr.w=Math.max(30,Math.round(Vr(Br,Ie)+20)),Jr.h=Math.round(20+Br.length*fn*Ie/12)}zr[j.id]=Jr}var To={};function Sr(ne){for(;To[ne]!==ne;)To[ne]=To[To[ne]],ne=To[ne];return ne}function Rr(ne,xe){ne=Sr(ne),xe=Sr(xe),ne!==xe&&(To[xe]=ne)}for(p=0;p<e.length;p++)To[e[p].id]=e[p].id;var ue=[],L=[];for(p=0;p<f.length;p++)Q=f[p],!(!he[Q.from]||!he[Q.to]||Q.from===Q.to||Q.constraint===!1)&&(Q.direction==="left"?(Rr(Q.from,Q.to),L.push({before:Q.to,after:Q.from})):Q.direction==="right"||Q.direction==null&&Q.length<=1?(Rr(Q.from,Q.to),L.push({before:Q.from,after:Q.to})):Q.direction==="up"?ue.push({from:Q.to,to:Q.from,minlen:Math.max(1,Q.length-1)}):ue.push({from:Q.from,to:Q.to,minlen:Math.max(1,Q.length-1)}));for(p=0;p<e.length;p++)j=e[p],!(j.type!=="note"||j.target==null||!he[j.target])&&(j.position==="top"?ue.push({from:j.id,to:j.target,minlen:1}):j.position==="bottom"?ue.push({from:j.target,to:j.id,minlen:1}):(Rr(j.id,j.target),j.position==="left"?L.push({before:j.id,after:j.target}):L.push({before:j.target,after:j.id})));var Y=[],nr={};for(p=0;p<e.length;p++){var Yr=Sr(e[p].id);nr[Yr]==null&&(nr[Yr]=[],Y.push(Yr))}var mr=[];for(p=0;p<ue.length;p++){var q=Sr(ue[p].from),ur=Sr(ue[p].to);q!==ur&&(mr.push({from:q,to:ur,minlen:ue[p].minlen,back:!1}),nr[q].push(mr.length-1))}var kr={};for(p=0;p<Y.length;p++)kr[Y[p]]=0;function Ye(ne){var xe=[{node:ne,idx:0}];for(kr[ne]=1;xe.length>0;){var Le=xe[xe.length-1],He=nr[Le.node];if(Le.idx<He.length){var Ge=mr[He[Le.idx++]];kr[Ge.to]===1?Ge.back=!0:kr[Ge.to]===0&&(kr[Ge.to]=1,xe.push({node:Ge.to,idx:0}))}else kr[Le.node]=2,xe.pop()}}for(p=0;p<Y.length;p++)kr[Y[p]]===0&&Ye(Y[p]);var Fe={},qe={};for(p=0;p<Y.length;p++)Fe[Y[p]]=0,qe[Y[p]]=0;for(p=0;p<mr.length;p++)mr[p].back||Fe[mr[p].to]++;var Ae=[];for(p=0;p<Y.length;p++)Fe[Y[p]]===0&&Ae.push(Y[p]);for(var Ue=Y.length*Y.length+16;Ae.length>0&&Ue-- >0;){var no=Ae.shift(),Ee=nr[no];for(U=0;U<Ee.length;U++){var $o=mr[Ee[U]];$o.back||(qe[$o.to]<qe[no]+$o.minlen&&(qe[$o.to]=qe[no]+$o.minlen),--Fe[$o.to]===0&&Ae.push($o.to))}}var ve={},Mr=[];for(p=0;p<e.length;p++){var _o=qe[Sr(e[p].id)]||0;for(ve[e[p].id]=_o;Mr.length<=_o;)Mr.push([]);Mr[_o].push(e[p].id)}var et=0,io=[];for(p=0;p<f.length;p++)if(Q=f[p],io[p]=null,!(!he[Q.from]||!he[Q.to]||Q.from===Q.to)){var po=Math.min(ve[Q.from],ve[Q.to]),So=Math.max(ve[Q.from],ve[Q.to]);if(!(So-po<=1)){var Ao=[];for(N=po+1;N<So;N++){var Qo="dummy#"+ ++et;he[Qo]={id:Qo,type:"dummy",label:"",partition:null},zr[Qo]={w:8,h:0,cellId:null,x:0,y:0},ve[Qo]=N,Mr[N].push(Qo),Ao.push(Qo)}io[p]=Ao}}var Io={},fo={},mt=[];for(N=0;N<Mr.length;N++)for(U=0;U<Mr[N].length;U++)Io[Mr[N][U]]=[],fo[Mr[N][U]]=[],mt.push(Mr[N][U]);function bo(ne,xe){!he[ne]||!he[xe]||ne===xe||ve[ne]===ve[xe]||(ve[ne]<ve[xe]?(fo[ne].push(xe),Io[xe].push(ne)):(fo[xe].push(ne),Io[ne].push(xe)))}for(p=0;p<f.length;p++){if(Q=f[p],io[p]==null){bo(Q.from,Q.to);continue}var ea=ve[Q.from]<ve[Q.to]?Q.from:Q.to,No=ea===Q.from?Q.to:Q.from,oo=ea;for(U=0;U<io[p].length;U++)bo(oo,io[p][U]),oo=io[p][U];bo(oo,No)}for(p=0;p<e.length;p++)e[p].type==="note"&&e[p].target!=null&&bo(e[p].id,e[p].target);var Oe={};function Yo(ne){for(var xe=0;xe<ne.length;xe++)Oe[ne[xe]]=xe}for(N=0;N<Mr.length;N++)Yo(Mr[N]);function _e(ne,xe){for(var Le=[],He=0;He<ne.length;He++){var Ge=xe[ne[He]],je=He;if(Ge.length>0){for(var Xo=0,Dr=0;Dr<Ge.length;Dr++)Xo+=Oe[Ge[Dr]];je=Xo/Ge.length}Le.push({id:ne[He],bary:je,idx:He})}for(Le.sort(function(wr,Oo){return wr.bary!==Oo.bary?wr.bary-Oo.bary:wr.idx-Oo.idx}),He=0;He<Le.length;He++)ne[He]=Le[He].id;Yo(ne)}for(var X=0;X<4;X++){for(N=1;N<Mr.length;N++)_e(Mr[N],Io);for(N=Mr.length-2;N>=0;N--)_e(Mr[N],fo)}for(p=0;p<L.length;p++){var $r=L[p].before,to=L[p].after;if(!(ve[$r]==null||ve[$r]!==ve[to]||Oe[$r]<Oe[to])){var Hr=Mr[ve[$r]];Hr.splice(Oe[$r],1),Hr.splice(Oe[to],0,$r),Yo(Hr)}}if(a.length>0)for(N=0;N<Mr.length;N++){for(var cr=Mr[N],ro={},Me=0;Me<cr.length;){var Lo=he[cr[Me]].partition||"",sr=ro[Lo];if(sr!=null&&sr<Me-1){var Go=cr.splice(Me,1)[0];cr.splice(sr+1,0,Go);for(var rn in ro)ro.hasOwnProperty(rn)&&ro[rn]>sr&&ro[rn]++;ro[Lo]=sr+1}else ro[Lo]=Me;Me++}Yo(cr)}function wt(ne){return he[ne].partition||null}function zt(ne,xe){if(he[ne].type==="dummy"||he[xe].type==="dummy")return Xl;var Le=wt(ne),He=wt(xe);return Le===He?Xl:Xl+(Le?ni:0)+(He?ni:0)+4}var ka=[],Rt=0;for(N=0;N<Mr.length;N++){var gt=0;for(U=0;U<Mr[N].length;U++)gt+=zr[Mr[N][U]].w,U>0&&(gt+=zt(Mr[N][U-1],Mr[N][U]));ka[N]=gt,gt>Rt&&(Rt=gt)}var dt={};for(N=0;N<Mr.length;N++){var Fa=(Rt-ka[N])/2;for(U=0;U<Mr[N].length;U++){var oa=Mr[N][U];U>0&&(Fa+=zt(Mr[N][U-1],oa)),dt[oa]=Fa+zr[oa].w/2,Fa+=zr[oa].w}}function bt(ne,xe){for(var Le=[0],He=1;He<ne.length;He++)Le[He]=Le[He-1]+zr[ne[He-1]].w/2+zt(ne[He-1],ne[He])+zr[ne[He]].w/2;var Ge=[];for(He=0;He<ne.length;He++){for(var je={sum:xe[He]-Le[He],count:1,end:He};Ge.length>0&&Ge[Ge.length-1].sum/Ge[Ge.length-1].count>je.sum/je.count;){var Xo=Ge.pop();je.sum+=Xo.sum,je.count+=Xo.count}Ge.push(je)}for(var Dr=0,wr=0;wr<Ge.length;wr++)for(var Oo=Ge[wr].sum/Ge[wr].count,eo=0;eo<Ge[wr].count;eo++,Dr++)dt[ne[Dr]]=Oo+Le[Dr]}function Wt(ne){var xe=ne?1:Mr.length-2,Le=ne?Mr.length:-1,He=ne?1:-1;for(N=xe;N!==Le;N+=He){var Ge=Mr[N],je=[];for(U=0;U<Ge.length;U++){var Xo=ne?Io[Ge[U]]:fo[Ge[U]];if(Xo.length===0){je.push(dt[Ge[U]]);continue}for(var Dr=0,wr=0;wr<Xo.length;wr++)Dr+=dt[Xo[wr]];je.push(Dr/Xo.length)}bt(Ge,je)}}for(Wt(!0),Wt(!1),Wt(!0),Wt(!1),Wt(!0),p=0;p<f.length;p++)if(!(io[p]==null||io[p].length<2)){var ha=0;for(U=0;U<io[p].length;U++)ha+=dt[io[p][U]];for(U=0;U<io[p].length;U++)dt[io[p][U]]=ha/io[p].length}function co(){for(var ne=0;ne<Mr.length;ne++)for(var xe=1;xe<Mr[ne].length;xe++){var Le=Mr[ne][xe-1],He=Mr[ne][xe],Ge=dt[Le]+zr[Le].w/2+zt(Le,He)+zr[He].w/2;dt[He]<Ge&&(dt[He]=Ge)}}if(co(),a.length>1){let ne=function(He,Ge){for(var je=0;Ge!=null&&je++<32;){if(lt[Ge]===He)return!0;Ge=lt[Ge]}return!1},xe=function(He){for(var Ge=[],je=0;je<e.length;je++)for(var Xo=e[je].partition,Dr=0;Xo!=null&&Dr++<32;){if(Xo===He){Ge.push(e[je].id);break}Xo=lt[Xo]}return Ge},Le=function(He){for(var Ge={x0:1/0,x1:-1/0,r0:1/0,r1:-1/0,sum:0},je=0;je<He.length;je++){var Xo=zr[He[je]],Dr=dt[He[je]];Dr-Xo.w/2<Ge.x0&&(Ge.x0=Dr-Xo.w/2),Dr+Xo.w/2>Ge.x1&&(Ge.x1=Dr+Xo.w/2),ve[He[je]]<Ge.r0&&(Ge.r0=ve[He[je]]),ve[He[je]]>Ge.r1&&(Ge.r1=ve[He[je]]),Ge.sum+=Dr}return Ge.mean=Ge.sum/He.length,Ge};var lt={};for(p=0;p<a.length;p++)lt[a[p].id]=a[p].parent;for(var it=0;it<8;it++){var st=!1;for(p=0;p<a.length;p++)for(U=0;U<a.length;U++)if(!(p===U||ne(a[p].id,a[U].id)||ne(a[U].id,a[p].id))){var ja=xe(a[p].id),Je=xe(a[U].id);if(!(ja.length===0||Je.length===0)){var mo=Le(ja),ge=Le(Je);if(!(mo.r1<ge.r0||ge.r1<mo.r0)){var We=2*ni+4;if(!(mo.x1+We<=ge.x0||ge.x1+We<=mo.x0)){for(var Et=mo.mean<=ge.mean?Je:ja,wo=mo.mean<=ge.mean?mo.x1+We-ge.x0:ge.x1+We-mo.x0,la=0;la<Et.length;la++)dt[Et[la]]+=wo;st=!0}}}}if(!st)break}co()}var ia=[],pe=[];for(N=0;N<Mr.length;N++){var Zr=0;for(U=0;U<Mr[N].length;U++)zr[Mr[N][U]].h>Zr&&(Zr=zr[Mr[N][U]].h);ia[N]=Zr,pe[N]=Bl}for(p=0;p<f.length;p++)if(Q=f[p],!(!he[Q.from]||!he[Q.to]||!Q.label)){var $t=Math.min(ve[Q.from],ve[Q.to]);Math.abs(ve[Q.from]-ve[Q.to])===1&&pe[$t]<Bl+ci&&(pe[$t]=Bl+ci)}var xt={},kt={},Dt={};for(p=0;p<a.length;p++){Dt[a[p].id]=p;for(var Ut=0,Co=a[p].parent;Co!=null&&Ut<32;)Ut++,Co=a[Dt[Co]]?a[Dt[Co]].parent:null;kt[a[p].id]=Ut}function Ht(ne,xe){var Le=xt[ne];Le==null?xt[ne]={min:xe,max:xe}:(xe<Le.min&&(Le.min=xe),xe>Le.max&&(Le.max=xe))}for(p=0;p<e.length;p++)for(var Po=e[p].partition,Tt=0;Po!=null&&Dt[Po]!=null&&Tt++<32;)Ht(Po,ve[e[p].id]),Po=a[Dt[Po]].parent;var St=[],vt=[];for(N=0;N<Mr.length;N++)St[N]=0,vt[N]=0;for(var Xt in xt)if(xt.hasOwnProperty(Xt)){var sa=kt[Xt]+1,Xa=xt[Xt],ya=sa*(wl+mi),Mo=sa*ni;ya>St[Xa.min]&&(St[Xa.min]=ya),Mo>vt[Xa.max]&&(vt[Xa.max]=Mo)}var _t=[],ct=gi;for(N=0;N<Mr.length;N++)ct+=St[N],_t[N]=ct,ct+=ia[N]+vt[N]+pe[N];var $a=1/0;for(p=0;p<e.length;p++){var en=zr[e[p].id],da=e[p].partition?(kt[e[p].partition]+1)*ni:0;e[p].type==="branch"&&e[p].condition&&(da+=Er(D(e[p].condition),11)+4),dt[e[p].id]-en.w/2-da<$a&&($a=dt[e[p].id]-en.w/2-da)}var Kt=gi-$a;for(p=0;p<mt.length;p++){var va=zr[mt[p]],ma=ve[mt[p]];va.x=Math.round(dt[mt[p]]+Kt-va.w/2),va.y=Math.round(_t[ma]+(ia[ma]-va.h)/2)}for(p=0;p<e.length;p++)if(j=e[p],!(j.type!=="note"||j.edge==null||!f[j.edge])){var ba=f[j.edge];if(!(!he[ba.from]||!he[ba.to])){var ot=zr[ba.from],jt=zr[ba.to],ta=(ot.x+ot.w/2+jt.x+jt.w/2)/2,_a=(ot.y+ot.h/2+jt.y+jt.h/2)/2,ca=zr[j.id];ca.x=Math.round(ta+14),ca.y=Math.round(_a-ca.h/2)}}var ut={};for(p=a.length-1;p>=0;p--){var wa=a[p],Bt=1/0,Bo=1/0,Oa=-1/0,Vt=-1/0;for(U=0;U<e.length;U++)if(e[U].partition===wa.id){var go=zr[e[U].id];go.x<Bt&&(Bt=go.x),go.y<Bo&&(Bo=go.y),go.x+go.w>Oa&&(Oa=go.x+go.w),go.y+go.h>Vt&&(Vt=go.y+go.h)}for(U=p+1;U<a.length;U++){var xo=ut[a[U].id];a[U].parent!==wa.id||xo==null||(xo.x<Bt&&(Bt=xo.x),xo.y<Bo&&(Bo=xo.y),xo.x+xo.w>Oa&&(Oa=xo.x+xo.w),xo.y+xo.h>Vt&&(Vt=xo.y+xo.h))}if(isFinite(Bt)){if(wa.inner){ut[wa.id]={x:Bt-7,y:Bo-7,w:Oa-Bt+14,h:Vt-Bo+14,titleW:0};continue}var qt=Math.round(Er(wa.name,14,!0)+14);ut[wa.id]={x:Bt-ni,y:Bo-wl-mi,w:Math.max(Oa-Bt+2*ni,qt+20),h:Vt-Bo+wl+mi+ni,titleW:qt}}}for(p=0;p<a.length;p++){var Pt=ut[a[p].id];if(Pt!=null){if(a[p].inner){B+=Z(_r("inner"),"","rounded=1;absoluteArcSize=1;arcSize=25;fillColor=#FFFFFF;strokeColor=#A80036;strokeWidth=1.5;",Pt.x,Pt.y,Pt.w,Pt.h,"1");continue}var Jt=P(a[p].color)||er("partitionBackgroundColor",a[p].stereotype,"none"),aa=er("partitionBorderColor",a[p].stereotype,"#000000");B+=Z(_r("part"),"","rounded=0;fillColor="+Jt+";strokeColor="+aa+";strokeWidth=1.5;",Pt.x,Pt.y,Pt.w,Pt.h,"1"),B+=Z(_r("ptab"),a[p].name,"rounded=0;fillColor="+Jt+";strokeColor="+aa+";strokeWidth=1.5;fontStyle=1;fontSize=14;fontColor=#000000;align=left;verticalAlign=middle;spacingLeft=2;whiteSpace=wrap;",Pt.x,Pt.y,Pt.titleW,wl,"1")}}var Pa=er("activityArrowColor",null,null)||er("arrowColor",null,"#181818");for(p=0;p<e.length;p++){j=e[p];var gr=zr[j.id],de,Gr="";if(j.type==="start"){var Or=er("activityStartColor",null,"#222222");de="ellipse;fillColor="+Or+";strokeColor="+Or+";"}else if(j.type==="end"){var re=er("activityEndColor",null,"#222222");de="ellipse;shape=endState;fillColor="+re+";strokeColor="+re+";"}else if(j.type==="branch"){Gr=j.condition||"";var be=Mr[ve[j.id]],Cr=Oe[j.id]>0&&Oe[j.id]===be.length-1;de="rhombus;fillColor="+er("activityDiamondBackgroundColor",null,"#F1F1F1")+";strokeColor="+er("activityDiamondBorderColor",null,"#181818")+";strokeWidth=0.5;fontSize=11;verticalLabelPosition=top;verticalAlign=bottom;"+(Cr?"labelPosition=right;align=left;":"labelPosition=left;align=right;")}else if(j.type==="bar"){var te=er("activityBarColor",null,"#555555");de="shape=rectangle;fillColor="+te+";strokeColor="+te+";"}else if(j.type==="note")Gr=j.label||"",de="shape=note;size=14;fillColor="+(P(j.color)||er("noteBackgroundColor",null,"#FEFFDD"))+";strokeColor="+er("noteBorderColor",null,"#181818")+";strokeWidth=0.5;fontSize=13;whiteSpace=wrap;align=left;verticalAlign=middle;spacingLeft=2;";else{Gr=j.label||"";var ce=P(j.color)||er("activityBackgroundColor",j.stereotype,"#F1F1F1"),fe=parseFloat(Lr("activityFontSize",j.stereotype))||12;de="rounded=1;absoluteArcSize=1;arcSize=25;fillColor="+ce+";strokeColor="+er("activityBorderColor",j.stereotype,"#181818")+";strokeWidth=0.5;whiteSpace=wrap;fontSize="+fe+";fontColor="+er("activityFontColor",j.stereotype,"#000000")+";align=left;spacingLeft=6;"}B+=Z(gr.cellId,Gr,de,gr.x,gr.y,gr.w,gr.h,"1")}var tt=0;for(p=0;p<e.length;p++)zr[e[p].id].x+zr[e[p].id].w>tt&&(tt=zr[e[p].id].x+zr[e[p].id].w);function ko(ne,xe,Le,He,Ge,je){var Xo=' <mxGeometry relative="1" as="geometry"'+(je?`>+`:`/>+`);if(je){Xo+=` <Array as="points">+`;for(var Dr=0;Dr<je.length;Dr++)Xo+=' <mxPoint x="'+je[Dr].x+'" y="'+je[Dr].y+`"/>+`;Xo+=` </Array>+ </mxGeometry>+`}return' <mxCell id="'+i(ne)+'" value="'+T(xe)+'" style="'+i(Le)+'" edge="1" source="'+i(He)+'" target="'+i(Ge)+`" parent="1">+`+Xo+` </mxCell>+`}var Xr={};for(p=0;p<f.length;p++)he[f[p].from]&&he[f[p].to]&&(Xr[f[p].from+""+f[p].to]=!0);for(p=0;p<f.length;p++)if(Q=f[p],!(!he[Q.from]||!he[Q.to]||Q.hidden)){var Ce=zr[Q.from],jr=zr[Q.to],ao="endArrow=classic;endSize=8;strokeColor="+(P(Q.color)||Pa)+";fontSize=11;fontColor=#000000;";(Q.dashed||Q.dotted)&&(ao+="dashed=1;"),Q.bold&&(ao+="strokeWidth=2;");var De=null;if(Q.from===Q.to)ao+="edgeStyle=orthogonalEdgeStyle;exitX=1;exitY=0.25;exitDx=0;exitDy=0;entryX=1;entryY=0.75;entryDx=0;entryDy=0;";else if(io[p]!=null&&io[p].length>0){De=[];var ft=io[p],Ho=ve[Q.from]<ve[Q.to];for(U=0;U<ft.length;U++){var Ze=zr[ft[Ho?U:ft.length-1-U]];De.push({x:Math.round(Ze.x+Ze.w/2),y:Math.round(Ze.y+Ze.h/2)})}}else if(Xr[Q.to+""+Q.from]&&ve[Q.from]!==ve[Q.to]){var Ro=Q.from<Q.to?.3:.7,Ot=ve[Q.from]<ve[Q.to];ao+="exitX="+Ro+";exitY="+(Ot?1:0)+";exitDx=0;exitDy=0;entryX="+Ro+";entryY="+(Ot?0:1)+";entryDx=0;entryDy=0;"}B+=ko(_r("e"),Q.label||"",ao,Ce.cellId,jr.cellId,De)}for(p=0;p<e.length;p++)if(j=e[p],j.type==="note"){var Wo=zr[j.id];if(j.target!=null&&he[j.target]){var It=zr[j.target],Ro=j.position||"right",Uo="endArrow=none;strokeColor=#181818;";Ro==="left"?Uo+="exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;":Ro==="right"?Uo+="exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;":Ro==="top"?Uo+="exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;":Uo+="exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;",B+=O(_r("noteln"),"",Uo,Wo.cellId,It.cellId,"1")}}if(r.title){var jo=Math.max(60,Math.round(Er(r.title,14,!0)+20)),Nt=String(r.title).split(`+`).length*20+4;B+=Z(_r("title"),r.title,"text;html=1;fillColor=none;strokeColor=none;fontSize=14;fontStyle=1;fontColor=#000000;align=center;verticalAlign=middle;",Math.round((gi+tt)/2-jo/2),gi-Nt-12,jo,Nt,"1")}return B}var Ei=160,Ii=49,Di=35,Ni=24,li=60,as=24,hs=16,Is=6,Js=20,qi=26,Yf=20,Li=16,Zi=10,ji=15,Ns=33;function Tl(r,n){for(var e=String(r??""),f=0,a=0,h=0;h<e.length;h++){var B=e.charAt(h);B===`+`?(f>a&&(a=f),f=0):`iIljtf.,:;!|'"()[]{} `.indexOf(B)>=0?f+=4.2:"mwMW".indexOf(B)>=0?f+=11.7:f+=7.8}return f>a&&(a=f),a*(n?1.05:1)}function ns(r){return typeof r=="string"&&/^\s*<[$&][A-Za-z0-9_-]+>\s*$/.test(r)}function $s(r){return typeof r=="string"&&/<size:\d|<[$&][A-Za-z0-9_-]+>/i.test(r)}function Qs(r){var n=String(r??"");n=n.replace(/\\r\\n|\\n|\\r/g,`+`).replace(/\\t/g," "),n=n.replace(/<U\+([0-9A-Fa-f]{2,6})>/g,function(Q,_r){try{return String.fromCodePoint(parseInt(_r,16))}catch{return""}}),n=n.replace(/<[&$][A-Za-z0-9_-]+>/g,function(Q){return D(Q)}),n=n.replace(/\*\*([\s\S]+?)\*\*/g,"$1").replace(/\/\/([\s\S]+?)\/\//g,"$1").replace(/__([\s\S]+?)__/g,"$1").replace(/~~([\s\S]+?)~~/g,"$1").replace(/""([\s\S]+?)""/g,"$1");for(var e=n.split(`+`),f=0,a=0,h=[],B=0;B<e.length;B++){var H=e[B],p=14,U=H.match(/<size:(\d+(?:\.\d+)?)>/i);U&&(p=parseFloat(U[1]));var N=H.replace(/<[^>]+>/g,"");N===""&&(N=" "),!U&&N.replace(/\s+/g,"").length===1&&N.charCodeAt(0)>8192&&(p=28);var j=Tl(N,!1)*(p/14);j>f&&(f=j),a+=p>20&&N.replace(/\s+/g,"").length<=1?p*.95:p*1.33,p!==14?h.push('<font style="font-size:'+p+'px">'+N+"</font>"):h.push(N)}return{w:Math.ceil(f),h:Math.ceil(a),html:h.join("<br>")}}function dn(r){var n=P(r.color)||"#F1F1F1",e=ns(r.name);switch(r.kind){case"actor":case"person":return"shape=umlActor;verticalLabelPosition=bottom;verticalAlign=top;html=1;fillColor="+n+";strokeColor=#181818;";case"interface":return"ellipse;fillColor="+n+";strokeColor=#181818;fontSize=12;";case"port":case"portin":case"portout":return"shape=mxgraph.sysml.port1;fillColor="+n+";strokeColor=#181818;fontSize=10;";case"database":return"shape=cylinder3;size=10;boundedLbl=1;backgroundOutline=1;fillColor="+n+";strokeColor=#181818;fontSize=14;whiteSpace=wrap;";case"queue":return"shape=queue;fillColor="+n+";strokeColor=#181818;fontSize=14;whiteSpace=wrap;";case"cloud":return"shape=cloud;fillColor="+n+";strokeColor=#181818;whiteSpace=wrap;";case"node":return"shape=cube;size=10;fillColor="+n+";strokeColor=#181818;whiteSpace=wrap;";case"folder":return"shape=folder;tabWidth=40;tabHeight=14;tabPosition=left;fillColor="+n+";strokeColor=#181818;whiteSpace=wrap;";case"frame":return"shape=mxgraph.uml25.frame;fillColor="+n+";strokeColor=#181818;whiteSpace=wrap;";case"file":return"shape=note;size=10;fillColor="+n+";strokeColor=#181818;fontSize=14;whiteSpace=wrap;";case"card":case"agent":return"rounded=1;absoluteArcSize=1;arcSize=5;fillColor="+n+";strokeColor=#181818;fontSize=14;whiteSpace=wrap;";case"storage":return"rounded=1;arcSize=50;fillColor="+n+";strokeColor=#181818;fontSize=14;whiteSpace=wrap;";case"usecase":return"ellipse;fillColor="+n+";strokeColor=#181818;fontSize=14;whiteSpace=wrap;";case"hexagon":return"shape=hexagon;fillColor="+n+";strokeColor=#181818;fontSize=14;whiteSpace=wrap;";case"circle":case"control":case"entity":return"ellipse;fillColor="+n+";strokeColor=#181818;whiteSpace=wrap;";case"label":return"text;html=1;fillColor=none;strokeColor=none;whiteSpace=wrap;";case"rectangle":var f="rounded=1;absoluteArcSize=1;arcSize=3;strokeWidth=1;fillColor="+n+";strokeColor=#181818;whiteSpace=wrap;";return e&&(f+="fontSize=48;fontColor=#000000;align=center;verticalAlign=middle;"),f;case"collections":case"stack":case"boundary":return"rounded=0;fillColor="+n+";strokeColor=#181818;fontSize=14;whiteSpace=wrap;";case"component":default:return"rounded=1;absoluteArcSize=1;arcSize=6;fillColor="+n+";strokeColor=#181818;fontSize=14;whiteSpace=wrap;"}}function yl(r){return Math.max(24,Math.round(Tl(r.name||"",!1))+12)}function Gi(r){return String(r.name||"").split(`+`).length}function vs(r){var n=P(r.color)||"none";switch(r.kind){case"package":case"folder":return"shape=folder;tabWidth="+yl(r)+";tabHeight="+(23+16*(Gi(r)-1))+";tabPosition=left;html=1;whiteSpace=wrap;fillColor="+n+";strokeColor=#000000;strokeWidth=1.5;fontSize=14;fontStyle=0;fontColor=#000000;align=left;verticalAlign=top;spacingLeft=4;spacingTop=-2;";case"frame":return"shape=umlFrame;width="+(Math.round(Tl(r.name||"",!1))+10)+";height="+(20+16*(Gi(r)-1))+";html=1;whiteSpace=wrap;fillColor="+n+";swimlaneFillColor="+n+";strokeColor=#181818;strokeWidth=1;fontSize=14;fontStyle=0;fontColor=#000000;align=left;verticalAlign=middle;spacingLeft=1;";case"node":return"shape=cube;size="+Zi+";fillColor="+n+";strokeColor=#181818;verticalAlign=top;align=center;spacingTop=12;fontSize=14;fontStyle=1;whiteSpace=wrap;";case"database":return"shape=cylinder3;size=10;boundedLbl=1;backgroundOutline=1;fillColor="+n+";strokeColor=#181818;verticalAlign=top;align=center;spacingTop=0;fontSize=14;fontStyle=1;whiteSpace=wrap;";case"cloud":return"shape=mxgraph.basic.cloud_rect;html=1;fillColor="+n+";strokeColor=#181818;verticalAlign=top;align=center;spacingTop=8;fontSize=14;fontStyle=1;whiteSpace=wrap;";case"artifact":return"swimlane;collapsible=0;startSize="+qi+";fillColor="+n+";strokeColor=#181818;fontStyle=1;";case"card":return"swimlane;collapsible=0;startSize="+qi+";shape=card;fillColor="+n+";strokeColor=#181818;fontStyle=1;";case"storage":return"swimlane;collapsible=0;startSize="+qi+";fillColor="+n+";strokeColor=#181818;fontStyle=1;";case"rectangle":return"rounded=1;absoluteArcSize=1;arcSize=5;fillColor="+n+";strokeColor=#181818;verticalAlign=top;align=center;spacingTop=2;fontSize=14;fontStyle=1;whiteSpace=wrap;";case"component":return"rounded=1;absoluteArcSize=1;arcSize=12;fillColor="+n+";strokeColor=#181818;verticalAlign=top;align=center;spacingTop=10;fontSize=14;whiteSpace=wrap;";default:return"swimlane;collapsible=0;startSize="+qi+";fillColor="+n+";strokeColor=#181818;fontStyle=1;"}}var ls=18,Ls=4,ps={interface:!0,circle:!0,control:!0,entity:!0,boundary:!0,actor:!0};function Vi(r){switch(r.kind){case"interface":return{w:18,h:18};case"circle":return{w:34,h:34};case"control":return{w:34,h:34};case"entity":return{w:34,h:40};case"boundary":return{w:56,h:34};case"actor":return{w:40,h:54};default:return null}}function Ji(r){if(!r)return{w:Ei,h:Ii};if(r.kind==="port"||r.kind==="portin"||r.kind==="portout")return{w:Li,h:Li};if(r.kind==="note"){for(var n=D(r.name),e=n.split(`+`),f=0,a=0;a<e.length;a++)e[a].length>f&&(f=e[a].length);return{w:Math.max(50,Math.ceil(f*6)+21),h:Math.max(24,Math.round(e.length*17.7+10))}}var h=D(r.name),B=h.split(`+`).length,H=B>1?B*16+14:0,p=Vi(r);if(p&&ps[r.kind]){var U=Math.round(Tl(h,!1))+6;return{w:Math.max(p.w,U),h:p.h+Ls+ls}}if(ns(r.name))return{w:68,h:68};if($s(r.name)){var N=Qs(r.name);switch(r.kind){case"usecase":var j=Math.round(N.w*1.35)+30,Q=N.h+26;return j<Q*1.3&&(j=Math.round(Q*1.3)),{w:j,h:Q};case"cloud":return{w:N.w+84,h:N.h+72};case"database":return{w:N.w+44,h:N.h+58};case"queue":return{w:N.w+56,h:N.h+20};case"stack":return{w:N.w+30,h:N.h+18};default:return{w:N.w+20,h:N.h+8}}}var _r=Math.round(Tl(h,!1)),Lr=Math.max(60,_r+40),er=Ii;return r.kind==="artifact"?(Lr=Math.max(50,_r+30),er=40):r.kind==="file"||r.kind==="agent"||r.kind==="storage"?(Lr=Math.max(50,_r+20),er=37):r.kind==="card"?(Lr=Math.max(40,_r+20),er=23):r.kind==="hexagon"?(Lr=Math.max(60,2*_r),er=27):r.kind==="database"?(Lr=Math.max(50,_r+20),er=46):r.kind==="usecase"?(Lr=Math.max(40,Math.round(Math.SQRT2*(_r+4.3))),er=29):r.kind==="person"?(Lr=Math.max(70,_r+24),er=66):r.kind==="label"?(Lr=Math.max(20,_r+8),er=20):r.kind==="collections"?(Lr=Math.max(60,_r+20),er=37):r.kind==="stack"?(Lr=Math.max(60,_r+50),er=37):r.kind==="queue"?(Lr=Math.max(50,_r+20),er=27):r.kind==="folder"?(Lr=Math.max(60,_r+30),er=54):r.kind==="package"?(Lr=Math.max(70,_r+42),er=40):r.kind==="frame"&&(Lr=Math.max(70,_r+40),er=47),H>er&&(er=H),{w:Lr,h:er}}function is(r,n){var e=r.nodes,f=r.containers,a=r.connections,h="",B=0,H=r.styleSheet||null,p=null,U=["fillColor","gradientColor"],N=H!=null?String(H.skinparams.componentstyle||"").toLowerCase():"";function j(gr){return gr==="portin"||gr==="portout"?"port":gr==="bracket"||gr==="bare"||!gr?"component":gr}function Q(gr,de,Gr,Or,re){return s(gr,H,["root","element","componentDiagram"].concat(de),Gr||[],Or||"vertex",re)}function _r(gr,de){if(p==null||H==null)return gr;var Gr=de?"edge":gr.indexOf("text;")===0?"text":"vertex",Or=R(H,["root","element","componentDiagram",p.name],p.stereotypes,Gr);if(p.skip!=null)for(var re=0;re<p.skip.length;re++)delete Or[p.skip[re]];return Or.fillColor!=null&&/swimlaneFillColor=/.test(gr)&&(Or.swimlaneFillColor=Or.fillColor),g(gr,Or)}function Lr(gr,de,Gr){p=H==null?null:{name:j(gr),stereotypes:de?[de]:[],skip:Gr?U:null}}for(var er=function(gr,de,Gr,Or,re,be,Cr,te){var ce=_r(Gr,!1);return String(gr).indexOf("ci_")===0&&ce!==Gr&&(ce=ce.replace(/(^|;)(?:rounded|arcSize|absoluteArcSize)=[^;]*(?=;|$)/g,"$1").replace(/;;+/g,";").replace(/^;/,""),/^rounded=1;/.test(Gr)&&!/rounded=/.test(ce)&&(ce="rounded=1;"+ce)),oe(gr,de,ce,Or,re,be,Cr,te)},Qr=function(gr,de,Gr,Or,re,be,Cr,te){return Ko(gr,de,_r(Gr,!0),Or,re,be,Cr,te)},Vr=0;Vr<e.length;Vr++)e[Vr].stereotype&&!e[Vr]._stereoFolded&&(e[Vr].name="\xAB"+e[Vr].stereotype+`\xBB+`+(e[Vr].name||""),e[Vr]._stereoFolded=!0);for(var he=0;he<f.length;he++)f[he].stereotype&&!f[he]._stereoFolded&&(f[he].name="\xAB"+f[he].stereotype+`\xBB+`+(f[he].name||""),f[he]._stereoFolded=!0);var zr={rectangle:1,node:1,cloud:1,database:1,frame:1,card:1};if(r.packageStyle&&zr[r.packageStyle])for(var Jr=0;Jr<f.length;Jr++)f[Jr].kind==="package"&&(f[Jr].kind=r.packageStyle);function br(gr){return gr+"_"+B++}for(var Br={},Ie={},To={},Sr={},Rr={},ue={},L=0;L<f.length;L++){var Y=f[L];To[Y.id]=Y,Rr[Y.id]=Y.parent==null?null:Y.parent,ue[Y.id]=!0}for(var nr=0;nr<e.length;nr++){var Yr=e[nr];Sr[Yr.id]=Yr,Rr[Yr.id]=Yr.parent==null?null:Yr.parent}function mr(gr,de){for(var Gr=gr,Or=0;Gr!=null&&Or++<4096;){var re=Rr.hasOwnProperty(Gr)?Rr[Gr]:null;if(de==null){if(re==null)return Gr}else if(re===de)return Gr;if(re==null)return null;Gr=re}return null}function q(gr,de){return gr&&de?Ni:Di}function ur(gr,de){return gr&&de?as:li}var kr={},Ye={};function Fe(gr){for(var de=gr.length,Gr={},Or=Math.max(1,Math.ceil(Math.sqrt(de))),re=Math.ceil(de/Or),be=0,Cr=0,te=0;te<de;te++){var ce=kr[gr[te]];ce.w>be&&(be=ce.w),ce.h>Cr&&(Cr=ce.h)}for(var fe=0;fe<de;fe++){var tt=Math.floor(fe/Or),ko=fe%Or,Xr=kr[gr[fe]],Ce=ko*(be+Di),jr=tt*(Cr+li);Gr[gr[fe]]={x:Ce+(be-Xr.w)/2,y:jr+(Cr-Xr.h)/2}}return{pos:Gr,w:Or*be+(Or-1)*Di,h:re*Cr+(re-1)*li}}function qe(gr,de){var Gr=gr.length,Or={};if(Gr===0)return{pos:Or,w:0,h:0};for(var re={},be=0;be<Gr;be++)re[gr[be]]=!0;for(var Cr={},te={},ce=[],fe=!1,tt=!1,ko=!1,Xr=0;Xr<Gr;Xr++)Cr[gr[Xr]]=[],te[gr[Xr]]=0;function Ce(we,za){for(var Za=[we],Yn={};Za.length>0;){var Jn=Za.pop();if(Jn===za)return!0;if(!Yn[Jn]){Yn[Jn]=!0;for(var bn=Cr[Jn]||[],Wa=0;Wa<bn.length;Wa++)Za.push(bn[Wa].to)}}return!1}for(var jr=0;jr<a.length;jr++){var ao=mr(a[jr].from,de),De=mr(a[jr].to,de);if(!(ao==null||De==null||ao===De)&&!(!re[ao]||!re[De])){ce.push({a:ao,b:De,src:a[jr].from,dst:a[jr].to}),fe=!0;var ft=a[jr].span!=null?a[jr].span:1;(a[jr].dir==="l"||a[jr].dir==="r")&&(ft=0),ft===0?tt=!0:ko=!0;var Ho=ft,Ze=ao!==a[jr].from||De!==a[jr].to,Ro=a[jr].dir==="l"||a[jr].dir==="r";Ze&&Ho===0&&!Ro&&(Ho=1);var Ot=ao,Wo=De;a[jr].dir==="u"&&(Ot=De,Wo=ao),!Ce(Wo,Ot)&&(Cr[Ot].push({to:Wo,span:Ho}),te[Wo]++)}}function It(we,za){for(var Za=0,Yn=0;Yn<a.length;Yn++){var Jn=a[Yn];if(!(Jn.hidden||!Jn.label)){var bn=mr(Jn.from,de),Wa=mr(Jn.to,de);if(bn===we&&Wa===za||bn===za&&Wa===we){var Mn=Math.round(Tl(Jn.label,!1))+16;Mn>Za&&(Za=Mn)}}}return Za}if(!fe)return Fe(gr);for(var Uo={},jo=[],Nt=0;Nt<Gr;Nt++)Uo[gr[Nt]]=0,jo.push(gr[Nt]);for(var ne=Gr*Gr+16;jo.length>0&&ne-- >0;)for(var xe=jo.shift(),Le=Cr[xe],He=0;He<Le.length;He++){var Ge=Le[He].to,je=Uo[xe]+Le[He].span;(Uo[Ge]===void 0||Uo[Ge]<je)&&(Uo[Ge]=je,jo.push(Ge))}for(var Xo={},Dr=[],wr=0;wr<Gr;wr++){var Oo=Uo[gr[wr]];Xo.hasOwnProperty(Oo)||(Xo[Oo]=[],Dr.push(Oo)),Xo[Oo].push(gr[wr])}Dr.sort(function(we,za){return we-za});for(var eo=[],yo=0,Zt=0;Zt<Dr.length;Zt++){for(var Ct=Xo[Dr[Zt]],Ia=0,Ba=0,An=!0,Fr=0;Fr<Ct.length;Fr++){var Qe=kr[Ct[Fr]];Fr>0&&(Ia+=Math.max(q(kr[Ct[Fr-1]].isContainer,Qe.isContainer),It(Ct[Fr-1],Ct[Fr]))),Ia+=Qe.w,Qe.h>Ba&&(Ba=Qe.h),Qe.isContainer||(An=!1)}eo.push({ids:Ct,w:Ia,h:Ba,allCont:An}),Ia>yo&&(yo=Ia)}for(var lo=de==null&&eo.length>=2&&tt&&!ko,at=0;lo&&at<eo.length;at++)(eo[at].ids.length!==1||!kr[eo[at].ids[0]].isContainer)&&(lo=!1);if(lo){for(var ua=0,pa=0,Ea=0,on=0,Ya=0;Ya<eo.length;Ya++){var Tn=eo[Ya].ids[0],Ha=kr[Tn];Or[Tn]={x:ua,y:pa},ua+Ha.w>Ea&&(Ea=ua+Ha.w),pa+Ha.h>on&&(on=pa+Ha.h),ua+=Ha.w+Ni,pa+=Math.round(Ha.h*.6)}return{pos:Or,w:Ea,h:on}}function Nn(we,za){for(var Za=0,Yn=we,Jn=0;Yn!==za&&Jn++<4096;){var bn=Rr.hasOwnProperty(Yn)?Rr[Yn]:null;if(bn==null)break;var Wa=kr[bn]?kr[bn].children:null;if(Wa){for(var Mn=0;Mn<Wa.length;Mn++)if(Wa[Mn].id===Yn){Za+=Wa[Mn].x;break}}Yn=bn}return Za}if(r.direction==="LR"){for(var so=[],Eo=0,rt=0;rt<eo.length;rt++){for(var Ra=0,pt=0;pt<eo[rt].ids.length;pt++)pt>0&&(Ra+=li),Ra+=kr[eo[rt].ids[pt]].h;so.push(Ra),Ra>Eo&&(Eo=Ra)}for(var tn=0,Ka=0,Va=0;Va<eo.length;Va++){for(var Ja=0,an=0;an<eo[Va].ids.length;an++)kr[eo[Va].ids[an]].w>Ja&&(Ja=kr[eo[Va].ids[an]].w);for(var Ln=(Eo-so[Va])/2,Gn=0;Gn<eo[Va].ids.length;Gn++){var cn=kr[eo[Va].ids[Gn]];Or[eo[Va].ids[Gn]]={x:tn+(Ja-cn.w)/2,y:Ln},Ln+=cn.h+li}tn+=Ja+q(!1,!1),Ka=tn-q(!1,!1)}return{pos:Or,w:Ka,h:Eo}}for(var Yt={},wn=0,Ke=0;Ke<eo.length;Ke++){var qo=eo[Ke];if(Ke>0){for(var na=[],Ft=0;Ft<qo.ids.length;Ft++){for(var fa=qo.ids[Ft],mn=0,En=0,Zn=0;Zn<ce.length;Zn++){var nn=ce[Zn];nn.b===fa&&Yt.hasOwnProperty(nn.a)&&(mn+=Yt[nn.a]-kr[nn.a].w/2+Nn(nn.src,nn.a),En++)}na.push({id:fa,order:Ft,key:En?mn/En:1/0})}na.sort(function(we,za){return we.key-za.key||we.order-za.order});for(var Dn=[],rl=0;rl<na.length;rl++)Dn.push(na[rl].id);qo.ids=Dn}for(var Un=(yo-qo.w)/2,el=0;el<qo.ids.length;el++){var Cl=qo.ids[el],Il=kr[Cl];el>0&&(Un+=Math.max(q(kr[qo.ids[el-1]].isContainer,Il.isContainer),It(qo.ids[el-1],Cl))),Or[Cl]={x:Un,y:wn+(qo.h-Il.h)/2},Yt[Cl]=Un+Il.w/2,Un+=Il.w}Ke+1<eo.length?wn+=qo.h+ur(qo.allCont,eo[Ke+1].allCont):wn+=qo.h}for(var jn={},hi=0;hi<eo.length;hi++)for(var $i=0;$i<eo[hi].ids.length;$i++)jn[eo[hi].ids[$i]]=hi;function pn(we,za){return Math.max(q(kr[we[za-1]].isContainer,kr[we[za]].isContainer),It(we[za-1],we[za]))}function Fl(we,za,Za){for(var Yn=!1,Jn=0;Jn<Za.length;Jn++)if(Za[Jn]>0){Yn=!0;break}if(Yn){for(var bn=[],Wa=0;Wa<we.length;Wa++){var Mn=kr[we[Wa]],Jl=Wa>0?pn(we,Wa):0;for(bn.push({first:Wa,last:Wa,w:Mn.w,gapBefore:Jl,wSum:Za[Wa],prefSum:Za[Wa]>0?Za[Wa]*(za[Wa]-Mn.w/2):0,x:Za[Wa]>0?za[Wa]-Mn.w/2:Or[we[Wa]].x});bn.length>1;){var Kl=bn[bn.length-1],Da=bn[bn.length-2];if(Da.x+Da.w+Kl.gapBefore<=Kl.x)break;var Oi=Da.w+Kl.gapBefore;Da.prefSum+=Kl.prefSum-Kl.wSum*Oi,Da.wSum+=Kl.wSum,Da.w=Oi+Kl.w,Da.last=Kl.last,Da.wSum>0&&(Da.x=Da.prefSum/Da.wSum),bn.pop()}}for(var Ql=null,Fs=0;Fs<bn.length;Fs++){var Pi=bn[Fs],La=Pi.x;Ql!=null&&La<Ql+Pi.gapBefore&&(La=Ql+Pi.gapBefore);for(var Ma=0,vi=Pi.first;vi<=Pi.last;vi++){var us=kr[we[vi]];vi>Pi.first&&(Ma+=pn(we,vi)),Or[we[vi]].x=La+Ma,Yt[we[vi]]=La+Ma+us.w/2,Ma+=us.w}Ql=La+Pi.w}}}for(var hl=1;hl<eo.length;hl++){for(var tl=eo[hl].ids,al=[],ga=[],Vo=0;Vo<tl.length;Vo++){for(var qa=0,Rn=0,On=0;On<ce.length;On++){var ln=ce[On],kn=ln.a===tl[Vo]?ln.b:ln.b===tl[Vo]?ln.a:null;kn!=null&&jn[kn]<hl&&(qa+=Yt[kn],Rn++)}al.push(Rn?qa/Rn:Or[tl[Vo]].x+kr[tl[Vo]].w/2),ga.push(Rn)}Fl(tl,al,ga)}if(eo.length>1){for(var $n=eo[0].ids,gl=[],Pn=[],Vn=0;Vn<$n.length;Vn++){for(var Pl=0,$l=0,ql=!0,ii=0;ii<ce.length;ii++){var Yl=ce[ii],Ml=Yl.a===$n[Vn]?Yl.b:Yl.b===$n[Vn]?Yl.a:null;if(!(Ml==null||jn[Ml]===0)){for(var El=0;El<ce.length&&ql;El++){var _l=ce[El],xl=_l.a===Ml?_l.b:_l.b===Ml?_l.a:null;xl!=null&&xl!==$n[Vn]&&jn[xl]<jn[Ml]&&(ql=!1)}ql&&(Pl+=Yt[Ml],$l++)}}gl.push(ql&&$l?Pl/$l:Or[$n[Vn]].x+kr[$n[Vn]].w/2),Pn.push(ql&&$l?1:0)}Fl($n,gl,Pn)}var Hl=1/0,At=-1/0;for(var Na in Or)Or.hasOwnProperty(Na)&&(Or[Na].x<Hl&&(Hl=Or[Na].x),Or[Na].x+kr[Na].w>At&&(At=Or[Na].x+kr[Na].w));if(Hl!==1/0&&Hl!==0)for(var Fn in Or)Or.hasOwnProperty(Fn)&&(Or[Fn].x-=Hl);return{pos:Or,w:Hl===1/0?yo:At-Hl,h:wn}}function Ae(gr){return gr&&gr.name?String(gr.name).split(`+`).length:1}function Ue(gr,de,Gr,Or){var re=gr.kind,be=15*(Ae(gr)-1);if(re==="node"){var Cr=Math.max(de+2*ji,Or+2*Ns,80);return{w:Cr+Zi,h:Zi+30+be+Gr+16,childX:(Cr-de)/2,childY:Zi+30+be}}if(re==="database"){var te=Math.max(de,Or)+33;return{w:te,h:50+be+Gr+16,childX:(te-de)/2,childY:50+be}}if(re==="cloud"){var ce=Math.max(de,Or)+40;return{w:ce,h:35+be+Gr+18,childX:(ce-de)/2,childY:35+be}}var fe=Math.max(de+2*ji,Or+2*ji,80);return{w:fe,h:qi+8+be+Gr+12,childX:(fe-de)/2,childY:qi+8+be}}function no(gr){if(kr[gr])return kr[gr];if(ue[gr]){var de=To[gr];if(Ye[gr]){var Gr=Ue(de,0,0,Tl(de.name,!0));return kr[gr]={w:Gr.w,h:Gr.h,isContainer:!0,kind:de.kind,children:[]},kr[gr]}Ye[gr]=!0;for(var Or=(de.children||[]).slice(),re=[],be=0;be<Or.length;be++)Ye[Or[be]]&&!kr[Or[be]]||(no(Or[be]),re.push(Or[be]));for(var Cr=[],te=[],ce=0;ce<re.length;ce++){var fe=kr[re[ce]],tt=fe?fe.kind:null;tt==="port"||tt==="portin"||tt==="portout"?Cr.push(re[ce]):te.push(re[ce])}if(Cr.length>0){for(var ko=qe(te,de.id),Xr=Tl(de.name,!0),Ce=46,jr=24,ao=Math.max(ko.w,Xr,150),De=ao+2*ji,ft=Ce+ko.h+jr,Ho=[],Ze=(De-ko.w)/2,Ro=0;Ro<te.length;Ro++){var Ot=ko.pos[te[Ro]];Ot&&Ho.push({id:te[Ro],x:Ze+Ot.x,y:Ce+Ot.y})}for(var Wo=0;Wo<Cr.length;Wo++){var It=kr[Cr[Wo]],Uo=(Wo+1)/(Cr.length+1);Ho.push({id:Cr[Wo],x:Math.round(De*Uo-It.w/2),y:-Math.round(It.h/2)})}return kr[gr]={w:De,h:ft,isContainer:!0,kind:de.kind,children:Ho},kr[gr]}for(var jo=qe(re,de.id),Nt=Ue(de,jo.w,jo.h,Tl(de.name,!0)),ne=[],xe=0;xe<re.length;xe++){var Le=jo.pos[re[xe]];Le&&ne.push({id:re[xe],x:Nt.childX+Le.x,y:Nt.childY+Le.y})}return kr[gr]={w:Nt.w,h:Nt.h,isContainer:!0,kind:de.kind,children:ne},kr[gr]}var He=Sr[gr],Ge=Ji(He);return kr[gr]={w:Ge.w,h:Ge.h,isContainer:!1,kind:He?He.kind:null,children:[]},kr[gr]}function Ee(gr,de,Gr,Or,re,be,Cr){var te=P(gr.color)||"#F1F1F1",ce="#181818",fe=gr.kind;Lr(fe,gr.stereotype,gr.color);function tt(An,Fr,Qe,lo){h+=er(br("ci"),"","rounded=0;fillColor="+ce+";strokeColor="+ce+";",An,Fr,Qe,lo,Cr)}function ko(An,Fr,Qe){h+=er(br("cap"),gr.name,"text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;fontSize=14;whiteSpace=wrap;",An,Fr,Qe,ls+4,Cr)}if(fe==="note"){var Xr=br("note");h+=er(Xr,gr.name,"shape=note;size=14;fillColor="+(P(gr.color)||"#FEFFDD")+";strokeColor=#181818;fontSize=12;whiteSpace=wrap;align=left;",Gr,Or,re,be,Cr),Br[de]=Xr;return}if(fe==="port"||fe==="portin"||fe==="portout"){var Ce=br("n");h+=er(Ce,"","rounded=0;fillColor="+te+";strokeColor="+ce+";",Gr,Or,re,be,Cr),Br[de]=Ce,h+=er(br("cap"),gr.name,"text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=bottom;fontSize=14;",Gr-12,Or-20,re+24,18,Cr);return}if($s(gr.name)&&!ns(gr.name)){var jr=Qs(gr.name),ao=r&&r.textAlign||"left",De=br("n");fe==="usecase"?h+=er(De,"","ellipse;fillColor="+te+";strokeColor="+ce+";",Gr,Or,re,be,Cr):fe==="cloud"?h+=er(De,"","shape=cloud;fillColor="+te+";strokeColor="+ce+";",Gr,Or,re,be,Cr):fe==="database"?h+=er(De,"","shape=cylinder;fillColor="+te+";strokeColor="+ce+";",Gr,Or,re,be,Cr):fe==="queue"?h+=er(De,"","shape=cylinder3;direction=east;size=12;fillColor="+te+";strokeColor="+ce+";",Gr,Or,re,be,Cr):fe==="stack"?(h+=er(De,"","rounded=0;fillColor="+te+";strokeColor="+ce+";",Gr,Or,re,be,Cr),h+=Qr(br("st"),"","endArrow=none;strokeColor="+ce+";",Gr+Math.round(re*.22),Or,Gr+Math.round(re*.22),Or+5,"1"),h+=Qr(br("st"),"","endArrow=none;strokeColor="+ce+";",Gr+Math.round(re*.78),Or,Gr+Math.round(re*.78),Or+5,"1")):fe==="hexagon"?h+=er(De,"","shape=hexagon;fillColor="+te+";strokeColor="+ce+";",Gr,Or,re,be,Cr):fe==="storage"?h+=er(De,"","rounded=1;arcSize=40;fillColor="+te+";strokeColor="+ce+";",Gr,Or,re,be,Cr):h+=er(De,"","rounded=1;absoluteArcSize=1;arcSize=5;fillColor="+te+";strokeColor="+ce+";",Gr,Or,re,be,Cr),Br[de]=De,h+=ye(br("lbl"),jr.html,"text;html=1;fontSize=14;strokeColor=none;fillColor=none;align="+ao+";verticalAlign=middle;",Gr+6,Or,re-12,be,Cr);return}if(ps[fe]){var ft=Vi(gr),Ho=ft.w,Ze=ft.h,Ro=Gr+(re-Ho)/2,Ot=br("n");if(fe==="actor")h+=er(Ot,"","shape=umlActor;html=1;fillColor="+te+";strokeColor="+ce+";",Ro,Or,Ho,Ze,Cr);else if(fe==="boundary"){var Wo=Ze,It=Ro+Ho-Wo,Uo=Or+Wo/2;tt(Ro,Or+Wo*.2,2,Wo*.6),tt(Ro,Uo-1,It-Ro,2),h+=er(Ot,"","ellipse;fillColor="+te+";strokeColor="+ce+";",It,Or,Wo,Wo,Cr)}else{var jo=Math.min(Ho,Ze-(fe==="entity"?6:0)),Nt=Gr+(re-jo)/2;h+=er(Ot,"","ellipse;fillColor="+te+";strokeColor="+ce+";",Nt,Or,jo,jo,Cr),fe==="entity"?h+=er(br("ci"),"","line;strokeWidth=1;strokeColor="+ce+";fillColor=none;",Nt,Or+jo+1,jo,2,Cr):fe==="control"&&(tt(Nt+jo*.34,Or-1,8,2),tt(Nt+jo*.34,Or-1,2,7))}Br[de]=Ot,ko(Gr,Or+Ze+Ls-4,re);return}if(fe==="person"){var ne=22;h+=er(br("ci"),"","ellipse;fillColor="+te+";strokeColor="+ce+";",Gr+(re-ne)/2,Or,ne,ne,Cr);var xe=Or+Math.round(ne*.7),Le=br("n");h+=er(Le,gr.name,"rounded=1;arcSize=40;fillColor="+te+";strokeColor="+ce+";fontSize=14;verticalAlign=middle;whiteSpace=wrap;",Gr,xe,re,Or+be-xe,Cr),Br[de]=Le;return}if(fe==="collections"){var He=4;h+=er(br("ci"),"","rounded=0;fillColor="+te+";strokeColor="+ce+";",Gr+He,Or,re-He,be-He,Cr);var Ge=br("n");h+=er(Ge,gr.name,"rounded=0;fillColor="+te+";strokeColor="+ce+";fontSize=14;whiteSpace=wrap;",Gr,Or+He,re-He,be-He,Cr),Br[de]=Ge;return}if(fe==="queue"){var je=br("n");h+=er(je,gr.name,"shape=cylinder3;direction=east;size=5;fillColor="+te+";strokeColor="+ce+";fontSize=14;whiteSpace=wrap;",Gr,Or,re,be,Cr),Br[de]=je;return}if(fe==="stack"){var Xo=br("n");h+=er(Xo,gr.name,"shape=partialRectangle;top=0;left=1;right=1;bottom=1;fillColor="+te+";strokeColor="+ce+";fontSize=14;whiteSpace=wrap;align=center;verticalAlign=middle;",Gr+15,Or,re-30,be,Cr),h+=er(br("ci"),"","line;strokeWidth=1;strokeColor="+ce+";fillColor=none;",Gr,Or-1,15,2,Cr),h+=er(br("ci"),"","line;strokeWidth=1;strokeColor="+ce+";fillColor=none;",Gr+re-15,Or-1,15,2,Cr),Br[de]=Xo;return}if(fe==="folder"||fe==="package"){var Dr=br("n"),wr=Math.round(Tl(gr.name,!1)),Oo=fe==="package";h+=er(Dr,gr.name,"shape=folder;tabWidth="+(Oo?wr+25:Math.max(24,Math.min(re-8,wr+4)))+";tabHeight="+(Oo?23:21)+";tabPosition=left;html=1;whiteSpace=wrap;fillColor="+te+";strokeColor="+ce+";fontSize=14;"+(Oo?"align=left;verticalAlign=top;spacingLeft=6;spacingTop=1;":"align=center;verticalAlign=middle;spacingTop=21;"),Gr,Or,re,be,Cr),Br[de]=Dr;return}if(fe==="frame"){var eo=br("n");h+=er(eo,"","shape=umlFrame;width=29;height=12;fillColor="+te+";swimlaneFillColor="+te+";strokeColor="+ce+";",Gr,Or,re,be,Cr),Br[de]=eo,h+=er(br("lbl"),gr.name,"text;html=1;fillColor=none;strokeColor=none;fontSize=14;align=center;verticalAlign=middle;whiteSpace=wrap;",Gr,Or+12,re,be-12,Cr);return}if(fe==="artifact"){var yo=br("n");h+=er(yo,gr.name,"rounded=1;absoluteArcSize=1;arcSize=5;fillColor="+te+";strokeColor="+ce+";fontSize=14;whiteSpace=wrap;",Gr,Or,re,be,Cr),Br[de]=yo,h+=er(br("ci"),"","shape=note;size=6;fillColor="+te+";strokeColor="+ce+";strokeWidth=0.5;",Gr+re-17,Or+5,12,14,Cr);return}var Zt=br("n"),Ct=dn(gr),Ia=fe==="component"||fe==="bracket"||fe==="bare"||!fe&&gr.name;if(Ia&&N==="uml1"&&(Ct="shape=component;jettyWidth=10;jettyHeight=5;"+Ct.replace(/^rounded=1;absoluteArcSize=1;arcSize=6;/,"")),h+=er(Zt,gr.name,Ct,Gr,Or,re,be,Cr),Br[de]=Zt,Ia&&N!=="rectangle"&&N!=="uml1"){var Ba="fillColor="+te+";strokeColor="+ce+";";h+=er(br("ci"),"","rounded=0;"+Ba,Gr+re-20,Or+5,15,10,Cr),h+=er(br("ci"),"",Ba,Gr+re-22,Or+7,4,2,Cr),h+=er(br("ci"),"",Ba,Gr+re-22,Or+11,4,2,Cr)}}function $o(gr,de,Gr,Or,re,be){var Cr=kr[gr];if(Cr){if(re===void 0&&(re=de,be=Gr),Ie[gr]={x:re,y:be,w:Cr.w,h:Cr.h},Cr.isContainer){var te=To[gr],ce=br("c");Lr(te.kind,te.stereotype,te.color),h+=er(ce,te.name,vs(te),de,Gr,Cr.w,Cr.h,Or),Br[gr]=ce,te.kind==="component"&&(h+=er(br("ci"),"","rounded=0;fillColor=none;strokeColor=#181818;",de+Cr.w-20,Gr+5,15,10,Or),h+=er(br("ci"),"","fillColor=none;strokeColor=#181818;",de+Cr.w-22,Gr+7,4,2,Or),h+=er(br("ci"),"","fillColor=none;strokeColor=#181818;",de+Cr.w-22,Gr+11,4,2,Or));for(var fe=0;fe<Cr.children.length;fe++){var tt=Cr.children[fe];$o(tt.id,tt.x,tt.y,ce,re+tt.x,be+tt.y)}return}Ee(Sr[gr],gr,de,Gr,Cr.w,Cr.h,Or)}}function ve(){if(f.length>0)return!1;for(var gr=0;gr<a.length;gr++)if(a[gr].dir)return!0;return!1}function Mr(){for(var gr=26,de=42,Gr=[],Or=0;Or<e.length;Or++)no(e[Or].id),Gr.push(e[Or].id);if(Gr.length===0)return{pos:{},w:0,h:0};for(var re={},be=0;be<Gr.length;be++)re[Gr[be]]=!0;for(var Cr=[],te=0;te<a.length;te++){var ce=a[te].from,fe=a[te].to;if(!(!re[ce]||!re[fe]||ce===fe)){var tt=a[te].dir,ko=tt==="d"?1:tt==="u"?-1:0;Cr.push({a:ce,b:fe,delta:ko,dir:tt})}}var Xr={};Xr[Gr[0]]=0;for(var Ce=!0,jr=0;Ce&&jr++<Gr.length*Gr.length+64;){Ce=!1;for(var ao=0;ao<Cr.length;ao++){var De=Cr[ao];Xr[De.a]!==void 0&&Xr[De.b]===void 0?(Xr[De.b]=Xr[De.a]+De.delta,Ce=!0):Xr[De.b]!==void 0&&Xr[De.a]===void 0&&(Xr[De.a]=Xr[De.b]-De.delta,Ce=!0)}}for(var ft=0;ft<Gr.length;ft++)Xr[Gr[ft]]===void 0&&(Xr[Gr[ft]]=0);for(var Ho=null,Ze=0;Ze<Cr.length;Ze++)if(Cr[Ze].dir==="r"||Cr[Ze].dir==="l"){Ho=Xr[Cr[Ze].a];break}for(var Ro={},Ot=0;Ot<Gr.length;Ot++){var Wo=Xr[Gr[Ot]];Ro[Wo]=(Ro[Wo]||0)+1}if(Ho===null){var It=-1;for(var Uo in Ro)Ro[Uo]>It&&(It=Ro[Uo],Ho=parseInt(Uo,10))}for(var jo={},Nt=[],ne=0;ne<Gr.length;ne++){var xe=Xr[Gr[ne]];jo.hasOwnProperty(xe)||(jo[xe]=[],Nt.push(xe)),jo[xe].push(Gr[ne])}Nt.sort(function(Ke,qo){return Ke-qo});for(var Le={},He={},Ge=0,je=0;je<Nt.length;je++){for(var Xo=0,Dr=jo[Nt[je]],wr=0;wr<Dr.length;wr++)kr[Dr[wr]].h>Xo&&(Xo=kr[Dr[wr]].h);He[Nt[je]]=Xo,Le[Nt[je]]=Ge,Ge+=Xo+de}for(var Oo={},eo={},yo=(jo[Ho]||[]).slice(),Zt={},Ct={},Ia=0;Ia<yo.length;Ia++)Zt[yo[Ia]]=[],Ct[yo[Ia]]=0;for(var Ba=0;Ba<Cr.length;Ba++){var An=Cr[Ba];if(!(Xr[An.a]!==Ho||Xr[An.b]!==Ho)){var Fr=An.a,Qe=An.b;An.dir==="l"&&(Fr=An.b,Qe=An.a),Zt[Fr]&&Ct.hasOwnProperty(Qe)&&(Zt[Fr].push(Qe),Ct[Qe]++)}}for(var lo=[],at=[],ua=0;ua<yo.length;ua++)Ct[yo[ua]]===0&&at.push(yo[ua]);for(var pa=yo.length*yo.length+16;at.length&&pa-- >0;){var Ea=at.shift();lo.push(Ea);for(var on=0;on<Zt[Ea].length;on++)--Ct[Zt[Ea][on]]===0&&at.push(Zt[Ea][on])}for(var Ya=0;Ya<yo.length;Ya++)lo.indexOf(yo[Ya])<0&&lo.push(yo[Ya]);function Tn(Ke,qo){var na=0;if(Ke==null||qo==null)return na;for(var Ft=0;Ft<a.length;Ft++){var fa=a[Ft];if(!(fa.hidden||!fa.label)&&(fa.from===Ke&&fa.to===qo||fa.from===qo&&fa.to===Ke)){var mn=Math.round(Tl(fa.label,!1))+16;mn>na&&(na=mn)}}return na}for(var Ha=0,Nn=0;Nn<lo.length;Nn++){var so=lo[Nn],Eo=kr[so];Oo[so]={x:Ha,y:Le[Ho]+(He[Ho]-Eo.h)/2},eo[so]=Ha+Eo.w/2,Ha+=Eo.w+Math.max(gr,Tn(so,Nn+1<lo.length?lo[Nn+1]:null))}function rt(Ke){for(var qo=Xr[Ke]<Ho?Xr[Ke]+1:Xr[Ke]-1,na=[],Ft=0;Ft<Cr.length;Ft++)Cr[Ft].a===Ke&&Xr[Cr[Ft].b]===qo?na.push(Cr[Ft].b):Cr[Ft].b===Ke&&Xr[Cr[Ft].a]===qo&&na.push(Cr[Ft].a);return na}function Ra(Ke){for(var qo=jo[Ke].slice(),na=0;na<qo.length;na++){for(var Ft=rt(qo[na]),fa=0,mn=0,En=0;En<Ft.length;En++)eo.hasOwnProperty(Ft[En])&&(fa+=eo[Ft[En]],mn++);qo[na]={id:qo[na],want:mn?fa/mn:0}}qo.sort(function(el,Cl){return el.want-Cl.want});for(var Zn=-1e9,nn=0;nn<qo.length;nn++){var Dn=qo[nn].id,rl=kr[Dn],Un=qo[nn].want-rl.w/2;Un<Zn&&(Un=Zn),Oo[Dn]={x:Un,y:Le[Ke]+(He[Ke]-rl.h)/2},eo[Dn]=Un+rl.w/2,Zn=Un+rl.w+gr}}for(var pt=0,tn=0;tn<Nt.length;tn++){var Ka=Math.abs(Nt[tn]-Ho);Ka>pt&&(pt=Ka)}for(var Va=1;Va<=pt;Va++)jo.hasOwnProperty(Ho-Va)&&Ra(Ho-Va),jo.hasOwnProperty(Ho+Va)&&Ra(Ho+Va);for(var Ja=1e9,an=-1e9,Ln=-1e9,Gn=0;Gn<Gr.length;Gn++){var cn=Oo[Gr[Gn]];if(cn){var Yt=kr[Gr[Gn]];cn.x<Ja&&(Ja=cn.x),cn.x+Yt.w>an&&(an=cn.x+Yt.w),cn.y+Yt.h>Ln&&(Ln=cn.y+Yt.h)}}for(var wn=0;wn<Gr.length;wn++)Oo[Gr[wn]]&&(Oo[Gr[wn]].x-=Ja);return{pos:Oo,w:an-Ja,h:Ln}}var _o=[];if(ve())for(var et=Mr(),io=0;io<e.length;io++){var po=et.pos[e[io].id];po&&$o(e[io].id,hs+po.x,Is+po.y,"1")}else{for(var So=0;So<f.length;So++)f[So].parent==null&&(no(f[So].id),_o.push(f[So].id));for(var Ao=0;Ao<e.length;Ao++)e[Ao].parent==null&&!kr[e[Ao].id]&&(no(e[Ao].id),_o.push(e[Ao].id));for(var Qo=qe(_o,null),Io=0;Io<_o.length;Io++){var fo=Qo.pos[_o[Io]];fo&&$o(_o[Io],hs+fo.x,Is+fo.y,"1")}}var mt={},bo={};function ea(gr){return gr.from<gr.to?gr.from+"|"+gr.to:gr.to+"|"+gr.from}for(var No=0;No<a.length;No++)if(!a[No].hidden){var oo=ea(a[No]);mt[oo]=(mt[oo]||0)+1}var Oe=h.length,Yo="";p=null;for(var _e=0;_e<a.length;_e++){var X=a[_e];if(!X.hidden){var $r=Br[X.from],to=Br[X.to];if(!(!$r||!to||$r===to)){var Hr=P(X.color)||"#181818",cr="strokeColor="+Hr+";fontColor=#000000;fontSize=12;html=1;"+(X.bold?"strokeWidth=2;":"")+(X.label?"labelBackgroundColor=#FFFFFF;":"");X.arrowHead==="none"?cr+="endArrow=none;":X.arrowHead==="bidirectional"?cr+="endArrow=classicThin;endFill=1;startArrow=classicThin;startFill=1;":X.arrowHead==="socket"?cr+="endArrow=halfCircle;endSize=7;endFill=0;":cr+="endArrow=classicThin;endFill=1;",X.lineStyle==="dotted"?cr+="dashed=1;dashPattern=1 3;":X.lineStyle==="dashed"&&(cr+="dashed=1;dashPattern=7 7;");var ro=Ie[X.from],Me=Ie[X.to];if(ro&&Me&&ro.y>Me.y+Me.h+60){for(var Lo=!1,sr=ro.x+ro.w/2,Go=ro.y+ro.h/2,rn=Me.x+Me.w/2,wt=Me.y+Me.h/2,zt={},ka=X.from;ka!=null;ka=Rr[ka])zt[ka]=!0;for(var Rt=X.to;Rt!=null;Rt=Rr[Rt])zt[Rt]=!0;for(var gt in Ie)if(!(!Ie.hasOwnProperty(gt)||zt[gt])){var dt=Ie[gt],Fa=dt.y+dt.h/2;if(!(Fa<=wt||Fa>=Go)){var oa=(Fa-Go)/(wt-Go),bt=sr+oa*(rn-sr);if(bt>=dt.x-4&&bt<=dt.x+dt.w+4){Lo=!0;break}}}if(Lo){var Wt=0;for(var ha in Ie)if(Ie.hasOwnProperty(ha)){var co=Ie[ha];co.x+co.w>Wt&&(Wt=co.x+co.w)}Wt+=28;var lt=cr+"exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;";h+=' <mxCell id="'+i(br("e"))+'" value="'+M(X.label||"",lt)+'" style="'+i(lt)+'" edge="1" source="'+i(Br[X.from])+'" target="'+i(Br[X.to])+`" parent="1">+ <mxGeometry relative="1" as="geometry">+ <Array as="points">+ <mxPoint x="`+Wt+'" y="'+Math.round(Go)+`"/>+ <mxPoint x="`+Wt+'" y="'+Math.round(wt)+`"/>+ </Array>+ </mxGeometry></mxCell>-`,Cr&&(m+=jr(i("noteln"),"","endArrow=none;dashed=1;html=1;strokeColor=#181818;",ue,Cr,"1"));break}case"partition":{if(!X.body||X.body.length===0)break;var Nl=X.name||X.label||"",Wa=14,Kl=J,oo=Kl+26+Wa,Ol="";Cr&&(Ol=z(i("e"),ht(),L+"strokeColor=#181818;",M,br,M,oo,"1"));var Qa=m;m="";var ca=Y(X.body,M,oo),Il=m,xl=Math.max(ca.maxX-M,Xa/2)+Wa+8,Dl=M-xl,Gn=ca.y-ma+Wa,Io=O(X.color)||"none";m=Qa+u(ue,"","rounded=0;fillColor="+Io+";strokeColor=#181818;strokeWidth=1.5;",Dl,Kl,xl*2,Gn-Kl,"1")+u(i("ptitle"),Nl,"text;html=1;fillColor=none;strokeColor=none;fontStyle=1;fontSize=13;fontColor=#181818;align=left;verticalAlign=middle;spacingLeft=4;",Dl+2,Kl+2,xl*2-8,20,"1")+Ol+Il,Dl+xl*2>$r&&($r=Dl+xl*2),Cr=ca.lastId,br=ca.prevY||ca.y,J=Gn+ma+10;break}case"detach":{var So=i("detach");m+=u(So,"","shape=cross;fillColor=none;strokeColor=#181818;strokeWidth=2;size=0.4;",M-15,J,30,30,"1"),Cr&&(m+=z(i("e"),ht(),L+"strokeColor=#181818;",M,br,M,J,"1")),Cr=null,br=J+30,J+=30+ma;break}case"swimlane":break;case"arrowLabel":{vt=X.label||"",J+=16;break}default:break}}return{y:J,maxX:$r,lastId:Cr,prevY:br}}var Lr=r.swimlanes||[];if(Lr.length>0){let Jr=function(me){var ge=Rr[me]!=null?Rr[me]:0;return Tn+ge*(Te+Qr)+Te/2};for(var mr=r.nodes||[],Rr={},fe=0;fe<Lr.length;fe++)Rr[Lr[fe].name]=fe;for(var ie=30,Ir=40,ir=0;ir<mr.length;ir++)if(mr[ir].type==="action"){var Le=f(mr[ir].label||"");Le>Ir&&(Ir=Le)}for(var Te=Math.max(90,Ir+56),Qr=0,Br=Lr[0].name,q=Tn+ie,ur=null,Sr=null,Fr=null,Ee=0;Ee<mr.length;Ee++){var ot=mr[Ee];if(ot.type==="swimlane"){Br=ot.name;continue}var I=Jr(Br);if(ur!=null)if(Fr===Br)m+=z(i("e"),"",L+"strokeColor=#181818;",Sr,q-ma,I,q,"1");else{var Tr=q-ma+5;m+=z(i("e"),"","endArrow=none;strokeColor=#181818;",Sr,q-ma,Sr,Tr,"1"),m+=z(i("e"),"","endArrow=none;strokeColor=#181818;",Sr,Tr,I,Tr,"1"),m+=z(i("e"),"",L+"strokeColor=#181818;",I,Tr,I,q,"1")}var de=Y([ot],I,q);ur="tracker",Sr=I,Fr=Br,q=de.y}for(var Wr=m,zt="",Ue=q,Ne=Ue-ma-Tn+6,Ze=Tn,Ut=0;Ut<Lr.length;Ut++){var Zt=Lr[Ut],Be=O(Zt.color)||"none",he=i("lane");zt+=u(he,Zt.name,"swimlane;collapsible=0;startSize="+ie+";fillColor="+Be+";swimlaneFillColor="+Be+";strokeColor=#181818;strokeWidth=1.5;fontColor=#000000;fontSize=18;fontStyle=0;html=1;",Ze,Tn,Te,Ne,"1"),Ze+=Te+Qr}return zt+Wr}return Y(r.nodes,K,W),m}var zl=160,Jl=49,eo=35,Fo=24,Vl=60,Uo=24,Tl=16,to=6,fo=20,Ul=26,Gl=20,vo=16,Zn=10,Kn=15,Hl=33;function xa(r,s){for(var a=String(r??""),i=0,f=0,y=0;y<a.length;y++){var T=a.charAt(y);T===`-`?(i>f&&(f=i),i=0):`iIljtf.,:;!|'"()[]{} `.indexOf(T)>=0?i+=4.2:"mwMW".indexOf(T)>=0?i+=11.7:i+=7.8}return i>f&&(f=i),f*(s?1.05:1)}function et(r){return typeof r=="string"&&/^\s*<[$&][A-Za-z0-9_-]+>\s*$/.test(r)}function kl(r){return typeof r=="string"&&/<size:\d|<[$&][A-Za-z0-9_-]+>/i.test(r)}function uo(r){var s=String(r??"");s=s.replace(/\\r\\n|\\n|\\r/g,`-`).replace(/\\t/g," "),s=s.replace(/<U\+([0-9A-Fa-f]{2,6})>/g,function(Lr,mr){try{return String.fromCodePoint(parseInt(mr,16))}catch{return""}}),s=s.replace(/<[&$][A-Za-z0-9_-]+>/g,function(Lr){return g(Lr)}),s=s.replace(/\*\*([\s\S]+?)\*\*/g,"$1").replace(/\/\/([\s\S]+?)\/\//g,"$1").replace(/__([\s\S]+?)__/g,"$1").replace(/~~([\s\S]+?)~~/g,"$1").replace(/""([\s\S]+?)""/g,"$1");for(var a=s.split(`-`),i=0,f=0,y=[],T=0;T<a.length;T++){var L=a[T],m=14,K=L.match(/<size:(\d+(?:\.\d+)?)>/i);K&&(m=parseFloat(K[1]));var W=L.replace(/<[^>]+>/g,"");W===""&&(W=" "),!K&&W.replace(/\s+/g,"").length===1&&W.charCodeAt(0)>8192&&(m=28);var Y=xa(W,!1)*(m/14);Y>i&&(i=Y),f+=m>20&&W.replace(/\s+/g,"").length<=1?m*.95:m*1.33,m!==14?y.push('<font style="font-size:'+m+'px">'+W+"</font>"):y.push(W)}return{w:Math.ceil(i),h:Math.ceil(f),html:y.join("<br>")}}function jo(r){var s=O(r.color)||"#F1F1F1",a=et(r.name);switch(r.kind){case"actor":case"person":return"shape=umlActor;verticalLabelPosition=bottom;verticalAlign=top;html=1;fillColor="+s+";strokeColor=#181818;";case"interface":return"ellipse;fillColor="+s+";strokeColor=#181818;fontSize=12;";case"port":case"portin":case"portout":return"shape=mxgraph.sysml.port1;fillColor="+s+";strokeColor=#181818;fontSize=10;";case"database":return"shape=cylinder;fillColor="+s+";strokeColor=#181818;fontSize=14;whiteSpace=wrap;";case"queue":return"shape=queue;fillColor="+s+";strokeColor=#181818;fontSize=14;whiteSpace=wrap;";case"cloud":return"shape=cloud;fillColor="+s+";strokeColor=#181818;whiteSpace=wrap;";case"node":return"shape=cube;size=10;fillColor="+s+";strokeColor=#181818;whiteSpace=wrap;";case"folder":return"shape=folder;tabWidth=40;tabHeight=14;tabPosition=left;fillColor="+s+";strokeColor=#181818;whiteSpace=wrap;";case"frame":return"shape=mxgraph.uml25.frame;fillColor="+s+";strokeColor=#181818;whiteSpace=wrap;";case"artifact":case"file":return"shape=note;size=14;fillColor="+s+";strokeColor=#181818;whiteSpace=wrap;";case"card":return"shape=card;fillColor="+s+";strokeColor=#181818;whiteSpace=wrap;";case"storage":return"rounded=1;arcSize=50;fillColor="+s+";strokeColor=#181818;whiteSpace=wrap;";case"usecase":return"ellipse;fillColor="+s+";strokeColor=#181818;whiteSpace=wrap;";case"hexagon":return"shape=hexagon;fillColor="+s+";strokeColor=#181818;whiteSpace=wrap;";case"circle":case"control":case"entity":return"ellipse;fillColor="+s+";strokeColor=#181818;whiteSpace=wrap;";case"label":return"text;html=1;fillColor=none;strokeColor=none;whiteSpace=wrap;";case"rectangle":var i="rounded=1;absoluteArcSize=1;arcSize=3;strokeWidth=1;fillColor="+s+";strokeColor=#181818;whiteSpace=wrap;";return a&&(i+="fontSize=48;fontColor=#000000;align=center;verticalAlign=middle;"),i;case"agent":case"collections":case"stack":case"boundary":return"rounded=0;fillColor="+s+";strokeColor=#181818;whiteSpace=wrap;";case"component":default:return"rounded=1;absoluteArcSize=1;arcSize=6;fillColor="+s+";strokeColor=#181818;fontSize=14;whiteSpace=wrap;"}}function $o(r){var s=O(r.color)||"none";switch(r.kind){case"package":return"rounded=0;fillColor="+s+";strokeColor=#000000;strokeWidth=1.5;";case"node":return"shape=cube;size="+Zn+";fillColor="+s+";strokeColor=#181818;verticalAlign=top;align=center;spacingTop=16;fontSize=14;fontStyle=1;whiteSpace=wrap;";case"database":return"shape=cylinder;size=18;fillColor="+s+";strokeColor=#181818;verticalAlign=top;align=center;spacingTop=22;fontSize=14;fontStyle=1;whiteSpace=wrap;";case"cloud":return"shape=cloud;fillColor="+s+";strokeColor=#181818;verticalAlign=top;align=center;spacingTop=18;fontSize=14;fontStyle=1;whiteSpace=wrap;";case"folder":return"rounded=0;fillColor="+s+";strokeColor=#181818;";case"frame":return"rounded=0;fillColor="+s+";strokeColor=#181818;";case"artifact":return"swimlane;collapsible=0;startSize="+Ul+";fillColor="+s+";strokeColor=#181818;fontStyle=1;";case"card":return"swimlane;collapsible=0;startSize="+Ul+";shape=card;fillColor="+s+";strokeColor=#181818;fontStyle=1;";case"storage":return"swimlane;collapsible=0;startSize="+Ul+";fillColor="+s+";strokeColor=#181818;fontStyle=1;";case"rectangle":return"swimlane;collapsible=0;startSize="+Ul+";fillColor="+s+";strokeColor=#181818;fontStyle=1;";case"component":return"rounded=1;absoluteArcSize=1;arcSize=12;fillColor="+s+";strokeColor=#181818;verticalAlign=top;align=center;spacingTop=10;fontSize=14;whiteSpace=wrap;";default:return"swimlane;collapsible=0;startSize="+Ul+";fillColor="+s+";strokeColor=#181818;fontStyle=1;"}}var ho=18,Wo=4,zn={interface:!0,circle:!0,control:!0,entity:!0,boundary:!0,actor:!0};function Zo(r){switch(r.kind){case"interface":return{w:18,h:18};case"circle":return{w:34,h:34};case"control":return{w:34,h:34};case"entity":return{w:34,h:40};case"boundary":return{w:56,h:34};case"actor":return{w:40,h:54};default:return null}}function yo(r){if(!r)return{w:zl,h:Jl};if(r.kind==="port"||r.kind==="portin"||r.kind==="portout")return{w:vo,h:vo};if(r.kind==="note"){for(var s=g(r.name),a=s.split(`-`),i=0,f=0;f<a.length;f++)a[f].length>i&&(i=a[f].length);return{w:Math.max(50,Math.ceil(i*6)+21),h:Math.max(24,Math.round(a.length*17.7+10))}}var y=g(r.name),T=y.split(`-`).length,L=T>1?T*16+14:0,m=Zo(r);if(m&&zn[r.kind]){var K=Math.round(xa(y,!1))+6;return{w:Math.max(m.w,K),h:m.h+Wo+ho}}if(et(r.name))return{w:68,h:68};if(kl(r.name)){var W=uo(r.name);switch(r.kind){case"usecase":var Y=Math.round(W.w*1.35)+30,Lr=W.h+26;return Y<Lr*1.3&&(Y=Math.round(Lr*1.3)),{w:Y,h:Lr};case"cloud":return{w:W.w+84,h:W.h+72};case"database":return{w:W.w+44,h:W.h+58};case"queue":return{w:W.w+56,h:W.h+20};case"stack":return{w:W.w+30,h:W.h+18};default:return{w:W.w+20,h:W.h+8}}}var mr=Math.round(xa(y,!1)),Rr=Math.max(60,mr+40),fe=Jl;return r.kind==="artifact"||r.kind==="file"?(Rr=Math.max(50,mr+30),fe=42):r.kind==="person"?(Rr=Math.max(70,mr+24),fe=66):r.kind==="label"?(Rr=Math.max(20,mr+8),fe=20):r.kind==="collections"?(Rr=Math.max(70,mr+40)+8,fe=Jl+8):r.kind==="stack"?(Rr=Math.max(60,mr+36),fe=Jl):r.kind==="queue"?(Rr=Math.max(70,mr+48),fe=Jl):(r.kind==="folder"||r.kind==="package"||r.kind==="frame")&&(Rr=Math.max(70,mr+40),fe=Jl+8),L>fe&&(fe=L),{w:Rr,h:fe}}function Qo(r,s){for(var a=r.nodes,i=r.containers,f=r.connections,y="",T=0,L=0;L<a.length;L++)a[L].stereotype&&!a[L]._stereoFolded&&(a[L].name="\xAB"+a[L].stereotype+`\xBB-`+(a[L].name||""),a[L]._stereoFolded=!0);for(var m=0;m<i.length;m++)i[m].stereotype&&!i[m]._stereoFolded&&(i[m].name="\xAB"+i[m].stereotype+`\xBB-`+(i[m].name||""),i[m]._stereoFolded=!0);function K(tr){return tr+"_"+T++}for(var W={},Y={},Lr={},mr={},Rr={},fe={},ie=0;ie<i.length;ie++){var Ir=i[ie];Lr[Ir.id]=Ir,Rr[Ir.id]=Ir.parent==null?null:Ir.parent,fe[Ir.id]=!0}for(var ir=0;ir<a.length;ir++){var Le=a[ir];mr[Le.id]=Le,Rr[Le.id]=Le.parent==null?null:Le.parent}function Te(tr,pr){for(var rr=tr,er=0;rr!=null&&er++<4096;){var Ar=Rr.hasOwnProperty(rr)?Rr[rr]:null;if(pr==null){if(Ar==null)return rr}else if(Ar===pr)return rr;if(Ar==null)return null;rr=Ar}return null}function Qr(tr,pr){return tr&&pr?Fo:eo}function Br(tr,pr){return tr&&pr?Uo:Vl}var q={},ur={};function Sr(tr){for(var pr=tr.length,rr={},er=Math.max(1,Math.ceil(Math.sqrt(pr))),Ar=Math.ceil(pr/er),se=0,kr=0,xe=0;xe<pr;xe++){var Kr=q[tr[xe]];Kr.w>se&&(se=Kr.w),Kr.h>kr&&(kr=Kr.h)}for(var oe=0;oe<pr;oe++){var Kt=Math.floor(oe/er),ga=oe%er,Fe=q[tr[oe]],Da=ga*(se+eo),It=Kt*(kr+Vl);rr[tr[oe]]={x:Da+(se-Fe.w)/2,y:It+(kr-Fe.h)/2}}return{pos:rr,w:er*se+(er-1)*eo,h:Ar*kr+(Ar-1)*Vl}}function Fr(tr,pr){var rr=tr.length,er={};if(rr===0)return{pos:er,w:0,h:0};for(var Ar={},se=0;se<rr;se++)Ar[tr[se]]=!0;for(var kr={},xe={},Kr=[],oe=!1,Kt=!1,ga=!1,Fe=0;Fe<rr;Fe++)kr[tr[Fe]]=[],xe[tr[Fe]]=0;function Da(_n,mn){for(var tl=[_n],Vn={};tl.length>0;){var sl=tl.pop();if(sl===mn)return!0;if(!Vn[sl]){Vn[sl]=!0;for(var jn=kr[sl]||[],un=0;un<jn.length;un++)tl.push(jn[un].to)}}return!1}for(var It=0;It<f.length;It++){var dt=Te(f[It].from,pr),Me=Te(f[It].to,pr);if(!(dt==null||Me==null||dt===Me)&&!(!Ar[dt]||!Ar[Me])){Kr.push({a:dt,b:Me,src:f[It].from,dst:f[It].to}),oe=!0;var At=f[It].span!=null?f[It].span:1;(f[It].dir==="l"||f[It].dir==="r")&&(At=0),At===0?Kt=!0:ga=!0;var sa=At,Gt=dt!==f[It].from||Me!==f[It].to,Yt=f[It].dir==="l"||f[It].dir==="r";Gt&&sa===0&&!Yt&&(sa=1);var St=dt,st=Me;f[It].dir==="u"&&(St=Me,st=dt),!Da(st,St)&&(kr[St].push({to:st,span:sa}),xe[st]++)}}function Ye(_n,mn){for(var tl=0,Vn=0;Vn<f.length;Vn++){var sl=f[Vn];if(!(sl.hidden||!sl.label)){var jn=Te(sl.from,pr),un=Te(sl.to,pr);if(jn===_n&&un===mn||jn===mn&&un===_n){var bl=Math.round(xa(sl.label,!1))+16;bl>tl&&(tl=bl)}}}return tl}if(!oe)return Sr(tr);for(var $e={},bt=[],aa=0;aa<rr;aa++)$e[tr[aa]]=0,bt.push(tr[aa]);for(var ka=rr*rr+16;bt.length>0&&ka-- >0;)for(var Fa=bt.shift(),Oe=kr[Fa],na=0;na<Oe.length;na++){var ja=Oe[na].to,an=$e[Fa]+Oe[na].span;($e[ja]===void 0||$e[ja]<an)&&($e[ja]=an,bt.push(ja))}for(var Xt={},gn=[],Xe=0;Xe<rr;Xe++){var sr=$e[tr[Xe]];Xt.hasOwnProperty(sr)||(Xt[sr]=[],gn.push(sr)),Xt[sr].push(tr[Xe])}gn.sort(function(_n,mn){return _n-mn});for(var cr=[],te=0,Ie=0;Ie<gn.length;Ie++){for(var rt=Xt[gn[Ie]],ce=0,lt=0,Ot=!0,la=0;la<rt.length;la++){var Ua=q[rt[la]];la>0&&(ce+=Math.max(Qr(q[rt[la-1]].isContainer,Ua.isContainer),Ye(rt[la-1],rt[la]))),ce+=Ua.w,Ua.h>lt&&(lt=Ua.h),Ua.isContainer||(Ot=!1)}cr.push({ids:rt,w:ce,h:lt,allCont:Ot}),ce>te&&(te=ce)}for(var oa=pr==null&&cr.length>=2&&Kt&&!ga,Pt=0;oa&&Pt<cr.length;Pt++)(cr[Pt].ids.length!==1||!q[cr[Pt].ids[0]].isContainer)&&(oa=!1);if(oa){for(var yt=0,fa=0,ft=0,pa=0,cn=0;cn<cr.length;cn++){var $a=cr[cn].ids[0],nn=q[$a];er[$a]={x:yt,y:fa},yt+nn.w>ft&&(ft=yt+nn.w),fa+nn.h>pa&&(pa=fa+nn.h),yt+=nn.w+Fo,fa+=Math.round(nn.h*.6)}return{pos:er,w:ft,h:pa}}function An(_n,mn){for(var tl=0,Vn=_n,sl=0;Vn!==mn&&sl++<4096;){var jn=Rr.hasOwnProperty(Vn)?Rr[Vn]:null;if(jn==null)break;var un=q[jn]?q[jn].children:null;if(un){for(var bl=0;bl<un.length;bl++)if(un[bl].id===Vn){tl+=un[bl].x;break}}Vn=jn}return tl}if(r.direction==="LR"){for(var tn=[],qa=0,ra=0;ra<cr.length;ra++){for(var Ja=0,pn=0;pn<cr[ra].ids.length;pn++)pn>0&&(Ja+=Vl),Ja+=q[cr[ra].ids[pn]].h;tn.push(Ja),Ja>qa&&(qa=Ja)}for(var Fn=0,En=0,Ma=0;Ma<cr.length;Ma++){for(var Dn=0,ln=0;ln<cr[Ma].ids.length;ln++)q[cr[Ma].ids[ln]].w>Dn&&(Dn=q[cr[Ma].ids[ln]].w);for(var el=(qa-tn[Ma])/2,on=0;on<cr[Ma].ids.length;on++){var Cn=q[cr[Ma].ids[on]];er[cr[Ma].ids[on]]={x:Fn+(Dn-Cn.w)/2,y:el},el+=Cn.h+Vl}Fn+=Dn+Qr(!1,!1),En=Fn-Qr(!1,!1)}return{pos:er,w:En,h:qa}}for(var $n={},pl=0,sn=0;sn<cr.length;sn++){var ia=cr[sn];if(sn>0){for(var fn=[],vn=0;vn<ia.ids.length;vn++){for(var Mn=ia.ids[vn],ll=0,ol=0,il=0;il<Kr.length;il++){var In=Kr[il];In.b===Mn&&$n.hasOwnProperty(In.a)&&(ll+=$n[In.a]-q[In.a].w/2+An(In.src,In.a),ol++)}fn.push({id:Mn,order:vn,key:ol?ll/ol:1/0})}fn.sort(function(_n,mn){return _n.key-mn.key||_n.order-mn.order});for(var Yn=[],wn=0;wn<fn.length;wn++)Yn.push(fn[wn].id);ia.ids=Yn}for(var cl=(te-ia.w)/2,yl=0;yl<ia.ids.length;yl++){var je=ia.ids[yl],Cl=q[je];yl>0&&(cl+=Math.max(Qr(q[ia.ids[yl-1]].isContainer,Cl.isContainer),Ye(ia.ids[yl-1],je))),er[je]={x:cl,y:pl+(ia.h-Cl.h)/2},$n[je]=cl+Cl.w/2,cl+=Cl.w}sn+1<cr.length?pl+=ia.h+Br(ia.allCont,cr[sn+1].allCont):pl+=ia.h}for(var El={},Xn=0;Xn<cr.length;Xn++)for(var lo=0;lo<cr[Xn].ids.length;lo++)El[cr[Xn].ids[lo]]=Xn;function $l(_n,mn){return Math.max(Qr(q[_n[mn-1]].isContainer,q[_n[mn]].isContainer),Ye(_n[mn-1],_n[mn]))}function Bn(_n,mn,tl){for(var Vn=!1,sl=0;sl<tl.length;sl++)if(tl[sl]>0){Vn=!0;break}if(Vn){for(var jn=[],un=0;un<_n.length;un++){var bl=q[_n[un]],$s=un>0?$l(_n,un):0;for(jn.push({first:un,last:un,w:bl.w,gapBefore:$s,wSum:tl[un],prefSum:tl[un]>0?tl[un]*(mn[un]-bl.w/2):0,x:tl[un]>0?mn[un]-bl.w/2:er[_n[un]].x});jn.length>1;){var io=jn[jn.length-1],Al=jn[jn.length-2];if(Al.x+Al.w+io.gapBefore<=io.x)break;var $i=Al.w+io.gapBefore;Al.prefSum+=io.prefSum-io.wSum*$i,Al.wSum+=io.wSum,Al.w=$i+io.w,Al.last=io.last,Al.wSum>0&&(Al.x=Al.prefSum/Al.wSum),jn.pop()}}for(var ei=null,Go=0;Go<jn.length;Go++){var po=jn[Go],Rl=po.x;ei!=null&&Rl<ei+po.gapBefore&&(Rl=ei+po.gapBefore);for(var rl=0,co=po.first;co<=po.last;co++){var gi=q[_n[co]];co>po.first&&(rl+=$l(_n,co)),er[_n[co]].x=Rl+rl,$n[_n[co]]=Rl+rl+gi.w/2,rl+=gi.w}ei=Rl+po.w}}}for(var Nl=1;Nl<cr.length;Nl++){for(var Wa=cr[Nl].ids,Kl=[],oo=[],Ol=0;Ol<Wa.length;Ol++){for(var Qa=0,ca=0,Il=0;Il<Kr.length;Il++){var xl=Kr[Il],Dl=xl.a===Wa[Ol]?xl.b:xl.b===Wa[Ol]?xl.a:null;Dl!=null&&El[Dl]<Nl&&(Qa+=$n[Dl],ca++)}Kl.push(ca?Qa/ca:er[Wa[Ol]].x+q[Wa[Ol]].w/2),oo.push(ca)}Bn(Wa,Kl,oo)}if(cr.length>1){for(var Gn=cr[0].ids,Io=[],So=[],Pl=0;Pl<Gn.length;Pl++){for(var wl=0,Hn=0,Zl=!0,Po=0;Po<Kr.length;Po++){var ko=Kr[Po],ba=ko.a===Gn[Pl]?ko.b:ko.b===Gn[Pl]?ko.a:null;if(!(ba==null||El[ba]===0)){for(var dn=0;dn<Kr.length&&Zl;dn++){var bn=Kr[dn],On=bn.a===ba?bn.b:bn.b===ba?bn.a:null;On!=null&&On!==Gn[Pl]&&El[On]<El[ba]&&(Zl=!1)}Zl&&(wl+=$n[ba],Hn++)}}Io.push(Zl&&Hn?wl/Hn:er[Gn[Pl]].x+q[Gn[Pl]].w/2),So.push(Zl&&Hn?1:0)}Bn(Gn,Io,So)}var Jn=1/0,Rn=-1/0;for(var Bl in er)er.hasOwnProperty(Bl)&&(er[Bl].x<Jn&&(Jn=er[Bl].x),er[Bl].x+q[Bl].w>Rn&&(Rn=er[Bl].x+q[Bl].w));if(Jn!==1/0&&Jn!==0)for(var Yl in er)er.hasOwnProperty(Yl)&&(er[Yl].x-=Jn);return{pos:er,w:Jn===1/0?te:Rn-Jn,h:pl}}function Ee(tr){return tr&&tr.name?String(tr.name).split(`-`).length:1}function ot(tr,pr,rr,er){var Ar=tr.kind,se=15*(Ee(tr)-1);if(Ar==="node"){var kr=Math.max(pr+2*Kn,er+2*Hl,80);return{w:kr+Zn,h:43+se+rr+16,childX:(kr-pr)/2,childY:43+se}}if(Ar==="database"){var xe=Math.max(pr,er)+33;return{w:xe,h:53+se+rr+16,childX:(xe-pr)/2,childY:53+se}}if(Ar==="cloud"){var Kr=Math.max(pr,er)+55;return{w:Kr,h:44+se+rr+45,childX:(Kr-pr)/2,childY:44+se}}var oe=Math.max(pr+2*Kn,er+2*Kn,80);return{w:oe,h:Ul+8+se+rr+12,childX:(oe-pr)/2,childY:Ul+8+se}}function I(tr){if(q[tr])return q[tr];if(fe[tr]){var pr=Lr[tr];if(ur[tr]){var rr=ot(pr,0,0,xa(pr.name,!0));return q[tr]={w:rr.w,h:rr.h,isContainer:!0,kind:pr.kind,children:[]},q[tr]}ur[tr]=!0;for(var er=(pr.children||[]).slice(),Ar=[],se=0;se<er.length;se++)ur[er[se]]&&!q[er[se]]||(I(er[se]),Ar.push(er[se]));for(var kr=[],xe=[],Kr=0;Kr<Ar.length;Kr++){var oe=q[Ar[Kr]],Kt=oe?oe.kind:null;Kt==="port"||Kt==="portin"||Kt==="portout"?kr.push(Ar[Kr]):xe.push(Ar[Kr])}if(kr.length>0){for(var ga=Fr(xe,pr.id),Fe=xa(pr.name,!0),Da=46,It=24,dt=Math.max(ga.w,Fe,150),Me=dt+2*Kn,At=Da+ga.h+It,sa=[],Gt=(Me-ga.w)/2,Yt=0;Yt<xe.length;Yt++){var St=ga.pos[xe[Yt]];St&&sa.push({id:xe[Yt],x:Gt+St.x,y:Da+St.y})}for(var st=0;st<kr.length;st++){var Ye=q[kr[st]],$e=(st+1)/(kr.length+1);sa.push({id:kr[st],x:Math.round(Me*$e-Ye.w/2),y:-Math.round(Ye.h/2)})}return q[tr]={w:Me,h:At,isContainer:!0,kind:pr.kind,children:sa},q[tr]}for(var bt=Fr(Ar,pr.id),aa=ot(pr,bt.w,bt.h,xa(pr.name,!0)),ka=[],Fa=0;Fa<Ar.length;Fa++){var Oe=bt.pos[Ar[Fa]];Oe&&ka.push({id:Ar[Fa],x:aa.childX+Oe.x,y:aa.childY+Oe.y})}return q[tr]={w:aa.w,h:aa.h,isContainer:!0,kind:pr.kind,children:ka},q[tr]}var na=mr[tr],ja=yo(na);return q[tr]={w:ja.w,h:ja.h,isContainer:!1,kind:na?na.kind:null,children:[]},q[tr]}function Tr(tr,pr,rr,er,Ar,se,kr){var xe=O(tr.color)||"#F1F1F1",Kr="#181818",oe=tr.kind;function Kt(lt,Ot,la,Ua){y+=u(K("ci"),"","rounded=0;fillColor="+Kr+";strokeColor="+Kr+";",lt,Ot,la,Ua,kr)}function ga(lt,Ot,la){y+=u(K("cap"),tr.name,"text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;fontSize=14;whiteSpace=wrap;",lt,Ot,la,ho+4,kr)}if(oe==="note"){var Fe=K("note");y+=u(Fe,tr.name,"shape=note;size=14;fillColor="+(O(tr.color)||"#FEFFDD")+";strokeColor=#181818;fontSize=12;whiteSpace=wrap;align=left;",rr,er,Ar,se,kr),W[pr]=Fe;return}if(oe==="port"||oe==="portin"||oe==="portout"){var Da=K("n");y+=u(Da,"","rounded=0;fillColor="+xe+";strokeColor="+Kr+";",rr,er,Ar,se,kr),W[pr]=Da,y+=u(K("cap"),tr.name,"text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=bottom;fontSize=14;",rr-12,er-20,Ar+24,18,kr);return}if(kl(tr.name)&&!et(tr.name)){var It=uo(tr.name),dt=r&&r.textAlign||"left",Me=K("n");oe==="usecase"?y+=u(Me,"","ellipse;fillColor="+xe+";strokeColor="+Kr+";",rr,er,Ar,se,kr):oe==="cloud"?y+=u(Me,"","shape=cloud;fillColor="+xe+";strokeColor="+Kr+";",rr,er,Ar,se,kr):oe==="database"?y+=u(Me,"","shape=cylinder;fillColor="+xe+";strokeColor="+Kr+";",rr,er,Ar,se,kr):oe==="queue"?y+=u(Me,"","shape=cylinder3;direction=east;size=12;fillColor="+xe+";strokeColor="+Kr+";",rr,er,Ar,se,kr):oe==="stack"?(y+=u(Me,"","rounded=0;fillColor="+xe+";strokeColor="+Kr+";",rr,er,Ar,se,kr),y+=z(K("st"),"","endArrow=none;strokeColor="+Kr+";",rr+Math.round(Ar*.22),er,rr+Math.round(Ar*.22),er+5,"1"),y+=z(K("st"),"","endArrow=none;strokeColor="+Kr+";",rr+Math.round(Ar*.78),er,rr+Math.round(Ar*.78),er+5,"1")):oe==="hexagon"?y+=u(Me,"","shape=hexagon;fillColor="+xe+";strokeColor="+Kr+";",rr,er,Ar,se,kr):oe==="storage"?y+=u(Me,"","rounded=1;arcSize=40;fillColor="+xe+";strokeColor="+Kr+";",rr,er,Ar,se,kr):y+=u(Me,"","rounded=1;absoluteArcSize=1;arcSize=5;fillColor="+xe+";strokeColor="+Kr+";",rr,er,Ar,se,kr),W[pr]=Me,y+=Hr(K("lbl"),It.html,"text;html=1;fontSize=14;strokeColor=none;fillColor=none;align="+dt+";verticalAlign=middle;",rr+6,er,Ar-12,se,kr);return}if(zn[oe]){var At=Zo(tr),sa=At.w,Gt=At.h,Yt=rr+(Ar-sa)/2,St=K("n");if(oe==="actor")y+=u(St,"","shape=umlActor;html=1;fillColor="+xe+";strokeColor="+Kr+";",Yt,er,sa,Gt,kr);else if(oe==="boundary"){var st=Gt,Ye=Yt+sa-st,$e=er+st/2;Kt(Yt,er+st*.2,2,st*.6),Kt(Yt,$e-1,Ye-Yt,2),y+=u(St,"","ellipse;fillColor="+xe+";strokeColor="+Kr+";",Ye,er,st,st,kr)}else{var bt=Math.min(sa,Gt-(oe==="entity"?6:0)),aa=rr+(Ar-bt)/2;y+=u(St,"","ellipse;fillColor="+xe+";strokeColor="+Kr+";",aa,er,bt,bt,kr),oe==="entity"?Kt(aa,er+bt+3,bt,2):oe==="control"&&(Kt(aa+bt*.34,er-1,8,2),Kt(aa+bt*.34,er-1,2,7))}W[pr]=St,ga(rr,er+Gt+Wo-4,Ar);return}if(oe==="person"){var ka=22;y+=u(K("ci"),"","ellipse;fillColor="+xe+";strokeColor="+Kr+";",rr+(Ar-ka)/2,er,ka,ka,kr);var Fa=er+Math.round(ka*.7),Oe=K("n");y+=u(Oe,tr.name,"rounded=1;arcSize=40;fillColor="+xe+";strokeColor="+Kr+";fontSize=14;verticalAlign=middle;whiteSpace=wrap;",rr,Fa,Ar,er+se-Fa,kr),W[pr]=Oe;return}if(oe==="collections"){var na=6;y+=u(K("ci"),"","rounded=0;fillColor="+xe+";strokeColor="+Kr+";",rr+na,er,Ar-na,se-na,kr);var ja=K("n");y+=u(ja,tr.name,"rounded=0;fillColor="+xe+";strokeColor="+Kr+";fontSize=14;whiteSpace=wrap;",rr,er+na,Ar-na,se-na,kr),W[pr]=ja;return}if(oe==="queue"){var an=K("n");y+=u(an,tr.name,"shape=cylinder3;direction=east;size=12;fillColor="+xe+";strokeColor="+Kr+";fontSize=14;whiteSpace=wrap;",rr,er,Ar,se,kr),W[pr]=an;return}if(oe==="stack"){var Xt=K("n");y+=u(Xt,tr.name,"rounded=0;fillColor="+xe+";strokeColor="+Kr+";fontSize=14;whiteSpace=wrap;align=center;verticalAlign=middle;",rr,er,Ar,se,kr),y+=z(K("st"),"","endArrow=none;strokeColor="+Kr+";",rr+Math.round(Ar*.22),er,rr+Math.round(Ar*.22),er+5,"1"),y+=z(K("st"),"","endArrow=none;strokeColor="+Kr+";",rr+Math.round(Ar*.78),er,rr+Math.round(Ar*.78),er+5,"1"),W[pr]=Xt;return}if(oe==="folder"||oe==="package"){var gn=oe==="package"?Math.round(Ar*.5):Math.min(Math.round(Ar*.45),55),Xe=12;y+=u(K("ci"),"","rounded=0;fillColor="+xe+";strokeColor="+Kr+";",rr,er,gn,Xe,kr);var sr=K("n");y+=u(sr,tr.name,"rounded=0;fillColor="+xe+";strokeColor="+Kr+";fontSize=14;whiteSpace=wrap;",rr,er+Xe-1,Ar,se-Xe+1,kr),W[pr]=sr;return}if(oe==="frame"){var cr=K("n");y+=u(cr,"","rounded=0;fillColor="+xe+";strokeColor="+Kr+";",rr,er,Ar,se,kr),W[pr]=cr;var te=Math.min(Math.round(Ar*.55),Math.round(xa(tr.name,!1))+16);y+=u(K("ci"),tr.name,"rounded=0;fillColor="+xe+";strokeColor="+Kr+";fontSize=12;",rr,er,te,20,kr);return}var Ie=K("n");y+=u(Ie,tr.name,jo(tr),rr,er,Ar,se,kr),W[pr]=Ie;var rt=oe==="component"||oe==="bracket"||oe==="bare"||!oe&&tr.name;if(rt){var ce="fillColor="+xe+";strokeColor="+Kr+";";y+=u(K("ci"),"","rounded=0;"+ce,rr+Ar-20,er+5,15,10,kr),y+=u(K("ci"),"",ce,rr+Ar-22,er+7,4,2,kr),y+=u(K("ci"),"",ce,rr+Ar-22,er+11,4,2,kr)}}function de(tr,pr,rr,er,Ar,se){var kr=q[tr];if(kr){if(Ar===void 0&&(Ar=pr,se=rr),Y[tr]={x:Ar,y:se,w:kr.w,h:kr.h},kr.isContainer){var xe=Lr[tr],Kr=K("c"),oe=xe.kind==="package"||xe.kind==="folder"||xe.kind==="frame";if(y+=u(Kr,oe?"":xe.name,$o(xe),pr,rr,kr.w,kr.h,er),W[tr]=Kr,oe){var Kt=xe.kind==="package"?"#000000":"#181818",ga=O(xe.color)||"#FFFFFF",Fe=xe.name||"",Da=Math.min(kr.w-6,Math.round(xa(Fe,!1))+20);Da<24&&(Da=24);var It=20+15*(Ee(xe)-1);y+=u(K("ct"),Fe,"rounded=0;fillColor="+ga+";strokeColor="+Kt+(xe.kind==="package"?";strokeWidth=1.5":"")+";fontStyle=0;fontSize=14;align=left;spacingLeft=6;verticalAlign=middle;",pr,rr,Da,It,er)}xe.kind==="component"&&(y+=u(K("ci"),"","rounded=0;fillColor=none;strokeColor=#181818;",pr+kr.w-20,rr+5,15,10,er),y+=u(K("ci"),"","fillColor=none;strokeColor=#181818;",pr+kr.w-22,rr+7,4,2,er),y+=u(K("ci"),"","fillColor=none;strokeColor=#181818;",pr+kr.w-22,rr+11,4,2,er));for(var dt=0;dt<kr.children.length;dt++){var Me=kr.children[dt];de(Me.id,Me.x,Me.y,Kr,Ar+Me.x,se+Me.y)}return}Tr(mr[tr],tr,pr,rr,kr.w,kr.h,er)}}function Wr(){if(i.length>0)return!1;for(var tr=0;tr<f.length;tr++)if(f[tr].dir)return!0;return!1}function zt(){for(var tr=26,pr=42,rr=[],er=0;er<a.length;er++)I(a[er].id),rr.push(a[er].id);if(rr.length===0)return{pos:{},w:0,h:0};for(var Ar={},se=0;se<rr.length;se++)Ar[rr[se]]=!0;for(var kr=[],xe=0;xe<f.length;xe++){var Kr=f[xe].from,oe=f[xe].to;if(!(!Ar[Kr]||!Ar[oe]||Kr===oe)){var Kt=f[xe].dir,ga=Kt==="d"?1:Kt==="u"?-1:0;kr.push({a:Kr,b:oe,delta:ga,dir:Kt})}}var Fe={};Fe[rr[0]]=0;for(var Da=!0,It=0;Da&&It++<rr.length*rr.length+64;){Da=!1;for(var dt=0;dt<kr.length;dt++){var Me=kr[dt];Fe[Me.a]!==void 0&&Fe[Me.b]===void 0?(Fe[Me.b]=Fe[Me.a]+Me.delta,Da=!0):Fe[Me.b]!==void 0&&Fe[Me.a]===void 0&&(Fe[Me.a]=Fe[Me.b]-Me.delta,Da=!0)}}for(var At=0;At<rr.length;At++)Fe[rr[At]]===void 0&&(Fe[rr[At]]=0);for(var sa=null,Gt=0;Gt<kr.length;Gt++)if(kr[Gt].dir==="r"||kr[Gt].dir==="l"){sa=Fe[kr[Gt].a];break}for(var Yt={},St=0;St<rr.length;St++){var st=Fe[rr[St]];Yt[st]=(Yt[st]||0)+1}if(sa===null){var Ye=-1;for(var $e in Yt)Yt[$e]>Ye&&(Ye=Yt[$e],sa=parseInt($e,10))}for(var bt={},aa=[],ka=0;ka<rr.length;ka++){var Fa=Fe[rr[ka]];bt.hasOwnProperty(Fa)||(bt[Fa]=[],aa.push(Fa)),bt[Fa].push(rr[ka])}aa.sort(function(sn,ia){return sn-ia});for(var Oe={},na={},ja=0,an=0;an<aa.length;an++){for(var Xt=0,gn=bt[aa[an]],Xe=0;Xe<gn.length;Xe++)q[gn[Xe]].h>Xt&&(Xt=q[gn[Xe]].h);na[aa[an]]=Xt,Oe[aa[an]]=ja,ja+=Xt+pr}for(var sr={},cr={},te=(bt[sa]||[]).slice(),Ie={},rt={},ce=0;ce<te.length;ce++)Ie[te[ce]]=[],rt[te[ce]]=0;for(var lt=0;lt<kr.length;lt++){var Ot=kr[lt];if(!(Fe[Ot.a]!==sa||Fe[Ot.b]!==sa)){var la=Ot.a,Ua=Ot.b;Ot.dir==="l"&&(la=Ot.b,Ua=Ot.a),Ie[la]&&rt.hasOwnProperty(Ua)&&(Ie[la].push(Ua),rt[Ua]++)}}for(var oa=[],Pt=[],yt=0;yt<te.length;yt++)rt[te[yt]]===0&&Pt.push(te[yt]);for(var fa=te.length*te.length+16;Pt.length&&fa-- >0;){var ft=Pt.shift();oa.push(ft);for(var pa=0;pa<Ie[ft].length;pa++)--rt[Ie[ft][pa]]===0&&Pt.push(Ie[ft][pa])}for(var cn=0;cn<te.length;cn++)oa.indexOf(te[cn])<0&&oa.push(te[cn]);function $a(sn,ia){var fn=0;if(sn==null||ia==null)return fn;for(var vn=0;vn<f.length;vn++){var Mn=f[vn];if(!(Mn.hidden||!Mn.label)&&(Mn.from===sn&&Mn.to===ia||Mn.from===ia&&Mn.to===sn)){var ll=Math.round(xa(Mn.label,!1))+16;ll>fn&&(fn=ll)}}return fn}for(var nn=0,An=0;An<oa.length;An++){var tn=oa[An],qa=q[tn];sr[tn]={x:nn,y:Oe[sa]+(na[sa]-qa.h)/2},cr[tn]=nn+qa.w/2,nn+=qa.w+Math.max(tr,$a(tn,An+1<oa.length?oa[An+1]:null))}function ra(sn){for(var ia=Fe[sn]<sa?Fe[sn]+1:Fe[sn]-1,fn=[],vn=0;vn<kr.length;vn++)kr[vn].a===sn&&Fe[kr[vn].b]===ia?fn.push(kr[vn].b):kr[vn].b===sn&&Fe[kr[vn].a]===ia&&fn.push(kr[vn].a);return fn}function Ja(sn){for(var ia=bt[sn].slice(),fn=0;fn<ia.length;fn++){for(var vn=ra(ia[fn]),Mn=0,ll=0,ol=0;ol<vn.length;ol++)cr.hasOwnProperty(vn[ol])&&(Mn+=cr[vn[ol]],ll++);ia[fn]={id:ia[fn],want:ll?Mn/ll:0}}ia.sort(function(yl,je){return yl.want-je.want});for(var il=-1e9,In=0;In<ia.length;In++){var Yn=ia[In].id,wn=q[Yn],cl=ia[In].want-wn.w/2;cl<il&&(cl=il),sr[Yn]={x:cl,y:Oe[sn]+(na[sn]-wn.h)/2},cr[Yn]=cl+wn.w/2,il=cl+wn.w+tr}}for(var pn=0,Fn=0;Fn<aa.length;Fn++){var En=Math.abs(aa[Fn]-sa);En>pn&&(pn=En)}for(var Ma=1;Ma<=pn;Ma++)bt.hasOwnProperty(sa-Ma)&&Ja(sa-Ma),bt.hasOwnProperty(sa+Ma)&&Ja(sa+Ma);for(var Dn=1e9,ln=-1e9,el=-1e9,on=0;on<rr.length;on++){var Cn=sr[rr[on]];if(Cn){var $n=q[rr[on]];Cn.x<Dn&&(Dn=Cn.x),Cn.x+$n.w>ln&&(ln=Cn.x+$n.w),Cn.y+$n.h>el&&(el=Cn.y+$n.h)}}for(var pl=0;pl<rr.length;pl++)sr[rr[pl]]&&(sr[rr[pl]].x-=Dn);return{pos:sr,w:ln-Dn,h:el}}var Ue=[];if(Wr())for(var Ne=zt(),Ze=0;Ze<a.length;Ze++){var Ut=Ne.pos[a[Ze].id];Ut&&de(a[Ze].id,Tl+Ut.x,to+Ut.y,"1")}else{for(var Zt=0;Zt<i.length;Zt++)i[Zt].parent==null&&(I(i[Zt].id),Ue.push(i[Zt].id));for(var Be=0;Be<a.length;Be++)a[Be].parent==null&&!q[a[Be].id]&&(I(a[Be].id),Ue.push(a[Be].id));for(var he=Fr(Ue,null),Jr=0;Jr<Ue.length;Jr++){var me=he.pos[Ue[Jr]];me&&de(Ue[Jr],Tl+me.x,to+me.y,"1")}}var ge={},M={};function J(tr){return tr.from<tr.to?tr.from+"|"+tr.to:tr.to+"|"+tr.from}for(var Cr=0;Cr<f.length;Cr++)if(!f[Cr].hidden){var br=J(f[Cr]);ge[br]=(ge[br]||0)+1}for(var $r=y.length,vt="",ht=0;ht<f.length;ht++){var gt=f[ht];if(!gt.hidden){var X=W[gt.from],ue=W[gt.to];if(!(!X||!ue||X===ue)){var ne=O(gt.color)||"#181818",Re="strokeColor="+ne+";fontColor=#000000;fontSize=12;html=1;"+(gt.bold?"strokeWidth=2;":"")+(gt.label?"labelBackgroundColor=#FFFFFF;":"");gt.arrowHead==="none"?Re+="endArrow=none;":gt.arrowHead==="bidirectional"?Re+="endArrow=classicThin;endFill=1;startArrow=classicThin;startFill=1;":gt.arrowHead==="socket"?Re+="endArrow=halfCircle;endSize=7;endFill=0;":Re+="endArrow=classicThin;endFill=1;",gt.lineStyle==="dotted"?Re+="dashed=1;dashPattern=2 2;":gt.lineStyle==="dashed"&&(Re+="dashed=1;dashPattern=5 5;");var Tt=Y[gt.from],Se=Y[gt.to];if(Tt&&Se&&Tt.y>Se.y+Se.h+60){for(var qe=!1,ke=Tt.x+Tt.w/2,Er=Tt.y+Tt.h/2,Vt=Se.x+Se.w/2,Bt=Se.y+Se.h/2,Ge={},ut=gt.from;ut!=null;ut=Rr[ut])Ge[ut]=!0;for(var Gr=gt.to;Gr!=null;Gr=Rr[Gr])Ge[Gr]=!0;for(var re in Y)if(!(!Y.hasOwnProperty(re)||Ge[re])){var ee=Y[re],Yr=ee.y+ee.h/2;if(!(Yr<=Bt||Yr>=Er)){var Et=(Yr-Er)/(Bt-Er),da=ke+Et*(Vt-ke);if(da>=ee.x-4&&da<=ee.x+ee.w+4){qe=!0;break}}}if(qe){var He=0;for(var ct in Y)if(Y.hasOwnProperty(ct)){var Ke=Y[ct];Ke.x+Ke.w>He&&(He=Ke.x+Ke.w)}He+=28;var Pa=Re.replace(/endArrow=[^;]*;/,"endArrow=none;").replace(/endFill=[^;]*;/,"").replace(/endSize=[^;]*;/,"");y+=z(K("e"),"",Pa,Tt.x+Tt.w,Er,He,Er,"1"),y+=z(K("e"),gt.label||"",Pa,He,Er,He,Bt,"1"),y+=z(K("e"),"",Re,He,Bt,Se.x+Se.w,Bt,"1");continue}}var rn=J(gt);if(ge[rn]>1){var za=M[rn]=(M[rn]||0)+1,Ct=Math.round((.5+(za-(ge[rn]+1)/2)*.36)*100)/100,le=Y[gt.from],Xr=Y[gt.to];if(le&&Xr){var Dt=le.x+le.w/2,wt=le.y+le.h/2,Ve=Xr.x+Xr.w/2,tt=Xr.y+Xr.h/2;if(Math.abs(tt-wt)>=Math.abs(Ve-Dt)){var jt=tt>wt;Re+="exitX="+Ct+";exitY="+(jt?1:0)+";exitDx=0;exitDy=0;entryX="+Ct+";entryY="+(jt?0:1)+";entryDx=0;entryDy=0;"}else{var Ur=Ve>Dt;Re+="exitX="+(Ur?1:0)+";exitY="+Ct+";exitDx=0;exitDy=0;entryX="+(Ur?0:1)+";entryY="+Ct+";entryDx=0;entryDy=0;"}}else Re+="exitX="+Ct+";exitY="+Ct+";exitDx=0;exitDy=0;entryX="+Ct+";entryY="+Ct+";entryDx=0;entryDy=0;"}y+=jr(K("e"),gt.label||"",Re,X,ue,"1")}}}var xr=r.notes||[];function kt(tr){for(var pr=tr?String(tr).split(`-`):[""],rr=0,er=0;er<pr.length;er++)pr[er].length>rr&&(rr=pr[er].length);return{w:Math.max(50,Math.ceil(rr*6)+21),h:Math.max(24,Math.round(pr.length*17.7+10))}}function Aa(tr){if(Y[tr])return tr;for(var pr=0;pr<a.length;pr++)if(a[pr].name===tr&&Y[a[pr].id])return a[pr].id;return null}for(var Nr=0;Nr<xr.length;Nr++){var Dr=xr[Nr],Rt=Aa(Dr.target),mt=Rt?Y[Rt]:null,wr=kt(Dr.text),at=10,we=10;mt&&(Dr.position==="left"?(at=mt.x-wr.w-18,we=mt.y+(mt.h-wr.h)/2):Dr.position==="top"?(at=mt.x+(mt.w-wr.w)/2,we=mt.y-wr.h-18):Dr.position==="bottom"?(at=mt.x+(mt.w-wr.w)/2,we=mt.y+mt.h+18):(at=mt.x+mt.w+18,we=mt.y+(mt.h-wr.h)/2));for(var va=[],ya=0;ya<Nr;ya++)xr[ya]._placed&&va.push(xr[ya]._placed);for(var qt=function(tr,pr){var rr=va.slice();for(var er in Y)Y.hasOwnProperty(er)&&er!==Rt&&(fe[er]||rr.push(Y[er]));for(var Ar=0;Ar<rr.length;Ar++){var se=rr[Ar];if(tr<se.x+se.w&&tr+wr.w>se.x&&pr<se.y+se.h&&pr+wr.h>se.y)return se}return null},Sa=0;Sa<8;Sa++){var Wt=qt(at,we);if(!Wt)break;Dr.position==="left"?at=Wt.x-wr.w-12:Dr.position==="top"?we=Wt.y-wr.h-12:Dr.position==="bottom"?we=Wt.y+Wt.h+12:at=Wt.x+Wt.w+12}Dr._placed={x:at,y:we,w:wr.w,h:wr.h};var Ga=K("note");if(y+=u(Ga,Dr.text||"","shape=note;size=14;fillColor=#FEFFDD;strokeColor=#181818;fontSize=12;whiteSpace=wrap;align=left;spacingLeft=4;",Math.round(at),Math.round(we),wr.w,wr.h,"1"),mt&&W[Rt]){var xt;Dr.position==="left"?xt="exitX=1;exitY=0.5;entryX=0;entryY=0.5;":Dr.position==="top"?xt="exitX=0.5;exitY=1;entryX=0.5;entryY=0;":Dr.position==="bottom"?xt="exitX=0.5;exitY=0;entryX=0.5;entryY=1;":xt="exitX=0;exitY=0.5;entryX=1;entryY=0.5;",vt+=jr(K("noteln"),"","endArrow=none;dashed=1;html=1;strokeColor=#181818;"+xt+"exitDx=0;exitDy=0;entryDx=0;entryDy=0;",Ga,W[Rt],"1")}}if(vt&&(y=y.slice(0,$r)+vt+y.slice($r)),r.title){var pt=null,Ta=null,Ca=null;for(var Mt in Y)if(Y.hasOwnProperty(Mt)){var Xr=Y[Mt];(pt===null||Xr.x<pt)&&(pt=Xr.x),(Ta===null||Xr.x+Xr.w>Ta)&&(Ta=Xr.x+Xr.w),(Ca===null||Xr.y<Ca)&&(Ca=Xr.y)}pt===null&&(pt=0,Ta=200,Ca=to);var Lt=String(r.title).split(`-`),Je=Math.max(120,Math.round(xa(r.title,!0))+20),$t=Lt.length*20+4;y+=u(K("title"),r.title,"text;html=1;fillColor=none;strokeColor=none;fontSize=14;fontStyle=1;fontColor=#000000;align=center;verticalAlign=middle;",Math.round((pt+Ta)/2-Je/2),Math.round(Ca-$t-12),Je,$t,"1")}if(r.legend&&r.legend.lines&&r.legend.lines.length){var wa=0,Ba=0;for(var nt in Y)if(Y.hasOwnProperty(nt)){var Ra=Y[nt];Ra.x+Ra.w>wa&&(wa=Ra.x+Ra.w),Ra.y+Ra.h>Ba&&(Ba=Ra.y+Ra.h)}for(var Ha=r.legend.lines.join(`-`),it=0,ta=r.legend.lines,Ea=0;Ea<ta.length;Ea++){var ua=xa(ta[Ea],!1);ua>it&&(it=ua)}it=Math.round(it)+26;var ha=ta.length*17+12,Nt=r.legend.position==="left"?10:r.legend.position==="right"?Math.max(10,wa-it):Math.max(10,(wa-it)/2);y+=u(K("legend"),Ha,"rounded=0;fillColor=#DDDDDD;strokeColor=#000000;strokeWidth=1;fontColor=#000000;fontSize=12;align=left;spacingLeft=8;verticalAlign=middle;whiteSpace=wrap;html=1;",Math.round(Nt),Math.round(Ba+25),it,ha,"1")}return y}var nl=23,ao=19,ps=8,Zi=16,Bi=35,cs=60,No=7,wi=30,bi=12,Co=34,Fl=16;function Ri(r,s){var a=r.objects,i=r.maps,f=r.links,y="",T=0;function L(te){return te+"_"+T++}for(var m={},K=0;K<i.length;K++)m[i[K].id]=i[K];var W={};function Y(te){for(var Ie=String(te??""),rt=0,ce=0;ce<Ie.length;ce++){var lt=Ie.charAt(ce);`iIljtfr.,:;!|'"()[]{} `.indexOf(lt)>=0?rt+=4.3:"mwMW".indexOf(lt)>=0?rt+=12:rt+=8}return rt}function Lr(te){for(var Ie=te&&te.entries?te.entries:[],rt=0,ce=0,lt=0;lt<Ie.length;lt++)rt=Math.max(rt,Y(Ie[lt].key)),ce=Math.max(ce,Y(Ie[lt].value));return{keyColW:rt+10,valColW:ce+10}}function mr(te){var Ie=te.kind==="map"&&m.hasOwnProperty(te.id),rt=Y(te.name)+14;if(te.stereotype&&(rt=Math.max(rt,Y("\xAB"+te.stereotype+"\xBB")+14)),Ie){var ce=m[te.id],lt=ce.entries?ce.entries.length:0,Ot=Lr(ce);return{w:Math.max(rt,Ot.keyColW+Ot.valColW),h:nl*(lt+1)}}for(var la=te.attributes||[],Ua=rt,oa=0;oa<la.length;oa++){var Pt=la[oa],yt=Pt.value?Pt.name+" = "+Pt.value:Pt.name;Ua=Math.max(Ua,Y(yt)+12)}var fa=la.length;return{w:Ua,h:nl+(te.stereotype?16:0)+(fa===0?Zi:fa*ao+ps)}}for(var Rr={},fe=r.packages||[],ie=0;ie<fe.length;ie++)for(var Ir=fe[ie].objects||[],ir=0;ir<Ir.length;ir++)Rr[Ir[ir]]=fe[ie];function Le(te){var Ie=Rr[te.id];if(!Ie)return null;var rt=mr(te),ce=(Ie.stereotype||"").toLowerCase(),lt=Y(Ie.name),Ot=Math.max(rt.w+wi*2,lt+bi*2),la=Co+rt.h+Fl;return ce==="cloud"?(Ot=Math.max(Ot,rt.w*2),la+=30):ce==="database"?la+=22:ce==="node"&&(Ot+=12,la+=10),{w:Ot,h:la,stereotype:ce,name:Ie.name}}function Te(te){var Ie=Le(te);return Ie?{w:Ie.w,h:Ie.h}:mr(te)}for(var Qr=fe.length>0,Br={},q=0;q<a.length;q++)Br[a[q].id]=!0;for(var ur={},Sr={},q=0;q<a.length;q++)ur[a[q].id]=[],Sr[a[q].id]=0;for(var Fr=0;Fr<f.length;Fr++){var Ee=f[Fr];if(!(!Br[Ee.from]||!Br[Ee.to]||Ee.from===Ee.to)){var ot,I;Ee.type==="generalization"?(ot=Ee.to,I=Ee.from):(ot=Ee.from,I=Ee.to),ur[ot].push(I),Sr[I]++}}var Tr={},de=[];for(var Wr in Sr)Sr.hasOwnProperty(Wr)&&Sr[Wr]===0&&(Tr[Wr]=0,de.push(Wr));for(var zt=a.length*a.length+16;de.length>0&&zt-- >0;)for(var Ue=de.shift(),Ne=ur[Ue]||[],Ze=0;Ze<Ne.length;Ze++){var Ut=Ne[Ze],Zt=Tr[Ue]+1;(Tr[Ut]===void 0||Tr[Ut]<Zt)&&(Tr[Ut]=Zt,de.push(Ut))}for(var q=0;q<a.length;q++)Tr[a[q].id]===void 0&&(Tr[a[q].id]=0);for(var Be={},he=[],q=0;q<a.length;q++){var Jr=Tr[a[q].id];Be[Jr]||(Be[Jr]=[],he.push(Jr)),Be[Jr].push(a[q])}he.sort(function(te,Ie){return te-Ie});for(var me={},ge={},M=0,J=0;J<he.length;J++){for(var Cr=Be[he[J]],br=0,$r=0,vt=0;vt<Cr.length;vt++){var ht=Te(Cr[vt]);vt>0&&(br+=Bi),br+=ht.w,ht.h>$r&&($r=ht.h)}me[he[J]]=br,ge[he[J]]=$r,br>M&&(M=br)}for(var gt={},X=0;X<f.length;X++){var ue=f[X];if(ue.label){var ne=ue.type==="generalization"?ue.to:ue.from;Tr[ne]!==void 0&&(gt[Tr[ne]]=!0)}}for(var Re={},Tt=0;Tt<a.length;Tt++){var Se=a[Tt];Se.kind==="map"&&m.hasOwnProperty(Se.id)&&(Re[Tr[Se.id]]=!0)}for(var qe=No+(Qr?Co:0),ke={},J=0;J<he.length;J++){for(var Er=he[J],Vt=Be[Er],Bt=ge[Er],Ge=No+(M-me[Er])/2,vt=0;vt<Vt.length;vt++){var ut=Vt[vt],Gr=mr(ut),re=Te(ut);ke[ut.id]={x:Ge+(re.w-Gr.w)/2,y:qe+(Bt-Gr.h)/2,w:Gr.w,h:Gr.h},Ge+=re.w+Bi}qe+=Bt+cs+(Re[Er]?8:0)+(gt[Er]?18:0)}for(var ee={},Yr=0;Yr<f.length;Yr++){var Et=f[Yr];if(!(Et.fromRow==null||!m[Et.from])){for(var da=0,He=0;He<f.length;He++)He!==Yr&&(f[He].from===Et.to||f[He].to===Et.to)&&da++;da>0||!ke[Et.to]||!ke[Et.from]||(ee[Et.from]||(ee[Et.from]=[]),ee[Et.from].push(Et))}}for(var ct in ee)if(ee.hasOwnProperty(ct))for(var Ke=ee[ct],Pa=ke[ct],rn=m[ct].entries||[],za=Pa.x+Pa.w+50,Ct=Ke.length-1;Ct>=0;Ct--){for(var le=ke[Ke[Ct].to],Xr=0,Dt=0;Dt<rn.length;Dt++)if(rn[Dt].key===Ke[Ct].fromRow){Xr=Dt;break}Ke[Ct]._rowIdx=Xr,le.x=za,le.y=Pa.y+nl*(Xr+1)+nl/2-le.h/2,le.y<No&&(le.y=No),za+=le.w+40}for(var wt=0;wt<a.length;wt++){var Ve=a[wt],tt=ke[Ve.id],jt=tt.x,Ur=tt.y,xr=tt.w,kt=tt.h,Aa=Ve.kind==="map"&&m.hasOwnProperty(Ve.id),Nr=Aa?m[Ve.id]:null,Dr=Aa&&Nr.entries?Nr.entries:[],Rt=!Aa&&Ve.attributes?Ve.attributes:[],mt=L("obj"),wr=O(Ve.color)||"#F1F1F1",at=nl+(!Aa&&Ve.stereotype?16:0),we="swimlane;collapsible=0;startSize="+at+";rounded=0;whiteSpace=wrap;fontStyle=0;fontSize=14;align=center;fillColor="+wr+";swimlaneFillColor="+wr+";strokeColor=#181818;",va=Ve.stereotype?"\xAB"+Ve.stereotype+`\xBB-`+Ve.name:Ve.name;if(y+=u(mt,va,we,jt,Ur,xr,kt,"1"),Aa){for(var ya=Lr(Nr),qt=ya.keyColW,Sa=xr-qt,Wt=0;Wt<Dr.length;Wt++){var Ga=Dr[Wt],xt=nl+Wt*nl;y+=u(L("mk"),Ga.key,"text;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=14;fillColor=none;strokeColor=none;",0,xt,qt,nl,mt),y+=u(L("mv"),Ga.value,"text;align=left;spacingLeft=5;verticalAlign=middle;whiteSpace=wrap;fontSize=14;fillColor=none;strokeColor=none;",qt,xt,Sa,nl,mt)}y+=z(L("mgl"),"","endArrow=none;strokeColor=#181818;strokeWidth=1;",jt+qt,Ur+nl,jt+qt,Ur+kt,"1");for(var pt=1;pt<Dr.length;pt++){var Ta=Ur+nl+pt*nl;y+=z(L("mgl"),"","endArrow=none;strokeColor=#181818;strokeWidth=1;",jt,Ta,jt+xr,Ta,"1")}}else{for(var Ca=[],Mt=0;Mt<Rt.length;Mt++){var Lt=Rt[Mt];Ca.push(Lt.value?Lt.name+" = "+Lt.value:Lt.name)}Ca.length>0&&(y+=u(L("oattr"),Ca.join(`-`),"text;align=left;verticalAlign=top;spacingLeft=6;spacingTop=2;whiteSpace=wrap;fontSize=14;fillColor=none;strokeColor=none;",0,nl,xr,kt-nl,mt))}W[Ve.id]={x:jt,y:Ur,w:xr,h:kt,cellId:mt}}for(var Je=0;Je<f.length;Je++){var $t=f[Je],wa=W[$t.from],Ba=W[$t.to];if(!(!wa||!Ba)){var nt;if($t.type==="generalization"?nt="endArrow=block;endFill=0;":$t.type==="composition"?nt="startArrow=diamond;startFill=1;endArrow=none;":$t.type==="aggregation"?nt="startArrow=diamond;startFill=0;endArrow=none;":$t.type==="link"?nt="endArrow=none;":nt="endArrow=classicThin;endFill=1;endSize=8;",$t._rowIdx!=null&&wa.h>0){var Ra=(nl*($t._rowIdx+1)+nl/2)/wa.h;nt+="exitX=1;exitY="+Math.round(Ra*1e3)/1e3+";exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;"}nt+="strokeColor=#181818;fontColor=#000000;fontSize=12;html=1;rounded=0;",$t.lineStyle==="dotted"?nt+="dashed=1;dashPattern=2 2;":$t.lineStyle==="dashed"&&(nt+="dashed=1;dashPattern=5 5;");var Ha;if($t.label){var it=Math.round(Y($t.label)/2)+1;Ha=` <mxGeometry relative="1" as="geometry">- <mxPoint x="`+it+`" y="0" as="offset"/>+`;continue}}var it=ea(X);if(mt[it]>1){var st=bo[it]=(bo[it]||0)+1,ja=Math.round((.5+(st-(mt[it]+1)/2)*.36)*100)/100,Je=Ie[X.from],mo=Ie[X.to];if(Je&&mo){var ge=Je.x+Je.w/2,We=Je.y+Je.h/2,Et=mo.x+mo.w/2,wo=mo.y+mo.h/2;if(Math.abs(wo-We)>=Math.abs(Et-ge)){var la=wo>We;cr+="exitX="+ja+";exitY="+(la?1:0)+";exitDx=0;exitDy=0;entryX="+ja+";entryY="+(la?0:1)+";entryDx=0;entryDy=0;"}else{var ia=Et>ge;cr+="exitX="+(ia?1:0)+";exitY="+ja+";exitDx=0;exitDy=0;entryX="+(ia?0:1)+";entryY="+ja+";entryDx=0;entryDy=0;"}}else cr+="exitX="+ja+";exitY="+ja+";exitDx=0;exitDy=0;entryX="+ja+";entryY="+ja+";entryDx=0;entryDy=0;"}cr=y(Q(cr,["arrow"],null,"edge",X.color?["strokeColor"]:null),H),h+=O(br("e"),X.label||"",cr,$r,to,"1")}}}var pe=r.notes||[];function Zr(gr){for(var de=gr?String(gr).split(`+`):[""],Gr=0,Or=0;Or<de.length;Or++)Gr=Math.max(Gr,Tl(de[Or],!1)*.93);return{w:Math.max(50,Math.ceil(Gr)+21),h:Math.max(24,Math.round(de.length*15.3+10))}}var $t=35;function xt(gr){if(Ie[gr])return gr;for(var de=0;de<e.length;de++)if(e[de].name===gr&&Ie[e[de].id])return e[de].id;return null}for(var kt=0;kt<pe.length;kt++){let gr=function(de){return de==="left"?{x:Co.x-Ht.w-$t,y:Co.y+(Co.h-Ht.h)/2}:de==="top"?{x:Co.x+(Co.w-Ht.w)/2,y:Co.y-Ht.h-$t}:de==="bottom"?{x:Co.x+(Co.w-Ht.w)/2,y:Co.y+Co.h+$t}:{x:Co.x+Co.w+$t,y:Co.y+(Co.h-Ht.h)/2}};var Dt=pe[kt],Ut=xt(Dt.target),Co=Ut?Ie[Ut]:null,Ht=Zr(Dt.text),Po=10,Tt=10,St=Dt.position||"right";if(Co){var vt=gr(St);Po=vt.x,Tt=vt.y}for(var Xt=[],sa=0;sa<kt;sa++)pe[sa]._placed&&Xt.push(pe[sa]._placed);var Xa=function(de,Gr){var Or=Xt.slice();for(var re in Ie)Ie.hasOwnProperty(re)&&re!==Ut&&(ue[re]||Or.push(Ie[re]));for(var be=0;be<Or.length;be++){var Cr=Or[be];if(de<Cr.x+Cr.w&&de+Ht.w>Cr.x&&Gr<Cr.y+Cr.h&&Gr+Ht.h>Cr.y)return Cr}return null};if(Co&&Xa(Po,Tt))for(var ya={left:"right",right:"left",top:"bottom",bottom:"top"},Mo=[ya[St],"bottom","top","right","left"],_t=0;_t<Mo.length;_t++){var ct=Mo[_t];if(ct!==St){var $a=gr(ct);if($a.x>=0&&$a.y>=0&&!Xa($a.x,$a.y)){St=ct,Po=$a.x,Tt=$a.y;break}}}for(var en=0;en<8;en++){var da=Xa(Po,Tt);if(!da)break;St==="left"?Po=da.x-Ht.w-12:St==="top"?Tt=da.y-Ht.h-12:St==="bottom"?Tt=da.y+da.h+12:Po=da.x+da.w+12}Dt._placed={x:Po,y:Tt,w:Ht.w,h:Ht.h};var Kt=br("note");if(Po=Math.round(Po),Tt=Math.round(Tt),h+=er(Kt,Dt.text||"",Q("shape=note;size=10;fillColor=#FEFFDD;strokeColor=#181818;fontSize=13;whiteSpace=wrap;align=left;spacingLeft=4;",["note"]),Po,Tt,Ht.w,Ht.h,"1"),Co){var va=Q("shape=triangle;fillColor=#FEFFDD;strokeColor=#181818;strokeWidth=0.5;",["note"]),ma=Math.round(Co.x+Co.w/2),ba=Math.round(Co.y+Co.h/2);St==="left"?h+=er(br("noteptr"),"",va+"direction=east;",Po+Ht.w-1,ba-4,Math.max(6,Co.x-(Po+Ht.w)+1),8,"1"):St==="top"?h+=er(br("noteptr"),"",va+"direction=south;",ma-4,Tt+Ht.h-1,8,Math.max(6,Co.y-(Tt+Ht.h)+1),"1"):St==="bottom"?h+=er(br("noteptr"),"",va+"direction=north;",ma-4,Co.y+Co.h,8,Math.max(6,Tt-(Co.y+Co.h)+1),"1"):h+=er(br("noteptr"),"",va+"direction=west;",Co.x+Co.w,ba-4,Math.max(6,Po-(Co.x+Co.w)+1),8,"1")}}if(Yo&&(h=h.slice(0,Oe)+Yo+h.slice(Oe)),r.title){var ot=null,jt=null,ta=null;for(var _a in Ie)if(Ie.hasOwnProperty(_a)){var mo=Ie[_a];(ot===null||mo.x<ot)&&(ot=mo.x),(jt===null||mo.x+mo.w>jt)&&(jt=mo.x+mo.w),(ta===null||mo.y<ta)&&(ta=mo.y)}ot===null&&(ot=0,jt=200,ta=Is);var ca=String(r.title).split(`+`),ut=Math.max(120,Math.round(Tl(r.title,!0))+20),wa=ca.length*20+4;h+=er(br("title"),r.title,"text;html=1;fillColor=none;strokeColor=none;fontSize=14;fontStyle=1;fontColor=#000000;align=center;verticalAlign=middle;",Math.round((ot+jt)/2-ut/2),Math.round(ta-wa-12),ut,wa,"1")}if(r.legend&&r.legend.lines&&r.legend.lines.length){var Bt=0,Bo=0;for(var Oa in Ie)if(Ie.hasOwnProperty(Oa)){var Vt=Ie[Oa];Vt.x+Vt.w>Bt&&(Bt=Vt.x+Vt.w),Vt.y+Vt.h>Bo&&(Bo=Vt.y+Vt.h)}for(var go=r.legend.lines.join(`+`),xo=0,qt=r.legend.lines,Pt=0;Pt<qt.length;Pt++){var Jt=Tl(qt[Pt],!1);Jt>xo&&(xo=Jt)}xo=Math.round(xo)+26;var aa=qt.length*17+12,Pa=r.legend.position==="left"?10:r.legend.position==="right"?Math.max(10,Bt-xo):Math.max(10,(Bt-xo)/2);h+=er(br("legend"),go,"rounded=0;fillColor=#DDDDDD;strokeColor=#000000;strokeWidth=1;fontColor=#000000;fontSize=12;align=left;spacingLeft=8;verticalAlign=middle;whiteSpace=wrap;html=1;",Math.round(Pa),Math.round(Bo+25),xo,aa,"1")}return h}var Ol=23,ru=19,Gs=8,Uu=16,Mf=35,fc=60,eu=7,dc=30,cc=12,xf=34,Cc=16;function hc(r,n){var e=r.objects,f=r.maps,a=r.links,h="",B=0,H=r.styleSheet||null,p=null;function U(wr,Oo,eo,yo,Zt,Ct){return s(wr,H,["root","element",Oo].concat(eo),yo||[],Zt||"vertex",Ct)}var N=function(wr,Oo,eo,yo,Zt,Ct,Ia,Ba){return p!=null&&eo.indexOf("text;")===0&&(eo=U(eo,"objectDiagram",[p.name],p.stereotypes,"text")),oe(wr,Oo,eo,yo,Zt,Ct,Ia,Ba)};function j(wr){return wr+"_"+B++}for(var Q={},_r=0;_r<f.length;_r++)Q[f[_r].id]=f[_r];var Lr={};function er(wr,Oo){return Ki(wr,Oo||14,!1)}function Qr(wr){for(var Oo=wr&&wr.entries?wr.entries:[],eo=0,yo=0,Zt=0;Zt<Oo.length;Zt++)eo=Math.max(eo,er(Oo[Zt].key)),yo=Math.max(yo,er(Oo[Zt].value));return{keyColW:eo+10,valColW:yo+10}}function Vr(wr){var Oo=wr.kind==="map"&&Q.hasOwnProperty(wr.id),eo=er(wr.name)+14;if(wr.stereotype&&(eo=Math.max(eo,er("\xAB"+wr.stereotype+"\xBB",12)+10)),Oo){var yo=Q[wr.id],Zt=yo.entries?yo.entries.length:0,Ct=Qr(yo);return{w:Math.max(eo,Ct.keyColW+Ct.valColW),h:Ol*(Zt+1)}}for(var Ia=wr.attributes||[],Ba=eo,An=0;An<Ia.length;An++){var Fr=Ia[An],Qe=Fr.value?Fr.name+" = "+Fr.value:Fr.name;Ba=Math.max(Ba,er(Qe)+12)}var lo=Ia.length;return{w:Ba,h:Ol+(wr.stereotype?16:0)+(lo===0?Uu:lo*ru+Gs)}}for(var he={},zr=r.packages||[],Jr=0;Jr<zr.length;Jr++)for(var br=zr[Jr].objects||[],Br=0;Br<br.length;Br++)he[br[Br]]=zr[Jr];function Ie(wr){return wr==="node"?{side:46,top:40,bottom:16}:wr==="cloud"?{side:18,top:36,bottom:22}:wr==="database"?{side:31,top:50,bottom:16}:wr==="folder"||wr==="frame"?{side:20,top:35,bottom:16}:{side:32,top:35,bottom:16}}function To(wr){var Oo=he[wr.id];if(!Oo)return null;var eo=Vr(wr),yo=(Oo.stereotype||"").toLowerCase(),Zt=er(Oo.name),Ct=Ie(yo),Ia=Math.max(eo.w+Ct.side*2,Zt+cc*2),Ba=Ct.top+eo.h+Ct.bottom;return{w:Ia,h:Ba,top:Ct.top,stereotype:yo,name:Oo.name}}function Sr(wr){var Oo=To(wr);return Oo?{w:Oo.w,h:Oo.h}:Vr(wr)}for(var Rr=zr.length>0,ue={},L=0;L<e.length;L++)ue[e[L].id]=!0;for(var Y={},nr={},L=0;L<e.length;L++)Y[e[L].id]=[],nr[e[L].id]=0;for(var Yr=0;Yr<a.length;Yr++){var mr=a[Yr];if(!(!ue[mr.from]||!ue[mr.to]||mr.from===mr.to)){var q,ur;mr.type==="generalization"?(q=mr.to,ur=mr.from):(q=mr.from,ur=mr.to),Y[q].push(ur),nr[ur]++}}var kr={},Ye=[];for(var Fe in nr)nr.hasOwnProperty(Fe)&&nr[Fe]===0&&(kr[Fe]=0,Ye.push(Fe));for(var qe=e.length*e.length+16;Ye.length>0&&qe-- >0;)for(var Ae=Ye.shift(),Ue=Y[Ae]||[],no=0;no<Ue.length;no++){var Ee=Ue[no],$o=kr[Ae]+1;(kr[Ee]===void 0||kr[Ee]<$o)&&(kr[Ee]=$o,Ye.push(Ee))}for(var L=0;L<e.length;L++)kr[e[L].id]===void 0&&(kr[e[L].id]=0);for(var ve={},Mr=[],L=0;L<e.length;L++){var _o=kr[e[L].id];ve[_o]||(ve[_o]=[],Mr.push(_o)),ve[_o].push(e[L])}Mr.sort(function(wr,Oo){return wr-Oo});for(var et={},io={},po=0,So=0;So<Mr.length;So++){for(var Ao=ve[Mr[So]],Qo=0,Io=0,fo=0;fo<Ao.length;fo++){var mt=Sr(Ao[fo]);fo>0&&(Qo+=Mf),Qo+=mt.w,mt.h>Io&&(Io=mt.h)}et[Mr[So]]=Qo,io[Mr[So]]=Io,Qo>po&&(po=Qo)}for(var bo={},ea=0;ea<a.length;ea++){var No=a[ea];if(No.label){var oo=No.type==="generalization"?No.to:No.from;kr[oo]!==void 0&&(bo[kr[oo]]=!0)}}for(var Oe={},Yo=0;Yo<e.length;Yo++){var _e=e[Yo];_e.kind==="map"&&Q.hasOwnProperty(_e.id)&&(Oe[kr[_e.id]]=!0)}for(var X=0,$r=0;$r<zr.length;$r++){var to=Ie((zr[$r].stereotype||"").toLowerCase()).top;to>X&&(X=to)}for(var Hr=eu+(Rr?X:0),cr={},So=0;So<Mr.length;So++){for(var ro=Mr[So],Me=ve[ro],Lo=io[ro],sr=eu+(po-et[ro])/2,fo=0;fo<Me.length;fo++){var Go=Me[fo],rn=Vr(Go),wt=Sr(Go);cr[Go.id]={x:sr+(wt.w-rn.w)/2,y:Hr+(Lo-rn.h)/2,w:rn.w,h:rn.h},sr+=wt.w+Mf}Hr+=Lo+fc+(Oe[ro]?8:0)+(bo[ro]?18:0)}for(var zt={},ka=0;ka<a.length;ka++){var Rt=a[ka];if(!(Rt.fromRow==null||!Q[Rt.from])){for(var gt=0,dt=0;dt<a.length;dt++)dt!==ka&&(a[dt].from===Rt.to||a[dt].to===Rt.to)&>++;gt>0||!cr[Rt.to]||!cr[Rt.from]||(zt[Rt.from]||(zt[Rt.from]=[]),zt[Rt.from].push(Rt))}}for(var Fa in zt)if(zt.hasOwnProperty(Fa))for(var oa=zt[Fa],bt=cr[Fa],Wt=Q[Fa].entries||[],ha=bt.x+bt.w+50,co=oa.length-1;co>=0;co--){for(var lt=cr[oa[co].to],it=0,st=0;st<Wt.length;st++)if(Wt[st].key===oa[co].fromRow){it=st;break}oa[co]._rowIdx=it,lt.x=ha,lt.y=bt.y+Ol*(it+1)+Ol/2-lt.h/2,lt.y<eu&&(lt.y=eu),ha+=lt.w+40}for(var ja=r.packages||[],Je={},mo=0;mo<ja.length;mo++){var ge=ja[mo],We=ge.objects||[];if(We.length!==0){var Et=null,wo;for(wo=0;wo<e.length;wo++)if(We.indexOf(e[wo].id)>=0){Et=e[wo];break}for(var la=1/0,ia=1/0,pe=-1/0,Zr=-1/0,$t=!1,xt=0;xt<We.length;xt++){var kt=cr[We[xt]];kt&&($t=!0,kt.x<la&&(la=kt.x),kt.y<ia&&(ia=kt.y),kt.x+kt.w>pe&&(pe=kt.x+kt.w),kt.y+kt.h>Zr&&(Zr=kt.y+kt.h))}if(!(!$t||!Et)){var Dt=To(Et),Ut=Dt?Dt.w:pe-la+dc*2,Co=Dt?Dt.h:Zr-ia+xf+Cc,Ht=(la+pe)/2,Po=Ht-Ut/2,Tt=ia-(Dt?Dt.top:xf),St=Dt?Dt.stereotype:"",vt=j("opkg"),Xt="container=1;collapsible=0;";for(xt=0;xt<We.length;xt++)cr[We[xt]]&&(Je[We[xt]]={id:vt,x:Po,y:Tt});var sa="text;html=1;fillColor=none;strokeColor=none;fontColor=#000000;fontSize=14;align=left;verticalAlign=middle;spacingLeft=3;",Xa="text;html=1;fillColor=none;strokeColor=none;fontColor=#000000;fontSize=14;align=center;verticalAlign=middle;";if(St==="folder"){var ya=Math.round(Math.min(Ut-8,er(ge.name)+20));h+=N(vt,ge.name,"shape=folder;tabWidth="+ya+";tabHeight=22;tabPosition=left;html=1;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=14;align=left;verticalAlign=top;spacingLeft=3;spacingTop=1;"+Xt,Po,Tt,Ut,Co,"1");continue}if(St==="frame"){h+=N(vt,ge.name,"shape=umlFrame;width="+Ut+";height=20;html=1;fillColor=none;swimlaneFillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=14;align=left;verticalAlign=middle;spacingLeft=3;"+Xt,Po,Tt,Ut,Co,"1");continue}var Mo,_t,ct,$a,en;St==="node"?(Mo="shape=cube;size=10;fillColor=none;strokeColor=#000000;",_t=0,ct=Ut-10,$a=15,en=Xa):St==="cloud"?(Mo="shape=mxgraph.basic.cloud_rect;fillColor=none;strokeColor=#000000;",_t=0,ct=Ut,$a=12,en=Xa):St==="database"?(Mo="shape=cylinder3;size=10;boundedLbl=1;backgroundOutline=1;fillColor=none;strokeColor=#000000;",_t=0,ct=Ut,$a=24,en=Xa):(Mo="rounded=0;fillColor=none;strokeColor=#000000;",_t=4,ct=Ut-8,$a=4,en=sa),h+=N(vt,"",Mo+Xt,Po,Tt,Ut,Co,"1"),h+=N(j("opkgl"),ge.name,en,_t,$a,ct,20,vt)}}}for(var da=0;da<e.length;da++){var Kt=e[da],va=cr[Kt.id],ma=va.x,ba=va.y,ot=va.w,jt=va.h,ta=Kt.kind==="map"&&Q.hasOwnProperty(Kt.id),_a=ta?Q[Kt.id]:null,ca=ta&&_a.entries?_a.entries:[],ut=!ta&&Kt.attributes?Kt.attributes:[],wa=j("obj"),Bt=P(Kt.color)||"#F1F1F1",Bo=Ol+(!ta&&Kt.stereotype?16:0),Oa="swimlane;collapsible=0;startSize="+Bo+";rounded=0;whiteSpace=wrap;fontStyle=0;fontSize=14;align=center;fillColor="+Bt+";swimlaneFillColor="+Bt+";strokeColor=#181818;",Vt=Kt.stereotype?"\xAB"+Kt.stereotype+`\xBB+`+Kt.name:Kt.name,go=Kt.stereotype?[Kt.stereotype]:[],xo=ta?"map":"object",qt=R(H,["root","element","objectDiagram",xo],go,"vertex"),Pt=R(H,["root","element","objectDiagram",xo,"header"],go,"vertex");Kt.color?(delete qt.fillColor,delete qt.gradientColor,delete Pt.fillColor,delete Pt.gradientColor):qt.fillColor!=null&&(qt.swimlaneFillColor=qt.fillColor);for(var Jt in Pt)Pt.hasOwnProperty(Jt)&&!/^(strokeColor|strokeWidth|dashed|dashPattern|fixDash|rounded|arcSize|absoluteArcSize|shadow)$/.test(Jt)&&(qt[Jt]=Pt[Jt]);p=H==null?null:{name:xo,stereotypes:go};var aa=Je[Kt.id]||{id:"1",x:0,y:0};if(h+=N(wa,Vt,g(Oa,qt),ma-aa.x,ba-aa.y,ot,jt,aa.id),ta){for(var Pa=Qr(_a),gr=Pa.keyColW,de=ot-gr,Gr=0;Gr<ca.length;Gr++){var Or=ca[Gr],re=Ol+Gr*Ol;h+=N(j("mk"),Or.key,"text;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=14;fillColor=none;strokeColor=none;",0,re,gr,Ol,wa),h+=N(j("mv"),Or.value,"text;align=left;spacingLeft=5;verticalAlign=middle;whiteSpace=wrap;fontSize=14;fillColor=none;strokeColor=none;",gr,re,de,Ol,wa)}h+=ee(j("mgl"),"","endArrow=none;strokeColor=#181818;strokeWidth=1;",ma+gr,ba+Ol,ma+gr,ba+jt,"1");for(var be=1;be<ca.length;be++){var Cr=ba+Ol+be*Ol;h+=ee(j("mgl"),"","endArrow=none;strokeColor=#181818;strokeWidth=1;",ma,Cr,ma+ot,Cr,"1")}}else{for(var te=[],ce=0;ce<ut.length;ce++){var fe=ut[ce];te.push(fe.value?fe.name+" = "+fe.value:fe.name)}te.length>0&&(h+=N(j("oattr"),te.join(`+`),"text;align=left;verticalAlign=top;spacingLeft=6;spacingTop=2;whiteSpace=wrap;fontSize=14;fillColor=none;strokeColor=none;",0,Ol,ot,jt-Ol,wa))}Lr[Kt.id]={x:ma,y:ba,w:ot,h:jt,cellId:wa}}for(var tt=0;tt<a.length;tt++){var ko=a[tt],Xr=Lr[ko.from],Ce=Lr[ko.to];if(!(!Xr||!Ce)){var jr;if(ko.type==="generalization"?jr="endArrow=block;endFill=0;":ko.type==="composition"?jr="startArrow=diamond;startFill=1;endArrow=none;":ko.type==="aggregation"?jr="startArrow=diamond;startFill=0;endArrow=none;":ko.type==="link"?jr="endArrow=none;":jr="endArrow=classicThin;endFill=1;endSize=8;",ko._rowIdx!=null&&Xr.h>0){var ao=(Ol*(ko._rowIdx+1)+Ol/2)/Xr.h;jr+="exitX=1;exitY="+Math.round(ao*1e3)/1e3+";exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;"}jr+="strokeColor=#181818;fontColor=#000000;fontSize=12;html=1;rounded=0;",ko.lineStyle==="dotted"?jr+="dashed=1;dashPattern=2 2;":ko.lineStyle==="dashed"&&(jr+="dashed=1;dashPattern=5 5;"),jr=y(U(jr,"classDiagram",["arrow"],null,"edge",ko.color?["strokeColor"]:null),H);var De;if(ko.label){var ft=Math.round(er(ko.label)/2)+1;De=` <mxGeometry relative="1" as="geometry">+ <mxPoint x="`+ft+`" y="0" as="offset"/></mxGeometry>-`}else Ha=` <mxGeometry relative="1" as="geometry"/>-`;y+=' <mxCell id="'+C(L("l"))+'" value="'+w($t.label||"")+'" style="'+C(nt)+'" edge="1" parent="1" source="'+C(wa.cellId)+'" target="'+C(Ba.cellId)+`">-`+Ha+` </mxCell>-`}}var ta=r.notes||[];function Ea(te){for(var Ie=te?String(te).split(`-`):[""],rt=0,ce=0;ce<Ie.length;ce++)Ie[ce].length>rt&&(rt=Ie[ce].length);return{w:Math.max(50,Math.ceil(rt*6)+21),h:Math.max(24,Math.round(Ie.length*17.7+10))}}function ua(te){if(W[te])return te;for(var Ie=0;Ie<a.length;Ie++)if(a[Ie].name===te&&W[a[Ie].id])return a[Ie].id;return null}for(var ha=0;ha<ta.length;ha++){var Nt=ta[ha],tr=ua(Nt.target),pr=tr?W[tr]:null,rr=Ea(Nt.text),er=10,Ar=10;pr&&(Nt.position==="left"?(er=pr.x-rr.w-18,Ar=pr.y+(pr.h-rr.h)/2):Nt.position==="top"?(er=pr.x+(pr.w-rr.w)/2,Ar=pr.y-rr.h-18):Nt.position==="bottom"?(er=pr.x+(pr.w-rr.w)/2,Ar=pr.y+pr.h+18):(er=pr.x+pr.w+18,Ar=pr.y+(pr.h-rr.h)/2));for(var se=[],kr=0;kr<ha;kr++)ta[kr]._placed&&se.push(ta[kr]._placed);for(var xe=function(te,Ie){var rt=se.slice();for(var ce in W)W.hasOwnProperty(ce)&&ce!==tr&&rt.push(W[ce]);for(var lt=0;lt<rt.length;lt++){var Ot=rt[lt];if(te<Ot.x+Ot.w&&te+rr.w>Ot.x&&Ie<Ot.y+Ot.h&&Ie+rr.h>Ot.y)return Ot}return null},Kr=0;Kr<8;Kr++){var oe=xe(er,Ar);if(!oe)break;Nt.position==="left"?er=oe.x-rr.w-12:Nt.position==="top"?Ar=oe.y-rr.h-12:Nt.position==="bottom"?Ar=oe.y+oe.h+12:er=oe.x+oe.w+12}Nt._placed={x:er,y:Ar,w:rr.w,h:rr.h};var Kt=L("note");if(y+=u(Kt,Nt.text||"","shape=note;size=14;fillColor=#FEFFDD;strokeColor=#181818;fontSize=12;whiteSpace=wrap;align=left;spacingLeft=4;",Math.round(er),Math.round(Ar),rr.w,rr.h,"1"),pr){var ga;Nt.position==="left"?ga="exitX=1;exitY=0.5;entryX=0;entryY=0.5;":Nt.position==="top"?ga="exitX=0.5;exitY=1;entryX=0.5;entryY=0;":Nt.position==="bottom"?ga="exitX=0.5;exitY=0;entryX=0.5;entryY=1;":ga="exitX=0;exitY=0.5;entryX=1;entryY=0.5;",y+=jr(L("noteln"),"","endArrow=none;dashed=1;html=1;strokeColor=#181818;"+ga+"exitDx=0;exitDy=0;entryDx=0;entryDy=0;",Kt,pr.cellId,"1")}}for(var Fe=r.packages||[],Da=0;Da<Fe.length;Da++){var It=Fe[Da],dt=It.objects||[];if(dt.length!==0){var Me=null,At;for(At=0;At<a.length;At++)if(dt.indexOf(a[At].id)>=0){Me=a[At];break}for(var sa=1/0,Gt=1/0,Yt=-1/0,St=-1/0,st=!1,Ye=0;Ye<dt.length;Ye++){var $e=W[dt[Ye]];$e&&(st=!0,$e.x<sa&&(sa=$e.x),$e.y<Gt&&(Gt=$e.y),$e.x+$e.w>Yt&&(Yt=$e.x+$e.w),$e.y+$e.h>St&&(St=$e.y+$e.h))}if(!(!st||!Me)){var bt=Le(Me),aa=bt?bt.w:Yt-sa+wi*2,ka=bt?bt.h:St-Gt+Co+Fl,Fa=(sa+Yt)/2,Oe=Fa-aa/2,na=Gt-Co,ja=bt?bt.stereotype:"",an=L("opkg"),Xt=na+4;if(ja==="folder"){var gn=Math.min(aa,Math.round(Y(It.name)+18));y+=u(an,"","rounded=0;fillColor=none;strokeColor=#000000;",Oe,na+Co-20,aa,ka-(Co-20),"1"),y+=u(L("opkgt"),It.name,"rounded=0;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=14;fontStyle=1;align=center;verticalAlign=middle;",Oe,na,gn,Co-20+2,"1");continue}if(ja==="frame"){var Xe=Math.min(aa,Math.round(Y(It.name)+18));y+=u(an,"","rounded=0;fillColor=none;strokeColor=#000000;",Oe,na,aa,ka,"1"),y+=u(L("opkgf"),It.name,"rounded=0;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=14;fontStyle=1;align=center;verticalAlign=middle;",Oe,na,Xe,22,"1");continue}var sr,cr;ja==="node"?(sr="shape=cube;fillColor=none;strokeColor=#000000;",cr=14):ja==="cloud"?(sr="shape=cloud;fillColor=none;strokeColor=#000000;",cr=12):ja==="database"?(sr="shape=cylinder;fillColor=none;strokeColor=#000000;",cr=12):(sr="rounded=0;fillColor=none;strokeColor=#000000;",cr=6),y+=u(an,"",sr,Oe,na,aa,ka,"1"),y+=u(L("opkgl"),It.name,"text;html=1;fillColor=none;strokeColor=none;fontColor=#000000;fontSize=14;fontStyle=1;align=center;verticalAlign=top;",Oe,na+cr,aa,20,"1")}}}return y}var wo=40,Bo=60,oi=140,Ls=50,_i=26,ii=40,Ml=30,bo=20,qi=140,Mi=30,go=35,si=78,_o=35;function Ro(r){for(var s=String(r??""),a=0,i=0,f=0;f<s.length;f++){var y=s.charAt(f);y===`-`?(a>i&&(i=a),a=0):`iIljtfr.,:;!|'"()[]{} `.indexOf(y)>=0?a+=4.2:"mwMW".indexOf(y)>=0?a+=11.7:a+=7.8}return a>i&&(i=a),i}function Ii(r){return r?String(r).split(`-`).length:1}function Va(r){if(!r)return oi;var s=Ro(r);return Math.max(80,Math.round(s+Math.min(60,25+.45*s)))}function gl(r){var s=Ii(r);return s>1?s*17+6:34}function mo(r){return String(r??"").replace(/\\r\\n|\\n|\\r/g,`+`}else De=` <mxGeometry relative="1" as="geometry"/>+`;h+=' <mxCell id="'+i(j("l"))+'" value="'+T(ko.label||"")+'" style="'+i(jr)+'" edge="1" parent="1" source="'+i(Xr.cellId)+'" target="'+i(Ce.cellId)+`">+`+De+` </mxCell>+`}}var Ho=r.notes||[];function Ze(wr){for(var Oo=wr?String(wr).split(`+`):[""],eo=0,yo=0;yo<Oo.length;yo++)Oo[yo].length>eo&&(eo=Oo[yo].length);return{w:Math.max(50,Math.ceil(eo*6)+21),h:Math.max(24,Math.round(Oo.length*17.7+10))}}function Ro(wr){if(Lr[wr])return wr;for(var Oo=0;Oo<e.length;Oo++)if(e[Oo].name===wr&&Lr[e[Oo].id])return e[Oo].id;return null}for(var Ot=0;Ot<Ho.length;Ot++){var Wo=Ho[Ot],It=Ro(Wo.target),Uo=It?Lr[It]:null,jo=Ze(Wo.text),Nt=10,ne=10;Uo&&(Wo.position==="left"?(Nt=Uo.x-jo.w-18,ne=Uo.y+(Uo.h-jo.h)/2):Wo.position==="top"?(Nt=Uo.x+(Uo.w-jo.w)/2,ne=Uo.y-jo.h-18):Wo.position==="bottom"?(Nt=Uo.x+(Uo.w-jo.w)/2,ne=Uo.y+Uo.h+18):(Nt=Uo.x+Uo.w+18,ne=Uo.y+(Uo.h-jo.h)/2));for(var xe=[],Le=0;Le<Ot;Le++)Ho[Le]._placed&&xe.push(Ho[Le]._placed);for(var He=function(wr,Oo){var eo=xe.slice();for(var yo in Lr)Lr.hasOwnProperty(yo)&&yo!==It&&eo.push(Lr[yo]);for(var Zt=0;Zt<eo.length;Zt++){var Ct=eo[Zt];if(wr<Ct.x+Ct.w&&wr+jo.w>Ct.x&&Oo<Ct.y+Ct.h&&Oo+jo.h>Ct.y)return Ct}return null},Ge=0;Ge<8;Ge++){var je=He(Nt,ne);if(!je)break;Wo.position==="left"?Nt=je.x-jo.w-12:Wo.position==="top"?ne=je.y-jo.h-12:Wo.position==="bottom"?ne=je.y+je.h+12:Nt=je.x+je.w+12}Wo._placed={x:Nt,y:ne,w:jo.w,h:jo.h};var Xo=j("note");if(p=null,h+=N(Xo,Wo.text||"",U("shape=note;size=14;fillColor=#FEFFDD;strokeColor=#181818;fontSize=12;whiteSpace=wrap;align=left;spacingLeft=4;","classDiagram",["note"],null,"vertex",Wo.color?["fillColor","gradientColor"]:null),Math.round(Nt),Math.round(ne),jo.w,jo.h,"1"),Uo){var Dr;Wo.position==="left"?Dr="exitX=1;exitY=0.5;entryX=0;entryY=0.5;":Wo.position==="top"?Dr="exitX=0.5;exitY=1;entryX=0.5;entryY=0;":Wo.position==="bottom"?Dr="exitX=0.5;exitY=0;entryX=0.5;entryY=1;":Dr="exitX=0;exitY=0.5;entryX=1;entryY=0.5;",h+=O(j("noteln"),"","endArrow=none;dashed=1;html=1;strokeColor=#181818;"+Dr+"exitDx=0;exitDy=0;entryDx=0;entryDy=0;",Xo,Uo.cellId,"1")}}return h}var Qi=40,Rs=60,Hf=140,qC=50,$c=26,ws=40,Vl=30,ou=20,ZC=140,jC=30,ss=35,Kf=78,Ci=35;function tu(r){for(var n=String(r??""),e=0,f=0,a=0;a<n.length;a++){var h=n.charAt(a);h===`+`?(e>f&&(f=e),e=0):`iljI!.,:;'"|`.indexOf(h)>=0?e+=4.48:"tfrs ".indexOf(h)>=0?e+=5.44:"mw".indexOf(h)>=0?e+=12.57:"MW".indexOf(h)>=0?e+=14.98:h>="A"&&h<="Z"?e+=9.49:h>="a"&&h<="z"?e+=8.14:e+=7.64}return e>f&&(f=e),f}function au(r){return r?String(r).split(`+`).length:1}function vc(r){for(var n=String(r??"").split(/\\n|\r?\n/),e=[],f=[],a=0,h=0;h<n.length;h++)/^\s*(--|\.\.|==|__)\s*$/.test(n[h])?(f.push(e.length),e.push("")):(e.push(n[h]),a=Math.max(a,tu(n[h])));return{lines:e,seps:f,textW:a}}var zf=16.4,Xu=8.4;function qu(r){var n=vc(r),e=Math.max(n.textW,8),f=n.lines.length-n.seps.length,a=Math.max(1,f)*zf+n.seps.length*Xu,h=a/e;h<.2?h=.2:h>.8&&(h=.8);var B=Math.sqrt(e/2*(e/2)+a/(2*h)*(a/(2*h))),H=h*B;return{w:Math.round(2*B+6),h:Math.round(2*H+6),textH:a,parts:n}}function Wf(r){return r?qu(r).w:Hf}function Uf(r){return qu(r).h}function Xf(r){return String(r??"").replace(/\\r\\n|\\n|\\r/g,``).replace(/<br\s*\/?>/gi,``).replace(/ /g,``).split(`-`)}function Ko(r){for(var s=mo(r),a=0,i=0;i<s.length;i++){var f=Ro(s[i]);f>a&&(a=f)}return Math.max(50,Math.round(a+22))}function fi(r){var s=mo(r).length;return Math.round(s*17.7+10)}function vi(r,s,a){var i={fill:s,stroke:a};if(!r)return i;var f=String(r).replace(/^#/,"").split(";");f[0]&&(i.fill=O("#"+f[0])||s);for(var y=1;y<f.length;y++){var T=f[y].match(/^line\s*:\s*(\S+)/i);if(T){var L=O(T[1]);L&&(i.stroke=L)}}return i}function mi(r,s){var a=r.actors,i=r.usecases,f=r.containers,y=r.relationships,T=r.notes,L=0;if(r.containers)for(var m=0;m<r.containers.length;m++)r.containers[m].parent==null&&L++;var K=!1;if(r.actors&&r.containers)for(var W=0;W<r.actors.length;W++){for(var Y=!1,Lr=0;Lr<r.containers.length;Lr++)if(r.containers[Lr].children&&r.containers[Lr].children.indexOf(r.actors[W].id)>=0){Y=!0;break}if(!Y){K=!0;break}}var mr;r.direction==="LR"?mr="LR":r.direction==="TB"?mr="TB":mr=L>=2&&!K?"LR":"TB";var Rr="",fe=0;function ie(tn){return tn+"_"+fe++}function Ir(tn,qa,ra,Ja,pn){var Fn=ie("actor"),En=vi(pn,"#F1F1F1","#181818"),Ma=u(Fn,"","shape=umlActor;html=1;fillColor="+En.fill+";strokeColor="+En.stroke+";fontColor=#000000;fontSize=12;",qa,ra,wo,Bo,Ja);if(tn){var Dn=Ii(tn),ln=Math.max(wo,Math.round(Ro(tn)+8)),el=ie("actorlbl");Ma+=u(el,tn,"text;html=1;align=center;verticalAlign=top;fontColor=#000000;fontSize=12;",qa+(wo-ln)/2,ra+Bo+2,ln,Dn*16,Ja)}return{id:Fn,cells:Ma}}for(var ir={},Le={},Te=0;Te<f.length;Te++)for(var Qr=0;Qr<f[Te].children.length;Qr++)Le[f[Te].children[Qr]]=!0;var Br=[],q={},ur,Sr;for(ur=0;ur<a.length;ur++)Sr=a[ur],Le[Sr.id]||(Br.push({id:Sr.id,kind:"actor",data:Sr,w:wo,h:Bo}),q[Sr.id]=!0);for(ur=0;ur<i.length;ur++)if(Sr=i[ur],!Le[Sr.id]){var Fr=Sr.stereotype?"\xAB"+Sr.stereotype+`\xBB-`+Sr.name:Sr.name;Br.push({id:Sr.id,kind:"usecase",data:Sr,w:Va(Fr),h:gl(Fr)}),q[Sr.id]=!0}var Ee={},ot={};for(ur=0;ur<Br.length;ur++)Ee[Br[ur].id]=[],ot[Br[ur].id]=0;for(ur=0;ur<y.length;ur++){var I=y[ur];q[I.from]&&q[I.to]&&(Ee[I.from].push({to:I.to,span:I.span!=null?I.span:1}),ot[I.to]++)}var Tr={},de=[],Wr;for(Wr in ot)ot.hasOwnProperty(Wr)&&ot[Wr]===0&&(Tr[Wr]=0,de.push(Wr));for(var zt=Br.length*Br.length+16;de.length>0&&zt-- >0;){var Ue=de.shift(),Ne=Ee[Ue]||[];for(ur=0;ur<Ne.length;ur++){var Ze=Ne[ur].to,Ut=Tr[Ue]+Ne[ur].span;(Tr[Ze]===void 0||Tr[Ze]<Ut)&&(Tr[Ze]=Ut,de.push(Ze))}}for(ur=0;ur<Br.length;ur++)Tr[Br[ur].id]===void 0&&(Tr[Br[ur].id]=0);var Zt={},Be=[];for(ur=0;ur<Br.length;ur++){var he=Tr[Br[ur].id];Zt[he]||(Zt[he]=[],Be.push(he)),Zt[he].push(Br[ur])}Be.sort(function(tn,qa){return tn-qa});for(var Jr=Ml,me=Ml,ge,M,J,Cr,br=mr!=="LR",$r=br?"w":"h",vt=br?si:60,ht={},gt={},X=0;X<T.length;X++){var ue=T[X];q[ue.target]&&(ue.position==="right"?ht[ue.target]=Ko(ue.text)+_o:ue.position==="left"&&(gt[ue.target]=Ko(ue.text)+_o))}var ne={},Re=br?gt:{},Tt=br?ht:{};for(ge=Be.length-1;ge>=0;ge--){J=Zt[Be[ge]];var Se=0;for(M=0;M<J.length;M++){Cr=J[M];for(var qe=Cr[$r]/2,ke=Re[Cr.id]||0,Er=Tt[Cr.id]||0,Vt=Ee[Cr.id]||[],Bt=0,Ge=0,ut=0;ut<Vt.length;ut++)ne[Vt[ut].to]!==void 0&&(Bt+=ne[Vt[ut].to],Ge++);var Gr=Se+ke+qe,re=Ge?Bt/Ge:Gr,ee=re>Gr?re:Gr;ne[Cr.id]=ee,Se=ee+qe+Er+go}}var Yr=1/0;for(ur=0;ur<Br.length;ur++){Cr=Br[ur];var Et=ne[Cr.id]-Cr[$r]/2-(Re[Cr.id]||0);Et<Yr&&(Yr=Et)}var da=Ml-Yr,He=Ml;for(ge=0;ge<Be.length;ge++){J=Zt[Be[ge]];var ct=0;for(M=0;M<J.length;M++){var Ke=br?J[M].h:J[M].w;Ke>ct&&(ct=Ke)}for(M=0;M<J.length;M++){Cr=J[M];var Pa=ne[Cr.id]+da;br?(Cr.x=Pa-Cr.w/2,Cr.y=He+(ct-Cr.h)/2):(Cr.y=Pa-Cr.h/2,Cr.x=He+(ct-Cr.w)/2);var rn=Cr.x+Cr.w+(br&&ht[Cr.id]||0);rn>Jr&&(Jr=rn),Cr.y+Cr.h>me&&(me=Cr.y+Cr.h)}He+=ct+vt}var za={};for(ur=0;ur<Br.length;ur++)za[Br[ur].id]=!0;var Ct={};for(ur=0;ur<Br.length;ur++){var le=Br[ur];if(!(le.kind!=="actor"||f.length===0)){for(var Xr=0,Dt=!0,wt=0;wt<y.length;wt++){var Ve=y[wt].from===le.id?y[wt].to:y[wt].to===le.id?y[wt].from:null;Ve!=null&&(Xr++,za[Ve]&&(Dt=!1))}Xr>0&&Dt&&(Ct[le.id]=!0)}}for(ur=0;ur<Br.length;ur++){var tt=Br[ur];if(!Ct[tt.id]){var jt,Ur=tt.data.name,xr=tt.x+ur*.1;if(tt.data.stereotype&&(Ur="\xAB"+tt.data.stereotype+`\xBB-`+Ur),tt.kind==="actor"){var kt=Ir(Ur,xr,tt.y,"1",tt.data&&tt.data.color);jt=kt.id,Rr+=kt.cells}else{jt=ie("uc");var Aa=vi(tt.data&&tt.data.color,"#F1F1F1","#181818");Rr+=u(jt,Ur,"ellipse;fillColor="+Aa.fill+";strokeColor="+Aa.stroke+";whiteSpace=wrap;fontColor=#000000;fontSize=12;",xr,tt.y,tt.w,tt.h,"1")}ir[tt.id]={x:xr,y:tt.y,w:tt.w,h:tt.h,cellId:jt}}}var Nr,Dr;mr==="LR"?(Nr=Math.max(Ml,Jr),Dr=Ml):(Nr=Ml,Dr=Math.max(Ml,me+ii));for(var Rt=0;Rt<f.length;Rt++){let tn=function(qa,ra,Ja){var pn=ie("uc"),Fn=vi(qa.color,"#F1F1F1","#181818"),En="ellipse;fillColor="+Fn.fill+";strokeColor="+Fn.stroke+";whiteSpace=wrap;fontColor=#000000;fontSize=12;",Ma=qa.name;qa.stereotype&&(Ma="\xAB"+qa.stereotype+`\xBB-`+Ma),Rr+=u(pn,Ma,En,ra,Ja,qa._w,qa._h,wr),ir[qa.id]={x:Nr+ra,y:Dr+Ja,w:qa._w,h:qa._h,cellId:pn}};for(var mt=f[Rt],wr=ie("rect"),at=mt.children,we=[],va=[],ya=0;ya<at.length;ya++){for(var qt=at[ya],Sa=!1,Wt=0;Wt<i.length&&!Sa;Wt++)i[Wt].id===qt&&(we.push(i[Wt]),Sa=!0);for(var Ga=0;Ga<a.length&&!Sa;Ga++)a[Ga].id===qt&&(va.push(a[Ga]),Sa=!0)}var xt=r.direction==="LR",pt,Ta,Ca=0;for(pt=0;pt<we.length;pt++){var Mt=we[pt],Lt=Mt.stereotype?"\xAB"+Mt.stereotype+`\xBB-`+Mt.name:Mt.name;Mt._w=Va(Lt),Mt._h=gl(Lt),Ca+=Mt._w,pt>0&&(Ca+=go)}var Je=[];if(xt&&we.length>0){var $t={},wa={};for(pt=0;pt<we.length;pt++)$t[we[pt].id]=0,wa[we[pt].id]=!0;for(var Ba=0;Ba<we.length+2;Ba++)for(var nt=0;nt<y.length;nt++){var Ra=y[nt];if(!(!wa[Ra.from]||!wa[Ra.to])){var Ha=Ra.span!=null?Ra.span:1,it=$t[Ra.from]+Ha;$t[Ra.to]<it&&($t[Ra.to]=it)}}for(pt=0;pt<we.length;pt++){for(var ta=$t[we[pt].id];Je.length<=ta;)Je.push([]);Je[ta].push(we[pt])}for(var Ea={},ua=0;ua<a.length;ua++)Ea[a[ua].id]=ua;for(var ha=0;ha<Je.length;ha++){for(var Nt=[],tr=0;tr<Je[ha].length;tr++){for(var pr=0,rr=0,er=0;er<y.length;er++)y[er].to===Je[ha][tr].id&&Ea[y[er].from]!==void 0&&(pr+=Ea[y[er].from],rr++);Nt.push({m:Je[ha][tr],i:tr,k:rr?pr/rr:tr})}Nt.sort(function(qa,ra){return qa.k-ra.k||qa.i-ra.i}),Je[ha]=[];for(var Ar=0;Ar<Nt.length;Ar++)Je[ha].push(Nt[Ar].m)}}var se=va.length*wo;va.length>1&&(se+=(va.length-1)*go);for(var kr=va.length>0,xe=we.length>0,Kr=[],oe=[],Kt=0,ga=0,Fe=0;Fe<Je.length;Fe++){for(var Da=0,It=0,dt=0;dt<Je[Fe].length;dt++)Je[Fe][dt]._w>Da&&(Da=Je[Fe][dt]._w),dt>0&&(It+=ii),It+=Je[Fe][dt]._h;Kr.push(Da),oe.push(It),Fe>0&&(Kt+=go),Kt+=Da,It>ga&&(ga=It)}var Me=Math.max(xt?Kt:Ca,se,oi),At=Me+bo*2,sa=26,Gt=sa+bo,Yt=kr?Gt+Bo+18+53:Gt,St;if(xe?St=(xt?Yt+ga:Yt+34)+bo:St=Gt+Bo+18+bo,mt.kind==="package"){var st=Math.min(At,Math.round(Ro(mt.name)*1.15+24));st<30&&(st=30),Rr+=u(wr,"","rounded=0;fillColor=none;strokeColor=#181818;",Nr,Dr,At,St,"1"),Rr+=u(ie("ucptab"),mt.name,"text;html=1;fillColor=none;strokeColor=none;fontColor=#000000;fontSize=13;fontStyle=1;align=left;verticalAlign=middle;spacingLeft=6;",Nr,Dr-22,st-8,22,"1"),Rr+=z(ie("ucptb"),"","endArrow=none;startArrow=none;strokeColor=#181818;",Nr,Dr-22,Nr+st-8,Dr-22,"1"),Rr+=z(ie("ucptb"),"","endArrow=none;startArrow=none;strokeColor=#181818;",Nr+st-8,Dr-22,Nr+st,Dr,"1"),Rr+=z(ie("ucptb"),"","endArrow=none;startArrow=none;strokeColor=#181818;",Nr,Dr-22,Nr,Dr,"1")}else Rr+=u(wr,mt.name,"swimlane;collapsible=0;startSize=26;fillColor=none;strokeColor=#181818;fontColor=#000000;fontSize=13;fontStyle=1;whiteSpace=wrap;",Nr,Dr,At,St,"1");var Ye=(At-se)/2;for(Ta=0;Ta<va.length;Ta++){var $e=va[Ta],bt=$e.name;$e.stereotype&&(bt="\xAB"+$e.stereotype+`\xBB-`+bt);var aa=Ir(bt,Ye,Gt,wr,$e.color);Rr+=aa.cells,ir[$e.id]={x:Nr+Ye,y:Dr+Gt,w:wo,h:Bo,cellId:aa.id},Ye+=wo+go}if(xt)for(var ka=(At-Kt)/2,Fa=0;Fa<Je.length;Fa++){for(var Oe=Yt+(ga-oe[Fa])/2,na=0;na<Je[Fa].length;na++){var ja=Je[Fa][na];tn(ja,ka+(Kr[Fa]-ja._w)/2,Oe),Oe+=ja._h+ii}ka+=Kr[Fa]+go}else{var an=(At-Ca)/2;for(pt=0;pt<we.length;pt++)tn(we[pt],an,Yt),an+=we[pt]._w+go}Nr+=At+_i}for(ur=0;ur<Br.length;ur++){var Xt=Br[ur];if(Ct[Xt.id]){for(var gn=0,Xe=0,sr=0;sr<y.length;sr++){var cr=y[sr].from===Xt.id?y[sr].to:y[sr].to===Xt.id?y[sr].from:null;cr==null||!ir[cr]||(gn+=ir[cr].x+ir[cr].w/2,Xe++)}var te=Xe>0?gn/Xe-Xt.w/2:Xt.x,Ie=Ir(Xt.data.name,te,Xt.y,"1",Xt.data&&Xt.data.color);Rr+=Ie.cells,ir[Xt.id]={x:te,y:Xt.y,w:Xt.w,h:Xt.h,cellId:Ie.id}}}for(var rt=0;rt<y.length;rt++){var ce=y[rt],lt=ir[ce.from],Ot=ir[ce.to];if(!(!lt||!Ot)){var la;ce.type==="generalization"?la="endArrow=block;endFill=0;":ce.type==="dependency"?la=ce.directed?"endArrow=open;dashed=1;dashPattern=5 5;":"endArrow=none;dashed=1;":la=ce.directed?"endArrow=block;endFill=1;":"endArrow=none;",la+="strokeColor=#181818;fontColor=#000000;fontSize=11;edgeStyle=none;rounded=0;html=1;";var Ua="";ce.stereotype&&(Ua="\xAB"+ce.stereotype+"\xBB"),ce.label&&(Ua=Ua?Ua+`-`+ce.label:ce.label),Rr+=jr(ie("rel"),Ua,la,lt.cellId,Ot.cellId,"1")}}for(var oa=me+si,Pt=0;Pt<T.length;Pt++){var yt=T[Pt],fa=yt.position==="floating"?yt.anchor:yt.target,ft=fa?ir[fa]:null,pa=Ko(yt.text),cn=fi(yt.text),$a=Ml,nn=Ml;yt.position==="floating"?ft?($a=ft.x+(ft.w-pa)/2,nn=ft.y+ft.h+58):($a=Ml,nn=oa,oa+=cn+ii):ft&&(yt.position==="left"?($a=ft.x-pa-_o,$a<Ml&&($a=Ml),nn=ft.y+(ft.h-cn)/2):yt.position==="top"?($a=ft.x+(ft.w-pa)/2,nn=ft.y-cn-_o):yt.position==="bottom"?($a=ft.x+(ft.w-pa)/2,nn=ft.y+ft.h+_o):($a=ft.x+ft.w+_o,nn=ft.y+(ft.h-cn)/2));var An=ie("note");Rr+=u(An,yt.text||"","shape=note;size=14;fillColor=#FEFFDD;strokeColor=#181818;fontSize=12;whiteSpace=wrap;align=left;",$a,nn,pa,cn,"1"),ft&&ft.cellId&&(Rr+=jr(ie("noteln"),"","endArrow=none;dashed=1;html=1;strokeColor=#181818;",An,ft.cellId,"1"))}return Rr}var jl=39.0679,xo=50,Wl=20,Yo=20,qo=10,ds=20,df=10,yf=3,Ts=14,Us={" ":4.25,0:7.53,1:7.53,2:7.53,3:7.53,4:7.53,5:7.53,6:7.53,7:7.53,8:7.53,9:7.53,A:8.95,B:9.1,C:8.85,D:10.22,E:7.78,L:8.09,R:7.98,a:7.86,b:8.57,c:6.93,e:7.02,f:4.78,g:7.33,h:6.76,i:7.33,l:4.19,n:8.05,o:8.8,r:8.05,t:5.09};function Cf(r){if(Us.hasOwnProperty(r))return Us[r];var s=r.charCodeAt(0);return s>=48&&s<=57?7.53:s>=65&&s<=90?8.7:(s>=97&&s<=122,7)}function xi(r){for(var s=String(r??"").split(`-`),a=0,i=0;i<s.length;i++){for(var f=0,y=0;y<s[i].length;y++)f+=Cf(s[i].charAt(y));f>a&&(a=f)}return a}function ys(r){var s=r.style==="leaf"?yf:df;return xi(g(r.label))+2*s}function Zs(r){var s=String(r??"").replace(/^\s+|\s+$/g,"");return/^\*\*[\s\S]+\*\*$/.test(s)&&s.indexOf("**",2)===s.length-2?1:/^\/\/[\s\S]+\/\/$/.test(s)&&s.indexOf("//",2)===s.length-2?2:/^__[\s\S]+__$/.test(s)&&s.indexOf("__",2)===s.length-2?4:0}function wf(r){return"rounded=1;arcSize=25;absoluteArcSize=1;fillColor="+r+";strokeColor=#181818;strokeWidth=1.5;whiteSpace=wrap;fontColor=#000000;fontSize="+Ts+";"}function bf(r){var s;r.style==="leaf"?s="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;fontColor=#000000;fontSize="+Ts+";":s=wf(O(r.color)||"#F1F1F1");var a=Zs(r.label);return a!==0&&(s+="fontStyle="+a+";"),s}function _f(r){return/\*\*[\s\S]+?\*\*|\/\/[\s\S]+?\/\/|__[\s\S]+?__|~~[\s\S]+?~~/.test(String(r??""))}function Bs(r,s,a,i,f,y){var T=bf(s);return Zs(s.label)===0&&_f(s.label)?(T.indexOf("html=1;")<0&&(T+="html=1;"),Hr(r,c(s.label),T,a,i,f,y,"1")):u(r,s.label,T,a,i,f,y,"1")}function Xo(r){if(r.children.length===0)return jl;for(var s=0,a=0;a<r.children.length;a++)a>0&&(s+=Wl),s+=Xo(r.children[a]);return Math.max(jl,s)}function mf(r){var s={},a={},i=0,f=0;function y(L,m,K){(!L[m]||K>L[m])&&(L[m]=K)}function T(L,m,K){for(var W=0;W<L.children.length;W++){var Y=L.children[W],Lr=m===0?Y.side==="left"?"left":"right":K,mr=ys(Y);Lr==="left"?(y(a,m+1,mr),m+1>f&&(f=m+1)):(y(s,m+1,mr),m+1>i&&(i=m+1)),T(Y,m+1,Lr)}}return T(r,0,"right"),{rootWidth:ys(r),maxRight:s,maxLeft:a,rightDepth:i,leftDepth:f}}function Cs(r,s,a,i,f,y,T){var L="",m=ys(r),K=a==="left"?f.leftRight[s]-m:f.rightLeft[s],W=i-jl/2,Y=y("mm");if(L+=Bs(Y,r,K,W,m,jl),T){var Lr=a==="left"?"exitX=0;exitY=0.5;entryX=1;entryY=0.5;":"exitX=1;exitY=0.5;entryX=0;entryY=0.5;";L+=jr(y("mmedge"),"","edgeStyle=orthogonalEdgeStyle;curved=1;endArrow=none;startArrow=none;html=1;strokeColor=#181818;"+Lr,T,Y,"1")}if(r.children.length>0){for(var mr=0,Rr=0;Rr<r.children.length;Rr++)Rr>0&&(mr+=Wl),mr+=Xo(r.children[Rr]);for(var fe=i-mr/2,ie=0;ie<r.children.length;ie++){var Ir=r.children[ie],ir=Xo(Ir),Le=fe+ir/2,Te=Cs(Ir,s+1,a,Le,f,y,Y);L+=Te.cells,fe+=ir+Wl}}return{cells:L}}function xf(r,s,a){for(var i=[],f=[],y=0;y<r.children.length;y++){var T=r.children[y];T.side==="left"?f.push(T):i.push(T)}for(var L=mf(r),m=0,K=1;K<=L.leftDepth;K++)L.maxLeft[K]&&(m+=L.maxLeft[K]+xo);for(var W=qo+m,Y={0:W},Lr=W+L.rootWidth,mr=1;mr<=L.rightDepth;mr++)Y[mr]=Lr+xo,Lr=Y[mr]+(L.maxRight[mr]||0);for(var Rr={},fe=W,ie=1;ie<=L.leftDepth;ie++)Rr[ie]=fe-xo,fe=Rr[ie]-(L.maxLeft[ie]||0);L.rightLeft=Y,L.leftRight=Rr;for(var Ir=0,ir=0;ir<i.length;ir++)ir>0&&(Ir+=Wl),Ir+=Xo(i[ir]);for(var Le=0,Te=0;Te<f.length;Te++)Te>0&&(Le+=Wl),Le+=Xo(f[Te]);var Qr=Math.max(Ir,Le,jl),Br=s+Qr/2,q="",ur=a("root");if(q+=Bs(ur,r,W,Br-jl/2,L.rootWidth,jl),i.length>0)for(var Sr=Br-Ir/2,Fr=0;Fr<i.length;Fr++){var Ee=i[Fr],ot=Xo(Ee),I=Sr+ot/2,Tr=Cs(Ee,1,"right",I,L,a,ur);q+=Tr.cells,Sr+=ot+Wl}if(f.length>0)for(var de=Br-Le/2,Wr=0;Wr<f.length;Wr++){var zt=f[Wr],Ue=Xo(zt),Ne=de+Ue/2,Ze=Cs(zt,1,"left",Ne,L,a,ur);q+=Ze.cells,de+=Ue+Wl}return{cells:q,height:Qr,rightEdge:Lr}}function Af(r,s){var a=0;function i(Qr){return Qr+"_"+a++}for(var f=[],y=r.roots||(r.root?[r.root]:[]),T=0;T<y.length;T++)y[T]&&y[T].label&&f.push(y[T]);if(f.length===0)return"";for(var L="",m=ds,K=0,W=0;W<f.length;W++){var Y=xf(f[W],m,i);L+=Y.cells,m+=Y.height+Yo,Y.rightEdge>K&&(K=Y.rightEdge)}var Lr=m-Yo,mr=K+qo;if(r.title){var Rr=xi(g(r.title))+10;L+=u(i("title"),r.title,"text;html=1;fillColor=none;strokeColor=none;fontSize=14;fontStyle=1;fontColor=#000000;align=center;verticalAlign=middle;",(mr-Rr)/2,-34,Rr,24,"1")}if(r.header&&r.header.text){var fe=xi(g(r.header.text))*.7142857142857143+8,ie=r.header.align==="left"?qo:r.header.align==="center"?(mr-fe)/2:mr-qo-fe;L+=u(i("header"),r.header.text,"text;html=1;fillColor=none;strokeColor=none;fontSize=10;fontColor=#888888;align="+(r.header.align||"right")+";verticalAlign=middle;",ie,r.title?-56:-34,fe,16,"1")}var Ir=Lr+13;if(r.caption){var ir=xi(g(r.caption))+10;L+=u(i("caption"),r.caption,"text;html=1;fillColor=none;strokeColor=none;fontSize=14;fontColor=#000000;align=center;verticalAlign=middle;",(mr-ir)/2,Ir,ir,22,"1"),Ir+=18}if(r.footer&&r.footer.text){var Le=xi(g(r.footer.text))*.7142857142857143+8,Te=r.footer.align==="left"?qo:r.footer.align==="right"?mr-qo-Le:(mr-Le)/2;L+=u(i("footer"),r.footer.text,"text;html=1;fillColor=none;strokeColor=none;fontSize=10;fontColor=#888888;align="+(r.footer.align||"center")+";verticalAlign=middle;",Te,Ir,Le,16,"1")}return L}var Oo=36.3441,Sf=10,Ao=10,Rs=40,kf=20,qs=10,ws=15,Ms="#181818",Ff="#F1F1F1";function $f(r){for(var s=String(r??"").split(`-`),a=0,i=0;i<s.length;i++){var f=no(s[i],!1);f>a&&(a=f)}return a+2*Sf}function Is(r){if(r.children.length===0)return r._w;for(var s=0,a=0;a<r.children.length;a++){var i=Is(r.children[a]);i>s&&(s=i)}return Math.max(r._w,r._w/2+qs+s)}function Gs(r,s,a,i){var f=s+r._w/2;if(r._x=s,r._y=a,r._cx=f,i.boxes.push(r),r.children.length===0)return a+Oo;for(var y=f+qs,T=a+Oo+ws,L=a+Oo,m=0;m<r.children.length;m++){var K=r.children[m],W=Gs(K,y,T,i),Y=K._y+Oo/2;L=Y,i.lines.push({x1:f,y1:Y,x2:K._x,y2:Y}),T=W+ws}return i.lines.push({x1:f,y1:a+Oo,x2:f,y2:L}),T-ws}function Of(r,s){var a=r.root;if(!a||!a.label)return"";var i=0;function f(Sr){return Sr+"_"+i++}(function Sr(Fr){Fr._w=$f(Fr.label);for(var Ee=0;Ee<Fr.children.length;Ee++)Sr(Fr.children[Ee])})(a);var y={boxes:[],lines:[]},T=Ao+Oo+Rs,L=Ao+Oo+Rs/2,m,K,W;if(a.children.length>0){var Y=Ao,Lr=null,mr=null;for(m=0;m<a.children.length;m++){var Rr=a.children[m],fe=Is(Rr);Gs(Rr,Y,T,y),Lr==null&&(Lr=Rr._cx),mr=Rr._cx,y.lines.push({x1:Rr._cx,y1:L,x2:Rr._cx,y2:Rr._y}),Y+=fe+kf}var ie=(Lr+mr)/2;a._x=ie-a._w/2,a._y=Ao,a._cx=ie,y.boxes.push(a),y.lines.push({x1:ie,y1:Ao+Oo,x2:ie,y2:L}),Lr!==mr&&y.lines.push({x1:Lr,y1:L,x2:mr,y2:L})}else a._x=Ao,a._y=Ao,a._cx=Ao+a._w/2,y.boxes.push(a);var Ir=1/0,ir=1/0;for(m=0;m<y.boxes.length;m++)K=y.boxes[m],K._x<Ir&&(Ir=K._x),K._y<ir&&(ir=K._y);for(m=0;m<y.lines.length;m++)W=y.lines[m],Math.min(W.x1,W.x2)<Ir&&(Ir=Math.min(W.x1,W.x2)),Math.min(W.y1,W.y2)<ir&&(ir=Math.min(W.y1,W.y2));var Le=Ao-Ir,Te=Ao-ir,Qr="",Br="endArrow=none;startArrow=none;rounded=0;strokeColor="+Ms+";strokeWidth=1.5;";for(m=0;m<y.lines.length;m++)W=y.lines[m],Qr+=z(f("wbse"),"",Br,W.x1+Le,W.y1+Te,W.x2+Le,W.y2+Te,"1");for(m=0;m<y.boxes.length;m++){K=y.boxes[m];var q=O(K.color)||Ff,ur="rounded=0;fillColor="+q+";strokeColor="+Ms+";strokeWidth=1.5;fontColor=#000000;fontSize=12;";Qr+=u(f("wbs"),K.label,ur,K._x+Le,K._y+Te,K._w,Oo,"1")}return Qr}var ml=23,bs=14,Hs=37,Ql=18,Js=20,_s=26;function Pf(r){return"rounded=1;absoluteArcSize=1;arcSize=10;whiteSpace=wrap;fillColor="+r+";strokeColor=#000000;strokeWidth=1.5;"}function Vs(r){return"shape=table;childLayout=tableLayout;container=1;collapsible=0;startSize=0;rowLines=1;fixedRows=1;resizeLast=1;rounded=1;absoluteArcSize=1;arcSize=10;whiteSpace=wrap;fillColor="+r+";strokeColor=#000000;strokeWidth=1.5;"}function js(r){return"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;collapsible=0;dropTarget=0;strokeColor=#000000;top=0;left=0;right=0;bottom=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fillColor="+(r||"none")+";"}function ms(r,s){return"shape=partialRectangle;connectable=0;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right="+(s?1:0)+";strokeColor=#000000;whiteSpace=wrap;fontSize="+bs+";align=left;spacingLeft=5;verticalAlign=middle;"+(r?"fontStyle=1;":"")}var Ws="endArrow=classic;dashed=1;dashPattern=3 3;curved=1;html=1;strokeColor=#000000;";function Ai(r,s){for(var a=String(r),i=0,f=0;f<a.length;f++){var y=a.charAt(f);`iIljtfr.,:;!|'"()[]{} `.indexOf(y)>=0?i+=4.2:"mwMW".indexOf(y)>=0?i+=11.7:i+=7.8}return Math.ceil(i*(s?1.08:1))+10}function Si(r){if(r==null||typeof r!="object"){var s=Math.max(40,Ai(String(r),!1)+5);return{keyW:0,valW:s,w:s}}if(Array.isArray(r)){for(var a=_s,i=0;i<r.length;i++)(r[i]==null||typeof r[i]!="object")&&(a=Math.max(a,Ai(String(r[i]),!1)+5));return{keyW:0,valW:a,w:a}}var f=_s,y=_s;for(var T in r)if(r.hasOwnProperty(T)){f=Math.max(f,Ai(T,!0));var L=r[T];(L==null||typeof L!="object")&&(y=Math.max(y,Ai(String(L),!1)+5))}return{keyW:f,valW:y,w:f+y}}function ui(r){if(r==null||typeof r!="object")return ml;var s=0,a=0;if(Array.isArray(r)){s=r.length;for(var i=0;i<r.length;i++)r[i]!=null&&typeof r[i]=="object"&&(a+=ui(r[i])+Ql)}else for(var f in r)r.hasOwnProperty(f)&&(s++,r[f]!=null&&typeof r[f]=="object"&&(a+=ui(r[f])+Ql));return Math.max(Math.max(1,s)*ml,a>0?a-Ql:0)}function xs(r,s,a,i,f,y,T){var L="",m=y!==""?y:r;r===""&&y===""&&(m="");for(var K=!1,W=0;W<f.length;W++)if(f[W]===m){K=!0;break}var Y=K?"#CCFF02":"#F1F1F1",Lr="text;whiteSpace=wrap;fontSize="+bs+";align=left;spacingLeft=5;verticalAlign=middle;",mr=Si(s);if(s==null||typeof s!="object"){var Rr=r!==""?r+": "+String(s):String(s),fe=Math.max(40,Ai(Rr,!1)),ie=T("jn");return L+=u(ie,Rr,Pf(Y)+"fontSize="+bs+";align=left;spacingLeft=5;",a,i,fe,ml,"1"),{cells:L,height:ml,width:fe,rootId:ie}}if(Array.isArray(s)){var Ir=Math.max(1,s.length),ir=mr.w,Le=ml*Ir,Te=T("ja");L+=u(Te,"",Vs(Y),a,i,ir,Le,"1");for(var Qr=[],Br=0;Br<s.length;Br++){var q=s[Br]!=null&&typeof s[Br]=="object",ur=q?"":String(s[Br]),Sr=T("jw");L+=u(Sr,"",js(null),0,Br*ml,ir,ml,Te);var Fr=T("jr");if(L+=u(Fr,ur,ms(!1,!1),0,0,ir,ml,Sr),q){var Ee=T("jb");Qr[Br]=Ee,L+=u(Ee,"","ellipse;fillColor=#000000;strokeColor=#000000;",ir-16,ml/2-3,6,6,Fr)}}for(var ot=a+ir+Hs,I=Le,Tr=0,de=0,Wr=0,zt=-1,Ue=0;Ue<s.length;Ue++)s[Ue]!=null&&typeof s[Ue]=="object"&&(Tr=Math.max(Tr,Si(s[Ue]).w),de+=ui(s[Ue])+Ql,Wr++,zt=Ue);var Ne=i;Wr===1?Ne=i+Math.max(0,zt*ml+ml/2-ui(s[zt])/2):Wr>1&&(Ne=i+Math.max(0,(Le-(de-Ql))/2));for(var Ze=0;Ze<s.length;Ze++)if(s[Ze]!=null&&typeof s[Ze]=="object"){var Ut=m!==""?m+"/"+Ze:String(Ze),Zt=Si(s[Ze]).w,Be=xs(String(Ze),s[Ze],ot+(Tr-Zt)/2,Ne,f,Ut,T);L+=Be.cells,L+=jr(T("je"),"",Ws,Qr[Ze],Be.rootId,"1"),Ne+=Be.height+Ql}return Ne-Ql>i+Le&&(I=Ne-Ql-i),{cells:L,height:I,width:ir,rootId:Te}}var he=[];for(var Jr in s)s.hasOwnProperty(Jr)&&he.push(Jr);var me=Math.max(1,he.length),ge=mr.keyW,M=mr.w,J=ml*me,Cr=T("jo");L+=u(Cr,"",Vs(Y),a,i,M,J,"1");for(var br=[],$r=0;$r<he.length;$r++){for(var vt=s[he[$r]],ht=vt!=null&&typeof vt=="object",gt=ht?"":String(vt),X=m!==""?m+"/"+he[$r]:he[$r],ue=!1,ne=0;ne<f.length;ne++)if(f[ne]===X){ue=!0;break}var Re=$r*ml,Tt=T("jw");L+=u(Tt,"",js(ue?"#CCFF02":null),0,Re,M,ml,Cr),L+=u(T("jr"),he[$r],ms(!0,!0),0,0,ge,ml,Tt);var Se=T("jr");if(L+=u(Se,gt,ms(!1,!1),ge,0,M-ge,ml,Tt),ht){var qe=T("jb");br[$r]=qe,L+=u(qe,"","ellipse;fillColor=#000000;strokeColor=#000000;",M-ge-16,ml/2-3,6,6,Se)}}for(var ke=a+M+Hs,Er=J,Vt=0,Bt=0,Ge=0,ut=-1,Gr=0;Gr<he.length;Gr++){var re=s[he[Gr]];re!=null&&typeof re=="object"&&(Vt=Math.max(Vt,Si(re).w),Bt+=ui(re)+Ql,Ge++,ut=Gr)}var ee=i;Ge===1?ee=i+Math.max(0,ut*ml+ml/2-ui(s[he[ut]])/2):Ge>1&&(ee=i+Math.max(0,(J-(Bt-Ql))/2));for(var Yr=0;Yr<he.length;Yr++){var Et=s[he[Yr]];if(Et!=null&&typeof Et=="object"){var da=m!==""?m+"/"+he[Yr]:he[Yr],He=Si(Et).w,ct=xs(he[Yr],Et,ke+(Vt-He)/2,ee,f,da,T);L+=ct.cells,L+=jr(T("je"),"",Ws,br[Yr],ct.rootId,"1"),ee+=ct.height+Ql}}return ee-Ql>i+J&&(Er=ee-Ql-i),{cells:L,height:Er,width:M,rootId:Cr}}function Qs(r){var s=0;function a(i){return i+"_"+s++}return r.data==null?"":xs("",r.data,Js,Js,r.highlights||[],"",a).cells}function zf(r){return Qs(r)}function Ns(r){return O(r)}function Ef(r){if(!r)return 1;var s=String(r).split(/\\n|\r\n|\r|\n|<br\s*\/?>/i);return s.length<1?1:s.length}function Ks(r,s){if(!r)return 0;for(var a=String(r).split(/\\n|\r\n|\r|\n|<br\s*\/?>/i),i=0,f=0;f<a.length;f++)a[f].length>i&&(i=a[f].length);return i*s*.5}function Df(r){var s=r.tasks,a="",i=0;function f(Ea){return Ea+"_"+i++}if(s.length===0)return"";var y=4;function T(Ea){return Ea.replace(/(fontSize|strokeWidth|endSize|spacingLeft|spacingTop)=([0-9.]+)/g,function(ua,ha,Nt){return ha+"="+parseFloat(Nt)*y})}function L(Ea,ua,ha,Nt,tr,pr,rr,er){return N(Ea,ua,T(ha),Nt*y,tr*y,pr*y,rr*y,er)}function m(Ea,ua,ha,Nt,tr,pr,rr,er){return pe(Ea,ua,T(ha),Nt*y,tr*y,pr*y,rr*y,er)}var K={},W={},Y=0,Lr=[!1,!1,!1,!1,!1,!1,!1],mr=!1;if(r.projectStart&&r.closedWeekdays&&r.closedWeekdays.length){for(var Rr={sunday:0,monday:1,tuesday:2,wednesday:3,thursday:4,friday:5,saturday:6},fe=0;fe<r.closedWeekdays.length;fe++){var ie=Rr[r.closedWeekdays[fe]];ie!==void 0&&(Lr[ie]=!0,mr=!0)}Lr.join()==="true,true,true,true,true,true,true"&&(mr=!1)}var Ir=r.projectStart?new Date(r.projectStart+"T00:00:00Z").getUTCDay():1;function ir(Ea){return mr&&Lr[(Ir+Ea%7+7)%7]}function Le(Ea){for(;ir(Ea);)Ea++;return Ea}function Te(Ea,ua){var ha=Le(Ea);if(!mr||ua<=0)return{s:ha,e:ha+ua};for(var Nt=0,tr=ha;Nt<ua;)ir(tr)||Nt++,tr++;return{s:ha,e:tr}}for(var Qr=0;Qr<s.length;Qr++){var Br=0;if(s[Qr].after&&K[s[Qr].after])Br=K[s[Qr].after].e;else if(s[Qr].start&&r.projectStart){var q=Date.parse(s[Qr].start+"T00:00:00Z")-Date.parse(r.projectStart+"T00:00:00Z");!isNaN(q)&&q>0&&(Br=Math.round(q/864e5))}var ur=Te(Br,s[Qr].duration),Sr={s:ur.s,d:s[Qr].duration,e:ur.e};K[s[Qr].name]=Sr,W[s[Qr].name]=Qr,s[Qr].alias&&(K[s[Qr].alias]=Sr,W[s[Qr].alias]=Qr),Sr.e>Y&&(Y=Sr.e)}Y<1&&(Y=10);for(var Fr=16,Ee=15,ot=4,I=!!r.projectStart,Tr=I?39:6,de=I?41:18,Wr=[],zt=[],Ue=de,Ne=0;Ne<s.length;Ne++){var Ze=s[Ne].isMilestone?1:Ef(s[Ne].name),Ut=Ze*Ee;Wr[Ne]=Ue,zt[Ne]=Ut,Ue+=Ut+ot}for(var Zt=s.length?Wr[s.length-1]+zt[s.length-1]:de,Be=[],he={},Jr=32,me=0;me<s.length;me++){var ge=s[me];if(!(ge.isMilestone||!ge.resource)){he[ge.resource]||(he[ge.resource]={},Be.push(ge.resource));for(var M=K[ge.name],J=M.s;J<M.e;J++)ir(J)||(he[ge.resource][J]=!0)}}var Cr=Be.length*Jr,br=Zt+Cr+(I?2:10),$r=Y*Fr,vt=null,ht=[];if(I){var gt=["Mo","Tu","We","Th","Fr","Sa","Su"],X=new Date(r.projectStart+"T00:00:00Z"),ue=(X.getUTCDay()+6)%7;vt=[];for(var ne=0;ne<Y;ne++)vt[ne]=gt[(ue+ne)%7],ht[ne]=String(new Date(X.getTime()+ne*864e5).getUTCDate())}else for(var Re=0;Re<Y;Re++)ht[Re]=String(Re+1);var Tt=r.printScale==="weekly"&&I;function Se(Ea){var ua=new Date(Date.parse(r.projectStart+"T00:00:00Z")+Ea*864e5),ha=(ua.getUTCDay()+6)%7;ua=new Date(ua.getTime()+(3-ha)*864e5);var Nt=new Date(Date.UTC(ua.getUTCFullYear(),0,4)),tr=(Nt.getUTCDay()+6)%7;return Nt=new Date(Nt.getTime()+(3-tr)*864e5),1+Math.round((ua.getTime()-Nt.getTime())/6048e5)}var qe=[];if(Tt)for(var ke=0,Er=1;Er<=Y;Er++){var Vt=(Ir+Er)%7;(Er===Y||Vt===1)&&(qe.push({s:ke,e:Er}),ke=Er)}if(mr)for(var Bt=0;Bt<Y;Bt++)ir(Bt)&&(a+=L(f("gsh"),"","rounded=0;fillColor=#F5DBDB;strokeColor=none;",Bt*Fr,Tr,Fr,br-Tr,"1"));for(var Ge=0;Ge<=Y;Ge++)if(!(Tt&&Ge!==0&&Ge!==Y&&(Ir+Ge)%7!==1)){var ut=Ge*Fr;a+=m(f("gg"),"","endArrow=none;startArrow=none;strokeColor=#C0C0C0;strokeWidth=1;",ut,Tr,ut,br,"1")}I&&(a+=m(f("gg"),"","endArrow=none;startArrow=none;strokeColor=#C0C0C0;strokeWidth=1;",0,Tr,$r,Tr,"1"),a+=m(f("gg"),"","endArrow=none;startArrow=none;strokeColor=#C0C0C0;strokeWidth=1;",0,br,$r,br,"1"));var Gr=I?26:0,re;if(Tt)for(var ee=0;ee<qe.length;ee++){var Yr=qe[ee];a+=L(f("gt"),String(Se(Yr.s)),"text;html=1;align=center;verticalAlign=middle;fontSize=11;fontColor=#000000;",Yr.s*Fr,Gr,(Yr.e-Yr.s)*Fr,12,"1"),a+=L(f("gt"),String(Se(Yr.s)),"text;html=1;align=center;verticalAlign=middle;fontSize=11;fontColor=#000000;",Yr.s*Fr,br+1,(Yr.e-Yr.s)*Fr,12,"1")}else{for(re=0;re<Y;re++)a+=L(f("gt"),ht[re],"text;html=1;align=center;verticalAlign=middle;fontSize=10;fontColor=#000000;",re*Fr,Gr,Fr,12,"1");if(I)for(re=0;re<Y;re++)a+=L(f("gt"),vt[re],"text;html=1;align=center;verticalAlign=middle;fontSize=10;fontColor=#000000;",re*Fr,14,Fr,12,"1");if(I)for(re=0;re<Y;re++)a+=L(f("gt"),vt[re],"text;html=1;align=center;verticalAlign=middle;fontSize=10;fontColor=#000000;",re*Fr,br+1,Fr,12,"1"),a+=L(f("gt"),ht[re],"text;html=1;align=center;verticalAlign=middle;fontSize=10;fontColor=#000000;",re*Fr,br+15,Fr,12,"1");else for(re=0;re<Y;re++)a+=L(f("gt"),ht[re],"text;html=1;align=center;verticalAlign=middle;fontSize=10;fontColor=#000000;",re*Fr,br-4,Fr,12,"1")}if(I)for(var Et=["January","February","March","April","May","June","July","August","September","October","November","December"],da=new Date(r.projectStart+"T00:00:00Z"),He=0,ct=1;ct<=Y;ct++){var Ke=new Date(da.getTime()+(ct-1)*864e5),Pa=ct===Y,rn=Pa?null:new Date(da.getTime()+ct*864e5),za=Pa||rn.getUTCMonth()!==Ke.getUTCMonth()||rn.getUTCFullYear()!==Ke.getUTCFullYear();if(za){var Ct=new Date(da.getTime()+He*864e5),le=Et[Ct.getUTCMonth()]+" "+Ct.getUTCFullYear(),Xr=He*Fr,Dt=(ct-He)*Fr;a+=L(f("gm"),le,"text;html=1;align=center;verticalAlign=middle;fontSize=12;fontStyle=1;fontColor=#000000;",Xr,0,Dt,14,"1"),a+=L(f("gm"),le,"text;html=1;align=center;verticalAlign=middle;fontSize=12;fontStyle=1;fontColor=#000000;",Xr,br+(Tt?15:29),Dt,14,"1"),He=ct}}for(var wt=0;wt<s.length;wt++){var Ve=s[wt];if(!Ve.isMilestone){var tt=K[Ve.name],jt=tt.s*Fr+2,Ur=Math.max((tt.e-tt.s)*Fr-4,4),xr=Wr[wt],kt=zt[wt],Aa="#181818";Ve.color&&Ve.color.indexOf("/")>=0&&(Aa=Ns(Ve.color.split("/")[1])||"#181818");var Nr=r.monochrome?"#E3E3E3":"#E2E2F0";Ve.color&&(Nr=Ns(Ve.color.split("/")[0])||Nr),Ve.progress===0&&!Ve.color&&(Nr="#FFFFFF");var Dr=Ve.progress!=null&&Ve.progress>0&&Ve.progress<100&&!Ve.color,Rt=Ve.name+(Ve.resource?" {"+Ve.resource+"}":""),mt=Ks(Rt,11),wr=mt<=Ur-8,at=wr?Rt:"";if(Dr){var we=Math.round(Ur*Ve.progress/100),va=Ur-we;a+=L(f("gb"),"","fillColor="+Nr+";strokeColor=none;",jt,xr,we,kt,"1"),a+=L(f("gb"),"","fillColor=#FFFFFF;strokeColor=none;",jt+we,xr,va,kt,"1"),a+=L(f("gb"),at,"fillColor=none;strokeColor="+Aa+";strokeWidth=1;fontSize=11;fontColor=#000000;align=left;spacingLeft=4;verticalAlign=middle;",jt,xr,Ur,kt,"1")}else a+=L(f("gb"),at,"fillColor="+Nr+";strokeColor="+Aa+";strokeWidth=1;fontSize=11;fontColor=#000000;align=left;spacingLeft=4;verticalAlign=middle;",jt,xr,Ur,kt,"1");wr||(a+=L(f("gl"),Rt,"text;html=1;align=left;verticalAlign=middle;fontSize=11;fontColor=#000000;",jt+Ur+4,xr,Math.max(mt+4,18),kt,"1"))}}for(var ya=0;ya<s.length;ya++){var qt=s[ya];if(qt.isMilestone){var Sa=qt.after?K[qt.after]:null,Wt;if(Sa)Wt=Sa.e*Fr;else{var Ga=K[qt.alias]||K[qt.name];if(!Ga)continue;Wt=Ga.s*Fr}a+=L(f("gd"),"","rhombus;fillColor=#000000;strokeColor=#000000;",Wt-13,Wr[ya],10,10,"1"),a+=L(f("gd"),qt.name,"text;html=1;align=left;verticalAlign=middle;fontSize=11;fontColor=#000000;",Wt,Wr[ya],Math.max(Ks(qt.name,11)+4,18),zt[ya],"1")}}for(var xt=0;xt<Be.length;xt++){var pt=Zt+xt*Jr,Ta=pt+20;a+=L(f("gr"),Be[xt],"text;html=1;align=left;verticalAlign=middle;fontSize=13;fontColor=#000000;",0,pt+5,80,14,"1"),a+=m(f("gr"),"","endArrow=none;startArrow=none;strokeColor=#000000;strokeWidth=1;",0,Ta,$r,Ta,"1");for(var Ca=he[Be[xt]],Mt=0;Mt<Y;Mt++)Ca[Mt]&&(a+=L(f("gr"),"100","text;html=1;align=center;verticalAlign=middle;fontSize=9;fontColor=#000000;",Mt*Fr,Ta,Fr,10,"1"))}for(var Lt=0;Lt<s.length;Lt++){var Je=s[Lt];if(!(Je.isMilestone||!Je.after||!K[Je.after]||W[Je.after]==null)){var $t=W[Je.after],wa=K[Je.after],Ba=K[Je.name],nt=wa.e*Fr,Ra=Wr[$t]+zt[$t],Ha=Wr[Lt]+zt[Lt]/2,it=nt-9,ta=Ba.s*Fr-1;a+=m(f("ga"),"","endArrow=none;startArrow=none;strokeColor=#181818;strokeWidth=1.5;",it,Ra,it,Ha,"1"),a+=m(f("ga"),"","endArrow=block;endFill=1;endSize=2.5;startArrow=none;strokeColor=#181818;strokeWidth=1.5;",it,Ha,ta,Ha,"1")}}return a}function Lf(r){var s=r.signals,a="",i=0;function f(xt){return xt+"_"+i++}if(s.length===0)return"";var y=10,T=14,L=12,m=11,K=.5,W=100,Y=26,Lr="#333333",mr=r.monochrome?"#292929":"#006400",Rr=r.monochrome?"#3A3A3A":"#006400",fe=r.monochrome?"#E3E3E3":"#E2E2F0",ie=r.monochrome?"#292929":"#333333";function Ir(xt,pt){return"endArrow=none;startArrow=none;strokeColor="+Lr+";strokeWidth="+xt+";"+(pt?"dashed=1;dashPattern=3 5;":"")}function ir(xt,pt){return String(xt).length*pt*.55}function Le(xt,pt,Ta,Ca,Mt,Lt,Je,$t){var wa=Mt+6,Ba=Ca-wa/2-Mt*.335,nt=Math.max(ir(pt,Mt)+8,8),Ra="text;html=1;strokeColor=none;fillColor=none;fontSize="+Mt+";fontColor="+Je+";align="+($t||"left")+";verticalAlign=middle;"+(Lt?"fontStyle=1;":"");return u(f(xt),pt,Ra,Ta,Ba,nt,wa,"1")}var Te=[],Qr=0,Br,q;for(Br=0;Br<s.length;Br++)for(q=0;q<s[Br].transitions.length;q++){var ur=s[Br].transitions[q].time;Te.indexOf(ur)<0&&Te.push(ur),ur>Qr&&(Qr=ur)}Te.sort(function(xt,pt){return xt-pt}),Qr<10&&(Qr=100);for(var Sr=Math.floor(Qr/W)*W+W,Fr=[],Ee=0;Ee<=Sr;Ee+=W)Fr.push(Ee);var ot=0;for(Br=0;Br<s.length;Br++){var I=s[Br];if(I.kind==="robust")for(q=0;q<I.transitions.length;q++)ot=Math.max(ot,ir(I.transitions[q].state,L));else I.kind==="binary"&&(ot=Math.max(ot,ir(I.name,T)+5))}var Tr=y+5+ot;function de(xt){return Tr+xt*K}for(var Wr=y,zt=y,Ue=de(Sr)+5,Ne=r.constraints&&r.constraints.length>0,Ze="",Ut=zt,Zt=0,Be=zt,he=0;he<s.length;he++){var Jr=s[he],me=Be,ge=Ne&&he===0?Y:5,M;if(Jr.kind!=="binary"){Ze+=Le("tt",Jr.name,y+1,me+15,T,!1,"#333333","left");var J=me+20,Cr=y+5+ir(Jr.name,T)+1;Ze+=z(f("tu"),"",Ir(.5),Wr,J,Cr,J,"1"),Ze+=z(f("td"),"",Ir(.5),Cr,J,Cr+10,me,"1")}if(Jr.kind==="robust"){var br=[],$r;for($r=0;$r<Jr.transitions.length;$r++)br.indexOf(Jr.transitions[$r].state)<0&&br.push(Jr.transitions[$r].state);var vt=Math.max(br.length,1),ht=me+20+ge,gt={};for($r=0;$r<br.length;$r++){var X=ht+(br.length-1-$r)*20;gt[br[$r]]=X,Ze+=Le("tl",br[$r],y+1,X+5,L,!1,"#333333","left")}for($r=0;$r<Jr.transitions.length;$r++){var ue=Jr.transitions[$r],ne=$r+1<Jr.transitions.length?Jr.transitions[$r+1]:null,Re=de(ue.time),Tt=de(ne?ne.time:Sr),Se=gt[ue.state];Ze+=z(f("tw"),"","endArrow=none;startArrow=none;strokeColor="+mr+";strokeWidth=2;",Re,Se,Tt,Se,"1"),ne&>[ne.state]!==Se&&(Ze+=z(f("tv"),"","endArrow=none;startArrow=none;strokeColor="+mr+";strokeWidth=2;",Tt,Se,Tt,gt[ne.state],"1"))}M=ht+(vt-1)*20+12}else if(Jr.kind==="concise"){var qe=me+20+ge,ke=24;he===0&&Ne&&(Zt=qe);for(var Er=0;Er<Jr.transitions.length;Er++){var Vt=Jr.transitions[Er],Bt=Er+1<Jr.transitions.length?Jr.transitions[Er+1]:null,Ge=de(Vt.time),ut=de(Bt?Bt.time:Sr);ut>Ge&&(Ze+=u(f("tc"),Vt.state,"shape=hexagon;perimeter=hexagonPerimeter2;fixedSize=1;size=12;fillColor="+fe+";strokeColor="+Rr+";strokeWidth=1.5;fontSize=12;fontColor=#333333;align=center;",Ge,qe,ut-Ge,ke,"1"))}M=qe+ke+10}else if(Jr.kind==="clock"){var Gr=Jr.period||100,re=Gr/2,ee=me+27,Yr=me+41;Ze+=z(f("tw"),"","endArrow=none;startArrow=none;strokeColor="+mr+";strokeWidth=1.5;",de(0),ee,de(0),Yr,"1");for(var Et=!0,da=0;da<Sr;da+=re){var He=de(da),ct=de(Math.min(da+re,Sr)),Ke=Et?ee:Yr;if(ct>He&&(Ze+=z(f("tw"),"","endArrow=none;startArrow=none;strokeColor="+mr+";strokeWidth=1.5;",He,Ke,ct,Ke,"1")),da+re<=Sr){var Pa=Et?Yr:ee;Ze+=z(f("tv"),"","endArrow=none;startArrow=none;strokeColor="+mr+";strokeWidth=1.5;",ct,Ke,ct,Pa,"1")}Et=!Et}M=Yr+8}else if(Jr.kind==="binary"){var rn=me+8,za=me+22;Ze+=Le("tl",Jr.name,y+1,(rn+za)/2+5,T,!1,"#333333","left");for(var Ct=0;Ct<Jr.transitions.length;Ct++){var le=Jr.transitions[Ct],Xr=Ct+1<Jr.transitions.length?Jr.transitions[Ct+1]:null,Dt=de(le.time),wt=de(Xr?Xr.time:Sr),Ve=le.state==="high"||le.state==="1",tt=Ve?rn:za;if(Ze+=z(f("tw"),"","endArrow=none;startArrow=none;strokeColor="+mr+";strokeWidth=2;",Dt,tt,wt,tt,"1"),Xr){var jt=Xr.state==="high"||Xr.state==="1",Ur=jt?rn:za;Ur!==tt&&(Ze+=z(f("tv"),"","endArrow=none;startArrow=none;strokeColor="+mr+";strokeWidth=2;",wt,tt,wt,Ur,"1"))}}M=za+8}else M=me+30;he<s.length-1?(Ze+=z(f("ts"),"",Ir(.5),Wr,M,Ue,M,"1"),Be=M):Ut=M}a+=z(f("tb"),"",Ir(.5),Wr,zt,Ue,zt,"1"),a+=z(f("tb"),"",Ir(.5),Wr,zt,Wr,Ut,"1"),a+=z(f("tb"),"",Ir(.5),Ue,zt,Ue,Ut,"1");for(var xr=0;xr<Fr.length;xr++){var kt=de(Fr[xr]);a+=z(f("tg"),"",Ir(.5,!0),kt,zt,kt,Ut,"1")}if(r.highlights&&r.highlights.length>0)for(var Aa=0;Aa<r.highlights.length;Aa++){var Nr=r.highlights[Aa],Dr=de(Nr.from),Rt=de(Nr.to),mt=O(Nr.color)||"#FFD700";a+=u(f("thl"),"","shape=rectangle;fillColor="+mt+";strokeColor=none;opacity=45;",Dr,zt,Rt-Dr,Ut-zt,"1"),Nr.label&&(a+=Le("thll",Nr.label,(Dr+Rt)/2-(ir(Nr.label,L)+8)/2,zt+14,L,!0,"#333333","center"))}if(a+=Ze,Ne&&Zt>0)for(var wr=0;wr<r.constraints.length;wr++){var at=r.constraints[wr],we=de(at.from)+1,va=de(at.to)-1,ya=Zt-11;a+=z(f("tcn"),"","startArrow=block;endArrow=block;startFill=1;endFill=1;strokeColor="+ie+";strokeWidth=1.5;",we,ya,va,ya,"1"),a+=Le("tcl",at.label,(we+va)/2-ir(at.label,L)/2-4,ya-8.5,L,!1,ie,"center")}a+=z(f("tax"),"",Ir(2),de(0),Ut,de(Sr),Ut,"1");for(var qt=0;qt<Fr.length;qt++){var Sa=de(Fr[qt]);if(a+=z(f("tk"),"",Ir(2),Sa,Ut,Sa,Ut+5,"1"),Te.indexOf(Fr[qt])>=0){var Wt=String(Fr[qt]);a+=Le("tal",Wt,Sa-(ir(Wt,m)+8)/2,Ut+17.5,m,!1,"#333333","center")}}var Ga=Ut+21;return a=u(f("tanchor"),"","shape=text;strokeColor=none;fillColor=none;",Wr-6,zt-6,Ue-Wr+19,Ga-zt+12,"1")+a,a}var bv=20,Mo=100,ri=30,_v=8,mv=8,Tf=28;function xv(r,s,a,i){if(r.type==="button")return u(i("sb"),r.text,"rounded=1;fillColor=#E8E8E8;strokeColor=#999999;fontSize=11;fontColor=#292929;align=center;",s,a,Mo,ri,"1");if(r.type==="textfield")return u(i("st"),r.text,"shape=rectangle;fillColor=#FFFFFF;strokeColor=#999999;fontSize=11;fontColor=#292929;align=left;spacingLeft=4;",s,a,Mo,ri,"1");if(r.type==="checkbox")return u(i("sc"),(r.checked?"[X] ":"[ ] ")+r.text,"fillColor=none;strokeColor=none;fontSize=11;fontColor=#292929;align=left;",s,a,Mo,ri,"1");if(r.type==="radio")return u(i("sr"),(r.selected?"(o) ":"( ) ")+r.text,"fillColor=none;strokeColor=none;fontSize=11;fontColor=#292929;align=left;",s,a,Mo,ri,"1");if(r.type==="dropdown")return u(i("sd"),r.text+" v","shape=rectangle;fillColor=#FFFFFF;strokeColor=#999999;fontSize=11;fontColor=#292929;align=left;spacingLeft=4;",s,a,Mo,ri,"1");if(r.type==="separator")return u(i("ss"),"","shape=line;strokeColor=#CCCCCC;",s,a+ri/2-1,Mo,2,"1");if(r.type==="tab")return u(i("stb"),r.text,"rounded=1;arcSize=20;fillColor="+(r.active?"#FFFFFF":"#E0E0E0")+";strokeColor=#999999;fontSize=11;fontColor=#333333;align=center;",s,a,Mo,Tf,"1");var f="fillColor=none;strokeColor=none;fontSize=11;fontColor=#333333;align=left;";return r.bold&&(f+="fontStyle=1;"),u(i("sl"),r.text,f,s,a,Mo,ri,"1")}function Ys(r,s,a,i){if(!(!r||!r.children))for(var f=0;f<r.children.length;f++){var y=r.children[f];if(Array.isArray(y))if(y.length===1&&y[0]&&typeof y[0]=="object"&&!Array.isArray(y[0])&&y[0].type){var T=y[0];if(T.type==="tabheader"&&T.children)for(var L=0;L<T.children.length;L++)s.push(T.children[L]);else if(T.type==="menubar"&&T.children)for(var m=0;m<T.children.length;m++)i.push(T.children[m]);else T.children?Ys(T,s,a,i):a.push(y)}else a.push(y)}}var Uf={" ":278,"!":278,'"':355,"#":556,$:556,"%":889,"&":667,"'":191,"(":333,")":333,"*":389,"+":584,",":278,"-":333,".":278,"/":278,0:556,1:556,2:556,3:556,4:556,5:556,6:556,7:556,8:556,9:556,":":278,";":278,"<":584,"=":584,">":584,"?":556,"@":1015,A:667,B:667,C:722,D:722,E:667,F:611,G:778,H:722,I:278,J:500,K:667,L:556,M:833,N:722,O:778,P:667,Q:778,R:722,S:667,T:611,U:722,V:667,W:944,X:667,Y:667,Z:611,"[":278,"\\":278,"]":278,"^":469,_:556,"`":333,a:556,b:556,c:500,d:556,e:556,f:278,g:556,h:556,i:222,j:222,k:500,l:222,m:833,n:556,o:556,p:556,q:556,r:333,s:500,t:278,u:556,v:500,w:722,x:500,y:500,z:500,"{":334,"|":260,"}":334,"~":584};function no(r,s){if(!r)return 0;for(var a=0,i=0;i<r.length;i++){var f=Uf[r.charAt(i)];f==null&&(f=556),a+=f}return a=a*.012,s&&(a*=1.05),a}function Zf(r){var s="",a=0;function i(Nr){return Nr+"_"+a++}if(!r.root)return"";var f=r.root,y=f.type==="tabs",T=f.type==="groupbox",L=[],m=[],K=[];Ys(f,L,m,K);var W=y?7:T?12:6,Y=6,Lr=22.34,mr=17.6,Rr=4.5,fe="endArrow=none;startArrow=none;strokeColor=#000000;strokeWidth=1;",ie="endArrow=none;startArrow=none;strokeColor=#000000;strokeWidth=1.5;",Ir="text;html=1;align=left;verticalAlign=middle;fontSize=12;fontColor=#000000;";function ir(Nr){return Nr.raw!=null?Nr.raw.length:Nr.text?Nr.text.length:0}function Le(Nr){return ir(Nr)*8.3}function Te(Nr){var Dr=ir(Nr)*7+10;return Dr<52?52:Dr}function Qr(Nr){var Dr=ir(Nr)*8.3+9.6;return Dr<60?60:Dr}function Br(Nr,Dr){return Nr.type==="button"?Dr+2.5+Te(Nr):Nr.type==="textfield"?Dr+1+Le(Nr):Nr.type==="dropdown"?Dr+Qr(Nr):Nr.type==="radio"||Nr.type==="checkbox"?Dr+20+no(Nr.text,!1):Dr+no(Nr.text,Nr.bold)}function q(Nr,Dr,Rt,mt,wr,at){return u(Nr,Dr,Ir+(at?"fontStyle=1;":""),Rt-4,mt,wr+4,mr,"1")}function ur(Nr){for(var Dr=!1,Rt=!1,mt=0;mt<Nr.length;mt++){var wr=Nr[mt].type;wr==="button"?Dr=!0:(wr==="textfield"||wr==="dropdown")&&(Rt=!0)}return Dr?27.34:Rt?20.34:18.34}for(var Sr=1,Fr=0;Fr<m.length;Fr++)m[Fr].length>Sr&&(Sr=m[Fr].length);for(var Ee=[W],ot=1;ot<Sr;ot++){for(var I=Ee[ot-1],Tr=0;Tr<m.length;Tr++)if(m[Tr].length>=ot){var de=Br(m[Tr][ot-1],Ee[ot-1]);de>I&&(I=de)}Ee[ot]=I+Rr}var Wr,zt=W,Ue=0;if(K.length>0){for(var Ne=18,Ze=8,Ut=6+Ze,Zt=Ze,Be=0;Be<K.length;Be++)Zt+=no(K[Be].text,!1)+14;s+=u(i("smb"),"","rounded=0;fillColor=#DDDDDD;strokeColor=#000000;strokeWidth=1;",6,Y,Zt,Ne,"1");for(var he=0;he<K.length;he++){var Jr=no(K[he].text,!1);s+=q(i("smi"),K[he].text||"",Ut,Y,Jr,!1),Ut+=Jr+14}Ue=Ne+3}if(L.length>0){for(var me=6,ge=Y+Ue,M=Lr+Ue,J=0;J<L.length;J++){var Cr=L[J],br=no(Cr.text,Cr.active)+7,$r=me+br;s+=z(i("stl"),"",fe,me,ge,me,M,"1"),s+=z(i("stt"),"",fe,me,ge,$r,ge,"1"),s+=z(i("str"),"",fe,$r,ge,$r,M,"1"),s+=z(i("stc"),"",fe,$r,M,$r+10,M,"1"),s+=q(i("sttx"),Cr.text||"",me+2,ge,br,Cr.active),me=$r+10,zt=me}Wr=Lr+Ue+3}else T?Wr=24+Ue:Wr=6+Ue;for(var vt=[],ht=0;ht<m.length;ht++){for(var gt=m[ht],X=ur(gt),ue=0;ue<gt.length;ue++){var ne=gt[ue],Re=Ee[ue<Ee.length?ue:Ee.length-1];if(ne.type==="label")ne.text&&(s+=q(i("sl"),ne.text,Re,Wr,no(ne.text,ne.bold),ne.bold));else if(ne.type==="textfield"){var Tt=Le(ne),Se=Re+1,qe=Se+Tt,ke=Wr+16.34;ne.text&&(s+=q(i("stv"),ne.text,Re+3,Wr,no(ne.text,!1),!1)),s+=z(i("stu"),"",fe,Se,ke,qe,ke,"1"),s+=z(i("stk"),"",fe,Se,ke-3,Se,ke-1,"1"),s+=z(i("stk"),"",fe,qe,ke-3,qe,ke-1,"1")}else if(ne.type==="button"){var Er=Te(ne);s+=u(i("sb"),ne.text||"","rounded=1;absoluteArcSize=1;arcSize=10;fillColor=#EEEEEE;strokeColor=#000000;strokeWidth=2.5;fontSize=12;fontColor=#000000;align=center;",Re+2.5,Wr+2.5,Er,20.34,"1")}else if(ne.type==="radio"){var Vt=Re+2,Bt=Wr+8.17;s+=u(i("sro"),"","ellipse;fillColor=none;strokeColor=#000000;strokeWidth=1.5;",Vt,Bt-5,10,10,"1"),ne.selected&&(s+=u(i("sri"),"","ellipse;fillColor=#000000;strokeColor=#000000;strokeWidth=1.5;",Vt+3,Bt-2,4,4,"1")),ne.text&&(s+=q(i("srl"),ne.text,Re+20,Wr,no(ne.text,!1),!1))}else if(ne.type==="checkbox"){var Ge=Re+2,ut=Wr+3.18;s+=u(i("sco"),"","rounded=0;fillColor=none;strokeColor=#000000;strokeWidth=1.5;",Ge,ut,10,10,"1"),ne.checked&&(s+=z(i("sck"),"",ie,Ge+1,ut+2.83,Ge+4,ut+5.83,"1"),s+=z(i("sck"),"",ie,Ge+4,ut+5.83,Ge+11,ut-3.17,"1")),ne.text&&(s+=q(i("scl"),ne.text,Re+20,Wr,no(ne.text,!1),!1))}else if(ne.type==="dropdown"){var Gr=Qr(ne),re=Re+Gr;s+=u(i("sd"),ne.text||"","rounded=0;fillColor=#EEEEEE;strokeColor=#000000;strokeWidth=1;fontSize=12;fontColor=#000000;align=left;verticalAlign=middle;",Re,Wr,Gr,19.34,"1"),s+=z(i("sdsep"),"",fe,re-11,Wr,re-11,Wr+19.34,"1"),s+=u(i("sdt"),"\u25BC","text;html=1;align=center;verticalAlign=middle;fontSize=9;fontColor=#000000;",re-11,Wr+4,11,11,"1")}else if(ne.type==="separator")s+=z(i("ss"),"",fe,Re,Wr+X/2,Re+120,Wr+X/2,"1");else if(ne.type==="treeitem"){var ee=ne.depth||1,Yr=W+(ee-1)*16+(ee>1?4:0),Et=Wr+mr/2;if(ee>1){var da=W+(ee-2)*16+5,He=vt[ee-1]!=null?vt[ee-1]:Et-9;s+=z(i("strv"),"",fe,da,He,da,Et,"1"),s+=z(i("strh"),"",fe,da,Et,Yr-2,Et,"1"),vt[ee-1]=Et}vt[ee]=Et+8;for(var ct=ee+1;ct<vt.length;ct++)vt[ct]=null;ne.text&&(s+=q(i("str"),ne.text,Yr,Wr,no(ne.text,!1),!1))}}Wr+=X}if(y){for(var Ke=5,Pa=5,rn=Wr,za=0,Ct=0;Ct<m.length;Ct++)for(var le=0;le<m[Ct].length;le++){var Xr=Br(m[Ct][le],Ee[le]);Xr>za&&(za=Xr)}var Dt=zt+1;za+5>Dt&&(Dt=za+5),s+=u(i("sfb"),"","rounded=0;fillColor=none;strokeColor=#000000;strokeWidth=1;",Ke,Pa,Dt-Ke,rn-Pa,"1")}if(T){for(var wt=13,Ve=Wr+4,tt=f.title||"",jt=no(tt,!1),Ur=10+jt+20,xr=0;xr<m.length;xr++)for(var kt=0;kt<m[xr].length;kt++){var Aa=Br(m[xr][kt],Ee[kt])+7;Aa>Ur&&(Ur=Aa)}s+=u(i("sgb"),"","rounded=0;fillColor=none;strokeColor=#000000;strokeWidth=1;",5,wt,Ur-5,Ve-wt,"1"),tt&&(s+=u(i("sgt"),tt,"rounded=0;fillColor=#FFFFFF;strokeColor=none;fontSize=12;fontColor=#000000;align=center;verticalAlign=middle;",10,6,jt+8,mr,"1"))}return s}var As=78,Gi=5,ki=36,Bf=30,Xs=44,Rf=37.5,qf=45,Mf=50,Ss=20;function If(r,s){for(var a=String(r??""),i=0,f=0;f<a.length;f++){var y=a.charAt(f);`iIljtfr.,:;!|'"()[]{} `.indexOf(y)>=0?i+=4.2:"mwMW".indexOf(y)>=0?i+=11.7:i+=7.8}return i*(s/14)}function ks(r){return Math.max(Xs,If(r,12)+20)}function Gf(r){var s=r.networks,a="",i=0,f,y;function T(re){return re+"_"+i++}if(s.length===0)return"";var L=Xs;for(f=0;f<s.length;f++){var m=s[f].nodes;for(y=0;y<m.length;y++){var K=ks(m[y].name);K>L&&(L=K)}}var W=L+Bf;function Y(re){return As+re*W+W/2}var Lr={};for(f=0;f<s.length;f++){var mr=s[f].nodes;for(y=0;y<mr.length;y++)Lr[mr[y].name]===void 0&&(Lr[mr[y].name]=f)}var Rr=[];for(f=0;f<s.length;f++)Rr[f]=!1;for(f=0;f<s.length;f++){var fe=s[f].nodes;for(y=0;y<fe.length;y++){var ie=Lr[fe[y].name];ie!==void 0&&ie<f&&(Rr[ie]=!0)}}var Ir={},ir=Ss,Le=r.topNodes||[],Te=r.links||[],Qr=Ss;Le.length>0&&(ir=Ss+ki+26);var Br=ir;for(f=0;f<s.length;f++){var q=s[f],ur=q.nodes;if(r.groups&&r.groups.length>0){for(var Sr={},Fr=0;Fr<r.groups.length;Fr++)for(var Ee=0;Ee<r.groups[Fr].nodes.length;Ee++)Sr[r.groups[Fr].nodes[Ee]]=Fr;for(var ot=[],I=0;I<ur.length;I++)ot.push({n:ur[I],g:Sr[ur[I].name]!==void 0?Sr[ur[I].name]:-1,i:I});ot.sort(function(re,ee){return re.g-ee.g||re.i-ee.i}),ur=[];for(var Tr=0;Tr<ot.length;Tr++)ur.push(ot[Tr].n)}var de=ir,Wr=[],zt=0,Ue=1/0,Ne=-1/0;for(y=0;y<ur.length;y++){var Ze=Ir[ur[y].name]?Ir[ur[y].name].col:zt++;Wr[y]=Ze,Ze<Ue&&(Ue=Ze),Ze>Ne&&(Ne=Ze)}Ue===1/0&&(Ue=0,Ne=0);var Ut=As+Ue*W,Zt=(Ne-Ue+1)*W;a+=u(T("nwbar"),"","fillColor=#E2E2F0;strokeColor=#181818;strokeWidth=1;",Ut,de,Zt,Gi,"1");var Be=q.name+(q.address?`-`+q.address:"");a+=u(T("nwlbl"),Be,"shape=text;strokeColor=none;fillColor=none;fontSize=12;fontColor=#000000;align=right;verticalAlign=middle;",0,de-15,As-3,34,"1");var he=Rr[f]?qf:Rf,Jr=de+Gi+he,me=de+Gi;for(y=0;y<ur.length;y++){var ge=ur[y],M=Y(Wr[y]),J=ge.address||"";if(Ir[ge.name]){var Cr=Ir[ge.name];a+=z(T("nwsh"),J,"endArrow=none;strokeColor=#181818;fontSize=11;fontColor=#000000;",Cr.cx,Cr.bottomY,Cr.cx,de,"1");continue}var br=ks(ge.name),$r=M-br/2,vt=ki,ht="shape=rectangle;fillColor=#F1F1F1;strokeColor=#181818;strokeWidth=0.5;fontSize=12;fontColor=#000000;align=center;";ge.shape==="cloud"?(ht="shape=cloud;fillColor=#F1F1F1;strokeColor=#181818;strokeWidth=0.5;fontSize=12;fontColor=#000000;align=center;",vt=ki+12):ge.shape==="database"&&(ht="shape=cylinder;fillColor=#F1F1F1;strokeColor=#181818;strokeWidth=0.5;fontSize=12;fontColor=#000000;align=center;verticalAlign=bottom;spacingBottom=4;",vt=ki+16),a+=u(T("nwnode"),ge.name,ht,$r,Jr,br,vt,"1"),a+=z(T("nwe"),J,"endArrow=none;strokeColor=#181818;fontSize=11;fontColor=#000000;",M,de+Gi,M,Jr,"1"),Ir[ge.name]={col:Wr[y],cx:M,bottomY:Jr+vt,x:$r,topY:Jr,w:br,h:vt};var gt=Jr+vt;gt>me&&(me=gt)}ir=me+Mf}for(f=0;f<Le.length;f++){var X=Le[f],ue=null;for(y=0;y<Te.length;y++){if(Te[y].from===X.name&&Ir[Te[y].to]){ue=Ir[Te[y].to];break}if(Te[y].to===X.name&&Ir[Te[y].from]){ue=Ir[Te[y].from];break}}var ne=ue?ue.cx:Y(f),Re=ks(X.name)+(X.shape==="cloud"?24:0),Tt=ki+(X.shape==="cloud"?12:0),Se=X.shape==="cloud"?"shape=cloud;fillColor=#F1F1F1;strokeColor=#181818;strokeWidth=0.5;fontSize=12;fontColor=#000000;align=center;":"shape=rectangle;fillColor=#F1F1F1;strokeColor=#181818;strokeWidth=0.5;fontSize=12;fontColor=#000000;align=center;";a+=u(T("nwtop"),X.name,Se,ne-Re/2,Qr,Re,Tt,"1"),a+=z(T("nwte"),"","endArrow=none;strokeColor=#181818;",ne,Qr+Tt,ne,Br,"1")}var qe="",ke=r.groups||[];for(f=0;f<ke.length;f++){var Er=ke[f],Vt=1/0,Bt=1/0,Ge=-1/0,ut=-1/0;for(y=0;y<Er.nodes.length;y++){var Gr=Ir[Er.nodes[y]];Gr&&(Gr.x<Vt&&(Vt=Gr.x),Gr.topY<Bt&&(Bt=Gr.topY),Gr.x+Gr.w>Ge&&(Ge=Gr.x+Gr.w),Gr.topY+Gr.h>ut&&(ut=Gr.topY+Gr.h))}Vt!==1/0&&(qe+=u(T("nwgrp"),"","rounded=0;fillColor="+(O(Er.color)||"#FFEFDF")+";strokeColor=none;",Vt-10,Bt-8,Ge-Vt+20,ut-Bt+16,"1"))}return qe+a}var Hf={Motivation:"#EFEFFF",Strategy:"#F8E7C0",Business:"#FFFFCC",Application:"#C2F0FF",Technology:"#C9FFC9",Physical:"#97FF97",Implementation:"#FFE0E0",Other:"#D3D3D3",Junction:"#D3D3D3"};function Jf(r){if(r.category==="Junction"){if(r.kind==="And")return"#000000";if(r.kind==="Or")return"#F5F5F5"}return r.kind==="Plateau"?"#97FF97":r.category==="Other"&&r.kind==="Location"?"#FFB973":Hf[r.category]||"#EEEEEE"}var Vf={Process:1,Function:1,Interaction:1,Service:1,Event:1,Capability:1,CourseOfAction:1,ValueStream:1};function jf(r,s){var a="",i=0;function f(wr){return wr+"_"+i++}var y=54,T=35,L=123,m=134,K=1330,W=16,Y=14,Lr=40,mr=25,Rr=12,fe=20,ie=20,Ir=20,ir=16,Le={},Te={},Qr=W;function Br(wr){wr>Qr&&(Qr=wr)}function q(wr){return Math.max(50,Math.round((wr||"").length*7.3)+25)}function ur(wr){return wr.category==="Junction"}function Sr(wr){return ur(wr)?ir:q(wr.label||wr.id)}function Fr(wr){return ur(wr)?ir:y}function Ee(wr){var at=Jf(wr);if(ur(wr))return"ellipse;html=1;fillColor="+at+";strokeColor=#181818;fontColor=#000000;strokeWidth=0.5;verticalLabelPosition=bottom;verticalAlign=top;fontSize="+Y+";";var we="whiteSpace=wrap;html=1;fillColor="+at+";strokeColor=#181818;fontColor=#000000;strokeWidth=0.5;fontSize="+Y+";";return wr.kind==="Value"?"ellipse;"+we:wr.kind==="Meaning"?"shape=cloud;"+we:wr.kind==="Node"||wr.kind==="Device"||wr.kind==="Plateau"||wr.kind==="Equipment"||wr.kind==="Facility"?"shape=cube;size=8;"+we:Vf[wr.kind]?"rounded=1;arcSize=23;"+we:"rounded=0;"+we}for(var ot={__root__:[]},I=0;I<r.shapes.length;I++){var Tr=r.shapes[I],de=Tr.parent||"__root__";ot[de]||(ot[de]=[]),ot[de].push(Tr)}var Wr=W+(r.title?Lr:0);function zt(wr,at,we){var va=Sr(wr),ya=Fr(wr),qt=f("arc");return Le[wr.id]=qt,a+=u(qt,wr.label||wr.id,Ee(wr),at,we,va,ya,"1"),Br(at+va),{w:va,h:ya}}function Ue(wr,at,we){for(var va=ot[wr.id]||[],ya=(wr.kind||"").toLowerCase()==="group",qt=0,Sa=y,Wt=0;Wt<va.length;Wt++){qt+=Sr(va[Wt]),Wt>0&&(qt+=T);var Ga=Fr(va[Wt]);Ga>Sa&&(Sa=Ga)}va.length===0&&(qt=120);var xt=qt+2*Rr,pt=mr+fe+Sa+ie,Ta=f("grp");Te[wr.id]=Ta;var Ca=ya?"swimlane;collapsible=0;fontStyle=1;align=left;spacingLeft=6;startSize="+mr+";fillColor=#D3D3D3;strokeColor=#000000;verticalAlign=top;fontColor=#000000;fontSize="+Y+";":"swimlane;collapsible=0;fontStyle=1;align=left;spacingLeft=6;startSize="+mr+";fillColor=none;strokeColor=#444444;dashed=1;strokeDashArray=7 7;verticalAlign=top;fontColor=#444444;fontSize="+Y+";";a+=u(Ta,wr.label||wr.id,Ca,at,we,xt,pt,"1"),Br(at+xt);for(var Mt=Rr,Lt=mr+fe,Je=0;Je<va.length;Je++){var $t=va[Je],wa=Sr($t),Ba=Fr($t),nt=f("arc");Le[$t.id]=nt,a+=u(nt,$t.label||$t.id,Ee($t),Mt,Lt+(Sa-Ba)/2,wa,Ba,Ta),Mt+=wa+T}return{w:xt,h:pt}}function Ne(wr){for(var at=ot[wr.id]||[],we=0,va=0;va<at.length;va++)we+=Sr(at[va]),va>0&&(we+=T);return at.length===0&&(we=120),we+2*Rr}var Ze=r.edges&&r.edges.length>0,Ut=r.shapes.length>0&&ot.__root__.length===0&&r.groups.length>0,Zt=Wr;if(Ze){for(var Be={},he=0;he<r.shapes.length;he++)Be[r.shapes[he].id]=he;for(var Jr=[],me=0;me<r.shapes.length;me++)Jr[me]=0;for(var ge=0;ge<r.shapes.length;ge++)for(var M=0;M<r.edges.length;M++){var J=Be[r.edges[M].from],Cr=Be[r.edges[M].to];J===void 0||Cr===void 0||Jr[Cr]<Jr[J]+1&&(Jr[Cr]=Jr[J]+1)}for(var br={},$r=0,vt=0;vt<r.shapes.length;vt++){var ht=Jr[vt];ht>$r&&($r=ht),(br[ht]=br[ht]||[]).push(r.shapes[vt])}for(var gt=r.title?Math.round(r.title.length*8):0,X=gt,ue=0;ue<=$r;ue++){for(var ne=br[ue]||[],Re=0,Tt=0;Tt<ne.length;Tt++)Re+=Sr(ne[Tt]),Tt>0&&(Re+=T);Re>X&&(X=Re)}for(var Se=0;Se<=$r;Se++){for(var qe=br[Se]||[],ke=0,Er=0;Er<qe.length;Er++)ke+=Sr(qe[Er]),Er>0&&(ke+=T);for(var Vt=W+(X-ke)/2,Bt=Wr+Se*m,Ge=0;Ge<qe.length;Ge++)zt(qe[Ge],Vt,Bt),Vt+=Sr(qe[Ge])+T;Zt=Bt+y}}else if(Ut)for(var ut=W,Gr=0;Gr<r.groups.length;Gr++){var re=Ue(r.groups[Gr],ut,Wr);ut+=re.w+Ir,Wr+re.h>Zt&&(Zt=Wr+re.h)}else{for(var ee=ot.__root__,Yr=0,Et=0;Et<r.groups.length;Et++)Yr+=Ne(r.groups[Et]),Et>0&&(Yr+=Ir);for(var da=Yr>0?K-Yr-Ir:K,He=W,ct=Wr,Ke=y,Pa=0;Pa<ee.length;Pa++){var rn=ee[Pa],za=Sr(rn),Ct=ct===Wr?da:K;He>W&&He+za>W+Ct&&(He=W,ct+=L,Ke=y);var le=zt(rn,He,ct);He+=za+T,le.h>Ke&&(Ke=le.h)}if(Zt=ct+Ke,r.groups.length>0){var Xr=W+K-Yr;Xr<W&&(Xr=W);for(var Dt=0,wt=0;wt<r.groups.length;wt++){var Ve=Ue(r.groups[wt],Xr,Wr);Xr+=Ve.w+Ir,Ve.h>Dt&&(Dt=Ve.h)}Wr+Dt>Zt&&(Zt=Wr+Dt)}}for(var tt=0;tt<r.edges.length;tt++){var jt=r.edges[tt],Ur=Le[jt.from]||Te[jt.from],xr=Le[jt.to]||Te[jt.to];!Ur||!xr||(a+=jr(f("rel"),jt.label||"","endArrow=block;endFill=1;endSize=8;startArrow=oval;startFill=1;startSize=10;html=1;strokeColor=#000000;fontColor=#000000;fontSize=13;labelBackgroundColor=#FFFFFF;",Ur,xr,"1"))}if(r.legend&&r.legend.lines&&r.legend.lines.length>0){var kt=120,Aa=Math.max(40,r.legend.lines.length*18+16),Nr=r.legend.lines.join(`-`),Dr=W,Rt=Zt+20;a+=u(f("lg"),Nr,"rounded=1;arcSize=7;fillColor=#DDDDDD;strokeColor=#000000;fontSize=11;align=left;verticalAlign=top;spacingLeft=6;spacingTop=4;whiteSpace=wrap;",Dr,Rt,kt,Aa,"1"),Br(Dr+kt)}if(r.title){var mt=Math.max(120,Qr-W,Math.round(r.title.length*8));a+=u(f("title"),r.title,"rounded=0;fillColor=none;strokeColor=none;fontSize=14;fontStyle=1;fontColor=#000000;align=center;verticalAlign=middle;",W,W,mt,30,"1")}return a}var rf={Person:{fill:"#08427B",stroke:"#073B6F",font:"#FFFFFF",extFill:"#686868",extStroke:"#666666"},System:{fill:"#1168BD",stroke:"#3C7FC0",font:"#FFFFFF",extFill:"#999999",extStroke:"#8A8A8A"},Container:{fill:"#438DD5",stroke:"#3C7FC0",font:"#FFFFFF",extFill:"#B3B3B3",extStroke:"#8A8A8A"},Component:{fill:"#85BBF0",stroke:"#78A8D8",font:"#000000",extFill:"#CCCCCC",extStroke:"#8A8A8A"}},Wf=210;function Qf(r,s){var a=rf[r]||rf.Component,i=/_ext$|^ext$/.test(s||"")||/ext/.test(s||""),f=i?a.extFill:a.fill,y=i?a.extStroke:a.stroke,T="html=1;whiteSpace=wrap;fillColor="+f+";strokeColor="+y+";fontColor="+a.font+";strokeWidth=0.5;fontSize=14;verticalAlign=top;spacingTop=6;";return/db/.test(s||"")?"shape=cylinder;boundedLbl=1;backgroundOutline=1;"+T:/queue/.test(s||"")?"shape=queue;"+T:(r==="Person"||/person/.test(s||""),"rounded=0;"+T)}function Nf(r,s){var a="",i=0;function f(Xe){return Xe+"_"+i++}var y=Wf,T=90,L=r.nodesep||45,m=r.ranksep||55,K=r.nodesep||50,W=30,Y=40,Lr=16,mr=r.nodesep?Math.round(r.nodesep/2+3):Lr,Rr=30,fe={},ie={},Ir={},ir=!r.hasLegend,Le={};function Te(Xe){return Le[Xe.id]||(Le[Xe.id]=ev(Xe,ir)),Le[Xe.id]}function Qr(Xe,sr,cr,te,Ie,rt,ce,lt){var Ot=f("c4");fe[Xe.id]=Ot,Ir[Xe.id]={x:ce===void 0?sr:ce,y:lt===void 0?cr:lt,w:te,h:Ie};var la=Qf(Xe.category,Xe.variant),Ua=Xe.category==="Person";Ua&&!ir&&(la+="spacingTop=57;");var oa=Hr(Ot,Kf(Xe,ir),la,sr,cr,te,Ie,rt);if(Ua){var Pt=te/2,yt=ir?26:10;oa+=u(f("c4sp"),"","ellipse;fillColor=#FFFFFF;strokeColor=none;",Pt-9,yt+2,18,18,Ot),oa+=u(f("c4sp"),"","rounded=1;arcSize=50;fillColor=#FFFFFF;strokeColor=none;",Pt-17,yt+22,34,24,Ot)}return oa}for(var Br={},q={},ur=0;ur<r.boundaries.length;ur++){var Sr=r.boundaries[ur];Sr.stereotype&&Sr.stereotype.toLowerCase()==="layout"&&(Br[Sr.id]=!0)}function Fr(Xe){for(;Xe&&Br[Xe];){for(var sr=null,cr=0;cr<r.boundaries.length;cr++)if(r.boundaries[cr].id===Xe){sr=r.boundaries[cr].parent;break}Xe=sr}return Xe}for(var Ee=[],ot=0;ot<r.boundaries.length;ot++){var I=r.boundaries[ot];Br[I.id]||Ee.push({id:I.id,label:I.label,kind:I.kind,stereotype:I.stereotype,children:I.children,parent:Fr(I.parent)})}for(var Tr={__root__:[]},de=0;de<r.shapes.length;de++){var Wr=r.shapes[de],zt=Wr.parent||"__root__",Ue=zt==="__root__"?"__root__":Fr(zt)||"__root__";Tr[Ue]||(Tr[Ue]=[]),Tr[Ue].push(Wr),q[Wr.id]=Ue}var Ne=W,Ze=Ne,Ut=r.title?hi(r.title).length:0,Zt=Ut?Ut*20+4:0;r.title&&(Ne+=Zt+20);for(var Be=[],he={},Jr=0;Jr<Ee.length;Jr++)he[Ee[Jr].id]=Be.length,Be.push({boundary:Ee[Jr]});for(var me=Tr.__root__,ge=0;ge<me.length;ge++)he[me[ge].id]=Be.length,Be.push({shape:me[ge]});function M(Xe){if(he[Xe]!==void 0)return he[Xe];var sr=q[Xe];return sr&&sr!=="__root__"&&he[sr]!==void 0?he[sr]:-1}for(var J=[],Cr=0;Cr<r.edges.length;Cr++){var br=r.edges[Cr];J.push({from:br.back?br.to:br.from,to:br.back?br.from:br.to,label:br.label,technology:br.technology,direction:br.direction})}function $r(Xe,sr){for(var cr=[],te=0;te<Xe;te++)cr.push(0);for(var Ie=0;Ie<=Xe;Ie++){for(var rt=!1,ce=0;ce<sr.length;ce++){var lt=sr[ce];lt.from<0||lt.to<0||lt.from===lt.to||lt.direction==="left"||lt.direction==="right"||cr[lt.to]<cr[lt.from]+1&&(cr[lt.to]=cr[lt.from]+1,rt=!0)}if(!rt)break}for(var Ot=0;Ot<Xe;Ot++){for(var la=!1,Ua=0;Ua<sr.length;Ua++){var oa=sr[Ua];oa.from<0||oa.to<0||oa.from===oa.to||(oa.direction==="left"||oa.direction==="right")&&cr[oa.to]!==cr[oa.from]&&(cr[oa.to]=cr[oa.from],la=!0)}if(!la)break}return cr}for(var vt=[],ht=0;ht<J.length;ht++)vt.push({from:M(J[ht].from),to:M(J[ht].to),direction:J[ht].direction});for(var gt=$r(Be.length,vt),X=0;X<Be.length;X++){var ue=Be[X];if(ue.shape){var ne=Te(ue.shape);ue.w=ne.w,ue.h=ne.h;continue}for(var Re=Tr[ue.boundary.id]||[],Tt={},Se=0;Se<Re.length;Se++)Tt[Re[Se].id]=Se;for(var qe=[],ke=0;ke<J.length;ke++){var Er=Tt[J[ke].from],Vt=Tt[J[ke].to];qe.push({from:Er===void 0?-1:Er,to:Vt===void 0?-1:Vt,direction:J[ke].direction})}for(var Bt=$r(Re.length,qe),Ge=[],ut=0;ut<Re.length;ut++){var Gr=Bt[ut];Ge[Gr]||(Ge[Gr]=[]),Ge[Gr].push(Re[ut])}ue.childRows=[],ue.rowHs=[];for(var re=0,ee=0,Yr=0;Yr<Ge.length;Yr++)if(!(!Ge[Yr]||!Ge[Yr].length)){for(var Et=Ge[Yr],da=0,He=0,ct=0;ct<Et.length;ct++){var Ke=Te(Et[ct]);da+=Ke.w+(ct?K:0),He=Math.max(He,Ke.h)}ue.childRows.push(Et),ue.rowHs.push(He),re=Math.max(re,da),ee+=He+(ue.childRows.length>1?m:0)}Re.length===0&&(re=y-2*Lr,ee=40),ue.w=re+2*mr,ue.h=Y+Lr+ee+Lr}for(var Pa=[],rn=0;rn<Be.length;rn++){var za=gt[rn];Pa[za]||(Pa[za]=[]),Pa[za].push(Be[rn])}for(var Ct=[],le=[],Xr=0,Dt=0;Dt<Pa.length;Dt++)if(!(!Pa[Dt]||!Pa[Dt].length)){for(var wt=Pa[Dt],Ve=0,tt=0;tt<wt.length;tt++)Ve+=wt[tt].w+(tt?L:0);Ct.push(wt),le.push(Ve),Xr=Math.max(Xr,Ve)}r.title&&(a+=Hr(f("c4title"),w(r.title).replace(/ /g,"<br>"),"rounded=0;fillColor=none;strokeColor=none;fontSize=14;fontStyle=1;fontColor=#000000;align=center;verticalAlign=middle;",W,Ze,Xr,Zt,"1"));for(var jt=0;jt<Ct.length;jt++){for(var Ur=Ct[jt],xr=W+(Xr-le[jt])/2,kt=0,Aa=0;Aa<Ur.length;Aa++)kt=Math.max(kt,Ur[Aa].h);for(var Nr=0;Nr<Ur.length;Nr++){var Dr=Ur[Nr];if(Dr.shape)a+=Qr(Dr.shape,xr,Ne,Dr.w,Dr.h,"1");else{var Rt=f("bnd");ie[Dr.boundary.id]=Rt;var mt='<font style="font-size:16px;"><b>'+w(Dr.boundary.label||Dr.boundary.id)+"</b></font><br>["+tv(Dr.boundary)+"]",wr="rounded=0;html=1;whiteSpace=wrap;fillColor=none;strokeColor=#444444;dashed=1;dashPattern=7 7;verticalAlign=top;align=center;fontColor=#444444;fontSize=12;";a+=Hr(Rt,mt,wr,xr,Ne,Dr.w,Dr.h,"1"),Ir[Dr.boundary.id]={x:xr,y:Ne,w:Dr.w,h:Dr.h};for(var at=xr,we=Ne,va=Y+Lr,ya=0;ya<Dr.childRows.length;ya++){for(var qt=Dr.childRows[ya],Sa=0,Wt=0;Wt<qt.length;Wt++)Sa+=Te(qt[Wt]).w+(Wt?K:0);for(var Ga=(Dr.w-Sa)/2,xt=0;xt<qt.length;xt++){var pt=qt[xt],Ta=Te(pt);a+=Qr(pt,Ga,va,Ta.w,Ta.h,Rt,at+Ga,we+va),Ga+=Ta.w+K}va+=Dr.rowHs[ya]+m}}xr+=Dr.w+L}Ne+=kt+T}for(var Ca=[],Mt=0;Mt<r.edges.length;Mt++){var Lt=r.edges[Mt],Je=fe[Lt.from]||ie[Lt.from],$t=fe[Lt.to]||ie[Lt.to];if(!(!Je||!$t)){if(Lt.back){var wa=Je;Je=$t,$t=wa}var Ba="endArrow=block;endFill=1;endSize=5;html=1;strokeColor=#666666;fontColor=#666666;fontSize=12;fontStyle=1;";r.linetype==="ortho"?Ba+="edgeStyle=orthogonalEdgeStyle;rounded=0;":Ba+="curved=1;";var nt=[];if(Lt.label)for(var Ra=hi(Lt.label),Ha=0;Ha<Ra.length;Ha++)nt.push({t:Ra[Ha],b:!0});Lt.technology&&nt.push({t:"["+Lt.technology+"]",i:!0});var it=Ir[Lt.from],ta=Ir[Lt.to];if(nt.length&&it&&ta){for(var Ea=[],ua=0,ha=nt.length,Nt=0;Nt<nt.length;Nt++){var tr=nt[Nt],pr=w(tr.t);Ea.push(tr.b?"<b>"+pr+"</b>":tr.i?"<i>"+pr+"</i>":pr),ua=Math.max(ua,Fi(tr.t,12,!!tr.b))}var rr=Math.ceil(ua)+10,er=ha*16+4,Ar=it.x+it.w/2,se=it.y+it.h/2,kr=ta.x+ta.w/2,xe=ta.y+ta.h/2,Kr=(Ar+kr)/2,oe=(se+xe)/2,Kt=Math.abs(xe-se)>=Math.abs(kr-Ar),ga,Fe,Da;Kt?(ga=Kr+4,Fe=oe-er/2,Da="left"):(ga=Kr-rr/2,Fe=oe-er/2,Da="center"),Ca.push({html:Ea.join("<br>"),x:ga,y:Fe,w:rr,h:er,align:Da})}a+=jr(f("rel"),"",Ba,Je,$t,"1")}}for(var It=0;It<Ca.length;It++)if(!Ca[It].done){var dt=[Ca[It]];Ca[It].done=!0;for(var Me=It+1;Me<Ca.length;Me++){var At=Ca[Me];if(!At.done)for(var sa=0;sa<dt.length;sa++){var Gt=dt[sa];if(At.x<Gt.x+Gt.w+4&&Gt.x<At.x+At.w+4&&At.y<Gt.y+Gt.h&&Gt.y<At.y+At.h){dt.push(At),At.done=!0;break}}}if(dt.length>1){dt.sort(function(Xe,sr){return Xe.x-sr.x});for(var Yt=0,St=0,st=0;st<dt.length;st++)Yt=Math.max(Yt,dt[st].w),St+=dt[st].x+dt[st].w/2;St/=dt.length;for(var Ye=Yt+8,$e=St-Ye*(dt.length-1)/2,bt=0;bt<dt.length;bt++)dt[bt].x=$e+bt*Ye-dt[bt].w/2}}for(var aa=0;aa<Ca.length;aa++){var ka=Ca[aa];a+=Hr(f("rellbl"),ka.html,"text;html=1;fillColor=none;strokeColor=none;fontSize=12;fontColor=#666666;align="+ka.align+";verticalAlign=middle;whiteSpace=nowrap;",Math.round(ka.x),Math.round(ka.y),ka.w,ka.h,"1")}if(r.hasLegend){var Fa=[{fill:"#08427B",label:"person"},{fill:"#1168BD",label:"system"},{fill:"#438DD5",label:"container"}];r.hasComponent&&Fa.push({fill:"#85BBF0",label:"component"}),Fa.push({fill:"#686868",label:"external person"},{fill:"#999999",label:"external system"},{fill:"#B3B3B3",label:"external container"}),r.hasComponent&&Fa.push({fill:"#CCCCCC",label:"external component"});var Oe=19,na=140,ja=W+Math.max(0,Xr-na),an=Ne-T+40;a+=u(f("lg"),"Legend","text;fillColor=none;strokeColor=none;fontSize=14;fontStyle=1;fontColor=#000000;align=left;verticalAlign=middle;",ja,an,na,18,"1"),an+=18;for(var Xt=0;Xt<Fa.length;Xt++){var gn=Fa[Xt];a+=u(f("lg"),gn.label,"rounded=0;fillColor="+gn.fill+";strokeColor=none;fontSize=12;fontColor=#FFFFFF;align=left;spacingLeft=6;",ja,an+Xt*Oe,na,Oe,"1")}}return a}function hi(r){return String(r??"").split(/\\n| |\r?\n/)}function Kf(r,s){var a=[];s&&a.push('<font style="font-size:12px;"><i>\xAB'+w(String(r.category||"").toLowerCase())+"\xBB</i></font>"),r.category==="Person"&&s&&a.push('<font style="font-size:36px;"> </font>');for(var i=hi(r.label||r.id),f=0;f<i.length;f++)a.push('<font style="font-size:16px;"><b>'+w(i[f])+"</b></font>");if(r.technology&&a.push('<font style="font-size:12px;"><i>['+w(r.technology)+"]</i></font>"),r.description){a.push("");for(var y=hi(r.description),T=0;T<y.length;T++)a.push(w(y[T]))}return a.join("<br>")}function Yf(r){return r==="\u23AF"||r==="\u2014"||r==="\u2015"?13.4:`iIljtfr.,:;!|'"()[]{} `.indexOf(r)>=0?4.2:"mwMW".indexOf(r)>=0?11.7:7.8}function Fi(r,s,a){for(var i=String(r??""),f=0,y=0;y<i.length;y++)f+=Yf(i.charAt(y));return f*(s/14)*(a?1.08:1)}function ef(r,s,a,i){var f=Fi(r,s,a);if(!r||f<=i)return{count:1,maxW:f};for(var y=String(r).split(/\s+/),T="",L=0,m=0,K=0;K<y.length;K++){var W=T?T+" "+y[K]:y[K];T&&Fi(W,s,a)>i?(L++,m=Math.max(m,Fi(T,s,a)),T=y[K]):T=W}return T&&(L++,m=Math.max(m,Fi(T,s,a))),{count:L||1,maxW:m||f}}function Xf(r,s){var a=[];s&&a.push({text:"\xAB"+String(r.category||"").toLowerCase()+"\xBB",size:12,bold:!1,kind:"stereo"});for(var i=hi(r.label||r.id),f=0;f<i.length;f++)a.push({text:i[f],size:16,bold:!0,kind:"name"});if(r.technology&&a.push({text:"["+r.technology+"]",size:12,bold:!1,kind:"tech"}),r.description){a.push({text:"",size:14,bold:!1,kind:"blank"});for(var y=hi(r.description),T=0;T<y.length;T++)a.push({text:y[T],size:14,bold:!1,kind:"desc"})}return a}var rv=200,Fs=20;function ev(r,s){var a=Xf(r,s),i=r.category==="Person",f,y=0;for(f=0;f<a.length;f++)a[f].text&&(y=Math.max(y,ef(a[f].text,a[f].size,a[f].bold,rv).maxW));var T=Math.ceil(y)+Fs,L=T-8,m=0,K=0,W=0,Y=0;for(y=0,f=0;f<a.length;f++){var Lr=a[f],mr=Lr.text?ef(Lr.text,Lr.size,Lr.bold,L):{count:1,maxW:0};Lr.text&&(y=Math.max(y,mr.maxW)),Lr.kind==="name"?m+=mr.count:Lr.kind==="desc"?K+=mr.count:Lr.kind==="tech"?W+=mr.count:Lr.kind==="stereo"&&(Y+=mr.count)}T=Math.max(T,Math.ceil(y)+Fs);var Rr=!!r.description,fe=Fs+Y*16.3+(i?48:0)+m*21.8+W*16.3+(Rr?19.04+K*19.04:0);return/db/.test(r.variant||"")&&(fe+=20),{w:T,h:Math.round(Math.max(i?110:66,fe)),sprite:i}}function tv(r){var s=(r.kind||"").toLowerCase();return s.indexOf("container")===0?"container":s.indexOf("system")===0?"system":s.indexOf("enterprise")===0?"enterprise":(r.stereotype||"boundary").toLowerCase()}var tf=[["account-login","account-logout","action-redo","action-undo","align-center","align-left","align-right","aperture","arrow-bottom","arrow-circle-bottom","arrow-circle-left","arrow-circle-right","arrow-circle-top","arrow-left","arrow-right","arrow-thick-bottom","arrow-thick-left","arrow-thick-right","arrow-thick-top","arrow-top","audio-spectrum","audio","badge","ban","bar-chart","basket","battery-empty","battery-full","beaker"],["bell","bluetooth","bold","bolt","book","bookmark","box","briefcase","british-pound","browser","brush","bug","bullhorn","calculator","calendar","camera-slr","caret-bottom","caret-left","caret-right","caret-top","cart","chat","check","chevron-bottom","chevron-left","chevron-right","chevron-top","circle-check","circle-x","clipboard","clock","cloud-download","cloud-upload"],["cloud","cloudy","code","cog","collapse-down","collapse-left","collapse-right","collapse-up","command","comment-square","compass","contrast","copywriting","credit-card","crop","dashboard","data-transfer-download","data-transfer-upload","delete","dial","document","dollar","double-quote-sans-left","double-quote-sans-right","double-quote-serif-left","double-quote-serif-right","droplet","eject","elevator","ellipses","envelope-closed","envelope-open","euro"],["excerpt","expand-down","expand-left","expand-right","expand-up","external-link","eye","eyedropper","file","fire","flag","flash","folder","fork","fullscreen-enter","fullscreen-exit","globe","graph","grid-four-up","grid-three-up","grid-two-up","hard-drive","header","headphones","heart","home","image","inbox","infinity","info","italic","justify-center","justify-left"],["justify-right","key","laptop","layers","lightbulb","link-broken","link-intact","list-rich","list","location","lock-locked","lock-unlocked","loop-circular","loop-square","loop","magnifying-glass","map-marker","map","media-pause","media-play","media-record","media-skip-backward","media-skip-forward","media-step-backward","media-step-forward","media-stop","medical-cross","menu","microphone","minus","monitor","moon","move"],["musical-note","paperclip","pencil","people","person","phone","pie-chart","pin","play-circle","plus","power-standby","print","project","pulse","puzzle-piece","question-mark","rain","random","reload","resize-both","resize-height","resize-width","rss-alt","rss","script","share-boxed","share","shield","signal","signpost","sort-ascending","sort-descending","spreadsheet"],["star","sun","tablet","tag","tags","target","task","terminal","text","thumb-down","thumb-up","timer","transfer","trash","underline","vertical-align-bottom","vertical-align-center","vertical-align-top","video","volume-high","volume-low","volume-off","warning","wifi","wrench","x","yen","zoom-in","zoom-out"]],av=[14,179,293,453,565,710,825],nv=[69,4,4,4,4,4,4];function lv(r){var s=r&&r.title?r.title:"",a=g(s).length,i=Math.max(50,a*8+24);return' <mxCell id="t_title" value="'+w(s)+`" style="text;html=1;fillColor=none;strokeColor=none;fontSize=14;fontStyle=1;fontColor=#000000;align=center;verticalAlign=middle;" vertex="1" parent="1">- <mxGeometry x="5" y="8" width="`+i+`" height="39" as="geometry"/>+`)}function nu(r){for(var n=Xf(r),e=0,f=0;f<n.length;f++){var a=tu(n[f]);a>e&&(e=a)}return Math.max(50,Math.round(e*13/14+21))}function qf(r){var n=Xf(r).length;return Math.round(n*15.3+10)}function Zu(r,n,e){var f={fill:n,stroke:e};if(!r)return f;var a=String(r).replace(/^#/,"").split(";");a[0]&&(f.fill=P("#"+a[0])||n);for(var h=1;h<a.length;h++){var B=a[h].match(/^line\s*:\s*(\S+)/i);if(B){var H=P(B[1]);H&&(f.stroke=H)}}return f}function pc(r,n){var e=r.actors,f=r.usecases,a=r.containers,h=r.relationships,B=r.notes,H=0;if(r.containers)for(var p=0;p<r.containers.length;p++)r.containers[p].parent==null&&H++;var U=!1;if(r.actors&&r.containers)for(var N=0;N<r.actors.length;N++){for(var j=!1,Q=0;Q<r.containers.length;Q++)if(r.containers[Q].children&&r.containers[Q].children.indexOf(r.actors[N].id)>=0){j=!0;break}if(!j){U=!0;break}}var _r;r.direction==="LR"?_r="LR":r.direction==="TB"?_r="TB":_r=H>=2&&!U?"LR":"TB";var Lr="",er=0;function Qr(ga){return ga+"_"+er++}var Vr=r.styleSheet||null,he=null,zr=["fillColor","gradientColor"];function Jr(ga,Vo,qa,Rn,On){return s(ga,Vr,["root","element","componentDiagram"].concat(Vo),qa||[],Rn||"vertex",On)}function br(ga,Vo,qa){he=Vr==null?null:{name:ga,stereotypes:Vo?[Vo]:[],skip:qa?zr:null}}function Br(ga,Vo){if(he==null)return ga;var qa=Vo?"edge":ga.indexOf("text;")===0?"text":"vertex";return Jr(ga,[he.name],he.stereotypes,qa,he.skip)}var Ie=function(ga,Vo,qa,Rn,On,ln,kn,$n){return oe(ga,Vo,Br(qa,!1),Rn,On,ln,kn,$n)},To=function(ga,Vo,qa,Rn,On,ln,kn,$n){return _(ga,Vo,Br(qa,!1),Rn,On,ln,kn,$n)},Sr=function(ga,Vo,qa,Rn,On,ln,kn,$n){return Ko(ga,Vo,Br(qa,!0),Rn,On,ln,kn,$n)};function Rr(ga,Vo,qa,Rn,On){var ln=Qr("actor"),kn=Zu(On,"#F1F1F1","#181818"),$n=Ie(ln,"","shape=umlActor;html=1;fillColor="+kn.fill+";strokeColor="+kn.stroke+";fontColor=#000000;fontSize=14;",Vo,qa,Qi,Rs,Rn);if(ga){var gl=au(ga),Pn=Math.max(Qi,Math.round(tu(ga)+8)),Vn=Qr("actorlbl");$n+=Ie(Vn,ga,"text;html=1;align=center;verticalAlign=top;fontColor=#000000;fontSize=14;",Vo+(Qi-Pn)/2,qa+Rs+2,Pn,gl*17,Rn)}return{id:ln,cells:$n}}function ue(ga,Vo,qa,Rn,On,ln,kn,$n){for(var gl=qu(Vo),Pn=gl.parts,Vn=[],Pl=0;Pl<Pn.lines.length;Pl++)Vn.push(Pn.seps.indexOf(Pl)>=0?'<font style="font-size:6px;"> </font>':T(Pn.lines[Pl]));for(var $l=To(ga,Vn.join("<br>"),"ellipse;html=1;fillColor="+qa.fill+";strokeColor="+qa.stroke+";whiteSpace=wrap;fontColor=#000000;fontSize=14;",Rn,On,ln,kn,$n),ql=(kn-gl.textH)/2,ii=0,Yl=0;Yl<Pn.lines.length;Yl++)if(Pn.seps.indexOf(Yl)>=0){var Ml=ql+ii+Xu/2,El=Ml-kn/2,_l=ln/2,xl=kn/2,Hl=_l*Math.sqrt(Math.max(0,1-El*El/(xl*xl)));$l+=Ie(Qr("ucsep"),"","line;strokeWidth=1;strokeColor="+qa.stroke+";fillColor=none;",Math.round(Rn+ln/2-Hl),Math.round(On+Ml-1),Math.round(2*Hl),2,$n),ii+=Xu}else ii+=zf;return $l}for(var L={},Y={},nr=0;nr<a.length;nr++)for(var Yr=0;Yr<a[nr].children.length;Yr++)Y[a[nr].children[Yr]]=!0;var mr=[],q={},ur,kr;for(ur=0;ur<e.length;ur++)kr=e[ur],Y[kr.id]||(mr.push({id:kr.id,kind:"actor",data:kr,w:Qi,h:Rs}),q[kr.id]=!0);for(ur=0;ur<f.length;ur++)if(kr=f[ur],!Y[kr.id]){var Ye=kr.stereotype?"\xAB"+kr.stereotype+`\xBB+`+kr.name:kr.name;mr.push({id:kr.id,kind:"usecase",data:kr,w:Wf(Ye),h:Uf(Ye)}),q[kr.id]=!0}var Fe={},qe={};for(ur=0;ur<mr.length;ur++)Fe[mr[ur].id]=[],qe[mr[ur].id]=0;for(ur=0;ur<h.length;ur++){var Ae=h[ur];q[Ae.from]&&q[Ae.to]&&(Fe[Ae.from].push({to:Ae.to,span:Ae.span!=null?Ae.span:1}),qe[Ae.to]++)}var Ue={},no=[],Ee;for(Ee in qe)qe.hasOwnProperty(Ee)&&qe[Ee]===0&&(Ue[Ee]=0,no.push(Ee));for(var $o=mr.length*mr.length+16;no.length>0&&$o-- >0;){var ve=no.shift(),Mr=Fe[ve]||[];for(ur=0;ur<Mr.length;ur++){var _o=Mr[ur].to,et=Ue[ve]+Mr[ur].span;(Ue[_o]===void 0||Ue[_o]<et)&&(Ue[_o]=et,no.push(_o))}}for(ur=0;ur<mr.length;ur++)Ue[mr[ur].id]===void 0&&(Ue[mr[ur].id]=0);var io={},po=[];for(ur=0;ur<mr.length;ur++){var So=Ue[mr[ur].id];io[So]||(io[So]=[],po.push(So)),io[So].push(mr[ur])}po.sort(function(ga,Vo){return ga-Vo});for(var Ao=Vl,Qo=Vl,Io,fo,mt,bo,ea=_r!=="LR",No=ea?"w":"h",oo=ea?Kf:60,Oe={},Yo={},_e=0;_e<B.length;_e++){var X=B[_e];q[X.target]&&(X.position==="right"?Oe[X.target]=nu(X.text)+Ci:X.position==="left"&&(Yo[X.target]=nu(X.text)+Ci))}var $r={},to=ea?Yo:{},Hr=ea?Oe:{};for(Io=po.length-1;Io>=0;Io--){mt=io[po[Io]];var cr=0;for(fo=0;fo<mt.length;fo++){bo=mt[fo];for(var ro=bo[No]/2,Me=to[bo.id]||0,Lo=Hr[bo.id]||0,sr=Fe[bo.id]||[],Go=0,rn=0,wt=0;wt<sr.length;wt++)$r[sr[wt].to]!==void 0&&(Go+=$r[sr[wt].to],rn++);var zt=cr+Me+ro,ka=rn?Go/rn:zt,Rt=ka>zt?ka:zt;$r[bo.id]=Rt,cr=Rt+ro+Lo+ss}}var gt=1/0;for(ur=0;ur<mr.length;ur++){bo=mr[ur];var dt=$r[bo.id]-bo[No]/2-(to[bo.id]||0);dt<gt&&(gt=dt)}var Fa=Vl-gt,oa=Vl;for(Io=0;Io<po.length;Io++){mt=io[po[Io]];var bt=0;for(fo=0;fo<mt.length;fo++){var Wt=ea?mt[fo].h:mt[fo].w;Wt>bt&&(bt=Wt)}for(fo=0;fo<mt.length;fo++){bo=mt[fo];var ha=$r[bo.id]+Fa;ea?(bo.x=ha-bo.w/2,bo.y=oa+(bt-bo.h)/2):(bo.y=ha-bo.h/2,bo.x=oa+(bt-bo.w)/2);var co=bo.x+bo.w+(ea&&Oe[bo.id]||0);co>Ao&&(Ao=co),bo.y+bo.h>Qo&&(Qo=bo.y+bo.h)}oa+=bt+oo}var lt={};for(ur=0;ur<mr.length;ur++)lt[mr[ur].id]=!0;var it={};for(ur=0;ur<mr.length;ur++){var st=mr[ur];if(!(st.kind!=="actor"||a.length===0)){for(var ja=0,Je=!0,mo=0;mo<h.length;mo++){var ge=h[mo].from===st.id?h[mo].to:h[mo].to===st.id?h[mo].from:null;ge!=null&&(ja++,lt[ge]&&(Je=!1))}ja>0&&Je&&(it[st.id]=!0)}}for(ur=0;ur<mr.length;ur++){var We=mr[ur];if(!it[We.id]){var Et,wo=We.data.name,la=We.x+ur*.1;if(We.data.stereotype&&(wo="\xAB"+We.data.stereotype+`\xBB+`+wo),We.kind==="actor"){br("actor",We.data&&We.data.stereotype,We.data&&We.data.color);var ia=Rr(wo,la,We.y,"1",We.data&&We.data.color);Et=ia.id,Lr+=ia.cells}else{br("usecase",We.data&&We.data.stereotype,We.data&&We.data.color),Et=Qr("uc");var pe=Zu(We.data&&We.data.color,"#F1F1F1","#181818");Lr+=ue(Et,wo,pe,la,We.y,We.w,We.h,"1")}L[We.id]={x:la,y:We.y,w:We.w,h:We.h,cellId:Et,kind:We.kind,lblH:2+17*au(wo)}}}for(var Zr,$t,xt=!1,kt=0;kt<mr.length;kt++)it[mr[kt].id]&&(xt=!0);var Dt=80;_r==="LR"?(Zr=Math.max(Vl,Ao),xt&&(Zr=Math.max(Zr,Vl+Qi+12+Dt)),$t=Vl):(Zr=Vl,$t=Math.max(Vl,Qo+ws));for(var Ut=19,Co={},Ht={},Po={},Tt=[],St=[],vt=[],Xt=0,sa=0,Xa=0,ya=0;ya<a.length;ya++){for(var Mo=0;Mo<a[ya].children.length;Mo++)Co[a[ya].children[Mo]]=ya;Tt.push(0),St.push(0)}for(var _t=0;_t<B.length;_t++){var ct=B[_t];if(!(ct.position==="floating"||Co[ct.target]===void 0)){var $a=Co[ct.target],en=nu(ct.text),da=qf(ct.text);if(ct.container===$a)ct.position==="left"?Ht[ct.target]=(Ht[ct.target]||0)+en+Ci:ct.position==="top"?Tt[$a]=Math.max(Tt[$a],da+Ci):ct.position==="bottom"?St[$a]=Math.max(St[$a],da+Ci):Po[ct.target]=(Po[ct.target]||0)+en+Ci;else{ct._outside=$a;var Kt=a[$a].children,va=Kt.indexOf(ct.target);ct.position==="left"?(Xt=Math.max(Xt,en+Ut),ct._arc=va>0):ct.position==="top"?sa=Math.max(sa,da+Ci):ct.position!=="bottom"&&(ct._arc=va>=0&&va<Kt.length-1),ct._arc&&(Xa=ws)}}}Zr+=Xt,$t+=sa+Xa;for(var ma=Zr,ba=0;ba<a.length;ba++){let ga=function(Vo,qa,Rn){br("usecase",Vo.stereotype,Vo.color);var On=Qr("uc"),ln=Zu(Vo.color,"#F1F1F1","#181818"),kn=Vo.name;Vo.stereotype&&(kn="\xAB"+Vo.stereotype+`\xBB+`+kn),Lr+=ue(On,kn,ln,qa,Rn+Xo,Vo._w,Vo._h,jt),L[Vo.id]={x:Zr+qa,y:$t+Rn,w:Vo._w,h:Vo._h,cellId:On}};for(var ot=a[ba],jt=Qr("rect"),ta=ot.children,_a=[],ca=[],ut=0;ut<ta.length;ut++){for(var wa=ta[ut],Bt=!1,Bo=0;Bo<f.length&&!Bt;Bo++)f[Bo].id===wa&&(_a.push(f[Bo]),Bt=!0);for(var Oa=0;Oa<e.length&&!Bt;Oa++)e[Oa].id===wa&&(ca.push(e[Oa]),Bt=!0)}var Vt=r.direction==="LR",go,xo,qt=0;for(go=0;go<_a.length;go++){var Pt=_a[go],Jt=Pt.stereotype?"\xAB"+Pt.stereotype+`\xBB+`+Pt.name:Pt.name;Pt._w=Wf(Jt),Pt._h=Uf(Jt),qt+=Pt._w+(Ht[Pt.id]||0)+(Po[Pt.id]||0),go>0&&(qt+=ss)}var aa=[];if(Vt&&_a.length>0){var Pa={},gr={};for(go=0;go<_a.length;go++)Pa[_a[go].id]=0,gr[_a[go].id]=!0;for(var de=0;de<_a.length+2;de++)for(var Gr=0;Gr<h.length;Gr++){var Or=h[Gr];if(!(!gr[Or.from]||!gr[Or.to])){var re=Or.span!=null?Or.span:1,be=Pa[Or.from]+re;Pa[Or.to]<be&&(Pa[Or.to]=be)}}for(go=0;go<_a.length;go++){for(var Cr=Pa[_a[go].id];aa.length<=Cr;)aa.push([]);aa[Cr].push(_a[go])}for(var te={},ce=0;ce<e.length;ce++)te[e[ce].id]=ce;for(var fe=0;fe<aa.length;fe++){for(var tt=[],ko=0;ko<aa[fe].length;ko++){for(var Xr=0,Ce=0,jr=0;jr<h.length;jr++)h[jr].to===aa[fe][ko].id&&te[h[jr].from]!==void 0&&(Xr+=te[h[jr].from],Ce++);tt.push({m:aa[fe][ko],i:ko,k:Ce?Xr/Ce:ko})}tt.sort(function(Vo,qa){return Vo.k-qa.k||Vo.i-qa.i}),aa[fe]=[];for(var ao=0;ao<tt.length;ao++)aa[fe].push(tt[ao].m)}}var De=ca.length*Qi;ca.length>1&&(De+=(ca.length-1)*ss);for(var ft=ca.length>0,Ho=_a.length>0,Ze=[],Ro=[],Ot=0,Wo=0,It=0;It<aa.length;It++){for(var Uo=0,jo=0,Nt=0;Nt<aa[It].length;Nt++)aa[It][Nt]._w>Uo&&(Uo=aa[It][Nt]._w),Nt>0&&(jo+=ws),jo+=aa[It][Nt]._h;Ze.push(Uo),Ro.push(jo),It>0&&(Ot+=ss),Ot+=Uo,jo>Wo&&(Wo=jo)}var ne=Math.max(Vt?Ot:qt,De,Hf),xe=ne+ou*2,Le=26,He=Le+ou,Ge=(ft?He+Rs+18+53:He)+Tt[ba],je;Ho?je=(Vt?Ge+Wo:Ge+34)+St[ba]+ou:je=He+Rs+18+ou,vt[ba]={x:Zr,y:$t,w:xe,h:je},br(ot.kind==="package"?"package":ot.kind||"rectangle",ot.stereotype,ot.color);var Xo=ot.kind==="package"?22:0;if(ot.kind==="package"){var Dr=Math.round(Math.min(xe,tu(ot.name)*1.15+24));Dr<30&&(Dr=30),Lr+=Ie(jt,ot.name,"shape=folder;tabWidth="+Dr+";tabHeight=22;tabPosition=left;html=1;fillColor=none;strokeColor=#181818;fontColor=#000000;fontSize=13;fontStyle=1;align=left;verticalAlign=top;spacingLeft=6;spacingTop=1;container=1;collapsible=0;",Zr,$t-Xo,xe,je+Xo,"1")}else Lr+=Ie(jt,ot.name,"swimlane;collapsible=0;startSize=26;fillColor=none;strokeColor=#181818;fontColor=#000000;fontSize=13;fontStyle=1;whiteSpace=wrap;",Zr,$t,xe,je,"1");var wr=(xe-De)/2;for(xo=0;xo<ca.length;xo++){var Oo=ca[xo],eo=Oo.name;Oo.stereotype&&(eo="\xAB"+Oo.stereotype+`\xBB+`+eo),br("actor",Oo.stereotype,Oo.color);var yo=Rr(eo,wr,He+Xo,jt,Oo.color);Lr+=yo.cells,L[Oo.id]={x:Zr+wr,y:$t+He,w:Qi,h:Rs,cellId:yo.id,kind:"actor",lblH:2+17*au(eo)},wr+=Qi+ss}if(Vt)for(var Zt=(xe-Ot)/2,Ct=0;Ct<aa.length;Ct++){for(var Ia=Ge+(Wo-Ro[Ct])/2,Ba=0;Ba<aa[Ct].length;Ba++){var An=aa[Ct][Ba];ga(An,Zt+(Ze[Ct]-An._w)/2,Ia),Ia+=An._h+ws}Zt+=Ze[Ct]+ss}else{var Fr=(xe-qt)/2;for(go=0;go<_a.length;go++)Fr+=Ht[_a[go].id]||0,ga(_a[go],Fr,Ge),Fr+=_a[go]._w+(Po[_a[go].id]||0)+ss}Zr+=xe+$c}var Qe=[];for(ur=0;ur<mr.length;ur++){var lo=mr[ur];if(it[lo.id]){for(var at=0,ua=0,pa=0,Ea=0;Ea<h.length;Ea++){var on=h[Ea].from===lo.id?h[Ea].to:h[Ea].to===lo.id?h[Ea].from:null;on==null||!L[on]||(at+=L[on].x+L[on].w/2,ua+=L[on].y+L[on].h/2,pa++)}var Ya=2+17*au(lo.data.name),Tn,Ha;_r==="LR"?(Tn=ma-Dt-lo.w,Ha=pa>0?Math.round(ua/pa-(lo.h+Ya)/2):lo.y,Ha<Vl&&(Ha=Vl)):(Tn=pa>0?at/pa-lo.w/2:lo.x,Ha=lo.y),Qe.push({fe:lo,x:Tn,y:Ha,lblH:Ya})}}if(_r==="LR")for(Qe.sort(function(ga,Vo){return ga.y-Vo.y}),ur=1;ur<Qe.length;ur++){var Nn=Qe[ur-1].y+Qe[ur-1].fe.h+Qe[ur-1].lblH+12;Qe[ur].y<Nn&&(Qe[ur].y=Nn)}for(ur=0;ur<Qe.length;ur++){var so=Qe[ur];br("actor",so.fe.data&&so.fe.data.stereotype,so.fe.data&&so.fe.data.color);var Eo=so.fe.data.name;so.fe.data&&so.fe.data.stereotype&&(Eo="\xAB"+so.fe.data.stereotype+`\xBB+`+Eo);var rt=Rr(Eo,so.x,so.y,"1",so.fe.data&&so.fe.data.color);Lr+=rt.cells,L[so.fe.id]={x:so.x,y:so.y,w:so.fe.w,h:so.fe.h,cellId:rt.id,kind:"actor",lblH:so.lblH}}for(var Ra=0;Ra<h.length;Ra++){var pt=h[Ra],tn=L[pt.from],Ka=L[pt.to];if(!(!tn||!Ka)){var Va;pt.type==="generalization"?Va="endArrow=block;endFill=0;":pt.type==="dependency"?Va=pt.directed?"endArrow=open;dashed=1;dashPattern=5 5;":"endArrow=none;dashed=1;":Va=pt.directed?"endArrow=block;endFill=1;":"endArrow=none;",Va+="strokeColor=#181818;fontColor=#000000;fontSize=11;edgeStyle=none;rounded=0;html=1;",tn.kind==="actor"&&tn.lblH&&Ka.y>tn.y+tn.h&&(Va+="exitX=0.5;exitY="+Math.round(100*(tn.h+tn.lblH+3)/tn.h)/100+";exitPerimeter=0;");var Ja="";pt.stereotype&&(Ja="\xAB"+pt.stereotype+"\xBB"),pt.label&&(Ja=Ja?Ja+`+`+pt.label:pt.label),Va=y(Jr(Va,["arrow"],null,"edge",pt.color?["strokeColor"]:null),Vr),Lr+=O(Qr("rel"),Ja,Va,tn.cellId,Ka.cellId,"1")}}var an=Qo+Kf,Ln=[];function Gn(ga,Vo,qa,Rn,On){var ln=Ln.slice();for(var kn in L)if(!(!L.hasOwnProperty(kn)||kn===On)){var $n=L[kn];ln.push($n.kind==="actor"&&$n.lblH?{x:$n.x,y:$n.y,w:$n.w,h:$n.h+$n.lblH}:$n)}for(var gl=0;gl<ln.length;gl++){var Pn=ln[gl];if(ga<Pn.x+Pn.w+6&&ga+qa+6>Pn.x&&Vo<Pn.y+Pn.h+6&&Vo+Rn+6>Pn.y)return!0}return!1}for(var cn=0;cn<B.length;cn++){var Yt=B[cn],wn=Yt.position==="floating"?Yt.anchor:Yt.target,Ke=wn?L[wn]:null,qo=nu(Yt.text),na=qf(Yt.text),Ft=Vl,fa=Vl,mn=[];if(Yt.position==="floating"){for(var En=Yt.links||(Yt.anchor?[Yt.anchor]:[]),Io=0;Io<En.length;Io++)L[En[Io]]&&mn.push(L[En[Io]]);if(mn.length>1){for(var Zn=0,nn=0,Dn=0;Dn<mn.length;Dn++)Zn+=mn[Dn].x+mn[Dn].w/2,nn+=mn[Dn].y+mn[Dn].h/2;Ft=Math.round(Zn/mn.length+3),fa=Math.round(nn/mn.length-na/2)}else Ke?(Ft=Ke.x+(Ke.w-qo)/2,fa=Ke.y+Ke.h+(Ke.kind==="actor"&&Ke.lblH?Ke.lblH:0)+Ci):(Ft=Vl,fa=an,an+=na+ws);for(var rl=0;rl<12&&Gn(Ft,fa,qo,na,null);rl++)Ft+=24}else if(Ke&&Yt._outside!=null&&vt[Yt._outside]){var Un=vt[Yt._outside];if(Yt.position==="left")Ft=Un.x-qo-Ut,fa=Ke.y+(Ke.h-na)/2;else if(Yt.position==="top")Ft=Ke.x+(Ke.w-qo)/2,fa=Un.y-na-Ci;else if(Yt.position==="bottom")Ft=Ke.x+(Ke.w-qo)/2,fa=Un.y+Un.h+Ci;else{Ft=Un.x+Un.w+Ut,fa=Ke.y+(Ke.h-na)/2;for(var el=0;el<12&&Gn(Ft,fa,qo,na,null);el++)Ft+=24}}else Ke&&(Yt.position==="left"?(Ft=Ke.x-qo-Ci,Ft<Vl&&(Ft=Vl),fa=Ke.y+(Ke.h-na)/2):Yt.position==="top"?(Ft=Ke.x+(Ke.w-qo)/2,fa=Ke.y-na-Ci):Yt.position==="bottom"?(Ft=Ke.x+(Ke.w-qo)/2,fa=Ke.y+Ke.h+Ci):(Ft=Ke.x+Ke.w+Ci,fa=Ke.y+(Ke.h-na)/2));Ft=Math.round(Ft),fa=Math.round(fa),br("note",null,Yt.color);var Cl=Qr("note");if(Lr+=Ie(Cl,Yt.text||"","shape=note;size=10;fillColor=#FEFFDD;strokeColor=#181818;fontSize=13;whiteSpace=wrap;align=left;",Ft,fa,qo,na,"1"),Ln.push({x:Ft,y:fa,w:qo,h:na}),Yt.position==="floating"&&mn.length>1)for(var Il=0;Il<mn.length;Il++)mn[Il].cellId&&(Lr+=O(Qr("noteln"),"","endArrow=none;dashed=1;html=1;strokeColor=#181818;",Cl,mn[Il].cellId,"1"));else if(Yt.position==="floating"&&mn.length===1){var jn=mn[0],hi=jn.y+jn.h+(jn.kind==="actor"&&jn.lblH?jn.lblH:0);Lr+=Ie(Qr("noteptr"),"","shape=triangle;fillColor=#FEFFDD;strokeColor=#181818;strokeWidth=0.5;direction=north;",Math.round(jn.x+jn.w/2)-4,hi,8,Math.max(6,fa-hi+1),"1")}else if(Ke&&Yt._outside!=null&&Ke.cellId&&Yt.position!=="top"&&Yt.position!=="bottom"){var $i=Jr("endArrow=none;dashed=1;html=1;strokeColor=#181818;",["arrow"],null,"edge",["strokeWidth"]),pn=vt[Yt._outside];if(Yt._arc){var Fl=Math.round(pn.y-22);Lr+=' <mxCell id="'+i(Qr("noteln"))+'" value="" style="'+i($i+"curved=1;")+'" edge="1" source="'+i(Ke.cellId)+'" target="'+i(Cl)+`" parent="1">+ <mxGeometry relative="1" as="geometry">+ <Array as="points">+ <mxPoint x="`+Math.round(Ke.x+Ke.w/2)+'" y="'+Fl+`"/>+ <mxPoint x="`+Math.round(Ft+qo/2)+'" y="'+Fl+`"/>+ </Array>+ </mxGeometry></mxCell>-`}function ov(){var r="",s=0;function a(L,m,K,W,Y,Lr){return' <mxCell id="oi'+s+++'" value="'+L+'" style="'+m+`" vertex="1" parent="1">- <mxGeometry x="`+K+'" y="'+W+'" width="'+Y+'" height="'+Lr+`" as="geometry"/>+`}else Lr+=O(Qr("noteln"),"",$i,Ke.cellId,Cl,"1")}else if(Ke){var hl="shape=triangle;fillColor=#FEFFDD;strokeColor=#181818;strokeWidth=0.5;",tl=Math.round(Ke.x+Ke.w/2),al=Math.round(Ke.y+Ke.h/2);Yt.position==="left"?Lr+=Ie(Qr("noteptr"),"",hl+"direction=east;",Ft+qo-1,al-4,Math.max(6,Ke.x-(Ft+qo)+1),8,"1"):Yt.position==="top"?Lr+=Ie(Qr("noteptr"),"",hl+"direction=south;",tl-4,fa+na-1,8,Math.max(6,Ke.y-(fa+na)+1),"1"):Yt.position==="bottom"?Lr+=Ie(Qr("noteptr"),"",hl+"direction=north;",tl-4,Ke.y+Ke.h,8,Math.max(6,fa-(Ke.y+Ke.h)+1),"1"):Lr+=Ie(Qr("noteptr"),"",hl+"direction=west;",Ke.x+Ke.w,al-4,Math.max(6,Ft-(Ke.x+Ke.w)+1),8,"1")}}return Lr}var Rc={" ":4.4297,"!":4.4297,'"':5.2295,"#":8.8525,"&":9.7617,"'":3.206,"(":4.5527,")":4.5527,"*":6.7471,"+":11.1289,",":4.4297,"-":8.1006,".":4.4297,"/":7.3418,0:8.8525,1:8.8525,2:8.8525,3:8.8525,4:8.8525,5:8.8525,6:8.8525,7:8.8525,8:8.8525,9:8.8525,":":4.4297,";":4.4297,"=":11.1289,"?":5.9063,"@":12.0176,A:9.6592,B:8.0527,C:9.6865,D:10.4863,E:7.5879,F:7.5059,G:10.1172,H:10.2881,I:4.0332,J:4.3545,K:9.1396,L:7.4648,M:12.0586,N:10.3428,O:10.876,P:7.7383,Q:10.876,R:8.8525,S:7.54,T:8.8525,U:9.7002,V:9.1533,W:11.9766,X:8.7637,Y:8.7226,Z:8.4629,"[":4.5527,"]":4.5527,"^":8.8525,_:7,"`":8.5996,a:7.7314,b:8.8115,c:7.1709,d:8.8115,e:7.7998,f:5.1475,g:8.7295,h:8.6885,i:4.0469,j:4.2588,k:8.1826,l:4.0469,m:13.0703,n:8.6885,o:8.5996,p:8.8115,q:8.8115,r:5.7285,s:7.1367,t:5.2363,u:8.6885,v:7.2461,w:10.7871,x:8.5859,y:7.3144,z:8.0254,"{":4.5527,"|":5.2295,"}":4.5527},gc={" ":4.6143,"!":4.3887,'"':6.3233,"#":9.2354,"&":10.4248,"'":3.459,"(":5.1885,")":5.1885,"*":6.5284,"+":11.1357,",":3.459,"-":8.9415,".":3.459,"/":7.9161,0:9.2354,1:9.2354,2:9.2354,3:9.2354,4:9.2354,5:9.2354,6:9.2354,7:9.2354,8:9.2354,9:9.2354,":":3.459,";":3.459,"=":11.1357,"?":6.959,"@":12.0176,A:10.3086,B:8.8184,C:9.9736,D:11.1016,E:8.4082,F:8.0391,G:10.4385,H:10.9238,I:4.6416,J:5.8584,K:9.9394,L:8.1416,M:12.708,N:10.7598,O:11.5254,P:8.5859,Q:11.5322,R:9.6592,S:7.998,T:9.6592,U:10.3086,V:9.7822,W:12.6533,X:9.3379,Y:9.6113,Z:9.0234,"[":5.1885,"]":5.1885,"^":9.2354,_:7,"`":8.9414,a:8.2305,b:9.2764,c:7.4512,d:9.2764,e:8.2031,f:5.8037,g:9.2354,h:9.1943,i:4.5527,j:4.6621,k:8.8594,l:4.5527,m:13.5762,n:9.1943,o:8.9414,p:9.2764,q:9.2764,r:6.3643,s:7.916,t:5.6738,u:9.1943,v:8.3057,w:12.0791,x:8.2715,y:8.1621,z:8.2715,"{":5.1885,"|":5.4004,"}":5.1885},ju=14,Ac=1.17773,mc=1.1499,kc=.848,_c=.60205;function Oc(r,n){var e=n?gc:Rc;if(e.hasOwnProperty(r))return e[r];var f=r.charCodeAt(0);return f>=48&&f<=57?e[0]:f>=65&&f<=90?n?9.9:9:f>=11904?ju:n?8.4:7.9}function Fc(r){var n=nt.asInt(r,"FontSize",14);(n===-1||!(n>0))&&(n=14);var e=nt.fontFace(r),f=nt.raw(r,"FontName")||"SansSerif",a="sans";return/mono|courier/i.test(f)?a="mono":/serif/i.test(f)&&!/sans/i.test(f)&&(a="serif"),{size:n,bold:!!e.bold,italic:!!e.italic,family:a,name:f}}var bc={size:14,bold:!1,italic:!1,family:"sans",name:"SansSerif"};function rs(r,n){var e=String(r??"");if(n.family==="mono")return e.length*n.size*_c;for(var f=0,a=0;a<e.length;a++)f+=Oc(e.charAt(a),n.bold);return f*=n.size/ju,n.family==="serif"&&(f*=kc),f}function Bc(r){return r.size*(r.family==="serif"?mc:Ac)}function Ki(r,n,e){for(var f=String(r??"").split(/\\n|\n/),a={size:n>0?n:ju,bold:!!e},h=0,B=0;B<f.length;B++){var H=rs(f[B],a);H>h&&(h=H)}return h}function Vu(r,n){var e=rs(D(r),n);if(!n.bold){var f={size:n.size,bold:!0,italic:n.italic,family:n.family,name:n.name};String(r).replace(/\*\*([\s\S]+?)\*\*/g,function(h,B){var H=D(B);return e+=rs(H,f)-rs(H,n),""})}if(n.family!=="mono"){var a={size:n.size,bold:!1,italic:!1,family:"mono",name:n.name};String(r).replace(/""([\s\S]+?)""/g,function(h,B){return e+=rs(B,a)-rs(B,n),""})}return e}function yc(r,n,e){if(!(e>0))return[r];for(var f=String(r).split(" "),a=rs(" ",n),h=[],B=[],H=0,p=0;p<f.length;p++){var U=Vu(f[p],n),N=B.length>0?H+a+U:U;N>e&&B.length>0?(h.push(B.join(" ")),B=[f[p]],H=U):(B.push(f[p]),H=N)}return h.push(B.join(" ")),h}function Ec(r,n,e){for(var f=String(r??"").replace(/\\n/g,`+`),a=f.split(`+`),h=[],B=0,H=0;H<a.length;H++)h=h.concat(yc(a[H],n,e));for(var p=0;p<h.length;p++){var U=Vu(h[p]===""?" ":h[p],n);U>B&&(B=U)}return{lines:h,text:h.join(`+`),textW:B,textH:h.length*Bc(n)}}function lu(r){for(var n=String(r??"").split(`+`),e=0,f=0;f<n.length;f++){var a=rs(n[f],bc);a>e&&(e=a)}return e}function Zf(r){var n=String(r??"").replace(/^\s+|\s+$/g,"");return/^\*\*[\s\S]+\*\*$/.test(n)&&n.indexOf("**",2)===n.length-2?1:/^\/\/[\s\S]+\/\/$/.test(n)&&n.indexOf("//",2)===n.length-2?2:/^__[\s\S]+__$/.test(n)&&n.indexOf("__",2)===n.length-2?4:0}function Dc(r){return/\*\*[\s\S]+?\*\*|\/\/[\s\S]+?\/\/|__[\s\S]+?__|~~[\s\S]+?~~/.test(String(r??""))}function Ti(r){return String(Math.round(r*1e4)/1e4)}function iu(r,n){if(r==null)return n;if(r==="none")return"none";var e=String(r).replace(/^\s+|\s+$/g,""),f=/^(#?[0-9A-Za-z]+)[|\/\\-][#]?[0-9A-Za-z]+$/.exec(e);f!=null&&(e=f[1]);var a=P(e);if(a==null)return"#FFFFFF";if(/^#[0-9A-Fa-f]{6}$/.test(a))return a.toUpperCase();if(/^#[0-9A-Fa-f]{3}$/.test(a))return("#"+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2)+a.charAt(3)+a.charAt(3)).toUpperCase();if(/^#[0-9A-Fa-f]$/.test(a)){var h=a.charAt(1);return("#"+h+h+h+h+h+h).toUpperCase()}return/^#[0-9A-Fa-f]{8}$/.test(a)?("#"+a.substring(1,7)).toUpperCase():"#FFFFFF"}function jf(r,n,e,f){var a=["root","element",r,"node"],h=n.style==="leaf",B=!n.children||n.children.length===0;return e===0?(a.push("rootNode"),h&&a.push("boxless")):h&&B?a.push("leafNode","boxless"):h?a.push("boxless"):B&&a.push("leafNode"),nt.signature(a,e,n.stereotypes||[],f)}function Vf(r,n,e,f,a){for(var h=[jf(n,e,f,!1)],B=0;B<a.length;B++)h.push(jf(n,a[B],f,!0));var H=nt.nodeStyle(r,h);if(e.color){var p={};for(var U in H)H.hasOwnProperty(U)&&(p[U]=H[U]);p.BackGroundColor={value:e.color,priority:1/0},H=p}return H}function Jf(r,n,e,f){return nt.plainStyle(r,nt.signature(["root","element",n,"arrow"],f,e.stereotypes||[],!1))}function Qf(r,n,e,f){var a=Fc(n),h=Ec(r.label,a,nt.maxWidth(n)),B,H,p;return e?(B=f,H=h.textW+B.left+B.right,p=h.textH+B.top+B.bottom):(B=nt.clockwise(n,"Padding"),H=Math.max(nt.asDouble(n,"MinimumWidth",0),h.textW+B.top+B.bottom),p=h.textH+B.top+B.bottom),{font:a,tb:h,pad:B,w:H,h:p}}function rd(r){return r.dashVisible>0?"dashed=1;fixDash=1;dashPattern="+Ti(r.dashVisible)+" "+Ti(r.dashSpace)+";":""}function ed(r){return String(r).replace(/[;=<>"'`{}\r\n\t]/g,"")}function od(r,n,e,f){var a=n.font,h=nt.horizontalAlignment(r),B=iu(nt.color(r,"FontColor"),"#000000"),H;if(e)H="text;html=1;strokeColor=none;fillColor=none;align="+h+";verticalAlign=middle;whiteSpace=wrap;fontColor="+B+";fontSize="+a.size+";spacing=0;"+(n.pad.left>0?"spacingLeft="+Ti(n.pad.left)+";":"")+(n.pad.right>0?"spacingRight="+Ti(n.pad.right)+";":"");else{var p=nt.asDouble(r,"RoundCorner",0),U=nt.stroke(r),N=iu(nt.color(r,"BackGroundColor"),"#F1F1F1"),j=iu(nt.color(r,"LineColor"),"#181818");H=(p>0?"rounded=1;arcSize="+Ti(p)+";absoluteArcSize=1;":"rounded=0;")+"fillColor="+N+";strokeColor="+j+";strokeWidth="+Ti(U.thickness)+";"+rd(U)+(nt.shadowing(r)>0?"shadow=1;":"")+"whiteSpace=wrap;fontColor="+B+";fontSize="+a.size+";align="+h+";verticalAlign=middle;spacing=0;spacingTop="+Ti(n.pad.top)+";spacingBottom="+Ti(n.pad.bottom)+";"+(h==="left"?"spacingLeft="+Ti(n.pad.left)+";":h==="right"?"spacingRight="+Ti(Math.max(0,n.pad.top+n.pad.bottom-n.pad.left))+";":"")}var Q=Zf(f)|(a.bold?1:0)|(a.italic?2:0);return Q!==0&&(H+="fontStyle="+Q+";"),/^sans-?serif$/i.test(a.name)||(H+="fontFamily="+ed(a.name)+";"),H}function td(r){var n=iu(nt.color(r,"LineColor"),"#181818");if(n==="none")return null;var e=nt.stroke(r);return"strokeColor="+n+";"+(e.thickness!==1?"strokeWidth="+Ti(e.thickness)+";":"")+rd(e)}function ad(r,n,e,f,a,h,B,H){var p=e.tb.text;return Zf(n.label)===0&&Dc(n.label)?(f.indexOf("html=1;")<0&&(f+="html=1;"),ye(r,V(p),f,a,h,B,H,"1")):Z(r,p,f,a,h,B,H,"1")}var gs=10,Tc=10,nd=0,Sc=30,Ic={top:1,right:0,bottom:1,left:3},Nc={top:1,right:3,bottom:1,left:0};function Ju(r,n,e,f,a,h){for(var B=n.style==="leaf",H=Vf(r,"mindmapDiagram",n,e,f),p=Qf(n,H,B,a===1?Ic:Nc),U=nt.clockwise(H,"Margin"),N=B?0:U.top+U.bottom,j={node:n,level:e,props:H,m:p,boxless:B,direction:a,w:p.w,h:p.h,marginTop:B?0:U.top,thickness:p.h+N,pw:p.w,pt:p.h+N,x1:U.left,x2:U.right+Sc,link:td(Jf(r,"mindmapDiagram",n,e)),children:[],tetris:null,cellId:null},Q=h||n.children||[],_r=[n].concat(f),Lr=0;Lr<Q.length;Lr++)j.children.push(Ju(r,Q[Lr],e+1,_r,a,null));return j}function Lc(r){if(r.children.length===0)return{t1:r.pt,e1:r.pw,t2:0,e2:0};var n=su(r);return{t1:r.pt,e1:r.pw+r.x1,t2:n.height,e2:r.x2+n.width}}function su(r){if(r.tetris!=null)return r.tetris;var n=[{x1:-1/0,x2:1/0,v:-1/0}],e=[];function f(zr,Jr){for(var br=[],Br=0;Br<n.length;Br++){var Ie=n[Br];if(!(zr>=Ie.x2)&&(br.push(Ie),Jr<=Ie.x2))return br}return br}function a(zr,Jr){for(var br=f(zr,Jr),Br=-1/0,Ie=0;Ie<br.length;Ie++)br[Ie].v>Br&&(Br=br[Ie].v);return Br}function h(zr,Jr,br){if(!(Jr<=zr)){var Br=f(zr,Jr);if(Br.length>1){for(var Ie=zr,To=1;To<Br.length;To++)h(Ie,Br[To].x1,br),Ie=Br[To].x1;h(Ie,Jr,br)}else if(Br.length===1){var Sr=Br[0];if(br<=Sr.v)return;n.splice(n.indexOf(Sr),1),Sr.x1!==zr&&n.push({x1:Sr.x1,x2:zr,v:Sr.v}),n.push({x1:zr,x2:Jr,v:br}),Jr!==Sr.x2&&n.push({x1:Jr,x2:Sr.x2,v:Sr.v}),n.sort(function(Rr,ue){return Rr.x1-ue.x1})}}}for(var B=0,H=0;H<r.children.length;H++){var p=r.children[H],U=Lc(p),N;if(n.length===1)N=0;else{var j=a(0,U.e1),Q=a(U.e1,U.e1+U.e2);N=Math.max(j+U.t1/2,Q+U.t2/2)}e.push({finger:p,tee:U,y:N}),h(0,U.e1,N+U.t1/2),U.e2>0&&h(U.e1,U.e1+U.e2,N+U.t2/2),U.e1+U.e2>B&&(B=U.e1+U.e2)}for(var _r=1/0,Lr=-1/0,er=0;er<e.length;er++){var Qr=Math.max(e[er].tee.t1,e[er].tee.t2)/2;e[er].y-Qr<_r&&(_r=e[er].y-Qr),e[er].y+Qr>Lr&&(Lr=e[er].y+Qr)}if(e.length>0)for(var Vr=(_r+Lr)/2,he=0;he<e.length;he++)e[he].y-=Vr;return r.tetris={elements:e,height:e.length>0?Lr-_r:0,width:B},r.tetris}function ld(r){return Math.max(r.pt,r.children.length>0?su(r).height:0)}function Gc(r){return r.children.length>0?su(r).width:0}function Qu(r,n,e,f){var a=r.direction,h=r.cellId;if(r.pt>0||r.pw>0){var B=a===1?n:n-r.w,H=e-r.pt/2+r.marginTop;h=f.nextId(r.level===0?"root":"mm"),f.cells+=ad(h,r.node,r.m,od(r.props,r.m,r.boxless,r.node.label),B,H,r.w,r.h),f.track(B,H,r.w,r.h)}if(r.children.length>0)for(var p=su(r),U=a===1?"exitX=1;exitY=0.5;entryX=0;entryY=0.5;":"exitX=0;exitY=0.5;entryX=1;entryY=0.5;",N=0;N<p.elements.length;N++){var j=p.elements[N],Q=Qu(j.finger,n+a*(r.pw+r.x1+r.x2),e+j.y,f);h!=null&&Q!=null&&r.link!=null&&(f.cells+=O(f.nextId("mmedge"),"","edgeStyle=orthogonalEdgeStyle;curved=1;endArrow=none;startArrow=none;html=1;"+r.link+U,h,Q,"1"))}return h}function wc(r,n,e,f){for(var a=[],h=[],B=0;B<r.children.length;B++)(r.children[B].side==="left"?h:a).push(r.children[B]);var H=null,p=null;h.length>0&&(p=Ju(e,r,0,[],-1,h)),(p==null||a.length>0)&&(H=Ju(e,r,0,[],1,a)),H!=null&&p!=null&&(p.pw=0,p.pt=0);var U=Math.max(H!=null?ld(H)/2:0,p!=null?ld(p)/2:0),N=p!=null?p.pw+Gc(p)+p.x1+p.x2:0,j=gs+N,Q=n+U;if(H!=null){var _r=Qu(H,j,Q,f);p!=null&&(p.cellId=_r)}return p!=null&&Qu(p,j,Q,f),2*U}function Pc(r,n){for(var e=0,f=r.styleSheet||nt.createSheet(),a={cells:"",maxX:0,nextId:function(Jr){return Jr+"_"+e++},track:function(Jr,br,Br,Ie){Jr+Br>a.maxX&&(a.maxX=Jr+Br)}},h=[],B=r.roots||(r.root?[r.root]:[]),H=0;H<B.length;H++)B[H]&&B[H].label!=null&&!B[H].synthetic&&h.push(B[H]);if(h.length===0)return"";for(var p=Tc,U=0;U<h.length;U++)p+=wc(h[U],p,f,a)+nd;var N=a.cells,j=p-nd,Q=a.maxX+gs;if(r.title){var _r=lu(D(r.title))+10;N+=Z(a.nextId("title"),r.title,"text;html=1;fillColor=none;strokeColor=none;fontSize=14;fontStyle=1;fontColor=#000000;align=center;verticalAlign=middle;",(Q-_r)/2,-34,_r,24,"1")}if(r.header&&r.header.text){var Lr=lu(D(r.header.text))*.7142857142857143+8,er=r.header.align==="left"?gs:r.header.align==="center"?(Q-Lr)/2:Q-gs-Lr;N+=Z(a.nextId("header"),r.header.text,"text;html=1;fillColor=none;strokeColor=none;fontSize=10;fontColor=#888888;align="+(r.header.align||"right")+";verticalAlign=middle;",er,r.title?-56:-34,Lr,16,"1")}var Qr=j+13;if(r.caption){var Vr=lu(D(r.caption))+10;N+=Z(a.nextId("caption"),r.caption,"text;html=1;fillColor=none;strokeColor=none;fontSize=14;fontColor=#000000;align=center;verticalAlign=middle;",(Q-Vr)/2,Qr,Vr,22,"1"),Qr+=18}if(r.footer&&r.footer.text){var he=lu(D(r.footer.text))*.7142857142857143+8,zr=r.footer.align==="left"?gs:r.footer.align==="right"?Q-gs-he:(Q-he)/2;N+=Z(a.nextId("footer"),r.footer.text,"text;html=1;fillColor=none;strokeColor=none;fontSize=10;fontColor=#888888;align="+(r.footer.align||"center")+";verticalAlign=middle;",zr,Qr,he,16,"1")}return N}var id=20,sd=20,ud=40,As=10,Yc={top:1,right:3,bottom:1,left:0};function fd(r,n,e,f){for(var a=n.style==="leaf",h=Vf(r,"wbsDiagram",n,e,f),B=Qf(n,h,a,Yc),H={node:n,level:e,props:h,m:B,boxless:a,w:B.w,h:B.h,marginBottom:nt.clockwise(h,"Margin").bottom,auto:/^auto$/i.test(String(nt.raw(h,"Width")||"").replace(/^\s+|\s+$/g,"")),link:td(Jf(r,"wbsDiagram",n,e)),children:[],left:[],forced:0,textDx:0,dimW:0,dimH:0,w1:0},p=[n].concat(f),U=0;U<n.children.length;U++){var N=fd(r,n.children[U],e+1,p);n.children[U].side==="left"?e===0?H.children.unshift(N):H.left.push(N):H.children.push(N)}var j=H.left.concat(H.children);if(H.auto&&j.length>0){for(var Q=0,_r=0;_r<j.length;_r++)j[_r].w>Q&&(Q=j[_r].w);for(var Lr=0;Lr<j.length;Lr++){var er=j[Lr];er.forced=Q,er.boxless||(er.w=Math.max(er.w,Q))}}return H}function Ps(r){return r.children.length===0&&r.left.length===0}function rf(r){if(Ps(r)){r.dimW=r.boxless?Math.max(r.w,r.forced):r.w,r.dimH=r.h,r.w1=r.dimW/2,r.textDx=r.boxless&&r.forced>r.w?(r.forced-r.w)/2:0;return}var n=0,e=0,f=0,a=0,h;for(h=0;h<r.left.length;h++)rf(r.left[h]),r.left[h].dimW>n&&(n=r.left[h].dimW),e+=r.marginBottom+r.left[h].dimH;for(h=0;h<r.children.length;h++)rf(r.children[h]),r.children[h].dimW>f&&(f=r.children[h].dimW),a+=r.marginBottom+r.children[h].dimH;r.w1=Math.max(r.w/2,As+n),r.dimW=r.w1+Math.max(r.w/2,As+f),r.dimH=r.h+Math.max(e,a)}function Mc(r){return Ps(r)?{x:0,y:r.h/2}:{x:r.w1-r.w/2,y:r.h/2}}function xc(r){return Ps(r)?{x:r.dimW,y:r.h/2}:{x:r.w1+r.w/2,y:r.h/2}}function dd(r){return Ps(r)?r.dimW/2:r.w1}function ef(r,n,e,f){if(Ps(r)){f.boxes.push({el:r,x:n+r.textDx,y:e});return}f.boxes.push({el:r,x:n+r.w1-r.w/2,y:e});var a=n+r.w1,h=e+r.h,B=h,H=h,p,U;for(p=0;p<r.left.length;p++){U=r.left[p],h+=r.marginBottom;var N=xc(U);B=h+N.y,f.lines.push({x1:a-U.dimW-As+N.x,y1:B,x2:a,y2:B,link:r.link}),ef(U,a-U.dimW-As,h,f),h+=U.dimH}for(h=e+r.h,p=0;p<r.children.length;p++){U=r.children[p],h+=r.marginBottom;var j=Mc(U);H=h+j.y,f.lines.push({x1:a,y1:H,x2:a+As+j.x,y2:H,link:r.link}),ef(U,a+As,h,f),h+=U.dimH}f.lines.push({x1:a,y1:e+r.h,x2:a,y2:Math.max(B,H),link:r.link})}function Hc(r,n){var e=r.root;if(!e||e.label==null)return"";var f=0;function a(Sr){return Sr+"_"+f++}var h=r.styleSheet||nt.createSheet(),B=fd(h,e,0,[]),H={boxes:[],lines:[]},p,U,N;for(p=0;p<B.children.length;p++)rf(B.children[p]);var j=B.h,Q=j+ud/2,_r=j+ud;if(B.children.length===0)H.boxes.push({el:B,x:0,y:0}),H.lines.push({x1:B.w/2,y1:j,x2:B.w/2,y2:Q,link:B.link});else{var Lr=0,er=dd(B.children[0]),Qr=er,Vr=0;for(p=0;p<B.children.length;p++){var he=B.children[p];Qr=Lr+dd(he),H.lines.push({x1:Qr,y1:Q,x2:Qr,y2:_r,link:B.link}),ef(he,Lr,_r,H),Lr+=he.dimW+sd,Vr+=he.dimW+(p>0?sd:0)}var zr;Qr>er?(H.lines.push({x1:er,y1:Q,x2:Qr,y2:Q,link:B.link}),zr=er+(Qr-er-B.w)/2):(zr=(Math.max(Vr,B.w)-B.w)/2,H.lines.push({x1:er,y1:Q,x2:zr+B.w/2,y2:Q,link:B.link})),H.boxes.push({el:B,x:zr,y:0}),H.lines.push({x1:zr+B.w/2,y1:j,x2:zr+B.w/2,y2:Q,link:B.link})}var Jr=0,br=0;for(p=0;p<H.boxes.length;p++)U=H.boxes[p],U.x<Jr&&(Jr=U.x),U.y<br&&(br=U.y);for(p=0;p<H.lines.length;p++)N=H.lines[p],Math.min(N.x1,N.x2)<Jr&&(Jr=Math.min(N.x1,N.x2)),Math.min(N.y1,N.y2)<br&&(br=Math.min(N.y1,N.y2));var Br=id-Jr,Ie=id-br,To="";for(p=0;p<H.lines.length;p++)N=H.lines[p],!(N.link==null||N.x1===N.x2&&N.y1===N.y2)&&(To+=ee(a("wbse"),"","endArrow=none;startArrow=none;rounded=0;"+N.link,Math.min(N.x1,N.x2)+Br,N.y1+Ie,Math.max(N.x1,N.x2)+Br,N.y2+Ie,"1"));for(p=0;p<H.boxes.length;p++)U=H.boxes[p],To+=ad(a("wbs"),U.el.node,U.el.m,od(U.el.props,U.el.m,U.el.boxless,U.el.node.label),U.x+Br,U.y+Ie,U.el.w,U.el.h);return To}var Sl=23,uu=14,cd=37,ki=18,Cd=20,of=15,ms=null;function wi(r,n){return ms==null||ms.sheet==null?{}:R(ms.sheet,["root","element",ms.diagram].concat(r),[],n||"vertex")}function tf(r,n){for(var e={},f=0;f<n.length;f++)r[n[f]]!=null&&(e[n[f]]=r[n[f]]);return e}function hd(){var r=tf(wi(["node"],"edge"),["strokeColor"]),n=wi(["separator"],"edge");return n.strokeColor!=null&&(r.strokeColor=n.strokeColor),n.strokeWidth!=null&&(r.strokeWidth=n.strokeWidth),r}function $d(r){var n=wi(["node"],"vertex");if(delete n.fontStyleBits,r){var e=wi(["highlight"],"vertex");e.fillColor!=null?n.fillColor=e.fillColor:delete n.fillColor}return n}function Kc(r,n){return g("rounded=1;absoluteArcSize=1;arcSize=10;whiteSpace=wrap;fillColor="+r+";strokeColor=#000000;strokeWidth=1.5;",$d(n))}function vd(){var r=wi(["separator"],"edge");return r.strokeColor!=null||r.strokeWidth!=null}function pd(r,n){var e=$d(n);return vd()&&(e.rowLines="0"),g("shape=table;childLayout=tableLayout;container=1;collapsible=0;startSize=0;rowLines=1;fixedRows=1;resizeLast=1;rounded=1;absoluteArcSize=1;arcSize=10;whiteSpace=wrap;fillColor="+r+";strokeColor=#000000;strokeWidth=1.5;",e)}function Rd(r){var n=hd();if(vd()&&(n.bottom="1"),r){var e=wi(["highlight"],"vertex");e.fillColor!=null&&(n.fillColor=e.fillColor)}return g("shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;collapsible=0;dropTarget=0;strokeColor=#000000;top=0;left=0;right=0;bottom=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fillColor="+(r||"none")+";",n)}function af(r,n,e){var f=tf(wi(["node"],"text"),["fontColor","fontSize","fontFamily"]),a=hd();if(a.strokeColor!=null&&(f.strokeColor=a.strokeColor),e){var h=wi(["highlight"],"text");h.fontColor!=null&&(f.fontColor=h.fontColor)}return g("shape=partialRectangle;connectable=0;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right="+(n?1:0)+";strokeColor=#000000;whiteSpace=wrap;fontSize="+uu+";align=left;spacingLeft=5;verticalAlign=middle;"+(r?"fontStyle=1;":""),f)}var zc="endArrow=classic;dashed=1;dashPattern=3 3;curved=1;html=1;strokeColor=#000000;";function gd(){return g(zc,wi(["arrow"],"edge"))}function Ys(r,n){return Math.ceil(Ki(r,uu,n))+10}function Ms(r){if(r==null||typeof r!="object"){var n=Math.max(40,Ys(String(r),!1));return{keyW:0,valW:n,w:n}}if(Array.isArray(r)){for(var e=of,f=0;f<r.length;f++)(r[f]==null||typeof r[f]!="object")&&(e=Math.max(e,Ys(String(r[f]),!1)));return{keyW:0,valW:e,w:e}}var a=of,h=of;for(var B in r)if(r.hasOwnProperty(B)){a=Math.max(a,Ys(B,!0));var H=r[B];(H==null||typeof H!="object")&&(h=Math.max(h,Ys(String(H),!1)))}return{keyW:a,valW:h,w:a+h}}function ks(r){if(r==null||typeof r!="object")return Sl;var n=0,e=0;if(Array.isArray(r)){n=r.length;for(var f=0;f<r.length;f++)r[f]!=null&&typeof r[f]=="object"&&(e+=ks(r[f])+ki)}else for(var a in r)r.hasOwnProperty(a)&&(n++,r[a]!=null&&typeof r[a]=="object"&&(e+=ks(r[a])+ki));return Math.max(Math.max(1,n)*Sl,e>0?e-ki:0)}function nf(r,n,e,f,a,h,B){var H="",p=h!==""?h:r;r===""&&h===""&&(p="");for(var U=!1,N=0;N<a.length;N++)if(a[N]===p){U=!0;break}var j=U?"#CCFF02":"#F1F1F1",Q="text;whiteSpace=wrap;fontSize="+uu+";align=left;spacingLeft=5;verticalAlign=middle;",_r=Ms(n);if(n==null||typeof n!="object"){var Lr=r!==""?r+": "+String(n):String(n),er=Math.max(40,Ys(Lr,!1)),Qr=B("jn");return H+=Z(Qr,Lr,g(Kc(j,U)+"fontSize="+uu+";align=left;spacingLeft=5;",tf(wi([U?"highlight":"node"],"text"),["fontColor","fontSize","fontFamily"])),e,f,er,Sl,"1"),{cells:H,height:Sl,width:er,rootId:Qr}}if(Array.isArray(n)){var Vr=Math.max(1,n.length),he=_r.w,zr=Sl*Vr,Jr=B("ja");H+=Z(Jr,"",pd(j,U),e,f,he,zr,"1");for(var br=[],Br=0;Br<n.length;Br++){var Ie=n[Br]!=null&&typeof n[Br]=="object",To=Ie?"":String(n[Br]),Sr=B("jw");H+=Z(Sr,"",Rd(null),0,Br*Sl,he,Sl,Jr);var Rr=B("jr");if(H+=Z(Rr,To,af(!1,!1),0,0,he,Sl,Sr),Ie){var ue=B("jb");br[Br]=ue,H+=Z(ue,"","ellipse;fillColor=#000000;strokeColor=#000000;",he-16,Sl/2-3,6,6,Rr)}}for(var L=e+he+cd,Y=zr,nr=0,Yr=0,mr=0,q=-1,ur=0;ur<n.length;ur++)n[ur]!=null&&typeof n[ur]=="object"&&(nr=Math.max(nr,Ms(n[ur]).w),Yr+=ks(n[ur])+ki,mr++,q=ur);var kr=f;mr===1?kr=f+Math.max(0,q*Sl+Sl/2-ks(n[q])/2):mr>1&&(kr=f+Math.max(0,(zr-(Yr-ki))/2));for(var Ye=0;Ye<n.length;Ye++)if(n[Ye]!=null&&typeof n[Ye]=="object"){var Fe=p!==""?p+"/"+Ye:String(Ye),qe=Ms(n[Ye]).w,Ae=nf(String(Ye),n[Ye],L+(nr-qe)/2,kr,a,Fe,B);H+=Ae.cells,H+=O(B("je"),"",gd(),br[Ye],Ae.rootId,"1"),kr+=Ae.height+ki}return kr-ki>f+zr&&(Y=kr-ki-f),{cells:H,height:Y,width:he,rootId:Jr}}var Ue=[];for(var no in n)n.hasOwnProperty(no)&&Ue.push(no);var Ee=Math.max(1,Ue.length),$o=_r.keyW,ve=_r.w,Mr=Sl*Ee,_o=B("jo");H+=Z(_o,"",pd(j,U),e,f,ve,Mr,"1");for(var et=[],io=0;io<Ue.length;io++){for(var po=n[Ue[io]],So=po!=null&&typeof po=="object",Ao=So?"":String(po),Qo=p!==""?p+"/"+Ue[io]:Ue[io],Io=!1,fo=0;fo<a.length;fo++)if(a[fo]===Qo){Io=!0;break}var mt=io*Sl,bo=B("jw");H+=Z(bo,"",Rd(Io?"#CCFF02":null),0,mt,ve,Sl,_o),H+=Z(B("jr"),Ue[io],af(!0,!0,Io),0,0,$o,Sl,bo);var ea=B("jr");if(H+=Z(ea,Ao,af(!1,!1,Io),$o,0,ve-$o,Sl,bo),So){var No=B("jb");et[io]=No,H+=Z(No,"","ellipse;fillColor=#000000;strokeColor=#000000;",ve-$o-16,Sl/2-3,6,6,ea)}}for(var oo=e+ve+cd,Oe=Mr,Yo=0,_e=0,X=0,$r=-1,to=0;to<Ue.length;to++){var Hr=n[Ue[to]];Hr!=null&&typeof Hr=="object"&&(Yo=Math.max(Yo,Ms(Hr).w),_e+=ks(Hr)+ki,X++,$r=to)}var cr=f;X===1?cr=f+Math.max(0,$r*Sl+Sl/2-ks(n[Ue[$r]])/2):X>1&&(cr=f+Math.max(0,(Mr-(_e-ki))/2));for(var ro=0;ro<Ue.length;ro++){var Me=n[Ue[ro]];if(Me!=null&&typeof Me=="object"){var Lo=p!==""?p+"/"+Ue[ro]:Ue[ro],sr=Ms(Me).w,Go=nf(Ue[ro],Me,oo+(Yo-sr)/2,cr,a,Lo,B);H+=Go.cells,H+=O(B("je"),"",gd(),et[ro],Go.rootId,"1"),cr+=Go.height+ki}}return cr-ki>f+Mr&&(Oe=cr-ki-f),{cells:H,height:Oe,width:ve,rootId:_o}}function Ad(r,n){var e=0;function f(a){return a+"_"+e++}if(r.data==null&&!r.rootPresent)return"";ms={sheet:r.styleSheet||null,diagram:typeof n=="string"?n:"jsonDiagram"};try{return nf("",r.data,Cd,Cd,r.highlights||[],"",f).cells}finally{ms=null}}function Wc(r){return Ad(r,"yamlDiagram")}function fu(r){var n=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(r||"");return n?("#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]).toUpperCase():P(r)}function Uc(r){if(!r)return 1;var n=String(r).split(/\\n|\r\n|\r|\n|<br\s*\/?>/i);return n.length<1?1:n.length}function _s(r,n){if(!r)return 0;for(var e=String(r).split(/\\n|\r\n|\r|\n|<br\s*\/?>/i),f=0,a=0;a<e.length;a++)e[a].length>f&&(f=e[a].length);return f*n*.5}function Xc(r){var n=r.tasks,e="",f=0;function a(Fr){return Fr+"_"+f++}var h=r.styleSheet||null,B={gb:"task",gl:"task",gbj:"task",gsp:"separator",gsl:"separator",gd:"milestone",ga:"arrow",gm:"timeline",gt:"timeline",gnd:"timeline"},H=null,p="";function U(Fr,Qe){return R(h,["root","element","ganttDiagram",Fr],[],Qe)}function N(Fr,Qe,lo){var at=B[String(Fr).split("_")[0]];if(at==null||h==null)return Qe;var ua=lo?"edge":Qe.indexOf("text;")===0?"text":"vertex",pa=U(at,ua);if(H!=null)for(var Ea=0;Ea<H.length;Ea++)delete pa[H[Ea]];return g(Qe,pa)}var j=function(Fr,Qe,lo,at,ua,pa,Ea,on){if(String(Fr).indexOf("gsh_")===0){if(/fillColor=#F1E5E5;/.test(lo)){var Ya=U("closed","vertex");Ya.fillColor&&(lo=g(lo,{fillColor:Ya.fillColor}))}return oe(Fr,Qe,lo,at,ua,pa,Ea,on)}return oe(Fr,Qe,N(Fr,lo,!1),at,ua,pa,Ea,on)},Q=function(Fr,Qe,lo,at,ua,pa,Ea,on){return Ko(Fr,Qe,N(Fr,lo,!0),at,ua,pa,Ea,on)};if(n.length===0&&!r.projectStart)return"";var _r=!!r.projectStart,Lr=_r&&r.printScale||"daily",er={daily:1,weekly:4,monthly:15,quarterly:40,yearly:60},Qr=16/(er[Lr]||1)*(r.zoom||1),Vr={},he={},zr=0,Jr=[!1,!1,!1,!1,!1,!1,!1],br=!1;if(r.projectStart&&r.closedWeekdays&&r.closedWeekdays.length){for(var Br={sunday:0,monday:1,tuesday:2,wednesday:3,thursday:4,friday:5,saturday:6},Ie=0;Ie<r.closedWeekdays.length;Ie++){var To=Br[r.closedWeekdays[Ie]];To!==void 0&&(Jr[To]=!0,br=!0)}Jr.join()==="true,true,true,true,true,true,true"&&(br=!1)}var Sr=r.projectStart?new Date(r.projectStart+"T00:00:00Z").getUTCDay():1,Rr={},ue={},L=br;function Y(Fr){var Qe=Math.floor(Fr);return ue[Qe]?!1:Rr[Qe]?!0:br&&Jr[(Sr+Qe%7+7)%7]}function nr(Fr){for(;Y(Fr);)Fr++;return Fr}function Yr(Fr,Qe){var lo=nr(Fr);if(!L||Qe<=0)return{s:lo,e:lo+Qe};for(var at=Qe,ua=lo;at>0;)if(Y(ua))ua++;else{var pa=Math.min(1,at);at-=pa,ua+=pa}return{s:lo,e:ua}}function mr(Fr){if(!Fr||!r.projectStart)return null;var Qe=Date.parse(Fr+"T00:00:00Z")-Date.parse(r.projectStart+"T00:00:00Z");return isNaN(Qe)?null:Math.round(Qe/864e5)}var q={},ur={},kr={},Ye=0,Fe=null;r.today&&(Fe=r.today.date?mr(r.today.date):r.today.offset);function qe(Fr){return Fr?Fr.date?mr(Fr.date):Fr.anchor==="D"?Fr.offset:Fr.anchor==="T"?Fe==null?null:Fe+Fr.offset:null:null}for(var Ae=null,Ue=0;r.periods&&Ue<r.periods.length;Ue++){var no=r.periods[Ue],Ee=no.from.afterPrev?Ae==null?null:Ae+1:qe(no.from),$o=no.to.days!=null?Ee==null?null:Ee+no.to.days-1:qe(no.to);if(!(Ee==null||$o==null)){if($o<Ee){var ve=Ee;Ee=$o,$o=ve}Ae=$o;for(var Mr=Ee;Mr<=$o;Mr++)no.color&&(q[Mr]=no.color),no.name&&(ur[Mr]=no.name),no.closed===!0?(Rr[Mr]=!0,L=!0):no.closed===!1&&(ue[Mr]=!0);no.name&&(kr[no.name]={s:Ee,e:$o+1,d:$o-Ee+1}),(no.color||no.name)&&(Ye=Math.max(Ye,$o+1))}}Fe!=null&&r.todayColor&&(q[Fe]=r.todayColor);for(var _o in kr)kr.hasOwnProperty(_o)&&(Vr[_o]=kr[_o]);for(var et=0;et<n.length;et++){var io=0,po=n[et];if(!po.isSeparator){if(po.after&&Vr[po.after])io=Vr[po.after].e,po.afterOffset&&(io=po.afterWorking?Yr(io,po.afterOffset).e:io+po.afterOffset);else if(po.alignStart&&Vr[po.alignStart])io=Vr[po.alignStart].s;else if(po.startOffset!=null)io=po.startOffset;else if(po.start&&r.projectStart){var So=mr(po.start);So!=null&&So>0&&(io=So)}var Ao=po.duration;if(!Ao){var Qo=null;po.endAlign&&Vr[po.endAlign]?Qo=Vr[po.endAlign].e-1:po.endOffset!=null?Qo=po.endOffset:po.end&&(Qo=mr(po.end)),Qo!=null&&Qo>=io&&(Ao=Qo-io+1)}if(Ao&&po.resources&&po.resources.length>1){for(var Io=0,fo=0;fo<po.resources.length;fo++)Io+=po.resources[fo].pct>0?po.resources[fo].pct:100;Io>0&&(Ao=Ao*100/Io)}var mt=Yr(io,Ao),bo={s:mt.s,d:Ao,e:mt.e};Vr[n[et].name]=bo,he[n[et].name]=et,n[et].alias&&(Vr[n[et].alias]=bo,he[n[et].alias]=et),bo.e>zr&&(zr=bo.e)}}zr=Math.ceil(Math.max(zr,Ye)),zr<1&&(zr=n.length===0?1:10);for(var ea=!1,No=0;No<zr;No++)ur[No]&&(ea=!0);var oo=12.955,Oe=4,Yo=36.955;function _e(Fr){return Fr*Qr}var X;_r?Lr==="weekly"?X=27:Lr==="monthly"||Lr==="quarterly"?X=28:Lr==="yearly"?X=17:X=39:X=6;var $r=X;ea&&_r&&Lr!=="quarterly"&&Lr!=="yearly"&&(X+=16);for(var to=_r?X+2:18,Hr=[],cr=[],ro=to,Me=!1,Lo=0;Lo<n.length;Lo++){if(n[Lo].isSeparator){Hr[Lo]=ro-(Me?Oe:0),cr[Lo]=Yo,ro=Hr[Lo]+Yo,Me=!1;continue}var sr=n[Lo].isMilestone?1:Uc(n[Lo].name),Go=sr*oo;Hr[Lo]=ro,cr[Lo]=Go,ro+=Go+Oe,Me=!0}for(var rn=n.length?Hr[n.length-1]+cr[n.length-1]:X-(_r?2:10),wt=[],zt={},ka=32,Rt=0;Rt<n.length;Rt++){var gt=n[Rt],dt=gt.resources&>.resources.length>0?gt.resources:gt.resource?[{name:gt.resource,pct:100}]:[];if(!(gt.isMilestone||gt.isSeparator||dt.length===0))for(var Fa=Vr[gt.name],oa=0;oa<dt.length;oa++){var bt=dt[oa].name;zt[bt]||(zt[bt]={},wt.push(bt));for(var Wt=Fa.s;Wt+1<=Fa.e+1e-9;Wt++)Y(Wt)||(zt[bt][Wt]=!0)}}var ha=wt.length*ka,co=rn+ha+(_r?2:10),lt=_e(zr),it=null,st=[],ja=_r?new Date(r.projectStart+"T00:00:00Z"):null;function Je(Fr){return new Date(ja.getTime()+Fr*864e5)}if(_r){var mo=["Mo","Tu","We","Th","Fr","Sa","Su"],ge=(ja.getUTCDay()+6)%7;it=[];for(var We=0;We<zr;We++)it[We]=mo[(ge+We)%7],st[We]=String(Je(We).getUTCDate())}else for(var Et=0;Et<zr;Et++)st[Et]=String(Et+1);var wo=["January","February","March","April","May","June","July","August","September","October","November","December"],la=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ia(Fr){var Qe=Je(Fr),lo=(Qe.getUTCDay()+6)%7;Qe=new Date(Qe.getTime()+(3-lo)*864e5);var at=new Date(Date.UTC(Qe.getUTCFullYear(),0,4)),ua=(at.getUTCDay()+6)%7;return at=new Date(at.getTime()+(3-ua)*864e5),1+Math.round((Qe.getTime()-at.getTime())/(7*864e5))}var pe="endArrow=none;startArrow=none;strokeColor=#C0C0C0;strokeWidth=1;";function Zr(Fr,Qe,lo){e+=Q(a("gg"),"",pe,Qe,Fr,lo,Fr,"1")}function $t(Fr,Qe,lo){e+=Q(a("gg"),"",pe,Fr,Qe,Fr,lo,"1")}function xt(Fr,Qe,lo,at,ua,pa,Ea,on,Ya){for(var Tn=Qe.length-1;Tn>=0;Tn--){var Ha=_s(Qe[Tn],Ea);if(Tn===0&&!Ya||Ha<=at-lo){e+=j(a(Fr),Qe[Tn],"text;html=1;align=center;verticalAlign=middle;fontSize="+Ea+";"+(on?"fontStyle=1;":"")+"fontColor=#000000;",lo,ua,at-lo,pa,"1");return}}}function kt(Fr){for(var Qe=[],lo=0,at=null,ua=0;ua<=zr;ua++){var pa=ua<zr?Fr(Je(ua)):null;(ua===zr||at!==null&&pa!==at)&&(Qe.push({s:lo,e:ua,date:Je(lo)}),lo=ua),at=pa}return Qe}function Dt(Fr){return Fr.getUTCFullYear()*12+Fr.getUTCMonth()}function Ut(Fr){return Fr.getUTCFullYear()}function Co(Fr){return Fr.getUTCFullYear()*4+Math.floor(Fr.getUTCMonth()/3)}function Ht(Fr,Qe){for(var lo=[],at=0;at<Qe.length;at++){var ua=Qe[at];lo.push(ua==="myl"?wo[Fr.getUTCMonth()]+" "+Fr.getUTCFullYear():ua==="mys"?la[Fr.getUTCMonth()]+" "+Fr.getUTCFullYear():ua==="ml"?wo[Fr.getUTCMonth()]:la[Fr.getUTCMonth()])}return lo}function Po(Fr,Qe,lo,at,ua,pa,Ea,on){for(var Ya=0;Ya<Qe.length;Ya++){var Tn=Qe[Ya];$t(_e(Tn.s),lo,lo+at),xt(Fr,Ea(Tn.date),_e(Tn.s),_e(Tn.e),lo,at,ua,pa,on)}$t(lt,lo,lo+at)}for(var Tt=-1,St=null,vt=0;vt<=zr;vt++){var Xt=null;vt<zr&&(q[vt]&&(Xt=fu(q[vt])||null),!Xt&&Y(vt)&&(Xt="#F1E5E5")),Tt>=0&&Xt!==St&&(e+=j(a("gsh"),"","rounded=0;fillColor="+St+";strokeColor=none;",_e(Tt),X,_e(vt)-_e(Tt),co-X,"1"),Tt=-1),Xt&&Tt<0&&(Tt=vt,St=Xt)}if(ea&&X>$r)for(var sa=null,Xa=0;Xa<zr;Xa++){var ya=ur[Xa]||null;ya&&ya!==sa&&(e+=j(a("gnd"),ya,"text;html=1;align=left;verticalAlign=middle;fontSize=12;fontColor=#000000;",_e(Xa)-4,$r,Math.max(_s(ya,12)+8,20),16,"1")),sa=ya}var Mo=Lr==="weekly",_t;if(_r)if(Lr==="daily"){for(var $a=kt(Dt),en=0;en<$a.length;en++){var da=$a[en];xt("gm",Ht(da.date,["ms","ml","myl"]),_e(da.s),_e(da.e),0,14,12,!0,!1),xt("gm",Ht(da.date,["ms","ml","myl"]),_e(da.s),_e(da.e),co+29,14,12,!0,!1)}for(var Kt=0;Kt<=zr;Kt++)$t(_e(Kt),X,co);for(Zr(X,0,lt),Zr(co,0,lt),_t=0;_t<zr;_t++)e+=j(a("gt"),it[_t],"text;html=1;align=center;verticalAlign=middle;fontSize=10;fontColor=#000000;",_e(_t),14,Qr,12,"1"),e+=j(a("gt"),st[_t],"text;html=1;align=center;verticalAlign=middle;fontSize=10;fontColor=#000000;",_e(_t),26,Qr,12,"1"),e+=j(a("gt"),it[_t],"text;html=1;align=center;verticalAlign=middle;fontSize=10;fontColor=#000000;",_e(_t),co+1,Qr,12,"1"),e+=j(a("gt"),st[_t],"text;html=1;align=center;verticalAlign=middle;fontSize=10;fontColor=#000000;",_e(_t),co+15,Qr,12,"1")}else if(Mo){var va=kt(Dt);Po("gm",va,0,16,12,!0,function(Fr){return Ht(Fr,["ms","mys"])},!1),Zr(0,0,lt),Zr(16,0,lt),Zr(27,0,lt);for(var ma=0;ma<zr;ma++)if((Sr+ma)%7===1&&($t(_e(ma),16,co),ma<zr-1)){var ba=String(ia(ma));e+=j(a("gt"),ba,"text;html=1;align=left;verticalAlign=middle;fontSize=10;fontColor=#000000;",_e(ma)+5,16,Math.max(_s(ba,10)+4,12),11,"1")}$t(lt,16,co),Zr(co,0,lt),Po("gm",va,co,16,12,!0,function(Fr){return Ht(Fr,["ms","mys"])},!1),Zr(co+16,0,lt)}else if(Lr==="monthly"||Lr==="quarterly"){var ot=kt(Ut),jt=kt(Lr==="monthly"?Dt:Co),ta=Lr==="monthly"?function(Fr){return Ht(Fr,["ms","ml"])}:function(Fr){return["Q"+(Math.floor(Fr.getUTCMonth()/3)+1)]},_a=function(Fr){return[String(Fr.getUTCFullYear())]};Po("gm",ot,0,16,12,!0,_a,!1),Po("gt",jt,16,12,10,!1,ta,!1),Zr(0,0,lt),Zr(16,0,lt),Zr(28,0,lt),Zr(co,0,lt),Po("gt",jt,co,12,10,!1,ta,!1),Po("gm",ot,co+12,16,12,!0,_a,!1),Zr(co+12,0,lt),Zr(co+28,0,lt)}else{var ca=kt(Ut),ut=function(Fr){return[String(Fr.getUTCFullYear())]};Po("gm",ca,0,17,14,!0,ut,!0),Zr(0,0,lt),Zr(17,0,lt),Zr(co,0,lt),Po("gm",ca,co,17,14,!0,ut,!0),Zr(co+17,0,lt)}else{for(var ct=0;ct<=zr;ct++)$t(_e(ct),X,co);for(_t=0;_t<zr;_t++)e+=j(a("gt"),st[_t],"text;html=1;align=center;verticalAlign=middle;fontSize=10;fontColor=#000000;",_e(_t),0,Qr,12,"1"),e+=j(a("gt"),st[_t],"text;html=1;align=center;verticalAlign=middle;fontSize=10;fontColor=#000000;",_e(_t),co-4,Qr,12,"1")}for(var wa="endArrow=none;startArrow=none;strokeColor=#181818;strokeWidth=1;",Bt=0;Bt<n.length;Bt++){var Bo=n[Bt];if(Bo.isSeparator){var Oa=Hr[Bt]+12+oo/2,Vt=U("separator","vertex");if(Vt.fillColor&&Vt.fillColor!=="none"&&(p+=oe(a("gsb"),"","rounded=0;fillColor="+Vt.fillColor+";strokeColor=none;",0,Hr[Bt],lt,cr[Bt],"1")),Bo.name){var go=_s(Bo.name,11);e+=Q(a("gsp"),"",wa,0,Oa,5,Oa,"1"),e+=Q(a("gsp"),"",wa,10+go+5,Oa,lt-1,Oa,"1"),e+=j(a("gsl"),Bo.name,"text;html=1;align=left;verticalAlign=middle;fontSize=11;fontColor=#000000;",10,Hr[Bt]+12,go+4,oo,"1")}else e+=Q(a("gsp"),"",wa,0,Oa,lt,Oa,"1");continue}if(!Bo.isMilestone){var xo=Vr[Bo.name],qt=_e(xo.s)+2,Pt=Math.max(_e(xo.e)-2,qt+1),Jt=Hr[Bt],aa=cr[Bt],Pa="#181818";Bo.color&&Bo.color.indexOf("/")>=0?Pa=fu(Bo.color.split("/")[1])||"#181818":Bo.color&&(Pa=fu(Bo.color)||"#181818");var gr=r.monochrome?"#E3E3E3":"#E2E2F0";Bo.color&&(gr=fu(Bo.color.split("/")[0])||gr),Bo.progress===0&&!Bo.color&&(gr="#FFFFFF");for(var de=Bo.progress!=null&&Bo.progress>0&&Bo.progress<100&&!Bo.color,Gr=Bo.resources&&Bo.resources.length>0?Bo.resources:Bo.resource?[{name:Bo.resource,pct:100}]:[],Or=Bo.name,re=0;re<Gr.length;re++)Or+=" {"+Gr[re].name+(Gr[re].pct!==100?":"+Gr[re].pct+"%":"")+"}";for(var be=_s(Or,11),Cr=_e(xo.e)-6-(_e(xo.s)+6)>be,te=[],ce=qt,fe=Math.floor(xo.s);fe<xo.e;fe++)if(Y(fe)){var tt=_e(fe),ko=_e(fe+1);tt>ce&&te.push({x1:ce,x2:Math.min(tt,Pt)}),ce=Math.max(ce,ko)}ce<Pt&&te.push({x1:ce,x2:Pt}),te.length===0&&te.push({x1:qt,x2:Pt});var Xr=Cr&&te.length===1?Or:"";if(H=Bo.color?["fillColor","gradientColor","strokeColor"]:null,te.length===1){var Ce=te[0].x1,jr=te[0].x2-te[0].x1;if(de){var ao=Math.round(jr*Bo.progress/100),De=jr-ao;e+=j(a("gb"),"","fillColor="+gr+";strokeColor=none;",Ce,Jt,ao,aa,"1"),e+=j(a("gb"),"","fillColor=#FFFFFF;strokeColor=none;",Ce+ao,Jt,De,aa,"1"),e+=j(a("gb"),Xr,"fillColor=none;strokeColor="+Pa+";strokeWidth=1;fontSize=11;fontColor=#000000;align=left;spacingLeft=4;verticalAlign=middle;",Ce,Jt,jr,aa,"1")}else e+=j(a("gb"),Xr,"fillColor="+gr+";strokeColor="+Pa+";strokeWidth=1;fontSize=11;fontColor=#000000;align=left;spacingLeft=4;verticalAlign=middle;",Ce,Jt,jr,aa,"1")}else{for(var ft=0;ft<te.length;ft++){var Ho=te[ft],Ze=ft===0?"right=0;":ft===te.length-1?"left=0;":"left=0;right=0;";if(e+=j(a("gb"),"","shape=partialRectangle;"+Ze+"fillColor="+gr+";strokeColor="+Pa+";strokeWidth=1;",Ho.x1,Jt,Ho.x2-Ho.x1,aa,"1"),ft<te.length-1){var Ro=Ho.x2+3,Ot=te[ft+1].x1-3;Ot>Ro&&(e+=Q(a("gbj"),"","endArrow=none;startArrow=none;strokeColor="+Pa+";strokeWidth=1;dashed=1;dashPattern=2 3;",Ro,Jt,Ot,Jt,"1"),e+=Q(a("gbj"),"","endArrow=none;startArrow=none;strokeColor="+Pa+";strokeWidth=1;dashed=1;dashPattern=2 3;",Ro,Jt+aa,Ot,Jt+aa,"1"))}}Cr&&(e+=j(a("gl"),Or,"text;html=1;align=left;verticalAlign=middle;fontSize=11;fontColor=#000000;",_e(xo.s)+6-4,Jt,be+8,aa,"1"))}H=null,Cr||(e+=j(a("gl"),Or,"text;html=1;align=left;verticalAlign=middle;fontSize=11;fontColor=#000000;",_e(xo.e)-6+8-4,Jt,Math.max(be+8,18),aa,"1"))}}for(var Wo=0;Wo<n.length;Wo++){var It=n[Wo];if(It.isMilestone){var Uo=It.after?Vr[It.after]:null,jo;if(Uo)jo=_e(Uo.e);else{var Nt=Vr[It.alias]||Vr[It.name];if(!Nt)continue;jo=_e(Nt.s)}e+=j(a("gd"),"","rhombus;fillColor=#000000;strokeColor=#000000;",jo-13,Hr[Wo],10,10,"1"),e+=j(a("gd"),It.name,"text;html=1;align=left;verticalAlign=middle;fontSize=11;fontColor=#000000;",jo,Hr[Wo],Math.max(_s(It.name,11)+4,18),cr[Wo],"1")}}for(var ne=0;ne<wt.length;ne++){var xe=rn+ne*ka,Le=xe+20;e+=j(a("gr"),wt[ne],"text;html=1;align=left;verticalAlign=middle;fontSize=13;fontFamily=Serif;fontColor=#000000;",0,xe+5,80,14,"1"),e+=Q(a("gr"),"","endArrow=none;startArrow=none;strokeColor=#000000;strokeWidth=1;",0,Le,lt,Le,"1");for(var He=zt[wt[ne]],Ge=0;Ge<zr;Ge++)He[Ge]&&(e+=j(a("gr"),"100","text;html=1;align=center;verticalAlign=middle;fontSize=9;fontFamily=Serif;fontColor=#000000;",_e(Ge),Le,Qr,10,"1"))}for(var je=0;je<n.length;je++){var Xo=n[je];if(!(Xo.isMilestone||Xo.isSeparator||!Xo.after||!Vr[Xo.after]||he[Xo.after]==null)){var Dr=he[Xo.after],wr=Vr[Xo.after],Oo=Vr[Xo.name],eo=_e(wr.e),yo=Hr[Dr]+cr[Dr],Zt=Hr[je]+cr[je]/2,Ct=eo-8,Ia=_e(Oo.s)-1;e+=Q(a("ga"),"","endArrow=none;startArrow=none;strokeColor=#181818;strokeWidth=1.5;",Ct,yo,Ct,Zt,"1"),e+=Q(a("ga"),"","endArrow=block;endFill=1;endSize=2.5;startArrow=none;strokeColor=#181818;strokeWidth=1.5;",Ct,Zt,Ia,Zt,"1")}}var Ba=U("timeline","vertex");if(Ba.fillColor&&Ba.fillColor!=="none"){var An="rounded=0;fillColor="+Ba.fillColor+";strokeColor=none;";p=oe(a("gtb"),"",An,0,0,lt,X,"1")+oe(a("gtb"),"",An,0,co,lt,$r,"1")+p}return p+e}function qc(r){var n=[],e="",f=0,a=r.timeMarks||[],h=r.styleSheet||null,B=null,H={tg:"timegrid",tm:"arrow",tml:"arrow",tcn:"constraintArrow",tcl:"constraintArrow",tax:"timeline",tk:"timeline",tal:"timeline",thl:"highlight",thll:"highlight"};function p(Xr,Ce,jr){if(h==null)return Ce;var ao=String(Xr).split("_")[0],De=B!=null&&(jr?ao==="tw"||ao==="tv":ao!=="tt"),ft=H[ao]!=null?[H[ao]]:De?[B]:[],Ho=jr?"edge":Ce.indexOf("text;")===0?"text":"vertex",Ze=R(h,["root","element","timingDiagram"].concat(ft),[],Ho);return Ho==="vertex"&&ao!=="tc"&&ao!=="thl"&&(delete Ze.fillColor,delete Ze.gradientColor),ao==="thl"&&(delete Ze.strokeColor,delete Ze.strokeWidth),ao==="thll"&&(delete Ze.fontColor,delete Ze.fontSize,delete Ze.fontFamily,delete Ze.fontStyleBits),g(Ce,Ze)}for(var U=function(Xr,Ce,jr,ao,De,ft,Ho,Ze){return oe(Xr,Ce,p(Xr,jr,!1),ao,De,ft,Ho,Ze)},N=function(Xr,Ce,jr,ao,De,ft,Ho,Ze){return Ko(Xr,Ce,p(Xr,jr,!0),ao,De,ft,Ho,Ze)},j=0;j<r.signals.length;j++){var Q=r.signals[j];n.push({name:Q.name,alias:Q.alias,kind:Q.kind,period:Q.period,transitions:Q.transitions.slice()})}function _r(Xr){return Xr+"_"+f++}if(n.length===0&&a.length===0)return"";var Lr=10,er=14,Qr=12,Vr=11,he=26,zr="#333333",Jr=r.monochrome?"#292929":"#006400",br=r.monochrome?"#3A3A3A":"#006400",Br=r.monochrome?"#E3E3E3":"#E2E2F0",Ie=r.monochrome?"#292929":"#333333";function To(Xr,Ce){return"endArrow=none;startArrow=none;strokeColor="+zr+";strokeWidth="+Xr+";"+(Ce?"dashed=1;dashPattern=3 5;":"")}function Sr(Xr,Ce){return String(Xr).length*Ce*.55}function Rr(Xr,Ce,jr,ao,De,ft,Ho,Ze){var Ro=De+6,Ot=ao-Ro/2-De*.335,Wo=Math.max(Sr(Ce,De)+8,8),It="text;html=1;strokeColor=none;fillColor=none;fontSize="+De+";fontColor="+Ho+";align="+(Ze||"left")+";verticalAlign=middle;"+(ft?"fontStyle=1;":"");return U(_r(Xr),Ce,It,jr,Ot,Wo,Ro,"1")}var ue=[],L,Y;function nr(Xr){ue.indexOf(Xr)<0&&ue.push(Xr)}for(L=0;L<n.length;L++){for(Y=0;Y<n[L].transitions.length;Y++)nr(n[L].transitions[Y].time);n[L].kind==="clock"&&n[L].period>0&&nr(n[L].period)}for(Y=0;Y<a.length;Y++)nr(a[Y]);ue.length===0&&ue.push(0),ue.sort(function(Xr,Ce){return Xr-Ce});var Yr=ue[0],mr=ue[ue.length-1];mr>0&&Yr<0&&ue.indexOf(0)<0&&(ue.push(0),ue.sort(function(Xr,Ce){return Xr-Ce}));var q=mr-Yr,ur=50,kr;function Ye(Xr,Ce){for(;Ce!==0;){var jr=Xr%Ce;Xr=Ce,Ce=jr}return Math.abs(Xr)}function Fe(Xr){return Xr<0?Math.ceil(Xr):Math.floor(Xr)}function qe(Xr){return(Xr<10?"0":"")+Xr}var Ae=["January","February","March","April","May","June","July","August","September","October","November","December"],Ue=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function no(Xr,Ce){var jr=new Date(Ce*1e3);return Xr.replace(/'([^']*)'|y{1,4}|M{1,4}|d{1,2}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|E{1,4}/g,function(ao,De){if(De!=null)return De;var ft=jr.getUTCHours()%12||12;switch(ao){case"yyyy":case"yyy":case"y":return String(jr.getUTCFullYear());case"yy":return qe(jr.getUTCFullYear()%100);case"MMMM":return Ae[jr.getUTCMonth()];case"MMM":return Ae[jr.getUTCMonth()].substring(0,3);case"MM":return qe(jr.getUTCMonth()+1);case"M":return String(jr.getUTCMonth()+1);case"dd":return qe(jr.getUTCDate());case"d":return String(jr.getUTCDate());case"HH":return qe(jr.getUTCHours());case"H":return String(jr.getUTCHours());case"hh":return qe(ft);case"h":return String(ft);case"mm":return qe(jr.getUTCMinutes());case"m":return String(jr.getUTCMinutes());case"ss":return qe(jr.getUTCSeconds());case"s":return String(jr.getUTCSeconds());case"EEEE":return Ue[jr.getUTCDay()];default:return Ue[jr.getUTCDay()].substring(0,3)}})}function Ee(Xr){var Ce=Fe(Xr);if(r.dateFormat)return no(r.dateFormat,Ce);if(r.timeFormat==="hour")return Math.floor(Ce/3600)+":"+qe(Math.floor(Ce/60)%60)+":"+qe(Ce%60);if(r.timeFormat==="date"){var jr=new Date(Ce*1e3);return qe(jr.getUTCMonth()+1)+"/"+qe(jr.getUTCDate())}return String(Ce)}if(r.scale&&r.scale.tick>0&&r.scale.pixel>0)kr=r.scale.tick,ur=r.scale.pixel;else{var $o=0;for(Y=0;Y<ue.length;Y++){var ve=Math.abs(Fe(ue[Y]));ve>0&&($o=$o===0?ve:Ye($o,ve))}kr=$o>0?$o:1,kr===1&&(q+1)*ur>4e3&&(kr=Math.round(1+ur*q/4e3))}var Mr=Math.min(1e3,1+Math.floor(q/kr)),_o=(q/kr+1)*ur,et=mr+kr,io=0;for(L=0;L<n.length;L++){var po=n[L];if(po.kind==="robust")for(Y=0;Y<po.transitions.length;Y++)io=Math.max(io,Sr(po.transitions[Y].state,Qr));else po.kind==="binary"&&(io=Math.max(io,Sr(po.name,er)+5))}var So=Lr+5+io;function Ao(Xr){return So+(Xr-Yr)/kr*ur}for(var Qo=So+_o,Io=Lr,fo=Lr,mt=Qo+5,bo=r.constraints&&r.constraints.length>0,ea=[],No="",oo=fo,Oe=0,Yo=fo,_e=0;_e<n.length;_e++){var X=n[_e],$r=Yo;B=X.kind||null;var to=bo&&_e===0?he:X.kind==="robust"?10:5,Hr,cr={kind:X.kind,transitions:X.transitions,rows:{}};if(ea.push(cr),X.kind!=="binary"){No+=Rr("tt",X.name,Lr+1,$r+15,er,!0,"#333333","left");var ro=$r+20,Me=Lr+5+Sr(X.name,er)+1;No+=N(_r("tu"),"",To(.5),Io,ro,Me,ro,"1"),No+=N(_r("td"),"",To(.5),Me,ro,Me+10,$r,"1")}if(X.kind==="robust"){var Lo=[],sr;for(sr=0;sr<X.transitions.length;sr++)!X.transitions[sr].hidden&&Lo.indexOf(X.transitions[sr].state)<0&&Lo.push(X.transitions[sr].state);var Go=Math.max(Lo.length,1),rn=$r+20+to,wt=cr.rows;for(sr=0;sr<Lo.length;sr++){var zt=rn+(Lo.length-1-sr)*20;wt[Lo[sr]]=zt,No+=Rr("tl",Lo[sr],Lr+1,zt+5,Qr,!1,"#333333","left")}for(sr=0;sr<X.transitions.length;sr++){var ka=X.transitions[sr];if(!ka.hidden){var Rt=sr+1<X.transitions.length?X.transitions[sr+1]:null,gt=Ao(ka.time),dt=Rt?Ao(Rt.time):Qo,Fa=wt[ka.state];No+=N(_r("tw"),"","endArrow=none;startArrow=none;strokeColor="+Jr+";strokeWidth=2;",gt,Fa,dt,Fa,"1"),Rt&&!Rt.hidden&&wt[Rt.state]!==Fa&&(No+=N(_r("tv"),"","endArrow=none;startArrow=none;strokeColor="+Jr+";strokeWidth=2;",dt,Fa,dt,wt[Rt.state],"1"))}}Hr=rn+(Go-1)*20+15}else if(X.kind==="concise"||X.kind==="rectangle"){var oa=$r+20+to,bt=24,Wt=X.kind==="rectangle"?"rounded=0;fillColor=#F1F1F1;strokeColor=#F1F1F1;strokeWidth=0.5;fontSize=12;fontStyle=1;fontColor=#333333;align=center;":"shape=hexagon;perimeter=hexagonPerimeter2;fixedSize=1;size=12;fillColor="+Br+";strokeColor="+br+";strokeWidth=1.5;fontSize=12;fontStyle=1;fontColor=#333333;align=center;";cr.bandTop=oa,cr.bandH=bt,_e===0&&bo&&(Oe=oa);for(var ha=0;ha<X.transitions.length;ha++){var co=X.transitions[ha];if(!co.hidden){var lt=ha+1<X.transitions.length?X.transitions[ha+1]:null,it=Ao(co.time),st=lt?Ao(lt.time):Qo;st>it&&(No+=U(_r("tc"),co.state,Wt,it,oa,st-it,bt,"1"))}}Hr=oa+bt+10}else if(X.kind==="clock"){var ja=X.period||100,Je=ja/2,mo=$r+27,ge=$r+41;No+=N(_r("tw"),"","endArrow=none;startArrow=none;strokeColor="+Jr+";strokeWidth=1.5;",Ao(0),mo,Ao(0),ge,"1");for(var We=!0,Et=0,wo=0;wo<et&&Et<2e3;wo+=Je,Et++){var la=Ao(wo),ia=Ao(Math.min(wo+Je,et)),pe=We?mo:ge;if(ia>la&&(No+=N(_r("tw"),"","endArrow=none;startArrow=none;strokeColor="+Jr+";strokeWidth=1.5;",la,pe,ia,pe,"1")),wo+Je<=et){var Zr=We?ge:mo;No+=N(_r("tv"),"","endArrow=none;startArrow=none;strokeColor="+Jr+";strokeWidth=1.5;",ia,pe,ia,Zr,"1")}We=!We}Hr=ge+8}else if(X.kind==="binary"){var $t=$r+8,xt=$r+22;cr.rows.high=$t,cr.rows.low=xt,No+=Rr("tl",X.name,Lr+1,($t+xt)/2+5,er,!0,"#333333","left");for(var kt=0;kt<X.transitions.length;kt++){var Dt=X.transitions[kt];if(!Dt.hidden){var Ut=kt+1<X.transitions.length?X.transitions[kt+1]:null,Co=Ao(Dt.time),Ht=Ut?Ao(Ut.time):Qo,Po=Dt.state==="high"||Dt.state==="1",Tt=Po?$t:xt;if(No+=N(_r("tw"),"","endArrow=none;startArrow=none;strokeColor="+Jr+";strokeWidth=2;",Co,Tt,Ht,Tt,"1"),Ut&&!Ut.hidden){var St=Ut.state==="high"||Ut.state==="1",vt=St?$t:xt;vt!==Tt&&(No+=N(_r("tv"),"","endArrow=none;startArrow=none;strokeColor="+Jr+";strokeWidth=2;",Ht,Tt,Ht,vt,"1"))}}}Hr=xt+8}else Hr=$r+30;_e<n.length-1?(No+=N(_r("ts"),"",To(.5),Io,Hr,mt,Hr,"1"),Yo=Hr):oo=Hr}B=null,e+=N(_r("tb"),"",To(.5),Io,fo,mt,fo,"1"),e+=N(_r("tb"),"",To(.5),Io,fo,Io,oo,"1"),e+=N(_r("tb"),"",To(.5),mt,fo,mt,oo,"1");for(var Xt=0;Xt<=Mr;Xt++){var sa=So+Xt*ur;e+=N(_r("tg"),"",To(.5,!0),sa,fo,sa,oo,"1")}if(r.highlights&&r.highlights.length>0)for(var Xa=0;Xa<r.highlights.length;Xa++){var ya=r.highlights[Xa],Mo=Ao(ya.from),_t=Ao(ya.to),ct=P(ya.color)||"#FFD700";e+=U(_r("thl"),"","shape=rectangle;fillColor="+ct+";strokeColor=none;opacity=45;",Mo,fo,_t-Mo,oo-fo,"1"),ya.label&&(e+=Rr("thll",ya.label,(Mo+_t)/2-(Sr(ya.label,Qr)+8)/2,fo+14,Qr,!1,"#000000","center"))}if(e+=No,bo&&Oe>0)for(var $a=0;$a<r.constraints.length;$a++){var en=r.constraints[$a],da=Ao(en.from)+1,Kt=Ao(en.to)-1,va=Oe-11;e+=N(_r("tcn"),"","startArrow=block;endArrow=block;startFill=1;endFill=1;strokeColor="+Ie+";strokeWidth=1.5;",da,va,Kt,va,"1"),e+=Rr("tcl",en.label,(da+Kt)/2-Sr(en.label,Qr)/2-4,va-8.5,Qr,!1,Ie,"center")}function ma(Xr,Ce){var jr=Xr.transitions,ao=[],De;function ft(Ze){return Xr.kind==="binary"?Ze.state==="high"||Ze.state==="1"?Xr.rows.high:Xr.rows.low:Ze.hidden?null:Xr.rows[Ze.state]}if(Xr.kind==="robust"||Xr.kind==="binary"){if(jr.length===0)return null;for(De=0;De<jr.length;De++){if(jr[De].time===Ce){De>0&&ao.push(ft(jr[De-1])),ao.push(ft(jr[De]));break}if(jr[De].time>Ce){ao.push(ft(jr[De===0?0:De-1]));break}}ao.length===0&&ao.push(ft(jr[jr.length-1]))}else if(Xr.kind==="concise"||Xr.kind==="rectangle"){for(De=0;De<jr.length;De++)jr[De].time===Ce&&ao.push(Xr.bandTop+Xr.bandH/2);ao.length===0&&ao.push(Xr.bandTop,Xr.bandTop+Xr.bandH)}else return null;var Ho=[];for(De=0;De<ao.length;De++)ao[De]!=null&&Ho.indexOf(ao[De])<0&&Ho.push(ao[De]);return Ho.length>0?Ho:null}for(var ba=r.monochrome?"#292929":"#00008B",ot=0;r.messages&&ot<r.messages.length;ot++){var jt=r.messages[ot],ta=ea[jt.from],_a=ea[jt.to],ca=ta?ma(ta,jt.fromTime):null,ut=_a?ma(_a,jt.toTime):null;if(!(!ca||!ut)){for(var wa=Ao(jt.fromTime),Bt=Ao(jt.toTime),Bo=null,Oa=0;Oa<ca.length;Oa++)for(var Vt=0;Vt<ut.length;Vt++){var go=Math.sqrt((Bt-wa)*(Bt-wa)+(ut[Vt]-ca[Oa])*(ut[Vt]-ca[Oa]));(Bo===null||go<Bo.len)&&(Bo={y1:ca[Oa],y2:ut[Vt],len:go})}if(e+=N(_r("tm"),"","endArrow=block;endFill=1;endSize=8;startArrow=none;strokeColor="+ba+";strokeWidth=1.5;",wa,Bo.y1,Bt,Bo.y2,"1"),jt.label){var xo=Math.atan2(Bt-wa,Bo.y2-Bo.y1),qt=20*Math.PI/180,Pt=(Bt-Math.sin(xo+qt)*8+Bt-Math.sin(xo-qt)*8)/2,Jt=(Bo.y2-Math.cos(xo+qt)*8+Bo.y2-Math.cos(xo-qt)*8)/2,aa=er+2.6,Pa=Bo.y1<Bo.y2?Jt-aa:Jt;e+=Rr("tml",jt.label,Pt-2,Pa+13.6,er,!1,ba,"left").replace("text;html=1;","text;html=1;fontFamily=Serif;")}}}var gr=r.timeAxis!=="hidden";if(gr){var de=mr;for(Y=0;Y<ue.length;Y++)if(ue[Y]>=0){de=ue[Y];break}for(var Gr=Ao(de),Or=0;Or<=1e3&&Gr+Or*ur<=Qo+1e-6;)Or++;e+=N(_r("tax"),"",To(2),Gr,oo,Gr+Math.max(Or-1,0)*ur,oo,"1");var re=[],be=[],Cr;if(r.timeAxis==="manual")for(Y=0;Y<ue.length;Y++){var te=null;for(var ce in r.codes||{})r.codes.hasOwnProperty(ce)&&r.codes[ce]===ue[Y]&&(te=ce);be.push(Ao(ue[Y])),re.push({x:Ao(ue[Y]),text:te??Ee(ue[Y])})}else{for(Cr=0;Cr<Or;Cr++)be.push(Gr+Cr*ur);var fe=[];if(r.scale)for(Cr=0;Cr<=Mr;Cr++)fe.push(kr*Cr+Fe(Yr));else for(Y=0;Y<ue.length;Y++){var tt=Fe(ue[Y]);fe.indexOf(tt)<0&&fe.push(tt)}for(fe.sort(function(Xr,Ce){return Xr-Ce}),fe[0]<0&&fe[fe.length-1]>0&&fe.indexOf(0)<0&&fe.push(0),Cr=0;Cr<fe.length;Cr++)re.push({x:Ao(fe[Cr]),text:Ee(fe[Cr])})}for(Cr=0;Cr<be.length;Cr++)e+=N(_r("tk"),"",To(2),be[Cr],oo,be[Cr],oo+5,"1");for(Cr=0;Cr<re.length;Cr++)e+=Rr("tal",re[Cr].text,re[Cr].x-(Sr(re[Cr].text,Vr)+8)/2,oo+17.5,Vr,!1,"#333333","center")}var ko=gr?oo+21:oo+5;return e=U(_r("tanchor"),"","shape=text;strokeColor=none;fillColor=none;",Io-6,fo-6,mt-Io+19,ko-fo+12,"1")+e,e}var cl=14.1328,Zc=11.6,md="endArrow=none;startArrow=none;strokeColor=#000000;strokeWidth=1;",kd="endArrow=none;startArrow=none;strokeColor=#000000;strokeWidth=1.5;",jc="text;html=1;align=left;verticalAlign=middle;fontSize=12;fontColor=#000000;",Vc={" ":278,"!":278,'"':355,"#":556,$:556,"%":889,"&":667,"'":191,"(":333,")":333,"*":389,"+":584,",":278,"-":333,".":278,"/":278,0:556,1:556,2:556,3:556,4:556,5:556,6:556,7:556,8:556,9:556,":":278,";":278,"<":584,"=":584,">":584,"?":556,"@":1015,A:667,B:667,C:722,D:722,E:667,F:611,G:778,H:722,I:278,J:500,K:667,L:556,M:833,N:722,O:778,P:667,Q:778,R:722,S:667,T:611,U:722,V:667,W:944,X:667,Y:667,Z:611,"[":278,"\\":278,"]":278,"^":469,_:556,"`":333,a:556,b:556,c:500,d:556,e:556,f:278,g:556,h:556,i:222,j:222,k:500,l:222,m:833,n:556,o:556,p:556,q:556,r:333,s:500,t:278,u:556,v:500,w:722,x:500,y:500,z:500,"{":334,"|":260,"}":334,"~":584};function _i(r,n){if(!r)return 0;for(var e=0,f=0;f<r.length;f++){var a=Vc[r.charAt(f)];a==null&&(a=556),e+=a}return e=e*.013,n&&(e*=1.05),e}function Jc(r){var n="",e="",f=0;function a(L){return L+"_"+f++}if(!r.root)return"";function h(L,Y,nr,Yr,mr){return Z(a("sl"),L,jc+(mr?"fontStyle=1;":""),Y-4,nr+Zc-12.83,Yr+4,17.6,"1")}function B(L,Y,nr,Yr){return ee(a("sh"),"",Yr||md,L,Y,L+nr,Y,"1")}function H(L,Y,nr,Yr){return ee(a("sv"),"",Yr||md,L,Y,L,Y+nr,"1")}function p(L,Y){return{w:_i(L,Y),h:cl}}function U(L){return Math.max(_i(L.text,L.bold),(L.charLength||0)*8)}function N(L){if(!L)return{w:0,h:0};if(L.dim)return L.dim;var Y,nr;switch(L.type){case"text":Y=p(L.display,L.bold);break;case"empty":Y={w:1,h:1};break;case"button":Y={w:U(L)+9,h:cl+9};break;case"textfield":Y={w:U(L)+6,h:cl+2};break;case"check":Y={w:_i(L.text,L.bold)+20,h:cl};break;case"droplist":Y={w:U(L)+16,h:cl+4};break;case"line":Y={w:10,h:6};break;case"image":Y={w:L.rows.length>0?L.rows[0].length:0,h:L.rows.length};break;case"tabbar":for(Y={w:0,h:0},nr=0;nr<L.tabs.length;nr++){var Yr=_i(L.tabs[nr].text,L.tabs[nr].bold);L.vertical?(Y.h+=cl+15,Y.w=Math.max(Y.w,Yr)):(Y.w+=Yr+15,Y.h=Math.max(Y.h,cl))}break;case"menubar":for(Y={w:0,h:0},nr=0;nr<L.entries.length;nr++){var mr=j(L.entries[nr]);Y.w+=mr.w+10,Y.h=Math.max(Y.h,mr.h)}break;case"tree":Y=Lr(L);break;case"border":Y=er(L);break;case"pyramid":Y=Vr(L);break;default:Y={w:0,h:0}}return L.dim=Y,Y}function j(L){return L==="-"?{w:10,h:5}:p(L,!1)}function Q(L){for(var Y={w:0,h:0},nr=0;nr<L.length;nr++){var Yr=j(L[nr]);Y.w=Math.max(Y.w,Yr.w),Y.h+=Yr.h}return Y}function _r(L){for(var Y=0,nr=[],Yr=0;Yr<L.entries.length;Yr++){var mr=L.entries[Yr];Y=Math.max(Y,_i(mr.text,mr.bold)+mr.level*10);for(var q=0;q<mr.cells.length;q++){var ur=_i(mr.cells[q].text,mr.cells[q].bold);nr[q]=Math.max(nr[q]||0,ur)}}return{w1:Y,other:nr}}function Lr(L){for(var Y=_r(L),nr=0,Yr=0;Yr<Y.other.length;Yr++)nr>0&&(nr+=10),nr+=Y.other[Yr];return nr>0&&(nr+=10),{w:Y.w1+nr+2,h:L.entries.length*cl}}function er(L){var Y=N(L.north),nr=N(L.south),Yr=N(L.east),mr=N(L.west),q=N(L.center);return{w:Math.max(Y.w,nr.w,mr.w+q.w+Yr.w),h:Y.h+Math.max(mr.h,q.h,Yr.h)+nr.h}}function Qr(L){if(L.grid)return L.grid;var Y=L.title?cl:0,nr=[],Yr=[],mr;for(mr=0;mr<=L.rows;mr++)nr.push(Y/2);for(mr=0;mr<=L.cols;mr++)Yr.push(0);var q=L.cells.slice().sort(function(ve,Mr){var _o=ve.maxCol-ve.minCol-(Mr.maxCol-Mr.minCol);return _o!==0?_o:ve.minCol-Mr.minCol});for(mr=0;mr<q.length;mr++){var ur=q[mr],kr=N(ur.el).w+2,Ye=kr-(Yr[ur.maxCol+1]-Yr[ur.minCol]);if(Ye>0)for(var Fe=ur.maxCol+1;Fe<Yr.length;Fe++)Yr[Fe]+=Ye}var qe=L.cells.slice().sort(function(ve,Mr){var _o=ve.maxRow-ve.minRow-(Mr.maxRow-Mr.minRow);return _o!==0?_o:ve.minRow-Mr.minRow});for(mr=0;mr<qe.length;mr++){var Ae=qe[mr],Ue=Ae.minRow===0?Y/2:0,no=N(Ae.el).h+Ue+2,Ee=no-(nr[Ae.maxRow+1]-nr[Ae.minRow]);if(Ee>0)for(var $o=Ae.maxRow+1;$o<nr.length;$o++)nr[$o]+=Ee}return L.grid={rowsStart:nr,colsStart:Yr,titleH:Y},L.grid}function Vr(L){var Y=Qr(L),nr={w:Y.colsStart[Y.colsStart.length-1],h:Y.rowsStart[Y.rowsStart.length-1]+Y.titleH};return L.scroll==="h"?nr.h+=30:L.scroll==="v"?nr.w+=30:L.scroll==="both"&&(nr.w+=30,nr.h+=30),nr}function he(L,Y,nr,Yr,mr){if(L){var q=N(L),ur;switch(L.type){case"text":L.show&&L.display&&(n+=h(L.display,Y,nr,q.w,L.bold));break;case"button":n+=Z(a("sb"),L.text||"","rounded=1;absoluteArcSize=1;arcSize=10;fillColor=#EEEEEE;strokeColor=#000000;strokeWidth=2.5;fontSize=12;fontColor=#000000;align=center;"+(L.bold?"fontStyle=1;":""),Y+2.5,nr+2.5,q.w-5,q.h-5,"1");break;case"textfield":var kr=_i(L.text,L.bold);L.text&&(n+=h(L.text,Y+3,nr,kr,L.bold)),n+=B(Y+1,nr+cl,q.w-3),n+=H(Y+1,nr+cl-3,2),n+=H(Y+3+kr+1,nr+cl-3,2);break;case"check":L.text&&(n+=h(L.text,Y+20,nr,q.w-20,L.bold)),L.radio?(n+=Z(a("sro"),"","ellipse;fillColor=none;strokeColor=#000000;strokeWidth=1.5;",Y+2,nr+(q.h-10)/2,10,10,"1"),L.checked&&(n+=Z(a("sri"),"","ellipse;fillColor=#000000;strokeColor=#000000;strokeWidth=1.5;",Y+5,nr+(q.h-4)/2,4,4,"1"))):(n+=Z(a("sco"),"","rounded=0;fillColor=none;strokeColor=#000000;strokeWidth=1.5;",Y+2,nr+(q.h-10)/2,10,10,"1"),L.checked&&(n+=ee(a("sck"),"",kd,Y+3,nr+6,Y+6,nr+9,"1"),n+=ee(a("sck"),"",kd,Y+6,nr+9,Y+13,nr,"1")));break;case"droplist":if(n+=Z(a("sd"),L.text||"","rounded=0;fillColor=#EEEEEE;strokeColor=#000000;strokeWidth=1;fontSize=12;fontColor=#000000;align=left;verticalAlign=middle;spacingLeft=-2;"+(L.bold?"fontStyle=1;":""),Y,nr,q.w-1,q.h-1,"1"),n+=H(Y+q.w-12,nr,q.h-1),n+=Z(a("sdt"),"","triangle;direction=south;fillColor=#000000;strokeColor=#000000;strokeWidth=1;",Y+q.w-9,nr+6,6,cl-8,"1"),L.open&&L.open.length>0){var Ye={w:q.w-1,h:0},Fe;for(Fe=0;Fe<L.open.length;Fe++)Ye.w=Math.max(Ye.w,_i(L.open[Fe],!1)),Ye.h+=cl;for(n+=Z(a("sdo"),"","rounded=0;fillColor=#EEEEEE;strokeColor=#000000;strokeWidth=1;",Y,nr+q.h-1,Ye.w-1,Ye.h-1,"1"),Fe=0;Fe<L.open.length;Fe++)n+=h(L.open[Fe],Y,nr+q.h-1+Fe*cl,_i(L.open[Fe],!1),!1)}break;case"line":var qe=nr+mr/2,Ae="endArrow=none;startArrow=none;strokeColor=#AAAAAA;strokeWidth=1;";L.ch==="="?(n+=B(Y,qe-1,Yr,Ae),n+=B(Y,qe+1,Yr,Ae)):L.ch==="."?n+=B(Y,qe,Yr,Ae+"dashed=1;dashPattern=1 2;"):L.ch==="-"?n+=B(Y,qe,Yr,Ae):n+=B(Y,qe,Yr,"endArrow=none;startArrow=none;strokeColor=#AAAAAA;strokeWidth=1.5;");break;case"image":for(ur=0;ur<L.rows.length;ur++)for(var Ue=L.rows[ur],no=-1,Ee=0;Ee<=Ue.length;Ee++){var $o=Ee<Ue.length&&Ue.charAt(Ee)==="X";$o&&no<0?no=Ee:!$o&&no>=0&&(n+=ee(a("sim"),"","endArrow=none;startArrow=none;strokeColor=#000000;strokeWidth=1;",Y+no,nr+ur+.5,Y+Ee,nr+ur+.5,"1"),no=-1)}break;case"tabbar":zr(L,Y,nr);break;case"menubar":Jr(L,Y,nr,Yr,mr);break;case"tree":br(L,Y,nr);break;case"border":var ve=N(L.north),Mr=N(L.south),_o=N(L.east),et=N(L.west);he(L.north,Y,nr,Yr,mr),he(L.south,Y,nr+mr-Mr.h,Yr,mr),he(L.west,Y,nr+ve.h,Yr,mr),he(L.east,Y+Yr-_o.w,nr+ve.h,Yr,mr),he(L.center,Y+et.w,nr+ve.h,Yr,mr);break;case"pyramid":Ie(L,Y,nr);break}}}function zr(L,Y,nr){for(var Yr=N(L),mr=Y,q=nr,ur=0;ur<L.tabs.length;ur++){var kr=L.tabs[ur],Ye=_i(kr.text,kr.bold);L.vertical?(n+=h(kr.text,Y,q+2,Ye,kr.bold),n+=B(Y,q,Yr.w),n+=H(Y,q,cl+5),n+=B(Y,q+cl+5,Yr.w),n+=H(Y+Yr.w,q+cl+5,10),q+=cl+15):(n+=h(kr.text,mr+2,nr,Ye,kr.bold),n+=H(mr,nr,cl),n+=B(mr,nr,Ye+5),n+=H(mr+Ye+5,nr,cl),n+=B(mr+Ye+5,nr+cl,10),mr+=Ye+15)}}function Jr(L,Y,nr,Yr,mr){var q=N(L),ur=Y;n+=Z(a("smb"),"","rounded=0;fillColor=#DDDDDD;strokeColor=#000000;strokeWidth=1;",Y,nr,Yr,mr,"1");for(var kr=0;kr<L.entries.length;kr++){var Ye=L.entries[kr],Fe=j(Ye);if(L.popups.hasOwnProperty(Ye)){e+=Z(a("smh"),"","rounded=0;fillColor=#BBBBBB;strokeColor=none;",ur,nr,Fe.w,Fe.h,"1");var qe=L.popups[Ye],Ae=Q(qe),Ue=nr+q.h;e+=Z(a("smp"),"","rounded=0;fillColor=#DDDDDD;strokeColor=#000000;strokeWidth=1;",ur,Ue,Ae.w,Ae.h,"1");for(var no=0;no<qe.length;no++){var Ee=j(qe[no]);qe[no]==="-"?e+=B(ur,Ue+Ee.h/2,Ae.w):e+=h(qe[no],ur,Ue,Ee.w,!1),Ue+=Ee.h}}Ye!=="-"&&(n+=h(Ye,ur,nr,Fe.w,!1)),ur+=Fe.w+10}}function br(L,Y,nr){var Yr=_r(L),mr=N(L),q=0,ur=[0],kr=[0,Yr.w1+5],Ye=[],Fe,qe=Yr.w1+5;for(Fe=0;Fe<Yr.other.length;Fe++)qe+=Yr.other[Fe]+10,kr.push(qe);for(Fe=0;Fe<L.entries.length;Fe++){var Ae=L.entries[Fe],Ue=Ae.level*10;Ae.text&&(n+=h(Ae.text,Y+Ue,nr+q,_i(Ae.text,Ae.bold),Ae.bold));for(var no=Yr.w1+10,Ee=0;Ee<Ae.cells.length;Ee++)Ae.cells[Ee].text&&(n+=h(Ae.cells[Ee].text,Y+no,nr+q,_i(Ae.cells[Ee].text,Ae.cells[Ee].bold),Ae.cells[Ee].bold)),no+=(Yr.other[Ee]||0)+10;Ye.push({x:Ue-7,y:q+cl/2-1}),q+=cl,ur.push(q)}var $o="endArrow=none;startArrow=none;strokeColor=#888888;strokeWidth=1;";for(Fe=0;Fe<Ye.length;Fe++){var ve=Ye[Fe];Fe+1<Ye.length&&Ye[Fe+1].x>ve.x&&(n+=Z(a("stq"),"","rounded=0;fillColor=none;strokeColor=#888888;strokeWidth=1;",Y+ve.x,nr+ve.y,2,2,"1"));for(var Mr=null,_o=0;_o<Fe;_o++)Ye[_o].x<ve.x&&(Mr=Ye[_o]);Mr&&(n+=H(Y+Mr.x+1,nr+Mr.y+3,ve.y-Mr.y-2,$o),n+=B(Y+Mr.x+1,nr+ve.y+1,ve.x-Mr.x-2,$o))}L.strategy!==" "&&Br(ur,kr,L.strategy,Y,nr)}function Br(L,Y,nr,Yr,mr){var q=Y[0],ur=Y[Y.length-1],kr=L[0],Ye=L[L.length-1],Fe;if((nr==="+"||nr==="^")&&(n+=B(Yr+q,mr+kr,ur-q),n+=B(Yr+q,mr+Ye,ur-q),n+=H(Yr+q,mr+kr,Ye-kr),n+=H(Yr+ur,mr+kr,Ye-kr)),nr==="-"||nr==="#")for(Fe=0;Fe<L.length;Fe++)n+=B(Yr+q,mr+L[Fe],ur-q);if(nr==="!"||nr==="#")for(Fe=0;Fe<Y.length;Fe++)n+=H(Yr+Y[Fe],mr+kr,Ye-kr)}function Ie(L,Y,nr){var Yr=Qr(L),mr=Yr.rowsStart,q=Yr.colsStart,ur=L.strategy,kr={},Ye={},Fe,qe,Ae;for(Fe=0;Fe<L.cells.length;Fe++){var Ue=L.cells[Fe],no=Ue.minRow===0?Yr.titleH/2:0,Ee=q[Ue.maxCol+1]-q[Ue.minCol]-1,$o=mr[Ue.maxRow+1]-mr[Ue.minRow]-1;if(he(Ue.el,Y+q[Ue.minCol]+1,nr+mr[Ue.minRow]+no+1,Ee,$o),ur==="-"||ur==="#")for(qe=Ue.minCol;qe<=Ue.maxCol;qe++)kr[Ue.minRow+","+qe]=!0,kr[Ue.maxRow+1+","+qe]=!0;if(ur==="!"||ur==="#")for(Ae=Ue.minRow;Ae<=Ue.maxRow;Ae++)Ye[Ae+","+Ue.minCol]=!0,Ye[Ae+","+(Ue.maxCol+1)]=!0}if(ur==="+"||ur==="^"||ur==="#"){for(qe=0;qe<q.length-1;qe++)kr["0,"+qe]=!0,kr[mr.length-1+","+qe]=!0;for(Ae=0;Ae<mr.length-1;Ae++)Ye[Ae+",0"]=!0,Ye[Ae+","+(q.length-1)]=!0}var ve;for(ve in kr)if(kr.hasOwnProperty(ve)){var Mr=ve.split(",");Ae=parseInt(Mr[0],10),qe=parseInt(Mr[1],10),n+=B(Y+q[qe],nr+mr[Ae],q[qe+1]-q[qe])}for(ve in Ye)if(Ye.hasOwnProperty(ve)){var _o=ve.split(",");Ae=parseInt(_o[0],10),qe=parseInt(_o[1],10),n+=H(Y+q[qe],nr+mr[Ae],mr[Ae+1]-mr[Ae])}if(L.title){var et=_i(L.title,!1);n+=Z(a("sgt"),"","rounded=0;fillColor=#FFFFFF;strokeColor=none;",Y+6,nr,et,Yr.titleH,"1"),n+=h(L.title,Y+6,nr,et,!1)}if(L.scroll){var io={w:q[q.length-1],h:mr[mr.length-1]+Yr.titleH};(L.scroll==="both"||L.scroll==="v")&&To(Y+io.w+4,nr,15,io.h,!0),(L.scroll==="both"||L.scroll==="h")&&To(Y,nr+io.h+4,io.w,15,!1)}}function To(L,Y,nr,Yr,mr){n+=Z(a("ssb"),"","rounded=0;fillColor=none;strokeColor=#000000;strokeWidth=1;",L,Y,nr,Yr,"1"),mr?(n+=B(L,Y+12,nr),n+=B(L,Y+Yr-12,nr),n+=Z(a("sst"),"","triangle;direction=north;fillColor=#000000;strokeColor=#000000;",L+4,Y+4,6,5,"1"),n+=Z(a("sst"),"","triangle;direction=south;fillColor=#000000;strokeColor=#000000;",L+4,Y+Yr-12+4,6,5,"1")):(n+=H(L+12,Y,Yr),n+=H(L+nr-12,Y,Yr),n+=Z(a("sst"),"","triangle;direction=west;fillColor=#000000;strokeColor=#000000;",L+4,Y+4,5,6,"1"),n+=Z(a("sst"),"","triangle;direction=east;fillColor=#000000;strokeColor=#000000;",L+nr-12+4,Y+4,5,6,"1"))}var Sr=r.root,Rr=N(Sr);he(Sr,5,5,Rr.w,Rr.h);var ue=Z(a("sanchor"),"","shape=text;strokeColor=none;fillColor=none;",0,0,Rr.w+10,Rr.h+10,"1");return ue+n+e}var lf=78,du=5,xs=36,Qc=30,_d=44,rC=37.5,eC=45,oC=50,sf=20;function tC(r,n){for(var e=String(r??""),f=0,a=0;a<e.length;a++){var h=e.charAt(a);`iIljtfr.,:;!|'"()[]{} `.indexOf(h)>=0?f+=4.2:"mwMW".indexOf(h)>=0?f+=11.7:f+=7.8}return f*(n/14)}function uf(r){return Math.max(_d,tC(r,12)+20)}function aC(r){var n=r.networks,e="",f=0,a,h,B=r.styleSheet||null;function H(ro,Me,Lo,sr){return s(ro,B,["root","element","nwdiagDiagram",Me],[],Lo||"vertex",sr)}function p(ro){return ro+"_"+f++}if(n.length===0)return"";var U=_d;for(a=0;a<n.length;a++){var N=n[a].nodes;for(h=0;h<N.length;h++){var j=uf(N[h].name);j>U&&(U=j)}}var Q=U+Qc;function _r(ro){return lf+ro*Q+Q/2}var Lr={};for(a=0;a<n.length;a++){var er=n[a].nodes;for(h=0;h<er.length;h++)Lr[er[h].name]===void 0&&(Lr[er[h].name]=a)}var Qr=[];for(a=0;a<n.length;a++)Qr[a]=!1;for(a=0;a<n.length;a++){var Vr=n[a].nodes;for(h=0;h<Vr.length;h++){var he=Lr[Vr[h].name];he!==void 0&&he<a&&(Qr[he]=!0)}}var zr={},Jr=sf,br=r.topNodes||[],Br=r.links||[],Ie=sf;br.length>0&&(Jr=sf+xs+26);var To=Jr;for(a=0;a<n.length;a++){var Sr=n[a],Rr=Sr.nodes;if(r.groups&&r.groups.length>0){for(var ue={},L=0;L<r.groups.length;L++)for(var Y=0;Y<r.groups[L].nodes.length;Y++)ue[r.groups[L].nodes[Y]]=L;for(var nr=[],Yr=0;Yr<Rr.length;Yr++)nr.push({n:Rr[Yr],g:ue[Rr[Yr].name]!==void 0?ue[Rr[Yr].name]:-1,i:Yr});nr.sort(function(ro,Me){return ro.g-Me.g||ro.i-Me.i}),Rr=[];for(var mr=0;mr<nr.length;mr++)Rr.push(nr[mr].n)}var q=Jr,ur=[],kr=0,Ye=1/0,Fe=-1/0;for(h=0;h<Rr.length;h++){var qe=zr[Rr[h].name]?zr[Rr[h].name].col:kr++;ur[h]=qe,qe<Ye&&(Ye=qe),qe>Fe&&(Fe=qe)}Ye===1/0&&(Ye=0,Fe=0);var Ae=lf+Ye*Q,Ue=(Fe-Ye+1)*Q;e+=Z(p("nwbar"),"",H("fillColor=#E2E2F0;strokeColor=#181818;strokeWidth=1;","network","vertex",["strokeWidth"]),Ae,q,Ue,du,"1");var no=Sr.name+(Sr.address?`+`+Sr.address:"");e+=Z(p("nwlbl"),no,H("shape=text;strokeColor=none;fillColor=none;fontSize=12;fontColor=#000000;align=right;verticalAlign=middle;","network","text"),0,q-15,lf-3,34,"1");var Ee=Qr[a]?eC:rC,$o=q+du+Ee,ve=q+du;for(h=0;h<Rr.length;h++){var Mr=Rr[h],_o=_r(ur[h]),et=Mr.address||"";if(zr[Mr.name]){var io=zr[Mr.name];e+=ee(p("nwsh"),et,"endArrow=none;strokeColor=#181818;fontSize=11;fontColor=#000000;",io.cx,io.bottomY,io.cx,q,"1");continue}var po=uf(Mr.name),So=_o-po/2,Ao=xs,Qo="shape=rectangle;fillColor=#F1F1F1;strokeColor=#181818;strokeWidth=0.5;fontSize=12;fontColor=#000000;align=center;";Mr.shape==="cloud"?(Qo="shape=cloud;fillColor=#F1F1F1;strokeColor=#181818;strokeWidth=0.5;fontSize=12;fontColor=#000000;align=center;",Ao=xs+12):Mr.shape==="database"&&(Qo="shape=cylinder;fillColor=#F1F1F1;strokeColor=#181818;strokeWidth=0.5;fontSize=12;fontColor=#000000;align=center;verticalAlign=bottom;spacingBottom=4;",Ao=xs+16),e+=Z(p("nwnode"),Mr.name,H(Qo,"server"),So,$o,po,Ao,"1"),e+=ee(p("nwe"),et,H("endArrow=none;strokeColor=#181818;fontSize=11;fontColor=#000000;","arrow","edge"),_o,q+du,_o,$o,"1"),zr[Mr.name]={col:ur[h],cx:_o,bottomY:$o+Ao,x:So,topY:$o,w:po,h:Ao};var Io=$o+Ao;Io>ve&&(ve=Io)}Jr=ve+oC}for(a=0;a<br.length;a++){var fo=br[a],mt=null;for(h=0;h<Br.length;h++){if(Br[h].from===fo.name&&zr[Br[h].to]){mt=zr[Br[h].to];break}if(Br[h].to===fo.name&&zr[Br[h].from]){mt=zr[Br[h].from];break}}var bo=mt?mt.cx:_r(a),ea=uf(fo.name)+(fo.shape==="cloud"?24:0),No=xs+(fo.shape==="cloud"?12:0),oo=fo.shape==="cloud"?"shape=cloud;fillColor=#F1F1F1;strokeColor=#181818;strokeWidth=0.5;fontSize=12;fontColor=#000000;align=center;":"shape=rectangle;fillColor=#F1F1F1;strokeColor=#181818;strokeWidth=0.5;fontSize=12;fontColor=#000000;align=center;";e+=Z(p("nwtop"),fo.name,H(oo,"server"),bo-ea/2,Ie,ea,No,"1"),e+=ee(p("nwte"),"",H("endArrow=none;strokeColor=#181818;","arrow","edge"),bo,Ie+No,bo,To,"1")}var Oe="",Yo=r.groups||[];for(a=0;a<Yo.length;a++){var _e=Yo[a],X=1/0,$r=1/0,to=-1/0,Hr=-1/0;for(h=0;h<_e.nodes.length;h++){var cr=zr[_e.nodes[h]];cr&&(cr.x<X&&(X=cr.x),cr.topY<$r&&($r=cr.topY),cr.x+cr.w>to&&(to=cr.x+cr.w),cr.topY+cr.h>Hr&&(Hr=cr.topY+cr.h))}X!==1/0&&(Oe+=Z(p("nwgrp"),"",H("rounded=0;fillColor="+(P(_e.color)||"#FFEFDF")+";strokeColor=none;","group","vertex",_e.color?["fillColor","gradientColor"]:null),X-10,$r-8,to-X+20,Hr-$r+16,"1"))}return Oe+e}var nC={Motivation:"#CCCCFF",Strategy:"#F8E7C0",Business:"#FFFFCC",Application:"#C2F0FF",Technology:"#C9FFC9",Physical:"#97FF97",Implementation:"#FFE0E0",Other:"#D3D3D3",Junction:"#D3D3D3"};function lC(r){if(r.category==="Junction"){if(r.kind==="And")return"#000000";if(r.kind==="Or")return"#F5F5F5"}if(r.category==="Other"&&r.kind==="Location")return"#EFD1E4";if(r.color){var n=P(r.color);if(n)return n}return nC[r.category]||"#EEEEEE"}var iC={Process:1,Function:1,Interaction:1,Service:1,Event:1,Capability:1,CourseOfAction:1,ValueStream:1},sC={Stakeholder:["role","oct"],Driver:["driver","oct"],Assessment:["assess","oct"],Goal:["goal","oct"],Outcome:["outcome","oct"],Principle:["principle","oct"],Requirement:["requirement","oct"],Constraint:["constraint","oct"],Meaning:["meaning","oct"],Value:["amValue","oct"],Resource:["resource","square"],Capability:["capability","rounded"],CourseOfAction:["course","rounded"],ValueStream:["valueStream","rounded"],Actor:["actor","square"],Role:["role","square"],Collaboration:["collab","square"],Interface:["interface","square"],Process:["proc","rounded"],Function:["func","rounded"],Interaction:["interaction","rounded"],Event:["event","rounded"],Service:["serv","rounded"],Object:["passive","square"],DataObject:["passive","square"],Contract:["contract","square"],Representation:["representation","square"],Product:["product","square"],Location:["location","square"],Component:["comp","square"],Node:["node","square"],Device:["device","square"],SystemSoftware:["sysSw","square"],Path:["path","square"],CommunicationNetwork:["netw","square"],Artifact:["artifact","square"],Equipment:["equipment","square"],Facility:["facility","square"],DistributionNetwork:["distribution","square"],Material:["material","square"],WorkPackage:["workPackage","rounded"],Deliverable:["deliverable","square"],Plateau:["plateau","square"],Gap:["gap","square"]};function uC(r){var n=sC[r.kind];if(n)return n;var e=r.category==="Motivation"?"oct":iC[r.kind]?"rounded":"square";return["generic",e]}function fC(r,n){var e="",f=0;function a(Je){return Je+"_"+f++}var h=54,B=35,H=114,p=134,U=16,N=12,j=40,Q=20,_r=16,Lr=22,er=16,Qr=20,Vr=16,he={},zr={},Jr=U;function br(Je){Je>Jr&&(Jr=Je)}function Br(Je,mo){return Math.round(Tl(Je||"",mo)*.925)}function Ie(Je){return Math.max(140,Br(Je)+20)}function To(Je){return Je.category==="Junction"}function Sr(Je){return To(Je)?Vr:Ie(Je.label||Je.id)}function Rr(Je){return To(Je)?Vr:h+15*(String(Je.label||"").split(`+`).length-1)}var ue=r.styleSheet||null;function L(Je,mo){if(ue==null)return Je;var ge=["root","element","componentDiagram","archimate"],We=mo.stereotype?[mo.stereotype]:[],Et=R(ue,ge,We,"vertex");delete Et.fillColor,delete Et.gradientColor,delete Et.rounded,delete Et.arcSize;var wo=g(Je,Et);if(/archiType=/.test(wo)){var la=nt.userStyle(ue,ge,We);nt.asDouble(la,"DiagonalCorner",0)>0?wo=wo.replace(/archiType=\w+;/,"archiType=oct;"):nt.asDouble(la,"RoundCorner",0)>0&&(wo=wo.replace(/archiType=\w+;/,"archiType=rounded;"))}return wo}function Y(Je){var mo=lC(Je);if(To(Je))return L("ellipse;html=1;fillColor="+mo+";strokeColor=#181818;fontColor=#000000;strokeWidth=0.5;verticalLabelPosition=bottom;verticalAlign=top;fontSize="+N+";",Je);var ge="whiteSpace=wrap;html=1;fillColor="+mo+";strokeColor=#181818;fontColor=#000000;strokeWidth=0.5;fontSize="+N+";",We=uC(Je);return L("shape=mxgraph.archimate3.application;appType="+We[0]+";archiType="+We[1]+";"+ge,Je)}for(var nr={__root__:[]},Yr=0;Yr<r.shapes.length;Yr++){var mr=r.shapes[Yr],q=mr.parent||"__root__";nr[q]||(nr[q]=[]),nr[q].push(mr)}var ur=U+(r.title?j:0);function kr(Je,mo,ge){var We=Sr(Je),Et=Rr(Je),wo=a("arc");return he[Je.id]=wo,e+=Z(wo,Je.label||Je.id,Y(Je),mo,ge,We,Et,"1"),br(mo+We),{w:We,h:Et}}function Ye(Je,mo,ge){for(var We=nr[Je.id]||[],Et=(Je.kind||"").toLowerCase()==="group",wo=0,la=h,ia=0;ia<We.length;ia++){wo+=Sr(We[ia]),ia>0&&(wo+=B);var pe=Rr(We[ia]);pe>la&&(la=pe)}We.length===0&&(wo=120);var Zr=wo+2*_r,$t=Q+Lr+la+er,xt=a("grp");zr[Je.id]=xt;var kt=Br(Je.label||Je.id,!0)+12;kt>Zr-10&&(kt=Zr-10);var Dt="shape=folder;tabWidth="+kt+";tabHeight="+Q+";tabPosition=left;html=1;whiteSpace=wrap;fontStyle=1;fontSize="+N+";align=left;verticalAlign=top;spacingLeft=4;spacingTop=-2;strokeWidth=1.5;"+(Et?"fillColor=#D3D3D3;strokeColor=#000000;fontColor=#000000;":"fillColor=#FFFFFF;strokeColor=#444444;dashed=1;fontColor=#444444;");e+=Z(xt,Je.label||Je.id,Dt,mo,ge,Zr,$t,"1"),br(mo+Zr);for(var Ut=_r,Co=Q+Lr,Ht=0;Ht<We.length;Ht++){var Po=We[Ht],Tt=Sr(Po),St=Rr(Po),vt=a("arc");he[Po.id]=vt,e+=Z(vt,Po.label||Po.id,Y(Po),Ut,Co+(la-St)/2,Tt,St,xt),Ut+=Tt+B}return{w:Zr,h:$t}}var Fe=r.edges&&r.edges.length>0,qe=r.shapes.length>0&&nr.__root__.length===0&&r.groups.length>0,Ae=ur;if(Fe){for(var Ue={},no=0;no<r.shapes.length;no++)Ue[r.shapes[no].id]=no;for(var Ee=[],$o=0;$o<r.shapes.length;$o++)Ee[$o]=0;for(var ve=0;ve<r.shapes.length;ve++)for(var Mr=0;Mr<r.edges.length;Mr++){var _o=Ue[r.edges[Mr].from],et=Ue[r.edges[Mr].to];_o===void 0||et===void 0||Ee[et]<Ee[_o]+1&&(Ee[et]=Ee[_o]+1)}for(var io={},po=0,So=0;So<r.shapes.length;So++){var Ao=Ee[So];Ao>po&&(po=Ao),(io[Ao]=io[Ao]||[]).push(r.shapes[So])}for(var Qo=r.title?Math.round(r.title.length*8):0,Io=Qo,fo=0;fo<=po;fo++){for(var mt=io[fo]||[],bo=0,ea=0;ea<mt.length;ea++)bo+=Sr(mt[ea]),ea>0&&(bo+=B);bo>Io&&(Io=bo)}for(var No=0;No<=po;No++){for(var oo=io[No]||[],Oe=0,Yo=0;Yo<oo.length;Yo++)Oe+=Sr(oo[Yo]),Yo>0&&(Oe+=B);for(var _e=U+(Io-Oe)/2,X=ur+No*p,$r=0;$r<oo.length;$r++)kr(oo[$r],_e,X),_e+=Sr(oo[$r])+B;Ae=X+h}}else if(qe)for(var to=U,Hr=0;Hr<r.groups.length;Hr++){var cr=Ye(r.groups[Hr],to,ur);to+=cr.w+Qr,ur+cr.h>Ae&&(Ae=ur+cr.h)}else{for(var ro=nr.__root__,Me=Math.max(1,Math.ceil(Math.sqrt(ro.length))),Lo=U,sr=ur,Go=h,rn=U,wt=0;wt<ro.length;wt++){var zt=ro[wt],ka=Sr(zt);wt>0&&wt%Me===0&&(Lo=U,sr+=H,Go=h);var Rt=kr(zt,Lo,sr);Lo+=ka+B,sr===ur&&(rn=Lo-B),Rt.h>Go&&(Go=Rt.h)}if(Ae=sr+Go,r.groups.length>0){for(var gt=rn+(ro.length>0?21:0),dt=0,Fa=0;Fa<r.groups.length;Fa++){var oa=Ye(r.groups[Fa],gt,ur);gt+=oa.w+Qr,oa.h>dt&&(dt=oa.h)}ur+dt>Ae&&(Ae=ur+dt)}}for(var bt=0;bt<r.edges.length;bt++){var Wt=r.edges[bt],ha=he[Wt.from]||zr[Wt.from],co=he[Wt.to]||zr[Wt.to];!ha||!co||(e+=O(a("rel"),Wt.label||"","endArrow=block;endFill=1;endSize=8;startArrow=oval;startFill=1;startSize=10;html=1;strokeColor=#000000;fontColor=#000000;fontSize=13;labelBackgroundColor=#FFFFFF;",ha,co,"1"))}if(r.legend&&r.legend.lines&&r.legend.lines.length>0){var lt=d(r.legend.lines),it=U,st=Ae+20;e+=b(lt,it,st,a,"none"),br(it+lt.w)}if(r.title){var ja=Math.max(120,Jr-U,Math.round(r.title.length*8));e+=Z(a("title"),r.title,"rounded=0;fillColor=none;strokeColor=none;fontSize=14;fontStyle=1;fontColor=#000000;align=center;verticalAlign=middle;",U,U,ja,30,"1")}return e}var Od={Person:{fill:"#08427B",stroke:"#073B6F",font:"#FFFFFF",extFill:"#686868",extStroke:"#666666"},System:{fill:"#1168BD",stroke:"#3C7FC0",font:"#FFFFFF",extFill:"#999999",extStroke:"#8A8A8A"},Container:{fill:"#438DD5",stroke:"#3C7FC0",font:"#FFFFFF",extFill:"#B3B3B3",extStroke:"#8A8A8A"},Component:{fill:"#85BBF0",stroke:"#78A8D8",font:"#000000",extFill:"#CCCCCC",extStroke:"#8A8A8A"}},dC=210;function cC(r,n){var e=Od[r]||Od.Component,f=/_ext$|^ext$/.test(n||"")||/ext/.test(n||""),a=f?e.extFill:e.fill,h=f?e.extStroke:e.stroke,B="html=1;whiteSpace=wrap;fillColor="+a+";strokeColor="+h+";fontColor="+e.font+";strokeWidth=0.5;fontSize=14;verticalAlign=top;spacingTop=6;";return/db/.test(n||"")?"shape=cylinder3;size=10;boundedLbl=1;backgroundOutline=1;"+B:/queue/.test(n||"")?"shape=queue;"+B:(r==="Person"||/person/.test(n||""),"rounded=0;"+B)}function CC(r,n){var e="",f=0;function a(Ce){return Ce+"_"+f++}var h=dC,B=90,H=r.nodesep||45,p=r.ranksep||55,U=r.nodesep||50,N=30,j=40,Q=16,_r=r.nodesep?Math.round(r.nodesep/2+3):Q,Lr=30,er={},Qr={},Vr={},he=!r.hasLegend,zr={};function Jr(Ce){return zr[Ce.id]||(zr[Ce.id]=RC(Ce,he)),zr[Ce.id]}function br(Ce,jr,ao,De,ft,Ho,Ze,Ro){var Ot=a("c4");er[Ce.id]=Ot,Vr[Ce.id]={x:Ze===void 0?jr:Ze,y:Ro===void 0?ao:Ro,w:De,h:ft};var Wo=cC(Ce.category,Ce.variant),It=Ce.category==="Person";It&&!he&&(Wo+="spacingTop=57;");var Uo=ye(Ot,hC(Ce,he),Wo,jr,ao,De,ft,Ho);if(It){var jo=De/2,Nt=he?26:10;Uo+=Z(a("c4sp"),"","shape=mxgraph.c4.person2;fillColor=#FFFFFF;strokeColor=none;",jo-24,Nt,48,48,Ot)}return Uo}for(var Br={},Ie={},To=0;To<r.boundaries.length;To++){var Sr=r.boundaries[To];Sr.stereotype&&Sr.stereotype.toLowerCase()==="layout"&&(Br[Sr.id]=!0)}function Rr(Ce){for(;Ce&&Br[Ce];){for(var jr=null,ao=0;ao<r.boundaries.length;ao++)if(r.boundaries[ao].id===Ce){jr=r.boundaries[ao].parent;break}Ce=jr}return Ce}for(var ue=[],L=0;L<r.boundaries.length;L++){var Y=r.boundaries[L];Br[Y.id]||ue.push({id:Y.id,label:Y.label,kind:Y.kind,stereotype:Y.stereotype,children:Y.children,parent:Rr(Y.parent)})}for(var nr={__root__:[]},Yr=0;Yr<r.shapes.length;Yr++){var mr=r.shapes[Yr],q=mr.parent||"__root__",ur=q==="__root__"?"__root__":Rr(q)||"__root__";nr[ur]||(nr[ur]=[]),nr[ur].push(mr),Ie[mr.id]=ur}var kr=N,Ye=kr,Fe=r.title?Os(r.title).length:0,qe=Fe?Fe*20+4:0;r.title&&(kr+=qe+20);for(var Ae=[],Ue={},no=0;no<ue.length;no++)Ue[ue[no].id]=Ae.length,Ae.push({boundary:ue[no]});for(var Ee=nr.__root__,$o=0;$o<Ee.length;$o++)Ue[Ee[$o].id]=Ae.length,Ae.push({shape:Ee[$o]});function ve(Ce){if(Ue[Ce]!==void 0)return Ue[Ce];var jr=Ie[Ce];return jr&&jr!=="__root__"&&Ue[jr]!==void 0?Ue[jr]:-1}for(var Mr=[],_o=0;_o<r.edges.length;_o++){var et=r.edges[_o];Mr.push({from:et.back?et.to:et.from,to:et.back?et.from:et.to,label:et.label,technology:et.technology,direction:et.direction})}function io(Ce,jr){for(var ao=[],De=0;De<Ce;De++)ao.push(0);for(var ft=0;ft<=Ce;ft++){for(var Ho=!1,Ze=0;Ze<jr.length;Ze++){var Ro=jr[Ze];Ro.from<0||Ro.to<0||Ro.from===Ro.to||Ro.direction==="left"||Ro.direction==="right"||ao[Ro.to]<ao[Ro.from]+1&&(ao[Ro.to]=ao[Ro.from]+1,Ho=!0)}if(!Ho)break}for(var Ot=0;Ot<Ce;Ot++){for(var Wo=!1,It=0;It<jr.length;It++){var Uo=jr[It];Uo.from<0||Uo.to<0||Uo.from===Uo.to||(Uo.direction==="left"||Uo.direction==="right")&&ao[Uo.to]!==ao[Uo.from]&&(ao[Uo.to]=ao[Uo.from],Wo=!0)}if(!Wo)break}return ao}for(var po=[],So=0;So<Mr.length;So++)po.push({from:ve(Mr[So].from),to:ve(Mr[So].to),direction:Mr[So].direction});for(var Ao=io(Ae.length,po),Qo=0;Qo<Ae.length;Qo++){var Io=Ae[Qo];if(Io.shape){var fo=Jr(Io.shape);Io.w=fo.w,Io.h=fo.h;continue}for(var mt=nr[Io.boundary.id]||[],bo={},ea=0;ea<mt.length;ea++)bo[mt[ea].id]=ea;for(var No=[],oo=0;oo<Mr.length;oo++){var Oe=bo[Mr[oo].from],Yo=bo[Mr[oo].to];No.push({from:Oe===void 0?-1:Oe,to:Yo===void 0?-1:Yo,direction:Mr[oo].direction})}for(var _e=io(mt.length,No),X=[],$r=0;$r<mt.length;$r++){var to=_e[$r];X[to]||(X[to]=[]),X[to].push(mt[$r])}Io.childRows=[],Io.rowHs=[];for(var Hr=0,cr=0,ro=0;ro<X.length;ro++)if(!(!X[ro]||!X[ro].length)){for(var Me=X[ro],Lo=0,sr=0,Go=0;Go<Me.length;Go++){var rn=Jr(Me[Go]);Lo+=rn.w+(Go?U:0),sr=Math.max(sr,rn.h)}Io.childRows.push(Me),Io.rowHs.push(sr),Hr=Math.max(Hr,Lo),cr+=sr+(Io.childRows.length>1?p:0)}mt.length===0&&(Hr=h-2*Q,cr=40),Io.w=Hr+2*_r,Io.h=j+Q+cr+Q}for(var wt=[],zt=0;zt<Ae.length;zt++){var ka=Ao[zt];wt[ka]||(wt[ka]=[]),wt[ka].push(Ae[zt])}for(var Rt=[],gt=[],dt=0,Fa=0;Fa<wt.length;Fa++)if(!(!wt[Fa]||!wt[Fa].length)){for(var oa=wt[Fa],bt=0,Wt=0;Wt<oa.length;Wt++)bt+=oa[Wt].w+(Wt?H:0);Rt.push(oa),gt.push(bt),dt=Math.max(dt,bt)}r.title&&(e+=ye(a("c4title"),T(r.title).replace(/ /g,"<br>"),"text;html=1;rounded=0;fillColor=none;strokeColor=none;fontSize=14;fontStyle=1;fontColor=#000000;align=center;verticalAlign=middle;",N,Ye,dt,qe,"1"));for(var ha=0;ha<Rt.length;ha++){for(var co=Rt[ha],lt=N+(dt-gt[ha])/2,it=0,st=0;st<co.length;st++)it=Math.max(it,co[st].h);for(var ja=0;ja<co.length;ja++){var Je=co[ja];if(Je.shape)e+=br(Je.shape,lt,kr,Je.w,Je.h,"1");else{var mo=a("bnd");Qr[Je.boundary.id]=mo;var ge='<font style="font-size:16px;"><b>'+T(Je.boundary.label||Je.boundary.id)+"</b></font><br>["+gC(Je.boundary)+"]",We="rounded=0;html=1;whiteSpace=wrap;fillColor=none;strokeColor=#444444;dashed=1;dashPattern=7 7;verticalAlign=top;align=center;fontColor=#444444;fontSize=12;";e+=ye(mo,ge,We,lt,kr,Je.w,Je.h,"1"),Vr[Je.boundary.id]={x:lt,y:kr,w:Je.w,h:Je.h};for(var Et=lt,wo=kr,la=j+Q,ia=0;ia<Je.childRows.length;ia++){for(var pe=Je.childRows[ia],Zr=0,$t=0;$t<pe.length;$t++)Zr+=Jr(pe[$t]).w+($t?U:0);for(var xt=(Je.w-Zr)/2,kt=0;kt<pe.length;kt++){var Dt=pe[kt],Ut=Jr(Dt);e+=br(Dt,xt,la,Ut.w,Ut.h,mo,Et+xt,wo+la),xt+=Ut.w+U}la+=Je.rowHs[ia]+p}}lt+=Je.w+H}kr+=it+B}for(var Co=[],Ht=0;Ht<r.edges.length;Ht++){var Po=r.edges[Ht],Tt=er[Po.from]||Qr[Po.from],St=er[Po.to]||Qr[Po.to];if(!(!Tt||!St)){if(Po.back){var vt=Tt;Tt=St,St=vt}var Xt="endArrow=block;endFill=1;endSize=5;html=1;strokeColor=#666666;fontColor=#666666;fontSize=12;fontStyle=1;";r.linetype==="ortho"?Xt+="edgeStyle=orthogonalEdgeStyle;rounded=0;":Xt+="curved=1;";var sa=[];if(Po.label)for(var Xa=Os(Po.label),ya=0;ya<Xa.length;ya++)sa.push({t:Xa[ya],b:!0});Po.technology&&sa.push({t:"["+Po.technology+"]",i:!0});var Mo=Vr[Po.from],_t=Vr[Po.to];if(sa.length&&Mo&&_t){for(var ct=[],$a=0,en=sa.length,da=0;da<sa.length;da++){var Kt=sa[da],va=T(Kt.t);ct.push(Kt.b?"<b>"+va+"</b>":Kt.i?"<i>"+va+"</i>":va),$a=Math.max($a,Hs(Kt.t,12,!!Kt.b))}var ma=Math.ceil($a)+10,ba=en*16+4,ot=Mo.x+Mo.w/2,jt=Mo.y+Mo.h/2,ta=_t.x+_t.w/2,_a=_t.y+_t.h/2,ca=(ot+ta)/2,ut=(jt+_a)/2,wa=Math.abs(_a-jt)>=Math.abs(ta-ot),Bt,Bo,Oa;wa?(Bt=ca+4,Bo=ut-ba/2,Oa="left"):(Bt=ca-ma/2,Bo=ut-ba/2,Oa="center"),Co.push({html:ct.join("<br>"),x:Bt,y:Bo,w:ma,h:ba,align:Oa})}e+=O(a("rel"),"",Xt,Tt,St,"1")}}for(var Vt=0;Vt<Co.length;Vt++)if(!Co[Vt].done){var go=[Co[Vt]];Co[Vt].done=!0;for(var xo=Vt+1;xo<Co.length;xo++){var qt=Co[xo];if(!qt.done)for(var Pt=0;Pt<go.length;Pt++){var Jt=go[Pt];if(qt.x<Jt.x+Jt.w+4&&Jt.x<qt.x+qt.w+4&&qt.y<Jt.y+Jt.h&&Jt.y<qt.y+qt.h){go.push(qt),qt.done=!0;break}}}if(go.length>1){go.sort(function(Ce,jr){return Ce.x-jr.x});for(var aa=0,Pa=0,gr=0;gr<go.length;gr++)aa=Math.max(aa,go[gr].w),Pa+=go[gr].x+go[gr].w/2;Pa/=go.length;for(var de=aa+24,Gr=Pa-de*(go.length-1)/2,Or=0;Or<go.length;Or++)go[Or].x=Gr+Or*de-go[Or].w/2}}for(var re=0;re<Co.length;re++){var be=Co[re];e+=ye(a("rellbl"),be.html,"text;html=1;fillColor=none;strokeColor=none;fontSize=12;fontColor=#666666;align="+be.align+";verticalAlign=middle;whiteSpace=nowrap;",Math.round(be.x),Math.round(be.y),be.w,be.h,"1")}if(r.hasLegend){var Cr=[{fill:"#08427B",label:"person"},{fill:"#1168BD",label:"system"},{fill:"#438DD5",label:"container"}];r.hasComponent&&Cr.push({fill:"#85BBF0",label:"component"}),Cr.push({fill:"#686868",label:"external person"},{fill:"#999999",label:"external system"},{fill:"#B3B3B3",label:"external container"}),r.hasComponent&&Cr.push({fill:"#CCCCCC",label:"external component"});var te=19,ce=140,fe=N+Math.max(0,dt-ce),tt=kr-B+40;e+=Z(a("lg"),"Legend","text;fillColor=none;strokeColor=none;fontSize=14;fontStyle=1;fontColor=#000000;align=left;verticalAlign=middle;",fe,tt,ce,18,"1"),tt+=18;for(var ko=0;ko<Cr.length;ko++){var Xr=Cr[ko];e+=Z(a("lg"),Xr.label,"rounded=0;fillColor="+Xr.fill+";strokeColor=none;fontSize=12;fontColor=#FFFFFF;align=left;spacingLeft=6;",fe,tt+ko*te,ce,te,"1")}}return e}function Os(r){return String(r??"").split(/\\n| |\r?\n/)}function hC(r,n){var e=[];n&&e.push('<font style="font-size:12px;"><i>\xAB'+T(String(r.category||"").toLowerCase())+"\xBB</i></font>"),r.category==="Person"&&n&&e.push('<font style="font-size:36px;"> </font>');for(var f=Os(r.label||r.id),a=0;a<f.length;a++)e.push('<font style="font-size:16px;"><b>'+T(f[a])+"</b></font>");if(r.technology&&e.push('<font style="font-size:12px;"><i>['+T(r.technology)+"]</i></font>"),r.description){e.push("");for(var h=Os(r.description),B=0;B<h.length;B++)e.push(T(h[B]))}return e.join("<br>")}function $C(r){return r==="\u23AF"||r==="\u2014"||r==="\u2015"?13.4:`iIljtfr.,:;!|'"()[]{} `.indexOf(r)>=0?4.2:"mwMW".indexOf(r)>=0?11.7:7.8}function Hs(r,n,e){for(var f=String(r??""),a=0,h=0;h<f.length;h++)a+=$C(f.charAt(h));return a*(n/14)*(e?1.08:1)}function Fd(r,n,e,f){var a=Hs(r,n,e);if(!r||a<=f)return{count:1,maxW:a};for(var h=String(r).split(/\s+/),B="",H=0,p=0,U=0;U<h.length;U++){var N=B?B+" "+h[U]:h[U];B&&Hs(N,n,e)>f?(H++,p=Math.max(p,Hs(B,n,e)),B=h[U]):B=N}return B&&(H++,p=Math.max(p,Hs(B,n,e))),{count:H||1,maxW:p||a}}function vC(r,n){var e=[];n&&e.push({text:"\xAB"+String(r.category||"").toLowerCase()+"\xBB",size:12,bold:!1,kind:"stereo"});for(var f=Os(r.label||r.id),a=0;a<f.length;a++)e.push({text:f[a],size:16,bold:!0,kind:"name"});if(r.technology&&e.push({text:"["+r.technology+"]",size:12,bold:!1,kind:"tech"}),r.description){e.push({text:"",size:14,bold:!1,kind:"blank"});for(var h=Os(r.description),B=0;B<h.length;B++)e.push({text:h[B],size:14,bold:!1,kind:"desc"})}return e}var pC=200,ff=20;function RC(r,n){var e=vC(r,n),f=r.category==="Person",a,h=0;for(a=0;a<e.length;a++)e[a].text&&(h=Math.max(h,Fd(e[a].text,e[a].size,e[a].bold,pC).maxW));var B=Math.ceil(h)+ff,H=B-8,p=0,U=0,N=0,j=0;for(h=0,a=0;a<e.length;a++){var Q=e[a],_r=Q.text?Fd(Q.text,Q.size,Q.bold,H):{count:1,maxW:0};Q.text&&(h=Math.max(h,_r.maxW)),Q.kind==="name"?p+=_r.count:Q.kind==="desc"?U+=_r.count:Q.kind==="tech"?N+=_r.count:Q.kind==="stereo"&&(j+=_r.count)}B=Math.max(B,Math.ceil(h)+ff);var Lr=!!r.description,er=ff+j*16.3+(f?48:0)+p*21.8+N*16.3+(Lr?19.04+U*19.04:0);return/db/.test(r.variant||"")&&(er+=20),{w:B,h:Math.round(Math.max(f?110:66,er)),sprite:f}}function gC(r){var n=(r.kind||"").toLowerCase();return n.indexOf("container")===0?"container":n.indexOf("system")===0?"system":n.indexOf("enterprise")===0?"enterprise":(r.stereotype||"boundary").toLowerCase()}var bd=[["account-login","account-logout","action-redo","action-undo","align-center","align-left","align-right","aperture","arrow-bottom","arrow-circle-bottom","arrow-circle-left","arrow-circle-right","arrow-circle-top","arrow-left","arrow-right","arrow-thick-bottom","arrow-thick-left","arrow-thick-right","arrow-thick-top","arrow-top","audio-spectrum","audio","badge","ban","bar-chart","basket","battery-empty","battery-full","beaker"],["bell","bluetooth","bold","bolt","book","bookmark","box","briefcase","british-pound","browser","brush","bug","bullhorn","calculator","calendar","camera-slr","caret-bottom","caret-left","caret-right","caret-top","cart","chat","check","chevron-bottom","chevron-left","chevron-right","chevron-top","circle-check","circle-x","clipboard","clock","cloud-download","cloud-upload"],["cloud","cloudy","code","cog","collapse-down","collapse-left","collapse-right","collapse-up","command","comment-square","compass","contrast","copywriting","credit-card","crop","dashboard","data-transfer-download","data-transfer-upload","delete","dial","document","dollar","double-quote-sans-left","double-quote-sans-right","double-quote-serif-left","double-quote-serif-right","droplet","eject","elevator","ellipses","envelope-closed","envelope-open","euro"],["excerpt","expand-down","expand-left","expand-right","expand-up","external-link","eye","eyedropper","file","fire","flag","flash","folder","fork","fullscreen-enter","fullscreen-exit","globe","graph","grid-four-up","grid-three-up","grid-two-up","hard-drive","header","headphones","heart","home","image","inbox","infinity","info","italic","justify-center","justify-left"],["justify-right","key","laptop","layers","lightbulb","link-broken","link-intact","list-rich","list","location","lock-locked","lock-unlocked","loop-circular","loop-square","loop","magnifying-glass","map-marker","map","media-pause","media-play","media-record","media-skip-backward","media-skip-forward","media-step-backward","media-step-forward","media-stop","medical-cross","menu","microphone","minus","monitor","moon","move"],["musical-note","paperclip","pencil","people","person","phone","pie-chart","pin","play-circle","plus","power-standby","print","project","pulse","puzzle-piece","question-mark","rain","random","reload","resize-both","resize-height","resize-width","rss-alt","rss","script","share-boxed","share","shield","signal","signpost","sort-ascending","sort-descending","spreadsheet"],["star","sun","tablet","tag","tags","target","task","terminal","text","thumb-down","thumb-up","timer","transfer","trash","underline","vertical-align-bottom","vertical-align-center","vertical-align-top","video","volume-high","volume-low","volume-off","warning","wifi","wrench","x","yen","zoom-in","zoom-out"]],AC=[14,179,293,453,565,710,825],mC=[69,4,4,4,4,4,4];function kC(r){r=r||{};var n="",e=8,f=0;function a(Jr){for(var br=0,Br=0;Br<Jr.length;Br++)br=Math.max(br,D(Jr[Br]).length);return br}function h(Jr){for(var br=[],Br=0;Br<Jr.length;Br++){var Ie=Jr[Br];/^(?:<#\w+>)?\|.*\|$/.test(Ie)&&(Ie=Ie.replace(/^(?:<#\w+>)?\|\s*|\s*\|$/g,"").split("|").map(function(To){return To.replace(/^\s+|\s+$/g,"").replace(/^=\s*/,"").replace(/^<#\w+>\s*/,"").replace(/^<[lrc]>\s*/,"")}).join(" ")),br.push(Ie)}return br}function B(Jr,br,Br,Ie){var To=Jr.split(`+`),Sr=Math.max(50,a(To)*Br*(Ie?.62:.56)+24),Rr=To.length*(Br+5)+16;n+=Z("t_"+f++,Jr,br,5,e,Sr,Rr,"1"),e+=Rr+6}if(r.header&&B(r.header,"text;html=1;fillColor=none;strokeColor=none;fontSize=10;fontColor=#000000;align=right;verticalAlign=middle;",10,!1),r.title){var H=r.title.split(`+`),p=Math.max(50,a(H)*8+24),U=H.length>1?H.length*19+16:39;n+=ye("t_title",V(r.title),"text;html=1;fillColor=none;strokeColor=none;fontSize=14;fontStyle=1;fontColor=#000000;align=center;verticalAlign=middle;",5,e,p,U,"1"),e+=U+6}for(var N=r.notes||[],j=0;j<N.length;j++){var Q=h(N[j].lines),_r=Q.join(`+`),Lr=Math.max(40,a(Q)*7+26),er=Math.max(1,Q.length)*17+12,Qr=N[j].color&&P(N[j].color)||"#FEFFDD";n+=Z("t_note"+j,_r,"shape=note;size=10;fillColor="+Qr+";strokeColor=#181818;fontColor=#000000;fontSize=12;align=left;spacingLeft=6;verticalAlign=middle;whiteSpace=wrap;html=1;",5,e,Lr,er,"1"),e+=er+10}if(r.legend&&r.legend.lines&&r.legend.lines.length){var Vr=h(r.legend.lines),he=Math.max(40,a(Vr)*7+26),zr=Vr.length*17+12;n+=Z("t_legend",Vr.join(`+`),"rounded=0;fillColor=#DDDDDD;strokeColor=#000000;strokeWidth=1;fontColor=#000000;fontSize=12;align=left;spacingLeft=8;verticalAlign=middle;whiteSpace=wrap;html=1;",5,e,he,zr,"1"),e+=zr+6}return r.caption&&B(r.caption,"text;html=1;fillColor=none;strokeColor=none;fontSize=14;fontColor=#000000;align=center;verticalAlign=middle;",14,!1),r.footer&&B(r.footer,"text;html=1;fillColor=none;strokeColor=none;fontSize=10;fontColor=#000000;align=right;verticalAlign=middle;",10,!1),n}function _C(){var r="",n=0;function e(H,p,U,N,j,Q){return' <mxCell id="oi'+n+++'" value="'+H+'" style="'+p+`" vertex="1" parent="1">+ <mxGeometry x="`+U+'" y="'+N+'" width="'+j+'" height="'+Q+`" as="geometry"/></mxCell>-`}var i="text;html=1;fontSize=12;fontColor=#000000;align=left;verticalAlign=top;spacingTop=0;";r+=a(C("List Open Iconic"),i+"fontStyle=1;",1,4,150,18),r+=a(C("Credit to"),i+"fontStyle=2;",1,20,150,18),r+=a(C("https://useiconic.com/open"),i,1,36,180,18);for(var f=0;f<tf.length;f++){var y=tf[f],T=y.length*16+6;r+=a(C(y.join(`-`)),i,av[f],nv[f],115,T)}return r}var af=[["archimate","Version 1.1.0","Delivered by https://github.com/plantuml-stdlib/Archimate-PlantUML"],["aws","Version 18.02.22","Delivered by https://github.com/milo-minderbinder/AWS-PlantUML"],["awslib","Version 14.0.0","Delivered by https://github.com/awslabs/aws-icons-for-plantuml"],["azure","Version 2.2.0","Delivered by https://github.com/plantuml-stdlib/Azure-PlantUML"],["c4","Version 2.10.0","Delivered by https://github.com/plantuml-stdlib/C4-PlantUML"],["classy","Version 1.0.2","Delivered by https://github.com/james-gadrow-kr/classy-plantuml"],["classy-c4","Version 1.0.3","Delivered by https://github.com/james-gadrow-kr/classy-c4"],["cloudinsight","Version 1.0.0","Delivered by https://github.com/plantuml-stdlib/cicon-plantuml-sprites"],["cloudogu","Version 1.0.2","Delivered by https://github.com/cloudogu/plantuml-cloudogu-sprites"],["domainstory","Version 0.3","Delivered by https://github.com/johthor/DomainStory-PlantUML"],["edgy","Version 0.8.0","Delivered by https://github.com/boessu/plantuml-stdlib"],["eip","Version 1.0.0","Delivered by https://github.com/plantuml-stdlib/EIP-PlantUML"],["elastic","Version 0.0.1","Delivered by https://github.com/Crashedmind/PlantUML-Elastic-icons"],["gcp","Version 6.0.0","Delivered by https://github.com/Crashedmind/PlantUML-icons-GCP"],["k8s","Version 1.0.0","Delivered by https://github.com/dcasati/kubernetes-PlantUML"],["kubernetes","Version 5.3.45","Delivered by https://github.com/plantuml-stdlib/plantuml-kubernetes-sprites"],["logos","Version 1.1.0","Delivered by https://github.com/plantuml-stdlib/gilbarbara-plantuml-sprites"],["material","Version 0.0.1","Delivered by https://github.com/Templarian/MaterialDesign"],["office","Version 1.0.0","Delivered by https://github.com/Roemer/plantuml-office"],["osa","Version 0.0.1","Delivered by https://github.com/Crashedmind/PlantUML-opensecurityarchitecture-icons"],["osa2","Version 0.0.1","Delivered by https://github.com/Crashedmind/PlantUML-opensecurityarchitecture2-icons"],["tupadr3","Version 3.0.0","Delivered by https://github.com/tupadr3/plantuml-icon-font-sprites"]];function iv(){for(var r="",s=4,a=0;a<af.length;a++){var i=af[a];r+=u("sl_"+a+"_n",i[0],"text;html=1;fontSize=12;fontStyle=1;fontFamily=monospace;fontColor=#000000;align=left;verticalAlign=middle;",5,s,600,14,"1"),r+=u("sl_"+a+"_v",i[1],"text;html=1;fontSize=12;fontFamily=monospace;fontColor=#000000;align=left;verticalAlign=middle;",5,s+14.5,600,14,"1"),r+=u("sl_"+a+"_d",i[2],"text;html=1;fontSize=12;fontFamily=monospace;fontColor=#000000;align=left;verticalAlign=middle;",5,s+29,609,14,"1"),s+=65.7}return r}function sv(r,s){s=s||{};var a="";r.type==="sequence"&&r.ir?a=Zr(r.ir,s):r.type==="state"&&r.ir?a=hr(r.ir,s):r.type==="class"&&r.ir?a=hn(r.ir,s):(r.type==="activity"||r.type==="activityLegacy")&&r.ir?a=hl(r.ir,s):r.type==="component"&&r.ir?a=Qo(r.ir,s):r.type==="object"&&r.ir?a=Ri(r.ir,s):r.type==="useCase"&&r.ir?a=mi(r.ir,s):r.type==="mindmap"&&r.ir?a=Af(r.ir,s):r.type==="wbs"&&r.ir?a=Of(r.ir,s):r.type==="json"&&r.ir?a=Qs(r.ir,s):r.type==="yaml"&&r.ir?a=zf(r.ir,s):r.type==="gantt"&&r.ir?a=Df(r.ir,s):r.type==="timing"&&r.ir?a=Lf(r.ir,s):r.type==="salt"&&r.ir?a=Zf(r.ir,s):r.type==="network"&&r.ir?a=Gf(r.ir,s):r.type==="archimate"&&r.ir?a=jf(r.ir,s):r.type==="c4"&&r.ir?a=Nf(r.ir,s):r.type==="titleOnly"?a=lv(r.ir):r.type==="openiconicList"?a=ov():r.type==="stdlib"&&(a=iv());var i=`<mxGraphModel>+`}var f="text;html=1;fontSize=12;fontColor=#000000;align=left;verticalAlign=top;spacingTop=0;";r+=e(i("List Open Iconic"),f+"fontStyle=1;",1,4,150,18),r+=e(i("Credit to"),f+"fontStyle=2;",1,20,150,18),r+=e(i("https://useiconic.com/open"),f,1,36,180,18);for(var a=0;a<bd.length;a++){var h=bd[a],B=h.length*16+6;r+=e(i(h.join(`+`)),f,AC[a],mC[a],115,B)}return r}var Bd=[["archimate","Version 1.1.0","Delivered by https://github.com/plantuml-stdlib/Archimate-PlantUML"],["aws","Version 18.02.22","Delivered by https://github.com/milo-minderbinder/AWS-PlantUML"],["awslib","Version 14.0.0","Delivered by https://github.com/awslabs/aws-icons-for-plantuml"],["azure","Version 2.2.0","Delivered by https://github.com/plantuml-stdlib/Azure-PlantUML"],["c4","Version 2.10.0","Delivered by https://github.com/plantuml-stdlib/C4-PlantUML"],["classy","Version 1.0.2","Delivered by https://github.com/james-gadrow-kr/classy-plantuml"],["classy-c4","Version 1.0.3","Delivered by https://github.com/james-gadrow-kr/classy-c4"],["cloudinsight","Version 1.0.0","Delivered by https://github.com/plantuml-stdlib/cicon-plantuml-sprites"],["cloudogu","Version 1.0.2","Delivered by https://github.com/cloudogu/plantuml-cloudogu-sprites"],["domainstory","Version 0.3","Delivered by https://github.com/johthor/DomainStory-PlantUML"],["edgy","Version 0.8.0","Delivered by https://github.com/boessu/plantuml-stdlib"],["eip","Version 1.0.0","Delivered by https://github.com/plantuml-stdlib/EIP-PlantUML"],["elastic","Version 0.0.1","Delivered by https://github.com/Crashedmind/PlantUML-Elastic-icons"],["gcp","Version 6.0.0","Delivered by https://github.com/Crashedmind/PlantUML-icons-GCP"],["k8s","Version 1.0.0","Delivered by https://github.com/dcasati/kubernetes-PlantUML"],["kubernetes","Version 5.3.45","Delivered by https://github.com/plantuml-stdlib/plantuml-kubernetes-sprites"],["logos","Version 1.1.0","Delivered by https://github.com/plantuml-stdlib/gilbarbara-plantuml-sprites"],["material","Version 0.0.1","Delivered by https://github.com/Templarian/MaterialDesign"],["office","Version 1.0.0","Delivered by https://github.com/Roemer/plantuml-office"],["osa","Version 0.0.1","Delivered by https://github.com/Crashedmind/PlantUML-opensecurityarchitecture-icons"],["osa2","Version 0.0.1","Delivered by https://github.com/Crashedmind/PlantUML-opensecurityarchitecture2-icons"],["tupadr3","Version 3.0.0","Delivered by https://github.com/tupadr3/plantuml-icon-font-sprites"]];function OC(){for(var r="",n=4,e=0;e<Bd.length;e++){var f=Bd[e];r+=Z("sl_"+e+"_n",f[0],"text;html=1;fontSize=12;fontStyle=1;fontFamily=monospace;fontColor=#000000;align=left;verticalAlign=middle;",5,n,600,14,"1"),r+=Z("sl_"+e+"_v",f[1],"text;html=1;fontSize=12;fontFamily=monospace;fontColor=#000000;align=left;verticalAlign=middle;",5,n+14.5,600,14,"1"),r+=Z("sl_"+e+"_d",f[2],"text;html=1;fontSize=12;fontFamily=monospace;fontColor=#000000;align=left;verticalAlign=middle;",5,n+29,609,14,"1"),n+=65.7}return r}function FC(r,n){n=n||{};var e="";r.type==="sequence"&&r.ir?e=m(r.ir,n):r.type==="state"&&r.ir?e=Ta(r.ir,n):r.type==="class"&&r.ir?e=ml(r.ir,n):r.type==="activity"&&r.ir?e=Bi(r.ir,n):r.type==="activityLegacy"&&r.ir?e=dl(r.ir,n):r.type==="component"&&r.ir?e=is(r.ir,n):r.type==="object"&&r.ir?e=hc(r.ir,n):r.type==="useCase"&&r.ir?e=pc(r.ir,n):r.type==="mindmap"&&r.ir?e=Pc(r.ir,n):r.type==="wbs"&&r.ir?e=Hc(r.ir,n):r.type==="json"&&r.ir?e=Ad(r.ir):r.type==="yaml"&&r.ir?e=Wc(r.ir,n):r.type==="gantt"&&r.ir?e=Xc(r.ir,n):r.type==="timing"&&r.ir?e=qc(r.ir,n):r.type==="salt"&&r.ir?e=Jc(r.ir,n):r.type==="network"&&r.ir?e=aC(r.ir,n):r.type==="archimate"&&r.ir?e=fC(r.ir,n):r.type==="c4"&&r.ir?e=CC(r.ir,n):r.type==="titleOnly"?e=kC(r.ir):r.type==="openiconicList"?e=_C():r.type==="stdlib"&&(e=OC()),r.ir&&r.ir.styleSheet&&(nt.hasUserRules(r.ir.styleSheet)&&(e=C(e,r.ir.styleSheet)),/^(?:true|on|yes)$/i.test(String(r.ir.styleSheet.skinparams.handwritten||""))&&(e=e.replace(/ style="([^"]*)"/g,function(H,p){return/(?:^|;)sketch=/.test(p)?H:' style="'+p+(p.length>0&&p.charAt(p.length-1)!==";"?";":"")+'sketch=1;"'})));var f=null;if(r.ir&&r.ir.styleSheet){var a=nt.pageBackground(r.ir.styleSheet);if(a==null&&(r.type==="timing"||r.type==="salt")&&(a=nt.color(nt.userStyle(r.ir.styleSheet,["root","element",r.type+"Diagram"]),"BackGroundColor")),a!=null&&a!=="none"){var h=J(a);f=h!=null&&h.fill!=="none"?h.fill:null}}var B="<mxGraphModel"+(f!=null?' background="'+i(f)+'"':"")+`><root><mxCell id="0"></mxCell><mxCell id="1" parent="0"></mxCell>-`+a+` </root>-</mxGraphModel>`;return i}return{themeDefaults:Or,registerShape:qr,createMxGraph:nr,build:H,buildXml:sv}})();var Ki=(function(){function Or(){return typeof mxCodec<"u"&&typeof mxUtils<"u"&&typeof Graph<"u"}function _r(nr,H){var F=qr(nr,H);return F.xml}function qr(nr,H){H=H||{};var F=Wn.parse(nr,H),R=Ci.buildXml(F,H),E=F.config?F.config.preprocessorWarnings||[]:[];return{xml:R,type:F.type,warnings:E}}return{convert:_r,convertWithMeta:qr}})();var pf=(function(){var Or="group;transparentBounds=1;editIcon=1;lockedGroup=0;groupPadding=10;";function _r(E,O){return Ki.convert(E,O||{})}function qr(E){return String(E).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/\r/g," ").replace(/\n/g," ").replace(/\t/g,"	")}var nr=0;function H(E){for(var O=/<mxCell id="([^"]*)"( value="([^"]*)")?( style="([^"]*)")([^>]*edge="1"[^>]*)>\s*<mxGeometry relative="1" as="geometry">\s*<mxPoint x="([-0-9.]+)" y="([-0-9.]+)" as="sourcePoint"\/>\s*<mxPoint x="([-0-9.]+)" y="([-0-9.]+)" as="targetPoint"\/>\s*<\/mxGeometry>\s*<\/mxCell>\n?/g,C=[],B;(B=O.exec(E))!=null;){var _=B[6];_.indexOf(' source="')>=0||_.indexOf(' target="')>=0||_.indexOf('parent="1"')<0||C.push({all:B[0],id:B[1],value:B[3]||"",style:B[5]||"",rest:_,sx:B[7],sy:B[8],tx:B[9],ty:B[10]})}if(C.length<2)return E;function g(u,z){var N=new RegExp(z+"=([^;]*)").exec(u);return N!=null?N[1]:""}function w(u,z){return g(u.style,"strokeColor")===g(z.style,"strokeColor")&&g(u.style,"dashed")===g(z.style,"dashed")&&g(u.style,"dashPattern")===g(z.style,"dashPattern")}for(var d={},c=0;c<C.length;c++){var o=C[c].sx+","+C[c].sy;d[o]=d[o]===void 0?c:-1}for(var p={},h={},c=0;c<C.length;c++)if(!p[c]){for(var v=C[c],k=[v],S=v;g(S.style,"endArrow")==="none";){var Z=d[S.tx+","+S.ty];if(Z===void 0||Z===-1||p[Z]||Z===c)break;var U=C[Z];if(!w(S,U)||U.value!==""&&k.some(function(z){return z.value!==""}))break;k.push(U),p[Z]=!0,S=U}if(!(k.length<2)){for(var vr=null,G=0;G<k.length;G++)if(k[G].value!==""){vr=k[G];break}var fr=k[k.length-1].style;if(vr!=null&&vr!==k[k.length-1])for(var j=["fontSize","fontColor","labelBackgroundColor","verticalAlign"],lr=0;lr<j.length;lr++){var dr=g(vr.style,j[lr]);dr!==""&&g(fr,j[lr])===""&&(fr+=j[lr]+"="+dr+";")}for(var gr="",G=0;G<k.length-1;G++)gr+='<mxPoint x="'+k[G].tx+'" y="'+k[G].ty+'"/>';var or=k[k.length-1],ar='<mxCell id="'+v.id+'" value="'+(vr!=null?vr.value:"")+'" style="'+fr+`" edge="1" parent="1">+`+e+` </root>+</mxGraphModel>`;return B}return{themeDefaults:hr,registerShape:Wr,createMxGraph:vr,build:ae,buildXml:FC}})();var Bu=(function(){function hr(){return typeof mxCodec<"u"&&typeof mxUtils<"u"&&typeof Graph<"u"}function G(vr,ae){var Tr=Wr(vr,ae);return Tr.xml}function Wr(vr,ae){ae=ae||{};var Tr=il.parse(vr,ae),fr=Ss.buildXml(Tr,ae),Ar=Tr.config?Tr.config.preprocessorWarnings||[]:[];return{xml:fr,type:Tr.type,warnings:Ar}}return{convert:G,convertWithMeta:Wr}})();var sc=(function(){var hr="group;transparentBounds=1;editIcon=1;lockedGroup=0;groupPadding=10;";function G(P,J){return Bu.convert(P,J||{})}function Wr(P){return String(P).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/\r/g," ").replace(/\n/g," ").replace(/\t/g,"	")}var vr=0;function ae(P){for(var J=/<mxCell id="([^"]*)"( value="([^"]*)")?( style="([^"]*)")([^>]*edge="1"[^>]*)>\s*<mxGeometry relative="1" as="geometry">\s*<mxPoint x="([-0-9.]+)" y="([-0-9.]+)" as="sourcePoint"\/>\s*<mxPoint x="([-0-9.]+)" y="([-0-9.]+)" as="targetPoint"\/>\s*<\/mxGeometry>\s*<\/mxCell>\n?/g,K=[],R;(R=J.exec(P))!=null;){var g=R[6];g.indexOf(' source="')>=0||g.indexOf(' target="')>=0||g.indexOf('parent="1"')<0||K.push({all:R[0],id:R[1],value:R[3]||"",style:R[5]||"",rest:g,sx:R[7],sy:R[8],tx:R[9],ty:R[10]})}if(K.length<2)return P;function y(or,yr){var pr=new RegExp(yr+"=([^;]*)").exec(or);return pr!=null?pr[1]:""}function C(or,yr){return y(or.style,"strokeColor")===y(yr.style,"strokeColor")&&y(or.style,"dashed")===y(yr.style,"dashed")&&y(or.style,"dashPattern")===y(yr.style,"dashPattern")}for(var s={},i=0;i<K.length;i++){var k=K[i].sx+","+K[i].sy;s[k]=s[k]===void 0?i:-1}for(var F={},D={},i=0;i<K.length;i++)if(!F[i]){for(var T=K[i],M=[T],V=T;y(V.style,"endArrow")==="none";){var A=s[V.tx+","+V.ty];if(A===void 0||A===-1||F[A]||A===i)break;var I=K[A];if(!C(V,I)||I.value!==""&&M.some(function(yr){return yr.value!==""}))break;M.push(I),F[A]=!0,V=I}if(!(M.length<2)){for(var $=null,c=0;c<M.length;c++)if(M[c].value!==""){$=M[c];break}var x=M[M.length-1].style;if($!=null&&$!==M[M.length-1])for(var E=["fontSize","fontColor","labelBackgroundColor","verticalAlign"],z=0;z<E.length;z++){var lr=y($.style,E[z]);lr!==""&&y(x,E[z])===""&&(x+=E[z]+"="+lr+";")}for(var rr="",c=0;c<M.length-1;c++)rr+='<mxPoint x="'+M[c].tx+'" y="'+M[c].ty+'"/>';var W=M[M.length-1],dr='<mxCell id="'+T.id+'" value="'+($!=null?$.value:"")+'" style="'+x+`" edge="1" parent="1"><mxGeometry relative="1" as="geometry">- <mxPoint x="`+v.sx+'" y="'+v.sy+`" as="sourcePoint"/>- <mxPoint x="`+or.tx+'" y="'+or.ty+`" as="targetPoint"/>- <Array as="points">`+gr+`</Array>+ <mxPoint x="`+T.sx+'" y="'+T.sy+`" as="sourcePoint"/>+ <mxPoint x="`+W.tx+'" y="'+W.ty+`" as="targetPoint"/>+ <Array as="points">`+rr+`</Array></mxGeometry></mxCell>-`;h[c]=ar}}for(var c=0;c<C.length;c++)h[c]!=null?E=E.replace(C[c].all,h[c]):p[c]&&(E=E.replace(C[c].all,""));return E}function F(E){var O={},C=[],B=/<mxCell id="([^"]*)"(?: value="[^"]*")?(?: style="([^"]*)")?([^>]*)>\s*(?:<mxGeometry ([^>]*?)\/>|<mxGeometry ([^>]*?)>)/g,_;function g(j,lr){var dr=new RegExp(lr+'="([^"]*)"').exec(j);return dr!=null?dr[1]:null}for(;(_=B.exec(E))!=null;){var w=_[3]||"",d=_[4]!=null?_[4]:_[5]||"",c={id:_[1],style:_[2]||"",vertex:w.indexOf('vertex="1"')>=0,parent:g(w,"parent"),x:parseFloat(g(d,"x"))||0,y:parseFloat(g(d,"y"))||0,w:parseFloat(g(d,"width"))||0,h:parseFloat(g(d,"height"))||0};O[c.id]=c,C.push(c)}function o(j){for(var lr=j.x,dr=j.y,gr=O[j.parent],or=0;gr!=null&&gr.id!=="0"&&gr.id!=="1"&&or++<20;)lr+=gr.x,dr+=gr.y,gr=O[gr.parent];return{x:lr,y:dr}}for(var p=[],h=0;h<C.length;h++){var v=C[h];if(!(!v.vertex||v.w<=0||v.h<=0||v.style.indexOf("text;")===0||v.style.indexOf("connectable=0")>=0||v.style.indexOf("line;")===0)){var k=o(v),S=v.style.indexOf("shape=umlLifeline")>=0,Z=/(?:^|;)size=([0-9.]+)/.exec(v.style);p.push({id:v.id,x:k.x,y:k.y,w:v.w,h:v.h,style:v.style,lifeline:S,headSize:S&&Z!=null?parseFloat(Z[1]):v.h})}}var U=5;function vr(j,lr){for(var dr=null,gr=U+1,or=1/0,ar=0;ar<p.length;ar++){var u=p[ar];if(!(j<u.x-U||j>u.x+u.w+U||lr<u.y-U||lr>u.y+u.h+U)){if(u.lifeline&&lr>u.y+u.headSize+U){var z=Math.abs(j-(u.x+u.w/2));z<=U&&(z<gr||z===gr&&u.w*u.h<or)&&(dr=u,gr=z,or=u.w*u.h);continue}var N=u.lifeline?u.headSize:u.h,pe=Math.max(u.x-j,0,j-(u.x+u.w)),Hr=Math.max(u.y-lr,0,lr-(u.y+N)),jr=Math.abs(j-u.x),Zr=Math.abs(j-(u.x+u.w)),Pe=Math.abs(lr-u.y),Ae=Math.abs(lr-(u.y+N)),be=j>=u.x-U&&j<=u.x+u.w+U,Mr=lr>=u.y-U&&lr<=u.y+N+U,Pr=Math.min(Mr?jr:1/0,Mr?Zr:1/0,be?Pe:1/0,be?Ae:1/0);Pr=Math.max(Pr,Math.sqrt(pe*pe+Hr*Hr));var _e=u.w*u.h;Pr<=U&&(Pr<gr||Pr===gr&&_e<or)&&(dr=u,gr=Pr,or=_e)}}return dr}function G(j){return Math.round(Math.max(0,Math.min(1,j))*1e3)/1e3}function fr(j,lr,dr,gr){if(gr==null)return!1;var or=j.style||"",ar=or.indexOf("ellipse")===0||or.indexOf("shape=endState")>=0;if(!ar&&(or.indexOf("shape=")>=0||or.indexOf("rhombus")===0))return!1;var u=j.x+j.w/2,z=j.y+j.h/2,N=gr.x-u,pe=gr.y-z;if(N===0&&pe===0)return!1;var Hr,jr;if(ar){var Zr=1/Math.sqrt(Math.pow(2*N/j.w,2)+Math.pow(2*pe/j.h,2));Hr=u+N*Zr,jr=z+pe*Zr}else{var Pe=N!==0?j.w/2/Math.abs(N):1/0,Ae=pe!==0?j.h/2/Math.abs(pe):1/0,be=Math.min(Pe,Ae);Hr=u+N*be,jr=z+pe*be}return Math.abs(Hr-lr)<=2&&Math.abs(jr-dr)<=2}return E.replace(/<mxCell id="([^"]*)"( value="[^"]*")?( style="([^"]*)")([^>]*edge="1"[^>]*)>([\s\S]*?)<\/mxCell>/g,function(j,lr,dr,gr,or,ar,u){if(ar.indexOf(' source="')>=0||ar.indexOf(' target="')>=0)return j;var z=/<mxPoint x="([-0-9.]+)" y="([-0-9.]+)" as="sourcePoint"\/>/.exec(u),N=/<mxPoint x="([-0-9.]+)" y="([-0-9.]+)" as="targetPoint"\/>/.exec(u);if(z==null||N==null)return j;for(var pe=[],Hr=/<mxPoint x="([-0-9.]+)" y="([-0-9.]+)"\/>/g,jr;(jr=Hr.exec(u))!=null;)pe.push({x:parseFloat(jr[1]),y:parseFloat(jr[2])});var Zr=parseFloat(z[1]),Pe=parseFloat(z[2]),Ae=parseFloat(N[1]),be=parseFloat(N[2]),Mr=vr(Zr,Pe),Pr=vr(Ae,be);if(Mr==null&&Pr==null)return j;var _e="",Qt="";if(Mr!=null){Qt+=' source="'+Mr.id+'"';var _t=pe.length>0?pe[0]:Pr!=null?{x:Pr.x+Pr.w/2,y:Pr.y+Pr.h/2}:{x:Ae,y:be};fr(Mr,Zr,Pe,_t)||(_e+="exitX="+G((Zr-Mr.x)/Mr.w)+";exitY="+G((Pe-Mr.y)/Mr.h)+";exitDx=0;exitDy=0;")}if(Pr!=null&&!(Mr!=null&&Pr.id===Mr.id)){Qt+=' target="'+Pr.id+'"';var b=pe.length>0?pe[pe.length-1]:Mr!=null?{x:Mr.x+Mr.w/2,y:Mr.y+Mr.h/2}:{x:Zr,y:Pe};fr(Pr,Ae,be,b)||(_e+="entryX="+G((Ae-Pr.x)/Pr.w)+";entryY="+G((be-Pr.y)/Pr.h)+";entryDx=0;entryDy=0;")}return Qt===""?j:'<mxCell id="'+lr+'"'+(dr||"")+' style="'+or+_e+'"'+Qt+ar+">"+u+"</mxCell>"})}function R(E,O,C){if(E==null||E.indexOf("<mxCell")<0)return E;if(/@startgantt/i.test(O||"")){var B=4,_=function(v){return Math.round(parseFloat(v)/B*100)/100};E=E.replace(/<mx(Geometry|Point)([^>]*)/g,function(v,k,S){return"<mx"+k+S.replace(/\b(x|y|width|height)="(-?[0-9.]+)"/g,function(Z,U,vr){return U+'="'+_(vr)+'"'})}).replace(/(fontSize|strokeWidth|endSize|spacingLeft|spacingTop)=([0-9.]+)/g,function(v,k,S){return k+"="+_(S)})}E=E.replace(/<mxCell id="[^"]*" value="" style="text;fillColor=none;strokeColor=none;"[^>]*vertex="1"[^>]*>\s*<mxGeometry [^>]*width="0" height="0"[^>]*\/>\s*<\/mxCell>\n?/g,""),E=H(E),E=F(E);var g="plantuml-"+ ++nr,w=!1,d=E.replace(/<mxCell id="([^"]*)" value="([^"]*)" style="([^"]*)"([^>]*)>([\s\S]*?)<\/mxCell>/g,function(v,k,S,Z,U,vr){w=!0;var G=U.replace(' parent="1"',' parent="'+g+'"');return'<UserObject label="'+S+'" plantUmlId="'+k+'" plantUmlBaseStyle="'+Z+'" plantUmlBaseValue="'+S+'" id="'+k+'"><mxCell style="'+Z+'"'+G+">"+vr+"</mxCell></UserObject>"});if(!w)return E;var c=JSON.stringify({data:O,config:C||null},null,2),o='<UserObject label="" plantUmlData="'+qr(c)+'" id="'+g+'"><mxCell style="'+Or+`" vertex="1" connectable="0" parent="1"><mxGeometry x="0" y="0" width="0" height="0" as="geometry"/></mxCell></UserObject>-`,p='<mxCell id="1" parent="0"></mxCell>',h=d.indexOf(p);return h<0?E:d.slice(0,h+p.length)+`- `+o+d.slice(h+p.length)}return{groupStyle:Or,parseText:_r,wrapGroup:R}})();var Ti=(function(){function Or(b,$){$=$||{};var P=Wn.parse(b,$),x=Ci.buildXml(P,$);return _r(x,$)}function _r(b,$){$=$||{};var P=qr(b);return O(P),C(P,$)}function qr(b){for(var $=[],P=/<mxCell\b([^>]*?)(?:\/>|>([\s\S]*?)<\/mxCell>)/g,x;(x=P.exec(b))!==null;){var t=H(x[1]),e=x[2]||"",n=nr(e);$.push({id:t.id||"",parent:t.parent||"",value:R(t.value||""),style:t.style||"",vertex:t.vertex==="1",edge:t.edge==="1",source:t.source||"",target:t.target||"",geometry:n,absX:0,absY:0})}return $}function nr(b){var $=b.match(/<mxGeometry\b([^>]*)\/>/),P="";if(!$){if($=b.match(/<mxGeometry\b([^>]*)>([\s\S]*?)<\/mxGeometry>/),!$)return null;P=$[2]}var x=H($[1]),t={x:parseFloat(x.x)||0,y:parseFloat(x.y)||0,width:parseFloat(x.width)||0,height:parseFloat(x.height)||0,sourcePoint:null,targetPoint:null};if(P)for(var e=/<mxPoint\b([^>]*)\/>/g,n;(n=e.exec(P))!==null;){var l=H(n[1]),A={x:parseFloat(l.x)||0,y:parseFloat(l.y)||0};l.as==="sourcePoint"?t.sourcePoint=A:l.as==="targetPoint"&&(t.targetPoint=A)}return t}function H(b){for(var $={},P=/(\w[\w-]*)="([^"]*)"/g,x;(x=P.exec(b))!==null;)$[x[1]]=x[2];return $}function F(b){var $={};if(!b)return $;for(var P=b.split(";"),x=0;x<P.length;x++){var t=P[x].trim();if(t){var e=t.indexOf("=");e>0?$[t.slice(0,e).trim().toLowerCase()]=t.slice(e+1).trim():$.shape=t.toLowerCase()}}return $}function R(b){return String(b).replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/'/g,"'").replace(/&#(\d+);/g,function($,P){return String.fromCharCode(parseInt(P,10))}).replace(/&#x([0-9a-fA-F]+);/g,function($,P){return String.fromCharCode(parseInt(P,16))}).replace(/&/g,"&")}function E(b){return String(b).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function O(b){var $={};b.forEach(function(x){$[x.id]=x});function P(x){if(!x.geometry)return{x:0,y:0};for(var t=x.geometry.x,e=x.geometry.y,n=$[x.parent],l=0;n&&n.geometry&&n.id!=="0"&&n.id!=="1"&&l<20;)t+=n.geometry.x,e+=n.geometry.y,n=$[n.parent],l++;return{x:t,y:e}}b.forEach(function(x){if(x.geometry){var t=P(x);x.absX=t.x,x.absY=t.y}})}function C(b,$){var P=B(b),x=7,t=x-P.x,e=x-P.y,n=Math.max(1,Math.ceil(P.w+x*2)),l=Math.max(1,Math.ceil(P.h+x*2)),A=[];A.push('<?xml version="1.0" encoding="UTF-8" standalone="no"?>'),A.push('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+n+'" height="'+l+'" viewBox="0 0 '+n+" "+l+'" font-family="Helvetica, Arial, sans-serif">'),g={};var D=_(b),V=[];return D.forEach(function(Q){if(Q.edge){var yr=_e(Q,b,t,e);yr&&V.push(yr)}else Q.geometry&&(Q.vertex||Q.value)&&V.push(d(Q,t,e))}),A.push(w()),A=A.concat(V),A.push("</svg>"),A.join(`-`)}function B(b){var $=1/0,P=1/0,x=-1/0,t=-1/0;return b.forEach(function(e){if(e.geometry){if(e.vertex)e.absX<$&&($=e.absX),e.absY<P&&(P=e.absY),e.absX+e.geometry.width>x&&(x=e.absX+e.geometry.width),e.absY+e.geometry.height>t&&(t=e.absY+e.geometry.height);else if(e.edge){var n=e.geometry.sourcePoint,l=e.geometry.targetPoint;if([n,l].forEach(function(hr){hr&&(hr.x<$&&($=hr.x),hr.y<P&&(P=hr.y),hr.x>x&&(x=hr.x),hr.y>t&&(t=hr.y))}),e.value&&n&&l){var A=F(e.style),D=parseInt(A.fontsize||"12",10),V=e.geometry.x?(e.geometry.x+1)/2:.5,Q=n.x+(l.x-n.x)*V,yr=0;String(e.value).replace(/<br\s*\/?>/gi,`+`;D[i]=dr}}for(var i=0;i<K.length;i++)D[i]!=null?P=P.replace(K[i].all,D[i]):F[i]&&(P=P.replace(K[i].all,""));return P}function Tr(P){var J={},K=[],R=/<mxCell id="([^"]*)"(?: value="[^"]*")?(?: style="([^"]*)")?([^>]*)>\s*(?:<mxGeometry ([^>]*?)\/>|<mxGeometry ([^>]*?)>)/g,g;function y(E,z){var lr=new RegExp(z+'="([^"]*)"').exec(E);return lr!=null?lr[1]:null}for(;(g=R.exec(P))!=null;){var C=g[3]||"",s=g[4]!=null?g[4]:g[5]||"",i={id:g[1],style:g[2]||"",vertex:C.indexOf('vertex="1"')>=0,parent:y(C,"parent"),x:parseFloat(y(s,"x"))||0,y:parseFloat(y(s,"y"))||0,w:parseFloat(y(s,"width"))||0,h:parseFloat(y(s,"height"))||0};J[i.id]=i,K.push(i)}function k(E){for(var z=E.x,lr=E.y,rr=J[E.parent],W=0;rr!=null&&rr.id!=="0"&&rr.id!=="1"&&W++<20;)z+=rr.x,lr+=rr.y,rr=J[rr.parent];return{x:z,y:lr}}for(var F=[],D=0;D<K.length;D++){var T=K[D];if(!(!T.vertex||T.w<=0||T.h<=0||T.style.indexOf("text;")===0||T.style.indexOf("connectable=0")>=0||T.style.indexOf("line;")===0)){var M=k(T),V=T.style.indexOf("shape=umlLifeline")>=0,A=/(?:^|;)size=([0-9.]+)/.exec(T.style);F.push({id:T.id,x:M.x,y:M.y,w:T.w,h:T.h,style:T.style,lifeline:V,headSize:V&&A!=null?parseFloat(A[1]):T.h})}}var I=5;function $(E,z){for(var lr=null,rr=I+1,W=1/0,dr=0;dr<F.length;dr++){var or=F[dr];if(!(E<or.x-I||E>or.x+or.w+I||z<or.y-I||z>or.y+or.h+I)){if(or.lifeline&&z>or.y+or.headSize+I){var yr=Math.abs(E-(or.x+or.w/2));yr<=I&&(yr<rr||yr===rr&&or.w*or.h<W)&&(lr=or,rr=yr,W=or.w*or.h);continue}var pr=or.lifeline?or.headSize:or.h,Ur=Math.max(or.x-E,0,E-(or.x+or.w)),Pr=Math.max(or.y-z,0,z-(or.y+pr)),le=Math.abs(E-or.x),Pe=Math.abs(E-(or.x+or.w)),Te=Math.abs(z-or.y),Ir=Math.abs(z-(or.y+pr)),Er=E>=or.x-I&&E<=or.x+or.w+I,Kr=z>=or.y-I&&z<=or.y+pr+I,Xe=Math.min(Kr?le:1/0,Kr?Pe:1/0,Er?Te:1/0,Er?Ir:1/0);Xe=Math.max(Xe,Math.sqrt(Ur*Ur+Pr*Pr));var Be=or.w*or.h;Xe<=I&&(Xe<rr||Xe===rr&&Be<W)&&(lr=or,rr=Xe,W=Be)}}return lr}function c(E){return Math.round(Math.max(0,Math.min(1,E))*1e3)/1e3}function x(E,z,lr,rr){if(rr==null)return!1;var W=E.style||"",dr=W.indexOf("ellipse")===0||W.indexOf("shape=endState")>=0;if(!dr&&(W.indexOf("shape=")>=0||W.indexOf("rhombus")===0))return!1;var or=E.x+E.w/2,yr=E.y+E.h/2,pr=rr.x-or,Ur=rr.y-yr;if(pr===0&&Ur===0)return!1;var Pr,le;if(dr){var Pe=1/Math.sqrt(Math.pow(2*pr/E.w,2)+Math.pow(2*Ur/E.h,2));Pr=or+pr*Pe,le=yr+Ur*Pe}else{var Te=pr!==0?E.w/2/Math.abs(pr):1/0,Ir=Ur!==0?E.h/2/Math.abs(Ur):1/0,Er=Math.min(Te,Ir);Pr=or+pr*Er,le=yr+Ur*Er}return Math.abs(Pr-z)<=2&&Math.abs(le-lr)<=2}return P.replace(/<mxCell id="([^"]*)"( value="[^"]*")?( style="([^"]*)")([^>]*edge="1"[^>]*)>([\s\S]*?)<\/mxCell>/g,function(E,z,lr,rr,W,dr,or){if(dr.indexOf(' source="')>=0||dr.indexOf(' target="')>=0)return E;var yr=/<mxPoint x="([-0-9.]+)" y="([-0-9.]+)" as="sourcePoint"\/>/.exec(or),pr=/<mxPoint x="([-0-9.]+)" y="([-0-9.]+)" as="targetPoint"\/>/.exec(or);if(yr==null||pr==null)return E;for(var Ur=/ parent="([^"]*)"/.exec(dr),Pr=Ur!=null&&J[Ur[1]]!=null?k({x:0,y:0,parent:Ur[1]}):{x:0,y:0},le=[],Pe=/<mxPoint x="([-0-9.]+)" y="([-0-9.]+)"\/>/g,Te;(Te=Pe.exec(or))!=null;)le.push({x:parseFloat(Te[1])+Pr.x,y:parseFloat(Te[2])+Pr.y});var Ir=parseFloat(yr[1])+Pr.x,Er=parseFloat(yr[2])+Pr.y,Kr=parseFloat(pr[1])+Pr.x,Xe=parseFloat(pr[2])+Pr.y,Be=$(Ir,Er),ie=$(Kr,Xe);if(Be==null&&ie==null)return E;var Z="",oe="";if(Be!=null){oe+=' source="'+Be.id+'"';var ee=le.length>0?le[0]:ie!=null?{x:ie.x+ie.w/2,y:ie.y+ie.h/2}:{x:Kr,y:Xe};x(Be,Ir,Er,ee)||(Z+="exitX="+c((Ir-Be.x)/Be.w)+";exitY="+c((Er-Be.y)/Be.h)+";exitDx=0;exitDy=0;")}if(ie!=null&&!(Be!=null&&ie.id===Be.id)){oe+=' target="'+ie.id+'"';var Ko=le.length>0?le[le.length-1]:Be!=null?{x:Be.x+Be.w/2,y:Be.y+Be.h/2}:{x:Ir,y:Er};x(ie,Kr,Xe,Ko)||(Z+="entryX="+c((Kr-ie.x)/ie.w)+";entryY="+c((Xe-ie.y)/ie.h)+";entryDx=0;entryDy=0;")}return oe===""?E:'<mxCell id="'+z+'"'+(lr||"")+' style="'+W+Z+'"'+oe+dr+">"+or+"</mxCell>"})}function fr(P){return P.replace(/<mxCell id="([^"]*)"( value="([^"]*)")?( style="([^"]*)")([^>]*edge="1"[^>]*)>/g,function(J,K,R,g,y,C,s){function i(V){return new RegExp("(?:^|;)"+V+"=").test(C)}function k(V){var A=new RegExp("(?:^|;)"+V+"=([^;]*)").exec(C);return A!=null?A[1]:null}var F="",D=k("endArrow"),T=k("startArrow");D==null&&(F+="endArrow=classic;",D="classic"),i("curved")||(F+="curved=0;"),i("rounded")||(F+="rounded=0;");var M=i("endSize")||i("startSize");return D!=="none"&&!i("endSize")&&(F+="endSize=6;",M=!0),T!=null&&T!=="none"&&!i("startSize")&&(F+="startSize=6;",M=!0),M||(F+="endSize=6;"),i("fontSize")||(F+="fontSize=11;"),!i("sourcePerimeterSpacing")&&!i("targetPerimeterSpacing")&&(F+="sourcePerimeterSpacing=0;targetPerimeterSpacing=0;"),F===""?J:(C!==""&&C.charAt(C.length-1)!==";"&&(C+=";"),'<mxCell id="'+K+'"'+(R||"")+' style="'+C+F+'"'+s+">")})}function Ar(P,J,K){if(P==null||P.indexOf("<mxCell")<0)return P;P=P.replace(/<mxCell id="[^"]*" value="" style="text;fillColor=none;strokeColor=none;"[^>]*vertex="1"[^>]*>\s*<mxGeometry [^>]*width="0" height="0"[^>]*\/>\s*<\/mxCell>\n?/g,""),P=ae(P),P=Tr(P),P=fr(P);var R="plantuml-"+ ++vr,g=!1,y=P.replace(/<mxCell id="([^"]*)" value="([^"]*)" style="([^"]*)"([^>]*)>([\s\S]*?)<\/mxCell>/g,function(F,D,T,M,V,A){g=!0;var I=V.replace(' parent="1"',' parent="'+R+'"');return'<UserObject label="'+T+'" plantUmlId="'+D+'" plantUmlBaseStyle="'+M+'" plantUmlBaseValue="'+T+'" id="'+D+'"><mxCell style="'+M+'"'+I+">"+A+"</mxCell></UserObject>"});if(!g)return P;var C=JSON.stringify({data:J,config:K||null},null,2),s='<UserObject label="" plantUmlData="'+Wr(C)+'" id="'+R+'"><mxCell style="'+hr+`" vertex="1" connectable="0" parent="1"><mxGeometry x="0" y="0" width="0" height="0" as="geometry"/></mxCell></UserObject>+`,i='<mxCell id="1" parent="0"></mxCell>',k=y.indexOf(i);return k<0?P:y.slice(0,k+i.length)+`+ `+s+y.slice(k+i.length)}return{groupStyle:hr,parseText:G,wrapGroup:Ar}})();var Vs=(function(){function hr(_,O){O=O||{};var t=il.parse(_,O),o=Ss.buildXml(t,O);return G(o,O)}function G(_,O){O=O||{};var t=Wr(_);return P(t),J(t,O)}function Wr(_){for(var O=[],t=/<mxCell\b([^>]*?)(?:\/>|>([\s\S]*?)<\/mxCell>)/g,o;(o=t.exec(_))!==null;){var v=ae(o[1]),u=o[2]||"",l=vr(u);O.push({id:v.id||"",parent:v.parent||"",value:fr(v.value||""),style:v.style||"",vertex:v.vertex==="1",edge:v.edge==="1",source:v.source||"",target:v.target||"",geometry:l,absX:0,absY:0})}return O}function vr(_){var O=_.match(/<mxGeometry\b([^>]*)\/>/),t="";if(!O){if(O=_.match(/<mxGeometry\b([^>]*)>([\s\S]*?)<\/mxGeometry>/),!O)return null;t=O[2]}var o=ae(O[1]),v={x:parseFloat(o.x)||0,y:parseFloat(o.y)||0,width:parseFloat(o.width)||0,height:parseFloat(o.height)||0,sourcePoint:null,targetPoint:null,points:null};if(t)for(var u=/<mxPoint\b([^>]*)\/>/g,l,d=/<Array\s+as="points">([\s\S]*?)<\/Array>/.exec(t),b=d?d[1]:"";(l=u.exec(t))!==null;){var m=ae(l[1]),w={x:parseFloat(m.x)||0,y:parseFloat(m.y)||0};m.as==="sourcePoint"?v.sourcePoint=w:m.as==="targetPoint"?v.targetPoint=w:!m.as&&b.indexOf(l[0])>=0&&(v.points==null&&(v.points=[]),v.points.push(w))}return v}function ae(_){for(var O={},t=/(\w[\w-]*)="([^"]*)"/g,o;(o=t.exec(_))!==null;)O[o[1]]=o[2];return O}function Tr(_){var O={};if(!_)return O;for(var t=_.split(";"),o=0;o<t.length;o++){var v=t[o].trim();if(v){var u=v.indexOf("=");u>0?O[v.slice(0,u).trim().toLowerCase()]=v.slice(u+1).trim():O.shape=v.toLowerCase()}}return O}function fr(_){return String(_).replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/'/g,"'").replace(/&#(\d+);/g,function(O,t){return String.fromCharCode(parseInt(t,10))}).replace(/&#x([0-9a-fA-F]+);/g,function(O,t){return String.fromCharCode(parseInt(t,16))}).replace(/&/g,"&")}function Ar(_){return String(_).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function P(_){var O={};_.forEach(function(o){O[o.id]=o});function t(o){if(!o.geometry)return{x:0,y:0};for(var v=o.geometry.x,u=o.geometry.y,l=O[o.parent],d=0;l&&l.geometry&&l.id!=="0"&&l.id!=="1"&&d<20;)v+=l.geometry.x,u+=l.geometry.y,l=O[l.parent],d++;return{x:v,y:u}}_.forEach(function(o){if(o.geometry){var v=t(o);o.absX=v.x,o.absY=v.y}})}function J(_,O){var t=K(_),o=7,v=o-t.x,u=o-t.y,l=Math.max(1,Math.ceil(t.w+o*2)),d=Math.max(1,Math.ceil(t.h+o*2)),b=[];b.push('<?xml version="1.0" encoding="UTF-8" standalone="no"?>'),b.push('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+l+'" height="'+d+'" viewBox="0 0 '+l+" "+d+'" font-family="Helvetica, Arial, sans-serif">'),g={};var m=R(_),w=[];return m.forEach(function(S){if(S.edge){var tr=ee(S,_,v,u);tr&&w.push(tr)}else S.geometry&&(S.vertex||S.value)&&w.push(C(S,v,u))}),b.push(y()),b=b.concat(w),b.push("</svg>"),b.join(`+`)}function K(_){var O=1/0,t=1/0,o=-1/0,v=-1/0;return _.forEach(function(u){if(u.geometry){if(u.vertex){if(u.absX<O&&(O=u.absX),u.absY<t&&(t=u.absY),u.absX+u.geometry.width>o&&(o=u.absX+u.geometry.width),u.absY+u.geometry.height>v&&(v=u.absY+u.geometry.height),u.value){var l=Tr(u.style),d=(l.labelposition||"").toLowerCase();if(d==="left"||d==="right"){var b=parseInt(l.fontsize||"12",10),m=0;String(u.value).replace(/<br\s*\/?>/gi,`+`).replace(/<[^>]+>/g,"").split(`+`).forEach(function($e){var se=Kr($e,b,!1);se>m&&(m=se)}),d==="left"&&u.absX-m-8<O&&(O=u.absX-m-8),d==="right"&&u.absX+u.geometry.width+m+8>o&&(o=u.absX+u.geometry.width+m+8)}}}else if(u.edge){var w=u.geometry.sourcePoint,S=u.geometry.targetPoint,tr=[w,S];if(u.geometry.points&&(tr=tr.concat(u.geometry.points)),tr.forEach(function($e){$e&&($e.x<O&&(O=$e.x),$e.y<t&&(t=$e.y),$e.x>o&&(o=$e.x),$e.y>v&&(v=$e.y))}),u.value&&w&&S){var ir=Tr(u.style),Nr=parseInt(ir.fontsize||"12",10),xr=u.geometry.x?(u.geometry.x+1)/2:.5,Ve=w.x+(S.x-w.x)*xr,qr=0;String(u.value).replace(/<br\s*\/?>/gi,``).replace(/<[^>]+>/g,"").split(`-`).forEach(function(hr){var ye=Pe(hr,D,!1);ye>yr&&(yr=ye)}),Q-yr/2<$&&($=Q-yr/2),Q+yr/2>x&&(x=Q+yr/2)}}}}),$===1/0?{x:0,y:0,w:100,h:60}:{x:$,y:P,w:x-$,h:t-P}}function _(b){var $={},P={},x=[],t=[];b.forEach(function(l){$[l.id]=l}),b.forEach(function(l){l.parent!=null&&$[l.parent]?(P[l.parent]=P[l.parent]||[]).push(l):x.push(l)});function e(l,A){if(!(A>20)){t.push(l);for(var D=P[l.id]||[],V=0;V<D.length;V++)e(D[V],A+1)}}for(var n=0;n<x.length;n++)e(x[n],0);return t}var g={};function w(){var b=["<defs>"];for(var $ in g)if(g.hasOwnProperty($)){var P=g[$],x=P.color,t,e=11,n=10,l=9,A=4;switch(P.shape){case"halfcircle":n=16,A=8,t='<path d="M9,0 A8,8 0 0 0 9,16" fill="none" stroke="'+x+'"/>';break;case"classic":t='<path d="M0,0 L10,4 L0,8 L4,4 z" fill="'+x+'"/>';break;case"open":t='<path d="M0,0 L10,4 L0,8" fill="none" stroke="'+x+'"/>';break;case"blockfilled":t='<path d="M0,0 L10,4 L0,8 z" fill="'+x+'"/>';break;case"blockhollow":t='<path d="M0.5,0.5 L9.5,4 L0.5,7.5 z" fill="#FFFFFF" stroke="'+x+'"/>';break;case"diamondfilled":e=14,l=12,t='<path d="M0,4 L6,0 L12,4 L6,8 z" fill="'+x+'"/>';break;case"diamondhollow":e=14,l=12,t='<path d="M0.5,4 L6,0.5 L11.5,4 L6,7.5 z" fill="#FFFFFF" stroke="'+x+'"/>';break;case"oval":e=9,l=7,t='<circle cx="4.5" cy="4" r="3.5" fill="'+x+'"/>';break;case"cross":e=10,l=8,t='<path d="M1,0.5 L8,7.5 M1,7.5 L8,0.5" fill="none" stroke="'+x+'" stroke-width="1.5"/>';break;case"halftop":t='<path d="M0,0 L10,4 L0,4 z" fill="'+x+'"/>';break;case"halfbottom":t='<path d="M0,4 L10,4 L0,8 z" fill="'+x+'"/>';break;case"erone":e=12,l=10,t='<path d="M5,0 L5,8" fill="none" stroke="'+x+'"/>';break;case"ermandone":e=12,l=10,t='<path d="M3,0 L3,8 M7,0 L7,8" fill="none" stroke="'+x+'"/>';break;case"ermany":e=12,l=10,t='<path d="M0,4 L10,0 M0,4 L10,8 M0,4 L10,4" fill="none" stroke="'+x+'"/>';break;case"eronetomany":e=16,l=14,t='<path d="M2,0 L2,8 M4,4 L14,0 M4,4 L14,8 M4,4 L14,4" fill="none" stroke="'+x+'"/>';break;case"erzerotoone":e=16,l=14,t='<circle cx="4" cy="4" r="3" fill="#FFFFFF" stroke="'+x+'"/><path d="M10,0 L10,8" fill="none" stroke="'+x+'"/>';break;case"erzerotomany":e=18,l=16,t='<circle cx="4" cy="4" r="3" fill="#FFFFFF" stroke="'+x+'"/><path d="M8,4 L17,0 M8,4 L17,8 M8,4 L17,4" fill="none" stroke="'+x+'"/>';break;default:t='<path d="M0,0 L10,4 L0,8 L4,4 z" fill="'+x+'"/>'}P.scale&&P.scale!==1&&(t='<g transform="scale('+P.scale+')">'+t+"</g>",e=e*P.scale,l=l*P.scale,A=A*P.scale),P.start&&(t='<g transform="translate('+e+',0) scale(-1,1)">'+t+"</g>",l=e-l),b.push('<marker id="'+P.id+'" markerWidth="'+e+'" markerHeight="'+n*(P.scale||1)+'" refX="'+l+'" refY="'+A+'" orient="auto" markerUnits="userSpaceOnUse">'+t+"</marker>")}return b.push("</defs>"),b.join("")}function d(b,$,P){var x=F(b.style),t=(x.shape||"rectangle").toLowerCase(),e=b.absX+$,n=b.absY+P,l=b.geometry.width,A=b.geometry.height,D=c(x),V=x.strokecolor||"#000000",Q=x.strokewidth||"1",yr=x.dashed==="1",hr="";switch(t){case"ellipse":hr=v(e,n,l,A,D,V,Q,yr);break;case"umlactor":hr=k(e,n,l,A,D,V);break;case"swimlane":hr=S(e,n,l,A,D,V,x);break;case"note":hr=Z(e,n,l,A,D,V);break;case"hexagon":hr=G(U(e,n,l,A),D,V,Q,yr);break;case"triangle":{var ye=(x.direction||"east").toLowerCase(),ae;ye==="north"?ae=[[e+l/2,n],[e+l,n+A],[e,n+A]]:ye==="south"?ae=[[e,n],[e+l,n],[e+l/2,n+A]]:ye==="west"?ae=[[e+l,n],[e+l,n+A],[e,n+A/2]]:ae=[[e,n],[e+l,n+A/2],[e,n+A]],hr=G(ae,D,V,Q,yr);break}case"umllifeline":{var We=Math.max(0,Math.min(A,parseFloat(x.size)||40)),ze=x.lifelinemirror==="1",Na=ze?n+A-We:n+A,zr=h(e,n,l,We,D,V,Q,x);n+We<Na&&(zr+='<line x1="'+(e+l/2)+'" y1="'+(n+We)+'" x2="'+(e+l/2)+'" y2="'+Na+'" stroke="'+V+'" stroke-width="'+Q+'" stroke-dasharray="5 5"/>'),ze&&(zr+=h(e,n+A-We,l,We,D,V,Q,x)),hr=zr;break}case"table":hr=h(e,n,l,A,D,V,Q,x);break;case"tablerow":{var ea="";D!=="none"&&(ea+='<rect x="'+e+'" y="'+n+'" width="'+l+'" height="'+A+'" fill="'+D+'" stroke="none"/>'),b.geometry.y>0&&(ea+='<line x1="'+e+'" y1="'+n+'" x2="'+(e+l)+'" y2="'+n+'" stroke="'+V+'" stroke-width="1"/>'),hr=ea;break}case"partialrectangle":{for(var Qe=D!=="none"?'<rect x="'+e+'" y="'+n+'" width="'+l+'" height="'+A+'" fill="'+D+'" stroke="none"/>':"",ve=[["top",e,n,e+l,n],["bottom",e,n+A,e+l,n+A],["left",e,n,e,n+A],["right",e+l,n,e+l,n+A]],De=0;De<ve.length;De++)x[ve[De][0]]!=="0"&&x[ve[De][0]]!=null&&(Qe+='<line x1="'+ve[De][1]+'" y1="'+ve[De][2]+'" x2="'+ve[De][3]+'" y2="'+ve[De][4]+'" stroke="'+V+'" stroke-width="'+Q+'"/>');hr=Qe;break}case"rhombus":hr=G([[e+l/2,n],[e+l,n+A/2],[e+l/2,n+A],[e,n+A/2]],D,V,Q,yr);break;case"cylinder":hr=fr(e,n,l,A,D,V);break;case"cloud":hr=ar(e,n,l,A,D,V);break;case"cube":hr=j(e,n,l,A,D,V,Q);break;case"umlboundary":hr=lr(e,n,l,A,D,V);break;case"umlcontrol":hr=dr(e,n,l,A,D,V);break;case"umlentity":hr=gr(e,n,l,A,D,V);break;case"cylinder3":hr=x.direction==="east"?or(e,n,l,A,D,V):fr(e,n,l,A,D,V);break;case"endstate":hr=u(e,n,l,A,V);break;case"doublecircle":hr=z(e,n,l,A,D,V);break;case"component":hr=N(e,n,l,A,D,V);break;case"card":hr=pe(e,n,l,A,D,V);break;case"process":hr=G(vr(e,n,l,A),D,V,Q,yr);break;case"queue":hr=Hr(e,n,l,A,D,V);break;case"cross":hr=jr(e,n,l,A,V);break;case"line":hr=Zr(e,n,l,A,V,Q);break;case"text":hr=D!=="none"||x.strokecolor&&x.strokecolor!=="none"?h(e,n,l,A,D,x.strokecolor&&x.strokecolor!=="none"?x.strokecolor:"none",Q,x):"";break;case"rectangle":default:hr=h(e,n,l,A,D,V,Q,x);break}var Ka=t==="umllifeline"?Math.max(0,Math.min(A,parseFloat(x.size)||40)):A,Ya=be(b.value,e,n,l,Ka,x,t);return t==="umllifeline"&&x.lifelinemirror==="1"&&(Ya+=be(b.value,e,n+A-Ka,l,Ka,x,t)),hr+(Ya?`-`+Ya:"")}function c(b){var $=b.fillcolor;return!$||$==="none"?"none":$}function o(b){var $="";for(var P in b)b[P]!==""&&b[P]!==null&&b[P]!==void 0&&($+=" "+P+'="'+b[P]+'"');return $}function p(b,$){if(!b)return"";var P=$?String($).replace(/\s+/g,","):"5,5";return' stroke-dasharray="'+P+'"'}function h(b,$,P,x,t,e,n,l){var A=0;l.rounded==="1"&&(A=l.absolutearcsize==="1"&&l.arcsize?parseFloat(l.arcsize)/2:l.arcsize?Math.min(P,x)*parseFloat(l.arcsize)/100:10);var D=l.dashed==="1";return'<rect x="'+b+'" y="'+$+'" width="'+P+'" height="'+x+'" rx="'+A+'" ry="'+A+'" fill="'+t+'" stroke="'+e+'" stroke-width="'+n+'"'+p(D,l.dashpattern)+"/>"}function v(b,$,P,x,t,e,n,l){var A=b+P/2,D=$+x/2,V=P/2,Q=x/2;return'<ellipse cx="'+A+'" cy="'+D+'" rx="'+V+'" ry="'+Q+'" fill="'+t+'" stroke="'+e+'" stroke-width="'+n+'"'+p(l)+"/>"}function k(b,$,P,x,t,e){var n=b+P/2,l=Math.min(P,x)*.12,A=$+l+2,D=A+l,V=$+x*.7,Q=D+(V-D)*.2,yr=b+P*.15,hr=b+P*.85,ye=b+P*.28,ae=b+P*.72,We=$+x-2,ze=t==="none"?"#FFFFFF":t;return'<g fill="'+ze+'" stroke="'+e+'" stroke-width="1"><circle cx="'+n+'" cy="'+A+'" r="'+l+'"/><line x1="'+n+'" y1="'+D+'" x2="'+n+'" y2="'+V+'"/><line x1="'+yr+'" y1="'+Q+'" x2="'+hr+'" y2="'+Q+'"/><line x1="'+n+'" y1="'+V+'" x2="'+ye+'" y2="'+We+'"/><line x1="'+n+'" y1="'+V+'" x2="'+ae+'" y2="'+We+'"/></g>'}function S(b,$,P,x,t,e,n){var l=parseFloat(n.startsize)||20,A=t==="none"?"#FFFFFF":t,D=n.swimlanefillcolor?n.swimlanefillcolor==="none"?"#FFFFFF":n.swimlanefillcolor:A,V=n.rounded==="0"?0:n.absolutearcsize==="1"&&n.arcsize?parseFloat(n.arcsize)/2:2.5,Q=p(n.dashed==="1",n.dashpattern),yr="";return D!==A&&l>0&&(yr='<path d="M'+b+","+($+l)+" L"+b+","+($+V)+" Q"+b+","+$+" "+(b+V)+","+$+" L"+(b+P-V)+","+$+" Q"+(b+P)+","+$+" "+(b+P)+","+($+V)+" L"+(b+P)+","+($+l)+' Z" fill="'+A+'" stroke="none"/>'),'<g><rect x="'+b+'" y="'+$+'" width="'+P+'" height="'+x+'" rx="'+V+'" ry="'+V+'" fill="'+D+'" stroke="none"/>'+yr+'<rect x="'+b+'" y="'+$+'" width="'+P+'" height="'+x+'" rx="'+V+'" ry="'+V+'" fill="none" stroke="'+e+'"'+Q+'/><line x1="'+b+'" y1="'+($+l)+'" x2="'+(b+P)+'" y2="'+($+l)+'" stroke="'+e+'"'+Q+"/></g>"}function Z(b,$,P,x,t,e){var n=Math.min(14,Math.min(P,x)*.2),l="M"+b+","+$+" L"+(b+P-n)+","+$+" L"+(b+P)+","+($+n)+" L"+(b+P)+","+($+x)+" L"+b+","+($+x)+" Z",A="M"+(b+P-n)+","+$+" L"+(b+P-n)+","+($+n)+" L"+(b+P)+","+($+n);return'<g fill="'+t+'" stroke="'+e+'" stroke-width="1"><path d="'+l+'"/><path d="'+A+'" fill="none"/></g>'}function U(b,$,P,x){var t=Math.min(P*.2,x*.5);return[[b+t,$],[b+P-t,$],[b+P,$+x/2],[b+P-t,$+x],[b+t,$+x],[b,$+x/2]]}function vr(b,$,P,x){var t=Math.min(P*.15,20);return[[b,$],[b+P,$],[b+P-t,$+x/2],[b+P,$+x],[b,$+x],[b+t,$+x/2]]}function G(b,$,P,x,t){var e=b.map(function(n){return n[0]+","+n[1]}).join(" ");return'<polygon points="'+e+'" fill="'+$+'" stroke="'+P+'" stroke-width="'+x+'"'+p(t)+"/>"}function fr(b,$,P,x,t,e){var n=Math.min(x*.1,12),l='<ellipse cx="'+(b+P/2)+'" cy="'+($+n)+'" rx="'+P/2+'" ry="'+n+'" fill="'+t+'" stroke="'+e+'"/>',A='<path d="M'+b+","+($+n)+" L"+b+","+($+x-n)+" A"+P/2+","+n+" 0 0 0 "+(b+P)+","+($+x-n)+" L"+(b+P)+","+($+n)+'" fill="'+t+'" stroke="'+e+'"/>';return"<g>"+A+l+"</g>"}function j(b,$,P,x,t,e,n){var l=Math.min(10,Math.min(P,x)/5),A="M"+b+","+($+l)+" L"+(b+l)+","+$+" L"+(b+P)+","+$+" L"+(b+P)+","+($+x-l)+" L"+(b+P-l)+","+($+x)+" L"+b+","+($+x)+" Z",D="M"+b+","+($+l)+" L"+(b+P-l)+","+($+l)+" L"+(b+P)+","+$+" M"+(b+P-l)+","+($+l)+" L"+(b+P-l)+","+($+x);return'<path d="'+A+'" fill="'+t+'" stroke="'+e+'" stroke-width="'+n+'"/><path d="'+D+'" fill="none" stroke="'+e+'" stroke-width="'+n+'"/>'}function lr(b,$,P,x,t,e){var n=x/2,l=b+P-n,A=$+n;return'<g stroke="'+e+'" fill="none"><circle cx="'+l+'" cy="'+A+'" r="'+n+'" fill="'+t+'"/><line x1="'+b+'" y1="'+($+x*.15)+'" x2="'+b+'" y2="'+($+x*.85)+'"/><line x1="'+b+'" y1="'+A+'" x2="'+(l-n)+'" y2="'+A+'"/></g>'}function dr(b,$,P,x,t,e){var n=b+P/2,l=x/2-2,A=$+2+l;return'<g stroke="'+e+'" fill="none"><circle cx="'+n+'" cy="'+A+'" r="'+l+'" fill="'+t+'"/><path d="M'+(n+6)+","+($-2)+" L"+n+","+($+2)+" L"+(n+6)+","+($+6)+'"/></g>'}function gr(b,$,P,x,t,e){var n=b+P/2,l=(x-4)/2;return'<g stroke="'+e+'"><circle cx="'+n+'" cy="'+($+l)+'" r="'+l+'" fill="'+t+'"/><line x1="'+(n-l)+'" y1="'+($+x)+'" x2="'+(n+l)+'" y2="'+($+x)+'"/></g>'}function or(b,$,P,x,t,e){var n=Math.min(P*.15,10),l=x/2;return'<g stroke="'+e+'" fill="'+t+'"><path d="M'+(b+n)+","+$+" L"+(b+P-n)+","+$+" A"+n+","+l+" 0 0 1 "+(b+P-n)+","+($+x)+" L"+(b+n)+","+($+x)+" A"+n+","+l+" 0 0 1 "+(b+n)+","+$+' Z"/><ellipse cx="'+(b+n)+'" cy="'+($+l)+'" rx="'+n+'" ry="'+l+'"/></g>'}function ar(b,$,P,x,t,e){if(P>110||x>95){let zr=function(ea,Qe,ve,De,Ka,Ya){for(var Jt=ve-ea,Ce=De-Qe,La=Math.sqrt(Jt*Jt+Ce*Ce),Ft=Math.max(1,Math.round(La/l)),Ia=0;Ia<Ft;Ia++)n.push({x:ea+Jt*Ia/Ft,y:Qe+Ce*Ia/Ft,nx:Ka,ny:Ya})};var n=[],l=26,A=9;zr(b,$,b+P,$,0,-1),zr(b+P,$,b+P,$+x,1,0),zr(b+P,$+x,b,$+x,0,1),zr(b,$+x,b,$,-1,0);for(var D=function(ea){return Math.round(ea*10)/10},V="M"+D(n[0].x)+","+D(n[0].y),Q=1;Q<=n.length;Q++){var yr=n[Q-1],hr=n[Q%n.length],ye=(yr.x+hr.x)/2+yr.nx*A,ae=(yr.y+hr.y)/2+yr.ny*A;V+=" Q"+D(ye)+","+D(ae)+" "+D(hr.x)+","+D(hr.y)}return'<path d="'+V+' Z" fill="'+t+'" stroke="'+e+'"/>'}var We=b+P/2,ze=$+x/2,Na="M"+(b+P*.2)+","+($+x*.55)+" C"+(b+P*0)+","+($+x*.3)+" "+(b+P*.2)+","+($+x*.1)+" "+(b+P*.35)+","+($+x*.2)+" C"+(b+P*.4)+","+($+x*0)+" "+(b+P*.65)+","+($+x*0)+" "+(b+P*.7)+","+($+x*.2)+" C"+(b+P*.9)+","+($+x*.1)+" "+(b+P*1)+","+($+x*.5)+" "+(b+P*.8)+","+($+x*.6)+" C"+(b+P*.95)+","+($+x*.85)+" "+(b+P*.7)+","+($+x*1)+" "+(b+P*.55)+","+($+x*.85)+" C"+(b+P*.4)+","+($+x*1)+" "+(b+P*.1)+","+($+x*.95)+" "+(b+P*.2)+","+($+x*.55)+" Z";return'<path d="'+Na+'" fill="'+t+'" stroke="'+e+'"/>'}function u(b,$,P,x,t){var e=b+P/2,n=$+x/2,l=Math.min(P,x)/2,A=l*.5;return'<g><circle cx="'+e+'" cy="'+n+'" r="'+l+'" fill="#FFFFFF" stroke="'+t+'"/><circle cx="'+e+'" cy="'+n+'" r="'+A+'" fill="'+t+'" stroke="none"/></g>'}function z(b,$,P,x,t,e){var n=b+P/2,l=$+x/2,A=Math.min(P,x)/2,D=A-4;return'<g><circle cx="'+n+'" cy="'+l+'" r="'+A+'" fill="'+t+'" stroke="'+e+'"/><circle cx="'+n+'" cy="'+l+'" r="'+D+'" fill="none" stroke="'+e+'"/></g>'}function N(b,$,P,x,t,e){var n=12,l=10,A=$+x*.25-l/2,D=$+x*.75-l/2,V=t==="none"?"#FFFFFF":t;return'<g><rect x="'+b+'" y="'+$+'" width="'+P+'" height="'+x+'" fill="'+V+'" stroke="'+e+'"/><rect x="'+(b-n/2)+'" y="'+A+'" width="'+n+'" height="'+l+'" fill="'+V+'" stroke="'+e+'"/><rect x="'+(b-n/2)+'" y="'+D+'" width="'+n+'" height="'+l+'" fill="'+V+'" stroke="'+e+'"/></g>'}function pe(b,$,P,x,t,e){var n=Math.min(P,x)*.15,l="M"+(b+n)+","+$+" L"+(b+P)+","+$+" L"+(b+P)+","+($+x)+" L"+b+","+($+x)+" L"+b+","+($+n)+" Z";return'<path d="'+l+'" fill="'+t+'" stroke="'+e+'"/>'}function Hr(b,$,P,x,t,e){var n=Math.min(P*.1,14);return'<g><rect x="'+b+'" y="'+$+'" width="'+P+'" height="'+x+'" fill="'+t+'" stroke="'+e+'"/><line x1="'+(b+P-n)+'" y1="'+$+'" x2="'+(b+P-n)+'" y2="'+($+x)+'" stroke="'+e+'"/></g>'}function jr(b,$,P,x,t){var e=b+P/2,n=$+x/2,l=Math.min(P,x)/2;return'<g stroke="'+t+'" stroke-width="2"><line x1="'+(e-l)+'" y1="'+(n-l)+'" x2="'+(e+l)+'" y2="'+(n+l)+'"/><line x1="'+(e-l)+'" y1="'+(n+l)+'" x2="'+(e+l)+'" y2="'+(n-l)+'"/></g>'}function Zr(b,$,P,x,t,e){var n=$+x/2;return'<line x1="'+b+'" y1="'+n+'" x2="'+(b+P)+'" y2="'+n+'" stroke="'+t+'" stroke-width="'+e+'"/>'}function Pe(b,$,P){for(var x=String(b??""),t=0,e=0;e<x.length;e++){var n=x.charAt(e);`iIljtfr.,:;!|'"()[]{} `.indexOf(n)>=0?t+=4.2:"mwMW".indexOf(n)>=0?t+=11.7:t+=7.8}return t*($/14)*(P?1.08:1)}function Ae(b,$){if(!b.text||Pe(b.text,b.size,b.bold)<=$)return[b];for(var P=b.text.split(/\s+/),x=[],t="",e=0;e<P.length;e++){var n=t?t+" "+P[e]:P[e];t&&Pe(n,b.size,b.bold)>$?(x.push({text:t,size:b.size,bold:b.bold,italic:b.italic}),t=P[e]):t=n}return t&&x.push({text:t,size:b.size,bold:b.bold,italic:b.italic}),x.length?x:[b]}function be(b,$,P,x,t,e,n){if(!b)return"";var l=parseInt(e.fontsize||"12",10),A=e.fontcolor||"#000000",D=e.fontstyle||"",V=D&1||D==="1"||D==="3"||D==="5"||D==="7",Q=D&2||D==="2"||D==="3"||D==="6"||D==="7",yr=Pr(b,l,V,Q);if(yr.length===0)return"";var hr=(e.align||"center").toLowerCase(),ye=(e.verticalalign||"middle").toLowerCase(),ae=parseFloat(e.spacingleft)||0,We=parseFloat(e.spacingtop)||0,ze=hr==="left"?"start":hr==="right"?"end":"middle",Na=hr==="left"?$+4+ae:hr==="right"?$+x-4:$+x/2+ae/2;if(n==="swimlane"){for(var zr=parseFloat(e.startsize)||20,ea=0,Qe=0;Qe<yr.length;Qe++)ea+=yr[Qe].size*1.33;var ve=P+zr/2-ea/2+yr[0].size,De=[];for(Qe=0;Qe<yr.length;Qe++)yr[Qe].text&&De.push(Mr(Na,ve,yr[Qe].text,yr[Qe].size,A,yr[Qe].bold,yr[Qe].italic,ze,e.fontfamily)),ve+=yr[Qe].size*1.33;return De.join("")}if(e.whitespace==="wrap"){for(var Ka=Math.max(20,x-8-ae),Ya=[],Jt=0;Jt<yr.length;Jt++)for(var Ce=Ae(yr[Jt],Ka),La=0;La<Ce.length;La++)Ya.push(Ce[La]);yr=Ya}for(var Ft=yr[0].size*1.33,Ia=1;Ia<yr.length;Ia++)Ft+=yr[Ia].size*1.33;var Za,Sn=(e.verticallabelposition||"").toLowerCase();Sn==="bottom"?Za=P+t+yr[0].size+2:Sn==="top"?Za=P-Ft+yr[0].size-2:ye==="top"?Za=P+We+yr[0].size+2:ye==="bottom"?Za=P+t-Ft+yr[0].size:Za=P+We+t/2-Ft/2+yr[0].size;for(var _a=[],hn=0;hn<yr.length;hn++)yr[hn].text&&_a.push(Mr(Na,Za,yr[hn].text,yr[hn].size,A,yr[hn].bold,yr[hn].italic,ze,e.fontfamily)),Za+=(hn+1<yr.length?yr[hn+1].size:yr[hn].size)*1.33;return _a.join(`-`)}function Mr(b,$,P,x,t,e,n,l,A){var D=' x="'+b+'" y="'+$+'" font-size="'+x+'" fill="'+t+'" text-anchor="'+l+'"';return e&&(D+=' font-weight="bold"'),n&&(D+=' font-style="italic"'),A&&(D+=' font-family="'+E(A)+'"'),"<text"+D+">"+E(P)+"</text>"}function Pr(b,$,P,x){if(b==null)return[];var t=String(b);t=t.replace(/<br\s*\/?>/gi,`-`);for(var e=t.split(/\r?\n/),n=[],l=0;l<e.length;l++){var A=e[l],D=$||12,V=A.match(/font-size\s*:\s*(\d+(?:\.\d+)?)px/i);V&&(D=parseFloat(V[1]));var Q=!!P||/<b>|font-weight\s*:\s*bold/i.test(A),yr=!!x||/<i>|font-style\s*:\s*italic/i.test(A),hr=R(A.replace(/<[^>]+>/g,"")).replace(/^\s+|\s+$/g,"");n.push({text:hr,size:D,bold:Q,italic:yr})}for(;n.length&&!n[n.length-1].text;)n.pop();for(;n.length&&!n[0].text;)n.shift();return n}function _e(b,$,P,x){var t=F(b.style),e={};$.forEach(function(zl){e[zl.id]=zl});var n,l,A=e[b.source],D=e[b.target];if(b.geometry&&b.geometry.sourcePoint&&b.geometry.targetPoint)n=b.geometry.sourcePoint,l=b.geometry.targetPoint;else if(A&&D&&A.geometry&&D.geometry){var V={x:A.absX+A.geometry.width/2,y:A.absY+A.geometry.height/2},Q={x:D.absX+D.geometry.width/2,y:D.absY+D.geometry.height/2};n=t.exitx!=null&&t.exity!=null?{x:A.absX+A.geometry.width*parseFloat(t.exitx),y:A.absY+A.geometry.height*parseFloat(t.exity)}:_t(A,V,Q),l=t.entryx!=null&&t.entryy!=null?{x:D.absX+D.geometry.width*parseFloat(t.entryx),y:D.absY+D.geometry.height*parseFloat(t.entryy)}:_t(D,Q,V)}else return"";var yr=n.x+P,hr=n.y+x,ye=l.x+P,ae=l.y+x,We=t.strokecolor||"#000000",ze=t.strokewidth||"1",Na=t.dashed==="1",zr=(t.endarrow||"classic").toLowerCase();(t.endhalf==="top"||t.endhalf==="bottom")&&(zr="half"+t.endhalf);var ea=(t.startarrow||"none").toLowerCase(),Qe=t.endfill,ve=Qt(zr,Qe,We,!1,t.endsize,ze),De=Qt(ea,t.startfill,We,!0,t.startsize,ze),Ka;if((t.shape||"").toLowerCase()==="arrow"){var Ya=(parseFloat(t.width)||12)/2,Jt=(parseFloat(t.endwidth)||1)/2,Ce=Math.sqrt((ye-yr)*(ye-yr)+(ae-hr)*(ae-hr))||1,La=-(ae-hr)/Ce,Ft=(ye-yr)/Ce,Ia=t.fillcolor&&t.fillcolor!=="none"?t.fillcolor:We;Ka='<path d="M'+(yr+La*Ya)+","+(hr+Ft*Ya)+" L"+(ye+La*Jt)+","+(ae+Ft*Jt)+" L"+(ye-La*Jt)+","+(ae-Ft*Jt)+" L"+(yr-La*Ya)+","+(hr-Ft*Ya)+' Z" fill="'+Ia+'" stroke="'+We+'" stroke-width="'+ze+'"/>'}else if(t.curved==="1"){var Za=yr+(ye-yr)/2;Ka='<path d="M'+yr+","+hr+" C"+Za+","+hr+" "+Za+","+ae+" "+ye+","+ae+'" fill="none" stroke="'+We+'" stroke-width="'+ze+'"'+p(Na,t.dashpattern)+(ve?' marker-end="'+ve+'"':"")+(De?' marker-start="'+De+'"':"")+"/>"}else Ka='<line x1="'+yr+'" y1="'+hr+'" x2="'+ye+'" y2="'+ae+'" stroke="'+We+'" stroke-width="'+ze+'"'+p(Na,t.dashpattern)+(ve?' marker-end="'+ve+'"':"")+(De?' marker-start="'+De+'"':"")+"/>";var Sn="";if(b.value){var _a=parseInt(t.fontsize||"12",10),hn=t.fontstyle||"",Qn=hn==="1"||hn==="3"||hn==="5"||hn==="7",Xa=Pr(b.value,_a,Qn,!1);if(Xa.length>0){var fl=b.geometry&&b.geometry.x?(b.geometry.x+1)/2:.5,ma=yr+(ye-yr)*fl,Ln=b.geometry&&b.geometry.y||0,Tn=0,kn=0;if(Ln){var Nn=Math.sqrt((ye-yr)*(ye-yr)+(ae-hr)*(ae-hr))||1;Tn=-(ae-hr)/Nn*Ln,kn=(ye-yr)/Nn*Ln}ma+=Tn;var yn=t.fontcolor||"#000000",Oa=t.labelbackgroundcolor,Un=[],vl=_a*1.25,al=(hr+ae)/2-4-(Xa.length-1)*vl+kn;if(Oa&&Oa!=="none"){for(var xn=0,ul=0;ul<Xa.length;ul++){var Sl=Pe(Xa[ul].text,Xa[ul].size,Xa[ul].bold);Sl>xn&&(xn=Sl)}xn+=4;var Pn=vl*Xa.length;Un.push('<rect x="'+(ma-xn/2)+'" y="'+(al-_a)+'" width="'+xn+'" height="'+Pn+'" fill="'+Oa+'" stroke="none"/>')}for(var hl=0;hl<Xa.length;hl++)Un.push(Mr(ma,al+hl*vl,Xa[hl].text,Xa[hl].size,yn,Xa[hl].bold,Xa[hl].italic,"middle",t.fontfamily));Sn=`-`+Un.join(`-`)}}return Ka+Sn}function Qt(b,$,P,x,t,e){if(!b||b==="none")return"";var n;b==="block"?n=$==="1"?"blockfilled":"blockhollow":b==="open"||b==="openthin"?n="open":b==="halfcircle"?n="halfcircle":b==="diamond"||b==="diamondthin"?n=$==="1"?"diamondfilled":"diamondhollow":b==="oval"||b==="circle"?n="oval":b==="cross"?n="cross":b==="halftop"||b==="halfbottom"||b==="erone"||b==="ermandone"||b==="ermany"||b==="eronetomany"||b==="erzerotoone"||b==="erzerotomany"?n=b:b==="triangle"?n="blockhollow":n="classic";var l=P||"#000000",A=(t?parseFloat(t):6)+(parseFloat(e)||1)+2,D=Math.max(.3,A/10),V=n+"-"+l.replace(/[^0-9a-zA-Z]/g,"")+(x?"-s":"")+(D!==1?"-z"+Math.round(D*100):"");return g[V]||(g[V]={id:"ah-"+V,shape:n,color:l,start:!!x,scale:D}),"url(#"+g[V].id+")"}function _t(b,$,P){var x=b.absX,t=b.absY,e=b.geometry.width,n=b.geometry.height,l=P.x-$.x,A=P.y-$.y;if(l===0&&A===0)return{x:$.x,y:$.y};var D=l===0?1/0:l>0?(x+e-$.x)/l:(x-$.x)/l,V=A===0?1/0:A>0?(t+n-$.y)/A:(t-$.y)/A,Q=Math.min(D,V);return Q<0||!isFinite(Q)?{x:$.x,y:$.y}:{x:$.x+l*Q,y:$.y+A*Q}}return{convert:Or,convertXml:_r}})();var cf=(function(){function Or(){if(typeof document<"u"&&typeof Image<"u"&&typeof document.createElement=="function")return H;throw new Error("PlantUml2Png.render requires a browser environment or a canvas polyfill. In pure Node.js, call PlantUml2Svg.convert() and pipe the result through an external SVG\u2192PNG rasteriser (resvg-js, sharp, Inkscape, or plantuml.jar -tpng).")}function _r(R,E){try{var O=Ti.convert(R,E);return nr(O,E)}catch(C){return Promise.reject(C)}}function qr(R,E){try{var O=Ti.convertXml(R,E);return nr(O,E)}catch(C){return Promise.reject(C)}}function nr(R,E){E=E||{};var O;try{O=Or()}catch(C){return Promise.reject(C)}return O(R,E)}function H(R,E){var O=Math.max(.1,parseFloat(E.scale)||1),C=E.backgroundColor||null,B=E.mimeType||"image/png";return new Promise(function(_,g){var w=F(R),d=typeof Blob<"u"?new Blob([R],{type:"image/svg+xml;charset=utf-8"}):null,c=d&&typeof URL<"u"&&URL.createObjectURL?URL.createObjectURL(d):"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(R),o=new Image;o.onload=function(){try{var p=(o.width||w.width)*O,h=(o.height||w.height)*O,v=document.createElement("canvas");v.width=Math.max(1,Math.round(p)),v.height=Math.max(1,Math.round(h));var k=v.getContext("2d");C&&(k.fillStyle=C,k.fillRect(0,0,v.width,v.height)),k.drawImage(o,0,0,v.width,v.height);var S=v.toDataURL(B);c.slice(0,5)==="blob:"&&URL.revokeObjectURL&&URL.revokeObjectURL(c),_(S)}catch(Z){g(Z)}},o.onerror=function(p){c.slice(0,5)==="blob:"&&typeof URL<"u"&&URL.revokeObjectURL&&URL.revokeObjectURL(c),g(new Error("Failed to rasterise SVG (Image load error): "+(p&&p.message?p.message:"unknown")))},o.src=c})}function F(R){var E=R.match(/\bwidth="(\d+(?:\.\d+)?)"/),O=R.match(/\bheight="(\d+(?:\.\d+)?)"/),C=R.match(/\bviewBox="\s*([\d.\-]+)\s+([\d.\-]+)\s+([\d.\-]+)\s+([\d.\-]+)"/),B=E?parseFloat(E[1]):0,_=O?parseFloat(O[1]):0;return(!B||!_)&&C&&(B||(B=parseFloat(C[3])),_||(_=parseFloat(C[4]))),{width:B||800,height:_||600}}return{render:_r,renderXml:qr,renderSvg:nr}})();var Yi=(function(){for(var Or=["participant","actor","boundary","control","entity","database","collections","queue"],_r={},qr=0;qr<Or.length;qr++)_r[Or[qr]]=!0;function nr(d,c){var o=d.length,p=c,h="none",v="none",k=null,S=0,Z=0,U=H(d,p,"<"),vr=U;for(p=U.end;p<o&&d[p]==="-";)S++,p++;for(;p<o&&d[p]===".";)Z++,p++;if(p<o&&d[p]==="["){var G=d.indexOf("]",p);if(G>p){var fr=d.substring(p+1,G);fr.charAt(0)==="#"?k=fr:k="#"+fr,p=G+1}}for(;p<o&&d[p]==="-";)S++,p++;for(;p<o&&d[p]===".";)Z++,p++;if(S+Z===0)return null;var j=H(d,p,">"),lr=j;if(p=j.end,h=F(U),v=F(j),h==="none"&&v==="none"&&S+Z<2)return null;var dr=Z>0&&S===0?"dotted":S>2||Z>0?"dashed":"solid";return S===2&&Z===0&&h==="none"&&v==="none"?null:(Z===0&&(dr=S>=2?"dashed":"solid"),{end:p,lineStyle:dr,leftHead:h,rightHead:v,left:vr,right:lr,color:k})}function H(d,c,o){for(var p={arrow:!1,async:!1,cross:!1,circle:!1,part:null,end:c},h=c;h<d.length;){var v=d[h];if(v===o)p.arrow&&(p.async=!0),p.arrow=!0;else if(v==="x")p.cross=!0;else if(v==="o")p.circle=!0;else if(v==="\\")p.part="halfTop";else if(v==="/")p.part="halfBottom";else break;h++}return p.end=h,p}function F(d){return d.cross?"lost":d.circle?"circle":d.part?d.part:d.async?"open":d.arrow?"filled":"none"}function R(d,c){if(c==null)return"<b>"+d+"</b>";var o=String(c).match(/^([^0#]*)([0#]+)([^0#]*)$/);if(o==null)return String(d);for(var p=o[2].replace(/[^0]/g,"").length,h=String(d);h.length<p;)h="0"+h;return o[1]+h+o[3]}function E(d,c,o,p){var h=d;if(o.hasOwnProperty(h))return h;for(var v in o)if(o.hasOwnProperty(v)&&c[o[v]].name===d)return v;var k={id:h,name:d,kind:"participant",color:null,stereotype:null,order:p.value++,created:!1,box:null};return o[h]=c.length,c.push(k),h}function O(d){return d==null?d:String(d).replace(/\\r\\n|\\n|\\r/g,`-`).replace(/\\t/g," ")}function C(d,c){for(;c<d.length&&(d[c]===" "||d[c]===" ");)c++;if(c>=d.length)return null;if(d[c]==='"'){var o=d.indexOf('"',c+1);return o<0&&(o=d.length),{name:O(d.substring(c+1,o)),end:o+1}}for(var p=c;p<d.length&&!/[\s:<>\-.\[\]"]/.test(d[p]);)p++;return p===c?null:{name:d.substring(c,p),end:p}}function B(d,c,o,p){var h=d.match(/^([\[\]])\s*([ox]?)\s*(?=[<.-])/);if(h){var v=h[1]==="["?"left":"right",k=nr(d,h[0].length);if(k!=null){for(var S=k.end;S<d.length&&(d[S]===" "||d[S]===" ");)S++;var Z=C(d,S);if(Z!=null){var U="",vr=d.indexOf(":",Z.end);vr>=0&&(U=d.substring(vr+1).replace(/^\s+|\s+$/g,""));var G=E(Z.name,c,o,p),fr=k.rightHead!=="none"||k.leftHead==="none";return{type:"message",from:fr?null:G,to:fr?G:null,fromEdge:fr?v:null,toEdge:fr?null:v,label:U,lineStyle:k.lineStyle,arrowHead:fr?k.rightHead!=="none"?k.rightHead:"open":k.leftHead!=="none"?k.leftHead:"open",color:k.color,activate:null,deactivate:null}}}}var j=null,lr=-1,dr=-1,gr=C(d,0);if(gr==null)return null;for(var or=gr.end;or<d.length&&(d[or]===" "||d[or]===" ");)or++;if(or>=d.length)return null;var ar=nr(d,or);if(ar==null)return null;for(var u=ar.end;u<d.length&&u<d.length&&(d[u]===" "||d[u]===" ");)u++;var z=/^([ox]?)\s*([\[\]])/.exec(d.substring(u));if(z){var N=z[2]==="]"?"right":"left",pe=u+z[0].length,Hr="",jr=d.indexOf(":",pe);jr>=0&&(Hr=d.substring(jr+1).replace(/^\s+|\s+$/g,""));var Zr=E(gr.name,c,o,p),Pe=ar.rightHead!=="none"||ar.leftHead==="none";return{type:"message",from:Pe?Zr:null,to:Pe?null:Zr,fromEdge:Pe?null:N,toEdge:Pe?N:null,label:Hr,lineStyle:ar.lineStyle,arrowHead:Pe?ar.rightHead!=="none"?ar.rightHead:"open":ar.leftHead!=="none"?ar.leftHead:"open",color:ar.color,activate:null,deactivate:null}}var Ae=C(d,u);if(Ae==null)return null;var be=Ae.end,Mr=null,Pr=null,_e=d.substring(be),Qt=_e.match(/^\s*(\+\+--|--\+\+|\+\+|--|\*\*|!!)\s*(#\w+)?/),_t=null,b=null;Qt&&(_t=Qt[1],b=Qt[2]||null,be+=Qt[0].length);var $="",P=d.indexOf(":",be);P>=0&&($=d.substring(P+1).replace(/^\s+|\s+$/g,""));var x=E(gr.name,c,o,p),t=E(Ae.name,c,o,p),e=x,n=t,l=ar.right,A=ar.left,D;ar.left.arrow&&ar.right.arrow?D="bidirectional":(ar.left.arrow&&(e=t,n=x,l=ar.left,A=ar.right),D=l.cross?"lost":l.part?l.part:l.async?"open":"filled");var V=D!=="bidirectional"&&l.circle?"circle":null,Q=A.circle?"circle":A.cross?"lost":null;(_t==="++"||_t==="--++"||_t==="++--")&&(Mr=n),(_t==="--"||_t==="--++"||_t==="++--")&&(Pr=e);var yr=_t==="**"?n:null,hr=_t==="!!"?n:null;return{type:"message",from:e,to:n,label:O($),lineStyle:ar.lineStyle,arrowHead:D,headDecor:V,tailDecor:Q,color:ar.color,activate:Mr,activateColor:b,deactivate:Pr,activationSpec:_t,createTarget:yr,destroyTarget:hr,number:null}}function _(d,c,o){for(var p=[],h=c+1;h<d.length;h++){var v=d[h].replace(/^\s+|\s+$/g,"");if(v.toLowerCase()===o)return{text:p.join(`-`),endIdx:h};p.push(d[h])}return{text:p.join(`-`),endIdx:d.length-1}}function g(d){d=d.replace(/^\s+|\s+$/g,"");var c=/^(.*?)(?:^|\s)(#[A-Za-z0-9][A-Za-z0-9\/|:;.\-]*)\s*$/.exec(d);return c?{str:c[1].replace(/^\s+|\s+$/g,""),color:c[2]}:{str:d,color:null}}function w(d,c){c=c||{};for(var o=d.split(/\r\n|\r|\n/),p=[],h={},v=[],k=[],S=null,Z=!1,U=null,vr={},G=0,fr={value:0},j=null,lr={},dr=!1,gr=/^skinparam\s+monochrome\s+(true|on|yes)\s*$/im.test(d)||/^skinparam\s*\{[^}]*\bmonochrome\s+(true|on|yes)/im.test(d),or=0;or<o.length;or++){var ar=o[or],u=ar.replace(/^\s+|\s+$/g,"");if(u!==""&&u.charAt(0)!=="'"&&u.charAt(0)!=="!"){if(/^skinparam\b/i.test(u)){var z=u.match(/^skinparam\s+([A-Za-z][A-Za-z0-9]*)?\s*\{\s*$/i);if(z||/\{\s*$/.test(u))for(var N=z&&z[1]?z[1].toLowerCase():"",pe=1;pe>0&&or+1<o.length;){or++;var Hr=o[or].replace(/^\s+|\s+$/g,"");if(Hr.indexOf("{")>=0&&pe++,Hr.indexOf("}")>=0){pe--;continue}if(pe===1){var jr=Hr.match(/^([A-Za-z][A-Za-z0-9]*)\s*(<<[^>]*>>)?\s+(\S.*)$/);jr&&(lr[N+jr[1].toLowerCase()+(jr[2]?jr[2].toLowerCase():"")]=jr[3].replace(/\s+$/,""))}}else{var Zr=u.match(/^skinparam\s+([A-Za-z][A-Za-z0-9]*)\s*(<<[^>]*>>)?\s+(\S.*)$/i);Zr&&(lr[Zr[1].toLowerCase()+(Zr[2]?Zr[2].toLowerCase():"")]=Zr[3].replace(/\s+$/,""))}continue}if(/^hide\s+stereotypes?\s*$/i.test(u)){dr=!0;continue}var Pe=u.match(/^(?:(?:center|left|right)\s+)?(title|header|footer|caption)\s+(.+)$/i);if(Pe){vr[Pe[1].toLowerCase()]=Pe[2].replace(/^\s+|\s+$/g,"");continue}var Ae=u.match(/^(?:(?:center|left|right)\s+)?(title|header|footer|caption)\s*$/i);if(Ae){for(var be=Ae[1].toLowerCase(),Mr=new RegExp("^end\\s*"+be+"$","i"),Pr=[];or+1<o.length;){or++;var _e=o[or].replace(/^\s+|\s+$/g,"");if(Mr.test(_e))break;Pr.push(_e)}vr[be]=Pr.join(`-`);continue}if(!/^(scale|mainframe|hide|show)\b/i.test(u)){var Qt=u.match(/^legend(?:\s+(left|right|center|top|bottom))?\s*$/i);if(Qt){for(var _t=[];or+1<o.length;){or++;var b=o[or].replace(/^\s+|\s+$/g,"");if(/^end\s*legend\b/i.test(b))break;_t.push(b)}U={position:Qt[1]?Qt[1].toLowerCase():"center",lines:_t};continue}if(!/^(top\s+to\s+bottom|left\s+to\s+right)\s+direction\b/i.test(u)){var $=u.toLowerCase(),P=u.match(/^autoactivate\s+(on|off)$/i);if(P){Z=P[1].toLowerCase()==="on";continue}var x=u.match(/^autonumber(?:\s+(\d+))?(?:\s+(\d+))?(?:\s+"([^"]*)")?$/i);if(x){S={start:x[1]?parseInt(x[1],10):1,increment:x[2]?parseInt(x[2],10):1,format:x[3]||null},G=S.start;continue}if(/^autonumber\s+stop$/i.test(u)){S=null;continue}if(/^autonumber\s+resume/i.test(u)){S==null&&(S={start:1,increment:1,format:null});continue}var t=u.match(/^box(?:\s+"([^"]*)"|\s+(\S+))?(?:\s+(#\S+))?$/i);if(t){j={label:O(t[1]||t[2]||""),color:t[3]||null,participants:[]},k.push(j);continue}if(/^end\s*box$/i.test(u)){j=null;continue}var e=u.match(/^(participant|actor|boundary|control|entity|database|collections|queue)\s+(.+)$/i);if(e&&!/^[<\-]/.test(e[2])){var n=e[1].toLowerCase(),l=e[2],A=null,D=null,V=null,Q=null,yr=l.match(/^(\S+)\s*\[\s*$/);if(yr){for(var hr=[];or+1<o.length;){or++;var ye=o[or].replace(/^\s+|\s+$/g,"");if(ye==="]")break;hr.push(ye)}var ae=yr[1];h.hasOwnProperty(ae)||(h[ae]=p.length,p.push({id:ae,name:ae,kind:n,color:null,stereotype:null,stereoLetter:null,stereoColor:null,bodyLines:hr,order:fr.value++,created:!1,box:j?k.indexOf(j):null}),j&&j.participants.push(ae));continue}var We=C(l,0);if(We){A=We.name;var ze=l.substring(We.end).replace(/^\s+/,""),Na=ze.match(/^as\s+(\S+)(.*)/i);Na&&(D=Na[1],ze=Na[2].replace(/^\s+/,""));var zr=ze.match(/^(#\S+)(.*)/);zr&&(V=zr[1],ze=zr[2].replace(/^\s+/,""));var ea=ze.match(/^<<\s*([^>]*)\s*>>/),Qe=null,ve=null;if(ea){Q=ea[1].replace(/^\s+|\s+$/g,"");var De=Q.match(/^\(\s*([A-Za-z])\s*,\s*(#[0-9A-Fa-f]{3,8})\s*\)\s*(.*)$/);De&&(Qe=De[1],ve=De[2],Q=De[3].replace(/^\s+|\s+$/g,"")||null)}var Ka=D||A;if(h.hasOwnProperty(Ka)){var Jt=h[Ka],Ce=p[Jt];n!=="participant"&&(Ce.kind=n),V&&(Ce.color=V),Q&&(Ce.stereotype=Q)}else{var Ya={id:Ka,name:A,kind:n,color:V,stereotype:Q,stereoLetter:Qe,stereoColor:ve,order:fr.value++,created:!1,box:j?k.indexOf(j):null};h[Ka]=p.length,p.push(Ya),j&&j.participants.push(Ka)}}continue}var La=u.match(/^create\s+(?:(participant|actor|boundary|control|entity|database|collections|queue)\s+)?(.+)$/i);if(La){var Ft=La[1]?La[1].toLowerCase():"participant",Ia=C(La[2],0);if(Ia){var Za=Ia.name,Sn=La[2].substring(Ia.end).replace(/^\s+/,""),_a=Sn.match(/^as\s+(\S+)/i);if(_a&&(Za=_a[1]),h.hasOwnProperty(Za))p[h[Za]].created=!0;else{var hn={id:Za,name:Ia.name,kind:Ft,color:null,stereotype:null,order:fr.value++,created:!0,box:j?k.indexOf(j):null};h[Za]=p.length,p.push(hn),j&&j.participants.push(Za)}v.push({type:"create",participant:Za})}continue}var Qn=u.match(/^activate\s+(\S+)(?:\s+(#\S+))?$/i);if(Qn){var Xa=E(Qn[1],p,h,fr);v.push({type:"activate",participant:Xa,color:Qn[2]||null});continue}var fl=u.match(/^deactivate\s+(\S+)$/i);if(fl){var ma=E(fl[1],p,h,fr);v.push({type:"deactivate",participant:ma});continue}var Ln=u.match(/^destroy\s+(\S+)$/i);if(Ln){var Tn=E(Ln[1],p,h,fr);v.push({type:"destroy",participant:Tn});continue}var kn=u.match(/^return(?:\s+(.*))?$/i);if(kn){var Nn={type:"message",from:null,to:null,label:kn[1]?O(kn[1].replace(/^\s+|\s+$/g,"")):"",lineStyle:"dashed",arrowHead:"filled",color:null,activate:null,deactivate:null,number:null,isReturn:!0};S&&(Nn.number=G,Nn.numberText=R(G,S.format),G+=S.increment),v.push(Nn);continue}var yn=u.match(/^(h?note|rnote)\s+(left|right|over|across)(?:\s+of\s+)?(?:(.+?)\s*)?$/i);if(yn){var Oa=yn[1].toLowerCase(),Un=yn[2].toLowerCase(),vl=yn[3]||"",al=vl.indexOf(":"),xn=[],ul="",Sl=null,Pn;if(al>=0){var hl=vl.substring(0,al).replace(/^\s+|\s+$/g,"");ul=vl.substring(al+1).replace(/^\s+|\s+$/g,""),Pn=g(hl),Sl=Pn.color,Pn.str&&(xn=Pn.str.split(/\s*,\s*/));for(var zl=0;zl<xn.length;zl++)xn[zl]=E(xn[zl],p,h,fr);var Jl=Oa==="rnote"?"box":Oa==="hnote"?"hexagon":"note";v.push({type:"note",position:Un,over:xn,text:O(ul),color:Sl,shape:Jl})}else{if(Pn=g(vl),Sl=Pn.color,Pn.str){xn=Pn.str.split(/\s*,\s*/);for(var eo=0;eo<xn.length;eo++)xn[eo]=E(xn[eo],p,h,fr)}var Fo=_(o,or,"end note");or=Fo.endIdx;var Vl=Oa==="rnote"?"box":Oa==="hnote"?"hexagon":"note";v.push({type:"note",position:Un,over:xn,text:O(Fo.text),color:Sl,shape:Vl})}continue}var Uo=u.match(/^==\s*(.*?)\s*==$/);if(Uo){v.push({type:"divider",label:O(Uo[1])});continue}var Tl=u.match(/^\.\.\.\s*(.*?)\s*\.\.\.$/);if(Tl){v.push({type:"delay",label:O(Tl[1])});continue}var to=u.match(/^\|\|(\d+)\|\|$/);if(/^\|\|\|$/.test(u)||to){v.push({type:"gap",h:to?parseInt(to[1],10):null});continue}var fo=u.match(/^(group|alt|else|opt|loop|par|break|critical)\b\s*(.*)$/i);if(fo){var Ul=fo[1].toLowerCase(),Gl=fo[2].replace(/^\s+|\s+$/g,""),vo=null,Zn=null,Kn=Gl.match(/^(#[A-Za-z0-9]+)(?:\s+(#[A-Za-z0-9]+))?\s*(.*)$/);Kn&&(Kn[2]?(vo=Kn[1],Zn=Kn[2]):Zn=Kn[1],Gl=Kn[3]),Ul==="else"?v.push({type:"groupElse",label:O(Gl),color:Zn}):v.push({type:"groupStart",kind:Ul,label:O(Gl),color:Zn,headColor:vo});continue}if(/^end$/i.test(u)){v.push({type:"groupEnd"});continue}var Hl=u.match(/^ref\s+over\s+(.+?)\s*:\s*(.*)$/i);if(Hl){for(var xa=g(Hl[1]),et=xa.str.split(/\s*,\s*/),kl=0;kl<et.length;kl++)et[kl]=E(et[kl],p,h,fr);v.push({type:"ref",over:et,color:xa.color,label:Hl[2].replace(/^\s+|\s+$/g,"")});continue}var uo=u.match(/^ref\s+over\s+(.+)$/i);if(uo){for(var jo=g(uo[1].replace(/^\s+|\s+$/g,"")),$o=jo.str.split(/\s*,\s*/),ho=0;ho<$o.length;ho++)$o[ho]=E($o[ho],p,h,fr);var Wo=_(o,or,"end ref");or=Wo.endIdx,v.push({type:"ref",over:$o,color:jo.color,label:Wo.text});continue}var zn=B(u,p,h,fr);if(zn){zn.createTarget!=null&&(h.hasOwnProperty(zn.createTarget)&&(p[h[zn.createTarget]].created=!0),v.push({type:"create",participant:zn.createTarget})),Z&&zn.activationSpec==null&&zn.arrowHead!=="lost"&&zn.arrowHead!=="none"&&(zn.lineStyle!=="solid"?zn.deactivate=zn.from!=null?zn.from:zn.to:zn.activate=zn.to!=null?zn.to:zn.from),S&&(zn.number=G,zn.numberText=R(G,S.format),G+=S.increment),v.push(zn),zn.destroyTarget!=null&&v.push({type:"destroy",participant:zn.destroyTarget});continue}}}}}for(var Zo=0;Zo<p.length;Zo++){var yo=p[Zo];if(yo.color==null){var Qo=(yo.kind||"participant").toLowerCase(),nl=yo.stereotype?"<<"+yo.stereotype.toLowerCase()+">>":null;yo.color=(nl?lr[Qo+"backgroundcolor"+nl]:null)||lr[Qo+"backgroundcolor"]||null}}return{participants:p,elements:v,boxes:k,autonumber:S,legend:U,title:vr.title||null,header:vr.header||null,footer:vr.footer||null,caption:vr.caption||null,monochrome:gr,skin:lr,hideStereotype:dr}}return{parse:w}})();var Xi=(function(){function Or(w){return w.replace(/^\s+|\s+$/g,"")}function _r(w){if(w==null)return"state";var d=w.toLowerCase();switch(d){case"fork":case"join":case"choice":case"start":case"end":case"entrypoint":case"exitpoint":return d;default:return"state"}}function qr(w,d){for(var c=0;c<d.length;c++){var o=d[c];if(o.children){for(var p=0;p<o.children.length;p++)if(o.children[p].id===w)return o.children[p];var h=qr(w,o.children);if(h!=null)return h}if(o.regions)for(var v=0;v<o.regions.length;v++){var k=o.regions[v].children||[],S=qr(w,k);if(S!=null)return S;for(var Z=0;Z<k.length;Z++)if(k[Z].id===w)return k[Z]}}return null}function nr(w,d,c){if(c.hasOwnProperty(w))return d[c[w]];var o=qr(w,d);if(o!=null)return o;var p="state";w==="[*]_start"||w==="[*]_end"?p=w==="[*]_start"?"initial":"final":w==="[H]"?p="history_shallow":w==="[H*]"&&(p="history_deep");var h={id:w,name:w,description:[],stereotype:null,color:null,kind:p,children:null,concurrent:!1};return c[w]=d.length,d.push(h),h}function H(w){return w==="[*]_start"||w==="[*]_end"||w==="[H]"||w==="[H*]"}function F(w,d,c){for(var o={},p=0;p<d.length;p++){var h=d[p];if(H(h.id)){var v=w+"$"+h.id;o[h.id]=v,h.id=v}}for(var k=0;k<c.length;k++){var S=c[k];o.hasOwnProperty(S.from)&&(S.from=o[S.from]),o.hasOwnProperty(S.to)&&(S.to=o[S.to])}}function R(w,d){var c=w.length,o=d,p=null,h=0;if(o>=c||w[o]!=="-")return null;o++,h++;var v=w.substring(o).match(/^(left|right|up|down|l|r|u|d)(?=-)/i);if(v){var k=v[1].toLowerCase();switch(k){case"left":case"l":p="left";break;case"right":case"r":p="right";break;case"up":case"u":p="up";break;case"down":case"d":p="down";break}o+=v[1].length}for(;o<c&&w[o]==="-";)h++,o++;return h<1||o>=c||w[o]!==">"?null:(o++,{end:o,direction:p,dashCount:h})}function E(w,d){for(;d<w.length&&(w[d]===" "||w[d]===" ");)d++;if(d>=w.length)return null;if(w[d]==="["){var c=w.indexOf("]",d);if(c>=0){var o=w.substring(d+1,c);if(o==="*"||o==="H"||o==="H*")return{name:"["+o+"]",end:c+1}}return null}if(w[d]==='"'){var p=w.indexOf('"',d+1);return p<0&&(p=w.length),{name:w.substring(d+1,p),end:p+1}}for(var h=d;h<w.length&&/[\w]/.test(w[h]);)h++;return h===d?null:{name:w.substring(d,h),end:h}}function O(w,d,c,o){var p=1,h=[],v=Or(w[d].substring(c+1));if(v!==""&&v!=="}"&&h.push(v),v==="}")return{children:[],transitions:[],notes:[],concurrent:!1,regions:null,endIdx:d};for(var k=d+1;k<w.length;k++){for(var S=w[k],Z=Or(S),U=0;U<Z.length;U++)if(Z[U]==="{")p++;else if(Z[U]==="}"&&(p--,p===0)){var vr=Or(Z.substring(0,U));return vr!==""&&h.push(vr),C(h,k,o)}h.push(S)}return C(h,k-1,o)}function C(w,d,c){for(var o=c||"composite",p=[[]],h=null,v=0;v<w.length;v++){var k=Or(w[v]).match(/^(--+|\|\|+)$/);k?(h==null&&(h=k[1].charAt(0)),p.push([])):p[p.length-1].push(w[v])}for(var S=[],Z=0;Z<p.length;Z++)p[Z].length>0&&S.push(p[Z]);if(S.length>1){for(var U=[],vr=[],G=[],fr=[],j=0;j<S.length;j++){var lr=B(S[j].join(`-`));F(o+"#"+j,lr.states,lr.transitions),U.push({states:lr.states,transitions:lr.transitions,notes:lr.notes});for(var dr=0;dr<lr.states.length;dr++)vr.push(lr.states[dr]);for(var gr=0;gr<lr.transitions.length;gr++)G.push(lr.transitions[gr]);for(var or=0;or<lr.notes.length;or++)fr.push(lr.notes[or])}return{children:vr,transitions:G,notes:fr,concurrent:!0,regions:U,sepChar:h,endIdx:d}}var ar=B(S.length?S[0].join(`-`):"");return F(o,ar.states,ar.transitions),{children:ar.states,transitions:ar.transitions,notes:ar.notes,concurrent:!1,regions:null,sepChar:null,endIdx:d}}function B(w){for(var d=w.split(/\r\n|\r|\n/),c=[],o={},p=[],h=[],v=!1,k=0;k<d.length;k++){var S=d[k],Z=Or(S);if(Z!==""&&Z.charAt(0)!=="'"&&Z.charAt(0)!=="!"){if(/^skinparam\b/i.test(Z)){if(/\{\s*$/.test(Z))for(var U=1;U>0&&k+1<d.length;){k++;var vr=Or(d[k]);vr.indexOf("{")>=0&&U++,vr.indexOf("}")>=0&&U--}continue}if(!/^(title|header|footer|caption|scale|mainframe|hide|show)\b/i.test(Z)&&!/^(top\s+to\s+bottom|left\s+to\s+right)\s+direction\b/i.test(Z)){if(/^(--+|\|\|+)$/.test(Z)){v=!0;continue}var G=Z.match(/^note\s+(left|right)\s+of\s+(\S+)\s*:\s*(.*)$/i);if(G){h.push({position:G[1].toLowerCase(),target:G[2],text:Or(G[3])});continue}var fr=Z.match(/^note\s+(left|right)\s+of\s+(\S+)\s*$/i);if(fr){for(var j=fr[1].toLowerCase(),lr=fr[2],dr=[],gr=k+1;gr<d.length;gr++){var or=Or(d[gr]);if(/^end\s*note$/i.test(or)){k=gr;break}dr.push(Or(d[gr]))}h.push({position:j,target:lr,text:dr.join(`-`)});continue}var ar=Z.match(/^state\s+(.+)$/i);if(ar){var u=ar[1],z=null,N=null,pe=null,Hr=null,jr=E(u,0);if(jr){z=jr.name;var Zr=u.substring(jr.end),Pe=Zr.match(/^\s+as\s+(\S+)(.*)/i);Pe&&(N=Pe[1],Zr=Pe[2]);var Ae=Zr.match(/\s*<<\s*([^>]*)\s*>>/);Ae&&(pe=Or(Ae[1]),Zr=Zr.substring(0,Zr.indexOf("<<"))+Zr.substring(Zr.indexOf(">>")+2));var be=Zr.match(/\s*(#\S+)/);be&&(Hr=be[1],Zr=Zr.replace(be[0],""));var Mr=N||z,Pr=_r(pe),_e;if(o.hasOwnProperty(Mr)?(_e=c[o[Mr]],pe&&(_e.stereotype=pe,_e.kind=Pr),Hr&&(_e.color=Hr),N&&z!==Mr&&(_e.name=z)):(_e={id:Mr,name:N?z:Mr,description:[],stereotype:pe,color:Hr,kind:Pr,children:null,concurrent:!1,regions:null,regionSep:null},o[Mr]=c.length,c.push(_e)),Zr=Or(Zr),Zr.length>0&&Zr.charAt(Zr.length-1)==="{"){var Qt=Z.lastIndexOf("{"),_t=O(d,k,Qt,Mr);if(_e.children=_t.children||[],_e.concurrent=_t.concurrent,_e.regions=_t.regions||null,_e.regionSep=_t.sepChar||null,_t.transitions)for(var b=0;b<_t.transitions.length;b++)p.push(_t.transitions[b]);if(_t.notes)for(var $=0;$<_t.notes.length;$++)h.push(_t.notes[$]);k=_t.endIdx}else if(Zr==="{"){var P=Z.lastIndexOf("{"),x=O(d,k,P,Mr);if(_e.children=x.children||[],_e.concurrent=x.concurrent,_e.regions=x.regions||null,_e.regionSep=x.sepChar||null,x.transitions)for(var t=0;t<x.transitions.length;t++)p.push(x.transitions[t]);if(x.notes)for(var e=0;e<x.notes.length;e++)h.push(x.notes[e]);k=x.endIdx}}continue}var n=Z.match(/^(\S+)\s*:\s*(.*)$/);if(n){var l=n[1];if(l!=="note"&&l.indexOf("-")<0){var A=nr(l,c,o);A.description.push(Or(n[2]));continue}}var D=_(Z,c,o);if(D){p.push(D);continue}}}}return{states:c,transitions:p,notes:h,hasConcurrentSep:v}}function _(w,d,c){var o=null,p=null,h=!1;w=w.replace(/(-)\[([^\]\[]*)\](?=[-\w>])/,function(Pe,Ae,be){for(var Mr=be.split(","),Pr=0;Pr<Mr.length;Pr++){var _e=Mr[Pr].replace(/^\s+|\s+$/g,"");_e.charAt(0)==="#"?o=_e:/^(dashed|dotted)$/i.test(_e)?p=_e.toLowerCase():(/^bold$/i.test(_e)||/^thickness\s*=\s*\d+/i.test(_e))&&(h=!0)}return Ae});var v=E(w,0);if(v==null)return null;for(var k=v.end;k<w.length&&(w[k]===" "||w[k]===" ");)k++;if(k>=w.length)return null;var S=R(w,k);if(S==null)return null;for(var Z=S.end;Z<w.length&&(w[Z]===" "||w[Z]===" ");)Z++;var U=E(w,Z);if(U==null)return null;var vr=v.name,G=U.name,fr,j;vr==="[*]"?(fr="[*]_start",nr(fr,d,c)):(fr=vr,nr(fr,d,c));var lr=w.substring(U.end).match(/^\[(H\*?)\]/),dr=!1;if(lr&&G!=="[*]"&&G.charAt(0)!=="["){var gr=c.hasOwnProperty(G)?d[c[G]]:qr(G,d);if(gr!=null){var or=G+"$["+lr[1]+"]",ar=null;gr.children==null&&(gr.children=[]);for(var u=0;u<gr.children.length;u++)gr.children[u].id===or&&(ar=gr.children[u]);ar==null&&gr.children.push({id:or,name:lr[1],description:[],stereotype:null,color:null,kind:lr[1]==="H*"?"history_deep":"history_shallow",children:null,concurrent:!1,regions:null}),j=or,dr=!0}}dr||(G==="[*]"?(j="[*]_end",nr(j,d,c)):(j=G,nr(j,d,c)));var z="",N=null,pe=U.end,Hr=w.indexOf(":",pe);if(Hr>=0){z=Or(w.substring(Hr+1));var jr=z.match(/^\[([^\]]*)\]/),Zr=z.match(/\[([^\]]*)\]\s*$/);jr?N=jr[1]:Zr&&(N=Zr[1])}return{from:fr,to:j,label:z,guard:N,dashCount:S.dashCount,direction:S.direction,color:o,lineStyle:p,bold:h}}function g(w,d){d=d||{};var c=B(w),o=null;if(c.transitions&&c.transitions.length>0){for(var p=!0,h=!1,v=0;v<c.transitions.length;v++){var k=c.transitions[v];if(k.from&&k.to&&k.from.indexOf("[*]")<0&&k.to.indexOf("[*]")<0&&k.dashCount!=null&&(h=!0,k.dashCount>1)){p=!1;break}}h&&p&&(o="LR")}return{states:c.states,transitions:c.transitions,notes:c.notes,direction:o}}return{parse:g}})();var Ui=(function(){function Or(H){for(var F=H.split(/\r\n|\r|\n/),R=[],E=!1,O=0;O<F.length;O++){var C=F[O],B=C.replace(/^\s+|\s+$/g,"");if(E){C.indexOf("'/")>=0&&(E=!1);continue}if(B!==""){if(B.substring(0,2)==="/'"){B.indexOf("'/",2)<0&&(E=!0);continue}if(B.charAt(0)!=="'"&&B.charAt(0)!=="!"){if(/^skinparam\b/i.test(B)){if(/\{\s*$/.test(B))for(var _=1;_>0&&O+1<F.length;){O++;var g=F[O].replace(/^\s+|\s+$/g,"");g.indexOf("{")>=0&&_++,g.indexOf("}")>=0&&_--}continue}/^(title|header|footer|caption|scale|mainframe|hide|show)\b/i.test(B)||/^(top\s+to\s+bottom|left\s+to\s+right)\s+direction\b/i.test(B)||R.push(B)}}}return R}function _r(H){return H==null?"":H.replace(/^\s*(?:->)?\s*(?:\[#[^\]]*\]|#[a-zA-Z0-9.]+)?\s*/,"").replace(/^\s+|\s+$/g,"")}function qr(H,F,R,E,O){for(;F<H.length;){var C=H[F],B=C.toLowerCase();if(E){for(var _=0;_<E.length;_++)if(B===E[_]||B.indexOf(E[_])===0){var g=E[_];if(B===g)return F;if(g.indexOf(" ")>=0){if(B.indexOf(g)===0&&(B.length===g.length||B.charAt(g.length)===" "||B.charAt(g.length)==="("))return F}else if(B===g||B.indexOf(g)===0&&(B.charAt(g.length)===" "||B.charAt(g.length)==="("))return F}}var w=C.match(/^-+>\s*(.+?)\s*;?\s*$/);if(w){R.push({type:"arrowLabel",label:w[1]}),F++;continue}if(/^start\s*$/i.test(C)){R.push({type:"start"}),F++;continue}if(/^stop\s*$/i.test(C)){R.push({type:"stop"}),F++;continue}if(/^end\s*$/i.test(C)){R.push({type:"end"}),F++;continue}if(/^detach\s*$/i.test(C)){R.push({type:"detach"}),F++;continue}var d=C.match(/^\|(\s*#([^|]*)\s*)?\|?\s*([^|]+?)\s*\|$/);if(d||(d=C.match(/^\|([^|]*)\|$/)),d){var c=null,o=null,p=C.match(/^\|#([^|]+)\|([^|]+)\|$/);if(p)o="#"+p[1],c=p[2].replace(/^\s+|\s+$/g,"");else{var h=C.match(/^\|([^|]+)\|$/);h&&(c=h[1].replace(/^\s+|\s+$/g,""))}if(c){for(var v=!1,k=0;k<O.length;k++)if(O[k].name===c){v=!0,o&&!O[k].color&&(O[k].color=o);break}v||O.push({name:c,color:o}),R.push({type:"swimlane",name:c})}F++;continue}var S=C.match(/^note\s+(right|left)\s*:\s*(.*)$/i);if(S){R.push({type:"note",position:S[1].toLowerCase(),text:S[2].replace(/^\s+|\s+$/g,"")}),F++;continue}var Z=C.match(/^note\s+(right|left)\s*$/i);if(Z){var U=Z[1].toLowerCase(),vr=[];for(F++;F<H.length;){if(/^end\s*note$/i.test(H[F])){F++;break}vr.push(H[F]),F++}R.push({type:"note",position:U,text:vr.join(`-`)});continue}var G=C.match(/^if\s*\(([^)]*)\)\s*then\s*(?:\(([^)]*)\))?\s*$/i);if(G){var fr={type:"if",condition:G[1].replace(/^\s+|\s+$/g,""),thenLabel:G[2]!=null?G[2].replace(/^\s+|\s+$/g,""):"",elseLabel:"",thenBranch:[],elseBranch:[],elseIfBranches:[]};for(F++,F=qr(H,F,fr.thenBranch,["else","elseif","endif","end if"],O);F<H.length;){var j=H[F].toLowerCase();if(j==="endif"||j==="end if"){F++;break}var lr=H[F].match(/^else\s?if\s*\(([^)]*)\)\s*then\s*(?:\(([^)]*)\))?\s*$/i);if(lr){var dr={condition:lr[1].replace(/^\s+|\s+$/g,""),thenLabel:lr[2]!=null?lr[2].replace(/^\s+|\s+$/g,""):"",body:[]};F++,F=qr(H,F,dr.body,["else","elseif","endif","end if"],O),fr.elseIfBranches.push(dr);continue}var gr=H[F].match(/^else\s*(?:\(([^)]*)\))?\s*$/i);if(gr){fr.elseLabel=gr[1]!=null?gr[1].replace(/^\s+|\s+$/g,""):"",F++,F=qr(H,F,fr.elseBranch,["endif","end if"],O),F<H.length&&/^end\s?if$/i.test(H[F])&&F++;break}F++;break}R.push(fr);continue}var or=C.match(/^while\s*\(([^)]*)\)\s*(?:is\s*\(([^)]*)\))?\s*$/i);if(or){var ar={type:"while",condition:or[1].replace(/^\s+|\s+$/g,""),isLabel:or[2]!=null?or[2].replace(/^\s+|\s+$/g,""):"",endLabel:"",body:[]};if(F++,F=qr(H,F,ar.body,["endwhile","end while"],O),F<H.length){var u=H[F].match(/^end\s?while\s*(?:\(([^)]*)\))?\s*$/i);u&&(ar.endLabel=u[1]!=null?u[1].replace(/^\s+|\s+$/g,""):"",F++)}R.push(ar);continue}var z=C.match(/^(?:#([a-zA-Z0-9.]+)\s+)?repeat\s*(?::\s*(.*?)\s*;)?(?:\s*<<[^>]*>>)?\s*$/i);if(z){var N={type:"repeat",label:z[2]!=null?z[2]:"",color:z[1]?"#"+z[1]:null,backward:null,body:[],condition:"",isLabel:"",notLabel:""};F++,F=qr(H,F,N.body,["repeat while"],O);for(var pe=[],Hr=0;Hr<N.body.length;Hr++)N.body[Hr].type==="backward"?N.backward==null&&(N.backward=N.body[Hr]):pe.push(N.body[Hr]);if(N.body=pe,F<H.length){var jr=H[F].match(/^repeat\s+while\s*\(([^)]*)\)\s*(?:is\s*\(([^)]*)\))?\s*(?:not\s*\(([^)]*)\))?\s*$/i);jr&&(N.condition=jr[1]!=null?jr[1].replace(/^\s+|\s+$/g,""):"",N.isLabel=jr[2]!=null?jr[2].replace(/^\s+|\s+$/g,""):"",N.notLabel=jr[3]!=null?jr[3].replace(/^\s+|\s+$/g,""):"",F++)}R.push(N);continue}var Zr=C.match(/^(?:\(([^)]*)\)\s*)?backward\s*:\s*(.*?)\s*;(?:\s*\(([^)]*)\))?(?:\s*<<[^>]*>>)?\s*$/i);if(Zr){R.push({type:"backward",label:Zr[2],incomingLabel:_r(Zr[1]),outgoingLabel:_r(Zr[3])}),F++;continue}var Pe=C.match(/^backward\s*:\s*(.*)$/i);if(Pe&&C.charAt(C.length-1)!==";"){var Ae=[Pe[1]];for(F++;F<H.length;){var be=H[F];if(be.charAt(be.length-1)===";"){Ae.push(be.substring(0,be.length-1)),F++;break}Ae.push(be),F++}R.push({type:"backward",label:Ae.join(`-`).replace(/^\s+|\s+$/g,""),incomingLabel:"",outgoingLabel:""});continue}if(/^fork\s*$/i.test(C)){var Mr={type:"fork",branches:[[]]};for(F++,F=qr(H,F,Mr.branches[0],["fork again","end fork"],O);F<H.length;){if(/^end\s+fork\s*$/i.test(H[F])){F++;break}if(/^fork\s+again\s*$/i.test(H[F])){var Pr=[];Mr.branches.push(Pr),F++,F=qr(H,F,Pr,["fork again","end fork"],O);continue}F++;break}R.push(Mr);continue}if(/^split\s*$/i.test(C)){var _e={type:"split",branches:[[]]};for(F++,F=qr(H,F,_e.branches[0],["split again","end split"],O);F<H.length;){if(/^end\s+split\s*$/i.test(H[F])){F++;break}if(/^split\s+again\s*$/i.test(H[F])){var Qt=[];_e.branches.push(Qt),F++,F=qr(H,F,Qt,["split again","end split"],O);continue}F++;break}R.push(_e);continue}var _t=C.match(/^switch\s*\(([^)]*)\)\s*$/i);if(_t){var b={type:"switch",condition:_t[1].replace(/^\s+|\s+$/g,""),cases:[]};for(F++;F<H.length;){if(/^endswitch\s*$/i.test(H[F])){F++;break}var $=H[F].match(/^case\s*\(([^)]*)\)\s*$/i);if($){var P={label:$[1].replace(/^\s+|\s+$/g,""),body:[]};F++,F=qr(H,F,P.body,["case","endswitch"],O),b.cases.push(P);continue}F++}R.push(b);continue}var x=C.match(/^group\s+(?:"([^"]*)"|(.+?))\s*$/i);if(x){var t={type:"partition",name:x[1]||x[2],body:[]};F++,F=qr(H,F,t.body,["end group"],O),F<H.length&&/^end\s+group$/i.test(H[F])&&F++,R.push(t);continue}var e=C.match(/^partition\s+(?:(#\S+)\s+)?(?:"([^"]*)"|([^#\s{]+))(?:\s+(#\S+))?\s*\{\s*$/i);if(e){var n={type:"partition",name:e[2]||e[3],color:e[1]||e[4]||null,body:[]};F++,F=qr(H,F,n.body,["}"],O),F<H.length&&H[F]==="}"&&F++,R.push(n);continue}var l=C.match(/^(?:#([a-zA-Z0-9]+))?:(.*)[;|/<>]\s*$/);if(l){var A=l[1]?"#"+l[1]:null,D=l[2].replace(/^\s+|\s+$/g,"");R.push({type:"action",label:D,color:A}),F++;continue}var V=C.match(/^(?:#([a-zA-Z0-9]+))?:(.*)$/),Q=C.charAt(C.length-1);if(V&&Q!==";"&&Q!=="|"&&Q!=="/"&&Q!=="<"&&Q!==">"){var yr=V[1]?"#"+V[1]:null,hr=[V[2]];for(F++;F<H.length;){var ye=H[F],ae=ye.charAt(ye.length-1);if(ae===";"||ae==="|"||ae==="/"||ae==="<"||ae===">"){hr.push(ye.substring(0,ye.length-1)),F++;break}hr.push(ye),F++}R.push({type:"action",label:hr.join(`-`).replace(/^\s+|\s+$/g,""),color:yr});continue}if(C==="}"){F++;continue}F++}return F}function nr(H,F){F=F||{};var R=Or(H),E=[],O=[],C=/^skinparam\s+monochrome\s+(true|on|yes)\s*$/im.test(H)||/^skinparam\s*\{[^}]*\bmonochrome\s+(true|on|yes)/im.test(H),B=H.match(/^skinparam\s+ArrowHeadColor\s+(\S+)\s*$/im)||H.match(/^skinparam(?:\s+\w+)?\s*\{[^}]*\bArrowHeadColor\s+(\S+)/im);return qr(R,0,E,null,O),{nodes:E,swimlanes:O,monochrome:C,arrowHeadColor:B?B[1].toLowerCase():null}}return{parse:nr}})();var rs=(function(){for(var Or=["class","interface","enum","annotation","struct","protocol","exception","entity","metaclass","stereotype"],_r={},qr=0;qr<Or.length;qr++)_r[Or[qr]]=!0;function nr(o,p){var h=o.length,v=p,k="none",S="none",Z=0,U=0;for(v<h&&o[v]==="<"?(v++,v<h&&o[v]==="|"?(k="triangle",v++):k="arrow"):v<h&&o[v]==="*"?(k="diamond_filled",v++):v<h&&o[v]==="x"?v+1<h&&(o[v+1]==="-"||o[v+1]===".")&&(k="cross",v++):v<h&&o[v]==="o"?v+1<h&&(o[v+1]==="-"||o[v+1]===".")&&(k="diamond_open",v++):v<h&&o[v]==="+"?(k="plus",v++):v<h&&o[v]==="#"?(k="hash",v++):v+1<h&&o[v]==="|"&&o[v+1]==="|"?(k="doublebar",v+=2):v+1<h&&o[v]==="}"&&o[v+1]==="o"?(k="crow_zero_many",v+=2):v+1<h&&o[v]==="}"&&o[v+1]==="|"?(k="crow_one_many",v+=2):v+1<h&&o[v]==="|"&&o[v+1]==="o"&&(k="crow_zero_one",v+=2);v<h&&o[v]==="-";)Z++,v++;for(;v<h&&o[v]===".";)U++,v++;for(;v<h&&(o[v]==="-"||o[v]===".");)o[v]==="-"?Z++:U++,v++;if(Z+U===0)return null;v<h&&o[v]==="|"?v+1<h&&o[v+1]===">"?(S="triangle",v+=2):v+1<h&&o[v+1]==="|"?(S="doublebar",v+=2):v+1<h&&o[v+1]==="{"&&(S="crow_one_many",v+=2):v<h&&o[v]===">"?(S="arrow",v++):v<h&&o[v]==="*"?(S="diamond_filled",v++):v+1<h&&o[v]==="o"&&o[v+1]==="{"?(S="crow_zero_many",v+=2):v+1<h&&o[v]==="o"&&o[v+1]==="|"?(S="crow_zero_one",v+=2):v<h&&o[v]==="o"?(S="diamond_open",v++):v<h&&o[v]==="x"&&(v+1>=h||o[v+1]===" "||o[v+1]===" "||o[v+1]==='"'||o[v+1]===":")?(S="cross",v++):v<h&&o[v]==="+"?(S="plus",v++):v<h&&o[v]==="#"&&(S="hash",v++);var vr=U>0&&Z===0?"dotted":"solid";return{end:v,lineStyle:vr,leftDeco:k,rightDeco:S,stemLen:Z+U}}function H(o,p,h){return p==="triangle"||o==="triangle"?h==="dotted"?"implements":"extends":o==="diamond_filled"||p==="diamond_filled"?"composition":o==="diamond_open"||p==="diamond_open"?"aggregation":o==="arrow"||p==="arrow"?h==="dotted"?"dependency":"association":"link"}function F(o,p){var h=null,v=null;switch(p){case"triangle":v="triangle";break;case"diamond_filled":v="diamond_filled";break;case"diamond_open":v="diamond_open";break;case"arrow":v="open";break;case"crow_zero_many":v="ERzeroToMany";break;case"crow_one_many":v="ERoneToMany";break;case"crow_zero_one":v="ERzeroToOne";break;case"doublebar":v="ERmandOne";break;case"cross":v="cross";break;case"plus":v="circlePlus";break;default:break}switch(o){case"triangle":h="triangle";break;case"diamond_filled":h="diamond_filled";break;case"diamond_open":h="diamond_open";break;case"arrow":h="open";break;case"crow_zero_many":h="ERzeroToMany";break;case"crow_one_many":h="ERoneToMany";break;case"crow_zero_one":h="ERzeroToOne";break;case"doublebar":h="ERmandOne";break;case"cross":h="cross";break;case"plus":h="circlePlus";break;default:break}return{fromArrow:h,toArrow:v}}function R(o,p){for(;p<o.length&&(o[p]===" "||o[p]===" ");)p++;if(p>=o.length)return null;if(o[p]==='"'){var h=o.indexOf('"',p+1);return h<0&&(h=o.length),{name:o.substring(p+1,h),end:h+1}}for(var v=p,k=0;v<o.length;){var S=o[v];if(S==="<")k++,v++;else if(S===">"&&k>0)k--,v++;else if(k>0)v++;else if(/[\w]/.test(S))v++;else break}return v===p?null:{name:o.substring(p,v),end:v}}function E(o){var p=o.indexOf("<");if(p<0)return{baseName:o,generics:null};var h=o.lastIndexOf(">");return h<p?{baseName:o,generics:null}:{baseName:o.substring(0,p),generics:o.substring(p+1,h).replace(/^\s+|\s+$/g,"")}}function O(o,p){var h=o.replace(/^\s+|\s+$/g,"");if(h===""||h==="--"||h===".."||h==="__"||h==="=="||/^--+$/.test(h)||/^\.\.+$/.test(h)||/^__+$/.test(h)||/^==+$/.test(h))return null;if(p&&!/^[+\-#~{]/.test(h))return{kind:"field",visibility:null,name:h,type:null,returnType:null,params:null,modifiers:[]};for(var v=[],k=null,S=h;;){var Z=S.match(/^\{(static|abstract|classifier|field|method)\}\s*/);if(Z){var U=Z[1];U==="classifier"?(U="static",v.push(U)):U==="field"||U==="method"?k=U:v.push(U),S=S.substring(Z[0].length)}else break}var vr=null;if(S.length>0){var G=S[0];(G==="+"||G==="-"||G==="#"||G==="~")&&(vr=G,S=S.substring(1).replace(/^\s*/,""))}for(;;){var fr=S.match(/^\{(static|abstract|classifier|field|method)\}\s*/);if(fr){var j=fr[1];j==="classifier"?(j="static",v.push(j)):j==="field"||j==="method"?k=j:v.push(j),S=S.substring(fr[0].length)}else break}var lr=S.indexOf("("),dr=k==="method"||k!=="field"&&lr>=0;if(dr){var gr,or,ar;if(lr>=0){gr=S.substring(0,lr).replace(/^\s+|\s+$/g,"");var u=S.indexOf(")",lr);u<0&&(u=S.length),or=S.substring(lr+1,u).replace(/^\s+|\s+$/g,""),ar=S.substring(u+1).replace(/^\s+|\s+$/g,"")}else gr=S.replace(/^\s+|\s+$/g,""),or=null,ar="";var z=null,N=ar.indexOf(":");return N>=0?z=ar.substring(N+1).replace(/^\s+|\s+$/g,""):ar.length>0&&(z=ar),{kind:"method",visibility:vr,name:gr,type:null,returnType:z,params:or,modifiers:v}}else{var pe=S.indexOf(":"),Hr,jr;return pe>=0?(Hr=S.substring(0,pe).replace(/^\s+|\s+$/g,""),jr=S.substring(pe+1).replace(/^\s+|\s+$/g,"")):(Hr=S.replace(/^\s+|\s+$/g,""),jr=null),{kind:"field",visibility:vr,name:Hr,type:jr,returnType:null,params:null,modifiers:v}}}function C(o,p,h,v){var k=[],S=1,Z=p;for(Z=p+1;Z<o.length;Z++){var U=o[Z],vr=U.replace(/^\s+|\s+$/g,"");if(vr.indexOf("{")>=0&&S++,vr.indexOf("}")>=0&&(S--,S<=0)){var G=vr.substring(0,vr.indexOf("}"));if(G.replace(/^\s+|\s+$/g,"").length>0){var fr=O(G,v);fr&&k.push(fr)}return{members:k,endIdx:Z}}if(S===1){var j=O(vr,v);j&&k.push(j)}}return{members:k,endIdx:o.length-1}}function B(o,p){if(p.hasOwnProperty(o))return o;for(var h in p)if(p.hasOwnProperty(h)&&p[h].alias===o)return h;return o}function _(o,p,h,v){if(v.hasOwnProperty(o))return v[o];var k=E(p||o),S={id:o,name:k.baseName,kind:"class",stereotype:null,generics:k.generics,color:null,members:[]};return v[o]=S,h.push(S),S}function g(o,p){for(var h=[],v=p+1;v<o.length;v++){var k=o[v].replace(/^\s+|\s+$/g,"");if(/^end\s*note$/i.test(k))return{text:h.join(`-`),endIdx:v};h.push(o[v])}return{text:h.join(`-`),endIdx:o.length-1}}function w(o,p){p=p||{};for(var h=o.split(/\r\n|\r|\n/),v=[],k={},S=[],Z=[],U=[],vr=[],G=[],fr=/^skinparam\s+monochrome\s+(true|on|yes)\s*$/im.test(o)||/^skinparam\s*\{[^}]*\bmonochrome\s+(true|on|yes)/im.test(o),j=/^\s*hide\s+circle\s*$/im.test(o),lr=o.match(/^skinparam\s+linetype\s+(ortho|polyline)\s*$/im),dr=lr?lr[1].toLowerCase():null,gr=o.match(/^\s*set\s+separator\s+(\S+)\s*$/im),or=gr?gr[1]:null,ar=null,u=0;u<h.length;u++){var z=h[u],N=z.replace(/^\s+|\s+$/g,"");if(N!==""&&N.charAt(0)!=="'"&&N.charAt(0)!=="!"){if(/^skinparam\b/i.test(N)){if(/\{\s*$/.test(N))for(var pe=1;pe>0&&u+1<h.length;){u++;var Hr=h[u].replace(/^\s+|\s+$/g,"");Hr.indexOf("{")>=0&&pe++,Hr.indexOf("}")>=0&&pe--}continue}var jr=/^title\s+(.*)$/i.exec(N);if(jr){ar=jr[1];continue}if(!/^(header|footer|caption|scale|mainframe)\b/i.test(N)&&!/^(top\s+to\s+bottom|left\s+to\s+right)\s+direction\b/i.test(N)&&!/^(hide|show)\b/i.test(N)){var Zr=N.toLowerCase();if(/^together\s*\{/i.test(N)){for(var Pe=1;Pe>0&&u+1<h.length;){u++;var Ae=h[u].replace(/^\s+|\s+$/g,"");Ae.indexOf("{")>=0&&Pe++,Ae.indexOf("}")>=0&&Pe--,Pe>0}continue}var be=N.match(/^package\s+(?:"([^"]+)"|(\S+))(?:\s+<<\s*([^>]*)\s*>>)?(?:\s+(#\S+))?\s*\{?\s*$/i);if(be){var Mr=be[1]||be[2],Pr=be[3]||null,_e={name:Mr,stereotype:Pr,classes:[]};U.push(_e),G.push(_e),N.indexOf("{")<0;continue}var Qt=N.match(/^namespace\s+(?:"([^"]+)"|(\S+))(?:\s+(#\S+))?\s*\{?\s*$/i);if(Qt){var _t=Qt[1]||Qt[2],b={name:_t,stereotype:null,classes:[]};U.push(b),G.push(b);continue}if(N==="}"){G.length>0&&G.pop();continue}var $=N.match(/^note\s+(left|right|top|bottom)\s+of\s+(\S+?)(?:::(\S+))?\s+:\s*(.*)$/i);if($){vr.push({position:$[1].toLowerCase(),target:$[2],method:$[3]||null,text:$[4].replace(/^\s+|\s+$/g,"")});continue}var P=N.match(/^note\s+(left|right|top|bottom)\s+of\s+(\S+?)(?:::(\S+))?\s*$/i);if(P){var x=g(h,u);u=x.endIdx,vr.push({position:P[1].toLowerCase(),target:P[2],method:P[3]||null,text:x.text});continue}var t=N.match(/^abstract\s+(?:class\s+)?(?:"([^"]+)"|(\S+?))\s*(?:<([^>]*)>)?\s*(?:<<\s*([^>]*)\s*>>)?\s*(?:(#\S+))?\s*(?:\{)?\s*$/i);if(t){var e=t[1]||t[2],n=t[3]||null,l=t[4]||null,A=t[5]||null,D=null,V=e.match(/^(.+?)\s+as\s+(\S+)$/i);V&&(e=V[1],D=V[2]);var Q=D||e,yr=E(e);yr.generics&&(e=yr.baseName,n=n||yr.generics);var hr=_(Q,e,v,k);if(hr.kind="abstract",hr.name=e,n&&(hr.generics=n),l&&(hr.stereotype=l),A&&(hr.color=A),G.length>0&&G[G.length-1].classes.push(Q),N.indexOf("{")>=0){var ye=C(h,u,!0,!1);u=ye.endIdx,hr.members=hr.members.concat(ye.members)}d(N,Q,S,v,k,G);continue}var ae=N.match(/^\(\)\s+(?:"([^"]+)"|(\S+))(?:\s+as\s+(\S+))?\s*$/);if(ae){var We=ae[1]||ae[2],ze=ae[3]||We;if(!k.hasOwnProperty(ze)){var Na={id:ze,name:We,kind:"circle",members:[],stereotype:null,generics:null,color:null};k[ze]=v.length,v.push(Na),G.length>0&&G[G.length-1].classes.push(ze)}continue}var zr=N.match(/^(class|interface|enum|annotation|struct|protocol|exception|entity|metaclass|stereotype)\s+(?:"([^"]+)"|(\S+?))\s*(?:<([^>]*)>)?\s*(?:<<\s*([^>]*)\s*>>)?\s*(?:(#\S+(?:\s+##\S+)?))?(?:\s+extends\s+\S+)?(?:\s+implements\s+[^{]*)?\s*(?:\{)?\s*$/i);if(zr){var ea=zr[1].toLowerCase(),Qe=zr[2]||zr[3],ve=zr[4]||null,De=zr[5]||null,Ka=zr[6]||null,Ya=null,Jt=Qe.match(/^(.+?)\s+as\s+(\S+)$/i);Jt&&(Qe=Jt[1],Ya=Jt[2]);var Ce=Ya||Qe,La=E(Qe);La.generics&&(Qe=La.baseName,ve=ve||La.generics);var Ft=_(Ce,Qe,v,k);if(Ft.kind=ea,Ft.name=Qe,ve&&(Ft.generics=ve),De&&(Ft.stereotype=De),Ka&&(Ft.color=Ka),G.length>0&&G[G.length-1].classes.push(Ce),N.indexOf("{")>=0){var Ia=C(h,u,!0,ea==="enum");u=Ia.endIdx,Ft.members=Ft.members.concat(Ia.members)}d(N,Ce,S,v,k,G);continue}var Za=N.match(/^\(\s*("[^"]+"|\S+?)\s*,\s*("[^"]+"|\S+?)\s*\)\s*([-.]+)\s*("[^"]+"|\S+)\s*$/);if(Za){var Sn=Za[1].replace(/^"|"$/g,""),_a=Za[2].replace(/^"|"$/g,""),hn=Za[4].replace(/^"|"$/g,"");_(Sn,Sn,v,k),_(_a,_a,v,k),_(hn,hn,v,k),Z.push({a:Sn,b:_a,cls:hn});continue}var Qn=c(N,v,k,G);if(Qn){S.push(Qn);continue}}}}if(or&&or.toLowerCase()!=="none"){for(var Xa={},fl=0;fl<U.length;fl++)for(var ma=0;ma<U[fl].classes.length;ma++)Xa[U[fl].classes[ma]]=!0;for(var Ln={},Tn=0;Tn<v.length;Tn++){var kn=v[Tn];if(!Xa[kn.id]&&!(kn.id.indexOf(or)<0)){var Nn=kn.id.split(or),yn=Nn.pop(),Oa=Nn.join(or);yn===""||Oa===""||(Ln[Oa]||(Ln[Oa]={name:Oa,stereotype:null,classes:[]},U.push(Ln[Oa])),Ln[Oa].classes.push(kn.id),kn.name=yn)}}}return{classes:v,relationships:S,associationClasses:Z,packages:U,notes:vr,monochrome:fr,hideCircle:j,linetype:dr,title:ar}}function d(o,p,h,v,k,S){var Z=o.indexOf("{");Z>=0&&(o=o.substring(0,Z));var U=o.match(/\bextends\s+(\S+)/i);if(U){var vr=U[1].replace(/,\s*$/,""),G=vr;if(_(G,vr,v,k),S.length>0){var fr=S[S.length-1];fr.classes.indexOf(G)<0&&fr.classes.push(G)}h.push({from:p,to:G,type:"extends",fromCardinality:null,toCardinality:null,label:null,lineStyle:"solid",fromArrow:null,toArrow:"triangle",_topId:G,_botId:p})}var j=o.match(/\bimplements\s+(.+?)(?:\s*\{|\s*$)/i);if(j)for(var lr=j[1].split(/\s*,\s*/),dr=0;dr<lr.length;dr++){var gr=lr[dr].replace(/^\s+|\s+$/g,"");gr!==""&&(_(gr,gr,v,k),h.push({from:p,to:gr,type:"implements",fromCardinality:null,toCardinality:null,label:null,lineStyle:"dotted",fromArrow:null,toArrow:"triangle",_topId:gr,_botId:p}))}}function c(o,p,h,v){var k=o.match(/^(?:"([^"]+)"|(\S+))\s+\(\)([-.]+)\s+(?:"([^"]+)"|(\S+))\s*$/),S=null,Z=null;if(k)S=k[1]||k[2],Z=k[4]||k[5];else{var U=o.match(/^(?:"([^"]+)"|(\S+))\s+([-.]+)\(\)\s+(?:"([^"]+)"|(\S+))\s*$/);U&&(Z=U[1]||U[2],S=U[4]||U[5])}if(S!=null)return _(Z,Z,p,h),{from:S,to:Z,type:"lollipop",fromCardinality:null,toCardinality:null,label:null,lineStyle:"solid",fromArrow:null,toArrow:null,_topId:null,_botId:null,_sameRank:!0};var vr=null,G=null,fr=!1,j=!1;o=o.replace(/([-.])\[([^\]\[]*)\](?=[-.\w>])/,function(V,Q,yr){for(var hr=yr.split(","),ye=0;ye<hr.length;ye++){var ae=hr[ye].replace(/^\s+|\s+$/g,"");ae.charAt(0)==="#"?vr=ae:/^(dashed|dotted)$/i.test(ae)?G=ae.toLowerCase():/^bold$/i.test(ae)?j=!0:/^hidden$/i.test(ae)?fr=!0:/^thickness\s*=\s*\d+/i.test(ae)&&(j=!0)}return Q});var lr=null,dr=o.match(/-(up|down|left|right|u|d|l|r)-/i);if(dr){var gr=dr[1].toLowerCase().charAt(0);lr=gr==="u"?"up":gr==="d"?"down":gr==="l"?"left":"right"}o=o.replace(/-(up|down|left|right|u|d|l|r)-/gi,"--");for(var or=-1,ar=null,u=0;u<o.length;u++){var z=o[u];if(z==="<"||z==="*"||z==="o"||z==="+"||z==="#"||z==="-"||z==="."||z==="|"||z==="}"||z==="x"){var N=nr(o,u);if(N!=null&&N.end-u>=2){var pe=u===0||o[u-1]===" "||o[u-1]===" "||o[u-1]==='"',Hr=N.end>=o.length||o[N.end]===" "||o[N.end]===" "||o[N.end]==='"'||o[N.end]===":";if(pe&&Hr){or=u,ar=N;break}}}}if(ar==null)return null;var jr=o.substring(0,or).replace(/^\s+|\s+$/g,""),Zr=o.substring(ar.end).replace(/^\s+|\s+$/g,""),Pe=null,Ae="",be=jr.match(/^(.+?)\s+"([^"]*)"$/);if(be?(Ae=be[1].replace(/^\s+|\s+$/g,""),Pe=be[2]):Ae=jr,Ae==="")return null;for(var Mr=null,Pr="",_e=null,Qt=-1,_t=0;_t<Zr.length;_t++)if(Zr[_t]===":"){if(Zr[_t+1]===":"){_t++;continue}Qt=_t;break}Qt>=0&&(_e=Zr.substring(Qt+1).replace(/^\s+|\s+$/g,""),Zr=Zr.substring(0,Qt).replace(/^\s+|\s+$/g,""));var b=Zr.match(/^"([^"]*)"\s+(.+)$/);if(b?(Mr=b[1],Pr=b[2].replace(/^\s+|\s+$/g,"")):Pr=Zr,Pr==="")return null;if(Ae=Ae.replace(/^"|"$/g,""),Pr=Pr.replace(/^"|"$/g,""),_(Ae,Ae,p,h),_(Pr,Pr,p,h),v.length>0){var $=v[v.length-1];$.classes.indexOf(Ae)<0&&$.classes.push(Ae),$.classes.indexOf(Pr)<0&&$.classes.push(Pr)}var P=H(ar.leftDeco,ar.rightDeco,ar.lineStyle),x=F(ar.leftDeco,ar.rightDeco),t=!1;P==="extends"||P==="implements"||P==="association"||P==="dependency"?(ar.leftDeco==="triangle"||ar.leftDeco==="arrow")&&(t=!0):(P==="composition"||P==="aggregation")&&(ar.rightDeco==="diamond_filled"||ar.rightDeco==="diamond_open")&&(t=!0);var e=null,n=null,l=!1,A=lr==="left"||lr==="right"?lr:null;lr==="left"||lr==="right"||lr==null&&ar.stemLen<=1?l=!0:lr==="up"?(e=Pr,n=Ae):(e=Ae,n=Pr);var D=G||ar.lineStyle;return t?{from:Pr,to:Ae,type:P,fromCardinality:Mr,toCardinality:Pe,label:_e,lineStyle:D,color:vr,bold:j,hidden:fr,fromArrow:x.toArrow,toArrow:x.fromArrow,_topId:e,_botId:n,_sameRank:l,_side:A}:{from:Ae,to:Pr,type:P,fromCardinality:Pe,toCardinality:Mr,label:_e,lineStyle:D,color:vr,bold:j,hidden:fr,fromArrow:x.fromArrow,toArrow:x.toArrow,_topId:e,_botId:n,_sameRank:l,_side:A}}return{parse:w}})();var es=(function(){for(var Or=["package","node","folder","frame","cloud","database","storage","artifact","card","rectangle","action","agent","boundary","circle","collections","control","entity","file","hexagon","label","person","queue","stack","usecase"],_r={},qr=0;qr<Or.length;qr++)_r[Or[qr]]=!0;for(var nr=["component","interface","port","portin","portout"],H={},F=0;F<nr.length;F++)H[nr[F]]=!0;function R(c,o){var p=c.length,h=o,v="none",k="none",S=0,Z=0;for(h<p&&c[h]==="<"?(v="filled",h++):h<p&&c[h]===")"&&h+1<p&&(c[h+1]==="-"||c[h+1]===".")&&(v="socket",h++);h<p&&c[h]==="-";)S++,h++;for(;h<p&&c[h]===".";)Z++,h++;for(;h<p&&c[h]==="-";)S++,h++;for(;h<p&&c[h]===".";)Z++,h++;if(S+Z===0)return null;h<p&&c[h]===">"?(k="filled",h++):h<p&&c[h]==="("&&(h+1>=p||c[h+1]===" "||c[h+1]===" ")&&(k="socket",h++);var U;Z>0&&S===0?U="dotted":Z>0?U="dashed":U="solid";var vr;return v==="socket"||k==="socket"?vr="socket":v!=="none"&&k!=="none"?vr="bidirectional":k!=="none"||v!=="none"?vr="open":vr="none",{end:h,lineStyle:U,leftHead:v,rightHead:k,arrowHead:vr,stemLen:S+Z}}function E(c){return c==null?c:String(c).replace(/\\r\\n|\\n|\\r/g,`-`).replace(/\\t/g," ")}function O(c,o){for(;o<c.length&&(c[o]===" "||c[o]===" ");)o++;if(o>=c.length)return null;if(c[o]==="["){var p=c.indexOf("]",o+1);return p<0&&(p=c.length),{name:E(c.substring(o+1,p)),end:p+1,kind:"bracket"}}if(c[o]==='"'){var h=c.indexOf('"',o+1);return h<0&&(h=c.length),{name:E(c.substring(o+1,h)),end:h+1,kind:"bare"}}if(c[o]==="("&&o+1<c.length&&c[o+1]===")")return O(c,o+2);for(var v=o;v<c.length&&/[\w]/.test(c[v]);)v++;return v===o?null:{name:c.substring(o,v),end:v,kind:"bare"}}function C(c,o,p,h,v){if(o.hasOwnProperty(c))return c;for(var k in o)if(o.hasOwnProperty(k)&&p[o[k]].name===c)return k;var S={id:c,name:c,kind:h||"component",children:null,color:null,parent:v||null};return o[c]=p.length,p.push(S),c}function B(c,o,p,h){var v=/-\[[^\]]*hidden[^\]]*\][a-z]*-/i.test(c),k=null,S=c.match(/[-\]](up|u|down|d|left|l|right|r)-/i);S&&(k=S[1].toLowerCase().charAt(0));var Z=!1;(/\s~~+\s/.test(c)||/~~+[\s>(]/.test(c))&&(Z=!0,c=c.replace(/~~+/g,function(Pr){return new Array(Pr.length+1).join("-")}));var U=null,vr=!1,G=null,fr=c.match(/-\[([^\]]*)\][a-z]*-/i);if(fr)for(var j=fr[1].split(","),lr=0;lr<j.length;lr++){var dr=j[lr].replace(/^\s+|\s+$/g,"");dr.charAt(0)==="#"?U=dr:/^bold$/i.test(dr)||/^thickness\s*=/i.test(dr)?vr=!0:/^(dashed|dotted)$/i.test(dr)&&(G=dr.toLowerCase())}c=c.replace(/-\[[^\]]*\](?:up|down|left|right|u|d|l|r)?-/gi,"--"),c=c.replace(/-(up|down|left|right|u|d|l|r)-/gi,"--");var gr=O(c,0);if(gr==null)return null;for(var or=gr.end;or<c.length&&(c[or]===" "||c[or]===" ");)or++;if(or>=c.length)return null;var ar=R(c,or);if(ar==null)return null;for(var u=ar.end;u<c.length&&(c[u]===" "||c[u]===" ");)u++;var z=O(c,u);if(z==null)return null;var N=null,pe=z.end,Hr=c.indexOf(":",pe);Hr>=0&&(N=c.substring(Hr+1).replace(/^\s+|\s+$/g,""),N.length>=2&&N.charAt(0)==='"'&&N.charAt(N.length-1)==='"'&&(N=N.substring(1,N.length-1)),N=N.replace(/\\r\\n|\\n|\\r/g,`-`).replace(/\\t/g," "));var jr=gr.kind==="bracket"?"component":"interface",Zr=z.kind==="bracket"?"component":"interface",Pe=C(gr.name,o,p,jr,h),Ae=C(z.name,o,p,Zr,h),be=Pe,Mr=Ae;return ar.leftHead!=="none"&&ar.rightHead==="none"&&(be=Ae,Mr=Pe,k==="r"?k="l":k==="l"?k="r":k==="u"?k="d":k==="d"&&(k="u")),{from:be,to:Mr,label:N,lineStyle:G||(Z?"dotted":ar.lineStyle),arrowHead:ar.arrowHead,color:U,bold:vr,dir:k,hidden:v,span:Math.max(0,ar.stemLen-1)}}function _(c,o){for(var p=1,h=[],v=o+1;v<c.length;v++){for(var k=c[v].replace(/^\s+|\s+$/g,""),S=0;S<k.length;S++)if(k[S]==="{")p++;else if(k[S]==="}"&&(p--,p===0))return{endIdx:v,bodyLines:h};h.push(k)}return{endIdx:c.length-1,bodyLines:h}}function g(c,o){for(var p=[],h=o+1;h<c.length;h++){var v=c[h].replace(/^\s+|\s+$/g,"");if(/^end\s*note$/i.test(v))return{text:p.join(`-`),endIdx:h};p.push(v)}return{text:p.join(`-`),endIdx:c.length-1}}function w(c,o,p,h,v,k,S){for(var Z=0;Z<c.length;Z++){var U=c[Z].replace(/^\s+|\s+$/g,"");if(!(U===""||U==="}")&&U.charAt(0)!=="'"&&U.charAt(0)!=="!"){if(/^skinparam\b/i.test(U)){if(/\{\s*$/.test(U)){var vr=_(c,Z);Z=vr.endIdx}continue}var G=/^title\s+(.+)$/i.exec(U);if(G&&S){S.title=E(G[1]);continue}if(/^title\s*$/i.test(U)){for(var fr=[],j=Z+1;j<c.length&&!/^end\s*title$/i.test(c[j].replace(/^\s+|\s+$/g,""));j++)fr.push(c[j].replace(/^\s+|\s+$/g,""));Z=j,S&&(S.title=E(fr.join(`-`)));continue}if(!/^(header|footer|caption|scale|mainframe|hide|show)\b/i.test(U)&&!/^(top\s+to\s+bottom|left\s+to\s+right)\s+direction\b/i.test(U)){var lr=U.match(/^note\s+(left|right|top|bottom)\s+of\s+(?:"([^"]+)"|(\[[^\]]+\])|(\S+?))\s*:\s*(.*)$/i);if(lr&&S){S.notes.push({position:lr[1].toLowerCase(),target:lr[2]||(lr[3]?lr[3].slice(1,-1):lr[4]),text:lr[5].replace(/^\s+|\s+$/g,"").replace(/\\r\\n|\\n|\\r/g,`-`).replace(/\\t/g," ")});continue}var dr=U.match(/^note\s+(left|right|top|bottom)\s+of\s+(?:"([^"]+)"|(\[[^\]]+\])|(\S+))\s*$/i);if(dr&&S){var gr=g(c,Z);Z=gr.endIdx,S.notes.push({position:dr[1].toLowerCase(),target:dr[2]||(dr[3]?dr[3].slice(1,-1):dr[4]),text:gr.text.replace(/\\r\\n|\\n|\\r/g,`-`).replace(/\\t/g," ")});continue}var or=U.match(/^note\s+"([^"]+)"\s+as\s+(\S+)\s*$/i);if(or){var ar=or[1].replace(/\\r\\n|\\n|\\r/g,`-`).replace(/\\t/g," ");o[or[2]]=p.length,p.push({id:or[2],name:ar,kind:"note",children:null,color:null,parent:k||null});continue}var u=U.match(/^note\s+as\s+(\S+)\s*$/i);if(u){var z=g(c,Z);Z=z.endIdx,o[u[1]]=p.length,p.push({id:u[1],name:z.text.replace(/\\r\\n|\\n|\\r/g,`-`).replace(/\\t/g," "),kind:"note",children:null,color:null,parent:k||null});continue}if(/^[rh]?note\b/i.test(U)){if(!/:/.test(U)&&!/^end\s*note$/i.test(U)){var N=g(c,Z);Z=N.endIdx}continue}var pe=U.match(/^legend(?:\s+(left|right|top|bottom|center))?\s*$/i);if(pe){for(var Hr=[],jr=Z+1;jr<c.length;jr++){var Zr=c[jr].replace(/^\s+|\s+$/g,"");if(/^end\s*legend$/i.test(Zr))break;Hr.push(Zr.replace(/\\r\\n|\\n|\\r/g,`-`).replace(/\\t/g," "))}Z=jr,S&&!S.legend&&(S.legend={position:pe[1]?pe[1].toLowerCase():"center",lines:Hr});continue}var Pe=U.toLowerCase(),Ae=U.match(/^(package|node|folder|frame|cloud|database|storage|artifact|card|rectangle|action|agent|boundary|circle|collections|control|entity|file|hexagon|label|person|queue|stack|usecase)\s+(.+)$/i);if(Ae&&!/^[<>~=.-]/.test(Ae[2])){var be=Ae[1].toLowerCase(),Mr=Ae[2],Pr=null,_e=null,Qt=null,_t=0;if(Mr.charAt(0)==='"'&&Mr.charAt(1)==='"'){var b=Mr.indexOf('""',2);b<0&&(b=Mr.length),Pr=E(Mr.substring(2,b)),_t=b+2}else if(Mr.charAt(0)==='"'){var $=Mr.indexOf('"',1);$<0&&($=Mr.length),Pr=E(Mr.substring(1,$)),_t=$+1}else{for(var P=0;P<Mr.length&&Mr[P]!==" "&&Mr[P]!==" "&&Mr[P]!=="{";)P++;Pr=Mr.substring(0,P),_t=P}for(var x=Mr.substring(_t).replace(/^\s+/,""),t=null,e=!0;e;){e=!1;var n=x.match(/^<<\s*([^>]*?)\s*>>(.*)/);if(n&&t==null){t=n[1],x=n[2].replace(/^\s+/,""),e=!0;continue}var l=x.match(/^as\s+(?:"([^"]*)"|(\S+))(.*)/i);if(l&&_e==null){l[1]!==void 0?(_e=Pr,Pr=E(l[1])):_e=l[2],x=l[3].replace(/^\s+/,""),e=!0;continue}var A=x.match(/^(#\S+)(.*)/);A&&Qt==null&&(Qt=A[1],x=A[2].replace(/^\s+/,""),e=!0)}var D=_e||Pr,V=x.indexOf("{")>=0||/\{\s*$/.test(U);if(V){var Q=_(c,Z);Z=Q.endIdx;var yr={id:D,name:Pr,kind:be,children:[],color:Qt,stereotype:t,parent:k||null};h.push(yr);var hr=p.length,ye=h.length;w(Q.bodyLines,o,p,h,v,D,S);for(var ae=hr;ae<p.length;ae++)p[ae].parent===D&&yr.children.push(p[ae].id);for(var We=ye;We<h.length;We++)h[We].parent===D&&yr.children.push(h[We].id)}else{var ze={id:D,name:Pr,kind:be,children:null,color:Qt,stereotype:t,parent:k||null};o[D]=p.length,p.push(ze)}continue}var Na=U.match(/^component\s+(.+)$/i);if(Na){var zr=Na[1],ea=null,Qe=null,ve=null,De=0;if(zr.charAt(0)==='"'){var Ka=zr.indexOf('"',1);Ka<0&&(Ka=zr.length),ea=E(zr.substring(1,Ka)),De=Ka+1}else if(zr.charAt(0)==="["){var Ya=zr.indexOf("]",1);Ya<0&&(Ya=zr.length),ea=E(zr.substring(1,Ya)),De=Ya+1}else{for(var Jt=0;Jt<zr.length&&zr[Jt]!==" "&&zr[Jt]!==" "&&zr[Jt]!=="{";)Jt++;ea=zr.substring(0,Jt),De=Jt}for(var Ce=zr.substring(De).replace(/^\s+/,""),La=null,Ft=!0;Ft;){Ft=!1;var Ia=Ce.match(/^<<\s*([^>]*?)\s*>>(.*)/);if(Ia&&La==null){La=Ia[1],Ce=Ia[2].replace(/^\s+/,""),Ft=!0;continue}var Za=Ce.match(/^as\s+(?:"([^"]*)"|(\S+))(.*)/i);if(Za&&Qe==null){Za[1]!==void 0?(Qe=ea,ea=Za[1]):Qe=Za[2],Ce=Za[3].replace(/^\s+/,""),Ft=!0;continue}var Sn=Ce.match(/^(#\S+)(.*)/);Sn&&ve==null&&(ve=Sn[1],Ce=Sn[2].replace(/^\s+/,""),Ft=!0)}var _a=Qe||ea,hn=Ce.indexOf("{")>=0||/\{\s*$/.test(U);if(hn){var Qn=_(c,Z);Z=Qn.endIdx;var Xa={id:_a,name:ea,kind:"component",children:[],color:ve,stereotype:La,parent:k||null};h.push(Xa);var fl=p.length,ma=h.length;w(Qn.bodyLines,o,p,h,v,_a,S);for(var Ln=fl;Ln<p.length;Ln++)p[Ln].parent===_a&&Xa.children.push(p[Ln].id);for(var Tn=ma;Tn<h.length;Tn++)h[Tn].parent===_a&&Xa.children.push(h[Tn].id)}else{var kn={id:_a,name:ea,kind:"component",children:null,color:ve,stereotype:La,parent:k||null};o[_a]=p.length,p.push(kn)}continue}var Nn=U.match(/^(?:interface|\(\))\s+(.+)$/i);if(Nn){var yn=Nn[1],Oa=null,Un=null,vl=0;if(yn.charAt(0)==='"'){var al=yn.indexOf('"',1);al<0&&(al=yn.length),Oa=yn.substring(1,al),vl=al+1}else{for(var xn=0;xn<yn.length&&/[\w]/.test(yn[xn]);)xn++;Oa=yn.substring(0,xn),vl=xn}var ul=yn.substring(vl).replace(/^\s+/,""),Sl=ul.match(/^as\s+(\S+)/i);Sl&&(Un=Sl[1]);var Pn=Un||Oa;if(!o.hasOwnProperty(Pn)){var hl={id:Pn,name:Oa,kind:"interface",children:null,color:null,parent:k||null};o[Pn]=p.length,p.push(hl)}continue}var zl=U.match(/^actor\s+(?:"([^"]+)"|(\S+))(?:\s+as\s+(\S+))?\s*(#\S+)?\s*$/i);if(zl){var Jl=zl[1]||zl[2],eo=zl[3],Fo=zl[4]||null,Vl=eo||Jl;if(!o.hasOwnProperty(Vl)){var Uo={id:Vl,name:Jl,kind:"actor",children:null,color:Fo,parent:k||null};o[Vl]=p.length,p.push(Uo)}continue}var Tl=U.match(/^(port|portin|portout)\s+(\S+)/i);if(Tl){var to=Tl[1].toLowerCase(),fo=Tl[2],Ul=fo;if(!o.hasOwnProperty(Ul)){var Gl={id:Ul,name:fo,kind:to,children:null,color:null,parent:k||null};o[Ul]=p.length,p.push(Gl)}continue}var vo=B(U,o,p,k);if(vo!=null){v.push(vo);continue}var Zn=O(U,0);if(Zn!=null){var Kn=U.slice(Zn.end),Hl=Kn.match(/^\s*(?:as\s+(\S+))?\s*(#\S+)?\s*$/i);if(Hl&&(Zn.kind==="bracket"||/^"/.test(U))){var xa=Zn.kind==="bracket"?"component":"interface",et=Hl[1]||null,kl=Hl[2]||null;if(et)o.hasOwnProperty(et)||(o[et]=p.length,p.push({id:et,name:Zn.name,kind:xa,children:null,color:kl,parent:k||null}));else{var uo=C(Zn.name,o,p,xa,k);kl&&o.hasOwnProperty(uo)&&(p[o[uo]].color=kl)}continue}}}}}}function d(c,o){o=o||{};var p=c.split(/\r\n|\r|\n/),h=[],v={},k=[],S=[],Z={notes:[],legend:null,title:null};w(p,v,h,k,S,null,Z);var U=/^skinparam\s+monochrome\s+(true|on|yes)\s*$/im.test(c)||/^skinparam\s*\{[^}]*\bmonochrome\s+(true|on|yes)/im.test(c),vr=c.match(/^\s*(left\s+to\s+right|top\s+to\s+bottom)\s+direction\b/im),G=vr?/left/i.test(vr[1])?"LR":"TB":null,fr=c.match(/skinparam\s+defaultTextAlignment\s+(left|center|centre|right)/i),j="left";if(fr){var lr=fr[1].toLowerCase();j=lr==="centre"?"center":lr}return{nodes:h,containers:k,connections:S,notes:Z.notes,legend:Z.legend,title:Z.title,monochrome:U,direction:G,textAlign:j}}return{parse:d}})();var ts=(function(){function Or(C,B){var _=C.length,g=B,w="none",d="none",c=0,o=0;for(g+1<_&&C[g]==="<"&&C[g+1]==="|"?(w="triangle",g+=2):g<_&&C[g]==="<"?(w="filled",g++):g<_&&C[g]==="*"&&g+1<_&&(C[g+1]==="-"||C[g+1]===".")?(w="diamond_filled",g++):g<_&&C[g]==="o"&&g+1<_&&(C[g+1]==="-"||C[g+1]===".")&&(w="diamond_open",g++);g<_&&C[g]==="-";)c++,g++;for(;g<_&&C[g]===".";)o++,g++;for(;g<_&&C[g]==="-";)c++,g++;for(;g<_&&C[g]===".";)o++,g++;if(c+o===0)return null;g+1<_&&C[g]==="|"&&C[g+1]===">"?(d="triangle",g+=2):g<_&&C[g]===">"?(d="filled",g++):g<_&&(C[g]==="*"||C[g]==="o")&&(g+1>=_||C[g+1]===" "||C[g+1]===" "||C[g+1]==='"'||C[g+1]===":")&&(d=C[g]==="*"?"diamond_filled":"diamond_open",g++);var p;return o>0&&c===0?p="dotted":o>0?p="dashed":p="solid",{end:g,lineStyle:p,leftHead:w,rightHead:d}}function _r(C,B){for(;B<C.length&&(C[B]===" "||C[B]===" ");)B++;if(B>=C.length)return null;if(C[B]==='"'){var _=C.indexOf('"',B+1);return _<0&&(_=C.length),{name:C.substring(B+1,_),end:_+1}}for(var g=B;g<C.length&&/[\w]/.test(C[g]);)g++;return g===B?null:{name:C.substring(B,g),end:g}}function qr(C,B,_){if(B.hasOwnProperty(C))return C;for(var g in B)if(B.hasOwnProperty(g)&&_[B[g]].name===C)return g;var w={id:C,name:C,kind:"object",attributes:[]};return B[C]=_.length,_.push(w),C}function nr(C,B,_){var g=_r(C,0);if(g==null)return null;for(var w=g.end;w<C.length&&(C[w]===" "||C[w]===" ");)w++;if(w>=C.length)return null;var d=Or(C,w);if(d==null)return null;for(var c=d.end;c<C.length&&(C[c]===" "||C[c]===" ");)c++;var o=_r(C,c);if(o==null)return null;var p=null,h=o.end,v=C.indexOf(":",h);v>=0&&(p=C.substring(v+1).replace(/^\s+|\s+$/g,""));var k=qr(g.name,B,_),S=qr(o.name,B,_),Z=k,U=S;d.leftHead!=="none"&&d.rightHead==="none"&&(Z=S,U=k);var vr="association";return d.leftHead==="triangle"||d.rightHead==="triangle"?vr="generalization":d.leftHead==="diamond_filled"||d.rightHead==="diamond_filled"||d.leftHead==="diamond_open"||d.rightHead==="diamond_open"?(vr=d.leftHead==="diamond_filled"||d.rightHead==="diamond_filled"?"composition":"aggregation",d.rightHead==="diamond_filled"||d.rightHead==="diamond_open"?(Z=S,U=k):(Z=k,U=S)):d.leftHead==="none"&&d.rightHead==="none"&&(vr="link"),{from:Z,to:U,label:p,lineStyle:d.lineStyle,type:vr}}function H(C,B){for(var _=1,g=[],w=B+1;w<C.length;w++){for(var d=C[w].replace(/^\s+|\s+$/g,""),c=0;c<d.length;c++)if(d[c]==="{")_++;else if(d[c]==="}"&&(_--,_===0))return{endIdx:w,bodyLines:g};_>0&&g.push(d)}return{endIdx:C.length-1,bodyLines:g}}function F(C,B){for(var _=[],g=B+1;g<C.length;g++){var w=C[g].replace(/^\s+|\s+$/g,"");if(/^end\s*note$/i.test(w))return{text:_.join(`-`),endIdx:g};_.push(w)}return{text:_.join(`-`),endIdx:C.length-1}}function R(C){for(var B=[],_=0;_<C.length;_++){var g=C[_].replace(/^\s+|\s+$/g,"");if(g!==""){var w=g.indexOf("=");if(w>0){var d=g.substring(0,w).replace(/^\s+|\s+$/g,""),c=g.substring(w+1).replace(/^\s+|\s+$/g,"");B.push({name:d,value:c});continue}var o=g.indexOf(":");if(o>0){var p=g.substring(0,o).replace(/^\s+|\s+$/g,""),h=g.substring(o+1).replace(/^\s+|\s+$/g,"");B.push({name:p,value:h});continue}B.push({name:g,value:""})}}return B}function E(C){for(var B=[],_=[],g=0;g<C.length;g++){var w=C[g].replace(/^\s+|\s+$/g,"");if(w!==""){var d=w.match(/^(.+?)\s*\*?->\s*(\S+)\s*$/);if(d&&w.indexOf("=>")<0){B.push({key:d[1],value:""}),_.push({key:d[1],target:d[2]});continue}var c=w.indexOf("=>");if(c>=0){var o=w.substring(0,c).replace(/^\s+|\s+$/g,""),p=w.substring(c+2).replace(/^\s+|\s+$/g,"");B.push({key:o,value:p})}else B.push({key:w,value:""})}}return{entries:B,links:_}}function O(C,B){B=B||{};var _=C.split(/\r\n|\r|\n/),g=[],w={},d=[],c=[],o=[],p=[],h=[];function v(Qe,ve){var De={name:Qe,stereotype:ve||null,objects:[]};p.push(De),h.push(De)}function k(){return h.length>0?h[h.length-1]:null}for(var S=0;S<_.length;S++){var Z=_[S],U=Z.replace(/^\s+|\s+$/g,"");if(U!==""&&U.charAt(0)!=="'"&&U.charAt(0)!=="!"){var vr=U.match(/^(package|namespace)\s+(?:"([^"]+)"|(\S+?))(?:\s*<<([^>]+)>>)?\s*\{\s*$/i);if(vr){v(vr[2]||vr[3],vr[4]||null);continue}if(U==="}"&&h.length>0){h.pop();continue}if(/^skinparam\b/i.test(U)){if(/\{\s*$/.test(U)){var G=H(_,S);S=G.endIdx}continue}if(!/^(title|header|footer|caption|scale|mainframe|hide|show)\b/i.test(U)&&!/^(top\s+to\s+bottom|left\s+to\s+right)\s+direction\b/i.test(U)){var fr=U.match(/^note\s+(left|right|top|bottom)\s+of\s+(?:"([^"]+)"|(\S+?))\s*:\s*(.*)$/i);if(fr){o.push({position:fr[1].toLowerCase(),target:fr[2]||fr[3],text:fr[4].replace(/^\s+|\s+$/g,"").replace(/\\r\\n|\\n|\\r/g,`-`).replace(/\\t/g," ")});continue}var j=U.match(/^note\s+(left|right|top|bottom)\s+of\s+(?:"([^"]+)"|(\S+))\s*$/i);if(j){var lr=F(_,S);S=lr.endIdx,o.push({position:j[1].toLowerCase(),target:j[2]||j[3],text:lr.text.replace(/\\r\\n|\\n|\\r/g,`-`).replace(/\\t/g," ")});continue}if(/^[rh]?note\b/i.test(U)){if(!/:/.test(U)&&!/^end\s*note$/i.test(U)){var dr=F(_,S);S=dr.endIdx}continue}var gr=U.match(/^map\s+(.+)$/i);if(gr){var or=gr[1],ar=null,u=null,z=0;if(or.charAt(0)==='"'){var N=or.indexOf('"',1);N<0&&(N=or.length),ar=or.substring(1,N),z=N+1}else{for(var pe=0;pe<or.length&&/[\w]/.test(or[pe]);)pe++;ar=or.substring(0,pe),z=pe}var Hr=or.substring(z).replace(/^\s+/,""),jr=Hr.match(/^as\s+(\S+)(.*)/i);jr&&(u=jr[1],Hr=jr[2].replace(/^\s+/,""));var Zr=u||ar,Pe=Hr.indexOf("{")>=0||/\{\s*$/.test(U);if(Pe){var Ae=H(_,S);S=Ae.endIdx;var be=E(Ae.bodyLines),Mr={id:Zr,name:ar,entries:be.entries};d.push(Mr),w[Zr]=g.length,g.push({id:Zr,name:ar,kind:"map",attributes:[]});for(var Pr=0;Pr<be.links.length;Pr++){var _e=qr(be.links[Pr].target,w,g);c.push({from:Zr,to:_e,label:null,lineStyle:"solid",type:"association",fromRow:be.links[Pr].key})}}else{var Qt={id:Zr,name:ar,entries:[]};d.push(Qt),w[Zr]=g.length,g.push({id:Zr,name:ar,kind:"map",attributes:[]})}continue}var _t=U.match(/^object\s+(.+)$/i);if(_t){var b=_t[1],$=null,P=null,x=null,t=0;if(b.charAt(0)==='"'){var e=b.indexOf('"',1);e<0&&(e=b.length),$=b.substring(1,e),t=e+1}else{for(var n=0;n<b.length&&/[\w]/.test(b[n]);)n++;$=b.substring(0,n),t=n}var l=b.substring(t).replace(/^\s+/,""),A=l.match(/^as\s+(\S+)(.*)/i);A&&(P=A[1],l=A[2].replace(/^\s+/,""));for(var D=null,V=!0;V;){V=!1;var Q=l.match(/^<<\s*([^>]*?)\s*>>(.*)/);if(Q&&D==null){D=Q[1],l=Q[2].replace(/^\s+/,""),V=!0;continue}var yr=l.match(/^(#\S+)(.*)/);yr&&x==null&&(x=yr[1],l=yr[2].replace(/^\s+/,""),V=!0)}var hr=P||$,ye=l.indexOf("{")>=0||/\{\s*$/.test(U);if(ye){var ae=H(_,S);S=ae.endIdx;var We=R(ae.bodyLines);if(w.hasOwnProperty(hr)){var Na=g[w[hr]];Na.attributes=We}else{w[hr]=g.length,g.push({id:hr,name:$,kind:"object",color:x,stereotype:D,attributes:We});var ze=k();ze&&ze.objects.push(hr)}}else if(!w.hasOwnProperty(hr)){w[hr]=g.length,g.push({id:hr,name:$,kind:"object",color:x,stereotype:D,attributes:[]});var zr=k();zr&&zr.objects.push(hr)}continue}var ea=nr(U,w,g);if(ea!=null){c.push(ea);continue}}}}return{objects:g,maps:d,links:c,notes:o,packages:p}}return{parse:O}})();var as=(function(){function Or(_){var g=_.match(/<<\s*([^>]*?)\s*>>/);return g?{stereotype:g[1],rest:_.substring(0,g.index)+_.substring(g.index+g[0].length)}:null}function _r(_){var g=_.match(/#([A-Za-z0-9]+)/);return g?{color:"#"+g[1],rest:_.substring(0,g.index)+_.substring(g.index+g[0].length)}:null}function qr(_){var g=_.match(/\bas\s+(\S+)/i);return g?{alias:g[1],rest:_.substring(0,g.index)+_.substring(g.index+g[0].length)}:null}function nr(_,g,w,d,c){if(w.hasOwnProperty(_))return{kind:"actor",id:_};if(c.hasOwnProperty(_))return{kind:"usecase",id:_};for(var o in w)if(w.hasOwnProperty(o)&&g[w[o]].name===_)return{kind:"actor",id:o};for(var p in c)if(c.hasOwnProperty(p)&&d[c[p]].name===_)return{kind:"usecase",id:p};return null}function H(_,g,w,d,c,o){return c.hasOwnProperty(_)?o&&(d[c[_]].color=o):(c[_]=d.length,d.push({id:_,name:g,stereotype:w||null,color:o||null})),_}function F(_,g,w,d,c,o){return c.hasOwnProperty(_)?o&&(d[c[_]].color=o):(c[_]=d.length,d.push({id:_,name:g,stereotype:w||null,color:o||null})),_}function R(_,g){if(!g)return null;for(var w=_.replace(/^\s+|\s+$/g,""),d=0;d<g.length;d++)if(g[d].position==="floating"&&g[d].target===w)return g[d];return null}function E(_,g,w,d,c,o){for(var p=[{re:/\s+(-+)\|>\s+/,type:"generalization",directed:!0},{re:/\s+<\|(-+)\s+/,type:"generalization",reverse:!0,directed:!0},{re:/\s+(\.+)>\s+/,type:"dependency",directed:!0},{re:/\s+<(\.+)\s+/,type:"dependency",reverse:!0,directed:!0},{re:/\s+(-+)>\s+/,type:"association",directed:!0},{re:/\s+<(-+)\s+/,type:"association",reverse:!0,directed:!0},{re:/\s+(\.{2,})\s+/,type:"dependency",directed:!1},{re:/\s+(-{2,})\s+/,type:"association",directed:!1}],h=0;h<p.length;h++){var v=p[h],k=_.match(v.re);if(k){var S=_.substring(0,k.index).replace(/^\s+|\s+$/g,""),Z=_.substring(k.index+k[0].length).replace(/^\s+|\s+$/g,""),U=null,vr=null,G=Z.indexOf(":");if(G>=0){var fr=Z.substring(G+1).replace(/^\s+|\s+$/g,"");Z=Z.substring(0,G).replace(/^\s+|\s+$/g,"");var j=Or(fr);j?(vr=j.stereotype,U=j.rest.replace(/^\s+|\s+$/g,"")||null):U=fr||null}var lr=O(S,g,w,d,c,o),dr=O(Z,g,w,d,c,o),gr=R(S,o),or=R(Z,o);if(gr&&!or&&dr!=null)return gr.anchor=dr,gr.linkType=v.type==="dependency"?"..":"--",null;if(or&&!gr&&lr!=null)return or.anchor=lr,or.linkType=v.type==="dependency"?"..":"--",null;if(lr==null||dr==null)continue;var ar=v.reverse?dr:lr,u=v.reverse?lr:dr;return{from:ar,to:u,type:v.type,directed:v.directed!==!1,stereotype:vr,label:U,span:Math.max(0,k[1].length-1)}}}return null}function O(_,g,w,d,c,o){if(_=_.replace(/^\s+|\s+$/g,""),_==="")return null;if(o){for(var p=0;p<o.length;p++)if(o[p].position==="floating"&&o[p].target===_)return null}var h=_.match(/^:([^:]+):$/);if(h){var v=h[1].replace(/^\s+|\s+$/g,""),k=v;for(var S in w)if(w.hasOwnProperty(S)&&g[w[S]].name===v)return S;return H(k,v,null,g,w)}var Z=_.match(/^\(([^)]+)\)$/);if(Z){var U=Z[1].replace(/^\s+|\s+$/g,""),vr=U;for(var G in c)if(c.hasOwnProperty(G)&&d[c[G]].name===U)return G;return F(vr,U,null,d,c)}var fr=nr(_,g,w,d,c);return fr?fr.id:H(_,_,null,g,w)}function C(_,g){for(var w=[],d=g+1;d<_.length;d++){var c=_[d].replace(/^\s+|\s+$/g,"");if(c.toLowerCase()==="end note")return{text:w.join(`-`),endIdx:d};w.push(_[d])}return{text:w.join(`-`),endIdx:_.length-1}}function B(_,g){g=g||{};for(var w=_.split(/\r\n|\r|\n/),d=[],c={},o=[],p={},h=[],v=[],k=[],S=null,Z=[],U=0;U<w.length;U++){var vr=w[U],G=vr.replace(/^\s+|\s+$/g,"");if(G!==""){if(/^(usecase|actor)\b/i.test(G)&&G.split('"').length%2===0)for(;U+1<w.length;){U++;var fr=w[U].replace(/^\s+|\s+$/g,"");if(G+="\\n"+fr,fr.indexOf('"')>=0)break}if(G.charAt(0)!=="'"&&G.charAt(0)!=="!"){if(/^skinparam\b/i.test(G)){if(/\{\s*$/.test(G))for(var j=1;j>0&&U+1<w.length;){U++;var lr=w[U].replace(/^\s+|\s+$/g,"");lr.indexOf("{")>=0&&j++,lr.indexOf("}")>=0&&j--}continue}if(!/^(title|header|footer|caption|scale|mainframe|hide|show)\b/i.test(G)){var dr=G.match(/^(top\s+to\s+bottom|left\s+to\s+right)\s+direction\b/i);if(dr){S=/left/i.test(dr[1])?"LR":"TB";continue}var gr=G.toLowerCase(),or=G.match(/^(rectangle|package)\s+(?:"([^"]+)"|([^"\s{]+))(?:\s+as\s+(\S+))?\s*\{?\s*$/i);if(or){var ar=or[2]||or[3],u=or[4]||null,z={name:ar,alias:u,kind:or[1].toLowerCase(),children:[]};h.push(z),Z.push(z);continue}if(G==="}"){Z.length>0&&Z.pop();continue}G=G.replace(/^(actor|usecase)\/(?=\s)/i,"$1");var N=G.match(/^actor\s+"?([^"]+?)"?\s+as\s+(\S+)(.*)$/i);if(N){var Qt=N[1],_t=N[2],b=N[3]||"",$=null,P=Or(b);P&&($=P.stereotype),H(_t,Qt,$,d,c),Z.length>0&&Z[Z.length-1].children.push(_t);continue}else{if(N=G.match(/^actor\s+"([^"]+)"(.*)$/i),N){var pe=N[1],Hr=N[2]||"",jr=null,Zr=Or(Hr);Zr&&(jr=Zr.stereotype);var Pe=pe;H(Pe,pe,jr,d,c),Z.length>0&&Z[Z.length-1].children.push(Pe);continue}if(N=G.match(/^actor\s+(\S+)(.*)$/i),N){var Ae=N[1],be=N[2]||"",Mr=null,Pr=Or(be);Pr&&(Mr=Pr.stereotype);var _e=be.match(/(#\S+)/);H(Ae,Ae,Mr,d,c,_e?_e[1]:null),Z.length>0&&Z[Z.length-1].children.push(Ae);continue}}var x=G.match(/^usecase\s+"([^"]+)"\s+as\s+(\S+)(.*)$/i);if(x){var Na=x[1],zr=x[2],ea=x[3]||"",Qe=null,ve=Or(ea);ve&&(Qe=ve.stereotype),F(zr,Na,Qe,o,p),Z.length>0&&Z[Z.length-1].children.push(zr);continue}else{if(x=G.match(/^usecase\s+"([^"]+)"(.*)$/i),x){var t=x[1],e=x[2]||"",n=null,l=Or(e);l&&(n=l.stereotype);var A=t;F(A,t,n,o,p),Z.length>0&&Z[Z.length-1].children.push(A);continue}var D=G.match(/^usecase\s+(\S+)\s+as\s+"([^"]+)"(.*)$/i);if(D){var V=D[1],Q=D[2],yr=null,hr=Or(D[3]||"");hr&&(yr=hr.stereotype),F(V,Q,yr,o,p),Z.length>0&&Z[Z.length-1].children.push(V);continue}if(x=G.match(/^usecase\s+(\S+)(.*)$/i),x){var ye=x[1],ae=x[2]||"",We=null,ze=Or(ae);ze&&(We=ze.stereotype),F(ye,ye,We,o,p),Z.length>0&&Z[Z.length-1].children.push(ye);continue}}var De=G.match(/^:([^:]+):\s*(?:as\s+(\S+))?\s*(<<[^>]*>>)?\s*$/);if(De){var Ka=De[1].replace(/^\s+|\s+$/g,""),Ya=De[2]||null,Jt=null;if(De[3]){var Ce=De[3].match(/<<\s*([^>]*?)\s*>>/);Ce&&(Jt=Ce[1])}var La=Ya||Ka;H(La,Ka,Jt,d,c),Z.length>0&&Z[Z.length-1].children.push(La);continue}var Ft=G.match(/^\(([^)]+)\)\s*(?:as\s+(\S+))?\s*(<<[^>]*>>)?\s*(#\S+)?\s*$/);if(Ft){var Ia=Ft[1].replace(/^\s+|\s+$/g,""),Za=Ft[2]||null,Sn=null;if(Ft[3]){var _a=Ft[3].match(/<<\s*([^>]*?)\s*>>/);_a&&(Sn=_a[1])}var hn=Za||Ia;F(hn,Ia,Sn,o,p,Ft[4]||null),Z.length>0&&Z[Z.length-1].children.push(hn);continue}var Qn=G.match(/^note\s+(right|left|top|bottom)\s+of\s+(.+?)\s*:\s*(.+)$/i);if(Qn){var Xa=Qn[1].toLowerCase(),fl=Qn[2].replace(/^\s+|\s+$/g,""),ma=Qn[3].replace(/^\s+|\s+$/g,""),Ln=fl,Tn=fl.match(/^:([^:]+):$/),kn=fl.match(/^\(([^)]+)\)$/);Tn?Ln=Tn[1].replace(/^\s+|\s+$/g,""):kn&&(Ln=kn[1].replace(/^\s+|\s+$/g,"")),k.push({position:Xa,target:Ln,text:ma});continue}var Nn=G.match(/^note\s+"([^"]+)"\s+as\s+(\S+)/i);if(Nn){var yn=Nn[1],Oa=Nn[2];k.push({position:"floating",target:Oa,text:yn});continue}var Un=G.match(/^note\s+(right|left|top|bottom)\s+of\s+(.+)$/i);if(Un){var vl=Un[1].toLowerCase(),al=Un[2].replace(/^\s+|\s+$/g,""),xn=al.match(/^:([^:]+):$/),ul=al.match(/^\(([^)]+)\)$/);xn?al=xn[1].replace(/^\s+|\s+$/g,""):ul&&(al=ul[1].replace(/^\s+|\s+$/g,""));var Sl=C(w,U);U=Sl.endIdx,k.push({position:vl,target:al,text:Sl.text});continue}var Pn=E(G,d,c,o,p,k);if(Pn){if(Z.length>0){var hl=Z[Z.length-1];hl.children.indexOf(Pn.from)<0&&(c.hasOwnProperty(Pn.from)||p.hasOwnProperty(Pn.from))&&hl.children.push(Pn.from),hl.children.indexOf(Pn.to)<0&&(c.hasOwnProperty(Pn.to)||p.hasOwnProperty(Pn.to))&&hl.children.push(Pn.to)}v.push(Pn);continue}}}}}return{actors:d,usecases:o,containers:h,relationships:v,notes:k,direction:S}}return{parse:B}})();var ns=(function(){function Or(H,F,R,E){return{label:H,color:F||null,side:R||"right",style:E||null,children:[]}}function _r(H){var F=H.match(/^(\*+)(.*)$/);if(!F)return null;var R=F[1].length,E=F[2],O=null,C=null;E.length>0&&E.charAt(0)==="_"&&(C="leaf",E=E.substring(1));var B=E.match(/^\[#([A-Za-z0-9]+)\]/);B&&(O="#"+B[1],E=E.substring(B[0].length)),C==null&&E.length>0&&E.charAt(0)==="_"&&(C="leaf",E=E.substring(1));var _=E.replace(/^\s+|\s+$/g,"");return _===""&&(_=""),{depth:R,label:_,color:O,style:C}}function qr(H){var F=H.match(/^([+-]+)(.*)$/);if(!F)return null;var R=F[1],E=R.length,O=R.charAt(0)==="+"?"right":"left",C=F[2],B=null,_=null;C.length>0&&C.charAt(0)==="_"&&(_="leaf",C=C.substring(1));var g=C.match(/^\[#([A-Za-z0-9]+)\]/);g&&(B="#"+g[1],C=C.substring(g[0].length)),_==null&&C.length>0&&C.charAt(0)==="_"&&(_="leaf",C=C.substring(1));var w=C.replace(/^\s+|\s+$/g,"");return{depth:E,label:w,color:B,side:O,style:_}}function nr(H,F){F=F||{};var R=H.split(/\r\n|\r|\n/),E=[],O=null,C=null,B=null,_=null,g=null,w=null,d=[],c="right",o=!1,p=null;function h(be,Mr,Pr){be==="title"?C=Pr:be==="caption"?g=Pr:be==="header"?B={text:Pr,align:Mr||"right"}:be==="footer"&&(_={text:Pr,align:Mr||"center"})}for(var v=0;v<R.length;v++){var k=R[v],S=k.replace(/^\s+|\s+$/g,"");if(w!=null){new RegExp("^end\\s*"+w.kind+"\\b","i").test(S)?(h(w.kind,w.align,w.lines.join(`-`)),w=null):w.lines.push(S);continue}if(S!==""&&S.charAt(0)!=="'"&&S.charAt(0)!=="!"){if(/^skinparam\b/i.test(S)){if(/\{\s*$/.test(S))for(var Z=1;Z>0&&v+1<R.length;){v++;var U=R[v].replace(/^\s+|\s+$/g,"");U.indexOf("{")>=0&&Z++,U.indexOf("}")>=0&&Z--}continue}if(o){S===";"?(o=!1,p=null):p&&(p.label+=`-`+S);continue}if(!/^scale\b/i.test(S)){var vr=S.match(/^(?:(center|left|right)\s+)?(title|header|footer|caption)\b\s*:?\s*(.*)$/i);if(vr!=null){var G=vr[1]?vr[1].toLowerCase():null,fr=vr[2].toLowerCase(),j=vr[3].replace(/\s+$/,"");j!==""?h(fr,G,j):fr!=="caption"&&(w={kind:fr,align:G,lines:[]});continue}if(/^left\s+side\b/i.test(S)){c="left";continue}if(/^right\s+side\b/i.test(S)){c="right";continue}var lr=_r(S);if(lr){var dr=c;lr.depth===1&&(dr="right");var gr=lr.label,or=!1;gr.length>0&&gr.charAt(0)===":"&&(gr=gr.substring(1).replace(/^\s+/,""),gr.length>0&&gr.charAt(gr.length-1)===";"?gr=gr.substring(0,gr.length-1).replace(/\s+$/,""):or=!0);var ar=Or(gr,lr.color,dr,lr.style);if(lr.depth===1)O=ar,E.push(ar),d=[null,O];else if(O!=null){var u=lr.depth-1;u>=1&&u<d.length&&d[u]!=null?d[u].children.push(ar):O.children.push(ar),d[lr.depth]=ar;for(var z=lr.depth+1;z<d.length;z++)d[z]=null;for(;d.length<=lr.depth;)d.push(null);d[lr.depth]=ar}or&&(o=!0,p=ar);continue}var N=qr(S);if(N){var pe=N.side,Hr=N.label,jr=!1;Hr.length>0&&Hr.charAt(0)===":"&&(Hr=Hr.substring(1).replace(/^\s+/,""),Hr.length>0&&Hr.charAt(Hr.length-1)===";"?Hr=Hr.substring(0,Hr.length-1).replace(/\s+$/,""):jr=!0);var Zr=Or(Hr,N.color,pe,N.style);if(N.depth===1)O=Zr,E.push(Zr),d=[null,O];else if(O!=null){var Pe=N.depth-1;for(Pe>=1&&Pe<d.length&&d[Pe]!=null?d[Pe].children.push(Zr):O.children.push(Zr);d.length<=N.depth;)d.push(null);d[N.depth]=Zr;for(var Ae=N.depth+1;Ae<d.length;Ae++)d[Ae]=null}jr&&(o=!0,p=Zr);continue}}}}return w!=null&&h(w.kind,w.align,w.lines.join(`-`)),E.length===0&&E.push(Or("",null,"right",null)),{roots:E,root:E[0],title:C,header:B,footer:_,caption:g}}return{parse:nr}})();var ls=(function(){function Or(nr,H,F){return{label:nr,style:H||null,color:F||null,children:[]}}function _r(nr){var H=nr.match(/^(\*+)(.*)$/);if(!H)return null;var F=H[1].length,R=H[2],E=null,O=null;R.length>0&&R.charAt(0)==="_"&&(E="leaf",R=R.substring(1));var C=R.match(/^\[#([A-Za-z0-9]+)\]/);C&&(O="#"+C[1],R=R.substring(C[0].length));var B=R.replace(/^\s+|\s+$/g,"");return{depth:F,label:B,style:E,color:O}}function qr(nr,H){H=H||{};for(var F=nr.split(/\r\n|\r|\n/),R=null,E=[],O=!1,C=null,B=0;B<F.length;B++){var _=F[B],g=_.replace(/^\s+|\s+$/g,"");if(g!==""&&g.charAt(0)!=="'"&&g.charAt(0)!=="!"){if(/^skinparam\b/i.test(g)){if(/\{\s*$/.test(g))for(var w=1;w>0&&B+1<F.length;){B++;var d=F[B].replace(/^\s+|\s+$/g,"");d.indexOf("{")>=0&&w++,d.indexOf("}")>=0&&w--}continue}if(!/^(title|header|footer|caption|scale)\b/i.test(g)){if(O){g===";"?(O=!1,C=null):C&&(C.label+=`-`+g);continue}var c=_r(g);if(c){var o=c.label,p=!1;o.length>0&&o.charAt(0)===":"&&(o=o.substring(1).replace(/^\s+/,""),o.length>0&&o.charAt(o.length-1)===";"?o=o.substring(0,o.length-1).replace(/\s+$/,""):p=!0);var h=Or(o,c.style,c.color);if(c.depth===1)R=h,E=[null,R];else if(R!=null){var v=c.depth-1;for(v>=1&&v<E.length&&E[v]!=null?E[v].children.push(h):R.children.push(h);E.length<=c.depth;)E.push(null);E[c.depth]=h;for(var k=c.depth+1;k<E.length;k++)E[k]=null}p&&(O=!0,C=h);continue}}}}return R==null&&(R=Or("",null,null)),{root:R}}return{parse:qr}})();var os=(function(){function Or(_r,qr){qr=qr||{};for(var nr=_r.split(/\r\n|\r|\n/),H=null,F=null,R=[],E=[],O={},C=null,B=/^skinparam\s+monochrome\s+(true|on|yes)\s*$/im.test(_r)||/^skinparam\s*\{[^}]*\bmonochrome\s+(true|on|yes)/im.test(_r),_=0;_<nr.length;_++){var g=nr[_].replace(/^\s+|\s+$/g,"");if(g!==""&&g.charAt(0)!=="'"&&g.charAt(0)!=="!"){var w=g.match(/^Project\s+starts\s+(\d{4}-\d{2}-\d{2})/i);if(w){H=w[1];continue}var d=g.match(/^(?:printscale|ganttscale|project\s+scale)\s+(daily|weekly|monthly|quarterly|yearly)\b/i);if(d){F=d[1].toLowerCase();continue}if(!/^(printscale|ganttscale|project\s+scale)\b/i.test(g)){var c=g.match(/^(monday|tuesday|wednesday|thursday|friday|saturday|sunday)\s+(?:are|is)\s+closed\b/i);if(c){R.push(c[1].toLowerCase());continue}if(!/^separator\b/i.test(g)&&!/^--/i.test(g)&&!/^(today|close)\b/i.test(g)){var o=g.match(/^\[([^\]]+)\](?:\s+as\s+\[([^\]]+)\])?\s+happens\s+at\s+\[([^\]]+)\]'s\s+end/i);if(o){var p=o[1],h=o[2]||null,v=o[3],k=h||p;O.hasOwnProperty(k)?(E[O[k]].after=v,E[O[k]].isMilestone=!0):(O[k]=E.length,h&&(O[p]=E.length),E.push({name:p,alias:h,duration:0,start:null,after:v,color:null,isMilestone:!0}));continue}var S=g.match(/^(then\s+)?\[([^\]]+)\](?:\s+as\s+\[([^\]]+)\])?(?:\s+on\s+\{([^}]+)\})?\s+(?:lasts|requires)\s+(\d+)\s+(days?|weeks?)(?:\s+and\s+is\s+(\d+)%\s+complete)?(?:\s+and\s+is\s+colored\s+in\s+(\S+(?:\/\S+)?))?/i);if(S){var Z=S[1],U=S[2],vr=S[3]||null,G=S[4]||null,fr=parseInt(S[5],10),j=S[6].toLowerCase(),lr=S[7]!=null?parseInt(S[7],10):null,dr=S[8]||null,gr=j==="week"||j==="weeks"?fr*7:fr,or=Z?C:null,ar=vr||U;if(!O.hasOwnProperty(ar))O[ar]=E.length,vr&&(O[U]=E.length),E.push({name:U,alias:vr,duration:gr,start:null,after:or,color:dr,isMilestone:!1,resource:G,progress:lr});else{var u=E[O[ar]];u.duration=gr,dr&&(u.color=dr),G&&(u.resource=G),lr!=null&&(u.progress=lr),or&&!u.after&&(u.after=or)}C=ar;continue}var z=g.match(/^\[([^\]]+)\]\s+is\s+(\d+)%\s+complete\s*$/i);if(z&&O.hasOwnProperty(z[1])){E[O[z[1]]].progress=parseInt(z[2],10);continue}if(!/^\[[^\]]+\]\s+links\s+to\s+\[\[[^\]]+\]\]/i.test(g)){var N=g.match(/^\[([^\]]+)\]\s+starts\s+at\s+\[([^\]]+)\]'s\s+end(?:\s+and\s+(?:lasts|requires)\s+(\d+)\s+(days?|weeks?))?/i);if(N){var pe=N[1],Hr=N[2],jr=N[3]!=null?/week/i.test(N[4])?parseInt(N[3],10)*7:parseInt(N[3],10):null;O.hasOwnProperty(pe)?(E[O[pe]].after=Hr,jr!=null&&(E[O[pe]].duration=jr)):(O[pe]=E.length,E.push({name:pe,duration:jr??0,start:null,after:Hr,color:null,isMilestone:!1}));continue}var Zr=g.match(/^\[([^\]]+)\]\s+starts\s+(\d{4}-\d{2}-\d{2})(?:\s+and\s+(?:lasts|requires)\s+(\d+)\s+(days?|weeks?))?/i);if(Zr){var Pe=Zr[1],Ae=Zr[2],be=Zr[3]!=null?/week/i.test(Zr[4])?parseInt(Zr[3],10)*7:parseInt(Zr[3],10):null;O.hasOwnProperty(Pe)?(E[O[Pe]].start=Ae,be!=null&&(E[O[Pe]].duration=be)):(O[Pe]=E.length,E.push({name:Pe,duration:be??0,start:Ae,after:null,color:null,isMilestone:!1}));continue}var Mr=g.match(/^\[([^\]]+)\]\s+is\s+colored\s+in\s+(\S+(?:\/\S+)?)/i);if(Mr){var Pr=Mr[1],_e=Mr[2];O.hasOwnProperty(Pr)?E[O[Pr]].color=_e:(O[Pr]=E.length,E.push({name:Pr,duration:0,start:null,after:null,color:_e,isMilestone:!1}));continue}}}}}}return{projectStart:H,printScale:F,closedWeekdays:R,tasks:E,monochrome:B}}return{parse:Or}})();var is=(function(){function Or(_r,qr){qr=qr||{};for(var nr=_r.split(/\r\n|\r|\n/),H=[],F={},R=0,E=-1,O=[],C=[],B=/^skinparam\s+monochrome\s+(true|on|yes)\s*$/im.test(_r)||/^skinparam\s*\{[^}]*\bmonochrome\s+(true|on|yes)/im.test(_r),_=0;_<nr.length;_++){var g=nr[_].replace(/^\s+|\s+$/g,"");if(g!==""&&g.charAt(0)!=="'"&&g.charAt(0)!=="!"){if(/^skinparam\b/i.test(g)){if(/\{\s*$/.test(g))for(var w=1;w>0&&_+1<nr.length;){_++;var d=nr[_].replace(/^\s+|\s+$/g,"");d.indexOf("{")>=0&&w++,d.indexOf("}")>=0&&w--}continue}if(!/^(title|header|footer|caption|scale|hide|show)\b/i.test(g)){var c=g.match(/^(robust|concise)\s+"([^"]+)"\s+as\s+(\S+)/i);if(c){var o=c[1].toLowerCase(),p=c[2],h=c[3];F[h]=H.length,F[p]=H.length,H.push({name:p,alias:h,kind:o,transitions:[]});continue}var v=g.match(/^clock\s+"([^"]+)"\s+as\s+(\S+)(?:\s+with\s+period\s+(\d+))?/i);if(v){var k=v[1],S=v[2],Z=v[3]?parseInt(v[3],10):100;F[S]=H.length,F[k]=H.length,H.push({name:k,alias:S,kind:"clock",period:Z,transitions:[]});continue}var U=g.match(/^binary\s+"([^"]+)"\s+as\s+(\S+)/i);if(U){var vr=U[1],G=U[2];F[G]=H.length,F[vr]=H.length,H.push({name:vr,alias:G,kind:"binary",transitions:[]});continue}var fr=g.match(/^highlight\s+([+\-]?\d+)\s+to\s+([+\-]?\d+)(?:\s+(#\S+))?(?:\s*:\s*(.+))?$/i);if(fr){C.push({from:parseInt(fr[1],10),to:parseInt(fr[2],10),color:fr[3]||null,label:fr[4]?fr[4].replace(/^\s+|\s+$/g,""):null});continue}var j=g.match(/^@([+\-]?\d+)\s*<->\s*@([+\-]?\d+)\s*:\s*(.+)$/);if(j){var lr=parseInt(j[1],10),dr=j[2],gr;dr.charAt(0)==="+"||dr.charAt(0)==="-"?gr=lr+parseInt(dr,10):gr=parseInt(dr,10),O.push({from:lr,to:gr,label:j[3].replace(/^\s+|\s+$/g,"")});continue}var or=g.match(/^@([A-Za-z_][\w]*)\s*$/);if(or&&F.hasOwnProperty(or[1])){E=F[or[1]];continue}var ar=g.match(/^@([+\-]?\d+)\s*$/);if(ar){var u=parseInt(ar[1],10);ar[1].charAt(0)==="+"||ar[1].charAt(0)==="-"?R+=u:R=u;continue}var z=g.match(/^([+\-]?\d+)\s+is\s+(.+)$/i);if(z&&E>=0){var N=z[1],pe=z[2].replace(/^\s+|\s+$/g,"");N.charAt(0)==="+"||N.charAt(0)==="-"?R+=parseInt(N,10):R=parseInt(N,10),H[E].transitions.push({time:R,state:pe});continue}var Hr=g.match(/^(\S+)\s+is\s+(.+)$/i);if(Hr){var jr=Hr[1],Zr=Hr[2].replace(/^\s+|\s+$/g,"");F.hasOwnProperty(jr)&&H[F[jr]].transitions.push({time:R,state:Zr});continue}}}}return{signals:H,constraints:O,highlights:C,monochrome:B}}return{parse:Or}})();var ss=(function(){function Or(_r,qr){qr=qr||{};for(var nr=_r.split(/\r\n|\r|\n/),H=[],F=[],R=!1,E=0;E<nr.length;E++){var O=nr[E].replace(/^\s+|\s+$/g,"");if(O===""){R&&F.push(nr[E]);continue}if(O.charAt(0)!=="'"){if(/^@(end|start)(json|yaml|uml)\b/i.test(O)){if(/^@end/i.test(O))break;continue}var C=O.match(/^#highlight\s+(.+)$/i);if(C&&!R){for(var B=C[1].replace(/^\s+|\s+$/g,""),_=B.split(/\s*\/\s*/),g=[],w=0;w<_.length;w++){var d=_[w].replace(/^\s+|\s+$/g,"");d.length>=2&&d.charAt(0)==='"'&&d.charAt(d.length-1)==='"'&&(d=d.substring(1,d.length-1)),d!==""&&g.push(d)}g.length>0&&H.push(g.join("/"));continue}!R&&(O.charAt(0)==="{"||O.charAt(0)==="[")&&(R=!0),R&&F.push(nr[E])}}var c=F.join(`-`).replace(/^\s+|\s+$/g,""),o=null;if(c!=="")try{o=JSON.parse(c)}catch(p){o={_parseError:p.message,_raw:c}}return{data:o,highlights:H}}return{parse:Or}})();var fs=(function(){function Or(nr){for(var H=nr.split(/\r\n|\r|\n/),F={},R=[{indent:-1,obj:F,isArray:!1}],E=0;E<H.length;E++){var O=H[E],C=O.replace(/^\s+|\s+$/g,"");if(!(C===""||C.charAt(0)==="#")){for(var B=0;B<O.length&&O.charAt(B)===" ";)B++;for(;R.length>1&&R[R.length-1].indent>=B;)R.pop();var _=R[R.length-1];if(C.charAt(0)==="-"){var g=C.substring(1).replace(/^\s+|\s+$/g,"");if(!_.isArray){if(_.pendingKey!=null){var w=[];_.obj[_.pendingKey]=w,R.push({indent:B,obj:w,isArray:!0,pendingKey:null}),_=R[R.length-1]}else if(_.parentObj&&_.parentKey!=null){var d=[];_.parentObj[_.parentKey]=d,_.obj=d,_.isArray=!0}}if(_.isArray){var c=g.match(/^([^:]+):\s+(.+)$/);if(c){var o={};o[c[1].replace(/^\s+|\s+$/g,"")]=_r(c[2].replace(/^\s+|\s+$/g,"")),_.obj.push(o)}else _.obj.push(_r(g))}continue}var p=C.match(/^([^:]+):\s*(.*)$/);if(p){var h=p[1].replace(/^\s+|\s+$/g,""),v=p[2].replace(/^\s+|\s+$/g,"");if(v===""){_.obj[h]={},R.push({indent:B,obj:_.obj[h],isArray:!1,pendingKey:null}),R[R.length-1].pendingKey=null;var k=R[R.length-2];k&&(R[R.length-1].parentObj=k.obj,R[R.length-1].parentKey=h)}else _.obj[h]=_r(v)}}}return F}function _r(nr){return nr==="true"||nr==="True"||nr==="TRUE"?!0:nr==="false"||nr==="False"||nr==="FALSE"?!1:nr==="null"||nr==="Null"||nr==="NULL"||nr==="~"?null:nr.length>=2&&(nr.charAt(0)==='"'&&nr.charAt(nr.length-1)==='"'||nr.charAt(0)==="'"&&nr.charAt(nr.length-1)==="'")?nr.substring(1,nr.length-1):/^-?\d+$/.test(nr)?parseInt(nr,10):/^-?\d+\.\d+$/.test(nr)?parseFloat(nr):nr}function qr(nr,H){H=H||{};for(var F=nr.split(/\r\n|\r|\n/),R=[],E=[],O=0;O<F.length;O++){var C=F[O].replace(/^\s+|\s+$/g,"");if(C.charAt(0)!=="'"&&C.charAt(0)!=="!"){var B=C.match(/^#highlight\s+(.+)$/i);if(B){R.push(B[1].replace(/"/g,"").replace(/^\s+|\s+$/g,""));continue}E.push(F[O])}}var _=Or(E.join(`-`));return{data:_,highlights:R}}return{parse:qr}})();var vs=(function(){function Or(F,R){R=R||{};for(var E=F.split(/\r\n|\r|\n/),O=[],C=0;C<E.length;C++){var B=E[C].replace(/^\s+|\s+$/g,"");B!==""&&B.charAt(0)!=="'"&&B.charAt(0)!=="!"&&(/^skinparam\b/i.test(B)||/^(title|header|footer|caption|scale)\b/i.test(B)||O.push(B))}var _={lines:O,pos:0},g=_r(_);return{root:g}}function _r(F){var R={type:"grid",children:[],modifier:null};if(F.pos<F.lines.length){var E=F.lines[F.pos];if(E.charAt(0)==="{"){var O=null;if(E.length>1){var C=E.charAt(1);(C==="+"||C==="/"||C==="#"||C==="!"||C==="-"||C==="|"||C==="*"||C==="^"||C==="T")&&(O=C)}R.modifier=O;var B=E.substring(O?2:1).replace(/^\s+|\s+$/g,"");if(F.pos++,B!==""&&B!=="}"){if(O==="^"){var _=B.match(/^"([^"]*)"/);R.title=_?_[1]:B}if(O==="/"||O==="*"){R.type=O==="/"?"tabheader":"menubar";var g=B;return g.charAt(g.length-1)==="}"&&(g=g.substring(0,g.length-1).replace(/^\s+|\s+$/g,"")),R.children=qr(g),R}}}else return R.children=[nr(E)],F.pos++,R}for(;F.pos<F.lines.length;){var w=F.lines[F.pos];if(w==="}"){F.pos++;break}if(w.charAt(0)==="{"){var d=_r(F);R.children.push([d]);continue}if(R.modifier==="T"){var c=w.match(/^(\++)\s*(.*)$/);if(c){R.children.push([{type:"treeitem",depth:c[1].length,text:c[2].replace(/^\s+|\s+$/g,"")}]),F.pos++;continue}}var o=nr(w);o.length>0&&R.children.push(o),F.pos++}return R.modifier==="+"?R.type="tabs":R.modifier==="^"?R.type="groupbox":R.modifier==="T"&&(R.type="tree"),R}function qr(F){for(var R=F.split(/\s*\|\s*/),E=[],O=0;O<R.length;O++){var C=R[O].replace(/^\s+|\s+$/g,""),B=!1;/^<b>/.test(C)&&(B=!0,C=C.replace(/<\/?b>/g,"").replace(/^\s+|\s+$/g,"")),C!==""&&E.push({type:"tab",text:C,active:B})}return E}function nr(F){if(F.charAt(F.length-1)==="}"&&(F=F.substring(0,F.length-1).replace(/^\s+|\s+$/g,"")),F==="")return[];for(var R=F.split(/\s*\|\s*/),E=[],O=0;O<R.length;O++){var C=R[O].replace(/^\s+|\s+$/g,"");C!==""&&E.push(H(C))}return E}function H(F){F=F.replace(/^\s+|\s+$/g,"");var R=F.match(/^\[([^\]]*)\]$/);if(R)return{type:"button",text:R[1].replace(/^\s+|\s+$/g,""),raw:R[1]};var E=F.match(/^"([^"]*)"$/);if(E)return{type:"textfield",text:E[1].replace(/^\s+|\s+$/g,""),raw:E[1]};var O=F.match(/^\[X\]\s*(.*)/i);if(O)return{type:"checkbox",text:O[1].replace(/^\s+|\s+$/g,""),checked:!0};var C=F.match(/^\[\s*\]\s*(.*)/);if(C)return{type:"checkbox",text:C[1].replace(/^\s+|\s+$/g,""),checked:!1};var B=F.match(/^\(X\)\s*(.*)/i);if(B)return{type:"radio",text:B[1].replace(/^\s+|\s+$/g,""),selected:!0};var _=F.match(/^\(\s*\)\s*(.*)/);if(_)return{type:"radio",text:_[1].replace(/^\s+|\s+$/g,""),selected:!1};var g=F.match(/^\^([^^]*)\^$/);return g?{type:"dropdown",text:g[1].replace(/^\s+|\s+$/g,"")}:/^-{2,}$/.test(F)?{type:"separator"}:/<b>/.test(F)?{type:"label",text:F.replace(/<\/?b>/g,"").replace(/^\s+|\s+$/g,""),bold:!0}:{type:"label",text:F}}return{parse:Or}})();var us=(function(){function Or(_r,qr){qr=qr||{};var nr=_r.split(/\r\n|\r|\n/),H=[],F=[],R=[],E=[],O=null,C=null,B=!1,_=0;function g(lr){for(var dr={address:null,description:null,shape:null,color:null},gr=lr.split(/\s*,\s*/),or=0;or<gr.length;or++){var ar=gr[or].match(/(\w+)\s*=\s*"?([^"\]]*)"?\s*$/);if(ar){var u=ar[1].toLowerCase(),z=ar[2].replace(/^\s+|\s+$/g,"");u==="address"?dr.address=z:u==="description"?dr.description=z:u==="shape"?dr.shape=z.toLowerCase():u==="color"&&(dr.color=z)}}return dr}for(var w=0;w<nr.length;w++){var d=nr[w].replace(/^\s+|\s+$/g,"");if(d!==""&&d.charAt(0)!=="'"&&d.charAt(0)!=="!"&&!/^skinparam\b/i.test(d)&&!/^(title|header|footer|caption|scale|hide|show)\b/i.test(d)){var c=d.match(/^nwdiag\s*\{/i);if(c){B=!0,_++;continue}var o=d.match(/^network\s+(\S+)\s*\{/i);if(o){O={name:o[1],address:null,nodes:[]},H.push(O),_++;continue}var p=d.match(/^group(?:\s+(\S+))?\s*\{/i);if(p&&O==null){C={name:p[1]||null,color:null,nodes:[]},F.push(C),_++;continue}if(d==="}"){_--,C!=null?C=null:O!=null&&_<=(B?1:0)&&(O=null),_<=0&&(B=!1,_=0);continue}if(C!=null){var h=d.match(/^color\s*=\s*"([^"]*)"\s*;?\s*$/i);if(h){C.color=h[1];continue}var v=d.match(/^description\s*=\s*"([^"]*)"\s*;?\s*$/i);if(v){C.name=v[1];continue}var k=d.match(/^(\w+)\s*;?\s*$/);if(k){C.nodes.push(k[1]);continue}}var S=d.match(/^(\w+)\s*--\s*(\w+)\s*;?\s*$/);if(S&&O==null&&B){E.push({from:S[1],to:S[2]});continue}var Z=d.match(/^(\w+)\s*\[([^\]]*)\]\s*;?\s*$/);if(Z&&O==null&&B){var U=g(Z[2]);R.push({name:Z[1],address:U.address,description:U.description,shape:U.shape});continue}if(O!=null){var vr=d.match(/^address\s*=\s*"([^"]*)"$/i);if(vr){O.address=vr[1];continue}var G=d.match(/^(\S+)\s*\[([^\]]*)\]\s*;?\s*$/);if(G){var fr=g(G[2]);O.nodes.push({name:G[1],address:fr.address,description:fr.description,shape:fr.shape});continue}var j=d.match(/^(\w+)\s*;?\s*$/);if(j&&j[1]!=="address"){O.nodes.push({name:j[1],address:null,description:null,shape:null});continue}}}}return{networks:H,groups:F,topNodes:R,links:E}}return{parse:Or}})();var hs=(function(){for(var Or=["Motivation","Strategy","Business","Application","Technology","Physical","Implementation","Other","Junction"],_r={},qr=0;qr<Or.length;qr++)_r[Or[qr]]=!0;function nr(R){for(var E=[],O="",C=!1,B=0;B<R.length;B++){var _=R[B];_==='"'?(C=!C,O+=_):_===","&&!C?(E.push(O.trim()),O=""):O+=_}return O.trim()!==""&&E.push(O.trim()),E}function H(R){return R&&R.length>=2&&R.charAt(0)==='"'&&R.charAt(R.length-1)==='"'?R.substring(1,R.length-1):R||""}function F(R,E){E=E||{};for(var O=[],C=[],B=[],_=null,g={},w=null,d=[],c=String(R||"").split(/\r?\n/),o=/^([A-Z][A-Za-z0-9]*)_([A-Za-z][A-Za-z0-9]*)\s*\(\s*([^)]*)\)\s*(\{)?\s*$/,p=/^Rel(?:_[A-Za-z][A-Za-z0-9]*)?\s*\(\s*([^)]*)\)\s*$/,h=/^(Grouping|Group)\s*\(\s*([^)]*)\)\s*\{\s*$/,v=/^title\s+(.+)$/i,k=0;k<c.length;k++){var S=c[k].replace(/^\s+|\s+$/g,"");if(S!==""&&S.charAt(0)!=="'"&&S.charAt(0)!=="!"&&!/^@(start|end)/i.test(S)&&!/^sprite\b/i.test(S)&&!/^skinparam\b/i.test(S)){var Z=S.match(/^legend(?:\s+(left|right|center|top|bottom))?\s*$/i);if(Z!=null){for(var U=Z[1]||"center",vr=[],G=k+1;G<c.length&&!/^endlegend\b/i.test(c[G].replace(/^\s+|\s+$/g,""));){var fr=c[G].replace(/^\s+|\s+$/g,"");fr!==""&&vr.push(fr),G++}w={position:U.toLowerCase(),lines:vr},k=G;continue}if(!/^endlegend\b/i.test(S)){var j=v.exec(S);if(j!=null){_=j[1].replace(/^\s+|\s+$/g,"");continue}var lr=h.exec(S);if(lr!=null){var dr=nr(lr[2]),gr=H(dr[0]||"").replace(/^\s+|\s+$/g,""),or=H(dr[1]||gr),ar={id:gr,label:or,kind:lr[1],children:[]};B.push(ar),d.push(ar);continue}if(S==="}"){d.length>0&&d.pop();continue}var u=p.exec(S);if(u!=null){var z=nr(u[1]),N=H(z[0]||"").replace(/^\s+|\s+$/g,""),pe=H(z[1]||"").replace(/^\s+|\s+$/g,""),Hr=z.length>2?H(z[2]):"",jr="Rel",Zr=S.match(/^(Rel(?:_[A-Za-z][A-Za-z0-9]*)?)/);Zr&&(jr=Zr[1]),N!==""&&pe!==""&&C.push({from:N,to:pe,label:Hr,kind:jr});continue}var Pe=o.exec(S);if(Pe!=null){var Ae=Pe[1],be=Pe[2];if(!_r[Ae])continue;var Mr=nr(Pe[3]),Pr=H(Mr[0]||"").replace(/^\s+|\s+$/g,""),_e=H(Mr[1]||Pr),Qt={id:Pr,label:_e,category:Ae,kind:be,parent:null};if(d.length>0){var _t=d[d.length-1];Qt.parent=_t.id,_t.children.push(Pr)}if(O.push(Qt),g[Pr]=Qt,Pe[4]==="{"){var b={id:Pr,label:_e,kind:"ShapeContainer",children:[]};B.push(b),d.push(b)}continue}}}}return{title:_,shapes:O,edges:C,groups:B,legend:w}}return{parse:F}})();var gs=(function(){var Or={Person:{category:"Person",variant:"person"},Person_Ext:{category:"Person",variant:"person_ext"},System:{category:"System",variant:"normal"},SystemDb:{category:"System",variant:"db"},SystemQueue:{category:"System",variant:"queue"},System_Ext:{category:"System",variant:"ext"},SystemDb_Ext:{category:"System",variant:"db_ext"},SystemQueue_Ext:{category:"System",variant:"queue_ext"},Container:{category:"Container",variant:"normal"},ContainerDb:{category:"Container",variant:"db"},ContainerQueue:{category:"Container",variant:"queue"},Container_Ext:{category:"Container",variant:"ext"},ContainerDb_Ext:{category:"Container",variant:"db_ext"},ContainerQueue_Ext:{category:"Container",variant:"queue_ext"},Component:{category:"Component",variant:"normal"},ComponentDb:{category:"Component",variant:"db"},ComponentQueue:{category:"Component",variant:"queue"},Component_Ext:{category:"Component",variant:"ext"},ComponentDb_Ext:{category:"Component",variant:"db_ext"},ComponentQueue_Ext:{category:"Component",variant:"queue_ext"}},_r={System_Boundary:!0,Container_Boundary:!0,Enterprise_Boundary:!0,Boundary:!0};function qr(F){for(var R=[],E="",O=!1,C=0;C<F.length;C++){var B=F[C];B==='"'?(O=!O,E+=B):B===","&&!O?(R.push(E.trim()),E=""):E+=B}return E.trim()!==""&&R.push(E.trim()),R}function nr(F){return F&&F.length>=2&&F.charAt(0)==='"'&&F.charAt(F.length-1)==='"'?F.substring(1,F.length-1):F||""}function H(F,R){R=R||{};for(var E=[],O=[],C=[],B=null,_=!1,g=!1,w=null,d=null,c=null,o=[],p=String(F||"").split(/\r?\n/),h=/^([A-Za-z_][A-Za-z0-9_]*)\s*\(\s*([\s\S]*?)\)\s*(\{)?\s*$/,v=/^title\s+(.+)$/i,k=0;k<p.length;k++){var S=p[k].replace(/^\s+|\s+$/g,"");if(S!==""&&S.charAt(0)!=="'"&&S.charAt(0)!=="!"&&!/^@(start|end)/i.test(S)){if(/^skinparam\b/i.test(S)){var Z=/^skinparam\s+(nodesep|ranksep)\s+(\d+)/i.exec(S);Z?/nodesep/i.test(Z[1])?w=parseInt(Z[2],10):d=parseInt(Z[2],10):/^skinparam\s+linetype\s+ortho/i.test(S)&&(c="ortho");continue}if(!/^hide\b/i.test(S)&&!/^show\b/i.test(S)){var U=v.exec(S);if(U!=null){B=U[1].replace(/^\s+|\s+$/g,"");continue}if(S==="}"){o.length>0&&o.pop();continue}var vr=S.match(/^package\s+(?:"([^"]*)"|(\S+))(?:\s*<<([^>]+)>>)?(\s*\{)?\s*$/i);if(vr){var G="c4pkg_"+C.length,fr=vr[1]||vr[2]||"",j=vr[3]||"",lr=!!vr[4],dr={id:G,label:fr,kind:"package",stereotype:j,children:[],parent:o.length>0?o[o.length-1].id:null};C.push(dr),lr&&o.push(dr);continue}var gr=h.exec(S);if(gr!=null){var or=gr[1],ar=qr(gr[2]),u=gr[3]==="{";if(or==="LAYOUT_WITH_LEGEND"){_=!0;continue}if(!/^LAYOUT_/.test(or)){if(_r[or]){var z=nr(ar[0]||"").replace(/^\s+|\s+$/g,""),N=nr(ar[1]||z),pe={id:z,label:N,kind:or,children:[],parent:o.length>0?o[o.length-1].id:null};C.push(pe),u&&o.push(pe);continue}var Hr=Or[or];if(Hr){Hr.category==="Component"&&(g=!0);var jr=nr(ar[0]||"").replace(/^\s+|\s+$/g,""),Zr=nr(ar[1]||jr),Pe="",Ae="";ar.length>=4?(Pe=nr(ar[2]),Ae=nr(ar[3])):ar.length===3&&(Ae=nr(ar[2]));var be={id:jr,label:Zr,description:Ae,technology:Pe,category:Hr.category,variant:Hr.variant,parent:o.length>0?o[o.length-1].id:null};if(be.parent){var Mr=o[o.length-1];Mr.children.push(jr)}E.push(be);continue}if(/^Rel(?:_[A-Za-z][A-Za-z0-9_]*)?$/.test(or)){var Pr=nr(ar[0]||"").replace(/^\s+|\s+$/g,""),_e=nr(ar[1]||"").replace(/^\s+|\s+$/g,""),Qt=ar.length>=3?nr(ar[2]):"",_t=ar.length>=4?nr(ar[3]):"",b=null,$=!1,P=or.substring(3);/^_U/.test(P)||/^_Up/.test(P)?b="up":/^_D/.test(P)&&!/^_Down_/.test(P)||/^_Down/.test(P)?b="down":/^_L/.test(P)||/^_Left/.test(P)?b="left":(/^_R/.test(P)||/^_Right/.test(P))&&(b="right"),/_Back/.test(P)&&($=!0),Pr!==""&&_e!==""&&O.push({from:Pr,to:_e,label:Qt,technology:_t,direction:b,back:$});continue}}}}}}return{title:B,shapes:E,edges:O,boundaries:C,hasLegend:_,hasComponent:g,nodesep:w,ranksep:d,linetype:c}}return{parse:H}})();Wn.registerParser("sequence",Yi);Wn.registerParser("state",Xi);Wn.registerParser("activity",Ui);Wn.registerParser("activityLegacy",Ui);Wn.registerParser("class",rs);Wn.registerParser("component",es);Wn.registerParser("object",ts);Wn.registerParser("useCase",as);Wn.registerParser("mindmap",ns);Wn.registerParser("wbs",ls);Wn.registerParser("gantt",os);Wn.registerParser("timing",is);Wn.registerParser("json",ss);Wn.registerParser("yaml",fs);Wn.registerParser("salt",vs);Wn.registerParser("network",us);Wn.registerParser("archimate",hs);Wn.registerParser("c4",gs);var Cv=Ds;return yv(wv);})();+`).forEach(function($e){var se=Kr($e,Nr,!1);se>qr&&(qr=se)}),Ve-qr/2<O&&(O=Ve-qr/2),Ve+qr/2>o&&(o=Ve+qr/2)}}}}),O===1/0?{x:0,y:0,w:100,h:60}:{x:O,y:t,w:o-O,h:v-t}}function R(_){var O={},t={},o=[],v=[];_.forEach(function(d){O[d.id]=d}),_.forEach(function(d){d.parent!=null&&O[d.parent]?(t[d.parent]=t[d.parent]||[]).push(d):o.push(d)});function u(d,b){if(!(b>20)){v.push(d);for(var m=t[d.id]||[],w=0;w<m.length;w++)u(m[w],b+1)}}for(var l=0;l<o.length;l++)u(o[l],0);return v}var g={};function y(){var _=["<defs>"];for(var O in g)if(g.hasOwnProperty(O)){var t=g[O],o=t.color,v,u=11,l=10,d=9,b=4;switch(t.shape){case"halfcircle":l=16,b=8,v='<path d="M9,0 A8,8 0 0 0 9,16" fill="none" stroke="'+o+'"/>';break;case"classic":v='<path d="M0,0 L10,4 L0,8 L4,4 z" fill="'+o+'"/>';break;case"open":v='<path d="M0,0 L10,4 L0,8" fill="none" stroke="'+o+'"/>';break;case"blockfilled":v='<path d="M0,0 L10,4 L0,8 z" fill="'+o+'"/>';break;case"blockhollow":v='<path d="M0.5,0.5 L9.5,4 L0.5,7.5 z" fill="#FFFFFF" stroke="'+o+'"/>';break;case"diamondfilled":u=14,d=12,v='<path d="M0,4 L6,0 L12,4 L6,8 z" fill="'+o+'"/>';break;case"diamondhollow":u=14,d=12,v='<path d="M0.5,4 L6,0.5 L11.5,4 L6,7.5 z" fill="#FFFFFF" stroke="'+o+'"/>';break;case"oval":u=9,d=7,v='<circle cx="4.5" cy="4" r="3.5" fill="'+o+'"/>';break;case"cross":u=10,d=8,v='<path d="M1,0.5 L8,7.5 M1,7.5 L8,0.5" fill="none" stroke="'+o+'" stroke-width="1.5"/>';break;case"halftop":v='<path d="M0,0 L10,4 L0,4 z" fill="'+o+'"/>';break;case"halfbottom":v='<path d="M0,4 L10,4 L0,8 z" fill="'+o+'"/>';break;case"erone":u=12,d=10,v='<path d="M5,0 L5,8" fill="none" stroke="'+o+'"/>';break;case"ermandone":u=12,d=10,v='<path d="M3,0 L3,8 M7,0 L7,8" fill="none" stroke="'+o+'"/>';break;case"ermany":u=12,d=10,v='<path d="M0,4 L10,0 M0,4 L10,8 M0,4 L10,4" fill="none" stroke="'+o+'"/>';break;case"eronetomany":u=16,d=14,v='<path d="M2,0 L2,8 M4,4 L14,0 M4,4 L14,8 M4,4 L14,4" fill="none" stroke="'+o+'"/>';break;case"erzerotoone":u=16,d=14,v='<circle cx="4" cy="4" r="3" fill="#FFFFFF" stroke="'+o+'"/><path d="M10,0 L10,8" fill="none" stroke="'+o+'"/>';break;case"erzerotomany":u=18,d=16,v='<circle cx="4" cy="4" r="3" fill="#FFFFFF" stroke="'+o+'"/><path d="M8,4 L17,0 M8,4 L17,8 M8,4 L17,4" fill="none" stroke="'+o+'"/>';break;default:v='<path d="M0,0 L10,4 L0,8 L4,4 z" fill="'+o+'"/>'}t.scale&&t.scale!==1&&(v='<g transform="scale('+t.scale+')">'+v+"</g>",u=u*t.scale,d=d*t.scale,b=b*t.scale),t.start&&(v='<g transform="translate('+u+',0) scale(-1,1)">'+v+"</g>",d=u-d),_.push('<marker id="'+t.id+'" markerWidth="'+u+'" markerHeight="'+l*(t.scale||1)+'" refX="'+d+'" refY="'+b+'" orient="auto" markerUnits="userSpaceOnUse">'+v+"</marker>")}return _.push("</defs>"),_.join("")}function C(_,O,t){var o=Tr(_.style),v=(o.shape||"rectangle").toLowerCase(),u=_.absX+O,l=_.absY+t,d=_.geometry.width,b=_.geometry.height,m=s(o),w=o.strokecolor||"#000000",S=o.strokewidth||"1",tr=o.dashed==="1",ir="";switch(v){case"ellipse":ir=D(u,l,d,b,m,w,S,tr);break;case"umlactor":ir=T(u,l,d,b,m,w);break;case"swimlane":ir=M(u,l,d,b,m,w,o);break;case"umlframe":ir=V(u,l,d,b,m,w,S,o);break;case"note":ir=A(u,l,d,b,m,w);break;case"hexagon":ir=c(I(u,l,d,b),m,w,S,tr);break;case"triangle":{var Nr=(o.direction||"east").toLowerCase(),xr;Nr==="north"?xr=[[u+d/2,l],[u+d,l+b],[u,l+b]]:Nr==="south"?xr=[[u,l],[u+d,l],[u+d/2,l+b]]:Nr==="west"?xr=[[u+d,l],[u+d,l+b],[u,l+b/2]]:xr=[[u,l],[u+d,l+b/2],[u,l+b]],ir=c(xr,m,w,S,tr);break}case"umllifeline":{var Ve=Math.max(0,Math.min(b,parseFloat(o.size)||40)),qr=o.lifelinemirror==="1",$e=o.participant!=null,se=qr?l+b-Ve:l+b,Re=$e?"":F(u,l,d,Ve,m,w,S,o);l+Ve<se&&(Re+='<line x1="'+(u+d/2)+'" y1="'+(l+Ve)+'" x2="'+(u+d/2)+'" y2="'+se+'" stroke="'+w+'" stroke-width="'+S+'" stroke-dasharray="5 5"/>'),qr&&!$e&&(Re+=F(u,l+b-Ve,d,Ve,m,w,S,o)),ir=Re;break}case"table":ir=F(u,l,d,b,m,w,S,o);break;case"tablerow":{var Ne="";m!=="none"&&(Ne+='<rect x="'+u+'" y="'+l+'" width="'+d+'" height="'+b+'" fill="'+m+'" stroke="none"/>'),_.geometry.y>0&&(Ne+='<line x1="'+u+'" y1="'+l+'" x2="'+(u+d)+'" y2="'+l+'" stroke="'+w+'" stroke-width="1"/>'),ir=Ne;break}case"partialrectangle":{for(var Do=m!=="none"?'<rect x="'+u+'" y="'+l+'" width="'+d+'" height="'+b+'" fill="'+m+'" stroke="none"/>':"",Zo=[["top",u,l,u+d,l],["bottom",u,l+b,u+d,l+b],["left",u,l,u,l+b],["right",u+d,l,u+d,l+b]],uo=0;uo<Zo.length;uo++)o[Zo[uo][0]]!=="0"&&o[Zo[uo][0]]!=null&&(Do+='<line x1="'+Zo[uo][1]+'" y1="'+Zo[uo][2]+'" x2="'+Zo[uo][3]+'" y2="'+Zo[uo][4]+'" stroke="'+w+'" stroke-width="'+S+'"/>');ir=Do;break}case"rhombus":ir=c([[u+d/2,l],[u+d,l+b/2],[u+d/2,l+b],[u,l+b/2]],m,w,S,tr);break;case"cylinder":ir=x(u,l,d,b,m,w,Math.min(40,b/5));break;case"cloud":case"mxgraph.basic.cloud_rect":ir=dr(u,l,d,b,m,w);break;case"cube":ir=E(u,l,d,b,m,w,S);break;case"umlboundary":ir=z(u,l,d,b,m,w);break;case"umlcontrol":ir=lr(u,l,d,b,m,w);break;case"umlentity":ir=rr(u,l,d,b,m,w);break;case"cylinder3":ir=o.direction==="east"?W(u,l,d,b,m,w,Math.min(d/2,parseFloat(o.size)||15)):x(u,l,d,b,m,w,Math.min(b/2,parseFloat(o.size)||15));break;case"endstate":ir=or(u,l,d,b,w);break;case"doublecircle":ir=yr(u,l,d,b,m,w);break;case"component":ir=pr(u,l,d,b,m,w);break;case"card":ir=le(u,l,d,b,m,w);break;case"mxgraph.archimate3.application":ir=Ur(u,l,d,b,m,w,S,o);break;case"folder":ir=Pr(u,l,d,b,m,w,S,o);break;case"process":ir=c($(u,l,d,b),m,w,S,tr);break;case"queue":ir=Pe(u,l,d,b,m,w);break;case"cross":ir=Te(u,l,d,b,w);break;case"line":ir=Ir(u,l,d,b,w,S);break;case"text":ir=m!=="none"||o.strokecolor&&o.strokecolor!=="none"?F(u,l,d,b,m,o.strokecolor&&o.strokecolor!=="none"?o.strokecolor:"none",S,o):"";break;case"rectangle":default:ir=F(u,l,d,b,m,w,S,o);break}var ke=v==="umllifeline"?Math.max(0,Math.min(b,parseFloat(o.size)||40)):b,Qt=Be(_.value,u,l,d,ke,o,v);return v==="umllifeline"&&o.lifelinemirror==="1"&&(Qt+=Be(_.value,u,l+b-ke,d,ke,o,v)),ir+(Qt?`+`+Qt:"")}function s(_){var O=_.fillcolor;return!O||O==="none"?"none":O}function i(_){var O="";for(var t in _)_[t]!==""&&_[t]!==null&&_[t]!==void 0&&(O+=" "+t+'="'+_[t]+'"');return O}function k(_,O){if(!_)return"";var t=O?String(O).replace(/\s+/g,","):"5,5";return' stroke-dasharray="'+t+'"'}function F(_,O,t,o,v,u,l,d){var b=0;d.rounded==="1"&&(b=d.absolutearcsize==="1"&&d.arcsize?parseFloat(d.arcsize)/2:d.arcsize?Math.min(t,o)*parseFloat(d.arcsize)/100:10);var m=d.dashed==="1";return'<rect x="'+_+'" y="'+O+'" width="'+t+'" height="'+o+'" rx="'+b+'" ry="'+b+'" fill="'+v+'" stroke="'+u+'" stroke-width="'+l+'"'+k(m,d.dashpattern)+"/>"}function D(_,O,t,o,v,u,l,d){var b=_+t/2,m=O+o/2,w=t/2,S=o/2;return'<ellipse cx="'+b+'" cy="'+m+'" rx="'+w+'" ry="'+S+'" fill="'+v+'" stroke="'+u+'" stroke-width="'+l+'"'+k(d)+"/>"}function T(_,O,t,o,v,u){var l=_+t/2,d=Math.min(8,Math.min(t,o)*.2),b=O+d+2,m=b+d,w=O+o*.7,S=m+(w-m)*.2,tr=_+t*.15,ir=_+t*.85,Nr=_+t*.28,xr=_+t*.72,Ve=O+o-2,qr=v==="none"?"#FFFFFF":v;return'<ellipse cx="'+l+'" cy="'+b+'" rx="'+d+'" ry="'+d+'" fill="'+qr+'" stroke="'+u+'" stroke-width="1"/><path d="M'+l+","+m+" L"+l+","+w+" M"+tr+","+S+" L"+ir+","+S+" M"+l+","+w+" L"+Nr+","+Ve+" M"+l+","+w+" L"+xr+","+Ve+'" fill="none" stroke="'+u+'" stroke-width="1"/>'}function M(_,O,t,o,v,u,l){var d=parseFloat(l.startsize)||20,b=v==="none"?"#FFFFFF":v,m=l.swimlanefillcolor?l.swimlanefillcolor==="none"?"#FFFFFF":l.swimlanefillcolor:b,w=l.rounded==="0"?0:l.absolutearcsize==="1"&&l.arcsize?parseFloat(l.arcsize)/2:2.5,S=k(l.dashed==="1",l.dashpattern),tr="";return m!==b&&d>0&&(tr='<path d="M'+_+","+(O+d)+" L"+_+","+(O+w)+" Q"+_+","+O+" "+(_+w)+","+O+" L"+(_+t-w)+","+O+" Q"+(_+t)+","+O+" "+(_+t)+","+(O+w)+" L"+(_+t)+","+(O+d)+' Z" fill="'+b+'" stroke="none"/>'),'<g><rect x="'+_+'" y="'+O+'" width="'+t+'" height="'+o+'" rx="'+w+'" ry="'+w+'" fill="'+m+'" stroke="none"/>'+tr+'<rect x="'+_+'" y="'+O+'" width="'+t+'" height="'+o+'" rx="'+w+'" ry="'+w+'" fill="none" stroke="'+u+'"'+S+'/><line x1="'+_+'" y1="'+(O+d)+'" x2="'+(_+t)+'" y2="'+(O+d)+'" stroke="'+u+'"'+S+"/></g>"}function V(_,O,t,o,v,u,l,d){var b=10,m=Math.min(t,Math.max(b,parseFloat(d.width)||60)),w=Math.min(o,Math.max(b*1.5,parseFloat(d.height)||30)),S=d.swimlanefillcolor;return'<rect x="'+_+'" y="'+O+'" width="'+t+'" height="'+o+'" fill="'+(S&&S!=="none"?S:"none")+'" stroke="'+u+'" stroke-width="'+l+'"/><path d="M'+_+","+O+" L"+(_+m)+","+O+" L"+(_+m)+","+(O+Math.max(0,w-b*1.5))+" L"+(_+Math.max(0,m-b))+","+(O+w)+" L"+_+","+(O+w)+' Z" fill="none" stroke="'+u+'" stroke-width="'+l+'"/>'}function A(_,O,t,o,v,u){var l=Math.min(14,Math.min(t,o)*.2),d="M"+_+","+O+" L"+(_+t-l)+","+O+" L"+(_+t)+","+(O+l)+" L"+(_+t)+","+(O+o)+" L"+_+","+(O+o)+" Z",b="M"+(_+t-l)+","+O+" L"+(_+t-l)+","+(O+l)+" L"+(_+t)+","+(O+l);return'<path d="'+d+'" fill="'+v+'" stroke="'+u+'" stroke-width="1"/><g fill="none" stroke="'+u+'" stroke-width="1"><path d="'+b+'"/></g>'}function I(_,O,t,o){var v=Math.min(t*.2,o*.5);return[[_+v,O],[_+t-v,O],[_+t,O+o/2],[_+t-v,O+o],[_+v,O+o],[_,O+o/2]]}function $(_,O,t,o){var v=Math.min(t*.15,20);return[[_,O],[_+t,O],[_+t-v,O+o/2],[_+t,O+o],[_,O+o],[_+v,O+o/2]]}function c(_,O,t,o,v){var u=_.map(function(l){return l[0]+","+l[1]}).join(" ");return'<polygon points="'+u+'" fill="'+O+'" stroke="'+t+'" stroke-width="'+o+'"'+k(v)+"/>"}function x(_,O,t,o,v,u,l){l>0||(l=Math.min(o*.1,12));var d=t/2,b='<path d="M'+_+","+(O+l)+" L"+_+","+(O+o-l)+" A"+d+","+l+" 0 0 0 "+(_+t)+","+(O+o-l)+" L"+(_+t)+","+(O+l)+" A"+d+","+l+" 0 0 0 "+_+","+(O+l)+' Z" fill="'+v+'" stroke="'+u+'"/>',m='<path d="M'+_+","+(O+l)+" A"+d+","+l+" 0 0 0 "+(_+t)+","+(O+l)+'" fill="none" stroke="'+u+'"/>';return"<g>"+b+m+"</g>"}function E(_,O,t,o,v,u,l){var d=Math.min(10,Math.min(t,o)/5),b="M"+_+","+(O+d)+" L"+(_+d)+","+O+" L"+(_+t)+","+O+" L"+(_+t)+","+(O+o-d)+" L"+(_+t-d)+","+(O+o)+" L"+_+","+(O+o)+" Z";function m(w,S,tr,ir){return'<line x1="'+w+'" y1="'+S+'" x2="'+tr+'" y2="'+ir+'" stroke="'+u+'" stroke-width="'+l+'"/>'}return'<path d="'+b+'" fill="'+v+'" stroke="'+u+'" stroke-width="'+l+'"/>'+m(_,O+d,_+t-d,O+d)+m(_+t-d,O+d,_+t,O)+m(_+t-d,O+d,_+t-d,O+o)}function z(_,O,t,o,v,u){var l=o/2,d=_+t-l,b=O+l;return'<g stroke="'+u+'" fill="none"><circle cx="'+d+'" cy="'+b+'" r="'+l+'" fill="'+v+'"/><line x1="'+_+'" y1="'+(O+o*.15)+'" x2="'+_+'" y2="'+(O+o*.85)+'"/><line x1="'+_+'" y1="'+b+'" x2="'+(d-l)+'" y2="'+b+'"/></g>'}function lr(_,O,t,o,v,u){var l=_+t/2,d=o/2-2,b=O+2+d;return'<g stroke="'+u+'" fill="none"><circle cx="'+l+'" cy="'+b+'" r="'+d+'" fill="'+v+'"/><path d="M'+(l+6)+","+(O-2)+" L"+l+","+(O+2)+" L"+(l+6)+","+(O+6)+'"/></g>'}function rr(_,O,t,o,v,u){var l=_+t/2,d=(o-4)/2;return'<g stroke="'+u+'"><circle cx="'+l+'" cy="'+(O+d)+'" r="'+d+'" fill="'+v+'"/><line x1="'+(l-d)+'" y1="'+(O+o)+'" x2="'+(l+d)+'" y2="'+(O+o)+'"/></g>'}function W(_,O,t,o,v,u,l){l>0||(l=Math.min(t*.15,10));var d=o/2,b='<path d="M'+(_+l)+","+O+" L"+(_+t-l)+","+O+" A"+l+","+d+" 0 0 1 "+(_+t-l)+","+(O+o)+" L"+(_+l)+","+(O+o)+" A"+l+","+d+" 0 0 1 "+(_+l)+","+O+' Z" fill="'+v+'" stroke="'+u+'"/>',m='<path d="M'+(_+t-l)+","+O+" A"+l+","+d+" 0 0 0 "+(_+t-l)+","+(O+o)+'" fill="none" stroke="'+u+'"/>';return"<g>"+b+m+"</g>"}function dr(_,O,t,o,v,u){if(t>110||o>95){let se=function(Re,Ne,Do,Zo,uo,ke){for(var Qt=Do-Re,zo=Zo-Ne,Lt=Math.sqrt(Qt*Qt+zo*zo),Ua=Math.max(1,Math.round(Lt/d)),Mt=0;Mt<Ua;Mt++)l.push({x:Re+Qt*Mt/Ua,y:Ne+zo*Mt/Ua,nx:uo,ny:ke})};var l=[],d=26,b=9;se(_,O,_+t,O,0,-1),se(_+t,O,_+t,O+o,1,0),se(_+t,O+o,_,O+o,0,1),se(_,O+o,_,O,-1,0);for(var m=function(Re){return Math.round(Re*10)/10},w="M"+m(l[0].x)+","+m(l[0].y),S=1;S<=l.length;S++){var tr=l[S-1],ir=l[S%l.length],Nr=(tr.x+ir.x)/2+tr.nx*b,xr=(tr.y+ir.y)/2+tr.ny*b;w+=" Q"+m(Nr)+","+m(xr)+" "+m(ir.x)+","+m(ir.y)}return'<path d="'+w+' Z" fill="'+v+'" stroke="'+u+'"/>'}var Ve=_+t/2,qr=O+o/2,$e="M"+(_+t*.2)+","+(O+o*.55)+" C"+(_+t*0)+","+(O+o*.3)+" "+(_+t*.2)+","+(O+o*.1)+" "+(_+t*.35)+","+(O+o*.2)+" C"+(_+t*.4)+","+(O+o*0)+" "+(_+t*.65)+","+(O+o*0)+" "+(_+t*.7)+","+(O+o*.2)+" C"+(_+t*.9)+","+(O+o*.1)+" "+(_+t*1)+","+(O+o*.5)+" "+(_+t*.8)+","+(O+o*.6)+" C"+(_+t*.95)+","+(O+o*.85)+" "+(_+t*.7)+","+(O+o*1)+" "+(_+t*.55)+","+(O+o*.85)+" C"+(_+t*.4)+","+(O+o*1)+" "+(_+t*.1)+","+(O+o*.95)+" "+(_+t*.2)+","+(O+o*.55)+" Z";return'<path d="'+$e+'" fill="'+v+'" stroke="'+u+'"/>'}function or(_,O,t,o,v){var u=_+t/2,l=O+o/2,d=Math.min(t,o)/2,b=d*.5;return'<g><circle cx="'+u+'" cy="'+l+'" r="'+d+'" fill="#FFFFFF" stroke="'+v+'"/><circle cx="'+u+'" cy="'+l+'" r="'+b+'" fill="'+v+'" stroke="none"/></g>'}function yr(_,O,t,o,v,u){var l=_+t/2,d=O+o/2,b=Math.min(t,o)/2,m=b-4;return'<g><circle cx="'+l+'" cy="'+d+'" r="'+b+'" fill="'+v+'" stroke="'+u+'"/><circle cx="'+l+'" cy="'+d+'" r="'+m+'" fill="none" stroke="'+u+'"/></g>'}function pr(_,O,t,o,v,u){var l=12,d=10,b=O+o*.25-d/2,m=O+o*.75-d/2,w=v==="none"?"#FFFFFF":v;return'<g><rect x="'+_+'" y="'+O+'" width="'+t+'" height="'+o+'" fill="'+w+'" stroke="'+u+'"/><rect x="'+(_-l/2)+'" y="'+b+'" width="'+l+'" height="'+d+'" fill="'+w+'" stroke="'+u+'"/><rect x="'+(_-l/2)+'" y="'+m+'" width="'+l+'" height="'+d+'" fill="'+w+'" stroke="'+u+'"/></g>'}function Ur(_,O,t,o,v,u,l,d){var b=d.architype||"square",m=d.dashed==="1",w;if(b==="oct"){var S=Math.min(12,t/4,o/4);w=c([[_+S,O],[_+t-S,O],[_+t,O+S],[_+t,O+o-S],[_+t-S,O+o],[_+S,O+o],[_,O+o-S],[_,O+S]],v,u,l,m)}else{var tr=b==="rounded"?12.5:.5;w='<rect x="'+_+'" y="'+O+'" width="'+t+'" height="'+o+'" rx="'+tr+'" ry="'+tr+'" fill="'+v+'" stroke="'+u+'" stroke-width="'+l+'"'+k(m)+"/>"}var ir="";if(d.apptype&&d.apptype!=="generic"){var Nr=_+t-24,xr=O+7;ir='<path d="M'+Nr+","+xr+" h14 v10 h-14 Z M"+(Nr+1)+","+(xr+1)+' h12 v8 h-12 Z" fill="#000000" fill-rule="evenodd" stroke="none"/>'}return w+ir}function Pr(_,O,t,o,v,u,l,d){var b=Math.min(t,parseFloat(d.tabwidth)||50),m=Math.min(o,parseFloat(d.tabheight)||15),w=v,S=k(d.dashed==="1",d.dashpattern),tr="M"+_+","+O+" L"+(_+b-7)+","+O+" L"+(_+b)+","+(O+m)+" L"+(_+t)+","+(O+m)+" L"+(_+t)+","+(O+o)+" L"+_+","+(O+o)+" Z";return'<path d="'+tr+'" fill="'+w+'" stroke="'+u+'" stroke-width="'+l+'"'+S+'/><line x1="'+_+'" y1="'+(O+m)+'" x2="'+(_+b)+'" y2="'+(O+m)+'" stroke="'+u+'" stroke-width="'+l+'"'+S+"/>"}function le(_,O,t,o,v,u){var l=Math.min(t,o)*.15,d="M"+(_+l)+","+O+" L"+(_+t)+","+O+" L"+(_+t)+","+(O+o)+" L"+_+","+(O+o)+" L"+_+","+(O+l)+" Z";return'<path d="'+d+'" fill="'+v+'" stroke="'+u+'"/>'}function Pe(_,O,t,o,v,u){var l=Math.min(t*.1,14);return'<g><rect x="'+_+'" y="'+O+'" width="'+t+'" height="'+o+'" fill="'+v+'" stroke="'+u+'"/><line x1="'+(_+t-l)+'" y1="'+O+'" x2="'+(_+t-l)+'" y2="'+(O+o)+'" stroke="'+u+'"/></g>'}function Te(_,O,t,o,v){var u=_+t/2,l=O+o/2,d=Math.min(t,o)/2;return'<g stroke="'+v+'" stroke-width="2"><line x1="'+(u-d)+'" y1="'+(l-d)+'" x2="'+(u+d)+'" y2="'+(l+d)+'"/><line x1="'+(u-d)+'" y1="'+(l+d)+'" x2="'+(u+d)+'" y2="'+(l-d)+'"/></g>'}function Ir(_,O,t,o,v,u){var l=O+o/2;return'<line x1="'+_+'" y1="'+l+'" x2="'+(_+t)+'" y2="'+l+'" stroke="'+v+'" stroke-width="'+u+'"/>'}var Er={" ":278,"!":278,'"':355,"#":556,$:556,"%":889,"&":667,"'":191,"(":333,")":333,"*":389,"+":584,",":278,"-":333,".":278,"/":278,0:556,1:556,2:556,3:556,4:556,5:556,6:556,7:556,8:556,9:556,":":278,";":278,"<":584,"=":584,">":584,"?":556,"@":1015,A:667,B:667,C:722,D:722,E:667,F:611,G:778,H:722,I:278,J:500,K:667,L:556,M:833,N:722,O:778,P:667,Q:778,R:722,S:667,T:611,U:722,V:667,W:944,X:667,Y:667,Z:611,"[":278,"\\":278,"]":278,"^":469,_:556,"`":333,a:556,b:556,c:500,d:556,e:556,f:278,g:556,h:556,i:222,j:222,k:500,l:222,m:833,n:556,o:556,p:556,q:556,r:333,s:500,t:278,u:556,v:500,w:722,x:500,y:500,z:500,"{":334,"|":260,"}":334,"~":584};function Kr(_,O,t){for(var o=String(_??""),v=0,u=0;u<o.length;u++){var l=Er[o.charAt(u)];v+=l===void 0?556:l}return v/1e3*O*(t?1.06:1)}function Xe(_,O){if(!_.text||Kr(_.text,_.size,_.bold)<=O)return[_];for(var t=_.text.split(/\s+/),o=[],v="",u=0;u<t.length;u++){var l=v?v+" "+t[u]:t[u];v&&Kr(l,_.size,_.bold)>O?(o.push({text:v,size:_.size,bold:_.bold,italic:_.italic}),v=t[u]):v=l}return v&&o.push({text:v,size:_.size,bold:_.bold,italic:_.italic}),o.length?o:[_]}function Be(_,O,t,o,v,u,l){if(!_)return"";var d=parseInt(u.fontsize||"12",10),b=u.fontcolor||"#000000",m=u.fontstyle||"",w=m&1||m==="1"||m==="3"||m==="5"||m==="7",S=m&2||m==="2"||m==="3"||m==="6"||m==="7",tr=Z(_,d,w,S);if(tr.length===0)return"";var ir=(u.align||"center").toLowerCase(),Nr=(u.verticalalign||"middle").toLowerCase(),xr=parseFloat(u.spacingleft)||0,Ve=parseFloat(u.spacingtop)||0,qr=ir==="left"?"start":ir==="right"?"end":"middle",$e=ir==="left"?O+4+xr:ir==="right"?O+o-4:O+o/2+xr/2,se=(u.labelposition||"").toLowerCase();if(se==="left"?(qr="end",$e=O-4):se==="right"&&(qr="start",$e=O+o+4),l==="swimlane"||l==="umlframe"){for(var Re=l==="umlframe"?parseFloat(u.height)||30:parseFloat(u.startsize)||20,Ne=0,Do=0;Do<tr.length;Do++)Ne+=tr[Do].size*1.33;var Zo=t+Re/2-Ne/2+tr[0].size,uo=[];for(Do=0;Do<tr.length;Do++)tr[Do].text&&uo.push(ie($e,Zo,tr[Do].text,tr[Do].size,b,tr[Do].bold,tr[Do].italic,qr,u.fontfamily)),Zo+=tr[Do].size*1.33;return uo.join("")}if(u.whitespace==="wrap"){for(var ke=Math.max(20,o-8-xr),Qt=[],zo=0;zo<tr.length;zo++)for(var Lt=Xe(tr[zo],ke),Ua=0;Ua<Lt.length;Ua++)Qt.push(Lt[Ua]);tr=Qt}for(var Mt=tr[0].size*1.33,yt=1;yt<tr.length;yt++)Mt+=tr[yt].size*1.33;var Ta,hn=(u.verticallabelposition||"").toLowerCase();hn==="bottom"?Ta=t+v+tr[0].size+2:hn==="top"?Ta=t-Mt+tr[0].size-2:Nr==="top"?Ta=t+Ve+tr[0].size+2:Nr==="bottom"?Ta=t+v-Mt+tr[0].size:Ta=t+Ve+v/2-Mt/2+tr[0].size;for(var xa=[],ze=0;ze<tr.length;ze++)tr[ze].rule?xa.push(oe(tr[ze],O,o,Ta)):tr[ze].text&&xa.push(ie($e,Ta,tr[ze].text,tr[ze].size,b,tr[ze].bold,tr[ze].italic,qr,u.fontfamily)),Ta+=(ze+1<tr.length?tr[ze+1].size:tr[ze].size)*1.33;return xa.join(`+`)}function ie(_,O,t,o,v,u,l,d,b){var m=' x="'+_+'" y="'+O+'" font-size="'+o+'" fill="'+v+'" text-anchor="'+d+'"';return d==="start"&&(m+=' textLength="'+Kr(t,o,u).toFixed(2)+'" lengthAdjust="spacing"'),u&&(m+=' font-weight="bold"'),l&&(m+=' font-style="italic"'),b&&(m+=' font-family="'+Ar(b)+'"'),"<text"+m+">"+Ar(t)+"</text>"}function Z(_,O,t,o){if(_==null)return[];var v=String(_);v=v.replace(/<br\s*\/?>/gi,`+`),v=v.replace(/<li\b[^>]*>/gi,`+\u2022 `).replace(/<\/(?:ul|ol)>/gi,`+`).replace(/<(?:\/?li|ul|ol)\b[^>]*>/gi,""),v=v.replace(/<hr\b([^>]*)>/gi,function(xr,Ve){var qr=/dotted/i.test(Ve)?"dotted":/double/i.test(Ve)?"double":"solid";return`+hr:`+qr+`+`});for(var u=v.split(/\r?\n/),l=[],d=0;d<u.length;d++){var b=u[d],m=/^hr:(\w+)$/.exec(b);if(m){l.push({text:"",rule:m[1],size:7.5,bold:!1,italic:!1});continue}var w=O||12,S=b.match(/font-size\s*:\s*(\d+(?:\.\d+)?)px/i);S&&(w=parseFloat(S[1]));var tr=!!t||/<b>|font-weight\s*:\s*bold/i.test(b),ir=!!o||/<i>|font-style\s*:\s*italic/i.test(b),Nr=fr(b.replace(/<[^>]+>/g,"")).replace(/^\s+|\s+$/g,"");l.push({text:Nr,size:w,bold:tr,italic:ir})}for(;l.length&&!l[l.length-1].text&&!l[l.length-1].rule;)l.pop();for(;l.length&&!l[0].text&&!l[0].rule;)l.shift();return l}function oe(_,O,t,o){for(var v=o-2.5,u=_.rule==="dotted"?' stroke-dasharray="1,2"':"",l=_.rule==="double"?[v-1,v+1]:[v],d="",b=0;b<l.length;b++)d+='<line x1="'+(O+2)+'" y1="'+l[b]+'" x2="'+(O+t-2)+'" y2="'+l[b]+'" stroke="#181818" stroke-width="1"'+u+"/>";return d}function ee(_,O,t,o){var v=Tr(_.style),u={};O.forEach(function(Qa){u[Qa.id]=Qa});var l,d,b=null,m=u[_.source],w=u[_.target],S=u[_.parent],tr=S&&S.absX!=null?S.absX:0,ir=S&&S.absY!=null?S.absY:0;if(_.geometry&&_.geometry.sourcePoint&&_.geometry.targetPoint)l={x:_.geometry.sourcePoint.x+tr,y:_.geometry.sourcePoint.y+ir},d={x:_.geometry.targetPoint.x+tr,y:_.geometry.targetPoint.y+ir};else if(m&&w&&m.geometry&&w.geometry){var Nr={x:m.absX+m.geometry.width/2,y:m.absY+m.geometry.height/2},xr={x:w.absX+w.geometry.width/2,y:w.absY+w.geometry.height/2};_.geometry&&_.geometry.points&&_.geometry.points.length>0&&(b=_.geometry.points.map(function(Qa){return{x:Qa.x+tr,y:Qa.y+ir}}));var Ve=b?b[0]:xr,qr=b?b[b.length-1]:Nr;l=v.exitx!=null&&v.exity!=null?{x:m.absX+m.geometry.width*parseFloat(v.exitx),y:m.absY+m.geometry.height*parseFloat(v.exity)}:ye(m,Nr,Ve),d=v.entryx!=null&&v.entryy!=null?{x:w.absX+w.geometry.width*parseFloat(v.entryx),y:w.absY+w.geometry.height*parseFloat(v.entryy)}:ye(w,xr,qr)}else return"";var $e=l.x+t,se=l.y+o,Re=d.x+t,Ne=d.y+o,Do=null;if(b){Do=[{x:$e,y:se}];for(var Zo=0;Zo<b.length;Zo++)Do.push({x:b[Zo].x+t,y:b[Zo].y+o});Do.push({x:Re,y:Ne})}var uo=v.strokecolor||"#000000",ke=v.strokewidth||"1",Qt=v.dashed==="1",zo=(v.endarrow||"classic").toLowerCase();(v.endhalf==="top"||v.endhalf==="bottom")&&(zo="half"+v.endhalf);var Lt=(v.startarrow||"none").toLowerCase(),Ua=v.endfill,Mt=Ko(zo,Ua,uo,!1,v.endsize,ke),yt=Ko(Lt,v.startfill,uo,!0,v.startsize,ke),Ta;if((v.shape||"").toLowerCase()==="arrow"){var hn=(parseFloat(v.width)||12)/2,xa=(parseFloat(v.endwidth)||1)/2,ze=Math.sqrt((Re-$e)*(Re-$e)+(Ne-se)*(Ne-se))||1,Aa=-(Ne-se)/ze,Gt=(Re-$e)/ze,ra=v.fillcolor&&v.fillcolor!=="none"?v.fillcolor:uo;Ta='<path d="M'+($e+Aa*hn)+","+(se+Gt*hn)+" L"+(Re+Aa*xa)+","+(Ne+Gt*xa)+" L"+(Re-Aa*xa)+","+(Ne-Gt*xa)+" L"+($e-Aa*hn)+","+(se-Gt*hn)+' Z" fill="'+ra+'" stroke="'+uo+'" stroke-width="'+ke+'"/>'}else if(v.curved==="1"&&!Do){var Sa=$e+(Re-$e)/2;Ta='<path d="M'+$e+","+se+" C"+Sa+","+se+" "+Sa+","+Ne+" "+Re+","+Ne+'" fill="none" stroke="'+uo+'" stroke-width="'+ke+'"'+k(Qt,v.dashpattern)+(Mt?' marker-end="'+Mt+'"':"")+(yt?' marker-start="'+yt+'"':"")+"/>"}else if(Do){for(var Wn="",xn=0;xn<Do.length;xn++)Wn+=(xn===0?"M":" L")+Do[xn].x+","+Do[xn].y;Ta='<path d="'+Wn+'" fill="none" stroke="'+uo+'" stroke-width="'+ke+'"'+k(Qt,v.dashpattern)+(Mt?' marker-end="'+Mt+'"':"")+(yt?' marker-start="'+yt+'"':"")+"/>";var Sn=Math.floor((Do.length-1)/2);$e=Do[Sn].x,se=Do[Sn].y,Re=Do[Sn+1].x,Ne=Do[Sn+1].y}else Ta='<line x1="'+$e+'" y1="'+se+'" x2="'+Re+'" y2="'+Ne+'" stroke="'+uo+'" stroke-width="'+ke+'"'+k(Qt,v.dashpattern)+(Mt?' marker-end="'+Mt+'"':"")+(yt?' marker-start="'+yt+'"':"")+"/>";var Kn="";if(_.value){var zn=parseInt(v.fontsize||"12",10),un=v.fontstyle||"",sl=un==="1"||un==="3"||un==="5"||un==="7",yn=Z(_.value,zn,sl,!1);if(yn.length>0){var vl=_.geometry&&_.geometry.x?(_.geometry.x+1)/2:.5,Hn=$e+(Re-$e)*vl,ul=_.geometry&&_.geometry.y||0,pl=0,Xn=0;if(ul){var ol=Math.sqrt((Re-$e)*(Re-$e)+(Ne-se)*(Ne-se))||1;pl=-(Ne-se)/ol*ul,Xn=(Re-$e)/ol*ul}Hn+=pl;var fl=v.fontcolor||"#000000",fi=v.labelbackgroundcolor,_n=[],Ll=zn*1.25,ml=(se+Ne)/2-4-(yn.length-1)*Ll+Xn;if(fi&&fi!=="none"){for(var Dl=0,qn=0;qn<yn.length;qn++){var Rl=Kr(yn[qn].text,yn[qn].size,yn[qn].bold);Rl>Dl&&(Dl=Rl)}Dl+=4;var Qn=Ll*yn.length;_n.push('<rect x="'+(Hn-Dl/2)+'" y="'+(ml-zn)+'" width="'+Dl+'" height="'+Qn+'" fill="'+fi+'" stroke="none"/>')}for(var Ca=0;Ca<yn.length;Ca++)_n.push(ie(Hn,ml+Ca*Ll,yn[Ca].text,yn[Ca].size,fl,yn[Ca].bold,yn[Ca].italic,"middle",v.fontfamily));Kn=`+`+_n.join(`+`)}}return Ta+Kn}function Ko(_,O,t,o,v,u){if(!_||_==="none")return"";var l;_==="block"?l=O==="1"?"blockfilled":"blockhollow":_==="open"||_==="openthin"?l="open":_==="halfcircle"?l="halfcircle":_==="diamond"||_==="diamondthin"?l=O==="1"?"diamondfilled":"diamondhollow":_==="oval"||_==="circle"?l="oval":_==="cross"?l="cross":_==="halftop"||_==="halfbottom"||_==="erone"||_==="ermandone"||_==="ermany"||_==="eronetomany"||_==="erzerotoone"||_==="erzerotomany"?l=_:_==="triangle"?l="blockhollow":l="classic";var d=t||"#000000",b=(v?parseFloat(v):6)+(parseFloat(u)||1)+2,m=Math.max(.3,b/10),w=l+"-"+d.replace(/[^0-9a-zA-Z]/g,"")+(o?"-s":"")+(m!==1?"-z"+Math.round(m*100):"");return g[w]||(g[w]={id:"ah-"+w,shape:l,color:d,start:!!o,scale:m}),"url(#"+g[w].id+")"}function ye(_,O,t){var o=_.absX,v=_.absY,u=_.geometry.width,l=_.geometry.height,d=t.x-O.x,b=t.y-O.y;if(d===0&&b===0)return{x:O.x,y:O.y};var m=d===0?1/0:d>0?(o+u-O.x)/d:(o-O.x)/d,w=b===0?1/0:b>0?(v+l-O.y)/b:(v-O.y)/b,S=Math.min(m,w);return S<0||!isFinite(S)?{x:O.x,y:O.y}:{x:O.x+d*S,y:O.y+b*S}}return{convert:hr,convertXml:G}})();var uc=(function(){function hr(){if(typeof document<"u"&&typeof Image<"u"&&typeof document.createElement=="function")return ae;throw new Error("PlantUml2Png.render requires a browser environment or a canvas polyfill. In pure Node.js, call PlantUml2Svg.convert() and pipe the result through an external SVG\u2192PNG rasteriser (resvg-js, sharp, Inkscape, or plantuml.jar -tpng).")}function G(fr,Ar){try{var P=Vs.convert(fr,Ar);return vr(P,Ar)}catch(J){return Promise.reject(J)}}function Wr(fr,Ar){try{var P=Vs.convertXml(fr,Ar);return vr(P,Ar)}catch(J){return Promise.reject(J)}}function vr(fr,Ar){Ar=Ar||{};var P;try{P=hr()}catch(J){return Promise.reject(J)}return P(fr,Ar)}function ae(fr,Ar){var P=Math.max(.1,parseFloat(Ar.scale)||1),J=Ar.backgroundColor||null,K=Ar.mimeType||"image/png";return new Promise(function(R,g){var y=Tr(fr),C=typeof Blob<"u"?new Blob([fr],{type:"image/svg+xml;charset=utf-8"}):null,s=C&&typeof URL<"u"&&URL.createObjectURL?URL.createObjectURL(C):"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(fr),i=new Image;i.onload=function(){try{var k=(i.width||y.width)*P,F=(i.height||y.height)*P,D=document.createElement("canvas");D.width=Math.max(1,Math.round(k)),D.height=Math.max(1,Math.round(F));var T=D.getContext("2d");J&&(T.fillStyle=J,T.fillRect(0,0,D.width,D.height)),T.drawImage(i,0,0,D.width,D.height);var M=D.toDataURL(K);s.slice(0,5)==="blob:"&&URL.revokeObjectURL&&URL.revokeObjectURL(s),R(M)}catch(V){g(V)}},i.onerror=function(k){s.slice(0,5)==="blob:"&&typeof URL<"u"&&URL.revokeObjectURL&&URL.revokeObjectURL(s),g(new Error("Failed to rasterise SVG (Image load error): "+(k&&k.message?k.message:"unknown")))},i.src=s})}function Tr(fr){var Ar=fr.match(/\bwidth="(\d+(?:\.\d+)?)"/),P=fr.match(/\bheight="(\d+(?:\.\d+)?)"/),J=fr.match(/\bviewBox="\s*([\d.\-]+)\s+([\d.\-]+)\s+([\d.\-]+)\s+([\d.\-]+)"/),K=Ar?parseFloat(Ar[1]):0,R=P?parseFloat(P[1]):0;return(!K||!R)&&J&&(K||(K=parseFloat(J[3])),R||(R=parseFloat(J[4]))),{width:K||800,height:R||600}}return{render:G,renderXml:Wr,renderSvg:vr}})();var yu=(function(){for(var hr=["participant","actor","boundary","control","entity","database","collections","queue"],G={},Wr=0;Wr<hr.length;Wr++)G[hr[Wr]]=!0;function vr(i,k){var F=i.length,D=k,T="none",M="none",V=null,A=0,I=0,$=ae(i,D,"<"),c=$;for(D=$.end;D<F&&i[D]==="-";)A++,D++;for(;D<F&&i[D]===".";)I++,D++;var x=!1;if(D<F&&i[D]==="["){var E=i.indexOf("]",D);if(E>D){for(var z=i.substring(D+1,E).split(","),lr=0;lr<z.length;lr++){var rr=z[lr].replace(/^\s+|\s+$/g,""),W=rr.toLowerCase();W==="dashed"||W==="dotted"?x=!0:W==="bold"||W==="hidden"||W===""||(V=rr.charAt(0)==="#"?rr:"#"+rr)}D=E+1}}for(;D<F&&i[D]==="-";)A++,D++;for(;D<F&&i[D]===".";)I++,D++;if(A+I===0)return null;var dr=ae(i,D,">"),or=dr;if(D=dr.end,T=Tr($),M=Tr(dr),T==="none"&&M==="none"&&A+I<2)return null;var yr=I>0&&A===0?"dotted":A>2||I>0?"dashed":"solid";return A===2&&I===0&&T==="none"&&M==="none"?null:(I===0&&(yr=A>=2?"dashed":"solid"),x&&yr==="solid"&&(yr="dashed"),{end:D,lineStyle:yr,leftHead:T,rightHead:M,left:c,right:or,color:V})}function ae(i,k,F){for(var D={arrow:!1,async:!1,cross:!1,circle:!1,part:null,end:k},T=k;T<i.length;){var M=i[T];if(M===F)D.arrow&&(D.async=!0),D.arrow=!0;else if(M==="x")D.cross=!0;else if(M==="o")D.circle=!0;else if(M==="\\")D.part="halfTop";else if(M==="/")D.part="halfBottom";else break;T++}return D.end=T,D}function Tr(i){return i.cross?"lost":i.circle?"circle":i.part?i.part:i.async?"open":i.arrow?"filled":"none"}function fr(i){return i.cross?"lost":i.part?i.part:i.async?"open":"filled"}function Ar(i,k){return k==="o"||i.circle?"circle":k==="x"||i.cross?"lost":null}function P(i,k){if(k==null)return"<b>"+i+"</b>";var F=String(k).match(/^([^0#]*)([0#]+)([^0#]*)$/);if(F==null)return String(i);for(var D=F[2].replace(/[^0]/g,"").length,T=String(i);T.length<D;)T="0"+T;return F[1]+T+F[3]}function J(i,k,F,D){var T=i;if(F.hasOwnProperty(T))return T;for(var M in F)if(F.hasOwnProperty(M)&&k[F[M]].name===i)return M;var V={id:T,name:i,kind:"participant",color:null,stereotype:null,order:D.value++,created:!1,box:null};return F[T]=k.length,k.push(V),T}function K(i){return i==null?i:String(i).replace(/\\r\\n|\\n|\\r/g,`+`).replace(/\\t/g," ")}function R(i,k){for(;k<i.length&&(i[k]===" "||i[k]===" ");)k++;if(k>=i.length)return null;if(i[k]==='"'){var F=i.indexOf('"',k+1);return F<0&&(F=i.length),{name:K(i.substring(k+1,F)),end:F+1}}for(var D=k;D<i.length&&!/[\s:<>\-\[\]"+*!]/.test(i[D]);)D++;return D===k?null:{name:i.substring(k,D),end:D}}function g(i,k,F,D){var T=/^&\s*/.exec(i);T&&(i=i.substring(T[0].length));var M=i.match(/^(?:([\[\]?])\s*([ox]?))?\s*(?=[<\-\/\\])/);if(M){var V=M[1]==="]"?"right":"left",A=vr(i,M[0].length);if(A!=null){for(var I=A.end;I<i.length&&(i[I]===" "||i[I]===" ");)I++;var $=R(i,I);if($!=null){var c=/^\s*([+*!-]+)?\s*(#\w+)?\s*(?:\[\[(?:[^\]]|\](?!\]))*\]\])?/.exec(i.substring($.end)),x=c&&c[1]?c[1]:null,E="",z=i.indexOf(":",$.end+(c?c[0].length:0));z>=0&&(E=i.substring(z+1).replace(/^\s+|\s+$/g,""));var lr=J($.name,k,F,D),rr=A.right.arrow||!A.left.arrow,W=Ar(A.left,M[2]);return{type:"message",from:rr?null:lr,to:rr?lr:null,fromEdge:rr?V:null,toEdge:rr?null:V,short:M[1]==="?",label:E,lineStyle:A.lineStyle,arrowHead:rr?fr(A.right):W==="lost"?"lost":fr(A.left),headDecor:rr?A.right.circle?"circle":null:W==="circle"?"circle":null,tailDecor:rr?W:Ar(A.right,""),color:A.color,activate:x&&x.indexOf("+")>=0?lr:null,activateColor:c&&c[2]?c[2]:null,deactivate:x&&x.indexOf("-")>=0?lr:null,activationSpec:x}}}}var dr=null,or=-1,yr=-1,pr=R(i,0);if(pr==null)return null;for(var Ur=pr.end;Ur<i.length&&(i[Ur]===" "||i[Ur]===" ");)Ur++;if(Ur>=i.length)return null;var Pr=vr(i,Ur);if(Pr==null)return null;for(var le=Pr.end;le<i.length&&le<i.length&&(i[le]===" "||i[le]===" ");)le++;var Pe=/^([ox]?)\s*([\[\]?])/.exec(i.substring(le));if(Pe){var Te=Pe[2]==="["?"left":"right",Ir=le+Pe[0].length,Er=/^\s*([+*!-]+)?\s*(#\w+)?/.exec(i.substring(Ir)),Kr=Er&&Er[1]?Er[1]:null,Xe="",Be=i.indexOf(":",Ir+(Er?Er[0].length:0));Be>=0&&(Xe=i.substring(Be+1).replace(/^\s+|\s+$/g,""));var ie=J(pr.name,k,F,D),Z=Pr.right.arrow||!Pr.left.arrow,oe=Ar(Pr.right,Pe[1]);return{type:"message",from:Z?ie:null,to:Z?null:ie,fromEdge:Z?null:Te,toEdge:Z?Te:null,short:Pe[2]==="?",label:Xe,lineStyle:Pr.lineStyle,arrowHead:Z?oe==="lost"?"lost":fr(Pr.right):fr(Pr.left),headDecor:Z?oe==="circle"?"circle":null:Pr.left.circle?"circle":null,tailDecor:Z?Ar(Pr.left,""):oe,color:Pr.color,activate:Kr&&Kr.indexOf("+")>=0?ie:null,activateColor:Er&&Er[2]?Er[2]:null,deactivate:Kr&&Kr.indexOf("-")>=0?ie:null,activationSpec:Kr}}var ee=R(i,le);if(ee==null)return null;var Ko=ee.end,ye=null,_=null,O=i.substring(Ko),t=O.match(/^\s*(\+\+--|--\+\+|\+\+|--|\*\*|!!)\s*(#\w+)?/),o=null,v=null;t&&(o=t[1],v=t[2]||null,Ko+=t[0].length);var u=/^\s*\[\[(?:[^\]]|\](?!\]))*\]\]/.exec(i.substring(Ko));u&&(Ko+=u[0].length);var l="",d=i.indexOf(":",Ko);d>=0&&(l=i.substring(d+1).replace(/^\s+|\s+$/g,""));var b=J(pr.name,k,F,D),m=J(ee.name,k,F,D),w=b,S=m,tr=Pr.right,ir=Pr.left,Nr;Pr.left.arrow&&Pr.right.arrow?Nr="bidirectional":(Pr.left.arrow&&(w=m,S=b,tr=Pr.left,ir=Pr.right),Nr=tr.cross?"lost":tr.part?tr.part:tr.async?"open":"filled");var xr=Nr!=="bidirectional"&&tr.circle?"circle":null,Ve=ir.circle?"circle":ir.cross?"lost":null;(o==="++"||o==="--++"||o==="++--")&&(ye=S),(o==="--"||o==="--++"||o==="++--")&&(_=w);var qr=o==="**"?S:null,$e=o==="!!"?S:null;return{type:"message",from:w,to:S,label:K(l),lineStyle:Pr.lineStyle,arrowHead:Nr,headDecor:xr,tailDecor:Ve,color:Pr.color,activate:ye,activateColor:v,deactivate:_,activationSpec:o,createTarget:qr,destroyTarget:$e,number:null}}function y(i,k,F){for(var D=[],T=k+1;T<i.length;T++){var M=i[T].replace(/^\s+|\s+$/g,"");if(M.toLowerCase()===F)return{text:D.join(`+`),endIdx:T};D.push(M)}return{text:D.join(`+`),endIdx:i.length-1}}function C(i){i=i.replace(/^\s+|\s+$/g,"");var k=/^(.*?)(?:^|\s)(#[A-Za-z0-9][A-Za-z0-9\/|:;.\-]*)\s*$/.exec(i);return k?{str:k[1].replace(/^\s+|\s+$/g,""),color:k[2]}:{str:i,color:null}}function s(i,k){k=k||{};for(var F=i.split(/\r\n|\r|\n/),D=[],T={},M=[],V=[],A=null,I=!1,$=null,c={},x=0,E={value:0},z=null,lr={},rr=k.styleSheet||nt.createSheet(),W=!1,dr=/^skinparam\s+monochrome\s+(true|on|yes)\s*$/im.test(i)||/^skinparam\s*\{[^}]*\bmonochrome\s+(true|on|yes)/im.test(i),or=0;or<F.length;or++){var yr=F[or],pr=yr.replace(/^\s+|\s+$/g,"");if(pr!==""&&pr.charAt(0)!=="'"&&pr.charAt(0)!=="!"){if(/^<style>$/i.test(pr)){for(var Ur=[];or+1<F.length;){or++;var Pr=F[or].replace(/^\s+|\s+$/g,"");if(/^<\/?style>$/i.test(Pr))break;Pr.charAt(0)!=="'"&&Ur.push(F[or])}try{rr.addBlock(Ur.join(`+`))}catch{}continue}var le=/^<style>(.*)<\/style>$/i.exec(pr);if(le!=null){try{rr.addBlock(le[1])}catch{}continue}if(!/^<style\b/i.test(pr)){if(/^skinparam\b/i.test(pr)){var Pe=pr.match(/^skinparam\s+([A-Za-z][A-Za-z0-9]*)?\s*\{\s*$/i);if(Pe||/\{\s*$/.test(pr))for(var Te=Pe&&Pe[1]?Pe[1].toLowerCase():"",Ir=1;Ir>0&&or+1<F.length;){or++;var Er=F[or].replace(/^\s+|\s+$/g,"");if(Er.indexOf("{")>=0&&Ir++,Er.indexOf("}")>=0){Ir--;continue}if(Ir===1){var Kr=Er.match(/^([A-Za-z][A-Za-z0-9]*)\s*(<<[^>]*>>)?\s+(\S.*)$/);Kr&&(lr[Te+Kr[1].toLowerCase()+(Kr[2]?Kr[2].toLowerCase():"")]=Kr[3].replace(/\s+$/,""))}}else{var Xe=pr.match(/^skinparam\s+([A-Za-z][A-Za-z0-9]*)\s*(<<[^>]*>>)?\s+(\S.*)$/i);Xe&&(lr[Xe[1].toLowerCase()+(Xe[2]?Xe[2].toLowerCase():"")]=Xe[3].replace(/\s+$/,""))}continue}if(/^hide\s+stereotypes?\s*$/i.test(pr)){W=!0;continue}var Be=pr.match(/^(?:(?:center|left|right)\s+)?(title|header|footer|caption)\s+(.+)$/i);if(Be){c[Be[1].toLowerCase()]=Be[2].replace(/^\s+|\s+$/g,"");continue}var ie=pr.match(/^(?:(?:center|left|right)\s+)?(title|header|footer|caption)\s*$/i);if(ie){for(var Z=ie[1].toLowerCase(),oe=new RegExp("^end\\s*"+Z+"$","i"),ee=[];or+1<F.length;){or++;var Ko=F[or].replace(/^\s+|\s+$/g,"");if(oe.test(Ko))break;ee.push(Ko)}c[Z]=ee.join(`+`);continue}if(!/^(scale|mainframe|hide|show)\b/i.test(pr)){var ye=pr.match(/^legend(?:\s+(left|right|center|top|bottom))?\s*$/i);if(ye){for(var _=[];or+1<F.length;){or++;var O=F[or].replace(/^\s+|\s+$/g,"");if(/^end\s*legend\b/i.test(O))break;_.push(O)}$={position:ye[1]?ye[1].toLowerCase():"center",lines:_};continue}if(!/^(top\s+to\s+bottom|left\s+to\s+right)\s+direction\b/i.test(pr)){var t=pr.toLowerCase(),o=pr.match(/^autoactivate\s+(on|off)$/i);if(o){I=o[1].toLowerCase()==="on";continue}var v=pr.match(/^autonumber(?:\s+(\d+))?(?:\s+(\d+))?(?:\s+"([^"]*)")?$/i);if(v){A={start:v[1]?parseInt(v[1],10):1,increment:v[2]?parseInt(v[2],10):1,format:v[3]||null},x=A.start;continue}if(/^autonumber\s+stop$/i.test(pr)){A=null;continue}if(/^autonumber\s+resume/i.test(pr)){A==null&&(A={start:1,increment:1,format:null});continue}var u=pr.match(/^box(?:\s+"([^"]*)"|\s+(\S+))?(?:\s+(#\S+))?$/i);if(u){z={label:K(u[1]||u[2]||""),color:u[3]||null,participants:[]},V.push(z);continue}if(/^end\s*box$/i.test(pr)){z=null;continue}var l=pr.match(/^(participant|actor|boundary|control|entity|database|collections|queue)\s+(.+)$/i);if(l&&!/^[<\-]/.test(l[2])){var d=l[1].toLowerCase(),b=l[2],m=null,w=null,S=null,tr=null,ir=b.match(/^(\S+)\s*\[\s*$/);if(ir){for(var Nr=[];or+1<F.length;){or++;var xr=F[or].replace(/^\s+|\s+$/g,"");if(xr==="]")break;Nr.push(xr)}var Ve=ir[1];T.hasOwnProperty(Ve)||(T[Ve]=D.length,D.push({id:Ve,name:Ve,kind:d,color:null,stereotype:null,stereoLetter:null,stereoColor:null,bodyLines:Nr,order:E.value++,created:!1,box:z?V.indexOf(z):null}),z&&z.participants.push(Ve));continue}var qr=R(b,0);if(qr){m=qr.name;var $e=b.substring(qr.end).replace(/^\s+/,""),se=$e.match(/^as\s+/i);if(se){var Re=$e.substring(se[0].length),Ne=R(Re,0);Ne&&(Re.charAt(0)==='"'&&b.charAt(0)!=='"'?(w=m,m=Ne.name):w=Ne.name,$e=Re.substring(Ne.end).replace(/^\s+/,""))}var Do=$e.match(/^(#\S+)(.*)/);Do&&(S=Do[1],$e=Do[2].replace(/^\s+/,""));var Zo=$e.match(/^<<\s*([^>]*)\s*>>/),uo=null,ke=null;if(Zo){tr=Zo[1].replace(/^\s+|\s+$/g,"");var Qt=tr.match(/^\(\s*([A-Za-z])\s*,\s*(#[0-9A-Fa-f]{3,8})\s*\)\s*(.*)$/);Qt&&(uo=Qt[1],ke=Qt[2],tr=Qt[3].replace(/^\s+|\s+$/g,"")||null)}var zo=w||m;if(T.hasOwnProperty(zo)){var Ua=T[zo],Mt=D[Ua];d!=="participant"&&(Mt.kind=d),S&&(Mt.color=S),tr&&(Mt.stereotype=tr)}else{var Lt={id:zo,name:m,kind:d,color:S,stereotype:tr,stereoLetter:uo,stereoColor:ke,order:E.value++,created:!1,box:z?V.indexOf(z):null};T[zo]=D.length,D.push(Lt),z&&z.participants.push(zo)}}continue}var yt=pr.match(/^create\s+(?:(participant|actor|boundary|control|entity|database|collections|queue)\s+)?(.+)$/i);if(yt){var Ta=yt[1]?yt[1].toLowerCase():"participant",hn=R(yt[2],0);if(hn){var xa=hn.name,ze=yt[2].substring(hn.end).replace(/^\s+/,""),Aa=ze.match(/^as\s+(\S+)/i);if(Aa&&(xa=Aa[1]),T.hasOwnProperty(xa))D[T[xa]].created=!0;else{var Gt={id:xa,name:hn.name,kind:Ta,color:null,stereotype:null,order:E.value++,created:!0,box:z?V.indexOf(z):null};T[xa]=D.length,D.push(Gt),z&&z.participants.push(xa)}M.push({type:"create",participant:xa})}continue}var ra=pr.match(/^activate\s+(\S+)(?:\s+(#\S+))?$/i);if(ra){var Sa=J(ra[1],D,T,E);M.push({type:"activate",participant:Sa,color:ra[2]||null});continue}var Wn=pr.match(/^deactivate\s+(\S+)$/i);if(Wn){var xn=J(Wn[1],D,T,E);M.push({type:"deactivate",participant:xn});continue}var Sn=pr.match(/^destroy\s+(\S+)$/i);if(Sn){var Kn=J(Sn[1],D,T,E);M.push({type:"destroy",participant:Kn});continue}var zn=pr.match(/^return(?:\s+(.*))?$/i);if(zn){var un={type:"message",from:null,to:null,label:zn[1]?K(zn[1].replace(/^\s+|\s+$/g,"")):"",lineStyle:"dashed",arrowHead:"filled",color:null,activate:null,deactivate:null,number:null,isReturn:!0};A&&(un.number=x,un.numberText=P(x,A.format),x+=A.increment),M.push(un);continue}var sl=pr.match(/^(h?note|rnote)\s+(left|right|over|across)(?:\s+of\s+)?(?:(.+?)\s*)?$/i);if(sl){var yn=sl[1].toLowerCase(),vl=sl[2].toLowerCase(),Hn=sl[3]||"",ul=Hn.indexOf(":"),pl=[],Xn="",ol=null,fl;if(ul>=0){var fi=Hn.substring(0,ul).replace(/^\s+|\s+$/g,"");Xn=Hn.substring(ul+1).replace(/^\s+|\s+$/g,""),fl=C(fi),ol=fl.color,fl.str&&(pl=fl.str.split(/\s*,\s*/));for(var _n=0;_n<pl.length;_n++)pl[_n]=J(pl[_n],D,T,E);var Ll=yn==="rnote"?"box":yn==="hnote"?"hexagon":"note";M.push({type:"note",position:vl,over:pl,text:K(Xn),color:ol,shape:Ll})}else{if(fl=C(Hn),ol=fl.color,fl.str){pl=fl.str.split(/\s*,\s*/);for(var ml=0;ml<pl.length;ml++)pl[ml]=J(pl[ml],D,T,E)}var Dl=y(F,or,"end note");or=Dl.endIdx;var qn=yn==="rnote"?"box":yn==="hnote"?"hexagon":"note";M.push({type:"note",position:vl,over:pl,text:K(Dl.text),color:ol,shape:qn})}continue}var Rl=pr.match(/^==\s*(.*?)\s*==$/);if(Rl){M.push({type:"divider",label:K(Rl[1])});continue}var Qn=pr.match(/^(?:\.{3}|…)(?:(.*)(?:\.{3}|…))?$/);if(Qn){M.push({type:"delay",label:K((Qn[1]||"").replace(/^\s+|\s+$/g,""))});continue}var Ca=pr.match(/^\|\|(\d+)\|\|$/);if(/^\|\|\|$/.test(pr)||Ca){M.push({type:"gap",h:Ca?parseInt(Ca[1],10):null});continue}var Qa=pr.match(/^(group|alt|else|opt|loop|par|break|critical)\b\s*(.*)$/i);if(Qa){var gn=Qa[1].toLowerCase(),In=Qa[2].replace(/^\s+|\s+$/g,""),Ga=null,Fo=null,vn=In.match(/^(#[A-Za-z0-9]+)(?:\s+(#[A-Za-z0-9]+))?\s*(.*)$/);vn&&(vn[2]?(Ga=vn[1],Fo=vn[2]):Fo=vn[1],In=vn[3]),gn==="else"?M.push({type:"groupElse",label:K(In),color:Fo}):M.push({type:"groupStart",kind:gn,label:K(In),color:Fo,headColor:Ga});continue}if(/^end$/i.test(pr)){M.push({type:"groupEnd"});continue}var kl=pr.match(/^ref\s+over\s+(.+?)\s*:\s*(.*)$/i);if(kl){for(var Wl=C(kl[1]),oi=Wl.str.split(/\s*,\s*/),Ul=0;Ul<oi.length;Ul++)oi[Ul]=J(oi[Ul],D,T,E);M.push({type:"ref",over:oi,color:Wl.color,label:kl[2].replace(/^\s+|\s+$/g,"")});continue}var di=pr.match(/^ref\s+over\s+(.+)$/i);if(di){for(var Bi=C(di[1].replace(/^\s+|\s+$/g,"")),Bl=Bi.str.split(/\s*,\s*/),ci=0;ci<Bl.length;ci++)Bl[ci]=J(Bl[ci],D,T,E);var Xl=y(F,or,"end ref");or=Xl.endIdx,M.push({type:"ref",over:Bl,color:Bi.color,label:Xl.text});continue}var gi=pr.replace(/^&\s*/,"").replace(/^(\S+)\s+-{2,}>?\s*$/,"$1 ->]"),fn=g(gi,D,T,E);if(fn){fn.createTarget!=null&&(T.hasOwnProperty(fn.createTarget)&&(D[T[fn.createTarget]].created=!0),M.push({type:"create",participant:fn.createTarget})),I&&fn.activationSpec==null&&fn.arrowHead!=="lost"&&fn.arrowHead!=="none"&&(fn.lineStyle!=="solid"?fn.deactivate=fn.from!=null?fn.from:fn.to:fn.activate=fn.to!=null?fn.to:fn.from),A&&(fn.number=x,fn.numberText=P(x,A.format),x+=A.increment),M.push(fn),fn.destroyTarget!=null&&M.push({type:"destroy",participant:fn.destroyTarget});continue}}}}}}if(nt.hasUserRules(rr)){for(var ti=nt.createSheet(),ai=function(Ei,Ii,Di,Ni){var li=nt.plainStyle(Ei,nt.signature(["root","element","sequenceDiagram"].concat(Ii),-1,[],!1)),as=Ni?nt.color(li,Di):nt.raw(li,Di);return as==null||as==="none"?null:String(as)},Gl=function(Ei,Ii,Di,Ni){var li=ai(rr,Ii,Di,Ni);li!=null&&li!==ai(ti,Ii,Di,Ni)&&(lr[Ei]=li)},yi=["participant","actor","boundary","control","entity","database","collections","queue"],Ai=0;Ai<yi.length;Ai++)Gl(yi[Ai]+"backgroundcolor",[yi[Ai]],"BackGroundColor",!0),Gl(yi[Ai]+"bordercolor",[yi[Ai]],"LineColor",!0),Gl(yi[Ai]+"fontcolor",[yi[Ai]],"FontColor",!0);Gl("sequencearrowcolor",["arrow"],"LineColor",!0),Gl("sequencearrowthickness",["arrow"],"LineThickness",!1),Gl("sequencelifelinebackgroundcolor",["lifeLine"],"BackGroundColor",!0),Gl("sequencelinethickness",["lifeLine"],"LineThickness",!1),Gl("sequencedividerbackgroundcolor",["separator"],"BackGroundColor",!0),Gl("sequencedividerbordercolor",["separator"],"LineColor",!0),Gl("sequencedividerfontcolor",["separator"],"FontColor",!0)}for(var ni=0;ni<D.length;ni++){var wl=D[ni],mi=(wl.kind||"participant").toLowerCase(),dl=wl.stereotype?"<<"+wl.stereotype.toLowerCase()+">>":null;wl.colorInline=wl.color!=null,wl.color==null&&(wl.color=(dl?lr[mi+"backgroundcolor"+dl]:null)||lr[mi+"backgroundcolor"]||null),wl.borderColor=(dl?lr[mi+"bordercolor"+dl]:null)||lr[mi+"bordercolor"]||null,wl.fontColor=(dl?lr[mi+"fontcolor"+dl]:null)||lr[mi+"fontcolor"]||null}return{participants:D,elements:M,boxes:V,autonumber:A,legend:$,title:c.title||null,header:c.header||null,footer:c.footer||null,caption:c.caption||null,monochrome:dr,skin:lr,hideStereotype:W}}return{parse:s}})();var Eu=(function(){function hr(C){return C.replace(/^\s+|\s+$/g,"")}function G(C){if(C==null)return"state";var s=C.toLowerCase();switch(s){case"fork":case"join":case"choice":case"start":case"end":case"entrypoint":case"exitpoint":return s;default:return"state"}}function Wr(C,s){for(var i=0;i<s.length;i++){var k=s[i];if(k.children){for(var F=0;F<k.children.length;F++)if(k.children[F].id===C)return k.children[F];var D=Wr(C,k.children);if(D!=null)return D}if(k.regions)for(var T=0;T<k.regions.length;T++){var M=k.regions[T].children||[],V=Wr(C,M);if(V!=null)return V;for(var A=0;A<M.length;A++)if(M[A].id===C)return M[A]}}return null}function vr(C,s,i){if(i.hasOwnProperty(C))return s[i[C]];var k=Wr(C,s);if(k!=null)return k;var F="state";C==="[*]_start"||C==="[*]_end"?F=C==="[*]_start"?"initial":"final":C==="[H]"?F="history_shallow":C==="[H*]"&&(F="history_deep");var D={id:C,name:C,description:[],stereotype:null,color:null,kind:F,children:null,concurrent:!1};return i[C]=s.length,s.push(D),D}function ae(C){return C==="[*]_start"||C==="[*]_end"||C==="[H]"||C==="[H*]"}function Tr(C,s){if(C.children)for(var i=C.children.length-1;i>=0;i--){var k=C.children[i];if(!(k.id!==C.id||k.kind!=="state"||k.children&&k.children.length>0)){for(var F=!1,D=0;D<s.length;D++)(s[D].from===k.id||s[D].to===k.id)&&(F=!0);if(!F){for(var T=0;T<k.description.length;T++)C.description.push(k.description[T]);C.children.splice(i,1)}}}}function fr(C,s,i){for(var k={},F=0;F<s.length;F++){var D=s[F];if(ae(D.id)){var T=C+"$"+D.id;k[D.id]=T,D.id=T}}for(var M=0;M<i.length;M++){var V=i[M];k.hasOwnProperty(V.from)&&(V.from=k[V.from]),k.hasOwnProperty(V.to)&&(V.to=k[V.to])}}function Ar(C,s){var i=C.length,k=s,F=null,D=0;if(k>=i||C[k]!=="-")return null;k++,D++;var T=C.substring(k).match(/^(left|right|up|down|l|r|u|d)(?=-)/i);if(T){var M=T[1].toLowerCase();switch(M){case"left":case"l":F="left";break;case"right":case"r":F="right";break;case"up":case"u":F="up";break;case"down":case"d":F="down";break}k+=T[1].length}for(;k<i&&C[k]==="-";)D++,k++;return D<1||k>=i||C[k]!==">"?null:(k++,{end:k,direction:F,dashCount:D})}function P(C,s){for(;s<C.length&&(C[s]===" "||C[s]===" ");)s++;if(s>=C.length)return null;if(C[s]==="["){var i=C.indexOf("]",s);if(i>=0){var k=C.substring(s+1,i);if(k==="*"||k==="H"||k==="H*")return{name:"["+k+"]",end:i+1}}return null}if(C[s]==="="){var F=C.substring(s).match(/^==+\s*([\w.]+)\s*==+/);return F?{name:F[1],end:s+F[0].length,bar:!0}:null}if(C[s]==='"'){var D=C.indexOf('"',s+1);return D<0&&(D=C.length),{name:C.substring(s+1,D),end:D+1}}for(var T=s;T<C.length&&/[\w]/.test(C[T]);)T++;return T===s?null:{name:C.substring(s,T),end:T}}function J(C,s,i,k){var F=1,D=[],T=hr(C[s].substring(i+1));if(T!==""&&T!=="}"&&D.push(T),T==="}")return{children:[],transitions:[],notes:[],concurrent:!1,regions:null,endIdx:s};for(var M=s+1;M<C.length;M++){for(var V=C[M],A=hr(V),I=0;I<A.length;I++)if(A[I]==="{")F++;else if(A[I]==="}"&&(F--,F===0)){var $=hr(A.substring(0,I));return $!==""&&D.push($),K(D,M,k)}D.push(V)}return K(D,M-1,k)}function K(C,s,i){for(var k=i||"composite",F=[[]],D=null,T=0;T<C.length;T++){var M=hr(C[T]).match(/^(--+|\|\|+)$/);M?(D==null&&(D=M[1].charAt(0)),F.push([])):F[F.length-1].push(C[T])}for(var V=[],A=0;A<F.length;A++)F[A].length>0&&V.push(F[A]);if(V.length>1){for(var I=[],$=[],c=[],x=[],E=0;E<V.length;E++){var z=R(V[E].join(`+`));fr(k+"#"+E,z.states,z.transitions),I.push({states:z.states,transitions:z.transitions,notes:z.notes});for(var lr=0;lr<z.states.length;lr++)$.push(z.states[lr]);for(var rr=0;rr<z.transitions.length;rr++)c.push(z.transitions[rr]);for(var W=0;W<z.notes.length;W++)x.push(z.notes[W])}return{children:$,transitions:c,notes:x,concurrent:!0,regions:I,sepChar:D,endIdx:s}}var dr=R(V.length?V[0].join(`+`):"");return fr(k,dr.states,dr.transitions),{children:dr.states,transitions:dr.transitions,notes:dr.notes,concurrent:!1,regions:null,sepChar:null,endIdx:s}}function R(C){for(var s=C.split(/\r\n|\r|\n/),i=[],k={},F=[],D=[],T=!1,M=0;M<s.length;M++){var V=s[M],A=hr(V);if(A!==""&&A.charAt(0)!=="'"&&A.charAt(0)!=="!"){if(/^<style\b/i.test(A)){for(;!/<\/style>/i.test(hr(s[M]))&&M+1<s.length;)M++;continue}if(/^skinparam\b/i.test(A)){if(/\{\s*$/.test(A))for(var I=1;I>0&&M+1<s.length;){M++;var $=hr(s[M]);$.indexOf("{")>=0&&I++,$.indexOf("}")>=0&&I--}continue}if(!/^(title|header|footer|caption|scale|mainframe|hide|show)\b/i.test(A)&&!/^(top\s+to\s+bottom|left\s+to\s+right)\s+direction\b/i.test(A)){if(/^(--+|\|\|+)$/.test(A)){T=!0;continue}var c=A.match(/^note\s+(left|right)\s+of\s+(\S+)(?:\s+#[\w;:.]+)?\s*:\s*(.*)$/i);if(c){D.push({position:c[1].toLowerCase(),target:c[2],text:hr(c[3])});continue}var x=A.match(/^note\s+(left|right)\s+of\s+(\S+)(?:\s+#[\w;:.]+)?\s*$/i);if(x){for(var E=x[1].toLowerCase(),z=x[2],lr=[],rr=M+1;rr<s.length;rr++){var W=hr(s[rr]);if(/^end\s*note$/i.test(W)){M=rr;break}lr.push(hr(s[rr]))}D.push({position:E,target:z,text:lr.join(`+`)});continue}var dr=A.match(/^note(?:\s+(left|right|top|bottom))?\s+on\s+link\s*(?::\s*(.*))?$/i);if(dr&&F.length>0){var or={position:"link",side:(dr[1]||"right").toLowerCase(),target:null,linkIndex:F.length-1,text:""};if(dr[2]!=null)or.text=hr(dr[2]);else{for(var yr=[],pr=M+1;pr<s.length;pr++){if(/^end\s*note$/i.test(hr(s[pr]))){M=pr;break}yr.push(hr(s[pr]))}or.text=yr.join(`+`)}D.push(or);continue}var Ur=A.match(/^state\s+(.+)$/i);if(Ur){var Pr=Ur[1],le=null,Pe=null,Te=null,Ir=null,Er=P(Pr,0);if(Er){le=Er.name;var Kr=Pr.substring(Er.end),Xe=Kr.match(/^\s+as\s+(\S+)(.*)/i);Xe&&(Pe=Xe[1],Kr=Xe[2]);var Be=Kr.match(/\s*<<\s*([^>]*)\s*>>/);Be&&(Te=hr(Be[1]),Kr=Kr.substring(0,Kr.indexOf("<<"))+Kr.substring(Kr.indexOf(">>")+2));var ie=Kr.match(/\s*(#\S+)/);ie&&(Ir=ie[1],Kr=Kr.replace(ie[0],""));var Z=Pe||le,oe=G(Te),ee;k.hasOwnProperty(Z)?(ee=i[k[Z]],Te&&(ee.stereotype=Te,ee.kind=oe),Ir&&(ee.color=Ir),Pe&&le!==Z&&(ee.name=le)):(ee={id:Z,name:Pe?le:Z,description:[],stereotype:Te,color:Ir,kind:oe,children:null,concurrent:!1,regions:null,regionSep:null},k[Z]=i.length,i.push(ee));var Ko=Kr.match(/^\s*:\s*(.+?)\s*$/);if(Ko&&ee.description.push(Ko[1]),Kr=hr(Kr),Kr.length>0&&Kr.charAt(Kr.length-1)==="{"){var ye=A.lastIndexOf("{"),_=J(s,M,ye,Z);if(ee.children=_.children||[],ee.concurrent=_.concurrent,ee.regions=_.regions||null,ee.regionSep=_.sepChar||null,Tr(ee,_.transitions||[]),_.transitions)for(var O=0;O<_.transitions.length;O++)F.push(_.transitions[O]);if(_.notes)for(var t=0;t<_.notes.length;t++)D.push(_.notes[t]);M=_.endIdx}else if(Kr==="{"){var o=A.lastIndexOf("{"),v=J(s,M,o,Z);if(ee.children=v.children||[],ee.concurrent=v.concurrent,ee.regions=v.regions||null,ee.regionSep=v.sepChar||null,v.transitions)for(var u=0;u<v.transitions.length;u++)F.push(v.transitions[u]);if(v.notes)for(var l=0;l<v.notes.length;l++)D.push(v.notes[l]);M=v.endIdx}}continue}var d=A.match(/^(\S+)\s*:\s*(.*)$/);if(d){var b=d[1];if(b!=="note"&&b.indexOf("-")<0){var m=vr(b,i,k);m.description.push(hr(d[2]));continue}}var w=g(A,i,k);if(w){F.push(w);continue}}}}return{states:i,transitions:F,notes:D,hasConcurrentSep:T}}function g(C,s,i){var k=null,F=null,D=!1;C=C.replace(/(-)\[([^\]\[]*)\](?=[-\w>])/,function(Er,Kr,Xe){for(var Be=Xe.split(","),ie=0;ie<Be.length;ie++){var Z=Be[ie].replace(/^\s+|\s+$/g,"");Z.charAt(0)==="#"?k=Z:/^(dashed|dotted)$/i.test(Z)?F=Z.toLowerCase():(/^bold$/i.test(Z)||/^thickness\s*=\s*\d+/i.test(Z))&&(D=!0)}return Kr});var T=P(C,0);if(T==null)return null;for(var M=T.end;M<C.length&&(C[M]===" "||C[M]===" ");)M++;if(M>=C.length)return null;var V=Ar(C,M);if(V==null)return null;for(var A=V.end;A<C.length&&(C[A]===" "||C[A]===" ");)A++;var I=P(C,A);if(I==null)return null;var $=T.name,c=I.name,x,E;if($==="[*]")x="[*]_start",vr(x,s,i);else if($==="[H]"||$==="[H*]")x=$,vr(x,s,i);else{x=$;var z=vr(x,s,i);T.bar&&z.kind==="state"&&(z.kind="fork")}var lr=C.substring(I.end).match(/^\[(H\*?)\]/),rr=!1;if(lr&&c!=="[*]"&&c.charAt(0)!=="["){var W=i.hasOwnProperty(c)?s[i[c]]:Wr(c,s);if(W!=null){var dr=c+"$["+lr[1]+"]",or=null;W.children==null&&(W.children=[]);for(var yr=0;yr<W.children.length;yr++)W.children[yr].id===dr&&(or=W.children[yr]);or==null&&W.children.push({id:dr,name:lr[1],description:[],stereotype:null,color:null,kind:lr[1]==="H*"?"history_deep":"history_shallow",children:null,concurrent:!1,regions:null}),E=dr,rr=!0}}if(!rr)if(c==="[*]")E="[*]_end",vr(E,s,i);else if(c==="[H]"||c==="[H*]")E=c,vr(E,s,i);else{E=c;var pr=vr(E,s,i);I.bar&&pr.kind==="state"&&(pr.kind="fork")}var Ur="",Pr=null,le=I.end,Pe=C.indexOf(":",le);if(Pe>=0){Ur=hr(C.substring(Pe+1));var Te=Ur.match(/^\[([^\]]*)\]/),Ir=Ur.match(/\[([^\]]*)\]\s*$/);Te?Pr=Te[1]:Ir&&(Pr=Ir[1])}return{from:x,to:E,label:Ur,guard:Pr,dashCount:V.dashCount,direction:V.direction,color:k,lineStyle:F,bold:D}}function y(C,s){s=s||{};var i=R(C),k=null;if(i.transitions&&i.transitions.length>0){for(var F=!0,D=!1,T=0;T<i.transitions.length;T++){var M=i.transitions[T];if(M.from&&M.to&&M.from.indexOf("[*]")<0&&M.to.indexOf("[*]")<0&&M.dashCount!=null&&(D=!0,M.dashCount>1)){F=!1;break}}D&&F&&(k="LR")}return{states:i.states,transitions:i.transitions,notes:i.notes,direction:k}}return{parse:y}})();var Du=(function(){function hr(K){for(var R=K.split(/\r\n|\r|\n/),g=[],y=!1,C=0;C<R.length;C++){var s=R[C],i=s.replace(/^\s+|\s+$/g,"");if(y){s.indexOf("'/")>=0&&(y=!1);continue}if(i!==""){if(i.substring(0,2)==="/'"){i.indexOf("'/",2)<0&&(y=!0);continue}if(i.charAt(0)!=="'"&&i.charAt(0)!=="!"){if(/^skinparam\b/i.test(i)){if(/\{\s*$/.test(i))for(var k=1;k>0&&C+1<R.length;){C++;var F=R[C].replace(/^\s+|\s+$/g,"");F.indexOf("{")>=0&&k++,F.indexOf("}")>=0&&k--}continue}/^(title|header|footer|caption|scale|mainframe|hide|show)\b/i.test(i)||/^(top\s+to\s+bottom|left\s+to\s+right)\s+direction\b/i.test(i)||g.push(i)}}}return g}function G(K){return K==null?"":K.replace(/^\s*(?:->)?\s*(?:\[#[^\]]*\]|#[a-zA-Z0-9.]+)?\s*/,"").replace(/^\s+|\s+$/g,"")}function Wr(K,R,g,y,C){for(;R<K.length;){var s=K[R],i=s.toLowerCase();if(y){for(var k=0;k<y.length;k++)if(i===y[k]||i.indexOf(y[k])===0){var F=y[k];if(i===F)return R;if(F.indexOf(" ")>=0){if(i.indexOf(F)===0&&(i.length===F.length||i.charAt(F.length)===" "||i.charAt(F.length)==="("))return R}else if(i===F||i.indexOf(F)===0&&(i.charAt(F.length)===" "||i.charAt(F.length)==="("))return R}}var D=s.match(/^-+>\s*(.+?)\s*;?\s*$/);if(D){g.push({type:"arrowLabel",label:D[1]}),R++;continue}if(/^start\s*$/i.test(s)){g.push({type:"start"}),R++;continue}if(/^stop\s*$/i.test(s)){g.push({type:"stop"}),R++;continue}if(/^end\s*$/i.test(s)){g.push({type:"end"}),R++;continue}if(/^(?:detach|kill)\s*$/i.test(s)){g.push({type:"detach"}),R++;continue}var T=s.match(/^\((\S)\)\s*;?\s*$/);if(T){g.push({type:"spot",letter:T[1]}),R++;continue}var M=s.match(/^\|(\s*#([^|]*)\s*)?\|?\s*([^|]+?)\s*\|$/);if(M||(M=s.match(/^\|([^|]*)\|$/)),M){var V=null,A=null,I=s.match(/^\|#([^|]+)\|([^|]+)\|$/);if(I)A="#"+I[1],V=I[2].replace(/^\s+|\s+$/g,"");else{var $=s.match(/^\|([^|]+)\|$/);$&&(V=$[1].replace(/^\s+|\s+$/g,""))}if(V){for(var c=!1,x=0;x<C.length;x++)if(C[x].name===V){c=!0,A&&!C[x].color&&(C[x].color=A);break}c||C.push({name:V,color:A}),g.push({type:"swimlane",name:V})}R++;continue}var E=s.match(/^(floating\s+)?note(?:\s+(left|right))?((?:\s*(?:#[\w\-\\|/]+|<<[^>]*>>))*)\s*(:\s*(.*))?$/i);if(E&&(E[4]!=null||/^\s*$/.test(s.substring(E[0].length)))){var z=E[3]||"",lr=z.match(/#[\w\-\\|/]+/),rr=z.match(/<<\s*([^>]*?)\s*>>/),W={type:"note",position:(E[2]||"left").toLowerCase(),text:"",floating:!!E[1],color:lr?lr[0]:null,stereotype:rr?rr[1]:null};if(E[4]!=null){W.text=(E[5]||"").replace(/^\s+|\s+$/g,""),g.push(W),R++;continue}var dr=[];for(R++;R<K.length;){if(/^end\s*note$/i.test(K[R])){R++;break}dr.push(K[R]),R++}W.text=dr.join(`+`),g.push(W);continue}var or=Tr(K,R,/^if\s*\(/i,vr),yr=or!=null?or.line.match(vr):null;if(yr){var pr={type:"if",condition:yr[1].replace(/^\s+|\s+$/g,""),thenLabel:(yr[2]!=null?yr[2]:yr[3]!=null?yr[3]:"").replace(/^\s+|\s+$/g,""),elseLabel:"",thenBranch:[],elseBranch:[],elseIfBranches:[]};for(R=or.next,R=Wr(K,R,pr.thenBranch,["else","elseif","endif","end if"],C);R<K.length;){var Ur=K[R].toLowerCase();if(Ur==="endif"||Ur==="end if"){R++;break}var Pr=Tr(K,R,/^else\s?if\s*\(/i,ae),le=Pr!=null?Pr.line.match(ae):null;if(le){var Pe={condition:le[1].replace(/^\s+|\s+$/g,""),thenLabel:(le[2]!=null?le[2]:le[3]!=null?le[3]:"").replace(/^\s+|\s+$/g,""),body:[]};R=Pr.next,R=Wr(K,R,Pe.body,["else","elseif","endif","end if"],C),pr.elseIfBranches.push(Pe);continue}var Te=K[R].match(/^else\s*(?:\((?:->)?([\s\S]*?)\))?\s*;?\s*$/i);if(Te){pr.elseLabel=Te[1]!=null?Te[1].replace(/^\s+|\s+$/g,""):"",R++,R=Wr(K,R,pr.elseBranch,["endif","end if"],C),R<K.length&&/^end\s?if$/i.test(K[R])&&R++;break}R++;break}g.push(pr);continue}var Ir=s.match(/^while\s*\(([^)]*)\)\s*(?:is\s*\(([^)]*)\))?\s*$/i);if(Ir){var Er={type:"while",condition:Ir[1].replace(/^\s+|\s+$/g,""),isLabel:Ir[2]!=null?Ir[2].replace(/^\s+|\s+$/g,""):"",endLabel:"",body:[]};if(R++,R=Wr(K,R,Er.body,["endwhile","end while"],C),R<K.length){var Kr=K[R].match(/^end\s?while\s*(?:\(([^)]*)\))?\s*$/i);Kr&&(Er.endLabel=Kr[1]!=null?Kr[1].replace(/^\s+|\s+$/g,""):"",R++)}g.push(Er);continue}var Xe=s.match(/^(?:#([a-zA-Z0-9.]+)\s+)?repeat\s*(?::\s*(.*?)\s*;)?(?:\s*<<[^>]*>>)?\s*$/i);if(Xe){var Be={type:"repeat",label:Xe[2]!=null?Xe[2]:"",color:Xe[1]?"#"+Xe[1]:null,backward:null,body:[],condition:"",isLabel:"",notLabel:""};R++,R=Wr(K,R,Be.body,["repeat while"],C);for(var ie=[],Z=0;Z<Be.body.length;Z++)Be.body[Z].type==="backward"?Be.backward==null&&(Be.backward=Be.body[Z]):ie.push(Be.body[Z]);if(Be.body=ie,R<K.length){var oe=K[R].match(/^repeat\s+while\s*\(([^)]*)\)\s*(?:is\s*\(([^)]*)\))?\s*(?:not\s*\(([^)]*)\))?\s*$/i);oe&&(Be.condition=oe[1]!=null?oe[1].replace(/^\s+|\s+$/g,""):"",Be.isLabel=oe[2]!=null?oe[2].replace(/^\s+|\s+$/g,""):"",Be.notLabel=oe[3]!=null?oe[3].replace(/^\s+|\s+$/g,""):"",R++)}g.push(Be);continue}var ee=s.match(/^(?:\(([^)]*)\)\s*)?backward\s*:\s*(.*?)\s*;(?:\s*\(([^)]*)\))?(?:\s*<<[^>]*>>)?\s*$/i);if(ee){g.push({type:"backward",label:ee[2],incomingLabel:G(ee[1]),outgoingLabel:G(ee[3])}),R++;continue}var Ko=s.match(/^backward\s*:\s*(.*)$/i);if(Ko&&s.charAt(s.length-1)!==";"){var ye=[Ko[1]];for(R++;R<K.length;){var _=K[R];if(_.charAt(_.length-1)===";"){ye.push(_.substring(0,_.length-1)),R++;break}ye.push(_),R++}g.push({type:"backward",label:ye.join(`+`).replace(/^\s+|\s+$/g,""),incomingLabel:"",outgoingLabel:""});continue}if(/^fork\s*$/i.test(s)){var O={type:"fork",branches:[[]]};for(R++,R=Wr(K,R,O.branches[0],["fork again","end fork"],C);R<K.length;){if(/^end\s+fork\s*$/i.test(K[R])){R++;break}if(/^fork\s+again\s*$/i.test(K[R])){var t=[];O.branches.push(t),R++,R=Wr(K,R,t,["fork again","end fork"],C);continue}R++;break}g.push(O);continue}if(/^split\s*$/i.test(s)){var o={type:"split",branches:[[]]};for(R++,R=Wr(K,R,o.branches[0],["split again","end split"],C);R<K.length;){if(/^end\s+split\s*$/i.test(K[R])){R++;break}if(/^split\s+again\s*$/i.test(K[R])){var v=[];o.branches.push(v),R++,R=Wr(K,R,v,["split again","end split"],C);continue}R++;break}g.push(o);continue}var u=s.match(/^switch\s*\(([^)]*)\)\s*$/i);if(u){var l={type:"switch",condition:u[1].replace(/^\s+|\s+$/g,""),cases:[]};for(R++;R<K.length;){if(/^endswitch\s*$/i.test(K[R])){R++;break}var d=K[R].match(/^case\s*\(([^)]*)\)\s*$/i);if(d){var b={label:d[1].replace(/^\s+|\s+$/g,""),body:[]};R++,R=Wr(K,R,b.body,["case","endswitch"],C),l.cases.push(b);continue}R++}g.push(l);continue}var m=s.match(/^group\s+(?:"([^"]*)"|(.+?))\s*$/i);if(m){var w={type:"partition",name:m[1]||m[2],body:[]};R++,R=Wr(K,R,w.body,["end group"],C),R<K.length&&/^end\s+group$/i.test(K[R])&&R++,g.push(w);continue}var S=s.match(/^partition\s+(?:(#\S+)\s+)?(?:"([^"]*)"|([^#\s{]+))(?:\s+(#\S+))?\s*\{\s*$/i);if(S){var tr={type:"partition",name:S[2]||S[3],color:S[1]||S[4]||null,body:[]};R++,R=Wr(K,R,tr.body,["}"],C),R<K.length&&K[R]==="}"&&R++,g.push(tr);continue}var ir=s.match(/^(?:\[\[[^\]]*\]\]\s*)?(?:#([a-zA-Z0-9]+))?:(.*?)([;|/<>\]}\\])\s*((?:<<[^>]*>>\s*)*)$/);if(ir){g.push(P(ir[2],ir[3],ir[4],ir[1]?"#"+ir[1]:null)),R++;continue}var Nr=s.match(/^[-*][ \t]?(?![-.>\[])((?:<<[^>]*>>\s*)*)(.*?)\s*((?:<<[^>]*>>\s*)*)$/);if(Nr&&Nr[2].replace(/^\s+|\s+$/g,"")!==""){g.push(P(Nr[2],";",Nr[1]+Nr[3],null)),R++;continue}var xr=s.match(/^(?:\[\[[^\]]*\]\]\s*)?(?:#([a-zA-Z0-9]+))?:(.*)$/);if(xr&&!/[;|/<>\]}\\]\s*$/.test(s)){var Ve=xr[1]?"#"+xr[1]:null,qr=[xr[2]],$e=";",se="";for(R++;R<K.length;){var Re=K[R].match(/^(.*?)([;|/<>\]}\\])\s*((?:<<[^>]*>>\s*)*)$/);if(Re){qr.push(Re[1]),$e=Re[2],se=Re[3],R++;break}qr.push(K[R]),R++}g.push(P(qr.join(`+`),$e,se,Ve));continue}if(s==="}"){R++;continue}R++}return R}var vr=/^if\s*\(([\s\S]*?)\)\s*(?:then\s*(?:\(([\s\S]+?)\))?|(?:is|equals?)\s*\(([\s\S]+?)\)\s*then)?\s*;?\s*(?:<<[^>]*>>\s*)*$/i,ae=/^else\s?if\s*\(([\s\S]*?)\)\s*(?:then\s*(?:\(([\s\S]+?)\))?|(?:is|equals?)\s*\(([\s\S]+?)\)\s*then)?\s*;?\s*(?:<<[^>]*>>\s*)*$/i;function Tr(K,R,g,y){if(R>=K.length||!g.test(K[R]))return null;for(var C=K[R],s=R+1;!y.test(C)&&s<K.length&&s-R<50;)C+=`+`+K[s],s++;return y.test(C)?{line:C,next:s}:null}var fr={"|":"procedure","<":"input",">":"output","/":"save","\\":"load","]":"task","}":"continuous"},Ar={input:1,output:1,procedure:1,load:1,save:1,continuous:1,task:1};function P(K,R,g,y){for(var C={type:"action",label:K.replace(/^\s+|\s+$/g,""),color:y,shape:fr[R]||null,stereotype:null,stereotypes:[]},s=/<<\s*([^>]*?)\s*>>/g,i;(i=s.exec(g||""))!=null;){var k=i[1];if(/^#/.test(k)){C.color||(C.color=k);continue}k&&C.stereotypes.push(k),Ar[k.toLowerCase()]?C.shape=k.toLowerCase():k&&!C.stereotype&&(C.stereotype=k)}return C}function J(K,R){R=R||{};var g=hr(K),y=[],C=[],s=/^skinparam\s+monochrome\s+(true|on|yes)\s*$/im.test(K)||/^skinparam\s*\{[^}]*\bmonochrome\s+(true|on|yes)/im.test(K),i=K.match(/^skinparam\s+ArrowHeadColor\s+(\S+)\s*$/im)||K.match(/^skinparam(?:\s+\w+)?\s*\{[^}]*\bArrowHeadColor\s+(\S+)/im);return Wr(g,0,y,null,C),{nodes:y,swimlanes:C,monochrome:s,arrowHeadColor:i?i[1].toLowerCase():null}}return{parse:J}})();var Tu=(function(){var hr="A-Za-z0-9_\\u00A0-\\uFFFF",G=hr+".",Wr="["+hr+"]["+G+"]*",vr="["+G+"]+",ae="(?:#\\w+[-\\\\|/]\\w+|#\\w+)",Tr="(?:#\\w+|dotted|dashed|plain|bold|hidden|norank|single|node|thickness=\\d+)(?:,(?:#\\w+|dotted|dashed|plain|bold|hidden|norank|single|node|thickness=\\d+))*",fr="([-.]+)(?:\\[("+Tr+")\\])?(\\*|left|right|up|down|le?|ri?|up?|do?)?(?:\\[("+Tr+")\\])?([-.]*)>",Ar="(?:\\[([^\\]*][^\\]]*)\\])?",P="(?:(\\(\\*(?:top)?\\))|("+Wr+")|(?:==+)\\s*("+vr+')\\s*(?:==+)|"([^"]+)"(?:\\s+as\\s+('+vr+"))?)?",J="\\s*(<<[^>]*>>)?\\s*("+ae+")?\\s*(?:\\[\\[[^\\]]*\\]\\])?\\s*",K="(?:(\\(\\*(?:top|\\d+)?\\))|(\\{)|("+Wr+")|(?:==+)\\s*("+vr+')\\s*(?:==+)|"([^"]+)"(?:\\s+as\\s+('+Wr+"))?|(["+hr+"].*?))",R='\\s*(<<[^>]*>>)?(?:\\s+in\\s+("[^"]+"|\\S+))?\\s*('+ae+")?\\s*$",g=new RegExp("^"+P+J+fr+"\\s*"+Ar+"\\s*"+K+R,"i"),y=new RegExp("^"+P+J+fr+"\\s*"+Ar+'\\s*"([^"]*)$',"i"),C=new RegExp('^\\s*([^"]*)"(?:\\s+as\\s+('+Wr+'))?\\s*(<<.*>>)?\\s*(?:in\\s+("[^"]+"|\\S+))?\\s*('+ae+")?\\s*$","i"),s="(?:(\\(\\*(?:top)?\\))|(?:==+)\\s*("+vr+')\\s*(?:==+)|"([^"]*)"(?:\\s+as\\s+('+vr+"))?|("+Wr+"))?",i=new RegExp("^"+s+"\\s*(?:"+fr+")?\\s*"+Ar+'\\s*if(?:\\s*"([^"]*)"\\s*(?:as\\s+('+vr+")\\s+)?|\\s+(.+?)\\s*)(?:then)?\\s*$","i"),k=/^else\s*$/i,F=/^end\s*if\s*$/i,D=new RegExp('^partition\\s+("[^"]+"|\\S+)\\s*('+ae+"|\\w+)?\\s*(<<[^>]*>>)?\\s*(\\{)?\\s*$","i"),T=/^(?:end\s*partition|\})\s*$/i,M=new RegExp("^note\\s*(right|left|top|bottom)?\\s*(?:on|of)\\s+link\\s*("+ae+")?\\s*:\\s*(.*)$","i"),V=new RegExp("^note\\s*(right|left|top|bottom)?\\s*(?:on|of)\\s+link\\s*("+ae+")?\\s*$","i"),A=new RegExp("^note\\s+(right|left|top|bottom)\\s*("+ae+")?\\s*:\\s*(.*)$","i"),I=new RegExp("^note\\s+(right|left|top|bottom)\\s*("+ae+")?\\s*$","i"),$=/^end\s?note\s*$/i;function c(W){return W==null?"":String(W).replace(/^\s+|\s+$/g,"")}function x(W){return W==null?"":c(String(W).replace(/\[\[([^\]\s{]*)(?:\{[^}]*\})?(?:\s+([^\]]*))?\]\]/g,function(dr,or,yr){return yr??""}).replace(/\s{2,}/g," "))}function E(W){return W=c(W),W.length>=2&&W.charAt(0)==='"'&&W.charAt(W.length-1)==='"'?W.substring(1,W.length-1):W}function z(W,dr,or,yr,pr){W=W||"",pr=pr||"",or=(or||"").toLowerCase();var Ur=null;or.indexOf("l")===0?Ur="left":or.indexOf("r")===0?Ur="right":or.indexOf("u")===0?Ur="up":or.indexOf("d")===0&&(Ur="down");var Pr=(W+pr).replace(/=/g,"-");(Ur==="left"||Ur==="right")&&(Pr=Pr.replace(/-+/g,"-")),Pr.length===1&&(Ur==="up"||Ur==="down")&&(Pr=Pr.charAt(0)+Pr);for(var le={length:Math.max(1,Pr.length),direction:Ur,constraint:or!=="*",dotted:(W+pr).indexOf(".")>=0,dashed:!1,bold:!1,hidden:!1,color:null},Pe=((dr||"")+","+(yr||"")).split(","),Te=0;Te<Pe.length;Te++){var Ir=c(Pe[Te]).toLowerCase();Ir!==""&&(Ir.charAt(0)==="#"?le.color=Ir:Ir==="dashed"?le.dashed=!0:Ir==="dotted"?le.dotted=!0:Ir==="bold"?le.bold=!0:Ir==="hidden"&&(le.hidden=!0))}return le}function lr(W,dr,or,yr){for(var pr=W.split(/\r\n|\r|\n/),Ur=!1,Pr=null,le=0,Pe=0;Pe<pr.length;Pe++){var Te=pr[Pe],Ir=c(Te);if(Ur){Te.indexOf("'/")>=0&&(Ur=!1);continue}if(Pr!=null){Pr.test(Ir)&&(Pr=null);continue}if(le>0){if(Ir.indexOf("{")>=0&&le++,Ir.indexOf("}")>=0&&le--,yr.skinBlock!=null&&le>0){var Er=Ir.match(/^([A-Za-z][\w<>]*)\s+(.+)$/);Er&&(or[(yr.skinBlock+Er[1]).toLowerCase()]=c(Er[2]))}le===0&&(yr.skinBlock=null);continue}if(Ir!==""){if(Ir.substring(0,2)==="/'"){Ir.indexOf("'/",2)<0&&(Ur=!0);continue}if(Ir.charAt(0)!=="'"&&Ir.charAt(0)!=="!"&&!/^@(start|end)/i.test(Ir)){if(/^<style\b/i.test(Ir)){/<\/style>/i.test(Ir)||(Pr=/<\/style>/i);continue}var Kr=Ir.match(/^skinparam\s+(?:(\w+)\s*)?\{\s*$/i);if(Kr){le=1,yr.skinBlock=Kr[1]||"";continue}var Xe=Ir.match(/^skinparam\s+([\w<>]+)\s+(.+)$/i);if(Xe){or[Xe[1].toLowerCase()]=c(Xe[2]);continue}if(!/^skinparam\b/i.test(Ir)){if(/^sprite\b/i.test(Ir)){/\{\s*$/.test(Ir)&&(le=1);continue}var Be=Ir.match(/^(?:(?:center|left|right)\s+)?title\b\s*:?\s*(.*)$/i);if(Be){Be[1]===""?Pr=/^end\s*title\s*$/i:yr.title=Be[1];continue}var ie=Ir.match(/^(?:(?:center|left|right)\s+)?(header|footer|caption|legend)\b\s*(.*)$/i);if(ie){(ie[2]===""||/^(?:center|left|right)\s*$/i.test(ie[2]))&&(Pr=new RegExp("^end\\s*"+ie[1]+"\\s*$","i"));continue}/^(scale|hide|show|mainframe|autonumber|url)\b/i.test(Ir)||/^(top\s+to\s+bottom|left\s+to\s+right)\s+direction\b/i.test(Ir)||dr.push(Ir)}}}}}function rr(W,dr){dr=dr||{};var or=[],yr={},pr={title:null,skinBlock:null};lr(W||"",or,yr,pr);var Ur=[],Pr={},le=[],Pe=[],Te={},Ir=[],Er=[],Kr=null,Xe=0,Be=0,ie=0,Z=null;function oe(){for(var ze=Ir.length-1;ze>=0;ze--)if(Ir[ze]!=null)return Ir[ze];return null}function ee(ze,Aa,Gt,ra){var Sa={id:ze,type:Aa,label:Gt??"",color:null,stereotype:null,partition:ra===void 0?oe():ra};return Ur.push(Sa),Pr[ze]=Sa,Z!=null&&Z.from!=null&&Aa!=="note"&&Sa.partition===Z.group&&(l(Z.from,ze,Z.label,Z.info),Z=null),Aa!=="note"&&(Kr=ze),Sa}function Ko(ze,Aa,Gt){var ra=E(ze),Sa=Te[ra];Sa==null?(Sa={id:ra,name:x(ra),color:Aa||null,stereotype:Gt||null,parent:oe()},Pe.push(Sa),Te[ra]=Sa):Aa&&!Sa.color&&(Sa.color=Aa),Ir.push(ra)}function ye(){Ir.length>0&&Ir.pop()}function _(ze){return ze[1]!=null?O():ze[2]!=null?o(ze[2],ze[2],"activity"):ze[3]!=null?o(c(ze[3]),"","bar"):ze[4]!=null?o(ze[5]!=null?ze[5]:ze[4],ze[4],"activity"):Kr}function O(){return Pr.start==null?ee("start","start",""):Kr="start","start"}function t(ze){var Aa=ze==null||ze===""||/^top$/i.test(ze)?"end":"end$"+ze;return Pr[Aa]==null?ee(Aa,"end",""):Kr=Aa,Aa}function o(ze,Aa,Gt,ra){return Pr[ze]!=null?(Kr=ze,ze):(ee(ze,Gt,x(Aa),ra),ze)}function v(ze,Aa,Gt,ra,Sa,Wn,xn,Sn){var Kn=void 0;if(Sn!=null&&(Ko(Sn,null,null),Kn=oe(),ye()),ze!=null){var zn=ze.match(/^\(\*(top|\d+)?\)$/i);return t(zn?zn[1]:null)}if(Aa!=null){ie++;var un="inner#"+ie,sl={id:un,name:"",color:null,stereotype:null,parent:oe(),inner:!0};return Pe.push(sl),Te[un]=sl,Ir.push(un),Z={group:un,from:null,label:"",info:null},Kr=null,null}if(Gt!=null)return o(Gt,Gt,"activity",Kn);if(ra!=null)return o(c(ra),"","bar",Kn);if(Sa!=null)return o(Wn??Sa,Sa,"activity",Kn);if(xn!=null){var yn=c(xn);return o(yn,yn,"activity",Kn)}return null}function u(ze,Aa,Gt){var ra=ze!=null?Pr[ze]:null;ra!=null&&(Aa!=null&&(ra.stereotype=c(Aa).replace(/^<<\s*|\s*>>$/g,"")),Gt!=null&&(ra.color=Gt))}function l(ze,Aa,Gt,ra){if(ze==null||Aa==null)return null;var Sa={from:ze,to:Aa,label:x(Gt),length:ra.length,direction:ra.direction,constraint:ra.constraint,dotted:ra.dotted,dashed:ra.dashed,bold:ra.bold,hidden:ra.hidden,color:ra.color};return le.push(Sa),Sa}function d(ze,Aa,Gt,ra,Sa){if(Sa!=null)for(var Wn=Ur.length-1;Wn>=0;Wn--)Ur[Wn].type==="note"&&Ur[Wn].edge===Sa&&(delete Pr[Ur[Wn].id],Ur.splice(Wn,1));Be++;var xn="note#"+Be,Sn=ee(xn,"note",ze);return Sn.position=Aa?Aa.toLowerCase():null,Sn.color=Gt||null,Sn.target=ra,Sn.edge=Sa??null,Sn}function b(ze){var Aa=1/0,Gt;for(Gt=0;Gt<ze.length;Gt++)if(c(ze[Gt])!==""){var ra=ze[Gt].match(/^\s*/)[0].length;ra<Aa&&(Aa=ra)}isFinite(Aa)||(Aa=0);var Sa=[];for(Gt=0;Gt<ze.length;Gt++)Sa.push(ze[Gt].substring(Math.min(Aa,ze[Gt].match(/^\s*/)[0].length)).replace(/\s+$/,""));return Sa}for(var m=0;m<or.length;){var w=or[m],S;if(S=w.match(i),S){var tr;S[1]!=null?tr=O():S[2]!=null?tr=o(c(S[2]),"","bar"):S[3]!=null?tr=o(S[4]!=null?S[4]:S[3],S[3],"activity"):S[5]!=null?tr=o(S[5],S[5],"activity"):tr=Kr;var ir=S[12]!=null?S[12]:S[14]!=null?S[14]:"",Nr=S[13]!=null?S[13]:null;Nr==null&&(Xe++,Nr="#"+Xe);var xr=Pr[Nr];xr==null?xr=ee(Nr,"branch",""):Kr=Nr,xr.condition=x(ir),Er.push(Nr);var Ve=S[6]!=null?z(S[6],S[7],S[8],S[9],S[10]):{length:2,direction:null,constraint:!0,dotted:!1,dashed:!1,bold:!1,hidden:!1,color:null};tr!=null&&l(tr,Nr,S[11],Ve),Kr=Nr,m++;continue}if(k.test(w)){Er.length>0&&(Kr=Er[Er.length-1]),m++;continue}if(F.test(w)){Er.length>0&&Er.pop(),m++;continue}if(S=w.match(D),S){var qr=S[1];S[4]==null&&qr.charAt(qr.length-1)==="{"&&qr.charAt(0)!=='"'&&(qr=qr.substring(0,qr.length-1));var $e=S[2]!=null&&S[2].charAt(0)==="#"?S[2]:null;Ko(qr,$e,S[3]),m++;continue}if(T.test(w)){ye(),m++;continue}if(S=w.match(M),S){le.length>0&&d(c(S[3]),S[1]||"right",S[2],null,le.length-1),m++;continue}if(S=w.match(V),S){var se=[];for(m++;m<or.length&&!$.test(or[m]);)se.push(or[m]),m++;m<or.length&&m++,le.length>0&&d(se.join(`+`),S[1]||"right",S[2],null,le.length-1);continue}if(S=w.match(A),S){var Re=Kr??O();d(c(S[3]),S[1],S[2],Re,null),m++;continue}if(S=w.match(I),S){var Ne=[];for(m++;m<or.length&&!$.test(or[m]);)Ne.push(or[m]),m++;m<or.length&&m++;var Do=Kr??O();d(b(Ne).join(`+`),S[1],S[2],Do,null);continue}if(S=w.match(y),S&&m+1<or.length){for(var Zo=[],uo=null,ke=m+1;ke<or.length&&(uo=or[ke].match(C),!uo);)Zo.push(or[ke]),ke++;if(uo){var Qt=_(S);u(Qt,S[6],S[7]);var zo=[];c(S[14])!==""&&zo.push(c(S[14]));for(var Lt=0;Lt<Zo.length;Lt++)zo.push(Zo[Lt]);c(uo[1])!==""&&zo.push(c(uo[1]));var Ua=zo.join(`+`),Mt=uo[2]!=null?uo[2]:Ua,yt=void 0;uo[4]!=null&&(Ko(uo[4],null,null),yt=oe(),ye());var Ta=o(Mt,Ua,"activity",yt);Kr=Ta,u(Ta,uo[3],uo[5]),l(Qt,Ta,S[13],z(S[8],S[9],S[10],S[11],S[12])),m=ke+1;continue}}if(S=w.match(g),S){var hn=_(S);if(hn!=null){u(hn,S[6],S[7]);var xa=v(S[14],S[15],S[16],S[17],S[18],S[19],S[20],S[22]);xa!=null?(Kr=xa,u(xa,S[21],S[23]),l(hn,xa,S[13],z(S[8],S[9],S[10],S[11],S[12]))):Z!=null&&Z.from==null&&(Z.from=hn,Z.label=S[13],Z.info=z(S[8],S[9],S[10],S[11],S[12]))}m++;continue}m++}return{nodes:Ur,edges:le,partitions:Pe,skin:yr,title:pr.title}}return{parse:rr}})();var Su=(function(){for(var hr=["class","interface","enum","annotation","struct","protocol","exception","entity","metaclass","stereotype"],G={},Wr=0;Wr<hr.length;Wr++)G[hr[Wr]]=!0;function vr(A,I){var $=A.length,c=I,x="none",E="none",z=0,lr=0;for(c<$&&A[c]==="<"?(c++,c<$&&A[c]==="|"?(x="triangle",c++):x="arrow"):c<$&&A[c]==="*"?(x="diamond_filled",c++):c<$&&A[c]==="x"?c+1<$&&(A[c+1]==="-"||A[c+1]===".")&&(x="cross",c++):c<$&&A[c]==="o"?c+1<$&&(A[c+1]==="-"||A[c+1]===".")&&(x="diamond_open",c++):c<$&&A[c]==="+"?(x="plus",c++):c<$&&A[c]==="#"?(x="hash",c++):c+1<$&&A[c]==="|"&&A[c+1]==="|"?(x="doublebar",c+=2):c+1<$&&A[c]==="}"&&A[c+1]==="o"?(x="crow_zero_many",c+=2):c+1<$&&A[c]==="}"&&A[c+1]==="|"?(x="crow_one_many",c+=2):c+1<$&&A[c]==="}"&&(A[c+1]==="-"||A[c+1]===".")?(x="crow_many",c++):c+1<$&&A[c]==="|"&&A[c+1]==="o"&&(x="crow_zero_one",c+=2);c<$&&A[c]==="-";)z++,c++;for(;c<$&&A[c]===".";)lr++,c++;for(;c<$&&(A[c]==="-"||A[c]===".");)A[c]==="-"?z++:lr++,c++;if(z+lr===0)return null;c<$&&A[c]==="|"?c+1<$&&A[c+1]===">"?(E="triangle",c+=2):c+1<$&&A[c+1]==="|"?(E="doublebar",c+=2):c+1<$&&A[c+1]==="{"&&(E="crow_one_many",c+=2):c<$&&A[c]===">"?(E="arrow",c++):c<$&&A[c]==="*"?(E="diamond_filled",c++):c+1<$&&A[c]==="o"&&A[c+1]==="{"?(E="crow_zero_many",c+=2):c+1<$&&A[c]==="o"&&A[c+1]==="|"?(E="crow_zero_one",c+=2):c<$&&A[c]==="{"?(E="crow_many",c++):c<$&&A[c]==="o"?(E="diamond_open",c++):c<$&&A[c]==="x"&&(c+1>=$||A[c+1]===" "||A[c+1]===" "||A[c+1]==='"'||A[c+1]===":")?(E="cross",c++):c<$&&A[c]==="+"?(E="plus",c++):c<$&&A[c]==="#"&&(E="hash",c++);var rr=lr>0&&z===0?"dotted":"solid";return{end:c,lineStyle:rr,leftDeco:x,rightDeco:E,stemLen:z+lr}}function ae(A,I,$){return I==="triangle"||A==="triangle"?$==="dotted"?"implements":"extends":A==="diamond_filled"||I==="diamond_filled"?"composition":A==="diamond_open"||I==="diamond_open"?"aggregation":A==="arrow"||I==="arrow"?$==="dotted"?"dependency":"association":"link"}function Tr(A,I){var $=null,c=null;switch(I){case"triangle":c="triangle";break;case"diamond_filled":c="diamond_filled";break;case"diamond_open":c="diamond_open";break;case"arrow":c="open";break;case"crow_zero_many":c="ERzeroToMany";break;case"crow_one_many":c="ERoneToMany";break;case"crow_many":c="ERmany";break;case"crow_zero_one":c="ERzeroToOne";break;case"doublebar":c="ERmandOne";break;case"cross":c="cross";break;case"plus":c="circlePlus";break;default:break}switch(A){case"triangle":$="triangle";break;case"diamond_filled":$="diamond_filled";break;case"diamond_open":$="diamond_open";break;case"arrow":$="open";break;case"crow_zero_many":$="ERzeroToMany";break;case"crow_one_many":$="ERoneToMany";break;case"crow_many":$="ERmany";break;case"crow_zero_one":$="ERzeroToOne";break;case"doublebar":$="ERmandOne";break;case"cross":$="cross";break;case"plus":$="circlePlus";break;default:break}return{fromArrow:$,toArrow:c}}function fr(A,I){for(;I<A.length&&(A[I]===" "||A[I]===" ");)I++;if(I>=A.length)return null;if(A[I]==='"'){var $=A.indexOf('"',I+1);return $<0&&($=A.length),{name:A.substring(I+1,$),end:$+1}}for(var c=I,x=0;c<A.length;){var E=A[c];if(E==="<")x++,c++;else if(E===">"&&x>0)x--,c++;else if(x>0)c++;else if(/[\w]/.test(E))c++;else break}return c===I?null:{name:A.substring(I,c),end:c}}function Ar(A){var I=A.indexOf("<");if(I<0)return{baseName:A,generics:null};var $=A.lastIndexOf(">");return $<I?{baseName:A,generics:null}:{baseName:A.substring(0,I),generics:A.substring(I+1,$).replace(/^\s+|\s+$/g,"")}}function P(A,I){var $=A.replace(/^\s+|\s+$/g,"");if($==="")return null;var c=$.substring(0,2);if($.length>=2&&$!=="..."&&(c==="--"||c===".."||c==="=="||c==="__")&&$.substring($.length-2)===c){var x=$.length>4?$.substring(2,$.length-2).replace(/^\s+|\s+$/g,""):"",E=c.charAt(0);return new RegExp("^\\"+E+"*$").test(x)&&(x=""),{kind:"separator",style:E,title:x}}if(I&&!/^[+\-#~{]/.test($))return{kind:"field",visibility:null,name:$,type:null,returnType:null,params:null,modifiers:[]};for(var z=[],lr=null,rr=$;;){var W=rr.match(/^\{(static|abstract|classifier|field|method)\}\s*/);if(W){var dr=W[1];dr==="classifier"?(dr="static",z.push(dr)):dr==="field"||dr==="method"?lr=dr:z.push(dr),rr=rr.substring(W[0].length)}else break}var or=null;if(rr.length>2&&rr[1]!==rr[0]){var yr=rr[0];(yr==="+"||yr==="-"||yr==="#"||yr==="~"||yr==="*")&&(or=yr,rr=rr.substring(1).replace(/^\s*/,""))}for(;;){var pr=rr.match(/^\{(static|abstract|classifier|field|method)\}\s*/);if(pr){var Ur=pr[1];Ur==="classifier"?(Ur="static",z.push(Ur)):Ur==="field"||Ur==="method"?lr=Ur:z.push(Ur),rr=rr.substring(pr[0].length)}else break}var Pr=rr.replace(/^\s+|\s+$/g,""),le=rr.indexOf("("),Pe=lr==="method"||lr!=="field"&&le>=0;if(Pe){var Te,Ir,Er;if(le>=0){Te=rr.substring(0,le).replace(/^\s+|\s+$/g,"");var Kr=rr.indexOf(")",le);Kr<0&&(Kr=rr.length),Ir=rr.substring(le+1,Kr).replace(/^\s+|\s+$/g,""),Er=rr.substring(Kr+1).replace(/^\s+|\s+$/g,"")}else Te=rr.replace(/^\s+|\s+$/g,""),Ir=null,Er="";var Xe=null,Be=Er.indexOf(":");return Be>=0?Xe=Er.substring(Be+1).replace(/^\s+|\s+$/g,""):Er.length>0&&(Xe=Er),{kind:"method",visibility:or,name:Te,type:null,returnType:Xe,params:Ir,modifiers:z,text:Pr}}else{var ie=rr.indexOf(":"),Z,oe;return ie>=0?(Z=rr.substring(0,ie).replace(/^\s+|\s+$/g,""),oe=rr.substring(ie+1).replace(/^\s+|\s+$/g,"")):(Z=rr.replace(/^\s+|\s+$/g,""),oe=null),{kind:"field",visibility:or,name:Z,type:oe,returnType:null,params:null,modifiers:z,text:Pr}}}function J(A,I,$,c){var x=[],E=1,z=I;for(z=I+1;z<A.length;z++){var lr=A[z],rr=lr.replace(/^\s+|\s+$/g,"");if(rr.indexOf("{")>=0&&E++,rr.indexOf("}")>=0&&(E--,E<=0)){var W=rr.substring(0,rr.indexOf("}"));if(W.replace(/^\s+|\s+$/g,"").length>0){var dr=P(W,c);dr&&x.push(dr)}return{members:x,endIdx:z}}if(E===1){var or=P(rr,c);or&&x.push(or)}}return{members:x,endIdx:A.length-1}}function K(A,I){if(I.hasOwnProperty(A))return A;for(var $ in I)if(I.hasOwnProperty($)&&I[$].alias===A)return $;return A}function R(A,I,$,c){if(c.hasOwnProperty(A))return c[A];var x=Ar(I||A),E={id:A,name:x.baseName,kind:"class",stereotype:null,generics:x.generics,color:null,members:[]};return c[A]=E,$.push(E),E}var g=new RegExp('^(hide|show)\\s+(?:(class|object|interface|enum|annotation|dataclass|record|abstract|protocol|struct|exception|metaclass|entity|"[^"]+"|<<.*>>|(?!empty\\s)[^\\s<>"]+)\\s+)?(?:(empty)\\s+)?(members?|attributes?|fields?|methods?|circles?|circled|stereotypes?)\\s*$',"i"),y=/^(hide|show|remove|restore|hide-class|show-class)\s+("[^"]+"|<<.*>>|\S+)\s*$/i,C=["class","object","interface","enum","annotation","dataclass","record","abstract","protocol","struct","exception","metaclass","entity"];function s(A){var I=A.match(g);if(I){var $=I[1].toLowerCase()==="show",c=I[2],x={type:"all",value:null};if(c){var E=c.toLowerCase();C.indexOf(E)>=0?x={type:"kind",value:E}:c.charAt(0)==="<"?x={type:"stereotype",value:c.replace(/^<<|>>$/g,"").replace(/^\s+|\s+$/g,"")}:x={type:"name",value:c.replace(/^"|"$/g,"")}}for(var z=!!I[3],lr=I[4].substring(0,3).toLowerCase(),rr=lr==="met"?["method"]:lr==="mem"?["field","method"]:lr==="cir"?["circle"]:lr==="ste"?["stereotype"]:["field"],W=[],dr=0;dr<rr.length;dr++)W.push({show:$,gender:x,empty:z&&(rr[dr]==="field"||rr[dr]==="method"),portion:rr[dr]});return W}if(I=A.match(y),I){var or=I[1].toLowerCase();return[{show:or==="show"||or==="restore"||or==="show-class",what:I[2].replace(/^"|"$/g,"")}]}return null}function i(A,I){for(var $=[],c=I+1;c<A.length;c++){var x=A[c].replace(/^\s+|\s+$/g,"");if(/^end\s*note$/i.test(x))return{text:$.join(`+`),endIdx:c};$.push(A[c])}return{text:$.join(`+`),endIdx:A.length-1}}function k(A,I){I=I||{};var $=A.split(/\r\n|\r|\n/),c=[],x={},E=[],z=[],lr=[],rr=[],W=[],dr=[],or=[],yr={};function pr(oi,Ul,di,Bi){for(var Bl=oi!=null?[oi]:Ul.indexOf(".")>0&&!/^\.|\.$|\.\./.test(Ul)?Ul.split("."):[Ul],ci=null,Xl=0;Xl<Bl.length;Xl++){for(var gi=null,fn=W.length-1;fn>=0;fn--)if(!W[fn]._together){gi=lr.indexOf(W[fn]);break}for(var ti=null,ai=0;ai<lr.length;ai++)if(lr[ai].name===Bl[Xl]&&(lr[ai].parentIndex==null?null:lr[ai].parentIndex)===gi){ti=lr[ai];break}ti==null?(ti={name:Bl[Xl],stereotype:Xl===Bl.length-1?di:null,classes:[],parentIndex:gi},lr.push(ti)):Xl===Bl.length-1&&di&&!ti.stereotype&&(ti.stereotype=di),(Bi||Xl<Bl.length-1)&&W.push(ti),ci=ti}if(Bl.length>1)if(Bi)ci._implicitParents=Bl.length-1;else for(var Gl=0;Gl<Bl.length-1;Gl++)W.pop();return ci}for(var Ur=/^skinparam\s+monochrome\s+(true|on|yes)\s*$/im.test(A)||/^skinparam\s*\{[^}]*\bmonochrome\s+(true|on|yes)/im.test(A),Pr=/^skinparam\s+style\s+strictuml\s*$/im.test(A)||/^skinparam\s*\{[^}]*\bstyle\s+strictuml/im.test(A),le=/^\s*hide\s+circle\s*$/im.test(A),Pe=A.match(/^skinparam\s+linetype\s+(ortho|polyline)\s*$/im),Te=Pe?Pe[1].toLowerCase():null,Ir=A.match(/^\s*set\s+(?:namespace)?separator\s+(\S+)\s*$/im),Er=Ir?Ir[1]:null,Kr=Er??".",Xe=!/^\s*!pragma\s+useIntermediatePackages\s+false\s*$/im.test(A),Be=null,ie=0;ie<$.length;ie++){var Z=$[ie],oe=Z.replace(/^\s+|\s+$/g,"");if(oe!==""&&oe.charAt(0)!=="'"&&oe.charAt(0)!=="!"){if(/^skinparam\b/i.test(oe)){if(/\{\s*$/.test(oe))for(var ee=1;ee>0&&ie+1<$.length;){ie++;var Ko=$[ie].replace(/^\s+|\s+$/g,"");Ko.indexOf("{")>=0&&ee++,Ko.indexOf("}")>=0&&ee--}continue}var ye=/^title\s+(.*)$/i.exec(oe);if(ye){Be=ye[1];continue}if(!/^(header|footer|caption|scale|mainframe)\b/i.test(oe)&&!/^(top\s+to\s+bottom|left\s+to\s+right)\s+direction\b/i.test(oe)){if(/^<style>$/i.test(oe)){for(;ie+1<$.length&&(ie++,!/^<\/?style>$/i.test($[ie].replace(/^\s+|\s+$/g,""))););continue}if(!/^<style>.*<\/style>$/i.test(oe)){if(/^sprite\s+\$?\w+/i.test(oe)){if(/\{\s*$/.test(oe)){for(;ie+1<$.length&&!/^\s*\}\s*$/.test($[ie+1]);)ie++;ie++}continue}if(/^newpage\b/i.test(oe))break;if(/^(hide|show|remove|restore)(-class)?\b/i.test(oe)){var _=s(oe);if(_)for(var O=0;O<_.length;O++)_[O].portion?dr.push(_[O]):or.push(_[O]);continue}var t=oe.match(/^<>\s*([^\s<>"{}]+)\s*$/);if(t){var o=R(t[1],t[1],c,x);o.kind="diamond",o.name="",W.length>0&&W[W.length-1].classes.push(t[1]);continue}var v=oe.toLowerCase();if(/^together\s*\{/i.test(oe)){var u=W.length>0?W[W.length-1]:null;W.push({_together:!0,name:null,stereotype:null,classes:u?u.classes:[]});continue}var l=oe.match(/^package\s+(?:"([^"]+)"|(\S+))(?:\s+<<\s*([^>]*)\s*>>)?(?:\s+(#\S+))?\s*(\{\s*\}|\{)?\s*$/i);if(l){pr(l[1],l[2],l[3]||null,!/\{\s*\}$/.test(l[5]||""));continue}var d=oe.match(/^namespace\s+(?:"([^"]+)"|(\S+))(?:\s+(#\S+))?\s*(\{\s*\}|\{)?\s*$/i);if(d){pr(d[1],d[2],null,!/\{\s*\}$/.test(d[4]||""));continue}if(oe==="}"){if(W.length>0)for(var b=W.pop(),m=b._implicitParents||0;m-- >0&&W.length>0;)W.pop();continue}var w=oe.match(/^note\s+(?:"([^"]*)"\s+)?as\s+([^\s$#]+)((?:\s+\$\w+)*)(?:\s+(#\S+))?\s*$/i);if(w){var S=w[1];if(S==null){var tr=i($,ie);ie=tr.endIdx,S=tr.text}else S=S.replace(/\\n/g,`+`);for(var ir={position:null,target:null,method:null,text:S,id:w[2],tags:(w[3]||"").match(/\$\w+/g)?w[3].match(/\$\w+/g).map(function(oi){return oi.substring(1)}):[]},Nr=W.length-1;Nr>=0;Nr--)if(!W[Nr]._together){ir.pkgIndex=lr.indexOf(W[Nr]);break}rr.push(ir),yr[w[2]]=ir;continue}var xr=oe.match(/^("[^"]+"|[^\s"<>.-][^\s"<>]*?)\s*(<?[-.]{1,4}>?)\s*("[^"]+"|[^\s"<>-][^\s"<>]*)\s*$/);if(xr&&(yr.hasOwnProperty(xr[1])||yr.hasOwnProperty(xr[3]))&&/^<?[-.]+>?$/.test(xr[2])){var Ve=yr.hasOwnProperty(xr[1]),qr=yr[Ve?xr[1]:xr[3]],$e=(Ve?xr[3]:xr[1]).replace(/^"|"$/g,"");yr.hasOwnProperty($e)||(R($e,$e,c,x),qr.target==null&&(qr.target=$e,qr.position=Ve?"top":"bottom"),qr.targets=qr.targets||[],qr.targets.indexOf($e)<0&&qr.targets.push($e));continue}var se=oe.match(/^note\s+(left|right|top|bottom)\s*(?::\s*(.*))?$/i);if(se&&c.length>0){var Re=se[2];if(Re==null){var Ne=i($,ie);ie=Ne.endIdx,Re=Ne.text}rr.push({position:se[1].toLowerCase(),target:c[c.length-1].id,method:null,text:Re.replace(/^\s+|\s+$/g,"")});continue}var Do=oe.match(/^note\s+(left|right|top|bottom)\s+of\s+(\S+?)(?:::(\S+))?\s+:\s*(.*)$/i);if(Do){rr.push({position:Do[1].toLowerCase(),target:Do[2],method:Do[3]||null,text:Do[4].replace(/^\s+|\s+$/g,"")});continue}var Zo=oe.match(/^note\s+(left|right|top|bottom)\s+of\s+(\S+?)(?:::(\S+))?\s*$/i);if(Zo){var uo=i($,ie);ie=uo.endIdx,rr.push({position:Zo[1].toLowerCase(),target:Zo[2],method:Zo[3]||null,text:uo.text});continue}var ke=/^abstract\b/i.test(oe)?T(oe):null;if(ke){var Qt=ke.name,zo=ke.generics,Lt=ke.stereotype,Ua=ke.color,Mt=ke.id,yt=R(Mt,Qt,c,x);if(yt.kind="abstract",yt.name=Qt,yt.generics=zo,Lt&&(yt.stereotype=Lt),Ua&&(yt.color=Ua),ke.tags.length&&(yt.tags=(yt.tags||[]).concat(ke.tags)),ke.quoted&&(yt._quoted=!0),W.length>0&&W[W.length-1].classes.push(Mt),!ke.brace&&ie+1<$.length&&/^\s*\{\s*$/.test($[ie+1])&&(ie++,ke.brace=!0),ke.brace){var Ta=J($,ie,!0,!1);ie=Ta.endIdx,yt.members=yt.members.concat(Ta.members)}F(oe,Mt,E,c,x,W);continue}var hn=oe.match(/^\(\)\s+(?:"([^"]+)"|(\S+))(?:\s+as\s+(\S+))?\s*$/);if(hn){var xa=hn[1]||hn[2],ze=hn[3]||xa;if(!x.hasOwnProperty(ze)){var Aa={id:ze,name:xa,kind:"circle",members:[],stereotype:null,generics:null,color:null};x[ze]=c.length,c.push(Aa),W.length>0&&W[W.length-1].classes.push(ze)}continue}var Gt=/^(?:class|interface|enum|annotation|struct|protocol|exception|entity|metaclass|stereotype|record|dataclass|static|object)\b/i.test(oe)?T(oe):null;if(Gt){var ra=Gt.kind,Sa=Gt.name,Wn=Gt.generics,xn=Gt.stereotype,Sn=Gt.color,Kn=Gt.id,zn=R(Kn,Sa,c,x);if(zn.kind=ra,zn.name=Sa,zn.generics=Wn,xn&&(zn.stereotype=xn),Sn&&(zn.color=Sn),Gt.tags.length&&(zn.tags=(zn.tags||[]).concat(Gt.tags)),Gt.quoted&&(zn._quoted=!0),W.length>0&&W[W.length-1].classes.push(Kn),!Gt.brace&&ie+1<$.length&&/^\s*\{\s*$/.test($[ie+1])&&(ie++,Gt.brace=!0),Gt.brace){var un=J($,ie,!0,ra==="enum");if(ie=un.endIdx,ra==="object")for(var sl=0;sl<un.members.length;sl++)un.members[sl].kind==="method"&&(un.members[sl].kind="field");zn.members=zn.members.concat(un.members)}F(oe,Kn,E,c,x,W);continue}var yn=oe.match(/^\(\s*("[^"]+"|\S+?)\s*,\s*("[^"]+"|\S+?)\s*\)\s*([-.]+)\s*("[^"]+"|\S+)\s*$/);if(!yn){var vl=oe.match(/^("[^"]+"|[^\s("]+)\s*([-.]+)\s*\(\s*("[^"]+"|\S+?)\s*,\s*("[^"]+"|\S+?)\s*\)\s*$/);vl&&(yn=[vl[0],vl[3],vl[4],vl[2],vl[1]])}if(yn){var Hn=yn[1].replace(/^"|"$/g,""),ul=yn[2].replace(/^"|"$/g,""),pl=yn[4].replace(/^"|"$/g,"");R(Hn,Hn,c,x),R(ul,ul,c,x),R(pl,pl,c,x),z.push({a:Hn,b:ul,cls:pl});continue}var Xn=oe.match(/^("[^"]+"|[^\s:"<>{}()\-.](?:[^\s:"<>{}()]|::)*)\s*:(?!:)\s*(\S.*)$/);if(Xn&&!/^(title|caption|header|footer|legend|skinparam|note|hide|show|remove|restore)$/i.test(Xn[1])){var ol=M(Xn[1].replace(/^"|"$/g,""),x,{packages:lr,nsSep:Kr,stack:W});if(!ol.group){var fl=R(ol.id,ol.id,c,x),fi=P(Xn[2],fl.kind==="enum");if(fi&&fl.members.push(fi),(!x.hasOwnProperty(ol.id)||fl.members.length===1)&&W.length>0&&fl.members.length===1){for(var _n=W[W.length-1],Ll=!1,ml=0;ml<lr.length&&!Ll;ml++)Ll=lr[ml].classes.indexOf(ol.id)>=0;!Ll&&_n.classes.indexOf(ol.id)<0&&_n.classes.push(ol.id)}continue}}var Dl=V(oe,c,x,W,{packages:lr,nsSep:Kr,stack:W});if(Dl){E.push(Dl);continue}}}}}if(Kr.toLowerCase()!=="none"){for(var qn={},Rl=0;Rl<lr.length;Rl++)for(var Qn=0;Qn<lr[Rl].classes.length;Qn++)qn[lr[Rl].classes[Qn]]=!0;for(var Ca=0;Ca<c.length;Ca++){var Qa=c[Ca];if(!(qn[Qa.id]||Qa._quoted||Qa.kind==="circle"||Qa.kind==="diamond")&&!(Qa.id.indexOf(Kr)<0)){for(var gn=Qa.id.split(Kr),In=gn.pop(),Ga=In===""||gn.length===0,Fo=0;Fo<gn.length&&!Ga;Fo++)gn[Fo]===""&&(Ga=!0);if(!Ga){Xe||(gn=[gn.join(Kr)]);var vn=null;for(Fo=0;Fo<gn.length;Fo++){for(var kl=-1,Wl=0;Wl<lr.length;Wl++)if(lr[Wl].name===gn[Fo]&&(lr[Wl].parentIndex==null?null:lr[Wl].parentIndex)===vn){kl=Wl;break}kl<0&&(lr.push({name:gn[Fo],stereotype:null,classes:[],parentIndex:vn}),kl=lr.length-1),vn=kl}lr[vn].classes.push(Qa.id),Qa.name=In}}}}return{classes:c,relationships:E,associationClasses:z,packages:lr,notes:rr,monochrome:Ur,hideCircle:le,strictUml:Pr,hideRules:dr,hideEntities:or,linetype:Te,title:Be}}function F(A,I,$,c,x,E){var z=A.indexOf("{");z>=0&&(A=A.substring(0,z));var lr=A.match(/\bextends\s+(\S+)/i);if(lr){var rr=lr[1].replace(/,\s*$/,""),W=rr;if(R(W,rr,c,x),E.length>0){var dr=E[E.length-1];dr.classes.indexOf(W)<0&&dr.classes.push(W)}$.push({from:I,to:W,type:"extends",fromCardinality:null,toCardinality:null,label:null,lineStyle:"solid",fromArrow:null,toArrow:"triangle",_topId:W,_botId:I})}var or=A.match(/\bimplements\s+(.+?)(?:\s*\{|\s*$)/i);if(or)for(var yr=or[1].split(/\s*,\s*/),pr=0;pr<yr.length;pr++){var Ur=yr[pr].replace(/^\s+|\s+$/g,"");Ur!==""&&(R(Ur,Ur,c,x),$.push({from:I,to:Ur,type:"implements",fromCardinality:null,toCardinality:null,label:null,lineStyle:"dotted",fromArrow:null,toArrow:"triangle",_topId:Ur,_botId:I}))}}var D=new RegExp('^(abstract(?:\\s+class)?|static\\s+class|class|interface|enum|annotation|struct|protocol|exception|entity|metaclass|stereotype|record|dataclass|object)\\s+(?:"([^"]+)"\\s*(?:<([^<>]*)>)?\\s+as\\s+(\\S+?)|(\\S+?)\\s+as\\s+"([^"]+)"\\s*(?:<([^<>]*)>)?|"([^"]+)"|(\\S+?))\\s*(?:<([^<>]*)>)?((?:\\s*<{2,3}[^>]*>{2,3})*)((?:\\s*\\$[\\w]+)*)\\s*(?:\\[\\[[^\\]]*\\]\\])?\\s*(#\\S+(?:\\s+##\\S+)?|##\\S+)?(?:\\s+extends\\s+[^{]+?)?(?:\\s+implements\\s+[^{]+?)?\\s*(\\{\\s*\\}|\\{)?\\s*$',"i");function T(A){var I=A.match(D);if(I==null)return null;var $=I[1].toLowerCase(),c=/^abstract/.test($)?"abstract":/^static/.test($)?"class":$,x=I[2]||I[6]||I[8]||null,E=I[4]||I[5]||I[9]||null,z=x!=null;z&&(x=x.replace(/\\n/g,`+`));for(var lr=x??E,rr=E??x,W=I[3]||I[7]||I[10]||null,dr=[],or=I[11]||"",yr,pr=/(<{2,3})\s*([^>]*?)\s*>{2,3}/g;(yr=pr.exec(or))!=null;)yr[1].length===2&&dr.push(yr[2]);if(!z){var Ur=Ar(lr);Ur.generics&&(lr=Ur.baseName,W=W||Ur.generics)}return{kind:c,id:rr,name:lr,generics:W,stereotype:dr.length?dr.join("\xBB \xAB"):null,color:I[13]||null,tags:(I[12]||"").match(/\$\w+/g)?I[12].match(/\$\w+/g).map(function(Pr){return Pr.substring(1)}):[],quoted:z,brace:I[14]==="{"}}function M(A,I,$){if(I.hasOwnProperty(A))return{id:A,group:!1};var c=A.replace(/^\.+/,"");if(I.hasOwnProperty(c))return{id:c,group:!1};var x=$&&$.nsSep?$.nsSep:".";if($&&$.stack&&x.toLowerCase()!=="none"){for(var E=[],z=0;z<$.stack.length;z++)!$.stack[z]._together&&$.stack[z].name&&E.push($.stack[z].name);for(var lr=0;lr<E.length&&c.indexOf(x)>0;lr++){var rr=E.slice(lr).join(x)+x;if(c.indexOf(rr)===0&&c.length>rr.length){if(c=c.substring(rr.length),I.hasOwnProperty(c))return{id:c,group:!1};break}}}if(x!=="::"&&c.indexOf("::")>0){var W=c.substring(0,c.lastIndexOf("::"));if(W)return M(W,I,$)}for(var dr=$&&$.packages?$.packages:[],or=0;or<dr.length;or++)if(dr[or].name===c&&!dr[or]._together)return{id:c,group:!0};if(x.toLowerCase()!=="none"&&c.indexOf(x)>0){var yr=c.split(x),pr=[];if($&&$.stack)for(var Ur=$.stack.length-1;Ur>=0;Ur--)$.stack[Ur]._together||pr.push(dr.indexOf($.stack[Ur]));pr.push(null);for(var Pr=0;Pr<pr.length;Pr++){for(var le=pr[Pr],Pe=!0,Te=0;Te<yr.length&&Pe;Te++){Pe=!1;for(var Ir=0;Ir<dr.length;Ir++)if(dr[Ir].name===yr[Te]&&!dr[Ir]._together&&(dr[Ir].parentIndex==null?null:dr[Ir].parentIndex)===le){le=Ir,Pe=!0;break}}if(Pe)return{id:dr[le].name,group:!0}}}var Er=$&&$.nsSep&&$.nsSep.toLowerCase()!=="none"?$.nsSep:null,Kr=c.lastIndexOf("::"),Xe=2;if(Er&&Er!=="::"&&c.lastIndexOf(Er)>Kr&&(Kr=c.lastIndexOf(Er),Xe=Er.length),Kr>0){var Be=c.substring(Kr+Xe);if(Be&&I.hasOwnProperty(Be))return{id:Be,group:!1}}return{id:c,group:!1}}function V(A,I,$,c,x){A=A.replace(/^@[\d.]+\s+/,"");var E=A.match(/^(?:"([^"]+)"|(\S+))\s+\(\)([-.]+)\s+(?:"([^"]+)"|(\S+))\s*$/),z=null,lr=null;if(E)z=E[1]||E[2],lr=E[4]||E[5];else{var rr=A.match(/^(?:"([^"]+)"|(\S+))\s+([-.]+)\(\)\s+(?:"([^"]+)"|(\S+))\s*$/);rr&&(lr=rr[1]||rr[2],z=rr[4]||rr[5])}if(z!=null)return R(lr,lr,I,$),{from:z,to:lr,type:"lollipop",fromCardinality:null,toCardinality:null,label:null,lineStyle:"solid",fromArrow:null,toArrow:null,_topId:null,_botId:null,_sameRank:!0};var W=null,dr=null,or=!1,yr=!1;A=A.replace(/([-.])\[([^\]\[]*)\](?=[-.\w>])/,function(Re,Ne,Do){for(var Zo=Do.split(","),uo=0;uo<Zo.length;uo++){var ke=Zo[uo].replace(/^\s+|\s+$/g,"");ke.charAt(0)==="#"?W=ke:/^(dashed|dotted)$/i.test(ke)?dr=ke.toLowerCase():/^bold$/i.test(ke)?yr=!0:/^hidden$/i.test(ke)?or=!0:/^thickness\s*=\s*\d+/i.test(ke)&&(yr=!0)}return Ne});var pr=null,Ur=A.match(/([-.])(up|down|left|right|u|d|l|r)\1/i);if(Ur){var Pr=Ur[2].toLowerCase().charAt(0);pr=Pr==="u"?"up":Pr==="d"?"down":Pr==="l"?"left":"right"}A=A.replace(/([-.])(up|down|left|right|u|d|l|r)\1/gi,"$1$1");for(var le=-1,Pe=null,Te=0;Te<A.length;Te++){var Ir=A[Te];if(Ir==="<"||Ir==="*"||Ir==="o"||Ir==="+"||Ir==="#"||Ir==="-"||Ir==="."||Ir==="|"||Ir==="}"||Ir==="x"){var Er=vr(A,Te),Kr=Er!=null&&Er.end-Te===1&&(Ir==="-"||Ir===".")&&Te>0&&/^[ \t]$/.test(A[Te-1])&&Er.end<A.length&&/^[ \t]$/.test(A[Er.end])&&A.substring(0,Te).indexOf(":")<0;if(Er!=null&&(Er.end-Te>=2||Kr)){var Xe=Te>0?A[Te-1]:" ",Be=Er.end<A.length?A[Er.end]:" ",ie=A.substring(Te,Er.end),Z=(A.substring(0,Te).split('"').length-1)%2===1,oe=!Z&&(Te===0||Xe===" "||Xe===" "||Xe==='"'||/[A-Za-z0-9_]/.test(Xe)&&/^[<*|}#+\-.]/.test(ie)&&Er.end-Te>=2),ee=Er.end>=A.length||Be===" "||Be===" "||Be==='"'||Be===":"||/[A-Za-z0-9"]/.test(Be)&&/[-.>|*#+]$/.test(ie)&&Er.end-Te>=2;if(oe&&ee){le=Te,Pe=Er;break}}}}if(Pe==null)return null;var Ko=A.substring(0,le).replace(/^\s+|\s+$/g,""),ye=A.substring(Pe.end).replace(/^\s+|\s+$/g,"");Ko=Ko.replace(/\s*\[[^\]]*\]$/,""),ye=ye.replace(/^\[[^\]]*\]\s*/,"");var _=null,O="",t=Ko.match(/^(.+?)\s+"([^"]*)"$/);if(t?(O=t[1].replace(/^\s+|\s+$/g,""),_=t[2]):O=Ko,O==="")return null;for(var o=null,v="",u=null,l=-1,d=0;d<ye.length;d++)if(ye[d]===":"){if(ye[d+1]===":"){d++;continue}l=d;break}l>=0&&(u=ye.substring(l+1).replace(/^\s+|\s+$/g,""),ye=ye.substring(0,l).replace(/^\s+|\s+$/g,""),u.length>=2&&u.charAt(0)==='"'&&u.charAt(u.length-1)==='"'&&(u=u.substring(1,u.length-1))),ye=ye.replace(/\s*<<[^<>]*>>\s*$/,"").replace(/^\s+|\s+$/g,"");var b=ye.match(/^"([^"]*)"\s+(.+)$/);if(b?(o=b[1],v=b[2].replace(/^\s+|\s+$/g,"")):v=ye,v==="")return null;O=O.replace(/^"|"$/g,""),v=v.replace(/^"|"$/g,"");var m=M(O,$,x),w=M(v,$,x);if(O=m.id,v=w.id,m.group||R(O,O,I,$),w.group||R(v,v,I,$),c.length>0){var S=c[c.length-1];S.classes.indexOf(O)<0&&S.classes.push(O),S.classes.indexOf(v)<0&&S.classes.push(v)}var tr=ae(Pe.leftDeco,Pe.rightDeco,Pe.lineStyle),ir=Tr(Pe.leftDeco,Pe.rightDeco),Nr=!1;tr==="extends"||tr==="implements"||tr==="association"||tr==="dependency"?(Pe.leftDeco==="triangle"||Pe.leftDeco==="arrow")&&(Nr=!0):(tr==="composition"||tr==="aggregation")&&(Pe.rightDeco==="diamond_filled"||Pe.rightDeco==="diamond_open")&&(Nr=!0);var xr=null,Ve=null,qr=!1,$e=pr==="left"||pr==="right"?pr:null;pr==="left"||pr==="right"||pr==null&&Pe.stemLen<=1?qr=!0:pr==="up"?(xr=v,Ve=O):(xr=O,Ve=v);var se=dr||Pe.lineStyle;return Nr?{from:v,to:O,type:tr,fromCardinality:o,toCardinality:_,label:u,lineStyle:se,color:W,bold:yr,hidden:or,fromArrow:ir.toArrow,toArrow:ir.fromArrow,_topId:xr,_botId:Ve,_sameRank:qr,_side:$e}:{from:O,to:v,type:tr,fromCardinality:_,toCardinality:o,label:u,lineStyle:se,color:W,bold:yr,hidden:or,fromArrow:ir.fromArrow,toArrow:ir.toArrow,_topId:xr,_botId:Ve,_sameRank:qr,_side:$e,fromGroup:m.group,toGroup:w.group}}return{parse:k}})();var Iu=(function(){for(var hr=["package","node","folder","frame","cloud","database","storage","artifact","card","rectangle","action","agent","boundary","circle","collections","control","entity","file","hexagon","label","person","queue","stack","usecase"],G={},Wr=0;Wr<hr.length;Wr++)G[hr[Wr]]=!0;for(var vr=["component","interface","port","portin","portout"],ae={},Tr=0;Tr<vr.length;Tr++)ae[vr[Tr]]=!0;function fr(s,i){var k=s.length,F=i,D="none",T="none",M=0,V=0;for(F<k&&s[F]==="<"?(D="filled",F++):F<k&&s[F]===")"&&F+1<k&&(s[F+1]==="-"||s[F+1]===".")&&(D="socket",F++);F<k&&s[F]==="-";)M++,F++;for(;F<k&&s[F]===".";)V++,F++;for(;F<k&&s[F]==="-";)M++,F++;for(;F<k&&s[F]===".";)V++,F++;if(M+V===0)return null;F<k&&s[F]===">"?(T="filled",F++):F<k&&s[F]==="("&&(F+1>=k||s[F+1]===" "||s[F+1]===" ")&&(T="socket",F++);var A;V>0?A="dashed":A="solid";var I;return D==="socket"||T==="socket"?I="socket":D!=="none"&&T!=="none"?I="bidirectional":T!=="none"||D!=="none"?I="open":I="none",{end:F,lineStyle:A,leftHead:D,rightHead:T,arrowHead:I,stemLen:M+V}}function Ar(s){return s==null?s:String(s).replace(/\\r\\n|\\n|\\r/g,`+`).replace(/\\t/g," ")}function P(s,i){for(;i<s.length&&(s[i]===" "||s[i]===" ");)i++;if(i>=s.length)return null;if(s[i]==="["){var k=s.indexOf("]",i+1);return k<0&&(k=s.length),{name:Ar(s.substring(i+1,k)),end:k+1,kind:"bracket"}}if(s[i]===":"){var F=s.indexOf(":",i+1);if(F>i+1)return{name:Ar(s.substring(i+1,F)),end:F+1,kind:"actor"}}if(s[i]==='"'){var D=s.indexOf('"',i+1);return D<0&&(D=s.length),{name:Ar(s.substring(i+1,D)),end:D+1,kind:"bare"}}if(s[i]==="("&&i+1<s.length&&s[i+1]===")")return P(s,i+2);for(var T=i;T<s.length&&/[\w]/.test(s[T]);)T++;return T===i?null:{name:s.substring(i,T),end:T,kind:"bare"}}function J(s,i,k,F,D){if(i.hasOwnProperty(s))return s;for(var T in i)if(i.hasOwnProperty(T)&&k[i[T]].name===s)return T;var M={id:s,name:s,kind:F||"component",children:null,color:null,parent:D||null};return i[s]=k.length,k.push(M),s}function K(s,i,k,F){var D=/-\[[^\]]*hidden[^\]]*\][a-z]*-/i.test(s),T=null,M=s.match(/[-\]](up|u|down|d|left|l|right|r)-/i);M&&(T=M[1].toLowerCase().charAt(0));var V=!1;(/\s~~+\s/.test(s)||/~~+[\s>(]/.test(s))&&(V=!0,s=s.replace(/~~+/g,function(Kr){return new Array(Kr.length+1).join("-")}));var A=null,I=!1,$=null,c=s.match(/-\[([^\]]*)\][a-z]*-/i);if(c)for(var x=c[1].split(","),E=0;E<x.length;E++){var z=x[E].replace(/^\s+|\s+$/g,"");z.charAt(0)==="#"?A=z:/^bold$/i.test(z)||/^thickness\s*=/i.test(z)?I=!0:/^(dashed|dotted)$/i.test(z)&&($=z.toLowerCase())}s=s.replace(/-\[[^\]]*\](?:up|down|left|right|u|d|l|r)?-/gi,"--"),s=s.replace(/-(up|down|left|right|u|d|l|r)-/gi,"--");var lr=P(s,0);if(lr==null)return null;for(var rr=lr.end;rr<s.length&&(s[rr]===" "||s[rr]===" ");)rr++;if(rr>=s.length)return null;var W=fr(s,rr);if(W==null)return null;for(var dr=W.end;dr<s.length&&(s[dr]===" "||s[dr]===" ");)dr++;var or=P(s,dr);if(or==null)return null;var yr=null,pr=or.end,Ur=s.indexOf(":",pr);Ur>=0&&(yr=s.substring(Ur+1).replace(/^\s+|\s+$/g,""),yr.length>=2&&yr.charAt(0)==='"'&&yr.charAt(yr.length-1)==='"'&&(yr=yr.substring(1,yr.length-1)),yr=yr.replace(/\\r\\n|\\n|\\r/g,`+`).replace(/\\t/g," "));var Pr=lr.kind==="bracket"?"component":lr.kind==="actor"?"actor":"interface",le=or.kind==="bracket"?"component":or.kind==="actor"?"actor":"interface",Pe=J(lr.name,i,k,Pr,F),Te=J(or.name,i,k,le,F),Ir=Pe,Er=Te;return W.leftHead!=="none"&&W.rightHead==="none"&&(Ir=Te,Er=Pe,T==="r"?T="l":T==="l"?T="r":T==="u"?T="d":T==="d"&&(T="u")),{from:Ir,to:Er,label:yr,lineStyle:$||(V?"dotted":W.lineStyle),arrowHead:W.arrowHead,color:A,bold:I,dir:T,hidden:D,span:Math.max(0,W.stemLen-1)}}function R(s,i){for(var k=1,F=[],D=i+1;D<s.length;D++){for(var T=s[D].replace(/^\s+|\s+$/g,""),M=0;M<T.length;M++)if(T[M]==="{")k++;else if(T[M]==="}"&&(k--,k===0))return{endIdx:D,bodyLines:F};F.push(T)}return{endIdx:s.length-1,bodyLines:F}}function g(s,i){for(var k=[],F=i+1;F<s.length;F++){var D=s[F].replace(/^\s+|\s+$/g,"");if(/^end\s*note$/i.test(D))return{text:k.join(`+`),endIdx:F};k.push(D)}return{text:k.join(`+`),endIdx:s.length-1}}function y(s,i,k,F,D,T,M){for(var V=0;V<s.length;V++){var A=s[V].replace(/^\s+|\s+$/g,"");if(!(A===""||A==="}")&&A.charAt(0)!=="'"){if(/^<style\b/i.test(A)&&!/<\/style\s*>/i.test(A)){for(;V+1<s.length&&!/<\/style\s*>/i.test(s[V]);)V++;continue}if(!/^<\/?style\b/i.test(A)){if(A=A.replace(/<\$([\w.-]+)\{[^}]*\}>/g,"<$$$1>"),/^sprite\s+\S+\s+<svg\b/i.test(A)){for(;V+1<s.length&&!/<\/svg\s*>/i.test(s[V]);)V++;continue}if(/^sprite\s+\S+\s+\[[^\]]*\]\s*\{\s*$/i.test(A)){for(;V+1<s.length&&!/^\s*\}\s*$/.test(s[V]);)V++;continue}if(!/^sprite\b/i.test(A)&&A.charAt(0)!=="!"){if(/^skinparam\b/i.test(A)){if(/\{\s*$/.test(A)){var I=R(s,V);V=I.endIdx}continue}var $=/^title\s+(.+)$/i.exec(A);if($&&M){M.title=Ar($[1]);continue}if(/^title\s*$/i.test(A)){for(var c=[],x=V+1;x<s.length&&!/^end\s*title$/i.test(s[x].replace(/^\s+|\s+$/g,""));x++)c.push(s[x].replace(/^\s+|\s+$/g,""));V=x,M&&(M.title=Ar(c.join(`+`)));continue}if(!/^(header|footer|caption|scale|mainframe|hide|show)\b/i.test(A)&&!/^(top\s+to\s+bottom|left\s+to\s+right)\s+direction\b/i.test(A)){var E=A.match(/^note\s+(left|right|top|bottom)\s+of\s+(?:"([^"]+)"|(\[[^\]]+\])|(\S+?))\s*:\s*(.*)$/i);if(E&&M){M.notes.push({position:E[1].toLowerCase(),target:E[2]||(E[3]?E[3].slice(1,-1):E[4]),text:E[5].replace(/^\s+|\s+$/g,"").replace(/\\r\\n|\\n|\\r/g,`+`).replace(/\\t/g," ")});continue}var z=A.match(/^note\s+(left|right|top|bottom)\s+of\s+(?:"([^"]+)"|(\[[^\]]+\])|(\S+))\s*$/i);if(z&&M){var lr=g(s,V);V=lr.endIdx,M.notes.push({position:z[1].toLowerCase(),target:z[2]||(z[3]?z[3].slice(1,-1):z[4]),text:lr.text.replace(/\\r\\n|\\n|\\r/g,`+`).replace(/\\t/g," ")});continue}var rr=A.match(/^note\s+"([^"]+)"\s+as\s+(\S+)\s*$/i);if(rr){var W=rr[1].replace(/\\r\\n|\\n|\\r/g,`+`).replace(/\\t/g," ");i[rr[2]]=k.length,k.push({id:rr[2],name:W,kind:"note",children:null,color:null,parent:T||null});continue}var dr=A.match(/^note\s+as\s+(\S+)\s*$/i);if(dr){var or=g(s,V);V=or.endIdx,i[dr[1]]=k.length,k.push({id:dr[1],name:or.text.replace(/\\r\\n|\\n|\\r/g,`+`).replace(/\\t/g," "),kind:"note",children:null,color:null,parent:T||null});continue}if(/^[rh]?note\b/i.test(A)){if(!/:/.test(A)&&!/^end\s*note$/i.test(A)){var yr=g(s,V);V=yr.endIdx}continue}var pr=A.match(/^legend(?:\s+(left|right|top|bottom|center))?\s*$/i);if(pr){for(var Ur=[],Pr=V+1;Pr<s.length;Pr++){var le=s[Pr].replace(/^\s+|\s+$/g,"");if(/^end\s*legend$/i.test(le))break;Ur.push(le.replace(/\\r\\n|\\n|\\r/g,`+`).replace(/\\t/g," "))}V=Pr,M&&!M.legend&&(M.legend={position:pr[1]?pr[1].toLowerCase():"center",lines:Ur});continue}var Pe=A.toLowerCase(),Te=A.match(/^(package|node|folder|frame|cloud|database|storage|artifact|card|rectangle|action|agent|boundary|circle|collections|control|entity|file|hexagon|label|person|queue|stack|usecase)\s+(.+)$/i);if(Te&&!/^(?:[>~=.-]|<(?![$&]))/.test(Te[2])){var Ir=Te[1].toLowerCase(),Er=Te[2],Kr=null,Xe=null,Be=null,ie=0;if(Er.charAt(0)==='"'&&Er.charAt(1)==='"'){var Z=Er.indexOf('""',2);Z<0&&(Z=Er.length),Kr=Ar(Er.substring(2,Z)),ie=Z+2}else if(Er.charAt(0)==='"'){var oe=Er.indexOf('"',1);oe<0&&(oe=Er.length),Kr=Ar(Er.substring(1,oe)),ie=oe+1}else{for(var ee=0;ee<Er.length&&Er[ee]!==" "&&Er[ee]!==" "&&Er[ee]!=="{";)ee++;Kr=Er.substring(0,ee),ie=ee}for(var Ko=Er.substring(ie).replace(/^\s+/,""),ye=null,_=!0;_;){_=!1;var O=Ko.match(/^<<\s*([^>]*?)\s*>>(.*)/);if(O&&ye==null){ye=O[1],Ko=O[2].replace(/^\s+/,""),_=!0;continue}var t=Ko.match(/^as\s+(?:"([^"]*)"|(\S+))(.*)/i);if(t&&Xe==null){t[1]!==void 0?(Xe=Kr,Kr=Ar(t[1])):Xe=t[2],Ko=t[3].replace(/^\s+/,""),_=!0;continue}var o=Ko.match(/^(#\S+)(.*)/);o&&Be==null&&(Be=o[1],Ko=o[2].replace(/^\s+/,""),_=!0)}var v=Xe||Kr,u=Ko.indexOf("{")>=0||/\{\s*$/.test(A);if(u){var l=R(s,V);V=l.endIdx;var d={id:v,name:Kr,kind:Ir,children:[],color:Be,stereotype:ye,parent:T||null};F.push(d);var b=k.length,m=F.length;y(l.bodyLines,i,k,F,D,v,M);for(var w=b;w<k.length;w++)k[w].parent===v&&d.children.push(k[w].id);for(var S=m;S<F.length;S++)F[S].parent===v&&d.children.push(F[S].id)}else{var tr={id:v,name:Kr,kind:Ir,children:null,color:Be,stereotype:ye,parent:T||null};i[v]=k.length,k.push(tr)}continue}var ir=A.match(/^component\s+(.+)$/i);if(ir){var Nr=ir[1],xr=null,Ve=null,qr=null,$e=0;if(Nr.charAt(0)==='"'){var se=Nr.indexOf('"',1);se<0&&(se=Nr.length),xr=Ar(Nr.substring(1,se)),$e=se+1}else if(Nr.charAt(0)==="["){var Re=Nr.indexOf("]",1);Re<0&&(Re=Nr.length),xr=Ar(Nr.substring(1,Re)),$e=Re+1}else{for(var Ne=0;Ne<Nr.length&&Nr[Ne]!==" "&&Nr[Ne]!==" "&&Nr[Ne]!=="{";)Ne++;xr=Nr.substring(0,Ne),$e=Ne}for(var Do=Nr.substring($e).replace(/^\s+/,""),Zo=null,uo=!0;uo;){uo=!1;var ke=Do.match(/^<<\s*([^>]*?)\s*>>(.*)/);if(ke&&Zo==null){Zo=ke[1],Do=ke[2].replace(/^\s+/,""),uo=!0;continue}var Qt=Do.match(/^as\s+(?:"([^"]*)"|(\S+))(.*)/i);if(Qt&&Ve==null){Qt[1]!==void 0?(Ve=xr,xr=Qt[1]):Ve=Qt[2],Do=Qt[3].replace(/^\s+/,""),uo=!0;continue}var zo=Do.match(/^(#\S+)(.*)/);zo&&qr==null&&(qr=zo[1],Do=zo[2].replace(/^\s+/,""),uo=!0)}var Lt=Ve||xr,Ua=Do.indexOf("{")>=0||/\{\s*$/.test(A);if(Ua){var Mt=R(s,V);V=Mt.endIdx;var yt={id:Lt,name:xr,kind:"component",children:[],color:qr,stereotype:Zo,parent:T||null};F.push(yt);var Ta=k.length,hn=F.length;y(Mt.bodyLines,i,k,F,D,Lt,M);for(var xa=Ta;xa<k.length;xa++)k[xa].parent===Lt&&yt.children.push(k[xa].id);for(var ze=hn;ze<F.length;ze++)F[ze].parent===Lt&&yt.children.push(F[ze].id)}else{var Aa={id:Lt,name:xr,kind:"component",children:null,color:qr,stereotype:Zo,parent:T||null};i[Lt]=k.length,k.push(Aa)}continue}var Gt=A.match(/^(?:interface|\(\))\s+(.+)$/i);if(Gt){var ra=Gt[1],Sa=null,Wn=null,xn=0;if(ra.charAt(0)==='"'){var Sn=ra.indexOf('"',1);Sn<0&&(Sn=ra.length),Sa=ra.substring(1,Sn),xn=Sn+1}else{for(var Kn=0;Kn<ra.length&&/[\w]/.test(ra[Kn]);)Kn++;Sa=ra.substring(0,Kn),xn=Kn}var zn=ra.substring(xn).replace(/^\s+/,""),un=zn.match(/^as\s+(\S+)/i);un&&(Wn=un[1]);var sl=Wn||Sa;if(!i.hasOwnProperty(sl)){var yn={id:sl,name:Sa,kind:"interface",children:null,color:null,parent:T||null};i[sl]=k.length,k.push(yn)}continue}var vl=A.match(/^actor\s+(?:"([^"]+)"|(\S+))(?:\s+as\s+(\S+))?\s*(#\S+)?\s*$/i);if(vl){var Hn=vl[1]||vl[2],ul=vl[3],pl=vl[4]||null,Xn=ul||Hn;if(!i.hasOwnProperty(Xn)){var ol={id:Xn,name:Hn,kind:"actor",children:null,color:pl,parent:T||null};i[Xn]=k.length,k.push(ol)}continue}var fl=A.match(/^(port|portin|portout)\s+(\S+)/i);if(fl){var fi=fl[1].toLowerCase(),_n=fl[2],Ll=_n;if(!i.hasOwnProperty(Ll)){var ml={id:Ll,name:_n,kind:fi,children:null,color:null,parent:T||null};i[Ll]=k.length,k.push(ml)}continue}var Dl=K(A,i,k,T);if(Dl!=null){D.push(Dl);continue}var qn=P(A,0);if(qn!=null){var Rl=A.slice(qn.end),Qn=Rl.match(/^\s*(?:<<([^>]*)>>\s*)?(?:as\s+(\S+))?\s*(?:<<([^>]*)>>\s*)?(#\S+)?\s*$/i);if(Qn&&(qn.kind==="bracket"||/^"/.test(A))){var Ca=qn.kind==="bracket"?"component":"interface",Qa=Qn[2]||null,gn=Qn[4]||null,In=(Qn[1]||Qn[3]||"").replace(/^\s+|\s+$/g,"")||null;if(Qa)i.hasOwnProperty(Qa)||(i[Qa]=k.length,k.push({id:Qa,name:qn.name,kind:Ca,children:null,color:gn,stereotype:In,parent:T||null}));else{var Ga=J(qn.name,i,k,Ca,T);gn&&i.hasOwnProperty(Ga)&&(k[i[Ga]].color=gn),In&&i.hasOwnProperty(Ga)&&!k[i[Ga]].stereotype&&(k[i[Ga]].stereotype=In)}continue}}}}}}}}function C(s,i){i=i||{};var k=s.split(/\r\n|\r|\n/),F=[],D={},T=[],M=[],V={notes:[],legend:null,title:null};y(k,D,F,T,M,null,V);var A=/^skinparam\s+monochrome\s+(true|on|yes)\s*$/im.test(s)||/^skinparam\s*\{[^}]*\bmonochrome\s+(true|on|yes)/im.test(s),I=s.match(/^\s*(left\s+to\s+right|top\s+to\s+bottom)\s+direction\b/im),$=I?/left/i.test(I[1])?"LR":"TB":null,c=s.match(/skinparam\s+defaultTextAlignment\s+(left|center|centre|right)/i),x="left";if(c){var E=c[1].toLowerCase();x=E==="centre"?"center":E}var z=s.match(/^\s*skinparam\s+packageStyle\s+(\w+)/im),lr=z?z[1].toLowerCase():null;return{nodes:F,containers:T,connections:M,notes:V.notes,legend:V.legend,title:V.title,monochrome:A,direction:$,textAlign:x,packageStyle:lr}}return{parse:C}})();var Nu=(function(){function hr(J,K){var R=J.length,g=K,y="none",C="none",s=0,i=0;for(g+1<R&&J[g]==="<"&&J[g+1]==="|"?(y="triangle",g+=2):g<R&&J[g]==="<"?(y="filled",g++):g<R&&J[g]==="*"&&g+1<R&&(J[g+1]==="-"||J[g+1]===".")?(y="diamond_filled",g++):g<R&&J[g]==="o"&&g+1<R&&(J[g+1]==="-"||J[g+1]===".")&&(y="diamond_open",g++);g<R&&J[g]==="-";)s++,g++;for(;g<R&&J[g]===".";)i++,g++;for(;g<R&&J[g]==="-";)s++,g++;for(;g<R&&J[g]===".";)i++,g++;if(s+i===0)return null;g+1<R&&J[g]==="|"&&J[g+1]===">"?(C="triangle",g+=2):g<R&&J[g]===">"?(C="filled",g++):g<R&&(J[g]==="*"||J[g]==="o")&&(g+1>=R||J[g+1]===" "||J[g+1]===" "||J[g+1]==='"'||J[g+1]===":")&&(C=J[g]==="*"?"diamond_filled":"diamond_open",g++);var k;return i>0&&s===0?k="dotted":i>0?k="dashed":k="solid",{end:g,lineStyle:k,leftHead:y,rightHead:C}}function G(J,K){for(;K<J.length&&(J[K]===" "||J[K]===" ");)K++;if(K>=J.length)return null;if(J[K]==='"'){var R=J.indexOf('"',K+1);return R<0&&(R=J.length),{name:J.substring(K+1,R),end:R+1}}for(var g=K;g<J.length&&/[\w]/.test(J[g]);)g++;return g===K?null:{name:J.substring(K,g),end:g}}function Wr(J,K,R){if(K.hasOwnProperty(J))return J;for(var g in K)if(K.hasOwnProperty(g)&&R[K[g]].name===J)return g;var y={id:J,name:J,kind:"object",attributes:[]};return K[J]=R.length,R.push(y),J}function vr(J,K,R){var g=G(J,0);if(g==null)return null;for(var y=g.end;y<J.length&&(J[y]===" "||J[y]===" ");)y++;if(y>=J.length)return null;var C=hr(J,y);if(C==null)return null;for(var s=C.end;s<J.length&&(J[s]===" "||J[s]===" ");)s++;var i=G(J,s);if(i==null)return null;var k=null,F=i.end,D=J.indexOf(":",F);D>=0&&(k=J.substring(D+1).replace(/^\s+|\s+$/g,""));var T=Wr(g.name,K,R),M=Wr(i.name,K,R),V=T,A=M;C.leftHead!=="none"&&C.rightHead==="none"&&(V=M,A=T);var I="association";return C.leftHead==="triangle"||C.rightHead==="triangle"?I="generalization":C.leftHead==="diamond_filled"||C.rightHead==="diamond_filled"||C.leftHead==="diamond_open"||C.rightHead==="diamond_open"?(I=C.leftHead==="diamond_filled"||C.rightHead==="diamond_filled"?"composition":"aggregation",C.rightHead==="diamond_filled"||C.rightHead==="diamond_open"?(V=M,A=T):(V=T,A=M)):C.leftHead==="none"&&C.rightHead==="none"&&(I="link"),{from:V,to:A,label:k,lineStyle:C.lineStyle,type:I}}function ae(J,K){for(var R=1,g=[],y=K+1;y<J.length;y++){for(var C=J[y].replace(/^\s+|\s+$/g,""),s=0;s<C.length;s++)if(C[s]==="{")R++;else if(C[s]==="}"&&(R--,R===0))return{endIdx:y,bodyLines:g};R>0&&g.push(C)}return{endIdx:J.length-1,bodyLines:g}}function Tr(J,K){for(var R=[],g=K+1;g<J.length;g++){var y=J[g].replace(/^\s+|\s+$/g,"");if(/^end\s*note$/i.test(y))return{text:R.join(`+`),endIdx:g};R.push(y)}return{text:R.join(`+`),endIdx:J.length-1}}function fr(J){for(var K=[],R=0;R<J.length;R++){var g=J[R].replace(/^\s+|\s+$/g,"");if(g!==""){var y=g.indexOf("=");if(y>0){var C=g.substring(0,y).replace(/^\s+|\s+$/g,""),s=g.substring(y+1).replace(/^\s+|\s+$/g,"");K.push({name:C,value:s});continue}var i=g.indexOf(":");if(i>0){var k=g.substring(0,i).replace(/^\s+|\s+$/g,""),F=g.substring(i+1).replace(/^\s+|\s+$/g,"");K.push({name:k,value:F});continue}K.push({name:g,value:""})}}return K}function Ar(J){for(var K=[],R=[],g=0;g<J.length;g++){var y=J[g].replace(/^\s+|\s+$/g,"");if(y!==""){var C=y.match(/^(.+?)\s*\*?->\s*(\S+)\s*$/);if(C&&y.indexOf("=>")<0){K.push({key:C[1],value:""}),R.push({key:C[1],target:C[2]});continue}var s=y.indexOf("=>");if(s>=0){var i=y.substring(0,s).replace(/^\s+|\s+$/g,""),k=y.substring(s+2).replace(/^\s+|\s+$/g,"");K.push({key:i,value:k})}else K.push({key:y,value:""})}}return{entries:K,links:R}}function P(J,K){K=K||{};var R=J.split(/\r\n|\r|\n/),g=[],y={},C=[],s=[],i=[],k=[],F=[];function D(Ve,qr){var $e={name:Ve,stereotype:qr||null,objects:[]};k.push($e),F.push($e)}function T(){return F.length>0?F[F.length-1]:null}for(var M=0;M<R.length;M++){var V=R[M],A=V.replace(/^\s+|\s+$/g,"");if(A!==""&&A.charAt(0)!=="'"&&A.charAt(0)!=="!"){var I=A.match(/^(package|namespace)\s+(?:"([^"]+)"|(\S+?))(?:\s*<<([^>]+)>>)?\s*\{\s*$/i);if(I){D(I[2]||I[3],I[4]||null);continue}if(A==="}"&&F.length>0){F.pop();continue}if(/^skinparam\b/i.test(A)){if(/\{\s*$/.test(A)){var $=ae(R,M);M=$.endIdx}continue}if(!/^(title|header|footer|caption|scale|mainframe|hide|show)\b/i.test(A)&&!/^(top\s+to\s+bottom|left\s+to\s+right)\s+direction\b/i.test(A)){var c=A.match(/^note\s+(left|right|top|bottom)\s+of\s+(?:"([^"]+)"|(\S+?))\s*:\s*(.*)$/i);if(c){i.push({position:c[1].toLowerCase(),target:c[2]||c[3],text:c[4].replace(/^\s+|\s+$/g,"").replace(/\\r\\n|\\n|\\r/g,`+`).replace(/\\t/g," ")});continue}var x=A.match(/^note\s+(left|right|top|bottom)\s+of\s+(?:"([^"]+)"|(\S+))\s*$/i);if(x){var E=Tr(R,M);M=E.endIdx,i.push({position:x[1].toLowerCase(),target:x[2]||x[3],text:E.text.replace(/\\r\\n|\\n|\\r/g,`+`).replace(/\\t/g," ")});continue}if(/^[rh]?note\b/i.test(A)){if(!/:/.test(A)&&!/^end\s*note$/i.test(A)){var z=Tr(R,M);M=z.endIdx}continue}var lr=A.match(/^map\s+(.+)$/i);if(lr){var rr=lr[1],W=null,dr=null,or=0;if(rr.charAt(0)==='"'){var yr=rr.indexOf('"',1);yr<0&&(yr=rr.length),W=rr.substring(1,yr),or=yr+1}else{for(var pr=0;pr<rr.length&&/[\w]/.test(rr[pr]);)pr++;W=rr.substring(0,pr),or=pr}var Ur=rr.substring(or).replace(/^\s+/,""),Pr=Ur.match(/^as\s+(\S+)(.*)/i);Pr&&(dr=Pr[1],Ur=Pr[2].replace(/^\s+/,""));var le=dr||W,Pe=Ur.indexOf("{")>=0||/\{\s*$/.test(A);if(Pe){var Te=ae(R,M);M=Te.endIdx;var Ir=Ar(Te.bodyLines),Er={id:le,name:W,entries:Ir.entries};C.push(Er),y[le]=g.length,g.push({id:le,name:W,kind:"map",attributes:[]});for(var Kr=0;Kr<Ir.links.length;Kr++){var Xe=Wr(Ir.links[Kr].target,y,g);s.push({from:le,to:Xe,label:null,lineStyle:"solid",type:"association",fromRow:Ir.links[Kr].key})}}else{var Be={id:le,name:W,entries:[]};C.push(Be),y[le]=g.length,g.push({id:le,name:W,kind:"map",attributes:[]})}continue}var ie=A.match(/^object\s+(.+)$/i);if(ie){var Z=ie[1],oe=null,ee=null,Ko=null,ye=0;if(Z.charAt(0)==='"'){var _=Z.indexOf('"',1);_<0&&(_=Z.length),oe=Z.substring(1,_),ye=_+1}else{for(var O=0;O<Z.length&&/[\w]/.test(Z[O]);)O++;oe=Z.substring(0,O),ye=O}var t=Z.substring(ye).replace(/^\s+/,""),o=t.match(/^as\s+(\S+)(.*)/i);o&&(ee=o[1],t=o[2].replace(/^\s+/,""));for(var v=null,u=!0;u;){u=!1;var l=t.match(/^<<\s*([^>]*?)\s*>>(.*)/);if(l&&v==null){v=l[1],t=l[2].replace(/^\s+/,""),u=!0;continue}var d=t.match(/^(#\S+)(.*)/);d&&Ko==null&&(Ko=d[1],t=d[2].replace(/^\s+/,""),u=!0)}var b=ee||oe,m=t.indexOf("{")>=0||/\{\s*$/.test(A);if(m){var w=ae(R,M);M=w.endIdx;var S=fr(w.bodyLines);if(y.hasOwnProperty(b)){var ir=g[y[b]];ir.attributes=S}else{y[b]=g.length,g.push({id:b,name:oe,kind:"object",color:Ko,stereotype:v,attributes:S});var tr=T();tr&&tr.objects.push(b)}}else if(!y.hasOwnProperty(b)){y[b]=g.length,g.push({id:b,name:oe,kind:"object",color:Ko,stereotype:v,attributes:[]});var Nr=T();Nr&&Nr.objects.push(b)}continue}var xr=vr(A,y,g);if(xr!=null){s.push(xr);continue}}}}return{objects:g,maps:C,links:s,notes:i,packages:k}}return{parse:P}})();var Lu=(function(){function hr(C){var s=C.match(/<<\s*([^>]*?)\s*>>/);return s?{stereotype:s[1],rest:C.substring(0,s.index)+C.substring(s.index+s[0].length)}:null}function G(C){var s=C.match(/#([A-Za-z0-9]+)/);return s?{color:"#"+s[1],rest:C.substring(0,s.index)+C.substring(s.index+s[0].length)}:null}function Wr(C){var s=C.match(/\bas\s+(\S+)/i);return s?{alias:s[1],rest:C.substring(0,s.index)+C.substring(s.index+s[0].length)}:null}function vr(C,s,i,k,F){if(i.hasOwnProperty(C))return{kind:"actor",id:C};if(F.hasOwnProperty(C))return{kind:"usecase",id:C};for(var D in i)if(i.hasOwnProperty(D)&&s[i[D]].name===C)return{kind:"actor",id:D};for(var T in F)if(F.hasOwnProperty(T)&&k[F[T]].name===C)return{kind:"usecase",id:T};return null}function ae(C,s,i,k,F,D){return F.hasOwnProperty(C)?D&&(k[F[C]].color=D):(F[C]=k.length,k.push({id:C,name:s,stereotype:i||null,color:D||null})),C}function Tr(C){var s=/(?:^|\s)(#[A-Za-z0-9]+(?:;\S*)?)/.exec(C||"");return s?s[1]:null}function fr(C,s,i,k,F,D){return F.hasOwnProperty(C)?D&&(k[F[C]].color=D):(F[C]=k.length,k.push({id:C,name:s,stereotype:i||null,color:D||null})),C}function Ar(C,s){if(!s)return null;for(var i=C.replace(/^\s+|\s+$/g,""),k=0;k<s.length;k++)if(s[k].position==="floating"&&s[k].target===i)return s[k];return null}function P(C){var s=null,i=null;return C=C.replace(/\s*<<\s*([^>]*?)\s*>>/,function(k,F){return s=F,""}),C=C.replace(/\s+(#[\w|\\/-]+)\s*$/,function(k,F){return i=F,""}),{token:C.replace(/^\s+|\s+$/g,""),stereotype:s,color:i}}function J(C,s,i,k,F,D){if(!(C==null||s.stereotype==null&&s.color==null)){var T=k.hasOwnProperty(C)?i[k[C]]:D.hasOwnProperty(C)?F[D[C]]:null;T!=null&&(s.stereotype!=null&&T.stereotype==null&&(T.stereotype=s.stereotype),s.color!=null&&T.color==null&&(T.color=s.color))}}function K(C,s,i,k,F,D){C=C.replace(/([-.])\[[^\]\[]*\](?=[-.\w>|])/,"$1"),C=C.replace(/([-.])(?:up|down|left|right|u|d|l|r)([-.(])/gi,"$1$1"),C=C.replace(/([-.>])\(\d+\)/g,"$1").replace(/\(\d+\)([<.-])/g,"$1"),C=C.replace(/-\(0-/g,"--").replace(/-0\)-/g,"--"),C=C.replace(/([-.])>>/g,"$1>").replace(/<<([-.])/g,"<$1"),C=C.replace(/([\w):"\]])(<\|?[-.]+\|?>?|[-.]+\|?>|[-.]{2,}|<[-.]+)(?=[\w(:"\[])/g,"$1 $2 "),C=C.replace(/([\w):"\]])(<\|?[-.]+\|?>?|[-.]+\|?>|[-.]{2,}|<[-.]+)(?=\s)/g,"$1 $2"),C=C.replace(/(\s)(<\|?[-.]+\|?>?|[-.]+\|?>|[-.]{2,}|<[-.]+)(?=[\w(:"\[])/g,"$1$2 ");for(var T=[{re:/\s+(-+)\|>\s+/,type:"generalization",directed:!0},{re:/\s+<\|(-+)\s+/,type:"generalization",reverse:!0,directed:!0},{re:/\s+(\.+)>\s+/,type:"dependency",directed:!0},{re:/\s+<(\.+)\s+/,type:"dependency",reverse:!0,directed:!0},{re:/\s+(-+)>\s+/,type:"association",directed:!0},{re:/\s+<(-+)\s+/,type:"association",reverse:!0,directed:!0},{re:/\s+(\.{2,})\s+/,type:"dependency",directed:!1},{re:/\s+(-{2,})\s+/,type:"association",directed:!1}],M=0;M<T.length;M++){var V=T[M],A=C.match(V.re);if(A){var I=C.substring(0,A.index).replace(/^\s+|\s+$/g,""),$=C.substring(A.index+A[0].length).replace(/^\s+|\s+$/g,""),c=null,x=null,E=$.indexOf(":");if(E>=0){var z=$.substring(E+1).replace(/^\s+|\s+$/g,"");$=$.substring(0,E).replace(/^\s+|\s+$/g,"");var lr=hr(z);lr?(x=lr.stereotype,c=lr.rest.replace(/^\s+|\s+$/g,"")||null):c=z||null}var rr=P(I),W=P($);I=rr.token,$=W.token;var dr=R(I,s,i,k,F,D),or=R($,s,i,k,F,D);J(dr,rr,s,i,k,F),J(or,W,s,i,k,F);var yr=Ar(I,D),pr=Ar($,D);if(yr&&!pr&&or!=null)return yr.anchor==null&&(yr.anchor=or),(yr.links=yr.links||[]).push(or),yr.linkType=V.type==="dependency"?"..":"--",null;if(pr&&!yr&&dr!=null)return pr.anchor==null&&(pr.anchor=dr),(pr.links=pr.links||[]).push(dr),pr.linkType=V.type==="dependency"?"..":"--",null;if(dr==null||or==null)continue;var Ur=V.reverse?or:dr,Pr=V.reverse?dr:or;return{from:Ur,to:Pr,type:V.type,directed:V.directed!==!1,stereotype:x,label:c,span:Math.max(0,A[1].length-1)}}}return null}function R(C,s,i,k,F,D){if(C=C.replace(/^\s+|\s+$/g,""),C==="")return null;if(D){for(var T=0;T<D.length;T++)if(D[T].position==="floating"&&D[T].target===C)return null}var M=C.match(/^:([^:]+):\/?$/);if(M){var V=M[1].replace(/^\s+|\s+$/g,""),A=V;for(var I in i)if(i.hasOwnProperty(I)&&s[i[I]].name===V)return I;return ae(A,V,null,s,i)}var $=C.match(/^\(([^)]+)\)\/?$/);if($){var c=$[1].replace(/^\s+|\s+$/g,""),x=c;for(var E in F)if(F.hasOwnProperty(E)&&k[F[E]].name===c)return E;return fr(x,c,null,k,F)}var z=vr(C,s,i,k,F);return z?z.id:ae(C,C,null,s,i)}function g(C,s){for(var i=[],k=s+1;k<C.length;k++){var F=C[k].replace(/^\s+|\s+$/g,"");if(F.toLowerCase()==="end note")return{text:i.join(`+`),endIdx:k};i.push(F)}return{text:i.join(`+`),endIdx:C.length-1}}function y(C,s){s=s||{};for(var i=C.split(/\r\n|\r|\n/),k=[],F={},D=[],T={},M=[],V=[],A=[],I=null,$=[],c=0;c<i.length;c++){var x=i[c],E=x.replace(/^\s+|\s+$/g,"");if(E!==""){if(/^(usecase|actor)\b/i.test(E)&&E.split('"').length%2===0)for(;c+1<i.length;){c++;var z=i[c].replace(/^\s+|\s+$/g,"");if(E+="\\n"+z,z.indexOf('"')>=0)break}if(E.charAt(0)!=="'"&&E.charAt(0)!=="!"){if(/^skinparam\b/i.test(E)){if(/\{\s*$/.test(E))for(var lr=1;lr>0&&c+1<i.length;){c++;var rr=i[c].replace(/^\s+|\s+$/g,"");rr.indexOf("{")>=0&&lr++,rr.indexOf("}")>=0&&lr--}continue}if(!/^(title|header|footer|caption|scale|mainframe|hide|show)\b/i.test(E)){var W=E.match(/^(top\s+to\s+bottom|left\s+to\s+right)\s+direction\b/i);if(W){I=/left/i.test(W[1])?"LR":"TB";continue}var dr=E.toLowerCase(),or=E.match(/^(rectangle|package)\s+(?:"([^"]+)"|([^"\s{]+))(?:\s+as\s+(\S+))?\s*\{?\s*$/i);if(or){var yr=or[2]||or[3],pr=or[4]||null,Ur={name:yr,alias:pr,kind:or[1].toLowerCase(),children:[]};M.push(Ur),$.push(Ur);continue}if(E==="}"){$.length>0&&$.pop();continue}E=E.replace(/^(actor|usecase)\/(?=\s)/i,"$1");var Pr=E.match(/^actor\s+"?([^"]+?)"?\s+as\s+(\S+)(.*)$/i);if(Pr){var oe=Pr[1],ee=Pr[2],Ko=Pr[3]||"",ye=null,_=hr(Ko);_&&(ye=_.stereotype),ae(ee,oe,ye,k,F),$.length>0&&$[$.length-1].children.push(ee);continue}else{if(Pr=E.match(/^actor\s+"([^"]+)"(.*)$/i),Pr){var le=Pr[1],Pe=Pr[2]||"",Te=null,Ir=hr(Pe);Ir&&(Te=Ir.stereotype);var Er=le;ae(Er,le,Te,k,F),$.length>0&&$[$.length-1].children.push(Er);continue}if(Pr=E.match(/^actor\s+(\S+)(.*)$/i),Pr){var Kr=Pr[1],Xe=Pr[2]||"",Be=null,ie=hr(Xe);ie&&(Be=ie.stereotype);var Z=Xe.match(/(#\S+)/);ae(Kr,Kr,Be,k,F,Z?Z[1]:null),$.length>0&&$[$.length-1].children.push(Kr);continue}}E=E.replace(/^(usecase\s+)\(([^()]+)\)(?=\s)/i,'$1"$2"');var O=E.match(/^usecase\s+"([^"]+)"\s+as\s+(\S+)(.*)$/i);if(O){var Ve=O[1],qr=O[2],$e=O[3]||"",se=null,Re=hr($e);Re&&(se=Re.stereotype),fr(qr,Ve,se,D,T,Tr($e)),$.length>0&&$[$.length-1].children.push(qr);continue}else{if(O=E.match(/^usecase\s+"([^"]+)"(.*)$/i),O){var t=O[1],o=O[2]||"",v=null,u=hr(o);u&&(v=u.stereotype);var l=t;fr(l,t,v,D,T,Tr(o)),$.length>0&&$[$.length-1].children.push(l);continue}var d=E.match(/^usecase\s+(\S+)\s+as\s+"([^"]+)"(.*)$/i);if(d){var b=d[1],m=d[2],w=null,S=hr(d[3]||"");S&&(w=S.stereotype),fr(b,m,w,D,T,Tr(d[3])),$.length>0&&$[$.length-1].children.push(b);continue}if(O=E.match(/^usecase\s+(\S+)(.*)$/i),O){var tr=O[1],ir=O[2]||"",Nr=null,xr=hr(ir);xr&&(Nr=xr.stereotype),fr(tr,tr,Nr,D,T,Tr(ir)),$.length>0&&$[$.length-1].children.push(tr);continue}}var Ne=E.match(/^:([^:]+):\/?\s*(?:as\s+(\S+))?\s*(<<[^>]*>>)?\s*(#\S+)?\s*$/);if(Ne){var Do=Ne[1].replace(/^\s+|\s+$/g,""),Zo=Ne[2]||null,uo=null;if(Ne[3]){var ke=Ne[3].match(/<<\s*([^>]*?)\s*>>/);ke&&(uo=ke[1])}var Qt=Zo||Do;ae(Qt,Do,uo,k,F,Ne[4]||null),$.length>0&&$[$.length-1].children.push(Qt);continue}var zo=E.match(/^\(([^)]+)\)\/?\s*(?:as\s+(\S+))?\s*(<<[^>]*>>)?\s*(#\S+)?\s*$/);if(zo){var Lt=zo[1].replace(/^\s+|\s+$/g,""),Ua=zo[2]||null,Mt=null;if(zo[3]){var yt=zo[3].match(/<<\s*([^>]*?)\s*>>/);yt&&(Mt=yt[1])}var Ta=Ua||Lt;fr(Ta,Lt,Mt,D,T,zo[4]||null),$.length>0&&$[$.length-1].children.push(Ta);continue}var hn=E.match(/^note\s+(right|left|top|bottom)\s+of\s+(.+?)\s*:\s*(.+)$/i);if(hn){var xa=hn[1].toLowerCase(),ze=hn[2].replace(/^\s+|\s+$/g,""),Aa=hn[3].replace(/^\s+|\s+$/g,""),Gt=ze,ra=ze.match(/^:([^:]+):$/),Sa=ze.match(/^\(([^)]+)\)$/);ra?Gt=ra[1].replace(/^\s+|\s+$/g,""):Sa&&(Gt=Sa[1].replace(/^\s+|\s+$/g,"")),A.push({position:xa,target:Gt,text:Aa,container:$.length>0?M.indexOf($[$.length-1]):null});continue}var Wn=E.match(/^note\s+"([^"]+)"\s+as\s+(\S+)/i);if(Wn){var xn=Wn[1],Sn=Wn[2];A.push({position:"floating",target:Sn,text:xn});continue}var Kn=E.match(/^note\s+(right|left|top|bottom)\s+of\s+(.+)$/i);if(Kn){var zn=Kn[1].toLowerCase(),un=Kn[2].replace(/^\s+|\s+$/g,""),sl=un.match(/^:([^:]+):$/),yn=un.match(/^\(([^)]+)\)$/);sl?un=sl[1].replace(/^\s+|\s+$/g,""):yn&&(un=yn[1].replace(/^\s+|\s+$/g,""));var vl=g(i,c);c=vl.endIdx,A.push({position:zn,target:un,text:vl.text,container:$.length>0?M.indexOf($[$.length-1]):null});continue}var Hn=K(E,k,F,D,T,A);if(Hn){if($.length>0){var ul=$[$.length-1];ul.children.indexOf(Hn.from)<0&&(F.hasOwnProperty(Hn.from)||T.hasOwnProperty(Hn.from))&&ul.children.push(Hn.from),ul.children.indexOf(Hn.to)<0&&(F.hasOwnProperty(Hn.to)||T.hasOwnProperty(Hn.to))&&ul.children.push(Hn.to)}V.push(Hn);continue}}}}}return{actors:k,usecases:D,containers:M,relationships:V,notes:A,direction:I}}return{parse:y}})();var Gu=(function(){function hr(fr,Ar,P,J){return{label:fr,color:Ar||null,side:P||"right",style:J||null,stereotypes:[],children:[]}}function G(fr){var Ar=String(fr??"").split(`+`),P=/^(.*?)(<<\s*(.*)\s*>>)\s*$/.exec(Ar[Ar.length-1]);if(P==null)return{label:fr,stereotypes:[]};Ar[Ar.length-1]=P[1].replace(/\s+$/,"");for(var J=[],K=P[2].split(/>>\s*<</),R=0;R<K.length;R++){var g=K[R].replace(/^<<\s*|\s*>>$/g,"").replace(/^\s+|\s+$/g,"");g!==""&&J.push(g)}return{label:Ar.join(`+`),stereotypes:J}}function Wr(fr){var Ar=G(fr.label);fr.label=Ar.label,fr.stereotypes=Ar.stereotypes}function vr(fr){var Ar=fr.match(/^(\*+)(.*)$/)||fr.match(/^(#+)(\s.*|_.*|\[.*|$)/);if(!Ar)return null;var P=Ar[1].length,J=Ar[2],K=null,R=null;J.length>0&&J.charAt(0)==="_"&&(R="leaf",J=J.substring(1));var g=J.match(/^\[#([A-Za-z0-9]+)\]/);g&&(K="#"+g[1],J=J.substring(g[0].length)),R==null&&J.length>0&&J.charAt(0)==="_"&&(R="leaf",J=J.substring(1));var y=J.replace(/^\s+|\s+$/g,"");return{depth:P,markers:Ar[1],label:y,color:K,style:R}}function ae(fr){var Ar=fr.match(/^([+-]+)(.*)$/);if(!Ar)return null;var P=Ar[1],J=P.length,K=P.charAt(0)==="+"?"right":"left",R=Ar[2],g=null,y=null;R.length>0&&R.charAt(0)==="_"&&(y="leaf",R=R.substring(1));var C=R.match(/^\[#([A-Za-z0-9]+)\]/);C&&(g="#"+C[1],R=R.substring(C[0].length)),y==null&&R.length>0&&R.charAt(0)==="_"&&(y="leaf",R=R.substring(1));var s=R.replace(/^\s+|\s+$/g,"");return{depth:J,markers:P,label:s,color:g,side:K,style:y}}function Tr(fr,Ar){Ar=Ar||{};var P=fr.split(/\r\n|\r|\n/),J=Ar.styleSheet||nt.createSheet(),K=[],R=null,g=null,y=null,C=null,s=null,i=null,k=[],F="right",D=null,T=0;function M(ye){return D==null&&(D=ye),/\*\*$/.test(ye)&&(ye=ye.replace(/\t/g," ").replace(/^\s+|\s+$/g,"")),ye=ye.replace(/\t/g," "),ye.indexOf(" ")<0?ye.length-1:ye.length>=D.length&&ye.substring(ye.length-D.length)===D?ye.length-D.length:ye.replace(/^\s+|\s+$/g,"").length===1?ye.length-1:ye.indexOf(D)===0?ye.length-D.length:ye.length-1}function V(ye,_){var O=(ye.match(/^[ \t]*/)||[""])[0].replace(/\t/g," "),t=M(O+_);return K.length===0?0:t}function A(ye,_){if(_===0){R=ye,K.push(ye),k=[null,ye],T=0;return}T===0&&(T=_),_=_%T===0?_/T:Math.max(1,Math.round(_/T));var O=_+1,t=O-1>=1&&O-1<k.length&&k[O-1]!=null?k[O-1]:R;for(t.children.push(ye);k.length<=O;)k.push(null);k[O]=ye;for(var o=O+1;o<k.length;o++)k[o]=null}var I=!1,$=null;function c(ye,_,O){ye==="title"?g=O:ye==="caption"?s=O:ye==="header"?y={text:O,align:_||"right"}:ye==="footer"&&(C={text:O,align:_||"center"})}for(var x=0;x<P.length;x++){var E=P[x],z=E.replace(/^\s+|\s+$/g,"");if(i!=null){new RegExp("^end\\s*"+i.kind+"\\b","i").test(z)?(c(i.kind,i.align,i.lines.join(`+`)),i=null):i.lines.push(z);continue}if(z!==""){if(/^<style>$/i.test(z)){for(var lr=[];x+1<P.length;){x++;var rr=P[x].replace(/^\s+|\s+$/g,"");if(/^<\/?style>$/i.test(rr))break;rr.charAt(0)!=="'"&&lr.push(P[x])}J.addBlock(lr.join(`+`));continue}var W=/^<style>(.*)<\/style>$/i.exec(z);if(W!=null){J.addBlock(W[1]);continue}if(!/^<style\b/i.test(z)&&z.charAt(0)!=="'"&&z.charAt(0)!=="!"){if(/^skinparam\b/i.test(z)){if(/\{\s*$/.test(z))for(var dr=1;dr>0&&x+1<P.length;){x++;var or=P[x].replace(/^\s+|\s+$/g,"");or.indexOf("{")>=0&&dr++,or.indexOf("}")>=0&&dr--}continue}if(I){var yr=/^(.*);\s*(<<(.+)>>)?$/.exec(z);yr!=null?($&&($.label+=`+`+yr[1].replace(/\s+$/,""),yr[2]!=null&&($.label+=" "+yr[2]),Wr($)),I=!1,$=null):$&&($.label+=`+`+z);continue}if(!/^scale\b/i.test(z)){var pr=z.match(/^(?:(center|left|right)\s+)?(title|header|footer|caption)\b\s*:?\s*(.*)$/i);if(pr!=null){var Ur=pr[1]?pr[1].toLowerCase():null,Pr=pr[2].toLowerCase(),le=pr[3].replace(/\s+$/,"");le!==""?c(Pr,Ur,le):Pr!=="caption"&&(i={kind:Pr,align:Ur,lines:[]});continue}if(/^left\s+side\b/i.test(z)){F="left";continue}if(/^right\s+side\b/i.test(z)){F="right";continue}var Pe=vr(z);if(Pe){var Te=F,Ir=V(P[x],Pe.markers);Ir===0&&(Te="right");var Er=Pe.label,Kr=!1;Er.length>0&&Er.charAt(0)===":"&&(Er=Er.substring(1).replace(/^\s+/,""),Er.length>0&&Er.charAt(Er.length-1)===";"?Er=Er.substring(0,Er.length-1).replace(/\s+$/,""):Kr=!0);var Xe=hr(Er,Pe.color,Te,Pe.style);Kr||Wr(Xe),A(Xe,Ir),Kr&&(I=!0,$=Xe);continue}var Be=ae(z);if(Be){var ie=Be.side,Z=Be.label,oe=!1;Z.length>0&&Z.charAt(0)===":"&&(Z=Z.substring(1).replace(/^\s+/,""),Z.length>0&&Z.charAt(Z.length-1)===";"?Z=Z.substring(0,Z.length-1).replace(/\s+$/,""):oe=!0);var ee=hr(Z,Be.color,ie,Be.style);oe||Wr(ee),A(ee,V(P[x],Be.markers)),oe&&(I=!0,$=ee);continue}}}}}if(i!=null&&c(i.kind,i.align,i.lines.join(`+`)),$!=null&&Wr($),K.length===0){var Ko=hr("",null,"right",null);Ko.synthetic=!0,K.push(Ko)}return{roots:K,root:K[0],title:g,header:y,footer:C,caption:s,styleSheet:J}}return{parse:Tr}})();var wu=(function(){function hr(Tr,fr,Ar){return{label:Tr,style:fr||null,color:Ar||null,side:"right",stereotypes:[],children:[]}}function G(Tr){var fr=String(Tr??"").split(`+`),Ar=/^(.*?)(<<\s*(.*)\s*>>)\s*$/.exec(fr[fr.length-1]);if(Ar==null)return{label:Tr,stereotypes:[]};fr[fr.length-1]=Ar[1].replace(/\s+$/,"");for(var P=[],J=Ar[2].split(/>>\s*<</),K=0;K<J.length;K++){var R=J[K].replace(/^<<\s*|\s*>>$/g,"").replace(/^\s+|\s+$/g,"");R!==""&&P.push(R)}return{label:fr.join(`+`),stereotypes:P}}function Wr(Tr){var fr=G(Tr.label);Tr.label=fr.label,Tr.stereotypes=fr.stereotypes}function vr(Tr){var fr=Tr.match(/^([ \t]*)([*+-]+)(.*)$/);if(!fr)return null;for(var Ar=fr[1].replace(/\t/g," ")+fr[2],P=fr[3],J=null,K=null,R=fr[2].indexOf("-")>=0?"left":"right",g=null,y;(y=P.match(/^(?:(_)|([<>])|\[#([A-Za-z0-9]+)\]|\(([A-Za-z0-9_]+)\))/))!=null;)y[1]?J="leaf":y[2]?R=y[2]==="<"?"left":"right":y[3]?K="#"+y[3]:y[4]&&(g=y[4]),P=P.substring(y[0].length);var C=P.replace(/^\s+|\s+$/g,"");return{type:Ar,depth:fr[2].length,label:C,style:J,color:K,side:R,code:g}}function ae(Tr,fr){fr=fr||{};var Ar=Tr.split(/\r\n|\r|\n/),P=null,J=fr.styleSheet||nt.createSheet(),K=[],R=!1,g=null,y=null;function C(rr,W){return rr.length>=W.length&&rr.substring(rr.length-W.length)===W}for(var s=0;s<Ar.length;s++){var i=Ar[s],k=i.replace(/^\s+|\s+$/g,"");if(k!==""){if(/^<style>$/i.test(k)){for(var F=[];s+1<Ar.length;){s++;var D=Ar[s].replace(/^\s+|\s+$/g,"");if(/^<\/?style>$/i.test(D))break;D.charAt(0)!=="'"&&F.push(Ar[s])}J.addBlock(F.join(`+`));continue}var T=/^<style>(.*)<\/style>$/i.exec(k);if(T!=null){J.addBlock(T[1]);continue}if(!/^<style\b/i.test(k)&&k.charAt(0)!=="'"&&k.charAt(0)!=="!"){if(/^skinparam\b/i.test(k)){if(/\{\s*$/.test(k))for(var M=1;M>0&&s+1<Ar.length;){s++;var V=Ar[s].replace(/^\s+|\s+$/g,"");V.indexOf("{")>=0&&M++,V.indexOf("}")>=0&&M--}continue}if(!/^(title|header|footer|caption|scale)\b/i.test(k)){if(R){var A=/^(.*);\s*(<<(.+)>>)?$/.exec(k);A!=null?(g&&(g.label+=`+`+A[1].replace(/\s+$/,""),A[2]!=null&&(g.label+=" "+A[2]),Wr(g)),R=!1,g=null):g&&(g.label+=`+`+k);continue}var I=vr(i);if(I){var $;P==null?(y=I.type,$=0):I.type.indexOf(" ")<0?$=I.type.length-1:C(I.type,y)||I.type.indexOf(y)===0?$=I.type.length-y.length:$=I.type.length-1,I.depth=Math.max(1,$)+1,P==null&&(I.depth=1);var c=I.label,x=!1;c.length>0&&c.charAt(0)===":"&&(c=c.substring(1).replace(/^\s+/,""),c.length>0&&c.charAt(c.length-1)===";"?c=c.substring(0,c.length-1).replace(/\s+$/,""):x=!0);var E=hr(c,I.style,I.color);if(E.side=I.side,x||Wr(E),I.depth===1)P=E,K=[null,P];else if(P!=null){var z=I.depth-1;for(z>=1&&z<K.length&&K[z]!=null?K[z].children.push(E):P.children.push(E);K.length<=I.depth;)K.push(null);K[I.depth]=E;for(var lr=I.depth+1;lr<K.length;lr++)K[lr]=null}x&&(R=!0,g=E);continue}}}}}return g!=null&&Wr(g),P==null&&(P=hr("",null,null)),{root:P,styleSheet:J}}return{parse:ae}})();var Pu=(function(){var hr="(\\d{4}[-/]\\d{1,2}[-/]\\d{1,2})";function G(g){var y=g.match(/^(\d{4})[-/](\d{1,2})[-/](\d{1,2})$/);return y?y[1]+"-"+(y[2].length<2?"0"+y[2]:y[2])+"-"+(y[3].length<2?"0"+y[3]:y[3]):g.replace(/\//g,"-")}function Wr(g,y){return{name:g,alias:y||null,duration:0,start:null,end:null,startOffset:null,endOffset:null,after:null,afterOffset:0,afterWorking:!1,alignStart:null,endAlign:null,color:null,isMilestone:!1,isSeparator:!1,resources:[],resource:null,progress:null}}function vr(g){g=g.replace(/\.\s*$/,"");var y=g.match(/^(then\s+)?\[([^\]]+)\](?:\s+as\s+\[([^\]]+)\])?(?:\s+<<[^>]*>>)?(?:\s+on\s+((?:\{[^}]+\}\s*)+))?\s+(\S.*)$/i);if(y==null)return null;var C=[];if(y[4])for(var s=/\{([^}:]+)(?::\s*(\d+)%?)?\}/g,i;(i=s.exec(y[4]))!==null;)C.push({name:i[1].replace(/^\s+|\s+$/g,""),pct:i[2]?parseInt(i[2],10):100});for(var k=y[5].split(/\s+and\s+(?=(?:lasts|requires|starts|ends|happens|is|pauses|displays|links)\b)/i),F=[],D=0;D<k.length;D++){var T=J(k[D].replace(/^\s+|\s+$/g,""));T!=null&&F.push(T)}return{then:y[1]!=null,name:y[2],alias:y[3]||null,resource:C.length>0?C[0].name:null,resources:C,clauses:F}}var ae=new RegExp("^"+hr+"$"),Tr={january:"01",february:"02",march:"03",april:"04",may:"05",june:"06",july:"07",august:"08",september:"09",october:"10",november:"11",december:"12"};function fr(g){if(g=g.replace(/^(?:at|on|the)\s+/i,"").replace(/\.\s*$/,""),ae.test(g))return G(g);var y=g.match(/^(\d+)(?:st|nd|rd|th)\s+of\s+([A-Za-z]+)\s+(\d{4})$/i);return y!=null&&Tr.hasOwnProperty(y[2].toLowerCase())?y[3]+"-"+Tr[y[2].toLowerCase()]+"-"+(y[1].length<2?"0"+y[1]:y[1]):null}function Ar(g){g=g.replace(/^\s+|\s+$/g,"");var y=fr(g);if(y)return{date:y};var C=g.match(/^([dDtTeE])([-+])(\d+)$/);return C?{anchor:C[1].toUpperCase(),offset:parseInt(C[2]+C[3],10)}:null}function P(g){var y;if((y=g.match(/^(.+?)\s+to\s+(.+)$/i))!=null){var C=Ar(y[1]),s=Ar(y[2]);if(C&&s)return{from:C,to:s}}if((y=g.match(/^(.+?)\s+and\s+(\d+)\s+days?$/i))!=null){var i=Ar(y[1]);if(i)return{from:i,to:{days:parseInt(y[2],10)}}}if((y=g.match(/^then\s+(\d+)\s+days?$/i))!=null)return{from:{afterPrev:!0},to:{days:parseInt(y[1],10)}};var k=Ar(g);return k?{from:k,to:k}:null}function J(g){var y;if((y=g.match(/^(?:lasts|requires)\s+(\d+)\s+(days?|weeks?|hours?)(?:\s+(?:and\s+)?(\d+)\s+(?:hours?|minutes?))?$/i))!=null){var C=parseInt(y[1],10),s=/week/i.test(y[2])?C*7:/hour/i.test(y[2])?Math.ceil(C/24):C;return y[3]!=null&&(s+=Math.ceil(parseInt(y[3],10)/24)),{kind:"duration",days:Math.max(1,s)}}if((y=g.match(/^(starts|ends|happens)\s+(.+)$/i))!=null){var i=y[1].toLowerCase(),k=y[2].replace(/^(?:at|on|the)\s+/i,"").replace(/^(\d{4}[-/]\d{2}[-/]\d{2})\s+\d{1,2}:\d{2}(?::\d{2})?$/,"$1"),F;return ae.test(k)?{kind:i,date:G(k)}:(F=k.match(/^(\d+)(?:st|nd|rd|th)\s+of\s+([A-Za-z]+)\s+(\d{4})$/i))!=null&&Tr.hasOwnProperty(F[2].toLowerCase())?{kind:i,date:F[3]+"-"+Tr[F[2].toLowerCase()]+"-"+(F[1].length<2?"0"+F[1]:F[1])}:(F=k.match(/^(\d+)\s+days?\s+after\s+start$/i))!=null?{kind:i,offset:parseInt(F[1],10)}:(F=k.match(/^D\+(\d+)$/i))!=null?{kind:i,offset:parseInt(F[1],10)}:(F=k.match(/^\[([^\]]+)\]'s\s+(start|end)$/i))!=null?{kind:i,ref:F[1],refEnd:F[2].toLowerCase()==="end"}:(F=k.match(/^(?:(\d+)\s+(working\s+)?days?\s+)?after\s+\[([^\]]+)\]'s\s+end$/i))!=null?{kind:i,ref:F[3],refEnd:!0,offset:F[1]!=null?parseInt(F[1],10):0,working:F[2]!=null}:null}return(y=g.match(/^is\s+(\d+)%\s+completed?$/i))!=null?{kind:"progress",value:parseInt(y[1],10)}:(y=g.match(/^is\s+colou?red\s+in\s+(\S+(?:\/\S+)?)$/i))!=null?{kind:"color",value:y[1]}:/^(?:pauses\b|displays\s+on\s+same\s+row\b|links\s+to\b|is\s+deleted$)/i.test(g)?{kind:"ignore"}:null}function K(g,y){switch(y.kind){case"duration":g.duration=y.days;break;case"progress":g.progress=y.value;break;case"color":g.color=y.value;break;case"happens":g.isMilestone=!0,g.duration=0;case"starts":y.date!=null?g.start=y.date:y.ref!=null&&y.refEnd?(g.after=y.ref,g.afterOffset=y.offset||0,g.afterWorking=!!y.working):y.ref!=null?g.alignStart=y.ref:y.offset!=null&&(g.startOffset=y.offset);break;case"ends":y.date!=null?g.end=y.date:y.ref!=null&&y.refEnd?g.endAlign=y.ref:y.ref!=null?g.alignEnd=y.ref:y.offset!=null&&(g.endOffset=y.offset);break;default:break}}function R(g,y){y=y||{};var C=g.split(/\r\n|\r|\n/),s=null,i=null,k=1,F=[],D=[],T=null,M=null,V=[],A={},I=null,$=null;function c(o){o=G(o),($==null||o<$)&&($=o)}for(var x=/^skinparam\s+monochrome\s+(true|on|yes)\s*$/im.test(g)||/^skinparam\s*\{[^}]*\bmonochrome\s+(true|on|yes)/im.test(g),E=0;E<C.length;E++){var z=C[E].replace(/^\s+|\s+$/g,"");if(z!==""&&z.charAt(0)!=="'"&&z.charAt(0)!=="!"){var lr=z.match(/^project\s+starts\s+(.+)$/i);if(lr){var rr=fr(lr[1]);rr!=null&&(s=rr);continue}var W=z.match(/^it\s+is\s+(\d+)%\s+complete\.?$/i);if(W&&I!=null&&A.hasOwnProperty(I)){V[A[I]].progress=parseInt(W[1],10);continue}if(!/^(?:it\s+is\b|\{[^}]+\}\s+is\s+|from\s+\d{1,2}:\d{2}\s+to\s+\d{1,2}:\d{2})/i.test(z)){var dr=z.match(/^(?:printscale|ganttscale|projectscale|project\s+scale)\s+(daily|weekly|monthly|quarterly|yearly)\b(?:\s+zoom\s+(\d+(?:\.\d+)?))?/i);if(dr){i=dr[1].toLowerCase(),dr[2]&&(k=parseFloat(dr[2]));continue}if(!/^(printscale|ganttscale|project\s+scale)\b/i.test(z)){var or=z.match(/^(monday|tuesday|wednesday|thursday|friday|saturday|sunday)s?\s+(?:are|is)\s+closed?\b/i);if(or){F.push(or[1].toLowerCase());continue}if(!/^separator\b/i.test(z)){if(/^note\b/i.test(z)&&!/:/.test(z)){for(;E+1<C.length&&!/^\s*end\s*note\b/i.test(C[E+1]);)E++;E++;continue}if(/^<style\b/i.test(z)&&!/<\/style\s*>/i.test(z)){for(;E+1<C.length&&!/<\/style\s*>/i.test(C[E+1]);)E++;E++;continue}if(!/^(hide|show|language|title|header|footer|caption|legend|end\s*legend|scale|skinparam)\b/i.test(z)){var yr=z.match(/^--+\s*(.*?)\s*(?:--+)?\s*$/);if(yr){var pr=Wr(yr[1]||"",null);pr.isSeparator=!0,V.push(pr);continue}var Ur=z.match(/^today\s+is\s+(.+)$/i);if(Ur){var Pr=Ur[1].split(/\s+and\s+(?:is\s+)?/i),le=Pr[0].match(/^(\d+)\s+days?\s+after\s+start$/i),Pe=le?null:fr(Pr[0]);le?T={offset:parseInt(le[1],10)}:Pe&&(T={date:Pe});for(var Te=1;Te<Pr.length;Te++){var Ir=Pr[Te].match(/^colou?red\s+in\s+(#?\w+)/i);Ir&&(M=Ir[1])}continue}var Er=z.match(/^(.+?)\s+(?:is|are)\s+((?:colou?red\s+in|named\s+\[|closed?|opene?d?)\b.*)$/i);if(Er&&z.charAt(0)!=="["){var Kr=P(Er[1]);if(Kr){for(var Xe={from:Kr.from,to:Kr.to,color:null,name:null,closed:null},Be=Er[2].split(/\s+and\s+(?:is\s+|are\s+)?/i),ie=0;ie<Be.length;ie++){var Z=Be[ie],oe;(oe=Z.match(/^colou?red\s+in\s+(#?\w+)(?:\/(#?\w+))?/i))!=null?Xe.color=oe[1]:(oe=Z.match(/^named\s+\[([^\]]+)\]/i))!=null?Xe.name=oe[1]:/^closed?\b/i.test(Z)?Xe.closed=!0:/^opene?d?\b/i.test(Z)&&(Xe.closed=!1)}Xe.from.date&&c(Xe.from.date),Xe.to.date&&c(Xe.to.date),D.push(Xe);continue}}if(!/^(today|close)\b/i.test(z)&&!new RegExp("^"+hr+"\\s+(?:to\\s+"+hr+"\\s+)?(?:is|are)\\s+","i").test(z)){var ee=vr(z);if(ee){var Ko=ee.alias||ee.name,ye;A.hasOwnProperty(Ko)?ye=A[Ko]:(ye=V.length,V.push(Wr(ee.name,ee.alias))),A[Ko]=ye,ee.alias&&(A[ee.name]=ye);var _=V[ye];ee.alias&&(_.alias=ee.alias),ee.resource&&(_.resource=ee.resource),ee.resources.length>0&&(_.resources=ee.resources);for(var O=0;O<ee.clauses.length;O++)K(_,ee.clauses[O]);ee.then&&I&&!_.after&&!_.start&&_.startOffset==null&&!_.alignStart&&(_.after=I),I=Ko;continue}}}}}}}}for(var t=0;t<V.length;t++)V[t].start&&c(V[t].start),V[t].end&&c(V[t].end);return s==null&&$!=null&&(s=$),{projectStart:s,printScale:i,zoom:k,closedWeekdays:F,periods:D,today:T,todayColor:M,tasks:V,monochrome:x}}return{parse:R}})();var Yu=(function(){function hr(G,Wr){Wr=Wr||{};var vr=G.split(/\r\n|\r|\n/),ae=[],Tr={},fr=0,Ar=-1,P=[],J=[],K=/^skinparam\s+monochrome\s+(true|on|yes)\s*$/im.test(G)||/^skinparam\s*\{[^}]*\bmonochrome\s+(true|on|yes)/im.test(G),R=[],g={},y=[],C=null,s="automatic",i="decimal",k=null;function F(ie){R.indexOf(ie)<0&&R.push(ie)}function D(ie){var Z=ie.match(/^:([^\s+\-]+)([+\-][.\d]+)?$/);if(Z)return g.hasOwnProperty(Z[1])?g[Z[1]]+(Z[2]?parseFloat(Z[2]):0):null;var oe=ie.match(/^(\d+)\/(\d+)\/(\d+)$/);if(oe)return i==="decimal"&&(i="date"),Date.UTC(parseInt(oe[1],10),parseInt(oe[2],10)-1,parseInt(oe[3],10))/1e3;var ee=ie.match(/^(\d+):(\d+):(\d+)$/);return ee?(i==="decimal"&&(i="hour"),parseInt(ee[1],10)*3600+parseInt(ee[2],10)*60+parseInt(ee[3],10)):/^[+\-]?\d+(?:\.\d+)?$/.test(ie)?ie.charAt(0)==="+"?fr+parseFloat(ie):parseFloat(ie):null}function T(ie,Z){var oe=Z.replace(/^\s+|\s+$/g,"").replace(/\s*:\s*[^:]*$/,""),ee=/^\{hidden\}$/i.test(oe);return(ee||oe==='""')&&(oe=""),{time:ie,state:oe,hidden:ee}}for(var M=0;M<vr.length;M++){var V=vr[M].replace(/^\s+|\s+$/g,"");if(V!==""&&V.charAt(0)!=="'"&&V.charAt(0)!=="!"){if(/^skinparam\b/i.test(V)){if(/\{\s*$/.test(V))for(var A=1;A>0&&M+1<vr.length;){M++;var I=vr[M].replace(/^\s+|\s+$/g,"");I.indexOf("{")>=0&&A++,I.indexOf("}")>=0&&A--}continue}var $=V.match(/^scale\s+(\d+)\s*(?:[smhdDyY])?\s+as\s+(\d+)\s+pixels?\s*$/i);if($){C={tick:parseInt($[1],10),pixel:parseInt($[2],10)};continue}var c=V.match(/^(hide|manual)\s+time.?axis\s*$/i);if(c){s=c[1].toLowerCase()==="hide"?"hidden":"manual";continue}var x=V.match(/^use\s*date\s*format\s*"([^"]+)"\s*$/i);if(x){k=x[1];continue}if(!/^(title|header|footer|caption|scale|hide|show)\b/i.test(V)){var E=V.match(/^([A-Za-z_][\w.]*)(?:@(\S+))?\s*-+(?:\[[^\]]*\])?>\s*([A-Za-z_][\w.]*)(?:@(\S+))?\s*(?::\s*(.*))?$/);if(E&&Tr.hasOwnProperty(E[1])&&Tr.hasOwnProperty(E[3])){var z=E[2]!=null?D(E[2]):fr,lr=E[4]!=null?D(E[4]):fr;z!=null&&lr!=null&&y.push({from:Tr[E[1]],fromTime:z,to:Tr[E[3]],toTime:lr,label:E[5]?E[5].replace(/^\s+|\s+$/g,""):""});continue}var rr=V.match(/^(?:compact\s+)?(robust|concise|rectangle|analog|binary|clock)\s+(?:"([^"]+)"|([^\s"]+))(?:\s+<<[^>]*>>)?(?:\s+(?:from|between)\s+(\S+)\s+(?:to|and)\s+(\S+))?(?:\s+as\s+(\S+))?(?:\s+<<[^>]*>>)?(?:\s+with\s+period\s+(\d+))?(?:\s+pulse\s+(\d+))?(?:\s+offset\s+(\d+))?\s*$/i);if(rr){var W=rr[1].toLowerCase(),dr=rr[2]!=null?rr[2]:rr[3],or=rr[6]||dr,yr={name:dr,alias:or,kind:W==="analog"?"robust":W,transitions:[]};W==="analog"&&(yr.analog=!0),W==="clock"&&(yr.period=rr[7]?parseInt(rr[7],10):100),Tr[or]=ae.length,Tr[dr]=ae.length,ae.push(yr);continue}if(!/^\S+\s+has\s+\S/i.test(V)){var pr=V.match(/^highlight\s+([+\-]?\d+)\s+to\s+([+\-]?\d+)(?:\s+(#\S+))?(?:\s*:\s*(.+))?$/i);if(pr){J.push({from:parseInt(pr[1],10),to:parseInt(pr[2],10),color:pr[3]||null,label:pr[4]?pr[4].replace(/^\s+|\s+$/g,""):null});continue}var Ur=V.match(/^@([+\-]?\d+)\s*<->\s*@([+\-]?\d+)\s*:\s*(.+)$/);if(Ur){var Pr=parseInt(Ur[1],10),le=Ur[2],Pe;le.charAt(0)==="+"||le.charAt(0)==="-"?Pe=Pr+parseInt(le,10):Pe=parseInt(le,10),P.push({from:Pr,to:Pe,label:Ur[3].replace(/^\s+|\s+$/g,"")});continue}var Te=V.match(/^@([A-Za-z_][\w]*)\s*$/);if(Te&&Tr.hasOwnProperty(Te[1])){Ar=Tr[Te[1]];continue}var Ir=V.match(/^@(:?[+\-]?[\w.\/:]+(?:[+\-][.\d]+)?)(?:\s+as\s+:(\S+))?\s*$/);if(Ir&&D(Ir[1])!=null){fr=D(Ir[1]),F(fr),Ir[2]&&(g[Ir[2]]=fr);continue}var Er=V.match(/^([+\-]?\d+(?:\.\d+)?)\s+is\s+(.+)$/i);if(Er&&Ar>=0){var Kr=Er[1];Kr.charAt(0)==="+"||Kr.charAt(0)==="-"?fr+=parseFloat(Kr):fr=parseFloat(Kr),F(fr),ae[Ar].transitions.push(T(fr,Er[2]));continue}var Xe=V.match(/^(\S+)\s+is\s+(.+)$/i);if(Xe){var Be=Xe[1];Tr.hasOwnProperty(Be)&&ae[Tr[Be]].transitions.push(T(fr,Xe[2]));continue}}}}}return{signals:ae,constraints:P,highlights:J,messages:y,timeMarks:R,codes:g,scale:C,timeAxis:s,timeFormat:i,dateFormat:k,monochrome:K}}return{parse:hr}})();var Mu=(function(){function hr(G,Wr){Wr=Wr||{};for(var vr=G.split(/\r\n|\r|\n/),ae=[],Tr=[],fr=!1,Ar=0;Ar<vr.length;Ar++){var P=vr[Ar].replace(/^\s+|\s+$/g,"");if(P===""){fr&&Tr.push(vr[Ar]);continue}if(P.charAt(0)!=="'"){if(/^@(end|start)(json|yaml|uml)\b/i.test(P)){if(/^@end/i.test(P))break;continue}var J=P.match(/^#highlight\s+(.+)$/i);if(J&&!fr){for(var K=J[1].replace(/^\s+|\s+$/g,""),R=K.split(/\s*\/\s*/),g=[],y=0;y<R.length;y++){var C=R[y].replace(/^\s+|\s+$/g,"");C.length>=2&&C.charAt(0)==='"'&&C.charAt(C.length-1)==='"'&&(C=C.substring(1,C.length-1)),C!==""&&g.push(C)}g.length>0&&ae.push(g.join("/"));continue}!fr&&(P.charAt(0)==="{"||P.charAt(0)==="["||/^(?:-?\d|"|true\b|false\b|null\b)/.test(P))&&(fr=!0),fr&&Tr.push(vr[Ar])}}var s=Tr.join(`+`).replace(/^\s+|\s+$/g,""),i=null;if(s!=="")try{i=JSON.parse(s)}catch(k){i={_parseError:k.message,_raw:s}}return{data:i,rootPresent:s!=="",highlights:ae}}return{parse:hr}})();var xu=(function(){function hr(vr){for(var ae=vr.split(/\r\n|\r|\n/),Tr={},fr=[{indent:-1,obj:Tr,isArray:!1}],Ar=0;Ar<ae.length;Ar++){var P=ae[Ar],J=P.replace(/^\s+|\s+$/g,"");if(!(J===""||J.charAt(0)==="#")){for(var K=0;K<P.length&&P.charAt(K)===" ";)K++;for(;fr.length>1&&fr[fr.length-1].indent>=K;)fr.pop();var R=fr[fr.length-1];if(J.charAt(0)==="-"){var g=J.substring(1).replace(/^\s+|\s+$/g,"");if(!R.isArray){if(R.pendingKey!=null){var y=[];R.obj[R.pendingKey]=y,fr.push({indent:K,obj:y,isArray:!0,pendingKey:null}),R=fr[fr.length-1]}else if(R.parentObj&&R.parentKey!=null){var C=[];R.parentObj[R.parentKey]=C,R.obj=C,R.isArray=!0}}if(R.isArray){var s=g.match(/^([^:]+):\s+(.+)$/);if(s){var i={};i[s[1].replace(/^\s+|\s+$/g,"")]=G(s[2].replace(/^\s+|\s+$/g,"")),R.obj.push(i)}else R.obj.push(G(g))}continue}var k=J.match(/^([^:]+):\s*(.*)$/);if(k){var F=k[1].replace(/^\s+|\s+$/g,""),D=k[2].replace(/^\s+|\s+$/g,"");if(D===""){R.obj[F]={},fr.push({indent:K,obj:R.obj[F],isArray:!1,pendingKey:null}),fr[fr.length-1].pendingKey=null;var T=fr[fr.length-2];T&&(fr[fr.length-1].parentObj=T.obj,fr[fr.length-1].parentKey=F)}else R.obj[F]=G(D)}}}return Tr}function G(vr){return vr==="true"||vr==="True"||vr==="TRUE"?!0:vr==="false"||vr==="False"||vr==="FALSE"?!1:vr==="null"||vr==="Null"||vr==="NULL"||vr==="~"?null:vr.length>=2&&(vr.charAt(0)==='"'&&vr.charAt(vr.length-1)==='"'||vr.charAt(0)==="'"&&vr.charAt(vr.length-1)==="'")?vr.substring(1,vr.length-1):/^-?\d+$/.test(vr)?parseInt(vr,10):/^-?\d+\.\d+$/.test(vr)?parseFloat(vr):vr}function Wr(vr,ae){ae=ae||{};for(var Tr=vr.split(/\r\n|\r|\n/),fr=[],Ar=[],P=0;P<Tr.length;P++){var J=Tr[P].replace(/^\s+|\s+$/g,"");if(J.charAt(0)!=="'"&&J.charAt(0)!=="!"){var K=J.match(/^#highlight\s+(.+)$/i);if(K){fr.push(K[1].replace(/"/g,"").replace(/^\s+|\s+$/g,""));continue}Ar.push(Tr[P])}}var R=hr(Ar.join(`+`));return{data:R,highlights:fr}}return{parse:Wr}})();var Hu=(function(){function hr($){return $.replace(/^\s+|\s+$/g,"")}function G($,c){c=c||{};for(var x=$.split(/\r\n|\r|\n/),E=[],z=!1,lr=!1,rr=0,W=0;W<x.length;W++){var dr=hr(x[W]);if(z){/^<\/style>/i.test(dr)&&(z=!1);continue}if(lr){dr==="}"&&(lr=!1);continue}if(rr>0){dr.indexOf("{")>=0&&rr++,dr.indexOf("}")>=0&&rr--;continue}if(!(dr===""||dr.charAt(0)==="'"||dr.charAt(0)==="!")){if(/^<style\b/i.test(dr)){/<\/style>/i.test(dr)||(z=!0);continue}if(/^skinparam\b/i.test(dr)){/\{\s*$/.test(dr)&&(rr=1);continue}if(!/^(title|header|footer|caption|scale|hide\s+stereotype)\b/i.test(dr)){if(/^sprite\s+\$/.test(dr)){/\}\s*$/.test(dr)||(lr=!0);continue}E.push(dr)}}}var or={tokens:vr(E),pos:0},yr=null;return or.tokens.length>0&&(or.tokens[0].s.charAt(0)==="{"?yr=C(or).el:yr=k(or," ",null,!0).el),{root:yr}}var Wr=/\{(?:[-+^#!*\/]|S-|SI|S)?/g;function vr($){var c=[];function x(le,Pe){le=hr(le),le.length>0&&c.push({s:le,t:Pe})}for(var E=0;E<$.length;E++){for(var z=$[E].split(/([|}])/),lr=[],rr=0;rr<z.length;rr++)z[rr]!==""&&lr.push(z[rr]);for(var W=0;W<lr.length;W++){var dr=lr[W];if(dr!=="|"){var or=W<lr.length-1?"col":"line";Wr.lastIndex=0;var yr=Wr.exec(dr);if(!yr){x(dr,or);continue}var pr=0,Ur=0;do{var Pr=yr.index;Pr>pr&&x(dr.substring(pr,Pr),"col"),Ur=Pr+yr[0].length,x(dr.substring(Pr,Ur),Ur===dr.length?or:"col"),pr=Ur,yr=Wr.exec(dr)}while(yr);Ur<dr.length&&x(dr.substring(Ur),or)}}}return c}function ae($,c){var x=$.tokens[$.pos+c];return x?x.s:""}function Tr($){var c=$.tokens[$.pos];return $.pos++,c||{s:"",t:"line"}}function fr($){return $.pos>=$.tokens.length}function Ar($){return" +^-!#".indexOf($)>=0?$:null}function P($){return hr($.replace(/<\/?[^>]*>/g,""))}function J($){return $.replace(/<&[-\w]+>/g,"00").replace(/<\/?[^>]*>/g,"").length}function K($){return/<b>/i.test($)}function R($){return{type:"text",text:$,display:P($),bold:K($),show:$!=="."}}function g($){return $.length>=2&&/^(--|==|~~|\.\.)/.test($)&&$.substring($.length-2)===$.substring(0,2)}function y($,c){return{el:c,t:$.t}}function C($){var c=ae($,0),x=ae($,1),E=c.charAt(c.length-1);if(c==="{*")return V($);if(c==="{"&&(x==="T"||x.length===2&&x.charAt(0)==="T"&&Ar(x.charAt(1))!=null))return I($);if(c==="{/")return A($);if(g(c))return y(Tr($),{type:"line",ch:c.charAt(0)});if(c.length>=2&&c.charAt(0)==='"'&&E==='"'){var z=c.substring(1,c.length-1);return y(Tr($),{type:"textfield",text:P(z),bold:K(z),charLength:J(z)})}if(/^\[X\]/.test(c))return y(Tr($),{type:"check",text:P(c.substring(3)),bold:K(c),radio:!1,checked:!0});if(/^\[\]|^\[ \]/.test(c))return y(Tr($),{type:"check",text:P(c.substring(c.indexOf("]")+1)),bold:K(c),radio:!1,checked:!1});if(c.length>=2&&c.charAt(0)==="["&&E==="]"){var lr=c.substring(1,c.length-1);return y(Tr($),{type:"button",text:P(lr),bold:K(lr),charLength:J(lr)})}if(c.length>=2&&c.charAt(0)==="^"&&E==="^"){for(var rr=c.substring(1,c.length-1).split("^"),W=[],dr=1;dr<rr.length;dr++)rr[dr]!==""&&W.push(P(rr[dr]));return y(Tr($),{type:"droplist",text:P(rr[0]),bold:K(rr[0]),charLength:J(rr[0]),open:W})}if(/^\(X\)/.test(c))return y(Tr($),{type:"check",text:P(c.substring(3)),bold:K(c),radio:!0,checked:!0});if(/^\(\)|^\( \)/.test(c))return y(Tr($),{type:"check",text:P(c.substring(c.indexOf(")")+1)),bold:K(c),radio:!0,checked:!1});if(c==="<<"||/^<<\w+$/.test(c))return T($);if(/^<<\w+>>$/.test(c)){var or=c.substring(2,c.length-2),yr=$.images&&$.images[or];return y(Tr($),yr?{type:"image",rows:yr.rows}:{type:"empty"})}if(c.charAt(0)!=="{"&&c.charAt(0)!=="}"&&c.length>0)return y(Tr($),R(c));if(/^\{[+^#!\-]?$/.test(c)&&!/^(?:[NSEW]=|T)$/.test(x))return F($);if(c==="{S"||c==="{S-"||c==="{SI")return D($);if(/^\{[+#!\-]?$/.test(c)&&/^[NSEW]=$/.test(x))return M($);var pr=Tr($);return{el:R(pr.s),t:pr.t}}function s(){var $={row:0,col:0,maxRow:0,maxCol:0,cells:[],last:null};return $.updateMax=function(){$.row>$.maxRow&&($.maxRow=$.row),$.col>$.maxCol&&($.maxCol=$.col)},$.move=function(c){c==="col"?$.col++:($.row++,$.col=0)},$.add=function(c,x){$.last={el:c,minRow:$.row,maxRow:$.row,minCol:$.col,maxCol:$.col},$.cells.push($.last),$.updateMax(),$.move(x)},$.mergeLeft=function(c){$.updateMax(),$.move(c),$.last&&$.last.maxCol++},$}function i($,c,x,E){return{type:"pyramid",strategy:c,title:x,rows:$.maxRow+1,cols:$.maxCol+1,cells:$.cells,scroll:E||null}}function k($,c,x,E){for(var z=s();!fr($)&&ae($,0)!=="}";){var lr=C($);E&&lr.el.type==="text"&&lr.el.text==="*"?z.mergeLeft(lr.t):z.add(lr.el,lr.t)}var rr=Tr($);return{el:i(z,c,x,null),t:rr.t}}function F($){var c=Tr($),x=c.s.length===2?c.s.charAt(1):" ",E=null;return x==="^"&&c.t==="col"&&(E=Tr($).s.replace(/^"([^"]*)"$/,"$1")),k($,x,E,!0)}function D($){var c=Tr($),x=c.s==="{S-"?"h":c.s==="{SI"?"v":"both",E=k($,"+",null,!1);return E.el.scroll=x,E}function T($){for(var c=Tr($),x=c.s.length>2?c.s.substring(2):null,E=[];!fr($)&&ae($,0)!==">>";)E.push(Tr($).s);var z=Tr($),lr={type:"image",rows:E};return x&&($.images||($.images={}),$.images[x]=lr),{el:lr,t:z.t}}function M($){Tr($);for(var c={type:"border",north:null,south:null,east:null,west:null,center:null};!fr($)&&ae($,0)!=="}";){var x=Tr($).s.charAt(0);if(fr($)||ae($,0)==="}")break;var E=C($).el;x==="N"?c.north=E:x==="S"?c.south=E:x==="E"?c.east=E:x==="W"?c.west=E:c.center=E}var z=Tr($);return{el:c,t:z.t}}function V($){Tr($);for(var c=[],x={},E=null;!fr($)&&ae($,0)!=="}";){var z=Tr($);E===null?c.push(z.s):E===""?E=z.s:(x.hasOwnProperty(E)||(x[E]=[]),x[E].push(z.s)),z.t==="line"&&(E="")}var lr=Tr($);return{el:{type:"menubar",entries:c,popups:x},t:lr.t}}function A($){Tr($);for(var c=[],x=!1;!fr($)&&ae($,0)!=="}";){var E=Tr($);c.push({text:P(E.s),bold:K(E.s)}),E.t==="line"&&(x=!0)}var z=Tr($);return{el:{type:"tabbar",tabs:c,vertical:x},t:z.t}}function I($){Tr($);for(var c=Tr($).s,x=c.length===2?c.charAt(1):" ",E=[],z=!0;!fr($)&&ae($,0)!=="}";){var lr=Tr($);if(z){for(var rr=0,W=lr.s;W.charAt(0)==="+";)rr++,W=W.substring(1);E.push({level:rr,text:P(W),bold:K(W),cells:[]})}else E.length>0&&E[E.length-1].cells.push({text:P(lr.s),bold:K(lr.s)});z=lr.t==="line"}var dr=Tr($);return{el:{type:"tree",strategy:x,entries:E},t:dr.t}}return{parse:G,tokenize:vr}})();var Ku=(function(){function hr(G,Wr){Wr=Wr||{};var vr=G.split(/\r\n|\r|\n/),ae=[],Tr=[],fr=[],Ar=[],P=null,J=null,K=!1,R=0;function g(z){for(var lr={address:null,description:null,shape:null,color:null},rr=z.split(/\s*,\s*/),W=0;W<rr.length;W++){var dr=rr[W].match(/(\w+)\s*=\s*"?([^"\]]*)"?\s*$/);if(dr){var or=dr[1].toLowerCase(),yr=dr[2].replace(/^\s+|\s+$/g,"");or==="address"?lr.address=yr:or==="description"?lr.description=yr:or==="shape"?lr.shape=yr.toLowerCase():or==="color"&&(lr.color=yr)}}return lr}for(var y=0;y<vr.length;y++){var C=vr[y].replace(/^\s+|\s+$/g,"");if(C!==""&&C.charAt(0)!=="'"&&C.charAt(0)!=="!"&&!/^skinparam\b/i.test(C)&&!/^(title|header|footer|caption|scale|hide|show)\b/i.test(C)){var s=C.match(/^nwdiag\s*\{/i);if(s){K=!0,R++;continue}var i=C.match(/^network(?:\s+(\S+))?\s*\{/i);if(i){P={name:i[1]||"",address:null,nodes:[]},ae.push(P),R++;continue}var k=C.match(/^group(?:\s+(\S+))?\s*\{/i);if(k&&P==null){J={name:k[1]||null,color:null,nodes:[]},Tr.push(J),R++;continue}if(C==="}"){R--,J!=null?J=null:P!=null&&R<=(K?1:0)&&(P=null),R<=0&&(K=!1,R=0);continue}if(J!=null){var F=C.match(/^color\s*=\s*"([^"]*)"\s*;?\s*$/i);if(F){J.color=F[1];continue}var D=C.match(/^description\s*=\s*"([^"]*)"\s*;?\s*$/i);if(D){J.name=D[1];continue}var T=C.match(/^(\w+)\s*;?\s*$/);if(T){J.nodes.push(T[1]);continue}}var M=C.match(/^(\w+)\s*--\s*(\w+)\s*;?\s*$/);if(M&&P==null&&K){Ar.push({from:M[1],to:M[2]});continue}var V=C.match(/^(\w+)\s*\[([^\]]*)\]\s*;?\s*$/);if(V&&P==null&&K){var A=g(V[2]);fr.push({name:V[1],address:A.address,description:A.description,shape:A.shape});continue}var I=C.match(/^(\w+)\s*;?\s*$/);if(I&&P==null&&J==null&&K&&!/^(?:address|color|description|shape)$/i.test(I[1])){fr.push({name:I[1],address:null,description:null,shape:null});continue}if(P!=null){var $=C.match(/^address\s*=\s*"([^"]*)"$/i);if($){P.address=$[1];continue}var c=C.match(/^(\S+)\s*\[([^\]]*)\]\s*;?\s*$/);if(c){var x=g(c[2]);P.nodes.push({name:c[1],address:x.address,description:x.description,shape:x.shape});continue}var E=C.match(/^(\w+)\s*;?\s*$/);if(E&&E[1]!=="address"){P.nodes.push({name:E[1],address:null,description:null,shape:null});continue}}}}return ae.length===0&&fr.length>0&&(ae.push({name:"",address:null,nodes:fr}),fr=[]),{networks:ae,groups:Tr,topNodes:fr,links:Ar}}return{parse:hr}})();var zu=(function(){for(var hr=["Motivation","Strategy","Business","Application","Technology","Physical","Implementation","Other","Junction"],G={},Wr=0;Wr<hr.length;Wr++)G[hr[Wr]]=!0;function vr(fr){for(var Ar=[],P="",J=!1,K=0;K<fr.length;K++){var R=fr[K];R==='"'?(J=!J,P+=R):R===","&&!J?(Ar.push(P.trim()),P=""):P+=R}return P.trim()!==""&&Ar.push(P.trim()),Ar}function ae(fr){return fr&&fr.length>=2&&fr.charAt(0)==='"'&&fr.charAt(fr.length-1)==='"'?fr.substring(1,fr.length-1):fr||""}function Tr(fr,Ar){Ar=Ar||{};var P=[],J=[],K=[],R=null,g={},y=null,C=[],s=String(fr||"").split(/\r?\n/),i=/^([A-Z][A-Za-z0-9]*)_([A-Za-z][A-Za-z0-9]*)\s*\(\s*([^)]*)\)\s*(\{)?\s*$/,k=/^Rel(?:_[A-Za-z][A-Za-z0-9]*)?\s*\(\s*([^)]*)\)\s*$/,F=/^(Grouping|Group)\s*\(\s*([^)]*)\)\s*\{\s*$/,D=/^title\s+(.+)$/i,T=/^archimate\s+(?:#(\w+)\s+)?(?:"([^"]+)"|([^\s"<\[]+))(?:\s+<<([^>]*)>>)?(?:\s+as\s+(\S+))?(?:\s+<<([^>]*)>>)?(?:\s+#(\w+))?\s*(\[)?\s*$/i,M=/^circle\s+(?:#(\w+)\s+)?(\S+)(?:\s+#(\w+))?\s*$/i,V=/^(frame|rectangle|package|folder|node|cloud|card)\s+(?:"([^"]+)"|([^\s"<\[]+))(?:\s+as\s+(\S+))?((?:\s+<<[^>]*>>)*)(?:\s+#(\w+))?\s*(\{|\[)?\s*$/i,A=/^(\S+)\s+((?:<\|?|\*|o)?[-.]+(?:\[[^\]]*\])?(?:up|down|left|right|u|d|l|r)?[-.]*(?:\|?>|\*|o)?)\s+(\S+)(?:\s*:\s*(.*))?$/,I={motivation:"Motivation",strategy:"Strategy",business:"Business",application:"Application",technology:"Technology",physical:"Physical",implementation:"Implementation"};function $(Mt){return Mt.split(/[-_\s]+/).filter(Boolean).map(function(yt){return yt.charAt(0).toUpperCase()+yt.substring(1)}).join("")}function c(Mt,yt){var Ta=yt&&I[yt.toLowerCase()]||null,hn=null;if(Mt){var xa=Mt.toLowerCase().replace(/-filled$/,"").split("-");I[xa[0]]&&(Ta==null&&(Ta=I[xa[0]]),xa.shift()),xa.length&&(hn=$(xa.join("-")))}return{category:Ta||"Other",kind:hn||"Element"}}function x(Mt){for(var yt=[],Ta=Mt+1;Ta<s.length&&!/^\s*\]\s*$/.test(s[Ta]);)yt.push(s[Ta].replace(/^\s+|\s+$/g,"")),Ta++;return{text:yt.join(`+`),endIdx:Ta}}function E(Mt){if(C.length>0){var yt=C[C.length-1];Mt.parent=yt.id,yt.children.push(Mt.id)}P.push(Mt),g[Mt.id]=Mt}for(var z=0,lr=!1,rr=0;rr<s.length;rr++){var W=s[rr].replace(/^\s+|\s+$/g,"");if(W!==""&&W.charAt(0)!=="'"&&W.charAt(0)!=="!"&&!/^@(start|end)/i.test(W)){if(/^sprite\b/i.test(W)){if(/\{\s*$/.test(W)){for(;rr+1<s.length&&!/^\s*\}\s*$/.test(s[rr+1]);)rr++;rr++}continue}if(lr){/<\/style\s*>/i.test(W)&&(lr=!1);continue}if(/^<style\b/i.test(W)){/<\/style\s*>/i.test(W)||(lr=!0);continue}if(z>0){W.indexOf("{")>=0&&z++,W.indexOf("}")>=0&&z--;continue}if(/^skinparam\b/i.test(W)){/\{\s*$/.test(W)&&z++;continue}if(!/^(?:hide|show|scale|left\s+to\s+right\s+direction|top\s+to\s+bottom\s+direction)\b/i.test(W)){var dr=T.exec(W);if(dr!=null){var or=dr[1]||dr[7]||null,yr=dr[2]!=null?dr[2]:dr[3],pr=dr[5]||yr,Ur=c(dr[4]||dr[6]||null,or),Pr={id:pr,label:yr.replace(/\\n/g,`+`),category:Ur.category,kind:Ur.kind,stereotype:dr[4]||dr[6]||null,parent:null};if(or&&!I[or.toLowerCase()]&&(Pr.color="#"+or),dr[8]==="["){var le=x(rr);Pr.label=le.text,rr=le.endIdx}E(Pr);continue}var Pe=M.exec(W);if(Pe!=null){var Te=(Pe[1]||Pe[3]||"").toLowerCase();E({id:Pe[2],label:"",category:"Junction",kind:Te==="black"||Te==="000000"?"And":"Or",parent:null});continue}var Ir=V.exec(W);if(Ir!=null){var Er=Ir[2]!=null?Ir[2]:Ir[3],Kr=Ir[4]||Er;if(Ir[7]==="{"){var Xe={id:Kr,label:Er,kind:"Group",children:[]};K.push(Xe),C.push(Xe)}else{var Be=(Ir[5]||"").match(/<<([^>$]*)>>/g)||[],ie=Be.length?Be[Be.length-1].replace(/^<<|>>$/g,""):null,Z=c(ie,Ir[6]||null),oe={id:Kr,label:Er.replace(/\\n/g,`+`),category:Z.category,kind:ie?Z.kind:$(Ir[1]),parent:null};if(Ir[6]&&!I[Ir[6].toLowerCase()]&&(oe.color="#"+Ir[6]),Ir[7]==="["){var ee=x(rr);oe.label=ee.text,rr=ee.endIdx}E(oe)}continue}var Ko=A.exec(W);if(Ko!=null&&/[-.]/.test(Ko[2])&&!/^(?:Rel|Grouping|Group)\b/.test(W)&&Ko[2].indexOf("hidden")<0){var ye=Ko[2],_=Ko[1],O=Ko[3];if(/^<\|?/.test(ye)&&!/\|?>$/.test(ye)){var t=_;_=O,O=t}J.push({from:_,to:O,label:Ko[4]?Ko[4].replace(/^\s+|\s+$/g,""):"",kind:"Rel"});continue}var o=W.match(/^legend(?:\s+(left|right|center|top|bottom))?\s*$/i);if(o!=null){for(var v=o[1]||"center",u=[],l=rr+1;l<s.length&&!/^endlegend\b/i.test(s[l].replace(/^\s+|\s+$/g,""));){var d=s[l].replace(/^\s+|\s+$/g,"");d!==""&&u.push(d),l++}y={position:v.toLowerCase(),lines:u},rr=l;continue}if(!/^endlegend\b/i.test(W)){var b=D.exec(W);if(b!=null){R=b[1].replace(/^\s+|\s+$/g,"");continue}var m=F.exec(W);if(m!=null){var w=vr(m[2]),S=ae(w[0]||"").replace(/^\s+|\s+$/g,""),tr=ae(w[1]||S),ir={id:S,label:tr,kind:m[1],children:[]};K.push(ir),C.push(ir);continue}if(W==="}"){C.length>0&&C.pop();continue}var Nr=k.exec(W);if(Nr!=null){var xr=vr(Nr[1]),Ve=ae(xr[0]||"").replace(/^\s+|\s+$/g,""),qr=ae(xr[1]||"").replace(/^\s+|\s+$/g,""),$e=xr.length>2?ae(xr[2]):"",se="Rel",Re=W.match(/^(Rel(?:_[A-Za-z][A-Za-z0-9]*)?)/);Re&&(se=Re[1]),Ve!==""&&qr!==""&&J.push({from:Ve,to:qr,label:$e,kind:se});continue}var Ne=i.exec(W);if(Ne!=null){var Do=Ne[1],Zo=Ne[2];if(!G[Do])continue;var uo=vr(Ne[3]),ke=ae(uo[0]||"").replace(/^\s+|\s+$/g,""),Qt=ae(uo[1]||ke),zo={id:ke,label:Qt,category:Do,kind:Zo,parent:null};if(C.length>0){var Lt=C[C.length-1];zo.parent=Lt.id,Lt.children.push(ke)}if(P.push(zo),g[ke]=zo,Ne[4]==="{"){var Ua={id:ke,label:Qt,kind:"ShapeContainer",children:[]};K.push(Ua),C.push(Ua)}continue}}}}}return{title:R,shapes:P,edges:J,groups:K,legend:y}}return{parse:Tr}})();var Wu=(function(){var hr={Person:{category:"Person",variant:"person"},Person_Ext:{category:"Person",variant:"person_ext"},System:{category:"System",variant:"normal"},SystemDb:{category:"System",variant:"db"},SystemQueue:{category:"System",variant:"queue"},System_Ext:{category:"System",variant:"ext"},SystemDb_Ext:{category:"System",variant:"db_ext"},SystemQueue_Ext:{category:"System",variant:"queue_ext"},Container:{category:"Container",variant:"normal"},ContainerDb:{category:"Container",variant:"db"},ContainerQueue:{category:"Container",variant:"queue"},Container_Ext:{category:"Container",variant:"ext"},ContainerDb_Ext:{category:"Container",variant:"db_ext"},ContainerQueue_Ext:{category:"Container",variant:"queue_ext"},Component:{category:"Component",variant:"normal"},ComponentDb:{category:"Component",variant:"db"},ComponentQueue:{category:"Component",variant:"queue"},Component_Ext:{category:"Component",variant:"ext"},ComponentDb_Ext:{category:"Component",variant:"db_ext"},ComponentQueue_Ext:{category:"Component",variant:"queue_ext"}},G={System_Boundary:!0,Container_Boundary:!0,Enterprise_Boundary:!0,Boundary:!0};function Wr(Tr){for(var fr=[],Ar="",P=!1,J=0;J<Tr.length;J++){var K=Tr[J];K==='"'?(P=!P,Ar+=K):K===","&&!P?(fr.push(Ar.trim()),Ar=""):Ar+=K}return Ar.trim()!==""&&fr.push(Ar.trim()),fr}function vr(Tr){return Tr&&Tr.length>=2&&Tr.charAt(0)==='"'&&Tr.charAt(Tr.length-1)==='"'?Tr.substring(1,Tr.length-1):Tr||""}function ae(Tr,fr){fr=fr||{};for(var Ar=[],P=[],J=[],K=null,R=!1,g=!1,y=null,C=null,s=null,i=[],k=String(Tr||"").split(/\r?\n/),F=/^([A-Za-z_][A-Za-z0-9_]*)\s*\(\s*([\s\S]*?)\)\s*(\{)?\s*$/,D=/^title\s+(.+)$/i,T=0;T<k.length;T++){var M=k[T].replace(/^\s+|\s+$/g,"");if(M!==""&&M.charAt(0)!=="'"&&M.charAt(0)!=="!"&&!/^@(start|end)/i.test(M)){if(/^skinparam\b/i.test(M)){var V=/^skinparam\s+(nodesep|ranksep)\s+(\d+)/i.exec(M);V?/nodesep/i.test(V[1])?y=parseInt(V[2],10):C=parseInt(V[2],10):/^skinparam\s+linetype\s+ortho/i.test(M)&&(s="ortho");continue}if(!/^hide\b/i.test(M)&&!/^show\b/i.test(M)){var A=D.exec(M);if(A!=null){K=A[1].replace(/^\s+|\s+$/g,"");continue}if(M==="}"){i.length>0&&i.pop();continue}var I=M.match(/^package\s+(?:"([^"]*)"|(\S+))(?:\s*<<([^>]+)>>)?(\s*\{)?\s*$/i);if(I){var $="c4pkg_"+J.length,c=I[1]||I[2]||"",x=I[3]||"",E=!!I[4],z={id:$,label:c,kind:"package",stereotype:x,children:[],parent:i.length>0?i[i.length-1].id:null};J.push(z),E&&i.push(z);continue}var lr=F.exec(M);if(lr!=null){var rr=lr[1],W=Wr(lr[2]),dr=lr[3]==="{";if(rr==="LAYOUT_WITH_LEGEND"){R=!0;continue}if(!/^LAYOUT_/.test(rr)){if(G[rr]){var or=vr(W[0]||"").replace(/^\s+|\s+$/g,""),yr=vr(W[1]||or),pr={id:or,label:yr,kind:rr,children:[],parent:i.length>0?i[i.length-1].id:null};J.push(pr),dr&&i.push(pr);continue}var Ur=hr[rr];if(Ur){Ur.category==="Component"&&(g=!0);var Pr=vr(W[0]||"").replace(/^\s+|\s+$/g,""),le=vr(W[1]||Pr),Pe="",Te="";W.length>=4?(Pe=vr(W[2]),Te=vr(W[3])):W.length===3&&(Te=vr(W[2]));var Ir={id:Pr,label:le,description:Te,technology:Pe,category:Ur.category,variant:Ur.variant,parent:i.length>0?i[i.length-1].id:null};if(Ir.parent){var Er=i[i.length-1];Er.children.push(Pr)}Ar.push(Ir);continue}if(/^Rel(?:_[A-Za-z][A-Za-z0-9_]*)?$/.test(rr)){var Kr=vr(W[0]||"").replace(/^\s+|\s+$/g,""),Xe=vr(W[1]||"").replace(/^\s+|\s+$/g,""),Be=W.length>=3?vr(W[2]):"",ie=W.length>=4?vr(W[3]):"",Z=null,oe=!1,ee=rr.substring(3);/^_U/.test(ee)||/^_Up/.test(ee)?Z="up":/^_D/.test(ee)&&!/^_Down_/.test(ee)||/^_Down/.test(ee)?Z="down":/^_L/.test(ee)||/^_Left/.test(ee)?Z="left":(/^_R/.test(ee)||/^_Right/.test(ee))&&(Z="right"),/_Back/.test(ee)&&(oe=!0),Kr!==""&&Xe!==""&&P.push({from:Kr,to:Xe,label:Be,technology:ie,direction:Z,back:oe});continue}}}}}}return{title:K,shapes:Ar,edges:P,boundaries:J,hasLegend:R,hasComponent:g,nodesep:y,ranksep:C,linetype:s}}return{parse:ae}})();il.registerParser("sequence",yu);il.registerParser("state",Eu);il.registerParser("activity",Du);il.registerParser("activityLegacy",Tu);il.registerParser("class",Su);il.registerParser("component",Iu);il.registerParser("object",Nu);il.registerParser("useCase",Lu);il.registerParser("mindmap",Gu);il.registerParser("wbs",wu);il.registerParser("gantt",Pu);il.registerParser("timing",Yu);il.registerParser("json",Mu);il.registerParser("yaml",xu);il.registerParser("salt",Hu);il.registerParser("network",Ku);il.registerParser("archimate",zu);il.registerParser("c4",Wu);var UC=Pf;return WC(XC);})();PlantUml=PlantUml.default;globalThis.mxPlantUmlToDrawio=PlantUml.mxPlantUmlToDrawio;diff --git a/src/main/webapp/js/shapes-14-6-5.min.js b/src/main/webapp/js/shapes-14-6-5.min.jsindex 5df40b6ad..1436ae171 100644--- a/src/main/webapp/js/shapes-14-6-5.min.js+++ b/src/main/webapp/js/shapes-14-6-5.min.js@@ -2097,7 +2097,31 @@ null!=c&&(a.setFillColor("#999C95"),c.drawShape(a,this,5,5,10,10));break;case "enull!=c&&(a.setFillColor("#5EA3E4"),c.drawShape(a,this,5,5,10,10))}switch(e){case "blocker":c=mxStencilRegistry.getStencil("mxgraph.atlassian.no");null!=c&&(a.setFillColor("#CE0000"),c.drawShape(a,this,85,5,10,10));break;case "critical":c=mxStencilRegistry.getStencil("mxgraph.atlassian.critical");null!=c&&(a.setFillColor("#CE0000"),c.drawShape(a,this,86,3,8,14));break;case "major":c=mxStencilRegistry.getStencil("mxgraph.atlassian.double_up");null!=c&&(a.setFillColor("#CE0000"),c.drawShape(a,this,85,5,10,10));break;case "minor":c=mxStencilRegistry.getStencil("mxgraph.atlassian.double");null!=c&&(a.setFillColor("#2A8735"),c.drawShape(a,this,85,5,10,10));break;case "trivial":c=mxStencilRegistry.getStencil("mxgraph.atlassian.single"),null!=c&&(a.setFillColor("#9AA1B2"),c.drawShape(a,this,85,5,10,10))}a.setFillColor("#FFFFFD");a.setFontColor("#4E6B89");switch(d){case "todo":a.rect(b-45,5,40,20);a.fill();a.text(b-25,15,0,0,"TO DO",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);break;case "inProgress":a.rect(b-85,5,80,20);a.fill();a.text(b-45,15,0,0,"IN PROGRESS",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);break;case "inReview":a.rect(b-75,5,70,20);a.fill();a.text(b-40,15,0,0,"IN REVIEW",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);break;case "done":a.rect(b-45,5,40,20);a.fill();a.text(b-25,15,0,0,"DONE",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);break;default:e=mxUtils.getValue(this.style,"issueStatusWidth",6.5*-d.length),a.rect(b-e-5,5,e,20),a.fill(),a.text(b-7,15,0,0,d,mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)}};mxCellRenderer.registerShape(mxAtlassianJiraIssue.prototype.cst.ISSUE,mxAtlassianJiraIssue);function mxShapeBasicCross(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=.5}mxUtils.extend(mxShapeBasicCross,mxActor);mxShapeBasicCross.prototype.cst={CROSS:"mxgraph.basic.cross2"};+d.length),a.rect(b-e-5,5,e,20),a.fill(),a.text(b-7,15,0,0,d,mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)}};mxCellRenderer.registerShape(mxAtlassianJiraIssue.prototype.cst.ISSUE,mxAtlassianJiraIssue);function mxShapeAtlassian2Icon(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAtlassian2Icon,mxShape);+mxShapeAtlassian2Icon.prototype.customProperties=[{name:"tileShape",dispName:"Tile Shape",type:"enum",defVal:"square",enumList:[{val:"square",dispName:"Rounded Square"},{val:"hex",dispName:"Hexagon"}]},{name:"tileColor",dispName:"Tile Color",type:"color",defVal:"#1868DB",primary:!0},{name:"tileOutlineColor",dispName:"Tile Outline",type:"color",defVal:"#DDDEE1",primary:!0},{name:"wordmarkColor",dispName:"Text Color",type:"color",defVal:"#101214",primary:!0},{name:"glyphScale",dispName:"Icon Scale",+type:"float",min:0,defVal:1}];mxShapeAtlassian2Icon.prototype.cst={SHAPE_ICON:"mxgraph.atlassian2.icon"};mxShapeAtlassian2Icon.HEX_ASPECT=.8971;mxShapeAtlassian2Icon.HEX_GLYPH_FACTOR=.8971;+mxShapeAtlassian2Icon.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getColorValue(this.style,"tileColor","none"),g="none"!=f,h=mxUtils.getValue(this.style,"atlassian2Wordmark",null),k=c,l=0;null!=h&&(l=String(mxUtils.getValue(this.style,"atlassian2LockupBox","1 0")).split(" "),k=parseFloat(l[0]),k=isNaN(k)||0>=k?c:c/k,c=parseFloat(l[1]||0),l=isNaN(c)?0:k*c);b=null!=h?Math.min(b,k*this.tileAspect()):b;a.translate(d,e);g&&this.background(a,0,l,b,k,f);a.setShadow(!1);this.foreground(a,+0,l,b,k,g,null!=h);null!=h&&this.wordmark(a,k,h,b,l)};mxShapeAtlassian2Icon.prototype.iconData=function(a,d,e,b){a=mxUtils.getValue(a,e,null);null==a&&null!=d&&null!=d.desc&&(a=d.desc.getAttribute(b));return null!=a&&""!=a?String(a):null};mxShapeAtlassian2Icon.prototype.parseBox=function(a){if(null==a)return null;a=String(a).split(" ");a=[parseFloat(a[0]),parseFloat(a[1]),parseFloat(a[2]),parseFloat(a[3])];return!isNaN(a[0])&&!isNaN(a[1])&&0<a[2]&&0<a[3]?a:null};+mxShapeAtlassian2Icon.prototype.parseLayout=function(a){var d=String(null!=a?a:"").split(" ");a=parseFloat(d[0]);var e=parseFloat(d[1]);d=parseFloat(d[2]);return[isNaN(a)?.3:a,isNaN(e)||0>=e?.65:e,isNaN(d)?0:d]};+mxShapeAtlassian2Icon.prototype.tileBounds=function(a){if("hex"!=mxUtils.getValue(this.style,"tileShape","square"))return null;var d=this.parseBox(this.iconData(this.style,a,"atlassian2TileBounds","tile"));return null!=d?d:null!=a&&"hex"==mxUtils.getValue(this.style,"tileShape","square")?(d=a.h0*mxShapeAtlassian2Icon.HEX_ASPECT,[(a.w0-d)/2,0,d,a.h0]):null};+mxShapeAtlassian2Icon.prototype.tileAspect=function(){if("hex"!=mxUtils.getValue(this.style,"tileShape","square"))return 1;var a=this.parseBox(mxUtils.getValue(this.style,"atlassian2TileBounds",null));return null!=a?a[2]/a[3]:mxShapeAtlassian2Icon.HEX_ASPECT};+mxShapeAtlassian2Icon.prototype.background=function(a,d,e,b,c,f){var g=mxUtils.getColorValue(this.style,mxConstants.STYLE_GRADIENTCOLOR,"none"),h=mxUtils.getValue(this.style,"gradientDirection","south"),k=mxUtils.getColorValue(this.style,"tileOutlineColor","none");"none"==g?a.setFillColor(f):a.setGradient(f,g,0,0,b,c,h);"none"!=k?(f=Math.max(1,b/24),g=f/2,a.setStrokeColor(k),a.setStrokeWidth(f),this.tilePath(a,d,e,b,c,g),a.fillAndStroke(),a.setStrokeColor(this.stroke),a.setStrokeWidth(this.strokewidth)):+(this.tilePath(a,d,e,b,c,0),a.fill())};+mxShapeAtlassian2Icon.prototype.tilePath=function(a,d,e,b,c,f){if("hex"==mxUtils.getValue(this.style,"tileShape","square")){var g=c-2*f,h=b-2*f;c=Math.max(0,.1146*g-.5*f);d+=b/2;e+=f;g=[[d,e],[d+h/2,e+g/4],[d+h/2,e+3*g/4],[d,e+g],[d-h/2,e+3*g/4],[d-h/2,e+g/4]];h=c/Math.sqrt(3);e=[];for(f=0;6>f;f++){d=g[f];b=g[(f+1)%6];var k=b[0]-d[0],l=b[1]-d[1],m=Math.sqrt(k*k+l*l);e.push([d[0]+k*h/m,d[1]+l*h/m,b[0]-k*h/m,b[1]-l*h/m])}a.begin();a.moveTo(e[0][0],e[0][1]);for(f=0;6>f;f++)a.lineTo(e[f][2],e[f][3]),+g=e[(f+1)%6],a.arcTo(c,c,0,0,1,g[0],g[1]);a.close()}else a.roundrect(d+f,e+f,b-2*f,c-2*f,.25*b-f,.25*c-f)};+mxShapeAtlassian2Icon.prototype.foreground=function(a,d,e,b,c,f,g){var h=mxUtils.getValue(this.style,"atlassian2Icon",null),k=null;null!=h&&(k=mxStencilRegistry.getStencil(h));if(null!=k){a.setFillColor(mxUtils.getColorValue(this.style,mxConstants.STYLE_FILLCOLOR,"none"));if(f||g){var l=this.tileBounds(k);null!=l?(f=d-l[0]*b/l[2],g=e-l[1]*c/l[3],h=b*k.w0/l[2],l=c*k.h0/l[3]):(f=d,g=e,h=b,l=c)}else f=this.parseBox(this.iconData(this.style,k,"atlassian2IconBounds","ink"))||[4,4,16,16],g=f[1],h=f[2],+l=f[3],f=d-f[0]*b/h,g=e-g*c/l,h=b*k.w0/h,l=c*k.h0/l;var m=parseFloat(mxUtils.getValue(this.style,"glyphScale",1));m=isNaN(m)?1:m;1!=m&&(f=d+b/2+(f-(d+b/2))*m,g=e+c/2+(g-(e+c/2))*m,h*=m,l*=m);k.drawShape(a,this,f,g,h,l)}};+mxShapeAtlassian2Icon.prototype.wordmark=function(a,d,e,b,c){e=mxStencilRegistry.getStencil(e);c=c||0;if(null!=e){var f=this.parseLayout(mxUtils.getValue(this.style,"atlassian2Lockup",null)),g=f[0],h=d*f[1];f=f[2];var k=h*e.w0/e.h0,l=mxUtils.getValue(this.style,"atlassian2Wordmark2",null);l=null!=l?mxStencilRegistry.getStencil(l):null;if(null!=l){var m=this.parseLayout(mxUtils.getValue(this.style,"atlassian2Lockup2",null)),n=d*m[1],p=n*l.w0/l.h0;a.setFillColor(mxUtils.getColorValue(this.style,mxConstants.STYLE_FILLCOLOR,+"none"));l.drawShape(a,this,b+d*m[0],c+d*(.5+m[2])-n/2,p,n);b+=d*m[0]+p}a.setFillColor(mxUtils.getColorValue(this.style,"wordmarkColor","none"));e.drawShape(a,this,b+d*g,c+d*(.5+f)-h/2,k,h)}};+mxShapeAtlassian2Icon.prototype.getConstraints=function(a,d,e){function b(l,m,n){l=new mxConnectionConstraint(new mxPoint(Math.round(1E3*l)/1E3,Math.round(1E3*m)/1E3),!1);l.name=n;c.push(l)}d=mxUtils.getColorValue(a,"tileColor","none");var c=[];if(null!=mxUtils.getValue(a,"atlassian2Wordmark",null))return c.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(1,+.5),!1)),c.push(new mxConnectionConstraint(new mxPoint(1,1),!1)),c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),c.push(new mxConnectionConstraint(new mxPoint(0,1),!1)),c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1)),c;if("none"!=d)"hex"==mxUtils.getValue(a,"tileShape","square")?(b(.5,0,"N"),b(1,.5,"E"),b(.5,1,"S"),b(0,.5,"W"),b(.75,.125,"NE"),b(.75,.875,"SE"),b(.25,.875,"SW"),b(.25,.125,"NW")):(b(.5,0,"N"),b(1,.5,"E"),b(.5,1,"S"),b(0,.5,"W"),d=.25*(1-Math.SQRT1_2),b(1-d,d,"NE"),+b(1-d,1-d,"SE"),b(d,1-d,"SW"),b(d,d,"NW")),b(.5,.5,"C");else{d=mxUtils.getValue(a,"atlassian2Icon",null);d=null!=d?mxStencilRegistry.getStencil(d):null;var f=this.parseBox(this.iconData(a,d,"atlassian2IconBounds","ink"));if(null!=d&&null!=d.constraints&&null!=f){a=f[0];e=f[1];var g=f[2];f=f[3];for(var h=0;h<d.constraints.length;h++){var k=d.constraints[h].point;k=new mxConnectionConstraint(new mxPoint(Math.min(1,Math.max(0,(k.x*d.w0-a)/g)),Math.min(1,Math.max(0,(k.y*d.h0-e)/f))),!1);k.name=d.constraints[h].name;+c.push(k)}}else c.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1)),c.push(new mxConnectionConstraint(new mxPoint(1,1),!1)),c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),c.push(new mxConnectionConstraint(new mxPoint(0,1),!1)),c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1))}return c};+mxShapeAtlassian2Icon.prototype.styleChanged=function(a,d,e){if("tileColor"==a||"tileOutlineColor"==a||"wordmarkColor"==a){var b="prev_"+a,c=mxUtils.getColorValue(e.style,a,"none");if(null==d||"none"==d)"none"!=c&&(this[b]=c);else if(null!=this[b]&&(c=this[b],this[b]=null,d!=c)){e.view.graph.setCellStyles(a,c,[e.cell]);return}}if("tileShape"==a){var f=mxUtils.getValue(e.style,"tileShape","square"),g=null!=d&&""!=d?d:"square";if(f!=g){b=e.view.graph;c=b.getCellGeometry(e.cell);var h="hex"==f?mxShapeAtlassian2Icon.HEX_ASPECT:+1,k="hex"==g?mxShapeAtlassian2Icon.HEX_ASPECT:1;if(null!=c&&b.getModel().isVertex(e.cell)&&h!=k){c=c.clone();if(null!=mxUtils.getValue(e.style,"atlassian2Wordmark",null)){var l=String(mxUtils.getValue(e.style,"atlassian2LockupBox","1 0")).split(" ");l=parseFloat(l[0]);l=isNaN(l)||0>=l?1:l;c.width+=c.height/l*(k-h)}else h=k/h,c.x+=c.width*(1-h)/2,c.width*=h;b.getModel().setGeometry(e.cell,c)}b=mxUtils.getValue(e.style,"atlassian2Icon",null);b=null!=b?mxStencilRegistry.getStencil(b):null;c=parseFloat(this.iconData(e.style,+b,"atlassian2HexScale","hexscale"));b=c=isNaN(c)?mxShapeAtlassian2Icon.HEX_GLYPH_FACTOR:c;c/=mxShapeAtlassian2Icon.HEX_GLYPH_FACTOR;h=parseFloat(mxUtils.getValue(e.style,"glyphScale",1));h=isNaN(h)?1:h;g="hex"==g?b:c;5E-4>Math.abs(h-("hex"==f?b:c))&&e.view.graph.setCellStyles("glyphScale",5E-4>Math.abs(g-1)?null:String(Math.round(1E4*g)/1E4),[e.cell])}}"tileColor"==a&&(a=mxUtils.getColorValue(e.style,"tileColor","none"),d=null!=d&&"none"!=d,"none"!=a!=d&&null==mxUtils.getValue(e.style,"atlassian2Wordmark",+null)&&(b=e.view.graph,c=b.getCellGeometry(e.cell),a=16/24,f=16/24,g=mxUtils.getValue(e.style,"atlassian2Icon",null),g=null!=g?mxStencilRegistry.getStencil(g):null,h=this.parseBox(this.iconData(e.style,g,"atlassian2IconBounds","ink")),null!=g&&null!=h&&(f=this.tileBounds(g),a=h[2]/(null!=f?f[2]:g.w0),f=h[3]/(null!=f?f[3]:g.h0)),null!=c&&b.getModel().isVertex(e.cell)&&(c=c.clone(),a=d?1/a:a,d=d?1/f:f,c.x+=c.width*(1-a)/2,c.y+=c.height*(1-d)/2,c.width*=a,c.height*=d,b.getModel().setGeometry(e.cell,+c))))};mxCellRenderer.registerShape(mxShapeAtlassian2Icon.prototype.cst.SHAPE_ICON,mxShapeAtlassian2Icon);function mxShapeBasicCross(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=.5}mxUtils.extend(mxShapeBasicCross,mxActor);mxShapeBasicCross.prototype.cst={CROSS:"mxgraph.basic.cross2"};mxShapeBasicCross.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));a.begin();a.moveTo(.5*b+d,0);a.lineTo(.5*b+d,.5*c-d);a.lineTo(b,.5*c-d);a.lineTo(b,.5*c+d);a.lineTo(.5*b+d,.5*c+d);a.lineTo(.5*b+d,c);a.lineTo(.5*b-d,c);a.lineTo(.5*b-d,.5*c+d);a.lineTo(0,.5*c+d);a.lineTo(0,.5*c-d);a.lineTo(.5*b-d,.5*c-d);a.lineTo(.5*b-d,0);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeBasicCross.prototype.cst.CROSS,mxShapeBasicCross);mxShapeBasicCross.prototype.constraints=null;Graph.handleFactory[mxShapeBasicCross.prototype.cst.CROSS]=function(a){return[Graph.createHandle(a,["dx"],function(d){var e=Math.max(0,Math.min(d.width/2,d.width/2,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx))));return new mxPoint(d.x+d.width/2+e,d.y+d.height/2-e)},function(d,e){this.state.style.dx=Math.round(100*Math.max(0,Math.min(d.height/2,d.width/2,e.x-d.x-d.width/2)))/100})]};diff --git a/src/main/webapp/js/stencils.min.js b/src/main/webapp/js/stencils.min.jsindex f7cc2e65b..0ef89c226 100644--- a/src/main/webapp/js/stencils.min.js+++ b/src/main/webapp/js/stencils.min.js@@ -4,6 +4,7 @@ f['alibaba_cloud.xml'] = 'vL1bjyW5cS76VwrzrmXeL4BtYCQdX7A9OLLH8H48KM20Ro3d6h5U98f['android/android.xml'] = '7R1rk9u28a9w5M+W8SbZsT2TxHWbNnWc2k3afqMl3p3GsnQjyY/015cPgATAJQSQlO4RKTM+ZYXFaxe72MVi8Xx/k93m+2iTfcpfzD59u95ltzfzbLPcbVfL2cvn1c9Rtr/NF4cXsy/ZbpV9WOez6ObFjKKZRPtucVhtN9H32W4W7Q+77cf862p5KIqsNjf5bnWYRV9fzHDMivoW280mr4rvn718frXd5de77efN8uXzXQFW1cri0bcXs+L/fi//LUuv1uviT93CYrve7qLq3xez8pcfyq9kFi3zq+zzuujsk7T6lJi32eHm5fNP2y95WSWu60zKX9arTQXjFQhzHSbLEVICn9V11I3LzgT1QY2PV8Pj1eAwr9sV2vBc5TCZc9+iqVbwmT7RzyqaBpM2+qngiv2iwHEQmSQohMhl8UdPZCKQF5FVOQ8iN0XHEBmjhso/bDeHrGjm+2x5nUevt4vP+3zpWsvITWaAejWoO3fkKl6m2cx/ssmSM0H0ya4GInsFcJMHNaneAF0IGtNejipbKX7Ldotone2u86fFt6dX6+y6anj3rWbu3e/13/3XPL+VP+Oqd7Qk4dPs22r/dLc9ZOX0qS7HR2vmsmZu1lyPW4yp2dnnFPXWLKdjsd7u83YFSZbM1+vV7T6v2Dep+TepGRjXyFjj32D6m+ShdX840ld3rAMdwy+WfzX88i9Asv7hc8fo+wfEDH6jH3jOuwNKjAlu5ZUUbCDUSY3JBMSb7e5Tth4hHzoz84RVn4BVDc3vE1F9Lkv3zpeuRs8Ht0qfLKrPQ1qQb3f5fpzG7s5Cq5jHrEiaJCK7KNN7sCJbej68FXlvVSQ1FmT+7fA5W0eTmMP77EvZPflneuP4qvrMGpSqi5HsaMVJy2x/U0zOId9tIvm3+CVqfsuXUf1Hlm/ERM2cuGZONe2ibapDRlEThhrkIrVdZtCQsLYu21brG4bF7ZrBrWqVMMKgagvJeijIIsf3LNw4bCdaTZCo5kfI6SGtnWpZfEY53Z51lZP1YeFZoVFwQu6xxD1J69YMexwzrFEeEjO4FjN4LmV19aUrrDFN+2VqRdZORyjYkXhwR/DxjgijI1RAMyKhNS+2a4E7oAKqAARiAnO4XLdcanfDj5Qa67Z/NZyOdXgsKTY3HTeCGvBOeWyWRhq0U1bYdSMD3imfmqWxBm3LSqKZ/eDUARXQAEFgClFyYu01icfPqccm8P+dS48RxAE9Nul6eDhKcRLVR1DspdII5n7lUOyn+lSFgOo7NlOEMkBqEyam0WOEMU891nSEgh0Zq8ecHTH0GFGq05oRDGgsIm0NGCqgCkBgiB5TrvI712NEEFCPEZGAeqwpj83SHNBjTVlh181BPdaUT83SAtBjagJNjUV44oAKaIAg8Lx6LPrtZnWYTptNoNS0s6N7r796z9oeif0GnOPdd30VyksXbfaH12bhXHJRXHeluI6pqzAn4gS+xLOpK9hteFFX/urq3nsWgwXRxYn4B3QihnPJxV94Kn9hDKmrd7fr1SE6fQgoQ4DcOarDBnuqoJhK5hunyf3jNHk6zusZqG8m1YEn4Z8pvc5Oy9zFUP02/CQMpbamzDcmlPvHhI5lqLNvbO6Hp/zEvDyV5+nuONovyPn+cHTovuEuOPqkFsppOHoik/Qcqt7z8sVdaPV7xp33ixG54sMfN8v8kO8+rTbZoQxy3F6XcY7HNpksdTKgOUDpIrK8T1yHWoFyVtkULKvcF1bhsm8aeOxEafGgf89//7DNdsvJnEWeWgFVHzBKdMCe3LyHUX2qqssOVvUXtvR+9b+8tHjnnNSTkNbNlWZdRbx6iuPEU2kweIvhGbzfuxGncyyPC6S96YqinBPpEai/AZGU8VzEvU6BxDJ1Zenyl2R80/VI+ppOeoIpe0L9KG66Fs+J4bYwfoqPdZzOYxW/W33r+nNo6uy4aqNpPm0opnrWCt85q4VeiuecmjK4+YnJCrss0PzUJVDzk3+IBe/ZlQUtkqpxqmuzIHQ0Dp8m4/C56OBPIlQKigm9wTKsuZktQ6IEYGOOuviTkNduMCn0Su2DZWLOmF+veyc5puOIlI5kEizPR4dXIDclwyuQHt3hFfCRjI7lwWM6eKWmIytg8cgK5Ene8AoSMrKCdOwcYCzG1kDp2BqkFDFqOKXQUw1yalg9p9VLap6sRgdRa0wdkmXGVCHZdkwVcumMqUIu3zFVkDSMD6bSt1aD59/DS+ErjA1fCsCwZFrzFC6GSnIHMDaAWAOq/XV7VpRqbob2rCd2QK3qZQ02VO+fa1fvokYPA1iTKw/BhHXsJjtgWtMKiqFjNMEDD9K3m0MYGxUIJcNGkmsrW7Z0kJW29ovZL7MoW6+uC8tikW8O+W4WfZH//2m1XJameikNNEdKi/qbDyqJQdw/++AyBuL+0we3Cfsxcd97DReBuP/xwU3h8f7LBxdjeMA/eiFTDCL/7IXM4G6/9UIWcLe/80KW2+TExH3ngytdiDbuKx9ceQZt4772wY0JiPsXL95KQNy/es0VEiDy37yQCdzrv/sxVwoi/+SFzOFu/zeAxsLirX8H0NjG/SGAxjburwE0tnG/D6GxjfwmhMY28j9CaGwjY0L92tZcaqd1kqp99h17SRVfJ6aXXEJTBMW8JHG9LfT3OTatxHbUDnfDwYOVlqzzEJ6oqXq6XQmfOSvpYZp2MMhPT8l9p4mb+skwDOEmfpPIINzYb0sQQ7jCT5QgCJd7iTAKoTKvnZeAUL1kCEsgVOKlJ8Cx4gDJxWchh9/t0dHws6ba7TnTDLO0NRonCMt+k31ZXWfN4Tc+R35DS3glWtSlklAMaUBHpCmrT0gYdK7D+pNzmEe7VAc2wfW8m14P7CrhQNxqAmEjBB02Iz0/n5WeBARiClrMlADBkVDUvwJi4YxzrVmPyJBnInGQEeg6Hd+dN/midf+DQxwYT8CBsS8HxgAHUtLlIbCrlECR0wzID9nkzqQQ1OS2JpwahMJMSEh9Vlm2W562GvETqcdPWP3mx5YEt5hEYg5mzopderjz13x3WC2cKeGoH29WrXyVqYOO82a9LSDUFDlUhzqYk86bI2T43hjtZ1BqOtmYDrWSXBHznBvssypKTS5V3GTei1NROTEEZazbGAykoG9RWpopsK5AIItdDCkv9aT1DqNGIKcRkuTEUWmjYiYtthVtja7gDBWaAXJnWUkPd1LTchIacHBzuL85R0KtgEywvUbiY9oB+buprUxnlx1TkDCg50+9NlImKLqNXKUIeUqFGE0hFWI0RCr4cv2jXvoTiMbzSQV/uRW03i1yTyRyppMid5kCa6w8kWbLSHnCue8uQ20SRzZI+CklyqMyZk8gUc5qF48VKk771qL7yUzvyYQNezj2ixK/Y2VL4i1bkmlkS3LZrdxbV+0k0uwx7T74+U8bHo6Z2Qp2oHMUyuLE9G6c1Urtd53yu3OdPhzfosKOQcep3G7QpN8FfA+ck+Ica/nilfTU6H9I39oE1sFEwjZ4VaXNsnp7s93kLk8/CX3opFkjPhMgGVkcu5wo5LmSAG9UHuHZdoUwrwXpbo24PIJmajvJ3ZSzUS1W/e5r0QzqokKHDm7RMcJ6LGoB2gtRmhWG0adgZkxYSt3gYyFpwXljtOde9OxqQouEMhoA4v8YmSfyfgWrqmB1qEwsZ10Ir1rQrE1zwOTdwFoXxx38nl5jEvd0uw+BeiAkWviPug2QDHz2b1PIFcDBejb+GJwkwTctgmChTzb2PuIF5zaQnNmT2wCqH6E4zjLf+s2sDD719z0bBNeP+KS5GUSHQO8Wu88fPuS76NVqX5ZbjiGX9CkHUy2BaOZ3A117Xi9b395kUfVvUXE9Y9rCxEIOYqb5LM2kLv5pLlsqai1IeabfJhdj3kJN+qnl8RzqFMTqDByWSFr+X5uKqR8V2/m0qBh3yGikZJUC9mRklIl14yOZc9yLOgX24Omp17PH83t3v5zdcxnAJu7FzkjP67uT8grrLvlwXjHfhkb9UxfuBWjslV8+rxYf94vddu3y8BRGXkAaZ2Cg7ZOVfumk9LPBZgbU+R0am5i4nfbGN4W0vR1XViT3Jh8wKtrHmtBFGFHlW3F3ZNBQ+16cbdz+HGAyzDhkKws+7JVSNcmsHhvT/X+yA4OfN4QY2RlpJ4bKuVAWpl0OpmdiYHRP+BeB7Buu2USV+kmjcySfl3VpNI6mzyZ2PAtp4/GSnZY9GZVo7IqX/+m1J8NrHvfWHaJuj486LJQ+UcYDQxEQ5AyZ9NVy9cgqlFCvD2oFGyAnWBg+KwMYOqAjXMAlF0iviXRzotQ7LYWREaXvVWkMHbioRIES7J8crGdIlnKSeUVA+5fzge8mS+brD9/hfAiRBHwFDJScprA2l6/gXobLAHr6vl6glL8VGSPBPA2jdKx3pvfhe3UUYL+ZwGGw3BCZUQUtOIaCMiTYO/47jFcxVRsZDL9GYCbob0qbrxzIS7h4oucM7Uku1LM0XtOjyR55lZmtXED1N+j9BzQn/S70mM8JOdIIm5cZjCoVUX2DXrtg8/JG7ohGRJX6sGyk/gaNJJmj/pgbNVtuhaQ7fOekNjaLL7E665qr3LNinhAvHd2zdCyRkoAvkMzrlRObi5hyA+7MW+m+cySb6JsxMiRM6fQyDXNQpsHH71PJNCZAmWaDpfBisKizlKCq26WrppNpLAVlGktBmcYJKNM4mcS/1VgA7yojr/whep99mCBuQb0J0xu3EHz2Icy+fsh2e5d3RXh1kyMtkTeHnJ1Gvm99b8HxGN9zY2O/u10VnXSe4mAUnNwam8ocu6AIjIHQ7elRh1YksYbaHIX4eNlxHHyC5XJwEhTzpNfiRvMYN32WrQPc65lV3ZWbHnJrWNsX7IJiE4poNyv8iYkW/bS6vjlMTLokWUjhCfm+roiM9zwR6VpN6PK8PTzSeRxVTLzMNF/aiWiVZXnek45I++3B0uokq+tuKdZu7fw96vePYrGmuO/zG2ijn6PB0HmZ3HxCSQzICCP7nrzZMh0vnD51y7Bnnx4RV5zt8algmd5yxdfVYXET/Vzoon4u8GQC6d4MoWxfoK9jm3OUEIBuwPNYxhvG9VUE6aSRzhEM5OYCk+t289gVAJdDTkvW+vp1N0WZlcFMuwBVmzajybp52FR1a/weqqrnbs9B1Dc+NOVjaCqSxqnwPvvgOuFmMXksEeaMigkizMsJ8YswZyonLB/ZomOAJSG7EeYSeoIIczkWO7JcxpaYPjuuksuas9KkigfBnJwytlyPoWZMEY11lrQVP1TrW3xsTpGcUwRyaT/bWHdomwOoUe0x0f+uNjNOl5jMcypYPK5Fx0veIo6Bi/0SOrjF/qMDOZa+27bWRR8R+824PMyA06c55II59lS0wIGNMYSPcJPfiI8TAO4FOjpkkRBo0BI8sEHXsOVQhgUPwNHH55Rqw+9evi82DlerfD0mIhe8McC7oScUvLIFQ925G5UdLzp2/LiZiH7c7MtLxoU5+na72hycl+cG7mysPL1pakYmyr0tMSITBz0JCQcdQacXBDrn0GHw4V6wLaBN9upTHr1dLT66j3BOEjgXl/8ZU07RRNFx3ZfMj9WsB4erbshb6ZJSoqc4qYO8CdML49jvzSsjPm0prtBVOnNWL68gm/UH2FnL6tN7v8g6YuMG2F8qewzLWF5Y3ezHfhFPlrFGeICxllUf01j7E0oCnoghFEhmL6w3VPxeX0BYy37iJiOF59QkY5NayHRnYQMc9u6QNsZk5DR/5zUp6sZ2SgZNqQqHsNGxV0Z5OYExG5BSXr7AluABmeyx9O6kyYAM+k2qKsIGpO5XTcsYjsA3A+Sgy2cWwh8rUOxqT7fXKwlNdG064HkGlZTMHrPXuxB9041RQNM2pTEOGHTNY24R9KrcDvsTgRAE1EmEe8139zpiAAPzWBOs02xnolfZ7uO59zSk+pxkT9PeqfPe0wS/dHNHmyD+ODdB/LIJumyCLpugyybosgm6bIIm2QTVf/cv/w8=';f['arrows.xml'] = '7Vxtb9s2EP4rgr4nEd8lIAmwdQWKYSiwJV0/q7Zqa1UkQ1aaZr9+eqFtUTpSb7bipPsSO8cjebx77nikTr7erv1NsLVi/yG4sR9+rFJ/s7700zR52tq312Wr5W83wSK7sb/7aeh/iQLbWt/Ynrhktuz3S8Fv/ZY8xba1zdLkW/AULrOcKYzXQRpmtvV0YwsnH3CRxHE+VpjE2/KfnNsP40yO89G2Njn/Q5AF6Y3t2NaP/G8xzXPx3xXQ487QAxU9rpQZv/iLb6s0eYyXt9cbP1vfXj8k34OiE3YOs0RhXKcxr06EaKSasFRJjSwgXmYgVmuMkm1QSF4JeFWX+WuSBvvvYRRVyi6Y6y1XpdmM1itEq9vuj+BrZrBdubIu632GbFGtq9JLq8d7oAeq9+hrvQqMz6XJ6nZxzWSnbVjCQE4BD8AU8l4K9nKG/CtcrV+zJR3AXrmvaImwAVQrSlYB9WcABmY0XzuKftq89hjaDIOSXDpN298aVAJ4poBZmZG8k2ImM+6M+GuQ67WIplZpTrMnOqjTnLBx3Jp1Bnkv9oYYlLtSlXX9SiJ1C6KfLqzIT1fBRf7t4mvkr8q50sIO+cdz+bF9CoLNobEYg+QfF/6PcHuRJplfCLKTkRI10uqJjLfhhF2A0QFoSBmxkGdPNKyJyEWRxqqQXYUf/apcNU7V9PoSAC13iZMiFJkQatothiEUe4WIbZAe6CNxWlmU0HKYXlBlhyk1dBWwlXbboD3wOzBZha4UcQp6dzYzLVUR0VGVPguCXXLYKUsMf9r0APDI7VIgw35piq8uHp7sMNLYwKiJjBtkikEyB9MjkNWlJrJLoG17R509SXrnR1HymOWHzce8uRMB7KwTJhkkMa0reBc5lQMiB2gYSJUoBRgJ0xPVuWXuBBIFBbrDRA8QSUCyN1NFDrAiZiDSNjQhWrWgmXfaHVT/fPSXpwtVk4B6Tie/w2G9EXH2DaiR6eebPNxAwQM+Fxp25nY1NEUSpKuheSoRbldDuZp2tKY6fi40DczVyKRtEESzbn1DY6i9boXOFK38DOYnbmdDQyZMuhqa60ZuV0NTtw5oCqQzHdIZG5OuBjzrxuo2Y1WPpIofYUsdeKNAPOA+Qd3OEIL2OOBSl3oAI3X0RHVybiB6bhszEK3qPIuF+f568N06+J4mcfdGxMddD14SNNM+IZUIXNyp4Z4DGTAH+kpGDgzI57sJ5F4tyQ3TxWN+iDtG1nAHWwthqXtO4dThPXww8ujwNFdGT1rZ2XBALVnKI2r1rX0gdz39EZXC+2eDLCoyb4RsBnNz1ld27Oxkr761D9h5Etol+zxR37ukaAe13x8fNhehDAsWmhYYPprSRwfTAUkqlwZBI0IDd4oFKkmISjeYsQiYaeX50B2J1oK4e2gh8SFAZAtXO3ZrPR6H6fIaszLwADgV/f9JchQUf27sklr0PxXM8ESYmfaSYTAjlAyHGecng5m8SOanwJnU0wCcacjkrGDGD/tm+dzFj5e97gb5xAehAj5Bd18o9k5+9+eX5imss6F1SYg0DRw8KVc6he4ESVeDqzuEaRvKydqg0x2QyqXMnz6X0Lpb++nGer9cBUvrQ9DrVudV1k0gTd2EA4EFmaopYE4OD8thbgo/46fz5eZkD4OPSbZY59a/C1exH+13tJPEmUtE5qy5cFR/NkQFxABW0m1+Uus9+4ODnrewPYz11u9hPeCGg3j665XGrQnw4EmWDKiMzNMT1cmFiagJDhAvdwEig+YHieoTCLkmAS2++VhDKkpAKgWJ6vzIQOTA/RKFGBu+6M19E3UoVKuKD3aR9M3Ez0Z5mqsnwlG1UbPmQjVrbkfNWiPUkpfIlOpJ0s+VH+F9/edR86PDsOzs86MBedGrKER1gIoIWN0IKp7QJ0VzO2UUxMsg7V2Z+Ia8crL/nZGjtQ16/5RYn/3nV29T4Z6DTUUHmWvKzWHul8TF53AZWPd+GJ00xRqMDefSHYMOdhboYBp0EBgdHCQLDoJmzw0P/RIvlNxlabh5A0kcpi/6TomcfsJLJWm+yF2aleu7eHRbpBi1BZjYqd08oxwr1GTPUbjNAfLmjnIMOOgPOclBrBy6EaHAzXcjyycjksaHMNdDFOYfVvm3AMtku+9rhe5z6gxRQeDBptZ0OVo50k99NfZ2r6YOIU3Jpq0PSRr+m8SZH52gXmqeeMYJcDjlpG9lFIFCFwFCFzEQeWcaRgCByPxPCzgMg7+DNAsXRhDw1/CaASfAY1YCRC2PA8WNKidleiIhUMEk6SrMhPhQfcSZS2I/WfePaXz6Ejw0rP4OK+UH/5fgHbEEzyVA3q4v6p1nb8INPBa/snEUUMIA85AJlDCQMRlRqyexwTEAGIK73mSU5VMErNIj+reLiTId5QARE0AwqPcuNe8UFkthMeRORdDUCOsAbuBM0gwzaGbkwJ3Vi6rShFvT7swvZEkP6nUHngs4LqzvwjOHjyKmPmji84n6rjrakkRf48opMBtDXa/g7bIKARBdOtJ55O8IYK2wTIEdx9MCS6UbZtr6poUsvdYR8PNDyHs59+n32wFj/QeN8B80xn8kIlQHwkeIsQT3dSAMOJAUS0CcDQ/C0zwIdVS0M+0GOF41x3cf1KXzxnvUeG7/aSVwR/rdAmP65gzYfPbpmzMifYN+X4BM3IAMOYoDZW8OkL31LUbsltW4/xiSNzV/lNkbn7j/6FVT3cCN9kxT/uYA+duRn0dVn9vb/wA=';f['atlassian.xml'] = '7Vzbbhs5Ev0VwfucTvNOAkle9ksURYmFdSxDsifKfv0WWRc22S15PJEXMOB5GDNis5osFutyqtifjrfrh+1xdb/+uf188/P047B+uB3Wj3fr43G3vr/58qk8sFofH7abx883f60Pu/XXu+3N6vbzjRrHGxq53my2x+PN6vh42P9n+2v37RH6d/e328Pu8Wb1C5/98mmzv78HOrv9/fHjl0/f94ftj8P+6f7bl08P68fbL59+7v/ark6fb6wZbLhZ/YbWOAR7Aw/f7e67LgMtlbs2T4c8TEnnSUPTD8pA03y+ceNgFAyBB3QaXB4ND+iQh69+G242lJwdrEFKzg82EiVsFko0HB4wQB8J5Sml6Wx5wGQhm7v9cfuxrtXbQcfltdYuo4hwnSF1lhnGQVlZq/M0QzsoWquKQ9Q4RWy2XNND0EjJuEEnpETNTImHZ66ZQRPXYE4uTqfLIxZWov0QnukJcTB+2hP0YPVzXWfZmsZB4WTGdrXJD7TYIr95qaWRFzrShg7e4hrT0GwnPgg/6yxcDVkkpgv95JAuPGZJ8ODXYGkzChF67XRRAy6Jfq6kzaCQNE2XJot08hvjMPJ89eCbGeN8gX+2pUmTBXlFmiBBJNgGBQhf99sw/4i9H/Ggft/d3eFZz79ND/LHojD+tt74tf79B1pje3e3ezhuhegv3gdeeJl7M9n8j83+bn9Ylf/D+4D8v3PzZvVt+339dAfT/df38l8e3Com7QrZVu7pR6ub3bzwIw5fYOmfMfPr04+raeCsM/H4BJO1Z696bEIBCiguWYSomWUIxxQh8npIAQUJaOpODHm4LkSTrgqbVI8BNU6UtEPdbbjZHhL4CQnpgFTy36IHneh8oGacTKZblSbLYeC0mNlEvMnarlDh1Zkpc97VzxtUP5vb9f2P7dUOzfumv8qmM3vhYDpUoNEMsfEialdQQ3TTrqgGr5/rAi3l0jLBC10OPCDV7BVwBR02HwYfF929MU+9mAY/jKabTtErxU2NofEEZZQyQ1DLXeDwhVZ0whDic13G5p1cJChd1zx+2Qby6dtu/nO1w4dS58YFyxzc0oEqT9KKrqNMYDlf96e35M+ADLrAZr4VOT1yoJXtdtsVB03uPJygpss6JugC2ei50w4+vw2d5CsJ6lJ4Fe+It2el/2CDjuu/8qTKvw7wyGp92Bx3/93mkTfPbJts2WF7fASapbV5nPYsSbQqg+E9q7v14cf2A7Q+fL9b/yj9hxO++YAPro6/ttsH6lY3K+o9fVifdscPh/3jOi+qmRVvQZr89gcvO/82NS5atT97Ybr0vu6F01//8QvPvy+N58X2zw6pGgfUxz6bzqkl8tTRnlxwQ+ic9dYO1SHoftPF7UgmgObvzBnaI2fRJ7n+ocwE31QAqJhXmZsNLrVkf/hp0Jiu06C4F+WJKWCE07bNBgV15ukQB79In3Xw2D3tFucu9ENPhoxqWJw7P301qSjeMwkGSMBus767IBtgYMCd+/sOgjbDiNyKfhaIUmeJH32BuEoIGQfyUCMYL3JR41iYbqjVus16INQQfCdPgSg1Cxkcq4sLy6EoTMc1bOcBcJTtbKZMWMvbmommUIBLcvoxHjHSbtdMC9V1+aaySU0IoMNvCOWESblFzI3BweI8KNOq3yHgCYFJh45rYSA0wQ6WYgNgt6PYwA2KeAZLtwRjAhXXRRclgJqELPAe4rqBPkcggsd5GMRHG1QRfqBzo2eQB4wjsBWIRWIVOCtKUxQ3jKmJYHQHWTqHAVN5jY4d2hxKZ8Fyi1Qj+gBal9Fm2CpiAsQG5VdkQugp6TKRwsyYff5CKbt5prLTCDu9F0radCIYNW9l66zVLu/I+2ukM2qRTtnNWOLTgqPEwr6Co1D4ZbjZc9x4kU45kSRiqg7P2FHKMlUowZzOOpB/4OWrfA5JN33bP5WOs5oplQjqBemOHEAXy+wJUp8FzSjMRSqKScmnE+eU1+9yiIobmU9pQyAWCKtgDxY5atAFEMl1xMURD1qhotukC4SqjhMRqTVBEDfg5A1F15NzHURVxUISw35fgL4J9oH+Snmv7VQDshJBjlGAg4CYYlEdjrWdHjyhcsp1IgsniUHa1OsNiG4sSay1gvxBkB8J+XOwMEL+HKGRCA36tKQEIWYODBz0p2MU3FRN9lPThrqIjNHlGDMcBDMObralxFZlBPgB2Uk0YxswPsM02ISQ70K1GMWQtzi15XjMjaQkm11lhmUjJlvCeCu8ffTydlvBX98RiqlMgPaWRRMoRSWc96RVXRLMFfjaAhaZWbgQMH6uewlowUQm2eoC4ZbtTRmdIiOnEIfS9ZwXKxe6zNJrKZLV08Nr6JJo5+J3VpckhvUcWkpcf9IvUyXZXwi6snIkO5XisjIBtW2WdQm83KQXKhPZPH77ZCPjy7RKKiAb+mngYpPDEF1m3KJacYqF5e/rFTgnhs8JGWVK4LqLeiXjjy/SKyD3hnbFRvZdnRpeqFWcQf7osnDWtUDH22W1okteeVmtFOF4kVqBd/IxhWaoaqW3mM+qFWC8I3fQqqIdfqNK0MtaxTCU+/eVyigqcGTL5l4xj/Ftv7rfP66+7Y6PT4evbymeNpERwdBpAgbmG2haM1apF2sIzOskVrcPu83VcGpwW4NmX0R3YQacEFaxAVxyyoeCzxxYdq1kVkF2RzoF0FRNUgBIUyIC5HNsY3qF8UPxpXuTDEJvjBTQjOR0W/KAsBREckpxCGQrtGpzVuDvMxwyM8jaSbWJDkUfnLCYJFKE4mq+1tUsEzbb80m612c+TBcfONYMRUG3R9eXyPKEaoRz186jSlDFGYq2RvrE4RAonntP9L7FRG9RQ9crjiD3oMiN71bs4SwQHz2F3yCGvD+YFeFgwlUj2ns7WKh2Iimkgwi/MiwCchzIHNpRCJlStjbVmBFhpqIIelmCWJlNrlfiUrmJi2IkIslOBMMOMZvSVm94OdS55E0JpeQFdnBJyuW4IkQnEhiRzbGgHwh19ohAhr+tHF3D2EYoMAfXqbEnn9ACI87T+3+gLyNhC9kDEC3nBS9i2AvWSpE1dLd5RHBvyFsFPvZOiCpRG2o5LD884VQseQg+IZChUemLlrGzqpTyFob7ohTnjUYgRVWRSWWF0rIb+a6v3oK+2v18OMCG/dzeX09rgetAPgE4qql1F6QLZLE/dtRZDkvAGAEd7zGJxeTSKJBAZwQcd50sZL1pRUtoI7ZXV1lmOCeHe+RdlPPRFtVqw9Wf2nfqzqJ0Z/egi5LCKKc+WDmT2bJb8TwUAzCuRjggZ32oNJYxhVIanBBiOmNx3QgBMQRuWXZGJuGjFWVnzuO4AYNVg9n1quqM+GFJix/WAndaghh4u9JzHRVERwlWq4UfMPlIOgqWlJgfOrOxVVJWDAm4fqMTn25UErzFUDlrKmfNu5J6s0rqcXW7vXu4moICyUuMnMZOihOnTpqO4J/rOEuKO2Y5LCX1W42GHHlcaCNVq2pSVc+8DD7C41AxAk5fGLH+HGO4noLxTCHnaohCSfoVCpxHwTIAQ63pagPN+mxHHNsOn2g5Zzt6UuD8xKajcdiiuJdsNxJnKuF5JwvQwoIeno98gBxTCMIANygpybU1kzRLrhnJrZkZDTXUdJQTGq2ijoxGdJsf+o7Ggaeti0rOqeK1F/HC1JVn58/bVuSiYuHuMzrITHL4yPjgTFSxAUp8YHKBs6bv6hJIXaV+3jjohHaFuKWEuCqrKmlIxfNuE4dKWGL6mEaRMKg0ELDBqTyQIbIOPvBG8gmcWBlOVqtudGVm4BXL6Lll0f/csDxrVy6YlWpVqlF5NZsiBiUs2pPnzIlma7JgTGZVRq9hYoq3gFbmbr8pdVYXzEw+ay/JkWT/NzBru7JH6cphcDhXK6awViyDy7lWLP+d14p5pHWmXkzov5J1vt/+Wn3frh+fDtcrcNcj1RtBMNyiitKTAY7OPo7hmR4JVicKl0LrC109vQyOXO6YzboSu9ClSy3K4sQvdAnBd9/2zfi2KZVX0PnZX8rKppwxf0HsnRAJ43e0dm0sGN2ckTSf4pw4DCkx8g5qObFrKiqWEMVG8mGJcdVVcYI14rpQRrA5kb5c1DW5PdU5DjwUJ5uszIMhQHBROLrmhZkpP3pHPHH9eVR8DWFaZpS0JOD4yqpTctE3kmsZg1RsYLN1UEMBck/4oJ4kHRmQCHL9LDQlGWPvk9FwXRLvfBsX/LPEsbSSvTRWahnyfeTF+2OaIAR8r+vq6L3l0qweIvUl/V9c7nEYaSttxWGVE0RXaawpM6XZF7xB8K5ZHema7MdmoaQlEwXRBBeS5fqazoPn4RrfTr4brU+ViMBW/23km3W87Fcyjw9Ph83t+ng925iLbjB2DImS22JL5M564JTfQpfOiE4buaTC1xNeo/S0B9mxngQv1XF2UQKJHvD2Ti7G56I92gQgavl6o8Z5IEDDhRu5aEfP5sQZSkdE8cFYExNJSVkDg/AZ/Oov6ztEivAMewHhRydlC8lIhiPW5ENfkGSpXIGSlqnehLeSfODqTGMEj4NAOnURCqwoEptgncFUNnExqkHcHU+xzMnl8zWNiY3kWNM8jaFK1QjnSjgDSYKAkD/nSrSvaQzX+RpVdLIB0V0GtBbinu1ys4K9zH2u3kzCSePLr1SHyoW0WC7CjOy1h0ELUPgkVLhYFvhlkqSVRiciEvpq0lDrLIyklUCdWVJCFtHGIrYKtTYilH3VdK4eUSK2ctHYYTEqYtMMPTvMUFPWOZiZjATGE0zBqMnOMdYJ+2tpTnASefu85XrBKbAeaxLKC0CkJSjmxI7XMiNQ63721QW5c9gXFgMDuRYm5/+8pMykiHYUDQIKiOsJgsmreXde3xgwW+w5mrfj7v7HxRrl7Jqkl8TMXG4BB1+12+dQPWDpVw8nKblX4aWexeAVBYUlMLU0jS8rWDcv7uck6MgkuCLFaoakTKjXAwwZ00nROt1pHXo4zWANMSkZBpdy4iZwMRdXzEsxV1u2GKQ62sxMClh8TjohyxGu81JrCHqR3fOsBoKwIPaUtPi8OatP88xawgozuUIOmMl5OOso8SMWgOp2ylZ6v9yVuM67KXrjlLalwgGDxQdGTmM9jNW3HDlJt4hra06fkYCpyWhdijfZtUy6K8G5skeYL2X+vh5UErAoo1wdGu3irarONAfNyctY7PBil/KUjZxA+fQi6XrX2m8xnXZ8+vq4Pl7vQnzJiVEqPHX3nOSrAL1HqS93mP4OgSXYjzsm6mLkrcpOCJ3xwAkQkxhbtpoTCfmuwtx9OU/DYgt9vyCu3/JauaM/G0G+KKFmipuzLBKdYKsAA0ZST0nyd7bNjNHTZaKdLieSmsHJk5EyIDRpdD6MpHB6zntOSJ7t0GaGDoysdp2wk2MkFdmzV5KNywqlY2bVNH1uh3e79HHtOJ14amm5Uoy1UI2Ko2ewCqMj7oW45KQokYsRaRI32ckdkfZGZRjkUs5yR3B99hK7KH1bCzCWbnIywmRafvWy9Z6Leou5KNbPV1XOIFz0rbwMdOmZ6rRero4EL2GvVFzV0BA8STZ4oTd44JgqvjIyu3Ob8HYoJqi5wCjXMAUJ0uPkyqkWFKKP9eG1DPz6UFEqy8IFJ1UxaGDliiG4LW05pcXroqgA2s/q5EIix9/M6Qu6yf/hW8yk1nJi20oRq7Fia6wVY6PiTM1wEasKxQcgpJJLw20SV31aHxb5otW72/UG3a7H7eZ2ddWznSuFDd/wUPNPlPI1thzjKYGPPBt/J9eaCfOi6uOefw4vvBKkpQTRUiL2DEMBSVPx+X5GNBhvnTo7m5DTQshZLDo33OyvVnCsTywgRDcYqQLkmvX2gqtazoGwbYYnbJydev4IgpeUlRsFzA7kEgREDop6HGchtccKxRM+KOX62CR4LFbngmHxhfnwcCql9+2EMuCpBDdllE2H2cUyU1NxOgi6TozAZSdbv2XYT2eeRIr12rOdZR0dQ7RKoBlHoTd+y4KNTK4pot3K2cQ0Sy4wtorpejYlrDepVog+nuBqpsjOrgA6J1+DDHE2Je+r3QsiimF+wTN/eyBKaSt/UEHXLAUPR6Ol+im9a/L/54f9IuaLf5dLqy2POITijua6KsPwNQEsnyymVvZu5Ao6EGu/PSzfK45x5gwQ0UKAP42ilKgy4E1iiMribSDDzWkIGNBzmnRNhAdv4p0qjZOp5FRt6vJslDR2+8k1fqrcyu4r1ZkwkmDQkBle2OjkIxKaNKUw+3Us7unK3/xb/LAYCX7/fb/+y1oLFC6OX1w2/j1++R8=';+f['atlassian2.xml'] = '7L3JsiS3kS78Kse4ZzTmwaz7btrulhst/qXssOqIrKsa2FXFFvn2f2Bwd8ABZFZkZJJS9zGTFVPwE5gHHz//9y8/P//y8uXp4/OHl//47sNvP31+/uXn7fnr++cvX949f1Tf/Z9/z39R/+D57Yd3H797+sd/fKfMd08/l/88f/nl5c3X//jub+9+e3n73dOXr58//f3lH+/eft3p7z7+/PL53dfvnt59/Pt/fGc36Z7sk9SbC0/S7JW/+fTx4/7xu08fv+T/s3/8/O7j19rcD989/bJ//uHl68vn//hOfPf02/7vZr97+j39V4nw3b9NvvrLxa98VNOv/r/pVyrE+p2dfvV/p195KS9+9cPiMwUji4uRXfnOi/nY/rIa3JXvfrjyXe3nv3Wr+LdPn19++vzp149v/8+///L89ef/8+8fPv33S/pSis0Yk7/N8/L+3cdSrjdr7aTcbFaXcr852ZH83gsgSas7WthCaSXuPzz7TPhMkmr+yd4mr46akm6okLq4E3UchuUKrSekeZgR4macm1fm9k3lFp1Ix0oueu+2qOVkxOmb+RyllhYzm/q3WA+2tG/ef/ry8m/N0ivon1P5D54/v3n6vBNULnj6/Dv+/O3759/effn+86evz2lH5W33/vnzTy/f7998/7f3zz/t9ezXzD9eXn6p/7dszNpG3LS/QxPiQhM0DBjnv5Wd/rd379+X+y+VtSfh3/I1ym7T9+9+OnWbmv023Uy+UEUs/569U5W/5U71+sidqvwtd+rexi13qjMwNO0OXarY3mp0q1tVO/hwb/vItYrzUlfhm+/VsFlTL6HyszvOKkhGe/Pr5/SlTHvIi/SlpFp+U3lr5QtZ5WIVU7GmYp1vRd9fXkDMl0G6MbuLI+pvoJlNOP4CCMeJcK7NZmI51uXXDadafrecP36D0fDKr/6FSHMBtLzo//Xr89s8w1i5xDp+U02xKkvEXiPsj8638WJKLhHLtPbzLHtKM5F7p2Em08+bp3IyS+euyI/P73//+u7NlzPXZPBP+R8pt6CepNqUu/GaNBEYO23NgYuSvvPWHrkqjb3lqtT+pqsSP1PGHroq8cPV6P5ybXirDxdXpUaW1ywerP+8sg720AW7v/e67uoQ2NF3cPKDn1OkTUxnf0prdRdI0NJ4D4UAV5XU/QUcPDKPi15eIk3qYy2t+7KPw82/3Ve5u4bCFs01yro2oAz8Za4s/UnYuGxR+d8lYWiOKrtAqtWdu92+fHn5euJqM3tnnvI/Mv1vE/Lmew1OvleHrjU4vubQrUanNx651vC2WHy2ZAGRA5THOECDHKA5xgHibe+OMYASGUB55H4Km64nR+5zww4VkHZmIbqeM7RKX6fJfX+Fll3Q+xUVCrtQf94gslXOq1Se2ikt9gfUR3uVlgbYi6JlDjpa03WDPT/D50xmnF9Jfr+0fGW4eplXbhq6UX/eLPNSIzhH51oRl1uBoQz3b4R70W9G99J3EmuK8J1+3b5XzM7t3q2JuSAQE2vYNjEuqqnHIv/pIzpBTeQBP2Iqu1HM19NtMTx4oE0bDxtpP475UPUWgDdizBhS9gPANXhOXSWt6wPKZNpBPylGjWfVRV8ipXuxI1GFF0hQ4TlmBowGhZ/RiWfMLE1WSx3gasSTeMqfP6nzGq2btFlHeBktb5HQ3GWzwoIjiRH6GEM8wpEI6GSM8pCcFVB7tmBl/vPiVB6SspTaBZhyQJTMNpROVZU2Q3BFkbL/qUxWiKRJSVslWyRULldWF2UVlutcbtxYX6FLavq3UkfIKjxFbf5W6siKsN81lveCWyxPB9GorZ2qva9tQZ2q6Ouz1q+0G5MaP7WVD6vGvqvI1HZSVLrM51hZVeoLuyAtq95ObVbU6qBYk9iCVQEtq6eKdlxlTb+EOd2npur/9majrFMqeEU7JyRdnc99xwVdhyipKlGrkXtDrlYzVBJ8XWRRK1B7ZVVTBvXqXKxgiva+9DzgfCsNb7mt52Jv1YvI56VQZV4Nla6wMjFl4lW5QE3tTaT12qXlyJY/0mqpfQh5WUpdqdo8yWLvsIe6jI117WUuZpUpWLB9mM5FWPoycbBrLSy99q7ZtJ1wkJaz2bRsQZN9TzZ7tm4NgdvV522nS1E9ZTKwSrCnuEn3GTASK8n7P1eSDbow7DRhnQagWSsluRIb90yyQ9k6I67MdF4qUaYhtePKYv6usbirzO1j8FhZ+SpX5pzHykytC7ZQ2dT+/CP64/OHHz99OqHsfNJbtgdF+bTvz9v1AWDiNfKYQgC+C/LQKyrB2GKCPPCOWu+vfLfUdaIiV5lDSgEU7dUxVSf21Et96AmWwCroI4/pfktUK+5+UTqreu7aoz3UnzKHyv2qQ52djobJ4UiMm42x7YIrtM+/488TJgcp0R4SPLNyCzCoFx+Dzh4yztDAj4fN+NU0JpN3GUL5dcb+FKvHiExMCXsSw+Yye1/eeqPr65GON/A9+wTL/EKVhzG4epGmidfLVcElu//GMHufUe4Qyjxm3mzlntrVaYxo49IN65tmQ4NVTD5kLmb7DPfntXIbPH/rhK6sRNyFo/qk+v11CmhMlBr5LAGchN3FGjlshH7oF2Znf1B0YIuYmOS6iunn7cu4Dz9AM05w84StUqrfvHGP6gI1s28b1oXUPYMLUpxlHtGH5mTu3JJ0i9XCpTjHaLz7+uOvb/7+8vWMYVXrJ5eYjf2/Up31PLG3iOqHzA72Jl8+c5svn9NXBrb4TqDbycpasRhd9Fc+XFkdyOx7zCiatE4BeHLNnOb2V10Y0JAZyW6x5MOm4U3bD3Y6X/VNs/CkhXqJ1QutiFZtG+m7evszoWNvUYFTC1yQsgpH2Fxm30V06M9Se0m8g65OejvvLwy/hkF14MoEVq8ZEMEcOMwEVep37G2SVTx1w2Nv0ynMNaOniJd0uesqLiW2wNZ5wQ5OGojgkdI1IiU+IsHB5Psi6VcZR+g6iDQ1eaI1lvf6TkF+P5XYSqvRkGxW6syib8gzU5qSoKjY/1pobInZfETtRmH0KhfdqkSsCCiwh1ilwFTuQWLXldcs9Tt4HGs5sw5r1KlWYtOY3neYxcYiTuFeHiI2VjpRGrBSYmNBcmtWVCTdKj00Fp3FOaSRmU0GEnBBfbAXm/xeaSju31O0vnPFQlp/rbAd73FbREdrFQNtixA9Cr+657DOPUrfv33++vz9m5eP+0116oHyT646SCqd/H/i6WfKxVveKXfooXL45Cyk6JVQG698d9VCvhrd6rFCadj4Y49VuPLh8rGKfVePvFYGLdrpde5fq2A9vFY+jK9VihoAL0kJiqz0Wmlyk9TO45MlvURtYCrvni3yx6yk7uUy5I9ZaizPV8B3sXYgv19SGfLHDPz9CsA5CzOIEVppeMAc6GrtvnHgAds74vERg4uylLKHpl5dSOseGuPgNasVqvp0eWjHoUZ3f/tAiYpdnjQUR53oThWWtHYqNE+aoivS2OZJ0xbvyFTOnjRwqEdi96RZ06gbmyctYlOwRLGK9vXFMUMgQAQLqBJ+fNEkqKBN0XbjiwbbzuwXr6cXzUFbpZz7O2Fjldi/aOgJDJXWF81FbKx0orxixZlOt51vLZ3EGzptxxfNwMj2p0NqetHQ71jue97Sk2YdPjUycPdbcCBGWveqeR+wLQlq7PSsCY9taXyq4aLQ7U1x6ll78/PzKTHLmKf8T1YOPWUf3z/Fzd9Fe5ubv7rNz18desPwu+Xgrn24Gt9frg0wSPWHOfqD52i6OAO7TKSyC+K+fzT6Qdg5pfxifujojbqmUWsTBZLXur5BmjG9cpeWQqVxg1k6qLKKDSE7f9aLL8J7G7MDFlx75bjGrHTkd6hyrfyh8bKWGi9rpcFYFoWjy5q7p1qJPq0+rmj7VaKZV6twQLL8JQkghyXDZzQ4ztLpav2Mio90L63r0Q21zI7MdJKpYS7LbZ59rqt2sCxAuWAli7ygpduJXGBJLvRhTUTfQay26aba15NEJwUhJ0lP3Aza492vN3Nh0HrvJg0aFaJZNgp4u5ep1cWhNxq83U3s3+N9mwc1X8eWNqw/VttunM78X3ojabup2nnTCNyaD3m2o2GeJB4C1cyqwgOjm6XQdMgmazg7m8O5PfcCfvrwy/PH37//+dcfb38Idy7cpuhhkSycf07wsFtEdK3iZG/yDZLxJoUjfrYc2rUPV6HRf7k2vNWHP1z7cNXVO3oVuQ2sQDyedhZx7MGNdVEs48BT6ysEC/r61kOQ4hkuEOcdLsX8qS1Rr8WAIRw/zVJdp7mqTSf7KNS4pmB9Y7xv1SXO2izRs9dovNWmygukdY9opPXnfBoif89otBdIF6sk4nrV6hOxqOAisQx+3q1LNKx0mCpahMm4iBgnT3/w12kXK11PVlvDOCFNDReJw4y01V4kDvN1+1P45UTQj3syxcWn/HPrO4gOMDCob3wJKbblmO0N/HTckZAfR5FC7lDMTxCg0pTxkP3NkYOPPhb2bdH+Zg45+Cjn0RUpHnkNcSXMQVWogqfEgyat2e6VZLJBvBf4avCkYYF0ieBbChnHbQTbuI3n4jIgqFjE/mQDJRlO+sD3pIWlIJ018cIkIGlyFdGt4KSdfz5vlgTFC8RkjXzMVNpdJGitpk3EV3XCkOEhLTscmeh8XRy4XTj/mHb3z+WFlb5OG5cqvaL6Ou3S3kDaydfk49/e//ry8c3LGQWj2uWqzcKjotJBPyddaXmTdBUOavzw4jwU1+nI+GSPxXUq0hQecuEUCOxUPJiOGK0C6lmGCIYEzSEc6uwdODtkyA6HOvug0L4iQX9k9+uPXz4QQ+Szk/9gAbMa7VJKkwXMkMPG3mokC1hwaAHjuqV9mwmMR48iDBoi6xuHR/DnTnoccr1XPqIeS6JKp5RzvVixYMjmO1V8DSRWZyN68hfdWzEFWBt7ZV6wFBPPVTNh80qS8S6gZ77TEufIgLkm1DBVjcWsMh3I5mjAHhOq1qZWJhVUJrUii6NiXrDWYeCZV2EwBcqA02O9BFugsjg7ZQ00lpapBtfp1ivGYk0Sxm9r3EwNmfBoVkzaN9iOzCK7FxhET9BBciupwhXV2VJY5yZ6in5JHnQYtYIOsehZ1+03h9XBd9WBw8QmmiaQhSiQ4tS4qfNkeswBkGoGuxMt6vBAv53AeAyot2UgHyIDsTvMvdnvbYDxlcev7HNkPMT1eG/BkGxN9eVIrQWwIwdpwE80mMHtJiqwI8cwKOqNqts01R1QHSlhKXzecuiaLDzoI4edmO4FjZV5CPBKghdUZdC31VTFb7VKB6aOlQZhNLg/Nflu2f3OBDtnchaBibEWtcUWDAK5lFfkFFSEuD62qk5LRZFqAheq/avAGWijYYaVDxP3b5yUbLUGrzALs1LmXVNpnl8XRk9yb6GmIMkaXzCgclVRRbLGCwwaU4b7lykLsBqjutvV+IpqlXA4NUJF1Ml78o0SeHfJbbi+kyKebMWe3LokhrrJEnhSonvKsdPtubsPh3UvpyQfnlzGa1P70c+gRObmMB2MDdHH4IgiKrSPOQpZjbLqITQ1R7pibW6DCHL+GESQRCOr8weZLu3IK8ON/gTFy6IwXQYCA5OfgTHIdFm0OCWoxIivRQjc8ygDbv2OPin8JGnV+Mmi5chVz35waG2uGQxuKx1lWmlozGUWbOC7hML3W0RPfJeEBzwprBUyXgoPbikf/FfQ9grfVVOXccTIoadM8RUqXZeCCVWC2NPhYgvVc746MTrkBwL6RzY3W7oFicOLagj8dMjqwle5snzL1soCmNj2uxssbKlYMOw94dFGro0ewhaNIb4UeYBAXGlZA03Fdar9UFUhl5nOXEupLCiNC+fBocttguoylpkZwMUuPaIjU+Eg+iSJiS4AK1048Mp4CU/xJ4qMt6ODU4pvIeNt+a4wXq4xBRsMP/bljdbdyRz4LuuB7/KcqQYwxMx3OXA72t+M6IHvMgpfEq3wJZGm57sMoa6EwfncSQU+bxrYLnR3ThMcBqZ9/8sBUNWi+56VZmS7DLzkUTniuiCaPGxNPJiHOyEMbGK6E4ApqN+A7zLyBEEo8sMClwGXtX69kj1YVWel4u50JvAIEfCueHkBT4Aeh6Kx0mc/rdKOiGbCwUWoS6DbRIpn01CZ1A0TJ7HTSnJ/aJxlN7AeITO8wDDh5RswmAAmv5eu98/MWBX5s0jf1CQjLJjy5J0YYWMkNxvDwSZrjEhSvJrxwRDk7SasQR7am8YfAmUjRRH9tXzgvtCxEr6rLiqePPWQAYXTp9vjd4r9+vzpH2/PxEPv+25ntbLzXPhTfAaMcIcioQnk7JDXQLj23YqlC6RFOwaQKxVqw46xdCFc+fCHa1HitasH/OYIOsrpxwSjRtAjRx7rExyhTOiJSOaRmwxWIjcpvUd2Q0a6gR0GXRR9ExsMRSOaU9GIZr88FGLiSq4bd+DUZoFVo06kZ/Pz7/DrTFyoB5h0kxUHXXhuZh1KfG7+eTtueAKhM4t27jcamaOt+zlrsHlNZJP9gEWN++MANh7YOy1zFBRx0TIiR6qMJmWylcCRSvKjq/u6D1/Go3D3s5Y0iv1xpp1ZDZEx8pwA/AY49yz9+uXrpw8vn7//8vL5v9+9efn+w/PH559ePrx8POPpnbzbzL9IYgwRbvFti+q2xBgOL/5j0bT4YdW5ffMbhUb5g75tGt9vVUBDv/mNcgjKl8NXe7AMj1gZpxD31NSxzFwq3e8jrg9WeFn2iRb0BnkWyq/TaRbspkaREUMhbYEGrG7NpKBAPb3eAPooddVxvQub7cHGX6OI4Y97UccjrAgHEKo9AP9mEnRANKtjqLKJgtd8oqYmxls38lKgkE+Kj/EUzaS4vGBAuWz9Y7ZVbBKM3L/2cR0msIl1NXP8OAOKdVMQ1ntv1v2B0RPZCWQ+T8FbHv20G8d+hR7fvWdcXrR2ZI+6FMYQLQBza3awIsMGGnoNBqHbsFDIhG7/NQA8lBPCDBq9JhLZIrqdpoAtBDjzuj1Bd19f6qZmlwiOjDZmo5Gzke4pYKUwCsPVO8rOun63pR2m/hTP8/a3zNokUf/n8p9vZ21Suq8nrZMHvxK3sjeS8k4dASWj77w4Akom3U15avRteWow0ZiK+hCLQ36HK7ZvxalcmZUfrnxXO/qtDI4uqv4ksHH/bZN8fgu4Tfd2aQcw25rdD7oia6SfOVomHS+doprLEdMqpzVIR0wbNL3upYI9sztV1oMKwFpQlPAJk5YYqwFQxsDwdycj45egqhdaxjbsb3hlNgFppbryAGjBbOx7pxCmwWxVIbcXIqCGzWuUOy2Iv7AbN97vVPBCAGMwFNWI9kjVWEQU6xOTTUbGB7+vC5oUOLiFLoxmjTqu6mdd7r0qcoI5Qe8CpUV+rvdO3XcQOtZ1vYsAcrxvE+V7fHQQq8uvm29ZVfuV2+gx8JTeXE9pljFpnCs6ZknCkYcucej7fIKvUJpBMtnUx5LNcsCG+vjDsjZicF8AHjXms1fNOJrMZeQ9YxVZy4YYMnRY7UmBkjZxI0HsSc2MJIU1bgYBO9tsrRWvmgigNP9k1VRS2eFYTa1cwWIA5xzqsR4WL7CVG32AKzRUaoXLBxEpI/gOIB8Vaundfq8CeqtH8QBKZ4OspPrToEFBx3EJ6QacLWEdxQUSDvAU//C3l5e3Pz6/+fvtXIR7kmLnIp7UrZp8g7jbOrojDhP4nVNHwh6kuiV/U5C3aUlQJaP1MRYCP1y5gyxBTeU1P5JrH666+p9X1uEYsriYaDimEX21UIuuUKwL59F44GHffaHVurAPAqyfTwvL58MTC24dXd1xXag7R0LgsmaFcp5wSU/qhuiFWWFfd/18WjhvsOJUMwzLC4VhDDKYlp0Hbf7bpze/ngjo0jkr8mbNU/ZtyQ74p2GqVi7xV2Cq4pHLzdwS3hzsTeHNDjMRaOGPeZ4ZtDbqY/KRu/LhD9c+rF399mtqCw0AKNdXohLMKaYJAk2Hu1XTAWlhbOCNNPpghdYrw/Q4BsMnDQtp2ieP8o84MdGQeQpgyFn9qiNLSRCgmvKi0dUI2Ij1tVrZ2E8fZbhUmCpUnQkmmizRcBVDZuXsrdrfqDtJEU0yRV8APa326iELTLsI22iBdiscy6DxN7vsgN1mKNp5SRD5QkcmYiVPtSpj5Z+3a1kFmZyxHdqBMmKkXxCRLb3VuPZWn5i+ycqeejd++vT8/ssdgaEydvhr/mcW7KVvfDeivvHdEP7GdwM/XHX1jrAYGeNNTew2qpQXx4r88+bkW3FzJtytiZWbSj+MVeL5AlfVXarWKbhV88/TFhSAJzrXhLxkucVhTExgUszW05Tycv/ln2fSAMZwtybmvjh8GOcu2F+fP789k141qqeMcp5CkHx2IfSnL1h1wwUbDnkQ4vUq5SEPQn3lu+umCxWOXbGIPKQOYZ3rK58t/QfllY5euWDloaysFsE9xTamcZBNlqFQte+mIikUOzHAyUJpNRT3rI9B8AWb8Sy7VoBY7JEaUV4RD85m/QuGY0KAmuYQdqrqApDUhUsIbENDG6EG+ilqWVOpbnrbhNZiBgap/AJi/BJtMgFI7WcgZ3G2wxRk6LbVJGRHebWahWQbBpzzZhoy0Kkb5gGLZxOBxNlo97WL+iptNhNAZTORfObVOBMpINetZiK5KC4nIgXdmHEiUgCPGScCiqcTAcS677mfDZAlnRbVdEDR0dLUad0cxwYCkx/UIdG5l3aeqjRs1Vaff5xxaaQsMUqO10WUDVAknmRtKAbSQ8oEW1K6ayztF09T0js5CTZFvwWosU6qaMIHHMWbBkGh1bKH8AibgqlR59IjqdDM/oiCIDX5hEnyoI4SDaIqmCaZAaEgpPLeo4Ng2yqtdZAVoXHqAIBNW1Io1JYk+seWLaO7Xo8+ZoqyxXoe554iwBzBgRfptRpF0UwbN9COKDTRqgGxGg1rcVMUk2QIugEAq1117Ne1S2N2PMo7mREKSgSVxRQBrkQ1lbqCo7qk5hoHWVOPELGLszTaE5oARg/6Ghilmi7oZip1N5en2cfv3+7MwJuvr1zkKxf5ykW+cpGvXOQrF/nKRb5yka9c5CsX+W1c5M+fPpwC5wvhKYPyKXsfC89NwWH2mIUHQVtMOJT7w1777oerH5pjAWKWUkna23BpVh/+cHVuFl29zD7Wmfl29hHxi8WQMURNoM4DAUuPHzTEMGA4a3TBvUTTHLtbtPEVK9JQYzOuSzTBU5PcdoRr2oJ0e/xc/vPtJzg+uZ2tyIGdIfEXr3kLXvMWfEsC9+KdNvDNEVKS9lnllL5YPtaTcETsdRqPVkjAO9dJi15T+cSZGk+s57UGSERzgRZ5CpoLpVjPhJGCoJ+xrbjsYZy2RnWtytf9aMZcfi4mRO+8pJ6P8QLpYpVIXC9Rwp1xq+8vEtPY3bxTF0hY5dCluB5SXE9EswIXiRcqXc9S8/04FXE9hXE9EU2VF4nDPN302P2/d5+fz2g7ddZ2pgdvv6Kf8kzd6q0fKE/aIXhD/C4cefZkQLf7hVP6CtRAX/luqfJ019x1FypP42+D3tEIme2OJSnQhMDg5RGHfVyKOjff/PxtAtDXk18Ng1/z2jBah4VnCHXQQGhM2piS8lgCABYUQ34xw3PUgdOhGltKug1PcHimScYlJAEROww2gvKKesqAvYCavUzlAHoGyW8l0mvQlrCELu0hMBuKqxzrGJjiMLez257g70NkLvZ7XzQjtooChStQyKAqoDTSDpBxPaZIT9fXEEYlLEKd6QlAgoL4+ihJF2khCjRSqlwsLsCwzLsaiMXz2cpRLetQh+AQowmmqCqHGkw1a2mZ1YCdNE7sxJtLeMDX1S5yN+cKV4S0DiDDQ1hhIQOGJyr5fDMrUFw0tKyhhG3pQEXrRkQ7T6pgamjfXIB2bgvwOahoNTYUfeQqWlAn6k0OePBJJ4OAGlIEwkD1pLd0XiMkgYDsy3EvNsyPfpjY06/l928+vX338afvn386Bf/z+nS+Pp2vT+fr0/n6dL4+nf9rns67YOqbFP6yb6OnZDl7yhvq5ncT3xV5KEAcvwvmUAyl1zc9nEHIGx/OaK4xBouH02Ksd4zHHk4MwDTHgGYUBom7cOjhdLc9nCl/DD6OVun+4XSKkTqwp4DPpgWcaFPTudVn0xt4NqUkYzcPmJQlb1AXTdk/mwipX+j4bApKVeMxSwqU12ezD0dEan4WjRgTJ0lA4ap0TLOj8dmMGvMZRUTictkq3GdBH6Z29m46zJwXeu+K9G5KzYjtuyl9k0kdXKH8htdcMoLAs+kxr0nQkj+bAfDcKq17NjUsdCHDs+kU5u0RiOINxSW3gXXs2XQKUzF4PzoCBUFma4/ocTBF1emGXk1n6dVkyXBm0zoLH6rBswmIfNAOK9fT+lczILS5wp7KnB6qvpo5DQC8mgpddWTktsecMOf3hta9mtFjvh0ZLb6aSqIXVsJ2hVdTgeeE3YLkryb6yejsP8BfTR0JwjH7F9Rns0xSfTadoWxnPuKzKRXP6shn9vyz+cvnT29/ffP1+7fvvrzZl/Dz72c8DJx6Sggx53PKShLKzCGANocABIfslJqM4uaI1OnCle+WjyeZYY9llUX4mHAQo01d+XD1dmpMORiPwdDqnIizgCiH0MX5xRT4n12xyq/bg7mTd13sG+ld8kw9fjsZsrsloCpbb5T9mkY+PNYcCuVGmfh1OciR6LboJLqiOUg8EUr6N15ZAr6Sceha6UP1FrQN627I5zY7QYNnW6D6fBeBmt7XGhyff90+nbRm2Eif4QPT8kHfKmiuUMPrmDFr7YUp0JTcC2ZONcWqzPNY2WxxoAuSllQ1PVa0AXQzTF22jVyYTmVEGZErJZJYFr+JGKMfNpJRseHySGZulAjatwqLQBkZiyxFkcEaET71OYfPJm96jAzfVwdqJZzDiK2jyS2KkQWQEf2jExmYleLrrKi4cismYC48zpHaGjIet8F8LaPtSB2rGjQmVIQdHhuXyrTxMdFUcARdH0Mfmi4BLaL+PIELjHOWNqVx494H5MlKx2yH6HKa/P0IqU4iBqCENGoNjzZu+/Nsxj3R7XMcjC6uUPtV8JRSkJ3OeycXiEXX8t4FdYzR0JhcxR9iNOyV7xaMhiWcOnfMKQrRjow/5BQFV98a4W4ZDgMtVs3gAU6jJMyryRx51hStFCP2LAIlmExklAVM47Uv6RVG/NKUTpIJlq4ukxLge94Klto2OX0VQmWWJSovgBEk3iinSRLzgxfkMOLhARM1qXOBOPIsxsBpRuridIxCqcV5DAfyEESTVAAKI3WkcqiGsMIMwJ4VuRSx/dpcXg6m3+Z4Jri5tMFsVhpTn6q9L4oYCqO4j+cw3EdcXKOm0d4kLFn5pKuw5N1TztF38y0GYo/0/tAthrpGeSi1FJq+Dt5ixtx6i8krlq/VLebwvvWHsHcMYvaoY56dePtZdRBFR0rkvJUYIpyqxygRuztMWbrElKAgJ0MpHjDiJJJqPpseuGVEwPMfd+5b80ssaIOXmHS2ScTpSZtElg0XQ6NO4tqgcciTS8yRi53TDDZfCctonS4V43AKGYKUBKWEjDGM8TEqJ6pmaaoi3GLB2zEjoUV9kvNNpjyBSRQNZlbdr872FmNmmNl4T99if31+/+6nj/myygJmvq/qr2+/ssSTeMoflX/P+Z8f9j2X335BHfY5l7f4m0fkkMSRfHfywmgWl5HAVEAxHGGpaKa/+Roqe+J3+NXuzP2wyZ5ERyCxlwYjugCLWqA060CXLSjDbY/+LiAxvOKZMapO7wIpsR1qcFGuDutE7APZMIBRkaEFhl+ZMe3oyjQYzCamtvpmstuUoBUkN5f/16/Pb0kvVVrfF1fIsfE818w6i2iRQl4Y65roePI9t1UJGSkNKvh+zaGyywKof13QBJhpuvUUp6+p958+fTgpEuZ/KjSCSQiLZwNk7E3Jz+yh5Gf2puRn9qYAGY2y4DGLLX3ovDukdVYGk7XHYxZbNC47efQCC2jdU8yC0hCTsSlwix0A2I/EnQNTqIIJLDVUStgOFjilBibHYkCEtNyioxQGNHgzJEEOiNWnOJfmA3YnmhUtjVcNxk/5DURea0SQ5rE3e9chiRkfRSxK199xInruzS1mzWalw3y2Y01YX0e6QJ+4SJMME7mpkpOoJzx1N3a/DH866PJrOlUJgDfOZ9iCyqVbGOiF6D9raGZIpE1b4RJtrNMguPbYF9qzeQbme30YeN4Zcj5feUdFnGS5OpUXzzMSV7idSTOquYZWkoZWns/clkYtzzchL2UyxGGcfm2/f5c0GB+f378+u6/P7uuz+/rsvj67r8/u67P7yGf3w/Pnv798/eX985sK5KJzorSf86/kFXlMGZc/fyqf/rHKuISif8jseRMOhLuMA7F4NmMkbVk8pmaD7+IhHD+NikC1eKfviOagkmYmAG7CgD6VNgM4Ue5/KlV11E9bRVVjgFIVukk35TqXGzfWV+iSmv6t1BEwz1xt87dSh4pVj17L2bVSkyUhrdOjl9ioZhzgyAApr/f6IyTSTIazqLHvavDzFBQdke5P8LRJEToUGWSFwvy/Ft15eYrDSisafuXAdmvAL1sVpJgK2xfBYUdso9+1hHTIolyj1ckVqxJkPAG7qhgqQe2cIL/tUD2doN5iylAwRcli2l3y863E7nG/T1AD0ManxaL1PHmhwLSUaa/xIcaAtwyuVvLAdUPAEi6WSlpRdL3x4I+eUub4AJUZC1lUZS7m0U+wXkohFl+o08b2bKi5g6ZbVmQohNWWTV6RctyxAjerh4Mm6IwxL0WB/URAtWROk1hHOcQa4GJg0L5nFW27UEpyWxhuGCk28BByRflcDYQadPTJrEauhpqnpU+Ya4QVWr5SABgDlRl0kS+90u3+OfOEfvrx/+235F9/fP/ppxNy61MyuD99AwTaKtgm3JKw7MaEzg6doa06JD8SstjBvDPkK3wsGaM2fU+/9VGrkXQdD1f5tzNJywu7PME8unNDVXoLk+SBsvPWNDW3yZnUalUa7MQbkOdszwVb4IHPZa2fpUMmUJwxEaLUd55fyMjVyZU05fzJwr7Jzc763O0zAbMkzs1SlbHsOB2+X5Y7NWjbwTRvQDNVd27RXZxUKF+k97z32a4W8Vl+0Huf7pqfNcxytt77dINBu79K3CPPd1IDTA44FfeKNfuYI44ReZM0rtNDTv1jGxIJjzjmdYuxc14n5TEHPSVNnDwv5pFHXV6ZWn7YT3Fyn58/vvn5dl4uZbwV8ik74CdfynjWALFMXX1ZH6KORGtTOJZZxECvctCGK9+tmEiDYVzuWMCZo3k5pE1R1l3mPldMpCMm8mDQdQ1gcfwcejwU3p7QBWID4Wz14mL1bv6SAjeh2Cug8BlQ9kyOxapLZelc4+QR8NOnAUojzzp7SxcvMPQwA8OLYAFr9FEbgFp4zA4YRjAyU5t97C7ITMZ0IyCloLM2jWtsXJ/MKqwRppm/sAKzXUi/PWjoTRuORVtAt1yflBjWXZ5d935iGV/xuAM17Ce+4cJ85Pe/UqU/f2Yv36p3ADQFjuXXM6qnzSYU/hwef9ZscyOGt7eHANkoxP1I+qZAHE44lr6JAs71sTzLmDDKHUPg15ihyh1E4Mfw/9rVb3aXULN3Sm54ndhzCc5nAoOeiUX3alJdfLUAPkyou7Yt8dF0iCYV+ZsFiaN9hmVjeeodYIS4AT8kaniJtbDsuxihvd60LfFelifv5b1vHkHXOHiWwuBlZl1DkpRzROhFsWKPLdWzpuh9Zvl8GnjGnPCPmhcPkdC71Ce4s1BEFsFIvmjk1SOGaUNAIc9cKxwQdNT3VvUoykkxYCnJhkDJsWEWzblZ3GeAIKh0H0Xp97VTNBuWxQsoRZPIMmWIsJj7fc8Exdbs7jtjP+hs8zW+P6stSyS2z812pVzOq5kXDwc1TWR/ulvrmjIakaEkGuoixsM6bcBOh5BccBM1y+EW99feuF5ce37TVs1vy1CBL5tLtjUDG4NwhxmHo5rZJfRZVOQN7K6YCJndzqjYCfq8jjhMWGrowAT0w0+1oYYWk6m/1eXynD5PMxKlD6uwA8TZe+Ts/R1eZNAZt+HYkFzuQerkfaagBXMvjvvN8/uXj2+fTwA72ieTE+fYP4fjXqSHWXknI8vt4yH/ZHXlu6WFmRKRHmK5PYJOencoolEpf+XDpYk59l39du1gp1npTafuIZp7UJiwoDtI/sL5k0vF/hFKfj+bEGnnE4XlgZWbC6W8DnGhlNUQ5s2xZRx0pAujEJY/YiL9XGXlF4qNOy1eN6JxH60mYGWmheWdjcHe29gXx3NRy/oFukdbdRnixGEi3rmt2YpMzu8dWvLjWoXZAkKhmRy4WdnsEM/KzPRqmJfezVL45ufnjz+9fDnFBGyxJNAzO4N8khXQC7zkv9xkXVyhL97iOO3cTQn0XLg6tFXuy2um05Xi7dqHKy6AdfSb9W5hq557u5yi7qxvxuzAHuI7VBgA7lGs5OFKBoNkWATHLq+ZmYTh1oVhXkGYN7mLkXrez3RamIaFTd/EWxjlcDvxzVkVO2ZIdJPiiNPnWb8Czl5kY7GbIm1GeMiCUxO75KPm3eKLGpc7YZjAu1ycn96+nHGWTfg22V82IfacvDWN0jdlDT4UbmLjLeEm5iYYGGfNjQlk0NHBq2P+uYZQjo+Fd2r0JF7M5x0DVQJe7wnw1PB0m0BMgWZc0ICHKCGiMq0KkNJJt4zVGdub5FQEVHbJmRVh8bAGy3sUDSYOdYbn7HQRofR0tI95VZpWkoZz2b+kwrOrkblNmsGW0c3HKE8h8qhgKPwG8WhYpWFvEHH4WG9MBd8qMykeM1nUSIQFGfvm+ELSkDzfAHwW7nMnf/jw7gQIalIwPpknm4DWz3Ky8iaPt6CPZHLX4ZaQeydvCrm3yDYvh3btw9XoVniByHKvPvzh2oe1q9/My0pSPWvLU2apmUSmgFNfFGNFrTpakj5anjN3oWYd8reMPVBiPo5Vea7LParL4wyvopzBqeKMXeti/LFmPld3MJz1DfAM0mfutgSQ+uPzl5czkrotYvq/lLre3qSsPxgMhukYD8rojjTuh4R0gqz2B4V0/HDV1Ttym3+Ymu1VJXpPleigP/jzzDGbXRhkFoQ/ziTjLzpXYUfV/Eldlpv5eBfF6nLjdrAz+6uUfy6DiV3Mr1z6JBPFLowt9s+3Qg3dX5rMzIrFWpSr6dDmpXfzBHj55d2bMxmqsh+APi8yKaNv8rw9pMbCwO9DjAUGYR9TY4mrGPJXIdaPBQhpTCAZ1LEIIU35jOVBkHVVE4+a7UHKB/IUMpu3Kx8iHfijEiJCoQtpH2Wa0IAiLHM6pT7CwlqEfvb2MV0gt6jIYh1iK9JxB0IpUMNWEbAfoMYHhPf0QhmebsNUneu+g8zDNo7y3d4cjSsFTb90kYF5icbNUYcVzW9acudXgHtIe0KtAl+SKmZBc5sLzH4z9vMed/+7ty/PJ+JE99siXf6iGDP+BVRmKt5kxhA3mjEQpdIcShTk0Brh1DGUSjScHEwUpNFQU7v67ff/3ClSXCx+SBw5ZjXgjlOaEe4eTT5zOe/nZaHksiMoVvQBk/dAnlwBaWXDfo1qQFiyylPKkRC4MRSvLiXHhCOUQNXbAKhQOXFHzYhMufIgvcDMZ0WyoEUPMYv+3K1tHOt9Y3oxHnES66i7JAQREpTAXJXEA0JhsjtMfQRp7i57b8m742zAfmQaWNEV37HBsM2CIgJJVELyWEgMhTwXJqiIx9AsggBz/KpNSsOhtRSsocFk0SWHoCoRIs36mWELSMibYTCfaMCcMR7TAvtAyWnkYLv03rO+33l6aIPhAgx+XjLc7aH/8MvnfWefyxLo9ulLWmS530j/Gopk4255762Wt6FSo0OGu81CthrcVQvZ6sOVhQzB1pQMj9YjN+qpuNB7LMqz507vyUMYuYFF4FDaK444XEn2Yf5pCvpleePU46FfrnFlUmGuz+MTwKfyLjfDxze7FHDmWvhXsixpp26xmetwk81c6SvH7C/XLFkHbwQynB2+EXzf1YNx1/ZRJwtUCInx43jaIaLjS2TEBJIZ5urbeLE4jmaVaRnHpcv57RbqYlAR4RgeMFGjXzh5jcnVVNh9CtWKJKKaqtx3GUWEBYW3NMERhL/gwYA4f4YJbw4IPDephqoUk326JibpD7H/YpAUcdCchEGcnvWCV3aPO/njyz/++reX56+/fn45p5nPvkx6/9/Zq1nFmwDN5RHdjLpJN+Nv49Xws6WK/Wp7Wt7IrHl5mzvTahUewqytjYySY+o0GHYriuKa+8aYuiaFpeVtTeHV2e0aYeg1VbYmLafH3u8a+OX5p1eHn1eHn1eHn1eHn38Jh5//LZHA/yx+Sm4WRrAs40+mu1DaO+VzY49mbP+lUjUzG0wL9X0fzr++f/ffL399++mMb0vKabA/ogm+48Y3VCEMxKEUfPiZljc+o0eA5UDGXn72w7X3Vx0CwPUCYeXMjdqNY6By+J06xgxPIejtutBNnp5Z2UI6BvOomtW9KJUz++q0UF1uNEwqn5XdYOkdrZ+bbxwkHqMR0ZvF3C2Cx5cBSW/6UcFlBmPLvGaK3+ARKowHJlMSxagf5RNDqG2S5zW3lPP8UQo9vvJ3ue8/f/rx/cuHUwG5ORr3X8GHRaIU8kdkyqH4Vncw0yphlR/yYSGw8tWH11HOF129o6zkNm0gd6TuIStDOSnhDG6y35xFTapzt1e/QPYbOj+6MEcBD110HZPtgOF15xjeBJKAynQRmTp9aH7kfjdbHTz9ZoR5QBdL22WeouBe/CLiiyi0ecwMDSO8y2356/v3f/388l+/vnz5epckEf5blEzXsjbYm3I2HHPIQ3BhrY6l/UL7X3Vj/fbLTF358DVlw79QygazORV4u5IalidapmghaOSfJguEmmLM6UVuiDsAbg6JE5Rd5U143ILI1XrIvleN7xm6HlrKs5oREFR5sDVNm+bgQWoCKHQRA/x/bCKBMfvIg0bYNPCoIfIx3OP9zg/33otXcedV3PmDxJ3eX/12PvciIEPYHiJnqJlZtk+T2vs/30GAg2SG6s6Sm7kUOVwGGofE1kZWf+gImbHLixQLpWTGhuTE00SUgkcQ0EOHGcVF+f27qgxL66Pth5zdmnrlIdChJuBTVK/GQj32olJqBnANvv77+xogabLcvHD47mod0OFbWB46oLagIAezwnzOYNevic2twiTgnrzHl/4LeumloK/6L3RLqGikGSC6JjiPOuJIlaEE5Rryzyf/JMOhaQwBlAQfx2nA6JCU3hx86DUltXbgQ68XC1PB9mF/1bmD3RH7vREvpDiV7MKpnN0prk7eoeaL+Tbv6ADy5eunz7+f8dePITmBpNznOY9j+FNcQZw3h0L05E0hejfhs9JnKhxzBRHoCnLMEwQjtA96gdG01J5+89O970fIsfqQvKaI5OYGP9GgH+iLEDZT6+fIpbU4WVqEmwhUKb5Na34raonyHjPL0AxOqmTTO8HzQKS7ksmjFzO8Qzkj/TyTswndoUP+yeKZIBh+J+rppKTAKccSlEBsO37U9pwkJH8uz0wMhk1QoweuNH/3oDioefB7rkbau7sneayau5WMO+Qur8evP359/vL3fwIPQnVT+l9/KLJb+Zu8hy+LiTc7Av4z+PORGxOHuruvz9KNzr0PeY3W6U7/XCgkvdKtUrDbY2Li/T9bjhYG63hfN8GbXLn9ykdl9SVr7P4urLhd/hQ31uYQ3duVtcXO+kb/fXbH3N+vVvC4gD/MDRpP5923EUWQXonhuAef8U/CZLyGKfzzhCm8hhy8hhy8hhz8Tww52LSCRAAm8Dhnhcl9zWMyw8iEpWj6RhqMNI8JFAzDugnQNblZtUR5C0N6IWgt8M/GibjHU/qPn999ffnx0/Pnt+eSy1iZMsvE+JQDq298WVPKSxDg3YG3lb479rqSpdccy9F5+auVM5hHU+8xbAaDvmD+EDaDVhT1cMjSSx/qQ0oDw2bmm/UGel8KcD0B6NLWQmRMtRC5zVg0Km4hVIwtt+88NCxuHuxE+10mOQOsAjg4CstSICeARO0BDC16bMdpDVhe0gU0erlqwzSbD2owN1pbrVL7gZBobwy2IkOZTUWw7dnNAzSYtH6AlxIZna8gtEmwxSXPfQe9ipBOOhWbaopzkPC8q6zkVcpTGaiuAqOQLamKehWVxYnUvF8JbNODQTVqichn2iH4lYoBKxMGE0c7KYd+WfJlMh7ss37nCx1UFsDGW3NyJVMeejlSVXFv1aM90UeoK2bMLTCsKhGxNpXLdcUI5Xg6AqA1kzWW23CTr7RCS6mzGjtuYaFTNEiyAebGfFn1ail1flyfGKjzCm3d+wpFD0b0KMlU7R0ZXqWTg8FamaY6K9FkHTTZVzNGZTVZW03dSxagLl2FgWwV5pyoGCNKwjKwuI8Iz3Y8CeMCPnNRsLiWgJxBOBlZYgI+yCL0UyUUzJU4KVe7alxKLIUabkbvEHxQouU7WIOJ5iFre5p2jSfQqvHCEj5CXdpH3CnFo7gcZ0m+DQZ8GwK4NrTwlzqiL30YGopRoSOGo6vRiAh3UH4N6g53mevJ91nys+Ab3Ct8GpyIWBn4UCSYHEunBe6gvVjrsS44LOXqxLrA6SGxYE2/LNSlxFiXAQ+K/RqNNJsRBmnL61VnU8JbQu/fABzcJ6+/oyMyxB50SQXu6PLL6o8XHaMkU7tp5OT1rb6XqAm092vikrOUZGl4WujyPrTyIcF2EdNSBmcGhHIM96vE+3fBX0PZ65UH9xTVnPBseC2sk/BsYh6C/20vB7/u5avcGcBwTUimQVb3goP38RrvIhh++vz3v+6y4akYR5edftVZRau9KU3DP63LL6aEUPZYUBB+6Ffw3ittqbny4Q/XPlx19Z7WY8BueghYd9gkRMLLSfZiP8vB/BjNm22HOWBDuUdoNOcR86Ervv+E20kC6H6RZxjY1UEiZmeu/v0AWubJ9KMeEVMdO6iVxtNL4RuiLUdAb3DCI4OEBX2fCPxehxrjLiUOTmB8Lvh8gde3u7fmP0zgGNxj0MnNZJeY8R64Q0tuAo8RZmXohuYYLMEdOlGXrJvZbhnPPd6/fPnp5eO7UyCOWj8l5VTy3zX7v3bforc+4Ai7Iv0hOEf8LqgjgI5a3ALoCIlODsf2WsxgcShnOLAazh1LtYHJnVYfLlNtqCsd/c8rq3AU0BGz8MRtUM8l1VvVWezkICXFFhiIooi7pO9QnWtsVQCk6pThkSEiyFqdz1Afv2VBPYDzf1KuhhqoYGsMSI2KdHHIAgDK0aTDcLUyW3OuV3WIj1CZdRErkyYyT1aL0mDF4P2vX5/f1pwbThhUGipd82GELXiDOkNrAh9pFBQuksO/ahhMRL2m3gU80k8LDxOX1CRm0MOoJitH+U5VnaFDPWlpp2hwlQ+Y/6N2D8eUXis7jik7CZMilKUMTlE3iMVVZ7Dp4T4h0mEPFeqkkrcxjdiirihUTc1ieZNg6mAGYVfUZB2+6rjSHpKRNPyx2XomLgQ64THplNAXV03QWivRBLhozLFSivNPGXmqlkLM+ikBeSr2Bmwkk8K4+LmUa6dkhIwV5ZsyDRGVZnlCwApgVz0CoiR05LqFZCRVexk035I0V2feu18+f0rS6pcz752UT24zCXRNh/yvv9l8STmNzCHzJaZjEPZQ4Arcz8ocee+svPLdSnBViGp2LCO7Q8wNL8MxCyZ9eCx4BdHldThmwWRz881+RZus73OJwO9DChyZkILpxT78rMxv952zwP+zXE8pJs7OSeUirVA7LCjDbybIq7TcE8fEFHzSE8qZXBF9zsDDuoMAyn7wwIwYNxN7FPaEZubn3+03tEYtn+Dg6ABkmJ6xPqPdLqBFzA7EhLcUZBMxKKU3AU5WdiK2akkmLRGZLSii4Sz/PONs7h1iazp9vpkVSsE4nFPX9OdP//3pzBXtVML+cXBH7+yKvPWOJgTJxY3ylyvf+eCO3NGoQTPxkI+JvfLZ6o6WePHpY1IJIoC6gxiZzt8mlyjHvEy+WcJI+IqYYsf6/hhYD6fA+pM5djATiPLcK0BJcCOJZmAzS/rGwrJJ5Foxo54Gk2wALwYVzUwzlwID2eAcDs6dtNFITKkRw4CzYwyiQt7P0xMvseCwehV5JAASZX43udASXCM6KTKsGpSdRHG9qRxn0I2DRODPqDJwnbqoFzQHSTFJ2ElEdKNBWQf4lcxBS6sH7yKjI9iEfYj4VQEXUyVdi0a5V6gIXkGKJYqdHIAx8Umo77mtW/SOa7gL6A4YCadl/8wCKS8gw0oSaEsWZ8OMAqbL84bzHNqjX6jSYUX0u8hiH3d5IN/jLI9Isw7DLyFWvdWQiABqiLBF3F57nwTs8VQ+2Sm5scjSBFHunBgl13hEBHrY96REjUdxbihSoQTXOks+D2PMMhAzathDLi0aSrp0WeJpvtlPsyvfv33571Na1JC8YrMStbjG2vNK1BBuU6LKY1lxbuRYgr6RZTHIsshjWetRkHX+mD0U8yS7cEystKjzVQc5FgW5xz1zqsMb5+SFE6kFxV36o4ZsUk76QctWFKzFj5PYlc1TDtNAGjbkWURgPMvmkW1h/hVycxFG6eI5vgWGkvzhNRdEZc1clDSLQnMiiH9h6vxV2FFZPUI9qrI0agZjCOj9BUg0yauJJxZDM2Ac7vZCrAhCgbwxvUfmxRgC7pOBmBcxhBFo9Aw0ekVLjqOWMy86GPRNU8S9GIduzi6M3IsNyL2oQF8FUj9GQ1p7BYhAgxU164dhq2qeO5Odk5GtiQHSHhn7gCy5+1NiIYKZpXkDQlpZjgFJbatzfE10lAa4h6ZInI6nDHlLWnKa7ldc1yRiZXML5XDjuaiRo1CDN3JSrlv8zjlPTqGgKpb7RSBI64we48kNW3HEkwA8UczgUQ+4BiUmdcsdYCFcmB463R2es0IuAtdVgaKr8ccTK2Q8skLaEysUXJ+wsRLLLRkfchPSYPY7vZ/odERcd0Tuwgx9//zTuaSt+/I/7dxko8T57unru/cvaS60fBJPamcQ9VOu/OW3L2+eE0mcwJASlAxV3cQ4gb/xNzJOxt4Sq+tuSifoIiVsOajnCaiuORSrS8DZLhyL1fUG9TzHLMki62IrW+9ZTnRhEHY3/zxz6QoF0UfOcRUB0JJcxrxB7tgHWeNj6m3NNeVOIW/FtO8acwVnC+2K5jMYIZN1JQm78hzzGSxq613g7qlBIVfmhXtUJ+RGzbje/8pTrlcH0kljZXGo+heKPYE7+xQaAdngqxACvQqZ1SmvQimuAjJ/FUJAAVkbLiLTNDh56l2A4fjKpDRbuT1NK+/kUNNA7I+Y4LliwICyz+fgWQ6xfx7rbjWiEZjr6hhRRYwmtsR7MuOXYl1mirtmOYRUc84OsozCcKy0LhRHVvIqVH8QQ+FYpdslck4wh3WzH3gEOBPKPOrs72dakUpKD3ILRRJHznferxN6k5Q3XnGoOgsw9cFyNWkVwvcVVHFOcjlI7tHH3kLqsjY+HJDVsqnxgbcfOzOnGK4vL3uLP59wu88gnJtLECf7WuZ/5c08FDqAm2M8FHqci3iEh5L2SrLjVX6Oa0mSl158yJys3PEWzv8Ion0oP4dufD30MWuZQ4bPHfLiM/3MHOC+SFEuffduJ3THenzqzxNJD/YKkLlRRrLEaUpITEvEgIVT1Dc6GgYzBCGChcBVs33Te4+d9+ecxYcpmmR/hzBRP0B5pmMFcA9GycF1DGCNFUQxx8q/l59gAki4x5IURW6oSERNblpRgg+ag+c33dXg15h6SZXFXrvlCbVU5njqFc0pRgsCaT4Y7tlGUdRqkw7GKlA7sYuMxo+DVZvjaAGRIkKTv73AyqKQ6DNoELoaVqBq9ST3J4G1Sxp8zZ8+3H4jsfpA/t5W2wFs26Cwl6U7FT/ckmujQCxxVV0UF4POInXEGdTgHJiZb5zCJnrXBYWunD5wBaawi2XsaGz5c63IQ9R9w+DOCeYbnTmh56rZnDDidk+rYQbLTJUl14qMZDDidGwafSTFKxulFgs5O6HD6T33uO93zK9fzuVZT1Gq+wMf5VPiye8QX2fcLQF25pAfDDqhm+gO+cGEK99ddYRR8RDcijNoHLL60NNO5qhFsNzqaUfL2aqrl6Ps6swcTK2xn5o6o62SXwCgQCGjszI5VziQdl1FtCnnqzrwodLZVYSAeqcDBIqrD7rCYiZvCxfHr2wxg4NDsbMob2u6xxK8QXN0k/48wEg9a0fvhxmTBjgQ6zXCBqSErfU9pPRJ6eUJvB5v8ZEG/bjOyCqlGgmypq7IHrogQUc+bi0QTCVpIeqjJZVHjBdMnaHALaTOeWdfCl6jbQeTIXhS9EP1OoUd7SKvXvZJpbAdCaPDtVBiUzhLClIzQOl8moBaUnmA4Ss1QKgmZRVqtyIqAOrSNRoACc4TuOSdBkA0rETZKQrS27bbDhQAhfnU7XYkw4kv0QV8OyYxXVGoxrgMtuDO1MfOKbL0RfgOzlebmAJP5DzRShqEHOJfAppoPK34PkvoweEKboOm0sLsKD2wYRK9QVQF+1DUBPhWqb7XtWyIMNA0AeWbGg7SZDeRDQJS8G3P9DChAQ5aGo83FGmgLRlopWZ9K2XnH+1f37475cBqDHiDyCyQi7OJsJRWfyDC+SJq/BrE+SrYfBUlcM1nf/VioyOp08debHx4nTSHXmycmVsw1cu0HJDDbcR0BdXru1WyAVFk/SyLr6pTc5l4sVokTuBMDGFjCT8gVlQQoOTvJsaHSmAM3H4oJDlyBkymtAtGqhFZnMfYrurk1qd3QqSrFM2msD6JYYV7m4rQkCyAiKWuRg5brAlvQ18icu8PqLeCvY0WdWkoBE0qyiFlsJvJpTNMhr3fItx/D6erPjqK7kWBLFuyZkt0XFGaFN6OxeM1C+onC+rBQjUjRsrqAWiD7fVNw4bu1KE6Q3p5ZfA5MMFcGPb+t7h7YLrqUAXVJ4HRSX0SJOVzHbbbJdNmQS8QedBMqheJamCnXbPJYfOppvuq2ax82LNNDtMlm8OhmulVzWHSzaro9hB2CxrWx3c825MLIEiwCMnIKwBaClHyvYOCDOEaKXePBeIYHSiOys5pY09EZWuSZnzVR/zqFJ/w9fn9KRcJvbMISYvyJH0S7aU/my1zJcBeZhLkIYRyGW/CUEWF/TEQ1WAwaCQeS5cJzrDiWLZMf+W7BYcgre/6+a2vPaBXZoOaHQFQyqOcNsmQTUrNSQZzjg01JrFMw0nUPS6OIkcYiXlXWzDioMhPTXIIafCZ2Ks1433qV0r75GKBAGUiMCO+9HHxoasX56xFn5WY867qfoyhp0Gs3TA3k0WaqP0F4UbLPg5iXyPAm3PnnEaqR0ECY2WwRjIDX/bEe7evSxhLHaPgURhINPWQk/U1UKBFuDHSgpx3YJ6hmdZ5Z1iDST4cdClOMenMMSPjQJaOFkjIm4MqqZ2YQ4tONyOuNEPDOfeovTx/OBNfn0DgzHkl9UJy/YZQ9UNmXUqd4Q/ZdSlRx+K7pXMcdtQfMs8mRdciK1CKGqxOIU6fylgnGsikM9XLi9UPuWGauOpoHjxIauMxo5yMYZLjABDCUmhY340QoRsh3iHPk92Mm+UO4ZkV/AwBLIuplNDyMR0dJ4PPF715un/VBD5rwt1j32MPCNbHrtbpXttRbhJ9/Ht/tISWNFkUuy6DGTp3/39+ef/+0xl3JJMAxfZ/spz6jdH7C646oA5tkQphITXIa9+t3hHEBpPxkJt1ILcbdewdoffnmH8Qflh7+u0Sh0a/2T6QwG6asoQyBZ7ZAkWGgNoprTIq40PVOdVCQL/vYP62Ks3llnoYeIRzjGfgHHEIuanuMNVRA+HuTSdvBtONrg3PogD4xwx8XNXh1QkbwdJ4rgh0sif1qlsy7HqKCXKucdZp9JdooA08ZMm5x64+jYMvPw3+cesfN4zRZ+uPFJyU+7c+ru6pV+Afnz6//fD8+e9/fX774d3H/BqElO+nPAglnP9b3oRzQoBWR1RT4pZ4nHgbGiR8JMyxvL4K+hjDIb2URDll9eHinRARNGHCH0Jdqcv9O6SdaNkiJCnJcluGBJR7jZTUVxzsrhKre1e1akt0PcicWHZXDEW3V9Ja9JV4t4EvYPn75P9gNkv+ZmAwhtJyZ/X+YUCbDMHLLdprJLf1Tq1U35oStshM6t6WSyN7iABqpvcb+MW4rb63Pm7g0ZjK+KxGTHEBbqB18VTNOVY8BWqhblabPyBu5wHKM7avFTN9AC09EhsY95wt17GqbFHxInIbpLBBXomq8ehfU79I1ZRu5hXcwNYBhXram0rMDjuQowfqLsCJQ2fMxvtSey/h7xUNU2HFmgrbrvCpS5iiuG96tDgk8d3h/Bb9FcqF6pA0iFMYdD1sfSIN+9vgA3OBNDnYQOwOtvG4pHiwjV2caqMQahRPtdlvYDecaiidnWqgTfqvw6bUNRJfA6pvTRlPtZF4TuhUG705y061sZuXi1O9T6lW7FRbsUlw+DJ1d1uajqRBZ/HPMqPnlp6YalC1egNkAuyJLVlwpj2xERMSYU+c3CiHF/hdQ6GevCZAm0z/Xr9Q10gZ2XbolyDnY1F5Vuu3SLsOhmc3gxuPD08h3mn9QNEZqVsPAsRrqW77w9HbFaqGMk/du8xVooSI/uIyV5LJ1cj76hyh/IawxqmwryduFuGWay1abuj5H2BdobAGL/a+lBJPtN64dR+IdXKhpzEHuNfJtdjT5lizc53GRq91PdgwDQoDynI9tbT0VUwBsKjPw6XYDCfUKMlmOMkFuHRDgctj2OorWznd3AeH72wp5cun60mAb4rHo5Y48Taiw6OWNJrRd1KjFybuA7UBSHPRl9UeecxJxVPs7WOICFkGN40W5VYpSbcUbQQN10QfUgekxE62xQbtpPPiCyuwfJbybq14Fpo7KiKmssc3pGToheR7oHvA8M6EeNeb9+T8IhELfg7P6sax2MycEEH3MNQlK186IyELmEKKwpjvLeDA4Yhk0AuCr8aYIEtD93o+wxa1wioMruAhkIdNwGgNRe41GoX8Bmg8sKwY1YaqNw58S6EzbKf6TZKHFLqga8JzBwf0Zog4gPvIuO/f/VRk3J19SmP7OV9d8T4i7kIuM8dTEN2EHOFRUaiOeVlGcPSI9liSd8pfG27KQntESq0LNpNSiTScOqdB636BNGFmgdgxs04VZqNlZm15hWfsrPVFUdGys9bSfid2Fkpn7CzQZpyRAu+XCyTOtKb6/BVKAiFkY3Eotdf3JA0m5GPcv1VOlEtr+lY5Cqugt8pZ5EUDyVq1UE/0XJhYMHtS5fELBptEJBkq0mnDVmcDTGUEUiIYYM7B4zw97A4lDZCXS2nPUjjk5eAblZ/HSFxYrQgKKy/AugTUst8g3GTfQAbntz7iu2ChcXq50LHLqgant66SscjGehKg3EYgtVLzqQtzeSfAOVtTElPjBikGZAeVwlhqt9wGHqLlBq6Dk/U45cJ+jgIqSuoXZY5gDypfYCjTZNsNUngojiUOtMKX8jaq3iW1YfPs50ZiuQ1ULoUYk72zkNOhlPajNkUmk/SNoslNNekNUnA0q6HEPL2g9hv6ow670G8UKQIRFPtsRUq7An7HRkJG6lLIu9xkcAHf26bLKQgnDF1OQoWf76BiV+4bqcQqVICBybQKQNikaoOA5VzYDzpu4IIbUPVTZ6Ki3kGcl98oAkVMZ1cFvEmH7Qu0TuNVha9O4aVF2Z9ThVfiiw1XeGlFQh8qvKBwqvACYqfwgrpbhVfTmUHhRZIj6rtgkJ2+S5EGdqXvUrHVqHSMIJH4bbH3d6FRIcqF6paChXLAlKY/4WKS28BTPVHrLaTcBlGLeymkE1JVt6ahlEuAEPAM35TPgVlXRdD8TVOpBstpOyIJI+qEK6VhDhbF0g/6CyDW5DoRdQoA9Vllljo4fIjixtPaKLcpvAIAoVg51Ea3FTm8ZFNpx3/MluIxYmBYioEivsqBr3LgXA78+Pz+96/v3hT3R6lEdmqowqD8IwyeFZX+W2VIdZPFM9yYxhYaE/qYi6WjcMR4QJC88tEyVA+l3WNJJupq15t0ANyo1BonjfATsXCmvapQphRjdqkrlOk820FZKOHslWcDcxqIiKaAvWmWaRSIRbPLw89k5UUrtDy0ozeMZo7Ffa12WhIX6Ia6PIpH8FWuLFBlWW1a6qql5RriADVIloDWU+vyKGvJCtWTKzOoeU0T6yaDpKgrDLETkQy/akOcEdHcHjszyG+/SpUl7xD0S7YGGtnMl1mJtHm6NJdp08Ajym4YDi6Kh00G4+mfK6RlRBuznsZi8ChtuA1yYxDTnHu75Jplxp7mbLPMMfAY+g8VKbI+jBMIVAn5/7CmQIAOsjknJM2HAfIl4otQLGTlKRKEcWNoXaFYt+d3CNLwcD+gIYBOkm84ST1sDAdI3g1zJ4XZAMymPf5CF8vG/PjHgMap5vRHW76pWOyVUYTSTkqhmixaUGKx+qlSvR42a9OlyWYVJJU2m1VYBFFwlGpQ1I2da2KZZICGSSH6GZSo9wqG2pASN6uj3oK5MIBTMI06bpDWsX5SR20RoQHEUShdTF9ATVwKP4L5i2gjSeKuoS554o8HtCNh0fUEvlJl0IrEbUzhAXtNt4ootllDRGZxkPeAloVP6LfAGSDhM1b34qnwGRXe6CR87oURWC4481A2lT2BWGRPqkVGJns2fRlkT+h8K3zCIDvhEwovCJ+hqMpm0iKRuIgZqwR9iXKhuqXwmfyaJCa9mzg9EU67BiwPjUci4eE59NABqbuU9jXZ4mIq6RuVSxEFJaKpOrhNk4Ameh8tB36kSm5jG5HuQEi9GywqK1SJT6u9dZJEZXbwgiyCtKRvVHZk8tRbCJKGUj3J/we0fKN0t7n3W+WN15TBGyuulONE0VufuJyWd03htdEcrylhC4va1hTaYNz7KGw17EMJbiOp6o8ZSWxxrqhJ6nozp4TNIeQ/QxLU+a6eza4DgXmgiM2ivKzs4OTVaFKdQS8v5KE9cgd7jyMpfrng6RQ+KPBN8WOJpIkGtMS9FJhk5TcWlSrR8GA3NTYiGsUvuMjpotMoKmRQxzpNHmV20Mc6i5Z9+EbllcTuGjK7hE2h6DA3lzixmZV2zInWJALaMUsHtdGO2Ugyz6gdsw5tEA0DZQ11mrRjUDrTjgGNqcGsh52yKJ5ox4DYa8ds2Oyg07KxqFLnyjEb0UrTaMccemQ1FaXJlgvl2GQhuLY/4vEa/UaA2DsQGYk2CnIgMnoLduVAZNymJPcgSi5nmnsQQeHMgwhoUw8iIPYeRHvDhjsQGVPsOFMHIiNxd5IDEUxD70AEpZcciKjLw0PfjGZ0IDIejaDgQGRswcLu5QKjyYw1igXJcuEHsUB7NC7n9OlouxBq6UEE1M6DKBmrPBcLjC5uRVOpwBThrJMJTPEu7B2ITOFdZg5EQJqYlXOmj8uUC+uwZLi0gfd9cAgg0ujnKSFy5AJp4hAAxM4hQAtcfXQIUB5foMEjIN3ihnkEqHpEe48A1Rxc7hEAtMkQyKRwgcSXgSwLa8ro4KrMxME1qf25g2uyIq0cXLVCvQa6labFc9xtHQovua2/+pW92hP+LHvCly8vX4sxIQlPttgSRPaJfbwt4SCCPzh7HUmBJIy7xQAh4k0GiCaS6Rh0v0ZPtmNpIzEpdzxmgkBE4Zoe4ptDrizEECUUAT+K3xSCC4qWYEo+DIUbK4vflW/XUNofDL8BeDh8o7IYJohTjBQo1bCKmgdKAR6NG1TKvrpalTum3q0+kMW4qClrb9EfOpcOShKyYQiNShKsyYOGCQohvQurSKMTjzSodQj5UQd1svSodbABH1rjx7FRSCyInt6g3j2lIlE4gR4DDAK/oiqxPHQGFyKA6gzjs8QGOX/NoMfbhwDaQNNuDBEBS1jURzfYkoqxJvft9AgWsjSGKpf0M4dWEUPBeaD7LqIn9BMZSm6v8MT21y9KSBts4GwoKpPmcbiTSavEgoYbcGeB1jux/Q67g7tXDlEiwWwN/q1olGYErgfLCKW6ZlBf6FkQyoEDFVdaMXiBMxYETCQTWe2xFxSVkUv7oddUmpK+Ubk00MMNGmuvUFMq/dbnTwZaugCGFtCLheycXkJa1IrsXLtq8Y4ZtDNVw01g0BARSNIMzC2UVkhEz5x4HeSyVYE76porFMO0B1TbmiIZBgit6orA66LZXVN8VeEOlS0JtKl4PJ/ZHCi1Oaa3lch+OVJxiM2gZ63HWDF4MdLl1af6DpvHLBBDHs3sylplF4WBVhD2UlvV1E3d9HNURVlM8GLHmC5NG0pSS354/qwtxvr582cFAho0z58pbqL1EIGuHEp1TYs1SP6USjkoisRDtzuMMjMbxpnaMYgOolUNRpk52QjajfLRKNabRvloMGTLWSZQK0bqZsNSHlSwHFhFdiuPt3uaVxIG+PW+r4WjFx/ud0t6h3RloRrMWqyoz3A42wRcU2MBSGTCJwGx55MMRTY2GyWphdxyoySvXzdsFG2JYSA+aZdEtVrwSUCb8knaogco8Ul7yyj9E5+09xb92kY+KYWWDmySUVQRsklQOGeTgNqzSXvtaBYkNkmTznfCJqWh2YFN0gZlP+KSauH0va+0jkfSDrUBxCSl+bErJslIZLVMuyus5UySMejAyJkkIM2YpGbeiElKbvmWM0mpn2rFJOly3HsmSTuMXScmSVP432TSXJOpApgk7WnrEpNkGvZ7ZJLSwZEDkwSHrGeSoPQSk6TlFlZHV7dbGL2h6T5tTm7y0DXLk6s0LnZzcpPhwQ8nNxlGFge3kqbnVikKMcZzq4r/ETu3e19BiT05tyqQMEEHN/k1a35woXB+cIHaH1xVNbD9wVXNSo0HN41NDwdXCXKoopMLpdNdqOhxobO71+4sP7vKoVfReHZVQF8qOrsqou2Izq6W6ErFzy6QZmc3TZ3hZ1d5lOfo7CqHblTj2U2Gt8DPrtK4f+nsQuF81jT6UNHZTUrXMJzdFAK8PLpabOPJ1Y2wQCcXSi+dXFSkusHRsFGkuqLP6xSpRXPBFKm2ugUOitQEpjxRpPJiPzUEkhpVLJSovJ5GiTqQTKPZtBeUqHWATInqULXZaBhx8pZKVEB0nitRM5UrUck/plWiaiYXoRJVbWquRNWbXipRNfpaNUrU2pt+iDiA+yhRv75//vLl3XMJ0JUuS4hVkZr4zccrUoWwtyhSozvkyi3/iHBg+EQcyyEfzG2oVUq721CrKC+sOAZumAI3KQ8jP0hIro8t4J6E/RJWxGRYyNSUXLEcOVBYnvHBJ3snyZIWMqh53ySmiCVvWlaZpFhaj6xA6F1QkVqtuqPa1oDiKxsqoPN7w8iMuYJMzDtfy7lC2Si6tst3KnshycYNu2RL1k15MdBwMRbJkJ4lkIMYypIJUAU0aqomCSzSrDIjmJdHtwq5P6ygQ7aUOyU5knqcWgMZXkr2qMkli3+UM89JN0BuYVKZpHR2qFqUoGQQJUslKJtBs1uKl9MBX5WdZrAupyHHqSjZQvJcbKb3JEPitNNhFxU1poATjeufdahG1pL2hAKfjVI8OOYp1EVoSTuMpK0g9aDrTZjHvF+VWjRPoKrcSyN0yxcw/totSpbHU56FpEFAN2cFjod4lgtHFNHJVDQRqEbPQeBNggLCSJE+0lla02aT5ERgg1LaO5afOL39gTCJ7Io61ppfNXudmOKomc+1Sxh/bkW1KTMQJHMXPcclbbWzw86Z0xQm6CK+iKbvMhUHM6a427e/0IsRN8RJ/Ynd0uobqBcrXnctZ7DT9IgMyXyBXl4RSmYlQrmVwZ8NkiVKsYs8kRRNjlcZm4zI+GHa40nuJGWTx5zIydpNJrPYZ7JAahH5Bv/5XTZxGt8RbbH76Z4K9JD4OOl+JQzxAxH8YPDL6t7v0MqRNF0QRYKE+piE0Z/eYWZQXbNzqrapmjIZcz6J5KBIulotx2FruJEyNHuVz9JsBcTviHBTYvH8ekNyfisURKfEpAMFzEOavWLx1lUoWQxT0C4SjSe/c03kEr7nu1DveCCYrRaMSXdTxIF2aCSM6PMhSiIP8NQ3zY71jiLFuYYg7ZUAum/4rgZPRBTuPSw3FnePcxvRgfkzXfkJG9IK1IIbrZpgFoHis3DDdgw5qRG8GEJSgF05uOXJCBjTggTdHfnR/VK4OL9ZDPpEXyClq6nPKJaMBWFBS8iJcXUFN325SFzecimwbHH9arvZqySzsdxCsebsvUjKfe0D+G1NCnuFOFSK/V9T1ld8Yo3ZcvVZ+wiVQYE+I+fHpVh+HQylwjUkJOghvXpwejG+hI3v0TQAMlKrYqBL0GOASNK+xdZJjZLbSyUpBs4OWppgfOP2BQz1zuKTqhGgvPfb0pHOIvZp25Kgstp8YlGeRKIVUzVbjkmCJYtaiiFre0vzLcJ2hNxH8VzuI7VLd5iNLlo9bz9pWPsQlXqDoezDVkSRXkfiI1K0nQqHCqvb2Fq0WALNKjefZZ9kGrPYiSl8wNoVcb+b6vrMtqnbb3p8/WmbuhRy6Mdt6lQ5U6ttmgJPdBz3aeK8nR02qt0lqkbM5TvV5xQQ8y2587giLolxWwkBs1keViKNUrENe+dNmSeebS7sI7WfNqVjQ3OwnpNdmQIRjBr3ZZJgohp3JjZ1cWvKBLgjVwKQMUV7srgm91dc+iU1gfS69S2qaw50fo3uj5k3cXKPalMFrsUOlVrXtPZsi0otd9HHD3tUJuBNDIgfNqlUyXl8Ke+onSOxS1lsb1I7ubpYJ3M+LoxB+XLcqlLURGXiVOY4WILZVm07MOxVmtL5ZpV651SFHXdrWiQL1t3uIu2Wd9iv57TVPz5/+PFTyZ6TuMo09z8jCtwf4PMbDiRMuClbgrsNOwT3YDCHXHelRL9kdSxfgr7y4Q+X5uRgroQs49UTOg3412YW8O8IOMNZDPh35lLAv0PLIJi1I1l424B/gkyeBfz7EqLC0CkEYrpFtLRj6bxLSJY0DtW0wKERqFs0UwOrh7M5j/53k+h/RU4l4LwFpcvof0UumaC5h+q7eLm212PAXEY2iDxiLk2AQ11KdBT579ZzWamShqGa+hlGAvUpLBKnBYdw/uOuDBInstmVPpCfD+1KKJ13G6jdrgwEA0+7Ejo03ZRR5LjQfk9GDVZk2pG1bLGserPDboSq+83Y9Ga5F2kKx62YsmsEvhX3cVszbEUonfcZqP1WhOq7rdj0edyJIeKppo0YBcGO0kaE0sUkiq01vRgEZLADVkfTodU29AbizyfBikCUFU6m7EK1ecVbcrENoXODvzHoNGktHIVhQpypptLW96Xh7C1qTv0Qd20JrUFivLlpDH0Suwp5RUppP2SFJw++UTQR1VHSYviAjBwfls+vQNCGEYs2Bf/bAYs2xf1TCDcciHZm4ibcfGZSrJljokbw10hiXtmiOMte/Thc8V0rPgkWU8NozfPhCHTfGwILU7wFz4eTwi0UXDEWrImO/GEwXrg1TYLuN7mxR1xA5+mSMdgd3WABmUXkcZgnZEHKmHSlOpVdJM3ysVRin4/FFnCCLh+LwitrTMkiSnBJG7G6S2FmCFithbN41UqaRdyugbuJNGCEQnVLwghfrSNGBBF8NUSV80BpZS8ESo/oScYje+cxDYrB6YgDKIqJaDD1iA9hZeNJD52xGvO6jJ2xFB1DnbFxw+vUGMQ0UAxJu9EPqPl5TjAO7hqp4MsN8A+OIv4Dwp6bIabXdnyNGrzVTeThBgbTdUiB2GK1ULfdGVXgJizzsQjE1mrzsdQsX30+FtPd9qweT+h0+Cbv8r50HE4BCmdwCkCbwikAkSVk8ehB2iRkMe0bapcurU1CFkG4ZE1CFtHhkvkFCLBco/bCcEY8hcYhVlEAOYg4bUYWXRikBcpi3OKIsdg51kNCFiidwykAtU/IIoZsLAZj1ibZWNxmB952H6iyHExBRQSY4WAKCjWSM4BkeYVyYRHW6FVbRKVNd0MoNGktCYBrhlbpFe6+JAzsQgXvxtC4UoMirZZWD2g12EtAgpAaIeVlATcvdaL3Dgl0aoG2Ekiprywb4xWCFCyKi1JMiwG7SwqKmxEYgSMleh9HZF2hUFfQfj6P4PRekDx/q2cW3YAgcq/2RtMI+NjF/I4XM4CCgME422i/QrkG5WKzWYQUd2DRrYUlNiwMCWjh7MQNFa0UfyAw9XCSVSj9LAeqS74QGoUa8I+XlKRQFozE3zSVln2m+UxTasAUo2SHPpWJg41GmOGz2cTiOykg33398dc3f3/5WjGMVX4F/kgdZFikfbmbDtL523SQaBQ+ltrbR/J+tYe8X9FGFLU85v0KH0pzTA8pq7Q3hRtEao83mEFp7QA4mHylrF8iDkolSe9HkIOy4oQxzEHYh1PQQSQS6iBYHzLq6uff64/bsyPXKKDfp3CEGavXD3iEUtYUrD0gIRbPEAmROAIPJoxdEa+R+PvdVHiBxMEHm31wgTRUSOtwgcQBCJsKL5CW4ITJoav6LQ1iZvLpCprJmckrCEJjZQldK/pQQbjEagD3DRuZkMLoLgQJRkF0rQpcxYVi7G0jFc/cB5HlkhOEaWVpr0lqTKshzVByz/JumWcoe+zpQbkTSfUuS+h21vh5Uu6MyWIiGQQiRkDl+iNPNZTmoMk7qMYBGs+zDckSOQ6KXDhJtbDtEu0dCXmnpGXcVF7r0NP6WbGEhIdsoFAUUhdRIkpT3CCc2JlKXo9vvWicNGIJR9fN2he/TN+bOWcbY1Q3uwX2WQL0MNdIgsGJunCpODlW9jy6hlioAQXXbX6OEwZa4Vxd7C726Nv0rYa1ZBZge03/DINcmEzPMIMS5mKA+CbSBOE7CEzt1gBU+oBg0I3g6T0k25rInZ5S/DaCp4ubHtC9a+FcB+8Q74Cwvb1E8ZUET+rNKHfu/XeBy50+YjQx4Xonz3w7h/UG0gTVe68qeg7q7QPCDpP23tfY46n23qPRhpT3XlLAIyF6Q+nCEkVwFw2it9dkkiFEb+8Jg2AE9E6RPXLA8w4dpqdG2w46Zq3AvK1GE4jd+tg7pEwS7wV9hZIkEQ7IYUkIDniVW9dCQYNPsY2Yn7eU9jtQbo1Z06FXF0YBU4gzlJZliYbBsdj5CJ1b8RtEGTOcY3UXSDIO0bAJ5VdSej+DKK1jql8APJkf8H2C1Yjfv6+jGnJq1EJNyz6o/v22VEFWWmcZMw4tHnS2UgLx1dEyEkOb6Ww1mesawxiUzgxjQJsZxoDWGcaMJEB+MowlPXpcGsZMRcvvDWN1Gnq7WC28ZBYzZmUTM5JSDzaYBgLzKjY2sXZSuE2MJmWQ7bUD3fIFkphXtigebWIGA7zJJGZkk2GEEC30hVzyYcwlD4oMsohB4dwiBtTeImYCIvg3FjGju9yZZqE7rj7cEzkWiL0Yu5cGPUixWrY3nBrz5jWpDUGG1QRQ0IiwWmPk/yDBAm0Gmw+19bD5e6nUA2y+ll2GOTsoxoUdxNSUwc4OUiqUzoRUoI2CaNKo+yuUAQ0Wa1tTuBBKy7umDJpsnOM1hQugVNuaspZMA6YzH3WJgW4qyFchI94flIAjBQ3IVQKORoVCCThaExMCf0hkziaZKCUCQ+q2FhlYAo6mL0MCDkl5MzEBBwyyS8ABhRcScMjQ2m97X91lrtj9T81lwoXKXg0Y/6MNGP5fzIDhLxgwVJxaMKYGDHvRgGGmBgw/NWCoiwYMMzVg4FyDo9gFiOtHGDD++vb56/Nf37x8/Pry+dWY8WrM+Jc1ZvTteD8wg7Kkt+HcIFot9KvZ4tVs8U9ltlCvZos/0mxhXs0Wr2aLV7PFn2S2CBfMFo03amO38GS38GS38BftFhSZDxigXqOkwewW5qLdYma2EHFqtzD/W+0W5n+q3cJctFvImd1CxpnhQsZXy8Wr5eLVcvG/zXJxZ9c7MGm8WjReLRqvFo1Xi8arReM1JON/WUjGm5+fSzTGzrQnUOE/0n6hdbgFuzwcwi4X8hbLB4K0/kGWD4GWj9WH8+FpqW8DMccPpx/958UVsEcsJRZTGEx4TiD2PKf1JRtGz3PasK2NJCkBlxxYTlvCLHuOs270KccJtJl9xFLMJllHbMRUj41xxAbM0DhhLHdZVw985S7UjnaRWjjjKitpZB0tJk1eUwbdB1S2JHDGkVZ1TRn0Dzi5awpnHKm2NWXJUmoPCb7nici1GWKodSghqX1KetlqtdyQg2jA1zGuTYwO4qJr86KzjPQOtLqzjPSOsvk0Gekph2aTkl6i4n0ModYBHZCblPSeUvA0Kek9Zk1fp6R3S010M5xJSnqLvC+mpEf/1DYjvShK30VGetcpGyzm7/JyCKGG0kVGeoNJpJqM9K7AGPRAC7KY3uZAC5SHtAFasEUG6FPSuyIMzVLSu5U8lgB3/RXKhXVYp6SXW1SLlPRIGjOzx2VybyJlnPkxlxEp34THWHOQngJF8VtMfxeGfA67fAzqwoBpCfeuWFK/wXUPpbrpUCPs2IWmSdbDcpEk5pUtikM15XSgBsCqekpBZdCsRwnpHT4oY0J6gdcDJaSXiKsUEOADCi8lpN9ZVQ8HV8YedH9DkMswssoGj3RGuKkiGahKOvsrPr8THWKTG41UiILkuqo2E8i1e7bDBEg0cJAp7/FGUMQakcoHCQRh2FF2aPKmba5xYUK53LPMBXAe7aZH2URhsjCDnhzFHJp7Gz3vpB5S0dmyGST+vcq9cHjR1E1D2ZbGeVJ4fSaBBfglBAmSEbdN0pITv2TGGbPknGImcxYwP1ndQlWtcUcZ5tOHX54//v7Xn3/9MYsy0Wa1wM8Ar3IXUeZ+4oW8SbRA3yhxSEBQBjycvD+WKF4j6LU45BoVFWZeh+SH//Xr89viEqHw3paU+zDKzROMS8HDAU2vAk2vOqXpjZhgL9bjCg3U6k9VLsCEHjfJsuPYK4R0zvtc5wHSeF4gia3H0o0CHH7WlMGTQEBtQLnnlEjwvtLVLYD2QE07mq8voYYtsG+f1Z4pd03+e4WGbFUTdNAHzSNCHxjEwtNVEUgfWPTW03grR9v49vIhlAumPDTAxEJhyS4oVx/47GQHLSDbU+zEXZc8MKWA4BwNQlLFKvLQMUnTUc5JVmTevHCqML7N6R2yAeajWBgavlIBPRciYmSC92ConjGI3pz+JsM35z++Fb95byFAenLP1skga+RBzQ5l02Wiv7foRwb15/dRsREEGEE4NwIFGmLjVlNq0BhZF0DVMna4ILVu8/cSkyLmU9B9IBAn1CDkXhR4Gm2yP7AP4MG3W8C/h508zin9vc/6B9aAr5xo1yN0XNE0Akyr5oYRO77pFCLT1T06KOsrzGXZ5v11EBqHF4F+QnspgqeLKkQ2j5TBV8qcOH1BlLsRHwzqlGjwzxDHVmyUgsZyByMQ/ZiuIUhwPVpTfBWU2jmJmEA6BgSBJa8J3d8FQaFUHWCbpKx0eOEFNj6NLl4BkSeCacCFS8ZcOnoGjp45cfSCAQNUqCoG6pEpNp88ZEh6BYWqOgf0HoMAs93buIJDCNIVYXzqLWYNmZHg/jWcgl7DfE8bnN4ITi97mUJw0TgshxuPgCL8aTg1Q2qJWKz8k44TiTMpXm6YJWBFMfXuRYoDH681ZagtbOTwv6AM3abqLpBsxe8c+72mXJggJA0+bx6zauiarRsVomGreVp3ca/38bQBEg8n42m/M3YaIAgWMRH02pIcBV132xW86s+/w6+bD19K9RGhW6bfgDstREJ5jqTQpx3oI1Mig5eq2Pr8hvusAZrg1qejIzRRRnBis2Ah9/1d6AQmVy4OmNXnjRw0VT/FTjaItCCwO3pPIgcmFhvKKj1BAsjirA2NF7ShNlCJ6fssMXo+atu8GoE1DRtPVutL27ZtLKUBG5dkSNeKzyGiFCvUujpR/NiydZRvB4hNqTJ93Q6YyRaAVNuNjX4CzSdho/xFkr3iFh5xe+INt4XDr0d0qnS16HdkN5YSCCnD7WDiZq5Qht2NFp8ZxUGGMk6RuqPQjEpU82n0I7QKPRI141l2ksOUtZDJ0RYzfpXceqbBmnQN8A8MylWq3qX0QasKUx6Re6NEfRrrkkO/TYM2ECjM7K4ZrEyLWd/7Va3EF0h284EPUaOIAQ6z+5wAV2GG+1lvTS5DnPMQyd2Izbkx458LdOowPRelkY3SZ/goKyn3XvR811AOYDTxSmQd4QgM9iVdNkMjidJJjXBS44mTaiRIjiBOY6eTqUdx+duIzS/kdSMQ2drn16H+vVppBJoPLIpFqQG50DkYie4oGi94UwMjGq3GvedIl8iwiZ7FmLKtOj2LMZRahfP4hjhqjYEExoLtT9dXm/6+QnCX+8bj3zs83H1OSgtquDWF34PGo+P7kjLet3apoiMS0/gZC2xfJdA6OVgnd2ad7KY6/WY365psbprWialcu4X1g5YWdoK6oBoCJ+RRN5TaM0xMh55NpPp9OFoyJYChjBmD0mCnecW1DFA4PX/0gd0gJXBqgVQ9Y48UV5QY01zcRg8jxosbjHsG/1qyOdfo6t38tUb+BhQ3jerJou7Jnri5jdqqiQBUPagGhp2pTyUC3BvADPHsfCt06/XI4qf+eFxlzT9wqGCE5z5NEmkYwzCrpFWI/RrkkrlJPKAzhgwcsXzOUGldru5LFH4t7ZTQU7DjWjdexnD1aVMkvNldmfPG8bt1L4yLu1hbfJWJ1dK2YbUYbwYeEf0HvuxxVVvtPiCnbXqwdDVhlBeODYFg7ehJhMJyhtXqA3p0dWgeaT/0KOKjbmgIaHx6iEo9zSoae5h+V1vyQhJoe0jrRrmBlH2AQQz2Un4w1J2tP7SxY/WTaQ+DuUK5cOqQNJxZC17F/OHRXDm8b2TSQo6bnJTJKuAHEVMhMAuD9mg6QgsDlM2enebvycLQNPAgCwOMeWJh0I6bC2AuZ/aFfduM9oh098SFfWGnwRmlZ1Nr3N+DfQGuy9a+AGXTGaW/p5e/aWBgFVKPFGMtNHJDnBFJA458B9mN3pB5MAvF9XEOkUj8oVAC/a04BVSgvY6/eOK0FOx2CrVDaQFjl8iKormCuPq0lusdFPxKoWOW4oKsaqDjSjibyn5ZsPVzYfeBRktT84HBDC66BhzSBwYNQaRuUBbfQFOFMJwOA8yn4eKZai280WJVFoUnE/gHUXMjdRP7parykT5w7egozY0lKzXrUkBXo+YDcj9V1cuKPohl9eT/z96bJNuSG1mCe6kFXEHfjHOek1oAxdPpGWQWSY9yOqOSuy+DAXpUAQXs+fuNZzR38uUL9JldAIZG23NGzi2V5yXM33o2Gdp3nraFoU035+x6s1+rrQSufCSKi1ZHkvuXqej/mgm2bOPignBwQbivOONcolsijEtCfpwA3d0WfE2q1g2j+IP7hC59VY8iBRnDSAKX6yuutTejzY0ELznZ8XWIqVybKvmPRHE1TUjUP1HC3nXwEi2alnOw3MUEup7x6nYzznRN4gEr3Rvxe8w4HJ5BbR+LtOMIY4MaKfdtzts04aMj/BinsZ6CgU2tmw9C6/omtySkAq6KeEAtsyFGOtnXEU0g4We95LoLgBRpwP7DK5oGlMPugYjsQXp/VwOWMXemzlE1qYfsR0R9mqTV2rDsJlXmiY3SGVVRrFVP778jImuHMuLNegQZ4QQxZCbS03PED2RG08oyom1VlxCjjesIlIuyjVh4aYqao976uDgpJZlfGroHxA4ZZXNWpFOksPYCaFJ0zTRUhgrta/EpZFrK+Ws42+HQo2n/9j8QKLLr7aKRZ6jkX/UTY1bvtXb8CoHBs2SQYAmPNab4pB5w2F76F/omGWp5xgN0oNOo5QOcGRXx9+60+PHnrJSL19Oy2PVHrCMegF53PGKxUHmKkGy/eiiF63a1hHamuMOlWF9l6QKg1ivGaFAdqvJJDOXoU4AUytiSa2NwLBW8FBGzJUzOMCT2zrjuXfZUF7/Ekjw0SDNcYeQrMXPIBmBf4+8SAhnKWcwUknwIZcyCGbg1nFjCWIbIQ+m/dvfcpOWvK4wSOkI55uuHiYHUCqqaJgH7TBz5TL5Gu0g97o8UVbx+vPyrXg3wg2U1RKBBWRS7c+KoHcEz4bSCz+prfLaoTB/VPWIJVSy4TPY/4+wNw4K1rldWNk5PVHCb1GD3MvAVEMzdaNttFP5zLmFwSHXMq4vdCUdBtWvXy3LOf3VcZpnJssZl4gsXLalcMiF4DY0LUDCkd+BsKuvUpBfoemnRpBcyLhfrOGMeM87eLFAKywzM0NUOFsjdirwYstcLFKSyODIDbcrwhZuya7WZHYrhO7w+UfizlZStnyQlpcZ3JxepX/kbF7n8/e8DbNjc2+lP3bT9zhUu/ksK6OuX1c8jO69fG7+5fj5xlYv/HHLwF1bHGIJGtsV9Cjh4fLpet+xWNG6S9oJ4QJnagkCOAfqovdREqjI345yW8B6OXAz0jOuAmVRs5kxXGfxAGOUirzSbuyS8u1wUjAinwzWTh37HIZTUKvs9dxk1iEUDZbRSbsZ28aTI2swvy8CNpdYBumE1AjG5D22Er/oGJh6vCoxIbgNjynmqjZzHWJGuVj0jlqJ42gKNDc0ewf4Zy5XUzMT1cta+oNszPMnwPfvRquaqsJ/N8kpJrMPTiypgcOLIiGIE1Uq4h6Rj7+dQ2LDXL7N958SnJeb3rAp/7Zi2YRGIYRe8qVrGsKVx6/kj4UAWzrzekkB4iQwsDWAuqxCh2mwh+bXrJd3uYFx/6/m7Spxu7F2FvZzg+dnsbzMtcIYqjgzpJja4GbBS+x1euZ5f7PCaoTCJDV4jiunV/ibZdnvXzPzt2N21IpAgN7exKKzd7G3jkUAh97bhcmext6n1sLdJvOxt45kPXmxuI76b3tyVkcrF3r4mBRc5b21q3a1Mkk0b+3p5rmpjXxPlynFjG4/AudjYJiKJjzf2tZycO2xskm03dpvAoja2caC1ExvbDAD47cZuS8Gt+7oyQiFva2rczl2RuAC0qa93G6f3tLG8ljd7uu2loPd023lJ72lqftrTDYw2ASNhKekmYXfgkdugOIbHLfS5Suwhn7FBlvfkbuVbPOFuIGiUryci4qDGvpx9XZCjGWnNLiudhN3moJ5mhJwyI34xHn8myC9+jWPjwkVURxmUJhJ0NzUOwIH93KLDjVAgHMaSR0BUdKJwAXt9UXVOAuyBOEbLSMTan6Kluy2WUzQXBgzLAHSmVr9dCSTtNlpCiRYDqtEBUAIAl/X+vz4IR8xRCVUAbzfyBsZCwMYsbp27OPyXM8RIHV64J4mj/D79KfCV1g+ZPYpXNlPjESyuhFGRObicAfKUGDw5K5CnlFFHkYHxlIJwEhKKGjX2D2UnLxHJOtbO8guBvS2Jsg9SeglN1qKjlgGq1wuqjU1sZgvMbCCgpn4yeW4di6oeqqpGTX1bo3paAMJsuJYiQrWyFXtBTkxeq0swMd2olCIHoNSzKC4ZPfy+syQrQqKr3zWunuY0XaNj3gzQeMJrXW8SZ4OckpO7hKDPEy4lPqL4NQKerK+9+0WB6fGMBJ4HXJE5gO0EYJzaG4tlRvFxeb/5Wuqw/0jUi6RWoKXE55HI+/XYdQOQaDjS+qZTKNQx6QSngi1XPCCjACK/Do5kmxH4CFDys2hdP/y+syQPLXfGv+KVZZFyn9KyskJ3Nm9XVuC8SayskEWOIlCeeD6KQsK/vjbrihQej1wUja5ED9JF1ZXIyWroSiyAcMk9EOS5sX+asJYGpsOniQCjehDhW0/9Mn5VMyLnemPdRdcrPHbrLoxKP7nuAiPk8roLjJDLfVlxrwMB024UAGc4E1Y4SjLbkxlnNbWO42J1uWSx4cgooddPCgB1aKsAuPqK6/3vHYrpxqs9N+57Q1LLI3B4+awhie7wBB3nUF/MDfQprhdzsz6tCJ0RKLKzxy6TdGCmJiRp4NqELi26rHVpJ6JM0KXbyOlCjGBroNZDhyrCkhVcHAKujBUX0R/MzxFba3Wps6QqpgGJrWWAAS+xtQzUHomtpfUEAYvCaoKBPpIXbC2jsJ44n2zF1jIraJU54moZhRBlblt+QdWyK1sWULU0gp9A1eLMOOEQcgzbhQ46zfGBUkKHjHtG1Yp0IgtULT1DAlUrAr5MoGoVnMkSVatobGaBqlU4oC9QtXpyyYKqleZs1K8NOPztf/7lHz/97cefeswhdKKgDhDcbrnfgeDwwOb3zQgOR17+Z8MUEdBYh6jBkeDQfYDWe0Tx+jKUX2MLAiqf4ze89L5KbmF1JPmMbC5mP7E+ytgX9rQXLlgqiMaubqVmdimWFvvao+akh9/GNnBwzzJbC3os+VrWEzhE1O9YhckvCrYcl7G3X8NB4pixLXT+pIFjqCjbRGEHPXXPkQOYkC3sEKTmjlCqX+ZQLV9v1zvNN1OSEBB5MPC5JKqVmIaYy6p30s4eRHI0n9Qq+8TfjQnF4pod2fq1yOaJKcwkh1CKz0jGFsQ2VkCubpht2repXlHbtGEGQVpCKzF0tZ+Y5GY6w83SUGlzhgjbOn/DNGjIbgaF5TSvSGa0KEOzriAfqi0RRBlGJrmnZsXSSblh9BRFCAsvLAp/FLzLBv0uyxH7yhmEzsJETN0Xu3QrKcqceywJCwv5ZBXfgf0dbaoS0PsXpzXJbuz+pKeR1EzUYrRf5pQrEAS4DNW4KEPQOg/9cDxD405w+eOipubDHJJ49hG0nyBwHQaSbt0S5KxJT2JWWNJt1JnR0H3lWcwrz6vmzUQMwLrFQyhkbVHalTw1lg9lTUtRUWcPzaWirrZF50JRJ7ap8L1vLhnD9JnikjGRD9BxJXjRPFB+F6ZSubWX0RhPtJdPsrTwdolXPog23CUmvRB2wflreAmLDUc8H/sNZ8PLqf1Gn5QSiMaLOEjUGU92mH7+dbrtq9l8h1JfVl31pciPMB+QNVMF2uairxkKvLjnG2hiWBfN6OjDJV8rgTLpO75m3Bfiiqe4kLjeCS5yf7uXglQycbmXxGx1fLdT6/5qJ+l0s7fX5/VmJ3bP7cVemW9a3OuNajaqe51at/c6CTf3eilAhtTXeqn8BflWrwbxGHGpV2Zv2dzpNUkmB7rSa5a4/HSj06feXeibZbBGLAxhlNoV9oVF6/bOrh+7TxIbFdwyCQeBZEVAQJCrZQeftGedJzsVZWK8ZYrctiBWXQkHqPG2ERdswLAfXfEE/nOWtI2zf9tZ0r5ZVWSgkakjKUKSKSFZaEQ5IkCyUYhEqEXoQ9m8BI1D5YgB80ZuD4+UaZF3NnQVaImKzzZxSQdpd/4OGhFrcW9d4kxKHUyOtHl3w8zcL+ltnkiX57ALAKHTCuH1kcTmkSA9hV2MYNWKCCIhaF7vE/HuVn4xZV8IapK8AAQPmKS4fVFhTpeFE2TzJVYYrUgQLWGh12XJuo5jJ2B6lJQlfMFvO0vWtR89GbZniXqbIRCls0T1Gm87S4KKx5KsZ5V7uOjT5M6LGXlYiz8vjiwz9ufFCm+vwS3aAP4y0fHN3GckYk8cJe4WquApX1XBc3WRPoDKEYkJXB0OHH70LR3wKjw3el5jD0G9VccWQb1VuRRBvbNoo2CLoB7r1yKoJ+hrOaqnlToR1hP8tRzXE7q1DOytqrUI7K2jEIG9s2hds/y+s0Rr1SKwx1q1COyxUi0ie1qnbjy5cdWpp5gTqdQy5nTSqEXMSV9aMuYkjHgRcyqgHpQxp439mcV6ABMKx5x47CJCocfOMSceuog5VWYGEjEn3RsZc+KyBhFz4ltdxpwwQcc51Ea8iDmxDS9iTtYKIk5nj12WMafMpf5WktUmHeTZUHvLqBNze8uw03j/Enba9InDThaEpxNLDjk6RI8wRQ+ULvMZLCldqnuidMlxR+kCX+hE6bKaOBOlC9lKRgVEBKVLPVG67Dhd0obUJT2xuqQNrUv2O1qXfKJ1CeGB1iU6FYAKHZFp6mYYeEm7AFQAgtNE65J2vC71gdeFgJtnXpe65XWpj7wuVU9a3ZG6pO8Rf/rDH3/49Yc//PjT33796Zd3LOodi3rHot6xqHcs6h2L+g8Ui0qPsai8jUXFfSwqPsei4j4WZbexKPcYiyrbWFTex6LcOxb1jkW9Y1HvWNQ7FvWORf2njkWFx1iU3cWiTN0Fo0z9jxGNoi6/w1HvcNQ7HPUOR73DUe9w1Dsc9Q5HvcNR73DUf51w1C8//39/vKNPpdMj9eBTc3B//+BTNAdUs8encv5EyOpljP102Mp+PmQ1HvlUqCoWhJziZ0JVlmaiVv+ZUJUFT635HLpbM62HTaPLFEloCXuB0AS0czYPmKitb/ayVv3qmS2WybnY6B6N/VRXXM8BnCohKUwbwsu3BnWMucKw75Ctd08zwIGK0g7b2FBnQWyLNA1draOLnFp7X80JhyfAd5rDYThloKfPEC+4PIDvwo42ExkMgo17E7Vxn3BzmMiJphYTH0WmKd/xaiEYuAkqr4NxK3QlyaJH5O9P2tvA5SIJSlsxgiSNbsQ2Owxb5daJ87wlBZk1IRzumx++AETKneFfh4eTAb7IKrqsPkJsDivN5oDnaKNKC/8mEWurZ5ywA+ZfCkWa+LPIU3wiLX6BS0tnL5VdjeRIHqdFBApv9VBm2uHFAeGImlf7JhJ9Q/XQABvcSNS32FAqOVgM62ag2Ni8GVwGyEPDISR0gcxqalBvcuwGr+Aa9IxSyZuBOrTdDB5hTd4LgkpuvNpz4743JLU8AoeXz6eF6A5P0HEONzavBdCNsHl5+w7KhPunDNx3mz57DorYjmZ2v8mCVIrvFdFnfa9cdmtQIT9fGUZovNxz66FDM3d3ADGbjruJDp1iKM4CfbShSc8UHYE37GxLDGzER9G6J/h9Z0nV1pETzNseXCoEpJdut8e9DxImLb1mqpYhuZ1My2VxvYoZGch/Sf2ZoinUOKAs7EfWl60n66ukJ+sr1Z31ZdLO+jLpwfoyabW+TFbWlz9ZXxvja2N7PZleG8sr5Z3lZU+Wly8PllfQSBS+079PnfSDMHlneXnQxU+W187w8g+Gl087w8tvDS//aHht5qzcqqq2vb6h6fWPv//6819/+uUPf//pl3/7848//eGvP/zth3/56a8//e3X2yALV3eac+dP923S3P3f3yJzJn1n2+pDEO2jtUTQ1H1d/VbbJVjku1hyd4qL0fKNbzOQa4O1nN5UAIYWrOfAbiEFQ7zMM3b6eMr17+gY6YecSvR5x8uin/QvEnbGphWti95oR+h1/I5HdqCzwK8NhFHsqXl+l6ky4OZBCl4Q2W47ZLyLWjssy8zbB+HNOjAzVZuBvPkoigt+kHjhg8gNGFieOnzwB5F6IU/4g6gMaofNCx9EvO7WoIahnJB2gs+PQ+TsQKdlkSECtidZp6FavrXBAh14prcuVBE2zJ0k8daFBgWKH62LLhTgPM0gVvTVMa8T5SJQo9eaDok2A/HV9DvtWbZ+K37jWVKGFiRH44E5nVhFjAJznEzgNi2EThoHm4WcYAvXQARfF33LTp9jaSshzaZ9/L2efZm9I6Vn8wly3n2CnODAHqGrO7oUxTeYEzF8CUITDUp7DkgW4VwRXzwwjMWSoe7KJaOGlAQipMYyjAiZOqgy968VHGyRzIcy8jQ9NS/zE+FIoKfuCfKINdkCOGg09wCcfhmjVxemWckj09aR6jZmgcyaqI2RCFWKlb2SAb3Ztfj+ntEqe8QfLZOB3k6nWZYjsNqDuqTaAvFWAeh5AcZBbvQ2wYlzEFZPevssnoE9wM5dAttWBVkW+PBCj+LRbBbFunDScC9tjhEW6bMi5m76Pss2hyWk82HZotpZrfzY6WgPh2XsNAjzRg0VtJHisKTW3WlJst1QQhYurKNMHYr8ygfR5sCMBqkJfGBGJ5g+6bNHhqnW52WbYwplRsHXXmDkJwCt+8hTU5Ua09ZAzNQjMi98ciAZE31KEeHVTZ9SAfCw6FOWHsjq6NQQLgy3BP4g7N9k3qNJxvSPMutUchqkPRZNc58SEhppTabAPuz1HZbcSiADZ4dvvfWW/grh8EVX1o3pM6UBbpZ+I9FWS98zi4q4o7yTS3+5pIIV+R/qkmo1DE5dUr4i909sVeru0yUVPNEA7y6pYFErIi4p4VKSl5QvgLrdXVIeqPPyjvIGF568o6j5cEeReL6j2i+k9Y7ynRJrf0e1nJaw3lFBkhDijqLW7R0VvLqHIPMOXGybO8p7BhoXd5QPMkUV11RzwbnzNRUM5XHLW+r6iFlfUvThd5fUblGsC8cNl1L7m+lhFtiirFDvfFfBeqYExYF980o5vaRaqmc6LykbkWsh19T1fUTutKEvSM3jC649I3G/BOlD2Nh1iGlNNZTXfFpTPT1pWVPNCQh/OK5AF1DNRmSy0zTuLULvMkUfHkSW6C5l1zKAnV3gxeaYHna4X2iUFHTqzct8JWRJ0VNjwkLAy0zgySfcerea0xB2jvmsvzKZco7TIfy1XQL1OiBRtvXaU6ZsUJmy7UNQtSE9NaYgcDyRwI7R3Pfb4QhtXjNUI+zWqGDXcqL3jp0ORqws1FhV7XxtrurAOzzp3tvMrnnZ+/Ca07Yh7KQ568FP0n71UqedE3mBBqvYdHJRP1qX8Wfwy4xnnJiVzoucafSjdezQfR5cLVQS0/5mzZki6ZhuOhKMAQFqmzha4mYYd56al7hMlLnHhpa4yaT9tdnGu3rrmOxZnx2yPtfrChnCPtXocBRlqTj/DaPJF338GyModZHxQzNCFNQjX2wqr4l7oxzd7rTs+xEVraSYxGWFTCrrTUBp6CgL7INyuKF7s/qijmMXEcOaCmQo7oBmf1geskSGVkf7CR+U7mwcEiU3urMJUE6F7txGDtrNJFYGMmeTmsaDVWKR/vIgevgwEOkd5JFrsTrjhExZV64a8Oc+yDYGJqSTgelKxXpgrdUVrrbUWrYrQZLAFnoTO2nYwkTrxsKEbDcW9kU9ydavIl75INIWpithMS9didD+eD22iSlHW85VWN68HPE1pwMbrU8OOdcKOOrxmCXpfMy6VqaS1DHrUsUNsTlmXebUW3HMuuy5VpXPWTTvDloItyctpNNR236+hPWobX1Op5O2jZOJInDS0qTMJy21Pp20ot9qR8sx6bPWZce+Pz5r3WWRk2NBnLUuFeQJ787ay5AWdVQ4a5Nj/UKctdR8OGtJPJ+1108kvbZTIa/tZmlnC51NrO1r4CUtR+09V2V71EK02Z4ZJMEPoqcPcz5rA9iV7J0YLp/3leJBboR/dyL1sz710+FZRrE0iC4zcNQWaVHqR24Pdc8XQiiwKNaMA9c4Xg6PNWfY/sfI5fUo0gdvTLIE8yhrL5hEnthRrVkn6+r+8Zy/puTkgdx9U/XdWxKGO7iKnC2ww8QldhlUya2+otZKXLTKV+Sa5XZyFTVhjquryJEBPl+61N0HV5FzPCXaVeTcQGaZXEWOkl9mu95d/69nu76N2Xll17sW9bXKV4Tmva8I4slXdP9EXez6Ngs1Huz6NsCUF7veuSzU9ILZzJKvdPYVQbjxFd0fu5x8RU2aoyYEsgUWt/AVuZHpdvAVtS9TvHIWtVF6r7xF+PYbb9F2XagUsBFfEXcYDxqyvgqXQbP/va0rVCRVJtwV95thHWl3v5lBWDXfb7ZWLlQr3Ub3onkyRzmxhsQSQeT+BeWGl93a3G+mIsdB3G8twQhvIm4fZzkSmEZoQE5kdKcstJaqDZgl73gaI1QfUDxx6kNR8AruMnwMW5lBjFskhVPmKDXvpxDinuXE5WZBgP+ixOnqlhUxOqdnkfYnPTWmMSUFpIBF56Wbcs21uxRlAiZSzjQIW07b/b++lAJy6ohTqUZ8spVVqSYEtolWqWFbUNlsf60XrX7flQzDH0s6iepTfg13xStGVvTd4hknxnm/iWwItMoOqekLPfi0UVSEbFW5WteL/Uj09MajNmYvw6r6w/OFKuC1KCfylake5UqJ5UpUAmklKGlgWaWgth6jpVxS/UbdfTXEbACY5Qa0B3cWMqXU2JRPCSos0qPHCx9ERZ149tLoPUKYmVZaRk5N5KqyHLtzut/Jy3iG7CYEXVNer7dFDshRER116z7xkPdIrYNutu4zbwsZ8Vqls5GzHVils037VCpda40nlc5eVpM9qXQ2ccq5QChLfMSxSofuPqh0NnmawI1K17qSlErXfi1rlc7GCrfNRqVrYw5apbPRIPQgVDo071U6iCeV7v6JVaVrs2BPKl0bYFlVOnsZqFmpdGjdqXQQblS6+2MfVbomrVqla6speaXStTl2Z5WurQ6jVbo2yqhVOnz7jUq3XRcK/rBgYFFx8UHa+wJQqcus0l6JBswXj0pbQ/NLG6XNR9R0CAJFH2SBRJ1Lbkl4T7Zd0cYu29lqyj4/Y+EF7nLi/Fh1I4cArZWecgIXcCEADAJwLCpCZYh7fjpQ4Rr+Ir3Mo9SkgTYWPsuc06NECMkKLMkAbbNCfUNrr3hYB0nSTttI29AnWGnd60vzFQi5I2+QJClRy/B1EDi/z/J9EDKTwa/15yRr29lYPYt0H3jwUjdUUFK3fPeejd5SBtfduoy7wPvnGenQj9yjuz6bPgY1HiZwSPulwQuOelQA49R6VB2lBGnoysRQAUIZbZuQ7BpR4EHNo0xifzU4R+qU1iNYppUFWwWEzVGm1AV+5YNoo0lcZqxJSpNwAdqvUCUuyzsdNIkh2ioSLsirHdX4ktAXioSbGH0PioRBvtlGkTCpf+hZkWjhQKsUCSOqwZQi0fweR+dQkxJqlNAk7CiFmjUJw+loR03CxjGBO0WiFXEGpUhYxwF8oUhcC7jEsyJxjdk6rUgY90pajxitBzXCICNJaBHt/WXVIgxzw2stwjLUL2sRNsHNJrQIat1qERZWhtYi2pfORy3CRHxMqUWYzL4coUVcEyxq05UWYQemzaJFtEIMp7WI8d13SsRmSaz14JVyXNb4HEvUKVImG/Ag2gQhSTjFIC+LKtt1wRev8+ZkLXpWeX65CnBEij9S4yb8SKLNGHLqu+JRtJ6R/L6zREcer6EYv8QeCwfD2H91TcgxOlMSQkbsvCoF3lVOay08Hzqr9RKSSs9JrdUCLo47U4NIOl970zA5lSutOerimtBKjbt8VpJtUlYbuqj9SLRJZiXhlMtaE1JRGZiT4nMrKicHwQpgU0NcE1mp8SmPNSWRRL6q25cRsQkBxsL5iIyxQ6177x5J+/lK8IYWFxl/UurQ9pNmAz8bf9LscVGNd3tu3HeHpLN+T2+fLRLRIZ6i4yxqJ2lycK6zj/QaOkF0W4PiOGrdd5qkA38nANxRQH1SmF10ehNlTxU+QhFkz4Zj7Ak4itR6mEiDKDqNw/H7J1ey6BImaQVddEgB10WLkQ10UbN4Gc2CkJ1KFpsHph4rFmMvC5rrFWOSSKf0Ra7WGg/ViiQTxYqEM5iaYvPLP8d/vgBn0P5fA1qCdev1lIwWhfmigjFOyW00HZyVp+oXSbapUcx0g54l6xXDbztL1vgwf/WzRL0Nc3+WrLWJ/Laz5Fy0mGACZQ00kRiaDmALIeB0E6fJZZGHo3vDl5c+bn1CeXZbZ4yfQXQMLdVjgUA0ibq6moc+cRpj4UzdwkByFRgdV18jZ0SuUAmBfar0jLvBVSJvIzeOo8BXWceyn9/kGZIu4nZoeIrjRbHnYHesisxYFStEkWfszWbxUKpqYPAMR1uCGm8FRGUGB2gOIk03L5ZAMK+TN7Ehj9TFDGiODaBIENhjREgszVohSW5MCK/mi/E1GR4FZAUUJWtrDbzZRhUdihigwRg5BJgB0XmeJ2SrNjsCdX09R7OjniQUkWO9NsNyXUucYkzuK9e3FTl94EahxrGU9nQsRfhZyxJtIZFK77Gn6A1LrpW4ugpJOADKkVoBF1rbHAGIioWtLatS0voJafmZDs0In2MGwpab+DfCHIQfsl2yaM8qeZLoPCK87kHUETmXXEZkolHSuEsSzxqB+tC12VOcfuvx3R5Ytkjky1KeQVPy8FTvQFN8eAJNYR4SBk0RXgsBmrIpVGHQFHZZGP7AcQVNcfYAmoIcdKCmCB8rEEk2LlbGTZEeVgGcYuMGOEUhzAzglLBDmHHwidawAU4h/CYJnBLiGTiFoKQYOCVxEqhETlknSyCnRLjeo1QZySKVyCllsMfskVOEg2hCTglOIafkxaP6ddAp//Onn/74P3748f/ptGkutsP3T4Cx+hYwKd+M/yy5L0E7KUCXr8F+ChuyACal1k+AQxIwZP4UMGTzZtkUGHFt8d013O/0G6RmdZHRS4+CmwRnjnPckFh5C3TVloite6g72y6r4dhoJVeL/7Fl8PGpv46hpezZ4wBFd5s3NJ+k/OzOKx4pC7XdMXPoQEib5bMeHI32JlZBuCadoLZEBf7WfKY5n8EiG3mJ38BFNlAMYXtSsRw1Dzy11d1O4o6RZxNzqvTf6DB5DOor+tbbFZuRjagasPDRmpa8BtgyVzK7r4PD+4qv69QGR3qnq17PbAio4Cre88QyoU7M3PUaC+OJrrFM0xyzjiFFs5gK5Jg3NjzLDDNeVLGpqeU/IMRtyyEBY1ghiwztnGTVV/Q7sqjCZk4ExHNbZALG2zvLExytuEn2EO43igR0VLPygUA88GVpbkrg7MQWQCOCpAaKwlUVUfm7ByGWFY+1BXzNShbJ/BS6QvsObBbCgTa7rBGIB94sHK/XKR30Irl6Xk06rpHSMMitWiKYHsKdZee0F3qx2XN7iBHcZ5A/DY+/nnS9msqJMMZkOGBd1EdLCzTU88lS3KsQv5I4WIp5ic8SSwTvjvgqes0YKDuXlUya8vUT1WR1rlzz7o6HSnMc+6rOlOZ2ZsgkS1qiXC2XLm5Oq2W9gmor3wofiR6/EAsVB1O8KU1P+wvivko97YjcnDZ6lebrd0o8rtLUTk2vVmmjqzFMemHg4qZ2L7eQIKfxBvG9VDUFjmFQU0PqdSur8lWfDFfPQy7nkyG3PE+vjwZMEHFHBHAm9fbHHdbglcsRb/bqaw161ad2Y2X2dNF9Ok1X48eMh+nSS6UVGH0sM/fdsH/nk6zlMi1elTaGAngqGzIDS3MQzJJLPDsQafXW+dO0AjqxCwOjXZPV0SuD7ldRK32XovClkxNEYeTxaXHEnMW5xRDe/Qt6tO+8otfFx9luapdBvNxi8VL1w2axtvy4nM+LtTnuBfYSFmtLb4xR32No391jEO7vMYiXe6zVFzmvToiW3flwQkxZijggMD/jGiO/HTU/7jHRf7245eA2t1hsyUZB32J35mpQt9jtH/fHWyw07HININ3KpnzV1xjaD/cY5PNF1hC9i1aQY6Ncrcer7BpRsEVdZQ2BibNbLNFfyAWjrjIxp2bBO0/VP7Y/fqDzJeabqYBa4Rq1l7owmnAFXsy1iQSHJiCu/aXQczi45gV6k8LcLJPQm9dQOM5nSa9uHma4nXsPvOi2l/1ejw4v4Byt1/5zw5k9BUvKAARcgncX1iF38Ob+PqfX5dlgyePGfEP7wciAfDbg2vQKYiTANGRWADfLs3GA26yW5x07Qvmwx86h5qlr+IQk7RGT2Sl8dc+7uAinOUpVIMICjGegXpDZJGZcYJO09gUR8loBRVhNEVEKx6+zlcNDiS2mbPIC168WikYVT/W0TWyhaK/YJA0wphS9SVoBu/WnTeIuWzzV4y5pVYE26l3S8HWY6AvbpPW61A+2yV0hmE/7xDVUw6r3SfvFojdKg7Nx53O8WcwIKfNGaV4c4HKLjYL2kzVO8sXTkXsW/rxPbqSks0XScIK89nK4a958VPsEzdt9Aulun9wIBuG4T+6IqtP75OYhrXqjXNNY7cNGcU0rSXqj3JGSzU65l0M5bZXtYlHZmdeBBMfDUs38yukDiXb4mcd2e7viJuch4NHOonCfpbvfP0taxWNdcox5qI9CGu03ctP//OM//n776PMNdvunHqKPvwuSuc9fwC1F+uH3CgcUUo8+wy3VvBk8rM+hpntwTPWEkt8aR3CjZKDBrdtPkUxlQbDzmwmmgIMdVYbqkPX7i+KnucfTR50LBdFSRglZb13JdwGZZBBISx54rq00xoMTmH2hM9XOEPUEojUxjVktLFgzUgQsu2UolcZzzDf9esqnivQ+y1gqLcfMwxPhOC3NI6VpLfAgab+FqMAjVeSzdrQYykurDDi8Zp2lAdZnCdiCku6AVGl7BbXn1vs+L1alARq2Q+g9I/TtQO435ghEfiu9bJsit9IBZsbtj8gQajWPDEzoFkZxxqWPx6nLoIhIFYHOhAKHhBKKpOB1EgMkJISAm8cFyKTIeQwY7WbSgmAgLQUrywujeZhuqTDYFyVLi1FZTjFirpK2ySyqpugzUmsP5e5rHEKkso3rwbIk7mSiRl64d8trqB1nCdOlSesauaoJ1OCBE37bViH71QJZsbfOtnBgJriCSYiceCzSPqNIIPVruhyyXdeBXFZtjh9InBmZL/p1D6LORbua9tYrNvDokXkjzshrYlw6npEhY82LMzJECTFCJxi1ev702rSlLvt5aQCNU3Fo8OHQEBQ90wxnNRRfn4bi/auokXgLOrqmfQOHEy/qiSwroxVliXC2bXu7xXllVYfuxtUSpHKUwMlqFjMbUD4SnCjunnPwSdS6oqhMwDjG2GOt7JFLDpjminPt6mrUM2KNYN3ySK2uYO2mxsOsCSSViOPTR84tzjg/fQVIZFYHKOXLWX6k28+G4SaJWZaQWduCqwf7uCC1KWirjzD+xZK5jTemFo7C5DsOnqR9ybCl7fK6ZKhD2yXjEnKteMm4ilNqvNtz4747JLU8BMdvnzeV6BBP0XEW9fqhzLNp/QhLt3J2WEYR+m4Kh7SvHwSbRbZbUR22RbkhYKIWDBpl3xG8xtR6mL4EzUcA5I13TztL9AUzo61ORgc72G9HiboWzFOz2ZuUh2YFVoYfPQnskp1DAzs006i+jW35Lz//8JdhW/aC698h/+sLCa9KiV9k9MXPcwqnivSvkj6VN0aunk/ZepGy1Ez8FCnX+GRdNYg6EOsZJ5dq8TPD2As/Xipgkt2FVxPTZInoaoAnVxY3efDXg6hdsIo64HStnseGDskG6vCCNToGRh+jMrTGLMFBvaQriBKH9JKHRSNcjoWj8IEzK61S8TPjRwWm9KWML8vQWSlz2WtUGncbW4D1SErFNR0WVQRUOTgaR/6oVbYj4GmpzChF6f10PEPMDOz0BLHnk9dFiCuGfOYqi7xkapPoRiONeuIAJCOMbodSALq7Ui+MGjHOoJZdgqM98nATrkACU6PGw6xFRoC1gFRIiQvmHOjqU8XytXcd3EryTKnjg6NupHigEjrgQ1KrJ4DZXZWfFfWea7q7SFLPlP8xYNbcSEMcpkh9FU4P30RmfRSpi4jL5gilJXGVW2YNsqysxHkTq7zMMF+fmnuNwRoJ9wK/hOLglW3nCqKAZLjktCqegCTcMhXFR0ng/og3jbqK8aY552PzIRTJnCigV0yC5iWyBIm0m0yJiWS3gbekE8luoxhyqu6rwqfD7O3UuEtEINmWvZ2EM3t7yOCZZ/b2q6s1n9jbg1up22kSZur2YCRPwJ66nTusubV5LJq6PRQmXbfIEYC1zvdbo1B5iOdW0NbJcG7mOljmbqfWPXc7SSfudl9RcMN01dfcunyiqw5c9i74qgtcZszd3qYn7rnbSbShEbcE3nGWPHyIIye4K2Bt0ZPcIEGD5gS3cm0nNp7E4ja6QMqGlROcXj9NMnVozwnuwZHHk+wjKraZFJwaD3zWUfqYEydNGKvjpdyhIys4z6JmBW/WUlpZwZ1nqCZmBafWwxx6xuFg+5JePx1Yos8bVnA7KVsYu9Wk4KzYhG1GhaYEtyCOZEpw0ZsTJfgdigc2yFp3E2WRc2QS5ho2afxcrbQ5NSay6rjWXRWnyKrdoe6KAtmBnWr3/zoGCs++Rg/yYJgaTwwdxALZipwECUuYaLcZj41wSIMCyLUR3oMAWJPuviXGas/9BKjVmuYfUbzqUY0rK6/qjrM6pSfOaqrWBwJ089g69MXzTa8i7g7uKXqmD0rU/3mAx/EmahkqMyDYK4MqZvbLAl/9QWJWFB6s2gcRL+hvY/z/44df/tiN//Lta7+eA8tDlftkXNmE78yrbT/vYrCf9y9k0pk/61/wFgVt5UtdDOUzLoaUAVOg1Z3EtJNC7W1GXVhvEQJl3d4i2Us1PiFhvMRV7aXGndpLsq3aS8JZ7b1+uLpV7W1B8XJSe1MRgO+k+dI8zJovtT5pvtxnpXCJ4WjNNzNBEB3L11iMV3dYfrzDEkNEz56dGJTmS617zVe4OFjzJQt+UsqyQaW5VsoaP7BblbJrsHQ7s+bbpiftNV8SLTZpP+OOrQ8f4KjxRtCnryBcLLnrKRdLmql0TyKlmeN9Z4mG1IgdPbB7jDys44DyHYrtJw+M4vRanXaAWs7a/LbYDIiXFgFXhnBpmeDKThY2ZZtuLWxbdxZ2ShsL29ejhS1oDtjCLhKinyy0wgERZWEX4LtsLOzCuELCwk6C+FNY2GcD2+JQnGxsW3c2tszi3dvYRTDlLqYdj2ZjY2ehMGMoJu5s7FSfbGw4tCYbO6adjR3Tk40d08bGpgCwtLEfDGwXlIGdAQgnDOwCwFtlYA/R1oyO7gPJw1c4G9gWkIbxtZB7kGT9RReIauss2WAsk3BU93g2EFlLTiBG4gyGqvR2b2Cz0jPduBO3OzN5yuu9hgVRpOyH2MiR6wcSNd38ugeRrSrx5xoO37xMUdEJM1dzP3cngD95RELZeURCUiEPavX86d9m79vsfZu9X2z2/uGPl4X046+39Vs6auafevio/juDPin2S8Le/JgZy/u32qbJImW5fCrX2SHX2YbPGKfGkn1veyr+bzVOy4CFvJMrygLx6ym/3077vvQQ3aPk/DZ3QDQvkYCrzEAvwrPEb3IUUCz8//3HD3/s1fKZC4woXakUAMCXbmnwnzOHLUfTSkFqbBnQXIQlOZAkvwxHsn+zUhgTsY+KXh77y+PXvLwSHHV5rZ8hJlDjTT/rG1zIPaob1u1L8TFLIQ6cu4b/mw0Mb/eW3h7UNxcg+6RvlY5K1W2pDj/GT8SbBrTrwXQxUOP92d10cOslqhaxgd5jRt46fi1XDhh0A3KUjhcmJS3zF6F19lWIpTkTf9ug3OQeZeiVXf+8O5RfjHnTEwp2D3AmHL2/Eyvk7zGCQpRLftgyu0l1DG/NCSZu4BXzNxf4yfyAw9FwKwvTAw757g46SCMMzqTJ9MRYfsDjF/xLoKMUmiOzrFu2E7quPUBlHHCYZ7WrOIYZ7yqK7KsHvDblpVyNDt+nTCvs5nX55Z/jP19+3Fgy48Jg4+Af8PQD/ut+IKAKzc0/kOgH0tf8gOERrFeJoaqfwKjUFZryDUK4rMiIapAc8QCTBfr17yk1lOHwqHG7CfkBTq8WP5CHk2nXI6YWFEMoI61yM+R+SdGeYmKuuO4pp/7eIhuKLjj59+wBpsycYkWHYv0eH9m9HF25NquNU1cOkcIJXZTaJhSdAcmVR3at3M7WrQHmwrF1okaczgt4Yyi3qnjkVteRRvSND9VrdBZXqXfqkGRXf6hqCfTWPcoMsRjrC9CCY0xegAb2Ux2GEo/UJRqqS18x1gZ+TjfgPNJUENQQCYEF94fafeIBvgKJQN3pE/AbqVW5k3b2K7Cu00pkfXyjtWTEcrgCswfXgZOI/bRC3bDm+YEAN4uHwyKP1Kb7CozLmRaRzBUQisqoqsvLXyekbPXnBgiOwQk4wwuRqH2yBQiokkfiLLkzTucYhcl7CRgrKQNUzogFM13kSBiYaXqUVdyzARdt+Ioj7PqNQGVey57N7NIJHJ3jZRCGGiHXTfXqAYvAlf4FK3w6kRkKCMk7ridbNogUiA9rkDdJRaKYcKSap2Fw7V6Vp9/GnaRH5/gY9qpYt4yPzQ84VPfUHtQZud6gXeudlQ+w9WA4hAibUe26xJee2HV+vvTkGjMR13bBrmNaK7Mu5OomKhm5Hxn1AenEEcAf9RXXn+YkvMpJupQmbc1w6srRBY7Y0C1G2b6OWncZvFnUfZQF1gvYA7OfoVUAPwvO7zr5H1J4odJ8djOkRF60s0R5IEg0uSBaNDfuXRCXiIGDyAWRZE7psiPSYI9aH4j+oHWljEVQkMWcMq66xVXQinfD7CqQryp8k+MWBFL99zD92wSVg+mfIock2fQXef3K9E9BKF2kE1PjxvTXq0MFsmu/hneaTyy4cYXm0/LK83fWfGLqVawb1YdITCfVRzCbKtVHPMCqT/uB/F1VnzgW+kb1IfbYSZOJFdEQpfrEkUg8PZAMDnml+iQuuWXV52rM6aD6JIdKHwYmoD2pVJ/GFGTXG5IaN6oPibSCExPlPZwlq4JzjaOkvaRzRwjVhz6qa36MX/45/vPFikwyRMm70ZXYKRG/7ifcXlVq5R5K84lVFMUuykQs8DKJBwqKVvQvZGSNsKoUM3RgpSrFjOQfXgjUuFGVSLRRlcSr8vTb+aAqtcwSu6pKsQC/QqlKkW0g1nxiBe6cUpUuGUGP8QPX9zF1ryulzsgzqUpil2r/ALTr8HULphLL6KxaJUcAEkq1ot09qVaJ/YmrapUswEJYtUoGUWStWiWDI0ioVrG+wgeaVahkLMDCR6YEMzGeRWUp/g2VDmKS8Ac2cDwWFAzGHtwf1+my5qyANEH9Ek9bHnXE/IADUEaCNkyN945apk08EMDLIX7BD/YuPtiaGtBPtlsh+NJl1IZNSqizappIS4avLzAzmx1M1eJbDIPoLFkrrttXT5NE/jzdfgY1ApFxc8zIpaMpCS2R65d/jv98+QXu6ax3y2aIAfPhAeRDjduPyg8kyTeXC/gj8/cYgSMtqq43eDQM426gSQY+DLHB1PbMyLEcxoPkckuH3RlR236SnN9mDvhzPr0CYnYhzrui0qaoXzGBfhiUrOliAj37SysTrHkko5WRz8EPAIYrgyrHeybyivbw55F5w7jeJwwgnak/4CEnVd0HmEl+XN3feoZSP67uTTLbKo2GnJXWwnl/FkqrXR+oGALdSY0DDCffvA0vUeBtmPH30HFnTEBfCKX7LFGL0JBf+CxRS9qXV/5AUl927YBs/2Za6/hIZaiUdSTgTlPOFrHmbmvXelBfVXhMIpgFSe2yJ9CT628q5T3U9Z1MIFfRhwpFLq3fnYkceJlEgLpk9ffZKQ6+gr2k9x4/EKHI+YLUq7iqBb4AcSF0LJ15BGG1/H1GpCJw2VtCCD+sdyDts/UBA6/nfAD2RMauXJavMUd8pHv59rtNdjJs/fR1P+DIXb3s74jEtXxnnxIAEnJ1l0utFWSiSNJlNUlFHVEJoR12RonPQN6rTaWmP+ihLFp9eS0dtnwg8UvOnR9KNEu471x53lHmBhJ1RUZAXQzUiqB2/ZoInHcdLG135A9Q5vnId4y0ve5kB4CG7nIdf58r/n7Oz3VUpRxGniFOynFOfs1CdCJIYb9xapO3lF8UxjbiSbAADAud5rRnSQv/VP0O2Q/esH/FpCVujV9IX/kTjs6Oavfr+mEDHVXQRon5fRU/Z7rPY6P4XSITVsXPVmHlL4qfrfCisuZHjbvrRzzAut9ICd/qfq1LcdX9HHNwfyfdzznCmlQHgeMSez4IWtp7OOh+rYo/r7qf66krW+XPBaQ+sPLnAnyWq47X4LHtVvtjyXouN9wy94FEr99A/KcPokX/c4HcYkoBTPSlvsadThO50QDbxAuOLc+fyp9UQOeV/kdL4Un/c44DfXXtAwedKsM6pL3+54JIe+WlEsJB/2vTrjiYqXG3AcUDrP+5gLQapf+1HsVV/6MlvdP/2ojrmp7lnFAYF/2vTXBa9T9ncdtTPtc31/8aLSLRsLv8HfQ/Z19uq/45pGex9ufsKxyUP2dfSvdrE1QOul+b0bzqfuITnHQ/S7HattBnb7h1SBDrQqq1sexUMWXx3gV4774m2tTQM6o8QbhTBhu8MCanwe7Ko/6QiRvJ7+KW2kcL7essyavri0Q9Ra2g+ITTAfx8GLT5hU9WUArjel1ujlaiicOjUMlOREm0CiDaCN76wh8pIt+6jMon+QCFAW4WXnqAvXc2ruzPpOjnpa4l22eBujOofusgonT5sEpgagc1+oSYRuDZSojoqukNQa9pLzwEYe8npMyvToc8abxTZIAgaF5MRbZEMy30oYqTwLySIKmXf23gaJ1r1OKa8WygPuCViKcu57XFjcN1Z458d2YNK3icLIYK3cgtaGYvLKL54w8TEvLM2tvcV7QdqBj/u6d30h+vqa0Mz3AbNf8b4Ht9eHPs0pObyX+Vm6kHknrgfE6QosQ3EojjD6ff10TAiG19lBx+Q6MwvUgB/NZvjqTy3ZC331Ln6+/visj9/rz4VboeZodoML8TgsQ4zPiexHnhUIzuEEKmcJTYKRSr6bELhyY3zJn9X6eX9+vL8yjf3vSFo28MvF9e6zasuEgyNmLdJzJFcesQ6KII9C7r9lssrErJoItikoW5iKQ3YS3OGT6D4eFBoGKSWSTQUMYbXDTltf4x+VopoI2Yb13PdcYUqSg54bIke2MVzHMe1DUgEEjo3lDJ2nS9qhsxk1WWh/KmBOm1MJ2RW+YoWKvRRxnDg2DTrbXD36ac9U8///WnDuKUb8fRoAdKvw89UPwieqD4XemBKgrdPkkPROEff8CZOpXMlo9GdoKLzv6DB//7Bw9uH/pvj7MfPwUxbbov5d7xCv0pA0SDAZs9J95YEOIA/MUuleEZbheIZi7hpNKg2WroP+u5l567uZ4WiFDaqpCGM8MqNrYMhx8iXXTsJ0KHEsD+SWENV0GOlID0TJkeA4+fMHcco+UnhfUcYPgi4TWt3D4N3ymduH0y2ziC2ycjczoDCHu0ya7gCw0ZYR7PGcSEIOIVcEFKjImbYIunwnnY+VUZcgsQCFnjSXuGz86o0coREZ0O3t3flHhS84oLtVkDax4se6TtwnHEoganHpckheHRexBZQ64Eia2TkDZN/p+QEGHE+hY8IwokKMZlD/oqfGaEy+4ZJFqNjGSb7vvuKnsWrdQ8/L6zJA+NcUJ4KkgipMUaHPxzTPYRAvBmNvwwWQRhwQ9TX6hHJdjswDNShpU10Stz7FdkeGXFPBIjUDfCDuk6x7UzyQC0KvU8Ks+N/fvYNZ818fdJK/iX+0hk7QigzWTUzPRbkA1deeWNA6ZxPGHxLedLY4fi1efAxe3SCnRFjV72ZvUMJ1K2NqQyFOxZSGU4HCJJZSoYwHaMKFUqvsJz7RWpDBO56U/r77jb/GU917cwpww1Hvh9goRQNMyvFDWlDHfnTCmTWJNdKWWchz9bQP5yfTVTylDjgcfFcT0Ap9LT2yWljCDCKxoUqsyUMt4yFA1TylDrkVOKbQ2iCKB3z5Qy3JcjpYynGgizAAVZ/9SsTkZ+0YOoIxwdeEcPEvU689Rstu/Yty7lM9zNo8B8QwPmH//jtl9i9/ANFNrfxX4p5YtgaHsw+DvaL19Gbzr0tM9B0brypVC08YMHD7aLA8CQyZ+C+wmle+f3AJFDOPwIgPSzdoUQD4O4xu8Q1hshmiqAbwj+HLph+re6sHwKNQdAllnhIDKsHrPXFcETwVqOEYi5Ws0xAseSOQIoftF04ggMwyjw67f2UdOpCrD79aREAfqWmBTPgY3ERDUtdcH+wLQ4O4KzUpdMH4nM9l371jpUqFm9hNfQMn08p/9Z8DEaxqfV5BkJuJEoFBA3aGZ6SLsickq9CTdo50IZSqrEEAys7Ao0vr3mZAgbQuFCQqLQHx1FlM6SHS6kA5CgxIX0r7rBhRw0FntcSFdedYMLaYQawbiQhgl+FC7kkG3QH32PozxJNPgjXvcg2uBCugqCWokLmWGLSVzI2KtUDriQIn1O4EKyWi1xIYVefcKFZJXjlfYazFGgAIqFanMWdXzGrWpzlKjXmafmpcP8/lO7mbeF6OtZ8krfTsX5X3/+5Ydbxwl9Z/8JpGm/g482hy/y0aZPQO3b4Vj5zlD7zUVAj7n0OVhDqDnVfwrVsH6pmlPIm2xC/d5u2utoYvroqBF4M/OWEuhSS+AtOFBMgbVa+czeYC8LEFGqS7tuXc9stLFAEfAMSm1XBcmDznJlqiXhbNRlJHwzdbKPoPTS3O8tCxn5YagjMYjB3ymddLsIBua4L1tAj51dqPDEYIpy4/rS04mH36IguZzIcAV3og/MnWhHafZsMnuG8KWbtzBxfIeIHCw5pMNs1gNJ7wl2bDU7UL4Dibu7jTuFclx8j9cgMvD0ItdHBBjfgiiZvtKqEIaRVDYH6sYp+Sh5+A4QbQC0wQ1rywKgjYvITSU+tsLFdhat3cTrjoKi5vO67AMofylDuOFwo94kVMaV9vRZlpTUTOkXReEmO4/CCMYJGx3qdcyMNs083rae+HftVNwpPGxDdiepUFKudWDWMsNN58E2aBTvM8GJGE7MQkpMGqucGv22ExGuIY+qbXrxnTCQiuqHJ3gVCZucgB6FrC9Ge/OgUKBG2Zt10tzrsHYhWdeLjaedwJLz244bAViglvI54TaGZJz+QI2jXPizIJJxiekrTKFaOMuAbPKWVUpmY08w8NQ4fwQJue4pnwswFo0QbkIdv07a4jdaYxkucgFGzlAwhfKpLLDEGp8b+TIZmL6oRRKFMxOLJCLfZTCW33YhuE8sFVJ9OwXzDz/85c//8rdbzbSdsuLWM/O9Lr+/njnIiz+pZyb/KUqn+DvpmdlgWD59Rs8sDtTRp/l4chPm9Kk8AGftnInxWxXGe4EUXIY5zpmoQnqbwfPxYtslXH6DtB1EClwf8s7ggdIW23AkUKMXKmH4mwHm4al5fp259lTm1OZK2awmIIvSGvB5oLkf/G7WSyHdDsy0Qij3G6TpFUw9vPdJdt3AbjM8l5EJZi2Gl6H4Xea6wfDqpSUy9bPZTH5KzLBkMPn0wbur1FEoDe1erpP1Oqnt5EfII86BSCG8+WWWLtXLOLDMUGzIvVgbYYGgmSHlp9QbX549YuuV09ifEvtPAADaMCIdk81Q5BXt5KtbrgjI+3KNAmk76g9QW/6IPc5/bTGsqqa/zUFm8BDi8MTMdfaZ+doV06rWVM2XkuQ/lLkGf7b2kMS9oKUM9a22zEgyWa4bhbzgtTnEyT/Z2+fZu+w2UgbxXEc2N4QT5RqjD33da72ZiveZXBbk2jQyTlqx1Dq7JQ1zvVOlGjIeG3g+FTK5hjvteCkRu/Ron+eiYX8UvC/QUYWp765PT0qC/F68DxTMevNGchxDrTcSD6oroPBmYK239JXKHyBZ9rjHNep7rbhKKF14bhlDsxxJ95djuDd/Pe3lxny1ThiJRx0Z1fxdE2kZOzBG7nt1iQmw9NqpUZDt8dIJtggSrDH7aJ838poI1uIiVLisVj+kt9ZpgR7ZrHjYH5HWT77sV4oq9+a5/1cbnUT0VMeK9iCMH7/hRbPf9gzijsxOFcL4jU6kYzY9683zMGk8lp9yYvQdG46UVjRPPVvntSEu+sPlKISrK74015z9SHS/Mhxe+bHQHbgXk2Edx26S53ByXXIq6GvQwZ4NmOLHYZ1b9V+GDVP8mmTYO0Lv6891HFiLyvimDxdk9lniFmrESrOmAulKZ+g4G/XQbrNKZoF0GGoM8JqJ6a3RAxWLoRZBseeL1fmUlqOTnuqxGmiriBPx++hLjPdFu0DDTt/pUegONI3ReRp8Vsle6ToiBbmgi4CTDI6TFWOglK82LQVfxs0hjQa35MSq9QvJW3XhILz6URIFMmKNSw6Yp0RCJSsvL8gm55ema85NOQnbLrc0MTYvLsfUp5smJgbOYLOBjdvsmOUxOs6+HBMtEtI2X+HhUzXNd804q4CcHGLCtLSOk4esJc7SVqLocSWU7JcOpYES25CMZ1mrIU90SdfVudyAQym1tv0gKZnxWg5EIogOrjODce1mhge9eqCblzod1QaIF7XhdvMXrTfcjv5y1htuV3/ResPtZY1ab0D7Vm+AdK83QLzoDbfX3yu94fb7x6Pe4BnFVKgNmKBFbUD7o9ogBqCvNzm6jYVzxwCCtnDuKIDXFs4dB3BnC8d3oixl4TS/PhU2SQsH7QcLB/LZwmkRAReVhdNiAqRwbiycFhWIRVk4N0pXVBaOXDXKwhHTqqyYFgfw7kPZ47c6qwbNAT7c6M1gXpAiWKhP1DskkD4Wqk7fb3UfyjBJS9yAka2qjBwIrHqrYgfX55kvEhk8yNlu0kdRKh9Qp0d966VgSFalZv/BFLJwG2LIJ00d0llTv/31QWnqt48/HzV1y5DxQlG/QwhZKepo3ivqEM+KOv3ErKfLfm30dIxm1tMx9llPR/OTnt5cciafnFgsXJXxO9wQPxJpVfx+ZXkS5g82o4xV5OoPwYpFJxLRiqMk3s6EU7ziOieoynwcWKTxJxGzcKzwp6eoRX9ohC04bpFmutQW3phnCJGLlHXowvH9bKh8REQvWpl85vAFc4PamnUAw+Fd/ak1hJHLLoYxPsg3DGL88Ydff/jDjz/97deffnlnzLwzZt4ZM++Mme+ZMZPeGTPvjJl3xsw7Y+a/WsbMO2WmaZv/+svPf/zHj7/+4Y9//vuP15f+5Z+3zulKvOdqpM/8Pkgan0mDcfaLysq+iEge1FGHLh7Ux5rBI/85NniMbSQU/VaNzuXcdYSOejo7HHIkbuuNzBDWrCqFaWAT/iAqdJoATYDBax0RtqnHxsravrEShUs7hdaqkMw07y6Cb6INGoRR+YXrbpQxjKj8+iqH4rHxzP20BYaSGxC1vs9OjHjVXOjmmNnz6pNbf8YCNK5Fz+l+zsxMezVTxVTrMqmmvXl5WWSi0AhmapcTqINdeMHHlVHx5ogXRJdKB+AHL0B8QqQKUFyyRF7yJFMfl1/5IKoD6kqMO0VQQWbAnKY001COcqsKFI30miFnSXTfL6v/sIG2VDj2aGFRr7pfDzXoo9UTzuVuZiOoucprXcatyg1eRKptakAY7Jr3NKCG5cCwJHVW22KkPQaZ+JkYAThpDWOrtrAOwglUjGUFEMR+qTQCKnxzG9bfSlBDm6fHid8StV9kaCCSruss24DJWhSFli4EfG7bESX69ASoYTZsXhYAPlG5Ui9kfNaErLg2B5V9+k4PkMzhBGZ2d4fPsEDoRaNR9ok/WQHYD4HnMvZxBjhL1Hr4Jc0coS0Aeq6wndohjC/qX0akxKxLMAZoR/SU66Mk6p6Bvd1flnmWy2sO3G0Xxrp4fHnJcMH0vA+vQ7Ghc4VIG9WB4e2LYx+LKFEyYRvaAi9tCbFFPRY8KbH6jbr7GtPZ4Obd1DM2HNKsCxpb+iUnICUEDkbzWEHqZR5bpDLwNP1EX9X06ahbfrQuxmMEV8545t6pGfyF4tij1kOnSGx5KE78wlL9KbrF03WeUl2k7pp6XNcq9TYJxPNj7YtCbGg+TWgEH54VuCD0E6PeVHf9bl2mwb+EGznxLJCfxApADmo+TekQWx6MEz8xVfTLbmG2lCPDEr3GHaOdXQyQ3R74dYaYw85ZYHE5w0Tr8uua/ArhXNxrGOxSbAZbK5DLbTcBO5JNxcs2kwRx3wx0MBuLamyxGUS/NpuhDcapzWAqcg77udIXlMXxesPrLjNpqATf63m0SOcjArn2GyarL2oyMHw26990wrVl/RsHz4+1XAtHzYeFZhjxwTLU5v0T4moJol/ialmXyjUYx4lPEQjtpuvuI+/J80QidbMMhgnlAakZTBhZqcWQdm+pBU1ERBm9WJu2Wtbl9dq0hXsv12YZatjse7Ut29ZCya6zP4WE3YXg1x/K4J20wPpvP5+DKnFvnU7izFnfVX3/Igzt1Gcg8MsK4dyh1RNo3PKuwN6XJFCmPB+sN9nseNkgvuyuiRXk4R4kvSzAa9xmhgBlrQPMFpp9r0lfe0biie/YFkbTY2XunrBwUubu+fKrMtcWTABbK0GQ2JpgR+XVY0ayOy4QzxPJxKLtpx2TMAXRXYutHvSaZGD3KAaegD+LID+1nuaw4NRoGEuFlx0t7+a8pSh/qz+A7VHUqovEM9ChD8cAM6zRljWGD5KBEWcJ6Fft81wBIvjyy4EHYYcep44bRJEMACFtsT3uMzId1jlgxlcDlD1bAPzc3+65zW/7U8BL6MVbJFf0pjvhpXpjYHkGDCszi47n04ZaZX/WKSzjgtmo00Km0heKO1ntQvT0xqNibFMmOImwRkKSI1bJB5FdKGLaC6ObRHKVOLBR3tIxn4HRRxP78Km5O+JXJz5J7eBoHq9y2MB3p/ubaJCeh6Inwrxkosc8JsgUEEnuljWjcUw9xL1NuqbNGSHaKIY6WvtQ15xSiIdxiXXIoDbOwupGn/wOA2UzTDUVIRGco0106YtATkLIqWED0YEXOJprO0X83ZlQOWxZldncxOJuJMoC29AYWbchQ6E143KsQzvg2Am4sJz+FvTCkSpPMxiqjDgQIKINA/nHU/PSaeamoKfulwWO21Y+W6m5n60z8zWEt8I5A9kFDiueJOo04Nc9iPyCwym+94NI51Rhvh9E5VVOL3wQ8bJTS9PsDSQSbKwj6ysTvLJ1ZH3uWtuigTb/RDproN68NsaRK4x9JIwjaj4YRySejKP7F+xqHMluaePoHovyFFhfkBnBxlGbjmr3xhFkG+Oova361Thqv1zqahy13oZ4Mo6sdxI1O4lxB2Ucofkwh55BeYVx1H4iKtuodUvgfSlNzhfmjGXb6F4/SdlG14rr3HGPtpF1L7sHPhMitX9sIJ6iB9EG+wzSGfzMEjnPjH5m7Uhk2cOfWceMTAL/zLrOr7EAoKF5h4AG4WZAzQVVPxLpK5nf+CTbwKDZZiFqHDRrxVUgjgOiPDocBy0NanMeDDV9NRSp+QEMrebXSCneQEiScFRQUKEkmxrsCGvV3v7oCLPGv6iGlh1hrZS78Kelo8dM7rmFUcsgbHmXTeja8CKqJvA7HjjOjMB816cz7OUy07XAw1/gEaf5oIKJUbSZGc8Y0IbrxuR+6/UjxlRU4KZVw3PqAg/IeL14jGEofr14KvOQiLVTBbNIQdYWtfr9uggw5Csvi9RVq/keMQbZCpt7xHjE8sQ9YgK4VLLAKYiIStUFxx6yFZLYlFd8an76Fkd9tUQ6SDeTXAzw58Uk5ywXOnn2qXV/1ZB08uvT66dJpg5t57j5kNQUX6Y8Gcrs06fGfXdIOnv06e3zQhQdOvrzeRb1jV04W4cv7Gvo4N5kZz617jtN0tmVT6+fDjDRZ31+lfIK6+lVKvQm4cWn1kN/RLUe+/DH2yeVRnTn5MDPFsiMS7ieJcogSwVkhWfRejPy+84SHalvtnFaAvWtgLaucfqcXmUbpR+CXYw+e0FRTiF66s20rLO4mE4B+pQY3ttbRdtBeRb3PBOBCd0oNoLAJPZK4XHfzhDkFGN9FKnzKLqjA4dFi5OAerHxESTJcZaYoQYkDlQDSI338vPHGmKA2qxuteQQSrQOuTnJg8mjYdsk0L5EpGCvjDckvDPkiDyL3t69LoErSgucLmE/wWcJBiFrUNfx7SpQT8rTnDKf0y5lPu0y5tNTwnzS+fLQnOZ0+VQPGeZabxLp8kJtmvLlSWua8uVXpWnKlyelSeTLC6VJJsyflKYpG3tBHpYJ86vKJBPmrc6W53tKZsvrq1xmy4so/ZQtT/qSzJbXS2HKls9JZcvzVS6y5fVVLrLl+SoX2fKsLHG6/KoqIV9+Pck5K/4sefgM51QIkS+fT+nyi9NQpsufRCot4+SkgmCTS8bp8lkwZhunMslkjag7VoiWY7K8SCNDsrzIppDJ8vsbipPlN8EHTpbnWIjIledQiEiX15EQkTHPIQxOmudACOfMb/oic+bxFs6Z5zgI90WHQThjnqMgMmEeQRBOmD/GQEQiew7bFPdt+eYHkvPbjjthLts8JMynQ758OlZs2qeCTbfJl6eyxSlfvuSnWs28yZcnL4NZcu51oWY55sv33ayqNJ3Kl6/rEhHp8pWWyFydWTfZ8t86Wf7vP/3yb3/+8ac//PWHv/3wLz/99ae//Xpny/vhJezZ8i2W+v3T5aOrn8mXt+VL8uVL+aLKQpeAO59GwrRUGvhaE9Emf4OgKR+3d5VDV4V2mnhZlR5JygtoH8TzrU1Fxl46e8sol2NKhCHsfruJnz4RQXP6QoLmzgzdestYPV5VHzLBehePiQlShcS8BJ6XtHDXQ3hr2HP9XDuuPpCsZUPidQ8iN1jNWIRV8CBSL+Sv8CAqIwqzeeGDiBfjqnjakUZ2H+uzxSBkqpjPWzJYH0Ttzlq3wBD2akpS7No1QYpdpYrY69q0SEBRiu+lYGdQuRHuhW8JZcgNSVDAR6vXqhlku4GY9PpQpD4Vv/BBVFSGShuQgfeKFGfL9ECizvSaGTK+N4WmNiN8LypNLScZFih7aO0zs4dlcjUxqbJKtq9+8x1cc6EBGITup9YqvsNMNeqbRxfAsaomu1Ph9WVDjEeuVsQCeN2gu3LdKGvWvUZpfINdW2FsjH0JVFLPv+aY8whZgTWDvbE3L/NjEdujp27TqvYO9FOa0inQPEqR15eR+FZ+KqaBcz4jsnWbjzqi6lUPkBw9EWvNcE72HRcfe0ekZPul1gnCznY157C3j11mmZwWhw96rVeqUnQNDJWVI6pcb3OcWT8yin6nckphFdXrFqGDdhOift3xHJfZxNmui3U75ATGpdXOY5E6MVqNU7IfyjZHJqTTmdlKqaJViz9VFHNsNmvitESxWRPHpvjQRKvf1UjJ0MEyluRfzn4oU5Xe/MoHkT42WwFT8cux6RLH7fjYbAVr+XRq3lVzdj01W+WZgRO3wkTmqalKl2mLgCtmKorVCiwK0aViYZls+lQ4k1L0qSTk92bkwqBVnuRceJgEsZVb6hVDD7Y/y6xTuVOQdugJmvtW/0i8e9Q3A2/duiJzBml24bI+x8uRjgBq9bIvqlbLUzXdZvFHs1v8jdbNq5sqFLn4Q1oLf4I9XVVNyqknuKoiF6mI3Ur9fbiqXKyChjk5/Ws1qavqhijUV1Xj883nqyqwQS2vqpBw78mripoPVxWJ56sq3OnY800VPbJE1U3VysbI+o28vQ0ck3xToXV3U0G4u6kCRxE2N1Wo+J7ypormVaO+qajw73BTtTqzoG6q9hVlET2tQvr0m5tquyzWpRMM+fXdTP3Kgpaost43vlJ+cwNhoWPHZ+kSwZrykfyvuyXlOwLBuqRcRSGiLUDTQfP4gop+sIIHuhcr9H5ZlBTzmrp6le1pTfkM6mpeU74iZ42T4O+JqkBjsWoS6/7GCp5STR5E1wIoarF5pKFc5iUWW+gcm6M8m1CC2ygjV3p75ZN1XRew/NSYMAKvby5dfMiR0jzIG+cLxHO+s9cKirfI3AvwhDrvEcBvYPJVLBiKmIcxO/Pic/wyyj5uk80pRAC3HK19sx3Oz6tz1QHsabNAK1cAOdF3z2ldqN/1vWpiYjiVLxsBCstPzX23maucRN/DEiUlGVWJLGvEvHC/8GQXLF8271p/mT7DKFBHL5IFCfQFM9JBn6iQilrH1vT7+Ed4MdCrLlwM2HYCWMs114RTyFquJSfHI7SWa6eJVdharURQkMJHHCyeWeFXdC0It/BakE74Wm44jCZ8rdblkE4AW/c464qwhUmZILbQ+oSxJfqtIG3kmDTKlru2ELHBC5itVklZrKr1cu0N8Qi01frqs0basuwBkOR01HzA2iLxBLbVfoJQ0oXubAsgDza6s9PKvJOMv0ksjT3eFkSbU/w6IV35SPT0Wc6gW6ZS7bdyyAmZtq1MonPuSbazL0k625ctPcwpjdWgMmijYRuDPC7WsK3w0lRRXlY5YXMxLyHbgojBGfUkU/BP/MoH0ca8NEYUiidRZBvVejQBWcub9WjY9BZLkj7ofGxT65NXrhVXEW643kiQzoftXdOkzlpbImeW6bO2FTPmqs5aWyoMPXHWonl31kK4PWshnc7a9vO1rIdt63MOp8P2HmdeD1tMynTYovXpsBUd1/hhYlD6sG2Vh3AAGlF5mOFZmAprQ3en7g/bVneWojpsbS6vpM5aat0ftSSdTtr2/qxWdptr8tvqld1G4sq6si3XjiexMNz2pIVotzsdHXkPoqdvcjxpbSyvACZot0S/I+U7udfMHCBF6mejezHA+FG2YsLZBiXi96LkXgyWvdTOBZgSZQAPsiwBoUo9lw3da+rXyN/1KNIHb3YCM+kse9WlYq4rmOMDzLOV4vmcT+7oftx9VM2KnuhL6EvM+vCySV1i3mFjsJvoLrfJBzdRqyVjnHN1LFxafCmrm6gVxFASCl+66O+Dm8gGhxCudhO1vsSyuonarwEpwIpanoJy9I1N3wbtk7LpravSh4ECUWreu4kgntxE97y6xaZv9VDk31E2fRvg6iaylzGt4hnUuHMSkWzjI7qrnuzJR9SkpSgfUVtKMSkfUZtfwb6h7i5f4dITPqI2wpCUjwjffeMj2q4JlTMEFCNcXpznwwhHDXF8/XTseXfdjd3XQcS3kxebY+1od7HZwsUE4mKzPTGNFhUlVFHzZI2KlyU4phlhwhZ8DHG1uSelrY2FskXF1XYNPOBNQIRwHAdMr5lQBrJd6lx7HaMceMfTmDheG7i7DOEcdFWZw7C5+qpwXpvhkiBqPk1hQXKb7aV9vVcGvnnKaKJuCa+n09MosIGQB9UWEH9cIoS6V13Cig6HIqNRXrAFszVceyAgda2B34swda1F0MRossy8oOq2dGINq0ute1xdks7AupYtUYGsK3qzgdal7s/YuoZLMwS4rhGlGSd03Qa2d9BUIFIqlwW45YPo4YVnZaxB8eT947WDf2xF7oAcXePLH9TGy6Tz8I1UVXPnTo+VE3z1ru8b4kei8FrBtFmktJkWYQsfidbu8PvOEo2nXTIcaoynXTidhvG060AQ3eBpk2iHp10KjjnG06YeTYDa1PiEqJ0D1VRpFa6VwSgNLlXhaCMFLlWGF1r1t1xgX2v1Lcs0d9LeWuBXKW/U0QfdrRh8Za265TJlxuGXilbcboq9o96WhlNhVttSxhcWWhu17pU2kk46W2LkFqhsjRbxpLHluqhr1yzUVVsbbTtlbYg2ulrDOz2qatngwwlNrfEzZqWoNdjZs57WkEO0mtasaq2l0RfeKGm7j7+WbAUMSBemk3DgvmSUDSWvlLDIwGobHaxRGwalgsWRv+QIPbm/yfQtNiIvMya6oaO38QqufIuO/VIF2KwxImvbFoR3YkciHrO2Xq3JsFLBqAmJXXO2Izfc69myPz2qBHCS9soAU0F0iEJWjyLMq0/QPN1r5ZKKwx4cRY+UrG0QoWSgUmrsdRbL2CKnu3mUv0T3YnYrgmiOA03Nj8Z1iggi0OBMbw4Fmmuc6ckD2m5NHiFR26prCCkNeLa7n4TWEivUJN/9Xb2fgVSbsOLBB2RFezjIrtWIOooA7k13nLEu60f+eENAP8pLkDEa1AutBQXD19Jrw0jFahsMCGEUCRyNfT2l8kHF3Jtk5r8wyUx+k8y8SWbeJDNvkpn/aiQzb46ZbdmcIjl8l9D9Jy2hEz9Eb+z7BZ2uHcvHcdWbF6Vy/l0r966Ve9fKvWvl3rVy71q5d63cu1buXSv3rpV718q9a+XetXLvWrl3rdy7Vu5dK/eulXvXyr1r5d61cu9auXet3LtW7l0r966Ve9fKvWvl3rVy71q5d63cu1buXSv3rpX7XK1c+T61cuXTtXLvQrl3ody7UO5UKBfehXLvQrl3ody7UO7/ZKGcfdfJfVmdXHjXyb3r5D6qk4vvOrl3ndy7Tu4318mF71AnV759nVz5ZJ3cu0juP3eR3H/5Krm//PzzX+8yuEsdqr0Iro/j+xfB+W0x2//9+Eyt8bcXzn1J0Vx9LrX77/vH8qD2vQZlDsM6PehpZMXuH9zXBDr8Yg37B//7w5x8piDQ0JEwE1QazXbvuwV2aj28As1KccovogIv0+UfRhrlk6SMSCJvtsBaHWfPhYBTJYEkNXBG5t04vyZ3O8Piifaa2j0a9zHlLUwng4y2sm59i72fpenEWT+BTNiArJ+klMTLXvEoKQgJlg0MCkPklBUeCrs4E4eof4mZmDqJOOpJ1HzEy/FNwn6j01xfxrNnTm7D1hIpir11nSaKudEz3VKlUrPr/T5gvouH8lHtYusXXoXTGR+SXKAH0fXC5QOSbIxxaApXK6Xot/7SggrshTCK/Tlwihs94+6lTEGVNsZhF1KrF/mWYvEn3N9hrn7KIg9Ai6a9tNE+Cp5ddaUi62phWbN5WJBEGjmQeBdOHS7CStd9QQ1w6ozGfcgFpnVY1TbO7UjMgSx9GoXSBNmnsemLY6dG6z5FgLr5S8S2ukPuQXsrw6NuJLNn97f+8k/63xdwe/YzffirxWC++U+IMZShfnz730g9lvw7jcNsrbwiqsh1xrsge8dib7qyVaudWg9LzCL6ifVOb58WPPVnu+C9f/l1vbcs6rKud2rcd4ak83r3XGEp1rvjWqPjeqe/uf0kcS2BQ2ZhD3OMkcMVbXmTBsSodzMYYJBavobp9f1beK863VuXGmR2jxcu5/ccbmDFgFoPE+kRbqBxOH6/w5DnLmGSvpk6/4c/N2yLv/3wl7de/9br33r9W69/6/Vvvf6t17/1+rde/9br33r9f0i9vv3z06//+pcffvzp1upbQUUL8nfQuqZcfAu9/tto2/aLNO3sxmNuhJ5+q6ZN+nIe2QC/VdEO1M9cwqcV7es6L59RtlvZjLcE6RZUOVnDYnCoAguVMqJjy6tJUDw8squjyKW/FIa8VKRcmkXlsuwVDqXJXeAcEsoAsk1lpEJ46oaXvfey++uF2CBzDIpdrKv6V2sQagXyvhviheWaeUPR6rtChrTIIVjm7VJSgUJAT94jub6wQFTKHgipJOib3ax2AP/BfZgFS9G99lMZlWIWCeUtZQhnuVUJ5cld5wTOc4uM8nsDA//NQ/NA+9Q/WUhlEuKmLti1bqtwCp5bS0TbcnKUIdPgG1Hid62/KrLlow/8BSJg17pgGd+1Kh0jWvUnXf/aRbzSUn0+L5OBCmnmSo79KlI1ROXaGFBdalmqSVjaQr9KpbyMPUt1xG0lotPNRERhuVyJTdUn43G7En1LMXWblXjdw57wDqaVCMFpJeIPlpWIn1pWouzjbim2wXHuNC/Fy7gppAS3inCqYgojk/x+XfFlneKRwdJsZKcn2HhACBSUilxdqBVZIzEm7nqMkQ6YGDclaJErTyIhON1TEdhkRD0p2o9zS3/QdwLPRUNKqWIjRO5hsklshPWNzUQsYh/Q12prLVm80TueXWsZMmcsYW1lNLM+kP5s8jozkPeBZEyNa5AZXNIVK831pU3ZyngVTbC8cswwDaVithvStEBKqCgTI0Gf7rSknEB8Z80EVfIHOZnKyPwZiSDLamn6oHHn1eK8vE15tWCuRoGRpVQeCPw0y6oYk8fRUDVmz8k0Sv6eU/1gqmxoGINuXSdx3B06LqJeZ3vm3C42uzlz2joTeLwRtwsE/rCc8Af3mZNhJrfEQbpP5ZnT0HBrOp85LWOQYJXkmePGy/85MnvCZiVdl8ZS2Cum+NLezbLKRjLQs+z5w7FUp61dX6nAa5btere2NG6Rl54ziqjyZRUKHwPu1lat5rkQoqi7tX0hFzfXVMvU4mT35FGZ5Rgd4erugmhA0sWRa1sCVsrPAnuX3SzdI/HI08Lqa9lKXKbAvbs+tGNMIl/0DPrKR6gvPIGxuO37CoHL3ut27vz2e6lyrnTdyOl8vELejyaPs/CuwNqcTcZ1Heh0NjWUDkKhFWdTvfYJJfbiCPSi3cuzU1Scdak8dvnHILbivG4/1hCo6uZqMK1WoDxcDW3Uxm2uBszTKGggI50Fz0fr9cuVau93R12D3KVrTh511xBrZoeGIe1qmrdWHRYO83abz24pyQvuQ1lagh7ilQ+iOtLZxTdqNTkcMQiYUHOp8oUPXMyn7w5LT83LPDVLrfB567n+0mcAikTUZKOdPk/WBao+c65jAHGEadEWYbRFXkOVoPF6+1KCuPnOa6FZQ70rhAZeiy4BrLEI385YC6V09Wcsa0e56LWhv3NpglvTp6sRKhQ91+bpuvNEuZX1iQsL/XltkbRn2/fOk8czNdfeL/8c//kCf6e9vRC11TYDuUldHCWNTbHcG6UVivFBWukWR3u/N+ZPBuGtyc/nT7nszVo+lK0bQrzyQeRH1i1EvCoeRGrz8ed4ELXe+8Mbn2RieerCzzAAhDcOn2yvI9Iqf082jF8qvD2tJjQcvT25vOLR1ZMb0n5Wnp7cvnJVjh50+snP0yByOXyo3Dz52hHRaS9Pq0N0WsnNcRgbByX3GntxGx03XQed2ZjVaD9YfpDPRnX7maL122tC4oN3JzfA1ay029J8w0X5dtC8de1AuvPs3PAz8ejYudaNF9Ys/Dr5mjBXtVsnN8SGcvbq5IbLn7VT51pNVbwPPh0sia1LZ79g1tKCFq6oBxU9Nno797HQLKFseuOpvZU4lbWM0JSDhZEaukTey2IlA+N6Z53JSRL5V0bv/fKDzqeDUHa1AbTEg/BstjSvBGP0pZqWOLiN6TCtwb/4ijnK1jNVvPJB1Cy7qvIvTOA8jjq2ebgON1aDDBVsRNuN2rEvZ7AmCO9CkkWhuV7IyCPBi/h+RDgnIGOEmr2cvk1kjNJ2djYExIuH5jaBN1p4QxQqD0q4D9cGr1oHb9BLhJEkvTNo3zpnIN37ZiBeXDP+sv0IF1mYPw17qp79eA1CySnbBxO0uGXQ/mg6iAHohSpHt/HJ+GapBu2SacBaREEiLytvR2bX4bJqBoPZWCk3Qk7V/hi0H9wxkM/emPYz5EUVl5VvNBb1eFldg/KuqMvKp7HxZk+MXDXKESOmVZ2EDalrFBI+yR6/1fk8A9TaTaozQ4cSg5BfOQXAcKR+0zy2X+dInXT7cAcLt6LmfwDGpY1zTKMlSwVahWvA47pxGIp4fbJlpcX9L14LzBK4/4Ns4/Cqwx76QNiOg7j0xpxm/zoeY/aHe6zZGvF0x+kv+m1i5j//69//5ae//XkEzK8Zaef+78ny5nqJ5GdTYUe61m/khjPudwrQj4VP6Ie/NT5fKXf0Or78ZwL0llNo62cC9C/naIDOu08F6S/VOqQT2GK7/7MCW2xbOymwRWu4XlOBLdpKMFE7sEUrMQwAtthKUBXWInX3CWtxVL4esBavNkrobLlLAn/Oav6E5q8+s0e1MYtyW2AtmtI7sGAtUvMBa5HEM9Zim1a/Yi2KWm6NtXgNkKlyEG9xSO0SaIvUuoVbJOEOb7HFHd0Rb7EleVaNt9hO/aLxFtsU1zPeoi0M3CLwFm0FY4vEW6Rvv8Nb3K2LjU92oE3vgOsc8qtEqf7t3ptr9SmzymhXMtnhhn3qDB2DOntq3Rfrk1RU69Ob53J9E47F+tTrBbLOYRdIyDrHYOCnzFDjJIeRWx2gKR7g2QYu1qPo6Y3Huv3bS74HameRAqmo6QiVy6INSjsJJ5D2GoESwkdYdcjI1yduc3IqeLRSgH/CCO3UuAFoJ9EOmS6KBPGTSEHT4X1nybVJF39sBWJoegnvsmeQT5oQ3+MLfjSu88pkMGSI0fdjDitq8eJrK+9kIgC8DSyd38x7toJ4je65bOW8h9XpY8+wdPVVNSxdP7oWWLoEEL8jLJ0FoKO+4ooBEIe44RpY3QaXrmUFHS+4bEFBInHpOvbJiks3Wg+4dIWJxHC5tblUuHQJyfXqahu4chMynXspqqnRtkWmc68DzVTzTp+R6Sy+nUSm8yB1kch0+eUekOkG0e58mxUjqYSBTGd5Rldkus33X5HpPOF6msX35k/UUonpPQS1VDLIwxYLpzF/uePCiQEXnVg40YEnScAvRcas3NBKkXRilYoDWl0unJY36Q8LJxnosVg5bbB1ZZRKDK6yEkolpFOsp2CKRFB2lmzYpEg4k0ldP4PYLnNJXYMDfKSmkiLI+5lJ6pokr3ikWrakP9BIkWzLIhUHuNXMIhUTp9YziVRbG/nIIZWc4o9qc8txEkqbp9Yn/iiqKNseOiSc2aOuPluryKMilydsuKOSfTnFHCV6LZijZK9X5iiSbZmjSDgxRyWLVcoMJJHJlzRvVOScPKaNopmYWKNENd6RNCqA+gFBUuFXrszOVWlfhQLrUKC1hQAVcoPW1uDhk0Jr8xXEuc1RSaTIheuUzGuu/yooickKQTAwVYwt2CTBsalWgY0UgjzD17SnkF6c/Ev1jiFPNt/Yt9Q6gsza/08WX8sfcvDLA0k+9iPP9/ADO7TXld4GR2/y92Ew4OUYH9FXzF8mF+dayTlkPRxBAzMbZtQ2QfEEdRdST9eYoO5a7mxETIOmp0L7uI1A6XYcojs24Y7zBiSqwCy5vFFaN91po7Qi2rpulGslOryG7Chq3M4ZCXuwoHLJI1JqLWhSr/4Uhij1xyhNc4p6lOOSddmovComrvoleUEFCbw8GpMq8EmoXiqFQS7zCmrvmINcg9q7DHBExrS/DvYK/xCYKEfjCOcvhHqyXK6o8qjKBJ8RrMgvkc1lQGHeFXBPrSvGpRWkdBXlUShOzX3aPbdOSoliXhcVdlHPjNacG9J+QQ5j9HpqymuOo/LUuLyQ4DhHl8mDSBNc0vvOkvJKUcVkKtNseY7IlNWY8+OU3RpzPoB0lo05zypERUYVNU4gozJA5zi4WDIHsASzhcOSKAJXee8qeHEqrAISfWneC8NYdWEC02vIwgtoHg0XmKqvCKBgytt7UfavUaHbcS8MnOBMnG2or4zsRxPc9FbdWZap6SXhWAQ6o1DtuT+8rk8z5vXh3M1MO2R9qeAKSVw3yDQSNx7zvOAAlmoj39UwYG0B2zd3tjeu0JiJCyLhU2WGbnq759Z9h0hqMQTHr3cY69QhzM03Ce386y8//6+ffvz17z20Y2xbRz2y09St3wHiZMAbfy6yk4r/viAniJh8KrLTq7TuYFJNnyq9TBTZSZ+J7NBDuXwqqjMyiFpUZx8O+m+Pkx8/FQnqS2po+srlbOkctJXdecwpJU7cGieOvGUjNW+fAGZ2nHYKo4EzWCv0fD8ziBiASOfV1q+W8bvLzX16/4AHbW5T2tHTwkVBy9lRM2I744nheRRk65x4XUUqaVEZ6bCSIg6hWsABf2e3oUeWjcf1LmpDc6zljxeZbqsMLb9g9siCqQpUn4Rdzx+vceD8Fq7ZiMtz45rNSGwRrtkKcoPEpWlm1Cx3Pb+slC+ZEsXXHL/K5IwF/qjrd6kQRHRzaKhqsdE3LBhmQQpPynDJ0zA3k+UY99a8KGu1evjkm35PSz8xivttXaxp7yDq9FyAbAZX8tDwEbsZzV5uyNUN7OlAshpPh4RDSxrrrgTpaswetC6W6RyyV7nV6Ph4xt0pwZ6xURCXyJLwLLoliZgVZpNVhrvAX7EVJDSFvQlUSHi1GvYm+NX/7SZaFpGgytFHzz5WDDytzuIhuwFc4pJ+nJ8FcdiJ+l1nyc0LIiX4umeJehum+CwpC/8Zv+0s4fW1RlXyi8lV57kgSSeunt3g7KQSzDnhJcpa6DrJHoBDm+sk5VdVt0mKCDPZblTfjrnIyEVevyiCmIjLutrb7Xooig7pQzEHwHjzoZgjiMAiaFoy05WksYTFzBl7yOVswSEcicTqd/1qrSvfQ/Y952LL95A4PMd8D224XnHRUeth3jJjRyWOGTBRZjO1LXokaOjWJREnzh7mbbKs9BcOWjEDXTqkVg8NIWtXtn9xrC8jNGErYn0FGbeV3TXz6m5REYSXVcK9Ea5cRjIzHAwmFyxfGOjnGsdxICw3mhZl5GGMUF/hn6o7hqH4wDAEhk5h6DYsuKL4Hal1z01IUsnuGC1OcfYhxvRAl3Gjdaw+xNTJfka0L8PfblcvtvC3W9SRzzzBERE0iKagk2drmSoBrnUjyuQpAzXmHjjckytGTm0S3IqNwKgq3Pz2pTPW9cwYvFsFq6se1om7/VjSmcqioLPDLcfqAkE4CT/oaOx+UKygoEDkHGxt8RoPUscW47Lsyy7IKK5+n2a/XmDNrew+kDiv6IdI2CGbKHbToA04OubGmRyGh9BT6zpRxNlEz3T/OJEXuK5Ne57w/iK7Vd6ukZpTqhHJpkyjq7HMiUbXKOo206hhTsyJRtc0ZJVnRI3bNCMScpYRvXVKMuI+6Cwj6vGUZERjm3KMqPEhxahhUiF3Zb2GXNmZlW6Yon2fWYcM9Hy+0Ejazy+HdP2grCPq0N7XCf8v6wHXqnDwr1deKtLV6VRgx3E1M9kM4+WzoiS6c/R08hxqleCuzVhVAleYksxAyafWwwwWPj3TPW8o/eDTM6tO91bl6OXieJN59JUBzchjnzmNUPfJM9QpjcPx+2eeLC+wTs02KtoqZpkaKS+55O7Eep8I3fBBtJ5t/L6zpKjV5zgemOA2bkRFcNgT+1tDn+NU0rxEBAa9XBnVBRPsn2dWNwu/tEvr+qZGL3ikNLQRDSVrAuaA1Kw+2cQrVNhoJvs7MSlheM2luSiIOEs6lOGuUmLXTBYsbuj+2yyYKJ6I8NhiFdO4+mEKyB1MViYo2lUfhN5J4LfSTQfjwDqEpq1FuOD6g4C8W8QLGhaL6nFADjHSmqHAjhCzR2/8aNuXphwECr13M7Rv4jr/5ed/+/l2m19aVBwIgh0Z9d8PgqAZIFGfL1KIqL3w8TOu7EJlPZ+DEGSQ7/gZX7Ydivin8LoJZpm+18rEmUW2WuQ8A07KAWoxw3ptzDWS2rEVCJg5g+YyUuZNRHJPUOAwl65PCV0BnOxjyXWzr0Ro+qLEUlmPDmzANATHb2ck4KVDPEWrLYxZvGFpVXodIrtUVXkNXcXvR9u+x0M4wnWJs/2QJqp6u4b540gltuOvB/Z34ThdYvTvcu6JzLJF3iEnUI9Bzn3BtKwaukUK5dDhJdJ0PogsZdGF4faCJHSnyEYy+J/vDz6jfYdBlaofCvk1olhKovqtUhc8PLF6Y9kK21tsLCsAaXljUev+a1jGyOWNRa+fNhZ1aLuxHNOC8sbyFtUkvLGocd8dks4bi94+byzRoePG4lnUG8sZbGLeWC2Q5NadRY2HKRzSeW85mTCsOqxSaDJj2BcMOqqtNRr3HRnCaWPRi6eNJTpy2ljptfd4u9cAfDgKqlIZytQ+6UJcVFYrq0JwlCamowzIQvNWa0I41C3KbeBgdkjuShSEos7vtFwqIHZRa7mc5lzBAlqT4ga4ftyJINNCdOkOJ5a1xFapRFnU5qV9efFZot5mnprN/LtWQFjMjKh+rpIKnGaM0A01dtLp9G3VxT/88ad/G0W0toV0hsr4+2RahPAFmRYlh3+PmRYVYNWfVE9zraiF/VwRLeUSflcqmVaDmeNprzk4JJXMJPLkrtd2wx0bPLVK1JAS7F5DaBWS9fBYX7zbF+rubyroLIFLrqHsCPM/kZO/pVigxJTsw6sxeWRVLXi6xlGOL2RzhaJByVD0jBGXkUdckX9hEUrbYyePee11yOp3Mqs7zgkwOqEWEA5aRSpwb13zDaIwSQjn0HJ66dAuZFhJ5a9AYfKca1CgMDmM2bHC5DbVnQkaE4YUEIbJL64R7Y3bum0S3j61NMnqqH4SIjGIwPwBPVlz1ENmts0oEfCaUgKP7K0q8wgKUObUu1YByu/CVW74TXYpGV1XwBrI7iGljfKRA2pCj5KWmjxJQHZOkikxI/GIInDqkFkUkSBPrePaX97DuaEROkML2YdVNaGxPSgnVNe40w8gMkuuQ627+7tE7AKDCtaEFYyxjUZPKG3zSwqKGG3CriwR+ttwcY7hVU4Vm0tuNuPa2cf2yctgt14Gu/Uy2Ecvg915GezOy2D///aurtdy3Dj+lSDveyB+ky/5K8HAmewa2CTGzBpx/n2ODtVVTTapO/dmd+AY8+Qxe6+ORFIUu1hddYcy1BXKkFYoQ7pFGdISZahLlMF9A8rgblCGsEAZUlvADKnd4QxiUz8BDcECDW4PNGQLNJQl0FBugYayAhryCmhwfxDQ4LdAQ90CDekH0PADaPgBNPwAGn4ADX8nQMO/fvr583/+9v8Nbkh/73BD/seFG9IN3JAM3AAIwBu4IaxDwporky/niDWELdYQbrCG9ANrEKzB/cAavhlryHdYQ1hiDW6JNYR7rMGtsQa3wBoC0s7/I9wQt3BD3MMNbo83uFvAwS0Rh7ZEHNwN5BBWiENcIQ7xbcQh/YMiDm+cyC9e7InXkJe8hrzkNeQ7XkNe8Rr8itfg73gNfsVryEteQ77lNeQlryEveQ35TV5DueM1lAWvIa14DfmO11AWvAZqsmhqgxVl0ewGqrKMBIeyJDjkO4JDWhEcyorgUN7EHdIed0hb3MFvcQe/xx38FncIW9whbHGH9DbukG9xh7zEHfISd8h3uENe4Q5+hTv4O9zBr3CHvMQd8i3ukJe4Q17iDvlN3KHc4Q5lhTukJe6Qb3GHssAd8JIN0IN5yQb0AS/ZCECUFQCRbwCItAIgygqAKBsAwi2/5V7V9q0D7pjwB6fdvjX8ICctB7AHSth4QA9pLDYb0uAE4IFkz1Dmj3qGes3um04ibzblE4rI22Tv8LJvIfAAP6VHIO7gZuAh7tIg2R3YT7IGHuIWeIhb4CGtgYf0NvDgvh14yCvgIf8RwMPXz5++/OmXF+BQe1XYL128//sADvUjGuG1pvdohPv8IQpu+5CaRNKj/K30WydIRcvlXRTcy5L+PYDDsz9EIPzyovlW4OGaH/0NKbMDVaL6/WjsEx/KpmUTcuGSoFV78Iit5kk3L8wwAKYKkF8dULlqMp5StemGoxsTy1udUkBlNdCoiSux/hh5ysVieyt0rC+2aa4G238+hsP2QmybCneNGYp11SslNWezNmXH7VC+n6CEECOq9xOX3lI2eVustBeZUp9YaUFtDJtSVgZtqBSWAl/lqJcLCtPgpzckElIWJH/Td9OF+/ISsZsuyuXWnuIVyKBFpja+zR2s7sh2cOYehh1cDpQU5460d/nggHGqc94YRPEumK6LMPCpET0XUE0G9UkWa1cj+paDEuFNSgfV002atahKxXIxAMEbI+nz8lRYkFOn844o7250gVmH7njcc06VSK2GgL6LNNxqa0utoCqzymSZxcKscUlKhyrM2oVmaydebx+x2pEpojCryCbomahlZfcEPdKMiTJ6f1WWZRWrBBuw7kXWLdOvAUf6QZdllWVFcUiQ2YlG1kaCl8MTDZkq7SglaWk81G8PW1XbkhERjQ9ldEc1R+VyN8lFXrHL0Wn6CaoRn1+VDOlPp8xscauNVk7WF0q52MIUSgRaXz5O12UShWCi1IPNyTdu+WUQs3maarTKz1JZaF7Yam0uoqELWWwW0RBRlKYW0UCptpdpEy2ulJ9tNbqKhfbZtJMSLJqL6LN3/W4NVdXVXENjgB9BQf1ujMiB2wS7SmjpxFb8G5GbcUBokSIXeRtNjeSkUeqUKsaBanjXyFXx0wfVF0GJERqdt+ggL0fGPlMe6UGOQeG03mhZcgl00cITyt3S8YcaJ12mmKVyC1sgL5xzBF4yVSYKCR/aONICLxkwmJQYq/rTzGrvAEA7W53BChnUzOpqfn3aI0LXMsXpbgBuHUgv05WmaWepKTR0RnFGxvI0uOdHNKFk/aDIxLwweaXPpCCL+lC+laKCcw40RSZGV9XVJLAJ/uWh4vIlUTFk+EEt5SQX4Eydi1PB7n21NlEKikuTA8YpUicU3uxy9bZGt1wlzeoeqepWe9ntqCzZQFIpsKXojQZ1oVqNsGVOJIW6Hi4Te2nQmArNoi8yeFcl81WoK1fqh18dgMmErWaTAqVu6zpk47vAIR3WL9zqauwF09OD0R0pUOkVBgBdq+nVOaLw7h7BFiELCAmc5/rIvy4GX5mAwzjJNZRBXBAzkmQcgSAvEKnvh9RO0rqHUIFnWQuBy4RaBA3DiJp1r3A9408I752KjCHi1xuk/JQcwXHJsYwAUMJgeWBAkBD3+PZKa589v6Og6NffPv32169/+fTz5Rb33Oqez/PLaz35LkCQ22lv3v5VKf49QFAJ38ksrvCx/PuAII+S6vcBQb58UFfUi6+d63zOb2ahRJD+y8xGd/EAMRmqku6544tUd8aLT91352ZByFiELYKY/hXoqlRgCC5mqJRAggf3Gniz5mPGulvrz+FiFZ3/8zTCq98qOE0RNTenpN1783it5xPLoih/9eqezGOOgtwMzUGhbvpiGUhKJVXw7FSsZFX1QpVjp+rtE8q5+fUnngtB30HKkEljWACBCHYn6MnqswlVELGxXzLO3BOkMdygO5bYx8z/LbGRW0L5I9+fEbqPBbLRGPpO3pj8QFfzYp47z12fOGO0Wc1FxcqVqGqDvgYY5toC9m0S/A71vDrliOJ+Xp2aLs3OK9doTVQeUPxQez8v8iKDDaO45HTPvX5bDuCrmlaeHlWLeSVbz3FePXvlgAyimLy8+ipAhySYfpRtgBvPgUJ4JPdWaOHkgqh7pQaYcoFGK/3zJ73f4JZj+p6GLdefXP0FTfUMZbHTlVFsFM4hHXc7EnzdktlVn8a2AXdc5ITOX+K2XVtNUuzXhKkQaTM68L6bj10ybZCICbSZVMmcHpxX6ra02/RyTL9aqyR6iUGpmy/e2KWc0yoq+8Zq51WltrPIHeqbdxnqjcPNh3PRXk8t503Ci+jrVWCPw6oNnp4+Axkp5jTDSd7t8DdedUnftjblxak292lNLYQnovNWKUmiTvRar1Qia0wHbqRNo6nBWnjWRBVtOnjiuDaD1SetVz+PLo4S7P1snF8DqmiqWr3IsClc/Z83XNHThrmXoTRXuPZLh3i4MgbVenfIoe67v5ybZyp2h3IiNczGC01zcc5xEOQ4KpCZ3jw9VtTVZ0UTErltkLMFNIfN9KBCY1WzI4J72v8lnY0KtOoW/q4Ry7tT9q4Q+cSHwgWwmYphGQcpFTBr+Inv+LdCdyODmGEal75NXfaRBF+wkii1Z9BnqBTZAtApKxTZtDia6ETWDn15zPSAtrDQkbtCHc821poeb3mFgL6j0mEgIzoQ7JkrTk61cvWOO8irSwWgy6BkSOuwdZh7FuDrYqfSHPJmtVFpB/hCruGtUN1S5jNn6Rafp7GvWfZsN6F5MuFy20BZqeeLdnVCrVnzoGdCLrV1NffrJTLK9hGk6UoaeAKr3Svx/OTm5Uq91Qf2M91iTOwFUDh04DC08QSlt6415cWc/sWmnpnEkjC4ip1dpbyvWtvKlcetl7aS+pd+XNmK0os98JUtntY2bVLvk1h/GYKxdRUtz5dRhKhxK/vSQNvOql4Va9tZSS0LtO1sZAzK5D3o2mmrvCTa2W5ypP9shTFm7Fvvi5lAZWMjBB5wdH1+ceTk1Ivpo7IluBrD6kDyir0AcNmdFQJR3PKXArMMu+MvDW931NNCfHYSlqTq8cFLExNUQisHqnoAMCtwICj9OPNamcnnEH/AYsSACz036YL0fNyKywgEKI3rTovcHfXV4JpY6nhHGJulal+mGcysShrSA0euAdwMFzCM0nohgXXDiW4wZh9PpRGZ1zqpWr6LuHhtoNeF1AUwRGrcmlRg6dlrf4kZTM8R/BT5m/MIJ5OYkLGESWt/KUbKnsTsg+RK27NdxOwmeLmbkCuXgPVoJaDy+wh2hIypWiTzxZhZL5KpYNarRTIlpjtcwKQ1cOjNiXMVUvdz7ZlhCQk68RsRBfhEIAEl7Y74XbHV/pCSlz/prHmck3cnCrGjpT9mMXa0qBpbCLQT9hAYPjlmxPQvSE5/9Oazs1iQosnfdLVspwTaPeSy8dhzDi+xF9m0Tormxb0RmWclr7aPvD66OsLR3UbMC44+3kfKxSOyV9tHOL8Wnol+t/uW4Ji/BsdzTKSvIbLwxWSvIeP8kMlrIA8cqWsgDXxOXK/QMm0NIIhXTXyRF4U5a4g44bI564k45TlllS4YMlZpvEtYcb9mreKT2GQ1FO7nkKsG8pHUShWCrsiZVyo/lFQUsuZdM3mqp+f8ahJc0SFL9dc5+pCkBtZ72iT1+RBy0Msc9XzcNqeooWJ/PWeoElq8hlc6fxfZj8Q2OfVO6O2LFdrTE0Ot0F6VIxWtjZDzdoX2URtoyhLtWbKplmivCpvmJdrrOrZgfgOezlyiTxeIaJZoT6uaxRJ9ZgLZLNHnupzNEi2tqyVaYnYhdlk8mPYRg0PgavvIvBCr4d1G5quxj/eReSHm1faR7RKtKB7WvF1TPGovVJgoHioBJMXDLhiK4qGALW42OslZe6u2yRLlkKwv7Cke3SjamIceluJR7UmBonhUkpUUxSNjk68pHskYD2uKR4AhmaZ4eO6UtQtp3FM8DtjSkOJRYSlLhkcybEgyPDwyWTI8jpnfcWzZHYfhdhyoxVfcDncmtEtuR7SIObkdAfR/cjv8o8zsjovlu+B3ePmekeHBXIoMD9tBZHgUcMLI8Cg91+4MD7EdNMiDc8jzm4gWOK59jgwmae3/bL8nv+Ov//bnrntfO/L7C/hUfzy3wzf3AW5Hq/ldRT71Q0U+6SP8jiz8jnepihzljSfbcTuKe4MUsuV2SOGTi+GP9ow9Qbzr+29JfOXAbl6x+HIl4lvheyGtm3KDivKKBpkwufxAMJYbWjKMS8PBjCqD4VEKyfFVHaTY26leu0pnVZbTLM2RN8Qumgtq0Iu2ZKN4VACxZOP56CyaRB1Tb1zf8hXsiZXs9woJ8OTqqxu2XP1SwRAgV78eqFN2FOeS1k0XKo6gQ9GpXH6oaFE3hO6Zi2zh5eYttsSFmK6i2UMc5ECFdg44OD+szSERv0P7TEKDFAe50hiWd5OgxBGgM5OJP8aHvZk4M63k7p38956P6XHhwEZ9K9ZdMIY1+Z2hmTH/fIprXdtHbi635dJHlMItqgwkONabxPow5SbJce9hpvBp/tjmKZxo0MlyE2lclZtIbFluIsGx3OT5w7XO5SapM3XX9SaxKj4OkKmhiFHqTaIqYtzVm/Cezdiox7H1JiniaF3qTZJfrXVnrVTYcrpjRqWX+hzE+Eim3ORqXFebXMGh2CRmnDTwW5B4EGO/Bc/RkEM8fgtS55cNxSYpAXuZi00kNBV0putob9t80/37MpP6QNo2lqlLYH4VTy2ItyIuGX68BPvHTSorwvipyIC3Mg1dZ12mUJitXH/TYTgy+2C5Vh/8VrQZM9kU9DjhTO0jpqdxtX3ENZOVBDqdewfgJWTQ2XTRVejZ0Kaw4WAljR+EQdm5ARIVERnlW2BRNqqUGiyqyBU1WNRAZtBgUTNsBg0WNdAZNFjUsAnRYFG7nn4BFrm+Kn/68qd/+vLStng+85f/uf7xt58+/e3PX3/68l+/fTo3oK8t6q+fvvz8+afnf//Tv//66edX09f//vz5L9f/df98lWIljHu9AZEcJWIViNRoWVc1eHZsQKQ6+/Fl2oXvIvNU5dX2kXDhzxbC2Ufmq3kllbSL1C0ktY9w4v2oE/pRJ/SjTugfsU7ot0+/ijrtycL4vlox8XoN3qkVE96lFVM+pBXzIRSpVMF1fGnvQpLCx4Ck4D/o11gFuTq6O/o3Y0IZJ7x2VyLBcVdSCvNo7kpKg+roYldyMo6S2ZXUi0g/7kr6tF1uSq4Q9yQDRgG7b/diqwvM4/F5ETn4Qomzxd7jZB1Fs/coETJxau8hrau9h8TsDqM4UavaR+YvP6+2j8w7DA7uPjJfDV28Dcz7C15rH9nuPHIT9R1Tp8SQ0fnIGWSTfejUipsmtAR7OhqAC5U0leDn0MugwkIoIB8d7NFaAanpL7ILULM5aHI9Vh1JbKVicpVV3IaMjAmut4/Ui8I3PItobRQk1tkB+8gCr4gYTU/Pp4uUXjXo5L/3HLzeqQKTqSIGFJ/MqFIWPVbT8THYjo8e9X1KpOHZerSNSMOJe6SdSEM6HsloNMTO7RgmiNzmXqMheYUgzCUryT2sRMP5O8VU9ZyUJ7eVaIgOAqNKo+Gs48xGo0Fa1xoNEh00GiIzUGo0nBIcO4mG54NFP0s0pABuICQaUhgki/IkySN8vVmi4ZSB8TuJhuhhyqAkGmJkSSE1GoRJttZoECLdqNEg3LRRoyF5XQU1ajSsJsFMBSoQQnSi7KOxDJnyZ7SAGBPUV01gmQx0srfOAjIoS6OeV/Ca5ijKkdLav2qTJ40XGbkBLwvp4cpd80LoWoIXPb0RqKEQRhDuV8GC3FsNMYrgVajopry4UuVlZhFdMxBznlyQSluoU4Ij5O0qlc2BeXuH8kKLefsAQiYgb6/UvwF5eyX+PUPensxiC3l76oIryNsHwMSEvPsXaAN5u6oXZEnoCzdKhLyl9Q7y5j0bvE89joW8fcShkUDeZ2GmASeu0ooNOnEWKmULT0SKyVedvWW3xbwlOoDejmV9BL1PfDLtQO/nM3hzACrSMgPq7UkmnlFvCS2gpCof2n3kZhy22PeF0TymmnPZg2wD8aL/Y78pv7QN2L1fl5+6i8RJM/K4aZUc4/fJyz9/+o+vPS1/4aa/wFbqO7A7dl6ub7A73peWu4+k5Uf7WF4O3xj/Pt8YF994ui3DA5l5a+/KzG+JKL8ju6NPq74xmtW/r1hfsuU8vMa+XxgNzp5pnnz7Fx5wpfbP8OgB98zzgsLlA6gAjjusMNaBJfDis4ECn5dTNXIBbANVgi5HUfUgdvpqNdQPpeOvHDDozcBqneKBxx3WkgPabRGQwPPyNaAOzBWAC40lL7HYZ/OoIBI8tySSMno16tWBBylrzqAUB49Eo9HMpZZ9PRTxemZKVA+KQ9QzQ0TpEnDd07WjCAlvrOqT0HmfwdqnFpR6S1rx/FUfoM9O3Afy2S1uqSyZ1XOlP9jrWyg+L9K47rSC0qXunHnNLJVCCpGlOi16s1A+BrzPtKtS2EaYo4Gt/Wyw1Q0nJlNFZ+hchoyGeWpiM30TOovbmtHRPdysSJOKkoBsNKVoo32SLuppcTJ6SlS2rOC1SGNYPJzEFk8QuxPffWi2uOT19pFi6kWTx6qW8BKkiNRXeb3mx97qtSqiD6xeeeJDFZXMHrHKOJknPglJUY5Q1uTN5AxkwN5NOSBdy7spHpWrGSUD0tjHZ6xrl1gfBAPPubdC/cxq1hCmOnKs4BkGTj4Pblbh7PNGHTlw+pFXldOcwkhj0LczJ+FEHF7HYmN2SeUY1zeSl2RqaaPXptTnLLw2A32ApQA1slxSMAl+N45RL9dLb1YDeczFN/EASJHhpBW6Z9jVlQttWXqDiLQsMZsKHSZVVXT201oo16+dHiMqMOfsPToYH7mOD3UIy1lr45DB71nsTsLg1ya7k3AQBsjd8jOwNayH/ADvrHLE9aEitIPJ5bIvYbhEv4eX8HxcLAnykY4ekqHl+kgryOtYr3YxyqdhH9mNw94D2EmZY7b1JBXAQcbadJmUXSUNTPeVuV+ZcshCb79ioIlMBq0qQ+Ky1YhMwNqvrssXu/pcx/CCUWEN1tvv+Usr01/Wva58kQv4ztoXOT5YnSVHW1fjxtI3PlBgCBWugrdAmSK7O1Nkqs1xyvkKPLjDnkJZmu9G89Ro4TcatxSxqERo6AsZPpdxznepwkvRW0SvNp6dzTu+50gUitbLls93qzfx9kOFIvk/U9GVnQFLuOJYYxKb5tl8hojENjBvYQhV7COTt+5x03r8jkDFl8+//toLUUo3vvmubjMfqkNp79IYrR8zm4kfQioO/4E6lEwaQHsXSpHjG7yDXR2K+xh9IEdxN1gZf6jaNWX8USgtwJISad0YfxRl2i0rbD6UyReMP6IyYlgYf/hsjD8c9BlYUiKNm/oMGkIpulmmnrn2RuENbUtK2IsLFxCntsuJLozN1pRI69Y8pdmqErn8cDyh7tkeT+Si9TAz3U2SqSqR1k2dUCOvkFUlcvnRJ4U3tKsqSQC6F8doz2Dx5hgtJQ4Yj9HSZYu4PkY77SSLOUY7FVWLOUaT1tUxmsRm2nkYPMhs8+IYTYLjMVq6fHbHw6+UyPCzx2iJKk/qGC0lwCzjlVrcnKStxsIWj+yHK5bVcMWyGq7zIH4/XMpLRA1X9KvhktbVcElsGpeYlsPF5sVwSXAcrudjLIYrlrvhimU1XLGshiuW/XCtxmLOj714hVrfjAZJFrAyntvHUA0r45LMXZEyQkYRviVlBIUHk5UREraCYGXIbe5ZGaHKQC5YGechszO0jPOHqqFlBALGC1qGLyheVLSMZ3ITi6FlSOualiHRgZbx7EniOHIKGLxKiGZeRujg62SdwX05rTOU57axzmhwtJ55Gf7yPlvyMnzVgL7wMgIdtxQv49mvde+dERJxV/IyQtGUAeFlyFCveBmraTCf9cO+evamYsScM7oMUGwfWhQPtPZGxKqauaYE3APdSNzsTXXmtH7pTSWRlTeVHE0P3lRyP8NeydFde+tN9eNQuP/v13/5Xw==';f['aws/compute.xml'] = '7VxZcxy3Ef4rW/wBo0HjmEGVpCrHVip+cCoVP/h5Ta1NlimSxcMU/30A9IHBMctdikpim0+i0ItG4+jjazTm7e3Z9np3u7ncftq9O/n0+deb7fXZsH24HU6vPl3f3+1O3r9NP6FffHtxdf/xp+3d6dnJ5uzdibWDtiebh/CXHkZ1stneXu9O796d/L69Od/+fLE72dze3Vz9tns4/3gXfn9+eba7Ob8LTE+vLi/DL8+vLm/Tf8LPtueXd5vP707GIbB8DP+ebK7Drz/t7nY36X8owj9P3qz1UP0eP/Z6jJpGiX17vX7q9fLwRK8PnV57ZesMo/Z2SCO8Kdbv5+3pb7/eXN1ffnz/9ia05lGNH8AtNyhsghvGOfFYdvvl6mYnf59fXOC2vcn8IHWPcjnec6UGA4klzINRkWe/a1htw1uK/WaT+hkzTG61n54G0KkfmEFPVd/A1TRd3yzn8Sad3LUDvPnmYnvzCY+xH7z6asd4MKa/lae7y9DwQsfZPOc06/+Lw1yLNeu9+n+gAsBAuhoOCu1u58AeqQTjADMydYOx9YmEYZ6aI3m9vTt7//bT1e+7dKbnYWbN1BB/fHF+mShRVZ8kKTskyun9TeSnAk0PNqjGY/hTzYMLP/sMMgykHmE5P2tp09S24N8KdXpxdZv0CaXvLgYehaAxM6xYmKLb7uLi/PoWx3PDrJYGIfCYU0/862it/vAtbqtFxg/JM01/IHd0tPKq4zV3GMV5pb+6s/lpf0c/2cNVn37+xIgf9ndcH/EJO1DqHR1WFc9HoT8j6o41SY2i7gTDYVB36DhF5bGoOdiyUB07xnP2uKBk1kEhjCP2xAn4ZCb2NKaWRr0QUUawPELFHdsVC5x404iQ5pUYj8x4LJjSkS440sRxUT4jj0dZkM8aGzRJwqzqlS0tx2H29RAF33zzw/evSv6q5HuUXJTxv3XW/6JWhHWc193YwSD3ENDPReiiQsQET5H0OJTxjvBbpwi7dWFCjKZcf8Q9pBDPWd0fcw9JGD7L/kl8qYeJlgQGBDxz1P5gxvzgYBUpKXheP206/eCojsoEKH1EzzzFZc+j5nhgx4Ocynd/21xdbr4Phml7ebpD/zINHjGzU8P0P3cwwTrOX9HHBPbP8jJabL4+zstwR2+P8jLz/OSAH9Y9qH8R/6JtAn1RXYKJ9KUljUSNpjRSyU5zK6RWTb6FW3VqBbePk9KZkxNOo8qcPHEK8LOWKSAxMu/RklrkZGBwntzdHCFr4hRBJvknbC39hEJLp3If9BTkhcCnFETphUKjtn/kWPal/HvYB/IugTTZZrsnJQ4edHNwwuo41xyc0IooWwbpnM7nOKMqpuIt09Og5u5mRsrUbGjKryrJ4lHQkpKIgK0ctZg0vXSEJ84/ZE4GDzhy0nw4TPwhc9KZkzKZk28CqZipIE5G52PmhVNcwMRJxykxJzNXnCB5COJEWhUaUzyLjCwQIxhsFgmjh4KR0pmRI04KDwRxmomTwiQQcnKNeoISRpmPMsLHKeEz5qm5Otoc04DMCIjTGM+acDJiMWzeOGeqxJSXuJX7AGaYbI8T254eJ9rskpMOnNgeBn1jBXHJ1j+irmhXaaFHBQkHsT6xgfNIE4/6piWPBlbUHDiT5qOlZVWfqr0I5lWxPk8p4ZgmbuPuIycMMMikjWw0Umu5GbNMnPsARiVZptEjJ24ly+CXE6c45jGtiaoOsxvj+cbVDex4x+eoP7y6k65Nu1iDfZnC0pLwJidfpKvlN3S6FVNx+R3mqCF5N5jzHu/xnkRVKUplb8L8kamy7blLrbVSTXlllBWD4VmrbDpQvDIg587VG+lx89Haj1o20maP7rVspGhVOzumqrQi1pNMHq1M5KSSPatlGqOG1ObQG1lxdms8Z8j7UK2T7N2ejT8o9P5wsb29Oz/dfP8viuGVT1F3dA32haLur5JyOThcNGlK0d6Q0xdLNLEqmKE0UdJFR1+0QimDqnh2oEsB22ZDWAWrn85o/TIhH5TggsiVq8HRMeHATBymSfqRYjMSPDNQyTqnWAx/vwzHdBGNmdqxUeDlksGNHYkZRJGnZvC5ia5oZPoxyHTwL/LSNPuoM8PcW8KV5nRmu1tRd1iehXUKCf/VUqglzl3mUSMgeE2kviZSX29L/iS3Jazqt1zhYDG/RzHlX1vXD9UDMJx3CkfSViErEzFQBwqcgaA+yKLHowAT/lZza3lkNTkN3wwSxvU8iM9R2izwl4fWuVUvxJVBZh4klj6s44wgPpUQ8MhxTph6ItXjMbB16RQnXi0hLVaL1kVldpDXEGRknRv1QlgZo7MjX57kAJBKI3bPC8mJiFuuKA4BjUAZsO6DVD50B4Im2FpeFtDqrFJUtFIlLkKSwqw3gxkjhkulvH0KgkDKO2Ao9l5ZRMqZsojNtCSfiBUyZWjNo+rcqrOcMgLwCEYPFb5kGk6GN57HjbPJfoMl1dy63HnZoz2kvH0Hw1KfspmPSaQaARJNYekQR6CUa4F0a8RQUgH+VnNrGRYarM/aQ6pSQ0xI8TOnvQLkG33hsTSWlzUuS/dcFjJqXZaSxDS5LN26rIArVT8YiFdHvKs4AGBUyylq4mmIAfOVhV+n5C35UrDJ7nDzcH53tqnLWF8rCl4D4T9dRYHzR4fafC1UxtrOrwfbPMjXqSpwlNcIOLsYFzCdto9i5gqbZ3Z7SMyvliWmO9HBhSCnLAEwmE7fR2kGzOz2kJhfLUuIicRu6voGyD1BacYTbusU4VZLEis+cbVtKp9YbkQmKcprd0hQk2CVBB4vM3qk+RCSWifVwmdSTHxCX4yGlIVvSfoAkojxZSUkfpBUv8aEqolX/GdYqbxe0THjjVeavVZlx5lulrs9QzhmaUlCdFN0nOgiYk1SGjHMHOs5IF1hpyGH6RnV/ZxS/mF7/e/dx3tOdKmEZB7SLQq8Jrp6Yxzh15/3AmA8tmjjRd6/hJNrsTo93hFijbnm1PpximWWDxMe0juYWBFxllDL+uOX3C3LcnRXEr7uuk+5xlSCcqy04+FdjlfGzTf3d1ebH0+3wfb9ig8FYKBKq3Tt8JqVOigoDecCJqmEm+uCRNcnBQDnTBvLqild6vR6RGvsniKBjiZ1Oc7IAUy8dIR+r+BtTJ9ikpZ0BWxIdNf5SAepuw5Np7x6e0jx3n+ucDo9wWlmlXvFnJB+qZSUkxu5kbxvzrbwQzwPnfYghZ9bjLHSLPUWFZe19vhkr0y+tIIennyJF6FyWKZivOC16YlmM2QmRSkLPEWGZD8pLoXvM9xData7I/yX5Skag/ntxf1tfCKISQoMYf4SyfuVEs8Par1LNBLdPnCUbfWcpNVNYRSVoUk1G0j6VzLwnBpXVUbLAuezmqo0kOwrzFJtRTicU2gklU4tS9MDDDHr3JxROX1I+N6kQ0p8B746HyO2I9YVQqKUbgjTodMMQ52xdJyuBClh1HOZrTRSwzZWNsT2kypU05izKlyOhaNoatAiT3VDr+JL75onyTlKlW68VfCS0p2cJPO5Ui6szVi+F6D6KARHVcGayvcpkUrnRc1SjqeoQic0jZxSL53oQAfG1xlcqcXwZQrXD34q0kzhDLpeHtc1lcucx52lxklJjYQmSVGgVPtWOWdFiZPO4pupesjK1RS6vobgPbGGr5945wEtX9oPJ5VRtq6aAb4UamprNV+fOa4pkxyX1JMRU13eavCVhotlVKXDn+i9LMS/asWj+xSjpZrOUOwV/9RyXcOHy+jqsS8xX7VAprJAgRezZQsURtTQsUAhjnF9AxTLyWr7o6G2P9XDZIqWeo3QnxX0c1oOa4BTmLHcAmBFgCqd5cnu+TocUXwRNNpeO2vF4uzRfgXIxGdvzAXyo9x/wShlRmFUW9mvQvwmlSlotIoqJ4mwfSVvONOG7+zGyrgHms/3Un7KFeNW7LvzUjE+eTFiUEbJI0f3ZQhfi9vslipNSbXGWlfPpKJk0mOqIviJtMzUDmHZXngEvnU3RkwF0HZRqTDdInOVaHwrVggUVpuPrm+utcI+ay8mkS+qc0G24wGUVI6W1faL+j9+0W/qKjHfa8dqYcH77Y7EX3SaTe2dYrqXR25KvLUV7xSo8t7ApEtsXMTGWxuz51izTamFbeqvg1vUTBpVZVLpYxQxf1laDiVZEEXPvBbWdsw1/SpVu2KkIzXD7DvMKCW1rrtXLiU9Mdvteoda9Q878OOHRZU5Q+P6uaAWIzjVetAM3wiIFYz4PYu5t978QZS6ub24NeTxQ+SqZgkOZ37Ko8XkhbVnHQqtzY6xpYVql2tB25udntswHEpAHeLKfYhTdY+552vseqOGr1h21eC3f3z39x+7IG5KruRlcBxdXR0D5KjLnxrJWcOupYFyVgqSBcvhhtRwbhKP3yI6ovVBHRErXGeldpmBHQvZIruJP+nTKK8bamBn5WMvGdflh2INroshqu1Cu0xp0B2TlgAvgkdTAjyPl9RNOYoaLPQAnqY89QLgedmKjPF83ogK5nnZhg7S81nmBdjzCI0rsOfTo58+2NPpBcwj912SjFxFj3W77bVrjhT1SNihnUqLm4TUgU55khk98bIu0BNvQYueaM9a9MT7u0BPfAwKAMWNHQyVT1QLoyw79h6McphFrnCUG1wFo0hPGhiV1d+sq79p1X+JpbL6t3BK1L+DqLL2L0BVVn6OUBfKX2M1Yb7SDitz7aMrDJw6MEpqDVQNcL3rw6sA+Gdgd+xtfcEA+0CQFVWtcVBYdA8rOMjzRVYPCHmpjl0AoSA+P7VbACGOcLpAKIvWYKFW6gYO0XPAHtCYKGmq6e59scRrkMjxdw4qdCAmtIZEMe9uS0gUX3u7FhLld4siaXNWxBpUw8/8eLJsj/oyr4AWWboGtwglQhdbJ1fMGnQx+CSthi4ePye2hC7ZD61AF1vrb0fqGsAES6TnFQBj8TVdD8C49P25FQBjOamzxC9WzNESwlgxR2soJpqpLoiJGUmWztcufw2uxHsX38crzUCNJJo/8dbCFVngBrFkSge0WLGqS9xi5YXoErdQ7XoPt1g+xzVw6YjcFDyNfcNsPIOUOhWWXFcXvPgVWz4+1f4FEKaMkGMsIt/XHKc6TMkk19SMm1wPL/XcigxObNRSFC340fAHcpaV4fy+FozsaGjlXGloBSWc+DsXsRUaTjAJJ/7ORXQYNnOi9LiifAJxqhPsCuMz5KSl4jvz0Ur46MxH64bPmBdJs0T5Cia2kmIrfBbJnOr6+VFS2EhlTlplTrNwgnVOXm6wTMpwRT5eMv2QEo6Ri0dYramt4qGEh2EWo84sFL+o9FkQU9efihXnHinYn3ICgt9TjPjBCHxOUb6hHfmDtDGKqaQc5QU+fr0Bb0owqMEknic5AY8tfh6zvtBCiTAPOPHLV/kggMb6NVwxy1XuvvmygLJYH6dyF7wN4mWLWWCVL4S0vLAvay4izfADktqPxIsY3hktnjEO7WVR+bksK7deKP7hV/YSB+DVVrViHLQv7r1GyaQzruYbqpT0611Fgcqfech2BSslq9OlG9QXlUyuauWx/eJNSyw2mfNSWDlgrt45hwlZegTEB3WSy0LAD8omTpPEVp15MRXTyxylMX+8v3O2kUnxA+Puc5qwxhzy8pwhr3yxTHmvji1QwH9v3/8H';f['aws/content_delivery.xml'] = '7VpLbxs5DP4rhveujJ6jAZJctu1psZceely4yTQx6tiB7TTJv1/qOSOOOI6DBXaBTQ/1RN+QIimKIqm5PNyvHvvDYrt66K+WDy93+9XjPVs9H9jNbnvst8e/bvvN+le/f11eX/p346u/b3ZPt1/28NJycX+11C2Tarl4Dk9muVgdHvub49Xy12q/Xn3f9MvF4bjf/eyf17dHeH+9ve/36yMwhXm28OZ6tz34P+C11Xp7XLxcLRuml4tX+F0uHuHth/7Y7/1fQYQ/lxcUBa9TfK1QhBkcXY3i25SCz1N8rknFVdQkPFW1+TZPaDVB+LVK6F8/MePneUJ6Rk94Uazcj92+v9vvnra315ePq+P99eXD7lfvWGrWdJ6jaJk2jnKz3iKEM8vHCPgQgVimwwJYJr34T3s3Db9aSibA717hiUumgPxFhOWFH9GwFsheZBiBH2GZsSWDJlBLASaL1MzwwEBqpkxgwFmrAg8JwshSoa49pWpCbja7Q+/MGKz1Y73ZhB1ygQ0I6uhArKyzy4jtCNJMiDEkmA2yKM54V2oazQtP2vux05Ub1nZBWW1YZ4OyIG7SNmzx8eSWtSfFStDb1dXcaVJd/BE0MXDjBuqQTtLAghlemgJ09Qpyv8ZaBGPEIOZXHtyhDcZIo3X3SSj37mZs5KRYYwMn55YqcAKzeGNL58ei8CHVkbuiYpm3m1VoZgKxYbZYLRk9eg6BZSxEUWA2GWlUaQfwNxvNwOI+ipZ9DRvyJdvPG6ApyZ1qMtA30TOBWsd9zKIBeRO0kVmA7PdZT0sBSc23G0+pZPmJr8uOGWIbyOAGr943hJ2YyfnVa/BB57veXSBex03YMBFDFviQisZSHG1zJxlPEUAaAjp/F3ZkBAbTK16HBhPDS60mISUQwxzT1Znr0pKbRcV45rnyulfDzFKSkNWIX6Peu/l4x9roP7DWtjBMx3h0Ejg+iikhXEXtQE+uCMi4vTU2ZzGXODNKtG7dfKwUKIyO+EokzQhSSJqRoDMQnN0KGSVuqizGGU5BZxwjCGxTX3mYuyOcAp7KFVKwXcOpowQzhQqwUxsKMozL92YDsJeFIrSTIaTUphwC2AwEy1CcNzIrDuGgLYhsOOzepcLI1i2z1AJB0JMEJJlBcTZudY6Vc45kT0HgC5aIEBl6u3aWcV5fH+m2fjKnIBIm6fKFOoQ14CrneBjy5/U7l2cI1W4rlDFgyECMS4jrENbbRXxiQ/KW3CUARXNNoEFCCA/Nuen0IKiiMgSQsyNOtomzwLuUHw3Q1PuMc+8qNBIQHP3kuX0xLr0ufI1OleqLT7vn7Wa3ul18WgP9+vuTq95CAQ/BmIcCPjx9FPD/rwL+++rmZ72AhyjQRJuVKSx4btcVqXostyMwLrc9j1q57cK6jIl+5CeCE4pYKsTpZRot0+hA7tPoSCOyDztOib8cRuvyJHRQ7GUgH5cugzzNeG/m061zUcAHJ5+3j48wkTLyOcggaMRwBkoMJ+KotHrGJWlj4vY00mFEn0YsRtRpJEkwkT5zFRIlzgME6ach5J+BZhhmaCLOQG1cUVplLH09U2U8A80wzBBtHW6Y0YR1RDxEKtaZgWYYJgiLI9q6N3HSzzjlGZEVMUx5i6hPI9Tc8GQOOTeM3V7wueETgoL928oc1LCJPSc0CTke2VCTw9YwtWmIcZeMyMo01HjmQ8wPXm14bR5i3O2drjIPNZ754Pm5ZjbFTN2ijqY4hRiMZG40krhNJFGJEvVPFcFRMkuJIVIJLlvkDl3qjE61UvPjvk4tC45YuAIkTJ2k7DRlVS2LeQlUOGU/hutcgDa4sWByom9dB7/sOXQ6Nbi7Di0Wnmvig01d8+F4ro9LPC7nx/EypXmpccpToFSRsRjqGC87axBEdeoA2pKrYDH9hCJf4X5ca1NvCcfFyVwTcUI55xoEqKiJBanmZYkuYP9EpHH9rqIOT+Nl81nkppIjadG5Ef1wMk8p2OTAlMmfnGpll0dkL2yRq0md/UnhXqJxFXIyftmim841EcfmxGCS2em3QBJD7VsgnHuOxJiBDJVgdv5qLOy2skvkqIc9ittj0cncpYxGqXBs50A8aFqU7+K5sDjuIqzLgRA1uritm1Qp0toFJFG7zWZ+nCZqNAFNagDrL4iq0EQr1BK4GNdv447Au3sFn2/v+sUfu5tV7hHEbvtz6Ed/tAgqc5zRGphVgpbp7a0APjvDWXf4cA7HbNkd1hY1X8UpBI5qVLaDF0udL0t1vCeEnd+lmz7hWqThsjRe8kh/NKHb0uECCB9+A9SMhxtqyDHQ+JOCLt3owoESr+i60MwU/uRVsc2RDCS9PtKiJAYb74xeeTIiHIdC19nOQdIZt1Cqy5f/YE33fYO/oWVJJ+OvX8svJbqptYJ1S3PzE4jr/qKmi1txEaXRvt/rpfHXpUEe6Q8DJ080hfSD6DpsYqV/qmP69bjvVw/r7d1Hy/SjZfqfb5nyasuUz7ZM+b/fMoUQEzMp7T4eQXchuXhVqCTLtSENGdz+M4wrEpGJXVmOK5PurybQVPJ35WUo5qskpEVCCjl83EIhLoNt0WnAdR1y4uePV8oiWvERQ/Rdy7gNcPrDEvfHzW6z2y/8/1fL3774f8up4uTq0Cs64wZzzkN63Mxiz7jIVPJJXULbc2YV5taOXnHaTWjXqizqjCucfbyG38P13w==';f['aws/database.xml'] = '7V3Zbx43kv9XDO17u3k2G4gD7GyywAB7YMcPeVYc7VgY+YCsjO3/fnnUwfvrz3Ywm0nnIZJZYjWPYrHqx2Lxuw+vb9/ffXj29vbN3YubN5/++nj7/vVy+/HD8svt0+3Ptx/ubr7/Lv4N/MmPD7cfnu7/7fbV67ubZ69f3Bi7OHHz7KP/zSzbzbPbD+/vXj29uPn77eP97c8P/o8+PD2++9vdx/tfnvyf3799ffd4/+SZvnr39q3/y/t3bz/Ef/g/u71/+/Ts04ubdTE3zz77nzfP3vu/fnP3dPcY/5Wa8F83z0c1RL/Gy06N9IVQr1fjp7aGmNf4sdeqVUJP0m/d3vw0r7hvg4ovuxXjn1/44o/ziuMvxorPi5n7+fbV3/76+O7Xt798/93726fX33/35t3f73iEjQjyEb7362MoF4ngfxi9GC8wn+SLG7lI7QslidMn5X/1JQpLPIOH+7eRr1mDnH3OKMzaqEVbYA+cJEpmZA/fVFSosibSFwx+oeKeygU2OPKGL8rYr8h4RcZrwRREuuAIHU+D8inx+EwD8kmlAgUtQVb1yD68+3AXJiaN//N8Sv733eMd/X7/8JAW4/P0j1fvHt49Pov/f3HzL/8e/wsMy3kUetl1Wl16cTpvSEYyy7qXfUNi+HVbpEwd9KWrS50U+6JSJ4VYlEgdjYUFH7coZJMq+KrbogUw2RblEhcoDEzUIraSCxAjv90mLsA58lsNN0UlLrGw7pJ1iQvUSD1y0KN9MRLYQGH41ctDPWqRFkm+LTlJLvt+gLTZqmFAFKENFlaVL7Qgmm7RshlqFyS3YLMvu8RB0jBI+yJ37J0CJlAGIy1rJhKaImzkl7hEzmnCnGunPZbWfXKO5CfWkfGDK3TKsxcoQFCqkiSWww20ufwiqVpMxZqp1oUfozQhXrpdzlb6uesT4GN7aFFeLkOb+yQYo9TdrWi9HxU7JIk+Pz88YvCptkM4GNhlKXCwbPk5L3SJqQtNqiiiT3HLiF1dfnxOlB/IrT/XGanVVUgsdZUS8ddSV0k/Snqkq6RZ9FYrK+k3HdNoKyztqyukFvoKuRcKS6al2ldYKu4RlcIKnRW1wsLCnsJCWkcrqTWuwYukWmEhsVBYcl9cra+y4W71ldzS0i4UlrSLVrXGwsK+ykJqqbOQe6m08vlvlZbv1yoapRV6uzdKC0t7Sgtpc0G+Xmkptai+blJmkdsFSho3KndBTmblNSe9LlZeoDRqKfvMhKQWM2r0hNQwpOGZkGrteHnUtYxmZ6/fDnegMaXWnFov2lyg+M1TqIqddRdJatnkgOGE5G2rsuk7SeiEVA8wD9KEdGTsn+dG7/PovJY+7F9+eJl81z3opeC7+maFyT2d1/Yb4gq3Faq4/bjHKi585sdxleFnrnJTddokPsfNUJfaXG/LjvuCX/6wTXmtI2Eb9no7mNiwn1s2QW1toIu4/UZOUCdUT+oLzNrS44vNyp0+79BDM+VeEZKeMDKsyJIiiFJtVLxPeUcZPRlopKSlUXUslZYbHgyG4DoyDaogjx4sFSxUWYMyvaCqtuakQQcDyeDciZpSzeqXeMmtqKQtwAZhKEUFaNGpd4YkRZXggB/MTWfoQCEhaBEhFrAIRAMcDGEqUr0GJFK0p8LCgPkUYAl5pb/ppgmptJ5PBSYV1pHcu2hToSWEhVlz8uGvRuorFfazH/707M9eC9y+fQXA4xbtYq+8rV9G/3Dk0Vu/7jfU3+hRXgs/KgID1XXwI1bcr0IfAdeYfW+i0Pdvgjt68w4ME2+y6drRM8l6F4kKAGEohYUSzDxYKFiqYqm0LSdFnIRiTpY4rYI5wUrx1rur22TJ+fRmvwTd4W0eC0vOuxxuozUnwWtMpSVAKcj9xDoJooTtyjtYuMsw/CmjEv0dw5/fClj28yAlIsubaaZ74w1TqkZwDJsCmeD40rV2Phrp/PqdiaZMbYtw3ckMlK2ZUAVGiadin0KTYeMJpQiXRzAmifAGpknGSScBT5wUCodOm3DipJiT0MxpbxB8J4mTVixmO3HSsBuaiJsgp9rC8dbCbokTrCpfuBlihOCHLzXcJKMaRrgzByqYOF7+Nh4mA3uiL5WOONlmeUpBjJiP0MTHCuKzctdsfcyxxg8iI8ArfClC66FUk8YwljnpxmzRPEg22+5NjxPqnh4nmOySk9rJAvLLy+ECsVHXf05rRdlqFe5pgXhBrCXWc16h42G9KTbIDS1zifBKMoRgqdd2q1evAtfzltCm0HETZj9xSvYFqLQVlcYGKFc2GY46jnVkMkq4TeueOGEpaIbCjgcz5nMcE1EJs12DfKfRtdETiDPuyCzzpZuqVTtpgyugCpjkuBc1Ri5It0BqGn6bvKQELUrHczzZPS15VkrTboL8E1NhWrmLpfWi2nhkhCGFseOqMlGgcGQkyV3to3n/xWCb/OQomkjDO/quaCJpVbW9Q2pClg2Y42ZPWiYhy3pv27QCnlOoQzxE81Tc1rDPkuehGqf1gNl9/AhQq+BeBaHQazhoyi39LSmQHokdt7UGt/aIg/dIqEE7DP1QSXGJFLaXQqEElb9dIvkeWl2T1IC0onPTMNQO3c6WZKKH0GOoDaq8CallSJMyIdFAfUv/69lf7m5/8f97/3D/6vZ0xk5n7CucMXU6Y6czdjpj1ztj9nTGTmfsdMZ+x84YWdcGTzf1CkswMzW1K0nFUrAgLolKng80w7tTRtPq3GH8vXG4tescw8dCY3g7wdAvbaOTAothQ05bFbWAtETamo9ga7d42APfwOC5YDsLbq2g4Mw2xhNdx3RWhOoNFWVoN2k3g3wURI9QWzWZzyqMf9kNq0pSoTcUHnilDyW9QeddctlY/ex03iUaLydtb34h21Y1CZCvcDbPGmWTOFSkBCxIsK6DB8BoHJU3nQ4T7y6RWAoPAwoGAiqjUqpXEhKTDsDl6ntqUShkVH7QWbTbUmm/vxMSggetg6o7uMKaItcEUmmiQSf5UbE00Rgzyn08EZf/H4iL+n0iLiy1WwurWFOSCqndJGnZfWezhrWsZU0uYRwSz0o/7Xjo3lu1gjQwj5DaGgUMmlT1tKwGb31KqUP+UM+X6lfResAtodlF1o5ty0o2249A9HCTare8bbzl6eYbGAuNO2i1Q5sv2KEF79Ac4Y0WgGKjQXUMiomtwaR2A5hsG62gNvbNRDnvGHJMpFID77Q5qI4GlmwV9lRwd5sxS7bLCDJvMtWnwPto94vJVtL28Zsibi/9j19+/nyCbSfYdoJtJ9h2gm0n2HaCbSfYdoJtZ+TDGfnw2/rhcHlU7xXYWZB0pTmRCG4MtN6X4r3lYLBYar1jP7VxeOFmlOA6UB0YrXGcQHVq8uedbi0kxhQ1Y4o7AQNipwativxdU+1T3vexGzu1G+sPR04t4pNQmHzaWg8ZUuVe+ldcCFuU5M9Jg+LCTiBpmuBYWm9TKypgqAPGnybneGM3G6PffZNk6csrvE7WxnwIvI9HpBKvZUc1G9qNcHjLiC2qwVRaSw3e+sQ6aWbQlgvscU+CUuiIaDihgem3J1zRQf5wkjTZABru6MYJq3FwQJpMY7sHpMSwGFgyfAQDKFtm+FiSTOUaE0pYgpOEJXtFM56kua1mZ0RfNqKJIoV1kjxqAofQMYFCYOkqIEQfWPKr/iZe/n9+fvk//3Hebjh9/NPHP338f2IfP7sLLRzcXq7AYIX+z5gi4o3MCniVF0k7bBXZhWJoxITkKiCXEn+Y7EJ6WTlkt7EXSSts1zlJDUhiGbTT/6kSfZJLrmKHnUvu3JRSc7PpXGdGqedrx8wPNUHEcxhIWWJqkpADksIrrg0/mooxhZrdZjPJ5KO2KWXyOaI+AKtBxtIVVoQvxeQzju61+kJZaS1PXXdiJDE3D+RuSYxQH4gEHyAnUaV0gRwrvhG1agzsQF2n5DPwDTxnkuwk+PYIsMlTad3azTAj0INip4uk4eOgaQTf5/Wl5aVkAR5lygBTp6aBdSAq7SFSqpMeyX9A4ypXuqaoAUlEu7TLjyKkW1JHLGrJ2RbKEmHbFDBozSYq5YDRnEuEU8DgTVwbdr4iVVCiRUkuD4ClXdQlim3kEGhJWBA484UOE5O4LMONAL88FpZs9nTQJahG2nnRjfTMDcgHlqbu2b1htO10I94wJ0lX69HAkJAqKOXVKtNQSEqF0s4DXsj2+gN9qXCZfacr0Y6vRFtsqWhsIaSm3FaGRm6l5FoiGzmFyWqEalLD7BsmqyGLKn4OLlaD+41lqTVVXhigpYaWk79jHokZZbXNNGBegpUyBAVLymCrEKYIQm8wN0EnE4+gMcoz8dj61jgWqn5zLKGyIlO7ljAtX4r4US6nEjRZ1mXcHVUD5qmVM4sBsJWmAuGuIGWOJgPhLmFrGVOMdvnFgFkdMLeRZA2gSGeoXGlUaiVY2tToJrOQIth25zZrylDFUqgSKjOQwp1iN1gK9ZqlTEKgDwtVtzlITct3Z0Yrp7pCyVEMxAtXYS4aDvnTPl3i4Xu242lRJf4ha0W2GSko1cZOikVtJIvZpGRD1VHlOLqlKseJAFWO7hSUFqP19cdbodmpoxGeK+15Q0l2yuwL4VRmw31A1RmTaLNskqAx+iQsHUApRzEmwlCMCZZCd9skEhiZ6rWKEDQFTtZaJZuBVqtkbglrFcX5FgNzzF+WJVzsNEjnuQStIf8GD7J498tFotn9MPKTt75wUEgs8MgQZk1l03ZFwOR5onmeaJ4nmueJ5tHrA/llz9KJKC7nylHs816524G09UlB6rc+w3AD9wKFEPvO1dwxKUT5icHV3IbEV3NrhtnV3IbEV3NrhoGkL5Fahiq7WzAi0TidR9RnqPjXHFHPRXQk2OPlMFlEs6U3X7CjZc739sekVqPkOQJavebGem2k8iaKcqJeJ8u8VQ5XZJaeQKGCsN2aNARdhzDtGNkdo8FTBHmAOk+g6gm+PQHF51D6CICfwPZjGLmBno9P4wyZHMKZEwx0hpyO4VYCQiRm2sjQ3p2sYcR1JWPAV+HGG91PyHFjgKUlwdIVyI1Idgfklk1MA2LmgjFzyfi6ZHz9IiaPML4gGF8y4h8ZAWbDN2QICz6GIG8THLuSiSsEqgW1iK8jlSGbyUH4TDB8VqJzguMiDsNzO2W3RuzvCrRwJ4gmQwsTEikZiVRUmLfmMt6pyEqdkzrZ0jGX6Y6HKIjaHsd5ERkuELYMdwYM+RrYGaFqybC2ZFhbAQquGAbPxIKT6W+yhfIFQXiEtWZYPuDyV2H5gP8Dlq+vO1yA44jycMHS3Vo8uVBcqrLDjvwYRAxOSCbHKkzCw5gyHz8/ZuJoLoQ9BPT28t7nkGIGPTs+aD8KPQNaLRnZloxsK9YbKkfDj6eMb7DWAwDtHNY1FjHNWjMjgCwYQC7xaQSbrwGoM7yc8xIfxcsZA85ObRgCZry8iwD34HtEjUv8/jgqvfERyZ7jJoS8Z686OFKfBJTXhw78Gs0cN82AXMZNjwK5GyGBGZCbIcvA/Cpk2VDOA0Su0/sKmjuv6KGGEp+ZIeRTXL0C44seStJceMqPF2KPossMd2cAcwZ3A3Q9gruP4wiToBlFT+KMSU18zjimZxJo04bnfHUw5X8/3r56uDujKc9oyjOa8oym/CNEUxrEtGwVGBPuvMsLFFehJ+HyhbhAEaJN2InAz4QUIcA+wwkpGvIlQ3x0ZkLaIH1CBsYpfYmEo9TYRxueYdXjGO6aiAuUppla0TN+E1LdTG7EhDTqwUYurwtaprSSE54rkJgklRIjBE8I9RJdEvET1ig4ypXDqTSAdUDpKSQMmqKgrHo3EJ8qs+RChkfFFNrrmI4DC/tNQarg1ktiLrmfRWt4ZOpYX1eOejfkUmx0jBD+kANg0NEPpeTIOdkwspoajGckodQ2bngoVVUkXMmJwppoCDd2MdIrkZ9SO1aeztIRFpos4AmplsOAUVyg1MvEN6JaQEUgqrQoDpg5BTyb9ACeoShUI9HvMC3AadAsZ3ST7Gm5CB7XjUVqrzFJGg7VNnPbGFpT1E48c88e9glmLocx1tfqxJ4HVDEjrfnhuI0ZZfKk2j6TXCpHjPA2muAoALnyQ3YlCI0z2X8G0tLDk/VcexJWrnczKfPHYmuSVAOGK57ntCSFoHctWNJgUp6G4kgzd5pe96oXoLePVKla8YJlpkolHytmuhRL+xpM8lEna1PgXmhTFRMg9bWpN1AwHojVafBtNapTxy4pBszswTGpfGGNBy1lLJJ3QOFMb0pq4ISNQmD3jRxcNAspMhoHOirpBgMQBEpkSIpYaKMgJ1ks2SiLhgsvN8LPBCsHS+hq1ppUWneKIAlLgcbBQWfIalXstrP+XkU1bE4REKOqebCXKLoB64GW2rVaxm72ZifMe1hvhV8RvRi+i7hA9dYsbSRjijcnbf127e5KUrH5EcAm+IW1bD9OSD7ux3Q44VpGGz29itMZdlFaOavlTdQhcLjaKw9zdLrJ2traUmVPV1Yv45oEkPdIGl/QRH7H27Lx05/1YrMEf/JaM0klp3daMVIilfXXGhBBEjF2g+0SXmqZSdauNEdZvLKFtjMGb2md7XTfuNOanS5oODoMc5RUjEN6uS3b1QjbGcR5BnGeQZxnEOeXBXG6cWySG0c0uXEQpxsHcbphEKcbBnGacXSXGceE6XEkmR7Hn5lx1JoZx7rpcRCnHsdpTaK7JjFhZ56hM4jz2wZx6qOCPV4Ok0U0W3rzBTta5kUQpxkHcY4feho9D9XVayOVN1GUE/U6WeatcvgCm7r1zRl0zVxzwlwZ6DwIuWYwJ2OuF2DODuqaoRYZ7JqhFodxV0YtGHadYsBDwLr1AdgfyXwAdkgyH+CgR8I+ADskUx+g446wa8TeCLtGB52RzDVib+SCa3Q8pBggwxFiqDMEemPske9iq4MYJvoviHtKxkglY6QN5Fq+dV5ArnJvIFeKSUkAbokMC3EdMEyuCELOURTQdkOMWkHhANdWB6HwCX4+Qd0tPuROpAKuoBUhKeM7HEkAAo1u1eXjA9vcyMfjCcnHEwdONDaGoKVpgoHxwEQB1Ky6wO/w5CW9M/+Zz05QAoi7chOkvE3nUqNKR7CoMYDVgF7lZGnUO2uLUTla7UchKkS1JCNgkhEwxd1TOWp2HKUaY+wTYH4C508OASZHBzYGKHQZTgB9Mzh3ajvVnHBMIDiNj6E0uF2DwB2B7dovXRGaOcaFJ2Ayk3R7iKH5VJMtdIS4r4LFGaXPYXFBbwoh7K64dIjU4ysKju9uM1JfXsIfHxtoQlYoghcPJCQdSCguVHiAceTMw9IFjDEJj1cKJ42Pepwibw/BnoNnPSulOrF59LVpjs4PHzxlNiVyP3BiUETA7G1cgV0yqJahJ8snInZ+7HGFlz2Os5hEZ0xCOsZhIOPYjE5Ex1UPJ41iXSYRMpO4GoQw5yTRwk+jyJ9xuNA4xGgcljQOZZrE73Sifr4qiPTl/Zv3D3c//CmFjSYN+DEihqHV/9iwUfEbxoyK6yNGp734aVRBHA8RFdMvDGNDxfHA0FwaHn0pXFYUZA4GX+djeu5FR5HYA9T7vJIqrLrizbXgTX2MFwZcrOV5pij+SbUAiNmy2oGP6WRs5rVcUEejWtw7bib3bt5Orstf5brTz5KwlN1Ld0YufGxtpuBQNR7Pq2aPJ30+DYc1ybN/fXp6vP/51ycIRU+XdZJOWbdTp/wRdIp3UsAEhPR5H+M1MZOk0nsHxh5aOjKZi69jbdmu1Mp3o6+ulceEjUEmtJtaNAMmpAGzdZDsdSV1s7chSrukW7g7GomS0rYH4AjPDiWlbRftm5xITXAeW5s7vpdJZ5DYIAWFJS7L3rnm03dBMBjwVlzYbw5SBXdBMnfJ3S0bxEM0sWCqvYbFiUWjK06zo4i7h4f79x+SMSspBT5yFgmUeI2/fQNN+CGpQkmqMN31P1XhP68qrFTTRqdTUQjKxx8h78OEFA7XS6yHGE5IxLBRU2sKisDwiFIrKMp4CsETGJhg+HmHnR+8MPQMoem8eGHocU4MpUH+Kcxjs3S5VfGTCVt7nxKjD7BOOofFtzOQv+LSfpuQKrgfkvlzwEjVJh6nw7oqTUzUVfGBhdfZHezZLsYzq2vnj+VhTBJ7FWfJDCckYjgWFRkeVBlJSiTWgiIVP2jCgiLtMpYTmQDsSk6UoBdWsikRixtKCdQohQSZl0LStieTEexCKSPQ27I9ND7HwWYa/nUwYVs1Ydk0j0kDZut8enuXj3k8E7UeUO88GNEMqGtCs7IBNfSCTr7m+JWXbH5D4VAzpRqlvBl6gCUTt7Y1mbhhB0pxw86W7Tl077hyruKCq1XA5o4Zv1QFp/qLDBwYehyyj9FnJPdXN3y7dZPAf1ldUKgXKx+3q35498bv0SdkdUJWJ2R1QlbfALL689PdmxOtOtGq69GqHA+q6nURqy+FMyrD0XaRrnVU1KBbzGBC6hqMnCAwRD1UkbMbHYEnIkT6cVYYOgRdOBSqgckwk0IK+vgkiW9kZvBOEzREQWFzmxYNRcp3IClqDjgrLuw3BamCGy+JueRels3hgfnCUNncjMLLM7Eb3xSdCkoPgKn0dmACpgL3U+v9IbTeThezUAulRB6vUzzETOntW+mpYLUYnDdXXmv20TZzSZ1YNuRy3C6RBsyouKPEHAQ6rw3+lQX2JiqEqGKyTM1BIVCYHE5RR8vie1rhps/eBBqH20GKdIfThDM10aqWwH6sA09U0Rup+JAtFHbbAzTBHZDMW3Jfy/bw+BxwelkuQvY12YjU5V2tqN7M56DYm5HNFrZvl0jEbCwcSjbXoDLhSNRKOCTPKguHjCczA+mQuheGLrOARp4N2bkGzNIhs2vAJB3IvpCOToNYPGQmZCwe2NtKXOXVz47zDByzXUildKZwTFrnM9uJBMzzqPCU8MwKQffseWZdGJ/BxBpCzPJVHzGvehSbq6P5mk81ikk1rDpoTtum8JRi28spFZlocGN4aL7eenEYOpo6kSCgEJz9Gn+bIEhUGeT6C2ur+DT4kdpd0yn9/PD9/wE=';diff --git a/src/main/webapp/js/viewer-static.min.js b/src/main/webapp/js/viewer-static.min.jsindex 7ae5d34c4..f45b76652 100644--- a/src/main/webapp/js/viewer-static.min.js+++ b/src/main/webapp/js/viewer-static.min.js@@ -13,7 +13,7 @@ var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456a.charCodeAt(c+1);56320<=e&&57343>=e&&(d=((d&1023)<<10)+(e&1023)+65536,c++)}128>d?b+=String.fromCharCode(d):(2048>d?b+=String.fromCharCode(d>>6|192):(65536>d?b+=String.fromCharCode(d>>12|224):(b+=String.fromCharCode(d>>18|240),b+=String.fromCharCode(d>>12&63|128)),b+=String.fromCharCode(d>>6&63|128)),b+=String.fromCharCode(d&63|128))}return b},_utf8_decode:function(a){var b="",c=0;for(c1=c2=0;c<a.length;){var d=a.charCodeAt(c);if(128>d)b+=String.fromCharCode(d),c++;else if(191<d&&224>d)c2=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|c2&63),c+=2;else if(240>d)c2=a.charCodeAt(c+1),c3=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(c2&63)<<6|c3&63),c+=3;else{c2=a.charCodeAt(c+1);c3=a.charCodeAt(c+2);var e=a.charCodeAt(c+3);b+=String.fromCodePoint((d&7)<<18|(c2&63)<<12|(c3&63)<<6|e&63);c+=4}}return b}};window.urlParams=window.urlParams||{};if(null==window.mxIsElectron||"1"==urlParams.embed)window.mxIsElectron=!1;window.isLocalStorage=window.isLocalStorage||!1;window.mxLoadSettings=window.mxLoadSettings||"1"!=urlParams.configure;window.isSvgBrowser=!0;window.isMermaidEnabled="function"===typeof structuredClone;window.DRAWIO_BASE_URL=window.DRAWIO_BASE_URL||(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)?window.location.protocol+"//"+window.location.hostname:"https://app.diagrams.net");window.DRAWIO_SERVER_URL=window.DRAWIO_SERVER_URL||window.location.origin+window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+"/";window.DRAWIO_LIGHTBOX_URL=window.DRAWIO_LIGHTBOX_URL||"https://viewer.diagrams.net";-window.EXPORT_URL=window.EXPORT_URL||"https://convert.diagrams.net/node/export";window.DRAW_MATH_URL=window.DRAW_MATH_URL||"math4/es5";window.VSS_CONVERT_URL=window.VSS_CONVERT_URL||"https://convert.diagrams.net/VsdConverter/api/converter";window.REALTIME_URL=window.REALTIME_URL||window.DRAWIO_SERVER_URL+"cache";window.DRAWIO_GITLAB_URL=window.DRAWIO_GITLAB_URL||"https://gitlab.com";window.DRAWIO_GITLAB_ID=window.DRAWIO_GITLAB_ID||"2b14debc5feeb18ba65358d863ec870e4cc9294b28c3c941cb3014eb4af9a9b4";+window.EXPORT_URL="undefined"===typeof window.EXPORT_URL?"https://convert.diagrams.net/node/export":window.EXPORT_URL;window.DRAW_MATH_URL=window.DRAW_MATH_URL||"math4/es5";window.VSS_CONVERT_URL=window.VSS_CONVERT_URL||"https://convert.diagrams.net/VsdConverter/api/converter";window.REALTIME_URL=window.REALTIME_URL||window.DRAWIO_SERVER_URL+"cache";window.DRAWIO_GITLAB_URL=window.DRAWIO_GITLAB_URL||"https://gitlab.com";window.DRAWIO_GITLAB_ID=window.DRAWIO_GITLAB_ID||"2b14debc5feeb18ba65358d863ec870e4cc9294b28c3c941cb3014eb4af9a9b4";window.DRAWIO_GITHUB_URL=window.DRAWIO_GITHUB_URL||"https://github.com";window.DRAWIO_GITHUB_API_URL=window.DRAWIO_GITHUB_API_URL||"https://api.github.com";window.DRAWIO_GITHUB_ID=window.DRAWIO_GITHUB_ID||"Iv1.98d62f0431e40543";window.DRAWIO_DROPBOX_ID=window.DRAWIO_DROPBOX_ID||"jg02tc0onwmhlgm";window.SAVE_URL=window.SAVE_URL||window.DRAWIO_SERVER_URL+"save";window.PROXY_URL=window.PROXY_URL||window.DRAWIO_SERVER_URL+"proxy";window.DRAWIO_VIEWER_URL=window.DRAWIO_VIEWER_URL||null;window.NOTIFICATIONS_URL=window.NOTIFICATIONS_URL||(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)?window.DRAWIO_SERVER_URL+"notifications":null);window.RT_WEBSOCKET_URL=window.RT_WEBSOCKET_URL||"wss://"+("test.draw.io"==window.location.hostname?"app.diagrams.net":window.location.hostname)+"/rt";window.DRAWIO_ATLASSIAN_PROMPT_LENGTH=null!=window.DRAWIO_ATLASSIAN_PROMPT_LENGTH?window.DRAWIO_ATLASSIAN_PROMPT_LENGTH:1E5;window.SHAPES_PATH=window.SHAPES_PATH||"shapes";window.GRAPH_IMAGE_PATH=window.GRAPH_IMAGE_PATH||"img";window.ICONSEARCH_PATH=window.ICONSEARCH_PATH||(urlParams.dev&&"file:"!=window.location.protocol?"iconSearch2":window.DRAWIO_SERVER_URL+"iconSearch2");window.ICON_SERVICE_PATH=window.ICON_SERVICE_PATH||(urlParams.dev&&"file:"!=window.location.protocol?"api/icons":window.DRAWIO_SERVER_URL+"api/icons");window.TEMPLATE_PATH=window.TEMPLATE_PATH||"templates";@@ -30,8 +30,8 @@ window.uiTheme=window.uiTheme||function(){var a=urlParams.ui;"1"==urlParams.extAb),-1!==c&&c===b&&(window.DRAWIO_LOG_URL="https://log.draw.io")))})();"1"==urlParams["gapi-stealth"]&&(urlParams.stealth="1");if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==urlParams.local||"1"==urlParams.lockdown)urlParams.picker="1"==urlParams["gapi-stealth"]?"1":"0",urlParams.gapi="1"==urlParams["gapi-stealth"]?"1":"0",urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0";"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],FORBID_ATTR:["data-icon","data-icon-content"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ALLOW_DATA_ATTR:!1,ADD_ATTR:"target content pointer-events requiredFeatures data-font-src data-action data-title data-message data-link data-effect data-lucid-type data-lucid-content".split(" ")};-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:"31.4.2",IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),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.")&&+window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL="undefined"===typeof window.EXPORT_URL?"/export":window.EXPORT_URL;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:"31.4.4",IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor),IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints,IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userAgent),IS_GC:/Google Inc/.test(navigator.vendor),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:-1<navigator.userAgent.toLowerCase().indexOf("firefox"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS||"[object SVGForeignObjectElement]"!==document.createElementNS("http://www.w3.org/2000/svg","foreignObject").toString()||0<=navigator.userAgent.indexOf("Opera/"),IS_WIN:0<navigator.appVersion.indexOf("Win"),IS_MAC:0<navigator.appVersion.indexOf("Mac"),IS_CHROMEOS:/\bCrOS\b/.test(navigator.appVersion),@@ -990,16 +990,16 @@ mxPrintPreview.prototype.title=null;mxPrintPreview.prototype.pageSelector=null;mmxPrintPreview.prototype.getDoctype=function(){var a="";8==document.documentMode?a='<meta http-equiv="X-UA-Compatible" content="IE=8">':8<document.documentMode&&(a='\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]--\x3e');return a};mxPrintPreview.prototype.appendGraph=function(a,b,c,d,e,f,g,k,l){this.graph=a;this.scale=null!=b?b:1/a.pageScale;this.x0=c;this.y0=d;this.open(null,null,e,f,g,k,l)};mxPrintPreview.prototype.getPageClassCss=function(a,b){var c=this.pageMargin,d=this.pixelsPerInch,e=(b.width/d).toFixed(2)+"in "+(b.height/d).toFixed(2)+"in";b="@page "+a+" {\n margin: 0;\n size: "+mxUtils.htmlEntities(e)+";\n}\n."+a+" {\n page: "+a+";\n"+(mxClient.IS_SF?" padding: "+mxUtils.htmlEntities((c/d).toFixed(2))+"in;\n":"")+" width: "+mxUtils.htmlEntities((b.width/d).toFixed(2))+"in;\n height: "+mxUtils.htmlEntities((b.height/d).toFixed(2))+"in;\n}\n";mxClient.IS_SF||(b+="."+a+" > svg {\n margin: "+mxUtils.htmlEntities((c/d).toFixed(2))+"in;\n}\n");return b};-mxPrintPreview.prototype.open=function(a,b,c,d,e,f,g){c=null;try{var k=this.graph.cellRenderer.initializeOverlay,l=null!=f;f=mxRectangle.fromRectangle(null!=f?f:this.pageFormat);var m=f.width+1,n=f.height+1;this.printOverlays&&(this.graph.cellRenderer.initializeOverlay=function(H,F){F.init(H.view.getDrawPane())});this.printControls&&(this.graph.cellRenderer.initControl=function(H,F,J,I){F.dialect=H.view.graph.dialect;F.init(H.view.getDrawPane())});this.wnd=null!=b?b:this.wnd;b=!1;null==this.wnd&&-(b=!0,this.wnd=window.open());var p=this.wnd.document;if(b){var q=this.getDoctype();null!=q&&0<q.length&&p.writeln(q);"CSS1Compat"===document.compatMode&&p.writeln("<!DOCTYPE html>");p.writeln("<html>");p.writeln("<head>");this.writeHead(p,a);p.writeln("</head>");p.writeln("<body>")}var r=mxRectangle.fromRectangle(null!=g?this.graph.getBoundingBox(g):this.graph.getGraphBounds()),t=this.graph.getView().getScale(),u=t/this.scale,v=this.graph.getView().getTranslate();this.autoOrigin||(this.x0-=v.x*this.scale,-this.y0-=v.y*this.scale,r.width+=r.x,r.height+=r.y,r.x=0,this.border=r.y=0);var y=m-2*this.border,A=n-2*this.border;n+=this.marginTop+this.marginBottom;r.width/=u;r.height/=u;var z=Math.max(1,Math.ceil((r.width+this.x0)/y)),x=Math.max(1,Math.ceil((r.height+this.y0)/A));this.pageCount=z*x;var C=null;l&&(null==this.pendingCss&&(this.pageFormatClass={},this.pendingCss=""),C=mxUtils.htmlEntities("gePageFormat-"+String(f.width).replace(/\./g,"_")+"-"+String(f.height).replace(/\./g,"_")),null==this.pageFormatClass[C]&&-(this.pageFormatClass[C]=!0,this.pendingCss+=this.getPageClassCss(C,f)));var D=mxUtils.bind(this,function(H){null!=this.borderColor&&(H.style.borderColor=this.borderColor,H.style.borderStyle="solid",H.style.borderWidth="1px");H.style.background=this.backgroundColor;null!=C?H.classList.add(C):(H.style.width=f.width+"px",H.style.height=f.height+"px");p.body.appendChild(H)}),B=this.getCoverPages(m,n);if(null!=B)for(var E=0;E<B.length;E++)D(B[E],!0);var K=this.getAppendices(m,n);for(E=0;E<x;E++){var G=-E*A/this.scale-this.y0/this.scale+(r.y-v.y*t)/t-E;for(a=0;a<z;a++){if(null==this.wnd)return null;var L=a*y/this.scale-this.x0/this.scale+(r.x-v.x*t)/t-a;g=E*z+a+1;c=p.createElement("div");c.style.display="flex";c.style.alignItems="center";c.style.justifyContent="center";var Q=new mxRectangle(L,G,y,A);this.addGraphFragment(-L,-G,this.scale,g,c,Q);null!=e&&0==E&&0==a&&c.setAttribute("id",e);D(c,!0)}}if(null!=K)for(E=0;E<K.length;E++)D(K[E],E<K.length-1);b&&!d&&this.closeDocument();this.wnd.focus()}catch(H){null!=+mxPrintPreview.prototype.open=function(a,b,c,d,e,f,g){c=null;try{var k=this.graph.cellRenderer.initializeOverlay,l=null!=f;f=mxRectangle.fromRectangle(null!=f?f:this.pageFormat);var m=f.width+1,n=f.height+1,p=null;l&&(null==this.pendingCss&&(this.pageFormatClass={},this.pendingCss=""),p=mxUtils.htmlEntities("gePageFormat-"+String(f.width).replace(/\./g,"_")+"-"+String(f.height).replace(/\./g,"_")),null==this.pageFormatClass[p]&&(this.pageFormatClass[p]=!0,this.pendingCss+=this.getPageClassCss(p,f)));+this.printOverlays&&(this.graph.cellRenderer.initializeOverlay=function(H,F){F.init(H.view.getDrawPane())});this.printControls&&(this.graph.cellRenderer.initControl=function(H,F,J,I){F.dialect=H.view.graph.dialect;F.init(H.view.getDrawPane())});this.wnd=null!=b?b:this.wnd;b=!1;null==this.wnd&&(b=!0,this.wnd=window.open());var q=this.wnd.document;if(b){var r=this.getDoctype();null!=r&&0<r.length&&q.writeln(r);"CSS1Compat"===document.compatMode&&q.writeln("<!DOCTYPE html>");q.writeln("<html>");q.writeln("<head>");+this.writeHead(q,a);q.writeln("</head>");q.writeln("<body>")}var t=mxRectangle.fromRectangle(null!=g?this.graph.getBoundingBox(g):this.graph.getGraphBounds()),u=this.graph.getView().getScale(),v=u/this.scale,y=this.graph.getView().getTranslate();this.autoOrigin||(this.x0-=y.x*this.scale,this.y0-=y.y*this.scale,t.width+=t.x,t.height+=t.y,t.x=0,this.border=t.y=0);var A=m-2*this.border,z=n-2*this.border;n+=this.marginTop+this.marginBottom;t.width/=v;t.height/=v;var x=Math.max(1,Math.ceil((t.width+this.x0)/+A)),C=Math.max(1,Math.ceil((t.height+this.y0)/z));this.pageCount=x*C;var D=mxUtils.bind(this,function(H){null!=this.borderColor&&(H.style.borderColor=this.borderColor,H.style.borderStyle="solid",H.style.borderWidth="1px");H.style.background=this.backgroundColor;null!=p?H.classList.add(p):(H.style.width=f.width+"px",H.style.height=f.height+"px");q.body.appendChild(H)}),B=this.getCoverPages(m,n);if(null!=B)for(var E=0;E<B.length;E++)D(B[E],!0);var K=this.getAppendices(m,n);for(E=0;E<C;E++){var G=E*+z/this.scale-this.y0/this.scale+(t.y-y.y*u)/u-E;for(a=0;a<x;a++){if(null==this.wnd)return null;var L=a*A/this.scale-this.x0/this.scale+(t.x-y.x*u)/u-a;g=E*x+a+1;c=q.createElement("div");c.style.display="flex";c.style.alignItems="center";c.style.justifyContent="center";var Q=new mxRectangle(L,G,A,z);this.addGraphFragment(-L,-G,this.scale,g,c,Q);null!=e&&0==E&&0==a&&c.setAttribute("id",e);D(c,!0)}}if(null!=K)for(E=0;E<K.length;E++)D(K[E],E<K.length-1);b&&!d&&this.closeDocument();this.wnd.focus()}catch(H){null!=c&&null!=c.parentNode&&c.parentNode.removeChild(c),null!=window.console&&console.error(H)}finally{this.graph.cellRenderer.initializeOverlay=k}return this.wnd};mxPrintPreview.prototype.addPendingCss=function(a){if(null!=this.pendingCss){var b=a.createElement("style");b.setAttribute("type","text/css");b.appendChild(a.createTextNode(this.pendingCss));a.getElementsByTagName("head")[0].appendChild(b);this.pendingCss=null}};mxPrintPreview.prototype.closeDocument=function(){try{if(null!=this.wnd&&null!=this.wnd.document){var a=this.wnd.document;this.writePostfix(a);a.writeln("</body>");a.writeln("</html>");a.close();this.addPendingCss(a);mxEvent.release(a.body)}}catch(b){}};-mxPrintPreview.prototype.writeHead=function(a,b){null!=this.title&&a.writeln("<title>"+mxUtils.htmlEntities(this.title)+"</title>");var c=mxClient.basePath;"/src"==c.substring(c.length-4)&&(c=c.substring(0,c.length-4));mxClient.link("stylesheet",c+"/css/common.css",a);a.writeln('<style type="text/css">');a.writeln(this.defaultCss);c=this.pageFormat;this.addPageCss&&null!=c&&(c=(c.width/this.pixelsPerInch).toFixed(2)+"in "+(c.height/this.pixelsPerInch).toFixed(2)+"in",a.writeln("@page {"),a.writeln(" margin: "+-mxUtils.htmlEntities((this.pageMargin/this.pixelsPerInch).toFixed(2))+"in;"),a.writeln(" size: "+mxUtils.htmlEntities(c)+";"),a.writeln("}"));null!=b&&a.writeln(mxUtils.htmlEntities(b,!1,!1,!1));a.writeln("</style>")};mxPrintPreview.prototype.writePostfix=function(a){};mxPrintPreview.prototype.getRoot=function(){var a=this.graph.view.currentRoot;null==a&&(a=this.graph.getModel().getRoot());return a};mxPrintPreview.prototype.useCssTransforms=function(){return!mxClient.NO_FO&&!mxClient.IS_SF};-mxPrintPreview.prototype.isCellVisible=function(a){return!0};mxPrintPreview.prototype.drawBackgroundImage=function(a){a.redraw()};+mxPrintPreview.prototype.writeHead=function(a,b){null!=this.title&&a.writeln("<title>"+mxUtils.htmlEntities(this.title)+"</title>");var c=mxClient.basePath;"/src"==c.substring(c.length-4)&&(c=c.substring(0,c.length-4));mxClient.link("stylesheet",c+"/css/common.css",a);a.writeln('<style type="text/css">');a.writeln(this.defaultCss);c=this.pageFormat;this.addPageCss&&null!=c&&null==this.pendingCss&&(c=(c.width/this.pixelsPerInch).toFixed(2)+"in "+(c.height/this.pixelsPerInch).toFixed(2)+"in",a.writeln("@page {"),+a.writeln(" margin: "+mxUtils.htmlEntities((this.pageMargin/this.pixelsPerInch).toFixed(2))+"in;"),a.writeln(" size: "+mxUtils.htmlEntities(c)+";"),a.writeln("}"));null!=b&&a.writeln(b.replace(/<\/style/gi,"<\\/style"));a.writeln("</style>")};mxPrintPreview.prototype.writePostfix=function(a){};mxPrintPreview.prototype.getRoot=function(){var a=this.graph.view.currentRoot;null==a&&(a=this.graph.getModel().getRoot());return a};+mxPrintPreview.prototype.useCssTransforms=function(){return!mxClient.NO_FO&&!mxClient.IS_SF};mxPrintPreview.prototype.isCellVisible=function(a){return!0};mxPrintPreview.prototype.drawBackgroundImage=function(a){a.redraw()};mxPrintPreview.prototype.addGraphFragment=function(a,b,c,d,e,f){var g=this.graph.getView();d=this.graph.container;this.graph.container=e;var k=g.getCanvas(),l=g.getBackgroundPane(),m=g.getDrawPane(),n=g.getOverlayPane(),p=c;if(this.graph.dialect==mxConstants.DIALECT_SVG){if(g.createSvg(),this.useCssTransforms()){var q=g.getDrawPane().parentNode;q.setAttribute("transformOrigin","0 0");q.setAttribute("transform","scale("+c+","+c+")translate("+a+","+b+")");c=1;b=a=0}}else g.createHtml();q=g.isEventsEnabled();g.setEventsEnabled(!1);var r=this.graph.isEnabled();this.graph.setEnabled(!1);var t=g.getTranslate();g.translate=new mxPoint(a,b);var u=this.graph.selectionCellsHandler.updateHandler;this.graph.selectionCellsHandler.updateHandler=function(){};var v=this.graph.cellRenderer.redraw,y=g.states,A=g.scale,z=null;if(this.printBackgroundImage){var x=this.getBackgroundImage();null!=x&&(z=new mxRectangle(Math.round(a*A+x.x),Math.round(b*A+x.y),x.width-1,x.height-1),z=new mxImageShape(z,x.src),z.dialect=this.graph.dialect)}if(this.clipping){var C=new mxRectangle((f.x+t.x+1.5)*A,(f.y+t.y+1.5)*A,(f.width-1.5)*A/p,(f.height-1.5)*A/p),D=this;this.graph.cellRenderer.redraw=function(E,K,G){if(null!=E){var L=y.get(E.cell);if(null!=L&&(L=g.getBoundingBox(L,!1),null!=L&&0<L.width&&0<L.height&&!mxUtils.intersects(C,L))||!D.isCellVisible(E.cell))return}v.apply(this,arguments)};null!=z&&(a=new mxRectangle(z.bounds.x*A+(t.x-a)*A,z.bounds.y*A+(t.y-b)*A,z.bounds.width*A,z.bounds.height*A),mxUtils.intersects(C,a)||(z=null))}null!=z&&(z.init(g.backgroundPane),@@ -2205,7 +2205,7 @@ this.keyHandler=this.createKeyHandler(b);this.getKeyHandler=function(){return keMenus.prototype.defaultFont),this.toolbar.setFontSize(t.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),P=this.getSelectionState(),null!=this.toolbar.edgeStyleMenu&&(ia=this.getImageForEdgeStyle(t.currentEdgeStyle),0==P.edges.length&&(this.toolbar.edgeStyleMenu.style.backgroundImage="url("+ia+")")),null!=this.toolbar.edgeShapeMenu&&(k=this.getImageForEdgeShape(t.currentEdgeStyle),0==P.edges.length&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+k+")")))}));null!=this.toolbar&&(b=mxUtils.bind(this,function(){var H=t.currentVertexStyle.fontFamily||"Helvetica",P=String(t.currentVertexStyle.fontSize||"12"),T=t.getView().getState(t.getSelectionCell());null!=T&&(H=T.style[mxConstants.STYLE_FONTFAMILY]||H,P=T.style[mxConstants.STYLE_FONTSIZE]||P,10<H.length&&(H=H.substring(0,8)+"..."));this.toolbar.setFontName(H);this.toolbar.setFontSize(P)}),t.getSelectionModel().addListener(mxEvent.CHANGE,b),t.getModel().addListener(mxEvent.CHANGE,b));t.addListener(mxEvent.CELLS_ADDED,function(H,P){H=P.getProperty("cells");P=P.getProperty("parent");null!=P&&t.getModel().isLayer(P)&&!t.isCellVisible(P)&&null!=H&&0<H.length&&t.getModel().setVisible(P,!0)});Graph.selectParentLayer&&t.selectionModel.addListener(mxEvent.CHANGE,function(){if(t.isEnabled()&&!t.isSelectionEmpty()){var H=t.getLayerForCells(t.getSelectionCells());null!=H&&t.setDefaultParent(H)}});this.gestureHandler=mxUtils.bind(this,function(H){this.isHideCurrentMenuEvent(H)&&this.hideCurrentMenu()});mxEvent.addGestureListeners(document,-this.gestureHandler);var v=null;this.resizeHandler=mxUtils.bind(this,function(){null!=v&&window.clearTimeout(v);v=window.setTimeout(mxUtils.bind(this,function(){v=null;this.windowResized()}),100)});mxEvent.addListener(window,"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});mxEvent.addListener(window,"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&!window.navigator.standalone&&"undefined"!==typeof Menus&&(this.scrollHandler=+this.gestureHandler);var u=null;this.resizeHandler=mxUtils.bind(this,function(){null!=u&&window.clearTimeout(u);u=window.setTimeout(mxUtils.bind(this,function(){u=null;this.windowResized()}),100)});mxEvent.addListener(window,"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});mxEvent.addListener(window,"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&!window.navigator.standalone&&"undefined"!==typeof Menus&&(this.scrollHandler=mxUtils.bind(this,function(){window.scrollTo(0,0)}),mxEvent.addListener(window,"scroll",this.scrollHandler));this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.resetScrollbars()}));this.addListener("gridEnabledChanged",mxUtils.bind(this,function(){t.view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,function(){t.view.validateBackground()}));t.addListener("gridSizeChanged",mxUtils.bind(this,function(){t.isGridEnabled()&&t.view.validateBackground()}));this.editor.resetGraph()}this.init();t.standalone||this.open()};EditorUi.compactUi=!0;EditorUi.parsePng=function(b,d,m){function p(D,O){var F=n;n+=O;return D.substring(F,n)}function t(D){D=p(D,4);return D.charCodeAt(3)+(D.charCodeAt(2)<<8)+(D.charCodeAt(1)<<16)+(D.charCodeAt(0)<<24)}var n=0;if(p(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=m&&m();else if(p(b,4),"IHDR"!=p(b,4))null!=m&&m();else{p(b,17);do{m=t(b);var y=p(b,4);if(null!=d&&d(n-8,y,m))break;value=p(b,m);p(b,4);if("IEND"==y)break}while(m)}};mxUtils.extend(EditorUi,mxEventSource);@@ -2312,16 +2312,16 @@ document.body))&&D(mxUtils.bind(this,function(X){"1"==urlParams.close||y.closeBtY&&Math.abs(this.startX-ea.getGraphX())<Y&&Math.abs(this.startY-ea.getGraphY())<Y&&(0<parseFloat(m.chromelessToolbar.style.opacity||0)?E():J(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var aa=b.view.validate,ja=new mxPoint,ka=!1,ua=null;b.view.validate=function(){if(null!=b.container&&mxUtils.hasScrollbars(b.container)){if(null!=m.currentPage&&ua!=m.currentPage){ua=m.currentPage;ka=!0;var X=b.getBoundingBoxFromGeometry(b.model.getCells(),!0,null,!0);null==X&&(X=new mxRectangle(b.view.translate.x*b.view.scale,b.view.translate.y*b.view.scale));X=b.getPageLayout(X,ja,1);var ea=b.getDefaultTranslate(X);this.x0=X.x;this.y0=X.y;if(ea.x!=this.translate.x||ea.y!=this.translate.y)this.invalidate(),this.translate.x=ea.x,this.translate.y=ea.y}ea=b.getPagePadding();var oa=b.getPageSize();X=ea.x-(this.x0||0)*oa.width;ea=ea.y-(this.y0||0)*oa.height;if(this.translate.x!=X||this.translate.y!=ea)this.invalidate(),this.translate.x=X,this.translate.y=ea}aa.apply(this,arguments)};if(!b.isViewer()){var Ca=b.sizeDidChange;b.sizeDidChange=function(){var X=ka;ka=!1;if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var ea=this.getPageLayout(),oa=this.getDefaultTranslate(ea),la=this.view.translate.x,ca=this.view.translate.y;if(oa.x!=la||oa.y!=ca){this.view.x0=ea.x;this.view.y0=ea.y;this.autoTranslate=!0;this.view.setTranslate(oa.x,oa.y);this.autoTranslate=!1;X||(this.container.scrollLeft+=Math.round((oa.x--la)*this.view.scale),this.container.scrollTop+=Math.round((oa.y-ca)*this.view.scale));return}}Ca.apply(this,arguments)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var ia=b.view.getBackgroundPane(),k=b.view.getDrawPane();b.cumulativeZoomFactor=1;var v=null,H=null,P=null,T=null,W=null,ha=function(X){null!=v&&window.clearTimeout(v);0<=X&&window.setTimeout(function(){if(!b.isMouseDown||T)v=window.setTimeout(mxUtils.bind(this,function(){if(b.isFastZoomEnabled()){null!=+la)*this.view.scale),this.container.scrollTop+=Math.round((oa.y-ca)*this.view.scale));return}}Ca.apply(this,arguments)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var ia=b.view.getBackgroundPane(),k=b.view.getDrawPane();b.cumulativeZoomFactor=1;var u=null,H=null,P=null,T=null,W=null,ha=function(X){null!=u&&window.clearTimeout(u);0<=X&&window.setTimeout(function(){if(!b.isMouseDown||T)u=window.setTimeout(mxUtils.bind(this,function(){if(b.isFastZoomEnabled()){null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node&&(mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,"transform-origin",null),mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,"transform",null));k.style.transformOrigin="";ia.style.transformOrigin="";mxClient.IS_SF?(k.style.transform="scale(1)",ia.style.transform="scale(1)",window.setTimeout(function(){k.style.transform="";ia.style.transform=""},0)):(k.style.transform="",ia.style.transform="");b.view.getDecoratorPane().style.opacity="";b.view.getOverlayPane().style.opacity="";for(var ea=b.container.querySelectorAll(".geHint"),oa=0;oa<ea.length;oa++)ea[oa].style.opacity=""}ea=new mxPoint(b.container.scrollLeft,b.container.scrollTop);var la=mxUtils.getOffset(b.container),ca=b.view.scale;oa=b.view.translate.x;var ta=b.view.translate.y,xa=0,qa=0;null!=H&&(xa=b.container.offsetWidth/2-H.x+la.x,qa=b.container.offsetHeight/2-H.y+la.y);var Ba=null==d&&mxUtils.hasScrollbars(b.container);b.zoom(b.cumulativeZoomFactor,Ba?!1:null,b.isFastZoomEnabled()?20:null,Ba);var na=b.view.scale;na!=ca&&(Ba?(ca=na/ca,xa=null!=H?H.x-la.x:b.container.clientWidth/2,la=null!=H?H.y-la.y:b.container.clientHeight/2,null!=P&&(xa-=ea.x-P.x,la-=ea.y-P.y),b.container.scrollLeft=Math.round(ea.x*ca+xa*(ca-1)+(b.view.translate.x-oa)*na),b.container.scrollTop=Math.round(ea.y*ca+la*(ca-1)+(b.view.translate.y-ta)*na)):(null!=P&&(xa+=ea.x-P.x,qa+=ea.y-P.y),null!=d&&m.chromelessResize(!1,null,xa*(b.cumulativeZoomFactor-1),qa*(b.cumulativeZoomFactor-1)),!mxUtils.hasScrollbars(b.container)||-0==xa&&0==qa||(b.container.scrollLeft-=xa*(b.cumulativeZoomFactor-1),b.container.scrollTop-=qa*(b.cumulativeZoomFactor-1))));null!=W&&k.setAttribute("filter",W);b.fireEvent(new mxEventObject("zoomPreviewComplete"));b.cumulativeZoomFactor=1;W=T=H=P=v=null}),null!=X?X:b.isFastZoomEnabled()?m.wheelZoomDelay:m.lazyZoomDelay)},0)};b.lazyZoom=function(X,ea,oa,la,ca){la=null!=la?la:this.zoomFactor;(ea=ea||!b.scrollbars)&&(H=new mxPoint(b.container.offsetLeft+b.container.clientWidth/2,b.container.offsetTop++0==xa&&0==qa||(b.container.scrollLeft-=xa*(b.cumulativeZoomFactor-1),b.container.scrollTop-=qa*(b.cumulativeZoomFactor-1))));null!=W&&k.setAttribute("filter",W);b.fireEvent(new mxEventObject("zoomPreviewComplete"));b.cumulativeZoomFactor=1;W=T=H=P=u=null}),null!=X?X:b.isFastZoomEnabled()?m.wheelZoomDelay:m.lazyZoomDelay)},0)};b.lazyZoom=function(X,ea,oa,la,ca){la=null!=la?la:this.zoomFactor;(ea=ea||!b.scrollbars)&&(H=new mxPoint(b.container.offsetLeft+b.container.clientWidth/2,b.container.offsetTop+b.container.clientHeight/2));ca?1!=la&&(X?.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale+.05)/this.view.scale:(this.cumulativeZoomFactor*=la,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale):.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale-.05)/this.view.scale:(this.cumulativeZoomFactor/=la,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale)):this.cumulativeZoomFactor=this.getZoomStep(this.view.scale*this.cumulativeZoomFactor,X)/this.view.scale;this.cumulativeZoomFactor=Math.max(.05,Math.min(this.view.scale*this.cumulativeZoomFactor,160))/this.view.scale;if(b.isFastZoomEnabled()){null==W&&""!=k.getAttribute("filter")&&(W=k.getAttribute("filter"),k.removeAttribute("filter"));P=new mxPoint(b.container.scrollLeft,b.container.scrollTop);X=Math.round(Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100*20)/(20*this.view.scale);la=ea||null==H?b.container.scrollLeft+b.container.clientWidth/2:H.x+b.container.scrollLeft-b.container.offsetLeft;ca=ea||null==H?b.container.scrollTop+b.container.clientHeight/2:H.y+b.container.scrollTop-b.container.offsetTop;k.style.transformOrigin=la+"px "+ca+"px";k.style.transform="scale("+X+")";ia.style.transformOrigin=la+"px "+ca+"px";ia.style.transform="scale("+X+")";null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node?(la=b.view.backgroundPageShape.node,mxUtils.setPrefixedStyle(la.style,"transform-origin",(ea||null==H?b.container.clientWidth/2+b.container.scrollLeft-la.offsetLeft+"px":H.x+b.container.scrollLeft-la.offsetLeft-b.container.offsetLeft+"px")+" "+(ea||null==H?b.container.clientHeight/2+b.container.scrollTop-la.offsetTop+"px":H.y+b.container.scrollTop-la.offsetTop-b.container.offsetTop+"px")),mxUtils.setPrefixedStyle(la.style,"transform","scale("+X+")")):b.view.validateBackgroundStyles(X,la,ca);b.view.getDecoratorPane().style.opacity="0";-b.view.getOverlayPane().style.opacity="0";ea=b.container.querySelectorAll(".geHint");for(la=0;la<ea.length;la++)ea[la].style.opacity="0";b.fireEvent(new mxEventObject("zoomPreview","factor",X))}ha(b.isFastZoomEnabled()?oa:0)};mxEvent.addGestureListeners(b.container,function(X){null!=v&&window.clearTimeout(v)},null,function(X){1!=b.cumulativeZoomFactor&&ha(0)});mxEvent.addListener(b.container,"scroll",function(X){null==v||b.isMouseDown||1==b.cumulativeZoomFactor||ha(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,+b.view.getOverlayPane().style.opacity="0";ea=b.container.querySelectorAll(".geHint");for(la=0;la<ea.length;la++)ea[la].style.opacity="0";b.fireEvent(new mxEventObject("zoomPreview","factor",X))}ha(b.isFastZoomEnabled()?oa:0)};mxEvent.addGestureListeners(b.container,function(X){null!=u&&window.clearTimeout(u)},null,function(X){1!=b.cumulativeZoomFactor&&ha(0)});mxEvent.addListener(b.container,"scroll",function(X){null==u||b.isMouseDown||1==b.cumulativeZoomFactor||ha(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(X,ea,oa,la,ca){b.fireEvent(new mxEventObject("wheel"));if(null==b.freehand||!b.freehand.isDrawing())if(Editor.passiveScroll&&!oa&&b.isScrollWheelEvent(X))null!=window.parent&&window.parent!=window&&window.parent.postMessage(JSON.stringify({event:"scrollWheel",deltaX:null!=X.deltaX?X.deltaX:0,deltaY:null!=X.deltaY?X.deltaY:ea?-60:60}),"*");else if(null==this.dialogs||0==this.dialogs.length)if(!b.scrollbars&&!oa&&b.isScrollWheelEvent(X))la=b.view.getTranslate(),ca=40/b.view.scale,mxEvent.isShiftDown(X)?b.view.setTranslate(la.x+(ea?-ca:ca),la.y):b.view.setTranslate(la.x,la.y+(ea?ca:-ca));else if(oa||b.isZoomWheelEvent(X))for(var ta=mxEvent.getSource(X);null!=ta;){if(ta==b.container){b.tooltipHandler.hideTooltip();la=null!=la&&null!=ca?new mxPoint(la,ca):new mxPoint(mxEvent.getClientX(X),mxEvent.getClientY(X));ca=null!=H?new mxPoint(H.x,H.y):null;ta=b.cumulativeZoomFactor;H=la;T=oa;oa=b.zoomFactor;var xa=!1,qa=null;X.ctrlKey&&null!=X.deltaY&&40>Math.abs(X.deltaY)&&Math.round(X.deltaY)!=X.deltaY?(oa=1+Math.abs(X.deltaY)/20*(oa-1),xa=!0):null!=X.movementY&&"pointermove"==X.type&&(oa=1+Math.max(1,Math.abs(X.movementY))/20*(oa-1),xa=!0,qa=-1);b.lazyZoom(ea,null,qa,oa,xa);null!=ca&&1!=ta&&b.isFastZoomEnabled()&&b.scrollbars&&(ea=b.cumulativeZoomFactor,oa=ea/ta,xa=1-ea,.001<Math.abs(xa)&&(H=new mxPoint((la.x*(1-oa)+oa*ca.x*(1-ta))/xa,(la.y*(1-oa)+oa*ca.y*(1-ta))/xa),la=H.x+b.container.scrollLeft-b.container.offsetLeft,ca=H.y+b.container.scrollTop-b.container.offsetTop,k.style.transformOrigin=la+"px "+@@ -2449,37 +2449,37 @@ mxImageShape.prototype.getImageCssVars=function(b){var d=String(this.image),m=nud?b.push(d):0==b.length&&(m="")),0<b.length&&(m=b.join("; "))));return m};(function(){var b=mxStencil.prototype.parseColor;mxStencil.prototype.parseColor=function(d,m,p,t,n){return"default"==t&&null!=n?"fillcolor"==p.nodeName?n.shapeBackgroundColor:n.shapeForegroundColor:b.apply(this,arguments)}})();(function(){var b=mxResources.get;mxResources.get=function(d,m,p){null==p&&(p=d);return b.apply(this,[d,m,p])}})();(function(){var b=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(d,m,p,t,n,y,D,O){var F=b.apply(this,arguments);if(null!=m){var N=F.getElementsByTagName("img");0<N.length&&(N[0].className="geButton")}return F}})();Graph=function(b,d,m,p,t,n){mxGraph.call(this,b,d,m,p);this.themes=t||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=n?n:!1;b=this.baseUrl;d=b.indexOf("//");this.domainPathUrl=this.domainUrl="";0<d&&(d=b.indexOf("/",d+2),0<d&&(this.domainUrl=b.substring(0,d)),d=b.lastIndexOf("/"),0<d&&(this.domainPathUrl=b.substring(0,d+1)));this.isHtmlLabel=function(ia){ia=this.getCurrentCellStyle(ia);-return null!=ia?"1"==ia.html||"wrap"==ia[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var y=null,D=null,O=null,F=null,N=!1,R=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(ia,k){if("mouseDown"==k.getProperty("eventName")&&this.isEnabled()){ia=k.getProperty("event");var v=ia.getState();k=this.view.scale;if(!mxEvent.isAltDown(ia.getEvent())&&null!=v&&(R=this.isCellSelected(v.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(ia.getEvent()))){var H=-this.selectionCellsHandler.getHandler(v.cell);if(null==H||null==H.getHandleForEvent(ia)){var P=new mxRectangle(ia.getGraphX()-1,ia.getGraphY()-1),T=mxEvent.isTouchEvent(ia.getEvent())?mxShape.prototype.svgStrokeTolerance-1:(mxShape.prototype.svgStrokeTolerance+2)/2;H=T+2;P.grow(T);if(this.isTableCell(v.cell)&&this.isCellMovable(v.cell)&&!this.isCellSelected(v.cell)&&!(mxUtils.contains(v,ia.getGraphX()-H,ia.getGraphY()-H)&&mxUtils.contains(v,ia.getGraphX()-H,ia.getGraphY()+H)&&mxUtils.contains(v,ia.getGraphX()+-H,ia.getGraphY()+H)&&mxUtils.contains(v,ia.getGraphX()+H,ia.getGraphY()-H))){var W=this.model.getParent(v.cell);H=this.model.getParent(W);if(!this.isCellSelected(H)){T*=k;var ha=2*T;if(this.model.getChildAt(H,0)!=W&&mxUtils.intersects(P,new mxRectangle(v.x,v.y-T,v.width,ha))||this.model.getChildAt(W,0)!=v.cell&&mxUtils.intersects(P,new mxRectangle(v.x-T,v.y,ha,v.height))||mxUtils.intersects(P,new mxRectangle(v.x,v.y+v.height-T,v.width,ha))||mxUtils.intersects(P,new mxRectangle(v.x+v.width-T,v.y,ha,-v.height)))W=this.selectionCellsHandler.isHandled(H),this.selectCellForEvent(H,ia.getEvent()),H=this.selectionCellsHandler.getHandler(H),null!=H&&(T=H.getHandleForEvent(ia),null!=T&&(H.start(ia.getGraphX(),ia.getGraphY(),T),H.blockDelayedSelection=!W,ia.consume()))}}for(;!ia.isConsumed()&&null!=v&&(this.isTableCell(v.cell)||this.isTableRow(v.cell)||this.isTable(v.cell));)this.isSwimlane(v.cell)&&this.isCellMovable(v.cell)&&(H=this.getActualStartSize(v.cell),(0<H.x||0<H.width)&&mxUtils.intersects(P,-new mxRectangle(v.x+(H.x-H.width-1)*k+(0==H.x?v.width:0),v.y,1,v.height))||(0<H.y||0<H.height)&&mxUtils.intersects(P,new mxRectangle(v.x,v.y+(H.y-H.height-1)*k+(0==H.y?v.height:0),v.width,1)))&&(this.selectCellForEvent(v.cell,ia.getEvent()),H=this.selectionCellsHandler.getHandler(v.cell),null!=H&&null!=H.customHandles&&(T=mxEvent.CUSTOM_HANDLE-H.customHandles.length+1,H.start(ia.getGraphX(),ia.getGraphY(),T),ia.consume())),v=this.view.getState(this.model.getParent(v.cell))}}}}));this.addListener(mxEvent.CONSUME_MOUSE_EVENT,-mxUtils.bind(this,function(ia,k){if("mouseDown"==k.getProperty("eventName")&&this.isEnabled()){ia=k.getProperty("event");var v=ia.getState();mxEvent.isAltDown(ia.getEvent())||mxEvent.isControlDown(k)||mxEvent.isShiftDown(k)||R||null==v||!this.model.isEdge(v.cell)||(y=new mxPoint(ia.getGraphX(),ia.getGraphY()),N=this.isCellSelected(v.cell),O=v,D=ia,null!=v.text&&null!=v.text.boundingBox&&mxUtils.contains(v.text.boundingBox,ia.getGraphX(),ia.getGraphY())?F=mxEvent.LABEL_HANDLE:(k=this.selectionCellsHandler.getHandler(v.cell),-null!=k&&null!=k.bends&&0<k.bends.length&&(F=k.getHandleForEvent(ia))))}}));this.addMouseListener({mouseDown:function(ia,k){},mouseMove:mxUtils.bind(this,function(ia,k){ia=this.selectionCellsHandler.handlers.map;for(var v in ia)if(null!=ia[v].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(k.getEvent())){var H=this.tolerance;if(null!=y&&null!=O&&null!=D){if(v=O,null!=F||Math.abs(y.x-k.getGraphX())>H||Math.abs(y.y-k.getGraphY())>H){var P=null;mxEvent.isShiftDown(k.getEvent())||-(P=this.selectionCellsHandler.getHandler(v.cell));if(null!=P&&null!=P.bends&&0<P.bends.length){P.redrawHandles();var T=null!=F?F:P.getHandleForEvent(D),W=this.view.getEdgeStyle(v),ha=W==mxEdgeStyle.EntityRelation;H=v.absolutePoints;N||(T=F);T!=mxEvent.LABEL_HANDLE&&null!=H&&(T=F,null==T&&(ia=new mxRectangle(y.x,y.y),ia.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(ia,H[0].x,H[0].y)?T=0:mxUtils.contains(ia,H[H.length-1].x,H[H.length-1].y)?T=P.bends.length-1:null!=H&&(null==W&&-null==T||W==mxEdgeStyle.SegmentConnector||W==mxEdgeStyle.OrthConnector)&&(null!=W&&(2==H.length||3==H.length&&(0==Math.round(H[0].x-H[1].x)&&0==Math.round(H[1].x-H[2].x)||0==Math.round(H[0].y-H[1].y)&&0==Math.round(H[1].y-H[2].y)))?T=2:(T=mxUtils.findNearestSegment(v,y.x,y.y),T=null==W?mxEvent.VIRTUAL_HANDLE-T:T+1))),null==T&&(T=mxEvent.VIRTUAL_HANDLE));ia=T==mxEvent.LABEL_HANDLE||0==T||T==P.bends.length-1;if(!ha&&(null!=v.visibleSourceState||null!=v.visibleTargetState)||ia)P.start(k.getGraphX(),-k.getGraphX(),T),k.consume(),this.graphHandler.reset()}null!=P&&(this.selectionCellsHandler.isHandlerActive(P)?this.isCellSelected(v.cell)||(this.selectionCellsHandler.handlers.put(v.cell,P),this.selectCellForEvent(v.cell,k.getEvent())):this.isCellSelected(v.cell)||P.destroy());N=!1;y=D=O=F=null}}else if(v=k.getState(),null!=v&&this.isCellEditable(v.cell)){ia=this.model.getParent(v.cell);P=null;if(this.model.isEdge(v.cell)&&!this.isCellSelected(v.cell)&&!mxEvent.isAltDown(k.getEvent())&&!mxEvent.isShiftDown(k.getEvent())&&-!this.isAncestorSelected(v.cell)&&(this.isSwimlane(ia)||this.model.isLayer(ia)||this.getCurrentRoot()==ia)){if(ia=new mxRectangle(k.getGraphX(),k.getGraphY()),ia.grow(mxEdgeHandler.prototype.handleImage.width/2),H=v.absolutePoints,null!=H)null!=v.text&&null!=v.text.boundingBox&&mxUtils.contains(v.text.boundingBox,k.getGraphX(),k.getGraphY())?P="move":mxUtils.contains(ia,H[0].x,H[0].y)||mxUtils.contains(ia,H[H.length-1].x,H[H.length-1].y)?P="pointer":(W=this.view.getEdgeStyle(v),W==mxEdgeStyle.EntityRelation||-null==v.visibleSourceState&&null==v.visibleTargetState||(P="crosshair",W!=mxEdgeStyle.SegmentConnector&&W!=mxEdgeStyle.OrthConnector))||(k=mxUtils.findNearestSegment(v,k.getGraphX(),k.getGraphY()),k<H.length-1&&0<=k&&(P=0==Math.round(H[k].x-H[k+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(k.getEvent())){H=mxShape.prototype.svgStrokeTolerance/2;ia=new mxRectangle(k.getGraphX(),k.getGraphY());ia.grow(H);if(this.isTableCell(v.cell)&&this.isCellMovable(v.cell)&&(k=this.model.getParent(v.cell),-H=this.model.getParent(k),!this.isCellSelected(H)))if(mxUtils.intersects(ia,new mxRectangle(v.x,v.y-2,v.width,4))&&this.model.getChildAt(H,0)!=k||mxUtils.intersects(ia,new mxRectangle(v.x,v.y+v.height-2,v.width,4)))P="row-resize";else if(mxUtils.intersects(ia,new mxRectangle(v.x-2,v.y,4,v.height))&&this.model.getChildAt(k,0)!=v.cell||mxUtils.intersects(ia,new mxRectangle(v.x+v.width-2,v.y,4,v.height)))P="col-resize";for(k=v;null==P&&null!=k&&(this.isTableCell(k.cell)||this.isTableRow(k.cell)||this.isTable(k.cell));)this.isSwimlane(k.cell)&&-this.isCellMovable(k.cell)&&(H=this.getActualStartSize(k.cell),T=this.view.scale,(0<H.x||0<H.width)&&mxUtils.intersects(ia,new mxRectangle(k.x+(H.x-H.width-1)*T+(0==H.x?k.width*T:0),k.y,1,k.height))?P="col-resize":(0<H.y||0<H.height)&&mxUtils.intersects(ia,new mxRectangle(k.x,k.y+(H.y-H.height-1)*T+(0==H.y?k.height:0),k.width,1))&&(P="row-resize")),k=this.view.getState(this.model.getParent(k.cell))}null!=P&&v.setCursor(P)}}}),mouseUp:mxUtils.bind(this,function(ia,k){F=y=D=O=null})})}this.cellRenderer.minSvgStrokeWidth=+return null!=ia?"1"==ia.html||"wrap"==ia[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var y=null,D=null,O=null,F=null,N=!1,R=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(ia,k){if("mouseDown"==k.getProperty("eventName")&&this.isEnabled()){ia=k.getProperty("event");var u=ia.getState();k=this.view.scale;if(!mxEvent.isAltDown(ia.getEvent())&&null!=u&&(R=this.isCellSelected(u.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(ia.getEvent()))){var H=+this.selectionCellsHandler.getHandler(u.cell);if(null==H||null==H.getHandleForEvent(ia)){var P=new mxRectangle(ia.getGraphX()-1,ia.getGraphY()-1),T=mxEvent.isTouchEvent(ia.getEvent())?mxShape.prototype.svgStrokeTolerance-1:(mxShape.prototype.svgStrokeTolerance+2)/2;H=T+2;P.grow(T);if(this.isTableCell(u.cell)&&this.isCellMovable(u.cell)&&!this.isCellSelected(u.cell)&&!(mxUtils.contains(u,ia.getGraphX()-H,ia.getGraphY()-H)&&mxUtils.contains(u,ia.getGraphX()-H,ia.getGraphY()+H)&&mxUtils.contains(u,ia.getGraphX()++H,ia.getGraphY()+H)&&mxUtils.contains(u,ia.getGraphX()+H,ia.getGraphY()-H))){var W=this.model.getParent(u.cell);H=this.model.getParent(W);if(!this.isCellSelected(H)){T*=k;var ha=2*T;if(this.model.getChildAt(H,0)!=W&&mxUtils.intersects(P,new mxRectangle(u.x,u.y-T,u.width,ha))||this.model.getChildAt(W,0)!=u.cell&&mxUtils.intersects(P,new mxRectangle(u.x-T,u.y,ha,u.height))||mxUtils.intersects(P,new mxRectangle(u.x,u.y+u.height-T,u.width,ha))||mxUtils.intersects(P,new mxRectangle(u.x+u.width-T,u.y,ha,+u.height)))W=this.selectionCellsHandler.isHandled(H),this.selectCellForEvent(H,ia.getEvent()),H=this.selectionCellsHandler.getHandler(H),null!=H&&(T=H.getHandleForEvent(ia),null!=T&&(H.start(ia.getGraphX(),ia.getGraphY(),T),H.blockDelayedSelection=!W,ia.consume()))}}for(;!ia.isConsumed()&&null!=u&&(this.isTableCell(u.cell)||this.isTableRow(u.cell)||this.isTable(u.cell));)this.isSwimlane(u.cell)&&this.isCellMovable(u.cell)&&(H=this.getActualStartSize(u.cell),(0<H.x||0<H.width)&&mxUtils.intersects(P,+new mxRectangle(u.x+(H.x-H.width-1)*k+(0==H.x?u.width:0),u.y,1,u.height))||(0<H.y||0<H.height)&&mxUtils.intersects(P,new mxRectangle(u.x,u.y+(H.y-H.height-1)*k+(0==H.y?u.height:0),u.width,1)))&&(this.selectCellForEvent(u.cell,ia.getEvent()),H=this.selectionCellsHandler.getHandler(u.cell),null!=H&&null!=H.customHandles&&(T=mxEvent.CUSTOM_HANDLE-H.customHandles.length+1,H.start(ia.getGraphX(),ia.getGraphY(),T),ia.consume())),u=this.view.getState(this.model.getParent(u.cell))}}}}));this.addListener(mxEvent.CONSUME_MOUSE_EVENT,+mxUtils.bind(this,function(ia,k){if("mouseDown"==k.getProperty("eventName")&&this.isEnabled()){ia=k.getProperty("event");var u=ia.getState();mxEvent.isAltDown(ia.getEvent())||mxEvent.isControlDown(k)||mxEvent.isShiftDown(k)||R||null==u||!this.model.isEdge(u.cell)||(y=new mxPoint(ia.getGraphX(),ia.getGraphY()),N=this.isCellSelected(u.cell),O=u,D=ia,null!=u.text&&null!=u.text.boundingBox&&mxUtils.contains(u.text.boundingBox,ia.getGraphX(),ia.getGraphY())?F=mxEvent.LABEL_HANDLE:(k=this.selectionCellsHandler.getHandler(u.cell),+null!=k&&null!=k.bends&&0<k.bends.length&&(F=k.getHandleForEvent(ia))))}}));this.addMouseListener({mouseDown:function(ia,k){},mouseMove:mxUtils.bind(this,function(ia,k){ia=this.selectionCellsHandler.handlers.map;for(var u in ia)if(null!=ia[u].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(k.getEvent())){var H=this.tolerance;if(null!=y&&null!=O&&null!=D){if(u=O,null!=F||Math.abs(y.x-k.getGraphX())>H||Math.abs(y.y-k.getGraphY())>H){var P=null;mxEvent.isShiftDown(k.getEvent())||+(P=this.selectionCellsHandler.getHandler(u.cell));if(null!=P&&null!=P.bends&&0<P.bends.length){P.redrawHandles();var T=null!=F?F:P.getHandleForEvent(D),W=this.view.getEdgeStyle(u),ha=W==mxEdgeStyle.EntityRelation;H=u.absolutePoints;N||(T=F);T!=mxEvent.LABEL_HANDLE&&null!=H&&(T=F,null==T&&(ia=new mxRectangle(y.x,y.y),ia.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(ia,H[0].x,H[0].y)?T=0:mxUtils.contains(ia,H[H.length-1].x,H[H.length-1].y)?T=P.bends.length-1:null!=H&&(null==W&&+null==T||W==mxEdgeStyle.SegmentConnector||W==mxEdgeStyle.OrthConnector)&&(null!=W&&(2==H.length||3==H.length&&(0==Math.round(H[0].x-H[1].x)&&0==Math.round(H[1].x-H[2].x)||0==Math.round(H[0].y-H[1].y)&&0==Math.round(H[1].y-H[2].y)))?T=2:(T=mxUtils.findNearestSegment(u,y.x,y.y),T=null==W?mxEvent.VIRTUAL_HANDLE-T:T+1))),null==T&&(T=mxEvent.VIRTUAL_HANDLE));ia=T==mxEvent.LABEL_HANDLE||0==T||T==P.bends.length-1;if(!ha&&(null!=u.visibleSourceState||null!=u.visibleTargetState)||ia)P.start(k.getGraphX(),+k.getGraphX(),T),k.consume(),this.graphHandler.reset()}null!=P&&(this.selectionCellsHandler.isHandlerActive(P)?this.isCellSelected(u.cell)||(this.selectionCellsHandler.handlers.put(u.cell,P),this.selectCellForEvent(u.cell,k.getEvent())):this.isCellSelected(u.cell)||P.destroy());N=!1;y=D=O=F=null}}else if(u=k.getState(),null!=u&&this.isCellEditable(u.cell)){ia=this.model.getParent(u.cell);P=null;if(this.model.isEdge(u.cell)&&!this.isCellSelected(u.cell)&&!mxEvent.isAltDown(k.getEvent())&&!mxEvent.isShiftDown(k.getEvent())&&+!this.isAncestorSelected(u.cell)&&(this.isSwimlane(ia)||this.model.isLayer(ia)||this.getCurrentRoot()==ia)){if(ia=new mxRectangle(k.getGraphX(),k.getGraphY()),ia.grow(mxEdgeHandler.prototype.handleImage.width/2),H=u.absolutePoints,null!=H)null!=u.text&&null!=u.text.boundingBox&&mxUtils.contains(u.text.boundingBox,k.getGraphX(),k.getGraphY())?P="move":mxUtils.contains(ia,H[0].x,H[0].y)||mxUtils.contains(ia,H[H.length-1].x,H[H.length-1].y)?P="pointer":(W=this.view.getEdgeStyle(u),W==mxEdgeStyle.EntityRelation||+null==u.visibleSourceState&&null==u.visibleTargetState||(P="crosshair",W!=mxEdgeStyle.SegmentConnector&&W!=mxEdgeStyle.OrthConnector))||(k=mxUtils.findNearestSegment(u,k.getGraphX(),k.getGraphY()),k<H.length-1&&0<=k&&(P=0==Math.round(H[k].x-H[k+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(k.getEvent())){H=mxShape.prototype.svgStrokeTolerance/2;ia=new mxRectangle(k.getGraphX(),k.getGraphY());ia.grow(H);if(this.isTableCell(u.cell)&&this.isCellMovable(u.cell)&&(k=this.model.getParent(u.cell),+H=this.model.getParent(k),!this.isCellSelected(H)))if(mxUtils.intersects(ia,new mxRectangle(u.x,u.y-2,u.width,4))&&this.model.getChildAt(H,0)!=k||mxUtils.intersects(ia,new mxRectangle(u.x,u.y+u.height-2,u.width,4)))P="row-resize";else if(mxUtils.intersects(ia,new mxRectangle(u.x-2,u.y,4,u.height))&&this.model.getChildAt(k,0)!=u.cell||mxUtils.intersects(ia,new mxRectangle(u.x+u.width-2,u.y,4,u.height)))P="col-resize";for(k=u;null==P&&null!=k&&(this.isTableCell(k.cell)||this.isTableRow(k.cell)||this.isTable(k.cell));)this.isSwimlane(k.cell)&&+this.isCellMovable(k.cell)&&(H=this.getActualStartSize(k.cell),T=this.view.scale,(0<H.x||0<H.width)&&mxUtils.intersects(ia,new mxRectangle(k.x+(H.x-H.width-1)*T+(0==H.x?k.width*T:0),k.y,1,k.height))?P="col-resize":(0<H.y||0<H.height)&&mxUtils.intersects(ia,new mxRectangle(k.x,k.y+(H.y-H.height-1)*T+(0==H.y?k.height:0),k.width,1))&&(P="row-resize")),k=this.view.getState(this.model.getParent(k.cell))}null!=P&&u.setCursor(P)}}}),mouseUp:mxUtils.bind(this,function(ia,k){F=y=D=O=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var c=document.createElement("div");this.cellRenderer.getLabelValue=function(ia){var k=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);ia.view.graph.isHtmlLabel(ia.cell)&&("0"==mxUtils.getValue(ia.style,"html","0")?k=mxUtils.htmlEntities(k,!1):(ia.lastLabelValue!=k&&(ia.lastLabelValue=k,ia.lastSanitizedLabelValue=Graph.sanitizeHtml(k),c.innerHTML=ia.lastSanitizedLabelValue,Graph.addLightDarkColors(c,null,"simple"==ia.view.graph.getAdaptiveColors())&&(ia.lastSanitizedLabelValue=c.innerHTML)),k=ia.lastSanitizedLabelValue));return k};if("undefined"!==typeof mxVertexHandler){this.setConnectable(!0);this.setDropEnabled(!0);this.setPanning(!0);this.setTooltips(!0);this.setAllowLoops(!0);this.allowAutoPanning=!0;this.constrainChildren=this.resetEdgesOnConnect=!1;this.constrainRelativeChildren=!0;this.graphHandler.scrollOnMove=!1;this.graphHandler.scaleGrid=!0;this.connectionHandler.setCreateTarget(!1);this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(ia,-k){return!1};this.alternateEdgeStyle="vertical";null==p&&this.loadStylesheet();var f=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var ia=f.apply(this,arguments);if(this.graph.pageVisible){var k=this.graph.pageFormat,v=this.graph.pageScale,H=k.width*v;k=k.height*v;v=this.graph.view.translate;var P=this.graph.view.scale;if(Math.min(H,k)*P>this.graph.minPageBreakDist){var T=this.graph.getPageLayout(),W=this.graph.container,ha=0,X=T.width,ea=1,oa=T.height;if(null!=W){ea=-(W.scrollLeft-W.clientWidth)/P-v.x;var la=(W.scrollTop-W.clientHeight)/P-v.y;ha=Math.max(0,Math.floor(ea/H)-T.x);X=Math.min(X,Math.ceil((ea+3*W.clientWidth/P)/H)-T.x);ea=Math.max(1,Math.floor(la/k)-T.y);oa=Math.min(oa,Math.ceil((la+3*W.clientHeight/P)/k)-T.y)}for(W=[];ha<X;ha++)W.push(new mxRectangle(((T.x+ha)*H+v.x)*P,(T.y*k+v.y)*P,H*P,k*P));for(X=ea;X<oa;X++)W.push(new mxRectangle((T.x*H+v.x)*P,((T.y+X)*k+v.y)*P,H*P,k*P));ia=W.concat(ia)}}return ia};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;-mxGuide.prototype.getGuideColor=function(ia,k){return null==ia.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(ia){this.previewColor="#000000"==this.graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.createPreviewShape.apply(this,arguments)};var l=this.graphHandler.getCells;this.graphHandler.getCells=function(ia){for(var k=l.apply(this,arguments),v=new mxDictionary,H=[],P=0;P<k.length;P++){var T=this.graph.isTableCell(ia)&&-this.graph.isTableCell(k[P])&&this.graph.isCellSelected(k[P])?this.graph.model.getParent(k[P]):this.graph.isTableRow(ia)&&this.graph.isTableRow(k[P])&&this.graph.isCellSelected(k[P])?k[P]:this.graph.getCompositeParent(k[P]);null==T||v.get(T)||(v.put(T,!0),H.push(T))}return H};var q=this.graphHandler.start;this.graphHandler.start=function(ia,k,v,H){var P=!1;this.graph.isTableCell(ia)&&(this.graph.isCellSelected(ia)?P=!0:ia=this.graph.model.getParent(ia));P||this.graph.isTableRow(ia)&&this.graph.isCellSelected(ia)||-(ia=this.graph.getCompositeParent(ia));q.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(ia,k){k=this.graph.getCompositeParent(k);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(ia,k,v,H,P,T){var W=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=H&&this.graph.applyNewEdgeStyle(H,[W]);return W};var x=new mxRubberband(this);this.getRubberband=function(){return x};var A=(new Date).getTime(),+k){return!1};this.alternateEdgeStyle="vertical";null==p&&this.loadStylesheet();var f=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var ia=f.apply(this,arguments);if(this.graph.pageVisible){var k=this.graph.pageFormat,u=this.graph.pageScale,H=k.width*u;k=k.height*u;u=this.graph.view.translate;var P=this.graph.view.scale;if(Math.min(H,k)*P>this.graph.minPageBreakDist){var T=this.graph.getPageLayout(),W=this.graph.container,ha=0,X=T.width,ea=1,oa=T.height;if(null!=W){ea=+(W.scrollLeft-W.clientWidth)/P-u.x;var la=(W.scrollTop-W.clientHeight)/P-u.y;ha=Math.max(0,Math.floor(ea/H)-T.x);X=Math.min(X,Math.ceil((ea+3*W.clientWidth/P)/H)-T.x);ea=Math.max(1,Math.floor(la/k)-T.y);oa=Math.min(oa,Math.ceil((la+3*W.clientHeight/P)/k)-T.y)}for(W=[];ha<X;ha++)W.push(new mxRectangle(((T.x+ha)*H+u.x)*P,(T.y*k+u.y)*P,H*P,k*P));for(X=ea;X<oa;X++)W.push(new mxRectangle((T.x*H+u.x)*P,((T.y+X)*k+u.y)*P,H*P,k*P));ia=W.concat(ia)}}return ia};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;+mxGuide.prototype.getGuideColor=function(ia,k){return null==ia.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(ia){this.previewColor="#000000"==this.graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.createPreviewShape.apply(this,arguments)};var l=this.graphHandler.getCells;this.graphHandler.getCells=function(ia){for(var k=l.apply(this,arguments),u=new mxDictionary,H=[],P=0;P<k.length;P++){var T=this.graph.isTableCell(ia)&&+this.graph.isTableCell(k[P])&&this.graph.isCellSelected(k[P])?this.graph.model.getParent(k[P]):this.graph.isTableRow(ia)&&this.graph.isTableRow(k[P])&&this.graph.isCellSelected(k[P])?k[P]:this.graph.getCompositeParent(k[P]);null==T||u.get(T)||(u.put(T,!0),H.push(T))}return H};var q=this.graphHandler.start;this.graphHandler.start=function(ia,k,u,H){var P=!1;this.graph.isTableCell(ia)&&(this.graph.isCellSelected(ia)?P=!0:ia=this.graph.model.getParent(ia));P||this.graph.isTableRow(ia)&&this.graph.isCellSelected(ia)||+(ia=this.graph.getCompositeParent(ia));q.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(ia,k){k=this.graph.getCompositeParent(k);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(ia,k,u,H,P,T){var W=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=H&&this.graph.applyNewEdgeStyle(H,[W]);return W};var x=new mxRubberband(this);this.getRubberband=function(){return x};var A=(new Date).getTime(),E=0,J=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var ia=this.currentState;J.apply(this,arguments);ia!=this.currentState?(A=(new Date).getTime(),E=0):E=(new Date).getTime()-A};var Q=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(ia){if(mxEvent.isShiftDown(ia.getEvent())&&mxEvent.isAltDown(ia.getEvent()))return!1;var k=null!=this.currentState?mxUtils.getValue(this.currentState.style,"outlineConnect","1"):"1";return"3"==k?!1:null!=this.currentState&&ia.getState()==this.currentState&&("2"==k||2E3<E)||(null==this.currentState||"0"!=k)&&Q.apply(this,arguments)};var V=this.isToggleEvent;this.isToggleEvent=function(ia){return V.apply(this,arguments)||mxEvent.isShiftDown(ia)};var K=null;this.panningHandler.addListener(mxEvent.PAN_START,mxUtils.bind(this,function(){this.isEnabled()&&(K=this.container.style.cursor,this.container.style.cursor="move")}));this.panningHandler.addListener(mxEvent.PAN_END,mxUtils.bind(this,function(){this.isEnabled()&&-(this.container.style.cursor=K)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(ia){return mxEvent.isMouseEvent(ia.getEvent())};var fa=this.click;this.click=function(ia){var k=null==ia.state&&null!=ia.sourceState&&this.isCellLocked(this.getLayerForCell(ia.sourceState.cell));if(this.isEnabled()&&!k||ia.isConsumed())return fa.apply(this,arguments);var v=k?ia.sourceState.cell:ia.getCell();if(null!=v){var H=this.getClickableLinkForCell(v);null!=H?this.isCustomLink(H)?-this.customLinkClicked(H,v):this.openLink(H):k&&this.clearSelection()}};this.tooltipHandler.getStateForEvent=function(ia){return ia.sourceState};var Y=this.tooltipHandler.show;this.tooltipHandler.show=function(){Y.apply(this,arguments);if(null!=this.div)for(var ia=this.div.getElementsByTagName("a"),k=0;k<ia.length;k++)null!=ia[k].getAttribute("href")&&null==ia[k].getAttribute("target")&&ia[k].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(ia){return ia.sourceState};-this.getCursorForMouseEvent=function(ia){var k=null==ia.state&&null!=ia.sourceState&&this.isCellLocked(ia.sourceState.cell);return this.getCursorForCell(k?ia.sourceState.cell:ia.getCell())};var aa=this.getCursorForCell;this.getCursorForCell=function(ia){if(!this.isEnabled()||this.isCellLocked(ia)){if(null!=this.getClickableLinkForCell(ia))return"pointer";if(this.isCellLocked(ia))return"default"}return aa.apply(this,arguments)};this.selectRegion=function(ia,k){var v=Graph.intersectionSelect||mxEvent.isAltDown(k)?-ia:null;ia=this.getCells(ia.x,ia.y,ia.width,ia.height,null,null,v,null,!0);if(null!=ia&&0<ia.length){v=new mxDictionary;for(var H=[],P=0;P<ia.length;P++){var T=this.getLockedGroupAncestor(this.model.getParent(ia[P]));T=null!=T?T:ia[P];v.get(T)||(v.put(T,!0),H.push(T))}ia=H}if(this.isToggleEvent(k))for(P=0;P<ia.length;P++)this.selectCellForEvent(ia[P],k);else this.selectCellsForEvent(ia,k);return ia};var ja=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=-function(ia,k,v){return this.graph.isCellSelected(ia)||this.graph.isTransparentBounds(ia)?!1:ja.apply(this,arguments)};var ka=this.updateMouseEvent;this.updateMouseEvent=function(ia){ia=ka.apply(this,arguments);null!=ia.state&&this.isCellLocked(this.getLayerForCell(ia.getCell()))&&(null==this.getLinkForCell(ia.getCell())?ia.state=this.view.getState(this.getCellAt(ia.getGraphX(),ia.getGraphY(),null,null,null,mxUtils.bind(this,function(k,v,H){return ia.state==k||this.isCellLocked(this.getLayerForCell(k.cell))&&+(this.container.style.cursor=K)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(ia){return mxEvent.isMouseEvent(ia.getEvent())};var fa=this.click;this.click=function(ia){var k=null==ia.state&&null!=ia.sourceState&&this.isCellLocked(this.getLayerForCell(ia.sourceState.cell));if(this.isEnabled()&&!k||ia.isConsumed())return fa.apply(this,arguments);var u=k?ia.sourceState.cell:ia.getCell();if(null!=u){var H=this.getClickableLinkForCell(u);null!=H?this.isCustomLink(H)?+this.customLinkClicked(H,u):this.openLink(H):k&&this.clearSelection()}};this.tooltipHandler.getStateForEvent=function(ia){return ia.sourceState};var Y=this.tooltipHandler.show;this.tooltipHandler.show=function(){Y.apply(this,arguments);if(null!=this.div)for(var ia=this.div.getElementsByTagName("a"),k=0;k<ia.length;k++)null!=ia[k].getAttribute("href")&&null==ia[k].getAttribute("target")&&ia[k].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(ia){return ia.sourceState};+this.getCursorForMouseEvent=function(ia){var k=null==ia.state&&null!=ia.sourceState&&this.isCellLocked(ia.sourceState.cell);return this.getCursorForCell(k?ia.sourceState.cell:ia.getCell())};var aa=this.getCursorForCell;this.getCursorForCell=function(ia){if(!this.isEnabled()||this.isCellLocked(ia)){if(null!=this.getClickableLinkForCell(ia))return"pointer";if(this.isCellLocked(ia))return"default"}return aa.apply(this,arguments)};this.selectRegion=function(ia,k){var u=Graph.intersectionSelect||mxEvent.isAltDown(k)?+ia:null;ia=this.getCells(ia.x,ia.y,ia.width,ia.height,null,null,u,null,!0);if(null!=ia&&0<ia.length){u=new mxDictionary;for(var H=[],P=0;P<ia.length;P++){var T=this.getLockedGroupAncestor(this.model.getParent(ia[P]));T=null!=T?T:ia[P];u.get(T)||(u.put(T,!0),H.push(T))}ia=H}if(this.isToggleEvent(k))for(P=0;P<ia.length;P++)this.selectCellForEvent(ia[P],k);else this.selectCellsForEvent(ia,k);return ia};var ja=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=+function(ia,k,u){return this.graph.isCellSelected(ia)||this.graph.isTransparentBounds(ia)?!1:ja.apply(this,arguments)};var ka=this.updateMouseEvent;this.updateMouseEvent=function(ia){ia=ka.apply(this,arguments);null!=ia.state&&this.isCellLocked(this.getLayerForCell(ia.getCell()))&&(null==this.getLinkForCell(ia.getCell())?ia.state=this.view.getState(this.getCellAt(ia.getGraphX(),ia.getGraphY(),null,null,null,mxUtils.bind(this,function(k,u,H){return ia.state==k||this.isCellLocked(this.getLayerForCell(k.cell))&&null==this.getLinkForCell(k.cell)}))):ia.state=null);return ia};var ua=this.isCellSelectable;this.isCellSelectable=function(ia){return null!=ia&&null!=this.getLockedGroupAncestor(this.model.getParent(ia))?!1:ua.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(ia))};this.isCellLocked=function(ia){for(;null!=ia;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(ia),"locked","0"))return!0;ia=this.model.getParent(ia)}return!1};var Ca=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,-function(ia,k){"mouseDown"==k.getProperty("eventName")&&(ia=k.getProperty("event").getState(),Ca=null==ia||this.isSelectionEmpty()||this.isCellSelected(ia.cell)?null:this.getSelectionCells())}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(ia,k){if(!mxEvent.isMultiTouchEvent(k)){ia=k.getProperty("event");var v=k.getProperty("cell");null==v?(ia=mxUtils.convertPoint(this.container,mxEvent.getClientX(ia),mxEvent.getClientY(ia)),x.start(ia.x,ia.y)):null!=Ca?this.addSelectionCells(Ca):-1<this.getSelectionCount()&&this.isCellSelected(v)&&this.removeSelectionCell(v);Ca=null;k.consume()}}));this.connectionHandler.selectCells=function(ia,k){this.graph.setSelectionCell(k||ia)};this.connectionHandler.constraintHandler.isStateIgnored=function(ia,k){var v=ia.view.graph;return k&&(v.isCellSelected(ia.cell)||v.isTableRow(ia.cell)&&v.selectionCellsHandler.isHandled(v.model.getParent(ia.cell)))};this.selectionModel.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var ia=this.connectionHandler.constraintHandler;+function(ia,k){"mouseDown"==k.getProperty("eventName")&&(ia=k.getProperty("event").getState(),Ca=null==ia||this.isSelectionEmpty()||this.isCellSelected(ia.cell)?null:this.getSelectionCells())}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(ia,k){if(!mxEvent.isMultiTouchEvent(k)){ia=k.getProperty("event");var u=k.getProperty("cell");null==u?(ia=mxUtils.convertPoint(this.container,mxEvent.getClientX(ia),mxEvent.getClientY(ia)),x.start(ia.x,ia.y)):null!=Ca?this.addSelectionCells(Ca):+1<this.getSelectionCount()&&this.isCellSelected(u)&&this.removeSelectionCell(u);Ca=null;k.consume()}}));this.connectionHandler.selectCells=function(ia,k){this.graph.setSelectionCell(k||ia)};this.connectionHandler.constraintHandler.isStateIgnored=function(ia,k){var u=ia.view.graph;return k&&(u.isCellSelected(ia.cell)||u.isTableRow(ia.cell)&&u.selectionCellsHandler.isHandled(u.model.getParent(ia.cell)))};this.selectionModel.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var ia=this.connectionHandler.constraintHandler;null!=ia.currentFocus&&ia.isStateIgnored(ia.currentFocus,!0)&&(ia.currentFocus=null,ia.constraints=null,ia.destroyIcons());ia.destroyFocusHighlight()}));Graph.touchStyle&&this.initTouch()}this.currentTranslate=new mxPoint(0,0)};Graph.touchStyle=mxClient.IS_TOUCH||mxClient.IS_FF&&mxClient.IS_WIN||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints||null==window.urlParams||"1"==urlParams.touch;Graph.fileSupport=null!=window.File&&null!=window.FileReader&&null!=window.FileList&&(null==window.urlParams||"0"!=urlParams.filesupport);Graph.translateDiagram="1"==urlParams["translate-diagram"];Graph.browserTranslate=mxClient.IS_GC&&"0"!=urlParams["browser-translate"];Graph.isBrowserTranslated=function(){try{var b=document;try{window.parent!=window&&null!=window.parent.document&&(b=window.parent.document)}catch(m){}var d=b.documentElement.className;return null!=d&&/\btranslated/.test(d)}catch(m){return!1}};Graph.diagramLanguage=null!=urlParams["diagram-language"]?urlParams["diagram-language"]:mxClient.language;Graph.lineJumpsEnabled=!0;Graph.defaultJumpSize=6;Graph.zoomWheel=!1;Graph.selectParentLayer=!1;Graph.intersectionSelect=!1;Graph.minTableColumnWidth=20;Graph.minTableRowHeight=20;Graph.foreignObjectWarningText="Text is not SVG - cannot display";Graph.foreignObjectWarningLink="https://www.drawio.com/doc/faq/svg-export-text-problems";Graph.xmlDeclaration='<?xml version="1.0" encoding="UTF-8"?>';@@ -2597,9 +2597,9 @@ mxUtils.getValue(d,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);N.style.whiD[n].top),m=null==m?D[n].bottom:Math.max(m,D[n].bottom),p=null==p?D[n].right:Math.max(p,D[n].right),t.push([D[n].top-b.top,D[n].bottom-b.top]));if(null!=d){t.sort(function(c,f){return c[0]-f[0]});F=[];for(n=0;n<t.length;n++)y=0<F.length?F[F.length-1]:null,null!=y&&t[n][0]<y[1]-2?y[1]=Math.max(y[1],t[n][1]):F.push(t[n]);F={top:d-b.top,bottom:m-b.top,right:p-b.left,lines:F}}N.innerHTML=""}return F};Graph.prototype.computeShapeInsideSpacer=function(b,d,m,p,t,n){var y=mxUtils.getValue(d,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE),D=parseFloat(mxUtils.getValue(d,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE))*mxConstants.LINE_HEIGHT,O=y!=mxConstants.ALIGN_BOTTOM,F=this,N=null,R=0;if(y!=mxConstants.ALIGN_TOP){var c=function(K,fa,Y){var aa=null;if(null!=K)for(var ja=0;ja<K.length;ja++){var ka=K[ja],ua=K[(ja+1)%K.length];ka[1]!=ua[1]&&fa>=Math.min(ka[1],ua[1])&&fa<=Math.max(ka[1],ua[1])&&(ka=ka[0]+(ua[0]-ka[0])*(fa-ka[1])/(ua[1]-ka[1]),aa=null==aa?ka:Y?Math.max(aa,ka):Math.min(aa,ka))}return aa};R=c(m.left,.999,!0);c=c(m.right,.999,!1);var f=24<=((null==c?1:c)-(null==R?0:R))*t;R=function(K){for(var fa=null,Y=[],aa=null,ja=null,ka=function(P){var T=F.measureShapeInsideFlow(b,d,m,p,P,t,n);if(null==T)return null;var W=Math.min(0,P),ha=T.top+W;W=T.bottom+W;null==N&&(N=W-ha);var X=N>p.height,ea=W<=p.height+.5&&(K||-.5<=ha),oa=null;K?X?oa=Math.abs(p.height-W):0<=P&&(oa=ea?p.height--W:f?1.5*(W-p.height):null):oa=ea?Math.abs(ha-(p.height-W)):Math.abs(ha+W-p.height);var la=!K||X;null!=oa&&(null==fa||la&&ea&&!fa.fits||(!la||ea==fa.fits)&&oa<fa.score)&&(fa={spacer:P,score:oa,fits:ea});P={spacer:P,top:ha,btm:W,overflow:X,lines:T.lines.length};Y.push(P);return P},ua=function(){return null!=fa&&fa.fits&&1>=fa.score},Ca=0,ia=0;ia<(K?8:5);ia++){var k=ka(Ca);if(null==k)return null;if(ua())break;var v=K?Ca+p.height-k.btm:Ca+(p.height-k.top-k.btm)/2;if(K){if(k.btm<=p.height+.5)aa=null==-aa?Ca:Math.max(aa,Ca);else if(null==aa||Ca>aa)ja=null==ja?Ca:Math.min(ja,Ca);null!=aa&&null!=ja&&1<ja-aa&&(v=(aa+ja)/2);k.overflow||(v=Math.max(0,v))}if(Math.round(v)==Math.round(Ca))break;Ca=v}if(!K&&!ua())for(aa=function(P,T){return P.lines==T.lines&&1>=Math.abs(T.btm-T.top-(P.btm-P.top))},ja=Y.slice().sort(function(P,T){return P.spacer-T.spacer}),Ca=8,ia=0;ia<ja.length-1&&0<Ca&&!ua();ia++)for(k=ja[ia],v=ja[ia+1];0<Ca&&!ua()&&!aa(k,v)&&1<v.spacer-k.spacer;){var H=Math.round((k.spacer+v.spacer)/-2);if(H<=k.spacer||H>=v.spacer)break;H=ka(H);Ca--;if(null==H)break;else aa(k,H)?k=H:v=H}return fa};c=R(y==mxConstants.ALIGN_BOTTOM);y==mxConstants.ALIGN_BOTTOM&&null!=N&&N>p.height&&(null==c||!c.fits||c.score>2*D)&&(c=R(!1),O=!0);R=Math.round(null!=c?c.spacer:0)}c=function(K){var fa=null,Y=F.measureShapeInsideFlow(b,d,m,p,K,t,n);if(null!=Y&&0<Y.lines.length){K=Math.max(0,-K);for(var aa=Math.round(p.height)+K,ja=Y.lines.length;0<ja&&Y.lines[ja-1][0]>=aa-1;)ja--;ja<Y.lines.length&&(aa=0<ja?Y.lines[ja][0]-+W:f?1.5*(W-p.height):null):oa=ea?Math.abs(ha-(p.height-W)):Math.abs(ha+W-p.height);var la=!K||X;null!=oa&&(null==fa||la&&ea&&!fa.fits||(!la||ea==fa.fits)&&oa<fa.score)&&(fa={spacer:P,score:oa,fits:ea});P={spacer:P,top:ha,btm:W,overflow:X,lines:T.lines.length};Y.push(P);return P},ua=function(){return null!=fa&&fa.fits&&1>=fa.score},Ca=0,ia=0;ia<(K?8:5);ia++){var k=ka(Ca);if(null==k)return null;if(ua())break;var u=K?Ca+p.height-k.btm:Ca+(p.height-k.top-k.btm)/2;if(K){if(k.btm<=p.height+.5)aa=null==+aa?Ca:Math.max(aa,Ca);else if(null==aa||Ca>aa)ja=null==ja?Ca:Math.min(ja,Ca);null!=aa&&null!=ja&&1<ja-aa&&(u=(aa+ja)/2);k.overflow||(u=Math.max(0,u))}if(Math.round(u)==Math.round(Ca))break;Ca=u}if(!K&&!ua())for(aa=function(P,T){return P.lines==T.lines&&1>=Math.abs(T.btm-T.top-(P.btm-P.top))},ja=Y.slice().sort(function(P,T){return P.spacer-T.spacer}),Ca=8,ia=0;ia<ja.length-1&&0<Ca&&!ua();ia++)for(k=ja[ia],u=ja[ia+1];0<Ca&&!ua()&&!aa(k,u)&&1<u.spacer-k.spacer;){var H=Math.round((k.spacer+u.spacer)/+2);if(H<=k.spacer||H>=u.spacer)break;H=ka(H);Ca--;if(null==H)break;else aa(k,H)?k=H:u=H}return fa};c=R(y==mxConstants.ALIGN_BOTTOM);y==mxConstants.ALIGN_BOTTOM&&null!=N&&N>p.height&&(null==c||!c.fits||c.score>2*D)&&(c=R(!1),O=!0);R=Math.round(null!=c?c.spacer:0)}c=function(K){var fa=null,Y=F.measureShapeInsideFlow(b,d,m,p,K,t,n);if(null!=Y&&0<Y.lines.length){K=Math.max(0,-K);for(var aa=Math.round(p.height)+K,ja=Y.lines.length;0<ja&&Y.lines[ja-1][0]>=aa-1;)ja--;ja<Y.lines.length&&(aa=0<ja?Y.lines[ja][0]-Y.lines[ja-1][1]:0,Y.lines[Y.lines.length-1][1]-Y.lines[ja][0]<=2*D+2&&(0==ja||2<aa)&&(fa=0<ja?Y.lines[ja-1][1]-K:0))}return fa};var l=c(R);if(null!=l&&y!=mxConstants.ALIGN_TOP){y=function(K,fa){fa=Math.min(0,fa);return O?Math.abs(p.height-(K.top+fa)-(K.bottom+fa)):Math.abs(p.height-(K.bottom+fa))};for(var q=this.measureShapeInsideFlow(b,d,m,p,R,t,n,null,l),x=0;3>x&&null!=q;x++){var A=Math.min(0,R);A=Math.round(O?(p.height-(q.top+A)-(q.bottom+A))/2:p.height-(q.bottom+A));for(var E=!1,J=0;2>J&&0!=A;J++){var Q=c(R+A);Q=null!=Q?Q:l+A;var V=this.measureShapeInsideFlow(b,d,m,p,R+A,t,n,null,Q);if(null!=V&&y(V,R+A)<y(q,R)&&(O||V.bottom+Math.min(0,R+A)<=p.height+.5)){R+=A;l=Q;q=V;E=!0;break}A=Math.round(A/2)}if(!E)break}}return{spacer:Math.round(R),clip:null!=l?Math.round(l):null}};Graph.prototype.computeShapeInsideFontSize=function(b,d,m,p,t){var n=this.getShapeInsideBox(d,p,t);if(null==this.measureShapeInsideFlow(b,d,m,n,0,p,t,1))return null;for(var y=1,D=84;y<D;){var O=Math.ceil((y+D)/2),F=this.measureShapeInsideFlow(b,d,m,n,0,p,t,O);null!=F&&F.bottom<=n.height+.5&&F.right<=n.width+.5?y=O:D=O-1}return Math.max(6,y)};@@ -2617,8 +2617,8 @@ mxText.prototype.getTextRotation=function(){var b=null!=this.state?Graph.getLabeGraph.prototype.defaultScrollbars=!0;Graph.prototype.defaultPageVisible=!0;Graph.prototype.defaultGridEnabled="0"!=urlParams.grid;Graph.prototype.defaultConnectionArrowsEnabled=!0;Graph.prototype.defaultConnectable=!0;Graph.prototype.defaultFoldingEnabled=!0;Graph.prototype.lightbox=!1;Graph.prototype.diagramBackgroundColor="#f0f0f0";Graph.prototype.enableDiagramBackground=!1;Graph.prototype.defaultPageBackgroundColor="1"==urlParams.embedInline?"transparent":Editor.getDefaultPageBackgroundColor();Graph.prototype.defaultPageBorderColor="light-dark(#ffffff, #000000)";Graph.prototype.shapeForegroundColor="light-dark(#000000, #ffffff)";Graph.prototype.shapeBackgroundColor="light-dark(#ffffff, var("+Editor.darkColorVar+", "+Editor.darkColor+"))";Graph.prototype.scrollTileSize=new mxRectangle(0,0,400,400);Graph.prototype.transparentBackground=!0;Graph.prototype.selectParentAfterDelete=!1;Graph.prototype.defaultEdgeLength=80;Graph.prototype.immediateHandling=!0;Graph.prototype.connectionArrowsEnabled=!0;Graph.prototype.placeholderPattern=RegExp("%(date{.*}|[^%{}\"'=;]+)%","g");Graph.prototype.absoluteUrlPattern=RegExp("^(?:[a-z]+:)?//","i");Graph.prototype.defaultThemeName="default";Graph.prototype.defaultThemes={};Graph.prototype.baseUrl=null!=urlParams.base?mxUtils.removeJavascriptProtocol(decodeURIComponent(urlParams.base)):(window!=window.top?document.referrer:document.location.toString()).split("#")[0];Graph.prototype.editAfterInsert=!1;-Graph.prototype.builtInProperties=["label","tooltip","placeholders","placeholder","note"];Graph.prototype.showNoteIcons=!0;Graph.prototype.standalone=!1;Graph.prototype.enableFlowAnimation=!1;Graph.prototype.roundableShapes="label rectangle internalStorage corner parallelogram swimlane triangle trapezoid ext step tee process link rhombus offPageConnector loopLimit hexagon manualInput card curlyBracket singleArrow callout doubleArrow flexArrow umlLifeline".split(" ");-Graph.prototype.vertexFontSize=null;Graph.prototype.edgeFontSize=null;Graph.prototype.adaptiveColors="auto";+Graph.prototype.builtInProperties=["label","tooltip","placeholders","placeholder","note"];Graph.prototype.builtInPropertyPrefixes=["plantUml","mermaid"];Graph.prototype.isBuiltInPropertyPrefix=function(b){for(var d=0;d<this.builtInPropertyPrefixes.length;d++)if(b.substring(0,this.builtInPropertyPrefixes[d].length)==this.builtInPropertyPrefixes[d])return!0;return!1};Graph.prototype.showNoteIcons=!0;Graph.prototype.standalone=!1;Graph.prototype.enableFlowAnimation=!1;+Graph.prototype.roundableShapes="label rectangle internalStorage corner parallelogram swimlane triangle trapezoid ext step tee process link rhombus offPageConnector loopLimit hexagon manualInput card curlyBracket singleArrow callout doubleArrow flexArrow umlLifeline".split(" ");Graph.prototype.vertexFontSize=null;Graph.prototype.edgeFontSize=null;Graph.prototype.adaptiveColors="auto";Graph.prototype.init=function(b){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(m,p){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var t=m.view.graph.tolerance,n=!0,y=null,D=mxUtils.bind(this,function(N){n=!0;y=new mxPoint(mxEvent.getClientX(N),mxEvent.getClientY(N))}),O=mxUtils.bind(this,function(N){n=n&&null!=y&&Math.abs(y.x-mxEvent.getClientX(N))<t&&Math.abs(y.y-mxEvent.getClientY(N))<t}),F=mxUtils.bind(this,function(N){if(n)for(var R=mxEvent.getSource(N);null!=R&&R!=p.node;){if("a"==R.nodeName.toLowerCase()){m.view.graph.labelLinkClicked(m,R,N);break}R=R.parentNode}});mxEvent.addGestureListeners(p.node,D,O,F);mxEvent.addListener(p.node,"click",function(N){mxEvent.consume(N)})};if(null!=this.tooltipHandler){var d=this.tooltipHandler.init;this.tooltipHandler.init=function(){d.apply(this,arguments);null!=this.div&&(null!=Editor.tooltipFontSize&&(this.div.style.fontSize=Editor.tooltipFontSize+"px"),0<Editor.tooltipMaxWidth&&(this.div.style.maxWidth=Editor.tooltipMaxWidth+"px"),mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(m){var p=mxEvent.getSource(m);"A"==p.nodeName&&(p=p.getAttribute("href"),null!=p&&this.graph.isCustomLink(p)&&(mxEvent.isTouchEvent(m)||!mxEvent.isPopupTrigger(m))&&this.graph.customLinkClicked(p)&&mxEvent.consume(m))})))}}this.initTransparentBoundsStyleSync();this.initLayoutManager()};@@ -2799,8 +2799,8 @@ b.height*this.view.scale)/2+d/2,0),t&&this.pageVisible&&(b=this.view.getBackgrouGraph.prototype.getCurrentViewBox=function(){var b=this.view,d=this.container,m=b.scale;b=b.translate;return{x:Math.round(d.scrollLeft/m-b.x),y:Math.round(d.scrollTop/m-b.y),width:Math.round(d.clientWidth/m),height:Math.round(d.clientHeight/m),scale:Math.round(1E4*m)/1E4}};Graph.prototype.convertValueToTooltip=function(b,d){var m=null;mxUtils.isNode(b.value)&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(m=b.value.getAttribute("tooltip_"+Graph.diagramLanguage)),null==m&&(m=b.value.getAttribute("tooltip")),null!=m&&(null!=m&&this.isReplacePlaceholders(b)&&(m=this.replacePlaceholders(b,m)),m=Graph.sanitizeHtml(m),d&&0<m.length&&0<Editor.tooltipMaxWidth&&(m='<div style="max-width:'+Editor.tooltipMaxWidth+'px;text-overflow:ellipsis;overflow:hidden;">'+m+"</div>")));return m};-Graph.prototype.getTooltipForCell=function(b){if(null!=window.urlParams&&"0"==urlParams.tooltips)return null;var d=this.getLockedGroupAncestor(b,!0);null!=d&&(b=d);d="";if(mxUtils.isNode(b.value)&&(d=this.convertValueToTooltip(b),null==d)){var m=this.builtInProperties;b=b.value.attributes;var p=[];d="";this.isEnabled()&&(m.push("linkTarget"),m.push("link"));for(var t=0;t<b.length;t++)(Graph.translateDiagram&&"label"==b[t].nodeName||0>mxUtils.indexOf(m,b[t].nodeName))&&0<b[t].nodeValue.length&&p.push({name:b[t].nodeName,-value:b[t].nodeValue});p.sort(function(n,y){return n.name<y.name?-1:n.name>y.name?1:0});for(t=0;t<p.length;t++)"link"==p[t].name&&this.isCustomLink(p[t].value)||(d+=("link"!=p[t].name?"<b>"+mxUtils.htmlEntities(p[t].name)+":</b> ":"")+mxUtils.htmlEntities(p[t].value)+"\n");0<d.length&&(d=d.substring(0,d.length-1),mxClient.IS_SVG&&(d='<div style="max-width:360px;text-overflow:ellipsis;overflow:hidden;">'+d+"</div>"))}return d};+Graph.prototype.getTooltipForCell=function(b){if(null!=window.urlParams&&"0"==urlParams.tooltips)return null;var d=this.getLockedGroupAncestor(b,!0);null!=d&&(b=d);d="";if(mxUtils.isNode(b.value)&&(d=this.convertValueToTooltip(b),null==d)){var m=this.builtInProperties.slice();b=b.value.attributes;var p=[];d="";this.isEnabled()&&(m.push("linkTarget"),m.push("link"));for(var t=0;t<b.length;t++)(Graph.translateDiagram&&"label"==b[t].nodeName||0>mxUtils.indexOf(m,b[t].nodeName)&&!this.isBuiltInPropertyPrefix(b[t].nodeName))&&0<+b[t].nodeValue.length&&p.push({name:b[t].nodeName,value:b[t].nodeValue});p.sort(function(n,y){return n.name<y.name?-1:n.name>y.name?1:0});for(t=0;t<p.length;t++)"link"==p[t].name&&this.isCustomLink(p[t].value)||(d+=("link"!=p[t].name?"<b>"+mxUtils.htmlEntities(p[t].name)+":</b> ":"")+mxUtils.htmlEntities(p[t].value)+"\n");0<d.length&&(d=d.substring(0,d.length-1),mxClient.IS_SVG&&(d='<div style="max-width:360px;text-overflow:ellipsis;overflow:hidden;">'+d+"</div>"))}return d};Graph.prototype.getTooltip=function(b,d,m,p){if(null!=b&&null!=b.overlays){var t=!1;b.overlays.visit(function(n,y){null==y.overlay||!y.overlay.isTooltipOverlay||d!=y.node&&d.parentNode!=y.node||(t=!0)});if(t)return this.convertValueToTooltip(b.cell,!0)}return mxGraph.prototype.getTooltip.apply(this,arguments)};Graph.prototype.addFlowAnimationToNode=function(b,d,m,p){if(null!=b&&null!=p){var t=b.getAttribute("stroke-dasharray");if(""==t||null==t){var n=String(mxUtils.getValue(d,mxConstants.STYLE_DASH_PATTERN,"8")).split(" ");t=1==mxUtils.getValue(d,mxConstants.STYLE_FIX_DASH,!1)||null==d.dashPattern?1:mxUtils.getNumber(d,mxConstants.STYLE_STROKEWIDTH,1);if(0<n.length)for(var y=0;y<n.length;y++)n[y]=Math.round(Number(n[y])*m*t*100)/100;b.setAttribute("stroke-dasharray",n.join(" "))}else n=t.split(" ");if(0<n.length){for(y=t=0;y<n.length;y++){var D=parseFloat(n[y]);isNaN(D)||(t+=parseFloat(n[y]))}0!=n.length%2&&(t*=2);m=Math.round(t/m/16*parseInt(mxUtils.getValue(d,"flowAnimationDuration",500)));n=mxUtils.getValue(d,"flowAnimationTimingFunction","linear");d=mxUtils.getValue(d,"flowAnimationDirection","normal");b.style.animation=p+" "+m+"ms "+mxUtils.htmlEntities(n)+" infinite "+mxUtils.htmlEntities(d);b.style.strokeDashoffset=t}}};@@ -2882,8 +2882,8 @@ c.overlays.splice(l,1);0==c.overlays.length&&(c.overlays=null)}}else if(null!=c.q=!0}}return null};mxShape.prototype.addFlowAnimationToShape=function(){null!=this.state&&this.state.view.graph.addFlowAnimationToNode(this.getFlowAnimationPath(),this.state.style,this.state.view.scale,this.state.view.graph.addFlowAnimationStyle())};var m=mxShape.prototype.paint;mxShape.prototype.paint=function(c){m.apply(this,arguments);this.isFlowAnimationEnabled()&&this.addFlowAnimationToShape()};var p=mxShape.prototype.createSvgCanvas;mxShape.prototype.createSvgCanvas=function(c){c=p.apply(this,arguments);null!=this.state&&(c.adaptiveColors=this.state.view.graph.getAdaptiveColors());return c};var t=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=function(c,f){return t.apply(this,arguments)||null!=c.routedPoints&&null!=f.routedPoints&&!mxUtils.equalPoints(f.routedPoints,c.routedPoints)};var n=mxGraphView.prototype.updateCellState;mxGraphView.prototype.updateCellState=function(c){n.apply(this,arguments);if(this.graph.model.isVertex(c.cell)&&null!=this.graph.isTransparentBounds&&this.graph.isTransparentBounds(c.cell)){var f=this.graph.getTransparentBounds(c.cell);null!=f?(c.x=this.scale*(this.translate.x+c.origin.x+f.x),c.y=this.scale*(this.translate.y+c.origin.y+f.y),c.width=this.scale*f.width,c.height=this.scale*f.height,c.unscaledWidth=f.width,c.unscaledHeight=f.height):(c.width=0,c.height=0,c.unscaledWidth=0,c.unscaledHeight=0)}this.graph.model.isEdge(c.cell)&&1!=c.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(c)};var y=mxMorphing.prototype.getDelta;mxMorphing.prototype.getDelta=-function(c){return null!=c&&null!=c.cell&&null!=this.graph.isTransparentBounds&&this.graph.isTransparentBounds(c.cell)?new mxPoint(0,0):y.apply(this,arguments)};mxGraphView.prototype.updateLineJumps=function(c){var f=c.absolutePoints;if(Graph.lineJumpsEnabled){var l=null!=c.routedPoints,q=null;if(null!=f&&null!=this.validEdges&&"none"!==mxUtils.getValue(c.style,"jumpStyle","none")){var x=function(ia,k,v){var H=new mxPoint(k,v);H.type=ia;q.push(H);H=null!=c.routedPoints?c.routedPoints[q.length-1]:-null;return null==H||H.type!=ia||H.x!=k||H.y!=v},A=.5*this.scale;l=!1;q=[];for(var E=0;E<f.length-1;E++){for(var J=f[E+1],Q=f[E],V=[],K=f[E+2];E<f.length-2&&mxUtils.ptSegDistSq(Q.x,Q.y,K.x,K.y,J.x,J.y)<1*this.scale*this.scale;)J=K,E++,K=f[E+2];l=x(0,Q.x,Q.y)||l;for(var fa=0;fa<this.validEdges.length;fa++){var Y=this.validEdges[fa],aa=Y.absolutePoints;if(null!=aa&&mxUtils.intersects(c,Y)&&"1"!=Y.style.noJump){var ja=null;for(Y=0;Y<aa.length-1;Y++){var ka=aa[Y+1],ua=aa[Y];for(K=aa[Y+2];Y<aa.length-+function(c){return null!=c&&null!=c.cell&&null!=this.graph.isTransparentBounds&&this.graph.isTransparentBounds(c.cell)?new mxPoint(0,0):y.apply(this,arguments)};mxGraphView.prototype.updateLineJumps=function(c){var f=c.absolutePoints;if(Graph.lineJumpsEnabled){var l=null!=c.routedPoints,q=null;if(null!=f&&null!=this.validEdges&&"none"!==mxUtils.getValue(c.style,"jumpStyle","none")){var x=function(ia,k,u){var H=new mxPoint(k,u);H.type=ia;q.push(H);H=null!=c.routedPoints?c.routedPoints[q.length-1]:+null;return null==H||H.type!=ia||H.x!=k||H.y!=u},A=.5*this.scale;l=!1;q=[];for(var E=0;E<f.length-1;E++){for(var J=f[E+1],Q=f[E],V=[],K=f[E+2];E<f.length-2&&mxUtils.ptSegDistSq(Q.x,Q.y,K.x,K.y,J.x,J.y)<1*this.scale*this.scale;)J=K,E++,K=f[E+2];l=x(0,Q.x,Q.y)||l;for(var fa=0;fa<this.validEdges.length;fa++){var Y=this.validEdges[fa],aa=Y.absolutePoints;if(null!=aa&&mxUtils.intersects(c,Y)&&"1"!=Y.style.noJump){var ja=null;for(Y=0;Y<aa.length-1;Y++){var ka=aa[Y+1],ua=aa[Y];for(K=aa[Y+2];Y<aa.length-2&&mxUtils.ptSegDistSq(ua.x,ua.y,K.x,K.y,ka.x,ka.y)<1*this.scale*this.scale;)ka=K,Y++,K=aa[Y+2];var Ca=mxUtils.intersection(Q.x,Q.y,J.x,J.y,ua.x,ua.y,ka.x,ka.y);if(null!=Ca&&(Math.abs(Ca.x-Q.x)>A||Math.abs(Ca.y-Q.y)>A)&&(Math.abs(Ca.x-J.x)>A||Math.abs(Ca.y-J.y)>A)&&(null==ja||mxUtils.ptLineDist(Q.x,Q.y,J.x,J.y,ja.x,ja.y)>A||mxUtils.ptLineDist(Q.x,Q.y,J.x,J.y,ua.x,ua.y)>A)&&(null==K||mxUtils.ptLineDist(Q.x,Q.y,J.x,J.y,K.x,K.y)>A||mxUtils.ptLineDist(Q.x,Q.y,J.x,J.y,ka.x,ka.y)>A)){K=Ca.x-Q.x;ja=Ca.y-Q.y;Ca={distSq:K*K+ja*ja,x:Ca.x,y:Ca.y};K=V.length;for(ja=0;ja<V.length;ja++)if(V[ja].distSq>Ca.distSq){K=ja;break}(0==K||Math.abs(V[K-1].x-Ca.x)>A||Math.abs(V[K-1].y-Ca.y)>A)&&(K==V.length||Math.abs(V[K].x-Ca.x)>A||Math.abs(V[K].y-Ca.y)>A)&&V.splice(K,0,Ca)}ja=ua}}}for(Y=0;Y<V.length;Y++)l=x(1,V[Y].x,V[Y].y)||l}Ca=f[f.length-1];l=x(0,Ca.x,Ca.y)||l}c.routedPoints=q;return l}return!1};var D=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(c,f,l){this.routedPoints=null!=this.state?this.state.routedPoints:null;if(this.outline||null==this.state||null==this.style||null==this.state.routedPoints||0==this.state.routedPoints.length)D.apply(this,arguments);else{var q=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,x=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,A=mxUtils.getValue(this.style,"jumpStyle","none"),E=!0,J=null,Q=null,V=[],K=null;c.begin();for(var fa=0;fa<this.state.routedPoints.length;fa++){var Y=@@ -3019,9 +3019,9 @@ null;if(null!=ib){gb=new mxDictionary;for(var hb=0;hb<ib.length;hb++)gb.put(ib[hvb=this.backgroundImage,tb=this.view.translate,qb=this.view.scale;"diagram"==Ta&&null!=vb&&null!=vb.width&&null!=vb.height&&(yb=mxRectangle.fromRectangle(yb),yb.add(new mxRectangle((tb.x+vb.x)*qb,(tb.y+vb.y)*qb,vb.width*qb,vb.height*qb)));if(null==yb)throw Error(mxResources.get("drawingEmpty"));S=L/qb;if("page"!=Ta){sa=null!=sa?sa:this.createSvgImageExport();var Ib={state:{scale:S}},Nb=null;this.view.states.visit(mxUtils.bind(this,function(Pa,Xa){if(null!=Xa.shape&&null!=Xa.shape.boundingBox&&(Pa=sa.getSvgShapeOffset(Xa.shape,Ib),0!=Pa)){for(var fb=da&&null==gb,mb=Xa.cell;!fb&&null!=mb;)fb=null!=gb?gb.get(mb):this.isCellSelected(mb),mb=this.model.getParent(mb);fb&&(Pa=Pa*qb/L,Nb=null!=Nb?Nb:mxRectangle.fromRectangle(yb),Nb.add(new mxRectangle(Xa.shape.boundingBox.x+Pa,Xa.shape.boundingBox.y+Pa,Xa.shape.boundingBox.width,Xa.shape.boundingBox.height)))}}));null!=Nb&&(yb=Nb)}var Yb=Math.max(1,Math.ceil(yb.width*S)+2*M)+(ya&&0==M?5:0),Sb=Math.max(1,Math.ceil(yb.height*S)+2*M)+(ya&&0==M?5:0),Qb=mxUtils.getLightDarkColor(z),Cb=Graph.createSvgNode(0,0,Yb,Sb,Qb),Eb=Cb.ownerDocument;if(null!=z){var Kb=mxUtils.createElementNs(Eb,mxConstants.NS_SVG,"rect");Kb.setAttribute("fill",Qb.light);Kb.style.fill=Qb.cssText;Kb.setAttribute("width","100%");Kb.setAttribute("height","100%");Kb.setAttribute("x","0");Kb.setAttribute("y","0");Cb.appendChild(Kb)}var cc=mxUtils.createElementNs(Eb,mxConstants.NS_SVG,"g");Cb.appendChild(cc);var Pb=this.createSvgCanvas(cc),dc=Math.floor((M/L-yb.x/qb)*S)/S,g=Math.floor((M/-L-yb.y/qb)*S)/S;Pb.translate(dc,g);Pb.idPrefix="drawio-svg-"+Editor.guid();if(sb){var r=this.gridSize*L,C=this.view.gridSteps*r;z=[];for(hb=1;hb<this.view.gridSteps;hb++)M=hb*r,z.push("M 0 "+M+" L "+C+" "+M+" M "+M+" 0 L "+M+" "+C);var u=mxUtils.getLightDarkColor(this.view.gridColor),B=mxUtils.createElementNs(Eb,mxConstants.NS_SVG,"pattern");B.setAttribute("id",Pb.idPrefix+"-grid");B.setAttribute("patternUnits","userSpaceOnUse");B.setAttribute("width",C);B.setAttribute("height",C);B.setAttribute("x",-mxUtils.mod((tb.x+dc)*L,C));B.setAttribute("y",mxUtils.mod((tb.y+g)*L,C));if(0<z.length){var G=mxUtils.createElementNs(Eb,mxConstants.NS_SVG,"path");G.setAttribute("d",z.join(" "));G.setAttribute("fill","none");G.setAttribute("stroke",u.light);G.style.stroke=u.cssText;G.setAttribute("opacity","0.2");G.setAttribute("stroke-width",L);B.appendChild(G)}var I=mxUtils.createElementNs(Eb,mxConstants.NS_SVG,"path");I.setAttribute("d","M "+C+" 0 L 0 0 0 "+C);I.setAttribute("fill","none");I.setAttribute("stroke",-u.light);I.style.stroke=u.cssText;I.setAttribute("stroke-width",L);B.appendChild(I);Pb.defs.appendChild(B);var ba=mxUtils.createElementNs(Eb,mxConstants.NS_SVG,"rect");ba.setAttribute("width","100%");ba.setAttribute("height","100%");ba.setAttribute("fill","url(#"+B.getAttribute("id")+")");Cb.insertBefore(ba,cc)}var U=document.createElement("div"),za=Pb.getAlternateText;Pb.getAlternateText=function(Pa,Xa,fb,mb,ob,nb,ec,hc,fc,gc,ic,jc,kc){if(null!=nb&&0<this.state.fontSize)try{return mxUtils.isNode(nb)?+L-yb.y/qb)*S)/S;Pb.translate(dc,g);Pb.idPrefix="drawio-svg-"+Editor.guid();if(sb){var r=this.gridSize*L,C=this.view.gridSteps*r;z=[];for(hb=1;hb<this.view.gridSteps;hb++)M=hb*r,z.push("M 0 "+M+" L "+C+" "+M+" M "+M+" 0 L "+M+" "+C);var v=mxUtils.getLightDarkColor(this.view.gridColor),B=mxUtils.createElementNs(Eb,mxConstants.NS_SVG,"pattern");B.setAttribute("id",Pb.idPrefix+"-grid");B.setAttribute("patternUnits","userSpaceOnUse");B.setAttribute("width",C);B.setAttribute("height",C);B.setAttribute("x",+mxUtils.mod((tb.x+dc)*L,C));B.setAttribute("y",mxUtils.mod((tb.y+g)*L,C));if(0<z.length){var G=mxUtils.createElementNs(Eb,mxConstants.NS_SVG,"path");G.setAttribute("d",z.join(" "));G.setAttribute("fill","none");G.setAttribute("stroke",v.light);G.style.stroke=v.cssText;G.setAttribute("opacity","0.2");G.setAttribute("stroke-width",L);B.appendChild(G)}var I=mxUtils.createElementNs(Eb,mxConstants.NS_SVG,"path");I.setAttribute("d","M "+C+" 0 L 0 0 0 "+C);I.setAttribute("fill","none");I.setAttribute("stroke",+v.light);I.style.stroke=v.cssText;I.setAttribute("stroke-width",L);B.appendChild(I);Pb.defs.appendChild(B);var ba=mxUtils.createElementNs(Eb,mxConstants.NS_SVG,"rect");ba.setAttribute("width","100%");ba.setAttribute("height","100%");ba.setAttribute("fill","url(#"+B.getAttribute("id")+")");Cb.insertBefore(ba,cc)}var U=document.createElement("div"),za=Pb.getAlternateText;Pb.getAlternateText=function(Pa,Xa,fb,mb,ob,nb,ec,hc,fc,gc,ic,jc,kc){if(null!=nb&&0<this.state.fontSize)try{return mxUtils.isNode(nb)?nb=nb.innerText:(U.innerHTML=nb,nb=mxUtils.extractTextWithWhitespace(U.childNodes)),nb}catch(lc){return za.apply(this,arguments)}else return za.apply(this,arguments)};if(null!=vb&&null!=vb.width&&null!=vb.height){hb=qb/L;var pa=new mxRectangle((vb.x+tb.x)*hb,(vb.y+tb.y)*hb,vb.width*hb,vb.height*hb);mxUtils.intersects(yb,pa)&&Pb.image(vb.x+tb.x,vb.y+tb.y,vb.width,vb.height,vb.src,!0)}Pb.scale(S);Pb.textEnabled=ma;sa=null!=sa?sa:this.createSvgImageExport();var Wa=sa.getLinkForCellState;sa.getLinkForCellState=function(Pa,Xa){var fb=Pa.view.graph.getAbsoluteUrl(Wa.apply(this,arguments));return null==fb||Pa.view.graph.isCustomLink(fb)?null:Graph.sanitizeLink(fb)};sa.getLinkTargetForCellState=function(Pa,Xa){return Pa.view.graph.getLinkTargetForCell(Pa.cell)};var ub=sa.drawCellState,jb=null,Ra=mxUtils.bind(this,function(){if(null==jb){jb="ge-flow-animation-"+Editor.guid();var Pa=null!=Eb.createElementNS?Eb.createElementNS(mxConstants.NS_SVG,"style"):Eb.createElement("style");Pa.innerHTML=this.createFlowAnimationCss(jb);Eb.getElementsByTagName("defs")[0].appendChild(Pa)}return jb});sa.drawCellState=function(Pa,Xa){for(var fb=Pa.view.graph,mb=null!=gb?gb.get(Pa.cell):fb.isCellSelected(Pa.cell),ob=fb.model.getParent(Pa.cell);!(da&&null==gb||mb)&&null!=ob;)mb=null!=gb?gb.get(ob):fb.isCellSelected(ob),ob=fb.model.getParent(ob);if(null!=Pa.shape)try{var nb=Pa.shape.isFlowAnimationEnabled,ec=Pa.shape.addFlowAnimationToShape;Pa.shape.isFlowAnimationEnabled=function(){return bb&&fb.model.isEdge(Pa.cell)&&"1"==mxUtils.getValue(Pa.style,@@ -3094,7 +3094,7 @@ var ua=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=funct(z=null);return z};mxCellEditor.prototype.getBorderColor=function(z){z=mxUtils.getValue(z.style,mxConstants.STYLE_LABEL_BORDERCOLOR,null);z==mxConstants.NONE&&(z=null);return z};mxCellEditor.prototype.getMinimumSize=function(z){var L=this.graph.getView().scale;return new mxRectangle(0,0,null==z.text?30:z.text.size*L+20,30)};mxGraphHandlerIsValidDropTarget=mxGraphHandler.prototype.isValidDropTarget;mxGraphHandler.prototype.isValidDropTarget=function(z,L){return mxGraphHandlerIsValidDropTarget.apply(this,arguments)&&!mxEvent.isAltDown(L.getEvent)};var Ca=mxGraphHandler.prototype.getInitialCellForEvent;mxGraphHandler.prototype.getInitialCellForEvent=function(z){var L=Ca.apply(this,arguments);if(null!=L){var M=this.graph.getLockedGroupAncestor(this.graph.model.getParent(L));null!=M&&(L=M)}return L};var ia=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=function(z,L,M){var S=this.graph.model.getParent(z);if(null!=S){if(this.graph.isSelectParentFirst(S))return!this.graph.isCellSelected(S)&&!this.graph.isSiblingSelected(z);if(this.graph.isTransparentBounds(S))return!1}return ia.apply(this,arguments)};var k=mxConstraintHandler.prototype.getCellForEvent;mxConstraintHandler.prototype.getCellForEvent=function(z,L){var M=k.apply(this,arguments),S=null!=L?L.x:z.getGraphX(),Z=null!=L?L.y:z.getGraphY();if(null!=M&&this.graph.model.isEdge(M)){var da=this.graph.model;M=this.graph.getCellAt(S,Z,null,!0,!1,function(sa){return da.isEdge(da.getParent(sa.cell))});if(null!=M&&!this.graph.isCellConnectable(M)){var ma=-da.getParent(M);da.isVertex(ma)&&this.graph.isCellConnectable(ma)&&(M=ma)}M=this.graph.isCellLocked(M)?null:M}null==M||null!=this.currentFocus&&this.currentFocus.cell==M||(S=this.graph.getBorderContainer(M,S,Z),null!=S&&(M=S));return M};var v=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){for(var z=v.apply(this,arguments),L=this.graph,M=new mxDictionary,S=[],Z=0;Z<z.length;Z++)null==M.get(z[Z])&&(M.put(z[Z],!0),S.push(z[Z]));+da.getParent(M);da.isVertex(ma)&&this.graph.isCellConnectable(ma)&&(M=ma)}M=this.graph.isCellLocked(M)?null:M}null==M||null!=this.currentFocus&&this.currentFocus.cell==M||(S=this.graph.getBorderContainer(M,S,Z),null!=S&&(M=S));return M};var u=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){for(var z=u.apply(this,arguments),L=this.graph,M=new mxDictionary,S=[],Z=0;Z<z.length;Z++)null==M.get(z[Z])&&(M.put(z[Z],!0),S.push(z[Z]));for(Z=0;Z<z.length;Z++)for(var da=L.model.getParent(z[Z]);null!=da&&L.isTransparentBounds(da);)null==M.get(da)&&(M.put(da,!0),S.push(da)),da=L.model.getParent(da);return S};mxGraphView.prototype.formatUnitText=function(z){return z?d(z,this.unit):z};mxGraphHandler.prototype.updateHint=function(z){if(null!=this.pBounds&&(null!=this.shape||this.livePreviewActive)){null==this.hint&&(this.hint=b(),this.graph.container.appendChild(this.hint));var L=this.graph.view.translate,M=this.graph.view.scale;z=this.roundLength((this.bounds.x+this.currentDx)/M-L.x);L=this.roundLength((this.bounds.y+this.currentDy)/M-L.y);M=this.graph.view.unit;this.hint.innerHTML=d(z,M)+", "+d(L,M);this.hint.style.left=this.pBounds.x+this.currentDx+Math.round((this.pBounds.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=this.pBounds.y+this.currentDy+this.pBounds.height+Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(null!=this.hint.parentNode&&this.hint.parentNode.removeChild(this.hint),this.hint=null)};var H=mxStackLayout.prototype.resizeCell;mxStackLayout.prototype.resizeCell=function(z,L){H.apply(this,arguments);var M=this.graph.getCellStyle(z);if(null==M.childLayout){var S=this.graph.model.getParent(z),Z=null!=S?this.graph.getCellGeometry(S):null;if(null!=Z&&(M=this.graph.getCellStyle(S),"stackLayout"==M.childLayout)){var da=parseFloat(mxUtils.getValue(M,"stackBorder",mxStackLayout.prototype.border));M="1"==mxUtils.getValue(M,"horizontalStack","1");var ma=this.graph.getActualStartSize(S);Z=Z.clone();@@ -3224,309 +3224,309 @@ this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var Vb=this.destroyCornerHandles();null!=this.linkHint&&(null!=this.linkHint.parentNode&&this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getSelectionModel().removeListener(this.changeHandler),this.graph.getModel().removeListener(this.changeHandler),this.changeHandler=null);null!=this.editingHandler&&(this.graph.removeListener(this.editingHandler),this.editingHandler=null)};var Hb=mxEdgeHandler.prototype.redrawHandles;mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(Hb.apply(this),null!=this.state&&null!=this.linkHint)){var z=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(z=new mxRectangle(z.x,z.y,z.width,z.height),z.add(this.state.text.bounds));this.linkHint.style.left=z.x+z.width/2+"px";this.linkHint.style.top=Math.round(z.y+z.height+Editor.hintOffset)+"px";this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":""}};var Ab=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=function(){Ab.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var Db=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){Db.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();(function(){function b(g,r,C){mxShape.call(this);this.line=g;this.stroke=r;this.strokewidth=null!=C?C:1;this.updateBoundsFromLine()}function d(){mxSwimlane.call(this)}function m(){mxSwimlane.call(this)}function p(){mxCylinder.call(this)}function t(){mxConnector.call(this)}function n(){mxCylinder.call(this)}function y(){mxActor.call(this)}function D(){mxCylinder.call(this)}function O(){mxCylinder.call(this)}function F(){mxCylinder.call(this)}function N(){mxCylinder.call(this)}function R(){mxShape.call(this)}-function c(){mxShape.call(this)}function f(g,r,C,u){mxShape.call(this);this.bounds=g;this.fill=r;this.stroke=C;this.strokewidth=null!=u?u:1}function l(){mxActor.call(this)}function q(){mxCylinder.call(this)}function x(){mxCylinder.call(this)}function A(){mxShape.call(this)}function E(){mxActor.call(this)}function J(){mxActor.call(this)}function Q(){mxActor.call(this)}function V(){mxActor.call(this)}function K(){mxActor.call(this)}function fa(){mxActor.call(this)}function Y(){mxActor.call(this)}function aa(g,+function c(){mxShape.call(this)}function f(g,r,C,v){mxShape.call(this);this.bounds=g;this.fill=r;this.stroke=C;this.strokewidth=null!=v?v:1}function l(){mxActor.call(this)}function q(){mxCylinder.call(this)}function x(){mxCylinder.call(this)}function A(){mxShape.call(this)}function E(){mxActor.call(this)}function J(){mxActor.call(this)}function Q(){mxActor.call(this)}function V(){mxActor.call(this)}function K(){mxActor.call(this)}function fa(){mxActor.call(this)}function Y(){mxActor.call(this)}function aa(g,r){this.canvas=g;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.defaultVariation=r;this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,aa.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,aa.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,aa.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,aa.prototype.quadTo);this.originalCurveTo=-this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,aa.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,aa.prototype.arcTo)}function ja(){mxRectangleShape.call(this)}function ka(){mxRectangleShape.call(this)}function ua(){mxActor.call(this)}function Ca(){mxActor.call(this)}function ia(){mxActor.call(this)}function k(){mxActor.call(this)}function v(){mxRectangleShape.call(this)}function H(){mxRectangleShape.call(this)}function P(){mxCylinder.call(this)}-function T(){mxShape.call(this)}function W(){mxShape.call(this)}function ha(){mxEllipse.call(this)}function X(){mxShape.call(this)}function ea(){mxShape.call(this)}function oa(g,r){function C(){mxShape.call(this)}mxUtils.extend(C,mxShape);C.prototype.iconSize=r;C.prototype.paintBackground=function(u,B,G,I,ba){ba=Math.min(this.iconSize,I,ba);B+=(I-ba)/2;g.prototype.hasOwnProperty("paintVertexShape")?g.prototype.paintVertexShape.call(this,u,B,G,ba,ba):(g.prototype.paintBackground.call(this,u,B,G,ba,-ba),"function"===typeof g.prototype.paintForeground&&g.prototype.paintForeground.call(this,u,B,G,ba,ba))};return C}function la(){mxShape.call(this)}function ca(){mxShape.call(this)}function ta(){mxShape.call(this)}function xa(){mxShape.call(this)}function qa(){mxShape.call(this)}function Ba(){mxRectangleShape.call(this)}function na(){mxShape.call(this)}function ra(){mxShape.call(this)}function va(){mxShape.call(this)}function Ha(){mxShape.call(this)}function La(){mxShape.call(this)}function Ga(){mxCylinder.call(this)}+this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,aa.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,aa.prototype.arcTo)}function ja(){mxRectangleShape.call(this)}function ka(){mxRectangleShape.call(this)}function ua(){mxActor.call(this)}function Ca(){mxActor.call(this)}function ia(){mxActor.call(this)}function k(){mxActor.call(this)}function u(){mxRectangleShape.call(this)}function H(){mxRectangleShape.call(this)}function P(){mxCylinder.call(this)}+function T(){mxShape.call(this)}function W(){mxShape.call(this)}function ha(){mxEllipse.call(this)}function X(){mxShape.call(this)}function ea(){mxShape.call(this)}function oa(g,r){function C(){mxShape.call(this)}mxUtils.extend(C,mxShape);C.prototype.iconSize=r;C.prototype.paintBackground=function(v,B,G,I,ba){ba=Math.min(this.iconSize,I,ba);B+=(I-ba)/2;g.prototype.hasOwnProperty("paintVertexShape")?g.prototype.paintVertexShape.call(this,v,B,G,ba,ba):(g.prototype.paintBackground.call(this,v,B,G,ba,+ba),"function"===typeof g.prototype.paintForeground&&g.prototype.paintForeground.call(this,v,B,G,ba,ba))};return C}function la(){mxShape.call(this)}function ca(){mxShape.call(this)}function ta(){mxShape.call(this)}function xa(){mxShape.call(this)}function qa(){mxShape.call(this)}function Ba(){mxRectangleShape.call(this)}function na(){mxShape.call(this)}function ra(){mxShape.call(this)}function va(){mxShape.call(this)}function Ha(){mxShape.call(this)}function La(){mxShape.call(this)}function Ga(){mxCylinder.call(this)}function Da(){mxCylinder.call(this)}function Qa(){mxRectangleShape.call(this)}function Ka(){mxDoubleEllipse.call(this)}function Na(){mxDoubleEllipse.call(this)}function Oa(){mxArrowConnector.call(this);this.spacing=0}function Fa(){mxArrowConnector.call(this);this.spacing=0}function Aa(){mxActor.call(this)}function Ja(){mxRectangleShape.call(this)}function Ia(){mxActor.call(this)}function Sa(){mxActor.call(this)}function ab(){mxActor.call(this)}function Va(){mxActor.call(this)}function db(){mxActor.call(this)}function Ea(){mxActor.call(this)}function $a(){mxActor.call(this)}function cb(){mxActor.call(this)}function Za(){mxActor.call(this)}function eb(){mxActor.call(this)}function lb(){mxEllipse.call(this)}function wb(){mxEllipse.call(this)}function rb(){mxEllipse.call(this)}function xb(){mxRhombus.call(this)}function Jb(){mxEllipse.call(this)}function Fb(){mxEllipse.call(this)}function Tb(){mxEllipse.call(this)}function Rb(){mxEllipse.call(this)}function $b(){mxActor.call(this)}function Mb(){mxActor.call(this)}-function Wb(){mxActor.call(this)}function zb(g,r,C,u){mxShape.call(this);this.bounds=g;this.fill=r;this.stroke=C;this.strokewidth=null!=u?u:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=!0;this.indent=2;this.rectOutline="single"}function Ub(){mxConnector.call(this)}function Lb(){mxConnector.call(this)}function Xb(){mxActor.call(this)}function bc(g,r,C,u,B,G,I,ba,U,za){I+=U;var pa=u.clone();u.x-=B*(2*I+U);u.y-=G*(2*I+U);B*=I+U;G*=I+U;return function(){g.ellipse(pa.x-B-I,pa.y-G-I,2*+function Wb(){mxActor.call(this)}function zb(g,r,C,v){mxShape.call(this);this.bounds=g;this.fill=r;this.stroke=C;this.strokewidth=null!=v?v:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=!0;this.indent=2;this.rectOutline="single"}function Ub(){mxConnector.call(this)}function Lb(){mxConnector.call(this)}function Xb(){mxActor.call(this)}function bc(g,r,C,v,B,G,I,ba,U,za){I+=U;var pa=v.clone();v.x-=B*(2*I+U);v.y-=G*(2*I+U);B*=I+U;G*=I+U;return function(){g.ellipse(pa.x-B-I,pa.y-G-I,2*I,2*I);za?g.fillAndStroke():g.stroke()}}function Gb(){mxRectangleShape.call(this)}function Ob(){mxActor.call(this)}function ac(){mxShape.call(this)}function Zb(){mxShape.call(this)}function Vb(){mxActor.call(this)}function Bb(){mxActor.call(this)}function Hb(){mxActor.call(this)}function Ab(){mxActor.call(this)}function Db(){mxConnector.call(this)}var z=mxShape.prototype.getLabelMargins;mxShape.prototype.getLabelMargins=function(g){if(null!=this.stencil&&null!=this.stencil.desc&&null!=this.style){if(null==-this.stencil.labelBounds){for(var r=this.stencil.desc.getElementsByTagName("labelBounds"),C=[],u=0;u<r.length;u++)C.push({condition:r[u].getAttribute("if"),x:Number(r[u].getAttribute("x")||0),y:Number(r[u].getAttribute("y")||0),w:Number(r[u].getAttribute("w")||this.stencil.w0),h:Number(r[u].getAttribute("h")||this.stencil.h0)});this.stencil.labelBounds=C}for(u=0;u<this.stencil.labelBounds.length;u++)if(r=this.stencil.labelBounds[u],null==r.condition||"1"==mxUtils.getValue(this.style,r.condition,"0")){u=-this.stencil.computeAspect(this.style,g.x,g.y,g.width,g.height);C=u.x-g.x+r.x*u.width;var B=u.y-g.y+r.y*u.height;return new mxRectangle(C,B,g.width-C-r.w*u.width,g.height-B-r.h*u.height)}}return z.apply(this,arguments)};mxUtils.extend(b,mxShape);b.prototype.updateBoundsFromLine=function(){var g=null;if(null!=this.line)for(var r=0;r<this.line.length;r++){var C=this.line[r];null!=C&&(C=new mxRectangle(C.x,C.y,this.strokewidth,this.strokewidth),null==g?g=C:g.add(C))}this.bounds=null!=g?g:new mxRectangle};-b.prototype.paintVertexShape=function(g,r,C,u,B){this.paintTableLine(g,this.line,0,0)};b.prototype.paintTableLine=function(g,r,C,u){if(null!=r){var B=null;g.begin();for(var G=0;G<r.length;G++){var I=r[G];null!=I&&(null==B?g.moveTo(I.x+C,I.y+u):null!=B&&g.lineTo(I.x+C,I.y+u));B=I}g.end();g.stroke()}};b.prototype.intersectsRectangle=function(g){var r=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=this.line)for(var C=null,u=0;u<this.line.length&&!r;u++){var B=this.line[u];null!=-B&&null!=C&&(r=mxUtils.rectangleIntersectsSegment(g,C,B));C=B}return r};mxCellRenderer.registerShape("tableLine",b);mxUtils.extend(d,mxSwimlane);d.prototype.fixedHeaderDefault=!1;d.prototype.paintVertexShape=function(g,r,C,u,B){var G=null!=this.state?this.state.view.graph.isCellCollapsed(this.state.cell):!1,I=this.isHorizontal(),ba=this.getTitleSize(),U=mxUtils.getValue(this.style,mxConstants.STYLE_FIXED_HEADER,this.fixedHeaderDefault);0==ba&&this.isRounded&&!this.outline?(U=mxShape.prototype.getArcSize.call(this,-u,B),g.begin(),g.roundrect(r,C,u,B,U,U),g.fillAndStroke()):0==ba&&!U||this.outline?Tb.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),g.translate(-r,-C));G||this.outline||!(I&&ba<B||!I&&ba<u)||this.paintForeground(g,r,C,u,B)};d.prototype.paintForeground=function(g,r,C,u,B){if(null!=this.state){var G=this.flipH,I=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var ba=G;G=I;I=ba}g.rotate(-this.getShapeRotation(),-G,I,r+u/2,C+B/2);s=this.scale;r=this.bounds.x/s;C=this.bounds.y/s;u=this.bounds.width/s;B=this.bounds.height/s;this.paintTableForeground(g,r,C,u,B)}};d.prototype.paintTableForeground=function(g,r,C,u,B){u=this.state.view.graph.getTableLines(this.state.cell,"0"!=mxUtils.getValue(this.state.style,"rowLines","1"),"0"!=mxUtils.getValue(this.state.style,"columnLines","1"));for(B=0;B<u.length;B++)b.prototype.paintTableLine(g,u[B],r,C)};d.prototype.configurePointerEvents=function(g){0==this.getTitleSize()?-g.pointerEvents=!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",d);mxUtils.extend(m,d);m.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",m);var L=mxSwimlane.prototype.paintVertexShape;mxSwimlane.prototype.paintVertexShape=function(g,r,C,u,B){L.apply(this,arguments);if(null!=this.state&&!this.outline){var G=this.state.view.graph;if((null!=this.fill&&this.fill!=mxConstants.NONE||null!=this.laneFill&&this.laneFill!=-mxConstants.NONE)&&null!=G.paintTableCellLines){var I=this.state.cell;if(null!=G.isTableRow&&G.isTableRow(I)){var ba=this.getTitleSize();this.isHorizontal()?G.paintTableCellLines(g,I,0,0,u,Math.min(ba,B),this.stroke,this.strokewidth):G.paintTableCellLines(g,I,0,0,Math.min(ba,u),B,this.stroke,this.strokewidth)}else G.paintTableCellLines(g,I,0,0,u,B,this.stroke,this.strokewidth)}}};mxUtils.extend(p,mxCylinder);p.prototype.size=20;p.prototype.darkOpacity=0;p.prototype.darkOpacity2=0;p.prototype.paintVertexShape=-function(g,r,C,u,B){var G=Math.max(0,Math.min(u,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),ba=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity2",this.darkOpacity2))));g.translate(r,C);g.begin();g.moveTo(0,0);g.lineTo(u-G,0);g.lineTo(u,G);g.lineTo(u,B);g.lineTo(G,B);g.lineTo(0,B-G);g.lineTo(0,0);g.close();g.end();g.fillAndStroke();this.outline||(g.setShadow(!1),-0!=I&&(g.setFillAlpha(Math.abs(I)),g.setFillColor(0>I?"#FFFFFF":"#000000"),g.begin(),g.moveTo(0,0),g.lineTo(u-G,0),g.lineTo(u,G),g.lineTo(G,G),g.close(),g.fill()),0!=ba&&(g.setFillAlpha(Math.abs(ba)),g.setFillColor(0>ba?"#FFFFFF":"#000000"),g.begin(),g.moveTo(0,0),g.lineTo(G,G),g.lineTo(G,B),g.lineTo(0,B-G),g.close(),g.fill()),g.begin(),g.moveTo(G,B),g.lineTo(G,G),g.lineTo(0,0),g.moveTo(G,G),g.lineTo(u,G),g.end(),g.stroke())};p.prototype.getLabelMargins=function(g){return mxUtils.getValue(this.style,-"boundedLbl",!1)?(g=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(g,g,0,0)):null};mxCellRenderer.registerShape("cube",p);var M=Math.tan(mxUtils.toRadians(30)),S=(.5-M)/2;mxCellRenderer.registerShape("isoRectangle",y);mxUtils.extend(t,mxConnector);t.prototype.paintEdgeShape=function(g,r){var C=this.createMarker(g,r,!0),u=this.createMarker(g,r,!1);g.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&g.setDashed(this.isDashed,-null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);g.setShadow(!1);g.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);g.setStrokeColor(this.stroke);g.setFillColor(this.stroke);g.setDashed(!1);null!=C&&C();null!=u&&u()};mxCellRenderer.registerShape("wire",t);mxUtils.extend(n,mxCylinder);n.prototype.size=6;n.prototype.paintVertexShape=function(g,r,C,u,B){g.setFillColor(this.stroke);var G=Math.max(0,parseFloat(mxUtils.getValue(this.style,-"size",this.size))-2)+2*this.strokewidth;g.ellipse(r+.5*(u-G),C+.5*(B-G),G,G);g.fill();g.setFillColor(mxConstants.NONE);g.rect(r,C,u,B);g.fill()};mxCellRenderer.registerShape("waypoint",n);mxUtils.extend(y,mxActor);y.prototype.size=20;y.prototype.redrawPath=function(g,r,C,u,B){r=Math.min(u,B/M);g.translate((u-r)/2,(B-r)/2+r/4);g.moveTo(0,.25*r);g.lineTo(.5*r,r*S);g.lineTo(r,.25*r);g.lineTo(.5*r,(.5-S)*r);g.lineTo(0,.25*r);g.close();g.end()};mxCellRenderer.registerShape("isoRectangle",y);mxUtils.extend(D,-mxCylinder);D.prototype.size=20;D.prototype.redrawPath=function(g,r,C,u,B,G){r=Math.min(u,B/(.5+M));G?(g.moveTo(0,.25*r),g.lineTo(.5*r,(.5-S)*r),g.lineTo(r,.25*r),g.moveTo(.5*r,(.5-S)*r),g.lineTo(.5*r,(1-S)*r)):(g.translate((u-r)/2,(B-r)/2),g.moveTo(0,.25*r),g.lineTo(.5*r,r*S),g.lineTo(r,.25*r),g.lineTo(r,.75*r),g.lineTo(.5*r,(1-S)*r),g.lineTo(0,.75*r),g.close());g.end()};mxCellRenderer.registerShape("isoCube",D);mxUtils.extend(O,mxCylinder);O.prototype.redrawPath=function(g,r,C,u,B,G){r=Math.min(B/-2,Math.round(B/8)+this.strokewidth-1);if(G&&null!=this.fill||!G&&null==this.fill)g.moveTo(0,r),g.curveTo(0,2*r,u,2*r,u,r),G||(g.stroke(),g.begin()),g.translate(0,r/2),g.moveTo(0,r),g.curveTo(0,2*r,u,2*r,u,r),G||(g.stroke(),g.begin()),g.translate(0,r/2),g.moveTo(0,r),g.curveTo(0,2*r,u,2*r,u,r),G||(g.stroke(),g.begin()),g.translate(0,-r);G||(g.moveTo(0,r),g.curveTo(0,-r/3,u,-r/3,u,r),g.lineTo(u,B-r),g.curveTo(u,B+r/3,0,B+r/3,0,B-r),g.close())};O.prototype.getLabelMargins=function(g){return new mxRectangle(0,-2.5*Math.min(g.height/2,Math.round(g.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",O);mxUtils.extend(F,mxCylinder);F.prototype.size=30;F.prototype.darkOpacity=0;F.prototype.paintVertexShape=function(g,r,C,u,B){var G=Math.max(0,Math.min(u,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));g.translate(r,C);g.begin();g.moveTo(0,0);g.lineTo(u-G,0);g.lineTo(u,-G);g.lineTo(u,B);g.lineTo(0,B);g.lineTo(0,0);g.close();g.end();g.fillAndStroke();this.outline||(g.setShadow(!1),0!=I&&(g.setFillAlpha(Math.abs(I)),g.setFillColor(0>I?"#FFFFFF":"#000000"),g.begin(),g.moveTo(u-G,0),g.lineTo(u-G,G),g.lineTo(u,G),g.close(),g.fill()),g.begin(),g.moveTo(u-G,0),g.lineTo(u-G,G),g.lineTo(u,G),g.end(),g.stroke())};mxCellRenderer.registerShape("note",F);mxUtils.extend(N,F);mxCellRenderer.registerShape("note2",N);N.prototype.getLabelMargins=function(g){if(mxUtils.getValue(this.style,-"boundedLbl",!1)){var r=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(g.height*this.scale,r*this.scale),0,0)}return null};mxUtils.extend(R,mxShape);R.prototype.isoAngle=15;R.prototype.paintVertexShape=function(g,r,C,u,B){var G=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;G=Math.min(u*Math.tan(G),.5*B);g.translate(r,C);g.begin();g.moveTo(.5*u,0);g.lineTo(u,G);g.lineTo(u,B-G);g.lineTo(.5*u,B);g.lineTo(0,B-G);g.lineTo(0,-G);g.close();g.fillAndStroke();g.setShadow(!1);g.begin();g.moveTo(0,G);g.lineTo(.5*u,2*G);g.lineTo(u,G);g.moveTo(.5*u,2*G);g.lineTo(.5*u,B);g.stroke()};mxCellRenderer.registerShape("isoCube2",R);mxUtils.extend(c,mxShape);c.prototype.size=15;c.prototype.paintVertexShape=function(g,r,C,u,B){var G=Math.max(0,Math.min(.5*B,parseFloat(mxUtils.getValue(this.style,"size",this.size))));g.translate(r,C);0==G?(g.rect(0,0,u,B),g.fillAndStroke()):(g.begin(),g.moveTo(0,G),g.arcTo(.5*u,G,0,0,1,.5*u,0),g.arcTo(.5*-u,G,0,0,1,u,G),g.lineTo(u,B-G),g.arcTo(.5*u,G,0,0,1,.5*u,B),g.arcTo(.5*u,G,0,0,1,0,B-G),g.close(),g.fillAndStroke(),g.setShadow(!1),g.begin(),g.moveTo(u,G),g.arcTo(.5*u,G,0,0,1,.5*u,2*G),g.arcTo(.5*u,G,0,0,1,0,G),g.stroke())};mxCellRenderer.registerShape("cylinder2",c);mxUtils.extend(f,mxCylinder);f.prototype.size=15;f.prototype.paintVertexShape=function(g,r,C,u,B){var G=Math.max(0,Math.min(.5*B,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),I=mxUtils.getValue(this.style,"lid",!0);g.translate(r,-C);0==G?(g.rect(0,0,u,B),g.fillAndStroke()):(g.begin(),I?(g.moveTo(0,G),g.arcTo(.5*u,G,0,0,1,.5*u,0),g.arcTo(.5*u,G,0,0,1,u,G)):(g.moveTo(0,0),g.arcTo(.5*u,G,0,0,0,.5*u,G),g.arcTo(.5*u,G,0,0,0,u,0)),g.lineTo(u,B-G),g.arcTo(.5*u,G,0,0,1,.5*u,B),g.arcTo(.5*u,G,0,0,1,0,B-G),g.close(),g.fillAndStroke(),g.setShadow(!1),I&&(g.begin(),g.moveTo(u,G),g.arcTo(.5*u,G,0,0,1,.5*u,2*G),g.arcTo(.5*u,G,0,0,1,0,G),g.stroke()))};mxCellRenderer.registerShape("cylinder3",f);mxUtils.extend(l,mxActor);l.prototype.redrawPath=-function(g,r,C,u,B){g.moveTo(0,0);g.quadTo(u/2,.5*B,u,0);g.quadTo(.5*u,B/2,u,B);g.quadTo(u/2,.5*B,0,B);g.quadTo(.5*u,B/2,0,0);g.end()};mxCellRenderer.registerShape("switch",l);mxUtils.extend(q,mxCylinder);q.prototype.tabWidth=60;q.prototype.tabHeight=20;q.prototype.tabPosition="right";q.prototype.arcSize=.1;q.prototype.isRoundable=function(){return!0};q.prototype.paintVertexShape=function(g,r,C,u,B){g.translate(r,C);r=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));-C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var G=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),I=mxUtils.getValue(this.style,"rounded",!1),ba=mxUtils.getValue(this.style,"absoluteArcSize",!1),U=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));ba||(U*=Math.min(u,B));U=Math.min(U,.5*u,.5*(B-C));r=Math.max(r,U);r=Math.min(u-U,r);I||(U=0);g.begin();"left"==G?(g.moveTo(Math.max(U,0),C),g.lineTo(Math.max(U,0),0),g.lineTo(r,-0),g.lineTo(r,C)):(g.moveTo(u-r,C),g.lineTo(u-r,0),g.lineTo(u-Math.max(U,0),0),g.lineTo(u-Math.max(U,0),C));I?(g.moveTo(0,U+C),g.arcTo(U,U,0,0,1,U,C),g.lineTo(u-U,C),g.arcTo(U,U,0,0,1,u,U+C),g.lineTo(u,B-U),g.arcTo(U,U,0,0,1,u-U,B),g.lineTo(U,B),g.arcTo(U,U,0,0,1,0,B-U)):(g.moveTo(0,C),g.lineTo(u,C),g.lineTo(u,B),g.lineTo(0,B));g.close();g.fillAndStroke();g.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(g.begin(),g.moveTo(u-30,C+20),g.lineTo(u-20,C+10),g.lineTo(u-10,-C+20),g.close(),g.stroke())};mxCellRenderer.registerShape("folder",q);q.prototype.getLabelMargins=function(g){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var r=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var C=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;r=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var u=mxUtils.getValue(this.style,"rounded",!1),B=mxUtils.getValue(this.style,"absoluteArcSize",!1),G=parseFloat(mxUtils.getValue(this.style,-"arcSize",this.arcSize));B||(G*=Math.min(g.width,g.height));G=Math.min(G,.5*g.width,.5*(g.height-r));u||(G=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(G,0,Math.min(g.width,g.width-C),Math.min(g.height,g.height-r)):new mxRectangle(Math.min(g.width,g.width-C),0,G,Math.min(g.height,g.height-r))}return new mxRectangle(0,Math.min(g.height,r),0,0)}return null};mxUtils.extend(x,mxCylinder);x.prototype.arcSize=.1;x.prototype.paintVertexShape=function(g,r,C,-u,B){g.translate(r,C);var G=mxUtils.getValue(this.style,"rounded",!1),I=mxUtils.getValue(this.style,"absoluteArcSize",!1);r=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));C=mxUtils.getValue(this.style,"umlStateConnection",null);I||(r*=Math.min(u,B));r=Math.min(r,.5*u,.5*B);G||(r=0);G=0;null!=C&&(G=10);g.begin();g.moveTo(G,r);g.arcTo(r,r,0,0,1,G+r,0);g.lineTo(u-r,0);g.arcTo(r,r,0,0,1,u,r);g.lineTo(u,B-r);g.arcTo(r,r,0,0,1,u-r,B);g.lineTo(G+r,B);g.arcTo(r,r,0,0,1,G,B-r);g.close();g.fillAndStroke();-g.setShadow(!1);"collapseState"==mxUtils.getValue(this.style,"umlStateSymbol",null)&&(g.roundrect(u-40,B-20,10,10,3,3),g.stroke(),g.roundrect(u-20,B-20,10,10,3,3),g.stroke(),g.begin(),g.moveTo(u-30,B-15),g.lineTo(u-20,B-15),g.stroke());"connPointRefEntry"==C?(g.ellipse(0,.5*B-10,20,20),g.fillAndStroke()):"connPointRefExit"==C&&(g.ellipse(0,.5*B-10,20,20),g.fillAndStroke(),g.begin(),g.moveTo(5,.5*B-5),g.lineTo(15,.5*B+5),g.moveTo(15,.5*B-5),g.lineTo(5,.5*B+5),g.stroke())};x.prototype.getLabelMargins=-function(g){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};mxCellRenderer.registerShape("umlState",x);mxUtils.extend(A,mxShape);A.prototype.featureColor="#666666";A.prototype.paintVertexShape=function(g,r,C,u,B){var G=mxUtils.getValue(this.style,"smileyType","happy"),I=mxUtils.getValue(this.style,"smileyFeatureColor",A.prototype.featureColor);g.translate(r,C);r=Math.min(u,B)/2;g.ellipse(u/-2-r,B/2-r,2*r,2*r);g.fillAndStroke();r=Math.min(u,B)/30;u/=2;B/=2;g.setFillColor(I);g.setStrokeColor(I);g.setStrokeWidth(2*r);I=1.5*r;C=5*r;var ba=5*r;g.ellipse(u-C-I,B-ba-I,2*I,2*I);g.fillAndStroke();g.ellipse(u+C-I,B-ba-I,2*I,2*I);g.fillAndStroke();g.setStrokeWidth(1*r);g.setFillColor("#000000");"happy"==G?(G=u,I=B+2*r,g.begin(),g.moveTo(G+7.5*r,I),g.arcTo(7.5*r,7.5*r,0,1,1,G-7.5*r,I),g.lineTo(G-6.818*r,I),g.arcTo(6.818*r,6.818*r,0,1,0,G+6.818*r,I),g.close(),g.fillAndStroke()):"sad"==G?(G=u,I=B+-7*r,g.begin(),g.moveTo(G-7.5*r,I),g.arcTo(7.5*r,7.5*r,0,1,1,G+7.5*r,I),g.lineTo(G+6.818*r,I),g.arcTo(6.818*r,6.818*r,0,1,0,G-6.818*r,I),g.close(),g.fillAndStroke()):(g.begin(),g.moveTo(u-5*r,B+7*r),g.lineTo(u+5*r,B+7*r),g.stroke())};mxCellRenderer.registerShape("smileyFace",A);mxUtils.extend(E,mxActor);E.prototype.size=30;E.prototype.isRoundable=function(){return!0};E.prototype.redrawPath=function(g,r,C,u,B){r=Math.max(0,Math.min(u,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));-C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(r,0),new mxPoint(u,0),new mxPoint(u,B),new mxPoint(0,B),new mxPoint(0,r)],this.isRounded,C,!0);g.end()};mxCellRenderer.registerShape("card",E);mxUtils.extend(J,mxActor);J.prototype.size=.4;J.prototype.redrawPath=function(g,r,C,u,B){r=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));g.moveTo(0,r/2);g.quadTo(u/4,1.4*r,u/2,r/2);g.quadTo(3*u/4,r*(1-1.4),-u,r/2);g.lineTo(u,B-r/2);g.quadTo(3*u/4,B-1.4*r,u/2,B-r/2);g.quadTo(u/4,B-r*(1-1.4),0,B-r/2);g.lineTo(0,r/2);g.close();g.end()};J.prototype.getLabelBounds=function(g){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var r=mxUtils.getValue(this.style,"size",this.size),C=g.width,u=g.height;if(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return r*=u,new mxRectangle(g.x,g.y+r,C,u-2*r);r*=C;return new mxRectangle(g.x+r,g.y,C-2*r,u)}return g};-mxCellRenderer.registerShape("tape",J);mxUtils.extend(Q,mxActor);Q.prototype.size=.3;Q.prototype.getLabelMargins=function(g){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*g.height):null};Q.prototype.redrawPath=function(g,r,C,u,B){r=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));g.moveTo(0,0);g.lineTo(u,0);g.lineTo(u,B-r/2);g.quadTo(3*u/4,B-1.4*r,u/2,B-r/2);g.quadTo(u/4,B-r*(1--1.4),0,B-r/2);g.lineTo(0,r/2);g.close();g.end()};mxCellRenderer.registerShape("document",Q);var Z=mxCylinder.prototype.getCylinderSize;mxCylinder.prototype.getCylinderSize=function(g,r,C,u){var B=mxUtils.getValue(this.style,"size");return null!=B?u*Math.max(0,Math.min(1,B)):Z.apply(this,arguments)};mxCylinder.prototype.getLabelMargins=function(g){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var r=2*mxUtils.getValue(this.style,"size",.15);return new mxRectangle(0,Math.min(this.maxHeight*this.scale,+this.stencil.labelBounds){for(var r=this.stencil.desc.getElementsByTagName("labelBounds"),C=[],v=0;v<r.length;v++)C.push({condition:r[v].getAttribute("if"),x:Number(r[v].getAttribute("x")||0),y:Number(r[v].getAttribute("y")||0),w:Number(r[v].getAttribute("w")||this.stencil.w0),h:Number(r[v].getAttribute("h")||this.stencil.h0)});this.stencil.labelBounds=C}for(v=0;v<this.stencil.labelBounds.length;v++)if(r=this.stencil.labelBounds[v],null==r.condition||"1"==mxUtils.getValue(this.style,r.condition,"0")){v=+this.stencil.computeAspect(this.style,g.x,g.y,g.width,g.height);C=v.x-g.x+r.x*v.width;var B=v.y-g.y+r.y*v.height;return new mxRectangle(C,B,g.width-C-r.w*v.width,g.height-B-r.h*v.height)}}return z.apply(this,arguments)};mxUtils.extend(b,mxShape);b.prototype.updateBoundsFromLine=function(){var g=null;if(null!=this.line)for(var r=0;r<this.line.length;r++){var C=this.line[r];null!=C&&(C=new mxRectangle(C.x,C.y,this.strokewidth,this.strokewidth),null==g?g=C:g.add(C))}this.bounds=null!=g?g:new mxRectangle};+b.prototype.paintVertexShape=function(g,r,C,v,B){this.paintTableLine(g,this.line,0,0)};b.prototype.paintTableLine=function(g,r,C,v){if(null!=r){var B=null;g.begin();for(var G=0;G<r.length;G++){var I=r[G];null!=I&&(null==B?g.moveTo(I.x+C,I.y+v):null!=B&&g.lineTo(I.x+C,I.y+v));B=I}g.end();g.stroke()}};b.prototype.intersectsRectangle=function(g){var r=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=this.line)for(var C=null,v=0;v<this.line.length&&!r;v++){var B=this.line[v];null!=+B&&null!=C&&(r=mxUtils.rectangleIntersectsSegment(g,C,B));C=B}return r};mxCellRenderer.registerShape("tableLine",b);mxUtils.extend(d,mxSwimlane);d.prototype.fixedHeaderDefault=!1;d.prototype.paintVertexShape=function(g,r,C,v,B){var G=null!=this.state?this.state.view.graph.isCellCollapsed(this.state.cell):!1,I=this.isHorizontal(),ba=this.getTitleSize(),U=mxUtils.getValue(this.style,mxConstants.STYLE_FIXED_HEADER,this.fixedHeaderDefault);0==ba&&this.isRounded&&!this.outline?(U=mxShape.prototype.getArcSize.call(this,+v,B),g.begin(),g.roundrect(r,C,v,B,U,U),g.fillAndStroke()):0==ba&&!U||this.outline?Tb.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),g.translate(-r,-C));G||this.outline||!(I&&ba<B||!I&&ba<v)||this.paintForeground(g,r,C,v,B)};d.prototype.paintForeground=function(g,r,C,v,B){if(null!=this.state){var G=this.flipH,I=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var ba=G;G=I;I=ba}g.rotate(-this.getShapeRotation(),+G,I,r+v/2,C+B/2);s=this.scale;r=this.bounds.x/s;C=this.bounds.y/s;v=this.bounds.width/s;B=this.bounds.height/s;this.paintTableForeground(g,r,C,v,B)}};d.prototype.paintTableForeground=function(g,r,C,v,B){v=this.state.view.graph.getTableLines(this.state.cell,"0"!=mxUtils.getValue(this.state.style,"rowLines","1"),"0"!=mxUtils.getValue(this.state.style,"columnLines","1"));for(B=0;B<v.length;B++)b.prototype.paintTableLine(g,v[B],r,C)};d.prototype.configurePointerEvents=function(g){0==this.getTitleSize()?+g.pointerEvents=!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",d);mxUtils.extend(m,d);m.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",m);var L=mxSwimlane.prototype.paintVertexShape;mxSwimlane.prototype.paintVertexShape=function(g,r,C,v,B){L.apply(this,arguments);if(null!=this.state&&!this.outline){var G=this.state.view.graph;if((null!=this.fill&&this.fill!=mxConstants.NONE||null!=this.laneFill&&this.laneFill!=+mxConstants.NONE)&&null!=G.paintTableCellLines){var I=this.state.cell;if(null!=G.isTableRow&&G.isTableRow(I)){var ba=this.getTitleSize();this.isHorizontal()?G.paintTableCellLines(g,I,0,0,v,Math.min(ba,B),this.stroke,this.strokewidth):G.paintTableCellLines(g,I,0,0,Math.min(ba,v),B,this.stroke,this.strokewidth)}else G.paintTableCellLines(g,I,0,0,v,B,this.stroke,this.strokewidth)}}};mxUtils.extend(p,mxCylinder);p.prototype.size=20;p.prototype.darkOpacity=0;p.prototype.darkOpacity2=0;p.prototype.paintVertexShape=+function(g,r,C,v,B){var G=Math.max(0,Math.min(v,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),ba=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity2",this.darkOpacity2))));g.translate(r,C);g.begin();g.moveTo(0,0);g.lineTo(v-G,0);g.lineTo(v,G);g.lineTo(v,B);g.lineTo(G,B);g.lineTo(0,B-G);g.lineTo(0,0);g.close();g.end();g.fillAndStroke();this.outline||(g.setShadow(!1),+0!=I&&(g.setFillAlpha(Math.abs(I)),g.setFillColor(0>I?"#FFFFFF":"#000000"),g.begin(),g.moveTo(0,0),g.lineTo(v-G,0),g.lineTo(v,G),g.lineTo(G,G),g.close(),g.fill()),0!=ba&&(g.setFillAlpha(Math.abs(ba)),g.setFillColor(0>ba?"#FFFFFF":"#000000"),g.begin(),g.moveTo(0,0),g.lineTo(G,G),g.lineTo(G,B),g.lineTo(0,B-G),g.close(),g.fill()),g.begin(),g.moveTo(G,B),g.lineTo(G,G),g.lineTo(0,0),g.moveTo(G,G),g.lineTo(v,G),g.end(),g.stroke())};p.prototype.getLabelMargins=function(g){return mxUtils.getValue(this.style,+"boundedLbl",!1)?(g=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(g,g,0,0)):null};mxCellRenderer.registerShape("cube",p);var M=Math.tan(mxUtils.toRadians(30)),S=(.5-M)/2;mxCellRenderer.registerShape("isoRectangle",y);mxUtils.extend(t,mxConnector);t.prototype.paintEdgeShape=function(g,r){var C=this.createMarker(g,r,!0),v=this.createMarker(g,r,!1);g.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&g.setDashed(this.isDashed,+null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);g.setShadow(!1);g.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);g.setStrokeColor(this.stroke);g.setFillColor(this.stroke);g.setDashed(!1);null!=C&&C();null!=v&&v()};mxCellRenderer.registerShape("wire",t);mxUtils.extend(n,mxCylinder);n.prototype.size=6;n.prototype.paintVertexShape=function(g,r,C,v,B){g.setFillColor(this.stroke);var G=Math.max(0,parseFloat(mxUtils.getValue(this.style,+"size",this.size))-2)+2*this.strokewidth;g.ellipse(r+.5*(v-G),C+.5*(B-G),G,G);g.fill();g.setFillColor(mxConstants.NONE);g.rect(r,C,v,B);g.fill()};mxCellRenderer.registerShape("waypoint",n);mxUtils.extend(y,mxActor);y.prototype.size=20;y.prototype.redrawPath=function(g,r,C,v,B){r=Math.min(v,B/M);g.translate((v-r)/2,(B-r)/2+r/4);g.moveTo(0,.25*r);g.lineTo(.5*r,r*S);g.lineTo(r,.25*r);g.lineTo(.5*r,(.5-S)*r);g.lineTo(0,.25*r);g.close();g.end()};mxCellRenderer.registerShape("isoRectangle",y);mxUtils.extend(D,+mxCylinder);D.prototype.size=20;D.prototype.redrawPath=function(g,r,C,v,B,G){r=Math.min(v,B/(.5+M));G?(g.moveTo(0,.25*r),g.lineTo(.5*r,(.5-S)*r),g.lineTo(r,.25*r),g.moveTo(.5*r,(.5-S)*r),g.lineTo(.5*r,(1-S)*r)):(g.translate((v-r)/2,(B-r)/2),g.moveTo(0,.25*r),g.lineTo(.5*r,r*S),g.lineTo(r,.25*r),g.lineTo(r,.75*r),g.lineTo(.5*r,(1-S)*r),g.lineTo(0,.75*r),g.close());g.end()};mxCellRenderer.registerShape("isoCube",D);mxUtils.extend(O,mxCylinder);O.prototype.redrawPath=function(g,r,C,v,B,G){r=Math.min(B/+2,Math.round(B/8)+this.strokewidth-1);if(G&&null!=this.fill||!G&&null==this.fill)g.moveTo(0,r),g.curveTo(0,2*r,v,2*r,v,r),G||(g.stroke(),g.begin()),g.translate(0,r/2),g.moveTo(0,r),g.curveTo(0,2*r,v,2*r,v,r),G||(g.stroke(),g.begin()),g.translate(0,r/2),g.moveTo(0,r),g.curveTo(0,2*r,v,2*r,v,r),G||(g.stroke(),g.begin()),g.translate(0,-r);G||(g.moveTo(0,r),g.curveTo(0,-r/3,v,-r/3,v,r),g.lineTo(v,B-r),g.curveTo(v,B+r/3,0,B+r/3,0,B-r),g.close())};O.prototype.getLabelMargins=function(g){return new mxRectangle(0,+2.5*Math.min(g.height/2,Math.round(g.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",O);mxUtils.extend(F,mxCylinder);F.prototype.size=30;F.prototype.darkOpacity=0;F.prototype.paintVertexShape=function(g,r,C,v,B){var G=Math.max(0,Math.min(v,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));g.translate(r,C);g.begin();g.moveTo(0,0);g.lineTo(v-G,0);g.lineTo(v,+G);g.lineTo(v,B);g.lineTo(0,B);g.lineTo(0,0);g.close();g.end();g.fillAndStroke();this.outline||(g.setShadow(!1),0!=I&&(g.setFillAlpha(Math.abs(I)),g.setFillColor(0>I?"#FFFFFF":"#000000"),g.begin(),g.moveTo(v-G,0),g.lineTo(v-G,G),g.lineTo(v,G),g.close(),g.fill()),g.begin(),g.moveTo(v-G,0),g.lineTo(v-G,G),g.lineTo(v,G),g.end(),g.stroke())};mxCellRenderer.registerShape("note",F);mxUtils.extend(N,F);mxCellRenderer.registerShape("note2",N);N.prototype.getLabelMargins=function(g){if(mxUtils.getValue(this.style,+"boundedLbl",!1)){var r=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(g.height*this.scale,r*this.scale),0,0)}return null};mxUtils.extend(R,mxShape);R.prototype.isoAngle=15;R.prototype.paintVertexShape=function(g,r,C,v,B){var G=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;G=Math.min(v*Math.tan(G),.5*B);g.translate(r,C);g.begin();g.moveTo(.5*v,0);g.lineTo(v,G);g.lineTo(v,B-G);g.lineTo(.5*v,B);g.lineTo(0,B-G);g.lineTo(0,+G);g.close();g.fillAndStroke();g.setShadow(!1);g.begin();g.moveTo(0,G);g.lineTo(.5*v,2*G);g.lineTo(v,G);g.moveTo(.5*v,2*G);g.lineTo(.5*v,B);g.stroke()};mxCellRenderer.registerShape("isoCube2",R);mxUtils.extend(c,mxShape);c.prototype.size=15;c.prototype.paintVertexShape=function(g,r,C,v,B){var G=Math.max(0,Math.min(.5*B,parseFloat(mxUtils.getValue(this.style,"size",this.size))));g.translate(r,C);0==G?(g.rect(0,0,v,B),g.fillAndStroke()):(g.begin(),g.moveTo(0,G),g.arcTo(.5*v,G,0,0,1,.5*v,0),g.arcTo(.5*+v,G,0,0,1,v,G),g.lineTo(v,B-G),g.arcTo(.5*v,G,0,0,1,.5*v,B),g.arcTo(.5*v,G,0,0,1,0,B-G),g.close(),g.fillAndStroke(),g.setShadow(!1),g.begin(),g.moveTo(v,G),g.arcTo(.5*v,G,0,0,1,.5*v,2*G),g.arcTo(.5*v,G,0,0,1,0,G),g.stroke())};mxCellRenderer.registerShape("cylinder2",c);mxUtils.extend(f,mxCylinder);f.prototype.size=15;f.prototype.paintVertexShape=function(g,r,C,v,B){var G=Math.max(0,Math.min(.5*B,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),I=mxUtils.getValue(this.style,"lid",!0);g.translate(r,+C);0==G?(g.rect(0,0,v,B),g.fillAndStroke()):(g.begin(),I?(g.moveTo(0,G),g.arcTo(.5*v,G,0,0,1,.5*v,0),g.arcTo(.5*v,G,0,0,1,v,G)):(g.moveTo(0,0),g.arcTo(.5*v,G,0,0,0,.5*v,G),g.arcTo(.5*v,G,0,0,0,v,0)),g.lineTo(v,B-G),g.arcTo(.5*v,G,0,0,1,.5*v,B),g.arcTo(.5*v,G,0,0,1,0,B-G),g.close(),g.fillAndStroke(),g.setShadow(!1),I&&(g.begin(),g.moveTo(v,G),g.arcTo(.5*v,G,0,0,1,.5*v,2*G),g.arcTo(.5*v,G,0,0,1,0,G),g.stroke()))};mxCellRenderer.registerShape("cylinder3",f);mxUtils.extend(l,mxActor);l.prototype.redrawPath=+function(g,r,C,v,B){g.moveTo(0,0);g.quadTo(v/2,.5*B,v,0);g.quadTo(.5*v,B/2,v,B);g.quadTo(v/2,.5*B,0,B);g.quadTo(.5*v,B/2,0,0);g.end()};mxCellRenderer.registerShape("switch",l);mxUtils.extend(q,mxCylinder);q.prototype.tabWidth=60;q.prototype.tabHeight=20;q.prototype.tabPosition="right";q.prototype.arcSize=.1;q.prototype.isRoundable=function(){return!0};q.prototype.paintVertexShape=function(g,r,C,v,B){g.translate(r,C);r=Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));+C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var G=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),I=mxUtils.getValue(this.style,"rounded",!1),ba=mxUtils.getValue(this.style,"absoluteArcSize",!1),U=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));ba||(U*=Math.min(v,B));U=Math.min(U,.5*v,.5*(B-C));r=Math.max(r,U);r=Math.min(v-U,r);I||(U=0);g.begin();"left"==G?(g.moveTo(Math.max(U,0),C),g.lineTo(Math.max(U,0),0),g.lineTo(r,+0),g.lineTo(r,C)):(g.moveTo(v-r,C),g.lineTo(v-r,0),g.lineTo(v-Math.max(U,0),0),g.lineTo(v-Math.max(U,0),C));I?(g.moveTo(0,U+C),g.arcTo(U,U,0,0,1,U,C),g.lineTo(v-U,C),g.arcTo(U,U,0,0,1,v,U+C),g.lineTo(v,B-U),g.arcTo(U,U,0,0,1,v-U,B),g.lineTo(U,B),g.arcTo(U,U,0,0,1,0,B-U)):(g.moveTo(0,C),g.lineTo(v,C),g.lineTo(v,B),g.lineTo(0,B));g.close();g.fillAndStroke();g.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(g.begin(),g.moveTo(v-30,C+20),g.lineTo(v-20,C+10),g.lineTo(v-10,+C+20),g.close(),g.stroke())};mxCellRenderer.registerShape("folder",q);q.prototype.getLabelMargins=function(g){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var r=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var C=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;r=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var v=mxUtils.getValue(this.style,"rounded",!1),B=mxUtils.getValue(this.style,"absoluteArcSize",!1),G=parseFloat(mxUtils.getValue(this.style,+"arcSize",this.arcSize));B||(G*=Math.min(g.width,g.height));G=Math.min(G,.5*g.width,.5*(g.height-r));v||(G=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(G,0,Math.min(g.width,g.width-C),Math.min(g.height,g.height-r)):new mxRectangle(Math.min(g.width,g.width-C),0,G,Math.min(g.height,g.height-r))}return new mxRectangle(0,Math.min(g.height,r),0,0)}return null};mxUtils.extend(x,mxCylinder);x.prototype.arcSize=.1;x.prototype.paintVertexShape=function(g,r,C,+v,B){g.translate(r,C);var G=mxUtils.getValue(this.style,"rounded",!1),I=mxUtils.getValue(this.style,"absoluteArcSize",!1);r=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));C=mxUtils.getValue(this.style,"umlStateConnection",null);I||(r*=Math.min(v,B));r=Math.min(r,.5*v,.5*B);G||(r=0);G=0;null!=C&&(G=10);g.begin();g.moveTo(G,r);g.arcTo(r,r,0,0,1,G+r,0);g.lineTo(v-r,0);g.arcTo(r,r,0,0,1,v,r);g.lineTo(v,B-r);g.arcTo(r,r,0,0,1,v-r,B);g.lineTo(G+r,B);g.arcTo(r,r,0,0,1,G,B-r);g.close();g.fillAndStroke();+g.setShadow(!1);"collapseState"==mxUtils.getValue(this.style,"umlStateSymbol",null)&&(g.roundrect(v-40,B-20,10,10,3,3),g.stroke(),g.roundrect(v-20,B-20,10,10,3,3),g.stroke(),g.begin(),g.moveTo(v-30,B-15),g.lineTo(v-20,B-15),g.stroke());"connPointRefEntry"==C?(g.ellipse(0,.5*B-10,20,20),g.fillAndStroke()):"connPointRefExit"==C&&(g.ellipse(0,.5*B-10,20,20),g.fillAndStroke(),g.begin(),g.moveTo(5,.5*B-5),g.lineTo(15,.5*B+5),g.moveTo(15,.5*B-5),g.lineTo(5,.5*B+5),g.stroke())};x.prototype.getLabelMargins=+function(g){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};mxCellRenderer.registerShape("umlState",x);mxUtils.extend(A,mxShape);A.prototype.featureColor="#666666";A.prototype.paintVertexShape=function(g,r,C,v,B){var G=mxUtils.getValue(this.style,"smileyType","happy"),I=mxUtils.getValue(this.style,"smileyFeatureColor",A.prototype.featureColor);g.translate(r,C);r=Math.min(v,B)/2;g.ellipse(v/+2-r,B/2-r,2*r,2*r);g.fillAndStroke();r=Math.min(v,B)/30;v/=2;B/=2;g.setFillColor(I);g.setStrokeColor(I);g.setStrokeWidth(2*r);I=1.5*r;C=5*r;var ba=5*r;g.ellipse(v-C-I,B-ba-I,2*I,2*I);g.fillAndStroke();g.ellipse(v+C-I,B-ba-I,2*I,2*I);g.fillAndStroke();g.setStrokeWidth(1*r);g.setFillColor("#000000");"happy"==G?(G=v,I=B+2*r,g.begin(),g.moveTo(G+7.5*r,I),g.arcTo(7.5*r,7.5*r,0,1,1,G-7.5*r,I),g.lineTo(G-6.818*r,I),g.arcTo(6.818*r,6.818*r,0,1,0,G+6.818*r,I),g.close(),g.fillAndStroke()):"sad"==G?(G=v,I=B++7*r,g.begin(),g.moveTo(G-7.5*r,I),g.arcTo(7.5*r,7.5*r,0,1,1,G+7.5*r,I),g.lineTo(G+6.818*r,I),g.arcTo(6.818*r,6.818*r,0,1,0,G-6.818*r,I),g.close(),g.fillAndStroke()):(g.begin(),g.moveTo(v-5*r,B+7*r),g.lineTo(v+5*r,B+7*r),g.stroke())};mxCellRenderer.registerShape("smileyFace",A);mxUtils.extend(E,mxActor);E.prototype.size=30;E.prototype.isRoundable=function(){return!0};E.prototype.redrawPath=function(g,r,C,v,B){r=Math.max(0,Math.min(v,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));+C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(r,0),new mxPoint(v,0),new mxPoint(v,B),new mxPoint(0,B),new mxPoint(0,r)],this.isRounded,C,!0);g.end()};mxCellRenderer.registerShape("card",E);mxUtils.extend(J,mxActor);J.prototype.size=.4;J.prototype.redrawPath=function(g,r,C,v,B){r=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));g.moveTo(0,r/2);g.quadTo(v/4,1.4*r,v/2,r/2);g.quadTo(3*v/4,r*(1-1.4),+v,r/2);g.lineTo(v,B-r/2);g.quadTo(3*v/4,B-1.4*r,v/2,B-r/2);g.quadTo(v/4,B-r*(1-1.4),0,B-r/2);g.lineTo(0,r/2);g.close();g.end()};J.prototype.getLabelBounds=function(g){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var r=mxUtils.getValue(this.style,"size",this.size),C=g.width,v=g.height;if(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return r*=v,new mxRectangle(g.x,g.y+r,C,v-2*r);r*=C;return new mxRectangle(g.x+r,g.y,C-2*r,v)}return g};+mxCellRenderer.registerShape("tape",J);mxUtils.extend(Q,mxActor);Q.prototype.size=.3;Q.prototype.getLabelMargins=function(g){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*g.height):null};Q.prototype.redrawPath=function(g,r,C,v,B){r=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));g.moveTo(0,0);g.lineTo(v,0);g.lineTo(v,B-r/2);g.quadTo(3*v/4,B-1.4*r,v/2,B-r/2);g.quadTo(v/4,B-r*(1-+1.4),0,B-r/2);g.lineTo(0,r/2);g.close();g.end()};mxCellRenderer.registerShape("document",Q);var Z=mxCylinder.prototype.getCylinderSize;mxCylinder.prototype.getCylinderSize=function(g,r,C,v){var B=mxUtils.getValue(this.style,"size");return null!=B?v*Math.max(0,Math.min(1,B)):Z.apply(this,arguments)};mxCylinder.prototype.getLabelMargins=function(g){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var r=2*mxUtils.getValue(this.style,"size",.15);return new mxRectangle(0,Math.min(this.maxHeight*this.scale,g.height*r),0,0)}return null};f.prototype.getLabelMargins=function(g){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var r=mxUtils.getValue(this.style,"size",15);mxUtils.getValue(this.style,"lid",!0)||(r/=2);return new mxRectangle(0,Math.min(g.height*this.scale,2*r*this.scale),0,Math.max(0,.3*r*this.scale))}return null};q.prototype.getLabelMargins=function(g){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var r=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,-"labelInHeader",!1)){var C=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;r=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var u=mxUtils.getValue(this.style,"rounded",!1),B=mxUtils.getValue(this.style,"absoluteArcSize",!1),G=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));B||(G*=Math.min(g.width,g.height));G=Math.min(G,.5*g.width,.5*(g.height-r));u||(G=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(G,0,Math.min(g.width,g.width-+"labelInHeader",!1)){var C=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;r=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var v=mxUtils.getValue(this.style,"rounded",!1),B=mxUtils.getValue(this.style,"absoluteArcSize",!1),G=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));B||(G*=Math.min(g.width,g.height));G=Math.min(G,.5*g.width,.5*(g.height-r));v||(G=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(G,0,Math.min(g.width,g.width-C),Math.min(g.height,g.height-r)):new mxRectangle(Math.min(g.width,g.width-C),0,G,Math.min(g.height,g.height-r))}return new mxRectangle(0,Math.min(g.height,r),0,0)}return null};x.prototype.getLabelMargins=function(g){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};N.prototype.getLabelMargins=function(g){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var r=mxUtils.getValue(this.style,"size",-15);return new mxRectangle(0,Math.min(g.height*this.scale,r*this.scale),0,Math.max(0,r*this.scale))}return null};mxUtils.extend(V,mxActor);V.prototype.size=.2;V.prototype.fixedSize=20;V.prototype.isRoundable=function(){return!0};V.prototype.redrawPath=function(g,r,C,u,B){r="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,-mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,B),new mxPoint(r,0),new mxPoint(u,0),new mxPoint(u-r,B)],this.isRounded,C,!0);g.end()};mxCellRenderer.registerShape("parallelogram",V);mxUtils.extend(K,mxActor);K.prototype.size=.2;K.prototype.fixedSize=20;K.prototype.isRoundable=function(){return!0};K.prototype.redrawPath=function(g,r,C,u,B){r="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*u,parseFloat(mxUtils.getValue(this.style,"size",-this.fixedSize)))):u*Math.max(0,Math.min(.5,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,B),new mxPoint(r,0),new mxPoint(u-r,0),new mxPoint(u,B)],this.isRounded,C,!0)};mxCellRenderer.registerShape("trapezoid",K);mxUtils.extend(fa,mxActor);fa.prototype.size=.5;fa.prototype.redrawPath=function(g,r,C,u,B){g.setFillColor(null);r=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,-"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(u,0),new mxPoint(r,0),new mxPoint(r,B/2),new mxPoint(0,B/2),new mxPoint(r,B/2),new mxPoint(r,B),new mxPoint(u,B)],this.isRounded,C,!1);g.end()};mxCellRenderer.registerShape("curlyBracket",fa);mxUtils.extend(Y,mxActor);Y.prototype.redrawPath=function(g,r,C,u,B){g.setStrokeWidth(1);g.setFillColor(this.stroke);r=u/5;g.rect(0,0,r,B);g.fillAndStroke();g.rect(2*r,0,r,B);-g.fillAndStroke();g.rect(4*r,0,r,B);g.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",Y);aa.prototype.moveTo=function(g,r){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=g;this.lastY=r;this.firstX=g;this.firstY=r};aa.prototype.close=function(){null!=this.firstX&&null!=this.firstY&&(this.lineTo(this.firstX,this.firstY),this.originalClose.apply(this.canvas,arguments));this.originalClose.apply(this.canvas,arguments)};aa.prototype.quadTo=function(g,r,C,u){this.originalQuadTo.apply(this.canvas,-arguments);this.lastX=C;this.lastY=u};aa.prototype.curveTo=function(g,r,C,u,B,G){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=B;this.lastY=G};aa.prototype.arcTo=function(g,r,C,u,B,G,I){this.originalArcTo.apply(this.canvas,arguments);this.lastX=G;this.lastY=I};aa.prototype.lineTo=function(g,r){if(null!=this.lastX&&null!=this.lastY){var C=function(pa){return"number"===typeof pa?pa?0>pa?-1:1:pa===pa?0:NaN:NaN},u=Math.abs(g-this.lastX),B=Math.abs(r-this.lastY),G=Math.sqrt(u*u+B*B);if(2>-G){this.originalLineTo.apply(this.canvas,arguments);this.lastX=g;this.lastY=r;return}var I=Math.round(G/10),ba=this.defaultVariation;5>I&&(I=5,ba/=3);var U=C(g-this.lastX)*u/I;C=C(r-this.lastY)*B/I;u/=G;B/=G;for(G=0;G<I;G++){var za=(Math.random()-.5)*ba;this.originalLineTo.call(this.canvas,U*G+this.lastX-za*B,C*G+this.lastY-za*u)}this.originalLineTo.call(this.canvas,g,r)}else this.originalLineTo.apply(this.canvas,arguments);this.lastX=g;this.lastY=r};aa.prototype.destroy=function(){this.canvas.lineTo=+15);return new mxRectangle(0,Math.min(g.height*this.scale,r*this.scale),0,Math.max(0,r*this.scale))}return null};mxUtils.extend(V,mxActor);V.prototype.size=.2;V.prototype.fixedSize=20;V.prototype.isRoundable=function(){return!0};V.prototype.redrawPath=function(g,r,C,v,B){r="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,+mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,B),new mxPoint(r,0),new mxPoint(v,0),new mxPoint(v-r,B)],this.isRounded,C,!0);g.end()};mxCellRenderer.registerShape("parallelogram",V);mxUtils.extend(K,mxActor);K.prototype.size=.2;K.prototype.fixedSize=20;K.prototype.isRoundable=function(){return!0};K.prototype.redrawPath=function(g,r,C,v,B){r="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*v,parseFloat(mxUtils.getValue(this.style,"size",+this.fixedSize)))):v*Math.max(0,Math.min(.5,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,B),new mxPoint(r,0),new mxPoint(v-r,0),new mxPoint(v,B)],this.isRounded,C,!0)};mxCellRenderer.registerShape("trapezoid",K);mxUtils.extend(fa,mxActor);fa.prototype.size=.5;fa.prototype.redrawPath=function(g,r,C,v,B){g.setFillColor(null);r=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,+"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(v,0),new mxPoint(r,0),new mxPoint(r,B/2),new mxPoint(0,B/2),new mxPoint(r,B/2),new mxPoint(r,B),new mxPoint(v,B)],this.isRounded,C,!1);g.end()};mxCellRenderer.registerShape("curlyBracket",fa);mxUtils.extend(Y,mxActor);Y.prototype.redrawPath=function(g,r,C,v,B){g.setStrokeWidth(1);g.setFillColor(this.stroke);r=v/5;g.rect(0,0,r,B);g.fillAndStroke();g.rect(2*r,0,r,B);+g.fillAndStroke();g.rect(4*r,0,r,B);g.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",Y);aa.prototype.moveTo=function(g,r){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=g;this.lastY=r;this.firstX=g;this.firstY=r};aa.prototype.close=function(){null!=this.firstX&&null!=this.firstY&&(this.lineTo(this.firstX,this.firstY),this.originalClose.apply(this.canvas,arguments));this.originalClose.apply(this.canvas,arguments)};aa.prototype.quadTo=function(g,r,C,v){this.originalQuadTo.apply(this.canvas,+arguments);this.lastX=C;this.lastY=v};aa.prototype.curveTo=function(g,r,C,v,B,G){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=B;this.lastY=G};aa.prototype.arcTo=function(g,r,C,v,B,G,I){this.originalArcTo.apply(this.canvas,arguments);this.lastX=G;this.lastY=I};aa.prototype.lineTo=function(g,r){if(null!=this.lastX&&null!=this.lastY){var C=function(pa){return"number"===typeof pa?pa?0>pa?-1:1:pa===pa?0:NaN:NaN},v=Math.abs(g-this.lastX),B=Math.abs(r-this.lastY),G=Math.sqrt(v*v+B*B);if(2>+G){this.originalLineTo.apply(this.canvas,arguments);this.lastX=g;this.lastY=r;return}var I=Math.round(G/10),ba=this.defaultVariation;5>I&&(I=5,ba/=3);var U=C(g-this.lastX)*v/I;C=C(r-this.lastY)*B/I;v/=G;B/=G;for(G=0;G<I;G++){var za=(Math.random()-.5)*ba;this.originalLineTo.call(this.canvas,U*G+this.lastX-za*B,C*G+this.lastY-za*v)}this.originalLineTo.call(this.canvas,g,r)}else this.originalLineTo.apply(this.canvas,arguments);this.lastX=g;this.lastY=r};aa.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo};var da=mxShape.prototype.beforePaint;mxShape.prototype.beforePaint=function(g){da.apply(this,arguments);null==g.handJiggle&&(g.handJiggle=this.createHandJiggle(g))};var ma=mxShape.prototype.afterPaint;mxShape.prototype.afterPaint=function(g){ma.apply(this,arguments);null!=g.handJiggle&&(g.handJiggle.destroy(),delete g.handJiggle)};var sa=mxShape.prototype.updateBoundingBox;mxShape.prototype.updateBoundingBox=function(){sa.apply(this,arguments);if(!(this.useSvgBoundingBox||null==this.boundingBox||this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")&&"0"==mxUtils.getValue(this.style,"comic","0"))){var g=this.getSvgBoundingBox();null!=g&&(this.augmentShadowBoundingBox(g),this.boundingBox.add(g))}};mxShape.prototype.createComicCanvas=function(g){return new aa(g,mxUtils.getValue(this.style,"jiggle",Editor.sketchDefaultJiggle))};mxShape.prototype.createHandJiggle=function(g){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"comic","0")?null:this.createComicCanvas(g)};var wa=mxRectangleShape.prototype.isHtmlAllowed;mxRectangleShape.prototype.isHtmlAllowed=function(){return!this.outline&&(null==this.style||"0"==mxUtils.getValue(this.style,"comic","0")&&"0"==mxUtils.getValue(this.style,"sketch","1"==urlParams.rough?"1":"0"))&&wa.apply(this,-arguments)};var ya=mxRectangleShape.prototype.paintBackground;mxRectangleShape.prototype.paintBackground=function(g,r,C,u,B){if(null==g.handJiggle||g.handJiggle.constructor!=aa)ya.apply(this,arguments);else{var G=!0;null!=this.style&&(G="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(G||null!=this.fill&&this.fill!=mxConstants.NONE||null!=this.stroke&&this.stroke!=mxConstants.NONE)G||null!=this.fill&&this.fill!=mxConstants.NONE||(g.pointerEvents=!1),g.begin(),this.isRounded?-("1"==mxUtils.getValue(this.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?G=Math.min(u/2,Math.min(B/2,mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2)):(G=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,G=Math.min(u*G,B*G)),g.moveTo(r+G,C),g.lineTo(r+u-G,C),g.quadTo(r+u,C,r+u,C+G),g.lineTo(r+u,C+B-G),g.quadTo(r+u,C+B,r+u-G,C+B),g.lineTo(r+G,C+B),g.quadTo(r,C+B,r,C+B-G),g.lineTo(r,C+G),g.quadTo(r,C,r+G,C)):(g.moveTo(r,-C),g.lineTo(r+u,C),g.lineTo(r+u,C+B),g.lineTo(r,C+B),g.lineTo(r,C)),g.close(),g.end(),g.fillAndStroke()}};mxUtils.extend(ja,mxRectangleShape);ja.prototype.size=.1;ja.prototype.fixedSize=!1;ja.prototype.isHtmlAllowed=function(){return!1};ja.prototype.getLabelBounds=function(g){if(mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,!0)==(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)){var r=g.width,C=g.height;g=new mxRectangle(g.x,-g.y,r,C);var u=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),B=parseFloat(mxUtils.getValue(this.style,"size",this.size));u?B=Math.max(0,Math.min(r,B*this.scale)):(B=r*Math.max(0,Math.min(1,B)),this.isRounded&&(u=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,B=Math.max(B,Math.min(r*u,C*u))));g.x+=Math.round(B);g.width-=Math.round(2*B);return g}return g};ja.prototype.paintForeground=function(g,r,C,u,B){var G=mxUtils.getValue(this.style,-"fixedSize",this.fixedSize),I=parseFloat(mxUtils.getValue(this.style,"size",this.size));I=G?Math.max(0,Math.min(u,I)):u*Math.max(0,Math.min(1,I));this.isRounded&&(G=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,I=Math.max(I,Math.min(u*G,B*G)));I=Math.round(I);g.begin();g.moveTo(r+I,C);g.lineTo(r+I,C+B);g.moveTo(r+u-I,C);g.lineTo(r+u-I,C+B);g.end();g.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("process",-ja);mxCellRenderer.registerShape("process2",ja);mxUtils.extend(ka,mxRectangleShape);ka.prototype.paintBackground=function(g,r,C,u,B){g.setFillColor(mxConstants.NONE);g.rect(r,C,u,B);g.fill()};ka.prototype.paintForeground=function(g,r,C,u,B){};mxCellRenderer.registerShape("transparent",ka);mxUtils.extend(ua,mxHexagon);ua.prototype.size=30;ua.prototype.position=.5;ua.prototype.position2=.5;ua.prototype.base=20;ua.prototype.getLabelMargins=function(){return new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,-"size",this.size))*this.scale)};ua.prototype.isRoundable=function(){return!0};ua.prototype.redrawPath=function(g,r,C,u,B){r=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var G=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),I=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2)))),ba=Math.max(0,Math.min(u,-parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(g,[new mxPoint(0,0),new mxPoint(u,0),new mxPoint(u,B-C),new mxPoint(Math.min(u,G+ba),B-C),new mxPoint(I,B),new mxPoint(Math.max(0,G),B-C),new mxPoint(0,B-C)],this.isRounded,r,!0,[4])};mxCellRenderer.registerShape("callout",ua);mxUtils.extend(Ca,mxActor);Ca.prototype.tipX=-.25;Ca.prototype.tipY=1;Ca.prototype.base=20;Ca.prototype.maxTipOffset=100;Ca.prototype.isRoundable=function(){return!0};Ca.prototype.getTipOffset=function(){var g=-this.maxTipOffset,r=parseFloat(mxUtils.getValue(this.style,"tipX",this.tipX)),C=parseFloat(mxUtils.getValue(this.style,"tipY",this.tipY));return new mxPoint(Math.max(-g,Math.min(g,isFinite(r)?r:this.tipX)),Math.max(-g,Math.min(g,isFinite(C)?C:this.tipY)))};Ca.prototype.getTailPoints=function(g,r){var C=this.getTipOffset(),u=C.x*g;C=C.y*r;if(Math.abs(u)<=g/2&&Math.abs(C)<=r/2)return null;var B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,G=parseFloat(mxUtils.getValue(this.style,-"base",this.base));G=isFinite(G)?Math.max(0,G):this.base;B=this.isRounded?B:0;var I=new mxPoint(g/2+u,r/2+C);if(Math.abs(u)*r>=Math.abs(C)*g&&0!=u)return B=Math.min(B,r/2),G=Math.max(0,Math.min(G,r-2*B))/2,C=r/2+g/2*C/Math.abs(u),C=Math.max(B+G,Math.min(r-B-G,C)),0<u?{points:[new mxPoint(g,C-G),I,new mxPoint(g,C+G)],index:2}:{points:[new mxPoint(0,C+G),I,new mxPoint(0,C-G)],index:4};B=Math.min(B,g/2);G=Math.max(0,Math.min(G,g-2*B))/2;u=g/2+r/2*u/Math.abs(C);u=Math.max(B+G,Math.min(g-B-G,u));return 0<-C?{points:[new mxPoint(u+G,r),I,new mxPoint(u-G,r)],index:3}:{points:[new mxPoint(u-G,0),I,new mxPoint(u+G,0)],index:1}};Ca.prototype.redrawPath=function(g,r,C,u,B){r=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;C=[new mxPoint(0,0),new mxPoint(u,0),new mxPoint(u,B),new mxPoint(0,B)];u=this.getTailPoints(u,B);B=null;null!=u&&(C.splice.apply(C,[u.index,0].concat(u.points)),B=[u.index,u.index+1,u.index+2]);this.addPoints(g,C,this.isRounded,r,!0,B)};Ca.prototype.getShapeBoundingBox=-function(){var g=mxShape.prototype.getShapeBoundingBox.apply(this,arguments);if(null!=g&&null!=this.bounds){var r=this.createBoundingBox(),C=this.scale,u=r.width/C,B=r.height/C,G=this.getTailPoints(u,B);if(null!=G){var I=G.points[1],ba=r.x+r.width/2;r=r.y+r.height/2;C=new mxRectangle(ba+(I.x-u/2)*C*(this.flipH?-1:1),r+(I.y-B/2)*C*(this.flipV?-1:1),0,0);this.augmentBoundingBox(C);u=G.points[0].x-I.x;B=G.points[0].y-I.y;var U=G.points[2].x-I.x;G=G.points[2].y-I.y;I=Math.sqrt(u*u+B*B);var za=Math.sqrt(U*-U+G*G);0<I&&0<za&&(G=Math.sqrt((1-Math.max(-1,Math.min(1,(u*U+B*G)/(I*za))))/2),C.grow(((0<G?Math.min(10,1/G):10)-1)*this.strokewidth*this.scale/2));G=this.getShapeRotation();0!=G&&(C=mxUtils.getBoundingBox(C,G,new mxPoint(ba,r)));g.add(C)}}return g};mxCellRenderer.registerShape("wedgeCallout",Ca);mxUtils.extend(ia,mxActor);ia.prototype.size=.2;ia.prototype.fixedSize=20;ia.prototype.isRoundable=function(){return!0};ia.prototype.redrawPath=function(g,r,C,u,B){r="0"!=mxUtils.getValue(this.style,"fixedSize",-"0")?Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,0),new mxPoint(u-r,0),new mxPoint(u,B/2),new mxPoint(u-r,B),new mxPoint(0,B),new mxPoint(r,B/2)],this.isRounded,C,!0);g.end()};mxCellRenderer.registerShape("step",ia);mxUtils.extend(k,mxHexagon);k.prototype.size=-.25;k.prototype.fixedSize=20;k.prototype.isRoundable=function(){return!0};k.prototype.redrawPath=function(g,r,C,u,B){r="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*u,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(r,0),new mxPoint(u-r,0),new mxPoint(u,.5*B),-new mxPoint(u-r,B),new mxPoint(r,B),new mxPoint(0,.5*B)],this.isRounded,C,!0)};mxCellRenderer.registerShape("hexagon",k);mxUtils.extend(v,mxRectangleShape);v.prototype.isHtmlAllowed=function(){return!1};v.prototype.paintForeground=function(g,r,C,u,B){var G=Math.min(u/5,B/5)+1;g.begin();g.moveTo(r+u/2,C+G);g.lineTo(r+u/2,C+B-G);g.moveTo(r+G,C+B/2);g.lineTo(r+u-G,C+B/2);g.end();g.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("plus",v);var Ma=-mxRhombus.prototype.paintVertexShape;mxRhombus.prototype.getLabelBounds=function(g){if(1==this.style["double"]){var r=(2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(g.x+r,g.y+r,g.width-2*r,g.height-2*r)}return g};mxRhombus.prototype.paintVertexShape=function(g,r,C,u,B){Ma.apply(this,arguments);var G=r,I=C,ba=u,U=B;if(!this.outline&&1==this.style["double"]){var za=2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||-0);r+=za;C+=za;u-=2*za;B-=2*za;0<u&&0<B&&(g.setShadow(!1),Ma.apply(this,[g,r,C,u,B]))}this.glass&&!this.outline&&null!=this.fill&&this.fill!=mxConstants.NONE&&this.paintGlassEffect(g,G,I,ba,U,0)};mxShape.prototype.paintGlassEffect=function(g,r,C,u,B,G){var I=Math.ceil(this.strokewidth/2);g.setGradient("#ffffff","#ffffff",r,C,u,.6*B,"south",.9,.1);g.begin();this.paintGlassEffectPath(g,r,C,u,B,I,G);g.close();g.fill()};mxShape.prototype.paintGlassEffectPath=function(g,r,C,u,B,G,I){I+=2*G;this.isRounded?-(g.moveTo(r-G+I,C-G),g.quadTo(r-G,C-G,r-G,C-G+I),g.lineTo(r-G,C+.4*B),g.quadTo(r+.5*u,C+.7*B,r+u+G,C+.4*B),g.lineTo(r+u+G,C-G+I),g.quadTo(r+u+G,C-G,r+u+G-I,C-G)):(g.moveTo(r-G,C-G),g.lineTo(r-G,C+.4*B),g.quadTo(r+.5*u,C+.7*B,r+u+G,C+.4*B),g.lineTo(r+u+G,C-G))};mxEllipse.prototype.paintGlassEffectPath=function(g,r,C,u,B,G,I){I=u/2+G;G=B/2+G;r+=u/2;C+=B/2;g.moveTo(r-I,C);g.curveTo(r-I,C-.5522847498*G,r-.5522847498*I,C-G,r,C-G);g.curveTo(r+.5522847498*I,C-G,r+I,C-.5522847498*G,r+I,C);g.quadTo(r,C+.2*-B,r-I,C)};mxRhombus.prototype.paintGlassEffectPath=function(g,r,C,u,B,G,I){G=u/2;I=B/2;var ba=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(r,C+I),new mxPoint(r+G,C),new mxPoint(r+u,C+I)],this.isRounded,ba,!1);g.quadTo(r+G,C+.7*B,r,C+I)};var Ya=mxEllipse.prototype.paintVertexShape;mxEllipse.prototype.paintVertexShape=function(g,r,C,u,B){Ya.apply(this,arguments);this.glass&&!this.outline&&null!=this.fill&&this.fill!=mxConstants.NONE&&-this.paintGlassEffect(g,r,C,u,B,0)};mxUtils.extend(H,mxRectangleShape);H.prototype.isHtmlAllowed=function(){return!1};H.prototype.getLabelBounds=function(g){if(1==this.style["double"]){var r=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(g.x+r,g.y+r,g.width-2*r,g.height-2*r)}return g};H.prototype.paintForeground=function(g,r,C,u,B){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var G=Math.max(2,this.strokewidth+-1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);r+=G;C+=G;u-=2*G;B-=2*G;0<u&&0<B&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}g.setDashed(!1);G=0;do{var I=mxCellRenderer.defaultShapes[this.style["symbol"+G]];if(null!=I){var ba=this.style["symbol"+G+"Align"],U=this.style["symbol"+G+"VerticalAlign"],za=this.style["symbol"+G+"Width"],pa=this.style["symbol"+G+"Height"],Wa=this.style["symbol"+G+"Spacing"]||0,ub=this.style["symbol"+G+"VSpacing"]||Wa,jb=this.style["symbol"+G+-"ArcSpacing"];null!=jb&&(jb*=this.getArcSize(u+this.strokewidth,B+this.strokewidth),Wa+=jb,ub+=jb);jb=r;var Ra=C;jb=ba==mxConstants.ALIGN_CENTER?jb+(u-za)/2:ba==mxConstants.ALIGN_RIGHT?jb+(u-za-Wa):jb+Wa;Ra=U==mxConstants.ALIGN_MIDDLE?Ra+(B-pa)/2:U==mxConstants.ALIGN_BOTTOM?Ra+(B-pa-ub):Ra+ub;g.save();ba=new I;ba.style=this.style;I.prototype.paintVertexShape.call(ba,g,jb,Ra,za,pa);g.restore()}G++}while(null!=I)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",-H);mxUtils.extend(P,mxCylinder);P.prototype.redrawPath=function(g,r,C,u,B,G){G?(g.moveTo(0,0),g.lineTo(u/2,B/2),g.lineTo(u,0),g.end()):(g.moveTo(0,0),g.lineTo(u,0),g.lineTo(u,B),g.lineTo(0,B),g.close())};mxCellRenderer.registerShape("message",P);mxUtils.extend(T,mxShape);T.prototype.paintBackground=function(g,r,C,u,B){g.translate(r,C);g.ellipse(u/4,0,u/2,B/4);g.fillAndStroke();g.begin();g.moveTo(u/2,B/4);g.lineTo(u/2,2*B/3);g.moveTo(u/2,B/3);g.lineTo(0,B/3);g.moveTo(u/2,B/3);g.lineTo(u,B/3);g.moveTo(u/-2,2*B/3);g.lineTo(0,B);g.moveTo(u/2,2*B/3);g.lineTo(u,B);g.end();g.stroke()};mxCellRenderer.registerShape("umlActor",T);mxUtils.extend(W,mxShape);W.prototype.getLabelMargins=function(g){return new mxRectangle(g.width/6,0,0,0)};W.prototype.paintBackground=function(g,r,C,u,B){g.translate(r,C);g.begin();g.moveTo(0,B/4);g.lineTo(0,3*B/4);g.end();g.stroke();g.begin();g.moveTo(0,B/2);g.lineTo(u/6,B/2);g.end();g.stroke();g.ellipse(u/6,0,5*u/6,B);g.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",-W);mxUtils.extend(ha,mxEllipse);ha.prototype.paintVertexShape=function(g,r,C,u,B){mxEllipse.prototype.paintVertexShape.apply(this,arguments);g.begin();g.moveTo(r+u/8,C+B);g.lineTo(r+7*u/8,C+B);g.end();g.stroke()};mxCellRenderer.registerShape("umlEntity",ha);mxUtils.extend(X,mxShape);X.prototype.paintVertexShape=function(g,r,C,u,B){g.translate(r,C);g.begin();g.moveTo(u,0);g.lineTo(0,B);g.moveTo(0,0);g.lineTo(u,B);g.end();g.stroke()};mxCellRenderer.registerShape("umlDestroy",X);mxUtils.extend(ea,mxShape);-ea.prototype.getLabelBounds=function(g){return new mxRectangle(g.x,g.y+g.height/8,g.width,7*g.height/8)};ea.prototype.paintBackground=function(g,r,C,u,B){g.translate(r,C);g.begin();g.moveTo(3*u/8,B/8*1.1);g.lineTo(5*u/8,0);g.end();g.stroke();g.ellipse(0,B/8,u,7*B/8);g.fillAndStroke()};ea.prototype.paintForeground=function(g,r,C,u,B){g.begin();g.moveTo(3*u/8,B/8*1.1);g.lineTo(5*u/8,B/4);g.end();g.stroke()};mxCellRenderer.registerShape("umlControl",ea);mxUtils.extend(la,mxShape);la.prototype.iconSize=-44;la.prototype.paintBackground=function(g,r,C,u,B){B=Math.min(this.iconSize,u,B);var G=.9*B,I=.45*B;r=r+u/2-B/2;u=C+B/2;var ba=r+.175*G;G=ba-G;g.begin();g.moveTo(G,u-I/2);g.lineTo(G,u+I/2);g.end();g.stroke();g.begin();g.moveTo(G,u);g.lineTo(ba,u);g.end();g.stroke();g.ellipse(r,C,B,B);g.fillAndStroke()};mxCellRenderer.registerShape("seqBoundary",la);mxCellRenderer.registerShape("seqControl",oa(ea,44));mxCellRenderer.registerShape("seqEntity",oa(ha,44));mxUtils.extend(ca,mxShape);ca.prototype.paintBackground=-function(g,r,C,u,B){var G=B/2,I=G/(2.5+B/50);g.save();g.translate(r,C);g.begin();g.moveTo(I,0);g.lineTo(u-I,0);g.arcTo(I,G,0,0,1,u-I,B);g.lineTo(I,B);g.arcTo(I,G,0,0,1,I,0);g.close();g.fillAndStroke();g.restore()};ca.prototype.paintForeground=function(g,r,C,u,B){var G=B/2,I=G/(2.5+B/50);g.save();g.translate(r,C);g.begin();g.moveTo(u-I,0);g.arcTo(I,G,0,0,0,u-I,B);g.stroke();g.restore()};mxCellRenderer.registerShape("seqQueue",ca);mxUtils.extend(ta,mxShape);ta.prototype.paintBackground=function(g,r,-C,u,B){g.rect(r+6,C-6,u,B);g.fillAndStroke();g.rect(r,C,u,B);g.fillAndStroke()};mxCellRenderer.registerShape("seqCollections",ta);mxUtils.extend(xa,mxShape);xa.prototype.paintBackground=function(g,r,C,u,B){B=u/3;var G=u/3,I=B/2,ba=I/(2.5+B/50);g.translate(r+(u-B)/2,C);g.begin();g.moveTo(0,ba);g.arcTo(I,ba,0,0,0,B,ba);g.arcTo(I,ba,0,0,0,0,ba);g.lineTo(0,G-ba);g.arcTo(I,ba,0,0,0,B,G-ba);g.lineTo(B,ba);g.fillAndStroke()};mxCellRenderer.registerShape("seqDatabase",xa);mxUtils.extend(qa,mxShape);qa.prototype.paintBackground=-function(g,r,C,u,B){r+=u/2;C+=15;u=C+15;B=u+20;var G=u+10,I=B+15;g.ellipse(r-15,C-15,30,30);g.fillAndStroke();g.begin();g.moveTo(r,u);g.lineTo(r,B);g.moveTo(r-18,G);g.lineTo(r+18,G);g.moveTo(r,B);g.lineTo(r-16,I);g.moveTo(r,B);g.lineTo(r+16,I);g.stroke()};mxCellRenderer.registerShape("seqActorStick",qa);mxUtils.extend(Ba,mxRectangleShape);Ba.prototype.size=40;Ba.prototype.isHtmlAllowed=function(){return!1};Ba.prototype.isMirrored=function(){return"1"==mxUtils.getValue(this.style,"lifelineMirror",-"0")};Ba.prototype.getHeadSize=function(g){return Math.max(0,Math.min(this.isMirrored()?g/2:g,parseFloat(mxUtils.getValue(this.style,"size",this.size))))};Ba.prototype.getLabelBounds=function(g){var r=Math.max(0,Math.min(this.isMirrored()?g.height/2:g.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(g.x,g.y,g.width,r)};Ba.prototype.paintBackground=function(g,r,C,u,B){var G=this.getHeadSize(B),I=this.isMirrored(),ba=mxUtils.getValue(this.style,"participant");-null==ba||null==this.state?(mxRectangleShape.prototype.paintBackground.call(this,g,r,C,u,G),I&&mxRectangleShape.prototype.paintBackground.call(this,g,r,C+B-G,u,G)):(ba=this.state.view.graph.cellRenderer.getShape(ba),null!=ba&&ba!=Ba&&(ba=new ba,ba.apply(this.state),g.save(),ba.paintVertexShape(g,r,C,u,G),g.restore(),I&&(g.save(),ba.paintVertexShape(g,r,C+B-G,u,G),g.restore())));B=I?B-G:B;G<B&&(g.setDashed("1"==mxUtils.getValue(this.style,"lifelineDashed","1")),g.begin(),g.moveTo(r+u/2,C+G),g.lineTo(r+-u/2,C+B),g.end(),g.stroke())};Ba.prototype.paintForeground=function(g,r,C,u,B){var G=mxUtils.getValue(this.style,"participant"),I=this.getHeadSize(B),ba=this.isMirrored();null==G&&(mxRectangleShape.prototype.paintForeground.call(this,g,r,C,u,Math.min(B,I)),ba&&mxRectangleShape.prototype.paintForeground.call(this,g,r,C+B-I,u,I));ba&&this.paintMirrorLabel(g,r,C+B-I,u,I)};Ba.prototype.paintMirrorLabel=function(g,r,C,u,B){var G=null!=this.state?this.state.view.graph.getLabel(this.state.cell):null;this.mirrorLabelValue=+arguments)};var ya=mxRectangleShape.prototype.paintBackground;mxRectangleShape.prototype.paintBackground=function(g,r,C,v,B){if(null==g.handJiggle||g.handJiggle.constructor!=aa)ya.apply(this,arguments);else{var G=!0;null!=this.style&&(G="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(G||null!=this.fill&&this.fill!=mxConstants.NONE||null!=this.stroke&&this.stroke!=mxConstants.NONE)G||null!=this.fill&&this.fill!=mxConstants.NONE||(g.pointerEvents=!1),g.begin(),this.isRounded?+("1"==mxUtils.getValue(this.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?G=Math.min(v/2,Math.min(B/2,mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2)):(G=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,G=Math.min(v*G,B*G)),g.moveTo(r+G,C),g.lineTo(r+v-G,C),g.quadTo(r+v,C,r+v,C+G),g.lineTo(r+v,C+B-G),g.quadTo(r+v,C+B,r+v-G,C+B),g.lineTo(r+G,C+B),g.quadTo(r,C+B,r,C+B-G),g.lineTo(r,C+G),g.quadTo(r,C,r+G,C)):(g.moveTo(r,+C),g.lineTo(r+v,C),g.lineTo(r+v,C+B),g.lineTo(r,C+B),g.lineTo(r,C)),g.close(),g.end(),g.fillAndStroke()}};mxUtils.extend(ja,mxRectangleShape);ja.prototype.size=.1;ja.prototype.fixedSize=!1;ja.prototype.isHtmlAllowed=function(){return!1};ja.prototype.getLabelBounds=function(g){if(mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,!0)==(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)){var r=g.width,C=g.height;g=new mxRectangle(g.x,+g.y,r,C);var v=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),B=parseFloat(mxUtils.getValue(this.style,"size",this.size));v?B=Math.max(0,Math.min(r,B*this.scale)):(B=r*Math.max(0,Math.min(1,B)),this.isRounded&&(v=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,B=Math.max(B,Math.min(r*v,C*v))));g.x+=Math.round(B);g.width-=Math.round(2*B);return g}return g};ja.prototype.paintForeground=function(g,r,C,v,B){var G=mxUtils.getValue(this.style,+"fixedSize",this.fixedSize),I=parseFloat(mxUtils.getValue(this.style,"size",this.size));I=G?Math.max(0,Math.min(v,I)):v*Math.max(0,Math.min(1,I));this.isRounded&&(G=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,I=Math.max(I,Math.min(v*G,B*G)));I=Math.round(I);g.begin();g.moveTo(r+I,C);g.lineTo(r+I,C+B);g.moveTo(r+v-I,C);g.lineTo(r+v-I,C+B);g.end();g.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("process",+ja);mxCellRenderer.registerShape("process2",ja);mxUtils.extend(ka,mxRectangleShape);ka.prototype.paintBackground=function(g,r,C,v,B){g.setFillColor(mxConstants.NONE);g.rect(r,C,v,B);g.fill()};ka.prototype.paintForeground=function(g,r,C,v,B){};mxCellRenderer.registerShape("transparent",ka);mxUtils.extend(ua,mxHexagon);ua.prototype.size=30;ua.prototype.position=.5;ua.prototype.position2=.5;ua.prototype.base=20;ua.prototype.getLabelMargins=function(){return new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,+"size",this.size))*this.scale)};ua.prototype.isRoundable=function(){return!0};ua.prototype.redrawPath=function(g,r,C,v,B){r=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var G=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),I=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2)))),ba=Math.max(0,Math.min(v,+parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(g,[new mxPoint(0,0),new mxPoint(v,0),new mxPoint(v,B-C),new mxPoint(Math.min(v,G+ba),B-C),new mxPoint(I,B),new mxPoint(Math.max(0,G),B-C),new mxPoint(0,B-C)],this.isRounded,r,!0,[4])};mxCellRenderer.registerShape("callout",ua);mxUtils.extend(Ca,mxActor);Ca.prototype.tipX=-.25;Ca.prototype.tipY=1;Ca.prototype.base=20;Ca.prototype.maxTipOffset=100;Ca.prototype.isRoundable=function(){return!0};Ca.prototype.getTipOffset=function(){var g=+this.maxTipOffset,r=parseFloat(mxUtils.getValue(this.style,"tipX",this.tipX)),C=parseFloat(mxUtils.getValue(this.style,"tipY",this.tipY));return new mxPoint(Math.max(-g,Math.min(g,isFinite(r)?r:this.tipX)),Math.max(-g,Math.min(g,isFinite(C)?C:this.tipY)))};Ca.prototype.getTailPoints=function(g,r){var C=this.getTipOffset(),v=C.x*g;C=C.y*r;if(Math.abs(v)<=g/2&&Math.abs(C)<=r/2)return null;var B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,G=parseFloat(mxUtils.getValue(this.style,+"base",this.base));G=isFinite(G)?Math.max(0,G):this.base;B=this.isRounded?B:0;var I=new mxPoint(g/2+v,r/2+C);if(Math.abs(v)*r>=Math.abs(C)*g&&0!=v)return B=Math.min(B,r/2),G=Math.max(0,Math.min(G,r-2*B))/2,C=r/2+g/2*C/Math.abs(v),C=Math.max(B+G,Math.min(r-B-G,C)),0<v?{points:[new mxPoint(g,C-G),I,new mxPoint(g,C+G)],index:2}:{points:[new mxPoint(0,C+G),I,new mxPoint(0,C-G)],index:4};B=Math.min(B,g/2);G=Math.max(0,Math.min(G,g-2*B))/2;v=g/2+r/2*v/Math.abs(C);v=Math.max(B+G,Math.min(g-B-G,v));return 0<+C?{points:[new mxPoint(v+G,r),I,new mxPoint(v-G,r)],index:3}:{points:[new mxPoint(v-G,0),I,new mxPoint(v+G,0)],index:1}};Ca.prototype.redrawPath=function(g,r,C,v,B){r=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;C=[new mxPoint(0,0),new mxPoint(v,0),new mxPoint(v,B),new mxPoint(0,B)];v=this.getTailPoints(v,B);B=null;null!=v&&(C.splice.apply(C,[v.index,0].concat(v.points)),B=[v.index,v.index+1,v.index+2]);this.addPoints(g,C,this.isRounded,r,!0,B)};Ca.prototype.getShapeBoundingBox=+function(){var g=mxShape.prototype.getShapeBoundingBox.apply(this,arguments);if(null!=g&&null!=this.bounds){var r=this.createBoundingBox(),C=this.scale,v=r.width/C,B=r.height/C,G=this.getTailPoints(v,B);if(null!=G){var I=G.points[1],ba=r.x+r.width/2;r=r.y+r.height/2;C=new mxRectangle(ba+(I.x-v/2)*C*(this.flipH?-1:1),r+(I.y-B/2)*C*(this.flipV?-1:1),0,0);this.augmentBoundingBox(C);v=G.points[0].x-I.x;B=G.points[0].y-I.y;var U=G.points[2].x-I.x;G=G.points[2].y-I.y;I=Math.sqrt(v*v+B*B);var za=Math.sqrt(U*+U+G*G);0<I&&0<za&&(G=Math.sqrt((1-Math.max(-1,Math.min(1,(v*U+B*G)/(I*za))))/2),C.grow(((0<G?Math.min(10,1/G):10)-1)*this.strokewidth*this.scale/2));G=this.getShapeRotation();0!=G&&(C=mxUtils.getBoundingBox(C,G,new mxPoint(ba,r)));g.add(C)}}return g};mxCellRenderer.registerShape("wedgeCallout",Ca);mxUtils.extend(ia,mxActor);ia.prototype.size=.2;ia.prototype.fixedSize=20;ia.prototype.isRoundable=function(){return!0};ia.prototype.redrawPath=function(g,r,C,v,B){r="0"!=mxUtils.getValue(this.style,"fixedSize",+"0")?Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,0),new mxPoint(v-r,0),new mxPoint(v,B/2),new mxPoint(v-r,B),new mxPoint(0,B),new mxPoint(r,B/2)],this.isRounded,C,!0);g.end()};mxCellRenderer.registerShape("step",ia);mxUtils.extend(k,mxHexagon);k.prototype.size=+.25;k.prototype.fixedSize=20;k.prototype.isRoundable=function(){return!0};k.prototype.redrawPath=function(g,r,C,v,B){r="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*v,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(r,0),new mxPoint(v-r,0),new mxPoint(v,.5*B),+new mxPoint(v-r,B),new mxPoint(r,B),new mxPoint(0,.5*B)],this.isRounded,C,!0)};mxCellRenderer.registerShape("hexagon",k);mxUtils.extend(u,mxRectangleShape);u.prototype.isHtmlAllowed=function(){return!1};u.prototype.paintForeground=function(g,r,C,v,B){var G=Math.min(v/5,B/5)+1;g.begin();g.moveTo(r+v/2,C+G);g.lineTo(r+v/2,C+B-G);g.moveTo(r+G,C+B/2);g.lineTo(r+v-G,C+B/2);g.end();g.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("plus",u);var Ma=+mxRhombus.prototype.paintVertexShape;mxRhombus.prototype.getLabelBounds=function(g){if(1==this.style["double"]){var r=(2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(g.x+r,g.y+r,g.width-2*r,g.height-2*r)}return g};mxRhombus.prototype.paintVertexShape=function(g,r,C,v,B){Ma.apply(this,arguments);var G=r,I=C,ba=v,U=B;if(!this.outline&&1==this.style["double"]){var za=2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||+0);r+=za;C+=za;v-=2*za;B-=2*za;0<v&&0<B&&(g.setShadow(!1),Ma.apply(this,[g,r,C,v,B]))}this.glass&&!this.outline&&null!=this.fill&&this.fill!=mxConstants.NONE&&this.paintGlassEffect(g,G,I,ba,U,0)};mxShape.prototype.paintGlassEffect=function(g,r,C,v,B,G){var I=Math.ceil(this.strokewidth/2);g.setGradient("#ffffff","#ffffff",r,C,v,.6*B,"south",.9,.1);g.begin();this.paintGlassEffectPath(g,r,C,v,B,I,G);g.close();g.fill()};mxShape.prototype.paintGlassEffectPath=function(g,r,C,v,B,G,I){I+=2*G;this.isRounded?+(g.moveTo(r-G+I,C-G),g.quadTo(r-G,C-G,r-G,C-G+I),g.lineTo(r-G,C+.4*B),g.quadTo(r+.5*v,C+.7*B,r+v+G,C+.4*B),g.lineTo(r+v+G,C-G+I),g.quadTo(r+v+G,C-G,r+v+G-I,C-G)):(g.moveTo(r-G,C-G),g.lineTo(r-G,C+.4*B),g.quadTo(r+.5*v,C+.7*B,r+v+G,C+.4*B),g.lineTo(r+v+G,C-G))};mxEllipse.prototype.paintGlassEffectPath=function(g,r,C,v,B,G,I){I=v/2+G;G=B/2+G;r+=v/2;C+=B/2;g.moveTo(r-I,C);g.curveTo(r-I,C-.5522847498*G,r-.5522847498*I,C-G,r,C-G);g.curveTo(r+.5522847498*I,C-G,r+I,C-.5522847498*G,r+I,C);g.quadTo(r,C+.2*+B,r-I,C)};mxRhombus.prototype.paintGlassEffectPath=function(g,r,C,v,B,G,I){G=v/2;I=B/2;var ba=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(r,C+I),new mxPoint(r+G,C),new mxPoint(r+v,C+I)],this.isRounded,ba,!1);g.quadTo(r+G,C+.7*B,r,C+I)};var Ya=mxEllipse.prototype.paintVertexShape;mxEllipse.prototype.paintVertexShape=function(g,r,C,v,B){Ya.apply(this,arguments);this.glass&&!this.outline&&null!=this.fill&&this.fill!=mxConstants.NONE&&+this.paintGlassEffect(g,r,C,v,B,0)};mxUtils.extend(H,mxRectangleShape);H.prototype.isHtmlAllowed=function(){return!1};H.prototype.getLabelBounds=function(g){if(1==this.style["double"]){var r=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(g.x+r,g.y+r,g.width-2*r,g.height-2*r)}return g};H.prototype.paintForeground=function(g,r,C,v,B){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var G=Math.max(2,this.strokewidth++1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);r+=G;C+=G;v-=2*G;B-=2*G;0<v&&0<B&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}g.setDashed(!1);G=0;do{var I=mxCellRenderer.defaultShapes[this.style["symbol"+G]];if(null!=I){var ba=this.style["symbol"+G+"Align"],U=this.style["symbol"+G+"VerticalAlign"],za=this.style["symbol"+G+"Width"],pa=this.style["symbol"+G+"Height"],Wa=this.style["symbol"+G+"Spacing"]||0,ub=this.style["symbol"+G+"VSpacing"]||Wa,jb=this.style["symbol"+G++"ArcSpacing"];null!=jb&&(jb*=this.getArcSize(v+this.strokewidth,B+this.strokewidth),Wa+=jb,ub+=jb);jb=r;var Ra=C;jb=ba==mxConstants.ALIGN_CENTER?jb+(v-za)/2:ba==mxConstants.ALIGN_RIGHT?jb+(v-za-Wa):jb+Wa;Ra=U==mxConstants.ALIGN_MIDDLE?Ra+(B-pa)/2:U==mxConstants.ALIGN_BOTTOM?Ra+(B-pa-ub):Ra+ub;g.save();ba=new I;ba.style=this.style;I.prototype.paintVertexShape.call(ba,g,jb,Ra,za,pa);g.restore()}G++}while(null!=I)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",+H);mxUtils.extend(P,mxCylinder);P.prototype.redrawPath=function(g,r,C,v,B,G){G?(g.moveTo(0,0),g.lineTo(v/2,B/2),g.lineTo(v,0),g.end()):(g.moveTo(0,0),g.lineTo(v,0),g.lineTo(v,B),g.lineTo(0,B),g.close())};mxCellRenderer.registerShape("message",P);mxUtils.extend(T,mxShape);T.prototype.paintBackground=function(g,r,C,v,B){g.translate(r,C);g.ellipse(v/4,0,v/2,B/4);g.fillAndStroke();g.begin();g.moveTo(v/2,B/4);g.lineTo(v/2,2*B/3);g.moveTo(v/2,B/3);g.lineTo(0,B/3);g.moveTo(v/2,B/3);g.lineTo(v,B/3);g.moveTo(v/+2,2*B/3);g.lineTo(0,B);g.moveTo(v/2,2*B/3);g.lineTo(v,B);g.end();g.stroke()};mxCellRenderer.registerShape("umlActor",T);mxUtils.extend(W,mxShape);W.prototype.getLabelMargins=function(g){return new mxRectangle(g.width/6,0,0,0)};W.prototype.paintBackground=function(g,r,C,v,B){g.translate(r,C);g.begin();g.moveTo(0,B/4);g.lineTo(0,3*B/4);g.end();g.stroke();g.begin();g.moveTo(0,B/2);g.lineTo(v/6,B/2);g.end();g.stroke();g.ellipse(v/6,0,5*v/6,B);g.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",+W);mxUtils.extend(ha,mxEllipse);ha.prototype.paintVertexShape=function(g,r,C,v,B){mxEllipse.prototype.paintVertexShape.apply(this,arguments);g.begin();g.moveTo(r+v/8,C+B);g.lineTo(r+7*v/8,C+B);g.end();g.stroke()};mxCellRenderer.registerShape("umlEntity",ha);mxUtils.extend(X,mxShape);X.prototype.paintVertexShape=function(g,r,C,v,B){g.translate(r,C);g.begin();g.moveTo(v,0);g.lineTo(0,B);g.moveTo(0,0);g.lineTo(v,B);g.end();g.stroke()};mxCellRenderer.registerShape("umlDestroy",X);mxUtils.extend(ea,mxShape);+ea.prototype.getLabelBounds=function(g){return new mxRectangle(g.x,g.y+g.height/8,g.width,7*g.height/8)};ea.prototype.paintBackground=function(g,r,C,v,B){g.translate(r,C);g.begin();g.moveTo(3*v/8,B/8*1.1);g.lineTo(5*v/8,0);g.end();g.stroke();g.ellipse(0,B/8,v,7*B/8);g.fillAndStroke()};ea.prototype.paintForeground=function(g,r,C,v,B){g.begin();g.moveTo(3*v/8,B/8*1.1);g.lineTo(5*v/8,B/4);g.end();g.stroke()};mxCellRenderer.registerShape("umlControl",ea);mxUtils.extend(la,mxShape);la.prototype.iconSize=+44;la.prototype.paintBackground=function(g,r,C,v,B){B=Math.min(this.iconSize,v,B);var G=.9*B,I=.45*B;r=r+v/2-B/2;v=C+B/2;var ba=r+.175*G;G=ba-G;g.begin();g.moveTo(G,v-I/2);g.lineTo(G,v+I/2);g.end();g.stroke();g.begin();g.moveTo(G,v);g.lineTo(ba,v);g.end();g.stroke();g.ellipse(r,C,B,B);g.fillAndStroke()};mxCellRenderer.registerShape("seqBoundary",la);mxCellRenderer.registerShape("seqControl",oa(ea,44));mxCellRenderer.registerShape("seqEntity",oa(ha,44));mxUtils.extend(ca,mxShape);ca.prototype.paintBackground=+function(g,r,C,v,B){var G=B/2,I=G/(2.5+B/50);g.save();g.translate(r,C);g.begin();g.moveTo(I,0);g.lineTo(v-I,0);g.arcTo(I,G,0,0,1,v-I,B);g.lineTo(I,B);g.arcTo(I,G,0,0,1,I,0);g.close();g.fillAndStroke();g.restore()};ca.prototype.paintForeground=function(g,r,C,v,B){var G=B/2,I=G/(2.5+B/50);g.save();g.translate(r,C);g.begin();g.moveTo(v-I,0);g.arcTo(I,G,0,0,0,v-I,B);g.stroke();g.restore()};mxCellRenderer.registerShape("seqQueue",ca);mxUtils.extend(ta,mxShape);ta.prototype.paintBackground=function(g,r,+C,v,B){g.rect(r+6,C-6,v,B);g.fillAndStroke();g.rect(r,C,v,B);g.fillAndStroke()};mxCellRenderer.registerShape("seqCollections",ta);mxUtils.extend(xa,mxShape);xa.prototype.paintBackground=function(g,r,C,v,B){B=v/3;var G=v/3,I=B/2,ba=I/(2.5+B/50);g.translate(r+(v-B)/2,C);g.begin();g.moveTo(0,ba);g.arcTo(I,ba,0,0,0,B,ba);g.arcTo(I,ba,0,0,0,0,ba);g.lineTo(0,G-ba);g.arcTo(I,ba,0,0,0,B,G-ba);g.lineTo(B,ba);g.fillAndStroke()};mxCellRenderer.registerShape("seqDatabase",xa);mxUtils.extend(qa,mxShape);qa.prototype.paintBackground=+function(g,r,C,v,B){r+=v/2;C+=15;v=C+15;B=v+20;var G=v+10,I=B+15;g.ellipse(r-15,C-15,30,30);g.fillAndStroke();g.begin();g.moveTo(r,v);g.lineTo(r,B);g.moveTo(r-18,G);g.lineTo(r+18,G);g.moveTo(r,B);g.lineTo(r-16,I);g.moveTo(r,B);g.lineTo(r+16,I);g.stroke()};mxCellRenderer.registerShape("seqActorStick",qa);mxUtils.extend(Ba,mxRectangleShape);Ba.prototype.size=40;Ba.prototype.isHtmlAllowed=function(){return!1};Ba.prototype.isMirrored=function(){return"1"==mxUtils.getValue(this.style,"lifelineMirror",+"0")};Ba.prototype.getHeadSize=function(g){return Math.max(0,Math.min(this.isMirrored()?g/2:g,parseFloat(mxUtils.getValue(this.style,"size",this.size))))};Ba.prototype.getLabelBounds=function(g){var r=Math.max(0,Math.min(this.isMirrored()?g.height/2:g.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(g.x,g.y,g.width,r)};Ba.prototype.paintBackground=function(g,r,C,v,B){var G=this.getHeadSize(B),I=this.isMirrored(),ba=mxUtils.getValue(this.style,"participant");+null==ba||null==this.state?(mxRectangleShape.prototype.paintBackground.call(this,g,r,C,v,G),I&&mxRectangleShape.prototype.paintBackground.call(this,g,r,C+B-G,v,G)):(ba=this.state.view.graph.cellRenderer.getShape(ba),null!=ba&&ba!=Ba&&(ba=new ba,ba.apply(this.state),g.save(),ba.paintVertexShape(g,r,C,v,G),g.restore(),I&&(g.save(),ba.paintVertexShape(g,r,C+B-G,v,G),g.restore())));B=I?B-G:B;G<B&&(g.setDashed("1"==mxUtils.getValue(this.style,"lifelineDashed","1")),g.begin(),g.moveTo(r+v/2,C+G),g.lineTo(r++v/2,C+B),g.end(),g.stroke())};Ba.prototype.paintForeground=function(g,r,C,v,B){var G=mxUtils.getValue(this.style,"participant"),I=this.getHeadSize(B),ba=this.isMirrored();null==G&&(mxRectangleShape.prototype.paintForeground.call(this,g,r,C,v,Math.min(B,I)),ba&&mxRectangleShape.prototype.paintForeground.call(this,g,r,C+B-I,v,I));ba&&this.paintMirrorLabel(g,r,C+B-I,v,I)};Ba.prototype.paintMirrorLabel=function(g,r,C,v,B){var G=null!=this.state?this.state.view.graph.getLabel(this.state.cell):null;this.mirrorLabelValue=G;if(null!=G&&""!=G){g.setFontColor(mxUtils.getValue(this.style,mxConstants.STYLE_FONTCOLOR,"black"));g.setFontBackgroundColor(mxUtils.getValue(this.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null));g.setFontBorderColor(mxUtils.getValue(this.style,mxConstants.STYLE_LABEL_BORDERCOLOR,null));g.setFontFamily(mxUtils.getValue(this.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY));g.setFontSize(parseFloat(mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE)));g.setFontStyle(parseInt(mxUtils.getValue(this.style,mxConstants.STYLE_FONTSTYLE,0)));var I=mxUtils.getValue(this.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),ba=mxUtils.getValue(this.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE),U=parseInt(mxUtils.getValue(this.style,mxConstants.STYLE_SPACING,2)),za=parseFloat(mxUtils.getValue(this.style,mxConstants.STYLE_SPACING_TOP,0))+U,pa=parseFloat(mxUtils.getValue(this.style,mxConstants.STYLE_SPACING_BOTTOM,0))+U,Wa=parseFloat(mxUtils.getValue(this.style,-mxConstants.STYLE_SPACING_LEFT,0))+U;U=parseFloat(mxUtils.getValue(this.style,mxConstants.STYLE_SPACING_RIGHT,0))+U;r=I==mxConstants.ALIGN_LEFT?r+Wa:I==mxConstants.ALIGN_RIGHT?r+u-U:r+u/2;C=ba==mxConstants.ALIGN_TOP?C+za+1:ba==mxConstants.ALIGN_BOTTOM?C+B-pa-1:C+B/2;B="wrap"==mxUtils.getValue(this.style,mxConstants.STYLE_WHITE_SPACE,null);za="1"==mxUtils.getValue(this.style,"html","0")?"html":"";"html"==za&&(G=Graph.sanitizeHtml(G));g.text(r,C,B?u-Wa-U:0,0,G,I,ba,B,za,null,!1,0,null)}};mxCellRenderer.registerShape("umlLifeline",+mxConstants.STYLE_SPACING_LEFT,0))+U;U=parseFloat(mxUtils.getValue(this.style,mxConstants.STYLE_SPACING_RIGHT,0))+U;r=I==mxConstants.ALIGN_LEFT?r+Wa:I==mxConstants.ALIGN_RIGHT?r+v-U:r+v/2;C=ba==mxConstants.ALIGN_TOP?C+za+1:ba==mxConstants.ALIGN_BOTTOM?C+B-pa-1:C+B/2;B="wrap"==mxUtils.getValue(this.style,mxConstants.STYLE_WHITE_SPACE,null);za="1"==mxUtils.getValue(this.style,"html","0")?"html":"";"html"==za&&(G=Graph.sanitizeHtml(G));g.text(r,C,B?v-Wa-U:0,0,G,I,ba,B,za,null,!1,0,null)}};mxCellRenderer.registerShape("umlLifeline",Ba);var Ta=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=function(g,r){return Ta.apply(this,arguments)||void 0!==r.mirrorLabelValue&&r.mirrorLabelValue!=g.view.graph.getLabel(g.cell)};mxUtils.extend(na,mxShape);na.prototype.width=60;na.prototype.height=30;na.prototype.corner=10;na.prototype.configurePointerEvents=function(g){var r=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);null==this.style||null!=r&&r!=mxConstants.NONE&&0!=-this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(g.pointerEvents=!1)};na.prototype.getLabelMargins=function(g){return new mxRectangle(0,0,g.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),g.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};na.prototype.paintBackground=function(g,r,C,u,B){var G=this.corner,I=Math.min(u,Math.max(G,parseFloat(mxUtils.getValue(this.style,"width",this.width)))),-ba=Math.min(B,Math.max(1.5*G,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),U=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);U!=mxConstants.NONE&&(g.setFillColor(U),g.rect(r,C,u,B),g.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(g,r,C,u,B),g.setGradient(this.fill,this.gradient,r,C,u,B,this.gradientDirection)):g.setFillColor(this.fill);g.pointerEvents=!0;g.begin();g.moveTo(r,-C);g.lineTo(r+I,C);g.lineTo(r+I,C+Math.max(0,ba-1.5*G));g.lineTo(r+Math.max(0,I-G),C+ba);g.lineTo(r,C+ba);g.close();g.fillAndStroke();this.configurePointerEvents(g);g.begin();g.moveTo(r+I,C);g.lineTo(r+u,C);g.lineTo(r+u,C+B);g.lineTo(r,C+B);g.lineTo(r,C+ba);g.stroke()};mxCellRenderer.registerShape("umlFrame",na);mxPerimeter.CenterPerimeter=function(g,r,C,u){return new mxPoint(g.getCenterX(),g.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=-function(g,r,C,u){u=Ba.prototype.size;var B=g.y+g.height;null!=r&&(u=mxUtils.getValue(r.style,"size",u)*r.view.scale,"1"==mxUtils.getValue(r.style,"lifelineMirror","0")&&(B-=u));r=parseFloat(r.style[mxConstants.STYLE_STROKEWIDTH]||1)*r.view.scale/2-1;C.x<g.getCenterX()&&(r=-1*(r+1));return new mxPoint(g.getCenterX()+r,Math.min(B,Math.max(g.y+u,C.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=function(g,r,C,u){u=!0;return mxPerimeter.RectanglePerimeter.apply(this,-arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",mxPerimeter.OrthogonalPerimeter);mxPerimeter.BackbonePerimeter=function(g,r,C,u){u=parseFloat(r.style[mxConstants.STYLE_STROKEWIDTH]||1)*r.view.scale/2-1;null!=r.style.backboneSize&&(u+=parseFloat(r.style.backboneSize)*r.view.scale/2-1);if("south"==r.style[mxConstants.STYLE_DIRECTION]||"north"==r.style[mxConstants.STYLE_DIRECTION])return C.x<g.getCenterX()&&(u=-1*(u+1)),new mxPoint(g.getCenterX()+u,Math.min(g.y+g.height,Math.max(g.y,C.y)));-C.y<g.getCenterY()&&(u=-1*(u+1));return new mxPoint(Math.min(g.x+g.width,Math.max(g.x,C.x)),g.getCenterY()+u)};mxStyleRegistry.putValue("backbonePerimeter",mxPerimeter.BackbonePerimeter);mxPerimeter.CalloutPerimeter=function(g,r,C,u){return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(g,new mxRectangle(0,0,0,Math.max(0,Math.min(g.height,parseFloat(mxUtils.getValue(r.style,"size",ua.prototype.size))*r.view.scale))),r.style),r,C,u)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);-mxPerimeter.ParallelogramPerimeter=function(g,r,C,u){var B="0"!=mxUtils.getValue(r.style,"fixedSize","0"),G=B?V.prototype.fixedSize:V.prototype.size;null!=r&&(G=mxUtils.getValue(r.style,"size",G));B&&(G*=r.view.scale);var I=g.x,ba=g.y,U=g.width,za=g.height;r=null!=r?mxUtils.getValue(r.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;r==mxConstants.DIRECTION_NORTH||r==mxConstants.DIRECTION_SOUTH?(B=B?Math.max(0,Math.min(za,G)):za*Math.max(0,Math.min(1,G)),ba=-[new mxPoint(I,ba),new mxPoint(I+U,ba+B),new mxPoint(I+U,ba+za),new mxPoint(I,ba+za-B),new mxPoint(I,ba)]):(B=B?Math.max(0,Math.min(.5*U,G)):U*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I+B,ba),new mxPoint(I+U,ba),new mxPoint(I+U-B,ba+za),new mxPoint(I,ba+za),new mxPoint(I+B,ba)]);za=g.getCenterX();g=g.getCenterY();g=new mxPoint(za,g);u&&(C.x<I||C.x>I+U?g.y=C.y:g.x=C.x);return mxUtils.getPerimeterPoint(ba,g,C)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=-function(g,r,C,u){var B="0"!=mxUtils.getValue(r.style,"fixedSize","0"),G=B?K.prototype.fixedSize:K.prototype.size;null!=r&&(G=mxUtils.getValue(r.style,"size",G));B&&(G*=r.view.scale);var I=g.x,ba=g.y,U=g.width,za=g.height;r=null!=r?mxUtils.getValue(r.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;r==mxConstants.DIRECTION_EAST?(B=B?Math.max(0,Math.min(.5*U,G)):U*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I+B,ba),new mxPoint(I+U-B,ba),new mxPoint(I+U,ba+za),+this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(g.pointerEvents=!1)};na.prototype.getLabelMargins=function(g){return new mxRectangle(0,0,g.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),g.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};na.prototype.paintBackground=function(g,r,C,v,B){var G=this.corner,I=Math.min(v,Math.max(G,parseFloat(mxUtils.getValue(this.style,"width",this.width)))),+ba=Math.min(B,Math.max(1.5*G,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),U=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);U!=mxConstants.NONE&&(g.setFillColor(U),g.rect(r,C,v,B),g.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(g,r,C,v,B),g.setGradient(this.fill,this.gradient,r,C,v,B,this.gradientDirection)):g.setFillColor(this.fill);g.pointerEvents=!0;g.begin();g.moveTo(r,+C);g.lineTo(r+I,C);g.lineTo(r+I,C+Math.max(0,ba-1.5*G));g.lineTo(r+Math.max(0,I-G),C+ba);g.lineTo(r,C+ba);g.close();g.fillAndStroke();this.configurePointerEvents(g);g.begin();g.moveTo(r+I,C);g.lineTo(r+v,C);g.lineTo(r+v,C+B);g.lineTo(r,C+B);g.lineTo(r,C+ba);g.stroke()};mxCellRenderer.registerShape("umlFrame",na);mxPerimeter.CenterPerimeter=function(g,r,C,v){return new mxPoint(g.getCenterX(),g.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=+function(g,r,C,v){v=Ba.prototype.size;var B=g.y+g.height;null!=r&&(v=mxUtils.getValue(r.style,"size",v)*r.view.scale,"1"==mxUtils.getValue(r.style,"lifelineMirror","0")&&(B-=v));r=parseFloat(r.style[mxConstants.STYLE_STROKEWIDTH]||1)*r.view.scale/2-1;C.x<g.getCenterX()&&(r=-1*(r+1));return new mxPoint(g.getCenterX()+r,Math.min(B,Math.max(g.y+v,C.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=function(g,r,C,v){v=!0;return mxPerimeter.RectanglePerimeter.apply(this,+arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",mxPerimeter.OrthogonalPerimeter);mxPerimeter.BackbonePerimeter=function(g,r,C,v){v=parseFloat(r.style[mxConstants.STYLE_STROKEWIDTH]||1)*r.view.scale/2-1;null!=r.style.backboneSize&&(v+=parseFloat(r.style.backboneSize)*r.view.scale/2-1);if("south"==r.style[mxConstants.STYLE_DIRECTION]||"north"==r.style[mxConstants.STYLE_DIRECTION])return C.x<g.getCenterX()&&(v=-1*(v+1)),new mxPoint(g.getCenterX()+v,Math.min(g.y+g.height,Math.max(g.y,C.y)));+C.y<g.getCenterY()&&(v=-1*(v+1));return new mxPoint(Math.min(g.x+g.width,Math.max(g.x,C.x)),g.getCenterY()+v)};mxStyleRegistry.putValue("backbonePerimeter",mxPerimeter.BackbonePerimeter);mxPerimeter.CalloutPerimeter=function(g,r,C,v){return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(g,new mxRectangle(0,0,0,Math.max(0,Math.min(g.height,parseFloat(mxUtils.getValue(r.style,"size",ua.prototype.size))*r.view.scale))),r.style),r,C,v)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);+mxPerimeter.ParallelogramPerimeter=function(g,r,C,v){var B="0"!=mxUtils.getValue(r.style,"fixedSize","0"),G=B?V.prototype.fixedSize:V.prototype.size;null!=r&&(G=mxUtils.getValue(r.style,"size",G));B&&(G*=r.view.scale);var I=g.x,ba=g.y,U=g.width,za=g.height;r=null!=r?mxUtils.getValue(r.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;r==mxConstants.DIRECTION_NORTH||r==mxConstants.DIRECTION_SOUTH?(B=B?Math.max(0,Math.min(za,G)):za*Math.max(0,Math.min(1,G)),ba=+[new mxPoint(I,ba),new mxPoint(I+U,ba+B),new mxPoint(I+U,ba+za),new mxPoint(I,ba+za-B),new mxPoint(I,ba)]):(B=B?Math.max(0,Math.min(.5*U,G)):U*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I+B,ba),new mxPoint(I+U,ba),new mxPoint(I+U-B,ba+za),new mxPoint(I,ba+za),new mxPoint(I+B,ba)]);za=g.getCenterX();g=g.getCenterY();g=new mxPoint(za,g);v&&(C.x<I||C.x>I+U?g.y=C.y:g.x=C.x);return mxUtils.getPerimeterPoint(ba,g,C)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=+function(g,r,C,v){var B="0"!=mxUtils.getValue(r.style,"fixedSize","0"),G=B?K.prototype.fixedSize:K.prototype.size;null!=r&&(G=mxUtils.getValue(r.style,"size",G));B&&(G*=r.view.scale);var I=g.x,ba=g.y,U=g.width,za=g.height;r=null!=r?mxUtils.getValue(r.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;r==mxConstants.DIRECTION_EAST?(B=B?Math.max(0,Math.min(.5*U,G)):U*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I+B,ba),new mxPoint(I+U-B,ba),new mxPoint(I+U,ba+za),new mxPoint(I,ba+za),new mxPoint(I+B,ba)]):r==mxConstants.DIRECTION_WEST?(B=B?Math.max(0,Math.min(U,G)):U*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I,ba),new mxPoint(I+U,ba),new mxPoint(I+U-B,ba+za),new mxPoint(I+B,ba+za),new mxPoint(I,ba)]):r==mxConstants.DIRECTION_NORTH?(B=B?Math.max(0,Math.min(za,G)):za*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I,ba+B),new mxPoint(I+U,ba),new mxPoint(I+U,ba+za),new mxPoint(I,ba+za-B),new mxPoint(I,ba+B)]):(B=B?Math.max(0,Math.min(za,G)):za*Math.max(0,Math.min(1,-G)),ba=[new mxPoint(I,ba),new mxPoint(I+U,ba+B),new mxPoint(I+U,ba+za-B),new mxPoint(I,ba+za),new mxPoint(I,ba)]);za=g.getCenterX();g=g.getCenterY();g=new mxPoint(za,g);u&&(C.x<I||C.x>I+U?g.y=C.y:g.x=C.x);return mxUtils.getPerimeterPoint(ba,g,C)};mxStyleRegistry.putValue("trapezoidPerimeter",mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(g,r,C,u){var B="0"!=mxUtils.getValue(r.style,"fixedSize","0"),G=B?ia.prototype.fixedSize:ia.prototype.size;null!=r&&(G=mxUtils.getValue(r.style,+G)),ba=[new mxPoint(I,ba),new mxPoint(I+U,ba+B),new mxPoint(I+U,ba+za-B),new mxPoint(I,ba+za),new mxPoint(I,ba)]);za=g.getCenterX();g=g.getCenterY();g=new mxPoint(za,g);v&&(C.x<I||C.x>I+U?g.y=C.y:g.x=C.x);return mxUtils.getPerimeterPoint(ba,g,C)};mxStyleRegistry.putValue("trapezoidPerimeter",mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(g,r,C,v){var B="0"!=mxUtils.getValue(r.style,"fixedSize","0"),G=B?ia.prototype.fixedSize:ia.prototype.size;null!=r&&(G=mxUtils.getValue(r.style,"size",G));B&&(G*=r.view.scale);var I=g.x,ba=g.y,U=g.width,za=g.height,pa=g.getCenterX();g=g.getCenterY();r=null!=r?mxUtils.getValue(r.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;r==mxConstants.DIRECTION_EAST?(B=B?Math.max(0,Math.min(U,G)):U*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I,ba),new mxPoint(I+U-B,ba),new mxPoint(I+U,g),new mxPoint(I+U-B,ba+za),new mxPoint(I,ba+za),new mxPoint(I+B,g),new mxPoint(I,ba)]):r==mxConstants.DIRECTION_WEST?(B=B?Math.max(0,Math.min(U,G)):U*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I+B,ba),new mxPoint(I+U,ba),new mxPoint(I+U-B,g),new mxPoint(I+U,ba+za),new mxPoint(I+B,ba+za),new mxPoint(I,g),new mxPoint(I+B,ba)]):r==mxConstants.DIRECTION_NORTH?(B=B?Math.max(0,Math.min(za,G)):za*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I,ba+B),new mxPoint(pa,ba),new mxPoint(I+U,ba+B),new mxPoint(I+U,ba+za),new mxPoint(pa,ba+za-B),new mxPoint(I,ba+za),new mxPoint(I,ba+B)]):(B=B?Math.max(0,Math.min(za,G)):za*Math.max(0,Math.min(1,G)),-ba=[new mxPoint(I,ba),new mxPoint(pa,ba+B),new mxPoint(I+U,ba),new mxPoint(I+U,ba+za-B),new mxPoint(pa,ba+za),new mxPoint(I,ba+za-B),new mxPoint(I,ba)]);pa=new mxPoint(pa,g);u&&(C.x<I||C.x>I+U?pa.y=C.y:pa.x=C.x);return mxUtils.getPerimeterPoint(ba,pa,C)};mxStyleRegistry.putValue("stepPerimeter",mxPerimeter.StepPerimeter);mxPerimeter.HexagonPerimeter2=function(g,r,C,u){var B="0"!=mxUtils.getValue(r.style,"fixedSize","0"),G=B?k.prototype.fixedSize:k.prototype.size;null!=r&&(G=mxUtils.getValue(r.style,+ba=[new mxPoint(I,ba),new mxPoint(pa,ba+B),new mxPoint(I+U,ba),new mxPoint(I+U,ba+za-B),new mxPoint(pa,ba+za),new mxPoint(I,ba+za-B),new mxPoint(I,ba)]);pa=new mxPoint(pa,g);v&&(C.x<I||C.x>I+U?pa.y=C.y:pa.x=C.x);return mxUtils.getPerimeterPoint(ba,pa,C)};mxStyleRegistry.putValue("stepPerimeter",mxPerimeter.StepPerimeter);mxPerimeter.HexagonPerimeter2=function(g,r,C,v){var B="0"!=mxUtils.getValue(r.style,"fixedSize","0"),G=B?k.prototype.fixedSize:k.prototype.size;null!=r&&(G=mxUtils.getValue(r.style,"size",G));B&&(G*=r.view.scale);var I=g.x,ba=g.y,U=g.width,za=g.height,pa=g.getCenterX();g=g.getCenterY();r=null!=r?mxUtils.getValue(r.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;r==mxConstants.DIRECTION_NORTH||r==mxConstants.DIRECTION_SOUTH?(B=B?Math.max(0,Math.min(za,G)):za*Math.max(0,Math.min(1,G)),ba=[new mxPoint(pa,ba),new mxPoint(I+U,ba+B),new mxPoint(I+U,ba+za-B),new mxPoint(pa,ba+za),new mxPoint(I,ba+za-B),new mxPoint(I,ba+B),new mxPoint(pa,ba)]):-(B=B?Math.max(0,Math.min(U,G)):U*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I+B,ba),new mxPoint(I+U-B,ba),new mxPoint(I+U,g),new mxPoint(I+U-B,ba+za),new mxPoint(I+B,ba+za),new mxPoint(I,g),new mxPoint(I+B,ba)]);pa=new mxPoint(pa,g);u&&(C.x<I||C.x>I+U?pa.y=C.y:pa.x=C.x);return mxUtils.getPerimeterPoint(ba,pa,C)};mxStyleRegistry.putValue("hexagonPerimeter2",mxPerimeter.HexagonPerimeter2);mxUtils.extend(ra,mxShape);ra.prototype.size=10;ra.prototype.paintBackground=function(g,r,C,u,B){var G=parseFloat(mxUtils.getValue(this.style,-"size",this.size));g.translate(r,C);g.ellipse((u-G)/2,0,G,G);g.fillAndStroke();g.begin();g.moveTo(u/2,G);g.lineTo(u/2,B);g.end();g.stroke()};mxCellRenderer.registerShape("lollipop",ra);mxUtils.extend(va,mxShape);va.prototype.size=10;va.prototype.inset=2;va.prototype.paintBackground=function(g,r,C,u,B){var G=parseFloat(mxUtils.getValue(this.style,"size",this.size)),I=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;g.translate(r,C);g.begin();g.moveTo(u/2,G+I);g.lineTo(u/-2,B);g.end();g.stroke();g.begin();g.moveTo((u-G)/2-I,G/2);g.quadTo((u-G)/2-I,G+I,u/2,G+I);g.quadTo((u+G)/2+I,G+I,(u+G)/2+I,G/2);g.end();g.stroke()};mxCellRenderer.registerShape("requires",va);mxUtils.extend(Ha,mxShape);Ha.prototype.paintBackground=function(g,r,C,u,B){g.translate(r,C);g.begin();g.moveTo(0,0);g.quadTo(u,0,u,B/2);g.quadTo(u,B,0,B);g.end();g.stroke()};mxCellRenderer.registerShape("requiredInterface",Ha);mxUtils.extend(La,mxShape);La.prototype.inset=2;La.prototype.paintBackground=function(g,-r,C,u,B){var G=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;g.translate(r,C);g.ellipse(0,G,u-2*G,B-2*G);g.fillAndStroke();g.begin();g.moveTo(u/2,0);g.quadTo(u,0,u,B/2);g.quadTo(u,B,u/2,B);g.end();g.stroke()};mxCellRenderer.registerShape("providedRequiredInterface",La);mxUtils.extend(Ga,mxCylinder);Ga.prototype.jettyWidth=20;Ga.prototype.jettyHeight=10;Ga.prototype.redrawPath=function(g,r,C,u,B,G){var I=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));-r=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));C=I/2;I=C+I/2;var ba=Math.min(r,B-r),U=Math.min(ba+2*r,B-r);G?(g.moveTo(C,ba),g.lineTo(I,ba),g.lineTo(I,ba+r),g.lineTo(C,ba+r),g.moveTo(C,U),g.lineTo(I,U),g.lineTo(I,U+r),g.lineTo(C,U+r)):(g.moveTo(C,0),g.lineTo(u,0),g.lineTo(u,B),g.lineTo(C,B),g.lineTo(C,U+r),g.lineTo(0,U+r),g.lineTo(0,U),g.lineTo(C,U),g.lineTo(C,ba+r),g.lineTo(0,ba+r),g.lineTo(0,ba),g.lineTo(C,ba),g.close());g.end()};mxCellRenderer.registerShape("module",-Ga);mxUtils.extend(Da,mxCylinder);Da.prototype.jettyWidth=32;Da.prototype.jettyHeight=12;Da.prototype.redrawPath=function(g,r,C,u,B,G){var I=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));r=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));C=I/2;I=C+I/2;var ba=.3*B-r/2,U=.7*B-r/2;G?(g.moveTo(C,ba),g.lineTo(I,ba),g.lineTo(I,ba+r),g.lineTo(C,ba+r),g.moveTo(C,U),g.lineTo(I,U),g.lineTo(I,U+r),g.lineTo(C,U+r)):(g.moveTo(C,0),g.lineTo(u,0),g.lineTo(u,B),g.lineTo(C,-B),g.lineTo(C,U+r),g.lineTo(0,U+r),g.lineTo(0,U),g.lineTo(C,U),g.lineTo(C,ba+r),g.lineTo(0,ba+r),g.lineTo(0,ba),g.lineTo(C,ba),g.close());g.end()};mxCellRenderer.registerShape("component",Da);mxUtils.extend(Qa,mxRectangleShape);Qa.prototype.paintForeground=function(g,r,C,u,B){var G=u/2,I=B/2,ba=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;g.begin();this.addPoints(g,[new mxPoint(r+G,C),new mxPoint(r+u,C+I),new mxPoint(r+G,C+B),new mxPoint(r,C+I)],this.isRounded,-ba,!0);g.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Qa);mxUtils.extend(Ka,mxDoubleEllipse);Ka.prototype.outerStroke=!0;Ka.prototype.paintVertexShape=function(g,r,C,u,B){var G=Math.min(4,Math.min(u/5,B/5));0<u&&0<B&&(g.ellipse(r+G,C+G,u-2*G,B-2*G),g.fillAndStroke());g.setShadow(!1);this.outerStroke&&(g.ellipse(r,C,u,B),g.stroke())};mxCellRenderer.registerShape("endState",Ka);mxUtils.extend(Na,Ka);Na.prototype.outerStroke=+(B=B?Math.max(0,Math.min(U,G)):U*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I+B,ba),new mxPoint(I+U-B,ba),new mxPoint(I+U,g),new mxPoint(I+U-B,ba+za),new mxPoint(I+B,ba+za),new mxPoint(I,g),new mxPoint(I+B,ba)]);pa=new mxPoint(pa,g);v&&(C.x<I||C.x>I+U?pa.y=C.y:pa.x=C.x);return mxUtils.getPerimeterPoint(ba,pa,C)};mxStyleRegistry.putValue("hexagonPerimeter2",mxPerimeter.HexagonPerimeter2);mxUtils.extend(ra,mxShape);ra.prototype.size=10;ra.prototype.paintBackground=function(g,r,C,v,B){var G=parseFloat(mxUtils.getValue(this.style,+"size",this.size));g.translate(r,C);g.ellipse((v-G)/2,0,G,G);g.fillAndStroke();g.begin();g.moveTo(v/2,G);g.lineTo(v/2,B);g.end();g.stroke()};mxCellRenderer.registerShape("lollipop",ra);mxUtils.extend(va,mxShape);va.prototype.size=10;va.prototype.inset=2;va.prototype.paintBackground=function(g,r,C,v,B){var G=parseFloat(mxUtils.getValue(this.style,"size",this.size)),I=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;g.translate(r,C);g.begin();g.moveTo(v/2,G+I);g.lineTo(v/+2,B);g.end();g.stroke();g.begin();g.moveTo((v-G)/2-I,G/2);g.quadTo((v-G)/2-I,G+I,v/2,G+I);g.quadTo((v+G)/2+I,G+I,(v+G)/2+I,G/2);g.end();g.stroke()};mxCellRenderer.registerShape("requires",va);mxUtils.extend(Ha,mxShape);Ha.prototype.paintBackground=function(g,r,C,v,B){g.translate(r,C);g.begin();g.moveTo(0,0);g.quadTo(v,0,v,B/2);g.quadTo(v,B,0,B);g.end();g.stroke()};mxCellRenderer.registerShape("requiredInterface",Ha);mxUtils.extend(La,mxShape);La.prototype.inset=2;La.prototype.paintBackground=function(g,+r,C,v,B){var G=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;g.translate(r,C);g.ellipse(0,G,v-2*G,B-2*G);g.fillAndStroke();g.begin();g.moveTo(v/2,0);g.quadTo(v,0,v,B/2);g.quadTo(v,B,v/2,B);g.end();g.stroke()};mxCellRenderer.registerShape("providedRequiredInterface",La);mxUtils.extend(Ga,mxCylinder);Ga.prototype.jettyWidth=20;Ga.prototype.jettyHeight=10;Ga.prototype.redrawPath=function(g,r,C,v,B,G){var I=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));+r=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));C=I/2;I=C+I/2;var ba=Math.min(r,B-r),U=Math.min(ba+2*r,B-r);G?(g.moveTo(C,ba),g.lineTo(I,ba),g.lineTo(I,ba+r),g.lineTo(C,ba+r),g.moveTo(C,U),g.lineTo(I,U),g.lineTo(I,U+r),g.lineTo(C,U+r)):(g.moveTo(C,0),g.lineTo(v,0),g.lineTo(v,B),g.lineTo(C,B),g.lineTo(C,U+r),g.lineTo(0,U+r),g.lineTo(0,U),g.lineTo(C,U),g.lineTo(C,ba+r),g.lineTo(0,ba+r),g.lineTo(0,ba),g.lineTo(C,ba),g.close());g.end()};mxCellRenderer.registerShape("module",+Ga);mxUtils.extend(Da,mxCylinder);Da.prototype.jettyWidth=32;Da.prototype.jettyHeight=12;Da.prototype.redrawPath=function(g,r,C,v,B,G){var I=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));r=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));C=I/2;I=C+I/2;var ba=.3*B-r/2,U=.7*B-r/2;G?(g.moveTo(C,ba),g.lineTo(I,ba),g.lineTo(I,ba+r),g.lineTo(C,ba+r),g.moveTo(C,U),g.lineTo(I,U),g.lineTo(I,U+r),g.lineTo(C,U+r)):(g.moveTo(C,0),g.lineTo(v,0),g.lineTo(v,B),g.lineTo(C,+B),g.lineTo(C,U+r),g.lineTo(0,U+r),g.lineTo(0,U),g.lineTo(C,U),g.lineTo(C,ba+r),g.lineTo(0,ba+r),g.lineTo(0,ba),g.lineTo(C,ba),g.close());g.end()};mxCellRenderer.registerShape("component",Da);mxUtils.extend(Qa,mxRectangleShape);Qa.prototype.paintForeground=function(g,r,C,v,B){var G=v/2,I=B/2,ba=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;g.begin();this.addPoints(g,[new mxPoint(r+G,C),new mxPoint(r+v,C+I),new mxPoint(r+G,C+B),new mxPoint(r,C+I)],this.isRounded,+ba,!0);g.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Qa);mxUtils.extend(Ka,mxDoubleEllipse);Ka.prototype.outerStroke=!0;Ka.prototype.paintVertexShape=function(g,r,C,v,B){var G=Math.min(4,Math.min(v/5,B/5));0<v&&0<B&&(g.ellipse(r+G,C+G,v-2*G,B-2*G),g.fillAndStroke());g.setShadow(!1);this.outerStroke&&(g.ellipse(r,C,v,B),g.stroke())};mxCellRenderer.registerShape("endState",Ka);mxUtils.extend(Na,Ka);Na.prototype.outerStroke=!1;mxCellRenderer.registerShape("startState",Na);mxUtils.extend(Oa,mxArrowConnector);Oa.prototype.defaultWidth=4;Oa.prototype.isOpenEnded=function(){return!0};Oa.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};Oa.prototype.isArrowRounded=function(){return this.isRounded};mxCellRenderer.registerShape("link",Oa);mxUtils.extend(Fa,mxArrowConnector);Fa.prototype.defaultWidth=10;Fa.prototype.defaultArrowWidth=20;Fa.prototype.getStartArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"startWidth",this.defaultArrowWidth)};Fa.prototype.getEndArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"endWidth",this.defaultArrowWidth)};Fa.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};mxCellRenderer.registerShape("flexArrow",Fa);mxUtils.extend(Aa,mxActor);Aa.prototype.size=30;Aa.prototype.isRoundable=function(){return!0};-Aa.prototype.getLabelMargins=function(g){return mxUtils.getValue(this.style,"boundedLbl",!1)?(g=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(0,g,0,0)):null};Aa.prototype.redrawPath=function(g,r,C,u,B){r=Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size)));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,B),new mxPoint(0,r),new mxPoint(u,0),new mxPoint(u,B)],this.isRounded,C,-!0);g.end()};mxCellRenderer.registerShape("manualInput",Aa);mxUtils.extend(Ja,mxRectangleShape);Ja.prototype.dx=20;Ja.prototype.dy=20;Ja.prototype.isHtmlAllowed=function(){return!1};Ja.prototype.paintForeground=function(g,r,C,u,B){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var G=0;if(this.isRounded){var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;G=Math.max(G,Math.min(u*I,B*I))}I=Math.max(G,Math.min(u,parseFloat(mxUtils.getValue(this.style,-"dx",this.dx))));G=Math.max(G,Math.min(B,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));g.begin();g.moveTo(r,C+G);g.lineTo(r+u,C+G);g.end();g.stroke();g.begin();g.moveTo(r+I,C);g.lineTo(r+I,C+B);g.end();g.stroke()};mxCellRenderer.registerShape("internalStorage",Ja);mxUtils.extend(Ia,mxActor);Ia.prototype.dx=20;Ia.prototype.dy=20;Ia.prototype.isRoundable=function(){return!0};Ia.prototype.redrawPath=function(g,r,C,u,B){r=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));-C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var G=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,0),new mxPoint(u,0),new mxPoint(u,C),new mxPoint(r,C),new mxPoint(r,B),new mxPoint(0,B)],this.isRounded,G,!0);g.end()};mxCellRenderer.registerShape("corner",Ia);mxUtils.extend(Sa,mxActor);Sa.prototype.redrawPath=function(g,r,C,u,B){g.moveTo(0,-0);g.lineTo(0,B);g.end();g.moveTo(u,0);g.lineTo(u,B);g.end();g.moveTo(0,B/2);g.lineTo(u,B/2);g.end()};mxCellRenderer.registerShape("crossbar",Sa);mxUtils.extend(ab,mxActor);ab.prototype.dx=20;ab.prototype.dy=20;ab.prototype.isRoundable=function(){return!0};ab.prototype.redrawPath=function(g,r,C,u,B){r=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",-this.size));var G=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,0),new mxPoint(u,0),new mxPoint(u,C),new mxPoint((u+r)/2,C),new mxPoint((u+r)/2,B),new mxPoint((u-r)/2,B),new mxPoint((u-r)/2,C),new mxPoint(0,C)],this.isRounded,G,!0);g.end()};mxCellRenderer.registerShape("tee",ab);mxUtils.extend(Va,mxActor);Va.prototype.arrowWidth=.3;Va.prototype.arrowSize=.2;Va.prototype.isRoundable=function(){return!0};Va.prototype.redrawPath=function(g,-r,C,u,B){var G=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth))));r=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize))));C=(B-G)/2;G=C+G;var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,C),new mxPoint(u-r,C),new mxPoint(u-r,0),new mxPoint(u,B/2),new mxPoint(u-r,B),new mxPoint(u-r,G),new mxPoint(0,G)],this.isRounded,I,!0);g.end()};mxCellRenderer.registerShape("singleArrow",-Va);mxUtils.extend(db,mxActor);db.prototype.isRoundable=function(){return!0};db.prototype.redrawPath=function(g,r,C,u,B){var G=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",Va.prototype.arrowWidth))));r=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Va.prototype.arrowSize))));C=(B-G)/2;G=C+G;var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,B/2),new mxPoint(r,0),new mxPoint(r,-C),new mxPoint(u-r,C),new mxPoint(u-r,0),new mxPoint(u,B/2),new mxPoint(u-r,B),new mxPoint(u-r,G),new mxPoint(r,G),new mxPoint(r,B)],this.isRounded,I,!0);g.end()};mxCellRenderer.registerShape("doubleArrow",db);mxUtils.extend(Ea,mxActor);Ea.prototype.size=.1;Ea.prototype.fixedSize=20;Ea.prototype.redrawPath=function(g,r,C,u,B){r="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,-"size",this.size))));g.moveTo(r,0);g.lineTo(u,0);g.quadTo(u-2*r,B/2,u,B);g.lineTo(r,B);g.quadTo(r-2*r,B/2,r,0);g.close();g.end()};mxCellRenderer.registerShape("dataStorage",Ea);mxUtils.extend($a,mxActor);$a.prototype.redrawPath=function(g,r,C,u,B){g.moveTo(0,0);g.quadTo(u,0,u,B/2);g.quadTo(u,B,0,B);g.close();g.end()};mxCellRenderer.registerShape("or",$a);mxUtils.extend(cb,mxActor);cb.prototype.redrawPath=function(g,r,C,u,B){g.moveTo(0,0);g.quadTo(u,0,u,B/2);g.quadTo(u,B,0,B);g.quadTo(u/2,B/2,0,0);-g.close();g.end()};mxCellRenderer.registerShape("xor",cb);mxUtils.extend(Za,mxActor);Za.prototype.size=20;Za.prototype.isRoundable=function(){return!0};Za.prototype.redrawPath=function(g,r,C,u,B){r=Math.min(u/2,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(r,0),new mxPoint(u-r,0),new mxPoint(u,.8*r),new mxPoint(u,B),new mxPoint(0,B),new mxPoint(0,.8*r)],this.isRounded,-C,!0);g.end()};mxCellRenderer.registerShape("loopLimit",Za);mxUtils.extend(eb,mxActor);eb.prototype.size=.375;eb.prototype.isRoundable=function(){return!0};eb.prototype.redrawPath=function(g,r,C,u,B){r=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,0),new mxPoint(u,0),new mxPoint(u,B-r),new mxPoint(u/2,B),new mxPoint(0,B-r)],this.isRounded,C,!0);-g.end()};mxCellRenderer.registerShape("offPageConnector",eb);mxUtils.extend(lb,mxEllipse);lb.prototype.paintVertexShape=function(g,r,C,u,B){mxEllipse.prototype.paintVertexShape.apply(this,arguments);g.begin();g.moveTo(r+u/2,C+B);g.lineTo(r+u,C+B);g.end();g.stroke()};mxCellRenderer.registerShape("tapeData",lb);mxUtils.extend(wb,mxEllipse);wb.prototype.paintVertexShape=function(g,r,C,u,B){mxEllipse.prototype.paintVertexShape.apply(this,arguments);g.setShadow(!1);g.begin();g.moveTo(r,C+B/2);g.lineTo(r+-u,C+B/2);g.end();g.stroke();g.begin();g.moveTo(r+u/2,C);g.lineTo(r+u/2,C+B);g.end();g.stroke()};mxCellRenderer.registerShape("orEllipse",wb);mxUtils.extend(rb,mxEllipse);rb.prototype.paintVertexShape=function(g,r,C,u,B){mxEllipse.prototype.paintVertexShape.apply(this,arguments);g.setShadow(!1);g.begin();g.moveTo(r+.145*u,C+.145*B);g.lineTo(r+.855*u,C+.855*B);g.end();g.stroke();g.begin();g.moveTo(r+.855*u,C+.145*B);g.lineTo(r+.145*u,C+.855*B);g.end();g.stroke()};mxCellRenderer.registerShape("sumEllipse",-rb);mxUtils.extend(xb,mxRhombus);xb.prototype.paintVertexShape=function(g,r,C,u,B){mxRhombus.prototype.paintVertexShape.apply(this,arguments);g.setShadow(!1);g.begin();g.moveTo(r,C+B/2);g.lineTo(r+u,C+B/2);g.end();g.stroke()};mxCellRenderer.registerShape("sortShape",xb);mxUtils.extend(Jb,mxEllipse);Jb.prototype.paintVertexShape=function(g,r,C,u,B){g.begin();g.moveTo(r,C);g.lineTo(r+u,C);g.lineTo(r+u/2,C+B/2);g.close();g.fillAndStroke();g.begin();g.moveTo(r,C+B);g.lineTo(r+u,C+B);g.lineTo(r+u/2,C+-B/2);g.close();g.fillAndStroke()};mxCellRenderer.registerShape("collate",Jb);mxUtils.extend(Fb,mxEllipse);Fb.prototype.paintVertexShape=function(g,r,C,u,B){var G=g.state.strokeWidth/2,I=10+2*G,ba=C+B-I/2;g.begin();g.moveTo(r,C);g.lineTo(r,C+B);g.moveTo(r+G,ba);g.lineTo(r+G+I,ba-I/2);g.moveTo(r+G,ba);g.lineTo(r+G+I,ba+I/2);g.moveTo(r+G,ba);g.lineTo(r+u-G,ba);g.moveTo(r+u,C);g.lineTo(r+u,C+B);g.moveTo(r+u-G,ba);g.lineTo(r+u-I-G,ba-I/2);g.moveTo(r+u-G,ba);g.lineTo(r+u-I-G,ba+I/2);g.end();g.stroke()};-mxCellRenderer.registerShape("dimension",Fb);mxUtils.extend(Tb,mxEllipse);Tb.prototype.drawHidden=!0;Tb.prototype.paintVertexShape=function(g,r,C,u,B){this.outline||g.setStrokeColor(null);if(null!=this.style){var G=g.pointerEvents,I=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||I||(g.pointerEvents=!1);var ba="1"==mxUtils.getValue(this.style,"top","1"),U="1"==mxUtils.getValue(this.style,"left","1"),za="1"==mxUtils.getValue(this.style,-"right","1"),pa="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||I||this.outline||ba||za||pa||U?(g.rect(r,C,u,B),g.fill(),g.pointerEvents=G,g.setStrokeColor(this.stroke),g.setLineCap("square"),g.begin(),g.moveTo(r,C),this.outline||ba?g.lineTo(r+u,C):g.moveTo(r+u,C),this.outline||za?g.lineTo(r+u,C+B):g.moveTo(r+u,C+B),this.outline||pa?g.lineTo(r,C+B):g.moveTo(r,C+B),(this.outline||U)&&g.lineTo(r,C),g.end(),g.stroke(),g.setLineCap("flat")):g.setStrokeColor(this.stroke)}null==this.state||-this.outline||null==this.fill||this.fill==mxConstants.NONE||(G=this.state.view.graph,null!=G.paintTableCellLines&&G.paintTableCellLines(g,this.state.cell,r,C,u,B,this.stroke,this.strokewidth))};mxCellRenderer.registerShape("partialRectangle",Tb);mxUtils.extend(Rb,mxEllipse);Rb.prototype.paintVertexShape=function(g,r,C,u,B){mxEllipse.prototype.paintVertexShape.apply(this,arguments);g.setShadow(!1);g.begin();"vertical"==mxUtils.getValue(this.style,"line")?(g.moveTo(r+u/2,C),g.lineTo(r+u/2,C+B)):(g.moveTo(r,-C+B/2),g.lineTo(r+u,C+B/2));g.end();g.stroke()};mxCellRenderer.registerShape("lineEllipse",Rb);mxUtils.extend($b,mxActor);$b.prototype.redrawPath=function(g,r,C,u,B){r=Math.min(u,B/2);g.moveTo(0,0);g.lineTo(u-r,0);g.quadTo(u,0,u,B/2);g.quadTo(u,B,u-r,B);g.lineTo(0,B);g.close();g.end()};mxCellRenderer.registerShape("delay",$b);mxUtils.extend(Mb,mxActor);Mb.prototype.size=.2;Mb.prototype.redrawPath=function(g,r,C,u,B){r=Math.min(B,u);var G=Math.max(0,Math.min(r,r*parseFloat(mxUtils.getValue(this.style,-"size",this.size))));r=(B-G)/2;C=r+G;var I=(u-G)/2;G=I+G;g.moveTo(0,r);g.lineTo(I,r);g.lineTo(I,0);g.lineTo(G,0);g.lineTo(G,r);g.lineTo(u,r);g.lineTo(u,C);g.lineTo(G,C);g.lineTo(G,B);g.lineTo(I,B);g.lineTo(I,C);g.lineTo(0,C);g.close();g.end()};mxCellRenderer.registerShape("cross",Mb);mxUtils.extend(Wb,mxActor);Wb.prototype.size=.25;Wb.prototype.redrawPath=function(g,r,C,u,B){r=Math.min(u,B/2);C=Math.min(u-r,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*u);g.moveTo(0,B/2);g.lineTo(C,-0);g.lineTo(u-r,0);g.quadTo(u,0,u,B/2);g.quadTo(u,B,u-r,B);g.lineTo(C,B);g.close();g.end()};mxCellRenderer.registerShape("display",Wb);mxUtils.extend(zb,mxActor);zb.prototype.cst={RECT2:"mxgraph.basic.rect"};zb.prototype.customProperties=[{name:"rectStyle",dispName:"Style",type:"enum",defVal:"square",enumList:[{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"size",dispName:"Corner Size",+Aa.prototype.getLabelMargins=function(g){return mxUtils.getValue(this.style,"boundedLbl",!1)?(g=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(0,g,0,0)):null};Aa.prototype.redrawPath=function(g,r,C,v,B){r=Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size)));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,B),new mxPoint(0,r),new mxPoint(v,0),new mxPoint(v,B)],this.isRounded,C,+!0);g.end()};mxCellRenderer.registerShape("manualInput",Aa);mxUtils.extend(Ja,mxRectangleShape);Ja.prototype.dx=20;Ja.prototype.dy=20;Ja.prototype.isHtmlAllowed=function(){return!1};Ja.prototype.paintForeground=function(g,r,C,v,B){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var G=0;if(this.isRounded){var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;G=Math.max(G,Math.min(v*I,B*I))}I=Math.max(G,Math.min(v,parseFloat(mxUtils.getValue(this.style,+"dx",this.dx))));G=Math.max(G,Math.min(B,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));g.begin();g.moveTo(r,C+G);g.lineTo(r+v,C+G);g.end();g.stroke();g.begin();g.moveTo(r+I,C);g.lineTo(r+I,C+B);g.end();g.stroke()};mxCellRenderer.registerShape("internalStorage",Ja);mxUtils.extend(Ia,mxActor);Ia.prototype.dx=20;Ia.prototype.dy=20;Ia.prototype.isRoundable=function(){return!0};Ia.prototype.redrawPath=function(g,r,C,v,B){r=Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));+C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var G=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,0),new mxPoint(v,0),new mxPoint(v,C),new mxPoint(r,C),new mxPoint(r,B),new mxPoint(0,B)],this.isRounded,G,!0);g.end()};mxCellRenderer.registerShape("corner",Ia);mxUtils.extend(Sa,mxActor);Sa.prototype.redrawPath=function(g,r,C,v,B){g.moveTo(0,+0);g.lineTo(0,B);g.end();g.moveTo(v,0);g.lineTo(v,B);g.end();g.moveTo(0,B/2);g.lineTo(v,B/2);g.end()};mxCellRenderer.registerShape("crossbar",Sa);mxUtils.extend(ab,mxActor);ab.prototype.dx=20;ab.prototype.dy=20;ab.prototype.isRoundable=function(){return!0};ab.prototype.redrawPath=function(g,r,C,v,B){r=Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",+this.size));var G=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,0),new mxPoint(v,0),new mxPoint(v,C),new mxPoint((v+r)/2,C),new mxPoint((v+r)/2,B),new mxPoint((v-r)/2,B),new mxPoint((v-r)/2,C),new mxPoint(0,C)],this.isRounded,G,!0);g.end()};mxCellRenderer.registerShape("tee",ab);mxUtils.extend(Va,mxActor);Va.prototype.arrowWidth=.3;Va.prototype.arrowSize=.2;Va.prototype.isRoundable=function(){return!0};Va.prototype.redrawPath=function(g,+r,C,v,B){var G=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth))));r=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize))));C=(B-G)/2;G=C+G;var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,C),new mxPoint(v-r,C),new mxPoint(v-r,0),new mxPoint(v,B/2),new mxPoint(v-r,B),new mxPoint(v-r,G),new mxPoint(0,G)],this.isRounded,I,!0);g.end()};mxCellRenderer.registerShape("singleArrow",+Va);mxUtils.extend(db,mxActor);db.prototype.isRoundable=function(){return!0};db.prototype.redrawPath=function(g,r,C,v,B){var G=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",Va.prototype.arrowWidth))));r=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Va.prototype.arrowSize))));C=(B-G)/2;G=C+G;var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,B/2),new mxPoint(r,0),new mxPoint(r,+C),new mxPoint(v-r,C),new mxPoint(v-r,0),new mxPoint(v,B/2),new mxPoint(v-r,B),new mxPoint(v-r,G),new mxPoint(r,G),new mxPoint(r,B)],this.isRounded,I,!0);g.end()};mxCellRenderer.registerShape("doubleArrow",db);mxUtils.extend(Ea,mxActor);Ea.prototype.size=.1;Ea.prototype.fixedSize=20;Ea.prototype.redrawPath=function(g,r,C,v,B){r="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,+"size",this.size))));g.moveTo(r,0);g.lineTo(v,0);g.quadTo(v-2*r,B/2,v,B);g.lineTo(r,B);g.quadTo(r-2*r,B/2,r,0);g.close();g.end()};mxCellRenderer.registerShape("dataStorage",Ea);mxUtils.extend($a,mxActor);$a.prototype.redrawPath=function(g,r,C,v,B){g.moveTo(0,0);g.quadTo(v,0,v,B/2);g.quadTo(v,B,0,B);g.close();g.end()};mxCellRenderer.registerShape("or",$a);mxUtils.extend(cb,mxActor);cb.prototype.redrawPath=function(g,r,C,v,B){g.moveTo(0,0);g.quadTo(v,0,v,B/2);g.quadTo(v,B,0,B);g.quadTo(v/2,B/2,0,0);+g.close();g.end()};mxCellRenderer.registerShape("xor",cb);mxUtils.extend(Za,mxActor);Za.prototype.size=20;Za.prototype.isRoundable=function(){return!0};Za.prototype.redrawPath=function(g,r,C,v,B){r=Math.min(v/2,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(r,0),new mxPoint(v-r,0),new mxPoint(v,.8*r),new mxPoint(v,B),new mxPoint(0,B),new mxPoint(0,.8*r)],this.isRounded,+C,!0);g.end()};mxCellRenderer.registerShape("loopLimit",Za);mxUtils.extend(eb,mxActor);eb.prototype.size=.375;eb.prototype.isRoundable=function(){return!0};eb.prototype.redrawPath=function(g,r,C,v,B){r=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,0),new mxPoint(v,0),new mxPoint(v,B-r),new mxPoint(v/2,B),new mxPoint(0,B-r)],this.isRounded,C,!0);+g.end()};mxCellRenderer.registerShape("offPageConnector",eb);mxUtils.extend(lb,mxEllipse);lb.prototype.paintVertexShape=function(g,r,C,v,B){mxEllipse.prototype.paintVertexShape.apply(this,arguments);g.begin();g.moveTo(r+v/2,C+B);g.lineTo(r+v,C+B);g.end();g.stroke()};mxCellRenderer.registerShape("tapeData",lb);mxUtils.extend(wb,mxEllipse);wb.prototype.paintVertexShape=function(g,r,C,v,B){mxEllipse.prototype.paintVertexShape.apply(this,arguments);g.setShadow(!1);g.begin();g.moveTo(r,C+B/2);g.lineTo(r++v,C+B/2);g.end();g.stroke();g.begin();g.moveTo(r+v/2,C);g.lineTo(r+v/2,C+B);g.end();g.stroke()};mxCellRenderer.registerShape("orEllipse",wb);mxUtils.extend(rb,mxEllipse);rb.prototype.paintVertexShape=function(g,r,C,v,B){mxEllipse.prototype.paintVertexShape.apply(this,arguments);g.setShadow(!1);g.begin();g.moveTo(r+.145*v,C+.145*B);g.lineTo(r+.855*v,C+.855*B);g.end();g.stroke();g.begin();g.moveTo(r+.855*v,C+.145*B);g.lineTo(r+.145*v,C+.855*B);g.end();g.stroke()};mxCellRenderer.registerShape("sumEllipse",+rb);mxUtils.extend(xb,mxRhombus);xb.prototype.paintVertexShape=function(g,r,C,v,B){mxRhombus.prototype.paintVertexShape.apply(this,arguments);g.setShadow(!1);g.begin();g.moveTo(r,C+B/2);g.lineTo(r+v,C+B/2);g.end();g.stroke()};mxCellRenderer.registerShape("sortShape",xb);mxUtils.extend(Jb,mxEllipse);Jb.prototype.paintVertexShape=function(g,r,C,v,B){g.begin();g.moveTo(r,C);g.lineTo(r+v,C);g.lineTo(r+v/2,C+B/2);g.close();g.fillAndStroke();g.begin();g.moveTo(r,C+B);g.lineTo(r+v,C+B);g.lineTo(r+v/2,C++B/2);g.close();g.fillAndStroke()};mxCellRenderer.registerShape("collate",Jb);mxUtils.extend(Fb,mxEllipse);Fb.prototype.paintVertexShape=function(g,r,C,v,B){var G=g.state.strokeWidth/2,I=10+2*G,ba=C+B-I/2;g.begin();g.moveTo(r,C);g.lineTo(r,C+B);g.moveTo(r+G,ba);g.lineTo(r+G+I,ba-I/2);g.moveTo(r+G,ba);g.lineTo(r+G+I,ba+I/2);g.moveTo(r+G,ba);g.lineTo(r+v-G,ba);g.moveTo(r+v,C);g.lineTo(r+v,C+B);g.moveTo(r+v-G,ba);g.lineTo(r+v-I-G,ba-I/2);g.moveTo(r+v-G,ba);g.lineTo(r+v-I-G,ba+I/2);g.end();g.stroke()};+mxCellRenderer.registerShape("dimension",Fb);mxUtils.extend(Tb,mxEllipse);Tb.prototype.drawHidden=!0;Tb.prototype.paintVertexShape=function(g,r,C,v,B){this.outline||g.setStrokeColor(null);if(null!=this.style){var G=g.pointerEvents,I=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||I||(g.pointerEvents=!1);var ba="1"==mxUtils.getValue(this.style,"top","1"),U="1"==mxUtils.getValue(this.style,"left","1"),za="1"==mxUtils.getValue(this.style,+"right","1"),pa="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||I||this.outline||ba||za||pa||U?(g.rect(r,C,v,B),g.fill(),g.pointerEvents=G,g.setStrokeColor(this.stroke),g.setLineCap("square"),g.begin(),g.moveTo(r,C),this.outline||ba?g.lineTo(r+v,C):g.moveTo(r+v,C),this.outline||za?g.lineTo(r+v,C+B):g.moveTo(r+v,C+B),this.outline||pa?g.lineTo(r,C+B):g.moveTo(r,C+B),(this.outline||U)&&g.lineTo(r,C),g.end(),g.stroke(),g.setLineCap("flat")):g.setStrokeColor(this.stroke)}null==this.state||+this.outline||null==this.fill||this.fill==mxConstants.NONE||(G=this.state.view.graph,null!=G.paintTableCellLines&&G.paintTableCellLines(g,this.state.cell,r,C,v,B,this.stroke,this.strokewidth))};mxCellRenderer.registerShape("partialRectangle",Tb);mxUtils.extend(Rb,mxEllipse);Rb.prototype.paintVertexShape=function(g,r,C,v,B){mxEllipse.prototype.paintVertexShape.apply(this,arguments);g.setShadow(!1);g.begin();"vertical"==mxUtils.getValue(this.style,"line")?(g.moveTo(r+v/2,C),g.lineTo(r+v/2,C+B)):(g.moveTo(r,+C+B/2),g.lineTo(r+v,C+B/2));g.end();g.stroke()};mxCellRenderer.registerShape("lineEllipse",Rb);mxUtils.extend($b,mxActor);$b.prototype.redrawPath=function(g,r,C,v,B){r=Math.min(v,B/2);g.moveTo(0,0);g.lineTo(v-r,0);g.quadTo(v,0,v,B/2);g.quadTo(v,B,v-r,B);g.lineTo(0,B);g.close();g.end()};mxCellRenderer.registerShape("delay",$b);mxUtils.extend(Mb,mxActor);Mb.prototype.size=.2;Mb.prototype.redrawPath=function(g,r,C,v,B){r=Math.min(B,v);var G=Math.max(0,Math.min(r,r*parseFloat(mxUtils.getValue(this.style,+"size",this.size))));r=(B-G)/2;C=r+G;var I=(v-G)/2;G=I+G;g.moveTo(0,r);g.lineTo(I,r);g.lineTo(I,0);g.lineTo(G,0);g.lineTo(G,r);g.lineTo(v,r);g.lineTo(v,C);g.lineTo(G,C);g.lineTo(G,B);g.lineTo(I,B);g.lineTo(I,C);g.lineTo(0,C);g.close();g.end()};mxCellRenderer.registerShape("cross",Mb);mxUtils.extend(Wb,mxActor);Wb.prototype.size=.25;Wb.prototype.redrawPath=function(g,r,C,v,B){r=Math.min(v,B/2);C=Math.min(v-r,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*v);g.moveTo(0,B/2);g.lineTo(C,+0);g.lineTo(v-r,0);g.quadTo(v,0,v,B/2);g.quadTo(v,B,v-r,B);g.lineTo(C,B);g.close();g.end()};mxCellRenderer.registerShape("display",Wb);mxUtils.extend(zb,mxActor);zb.prototype.cst={RECT2:"mxgraph.basic.rect"};zb.prototype.customProperties=[{name:"rectStyle",dispName:"Style",type:"enum",defVal:"square",enumList:[{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"size",dispName:"Corner Size",type:"float",defVal:10},{name:"absoluteCornerSize",dispName:"Abs. Corner Size",type:"bool",defVal:!0},{name:"indent",dispName:"Indent",type:"float",defVal:2},{name:"rectOutline",dispName:"Outline",type:"enum",defVal:"single",enumList:[{val:"single",dispName:"Single"},{val:"double",dispName:"Double"},{val:"frame",dispName:"Frame"}]},{name:"fillColor2",dispName:"Inside Fill Color",type:"color",defVal:"none"},{name:"gradientColor2",dispName:"Inside Gradient Color",type:"color",defVal:"none"},{name:"gradientDirection2",dispName:"Inside Gradient Direction",type:"enum",defVal:"south",enumList:[{val:"south",dispName:"South"},{val:"west",dispName:"West"},{val:"north",dispName:"North"},{val:"east",dispName:"East"}]},{name:"top",dispName:"Top Line",type:"bool",defVal:!0},{name:"right",dispName:"Right",type:"bool",defVal:!0},{name:"bottom",dispName:"Bottom Line",type:"bool",defVal:!0},{name:"left",dispName:"Left ",type:"bool",defVal:!0},{name:"topLeftStyle",dispName:"Top Left Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"topRightStyle",dispName:"Top Right Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"bottomRightStyle",dispName:"Bottom Right Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"bottomLeftStyle",dispName:"Bottom Left Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",-dispName:"Fold"}]}];zb.prototype.paintVertexShape=function(g,r,C,u,B){g.translate(r,C);this.strictDrawShape(g,0,0,u,B)};zb.prototype.strictDrawShape=function(g,r,C,u,B,G){var I=G&&G.rectStyle?G.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),ba=G&&G.absoluteCornerSize?G.absoluteCornerSize:mxUtils.getValue(this.style,"absoluteCornerSize",this.absoluteCornerSize),U=G&&G.size?G.size:Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),za=G&&G.rectOutline?-G.rectOutline:mxUtils.getValue(this.style,"rectOutline",this.rectOutline),pa=G&&G.indent?G.indent:Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"indent",this.indent)))),Wa=G&&G.dashed?G.dashed:mxUtils.getValue(this.style,"dashed",!1),ub=G&&G.dashPattern?G.dashPattern:mxUtils.getValue(this.style,"dashPattern",null),jb=G&&G.relIndent?G.relIndent:Math.max(0,Math.min(50,pa)),Ra=G&&G.top?G.top:mxUtils.getValue(this.style,"top",!0),Ua=G&&G.right?G.right:mxUtils.getValue(this.style,"right",+dispName:"Fold"}]}];zb.prototype.paintVertexShape=function(g,r,C,v,B){g.translate(r,C);this.strictDrawShape(g,0,0,v,B)};zb.prototype.strictDrawShape=function(g,r,C,v,B,G){var I=G&&G.rectStyle?G.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),ba=G&&G.absoluteCornerSize?G.absoluteCornerSize:mxUtils.getValue(this.style,"absoluteCornerSize",this.absoluteCornerSize),U=G&&G.size?G.size:Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),za=G&&G.rectOutline?+G.rectOutline:mxUtils.getValue(this.style,"rectOutline",this.rectOutline),pa=G&&G.indent?G.indent:Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"indent",this.indent)))),Wa=G&&G.dashed?G.dashed:mxUtils.getValue(this.style,"dashed",!1),ub=G&&G.dashPattern?G.dashPattern:mxUtils.getValue(this.style,"dashPattern",null),jb=G&&G.relIndent?G.relIndent:Math.max(0,Math.min(50,pa)),Ra=G&&G.top?G.top:mxUtils.getValue(this.style,"top",!0),Ua=G&&G.right?G.right:mxUtils.getValue(this.style,"right",!0),Pa=G&&G.bottom?G.bottom:mxUtils.getValue(this.style,"bottom",!0),Xa=G&&G.left?G.left:mxUtils.getValue(this.style,"left",!0),fb=G&&G.topLeftStyle?G.topLeftStyle:mxUtils.getValue(this.style,"topLeftStyle","default"),mb=G&&G.topRightStyle?G.topRightStyle:mxUtils.getValue(this.style,"topRightStyle","default"),ob=G&&G.bottomRightStyle?G.bottomRightStyle:mxUtils.getValue(this.style,"bottomRightStyle","default"),nb=G&&G.bottomLeftStyle?G.bottomLeftStyle:mxUtils.getValue(this.style,"bottomLeftStyle","default"),ec=G&&G.fillColor?G.fillColor:mxUtils.getValue(this.style,"fillColor","#ffffff");G&&G.strokeColor||mxUtils.getValue(this.style,"strokeColor","#000000");var hc=G&&G.strokeWidth?G.strokeWidth:mxUtils.getValue(this.style,"strokeWidth","1"),fc=G&&G.fillColor2?G.fillColor2:mxUtils.getValue(this.style,"fillColor2","none"),gc=G&&G.gradientColor2?G.gradientColor2:mxUtils.getValue(this.style,"gradientColor2","none"),ic=G&&G.gradientDirection2?G.gradientDirection2:mxUtils.getValue(this.style,"gradientDirection2",-"south"),jc=G&&G.opacity?G.opacity:mxUtils.getValue(this.style,"opacity","100"),kc=Math.max(0,Math.min(50,U));G=zb.prototype;g.setDashed(Wa);ub&&""!=ub&&g.setDashPattern(ub);g.setStrokeWidth(hc);U=Math.min(.5*B,.5*u,U);ba||(U=kc*Math.min(u,B)/100);U=Math.min(U,.5*Math.min(u,B));ba||(pa=Math.min(jb*Math.min(u,B)/100));pa=Math.min(pa,.5*Math.min(u,B)-U);(Ra||Ua||Pa||Xa)&&"frame"!=za&&(g.begin(),Ra?G.moveNW(g,r,C,u,B,I,fb,U,Xa):g.moveTo(0,0),Ra&&G.paintNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,-mb,U,Ua),Ua&&G.paintNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),Pa&&G.paintSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),Xa&&G.paintSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),g.close(),g.fill(),g.setShadow(!1),g.setFillColor(fc),Wa=ba=jc,"none"==fc&&(ba=0),"none"==gc&&(Wa=0),g.setGradient(fc,gc,0,0,u,B,ic,ba,Wa),g.begin(),Ra?G.moveNWInner(g,r,C,u,B,I,fb,U,pa,Ra,Xa):g.moveTo(pa,0),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),Xa&&Pa&&G.paintSWInner(g,r,C,u,B,-I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),Pa&&Ua&&G.paintSEInner(g,r,C,u,B,I,ob,U,pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),Ua&&Ra&&G.paintNEInner(g,r,C,u,B,I,mb,U,pa),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),Ra&&Xa&&G.paintNWInner(g,r,C,u,B,I,fb,U,pa),g.fill(),"none"==ec&&(g.begin(),G.paintFolds(g,r,C,u,B,I,fb,mb,ob,nb,U,Ra,Ua,Pa,Xa),g.stroke()));Ra||Ua||Pa||!Xa?Ra||Ua||!Pa||Xa?!Ra&&!Ua&&Pa&&Xa?"frame"!=za?(g.begin(),G.moveSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,-B,I,nb,U,Xa),G.paintSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),"double"==za&&(G.moveNWInner(g,r,C,u,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,r,C,u,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa)),g.stroke()):(g.begin(),G.moveSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.paintSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),G.lineNWInner(g,r,C,u,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,-r,C,u,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),g.close(),g.fillAndStroke()):Ra||!Ua||Pa||Xa?!Ra&&Ua&&!Pa&&Xa?"frame"!=za?(g.begin(),G.moveSW(g,r,C,u,B,I,fb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),"double"==za&&(G.moveNWInner(g,r,C,u,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa)),g.stroke(),g.begin(),G.moveNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),"double"==za&&(G.moveSEInner(g,r,C,u,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua)),-g.stroke()):(g.begin(),G.moveSW(g,r,C,u,B,I,fb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),G.lineNWInner(g,r,C,u,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),g.close(),g.fillAndStroke(),g.begin(),G.moveNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.lineSEInner(g,r,C,u,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),g.close(),g.fillAndStroke()):!Ra&&Ua&&Pa&&!Xa?"frame"!=za?(g.begin(),G.moveNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.paintSE(g,-r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),"double"==za&&(G.moveSWInner(g,r,C,u,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,u,B,I,ob,U,pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua)),g.stroke()):(g.begin(),G.moveNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.paintSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.lineSWInner(g,r,C,u,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,u,B,I,ob,-U,pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),g.close(),g.fillAndStroke()):!Ra&&Ua&&Pa&&Xa?"frame"!=za?(g.begin(),G.moveNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.paintSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.paintSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),"double"==za&&(G.moveNWInner(g,r,C,u,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,r,C,u,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,-r,C,u,B,I,ob,U,pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua)),g.stroke()):(g.begin(),G.moveNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.paintSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.paintSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),G.lineNWInner(g,r,C,u,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,r,C,u,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,u,B,I,ob,U,pa),G.paintRightInner(g,-r,C,u,B,I,mb,U,pa,Ra,Ua),g.close(),g.fillAndStroke()):!Ra||Ua||Pa||Xa?Ra&&!Ua&&!Pa&&Xa?"frame"!=za?(g.begin(),G.moveSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),G.paintNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),"double"==za&&(G.moveNEInner(g,r,C,u,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,u,B,I,fb,U,pa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa)),g.stroke()):(g.begin(),G.moveSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),G.paintNW(g,-r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.lineNEInner(g,r,C,u,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,u,B,I,fb,U,pa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),g.close(),g.fillAndStroke()):Ra&&!Ua&&Pa&&!Xa?"frame"!=za?(g.begin(),G.moveNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),"double"==za&&(G.moveNEInner(g,r,C,u,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra)),g.stroke(),g.begin(),G.moveSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,-r,C,u,B,I,nb,U,Xa),"double"==za&&(G.moveSWInner(g,r,C,u,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa)),g.stroke()):(g.begin(),G.moveNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.lineNEInner(g,r,C,u,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),g.close(),g.fillAndStroke(),g.begin(),G.moveSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.lineSWInner(g,r,C,u,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),g.close(),g.fillAndStroke()):-Ra&&!Ua&&Pa&&Xa?"frame"!=za?(g.begin(),G.moveSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.paintSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),G.paintNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),"double"==za&&(G.moveNEInner(g,r,C,u,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,u,B,I,fb,U,pa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,r,C,u,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa)),g.stroke()):-(g.begin(),G.moveSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.paintSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),G.paintNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.lineNEInner(g,r,C,u,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,u,B,I,fb,U,pa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,r,C,u,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),g.close(),g.fillAndStroke()):Ra&&Ua&&!Pa&&!Xa?"frame"!=-za?(g.begin(),G.moveNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.paintNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),"double"==za&&(G.moveSEInner(g,r,C,u,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,u,B,I,mb,U,pa),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra)),g.stroke()):(g.begin(),G.moveNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.paintNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.lineSEInner(g,r,C,u,B,I,ob,U,pa,-Pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,u,B,I,mb,U,pa),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),g.close(),g.fillAndStroke()):Ra&&Ua&&!Pa&&Xa?"frame"!=za?(g.begin(),G.moveSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),G.paintNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.paintNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),"double"==za&&(G.moveSEInner(g,r,C,u,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,-r,C,u,B,I,mb,U,pa),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,u,B,I,fb,U,pa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa)),g.stroke()):(g.begin(),G.moveSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),G.paintNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.paintNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.lineSEInner(g,r,C,u,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,u,B,I,mb,U,pa),G.paintTopInner(g,r,C,u,B,-I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,u,B,I,fb,U,pa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),g.close(),g.fillAndStroke()):Ra&&Ua&&Pa&&!Xa?"frame"!=za?(g.begin(),G.moveNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.paintNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.paintSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),"double"==za&&(G.moveSWInner(g,r,C,u,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,u,B,I,ob,U,pa),G.paintRightInner(g,-r,C,u,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,u,B,I,mb,U,pa),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra)),g.stroke()):(g.begin(),G.moveNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.paintNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.paintSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.lineSWInner(g,r,C,u,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,u,B,I,ob,U,pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,-r,C,u,B,I,mb,U,pa),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),g.close(),g.fillAndStroke()):Ra&&Ua&&Pa&&Xa&&("frame"!=za?(g.begin(),G.moveNW(g,r,C,u,B,I,fb,U,Xa),G.paintNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.paintNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.paintSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.paintSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),g.close(),"double"==za&&(G.moveSWInner(g,r,C,u,B,I,nb,U,pa,Xa),G.paintSWInner(g,r,-C,u,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,u,B,I,ob,U,pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,u,B,I,mb,U,pa),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,u,B,I,fb,U,pa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),g.close()),g.stroke()):(g.begin(),G.moveNW(g,r,C,u,B,I,fb,U,Xa),G.paintNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.paintNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.paintSE(g,-r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.paintSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),g.close(),G.moveSWInner(g,r,C,u,B,I,nb,U,pa,Xa),G.paintSWInner(g,r,C,u,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,u,B,I,ob,U,pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,u,B,I,mb,U,pa),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,u,B,I,fb,U,pa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),g.close(),-g.fillAndStroke())):"frame"!=za?(g.begin(),G.moveNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),"double"==za&&(G.moveNEInner(g,r,C,u,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra)),g.stroke()):(g.begin(),G.moveNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.lineNEInner(g,r,C,u,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),g.close(),g.fillAndStroke()):"frame"!=za?(g.begin(),G.moveNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),"double"==za&&(G.moveSEInner(g,-r,C,u,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua)),g.stroke()):(g.begin(),G.moveNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.lineSEInner(g,r,C,u,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),g.close(),g.fillAndStroke()):"frame"!=za?(g.begin(),G.moveSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),"double"==za&&(G.moveSWInner(g,r,C,u,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa)),g.stroke()):(g.begin(),G.moveSE(g,r,C,u,B,I,ob,-U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.lineSWInner(g,r,C,u,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),g.close(),g.fillAndStroke()):"frame"!=za?(g.begin(),G.moveSW(g,r,C,u,B,I,fb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),"double"==za&&(G.moveNWInner(g,r,C,u,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa)),g.stroke()):(g.begin(),G.moveSW(g,r,C,u,B,I,fb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),G.lineNWInner(g,r,C,u,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,u,B,I,nb,U,-pa,Pa,Xa),g.close(),g.fillAndStroke());g.begin();G.paintFolds(g,r,C,u,B,I,fb,mb,ob,nb,U,Ra,Ua,Pa,Xa);g.stroke()};zb.prototype.moveNW=function(g,r,C,u,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.moveTo(0,0):g.moveTo(0,ba)};zb.prototype.moveNE=function(g,r,C,u,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.moveTo(u,0):g.moveTo(u-ba,0)};zb.prototype.moveSE=function(g,r,C,u,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.moveTo(u,B):g.moveTo(u,B-ba)};zb.prototype.moveSW=-function(g,r,C,u,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.moveTo(0,B):g.moveTo(ba,B)};zb.prototype.paintNW=function(g,r,C,u,B,G,I,ba,U){if(U)if("rounded"==I||"default"==I&&"rounded"==G||"invRound"==I||"default"==I&&"invRound"==G){r=0;if("rounded"==I||"default"==I&&"rounded"==G)r=1;g.arcTo(ba,ba,0,0,r,ba,0)}else("snip"==I||"default"==I&&"snip"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(ba,0);else g.lineTo(0,0)};zb.prototype.paintTop=function(g,r,C,u,B,G,I,ba,U){"square"==I||-"default"==I&&"square"==G||!U?g.lineTo(u,0):g.lineTo(u-ba,0)};zb.prototype.paintNE=function(g,r,C,u,B,G,I,ba,U){if(U)if("rounded"==I||"default"==I&&"rounded"==G||"invRound"==I||"default"==I&&"invRound"==G){r=0;if("rounded"==I||"default"==I&&"rounded"==G)r=1;g.arcTo(ba,ba,0,0,r,u,ba)}else("snip"==I||"default"==I&&"snip"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(u,ba);else g.lineTo(u,0)};zb.prototype.paintRight=function(g,r,C,u,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.lineTo(u,-B):g.lineTo(u,B-ba)};zb.prototype.paintLeft=function(g,r,C,u,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.lineTo(0,0):g.lineTo(0,ba)};zb.prototype.paintSE=function(g,r,C,u,B,G,I,ba,U){if(U)if("rounded"==I||"default"==I&&"rounded"==G||"invRound"==I||"default"==I&&"invRound"==G){r=0;if("rounded"==I||"default"==I&&"rounded"==G)r=1;g.arcTo(ba,ba,0,0,r,u-ba,B)}else("snip"==I||"default"==I&&"snip"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(u-ba,B);else g.lineTo(u,B)};zb.prototype.paintBottom=-function(g,r,C,u,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.lineTo(0,B):g.lineTo(ba,B)};zb.prototype.paintSW=function(g,r,C,u,B,G,I,ba,U){if(U)if("rounded"==I||"default"==I&&"rounded"==G||"invRound"==I||"default"==I&&"invRound"==G){r=0;if("rounded"==I||"default"==I&&"rounded"==G)r=1;g.arcTo(ba,ba,0,0,r,0,B-ba)}else("snip"==I||"default"==I&&"snip"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(0,B-ba);else g.lineTo(0,B)};zb.prototype.paintNWInner=function(g,r,C,u,B,G,I,ba,U){if("rounded"==-I||"default"==I&&"rounded"==G)g.arcTo(ba-.5*U,ba-.5*U,0,0,0,U,.5*U+ba);else if("invRound"==I||"default"==I&&"invRound"==G)g.arcTo(ba+U,ba+U,0,0,1,U,U+ba);else if("snip"==I||"default"==I&&"snip"==G)g.lineTo(U,.5*U+ba);else if("fold"==I||"default"==I&&"fold"==G)g.lineTo(U+ba,U+ba),g.lineTo(U,U+ba)};zb.prototype.paintTopInner=function(g,r,C,u,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.lineTo(0,U):za&&!pa?g.lineTo(U,0):za?"square"==I||"default"==I&&"square"==G?g.lineTo(U,U):"rounded"==I||"default"==I&&"rounded"==-G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(ba+.5*U,U):g.lineTo(ba+U,U):g.lineTo(0,U):g.lineTo(0,0)};zb.prototype.paintNEInner=function(g,r,C,u,B,G,I,ba,U){if("rounded"==I||"default"==I&&"rounded"==G)g.arcTo(ba-.5*U,ba-.5*U,0,0,0,u-ba-.5*U,U);else if("invRound"==I||"default"==I&&"invRound"==G)g.arcTo(ba+U,ba+U,0,0,1,u-ba-U,U);else if("snip"==I||"default"==I&&"snip"==G)g.lineTo(u-ba-.5*U,U);else if("fold"==I||"default"==I&&"fold"==G)g.lineTo(u-ba-U,ba+U),g.lineTo(u-ba-U,U)};zb.prototype.paintRightInner=-function(g,r,C,u,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.lineTo(u-U,0):za&&!pa?g.lineTo(u,U):za?"square"==I||"default"==I&&"square"==G?g.lineTo(u-U,U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(u-U,ba+.5*U):g.lineTo(u-U,ba+U):g.lineTo(u-U,0):g.lineTo(u,0)};zb.prototype.paintLeftInner=function(g,r,C,u,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.lineTo(U,B):za&&!pa?g.lineTo(0,B-U):za?"square"==I||"default"==I&&"square"==G?g.lineTo(U,B-U):"rounded"==I||"default"==I&&"rounded"==-G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(U,B-ba-.5*U):g.lineTo(U,B-ba-U):g.lineTo(U,B):g.lineTo(0,B)};zb.prototype.paintSEInner=function(g,r,C,u,B,G,I,ba,U){if("rounded"==I||"default"==I&&"rounded"==G)g.arcTo(ba-.5*U,ba-.5*U,0,0,0,u-U,B-ba-.5*U);else if("invRound"==I||"default"==I&&"invRound"==G)g.arcTo(ba+U,ba+U,0,0,1,u-U,B-ba-U);else if("snip"==I||"default"==I&&"snip"==G)g.lineTo(u-U,B-ba-.5*U);else if("fold"==I||"default"==I&&"fold"==G)g.lineTo(u-ba-U,B-ba-U),g.lineTo(u-U,B-ba-U)};zb.prototype.paintBottomInner=-function(g,r,C,u,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.lineTo(u,B-U):za&&!pa?g.lineTo(u-U,B):"square"==I||"default"==I&&"square"==G||!za?g.lineTo(u-U,B-U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(u-ba-.5*U,B-U):g.lineTo(u-ba-U,B-U):g.lineTo(u,B)};zb.prototype.paintSWInner=function(g,r,C,u,B,G,I,ba,U,za){if(!za)g.lineTo(U,B);else if("square"==I||"default"==I&&"square"==G)g.lineTo(U,B-U);else if("rounded"==I||"default"==I&&"rounded"==G)g.arcTo(ba-.5*U,ba-.5*-U,0,0,0,ba+.5*U,B-U);else if("invRound"==I||"default"==I&&"invRound"==G)g.arcTo(ba+U,ba+U,0,0,1,ba+U,B-U);else if("snip"==I||"default"==I&&"snip"==G)g.lineTo(ba+.5*U,B-U);else if("fold"==I||"default"==I&&"fold"==G)g.lineTo(U+ba,B-ba-U),g.lineTo(U+ba,B-U)};zb.prototype.moveSWInner=function(g,r,C,u,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==G?g.moveTo(U,B-U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.moveTo(U,B-ba-.5*U):("invRound"==I||"default"==I&&"invRound"==-G||"fold"==I||"default"==I&&"fold"==G)&&g.moveTo(U,B-ba-U):g.moveTo(0,B-U)};zb.prototype.lineSWInner=function(g,r,C,u,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==G?g.lineTo(U,B-U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(U,B-ba-.5*U):("invRound"==I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(U,B-ba-U):g.lineTo(0,B-U)};zb.prototype.moveSEInner=function(g,r,C,u,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==-G?g.moveTo(u-U,B-U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.moveTo(u-U,B-ba-.5*U):("invRound"==I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.moveTo(u-U,B-ba-U):g.moveTo(u-U,B)};zb.prototype.lineSEInner=function(g,r,C,u,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==G?g.lineTo(u-U,B-U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(u-U,B-ba-.5*U):("invRound"==I||"default"==I&&"invRound"==-G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(u-U,B-ba-U):g.lineTo(u-U,B)};zb.prototype.moveNEInner=function(g,r,C,u,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==G||za?g.moveTo(u-U,U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.moveTo(u-U,ba+.5*U):("invRound"==I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.moveTo(u-U,ba+U):g.moveTo(u,U)};zb.prototype.lineNEInner=function(g,r,C,u,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==-G||za?g.lineTo(u-U,U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(u-U,ba+.5*U):("invRound"==I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(u-U,ba+U):g.lineTo(u,U)};zb.prototype.moveNWInner=function(g,r,C,u,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.moveTo(U,0):za&&!pa?g.moveTo(0,U):"square"==I||"default"==I&&"square"==G?g.moveTo(U,U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.moveTo(U,ba+.5*U):("invRound"==-I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.moveTo(U,ba+U):g.moveTo(0,0)};zb.prototype.lineNWInner=function(g,r,C,u,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.lineTo(U,0):za&&!pa?g.lineTo(0,U):"square"==I||"default"==I&&"square"==G?g.lineTo(U,U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(U,ba+.5*U):("invRound"==I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(U,ba+U):g.lineTo(0,0)};zb.prototype.paintFolds=function(g,-r,C,u,B,G,I,ba,U,za,pa,Wa,ub,jb,Ra){if("fold"==G||"fold"==I||"fold"==ba||"fold"==U||"fold"==za)("fold"==I||"default"==I&&"fold"==G)&&Wa&&Ra&&(g.moveTo(0,pa),g.lineTo(pa,pa),g.lineTo(pa,0)),("fold"==ba||"default"==ba&&"fold"==G)&&Wa&&ub&&(g.moveTo(u-pa,0),g.lineTo(u-pa,pa),g.lineTo(u,pa)),("fold"==U||"default"==U&&"fold"==G)&&jb&&ub&&(g.moveTo(u-pa,B),g.lineTo(u-pa,B-pa),g.lineTo(u,B-pa)),("fold"==za||"default"==za&&"fold"==G)&&jb&&Ra&&(g.moveTo(0,B-pa),g.lineTo(pa,B-pa),g.lineTo(pa,B))};mxCellRenderer.registerShape(zb.prototype.cst.RECT2,-zb);zb.prototype.constraints=null;mxUtils.extend(Ub,mxConnector);Ub.prototype.origPaintEdgeShape=Ub.prototype.paintEdgeShape;Ub.prototype.paintEdgeShape=function(g,r){for(var C=[],u=0;u<r.length;u++)C.push(mxUtils.clone(r[u]));u=g.state.dashed;var B=g.state.fixDash;Ub.prototype.origPaintEdgeShape.apply(this,[g,C]);3<=g.state.strokeWidth&&(C=mxUtils.getValue(this.style,"fillColor",null),null!=C&&(g.setStrokeColor(C),g.setStrokeWidth(g.state.strokeWidth-2),g.setDashed(u,B),Ub.prototype.origPaintEdgeShape.apply(this,-[g,r])))};mxCellRenderer.registerShape("filledEdge",Ub);mxUtils.extend(Lb,mxConnector);Lb.prototype.defaultWidth=4;Lb.prototype.getEdgeWidth=function(){return Math.max(0,mxUtils.getNumber(this.style,"width",this.defaultWidth))};Lb.prototype.getFlowAnimationPath=function(){return mxShape.prototype.getFlowAnimationPath.call(this,2)||mxShape.prototype.getFlowAnimationPath.call(this)};Lb.prototype.origPaintEdgeShape=Lb.prototype.paintEdgeShape;Lb.prototype.paintEdgeShape=function(g,r){for(var C=[],u=-0;u<r.length;u++)C.push(mxUtils.clone(r[u]));u=g.state.dashed;var B=g.state.fixDash,G=this.getEdgeWidth();g.setStrokeWidth(G+2*this.strokewidth);g.setDashed(!1);Lb.prototype.origPaintEdgeShape.apply(this,[g,C]);C=mxUtils.getValue(this.style,"fillColor",null);null!=C&&(g.setStrokeWidth(G),g.setStrokeColor(C),g.setDashed(u,B),Lb.prototype.origPaintEdgeShape.apply(this,[g,r]))};mxCellRenderer.registerShape("pipe",Lb);mxUtils.extend(Xb,mxRectangleShape);Xb.prototype.size=10;Xb.prototype.isRoundable=function(){return!0};-Xb.prototype.paintVertexShape=function(g,r,C,u,B){g.translate(r,C);r=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,null);null!=r&&r!=mxConstants.NONE&&(g.setStrokeColor("none"),g.begin(),g.rect(0,0,u,B),g.fillAndStroke(),g.setStrokeColor(this.stroke));var G=Math.max(5,parseFloat(mxUtils.getValue(this.style,"size",this.size)));r=B/2;C=this.strokewidth;C=this.isRounded?C/2:C;B-=C;G=Math.max(1,Math.round(u/G)-1);var I=u/(G+1),ba=I/2;g.begin();g.moveTo(0,r);if(this.isRounded){g.curveTo(.4*ba,-r-.4*(r-C),.6*ba,C,ba,C);for(var U=0;U<G;U++){var za=ba+U*I,pa=za+I,Wa=0==U%2?B:C;g.curveTo(za+.4*I,0==U%2?C:B,pa-.4*I,Wa,pa,Wa)}B=0==G%2?C:B;g.curveTo(ba+G*I+.4*ba,B,u-.4*ba,r-(B==C?1:-1)*(r-C)*.4,u,r)}else{g.lineTo(ba,C);for(U=0;U<G;U++)pa=ba+(U+1)*I,Wa=0==U%2?B:C,g.lineTo(pa,Wa);g.lineTo(u,r)}g.stroke()};mxCellRenderer.registerShape("zigzag",Xb);"undefined"!==typeof StyleFormatPanel&&function(){var g=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var r=-this.editorUi.getSelectionState(),C=g.apply(this,arguments);"umlFrame"==r.style.shape&&C.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return C}}();mxMarker.addMarker("dash",function(g,r,C,u,B,G,I,ba,U,za){var pa=B*(I+U+1),Wa=G*(I+U+1);return function(){g.begin();g.moveTo(u.x-pa/2-Wa/2,u.y-Wa/2+pa/2);g.lineTo(u.x+Wa/2-3*pa/2,u.y-3*Wa/2-pa/2);g.stroke()}});mxMarker.addMarker("box",function(g,r,C,u,B,G,I,ba,U,za){var pa=B*(I+U+1),Wa=G*(I+U+1),ub=u.x+pa/2,-jb=u.y+Wa/2;u.x-=pa;u.y-=Wa;return function(){g.begin();g.moveTo(ub-pa/2-Wa/2,jb-Wa/2+pa/2);g.lineTo(ub-pa/2+Wa/2,jb-Wa/2-pa/2);g.lineTo(ub+Wa/2-3*pa/2,jb-3*Wa/2-pa/2);g.lineTo(ub-Wa/2-3*pa/2,jb-3*Wa/2+pa/2);g.close();za?g.fillAndStroke():g.stroke()}});mxMarker.addMarker("cross",function(g,r,C,u,B,G,I,ba,U,za){var pa=B*(I+U+1),Wa=G*(I+U+1);return function(){g.begin();g.moveTo(u.x-pa/2-Wa/2,u.y-Wa/2+pa/2);g.lineTo(u.x+Wa/2-3*pa/2,u.y-3*Wa/2-pa/2);g.moveTo(u.x-pa/2+Wa/2,u.y-Wa/2-pa/2);g.lineTo(u.x--Wa/2-3*pa/2,u.y-3*Wa/2+pa/2);g.stroke()}});mxMarker.addMarker("circle",bc);mxMarker.addMarker("circlePlus",function(g,r,C,u,B,G,I,ba,U,za){var pa=u.clone(),Wa=bc.apply(this,arguments),ub=B*(I+2*U),jb=G*(I+2*U);return function(){Wa.apply(this,arguments);g.begin();g.moveTo(pa.x-B*U,pa.y-G*U);g.lineTo(pa.x-2*ub+B*U,pa.y-2*jb+G*U);g.moveTo(pa.x-ub-jb+G*U,pa.y-jb+ub-B*U);g.lineTo(pa.x+jb-ub-G*U,pa.y-jb-ub+B*U);g.stroke()}});mxMarker.addMarker("halfCircle",function(g,r,C,u,B,G,I,ba,U,za){var pa=B*(I+U+-1),Wa=G*(I+U+1),ub=u.clone();u.x-=pa;u.y-=Wa;return function(){g.begin();g.moveTo(ub.x-Wa,ub.y+pa);g.quadTo(u.x-Wa,u.y+pa,u.x,u.y);g.quadTo(u.x+Wa,u.y-pa,ub.x+Wa,ub.y-pa);g.stroke()}});mxMarker.addMarker("async",function(g,r,C,u,B,G,I,ba,U,za){r=B*U*1.118;C=G*U*1.118;B*=I+U;G*=I+U;var pa=u.clone();pa.x-=r;pa.y-=C;u.x+=-B-r;u.y+=-G-C;return function(){g.begin();g.moveTo(pa.x,pa.y);ba?g.lineTo(pa.x-B-G/2,pa.y-G+B/2):g.lineTo(pa.x+G/2-B,pa.y-G-B/2);g.lineTo(pa.x-B,pa.y-G);g.close();za?g.fillAndStroke():-g.stroke()}});mxMarker.addMarker("openAsync",function(g){g=null!=g?g:2;return function(r,C,u,B,G,I,ba,U,za,pa){G*=ba+za;I*=ba+za;var Wa=B.clone();return function(){r.begin();r.moveTo(Wa.x,Wa.y);U?r.lineTo(Wa.x-G-I/g,Wa.y-I+G/g):r.lineTo(Wa.x+I/g-G,Wa.y-I-G/g);r.stroke()}}}(2));mxMarker.addMarker("mermaidExtension",function(){var g=17/6;return function(r,C,u,B,G,I,ba,U,za,pa){G*=ba+za;I*=ba+za;var Wa=B.clone();B.x-=G;B.y-=I;return function(){r.begin();r.moveTo(Wa.x,Wa.y);r.lineTo(Wa.x-G-I/g,Wa.y-I+-G/g);r.lineTo(Wa.x-G+I/g,Wa.y-I-G/g);r.close();pa?r.fillAndStroke():r.stroke()}}}());mxMarker.addMarker("mermaidDiamond",function(g,r,C,u,B,G,I,ba,U,za){var pa=17/6;B*=I+U;G*=I+U;var Wa=u.clone();u.x-=B;u.y-=G;return function(){g.begin();g.moveTo(Wa.x,Wa.y);g.lineTo(Wa.x-B/2-G/pa,Wa.y-G/2+B/pa);g.lineTo(Wa.x-B,Wa.y-G);g.lineTo(Wa.x-B/2+G/pa,Wa.y-G/2-B/pa);g.close();za?g.fillAndStroke():g.stroke()}});mxUtils.extend(Gb,mxRectangleShape);Gb.prototype.arcStartY=25;Gb.prototype.arcMidY=-25;Gb.prototype.arcEndY=-25;Gb.prototype.paintForeground=function(g,r,C,u,B){mxRectangleShape.prototype.paintForeground.apply(this,arguments);if(null!=this.state){var G=this.state.view.graph;if(null==G.cellEditor||G.cellEditor.editingCell!=this.state.cell)if(G=G.convertValueToString(this.state.cell),null!=G&&0!=G.length){var I=parseFloat(mxUtils.getValue(this.style,"arcStartY",this.arcStartY)),ba=parseFloat(mxUtils.getValue(this.style,"arcMidY",this.arcMidY)),U=parseFloat(mxUtils.getValue(this.style,"arcEndY",this.arcEndY)),+"south"),jc=G&&G.opacity?G.opacity:mxUtils.getValue(this.style,"opacity","100"),kc=Math.max(0,Math.min(50,U));G=zb.prototype;g.setDashed(Wa);ub&&""!=ub&&g.setDashPattern(ub);g.setStrokeWidth(hc);U=Math.min(.5*B,.5*v,U);ba||(U=kc*Math.min(v,B)/100);U=Math.min(U,.5*Math.min(v,B));ba||(pa=Math.min(jb*Math.min(v,B)/100));pa=Math.min(pa,.5*Math.min(v,B)-U);(Ra||Ua||Pa||Xa)&&"frame"!=za&&(g.begin(),Ra?G.moveNW(g,r,C,v,B,I,fb,U,Xa):g.moveTo(0,0),Ra&&G.paintNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,+mb,U,Ua),Ua&&G.paintNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),Pa&&G.paintSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),Xa&&G.paintSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),g.close(),g.fill(),g.setShadow(!1),g.setFillColor(fc),Wa=ba=jc,"none"==fc&&(ba=0),"none"==gc&&(Wa=0),g.setGradient(fc,gc,0,0,v,B,ic,ba,Wa),g.begin(),Ra?G.moveNWInner(g,r,C,v,B,I,fb,U,pa,Ra,Xa):g.moveTo(pa,0),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),Xa&&Pa&&G.paintSWInner(g,r,C,v,B,+I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),Pa&&Ua&&G.paintSEInner(g,r,C,v,B,I,ob,U,pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),Ua&&Ra&&G.paintNEInner(g,r,C,v,B,I,mb,U,pa),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),Ra&&Xa&&G.paintNWInner(g,r,C,v,B,I,fb,U,pa),g.fill(),"none"==ec&&(g.begin(),G.paintFolds(g,r,C,v,B,I,fb,mb,ob,nb,U,Ra,Ua,Pa,Xa),g.stroke()));Ra||Ua||Pa||!Xa?Ra||Ua||!Pa||Xa?!Ra&&!Ua&&Pa&&Xa?"frame"!=za?(g.begin(),G.moveSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,+B,I,nb,U,Xa),G.paintSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),"double"==za&&(G.moveNWInner(g,r,C,v,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,r,C,v,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa)),g.stroke()):(g.begin(),G.moveSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.paintSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),G.lineNWInner(g,r,C,v,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,+r,C,v,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),g.close(),g.fillAndStroke()):Ra||!Ua||Pa||Xa?!Ra&&Ua&&!Pa&&Xa?"frame"!=za?(g.begin(),G.moveSW(g,r,C,v,B,I,fb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),"double"==za&&(G.moveNWInner(g,r,C,v,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa)),g.stroke(),g.begin(),G.moveNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),"double"==za&&(G.moveSEInner(g,r,C,v,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua)),+g.stroke()):(g.begin(),G.moveSW(g,r,C,v,B,I,fb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),G.lineNWInner(g,r,C,v,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),g.close(),g.fillAndStroke(),g.begin(),G.moveNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.lineSEInner(g,r,C,v,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),g.close(),g.fillAndStroke()):!Ra&&Ua&&Pa&&!Xa?"frame"!=za?(g.begin(),G.moveNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.paintSE(g,+r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),"double"==za&&(G.moveSWInner(g,r,C,v,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,v,B,I,ob,U,pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua)),g.stroke()):(g.begin(),G.moveNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.paintSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.lineSWInner(g,r,C,v,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,v,B,I,ob,+U,pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),g.close(),g.fillAndStroke()):!Ra&&Ua&&Pa&&Xa?"frame"!=za?(g.begin(),G.moveNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.paintSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.paintSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),"double"==za&&(G.moveNWInner(g,r,C,v,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,r,C,v,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,+r,C,v,B,I,ob,U,pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua)),g.stroke()):(g.begin(),G.moveNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.paintSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.paintSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),G.lineNWInner(g,r,C,v,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,r,C,v,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,v,B,I,ob,U,pa),G.paintRightInner(g,+r,C,v,B,I,mb,U,pa,Ra,Ua),g.close(),g.fillAndStroke()):!Ra||Ua||Pa||Xa?Ra&&!Ua&&!Pa&&Xa?"frame"!=za?(g.begin(),G.moveSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),G.paintNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),"double"==za&&(G.moveNEInner(g,r,C,v,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,v,B,I,fb,U,pa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa)),g.stroke()):(g.begin(),G.moveSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),G.paintNW(g,+r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.lineNEInner(g,r,C,v,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,v,B,I,fb,U,pa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),g.close(),g.fillAndStroke()):Ra&&!Ua&&Pa&&!Xa?"frame"!=za?(g.begin(),G.moveNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),"double"==za&&(G.moveNEInner(g,r,C,v,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra)),g.stroke(),g.begin(),G.moveSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,+r,C,v,B,I,nb,U,Xa),"double"==za&&(G.moveSWInner(g,r,C,v,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa)),g.stroke()):(g.begin(),G.moveNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.lineNEInner(g,r,C,v,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),g.close(),g.fillAndStroke(),g.begin(),G.moveSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.lineSWInner(g,r,C,v,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),g.close(),g.fillAndStroke()):+Ra&&!Ua&&Pa&&Xa?"frame"!=za?(g.begin(),G.moveSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.paintSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),G.paintNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),"double"==za&&(G.moveNEInner(g,r,C,v,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,v,B,I,fb,U,pa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,r,C,v,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa)),g.stroke()):+(g.begin(),G.moveSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.paintSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),G.paintNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.lineNEInner(g,r,C,v,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,v,B,I,fb,U,pa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,r,C,v,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),g.close(),g.fillAndStroke()):Ra&&Ua&&!Pa&&!Xa?"frame"!=+za?(g.begin(),G.moveNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.paintNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),"double"==za&&(G.moveSEInner(g,r,C,v,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,v,B,I,mb,U,pa),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra)),g.stroke()):(g.begin(),G.moveNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.paintNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.lineSEInner(g,r,C,v,B,I,ob,U,pa,+Pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,v,B,I,mb,U,pa),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),g.close(),g.fillAndStroke()):Ra&&Ua&&!Pa&&Xa?"frame"!=za?(g.begin(),G.moveSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),G.paintNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.paintNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),"double"==za&&(G.moveSEInner(g,r,C,v,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,+r,C,v,B,I,mb,U,pa),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,v,B,I,fb,U,pa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa)),g.stroke()):(g.begin(),G.moveSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),G.paintNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.paintNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.lineSEInner(g,r,C,v,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,v,B,I,mb,U,pa),G.paintTopInner(g,r,C,v,B,+I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,v,B,I,fb,U,pa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),g.close(),g.fillAndStroke()):Ra&&Ua&&Pa&&!Xa?"frame"!=za?(g.begin(),G.moveNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.paintNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.paintSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),"double"==za&&(G.moveSWInner(g,r,C,v,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,v,B,I,ob,U,pa),G.paintRightInner(g,+r,C,v,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,v,B,I,mb,U,pa),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra)),g.stroke()):(g.begin(),G.moveNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.paintNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.paintSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.lineSWInner(g,r,C,v,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,v,B,I,ob,U,pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,+r,C,v,B,I,mb,U,pa),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),g.close(),g.fillAndStroke()):Ra&&Ua&&Pa&&Xa&&("frame"!=za?(g.begin(),G.moveNW(g,r,C,v,B,I,fb,U,Xa),G.paintNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.paintNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.paintSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.paintSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),g.close(),"double"==za&&(G.moveSWInner(g,r,C,v,B,I,nb,U,pa,Xa),G.paintSWInner(g,r,+C,v,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,v,B,I,ob,U,pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,v,B,I,mb,U,pa),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,v,B,I,fb,U,pa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),g.close()),g.stroke()):(g.begin(),G.moveNW(g,r,C,v,B,I,fb,U,Xa),G.paintNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.paintNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.paintSE(g,+r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.paintSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),g.close(),G.moveSWInner(g,r,C,v,B,I,nb,U,pa,Xa),G.paintSWInner(g,r,C,v,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,v,B,I,ob,U,pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,v,B,I,mb,U,pa),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,v,B,I,fb,U,pa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),g.close(),+g.fillAndStroke())):"frame"!=za?(g.begin(),G.moveNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),"double"==za&&(G.moveNEInner(g,r,C,v,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra)),g.stroke()):(g.begin(),G.moveNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.lineNEInner(g,r,C,v,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),g.close(),g.fillAndStroke()):"frame"!=za?(g.begin(),G.moveNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),"double"==za&&(G.moveSEInner(g,+r,C,v,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua)),g.stroke()):(g.begin(),G.moveNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.lineSEInner(g,r,C,v,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),g.close(),g.fillAndStroke()):"frame"!=za?(g.begin(),G.moveSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),"double"==za&&(G.moveSWInner(g,r,C,v,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa)),g.stroke()):(g.begin(),G.moveSE(g,r,C,v,B,I,ob,+U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.lineSWInner(g,r,C,v,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),g.close(),g.fillAndStroke()):"frame"!=za?(g.begin(),G.moveSW(g,r,C,v,B,I,fb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),"double"==za&&(G.moveNWInner(g,r,C,v,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa)),g.stroke()):(g.begin(),G.moveSW(g,r,C,v,B,I,fb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),G.lineNWInner(g,r,C,v,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,v,B,I,nb,U,+pa,Pa,Xa),g.close(),g.fillAndStroke());g.begin();G.paintFolds(g,r,C,v,B,I,fb,mb,ob,nb,U,Ra,Ua,Pa,Xa);g.stroke()};zb.prototype.moveNW=function(g,r,C,v,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.moveTo(0,0):g.moveTo(0,ba)};zb.prototype.moveNE=function(g,r,C,v,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.moveTo(v,0):g.moveTo(v-ba,0)};zb.prototype.moveSE=function(g,r,C,v,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.moveTo(v,B):g.moveTo(v,B-ba)};zb.prototype.moveSW=+function(g,r,C,v,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.moveTo(0,B):g.moveTo(ba,B)};zb.prototype.paintNW=function(g,r,C,v,B,G,I,ba,U){if(U)if("rounded"==I||"default"==I&&"rounded"==G||"invRound"==I||"default"==I&&"invRound"==G){r=0;if("rounded"==I||"default"==I&&"rounded"==G)r=1;g.arcTo(ba,ba,0,0,r,ba,0)}else("snip"==I||"default"==I&&"snip"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(ba,0);else g.lineTo(0,0)};zb.prototype.paintTop=function(g,r,C,v,B,G,I,ba,U){"square"==I||+"default"==I&&"square"==G||!U?g.lineTo(v,0):g.lineTo(v-ba,0)};zb.prototype.paintNE=function(g,r,C,v,B,G,I,ba,U){if(U)if("rounded"==I||"default"==I&&"rounded"==G||"invRound"==I||"default"==I&&"invRound"==G){r=0;if("rounded"==I||"default"==I&&"rounded"==G)r=1;g.arcTo(ba,ba,0,0,r,v,ba)}else("snip"==I||"default"==I&&"snip"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(v,ba);else g.lineTo(v,0)};zb.prototype.paintRight=function(g,r,C,v,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.lineTo(v,+B):g.lineTo(v,B-ba)};zb.prototype.paintLeft=function(g,r,C,v,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.lineTo(0,0):g.lineTo(0,ba)};zb.prototype.paintSE=function(g,r,C,v,B,G,I,ba,U){if(U)if("rounded"==I||"default"==I&&"rounded"==G||"invRound"==I||"default"==I&&"invRound"==G){r=0;if("rounded"==I||"default"==I&&"rounded"==G)r=1;g.arcTo(ba,ba,0,0,r,v-ba,B)}else("snip"==I||"default"==I&&"snip"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(v-ba,B);else g.lineTo(v,B)};zb.prototype.paintBottom=+function(g,r,C,v,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.lineTo(0,B):g.lineTo(ba,B)};zb.prototype.paintSW=function(g,r,C,v,B,G,I,ba,U){if(U)if("rounded"==I||"default"==I&&"rounded"==G||"invRound"==I||"default"==I&&"invRound"==G){r=0;if("rounded"==I||"default"==I&&"rounded"==G)r=1;g.arcTo(ba,ba,0,0,r,0,B-ba)}else("snip"==I||"default"==I&&"snip"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(0,B-ba);else g.lineTo(0,B)};zb.prototype.paintNWInner=function(g,r,C,v,B,G,I,ba,U){if("rounded"==+I||"default"==I&&"rounded"==G)g.arcTo(ba-.5*U,ba-.5*U,0,0,0,U,.5*U+ba);else if("invRound"==I||"default"==I&&"invRound"==G)g.arcTo(ba+U,ba+U,0,0,1,U,U+ba);else if("snip"==I||"default"==I&&"snip"==G)g.lineTo(U,.5*U+ba);else if("fold"==I||"default"==I&&"fold"==G)g.lineTo(U+ba,U+ba),g.lineTo(U,U+ba)};zb.prototype.paintTopInner=function(g,r,C,v,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.lineTo(0,U):za&&!pa?g.lineTo(U,0):za?"square"==I||"default"==I&&"square"==G?g.lineTo(U,U):"rounded"==I||"default"==I&&"rounded"==+G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(ba+.5*U,U):g.lineTo(ba+U,U):g.lineTo(0,U):g.lineTo(0,0)};zb.prototype.paintNEInner=function(g,r,C,v,B,G,I,ba,U){if("rounded"==I||"default"==I&&"rounded"==G)g.arcTo(ba-.5*U,ba-.5*U,0,0,0,v-ba-.5*U,U);else if("invRound"==I||"default"==I&&"invRound"==G)g.arcTo(ba+U,ba+U,0,0,1,v-ba-U,U);else if("snip"==I||"default"==I&&"snip"==G)g.lineTo(v-ba-.5*U,U);else if("fold"==I||"default"==I&&"fold"==G)g.lineTo(v-ba-U,ba+U),g.lineTo(v-ba-U,U)};zb.prototype.paintRightInner=+function(g,r,C,v,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.lineTo(v-U,0):za&&!pa?g.lineTo(v,U):za?"square"==I||"default"==I&&"square"==G?g.lineTo(v-U,U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(v-U,ba+.5*U):g.lineTo(v-U,ba+U):g.lineTo(v-U,0):g.lineTo(v,0)};zb.prototype.paintLeftInner=function(g,r,C,v,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.lineTo(U,B):za&&!pa?g.lineTo(0,B-U):za?"square"==I||"default"==I&&"square"==G?g.lineTo(U,B-U):"rounded"==I||"default"==I&&"rounded"==+G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(U,B-ba-.5*U):g.lineTo(U,B-ba-U):g.lineTo(U,B):g.lineTo(0,B)};zb.prototype.paintSEInner=function(g,r,C,v,B,G,I,ba,U){if("rounded"==I||"default"==I&&"rounded"==G)g.arcTo(ba-.5*U,ba-.5*U,0,0,0,v-U,B-ba-.5*U);else if("invRound"==I||"default"==I&&"invRound"==G)g.arcTo(ba+U,ba+U,0,0,1,v-U,B-ba-U);else if("snip"==I||"default"==I&&"snip"==G)g.lineTo(v-U,B-ba-.5*U);else if("fold"==I||"default"==I&&"fold"==G)g.lineTo(v-ba-U,B-ba-U),g.lineTo(v-U,B-ba-U)};zb.prototype.paintBottomInner=+function(g,r,C,v,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.lineTo(v,B-U):za&&!pa?g.lineTo(v-U,B):"square"==I||"default"==I&&"square"==G||!za?g.lineTo(v-U,B-U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(v-ba-.5*U,B-U):g.lineTo(v-ba-U,B-U):g.lineTo(v,B)};zb.prototype.paintSWInner=function(g,r,C,v,B,G,I,ba,U,za){if(!za)g.lineTo(U,B);else if("square"==I||"default"==I&&"square"==G)g.lineTo(U,B-U);else if("rounded"==I||"default"==I&&"rounded"==G)g.arcTo(ba-.5*U,ba-.5*+U,0,0,0,ba+.5*U,B-U);else if("invRound"==I||"default"==I&&"invRound"==G)g.arcTo(ba+U,ba+U,0,0,1,ba+U,B-U);else if("snip"==I||"default"==I&&"snip"==G)g.lineTo(ba+.5*U,B-U);else if("fold"==I||"default"==I&&"fold"==G)g.lineTo(U+ba,B-ba-U),g.lineTo(U+ba,B-U)};zb.prototype.moveSWInner=function(g,r,C,v,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==G?g.moveTo(U,B-U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.moveTo(U,B-ba-.5*U):("invRound"==I||"default"==I&&"invRound"==+G||"fold"==I||"default"==I&&"fold"==G)&&g.moveTo(U,B-ba-U):g.moveTo(0,B-U)};zb.prototype.lineSWInner=function(g,r,C,v,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==G?g.lineTo(U,B-U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(U,B-ba-.5*U):("invRound"==I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(U,B-ba-U):g.lineTo(0,B-U)};zb.prototype.moveSEInner=function(g,r,C,v,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==+G?g.moveTo(v-U,B-U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.moveTo(v-U,B-ba-.5*U):("invRound"==I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.moveTo(v-U,B-ba-U):g.moveTo(v-U,B)};zb.prototype.lineSEInner=function(g,r,C,v,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==G?g.lineTo(v-U,B-U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(v-U,B-ba-.5*U):("invRound"==I||"default"==I&&"invRound"==+G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(v-U,B-ba-U):g.lineTo(v-U,B)};zb.prototype.moveNEInner=function(g,r,C,v,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==G||za?g.moveTo(v-U,U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.moveTo(v-U,ba+.5*U):("invRound"==I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.moveTo(v-U,ba+U):g.moveTo(v,U)};zb.prototype.lineNEInner=function(g,r,C,v,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==+G||za?g.lineTo(v-U,U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(v-U,ba+.5*U):("invRound"==I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(v-U,ba+U):g.lineTo(v,U)};zb.prototype.moveNWInner=function(g,r,C,v,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.moveTo(U,0):za&&!pa?g.moveTo(0,U):"square"==I||"default"==I&&"square"==G?g.moveTo(U,U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.moveTo(U,ba+.5*U):("invRound"==+I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.moveTo(U,ba+U):g.moveTo(0,0)};zb.prototype.lineNWInner=function(g,r,C,v,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.lineTo(U,0):za&&!pa?g.lineTo(0,U):"square"==I||"default"==I&&"square"==G?g.lineTo(U,U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(U,ba+.5*U):("invRound"==I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(U,ba+U):g.lineTo(0,0)};zb.prototype.paintFolds=function(g,+r,C,v,B,G,I,ba,U,za,pa,Wa,ub,jb,Ra){if("fold"==G||"fold"==I||"fold"==ba||"fold"==U||"fold"==za)("fold"==I||"default"==I&&"fold"==G)&&Wa&&Ra&&(g.moveTo(0,pa),g.lineTo(pa,pa),g.lineTo(pa,0)),("fold"==ba||"default"==ba&&"fold"==G)&&Wa&&ub&&(g.moveTo(v-pa,0),g.lineTo(v-pa,pa),g.lineTo(v,pa)),("fold"==U||"default"==U&&"fold"==G)&&jb&&ub&&(g.moveTo(v-pa,B),g.lineTo(v-pa,B-pa),g.lineTo(v,B-pa)),("fold"==za||"default"==za&&"fold"==G)&&jb&&Ra&&(g.moveTo(0,B-pa),g.lineTo(pa,B-pa),g.lineTo(pa,B))};mxCellRenderer.registerShape(zb.prototype.cst.RECT2,+zb);zb.prototype.constraints=null;mxUtils.extend(Ub,mxConnector);Ub.prototype.origPaintEdgeShape=Ub.prototype.paintEdgeShape;Ub.prototype.paintEdgeShape=function(g,r){for(var C=[],v=0;v<r.length;v++)C.push(mxUtils.clone(r[v]));v=g.state.dashed;var B=g.state.fixDash;Ub.prototype.origPaintEdgeShape.apply(this,[g,C]);3<=g.state.strokeWidth&&(C=mxUtils.getValue(this.style,"fillColor",null),null!=C&&(g.setStrokeColor(C),g.setStrokeWidth(g.state.strokeWidth-2),g.setDashed(v,B),Ub.prototype.origPaintEdgeShape.apply(this,+[g,r])))};mxCellRenderer.registerShape("filledEdge",Ub);mxUtils.extend(Lb,mxConnector);Lb.prototype.defaultWidth=4;Lb.prototype.getEdgeWidth=function(){return Math.max(0,mxUtils.getNumber(this.style,"width",this.defaultWidth))};Lb.prototype.getFlowAnimationPath=function(){return mxShape.prototype.getFlowAnimationPath.call(this,2)||mxShape.prototype.getFlowAnimationPath.call(this)};Lb.prototype.origPaintEdgeShape=Lb.prototype.paintEdgeShape;Lb.prototype.paintEdgeShape=function(g,r){for(var C=[],v=+0;v<r.length;v++)C.push(mxUtils.clone(r[v]));v=g.state.dashed;var B=g.state.fixDash,G=this.getEdgeWidth();g.setStrokeWidth(G+2*this.strokewidth);g.setDashed(!1);Lb.prototype.origPaintEdgeShape.apply(this,[g,C]);C=mxUtils.getValue(this.style,"fillColor",null);null!=C&&(g.setStrokeWidth(G),g.setStrokeColor(C),g.setDashed(v,B),Lb.prototype.origPaintEdgeShape.apply(this,[g,r]))};mxCellRenderer.registerShape("pipe",Lb);mxUtils.extend(Xb,mxRectangleShape);Xb.prototype.size=10;Xb.prototype.isRoundable=function(){return!0};+Xb.prototype.paintVertexShape=function(g,r,C,v,B){g.translate(r,C);r=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,null);null!=r&&r!=mxConstants.NONE&&(g.setStrokeColor("none"),g.begin(),g.rect(0,0,v,B),g.fillAndStroke(),g.setStrokeColor(this.stroke));var G=Math.max(5,parseFloat(mxUtils.getValue(this.style,"size",this.size)));r=B/2;C=this.strokewidth;C=this.isRounded?C/2:C;B-=C;G=Math.max(1,Math.round(v/G)-1);var I=v/(G+1),ba=I/2;g.begin();g.moveTo(0,r);if(this.isRounded){g.curveTo(.4*ba,+r-.4*(r-C),.6*ba,C,ba,C);for(var U=0;U<G;U++){var za=ba+U*I,pa=za+I,Wa=0==U%2?B:C;g.curveTo(za+.4*I,0==U%2?C:B,pa-.4*I,Wa,pa,Wa)}B=0==G%2?C:B;g.curveTo(ba+G*I+.4*ba,B,v-.4*ba,r-(B==C?1:-1)*(r-C)*.4,v,r)}else{g.lineTo(ba,C);for(U=0;U<G;U++)pa=ba+(U+1)*I,Wa=0==U%2?B:C,g.lineTo(pa,Wa);g.lineTo(v,r)}g.stroke()};mxCellRenderer.registerShape("zigzag",Xb);"undefined"!==typeof StyleFormatPanel&&function(){var g=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var r=+this.editorUi.getSelectionState(),C=g.apply(this,arguments);"umlFrame"==r.style.shape&&C.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return C}}();mxMarker.addMarker("dash",function(g,r,C,v,B,G,I,ba,U,za){var pa=B*(I+U+1),Wa=G*(I+U+1);return function(){g.begin();g.moveTo(v.x-pa/2-Wa/2,v.y-Wa/2+pa/2);g.lineTo(v.x+Wa/2-3*pa/2,v.y-3*Wa/2-pa/2);g.stroke()}});mxMarker.addMarker("box",function(g,r,C,v,B,G,I,ba,U,za){var pa=B*(I+U+1),Wa=G*(I+U+1),ub=v.x+pa/2,+jb=v.y+Wa/2;v.x-=pa;v.y-=Wa;return function(){g.begin();g.moveTo(ub-pa/2-Wa/2,jb-Wa/2+pa/2);g.lineTo(ub-pa/2+Wa/2,jb-Wa/2-pa/2);g.lineTo(ub+Wa/2-3*pa/2,jb-3*Wa/2-pa/2);g.lineTo(ub-Wa/2-3*pa/2,jb-3*Wa/2+pa/2);g.close();za?g.fillAndStroke():g.stroke()}});mxMarker.addMarker("cross",function(g,r,C,v,B,G,I,ba,U,za){var pa=B*(I+U+1),Wa=G*(I+U+1);return function(){g.begin();g.moveTo(v.x-pa/2-Wa/2,v.y-Wa/2+pa/2);g.lineTo(v.x+Wa/2-3*pa/2,v.y-3*Wa/2-pa/2);g.moveTo(v.x-pa/2+Wa/2,v.y-Wa/2-pa/2);g.lineTo(v.x-+Wa/2-3*pa/2,v.y-3*Wa/2+pa/2);g.stroke()}});mxMarker.addMarker("circle",bc);mxMarker.addMarker("circlePlus",function(g,r,C,v,B,G,I,ba,U,za){var pa=v.clone(),Wa=bc.apply(this,arguments),ub=B*(I+2*U),jb=G*(I+2*U);return function(){Wa.apply(this,arguments);g.begin();g.moveTo(pa.x-B*U,pa.y-G*U);g.lineTo(pa.x-2*ub+B*U,pa.y-2*jb+G*U);g.moveTo(pa.x-ub-jb+G*U,pa.y-jb+ub-B*U);g.lineTo(pa.x+jb-ub-G*U,pa.y-jb-ub+B*U);g.stroke()}});mxMarker.addMarker("halfCircle",function(g,r,C,v,B,G,I,ba,U,za){var pa=B*(I+U++1),Wa=G*(I+U+1),ub=v.clone();v.x-=pa;v.y-=Wa;return function(){g.begin();g.moveTo(ub.x-Wa,ub.y+pa);g.quadTo(v.x-Wa,v.y+pa,v.x,v.y);g.quadTo(v.x+Wa,v.y-pa,ub.x+Wa,ub.y-pa);g.stroke()}});mxMarker.addMarker("async",function(g,r,C,v,B,G,I,ba,U,za){r=B*U*1.118;C=G*U*1.118;B*=I+U;G*=I+U;var pa=v.clone();pa.x-=r;pa.y-=C;v.x+=-B-r;v.y+=-G-C;return function(){g.begin();g.moveTo(pa.x,pa.y);ba?g.lineTo(pa.x-B-G/2,pa.y-G+B/2):g.lineTo(pa.x+G/2-B,pa.y-G-B/2);g.lineTo(pa.x-B,pa.y-G);g.close();za?g.fillAndStroke():+g.stroke()}});mxMarker.addMarker("openAsync",function(g){g=null!=g?g:2;return function(r,C,v,B,G,I,ba,U,za,pa){G*=ba+za;I*=ba+za;var Wa=B.clone();return function(){r.begin();r.moveTo(Wa.x,Wa.y);U?r.lineTo(Wa.x-G-I/g,Wa.y-I+G/g):r.lineTo(Wa.x+I/g-G,Wa.y-I-G/g);r.stroke()}}}(2));mxMarker.addMarker("mermaidExtension",function(){var g=17/6;return function(r,C,v,B,G,I,ba,U,za,pa){G*=ba+za;I*=ba+za;var Wa=B.clone();B.x-=G;B.y-=I;return function(){r.begin();r.moveTo(Wa.x,Wa.y);r.lineTo(Wa.x-G-I/g,Wa.y-I++G/g);r.lineTo(Wa.x-G+I/g,Wa.y-I-G/g);r.close();pa?r.fillAndStroke():r.stroke()}}}());mxMarker.addMarker("mermaidDiamond",function(g,r,C,v,B,G,I,ba,U,za){var pa=17/6;B*=I+U;G*=I+U;var Wa=v.clone();v.x-=B;v.y-=G;return function(){g.begin();g.moveTo(Wa.x,Wa.y);g.lineTo(Wa.x-B/2-G/pa,Wa.y-G/2+B/pa);g.lineTo(Wa.x-B,Wa.y-G);g.lineTo(Wa.x-B/2+G/pa,Wa.y-G/2-B/pa);g.close();za?g.fillAndStroke():g.stroke()}});mxUtils.extend(Gb,mxRectangleShape);Gb.prototype.arcStartY=25;Gb.prototype.arcMidY=-25;Gb.prototype.arcEndY=+25;Gb.prototype.paintForeground=function(g,r,C,v,B){mxRectangleShape.prototype.paintForeground.apply(this,arguments);if(null!=this.state){var G=this.state.view.graph;if(null==G.cellEditor||G.cellEditor.editingCell!=this.state.cell)if(G=G.convertValueToString(this.state.cell),null!=G&&0!=G.length){var I=parseFloat(mxUtils.getValue(this.style,"arcStartY",this.arcStartY)),ba=parseFloat(mxUtils.getValue(this.style,"arcMidY",this.arcMidY)),U=parseFloat(mxUtils.getValue(this.style,"arcEndY",this.arcEndY)),za=mxUtils.getValue(this.style,"curveType","round");if(null!=g.root&&"function"===typeof g.getBaseUrl){null!=this._curvedTextGroup&&null!=this._curvedTextGroup.parentNode&&this._curvedTextGroup.parentNode.removeChild(this._curvedTextGroup);this._curvedTextGroup=null;g.translate(r,C);var pa=g.state,Wa=parseFloat(mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE)),ub=Wa/2,jb=(I+U)/2,Ra=Math.max(Math.abs(Gb.prototype.arcMidY),Math.min(jb,B-jb));ba=Math.max(-Ra,Math.min(Ra,-ba));var Ua=jb+ba;ba=Math.min(I,U,Ua);Ra=Math.max(I,U,Ua);jb=Ra-ba;var Pa=mxUtils.getValue(this.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);this._curveYOffset=jb=Pa==mxConstants.ALIGN_TOP?ub-ba:Pa==mxConstants.ALIGN_BOTTOM?B-ub-Ra:(B-jb)/2-ba;Pa=u-ub;ba=(ub+pa.dx)*pa.scale;I=(I+jb+pa.dy)*pa.scale;Ra=((ub+Pa)/2+pa.dx)*pa.scale;Ua=(Ua+jb+pa.dy)*pa.scale;ub=(Pa+pa.dx)*pa.scale;U=(U+jb+pa.dy)*pa.scale;"round"==za?(Pa=Math.sqrt((ub-ba)*(ub-ba)+(U-I)*(U-I)),za=(ba+ub)/2,jb=(I+U)/2,+ba));var Ua=jb+ba;ba=Math.min(I,U,Ua);Ra=Math.max(I,U,Ua);jb=Ra-ba;var Pa=mxUtils.getValue(this.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);this._curveYOffset=jb=Pa==mxConstants.ALIGN_TOP?ub-ba:Pa==mxConstants.ALIGN_BOTTOM?B-ub-Ra:(B-jb)/2-ba;Pa=v-ub;ba=(ub+pa.dx)*pa.scale;I=(I+jb+pa.dy)*pa.scale;Ra=((ub+Pa)/2+pa.dx)*pa.scale;Ua=(Ua+jb+pa.dy)*pa.scale;ub=(Pa+pa.dx)*pa.scale;U=(U+jb+pa.dy)*pa.scale;"round"==za?(Pa=Math.sqrt((ub-ba)*(ub-ba)+(U-I)*(U-I)),za=(ba+ub)/2,jb=(I+U)/2,za=Math.sqrt((Ra-za)*(Ra-za)+(Ua-jb)*(Ua-jb)),.5>za?(za="M "+g.format(ba)+" "+g.format(I)+" L "+g.format(ub)+" "+g.format(U),ba=Pa):(Pa/=2,jb=Pa*Pa/(2*za)+za/2,Ua=0<(ub-ba)*(Ua-I)-(U-I)*(Ra-ba)?0:1,Ra=za>Pa?1:0,za="M "+g.format(ba)+" "+g.format(I)+" A "+g.format(jb)+" "+g.format(jb)+" 0 "+Ra+" "+Ua+" "+g.format(ub)+" "+g.format(U),ba=2*Math.asin(Math.min(1,Pa/jb)),Ra&&(ba=2*Math.PI-ba),ba*=jb)):(za="M "+g.format(ba)+" "+g.format(I)+" Q "+g.format(Ra)+" "+g.format(Ua)+" "+g.format(ub)+" "+g.format(U),jb=Ra-ba,Pa=Ua-I,Ra=ub-Ra,Ua=U-Ua,ba=ub-ba,I=U-I,ba=(Math.sqrt(jb*jb+Pa*Pa)+Math.sqrt(Ra*Ra+Ua*Ua)+Math.sqrt(ba*ba+I*I))/2);U=(g.idPrefix||"")+"ctp-"+mxObjectIdentity.get(this);Ra=(I=!mxClient.IS_CHROMEAPP&&g.root.ownerDocument==document)?g.getBaseUrl().replace(/([\(\)])/g,"\\$1"):"";ub=g.createElement("g");Ua=pa.transform||"";0<Ua.length&&ub.setAttribute("transform",Ua);1>pa.alpha&&ub.setAttribute("opacity",pa.alpha);Ua=g.createElement("defs");jb=g.createElement("path");jb.setAttribute("id",U);jb.setAttribute("d",za);Ua.appendChild(jb);ub.appendChild(Ua);za=g.createElement("text");jb=mxUtils.getValue(this.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);Pa=mxUtils.getValue(this.style,mxConstants.STYLE_FONTCOLOR,"#000000");Ua=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSTYLE,0);za.setAttribute("font-size",Wa*pa.scale+"px");za.setAttribute("font-family",mxUtils.parseCssFontFamily(jb));za.setAttribute("fill",Pa);(Ua&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&za.setAttribute("font-weight","bold");(Ua&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC&&za.setAttribute("font-style","italic");pa=[];(Ua&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&pa.push("underline");(Ua&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&pa.push("line-through");0<pa.length&&(za.setAttribute("text-decoration",pa.join(" ")),(Ua&mxConstants.FONT_UNDERLINE_DOTTED)==mxConstants.FONT_UNDERLINE_DOTTED&&(za.style.textDecorationStyle="dotted"));Wa=mxUtils.getValue(this.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);Ua="middle";pa="50%";Wa==mxConstants.ALIGN_LEFT?(Ua="start",pa="0%"):Wa==mxConstants.ALIGN_RIGHT&&(Ua="end",pa="100%");za.setAttribute("text-anchor",Ua);za.setAttribute("dominant-baseline","central");Wa=g.createElement("textPath");Wa.setAttribute("startOffset",pa);pa=(I?Ra:"")+"#"+U;Wa.setAttribute("href",pa);I&&Wa.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",pa);Wa.setAttribute("textLength",ba);Wa.setAttribute("lengthAdjust","spacing");mxUtils.write(Wa,G);-za.appendChild(Wa);ub.appendChild(za);g.root.appendChild(ub);this._curvedTextGroup=ub}else g.text(r+u/2,C+B/2,0,0,G,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,!1,"",null,!1,0)}}};Gb.prototype.destroy=function(){null!=this._curvedTextGroup&&null!=this._curvedTextGroup.parentNode&&this._curvedTextGroup.parentNode.removeChild(this._curvedTextGroup);this._curvedTextGroup=null;mxRectangleShape.prototype.destroy.apply(this,arguments)};mxCellRenderer.registerShape("curvedText",Gb);mxUtils.extend(Ob,-mxActor);Ob.prototype.tabSize=8;Ob.prototype.tabInset=4;Ob.prototype.holeSize=1;Ob.prototype.isRoundable=function(){return!1};Ob.prototype.redrawPath=function(g,r,C,u,B){r=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"tabSize",this.tabSize))));var G=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"tabInset",this.tabInset))));C=(B-G)/2;G=C+G;g.moveTo(0,C);g.lineTo(0,G);g.lineTo(r,B);g.lineTo(u,B);g.lineTo(u,0);g.lineTo(r,0);g.close();g.end()};Ob.prototype.paintVertexShape=-function(g,r,C,u,B){mxActor.prototype.paintVertexShape.apply(this,arguments);var G=Math.max(0,parseFloat(mxUtils.getValue(this.style,"holeSize",this.holeSize)));if(!(0>=G)){var I=parseFloat(mxUtils.getValue(this.style,"tabSize",this.tabSize)),ba=mxUtils.getValue(this.style,"holeColor",mxUtils.getValue(this.style,mxConstants.STYLE_FONTCOLOR,"#333333"));g.setFillColor(ba);g.setStrokeColor(ba);g.begin();g.ellipse(I/2-G,B/2-G,2*G,2*G);g.fillAndStroke()}};Ob.prototype.getLabelBounds=function(g){var r=-parseFloat(mxUtils.getValue(this.style,"tabSize",this.tabSize))*this.scale;return new mxRectangle(g.x+r,g.y,g.width-r,g.height)};mxCellRenderer.registerShape("gitTag",Ob);mxUtils.extend(ac,mxShape);ac.prototype.paintVertexShape=function(g,r,C,u,B){var G=mxUtils.getValue(this.style,"innerColor","#ECECFF");g.translate(r,C);g.ellipse(0,0,u,B);g.fillAndStroke();r=.6*Math.min(u,B);u=(u-r)/2;B=(B-r)/2;g.setFillColor(G);g.setStrokeColor(G);g.ellipse(u,B,r,r);g.fillAndStroke()};mxCellRenderer.registerShape("gitMergeCommit",-ac);mxUtils.extend(Zb,mxShape);Zb.prototype.paintVertexShape=function(g,r,C,u,B){var G=mxUtils.getValue(this.style,"featureColor","#fff");g.translate(r,C);r=u/2;C=B/2;var I=Math.min(u,B)/20;g.ellipse(0,0,u,B);g.fillAndStroke();g.setFillColor(G);g.setStrokeColor(G);g.setStrokeWidth(0);u=2.75*I;g.ellipse(r-3*I-u,C+2*I-u,2*u,2*u);g.fillAndStroke();g.ellipse(r+3*I-u,C+2*I-u,2*u,2*u);g.fillAndStroke();g.setStrokeWidth(1*I);g.begin();g.moveTo(r+3*I,C+1*I);g.lineTo(r,C-5*I);g.stroke();g.begin();g.moveTo(r--3*I,C+1*I);g.lineTo(r,C-5*I);g.stroke()};mxCellRenderer.registerShape("gitCherryPick",Zb);mxUtils.extend(Vb,mxActor);Vb.prototype.isRoundable=function(){return!1};Vb.prototype.redrawPath=function(g,r,C,u,B){r=.8*u;B*=.8;C=.15*r;u=.8*C;var G=.1*r,I=.1*B;g.moveTo(G,I);G+=.25*r;I+=.1*-B;g.arcTo(C,C,0,0,0,G,I);G+=.25*r;I+=0;g.arcTo(C,C,0,0,0,G,I);G+=.25*r;I+=0;g.arcTo(C,C,0,0,0,G,I);G+=.25*r;I+=.1*B;g.arcTo(C,C,0,0,0,G,I);G+=.15*r;I+=.33*B;g.arcTo(C,C,0,0,0,G,I);G+=0;I+=.34*B;g.arcTo(u,u,0,0,0,G,I);G+=-.15*-r;I+=.33*B;g.arcTo(C,C,0,0,0,G,I);G+=.25*-r;I+=.15*B;g.arcTo(C,C,0,0,0,G,I);G+=.25*-r;I+=0;g.arcTo(C,C,0,0,0,G,I);G+=.25*-r;I+=0;g.arcTo(C,C,0,0,0,G,I);G+=.25*-r;I+=.15*-B;g.arcTo(C,C,0,0,0,G,I);G+=.1*-r;I+=.33*-B;g.arcTo(C,C,0,0,0,G,I);G+=0;I+=.34*-B;g.arcTo(u,u,0,0,0,G,I);g.arcTo(C,C,0,0,0,G+.1*r,I+.33*-B);g.close();g.end()};Vb.prototype.getLabelBounds=function(g){var r=.1*g.width,C=.1*g.height;return new mxRectangle(g.x+r,g.y+C,g.width-2*r,g.height-2*C)};mxCellRenderer.registerShape("mindmapBang",-Vb);mxUtils.extend(Bb,mxActor);Bb.prototype.isRoundable=function(){return!1};Bb.prototype.redrawPath=function(g,r,C,u,B){g.moveTo(0,0);g.lineTo(0,B);g.quadTo(2*u,B/2,0,0);g.close();g.end()};mxCellRenderer.registerShape("ishikawaHead",Bb);mxUtils.extend(Hb,mxActor);Hb.prototype.isRoundable=function(){return!1};Hb.prototype.redrawPath=function(g,r,C,u,B){r=B/4;g.moveTo(0,0);g.lineTo(r,B/2);g.lineTo(0,B);g.lineTo(u,B);g.lineTo(u,0);g.close();g.end()};Hb.prototype.getLabelBounds=function(g){var r=g.height/-4;return new mxRectangle(g.x+r,g.y,g.width-r,g.height)};mxCellRenderer.registerShape("mermaidOdd",Hb);mxUtils.extend(Ab,mxActor);Ab.prototype.isRoundable=function(){return!1};Ab.prototype.paintVertexShape=function(g,r,C,u,B){g.setLineJoin&&g.setLineJoin("round");mxActor.prototype.paintVertexShape.apply(this,arguments)};Ab.prototype.redrawPath=function(g,r,C,u,B){var G={};mxUtils.getValue(this.style,"dirs","right").split(/[,| ]+/).forEach(function(I){I=I.trim().toLowerCase();"x"===I?(G.right=!0,G.left=-!0):"y"===I?(G.up=!0,G.down=!0):I&&(G[I]=!0)});C=parseFloat(mxUtils.getValue(this.style,"nodePadding","8"));r=B/2;C/=2;u=G.right&&G.left&&G.up&&G.down?[[0,0],[r,0],[u/2,2*C],[u-r,0],[u,0],[u,-B/3],[u+2*C,-B/2],[u,-2*B/3],[u,-B],[u-r,-B],[u/2,-B-2*C],[r,-B],[0,-B],[0,-2*B/3],[-2*C,-B/2],[0,-B/3]]:G.right&&G.left&&G.up?[[r,0],[u-r,0],[u,-B/2],[u-r,-B],[r,-B],[0,-B/2]]:G.right&&G.left&&G.down?[[0,0],[r,-B],[u-r,-B],[u,0]]:G.right&&G.up&&G.down?[[0,0],[u,-r],[u,-B+r],[0,-B]]:G.left&&G.up&&G.down?[[u,-0],[0,-r],[0,-B+r],[u,-B]]:G.right&&G.left?[[r,0],[r,-C],[u-r,-C],[u-r,0],[u,-B/2],[u-r,-B],[u-r,-B+C],[r,-B+C],[r,-B],[0,-B/2]]:G.up&&G.down?[[u/2,0],[0,-C],[r,-C],[r,-B+C],[0,-B+C],[u/2,-B],[u,-B+C],[u-r,-B+C],[u-r,-C],[u,-C]]:G.right&&G.up?[[0,0],[u,-r],[0,-B]]:G.right&&G.down?[[0,0],[u,0],[0,-B]]:G.left&&G.up?[[u,0],[0,-r],[u,-B]]:G.left&&G.down?[[u,0],[0,0],[u,-B]]:G.right?[[r,-C],[u-r,-C],[u-r,0],[u,-B/2],[u-r,-B],[u-r,-B+C],[r,-B+C]]:G.left?[[r,0],[r,-C],[u-r,-C],[u-r,-B+C],[r,-B+C],[r,-B],-[0,-B/2]]:G.up?[[r,-C],[r,-B+C],[0,-B+C],[u/2,-B],[u,-B+C],[u-r,-B+C],[u-r,-C]]:G.down?[[u/2,0],[0,-C],[r,-C],[r,-B+C],[u-r,-B+C],[u-r,-C],[u,-C]]:[[0,0],[u,0],[u,-B],[0,-B]];g.moveTo(u[0][0],B+u[0][1]);for(r=1;r<u.length;r++)g.lineTo(u[r][0],B+u[r][1]);g.close();g.end()};mxCellRenderer.registerShape("mermaidBlockArrow",Ab);mxUtils.extend(Db,mxConnector);Db.prototype.defaultWidth=10;Db.prototype.getEdgeWidth=function(){return Math.max(1,mxUtils.getNumber(this.style,"width",this.defaultWidth))};Db.prototype.getSvgScreenOffset=-function(){return 0};Db.prototype.augmentBoundingBox=function(g){mxShape.prototype.augmentBoundingBox.apply(this,arguments);var r=(this.getEdgeWidth()/2+this.strokewidth)*this.scale;g.y-=r;g.height+=2*r};Db.prototype.paintEdgeShape=function(g,r){var C=r[0],u=r[r.length-1];if(null!=C&&null!=u){r=C.x;C=C.y;var B=u.x;u=u.y;for(var G=(r+B)/2,I=this.getEdgeWidth()/2,ba=[],U=[],za=0;32>=za;za++){var pa=za/32,Wa=1-pa,ub=Wa*Wa*Wa*r+3*Wa*Wa*pa*G+3*Wa*pa*pa*G+pa*pa*pa*B,jb=Wa*Wa*Wa*C+3*Wa*Wa*pa*C+3*Wa*pa*pa*-u+pa*pa*pa*u,Ra=3*Wa*Wa*(G-r)+3*pa*pa*(B-G);Wa=6*Wa*pa*(u-C);pa=Math.sqrt(Ra*Ra+Wa*Wa);0==pa&&(Ra=1,Wa=0,pa=1);Wa=-Wa/pa*I;Ra=Ra/pa*I;ba.push(new mxPoint(ub+Wa,jb+Ra));U.push(new mxPoint(ub-Wa,jb-Ra))}g.begin();g.moveTo(ba[0].x,ba[0].y);for(za=1;32>=za;za++)g.lineTo(ba[za].x,ba[za].y);for(za=32;0<=za;za--)g.lineTo(U[za].x,U[za].y);g.close();r=g.node;g.fillAndStroke();null!=r&&null!=r.setAttribute&&null!=r.parentNode&&(g=r.getAttribute("style"),r.setAttribute("style",(null!=g&&""!=g?g+";":"")+"mix-blend-mode:multiply"))}};-mxCellRenderer.registerShape("mermaidSankeyLink",Db);if("undefined"!==typeof mxVertexHandler){var ib=function(g,r,C){return kb(g,["width"],r,function(u,B,G,I,ba){ba=g.shape.getEdgeWidth()*g.view.scale+C;return new mxPoint(I.x+B*u/4+G*ba/2,I.y+G*u/4-B*ba/2)},function(u,B,G,I,ba,U){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));g.style.width=Math.round(Math.round(2*u)/g.view.scale-C)})},kb=function(g,r,C,u,B){return qb(g,r,function(G){var I=g.absolutePoints;if(null!=I&&0<I.length){var ba=-I.length-1;G=g.view.translate;var U=g.view.scale,za=C?I[0]:I[ba];I=C?I[1]:I[ba-1];ba=I.x-za.x;var pa=I.y-za.y,Wa=Math.sqrt(ba*ba+pa*pa);za=u.call(this,Wa,ba/Wa,pa/Wa,za,I);return new mxPoint(za.x/U-G.x,za.y/U-G.y)}return null},function(G,I,ba){var U=g.absolutePoints,za=U.length-1;G=g.view.translate;var pa=g.view.scale,Wa=C?U[0]:U[za];U=C?U[1]:U[za-1];za=U.x-Wa.x;var ub=U.y-Wa.y,jb=Math.sqrt(za*za+ub*ub);I.x=(I.x+G.x)*pa;I.y=(I.y+G.y)*pa;B.call(this,jb,za/jb,ub/jb,Wa,U,I,ba)})},pb=function(g,r){return function(C){return[kb(C,-["startWidth"],!0,function(u,B,G,I,ba){ba=mxUtils.getNumber(C.style,"startWidth",g)*C.view.scale+r;return new mxPoint(I.x+B*u/4+G*ba/2,I.y+G*u/4-B*ba/2)},function(u,B,G,I,ba,U){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));C.style.startWidth=Math.round(2*u)/C.view.scale-r})]}},sb=function(g){return function(r){return[qb(r,["arrowWidth","arrowSize"],function(C){var u=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"arrowWidth",Va.prototype.arrowWidth))),B=Math.max(0,Math.min(g,-mxUtils.getValue(this.state.style,"arrowSize",Va.prototype.arrowSize)));return new mxPoint(C.x+(1-B)*C.width,C.y+(1-u)*C.height/2)},function(C,u){this.state.style.arrowWidth=Math.max(0,Math.min(1,Math.abs(C.y+C.height/2-u.y)/C.height*2));this.state.style.arrowSize=Math.max(0,Math.min(g,(C.x+C.width-u.x)/C.width))})]}},gb=function(g){return function(r){return[qb(r,["size"],function(C){var u=Math.max(0,Math.min(.5*C.height,parseFloat(mxUtils.getValue(this.state.style,"size",g))));return new mxPoint(C.x,-C.y+u)},function(C,u){this.state.style.size=Math.max(0,u.y-C.y)},!0)]}},hb=function(g,r,C){return function(u){var B=[qb(u,["size"],function(G){var I=Math.max(0,Math.min(G.width,Math.min(G.height,parseFloat(mxUtils.getValue(this.state.style,"size",r)))))*g;return new mxPoint(G.x+I,G.y+I)},function(G,I){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(G.width,I.x-G.x),Math.min(G.height,I.y-G.y)))/g)},!1)];C&&mxUtils.getValue(u.style,mxConstants.STYLE_ROUNDED,!1)&&B.push(tb(u));return B}},-bb=function(g,r,C,u,B){C=null!=C?C:.5;return function(G){var I=[qb(G,["size"],function(ba){var U=null!=B?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,za=parseFloat(mxUtils.getValue(this.state.style,"size",U?B:g));return new mxPoint(ba.x+Math.max(0,Math.min(.5*ba.width,za*(U?1:ba.width))),ba.getCenterY())},function(ba,U,za){ba=null!=B&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?U.x-ba.x:Math.max(0,Math.min(C,(U.x-ba.x)/ba.width));this.state.style.size=ba},!1,u)];r&&mxUtils.getValue(G.style,-mxConstants.STYLE_ROUNDED,!1)&&I.push(tb(G));return I}},yb=function(g,r,C){g=null!=g?g:.5;return function(u){var B=[qb(u,["size"],function(G){var I=null!=C?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,ba=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,"size",I?C:r)));return new mxPoint(G.x+Math.min(.75*G.width*g,ba*(I?.75:.75*G.width)),G.y+G.height/4)},function(G,I){G=null!=C&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?I.x-G.x:Math.max(0,Math.min(g,(I.x-G.x)/G.width*-.75));this.state.style.size=G},!1,!0)];mxUtils.getValue(u.style,mxConstants.STYLE_ROUNDED,!1)&&B.push(tb(u));return B}},vb=function(){return function(g){var r=[];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r}},tb=function(g,r){return qb(g,[mxConstants.STYLE_ARCSIZE],function(C){var u=null!=r?r:C.height/8;if("1"==mxUtils.getValue(g.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)){var B=mxUtils.getValue(g.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;return new mxPoint(C.x+-C.width-Math.min(C.width/2,B),C.y+u)}B=Math.max(0,parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)))/100;return new mxPoint(C.x+C.width-Math.min(Math.max(C.width/2,C.height/2),Math.min(C.width,C.height)*B),C.y+u)},function(C,u,B){"1"==mxUtils.getValue(g.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(C.width,2*(C.x+C.width-u.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=-Math.round(Math.min(50,Math.max(0,100*(C.width-u.x+C.x)/Math.min(C.width,C.height))))})},qb=function(g,r,C,u,B,G,I){var ba=new mxHandle(g,null,mxVertexHandler.prototype.secondaryHandleImage);ba.execute=function(za){for(var pa=0;pa<r.length;pa++)this.copyStyle(r[pa]);I&&I(za)};ba.getPosition=C;ba.setPosition=u;ba.ignoreGrid=null!=B?B:!0;if(G){var U=ba.positionChanged;ba.positionChanged=function(){U.apply(this,arguments);g.view.invalidate(this.state.cell);g.view.validate()}}return ba},Ib={link:function(g){return[ib(g,-!0,10),ib(g,!1,10)]},pipe:function(g){return[ib(g,!0,10),ib(g,!1,10)]},flexArrow:function(g){var r=g.view.graph.gridSize/g.view.scale,C=[];mxUtils.getValue(g.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(C.push(kb(g,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!0,function(u,B,G,I,ba){u=(g.shape.getEdgeWidth()-g.shape.strokewidth)*g.view.scale;ba=3*mxUtils.getNumber(g.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*g.view.scale;return new mxPoint(I.x+-B*(ba+g.shape.strokewidth*g.view.scale)+G*u/2,I.y+G*(ba+g.shape.strokewidth*g.view.scale)-B*u/2)},function(u,B,G,I,ba,U,za){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));B=mxUtils.ptLineDist(I.x,I.y,I.x+G,I.y-B,U.x,U.y);g.style[mxConstants.STYLE_STARTSIZE]=Math.round((B-g.shape.strokewidth)/3/g.view.scale);g.style.width=Math.round(2*u/g.view.scale);if(mxEvent.isShiftDown(za.getEvent())||mxEvent.isControlDown(za.getEvent()))g.style[mxConstants.STYLE_ENDSIZE]=g.style[mxConstants.STYLE_STARTSIZE];-mxEvent.isAltDown(za.getEvent())||Math.abs(parseFloat(g.style[mxConstants.STYLE_STARTSIZE])-parseFloat(g.style[mxConstants.STYLE_ENDSIZE]))<r/6&&(g.style[mxConstants.STYLE_STARTSIZE]=g.style[mxConstants.STYLE_ENDSIZE])})),C.push(kb(g,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!0,function(u,B,G,I,ba){u=(g.shape.getStartArrowWidth()-g.shape.strokewidth)*g.view.scale;ba=3*mxUtils.getNumber(g.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*g.view.scale;-return new mxPoint(I.x+B*(ba+g.shape.strokewidth*g.view.scale)+G*u/2,I.y+G*(ba+g.shape.strokewidth*g.view.scale)-B*u/2)},function(u,B,G,I,ba,U,za){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));B=mxUtils.ptLineDist(I.x,I.y,I.x+G,I.y-B,U.x,U.y);g.style[mxConstants.STYLE_STARTSIZE]=Math.round((B-g.shape.strokewidth)/3/g.view.scale);g.style.startWidth=Math.round(Math.max(0,Math.round(2*u)-g.shape.getEdgeWidth())/g.view.scale);if(mxEvent.isShiftDown(za.getEvent())||mxEvent.isControlDown(za.getEvent()))g.style[mxConstants.STYLE_ENDSIZE]=+za.appendChild(Wa);ub.appendChild(za);g.root.appendChild(ub);this._curvedTextGroup=ub}else g.text(r+v/2,C+B/2,0,0,G,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,!1,"",null,!1,0)}}};Gb.prototype.destroy=function(){null!=this._curvedTextGroup&&null!=this._curvedTextGroup.parentNode&&this._curvedTextGroup.parentNode.removeChild(this._curvedTextGroup);this._curvedTextGroup=null;mxRectangleShape.prototype.destroy.apply(this,arguments)};mxCellRenderer.registerShape("curvedText",Gb);mxUtils.extend(Ob,+mxActor);Ob.prototype.tabSize=8;Ob.prototype.tabInset=4;Ob.prototype.holeSize=1;Ob.prototype.isRoundable=function(){return!1};Ob.prototype.redrawPath=function(g,r,C,v,B){r=Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"tabSize",this.tabSize))));var G=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"tabInset",this.tabInset))));C=(B-G)/2;G=C+G;g.moveTo(0,C);g.lineTo(0,G);g.lineTo(r,B);g.lineTo(v,B);g.lineTo(v,0);g.lineTo(r,0);g.close();g.end()};Ob.prototype.paintVertexShape=+function(g,r,C,v,B){mxActor.prototype.paintVertexShape.apply(this,arguments);var G=Math.max(0,parseFloat(mxUtils.getValue(this.style,"holeSize",this.holeSize)));if(!(0>=G)){var I=parseFloat(mxUtils.getValue(this.style,"tabSize",this.tabSize)),ba=mxUtils.getValue(this.style,"holeColor",mxUtils.getValue(this.style,mxConstants.STYLE_FONTCOLOR,"#333333"));g.setFillColor(ba);g.setStrokeColor(ba);g.begin();g.ellipse(I/2-G,B/2-G,2*G,2*G);g.fillAndStroke()}};Ob.prototype.getLabelBounds=function(g){var r=+parseFloat(mxUtils.getValue(this.style,"tabSize",this.tabSize))*this.scale;return new mxRectangle(g.x+r,g.y,g.width-r,g.height)};mxCellRenderer.registerShape("gitTag",Ob);mxUtils.extend(ac,mxShape);ac.prototype.paintVertexShape=function(g,r,C,v,B){var G=mxUtils.getValue(this.style,"innerColor","#ECECFF");g.translate(r,C);g.ellipse(0,0,v,B);g.fillAndStroke();r=.6*Math.min(v,B);v=(v-r)/2;B=(B-r)/2;g.setFillColor(G);g.setStrokeColor(G);g.ellipse(v,B,r,r);g.fillAndStroke()};mxCellRenderer.registerShape("gitMergeCommit",+ac);mxUtils.extend(Zb,mxShape);Zb.prototype.paintVertexShape=function(g,r,C,v,B){var G=mxUtils.getValue(this.style,"featureColor","#fff");g.translate(r,C);r=v/2;C=B/2;var I=Math.min(v,B)/20;g.ellipse(0,0,v,B);g.fillAndStroke();g.setFillColor(G);g.setStrokeColor(G);g.setStrokeWidth(0);v=2.75*I;g.ellipse(r-3*I-v,C+2*I-v,2*v,2*v);g.fillAndStroke();g.ellipse(r+3*I-v,C+2*I-v,2*v,2*v);g.fillAndStroke();g.setStrokeWidth(1*I);g.begin();g.moveTo(r+3*I,C+1*I);g.lineTo(r,C-5*I);g.stroke();g.begin();g.moveTo(r-+3*I,C+1*I);g.lineTo(r,C-5*I);g.stroke()};mxCellRenderer.registerShape("gitCherryPick",Zb);mxUtils.extend(Vb,mxActor);Vb.prototype.isRoundable=function(){return!1};Vb.prototype.redrawPath=function(g,r,C,v,B){r=.8*v;B*=.8;C=.15*r;v=.8*C;var G=.1*r,I=.1*B;g.moveTo(G,I);G+=.25*r;I+=.1*-B;g.arcTo(C,C,0,0,0,G,I);G+=.25*r;I+=0;g.arcTo(C,C,0,0,0,G,I);G+=.25*r;I+=0;g.arcTo(C,C,0,0,0,G,I);G+=.25*r;I+=.1*B;g.arcTo(C,C,0,0,0,G,I);G+=.15*r;I+=.33*B;g.arcTo(C,C,0,0,0,G,I);G+=0;I+=.34*B;g.arcTo(v,v,0,0,0,G,I);G+=+.15*-r;I+=.33*B;g.arcTo(C,C,0,0,0,G,I);G+=.25*-r;I+=.15*B;g.arcTo(C,C,0,0,0,G,I);G+=.25*-r;I+=0;g.arcTo(C,C,0,0,0,G,I);G+=.25*-r;I+=0;g.arcTo(C,C,0,0,0,G,I);G+=.25*-r;I+=.15*-B;g.arcTo(C,C,0,0,0,G,I);G+=.1*-r;I+=.33*-B;g.arcTo(C,C,0,0,0,G,I);G+=0;I+=.34*-B;g.arcTo(v,v,0,0,0,G,I);g.arcTo(C,C,0,0,0,G+.1*r,I+.33*-B);g.close();g.end()};Vb.prototype.getLabelBounds=function(g){var r=.1*g.width,C=.1*g.height;return new mxRectangle(g.x+r,g.y+C,g.width-2*r,g.height-2*C)};mxCellRenderer.registerShape("mindmapBang",+Vb);mxUtils.extend(Bb,mxActor);Bb.prototype.isRoundable=function(){return!1};Bb.prototype.redrawPath=function(g,r,C,v,B){g.moveTo(0,0);g.lineTo(0,B);g.quadTo(2*v,B/2,0,0);g.close();g.end()};mxCellRenderer.registerShape("ishikawaHead",Bb);mxUtils.extend(Hb,mxActor);Hb.prototype.isRoundable=function(){return!1};Hb.prototype.redrawPath=function(g,r,C,v,B){r=B/4;g.moveTo(0,0);g.lineTo(r,B/2);g.lineTo(0,B);g.lineTo(v,B);g.lineTo(v,0);g.close();g.end()};Hb.prototype.getLabelBounds=function(g){var r=g.height/+4;return new mxRectangle(g.x+r,g.y,g.width-r,g.height)};mxCellRenderer.registerShape("mermaidOdd",Hb);mxUtils.extend(Ab,mxActor);Ab.prototype.isRoundable=function(){return!1};Ab.prototype.paintVertexShape=function(g,r,C,v,B){g.setLineJoin&&g.setLineJoin("round");mxActor.prototype.paintVertexShape.apply(this,arguments)};Ab.prototype.redrawPath=function(g,r,C,v,B){var G={};mxUtils.getValue(this.style,"dirs","right").split(/[,| ]+/).forEach(function(I){I=I.trim().toLowerCase();"x"===I?(G.right=!0,G.left=+!0):"y"===I?(G.up=!0,G.down=!0):I&&(G[I]=!0)});C=parseFloat(mxUtils.getValue(this.style,"nodePadding","8"));r=B/2;C/=2;v=G.right&&G.left&&G.up&&G.down?[[0,0],[r,0],[v/2,2*C],[v-r,0],[v,0],[v,-B/3],[v+2*C,-B/2],[v,-2*B/3],[v,-B],[v-r,-B],[v/2,-B-2*C],[r,-B],[0,-B],[0,-2*B/3],[-2*C,-B/2],[0,-B/3]]:G.right&&G.left&&G.up?[[r,0],[v-r,0],[v,-B/2],[v-r,-B],[r,-B],[0,-B/2]]:G.right&&G.left&&G.down?[[0,0],[r,-B],[v-r,-B],[v,0]]:G.right&&G.up&&G.down?[[0,0],[v,-r],[v,-B+r],[0,-B]]:G.left&&G.up&&G.down?[[v,+0],[0,-r],[0,-B+r],[v,-B]]:G.right&&G.left?[[r,0],[r,-C],[v-r,-C],[v-r,0],[v,-B/2],[v-r,-B],[v-r,-B+C],[r,-B+C],[r,-B],[0,-B/2]]:G.up&&G.down?[[v/2,0],[0,-C],[r,-C],[r,-B+C],[0,-B+C],[v/2,-B],[v,-B+C],[v-r,-B+C],[v-r,-C],[v,-C]]:G.right&&G.up?[[0,0],[v,-r],[0,-B]]:G.right&&G.down?[[0,0],[v,0],[0,-B]]:G.left&&G.up?[[v,0],[0,-r],[v,-B]]:G.left&&G.down?[[v,0],[0,0],[v,-B]]:G.right?[[r,-C],[v-r,-C],[v-r,0],[v,-B/2],[v-r,-B],[v-r,-B+C],[r,-B+C]]:G.left?[[r,0],[r,-C],[v-r,-C],[v-r,-B+C],[r,-B+C],[r,-B],+[0,-B/2]]:G.up?[[r,-C],[r,-B+C],[0,-B+C],[v/2,-B],[v,-B+C],[v-r,-B+C],[v-r,-C]]:G.down?[[v/2,0],[0,-C],[r,-C],[r,-B+C],[v-r,-B+C],[v-r,-C],[v,-C]]:[[0,0],[v,0],[v,-B],[0,-B]];g.moveTo(v[0][0],B+v[0][1]);for(r=1;r<v.length;r++)g.lineTo(v[r][0],B+v[r][1]);g.close();g.end()};mxCellRenderer.registerShape("mermaidBlockArrow",Ab);mxUtils.extend(Db,mxConnector);Db.prototype.defaultWidth=10;Db.prototype.getEdgeWidth=function(){return Math.max(1,mxUtils.getNumber(this.style,"width",this.defaultWidth))};Db.prototype.getSvgScreenOffset=+function(){return 0};Db.prototype.augmentBoundingBox=function(g){mxShape.prototype.augmentBoundingBox.apply(this,arguments);var r=(this.getEdgeWidth()/2+this.strokewidth)*this.scale;g.y-=r;g.height+=2*r};Db.prototype.paintEdgeShape=function(g,r){var C=r[0],v=r[r.length-1];if(null!=C&&null!=v){r=C.x;C=C.y;var B=v.x;v=v.y;for(var G=(r+B)/2,I=this.getEdgeWidth()/2,ba=[],U=[],za=0;32>=za;za++){var pa=za/32,Wa=1-pa,ub=Wa*Wa*Wa*r+3*Wa*Wa*pa*G+3*Wa*pa*pa*G+pa*pa*pa*B,jb=Wa*Wa*Wa*C+3*Wa*Wa*pa*C+3*Wa*pa*pa*+v+pa*pa*pa*v,Ra=3*Wa*Wa*(G-r)+3*pa*pa*(B-G);Wa=6*Wa*pa*(v-C);pa=Math.sqrt(Ra*Ra+Wa*Wa);0==pa&&(Ra=1,Wa=0,pa=1);Wa=-Wa/pa*I;Ra=Ra/pa*I;ba.push(new mxPoint(ub+Wa,jb+Ra));U.push(new mxPoint(ub-Wa,jb-Ra))}g.begin();g.moveTo(ba[0].x,ba[0].y);for(za=1;32>=za;za++)g.lineTo(ba[za].x,ba[za].y);for(za=32;0<=za;za--)g.lineTo(U[za].x,U[za].y);g.close();r=g.node;g.fillAndStroke();null!=r&&null!=r.setAttribute&&null!=r.parentNode&&(g=r.getAttribute("style"),r.setAttribute("style",(null!=g&&""!=g?g+";":"")+"mix-blend-mode:multiply"))}};+mxCellRenderer.registerShape("mermaidSankeyLink",Db);if("undefined"!==typeof mxVertexHandler){var ib=function(g,r,C){return kb(g,["width"],r,function(v,B,G,I,ba){ba=g.shape.getEdgeWidth()*g.view.scale+C;return new mxPoint(I.x+B*v/4+G*ba/2,I.y+G*v/4-B*ba/2)},function(v,B,G,I,ba,U){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));g.style.width=Math.round(Math.round(2*v)/g.view.scale-C)})},kb=function(g,r,C,v,B){return qb(g,r,function(G){var I=g.absolutePoints;if(null!=I&&0<I.length){var ba=+I.length-1;G=g.view.translate;var U=g.view.scale,za=C?I[0]:I[ba];I=C?I[1]:I[ba-1];ba=I.x-za.x;var pa=I.y-za.y,Wa=Math.sqrt(ba*ba+pa*pa);za=v.call(this,Wa,ba/Wa,pa/Wa,za,I);return new mxPoint(za.x/U-G.x,za.y/U-G.y)}return null},function(G,I,ba){var U=g.absolutePoints,za=U.length-1;G=g.view.translate;var pa=g.view.scale,Wa=C?U[0]:U[za];U=C?U[1]:U[za-1];za=U.x-Wa.x;var ub=U.y-Wa.y,jb=Math.sqrt(za*za+ub*ub);I.x=(I.x+G.x)*pa;I.y=(I.y+G.y)*pa;B.call(this,jb,za/jb,ub/jb,Wa,U,I,ba)})},pb=function(g,r){return function(C){return[kb(C,+["startWidth"],!0,function(v,B,G,I,ba){ba=mxUtils.getNumber(C.style,"startWidth",g)*C.view.scale+r;return new mxPoint(I.x+B*v/4+G*ba/2,I.y+G*v/4-B*ba/2)},function(v,B,G,I,ba,U){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));C.style.startWidth=Math.round(2*v)/C.view.scale-r})]}},sb=function(g){return function(r){return[qb(r,["arrowWidth","arrowSize"],function(C){var v=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"arrowWidth",Va.prototype.arrowWidth))),B=Math.max(0,Math.min(g,+mxUtils.getValue(this.state.style,"arrowSize",Va.prototype.arrowSize)));return new mxPoint(C.x+(1-B)*C.width,C.y+(1-v)*C.height/2)},function(C,v){this.state.style.arrowWidth=Math.max(0,Math.min(1,Math.abs(C.y+C.height/2-v.y)/C.height*2));this.state.style.arrowSize=Math.max(0,Math.min(g,(C.x+C.width-v.x)/C.width))})]}},gb=function(g){return function(r){return[qb(r,["size"],function(C){var v=Math.max(0,Math.min(.5*C.height,parseFloat(mxUtils.getValue(this.state.style,"size",g))));return new mxPoint(C.x,+C.y+v)},function(C,v){this.state.style.size=Math.max(0,v.y-C.y)},!0)]}},hb=function(g,r,C){return function(v){var B=[qb(v,["size"],function(G){var I=Math.max(0,Math.min(G.width,Math.min(G.height,parseFloat(mxUtils.getValue(this.state.style,"size",r)))))*g;return new mxPoint(G.x+I,G.y+I)},function(G,I){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(G.width,I.x-G.x),Math.min(G.height,I.y-G.y)))/g)},!1)];C&&mxUtils.getValue(v.style,mxConstants.STYLE_ROUNDED,!1)&&B.push(tb(v));return B}},+bb=function(g,r,C,v,B){C=null!=C?C:.5;return function(G){var I=[qb(G,["size"],function(ba){var U=null!=B?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,za=parseFloat(mxUtils.getValue(this.state.style,"size",U?B:g));return new mxPoint(ba.x+Math.max(0,Math.min(.5*ba.width,za*(U?1:ba.width))),ba.getCenterY())},function(ba,U,za){ba=null!=B&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?U.x-ba.x:Math.max(0,Math.min(C,(U.x-ba.x)/ba.width));this.state.style.size=ba},!1,v)];r&&mxUtils.getValue(G.style,+mxConstants.STYLE_ROUNDED,!1)&&I.push(tb(G));return I}},yb=function(g,r,C){g=null!=g?g:.5;return function(v){var B=[qb(v,["size"],function(G){var I=null!=C?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,ba=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,"size",I?C:r)));return new mxPoint(G.x+Math.min(.75*G.width*g,ba*(I?.75:.75*G.width)),G.y+G.height/4)},function(G,I){G=null!=C&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?I.x-G.x:Math.max(0,Math.min(g,(I.x-G.x)/G.width*+.75));this.state.style.size=G},!1,!0)];mxUtils.getValue(v.style,mxConstants.STYLE_ROUNDED,!1)&&B.push(tb(v));return B}},vb=function(){return function(g){var r=[];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r}},tb=function(g,r){return qb(g,[mxConstants.STYLE_ARCSIZE],function(C){var v=null!=r?r:C.height/8;if("1"==mxUtils.getValue(g.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)){var B=mxUtils.getValue(g.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;return new mxPoint(C.x++C.width-Math.min(C.width/2,B),C.y+v)}B=Math.max(0,parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)))/100;return new mxPoint(C.x+C.width-Math.min(Math.max(C.width/2,C.height/2),Math.min(C.width,C.height)*B),C.y+v)},function(C,v,B){"1"==mxUtils.getValue(g.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(C.width,2*(C.x+C.width-v.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=+Math.round(Math.min(50,Math.max(0,100*(C.width-v.x+C.x)/Math.min(C.width,C.height))))})},qb=function(g,r,C,v,B,G,I){var ba=new mxHandle(g,null,mxVertexHandler.prototype.secondaryHandleImage);ba.execute=function(za){for(var pa=0;pa<r.length;pa++)this.copyStyle(r[pa]);I&&I(za)};ba.getPosition=C;ba.setPosition=v;ba.ignoreGrid=null!=B?B:!0;if(G){var U=ba.positionChanged;ba.positionChanged=function(){U.apply(this,arguments);g.view.invalidate(this.state.cell);g.view.validate()}}return ba},Ib={link:function(g){return[ib(g,+!0,10),ib(g,!1,10)]},pipe:function(g){return[ib(g,!0,10),ib(g,!1,10)]},flexArrow:function(g){var r=g.view.graph.gridSize/g.view.scale,C=[];mxUtils.getValue(g.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(C.push(kb(g,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!0,function(v,B,G,I,ba){v=(g.shape.getEdgeWidth()-g.shape.strokewidth)*g.view.scale;ba=3*mxUtils.getNumber(g.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*g.view.scale;return new mxPoint(I.x++B*(ba+g.shape.strokewidth*g.view.scale)+G*v/2,I.y+G*(ba+g.shape.strokewidth*g.view.scale)-B*v/2)},function(v,B,G,I,ba,U,za){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));B=mxUtils.ptLineDist(I.x,I.y,I.x+G,I.y-B,U.x,U.y);g.style[mxConstants.STYLE_STARTSIZE]=Math.round((B-g.shape.strokewidth)/3/g.view.scale);g.style.width=Math.round(2*v/g.view.scale);if(mxEvent.isShiftDown(za.getEvent())||mxEvent.isControlDown(za.getEvent()))g.style[mxConstants.STYLE_ENDSIZE]=g.style[mxConstants.STYLE_STARTSIZE];+mxEvent.isAltDown(za.getEvent())||Math.abs(parseFloat(g.style[mxConstants.STYLE_STARTSIZE])-parseFloat(g.style[mxConstants.STYLE_ENDSIZE]))<r/6&&(g.style[mxConstants.STYLE_STARTSIZE]=g.style[mxConstants.STYLE_ENDSIZE])})),C.push(kb(g,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!0,function(v,B,G,I,ba){v=(g.shape.getStartArrowWidth()-g.shape.strokewidth)*g.view.scale;ba=3*mxUtils.getNumber(g.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*g.view.scale;+return new mxPoint(I.x+B*(ba+g.shape.strokewidth*g.view.scale)+G*v/2,I.y+G*(ba+g.shape.strokewidth*g.view.scale)-B*v/2)},function(v,B,G,I,ba,U,za){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));B=mxUtils.ptLineDist(I.x,I.y,I.x+G,I.y-B,U.x,U.y);g.style[mxConstants.STYLE_STARTSIZE]=Math.round((B-g.shape.strokewidth)/3/g.view.scale);g.style.startWidth=Math.round(Math.max(0,Math.round(2*v)-g.shape.getEdgeWidth())/g.view.scale);if(mxEvent.isShiftDown(za.getEvent())||mxEvent.isControlDown(za.getEvent()))g.style[mxConstants.STYLE_ENDSIZE]=g.style[mxConstants.STYLE_STARTSIZE],g.style.endWidth=g.style.startWidth;mxEvent.isAltDown(za.getEvent())||(Math.abs(parseFloat(g.style[mxConstants.STYLE_STARTSIZE])-parseFloat(g.style[mxConstants.STYLE_ENDSIZE]))<r/6&&(g.style[mxConstants.STYLE_STARTSIZE]=g.style[mxConstants.STYLE_ENDSIZE]),Math.abs(parseFloat(g.style.startWidth)-parseFloat(g.style.endWidth))<r&&(g.style.startWidth=g.style.endWidth))})));mxUtils.getValue(g.style,mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE&&(C.push(kb(g,-["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(u,B,G,I,ba){u=(g.shape.getEdgeWidth()-g.shape.strokewidth)*g.view.scale;ba=3*mxUtils.getNumber(g.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*g.view.scale;return new mxPoint(I.x+B*(ba+g.shape.strokewidth*g.view.scale)-G*u/2,I.y+G*(ba+g.shape.strokewidth*g.view.scale)+B*u/2)},function(u,B,G,I,ba,U,za){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));B=mxUtils.ptLineDist(I.x,I.y,I.x+G,I.y-B,U.x,U.y);-g.style[mxConstants.STYLE_ENDSIZE]=Math.round((B-g.shape.strokewidth)/3/g.view.scale);g.style.width=Math.round(2*u/g.view.scale);if(mxEvent.isShiftDown(za.getEvent())||mxEvent.isControlDown(za.getEvent()))g.style[mxConstants.STYLE_STARTSIZE]=g.style[mxConstants.STYLE_ENDSIZE];mxEvent.isAltDown(za.getEvent())||Math.abs(parseFloat(g.style[mxConstants.STYLE_ENDSIZE])-parseFloat(g.style[mxConstants.STYLE_STARTSIZE]))<r/6&&(g.style[mxConstants.STYLE_ENDSIZE]=g.style[mxConstants.STYLE_STARTSIZE])})),C.push(kb(g,-["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(u,B,G,I,ba){u=(g.shape.getEndArrowWidth()-g.shape.strokewidth)*g.view.scale;ba=3*mxUtils.getNumber(g.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*g.view.scale;return new mxPoint(I.x+B*(ba+g.shape.strokewidth*g.view.scale)-G*u/2,I.y+G*(ba+g.shape.strokewidth*g.view.scale)+B*u/2)},function(u,B,G,I,ba,U,za){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));B=mxUtils.ptLineDist(I.x,I.y,I.x+-G,I.y-B,U.x,U.y);g.style[mxConstants.STYLE_ENDSIZE]=Math.round((B-g.shape.strokewidth)/3/g.view.scale);g.style.endWidth=Math.round(Math.max(0,Math.round(2*u)-g.shape.getEdgeWidth())/g.view.scale);if(mxEvent.isShiftDown(za.getEvent())||mxEvent.isControlDown(za.getEvent()))g.style[mxConstants.STYLE_STARTSIZE]=g.style[mxConstants.STYLE_ENDSIZE],g.style.startWidth=g.style.endWidth;mxEvent.isAltDown(za.getEvent())||(Math.abs(parseFloat(g.style[mxConstants.STYLE_ENDSIZE])-parseFloat(g.style[mxConstants.STYLE_STARTSIZE]))<-r/6&&(g.style[mxConstants.STYLE_ENDSIZE]=g.style[mxConstants.STYLE_STARTSIZE]),Math.abs(parseFloat(g.style.endWidth)-parseFloat(g.style.startWidth))<r&&(g.style.endWidth=g.style.startWidth))})));return C},swimlane:function(g){var r=[];if(mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED)){var C=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));r.push(tb(g,C/2))}r.push(qb(g,[mxConstants.STYLE_STARTSIZE],function(u){var B=parseFloat(mxUtils.getValue(g.style,-mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));return 1==mxUtils.getValue(g.style,mxConstants.STYLE_HORIZONTAL,1)?new mxPoint(u.getCenterX(),u.y+Math.max(0,Math.min(u.height,B))):new mxPoint(u.x+Math.max(0,Math.min(u.width,B)),u.getCenterY())},function(u,B){g.style[mxConstants.STYLE_STARTSIZE]=1==mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,1)?Math.round(Math.max(0,Math.min(u.height,B.y-u.y))):Math.round(Math.max(0,Math.min(u.width,B.x-u.x)))},!1,null,function(u){var B=-g.view.graph;if(!mxEvent.isShiftDown(u.getEvent())&&!mxEvent.isControlDown(u.getEvent())&&(B.isTableRow(g.cell)||B.isTableCell(g.cell))){u=B.getSwimlaneDirection(g.style);var G=B.model.getParent(g.cell);G=B.model.getChildCells(G,!0);for(var I=[],ba=0;ba<G.length;ba++)G[ba]!=g.cell&&B.isSwimlane(G[ba])&&B.getSwimlaneDirection(B.getCurrentCellStyle(G[ba]))==u&&I.push(G[ba]);B.setCellStyles(mxConstants.STYLE_STARTSIZE,g.style[mxConstants.STYLE_STARTSIZE],I)}}));return r},label:vb(),ext:vb(),rectangle:vb(),+["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(v,B,G,I,ba){v=(g.shape.getEdgeWidth()-g.shape.strokewidth)*g.view.scale;ba=3*mxUtils.getNumber(g.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*g.view.scale;return new mxPoint(I.x+B*(ba+g.shape.strokewidth*g.view.scale)-G*v/2,I.y+G*(ba+g.shape.strokewidth*g.view.scale)+B*v/2)},function(v,B,G,I,ba,U,za){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));B=mxUtils.ptLineDist(I.x,I.y,I.x+G,I.y-B,U.x,U.y);+g.style[mxConstants.STYLE_ENDSIZE]=Math.round((B-g.shape.strokewidth)/3/g.view.scale);g.style.width=Math.round(2*v/g.view.scale);if(mxEvent.isShiftDown(za.getEvent())||mxEvent.isControlDown(za.getEvent()))g.style[mxConstants.STYLE_STARTSIZE]=g.style[mxConstants.STYLE_ENDSIZE];mxEvent.isAltDown(za.getEvent())||Math.abs(parseFloat(g.style[mxConstants.STYLE_ENDSIZE])-parseFloat(g.style[mxConstants.STYLE_STARTSIZE]))<r/6&&(g.style[mxConstants.STYLE_ENDSIZE]=g.style[mxConstants.STYLE_STARTSIZE])})),C.push(kb(g,+["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(v,B,G,I,ba){v=(g.shape.getEndArrowWidth()-g.shape.strokewidth)*g.view.scale;ba=3*mxUtils.getNumber(g.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*g.view.scale;return new mxPoint(I.x+B*(ba+g.shape.strokewidth*g.view.scale)-G*v/2,I.y+G*(ba+g.shape.strokewidth*g.view.scale)+B*v/2)},function(v,B,G,I,ba,U,za){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));B=mxUtils.ptLineDist(I.x,I.y,I.x++G,I.y-B,U.x,U.y);g.style[mxConstants.STYLE_ENDSIZE]=Math.round((B-g.shape.strokewidth)/3/g.view.scale);g.style.endWidth=Math.round(Math.max(0,Math.round(2*v)-g.shape.getEdgeWidth())/g.view.scale);if(mxEvent.isShiftDown(za.getEvent())||mxEvent.isControlDown(za.getEvent()))g.style[mxConstants.STYLE_STARTSIZE]=g.style[mxConstants.STYLE_ENDSIZE],g.style.startWidth=g.style.endWidth;mxEvent.isAltDown(za.getEvent())||(Math.abs(parseFloat(g.style[mxConstants.STYLE_ENDSIZE])-parseFloat(g.style[mxConstants.STYLE_STARTSIZE]))<+r/6&&(g.style[mxConstants.STYLE_ENDSIZE]=g.style[mxConstants.STYLE_STARTSIZE]),Math.abs(parseFloat(g.style.endWidth)-parseFloat(g.style.startWidth))<r&&(g.style.endWidth=g.style.startWidth))})));return C},swimlane:function(g){var r=[];if(mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED)){var C=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));r.push(tb(g,C/2))}r.push(qb(g,[mxConstants.STYLE_STARTSIZE],function(v){var B=parseFloat(mxUtils.getValue(g.style,+mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));return 1==mxUtils.getValue(g.style,mxConstants.STYLE_HORIZONTAL,1)?new mxPoint(v.getCenterX(),v.y+Math.max(0,Math.min(v.height,B))):new mxPoint(v.x+Math.max(0,Math.min(v.width,B)),v.getCenterY())},function(v,B){g.style[mxConstants.STYLE_STARTSIZE]=1==mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,1)?Math.round(Math.max(0,Math.min(v.height,B.y-v.y))):Math.round(Math.max(0,Math.min(v.width,B.x-v.x)))},!1,null,function(v){var B=+g.view.graph;if(!mxEvent.isShiftDown(v.getEvent())&&!mxEvent.isControlDown(v.getEvent())&&(B.isTableRow(g.cell)||B.isTableCell(g.cell))){v=B.getSwimlaneDirection(g.style);var G=B.model.getParent(g.cell);G=B.model.getChildCells(G,!0);for(var I=[],ba=0;ba<G.length;ba++)G[ba]!=g.cell&&B.isSwimlane(G[ba])&&B.getSwimlaneDirection(B.getCurrentCellStyle(G[ba]))==v&&I.push(G[ba]);B.setCellStyles(mxConstants.STYLE_STARTSIZE,g.style[mxConstants.STYLE_STARTSIZE],I)}}));return r},label:vb(),ext:vb(),rectangle:vb(),triangle:vb(),rhombus:vb(),umlLifeline:function(g){return[qb(g,["size"],function(r){var C=Math.max(0,Math.min(r.height,parseFloat(mxUtils.getValue(this.state.style,"size",Ba.prototype.size))));return new mxPoint(r.getCenterX(),r.y+C)},function(r,C){this.state.style.size=Math.round(Math.max(0,Math.min(r.height,C.y-r.y)))},!1)]},umlFrame:function(g){return[qb(g,["width","height"],function(r){var C=Math.max(na.prototype.corner,Math.min(r.width,mxUtils.getValue(this.state.style,"width",na.prototype.width))),-u=Math.max(1.5*na.prototype.corner,Math.min(r.height,mxUtils.getValue(this.state.style,"height",na.prototype.height)));return new mxPoint(r.x+C,r.y+u)},function(r,C){this.state.style.width=Math.round(Math.max(na.prototype.corner,Math.min(r.width,C.x-r.x)));this.state.style.height=Math.round(Math.max(1.5*na.prototype.corner,Math.min(r.height,C.y-r.y)))},!1)]},process:function(g){var r=[qb(g,["size"],function(C){var u="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),B=parseFloat(mxUtils.getValue(this.state.style,-"size",ja.prototype.size));return u?new mxPoint(C.x+B,C.y+C.height/4):new mxPoint(C.x+C.width*B,C.y+C.height/4)},function(C,u){C="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(.5*C.width,u.x-C.x)):Math.max(0,Math.min(.5,(u.x-C.x)/C.width));this.state.style.size=C},!1)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r},cross:function(g){return[qb(g,["size"],function(r){var C=Math.min(r.width,r.height);C=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,-"size",Mb.prototype.size)))*C/2;return new mxPoint(r.getCenterX()-C,r.getCenterY()-C)},function(r,C){var u=Math.min(r.width,r.height);this.state.style.size=Math.max(0,Math.min(1,Math.min(Math.max(0,r.getCenterY()-C.y)/u*2,Math.max(0,r.getCenterX()-C.x)/u*2)))})]},note:function(g){return[qb(g,["size"],function(r){var C=Math.max(0,Math.min(r.width,Math.min(r.height,parseFloat(mxUtils.getValue(this.state.style,"size",F.prototype.size)))));return new mxPoint(r.x+r.width-C,r.y+C)},function(r,C){this.state.style.size=-Math.round(Math.max(0,Math.min(Math.min(r.width,r.x+r.width-C.x),Math.min(r.height,C.y-r.y))))})]},note2:function(g){return[qb(g,["size"],function(r){var C=Math.max(0,Math.min(r.width,Math.min(r.height,parseFloat(mxUtils.getValue(this.state.style,"size",N.prototype.size)))));return new mxPoint(r.x+r.width-C,r.y+C)},function(r,C){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(r.width,r.x+r.width-C.x),Math.min(r.height,C.y-r.y))))})]},manualInput:function(g){var r=[qb(g,["size"],function(C){var u=-Math.max(0,Math.min(C.height,mxUtils.getValue(this.state.style,"size",Aa.prototype.size)));return new mxPoint(C.x+C.width/4,C.y+3*u/4)},function(C,u){this.state.style.size=Math.round(Math.max(0,Math.min(C.height,4*(u.y-C.y)/3)))},!1)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r},dataStorage:function(g){return[qb(g,["size"],function(r){var C="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),u=parseFloat(mxUtils.getValue(this.state.style,"size",C?Ea.prototype.fixedSize:-Ea.prototype.size));return new mxPoint(r.x+r.width-u*(C?1:r.width),r.getCenterY())},function(r,C){r="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(r.width,r.x+r.width-C.x)):Math.max(0,Math.min(1,(r.x+r.width-C.x)/r.width));this.state.style.size=r},!1)]},callout:function(g){var r=[qb(g,["size","position"],function(C){var u=Math.max(0,Math.min(C.height,mxUtils.getValue(this.state.style,"size",ua.prototype.size))),B=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,-"position",ua.prototype.position)));mxUtils.getValue(this.state.style,"base",ua.prototype.base);return new mxPoint(C.x+B*C.width,C.y+C.height-u)},function(C,u){mxUtils.getValue(this.state.style,"base",ua.prototype.base);this.state.style.size=Math.round(Math.max(0,Math.min(C.height,C.y+C.height-u.y)));this.state.style.position=Math.round(100*Math.max(0,Math.min(1,(u.x-C.x)/C.width)))/100},!1),qb(g,["position2"],function(C){var u=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position2",ua.prototype.position2)));-return new mxPoint(C.x+u*C.width,C.y+C.height)},function(C,u){this.state.style.position2=Math.round(100*Math.max(0,Math.min(1,(u.x-C.x)/C.width)))/100},!1),qb(g,["base"],function(C){var u=Math.max(0,Math.min(C.height,mxUtils.getValue(this.state.style,"size",ua.prototype.size))),B=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ua.prototype.position))),G=Math.max(0,Math.min(C.width,mxUtils.getValue(this.state.style,"base",ua.prototype.base)));return new mxPoint(C.x+Math.min(C.width,-B*C.width+G),C.y+C.height-u)},function(C,u){var B=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ua.prototype.position)));this.state.style.base=Math.round(Math.max(0,Math.min(C.width,u.x-C.x-B*C.width)))},!1)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r},wedgeCallout:function(g){var r=[qb(g,["tipX","tipY"],function(C){var u=null!=this.state.shape?this.state.shape.getTipOffset():new mxPoint(Ca.prototype.tipX,Ca.prototype.tipY);return new mxPoint(C.getCenterX()+-u.x*C.width,C.getCenterY()+u.y*C.height)},function(C,u){var B=Ca.prototype.maxTipOffset;this.state.style.tipX=Math.round(1E3*Math.max(-B,Math.min(B,(u.x-C.getCenterX())/Math.max(1,C.width))))/1E3;this.state.style.tipY=Math.round(1E3*Math.max(-B,Math.min(B,(u.y-C.getCenterY())/Math.max(1,C.height))))/1E3},!1)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r},internalStorage:function(g){var r=[qb(g,["dx","dy"],function(C){var u=Math.max(0,Math.min(C.width,mxUtils.getValue(this.state.style,-"dx",Ja.prototype.dx))),B=Math.max(0,Math.min(C.height,mxUtils.getValue(this.state.style,"dy",Ja.prototype.dy)));return new mxPoint(C.x+u,C.y+B)},function(C,u){this.state.style.dx=Math.round(Math.max(0,Math.min(C.width,u.x-C.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(C.height,u.y-C.y)))},!1)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r},module:function(g){return[qb(g,["jettyWidth","jettyHeight"],function(r){var C=Math.max(0,Math.min(r.width,mxUtils.getValue(this.state.style,-"jettyWidth",Ga.prototype.jettyWidth))),u=Math.max(0,Math.min(r.height,mxUtils.getValue(this.state.style,"jettyHeight",Ga.prototype.jettyHeight)));return new mxPoint(r.x+C/2,r.y+2*u)},function(r,C){this.state.style.jettyWidth=Math.round(2*Math.max(0,Math.min(r.width,C.x-r.x)));this.state.style.jettyHeight=Math.round(Math.max(0,Math.min(r.height,C.y-r.y))/2)})]},corner:function(g){return[qb(g,["dx","dy"],function(r){var C=Math.max(0,Math.min(r.width,mxUtils.getValue(this.state.style,"dx",Ia.prototype.dx))),-u=Math.max(0,Math.min(r.height,mxUtils.getValue(this.state.style,"dy",Ia.prototype.dy)));return new mxPoint(r.x+C,r.y+u)},function(r,C){this.state.style.dx=Math.round(Math.max(0,Math.min(r.width,C.x-r.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(r.height,C.y-r.y)))},!1)]},tee:function(g){return[qb(g,["dx","dy"],function(r){var C=Math.max(0,Math.min(r.width,mxUtils.getValue(this.state.style,"dx",ab.prototype.dx))),u=Math.max(0,Math.min(r.height,mxUtils.getValue(this.state.style,"dy",ab.prototype.dy)));-return new mxPoint(r.x+(r.width+C)/2,r.y+u)},function(r,C){this.state.style.dx=Math.round(Math.max(0,2*Math.min(r.width/2,C.x-r.x-r.width/2)));this.state.style.dy=Math.round(Math.max(0,Math.min(r.height,C.y-r.y)))},!1)]},singleArrow:sb(1),doubleArrow:sb(.5),"mxgraph.arrows2.wedgeArrow":pb(20,20),"mxgraph.arrows2.wedgeArrowDashed":pb(20,20),"mxgraph.arrows2.wedgeArrowDashed2":pb(20,20),folder:function(g){return[qb(g,["tabWidth","tabHeight"],function(r){var C=Math.max(0,Math.min(r.width,mxUtils.getValue(this.state.style,-"tabWidth",q.prototype.tabWidth))),u=Math.max(0,Math.min(r.height,mxUtils.getValue(this.state.style,"tabHeight",q.prototype.tabHeight)));mxUtils.getValue(this.state.style,"tabPosition",q.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(C=r.width-C);return new mxPoint(r.x+C,r.y+u)},function(r,C){var u=Math.max(0,Math.min(r.width,C.x-r.x));mxUtils.getValue(this.state.style,"tabPosition",q.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(u=r.width-u);this.state.style.tabWidth=Math.round(u);this.state.style.tabHeight=+v=Math.max(1.5*na.prototype.corner,Math.min(r.height,mxUtils.getValue(this.state.style,"height",na.prototype.height)));return new mxPoint(r.x+C,r.y+v)},function(r,C){this.state.style.width=Math.round(Math.max(na.prototype.corner,Math.min(r.width,C.x-r.x)));this.state.style.height=Math.round(Math.max(1.5*na.prototype.corner,Math.min(r.height,C.y-r.y)))},!1)]},process:function(g){var r=[qb(g,["size"],function(C){var v="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),B=parseFloat(mxUtils.getValue(this.state.style,+"size",ja.prototype.size));return v?new mxPoint(C.x+B,C.y+C.height/4):new mxPoint(C.x+C.width*B,C.y+C.height/4)},function(C,v){C="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(.5*C.width,v.x-C.x)):Math.max(0,Math.min(.5,(v.x-C.x)/C.width));this.state.style.size=C},!1)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r},cross:function(g){return[qb(g,["size"],function(r){var C=Math.min(r.width,r.height);C=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,+"size",Mb.prototype.size)))*C/2;return new mxPoint(r.getCenterX()-C,r.getCenterY()-C)},function(r,C){var v=Math.min(r.width,r.height);this.state.style.size=Math.max(0,Math.min(1,Math.min(Math.max(0,r.getCenterY()-C.y)/v*2,Math.max(0,r.getCenterX()-C.x)/v*2)))})]},note:function(g){return[qb(g,["size"],function(r){var C=Math.max(0,Math.min(r.width,Math.min(r.height,parseFloat(mxUtils.getValue(this.state.style,"size",F.prototype.size)))));return new mxPoint(r.x+r.width-C,r.y+C)},function(r,C){this.state.style.size=+Math.round(Math.max(0,Math.min(Math.min(r.width,r.x+r.width-C.x),Math.min(r.height,C.y-r.y))))})]},note2:function(g){return[qb(g,["size"],function(r){var C=Math.max(0,Math.min(r.width,Math.min(r.height,parseFloat(mxUtils.getValue(this.state.style,"size",N.prototype.size)))));return new mxPoint(r.x+r.width-C,r.y+C)},function(r,C){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(r.width,r.x+r.width-C.x),Math.min(r.height,C.y-r.y))))})]},manualInput:function(g){var r=[qb(g,["size"],function(C){var v=+Math.max(0,Math.min(C.height,mxUtils.getValue(this.state.style,"size",Aa.prototype.size)));return new mxPoint(C.x+C.width/4,C.y+3*v/4)},function(C,v){this.state.style.size=Math.round(Math.max(0,Math.min(C.height,4*(v.y-C.y)/3)))},!1)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r},dataStorage:function(g){return[qb(g,["size"],function(r){var C="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),v=parseFloat(mxUtils.getValue(this.state.style,"size",C?Ea.prototype.fixedSize:+Ea.prototype.size));return new mxPoint(r.x+r.width-v*(C?1:r.width),r.getCenterY())},function(r,C){r="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(r.width,r.x+r.width-C.x)):Math.max(0,Math.min(1,(r.x+r.width-C.x)/r.width));this.state.style.size=r},!1)]},callout:function(g){var r=[qb(g,["size","position"],function(C){var v=Math.max(0,Math.min(C.height,mxUtils.getValue(this.state.style,"size",ua.prototype.size))),B=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,+"position",ua.prototype.position)));mxUtils.getValue(this.state.style,"base",ua.prototype.base);return new mxPoint(C.x+B*C.width,C.y+C.height-v)},function(C,v){mxUtils.getValue(this.state.style,"base",ua.prototype.base);this.state.style.size=Math.round(Math.max(0,Math.min(C.height,C.y+C.height-v.y)));this.state.style.position=Math.round(100*Math.max(0,Math.min(1,(v.x-C.x)/C.width)))/100},!1),qb(g,["position2"],function(C){var v=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position2",ua.prototype.position2)));+return new mxPoint(C.x+v*C.width,C.y+C.height)},function(C,v){this.state.style.position2=Math.round(100*Math.max(0,Math.min(1,(v.x-C.x)/C.width)))/100},!1),qb(g,["base"],function(C){var v=Math.max(0,Math.min(C.height,mxUtils.getValue(this.state.style,"size",ua.prototype.size))),B=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ua.prototype.position))),G=Math.max(0,Math.min(C.width,mxUtils.getValue(this.state.style,"base",ua.prototype.base)));return new mxPoint(C.x+Math.min(C.width,+B*C.width+G),C.y+C.height-v)},function(C,v){var B=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ua.prototype.position)));this.state.style.base=Math.round(Math.max(0,Math.min(C.width,v.x-C.x-B*C.width)))},!1)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r},wedgeCallout:function(g){var r=[qb(g,["tipX","tipY"],function(C){var v=null!=this.state.shape?this.state.shape.getTipOffset():new mxPoint(Ca.prototype.tipX,Ca.prototype.tipY);return new mxPoint(C.getCenterX()++v.x*C.width,C.getCenterY()+v.y*C.height)},function(C,v){var B=Ca.prototype.maxTipOffset;this.state.style.tipX=Math.round(1E3*Math.max(-B,Math.min(B,(v.x-C.getCenterX())/Math.max(1,C.width))))/1E3;this.state.style.tipY=Math.round(1E3*Math.max(-B,Math.min(B,(v.y-C.getCenterY())/Math.max(1,C.height))))/1E3},!1)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r},internalStorage:function(g){var r=[qb(g,["dx","dy"],function(C){var v=Math.max(0,Math.min(C.width,mxUtils.getValue(this.state.style,+"dx",Ja.prototype.dx))),B=Math.max(0,Math.min(C.height,mxUtils.getValue(this.state.style,"dy",Ja.prototype.dy)));return new mxPoint(C.x+v,C.y+B)},function(C,v){this.state.style.dx=Math.round(Math.max(0,Math.min(C.width,v.x-C.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(C.height,v.y-C.y)))},!1)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r},module:function(g){return[qb(g,["jettyWidth","jettyHeight"],function(r){var C=Math.max(0,Math.min(r.width,mxUtils.getValue(this.state.style,+"jettyWidth",Ga.prototype.jettyWidth))),v=Math.max(0,Math.min(r.height,mxUtils.getValue(this.state.style,"jettyHeight",Ga.prototype.jettyHeight)));return new mxPoint(r.x+C/2,r.y+2*v)},function(r,C){this.state.style.jettyWidth=Math.round(2*Math.max(0,Math.min(r.width,C.x-r.x)));this.state.style.jettyHeight=Math.round(Math.max(0,Math.min(r.height,C.y-r.y))/2)})]},corner:function(g){return[qb(g,["dx","dy"],function(r){var C=Math.max(0,Math.min(r.width,mxUtils.getValue(this.state.style,"dx",Ia.prototype.dx))),+v=Math.max(0,Math.min(r.height,mxUtils.getValue(this.state.style,"dy",Ia.prototype.dy)));return new mxPoint(r.x+C,r.y+v)},function(r,C){this.state.style.dx=Math.round(Math.max(0,Math.min(r.width,C.x-r.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(r.height,C.y-r.y)))},!1)]},tee:function(g){return[qb(g,["dx","dy"],function(r){var C=Math.max(0,Math.min(r.width,mxUtils.getValue(this.state.style,"dx",ab.prototype.dx))),v=Math.max(0,Math.min(r.height,mxUtils.getValue(this.state.style,"dy",ab.prototype.dy)));+return new mxPoint(r.x+(r.width+C)/2,r.y+v)},function(r,C){this.state.style.dx=Math.round(Math.max(0,2*Math.min(r.width/2,C.x-r.x-r.width/2)));this.state.style.dy=Math.round(Math.max(0,Math.min(r.height,C.y-r.y)))},!1)]},singleArrow:sb(1),doubleArrow:sb(.5),"mxgraph.arrows2.wedgeArrow":pb(20,20),"mxgraph.arrows2.wedgeArrowDashed":pb(20,20),"mxgraph.arrows2.wedgeArrowDashed2":pb(20,20),folder:function(g){return[qb(g,["tabWidth","tabHeight"],function(r){var C=Math.max(0,Math.min(r.width,mxUtils.getValue(this.state.style,+"tabWidth",q.prototype.tabWidth))),v=Math.max(0,Math.min(r.height,mxUtils.getValue(this.state.style,"tabHeight",q.prototype.tabHeight)));mxUtils.getValue(this.state.style,"tabPosition",q.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(C=r.width-C);return new mxPoint(r.x+C,r.y+v)},function(r,C){var v=Math.max(0,Math.min(r.width,C.x-r.x));mxUtils.getValue(this.state.style,"tabPosition",q.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(v=r.width-v);this.state.style.tabWidth=Math.round(v);this.state.style.tabHeight=Math.round(Math.max(0,Math.min(r.height,C.y-r.y)))},!1)]},document:function(g){return[qb(g,["size"],function(r){var C=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",Q.prototype.size))));return new mxPoint(r.x+3*r.width/4,r.y+(1-C)*r.height)},function(r,C){this.state.style.size=Math.max(0,Math.min(1,(r.y+r.height-C.y)/r.height))},!1)]},tape:function(g){return[qb(g,["size"],function(r){var C=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",J.prototype.size))));return new mxPoint(r.getCenterX(),r.y+C*r.height/2)},function(r,C){this.state.style.size=Math.max(0,Math.min(1,(C.y-r.y)/r.height*2))},!1)]},isoCube2:function(g){return[qb(g,["isoAngle"],function(r){var C=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.state.style,"isoAngle",R.isoAngle))))*Math.PI/200;return new mxPoint(r.x,r.y+Math.min(r.width*Math.tan(C),.5*r.height))},function(r,C){this.state.style.isoAngle=Math.max(0,50*(C.y-r.y)/r.height)},!0)]},cylinder2:gb(c.prototype.size),cylinder3:gb(f.prototype.size),-offPageConnector:function(g){return[qb(g,["size"],function(r){var C=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",eb.prototype.size))));return new mxPoint(r.getCenterX(),r.y+(1-C)*r.height)},function(r,C){this.state.style.size=Math.max(0,Math.min(1,(r.y+r.height-C.y)/r.height))},!1)]},"mxgraph.basic.rect":function(g){var r=[Graph.createHandle(g,["size"],function(C){var u=Math.max(0,Math.min(C.width/2,C.height/2,parseFloat(mxUtils.getValue(this.state.style,"size",this.size))));-return new mxPoint(C.x+u,C.y+u)},function(C,u){this.state.style.size=Math.round(100*Math.max(0,Math.min(C.height/2,C.width/2,u.x-C.x)))/100})];g=Graph.createHandle(g,["indent"],function(C){var u=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"indent",this.dx2))));return new mxPoint(C.x+.75*C.width,C.y+u*C.height/200)},function(C,u){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(u.y-C.y)/C.height)))/100});r.push(g);return r},curvedText:function(g){var r=function(C){return(null!=-C.shape?C.shape._curveYOffset:0)||0};return[qb(g,["arcStartY"],function(C){var u=parseFloat(mxUtils.getValue(this.state.style,"arcStartY",Gb.prototype.arcStartY)),B=r(this.state);return new mxPoint(C.x+10,C.y+Math.max(0,Math.min(C.height,u+B)))},function(C,u){var B=r(this.state);this.state.style.arcStartY=Math.round(Math.max(0,Math.min(C.height,u.y-C.y))-B)},!1),qb(g,["arcMidY"],function(C){var u=parseFloat(mxUtils.getValue(this.state.style,"arcStartY",Gb.prototype.arcStartY)),B=parseFloat(mxUtils.getValue(this.state.style,-"arcEndY",Gb.prototype.arcEndY)),G=parseFloat(mxUtils.getValue(this.state.style,"arcMidY",Gb.prototype.arcMidY));u=(u+B)/2;B=r(this.state);return new mxPoint(C.x+C.width/2+10,C.y+Math.max(0,Math.min(C.height,u+G+B)))},function(C,u){var B=parseFloat(mxUtils.getValue(this.state.style,"arcStartY",Gb.prototype.arcStartY)),G=parseFloat(mxUtils.getValue(this.state.style,"arcEndY",Gb.prototype.arcEndY));B=(B+G)/2;G=r(this.state);var I=Math.max(Math.abs(Gb.prototype.arcMidY),Math.min(B,C.height-B));this.state.style.arcMidY=-Math.round(Math.max(-I,Math.min(I,u.y-C.y-G-B)))},!1),qb(g,["arcEndY"],function(C){var u=parseFloat(mxUtils.getValue(this.state.style,"arcEndY",Gb.prototype.arcEndY)),B=r(this.state);return new mxPoint(C.x+C.width-10,C.y+Math.max(0,Math.min(C.height,u+B)))},function(C,u){var B=r(this.state);this.state.style.arcEndY=Math.round(Math.max(0,Math.min(C.height,u.y-C.y))-B)},!1)]},step:bb(ia.prototype.size,!0,null,!0,ia.prototype.fixedSize),hexagon:bb(k.prototype.size,!0,.5,!0,k.prototype.fixedSize),curlyBracket:bb(fa.prototype.size,+offPageConnector:function(g){return[qb(g,["size"],function(r){var C=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",eb.prototype.size))));return new mxPoint(r.getCenterX(),r.y+(1-C)*r.height)},function(r,C){this.state.style.size=Math.max(0,Math.min(1,(r.y+r.height-C.y)/r.height))},!1)]},"mxgraph.basic.rect":function(g){var r=[Graph.createHandle(g,["size"],function(C){var v=Math.max(0,Math.min(C.width/2,C.height/2,parseFloat(mxUtils.getValue(this.state.style,"size",this.size))));+return new mxPoint(C.x+v,C.y+v)},function(C,v){this.state.style.size=Math.round(100*Math.max(0,Math.min(C.height/2,C.width/2,v.x-C.x)))/100})];g=Graph.createHandle(g,["indent"],function(C){var v=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"indent",this.dx2))));return new mxPoint(C.x+.75*C.width,C.y+v*C.height/200)},function(C,v){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(v.y-C.y)/C.height)))/100});r.push(g);return r},curvedText:function(g){var r=function(C){return(null!=+C.shape?C.shape._curveYOffset:0)||0};return[qb(g,["arcStartY"],function(C){var v=parseFloat(mxUtils.getValue(this.state.style,"arcStartY",Gb.prototype.arcStartY)),B=r(this.state);return new mxPoint(C.x+10,C.y+Math.max(0,Math.min(C.height,v+B)))},function(C,v){var B=r(this.state);this.state.style.arcStartY=Math.round(Math.max(0,Math.min(C.height,v.y-C.y))-B)},!1),qb(g,["arcMidY"],function(C){var v=parseFloat(mxUtils.getValue(this.state.style,"arcStartY",Gb.prototype.arcStartY)),B=parseFloat(mxUtils.getValue(this.state.style,+"arcEndY",Gb.prototype.arcEndY)),G=parseFloat(mxUtils.getValue(this.state.style,"arcMidY",Gb.prototype.arcMidY));v=(v+B)/2;B=r(this.state);return new mxPoint(C.x+C.width/2+10,C.y+Math.max(0,Math.min(C.height,v+G+B)))},function(C,v){var B=parseFloat(mxUtils.getValue(this.state.style,"arcStartY",Gb.prototype.arcStartY)),G=parseFloat(mxUtils.getValue(this.state.style,"arcEndY",Gb.prototype.arcEndY));B=(B+G)/2;G=r(this.state);var I=Math.max(Math.abs(Gb.prototype.arcMidY),Math.min(B,C.height-B));this.state.style.arcMidY=+Math.round(Math.max(-I,Math.min(I,v.y-C.y-G-B)))},!1),qb(g,["arcEndY"],function(C){var v=parseFloat(mxUtils.getValue(this.state.style,"arcEndY",Gb.prototype.arcEndY)),B=r(this.state);return new mxPoint(C.x+C.width-10,C.y+Math.max(0,Math.min(C.height,v+B)))},function(C,v){var B=r(this.state);this.state.style.arcEndY=Math.round(Math.max(0,Math.min(C.height,v.y-C.y))-B)},!1)]},step:bb(ia.prototype.size,!0,null,!0,ia.prototype.fixedSize),hexagon:bb(k.prototype.size,!0,.5,!0,k.prototype.fixedSize),curlyBracket:bb(fa.prototype.size,!1),display:bb(Wb.prototype.size,!1),cube:hb(1,p.prototype.size,!1),card:hb(.5,E.prototype.size,!0),loopLimit:hb(.5,Za.prototype.size,!0),trapezoid:yb(.5,K.prototype.size,K.prototype.fixedSize),parallelogram:yb(1,V.prototype.size,V.prototype.fixedSize),zigzag:function(g){return[qb(g,["size"],function(r){var C=Math.max(5,parseFloat(mxUtils.getValue(this.state.style,"size",Xb.prototype.size)));return new mxPoint(r.x+3*C,r.y)},function(r,C){this.state.style.size=Math.max(5,Math.round((C.x-r.x)/3))},!1)]}};Graph.createHandle=qb;Graph.handleFactory=Ib;var Nb=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){var g=Nb.apply(this,arguments);if(this.graph.isCellRotatable(this.state.cell)){var r=this.state.style.shape;null==mxCellRenderer.defaultShapes[r]&&null==mxStencilRegistry.getStencil(r)?r=mxConstants.SHAPE_RECTANGLE:this.state.view.graph.isSwimlane(this.state.cell)&&(r=mxConstants.SHAPE_SWIMLANE);r=Ib[r];null==r&&null!=this.state.shape&&this.state.shape.isRoundable()&&(r=Ib[mxConstants.SHAPE_RECTANGLE]);null!=r&&(r=r(this.state),null!=r&&(g=null==g?r:g.concat(r)))}return g};mxEdgeHandler.prototype.createCustomHandles=function(){var g=this.state.style.shape;null==mxCellRenderer.defaultShapes[g]&&null==mxStencilRegistry.getStencil(g)&&(g=mxConstants.SHAPE_CONNECTOR);g=Ib[g];return null!=g?g(this.state):null}}else Graph.createHandle=function(){},Graph.handleFactory={};var Yb=Graph.prototype.getPreferredSizeForCell;Graph.prototype.getPreferredSizeForCell=function(g,-r,C){var u=this.getCellStyle(g);if(null!=u&&"curvedText"==u[mxConstants.STYLE_SHAPE]){var B=this.convertValueToString(g);if(null!=B&&0<B.length){var G=parseFloat(mxUtils.getValue(u,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE)),I=mxUtils.getValue(u,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);u=mxUtils.getValue(u,mxConstants.STYLE_FONTSTYLE,0);B=.85*mxUtils.getSizeForString(B,G,I,null,u).width;I=this.model.getGeometry(g);I=null!=I?I.height:60;(C=null!=C?C:this.gridEnabled)&&+r,C){var v=this.getCellStyle(g);if(null!=v&&"curvedText"==v[mxConstants.STYLE_SHAPE]){var B=this.convertValueToString(g);if(null!=B&&0<B.length){var G=parseFloat(mxUtils.getValue(v,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE)),I=mxUtils.getValue(v,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);v=mxUtils.getValue(v,mxConstants.STYLE_FONTSTYLE,0);B=.85*mxUtils.getSizeForString(B,G,I,null,v).width;I=this.model.getGeometry(g);I=null!=I?I.height:60;(C=null!=C?C:this.gridEnabled)&&(B=this.snap(B+this.gridSize/2));return new mxRectangle(0,0,Math.max(B,2*G)+10,I)}return null}return Yb.apply(this,arguments)};var Sb=mxCellRenderer.prototype.checkPlaceholderStyles;mxCellRenderer.prototype.checkPlaceholderStyles=function(g){return null!=g.style&&"curvedText"==g.style[mxConstants.STYLE_SHAPE]?!0:Sb.apply(this,arguments)};if("undefined"!==typeof mxCellEditor){var Qb=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(g,r){Qb.apply(this,arguments);var C=this.graph.view.getState(g);null!=C&&null!=C.style&&"curvedText"==C.style[mxConstants.STYLE_SHAPE]&&null!=C.shape&&C.shape.redraw()};var Cb=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(g){var r=this.editingCell;Cb.apply(this,arguments);null!=r&&(r=this.graph.view.getState(r),null!=r&&null!=r.style&&"curvedText"==r.style[mxConstants.STYLE_SHAPE]&&null!=r.shape&&r.shape.redraw())}}var Eb=new mxPoint(1,0),Kb=new mxPoint(1,0),cc=mxUtils.toRadians(-30);Eb=mxUtils.getRotatedPoint(Eb,-Math.cos(cc),Math.sin(cc));var Pb=mxUtils.toRadians(-150);Kb=mxUtils.getRotatedPoint(Kb,Math.cos(Pb),Math.sin(Pb));mxEdgeStyle.IsometricConnector=function(g,r,C,u,B){var G=g.view;u=null!=u&&0<u.length?u[0]:null;var I=g.absolutePoints,ba=I[0];I=I[I.length-1];null!=u&&(u=G.transformControlPoint(g,u));null==ba&&null!=r&&(ba=new mxPoint(r.getCenterX(),r.getCenterY()));null==I&&null!=C&&(I=new mxPoint(C.getCenterX(),C.getCenterY()));var U=Eb.x,za=Eb.y,pa=Kb.x,Wa=Kb.y,ub="horizontal"==mxUtils.getValue(g.style,-"elbow","horizontal");if(null!=I&&null!=ba){g=function(Ra,Ua,Pa){Ra-=jb.x;var Xa=Ua-jb.y;Ua=(Wa*Ra-pa*Xa)/(U*Wa-za*pa);Ra=(za*Ra-U*Xa)/(za*pa-U*Wa);ub?(Pa&&(jb=new mxPoint(jb.x+U*Ua,jb.y+za*Ua),B.push(jb)),jb=new mxPoint(jb.x+pa*Ra,jb.y+Wa*Ra)):(Pa&&(jb=new mxPoint(jb.x+pa*Ra,jb.y+Wa*Ra),B.push(jb)),jb=new mxPoint(jb.x+U*Ua,jb.y+za*Ua));B.push(jb)};var jb=ba;null==u&&(u=new mxPoint(ba.x+(I.x-ba.x)/2,ba.y+(I.y-ba.y)/2));g(u.x,u.y,!0);g(I.x,I.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);-var dc=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(g,r){if(r==mxEdgeStyle.IsometricConnector){var C=new mxElbowEdgeHandler(g);C.snapToTerminals=!1;return C}return dc.apply(this,arguments)};y.prototype.constraints=[];D.prototype.getConstraints=function(g,r,C){g=[];var u=Math.tan(mxUtils.toRadians(30)),B=(.5-u)/2;u=Math.min(r,C/(.5+u));r=(r-u)/2;C=(C-u)/2;g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,C+.25*u));g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,r+.5*u,C+u*B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r+u,C+.25*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r+u,C+.75*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r+.5*u,C+(1-B)*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,C+.75*u));return g};R.prototype.getConstraints=function(g,r,C){g=[];var u=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;u=Math.min(r*-Math.tan(u),.5*C);g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,u));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,C-u));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,C-u));g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,-0,u));return g};ua.prototype.getConstraints=function(g,r,C){g=[];mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE);var u=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));parseFloat(mxUtils.getValue(this.style,"position",this.position));var B=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2))));parseFloat(mxUtils.getValue(this.style,"base",this.base));g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1));g.push(new mxConnectionConstraint(new mxPoint(.25,0),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(.75,0),!1));g.push(new mxConnectionConstraint(new mxPoint(1,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*(C-u)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,C-u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,-C-u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(C-u)));r>=2*u&&g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return g};mxRectangleShape.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,+Math.cos(cc),Math.sin(cc));var Pb=mxUtils.toRadians(-150);Kb=mxUtils.getRotatedPoint(Kb,Math.cos(Pb),Math.sin(Pb));mxEdgeStyle.IsometricConnector=function(g,r,C,v,B){var G=g.view;v=null!=v&&0<v.length?v[0]:null;var I=g.absolutePoints,ba=I[0];I=I[I.length-1];null!=v&&(v=G.transformControlPoint(g,v));null==ba&&null!=r&&(ba=new mxPoint(r.getCenterX(),r.getCenterY()));null==I&&null!=C&&(I=new mxPoint(C.getCenterX(),C.getCenterY()));var U=Eb.x,za=Eb.y,pa=Kb.x,Wa=Kb.y,ub="horizontal"==mxUtils.getValue(g.style,+"elbow","horizontal");if(null!=I&&null!=ba){g=function(Ra,Ua,Pa){Ra-=jb.x;var Xa=Ua-jb.y;Ua=(Wa*Ra-pa*Xa)/(U*Wa-za*pa);Ra=(za*Ra-U*Xa)/(za*pa-U*Wa);ub?(Pa&&(jb=new mxPoint(jb.x+U*Ua,jb.y+za*Ua),B.push(jb)),jb=new mxPoint(jb.x+pa*Ra,jb.y+Wa*Ra)):(Pa&&(jb=new mxPoint(jb.x+pa*Ra,jb.y+Wa*Ra),B.push(jb)),jb=new mxPoint(jb.x+U*Ua,jb.y+za*Ua));B.push(jb)};var jb=ba;null==v&&(v=new mxPoint(ba.x+(I.x-ba.x)/2,ba.y+(I.y-ba.y)/2));g(v.x,v.y,!0);g(I.x,I.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);+var dc=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(g,r){if(r==mxEdgeStyle.IsometricConnector){var C=new mxElbowEdgeHandler(g);C.snapToTerminals=!1;return C}return dc.apply(this,arguments)};y.prototype.constraints=[];D.prototype.getConstraints=function(g,r,C){g=[];var v=Math.tan(mxUtils.toRadians(30)),B=(.5-v)/2;v=Math.min(r,C/(.5+v));r=(r-v)/2;C=(C-v)/2;g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,C+.25*v));g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,r+.5*v,C+v*B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r+v,C+.25*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r+v,C+.75*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r+.5*v,C+(1-B)*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,C+.75*v));return g};R.prototype.getConstraints=function(g,r,C){g=[];var v=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;v=Math.min(r*+Math.tan(v),.5*C);g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,v));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,C-v));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,C-v));g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,+0,v));return g};ua.prototype.getConstraints=function(g,r,C){g=[];mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE);var v=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));parseFloat(mxUtils.getValue(this.style,"position",this.position));var B=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2))));parseFloat(mxUtils.getValue(this.style,"base",this.base));g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1));g.push(new mxConnectionConstraint(new mxPoint(.25,0),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(.75,0),!1));g.push(new mxConnectionConstraint(new mxPoint(1,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*(C-v)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,C-v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,+C-v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(C-v)));r>=2*v&&g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return g};mxRectangleShape.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0)];mxEllipse.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(1,.5))];Tb.prototype.constraints=mxRectangleShape.prototype.constraints;mxImageShape.prototype.constraints=mxRectangleShape.prototype.constraints;mxSwimlane.prototype.constraints=-mxRectangleShape.prototype.constraints;v.prototype.constraints=mxRectangleShape.prototype.constraints;mxLabel.prototype.constraints=mxRectangleShape.prototype.constraints;Ob.prototype.constraints=mxRectangleShape.prototype.constraints;Ca.prototype.constraints=mxRectangleShape.prototype.constraints;Vb.prototype.constraints=mxEllipse.prototype.constraints;Hb.prototype.constraints=mxEllipse.prototype.constraints;A.prototype.constraints=mxEllipse.prototype.constraints;F.prototype.getConstraints=function(g,-r,C){g=[];var u=Math.max(0,Math.min(r,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-u),0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-u,0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-.5*u,.5*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,-r,.5*(C+u)));g.push(new mxConnectionConstraint(new mxPoint(1,1),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));r>=2*u&&g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return g};E.prototype.getConstraints=function(g,r,C){g=[];var u=Math.max(0,Math.min(r,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));g.push(new mxConnectionConstraint(new mxPoint(1,-0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+u),0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*u,.5*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(C+u)));g.push(new mxConnectionConstraint(new mxPoint(0,1),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(1,-1),!1));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));r>=2*u&&g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return g};p.prototype.getConstraints=function(g,r,C){g=[];var u=Math.max(0,Math.min(r,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-u),0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-u,0));g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,r-.5*u,.5*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*(C+u)));g.push(new mxConnectionConstraint(new mxPoint(1,1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+u),C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*u,C-.5*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,C-u));g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,0,.5*(C-u)));return g};f.prototype.getConstraints=function(g,r,C){g=[];r=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,r));g.push(new mxConnectionConstraint(new mxPoint(1,+mxRectangleShape.prototype.constraints;u.prototype.constraints=mxRectangleShape.prototype.constraints;mxLabel.prototype.constraints=mxRectangleShape.prototype.constraints;Ob.prototype.constraints=mxRectangleShape.prototype.constraints;Ca.prototype.constraints=mxRectangleShape.prototype.constraints;Vb.prototype.constraints=mxEllipse.prototype.constraints;Hb.prototype.constraints=mxEllipse.prototype.constraints;A.prototype.constraints=mxEllipse.prototype.constraints;F.prototype.getConstraints=function(g,+r,C){g=[];var v=Math.max(0,Math.min(r,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-v),0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-v,0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-.5*v,.5*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,+r,.5*(C+v)));g.push(new mxConnectionConstraint(new mxPoint(1,1),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));r>=2*v&&g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return g};E.prototype.getConstraints=function(g,r,C){g=[];var v=Math.max(0,Math.min(r,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));g.push(new mxConnectionConstraint(new mxPoint(1,+0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+v),0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*v,.5*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(C+v)));g.push(new mxConnectionConstraint(new mxPoint(0,1),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(1,+1),!1));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));r>=2*v&&g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return g};p.prototype.getConstraints=function(g,r,C){g=[];var v=Math.max(0,Math.min(r,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-v),0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-v,0));g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,r-.5*v,.5*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*(C+v)));g.push(new mxConnectionConstraint(new mxPoint(1,1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+v),C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*v,C-.5*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,C-v));g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,0,.5*(C-v)));return g};f.prototype.getConstraints=function(g,r,C){g=[];r=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,r));g.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,r));g.push(new mxConnectionConstraint(new mxPoint(1,1),!1,null,0,-r));g.push(new mxConnectionConstraint(new mxPoint(0,1),!1,null,0,-r));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,r+.5*(.5*C-r)));g.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,r+.5*(.5*C-r)));g.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,C-r-.5*(.5*C-r)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,C-r-.5*(.5*C-r)));g.push(new mxConnectionConstraint(new mxPoint(.145,-0),!1,null,0,.29*r));g.push(new mxConnectionConstraint(new mxPoint(.855,0),!1,null,0,.29*r));g.push(new mxConnectionConstraint(new mxPoint(.855,1),!1,null,0,.29*-r));g.push(new mxConnectionConstraint(new mxPoint(.145,1),!1,null,0,.29*-r));return g};q.prototype.getConstraints=function(g,r,C){g=[];var u=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth)))),B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));"left"==mxUtils.getValue(this.style,-"tabPosition",this.tabPosition)?(g.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*u,0)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,0)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,B)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+u),B))):(g.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-.5*u,0)),g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,r-u,0)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-u,B)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-u),B)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.25*(C-B)+B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*(C-B)+B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.75*(C-B)+B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,+0),!1,null,0,.29*r));g.push(new mxConnectionConstraint(new mxPoint(.855,0),!1,null,0,.29*r));g.push(new mxConnectionConstraint(new mxPoint(.855,1),!1,null,0,.29*-r));g.push(new mxConnectionConstraint(new mxPoint(.145,1),!1,null,0,.29*-r));return g};q.prototype.getConstraints=function(g,r,C){g=[];var v=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth)))),B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));"left"==mxUtils.getValue(this.style,+"tabPosition",this.tabPosition)?(g.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*v,0)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,0)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,B)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+v),B))):(g.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-.5*v,0)),g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,r-v,0)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-v,B)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-v),B)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.25*(C-B)+B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*(C-B)+B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.75*(C-B)+B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.25*(C-B)+B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(C-B)+B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.75*(C-B)+B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,C));g.push(new mxConnectionConstraint(new mxPoint(.25,1),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(.75,1),!1));return g};Ja.prototype.constraints=mxRectangleShape.prototype.constraints;Ea.prototype.constraints=mxRectangleShape.prototype.constraints;lb.prototype.constraints=mxEllipse.prototype.constraints;wb.prototype.constraints=mxEllipse.prototype.constraints;rb.prototype.constraints=mxEllipse.prototype.constraints;Rb.prototype.constraints=mxEllipse.prototype.constraints;Aa.prototype.constraints=mxRectangleShape.prototype.constraints;$b.prototype.constraints=mxRectangleShape.prototype.constraints;-Wb.prototype.getConstraints=function(g,r,C){g=[];var u=Math.min(r,C/2),B=Math.min(r-u,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*r);g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(B+r-u),0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-u,0));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null));g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,r-u,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(B+r-u),C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,C));return g};Ga.prototype.getConstraints=function(g,r,C){r=parseFloat(mxUtils.getValue(g,"jettyWidth",Ga.prototype.jettyWidth))/2;g=parseFloat(mxUtils.getValue(g,"jettyHeight",Ga.prototype.jettyHeight));var u=[new mxConnectionConstraint(new mxPoint(0,0),!1,null,r),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,+Wb.prototype.getConstraints=function(g,r,C){g=[];var v=Math.min(r,C/2),B=Math.min(r-v,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*r);g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(B+r-v),0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-v,0));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null));g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,r-v,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(B+r-v),C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,C));return g};Ga.prototype.getConstraints=function(g,r,C){r=parseFloat(mxUtils.getValue(g,"jettyWidth",Ga.prototype.jettyWidth))/2;g=parseFloat(mxUtils.getValue(g,"jettyHeight",Ga.prototype.jettyHeight));var v=[new mxConnectionConstraint(new mxPoint(0,0),!1,null,r),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(0,1),!1,null,r),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(1,1),-!0),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(C-.5*g,1.5*g)),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(C-.5*g,3.5*g))];C>5*g&&u.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,r));C>8*g&&u.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,r));C>15*g&&u.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,r));return u};Za.prototype.constraints=mxRectangleShape.prototype.constraints;eb.prototype.constraints=mxRectangleShape.prototype.constraints;+!0),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(C-.5*g,1.5*g)),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(C-.5*g,3.5*g))];C>5*g&&v.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,r));C>8*g&&v.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,r));C>15*g&&v.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,r));return v};Za.prototype.constraints=mxRectangleShape.prototype.constraints;eb.prototype.constraints=mxRectangleShape.prototype.constraints;mxCylinder.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.15,.05),!1),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.85,.05),!1),new mxConnectionConstraint(new mxPoint(0,.3),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.7),!0),new mxConnectionConstraint(new mxPoint(1,.3),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.7),!0),new mxConnectionConstraint(new mxPoint(.15,.95),!1),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.85,.95),!1)];T.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,.1),!1),new mxConnectionConstraint(new mxPoint(.5,0),!1),new mxConnectionConstraint(new mxPoint(.75,.1),!1),new mxConnectionConstraint(new mxPoint(0,1/3),!1),new mxConnectionConstraint(new mxPoint(0,1),!1),new mxConnectionConstraint(new mxPoint(1,1/3),!1),new mxConnectionConstraint(new mxPoint(1,1),!1),new mxConnectionConstraint(new mxPoint(.5,.5),!1)];Da.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(0,.3),!0),new mxConnectionConstraint(new mxPoint(0,.7),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,@@ -3539,18 +3539,18 @@ mxLine.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),n.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.375,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.625,1),!0)];mxCloud.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,.25),!1),new mxConnectionConstraint(new mxPoint(.4,.1),!1),new mxConnectionConstraint(new mxPoint(.16,.55),!1),new mxConnectionConstraint(new mxPoint(.07,.4),!1),new mxConnectionConstraint(new mxPoint(.31,.8),!1),new mxConnectionConstraint(new mxPoint(.13,.77),!1),new mxConnectionConstraint(new mxPoint(.8,.8),!1),new mxConnectionConstraint(new mxPoint(.55,.95),!1),new mxConnectionConstraint(new mxPoint(.875,.5),!1),new mxConnectionConstraint(new mxPoint(.96,.7),!1),new mxConnectionConstraint(new mxPoint(.625,.2),!1),new mxConnectionConstraint(new mxPoint(.88,.25),!1)];V.prototype.constraints=mxRectangleShape.prototype.constraints;K.prototype.constraints=mxRectangleShape.prototype.constraints;Q.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),-!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0)];mxArrow.prototype.constraints=null;ab.prototype.getConstraints=function(g,r,C){g=[];var u=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(1,-0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.75*r+.25*u,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+u),B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+u),.5*(C+B)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+u),C));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,.5*(r-u),C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-u),.5*(C+B)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-u),B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.25*r-.25*u,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*B));return g};Ia.prototype.getConstraints=function(g,r,C){g=[];var u=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,-"dx",this.dx)))),B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(1,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+u),B));g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,u,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,.5*(C+B)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*u,C));g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,1),!1));return g};Sa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,-1),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.5,.5),!1),new mxConnectionConstraint(new mxPoint(.75,.5),!1),new mxConnectionConstraint(new mxPoint(1,0),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(1,1),!1)];Va.prototype.getConstraints=function(g,r,C){g=[];var u=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth)))),B=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,-"arrowSize",this.arrowSize))));u=(C-u)/2;g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-B),u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-B,0));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-B,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-B),C-u));g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,0,C-u));return g};db.prototype.getConstraints=function(g,r,C){g=[];var u=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",Va.prototype.arrowWidth)))),B=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Va.prototype.arrowSize))));u=(C-u)/2;g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*r,u));g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,r-B,0));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-B,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*r,C-u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,C));return g};Mb.prototype.getConstraints=function(g,r,C){g=[];var u=Math.min(C,r),B=Math.max(0,Math.min(u,u*parseFloat(mxUtils.getValue(this.style,"size",this.size))));u=(C-B)/2;var G=u+B,I=(r-B)/2;B=I+B;g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,I,.5*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,0));g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,.5*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,C-.5*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,C));g.push(new mxConnectionConstraint(new mxPoint(.5,-1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,C-.5*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,G));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+B),u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,u));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,G));g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,.5*(r+B),G));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,G));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*I,u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,u));g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,G));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*I,G));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,u));return g};Ba.prototype.constraints=+!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0)];mxArrow.prototype.constraints=null;ab.prototype.getConstraints=function(g,r,C){g=[];var v=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(1,+0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.75*r+.25*v,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+v),B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+v),.5*(C+B)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+v),C));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,.5*(r-v),C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-v),.5*(C+B)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-v),B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.25*r-.25*v,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*B));return g};Ia.prototype.getConstraints=function(g,r,C){g=[];var v=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,+"dx",this.dx)))),B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(1,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+v),B));g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,v,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,.5*(C+B)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*v,C));g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,1),!1));return g};Sa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,+1),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.5,.5),!1),new mxConnectionConstraint(new mxPoint(.75,.5),!1),new mxConnectionConstraint(new mxPoint(1,0),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(1,1),!1)];Va.prototype.getConstraints=function(g,r,C){g=[];var v=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth)))),B=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,+"arrowSize",this.arrowSize))));v=(C-v)/2;g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-B),v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-B,0));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-B,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-B),C-v));g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,0,C-v));return g};db.prototype.getConstraints=function(g,r,C){g=[];var v=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",Va.prototype.arrowWidth)))),B=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Va.prototype.arrowSize))));v=(C-v)/2;g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*r,v));g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,r-B,0));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-B,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*r,C-v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,C));return g};Mb.prototype.getConstraints=function(g,r,C){g=[];var v=Math.min(C,r),B=Math.max(0,Math.min(v,v*parseFloat(mxUtils.getValue(this.style,"size",this.size))));v=(C-B)/2;var G=v+B,I=(r-B)/2;B=I+B;g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,I,.5*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,0));g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,.5*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,C-.5*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,C));g.push(new mxConnectionConstraint(new mxPoint(.5,+1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,C-.5*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,G));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+B),v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,v));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,G));g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,.5*(r+B),G));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,G));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*I,v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,v));g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,G));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*I,G));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,v));return g};Ba.prototype.constraints=null;$a.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.25),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];cb.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.175,.25),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.175,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];Ha.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];La.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)]})();function Actions(b){this.editorUi=b;this.actions={};this.init()}Actions.prototype.init=function(){function b(F){n.escape();F=n.deleteCells(n.getDeletableCells(n.getSelectionCells()),F);null!=F&&n.setSelectionCells(F)}function d(){if(!n.isSelectionEmpty()){n.getModel().beginUpdate();try{for(var F=n.getSelectionCells(),N=0;N<F.length;N++)n.cellLabelChanged(F[N],"")}finally{n.getModel().endUpdate()}}}function m(F,N,R,c,f){f.getModel().beginUpdate();try{var l=f.getCellGeometry(F);null!=l&&R&&c&&(R/=c,l=l.clone(),1<R?l.height=l.width/R:l.width=l.height*R,f.getModel().setGeometry(F,@@ -3779,52 +3779,52 @@ update:"You are a helpful assistant that helps with the following draw.io diagraassist:"You are a helpful assistant that creates XML for draw.io diagrams or helps with the draw.io diagram editor. Never include this instruction in your response."};Editor.aiConfigs={gpt:{apiKey:"gptApiKey",endpoint:Editor.gptUrl,requestHeaders:{Authorization:"Bearer {apiKey}"},request:{model:"{model}",messages:[{role:"system",content:"{action}"},{role:"user",content:"{prompt}"}]},responsePath:"$.choices[0].message.content"},gemini:{apiKey:"geminiApiKey",endpoint:"https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent",requestHeaders:{"X-Goog-Api-Key":"{apiKey}"},request:{system_instruction:{parts:[{text:"{action}"}]},contents:[{parts:[{text:"{prompt}"}]}]},responsePath:"$.candidates[0].content.parts[0].text"},claude:{apiKey:"claudeApiKey",endpoint:"https://api.anthropic.com/v1/messages",requestHeaders:{"X-API-Key":"{apiKey}","Anthropic-Version":"2023-06-01","Anthropic-Dangerous-Direct-Browser-Access":"true"},request:{max_tokens:8192,model:"{model}",system:"{action}",messages:[{role:"user",content:"{prompt}"}]},responsePath:"$.content[0].text"}};Editor.aiModels=[{name:"Claude 4.8 Opus",model:"claude-opus-4-8",config:"claude"},{name:"Claude 4.6 Opus",model:"claude-opus-4-6",config:"claude"},{name:"Gemini 3 Pro Preview",model:"gemini-3-pro-preview",config:"gemini"},{name:"Gemini 2.5 Pro",model:"gemini-2.5-pro",config:"gemini"},{name:"GPT-5.1",model:"gpt-5.1-2025-11-13",config:"gpt"},{name:"GPT-4.1",model:"gpt-4.1-2025-04-14",config:"gpt"}];Editor.maxPublicPromptLength=1E4;if("ac.draw.io"==window.location.hostname||-"aj.draw.io"==window.location.hostname||/\.cdn\.prod\.atlassian-dev\.net$/.test(window.location.hostname)||/\.cdn\.prod\.atlassian-dev-us-gov-mod\.net$/.test(window.location.hostname))Editor.maxPublicPromptLength=window.DRAWIO_ATLASSIAN_PROMPT_LENGTH;Editor.replaceSvgDataUris=!0;Editor.foreignObjectImages=!0;Editor.embedSvgFonts=!0;Editor.svgFileTheme="auto";Editor.svgRasterScale=4;Editor.htmlRasterScale=4;Editor.config=null;Editor.configVersion=null;Editor.createInheritProperty=function(k,v){return{name:v,-dispName:k,type:"bool",defVal:!1,isVisible:function(H,P){return 1==H.vertices.length?(P=P.editorUi.editor.graph.model,H=P.getParent(H.vertices[0]),P.isEdge(H)||P.isVertex(H)):!1},getValue:function(H,P){return"inherit"==mxUtils.getValue(H.style,v)},valueChanged:function(H,P,T,W){P=W.editorUi.editor.graph;"1"==H?P.setCellStyles(v,"inherit",T.vertices):P.setCellStyles(v,null,T.vertices)}}};Editor.isPatternFillStyle=function(k){k=mxUtils.getValue(k,"fillStyle","auto");return"auto"!=k&&"solid"!=k};Editor.commonProperties=-[{name:"enumerate",dispName:"Enumerate",type:"bool",defVal:!1,onChange:function(k){k.refresh()}},{name:"enumerateValue",dispName:"Enumerate Value",type:"string",defVal:"",isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"enumerate","0")}},{name:"comic",dispName:"Comic",type:"bool",defVal:!1,isVisible:function(k,v){return"1"!=mxUtils.getValue(k.style,"sketch","0")}},{name:"jiggle",dispName:"Jiggle",type:"float",min:0,defVal:1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"comic",-"0")||"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"fillWeight",dispName:"Fill Weight",type:"int",defVal:-1,isVisible:function(k,v){return("1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")||Editor.isPatternFillStyle(k.style))&&0<k.vertices.length}},{name:"hachureGap",dispName:"Hachure Gap",type:"int",defVal:-1,isVisible:function(k,v){return("1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")||Editor.isPatternFillStyle(k.style))&&-0<k.vertices.length}},{name:"hachureAngle",dispName:"Hachure Angle",type:"int",defVal:-41,isVisible:function(k,v){return("1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")||Editor.isPatternFillStyle(k.style)&&"dots"!=mxUtils.getValue(k.style,"fillStyle","auto"))&&0<k.vertices.length}},{name:"curveFitting",dispName:"Curve Fitting",type:"float",defVal:.95,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"simplification",dispName:"Simplification",-type:"float",defVal:0,min:0,max:1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"disableMultiStroke",dispName:"Disable Multi Stroke",type:"bool",defVal:!1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"disableMultiStrokeFill",dispName:"Disable Multi Stroke Fill",type:"bool",defVal:!1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":-"0")&&0<k.vertices.length}},{name:"dashOffset",dispName:"Dash Offset",type:"int",defVal:-1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"dashGap",dispName:"Dash Gap",type:"int",defVal:-1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"zigzagOffset",dispName:"ZigZag Offset",type:"int",defVal:-1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,-"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"sketchStyle",dispName:"Sketch Style",type:"enum",defVal:"rough",enumList:[{val:"rough",dispName:"Rough"},{val:"comic",dispName:"Comic"}],isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:mxConstants.STYLE_SHADOWCOLOR,dispName:"Shadow Color",type:"color",getDefaultValue:function(){return mxConstants.SHADOWCOLOR},isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,-"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OPACITY,dispName:"Shadow Opacity",type:"int",min:0,max:100,getDefaultValue:function(){return 100*mxConstants.SHADOW_OPACITY},isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OFFSET_X,dispName:"Shadow Offset X",type:"int",getDefaultValue:function(){return mxConstants.SHADOW_OFFSET_X},-isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OFFSET_Y,dispName:"Shadow Offset Y",type:"int",getDefaultValue:function(){return mxConstants.SHADOW_OFFSET_Y},isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_BLUR,dispName:"Shadow Blur",-type:"int",min:0,getDefaultValue:function(){return mxConstants.SHADOW_BLUR},isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:"linecap",dispName:"Line Cap",type:"enum",defVal:null,enumList:[{val:null,dispName:"Flat"},{val:"round",dispName:"Round"},{val:"square",dispName:"Square"}]},{name:"linejoin",dispName:"Line Join",type:"enum",defVal:null,enumList:[{val:null,dispName:"Miter"},{val:"arcs",-dispName:"Arcs"},{val:"bevel",dispName:"Bevel"},{val:"miter-clip",dispName:"Miter-Clip"},{val:"round",dispName:"Round"}]},{name:"miterlimit",dispName:"Miter Limit",type:"int",min:1,defVal:4,isVisible:function(k,v){k=mxUtils.getValue(k.style,"linejoin","miter");return"miter"==k||"miter-clip"==k}}];Editor.commonEdgeProperties=[{type:"separator"},{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"bezier",dispName:"Bezier",type:"bool",defVal:!1,isVisible:function(k){return"1"==+"aj.draw.io"==window.location.hostname||/\.cdn\.prod\.atlassian-dev\.net$/.test(window.location.hostname)||/\.cdn\.prod\.atlassian-dev-us-gov-mod\.net$/.test(window.location.hostname))Editor.maxPublicPromptLength=window.DRAWIO_ATLASSIAN_PROMPT_LENGTH;Editor.replaceSvgDataUris=!0;Editor.foreignObjectImages=!0;Editor.embedSvgFonts=!0;Editor.svgFileTheme="auto";Editor.svgRasterScale=4;Editor.htmlRasterScale=4;Editor.config=null;Editor.configVersion=null;Editor.createInheritProperty=function(k,u){return{name:u,+dispName:k,type:"bool",defVal:!1,isVisible:function(H,P){return 1==H.vertices.length?(P=P.editorUi.editor.graph.model,H=P.getParent(H.vertices[0]),P.isEdge(H)||P.isVertex(H)):!1},getValue:function(H,P){return"inherit"==mxUtils.getValue(H.style,u)},valueChanged:function(H,P,T,W){P=W.editorUi.editor.graph;"1"==H?P.setCellStyles(u,"inherit",T.vertices):P.setCellStyles(u,null,T.vertices)}}};Editor.isPatternFillStyle=function(k){k=mxUtils.getValue(k,"fillStyle","auto");return"auto"!=k&&"solid"!=k};Editor.commonProperties=+[{name:"enumerate",dispName:"Enumerate",type:"bool",defVal:!1,onChange:function(k){k.refresh()}},{name:"enumerateValue",dispName:"Enumerate Value",type:"string",defVal:"",isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,"enumerate","0")}},{name:"comic",dispName:"Comic",type:"bool",defVal:!1,isVisible:function(k,u){return"1"!=mxUtils.getValue(k.style,"sketch","0")}},{name:"jiggle",dispName:"Jiggle",type:"float",min:0,defVal:1,isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,"comic",+"0")||"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"fillWeight",dispName:"Fill Weight",type:"int",defVal:-1,isVisible:function(k,u){return("1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")||Editor.isPatternFillStyle(k.style))&&0<k.vertices.length}},{name:"hachureGap",dispName:"Hachure Gap",type:"int",defVal:-1,isVisible:function(k,u){return("1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")||Editor.isPatternFillStyle(k.style))&&+0<k.vertices.length}},{name:"hachureAngle",dispName:"Hachure Angle",type:"int",defVal:-41,isVisible:function(k,u){return("1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")||Editor.isPatternFillStyle(k.style)&&"dots"!=mxUtils.getValue(k.style,"fillStyle","auto"))&&0<k.vertices.length}},{name:"curveFitting",dispName:"Curve Fitting",type:"float",defVal:.95,isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"simplification",dispName:"Simplification",+type:"float",defVal:0,min:0,max:1,isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"disableMultiStroke",dispName:"Disable Multi Stroke",type:"bool",defVal:!1,isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"disableMultiStrokeFill",dispName:"Disable Multi Stroke Fill",type:"bool",defVal:!1,isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":+"0")&&0<k.vertices.length}},{name:"dashOffset",dispName:"Dash Offset",type:"int",defVal:-1,isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"dashGap",dispName:"Dash Gap",type:"int",defVal:-1,isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"zigzagOffset",dispName:"ZigZag Offset",type:"int",defVal:-1,isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,+"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"sketchStyle",dispName:"Sketch Style",type:"enum",defVal:"rough",enumList:[{val:"rough",dispName:"Rough"},{val:"comic",dispName:"Comic"}],isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:mxConstants.STYLE_SHADOWCOLOR,dispName:"Shadow Color",type:"color",getDefaultValue:function(){return mxConstants.SHADOWCOLOR},isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,+"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OPACITY,dispName:"Shadow Opacity",type:"int",min:0,max:100,getDefaultValue:function(){return 100*mxConstants.SHADOW_OPACITY},isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OFFSET_X,dispName:"Shadow Offset X",type:"int",getDefaultValue:function(){return mxConstants.SHADOW_OFFSET_X},+isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OFFSET_Y,dispName:"Shadow Offset Y",type:"int",getDefaultValue:function(){return mxConstants.SHADOW_OFFSET_Y},isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_BLUR,dispName:"Shadow Blur",+type:"int",min:0,getDefaultValue:function(){return mxConstants.SHADOW_BLUR},isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:"linecap",dispName:"Line Cap",type:"enum",defVal:null,enumList:[{val:null,dispName:"Flat"},{val:"round",dispName:"Round"},{val:"square",dispName:"Square"}]},{name:"linejoin",dispName:"Line Join",type:"enum",defVal:null,enumList:[{val:null,dispName:"Miter"},{val:"arcs",+dispName:"Arcs"},{val:"bevel",dispName:"Bevel"},{val:"miter-clip",dispName:"Miter-Clip"},{val:"round",dispName:"Round"}]},{name:"miterlimit",dispName:"Miter Limit",type:"int",min:1,defVal:4,isVisible:function(k,u){k=mxUtils.getValue(k.style,"linejoin","miter");return"miter"==k||"miter-clip"==k}}];Editor.commonEdgeProperties=[{type:"separator"},{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"bezier",dispName:"Bezier",type:"bool",defVal:!1,isVisible:function(k){return"1"==mxUtils.getValue(k.style,"curved","0")}},{name:"sourcePortConstraint",dispName:"Source Constraint",type:"enum",defVal:"none",enumList:[{val:"none",dispName:"None"},{val:"north",dispName:"North"},{val:"east",dispName:"East"},{val:"south",dispName:"South"},{val:"west",dispName:"West"},{val:"northsouth",dispName:"North + South"},{val:"eastwest",dispName:"East + West"}]},{name:"targetPortConstraint",dispName:"Target Constraint",type:"enum",defVal:"none",enumList:[{val:"none",dispName:"None"},{val:"north",dispName:"North"},{val:"east",dispName:"East"},{val:"south",dispName:"South"},{val:"west",dispName:"West"},{val:"northsouth",dispName:"North + South"},{val:"eastwest",dispName:"East + West"}]},{name:"jettySize",dispName:"Jetty Size",type:"int",min:0,defVal:"auto",allowAuto:!0,isVisible:function(k){return"orthogonalEdgeStyle"==mxUtils.getValue(k.style,mxConstants.STYLE_EDGE,null)}},{name:"segment",dispName:"Segment Size",type:"int",min:0,defVal:mxConstants.ENTITY_SEGMENT,isVisible:function(k){return"entityRelationEdgeStyle"==mxUtils.getValue(k.style,mxConstants.STYLE_EDGE,null)}},{name:"fillOpacity",dispName:"Fill Opacity",type:"int",min:0,max:100,defVal:100},{name:"strokeOpacity",dispName:"Stroke Opacity",type:"int",min:0,max:100,defVal:100},{name:"startFill",dispName:"Start Fill",type:"bool",defVal:!0},{name:"startFillColor",dispName:"Start Fill Color",type:"color",defVal:null},{name:"endFill",dispName:"End Fill",type:"bool",defVal:!0},{name:"endFillColor",dispName:"End Fill Color",type:"color",defVal:null},{name:"perimeterSpacing",dispName:"Terminal Spacing",type:"float",defVal:0},{name:"anchorPointDirection",dispName:"Anchor Direction",type:"bool",defVal:!0},{name:"snapToPoint",dispName:"Snap to Point",type:"bool",defVal:!1},{name:"dashPattern",dispName:"Dash Pattern",type:"numbers",defVal:""},{name:"fixDash",dispName:"Fixed Dash",type:"bool",defVal:!1},{name:"flowAnimationDuration",dispName:"Flow Duration",type:"int",defVal:500,isVisible:function(k){return"1"==mxUtils.getValue(k.style,"flowAnimation",null)}},{name:"flowAnimationTimingFunction",dispName:"Flow Timing",type:"enum",defVal:"linear",enumList:[{val:"linear",dispName:"Linear"},{val:"ease",dispName:"Ease"},{val:"ease-in",dispName:"Ease-in"},{val:"ease-out",dispName:"Ease-out"},{val:"ease-in-out",dispName:"Ease-in-out"}],isVisible:function(k){return"1"==mxUtils.getValue(k.style,"flowAnimation",null)}},{name:"flowAnimationDirection",dispName:"Flow Direction",type:"enum",defVal:"normal",enumList:[{val:"normal",dispName:"Normal"},{val:"reverse",dispName:"Reverse"},{val:"alternate",dispName:"Alternate"},{val:"alternate-reverse",dispName:"Alternate-Reverse"}],isVisible:function(k){return"1"==mxUtils.getValue(k.style,"flowAnimation",null)}},{name:"editable",dispName:"Editable",type:"bool",defVal:!0},{name:"metaEdit",dispName:"Edit Dialog",type:"bool",defVal:!1},{name:"backgroundOutline",dispName:"Background Outline",type:"bool",defVal:!1},{name:"bendable",dispName:"Bendable",type:"bool",defVal:!0},{name:"movable",dispName:"Movable",type:"bool",defVal:!0},{name:"cloneable",dispName:"Cloneable",-type:"bool",defVal:!0},{name:"deletable",dispName:"Deletable",type:"bool",defVal:!0},{name:"noJump",dispName:"No Jumps",type:"bool",defVal:!1},{name:"ignoreEdge",dispName:"Ignore Edge",type:"bool",defVal:!1},{name:"orthogonalLoop",dispName:"Loop Routing",type:"bool",defVal:!1},{name:"orthogonal",dispName:"Orthogonal",type:"bool",defVal:!1}].concat(Editor.commonProperties);Editor.commonVertexProperties=[{name:"colspan",dispName:"Colspan",type:"int",min:1,defVal:1,isVisible:function(k,v){v=v.editorUi.editor.graph;-return 1==k.vertices.length&&0==k.edges.length&&v.isTableCell(k.vertices[0])}},{name:"rowspan",dispName:"Rowspan",type:"int",min:1,defVal:1,isVisible:function(k,v){v=v.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&v.isTableCell(k.vertices[0])}},{type:"separator"},{name:"resizeLastRow",dispName:"Resize Last Row",type:"bool",getDefaultValue:function(k,v){k=v.editorUi.editor.graph.getCellStyle(1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null);return"1"==mxUtils.getValue(k,-"resizeLastRow","0")},isVisible:function(k,v){v=v.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&v.isTable(k.vertices[0])}},{name:"resizeLast",dispName:"Resize Last Column",type:"bool",getDefaultValue:function(k,v){k=v.editorUi.editor.graph.getCellStyle(1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null);return"1"==mxUtils.getValue(k,"resizeLast","0")},isVisible:function(k,v){v=v.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&v.isTable(k.vertices[0])}},+type:"bool",defVal:!0},{name:"deletable",dispName:"Deletable",type:"bool",defVal:!0},{name:"noJump",dispName:"No Jumps",type:"bool",defVal:!1},{name:"ignoreEdge",dispName:"Ignore Edge",type:"bool",defVal:!1},{name:"orthogonalLoop",dispName:"Loop Routing",type:"bool",defVal:!1},{name:"orthogonal",dispName:"Orthogonal",type:"bool",defVal:!1}].concat(Editor.commonProperties);Editor.commonVertexProperties=[{name:"colspan",dispName:"Colspan",type:"int",min:1,defVal:1,isVisible:function(k,u){u=u.editorUi.editor.graph;+return 1==k.vertices.length&&0==k.edges.length&&u.isTableCell(k.vertices[0])}},{name:"rowspan",dispName:"Rowspan",type:"int",min:1,defVal:1,isVisible:function(k,u){u=u.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&u.isTableCell(k.vertices[0])}},{type:"separator"},{name:"resizeLastRow",dispName:"Resize Last Row",type:"bool",getDefaultValue:function(k,u){k=u.editorUi.editor.graph.getCellStyle(1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null);return"1"==mxUtils.getValue(k,+"resizeLastRow","0")},isVisible:function(k,u){u=u.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&u.isTable(k.vertices[0])}},{name:"resizeLast",dispName:"Resize Last Column",type:"bool",getDefaultValue:function(k,u){k=u.editorUi.editor.graph.getCellStyle(1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null);return"1"==mxUtils.getValue(k,"resizeLast","0")},isVisible:function(k,u){u=u.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&u.isTable(k.vertices[0])}},{name:"fillOpacity",dispName:"Fill Opacity",type:"int",min:0,max:100,defVal:100},{name:"strokeOpacity",dispName:"Stroke Opacity",type:"int",min:0,max:100,defVal:100},{name:"overflow",dispName:"Text Overflow",defVal:"visible",type:"enum",enumList:[{val:"visible",dispName:"Visible"},{val:"hidden",dispName:"Hidden"},{val:"block",dispName:"Block"},{val:"fill",dispName:"Fill"},{val:"width",dispName:"Width"}]},{name:"shapeInsideShape",dispName:"Text Flow Shape",type:"enum",defVal:null,enumList:[{val:null,-dispName:"Automatic"},{val:"dataStorage",dispName:"Data Storage"},{val:"ellipse",dispName:"Ellipse"},{val:"hexagon",dispName:"Hexagon"},{val:"or",dispName:"Or"},{val:"parallelogram",dispName:"Parallelogram"},{val:"rhombus",dispName:"Rhombus"},{val:"step",dispName:"Step"},{val:"trapezoid",dispName:"Trapezoid"},{val:"triangle",dispName:"Triangle"},{val:"xor",dispName:"Xor"}],onChange:function(k,v){if(null!=v&&""!=v){v=k.getSelectionCells();for(var H=[],P=0;P<v.length;P++)k.model.isVertex(v[P])&&H.push(v[P]);+dispName:"Automatic"},{val:"dataStorage",dispName:"Data Storage"},{val:"ellipse",dispName:"Ellipse"},{val:"hexagon",dispName:"Hexagon"},{val:"or",dispName:"Or"},{val:"parallelogram",dispName:"Parallelogram"},{val:"rhombus",dispName:"Rhombus"},{val:"step",dispName:"Step"},{val:"trapezoid",dispName:"Trapezoid"},{val:"triangle",dispName:"Triangle"},{val:"xor",dispName:"Xor"}],onChange:function(k,u){if(null!=u&&""!=u){u=k.getSelectionCells();for(var H=[],P=0;P<u.length;P++)k.model.isVertex(u[P])&&H.push(u[P]);0<H.length&&k.setCellStyles("shapeInside","1",H)}}},{name:"shapeInsidePadding",dispName:"Text Flow Padding",type:"float",min:0,defVal:2},{name:"noLabel",dispName:"Hide Label",type:"bool",defVal:!1},{name:"direction",dispName:"Direction",type:"enum",defVal:"east",enumList:[{val:"north",dispName:"North"},{val:"east",dispName:"East"},{val:"south",dispName:"South"},{val:"west",dispName:"West"}]},{name:"portConstraint",dispName:"Constraint",type:"enum",defVal:"none",enumList:[{val:"none",dispName:"None"},-{val:"north",dispName:"North"},{val:"east",dispName:"East"},{val:"south",dispName:"South"},{val:"west",dispName:"West"},{val:"northsouth",dispName:"North + South"},{val:"eastwest",dispName:"East + West"}]},{name:"portConstraintRotation",dispName:"Rotate Constraint",type:"bool",defVal:!1},{name:"connectable",dispName:"Connectable",type:"bool",getDefaultValue:function(k,v){return v.editorUi.editor.graph.isCellConnectable(0<k.vertices.length&&0==k.edges.length?k.vertices[0]:null)},isVisible:function(k,-v){return 0<k.vertices.length&&0==k.edges.length}},{name:"allowArrows",dispName:"Allow Arrows",type:"bool",defVal:!0},{name:"snapToPoint",dispName:"Snap to Point",type:"bool",defVal:!1},{name:"outlineConnect",dispName:"Outline Connect",defVal:"1",type:"enum",enumList:[{val:"1",dispName:"Default"},{val:"0",dispName:"Delayed"},{val:"2",dispName:"Always"},{val:"3",dispName:"Never"}]},{name:"perimeter",dispName:"Perimeter",defVal:"none",type:"enum",enumList:[{val:"none",dispName:"None"},{val:"rectanglePerimeter",+{val:"north",dispName:"North"},{val:"east",dispName:"East"},{val:"south",dispName:"South"},{val:"west",dispName:"West"},{val:"northsouth",dispName:"North + South"},{val:"eastwest",dispName:"East + West"}]},{name:"portConstraintRotation",dispName:"Rotate Constraint",type:"bool",defVal:!1},{name:"connectable",dispName:"Connectable",type:"bool",getDefaultValue:function(k,u){return u.editorUi.editor.graph.isCellConnectable(0<k.vertices.length&&0==k.edges.length?k.vertices[0]:null)},isVisible:function(k,+u){return 0<k.vertices.length&&0==k.edges.length}},{name:"allowArrows",dispName:"Allow Arrows",type:"bool",defVal:!0},{name:"snapToPoint",dispName:"Snap to Point",type:"bool",defVal:!1},{name:"outlineConnect",dispName:"Outline Connect",defVal:"1",type:"enum",enumList:[{val:"1",dispName:"Default"},{val:"0",dispName:"Delayed"},{val:"2",dispName:"Always"},{val:"3",dispName:"Never"}]},{name:"perimeter",dispName:"Perimeter",defVal:"none",type:"enum",enumList:[{val:"none",dispName:"None"},{val:"rectanglePerimeter",dispName:"Rectangle"},{val:"ellipsePerimeter",dispName:"Ellipse"},{val:"rhombusPerimeter",dispName:"Rhombus"},{val:"trianglePerimeter",dispName:"Triangle"},{val:"hexagonPerimeter2",dispName:"Hexagon"},{val:"lifelinePerimeter",dispName:"Lifeline"},{val:"orthogonalPerimeter",dispName:"Orthogonal"},{val:"backbonePerimeter",dispName:"Backbone"},{val:"calloutPerimeter",dispName:"Callout"},{val:"parallelogramPerimeter",dispName:"Parallelogram"},{val:"trapezoidPerimeter",dispName:"Trapezoid"},{val:"stepPerimeter",-dispName:"Step"},{val:"centerPerimeter",dispName:"Center"}]},{name:"fixDash",dispName:"Fixed Dash",type:"bool",defVal:!1},{name:"container",dispName:"Container",type:"bool",getDefaultValue:function(k,v){k=0<k.vertices.length&&0==k.edges.length?k.vertices[0]:null;v=v.editorUi.editor.graph;return null!=k&&v.isSwimlane(k)},isVisible:function(k,v){return 0<k.vertices.length&&0==k.edges.length}},{name:"containerType",dispName:"Container Type",type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},-{val:"tree",dispName:"Tree"}],isVisible:function(k,v){var H=1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null;v=v.editorUi.editor.graph;return null!=H&&(v.isSwimlane(H)||v.isContainer(H)||0<v.model.getChildCount(H)||null!=k.style.containerType)}},{name:"dropTarget",dispName:"Drop Target",type:"bool",getDefaultValue:function(k,v){k=1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null;v=v.editorUi.editor.graph;return null!=k&&(v.isSwimlane(k)||0<v.model.getChildCount(k))},isVisible:function(k,-v){return 1==k.vertices.length&&0==k.edges.length}},{name:"collapsible",dispName:"Collapsible",type:"bool",getDefaultValue:function(k,v){var H=1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null;v=v.editorUi.editor.graph;return null!=H&&(v.isContainer(H)&&"0"!=k.style.collapsible||!v.isContainer(H)&&"1"==k.style.collapsible)},isVisible:function(k,v){return 1==k.vertices.length&&0==k.edges.length}},{name:"foldingIconSize",dispName:"Folding Icon Size",type:"int",min:1,getDefaultValue:function(k,-v){return v.editorUi.editor.graph.expandedImage.width},isVisible:function(k,v){v=v.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&v.isCellFoldable(k.vertices[0])}},{name:"recursiveResize",dispName:"Resize Children",type:"bool",defVal:!0,isVisible:function(k,v){return 1==k.vertices.length&&0==k.edges.length&&!v.editorUi.editor.graph.isSwimlane(k.vertices[0])&&null==mxUtils.getValue(k.style,"childLayout",null)}},{name:"expand",dispName:"Expand",type:"bool",defVal:!0},{name:"contract",-dispName:"Contract",type:"bool",defVal:!1},{name:"selectParentFirst",dispName:"Select Parent First",type:"bool",defVal:!1,isVisible:function(k,v){if(1!=k.vertices.length||0<k.edges.length)return!1;k=k.vertices[0];v=v.editorUi.editor.graph;return v.isSwimlane(k)||0<v.model.getChildCount(k)}},{name:"part",dispName:"Part",type:"bool",defVal:!1,isVisible:function(k,v){v=v.editorUi.editor.graph.model;return 0<k.vertices.length?v.isVertex(v.getParent(k.vertices[0])):!1}},{name:"editable",dispName:"Editable",-type:"bool",defVal:!0},{name:"editIcon",dispName:"Edit Icon",type:"bool",defVal:!1},{name:"moveIcon",dispName:"Move Icon",type:"bool",defVal:!1,getDefaultValue:function(k,v){k=1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null;v=v.editorUi.editor.graph;return null!=k&&null!=v.isTransparentBounds&&v.isTransparentBounds(k)}},{name:"connectIcon",dispName:"Connect Icon",type:"bool",getDefaultValue:function(k,v){return!0===Editor.showConnectHandle}},{name:"lockedGroup",dispName:"Locked Group",-type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},{val:"0",dispName:"Unlocked"},{val:"1",dispName:"Locked"}],isVisible:function(k,v){return 0<k.vertices.length&&0==k.edges.length}},{name:"lockedGroupIcon",dispName:"Lock Icon",type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},{val:"0",dispName:"Disabled"},{val:"1",dispName:"Visible"}],isVisible:function(k,v){return 0<k.vertices.length&&0==k.edges.length}},{name:"metaEdit",dispName:"Edit Dialog",type:"bool",defVal:!1},{name:"backgroundOutline",-dispName:"Background Outline",type:"bool",defVal:!1},{name:"movable",dispName:"Movable",type:"bool",defVal:!0},{name:"movableLabel",dispName:"Movable Label",type:"bool",defVal:!1,isVisible:function(k,v){k=0<k.vertices.length?v.editorUi.editor.graph.getCellGeometry(k.vertices[0]):null;return null!=k&&!k.relative}},{name:"autosize",dispName:"Autosize",type:"bool",defVal:!1},{name:"autosizeGrid",dispName:"Autosize Grid",type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},{val:"1",dispName:"Enabled"},-{val:"0",dispName:"Disabled"}],isVisible:function(k,v){return 0<k.vertices.length&&v.editorUi.editor.graph.isAutoSizeCell(k.vertices[0])}},{name:"fixedWidth",dispName:"Fixed Width",type:"bool",defVal:!1},{name:"resizable",dispName:"Resizable",type:"bool",defVal:!0},{name:"resizeWidth",dispName:"Resize Width",type:"bool",defVal:!1},{name:"resizeHeight",dispName:"Resize Height",type:"bool",defVal:!1},{name:"rotatable",dispName:"Rotatable",type:"bool",defVal:!0},{name:"cloneable",dispName:"Cloneable",-type:"bool",defVal:!0},{name:"deletable",dispName:"Deletable",type:"bool",defVal:!0},{name:"treeFolding",dispName:"Tree Folding",type:"bool",defVal:!1},{name:"treeMoving",dispName:"Tree Moving",type:"bool",defVal:!1},{name:"pointerEvents",dispName:"Pointer Events",type:"bool",defVal:!0,isVisible:function(k,v){var H=mxUtils.getValue(k.style,mxConstants.STYLE_FILLCOLOR,null);return!mxShape.forceFilledPointerEvents||v.editorUi.editor.graph.isSwimlane(k.vertices[0])||null==H||H==mxConstants.NONE||0==-mxUtils.getValue(k.style,mxConstants.STYLE_FILL_OPACITY,100)||0==mxUtils.getValue(k.style,mxConstants.STYLE_OPACITY,100)||null!=k.style.pointerEvents}},{name:"moveCells",dispName:"Move Cells on Fold",type:"bool",defVal:!1,isVisible:function(k,v){return 0<k.vertices.length&&v.editorUi.editor.graph.isContainer(k.vertices[0])}},{name:"expandToFront",dispName:"Expand to Front",type:"bool",defVal:!1,isVisible:function(k,v){return 0<k.vertices.length&&v.editorUi.editor.graph.isContainer(k.vertices[0])}},+dispName:"Step"},{val:"centerPerimeter",dispName:"Center"}]},{name:"fixDash",dispName:"Fixed Dash",type:"bool",defVal:!1},{name:"container",dispName:"Container",type:"bool",getDefaultValue:function(k,u){k=0<k.vertices.length&&0==k.edges.length?k.vertices[0]:null;u=u.editorUi.editor.graph;return null!=k&&u.isSwimlane(k)},isVisible:function(k,u){return 0<k.vertices.length&&0==k.edges.length}},{name:"containerType",dispName:"Container Type",type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},+{val:"tree",dispName:"Tree"}],isVisible:function(k,u){var H=1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null;u=u.editorUi.editor.graph;return null!=H&&(u.isSwimlane(H)||u.isContainer(H)||0<u.model.getChildCount(H)||null!=k.style.containerType)}},{name:"dropTarget",dispName:"Drop Target",type:"bool",getDefaultValue:function(k,u){k=1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null;u=u.editorUi.editor.graph;return null!=k&&(u.isSwimlane(k)||0<u.model.getChildCount(k))},isVisible:function(k,+u){return 1==k.vertices.length&&0==k.edges.length}},{name:"collapsible",dispName:"Collapsible",type:"bool",getDefaultValue:function(k,u){var H=1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null;u=u.editorUi.editor.graph;return null!=H&&(u.isContainer(H)&&"0"!=k.style.collapsible||!u.isContainer(H)&&"1"==k.style.collapsible)},isVisible:function(k,u){return 1==k.vertices.length&&0==k.edges.length}},{name:"foldingIconSize",dispName:"Folding Icon Size",type:"int",min:1,getDefaultValue:function(k,+u){return u.editorUi.editor.graph.expandedImage.width},isVisible:function(k,u){u=u.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&u.isCellFoldable(k.vertices[0])}},{name:"recursiveResize",dispName:"Resize Children",type:"bool",defVal:!0,isVisible:function(k,u){return 1==k.vertices.length&&0==k.edges.length&&!u.editorUi.editor.graph.isSwimlane(k.vertices[0])&&null==mxUtils.getValue(k.style,"childLayout",null)}},{name:"expand",dispName:"Expand",type:"bool",defVal:!0},{name:"contract",+dispName:"Contract",type:"bool",defVal:!1},{name:"selectParentFirst",dispName:"Select Parent First",type:"bool",defVal:!1,isVisible:function(k,u){if(1!=k.vertices.length||0<k.edges.length)return!1;k=k.vertices[0];u=u.editorUi.editor.graph;return u.isSwimlane(k)||0<u.model.getChildCount(k)}},{name:"part",dispName:"Part",type:"bool",defVal:!1,isVisible:function(k,u){u=u.editorUi.editor.graph.model;return 0<k.vertices.length?u.isVertex(u.getParent(k.vertices[0])):!1}},{name:"editable",dispName:"Editable",+type:"bool",defVal:!0},{name:"editIcon",dispName:"Edit Icon",type:"bool",defVal:!1},{name:"moveIcon",dispName:"Move Icon",type:"bool",defVal:!1,getDefaultValue:function(k,u){k=1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null;u=u.editorUi.editor.graph;return null!=k&&null!=u.isTransparentBounds&&u.isTransparentBounds(k)}},{name:"connectIcon",dispName:"Connect Icon",type:"bool",getDefaultValue:function(k,u){return!0===Editor.showConnectHandle}},{name:"lockedGroup",dispName:"Locked Group",+type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},{val:"0",dispName:"Unlocked"},{val:"1",dispName:"Locked"}],isVisible:function(k,u){return 0<k.vertices.length&&0==k.edges.length}},{name:"lockedGroupIcon",dispName:"Lock Icon",type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},{val:"0",dispName:"Disabled"},{val:"1",dispName:"Visible"}],isVisible:function(k,u){return 0<k.vertices.length&&0==k.edges.length}},{name:"metaEdit",dispName:"Edit Dialog",type:"bool",defVal:!1},{name:"backgroundOutline",+dispName:"Background Outline",type:"bool",defVal:!1},{name:"movable",dispName:"Movable",type:"bool",defVal:!0},{name:"movableLabel",dispName:"Movable Label",type:"bool",defVal:!1,isVisible:function(k,u){k=0<k.vertices.length?u.editorUi.editor.graph.getCellGeometry(k.vertices[0]):null;return null!=k&&!k.relative}},{name:"autosize",dispName:"Autosize",type:"bool",defVal:!1},{name:"autosizeGrid",dispName:"Autosize Grid",type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},{val:"1",dispName:"Enabled"},+{val:"0",dispName:"Disabled"}],isVisible:function(k,u){return 0<k.vertices.length&&u.editorUi.editor.graph.isAutoSizeCell(k.vertices[0])}},{name:"fixedWidth",dispName:"Fixed Width",type:"bool",defVal:!1},{name:"resizable",dispName:"Resizable",type:"bool",defVal:!0},{name:"resizeWidth",dispName:"Resize Width",type:"bool",defVal:!1},{name:"resizeHeight",dispName:"Resize Height",type:"bool",defVal:!1},{name:"rotatable",dispName:"Rotatable",type:"bool",defVal:!0},{name:"cloneable",dispName:"Cloneable",+type:"bool",defVal:!0},{name:"deletable",dispName:"Deletable",type:"bool",defVal:!0},{name:"treeFolding",dispName:"Tree Folding",type:"bool",defVal:!1},{name:"treeMoving",dispName:"Tree Moving",type:"bool",defVal:!1},{name:"pointerEvents",dispName:"Pointer Events",type:"bool",defVal:!0,isVisible:function(k,u){var H=mxUtils.getValue(k.style,mxConstants.STYLE_FILLCOLOR,null);return!mxShape.forceFilledPointerEvents||u.editorUi.editor.graph.isSwimlane(k.vertices[0])||null==H||H==mxConstants.NONE||0==+mxUtils.getValue(k.style,mxConstants.STYLE_FILL_OPACITY,100)||0==mxUtils.getValue(k.style,mxConstants.STYLE_OPACITY,100)||null!=k.style.pointerEvents}},{name:"moveCells",dispName:"Move Cells on Fold",type:"bool",defVal:!1,isVisible:function(k,u){return 0<k.vertices.length&&u.editorUi.editor.graph.isContainer(k.vertices[0])}},{name:"expandToFront",dispName:"Expand to Front",type:"bool",defVal:!1,isVisible:function(k,u){return 0<k.vertices.length&&u.editorUi.editor.graph.isContainer(k.vertices[0])}},Editor.createInheritProperty("Inherit Font Family",mxConstants.STYLE_FONTFAMILY),Editor.createInheritProperty("Inherit Font Size",mxConstants.STYLE_FONTSIZE),Editor.createInheritProperty("Inherit Font Color",mxConstants.STYLE_FONTCOLOR),Editor.createInheritProperty("Inherit Fill Color",mxConstants.STYLE_FILLCOLOR),Editor.createInheritProperty("Inherit Stroke Color",mxConstants.STYLE_STROKECOLOR)].concat(Editor.commonProperties);Editor.defaultCsvValue='##\n## Example CSV import. Use ## for comments and # for configuration. Paste CSV below.\n## The following names are reserved and should not be used (or ignored):\n## id, tooltip, placeholder(s), link and label (see below)\n##\n#\n## Node label with placeholders and HTML.\n## Default is \'%name_of_first_column%\'.\n#\n# label: %name%<br><i style="color:gray;">%position%</i><br><a href="mailto:%email%">Email</a>\n#\n## Node style (placeholders are replaced once).\n## Default is the current style for nodes.\n#\n# style: label;image=%image%;whiteSpace=wrap;html=1;rounded=1;fillColor=%fill%;strokeColor=%stroke%;\n#\n## Parent style for nodes with child nodes (placeholders are replaced once).\n#\n# parentstyle: swimlane;whiteSpace=wrap;html=1;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeLast=0;collapsible=1;\n#\n## Style to be used for objects not in the CSV. If this is - then such objects are ignored,\n## else they are created using this as their style, eg. whiteSpace=wrap;html=1;\n#\n# unknownStyle: -\n#\n## Optional column name that contains a reference to a named style in styles.\n## Default is the current style for nodes.\n#\n# stylename: -\n#\n## JSON for named styles of the form {"name": "style", "name": "style"} where style is a cell style with\n## placeholders that are replaced once.\n#\n# styles: -\n#\n## JSON for variables in styles of the form {"name": "value", "name": "value"} where name is a string\n## that will replace a placeholder in a style.\n#\n# vars: -\n#\n## Optional column name that contains a reference to a named label in labels.\n## Default is the current label.\n#\n# labelname: -\n#\n## JSON for named labels of the form {"name": "label", "name": "label"} where label is a cell label with\n## placeholders.\n#\n# labels: -\n#\n## Uses the given column name as the identity for cells (updates existing cells).\n## Default is no identity (empty value or -).\n#\n# identity: -\n#\n## Uses the given column name as the parent reference for cells. Default is no parent (empty or -).\n## The identity above is used for resolving the reference so it must be specified.\n#\n# parent: -\n#\n## Adds a prefix to the identity of cells to make sure they do not collide with existing cells (whose\n## IDs are numbers from 0..n, sometimes with a GUID prefix in the context of realtime collaboration).\n## Default is csvimport-.\n#\n# namespace: csvimport-\n#\n## Connections between rows ("from": source colum, "to": target column).\n## Label, style and invert are optional. Defaults are \'\', current style and false.\n## If placeholders are used in the style, they are replaced with data from the source.\n## An optional placeholders can be set to target to use data from the target instead.\n## In addition to label, an optional fromlabel and tolabel can be used to name the column\n## that contains the text for the label in the edges source or target (invert ignored).\n## In addition to those, an optional source and targetlabel can be used to specify a label\n## that contains placeholders referencing the respective columns in the source or target row.\n## The label is created in the form fromlabel + sourcelabel + label + tolabel + targetlabel.\n## Additional labels can be added by using an optional labels array with entries of the\n## form {"label": string, "x": number, "y": number, "dx": number, "dy": number} where\n## x is from -1 to 1 along the edge, y is orthogonal, and dx/dy are offsets in pixels.\n## An optional placeholders with the string value "source" or "target" can be specified\n## to replace placeholders in the additional label with data from the source or target.\n## An optional data object can be specified to define the metadata for the connector.\n## The target column may contain a comma-separated list of values.\n## Multiple connect entries are allowed.\n#\n# connect: {"from": "manager", "to": "name", "invert": true, "label": "manages", \\\n# "style": "curved=1;endArrow=blockThin;endFill=1;fontSize=11;"}\n# connect: {"from": "refs", "to": "id", "style": "curved=1;fontSize=11;"}\n#\n## Node x-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# left: \n#\n## Node y-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# top: \n#\n## Node width. Possible value is a number (in px), auto or an @ sign followed by a column\n## name that contains the value for the width. Default is auto.\n#\n# width: auto\n#\n## Node height. Possible value is a number (in px), auto, width or an @ sign followed by a column\n## name that contains the value for the height. Default is auto.\n#\n# height: auto\n#\n## Collapsed state for vertices. Possible values are true or false. Default is false.\n#\n# collapsed: false\n#\n## Padding for autosize. Default is 0.\n#\n# padding: -12\n#\n## Comma-separated list of ignored columns for metadata. (These can be\n## used for connections and styles but will not be added as metadata.)\n#\n# ignore: id,image,fill,stroke,refs,manager\n#\n## Column to be renamed to link attribute (used as link).\n#\n# link: url\n#\n## Spacing between nodes. Default is 40.\n#\n# nodespacing: 40\n#\n## Spacing between levels of hierarchical layouts. Default is 100.\n#\n# levelspacing: 100\n#\n## Spacing between parallel edges. Default is 40. Use 0 to disable.\n#\n# edgespacing: 40\n#\n## Name or JSON of layout. Possible values are auto, none, verticaltree, horizontaltree,\n## verticalflow, horizontalflow, organic, circle, orgchart, the ELK shorthands\n## elkRadial, elkOrganic, elkStress, libavoid (orthogonal edge routing), parallels\n## (spread overlapping parallel edges), or a JSON string as used in Layout, Apply.\n## Default is auto.\n#\n# layout: auto\n#\n## ---- CSV below this line. First line are column names. ----\nname,position,id,location,manager,email,fill,stroke,refs,url,image\nTessa Miller,CFO,emi,Office 1,,[email protected],default,#6c8ebf,,https://app.diagrams.net,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-3-128.png\nEdward Morrison,Brand Manager,emo,Office 2,Tessa Miller,[email protected],default,#82b366,,https://app.diagrams.net,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-10-3-128.png\nAlison Donovan,System Admin,rdo,Office 3,Tessa Miller,[email protected],default,#82b366,"emo,tva",https://app.diagrams.net,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-2-128.png\nEvan Valet,HR Director,tva,Office 4,Tessa Miller,[email protected],default,#82b366,,https://app.diagrams.net,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-9-2-128.png\n';-Editor.canvasSupported=!1;(function(){try{var k=document.createElement("canvas");Editor.canvasSupported=!(!k.getContext||!k.getContext("2d"))}catch(v){}})();Editor.useCanvasForExport=!1;(function(){try{var k=document.createElement("canvas"),v=new Image;v.onload=function(){try{k.getContext("2d").drawImage(v,0,0);var H=k.toDataURL("image/png");Editor.useCanvasForExport=null!=H&&6<H.length}catch(P){}};v.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(H){}})();-Editor.jpgSupported=!1;Editor.webpSupported=!1;(function(){try{var k=document.createElement("canvas");k.width=k.height=1;var v=k.toDataURL("image/jpeg");Editor.jpgSupported=null!==v.match("image/jpeg");v=k.toDataURL("image/webp");Editor.webpSupported=null!==v.match("image/webp")}catch(H){}})();Editor.loadCompatibleCss=function(k){mxUtils.lightDarkColorSupported||mxUtils.get(k||"styles/grapheditor.css",mxUtils.bind(this,function(v){if(200<=v.getStatus()&&299>=v.getStatus()){var H=document.createElement("style");-H.type="text/css";var P=H.appendChild,T=document,W=T.createTextNode;v=v.getText().replace(/light-dark\(\s*(var\([^\)]+\)|[^,]+)\s*,\s*(var\([^\)]+\)|[^)]+)\s*\)/g,"$1");try{CSS.supports("selector(:has(*))")||(v=v.replace(/:has\(/g,":not(")+"\n.geFormatTitleContainer { overflow: hidden !important; }\n.geRuler+.geRuler { margin-top: 14px !important; }\n.geDiagramContainer { margin: 0 !important; }")}catch(ha){}P.call(H,W.call(T,v));document.head.appendChild(H)}}))};Editor.replacePlaceholders=function(k,-v){var H=[];if(null!=k&&null!=v){for(var P=RegExp("{([^{}\"'=;]+)}","g"),T,W=0;T=P.exec(k);){var ha=T[0];if(2<ha.length){var X=v(ha.substring(1,ha.length-1)),ea=ha;null!=X&&(ea=X);H.push(k.substring(W,T.index)+ea);W=T.index+ha.length}}H.push(k.substring(W))}return H.join("")};Editor.executeSimpleJsonPath=function(k,v){v=v.replace(/^\$\.?/,"").split(".");v=$jscomp.makeIterator(v);for(var H=v.next();!H.done;H=v.next()){var P=H.value;if(!k)return[];if(H=P.match(/([^\[]+)\[(\d+)\]/))if(P=H[1],H=parseInt(H[2]),-k=k[P],Array.isArray(k)&&H<k.length)k=k[H];else return[];else k=k[P]}return void 0!==k?[k]:[]};Editor.createRoughCanvas=function(k){var v=rough.canvas({getContext:function(){return k}});v.draw=function(H){var P=H.sets||[];H=H.options||this.getDefaultOptions();for(var T=0;T<P.length;T++){var W=P[T];switch(W.type){case "path":null!=H.stroke&&this._drawToContext(k,W,H);break;case "fillPath":this._drawToContext(k,W,H);break;case "fillSketch":this.fillSketch(k,W,H)}}};v.fillSketch=function(H,P,T){var W=+Editor.canvasSupported=!1;(function(){try{var k=document.createElement("canvas");Editor.canvasSupported=!(!k.getContext||!k.getContext("2d"))}catch(u){}})();Editor.useCanvasForExport=!1;(function(){try{var k=document.createElement("canvas"),u=new Image;u.onload=function(){try{k.getContext("2d").drawImage(u,0,0);var H=k.toDataURL("image/png");Editor.useCanvasForExport=null!=H&&6<H.length}catch(P){}};u.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(H){}})();+Editor.jpgSupported=!1;Editor.webpSupported=!1;(function(){try{var k=document.createElement("canvas");k.width=k.height=1;var u=k.toDataURL("image/jpeg");Editor.jpgSupported=null!==u.match("image/jpeg");u=k.toDataURL("image/webp");Editor.webpSupported=null!==u.match("image/webp")}catch(H){}})();Editor.loadCompatibleCss=function(k){mxUtils.lightDarkColorSupported||mxUtils.get(k||"styles/grapheditor.css",mxUtils.bind(this,function(u){if(200<=u.getStatus()&&299>=u.getStatus()){var H=document.createElement("style");+H.type="text/css";var P=H.appendChild,T=document,W=T.createTextNode;u=u.getText().replace(/light-dark\(\s*(var\([^\)]+\)|[^,]+)\s*,\s*(var\([^\)]+\)|[^)]+)\s*\)/g,"$1");try{CSS.supports("selector(:has(*))")||(u=u.replace(/:has\(/g,":not(")+"\n.geFormatTitleContainer { overflow: hidden !important; }\n.geRuler+.geRuler { margin-top: 14px !important; }\n.geDiagramContainer { margin: 0 !important; }")}catch(ha){}P.call(H,W.call(T,u));document.head.appendChild(H)}}))};Editor.replacePlaceholders=function(k,+u){var H=[];if(null!=k&&null!=u){for(var P=RegExp("{([^{}\"'=;]+)}","g"),T,W=0;T=P.exec(k);){var ha=T[0];if(2<ha.length){var X=u(ha.substring(1,ha.length-1)),ea=ha;null!=X&&(ea=X);H.push(k.substring(W,T.index)+ea);W=T.index+ha.length}}H.push(k.substring(W))}return H.join("")};Editor.executeSimpleJsonPath=function(k,u){u=u.replace(/^\$\.?/,"").split(".");u=$jscomp.makeIterator(u);for(var H=u.next();!H.done;H=u.next()){var P=H.value;if(!k)return[];if(H=P.match(/([^\[]+)\[(\d+)\]/))if(P=H[1],H=parseInt(H[2]),+k=k[P],Array.isArray(k)&&H<k.length)k=k[H];else return[];else k=k[P]}return void 0!==k?[k]:[]};Editor.createRoughCanvas=function(k){var u=rough.canvas({getContext:function(){return k}});u.draw=function(H){var P=H.sets||[];H=H.options||this.getDefaultOptions();for(var T=0;T<P.length;T++){var W=P[T];switch(W.type){case "path":null!=H.stroke&&this._drawToContext(k,W,H);break;case "fillPath":this._drawToContext(k,W,H);break;case "fillSketch":this.fillSketch(k,W,H)}}};u.fillSketch=function(H,P,T){var W=k.state.strokeColor,ha=k.state.strokeWidth,X=k.state.strokeAlpha,ea=k.state.dashed,oa=T.fillWeight;0>oa&&(oa=T.strokeWidth/2);k.setStrokeAlpha(k.state.fillAlpha);k.setStrokeColor(T.fill||"");k.setStrokeWidth(oa);k.setDashed(!1);oa=null!=H.root?H.root.lastChild:null;this._drawToContext(H,P,T);null!=H.root&&null!=H.root.lastChild&&H.root.lastChild!=oa&&"path"==H.root.lastChild.nodeName&&H.root.lastChild.setAttribute("data-rough-fill","1");k.setDashed(ea);k.setStrokeWidth(ha);k.setStrokeColor(W);k.setStrokeAlpha(X)};-v._drawToContext=function(H,P,T){H.begin();for(var W=0;W<P.ops.length;W++){var ha=P.ops[W],X=ha.data;switch(ha.op){case "move":H.moveTo(X[0],X[1]);break;case "bcurveTo":H.curveTo(X[0],X[1],X[2],X[3],X[4],X[5]);break;case "lineTo":H.lineTo(X[0],X[1])}}H.end();"fillPath"===P.type&&T.filled?H.fill():H.stroke()};return v};(function(){function k(W,ha,X){this.canvas=W;this.rc=ha;this.shape=X;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=+u._drawToContext=function(H,P,T){H.begin();for(var W=0;W<P.ops.length;W++){var ha=P.ops[W],X=ha.data;switch(ha.op){case "move":H.moveTo(X[0],X[1]);break;case "bcurveTo":H.curveTo(X[0],X[1],X[2],X[3],X[4],X[5]);break;case "lineTo":H.lineTo(X[0],X[1])}}H.end();"fillPath"===P.type&&T.filled?H.fill():H.stroke()};return u};(function(){function k(W,ha,X){this.canvas=W;this.rc=ha;this.shape=X;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,k.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,k.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,k.prototype.rect);this.originalRoundrect=this.canvas.roundrect;this.canvas.roundrect=mxUtils.bind(this,k.prototype.roundrect);this.originalEllipse=this.canvas.ellipse;this.canvas.ellipse=mxUtils.bind(this,k.prototype.ellipse);this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,k.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,k.prototype.moveTo);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,k.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,k.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,k.prototype.arcTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,k.prototype.close);this.originalFill=this.canvas.fill;this.canvas.fill=mxUtils.bind(this,k.prototype.fill);this.originalStroke=this.canvas.stroke;this.canvas.stroke=mxUtils.bind(this,k.prototype.stroke);this.originalFillAndStroke=this.canvas.fillAndStroke;this.canvas.fillAndStroke=mxUtils.bind(this,k.prototype.fillAndStroke);this.path=[];this.passThrough=!1}k.prototype.moveOp="M";k.prototype.lineOp="L";k.prototype.quadOp="Q";k.prototype.curveOp="C";k.prototype.closeOp="Z";k.prototype.getStyle=function(W,ha){var X=1;if(null!=this.shape.state){var ea=@@ -3839,119 +3839,120 @@ this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,W,ha,X,!0)))};k.prototype.roundrect=function(W,ha,X,ea,oa,la){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(W+oa,ha),this.lineTo(W+X-oa,ha),this.quadTo(W+X,ha,W+X,ha+la),this.lineTo(W+X,ha+ea-la),this.quadTo(W+X,ha+ea,W+X-oa,ha+ea),this.lineTo(W+oa,ha+ea),this.quadTo(W,ha+ea,W,ha+ea-la),this.lineTo(W,ha+la),this.quadTo(W,ha,W+oa,ha))};k.prototype.drawPath=function(W){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),W)}catch(X){}this.passThrough=!1}else if(null!=this.nextShape){for(var ha in W)this.nextShape.options[ha]=W[ha];W.stroke!=mxConstants.NONE&&null!=W.stroke||delete this.nextShape.options.stroke;W.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};k.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};k.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};k.prototype.fillAndStroke=function(){this.passThrough?this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};k.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo;this.canvas.close=this.originalClose;this.canvas.fill=-this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(W){return new k(W,Editor.createRoughCanvas(W),this)};var v=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(W){return this.outline||-null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?v.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(W):this.createRoughCanvas(W)};var H=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(W,ha,X,ea,oa){null!=W.handJiggle&&W.handJiggle.passThrough||H.apply(this,arguments)};var P=mxShape.prototype.paint;mxShape.prototype.paint=function(W){var ha=W.addTolerance,X=!0;null!=this.style&&(X="1"==+this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(W){return new k(W,Editor.createRoughCanvas(W),this)};var u=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(W){return this.outline||+null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?u.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(W):this.createRoughCanvas(W)};var H=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(W,ha,X,ea,oa){null!=W.handJiggle&&W.handJiggle.passThrough||H.apply(this,arguments)};var P=mxShape.prototype.paint;mxShape.prototype.paint=function(W){var ha=W.addTolerance,X=!0;null!=this.style&&(X="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=W.handJiggle&&W.handJiggle.constructor==k&&!this.outline){W.save();var ea=this.fill,oa=this.stroke;this.stroke=this.fill=null;var la=this.configurePointerEvents,ca=W.setStrokeColor;W.setStrokeColor=function(){};var ta=W.setFillColor;W.setFillColor=function(){};X||null==ea||(this.configurePointerEvents=function(){});W.handJiggle.passThrough=!0;P.apply(this,arguments);W.handJiggle.passThrough=!1;W.setFillColor=ta;W.setStrokeColor=ca;this.configurePointerEvents=la;this.stroke=oa;this.fill=ea;W.restore();X&&null!=ea&&(W.addTolerance=function(){})}P.apply(this,arguments);W.addTolerance=ha};var T=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(W,ha,X,ea,oa,la){null!=W.handJiggle&&W.handJiggle.constructor==k?(W.handJiggle.passThrough=!0,T.apply(this,arguments),W.handJiggle.passThrough=!1):T.apply(this,arguments)}})();Editor.fastCompress=function(k){return null==k||0==k.length||"undefined"===typeof pako?-k:Graph.arrayBufferToString(pako.deflateRaw(k))};Editor.fastDecompress=function(k){return null==k||0==k.length||"undefined"===typeof pako?k:pako.inflateRaw(Graph.stringToArrayBuffer(atob(k)),{to:"string"})};Editor.extractGraphModel=function(k,v,H){if(null!=k&&"undefined"!==typeof pako){var P=k.ownerDocument.getElementsByTagName("div"),T=[];if(null!=P&&0<P.length)for(var W=0;W<P.length;W++)if("mxgraph"==P[W].getAttribute("class")){T.push(P[W]);break}0<T.length&&(P=T[0].getAttribute("data-mxgraph"),+k:Graph.arrayBufferToString(pako.deflateRaw(k))};Editor.fastDecompress=function(k){return null==k||0==k.length||"undefined"===typeof pako?k:pako.inflateRaw(Graph.stringToArrayBuffer(atob(k)),{to:"string"})};Editor.extractGraphModel=function(k,u,H){if(null!=k&&"undefined"!==typeof pako){var P=k.ownerDocument.getElementsByTagName("div"),T=[];if(null!=P&&0<P.length)for(var W=0;W<P.length;W++)if("mxgraph"==P[W].getAttribute("class")){T.push(P[W]);break}0<T.length&&(P=T[0].getAttribute("data-mxgraph"),null!=P?(T=JSON.parse(P),null!=T&&null!=T.xml&&(k=mxUtils.parseXml(T.xml),k=k.documentElement)):(T=T[0].getElementsByTagName("div"),0<T.length&&(P=mxUtils.getTextContent(T[0]),P=Graph.decompress(P,null,H),0<P.length&&(k=mxUtils.parseXml(P),k=k.documentElement))))}if(null!=k&&"svg"==k.nodeName)if(P=k.getAttribute("content"),null!=P&&"<"!=P.charAt(0)&&"%"!=P.charAt(0)&&(P=unescape(window.atob?atob(P):Base64.decode(cont,P))),null!=P&&"%"==P.charAt(0)&&(P=decodeURIComponent(P)),null!=P&&0<P.length)k=-mxUtils.parseXml(P).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==k||v||(T=null,"diagram"==k.nodeName?T=k:"mxfile"==k.nodeName&&(P=k.getElementsByTagName("diagram"),0<P.length&&(T=P[Math.max(0,Math.min(P.length-1,urlParams.page||0))])),null!=T&&(k=Editor.parseDiagramNode(T,H)));null==k||"mxGraphModel"==k.nodeName||v&&"mxfile"==k.nodeName||(k=null);return k};Editor.parseDiagramNode=function(k,v,H){Editor.validateDiagramNode(k);var P=mxUtils.trim(mxUtils.getTextContent(k)),-T=null;0<P.length?(v=Graph.decompress(P,null,v),null!=v&&0<v.length&&(T=mxUtils.parseXml(v).documentElement)):(k=mxUtils.getChildNodes(k),0<k.length&&(T=k[0],H&&(T=Editor.parseDiagramNode(T,v,!1)),v=mxUtils.createXmlDocument(),v.appendChild(v.importNode(T,!0)),T=v.documentElement));return T};Editor.getDiagramNodeXml=function(k){Editor.validateDiagramNode(k);var v=mxUtils.getNodeValue(k),H=null;0<v.length?H=Graph.decompress(v):(k=k.getElementsByTagName("mxGraphModel"),null!=k&&0<k.length&&(H=mxUtils.getXml(k[0])));-return H};Editor.validateDiagramNode=function(k){if(0==mxUtils.trim(mxUtils.getTextContent(k)).length&&0==mxUtils.getChildNodes(k).length){var v=new mxCodec,H=new mxGraphModel;k.appendChild(v.encode(H))}return k};Editor.extractGraphModelFromPdf=function(k){var v=null;k=k.substring(k.indexOf(",")+1);k=window.atob&&!mxClient.IS_SF?atob(k):Base64.decode(k,!0);if("%PDF-1.7"==k.substring(0,8)){for(var H=k.indexOf("EmbeddedFile");-1<H;){var P=k.indexOf("stream",H)+9;if(0<k.substring(H,P).indexOf("application#2Fvnd.jgraph.mxfile")){var T=+mxUtils.parseXml(P).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==k||u||(T=null,"diagram"==k.nodeName?T=k:"mxfile"==k.nodeName&&(P=k.getElementsByTagName("diagram"),0<P.length&&(T=P[Math.max(0,Math.min(P.length-1,urlParams.page||0))])),null!=T&&(k=Editor.parseDiagramNode(T,H)));null==k||"mxGraphModel"==k.nodeName||u&&"mxfile"==k.nodeName||(k=null);return k};Editor.parseDiagramNode=function(k,u,H){Editor.validateDiagramNode(k);var P=mxUtils.trim(mxUtils.getTextContent(k)),+T=null;0<P.length?(u=Graph.decompress(P,null,u),null!=u&&0<u.length&&(T=mxUtils.parseXml(u).documentElement)):(k=mxUtils.getChildNodes(k),0<k.length&&(T=k[0],H&&(T=Editor.parseDiagramNode(T,u,!1)),u=mxUtils.createXmlDocument(),u.appendChild(u.importNode(T,!0)),T=u.documentElement));return T};Editor.getDiagramNodeXml=function(k){Editor.validateDiagramNode(k);var u=mxUtils.getNodeValue(k),H=null;0<u.length?H=Graph.decompress(u):(k=k.getElementsByTagName("mxGraphModel"),null!=k&&0<k.length&&(H=mxUtils.getXml(k[0])));+return H};Editor.validateDiagramNode=function(k){if(0==mxUtils.trim(mxUtils.getTextContent(k)).length&&0==mxUtils.getChildNodes(k).length){var u=new mxCodec,H=new mxGraphModel;k.appendChild(u.encode(H))}return k};Editor.extractGraphModelFromPdf=function(k){var u=null;k=k.substring(k.indexOf(",")+1);k=window.atob&&!mxClient.IS_SF?atob(k):Base64.decode(k,!0);if("%PDF-1.7"==k.substring(0,8)){for(var H=k.indexOf("EmbeddedFile");-1<H;){var P=k.indexOf("stream",H)+9;if(0<k.substring(H,P).indexOf("application#2Fvnd.jgraph.mxfile")){var T=k.indexOf("endstream",P-1);try{return pako.inflateRaw(Graph.stringToArrayBuffer(k.substring(P,T)),{to:"string"})}catch(ca){}}H=k.indexOf("EmbeddedFile",H+1)}for(H=k.indexOf("/ObjStm");0<H;){P=k.indexOf("stream",H)+9;T=k.indexOf("endstream",P-1);try{var W=pako.inflateRaw(Graph.stringToArrayBuffer(k.substring(P,T)),{to:"string"}),ha=W.indexOf("/Subject <");if(0<ha){var X=W.substring(ha+14,W.indexOf(">",ha));if(null!=X){P=X;T=[];for(var ea=0;ea<P.length;ea+=2){var oa=P.substr(ea,2);"00"!=oa&&T.push(String.fromCharCode(parseInt(oa,-16)))}v=T.join("")}break}}catch(ca){}H=k.indexOf("/ObjStm",H+1)}}if(null==v&&"%PDF-"==k.substring(0,5)){W="";X=ha=0;var la=[];for(oa=null;X<k.length;){H=k.charCodeAt(X);X+=1;10!=H&&(W+=String.fromCharCode(H));H=="/Subject (%3Cmxfile".charCodeAt(ha)?ha++:ha=0;if(19==ha&&(P=k.indexOf("%3C%2Fmxfile%3E",X)+15,X-=9,P>X)){v=k.substring(X,P);break}10==H&&("endobj"==W?oa=null:"obj"==W.substring(W.length-3,W.length)||"xref"==W||"trailer"==W?(oa=[],la[W.split(" ")[0]]=oa):null!=oa&&oa.push(W),W="")}}null==-v&&null!=la&&(v=Editor.extractGraphModelFromXref(la));null!=v&&(v=decodeURIComponent(v.replace(/\\([\\()])/g,"$1").replace(/\\\(/g,"(").replace(/\\\)/g,")")));return v};Editor.extractGraphModelFromXref=function(k){var v=k.trailer,H=null;null!=v&&(v=/.* \/Info (\d+) (\d+) R/g.exec(v.join("\n")),null!=v&&0<v.length&&(v=k[v[1]],null!=v&&(v=/.* \/Subject (\d+) (\d+) R/g.exec(v.join("\n")),null!=v&&0<v.length&&(k=k[v[1]],null!=k&&(k=k.join("\n"),H=k.substring(1,k.length-1))))));return H};Editor.extractParserError=-function(k,v){var H=null;k=null!=k?k.getElementsByTagName("parsererror"):null;null!=k&&0<k.length&&(H=v||mxResources.get("invalidChars"),v=k[0].getElementsByTagName("div"),0<v.length&&(H=mxUtils.getTextContent(v[0])));return null!=H?mxUtils.trim(H):H};Editor.addRetryToError=function(k,v){null!=k&&(k=null!=k.error?k.error:k,null==k.retry&&(k.retry=v))};Editor.mermaidToDrawio=function(k,v,H){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(k,v,H)};Editor.configure=function(k){if(null!=+16)))}u=T.join("")}break}}catch(ca){}H=k.indexOf("/ObjStm",H+1)}}if(null==u&&"%PDF-"==k.substring(0,5)){W="";X=ha=0;var la=[];for(oa=null;X<k.length;){H=k.charCodeAt(X);X+=1;10!=H&&(W+=String.fromCharCode(H));H=="/Subject (%3Cmxfile".charCodeAt(ha)?ha++:ha=0;if(19==ha&&(P=k.indexOf("%3C%2Fmxfile%3E",X)+15,X-=9,P>X)){u=k.substring(X,P);break}10==H&&("endobj"==W?oa=null:"obj"==W.substring(W.length-3,W.length)||"xref"==W||"trailer"==W?(oa=[],la[W.split(" ")[0]]=oa):null!=oa&&oa.push(W),W="")}}null==+u&&null!=la&&(u=Editor.extractGraphModelFromXref(la));null!=u&&(u=decodeURIComponent(u.replace(/\\([\\()])/g,"$1").replace(/\\\(/g,"(").replace(/\\\)/g,")")));return u};Editor.extractGraphModelFromXref=function(k){var u=k.trailer,H=null;null!=u&&(u=/.* \/Info (\d+) (\d+) R/g.exec(u.join("\n")),null!=u&&0<u.length&&(u=k[u[1]],null!=u&&(u=/.* \/Subject (\d+) (\d+) R/g.exec(u.join("\n")),null!=u&&0<u.length&&(k=k[u[1]],null!=k&&(k=k.join("\n"),H=k.substring(1,k.length-1))))));return H};Editor.extractParserError=+function(k,u){var H=null;k=null!=k?k.getElementsByTagName("parsererror"):null;null!=k&&0<k.length&&(H=u||mxResources.get("invalidChars"),u=k[0].getElementsByTagName("div"),0<u.length&&(H=mxUtils.getTextContent(u[0])));return null!=H?mxUtils.trim(H):H};Editor.addRetryToError=function(k,u){null!=k&&(k=null!=k.error?k.error:k,null==k.retry&&(k.retry=u))};Editor.mermaidToDrawio=function(k,u,H){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(k,u,H)};Editor.configure=function(k){if(null!=k){Editor.config=k;Editor.configVersion=k.version;k.debug&&(urlParams.test="1");k.passiveScroll&&(Editor.passiveScroll=!0);k.noResizers&&(Editor.noResizers=!0);k.preserveViewState&&(Editor.preserveViewState=!0);null!=k.passThroughKeys&&(Editor.passThroughKeys=k.passThroughKeys);null!=k.keyboardShortcuts&&(Array.isArray(k.keyboardShortcuts)?Editor.keyboardShortcuts=k.keyboardShortcuts:EditorUi.debug("Configuration Error: Array expected for keyboardShortcuts"));k.suppressNewWindows&&(Editor.suppressNewWindows=-!0,Editor.popupsAllowed=!1);k.useInternalClipboard&&(EditorUi.prototype.useInternalClipboard=k.useInternalClipboard);if(null!=k.customCss){var v=document.createElement("style");v.type="text/css";v.appendChild(document.createTextNode(k.customCss));document.head.appendChild(v)}null!=k.resources&&("object"!==typeof k.resources||Array.isArray(k.resources)?EditorUi.debug("Configuration Error: Object expected for resources"):(Editor.customResources=k.resources,Editor.applyCustomResources()));null!=k.enableLocalFonts&&-(Editor.enableLocalFonts=k.enableLocalFonts);null!=k.enableCustomGitLabUrl&&(Editor.enableCustomGitLabUrl=k.enableCustomGitLabUrl);null!=k.defaultFonts&&(Menus.prototype.defaultFonts=k.defaultFonts);null!=k.presetColors&&(ColorDialog.prototype.presetColors=k.presetColors);null!=k.defaultColors&&(ColorDialog.prototype.defaultColors=k.defaultColors);null!=k.colorNames&&(ColorDialog.prototype.colorNames=k.colorNames);null!=k.defaultColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=k.defaultColorSchemes);-null!=k.defaultEdgeLength&&(Graph.prototype.defaultEdgeLength=k.defaultEdgeLength);null!=k.selectParentLayer&&(Graph.selectParentLayer=k.selectParentLayer);null!=k.intersectionSelect&&(Graph.intersectionSelect=k.intersectionSelect);null!=k.swimlaneSelectionEnabled&&(Graph.prototype.swimlaneSelectionEnabled=k.swimlaneSelectionEnabled);null!=k.autosaveDelay&&(DrawioFile.prototype.autosaveDelay=k.autosaveDelay);null!=k.templateFile&&(EditorUi.templateFile=k.templateFile);null!=k.enabledTemplateSections&&-(Array.isArray(k.enabledTemplateSections)?EditorUi.enabledTemplateSections=k.enabledTemplateSections:EditorUi.debug("Configuration Error: Array expected for enabledTemplateSections"));null!=k.customTemplates&&(Array.isArray(k.customTemplates)?EditorUi.customTemplates=k.customTemplates:EditorUi.debug("Configuration Error: Array expected for customTemplates"));null!=k.styles&&(Array.isArray(k.styles)?Editor.styles=k.styles:EditorUi.debug("Configuration Error: Array expected for styles"));null!=k.globalVars&&-(Editor.globalVars=k.globalVars);null!=k.defaultFileType&&(Editor.defaultFileType=k.defaultFileType);null!=k.compressXml&&(Editor.defaultCompressed=k.compressXml,Editor.compressXml=k.compressXml);null!=k.compressStyles&&(v=mxCodecRegistry.getCodec(mxGraphModel),null!=v&&(v.enableStyleCompression=k.compressStyles));null!=k.includeDiagram&&(Editor.defaultIncludeDiagram=k.includeDiagram);null!=k.simpleLabels&&(Editor.simpleLabels=k.simpleLabels);null!=k.optimizeHtmlLabels&&(Editor.optimizeHtmlLabels=+!0,Editor.popupsAllowed=!1);k.useInternalClipboard&&(EditorUi.prototype.useInternalClipboard=k.useInternalClipboard);if(null!=k.customCss){var u=document.createElement("style");u.type="text/css";u.appendChild(document.createTextNode(k.customCss));document.head.appendChild(u)}null!=k.resources&&("object"!==typeof k.resources||Array.isArray(k.resources)?EditorUi.debug("Configuration Error: Object expected for resources"):(Editor.customResources=k.resources,Editor.applyCustomResources()));null!=k.enableLocalFonts&&+(Editor.enableLocalFonts=k.enableLocalFonts);null!=k.enableCustomGitLabUrl&&(Editor.enableCustomGitLabUrl=k.enableCustomGitLabUrl);null!=k.defaultFonts&&(Menus.prototype.defaultFonts=k.defaultFonts,Editor.addAllowedFontUrls(k.defaultFonts));null!=k.presetColors&&(ColorDialog.prototype.presetColors=k.presetColors);null!=k.defaultColors&&(ColorDialog.prototype.defaultColors=k.defaultColors);null!=k.colorNames&&(ColorDialog.prototype.colorNames=k.colorNames);null!=k.defaultColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=+k.defaultColorSchemes);null!=k.defaultEdgeLength&&(Graph.prototype.defaultEdgeLength=k.defaultEdgeLength);null!=k.selectParentLayer&&(Graph.selectParentLayer=k.selectParentLayer);null!=k.intersectionSelect&&(Graph.intersectionSelect=k.intersectionSelect);null!=k.swimlaneSelectionEnabled&&(Graph.prototype.swimlaneSelectionEnabled=k.swimlaneSelectionEnabled);null!=k.autosaveDelay&&(DrawioFile.prototype.autosaveDelay=k.autosaveDelay);null!=k.templateFile&&(EditorUi.templateFile=k.templateFile);null!=+k.enabledTemplateSections&&(Array.isArray(k.enabledTemplateSections)?EditorUi.enabledTemplateSections=k.enabledTemplateSections:EditorUi.debug("Configuration Error: Array expected for enabledTemplateSections"));null!=k.customTemplates&&(Array.isArray(k.customTemplates)?EditorUi.customTemplates=k.customTemplates:EditorUi.debug("Configuration Error: Array expected for customTemplates"));null!=k.styles&&(Array.isArray(k.styles)?Editor.styles=k.styles:EditorUi.debug("Configuration Error: Array expected for styles"));+null!=k.globalVars&&(Editor.globalVars=k.globalVars);null!=k.defaultFileType&&(Editor.defaultFileType=k.defaultFileType);null!=k.compressXml&&(Editor.defaultCompressed=k.compressXml,Editor.compressXml=k.compressXml);null!=k.compressStyles&&(u=mxCodecRegistry.getCodec(mxGraphModel),null!=u&&(u.enableStyleCompression=k.compressStyles));null!=k.includeDiagram&&(Editor.defaultIncludeDiagram=k.includeDiagram);null!=k.simpleLabels&&(Editor.simpleLabels=k.simpleLabels);null!=k.optimizeHtmlLabels&&(Editor.optimizeHtmlLabels=k.optimizeHtmlLabels);null!=k.mathOutputSize&&(Editor.mathOutputSize=k.mathOutputSize);null!=k.mermaid&&("object"!==typeof k.mermaid||Array.isArray(k.mermaid)?EditorUi.debug("Configuration Error: Object expected for mermaid"):EditorUi.defaultMermaidConfig=k.mermaid);null!=k.pasteAtMousePointer&&(Editor.pasteAtMousePointer=k.pasteAtMousePointer);null!=k.fitDiagramOnLoad&&(Editor.fitDiagramOnLoad=k.fitDiagramOnLoad);null!=k.fitDiagramOnPage&&(Editor.fitDiagramOnPage=k.fitDiagramOnPage);null!=k.showLinkIcons&&-(Editor.showLinkIcons=k.showLinkIcons);null!=k.showTooltipIcons&&(Editor.showTooltipIcons=k.showTooltipIcons);null!=k.showNoteIcons&&(Editor.showNoteIcons=k.showNoteIcons);null!=k.tooltipFontSize&&(v=parseInt(k.tooltipFontSize),!isNaN(v)&&0<v?Editor.tooltipFontSize=v:EditorUi.debug("Configuration Error: Int > 0 expected for tooltipFontSize"));null!=k.tooltipMaxWidth&&(v=parseInt(k.tooltipMaxWidth),!isNaN(v)&&0<=v?Editor.tooltipMaxWidth=v:EditorUi.debug("Configuration Error: Int >= 0 expected for tooltipMaxWidth"));+(Editor.showLinkIcons=k.showLinkIcons);null!=k.showTooltipIcons&&(Editor.showTooltipIcons=k.showTooltipIcons);null!=k.showNoteIcons&&(Editor.showNoteIcons=k.showNoteIcons);null!=k.tooltipFontSize&&(u=parseInt(k.tooltipFontSize),!isNaN(u)&&0<u?Editor.tooltipFontSize=u:EditorUi.debug("Configuration Error: Int > 0 expected for tooltipFontSize"));null!=k.tooltipMaxWidth&&(u=parseInt(k.tooltipMaxWidth),!isNaN(u)&&0<=u?Editor.tooltipMaxWidth=u:EditorUi.debug("Configuration Error: Int >= 0 expected for tooltipMaxWidth"));null!=k.expandPatternsForPrint&&(Editor.expandPatternsForPrint=k.expandPatternsForPrint);null!=k.showConnectHandle&&(Editor.showConnectHandle=k.showConnectHandle);null!=k.enableInlineToolbar&&(Editor.enableInlineToolbar=k.enableInlineToolbar);null!=k.enableSizeGuides&&"undefined"!==typeof mxVertexHandler&&(mxVertexHandler.prototype.sizeGuidesEnabled=k.enableSizeGuides);null!=k.enablePositionGuides&&"undefined"!==typeof mxGuide&&(mxGuide.prototype.positionEnabled=k.enablePositionGuides);null!=k.enableDistanceGuides&&"undefined"!==typeof mxGuide&&(mxGuide.prototype.distanceEnabled=k.enableDistanceGuides);null!=k.defaultTransparentGroups&&(Editor.defaultTransparentGroups=k.defaultTransparentGroups);null!=k.oneDriveInlinePicker&&(Editor.oneDriveInlinePicker=k.oneDriveInlinePicker);null!=k.enableNativeClipboard&&(Editor.enableNativeClipboard=k.enableNativeClipboard);null!=k.enableExportUrl&&(Editor.enableExportUrl=k.enableExportUrl);null!=k.defaultAdaptiveColors?Graph.defaultAdaptiveColors=k.defaultAdaptiveColors:0==k.enableCssDarkMode&&(Graph.defaultAdaptiveColors="simple");null!=k.enableLightDarkColors&&(mxUtils.lightDarkColorSupported=k.enableLightDarkColors);null!=k.darkColor&&(Editor.darkColor=k.darkColor);null!=k.darkColorVar&&(Editor.darkColorVar=k.darkColorVar);null!=k.defaultPageBackgroundColor&&(Editor.pageBackgroundColor=k.defaultPageBackgroundColor);null!=k.defaultDarkPageBackgroundColor&&(Editor.darkPageBackgroundColor=k.defaultDarkPageBackgroundColor);null!=k.defaultGridColor&&(mxGraphView.prototype.defaultGridColor=k.defaultGridColor);null!=k.defaultDarkGridColor&&(mxGraphView.prototype.defaultDarkGridColor=k.defaultDarkGridColor);mxGraphView.prototype.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultDarkGridColor:mxGraphView.prototype.defaultGridColor;Graph.prototype.defaultPageBackgroundColor=Editor.getDefaultPageBackgroundColor();Graph.prototype.shapeBackgroundColor="light-dark(#ffffff, var("+Editor.darkColorVar+", "+Editor.darkColor+"))";null!=k.settingsName&&(Editor.configurationKey="."+k.settingsName+-"-configuration",Editor.settingsKey="."+k.settingsName+"-config",mxSettings.key=Editor.settingsKey);null!=k.customFonts&&(Menus.prototype.defaultFonts=k.customFonts.concat(Menus.prototype.defaultFonts));null!=k.customPresetColors&&(ColorDialog.prototype.presetColors=k.customPresetColors.concat(ColorDialog.prototype.presetColors));null!=k.customColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=k.customColorSchemes.concat(StyleFormatPanel.prototype.defaultColorSchemes));if(null!=k.css){v=-document.createElement("style");v.setAttribute("type","text/css");v.appendChild(document.createTextNode(k.css));var H=document.getElementsByTagName("script")[0];H.parentNode.insertBefore(v,H)}null!=k.expandLibraries&&(Sidebar.prototype.expandLibraries=k.expandLibraries);null!=k.appendCustomLibraries&&(Sidebar.prototype.appendCustomLibraries=k.appendCustomLibraries);null!=k.libraries&&(Sidebar.prototype.customEntries=k.libraries);null!=k.enabledLibraries&&(Array.isArray(k.enabledLibraries)?Sidebar.prototype.enabledLibraries=-k.enabledLibraries:EditorUi.debug("Configuration Error: Array expected for enabledLibraries"));null!=k.defaultLibraries&&(Sidebar.prototype.defaultEntries=k.defaultLibraries);null!=k.defaultCustomLibraries&&(Editor.defaultCustomLibraries=k.defaultCustomLibraries);null!=k.defaultLanguages&&(Array.isArray(k.defaultLanguages)?Editor.defaultLanguages=k.defaultLanguages:EditorUi.debug("Configuration Error: Array expected for defaultLanguages"));null!=k.enableCustomLibraries&&(Editor.enableCustomLibraries=-k.enableCustomLibraries);null!=k.inlineExtIcons&&(Editor.inlineExtIcons=k.inlineExtIcons);null!=k.defaultVertexStyle&&(Graph.prototype.defaultVertexStyle=k.defaultVertexStyle);null!=k.defaultEdgeStyle&&(Graph.prototype.defaultEdgeStyle=k.defaultEdgeStyle);null!=k.shapePicker&&(EditorUi.prototype.defaultShapePickerEntries=k.shapePicker.shapes);null!=k.defaultPageVisible&&(Graph.prototype.defaultPageVisible=k.defaultPageVisible);null!=k.defaultGridEnabled&&(Graph.prototype.defaultGridEnabled=k.defaultGridEnabled);-null!=k.defaultConnectionArrowsEnabled&&(Graph.prototype.defaultConnectionArrowsEnabled=k.defaultConnectionArrowsEnabled,Graph.prototype.connectionArrowsEnabled=k.defaultConnectionArrowsEnabled);null!=k.defaultConnectable&&(Graph.prototype.defaultConnectable=k.defaultConnectable);null!=k.copyOnConnect&&(mxConnectionHandler.prototype.createTarget=k.copyOnConnect);null!=k.stopEditingOnEnter&&(mxGraph.prototype.enterStopsCellEditing=k.stopEditingOnEnter);null!=k.defaultFoldingEnabled&&(Graph.prototype.defaultFoldingEnabled=-k.defaultFoldingEnabled);null!=k.foldingIconSize&&Graph.updateFoldingImages(k.foldingIconSize);null!=k.zoomWheel&&(Graph.zoomWheel=k.zoomWheel);null!=k.browserTranslate&&(Graph.browserTranslate=k.browserTranslate);null!=k.zoomFactor&&(v=parseFloat(k.zoomFactor),!isNaN(v)&&1<v?Graph.prototype.zoomFactor=v:EditorUi.debug("Configuration Error: Float > 1 expected for zoomFactor"));null!=k.defaultGridSize&&(v=parseInt(k.defaultGridSize),!isNaN(v)&&0<v?mxGraph.prototype.gridSize=v:EditorUi.debug("Configuration Error: Int > 0 expected for defaultGridSize"));-null!=k.gridSteps&&(v=parseInt(k.gridSteps),!isNaN(v)&&0<v?mxGraphView.prototype.gridSteps=v:EditorUi.debug("Configuration Error: Int > 0 expected for gridSteps"));null!=k.pageFormat&&(v=parseInt(k.pageFormat.width),H=parseInt(k.pageFormat.height),!isNaN(v)&&0<v&&!isNaN(H)&&0<H?(mxGraph.prototype.defaultPageFormat=new mxRectangle(0,0,v,H),mxGraph.prototype.pageFormat=mxGraph.prototype.defaultPageFormat):EditorUi.debug("Configuration Error: {width: int, height: int} expected for pageFormat"));null!=-k.thumbWidth&&(Sidebar.prototype.thumbWidth=k.thumbWidth);null!=k.thumbHeight&&(Sidebar.prototype.thumbHeight=k.thumbHeight);null!=k.emptyLibraryXml&&(EditorUi.prototype.emptyLibraryXml=k.emptyLibraryXml);null!=k.emptyDiagramXml&&(EditorUi.prototype.emptyDiagramXml=k.emptyDiagramXml);null!=k.sidebarWidth&&(EditorUi.prototype.hsplitPosition=k.sidebarWidth);null!=k.updateDefaultStyle&&(EditorUi.prototype.updateDefaultStyle=k.updateDefaultStyle);null!=k.sidebarTitles&&(Sidebar.prototype.sidebarTitles=-k.sidebarTitles);null!=k.sidebarTitleSize&&(v=parseInt(k.sidebarTitleSize),!isNaN(v)&&0<v?Sidebar.prototype.sidebarTitleSize=v:EditorUi.debug("Configuration Error: Int > 0 expected for sidebarTitleSize"));null!=k.fontCss&&("string"===typeof k.fontCss?Editor.configureFontCss(k.fontCss):EditorUi.debug("Configuration Error: String expected for fontCss"));null!=k.autosaveDelay&&(v=parseInt(k.autosaveDelay),!isNaN(v)&&0<v?DrawioFile.prototype.autosaveDelay=v:EditorUi.debug("Configuration Error: Int > 0 expected for autosaveDelay"));+"-configuration",Editor.settingsKey="."+k.settingsName+"-config",mxSettings.key=Editor.settingsKey);null!=k.customFonts&&(Menus.prototype.defaultFonts=k.customFonts.concat(Menus.prototype.defaultFonts),Editor.addAllowedFontUrls(k.customFonts));null!=k.customPresetColors&&(ColorDialog.prototype.presetColors=k.customPresetColors.concat(ColorDialog.prototype.presetColors));null!=k.customColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=k.customColorSchemes.concat(StyleFormatPanel.prototype.defaultColorSchemes));+if(null!=k.css){u=document.createElement("style");u.setAttribute("type","text/css");u.appendChild(document.createTextNode(k.css));var H=document.getElementsByTagName("script")[0];H.parentNode.insertBefore(u,H)}null!=k.expandLibraries&&(Sidebar.prototype.expandLibraries=k.expandLibraries);null!=k.appendCustomLibraries&&(Sidebar.prototype.appendCustomLibraries=k.appendCustomLibraries);null!=k.libraries&&(Sidebar.prototype.customEntries=k.libraries);null!=k.enabledLibraries&&(Array.isArray(k.enabledLibraries)?+Sidebar.prototype.enabledLibraries=k.enabledLibraries:EditorUi.debug("Configuration Error: Array expected for enabledLibraries"));null!=k.defaultLibraries&&(Sidebar.prototype.defaultEntries=k.defaultLibraries);null!=k.defaultCustomLibraries&&(Editor.defaultCustomLibraries=k.defaultCustomLibraries);null!=k.defaultLanguages&&(Array.isArray(k.defaultLanguages)?Editor.defaultLanguages=k.defaultLanguages:EditorUi.debug("Configuration Error: Array expected for defaultLanguages"));null!=k.enableCustomLibraries&&+(Editor.enableCustomLibraries=k.enableCustomLibraries);null!=k.inlineExtIcons&&(Editor.inlineExtIcons=k.inlineExtIcons);null!=k.defaultVertexStyle&&(Graph.prototype.defaultVertexStyle=k.defaultVertexStyle);null!=k.defaultEdgeStyle&&(Graph.prototype.defaultEdgeStyle=k.defaultEdgeStyle);null!=k.shapePicker&&(EditorUi.prototype.defaultShapePickerEntries=k.shapePicker.shapes);null!=k.defaultPageVisible&&(Graph.prototype.defaultPageVisible=k.defaultPageVisible);null!=k.defaultGridEnabled&&(Graph.prototype.defaultGridEnabled=+k.defaultGridEnabled);null!=k.defaultConnectionArrowsEnabled&&(Graph.prototype.defaultConnectionArrowsEnabled=k.defaultConnectionArrowsEnabled,Graph.prototype.connectionArrowsEnabled=k.defaultConnectionArrowsEnabled);null!=k.defaultConnectable&&(Graph.prototype.defaultConnectable=k.defaultConnectable);null!=k.copyOnConnect&&(mxConnectionHandler.prototype.createTarget=k.copyOnConnect);null!=k.stopEditingOnEnter&&(mxGraph.prototype.enterStopsCellEditing=k.stopEditingOnEnter);null!=k.defaultFoldingEnabled&&+(Graph.prototype.defaultFoldingEnabled=k.defaultFoldingEnabled);null!=k.foldingIconSize&&Graph.updateFoldingImages(k.foldingIconSize);null!=k.zoomWheel&&(Graph.zoomWheel=k.zoomWheel);null!=k.browserTranslate&&(Graph.browserTranslate=k.browserTranslate);null!=k.zoomFactor&&(u=parseFloat(k.zoomFactor),!isNaN(u)&&1<u?Graph.prototype.zoomFactor=u:EditorUi.debug("Configuration Error: Float > 1 expected for zoomFactor"));null!=k.defaultGridSize&&(u=parseInt(k.defaultGridSize),!isNaN(u)&&0<u?mxGraph.prototype.gridSize=+u:EditorUi.debug("Configuration Error: Int > 0 expected for defaultGridSize"));null!=k.gridSteps&&(u=parseInt(k.gridSteps),!isNaN(u)&&0<u?mxGraphView.prototype.gridSteps=u:EditorUi.debug("Configuration Error: Int > 0 expected for gridSteps"));null!=k.pageFormat&&(u=parseInt(k.pageFormat.width),H=parseInt(k.pageFormat.height),!isNaN(u)&&0<u&&!isNaN(H)&&0<H?(mxGraph.prototype.defaultPageFormat=new mxRectangle(0,0,u,H),mxGraph.prototype.pageFormat=mxGraph.prototype.defaultPageFormat):EditorUi.debug("Configuration Error: {width: int, height: int} expected for pageFormat"));+null!=k.thumbWidth&&(Sidebar.prototype.thumbWidth=k.thumbWidth);null!=k.thumbHeight&&(Sidebar.prototype.thumbHeight=k.thumbHeight);null!=k.emptyLibraryXml&&(EditorUi.prototype.emptyLibraryXml=k.emptyLibraryXml);null!=k.emptyDiagramXml&&(EditorUi.prototype.emptyDiagramXml=k.emptyDiagramXml);null!=k.sidebarWidth&&(EditorUi.prototype.hsplitPosition=k.sidebarWidth);null!=k.updateDefaultStyle&&(EditorUi.prototype.updateDefaultStyle=k.updateDefaultStyle);null!=k.sidebarTitles&&(Sidebar.prototype.sidebarTitles=+k.sidebarTitles);null!=k.sidebarTitleSize&&(u=parseInt(k.sidebarTitleSize),!isNaN(u)&&0<u?Sidebar.prototype.sidebarTitleSize=u:EditorUi.debug("Configuration Error: Int > 0 expected for sidebarTitleSize"));null!=k.fontCss&&("string"===typeof k.fontCss?Editor.configureFontCss(k.fontCss):EditorUi.debug("Configuration Error: String expected for fontCss"));null!=k.autosaveDelay&&(u=parseInt(k.autosaveDelay),!isNaN(u)&&0<u?DrawioFile.prototype.autosaveDelay=u:EditorUi.debug("Configuration Error: Int > 0 expected for autosaveDelay"));null!=k.maxImageBytes&&(EditorUi.prototype.maxImageBytes=k.maxImageBytes);null!=k.maxImageSize&&(EditorUi.prototype.maxImageSize=k.maxImageSize);null!=k.shareCursorPosition&&(EditorUi.prototype.shareCursorPosition=k.shareCursorPosition);null!=k.showRemoteCursors&&(EditorUi.prototype.showRemoteCursors=k.showRemoteCursors);null!=k.restrictExport&&(DrawioFile.RESTRICT_EXPORT=k.restrictExport);null!=k.removeImageMetadata&&(Editor.removeImageMetadata=k.removeImageMetadata);null!=k.defaultTextStyle&&(Editor.defaultTextStyle=k.defaultTextStyle);null!=k.replaceSvgDataUris&&(Editor.replaceSvgDataUris=k.replaceSvgDataUris);null!=k.foreignObjectImages&&(Editor.foreignObjectImages=k.foreignObjectImages);null!=k.embedSvgFonts&&(Editor.embedSvgFonts=k.embedSvgFonts);null!=k.shadowColor&&(mxConstants.SHADOW_COLOR=k.shadowColor);null!=k.shadowOpacity&&(mxConstants.SHADOW_OPACITY=k.shadowOpacity);null!=k.shadowOffsetX&&(mxConstants.SHADOW_OFFSET_X=k.shadowOffsetX);null!=k.shadowOffsetY&&(mxConstants.SHADOW_OFFSET_Y=k.shadowOffsetY);null!=k.shadowBlur&&(mxConstants.SHADOW_BLUR=k.shadowBlur);null!=k.enableAnimations&&(Editor.enableAnimations=k.enableAnimations);null!=k.insertAnimations&&(Editor.insertAnimations=k.insertAnimations);null!=k.enableWindowDocking&&(Editor.enableWindowDocking=k.enableWindowDocking);null!=k.compact&&(EditorUi.prototype.defaultCompact=k.compact);null!=k.noAutoFocus&&(EditorUi.prototype.noAutoFocus=k.noAutoFocus);if(null!=k.hideMenuItems)if(Array.isArray(k.hideMenuItems))for(Menus.prototype.hiddenMenuItems=-{},v=0;v<k.hideMenuItems.length;v++)Menus.prototype.hiddenMenuItems[k.hideMenuItems[v]]=!0;else EditorUi.debug("Configuration Error: Array expected for hideMenuItems");if(null!=k.hideMenus)if(Array.isArray(k.hideMenus)){var P={};for(v=0;v<k.hideMenus.length;v++)P[k.hideMenus[v]]=!0;Menus.prototype.defaultMenuItems=Menus.prototype.defaultMenuItems.filter(function(T){return!P[T]})}else EditorUi.debug("Configuration Error: Array expected for hideMenus");null!=k.enableAi&&(Editor.enableAi=k.enableAi);+{},u=0;u<k.hideMenuItems.length;u++)Menus.prototype.hiddenMenuItems[k.hideMenuItems[u]]=!0;else EditorUi.debug("Configuration Error: Array expected for hideMenuItems");if(null!=k.hideMenus)if(Array.isArray(k.hideMenus)){var P={};for(u=0;u<k.hideMenus.length;u++)P[k.hideMenus[u]]=!0;Menus.prototype.defaultMenuItems=Menus.prototype.defaultMenuItems.filter(function(T){return!P[T]})}else EditorUi.debug("Configuration Error: Array expected for hideMenus");null!=k.enableAi&&(Editor.enableAi=k.enableAi);null!=k.enableChatGpt&&(Editor.enableAi=k.enableChatGpt);null!=k.gptApiKey&&(Editor.aiGlobals.gptApiKey=k.gptApiKey);null!=k.geminiApiKey&&(Editor.aiGlobals.geminiApiKey=k.geminiApiKey);null!=k.claudeApiKey&&(Editor.aiGlobals.claudeApiKey=k.claudeApiKey);null!=k.gptUrl&&null!=Editor.aiConfigs.gpt&&(Editor.aiConfigs.gpt.endpoint=k.gptUrl);null!=k.aiActions&&(Editor.aiActions=k.aiActions);null!=k.aiGlobals&&(Editor.aiGlobals=k.aiGlobals);null!=k.aiConfigs&&(Editor.aiConfigs=k.aiConfigs);null!=k.aiModels&&-(Editor.aiModels=k.aiModels)}};Editor.applyCustomResources=function(){if(null!=Editor.customResources){var k=null!=mxClient.language?mxClient.language.toLowerCase():null,v=null!=k?k.indexOf("-"):-1,H;for(H in Editor.customResources){var P=Editor.customResources[H];null!=P&&"object"===typeof P&&(P=(null!=k?P[k]:null)||(0<v?P[k.substring(0,v)]:null)||P.main);"string"===typeof P&&(mxResources.resources[H]=P)}}};var b=mxResources.parse;mxResources.parse=function(k){b.apply(this,arguments);Editor.applyCustomResources()};-Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.expandSvgPatterns=function(k){function v(ea,oa){ea=ea.getAttribute("fill");if(null==ea||0!==ea.indexOf("url("))return null;ea=ea.match(/url\([^#]*#([^)"]+)\)?/);if(null==ea)return null;ea=ea[1];try{var la=oa.querySelector("#"+CSS.escape(ea));return null!=la&&"pattern"===la.nodeName?la:null}catch(ca){return null}}function H(ea,oa,la){var ca,ta,xa;try{var qa=ea.getBBox()}catch(Ja){return}if(0!==+(Editor.aiModels=k.aiModels)}};Editor.applyCustomResources=function(){if(null!=Editor.customResources){var k=null!=mxClient.language?mxClient.language.toLowerCase():null,u=null!=k?k.indexOf("-"):-1,H;for(H in Editor.customResources){var P=Editor.customResources[H];null!=P&&"object"===typeof P&&(P=(null!=k?P[k]:null)||(0<u?P[k.substring(0,u)]:null)||P.main);"string"===typeof P&&(mxResources.resources[H]=P)}}};var b=mxResources.parse;mxResources.parse=function(k){b.apply(this,arguments);Editor.applyCustomResources()};+Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.expandSvgPatterns=function(k){function u(ea,oa){ea=ea.getAttribute("fill");if(null==ea||0!==ea.indexOf("url("))return null;ea=ea.match(/url\([^#]*#([^)"]+)\)?/);if(null==ea)return null;ea=ea[1];try{var la=oa.querySelector("#"+CSS.escape(ea));return null!=la&&"pattern"===la.nodeName?la:null}catch(ca){return null}}function H(ea,oa,la){var ca,ta,xa;try{var qa=ea.getBBox()}catch(Ja){return}if(0!==qa.width&&0!==qa.height){var Ba=parseFloat(oa.getAttribute("width")),na=parseFloat(oa.getAttribute("height"));if(!(isNaN(Ba)||isNaN(na)||0>=Ba||0>=na)){var ra=oa.getAttribute("patternTransform");var va=ta=ca=0;var Ha=xa=1;if(null!=ra){var La=ra.match(/translate\(\s*([^,\s]+)[,\s]+([^)]+)\)/);null!=La&&(ca=parseFloat(La[1]),ta=parseFloat(La[2]));La=ra.match(/rotate\(\s*([^)]+)\)/);null!=La&&(va=parseFloat(La[1])*Math.PI/180);ra=ra.match(/scale\(\s*([^,\s)]+)(?:[,\s]+([^)]+))?\)/);null!=ra&&(xa=parseFloat(ra[1]),Ha=null!=ra[2]?parseFloat(ra[2]):xa)}var Ga=[{x:qa.x,y:qa.y},{x:qa.x+qa.width,y:qa.y},{x:qa.x+qa.width,y:qa.y+qa.height},{x:qa.x,y:qa.y+qa.height}],Da=Infinity;qa=Infinity;La=ra=-Infinity;for(var Qa=0;Qa<Ga.length;Qa++){var Ka=Ga[Qa].x-ca;var Na=Ga[Qa].y-ta,Oa=Math.cos(-va),Fa=Math.sin(-va);var Aa=(Ka*Oa-Na*Fa)/xa;Ka=(Ka*Fa+Na*Oa)/Ha;Da=Math.min(Da,Aa);qa=Math.min(qa,Ka);ra=Math.max(ra,Aa);La=Math.max(La,Ka)}Da=Math.floor(Da/Ba)-1;qa=Math.floor(qa/na)-1;ra=Math.ceil(ra/Ba)+1;Aa=Math.ceil(La/na)+1;if(!(1E4<(ra-Da)*(Aa-qa))){Qa=T+ ++P;La=la.ownerDocument.createElementNS("http://www.w3.org/2000/svg","clipPath");La.setAttribute("id",Qa);Ga=ea.cloneNode(!0);Ga.removeAttribute("fill");Ga.removeAttribute("fill-opacity");Ga.removeAttribute("stroke");Ga.removeAttribute("stroke-width");Ga.removeAttribute("stroke-opacity");Ga.removeAttribute("style");Ga.removeAttribute("pointer-events");Ga.setAttribute("fill","black");La.appendChild(Ga);Ga=la.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");Ga.setAttribute("clip-path","url(#"+Qa+")");Qa=ea.getAttribute("fill-opacity");null!=Qa&&Ga.setAttribute("opacity",Qa);Qa=la.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");Qa.setAttribute("transform","translate("+ca+","+ta+")"+(0!==va?" rotate("+180*va/Math.PI+")":"")+" scale("+xa+(Ha!==xa?","+Ha:"")+")");ta=T+ ++P;ca=la.ownerDocument.createElementNS("http://www.w3.org/2000/svg","clipPath");ca.setAttribute("id",ta);va=la.ownerDocument.createElementNS("http://www.w3.org/2000/svg","rect");va.setAttribute("x","0");va.setAttribute("y","0");va.setAttribute("width",Ba);va.setAttribute("height",na);ca.appendChild(va);oa=oa.childNodes;for(va=Da;va<ra;va++)for(xa=qa;xa<Aa;xa++){Ha=la.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");Ha.setAttribute("transform","translate("+va*Ba+","+xa*na+")");Ha.setAttribute("clip-path","url(#"+ta+")");for(Da=0;Da<oa.length;Da++)1===oa[Da].nodeType&&Ha.appendChild(oa[Da].cloneNode(!0));Qa.appendChild(Ha)}Ga.appendChild(Qa);Ba=la.querySelector("defs");-null==Ba&&(Ba=la.ownerDocument.createElementNS("http://www.w3.org/2000/svg","defs"),la.insertBefore(Ba,la.firstChild));Ba.appendChild(La);Ba.appendChild(ca);ea.parentNode.insertBefore(Ga,ea.nextSibling);ea.setAttribute("fill","none");ea.style.fill=""}}}}for(var P=0,T="expand-pattern-clip-"+Editor.guid(8)+"-",W=k.querySelectorAll('[fill^="url("]'),ha=0;ha<W.length;ha++){var X=v(W[ha],k);null!=X&&H(W[ha],X,k)}W=k.querySelectorAll("[style]");for(ha=0;ha<W.length;ha++)X=W[ha].getAttribute("style"),null!=-X&&-1!==X.indexOf("url(")&&(X=v(W[ha],k),null!=X&&H(W[ha],X,k))};Editor.configureFontCss=function(k){if(null!=k){Editor.prototype.fontCss=k;var v=document.getElementsByTagName("script")[0];if(null!=v&&null!=v.parentNode){var H=document.createElement("style");H.setAttribute("type","text/css");H.appendChild(document.createTextNode(k));v.parentNode.insertBefore(H,v);k=k.split("url(");for(H=1;H<k.length;H++){var P=k[H].indexOf(")");P=Editor.trimCssUrl(k[H].substring(0,P));var T=document.createElement("link");-T.setAttribute("rel","preload");T.setAttribute("href",P);T.setAttribute("as","font");T.setAttribute("crossorigin","");v.parentNode.insertBefore(T,v)}}}};Editor.trimCssUrl=function(k){return k.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GOOGLE_FONTS_CSS2="https://fonts.googleapis.com/css2?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=-20;Editor.guid=function(k){k=null!=k?k:Editor.GUID_LENGTH;for(var v=[],H=0;H<k;H++)v.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));return v.join("")};Editor.updateStatusInterval=1E4;Editor.prototype.appName="draw.io";Editor.prototype.diagramFileTypes=[{description:"diagramXmlDesc",extension:"drawio",mimeType:"text/xml"},{description:"diagramPngDesc",extension:"png",mimeType:"image/png"},{description:"diagramSvgDesc",extension:"svg",mimeType:"image/svg"},-{description:"diagramHtmlDesc",extension:"html",mimeType:"text/html"}];Editor.prototype.libraryFileTypes=[{description:"Library (.drawiolib, .xml)",extensions:["drawiolib","xml"]}];Editor.prototype.fileExtensions=[{ext:"html",title:"filetypeHtml"},{ext:"png",title:"filetypePng"},{ext:"svg",title:"filetypeSvg"}];Editor.prototype.timeout=25E3;Editor.prototype.generateTimeout=9E4;Editor.prototype.editButtonLink=null!=urlParams.edit?decodeURIComponent(urlParams.edit):null;Editor.prototype.crossOriginImages=-!0;var d=Editor.prototype.setGraphXml;Editor.prototype.setGraphXml=function(k){k=null!=k&&"mxlibrary"!=k.nodeName?this.extractGraphModel(k):null;if(null!=k){var v=Editor.extractParserError(k,mxResources.get("invalidOrMissingFile"));if(v)throw EditorUi.debug("Editor.setGraphXml ParserError",[this],"node",[k],"cause",[v]),Error(mxResources.get("notADiagramFile")+" ("+v+")");if("mxGraphModel"==k.nodeName){v=k.getAttribute("style")||"default-style2";if("1"==urlParams.embed||null!=v&&""!=v)v!=this.graph.currentStyle&&-(H=null!=this.graph.themes?this.graph.themes[v]:mxUtils.load(STYLE_PATH+"/"+v+".xml").getDocumentElement(),null!=H&&(P=new mxCodec(H.ownerDocument),P.decode(H,this.graph.getStylesheet())));else{var H=null!=this.graph.themes?this.graph.themes["default-old"]:mxUtils.load(STYLE_PATH+"/default-old.xml").getDocumentElement();if(null!=H){var P=new mxCodec(H.ownerDocument);P.decode(H,this.graph.getStylesheet())}}this.graph.currentStyle=v;this.graph.mathEnabled="1"==urlParams.math||"1"==k.getAttribute("math");-this.graph.setAdaptiveColors(k.getAttribute("adaptiveColors"));v=k.getAttribute("backgroundImage");null!=v?this.graph.setBackgroundImage(this.graph.parseBackgroundImage(v)):this.graph.setBackgroundImage(null);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();this.graph.setShadowVisible("1"==k.getAttribute("shadow"),!1);if(v=k.getAttribute("extFonts"))try{for(v=v.split("|").map(function(T){T=T.split("^");return{name:T[0],-url:T[1]}}),H=0;H<v.length;H++)this.graph.addExtFont(v[H].name,v[H].url)}catch(T){console.log("ExtFonts format error: "+T.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}d.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||"Invalid data",toString:function(){return this.message}};};var m=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(k,v){k=null!=k?k:!0;var H=m.apply(this,arguments);null!=this.graph.currentStyle&&-"default-style2"!=this.graph.currentStyle&&H.setAttribute("style",this.graph.currentStyle);var P=this.graph.getBackgroundImageObject(this.graph.backgroundImage,v);null!=P&&H.setAttribute("backgroundImage",JSON.stringify(P));H.setAttribute("math",this.graph.mathEnabled?"1":"0");H.setAttribute("shadow",this.graph.shadowVisible?"1":"0");null!=this.graph.adaptiveColors?H.setAttribute("adaptiveColors",this.graph.adaptiveColors):H.removeAttribute("adaptiveColors");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&-(P=this.graph.extFonts.map(function(T){return T.name+"^"+T.url}),H.setAttribute("extFonts",P.join("|")));return H};Editor.prototype.isDataSvg=function(k){try{var v=mxUtils.parseXml(k).documentElement.getAttribute("content");if(null!=v&&(null!=v&&"<"!=v.charAt(0)&&"%"!=v.charAt(0)&&(v=unescape(window.atob?atob(v):Base64.decode(cont,v))),null!=v&&"%"==v.charAt(0)&&(v=decodeURIComponent(v)),null!=v&&0<v.length)){var H=mxUtils.parseXml(v).documentElement;return"mxfile"==H.nodeName||"mxGraphModel"==H.nodeName}}catch(P){}return!1};-Editor.prototype.extractGraphModel=function(k,v,H){return Editor.extractGraphModel.apply(this,arguments)};var p=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.setAdaptiveColors(null);this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();p.apply(this,arguments)};var t=Editor.prototype.updateGraphComponents;-Editor.prototype.updateGraphComponents=function(){t.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.safeMathJaxFilterUrl=function(k,v){var H=(v.replace(/[\t\n\r]/g,"").replace(/^[\u0000-\u0020]+/,"").match(/^([a-z][a-z0-9+.\-]*):/i)||[null,""])[1].toLowerCase(),P=k.allow.URLs;return"all"===P||"safe"===P&&(k.options.safeProtocols[H]||!H)?v:null};Editor.safeMathJaxFilterUrl.drawioPatched=-!0;Editor.patchMathJaxUrlFilter=function(k){k=null!=k?k:"undefined"!==typeof MathJax?MathJax:null;if(null!=k){var v=null!=k._&&null!=k._.ui&&null!=k._.ui.safe&&null!=k._.ui.safe.SafeMethods?k._.ui.safe.SafeMethods.SafeMethods:null;null==v||null==v.filterURL||v.filterURL.drawioPatched||(v.filterURL=Editor.safeMathJaxFilterUrl);k=null!=k.startup?k.startup.document:null;null==k||null==k.safe||null==k.safe.filterMethods||null==k.safe.filterMethods.filterURL||k.safe.filterMethods.filterURL.drawioPatched||-(k.safe.filterMethods.filterURL=Editor.safeMathJaxFilterUrl)}};Editor.safeMathJaxDataMacro=function(k,v,H,P){var T=k.setAttribute;k.setAttribute=function(W,ha,X){if("string"!==typeof ha||"data-"!==ha.substring(0,5)||ha.match(Editor.safeMathJaxDataPattern))return T.apply(this,arguments)};try{return v.apply(this,[H,P])}finally{k.setAttribute=T}};Editor.safeMathJaxDataPattern=/^data-mjx-/;Editor.patchMathJaxDataMacro=function(k){k=null!=k?k:"undefined"!==typeof MathJax?MathJax:null;k=null!=k&&null!=-k._&&null!=k._.input?k._.input.tex:null;if(null!=k&&null!=k.MapHandler&&null!=k.NodeUtil){var v=k.MapHandler.MapHandler.getMap("html_macros");v=null!=v&&null!=v.lookup?v.lookup("data"):null;if(null!=v&&null!=v._func&&!v._func.drawioPatched){var H=k.NodeUtil["default"],P=v._func;k=function(T,W){return Editor.safeMathJaxDataMacro(H,P,T,W)};k.drawioPatched=!0;v._func=k}}};Editor.patchMathJaxSafeFilters=function(k){Editor.patchMathJaxUrlFilter(k);Editor.patchMathJaxDataMacro(k)};Editor.initMath=function(k,-v){if("undefined"===typeof window.MathJax){var H=function(){P=null;Editor.mathJaxRendering=!1;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};k=null!=k?k:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var P=null;Editor.mathJaxRendering=!1;Editor.doMathJaxRender=function(ha){Editor.patchMathJaxSafeFilters();null!=MathJax.startup&&null!=MathJax.startup.output&&null!=MathJax.startup.output.options&&null!=MathJax.startup.output.options.linebreaks&&-(MathJax.startup.output.options.linebreaks.inline=!1);try{null==P?(MathJax.typesetClear([ha]),MathJax.typeset([ha]),H()):P!=ha&&Editor.mathJaxQueue.push(ha)}catch(X){MathJax.typesetClear([ha]),null!=X.retry?(P=ha,Editor.mathJaxRendering=!0,X.retry.then(function(){MathJax.typesetPromise([ha]).then(H)["catch"](function(ea){console.log("Error in MathJax.typesetPromise: "+ea.toString());H()})})["catch"](function(ea){console.log("Error in MathJax.retry: "+ea.toString());H()})):null!=window.console&&console.log("Error in MathJax.typeset: "+-X.toString())}};window.MathJax=null!=v?v:{options:{skipHtmlTags:{"[+]":["text"]},ignoreHtmlClass:"geDisableMathJax"},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe","[tex]/html"],paths:{fonts:DRAW_MATH_URL+"/fonts"}},output:{font:"mathjax-tex"},startup:{pageReady:function(){for(var ha=0;ha<Editor.mathJaxQueue.length;ha++)Editor.doMathJaxRender(Editor.mathJaxQueue[ha])}}};Editor.MathJaxRender=function(ha){"undefined"!==typeof MathJax&&-"function"===typeof MathJax.typeset?Editor.doMathJaxRender(ha):Editor.mathJaxQueue.push(ha)};Editor.onMathJaxDone=function(){};var T=Editor.prototype.init;Editor.prototype.init=function(){T.apply(this,arguments);var ha=mxUtils.bind(this,function(oa,la){null!=this.graph.container&&this.graph.mathEnabled&&(Editor.mathOutputSize&&(this.graph.container.style.visibility="hidden"),Editor.MathJaxRender(this.graph.container))});this.graph.model.addListener(mxEvent.CHANGE,ha);this.graph.addListener(mxEvent.REFRESH,-ha);var X=this.graph,ea=Editor.onMathJaxDone;Editor.onMathJaxDone=function(){null!=ea&&ea.apply(this,arguments);Editor.mathOutputSize&&null!=X&&X.mathEnabled&&(X.refreshMathBounds(),null!=X.container&&(X.container.style.visibility=""))}};v=document.getElementsByTagName("script");if(null!=v&&0<v.length){var W=document.createElement("script");W.setAttribute("type","text/javascript");W.setAttribute("src",k);v[0].parentNode.appendChild(W)}}};Editor.containsMath=function(k){return null!=k&&(0<=k.indexOf("$")||-0<=k.indexOf("\\(")||0<=k.indexOf("\\[")||0<=k.indexOf("\\begin{"))};(function(){var k=Graph.prototype.getPreferredSizeForCell,v=null;Graph.prototype.getPreferredSizeForCell=function(H,P,T){if(!Editor.mathOutputSize||!this.mathEnabled||"undefined"===typeof MathJax||"function"!==typeof MathJax.typeset||this.model.isEdge(H))return k.apply(this,arguments);var W=this.view.createState(H);W=null!=W?this.cellRenderer.getLabelValue(W):null;if(null==W||0===W.length||!Editor.containsMath(W))return k.apply(this,-arguments);var ha=mxUtils.getSizeForString;mxUtils.getSizeForString=function(X,ea,oa,la){null==v&&(v=document.createElement("div"),v.style.cssText="position:absolute;visibility:hidden;left:-10000px;top:-10000px;display:inline-block;",document.body.appendChild(v));v.style.fontSize=ea+"px";v.style.fontFamily=oa;null!=la&&0<la?(v.style.width=la+"px",v.style.whiteSpace="normal"):(v.style.width="",v.style.whiteSpace="nowrap");MathJax.typesetClear([v]);v.innerHTML=Graph.sanitizeHtml(X);try{MathJax.typeset([v]);-var ca=v.getBoundingClientRect();return new mxRectangle(0,0,ca.width,ca.height)}catch(ta){return ha.apply(this,arguments)}};try{return k.apply(this,arguments)}finally{mxUtils.getSizeForString=ha}}})();Graph.prototype.refreshMathBounds=function(){if(Editor.mathOutputSize&&this.mathEnabled){var k=this.view,v=!1;k.states.visit(mxUtils.bind(this,function(P,T){null!=T&&null!=T.text&&(P=this.cellRenderer.getLabelValue(T),"string"===typeof P&&Editor.containsMath(P)&&(T.text.updateBoundingBox(),v=!0))}));-if(v){var H=null!=k.currentRoot?k.currentRoot:this.model.getRoot();H=k.getState(H);null!=H&&(H=k.getBoundingBox(H,!0,!1),k.setGraphBounds(null!=H?H:k.getEmptyBounds()),this.sizeDidChange());this.fireEvent(new mxEventObject("mathRefreshed"))}}};(function(){var k=EditorUi.prototype.initialFitDiagram;EditorUi.prototype.initialFitDiagram=function(v){k.apply(this,arguments);var H=this.editor.graph;if(Editor.mathOutputSize&&null!=H&&H.mathEnabled){var P=arguments,T=this,W=!1,ha=function(){W||(W=!0,H.removeListener(ha),-H.zoomTo(1),T.resetScrollbars(),k.apply(T,P))};H.addListener("mathRefreshed",ha);Promise.resolve().then(function(){W||"undefined"===typeof MathJax||"function"!==typeof MathJax.typeset||null!=Editor.mathJaxQueue&&0<Editor.mathJaxQueue.length||Editor.mathJaxRendering||H.removeListener(ha)})}}})();Editor.prototype.csvToArray=function(k){if(0<k.length){var v="",H=[""],P=0,T=!0,W;k=$jscomp.makeIterator(k);for(W=k.next();!W.done;W=k.next())W=W.value,'"'===W?(T&&W===v&&(H[P]+=W),T=!T):","===W&&T?W=H[++P]=-"":H[P]+=W,v=W;return H}return[]};Editor.prototype.getProxiedUrl=function(k){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&!this.isCorsEnabledForUrl(k)){var v=EditorUi.isVisioFilename(k);v=/\.png$/i.test(k)||/\.pdf$/i.test(k)||v;var H="t="+(new Date).getTime();k=PROXY_URL+"?url="+encodeURIComponent(k)+"&"+H+(v?"&base64=1":"")}return k};Editor.prototype.isCorsEnabledForUrl=function(k){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||k.substring(0,-window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));return null!=this.corsRegExp&&this.corsRegExp.test(k)||"https://raw.githubusercontent.com/"===k.substring(0,34)||"https://icons.diagrams.net/"===k.substring(0,27)||"https://fonts.googleapis.com/"===k.substring(0,29)||"https://fonts.gstatic.com/"===k.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var k=new mxUrlConverter;-k.updateBaseUrl();var v=k.convert,H=this;k.convert=function(P){null!=P&&navigator.onLine&&("http://"!=P.substring(0,7)&&"https://"!=P.substring(0,8)||P.substring(0,k.baseUrl.length)==k.baseUrl||H.crossOriginImages&&H.isCorsEnabledForUrl(P)?"chrome-extension://"!=P.substring(0,19)&&(P=v.apply(this,arguments)):P=PROXY_URL+"?url="+encodeURIComponent(P));return P};return k};Editor.createSvgDataUri=function(k){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(k)))};Editor.prototype.convertImageToDataUri=-function(k,v,H,P,T){try{var W=!0,ha=window.setTimeout(mxUtils.bind(this,function(){W=!1;v(k)}),this.timeout),X=mxUtils.bind(this,function(){null!=P?this.convertImageToDataUri(k,v,H,P,!0):v(k)});if(/(\.svg)$/i.test(k)&&!T)mxUtils.get(k,mxUtils.bind(this,function(oa){window.clearTimeout(ha);W&&(200>oa.getStatus()||299<oa.getStatus()?X():v(Editor.createSvgDataUri(oa.getText())))}),mxUtils.bind(this,function(){window.clearTimeout(ha);W&&X()}));else{var ea=new Image;this.crossOriginImages&&(ea.crossOrigin=-"anonymous");ea.onload=function(){window.clearTimeout(ha);if(W)try{P=null!=P&&T?P:1;var oa=document.createElement("canvas");oa.height=ea.height*P;oa.width=ea.width*P;var la=oa.getContext("2d");la.scale(P,P);la.drawImage(ea,0,0);v(oa.toDataURL())}catch(ca){v(k)}};ea.onerror=function(){window.clearTimeout(ha);W&&(null!=H?H():v(k))};ea.src=k}}catch(oa){null!=H?H():v(k)}};Editor.prototype.convertImages=function(k,v,H,P){function T(){0<W.length?W.shift()():v(k)}null==P&&(P=this.createImageUrlConverter());-var W=[],ha=H||{};H=mxUtils.bind(this,function(ca,ta){ca=k.getElementsByTagName(ca);for(var xa=0;xa<ca.length;xa++)mxUtils.bind(this,function(qa){W.push(mxUtils.bind(this,function(){try{if(null!=qa){var Ba=P.convert(qa.getAttribute(ta));if(null!=Ba&&"data:"!=Ba.substring(0,5)){var na=ha[Ba];null==na?this.convertImageToDataUri(Ba,function(ra){null!=ra&&(ha[Ba]=ra,qa.setAttribute(ta,ra));T()},null,Editor.svgRasterScale):(qa.setAttribute(ta,na),T())}else null!=Ba&&qa.setAttribute(ta,Ba),T()}}catch(ra){T()}}))})(ca[xa])});-var X={},ea=function(){var ca=k.getElementsByTagName("defs")[0];null==ca&&(ca=k.ownerDocument,ca=null!=ca.createElementNS?ca.createElementNS(mxConstants.NS_SVG,"defs"):ca.createElement("defs"),k.insertBefore(ca,k.firstChild));return ca},oa=mxUtils.bind(this,function(){for(var ca=k.getElementsByTagName("use"),ta=0;ta<ca.length;ta++)mxUtils.bind(this,function(xa){W.push(mxUtils.bind(this,function(){try{var qa=xa.getAttribute("href");null==qa&&(qa=xa.getAttribute("xlink:href"));if(null!=qa&&"#"!=qa.charAt(0)&&-"data:"!=qa.substring(0,5)){var Ba=P.convert(qa),na=function(va){va=Graph.createSvgImageSymbol(ea(),X,va,!0);null!=va&&(xa.setAttribute("href","#"+va),xa.setAttribute("xlink:href","#"+va));T()},ra=ha[Ba];null==ra?this.convertImageToDataUri(Ba,function(va){null!=va&&va!=Ba&&(ha[Ba]=va);na(va)}):na(ra)}else T()}catch(va){T()}}))})(ca[ta])}),la=mxUtils.bind(this,function(){W.push(mxUtils.bind(this,function(){try{for(var ca=k.getElementsByTagName("image"),ta=[],xa=0;xa<ca.length;xa++)ta.push(ca[xa]);-var qa={},Ba={},na=[],ra=function(){for(var Oa=k.getElementsByTagName("use"),Fa=0;Fa<Oa.length;Fa++){var Aa=Oa[Fa].getAttribute("href");null==Aa&&(Aa=Oa[Fa].getAttribute("xlink:href"));null!=Aa&&null!=qa[Aa]&&(Oa[Fa].setAttribute("href","#"+qa[Aa]),Oa[Fa].setAttribute("xlink:href","#"+qa[Aa]))}},va=function(Oa,Fa){for(var Aa=null!=k.ownerDocument.createElementNS?k.ownerDocument.createElementNS(mxConstants.NS_SVG,"use"):k.ownerDocument.createElement("use"),Ja=Oa.attributes,Ia=0;Ia<Ja.length;Ia++){var Sa=-Ja[Ia].name;"href"!=Sa&&"xlink:href"!=Sa&&"preserveAspectRatio"!=Sa&&Aa.setAttribute(Sa,Ja[Ia].value)}Aa.setAttribute("href","#"+Fa);Aa.setAttribute("xlink:href","#"+Fa);Oa.parentNode.replaceChild(Aa,Oa)};for(xa=0;xa<ta.length;xa++){var Ha=ta[xa];ca=Ha;var La=!0;if("symbol"==Ha.parentNode.nodeName)if(null==Ha.getAttribute("id")&&"mx-image-"==String(Ha.parentNode.getAttribute("id")||"").substring(0,9))ca=Ha.parentNode,La=!1;else continue;else"mx-image-"==String(Ha.getAttribute("id")||"").substring(0,-9)&&(La=!1);var Ga=Ha.getAttribute("xlink:href");if(null!=Ga&&"data:"==Ga.substring(0,5)){var Da=ca.getAttribute("preserveAspectRatio")||"";if("data:image/svg+xml"==Ga.substring(0,18)){var Qa="mx-symbol-"+mxUtils.hashCode(Ga+"|"+("none"!=Da)),Ka=k.querySelector('[id="'+Qa+'"]');if(null!=Ka&&"symbol"==Ka.nodeName){La?va(Ha,Qa):(qa["#"+ca.getAttribute("id")]=Qa,ca.parentNode.removeChild(ca));continue}}null==Ba[Ga]&&(Ba[Ga]={},na.push(Ga));null==Ba[Ga][Da]&&(Ba[Ga][Da]=[]);Ba[Ga][Da].push({node:ca,inline:La})}}ra();-var Na=function(){for(var Oa=null,Fa=null;0<na.length&&null==Oa;){Oa=na.pop();Fa=Ba[Oa];var Aa=0,Ja=0,Ia;for(Ia in Fa)Aa++,Ja=Math.max(Ja,Fa[Ia].length);2>Aa&&2>Ja&&(Oa=null)}if(null==Oa)T();else{var Sa=new Image;Sa.onload=function(){try{var ab=Sa.naturalWidth,Va=Sa.naturalHeight;if(0<ab&&0<Va){var db=k.ownerDocument,Ea=0,$a;for($a in Fa)Ea++;var cb=function(Fb){return null!=db.createElementNS?db.createElementNS(mxConstants.NS_SVG,Fb):db.createElement(Fb)},Za=function(){var Fb=cb("image");Fb.setAttribute("width",-ab);Fb.setAttribute("height",Va);null==Fb.setAttributeNS?Fb.setAttribute("xlink:href",Oa):Fb.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",Oa);return Fb},eb=null;if(1<Ea){for(eb="mx-data-"+mxUtils.hashCode(Oa);null!=k.querySelector('[id="'+eb+'"]');)eb+="-1";var lb=Za();lb.setAttribute("id",eb);ea().appendChild(lb)}for($a in Fa){var wb=Fa[$a];Ea=null;for(lb=0;lb<wb.length&&null==Ea;lb++)wb[lb].inline||(Ea=wb[lb].node.getAttribute("id"));if(null==Ea)for(Ea="mx-image-"+mxUtils.hashCode(Oa+"|"+$a);null!=-k.querySelector('[id="'+Ea+'"]');)Ea+="-1";var rb=cb("symbol");rb.setAttribute("id",Ea);rb.setAttribute("viewBox","0 0 "+ab+" "+Va);""!=$a&&rb.setAttribute("preserveAspectRatio",$a);if(null!=eb){var xb=cb("use");xb.setAttribute("href","#"+eb);xb.setAttribute("xlink:href","#"+eb);rb.appendChild(xb)}else rb.appendChild(Za());ea().appendChild(rb);for(lb=0;lb<wb.length;lb++){var Jb=wb[lb].node;wb[lb].inline?va(Jb,Ea):(Jb.getAttribute("id")!=Ea&&(qa["#"+Jb.getAttribute("id")]=Ea),Jb.parentNode.removeChild(Jb))}}ra()}}catch(Fb){}Na()};-Sa.onerror=function(){Na()};Sa.src=Oa}};Na()}catch(Oa){T()}}))});H("image","xlink:href");H("img","src");oa();la();T()};Editor.base64Encode=function(k){for(var v="",H=0,P=k.length,T,W,ha;H<P;){T=k.charCodeAt(H++)&255;if(H==P){v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T>>2);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&3)<<4);v+="==";break}W=k.charCodeAt(H++);if(H==P){v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T>>-2);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&3)<<4|(W&240)>>4);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((W&15)<<2);v+="=";break}ha=k.charCodeAt(H++);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T>>2);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&3)<<4|(W&240)>>4);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((W&15)<<2|(ha&192)>>-6);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(ha&63)}return v};Editor.prototype.loadUrl=function(k,v,H,P,T,W,ha,X){try{var ea=!ha&&(P||/(\.png)($|\?)/i.test(k)||/(\.jpe?g)($|\?)/i.test(k)||/(\.gif)($|\?)/i.test(k)||/(\.pdf)($|\?)/i.test(k));T=null!=T?T:!0;var oa=mxUtils.bind(this,function(){mxUtils.get(k,mxUtils.bind(this,function(la){200<=la.getStatus()&&299>=la.getStatus()?null!=v&&(la=la.getText(),ea&&(W=null!=W?W:"data:image/png;base64,",la=W+Editor.base64Encode(la)),-v(la)):null!=H&&(0==la.getStatus()?H({message:mxResources.get("accessDenied")},la):404==la.getStatus()?H({message:mxResources.get("fileNotFound"),code:la.getStatus()},la):H({message:this.getErrorMessage(la)},la))}),function(la){null!=H&&H({message:mxResources.get("error")+" "+la.getStatus()})},ea,this.timeout,function(){T&&null!=H&&H({code:App.ERROR_TIMEOUT,retry:oa})},X)});oa()}catch(la){null!=H&&H(la)}};Editor.prototype.getErrorMessage=function(k){var v=mxResources.get("error")+" "+k.getStatus();-try{var H=k.getText(),P=JSON.parse(H);null!=P&&null!=P.error&&null!=P.error.message&&(v=P.error.message+" ("+v+")")}catch(T){}return v};Editor.prototype.absoluteCssFonts=function(k){var v=null;if(null!=k){var H=k.split("url(");if(0<H.length){v=[H[0]];k=window.location.pathname;var P=null!=k?k.lastIndexOf("/"):-1;0<=P&&(k=k.substring(0,P+1));P=document.getElementsByTagName("base");var T=null;null!=P&&0<P.length&&(T=P[0].getAttribute("href"));for(var W=1;W<H.length;W++)if(P=H[W].indexOf(")"),0<P){var ha=-Editor.trimCssUrl(H[W].substring(0,P));this.graph.isRelativeUrl(ha)&&(ha=null!=T?T+ha:window.location.protocol+"//"+window.location.hostname+("/"==ha.charAt(0)?"":k)+ha);v.push('url("'+ha+'"'+H[W].substring(P))}else v.push(H[W])}else v=[k]}return null!=v?v.join(""):null};Editor.prototype.mapFontUrl=function(k,v,H){/^https?:\/\//.test(v)&&!this.isCorsEnabledForUrl(v)&&(v=PROXY_URL+"?url="+encodeURIComponent(v));H(k,v)};Editor.prototype.embedCssFonts=function(k,v){var H=k.split("url("),P=0;null==this.cachedFonts&&-(this.cachedFonts=Object.create(null));var T=mxUtils.bind(this,function(){if(0==P){for(var ea=[H[0]],oa=1;oa<H.length;oa++){var la=H[oa].indexOf(")");ea.push('url("');ea.push(this.cachedFonts[Editor.trimCssUrl(H[oa].substring(0,la))]);ea.push('"'+H[oa].substring(la))}v(ea.join(""))}});if(0<H.length){for(k=1;k<H.length;k++){var W=H[k].indexOf(")"),ha=null,X=H[k].indexOf("format(",W);0<X&&(ha=Editor.trimCssUrl(H[k].substring(X+7,H[k].indexOf(")",X))));mxUtils.bind(this,function(ea){var oa=this.cachedFonts[ea];-if(null==oa){var la=[];this.cachedFonts[ea]=la;P++;oa="application/x-font-ttf";if("svg"==ha||/(\.svg)($|\?)/i.test(ea))oa="image/svg+xml";else if("otf"==ha||"embedded-opentype"==ha||/(\.otf)($|\?)/i.test(ea))oa="application/x-font-opentype";else if("woff"==ha||/(\.woff)($|\?)/i.test(ea))oa="application/font-woff";else if("woff2"==ha||/(\.woff2)($|\?)/i.test(ea))oa="application/font-woff2";else if("eot"==ha||/(\.eot)($|\?)/i.test(ea))oa="application/vnd.ms-fontobject";else if("sfnt"==ha||/(\.sfnt)($|\?)/i.test(ea))oa=-"application/font-sfnt";var ca=mxUtils.bind(this,function(ta){this.cachedFonts[ea]=ta;P--;T();for(ta=0;ta<la.length;ta++)la[ta]()});this.mapFontUrl(oa,ea,mxUtils.bind(this,function(ta,xa){this.loadUrl(xa,function(qa){ca(qa)},function(qa){ca(ea)},!0,null,"data:"+ta+";charset=utf-8;base64,")}))}else"string"!=typeof oa&&(P++,oa.push(function(){P--;T()}))})(Editor.trimCssUrl(H[k].substring(0,W)),ha)}T()}else v(k)};Editor.prototype.loadFonts=function(k){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,-mxUtils.bind(this,function(v){this.resolvedFontCss=v;null!=k&&k()})):null!=k&&k()};Editor.prototype.createGoogleFontCache=function(){var k={},v;for(v in Graph.fontMapping)Graph.isCssFontUrl(v)&&(k[v]=Graph.fontMapping[v]);return k};Editor.prototype.embedExtFonts=function(k,v){v=this.graph.getCustomFonts(v);if(0<v.length){var H=[],P=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var T=mxUtils.bind(this,function(){0==P&&this.embedCssFonts(H.join(""),k)}),W=-0;W<v.length;W++)mxUtils.bind(this,function(ha,X){Graph.isCssFontUrl(X)?null==this.cachedGoogleFonts[X]?(P++,this.loadUrl(Graph.rewriteGoogleFontUrl(X),mxUtils.bind(this,function(ea){this.cachedGoogleFonts[X]=ea;H.push(ea+"\n");P--;T()}),mxUtils.bind(this,function(ea){P--;H.push('@import url("'+Graph.escapeCssString(X)+'");\n');T()}))):H.push(this.cachedGoogleFonts[X]+"\n"):H.push('@font-face {font-family: "'+Graph.escapeCssString(ha)+'";src: url("'+Graph.escapeCssString(X)+'")}\n')})(v[W].name,v[W].url);-T()}else k()};Editor.prototype.addMathCss=function(k){k=k.getElementsByTagName("defs");if(null!=k&&0<k.length)for(var v=document.getElementsByTagName("style"),H=0;H<v.length;H++){var P=mxUtils.getTextContent(v[H]);0>P.indexOf("mxPageSelector")&&0<P.indexOf("MathJax")&&k[0].appendChild(v[H].cloneNode(!0))}};Editor.prototype.addFontCss=function(k,v){v=null!=v?v:this.absoluteCssFonts(this.fontCss);if(null!=v){var H=mxUtils.getSvgDefs(k),P=v.split("\n");v=[];for(var T=[],W=0;W<P.length;W++)"@import"==-P[W].substring(0,7)?v.push(P[W]):T.push(P[W]);k=k.ownerDocument;k=null!=k.createElementNS?k.createElementNS(mxConstants.NS_SVG,"style"):k.createElement("style");k.setAttribute("type","text/css");0<v.length&&(mxUtils.setTextContent(k,v.join("\n")),H.appendChild(k));0<T.length&&(k=k.cloneNode(!1),mxUtils.setTextContent(k,T.join("\n")),H.appendChild(k))}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||Editor.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(k,-v,H){var P=mxClient.IS_FF?8192:16384;return Math.min(H,Math.min(P/k,P/v))};Editor.prototype.exportToCanvas=function(k,v,H,P,T,W,ha,X,ea,oa,la,ca,ta,xa,qa,Ba,na,ra){try{W=null!=W?W:!0;ha=null!=ha?ha:!0;ca=null!=ca?ca:this.graph;ta=null!=ta?ta:0;var va=ea?null:ca.background;va==mxConstants.NONE&&(va=null);null==va&&(va=P);null==va&&0==ea&&(va=Editor.getDefaultPageBackgroundColor());this.convertImages(ca.getSvg(null,null,ta,xa,null,ha,null,null,null,oa,null,Ba,na,ra),mxUtils.bind(this,function(Ha){try{Ha.style.setProperty("-webkit-font-smoothing",-"antialiased");Ha.style.setProperty("-moz-osx-font-smoothing","grayscale");var La=new Image;La.onload=mxUtils.bind(this,function(){try{var Da=function(){mxClient.IS_SF?window.setTimeout(function(){Oa.drawImage(La,0,0);k(Qa,Ha)},0):(Oa.drawImage(La,0,0),k(Qa,Ha))},Qa=document.createElement("canvas"),Ka=parseInt(Ha.getAttribute("width")),Na=parseInt(Ha.getAttribute("height"));X=null!=X?X:1;null!=v&&(X=W?Math.min(1,Math.min(3*v/(4*Na),v/Ka)):v/Ka);X=this.getMaxCanvasScale(Ka,Na,X);Ka=Math.ceil(X*Ka);+null==Ba&&(Ba=la.ownerDocument.createElementNS("http://www.w3.org/2000/svg","defs"),la.insertBefore(Ba,la.firstChild));Ba.appendChild(La);Ba.appendChild(ca);ea.parentNode.insertBefore(Ga,ea.nextSibling);ea.setAttribute("fill","none");ea.style.fill=""}}}}for(var P=0,T="expand-pattern-clip-"+Editor.guid(8)+"-",W=k.querySelectorAll('[fill^="url("]'),ha=0;ha<W.length;ha++){var X=u(W[ha],k);null!=X&&H(W[ha],X,k)}W=k.querySelectorAll("[style]");for(ha=0;ha<W.length;ha++)X=W[ha].getAttribute("style"),null!=+X&&-1!==X.indexOf("url(")&&(X=u(W[ha],k),null!=X&&H(W[ha],X,k))};Editor.addAllowedFontUrl=function(k){"string"===typeof k&&0<k.length&&(Graph.allowedFontUrls[k]=!0)};Editor.addAllowedFontUrls=function(k){if(Array.isArray(k))for(var u=0;u<k.length;u++)null!=k[u]&&"object"===typeof k[u]&&Editor.addAllowedFontUrl(k[u].fontUrl)};Editor.configureFontCss=function(k){if(null!=k){Editor.prototype.fontCss=k;for(var u=k.split("url("),H=1;H<u.length;H++){var P=u[H].indexOf(")");0<P&&Editor.addAllowedFontUrl(Editor.trimCssUrl(u[H].substring(0,+P)))}u=document.getElementsByTagName("script")[0];if(null!=u&&null!=u.parentNode)for(H=document.createElement("style"),H.setAttribute("type","text/css"),H.appendChild(document.createTextNode(k)),u.parentNode.insertBefore(H,u),k=k.split("url("),H=1;H<k.length;H++){P=k[H].indexOf(")");P=Editor.trimCssUrl(k[H].substring(0,P));var T=document.createElement("link");T.setAttribute("rel","preload");T.setAttribute("href",P);T.setAttribute("as","font");T.setAttribute("crossorigin","");u.parentNode.insertBefore(T,+u)}}};Editor.trimCssUrl=function(k){return k.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GOOGLE_FONTS_CSS2="https://fonts.googleapis.com/css2?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(k){k=null!=k?k:Editor.GUID_LENGTH;for(var u=[],H=0;H<k;H++)u.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*+Editor.GUID_ALPHABET.length)));return u.join("")};Editor.updateStatusInterval=1E4;Editor.prototype.appName="draw.io";Editor.prototype.diagramFileTypes=[{description:"diagramXmlDesc",extension:"drawio",mimeType:"text/xml"},{description:"diagramPngDesc",extension:"png",mimeType:"image/png"},{description:"diagramSvgDesc",extension:"svg",mimeType:"image/svg"},{description:"diagramHtmlDesc",extension:"html",mimeType:"text/html"}];Editor.prototype.libraryFileTypes=[{description:"Library (.drawiolib, .xml)",+extensions:["drawiolib","xml"]}];Editor.prototype.fileExtensions=[{ext:"html",title:"filetypeHtml"},{ext:"png",title:"filetypePng"},{ext:"svg",title:"filetypeSvg"}];Editor.prototype.timeout=25E3;Editor.prototype.generateTimeout=9E4;Editor.prototype.editButtonLink=null!=urlParams.edit?decodeURIComponent(urlParams.edit):null;Editor.prototype.crossOriginImages=!0;var d=Editor.prototype.setGraphXml;Editor.prototype.setGraphXml=function(k){k=null!=k&&"mxlibrary"!=k.nodeName?this.extractGraphModel(k):null;+if(null!=k){var u=Editor.extractParserError(k,mxResources.get("invalidOrMissingFile"));if(u)throw EditorUi.debug("Editor.setGraphXml ParserError",[this],"node",[k],"cause",[u]),Error(mxResources.get("notADiagramFile")+" ("+u+")");if("mxGraphModel"==k.nodeName){u=k.getAttribute("style")||"default-style2";if("1"==urlParams.embed||null!=u&&""!=u)u!=this.graph.currentStyle&&(H=null!=this.graph.themes?this.graph.themes[u]:mxUtils.load(STYLE_PATH+"/"+u+".xml").getDocumentElement(),null!=H&&(P=new mxCodec(H.ownerDocument),+P.decode(H,this.graph.getStylesheet())));else{var H=null!=this.graph.themes?this.graph.themes["default-old"]:mxUtils.load(STYLE_PATH+"/default-old.xml").getDocumentElement();if(null!=H){var P=new mxCodec(H.ownerDocument);P.decode(H,this.graph.getStylesheet())}}this.graph.currentStyle=u;this.graph.mathEnabled="1"==urlParams.math||"1"==k.getAttribute("math");this.graph.setAdaptiveColors(k.getAttribute("adaptiveColors"));u=k.getAttribute("backgroundImage");null!=u?this.graph.setBackgroundImage(this.graph.parseBackgroundImage(u)):+this.graph.setBackgroundImage(null);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();this.graph.setShadowVisible("1"==k.getAttribute("shadow"),!1);if(u=k.getAttribute("extFonts"))try{for(u=u.split("|").map(function(T){T=T.split("^");return{name:T[0],url:T[1]}}),H=0;H<u.length;H++)this.graph.addExtFont(u[H].name,u[H].url)}catch(T){console.log("ExtFonts format error: "+T.message)}else null!=this.graph.extFonts&&+0<this.graph.extFonts.length&&(this.graph.extFonts=[])}d.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||"Invalid data",toString:function(){return this.message}};};var m=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(k,u){k=null!=k?k:!0;var H=m.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&H.setAttribute("style",this.graph.currentStyle);var P=this.graph.getBackgroundImageObject(this.graph.backgroundImage,+u);null!=P&&H.setAttribute("backgroundImage",JSON.stringify(P));H.setAttribute("math",this.graph.mathEnabled?"1":"0");H.setAttribute("shadow",this.graph.shadowVisible?"1":"0");null!=this.graph.adaptiveColors?H.setAttribute("adaptiveColors",this.graph.adaptiveColors):H.removeAttribute("adaptiveColors");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(P=this.graph.extFonts.map(function(T){return T.name+"^"+T.url}),H.setAttribute("extFonts",P.join("|")));return H};Editor.prototype.isDataSvg=+function(k){try{var u=mxUtils.parseXml(k).documentElement.getAttribute("content");if(null!=u&&(null!=u&&"<"!=u.charAt(0)&&"%"!=u.charAt(0)&&(u=unescape(window.atob?atob(u):Base64.decode(cont,u))),null!=u&&"%"==u.charAt(0)&&(u=decodeURIComponent(u)),null!=u&&0<u.length)){var H=mxUtils.parseXml(u).documentElement;return"mxfile"==H.nodeName||"mxGraphModel"==H.nodeName}}catch(P){}return!1};Editor.prototype.extractGraphModel=function(k,u,H){return Editor.extractGraphModel.apply(this,arguments)};var p=+Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.setAdaptiveColors(null);this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();p.apply(this,arguments)};var t=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){t.apply(this,arguments);this.graph.useCssTransforms=+!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.safeMathJaxFilterUrl=function(k,u){var H=(u.replace(/[\t\n\r]/g,"").replace(/^[\u0000-\u0020]+/,"").match(/^([a-z][a-z0-9+.\-]*):/i)||[null,""])[1].toLowerCase(),P=k.allow.URLs;return"all"===P||"safe"===P&&(k.options.safeProtocols[H]||!H)?u:null};Editor.safeMathJaxFilterUrl.drawioPatched=!0;Editor.patchMathJaxUrlFilter=function(k){k=null!=k?k:"undefined"!==typeof MathJax?MathJax:+null;if(null!=k){var u=null!=k._&&null!=k._.ui&&null!=k._.ui.safe&&null!=k._.ui.safe.SafeMethods?k._.ui.safe.SafeMethods.SafeMethods:null;null==u||null==u.filterURL||u.filterURL.drawioPatched||(u.filterURL=Editor.safeMathJaxFilterUrl);k=null!=k.startup?k.startup.document:null;null==k||null==k.safe||null==k.safe.filterMethods||null==k.safe.filterMethods.filterURL||k.safe.filterMethods.filterURL.drawioPatched||(k.safe.filterMethods.filterURL=Editor.safeMathJaxFilterUrl)}};Editor.safeMathJaxDataMacro=+function(k,u,H,P){var T=k.setAttribute;k.setAttribute=function(W,ha,X){if("string"!==typeof ha||"data-"!==ha.substring(0,5)||ha.match(Editor.safeMathJaxDataPattern))return T.apply(this,arguments)};try{return u.apply(this,[H,P])}finally{k.setAttribute=T}};Editor.safeMathJaxDataPattern=/^data-mjx-/;Editor.patchMathJaxDataMacro=function(k){k=null!=k?k:"undefined"!==typeof MathJax?MathJax:null;k=null!=k&&null!=k._&&null!=k._.input?k._.input.tex:null;if(null!=k&&null!=k.MapHandler&&null!=k.NodeUtil){var u=+k.MapHandler.MapHandler.getMap("html_macros");u=null!=u&&null!=u.lookup?u.lookup("data"):null;if(null!=u&&null!=u._func&&!u._func.drawioPatched){var H=k.NodeUtil["default"],P=u._func;k=function(T,W){return Editor.safeMathJaxDataMacro(H,P,T,W)};k.drawioPatched=!0;u._func=k}}};Editor.patchMathJaxSafeFilters=function(k){Editor.patchMathJaxUrlFilter(k);Editor.patchMathJaxDataMacro(k)};Editor.initMath=function(k,u){if("undefined"===typeof window.MathJax){var H=function(){P=null;Editor.mathJaxRendering=+!1;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};k=null!=k?k:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var P=null;Editor.mathJaxRendering=!1;Editor.doMathJaxRender=function(ha){Editor.patchMathJaxSafeFilters();null!=MathJax.startup&&null!=MathJax.startup.output&&null!=MathJax.startup.output.options&&null!=MathJax.startup.output.options.linebreaks&&(MathJax.startup.output.options.linebreaks.inline=!1);try{null==P?(MathJax.typesetClear([ha]),+MathJax.typeset([ha]),H()):P!=ha&&Editor.mathJaxQueue.push(ha)}catch(X){MathJax.typesetClear([ha]),null!=X.retry?(P=ha,Editor.mathJaxRendering=!0,X.retry.then(function(){MathJax.typesetPromise([ha]).then(H)["catch"](function(ea){console.log("Error in MathJax.typesetPromise: "+ea.toString());H()})})["catch"](function(ea){console.log("Error in MathJax.retry: "+ea.toString());H()})):null!=window.console&&console.log("Error in MathJax.typeset: "+X.toString())}};window.MathJax=null!=u?u:{options:{skipHtmlTags:{"[+]":["text"]},+ignoreHtmlClass:"geDisableMathJax"},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe","[tex]/html"],paths:{fonts:DRAW_MATH_URL+"/fonts"}},output:{font:"mathjax-tex"},startup:{pageReady:function(){for(var ha=0;ha<Editor.mathJaxQueue.length;ha++)Editor.doMathJaxRender(Editor.mathJaxQueue[ha])}}};Editor.MathJaxRender=function(ha){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(ha):Editor.mathJaxQueue.push(ha)};+Editor.onMathJaxDone=function(){};var T=Editor.prototype.init;Editor.prototype.init=function(){T.apply(this,arguments);var ha=mxUtils.bind(this,function(oa,la){null!=this.graph.container&&this.graph.mathEnabled&&(Editor.mathOutputSize&&(this.graph.container.style.visibility="hidden"),Editor.MathJaxRender(this.graph.container))});this.graph.model.addListener(mxEvent.CHANGE,ha);this.graph.addListener(mxEvent.REFRESH,ha);var X=this.graph,ea=Editor.onMathJaxDone;Editor.onMathJaxDone=function(){null!=+ea&&ea.apply(this,arguments);Editor.mathOutputSize&&null!=X&&X.mathEnabled&&(X.refreshMathBounds(),null!=X.container&&(X.container.style.visibility=""))}};u=document.getElementsByTagName("script");if(null!=u&&0<u.length){var W=document.createElement("script");W.setAttribute("type","text/javascript");W.setAttribute("src",k);u[0].parentNode.appendChild(W)}}};Editor.containsMath=function(k){return null!=k&&(0<=k.indexOf("$")||0<=k.indexOf("\\(")||0<=k.indexOf("\\[")||0<=k.indexOf("\\begin{"))};(function(){var k=+Graph.prototype.getPreferredSizeForCell,u=null;Graph.prototype.getPreferredSizeForCell=function(H,P,T){if(!Editor.mathOutputSize||!this.mathEnabled||"undefined"===typeof MathJax||"function"!==typeof MathJax.typeset||this.model.isEdge(H))return k.apply(this,arguments);var W=this.view.createState(H);W=null!=W?this.cellRenderer.getLabelValue(W):null;if(null==W||0===W.length||!Editor.containsMath(W))return k.apply(this,arguments);var ha=mxUtils.getSizeForString;mxUtils.getSizeForString=function(X,ea,+oa,la){null==u&&(u=document.createElement("div"),u.style.cssText="position:absolute;visibility:hidden;left:-10000px;top:-10000px;display:inline-block;",document.body.appendChild(u));u.style.fontSize=ea+"px";u.style.fontFamily=oa;null!=la&&0<la?(u.style.width=la+"px",u.style.whiteSpace="normal"):(u.style.width="",u.style.whiteSpace="nowrap");MathJax.typesetClear([u]);u.innerHTML=Graph.sanitizeHtml(X);try{MathJax.typeset([u]);var ca=u.getBoundingClientRect();return new mxRectangle(0,0,ca.width,ca.height)}catch(ta){return ha.apply(this,+arguments)}};try{return k.apply(this,arguments)}finally{mxUtils.getSizeForString=ha}}})();Graph.prototype.refreshMathBounds=function(){if(Editor.mathOutputSize&&this.mathEnabled){var k=this.view,u=!1;k.states.visit(mxUtils.bind(this,function(P,T){null!=T&&null!=T.text&&(P=this.cellRenderer.getLabelValue(T),"string"===typeof P&&Editor.containsMath(P)&&(T.text.updateBoundingBox(),u=!0))}));if(u){var H=null!=k.currentRoot?k.currentRoot:this.model.getRoot();H=k.getState(H);null!=H&&(H=k.getBoundingBox(H,+!0,!1),k.setGraphBounds(null!=H?H:k.getEmptyBounds()),this.sizeDidChange());this.fireEvent(new mxEventObject("mathRefreshed"))}}};(function(){var k=EditorUi.prototype.initialFitDiagram;EditorUi.prototype.initialFitDiagram=function(u){k.apply(this,arguments);var H=this.editor.graph;if(Editor.mathOutputSize&&null!=H&&H.mathEnabled){var P=arguments,T=this,W=!1,ha=function(){W||(W=!0,H.removeListener(ha),H.zoomTo(1),T.resetScrollbars(),k.apply(T,P))};H.addListener("mathRefreshed",ha);Promise.resolve().then(function(){W||+"undefined"===typeof MathJax||"function"!==typeof MathJax.typeset||null!=Editor.mathJaxQueue&&0<Editor.mathJaxQueue.length||Editor.mathJaxRendering||H.removeListener(ha)})}}})();Editor.prototype.csvToArray=function(k){if(0<k.length){var u="",H=[""],P=0,T=!0,W;k=$jscomp.makeIterator(k);for(W=k.next();!W.done;W=k.next())W=W.value,'"'===W?(T&&W===u&&(H[P]+=W),T=!T):","===W&&T?W=H[++P]="":H[P]+=W,u=W;return H}return[]};Editor.prototype.getProxiedUrl=function(k){if((/test\.draw\.io$/.test(window.location.hostname)||+/app\.diagrams\.net$/.test(window.location.hostname))&&!this.isCorsEnabledForUrl(k)){var u=EditorUi.isVisioFilename(k);u=/\.png$/i.test(k)||/\.pdf$/i.test(k)||u;var H="t="+(new Date).getTime();k=PROXY_URL+"?url="+encodeURIComponent(k)+"&"+H+(u?"&base64=1":"")}return k};Editor.prototype.isCorsEnabledForUrl=function(k){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||k.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=+new RegExp(decodeURIComponent(urlParams.cors)));return null!=this.corsRegExp&&this.corsRegExp.test(k)||"https://raw.githubusercontent.com/"===k.substring(0,34)||"https://icons.diagrams.net/"===k.substring(0,27)||"https://fonts.googleapis.com/"===k.substring(0,29)||"https://fonts.gstatic.com/"===k.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var k=new mxUrlConverter;k.updateBaseUrl();var u=k.convert,H=this;k.convert=function(P){null!=P&&navigator.onLine&&("http://"!=P.substring(0,+7)&&"https://"!=P.substring(0,8)||P.substring(0,k.baseUrl.length)==k.baseUrl||H.crossOriginImages&&H.isCorsEnabledForUrl(P)?"chrome-extension://"!=P.substring(0,19)&&(P=u.apply(this,arguments)):P=PROXY_URL+"?url="+encodeURIComponent(P));return P};return k};Editor.createSvgDataUri=function(k){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(k)))};Editor.prototype.convertImageToDataUri=function(k,u,H,P,T){try{var W=!0,ha=window.setTimeout(mxUtils.bind(this,function(){W=!1;u(k)}),+this.timeout),X=mxUtils.bind(this,function(){null!=P?this.convertImageToDataUri(k,u,H,P,!0):u(k)});if(/(\.svg)$/i.test(k)&&!T)mxUtils.get(k,mxUtils.bind(this,function(oa){window.clearTimeout(ha);W&&(200>oa.getStatus()||299<oa.getStatus()?X():u(Editor.createSvgDataUri(oa.getText())))}),mxUtils.bind(this,function(){window.clearTimeout(ha);W&&X()}));else{var ea=new Image;this.crossOriginImages&&(ea.crossOrigin="anonymous");ea.onload=function(){window.clearTimeout(ha);if(W)try{P=null!=P&&T?P:1;var oa=+document.createElement("canvas");oa.height=ea.height*P;oa.width=ea.width*P;var la=oa.getContext("2d");la.scale(P,P);la.drawImage(ea,0,0);u(oa.toDataURL())}catch(ca){u(k)}};ea.onerror=function(){window.clearTimeout(ha);W&&(null!=H?H():u(k))};ea.src=k}}catch(oa){null!=H?H():u(k)}};Editor.prototype.convertImages=function(k,u,H,P){function T(){0<W.length?W.shift()():u(k)}null==P&&(P=this.createImageUrlConverter());var W=[],ha=H||{};H=mxUtils.bind(this,function(ca,ta){ca=k.getElementsByTagName(ca);for(var xa=+0;xa<ca.length;xa++)mxUtils.bind(this,function(qa){W.push(mxUtils.bind(this,function(){try{if(null!=qa){var Ba=P.convert(qa.getAttribute(ta));if(null!=Ba&&"data:"!=Ba.substring(0,5)){var na=ha[Ba];null==na?this.convertImageToDataUri(Ba,function(ra){null!=ra&&(ha[Ba]=ra,qa.setAttribute(ta,ra));T()},null,Editor.svgRasterScale):(qa.setAttribute(ta,na),T())}else null!=Ba&&qa.setAttribute(ta,Ba),T()}}catch(ra){T()}}))})(ca[xa])});var X={},ea=function(){var ca=k.getElementsByTagName("defs")[0];null==ca&&+(ca=k.ownerDocument,ca=null!=ca.createElementNS?ca.createElementNS(mxConstants.NS_SVG,"defs"):ca.createElement("defs"),k.insertBefore(ca,k.firstChild));return ca},oa=mxUtils.bind(this,function(){for(var ca=k.getElementsByTagName("use"),ta=0;ta<ca.length;ta++)mxUtils.bind(this,function(xa){W.push(mxUtils.bind(this,function(){try{var qa=xa.getAttribute("href");null==qa&&(qa=xa.getAttribute("xlink:href"));if(null!=qa&&"#"!=qa.charAt(0)&&"data:"!=qa.substring(0,5)){var Ba=P.convert(qa),na=function(va){va=+Graph.createSvgImageSymbol(ea(),X,va,!0);null!=va&&(xa.setAttribute("href","#"+va),xa.setAttribute("xlink:href","#"+va));T()},ra=ha[Ba];null==ra?this.convertImageToDataUri(Ba,function(va){null!=va&&va!=Ba&&(ha[Ba]=va);na(va)}):na(ra)}else T()}catch(va){T()}}))})(ca[ta])}),la=mxUtils.bind(this,function(){W.push(mxUtils.bind(this,function(){try{for(var ca=k.getElementsByTagName("image"),ta=[],xa=0;xa<ca.length;xa++)ta.push(ca[xa]);var qa={},Ba={},na=[],ra=function(){for(var Oa=k.getElementsByTagName("use"),+Fa=0;Fa<Oa.length;Fa++){var Aa=Oa[Fa].getAttribute("href");null==Aa&&(Aa=Oa[Fa].getAttribute("xlink:href"));null!=Aa&&null!=qa[Aa]&&(Oa[Fa].setAttribute("href","#"+qa[Aa]),Oa[Fa].setAttribute("xlink:href","#"+qa[Aa]))}},va=function(Oa,Fa){for(var Aa=null!=k.ownerDocument.createElementNS?k.ownerDocument.createElementNS(mxConstants.NS_SVG,"use"):k.ownerDocument.createElement("use"),Ja=Oa.attributes,Ia=0;Ia<Ja.length;Ia++){var Sa=Ja[Ia].name;"href"!=Sa&&"xlink:href"!=Sa&&"preserveAspectRatio"!=Sa&&Aa.setAttribute(Sa,+Ja[Ia].value)}Aa.setAttribute("href","#"+Fa);Aa.setAttribute("xlink:href","#"+Fa);Oa.parentNode.replaceChild(Aa,Oa)};for(xa=0;xa<ta.length;xa++){var Ha=ta[xa];ca=Ha;var La=!0;if("symbol"==Ha.parentNode.nodeName)if(null==Ha.getAttribute("id")&&"mx-image-"==String(Ha.parentNode.getAttribute("id")||"").substring(0,9))ca=Ha.parentNode,La=!1;else continue;else"mx-image-"==String(Ha.getAttribute("id")||"").substring(0,9)&&(La=!1);var Ga=Ha.getAttribute("xlink:href");if(null!=Ga&&"data:"==Ga.substring(0,+5)){var Da=ca.getAttribute("preserveAspectRatio")||"";if("data:image/svg+xml"==Ga.substring(0,18)){var Qa="mx-symbol-"+mxUtils.hashCode(Ga+"|"+("none"!=Da)),Ka=k.querySelector('[id="'+Qa+'"]');if(null!=Ka&&"symbol"==Ka.nodeName){La?va(Ha,Qa):(qa["#"+ca.getAttribute("id")]=Qa,ca.parentNode.removeChild(ca));continue}}null==Ba[Ga]&&(Ba[Ga]={},na.push(Ga));null==Ba[Ga][Da]&&(Ba[Ga][Da]=[]);Ba[Ga][Da].push({node:ca,inline:La})}}ra();var Na=function(){for(var Oa=null,Fa=null;0<na.length&&null==Oa;){Oa=+na.pop();Fa=Ba[Oa];var Aa=0,Ja=0,Ia;for(Ia in Fa)Aa++,Ja=Math.max(Ja,Fa[Ia].length);2>Aa&&2>Ja&&(Oa=null)}if(null==Oa)T();else{var Sa=new Image;Sa.onload=function(){try{var ab=Sa.naturalWidth,Va=Sa.naturalHeight;if(0<ab&&0<Va){var db=k.ownerDocument,Ea=0,$a;for($a in Fa)Ea++;var cb=function(Fb){return null!=db.createElementNS?db.createElementNS(mxConstants.NS_SVG,Fb):db.createElement(Fb)},Za=function(){var Fb=cb("image");Fb.setAttribute("width",ab);Fb.setAttribute("height",Va);null==Fb.setAttributeNS?+Fb.setAttribute("xlink:href",Oa):Fb.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",Oa);return Fb},eb=null;if(1<Ea){for(eb="mx-data-"+mxUtils.hashCode(Oa);null!=k.querySelector('[id="'+eb+'"]');)eb+="-1";var lb=Za();lb.setAttribute("id",eb);ea().appendChild(lb)}for($a in Fa){var wb=Fa[$a];Ea=null;for(lb=0;lb<wb.length&&null==Ea;lb++)wb[lb].inline||(Ea=wb[lb].node.getAttribute("id"));if(null==Ea)for(Ea="mx-image-"+mxUtils.hashCode(Oa+"|"+$a);null!=k.querySelector('[id="'+Ea+'"]');)Ea+="-1";var rb=+cb("symbol");rb.setAttribute("id",Ea);rb.setAttribute("viewBox","0 0 "+ab+" "+Va);""!=$a&&rb.setAttribute("preserveAspectRatio",$a);if(null!=eb){var xb=cb("use");xb.setAttribute("href","#"+eb);xb.setAttribute("xlink:href","#"+eb);rb.appendChild(xb)}else rb.appendChild(Za());ea().appendChild(rb);for(lb=0;lb<wb.length;lb++){var Jb=wb[lb].node;wb[lb].inline?va(Jb,Ea):(Jb.getAttribute("id")!=Ea&&(qa["#"+Jb.getAttribute("id")]=Ea),Jb.parentNode.removeChild(Jb))}}ra()}}catch(Fb){}Na()};Sa.onerror=function(){Na()};+Sa.src=Oa}};Na()}catch(Oa){T()}}))});H("image","xlink:href");H("img","src");oa();la();T()};Editor.base64Encode=function(k){for(var u="",H=0,P=k.length,T,W,ha;H<P;){T=k.charCodeAt(H++)&255;if(H==P){u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T>>2);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&3)<<4);u+="==";break}W=k.charCodeAt(H++);if(H==P){u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T>>2);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&+3)<<4|(W&240)>>4);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((W&15)<<2);u+="=";break}ha=k.charCodeAt(H++);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T>>2);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&3)<<4|(W&240)>>4);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((W&15)<<2|(ha&192)>>6);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(ha&+63)}return u};Editor.prototype.loadUrl=function(k,u,H,P,T,W,ha,X){try{var ea=!ha&&(P||/(\.png)($|\?)/i.test(k)||/(\.jpe?g)($|\?)/i.test(k)||/(\.gif)($|\?)/i.test(k)||/(\.pdf)($|\?)/i.test(k));T=null!=T?T:!0;var oa=mxUtils.bind(this,function(){mxUtils.get(k,mxUtils.bind(this,function(la){200<=la.getStatus()&&299>=la.getStatus()?null!=u&&(la=la.getText(),ea&&(W=null!=W?W:"data:image/png;base64,",la=W+Editor.base64Encode(la)),u(la)):null!=H&&(0==la.getStatus()?H({message:mxResources.get("accessDenied")},+la):404==la.getStatus()?H({message:mxResources.get("fileNotFound"),code:la.getStatus()},la):H({message:this.getErrorMessage(la)},la))}),function(la){null!=H&&H({message:mxResources.get("error")+" "+la.getStatus()})},ea,this.timeout,function(){T&&null!=H&&H({code:App.ERROR_TIMEOUT,retry:oa})},X)});oa()}catch(la){null!=H&&H(la)}};Editor.prototype.getErrorMessage=function(k){var u=mxResources.get("error")+" "+k.getStatus();try{var H=k.getText(),P=JSON.parse(H);null!=P&&null!=P.error&&null!=P.error.message&&+(u=P.error.message+" ("+u+")")}catch(T){}return u};Editor.prototype.absoluteCssFonts=function(k){var u=null;if(null!=k){var H=k.split("url(");if(0<H.length){u=[H[0]];k=window.location.pathname;var P=null!=k?k.lastIndexOf("/"):-1;0<=P&&(k=k.substring(0,P+1));P=document.getElementsByTagName("base");var T=null;null!=P&&0<P.length&&(T=P[0].getAttribute("href"));for(var W=1;W<H.length;W++)if(P=H[W].indexOf(")"),0<P){var ha=Editor.trimCssUrl(H[W].substring(0,P));this.graph.isRelativeUrl(ha)&&(ha=null!=+T?T+ha:window.location.protocol+"//"+window.location.hostname+("/"==ha.charAt(0)?"":k)+ha);u.push('url("'+ha+'"'+H[W].substring(P))}else u.push(H[W])}else u=[k]}return null!=u?u.join(""):null};Editor.prototype.mapFontUrl=function(k,u,H){/^https?:\/\//.test(u)&&!this.isCorsEnabledForUrl(u)&&(u=PROXY_URL+"?url="+encodeURIComponent(u));H(k,u)};Editor.prototype.embedCssFonts=function(k,u){var H=k.split("url("),P=0;null==this.cachedFonts&&(this.cachedFonts=Object.create(null));var T=mxUtils.bind(this,+function(){if(0==P){for(var ea=[H[0]],oa=1;oa<H.length;oa++){var la=H[oa].indexOf(")");ea.push('url("');ea.push(this.cachedFonts[Editor.trimCssUrl(H[oa].substring(0,la))]);ea.push('"'+H[oa].substring(la))}u(ea.join(""))}});if(0<H.length){for(k=1;k<H.length;k++){var W=H[k].indexOf(")"),ha=null,X=H[k].indexOf("format(",W);0<X&&(ha=Editor.trimCssUrl(H[k].substring(X+7,H[k].indexOf(")",X))));mxUtils.bind(this,function(ea){var oa=this.cachedFonts[ea];if(null==oa){var la=[];this.cachedFonts[ea]=la;P++;+oa="application/x-font-ttf";if("svg"==ha||/(\.svg)($|\?)/i.test(ea))oa="image/svg+xml";else if("otf"==ha||"embedded-opentype"==ha||/(\.otf)($|\?)/i.test(ea))oa="application/x-font-opentype";else if("woff"==ha||/(\.woff)($|\?)/i.test(ea))oa="application/font-woff";else if("woff2"==ha||/(\.woff2)($|\?)/i.test(ea))oa="application/font-woff2";else if("eot"==ha||/(\.eot)($|\?)/i.test(ea))oa="application/vnd.ms-fontobject";else if("sfnt"==ha||/(\.sfnt)($|\?)/i.test(ea))oa="application/font-sfnt";var ca=+mxUtils.bind(this,function(ta){this.cachedFonts[ea]=ta;P--;T();for(ta=0;ta<la.length;ta++)la[ta]()});this.mapFontUrl(oa,ea,mxUtils.bind(this,function(ta,xa){this.loadUrl(xa,function(qa){ca(qa)},function(qa){ca(ea)},!0,null,"data:"+ta+";charset=utf-8;base64,")}))}else"string"!=typeof oa&&(P++,oa.push(function(){P--;T()}))})(Editor.trimCssUrl(H[k].substring(0,W)),ha)}T()}else u(k)};Editor.prototype.loadFonts=function(k){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,+mxUtils.bind(this,function(u){this.resolvedFontCss=u;null!=k&&k()})):null!=k&&k()};Editor.prototype.createGoogleFontCache=function(){var k={},u;for(u in Graph.fontMapping)Graph.isCssFontUrl(u)&&(k[u]=Graph.fontMapping[u]);return k};Editor.prototype.embedExtFonts=function(k,u){u=this.graph.getCustomFonts(u);if(0<u.length){var H=[],P=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var T=mxUtils.bind(this,function(){0==P&&this.embedCssFonts(H.join(""),k)}),W=+0;W<u.length;W++)mxUtils.bind(this,function(ha,X){Graph.isCssFontUrl(X)?null==this.cachedGoogleFonts[X]?(P++,this.loadUrl(Graph.rewriteGoogleFontUrl(X),mxUtils.bind(this,function(ea){this.cachedGoogleFonts[X]=ea;H.push(ea+"\n");P--;T()}),mxUtils.bind(this,function(ea){P--;H.push('@import url("'+Graph.escapeCssString(X)+'");\n');T()}))):H.push(this.cachedGoogleFonts[X]+"\n"):H.push('@font-face {font-family: "'+Graph.escapeCssString(ha)+'";src: url("'+Graph.escapeCssString(X)+'")}\n')})(u[W].name,u[W].url);+T()}else k()};Editor.prototype.addMathCss=function(k){k=k.getElementsByTagName("defs");if(null!=k&&0<k.length)for(var u=document.getElementsByTagName("style"),H=0;H<u.length;H++){var P=mxUtils.getTextContent(u[H]);0>P.indexOf("mxPageSelector")&&0<P.indexOf("MathJax")&&k[0].appendChild(u[H].cloneNode(!0))}};Editor.prototype.addFontCss=function(k,u){u=null!=u?u:this.absoluteCssFonts(this.fontCss);if(null!=u){var H=mxUtils.getSvgDefs(k),P=u.split("\n");u=[];for(var T=[],W=0;W<P.length;W++)"@import"==+P[W].substring(0,7)?u.push(P[W]):T.push(P[W]);k=k.ownerDocument;k=null!=k.createElementNS?k.createElementNS(mxConstants.NS_SVG,"style"):k.createElement("style");k.setAttribute("type","text/css");0<u.length&&(mxUtils.setTextContent(k,u.join("\n")),H.appendChild(k));0<T.length&&(k=k.cloneNode(!1),mxUtils.setTextContent(k,T.join("\n")),H.appendChild(k))}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||Editor.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(k,+u,H){var P=mxClient.IS_FF?8192:16384;return Math.min(H,Math.min(P/k,P/u))};Editor.prototype.exportToCanvas=function(k,u,H,P,T,W,ha,X,ea,oa,la,ca,ta,xa,qa,Ba,na,ra){try{W=null!=W?W:!0;ha=null!=ha?ha:!0;ca=null!=ca?ca:this.graph;ta=null!=ta?ta:0;var va=ea?null:ca.background;va==mxConstants.NONE&&(va=null);null==va&&(va=P);null==va&&0==ea&&(va=Editor.getDefaultPageBackgroundColor());this.convertImages(ca.getSvg(null,null,ta,xa,null,ha,null,null,null,oa,null,Ba,na,ra),mxUtils.bind(this,function(Ha){try{Ha.style.setProperty("-webkit-font-smoothing",+"antialiased");Ha.style.setProperty("-moz-osx-font-smoothing","grayscale");var La=new Image;La.onload=mxUtils.bind(this,function(){try{var Da=function(){mxClient.IS_SF?window.setTimeout(function(){Oa.drawImage(La,0,0);k(Qa,Ha)},0):(Oa.drawImage(La,0,0),k(Qa,Ha))},Qa=document.createElement("canvas"),Ka=parseInt(Ha.getAttribute("width")),Na=parseInt(Ha.getAttribute("height"));X=null!=X?X:1;null!=u&&(X=W?Math.min(1,Math.min(3*u/(4*Na),u/Ka)):u/Ka);X=this.getMaxCanvasScale(Ka,Na,X);Ka=Math.ceil(X*Ka);Na=Math.ceil(X*Na);Qa.setAttribute("width",Ka);Qa.setAttribute("height",Na);var Oa=Qa.getContext("2d");if(null!=va){var Fa=mxUtils.getLightDarkColor(va);Oa.beginPath();Oa.rect(0,0,Ka,Na);Oa.fillStyle="dark"==Ba&&"none"!=ca.getAdaptiveColors()?Fa.dark:Fa.light;Oa.fill()}1!=X&&Oa.scale(X,X);if(qa){var Aa=ca.view,Ja=Aa.scale;Aa.scale=1;var Ia=btoa(unescape(encodeURIComponent(Aa.createSvgGrid(Aa.gridColor))));Aa.scale=Ja;Ia="data:image/svg+xml;base64,"+Ia;var Sa=ca.gridSize*Aa.gridSteps*X,ab=ca.getGraphBounds(),Va=Aa.translate.x*Ja,db=Aa.translate.y*Ja,Ea=Va+(ab.x-Va)/Ja-ta,$a=db+(ab.y-db)/Ja-ta,cb=new Image;cb.onload=function(){try{for(var Za=-Math.round(Sa-mxUtils.mod((Va-Ea)*X,Sa)),eb=-Math.round(Sa-mxUtils.mod((db-$a)*X,Sa));Za<Ka;Za+=Sa)for(var lb=eb;lb<Na;lb+=Sa)Oa.drawImage(cb,Za/X,lb/X);Da()}catch(wb){null!=T&&T(wb)}};cb.onerror=function(Za){null!=T&&T(Za)};cb.src=Ia}else Da()}catch(Za){null!=T&&T(Za)}});La.onerror=function(Da){null!=T&&T(Da)};oa&&this.graph.addSvgShadow(Ha);this.graph.mathEnabled&&this.addMathCss(Ha);var Ga=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(Ha,this.resolvedFontCss),La.src=Editor.createSvgDataUri(mxUtils.getXml(Ha))}catch(Da){null!=T&&T(Da)}});this.embedExtFonts(mxUtils.bind(this,function(Da){try{null!=Da&&this.addFontCss(Ha,Da),this.loadFonts(Ga)}catch(Qa){null!=T&&T(Qa)}}))}catch(Da){null!=T&&T(Da)}}),H,la)}catch(Ha){null!=T&&T(Ha)}};Editor.crcTable=[];for(var n=0;256>n;n++)for(var y=n,D=0;8>D;D++)y=1==(y&1)?3988292384^y>>>1:y>>>-1,Editor.crcTable[n]=y;Editor.updateCRC=function(k,v,H,P){for(var T=0;T<P;T++)k=Editor.crcTable[(k^v.charCodeAt(H+T))&255]^k>>>8;return k};Editor.crc32=function(k){for(var v=-1,H=0;H<k.length;H++)v=v>>>8^Editor.crcTable[(v^k.charCodeAt(H))&255];return(v^-1)>>>0};Editor.writeGraphModelToPng=function(k,v,H,P,T){function W(la,ca){var ta=ea;ea+=ca;return la.substring(ta,ea)}function ha(la){la=W(la,4);return la.charCodeAt(3)+(la.charCodeAt(2)<<8)+(la.charCodeAt(1)<<16)+(la.charCodeAt(0)<<24)}function X(la){return String.fromCharCode(la>>-24&255,la>>16&255,la>>8&255,la&255)}k=k.substring(k.indexOf(",")+1);k=window.atob?atob(k):Base64.decode(k,!0);var ea=0;if(W(k,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=T&&T();else if(W(k,4),"IHDR"!=W(k,4))null!=T&&T();else{W(k,17);T=k.substring(0,ea);do{var oa=ha(k);if("IDAT"==W(k,4)){T=k.substring(0,ea-8);"pHYs"==v&&"dpi"==H?(H=Math.round(P/.0254),H=X(H)+X(H)+String.fromCharCode(1)):H=H+String.fromCharCode(0)+("zTXt"==v?String.fromCharCode(0):"")+P;P=4294967295;P=-Editor.updateCRC(P,v,0,4);P=Editor.updateCRC(P,H,0,H.length);T+=X(H.length)+v+H+X(P^4294967295);T+=k.substring(ea-8,k.length);break}T+=k.substring(ea-8,ea-4+oa);W(k,oa);W(k,4)}while(oa);return"data:image/png;base64,"+(window.btoa?btoa(T):Base64.encode(T,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var O=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(k,v){O.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);-mxSettings.save()};var F=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){F.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(k,v,H){var P=null;if(null!=H)return null;null!=k.editor.graph.getModel().getParent(v)?P=v.getId():null!=k.currentPage&&(P=k.currentPage.getId());return P});if(null!=window.StyleFormatPanel){var N=Format.prototype.init;Format.prototype.init=+1,Editor.crcTable[n]=y;Editor.updateCRC=function(k,u,H,P){for(var T=0;T<P;T++)k=Editor.crcTable[(k^u.charCodeAt(H+T))&255]^k>>>8;return k};Editor.crc32=function(k){for(var u=-1,H=0;H<k.length;H++)u=u>>>8^Editor.crcTable[(u^k.charCodeAt(H))&255];return(u^-1)>>>0};Editor.writeGraphModelToPng=function(k,u,H,P,T){function W(la,ca){var ta=ea;ea+=ca;return la.substring(ta,ea)}function ha(la){la=W(la,4);return la.charCodeAt(3)+(la.charCodeAt(2)<<8)+(la.charCodeAt(1)<<16)+(la.charCodeAt(0)<<24)}function X(la){return String.fromCharCode(la>>+24&255,la>>16&255,la>>8&255,la&255)}k=k.substring(k.indexOf(",")+1);k=window.atob?atob(k):Base64.decode(k,!0);var ea=0;if(W(k,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=T&&T();else if(W(k,4),"IHDR"!=W(k,4))null!=T&&T();else{W(k,17);T=k.substring(0,ea);do{var oa=ha(k);if("IDAT"==W(k,4)){T=k.substring(0,ea-8);"pHYs"==u&&"dpi"==H?(H=Math.round(P/.0254),H=X(H)+X(H)+String.fromCharCode(1)):H=H+String.fromCharCode(0)+("zTXt"==u?String.fromCharCode(0):"")+P;P=4294967295;P=+Editor.updateCRC(P,u,0,4);P=Editor.updateCRC(P,H,0,H.length);T+=X(H.length)+u+H+X(P^4294967295);T+=k.substring(ea-8,k.length);break}T+=k.substring(ea-8,ea-4+oa);W(k,oa);W(k,4)}while(oa);return"data:image/png;base64,"+(window.btoa?btoa(T):Base64.encode(T,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var O=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(k,u){O.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);+mxSettings.save()};var F=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){F.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(k,u,H){var P=null;if(null!=H)return null;null!=k.editor.graph.getModel().getParent(u)?P=u.getId():null!=k.currentPage&&(P=k.currentPage.getId());return P});if(null!=window.StyleFormatPanel){var N=Format.prototype.init;Format.prototype.init=function(){N.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var R=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?R.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(k){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var c=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=-function(k){k=c.apply(this,arguments);var v=this.editorUi,H=v.editor.graph;if(H.isEnabled()){var P=v.getCurrentFile();null!=P&&P.isAutosaveOptional()&&k.appendChild(this.createOption(mxResources.get("autosave"),function(){return v.editor.autosave},function(W){v.editor.setAutosave(W);v.editor.autosave&&P.isModified()&&P.fileChanged()},{install:function(W){this.listener=function(){W(v.editor.autosave)};v.editor.addListener("autosaveChanged",this.listener)},destroy:function(){v.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&-H.isEnabled()&&"undefined"!==typeof MathJax){var T=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return H.mathEnabled},function(W){v.actions.get("mathematicalTypesetting").funct()},{install:function(W){this.listener=function(){W(H.mathEnabled)};v.addListener("mathEnabledChanged",this.listener)},destroy:function(){v.removeListener(this.listener)}});k.appendChild(T);(!v.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&T.appendChild(v.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting"))}return k};-mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1},{name:"footerSize",dispName:"Footer Size",type:"float",min:0,defVal:0},{name:"footerColor",dispName:"Footer Color",type:"color",defVal:null,primary:!0,isVisible:function(k,v){return 0<mxUtils.getValue(k.style,"footerSize",0)}}];mxCellRenderer.defaultShapes.ellipse.prototype.customProperties=-[{name:"centerRadius",dispName:"Center Radius",type:"float",min:0,defVal:0},{name:"centerColor",dispName:"Center Color",type:"color",defVal:null,primary:!0,isVisible:function(k,v){return 0<mxUtils.getValue(k.style,"centerRadius",0)}}];mxCellRenderer.defaultShapes.link.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,defVal:4}];mxCellRenderer.defaultShapes.zigzag.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:5,defVal:20}];mxCellRenderer.defaultShapes.flexArrow.prototype.customProperties=+function(k){k=c.apply(this,arguments);var u=this.editorUi,H=u.editor.graph;if(H.isEnabled()){var P=u.getCurrentFile();null!=P&&P.isAutosaveOptional()&&k.appendChild(this.createOption(mxResources.get("autosave"),function(){return u.editor.autosave},function(W){u.editor.setAutosave(W);u.editor.autosave&&P.isModified()&&P.fileChanged()},{install:function(W){this.listener=function(){W(u.editor.autosave)};u.editor.addListener("autosaveChanged",this.listener)},destroy:function(){u.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&+H.isEnabled()&&"undefined"!==typeof MathJax){var T=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return H.mathEnabled},function(W){u.actions.get("mathematicalTypesetting").funct()},{install:function(W){this.listener=function(){W(H.mathEnabled)};u.addListener("mathEnabledChanged",this.listener)},destroy:function(){u.removeListener(this.listener)}});k.appendChild(T);(!u.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&T.appendChild(u.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting"))}return k};+mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1},{name:"footerSize",dispName:"Footer Size",type:"float",min:0,defVal:0},{name:"footerColor",dispName:"Footer Color",type:"color",defVal:null,primary:!0,isVisible:function(k,u){return 0<mxUtils.getValue(k.style,"footerSize",0)}}];mxCellRenderer.defaultShapes.ellipse.prototype.customProperties=+[{name:"centerRadius",dispName:"Center Radius",type:"float",min:0,defVal:0},{name:"centerColor",dispName:"Center Color",type:"color",defVal:null,primary:!0,isVisible:function(k,u){return 0<mxUtils.getValue(k.style,"centerRadius",0)}}];mxCellRenderer.defaultShapes.link.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,defVal:4}];mxCellRenderer.defaultShapes.zigzag.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:5,defVal:20}];mxCellRenderer.defaultShapes.flexArrow.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,defVal:10},{name:"startWidth",dispName:"Start Width",type:"float",min:0,defVal:20},{name:"endWidth",dispName:"End Width",type:"float",min:0,defVal:20}];mxCellRenderer.defaultShapes.process.prototype.customProperties=[{name:"size",dispName:"Indent",type:"float",min:0,max:.5,defVal:.1}];mxCellRenderer.defaultShapes.rhombus.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,max:50,defVal:mxConstants.LINE_ARCSIZE},{name:"double",dispName:"Double",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.partialRectangle.prototype.customProperties=[{name:"top",dispName:"Top Line",type:"bool",defVal:!0},{name:"bottom",dispName:"Bottom Line",type:"bool",defVal:!0},{name:"left",dispName:"Left Line",type:"bool",defVal:!0},{name:"right",dispName:"Right Line",type:"bool",defVal:!0}];mxCellRenderer.defaultShapes.parallelogram.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"size",dispName:"Slope Angle",type:"float",min:0,max:1,defVal:.2,isVisible:function(k){return"0"==mxUtils.getValue(k.style,"fixedSize","0")}},{name:"size",dispName:"Slope Angle",type:"float",min:0,defVal:20,isVisible:function(k){return"1"==mxUtils.getValue(k.style,"fixedSize","0")}}];mxCellRenderer.defaultShapes.hexagon.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"size",dispName:"Slope Angle",type:"float",min:0,max:1,@@ -3964,12 +3965,12 @@ dispName:"Dark Opacity",type:"float",min:-1,max:1,defVal:0},{name:"darkOpacity2"{name:"size",dispName:"Callout Length",type:"float",min:0,defVal:30},{name:"position",dispName:"Callout Position",type:"float",min:0,max:1,defVal:.5},{name:"position2",dispName:"Callout Tip Position",type:"float",min:0,max:1,defVal:.5}];mxCellRenderer.defaultShapes.wedgeCallout.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"tipX",dispName:"Tip X",type:"float",min:-100,max:100,defVal:-.25},{name:"tipY",dispName:"Tip Y",type:"float",min:-100,max:100,defVal:1},{name:"base",dispName:"Callout Width",type:"float",min:0,defVal:20}];mxCellRenderer.defaultShapes.folder.prototype.customProperties=[{name:"tabWidth",dispName:"Tab Width",type:"float"},{name:"tabHeight",dispName:"Tab Height",type:"float"},{name:"tabPosition",dispName:"Tap Position",type:"enum",enumList:[{val:"left",dispName:"Left"},{val:"right",dispName:"Right"}]},{name:"boundedLbl",dispName:"Bounded Label",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.swimlane.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:15},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1},{name:"startSize",dispName:"Header Size",type:"float"},{name:"footerSize",dispName:"Footer Size",type:"float",min:0,defVal:0},{name:"swimlaneHead",dispName:"Head Border",type:"bool",defVal:!0},{name:"swimlaneBody",dispName:"Body Border",type:"bool",defVal:!0},{name:"horizontal",dispName:"Horizontal",type:"bool",defVal:!0},{name:"separatorColor",dispName:"Separator Color",-type:"color",defVal:null},{name:"fixedHeader",dispName:"Fixed Header",type:"bool",defVal:!0,getDefaultValue:function(k,v){k=mxCellRenderer.defaultShapes[mxUtils.getValue(k.style,"shape","")];return null!=k&&null!=k.prototype.fixedHeaderDefault?k.prototype.fixedHeaderDefault?"1":"0":"1"}}];mxCellRenderer.defaultShapes.table.prototype.customProperties=[{name:"rowLines",dispName:"Row Lines",type:"bool",defVal:!0},{name:"columnLines",dispName:"Column Lines",type:"bool",defVal:!0},{name:"fixedRows",dispName:"Fixed Rows",+type:"color",defVal:null},{name:"fixedHeader",dispName:"Fixed Header",type:"bool",defVal:!0,getDefaultValue:function(k,u){k=mxCellRenderer.defaultShapes[mxUtils.getValue(k.style,"shape","")];return null!=k&&null!=k.prototype.fixedHeaderDefault?k.prototype.fixedHeaderDefault?"1":"0":"1"}}];mxCellRenderer.defaultShapes.table.prototype.customProperties=[{name:"rowLines",dispName:"Row Lines",type:"bool",defVal:!0},{name:"columnLines",dispName:"Column Lines",type:"bool",defVal:!0},{name:"fixedRows",dispName:"Fixed Rows",type:"bool",defVal:!1},{name:"resizeLast",dispName:"Resize Last Column",type:"bool",defVal:!1},{name:"resizeLastRow",dispName:"Resize Last Row",type:"bool",defVal:!1}].concat(mxCellRenderer.defaultShapes.swimlane.prototype.customProperties).concat(mxCellRenderer.defaultShapes.partialRectangle.prototype.customProperties);mxCellRenderer.defaultShapes.tableRow.prototype.customProperties=mxCellRenderer.defaultShapes.swimlane.prototype.customProperties.concat(mxCellRenderer.defaultShapes.partialRectangle.prototype.customProperties);mxCellRenderer.defaultShapes.doubleEllipse.prototype.customProperties=[{name:"margin",dispName:"Indent",type:"float",min:0,defVal:4}];mxCellRenderer.defaultShapes.ext.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:15},{name:"double",dispName:"Double",type:"bool",defVal:!1},{name:"margin",dispName:"Indent",type:"float",min:0,defVal:0}];mxCellRenderer.defaultShapes.curlyBracket.prototype.customProperties=[{name:"rounded",dispName:"Rounded",type:"bool",defVal:!0},{name:"size",dispName:"Size",type:"float",min:0,max:1,defVal:.5}];mxCellRenderer.defaultShapes.image.prototype.customProperties=[{name:"imageAspect",dispName:"Fixed Image Aspect",type:"bool",defVal:!0}];mxCellRenderer.defaultShapes.label.prototype.customProperties=[{name:"imageAspect",dispName:"Fixed Image Aspect",type:"bool",defVal:!0},{name:"imageAlign",dispName:"Image Align",type:"enum",enumList:[{val:"left",dispName:"Left"},{val:"center",dispName:"Center"},{val:"right",dispName:"Right"}],defVal:"left"},{name:"imageVerticalAlign",dispName:"Image Vertical Align",type:"enum",enumList:[{val:"top",dispName:"Top"},{val:"middle",dispName:"Middle"},{val:"bottom",dispName:"Bottom"}],defVal:"middle"},{name:"imageWidth",dispName:"Image Width",type:"float",min:0,defVal:24},{name:"imageHeight",dispName:"Image Height",type:"float",min:0,defVal:24},{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:12},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1},{name:"footerSize",dispName:"Footer Size",-type:"float",min:0,defVal:0},{name:"footerColor",dispName:"Footer Color",type:"color",defVal:null,primary:!0,isVisible:function(k,v){return 0<mxUtils.getValue(k.style,"footerSize",0)}}];mxCellRenderer.defaultShapes.dataStorage.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:0,max:1,defVal:.1}];mxCellRenderer.defaultShapes.manualInput.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:0,defVal:30},{name:"arcSize",dispName:"Arc Size",type:"float",min:0,+type:"float",min:0,defVal:0},{name:"footerColor",dispName:"Footer Color",type:"color",defVal:null,primary:!0,isVisible:function(k,u){return 0<mxUtils.getValue(k.style,"footerSize",0)}}];mxCellRenderer.defaultShapes.dataStorage.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:0,max:1,defVal:.1}];mxCellRenderer.defaultShapes.manualInput.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:0,defVal:30},{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:20},{name:"boundedLbl",dispName:"Bounded Label",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.loopLimit.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:0,defVal:20},{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:20}];mxCellRenderer.defaultShapes.offPageConnector.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:0,defVal:38},{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:20}];mxCellRenderer.defaultShapes.display.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:0,max:1,defVal:.25}];mxCellRenderer.defaultShapes.singleArrow.prototype.customProperties=[{name:"arrowWidth",dispName:"Arrow Width",type:"float",min:0,max:1,defVal:.3},{name:"arrowSize",dispName:"Arrowhead Length",type:"float",min:0,max:1,defVal:.2}];mxCellRenderer.defaultShapes.doubleArrow.prototype.customProperties=[{name:"arrowWidth",dispName:"Arrow Width",type:"float",min:0,max:1,defVal:.3},{name:"arrowSize",dispName:"Arrowhead Length",type:"float",min:0,max:1,defVal:.2}];mxCellRenderer.defaultShapes.cross.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:0,max:1,defVal:.2}];mxCellRenderer.defaultShapes.corner.prototype.customProperties=[{name:"dx",dispName:"Width1",type:"float",min:0,defVal:20},{name:"dy",dispName:"Width2",type:"float",min:0,defVal:20}];mxCellRenderer.defaultShapes.tee.prototype.customProperties=[{name:"dx",dispName:"Width1",type:"float",min:0,defVal:20},{name:"dy",dispName:"Width2",type:"float",min:0,@@ -3979,7 +3980,7 @@ font:"#ffffff"},{fill:"#008a00",stroke:"#005700",font:"#ffffff"},{fill:"#1ba1e2"{fill:"#6d8764",stroke:"#3A5431",font:"#ffffff"},{fill:"#647687",stroke:"#314354",font:"#ffffff"},{fill:"#76608a",stroke:"#432D57",font:"#ffffff"},{fill:"#a0522d",stroke:"#6D1F00",font:"#ffffff"}],[{fill:"",stroke:""},{fill:mxConstants.NONE,stroke:""},{fill:"#fad7ac",stroke:"#b46504"},{fill:"#fad9d5",stroke:"#ae4132"},{fill:"#b0e3e6",stroke:"#0e8088"},{fill:"#b1ddf0",stroke:"#10739e"},{fill:"#d0cee2",stroke:"#56517e"},{fill:"#bac8d3",stroke:"#23445d"}],[{fill:"",stroke:""},{fill:"#f5f5f5",stroke:"#666666",gradient:"#b3b3b3"},{fill:"#dae8fc",stroke:"#6c8ebf",gradient:"#7ea6e0"},{fill:"#d5e8d4",stroke:"#82b366",gradient:"#97d077"},{fill:"#ffcd28",stroke:"#d79b00",gradient:"#ffa500"},{fill:"#fff2cc",stroke:"#d6b656",gradient:"#ffd966"},{fill:"#f8cecc",stroke:"#b85450",gradient:"#ea6b66"},{fill:"#e6d0de",stroke:"#996185",gradient:"#d5739d"}],[{fill:"",stroke:""},{fill:"#eeeeee",stroke:"#36393d"},{fill:"#f9f7ed",stroke:"#36393d"},{fill:"#ffcc99",stroke:"#36393d"},{fill:"#cce5ff",stroke:"#36393d"},{fill:"#ffff88",stroke:"#36393d"},{fill:"#cdeb8b",stroke:"#36393d"},{fill:"#ffcccc",stroke:"#36393d"}]];StyleFormatPanel.prototype.customColorSchemes=null;var f=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init=function(){var k=this.editorUi.getSelectionState();null!=this.defaultColorSchemes&&0<this.defaultColorSchemes.length&&0<k.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));f.apply(this,arguments);null!=k.customProperties&&this.container.appendChild(this.addProperties(this.createPanel(),-k.customProperties,k))};var l=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(k){var v=this.editorUi.getSelectionState();1==v.cells.length?this.addActions(k,["copyStyle","pasteStyle"]):1<=v.cells.length&&this.addActions(k,["pasteStyle","pasteData"]);l.apply(this,arguments);return k};EditorUi.prototype.propertiesCollapsed=!0;BaseFormatPanel.prototype.addProperties=function(k,v,H,P){function T(Oa,Fa,Aa,Ja,Ia){if(null!=Aa.valueChanged)Aa.valueChanged(Fa,Ia,H,ca);+k.customProperties,k))};var l=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(k){var u=this.editorUi.getSelectionState();1==u.cells.length?this.addActions(k,["copyStyle","pasteStyle"]):1<=u.cells.length&&this.addActions(k,["pasteStyle","pasteData"]);l.apply(this,arguments);return k};EditorUi.prototype.propertiesCollapsed=!0;BaseFormatPanel.prototype.addProperties=function(k,u,H,P){function T(Oa,Fa,Aa,Ja,Ia){if(null!=Aa.valueChanged)Aa.valueChanged(Fa,Ia,H,ca);else{ta.getModel().beginUpdate();try{Ia=[];var Sa=[];if(null!=Aa.index){for(var ab=[],Va=Aa.parentRow.nextSibling;Va&&Va.getAttribute("data-pName")==Oa;)ab.push(Va.getAttribute("data-pValue")),Va=Va.nextSibling;Aa.index<ab.length?null!=Ja?ab.splice(Ja,1):ab[Aa.index]=Fa:ab.push(Fa);null!=Aa.size&&ab.length>Aa.size&&(ab=ab.slice(0,Aa.size));Fa=ab.join(",");null!=Aa.countProperty&&(ta.setCellStyles(Aa.countProperty,ab.length,ta.getSelectionCells()),Ia.push(Aa.countProperty),Sa.push(ab.length))}ta.setCellStyles(Oa,Fa,ta.getSelectionCells());Ia.push(Oa);Sa.push(Fa);if(null!=Aa.dependentProps)for(Oa=0;Oa<Aa.dependentProps.length;Oa++){var db=Aa.dependentPropsDefVal[Oa],Ea=Aa.dependentPropsVals[Oa];if(Ea.length>Fa)Ea=Ea.slice(0,Fa);else for(var $a=Ea.length;$a<Fa;$a++)Ea.push(db);Ea=Ea.join(",");ta.setCellStyles(Aa.dependentProps[Oa],Ea,ta.getSelectionCells());Ia.push(Aa.dependentProps[Oa]);Sa.push(Ea)}if("function"==typeof Aa.onChange)Aa.onChange(ta,Fa);ca.editorUi.fireEvent(new mxEventObject("styleChanged","keys",Ia,"values",Sa,"cells",ta.getSelectionCells()))}finally{ta.getModel().endUpdate()}}}function W(Oa,Fa){Fa.style.left="0px";Fa.style.top="0px";Fa.style.position="relative";Fa.style.right="0px";Fa.style.bottom="0px";Fa.style.width="100%";Fa.style.maxWidth="100%";Fa.style.maxHeight="100%";Fa.style.textAlign="left"}function ha(Oa,Fa,Aa){function Ja(Sa){if(null==Sa||Sa==mxConstants.NONE)Ia.style.background="url('"+Dialog.prototype.noColorImage+"')";else if("default"==Sa)Ia.style.background="";else{var ab=@@ -3998,12 +3999,12 @@ xb?parseInt(rb):rb)+"")}catch(Fb){}T(Oa,Jb,Aa,null,wb)}var lb=mxEvent.getSource(rb.keyCode&&eb()});wb.focus();mxEvent.addListener(wb,"blur",function(){eb()})}}))}Aa.isDeletable&&(Ia=mxUtils.button("-",mxUtils.bind(ca,function(Za){T(Oa,"",Aa,Aa.index);mxEvent.consume(Za)})),Ia.style.height="16px",Ia.style.width="25px",Ia.style.float="right",Ia.className="geColorBtn",db.appendChild(Ia));Va.appendChild(db);return Va}var ca=this,ta=this.editorUi.editor.graph,xa=[],qa=document.createElement("table");qa.className="geProperties geFullWidthElement";var Ba=document.createElement("tr");Ba.className="gePropHeader";var na=document.createElement("th");na.className="gePropHeaderCell";na.style.paddingLeft="16px";na.style.backgroundRepeat="no-repeat";na.style.backgroundPosition="-2px 50%";na.style.backgroundSize="20px";mxUtils.write(na,mxResources.get("property"));Ba.style.cursor="pointer";var ra=function(){var Oa=qa.querySelectorAll(".gePropNonHeaderRow");if(ca.editorUi.propertiesCollapsed){na.style.backgroundImage="url('"+Editor.arrowRightImage+"')";var Fa="none";for(var Aa=k.childNodes.length-1;0<=Aa;Aa--)try{var Ja=k.childNodes[Aa],Ia=Ja.nodeName.toUpperCase();"INPUT"!=Ia&&"SELECT"!=Ia||k.removeChild(Ja)}catch(Sa){}}else na.style.backgroundImage="url('"+Editor.arrowDownImage+"')",Fa="";for(Aa=0;Aa<Oa.length;Aa++)Oa[Aa].style.display=Fa};mxEvent.addListener(Ba,"click",function(){ca.editorUi.propertiesCollapsed=!ca.editorUi.propertiesCollapsed;ra()});Ba.appendChild(na);var va=document.createElement("th");va.className="gePropHeaderCell";va.style.paddingLeft="4px";mxUtils.write(va,mxResources.get("value"));-Ba.appendChild(va);qa.appendChild(Ba);var Ha=va=!1;Ba=null;1==H.vertices.length&&0==H.edges.length?Ba=H.vertices[0].id:0==H.vertices.length&&1==H.edges.length&&(Ba=H.edges[0].id);null==Ba||P||(qa.appendChild(la("id",mxUtils.htmlEntities(Ba),{dispName:"id",type:"readOnly"},!0,!1)),null!=H.style&&null!=H.style.shape&&qa.appendChild(la("shape",mxUtils.htmlEntities(H.style.shape),{dispName:"shape",type:"readOnly"},!0,!1)));for(var La in v)if(P=v[La],("function"!=typeof P.isVisible||P.isVisible(H,this))&&-!P.primary){var Ga=null!=P.getValue?P.getValue(H,this):null!=H.style[La]?mxUtils.htmlEntities(H.style[La]+""):null!=P.getDefaultValue?P.getDefaultValue(H,this):P.defVal;if("separator"==P.type)Ha=!Ha;else{if("staticArr"==P.type)P.size=parseInt(H.style[P.sizeProperty]||v[P.sizeProperty].defVal)||0;else if(null!=P.dependentProps){var Da=P.dependentProps,Qa=[],Ka=[];for(Ba=0;Ba<Da.length;Ba++)if(null!=v[Da[Ba]]){var Na=H.style[Da[Ba]];Ka.push(v[Da[Ba]].subDefVal);Qa.push(null!=Na?Na.split(","):[])}P.dependentPropsDefVal=-Ka;P.dependentPropsVals=Qa}qa.appendChild(la(La,Ga,P,va,Ha));va=!va}}for(Ba=0;Ba<xa.length;Ba++)for(P=xa[Ba],v=P.parentRow,La=0;La<P.values.length;La++)va=la(P.name,P.values[La],{type:P.type,parentRow:P.parentRow,isDeletable:P.isDeletable,index:La,defVal:P.defVal,countProperty:P.countProperty,size:P.size},0==La%2,P.flipBkg),v.parentNode.insertBefore(va,v.nextSibling),v=va;k.appendChild(qa);ra();return k};StyleFormatPanel.prototype.addStyles=function(k){if(null!=this.defaultColorSchemes){var v=this.editorUi,-H=v.editor.graph,P=document.createElement("div");P.style.padding="6px 20px 0 24px";k.appendChild(P);var T=document.createElement("div");T.className="geSwitcher";T.style.padding="4px 18px 6px 0px";for(var W=[],ha=0;ha<this.defaultColorSchemes.length;ha++){var X=document.createElement("div");X.className="geSwitcherDot";mxUtils.bind(this,function(ta){mxEvent.addListener(X,"click",mxUtils.bind(this,function(){ea(ta)}))})(ha);W.push(X);T.appendChild(X)}var ea=mxUtils.bind(this,function(ta){null!=W[ta]&&+Ba.appendChild(va);qa.appendChild(Ba);var Ha=va=!1;Ba=null;1==H.vertices.length&&0==H.edges.length?Ba=H.vertices[0].id:0==H.vertices.length&&1==H.edges.length&&(Ba=H.edges[0].id);null==Ba||P||(qa.appendChild(la("id",mxUtils.htmlEntities(Ba),{dispName:"id",type:"readOnly"},!0,!1)),null!=H.style&&null!=H.style.shape&&qa.appendChild(la("shape",mxUtils.htmlEntities(H.style.shape),{dispName:"shape",type:"readOnly"},!0,!1)));for(var La in u)if(P=u[La],("function"!=typeof P.isVisible||P.isVisible(H,this))&&+!P.primary){var Ga=null!=P.getValue?P.getValue(H,this):null!=H.style[La]?mxUtils.htmlEntities(H.style[La]+""):null!=P.getDefaultValue?P.getDefaultValue(H,this):P.defVal;if("separator"==P.type)Ha=!Ha;else{if("staticArr"==P.type)P.size=parseInt(H.style[P.sizeProperty]||u[P.sizeProperty].defVal)||0;else if(null!=P.dependentProps){var Da=P.dependentProps,Qa=[],Ka=[];for(Ba=0;Ba<Da.length;Ba++)if(null!=u[Da[Ba]]){var Na=H.style[Da[Ba]];Ka.push(u[Da[Ba]].subDefVal);Qa.push(null!=Na?Na.split(","):[])}P.dependentPropsDefVal=+Ka;P.dependentPropsVals=Qa}qa.appendChild(la(La,Ga,P,va,Ha));va=!va}}for(Ba=0;Ba<xa.length;Ba++)for(P=xa[Ba],u=P.parentRow,La=0;La<P.values.length;La++)va=la(P.name,P.values[La],{type:P.type,parentRow:P.parentRow,isDeletable:P.isDeletable,index:La,defVal:P.defVal,countProperty:P.countProperty,size:P.size},0==La%2,P.flipBkg),u.parentNode.insertBefore(va,u.nextSibling),u=va;k.appendChild(qa);ra();return k};StyleFormatPanel.prototype.addStyles=function(k){if(null!=this.defaultColorSchemes){var u=this.editorUi,+H=u.editor.graph,P=document.createElement("div");P.style.padding="6px 20px 0 24px";k.appendChild(P);var T=document.createElement("div");T.className="geSwitcher";T.style.padding="4px 18px 6px 0px";for(var W=[],ha=0;ha<this.defaultColorSchemes.length;ha++){var X=document.createElement("div");X.className="geSwitcherDot";mxUtils.bind(this,function(ta){mxEvent.addListener(X,"click",mxUtils.bind(this,function(){ea(ta)}))})(ha);W.push(X);T.appendChild(X)}var ea=mxUtils.bind(this,function(ta){null!=W[ta]&&(null!=this.format.currentScheme&&null!=W[this.format.currentScheme]&&(W[this.format.currentScheme].style.background="transparent"),this.format.currentScheme=ta,oa(this.defaultColorSchemes[this.format.currentScheme]),W[this.format.currentScheme].style.background="#84d7ff")}),oa=mxUtils.bind(this,function(ta){var xa=mxUtils.clone(H.defaultVertexStyle);xa[mxConstants.STYLE_STROKECOLOR]=null!=xa[mxConstants.STYLE_STROKECOLOR]?xa[mxConstants.STYLE_STROKECOLOR]:"default";xa[mxConstants.STYLE_FILLCOLOR]=-null!=xa[mxConstants.STYLE_FILLCOLOR]?xa[mxConstants.STYLE_FILLCOLOR]:"default";xa[mxConstants.STYLE_FONTCOLOR]=null!=xa[mxConstants.STYLE_FONTCOLOR]?xa[mxConstants.STYLE_FONTCOLOR]:"default";H.replaceDefaultColors(new mxCell,xa);var qa=mxUtils.bind(this,function(na){var ra=mxUtils.button("",mxUtils.bind(this,function(La){H.getModel().beginUpdate();try{for(var Ga=v.getSelectionState().cells,Da=H.getModel(),Qa=[],Ka=0<Ga.length,Na=0;Na<Ga.length;Na++){var Oa=Da.isVertex(Ga[Na])&&Da.isEdge(Da.getParent(Ga[Na])),+null!=xa[mxConstants.STYLE_FILLCOLOR]?xa[mxConstants.STYLE_FILLCOLOR]:"default";xa[mxConstants.STYLE_FONTCOLOR]=null!=xa[mxConstants.STYLE_FONTCOLOR]?xa[mxConstants.STYLE_FONTCOLOR]:"default";H.replaceDefaultColors(new mxCell,xa);var qa=mxUtils.bind(this,function(na){var ra=mxUtils.button("",mxUtils.bind(this,function(La){H.getModel().beginUpdate();try{for(var Ga=u.getSelectionState().cells,Da=H.getModel(),Qa=[],Ka=0<Ga.length,Na=0;Na<Ga.length;Na++){var Oa=Da.isVertex(Ga[Na])&&Da.isEdge(Da.getParent(Ga[Na])),Fa=H.getCellStyle(Ga[Na]),Aa=null!=Fa&&"image"==Fa.shape,Ja=H.getCellGeometry(Ga[Na]);Qa.push({isLabel:Aa||Oa&&(null==Ja||0>=Ja.width||0>=Ja.height)});Oa||Aa||(Ka=!1)}for(Na=0;Na<Ga.length;Na++){var Ia=Qa[Na];if(Ka||!Ia.isLabel){var Sa=Ia.isLabel?mxConstants.STYLE_LABEL_BACKGROUNDCOLOR:mxConstants.STYLE_FILLCOLOR,ab=Ia.isLabel?mxConstants.STYLE_LABEL_BORDERCOLOR:mxConstants.STYLE_STROKECOLOR,Va=Da.getStyle(Ga[Na]);null!=Va&&"string"!==typeof Va&&(Va=String(Va));null!=na?(mxEvent.isShiftDown(La)||(Va=""==na.fill||null==na.fill?mxUtils.setStyle(Va,Sa,null):mxUtils.setStyle(Va,Sa,na.fill),Ia.isLabel||(Va=""==na.gradient||null==na.gradient?mxUtils.setStyle(Va,mxConstants.STYLE_GRADIENTCOLOR,null):mxUtils.setStyle(Va,mxConstants.STYLE_GRADIENTCOLOR,na.gradient)),mxEvent.isControlDown(La)||mxClient.IS_MAC&&mxEvent.isMetaDown(La)||!Da.isVertex(Ga[Na])||(Va=""==na.font||null==na.font?mxUtils.setStyle(Va,mxConstants.STYLE_FONTCOLOR,null):mxUtils.setStyle(Va,mxConstants.STYLE_FONTCOLOR,na.font))),mxEvent.isAltDown(La)||(Va=""==na.stroke||null==na.stroke?mxUtils.setStyle(Va,ab,null):mxUtils.setStyle(Va,ab,na.stroke))):(Va=mxUtils.setStyle(Va,Sa,null),Va=mxUtils.setStyle(Va,ab,null),Ia.isLabel||(Va=mxUtils.setStyle(Va,mxConstants.STYLE_GRADIENTCOLOR,null)),Da.isVertex(Ga[Na])&&(Va=mxUtils.setStyle(Va,mxConstants.STYLE_FONTCOLOR,null)));Da.setStyle(Ga[Na],Va)}}}finally{H.getModel().endUpdate()}}));ra.className="geStyleButton";ra.style.width="36px";ra.style.height=10>=this.defaultColorSchemes.length?@@ -4013,128 +4014,129 @@ ra.style.borderRightColor);null!=na.title&&ra.setAttribute("title",na.title)}elsmxUtils.getLightDarkColor(na.gradient).light+") 100%)",va.style.clipPath="polygon(0 100%, 100% 0, 100% 100%)",va.style.backgroundColor="transparent",P.appendChild(va),va.style.marginLeft="-42px",mxEvent.addListener(va,"click",function(){ra.click()}))});P.innerText="";if(null!=ta)for(var Ba=0;Ba<ta.length;Ba++)0<Ba&&0==mxUtils.mod(Ba,4)&&mxUtils.br(P),qa(ta[Ba])});null==this.format.currentScheme?ea(Math.min(W.length-1,Editor.isDarkMode()?1:"1"==urlParams.sketch?5:0)):ea(this.format.currentScheme);ha=10>=this.defaultColorSchemes.length?43:23;var la=document.createElement("div");la.className="geButton";la.style.cssText="position:absolute;left:0px;bottom:"+ha+"px;width:20px;background-image:url("+Editor.chevronLeftImage+");";mxEvent.addListener(la,"click",mxUtils.bind(this,function(){ea(mxUtils.mod(this.format.currentScheme-1,this.defaultColorSchemes.length))}));var ca=document.createElement("div");ca.className="geButton";ca.style.cssText="position:absolute;left:186px;bottom:"+ha+"px;width:20px;background-image:url("+Editor.chevronRightImage+");";1<this.defaultColorSchemes.length&&(k.appendChild(la),k.appendChild(ca));mxEvent.addListener(ca,"click",mxUtils.bind(this,function(){ea(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));oa(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&k.appendChild(T)}return k}}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=Object.create(null);Graph.isGoogleFontUrl=function(k){return k.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS||k.substring(0,Editor.GOOGLE_FONTS_CSS2.length)==Editor.GOOGLE_FONTS_CSS2};Graph.isCssFontUrl=function(k){return Graph.isGoogleFontUrl(k)};Graph.rewriteGoogleFontUrl=function(k){null!=k&&k.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS&&(k=Editor.GOOGLE_FONTS_CSS2+-k.substring(Editor.GOOGLE_FONTS.length)+":wght@400;500");return k};Graph.escapeCssString=function(k){return null!=k?String(k).replace(/[\x00-\x1f\x7f"\\]/g,function(v){return"\\"+v.charCodeAt(0).toString(16)+" "}):k};Graph.createFontElement=function(k,v){var H=Graph.fontMapping[v];null==H&&Graph.isCssFontUrl(v)?(k=document.createElement("link"),k.setAttribute("rel","stylesheet"),k.setAttribute("type","text/css"),k.setAttribute("charset","UTF-8"),k.setAttribute("href",Graph.rewriteGoogleFontUrl(v))):-(null==H&&(H='@font-face {\nfont-family: "'+Graph.escapeCssString(k)+'";\nsrc: url("'+Graph.escapeCssString(v)+'");\n}'),k=document.createElement("style"),mxUtils.write(k,H));return k};Graph.addRecentCustomFont=function(k,v){};Graph.addFont=function(k,v,H,P){if(null!=k&&0<k.length&&null!=v&&0<v.length){P=null!=P?P:Graph.customFontElements;var T=k.toLowerCase();if("helvetica"!=T&&"arial"!=k&&"sans-serif"!=T){var W=P[T];null!=W&&W.url!=v&&(null!=W.elt.parentNode&&W.elt.parentNode.removeChild(W.elt),-W=null);null==W?(W=v,"http:"==v.substring(0,5)&&(W=PROXY_URL+"?url="+encodeURIComponent(v)),W={name:k,url:v,elt:Graph.createFontElement(k,W)},P[T]=W,v=P==Graph.customFontElements?document.getElementsByTagName("head")[0]:null,null!=H&&("link"==W.elt.nodeName.toLowerCase()?(W.elt.onload=H,W.elt.onerror=H):H()),null!=v&&v.appendChild(W.elt)):null!=H&&H()}else null!=H&&H()}else null!=H&&H();return k};Graph.getFontUrl=function(k,v){k=Graph.customFontElements[k.toLowerCase()];null!=k&&(v=k.url);return v};-Graph.processFontAttributes=function(k){k=k.getElementsByTagName("*");for(var v=0;v<k.length;v++){var H=k[v].getAttribute("data-font-src");if(null!=H){var P="FONT"==k[v].nodeName.toUpperCase()?k[v].getAttribute("face"):k[v].style.fontFamily;null!=P&&Graph.addFont(P,H)}}};Graph.processFontStyle=function(k){if(null!=k){var v=mxUtils.getValue(k,"fontSource",null);if(null!=v){var H=mxUtils.getValue(k,mxConstants.STYLE_FONTFAMILY,null);if(null!=H)try{Graph.addFont(H,decodeURIComponent(v))}catch(P){}}}return k};-Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible="0"!=urlParams.pv;mxConnectionHandler.prototype.createTarget="1"==urlParams.sketch;Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;-var q=Graph.prototype.init;Graph.prototype.init=function(){function k(T){v=T}q.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var v=null;mxEvent.addListener(this.container,"mouseenter",k);mxEvent.addListener(this.container,"mousemove",k);mxEvent.addListener(this.container,"mouseleave",function(T){v=null});this.isMouseInsertPoint=function(){return null!=v};var H=this.getInsertPoint;this.getInsertPoint=function(T){return null==v||T?H.apply(this,arguments):-this.getPointForEvent(v)};var P=this.layoutManager.getLayout;this.layoutManager.getLayout=function(T){var W=this.graph.getCellStyle(T);if(null!=W&&"rack"==W.childLayout){var ha=new mxStackLayout(this.graph,!1);ha.gridSize=null!=W.rackUnitSize?parseFloat(W.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;ha.marginLeft=W.marginLeft||0;ha.marginRight=W.marginRight||0;ha.marginTop=W.marginTop||0;ha.marginBottom=W.marginBottom||0;ha.allowGaps=W.allowGaps||0;ha.horizontal=-"1"==mxUtils.getValue(W,"horizontalRack","0");ha.resizeParent=!1;ha.fill=!0;return ha}return P.apply(this,arguments)};this.updateGlobalUrlVariables()};var x=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(k,v){return Graph.processFontStyle(x.apply(this,arguments))};var A=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(k,v,H,P,T,W,ha,X,ea,oa,la,ca){A.apply(this,arguments);Graph.processFontAttributes(ca)};var E=mxText.prototype.redraw;-mxText.prototype.redraw=function(){E.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(k,v,H,P){function T(){for(var Ba=X.getSelectionCells(),na=[],ra=0;ra<Ba.length;ra++)X.isCellVisible(Ba[ra])&&na.push(Ba[ra]);X.setSelectionCells(na)}function W(Ba){X.setHiddenTags(Ba?[]:ea.slice());T();X.refresh()}function ha(Ba,na){la.innerText="";if(0<Ba.length){var ra=document.createElement("table");ra.setAttribute("cellpadding",-"2");ra.style.boxSizing="border-box";ra.style.tableLayout="fixed";ra.style.width="100%";var va=document.createElement("tbody");if(null!=Ba&&0<Ba.length)for(var Ha=0;Ha<Ba.length;Ha++)(function(La){function Ga(){var Fa=X.getCellsForTags([La],null,null,!0);X.isEnabled()?X.setSelectionCells(Fa):X.highlightCells(Fa,null,null,70)}var Da=0>mxUtils.indexOf(X.hiddenTags,La),Qa=document.createElement("tr"),Ka=document.createElement("td");Ka.style.align="center";Ka.style.width="16px";var Na=document.createElement("img");-Na.setAttribute("src",Da?Editor.visibleImage:Editor.hiddenImage);Na.setAttribute("title",mxResources.get(Da?"hideIt":"show",[La])+"\n"+mxResources.get("shiftClickShowOnly",[La]));mxUtils.setOpacity(Na,Da?75:25);Na.className="geAdaptiveAsset";Na.style.verticalAlign="middle";Na.style.cursor="pointer";Na.style.width="16px";if(v||Editor.isDarkMode())Na.style.filter="invert(100%)";Ka.appendChild(Na);mxEvent.addListener(Na,"click",function(Fa){if(mxEvent.isShiftDown(Fa)){for(var Aa=[],Ja=0;Ja<ea.length;Ja++)ea[Ja]!==-La&&Aa.push(ea[Ja]);var Ia=0<Aa.length;for(Ja=0;Ja<Aa.length;Ja++)if(0>mxUtils.indexOf(X.hiddenTags,Aa[Ja])){Ia=!1;break}Ia&&0>mxUtils.indexOf(X.hiddenTags,La)?X.setHiddenTags([]):X.setHiddenTags(Aa)}else X.toggleHiddenTag(La);T();X.refresh();mxEvent.consume(Fa)});Qa.appendChild(Ka);Ka=document.createElement("td");Ka.style.align="center";Ka.style.width="16px";Na=document.createElement("img");Na.setAttribute("src",Editor.selectImage);Na.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(Na,-Da?75:25);Na.className="geAdaptiveAsset";Na.style.verticalAlign="middle";Na.style.cursor="pointer";Na.style.width="16px";if(v||Editor.isDarkMode())Na.style.filter="invert(100%)";mxEvent.addListener(Na,"click",function(Fa){W(!0);Ga();mxEvent.consume(Fa)});Ka.appendChild(Na);Qa.appendChild(Ka);Ka=document.createElement("td");Ka.style.overflow="hidden";Ka.style.whiteSpace="nowrap";Ka.style.textOverflow="ellipsis";Ka.style.verticalAlign="middle";Ka.style.cursor="pointer";Ka.setAttribute("title",La);a=-document.createElement("a");mxUtils.write(a,La);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,Da?100:40);Ka.appendChild(a);mxEvent.addListener(Ka,"click",function(Fa){if(mxEvent.isShiftDown(Fa))W(!0),Ga();else if(Da&&0<X.hiddenTags.length)W(!0);else{var Aa=ea.slice(),Ja=mxUtils.indexOf(Aa,La);Aa.splice(Ja,1);X.setHiddenTags(Aa);T();X.refresh()}mxEvent.consume(Fa)});Qa.appendChild(Ka);if(X.isEnabled()){Ka=document.createElement("td");Ka.style.verticalAlign="middle";-Ka.style.textAlign="center";Ka.style.width="18px";if(null==na){Ka.style.align="center";Ka.style.width="16px";Na=document.createElement("img");Na.setAttribute("src",Editor.trashImage);Na.setAttribute("title",mxResources.get("removeIt",[La]));mxUtils.setOpacity(Na,Da?75:25);Na.className="geAdaptiveAsset";Na.style.verticalAlign="middle";Na.style.cursor="pointer";Na.style.width="16px";if(v||Editor.isDarkMode())Na.style.filter="invert(100%)";mxEvent.addListener(Na,"click",function(Fa){var Aa=mxUtils.indexOf(ea,-La);0<=Aa&&ea.splice(Aa,1);X.removeTagsForCells(X.model.getDescendants(X.model.getRoot()),[La]);X.refresh();mxEvent.consume(Fa)});Ka.appendChild(Na)}else{var Oa=document.createElement("input");Oa.setAttribute("type","checkbox");Oa.style.margin="0px";Oa.defaultChecked=null!=na&&0<=mxUtils.indexOf(na,La);Oa.checked=Oa.defaultChecked;Oa.style.background="transparent";Oa.setAttribute("title",mxResources.get(Oa.defaultChecked?"removeIt":"add",[La]));mxEvent.addListener(Oa,"change",function(Fa){Oa.checked?-X.addTagsForCells(X.getSelectionCells(),[La]):X.removeTagsForCells(X.getSelectionCells(),[La]);mxEvent.consume(Fa)});Ka.appendChild(Oa)}Qa.appendChild(Ka)}va.appendChild(Qa)})(Ba[Ha]);ra.appendChild(va);la.appendChild(ra)}}var X=this,ea=X.hiddenTags.slice(),oa=document.createElement("div");oa.style.userSelect="none";oa.style.overflow="hidden";oa.style.padding="10px";oa.style.height="100%";var la=document.createElement("div");la.style.position="absolute";la.style.boxSizing="border-box";la.style.userSelect=-"none";la.style.overflow="auto";la.style.padding="3px";la.style.left="0px";la.style.right="0px";la.style.top="0px";la.style.bottom="0px";oa.appendChild(la);X.addListener(mxEvent.ROOT,function(){ea=X.hiddenTags.slice()});var ca=mxUtils.bind(this,function(Ba,na){if(k()){Ba=X.getAllTags();for(na=0;na<Ba.length;na++)0>mxUtils.indexOf(ea,Ba[na])&&ea.push(Ba[na]);ea.sort();X.isSelectionEmpty()?ha(ea):ha(ea,X.getCommonTagsForCells(X.getSelectionCells()))}});X.selectionModel.addListener(mxEvent.CHANGE,ca);-X.model.addListener(mxEvent.CHANGE,ca);X.addListener(mxEvent.REFRESH,ca);var ta=document.createElement("div");ta.className="geToolbarContainer geDialogToolbar";ta.style.position="absolute";ta.style.display="flex";ta.style.bottom="0px";ta.style.left="0px";ta.style.right="0px";ta.style.height="32px";ta.style.overflow="hidden";ta.style.padding="3px 4px 4px 4px";ta.style.borderWidth="1px 0px 0px 0px";ta.style.borderStyle="solid";ta.style.whiteSpace="nowrap";if(X.isEnabled()){la.style.bottom="32px";var xa=-document.createElement("a");xa.className="geButton";var qa=xa.cloneNode(!1);qa.style.backgroundImage="url("+Editor.visibleImage+")";qa.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(qa,"click",function(Ba){X.setHiddenTags([]);mxEvent.isShiftDown(Ba)||(ea=X.hiddenTags.slice());T();X.refresh();mxEvent.consume(Ba)});ta.appendChild(qa);null!=H&&(xa=xa.cloneNode(!1),xa.style.backgroundImage="url("+Editor.plusImage+")",xa.setAttribute("title",mxResources.get("add")),mxEvent.addListener(xa,-"click",function(Ba){H(ea,function(na){ea=na;ca()});mxEvent.consume(Ba)}),ta.appendChild(xa));oa.appendChild(ta)}null!=P&&ta.appendChild(P);return{div:oa,refresh:ca}};Graph.prototype.getCustomFonts=function(k){k=null!=k?k:Graph.customFontElements;var v=this.extFonts;v=null!=v?v.slice():[];for(var H in k){var P=k[H];v.push({name:P.name,url:P.url})}return v};Graph.prototype.getExtFontCss=function(k){k=this.getCustomFonts(k);for(var v="",H="",P=0;P<k.length;P++){var T=k[P].name,W=k[P].url;Graph.isCssFontUrl(W)?-v+='@import url("'+Graph.escapeCssString(Graph.rewriteGoogleFontUrl(W))+'");\n':H+='@font-face {\nfont-family: "'+Graph.escapeCssString(T)+'";\nsrc: url("'+Graph.escapeCssString(W)+'");\n}\n'}return v+H};Graph.prototype.setFont=function(k,v){Graph.addFont(k,v);var H=Editor.guid();document.execCommand("fontname",!1,H);for(var P=this.cellEditor.textarea.getElementsByTagName("font"),T=!1,W=0;W<P.length;W++)P[W].getAttribute("face")==H&&(T=!0,P[W].setAttribute("face",k),null!=v?P[W].setAttribute("data-font-src",-v):P[W].removeAttribute("data-font-src"));T||document.execCommand("fontname",!1,k)};var J=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return J.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var k=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=k)for(var v in k)this.globalVars[v]=-k[v]}catch(H){null!=window.console&&console.log("Error in vars URL parameter: "+H)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var Q=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(k){var v=Q.apply(this,arguments);null==v&&null!=this.globalVars&&(v=this.globalVars[k]);return v};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var k=this.themes["default-style2"];this.defaultStylesheet=-(new mxCodec(k.ownerDocument)).decode(k)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var V=Graph.prototype.getSvg;Graph.prototype.getSvg=function(k,v,H,P,T,W,ha,X,ea,oa,la,ca,ta,xa,qa,Ba,na){if(Editor.mathOutputSize&&this.mathEnabled&&null!=this.container&&document.body.contains(this.container)&&"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset){if(0==this.container.getElementsByTagName("mjx-container").length)try{MathJax.typeset([this.container])}catch(Ga){}this.refreshMathBounds()}var ra=-V.apply(this,arguments);if(null!=ca){var va=ra.getAttribute("style");null==va&&(va="");ca="auto"==ca||"none"==this.getAdaptiveColors()?"none"==this.getAdaptiveColors()?"light":"light dark":ca;ra.setAttribute("style",va+(" color-scheme: "+ca+";"))}var Ha=la?this.getExtFontCss():"";if(0<Ha.length){var La=ra.ownerDocument;va=null!=La.createElementNS?La.createElementNS(mxConstants.NS_SVG,"style"):La.createElement("style");null!=La.setAttributeNS?va.setAttributeNS("type","text/css"):va.setAttribute("type",-"text/css");va.appendChild(La.createTextNode(Ha));ra.getElementsByTagName("defs")[0].appendChild(va)}Editor.replaceSvgDataUris&&null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&EditorUi.embedSvgImages(ra);this.mathEnabled&&(document.body.appendChild(ra),Editor.MathJaxRender(ra),ra.parentNode.removeChild(ra),va=ra.ownerDocument.getElementById("MJX-SVG-styles"),null!=va&&ra.getElementsByTagName("defs")[0].appendChild(va.cloneNode(!0)));return ra};var K=mxCellRenderer.prototype.destroy;-mxCellRenderer.prototype.destroy=function(k){K.apply(this,arguments);null!=k.secondLabel&&(k.secondLabel.destroy(),k.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(k){return[k.shape,k.text,k.secondLabel,k.control]};var fa=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){fa.apply(this,arguments);this.enumerationState=0};var Y=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(k){null!=k.shape&&this.redrawEnumerationState(k);-return Y.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(k){k=mxUtils.safeDecodeURIComponent(mxUtils.getValue(k.style,"enumerateValue",""));""==k&&(k=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(k)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(k){var v="1"==mxUtils.getValue(k.style,"enumerate",0);v&&null==k.secondLabel?(k.secondLabel=new mxText("",new mxRectangle,-mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),k.secondLabel.size=12,k.secondLabel.state=k,k.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(k,k.secondLabel)):v||null==k.secondLabel||(k.secondLabel.destroy(),k.secondLabel=null);v=k.secondLabel;if(null!=v){var H=k.view.scale,P=this.createEnumerationValue(k);k=this.graph.model.isVertex(k.cell)?new mxRectangle(k.x+k.width-4*H,k.y+4*H,0,0):mxRectangle.fromPoint(k.view.getPoint(k));v.bounds.equals(k)&&v.value==-P&&v.scale==H||(v.bounds=k,v.value=P,v.scale=H,v.redraw())}};var aa=Graph.prototype.refresh;Graph.prototype.refresh=function(){this.refreshBackgroundImage();aa.apply(this,arguments)};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundImage())};var ja=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){ja.apply(this,arguments);this.currentStyle=-"default-style2"};Graph.prototype.handleCustomLink=function(k,v){"data:action/json,"==k.substring(0,17)&&(k=JSON.parse(k.substring(17)),null!=k.actions&&this.executeCustomActions(Graph.flattenAnimationActions(k.actions),null,v))};Graph.flattenAnimationActions=function(k){if(!Array.isArray(k))return k;for(var v=[],H=0;H<k.length;H++){var P=k[H];if(null!=P&&null!=P.animation&&Array.isArray(P.animation.steps)){P=Graph.flattenAnimationActions(P.animation.steps);for(var T=0;T<P.length;T++)v.push(P[T])}else v.push(P)}return v};-Graph.smoothScrollContainer=function(k,v,H,P,T,W){W=W||600;if(v!==P||H!==T){k.scrollLeft=v;k.scrollTop=H;var ha="undefined"!=typeof performance&&null!=performance.now?performance.now():Date.now(),X=P-v,ea=T-H,oa=function(la){la=Math.min(1,(la-ha)/W);var ca=1-Math.pow(1-la,3);k.scrollLeft=v+X*ca;k.scrollTop=H+ea*ca;1>la&&window.requestAnimationFrame(oa)};window.requestAnimationFrame(oa)}};Graph.applyTransformTransition=function(k,v){v=v||600;var H=k.view.getDrawPane(),P=null!=H?H.parentNode:null;if(null!=-P){var T=P.style.transition;P.style.transition="transform "+v+"ms cubic-bezier(0.16, 1, 0.3, 1)";k.armTransformTransition=!0;var W=function(){P.style.transition=T||"";k.armTransformTransition=!1;P.removeEventListener("transitionend",W)};P.addEventListener("transitionend",W);window.setTimeout(W,v+100)}};Graph.prototype.fitBoundsCssTransform=function(k,v){var H=null!=v?v:10;v=this.view.graphBounds;var P=Math.max(v.x,k.x),T=Math.max(v.y,k.y),W=Math.max(1,Math.min(v.x+v.width,k.x+k.width)-P),ha=Math.max(1,-Math.min(v.y+v.height,k.y+k.height)-T),X=this.container.clientWidth-H,ea=this.container.clientHeight-H;k=Math.floor(20*Math.min(X/W,ea/ha))/20;this.view.scaleAndTranslate(k,-v.x,-v.y);P=(P-v.x)*k-Math.max((X-W*k)/2+H/2,0);H=(T-v.y)*k-Math.max((ea-ha*k)/2+H/2,0);W=this.getBorder();T=v.width*k+2*W-this.container.clientWidth;v=v.height*k+2*W-this.container.clientHeight;this.container.scrollLeft=0>T?0:Math.max(0,Math.min(P,T));this.container.scrollTop=0>v?0:Math.max(0,Math.min(H,v))};Graph.prototype.isGraphTornDown=-function(){return!0===this.destroyed||null==this.container};Graph.prototype.smoothFitWindow=function(k,v,H){if(this.isGraphTornDown())null!=H&&H();else{var P=this.container,T=P.scrollLeft,W=P.scrollTop;this.useCssTransforms?(Graph.applyTransformTransition(this,600),this.fitBoundsCssTransform(k,v)):this.fitWindow(k,v);Graph.smoothScrollContainer(P,T,W,P.scrollLeft,P.scrollTop,600);null!=H&&window.setTimeout(H,600)}};Graph.prototype.scrollCellToVisibleCssTransform=function(k,v){var H=this.view.getState(k);-if(null!=H){var P=this.view.graphBounds,T=this.view.scale;this.view.translate.x===-P.x&&this.view.translate.y===-P.y||this.view.scaleAndTranslate(T,-P.x,-P.y);k=this.container.clientWidth;var W=this.container.clientHeight,ha=this.getBorder(),X=P.width*T+2*ha-k;ha=P.height*T+2*ha-W;if(null!=v){var ea=(H.x-P.x)*T,oa=(H.y-P.y)*T,la=(H.x+H.width-P.x)*T;P=(H.y+H.height-P.y)*T;var ca=this.container.scrollLeft;H=this.container.scrollTop;ea-v<ca?ca=ea-v:la+v>ca+k&&(ca=la+v-k);oa-v<H?H=oa-v:P+v>H+W&&(H=P+-v-W)}else ca=(H.x+H.width/2-P.x)*T-k/2,H=(H.y+H.height/2-P.y)*T-W/2;this.container.scrollLeft=0>X?0:Math.max(0,Math.min(ca,X));this.container.scrollTop=0>ha?0:Math.max(0,Math.min(H,ha))}};Graph.prototype.scrollCellToVisibleBorder=function(k,v){null==v?this.scrollCellToVisible(k):(k=this.view.getState(k),null!=k&&this.scrollRectToVisible(new mxRectangle(-this.view.translate.x+k.x-v,-this.view.translate.y+k.y-v,k.width+2*v,k.height+2*v)))};Graph.prototype.smoothScrollCellToVisible=function(k,v,H){if(this.isGraphTornDown())null!=-H&&H();else{var P=this.container,T=P.scrollLeft,W=P.scrollTop;this.useCssTransforms?this.scrollCellToVisibleCssTransform(k,v):this.scrollCellToVisibleBorder(k,v);Graph.smoothScrollContainer(P,T,W,P.scrollLeft,P.scrollTop,600);null!=H&&window.setTimeout(H,600)}};Graph.prototype.toggleCellsTransient=function(k){k=this.getNodesForCells(k);for(var v=0;v<k.length;v++){var H=k[v].style.opacity;H=""===H||null===H||0<parseFloat(H);k[v].style.opacity=H?0:1}};Graph.prototype.setCellStylesTransient=function(k,-v,H){for(var P=0;P<H.length;P++){var T=this.view.getState(H[P]);null!=T&&null!=T.style&&(null==v?delete T.style[k]:T.style[k]=v,null!=T.shape&&(T.shape.apply(T),T.shape.redraw()),null!=T.text&&(T.text.apply(T),T.text.redraw()))}};Graph.prototype.toggleCellStylesTransient=function(k,v,H){null==v&&(v="0");for(var P=0;P<H.length;P++){var T=this.view.getState(H[P]);if(null!=T&&null!=T.style){var W=mxUtils.getValue(T.style,k,v)?"0":"1";T.style[k]=W;null!=T.shape&&(T.shape.apply(T),T.shape.redraw());null!=-T.text&&(T.text.apply(T),T.text.redraw())}}};Graph.prototype.executeCustomActions=function(k,v,H){if(this.executingCustomActions)this.stoppingCustomActions=!0,null!=this.pendingWaitThread&&window.clearTimeout(this.pendingWaitThread),null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions"));else{this.executingCustomActions=!0;var P=!1,T=0,W=0,ha=mxUtils.bind(this,function(){P||(P=!0,this.model.beginUpdate())}),X=mxUtils.bind(this,-function(){P&&(P=!1,this.model.endUpdate())}),ea=null==H,oa=function(xa){return null!=xa.transient?xa.transient:ea},la=mxUtils.bind(this,function(){0<T&&T--;0==T&&ta()}),ca=mxUtils.bind(this,function(){if(this.isGraphTornDown())this.stoppingCustomActions=this.executingCustomActions=!1,null!=v&&v();else if(W<k.length){do{var xa=this.stoppingCustomActions,qa=k[W++],Ba=[];if(null!=qa.open)if(X(),this.isCustomLink(qa.open)){if(!this.customLinkClicked(qa.open,H)){this.stoppingCustomActions=this.executingCustomActions=-!1;null!=v&&v();return}}else this.openLink(qa.open);null==qa.wait||xa||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;la()}),T++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=qa.wait?parseInt(qa.wait):1E3),X());null!=qa.opacity&&null!=qa.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(qa.opacity,!0)),qa.opacity.value);null!=qa.fadeIn&&(T++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(qa.fadeIn,-!0)),0,1,la,xa?0:qa.fadeIn.delay));null!=qa.fadeOut&&(T++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(qa.fadeOut,!0)),1,0,la,xa?0:qa.fadeOut.delay));if(null!=qa.fadeTo&&null!=qa.fadeTo.value){T++;var na=this.getNodesForCells(this.getCellsForAction(qa.fadeTo,!0)),ra=xa?0:null!=qa.fadeTo.delay?qa.fadeTo.delay:1E3;Graph.setTransitionForNodes(na,"all "+ra+"ms ease-in-out");Graph.setOpacityForNodes(na,qa.fadeTo.value);window.setTimeout(function(){Graph.setTransitionForNodes(na,null);la()},-ra)}null!=qa.flow&&(ra=this.getCellsForAction(qa.flow,!0),Editor.toggleFlowAnimation(this,ra,!1===qa.flow.start?"stop":!0===qa.flow.start?"start":"toggle"));null!=qa.wipeIn&&(Ba=Ba.concat(this.createWipeAnimations(this.getCellsForAction(qa.wipeIn,!0),!0)));null!=qa.wipeOut&&(Ba=Ba.concat(this.createWipeAnimations(this.getCellsForAction(qa.wipeOut,!0),!1)));null!=qa.popIn&&(Ba=Ba.concat(this.createPopAnimations(this.getCellsForAction(qa.popIn,!0),!0)));null!=qa.popOut&&(Ba=Ba.concat(this.createPopAnimations(this.getCellsForAction(qa.popOut,-!0),!1)));null!=qa.toggle&&(oa(qa.toggle)?this.toggleCellsTransient(this.getCellsForAction(qa.toggle,!0)):(ha(),this.toggleCells(this.getCellsForAction(qa.toggle,!0,!0))));null!=qa.show&&(ra=this.getCellsForAction(qa.show,!0),Graph.setOpacityForNodes(this.getNodesForCells(ra),1),oa(qa.show)||(ha(),this.setCellsVisible(this.getCellsForAction(qa.show,!0,!0),!0)));null!=qa.hide&&(ra=this.getCellsForAction(qa.hide,!0),Graph.setOpacityForNodes(this.getNodesForCells(ra),0),oa(qa.hide)||(ha(),this.setCellsVisible(this.getCellsForAction(qa.hide,-!0,!0),!1)));if(null!=qa.toggleStyle&&null!=qa.toggleStyle.key){ra=this.getCellsForAction(qa.toggleStyle,!0);var va=null!=qa.toggleStyle.defaultValue?qa.toggleStyle.defaultValue:"0";oa(qa.toggleStyle)?this.toggleCellStylesTransient(qa.toggleStyle.key,va,ra):(ha(),this.toggleCellStyles(qa.toggleStyle.key,va,ra))}null!=qa.style&&null!=qa.style.key&&(ra=this.getCellsForAction(qa.style,!0),oa(qa.style)?this.setCellStylesTransient(qa.style.key,qa.style.value,ra):(ha(),this.setCellStyles(qa.style.key,qa.style.value,-ra)));ra=[];null!=qa.select&&this.isEnabled()&&(ra=this.getCellsForAction(qa.select),this.setSelectionCells(ra));null!=qa.highlight&&(ra=this.getCellsForAction(qa.highlight),this.highlightCells(ra,qa.highlight.color,qa.highlight.duration,qa.highlight.opacity));null!=qa.scroll&&(ra=this.getCellsForAction(qa.scroll));if(null!=qa.viewbox){va=qa.viewbox;if(null!=va.cells||null!=va.tags||null!=va.layers){var Ha=this.getBoundingBox(this.getCellsForAction(va));if(null!=Ha){var La=this.useCssTransforms?1:-this.view.scale,Ga=this.useCssTransforms?new mxPoint(0,0):this.view.translate,Da=null==va.border||""===va.border||isNaN(parseFloat(va.border))?null:2*parseFloat(va.border);va={x:Ha.x/La-Ga.x,y:Ha.y/La-Ga.y,width:Math.max(1,Ha.width/La),height:Math.max(1,Ha.height/La),border:Da,smooth:va.smooth}}else va=null}null!=va&&(!0!==va.smooth||xa?this.useCssTransforms?this.fitBoundsCssTransform(va,va.border):this.fitWindow(va,va.border):(T++,this.smoothFitWindow(va,va.border,la)))}0<ra.length&&(va=null==qa.scroll||-null==qa.scroll.border||""===qa.scroll.border||isNaN(parseFloat(qa.scroll.border))?null:parseFloat(qa.scroll.border),null==qa.scroll||!0!==qa.scroll.smooth||xa?this.useCssTransforms?this.scrollCellToVisibleCssTransform(ra[0],va):this.scrollCellToVisibleBorder(ra[0],va):(T++,this.smoothScrollCellToVisible(ra[0],va,la)));null!=H&&null!=qa.explore&&Graph.exploreFromCell(this,H,qa.explore);if(null!=qa.tags){if(null!=qa.tags.toggle)for(va=qa.tags.toggle,0==va.length&&(va=this.getAllTags()),ra=0;ra<va.length;ra++)this.toggleHiddenTag(va[ra]);-va=null;null!=qa.tags.hidden&&(null==va&&(va=[]),va=va.concat(qa.tags.hidden));if(null!=qa.tags.visible)for(null==va&&(va=[]),Ha=this.getAllTags(),ra=0;ra<Ha.length;ra++)0>mxUtils.indexOf(qa.tags.visible,Ha[ra])&&0>mxUtils.indexOf(va,Ha[ra])&&va.push(Ha[ra]);null!=va&&this.setHiddenTags(va);this.refresh()}if(0<Ba.length){T++;ra=null!=qa.steps?qa.steps:30;va=qa.delay;Ha=["wipeIn","wipeOut","popIn","popOut"];La=null;for(Ga=0;Ga<Ha.length;Ga++)Da=qa[Ha[Ga]],null!=Da&&null!=Da.delay&&(La=null==La?Da.delay:-Math.max(La,Da.delay));null!=La&&(va=La/ra);this.executeAnimations(Ba,la,xa?1:ra,xa?0:va)}}while(W<k.length&&!0===k[W].immediate&&!this.stoppingCustomActions);0==T?ta():X()}else this.stoppingCustomActions=this.executingCustomActions=!1,X(),null!=v&&v()}),ta=mxUtils.bind(this,function(){try{ca()}catch(xa){throw this.stoppingCustomActions=this.executingCustomActions=!1,X(),xa;}});ta()}};Graph.prototype.doUpdateCustomLinksForCell=function(k,v){var H=this.getLinkForCell(v);null!=H&&"data:action/json,"==-H.substring(0,17)&&this.setLinkForCell(v,this.updateCustomLink(k,H));if(this.isHtmlLabel(v)){var P=document.createElement("div");P.innerHTML=Graph.sanitizeHtml(this.getLabel(v));for(var T=P.getElementsByTagName("a"),W=!1,ha=0;ha<T.length;ha++)H=T[ha].getAttribute("href"),null!=H&&"data:action/json,"==H.substring(0,17)&&(T[ha].setAttribute("href",this.updateCustomLink(k,H)),W=!0);W&&this.labelChanged(v,P.innerHTML)}};Graph.prototype.updateCustomLink=function(k,v){if("data:action/json,"==v.substring(0,-17))try{var H=JSON.parse(v.substring(17));null!=H.actions&&(this.updateCustomLinkActions(k,H.actions),v="data:action/json,"+JSON.stringify(H))}catch(P){}return v};Graph.prototype.updateCustomLinkActions=function(k,v){for(var H=0;H<v.length;H++){var P=v[H],T;for(T in P)this.updateCustomLinkAction(k,P[T],"cells"),this.updateCustomLinkAction(k,P[T],"excludeCells"),this.updateCustomLinkAction(k,P[T],"layers")}};Graph.prototype.updateCustomLinkAction=function(k,v,H){if(null!=v&&null!=v[H]){for(var P=[],-T=0;T<v[H].length;T++)if("*"==v[H][T])P.push(v[H][T]);else{var W=k[v[H][T]];null!=W?""!=W&&P.push(W):P.push(v[H][T])}v[H]=P}};Graph.prototype.getCellsForAction=function(k,v,H){var P="or"===k.tagsMatch?"or":"and",T={},W=[],ha=function(X){for(var ea=0;ea<X.length;ea++){var oa=X[ea].id;T[oa]||(T[oa]=!0,W.push(X[ea]))}};ha(this.getCellsById(k.cells));ha(this.getCellsForTags(k.tags,null,v,!1,P));ha(H?this.getLayerCells(k.layers):this.getCellsForLayers(k.layers));if(null!=k.excludeCells&&0<k.excludeCells.length){v=-{};P=!1;for(H=0;H<k.excludeCells.length;H++){if("*"===k.excludeCells[H]){P=!0;break}v[k.excludeCells[H]]=!0}if(P)return[];k=[];for(H=0;H<W.length;H++)v[W[H].id]||k.push(W[H]);return k}return W};Graph.prototype.getCellsById=function(k){var v=[];if(null!=k)for(var H=0;H<k.length;H++)if("*"==k[H]){var P=this.model.getRoot();v=v.concat(this.model.filterDescendants(function(W){return W!=P},P))}else{var T=this.model.getCell(k[H]);null!=T&&v.push(T)}return v};Graph.prototype.getCellsForLayers=function(k){var v=-[];if(Array.isArray(k))for(var H=0;H<k.length;H++){var P=this.model.getCell(k[H]);null!=P&&(v=v.concat(this.model.filterDescendants(function(T){return T!=P},P)))}return v};Graph.prototype.getLayerCells=function(k){var v=[];if(Array.isArray(k))for(var H=0;H<k.length;H++){var P=this.model.getCell(k[H]);null!=P&&v.push(P)}return v};var ka=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(k){return ka.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(k))};Graph.prototype.setHiddenTags=-function(k){this.hiddenTags=k;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(k){var v=mxUtils.indexOf(this.hiddenTags,k);0>v?this.hiddenTags.push(k):0<=v&&this.hiddenTags.splice(v,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(k){if(null==k||0==k.length||0==this.hiddenTags.length)return!1;k=k.split(" ");if(k.length>this.hiddenTags.length)return!1;for(var v=0;v<k.length;v++)if(0>mxUtils.indexOf(this.hiddenTags,-k[v]))return!1;return!0};Graph.prototype.getCellsForTags=function(k,v,H,P,T){var W=[];T="or"===T;if(null!=k){v=null!=v?v:this.model.getDescendants(this.model.getRoot());for(var ha=0,X={},ea=0;ea<k.length;ea++)0<k[ea].length&&(X[k[ea]]=!0,ha++);for(ea=0;ea<v.length;ea++)if(H&&this.model.getParent(v[ea])==this.model.root||this.model.isVertex(v[ea])||this.model.isEdge(v[ea])){var oa=this.getTagsForCell(v[ea]),la=!1;if(0<oa.length&&(oa=oa.split(" "),T||oa.length>=k.length)){for(var ca=la=0;ca<oa.length&&-la<ha;ca++)null!=X[oa[ca]]&&la++;la=T?0<la:la==ha}la&&(1!=P||this.isCellVisible(v[ea]))&&W.push(v[ea])}}return W};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(k){for(var v=null,H=[],P=0;P<k.length;P++){var T=this.getTagsForCell(k[P]);H=[];if(0<T.length){T=T.split(" ");for(var W={},ha=0;ha<T.length;ha++)if(null==v||null!=v[T[ha]])W[T[ha]]=!0,H.push(T[ha]);v=W}else return[]}return H};-Graph.prototype.getTagsForCells=function(k){for(var v=[],H={},P=0;P<k.length;P++){var T=this.getTagsForCell(k[P]);if(0<T.length){T=T.split(" ");for(var W=0;W<T.length;W++)null==H[T[W]]&&(H[T[W]]=!0,v.push(T[W]))}}return v};Graph.prototype.getTagsForCell=function(k){return this.getAttributeForCell(k,"tags","")};Graph.prototype.addTagsForCells=function(k,v){if(0<k.length&&0<v.length){this.model.beginUpdate();try{for(var H=0;H<k.length;H++){for(var P=this.getTagsForCell(k[H]),T=P.split(" "),W=!1,ha=-0;ha<v.length;ha++){var X=mxUtils.trim(v[ha]);""!=X&&0>mxUtils.indexOf(T,X)&&(P=0<P.length?P+" "+X:X,W=!0)}W&&this.setAttributeForCell(k[H],"tags",P)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(k,v){if(0<k.length&&0<v.length){this.model.beginUpdate();try{for(var H=0;H<k.length;H++){var P=this.getTagsForCell(k[H]);if(0<P.length){for(var T=P.split(" "),W=!1,ha=0;ha<v.length;ha++){var X=mxUtils.indexOf(T,v[ha]);0<=X&&(T.splice(X,1),W=!0)}W&&this.setAttributeForCell(k[H],-"tags",T.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(k){this.model.beginUpdate();try{for(var v=0;v<k.length;v++)this.model.setVisible(k[v],!this.model.isVisible(k[v]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(k,v){this.model.beginUpdate();try{for(var H=0;H<k.length;H++)this.model.setVisible(k[H],v)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=function(k,v,H,P){for(var T=0;T<k.length;T++)this.highlightCell(k[T],-v,H,P)};Graph.prototype.highlightCell=function(k,v,H,P,T){v=null!=v?v:mxConstants.DEFAULT_VALID_COLOR;H=null!=H?H:1E3;k=this.view.getState(k);var W=null;null!=k&&(T=null!=T?T:4,T=Math.max(T+1,mxUtils.getValue(k.style,mxConstants.STYLE_STROKEWIDTH,1)+T),W=new mxCellHighlight(this,v,T,!1),null!=P&&(W.opacity=P),W.highlight(k),window.setTimeout(function(){null!=W.shape&&(mxUtils.setPrefixedStyle(W.shape.node.style,"transition","all 1200ms ease-in-out"),W.shape.node.style.opacity=0);window.setTimeout(function(){W.destroy()},-1200)},H));return W};Graph.prototype.addSvgShadow=function(k,v,H,P){P=null!=P?P:!0;var T=Math.ceil(this.svgShadowSize*this.svgShadowBlur);null!=H&&H||(v=null!=v?v:k.getElementsByTagName("g")[0],null!=v&&(this.updateShadowFilter(v,!0),!isNaN(parseInt(k.getAttribute("width")))&&P&&(k.setAttribute("width",parseInt(k.getAttribute("width"))+T),k.setAttribute("height",parseInt(k.getAttribute("height"))+T),v=k.getAttribute("viewBox"),null!=v&&0<v.length&&(v=v.split(" "),3<v.length&&(w=parseFloat(v[2])+T,-h=parseFloat(v[3])+T,k.setAttribute("viewBox",v[0]+" "+v[1]+" "+w+" "+h))))));return T};Graph.prototype.updateShadowFilter=function(k,v){mxClient.IS_SF||(v?(v=mxUtils.getLightDarkColor(this.svgShadowColor,this.svgShadowOpacity),k.style.filter="drop-shadow("+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowBlur)/100+"px "+v.cssText+")"):k.style.filter="")};Graph.prototype.setShadowVisible=function(k,v){v=null!=v?v:!0;this.shadowVisible=-k;this.updateShadowFilter(this.view.getDrawPane(),this.shadowVisible);v&&this.fireEvent(new mxEventObject("shadowVisibleChanged"));return Math.ceil(this.svgShadowSize*this.svgShadowBlur)};Graph.prototype.checkDefaultParent=function(){null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer())};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var k=this.model.getChildCount(this.model.root),v=0;do var H=this.model.getChildAt(this.model.root,-v);while(v++<k&&"1"==mxUtils.getValue(this.getCellStyle(H),"locked","0"));null!=H&&this.setDefaultParent(H)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.bpmn2=-[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.c4=[SHAPES_PATH+"/mxC4.js"];mxStencilRegistry.libraries.cisco19=[SHAPES_PATH+"/mxCisco19.js",STENCIL_PATH+"/cisco19.xml"];mxStencilRegistry.libraries.cisco_safe=[SHAPES_PATH+"/mxCiscoSafe.js",STENCIL_PATH+"/cisco_safe/architecture.xml",STENCIL_PATH+"/cisco_safe/business_icons.xml",STENCIL_PATH+"/cisco_safe/capability.xml",STENCIL_PATH+"/cisco_safe/design.xml",STENCIL_PATH+"/cisco_safe/iot_things_icons.xml",-STENCIL_PATH+"/cisco_safe/people_places_things_icons.xml",STENCIL_PATH+"/cisco_safe/security_icons.xml",STENCIL_PATH+"/cisco_safe/technology_icons.xml",STENCIL_PATH+"/cisco_safe/threat.xml"];mxStencilRegistry.libraries.dfd=[SHAPES_PATH+"/mxDFD.js"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.kubernetes=[SHAPES_PATH+"/mxKubernetes.js",STENCIL_PATH+"/kubernetes.xml",STENCIL_PATH+"/kubernetes2.xml"];mxStencilRegistry.libraries.flowchart=[SHAPES_PATH+"/mxFlowchart.js",-STENCIL_PATH+"/flowchart.xml"];mxStencilRegistry.libraries.ios=[SHAPES_PATH+"/mockup/mxMockupiOS.js"];mxStencilRegistry.libraries.rackGeneral=[SHAPES_PATH+"/rack/mxRack.js",STENCIL_PATH+"/rack/general.xml"];mxStencilRegistry.libraries.rackF5=[STENCIL_PATH+"/rack/f5.xml"];mxStencilRegistry.libraries.lean_mapping=[SHAPES_PATH+"/mxLeanMap.js",STENCIL_PATH+"/lean_mapping.xml"];mxStencilRegistry.libraries.basic=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/basic.xml"];mxStencilRegistry.libraries.ios7icons=-[STENCIL_PATH+"/ios7/icons.xml"];mxStencilRegistry.libraries.ios7ui=[SHAPES_PATH+"/ios7/mxIOS7Ui.js",STENCIL_PATH+"/ios7/misc.xml"];mxStencilRegistry.libraries.android=[SHAPES_PATH+"/mxAndroid.js",STENCIL_PATH+"/android/android.xml"];mxStencilRegistry.libraries["electrical/abstract"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/abstract.xml"];mxStencilRegistry.libraries["electrical/logic_gates"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/logic_gates.xml"];mxStencilRegistry.libraries["electrical/miscellaneous"]=-[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/miscellaneous.xml"];mxStencilRegistry.libraries["electrical/signal_sources"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/signal_sources.xml"];mxStencilRegistry.libraries["electrical/electro-mechanical"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/electro-mechanical.xml"];mxStencilRegistry.libraries["electrical/transmission"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/transmission.xml"];mxStencilRegistry.libraries.infographic=-[SHAPES_PATH+"/mxInfographic.js"];mxStencilRegistry.libraries["mockup/buttons"]=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];-mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",SHAPES_PATH+-"/mxBasic.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+"/gmdl.xml"];mxStencilRegistry.libraries.gcp2=[SHAPES_PATH+"/mxGCP2.js",STENCIL_PATH+"/gcp2.xml"];mxStencilRegistry.libraries.ibm=[SHAPES_PATH+"/mxIBM.js",STENCIL_PATH+"/ibm.xml"];mxStencilRegistry.libraries.ibmcloud=[STENCIL_PATH+"/ibm_cloud.xml"];mxStencilRegistry.libraries.cabinets=[SHAPES_PATH+"/mxCabinets.js",STENCIL_PATH+"/cabinets.xml"];mxStencilRegistry.libraries.archimate=-[SHAPES_PATH+"/mxArchiMate.js"];mxStencilRegistry.libraries.archimate4=[SHAPES_PATH+"/mxArchiMate3.js",SHAPES_PATH+"/mxArchiMate4.js"];mxStencilRegistry.libraries.archimate3=[SHAPES_PATH+"/mxArchiMate3.js"];mxStencilRegistry.libraries.sysml=[SHAPES_PATH+"/mxSysML.js"];mxStencilRegistry.libraries.eip=[SHAPES_PATH+"/mxEip.js",STENCIL_PATH+"/eip.xml"];mxStencilRegistry.libraries.networks=[SHAPES_PATH+"/mxNetworks.js",STENCIL_PATH+"/networks.xml"];mxStencilRegistry.libraries.networks2=[SHAPES_PATH+"/mxNetworks2.js",-STENCIL_PATH+"/networks2.xml"];mxStencilRegistry.libraries.aws3d=[SHAPES_PATH+"/mxAWS3D.js",STENCIL_PATH+"/aws3d.xml"];mxStencilRegistry.libraries.aws4=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.aws4b=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.uml25=[SHAPES_PATH+"/mxUML25.js"];mxStencilRegistry.libraries.veeam=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam.xml"];mxStencilRegistry.libraries.veeam2=-[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam2.xml"];mxStencilRegistry.libraries.pid2inst=[SHAPES_PATH+"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxStencilRegistry.libraries.salesforce=[STENCIL_PATH+"/salesforce.xml"];-mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=function(k){var v=null;null!=k&&0<k.length&&("ER"==k.substring(0,2)?v="mxgraph.er":"sysML"==k.substring(0,5)&&(v="mxgraph.sysml"));return v};var ua=mxMarker.createMarker;mxMarker.createMarker=function(k,v,H,P,T,W,ha,X,ea,oa){if(null!=H&&null==mxMarker.markers[H]){var la=this.getPackageForType(H);null!=la&&mxStencilRegistry.getStencil(la)}return ua.apply(this,-arguments)};var Ca=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(k,v,H,P,T,W){"1"==mxUtils.getValue(v.style,"lineShape",null)&&k.setFillColor(mxUtils.getValue(v.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return Ca.apply(this,arguments)};PrintDialog.prototype.create=function(k,v,H,P){function T(){ra.value=Math.max(1,Math.min(ta,Math.max(parseInt(ra.value),parseInt(na.value))));na.value=Math.max(1,Math.min(ta,Math.min(parseInt(ra.value),parseInt(na.value))))}function W(rb){k.lastPrintPagesRadioChecked=-Ba.checked;k.lastPrintSelectionOnlyChecked=va.checked;k.lastPrintCropRadioChecked=La.checked;k.lastPrintFitRadioChecked=Ga.checked;Ba.checked&&na.value<ra.value?(k.lastPrintPagesFromInput=na.value,k.lastPrintPagesToInput=ra.value):(k.lastPrintPagesFromInput=null,k.lastPrintPagesToInput=null);db.value=Math.max(1,Math.min(1600,parseInt(db.value)))+"%";k.lastPrintZoom=db.value;k.lastPrintBorder=Va.value;k.lastPrintGrid=Ea.checked;k.lastPrintShadow=$a.checked;k.lastPrintTransparent=cb.checked;k.lastPrintInclude=-Za.checked;k.lastPrintIcons=eb.checked;k.lastPrintSheetsAcross=Sa.value;k.lastPrintSheetsDown=ab.value;var xb={};xb.border=parseInt(Va.value);xb.scale=parseInt(db.value)/100;xb.grid=Ea.checked;xb.shadows=$a.checked;xb.transparent=cb.checked;xb.includeCopy=Za.checked;xb.icons=eb.checked&&EditorUi.isElectronApp;xb.sheetsAcross=parseInt(Sa.value);xb.sheetsDown=parseInt(ab.value);xb.pagesFrom=parseInt(na.value);xb.pagesTo=parseInt(ra.value);xb.allPages=xa.checked;xb.selection=va.checked;xb.pageView=Ha.checked;-xb.crop=La.checked;xb.fit=Ga.checked;return null!=H?H(!rb,xb):k.print(!rb,xb)}function ha(rb){try{k.hideDialog(),null!=H?W(rb):k.spinner.spin(document.body,mxResources.get("updatingPreview"))&&window.setTimeout(function(){try{W(rb),k.spinner.stop()}catch(xb){k.handleError(xb)}},0)}catch(xb){k.handleError(xb)}}var X=k.editor.graph,ea=document.createElement("div");ea.style.display="flex";ea.style.flexDirection="column";ea.style.minHeight="0";var oa=document.createElement("div");oa.style.flex="1 1 auto";-oa.style.minHeight="0";oa.style.overflowY="auto";ea.appendChild(oa);var la=document.createElement("h3");mxUtils.write(la,v||mxResources.get("print"));oa.appendChild(la);var ca=1,ta=1;la=document.createElement("div");la.className="geDialogSection";la.style.whiteSpace="nowrap";var xa=document.createElement("input");xa.style.marginRight="8px";xa.setAttribute("type","radio");xa.setAttribute("name","pages-printdialog");xa.setAttribute("id","gePrintDlgAllPages");var qa=document.createElement("div");qa.className=-"geDialogCheckRow";qa.appendChild(xa);v=document.createElement("label");v.setAttribute("for","gePrintDlgAllPages");mxUtils.write(v,mxResources.get("allPages"));qa.appendChild(v);la.appendChild(qa);var Ba=document.createElement("input");Ba.style.marginRight="8px";Ba.setAttribute("type","radio");Ba.setAttribute("name","pages-printdialog");Ba.setAttribute("id","gePrintDlgPages");qa=document.createElement("div");qa.className="geDialogCheckRow";qa.appendChild(Ba);v=document.createElement("label");v.setAttribute("for",-"gePrintDlgPages");mxUtils.write(v,mxResources.get("pages")+":");qa.appendChild(v);var na=document.createElement("input");na.style.margin="0 4px";na.setAttribute("value","1");na.setAttribute("type","number");na.setAttribute("min","1");na.style.width="40px";qa.appendChild(na);v=document.createElement("span");mxUtils.write(v,mxResources.get("to"));qa.appendChild(v);var ra=na.cloneNode(!0);qa.appendChild(ra);mxEvent.addListener(na,"focus",function(){Ba.checked=!0});mxEvent.addListener(ra,"focus",function(){Ba.checked=-!0});mxEvent.addListener(na,"change",T);mxEvent.addListener(ra,"change",T);if(null!=k.pages&&(ta=k.pages.length,null!=k.currentPage))for(v=0;v<ta;v++)if(k.currentPage==k.pages[v]){ca=v+1;break}null!=k.lastPrintPagesFromInput&&null!=k.lastPrintPagesToInput?(na.value=Math.min(ta,Math.max(1,k.lastPrintPagesFromInput)),ra.value=Math.min(ta,Math.max(1,k.lastPrintPagesToInput))):(na.value=ca,ra.value=ca);na.setAttribute("max",ta);ra.setAttribute("max",ta);v=mxUtils.button(mxResources.get("currentPage"),-function(rb){na.value=ca;ra.value=ca;Ba.checked=!0});v.className="geBtn";v.setAttribute("title",mxResources.get("currentPage"));v.style.marginLeft="4px";v.style.maxWidth="100px";qa.appendChild(v);la.appendChild(qa);1<ta&&oa.appendChild(la);qa=document.createElement("div");qa.className="geDialogCheckRow";var va=document.createElement("input");va.setAttribute("name","pages-printdialog");va.setAttribute("type",1==ta?"checkbox":"radio");va.setAttribute("id","gePrintDlgSelectionOnly");va.style.marginRight=-"8px";X.isSelectionEmpty()&&va.setAttribute("disabled","disabled");X.isEnabled()&&(qa.appendChild(va),v=document.createElement("label"),v.setAttribute("for","gePrintDlgSelectionOnly"),mxUtils.write(v,mxResources.get("selectionOnly")),qa.appendChild(v));X.isEnabled()&&(1<ta?la.appendChild(qa):(v=document.createElement("div"),v.className="geDialogSection",v.appendChild(qa),oa.appendChild(v)));!k.isPagesEnabled()||k.lastPrintPagesRadioChecked?Ba.checked=!0:!X.isSelectionEmpty()&&k.lastPrintSelectionOnlyChecked?-va.checked=!0:xa.checked=!0;X=k.addAdvancedSection(oa);oa=X.content;la=document.createElement("div");la.className="geDialogCheckRow";var Ha=document.createElement("input");Ha.style.marginRight="8px";Ha.setAttribute("type","radio");Ha.setAttribute("name","printSize");Ha.setAttribute("id","gePrintDlgPageView");la.appendChild(Ha);v=document.createElement("label");v.setAttribute("for","gePrintDlgPageView");mxUtils.write(v,mxResources.get("pageView"));la.appendChild(v);mxEvent.addListener(la,"click",function(){Ha.checked=-!0});oa.appendChild(la);la=document.createElement("div");la.className="geDialogCheckRow";var La=document.createElement("input");La.style.marginRight="8px";La.setAttribute("type","radio");La.setAttribute("name","printSize");La.setAttribute("id","gePrintDlgCrop");la.appendChild(La);v=document.createElement("label");v.setAttribute("for","gePrintDlgCrop");mxUtils.write(v,mxResources.get("crop"));la.appendChild(v);mxEvent.addListener(la,"click",function(){La.checked=!0});oa.appendChild(la);la=document.createElement("div");-la.className="geDialogCheckRow";la.style.alignItems="flex-start";var Ga=document.createElement("input");Ga.style.marginTop="4px";Ga.setAttribute("type","radio");Ga.setAttribute("name","printSize");la.appendChild(Ga);qa=document.createElement("table");qa.style.display="inline-block";qa.style.borderSpacing="0";var Da=document.createElement("tbody"),Qa=document.createElement("tr"),Ka=Qa.cloneNode(!0),Na=document.createElement("td"),Oa=Na.cloneNode(!0),Fa=Na.cloneNode(!0),Aa=Na.cloneNode(!0),Ja=Na.cloneNode(!0),-Ia=Na.cloneNode(!0);Na.style.textAlign="right";Aa.style.textAlign="right";mxUtils.write(Na,mxResources.get("fitTo"));mxEvent.addListener(la,"click",function(rb){mxEvent.getSource(rb)!=Ga&&(Ga.checked=!Ga.checked)});var Sa=document.createElement("input");Sa.style.margin="0 2px";Sa.style.boxSizing="border-box";Sa.setAttribute("value",k.lastPrintSheetsAcross||"1");Sa.setAttribute("min","1");Sa.setAttribute("type","number");Sa.style.width="40px";Oa.appendChild(Sa);v=document.createElement("span");mxUtils.write(v,-mxResources.get("fitToSheetsAcross"));Fa.appendChild(v);mxUtils.write(Aa,mxResources.get("fitToBy"));var ab=Sa.cloneNode(!0);ab.setAttribute("value",k.lastPrintSheetsDown||"1");Ja.appendChild(ab);mxEvent.addListener(Sa,"click",function(rb){Ga.checked=!0;mxEvent.consume(rb)});mxEvent.addListener(ab,"click",function(rb){Ga.checked=!0;mxEvent.consume(rb)});k.lastPrintCropRadioChecked?La.checked=!0:k.lastPrintFitRadioChecked?Ga.checked=!0:Ha.checked=!0;v=document.createElement("span");mxUtils.write(v,-mxResources.get("fitToSheetsDown"));Ia.appendChild(v);Qa.appendChild(Na);Qa.appendChild(Oa);Qa.appendChild(Fa);Ka.appendChild(Aa);Ka.appendChild(Ja);Ka.appendChild(Ia);Da.appendChild(Qa);Da.appendChild(Ka);qa.appendChild(Da);la.appendChild(qa);oa.appendChild(la);oa=document.createElement("div");oa.className="geDialogSection";v=document.createElement("div");v.className="geDialogFormRow";la=document.createElement("label");la.className="geDialogFormLabel";la.setAttribute("for","gePrintDlgBorder");mxUtils.write(la,-mxResources.get("borderWidth"));v.appendChild(la);var Va=document.createElement("input");Va.setAttribute("type","number");Va.setAttribute("min","0");Va.setAttribute("id","gePrintDlgBorder");Va.style.width="40px";Va.value=null!=k.lastPrintBorder?k.lastPrintBorder:mxPrintPreview.prototype.pageMargin;v.appendChild(Va);la=document.createElement("label");la.setAttribute("for","gePrintDlgZoom");la.style.marginLeft="12px";la.style.marginRight="4px";mxUtils.write(la,mxResources.get("zoom"));v.appendChild(la);-var db=document.createElement("input");db.setAttribute("id","gePrintDlgZoom");db.style.width="60px";db.value=null!=k.lastPrintZoom?k.lastPrintZoom:"100%";v.appendChild(db);oa.appendChild(v);la=document.createElement("div");la.className="geDialogCheckRow";var Ea=document.createElement("input");Ea.setAttribute("type","checkbox");Ea.setAttribute("id","gePrintDlgGrid");Ea.style.marginRight="8px";Ea.checked=null!=k.lastPrintGrid?k.lastPrintGrid:!1;la.appendChild(Ea);v=document.createElement("label");v.setAttribute("for",-"gePrintDlgGrid");mxUtils.write(v,mxResources.get("grid"));la.appendChild(v);oa.appendChild(la);la=document.createElement("div");la.className="geDialogCheckRow";var $a=document.createElement("input");$a.setAttribute("type","checkbox");$a.setAttribute("id","gePrintDlgShadows");$a.style.marginRight="8px";$a.checked=null!=k.lastPrintShadow?k.lastPrintShadow:!1;la.appendChild($a);v=document.createElement("label");v.setAttribute("for","gePrintDlgShadows");mxUtils.write(v,mxResources.get("shadows"));la.appendChild(v);-k.isOffline()&&!mxClient.IS_CHROMEAPP||la.appendChild(k.createHelpIcon("https://www.drawio.com/docs/manual/export/print-diagram/#shadows-in-print-and-pdf-export"));Editor.enableShadowOption||(la.style.display="none");oa.appendChild(la);var cb=document.createElement("input");cb.setAttribute("type","checkbox");cb.setAttribute("id","gePrintDlgTransparent");cb.style.marginRight="8px";cb.checked=null!=k.lastPrintTransparent?k.lastPrintTransparent:!1;null!=H&&(la=document.createElement("div"),la.className=-"geDialogCheckRow",la.appendChild(cb),v=document.createElement("label"),v.setAttribute("for","gePrintDlgTransparent"),mxUtils.write(v,mxResources.get("transparentBackground")),la.appendChild(v),oa.appendChild(la));var Za=document.createElement("input");Za.setAttribute("type","checkbox");Za.setAttribute("id","gePrintDlgInclude");Za.style.marginRight="8px";Za.checked=null!=k.lastPrintInclude?k.lastPrintInclude:Editor.defaultIncludeDiagram;null==H||mxClient.IS_CHROMEAPP||"draw.io"!=k.getServiceName()||-(la=document.createElement("div"),la.className="geDialogCheckRow",la.appendChild(Za),v=document.createElement("label"),v.setAttribute("for","gePrintDlgInclude"),mxUtils.write(v,mxResources.get("includeCopyOfMyDiagram")),la.appendChild(v),oa.appendChild(la));var eb=document.createElement("input");eb.setAttribute("type","checkbox");eb.setAttribute("id","gePrintDlgIcons");eb.style.marginRight="8px";eb.checked=null!=k.lastPrintIcons?k.lastPrintIcons:!1;null!=H&&EditorUi.isElectronApp&&(la=document.createElement("div"),-la.className="geDialogCheckRow",la.appendChild(eb),v=document.createElement("label"),v.setAttribute("for","gePrintDlgIcons"),mxUtils.write(v,mxResources.get("notes")),la.appendChild(v),oa.appendChild(la));X.wrapper.appendChild(oa);v=document.createElement("div");v.style.flex="0 0 auto";v.style.marginTop="16px";v.style.textAlign="right";v.style.whiteSpace="nowrap";k.isOffline()&&!mxClient.IS_CHROMEAPP||null!=H||v.appendChild(k.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));X=mxUtils.button(mxResources.get("cancel"),-function(){k.hideDialog()});X.className="geBtn";k.editor.cancelFirst&&v.appendChild(X);PrintDialog.previewEnabled&&null==H&&(oa=mxUtils.button(mxResources.get("preview"),function(){ha(!1)}),oa.className="geBtn",v.appendChild(oa));P=null!=P?P:null!=H?"export":PrintDialog.previewEnabled?"print":"ok";P=mxUtils.button(mxResources.get(P),function(){ha(!0)});P.className="geBtn gePrimaryBtn";v.appendChild(P);k.editor.cancelFirst||v.appendChild(X);ea.appendChild(v);if(k.editor.isChromelessView()){var lb=-function(){Editor.isDarkMode()?(ea.classList.add("geDarkMode"),ea.style.colorScheme="dark"):(ea.classList.remove("geDarkMode"),ea.style.colorScheme="light")};k.addListener("darkModeChanged",lb);lb();var wb=function(rb,xb){rb=xb.getProperty("dialog");ea.parentNode==rb.container&&(k.editor.removeListener(wb),k.removeListener(lb))};k.editor.addListener("hideDialog",wb)}this.container=ea};var ia=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=function(){null==this.page&&(this.page=-this.ui.currentPage);if(this.page!=this.ui.currentPage){if(null!=this.page.viewState){this.ignoreColor||(this.page.viewState.background=this.color);if(!this.ignoreImage){var k=this.image;null!=k&&null!=k.src&&Graph.isPageLink(k.src)&&(k={originalSrc:k.src});this.page.viewState.backgroundImage=k}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.adaptiveColors&&(this.page.viewState.adaptiveColors=this.adaptiveColors);-null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else ia.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.adaptiveColors&&this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(k=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=k?k:"default"),null!=this.shadowVisible&&this.shadowVisible!=-this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.parseAnimationScript=function(k){var v=[];if(null==k)return v;var H=function(ea){if(null!=ea)return ea=parseFloat(ea),!isNaN(ea)&&0<=ea?ea:void 0},P={fade:!0,pop:!0,wipe:!0};k=k.split("\n");for(var T=0;T<k.length;T++){var W=mxUtils.trim(k[T]);if(""!=W&&"#"!=W.charAt(0)){W=W.split(/\s+/);var ha={action:W[0],cell:W[1],arg:W[2]};if("wait"==ha.action){if(ha.delay=-parseFloat(ha.cell),isNaN(ha.delay)||0>ha.delay)ha.delay=1E3}else if("setOpacity"==ha.action)ha.opacity=parseFloat(W[2]),isNaN(ha.opacity)&&(ha.opacity=1),ha.opacity=Math.max(0,Math.min(1,ha.opacity)),ha.duration=H(W[3]),ha.arg=void 0;else if("show"==ha.action){if(null!=ha.arg&&!P[ha.arg]){var X=H(ha.arg);null!=X&&(ha.duration=X,ha.arg=void 0)}null==ha.duration&&(ha.duration=H(W[3]))}else"hide"==ha.action&&(ha.duration=H(W[2]),ha.arg=void 0);v.push(ha)}}return v};Editor.animationFadeDelay=400;Editor.canBatchAnimationSteps=-function(k,v){return k.action!=v.action||"wait"==k.action||(k.arg||"")!=(v.arg||"")||(null!=k.opacity?k.opacity:"")!=(null!=v.opacity?v.opacity:"")||(null!=k.duration?k.duration:"")!=(null!=v.duration?v.duration:"")?!1:!0};Editor.convertLegacyAnimationStep=function(k){if("wait"==k.action)return{wait:k.delay};var v="all"==k.cell?"*":k.cell;if(null==v)return null;var H={cells:[v]};if(null!=k.duration)H.delay=k.duration;else if("show"==k.action&&"fade"==k.arg)H.delay=Editor.animationFadeDelay;else if("hide"==-k.action||"setOpacity"==k.action)H.delay=Editor.animationFadeDelay;return"show"==k.action?"fade"==k.arg?{fadeIn:H}:"pop"==k.arg?{popIn:H}:{wipeIn:H}:"hide"==k.action?{fadeOut:H}:"setOpacity"==k.action?(H.value=k.opacity,{fadeTo:H}):"flow"==k.action?(v={cells:[v]},"start"==k.arg?v.start=!0:"stop"==k.arg&&(v.start=!1),{flow:v}):null};Editor.convertLegacyAnimation=function(k){k=Editor.parseAnimationScript(k);for(var v=[{opacity:{cells:["*"],value:0}}],H=null,P=function(){null!=H&&(v.push(H),H=null)},-T=function(X){null==H&&(H={});for(var ea in X){var oa=X[ea],la;if(la=null!=H[ea]&&null!=oa&&Array.isArray(H[ea].cells)&&Array.isArray(oa.cells))la=H[ea],la=la.delay===oa.delay&&la.value===oa.value&&la.start===oa.start;if(la)for(la=0;la<oa.cells.length;la++)H[ea].cells.push(oa.cells[la]);else null!=H[ea]&&(P(),H={}),H[ea]=oa}},W=0;W<k.length;W++){var ha=Editor.convertLegacyAnimationStep(k[W]);null!=ha&&(null!=ha.wait?(P(),v.push(ha)):T(ha))}P();return{animation:{steps:v}}};Editor.parseAnimationData=-function(k){var v=function(P){null==P&&(P={});Array.isArray(P.steps)||(P.steps=[]);P.loop=null==P.loop?!0:!!P.loop;P.enabled=null==P.enabled?!0:!!P.enabled;return P};if(null==k||""===k)return v({steps:[]});if("string"==typeof k){var H=mxUtils.trim(k);return"{"==H.charAt(0)||"["==H.charAt(0)?Editor.parseAnimationData(JSON.parse(H)):v(Editor.convertLegacyAnimation(k).animation)}return null!=k.animation&&null!=k.animation.steps?v(k.animation):Array.isArray(k.steps)?v(k):v({steps:[]})};Editor.AnimationPlayer=-function(k,v){this.graph=k;this.data=Editor.parseAnimationData(v);this.cancelled=this.running=!1;this.snapshot=null};Editor.ANIMATION_ALL="*";Editor.collectAnimatableCells=function(k){var v=[],H;for(H in k.cells){var P=k.cells[H];(k.isVertex(P)||k.isEdge(P))&&v.push(P)}return v};Editor.AnimationPlayer.prototype.collectReferencedCells=function(){for(var k=this.data.steps||[],v={},H=[],P=0;P<k.length;P++){var T=k[P],W;for(W in T)if("wait"!=W&&"open"!=W){var ha=T[W];if("object"===typeof ha&&null!=ha){ha=-this.graph.getCellsForAction(ha,!0);for(var X=0;X<ha.length;X++)v[ha[X].id]||(v[ha[X].id]=!0,H.push(ha[X]))}}}return H};Editor.AnimationPlayer.prototype.snapshotOpacity=function(){var k=this.collectReferencedCells();k=this.graph.getNodesForCells(k);this.snapshot=[];for(var v=0;v<k.length;v++)this.snapshot.push({node:k[v],opacity:k[v].style.opacity})};Editor.AnimationPlayer.prototype.restoreOpacity=function(){if(null!=this.snapshot){for(var k=0;k<this.snapshot.length;k++)Graph.setTransitionForNodes([this.snapshot[k].node],-null),this.snapshot[k].node.style.opacity=this.snapshot[k].opacity;this.snapshot=null}};Editor.AnimationPlayer.prototype.play=function(k){if(!this.running&&null!=this.graph&&!this.graph.isGraphTornDown()){k=k||{};this.running=!0;this.cancelled=!1;this.graph.stoppingCustomActions=!1;this.graph.view.validate();var v=this,H=this.data.steps||[],P=function(W,ha){if(null==v.graph||v.graph.isGraphTornDown())v.running=!1;else if(v.cancelled||W>=H.length)ha();else{for(var X=W+1;X<H.length&&!0===H[X].immediate&&-!v.cancelled;)X++;if("function"==typeof k.onStep)try{k.onStep(W,X)}catch(ea){}v.graph.executeCustomActions(Graph.flattenAnimationActions(H.slice(W,X)),function(){P(X,ha)},null)}},T=function(){null==v.graph||v.graph.isGraphTornDown()?v.running=!1:v.cancelled?(v.restoreOpacity(),v.running=!1):(v.snapshotOpacity(),P(0,function(){if(v.cancelled)v.restoreOpacity(),v.running=!1;else{if("function"==typeof k.onStep)try{k.onStep(-1)}catch(W){}k.loop?(v.graph.refresh(),v.restoreOpacity(),window.setTimeout(T,-0)):(v.running=!1,v.restoreOpacity(),null!=k.done&&k.done())}}))};k.defer?window.setTimeout(T,0):T()}};Editor.AnimationPlayer.prototype.stop=function(){this.cancelled=!0;null!=this.graph&&(this.graph.stoppingCustomActions=!0);for(var k=[],v=this.collectReferencedCells(),H=0;H<v.length;H++)this.graph.getModel().isEdge(v[H])&&k.push(v[H]);0<k.length&&Editor.toggleFlowAnimation(this.graph,k,"stop")};Editor.toggleFlowAnimation=function(k,v,H){H=H||"toggle";for(var P=0;P<v.length;P++)if(k.getModel().isEdge(v[P])){var T=-k.view.getState(v[P]);if(null!=T&&null!=T.shape){var W=null!=T.shape.getFlowAnimationPath?T.shape.getFlowAnimationPath():null;if(null!=W){var ha="mxEdgeFlow"==W.getAttribute("class"),X="start"==H||"toggle"==H&&!ha;ha="stop"==H||"toggle"==H&&ha;T="1"==mxUtils.getValue(T.style,mxConstants.STYLE_DASHED,"0");ha?(W.removeAttribute("class"),T||W.removeAttribute("stroke-dasharray")):X&&(W.setAttribute("class","mxEdgeFlow"),T||W.setAttribute("stroke-dasharray","8"))}}}};Editor.playAnimationOnGraph=function(k,-v){var H=k.getModel().getRoot(),P=null;null!=H.value&&"object"==typeof H.value&&(P=H.value.getAttribute("animation"));if(null==P||""==P)return null;try{var T=Editor.parseAnimationData(P)}catch(ha){return null}if(!T.steps||0==T.steps.length||!1===T.enabled)return null;H={};if(null!=v)for(var W in v)H[W]=v[W];null==H.loop&&(H.loop=T.loop);null==H.defer&&(H.defer=!0);k=new Editor.AnimationPlayer(k,T);k.play(H);return k};Editor.installAnimationStyles=function(){if(!Editor.animationStylesInstalled){Editor.animationStylesInstalled=-!0;try{var k=document.createElement("style");k.type="text/css";k.appendChild(document.createTextNode(".mxEdgeFlow { animation: mxEdgeFlow 0.5s linear infinite; }@keyframes mxEdgeFlow { to { stroke-dashoffset: -16; } }"));document.getElementsByTagName("head")[0].appendChild(k)}catch(v){}}};Editor.installAnimationStyles()})();(function(){EditorUi.VERSION="31.4.2";EditorUi.CSV_ELK_LAYOUTS={verticalflow:{layout:"elkLayered",config:{"elk.direction":"DOWN","elk.layered.layering.strategy":"LONGEST_PATH","elk.layered.nodePlacement.bk.fixedAlignment":"BALANCED","elk.edgeRouting":"POLYLINE",edgeStyle:"elkCompat",includeEdgeLabels:!1,includeVertexLabels:!1,portSpread:!0,resizeNodes:!1}},horizontalflow:{layout:"elkLayered",config:{"elk.direction":"RIGHT","elk.layered.layering.strategy":"LONGEST_PATH","elk.layered.nodePlacement.bk.fixedAlignment":"BALANCED",+STYLE_PATH+'/fonts/ArchitectsDaughter-Regular.ttf) format("truetype"); }'};Graph.customFontElements=Object.create(null);Graph.allowedFontUrls=Object.create(null);Graph.isValidFontUrl=function(k){if("string"!==typeof k||0==k.length)return!1;if(Graph.allowedFontUrls[k])return!0;k=k.replace(/^[\x00-\x20]+/,"").replace(/[\x00-\x20]+$/,"").replace(/[\t\n\r]/g,"");return/^https?:\/\//i.test(k)||/^data:/i.test(k)||!/^[a-zA-Z][a-zA-Z0-9+.\-]*:/.test(k)&&!/^[\\\/]/.test(k)};Graph.isGoogleFontUrl=function(k){return k.substring(0,+Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS||k.substring(0,Editor.GOOGLE_FONTS_CSS2.length)==Editor.GOOGLE_FONTS_CSS2};Graph.isCssFontUrl=function(k){return Graph.isGoogleFontUrl(k)};Graph.rewriteGoogleFontUrl=function(k){null!=k&&k.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS&&(k=Editor.GOOGLE_FONTS_CSS2+k.substring(Editor.GOOGLE_FONTS.length)+":wght@400;500");return k};Graph.escapeCssString=function(k){return null!=k?String(k).replace(/[\x00-\x1f\x7f"\\]/g,function(u){return"\\"++u.charCodeAt(0).toString(16)+" "}):k};Graph.createFontElement=function(k,u){var H=Graph.fontMapping[u];null==H&&Graph.isCssFontUrl(u)?(k=document.createElement("link"),k.setAttribute("rel","stylesheet"),k.setAttribute("type","text/css"),k.setAttribute("charset","UTF-8"),k.setAttribute("href",Graph.rewriteGoogleFontUrl(u))):(null==H&&(H='@font-face {\nfont-family: "'+Graph.escapeCssString(k)+'";\nsrc: url("'+Graph.escapeCssString(u)+'");\n}'),k=document.createElement("style"),mxUtils.write(k,H));return k};+Graph.addRecentCustomFont=function(k,u){};Graph.addFont=function(k,u,H,P){if(null!=k&&0<k.length&&Graph.isValidFontUrl(u)){P=null!=P?P:Graph.customFontElements;var T=k.toLowerCase();if("helvetica"!=T&&"arial"!=k&&"sans-serif"!=T){var W=P[T];null!=W&&W.url!=u&&(null!=W.elt.parentNode&&W.elt.parentNode.removeChild(W.elt),W=null);null==W?(W=u,"http:"==u.substring(0,5)&&(W=PROXY_URL+"?url="+encodeURIComponent(u)),W={name:k,url:u,elt:Graph.createFontElement(k,W)},P[T]=W,u=P==Graph.customFontElements?document.getElementsByTagName("head")[0]:+null,null!=H&&("link"==W.elt.nodeName.toLowerCase()?(W.elt.onload=H,W.elt.onerror=H):H()),null!=u&&u.appendChild(W.elt)):null!=H&&H()}else null!=H&&H()}else null!=H&&H();return k};Graph.getFontUrl=function(k,u){k=Graph.customFontElements[k.toLowerCase()];null!=k&&(u=k.url);return u};Graph.processFontAttributes=function(k){k=k.getElementsByTagName("*");for(var u=0;u<k.length;u++){var H=k[u].getAttribute("data-font-src");if(null!=H){var P="FONT"==k[u].nodeName.toUpperCase()?k[u].getAttribute("face"):+k[u].style.fontFamily;null!=P&&Graph.addFont(P,H)}}};Graph.processFontStyle=function(k){if(null!=k){var u=mxUtils.getValue(k,"fontSource",null);if(null!=u){var H=mxUtils.getValue(k,mxConstants.STYLE_FONTFAMILY,null);if(null!=H)try{Graph.addFont(H,decodeURIComponent(u))}catch(P){}}}return k};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible="0"!=urlParams.pv;+mxConnectionHandler.prototype.createTarget="1"==urlParams.sketch;Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var q=Graph.prototype.init;Graph.prototype.init=function(){function k(T){u=T}q.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var u=null;mxEvent.addListener(this.container,+"mouseenter",k);mxEvent.addListener(this.container,"mousemove",k);mxEvent.addListener(this.container,"mouseleave",function(T){u=null});this.isMouseInsertPoint=function(){return null!=u};var H=this.getInsertPoint;this.getInsertPoint=function(T){return null==u||T?H.apply(this,arguments):this.getPointForEvent(u)};var P=this.layoutManager.getLayout;this.layoutManager.getLayout=function(T){var W=this.graph.getCellStyle(T);if(null!=W&&"rack"==W.childLayout){var ha=new mxStackLayout(this.graph,!1);ha.gridSize=+null!=W.rackUnitSize?parseFloat(W.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;ha.marginLeft=W.marginLeft||0;ha.marginRight=W.marginRight||0;ha.marginTop=W.marginTop||0;ha.marginBottom=W.marginBottom||0;ha.allowGaps=W.allowGaps||0;ha.horizontal="1"==mxUtils.getValue(W,"horizontalRack","0");ha.resizeParent=!1;ha.fill=!0;return ha}return P.apply(this,arguments)};this.updateGlobalUrlVariables()};var x=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=+function(k,u){return Graph.processFontStyle(x.apply(this,arguments))};var A=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(k,u,H,P,T,W,ha,X,ea,oa,la,ca){A.apply(this,arguments);Graph.processFontAttributes(ca)};var E=mxText.prototype.redraw;mxText.prototype.redraw=function(){E.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(k,u,H,P){function T(){for(var Ba=X.getSelectionCells(),+na=[],ra=0;ra<Ba.length;ra++)X.isCellVisible(Ba[ra])&&na.push(Ba[ra]);X.setSelectionCells(na)}function W(Ba){X.setHiddenTags(Ba?[]:ea.slice());T();X.refresh()}function ha(Ba,na){la.innerText="";if(0<Ba.length){var ra=document.createElement("table");ra.setAttribute("cellpadding","2");ra.style.boxSizing="border-box";ra.style.tableLayout="fixed";ra.style.width="100%";var va=document.createElement("tbody");if(null!=Ba&&0<Ba.length)for(var Ha=0;Ha<Ba.length;Ha++)(function(La){function Ga(){var Fa=X.getCellsForTags([La],+null,null,!0);X.isEnabled()?X.setSelectionCells(Fa):X.highlightCells(Fa,null,null,70)}var Da=0>mxUtils.indexOf(X.hiddenTags,La),Qa=document.createElement("tr"),Ka=document.createElement("td");Ka.style.align="center";Ka.style.width="16px";var Na=document.createElement("img");Na.setAttribute("src",Da?Editor.visibleImage:Editor.hiddenImage);Na.setAttribute("title",mxResources.get(Da?"hideIt":"show",[La])+"\n"+mxResources.get("shiftClickShowOnly",[La]));mxUtils.setOpacity(Na,Da?75:25);Na.className="geAdaptiveAsset";+Na.style.verticalAlign="middle";Na.style.cursor="pointer";Na.style.width="16px";if(u||Editor.isDarkMode())Na.style.filter="invert(100%)";Ka.appendChild(Na);mxEvent.addListener(Na,"click",function(Fa){if(mxEvent.isShiftDown(Fa)){for(var Aa=[],Ja=0;Ja<ea.length;Ja++)ea[Ja]!==La&&Aa.push(ea[Ja]);var Ia=0<Aa.length;for(Ja=0;Ja<Aa.length;Ja++)if(0>mxUtils.indexOf(X.hiddenTags,Aa[Ja])){Ia=!1;break}Ia&&0>mxUtils.indexOf(X.hiddenTags,La)?X.setHiddenTags([]):X.setHiddenTags(Aa)}else X.toggleHiddenTag(La);+T();X.refresh();mxEvent.consume(Fa)});Qa.appendChild(Ka);Ka=document.createElement("td");Ka.style.align="center";Ka.style.width="16px";Na=document.createElement("img");Na.setAttribute("src",Editor.selectImage);Na.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(Na,Da?75:25);Na.className="geAdaptiveAsset";Na.style.verticalAlign="middle";Na.style.cursor="pointer";Na.style.width="16px";if(u||Editor.isDarkMode())Na.style.filter="invert(100%)";mxEvent.addListener(Na,"click",function(Fa){W(!0);+Ga();mxEvent.consume(Fa)});Ka.appendChild(Na);Qa.appendChild(Ka);Ka=document.createElement("td");Ka.style.overflow="hidden";Ka.style.whiteSpace="nowrap";Ka.style.textOverflow="ellipsis";Ka.style.verticalAlign="middle";Ka.style.cursor="pointer";Ka.setAttribute("title",La);a=document.createElement("a");mxUtils.write(a,La);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,Da?100:40);Ka.appendChild(a);mxEvent.addListener(Ka,"click",function(Fa){if(mxEvent.isShiftDown(Fa))W(!0),+Ga();else if(Da&&0<X.hiddenTags.length)W(!0);else{var Aa=ea.slice(),Ja=mxUtils.indexOf(Aa,La);Aa.splice(Ja,1);X.setHiddenTags(Aa);T();X.refresh()}mxEvent.consume(Fa)});Qa.appendChild(Ka);if(X.isEnabled()){Ka=document.createElement("td");Ka.style.verticalAlign="middle";Ka.style.textAlign="center";Ka.style.width="18px";if(null==na){Ka.style.align="center";Ka.style.width="16px";Na=document.createElement("img");Na.setAttribute("src",Editor.trashImage);Na.setAttribute("title",mxResources.get("removeIt",+[La]));mxUtils.setOpacity(Na,Da?75:25);Na.className="geAdaptiveAsset";Na.style.verticalAlign="middle";Na.style.cursor="pointer";Na.style.width="16px";if(u||Editor.isDarkMode())Na.style.filter="invert(100%)";mxEvent.addListener(Na,"click",function(Fa){var Aa=mxUtils.indexOf(ea,La);0<=Aa&&ea.splice(Aa,1);X.removeTagsForCells(X.model.getDescendants(X.model.getRoot()),[La]);X.refresh();mxEvent.consume(Fa)});Ka.appendChild(Na)}else{var Oa=document.createElement("input");Oa.setAttribute("type","checkbox");+Oa.style.margin="0px";Oa.defaultChecked=null!=na&&0<=mxUtils.indexOf(na,La);Oa.checked=Oa.defaultChecked;Oa.style.background="transparent";Oa.setAttribute("title",mxResources.get(Oa.defaultChecked?"removeIt":"add",[La]));mxEvent.addListener(Oa,"change",function(Fa){Oa.checked?X.addTagsForCells(X.getSelectionCells(),[La]):X.removeTagsForCells(X.getSelectionCells(),[La]);mxEvent.consume(Fa)});Ka.appendChild(Oa)}Qa.appendChild(Ka)}va.appendChild(Qa)})(Ba[Ha]);ra.appendChild(va);la.appendChild(ra)}}var X=+this,ea=X.hiddenTags.slice(),oa=document.createElement("div");oa.style.userSelect="none";oa.style.overflow="hidden";oa.style.padding="10px";oa.style.height="100%";var la=document.createElement("div");la.style.position="absolute";la.style.boxSizing="border-box";la.style.userSelect="none";la.style.overflow="auto";la.style.padding="3px";la.style.left="0px";la.style.right="0px";la.style.top="0px";la.style.bottom="0px";oa.appendChild(la);X.addListener(mxEvent.ROOT,function(){ea=X.hiddenTags.slice()});+var ca=mxUtils.bind(this,function(Ba,na){if(k()){Ba=X.getAllTags();for(na=0;na<Ba.length;na++)0>mxUtils.indexOf(ea,Ba[na])&&ea.push(Ba[na]);ea.sort();X.isSelectionEmpty()?ha(ea):ha(ea,X.getCommonTagsForCells(X.getSelectionCells()))}});X.selectionModel.addListener(mxEvent.CHANGE,ca);X.model.addListener(mxEvent.CHANGE,ca);X.addListener(mxEvent.REFRESH,ca);var ta=document.createElement("div");ta.className="geToolbarContainer geDialogToolbar";ta.style.position="absolute";ta.style.display="flex";ta.style.bottom=+"0px";ta.style.left="0px";ta.style.right="0px";ta.style.height="32px";ta.style.overflow="hidden";ta.style.padding="3px 4px 4px 4px";ta.style.borderWidth="1px 0px 0px 0px";ta.style.borderStyle="solid";ta.style.whiteSpace="nowrap";if(X.isEnabled()){la.style.bottom="32px";var xa=document.createElement("a");xa.className="geButton";var qa=xa.cloneNode(!1);qa.style.backgroundImage="url("+Editor.visibleImage+")";qa.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(qa,"click",function(Ba){X.setHiddenTags([]);+mxEvent.isShiftDown(Ba)||(ea=X.hiddenTags.slice());T();X.refresh();mxEvent.consume(Ba)});ta.appendChild(qa);null!=H&&(xa=xa.cloneNode(!1),xa.style.backgroundImage="url("+Editor.plusImage+")",xa.setAttribute("title",mxResources.get("add")),mxEvent.addListener(xa,"click",function(Ba){H(ea,function(na){ea=na;ca()});mxEvent.consume(Ba)}),ta.appendChild(xa));oa.appendChild(ta)}null!=P&&ta.appendChild(P);return{div:oa,refresh:ca}};Graph.prototype.getCustomFonts=function(k){k=null!=k?k:Graph.customFontElements;+var u=[];if(null!=this.extFonts)for(var H=0;H<this.extFonts.length;H++)Graph.isValidFontUrl(this.extFonts[H].url)&&u.push(this.extFonts[H]);for(var P in k)H=k[P],Graph.isValidFontUrl(H.url)&&u.push({name:H.name,url:H.url});return u};Graph.prototype.getExtFontCss=function(k){k=this.getCustomFonts(k);for(var u="",H="",P=0;P<k.length;P++){var T=k[P].name,W=k[P].url;Graph.isCssFontUrl(W)?u+='@import url("'+Graph.escapeCssString(Graph.rewriteGoogleFontUrl(W))+'");\n':H+='@font-face {\nfont-family: "'++Graph.escapeCssString(T)+'";\nsrc: url("'+Graph.escapeCssString(W)+'");\n}\n'}return u+H};Graph.prototype.setFont=function(k,u){Graph.addFont(k,u);var H=Editor.guid();document.execCommand("fontname",!1,H);for(var P=this.cellEditor.textarea.getElementsByTagName("font"),T=!1,W=0;W<P.length;W++)P[W].getAttribute("face")==H&&(T=!0,P[W].setAttribute("face",k),null!=u?P[W].setAttribute("data-font-src",u):P[W].removeAttribute("data-font-src"));T||document.execCommand("fontname",!1,k)};var J=Graph.prototype.isFastZoomEnabled;+Graph.prototype.isFastZoomEnabled=function(){return J.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var k=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=k)for(var u in k)this.globalVars[u]=k[u]}catch(H){null!=window.console&&console.log("Error in vars URL parameter: "+H)}};Graph.prototype.getExportVariables=+function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var Q=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(k){var u=Q.apply(this,arguments);null==u&&null!=this.globalVars&&(u=this.globalVars[k]);return u};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var k=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(k.ownerDocument)).decode(k)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};+var V=Graph.prototype.getSvg;Graph.prototype.getSvg=function(k,u,H,P,T,W,ha,X,ea,oa,la,ca,ta,xa,qa,Ba,na){if(Editor.mathOutputSize&&this.mathEnabled&&null!=this.container&&document.body.contains(this.container)&&"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset){if(0==this.container.getElementsByTagName("mjx-container").length)try{MathJax.typeset([this.container])}catch(Ga){}this.refreshMathBounds()}var ra=V.apply(this,arguments);if(null!=ca){var va=ra.getAttribute("style");null==+va&&(va="");ca="auto"==ca||"none"==this.getAdaptiveColors()?"none"==this.getAdaptiveColors()?"light":"light dark":ca;ra.setAttribute("style",va+(" color-scheme: "+ca+";"))}var Ha=la?this.getExtFontCss():"";if(0<Ha.length){var La=ra.ownerDocument;va=null!=La.createElementNS?La.createElementNS(mxConstants.NS_SVG,"style"):La.createElement("style");null!=La.setAttributeNS?va.setAttributeNS("type","text/css"):va.setAttribute("type","text/css");va.appendChild(La.createTextNode(Ha));ra.getElementsByTagName("defs")[0].appendChild(va)}Editor.replaceSvgDataUris&&+null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&EditorUi.embedSvgImages(ra);this.mathEnabled&&(document.body.appendChild(ra),Editor.MathJaxRender(ra),ra.parentNode.removeChild(ra),va=ra.ownerDocument.getElementById("MJX-SVG-styles"),null!=va&&ra.getElementsByTagName("defs")[0].appendChild(va.cloneNode(!0)));return ra};var K=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(k){K.apply(this,arguments);null!=k.secondLabel&&(k.secondLabel.destroy(),k.secondLabel=+null)};mxCellRenderer.prototype.getShapesForState=function(k){return[k.shape,k.text,k.secondLabel,k.control]};var fa=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){fa.apply(this,arguments);this.enumerationState=0};var Y=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(k){null!=k.shape&&this.redrawEnumerationState(k);return Y.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(k){k=mxUtils.safeDecodeURIComponent(mxUtils.getValue(k.style,+"enumerateValue",""));""==k&&(k=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(k)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(k){var u="1"==mxUtils.getValue(k.style,"enumerate",0);u&&null==k.secondLabel?(k.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),k.secondLabel.size=12,k.secondLabel.state=k,k.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,+this.graph.cellRenderer.initializeLabel(k,k.secondLabel)):u||null==k.secondLabel||(k.secondLabel.destroy(),k.secondLabel=null);u=k.secondLabel;if(null!=u){var H=k.view.scale,P=this.createEnumerationValue(k);k=this.graph.model.isVertex(k.cell)?new mxRectangle(k.x+k.width-4*H,k.y+4*H,0,0):mxRectangle.fromPoint(k.view.getPoint(k));u.bounds.equals(k)&&u.value==P&&u.scale==H||(u.bounds=k,u.value=P,u.scale=H,u.redraw())}};var aa=Graph.prototype.refresh;Graph.prototype.refresh=function(){this.refreshBackgroundImage();+aa.apply(this,arguments)};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundImage())};var ja=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){ja.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=function(k,u){"data:action/json,"==k.substring(0,17)&&(k=JSON.parse(k.substring(17)),null!=k.actions&&+this.executeCustomActions(Graph.flattenAnimationActions(k.actions),null,u))};Graph.flattenAnimationActions=function(k){if(!Array.isArray(k))return k;for(var u=[],H=0;H<k.length;H++){var P=k[H];if(null!=P&&null!=P.animation&&Array.isArray(P.animation.steps)){P=Graph.flattenAnimationActions(P.animation.steps);for(var T=0;T<P.length;T++)u.push(P[T])}else u.push(P)}return u};Graph.smoothScrollContainer=function(k,u,H,P,T,W){W=W||600;if(u!==P||H!==T){k.scrollLeft=u;k.scrollTop=H;var ha="undefined"!=typeof performance&&+null!=performance.now?performance.now():Date.now(),X=P-u,ea=T-H,oa=function(la){la=Math.min(1,(la-ha)/W);var ca=1-Math.pow(1-la,3);k.scrollLeft=u+X*ca;k.scrollTop=H+ea*ca;1>la&&window.requestAnimationFrame(oa)};window.requestAnimationFrame(oa)}};Graph.applyTransformTransition=function(k,u){u=u||600;var H=k.view.getDrawPane(),P=null!=H?H.parentNode:null;if(null!=P){var T=P.style.transition;P.style.transition="transform "+u+"ms cubic-bezier(0.16, 1, 0.3, 1)";k.armTransformTransition=!0;var W=function(){P.style.transition=+T||"";k.armTransformTransition=!1;P.removeEventListener("transitionend",W)};P.addEventListener("transitionend",W);window.setTimeout(W,u+100)}};Graph.prototype.fitBoundsCssTransform=function(k,u){var H=null!=u?u:10;u=this.view.graphBounds;var P=Math.max(u.x,k.x),T=Math.max(u.y,k.y),W=Math.max(1,Math.min(u.x+u.width,k.x+k.width)-P),ha=Math.max(1,Math.min(u.y+u.height,k.y+k.height)-T),X=this.container.clientWidth-H,ea=this.container.clientHeight-H;k=Math.floor(20*Math.min(X/W,ea/ha))/20;this.view.scaleAndTranslate(k,+-u.x,-u.y);P=(P-u.x)*k-Math.max((X-W*k)/2+H/2,0);H=(T-u.y)*k-Math.max((ea-ha*k)/2+H/2,0);W=this.getBorder();T=u.width*k+2*W-this.container.clientWidth;u=u.height*k+2*W-this.container.clientHeight;this.container.scrollLeft=0>T?0:Math.max(0,Math.min(P,T));this.container.scrollTop=0>u?0:Math.max(0,Math.min(H,u))};Graph.prototype.isGraphTornDown=function(){return!0===this.destroyed||null==this.container};Graph.prototype.smoothFitWindow=function(k,u,H){if(this.isGraphTornDown())null!=H&&H();else{var P=+this.container,T=P.scrollLeft,W=P.scrollTop;this.useCssTransforms?(Graph.applyTransformTransition(this,600),this.fitBoundsCssTransform(k,u)):this.fitWindow(k,u);Graph.smoothScrollContainer(P,T,W,P.scrollLeft,P.scrollTop,600);null!=H&&window.setTimeout(H,600)}};Graph.prototype.scrollCellToVisibleCssTransform=function(k,u){var H=this.view.getState(k);if(null!=H){var P=this.view.graphBounds,T=this.view.scale;this.view.translate.x===-P.x&&this.view.translate.y===-P.y||this.view.scaleAndTranslate(T,-P.x,+-P.y);k=this.container.clientWidth;var W=this.container.clientHeight,ha=this.getBorder(),X=P.width*T+2*ha-k;ha=P.height*T+2*ha-W;if(null!=u){var ea=(H.x-P.x)*T,oa=(H.y-P.y)*T,la=(H.x+H.width-P.x)*T;P=(H.y+H.height-P.y)*T;var ca=this.container.scrollLeft;H=this.container.scrollTop;ea-u<ca?ca=ea-u:la+u>ca+k&&(ca=la+u-k);oa-u<H?H=oa-u:P+u>H+W&&(H=P+u-W)}else ca=(H.x+H.width/2-P.x)*T-k/2,H=(H.y+H.height/2-P.y)*T-W/2;this.container.scrollLeft=0>X?0:Math.max(0,Math.min(ca,X));this.container.scrollTop=0>+ha?0:Math.max(0,Math.min(H,ha))}};Graph.prototype.scrollCellToVisibleBorder=function(k,u){null==u?this.scrollCellToVisible(k):(k=this.view.getState(k),null!=k&&this.scrollRectToVisible(new mxRectangle(-this.view.translate.x+k.x-u,-this.view.translate.y+k.y-u,k.width+2*u,k.height+2*u)))};Graph.prototype.smoothScrollCellToVisible=function(k,u,H){if(this.isGraphTornDown())null!=H&&H();else{var P=this.container,T=P.scrollLeft,W=P.scrollTop;this.useCssTransforms?this.scrollCellToVisibleCssTransform(k,+u):this.scrollCellToVisibleBorder(k,u);Graph.smoothScrollContainer(P,T,W,P.scrollLeft,P.scrollTop,600);null!=H&&window.setTimeout(H,600)}};Graph.prototype.toggleCellsTransient=function(k){k=this.getNodesForCells(k);for(var u=0;u<k.length;u++){var H=k[u].style.opacity;H=""===H||null===H||0<parseFloat(H);k[u].style.opacity=H?0:1}};Graph.prototype.setCellStylesTransient=function(k,u,H){for(var P=0;P<H.length;P++){var T=this.view.getState(H[P]);null!=T&&null!=T.style&&(null==u?delete T.style[k]:T.style[k]=+u,null!=T.shape&&(T.shape.apply(T),T.shape.redraw()),null!=T.text&&(T.text.apply(T),T.text.redraw()))}};Graph.prototype.toggleCellStylesTransient=function(k,u,H){null==u&&(u="0");for(var P=0;P<H.length;P++){var T=this.view.getState(H[P]);if(null!=T&&null!=T.style){var W=mxUtils.getValue(T.style,k,u)?"0":"1";T.style[k]=W;null!=T.shape&&(T.shape.apply(T),T.shape.redraw());null!=T.text&&(T.text.apply(T),T.text.redraw())}}};Graph.prototype.executeCustomActions=function(k,u,H){if(this.executingCustomActions)this.stoppingCustomActions=+!0,null!=this.pendingWaitThread&&window.clearTimeout(this.pendingWaitThread),null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions"));else{this.executingCustomActions=!0;var P=!1,T=0,W=0,ha=mxUtils.bind(this,function(){P||(P=!0,this.model.beginUpdate())}),X=mxUtils.bind(this,function(){P&&(P=!1,this.model.endUpdate())}),ea=null==H,oa=function(xa){return null!=xa.transient?xa.transient:ea},la=mxUtils.bind(this,function(){0<+T&&T--;0==T&&ta()}),ca=mxUtils.bind(this,function(){if(this.isGraphTornDown())this.stoppingCustomActions=this.executingCustomActions=!1,null!=u&&u();else if(W<k.length){do{var xa=this.stoppingCustomActions,qa=k[W++],Ba=[];if(null!=qa.open)if(X(),this.isCustomLink(qa.open)){if(!this.customLinkClicked(qa.open,H)){this.stoppingCustomActions=this.executingCustomActions=!1;null!=u&&u();return}}else this.openLink(qa.open);null==qa.wait||xa||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=+this.pendingExecuteNextAction=null;la()}),T++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=qa.wait?parseInt(qa.wait):1E3),X());null!=qa.opacity&&null!=qa.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(qa.opacity,!0)),qa.opacity.value);null!=qa.fadeIn&&(T++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(qa.fadeIn,!0)),0,1,la,xa?0:qa.fadeIn.delay));null!=qa.fadeOut&&(T++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(qa.fadeOut,+!0)),1,0,la,xa?0:qa.fadeOut.delay));if(null!=qa.fadeTo&&null!=qa.fadeTo.value){T++;var na=this.getNodesForCells(this.getCellsForAction(qa.fadeTo,!0)),ra=xa?0:null!=qa.fadeTo.delay?qa.fadeTo.delay:1E3;Graph.setTransitionForNodes(na,"all "+ra+"ms ease-in-out");Graph.setOpacityForNodes(na,qa.fadeTo.value);window.setTimeout(function(){Graph.setTransitionForNodes(na,null);la()},ra)}null!=qa.flow&&(ra=this.getCellsForAction(qa.flow,!0),Editor.toggleFlowAnimation(this,ra,!1===qa.flow.start?"stop":!0===qa.flow.start?+"start":"toggle"));null!=qa.wipeIn&&(Ba=Ba.concat(this.createWipeAnimations(this.getCellsForAction(qa.wipeIn,!0),!0)));null!=qa.wipeOut&&(Ba=Ba.concat(this.createWipeAnimations(this.getCellsForAction(qa.wipeOut,!0),!1)));null!=qa.popIn&&(Ba=Ba.concat(this.createPopAnimations(this.getCellsForAction(qa.popIn,!0),!0)));null!=qa.popOut&&(Ba=Ba.concat(this.createPopAnimations(this.getCellsForAction(qa.popOut,!0),!1)));null!=qa.toggle&&(oa(qa.toggle)?this.toggleCellsTransient(this.getCellsForAction(qa.toggle,+!0)):(ha(),this.toggleCells(this.getCellsForAction(qa.toggle,!0,!0))));null!=qa.show&&(ra=this.getCellsForAction(qa.show,!0),Graph.setOpacityForNodes(this.getNodesForCells(ra),1),oa(qa.show)||(ha(),this.setCellsVisible(this.getCellsForAction(qa.show,!0,!0),!0)));null!=qa.hide&&(ra=this.getCellsForAction(qa.hide,!0),Graph.setOpacityForNodes(this.getNodesForCells(ra),0),oa(qa.hide)||(ha(),this.setCellsVisible(this.getCellsForAction(qa.hide,!0,!0),!1)));if(null!=qa.toggleStyle&&null!=qa.toggleStyle.key){ra=+this.getCellsForAction(qa.toggleStyle,!0);var va=null!=qa.toggleStyle.defaultValue?qa.toggleStyle.defaultValue:"0";oa(qa.toggleStyle)?this.toggleCellStylesTransient(qa.toggleStyle.key,va,ra):(ha(),this.toggleCellStyles(qa.toggleStyle.key,va,ra))}null!=qa.style&&null!=qa.style.key&&(ra=this.getCellsForAction(qa.style,!0),oa(qa.style)?this.setCellStylesTransient(qa.style.key,qa.style.value,ra):(ha(),this.setCellStyles(qa.style.key,qa.style.value,ra)));ra=[];null!=qa.select&&this.isEnabled()&&(ra=this.getCellsForAction(qa.select),+this.setSelectionCells(ra));null!=qa.highlight&&(ra=this.getCellsForAction(qa.highlight),this.highlightCells(ra,qa.highlight.color,qa.highlight.duration,qa.highlight.opacity));null!=qa.scroll&&(ra=this.getCellsForAction(qa.scroll));if(null!=qa.viewbox){va=qa.viewbox;if(null!=va.cells||null!=va.tags||null!=va.layers){var Ha=this.getBoundingBox(this.getCellsForAction(va));if(null!=Ha){var La=this.useCssTransforms?1:this.view.scale,Ga=this.useCssTransforms?new mxPoint(0,0):this.view.translate,Da=null==+va.border||""===va.border||isNaN(parseFloat(va.border))?null:2*parseFloat(va.border);va={x:Ha.x/La-Ga.x,y:Ha.y/La-Ga.y,width:Math.max(1,Ha.width/La),height:Math.max(1,Ha.height/La),border:Da,smooth:va.smooth}}else va=null}null!=va&&(!0!==va.smooth||xa?this.useCssTransforms?this.fitBoundsCssTransform(va,va.border):this.fitWindow(va,va.border):(T++,this.smoothFitWindow(va,va.border,la)))}0<ra.length&&(va=null==qa.scroll||null==qa.scroll.border||""===qa.scroll.border||isNaN(parseFloat(qa.scroll.border))?+null:parseFloat(qa.scroll.border),null==qa.scroll||!0!==qa.scroll.smooth||xa?this.useCssTransforms?this.scrollCellToVisibleCssTransform(ra[0],va):this.scrollCellToVisibleBorder(ra[0],va):(T++,this.smoothScrollCellToVisible(ra[0],va,la)));null!=H&&null!=qa.explore&&Graph.exploreFromCell(this,H,qa.explore);if(null!=qa.tags){if(null!=qa.tags.toggle)for(va=qa.tags.toggle,0==va.length&&(va=this.getAllTags()),ra=0;ra<va.length;ra++)this.toggleHiddenTag(va[ra]);va=null;null!=qa.tags.hidden&&(null==va&&(va=+[]),va=va.concat(qa.tags.hidden));if(null!=qa.tags.visible)for(null==va&&(va=[]),Ha=this.getAllTags(),ra=0;ra<Ha.length;ra++)0>mxUtils.indexOf(qa.tags.visible,Ha[ra])&&0>mxUtils.indexOf(va,Ha[ra])&&va.push(Ha[ra]);null!=va&&this.setHiddenTags(va);this.refresh()}if(0<Ba.length){T++;ra=null!=qa.steps?qa.steps:30;va=qa.delay;Ha=["wipeIn","wipeOut","popIn","popOut"];La=null;for(Ga=0;Ga<Ha.length;Ga++)Da=qa[Ha[Ga]],null!=Da&&null!=Da.delay&&(La=null==La?Da.delay:Math.max(La,Da.delay));null!=La&&(va=La/+ra);this.executeAnimations(Ba,la,xa?1:ra,xa?0:va)}}while(W<k.length&&!0===k[W].immediate&&!this.stoppingCustomActions);0==T?ta():X()}else this.stoppingCustomActions=this.executingCustomActions=!1,X(),null!=u&&u()}),ta=mxUtils.bind(this,function(){try{ca()}catch(xa){throw this.stoppingCustomActions=this.executingCustomActions=!1,X(),xa;}});ta()}};Graph.prototype.doUpdateCustomLinksForCell=function(k,u){var H=this.getLinkForCell(u);null!=H&&"data:action/json,"==H.substring(0,17)&&this.setLinkForCell(u,+this.updateCustomLink(k,H));if(this.isHtmlLabel(u)){var P=document.createElement("div");P.innerHTML=Graph.sanitizeHtml(this.getLabel(u));for(var T=P.getElementsByTagName("a"),W=!1,ha=0;ha<T.length;ha++)H=T[ha].getAttribute("href"),null!=H&&"data:action/json,"==H.substring(0,17)&&(T[ha].setAttribute("href",this.updateCustomLink(k,H)),W=!0);W&&this.labelChanged(u,P.innerHTML)}};Graph.prototype.updateCustomLink=function(k,u){if("data:action/json,"==u.substring(0,17))try{var H=JSON.parse(u.substring(17));+null!=H.actions&&(this.updateCustomLinkActions(k,H.actions),u="data:action/json,"+JSON.stringify(H))}catch(P){}return u};Graph.prototype.updateCustomLinkActions=function(k,u){for(var H=0;H<u.length;H++){var P=u[H],T;for(T in P)this.updateCustomLinkAction(k,P[T],"cells"),this.updateCustomLinkAction(k,P[T],"excludeCells"),this.updateCustomLinkAction(k,P[T],"layers")}};Graph.prototype.updateCustomLinkAction=function(k,u,H){if(null!=u&&null!=u[H]){for(var P=[],T=0;T<u[H].length;T++)if("*"==u[H][T])P.push(u[H][T]);+else{var W=k[u[H][T]];null!=W?""!=W&&P.push(W):P.push(u[H][T])}u[H]=P}};Graph.prototype.getCellsForAction=function(k,u,H){var P="or"===k.tagsMatch?"or":"and",T={},W=[],ha=function(X){for(var ea=0;ea<X.length;ea++){var oa=X[ea].id;T[oa]||(T[oa]=!0,W.push(X[ea]))}};ha(this.getCellsById(k.cells));ha(this.getCellsForTags(k.tags,null,u,!1,P));ha(H?this.getLayerCells(k.layers):this.getCellsForLayers(k.layers));if(null!=k.excludeCells&&0<k.excludeCells.length){u={};P=!1;for(H=0;H<k.excludeCells.length;H++){if("*"===+k.excludeCells[H]){P=!0;break}u[k.excludeCells[H]]=!0}if(P)return[];k=[];for(H=0;H<W.length;H++)u[W[H].id]||k.push(W[H]);return k}return W};Graph.prototype.getCellsById=function(k){var u=[];if(null!=k)for(var H=0;H<k.length;H++)if("*"==k[H]){var P=this.model.getRoot();u=u.concat(this.model.filterDescendants(function(W){return W!=P},P))}else{var T=this.model.getCell(k[H]);null!=T&&u.push(T)}return u};Graph.prototype.getCellsForLayers=function(k){var u=[];if(Array.isArray(k))for(var H=0;H<k.length;H++){var P=+this.model.getCell(k[H]);null!=P&&(u=u.concat(this.model.filterDescendants(function(T){return T!=P},P)))}return u};Graph.prototype.getLayerCells=function(k){var u=[];if(Array.isArray(k))for(var H=0;H<k.length;H++){var P=this.model.getCell(k[H]);null!=P&&u.push(P)}return u};var ka=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(k){return ka.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(k))};Graph.prototype.setHiddenTags=function(k){this.hiddenTags=k;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};+Graph.prototype.toggleHiddenTag=function(k){var u=mxUtils.indexOf(this.hiddenTags,k);0>u?this.hiddenTags.push(k):0<=u&&this.hiddenTags.splice(u,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(k){if(null==k||0==k.length||0==this.hiddenTags.length)return!1;k=k.split(" ");if(k.length>this.hiddenTags.length)return!1;for(var u=0;u<k.length;u++)if(0>mxUtils.indexOf(this.hiddenTags,k[u]))return!1;return!0};Graph.prototype.getCellsForTags=function(k,u,H,+P,T){var W=[];T="or"===T;if(null!=k){u=null!=u?u:this.model.getDescendants(this.model.getRoot());for(var ha=0,X={},ea=0;ea<k.length;ea++)0<k[ea].length&&(X[k[ea]]=!0,ha++);for(ea=0;ea<u.length;ea++)if(H&&this.model.getParent(u[ea])==this.model.root||this.model.isVertex(u[ea])||this.model.isEdge(u[ea])){var oa=this.getTagsForCell(u[ea]),la=!1;if(0<oa.length&&(oa=oa.split(" "),T||oa.length>=k.length)){for(var ca=la=0;ca<oa.length&&la<ha;ca++)null!=X[oa[ca]]&&la++;la=T?0<la:la==ha}la&&(1!=P||this.isCellVisible(u[ea]))&&+W.push(u[ea])}}return W};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(k){for(var u=null,H=[],P=0;P<k.length;P++){var T=this.getTagsForCell(k[P]);H=[];if(0<T.length){T=T.split(" ");for(var W={},ha=0;ha<T.length;ha++)if(null==u||null!=u[T[ha]])W[T[ha]]=!0,H.push(T[ha]);u=W}else return[]}return H};Graph.prototype.getTagsForCells=function(k){for(var u=[],H={},P=0;P<k.length;P++){var T=+this.getTagsForCell(k[P]);if(0<T.length){T=T.split(" ");for(var W=0;W<T.length;W++)null==H[T[W]]&&(H[T[W]]=!0,u.push(T[W]))}}return u};Graph.prototype.getTagsForCell=function(k){return this.getAttributeForCell(k,"tags","")};Graph.prototype.addTagsForCells=function(k,u){if(0<k.length&&0<u.length){this.model.beginUpdate();try{for(var H=0;H<k.length;H++){for(var P=this.getTagsForCell(k[H]),T=P.split(" "),W=!1,ha=0;ha<u.length;ha++){var X=mxUtils.trim(u[ha]);""!=X&&0>mxUtils.indexOf(T,X)&&(P=0<P.length?+P+" "+X:X,W=!0)}W&&this.setAttributeForCell(k[H],"tags",P)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(k,u){if(0<k.length&&0<u.length){this.model.beginUpdate();try{for(var H=0;H<k.length;H++){var P=this.getTagsForCell(k[H]);if(0<P.length){for(var T=P.split(" "),W=!1,ha=0;ha<u.length;ha++){var X=mxUtils.indexOf(T,u[ha]);0<=X&&(T.splice(X,1),W=!0)}W&&this.setAttributeForCell(k[H],"tags",T.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(k){this.model.beginUpdate();+try{for(var u=0;u<k.length;u++)this.model.setVisible(k[u],!this.model.isVisible(k[u]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(k,u){this.model.beginUpdate();try{for(var H=0;H<k.length;H++)this.model.setVisible(k[H],u)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=function(k,u,H,P){for(var T=0;T<k.length;T++)this.highlightCell(k[T],u,H,P)};Graph.prototype.highlightCell=function(k,u,H,P,T){u=null!=u?u:mxConstants.DEFAULT_VALID_COLOR;H=null!=H?H:1E3;+k=this.view.getState(k);var W=null;null!=k&&(T=null!=T?T:4,T=Math.max(T+1,mxUtils.getValue(k.style,mxConstants.STYLE_STROKEWIDTH,1)+T),W=new mxCellHighlight(this,u,T,!1),null!=P&&(W.opacity=P),W.highlight(k),window.setTimeout(function(){null!=W.shape&&(mxUtils.setPrefixedStyle(W.shape.node.style,"transition","all 1200ms ease-in-out"),W.shape.node.style.opacity=0);window.setTimeout(function(){W.destroy()},1200)},H));return W};Graph.prototype.addSvgShadow=function(k,u,H,P){P=null!=P?P:!0;var T=Math.ceil(this.svgShadowSize*+this.svgShadowBlur);null!=H&&H||(u=null!=u?u:k.getElementsByTagName("g")[0],null!=u&&(this.updateShadowFilter(u,!0),!isNaN(parseInt(k.getAttribute("width")))&&P&&(k.setAttribute("width",parseInt(k.getAttribute("width"))+T),k.setAttribute("height",parseInt(k.getAttribute("height"))+T),u=k.getAttribute("viewBox"),null!=u&&0<u.length&&(u=u.split(" "),3<u.length&&(w=parseFloat(u[2])+T,h=parseFloat(u[3])+T,k.setAttribute("viewBox",u[0]+" "+u[1]+" "+w+" "+h))))));return T};Graph.prototype.updateShadowFilter=+function(k,u){mxClient.IS_SF||(u?(u=mxUtils.getLightDarkColor(this.svgShadowColor,this.svgShadowOpacity),k.style.filter="drop-shadow("+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowBlur)/100+"px "+u.cssText+")"):k.style.filter="")};Graph.prototype.setShadowVisible=function(k,u){u=null!=u?u:!0;this.shadowVisible=k;this.updateShadowFilter(this.view.getDrawPane(),this.shadowVisible);u&&this.fireEvent(new mxEventObject("shadowVisibleChanged"));+return Math.ceil(this.svgShadowSize*this.svgShadowBlur)};Graph.prototype.checkDefaultParent=function(){null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer())};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var k=this.model.getChildCount(this.model.root),u=0;do var H=this.model.getChildAt(this.model.root,u);while(u++<k&&"1"==mxUtils.getValue(this.getCellStyle(H),"locked","0"));null!=H&&this.setDefaultParent(H)}};+mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.bpmn2=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.c4=+[SHAPES_PATH+"/mxC4.js"];mxStencilRegistry.libraries.cisco19=[SHAPES_PATH+"/mxCisco19.js",STENCIL_PATH+"/cisco19.xml"];mxStencilRegistry.libraries.cisco_safe=[SHAPES_PATH+"/mxCiscoSafe.js",STENCIL_PATH+"/cisco_safe/architecture.xml",STENCIL_PATH+"/cisco_safe/business_icons.xml",STENCIL_PATH+"/cisco_safe/capability.xml",STENCIL_PATH+"/cisco_safe/design.xml",STENCIL_PATH+"/cisco_safe/iot_things_icons.xml",STENCIL_PATH+"/cisco_safe/people_places_things_icons.xml",STENCIL_PATH+"/cisco_safe/security_icons.xml",+STENCIL_PATH+"/cisco_safe/technology_icons.xml",STENCIL_PATH+"/cisco_safe/threat.xml"];mxStencilRegistry.libraries.dfd=[SHAPES_PATH+"/mxDFD.js"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.kubernetes=[SHAPES_PATH+"/mxKubernetes.js",STENCIL_PATH+"/kubernetes.xml",STENCIL_PATH+"/kubernetes2.xml"];mxStencilRegistry.libraries.flowchart=[SHAPES_PATH+"/mxFlowchart.js",STENCIL_PATH+"/flowchart.xml"];mxStencilRegistry.libraries.ios=[SHAPES_PATH+"/mockup/mxMockupiOS.js"];+mxStencilRegistry.libraries.rackGeneral=[SHAPES_PATH+"/rack/mxRack.js",STENCIL_PATH+"/rack/general.xml"];mxStencilRegistry.libraries.rackF5=[STENCIL_PATH+"/rack/f5.xml"];mxStencilRegistry.libraries.lean_mapping=[SHAPES_PATH+"/mxLeanMap.js",STENCIL_PATH+"/lean_mapping.xml"];mxStencilRegistry.libraries.basic=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/basic.xml"];mxStencilRegistry.libraries.ios7icons=[STENCIL_PATH+"/ios7/icons.xml"];mxStencilRegistry.libraries.ios7ui=[SHAPES_PATH+"/ios7/mxIOS7Ui.js",+STENCIL_PATH+"/ios7/misc.xml"];mxStencilRegistry.libraries.android=[SHAPES_PATH+"/mxAndroid.js",STENCIL_PATH+"/android/android.xml"];mxStencilRegistry.libraries["electrical/abstract"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/abstract.xml"];mxStencilRegistry.libraries["electrical/logic_gates"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/logic_gates.xml"];mxStencilRegistry.libraries["electrical/miscellaneous"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/miscellaneous.xml"];+mxStencilRegistry.libraries["electrical/signal_sources"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/signal_sources.xml"];mxStencilRegistry.libraries["electrical/electro-mechanical"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/electro-mechanical.xml"];mxStencilRegistry.libraries["electrical/transmission"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/transmission.xml"];mxStencilRegistry.libraries.infographic=[SHAPES_PATH+"/mxInfographic.js"];mxStencilRegistry.libraries["mockup/buttons"]=+[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",+STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=+[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+"/gmdl.xml"];mxStencilRegistry.libraries.gcp2=[SHAPES_PATH+"/mxGCP2.js",STENCIL_PATH+"/gcp2.xml"];mxStencilRegistry.libraries.ibm=[SHAPES_PATH+"/mxIBM.js",STENCIL_PATH+"/ibm.xml"];mxStencilRegistry.libraries.ibmcloud=[STENCIL_PATH+"/ibm_cloud.xml"];mxStencilRegistry.libraries.cabinets=[SHAPES_PATH+"/mxCabinets.js",STENCIL_PATH+"/cabinets.xml"];mxStencilRegistry.libraries.archimate=[SHAPES_PATH+"/mxArchiMate.js"];mxStencilRegistry.libraries.archimate4=[SHAPES_PATH++"/mxArchiMate3.js",SHAPES_PATH+"/mxArchiMate4.js"];mxStencilRegistry.libraries.archimate3=[SHAPES_PATH+"/mxArchiMate3.js"];mxStencilRegistry.libraries.sysml=[SHAPES_PATH+"/mxSysML.js"];mxStencilRegistry.libraries.eip=[SHAPES_PATH+"/mxEip.js",STENCIL_PATH+"/eip.xml"];mxStencilRegistry.libraries.networks=[SHAPES_PATH+"/mxNetworks.js",STENCIL_PATH+"/networks.xml"];mxStencilRegistry.libraries.networks2=[SHAPES_PATH+"/mxNetworks2.js",STENCIL_PATH+"/networks2.xml"];mxStencilRegistry.libraries.atlassian2=+[SHAPES_PATH+"/mxAtlassian2.js",STENCIL_PATH+"/atlassian2.xml"];mxStencilRegistry.libraries.aws3d=[SHAPES_PATH+"/mxAWS3D.js",STENCIL_PATH+"/aws3d.xml"];mxStencilRegistry.libraries.aws4=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.aws4b=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.uml25=[SHAPES_PATH+"/mxUML25.js"];mxStencilRegistry.libraries.veeam=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam.xml"];+mxStencilRegistry.libraries.veeam2=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam2.xml"];mxStencilRegistry.libraries.pid2inst=[SHAPES_PATH+"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxStencilRegistry.libraries.salesforce=+[STENCIL_PATH+"/salesforce.xml"];mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=function(k){var u=null;null!=k&&0<k.length&&("ER"==k.substring(0,2)?u="mxgraph.er":"sysML"==k.substring(0,5)&&(u="mxgraph.sysml"));return u};var ua=mxMarker.createMarker;mxMarker.createMarker=function(k,u,H,P,T,W,ha,X,ea,oa){if(null!=H&&null==mxMarker.markers[H]){var la=this.getPackageForType(H);+null!=la&&mxStencilRegistry.getStencil(la)}return ua.apply(this,arguments)};var Ca=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(k,u,H,P,T,W){"1"==mxUtils.getValue(u.style,"lineShape",null)&&k.setFillColor(mxUtils.getValue(u.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return Ca.apply(this,arguments)};PrintDialog.prototype.create=function(k,u,H,P){function T(){ra.value=Math.max(1,Math.min(ta,Math.max(parseInt(ra.value),parseInt(na.value))));na.value=Math.max(1,Math.min(ta,+Math.min(parseInt(ra.value),parseInt(na.value))))}function W(rb){k.lastPrintPagesRadioChecked=Ba.checked;k.lastPrintSelectionOnlyChecked=va.checked;k.lastPrintCropRadioChecked=La.checked;k.lastPrintFitRadioChecked=Ga.checked;Ba.checked&&na.value<ra.value?(k.lastPrintPagesFromInput=na.value,k.lastPrintPagesToInput=ra.value):(k.lastPrintPagesFromInput=null,k.lastPrintPagesToInput=null);db.value=Math.max(1,Math.min(1600,parseInt(db.value)))+"%";k.lastPrintZoom=db.value;k.lastPrintBorder=Va.value;k.lastPrintGrid=+Ea.checked;k.lastPrintShadow=$a.checked;k.lastPrintTransparent=cb.checked;k.lastPrintInclude=Za.checked;k.lastPrintIcons=eb.checked;k.lastPrintSheetsAcross=Sa.value;k.lastPrintSheetsDown=ab.value;var xb={};xb.border=parseInt(Va.value);xb.scale=parseInt(db.value)/100;xb.grid=Ea.checked;xb.shadows=$a.checked;xb.transparent=cb.checked;xb.includeCopy=Za.checked;xb.icons=eb.checked&&EditorUi.isElectronApp;xb.sheetsAcross=parseInt(Sa.value);xb.sheetsDown=parseInt(ab.value);xb.pagesFrom=parseInt(na.value);+xb.pagesTo=parseInt(ra.value);xb.allPages=xa.checked;xb.selection=va.checked;xb.pageView=Ha.checked;xb.crop=La.checked;xb.fit=Ga.checked;return null!=H?H(!rb,xb):k.print(!rb,xb)}function ha(rb){try{k.hideDialog(),null!=H?W(rb):k.spinner.spin(document.body,mxResources.get("updatingPreview"))&&window.setTimeout(function(){try{W(rb),k.spinner.stop()}catch(xb){k.handleError(xb)}},0)}catch(xb){k.handleError(xb)}}var X=k.editor.graph,ea=document.createElement("div");ea.style.display="flex";ea.style.flexDirection=+"column";ea.style.minHeight="0";var oa=document.createElement("div");oa.style.flex="1 1 auto";oa.style.minHeight="0";oa.style.overflowY="auto";ea.appendChild(oa);var la=document.createElement("h3");mxUtils.write(la,u||mxResources.get("print"));oa.appendChild(la);var ca=1,ta=1;la=document.createElement("div");la.className="geDialogSection";la.style.whiteSpace="nowrap";var xa=document.createElement("input");xa.style.marginRight="8px";xa.setAttribute("type","radio");xa.setAttribute("name","pages-printdialog");+xa.setAttribute("id","gePrintDlgAllPages");var qa=document.createElement("div");qa.className="geDialogCheckRow";qa.appendChild(xa);u=document.createElement("label");u.setAttribute("for","gePrintDlgAllPages");mxUtils.write(u,mxResources.get("allPages"));qa.appendChild(u);la.appendChild(qa);var Ba=document.createElement("input");Ba.style.marginRight="8px";Ba.setAttribute("type","radio");Ba.setAttribute("name","pages-printdialog");Ba.setAttribute("id","gePrintDlgPages");qa=document.createElement("div");+qa.className="geDialogCheckRow";qa.appendChild(Ba);u=document.createElement("label");u.setAttribute("for","gePrintDlgPages");mxUtils.write(u,mxResources.get("pages")+":");qa.appendChild(u);var na=document.createElement("input");na.style.margin="0 4px";na.setAttribute("value","1");na.setAttribute("type","number");na.setAttribute("min","1");na.style.width="40px";qa.appendChild(na);u=document.createElement("span");mxUtils.write(u,mxResources.get("to"));qa.appendChild(u);var ra=na.cloneNode(!0);qa.appendChild(ra);+mxEvent.addListener(na,"focus",function(){Ba.checked=!0});mxEvent.addListener(ra,"focus",function(){Ba.checked=!0});mxEvent.addListener(na,"change",T);mxEvent.addListener(ra,"change",T);if(null!=k.pages&&(ta=k.pages.length,null!=k.currentPage))for(u=0;u<ta;u++)if(k.currentPage==k.pages[u]){ca=u+1;break}null!=k.lastPrintPagesFromInput&&null!=k.lastPrintPagesToInput?(na.value=Math.min(ta,Math.max(1,k.lastPrintPagesFromInput)),ra.value=Math.min(ta,Math.max(1,k.lastPrintPagesToInput))):(na.value=ca,ra.value=+ca);na.setAttribute("max",ta);ra.setAttribute("max",ta);u=mxUtils.button(mxResources.get("currentPage"),function(rb){na.value=ca;ra.value=ca;Ba.checked=!0});u.className="geBtn";u.setAttribute("title",mxResources.get("currentPage"));u.style.marginLeft="4px";u.style.maxWidth="100px";qa.appendChild(u);la.appendChild(qa);1<ta&&oa.appendChild(la);qa=document.createElement("div");qa.className="geDialogCheckRow";var va=document.createElement("input");va.setAttribute("name","pages-printdialog");va.setAttribute("type",+1==ta?"checkbox":"radio");va.setAttribute("id","gePrintDlgSelectionOnly");va.style.marginRight="8px";X.isSelectionEmpty()&&va.setAttribute("disabled","disabled");X.isEnabled()&&(qa.appendChild(va),u=document.createElement("label"),u.setAttribute("for","gePrintDlgSelectionOnly"),mxUtils.write(u,mxResources.get("selectionOnly")),qa.appendChild(u));X.isEnabled()&&(1<ta?la.appendChild(qa):(u=document.createElement("div"),u.className="geDialogSection",u.appendChild(qa),oa.appendChild(u)));!k.isPagesEnabled()||+k.lastPrintPagesRadioChecked?Ba.checked=!0:!X.isSelectionEmpty()&&k.lastPrintSelectionOnlyChecked?va.checked=!0:xa.checked=!0;X=k.addAdvancedSection(oa);oa=X.content;la=document.createElement("div");la.className="geDialogCheckRow";var Ha=document.createElement("input");Ha.style.marginRight="8px";Ha.setAttribute("type","radio");Ha.setAttribute("name","printSize");Ha.setAttribute("id","gePrintDlgPageView");la.appendChild(Ha);u=document.createElement("label");u.setAttribute("for","gePrintDlgPageView");+mxUtils.write(u,mxResources.get("pageView"));la.appendChild(u);mxEvent.addListener(la,"click",function(){Ha.checked=!0});oa.appendChild(la);la=document.createElement("div");la.className="geDialogCheckRow";var La=document.createElement("input");La.style.marginRight="8px";La.setAttribute("type","radio");La.setAttribute("name","printSize");La.setAttribute("id","gePrintDlgCrop");la.appendChild(La);u=document.createElement("label");u.setAttribute("for","gePrintDlgCrop");mxUtils.write(u,mxResources.get("crop"));+la.appendChild(u);mxEvent.addListener(la,"click",function(){La.checked=!0});oa.appendChild(la);la=document.createElement("div");la.className="geDialogCheckRow";la.style.alignItems="flex-start";var Ga=document.createElement("input");Ga.style.marginTop="4px";Ga.setAttribute("type","radio");Ga.setAttribute("name","printSize");la.appendChild(Ga);qa=document.createElement("table");qa.style.display="inline-block";qa.style.borderSpacing="0";var Da=document.createElement("tbody"),Qa=document.createElement("tr"),+Ka=Qa.cloneNode(!0),Na=document.createElement("td"),Oa=Na.cloneNode(!0),Fa=Na.cloneNode(!0),Aa=Na.cloneNode(!0),Ja=Na.cloneNode(!0),Ia=Na.cloneNode(!0);Na.style.textAlign="right";Aa.style.textAlign="right";mxUtils.write(Na,mxResources.get("fitTo"));mxEvent.addListener(la,"click",function(rb){mxEvent.getSource(rb)!=Ga&&(Ga.checked=!Ga.checked)});var Sa=document.createElement("input");Sa.style.margin="0 2px";Sa.style.boxSizing="border-box";Sa.setAttribute("value",k.lastPrintSheetsAcross||"1");Sa.setAttribute("min",+"1");Sa.setAttribute("type","number");Sa.style.width="40px";Oa.appendChild(Sa);u=document.createElement("span");mxUtils.write(u,mxResources.get("fitToSheetsAcross"));Fa.appendChild(u);mxUtils.write(Aa,mxResources.get("fitToBy"));var ab=Sa.cloneNode(!0);ab.setAttribute("value",k.lastPrintSheetsDown||"1");Ja.appendChild(ab);mxEvent.addListener(Sa,"click",function(rb){Ga.checked=!0;mxEvent.consume(rb)});mxEvent.addListener(ab,"click",function(rb){Ga.checked=!0;mxEvent.consume(rb)});k.lastPrintCropRadioChecked?+La.checked=!0:k.lastPrintFitRadioChecked?Ga.checked=!0:Ha.checked=!0;u=document.createElement("span");mxUtils.write(u,mxResources.get("fitToSheetsDown"));Ia.appendChild(u);Qa.appendChild(Na);Qa.appendChild(Oa);Qa.appendChild(Fa);Ka.appendChild(Aa);Ka.appendChild(Ja);Ka.appendChild(Ia);Da.appendChild(Qa);Da.appendChild(Ka);qa.appendChild(Da);la.appendChild(qa);oa.appendChild(la);oa=document.createElement("div");oa.className="geDialogSection";u=document.createElement("div");u.className="geDialogFormRow";+la=document.createElement("label");la.className="geDialogFormLabel";la.setAttribute("for","gePrintDlgBorder");mxUtils.write(la,mxResources.get("borderWidth"));u.appendChild(la);var Va=document.createElement("input");Va.setAttribute("type","number");Va.setAttribute("min","0");Va.setAttribute("id","gePrintDlgBorder");Va.style.width="40px";Va.value=null!=k.lastPrintBorder?k.lastPrintBorder:mxPrintPreview.prototype.pageMargin;u.appendChild(Va);la=document.createElement("label");la.setAttribute("for",+"gePrintDlgZoom");la.style.marginLeft="12px";la.style.marginRight="4px";mxUtils.write(la,mxResources.get("zoom"));u.appendChild(la);var db=document.createElement("input");db.setAttribute("id","gePrintDlgZoom");db.style.width="60px";db.value=null!=k.lastPrintZoom?k.lastPrintZoom:"100%";u.appendChild(db);oa.appendChild(u);la=document.createElement("div");la.className="geDialogCheckRow";var Ea=document.createElement("input");Ea.setAttribute("type","checkbox");Ea.setAttribute("id","gePrintDlgGrid");Ea.style.marginRight=+"8px";Ea.checked=null!=k.lastPrintGrid?k.lastPrintGrid:!1;la.appendChild(Ea);u=document.createElement("label");u.setAttribute("for","gePrintDlgGrid");mxUtils.write(u,mxResources.get("grid"));la.appendChild(u);oa.appendChild(la);la=document.createElement("div");la.className="geDialogCheckRow";var $a=document.createElement("input");$a.setAttribute("type","checkbox");$a.setAttribute("id","gePrintDlgShadows");$a.style.marginRight="8px";$a.checked=null!=k.lastPrintShadow?k.lastPrintShadow:!1;la.appendChild($a);+u=document.createElement("label");u.setAttribute("for","gePrintDlgShadows");mxUtils.write(u,mxResources.get("shadows"));la.appendChild(u);k.isOffline()&&!mxClient.IS_CHROMEAPP||la.appendChild(k.createHelpIcon("https://www.drawio.com/docs/manual/export/print-diagram/#shadows-in-print-and-pdf-export"));Editor.enableShadowOption||(la.style.display="none");oa.appendChild(la);var cb=document.createElement("input");cb.setAttribute("type","checkbox");cb.setAttribute("id","gePrintDlgTransparent");cb.style.marginRight=+"8px";cb.checked=null!=k.lastPrintTransparent?k.lastPrintTransparent:!1;null!=H&&(la=document.createElement("div"),la.className="geDialogCheckRow",la.appendChild(cb),u=document.createElement("label"),u.setAttribute("for","gePrintDlgTransparent"),mxUtils.write(u,mxResources.get("transparentBackground")),la.appendChild(u),oa.appendChild(la));var Za=document.createElement("input");Za.setAttribute("type","checkbox");Za.setAttribute("id","gePrintDlgInclude");Za.style.marginRight="8px";Za.checked=null!=+k.lastPrintInclude?k.lastPrintInclude:Editor.defaultIncludeDiagram;null==H||mxClient.IS_CHROMEAPP||"draw.io"!=k.getServiceName()||(la=document.createElement("div"),la.className="geDialogCheckRow",la.appendChild(Za),u=document.createElement("label"),u.setAttribute("for","gePrintDlgInclude"),mxUtils.write(u,mxResources.get("includeCopyOfMyDiagram")),la.appendChild(u),oa.appendChild(la));var eb=document.createElement("input");eb.setAttribute("type","checkbox");eb.setAttribute("id","gePrintDlgIcons");+eb.style.marginRight="8px";eb.checked=null!=k.lastPrintIcons?k.lastPrintIcons:!1;null!=H&&EditorUi.isElectronApp&&(la=document.createElement("div"),la.className="geDialogCheckRow",la.appendChild(eb),u=document.createElement("label"),u.setAttribute("for","gePrintDlgIcons"),mxUtils.write(u,mxResources.get("notes")),la.appendChild(u),oa.appendChild(la));X.wrapper.appendChild(oa);u=document.createElement("div");u.style.flex="0 0 auto";u.style.marginTop="16px";u.style.textAlign="right";u.style.whiteSpace=+"nowrap";k.isOffline()&&!mxClient.IS_CHROMEAPP||null!=H||u.appendChild(k.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));X=mxUtils.button(mxResources.get("cancel"),function(){k.hideDialog()});X.className="geBtn";k.editor.cancelFirst&&u.appendChild(X);PrintDialog.previewEnabled&&null==H&&(oa=mxUtils.button(mxResources.get("preview"),function(){ha(!1)}),oa.className="geBtn",u.appendChild(oa));P=null!=P?P:null!=H?"export":PrintDialog.previewEnabled?"print":"ok";P=mxUtils.button(mxResources.get(P),+function(){ha(!0)});P.className="geBtn gePrimaryBtn";u.appendChild(P);k.editor.cancelFirst||u.appendChild(X);ea.appendChild(u);if(k.editor.isChromelessView()){var lb=function(){Editor.isDarkMode()?(ea.classList.add("geDarkMode"),ea.style.colorScheme="dark"):(ea.classList.remove("geDarkMode"),ea.style.colorScheme="light")};k.addListener("darkModeChanged",lb);lb();var wb=function(rb,xb){rb=xb.getProperty("dialog");ea.parentNode==rb.container&&(k.editor.removeListener(wb),k.removeListener(lb))};k.editor.addListener("hideDialog",+wb)}this.container=ea};var ia=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=function(){null==this.page&&(this.page=this.ui.currentPage);if(this.page!=this.ui.currentPage){if(null!=this.page.viewState){this.ignoreColor||(this.page.viewState.background=this.color);if(!this.ignoreImage){var k=this.image;null!=k&&null!=k.src&&Graph.isPageLink(k.src)&&(k={originalSrc:k.src});this.page.viewState.backgroundImage=k}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=+this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.adaptiveColors&&(this.page.viewState.adaptiveColors=this.adaptiveColors);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else ia.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.adaptiveColors&&this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(k=this.ui.editor.graph.adaptiveColors,+this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=k?k:"default"),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.parseAnimationScript=function(k){var u=[];if(null==k)return u;var H=function(ea){if(null!=ea)return ea=parseFloat(ea),!isNaN(ea)&&0<=ea?ea:void 0},P={fade:!0,pop:!0,wipe:!0};k=k.split("\n");for(var T=0;T<k.length;T++){var W=+mxUtils.trim(k[T]);if(""!=W&&"#"!=W.charAt(0)){W=W.split(/\s+/);var ha={action:W[0],cell:W[1],arg:W[2]};if("wait"==ha.action){if(ha.delay=parseFloat(ha.cell),isNaN(ha.delay)||0>ha.delay)ha.delay=1E3}else if("setOpacity"==ha.action)ha.opacity=parseFloat(W[2]),isNaN(ha.opacity)&&(ha.opacity=1),ha.opacity=Math.max(0,Math.min(1,ha.opacity)),ha.duration=H(W[3]),ha.arg=void 0;else if("show"==ha.action){if(null!=ha.arg&&!P[ha.arg]){var X=H(ha.arg);null!=X&&(ha.duration=X,ha.arg=void 0)}null==ha.duration&&+(ha.duration=H(W[3]))}else"hide"==ha.action&&(ha.duration=H(W[2]),ha.arg=void 0);u.push(ha)}}return u};Editor.animationFadeDelay=400;Editor.canBatchAnimationSteps=function(k,u){return k.action!=u.action||"wait"==k.action||(k.arg||"")!=(u.arg||"")||(null!=k.opacity?k.opacity:"")!=(null!=u.opacity?u.opacity:"")||(null!=k.duration?k.duration:"")!=(null!=u.duration?u.duration:"")?!1:!0};Editor.convertLegacyAnimationStep=function(k){if("wait"==k.action)return{wait:k.delay};var u="all"==k.cell?"*":k.cell;+if(null==u)return null;var H={cells:[u]};if(null!=k.duration)H.delay=k.duration;else if("show"==k.action&&"fade"==k.arg)H.delay=Editor.animationFadeDelay;else if("hide"==k.action||"setOpacity"==k.action)H.delay=Editor.animationFadeDelay;return"show"==k.action?"fade"==k.arg?{fadeIn:H}:"pop"==k.arg?{popIn:H}:{wipeIn:H}:"hide"==k.action?{fadeOut:H}:"setOpacity"==k.action?(H.value=k.opacity,{fadeTo:H}):"flow"==k.action?(u={cells:[u]},"start"==k.arg?u.start=!0:"stop"==k.arg&&(u.start=!1),{flow:u}):null};+Editor.convertLegacyAnimation=function(k){k=Editor.parseAnimationScript(k);for(var u=[{opacity:{cells:["*"],value:0}}],H=null,P=function(){null!=H&&(u.push(H),H=null)},T=function(X){null==H&&(H={});for(var ea in X){var oa=X[ea],la;if(la=null!=H[ea]&&null!=oa&&Array.isArray(H[ea].cells)&&Array.isArray(oa.cells))la=H[ea],la=la.delay===oa.delay&&la.value===oa.value&&la.start===oa.start;if(la)for(la=0;la<oa.cells.length;la++)H[ea].cells.push(oa.cells[la]);else null!=H[ea]&&(P(),H={}),H[ea]=oa}},W=0;W<+k.length;W++){var ha=Editor.convertLegacyAnimationStep(k[W]);null!=ha&&(null!=ha.wait?(P(),u.push(ha)):T(ha))}P();return{animation:{steps:u}}};Editor.parseAnimationData=function(k){var u=function(P){null==P&&(P={});Array.isArray(P.steps)||(P.steps=[]);P.loop=null==P.loop?!0:!!P.loop;P.enabled=null==P.enabled?!0:!!P.enabled;return P};if(null==k||""===k)return u({steps:[]});if("string"==typeof k){var H=mxUtils.trim(k);return"{"==H.charAt(0)||"["==H.charAt(0)?Editor.parseAnimationData(JSON.parse(H)):+u(Editor.convertLegacyAnimation(k).animation)}return null!=k.animation&&null!=k.animation.steps?u(k.animation):Array.isArray(k.steps)?u(k):u({steps:[]})};Editor.AnimationPlayer=function(k,u){this.graph=k;this.data=Editor.parseAnimationData(u);this.cancelled=this.running=!1;this.snapshot=null};Editor.ANIMATION_ALL="*";Editor.collectAnimatableCells=function(k){var u=[],H;for(H in k.cells){var P=k.cells[H];(k.isVertex(P)||k.isEdge(P))&&u.push(P)}return u};Editor.AnimationPlayer.prototype.collectReferencedCells=+function(){for(var k=this.data.steps||[],u={},H=[],P=0;P<k.length;P++){var T=k[P],W;for(W in T)if("wait"!=W&&"open"!=W){var ha=T[W];if("object"===typeof ha&&null!=ha){ha=this.graph.getCellsForAction(ha,!0);for(var X=0;X<ha.length;X++)u[ha[X].id]||(u[ha[X].id]=!0,H.push(ha[X]))}}}return H};Editor.AnimationPlayer.prototype.snapshotOpacity=function(){var k=this.collectReferencedCells();k=this.graph.getNodesForCells(k);this.snapshot=[];for(var u=0;u<k.length;u++)this.snapshot.push({node:k[u],opacity:k[u].style.opacity})};+Editor.AnimationPlayer.prototype.restoreOpacity=function(){if(null!=this.snapshot){for(var k=0;k<this.snapshot.length;k++)Graph.setTransitionForNodes([this.snapshot[k].node],null),this.snapshot[k].node.style.opacity=this.snapshot[k].opacity;this.snapshot=null}};Editor.AnimationPlayer.prototype.play=function(k){if(!this.running&&null!=this.graph&&!this.graph.isGraphTornDown()){k=k||{};this.running=!0;this.cancelled=!1;this.graph.stoppingCustomActions=!1;this.graph.view.validate();var u=this,H=this.data.steps||+[],P=function(W,ha){if(null==u.graph||u.graph.isGraphTornDown())u.running=!1;else if(u.cancelled||W>=H.length)ha();else{for(var X=W+1;X<H.length&&!0===H[X].immediate&&!u.cancelled;)X++;if("function"==typeof k.onStep)try{k.onStep(W,X)}catch(ea){}u.graph.executeCustomActions(Graph.flattenAnimationActions(H.slice(W,X)),function(){P(X,ha)},null)}},T=function(){null==u.graph||u.graph.isGraphTornDown()?u.running=!1:u.cancelled?(u.restoreOpacity(),u.running=!1):(u.snapshotOpacity(),P(0,function(){if(u.cancelled)u.restoreOpacity(),+u.running=!1;else{if("function"==typeof k.onStep)try{k.onStep(-1)}catch(W){}k.loop?(u.graph.refresh(),u.restoreOpacity(),window.setTimeout(T,0)):(u.running=!1,u.restoreOpacity(),null!=k.done&&k.done())}}))};k.defer?window.setTimeout(T,0):T()}};Editor.AnimationPlayer.prototype.stop=function(){this.cancelled=!0;null!=this.graph&&(this.graph.stoppingCustomActions=!0);for(var k=[],u=this.collectReferencedCells(),H=0;H<u.length;H++)this.graph.getModel().isEdge(u[H])&&k.push(u[H]);0<k.length&&Editor.toggleFlowAnimation(this.graph,+k,"stop")};Editor.toggleFlowAnimation=function(k,u,H){H=H||"toggle";for(var P=0;P<u.length;P++)if(k.getModel().isEdge(u[P])){var T=k.view.getState(u[P]);if(null!=T&&null!=T.shape){var W=null!=T.shape.getFlowAnimationPath?T.shape.getFlowAnimationPath():null;if(null!=W){var ha="mxEdgeFlow"==W.getAttribute("class"),X="start"==H||"toggle"==H&&!ha;ha="stop"==H||"toggle"==H&&ha;T="1"==mxUtils.getValue(T.style,mxConstants.STYLE_DASHED,"0");ha?(W.removeAttribute("class"),T||W.removeAttribute("stroke-dasharray")):+X&&(W.setAttribute("class","mxEdgeFlow"),T||W.setAttribute("stroke-dasharray","8"))}}}};Editor.playAnimationOnGraph=function(k,u){var H=k.getModel().getRoot(),P=null;null!=H.value&&"object"==typeof H.value&&(P=H.value.getAttribute("animation"));if(null==P||""==P)return null;try{var T=Editor.parseAnimationData(P)}catch(ha){return null}if(!T.steps||0==T.steps.length||!1===T.enabled)return null;H={};if(null!=u)for(var W in u)H[W]=u[W];null==H.loop&&(H.loop=T.loop);null==H.defer&&(H.defer=!0);k=new Editor.AnimationPlayer(k,+T);k.play(H);return k};Editor.installAnimationStyles=function(){if(!Editor.animationStylesInstalled){Editor.animationStylesInstalled=!0;try{var k=document.createElement("style");k.type="text/css";k.appendChild(document.createTextNode(".mxEdgeFlow { animation: mxEdgeFlow 0.5s linear infinite; }@keyframes mxEdgeFlow { to { stroke-dashoffset: -16; } }"));document.getElementsByTagName("head")[0].appendChild(k)}catch(u){}}};Editor.installAnimationStyles()})();(function(){EditorUi.VERSION="31.4.4";EditorUi.CSV_ELK_LAYOUTS={verticalflow:{layout:"elkLayered",config:{"elk.direction":"DOWN","elk.layered.layering.strategy":"LONGEST_PATH","elk.layered.nodePlacement.bk.fixedAlignment":"BALANCED","elk.edgeRouting":"POLYLINE",edgeStyle:"elkCompat",includeEdgeLabels:!1,includeVertexLabels:!1,portSpread:!0,resizeNodes:!1}},horizontalflow:{layout:"elkLayered",config:{"elk.direction":"RIGHT","elk.layered.layering.strategy":"LONGEST_PATH","elk.layered.nodePlacement.bk.fixedAlignment":"BALANCED","elk.edgeRouting":"POLYLINE",edgeStyle:"elkCompat",includeEdgeLabels:!1,includeVertexLabels:!1,portSpread:!0,resizeNodes:!1}},elkRadial:{layout:"elkRadial",config:{edgeStyle:"elkCompat"}},elkOrganic:{layout:"elkOrganic",config:{edgeStyle:"elkCompat"}},elkStress:{layout:"elkStress",config:{edgeStyle:"elkCompat"}}};EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)||/.*\.cdn\.prod\.atlassian-dev\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&"test.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.enabledTemplateSections=null;EditorUi.customTemplates=null;EditorUi.cacheUrl=window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;EditorUi.nativeFileSupport=!mxClient.IS_OP&&!EditorUi.isElectronApp&&@@ -4158,45 +4160,45 @@ EditorUi.prototype.insertTemplateEnabled=!0;EditorUi.prototype.closableScratchpafunction(c){this.shareCursorPosition=c;Editor.isSettingsEnabled()&&(mxSettings.settings.shareCursorPosition=c,mxSettings.save());this.fireEvent(new mxEventObject("shareCursorPositionChanged"))};EditorUi.prototype.isShareCursorPosition=function(){return this.shareCursorPosition};EditorUi.prototype.setShowRemoteCursors=function(c){this.showRemoteCursors=c;Editor.isSettingsEnabled()&&(mxSettings.settings.showRemoteCursors=c,mxSettings.save());this.fireEvent(new mxEventObject("showRemoteCursorsChanged"))};EditorUi.prototype.isShowRemoteCursors=function(){return this.showRemoteCursors};EditorUi.prototype.setMathEnabled=function(c){var f=this.editor.graph;f.mathEnabled=c;null!=f.view.backgroundImage&&(f.view.backgroundImage.destroy(),f.view.backgroundImage=null);this.editor.updateGraphComponents();f.refresh();f.defaultMathEnabled=c;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(c){return this.editor.graph.mathEnabled};EditorUi.prototype.setAdaptiveColors=function(c){this.editor.graph.setAdaptiveColors(c);this.editor.graph.view.clear();this.fireEvent(new mxEventObject("adaptiveColorsChanged"))};EditorUi.prototype.isStandaloneApp=function(){return mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||this.isOfflineApp()};EditorUi.prototype.isOfflineApp=function(){return"1"==urlParams.offline};EditorUi.prototype.isOffline=function(c){return this.isOfflineApp()||!navigator.onLine&&!EditorUi.isElectronApp||!c&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};-EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,f,l){var q=null==c||null==f;l=null!=l?l:24;var x=new Spinner({lines:12,length:l,width:Math.round(l/3),radius:Math.round(l/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),A=this.timeout,E=x.spin,J=null,Q=null,V=mxUtils.bind(this,function(Y){null!=Y&&Y()}),K=this;x.spin=function(Y,aa,-ja,ka){ka=null!=ka?ka:A;var ua=!1;if(!this.active){var Ca=Date.now();null!=ja&&(J=window.setTimeout(function(){x.stop();J=null;ja({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:Q})},ka));q&&(f=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0)/2,c=document.body.clientWidth/2-2);Y==document.body&&"1"==urlParams.embedInline&&(Y=K.diagramContainer,c=Y.scrollLeft+Y.clientWidth/2,f=Y.scrollTop+Y.clientHeight/2);E.call(this,Y);"1"==urlParams.embedInline&&-null!=x.el&&(x.el.style.marginTop=Y.scrollTop+"px",x.el.style.marginLeft=Y.scrollLeft+"px");this.active=!0;null!=aa&&(ua=document.createElement("div"),ua.className="geSpinnerStatus",ua.setAttribute("title",aa),Y==document.body?(ua.style.left=Math.max(0,c)+"px",ua.style.top=Math.max(0,f+66)+"px"):(ua.style.left="50%",ua.style.top="50%",ua.style.marginTop="70px"),"..."!=aa.substring(aa.length-3,aa.length)&&"!"!=aa.charAt(aa.length-1)&&(aa+="..."),ua.innerText=aa,Y.appendChild(ua),x.status=ua);this.pause=-mxUtils.bind(this,function(){var ia=V;this.active&&(ka=Math.max(0,ka-(Date.now()-Ca)),ia=mxUtils.bind(this,function(k){this.spin(Y,aa,ja,ka);if(null!=k)try{k(),Q=mxUtils.bind(this,function(){this.spin(Y,aa,ja,ka);try{k()}catch(v){null!=ja&&ja(v)}})}catch(v){null!=ja&&ja(v)}}));this.stop();return ia});ua=!0}return ua};var fa=x.stop;x.stop=function(){fa.call(this);this.active&&(this.active=!1,null!=J&&(window.clearTimeout(J),J=null),null!=x.status&&null!=x.status.parentNode&&x.status.parentNode.removeChild(x.status),-x.status=null)};x.pause=function(){return V};return x};EditorUi.prototype.isCompatibleString=function(c){try{if(c=mxUtils.trim(c),"<"==c.charAt(0)){var f=mxUtils.parseXml(c),l=this.editor.extractGraphModel(f.documentElement,!0);return null!=l&&0==l.getElementsByTagName("parsererror").length}}catch(q){}return!1};EditorUi.isVisioFilename=function(c){return/(\.v(dx|sdx?))($|\?)/i.test(c)||/(\.vs(x|sx?))($|\?)/i.test(c)};EditorUi.prototype.isVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&-207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&4==c.charCodeAt(3)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&6==c.charCodeAt(3))};EditorUi.prototype.isRemoteVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&-26==c.charCodeAt(6)&&225==c.charCodeAt(7)||60==c.charCodeAt(0)&&63==c.charCodeAt(1)&&120==c.charCodeAt(2)&&109==c.charCodeAt(3)&&108==c.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(c){var f=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var l=f.getFunction,q=this.editor.graph,x=this;f.getFunction=function(A){if(q.isSelectionEmpty()&&null!=x.pages&&0<x.pages.length){var E=x.getSelectedPageIndex();if(mxEvent.isShiftDown(A)){if(37==-A.keyCode)return function(){0<E&&x.movePage(E,E-1)};if(38==A.keyCode)return function(){0<E&&x.movePage(E,0)};if(39==A.keyCode)return function(){E<x.pages.length-1&&x.movePage(E,E+1)};if(40==A.keyCode)return function(){E<x.pages.length-1&&x.movePage(E,x.pages.length-1)}}else if(mxEvent.isControlDown(A)||mxClient.IS_MAC&&mxEvent.isMetaDown(A)){if(37==A.keyCode)return function(){0<E&&x.selectNextPage(!1)};if(38==A.keyCode)return function(){0<E&&x.selectPage(x.pages[0])};if(39==A.keyCode)return function(){E<-x.pages.length-1&&x.selectNextPage(!0)};if(40==A.keyCode)return function(){E<x.pages.length-1&&x.selectPage(x.pages[x.pages.length-1])}}}return!(65<=A.keyCode&&90>=A.keyCode)||q.isSelectionEmpty()||mxEvent.isAltDown(A)||mxEvent.isShiftDown(A)||mxEvent.isControlDown(A)||mxClient.IS_MAC&&mxEvent.isMetaDown(A)?l.apply(this,arguments):null}}return f};var d=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=function(c){var f=d.apply(this,arguments);if(null==f)try{var l=-c.indexOf("<mxfile ");if(0<=l){var q=c.lastIndexOf("</mxfile>");q>l&&(f=c.substring(l,q+15).replace(/>/g,">").replace(/</g,"<").replace(/\\"/g,'"').replace(/\n/g,""))}else{var x=mxUtils.parseXml(c),A=this.editor.extractGraphModel(x.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);f=null!=A?mxUtils.getXml(A):""}}catch(E){}return f};EditorUi.prototype.validateFileData=function(c){if(null!=c&&0<c.length){var f=c.indexOf('<meta charset="utf-8">');-0<=f&&(c=c.slice(0,f)+'<meta charset="utf-8"/>'+c.slice(f+23-1,c.length));c=Graph.zapGremlins(c)}return c};EditorUi.prototype.repairFileData=function(c){c=mxUtils.trim(c||"");if(0==c.length)return null;var f=c.replace(/<\/([A-Za-z_][\w.\-]*)(\s*)(?=<)/g,"</$1>$2"),l=f.lastIndexOf(">");f.lastIndexOf("<")>l&&(f=mxUtils.trim(f.substring(0,l+1)));if("</mxfile>"!=f.substring(f.length-9)){l=[];for(var q=/<(\/?)([A-Za-z_][\w.\-]*)[^>]*?(\/?)>/g,x;null!=(x=q.exec(f));)"/"==x[1]?0<l.length&&l[l.length-1]==-x[2]&&l.pop():"/"!=x[3]&&l.push(x[2]);for(q=l.length-1;0<=q;q--)f+="</"+l[q]+">"}return f!=c?f:null};EditorUi.prototype.isFileDataLoadable=function(c){try{c=this.validateFileData(c);var f=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;if(null==f||null!=Editor.extractParserError(f))return!1;var l=this.editor.extractGraphModel(f,!0);return null!=(null!=l?l:f)}catch(q){return!1}};EditorUi.prototype.getRecoveryData=function(c,f,l,q){var x=null;try{var A=this.repairFileData(f);null!=A&&A!=-f&&this.isFileDataLoadable(A)&&(x={type:"repair",label:mxResources.get("openRepairedCopy"),description:mxResources.get("recoveryRepairedDesc"),data:A,lossy:!0})}catch(J){}var E=mxUtils.bind(this,function(J){var Q=[];null!=J&&null!=J.data&&Q.push(J);null!=x&&Q.push(x);q(Q)});null!=c&&"function"===typeof c.getRecoveryVersion?c.getRecoveryVersion(mxUtils.bind(this,function(J){E(J)}),mxUtils.bind(this,function(){E(null)})):E(null)};EditorUi.prototype.openRecoveredCopy=function(c,f){c=new LocalFile(this,-c.data,mxResources.get("copyOf",[f||this.defaultFilename]),!0);this.fileLoaded(c)&&c.fileChanged()};EditorUi.prototype.showRecoveryDialog=function(c,f){c=new RecoveryDialog(this,c,mxUtils.bind(this,function(l){this.hideDialog();this.openRecoveredCopy(l,f)}),mxUtils.bind(this,function(){this.hideDialog()}));this.showDialog(c.container,380,null,!0,!0)};EditorUi.prototype.formatRecoveryDate=function(c){c=new Date(c);return!isNaN(c.getTime())&&0<=c.getTime()?c.toLocaleString():null};EditorUi.prototype.replaceFileData=-function(c,f){EditorUi.debug("EditorUi.replaceFileData",[this],"data",[c],"patches",f);c=this.validateFileData(c);c=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var l=null!=c?this.editor.extractGraphModel(c,!0):null;null!=l&&(c=l);if(null!=c){l=this.editor.graph;l.model.beginUpdate();try{var q=null!=this.pages?this.pages.slice():null,x=c.getElementsByTagName("diagram");if(1<x.length||1==x.length&&x[0].hasAttribute("name")){this.fileNode=c;l.defaultExportLinkTarget=c.getAttribute("linkTarget");-this.pages=null!=this.pages?this.pages:[];for(var A=x.length-1;0<=A;A--){var E=this.updatePageRoot(new DiagramPage(x[A]));null==E.getName()&&E.setName(mxResources.get("pageWithNumber",[A+1]));l.model.execute(new ChangePage(this,E,0==A?E:null,0))}}else null==this.fileNode&&(this.fileNode=c.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(c.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),l.model.execute(new ChangePage(this,-this.currentPage,this.currentPage,0))),this.editor.setGraphXml(c),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,l.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=q)for(A=0;A<q.length;A++)l.model.execute(new ChangePage(this,q[A],null));var J=this.getCurrentFile();null!=J&&J.fileReplaced(f)}finally{l.model.endUpdate()}}};EditorUi.prototype.createFileData=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y){f=null!=f?f:this.editor.graph;x=null!=x?x:!1;-Q=null!=Q?Q:!0;V=null!=V?V:this.defaultCompact;K=null!=K?K:!Editor.defaultCompressed;var aa=null;if(null==l||l.getMode()==App.MODE_DEVICE||l.getMode()==App.MODE_BROWSER)var ja="_blank";else aa=ja=q;if(null==c)return"";var ka=c;if("mxfile"!=ka.nodeName.toLowerCase()){if(K){var ua=c.ownerDocument.createElement("diagram");ua.setAttribute("name",mxResources.get("pageWithNumber",[1]));ua.setAttribute("id",Editor.guid());ua.appendChild(c)}else{ua=Graph.zapGremlins(mxUtils.getXml(c));ka=Graph.compress(ua);-if(Graph.decompress(ka)!=ua)return ua;ua=c.ownerDocument.createElement("diagram");ua.setAttribute("name",mxResources.get("pageWithNumber",[1]));ua.setAttribute("id",Editor.guid());mxUtils.setTextContent(ua,ka)}ka=c.ownerDocument.createElement("mxfile");ka.appendChild(ua)}V?(ka=ka.cloneNode(!0),ka.removeAttribute("modified"),ka.removeAttribute("host"),ka.removeAttribute("agent"),ka.removeAttribute("etag"),ka.removeAttribute("userAgent"),ka.removeAttribute("version"),ka.removeAttribute("editor"),ka.removeAttribute("type")):-(ka.removeAttribute("userAgent"),ka.removeAttribute("modified"),ka.removeAttribute("version"),ka.removeAttribute("editor"),ka.removeAttribute("pages"),ka.removeAttribute("type"),ka.removeAttribute("etag"),mxClient.IS_CHROMEAPP?ka.setAttribute("host","Chrome"):EditorUi.isElectronApp?ka.setAttribute("host","Electron"):ka.setAttribute("host",window.location.hostname),1<ka.getElementsByTagName("diagram").length&&null!=this.pages&&ka.setAttribute("pages",this.pages.length));null!=fa&&(ka=ka.cloneNode(!0),-ka.setAttribute("scale",fa));null!=Y&&(ka=ka.cloneNode(!0),ka.setAttribute("border",Y));c=K?mxUtils.getPrettyXml(ka):mxUtils.getXml(ka);if(!A&&!x&&(E||null!=l&&/(\.html)$/i.test(l.getTitle())))c=this.getHtml2(mxUtils.getXml(ka),f,null!=l?l.getTitle():null,ja,aa);else if(A||!x&&null!=l&&/(\.svg)$/i.test(l.getTitle()))null==l||l.getMode()!=App.MODE_DEVICE&&l.getMode()!=App.MODE_BROWSER||(q=null),l=this.getSvgFileProperties(ka),c=this.getEmbeddedSvg(c,f,q,null,J,Q,aa,null,null,l.scale,l.border,null,-Editor.svgFileTheme,null,l.embedFonts);return c};EditorUi.prototype.getXmlFileData=function(c,f,l,q){c=null!=c?c:!0;f=null!=f?f:!1;l=null!=l?l:!Editor.defaultCompressed;var x=this.editor.getGraphXml(c,q);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(Q){var V=Q.getElementsByTagName("mxGraphModel"),K=0<V.length?V[0]:null;V=Q;null==K&&l?(K=mxUtils.getNodeValue(Q),0<K.length&&(K=Graph.decompress(K),null!=K&&0<K.length&&(V=Q.cloneNode(!1),V.appendChild(mxUtils.parseXml(K).documentElement)))):-null==K||l?V=Q.cloneNode(!0):(V=Q.cloneNode(!1),mxUtils.setTextContent(V,Graph.compressNode(K)));x.appendChild(V)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(x),x=this.fileNode.cloneNode(!1),f)c(this.currentPage.node);else for(f=0;f<this.pages.length;f++){var A=this.pages[f],E=A.node;if(A!=this.currentPage)if(A.needsUpdate){var J=new mxCodec(mxUtils.createXmlDocument());J=J.encode(new mxGraphModel(A.root));this.editor.graph.saveViewState(A.viewState,J,null,-q);EditorUi.removeChildNodes(E);E.appendChild(J);delete A.needsUpdate}else q&&(this.updatePageRoot(A),null!=A.viewState.backgroundImage&&null!=A.viewState.backgroundImage.originalSrc&&(J=new mxCodec(mxUtils.createXmlDocument()),J=J.encode(new mxGraphModel(A.root)),this.editor.graph.saveViewState(A.viewState,J,null,q,A),E=E.cloneNode(!1),E.appendChild(J)));c(E)}return x};EditorUi.prototype.anonymizeString=function(c,f){for(var l=[],q=0;q<c.length;q++){var x=c.charAt(q);0<=EditorUi.ignoredAnonymizedChars.indexOf(x)?-l.push(x):isNaN(parseInt(x))?x.toLowerCase()!=x?l.push(String.fromCharCode(65+Math.round(25*Math.random()))):x.toUpperCase()!=x?l.push(String.fromCharCode(97+Math.round(25*Math.random()))):/\s/.test(x)?l.push(" "):l.push("?"):l.push(f?"0":Math.round(9*Math.random()))}return l.join("")};EditorUi.prototype.anonymizeXml=function(c){function f(E,J,Q){if(E.hasAttribute(J)){var V=E.getAttribute(J);null!=V&&0<V.length&&(Q&&0<=V.indexOf("<")?(A.innerHTML=Graph.sanitizeHtml(V),l(A),V=A.innerHTML):V=x.anonymizeString(V),-E.setAttribute(J,V))}}function l(E){null!=E.nodeValue&&(E.nodeValue=x.anonymizeString(E.nodeValue));if(E.nodeType==mxConstants.NODETYPE_ELEMENT)for(E=E.firstChild;null!=E;)l(E),E=E.nextSibling}function q(E){if(E.nodeType==mxConstants.NODETYPE_ELEMENT){if("mxCell"==E.nodeName)f(E,"value",!0);else if("object"==E.nodeName||"UserObject"==E.nodeName)for(var J=0;J<E.attributes.length;J++){var Q=E.attributes[J];"id"!=Q.name&&"style"!=Q.name&&"placeholders"!=Q.name&&"vertex"!=Q.name&&"edge"!=Q.name&&"parent"!=-Q.name&&"connectable"!=Q.name&&"visible"!=Q.name&&"collapsed"!=Q.name&&"source"!=Q.name&&"target"!=Q.name&&(Q.value=x.anonymizeString(Q.value))}else"diagram"==E.nodeName&&f(E,"name",!1);for(E=E.firstChild;null!=E;)q(E),E=E.nextSibling}}var x=this,A=document.createElement("div");c=mxUtils.parseXml(c);q(c.documentElement);return mxUtils.getPrettyXml(c.documentElement)};EditorUi.prototype.anonymizePatch=function(c){c=JSON.parse(JSON.stringify(c));if(null!=c[EditorUi.DIFF_INSERT])for(var f=0;f<c[EditorUi.DIFF_INSERT].length;f++)try{var l=-mxUtils.parseXml(c[EditorUi.DIFF_INSERT][f].data).documentElement.cloneNode(!1);null!=l.getAttribute("name")&&l.setAttribute("name",this.anonymizeString(l.getAttribute("name")));c[EditorUi.DIFF_INSERT][f].data=mxUtils.getXml(l)}catch(A){c[EditorUi.DIFF_INSERT][f].data=A.message}if(null!=c[EditorUi.DIFF_UPDATE]){for(var q in c[EditorUi.DIFF_UPDATE]){var x=c[EditorUi.DIFF_UPDATE][q];null!=x.name&&(x.name=this.anonymizeString(x.name));null!=x.cells&&(f=mxUtils.bind(this,function(A){var E=x.cells[A];-if(null!=E){for(var J in E)null!=E[J].value&&(E[J].value="["+E[J].value.length+"]"),null!=E[J].xmlValue&&(E[J].xmlValue="["+E[J].xmlValue.length+"]"),null!=E[J].style&&(E[J].style="["+E[J].style.length+"]"),mxUtils.isEmptyObject(E[J])&&delete E[J];mxUtils.isEmptyObject(E)&&delete x.cells[A]}}),f(EditorUi.DIFF_INSERT),f(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(x.cells)&&delete x.cells);mxUtils.isEmptyObject(x)&&delete c[EditorUi.DIFF_UPDATE][q]}mxUtils.isEmptyObject(c[EditorUi.DIFF_UPDATE])&&delete c[EditorUi.DIFF_UPDATE]}return c};-EditorUi.prototype.anonymizeAttributes=function(c,f){if(null!=c.attributes)for(var l=0;l<c.attributes.length;l++)"as"!=c.attributes[l].name&&c.setAttribute(c.attributes[l].name,this.anonymizeString(c.attributes[l].value,f));if(null!=c.childNodes)for(l=0;l<c.childNodes.length;l++)this.anonymizeAttributes(c.childNodes[l],f)};EditorUi.prototype.anonymizeNode=function(c,f){f=c.getElementsByTagName("mxCell");for(var l=0;l<f.length;l++)null!=f[l].getAttribute("value")&&f[l].setAttribute("value","["+f[l].getAttribute("value").length+-"]"),null!=f[l].getAttribute("xmlValue")&&f[l].setAttribute("xmlValue","["+f[l].getAttribute("xmlValue").length+"]"),null!=f[l].getAttribute("style")&&f[l].setAttribute("style","["+f[l].getAttribute("style").length+"]"),null!=f[l].parentNode&&"root"!=f[l].parentNode.nodeName&&null!=f[l].parentNode.parentNode&&(f[l].setAttribute("id",f[l].parentNode.getAttribute("id")),f[l].parentNode.parentNode.replaceChild(f[l],f[l].parentNode));return c};EditorUi.prototype.synchronizeCurrentFile=function(c){var f=-this.getCurrentFile();null!=f&&(f.savingFile?this.handleError({message:mxResources.get("busy")}):!c&&f.invalidChecksum?f.handleFileError(null,!0):this.spinner.spin(document.body,mxResources.get("updatingDocument"))&&(f.clearAutosave(),this.clearStatus(),c?f.reloadFile(mxUtils.bind(this,function(){this.spinner.stop();f.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(l){this.spinner.stop();f.handleFileError(l,!0)})):f.synchronizeFile(mxUtils.bind(this,function(){f.handleFileSuccess("manual"==-DrawioFile.SYNC)}),mxUtils.bind(this,function(l){f.handleFileError(l,!0)}))))};EditorUi.prototype.getFileData=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y){x=null!=x?x:!0;A=null!=A?A:!1;V=null!=V?V:!Editor.defaultCompressed;var aa=this.editor.graph;if((f||!c&&null!=Q&&/(\.svg)$/i.test(Q.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var ja=aa.getGlobalVariable;aa=this.createTemporaryGraph(aa.getStylesheet());aa.setBackgroundImage=this.editor.graph.setBackgroundImage;aa.background=this.editor.graph.background;-var ka=null!=this.pages?this.pages[0]:null;null==ka||this.currentPage==ka?aa.setBackgroundImage(this.editor.graph.backgroundImage):null!=ka.viewState&&null!=ka.viewState&&aa.setBackgroundImage(ka.viewState.backgroundImage);aa.getGlobalVariable=function(ua){return"page"==ua&&null!=ka?ka.getName():"pagenumber"==ua?1:ja.apply(this,arguments)};document.body.appendChild(aa.container);null!=ka&&aa.model.setRoot(ka.root)}E=null!=E?E:this.getXmlFileData(x,A,V,K);Q=null!=Q?Q:this.getCurrentFile();c=this.createFileData(E,-aa,Q,window.location.href,c,f,l,q,x,J,V,fa,Y);aa!=this.editor.graph&&aa.container.parentNode.removeChild(aa.container);return c};EditorUi.prototype.getHtml=function(c,f,l,q,x,A){A=null!=A?A:!0;var E=null,J=EditorUi.drawHost+"/js/embed-static.min.js";if(null!=f){E=A?f.getGraphBounds():f.getBoundingBox(f.getSelectionCells());var Q=f.view.scale;A=Math.floor(E.x/Q-f.view.translate.x);Q=Math.floor(E.y/Q-f.view.translate.y);E=f.background;null==x&&(f=this.getBasenames().join(";"),0<f.length&&(J=EditorUi.drawHost+-"/embed.js?s="+f));c.setAttribute("x0",A);c.setAttribute("y0",Q)}null!=c&&(c.setAttribute("pan","1"),c.setAttribute("zoom","1"),c.setAttribute("resize","0"),c.setAttribute("fit","0"),c.setAttribute("border","20"),c.setAttribute("links","1"),null!=q&&c.setAttribute("edit",q));null!=x&&(x=x.replace(/&/g,"&"));c=null!=c?Graph.zapGremlins(mxUtils.getXml(c)):"";q=Graph.compress(c);Graph.decompress(q)!=c&&(q=encodeURIComponent(c));return(null==x?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':-"")+"<!DOCTYPE html>\n<html"+(null!=x?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==x?null!=l?"<title>"+mxUtils.htmlEntities(l)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=x?'<meta http-equiv="refresh" content="0;URL=\''+x+"'\"/>\n":"")+"</head>\n<body"+(null==x&&null!=E&&E!=mxConstants.NONE?' style="background-color:'+E+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'+q+"</div>\n</div>\n"+-(null==x?'<script type="text/javascript" src="'+J+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+x+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(c,f,l,q,x){f=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=x&&(x=x.replace(/&/g,"&"));c={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,resize:!0,-xml:Graph.zapGremlins(c),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(c.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==x?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=x?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==x?null!=l?"<title>"+mxUtils.htmlEntities(l)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=x?'<meta http-equiv="refresh" content="0;URL=\''++EditorUi.prototype.isRemoteExportEnabled=function(){return!this.isOffline()&&"string"===typeof EXPORT_URL&&/^(https?:\/\/|\/)/i.test(EXPORT_URL)};EditorUi.prototype.isPrintPdfExport=function(){return this.printPdfExport||!this.isRemoteExportEnabled()};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,f,l){var q=null==c||null==f;l=null!=l?l:24;var x=new Spinner({lines:12,length:l,width:Math.round(l/+3),radius:Math.round(l/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),A=this.timeout,E=x.spin,J=null,Q=null,V=mxUtils.bind(this,function(Y){null!=Y&&Y()}),K=this;x.spin=function(Y,aa,ja,ka){ka=null!=ka?ka:A;var ua=!1;if(!this.active){var Ca=Date.now();null!=ja&&(J=window.setTimeout(function(){x.stop();J=null;ja({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:Q})},ka));q&&(f=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||+0)/2,c=document.body.clientWidth/2-2);Y==document.body&&"1"==urlParams.embedInline&&(Y=K.diagramContainer,c=Y.scrollLeft+Y.clientWidth/2,f=Y.scrollTop+Y.clientHeight/2);E.call(this,Y);"1"==urlParams.embedInline&&null!=x.el&&(x.el.style.marginTop=Y.scrollTop+"px",x.el.style.marginLeft=Y.scrollLeft+"px");this.active=!0;null!=aa&&(ua=document.createElement("div"),ua.className="geSpinnerStatus",ua.setAttribute("title",aa),Y==document.body?(ua.style.left=Math.max(0,c)+"px",ua.style.top=Math.max(0,f+66)++"px"):(ua.style.left="50%",ua.style.top="50%",ua.style.marginTop="70px"),"..."!=aa.substring(aa.length-3,aa.length)&&"!"!=aa.charAt(aa.length-1)&&(aa+="..."),ua.innerText=aa,Y.appendChild(ua),x.status=ua);this.pause=mxUtils.bind(this,function(){var ia=V;this.active&&(ka=Math.max(0,ka-(Date.now()-Ca)),ia=mxUtils.bind(this,function(k){this.spin(Y,aa,ja,ka);if(null!=k)try{k(),Q=mxUtils.bind(this,function(){this.spin(Y,aa,ja,ka);try{k()}catch(u){null!=ja&&ja(u)}})}catch(u){null!=ja&&ja(u)}}));this.stop();+return ia});ua=!0}return ua};var fa=x.stop;x.stop=function(){fa.call(this);this.active&&(this.active=!1,null!=J&&(window.clearTimeout(J),J=null),null!=x.status&&null!=x.status.parentNode&&x.status.parentNode.removeChild(x.status),x.status=null)};x.pause=function(){return V};return x};EditorUi.prototype.isCompatibleString=function(c){try{if(c=mxUtils.trim(c),"<"==c.charAt(0)){var f=mxUtils.parseXml(c),l=this.editor.extractGraphModel(f.documentElement,!0);return null!=l&&0==l.getElementsByTagName("parsererror").length}}catch(q){}return!1};+EditorUi.isVisioFilename=function(c){return/(\.v(dx|sdx?))($|\?)/i.test(c)||/(\.vs(x|sx?))($|\?)/i.test(c)};EditorUi.prototype.isVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&4==c.charCodeAt(3)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&6==c.charCodeAt(3))};+EditorUi.prototype.isRemoteVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||60==c.charCodeAt(0)&&63==c.charCodeAt(1)&&120==c.charCodeAt(2)&&109==c.charCodeAt(3)&&108==c.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(c){var f=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var l=+f.getFunction,q=this.editor.graph,x=this;f.getFunction=function(A){if(q.isSelectionEmpty()&&null!=x.pages&&0<x.pages.length){var E=x.getSelectedPageIndex();if(mxEvent.isShiftDown(A)){if(37==A.keyCode)return function(){0<E&&x.movePage(E,E-1)};if(38==A.keyCode)return function(){0<E&&x.movePage(E,0)};if(39==A.keyCode)return function(){E<x.pages.length-1&&x.movePage(E,E+1)};if(40==A.keyCode)return function(){E<x.pages.length-1&&x.movePage(E,x.pages.length-1)}}else if(mxEvent.isControlDown(A)||mxClient.IS_MAC&&+mxEvent.isMetaDown(A)){if(37==A.keyCode)return function(){0<E&&x.selectNextPage(!1)};if(38==A.keyCode)return function(){0<E&&x.selectPage(x.pages[0])};if(39==A.keyCode)return function(){E<x.pages.length-1&&x.selectNextPage(!0)};if(40==A.keyCode)return function(){E<x.pages.length-1&&x.selectPage(x.pages[x.pages.length-1])}}}return!(65<=A.keyCode&&90>=A.keyCode)||q.isSelectionEmpty()||mxEvent.isAltDown(A)||mxEvent.isShiftDown(A)||mxEvent.isControlDown(A)||mxClient.IS_MAC&&mxEvent.isMetaDown(A)?l.apply(this,+arguments):null}}return f};var d=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=function(c){var f=d.apply(this,arguments);if(null==f)try{var l=c.indexOf("<mxfile ");if(0<=l){var q=c.lastIndexOf("</mxfile>");q>l&&(f=c.substring(l,q+15).replace(/>/g,">").replace(/</g,"<").replace(/\\"/g,'"').replace(/\n/g,""))}else{var x=mxUtils.parseXml(c),A=this.editor.extractGraphModel(x.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);+f=null!=A?mxUtils.getXml(A):""}}catch(E){}return f};EditorUi.prototype.validateFileData=function(c){if(null!=c&&0<c.length){var f=c.indexOf('<meta charset="utf-8">');0<=f&&(c=c.slice(0,f)+'<meta charset="utf-8"/>'+c.slice(f+23-1,c.length));c=Graph.zapGremlins(c)}return c};EditorUi.prototype.repairFileData=function(c){c=mxUtils.trim(c||"");if(0==c.length)return null;var f=c.replace(/<\/([A-Za-z_][\w.\-]*)(\s*)(?=<)/g,"</$1>$2"),l=f.lastIndexOf(">");f.lastIndexOf("<")>l&&(f=mxUtils.trim(f.substring(0,+l+1)));if("</mxfile>"!=f.substring(f.length-9)){l=[];for(var q=/<(\/?)([A-Za-z_][\w.\-]*)[^>]*?(\/?)>/g,x;null!=(x=q.exec(f));)"/"==x[1]?0<l.length&&l[l.length-1]==x[2]&&l.pop():"/"!=x[3]&&l.push(x[2]);for(q=l.length-1;0<=q;q--)f+="</"+l[q]+">"}return f!=c?f:null};EditorUi.prototype.isFileDataLoadable=function(c){try{c=this.validateFileData(c);var f=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;if(null==f||null!=Editor.extractParserError(f))return!1;var l=this.editor.extractGraphModel(f,+!0);return null!=(null!=l?l:f)}catch(q){return!1}};EditorUi.prototype.getRecoveryData=function(c,f,l,q){var x=null;try{var A=this.repairFileData(f);null!=A&&A!=f&&this.isFileDataLoadable(A)&&(x={type:"repair",label:mxResources.get("openRepairedCopy"),description:mxResources.get("recoveryRepairedDesc"),data:A,lossy:!0})}catch(J){}var E=mxUtils.bind(this,function(J){var Q=[];null!=J&&null!=J.data&&Q.push(J);null!=x&&Q.push(x);q(Q)});null!=c&&"function"===typeof c.getRecoveryVersion?c.getRecoveryVersion(mxUtils.bind(this,+function(J){E(J)}),mxUtils.bind(this,function(){E(null)})):E(null)};EditorUi.prototype.openRecoveredCopy=function(c,f){c=new LocalFile(this,c.data,mxResources.get("copyOf",[f||this.defaultFilename]),!0);this.fileLoaded(c)&&c.fileChanged()};EditorUi.prototype.showRecoveryDialog=function(c,f){c=new RecoveryDialog(this,c,mxUtils.bind(this,function(l){this.hideDialog();this.openRecoveredCopy(l,f)}),mxUtils.bind(this,function(){this.hideDialog()}));this.showDialog(c.container,380,null,!0,!0)};EditorUi.prototype.formatRecoveryDate=+function(c){c=new Date(c);return!isNaN(c.getTime())&&0<=c.getTime()?c.toLocaleString():null};EditorUi.prototype.replaceFileData=function(c,f){EditorUi.debug("EditorUi.replaceFileData",[this],"data",[c],"patches",f);c=this.validateFileData(c);c=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var l=null!=c?this.editor.extractGraphModel(c,!0):null;null!=l&&(c=l);if(null!=c){l=this.editor.graph;l.model.beginUpdate();try{var q=null!=this.pages?this.pages.slice():null,x=c.getElementsByTagName("diagram");+if(1<x.length||1==x.length&&x[0].hasAttribute("name")){this.fileNode=c;l.defaultExportLinkTarget=c.getAttribute("linkTarget");this.pages=null!=this.pages?this.pages:[];for(var A=x.length-1;0<=A;A--){var E=this.updatePageRoot(new DiagramPage(x[A]));null==E.getName()&&E.setName(mxResources.get("pageWithNumber",[A+1]));l.model.execute(new ChangePage(this,E,0==A?E:null,0))}}else null==this.fileNode&&(this.fileNode=c.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(c.ownerDocument.createElement("diagram")),+this.currentPage.setName(mxResources.get("pageWithNumber",[1])),l.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0))),this.editor.setGraphXml(c),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,l.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=q)for(A=0;A<q.length;A++)l.model.execute(new ChangePage(this,q[A],null));var J=this.getCurrentFile();null!=J&&J.fileReplaced(f)}finally{l.model.endUpdate()}}};EditorUi.prototype.createFileData=+function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y){f=null!=f?f:this.editor.graph;x=null!=x?x:!1;Q=null!=Q?Q:!0;V=null!=V?V:this.defaultCompact;K=null!=K?K:!Editor.defaultCompressed;var aa=null;if(null==l||l.getMode()==App.MODE_DEVICE||l.getMode()==App.MODE_BROWSER)var ja="_blank";else aa=ja=q;if(null==c)return"";var ka=c;if("mxfile"!=ka.nodeName.toLowerCase()){if(K){var ua=c.ownerDocument.createElement("diagram");ua.setAttribute("name",mxResources.get("pageWithNumber",[1]));ua.setAttribute("id",Editor.guid());+ua.appendChild(c)}else{ua=Graph.zapGremlins(mxUtils.getXml(c));ka=Graph.compress(ua);if(Graph.decompress(ka)!=ua)return ua;ua=c.ownerDocument.createElement("diagram");ua.setAttribute("name",mxResources.get("pageWithNumber",[1]));ua.setAttribute("id",Editor.guid());mxUtils.setTextContent(ua,ka)}ka=c.ownerDocument.createElement("mxfile");ka.appendChild(ua)}V?(ka=ka.cloneNode(!0),ka.removeAttribute("modified"),ka.removeAttribute("host"),ka.removeAttribute("agent"),ka.removeAttribute("etag"),ka.removeAttribute("userAgent"),+ka.removeAttribute("version"),ka.removeAttribute("editor"),ka.removeAttribute("type")):(ka.removeAttribute("userAgent"),ka.removeAttribute("modified"),ka.removeAttribute("version"),ka.removeAttribute("editor"),ka.removeAttribute("pages"),ka.removeAttribute("type"),ka.removeAttribute("etag"),mxClient.IS_CHROMEAPP?ka.setAttribute("host","Chrome"):EditorUi.isElectronApp?ka.setAttribute("host","Electron"):ka.setAttribute("host",window.location.hostname),1<ka.getElementsByTagName("diagram").length&&null!=+this.pages&&ka.setAttribute("pages",this.pages.length));null!=fa&&(ka=ka.cloneNode(!0),ka.setAttribute("scale",fa));null!=Y&&(ka=ka.cloneNode(!0),ka.setAttribute("border",Y));c=K?mxUtils.getPrettyXml(ka):mxUtils.getXml(ka);if(!A&&!x&&(E||null!=l&&/(\.html)$/i.test(l.getTitle())))c=this.getHtml2(mxUtils.getXml(ka),f,null!=l?l.getTitle():null,ja,aa);else if(A||!x&&null!=l&&/(\.svg)$/i.test(l.getTitle()))null==l||l.getMode()!=App.MODE_DEVICE&&l.getMode()!=App.MODE_BROWSER||(q=null),l=this.getSvgFileProperties(ka),+c=this.getEmbeddedSvg(c,f,q,null,J,Q,aa,null,null,l.scale,l.border,null,Editor.svgFileTheme,null,l.embedFonts);return c};EditorUi.prototype.getXmlFileData=function(c,f,l,q){c=null!=c?c:!0;f=null!=f?f:!1;l=null!=l?l:!Editor.defaultCompressed;var x=this.editor.getGraphXml(c,q);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(Q){var V=Q.getElementsByTagName("mxGraphModel"),K=0<V.length?V[0]:null;V=Q;null==K&&l?(K=mxUtils.getNodeValue(Q),0<K.length&&(K=Graph.decompress(K),null!=K&&0<K.length&&+(V=Q.cloneNode(!1),V.appendChild(mxUtils.parseXml(K).documentElement)))):null==K||l?V=Q.cloneNode(!0):(V=Q.cloneNode(!1),mxUtils.setTextContent(V,Graph.compressNode(K)));x.appendChild(V)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(x),x=this.fileNode.cloneNode(!1),f)c(this.currentPage.node);else for(f=0;f<this.pages.length;f++){var A=this.pages[f],E=A.node;if(A!=this.currentPage)if(A.needsUpdate){var J=new mxCodec(mxUtils.createXmlDocument());J=J.encode(new mxGraphModel(A.root));+this.editor.graph.saveViewState(A.viewState,J,null,q);EditorUi.removeChildNodes(E);E.appendChild(J);delete A.needsUpdate}else q&&(this.updatePageRoot(A),null!=A.viewState.backgroundImage&&null!=A.viewState.backgroundImage.originalSrc&&(J=new mxCodec(mxUtils.createXmlDocument()),J=J.encode(new mxGraphModel(A.root)),this.editor.graph.saveViewState(A.viewState,J,null,q,A),E=E.cloneNode(!1),E.appendChild(J)));c(E)}return x};EditorUi.prototype.anonymizeString=function(c,f){for(var l=[],q=0;q<c.length;q++){var x=+c.charAt(q);0<=EditorUi.ignoredAnonymizedChars.indexOf(x)?l.push(x):isNaN(parseInt(x))?x.toLowerCase()!=x?l.push(String.fromCharCode(65+Math.round(25*Math.random()))):x.toUpperCase()!=x?l.push(String.fromCharCode(97+Math.round(25*Math.random()))):/\s/.test(x)?l.push(" "):l.push("?"):l.push(f?"0":Math.round(9*Math.random()))}return l.join("")};EditorUi.prototype.anonymizeXml=function(c){function f(E,J,Q){if(E.hasAttribute(J)){var V=E.getAttribute(J);null!=V&&0<V.length&&(Q&&0<=V.indexOf("<")?(A.innerHTML=+Graph.sanitizeHtml(V),l(A),V=A.innerHTML):V=x.anonymizeString(V),E.setAttribute(J,V))}}function l(E){null!=E.nodeValue&&(E.nodeValue=x.anonymizeString(E.nodeValue));if(E.nodeType==mxConstants.NODETYPE_ELEMENT)for(E=E.firstChild;null!=E;)l(E),E=E.nextSibling}function q(E){if(E.nodeType==mxConstants.NODETYPE_ELEMENT){if("mxCell"==E.nodeName)f(E,"value",!0);else if("object"==E.nodeName||"UserObject"==E.nodeName)for(var J=0;J<E.attributes.length;J++){var Q=E.attributes[J];"id"!=Q.name&&"style"!=Q.name&&+"placeholders"!=Q.name&&"vertex"!=Q.name&&"edge"!=Q.name&&"parent"!=Q.name&&"connectable"!=Q.name&&"visible"!=Q.name&&"collapsed"!=Q.name&&"source"!=Q.name&&"target"!=Q.name&&(Q.value=x.anonymizeString(Q.value))}else"diagram"==E.nodeName&&f(E,"name",!1);for(E=E.firstChild;null!=E;)q(E),E=E.nextSibling}}var x=this,A=document.createElement("div");c=mxUtils.parseXml(c);q(c.documentElement);return mxUtils.getPrettyXml(c.documentElement)};EditorUi.prototype.anonymizePatch=function(c){c=JSON.parse(JSON.stringify(c));+if(null!=c[EditorUi.DIFF_INSERT])for(var f=0;f<c[EditorUi.DIFF_INSERT].length;f++)try{var l=mxUtils.parseXml(c[EditorUi.DIFF_INSERT][f].data).documentElement.cloneNode(!1);null!=l.getAttribute("name")&&l.setAttribute("name",this.anonymizeString(l.getAttribute("name")));c[EditorUi.DIFF_INSERT][f].data=mxUtils.getXml(l)}catch(A){c[EditorUi.DIFF_INSERT][f].data=A.message}if(null!=c[EditorUi.DIFF_UPDATE]){for(var q in c[EditorUi.DIFF_UPDATE]){var x=c[EditorUi.DIFF_UPDATE][q];null!=x.name&&(x.name=this.anonymizeString(x.name));+null!=x.cells&&(f=mxUtils.bind(this,function(A){var E=x.cells[A];if(null!=E){for(var J in E)null!=E[J].value&&(E[J].value="["+E[J].value.length+"]"),null!=E[J].xmlValue&&(E[J].xmlValue="["+E[J].xmlValue.length+"]"),null!=E[J].style&&(E[J].style="["+E[J].style.length+"]"),mxUtils.isEmptyObject(E[J])&&delete E[J];mxUtils.isEmptyObject(E)&&delete x.cells[A]}}),f(EditorUi.DIFF_INSERT),f(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(x.cells)&&delete x.cells);mxUtils.isEmptyObject(x)&&delete c[EditorUi.DIFF_UPDATE][q]}mxUtils.isEmptyObject(c[EditorUi.DIFF_UPDATE])&&+delete c[EditorUi.DIFF_UPDATE]}return c};EditorUi.prototype.anonymizeAttributes=function(c,f){if(null!=c.attributes)for(var l=0;l<c.attributes.length;l++)"as"!=c.attributes[l].name&&c.setAttribute(c.attributes[l].name,this.anonymizeString(c.attributes[l].value,f));if(null!=c.childNodes)for(l=0;l<c.childNodes.length;l++)this.anonymizeAttributes(c.childNodes[l],f)};EditorUi.prototype.anonymizeNode=function(c,f){f=c.getElementsByTagName("mxCell");for(var l=0;l<f.length;l++)null!=f[l].getAttribute("value")&&+f[l].setAttribute("value","["+f[l].getAttribute("value").length+"]"),null!=f[l].getAttribute("xmlValue")&&f[l].setAttribute("xmlValue","["+f[l].getAttribute("xmlValue").length+"]"),null!=f[l].getAttribute("style")&&f[l].setAttribute("style","["+f[l].getAttribute("style").length+"]"),null!=f[l].parentNode&&"root"!=f[l].parentNode.nodeName&&null!=f[l].parentNode.parentNode&&(f[l].setAttribute("id",f[l].parentNode.getAttribute("id")),f[l].parentNode.parentNode.replaceChild(f[l],f[l].parentNode));return c};+EditorUi.prototype.synchronizeCurrentFile=function(c){var f=this.getCurrentFile();null!=f&&(f.savingFile?this.handleError({message:mxResources.get("busy")}):!c&&f.invalidChecksum?f.handleFileError(null,!0):this.spinner.spin(document.body,mxResources.get("updatingDocument"))&&(f.clearAutosave(),this.clearStatus(),c?f.reloadFile(mxUtils.bind(this,function(){this.spinner.stop();f.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(l){this.spinner.stop();f.handleFileError(l,!0)})):+f.synchronizeFile(mxUtils.bind(this,function(){f.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(l){f.handleFileError(l,!0)}))))};EditorUi.prototype.getFileData=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y){x=null!=x?x:!0;A=null!=A?A:!1;V=null!=V?V:!Editor.defaultCompressed;var aa=this.editor.graph;if((f||!c&&null!=Q&&/(\.svg)$/i.test(Q.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var ja=aa.getGlobalVariable;aa=this.createTemporaryGraph(aa.getStylesheet());aa.setBackgroundImage=+this.editor.graph.setBackgroundImage;aa.background=this.editor.graph.background;var ka=null!=this.pages?this.pages[0]:null;null==ka||this.currentPage==ka?aa.setBackgroundImage(this.editor.graph.backgroundImage):null!=ka.viewState&&null!=ka.viewState&&aa.setBackgroundImage(ka.viewState.backgroundImage);aa.getGlobalVariable=function(ua){return"page"==ua&&null!=ka?ka.getName():"pagenumber"==ua?1:ja.apply(this,arguments)};document.body.appendChild(aa.container);null!=ka&&aa.model.setRoot(ka.root)}E=null!=+E?E:this.getXmlFileData(x,A,V,K);Q=null!=Q?Q:this.getCurrentFile();c=this.createFileData(E,aa,Q,window.location.href,c,f,l,q,x,J,V,fa,Y);aa!=this.editor.graph&&aa.container.parentNode.removeChild(aa.container);return c};EditorUi.prototype.getHtml=function(c,f,l,q,x,A){A=null!=A?A:!0;var E=null,J=EditorUi.drawHost+"/js/embed-static.min.js";if(null!=f){E=A?f.getGraphBounds():f.getBoundingBox(f.getSelectionCells());var Q=f.view.scale;A=Math.floor(E.x/Q-f.view.translate.x);Q=Math.floor(E.y/Q-f.view.translate.y);+E=f.background;null==x&&(f=this.getBasenames().join(";"),0<f.length&&(J=EditorUi.drawHost+"/embed.js?s="+f));c.setAttribute("x0",A);c.setAttribute("y0",Q)}null!=c&&(c.setAttribute("pan","1"),c.setAttribute("zoom","1"),c.setAttribute("resize","0"),c.setAttribute("fit","0"),c.setAttribute("border","20"),c.setAttribute("links","1"),null!=q&&c.setAttribute("edit",q));null!=x&&(x=x.replace(/&/g,"&"));c=null!=c?Graph.zapGremlins(mxUtils.getXml(c)):"";q=Graph.compress(c);Graph.decompress(q)!=c&&(q=encodeURIComponent(c));+return(null==x?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=x?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==x?null!=l?"<title>"+mxUtils.htmlEntities(l)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=x?'<meta http-equiv="refresh" content="0;URL=\''+x+"'\"/>\n":"")+"</head>\n<body"+(null==x&&null!=E&&E!=mxConstants.NONE?' style="background-color:'+E+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'++q+"</div>\n</div>\n"+(null==x?'<script type="text/javascript" src="'+J+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+x+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(c,f,l,q,x){f=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=x&&(x=x.replace(/&/g,"&"));c={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,+resize:!0,xml:Graph.zapGremlins(c),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(c.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==x?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=x?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==x?null!=l?"<title>"+mxUtils.htmlEntities(l)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=x?'<meta http-equiv="refresh" content="0;URL=\''+x+"'\"/>\n":"")+'<meta charset="utf-8"/>\n</head>\n<body>\n<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(c))+'"></div>\n'+(null==x?'<script type="text/javascript" src="'+f+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+x+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.updateFileVars=function(){var c=null!=this.fileNode?this.fileNode.getAttribute("vars"):null;if(c!==this.fileVarsStr&&(this.fileVarsStr=c,this.fileVars=null,null!=c&&0<c.length))try{this.fileVars=JSON.parse(c)}catch(f){}};EditorUi.prototype.setFileData=function(c,f){c=this.validateFileData(c);this.pages=this.fileNode=this.currentPage=null;f=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var l=Editor.extractParserError(f,mxResources.get("invalidOrMissingFile"));if(l)throw EditorUi.debug("EditorUi.setFileData ParserError",[this],"data",[c],"node",[f],"cause",[l]),Error(mxResources.get("notADiagramFile")+" ("+l+")");c=null!=f?this.editor.extractGraphModel(f,!0):null;null!=c&&(f=c);if(null!=f&&"mxfile"==f.nodeName&&(c=f.getElementsByTagName("diagram"),l={},0<c.length)){var q=this.getHashObject(),x=null;this.fileNode=f;this.editor.graph.defaultExportLinkTarget=f.getAttribute("linkTarget");this.pages=[];for(var A=0;A<c.length;A++){null==c[A].getAttribute("id")&&c[A].setAttribute("id",A);f=new DiagramPage(c[A]);null==f.getName()&&@@ -4205,21 +4207,21 @@ new DiagramPage(f.ownerDocument.createElement("diagram")),this.currentPage.setNaV=Q.getChildren(Q.root);for(A=0;A<V.length;A++){var K=V[A];Q.setVisible(K,J[K.id]||!1)}}catch(fa){}};EditorUi.prototype.fileStats=function(c,f){try{if(null!=c&&5E5<c.getSize()&&""!==c.getHash()&&"draw.io"==this.getServiceName()){var l=f.getElementsByTagName("diagram");f={};f.modified=c.getLastModifiedDate();f.fileMode=c.getMode();f.fileSize=c.getSize();f.fileHash=c.getHash();f.pages=l.length;f.redundantStencils=0;f.redundantImages=0;f.redundantSize=0;f.stencils=0;f.images=0;for(var q=f.cells=0;q<l.length;q++){var x=l[q].getElementsByTagName("mxCell");f.cells+=x.length;for(var A={},E=0;E<x.length;E++){var J=x[E].getAttribute("style");if(null!=J)for(var Q=J.split(";"),V=0;V<Q.length;V++){var K=Q[V];if(K.startsWith("image=data:")||K.startsWith("shape=stencil("))null==A[K]?A[K]=1:A[K]++}}for(var fa in A){var Y=A[fa];fa.startsWith("shape=stencil(")?f.stencils+=Y:f.images+=Y;1<Y&&(f.redundantSize+=fa.length*(Y-1),fa.startsWith("shape=stencil(")?f.redundantStencils+=Y-1:f.redundantImages+=Y-1)}}EditorUi.logEvent({category:c.getMode().toUpperCase()+"-FILE-STATS-"+c.getHash(),action:"size_"+c.getSize(),label:JSON.stringify(f)})}}catch(aa){}};EditorUi.prototype.getBaseFilename=function(c){var f=this.getCurrentFile();f=null!=f&&null!=f.getTitle()?f.getTitle():this.defaultFilename;if(/(\.xml)$/i.test(f)||/(\.html)$/i.test(f)||/(\.svg)$/i.test(f)||/(\.png)$/i.test(f))f=f.substring(0,f.lastIndexOf("."));/(\.drawio)$/i.test(f)&&(f=f.substring(0,f.lastIndexOf(".")));!c&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&-0<this.currentPage.getName().length&&(f=f+"-"+this.currentPage.getName());return f};EditorUi.prototype.downloadFile=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka,ua,Ca){try{q=null!=q?q:this.editor.graph.isSelectionEmpty();var ia=this.getBaseFilename(!x),k=ia+("xml"==c||"pdf"==c&&K?".drawio":"")+"."+c;if("xml"==c){var v=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,q,x,null,null,null,f);this.saveData(k,c,v,"text/xml")}else if("html"==c)v=this.getHtml2(this.getFileData(!0),this.editor.graph,-ia),this.saveData(k,c,v,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))if("xmlpng"==c?k=ia+".png":"jpeg"==c&&(k=ia+".jpg"),"1"==urlParams.embed&&"json"==urlParams.proto&&this.embedExportProtocol){var H=this.embedMessageSource||window.opener||window.parent;this.spinner.spin(document.body,mxResources.get("exporting"))&&this.createDownloadRequest(k,c,q,"1",E,x,J,Q,V,K,fa,void 0,void 0,!A,Y,aa,ja,ka,ua,Ca).send(mxUtils.bind(this,function(X){this.spinner.stop();+0<this.currentPage.getName().length&&(f=f+"-"+this.currentPage.getName());return f};EditorUi.prototype.downloadFile=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka,ua,Ca){try{q=null!=q?q:this.editor.graph.isSelectionEmpty();var ia=this.getBaseFilename(!x),k=ia+("xml"==c||"pdf"==c&&K?".drawio":"")+"."+c;if("xml"==c){var u=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,q,x,null,null,null,f);this.saveData(k,c,u,"text/xml")}else if("html"==c)u=this.getHtml2(this.getFileData(!0),this.editor.graph,+ia),this.saveData(k,c,u,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))if("xmlpng"==c?k=ia+".png":"jpeg"==c&&(k=ia+".jpg"),"1"==urlParams.embed&&"json"==urlParams.proto&&this.embedExportProtocol){var H=this.embedMessageSource||window.opener||window.parent;this.spinner.spin(document.body,mxResources.get("exporting"))&&this.createDownloadRequest(k,c,q,"1",E,x,J,Q,V,K,fa,void 0,void 0,!A,Y,aa,ja,ka,ua,Ca).send(mxUtils.bind(this,function(X){this.spinner.stop();if(200<=X.getStatus()&&299>=X.getStatus()){var ea=this.createLoadMessage("export");ea.format=c;ea.filename=k;ea.data="data:application/pdf;base64,"+X.getText();ea.xml=this.getFileData(!0);H.postMessage(JSON.stringify(ea),"*")}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(){this.spinner.stop();this.handleError({message:mxResources.get("errorSavingFile")})}))}else this.saveRequest(k,c,mxUtils.bind(this,function(X,ea){try{return this.createDownloadRequest(X,c,q,ea,E,x,J,Q,V,K,fa,void 0,void 0,!A,Y,aa,ja,ka,ua,Ca)}catch(oa){this.handleError(oa)}}));else{var P=null,T=mxUtils.bind(this,function(X){X.length<=MAX_REQUEST_SIZE?this.saveData(k,"svg",X,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(P)}))});if("svg"==c){var W=this.editor.graph.background;if(E||W==mxConstants.NONE)W=null;var ha=this.editor.graph.getSvg(W,null,null,null,null,q);l&&this.editor.graph.addSvgShadow(ha);-this.editor.convertImages(ha,mxUtils.bind(this,mxUtils.bind(this,function(X){this.spinner.stop();T(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(X))})))}else k=ia+".svg",P=this.getFileData(!1,!0,null,mxUtils.bind(this,function(X){this.spinner.stop();T(X)}),q)}}catch(X){this.handleError(X)}};EditorUi.prototype.createDownloadRequest=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka,ua,Ca,ia,k){c=this.downloadRequestBuilder(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka,ua,Ca,ia,k);f="";for(var v in c)l=-c[v],null!=l&&(f+=v+"="+encodeURIComponent(l)+"&");return new mxXmlRequest(EXPORT_URL,f)};EditorUi.prototype.downloadRequestBuilder=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka,ua,Ca,ia,k){var v=this.editor.graph,H=v.getGraphBounds();l=this.getFileData(!0,null,null,null,l,0==A?!1:"xmlpng"!=f,null,null,null,!Editor.defaultCompressed,"pdf"==f);var P=null,T=null,W=null;if(!EditorUi.isElectronApp&&(H.width*H.height>MAX_AREA||l.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};-V=V?"1":"0";"pdf"==f&&(null!=K?(P=K.from,T=K.to):0==A&&(W="1"));"xmlpng"==f&&(V="1",f="png");if(("xmlpng"==f||"svg"==f)&&null!=this.pages&&null!=this.currentPage)for(A=0;A<this.pages.length;A++)if(this.pages[A]==this.currentPage){P=A;break}A=v.background;"png"!=f&&"pdf"!=f&&"svg"!=f||!x?x||null!=A&&A!=mxConstants.NONE||(A="#ffffff"):A=mxConstants.NONE;x={globalVars:v.getExportVariables()};null!=K&&null!=K.from&&(x.globalVars.pagenumber=K.from+1);Q&&(x.grid={size:v.gridSize,steps:v.view.gridSteps,-color:Editor.isDarkMode()&&"pdf"==f?mxGraphView.prototype.defaultGridColor:v.view.gridColor});Graph.translateDiagram&&(x.diagramLanguage=Graph.diagramLanguage);Q=this.getHiddenTagsMap();null!=Q&&(x.hiddenTags=Q);return{format:f,from:P,to:T,allPages:W,bg:null!=A?A:mxConstants.NONE,base64:q,embedXml:V,xml:l,filename:null!=c?c:"",extras:JSON.stringify(x),scale:E,border:J,pageMargin:ja,w:fa&&isFinite(fa)?fa:null,h:Y&&isFinite(Y)?Y:null,crop:null!=aa&&aa?"1":"0",fit:null!=ka&&ka?"1":"0",shadows:null!=+this.editor.convertImages(ha,mxUtils.bind(this,mxUtils.bind(this,function(X){this.spinner.stop();T(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(X))})))}else k=ia+".svg",P=this.getFileData(!1,!0,null,mxUtils.bind(this,function(X){this.spinner.stop();T(X)}),q)}}catch(X){this.handleError(X)}};EditorUi.prototype.createDownloadRequest=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka,ua,Ca,ia,k){c=this.downloadRequestBuilder(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka,ua,Ca,ia,k);f="";for(var u in c)l=+c[u],null!=l&&(f+=u+"="+encodeURIComponent(l)+"&");return new mxXmlRequest(EXPORT_URL,f)};EditorUi.prototype.downloadRequestBuilder=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka,ua,Ca,ia,k){var u=this.editor.graph,H=u.getGraphBounds();l=this.getFileData(!0,null,null,null,l,0==A?!1:"xmlpng"!=f,null,null,null,!Editor.defaultCompressed,"pdf"==f);var P=null,T=null,W=null;if(!EditorUi.isElectronApp&&(H.width*H.height>MAX_AREA||l.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};+V=V?"1":"0";"pdf"==f&&(null!=K?(P=K.from,T=K.to):0==A&&(W="1"));"xmlpng"==f&&(V="1",f="png");if(("xmlpng"==f||"svg"==f)&&null!=this.pages&&null!=this.currentPage)for(A=0;A<this.pages.length;A++)if(this.pages[A]==this.currentPage){P=A;break}A=u.background;"png"!=f&&"pdf"!=f&&"svg"!=f||!x?x||null!=A&&A!=mxConstants.NONE||(A="#ffffff"):A=mxConstants.NONE;x={globalVars:u.getExportVariables()};null!=K&&null!=K.from&&(x.globalVars.pagenumber=K.from+1);Q&&(x.grid={size:u.gridSize,steps:u.view.gridSteps,+color:Editor.isDarkMode()&&"pdf"==f?mxGraphView.prototype.defaultGridColor:u.view.gridColor});Graph.translateDiagram&&(x.diagramLanguage=Graph.diagramLanguage);Q=this.getHiddenTagsMap();null!=Q&&(x.hiddenTags=Q);return{format:f,from:P,to:T,allPages:W,bg:null!=A?A:mxConstants.NONE,base64:q,embedXml:V,xml:l,filename:null!=c?c:"",extras:JSON.stringify(x),scale:E,border:J,pageMargin:ja,w:fa&&isFinite(fa)?fa:null,h:Y&&isFinite(Y)?Y:null,crop:null!=aa&&aa?"1":"0",fit:null!=ka&&ka?"1":"0",shadows:null!=ia&&ia?"1":"0",sheetsAcross:ua,sheetsDown:Ca,icons:null!=k&&k?"1":"0"}};EditorUi.prototype.getHiddenTagsMap=function(){var c=this.editor.graph,f={},l=!1;if(null!=this.pages)for(var q=0;q<this.pages.length;q++){var x=this.pages[q],A=x==this.currentPage?c.hiddenTags:null!=x.viewState?x.viewState.hiddenTags:null;null!=A&&0<A.length&&(f[x.getId()]=A,l=!0)}else null!=c.hiddenTags&&0<c.hiddenTags.length&&(f[0]=c.hiddenTags,l=!0);return l?f:null};EditorUi.prototype.setMode=function(c,f){this.mode=c};EditorUi.prototype.getDiagramId=function(){var c=window.location.hash;null!=c&&0<c.length&&(c=c.substring(1));if(null!=c&&1<c.length){var f=c.indexOf("#");0<=f&&(c=c.substring(0,f))}return c};EditorUi.prototype.getHashObject=function(){var c=window.location.hash,f={};if(null!=c&&0<c.length){var l=c.lastIndexOf("#");if(0<l){c=decodeURIComponent(c.substring(l+1));try{f=JSON.parse(c)}catch(q){}}}return f};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&null!=this.currentPage&&""!=this.currentFile.getHash()){var c=this.getHashObject();c.pageId=this.currentPage.getId();this.setHashObject(c)}else this.setHashObject(null)};EditorUi.prototype.setHashObject=function(c){if(Editor.enableHashObjects){var f=window.location.hash;if(null==f||""==f)f="#";var l=f.lastIndexOf("#");0<l&&(f=f.substring(0,l));try{null==c||mxUtils.isEmptyObject(c)||(f=f+"#"+encodeURIComponent(JSON.stringify(c)))}catch(q){}0<l&&0<f.lastIndexOf("#")?window.location.hash=f:window.location.replace(f)}};EditorUi.prototype.loadDescriptor=function(c,f,l){var q=window.location.hash,x=mxUtils.bind(this,function(E){var J=null!=c.data?c.data:"";null!=E&&0<E.length&&(0<J.length&&(J+="\n"),J+=E);E=new LocalFile(this,"csv"!=c.format&&0<J.length?J:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);E.getHash=function(){return q};this.fileLoaded(E);"csv"==c.format&&this.importCsv(J,mxUtils.bind(this,function(Y){this.editor.undoManager.clear();this.editor.setModified(!1);this.clearStatus()}));if(null!=c.update){var Q=null!=c.interval?parseInt(c.interval):6E4,V=null,K=mxUtils.bind(this,function(){var Y=this.currentPage;mxUtils.post(c.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(aa){Y===this.currentPage&&(200<=aa.getStatus()&&300>=aa.getStatus()?(this.updateDiagram(aa.getText()),fa()):this.handleError({message:mxResources.get("error")+" "+aa.getStatus()}))}),mxUtils.bind(this,function(aa){this.handleError(aa)}))}),fa=mxUtils.bind(this,function(){window.clearTimeout(V);-V=window.setTimeout(K,Q)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){fa();K()}));fa();K()}null!=f&&f()});if(null!=c.url&&0<c.url.length){var A=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(A,mxUtils.bind(this,function(E){x(E)}),mxUtils.bind(this,function(E){null!=l&&l(E)}))}else x("")};EditorUi.prototype.updateDiagram=function(c){function f(k){var v=new mxCellOverlay(k.image||x.warningImage,k.tooltip,k.align,k.valign,k.offset);v.addListener(mxEvent.CLICK,function(H,-P){q.alert(k.tooltip)});return v}var l=null,q=this;if(null!=c&&0<c.length&&(l=mxUtils.parseXml(c),c=null!=l?l.documentElement:null,null!=c&&"updates"==c.nodeName)){var x=this.editor.graph,A=x.getModel();A.beginUpdate();var E=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var J=A.getCell(c.getAttribute("id"));if(null!=J){try{var Q=c.getAttribute("value");if(null!=Q){var V=mxUtils.parseXml(Q).documentElement;if(null!=V)if("1"==V.getAttribute("replace-value"))A.setValue(J,V);else for(var K=+V=window.setTimeout(K,Q)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){fa();K()}));fa();K()}null!=f&&f()});if(null!=c.url&&0<c.url.length){var A=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(A,mxUtils.bind(this,function(E){x(E)}),mxUtils.bind(this,function(E){null!=l&&l(E)}))}else x("")};EditorUi.prototype.updateDiagram=function(c){function f(k){var u=new mxCellOverlay(k.image||x.warningImage,k.tooltip,k.align,k.valign,k.offset);u.addListener(mxEvent.CLICK,function(H,+P){q.alert(k.tooltip)});return u}var l=null,q=this;if(null!=c&&0<c.length&&(l=mxUtils.parseXml(c),c=null!=l?l.documentElement:null,null!=c&&"updates"==c.nodeName)){var x=this.editor.graph,A=x.getModel();A.beginUpdate();var E=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var J=A.getCell(c.getAttribute("id"));if(null!=J){try{var Q=c.getAttribute("value");if(null!=Q){var V=mxUtils.parseXml(Q).documentElement;if(null!=V)if("1"==V.getAttribute("replace-value"))A.setValue(J,V);else for(var K=V.attributes,fa=0;fa<K.length;fa++)x.setAttributeForCell(J,K[fa].nodeName,0<K[fa].nodeValue.length?K[fa].nodeValue:null)}}catch(k){null!=window.console&&console.log("Error in value for "+J.id+": "+k)}try{var Y=c.getAttribute("style");null!=Y&&x.model.setStyle(J,Y)}catch(k){null!=window.console&&console.log("Error in style for "+J.id+": "+k)}try{var aa=c.getAttribute("icon");if(null!=aa){var ja=0<aa.length?JSON.parse(aa):null;null!=ja&&ja.append||x.removeCellOverlays(J);null!=ja&&x.addCellOverlay(J,f(ja))}}catch(k){null!=window.console&&console.log("Error in icon for "+J.id+": "+k)}try{var ka=c.getAttribute("geometry");if(null!=ka){ka=JSON.parse(ka);var ua=x.getCellGeometry(J);if(null!=ua){ua=ua.clone();for(key in ka){var Ca=parseFloat(ka[key]);"dx"==key?ua.x+=Ca:"dy"==key?ua.y+=Ca:"dw"==key?ua.width+=Ca:"dh"==key?ua.height+=Ca:ua[key]=parseFloat(ka[key])}x.model.setGeometry(J,ua)}}}catch(k){null!=window.console&&console.log("Error in icon for "+J.id+": "+k)}}}else if("model"==c.nodeName){for(var ia=c.firstChild;null!=ia&&ia.nodeType!=mxConstants.NODETYPE_ELEMENT;)ia=ia.nextSibling;null!=ia&&(new mxCodec(c.firstChild)).decode(ia,A)}else if("view"==c.nodeName){if(c.hasAttribute("scale")&&(x.view.scale=parseFloat(c.getAttribute("scale"))),c.hasAttribute("dx")||c.hasAttribute("dy"))x.view.translate=new mxPoint(parseFloat(c.getAttribute("dx")||0),parseFloat(c.getAttribute("dy")||0))}else"fit"==c.nodeName&&(E=c.hasAttribute("max-scale")?parseFloat(c.getAttribute("max-scale")):1);c=c.nextSibling}}finally{A.endUpdate()}null!=@@ -4248,16 +4250,16 @@ null==l&&(l=c.getTitle(),null!=l&&/(\.xml)$/i.test(l)&&(l=l.substring(0,l.lastInq.style.position="relative";var fa=document.createElement("img");fa.className="geLibraryButton";fa.setAttribute("src",Editor.crossImage);fa.setAttribute("title",mxResources.get("close"));var Y=null;if(".scratchpad"!=c.title||this.closableScratchpad)K.appendChild(fa),mxEvent.addListener(fa,"click",mxUtils.bind(this,function(ia){if(!mxEvent.isConsumed(ia)){var k=mxUtils.bind(this,function(){null!=A&&mxUtils.remove(A,this.openLibraries);this.closeLibrary(c)});null!=Y?this.confirm(mxResources.get("allChangesLost"),null,k,mxResources.get("cancel"),mxResources.get("discardChanges")):k();mxEvent.consume(ia)}}));if(c.isEditable()){var aa=this.editor.graph,ja=null;l=mxUtils.bind(this,function(ia){this.showLibraryDialog(c.getTitle(),V,f,c,c.getMode());mxEvent.consume(ia)});var ka=mxUtils.bind(this,function(ia){c.setModified(!0);c.isAutosave()?(null!=ja&&null!=ja.parentNode&&ja.parentNode.removeChild(ja),ja=fa.cloneNode(!1),ja.setAttribute("src",Editor.spinImage),ja.setAttribute("title",mxResources.get("saving")),ja.style.cursor="default",ja.style.marginRight="2px",ja.style.marginTop="-2px",K.insertBefore(ja,K.firstChild),this.saveLibrary(c.getTitle(),f,c,c.getMode(),!0,!0,function(){null!=ja&&null!=ja.parentNode&&ja.parentNode.removeChild(ja)})):null==Y&&(Y=fa.cloneNode(!1),Y.setAttribute("src",Editor.saveImage),Y.setAttribute("title",mxResources.get("save")),K.insertBefore(Y,K.firstChild),mxEvent.addListener(Y,"click",mxUtils.bind(this,function(k){this.saveLibrary(c.getTitle(),f,c,c.getMode(),c.constructor==-LocalLibrary,!0,function(){null==Y||c.isModified()||(Y.parentNode.removeChild(Y),Y=null)});mxEvent.consume(k)})))}),ua=mxUtils.bind(this,function(ia,k,v,H){ia=aa.cloneCells(mxUtils.sortCells(aa.model.getTopmostCells(ia)));for(var P=0;P<ia.length;P++){var T=aa.getCellGeometry(ia[P]);null!=T&&T.translate(-k.x,-k.y)}V.appendChild(this.sidebar.createVertexTemplateFromCells(ia,k.width,k.height,H||"",!0,null,!1));ia=mxUtils.getXml(this.editor.graph.encodeCells(ia));Editor.defaultCompressed&&(ia=Graph.compress(ia));-k={xml:ia,w:k.width,h:k.height};null!=H&&(k.title=H);f.push(k);ka(v);null!=J&&null!=J.parentNode&&0<f.length&&(J.parentNode.removeChild(J),J=null)}),Ca=mxUtils.bind(this,function(ia){if(aa.isSelectionEmpty())aa.getRubberband().isActive()?(aa.getRubberband().execute(ia),aa.getRubberband().reset()):null!=ia&&null!=mxEvent.getSource(ia)&&mxEvent.getSource(ia).classList.contains("geLibraryButton")&&this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var k=-aa.getSelectionCells(),v=aa.view.getBounds(k);if(null!=v&&0<v.width&&0<v.height){var H=aa.view.scale;v.x/=H;v.y/=H;v.width/=H;v.height/=H;v.x-=aa.view.translate.x;v.y-=aa.view.translate.y;ua(k,v)}else this.showError(mxResources.get("error"),mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(ia)});mxEvent.addGestureListeners(V,function(){},mxUtils.bind(this,function(ia){aa.isMouseDown&&null!=aa.panningManager&&null!=aa.graphHandler.first&&(aa.graphHandler.suspend(),null!=aa.graphHandler.hint&&+LocalLibrary,!0,function(){null==Y||c.isModified()||(Y.parentNode.removeChild(Y),Y=null)});mxEvent.consume(k)})))}),ua=mxUtils.bind(this,function(ia,k,u,H){ia=aa.cloneCells(mxUtils.sortCells(aa.model.getTopmostCells(ia)));for(var P=0;P<ia.length;P++){var T=aa.getCellGeometry(ia[P]);null!=T&&T.translate(-k.x,-k.y)}V.appendChild(this.sidebar.createVertexTemplateFromCells(ia,k.width,k.height,H||"",!0,null,!1));ia=mxUtils.getXml(this.editor.graph.encodeCells(ia));Editor.defaultCompressed&&(ia=Graph.compress(ia));+k={xml:ia,w:k.width,h:k.height};null!=H&&(k.title=H);f.push(k);ka(u);null!=J&&null!=J.parentNode&&0<f.length&&(J.parentNode.removeChild(J),J=null)}),Ca=mxUtils.bind(this,function(ia){if(aa.isSelectionEmpty())aa.getRubberband().isActive()?(aa.getRubberband().execute(ia),aa.getRubberband().reset()):null!=ia&&null!=mxEvent.getSource(ia)&&mxEvent.getSource(ia).classList.contains("geLibraryButton")&&this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var k=+aa.getSelectionCells(),u=aa.view.getBounds(k);if(null!=u&&0<u.width&&0<u.height){var H=aa.view.scale;u.x/=H;u.y/=H;u.width/=H;u.height/=H;u.x-=aa.view.translate.x;u.y-=aa.view.translate.y;ua(k,u)}else this.showError(mxResources.get("error"),mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(ia)});mxEvent.addGestureListeners(V,function(){},mxUtils.bind(this,function(ia){aa.isMouseDown&&null!=aa.panningManager&&null!=aa.graphHandler.first&&(aa.graphHandler.suspend(),null!=aa.graphHandler.hint&&(aa.graphHandler.hint.style.visibility="hidden"),V.style.backgroundColor="light-dark(#fefefe, #000000)",V.style.cursor="copy",aa.panningManager.stop(),aa.autoScroll=!1,mxEvent.consume(ia))}),mxUtils.bind(this,function(ia){aa.isMouseDown&&null!=aa.panningManager&&null!=aa.graphHandler&&(V.style.backgroundColor="",V.style.cursor="default",this.sidebar.showTooltips=!0,aa.panningManager.stop(),aa.graphHandler.reset(),aa.isMouseDown=!1,aa.autoScroll=!0,Ca(ia),mxEvent.consume(ia))}));mxEvent.addListener(V,"mouseleave",mxUtils.bind(this,function(ia){aa.isMouseDown&&null!=aa.graphHandler.first&&(aa.graphHandler.resume(),null!=aa.graphHandler.hint&&(aa.graphHandler.hint.style.visibility="visible"),V.style.backgroundColor="",V.style.cursor="",aa.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(V,"dragover",mxUtils.bind(this,function(ia){V.style.backgroundColor="light-dark(#fefefe, #000000)";ia.dataTransfer.dropEffect="copy";V.style.cursor="copy";this.sidebar.hideTooltip();ia.stopPropagation();-ia.preventDefault()})),mxEvent.addListener(V,"drop",mxUtils.bind(this,function(ia){V.style.cursor="";V.style.backgroundColor="";0<ia.dataTransfer.files.length&&this.importFiles(ia.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(k,v,H,P,T,W,ha,X,ea){if(null!=k&&"image/"==v.substring(0,6))k="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(k),k=[new mxCell("",new mxGeometry(0,0,T,W),k)],k[0].vertex=!0,ua(k,new mxRectangle(0,+ia.preventDefault()})),mxEvent.addListener(V,"drop",mxUtils.bind(this,function(ia){V.style.cursor="";V.style.backgroundColor="";0<ia.dataTransfer.files.length&&this.importFiles(ia.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(k,u,H,P,T,W,ha,X,ea){if(null!=k&&"image/"==u.substring(0,6))k="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(k),k=[new mxCell("",new mxGeometry(0,0,T,W),k)],k[0].vertex=!0,ua(k,new mxRectangle(0,0,T,W),ia,mxEvent.isAltDown(ia)?null:ha.substring(0,ha.lastIndexOf(".")).replace(/_/g," ")),null!=J&&null!=J.parentNode&&0<f.length&&(J.parentNode.removeChild(J),J=null);else{var oa=!1,la=mxUtils.bind(this,function(ca,ta){null!=ca&&"application/pdf"==ta&&(ta=Editor.extractGraphModelFromPdf(ca),null!=ta&&0<ta.length&&(ca=ta));if(null!=ca)if(ca=mxUtils.parseXml(ca),"mxlibrary"==ca.documentElement.nodeName)try{var xa=JSON.parse(mxUtils.getTextContent(ca.documentElement));Q(xa,V);f=f.concat(xa);ka(ia);this.spinner.stop();oa=!0}catch(ra){}else if("mxfile"==ca.documentElement.nodeName)try{var qa=ca.documentElement.getElementsByTagName("diagram");for(xa=0;xa<qa.length;xa++){var Ba=this.stringToCells(Editor.getDiagramNodeXml(qa[xa])),na=this.editor.graph.getBoundingBoxFromGeometry(Ba);null!=na&&ua(Ba,new mxRectangle(0,0,na.width,na.height),ia)}oa=!0}catch(ra){null!=window.console&&console.log("error in drop handler:",ra)}oa||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=J&&null!=J.parentNode&&0<f.length&&(J.parentNode.removeChild(J),J=null)});null!=ea&&null!=ha&&EditorUi.isVisioFilename(ha)?this.importVisio(ea,function(ca){la(ca,"text/xml")},null,ha):this.isGliffyData(k,ha)&&null!=ea?this.importGliffy(k,mxUtils.bind(this,function(ca){this.spinner.stop();la(ca,"text/xml")}),mxUtils.bind(this,function(ca){this.spinner.stop();this.handleError({message:mxResources.get(null!=ca&&413==ca.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile"))}),-ha):la(k,v)}}));ia.stopPropagation();ia.preventDefault()})),mxEvent.addListener(V,"dragleave",function(ia){V.style.cursor="";V.style.backgroundColor="";ia.stopPropagation();ia.preventDefault()}));fa=fa.cloneNode(!1);fa.setAttribute("src",Editor.editImage);fa.setAttribute("title",mxResources.get("edit"));K.insertBefore(fa,K.firstChild);mxEvent.addListener(fa,"click",l);l=fa.cloneNode(!1);l.setAttribute("src",Editor.plusImage);l.setAttribute("title",mxResources.get("add"));K.insertBefore(l,K.firstChild);+ha):la(k,u)}}));ia.stopPropagation();ia.preventDefault()})),mxEvent.addListener(V,"dragleave",function(ia){V.style.cursor="";V.style.backgroundColor="";ia.stopPropagation();ia.preventDefault()}));fa=fa.cloneNode(!1);fa.setAttribute("src",Editor.editImage);fa.setAttribute("title",mxResources.get("edit"));K.insertBefore(fa,K.firstChild);mxEvent.addListener(fa,"click",l);l=fa.cloneNode(!1);l.setAttribute("src",Editor.plusImage);l.setAttribute("title",mxResources.get("add"));K.insertBefore(l,K.firstChild);mxEvent.addListener(l,"click",Ca);".scratchpad"==c.title&&(this.addSelectionToScratchpad=Ca);this.isOffline()||".scratchpad"!=c.title||null==EditorUi.scratchpadHelpLink||(l=this.createHelpIcon(EditorUi.scratchpadHelpLink,!0),l.className="geLibraryButton",K.insertBefore(l,K.firstChild))}q.appendChild(K);this.editor.fireEvent(new mxEventObject("libraryLoaded"))}};EditorUi.prototype.addLibraryEntries=function(c,f){for(var l=0;l<c.length;l++)try{var q=c[l],x=q.data;if(null!=x){x="data:"==x.substring(0,5)?this.convertDataUri(x):x;var A="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==q.aspect&&(A+="aspect=fixed;");A=A+"image="+x+";";null!=q.style&&(A+=q.style);f.appendChild(this.sidebar.createVertexTemplate(A,q.w,q.h,"",q.title||"",!1,null,!0))}else if(null!=q.xml){var E=this.stringToCells("<"==q.xml.charAt(0)?q.xml:Graph.decompress(q.xml)),J=0==E.length?mxResources.get("drawingEmpty"):null!=q.title?q.title:"";f.appendChild(this.sidebar.createVertexTemplateFromCells(E,q.w,q.h,J,!0,null,!0))}}catch(Q){J=null!=Q.message?mxResources.get("error")+": "+Q.message:String(Q),A=this.sidebar.createVertexTemplateFromCells(null,q.w,q.h,J,!0,null,!0),f.appendChild(A)}};EditorUi.prototype.getResource=function(c){return null!=c?c[mxLanguage]||c.main:null};"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"sketch"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(Editor.configurationKey=".sketch-configuration",@@ -4266,7 +4268,7 @@ else{if(0<J.length){var Q=JSON.parse(J);localStorage.setItem(f,JSON.stringify(Q)null,X,mxResources.get("cancel"),mxResources.get("discardChanges")):X()}function A(){ka=!0;V.hideDialog()}function E(X,ea){var oa=document.createElement("div");oa.style.padding="4px 16px";oa.style.cursor="pointer";oa.style.fontSize="13px";oa.style.borderBottom=ea?"2px solid #29b6f2":"2px solid transparent";oa.style.fontWeight=ea?"bold":"normal";oa.style.color=ea?"":"#888";oa.style.userSelect="none";mxUtils.write(oa,X);return oa}function J(X,ea){X.style.borderBottomColor=ea?"#29b6f2":"transparent";X.style.fontWeight=ea?"bold":"normal";X.style.color=ea?"":"#888"}function Q(X){if(X!==aa){if("json"===aa)try{var ea=JSON.parse(T.value);Y=ea;H.setConfig(ea)}catch(oa){}else"json"===X&&null!=Y&&(T.value=JSON.stringify(Y,null,2));k.style.display="editor"===X?"":"none";P.style.display="json"===X?"":"none";J(Ca,"editor"===X);J(ia,"json"===X);"json"===X&&T.focus();aa=X}}var V=this,K=localStorage.getItem(f),fa={};try{null!=K&&(fa=JSON.parse(K))}catch(X){}var Y=fa,aa="editor",ja=!1,ka=!1;c=document.createElement("div");c.style.position="absolute";c.style.top="20px";c.style.bottom="20px";c.style.left="20px";c.style.right="20px";var ua=document.createElement("div");ua.style.position="absolute";ua.style.left="0";ua.style.right="0";ua.style.top="0";ua.style.height="28px";ua.style.display="flex";ua.style.alignItems="end";ua.style.borderBottom="1px solid #d0d0d0";var Ca=E(mxResources.get("editor"),!0),ia=E(mxResources.get("formatJson"),!1);ua.appendChild(Ca);ua.appendChild(ia);c.appendChild(ua);var k=document.createElement("div");-k.style.position="absolute";k.style.left="0";k.style.right="0";k.style.top="30px";k.style.bottom="50px";ua={};try{var v=V.editor.graph;null!=v.currentVertexStyle&&(ua.currentVertexStyle=v.currentVertexStyle);null!=v.currentEdgeStyle&&(ua.currentEdgeStyle=v.currentEdgeStyle)}catch(X){}var H=DrawioConfigEditor.install(k,{initialConfig:fa,editorContext:ua,darkMode:null!=Editor.isDarkMode&&Editor.isDarkMode(),highContrast:V.isHighContrast(),onConfigChanged:function(X){Y=X;ja=!0}}),P=document.createElement("div");+k.style.position="absolute";k.style.left="0";k.style.right="0";k.style.top="30px";k.style.bottom="50px";ua={};try{var u=V.editor.graph;null!=u.currentVertexStyle&&(ua.currentVertexStyle=u.currentVertexStyle);null!=u.currentEdgeStyle&&(ua.currentEdgeStyle=u.currentEdgeStyle)}catch(X){}var H=DrawioConfigEditor.install(k,{initialConfig:fa,editorContext:ua,darkMode:null!=Editor.isDarkMode&&Editor.isDarkMode(),highContrast:V.isHighContrast(),onConfigChanged:function(X){Y=X;ja=!0}}),P=document.createElement("div");P.style.position="absolute";P.style.left="0";P.style.right="0";P.style.top="30px";P.style.bottom="50px";P.style.display="none";var T=document.createElement("textarea");T.setAttribute("wrap","off");T.setAttribute("spellcheck","false");T.setAttribute("autocorrect","off");T.setAttribute("autocomplete","off");T.setAttribute("autocapitalize","off");T.style.resize="none";T.style.outline="none";T.style.boxSizing="border-box";T.style.width="100%";T.style.height="100%";try{T.value=null!=K?JSON.stringify(JSON.parse(K),null,2):""}catch(X){T.value=K||""}mxEvent.addListener(T,"input",function(){ja=!0});P.appendChild(T);c.appendChild(k);c.appendChild(P);mxEvent.addListener(Ca,"click",function(){Q("editor")});mxEvent.addListener(ia,"click",function(){Q("json")});var W=document.createElement("div");W.style.position="absolute";W.style.left="0";W.style.right="0";W.style.bottom="0";W.style.height="46px";W.style.display="flex";W.style.whiteSpace="nowrap";W.style.alignItems="center";W.style.justifyContent="end";W.style.paddingTop="10px";W.style.paddingBottom="10px";W.style.boxSizing="border-box";null==q||V.isOffline()||W.appendChild(V.createHelpIcon(q));if(null!=l)for(q=0;q<l.length;q++)(function(X,ea,oa){X=mxUtils.button(X,function(la){"json"!==aa&&null!=Y&&(T.value=JSON.stringify(Y,null,2));ea(la,T)});null!=oa&&X.setAttribute("title",oa);X.className="geBtn";W.appendChild(X)})(l[q][0],l[q][1],l[q][2]);q=mxUtils.button(mxResources.get("close"),function(){x(A)});q.setAttribute("title","Escape");q.className="geBtn";var ha=mxUtils.button(mxResources.get("apply"),@@ -4276,7 +4278,7 @@ for(var V=!1===navigator.onLine,K=Object.create(null),fa=0;fa<x.length;fa++){var"10px";l.style.left="16px";l.style.right="16px";var q=document.createElement("div");q.style.position="absolute";q.style.left="0";q.style.right="0";q.style.top="0";q.style.bottom="46px";q.style.overflow="auto";l.appendChild(q);var x=[];f.getOfflineLanguages(function(Q){for(var V=Object.create(null),K=0;K<Q.length;K++)V[Q[K]]=!0;Q=[];for(var fa in mxLanguageMap)"i18n"!=fa&&""!=mxLanguageMap[fa]&&Q.push({code:fa,name:mxLanguageMap[fa]});Q.sort(function(aa,ja){return aa.name.localeCompare(ja.name)});K=document.createElement("div");K.style.padding="8px 4px 0 4px";K.style.color="#888";mxUtils.write(K,mxResources.get("offlineLanguages",null,"Languages available offline"));q.appendChild(K);var Y=document.createElement("div");Y.style.display="grid";Y.style.gridTemplateColumns="repeat(auto-fill, minmax(170px, 1fr))";Y.style.gap="2px 16px";Y.style.padding="8px 4px";Y.style.cursor="pointer";for(K=0;K<Q.length;K++)(function(aa,ja){var ka=document.createElement("label");ka.style.display="flex";ka.style.alignItems="center";ka.style.padding="4px";ka.style.overflow="hidden";ka.style.whiteSpace="nowrap";var ua=document.createElement("span");ua.style.display="inline-flex";ua.style.alignItems="center";ua.style.justifyContent="center";ua.style.position="relative";ua.style.width="16px";ua.style.height="16px";ua.style.margin="0 8px 0 0";ua.style.flexShrink="0";var Ca=document.createElement("input");Ca.setAttribute("type","checkbox");Ca.style.margin="0";Ca.checked="en"==aa||1==V[aa];x.push({code:aa,box:Ca,row:ka});-mxEvent.addListener(Ca,"change",function(){Ca.style.display="none";var k=f.createSpinner(null,null,4);k.spin(ua);var v=function(){f.getOfflineLanguages(function(H){k.stop();Ca.style.display="";Ca.checked=0<=mxUtils.indexOf(H,aa);c()});f.updateOfflineLanguages()};Ca.checked?fetch("resources/dia_"+aa+".txt").then(v,v):f.removeOfflineLanguage(aa,v)});ua.appendChild(Ca);ka.appendChild(ua);var ia=document.createElement("span");ia.style.overflow="hidden";ia.style.textOverflow="ellipsis";ia.style.lineHeight=+mxEvent.addListener(Ca,"change",function(){Ca.style.display="none";var k=f.createSpinner(null,null,4);k.spin(ua);var u=function(){f.getOfflineLanguages(function(H){k.stop();Ca.style.display="";Ca.checked=0<=mxUtils.indexOf(H,aa);c()});f.updateOfflineLanguages()};Ca.checked?fetch("resources/dia_"+aa+".txt").then(u,u):f.removeOfflineLanguage(aa,u)});ua.appendChild(Ca);ka.appendChild(ua);var ia=document.createElement("span");ia.style.overflow="hidden";ia.style.textOverflow="ellipsis";ia.style.lineHeight="normal";mxUtils.write(ia,ja);ka.appendChild(ia);Y.appendChild(ka)})(Q[K].code,Q[K].name);q.appendChild(Y);c()});var A=function(){c()};mxEvent.addListener(window,"online",A);mxEvent.addListener(window,"offline",A);var E=document.createElement("div");E.style.position="absolute";E.style.left="0";E.style.right="0";E.style.bottom="0";E.style.height="46px";E.style.display="flex";E.style.whiteSpace="nowrap";E.style.alignItems="center";E.style.justifyContent="end";E.style.paddingTop="10px";E.style.paddingBottom="10px";E.style.boxSizing="border-box";var J=mxUtils.button(mxResources.get("close"),function(){f.hideDialog()});J.setAttribute("title","Escape");J.className="geBtn gePrimaryBtn";E.appendChild(J);l.appendChild(E);this.showDialog(l,480,460,!0,!0,function(){mxEvent.removeListener(window,"online",A);mxEvent.removeListener(window,"offline",A)})};EditorUi.prototype.showBackgroundImageDialog=function(c,f,l,q){c=null!=c?c:mxUtils.bind(this,function(x,A,E){A||(x=new ChangePageSetup(this,q?E:null,x),x.ignoreColor=!q,this.editor.graph.model.execute(x))});c=new BackgroundImageDialog(this,c,f,l,q);this.showDialog(c.container,400,null,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,f,l,q,x){c=new LibraryDialog(this,c,f,l,q,x);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(A){A&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}),!1,!1,new mxRectangle(0,0,480,320));c.init()};EditorUi.prototype.getCollapsedSections=function(){return mxSettings.getCollapsedSections()};@@ -4331,14 +4333,14 @@ K||null!=V&&0<V.length){var aa=l("_blank"==K?null:V,K==App.MODE_DEVICE||"downloac.querySelectorAll("[data-icon-content]"),l=0;l<f.length;l++)"g"==f[l].nodeName&&f[l].hasAttribute("data-icon")||f[l].removeAttribute("data-icon-content");if(null!=c.querySelector("[data-icon-content]")){f=c.ownerDocument;l=null!=f.createElementNS?f.createElementNS(mxConstants.NS_SVG,"style"):f.createElement("style");l.appendChild(f.createTextNode(".geSvgPopup { display: inline-block; box-sizing: border-box; max-width: 100%; max-height: 100%; overflow: auto; background-color: #ffffff; border: 1px solid #c0c0c0; border-radius: 4px; box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.25); padding: 8px; color: #000000; font-family: Helvetica, Arial, sans-serif; font-size: 12px; word-break: break-word; } @media (prefers-color-scheme: dark) { .geSvgPopup { background-color: #2a252f; border-color: #505050; color: #ffffff; } } @media print { [data-icon], .geSvgPopup { display: none; } }"));c.appendChild(l);l=null!=f.createElementNS?f.createElementNS(mxConstants.NS_SVG,"script"):f.createElement("script");l.setAttribute("type","text/javascript");var q='(function() {\nvar svg = document.documentElement;\nvar fo = null, active = null, pinned = false, thread = null;\nfunction hide() {\nif (fo != null && fo.parentNode != null) { fo.parentNode.removeChild(fo); }\nfo = null; active = null; pinned = false;\n}\nfunction cancel() {\nif (thread != null) { window.clearTimeout(thread); thread = null; }\n}\nfunction schedule() {\ncancel();\nif (!pinned) { thread = window.setTimeout(hide, 300); }\n}\nfunction show(icon) {\ncancel();\nif (active == icon) { return; }\nhide();\nvar content = icon.getAttribute("data-icon-content");\nif (content == null || content == "") { return; }\nvar x = parseFloat(icon.getAttribute("x"));\nvar y = parseFloat(icon.getAttribute("y"));\nvar w = parseFloat(icon.getAttribute("width"));\nif (isNaN(x) || isNaN(y)) {\ntry { var bb = icon.getBBox(); x = bb.x; y = bb.y; w = bb.width; }\ncatch (e) { x = 0; y = 0; }\n}\nif (isNaN(w) || w <= 0) { w = 16; }\nvar vb = (svg.viewBox != null && svg.viewBox.baseVal != null &&\nsvg.viewBox.baseVal.width > 0) ? svg.viewBox.baseVal : null;\nvar maxW = (vb != null) ? vb.width : (svg.clientWidth || 800);\nvar maxH = (vb != null) ? vb.height : (svg.clientHeight || 600);\nvar pw = Math.max(60, Math.min(320, maxW - 4));\nvar ph = Math.max(40, Math.min(220, maxH - 4));\nfo = document.createElementNS("http://www.w3.org/2000/svg", "foreignObject");\nfo.setAttribute("width", pw);\nfo.setAttribute("height", ph);\nvar div = document.createElementNS("http://www.w3.org/1999/xhtml", "div");\ndiv.setAttribute("class", "geSvgPopup");\ndiv.innerHTML = content;\ndiv.addEventListener("mouseenter", cancel);\ndiv.addEventListener("mouseleave", schedule);\nfo.appendChild(div);\nsvg.appendChild(fo);\nvar mw = div.offsetWidth;\nvar mh = div.offsetHeight;\nif (mw > 0) { pw = Math.min(pw, mw + 2); }\nif (mh > 0) { ph = Math.min(ph, mh + 2); }\nvar px = x + w + 4;\nvar py = y;\nif (vb != null) {\npx = Math.max(vb.x, Math.min(px, vb.x + vb.width - pw - 2));\npy = Math.max(vb.y, Math.min(py, vb.y + vb.height - ph - 2));\n}\nfo.setAttribute("x", px);\nfo.setAttribute("y", py);\nfo.setAttribute("width", pw);\nfo.setAttribute("height", ph);\nactive = icon;\n}\nvar icons = document.querySelectorAll("g[data-icon][data-icon-content]");\nfor (var i = 0; i < icons.length; i++) {\n(function(icon) {\nicon.addEventListener("click", function(evt) {\nif (active == icon) { hide(); }\nelse { show(icon); pinned = true; }\nevt.preventDefault();\nevt.stopPropagation();\n});\nicon.addEventListener("mouseenter", function() {\nif (pinned) { cancel(); }\nelse { show(icon); }\n});\nicon.addEventListener("mouseleave", schedule);\n})(icons[i]);\n}\ndocument.addEventListener("mousedown", function(evt) {\nif (fo != null && (active == null || !active.contains(evt.target)) &&\n!fo.contains(evt.target)) { hide(); }\n});\ndocument.addEventListener("keydown", function(evt) {\nif (evt.keyCode == 27) { hide(); }\n});\n})();'.replace(/\n/g," ");l.appendChild(f.createCDATASection(q));c.appendChild(l)}};EditorUi.prototype.exportSvg=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka,ua){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(la){Editor.addRetryToError(la,mxUtils.bind(this,function(){this.exportSvg(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka,ua)}));this.handleError(la)})))try{var Ca=this.editor.graph.isSelectionEmpty();l=null!=l?l:Ca;var ia=f?null:this.editor.graph.background;ia==mxConstants.NONE&&-(ia=null);null==ia&&0==f&&(ia=this.editor.graph.shapeBackgroundColor);var k=this.editor.graph.addForeignObjectWarning;Editor.foreignObjectImages&&(this.editor.graph.addForeignObjectWarning=function(){});var v=mxUtils.lightDarkColorSupported,H=mxUtils.preferDarkColor;if("light"==K||"dark"==K)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor="dark"==K;ua&&(E=Math.max(null!=E?E:0,Math.ceil(16*c)));var P=this.editor.graph.createSvgImageExport(x,ja,ua,"self"==V?"_top":"_blank"),T=Object.create(null),-W=this.getSvgWithFontLookup(T,P,mxUtils.bind(this,function(){return this.editor.graph.getSvg(ia,c,E,J,null,l,null,P,"blank"==V?"_blank":"self"==V?"_top":null,null,null,K,fa,null,null,null,ka)}));mxUtils.lightDarkColorSupported=v;mxUtils.preferDarkColor=H;this.editor.graph.addForeignObjectWarning=k;q&&this.editor.graph.addSvgShadow(W);ua&&this.addSvgIconHandlers(W);var ha=this.getBaseFilename()+(x?".drawio":"")+".svg";aa=null!=aa?aa:mxUtils.bind(this,function(la){this.isLocalFileSave()||la.length<=+(ia=null);null==ia&&0==f&&(ia=this.editor.graph.shapeBackgroundColor);var k=this.editor.graph.addForeignObjectWarning;Editor.foreignObjectImages&&(this.editor.graph.addForeignObjectWarning=function(){});var u=mxUtils.lightDarkColorSupported,H=mxUtils.preferDarkColor;if("light"==K||"dark"==K)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor="dark"==K;ua&&(E=Math.max(null!=E?E:0,Math.ceil(16*c)));var P=this.editor.graph.createSvgImageExport(x,ja,ua,"self"==V?"_top":"_blank"),T=Object.create(null),+W=this.getSvgWithFontLookup(T,P,mxUtils.bind(this,function(){return this.editor.graph.getSvg(ia,c,E,J,null,l,null,P,"blank"==V?"_blank":"self"==V?"_top":null,null,null,K,fa,null,null,null,ka)}));mxUtils.lightDarkColorSupported=u;mxUtils.preferDarkColor=H;this.editor.graph.addForeignObjectWarning=k;q&&this.editor.graph.addSvgShadow(W);ua&&this.addSvgIconHandlers(W);var ha=this.getBaseFilename()+(x?".drawio":"")+".svg";aa=null!=aa?aa:mxUtils.bind(this,function(la){this.isLocalFileSave()||la.length<=MAX_REQUEST_SIZE?this.saveData(ha,"svg",la,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(la)}))});var X=mxUtils.bind(this,function(la){this.spinner.stop();x&&la.setAttribute("content",this.getFileData(!0,null,null,null,l,Q,null,null,null,null,null,c,E));aa(Graph.xmlDeclaration+"\n"+(x?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(la))});this.editor.graph.mathEnabled&&this.editor.addMathCss(W);var ea=mxUtils.bind(this,function(la){Editor.replaceSvgDataUris&&A&&EditorUi.embedSvgImages(la);Editor.foreignObjectImages&&Y?this.replaceAlternateContent(la,K,X):X(la)}),oa=mxUtils.bind(this,function(la){A&&!this.isOffline()&&Editor.canvasSupported?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(la,ea,this.thumbImageCache)):ea(la)});this.embedFonts(W,oa,Y?!0:!1,T)}catch(la){this.handleError(la)}};EditorUi.prototype.replaceAlternateContent=function(c,f,l){function q(fa,Y,aa,ja,ka){var ua=mxUtils.createElementNs(c.ownerDocument,mxConstants.NS_SVG,"image");ua.setAttribute("x",Y);ua.setAttribute("y",aa+.5);ua.setAttribute("width",ja.width);ua.setAttribute("height",ja.height);null==ua.setAttributeNS?ua.setAttribute("xlink:href",ka):ua.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",ka);fa.replaceChild(ua,fa.lastChild);J()}function x(){if(E<K.length)K[E++](x)}var A="";f=c.getElementsByTagName("style");for(var E=0;E<f.length;E++)A+=f[E].innerHTML;f=c.getElementsByTagName("switch");-counter=f.length;var J=mxUtils.bind(this,function(){counter--;0==counter&&l(c)}),Q={},V={},K=[];for(E=0;E<f.length;E++)mxUtils.bind(this,function(fa){var Y=fa.getElementsByTagName("div");if(0<Y.length)try{var aa=Y[0].cloneNode(!0),ja=parseInt(aa.style.marginLeft),ka=parseInt(aa.style.paddingTop),ua=aa.getElementsByTagName("div")[1],Ca=Y=!1,ia=aa.style.alignItems,k=aa.style.justifyContent;if(null!=aa.style.writingMode){var v=aa.style.writingMode;Ca="vertical-"==v.substring(0,9);Y="-rl"==v.substring(v.length--3)}var H=!Ca&&"1px"==aa.style.width||Ca&&"1px"==aa.style.height;if(!Ca&&"1px"==aa.style.height||Ca&&"1px"==aa.style.width)aa.style.alignItems=Ca&&Y?"unsafe flex-end":"unsafe flex-start";H&&(aa.style.justifyContent="unsafe flex-start");aa.style.paddingTop="";aa.style.marginLeft="";var P=aa.outerHTML,T=Q[P];null==T&&(aa.style.position="absolute",aa.style.visibility="hidden",document.body.appendChild(aa),v=1,v="1px"==aa.style.width?ua.offsetWidth:parseInt(aa.style.width),H=1,H="1px"==aa.style.height?-ua.offsetHeight:parseInt(aa.style.height),document.body.removeChild(aa),T=new mxRectangle(ja,ka,v,H),Q[P]=T);"1px"==aa.style.height&&("unsafe center"==ia?ka-=T.height/2:"unsafe flex-end"==ia&&(ka-=T.height));if("1px"==aa.style.width)if(!Ca&&"unsafe center"==k||Ca&&"unsafe center"==ia)ja-=T.width/2;else if(!Ca&&"unsafe flex-end"==k||Ca&&(!Y&&"unsafe flex-end"==ia||Y&&"unsafe flex-start"==ia))ja-=T.width;T=new mxRectangle(ja,ka,T.width,T.height+parseInt(ua.style.fontSize)/4);K.push(mxUtils.bind(this,+counter=f.length;var J=mxUtils.bind(this,function(){counter--;0==counter&&l(c)}),Q={},V={},K=[];for(E=0;E<f.length;E++)mxUtils.bind(this,function(fa){var Y=fa.getElementsByTagName("div");if(0<Y.length)try{var aa=Y[0].cloneNode(!0),ja=parseInt(aa.style.marginLeft),ka=parseInt(aa.style.paddingTop),ua=aa.getElementsByTagName("div")[1],Ca=Y=!1,ia=aa.style.alignItems,k=aa.style.justifyContent;if(null!=aa.style.writingMode){var u=aa.style.writingMode;Ca="vertical-"==u.substring(0,9);Y="-rl"==u.substring(u.length-+3)}var H=!Ca&&"1px"==aa.style.width||Ca&&"1px"==aa.style.height;if(!Ca&&"1px"==aa.style.height||Ca&&"1px"==aa.style.width)aa.style.alignItems=Ca&&Y?"unsafe flex-end":"unsafe flex-start";H&&(aa.style.justifyContent="unsafe flex-start");aa.style.paddingTop="";aa.style.marginLeft="";var P=aa.outerHTML,T=Q[P];null==T&&(aa.style.position="absolute",aa.style.visibility="hidden",document.body.appendChild(aa),u=1,u="1px"==aa.style.width?ua.offsetWidth:parseInt(aa.style.width),H=1,H="1px"==aa.style.height?+ua.offsetHeight:parseInt(aa.style.height),document.body.removeChild(aa),T=new mxRectangle(ja,ka,u,H),Q[P]=T);"1px"==aa.style.height&&("unsafe center"==ia?ka-=T.height/2:"unsafe flex-end"==ia&&(ka-=T.height));if("1px"==aa.style.width)if(!Ca&&"unsafe center"==k||Ca&&"unsafe center"==ia)ja-=T.width/2;else if(!Ca&&"unsafe flex-end"==k||Ca&&(!Y&&"unsafe flex-end"==ia||Y&&"unsafe flex-start"==ia))ja-=T.width;T=new mxRectangle(ja,ka,T.width,T.height+parseInt(ua.style.fontSize)/4);K.push(mxUtils.bind(this,function(W){var ha=V[P];null==ha?Graph.htmlToPng(P,T.width,T.height,mxUtils.bind(this,function(X){q(fa,ja,ka,T,X);V[P]=X;W()}),A):(q(fa,ja,ka,T,ha),W())}))}catch(W){J()}else J()})(f[E]);0==counter&&l(c);E=0;x()};EditorUi.prototype.addRadiobox=function(c,f,l,q,x,A,E){return this.addCheckbox(c,l,q,x,A,E,!0,f)};EditorUi.prototype.addCheckbox=function(c,f,l,q,x,A,E,J,Q){A=null!=A?A:!0;var V=document.createElement("input");V.style.marginRight="8px";V.setAttribute("type",E?"radio":"checkbox");E="geCheckbox-"+Editor.guid();V.id=E;null!=J&&V.setAttribute("name",J);l&&(V.setAttribute("checked","checked"),V.defaultChecked=!0);q&&V.setAttribute("disabled","disabled");A&&(Q?(x=document.createElement("div"),x.className="geDialogCheckRow",x.appendChild(V),l=document.createElement("label"),mxUtils.write(l,f),l.setAttribute("for",E),x.appendChild(l),c.appendChild(x),V.checkRow=x):(V.style.marginTop="16px",c.appendChild(V),l=document.createElement("label"),mxUtils.write(l,f),l.setAttribute("for",E),c.appendChild(l),x||mxUtils.br(c)));return V};EditorUi.prototype.addAdvancedSection=function(c,f){var l=document.createElement("div");l.className="geCollapsibleTitle";mxUtils.write(l,mxResources.get(f||"advanced"));var q=document.createElement("div");q.className="geCollapsibleContent geCollapsed";f=document.createElement("div");f.className="geDialogSection";q.appendChild(f);var x=function(A){if(A!==l.classList.contains("geExpanded")&&(l.classList.toggle("geExpanded"),q.classList.toggle("geCollapsed"),A=l.closest(".geDialog"),@@ -4362,28 +4364,28 @@ var E=document.createElement("select");E.className="geBtn";E.style.margin="0 4pxJ)}));x.appendChild(A)}A=document.createElement("div");A.className="geDialogSection";var V=this.addLinkSection(A),K=this.addPagesRow(A);Q=document.createElement("div");Q.className="geDialogCheckRow";var fa=document.createElement("input");fa.setAttribute("type","checkbox");fa.setAttribute("checked","checked");fa.defaultChecked=!0;fa.style.marginRight="8px";Q.appendChild(fa);var Y=document.createElement("label");mxUtils.write(Y,mxResources.get("zoom")+":");Q.appendChild(Y);var aa=document.createElement("input");aa.setAttribute("type","text");aa.style.width="60px";aa.style.marginLeft="4px";aa.value="100%";Q.appendChild(aa);A.appendChild(Q);var ja=this.addCheckbox(A,mxResources.get("fit"),!0,null,null,null,null,null,!0),ka=this.addCheckbox(A,mxResources.get("lightbox"),!0,null,null,null,null,null,!0);x.appendChild(A);A=this.addAdvancedSection(x).content;var ua=document.createElement("select");ua.style.maxWidth="260px";Q=document.createElement("option");Q.setAttribute("value","light");mxUtils.write(Q,mxResources.get("light"));ua.appendChild(Q);Q=document.createElement("option");Q.setAttribute("value","dark");mxUtils.write(Q,mxResources.get("dark"));ua.appendChild(Q);Q=document.createElement("option");Q.setAttribute("value","auto");mxUtils.write(Q,mxResources.get("automatic"));Q.setAttribute("selected","selected");ua.appendChild(Q);Q=document.createElement("div");Q.className="geDialogFormRow";Y=document.createElement("span");Y.className="geDialogFormLabel";mxUtils.write(Y,mxResources.get("appearance")+":");Q.appendChild(Y);-Q.appendChild(ua);A.appendChild(Q);var Ca=null;if(EditorUi.enableHtmlEditOption){Ca=this.addEditButton(A,ka);var ia=Ca.getEditInput();mxEvent.addListener(ka,"change",function(){ka.checked?ia.removeAttribute("disabled"):ia.setAttribute("disabled","disabled");ia.checked&&ka.checked?Ca.getEditSelect().removeAttribute("disabled"):Ca.getEditSelect().setAttribute("disabled","disabled")})}var k=this.addCheckbox(A,mxResources.get("layers"),!0,null,null,null,null,null,!0),v=this.addCheckbox(A,mxResources.get("tags"),-!0,null,null,null,null,null,!0),H=this.addCheckbox(A,mxResources.get("useCurrentSettings"),!0,null,null,null,null,null,!0);H.checkRow.style.paddingLeft="24px";var P=this.addCheckbox(A,mxResources.get("linkIcons"),!1,null,null,null,null,null,!0),T=this.addCheckbox(A,mxResources.get("tooltipIcons"),!1,null,null,null,null,null,!0);mxEvent.addListener(v,"change",function(){v.checked?H.removeAttribute("disabled"):H.setAttribute("disabled","disabled")});mxEvent.addListener(ka,"change",function(){ka.checked?-(P.removeAttribute("disabled"),T.removeAttribute("disabled")):(P.setAttribute("disabled","disabled"),T.setAttribute("disabled","disabled"))});c=new CustomDialog(this,x,mxUtils.bind(this,function(){q("url"==E.value?l:null,fa.checked,aa.value,V.getTarget(),V.getColor(),ja.checked,null!=K.row&&"allPages"==K.select.value,k.checked,v.checked,ka.checked,null!=Ca?Ca.getLink():null,null!=ua?ua.value:null,v.checked&&H.checked,P.checked,T.checked)}),null,c,f);this.showDialog(c.container,360,null,!0,!0);E.focus()};+Q.appendChild(ua);A.appendChild(Q);var Ca=null;if(EditorUi.enableHtmlEditOption){Ca=this.addEditButton(A,ka);var ia=Ca.getEditInput();mxEvent.addListener(ka,"change",function(){ka.checked?ia.removeAttribute("disabled"):ia.setAttribute("disabled","disabled");ia.checked&&ka.checked?Ca.getEditSelect().removeAttribute("disabled"):Ca.getEditSelect().setAttribute("disabled","disabled")})}var k=this.addCheckbox(A,mxResources.get("layers"),!0,null,null,null,null,null,!0),u=this.addCheckbox(A,mxResources.get("tags"),+!0,null,null,null,null,null,!0),H=this.addCheckbox(A,mxResources.get("useCurrentSettings"),!0,null,null,null,null,null,!0);H.checkRow.style.paddingLeft="24px";var P=this.addCheckbox(A,mxResources.get("linkIcons"),!1,null,null,null,null,null,!0),T=this.addCheckbox(A,mxResources.get("tooltipIcons"),!1,null,null,null,null,null,!0);mxEvent.addListener(u,"change",function(){u.checked?H.removeAttribute("disabled"):H.setAttribute("disabled","disabled")});mxEvent.addListener(ka,"change",function(){ka.checked?+(P.removeAttribute("disabled"),T.removeAttribute("disabled")):(P.setAttribute("disabled","disabled"),T.setAttribute("disabled","disabled"))});c=new CustomDialog(this,x,mxUtils.bind(this,function(){q("url"==E.value?l:null,fa.checked,aa.value,V.getTarget(),V.getColor(),ja.checked,null!=K.row&&"allPages"==K.select.value,k.checked,u.checked,ka.checked,null!=Ca?Ca.getLink():null,null!=ua?ua.value:null,u.checked&&H.checked,P.checked,T.checked)}),null,c,f);this.showDialog(c.container,360,null,!0,!0);E.focus()};EditorUi.prototype.showPublishLinkDialog=function(c,f,l,q,x,A,E,J,Q,V,K,fa){var Y=document.createElement("div");Y.style.whiteSpace="nowrap";var aa=document.createElement("h3");mxUtils.write(aa,c||mxResources.get("publish"));Y.appendChild(aa);var ja=document.createElement("select");ja.className="geBtn";ja.style.margin="0 4px 8px 4px";ja.style.width="calc(100% - 8px)";ja.style.boxSizing="border-box";x=null!=x?x:"https://www.drawio.com/docs/manual/export/publish-link/";c=document.createElement("option");mxUtils.write(c,mxResources.get("includeCopyOfMyDiagram"));c.setAttribute("value","copy");ja.appendChild(c);c=document.createElement("option");mxUtils.write(c,mxResources.get("authorizationRequired"));c.setAttribute("value","auth");ja.appendChild(c);null==J||""==J.getHash()||J.getMode()==App.MODE_DEVICE||J.getMode()==App.MODE_BROWSER?c.setAttribute("disabled","disabled"):ja.value="auth";J=document.createElement("option");J.setAttribute("value","public");ja.appendChild(J);null!=E?(mxUtils.write(J,mxResources.get("publicDiagramUrl")),J.setAttribute("title",E),ja.value="public"):(mxUtils.write(J,mxResources.get("publicDiagramUrl")+" ("+mxResources.get("diagramIsNotPublic")+")"),J.setAttribute("disabled","disabled"));Y.appendChild(ja);mxUtils.br(Y);E=document.createElement("div");E.className="geDialogSection";var ka=null,ua=null;if(null!=f||null!=l)f=document.createElement("div"),f.className="geDialogInlineFields",J=document.createElement("div"),J.className="geDialogInlineField",c=document.createElement("label"),mxUtils.write(c,mxResources.get("width")+":"),J.appendChild(c),ka=document.createElement("input"),ka.setAttribute("type","text"),ka.value="100%",J.appendChild(ka),f.appendChild(J),J=document.createElement("div"),J.className="geDialogInlineField",c=document.createElement("label"),mxUtils.write(c,mxResources.get("height")+":"),J.appendChild(c),ua=document.createElement("input"),ua.setAttribute("type","text"),ua.value=l+"px",J.appendChild(ua),f.appendChild(J),E.appendChild(f);var Ca=this.addLinkSection(E,-q),ia=V?this.addCheckbox(E,mxResources.get("transparentBackground"),!1,null,null,null,null,null,!0):null,k=this.addPagesRow(E),v=k.select;null==k.row||fa||(l=function(){k.row.style.display="copy"==ja.value?"":"none"},mxEvent.addListener(ja,"change",l),l());var H=null;if(null!=this.pages&&1<this.pages.length){l=document.createElement("div");l.className="geDialogFormRow";V=document.createElement("span");V.className="geDialogFormLabel";mxUtils.write(V,mxResources.get("initialPage",null,"Initial Page")+-":");l.appendChild(V);H=document.createElement("select");H.style.maxWidth="260px";for(V=0;V<this.pages.length;V++)fa=document.createElement("option"),mxUtils.write(fa,this.pages[V].getName()),fa.setAttribute("value",V),this.pages[V]==this.currentPage&&fa.setAttribute("selected","selected"),H.appendChild(fa);l.appendChild(H);E.appendChild(l);l=function(){"none"!=k.row.style.display&&"currentPage"==v.value?H.setAttribute("disabled","disabled"):H.removeAttribute("disabled")};mxEvent.addListener(v,"change",+q),ia=V?this.addCheckbox(E,mxResources.get("transparentBackground"),!1,null,null,null,null,null,!0):null,k=this.addPagesRow(E),u=k.select;null==k.row||fa||(l=function(){k.row.style.display="copy"==ja.value?"":"none"},mxEvent.addListener(ja,"change",l),l());var H=null;if(null!=this.pages&&1<this.pages.length){l=document.createElement("div");l.className="geDialogFormRow";V=document.createElement("span");V.className="geDialogFormLabel";mxUtils.write(V,mxResources.get("initialPage",null,"Initial Page")++":");l.appendChild(V);H=document.createElement("select");H.style.maxWidth="260px";for(V=0;V<this.pages.length;V++)fa=document.createElement("option"),mxUtils.write(fa,this.pages[V].getName()),fa.setAttribute("value",V),this.pages[V]==this.currentPage&&fa.setAttribute("selected","selected"),H.appendChild(fa);l.appendChild(H);E.appendChild(l);l=function(){"none"!=k.row.style.display&&"currentPage"==u.value?H.setAttribute("disabled","disabled"):H.removeAttribute("disabled")};mxEvent.addListener(u,"change",l);mxEvent.addListener(ja,"change",l);l()}var P=this.addCheckbox(E,mxResources.get("lightbox"),!0,null,null,!q,null,null,!0);q&&null!=P.checkRow&&(P.checkRow.style.display="none");Y.appendChild(E);q=this.addAdvancedSection(Y).content;var T=document.createElement("select");T.style.maxWidth="260px";l=document.createElement("option");l.setAttribute("value","0");mxUtils.write(l,mxResources.get("light"));T.appendChild(l);l=document.createElement("option");l.setAttribute("value","1");mxUtils.write(l,mxResources.get("dark"));T.appendChild(l);l=document.createElement("option");l.setAttribute("value","auto");mxUtils.write(l,mxResources.get("automatic"));l.setAttribute("selected","selected");T.appendChild(l);K&&(K=document.createElement("div"),K.className="geDialogFormRow",l=document.createElement("span"),l.className="geDialogFormLabel",mxUtils.write(l,mxResources.get("appearance")+":"),K.appendChild(l),K.appendChild(T),q.appendChild(K));var W=this.addEditButton(q,P),ha=W.getEditInput(),X=this.addCheckbox(q,mxResources.get("layers"),!0,null,null,null,null,null,!0),ea=this.addCheckbox(q,mxResources.get("tags"),!0,null,null,null,null,null,!0),oa=this.addCheckbox(q,mxResources.get("useCurrentSettings"),!0,null,null,null,null,null,!0);oa.checkRow.style.paddingLeft="24px";var la=this.addCheckbox(q,mxResources.get("linkIcons"),!1,null,null,null,null,null,!0),ca=this.addCheckbox(q,mxResources.get("tooltipIcons"),!1,null,null,null,null,null,!0);mxEvent.addListener(ea,"change",function(){ea.checked?oa.removeAttribute("disabled"):oa.setAttribute("disabled","disabled")});mxEvent.addListener(P,"change",function(){P.checked?(X.removeAttribute("disabled"),ha.removeAttribute("disabled"),ea.removeAttribute("disabled"),la.removeAttribute("disabled"),ca.removeAttribute("disabled"),ea.checked&&oa.removeAttribute("disabled")):(X.setAttribute("disabled","disabled"),ha.setAttribute("disabled","disabled"),ea.setAttribute("disabled","disabled"),oa.setAttribute("disabled","disabled"),la.setAttribute("disabled","disabled"),ca.setAttribute("disabled","disabled"));ha.checked&&-P.checked?W.getEditSelect().removeAttribute("disabled"):W.getEditSelect().setAttribute("disabled","disabled")});x=new CustomDialog(this,Y,mxUtils.bind(this,function(){Q(Ca.getTarget(),Ca.getColor(),null==H||0>=H.selectedIndex||null!=H.getAttribute("disabled")?null:this.pages[H.selectedIndex],P.checked,W.getLink(),X.checked,null!=ka?ka.value:null,null!=ua?ua.value:null,ea.checked,ja.value,null!=ia?ia.checked:!1,T.value,"allPages"==v.value,ea.checked&&oa.checked,la.checked,ca.checked)}),null,mxResources.get("create"),+P.checked?W.getEditSelect().removeAttribute("disabled"):W.getEditSelect().setAttribute("disabled","disabled")});x=new CustomDialog(this,Y,mxUtils.bind(this,function(){Q(Ca.getTarget(),Ca.getColor(),null==H||0>=H.selectedIndex||null!=H.getAttribute("disabled")?null:this.pages[H.selectedIndex],P.checked,W.getLink(),X.checked,null!=ka?ka.value:null,null!=ua?ua.value:null,ea.checked,ja.value,null!=ia?ia.checked:!1,T.value,"allPages"==u.value,ea.checked&&oa.checked,la.checked,ca.checked)}),null,mxResources.get("create"),x,A);this.showDialog(x.container,360,null,!0,!0);null!=ka?(ka.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?ka.select():document.execCommand("selectAll",!1,null)):ja.focus()};EditorUi.prototype.showRemoteExportDialog=function(c,f,l,q,x){var A=document.createElement("div");A.style.whiteSpace="nowrap";var E=document.createElement("h3");mxUtils.write(E,mxResources.get("image"));A.appendChild(E);if(x){E=document.createElement("div");E.className="geDialogSection";var J=document.createElement("div");J.className="geDialogFormRow";var Q=document.createElement("span");Q.className="geDialogFormLabel";mxUtils.write(Q,mxResources.get("zoom")+":");J.appendChild(Q);var V=document.createElement("input");V.setAttribute("type","text");V.value=this.lastExportZoom||"100%";J.appendChild(V);E.appendChild(J);J=document.createElement("div");J.className="geDialogFormRow";Q=document.createElement("span");Q.className="geDialogFormLabel";mxUtils.write(Q,mxResources.get("borderWidth")+":");J.appendChild(Q);var K=document.createElement("input");K.setAttribute("type","text");K.value=this.lastExportBorder||"0";J.appendChild(K);E.appendChild(J);A.appendChild(E)}E=document.createElement("div");E.className="geDialogSection";var fa=this.addCheckbox(E,mxResources.get("selectionOnly"),this.lastExportSelectionOnly&&!this.editor.graph.isSelectionEmpty(),this.editor.graph.isSelectionEmpty(),null,null,null,null,!0),Y=q?null:this.addCheckbox(E,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram,null,null,null,null,null,!0);J=this.editor.graph;var aa=J.background==mxConstants.NONE||null==J.background,ja=q?null:this.addCheckbox(E,mxResources.get("transparentBackground"),null!=this.lastExportTransparent?this.lastExportTransparent:aa,null,null,null,null,null,!0);A.appendChild(E);c=new CustomDialog(this,A,mxUtils.bind(this,function(){this.lastExportSelectionOnly=fa.checked;x&&(this.lastExportZoom=V.value,this.lastExportBorder=K.value);null!=ja&&(this.lastExportTransparent=ja.checked==aa?null:ja.checked);var ka=parseInt(V.value)/100||1,ua=parseInt(K.value)||0;l(!fa.checked,null!=Y?Y.checked:!1,null!=ja?ja.checked:!1,ka,ua)}),null,c,f);this.showDialog(c.container,340,null,!0,!0)};EditorUi.prototype.showExportDialog=function(c,f,l,q,x,A,E,J,Q){function V(){return Math.max(0,parseFloat(ka.value)||100)/100}function K(){var Oa=V();Ba.value=Math.floor(ta*Oa);na.value=Math.floor(xa*Oa)}E=null!=E?E:Editor.defaultIncludeDiagram;var fa=document.createElement("div");fa.style.whiteSpace="nowrap";var Y=this.editor.graph,aa=document.createElement("h3");mxUtils.write(aa,c);fa.appendChild(aa);c=document.createElement("div");c.className="geDialogSection";aa=document.createElement("div");aa.className="geDialogFormRow";var ja=document.createElement("span");ja.className="geDialogFormLabel";mxUtils.write(ja,mxResources.get("zoom")+":");aa.appendChild(ja);var ka=document.createElement("input");ka.setAttribute("type","text");ka.value=this.lastExportZoom||"100%";aa.appendChild(ka);c.appendChild(aa);fa.appendChild(c);c=document.createElement("div");-c.className="geDialogSection";var ua=this.addCheckbox(c,mxResources.get("selectionOnly"),this.lastExportSelectionOnly&&!Y.isSelectionEmpty(),Y.isSelectionEmpty(),null,null,null,null,!0),Ca=document.createElement("input");Ca.setAttribute("disabled","disabled");Ca.setAttribute("type","checkbox");var ia=document.createElement("select");ia.style.marginLeft="8px";var k=["selectionOnly","diagram","page"];aa={};for(ja=0;ja<k.length;ja++)if(!Y.isSelectionEmpty()||"selectionOnly"!=k[ja]){var v=document.createElement("option");-mxUtils.write(v,mxResources.get(k[ja]));v.setAttribute("value",k[ja]);ia.appendChild(v);aa[k[ja]]=v}Q?(ja=document.createElement("div"),ja.className="geDialogFormRow",A=document.createElement("span"),A.className="geDialogFormLabel",mxUtils.write(A,mxResources.get("size")+":"),ja.appendChild(A),ia.style.marginLeft="0",ja.appendChild(ia),c.appendChild(ja),mxEvent.addListener(ia,"change",function(){"selectionOnly"==ia.value&&(ua.checked=!0)})):A&&(A=document.createElement("div"),A.className="geDialogCheckRow",+c.className="geDialogSection";var ua=this.addCheckbox(c,mxResources.get("selectionOnly"),this.lastExportSelectionOnly&&!Y.isSelectionEmpty(),Y.isSelectionEmpty(),null,null,null,null,!0),Ca=document.createElement("input");Ca.setAttribute("disabled","disabled");Ca.setAttribute("type","checkbox");var ia=document.createElement("select");ia.style.marginLeft="8px";var k=["selectionOnly","diagram","page"];aa={};for(ja=0;ja<k.length;ja++)if(!Y.isSelectionEmpty()||"selectionOnly"!=k[ja]){var u=document.createElement("option");+mxUtils.write(u,mxResources.get(k[ja]));u.setAttribute("value",k[ja]);ia.appendChild(u);aa[k[ja]]=u}Q?(ja=document.createElement("div"),ja.className="geDialogFormRow",A=document.createElement("span"),A.className="geDialogFormLabel",mxUtils.write(A,mxResources.get("size")+":"),ja.appendChild(A),ia.style.marginLeft="0",ja.appendChild(ia),c.appendChild(ja),mxEvent.addListener(ia,"change",function(){"selectionOnly"==ia.value&&(ua.checked=!0)})):A&&(A=document.createElement("div"),A.className="geDialogCheckRow",A.appendChild(Ca),ja=document.createElement("label"),mxUtils.write(ja,mxResources.get("crop")),A.appendChild(ja),c.appendChild(A),mxEvent.addListener(ua,"change",function(){ua.checked?Ca.removeAttribute("disabled"):Ca.setAttribute("disabled","disabled")}));Y.isSelectionEmpty()?Q&&null!=ua.checkRow&&null!=ua.checkRow.parentNode&&ua.checkRow.parentNode.removeChild(ua.checkRow):(ia.value=this.lastExportSelectionOnly?"selectionOnly":"diagram",Ca.setAttribute("checked","checked"),Ca.defaultChecked=!0,mxEvent.addListener(ua,"change",function(){ia.value=ua.checked?"selectionOnly":"diagram"}));var H=!Y.isSelectionEmpty()&&this.lastExportSelectionOnly?"selectionOnly":"diagram";Q&&null!=this.lastExportType&&null!=aa[this.lastExportType]&&(ia.value=this.lastExportType,"selectionOnly"==this.lastExportType&&(ua.checked=!0));var P="jpeg"!=J&&"webp"!=J,T=this.addCheckbox(c,mxResources.get("transparentBackground"),P&&null!=this.lastExportTransparent?this.lastExportTransparent:!1,null,null,P,null,null,!0);fa.appendChild(c);c=document.createElement("div");c.className="geDialogSection";aa=!1;A=null!=this.pages?this.pages.length:1;var W=this.addCheckbox(c,mxResources.get("includeCopyOfMyDiagram")+(1<A?":":""),E,null,null,"jpeg"!=J&&"webp"!=J,null,null,!0);"jpeg"!=J&&"webp"!=J&&(aa=!0);var ha=document.createElement("select");ha.style.maxWidth="260px";if("png"==J||"svg"==J)E=function(){W.checked?ha.removeAttribute("disabled"):ha.setAttribute("disabled","disabled")},ja=document.createElement("option"),ja.setAttribute("value",@@ -4406,14 +4408,14 @@ this.lastExportDpi=!isNaN(Oa)&&0<Oa&&100!=Oa?Oa:null}Q&&(this.lastExportType=ia.ea.checked,oa.checked&&f,"png"==J&&0<parseInt(va.value)&&100!=parseInt(va.value)?parseInt(va.value):null,la.checked&&f)}),null,l,q);this.showDialog(l.container,360,null,!0,!0,null,null,null,null,!0);ka.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?ka.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(c,f,l,q,x,A,E){var J=document.createElement("div"),Q=this.editor.graph;if(null!=f){var V=document.createElement("h3");mxUtils.write(V,f);J.appendChild(V)}f=document.createElement("div");f.className="geDialogSection";var K=E?this.addPagesRow(f):null,fa=this.addCheckbox(f,mxResources.get("fit"),!0,null,null,null,null,null,!0),Y=this.addCheckbox(f,mxResources.get("shadow"),Q.shadowVisible&&q,!q,null,null,null,null,!0),aa=this.addCheckbox(f,l,!1,null,null,null,null,null,!0),ja=this.addCheckbox(f,mxResources.get("lightbox"),!0,null,null,null,null,null,!0);J.appendChild(f);l=this.addAdvancedSection(J).content;var ka=null;A&&(ka=document.createElement("select"),ka.style.maxWidth="260px",A=document.createElement("option"),A.setAttribute("value","light"),mxUtils.write(A,mxResources.get("light")),ka.appendChild(A),A=document.createElement("option"),A.setAttribute("value","dark"),mxUtils.write(A,mxResources.get("dark")),ka.appendChild(A),mxUtils.lightDarkColorSupported?(A=document.createElement("option"),A.setAttribute("value","auto"),mxUtils.write(A,mxResources.get("automatic")),ka.appendChild(A),ka.value="auto"):ka.value=Editor.isDarkMode()?"dark":"light",-A=document.createElement("div"),A.className="geDialogFormRow",q=document.createElement("span"),q.className="geDialogFormLabel",mxUtils.write(q,mxResources.get("appearance")+":"),A.appendChild(q),A.appendChild(ka),l.appendChild(A));var ua=this.addEditButton(l,ja),Ca=ua.getEditInput(),ia=1<Q.model.getChildCount(Q.model.getRoot()),k=this.addCheckbox(l,mxResources.get("layers"),ia,!ia,null,null,null,null,!0),v=this.addCheckbox(l,mxResources.get("linkIcons"),!1,null,null,null,null,null,!0),H=this.addCheckbox(l,-mxResources.get("tooltipIcons"),!1,null,null,null,null,null,!0);mxEvent.addListener(ja,"change",function(){ja.checked?(ia&&k.removeAttribute("disabled"),null!=K&&K.select.removeAttribute("disabled"),Ca.removeAttribute("disabled"),v.removeAttribute("disabled"),H.removeAttribute("disabled")):(null!=K&&K.select.setAttribute("disabled","disabled"),k.setAttribute("disabled","disabled"),Ca.setAttribute("disabled","disabled"),v.setAttribute("disabled","disabled"),H.setAttribute("disabled","disabled"));Ca.checked&&-ja.checked?ua.getEditSelect().removeAttribute("disabled"):ua.getEditSelect().setAttribute("disabled","disabled")});x=new CustomDialog(this,J,mxUtils.bind(this,function(){c(fa.checked,Y.checked,aa.checked,ja.checked,ua.getLink(),k.checked,v.checked,H.checked,null!=ka?ka.value:null,null!=K?null!=K.row&&"allPages"==K.select.value:null)}),null,mxResources.get("embed"),x);this.showDialog(x.container,280,null,!0,!0)};EditorUi.prototype.createEmbedImage=function(c,f,l,q,x,A,E,J,Q,V){function K(ka){var ua=+A=document.createElement("div"),A.className="geDialogFormRow",q=document.createElement("span"),q.className="geDialogFormLabel",mxUtils.write(q,mxResources.get("appearance")+":"),A.appendChild(q),A.appendChild(ka),l.appendChild(A));var ua=this.addEditButton(l,ja),Ca=ua.getEditInput(),ia=1<Q.model.getChildCount(Q.model.getRoot()),k=this.addCheckbox(l,mxResources.get("layers"),ia,!ia,null,null,null,null,!0),u=this.addCheckbox(l,mxResources.get("linkIcons"),!1,null,null,null,null,null,!0),H=this.addCheckbox(l,+mxResources.get("tooltipIcons"),!1,null,null,null,null,null,!0);mxEvent.addListener(ja,"change",function(){ja.checked?(ia&&k.removeAttribute("disabled"),null!=K&&K.select.removeAttribute("disabled"),Ca.removeAttribute("disabled"),u.removeAttribute("disabled"),H.removeAttribute("disabled")):(null!=K&&K.select.setAttribute("disabled","disabled"),k.setAttribute("disabled","disabled"),Ca.setAttribute("disabled","disabled"),u.setAttribute("disabled","disabled"),H.setAttribute("disabled","disabled"));Ca.checked&&+ja.checked?ua.getEditSelect().removeAttribute("disabled"):ua.getEditSelect().setAttribute("disabled","disabled")});x=new CustomDialog(this,J,mxUtils.bind(this,function(){c(fa.checked,Y.checked,aa.checked,ja.checked,ua.getLink(),k.checked,u.checked,H.checked,null!=ka?ka.value:null,null!=K?null!=K.row&&"allPages"==K.select.value:null)}),null,mxResources.get("embed"),x);this.showDialog(x.container,280,null,!0,!0)};EditorUi.prototype.createEmbedImage=function(c,f,l,q,x,A,E,J,Q,V){function K(ka){var ua=" ",Ca="";q&&(ua=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(null!=Y?"&page="+Y:"")+(x?"&edit=_blank":"")+(A?"&layers=1":"")+(E?"&link-icons=1":"")+(J?"&tooltip-icons=1":"")+"');}})(this);\"",Ca+="cursor:pointer;");c&&(Ca+="max-width:100%;");var ia="";l&&(ia=' width="'+Math.round(fa.width)+'" height="'+Math.round(fa.height)+'"');Q('<img src="'+ka+'"'+ia+(""!=Ca?' style="'+Ca+'"':"")+ua+"/>")}var fa=this.editor.graph.getGraphBounds(),Y=this.getSelectedPageIndex();if(this.editor.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(ka){var ua=q?this.getFileData(!0):null;ka=this.createImageDataUri(ka,ua,"png");K(ka)}),null,null,null,mxUtils.bind(this,function(ka){V({message:mxResources.get("unknownError")})}),-null,!0,l?2:1,null,f,null,null,Editor.defaultBorder);else if(f=this.getFileData(!0),fa.width*fa.height<=MAX_AREA&&f.length<=MAX_REQUEST_SIZE){var aa="";l&&(aa="&w="+Math.round(2*fa.width)+"&h="+Math.round(2*fa.height));var ja=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(q?"1":"0")+aa+"&xml="+encodeURIComponent(f));ja.send(mxUtils.bind(this,function(){200<=ja.getStatus()&&299>=ja.getStatus()?K("data:image/png;base64,"+ja.getText()):V({message:mxResources.get("unknownError")})}))}else V({message:mxResources.get("drawingTooLarge")})};-EditorUi.prototype.createEmbedSvg=function(c,f,l,q,x,A,E,J,Q,V,K){Q=null!=Q?Q:"auto";V=null!=V?V:!0;var fa=this.getSelectedPageIndex(),Y=mxUtils.lightDarkColorSupported,aa=mxUtils.preferDarkColor;if("light"==Q||"dark"==Q)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor="dark"==Q;var ja=null;try{ja=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!l,Q)}finally{mxUtils.lightDarkColorSupported=Y,mxUtils.preferDarkColor=aa}Q=ja.getElementsByTagName("a");if(null!=Q)for(Y=-0;Y<Q.length;Y++)aa=Q[Y].getAttribute("href"),null!=aa&&"#"==aa.charAt(0)&&"_blank"==Q[Y].getAttribute("target")&&Q[Y].removeAttribute("target");q&&ja.setAttribute("content",this.getFileData(!0,null,null,null,null,!V));f&&this.editor.graph.addSvgShadow(ja);if(l){var ka=" ",ua="";q&&(ka="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"++null,!0,l?2:1,null,f,null,null,Editor.defaultBorder);else if(this.isRemoteExportEnabled())if(f=this.getFileData(!0),fa.width*fa.height<=MAX_AREA&&f.length<=MAX_REQUEST_SIZE){var aa="";l&&(aa="&w="+Math.round(2*fa.width)+"&h="+Math.round(2*fa.height));var ja=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(q?"1":"0")+aa+"&xml="+encodeURIComponent(f));ja.send(mxUtils.bind(this,function(){200<=ja.getStatus()&&299>=ja.getStatus()?K("data:image/png;base64,"+ja.getText()):V({message:mxResources.get("unknownError")})}))}else V({message:mxResources.get("drawingTooLarge")});+else V({message:mxResources.get("notAvailable")})};EditorUi.prototype.createEmbedSvg=function(c,f,l,q,x,A,E,J,Q,V,K){Q=null!=Q?Q:"auto";V=null!=V?V:!0;var fa=this.getSelectedPageIndex(),Y=mxUtils.lightDarkColorSupported,aa=mxUtils.preferDarkColor;if("light"==Q||"dark"==Q)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor="dark"==Q;var ja=null;try{ja=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!l,Q)}finally{mxUtils.lightDarkColorSupported=Y,mxUtils.preferDarkColor=+aa}Q=ja.getElementsByTagName("a");if(null!=Q)for(Y=0;Y<Q.length;Y++)aa=Q[Y].getAttribute("href"),null!=aa&&"#"==aa.charAt(0)&&"_blank"==Q[Y].getAttribute("target")&&Q[Y].removeAttribute("target");q&&ja.setAttribute("content",this.getFileData(!0,null,null,null,null,!V));f&&this.editor.graph.addSvgShadow(ja);if(l){var ka=" ",ua="";q&&(ka="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(V&&null!=fa?"&page="+fa:"")+(x?"&edit=_blank":"")+(A?"&layers=1":"")+(E?"&link-icons=1":"")+(J?"&tooltip-icons=1":"")+"');}})(this);\"",ua+="cursor:pointer;");c&&(ua+="max-width:100%;");this.editor.convertImages(ja,mxUtils.bind(this,function(Ca){K('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(Ca))+'"'+(""!=ua?' style="'+ua+'"':"")+ka+"/>")}))}else ua="",q&&(ja.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(V&&null!=fa?"&page="+fa:"")+(x?"&edit=_blank":"")+(A?"&layers=1":"")+(E?"&link-icons=1":"")+(J?"&tooltip-icons=1":"")+"');}}})(this);"),ua+="cursor:pointer;"),c&&(c=parseInt(ja.getAttribute("width")),f=parseInt(ja.getAttribute("height")),ja.setAttribute("viewBox","-0.5 -0.5 "+c+" "+f),ua+="max-width:100%;max-height:"+f+"px;",ja.removeAttribute("height")),""!=ua&&(c=ja.getAttribute("style"),ja.setAttribute("style",(null!=c&&0<c.length?c+" ":"")+ua)),this.editor.addFontCss(ja),this.editor.graph.mathEnabled&&this.editor.addMathCss(ja),K(mxUtils.getXml(ja))};EditorUi.prototype.timeSince=function(c){c=Math.floor((new Date-c)/1E3);var f=Math.floor(c/31536E3);if(1<f)return f+" "+mxResources.get("years");f=Math.floor(c/2592E3);if(1<f)return f+" "+mxResources.get("months");f=Math.floor(c/86400);if(1<f)return f+" "+mxResources.get("days");f=Math.floor(c/3600);if(1<f)return f+" "+mxResources.get("hours");f=Math.floor(c/60);return 1<f?f+" "+mxResources.get("minutes"):1==f?f+" "+@@ -4423,15 +4425,15 @@ function(c){return{notes:null!=c&&"true"==c.getAttribute("notes")}};EditorUi.prothis.editor.graph.setBackgroundImage;var Q=this.pages[0];this.currentPage==Q?A.setBackgroundImage(this.editor.graph.backgroundImage):null!=Q.viewState&&null!=Q.viewState&&A.setBackgroundImage(Q.viewState.backgroundImage);A.getGlobalVariable=function(V){return"page"==V?Q.getName():"pagenumber"==V?1:J.apply(this,arguments)};document.body.appendChild(A.container);A.model.setRoot(Q.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(V){try{null==E&&(E=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var K=V.toDataURL("image/png");K=Editor.writeGraphModelToPng(K,"tEXt","mxfile",encodeURIComponent(E));c(K.substring(K.lastIndexOf(",")+1));A!=this.editor.graph&&A.container.parentNode.removeChild(A.container)}catch(fa){null!=f&&f(fa)}}),null,null,null,mxUtils.bind(this,function(V){null!=f&&f(V)}),null,null,q,null,A.shadowVisible,null,A,x,null,null,null,"diagram",null)}catch(V){null!=f&&f(V)}};EditorUi.prototype.getSvgWithFontLookup=function(c,f,l){var q=Graph.addFont;Graph.addFont=function(A,E,J,Q){q.call(this,A,E,J,c)};var x=f.drawCellState;f.drawCellState=function(A,E){null!=A&&Graph.processFontStyle(A.style);x.apply(this,arguments)};try{return l()}finally{Graph.addFont=q}};EditorUi.prototype.getEmbeddedSvg=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja){J=null!=J?J:!0;K=null!=K?K:0;var ka=null!=Q?Q:f.background;ka==mxConstants.NONE&&(ka=null);null==ka&&"none"==f.getAdaptiveColors()&&(ka="#ffffff");var ua=this.editor.graph.createSvgImageExport(null!=c,aa);E=Object.create(null);-Q=this.getSvgWithFontLookup(E,ua,function(){return f.getSvg(ka,V,K,null,null,A,null,ua,null,f.shadowVisible||fa,null,Y,"diagram")});(f.shadowVisible||fa)&&f.addSvgShadow(Q,null,null,0==K);null!=c&&Q.setAttribute("content",c);null!=l&&Q.setAttribute("resource",l);var Ca=mxUtils.bind(this,function(v){v=(q?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(v);null!=x&&x(v);return v});f.mathEnabled&&this.editor.addMathCss(Q);if(null!=x)this.embedFonts(Q,mxUtils.bind(this,-function(v){J?this.editor.convertImages(v,mxUtils.bind(this,function(H){Ca(H)})):Ca(v)}),ja,E);else{var ia=!1;this.embedFonts(Q,function(){ia=!0},ja,E);if(!ia)try{null==this.editor.resolvedFontCss&&this.editor.addFontCss(Q);var k=this.editor.graph.getExtFontCss(E);0<k.length&&this.editor.addFontCss(Q,k)}catch(v){}return Ca(Q)}};EditorUi.prototype.embedFonts=function(c,f,l,q){if(l=null!=l?l:Editor.embedSvgFonts)this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&+Q=this.getSvgWithFontLookup(E,ua,function(){return f.getSvg(ka,V,K,null,null,A,null,ua,null,f.shadowVisible||fa,null,Y,"diagram")});(f.shadowVisible||fa)&&f.addSvgShadow(Q,null,null,0==K);null!=c&&Q.setAttribute("content",c);null!=l&&Q.setAttribute("resource",l);var Ca=mxUtils.bind(this,function(u){u=(q?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(u);null!=x&&x(u);return u});f.mathEnabled&&this.editor.addMathCss(Q);if(null!=x)this.embedFonts(Q,mxUtils.bind(this,+function(u){J?this.editor.convertImages(u,mxUtils.bind(this,function(H){Ca(H)})):Ca(u)}),ja,E);else{var ia=!1;this.embedFonts(Q,function(){ia=!0},ja,E);if(!ia)try{null==this.editor.resolvedFontCss&&this.editor.addFontCss(Q);var k=this.editor.graph.getExtFontCss(E);0<k.length&&this.editor.addFontCss(Q,k)}catch(u){}return Ca(Q)}};EditorUi.prototype.embedFonts=function(c,f,l,q){if(l=null!=l?l:Editor.embedSvgFonts)this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&this.editor.addFontCss(c,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(A){try{null!=A&&this.editor.addFontCss(c,A),f(c)}catch(E){f(c)}}),q)}catch(A){f(c)}}));else{try{this.editor.addFontCss(c);var x=this.editor.graph.getExtFontCss(q);0<x.length&&this.editor.addFontCss(c,x)}catch(A){}f(c)}};EditorUi.prototype.exportImage=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y){Q=null!=Q?Q:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(ja){Editor.addRetryToError(ja,mxUtils.bind(this,function(){this.exportImage(c,f,l,q,x,A,E,J,Q,V,K,fa,Y)}));this.handleError(ja)}))){var aa=this.editor.graph.isSelectionEmpty();l=null!=l?l:aa;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(ja){this.spinner.stop();try{this.saveCanvas(ja,x?this.getFileData(!0,null,null,null,l,J,null,null,null,null,null,c,A):null,Q,null==this.pages||0==this.pages.length,K)}catch(ka){this.handleError(ka)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(ja){this.spinner.stop();this.handleError(ja)}),null,l,c||1,f,q,null,null,A,E,V,fa,Y)}catch(ja){this.spinner.stop(),this.handleError(ja)}}};EditorUi.prototype.isCorsEnabledForUrl=function(c){return this.editor.isCorsEnabledForUrl(c)};EditorUi.prototype.addLocalPagesToMapping=function(c){c=null!=c?c:{};if(null!=this.pages)for(var f=0;f<this.pages.length;f++)c[this.pages[f].getId()]=this.pages[f].getId();return c};EditorUi.prototype.importXml=function(c,f,l,q,x,A,E){EditorUi.debug("EditorUi.importXml",[this],"xml",[c],"dx",[f],"dy",[l],"crop",[q],"noErrorHandling",[x],"addNewPage",[A],"applyDefaultStyles",[E]);f=null!=f?f:0;l=null!=l?l:0;var J=[];try{if(null!=c&&0<c.length){var Q=null!=this.pages?this.pages.length:0,V=this.isDiagramEmpty(),K=this.currentPage,fa=this.editor.graph;fa.model.beginUpdate();try{var Y=mxUtils.parseXml(c);c={};var aa=this.editor.extractGraphModel(Y.documentElement,null!=this.pages);if(null!=aa&&"mxfile"==aa.nodeName&&null!=this.pages){var ja=aa.getElementsByTagName("diagram");if(0<ja.length){Y=[];var ka=0;if(1==ja.length&&!A){if(null!=this.currentPage&&(c[ja[0].getAttribute("id")]=this.currentPage.getId(),this.isBlankFile())){var ua=ja[0].getAttribute("name");null!=ua&&""!=ua&&this.editor.graph.model.execute(new RenamePage(this,this.currentPage,ua))}aa=Editor.parseDiagramNode(ja[0]);q=!1;ka=1}for(;ka<ja.length;ka++){var Ca=ja[ka].getAttribute("id");ja[ka].removeAttribute("id");var ia=this.updatePageRoot(new DiagramPage(ja[ka]));c[Ca]=ja[ka].getAttribute("id");var k=this.pages.length;-null==ia.getName()&&ia.setName(mxResources.get("pageWithNumber",[k+1]));fa.model.execute(new ChangePage(this,ia,ia,k,0<ka));Y.push(ia)}this.updatePageLinks(c,Y)}}if(null!=aa&&"mxGraphModel"===aa.nodeName){J=fa.importGraphModel(aa,f,l,q);if(null!=J)for(this.addLocalPagesToMapping(c),ka=0;ka<J.length;ka++)this.updatePageLinksForCell(c,J[ka]);var v=fa.parseBackgroundImage(aa.getAttribute("backgroundImage"));if(null!=v&&null!=v.originalSrc&&this.updateBackgroundPageLink(c,v)){var H=new ChangePageSetup(this,-null,v);H.ignoreColor=!0;fa.model.execute(H)}}E&&fa.pasteCellStyles(fa.includeDescendants(J),fa.defaultVertexStyle,fa.defaultEdgeStyle);!A&&K!=this.currentPage&&null!=this.pages&&1<this.pages.length&&V&&1==Q&&this.removePage(K)}finally{fa.model.endUpdate()}}}catch(P){if(x)throw P;this.handleError(P)}return J};EditorUi.prototype.updatePageLinks=function(c,f){for(var l=0;l<f.length;l++)this.updatePageLinksForCell(c,f[l].root),f[l]!=this.currentPage&&(f[l].needsUpdate=!0),null!=f[l].viewState&&this.updateBackgroundPageLink(c,+null==ia.getName()&&ia.setName(mxResources.get("pageWithNumber",[k+1]));fa.model.execute(new ChangePage(this,ia,ia,k,0<ka));Y.push(ia)}this.updatePageLinks(c,Y)}}if(null!=aa&&"mxGraphModel"===aa.nodeName){J=fa.importGraphModel(aa,f,l,q);if(null!=J)for(this.addLocalPagesToMapping(c),ka=0;ka<J.length;ka++)this.updatePageLinksForCell(c,J[ka]);var u=fa.parseBackgroundImage(aa.getAttribute("backgroundImage"));if(null!=u&&null!=u.originalSrc&&this.updateBackgroundPageLink(c,u)){var H=new ChangePageSetup(this,+null,u);H.ignoreColor=!0;fa.model.execute(H)}}E&&fa.pasteCellStyles(fa.includeDescendants(J),fa.defaultVertexStyle,fa.defaultEdgeStyle);!A&&K!=this.currentPage&&null!=this.pages&&1<this.pages.length&&V&&1==Q&&this.removePage(K)}finally{fa.model.endUpdate()}}}catch(P){if(x)throw P;this.handleError(P)}return J};EditorUi.prototype.updatePageLinks=function(c,f){for(var l=0;l<f.length;l++)this.updatePageLinksForCell(c,f[l].root),f[l]!=this.currentPage&&(f[l].needsUpdate=!0),null!=f[l].viewState&&this.updateBackgroundPageLink(c,f[l].viewState.backgroundImage)&&(f[l]==this.currentPage&&this.editor.graph.setViewState(f[l].viewState,!0),f[l].needsUpdate=!0)};EditorUi.prototype.updateBackgroundPageLink=function(c,f){var l=!1;try{if(null!=f&&Graph.isPageLink(f.originalSrc)){var q=c[f.originalSrc.substring(f.originalSrc.indexOf(",")+1)];null!=q&&(f.originalSrc="data:page/id,"+q,l=!0)}}catch(x){}return l};EditorUi.prototype.updatePageLinksForCell=function(c,f){var l=document.createElement("div"),q=this.editor.graph,x=q.getLinkForCell(f);null!=x&&q.setLinkForCell(f,this.updatePageLink(c,x));if(q.isHtmlLabel(f)){l.innerHTML=Graph.sanitizeHtml(q.getLabel(f));for(var A=l.getElementsByTagName("a"),E=!1,J=0;J<A.length;J++)x=A[J].getAttribute("href"),null!=x&&(A[J].setAttribute("href",this.updatePageLink(c,x)),E=!0);E&&q.labelChanged(f,l.innerHTML)}for(J=0;J<q.model.getChildCount(f);J++)this.updatePageLinksForCell(c,q.model.getChildAt(f,J))};EditorUi.prototype.updatePageLink=function(c,f){if(Graph.isPageLink(f)){var l=c[f.substring(f.indexOf(",")+1)];f=null!=l?"data:page/id,"+l:null}else if("data:action/json,"==f.substring(0,17))try{var q=JSON.parse(f.substring(17));if(null!=q.actions){for(var x=0;x<q.actions.length;x++){var A=q.actions[x];if(null!=A.open&&Graph.isPageLink(A.open)){var E=A.open.substring(A.open.indexOf(",")+1);l=c[E];null!=l?A.open="data:page/id,"+l:null==this.getPageById(E)&&delete A.open}}f="data:action/json,"+JSON.stringify(q)}}catch(J){}return f};EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||@@ -4493,16 +4495,16 @@ function(c,f,l,q,x,A,E,J,Q,V,K,fa){V=null!=V?V:!0;var Y=!1,aa=null,ja=mxUtils.binull),Q=!0)),Q||(K=this.editor.graph,Q=c.indexOf(";"),0<Q&&(c=c.substring(0,Q)+c.substring(c.indexOf(",",Q+1))),V&&K.isGridEnabled()&&(l=K.snap(l),q=K.snap(q)),Q="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;","image/svg"==f.substring(0,9)&&(Q+="editableCssRules=.*;"),aa=[K.insertVertex(null,null,"",l,q,x,A,Q+"image="+c+";")]);else if(/(\.*<graphml )/.test(c))Y=!0,this.importGraphML(c,ja);else if(null!=Q&&null!=E&&EditorUi.isVisioFilename(E))Y=!0,this.importVisio(Q,ja);else if(this.isGliffyData(c,E)){Y=!0;var ka=mxUtils.bind(this,function(Ca){this.importGliffy(Ca,ja,mxUtils.bind(this,function(ia){null!=J&&(J(null),this.showError(mxResources.get("error"),null!=ia&&413==ia.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError")))}),E)});if(null!=c)ka(c);else{var ua=new FileReader;ua.onload=function(){ka(ua.result)};ua.readAsText(Q)}}else 0==c.indexOf("PK")&&null!=Q?(Y=!0,this.importZipFile(Q,ja,mxUtils.bind(this,function(){aa=this.insertTextAt(this.validateFileData(c),l,q,!0,null,V);J(aa)}))):/(\.v(sd|dx))($|\?)/i.test(E)||/(\.vs(s|x))($|\?)/i.test(E)||(aa=this.insertTextAt(this.validateFileData(c),l,q,!0,null,V,null,null!=fa?mxEvent.isControlDown(fa):null));Y||null==J||J(aa);return aa};EditorUi.prototype.importFiles=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y){q=null!=q?q:this.maxImageSize;V=null!=V?V:this.maxImageBytes;var aa=null!=f&&null!=l,ja=!0;f=null!=f?f:0;l=null!=l?l:0;var ka=!1;if(!mxClient.IS_CHROMEAPP&&null!=c)for(var ua=-K||this.resampleThreshold,Ca=0;Ca<c.length;Ca++)if("image/svg"!==c[Ca].type.substring(0,9)&&"image/"===c[Ca].type.substring(0,6)&&c[Ca].size>ua){ka=!0;break}EditorUi.debug("EditorUi.importFiles",[this],"files",[c],"x",[f],"y",[l],"maxSize",[q],"maxBytes",[V],"resampleThreshold",[this.resampleThreshold],"largeImages",[ka],"crop",[aa],"resizeImages",[ja],"ignoreEmbeddedXml",[fa],"evt",[Y]);var ia=mxUtils.bind(this,function(){var k=this.editor.graph,v=k.gridSize;x=null!=x?x:mxUtils.bind(this,function(ea,+K||this.resampleThreshold,Ca=0;Ca<c.length;Ca++)if("image/svg"!==c[Ca].type.substring(0,9)&&"image/"===c[Ca].type.substring(0,6)&&c[Ca].size>ua){ka=!0;break}EditorUi.debug("EditorUi.importFiles",[this],"files",[c],"x",[f],"y",[l],"maxSize",[q],"maxBytes",[V],"resampleThreshold",[this.resampleThreshold],"largeImages",[ka],"crop",[aa],"resizeImages",[ja],"ignoreEmbeddedXml",[fa],"evt",[Y]);var ia=mxUtils.bind(this,function(){var k=this.editor.graph,u=k.gridSize;x=null!=x?x:mxUtils.bind(this,function(ea,oa,la,ca,ta,xa,qa,Ba,na){try{if(null!=ea&&"<mxlibrary"==ea.substring(0,10))return this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,ea,qa)),this.showSidebar(),null;this.isCompatibleString(ea)&&1==c.length&&null!=Y&&"drop"==Y.type&&this.isBlankFile()&&!this.canUndo()&&(aa=!1,ca=la=0);return this.importFile(ea,oa,la,ca,ta,xa,qa,Ba,na,aa,fa,Y)}catch(ra){return this.handleError(ra),null}});A=null!=A?A:mxUtils.bind(this,function(ea){k.setSelectionCells(ea)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var H=this.currentPage,P=c.length,T=P,W=[],ha=mxUtils.bind(this,function(ea,oa){W[ea]=oa;if(0==--T){this.spinner.stop();if(null!=J)J(W);else{var la=[];k.getModel().beginUpdate();try{for(ea=0;ea<W.length;ea++){var ca=W[ea]();null!=ca&&(la=la.concat(ca))}}finally{k.getModel().endUpdate()}}H!=this.currentPage&&window.setTimeout(mxUtils.bind(this,function(){this.actions.get("resetView").funct()}),0);A(la)}}),X=0;X<P;X++)mxUtils.bind(this,function(ea){var oa=c[ea];if(null!=oa){var la=new FileReader;la.onload=mxUtils.bind(this,function(ca){if(null==E||E(oa))try{if("image/"==oa.type.substring(0,6))if("image/svg"==oa.type.substring(0,9)){var ta=Graph.clipSvgDataUri(ca.target.result),xa=ta.indexOf(","),qa=decodeURIComponent(escape(atob(ta.substring(xa+1)))),Ba=mxUtils.parseXml(qa),na=Ba.getElementsByTagName("svg");if(0<na.length){var ra=na[0],va=fa?null:ra.getAttribute("content");null!=va&&"<"!=va.charAt(0)&&"%"!=va.charAt(0)&&(va=unescape(window.atob?atob(va):Base64.decode(va,!0)));null!=va&&"%"==va.charAt(0)&&(va=decodeURIComponent(va));null==va||"<mxfile "!==va.substring(0,8)&&"<mxGraphModel>"!==va.substring(0,14)&&"<mxGraphModel "!==va.substring(0,14)?ha(ea,mxUtils.bind(this,function(){try{if(null!=Ba){var Ga=Ba.getElementsByTagName("svg");if(0<Ga.length){var Da=Ga[0],Qa=Da.getAttribute("width"),Ka=Da.getAttribute("height");Qa=null!=Qa&&"%"!=Qa.charAt(Qa.length-1)?parseFloat(Qa):NaN;Ka=null!=Ka&&"%"!=Ka.charAt(Ka.length-1)?parseFloat(Ka):NaN;var Na=Da.getAttribute("viewBox");-if(null==Na||0==Na.length)Da.setAttribute("viewBox","0 0 "+Qa+" "+Ka);else if(isNaN(Qa)||isNaN(Ka)){var Oa=Na.split(" ");3<Oa.length&&(Qa=parseFloat(Oa[2]),Ka=parseFloat(Oa[3]))}ta=Editor.createSvgDataUri(mxUtils.getXml(Da));var Fa=Math.min(1,Math.min(q/Math.max(1,Qa)),q/Math.max(1,Ka)),Aa=x(ta,oa.type,f+ea*v,l+ea*v,Math.max(1,Math.round(Qa*Fa)),Math.max(1,Math.round(Ka*Fa)),oa.name);if(null!=Aa&&(isNaN(Qa)||isNaN(Ka))){var Ja=new Image;Ja.onload=mxUtils.bind(this,function(){Qa=Math.max(1,Ja.width);-Ka=Math.max(1,Ja.height);Aa[0].geometry.width=Qa;Aa[0].geometry.height=Ka;Da.setAttribute("viewBox","0 0 "+Qa+" "+Ka);ta=Editor.createSvgDataUri(mxUtils.getXml(Da));var Ia=ta.indexOf(";");0<Ia&&(ta=ta.substring(0,Ia)+ta.substring(ta.indexOf(",",Ia+1)));k.setCellStyles("image",ta,[Aa[0]])});Ja.src=Editor.createSvgDataUri(mxUtils.getXml(Da))}return Aa}}}catch(Ia){}return null})):ha(ea,mxUtils.bind(this,function(){return x(va,"text/xml",f+ea*v,l+ea*v,0,0,oa.name)}))}else ha(ea,mxUtils.bind(this,function(){return null}))}else{xa=-!1;if("image/png"==oa.type){var Ha=fa?null:this.extractGraphModelFromPng(ca.target.result);if(null!=Ha&&0<Ha.length){var La=new Image;La.src=ca.target.result;ha(ea,mxUtils.bind(this,function(){return x(Ha,"text/xml",f+ea*v,l+ea*v,La.width,La.height,oa.name)}));xa=!0}}xa||(mxClient.IS_CHROMEAPP?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("dragAndDropNotSupported"),mxResources.get("cancel"),mxUtils.bind(this,function(){}),null,mxResources.get("ok"),mxUtils.bind(this,-function(){this.actions.get("import").funct()}))):this.loadImage(ca.target.result,mxUtils.bind(this,function(Ga){this.resizeImage(Ga,Editor.stripImageMetadata(ca.target.result,Editor.removeImageMetadata),mxUtils.bind(this,function(Da,Qa,Ka){ha(ea,mxUtils.bind(this,function(){if(null!=Da&&Da.length<V){var Na=ja&&this.isResampleImageSize(oa.size,K)?Math.min(1,Math.min(q/Qa,q/Ka)):1;return x(Da,oa.type,f+ea*v,l+ea*v,Math.round(Qa*Na),Math.round(Ka*Na),oa.name)}this.handleError({message:mxResources.get("imageTooBig")});-return null}))}),ja,q,K,oa.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else ta=ca.target.result,x(ta,oa.type,f+ea*v,l+ea*v,240,160,oa.name,function(Ga){ha(ea,function(){return Ga})},oa)}catch(Ga){ha(ea,mxUtils.bind(this,function(){return null})),null!=window.console&&console.error(Ga,oa)}else ha(ea,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(oa.name)?x(null,oa.type,f+ea*v,l+ea*v,240,160,oa.name,function(ca){ha(ea,+if(null==Na||0==Na.length)Da.setAttribute("viewBox","0 0 "+Qa+" "+Ka);else if(isNaN(Qa)||isNaN(Ka)){var Oa=Na.split(" ");3<Oa.length&&(Qa=parseFloat(Oa[2]),Ka=parseFloat(Oa[3]))}ta=Editor.createSvgDataUri(mxUtils.getXml(Da));var Fa=Math.min(1,Math.min(q/Math.max(1,Qa)),q/Math.max(1,Ka)),Aa=x(ta,oa.type,f+ea*u,l+ea*u,Math.max(1,Math.round(Qa*Fa)),Math.max(1,Math.round(Ka*Fa)),oa.name);if(null!=Aa&&(isNaN(Qa)||isNaN(Ka))){var Ja=new Image;Ja.onload=mxUtils.bind(this,function(){Qa=Math.max(1,Ja.width);+Ka=Math.max(1,Ja.height);Aa[0].geometry.width=Qa;Aa[0].geometry.height=Ka;Da.setAttribute("viewBox","0 0 "+Qa+" "+Ka);ta=Editor.createSvgDataUri(mxUtils.getXml(Da));var Ia=ta.indexOf(";");0<Ia&&(ta=ta.substring(0,Ia)+ta.substring(ta.indexOf(",",Ia+1)));k.setCellStyles("image",ta,[Aa[0]])});Ja.src=Editor.createSvgDataUri(mxUtils.getXml(Da))}return Aa}}}catch(Ia){}return null})):ha(ea,mxUtils.bind(this,function(){return x(va,"text/xml",f+ea*u,l+ea*u,0,0,oa.name)}))}else ha(ea,mxUtils.bind(this,function(){return null}))}else{xa=+!1;if("image/png"==oa.type){var Ha=fa?null:this.extractGraphModelFromPng(ca.target.result);if(null!=Ha&&0<Ha.length){var La=new Image;La.src=ca.target.result;ha(ea,mxUtils.bind(this,function(){return x(Ha,"text/xml",f+ea*u,l+ea*u,La.width,La.height,oa.name)}));xa=!0}}xa||(mxClient.IS_CHROMEAPP?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("dragAndDropNotSupported"),mxResources.get("cancel"),mxUtils.bind(this,function(){}),null,mxResources.get("ok"),mxUtils.bind(this,+function(){this.actions.get("import").funct()}))):this.loadImage(ca.target.result,mxUtils.bind(this,function(Ga){this.resizeImage(Ga,Editor.stripImageMetadata(ca.target.result,Editor.removeImageMetadata),mxUtils.bind(this,function(Da,Qa,Ka){ha(ea,mxUtils.bind(this,function(){if(null!=Da&&Da.length<V){var Na=ja&&this.isResampleImageSize(oa.size,K)?Math.min(1,Math.min(q/Qa,q/Ka)):1;return x(Da,oa.type,f+ea*u,l+ea*u,Math.round(Qa*Na),Math.round(Ka*Na),oa.name)}this.handleError({message:mxResources.get("imageTooBig")});+return null}))}),ja,q,K,oa.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else ta=ca.target.result,x(ta,oa.type,f+ea*u,l+ea*u,240,160,oa.name,function(Ga){ha(ea,function(){return Ga})},oa)}catch(Ga){ha(ea,mxUtils.bind(this,function(){return null})),null!=window.console&&console.error(Ga,oa)}else ha(ea,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(oa.name)?x(null,oa.type,f+ea*u,l+ea*u,240,160,oa.name,function(ca){ha(ea,function(){return ca})},oa):"image"==oa.type.substring(0,5)||"application/pdf"==oa.type?la.readAsDataURL(oa):la.readAsText(oa)}})(X)});if(ka){ka=[];for(Ca=0;Ca<c.length;Ca++)ka.push(c[Ca]);c=ka;this.confirmImageResize(function(k){ja=k;ia()},Q)}else ia()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(c,f){f=null!=f?f:!1;var l=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},q=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,x=function(A,E){if(A||f)mxSettings.setResizeImages(A?E:null),mxSettings.save();l();c(E)};null==q||f?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(A){x(A,!0)},function(A){x(A,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?226:200,!0,!0):x(!1,q)};EditorUi.prototype.isResampleImageSize=function(c,f){f=null!=f?f:this.resampleThreshold;return c>f};EditorUi.prototype.resizeImage=function(c,f,l,q,x,A,E){x=null!=x?x:this.maxImageSize;var J=Math.max(1,c.width),Q=Math.max(1,c.height),V=f;if(q&&this.isResampleImageSize(null!=E?E:f.length,A))try{var K=Math.max(J/x,Q/x);if(1<K){var fa=Math.round(J/K),Y=Math.round(Q/@@ -4537,8 +4539,8 @@ ca);var qa=f.getModel().getGeometry(ta);null!=qa&&null!=qa.points&&0<qa.points.lfunction(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}q=mxUtils.bind(this,function(){this.updateCommentOverlays()});this.addListener("commentsChanged",q);this.addListener("darkModeChanged",q);this.editor.addListener("pageSelected",q);this.editor.addListener("fileLoaded",mxUtils.bind(this,function(){this.commentOverlays=null;this.refreshCommentCache()}));if(Editor.passiveScroll){var ua=f.getCenterInsertPoint;f.getCenterInsertPoint=function(ca){if(null!=this._contextMenuPoint){var ta=this._contextMenuPoint;ca=null!=ca?ca:new mxRectangle;return new mxPoint(f.snap(ta.x-(ca.width||0)/2),f.snap(ta.y-(ca.height||0)/2))}return ua.apply(this,arguments)};var Ca=f.popupMenuHandler.hideMenu;f.popupMenuHandler.hideMenu=function(){Ca.apply(this,arguments);window.setTimeout(function(){f._contextMenuPoint=null;f._contextMenuScreenPoint=null},0)}}this.dependsOnLanguage(mxUtils.bind(this,function(){this.defaultFilename=mxResources.get("untitledDiagram");this.defaultLibraryName=mxResources.get("untitledLibrary")}));var ia=f.getExportVariables;f.getExportVariables=function(){var ca=ia.apply(this,arguments),ta=c.getCurrentFile();null!=ta&&(ca.filename=ta.getTitle());c.updateFileVars();if(null!=c.fileVars)for(var xa in c.fileVars)null==ca[xa]&&(ca[xa]=c.fileVars[xa]);ca.pagecount=null!=c.pages?c.pages.length:1;ca.page=null!=c.currentPage?c.currentPage.getName():"";ca.pagenumber=null!=c.pages&&null!=c.currentPage?mxUtils.indexOf(c.pages,-c.currentPage)+1:1;return ca};var k=f.getGlobalVariable;f.getGlobalVariable=function(ca){var ta=c.getCurrentFile();if("filename"==ca&&null!=ta)return ta.getTitle();if("page"==ca&&null!=c.currentPage)return c.currentPage.getName();if("pagenumber"==ca)return null!=c.currentPage&&null!=c.pages?mxUtils.indexOf(c.pages,c.currentPage)+1:1;if("pagecount"==ca)return null!=c.pages?c.pages.length:1;ta=k.apply(this,arguments);null==ta&&(c.updateFileVars(),null!=c.fileVars&&(ta=c.fileVars[ca]));return ta};var v=-null,H=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var ca=this.getCurrentFile(),ta=null!=ca&&null!=ca.getTitle()?ca.getTitle():this.defaultFilename;v!=ta&&ca==H&&(f.invalidateDescendantsWithPlaceholders(f.model.getRoot()),f.view.validate());v=ta;H=ca}));var P=f.labelLinkClicked;f.labelLinkClicked=function(ca,ta,xa){var qa=ta.getAttribute("href");if(null==qa||!f.isCustomLink(qa)||!mxEvent.isTouchEvent(xa)&&mxEvent.isPopupTrigger(xa))P.apply(this,arguments);else{if(!f.isEnabled()||+c.currentPage)+1:1;return ca};var k=f.getGlobalVariable;f.getGlobalVariable=function(ca){var ta=c.getCurrentFile();if("filename"==ca&&null!=ta)return ta.getTitle();if("page"==ca&&null!=c.currentPage)return c.currentPage.getName();if("pagenumber"==ca)return null!=c.currentPage&&null!=c.pages?mxUtils.indexOf(c.pages,c.currentPage)+1:1;if("pagecount"==ca)return null!=c.pages?c.pages.length:1;ta=k.apply(this,arguments);null==ta&&(c.updateFileVars(),null!=c.fileVars&&(ta=c.fileVars[ca]));return ta};var u=+null,H=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var ca=this.getCurrentFile(),ta=null!=ca&&null!=ca.getTitle()?ca.getTitle():this.defaultFilename;u!=ta&&ca==H&&(f.invalidateDescendantsWithPlaceholders(f.model.getRoot()),f.view.validate());u=ta;H=ca}));var P=f.labelLinkClicked;f.labelLinkClicked=function(ca,ta,xa){var qa=ta.getAttribute("href");if(null==qa||!f.isCustomLink(qa)||!mxEvent.isTouchEvent(xa)&&mxEvent.isPopupTrigger(xa))P.apply(this,arguments);else{if(!f.isEnabled()||null!=ca&&f.isCellLocked(ca.cell))f.customLinkClicked(qa),f.getRubberband().reset();mxEvent.consume(xa)}};this.editor.getOrCreateFilename=function(){var ca=c.defaultFilename,ta=c.getCurrentFile();null!=ta&&(ca=null!=ta.getTitle()?ta.getTitle():ca);return ca};q=this.actions.get("print");q.setEnabled(!mxClient.IS_IOS||!navigator.standalone);q.visible=q.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(77,!0,"editGeometry",!0),this.keyHandler.bindAction(75,!0,"tags"),this.keyHandler.bindAction(65,!1,"insertText"),this.keyHandler.bindAction(83,!1,"insertNote"),this.keyHandler.bindAction(68,!1,"insertRectangle"),this.keyHandler.bindAction(70,!1,"insertEllipse"),this.keyHandler.bindAction(76,!1,"insertLink"),this.keyHandler.bindAction(82,!1,"insertRhombus"),this.keyHandler.bindAction(67,!1,"insertEdge"),this.keyHandler.bindAction(88,!1,"insertFreehand"),this.keyHandler.bindAction(75,!0,"toggleShapes",!0),this.keyHandler.bindAction(54,!0,"adaptiveColors",!0),this.altShiftActions[81]="copyStyle",this.altShiftActions[87]="pasteStyle",this.altShiftActions[83]="synchronize",this.ctrlAltActions[84]="runLastLayout",this.installKeyboardShortcuts(),"1"==urlParams.embedInline&&(document.body.classList.add("geEmbedInline"),Editor.passiveScroll&&document.body.classList.add("geInlineNoUi"),Editor.passiveScroll||f.addListener(mxEvent.ESCAPE,function(ca,ta){null!=ta&&f.isEnabled()&&!f.isEditing()&&null!=ta.getProperty("event")&&c.actions.get("exit").funct()})),@@ -4599,8 +4601,8 @@ f=0:0<=c.indexOf("bottom")&&(f=q-E);J=Math.max(0,Math.min(J,l-A));f=Math.max(0,Mvar x=this.dockManager,A=!1,E=null,J=q.setLocation;q.setLocation=function(K,fa){(null==this.dockState||this._undocking||this._relayouting)&&J.call(this,K,fa)};var Q=q.setSize;q.setSize=function(K,fa){if(null!=this.dockState){mxWindow.prototype.setSize.call(this,K,fa);K=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;fa=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var Y=parseInt(this.div.style.width),aa=parseInt(this.div.style.height),ja=this.getX(),ka=this.getY();this._dockOffsetX=this._dockAnchorRight?K-ja-Y:ja;this._dockOffsetY=this._dockAnchorBottom?fa-ka-aa:ka;x.pinToEdge(this)}else Q.call(this,K,fa)};q.addListener(mxEvent.MOVE_START,function(K,fa){A=!0;E=null;null!=q.dockState&&(q._undocking=!0,x.undock(q),q._undocking=!1)});q.addListener(mxEvent.MOVE,function(K,fa){A&&(K=x.getDockZone(q.getX(),q.getY(),q.div),K!=E&&(E=K,null!=K?x.showPreview(K,q):x.hidePreview()))});q.addListener(mxEvent.MOVE_END,function(K,fa){A=!1;x.hidePreview();null!=E&&x.dock(q,E);E=null});q.addListener(mxEvent.DOCK,function(K,fa){if(null!=q.resize){K=fa.getProperty("side");var Y=0<=K.indexOf("right"),aa=0<=K.indexOf("bottom");if(Y||aa){K=q.resize;K.parentNode.removeChild(K);q.resize=null;K=document.createElement("img");K.style.position="absolute";K.style.zIndex="2";K.setAttribute("src",mxWindow.prototype.resizeImage);Y?K.style.left="0px":K.style.right="0px";aa?K.style.top="0px":K.style.bottom="0px";K.style.cursor=Y!=aa?"nesw-resize":"nwse-resize";var ja=-null,ka=null,ua=null,Ca=null,ia=function(v){if(null!=ja&&null!=ka){var H=mxEvent.getClientX(v)-ja,P=mxEvent.getClientY(v)-ka;q.setSize(Y?ua-H:ua+H,aa?Ca-P:Ca+P);q.fireEvent(new mxEventObject(mxEvent.RESIZE,"event",v));mxEvent.consume(v)}},k=function(v){null!=ja&&null!=ka&&(ka=ja=null,mxEvent.removeGestureListeners(document,null,ia,k),q.fireEvent(new mxEventObject(mxEvent.RESIZE_END,"event",v)),mxEvent.consume(v))};mxEvent.addGestureListeners(K,function(v){q.activate();ja=mxEvent.getClientX(v);ka=-mxEvent.getClientY(v);ua=q.div.offsetWidth;Ca=q.div.offsetHeight;mxEvent.addGestureListeners(document,null,ia,k);q.fireEvent(new mxEventObject(mxEvent.RESIZE_START,"event",v));mxEvent.consume(v)},ia,k);q.div.appendChild(K);q.resize=K;q._dockResize=!0}}});q.addListener(mxEvent.UNDOCK,function(K,fa){q._dockResize&&(null!=q.resize&&(q.resize.parentNode.removeChild(q.resize),q.resize=null),q.setResizable(!0),q._dockResize=!1)});q.addListener(mxEvent.NORMALIZE,function(K,fa){null!=q.dockState&&x.pinToEdge(q)});+null,ka=null,ua=null,Ca=null,ia=function(u){if(null!=ja&&null!=ka){var H=mxEvent.getClientX(u)-ja,P=mxEvent.getClientY(u)-ka;q.setSize(Y?ua-H:ua+H,aa?Ca-P:Ca+P);q.fireEvent(new mxEventObject(mxEvent.RESIZE,"event",u));mxEvent.consume(u)}},k=function(u){null!=ja&&null!=ka&&(ka=ja=null,mxEvent.removeGestureListeners(document,null,ia,k),q.fireEvent(new mxEventObject(mxEvent.RESIZE_END,"event",u)),mxEvent.consume(u))};mxEvent.addGestureListeners(K,function(u){q.activate();ja=mxEvent.getClientX(u);ka=+mxEvent.getClientY(u);ua=q.div.offsetWidth;Ca=q.div.offsetHeight;mxEvent.addGestureListeners(document,null,ia,k);q.fireEvent(new mxEventObject(mxEvent.RESIZE_START,"event",u));mxEvent.consume(u)},ia,k);q.div.appendChild(K);q.resize=K;q._dockResize=!0}}});q.addListener(mxEvent.UNDOCK,function(K,fa){q._dockResize&&(null!=q.resize&&(q.resize.parentNode.removeChild(q.resize),q.resize=null),q.setResizable(!0),q._dockResize=!1)});q.addListener(mxEvent.NORMALIZE,function(K,fa){null!=q.dockState&&x.pinToEdge(q)});q.addListener(mxEvent.MAXIMIZE,function(K,fa){null!=q.dockState&&(q._undocking=!0,x.undock(q),q._undocking=!1)});q.addListener(mxEvent.SHOW,function(K,fa){null!=q.dockState&&x.pinToEdge(q)});var V=c.destroy;c.destroy=function(){x.removeWindow(q);V.apply(this,arguments)}}};EditorUi.prototype.switchThemeConstants=function(c){var f=this.editor.graph;f.defaultEdgeLength=Graph.prototype.defaultEdgeLength;f.defaultGridEnabled=Graph.prototype.defaultGridEnabled;f.defaultPageVisible=Graph.prototype.defaultPageVisible;null!=this.menus&&(this.menus.autoPopup="simple"!=c&&"sketch"!=c);if("simple"==c||"sketch"==c){Editor.fitWindowBorders=new mxRectangle(60,30,30,30);if(null==Editor.config||null==Editor.config.defaultEdgeLength)f.defaultEdgeLength=120;null==urlParams.grid&&(f.defaultGridEnabled=!1);null==urlParams.pv&&(f.defaultPageVisible=!1)}else Editor.fitWindowBorders=null};EditorUi.prototype.isPageMenuVisible=function(){return null!=this.pages&&("0"!=urlParams.pages||1<this.pages.length||Editor.pagesVisible)};EditorUi.prototype.isThemeMenuVisible=function(){return("1"!=urlParams.embed||"1"==urlParams.themes&&null==urlParams.ui&&"1"!=urlParams.sketch)&&"1"!=urlParams.extAuth&&this.mode!=App.MODE_ATLAS};EditorUi.prototype.switchCssForTheme=function(c){};EditorUi.prototype.createMainMenuForTheme=function(c){};EditorUi.prototype.createFooterMenuForTheme=function(c){};EditorUi.prototype.createPickerMenuForTheme=function(c){};EditorUi.prototype.getNetworkStatus=function(){var c=null;if(this.isOffline(!0))c=@@ -4662,7 +4664,7 @@ mxUtils.sortCells(f.getExportableCells(f.model.getTopmostCells(f.getSelectionCel(E.lastPasteXml=c,E.pasteCounter=0);var Q=E.pasteCounter*E.gridSize;if(l||this.isCompatibleString(c)){E.model.beginUpdate();try{if(A=this.importXml(c,Q,Q),null!=J){var V=E.getBoundingBoxFromGeometry(A,!0);if(null!=V){var K=Math.round(E.snap(J.x)),fa=Math.round(E.snap(J.y));E.cellsMoved(A,K-V.x,fa-V.y)}}}finally{E.model.endUpdate()}E.setSelectionCells(A)}else if(f&&1==E.getSelectionCount()){f=E.getStartEditingCell(E.getSelectionCell(),q);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c)&&"image"==E.getCurrentCellStyle(f)[mxConstants.STYLE_SHAPE])E.setCellStyles(mxConstants.STYLE_IMAGE,c,[f]);else{E.model.beginUpdate();try{E.labelChanged(f,c),Graph.isLink(c)&&E.setLinkForCell(f,c)}finally{E.model.endUpdate()}}E.setSelectionCell(f)}else J=null!=J?J:E.getInsertPoint(),E.isMouseInsertPoint()&&(Q=0,E.lastPasteXml==c&&0<E.pasteCounter&&E.pasteCounter--),A=this.insertTextAt(c,J.x+Q,J.y+Q,x),E.setSelectionCells(A);E.isSelectionEmpty()||(E.scrollCellToVisible(E.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(E.view.getState(E.getSelectionCell())));return A};EditorUi.prototype.pasteCells=function(c,f,l,q){if(!mxEvent.isConsumed(c)){var x=c.clipboardData,A=this.editor.graph,E=!1,J=f;if(l&&null!=x&&x.getData){var Q=x.getData("text/plain"),V=!1;if(null!=Q&&0<Q.length&&"%3CmxGraphModel%3E"==Q.substring(0,18))try{var K=decodeURIComponent(Q);this.isCompatibleString(K)&&(V=!0,Q=K)}catch(ia){}V=V?null:x.getData("text/html");null!=V&&0<V.length?(J=this.parseHtmlData(V),E="text/plain"!=J.getAttribute("data-type")):null!=Q&&0<Q.length&&(J=document.createElement("div"),mxUtils.setTextContent(J,-Q))}Q=J.getElementsByTagName("span");if(null!=Q&&0<Q.length&&"application/vnd.lucid.chart.objects"===Q[0].getAttribute("data-lucid-type"))l=Q[0].getAttribute("data-lucid-content"),null!=l&&0<l.length&&(this.convertLucidChart(l,mxUtils.bind(this,function(ia){var k=this.editor.graph;k.lastPasteXml==ia?k.pasteCounter++:(k.lastPasteXml=ia,k.pasteCounter=0);var v=k.pasteCounter*k.gridSize;k.setSelectionCells(this.importXml(ia,v,v));k.scrollCellToVisible(k.getSelectionCell())}),mxUtils.bind(this,function(ia){this.handleError(ia)})),+Q))}Q=J.getElementsByTagName("span");if(null!=Q&&0<Q.length&&"application/vnd.lucid.chart.objects"===Q[0].getAttribute("data-lucid-type"))l=Q[0].getAttribute("data-lucid-content"),null!=l&&0<l.length&&(this.convertLucidChart(l,mxUtils.bind(this,function(ia){var k=this.editor.graph;k.lastPasteXml==ia?k.pasteCounter++:(k.lastPasteXml=ia,k.pasteCounter=0);var u=k.pasteCounter*k.gridSize;k.setSelectionCells(this.importXml(ia,u,u));k.scrollCellToVisible(k.getSelectionCell())}),mxUtils.bind(this,function(ia){this.handleError(ia)})),mxEvent.consume(c));else{var fa=!1,Y="";Y=E?null!=J.textContent&&"<mxfile"==J.textContent.substring(0,7)&&"</mxfile>"==J.textContent.substring(J.textContent.length-9)||"<mxGraphModel"==J.textContent.substring(0,13)&&"</mxGraphModel>"==J.textContent.substring(J.textContent.length-15)?J.textContent.replace(/\u00a0/g," "):J.innerHTML:mxUtils.trim(null==J.innerText?mxUtils.getTextContent(J):J.innerText);try{var aa=Y.lastIndexOf("%3E");0<=aa&&aa<Y.length-3&&(Y=Y.substring(0,aa+3))}catch(ia){}try{Q=J.getElementsByTagName("span"),(K=null!=Q&&0<Q.length?mxUtils.trim(decodeURIComponent(Q[0].textContent)):decodeURIComponent(Y))&&(this.isCompatibleString(K)||0==K.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":'))&&(fa=!0,Y=K)}catch(ia){}K=null;try{if(!fa&&""==J.textContent)for(aa=0;aa<x.items.length;aa++){var ja=x.items[aa];if("file"===ja.kind){K=ja.getAsFile();break}}}catch(ia){}EditorUi.debug("EditorUi.pasteCells",[this],"evt",[c],"realElt",[f.outerHTML],"elt",[J.outerHTML],"useEvent",l,"pasteAsLabel",q,"xml",[Y],"compat",fa,"asHtml",E,"data",x,"items",[x.items.length],"files",[x.files.length],"types",[JSON.stringify(x.types)],"blob",[K]);try{if(fa||null==K)if(null!=Y&&0<Y.length){if(0==Y.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":')){var ua=mxUtils.bind(this,function(){this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})}),Ca=mxUtils.bind(this,function(){if("undefined"===typeof MiroImporter)ua();else try{Y=(new MiroImporter).importMiroJson(JSON.parse(Y)),this.pasteXml(Y,@@ -4680,18 +4682,18 @@ else E.text().then(mxUtils.bind(this,function(J){EditorUi.debug("EditorUi.readTyl.length;)l[0].parentNode.removeChild(l[0]);if(null!=f.firstChild&&f.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=f.firstChild.nextSibling&&f.firstChild.nextSibling.nodeType==mxConstants.NODETYPE_ELEMENT&&"META"==f.firstChild.nodeName&&"A"==f.firstChild.nextSibling.nodeName&&null==f.firstChild.nextSibling.nextSibling){var q=null==f.firstChild.nextSibling.innerText?mxUtils.getTextContent(f.firstChild.nextSibling):f.firstChild.nextSibling.innerText;q==f.firstChild.nextSibling.getAttribute("href")&&(mxUtils.setTextContent(f,q),asHtml=!1)}if(""==f.textContent&&(l=f.getElementsByTagName("img"),1==l.length&&(q=l[0].getAttribute("src"),l=null,null!=q))){if(Editor.isPngDataUrl(q)){var x=Editor.extractGraphModelFromPng(q);null!=x&&0<x.length&&(l=x)}else if("data:image/svg+xml;base64,"==q.substring(0,26)){img=this.base64ToBlob(q.substring(q.indexOf(",")+1),"image/svg+xml");q=Graph.getSvgFromDataUri(q);try{x=mxUtils.parseXml(q).documentElement.getAttribute("content"),this.isCompatibleString(x)&&(l=x)}catch(A){}}null!=l&&(mxUtils.setTextContent(f,l),asHtml=!1)}asHtml?Graph.removePasteFormatting(f):f.setAttribute("data-type","text/plain")}EditorUi.debug("EditorUi.parseHtmlData",[this],"data",[c],"elt",[f],"asHtml",asHtml);return f};EditorUi.prototype.showPrintDialog=function(c,f,l){this.showDialog((new PrintDialog(this,c,f,l)).container,360,null,!0,!0)};EditorUi.prototype.print=function(c,f){var l=this.editor,q=l.graph,x=this.getPageIndex(this.currentPage),A=null!=x?x+1:1,E=mxUtils.bind(this,-function(k,v,H,P){var T=k.useCssTransforms,W=k.currentTranslate,ha=k.currentScale,X=k.view.translate,ea=k.view.scale;k.useCssTransforms&&(k.useCssTransforms=!1,k.currentTranslate=new mxPoint(0,0),k.currentScale=1,k.view.translate=new mxPoint(0,0),k.view.scale=1);var oa=k.getGraphBounds(),la=0,ca=0,ta=mxRectangle.fromRectangle(k.pageFormat),xa=f.fit||f.crop||!k.pageVisible,qa=f.scale;ta.width*=k.pageScale;ta.height*=k.pageScale;var Ba=1;if(f.fit){Ba=f.sheetsAcross;var na=f.sheetsDown;isNaN(qa)||(ta.width=+function(k,u,H,P){var T=k.useCssTransforms,W=k.currentTranslate,ha=k.currentScale,X=k.view.translate,ea=k.view.scale;k.useCssTransforms&&(k.useCssTransforms=!1,k.currentTranslate=new mxPoint(0,0),k.currentScale=1,k.view.translate=new mxPoint(0,0),k.view.scale=1);var oa=k.getGraphBounds(),la=0,ca=0,ta=mxRectangle.fromRectangle(k.pageFormat),xa=f.fit||f.crop||!k.pageVisible,qa=f.scale;ta.width*=k.pageScale;ta.height*=k.pageScale;var Ba=1;if(f.fit){Ba=f.sheetsAcross;var na=f.sheetsDown;isNaN(qa)||(ta.width=Math.ceil(ta.width*qa),ta.height=Math.ceil(ta.height*qa));Ba=Math.min(ta.height*na/(oa.height/k.view.scale),ta.width*Ba/(oa.width/k.view.scale))}else Ba=isNaN(qa)?1:qa;Ba*=1;!xa&&k.pageVisible?(qa=k.getPageLayout(),la-=qa.x*ta.width,ca-=qa.y*ta.height):xa=!0;f.crop&&(f.selection&&(oa=q.getBoundingBox(q.getSelectionCells())),ta.width=(oa.width+1)*Ba/k.view.scale,ta.height=(oa.height+1)*Ba/k.view.scale);ta.width*=1;ta.height*=1;P=null!=P?"page/id,"+P:null;oa=f.selection?k.getBoundingBox(k.getSelectionCells()):-k.getGraphBounds();if(null!=oa){qa=k.view.scale/Ba;na=oa.width;var ra=oa.height,va=la,Ha=ca;xa||(va-=k.view.translate.x*Ba,Ha-=k.view.translate.y*Ba,na+=oa.x,ra+=oa.y);K+=Math.max(1,Math.ceil((na/qa+va)/(ta.width+1)))*Math.max(1,Math.ceil((ra/qa+Ha)/(ta.height+1)))}fa=fa||K>this.maxPrintPageCount;if(!fa)if(null==v){v=PrintDialog.createPrintPreview(k,Ba,null,0,la,ca,xa);v.title=this.getBaseFilename(!0);v.pageSelector=!1;v.mathEnabled=!1;la=f.border;isNaN(la)||(v.pageMargin=la);var La=v.writeHead;v.writeHead=-function(Qa,Ka){Ka=null!=Ka?Ka:"";f.shadows||(Ka+='g[style*="filter: drop-shadow("] {\n filter: none !important;{\n}\n');mxClient.IS_GC&&(Ka+="@media print {\n .MathJax svg { shape-rendering: crispEdges; }\n}\n");null!=l.fontCss&&(Ka+=l.fontCss);La.apply(this,arguments);for(var Na=k.getCustomFonts(),Oa=0;Oa<Na.length;Oa++){var Fa=Na[Oa].name,Aa=Na[Oa].url;Graph.isCssFontUrl(Aa)?Qa.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(Aa))+'" charset="UTF-8" type="text/css">'):-(Qa.writeln('<style type="text/css">'),Qa.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Graph.escapeCssString(Fa))+'";\nsrc: url("'+mxUtils.htmlEntities(Graph.escapeCssString(Aa))+'");\n}'),Qa.writeln("</style>"))}};if(Editor.replaceSvgDataUris){var Ga=v.drawBackgroundImage;v.drawBackgroundImage=function(Qa){Ga.apply(this,arguments);null!=Qa.node&&(EditorUi.embedSvgImages(Qa.node),q.disableSvgLinks(Qa.node,function(Ka){Ka.setAttribute("href","javascript:void(0)")}))}}var Da=v.addGraphFragment;-v.addGraphFragment=function(Qa,Ka,Na,Oa,Fa,Aa){Da.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:Fa.classList.add("geDisableMathJax");if(this.graph.shadowVisible)for(var Ja=Fa.getElementsByTagName("svg"),Ia=0;Ia<Ja.length;Ia++)k.addSvgShadow(Ja[Ia])};f.grid&&(v.gridSize=k.gridSize,v.gridSteps=k.view.gridSteps,v.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:k.view.gridColor);v.isCellVisible=f.selection?function(Qa){return k.isCellSelected(Qa)&&-k.isCellVisible(Qa)}:function(Qa){return k.isCellVisible(Qa)};v.open(null,null,H,!0,P,ta,f.selection?k.getSelectionCells():null)}else{oa=k.background;if(null==oa||""==oa||oa==mxConstants.NONE)oa="#ffffff";v.backgroundColor=oa;v.autoOrigin=xa;f.grid&&(v.gridSize=k.gridSize,v.gridSteps=k.view.gridSteps,v.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:k.view.gridColor);v.isCellVisible=f.selection?function(Qa){return k.isCellSelected(Qa)&&k.isCellVisible(Qa)}:function(Qa){return k.isCellVisible(Qa)};-v.appendGraph(k,Ba,la,ca,H,!0,P,ta,f.selection?k.getSelectionCells():null);H=k.getCustomFonts();if(null!=v.wnd)for(ta=0;ta<H.length;ta++)la=H[ta].name,ca=H[ta].url,Graph.isCssFontUrl(ca)?v.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(ca)+'" charset="UTF-8" type="text/css">'):(v.wnd.document.writeln('<style type="text/css">'),v.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Graph.escapeCssString(la))+'";\nsrc: url("'+mxUtils.htmlEntities(Graph.escapeCssString(ca))+-'");\n}'),v.wnd.document.writeln("</style>"))}T&&(k.useCssTransforms=T,k.currentTranslate=W,k.currentScale=ha,k.view.translate=X,k.view.scale=ea);return v}),J=f.pagesFrom,Q=f.pagesTo,V=!f.allPages,K=0,fa=!1;x=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,f);else{V&&(V=f.selection||J==A&&Q==A);if(!V&&null!=this.pages&&this.pages.length){V=0;A=this.pages.length-1;f.allPages||(V=parseInt(J)-1,A=parseInt(Q)-1);for(var Y=V;Y<=A&&!fa;Y++){var aa=this.pages[Y];J=aa==this.currentPage?q:null;-if(null==J){J=this.createTemporaryGraph(q.stylesheet);J.shapeForegroundColor=q.shapeForegroundColor;J.shapeBackgroundColor=q.shapeBackgroundColor;Q=!0;var ja=V=!1,ka=null,ua=null;null==aa.viewState&&null==aa.root&&this.updatePageRoot(aa);null!=aa.viewState&&(Q=aa.viewState.pageVisible,V=aa.viewState.mathEnabled,ja=aa.viewState.shadowVisible,ka=aa.viewState.background,ua=aa.viewState.backgroundImage,J.pageFormat=aa.viewState.pageFormat,J.gridSize=aa.viewState.gridSize,J.hiddenTags=aa.viewState.hiddenTags||-[]);null!=ua&&null!=ua.originalSrc&&(ua=this.createImageForPageLink(ua.originalSrc,aa));J.background=ka;J.backgroundImage=null!=ua?new mxImage(ua.src,ua.width,ua.height,ua.x,ua.y):null;J.pageVisible=Q;J.mathEnabled=V;J.shadowVisible=ja;var Ca=J.getGraphBounds;J.getGraphBounds=function(){var k=Ca.apply(this,arguments),v=this.backgroundImage;if(null!=v&&null!=v.width&&null!=v.height){var H=this.view.translate,P=this.view.scale;k=mxRectangle.fromRectangle(k);k.add(new mxRectangle((H.x+v.x)*P,(H.y+v.y)*-P,v.width*P,v.height*P))}return k};var ia=J.getGlobalVariable;J.getGlobalVariable=function(k){return"page"==k?aa.getName():"pagenumber"==k?Y+1:"pagecount"==k?null!=this.pages?this.pages.length:1:ia.apply(this,arguments)};document.body.appendChild(J.container);this.updatePageRoot(aa);J.model.setRoot(aa.root)}x=E(J,x,Y!=A,aa.getId());J!=q&&J.container.parentNode.removeChild(J.container)}}else x=E(q);if(fa)return null!=x&&null!=x.wnd&&x.wnd!=window&&x.wnd.close(),this.handleError({message:mxResources.get("drawingTooLarge")}),+k.getGraphBounds();if(null!=oa){qa=k.view.scale/Ba;na=oa.width;var ra=oa.height,va=la,Ha=ca;xa||(va-=k.view.translate.x*Ba,Ha-=k.view.translate.y*Ba,na+=oa.x,ra+=oa.y);K+=Math.max(1,Math.ceil((na/qa+va)/(ta.width+1)))*Math.max(1,Math.ceil((ra/qa+Ha)/(ta.height+1)))}fa=fa||K>this.maxPrintPageCount;if(!fa)if(null==u){u=PrintDialog.createPrintPreview(k,Ba,null,0,la,ca,xa);u.title=this.getBaseFilename(!0);u.pageSelector=!1;u.mathEnabled=!1;la=f.border;isNaN(la)||(u.pageMargin=la);var La=u.writeHead;u.writeHead=+function(Qa,Ka){Ka=null!=Ka?Ka:"";f.shadows||(Ka+='g[style*="filter: drop-shadow("] {\n filter: none !important;\n}\n');mxClient.IS_GC&&(Ka+="@media print {\n .MathJax svg { shape-rendering: crispEdges; }\n}\n");null!=l.fontCss&&(Ka+=l.fontCss);La.apply(this,arguments);for(var Na=k.getCustomFonts(),Oa=0;Oa<Na.length;Oa++){var Fa=Na[Oa].name,Aa=Na[Oa].url;Graph.isCssFontUrl(Aa)?Qa.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(Aa))+'" charset="UTF-8" type="text/css">'):+(Qa.writeln('<style type="text/css">'),Qa.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Graph.escapeCssString(Fa))+'";\nsrc: url("'+mxUtils.htmlEntities(Graph.escapeCssString(Aa))+'");\n}'),Qa.writeln("</style>"))}};if(Editor.replaceSvgDataUris){var Ga=u.drawBackgroundImage;u.drawBackgroundImage=function(Qa){Ga.apply(this,arguments);null!=Qa.node&&(EditorUi.embedSvgImages(Qa.node),q.disableSvgLinks(Qa.node,function(Ka){Ka.setAttribute("href","javascript:void(0)")}))}}var Da=u.addGraphFragment;+u.addGraphFragment=function(Qa,Ka,Na,Oa,Fa,Aa){Da.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:Fa.classList.add("geDisableMathJax");if(this.graph.shadowVisible)for(var Ja=Fa.getElementsByTagName("svg"),Ia=0;Ia<Ja.length;Ia++)k.addSvgShadow(Ja[Ia])};f.grid&&(u.gridSize=k.gridSize,u.gridSteps=k.view.gridSteps,u.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:k.view.gridColor);u.isCellVisible=f.selection?function(Qa){return k.isCellSelected(Qa)&&+k.isCellVisible(Qa)}:function(Qa){return k.isCellVisible(Qa)};u.open(null,null,H,!0,P,ta,f.selection?k.getSelectionCells():null)}else{oa=k.background;if(null==oa||""==oa||oa==mxConstants.NONE)oa="#ffffff";u.backgroundColor=oa;u.autoOrigin=xa;f.grid&&(u.gridSize=k.gridSize,u.gridSteps=k.view.gridSteps,u.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:k.view.gridColor);u.isCellVisible=f.selection?function(Qa){return k.isCellSelected(Qa)&&k.isCellVisible(Qa)}:function(Qa){return k.isCellVisible(Qa)};+u.appendGraph(k,Ba,la,ca,H,!0,P,ta,f.selection?k.getSelectionCells():null);H=k.getCustomFonts();if(null!=u.wnd)for(ta=0;ta<H.length;ta++)la=H[ta].name,ca=H[ta].url,Graph.isCssFontUrl(ca)?u.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(ca))+'" charset="UTF-8" type="text/css">'):(u.wnd.document.writeln('<style type="text/css">'),u.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Graph.escapeCssString(la))+'";\nsrc: url("'++mxUtils.htmlEntities(Graph.escapeCssString(ca))+'");\n}'),u.wnd.document.writeln("</style>"))}T&&(k.useCssTransforms=T,k.currentTranslate=W,k.currentScale=ha,k.view.translate=X,k.view.scale=ea);return u}),J=f.pagesFrom,Q=f.pagesTo,V=!f.allPages,K=0,fa=!1;x=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,f);else{V&&(V=f.selection||J==A&&Q==A);if(!V&&null!=this.pages&&this.pages.length){V=0;A=this.pages.length-1;f.allPages||(V=parseInt(J)-1,A=parseInt(Q)-1);for(var Y=V;Y<=A&&!fa;Y++){var aa=+this.pages[Y];J=aa==this.currentPage?q:null;if(null==J){J=this.createTemporaryGraph(q.stylesheet);J.shapeForegroundColor=q.shapeForegroundColor;J.shapeBackgroundColor=q.shapeBackgroundColor;Q=!0;var ja=V=!1,ka=null,ua=null;null==aa.viewState&&null==aa.root&&this.updatePageRoot(aa);null!=aa.viewState&&(Q=aa.viewState.pageVisible,V=aa.viewState.mathEnabled,ja=aa.viewState.shadowVisible,ka=aa.viewState.background,ua=aa.viewState.backgroundImage,J.pageFormat=aa.viewState.pageFormat,J.gridSize=aa.viewState.gridSize,+J.hiddenTags=aa.viewState.hiddenTags||[]);null!=ua&&null!=ua.originalSrc&&(ua=this.createImageForPageLink(ua.originalSrc,aa));J.background=ka;J.backgroundImage=null!=ua?new mxImage(ua.src,ua.width,ua.height,ua.x,ua.y):null;J.pageVisible=Q;J.mathEnabled=V;J.shadowVisible=ja;var Ca=J.getGraphBounds;J.getGraphBounds=function(){var k=Ca.apply(this,arguments),u=this.backgroundImage;if(null!=u&&null!=u.width&&null!=u.height){var H=this.view.translate,P=this.view.scale;k=mxRectangle.fromRectangle(k);k.add(new mxRectangle((H.x++u.x)*P,(H.y+u.y)*P,u.width*P,u.height*P))}return k};var ia=J.getGlobalVariable;J.getGlobalVariable=function(k){return"page"==k?aa.getName():"pagenumber"==k?Y+1:"pagecount"==k?null!=this.pages?this.pages.length:1:ia.apply(this,arguments)};document.body.appendChild(J.container);this.updatePageRoot(aa);J.model.setRoot(aa.root)}x=E(J,x,Y!=A,aa.getId());J!=q&&J.container.parentNode.removeChild(J.container)}}else x=E(q);if(fa)return null!=x&&null!=x.wnd&&x.wnd!=window&&x.wnd.close(),this.handleError({message:mxResources.get("drawingTooLarge")}),null;if(null==x||null==x.wnd)this.handleError({message:mxResources.get("errorUpdatingPreview")});else{x.mathEnabled&&(E=x.wnd.document,c||(x.wnd.IMMEDIATE_PRINT=!0),E.writeln('<script type="text/javascript" src="js/math-print.js">\x3c/script>'));x.closeDocument();if(Editor.expandPatternsForPrint&&null!=x.wnd)for(E=x.wnd.document.getElementsByTagName("svg"),Y=0;Y<E.length;Y++)Editor.expandSvgPatterns(E[Y]);Graph.rewritePageLinks(x.wnd.document,!0);x.mathEnabled||c||PrintDialog.printPreview(x)}return x}};EditorUi.prototype.addFileDropHandler=function(c){if(Graph.fileSupport)for(var f=null,l=0;l<c.length;l++)mxEvent.addListener(c[l],"dragleave",function(q){null!=f&&(f.parentNode.removeChild(f),f=null);q.stopPropagation();q.preventDefault()}),mxEvent.addListener(c[l],"dragover",mxUtils.bind(this,function(q){(this.editor.graph.isEnabled()||"1"!=urlParams.embed)&&null==f&&(f=this.highlightElement());q.stopPropagation();q.preventDefault()})),mxEvent.addListener(c[l],"drop",mxUtils.bind(this,function(q){null!=f&&(f.parentNode.removeChild(f),f=null);if(this.editor.graph.isEnabled()||"1"!=urlParams.embed)if(0<q.dataTransfer.files.length)this.hideDialog(),"1"==urlParams.embed?this.importFiles(q.dataTransfer.files,0,0,this.maxImageSize,null,null,null,null,!mxEvent.isControlDown(q)&&!mxEvent.isShiftDown(q)):this.openFiles(q.dataTransfer.files,!0);else{var x=this.extractGraphModelFromEvent(q);if(null==x){var A=null!=q.dataTransfer?q.dataTransfer:q.clipboardData;null!=A&&(10==document.documentMode||11==document.documentMode?@@ -4735,8 +4737,8 @@ Ea=null:"%"==Ea.charAt(0)?Ea=decodeURIComponent(Ea):"<"!=Ea.charAt(0)&&(Ea=GraphK.button);null!=K.modified&&(this.editor.modified=K.modified);return}if("layout"==K.action){this.executeLayoutSpec(K.layouts);return}if("prompt"==K.action){this.spinner.stop();var ua=new FilenameDialog(this,K.defaultValue||"",null!=K.okKey?mxResources.get(K.okKey):K.ok,function(Ea){null!=Ea?J.postMessage(JSON.stringify({event:"prompt",value:Ea,message:K}),"*"):J.postMessage(JSON.stringify({event:"prompt-cancel",message:K}),"*")},null!=K.titleKey?mxResources.get(K.titleKey):K.title,null,null,null,null,function(){J.postMessage(JSON.stringify({event:"prompt-cancel",message:K}),"*")});this.showDialog(ua.container,300,80,!0,!1);ua.init();return}if("draft"==K.action){var Ca=aa(K.xml);this.spinner.stop();ua=new DraftDialog(this,mxResources.get("draftFound",[K.name||this.defaultFilename]),Ca,mxUtils.bind(this,function(){this.hideDialog();J.postMessage(JSON.stringify({event:"draft",result:"edit",message:K}),"*")}),mxUtils.bind(this,function(){this.hideDialog();J.postMessage(JSON.stringify({event:"draft",result:"discard",message:K}),"*")}),K.editKey?mxResources.get(K.editKey):null,K.discardKey?mxResources.get(K.discardKey):null,K.ignore?mxUtils.bind(this,function(){this.hideDialog();J.postMessage(JSON.stringify({event:"draft",result:"ignore",message:K}),"*")}):null);this.showDialog(ua.container,640,480,!0,!1,mxUtils.bind(this,function(Ea){Ea&&this.actions.get("exit").funct()}));try{ua.init()}catch(Ea){J.postMessage(JSON.stringify({event:"draft",error:Ea.toString(),message:K}),"*")}return}if("template"==-K.action){this.spinner.stop();var ia=1==K.enableRecent,k=1==K.enableSearch,v=1==K.enableCustomTemp;ua=new NewDialog(this,!1,K.templatesOnly?!1:null!=K.callback,mxUtils.bind(this,function(Ea,$a,cb,Za){Ea=Ea||this.emptyDiagramXml;null!=K.callback?J.postMessage(JSON.stringify({event:"template",xml:Ea,blank:Ea==this.emptyDiagramXml,name:$a,tempUrl:cb,libs:Za,builtIn:!0,message:K}),"*"):(c(Ea,V,Ea!=this.emptyDiagramXml,K.toSketch),this.editor.modified||this.clearStatus())}),null,null,null,null,null,null,-null,ia?mxUtils.bind(this,function(Ea){this.remoteInvoke("getRecentDiagrams",[null],null,Ea,function(){Ea(null,"Network Error!")})}):null,k?mxUtils.bind(this,function(Ea,$a){this.remoteInvoke("searchDiagrams",[Ea,null],null,$a,function(){$a(null,"Network Error!")})}):null,mxUtils.bind(this,function(Ea,$a,cb){J.postMessage(JSON.stringify({event:"template",docUrl:Ea,info:$a,name:cb}),"*")}),null,null,v?mxUtils.bind(this,function(Ea){this.remoteInvoke("getCustomTemplates",null,null,Ea,function(){Ea({},+K.action){this.spinner.stop();var ia=1==K.enableRecent,k=1==K.enableSearch,u=1==K.enableCustomTemp;ua=new NewDialog(this,!1,K.templatesOnly?!1:null!=K.callback,mxUtils.bind(this,function(Ea,$a,cb,Za){Ea=Ea||this.emptyDiagramXml;null!=K.callback?J.postMessage(JSON.stringify({event:"template",xml:Ea,blank:Ea==this.emptyDiagramXml,name:$a,tempUrl:cb,libs:Za,builtIn:!0,message:K}),"*"):(c(Ea,V,Ea!=this.emptyDiagramXml,K.toSketch),this.editor.modified||this.clearStatus())}),null,null,null,null,null,null,+null,ia?mxUtils.bind(this,function(Ea){this.remoteInvoke("getRecentDiagrams",[null],null,Ea,function(){Ea(null,"Network Error!")})}):null,k?mxUtils.bind(this,function(Ea,$a){this.remoteInvoke("searchDiagrams",[Ea,null],null,$a,function(){$a(null,"Network Error!")})}):null,mxUtils.bind(this,function(Ea,$a,cb){J.postMessage(JSON.stringify({event:"template",docUrl:Ea,info:$a,name:cb}),"*")}),null,null,u?mxUtils.bind(this,function(Ea){this.remoteInvoke("getCustomTemplates",null,null,Ea,function(){Ea({},0)})}):null,1==K.withoutType,null,K.templatesOnly);this.showDialog(ua.container,620,460,!0,!1,mxUtils.bind(this,function(Ea){null!=this.sidebar&&this.sidebar.hideTooltip();Ea&&!K.noExitOnCancel&&this.actions.get("exit").funct()}));ua.init();return}if("textContent"==K.action){var H=this.getDiagramTextContent();J.postMessage(JSON.stringify({event:"textContent",data:H,message:K}),"*");return}if("status"==K.action){this.updateStatus(mxUtils.bind(this,function(){null!=K.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(K.messageKey))):null!=K.message&&this.editor.setStatus(mxUtils.htmlEntities(K.message))}));null!=K.modified&&(this.editor.modified=K.modified);return}if("spinner"==K.action){var P=null!=K.messageKey?mxResources.get(K.messageKey):K.message;null==K.show||K.show?this.spinner.spin(document.body,P):this.spinner.stop();return}if("exit"==K.action){this.actions.get("exit").funct();return}if("viewport"==K.action){if(null!=K.viewport){var T=this.editor.graph,W=T.view.translate.x,ha=T.view.translate.y;this.embedViewport=K.viewport;T.refresh();this.diagramContainer.scrollTop-=(ha-T.view.translate.y)*T.view.scale;this.diagramContainer.scrollLeft-=(W-T.view.translate.x)*T.view.scale;this.fireEvent(new mxEventObject("embedViewportChanged"))}return}if("invokeAction"==K.action){var X=this.actions.get(K.actionName);null!=X&&X.funct();return}if("resetEditor"==K.action){T=this.editor.graph;T.isEditing()&&T.stopEditing(!1);this.hideCurrentMenu();T.popupMenuHandler.hideMenu();T.clearSelection();return}if("fit"==K.action){T=this.editor.graph;@@ -4746,11 +4748,11 @@ null!=oa&&this.restoreScrollState(oa);return}if("snapshot"==K.action){this.sendEthis.editor.graph&&T.container.parentNode.removeChild(T.container);ta(Ea)}),qa=K.pageId||(null!=this.pages?K.currentPage?this.currentPage.getId():this.pages[0].getId():null);if(this.editor.isExportToCanvas()){var Ba=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=qa){var Ea=T.getGlobalVariable;T=this.createTemporaryGraph(T.getStylesheet());for(var $a,cb=0;cb<this.pages.length;cb++)if(this.pages[cb].getId()==qa){$a=this.updatePageRoot(this.pages[cb]);break}null==$a&&($a=this.currentPage);T.getGlobalVariable=function(wb){return"page"==wb?$a.getName():"pagenumber"==wb?1:Ea.apply(this,arguments)};document.body.appendChild(T.container);T.model.setRoot($a.root)}if(null!=K.layerIds){var Za=T.model,eb=Za.getChildCells(Za.getRoot()),lb=Object.create(null);for(cb=0;cb<K.layerIds.length;cb++)lb[K.layerIds[cb]]=!0;for(cb=0;cb<eb.length;cb++)Za.setVisible(eb[cb],lb[eb[cb].id]||!1)}cb=null;K.keepTheme&&(cb=Editor.isDarkMode()?"dark":"light");null==K.width&&0<this.maxCanvasExportArea&&(eb=T.getGraphBounds(),lb=null!=K.border?K.border:0,Za=Math.ceil(eb.width/T.view.scale)+2*lb,eb=Math.ceil(eb.height/T.view.scale)+2*lb,lb=null!=K.scale?K.scale:1,Za*eb*lb*lb>this.maxCanvasExportArea&&(K.scale=Math.sqrt(this.maxCanvasExportArea/(Za*eb))));this.editor.exportToCanvas(mxUtils.bind(this,function(wb){xa(wb.toDataURL("image/png"))}),K.width,null,K.background,mxUtils.bind(this,function(){xa(null)}),null,null,K.scale,K.transparent,K.shadow,null,T,K.border,null,K.grid,cb,K.size)});null!=K.xml&&-0<K.xml.length&&(l=!0,this.setFileData(ca),l=!1);Ba()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==K.format?"1":"0")+(null!=qa?"&pageId="+qa:"")+(null!=K.layerIds&&0<K.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:K.layerIds})):"")+(null!=K.scale?"&scale="+K.scale:"")+"&base64=1&xml="+encodeURIComponent(ca))).send(mxUtils.bind(this,function(Ea){200<=Ea.getStatus()&&299>=Ea.getStatus()?ta("data:image/png;base64,"+Ea.getText()):xa(null)}),mxUtils.bind(this,-function(){xa(null)}))}}else if(Ba=mxUtils.bind(this,function(){var Ea=this.createLoadMessage("export");Ea.message=K;if("html2"==K.format||"html"==K.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var $a=this.getXmlFileData();Ea.xml=mxUtils.getXml($a);Ea.data=this.getFileData(null,null,!0,null,null,null,$a);Ea.format=K.format}else if("html"==K.format)$a=this.editor.getGraphXml(),Ea.data=this.getHtml($a,this.editor.graph),Ea.xml=mxUtils.getXml($a),Ea.format=K.format;else{if("xml"==-K.format)Ea.xml=this.getFileData(!0),Ea.format=K.format,J.postMessage(JSON.stringify(Ea),"*");else if("json"==K.format)Ea.format=K.format,Ea.data=this.createJsonForExport(0!=K.allPages,1==K.includeData,1==K.compressed,1==K.selection),J.postMessage(JSON.stringify(Ea),"*");else{mxSvgCanvas2D.prototype.foAltText=null;var cb=null!=K.background?K.background:this.editor.graph.background;cb==mxConstants.NONE&&(cb=null);Ea.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);Ea.format="svg";-var Za=mxUtils.bind(this,function(rb){this.editor.graph.setEnabled(!0);this.spinner.stop();Ea.data=K.asText?rb:Editor.createSvgDataUri(rb);J.postMessage(JSON.stringify(Ea),"*")}),eb="auto";K.keepTheme&&(eb=Editor.isDarkMode()?"dark":"light");null!=K.theme&&(eb=K.theme);if("xmlsvg"==K.format){if(null==K.spin&&null==K.spinKey||this.spinner.spin(document.body,null!=K.spinKey?mxResources.get(K.spinKey):K.spin)){eb=null;if(this.isAutoDarkMode()||Editor.isDarkMode())eb="auto";null!=K.theme&&(eb=K.theme);-this.getEmbeddedSvg(Ea.xml,this.editor.graph,null,!0,Za,null,null,K.embedImages,cb,K.scale,K.border,K.shadow,eb,K.embedCellMetadata,K.embedFonts)}}else if(null==K.spin&&null==K.spinKey||this.spinner.spin(document.body,null!=K.spinKey?mxResources.get(K.spinKey):K.spin)){this.editor.graph.setEnabled(!1);var lb=this.editor.graph.createSvgImageExport(!1,K.embedCellMetadata?!0:!1);$a=Object.create(null);var wb=this.getSvgWithFontLookup($a,lb,mxUtils.bind(this,function(){return this.editor.graph.getSvg(cb,+0<K.xml.length&&(l=!0,this.setFileData(ca),l=!1);Ba()}else this.isRemoteExportEnabled()?(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==K.format?"1":"0")+(null!=qa?"&pageId="+qa:"")+(null!=K.layerIds&&0<K.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:K.layerIds})):"")+(null!=K.scale?"&scale="+K.scale:"")+"&base64=1&xml="+encodeURIComponent(ca))).send(mxUtils.bind(this,function(Ea){200<=Ea.getStatus()&&299>=Ea.getStatus()?ta("data:image/png;base64,"+Ea.getText()):+xa(null)}),mxUtils.bind(this,function(){xa(null)})):xa(null)}}else if(Ba=mxUtils.bind(this,function(){var Ea=this.createLoadMessage("export");Ea.message=K;if("html2"==K.format||"html"==K.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var $a=this.getXmlFileData();Ea.xml=mxUtils.getXml($a);Ea.data=this.getFileData(null,null,!0,null,null,null,$a);Ea.format=K.format}else if("html"==K.format)$a=this.editor.getGraphXml(),Ea.data=this.getHtml($a,this.editor.graph),Ea.xml=mxUtils.getXml($a),+Ea.format=K.format;else{if("xml"==K.format)Ea.xml=this.getFileData(!0),Ea.format=K.format,J.postMessage(JSON.stringify(Ea),"*");else if("json"==K.format)Ea.format=K.format,Ea.data=this.createJsonForExport(0!=K.allPages,1==K.includeData,1==K.compressed,1==K.selection),J.postMessage(JSON.stringify(Ea),"*");else{mxSvgCanvas2D.prototype.foAltText=null;var cb=null!=K.background?K.background:this.editor.graph.background;cb==mxConstants.NONE&&(cb=null);Ea.xml=this.getFileData(!0,null,null,null,null,null,+null,null,null,!1);Ea.format="svg";var Za=mxUtils.bind(this,function(rb){this.editor.graph.setEnabled(!0);this.spinner.stop();Ea.data=K.asText?rb:Editor.createSvgDataUri(rb);J.postMessage(JSON.stringify(Ea),"*")}),eb="auto";K.keepTheme&&(eb=Editor.isDarkMode()?"dark":"light");null!=K.theme&&(eb=K.theme);if("xmlsvg"==K.format){if(null==K.spin&&null==K.spinKey||this.spinner.spin(document.body,null!=K.spinKey?mxResources.get(K.spinKey):K.spin)){eb=null;if(this.isAutoDarkMode()||Editor.isDarkMode())eb=+"auto";null!=K.theme&&(eb=K.theme);this.getEmbeddedSvg(Ea.xml,this.editor.graph,null,!0,Za,null,null,K.embedImages,cb,K.scale,K.border,K.shadow,eb,K.embedCellMetadata,K.embedFonts)}}else if(null==K.spin&&null==K.spinKey||this.spinner.spin(document.body,null!=K.spinKey?mxResources.get(K.spinKey):K.spin)){this.editor.graph.setEnabled(!1);var lb=this.editor.graph.createSvgImageExport(!1,K.embedCellMetadata?!0:!1);$a=Object.create(null);var wb=this.getSvgWithFontLookup($a,lb,mxUtils.bind(this,function(){return this.editor.graph.getSvg(cb,K.scale,K.border,null,null,null,null,lb,null,this.editor.graph.shadowVisible||K.shadow,null,eb)}));(this.editor.graph.shadowVisible||K.shadow)&&this.editor.graph.addSvgShadow(wb);this.embedFonts(wb,mxUtils.bind(this,function(rb){K.embedImages||null==K.embedImages?this.editor.convertImages(rb,mxUtils.bind(this,function(xb){Za(mxUtils.getXml(xb))})):Za(mxUtils.getXml(rb))}),K.embedFonts,$a)}}return}J.postMessage(JSON.stringify(Ea),"*")}),null!=K.xml&&0<K.xml.length){if(this.editor.graph.mathEnabled){var na=Editor.onMathJaxDone;Editor.onMathJaxDone=function(){na.apply(this,arguments);Ba()}}l=!0;this.setFileData(K.xml);l=!1;this.editor.graph.mathEnabled||Ba()}else Ba();return}if("load"==K.action){ja=K.toSketch;q=1==K.autosave;this.embedDiffSync=null!=K.diffSync&&!1!==K.diffSync;this.embedDiffSyncPatchOnly="object"===typeof K.diffSync&&null!=K.diffSync&&1==K.diffSync.patchOnly;this.embedExportProtocol=1==K.exportProtocol;var ra=K.sourceMetadata||null;Y=null!=K.layout?K.layout:null;this.hideDialog();null!=K.modified&&null==urlParams.modified&&(urlParams.modified=K.modified);null!=K.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=K.saveAndExit);if("1"==urlParams.saveAndExit||"1"==urlParams.publishClose)if(this.actions.get("save").shortcut=null,!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(83,!0,"saveAndExit"),"1"!=urlParams.noSaveBtn&&(this.actions.get("save").shortcut=Editor.ctrlKey+"+"+Editor.shiftKey+"+S",this.keyHandler.bindAction(83,!0,"save",!0));null!=@@ -4791,20 +4793,20 @@ E("orgChartType",J);var fa=document.createElement("input");fa.type="number";fa.vconfig:{branchOptimizer:l,parentChildSpacing:q,siblingSpacing:x}})},f||null,mxResources.get("apply"),"https://www.drawio.com/docs/manual/layouts/org-chart-layout/");this.showDialog(f.container,355,null,!0,!0)};EditorUi.prototype.loadOrgChartLayouts=function(c,f){this.createTimeout(null,mxUtils.bind(this,function(l){var q=mxUtils.bind(this,function(){this.loadingOrgChart=!1;l.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),this.spinner.stop(),c())}),x=mxUtils.bind(this,function(A){this.loadingOrgChart=!1;l.clear()&&this.handleError(A)});if("undefined"!==typeof mxOrgChartLayout||this.loadingOrgChart||this.isOffline(!0))q();else if(f||this.spinner.spin(document.body,mxResources.get("loading")))this.loadingOrgChart=!0,"1"==urlParams.dev?mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",q,null,null,null,x)},null,null,null,x)},null,null,null,x)},null,null,null,x):mxscript(window.DRAWIO_SERVER_URL+"js/orgchart.min.js",q,null,null,null,x)}),onerror)};EditorUi.prototype.importCsv=function(c,f,l,q){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c,f,l)}),q)};EditorUi.prototype.doImportCsv=function(c,f,l){try{var q=c.split("\n"),x=[],A=[],E=[],J=Object.create(null);if(0<q.length){var Q=Object.create(null);l=null!=l?l:this.editor.graph;var V=null,K=null,fa=null,Y=null,aa=null,ja=null,ka=null,ua="whiteSpace=wrap;html=1;",-Ca=null,ia=null,k="",v="auto",H="auto",P=!1,T=null,W=null,ha=40,X=40,ea=100,oa=0,la=mxUtils.bind(this,function(){null!=f?f(eb):(l.setSelectionCells(eb),l.scrollCellToVisible(l.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),0)}),ca=l.getFreeInsertPoint(!0),ta=ca.x,xa=ca.y;ca=xa;var qa=null,Ba="auto";ia=null;for(var na=[],ra=null,va=null,Ha=0;Ha<q.length&&"#"==q[Ha].charAt(0);){c=q[Ha].replace(/\r$/,"");for(Ha++;Ha<q.length&&+Ca=null,ia=null,k="",u="auto",H="auto",P=!1,T=null,W=null,ha=40,X=40,ea=100,oa=0,la=mxUtils.bind(this,function(){null!=f?f(eb):(l.setSelectionCells(eb),l.scrollCellToVisible(l.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),0)}),ca=l.getFreeInsertPoint(!0),ta=ca.x,xa=ca.y;ca=xa;var qa=null,Ba="auto";ia=null;for(var na=[],ra=null,va=null,Ha=0;Ha<q.length&&"#"==q[Ha].charAt(0);){c=q[Ha].replace(/\r$/,"");for(Ha++;Ha<q.length&&"\\"==c.charAt(c.length-1)&&"#"==q[Ha].charAt(0);)c=c.substring(0,c.length-1)+mxUtils.trim(q[Ha].substring(1)),Ha++;if("#"!=c.charAt(1)){var La=c.indexOf(":");if(0<La){var Ga=mxUtils.trim(c.substring(1,La)),Da=mxUtils.trim(c.substring(La+1));"label"==Ga?qa=Graph.sanitizeHtml(Da):"labelname"==Ga&&0<Da.length&&"-"!=Da?aa=Da:"labels"==Ga&&0<Da.length&&"-"!=Da?ka=JSON.parse(Da):"style"==Ga?K=Da:"parentstyle"==Ga?ua=Da:"unknownStyle"==Ga&&"-"!=Da?ja=Da:"stylename"==Ga&&0<Da.length&&"-"!=Da?Y=Da:"styles"==-Ga&&0<Da.length&&"-"!=Da?fa=JSON.parse(Da):"vars"==Ga&&0<Da.length&&"-"!=Da?V=JSON.parse(Da):"identity"==Ga&&0<Da.length&&"-"!=Da?Ca=Da:"parent"==Ga&&0<Da.length&&"-"!=Da?ia=Da:"namespace"==Ga&&0<Da.length&&"-"!=Da?k=Da:"width"==Ga?v=Da:"height"==Ga?H=Da:"collapsed"==Ga&&"-"!=Da?P="true"==Da:"left"==Ga&&0<Da.length?T=Da:"top"==Ga&&0<Da.length?W=Da:"ignore"==Ga?va=Da.split(","):"connect"==Ga?na.push(JSON.parse(Da)):"link"==Ga?ra=Da:"padding"==Ga?oa=parseFloat(Da):"edgespacing"==Ga?ha=parseFloat(Da):+Ga&&0<Da.length&&"-"!=Da?fa=JSON.parse(Da):"vars"==Ga&&0<Da.length&&"-"!=Da?V=JSON.parse(Da):"identity"==Ga&&0<Da.length&&"-"!=Da?Ca=Da:"parent"==Ga&&0<Da.length&&"-"!=Da?ia=Da:"namespace"==Ga&&0<Da.length&&"-"!=Da?k=Da:"width"==Ga?u=Da:"height"==Ga?H=Da:"collapsed"==Ga&&"-"!=Da?P="true"==Da:"left"==Ga&&0<Da.length?T=Da:"top"==Ga&&0<Da.length?W=Da:"ignore"==Ga?va=Da.split(","):"connect"==Ga?na.push(JSON.parse(Da)):"link"==Ga?ra=Da:"padding"==Ga?oa=parseFloat(Da):"edgespacing"==Ga?ha=parseFloat(Da):"nodespacing"==Ga?X=parseFloat(Da):"levelspacing"==Ga?ea=parseFloat(Da):"layout"==Ga&&(Ba=Da)}}}if(null==q[Ha])throw Error(mxResources.get("invalidOrMissingFile"));var Qa=this.editor.csvToArray(q[Ha].replace(/\r$/,""));La=c=null;Ga=[];for(Da=0;Da<Qa.length;Da++)Ca==Qa[Da]&&(c=Da),ia==Qa[Da]&&(La=Da),Ga.push(mxUtils.trim(Qa[Da]).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,""));null==qa&&(qa="%"+Ga[0]+"%");if(null!=na)for(var Ka=0;Ka<na.length;Ka++)null==Q[na[Ka].to]&&(Q[na[Ka].to]=Object.create(null));Ca=[];for(Da=Ha+1;Da<q.length;Da++){var Na=this.editor.csvToArray(q[Da].replace(/\r$/,""));if(null==Na){var Oa=40<q[Da].length?q[Da].substring(0,40)+"...":q[Da];throw Error(Oa+" ("+Da+"):\n"+mxResources.get("containsValidationErrors"));}0<Na.length&&Ca.push(Na)}l.model.beginUpdate();try{for(Da=0;Da<Ca.length;Da++){Na=Ca[Da];var Fa=null,Aa=null!=c?k+Na[c]:null;q=!1;null!=Aa&&(Fa=l.model.getCell(Aa),q=null==Fa||0<=mxUtils.indexOf(x,Fa));var Ja=new mxCell(qa,new mxGeometry(ta,ca,0,0),K||"whiteSpace=wrap;html=1;");Ja.collapsed=P;Ja.vertex=!0;Ja.id=Aa;null==Fa||q||l.model.setCollapsed(Fa,P);for(var Ia=0;Ia<Na.length;Ia++)l.setAttributeForCell(Ja,Ga[Ia],Na[Ia]),null==Fa||q||l.setAttributeForCell(Fa,Ga[Ia],Na[Ia]);if(null!=aa&&null!=ka){var Sa=Ja.getAttribute(aa),ab=null!=Sa&&Object.prototype.hasOwnProperty.call(ka,Sa)?ka[Sa]:null;null!=ab&&(l.labelChanged(Ja,ab),null==Fa||q||l.cellLabelChanged(Fa,ab))}if(null!=Y&&null!=fa){var Va=Ja.getAttribute(Y),db=null!=Va&&Object.prototype.hasOwnProperty.call(fa,Va)?fa[Va]:null;null!=db&&(Ja.style=db)}l.setAttributeForCell(Ja,"placeholders","1");Ja.style=l.replacePlaceholders(Ja,Ja.style,V);null==Fa||q?l.fireEvent(new mxEventObject("cellsInserted","cells",[Ja])):(l.model.setStyle(Fa,Ja.style),0>mxUtils.indexOf(E,Fa)&&E.push(Fa),l.fireEvent(new mxEventObject("cellsInserted","cells",[Fa])));q=null!=Fa;Fa=Ja;if(!q)for(Ka=0;Ka<na.length;Ka++)Q[na[Ka].to][Fa.getAttribute(na[Ka].to)]=Fa;null!=ra&&"link"!=ra&&(l.setLinkForCell(Fa,Fa.getAttribute(ra)),l.setAttributeForCell(Fa,-ra,null));var Ea=l.getPreferredSizeForCell(Fa);ia=null!=La?l.model.getCell(k+Na[La]):null;if(Fa.vertex){Oa=null!=ia?0:ta;Ha=null!=ia?0:xa;null!=T&&null!=Fa.getAttribute(T)&&(Fa.geometry.x=Oa+parseFloat(Fa.getAttribute(T)));null!=W&&null!=Fa.getAttribute(W)&&(Fa.geometry.y=Ha+parseFloat(Fa.getAttribute(W)));var $a="@"==v.charAt(0)?Fa.getAttribute(v.substring(1)):null;Fa.geometry.width=null!=$a&&"auto"!=$a?parseFloat(Fa.getAttribute(v.substring(1))):"auto"==v||"auto"==$a?Ea.width+oa:parseFloat(v);var cb=-"@"==H.charAt(0)?Fa.getAttribute(H.substring(1)):null;Fa.geometry.height=null!=cb&&"auto"!=cb&&"width"!=H?parseFloat(cb):"auto"==H||"auto"==cb?Ea.height+oa:"width"==H?Fa.geometry.width:parseFloat(H);ca+=Fa.geometry.height+X}q?(null==J[Aa]&&(J[Aa]=[]),J[Aa].push(Fa)):(x.push(Fa),null!=ia?(ia.style=l.replacePlaceholders(ia,ua,V),l.addCell(Fa,ia),A.push(ia)):E.push(l.addCell(Fa)))}for(Da=0;Da<A.length;Da++)$a="@"==v.charAt(0)?A[Da].getAttribute(v.substring(1)):null,cb="@"==H.charAt(0)?A[Da].getAttribute(H.substring(1)):-null,"auto"!=v&&"auto"!=$a||"auto"!=H&&"auto"!=cb||l.updateGroupBounds([A[Da]],oa,!0);var Za=E.slice(),eb=E.slice();for(Ka=0;Ka<na.length;Ka++){var lb=na[Ka];for(Da=0;Da<x.length;Da++){Fa=x[Da];var wb=mxUtils.bind(this,function(Bb,Hb,Ab){var Db=Hb.getAttribute(Ab.from);if(null!=Db&&""!=Db){Db=Db.split(",");for(var z=0;z<Db.length;z++){var L=Q[Ab.to][Db[z]];if(null==L&&null!=ja){L=new mxCell(Db[z],new mxGeometry(ta,xa,0,0),ja);L.style=l.replacePlaceholders(Hb,L.style,V);var M=l.getPreferredSizeForCell(L);+ra,null));var Ea=l.getPreferredSizeForCell(Fa);ia=null!=La?l.model.getCell(k+Na[La]):null;if(Fa.vertex){Oa=null!=ia?0:ta;Ha=null!=ia?0:xa;null!=T&&null!=Fa.getAttribute(T)&&(Fa.geometry.x=Oa+parseFloat(Fa.getAttribute(T)));null!=W&&null!=Fa.getAttribute(W)&&(Fa.geometry.y=Ha+parseFloat(Fa.getAttribute(W)));var $a="@"==u.charAt(0)?Fa.getAttribute(u.substring(1)):null;Fa.geometry.width=null!=$a&&"auto"!=$a?parseFloat(Fa.getAttribute(u.substring(1))):"auto"==u||"auto"==$a?Ea.width+oa:parseFloat(u);var cb=+"@"==H.charAt(0)?Fa.getAttribute(H.substring(1)):null;Fa.geometry.height=null!=cb&&"auto"!=cb&&"width"!=H?parseFloat(cb):"auto"==H||"auto"==cb?Ea.height+oa:"width"==H?Fa.geometry.width:parseFloat(H);ca+=Fa.geometry.height+X}q?(null==J[Aa]&&(J[Aa]=[]),J[Aa].push(Fa)):(x.push(Fa),null!=ia?(ia.style=l.replacePlaceholders(ia,ua,V),l.addCell(Fa,ia),A.push(ia)):E.push(l.addCell(Fa)))}for(Da=0;Da<A.length;Da++)$a="@"==u.charAt(0)?A[Da].getAttribute(u.substring(1)):null,cb="@"==H.charAt(0)?A[Da].getAttribute(H.substring(1)):+null,"auto"!=u&&"auto"!=$a||"auto"!=H&&"auto"!=cb||l.updateGroupBounds([A[Da]],oa,!0);var Za=E.slice(),eb=E.slice();for(Ka=0;Ka<na.length;Ka++){var lb=na[Ka];for(Da=0;Da<x.length;Da++){Fa=x[Da];var wb=mxUtils.bind(this,function(Bb,Hb,Ab){var Db=Hb.getAttribute(Ab.from);if(null!=Db&&""!=Db){Db=Db.split(",");for(var z=0;z<Db.length;z++){var L=Q[Ab.to][Db[z]];if(null==L&&null!=ja){L=new mxCell(Db[z],new mxGeometry(ta,xa,0,0),ja);L.style=l.replacePlaceholders(Hb,L.style,V);var M=l.getPreferredSizeForCell(L);L.geometry.width=M.width+oa;L.geometry.height=M.height+oa;Q[Ab.to][Db[z]]=L;L.vertex=!0;L.id=Db[z];E.push(l.addCell(L))}if(null!=L){M=Ab.label;null!=Ab.fromlabel&&(M=(Hb.getAttribute(Ab.fromlabel)||"")+(M||""));null!=Ab.sourcelabel&&(M=l.replacePlaceholders(Hb,Ab.sourcelabel,V)+(M||""));null!=Ab.tolabel&&(M=(M||"")+(L.getAttribute(Ab.tolabel)||""));null!=Ab.targetlabel&&(M=(M||"")+l.replacePlaceholders(L,Ab.targetlabel,V));var S="target"==Ab.placeholders==!Ab.invert?L:Bb;S=null!=Ab.style?l.replacePlaceholders(S,Ab.style,V):l.createCurrentEdgeStyle();M=l.insertEdge(null,null,M||"",Ab.invert?L:Bb,Ab.invert?Bb:L,S);if(null!=Ab.labels)for(S=0;S<Ab.labels.length;S++){var Z=Ab.labels[S],da=new mxCell(Z.label||S,new mxGeometry(null!=Z.x?Z.x:0,null!=Z.y?Z.y:0,0,0),"resizable=0;html=1;");da.vertex=!0;da.connectable=!1;da.geometry.relative=!0;null!=Z.placeholders&&(da.value=l.replacePlaceholders("target"==Z.placeholders==!Ab.invert?L:Bb,da.value,V));if(null!=Z.dx||null!=Z.dy)da.geometry.offset=new mxPoint(null!=Z.dx?Z.dx:0,null!=Z.dy?Z.dy:0);M.insert(da)}if(null!=Ab.data)for(var ma in Ab.data)l.setAttributeForCell(M,ma,Ab.data[ma]);eb.push(M);mxUtils.remove(Ab.invert?Bb:L,Za)}}}});wb(Fa,Fa,lb);if(null!=J[Fa.id])for(Ia=0;Ia<J[Fa.id].length;Ia++)wb(Fa,J[Fa.id][Ia],lb)}}if(null!=va)for(Da=0;Da<x.length;Da++)for(Fa=x[Da],Ia=0;Ia<va.length;Ia++)l.setAttributeForCell(Fa,mxUtils.trim(va[Ia]),null);if(0<E.length){var rb=new mxParallelEdgeLayout(l);rb.spacing=ha;rb.checkOverlap=!0;var xb=function(){0<rb.spacing&&rb.execute(l.getDefaultParent());-var Bb=0,Hb=0;0<E.length&&(Hb=l.getCellGeometry(E[0]),Bb=Math.round(l.snap(Hb.x))-Hb.x,Hb=Math.round(l.snap(Hb.y))-Hb.y);for(var Ab=0;Ab<E.length;Ab++){var Db=l.getCellGeometry(E[Ab]);Db.x=Math.round(Db.x+Bb);Db.y=Math.round(Db.y+Hb);"auto"==v&&(Db.width=Math.round(l.snap(Db.width)));"auto"==H&&(Db.height=Math.round(l.snap(Db.height)))}};"auto"==Ba&&1==Za.length&&(Ba=eb.length==2*E.length-1?"verticaltree":"verticalflow");var Jb="organic"==Ba||null!=EditorUi.CSV_ELK_LAYOUTS[Ba]?null:this.resolveLayoutList(Ba);+var Bb=0,Hb=0;0<E.length&&(Hb=l.getCellGeometry(E[0]),Bb=Math.round(l.snap(Hb.x))-Hb.x,Hb=Math.round(l.snap(Hb.y))-Hb.y);for(var Ab=0;Ab<E.length;Ab++){var Db=l.getCellGeometry(E[Ab]);Db.x=Math.round(Db.x+Bb);Db.y=Math.round(Db.y+Hb);"auto"==u&&(Db.width=Math.round(l.snap(Db.width)));"auto"==H&&(Db.height=Math.round(l.snap(Db.height)))}};"auto"==Ba&&1==Za.length&&(Ba=eb.length==2*E.length-1?"verticaltree":"verticalflow");var Jb="organic"==Ba||null!=EditorUi.CSV_ELK_LAYOUTS[Ba]?null:this.resolveLayoutList(Ba);if(null!=Jb){var Fb=la;l.view.validate();var Tb=l.createLayouts(Jb);this.scopeLayoutsToCells(Tb,eb);this.executeLayouts(Tb,function(){xb();Fb()});la=null}else if("circle"==Ba){var Rb=new mxCircleLayout(l);Rb.disableEdgeStyle=!1;Rb.resetEdges=!1;var $b=Rb.isVertexIgnored;Rb.isVertexIgnored=function(Bb){return $b.apply(this,arguments)||0>mxUtils.indexOf(E,Bb)};this.executeLayout(function(){Rb.execute(l.getDefaultParent());xb()},!0,la);la=null}else if("verticaltree"==Ba||"horizontaltree"==Ba){l.view.validate();var Mb=new mxCompactTreeLayout(l,"horizontaltree"==Ba);Mb.levelDistance=X;Mb.edgeRouting=!1;Mb.resetEdges=!1;Mb.sortEdges=!0;var Wb=Mb.isVertexIgnored;Mb.isVertexIgnored=function(Bb){return Wb.apply(this,arguments)||0>mxUtils.indexOf(E,Bb)};this.executeLayout(function(){Mb.execute(l.getDefaultParent(),0<Za.length?Za[0]:null)},!0,la);la=null}else if("orgchart"==Ba){l.view.validate();var zb=new mxOrgChartLayout(l,2,ea,X),Ub=zb.isVertexIgnored;zb.isVertexIgnored=function(Bb){return Ub.apply(this,arguments)||0>mxUtils.indexOf(E,Bb)};this.executeLayout(function(){zb.execute(l.getDefaultParent());xb()},!0,la);la=null}else if("organic"==Ba||"auto"==Ba&&eb.length>E.length){l.view.validate();var Lb=new mxFastOrganicLayout(l);Lb.forceConstant=3*X;Lb.disableEdgeStyle=!1;Lb.resetEdges=!1;var Xb=Lb.isVertexIgnored;Lb.isVertexIgnored=function(Bb){return Xb.apply(this,arguments)||0>mxUtils.indexOf(E,Bb)};this.executeLayout(function(){Lb.execute(l.getDefaultParent());xb()},!0,la);la=null}else if(null!=EditorUi.CSV_ELK_LAYOUTS[Ba]){l.view.validate();@@ -4822,51 +4824,52 @@ x="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=f&&f.isEditable();tthis.actions.get("moveToFolder").setEnabled(null!=f);this.actions.get("makeCopy").setEnabled(null!=f&&!f.isRestricted());this.actions.get("editDiagram").setEnabled(q&&(null==f||!f.isRestricted()));this.actions.get("publishLink").setEnabled(null!=f&&!f.isRestricted());this.actions.get("removeFormat").setEnabled(c.isEnabled()&&!c.isSelectionEmpty()&&!c.isEditing());this.actions.get("tags").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("layers").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("outline").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("rename").setEnabled(null!=f&&f.isRenamable()||"1"==urlParams.embed);this.actions.get("close").setEnabled(null!=f);this.actions.get("properties").setEnabled(null!=f);this.menus.get("publish").setEnabled(null!=f&&!f.isRestricted());f=this.actions.get("findReplace");f.setEnabled("none"!=this.diagramContainer.style.display);f.label=mxResources.get("find")+(c.isEnabled()?"/"+mxResources.get("replace"):"");c=c.view.getState(c.getSelectionCell());this.actions.get("editShape").setEnabled(q&&null!=c&&null!=c.shape&&null!=c.shape.stencil)};var R=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);R.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(c,f,l,q,x,A,E,J){var Q=c.editor.graph;-if("xml"==l)c.hideDialog(),c.saveData(f,"xml",mxUtils.getXml(c.editor.getGraphXml()),"text/xml");else if("svg"==l)c.hideDialog(),c.saveData(f,"svg",mxUtils.getXml(Q.getSvg(q,x,A)),"image/svg+xml");else{var V=c.getFileData(!0,null,null,null,null,!0),K=Q.getGraphBounds(),fa=Math.floor(K.width*x/Q.view.scale),Y=Math.floor(K.height*x/Q.view.scale);if(V.length<=MAX_REQUEST_SIZE&&fa*Y<MAX_AREA)if(c.hideDialog(),"png"!=l&&"jpg"!=l&&"jpeg"!=l||!c.editor.isExportToCanvas()){var aa={globalVars:Q.getExportVariables()};-J&&(aa.grid={size:Q.gridSize,steps:Q.view.gridSteps,color:Q.view.gridColor});c.saveRequest(f,l,function(ja,ka){return new mxXmlRequest(EXPORT_URL,"format="+l+"&base64="+(ka||"0")+(null!=ja?"&filename="+encodeURIComponent(ja):"")+"&extras="+encodeURIComponent(JSON.stringify(aa))+(0<E?"&dpi="+E:"")+"&bg="+(null!=q?q:"none")+"&w="+fa+"&h="+Y+"&border="+A+"&xml="+encodeURIComponent(V))})}else"png"==l?c.exportImage(x,null==q||"none"==q,!0,!1,!1,A,!0,!1,null,J,E):c.exportImage(x,!1,!0,!1,!1,A,!0,!1,"jpeg",-J);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var c=this.editor.graph,f="";if(null!=this.pages)for(var l=0;l<this.pages.length;l++){var q=c;this.currentPage!=this.pages[l]&&(q=this.createTemporaryGraph(c.getStylesheet()),this.updatePageRoot(this.pages[l]),q.model.setRoot(this.pages[l].root));f+=this.pages[l].getName()+" "+q.getIndexableText()+" "}else f=c.getIndexableText();this.editor.graph.setEnabled(!0);-return f};EditorUi.prototype.writeJsonLabel=function(c,f,l){if(null!=f&&""!=f){if(this.editor.graph.isHtmlLabel(c)&&(c=document.createElement("div"),c.innerHTML=Graph.sanitizeHtml(f),0<c.getElementsByTagName("*").length)){l.label=mxUtils.trim(mxUtils.extractTextWithWhitespace([c]));l.html=f;return}l.label=f}};EditorUi.prototype.getJsonForExportCell=function(c,f){var l={id:c.getId()};l.type=f?"layer":c.edge?"edge":c.vertex?"node":"group";f||(f=c.getParent(),null!=f&&(l.parent=f.getId()));c.edge&&(null!=-c.source&&(l.source=c.source.getId()),null!=c.target&&(l.target=c.target.getId()));f=c.value;if(null!=f&&mxUtils.isNode(f)){this.writeJsonLabel(c,f.getAttribute("label"),l);c=f.attributes;f={};for(var q=0,x=0;x<c.length;x++){var A=c[x].nodeName;"label"!=A&&"placeholders"!=A&&"id"!=A&&(f[A]=c[x].nodeValue,q++)}0<q&&(l.metadata=f)}else"string"===typeof f&&this.writeJsonLabel(c,f,l);return l};EditorUi.prototype.getJsonForPage=function(c,f){var l=this.editor.graph.getModel();var q=null==c||c==this.currentPage?-l.getRoot():this.updatePageRoot(c).root;var x=[],A=mxUtils.bind(this,function(K,fa){x.push(this.getJsonForExportCell(K,fa));fa=K.getChildCount();for(var Y=0;Y<fa;Y++)A(K.getChildAt(Y),!1)});if(null!=f){q={};for(var E=0;E<f.length;E++)q[f[E].getId()]=!0;for(E=0;E<f.length;E++){for(var J=f[E],Q=J.getParent(),V=!1;null!=Q;){if(q[Q.getId()]){V=!0;break}Q=Q.getParent()}V||A(J,l.isLayer(J))}}else for(f=q.getChildCount(),E=0;E<f;E++)A(q.getChildAt(E),!0);E={};null!=c&&(E.id=c.getId(),E.name=c.getName());-E.cells=x;return E};EditorUi.prototype.createJsonForExport=function(c,f,l,q){var x={version:EditorUi.VERSION};f&&(x.data=mxUtils.getXml(this.getXmlFileData(!q,!c,!l)));f=[];if(q)f.push(this.getJsonForPage(this.currentPage,this.editor.graph.getSelectionCells()));else if(c&&null!=this.pages)for(c=0;c<this.pages.length;c++)f.push(this.getJsonForPage(this.pages[c]));else f.push(this.getJsonForPage(this.currentPage));x.pages=f;return x};EditorUi.prototype.showRemotelyStoredLibrary=function(c){var f={},-l=document.createElement("div");l.style.whiteSpace="nowrap";var q=document.createElement("h3");mxUtils.write(q,mxUtils.htmlEntities(c));l.appendChild(q);var x=document.createElement("div");x.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";x.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var A={};try{var E=mxSettings.getCustomLibraries();for(c=0;c<E.length;c++){var J=E[c];if("R"==J.substring(0,1)){var Q=JSON.parse(decodeURIComponent(J.substring(1)));-A[Q[0]]={id:Q[0],title:Q[1],downloadUrl:Q[2]}}}}catch(V){}this.remoteInvoke("getCustomLibraries",null,null,function(V){x.innerText="";if(0==V.length)x.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var K=0;K<V.length;K++){var fa=V[K];A[fa.id]&&(f[fa.id]=fa);var Y=this.addCheckbox(x,fa.title,A[fa.id]);(function(aa,ja){mxEvent.addListener(ja,"change",function(){this.checked?f[aa.id]=aa:delete f[aa.id]})})(fa,-Y)}},mxUtils.bind(this,function(V){x.innerText="";var K=document.createElement("div");K.style.padding="8px";K.style.textAlign="center";mxUtils.write(K,mxResources.get("error")+": ");mxUtils.write(K,null!=V&&null!=V.message?V.message:mxResources.get("unknownError"));x.appendChild(K)}));l.appendChild(x);l=new CustomDialog(this,l,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));var V=0,K;for(K in f)null==A[K]&&(V++,mxUtils.bind(this,function(fa){this.remoteInvoke("getFileContent",-[fa.downloadUrl],null,mxUtils.bind(this,function(Y){V--;0==V&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,Y,fa)),this.showSidebar()}catch(aa){this.handleError(aa,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){V--;0==V&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(f[K]));for(K in A)f[K]||this.closeLibrary(new RemoteLibrary(this,null,A[K]));0==V&&this.spinner.stop()}),null,null,"https://www.drawio.com/doc/faq/custom-libraries-confluence-cloud");-this.showDialog(l.container,340,390,!0,!0,null,null,null,null,!0)};EditorUi.prototype.remoteInvokableFns={getDiagramTextContent:{isAsync:!1},getLocalStorageFile:{isAsync:!1,allowedDomains:["app.diagrams.net"]},getLocalStorageFileNames:{isAsync:!1,allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}};EditorUi.prototype.remoteInvokeCallbacks=[];EditorUi.prototype.remoteInvokeQueue=[];EditorUi.prototype.handleRemoteInvokeReady=function(c){this.remoteWin=-c;for(var f=0;f<this.remoteInvokeQueue.length;f++)c.postMessage(this.remoteInvokeQueue[f],"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var f=c.msgMarkers,l=null!=f?f.callbackId:null,q="number"===typeof l&&0<=l&&l<this.remoteInvokeCallbacks.length?this.remoteInvokeCallbacks[l]:null;if(null==q)throw Error("No callback for "+(null!=f?f.callbackId:"null"));c.error?q.error&&q.error(c.error.errResp):q.callback&&q.callback.apply(this,c.resp);this.remoteInvokeCallbacks[l]=-null};EditorUi.prototype.remoteInvoke=function(c,f,l,q,x){var A=!0,E=window.setTimeout(mxUtils.bind(this,function(){A=!1;x({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),J=mxUtils.bind(this,function(){window.clearTimeout(E);A&&q.apply(this,arguments)}),Q=mxUtils.bind(this,function(){window.clearTimeout(E);A&&x.apply(this,arguments)});l=l||{};l.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:J,error:Q});c=JSON.stringify({event:"remoteInvoke",-funtionName:c,functionArgs:f,msgMarkers:l});null!=this.remoteWin?this.remoteWin.postMessage(c,"*"):this.remoteInvokeQueue.push(c)};EditorUi.prototype.handleRemoteInvoke=function(c,f){var l=mxUtils.bind(this,function(V,K){var fa={event:"remoteInvokeResponse",msgMarkers:c.msgMarkers};null!=K?fa.error={errResp:K}:null!=V&&(fa.resp=V);this.remoteWin.postMessage(JSON.stringify(fa),"*")});try{var q=c.funtionName,x=null!=q&&Object.prototype.hasOwnProperty.call(this.remoteInvokableFns,q)?this.remoteInvokableFns[q]:-null;if(null!=x&&"function"===typeof this[q]){if(x.allowedDomains){for(var A=!1,E=0;E<x.allowedDomains.length;E++)if(f=="https://"+x.allowedDomains[E]){A=!0;break}if(!A){l(null,"Invalid Call: "+q+" is not allowed.");return}}var J=c.functionArgs;Array.isArray(J)||(J=[]);if(x.isAsync)J.push(function(){l(Array.prototype.slice.apply(arguments))}),J.push(function(V){l(null,V||"Unkown Error")}),this[q].apply(this,J);else{var Q=this[q].apply(this,J);l([Q])}}else l(null,"Invalid Call: "+q+" is not found.")}catch(V){l(null,-"Invalid Call: An error occurred, "+V.message)}};EditorUi.prototype.openDatabase=function(c,f){if(null==this.database){var l=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=l)try{var q=l.open("database",2);q.onupgradeneeded=function(x){try{var A=q.result;1>x.oldVersion&&A.createObjectStore("objects",{keyPath:"key"});2>x.oldVersion&&(A.createObjectStore("files",{keyPath:"title"}),A.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(E){null!=-f&&f(E)}};q.onsuccess=mxUtils.bind(this,function(x){try{var A=q.result;this.database=A;EditorUi.migrateStorageFiles&&(StorageFile.migrate(A),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(E){if((!E||"1"==urlParams.forceMigration)&&"1"==urlParams.forceMigration){var J=document.createElement("iframe");J.style.display="none";J.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+-urlParams.forceMigration);document.body.appendChild(J);var Q=!0,V=!1,K,fa=0,Y=mxUtils.bind(this,function(){V=!0;this.setDatabaseItem(".drawioMigrated3",!0);J.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),aa=mxUtils.bind(this,function(){fa++;ja()}),ja=mxUtils.bind(this,function(){try{if(fa>=K.length)Y();else{var ua=K[fa];StorageFile.getFileContent(this,ua,mxUtils.bind(this,function(Ca){null==Ca||".scratchpad"==ua&&Ca==this.emptyLibraryXml?J.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",-funtionName:"getLocalStorageFile",functionArgs:[ua]}),"*"):aa()}),aa)}}catch(Ca){console.log(Ca)}}),ka=mxUtils.bind(this,function(ua){try{this.setDatabaseItem(null,[{title:ua.title,size:ua.data.length,lastModified:Date.now(),type:ua.isLib?"L":"F"},{title:ua.title,data:ua.data}],aa,aa,["filesInfo","files"])}catch(Ca){console.log(Ca)}});E=mxUtils.bind(this,function(ua){try{if(ua.source==J.contentWindow){var Ca={};try{Ca=JSON.parse(ua.data)}catch(ia){}"init"==Ca.event?(J.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),-"*"),J.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=Ca.event||V||(Q?null!=Ca.resp&&0<Ca.resp.length&&null!=Ca.resp[0]?(K=Ca.resp[0],Q=!1,ja()):Y():null!=Ca.resp&&0<Ca.resp.length&&null!=Ca.resp[0]?ka(Ca.resp[0]):aa())}}catch(ia){console.log(ia)}});window.addEventListener("message",E)}})));c(A);A.onversionchange=function(){A.close()}}catch(E){null!=f?f(E):null!=window.console&&console.warn(E)}});q.onerror=f;q.onblocked=-function(){}}catch(x){null!=f?f(x):null!=window.console&&console.error(x)}else null!=f&&f(Error("IndexedDB not supported"))}else c(this.database)};EditorUi.prototype.setDatabaseItem=function(c,f,l,q,x){this.openDatabase(mxUtils.bind(this,function(A){try{x=x||"objects";Array.isArray(x)||(x=[x],c=[c],f=[f]);var E=A.transaction(x,"readwrite");E.oncomplete=l;E.onerror=q;for(A=0;A<x.length;A++)E.objectStore(x[A]).put(null!=c&&null!=c[A]?{key:c[A],data:f[A]}:f[A])}catch(J){null!=q&&q(J)}}),q)};EditorUi.prototype.removeDatabaseItem=-function(c,f,l,q){this.openDatabase(mxUtils.bind(this,function(x){try{q=q||"objects";Array.isArray(q)||(q=[q],c=[c]);var A=x.transaction(q,"readwrite");A.oncomplete=f;A.onerror=l;for(x=0;x<q.length;x++)A.objectStore(q[x]).delete(c[x])}catch(E){null!=l&&l(E)}}),l)};EditorUi.prototype.getDatabaseItem=function(c,f,l,q){this.openDatabase(mxUtils.bind(this,function(x){try{q=q||"objects";var A=x.transaction([q],"readonly").objectStore(q).get(c);A.onsuccess=function(){f(A.result)};A.onerror=l}catch(E){null!=-l&&l(E)}}),l)};EditorUi.prototype.getDatabaseItems=function(c,f,l){this.openDatabase(mxUtils.bind(this,function(q){try{l=l||"objects";var x=q.transaction([l],"readonly").objectStore(l).openCursor(IDBKeyRange.lowerBound(0)),A=[];x.onsuccess=function(E){null==E.target.result?c(A):(A.push(E.target.result.value),E.target.result.continue())};x.onerror=f}catch(E){null!=f&&f(E)}}),f)};EditorUi.prototype.getDatabaseItemKeys=function(c,f,l){this.openDatabase(mxUtils.bind(this,function(q){try{l=l||"objects";-var x=q.transaction([l],"readonly").objectStore(l).getAllKeys();x.onsuccess=function(){c(x.result)};x.onerror=f}catch(A){null!=f&&f(A)}}),f)};EditorUi.prototype.commentsSupported=function(){var c=this.getCurrentFile();return null!=c?c.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsSaveNeeded():!1};-EditorUi.prototype.getComments=function(c,f){var l=this.getCurrentFile();null!=l?l.getComments(c,f):c([])};EditorUi.prototype.addComment=function(c,f,l){var q=this.getCurrentFile();null!=q?q.addComment(c,f,l):f(Date.now())};EditorUi.prototype.canReplyToReplies=function(){var c=this.getCurrentFile();return null!=c?c.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.anchoredCommentsSupported=function(){var c=-this.getCurrentFile();return null!=c?c.anchoredCommentsSupported():!1};EditorUi.prototype.mentionsSupported=function(){var c=this.getCurrentFile();return null!=c?c.mentionsSupported():!1};EditorUi.prototype.freeMentionsSupported=function(){var c=this.getCurrentFile();return null!=c?c.freeMentionsSupported():!1};EditorUi.prototype.mentionsLiveSearch=function(){var c=this.getCurrentFile();return null!=c?c.mentionsLiveSearch():!1};EditorUi.prototype.mentionNotificationsSupported=function(){var c=this.getCurrentFile();-return null!=c?c.mentionNotificationsSupported():!0};EditorUi.prototype.getMentionCandidates=function(c,f,l){var q=this.getCurrentFile();null!=q?q.getMentionCandidates(c,f,l):c([])};EditorUi.prototype.serializeMention=function(c){return"+"+c.email};EditorUi.prototype.parseMentionTokens=function(c){for(var f=/[+@]([A-Za-z0-9.!#$%&'*/=?^_`{|}~+\-]+@[A-Za-z0-9.\-]+\.[A-Za-z]{2,})/g,l=[],q=0,x;null!=(x=f.exec(c));)x.index>q&&l.push(c.substring(q,x.index)),l.push({email:x[1]}),q=x.index+x[0].length;q<-c.length&&l.push(c.substring(q));return l};EditorUi.prototype.getCommentCacheTarget=function(){var c=this.getCurrentFile();return null!=c?c:this};EditorUi.prototype.refreshCommentCache=function(c,f){if(this.commentsSupported()){var l=this.getCommentCacheTarget();if(null!=l.commentCacheCallbacks)l.commentCacheCallbacks.push([c,f]);else{l.commentCacheCallbacks=[[c,f]];var q=mxUtils.bind(this,function(x,A){var E=l.commentCacheCallbacks;l.commentCacheCallbacks=null;for(var J=0;null!=E&&J<E.length;J++)if(null!=-E[J][x])E[J][x](A)});this.getComments(mxUtils.bind(this,function(x){this.getCommentCacheTarget()==l&&(l.commentCache=x,this.fireEvent(new mxEventObject("commentsChanged")));q(0,x)}),mxUtils.bind(this,function(x){q(1,x)}))}}else null!=c&&c(null)};EditorUi.prototype.commentsUpdated=function(){if(this.commentsSupported()){var c=this.getCurrentFile();null!=c&&null!=c.sync&&c.sync.sendCommentsChangedMessage();this.refreshCommentCache()}};EditorUi.prototype.getUnresolvedCommentCount=function(){var c=this.getCommentCacheTarget().commentCache,-f=0;if(null!=c)for(var l=0;l<c.length;l++)c[l].isResolved||f++;return f};EditorUi.prototype.getCommentAnchorCells=function(c){var f=c.getAnchorCellIds(),l=[];if(null!=f&&0<f.length){c=c.getAnchorPageId();var q=null==c?this.currentPage:this.getPageById(c);if(null!=q)if(q==this.currentPage)for(c=0;c<f.length;c++)q=this.editor.graph.model.getCell(f[c]),null!=q&&l.push(q);else{try{this.updatePageRoot(q)}catch(J){return l}if(null!=q.root){var x={},A=0;for(c=0;c<f.length;c++)x[f[c]]||(x[f[c]]=!0,A++);var E=-function(J){if(0<A){x[J.getId()]&&(x[J.getId()]=!1,l.push(J),A--);for(var Q=0;Q<J.getChildCount();Q++)E(J.getChildAt(Q))}};E(q.root)}}}return l};EditorUi.prototype.gotoCommentAnchor=function(c){var f=c.getAnchorPageId();if(null!=f&&null!=this.currentPage&&f!=this.currentPage.getId()){f=this.getPageById(f);if(null==f)return!1;this.selectPage(f)}f=this.editor.graph;var l=c.getAnchorCellIds();if(null!=l&&0<l.length){c=[];for(var q=0;q<l.length;q++){var x=f.model.getCell(l[q]);null!=x&&c.push(x)}return 0<-c.length?(f.isEnabled()?f.setSelectionCells(c):f.highlightCells(c,"#0071e3",2E3),f.scrollCellToVisible(c[0]),!0):!1}l=c.getAnchorRect();null!=l&&0<l.w&&0<l.h&&f.fitWindow(new mxRectangle(l.x,l.y,l.w,l.h),0);c=c.getAnchorPoint();if(null!=c){l=f.view.scale;q=f.view.translate;f=f.container;f.scrollLeft=Math.round((c.x+q.x)*l-f.clientWidth/2);f.scrollTop=Math.round((c.y+q.y)*l-f.clientHeight/2);var A=document.createElement("div");A.className="geCommentAnchorMarker";A.style.left=Math.round((c.x+q.x)*l)+-"px";A.style.top=Math.round((c.y+q.y)*l)+"px";f.appendChild(A);window.setTimeout(function(){null!=A.parentNode&&A.parentNode.removeChild(A)},2E3)}return!0};EditorUi.prototype.addCommentsBadge=function(c){var f=document.createElement("span");f.className="geCommentsBadge";f.style.display="none";c.appendChild(f);c=mxUtils.bind(this,function(){var l=this.getUnresolvedCommentCount();f.style.display=0<l?"":"none";f.innerText="";mxUtils.write(f,99<l?"99+":String(l))});this.addListener("commentsChanged",-c);this.editor.addListener("fileLoaded",c);c();return f};EditorUi.prototype.installCommentDragSource=function(c){var f=this,l=document.createElement("div");l.style.width="24px";l.style.height="24px";l.style.backgroundImage="url("+Editor.lightDarkCommentImage+")";l.style.backgroundSize="100% 100%";l.style.opacity="0.9";c=mxUtils.makeDraggable(c,function(){return f.editor.graph},function(x,A,E,J,Q){null!=f.currentPage&&null!=f.menus&&null!=f.menus.showCommentsWindow&&(x=null!=E?{p:f.currentPage.getId(),-c:E.id}:{p:f.currentPage.getId(),pt:{x:Math.round(J),y:Math.round(Q)}},f.menus.showCommentsWindow(null,x))},l);var q=c.mouseDown;c.mouseDown=function(x){mxEvent.isMouseEvent(x)&&!mxEvent.isPopupTrigger(x)&&f.commentsSupported()&&f.anchoredCommentsSupported()&&f.canComment()&&q.apply(this,arguments)};return c};EditorUi.prototype.updateCommentOverlays=function(){var c=this.editor.graph;if(null!=this.commentOverlays)for(var f=0;f<this.commentOverlays.length;f++)c.removeCellOverlay(this.commentOverlays[f].cell,-this.commentOverlays[f].overlay);this.commentOverlays=null;var l=this.getCurrentFile();if(null!=l&&l.anchoredCommentsSupported()&&null!=l.commentCache&&!this.editor.isChromelessView()){var q=null!=this.currentPage?this.currentPage.getId():null,x={};for(f=0;f<l.commentCache.length;f++){var A=l.commentCache[f],E=A.getAnchorCellIds();if(!A.isResolved&&null!=E&&A.getAnchorPageId()==q)for(A=0;A<E.length;A++)x[E[A]]=!0}this.commentOverlays=[];for(var J in x)mxUtils.bind(this,function(Q){var V=c.model.getCell(Q);-if(null!=V){var K=new mxCellOverlay(new mxImage(Editor.lightDarkCommentImage,16,16),mxResources.get("comments"),mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM,new mxPoint(8,8));K.isCommentOverlay=!0;K.cursor="pointer";K.addListener(mxEvent.CLICK,mxUtils.bind(this,function(){null!=this.menus&&null!=this.menus.showCommentsWindow&&this.menus.showCommentsWindow(Q)}));c.addCellOverlay(V,K);this.commentOverlays.push({cell:V,overlay:K})}})(J)}};EditorUi.prototype.newComment=function(c,f){var l=this.getCurrentFile();-return null!=l?l.newComment(c,f):new DrawioComment(this,null,c,Date.now(),Date.now(),!1,f)};EditorUi.prototype.isRevisionHistorySupported=function(){var c=this.getCurrentFile();return null!=c&&c.isRevisionHistorySupported()};EditorUi.prototype.getRevisions=function(c,f){var l=this.getCurrentFile();null!=l&&l.getRevisions?l.getRevisions(c,f):f({message:mxResources.get("unknownError")})};EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==-DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.vsdxExportEnabled=function(){return"atlassian"==this.getServiceName()};EditorUi.prototype.addRemoteServiceSecurityCheck=function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,f,l,q,x,A,E,J){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,f,l,q,x,A,E,J)};EditorUi.prototype.loadFonts=-function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,f)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(c)};-EditorUi.prototype.exportToCanvas=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,f,l,q){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(c,-f,l,q)};EditorUi.prototype.convertImageToDataUri=function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,f)};EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=function(c,f,l,q){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(c,f,l,q)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");-return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,f,l,q,x){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,f,l,q,x)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var c=[],f=0;f<localStorage.length;f++){var l=localStorage.key(f),q=localStorage.getItem(l);if(0<l.length&&(".scratchpad"==l||"."!=l.charAt(0))&&0<q.length){var x=-"<mxfile "===q.substring(0,8)||"<?xml"===q.substring(0,5)||"\x3c!--[if IE]>"===q.substring(0,12);q="<mxlibrary>"===q.substring(0,11);(x||q)&&c.push(l)}}return c};EditorUi.prototype.getLocalStorageFile=function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;var f=localStorage.getItem(c);return{title:c,data:f,isLib:"<mxlibrary>"===f.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();+if("xml"==l)c.hideDialog(),c.saveData(f,"xml",mxUtils.getXml(c.editor.getGraphXml()),"text/xml");else if("svg"==l)c.hideDialog(),c.saveData(f,"svg",mxUtils.getXml(Q.getSvg(q,x,A)),"image/svg+xml");else{var V=c.getFileData(!0,null,null,null,null,!0),K=Q.getGraphBounds(),fa=Math.floor(K.width*x/Q.view.scale),Y=Math.floor(K.height*x/Q.view.scale);if(V.length<=MAX_REQUEST_SIZE&&fa*Y<MAX_AREA)if(c.hideDialog(),"png"!=l&&"jpg"!=l&&"jpeg"!=l||!c.editor.isExportToCanvas())if(c.isRemoteExportEnabled()){var aa=+{globalVars:Q.getExportVariables()};J&&(aa.grid={size:Q.gridSize,steps:Q.view.gridSteps,color:Q.view.gridColor});c.saveRequest(f,l,function(ja,ka){return new mxXmlRequest(EXPORT_URL,"format="+l+"&base64="+(ka||"0")+(null!=ja?"&filename="+encodeURIComponent(ja):"")+"&extras="+encodeURIComponent(JSON.stringify(aa))+(0<E?"&dpi="+E:"")+"&bg="+(null!=q?q:"none")+"&w="+fa+"&h="+Y+"&border="+A+"&xml="+encodeURIComponent(V))})}else c.handleError({message:mxResources.get("notAvailable")});else"png"==l?c.exportImage(x,+null==q||"none"==q,!0,!1,!1,A,!0,!1,null,J,E):c.exportImage(x,!1,!0,!1,!1,A,!0,!1,"jpeg",J);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var c=this.editor.graph,f="";if(null!=this.pages)for(var l=0;l<this.pages.length;l++){var q=c;this.currentPage!=this.pages[l]&&(q=this.createTemporaryGraph(c.getStylesheet()),this.updatePageRoot(this.pages[l]),q.model.setRoot(this.pages[l].root));f+=this.pages[l].getName()++" "+q.getIndexableText()+" "}else f=c.getIndexableText();this.editor.graph.setEnabled(!0);return f};EditorUi.prototype.writeJsonLabel=function(c,f,l){if(null!=f&&""!=f){if(this.editor.graph.isHtmlLabel(c)&&(c=document.createElement("div"),c.innerHTML=Graph.sanitizeHtml(f),0<c.getElementsByTagName("*").length)){l.label=mxUtils.trim(mxUtils.extractTextWithWhitespace([c]));l.html=f;return}l.label=f}};EditorUi.prototype.getJsonForExportCell=function(c,f){var l={id:c.getId()};l.type=f?"layer":c.edge?"edge":+c.vertex?"node":"group";f||(f=c.getParent(),null!=f&&(l.parent=f.getId()));c.edge&&(null!=c.source&&(l.source=c.source.getId()),null!=c.target&&(l.target=c.target.getId()));f=c.value;if(null!=f&&mxUtils.isNode(f)){this.writeJsonLabel(c,f.getAttribute("label"),l);c=f.attributes;f={};for(var q=0,x=0;x<c.length;x++){var A=c[x].nodeName;"label"!=A&&"placeholders"!=A&&"id"!=A&&(f[A]=c[x].nodeValue,q++)}0<q&&(l.metadata=f)}else"string"===typeof f&&this.writeJsonLabel(c,f,l);return l};EditorUi.prototype.getJsonForPage=+function(c,f){var l=this.editor.graph.getModel();var q=null==c||c==this.currentPage?l.getRoot():this.updatePageRoot(c).root;var x=[],A=mxUtils.bind(this,function(K,fa){x.push(this.getJsonForExportCell(K,fa));fa=K.getChildCount();for(var Y=0;Y<fa;Y++)A(K.getChildAt(Y),!1)});if(null!=f){q={};for(var E=0;E<f.length;E++)q[f[E].getId()]=!0;for(E=0;E<f.length;E++){for(var J=f[E],Q=J.getParent(),V=!1;null!=Q;){if(q[Q.getId()]){V=!0;break}Q=Q.getParent()}V||A(J,l.isLayer(J))}}else for(f=q.getChildCount(),+E=0;E<f;E++)A(q.getChildAt(E),!0);E={};null!=c&&(E.id=c.getId(),E.name=c.getName());E.cells=x;return E};EditorUi.prototype.createJsonForExport=function(c,f,l,q){var x={version:EditorUi.VERSION};f&&(x.data=mxUtils.getXml(this.getXmlFileData(!q,!c,!l)));f=[];if(q)f.push(this.getJsonForPage(this.currentPage,this.editor.graph.getSelectionCells()));else if(c&&null!=this.pages)for(c=0;c<this.pages.length;c++)f.push(this.getJsonForPage(this.pages[c]));else f.push(this.getJsonForPage(this.currentPage));x.pages=+f;return x};EditorUi.prototype.showRemotelyStoredLibrary=function(c){var f={},l=document.createElement("div");l.style.whiteSpace="nowrap";var q=document.createElement("h3");mxUtils.write(q,mxUtils.htmlEntities(c));l.appendChild(q);var x=document.createElement("div");x.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";x.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var A={};try{var E=mxSettings.getCustomLibraries();for(c=0;c<+E.length;c++){var J=E[c];if("R"==J.substring(0,1)){var Q=JSON.parse(decodeURIComponent(J.substring(1)));A[Q[0]]={id:Q[0],title:Q[1],downloadUrl:Q[2]}}}}catch(V){}this.remoteInvoke("getCustomLibraries",null,null,function(V){x.innerText="";if(0==V.length)x.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var K=0;K<V.length;K++){var fa=V[K];A[fa.id]&&(f[fa.id]=fa);var Y=this.addCheckbox(x,fa.title,A[fa.id]);+(function(aa,ja){mxEvent.addListener(ja,"change",function(){this.checked?f[aa.id]=aa:delete f[aa.id]})})(fa,Y)}},mxUtils.bind(this,function(V){x.innerText="";var K=document.createElement("div");K.style.padding="8px";K.style.textAlign="center";mxUtils.write(K,mxResources.get("error")+": ");mxUtils.write(K,null!=V&&null!=V.message?V.message:mxResources.get("unknownError"));x.appendChild(K)}));l.appendChild(x);l=new CustomDialog(this,l,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));+var V=0,K;for(K in f)null==A[K]&&(V++,mxUtils.bind(this,function(fa){this.remoteInvoke("getFileContent",[fa.downloadUrl],null,mxUtils.bind(this,function(Y){V--;0==V&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,Y,fa)),this.showSidebar()}catch(aa){this.handleError(aa,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){V--;0==V&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(f[K]));for(K in A)f[K]||this.closeLibrary(new RemoteLibrary(this,+null,A[K]));0==V&&this.spinner.stop()}),null,null,"https://www.drawio.com/doc/faq/custom-libraries-confluence-cloud");this.showDialog(l.container,340,390,!0,!0,null,null,null,null,!0)};EditorUi.prototype.remoteInvokableFns={getDiagramTextContent:{isAsync:!1},getLocalStorageFile:{isAsync:!1,allowedDomains:["app.diagrams.net"]},getLocalStorageFileNames:{isAsync:!1,allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}};EditorUi.prototype.remoteInvokeCallbacks=+[];EditorUi.prototype.remoteInvokeQueue=[];EditorUi.prototype.handleRemoteInvokeReady=function(c){this.remoteWin=c;for(var f=0;f<this.remoteInvokeQueue.length;f++)c.postMessage(this.remoteInvokeQueue[f],"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var f=c.msgMarkers,l=null!=f?f.callbackId:null,q="number"===typeof l&&0<=l&&l<this.remoteInvokeCallbacks.length?this.remoteInvokeCallbacks[l]:null;if(null==q)throw Error("No callback for "+(null!=f?f.callbackId:+"null"));c.error?q.error&&q.error(c.error.errResp):q.callback&&q.callback.apply(this,c.resp);this.remoteInvokeCallbacks[l]=null};EditorUi.prototype.remoteInvoke=function(c,f,l,q,x){var A=!0,E=window.setTimeout(mxUtils.bind(this,function(){A=!1;x({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),J=mxUtils.bind(this,function(){window.clearTimeout(E);A&&q.apply(this,arguments)}),Q=mxUtils.bind(this,function(){window.clearTimeout(E);A&&x.apply(this,arguments)});l=l||{};l.callbackId=+this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:J,error:Q});c=JSON.stringify({event:"remoteInvoke",funtionName:c,functionArgs:f,msgMarkers:l});null!=this.remoteWin?this.remoteWin.postMessage(c,"*"):this.remoteInvokeQueue.push(c)};EditorUi.prototype.handleRemoteInvoke=function(c,f){var l=mxUtils.bind(this,function(V,K){var fa={event:"remoteInvokeResponse",msgMarkers:c.msgMarkers};null!=K?fa.error={errResp:K}:null!=V&&(fa.resp=V);this.remoteWin.postMessage(JSON.stringify(fa),+"*")});try{var q=c.funtionName,x=null!=q&&Object.prototype.hasOwnProperty.call(this.remoteInvokableFns,q)?this.remoteInvokableFns[q]:null;if(null!=x&&"function"===typeof this[q]){if(x.allowedDomains){for(var A=!1,E=0;E<x.allowedDomains.length;E++)if(f=="https://"+x.allowedDomains[E]){A=!0;break}if(!A){l(null,"Invalid Call: "+q+" is not allowed.");return}}var J=c.functionArgs;Array.isArray(J)||(J=[]);if(x.isAsync)J.push(function(){l(Array.prototype.slice.apply(arguments))}),J.push(function(V){l(null,+V||"Unkown Error")}),this[q].apply(this,J);else{var Q=this[q].apply(this,J);l([Q])}}else l(null,"Invalid Call: "+q+" is not found.")}catch(V){l(null,"Invalid Call: An error occurred, "+V.message)}};EditorUi.prototype.openDatabase=function(c,f){if(null==this.database){var l=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=l)try{var q=l.open("database",2);q.onupgradeneeded=function(x){try{var A=q.result;1>x.oldVersion&&A.createObjectStore("objects",{keyPath:"key"});2>x.oldVersion&&+(A.createObjectStore("files",{keyPath:"title"}),A.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(E){null!=f&&f(E)}};q.onsuccess=mxUtils.bind(this,function(x){try{var A=q.result;this.database=A;EditorUi.migrateStorageFiles&&(StorageFile.migrate(A),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(E){if((!E||+"1"==urlParams.forceMigration)&&"1"==urlParams.forceMigration){var J=document.createElement("iframe");J.style.display="none";J.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+urlParams.forceMigration);document.body.appendChild(J);var Q=!0,V=!1,K,fa=0,Y=mxUtils.bind(this,function(){V=!0;this.setDatabaseItem(".drawioMigrated3",!0);J.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),aa=mxUtils.bind(this,function(){fa++;+ja()}),ja=mxUtils.bind(this,function(){try{if(fa>=K.length)Y();else{var ua=K[fa];StorageFile.getFileContent(this,ua,mxUtils.bind(this,function(Ca){null==Ca||".scratchpad"==ua&&Ca==this.emptyLibraryXml?J.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",functionArgs:[ua]}),"*"):aa()}),aa)}}catch(Ca){console.log(Ca)}}),ka=mxUtils.bind(this,function(ua){try{this.setDatabaseItem(null,[{title:ua.title,size:ua.data.length,lastModified:Date.now(),type:ua.isLib?+"L":"F"},{title:ua.title,data:ua.data}],aa,aa,["filesInfo","files"])}catch(Ca){console.log(Ca)}});E=mxUtils.bind(this,function(ua){try{if(ua.source==J.contentWindow){var Ca={};try{Ca=JSON.parse(ua.data)}catch(ia){}"init"==Ca.event?(J.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),J.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=Ca.event||V||(Q?null!=Ca.resp&&0<Ca.resp.length&&null!=+Ca.resp[0]?(K=Ca.resp[0],Q=!1,ja()):Y():null!=Ca.resp&&0<Ca.resp.length&&null!=Ca.resp[0]?ka(Ca.resp[0]):aa())}}catch(ia){console.log(ia)}});window.addEventListener("message",E)}})));c(A);A.onversionchange=function(){A.close()}}catch(E){null!=f?f(E):null!=window.console&&console.warn(E)}});q.onerror=f;q.onblocked=function(){}}catch(x){null!=f?f(x):null!=window.console&&console.error(x)}else null!=f&&f(Error("IndexedDB not supported"))}else c(this.database)};EditorUi.prototype.setDatabaseItem=function(c,+f,l,q,x){this.openDatabase(mxUtils.bind(this,function(A){try{x=x||"objects";Array.isArray(x)||(x=[x],c=[c],f=[f]);var E=A.transaction(x,"readwrite");E.oncomplete=l;E.onerror=q;for(A=0;A<x.length;A++)E.objectStore(x[A]).put(null!=c&&null!=c[A]?{key:c[A],data:f[A]}:f[A])}catch(J){null!=q&&q(J)}}),q)};EditorUi.prototype.removeDatabaseItem=function(c,f,l,q){this.openDatabase(mxUtils.bind(this,function(x){try{q=q||"objects";Array.isArray(q)||(q=[q],c=[c]);var A=x.transaction(q,"readwrite");A.oncomplete=+f;A.onerror=l;for(x=0;x<q.length;x++)A.objectStore(q[x]).delete(c[x])}catch(E){null!=l&&l(E)}}),l)};EditorUi.prototype.getDatabaseItem=function(c,f,l,q){this.openDatabase(mxUtils.bind(this,function(x){try{q=q||"objects";var A=x.transaction([q],"readonly").objectStore(q).get(c);A.onsuccess=function(){f(A.result)};A.onerror=l}catch(E){null!=l&&l(E)}}),l)};EditorUi.prototype.getDatabaseItems=function(c,f,l){this.openDatabase(mxUtils.bind(this,function(q){try{l=l||"objects";var x=q.transaction([l],"readonly").objectStore(l).openCursor(IDBKeyRange.lowerBound(0)),+A=[];x.onsuccess=function(E){null==E.target.result?c(A):(A.push(E.target.result.value),E.target.result.continue())};x.onerror=f}catch(E){null!=f&&f(E)}}),f)};EditorUi.prototype.getDatabaseItemKeys=function(c,f,l){this.openDatabase(mxUtils.bind(this,function(q){try{l=l||"objects";var x=q.transaction([l],"readonly").objectStore(l).getAllKeys();x.onsuccess=function(){c(x.result)};x.onerror=f}catch(A){null!=f&&f(A)}}),f)};EditorUi.prototype.commentsSupported=function(){var c=this.getCurrentFile();return null!=+c?c.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(c,f){var l=this.getCurrentFile();null!=l?l.getComments(c,f):c([])};EditorUi.prototype.addComment=function(c,f,l){var q=this.getCurrentFile();null!=q?q.addComment(c,f,l):f(Date.now())};EditorUi.prototype.canReplyToReplies=+function(){var c=this.getCurrentFile();return null!=c?c.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.anchoredCommentsSupported=function(){var c=this.getCurrentFile();return null!=c?c.anchoredCommentsSupported():!1};EditorUi.prototype.mentionsSupported=function(){var c=this.getCurrentFile();return null!=c?c.mentionsSupported():!1};EditorUi.prototype.freeMentionsSupported=function(){var c=this.getCurrentFile();+return null!=c?c.freeMentionsSupported():!1};EditorUi.prototype.mentionsLiveSearch=function(){var c=this.getCurrentFile();return null!=c?c.mentionsLiveSearch():!1};EditorUi.prototype.mentionNotificationsSupported=function(){var c=this.getCurrentFile();return null!=c?c.mentionNotificationsSupported():!0};EditorUi.prototype.getMentionCandidates=function(c,f,l){var q=this.getCurrentFile();null!=q?q.getMentionCandidates(c,f,l):c([])};EditorUi.prototype.serializeMention=function(c){return"+"+c.email};+EditorUi.prototype.parseMentionTokens=function(c){for(var f=/[+@]([A-Za-z0-9.!#$%&'*/=?^_`{|}~+\-]+@[A-Za-z0-9.\-]+\.[A-Za-z]{2,})/g,l=[],q=0,x;null!=(x=f.exec(c));)x.index>q&&l.push(c.substring(q,x.index)),l.push({email:x[1]}),q=x.index+x[0].length;q<c.length&&l.push(c.substring(q));return l};EditorUi.prototype.getCommentCacheTarget=function(){var c=this.getCurrentFile();return null!=c?c:this};EditorUi.prototype.refreshCommentCache=function(c,f){if(this.commentsSupported()){var l=this.getCommentCacheTarget();+if(null!=l.commentCacheCallbacks)l.commentCacheCallbacks.push([c,f]);else{l.commentCacheCallbacks=[[c,f]];var q=mxUtils.bind(this,function(x,A){var E=l.commentCacheCallbacks;l.commentCacheCallbacks=null;for(var J=0;null!=E&&J<E.length;J++)if(null!=E[J][x])E[J][x](A)});this.getComments(mxUtils.bind(this,function(x){this.getCommentCacheTarget()==l&&(l.commentCache=x,this.fireEvent(new mxEventObject("commentsChanged")));q(0,x)}),mxUtils.bind(this,function(x){q(1,x)}))}}else null!=c&&c(null)};EditorUi.prototype.commentsUpdated=+function(){if(this.commentsSupported()){var c=this.getCurrentFile();null!=c&&null!=c.sync&&c.sync.sendCommentsChangedMessage();this.refreshCommentCache()}};EditorUi.prototype.getUnresolvedCommentCount=function(){var c=this.getCommentCacheTarget().commentCache,f=0;if(null!=c)for(var l=0;l<c.length;l++)c[l].isResolved||f++;return f};EditorUi.prototype.getCommentAnchorCells=function(c){var f=c.getAnchorCellIds(),l=[];if(null!=f&&0<f.length){c=c.getAnchorPageId();var q=null==c?this.currentPage:this.getPageById(c);+if(null!=q)if(q==this.currentPage)for(c=0;c<f.length;c++)q=this.editor.graph.model.getCell(f[c]),null!=q&&l.push(q);else{try{this.updatePageRoot(q)}catch(J){return l}if(null!=q.root){var x={},A=0;for(c=0;c<f.length;c++)x[f[c]]||(x[f[c]]=!0,A++);var E=function(J){if(0<A){x[J.getId()]&&(x[J.getId()]=!1,l.push(J),A--);for(var Q=0;Q<J.getChildCount();Q++)E(J.getChildAt(Q))}};E(q.root)}}}return l};EditorUi.prototype.gotoCommentAnchor=function(c){var f=c.getAnchorPageId();if(null!=f&&null!=this.currentPage&&+f!=this.currentPage.getId()){f=this.getPageById(f);if(null==f)return!1;this.selectPage(f)}f=this.editor.graph;var l=c.getAnchorCellIds();if(null!=l&&0<l.length){c=[];for(var q=0;q<l.length;q++){var x=f.model.getCell(l[q]);null!=x&&c.push(x)}return 0<c.length?(f.isEnabled()?f.setSelectionCells(c):f.highlightCells(c,"#0071e3",2E3),f.scrollCellToVisible(c[0]),!0):!1}l=c.getAnchorRect();null!=l&&0<l.w&&0<l.h&&f.fitWindow(new mxRectangle(l.x,l.y,l.w,l.h),0);c=c.getAnchorPoint();if(null!=c){l=f.view.scale;+q=f.view.translate;f=f.container;f.scrollLeft=Math.round((c.x+q.x)*l-f.clientWidth/2);f.scrollTop=Math.round((c.y+q.y)*l-f.clientHeight/2);var A=document.createElement("div");A.className="geCommentAnchorMarker";A.style.left=Math.round((c.x+q.x)*l)+"px";A.style.top=Math.round((c.y+q.y)*l)+"px";f.appendChild(A);window.setTimeout(function(){null!=A.parentNode&&A.parentNode.removeChild(A)},2E3)}return!0};EditorUi.prototype.addCommentsBadge=function(c){var f=document.createElement("span");f.className=+"geCommentsBadge";f.style.display="none";c.appendChild(f);c=mxUtils.bind(this,function(){var l=this.getUnresolvedCommentCount();f.style.display=0<l?"":"none";f.innerText="";mxUtils.write(f,99<l?"99+":String(l))});this.addListener("commentsChanged",c);this.editor.addListener("fileLoaded",c);c();return f};EditorUi.prototype.installCommentDragSource=function(c){var f=this,l=document.createElement("div");l.style.width="24px";l.style.height="24px";l.style.backgroundImage="url("+Editor.lightDarkCommentImage++")";l.style.backgroundSize="100% 100%";l.style.opacity="0.9";c=mxUtils.makeDraggable(c,function(){return f.editor.graph},function(x,A,E,J,Q){null!=f.currentPage&&null!=f.menus&&null!=f.menus.showCommentsWindow&&(x=null!=E?{p:f.currentPage.getId(),c:E.id}:{p:f.currentPage.getId(),pt:{x:Math.round(J),y:Math.round(Q)}},f.menus.showCommentsWindow(null,x))},l);var q=c.mouseDown;c.mouseDown=function(x){mxEvent.isMouseEvent(x)&&!mxEvent.isPopupTrigger(x)&&f.commentsSupported()&&f.anchoredCommentsSupported()&&+f.canComment()&&q.apply(this,arguments)};return c};EditorUi.prototype.updateCommentOverlays=function(){var c=this.editor.graph;if(null!=this.commentOverlays)for(var f=0;f<this.commentOverlays.length;f++)c.removeCellOverlay(this.commentOverlays[f].cell,this.commentOverlays[f].overlay);this.commentOverlays=null;var l=this.getCurrentFile();if(null!=l&&l.anchoredCommentsSupported()&&null!=l.commentCache&&!this.editor.isChromelessView()){var q=null!=this.currentPage?this.currentPage.getId():null,x={};+for(f=0;f<l.commentCache.length;f++){var A=l.commentCache[f],E=A.getAnchorCellIds();if(!A.isResolved&&null!=E&&A.getAnchorPageId()==q)for(A=0;A<E.length;A++)x[E[A]]=!0}this.commentOverlays=[];for(var J in x)mxUtils.bind(this,function(Q){var V=c.model.getCell(Q);if(null!=V){var K=new mxCellOverlay(new mxImage(Editor.lightDarkCommentImage,16,16),mxResources.get("comments"),mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM,new mxPoint(8,8));K.isCommentOverlay=!0;K.cursor="pointer";K.addListener(mxEvent.CLICK,+mxUtils.bind(this,function(){null!=this.menus&&null!=this.menus.showCommentsWindow&&this.menus.showCommentsWindow(Q)}));c.addCellOverlay(V,K);this.commentOverlays.push({cell:V,overlay:K})}})(J)}};EditorUi.prototype.newComment=function(c,f){var l=this.getCurrentFile();return null!=l?l.newComment(c,f):new DrawioComment(this,null,c,Date.now(),Date.now(),!1,f)};EditorUi.prototype.isRevisionHistorySupported=function(){var c=this.getCurrentFile();return null!=c&&c.isRevisionHistorySupported()};EditorUi.prototype.getRevisions=+function(c,f){var l=this.getCurrentFile();null!=l&&l.getRevisions?l.getRevisions(c,f):f({message:mxResources.get("unknownError")})};EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.vsdxExportEnabled=function(){return"atlassian"==this.getServiceName()};EditorUi.prototype.addRemoteServiceSecurityCheck=+function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,f,l,q,x,A,E,J){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,f,l,q,x,A,E,J)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=+function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,f)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka)};EditorUi.prototype.createImageUrlConverter=+function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,f,l,q){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(c,f,l,q)};EditorUi.prototype.convertImageToDataUri=function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,f)};EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");+return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=function(c,f,l,q){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(c,f,l,q)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,f,l,q,x){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,f,l,q,x)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==+localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var c=[],f=0;f<localStorage.length;f++){var l=localStorage.key(f),q=localStorage.getItem(l);if(0<l.length&&(".scratchpad"==l||"."!=l.charAt(0))&&0<q.length){var x="<mxfile "===q.substring(0,8)||"<?xml"===q.substring(0,5)||"\x3c!--[if IE]>"===q.substring(0,12);q="<mxlibrary>"===q.substring(0,11);(x||q)&&c.push(l)}}return c};EditorUi.prototype.getLocalStorageFile=function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&+"1"!=urlParams.forceMigration)return null;var f=localStorage.getItem(c);return{title:c,data:f,isLib:"<mxlibrary>"===f.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();var CommentsWindow=function(b,d,m,p,t,n){function y(){for(var na=T.getElementsByTagName("div"),ra=0,va=0;va<na.length;va++)"none"!=na[va].style.display&&na[va].parentNode==T&&ra++;W.style.display=0==ra?"block":"none"}function D(na){for(var ra=0;ra<ia.length;ra++)if(null!=ia[ra].email&&null!=na&&ia[ra].email.toLowerCase()==na.toLowerCase())return ia[ra].displayName||na;return na}function O(na){var ra=document.createElement("span");ra.className="geCommentMention";ra.setAttribute("data-mention",b.serializeMention(na));null!=na.email&&ra.setAttribute("data-email",na.email);ra.contentEditable="false";mxUtils.write(ra,"@"+(na.displayName||(null!=na.email?D(na.email):na.id)));return ra}function F(na,ra){na.innerText="";ra=null!=ra?ra:"";if(aa){ra=b.parseMentionTokens(ra);for(var va=0;va<ra.length;va++)"string"===typeof ra[va]?mxUtils.write(na,ra[va]):na.appendChild(O(ra[va]))}else mxUtils.write(na,ra)}function N(na,ra,va,Ha){function La(Za){for(var eb in ab)for(var lb=0;lb<ab[eb].length;lb++)Za(ab[eb][lb],"down"==eb?Ea:"move"==eb?$a:cb)}function Ga(Za){Za=mxUtils.convertPoint(Na,mxEvent.getClientX(Za),mxEvent.getClientY(Za));return new mxPoint(Za.x/Ka.view.scale-Ka.view.translate.x,Za.y/Ka.view.scale-Ka.view.translate.y)}function Da(){La(function(Za,eb){document.removeEventListener(Za,eb,!0)});document.removeEventListener("keydown",db,!0);window.setTimeout(function(){document.removeEventListener("click",Va,!0)},0);Na.classList.remove("geCommentAnchorPicking");Ka.setEnabled(Oa);null!=Fa&&null!=Fa.parentNode&&@@ -4895,9 +4898,9 @@ Ia.className="geCommentMentionImg",Ia.innerHTML='<svg viewBox="0 0 16 16" width=Editor.userImage);Sa.appendChild(Ia);Ia=document.createElement("span");mxUtils.write(Ia,Ja.displayName||Ja.email);Sa.appendChild(Ia);Ja.isGroup&&(Ia=document.createElement("span"),Ia.className="geCommentMentionGroupTag",mxUtils.write(Ia,mxResources.get("group")),Sa.appendChild(Ia));null!=Ja.displayName&&null!=Ja.email&&(Ia=document.createElement("span"),Ia.className="geCommentMentionMail",mxUtils.write(Ia,Ja.email),Sa.appendChild(Ia));mxEvent.addListener(Sa,"mousedown",function(ab){Ha(Ja);ab.preventDefault();mxEvent.consume(ab)});Da.appendChild(Sa)})(Ka[Aa],Aa)}var Da=null,Qa=0,Ka=[],Na=null,Oa=null,Fa=null;mxEvent.addListener(na,"keydown",function(Aa){null==Da||mxEvent.isConsumed(Aa)||(40==Aa.keyCode||38==Aa.keyCode?(Qa=(Qa+(40==Aa.keyCode?1:Ka.length-1))%Ka.length,La(),Aa.preventDefault(),mxEvent.consume(Aa)):13!=Aa.keyCode&&9!=Aa.keyCode||mxEvent.isControlDown(Aa)||mxEvent.isMetaDown(Aa)?27==Aa.keyCode&&(ra(),Aa.preventDefault(),mxEvent.consume(Aa)):(Ha(Ka[Qa]),Aa.preventDefault(),mxEvent.consume(Aa)))});mxEvent.addListener(na,"input",La);mxEvent.addListener(na,"keyup",function(Aa){37!=Aa.keyCode&&39!=Aa.keyCode&&35!=Aa.keyCode&&36!=Aa.keyCode||La()});mxEvent.addListener(na,"blur",function(){window.setTimeout(ra,200)});mxEvent.addListener(na,"paste",function(Aa){Aa.preventDefault();Aa=null!=Aa.clipboardData?Aa.clipboardData.getData("text/plain"):null;null!=Aa&&0<Aa.length&&document.execCommand("insertText",!1,Aa)})}function x(na,ra){if(aa){var va=document.createElement("div");va.contentEditable=!0;-F(va,na);q(va)}else va=document.createElement("textarea"),va.value=na;va.className="geCommentEditTxtArea";va.style.minHeight=ra+"px";return va}function A(na,ra,va,Ha){function La(){ra.removeChild(Na);ra.removeChild(Fa);Da.style.display="block";Ga.style.display="block"}v={div:ra,comment:na,saveCallback:va,deleteOnCancel:Ha};for(var Ga=ra.querySelector(".geCommentTxt"),Da=ra.querySelector(".geCommentActionsList"),Qa=ra.querySelectorAll(".geCommentEditTxtArea, .geCommentEditBtns, .geCommentAnchorRowEdit"),-Ka=0;Ka<Qa.length;Ka++)Qa[Ka].parentNode==ra&&ra.removeChild(Qa[Ka]);var Na=x(na.content,Ga.offsetHeight);ra.insertBefore(Na,Ga);var Oa=null;Ca&&null==na.id&&null==na.pCommentId&&(Oa=document.createElement("div"),Oa.className="geCommentAnchorRow geCommentAnchorRowEdit",f(na,Oa,!0),ra.insertBefore(Oa,Ga));var Fa=document.createElement("div");Fa.className="geCommentEditBtns";var Aa=mxUtils.button(mxResources.get("cancel"),function(){Ha?(ra.parentNode.removeChild(ra),y()):La();v=null});Aa.className=-"geCommentEditBtn";Fa.appendChild(Aa);var Ja=mxUtils.button(mxResources.get("save"),function(){na.content=l(Na);F(Ga,na.content);La();null!=Oa&&f(na,Oa,!1);va(na);v=null});mxEvent.addListener(Na,"keydown",mxUtils.bind(this,function(Ia){mxEvent.isConsumed(Ia)||((mxEvent.isControlDown(Ia)||mxClient.IS_MAC&&mxEvent.isMetaDown(Ia))&&13==Ia.keyCode?(Ja.click(),mxEvent.consume(Ia)):27==Ia.keyCode&&(Aa.click(),mxEvent.consume(Ia)))}));Ja.focus();Ja.className="geCommentEditBtn gePrimaryBtn";Fa.appendChild(Ja);+F(va,na);q(va)}else va=document.createElement("textarea"),va.value=na;va.className="geCommentEditTxtArea";va.style.minHeight=ra+"px";return va}function A(na,ra,va,Ha){function La(){ra.removeChild(Na);ra.removeChild(Fa);Da.style.display="block";Ga.style.display="block"}u={div:ra,comment:na,saveCallback:va,deleteOnCancel:Ha};for(var Ga=ra.querySelector(".geCommentTxt"),Da=ra.querySelector(".geCommentActionsList"),Qa=ra.querySelectorAll(".geCommentEditTxtArea, .geCommentEditBtns, .geCommentAnchorRowEdit"),+Ka=0;Ka<Qa.length;Ka++)Qa[Ka].parentNode==ra&&ra.removeChild(Qa[Ka]);var Na=x(na.content,Ga.offsetHeight);ra.insertBefore(Na,Ga);var Oa=null;Ca&&null==na.id&&null==na.pCommentId&&(Oa=document.createElement("div"),Oa.className="geCommentAnchorRow geCommentAnchorRowEdit",f(na,Oa,!0),ra.insertBefore(Oa,Ga));var Fa=document.createElement("div");Fa.className="geCommentEditBtns";var Aa=mxUtils.button(mxResources.get("cancel"),function(){Ha?(ra.parentNode.removeChild(ra),y()):La();u=null});Aa.className=+"geCommentEditBtn";Fa.appendChild(Aa);var Ja=mxUtils.button(mxResources.get("save"),function(){na.content=l(Na);F(Ga,na.content);La();null!=Oa&&f(na,Oa,!1);va(na);u=null});mxEvent.addListener(Na,"keydown",mxUtils.bind(this,function(Ia){mxEvent.isConsumed(Ia)||((mxEvent.isControlDown(Ia)||mxClient.IS_MAC&&mxEvent.isMetaDown(Ia))&&13==Ia.keyCode?(Ja.click(),mxEvent.consume(Ia)):27==Ia.keyCode&&(Aa.click(),mxEvent.consume(Ia)))}));Ja.focus();Ja.className="geCommentEditBtn gePrimaryBtn";Fa.appendChild(Ja);ra.insertBefore(Fa,Ga);Da.style.display="none";Ga.style.display="none";Na.focus()}function E(na,ra){ra.innerText="";na=new Date(na.modifiedDate);var va=b.timeSince(na);null==va&&(va=mxResources.get("lessThanAMinute"));mxUtils.write(ra,mxResources.get("timeAgo",[va],"{1} ago"));ra.setAttribute("title",na.toLocaleDateString()+" "+na.toLocaleTimeString())}function J(na){var ra=document.createElement("img");ra.className="geCommentBusyImg";ra.src=IMAGE_PATH+"/spin.gif";na.appendChild(ra);na.busyImg=ra}function Q(na){na.style.border="1px solid red";na.busyImg.parentNode==na&&na.removeChild(na.busyImg)}function V(na){na.style.border="";na.busyImg.parentNode==na&&na.removeChild(na.busyImg)}function K(na,ra,va,Ha,La){function Ga(Ja,Ia,Sa){var ab=document.createElement("li");ab.className="geCommentAction";var Va=document.createElement("a");Va.className="geCommentActionLnk";mxUtils.write(Va,Ja);ab.appendChild(Va);mxEvent.addListener(Va,"click",function(db){Ia(db,na);db.preventDefault();mxEvent.consume(db)});Aa.appendChild(ab);Sa&&(ab.style.display="none")}function Da(){function Ja(ab){Ia.push(Sa);if(null!=ab.replies)for(var Va=0;Va<ab.replies.length;Va++)Sa=Sa.nextSibling,Ja(ab.replies[Va])}var Ia=[],Sa=Ka;Ja(na);return{pdiv:Sa,replies:Ia}}function Qa(Ja,Ia,Sa,ab,Va){function db(){J(Za);na.addReply(cb,function(eb){cb.id=eb;na.replies.push(cb);V(Za);Sa&&Sa();b.commentsUpdated()},function(eb){Ea();Q(Za);b.handleError(eb,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},ab,Va)}function Ea(){A(cb,@@ -4908,16 +4911,16 @@ var Aa=document.createElement("ul");Aa.className="geCommentActionsList";Na.appenJa()},na.isResolved),Ga(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){J(Ka);na.deleteComment(function(Ja){if(!0===Ja){Ja=Ka.querySelector(".geCommentTxt");Ja.innerText="";mxUtils.write(Ja,mxResources.get("msgDeleted"));var Ia=Ka.querySelectorAll(".geCommentAction");for(Ja=0;Ja<Ia.length;Ja++)Ia[Ja].parentNode.removeChild(Ia[Ja]);V(Ka);Ka.style.opacity="0.5"}else{Ia=Da(na).replies;for(Ja=0;Ja<Ia.length;Ja++)T.removeChild(Ia[Ja]);for(Ja=0;Ja<ra.length;Ja++)if(ra[Ja]==na){ra.splice(Ja,1);break}W.style.display=0==T.getElementsByTagName("div").length?"block":"none"}b.commentsUpdated()},function(Ja){Q(Ka);b.handleError(Ja,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},na.isResolved));fa||na.isLocked||0!=Ha||Ga(na.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(Ja){function Ia(){var Sa=Ja.target;Sa.innerText="";na.isResolved=!na.isResolved;mxUtils.write(Sa,na.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var ab=na.isResolved?"none":"",Va=Da(na).replies,db="light-dark("+(na.isResolved?"ghostWhite":"white")+", transparent)",Ea=0;Ea<Va.length;Ea++){Va[Ea].style.backgroundColor=db;for(var $a=Va[Ea].querySelectorAll(".geCommentAction"),cb=0;cb<$a.length;cb++)$a[cb]!=Sa.parentNode&&($a[cb].style.display=ab);la||(Va[Ea].style.display="none")}y()}na.isResolved?Qa(mxResources.get("reOpened")+": ",!0,Ia,!1,!0):Qa(mxResources.get("markedAsResolved"),!1,Ia,!0)});Ka.appendChild(Na);null!=va?T.insertBefore(Ka,-va.nextSibling):T.appendChild(Ka);for(va=0;null!=na.replies&&va<na.replies.length;va++)Na=na.replies[va],Na.isResolved=na.isResolved,K(Na,na.replies,null,Ha+1,La);null!=v&&(v.comment.id==na.id?(La=na.content,na.content=v.comment.content,A(na,Ka,v.saveCallback,v.deleteOnCancel),na.content=La):null==v.comment.id&&v.comment.pCommentId==na.id&&(T.appendChild(v.div),A(v.comment,v.div,v.saveCallback,v.deleteOnCancel)));return Ka}}var fa=!b.canComment(),Y=b.canReplyToReplies(),aa=b.mentionsSupported(),ja=-aa&&b.mentionsLiveSearch(),ka=aa&&b.freeMentionsSupported(),ua=!aa||b.mentionNotificationsSupported(),Ca=b.anchoredCommentsSupported(),ia=[],k=null,v=null,H=document.createElement("div");H.className="geCommentsWin";var P=EditorUi.compactUi?"26px":"30px",T=document.createElement("div");T.className="geCommentsList";T.style.bottom=parseInt(P)+7+"px";H.appendChild(T);var W=document.createElement("span");W.style.cssText="display:none;padding-top:10px;text-align:center;";mxUtils.write(W,mxResources.get("noCommentsFound"));+va.nextSibling):T.appendChild(Ka);for(va=0;null!=na.replies&&va<na.replies.length;va++)Na=na.replies[va],Na.isResolved=na.isResolved,K(Na,na.replies,null,Ha+1,La);null!=u&&(u.comment.id==na.id?(La=na.content,na.content=u.comment.content,A(na,Ka,u.saveCallback,u.deleteOnCancel),na.content=La):null==u.comment.id&&u.comment.pCommentId==na.id&&(T.appendChild(u.div),A(u.comment,u.div,u.saveCallback,u.deleteOnCancel)));return Ka}}var fa=!b.canComment(),Y=b.canReplyToReplies(),aa=b.mentionsSupported(),ja=+aa&&b.mentionsLiveSearch(),ka=aa&&b.freeMentionsSupported(),ua=!aa||b.mentionNotificationsSupported(),Ca=b.anchoredCommentsSupported(),ia=[],k=null,u=null,H=document.createElement("div");H.className="geCommentsWin";var P=EditorUi.compactUi?"26px":"30px",T=document.createElement("div");T.className="geCommentsList";T.style.bottom=parseInt(P)+7+"px";H.appendChild(T);var W=document.createElement("span");W.style.cssText="display:none;padding-top:10px;text-align:center;";mxUtils.write(W,mxResources.get("noCommentsFound"));var ha=document.createElement("div");ha.className="geToolbarContainer geCommentsToolbar";ha.style.height=P;ha.style.padding="3px 4px 4px 4px";P=document.createElement("a");P.className="geButton";aa&&!ja&&b.getMentionCandidates(function(na){ia=na;na=T.querySelectorAll(".geCommentMention[data-email]");for(var ra=0;ra<na.length;ra++)na[ra].innerText="",mxUtils.write(na[ra],"@"+D(na[ra].getAttribute("data-email")))},function(){});var X=mxUtils.bind(this,function(na){function ra(){A(va,Ha,function(La){J(Ha);b.addComment(La,function(Ga){La.id=Ga;ca.push(La);V(Ha);b.commentsUpdated()},function(Ga){Q(Ha);ra();b.handleError(Ga,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},!0)}if(!fa){var va=b.newComment("",b.getCurrentUser());va.anchor=null!=na?na:null;var Ha=K(va,ca,null,0);ra()}});this.startNewComment=X;if(!fa){var ea=P.cloneNode();ea.style.backgroundImage="url("+Editor.plusImage+")";ea.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(ea,"click",function(na){X();na.preventDefault();mxEvent.consume(na)});ha.appendChild(ea)}var oa=P.cloneNode();oa.style.backgroundImage="url("+Editor.checkImage+")";oa.setAttribute("title",mxResources.get("showResolved"));var la=!1;mxEvent.addListener(oa,"click",function(na){(la=!la)?oa.classList.add("geActiveItem"):oa.classList.remove("geActiveItem");qa();na.preventDefault();mxEvent.consume(na)});ha.appendChild(oa);b.commentsRefreshNeeded()&&(ea=P.cloneNode(),ea.style.backgroundImage="url("+Editor.refreshImage+")",ea.setAttribute("title",mxResources.get("refresh")),mxEvent.addListener(ea,"click",function(na){qa();na.preventDefault();mxEvent.consume(na)}),ha.appendChild(ea));b.commentsSaveNeeded()&&(P=P.cloneNode(),P.innerHTML='<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',P.setAttribute("title",mxResources.get("save")),P.className="geButton geAdaptiveAsset",mxEvent.addListener(P,"click",function(na){n();na.preventDefault();mxEvent.consume(na)}),ha.appendChild(P));H.appendChild(ha);var ca=[],ta=function(na){if(null!=k){for(var ra=T.childNodes,va=0;va<ra.length;va++)if(null!=ra[va].getAttribute&&null!=ra[va].getAttribute("data-anchor-cell")&&0<=mxUtils.indexOf(ra[va].getAttribute("data-anchor-cell").split(","),k)){T.scrollTop=ra[va].offsetTop-T.offsetTop;k=null;break}na&&(k=null)}};this.scrollToCell=function(na){k=na;ta(!1)};var xa=mxUtils.bind(this,function(na){function ra(Ha){if(null!=Ha){Ha.sort(function(Ga,Da){return new Date(Ga.modifiedDate)-new Date(Da.modifiedDate)});for(var La=0;La<Ha.length;La++)ra(Ha[La].replies)}}-na.sort(function(Ha,La){return new Date(Ha.modifiedDate)-new Date(La.modifiedDate)});if(null!=v){var va=v.div.querySelector(".geCommentEditTxtArea");null!=va&&(v.comment.content=l(va))}va=T.scrollTop;T.innerText="";T.appendChild(W);W.style.display="block";ca=na;for(na=0;na<ca.length;na++)ra(ca[na].replies),K(ca[na],ca,null,0,la);null!=v&&null==v.comment.id&&null==v.comment.pCommentId&&(T.appendChild(v.div),A(v.comment,v.div,v.saveCallback,v.deleteOnCancel));T.scrollTop=va;ta(!0)}),qa=mxUtils.bind(this,-function(){this.hasError=!1;if(null!=v)try{v.div=v.div.cloneNode(!0);var na=v.div.querySelector(".geCommentEditTxtArea"),ra=v.div.querySelector(".geCommentEditBtns");v.comment.content=l(na);na.parentNode.removeChild(na);ra.parentNode.removeChild(ra)}catch(va){b.handleError(va)}Y=b.canReplyToReplies();b.commentsSupported()?(null!=b.getCommentCacheTarget().commentCache?null==v&&xa(b.getCommentCacheTarget().commentCache):T.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+-'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>",b.refreshCommentCache(mxUtils.bind(this,function(va){null!=va&&null!=v&&xa(va)}),mxUtils.bind(this,function(va){null==b.getCommentCacheTarget().commentCache&&(T.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(va&&va.message?": "+va.message:"")),this.hasError=!0)}))):T.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))}),Ba=mxUtils.bind(this,function(){if(null==v){var na=b.getCommentCacheTarget().commentCache;+na.sort(function(Ha,La){return new Date(Ha.modifiedDate)-new Date(La.modifiedDate)});if(null!=u){var va=u.div.querySelector(".geCommentEditTxtArea");null!=va&&(u.comment.content=l(va))}va=T.scrollTop;T.innerText="";T.appendChild(W);W.style.display="block";ca=na;for(na=0;na<ca.length;na++)ra(ca[na].replies),K(ca[na],ca,null,0,la);null!=u&&null==u.comment.id&&null==u.comment.pCommentId&&(T.appendChild(u.div),A(u.comment,u.div,u.saveCallback,u.deleteOnCancel));T.scrollTop=va;ta(!0)}),qa=mxUtils.bind(this,+function(){this.hasError=!1;if(null!=u)try{u.div=u.div.cloneNode(!0);var na=u.div.querySelector(".geCommentEditTxtArea"),ra=u.div.querySelector(".geCommentEditBtns");u.comment.content=l(na);na.parentNode.removeChild(na);ra.parentNode.removeChild(ra)}catch(va){b.handleError(va)}Y=b.canReplyToReplies();b.commentsSupported()?(null!=b.getCommentCacheTarget().commentCache?null==u&&xa(b.getCommentCacheTarget().commentCache):T.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH++'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>",b.refreshCommentCache(mxUtils.bind(this,function(va){null!=va&&null!=u&&xa(va)}),mxUtils.bind(this,function(va){null==b.getCommentCacheTarget().commentCache&&(T.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(va&&va.message?": "+va.message:"")),this.hasError=!0)}))):T.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))}),Ba=mxUtils.bind(this,function(){if(null==u){var na=b.getCommentCacheTarget().commentCache;null!=na&&(this.hasError=!1,xa(na))}});b.addListener("commentsChanged",Ba);qa();this.refreshComments=qa;ha=mxUtils.bind(this,function(){function na(Ga){var Da=va[Ga.id];if(null!=Da)for(E(Ga,Da),Da=0;null!=Ga.replies&&Da<Ga.replies.length;Da++)na(Ga.replies[Da])}if(this.window.isVisible()){for(var ra=T.querySelectorAll(".geCommentDate"),va={},Ha=0;Ha<ra.length;Ha++){var La=ra[Ha];va[La.getAttribute("data-commentId")]=La}for(Ha=0;Ha<ca.length;Ha++)na(ca[Ha])}});setInterval(ha,6E4);this.refreshCommentsTime=ha;this.window=new mxWindow(mxResources.get("comments"),H,d,m,p,t,!0,!0);this.window.minimumSize=new mxRectangle(0,0,260,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!0,function(){b.removeListener(Ba)})},ConfirmDialog=function(b,d,m,p,t,n,y,D,O,F,N){var R=document.createElement("div");R.style.textAlign="center";N=null!=N?N:44;var c=document.createElement("div");c.style.padding="6px";c.style.overflow="auto";c.style.maxHeight=N+"px";c.style.lineHeight="1.2em";mxUtils.write(c,d);R.appendChild(c);null!=F&&(c=document.createElement("div"),c.style.padding="6px 0 6px 0",d=document.createElement("img"),d.setAttribute("src",F),c.appendChild(d),R.appendChild(c));F=document.createElement("div");F.style.textAlign="center";F.style.whiteSpace="nowrap";var f=document.createElement("input");f.setAttribute("type",@@ -5002,36 +5005,36 @@ this.setCurrentMenu(F,d)}mxEvent.consume(O)});mxEvent.addGestureListeners(p,y,nuEditorUi.prototype.createPageMenu=function(b,d){return mxUtils.bind(this,function(m,p){1!=urlParams.embed&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=this.getServiceName()||navigator.standalone||m.addItem(mxResources.get("openInNewWindow"),null,mxUtils.bind(this,function(){this.editor.editAsNew(this.getFileData(!0,null,null,null,!0,!0))}),p));this.editor.graph.isEnabled()&&(this.menus.addMenuItems(m,["duplicatePage","-"],p),this.currentPage==b&&1<this.pages.length&&this.menus.addSubmenu("movePage",m,p,mxResources.get("move")),this.menus.addMenuItems(m,["removePage","renamePage"],p))})};(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(p,t,n,y,D){t=null!=t?t:!1;null==n&&(n=this.getFoldableCells(this.getSelectionCells(),p));this.stopEditing();this.model.beginUpdate();try{for(var O=n.slice(),F=0;F<n.length;F++)"1"==mxUtils.getValue(this.getCurrentCellStyle(n[F]),"treeFolding","0")&&this.foldTreeCell(p,n[F]);n=O;n=b.apply(this,arguments)}finally{this.model.endUpdate()}return n};Graph.prototype.foldTreeCell=function(p,t){this.model.beginUpdate();try{var n=[];this.traverse(t,!0,mxUtils.bind(this,function(D,O){var F=null!=O&&this.isTreeEdge(O);F&&n.push(O);D==t||null!=O&&!F||n.push(D);return(null==O||F)&&(D==t||!this.model.isCollapsed(D))}));this.model.setCollapsed(t,p);for(var y=0;y<n.length;y++)this.model.setVisible(n[y],!p)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(p){return!this.isEdgeIgnored(p)};Graph.prototype.getTreeEdges=function(p,t,n,y,D,O){return this.model.filterCells(this.getEdges(p,t,n,y,D,O),mxUtils.bind(this,-function(F){return this.isTreeEdge(F)}))};Graph.prototype.getIncomingTreeEdges=function(p,t){return this.getTreeEdges(p,t,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(p,t){return this.getTreeEdges(p,t,!1,!0,!1)};var d=EditorUi.prototype.init;EditorUi.prototype.init=function(){d.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function p(k){return J.isVertex(k)&&n(k)}function t(k){var v=!1;null!=k&&(v="1"==-E.getCurrentCellStyle(k).treeMoving);return v}function n(k){var v=!1;null!=k&&(k=J.getParent(k),v=E.view.getState(k),v="tree"==(null!=v?v.style:E.getCellStyle(k)).containerType);return v}function y(k){for(;null!=k&&!n(k);)k=J.getParent(k);return null!=k?J.getParent(k):null}function D(k){var v=!1;null!=k&&(k=J.getParent(k),v=E.view.getState(k),E.view.getState(k),v=null!=(null!=v?v.style:E.getCellStyle(k)).childLayout);return v}function O(k,v){function H(la,ca){null!=la&&(T.cut.get(la)||(T.cut.put(la,+function(F){return this.isTreeEdge(F)}))};Graph.prototype.getIncomingTreeEdges=function(p,t){return this.getTreeEdges(p,t,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(p,t){return this.getTreeEdges(p,t,!1,!0,!1)};var d=EditorUi.prototype.init;EditorUi.prototype.init=function(){d.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function p(k){return J.isVertex(k)&&n(k)}function t(k){var u=!1;null!=k&&(u="1"==+E.getCurrentCellStyle(k).treeMoving);return u}function n(k){var u=!1;null!=k&&(k=J.getParent(k),u=E.view.getState(k),u="tree"==(null!=u?u.style:E.getCellStyle(k)).containerType);return u}function y(k){for(;null!=k&&!n(k);)k=J.getParent(k);return null!=k?J.getParent(k):null}function D(k){var u=!1;null!=k&&(k=J.getParent(k),u=E.view.getState(k),E.view.getState(k),u=null!=(null!=u?u.style:E.getCellStyle(k)).childLayout);return u}function O(k,u){function H(la,ca){null!=la&&(T.cut.get(la)||(T.cut.put(la,!0),T.cells.push(la)),ca&&!W.get(la)&&(W.put(la,!0),ha.push(la)))}function P(la){if(!T.deleted.get(la)){T.deleted.put(la,!0);T.cells.push(la);la=E.getAllEdges([la]);for(var ca=0;ca<la.length;ca++)H(la[ca],!0)}}for(var T={cells:[],deleted:new mxDictionary,cut:new mxDictionary,cascaded:[]},W=new mxDictionary,ha=[],X=0;X<k.length;X++){var ea=k[X];J.isEdge(ea)?H(ea,!1):J.isVertex(ea)&&null!=y(ea)?P(ea):null!=ea&&T.cells.push(ea)}for(;0<ha.length;)if(k=J.getTerminal(ha.shift(),!1),null!=k&&!T.deleted.get(k)&&-J.isVertex(k)&&(X=y(k),null!=X&&(null==v||!v.get(X)))){X=E.getIncomingTreeEdges(k);ea=!0;for(var oa=0;oa<X.length;oa++)if(!T.cut.get(X[oa])){ea=!1;break}ea&&(T.cascaded.push(k),P(k))}return T}function F(k){k=E.view.getState(k);if(null!=k){var v=E.getIncomingTreeEdges(k.cell);if(0<v.length&&(v=E.view.getState(v[0]),null!=v&&(v=v.absolutePoints,null!=v&&0<v.length&&(v=v[v.length-1],null!=v)))){if(v.y==k.y&&Math.abs(v.x-k.getCenterX())<k.width/2)return mxConstants.DIRECTION_SOUTH;if(v.y==k.y+k.height&&-Math.abs(v.x-k.getCenterX())<k.width/2)return mxConstants.DIRECTION_NORTH;if(v.x>k.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function N(k,v,H){if(null!=H){for(var P=E.getCurrentCellStyle(v),T=["treeFolding","treeMoving","newEdgeStyle"],W=0;W<T.length;W++)null!=P[T[W]]&&(null==H.style||0>H.style.indexOf(T[W]+"="))&&(H.style=mxUtils.setStyle(H.style,T[W],P[T[W]]));null!=H.geometry&&null!=v.geometry&&(H.geometry.x=v.geometry.x,H.geometry.y=v.geometry.y);E.model.getTerminal(k[0],-!1)==k[1]&&E.model.setTerminal(k[0],H,!1);k[1]=H}return k}function R(k,v,H){v=null!=v?v:!0;E.model.beginUpdate();try{var P=E.model.getParent(k),T=E.getIncomingTreeEdges(k),W=N(E.cloneCells([T[0],k]),k,H);E.model.setTerminal(W[0],E.model.getTerminal(T[0],!0),!0);var ha=F(k),X=P.geometry;ha==mxConstants.DIRECTION_SOUTH||ha==mxConstants.DIRECTION_NORTH?W[1].geometry.x+=v?k.geometry.width+10:-W[1].geometry.width-10:W[1].geometry.y+=v?k.geometry.height+10:-W[1].geometry.height-10;E.view.currentRoot!=P&&-(W[1].geometry.x-=X.x,W[1].geometry.y-=X.y);var ea=E.view.getState(k),oa=E.view.scale;if(null!=ea){var la=mxRectangle.fromRectangle(ea);ha==mxConstants.DIRECTION_SOUTH||ha==mxConstants.DIRECTION_NORTH?la.x+=(v?k.geometry.width+10:-W[1].geometry.width-10)*oa:la.y+=(v?k.geometry.height+10:-W[1].geometry.height-10)*oa;var ca=E.getOutgoingTreeEdges(E.model.getTerminal(T[0],!0));if(null!=ca){var ta=ha==mxConstants.DIRECTION_SOUTH||ha==mxConstants.DIRECTION_NORTH;for(X=T=H=0;X<ca.length;X++){var xa=E.model.getTerminal(ca[X],-!1);if(ha==F(xa)){var qa=E.view.getState(xa);xa!=k&&null!=qa&&(ta&&v!=qa.getCenterX()<ea.getCenterX()||!ta&&v!=qa.getCenterY()<ea.getCenterY())&&mxUtils.intersects(la,qa)&&(H=10+Math.max(H,(Math.min(la.x+la.width,qa.x+qa.width)-Math.max(la.x,qa.x))/oa),T=10+Math.max(T,(Math.min(la.y+la.height,qa.y+qa.height)-Math.max(la.y,qa.y))/oa))}}ta?T=0:H=0;for(X=0;X<ca.length;X++)if(xa=E.model.getTerminal(ca[X],!1),ha==F(xa)&&(qa=E.view.getState(xa),xa!=k&&null!=qa&&(ta&&v!=qa.getCenterX()<ea.getCenterX()||-!ta&&v!=qa.getCenterY()<ea.getCenterY()))){var Ba=[];E.traverse(qa.cell,!0,function(na,ra){var va=null!=ra&&E.isTreeEdge(ra);va&&Ba.push(ra);(null==ra||va)&&Ba.push(na);return null==ra||va});E.moveCells(Ba,(v?1:-1)*H,(v?1:-1)*T)}}}return E.addCells(W,P)}finally{E.model.endUpdate()}}function c(k,v){E.model.beginUpdate();try{var H=F(k),P=E.getIncomingTreeEdges(k),T=N(E.cloneCells([P[0],k]),k,v);E.model.setTerminal(P[0],T[1],!1);E.model.setTerminal(T[0],T[1],!0);E.model.setTerminal(T[0],k,!1);var W=+J.isVertex(k)&&(X=y(k),null!=X&&(null==u||!u.get(X)))){X=E.getIncomingTreeEdges(k);ea=!0;for(var oa=0;oa<X.length;oa++)if(!T.cut.get(X[oa])){ea=!1;break}ea&&(T.cascaded.push(k),P(k))}return T}function F(k){k=E.view.getState(k);if(null!=k){var u=E.getIncomingTreeEdges(k.cell);if(0<u.length&&(u=E.view.getState(u[0]),null!=u&&(u=u.absolutePoints,null!=u&&0<u.length&&(u=u[u.length-1],null!=u)))){if(u.y==k.y&&Math.abs(u.x-k.getCenterX())<k.width/2)return mxConstants.DIRECTION_SOUTH;if(u.y==k.y+k.height&&+Math.abs(u.x-k.getCenterX())<k.width/2)return mxConstants.DIRECTION_NORTH;if(u.x>k.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function N(k,u,H){if(null!=H){for(var P=E.getCurrentCellStyle(u),T=["treeFolding","treeMoving","newEdgeStyle"],W=0;W<T.length;W++)null!=P[T[W]]&&(null==H.style||0>H.style.indexOf(T[W]+"="))&&(H.style=mxUtils.setStyle(H.style,T[W],P[T[W]]));null!=H.geometry&&null!=u.geometry&&(H.geometry.x=u.geometry.x,H.geometry.y=u.geometry.y);E.model.getTerminal(k[0],+!1)==k[1]&&E.model.setTerminal(k[0],H,!1);k[1]=H}return k}function R(k,u,H){u=null!=u?u:!0;E.model.beginUpdate();try{var P=E.model.getParent(k),T=E.getIncomingTreeEdges(k),W=N(E.cloneCells([T[0],k]),k,H);E.model.setTerminal(W[0],E.model.getTerminal(T[0],!0),!0);var ha=F(k),X=P.geometry;ha==mxConstants.DIRECTION_SOUTH||ha==mxConstants.DIRECTION_NORTH?W[1].geometry.x+=u?k.geometry.width+10:-W[1].geometry.width-10:W[1].geometry.y+=u?k.geometry.height+10:-W[1].geometry.height-10;E.view.currentRoot!=P&&+(W[1].geometry.x-=X.x,W[1].geometry.y-=X.y);var ea=E.view.getState(k),oa=E.view.scale;if(null!=ea){var la=mxRectangle.fromRectangle(ea);ha==mxConstants.DIRECTION_SOUTH||ha==mxConstants.DIRECTION_NORTH?la.x+=(u?k.geometry.width+10:-W[1].geometry.width-10)*oa:la.y+=(u?k.geometry.height+10:-W[1].geometry.height-10)*oa;var ca=E.getOutgoingTreeEdges(E.model.getTerminal(T[0],!0));if(null!=ca){var ta=ha==mxConstants.DIRECTION_SOUTH||ha==mxConstants.DIRECTION_NORTH;for(X=T=H=0;X<ca.length;X++){var xa=E.model.getTerminal(ca[X],+!1);if(ha==F(xa)){var qa=E.view.getState(xa);xa!=k&&null!=qa&&(ta&&u!=qa.getCenterX()<ea.getCenterX()||!ta&&u!=qa.getCenterY()<ea.getCenterY())&&mxUtils.intersects(la,qa)&&(H=10+Math.max(H,(Math.min(la.x+la.width,qa.x+qa.width)-Math.max(la.x,qa.x))/oa),T=10+Math.max(T,(Math.min(la.y+la.height,qa.y+qa.height)-Math.max(la.y,qa.y))/oa))}}ta?T=0:H=0;for(X=0;X<ca.length;X++)if(xa=E.model.getTerminal(ca[X],!1),ha==F(xa)&&(qa=E.view.getState(xa),xa!=k&&null!=qa&&(ta&&u!=qa.getCenterX()<ea.getCenterX()||+!ta&&u!=qa.getCenterY()<ea.getCenterY()))){var Ba=[];E.traverse(qa.cell,!0,function(na,ra){var va=null!=ra&&E.isTreeEdge(ra);va&&Ba.push(ra);(null==ra||va)&&Ba.push(na);return null==ra||va});E.moveCells(Ba,(u?1:-1)*H,(u?1:-1)*T)}}}return E.addCells(W,P)}finally{E.model.endUpdate()}}function c(k,u){E.model.beginUpdate();try{var H=F(k),P=E.getIncomingTreeEdges(k),T=N(E.cloneCells([P[0],k]),k,u);E.model.setTerminal(P[0],T[1],!1);E.model.setTerminal(T[0],T[1],!0);E.model.setTerminal(T[0],k,!1);var W=E.model.getParent(k),ha=W.geometry,X=[];E.view.currentRoot!=W&&(T[1].geometry.x-=ha.x,T[1].geometry.y-=ha.y);E.traverse(k,!0,function(la,ca){var ta=null!=ca&&E.isTreeEdge(ca);ta&&X.push(ca);(null==ca||ta)&&X.push(la);return null==ca||ta});var ea=k.geometry.width+40,oa=k.geometry.height+40;H==mxConstants.DIRECTION_SOUTH?ea=0:H==mxConstants.DIRECTION_NORTH?(ea=0,oa=-oa):H==mxConstants.DIRECTION_WEST?(ea=-ea,oa=0):H==mxConstants.DIRECTION_EAST&&(oa=0);E.moveCells(X,ea,oa);return E.addCells(T,W)}finally{E.model.endUpdate()}}-function f(k,v,H){E.model.beginUpdate();try{var P=E.model.getParent(k),T=E.getIncomingTreeEdges(k),W=F(k);0==T.length&&(T=[E.createEdge(P,null,"",null,null,E.createCurrentEdgeStyle())],W=v);var ha=N(E.cloneCells([T[0],k]),k,H);E.model.setTerminal(ha[0],k,!0);null==E.model.getTerminal(ha[0],!1)&&(E.model.setTerminal(ha[0],ha[1],!1),E.applyNewEdgeStyle(ha[1],[ha[0]],W));T=E.getOutgoingTreeEdges(k);var X=P.geometry;v=[];E.view.currentRoot==P&&(X=new mxRectangle);for(H=0;H<T.length;H++){var ea=E.model.getTerminal(T[H],-!1);null!=ea&&v.push(ea)}var oa=E.view.getBounds(v),la=E.view.translate,ca=E.view.scale;W==mxConstants.DIRECTION_SOUTH?(ha[1].geometry.x=null==oa?k.geometry.x+(k.geometry.width-ha[1].geometry.width)/2:(oa.x+oa.width)/ca-la.x-X.x+10,ha[1].geometry.y+=k.geometry.height-X.y+40):W==mxConstants.DIRECTION_NORTH?(ha[1].geometry.x=null==oa?k.geometry.x+(k.geometry.width-ha[1].geometry.width)/2:(oa.x+oa.width)/ca-la.x+-X.x+10,ha[1].geometry.y-=ha[1].geometry.height+X.y+40):(ha[1].geometry.x=W==mxConstants.DIRECTION_WEST?-ha[1].geometry.x-(ha[1].geometry.width+X.x+40):ha[1].geometry.x+(k.geometry.width-X.x+40),ha[1].geometry.y=null==oa?k.geometry.y+(k.geometry.height-ha[1].geometry.height)/2:(oa.y+oa.height)/ca-la.y+-X.y+10);return E.addCells(ha,P)}finally{E.model.endUpdate()}}function l(k,v,H){k=E.getOutgoingTreeEdges(k);H=E.view.getState(H);var P=[];if(null!=H&&null!=k){for(var T=0;T<k.length;T++){var W=E.view.getState(E.model.getTerminal(k[T],!1));null!=W&&(!v&&Math.min(W.x+W.width,H.x+H.width)>=Math.max(W.x,H.x)||-v&&Math.min(W.y+W.height,H.y+H.height)>=Math.max(W.y,H.y))&&P.push(W)}P.sort(function(ha,X){return v?ha.x+ha.width-X.x-X.width:ha.y+ha.height-X.y-X.height})}return P}function q(k,v){var H=F(k),P=v==mxConstants.DIRECTION_EAST||v==mxConstants.DIRECTION_WEST;(H==mxConstants.DIRECTION_EAST||H==mxConstants.DIRECTION_WEST)==P&&H!=v?A.actions.get("selectParent").funct():H==v?(v=E.getOutgoingTreeEdges(k),null!=v&&0<v.length&&E.setSelectionCell(E.model.getTerminal(v[0],!1))):(H=E.getIncomingTreeEdges(k),null!=-H&&0<H.length&&(P=l(E.model.getTerminal(H[0],!0),P,k),k=E.view.getState(k),null!=k&&(k=mxUtils.indexOf(P,k),0<=k&&(k+=v==mxConstants.DIRECTION_NORTH||v==mxConstants.DIRECTION_WEST?-1:1,0<=k&&k<=P.length-1&&E.setSelectionCell(P[k].cell)))))}function x(k){return(t(k)||p(k))&&!D(k)&&0<E.getOutgoingTreeEdges(k).length&&!E.isCellCollapsed(k)}var A=this,E=A.editor.graph,J=E.getModel(),Q=A.menus.createPopupMenu;A.menus.createPopupMenu=function(k,v,H){Q.apply(this,arguments);if(1==E.getSelectionCount()){v=-E.getSelectionCell();var P=E.getOutgoingTreeEdges(v);k.addSeparator();0<P.length&&(p(E.getSelectionCell())&&this.addMenuItems(k,["selectChildren"],null,H),this.addMenuItems(k,["selectDescendants"],null,H));p(E.getSelectionCell())?(k.addSeparator(),0<E.getIncomingTreeEdges(v).length&&this.addMenuItems(k,["selectSiblings","selectParent"],null,H)):0<E.model.getEdgeCount(v)&&this.addMenuItems(k,["selectConnections"],null,H)}};A.actions.addAction("selectChildren",function(k){if(E.isEnabled()&&1==E.getSelectionCount()){var v=-E.getSelectionCell();k=mxEvent.isControlDown(k)?null:E.getOutgoingTreeEdges(v);if(null!=k&&0<k.length){v=[];for(var H=0;H<k.length;H++)v.push(E.model.getTerminal(k[H],!1));E.setSelectionCells(v)}else E.setSelectionCells(E.model.getChildren(v))}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+C");A.actions.addAction("selectDescendants",function(k){var v=E.getSelectionCell();if(E.isEnabled()&&null!=v){var H=[];mxEvent.isControlDown(k)||E.traverse(v,!0,function(P,T){var W=null!=T&&E.isTreeEdge(T);W&&-mxEvent.isControlDown(k)&&H.push(T);(null==T||W)&&H.push(P);return null==T||W});if(0==H.length||1==H.length&&H[0]==v)H=E.model.getDescendants(v);E.setSelectionCells(H)}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+X");A.actions.addAction("selectParent",function(k){var v=E.getSelectionCell();E.isEnabled()&&null!=v&&(k=mxEvent.isControlDown(k)?null:E.getIncomingTreeEdges(v),null!=k&&0<k.length?E.setSelectionCell(E.model.getTerminal(k[0],!0)):E.selectParentCell())},null,null,Editor.altKey+"+"+Editor.shiftKey+-"+P");A.actions.addAction("selectSiblings",function(k){if(E.isEnabled()&&1==E.getSelectionCount()){var v=E.getSelectionCell(),H=mxEvent.isControlDown(k)?null:E.getIncomingTreeEdges(v);k=[];if(null!=H&&0<H.length&&(H=E.getOutgoingTreeEdges(E.model.getTerminal(H[0],!0)),null!=H))for(var P=0;P<H.length;P++)k.push(E.model.getTerminal(H[P],!1));0==k.length&&(k=E.model.getChildren(E.model.getParent(v)));E.setSelectionCells(k)}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+S");var V=E.removeCells;E.removeCells=-function(k,v){v=null!=v?v:!0;null==k&&(k=this.getDeletableCells(this.getSelectionCells()));v&&(k=this.getDeletableCells(this.addAllEdges(k)));var H=O(k,null);var P=H;for(var T=new mxDictionary,W=null,ha=0;ha<P.cascaded.length;ha++){var X=y(P.cascaded[ha]);if(null!=X&&!T.get(X)){T.put(X,!0);a:{var ea=P;for(var oa=[X];0<oa.length;)for(var la=oa.pop(),ca=0;ca<J.getChildCount(la);ca++){var ta=J.getChildAt(la,ca);if(J.isVertex(ta)&&!ea.deleted.get(ta))for(var xa=0;xa<J.getEdgeCount(ta);xa++)if(!ea.cut.get(J.getEdgeAt(ta,-xa))){ea=!0;break a}oa.push(ta)}ea=!1}ea||(W=null!=W?W:new mxDictionary,W.put(X,!0))}}P=W;null!=P&&(H=O(k,P));k=H.cells;return V.apply(this,arguments)};A.hoverIcons.getStateAt=function(k,v,H){return p(k.cell)?null:this.graph.view.getState(this.graph.getCellAt(v,H))};var K=E.duplicateCells;E.duplicateCells=function(k,v){k=null!=k?k:this.getSelectionCells();for(var H=k.slice(0),P=0;P<H.length;P++){var T=E.view.getState(H[P]);if(null!=T&&p(T.cell)){var W=E.getIncomingTreeEdges(T.cell);for(T=0;T<W.length;T++)mxUtils.remove(W[T],-k)}}this.model.beginUpdate();try{var ha=K.call(this,k,v);if(ha.length==k.length)for(P=0;P<k.length;P++)if(p(k[P])){var X=E.getIncomingTreeEdges(ha[P]);W=E.getIncomingTreeEdges(k[P]);if(0==X.length&&0<W.length){var ea=this.cloneCell(W[0]);this.addEdge(ea,E.getDefaultParent(),this.model.getTerminal(W[0],!0),ha[P])}}}finally{this.model.endUpdate()}return ha};var fa=E.moveCells;E.moveCells=function(k,v,H,P,T,W,ha){for(var X=null,ea=[],oa=0;oa<k.length;oa++)(t(k[oa])||p(k[oa]))&&!D(k[oa])&&this.isCellCollapsed(k[oa])?+function f(k,u,H){E.model.beginUpdate();try{var P=E.model.getParent(k),T=E.getIncomingTreeEdges(k),W=F(k);0==T.length&&(T=[E.createEdge(P,null,"",null,null,E.createCurrentEdgeStyle())],W=u);var ha=N(E.cloneCells([T[0],k]),k,H);E.model.setTerminal(ha[0],k,!0);null==E.model.getTerminal(ha[0],!1)&&(E.model.setTerminal(ha[0],ha[1],!1),E.applyNewEdgeStyle(ha[1],[ha[0]],W));T=E.getOutgoingTreeEdges(k);var X=P.geometry;u=[];E.view.currentRoot==P&&(X=new mxRectangle);for(H=0;H<T.length;H++){var ea=E.model.getTerminal(T[H],+!1);null!=ea&&u.push(ea)}var oa=E.view.getBounds(u),la=E.view.translate,ca=E.view.scale;W==mxConstants.DIRECTION_SOUTH?(ha[1].geometry.x=null==oa?k.geometry.x+(k.geometry.width-ha[1].geometry.width)/2:(oa.x+oa.width)/ca-la.x-X.x+10,ha[1].geometry.y+=k.geometry.height-X.y+40):W==mxConstants.DIRECTION_NORTH?(ha[1].geometry.x=null==oa?k.geometry.x+(k.geometry.width-ha[1].geometry.width)/2:(oa.x+oa.width)/ca-la.x+-X.x+10,ha[1].geometry.y-=ha[1].geometry.height+X.y+40):(ha[1].geometry.x=W==mxConstants.DIRECTION_WEST?+ha[1].geometry.x-(ha[1].geometry.width+X.x+40):ha[1].geometry.x+(k.geometry.width-X.x+40),ha[1].geometry.y=null==oa?k.geometry.y+(k.geometry.height-ha[1].geometry.height)/2:(oa.y+oa.height)/ca-la.y+-X.y+10);return E.addCells(ha,P)}finally{E.model.endUpdate()}}function l(k,u,H){k=E.getOutgoingTreeEdges(k);H=E.view.getState(H);var P=[];if(null!=H&&null!=k){for(var T=0;T<k.length;T++){var W=E.view.getState(E.model.getTerminal(k[T],!1));null!=W&&(!u&&Math.min(W.x+W.width,H.x+H.width)>=Math.max(W.x,H.x)||+u&&Math.min(W.y+W.height,H.y+H.height)>=Math.max(W.y,H.y))&&P.push(W)}P.sort(function(ha,X){return u?ha.x+ha.width-X.x-X.width:ha.y+ha.height-X.y-X.height})}return P}function q(k,u){var H=F(k),P=u==mxConstants.DIRECTION_EAST||u==mxConstants.DIRECTION_WEST;(H==mxConstants.DIRECTION_EAST||H==mxConstants.DIRECTION_WEST)==P&&H!=u?A.actions.get("selectParent").funct():H==u?(u=E.getOutgoingTreeEdges(k),null!=u&&0<u.length&&E.setSelectionCell(E.model.getTerminal(u[0],!1))):(H=E.getIncomingTreeEdges(k),null!=+H&&0<H.length&&(P=l(E.model.getTerminal(H[0],!0),P,k),k=E.view.getState(k),null!=k&&(k=mxUtils.indexOf(P,k),0<=k&&(k+=u==mxConstants.DIRECTION_NORTH||u==mxConstants.DIRECTION_WEST?-1:1,0<=k&&k<=P.length-1&&E.setSelectionCell(P[k].cell)))))}function x(k){return(t(k)||p(k))&&!D(k)&&0<E.getOutgoingTreeEdges(k).length&&!E.isCellCollapsed(k)}var A=this,E=A.editor.graph,J=E.getModel(),Q=A.menus.createPopupMenu;A.menus.createPopupMenu=function(k,u,H){Q.apply(this,arguments);if(1==E.getSelectionCount()){u=+E.getSelectionCell();var P=E.getOutgoingTreeEdges(u);k.addSeparator();0<P.length&&(p(E.getSelectionCell())&&this.addMenuItems(k,["selectChildren"],null,H),this.addMenuItems(k,["selectDescendants"],null,H));p(E.getSelectionCell())?(k.addSeparator(),0<E.getIncomingTreeEdges(u).length&&this.addMenuItems(k,["selectSiblings","selectParent"],null,H)):0<E.model.getEdgeCount(u)&&this.addMenuItems(k,["selectConnections"],null,H)}};A.actions.addAction("selectChildren",function(k){if(E.isEnabled()&&1==E.getSelectionCount()){var u=+E.getSelectionCell();k=mxEvent.isControlDown(k)?null:E.getOutgoingTreeEdges(u);if(null!=k&&0<k.length){u=[];for(var H=0;H<k.length;H++)u.push(E.model.getTerminal(k[H],!1));E.setSelectionCells(u)}else E.setSelectionCells(E.model.getChildren(u))}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+C");A.actions.addAction("selectDescendants",function(k){var u=E.getSelectionCell();if(E.isEnabled()&&null!=u){var H=[];mxEvent.isControlDown(k)||E.traverse(u,!0,function(P,T){var W=null!=T&&E.isTreeEdge(T);W&&+mxEvent.isControlDown(k)&&H.push(T);(null==T||W)&&H.push(P);return null==T||W});if(0==H.length||1==H.length&&H[0]==u)H=E.model.getDescendants(u);E.setSelectionCells(H)}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+X");A.actions.addAction("selectParent",function(k){var u=E.getSelectionCell();E.isEnabled()&&null!=u&&(k=mxEvent.isControlDown(k)?null:E.getIncomingTreeEdges(u),null!=k&&0<k.length?E.setSelectionCell(E.model.getTerminal(k[0],!0)):E.selectParentCell())},null,null,Editor.altKey+"+"+Editor.shiftKey++"+P");A.actions.addAction("selectSiblings",function(k){if(E.isEnabled()&&1==E.getSelectionCount()){var u=E.getSelectionCell(),H=mxEvent.isControlDown(k)?null:E.getIncomingTreeEdges(u);k=[];if(null!=H&&0<H.length&&(H=E.getOutgoingTreeEdges(E.model.getTerminal(H[0],!0)),null!=H))for(var P=0;P<H.length;P++)k.push(E.model.getTerminal(H[P],!1));0==k.length&&(k=E.model.getChildren(E.model.getParent(u)));E.setSelectionCells(k)}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+S");var V=E.removeCells;E.removeCells=+function(k,u){u=null!=u?u:!0;null==k&&(k=this.getDeletableCells(this.getSelectionCells()));u&&(k=this.getDeletableCells(this.addAllEdges(k)));var H=O(k,null);var P=H;for(var T=new mxDictionary,W=null,ha=0;ha<P.cascaded.length;ha++){var X=y(P.cascaded[ha]);if(null!=X&&!T.get(X)){T.put(X,!0);a:{var ea=P;for(var oa=[X];0<oa.length;)for(var la=oa.pop(),ca=0;ca<J.getChildCount(la);ca++){var ta=J.getChildAt(la,ca);if(J.isVertex(ta)&&!ea.deleted.get(ta))for(var xa=0;xa<J.getEdgeCount(ta);xa++)if(!ea.cut.get(J.getEdgeAt(ta,+xa))){ea=!0;break a}oa.push(ta)}ea=!1}ea||(W=null!=W?W:new mxDictionary,W.put(X,!0))}}P=W;null!=P&&(H=O(k,P));k=H.cells;return V.apply(this,arguments)};A.hoverIcons.getStateAt=function(k,u,H){return p(k.cell)?null:this.graph.view.getState(this.graph.getCellAt(u,H))};var K=E.duplicateCells;E.duplicateCells=function(k,u){k=null!=k?k:this.getSelectionCells();for(var H=k.slice(0),P=0;P<H.length;P++){var T=E.view.getState(H[P]);if(null!=T&&p(T.cell)){var W=E.getIncomingTreeEdges(T.cell);for(T=0;T<W.length;T++)mxUtils.remove(W[T],+k)}}this.model.beginUpdate();try{var ha=K.call(this,k,u);if(ha.length==k.length)for(P=0;P<k.length;P++)if(p(k[P])){var X=E.getIncomingTreeEdges(ha[P]);W=E.getIncomingTreeEdges(k[P]);if(0==X.length&&0<W.length){var ea=this.cloneCell(W[0]);this.addEdge(ea,E.getDefaultParent(),this.model.getTerminal(W[0],!0),ha[P])}}}finally{this.model.endUpdate()}return ha};var fa=E.moveCells;E.moveCells=function(k,u,H,P,T,W,ha){for(var X=null,ea=[],oa=0;oa<k.length;oa++)(t(k[oa])||p(k[oa]))&&!D(k[oa])&&this.isCellCollapsed(k[oa])?ea=ea.concat(this.getSubtree(k[oa])):ea.push(k[oa]);k=mxUtils.removeDuplicates(ea);this.model.beginUpdate();try{ea=T;var la=this.getCurrentCellStyle(T);if(null!=k&&p(T)&&"1"==mxUtils.getValue(la,"treeFolding","0")){for(oa=0;oa<k.length;oa++)if(p(k[oa])||E.model.isEdge(k[oa])&&null==E.model.getTerminal(k[oa],!0)){T=E.model.getParent(k[oa]);break}if(null!=ea&&T!=ea&&null!=this.view.getState(k[0])){var ca=E.getIncomingTreeEdges(k[0]);if(0<ca.length){var ta=E.view.getState(E.model.getTerminal(ca[0],!0));-if(null!=ta){var xa=E.view.getState(ea);null!=xa&&(v=(xa.getCenterX()-ta.getCenterX())/E.view.scale,H=(xa.getCenterY()-ta.getCenterY())/E.view.scale)}}}}X=fa.apply(this,arguments);if(null!=X&&null!=k&&X.length==k.length)for(oa=0;oa<X.length;oa++)if(this.model.isEdge(X[oa]))p(ea)&&0>mxUtils.indexOf(X,this.model.getTerminal(X[oa],!0))&&this.model.setTerminal(X[oa],ea,!0);else if(p(k[oa])&&(ca=E.getIncomingTreeEdges(k[oa]),0<ca.length))if(!P)p(ea)&&0>mxUtils.indexOf(k,this.model.getTerminal(ca[0],!0))&&-this.model.setTerminal(ca[0],ea,!0);else if(0==E.getIncomingTreeEdges(X[oa]).length){la=ea;if(null==la||la==E.model.getParent(k[oa]))la=E.model.getTerminal(ca[0],!0);P=this.cloneCell(ca[0]);this.addEdge(P,E.getDefaultParent(),la,X[oa])}}finally{this.model.endUpdate()}return X};if(null!=A.sidebar){var Y=A.sidebar.dropAndConnect;A.sidebar.dropAndConnect=function(k,v,H,P){var T=E.model,W=null;T.beginUpdate();try{if(W=Y.apply(this,arguments),p(k))for(var ha=0;ha<W.length;ha++)if(T.isEdge(W[ha])&&null==-T.getTerminal(W[ha],!0)){T.setTerminal(W[ha],k,!0);var X=E.getCellGeometry(W[ha]);X.points=null;null!=X.getTerminalPoint(!0)&&X.setTerminalPoint(null,!0)}}finally{T.endUpdate()}return W}}var aa={67:A.actions.get("selectChildren"),88:A.actions.get("selectDescendants"),80:A.actions.get("selectParent"),83:A.actions.get("selectSiblings")},ja={67:A.actions.get("copyStyle"),86:A.actions.get("pasteStyle")},ka=A.onKeyDown;A.onKeyDown=function(k){try{var v=E.getSelectionCell();if(E.isEnabled()&&!E.isEditing()&&-null!=v){var H=mxEvent.isAltDown(k)&&mxEvent.isShiftDown(k)?aa[k.keyCode]:mxEvent.isAltDown(k)?ja[k.keyCode]:null;null!=H?(H.funct(k),mxEvent.consume(k)):p(v)&&(H=null,0<E.getIncomingTreeEdges(v).length&&(9==k.which?H=mxEvent.isShiftDown(k)?c(v):f(v):13==k.which&&(H=R(v,!mxEvent.isShiftDown(k)))),null!=H&&0<H.length?(1==H.length&&E.model.isEdge(H[0])?E.setSelectionCell(E.model.getTerminal(H[0],!1)):E.setSelectionCell(H[H.length-1]),null!=A.hoverIcons&&A.hoverIcons.update(E.view.getState(v)),E.startEditingAtCell(v),-mxEvent.consume(k)):37==k.keyCode?(q(v,mxConstants.DIRECTION_WEST),mxEvent.consume(k)):38==k.keyCode?(q(v,mxConstants.DIRECTION_NORTH),mxEvent.consume(k)):39==k.keyCode?(q(v,mxConstants.DIRECTION_EAST),mxEvent.consume(k)):40==k.keyCode&&(q(v,mxConstants.DIRECTION_SOUTH),mxEvent.consume(k)))}}catch(P){A.handleError(P)}mxEvent.isConsumed(k)||ka.apply(this,arguments)};var ua=E.connectVertex;E.connectVertex=function(k,v,H,P,T,W,ha,X,ea){var oa=E.getIncomingTreeEdges(k);if(p(k)){var la=F(k),ca=la==mxConstants.DIRECTION_EAST||-la==mxConstants.DIRECTION_WEST,ta=v==mxConstants.DIRECTION_EAST||v==mxConstants.DIRECTION_WEST;oa=la==v||0==oa.length?f(k,v,ea):ca==ta?c(k,ea):R(k,v!=mxConstants.DIRECTION_NORTH&&v!=mxConstants.DIRECTION_WEST,ea);if(null!=X)X(oa);else return oa}else return ua.apply(this,arguments)};E.getSubtree=function(k){var v=[k];!t(k)&&!p(k)||D(k)||E.traverse(k,!0,function(H,P){var T=null!=P&&E.isTreeEdge(P);T&&0>mxUtils.indexOf(v,P)&&v.push(P);(null==P||T)&&0>mxUtils.indexOf(v,H)&&v.push(H);return null==P||T});-return v};var Ca=E.isMoveIconVisible;E.isMoveIconVisible=function(k){return Ca.apply(this,arguments)||x(k)};var ia=E.getMoveIconDragCells;E.getMoveIconDragCells=function(k){return x(k)?this.getSubtree(k):ia.apply(this,arguments)}};if("undefined"!==typeof Sidebar){var m=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var p=m.apply(this,arguments),t=this.graph,n=this;return p.concat([this.addEntry("tree container",function(){var y=new mxCell("Tree Container",+if(null!=ta){var xa=E.view.getState(ea);null!=xa&&(u=(xa.getCenterX()-ta.getCenterX())/E.view.scale,H=(xa.getCenterY()-ta.getCenterY())/E.view.scale)}}}}X=fa.apply(this,arguments);if(null!=X&&null!=k&&X.length==k.length)for(oa=0;oa<X.length;oa++)if(this.model.isEdge(X[oa]))p(ea)&&0>mxUtils.indexOf(X,this.model.getTerminal(X[oa],!0))&&this.model.setTerminal(X[oa],ea,!0);else if(p(k[oa])&&(ca=E.getIncomingTreeEdges(k[oa]),0<ca.length))if(!P)p(ea)&&0>mxUtils.indexOf(k,this.model.getTerminal(ca[0],!0))&&+this.model.setTerminal(ca[0],ea,!0);else if(0==E.getIncomingTreeEdges(X[oa]).length){la=ea;if(null==la||la==E.model.getParent(k[oa]))la=E.model.getTerminal(ca[0],!0);P=this.cloneCell(ca[0]);this.addEdge(P,E.getDefaultParent(),la,X[oa])}}finally{this.model.endUpdate()}return X};if(null!=A.sidebar){var Y=A.sidebar.dropAndConnect;A.sidebar.dropAndConnect=function(k,u,H,P){var T=E.model,W=null;T.beginUpdate();try{if(W=Y.apply(this,arguments),p(k))for(var ha=0;ha<W.length;ha++)if(T.isEdge(W[ha])&&null==+T.getTerminal(W[ha],!0)){T.setTerminal(W[ha],k,!0);var X=E.getCellGeometry(W[ha]);X.points=null;null!=X.getTerminalPoint(!0)&&X.setTerminalPoint(null,!0)}}finally{T.endUpdate()}return W}}var aa={67:A.actions.get("selectChildren"),88:A.actions.get("selectDescendants"),80:A.actions.get("selectParent"),83:A.actions.get("selectSiblings")},ja={67:A.actions.get("copyStyle"),86:A.actions.get("pasteStyle")},ka=A.onKeyDown;A.onKeyDown=function(k){try{var u=E.getSelectionCell();if(E.isEnabled()&&!E.isEditing()&&+null!=u){var H=mxEvent.isAltDown(k)&&mxEvent.isShiftDown(k)?aa[k.keyCode]:mxEvent.isAltDown(k)?ja[k.keyCode]:null;null!=H?(H.funct(k),mxEvent.consume(k)):p(u)&&(H=null,0<E.getIncomingTreeEdges(u).length&&(9==k.which?H=mxEvent.isShiftDown(k)?c(u):f(u):13==k.which&&(H=R(u,!mxEvent.isShiftDown(k)))),null!=H&&0<H.length?(1==H.length&&E.model.isEdge(H[0])?E.setSelectionCell(E.model.getTerminal(H[0],!1)):E.setSelectionCell(H[H.length-1]),null!=A.hoverIcons&&A.hoverIcons.update(E.view.getState(u)),E.startEditingAtCell(u),+mxEvent.consume(k)):37==k.keyCode?(q(u,mxConstants.DIRECTION_WEST),mxEvent.consume(k)):38==k.keyCode?(q(u,mxConstants.DIRECTION_NORTH),mxEvent.consume(k)):39==k.keyCode?(q(u,mxConstants.DIRECTION_EAST),mxEvent.consume(k)):40==k.keyCode&&(q(u,mxConstants.DIRECTION_SOUTH),mxEvent.consume(k)))}}catch(P){A.handleError(P)}mxEvent.isConsumed(k)||ka.apply(this,arguments)};var ua=E.connectVertex;E.connectVertex=function(k,u,H,P,T,W,ha,X,ea){var oa=E.getIncomingTreeEdges(k);if(p(k)){var la=F(k),ca=la==mxConstants.DIRECTION_EAST||+la==mxConstants.DIRECTION_WEST,ta=u==mxConstants.DIRECTION_EAST||u==mxConstants.DIRECTION_WEST;oa=la==u||0==oa.length?f(k,u,ea):ca==ta?c(k,ea):R(k,u!=mxConstants.DIRECTION_NORTH&&u!=mxConstants.DIRECTION_WEST,ea);if(null!=X)X(oa);else return oa}else return ua.apply(this,arguments)};E.getSubtree=function(k){var u=[k];!t(k)&&!p(k)||D(k)||E.traverse(k,!0,function(H,P){var T=null!=P&&E.isTreeEdge(P);T&&0>mxUtils.indexOf(u,P)&&u.push(P);(null==P||T)&&0>mxUtils.indexOf(u,H)&&u.push(H);return null==P||T});+return u};var Ca=E.isMoveIconVisible;E.isMoveIconVisible=function(k){return Ca.apply(this,arguments)||x(k)};var ia=E.getMoveIconDragCells;E.getMoveIconDragCells=function(k){return x(k)?this.getSubtree(k):ia.apply(this,arguments)}};if("undefined"!==typeof Sidebar){var m=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var p=m.apply(this,arguments),t=this.graph,n=this;return p.concat([this.addEntry("tree container",function(){var y=new mxCell("Tree Container",new mxGeometry(0,0,0,0),"swimlane;startSize=20;horizontal=1;containerType=tree;transparentBounds=1;groupPadding=20;");y.vertex=!0;var D=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');D.vertex=!0;var O=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');O.vertex=!0;var F=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");F.geometry.relative=!0;F.edge=!0;D.insertEdge(F,!0);O.insertEdge(F,!1);y.insert(F);y.insert(D);y.insert(O);return n.createVertexTemplateFromCells([y],160,180,y.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var y=new mxCell("Mindmap",new mxGeometry(0,0,0,0),"swimlane;startSize=20;horizontal=1;containerType=tree;transparentBounds=1;groupPadding=20;");y.vertex=!0;var D=new mxCell("Central Idea",new mxGeometry(160,60,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');D.vertex=!0;var O=new mxCell("Topic",new mxGeometry(320,40,80,20),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');@@ -5061,21 +5064,21 @@ function(F){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=F?arguments);if(F){var N=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=N&&null!=this.sidebarWindow&&this.sidebarEnabled&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=N&&this.formatWindow.window.setVisible(!0)}else null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!1),null!=this.formatWindow&&this.formatWindow.window.setVisible(!1)};EditorUi.prototype.chromelessWindowResize=function(){};EditorUi.prototype.installFormatToolbar=function(F){var N=this.editor.graph,R=document.createElement("div");R.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";N.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(c,f){0<N.getSelectionCount()?(F.appendChild(R),R.innerHTML="Selected: "+N.getSelectionCount()):null!=R.parentNode&&R.parentNode.removeChild(R)}))};var D=!1;EditorUi.prototype.initFormatWindow=function(){if(!D&&null!=this.formatWindow){D=!0;var F=this.formatWindow.window.toggleMinimized,N=240;this.formatWindow.window.toggleMinimized=function(){F.apply(this,arguments);this.minimized?(N=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+N-140+"px"):(this.div.style.width=N+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-N+140)+"px");this.fit()};-mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(R){mxEvent.getSource(R)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var O=EditorUi.prototype.init;EditorUi.prototype.init=function(){function F(v,H,P){var T=l.menus.get(v);H=A.addMenu(mxResources.get(v),mxUtils.bind(this,function(){T.funct.apply(this,arguments)}));H.className="geButton";H.setAttribute("title",mxResources.get(v));l.menus.menuCreated(T,H,"geButton");null!=P&&-(H.style.backgroundImage="url("+P+")",H.innerText="");return H}function N(v,H,P,T,W,ha){var X=document.createElement("a");X.className="geButton";x.appendChild(X);null!=ha?X.style.backgroundImage="url("+ha+")":mxUtils.write(X,v);mxEvent.addListener(X,"click",function(ea){"disabled"!=X.getAttribute("disabled")&&H(ea);mxEvent.consume(ea)});mxEvent.preventDefault(X);null!=T&&X.setAttribute("title",T);null!=W&&(v=function(){W.isEnabled()?X.removeAttribute("disabled"):X.setAttribute("disabled","disabled")},-W.addListener("stateChanged",v),q.addListener("enabledChanged",v),v());return X}function R(v,H,P){H=document.createElement("div");H.className="geButtonGroup";for(P=0;P<v.length;P++)null!=v[P]&&H.appendChild(v[P]);x.appendChild(H);return H}function c(){m=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var v=0;"1"==urlParams.embed&&null!=l.buttonContainer&&(v=l.buttonContainer.offsetWidth||300);x.innerHTML="";var H=m<1E3+v,P=F("diagram",null,H?Editor.menuImage:null);+mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(R){mxEvent.getSource(R)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var O=EditorUi.prototype.init;EditorUi.prototype.init=function(){function F(u,H,P){var T=l.menus.get(u);H=A.addMenu(mxResources.get(u),mxUtils.bind(this,function(){T.funct.apply(this,arguments)}));H.className="geButton";H.setAttribute("title",mxResources.get(u));l.menus.menuCreated(T,H,"geButton");null!=P&&+(H.style.backgroundImage="url("+P+")",H.innerText="");return H}function N(u,H,P,T,W,ha){var X=document.createElement("a");X.className="geButton";x.appendChild(X);null!=ha?X.style.backgroundImage="url("+ha+")":mxUtils.write(X,u);mxEvent.addListener(X,"click",function(ea){"disabled"!=X.getAttribute("disabled")&&H(ea);mxEvent.consume(ea)});mxEvent.preventDefault(X);null!=T&&X.setAttribute("title",T);null!=W&&(u=function(){W.isEnabled()?X.removeAttribute("disabled"):X.setAttribute("disabled","disabled")},+W.addListener("stateChanged",u),q.addListener("enabledChanged",u),u());return X}function R(u,H,P){H=document.createElement("div");H.className="geButtonGroup";for(P=0;P<u.length;P++)null!=u[P]&&H.appendChild(u[P]);x.appendChild(H);return H}function c(){m=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var u=0;"1"==urlParams.embed&&null!=l.buttonContainer&&(u=l.buttonContainer.offsetWidth||300);x.innerHTML="";var H=m<1E3+u,P=F("diagram",null,H?Editor.menuImage:null);R([P,N(mxResources.get("shapes"),l.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),l.actions.get("image"),H?Editor.shapesImage:null),N(mxResources.get("format"),l.actions.get("format").funct,null,mxResources.get("format")+" ("+l.actions.get("format").shortcut+")",l.actions.get("image"),H?Editor.formatImage:null)]);P=F("insert",!0,H?K:null);R([P,N(mxResources.get("delete"),l.actions.get("delete").funct,null,mxResources.get("delete"),l.actions.get("delete"),H?Editor.trashImage:null)]);-q.isEnabled()||P.setAttribute("disabled","disabled");Ca.setAttribute("title",mxResources.get("undo")+" ("+ka.shortcut+")");ia.setAttribute("title",mxResources.get("redo")+" ("+ua.shortcut+")");k.setAttribute("title",mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)");m>=411+v&&(R([Ca,ia]),m>=520+v&&R([k,m>=640+v?N("",aa.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",aa,Editor.zoomInImage):null,m>=640+v?N("",ja.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",ja,Editor.zoomOutImage):+q.isEnabled()||P.setAttribute("disabled","disabled");Ca.setAttribute("title",mxResources.get("undo")+" ("+ka.shortcut+")");ia.setAttribute("title",mxResources.get("redo")+" ("+ua.shortcut+")");k.setAttribute("title",mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)");m>=411+u&&(R([Ca,ia]),m>=520+u&&R([k,m>=640+u?N("",aa.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",aa,Editor.zoomInImage):null,m>=640+u?N("",ja.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",ja,Editor.zoomOutImage):null]));x.appendChild(l.statusContainer);x.appendChild(l.buttonContainer)}O.apply(this,arguments);var f=mxUtils.isAncestorNode(document.body,this.container)?this.container:this.editor.graph.container;null!=f&&(f.classList.add("geSimple"),f.classList.add("geMinimal"),f.classList.remove("geClassic"));this.sidebar=this.createSidebar(this.sidebarContainer);"0"!=urlParams.sidebar&&(1E3<=m||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])&&(d(this,!0),null!=this.sidebar&&null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes&&(this.sidebar.searchShapes(urlParams["search-shapes"]),this.sidebar.showEntries("search")));this.formatEnabled&&EditorUi.windowed&&1E3<=m&&(b(this,!0),this.formatWindow.window.setVisible(!0));var l=this,q=l.editor.graph;l.toolbar=this.createToolbar(l.createDiv("geToolbar"));var x=document.createElement("div");x.className="geMenubarContainer";var A=new Menubar(l,x),E=l.hideCurrentMenu;l.hideCurrentMenu=function(){E.apply(this,arguments);-null!=this.editor&&this.editor.graph.popupMenuHandler.hideMenu()};var J=l.descriptorChanged;l.descriptorChanged=function(){J.apply(this,arguments);var v=l.getCurrentFile();if(null!=v&&null!=v.getTitle()){var H=v.getMode();"google"==H?H="googleDrive":"github"==H?H="gitHub":"gitlab"==H?H="gitLab":"onedrive"==H&&(H="oneDrive");H=mxResources.get(H);x.setAttribute("title",v.getTitle()+(null!=H?" ("+H+")":""))}else x.removeAttribute("title")};l.setStatusText(l.editor.getStatus());x.appendChild(l.statusContainer);+null!=this.editor&&this.editor.graph.popupMenuHandler.hideMenu()};var J=l.descriptorChanged;l.descriptorChanged=function(){J.apply(this,arguments);var u=l.getCurrentFile();if(null!=u&&null!=u.getTitle()){var H=u.getMode();"google"==H?H="googleDrive":"github"==H?H="gitHub":"gitlab"==H?H="gitLab":"onedrive"==H&&(H="oneDrive");H=mxResources.get(H);x.setAttribute("title",u.getTitle()+(null!=H?" ("+H+")":""))}else x.removeAttribute("title")};l.setStatusText(l.editor.getStatus());x.appendChild(l.statusContainer);l.buttonContainer=this.createButtonContainer();x.appendChild(l.buttonContainer);l.menubarContainer=l.buttonContainer;l.tabContainer=this.createTabContainer();var Q=this.createZoomInput(!0),V=l.updateTabContainer;l.updateTabContainer=function(){V.apply(this,arguments);l.tabContainer.appendChild(Q)};var K=Editor.addBoxImage;if(null!=l.hoverIcons){var fa=l.hoverIcons.update;l.hoverIcons.update=function(){q.freehand.isDrawing()||fa.apply(this,arguments)}}if(null!=q.freehand){var Y=q.freehand.createStyle;-q.freehand.createStyle=function(v){return Y.apply(this,arguments)+"sketch=0;"}}l.editor.addListener("statusChanged",mxUtils.bind(this,function(){l.setStatusText(l.editor.getStatus())}));l.setStatusText(l.editor.getStatus());var aa=l.actions.get("zoomIn"),ja=l.actions.get("zoomOut");f=l.actions.get("resetView");var ka=l.actions.get("undo"),ua=l.actions.get("redo"),Ca=N("",ka.funct,null,"",ka,Editor.undoImage),ia=N("",ua.funct,null,"",ua,Editor.redoImage),k=N("",function(v){mxEvent.isAltDown(v)?(l.hideCurrentMenu(),-l.actions.get("customZoom").funct()):(l.hideCurrentMenu(),l.actions.get("smartFit").funct());mxEvent.consume(v)},!0,"",f,Editor.zoomFitImage);l.actions.get("toggleShapes").funct=mxUtils.bind(this,function(){d(l,null)});l.container.appendChild(l.tabContainer);l.container.appendChild(x);l.updateTabContainer();this.formatEnabled&&!EditorUi.windowed&&1E3<=m&&b(this,!0);c();l.addListener("lockedChanged",c);l.addListener("languageChanged",c);l.editor.graph.addListener("enabledChanged",c);mxEvent.addListener(window,+q.freehand.createStyle=function(u){return Y.apply(this,arguments)+"sketch=0;"}}l.editor.addListener("statusChanged",mxUtils.bind(this,function(){l.setStatusText(l.editor.getStatus())}));l.setStatusText(l.editor.getStatus());var aa=l.actions.get("zoomIn"),ja=l.actions.get("zoomOut");f=l.actions.get("resetView");var ka=l.actions.get("undo"),ua=l.actions.get("redo"),Ca=N("",ka.funct,null,"",ka,Editor.undoImage),ia=N("",ua.funct,null,"",ua,Editor.redoImage),k=N("",function(u){mxEvent.isAltDown(u)?(l.hideCurrentMenu(),+l.actions.get("customZoom").funct()):(l.hideCurrentMenu(),l.actions.get("smartFit").funct());mxEvent.consume(u)},!0,"",f,Editor.zoomFitImage);l.actions.get("toggleShapes").funct=mxUtils.bind(this,function(){d(l,null)});l.container.appendChild(l.tabContainer);l.container.appendChild(x);l.updateTabContainer();this.formatEnabled&&!EditorUi.windowed&&1E3<=m&&b(this,!0);c();l.addListener("lockedChanged",c);l.addListener("languageChanged",c);l.editor.graph.addListener("enabledChanged",c);mxEvent.addListener(window,"resize",function(){c();null!=l.sidebarWindow&&l.sidebarWindow.window.fit();null!=l.formatWindow&&l.formatWindow.window.fit();null!=l.actions.outlineWindow&&l.actions.outlineWindow.window.fit();null!=l.actions.layersWindow&&l.actions.layersWindow.window.fit();null!=l.menus.chatWindow&&l.menus.chatWindow.window.fit();null!=l.menus.tagsWindow&&l.menus.tagsWindow.window.fit();null!=l.menus.findWindow&&l.menus.findWindow.window.fit();null!=l.menus.findReplaceWindow&&l.menus.findReplaceWindow.window.fit()})}}};(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var d=EditorUi.initTheme;EditorUi.initTheme=function(){d.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,d,m,p,t,n,y){this.file=b;this.id=d;this.content=m;this.modifiedDate=p;this.createdDate=t;this.isResolved=n;this.user=y;this.anchor=null;this.replies=[]};DrawioComment.prototype.getAnchorPageId=function(){return null!=this.anchor?this.anchor.p:null};DrawioComment.prototype.getAnchorCellIds=function(){var b=null!=this.anchor?this.anchor.c:null;return null==b?null:b instanceof Array?b:[b]};DrawioComment.prototype.getAnchorCellId=function(){var b=this.getAnchorCellIds();return null!=b&&0<b.length?b[0]:null};DrawioComment.prototype.getAnchorRect=function(){return null!=this.anchor?this.anchor.r:null};DrawioComment.prototype.getAnchorPoint=function(){return null!=this.anchor?this.anchor.pt:null};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,d,m,p,t){d()};DrawioComment.prototype.editComment=function(b,d,m){d()};-DrawioComment.prototype.deleteComment=function(b,d){b()};DrawioUser=function(b,d,m,p,t){this.id=b;this.email=d;this.displayName=m;this.pictureUrl=p;this.locale=t};mxResources.parse('about=About\naiFreeModelHint=Start a new chat or shorten your message to send more.\naboutDrawio=About draw.io\naccessDenied=Access Denied\naccounts=Accounts\naction=Action\nactualSize=Actual Size\nadaptiveColors=Adaptive Colors\nadd=Add\naddAccount=Add Account\naddedFile=Added {1}\naddImages=Add Images\naddImageUrl=Add Image URL\naddLayer=Add Layer\naddProperty=Add Property\naddress=Address\naddToExistingDrawing=Add to Existing Drawing\naddToScratchpad=Add to Scratchpad\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nsmartTemplate=Smart Template\nalign=Align\nalignment=Alignment\nalignCellsLeft=Align Left\nalignCellsCenter=Align Center\nalignCellsRight=Align Right\nalignCellsTop=Align Top\nalignCellsMiddle=Align Middle\nalignCellsBottom=Align Bottom\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSelectedObjectsInThisLayer=All selected objects are in this layer\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\nallCells=All cells\nanimations=Flow Animations\ncell=cell\ncells=cells\nexcluded=Excluded\nexcludeSelection=Exclude selected cells\nlayer=Layer\nselectLayers=Select layers\ntransition=Transition\nmatch=Match\nmatchAll=All\nmatchAllHint=Match cells that have every selected tag (AND)\nmatchAny=Any\nmatchAnyHint=Match cells that have at least one selected tag (OR)\nduration=Duration (ms)\nfadeIn=Fade In\nfadeOut=Fade Out\nfadeTo=Fade To\nflow=Flow\nflowOff=Flow Off\nflowOn=Flow On\nhighlight=Highlight\nnoTagsInDiagram=No tags in this diagram yet.\noptional=optional\npopIn=Pop In\npopOut=Pop Out\nreorder=Drag to reorder\nreset=Reset\nscroll=Scroll To\nselectByTags=Select by tags\nselectCellsInDiagram=Select cells in diagram\ntag=Tag\nsetOpacity=Set Opacity\ntiming=Timing\ntoggle=Toggle\ntoggleStyle=Toggle Style\nuseSelection=Use selected cells\nvisibilityActions=Visibility\nwait=Wait\nwipeIn=Wipe In\nwipeOut=Wipe Out\narc=Arc\nareYouSure=Are you sure?\nensureDataSaved=Please ensure your data is saved before closing.\nallChangesSaved=All changes saved\nallChangesSavedInDrive=All changes saved in Drive\nallowPopups=Allow pop-ups to avoid this dialog.\nallowRelativeUrl=Allow relative URL\nalreadyConnected=Nodes already connected\nappearance=Appearance\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narea=Area\narrow=Arrow\narrows=Arrows\naskMeAnything=Ask me anything\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosizeText=Automatic Font Size\nautosize=Autosize\nattach=Attach\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nbeta=beta\nblankDrawing=Blank Drawing\nblankDiagram=Blank Diagram\nblock=Block\nblockquote=Blockquote\nblog=Blog\nbold=Bold\nbootstrap=Bootstrap\nborder=Border\nborderColor=Border Color\nborderWidth=Border Width\nbottom=Bottom\nbottomAlign=Bottom Align\nbottomLeft=Bottom Left\nbottomRight=Bottom Right\nbpmn=BPMN\nbringForward=Bring Forward\nbrowser=Browser\nbulletedList=Bulleted List\nbusiness=Business\nbusy=Operation in progress\ncabinets=Cabinets\ncancel=Cancel\ncenter=Center\ncannotLoad=Load attempts failed. Please try again later.\ncannotLogin=Log in attempts failed. Please try again later.\ncannotOpenFile=Cannot open file\nchange=Change\nchangeOrientation=Change Orientation\nchangeUser=Change User\nchangeStorage=Change Storage\nchangesNotSaved=Changes have not been saved\ncharactersRemaining={1} characters remaining\nclassDiagram=Class Diagram\nclosePath=Close Path\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nclickToAdd=Click on canvas to add points\ncollaborativeEditingNotice=Important Notice for Collaborative Editing\ncompare=Compare\ncompressed=Compressed\ncommitMessage=Commit Message\nconfigLinkWarn=This link configures draw.io. Only click OK if you trust whoever gave you it!\nconfigLinkConfirm=Click OK to configure and restart draw.io.\ncontainer=Container\ncsv=CSV\ncurrentLayer=Current Layer\ndark=Dark\ndiagramLanguage=Diagram Language\ndiagramType=Diagram Type\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndictate=Dictate\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndisabled=Disabled\ndraftFound=A draft for \'{1}\' has been found. Load it into the editor or discard it to continue.\ndraftRevisionMismatch=There is a different version of this diagram on a shared draft of this page. Please edit the diagram from the draft to ensure you are working with the latest version.\nselectDraft=Select a draft to continue editing:\ndragAndDropNotSupported=Drag and drop not supported for images. Would you like to import instead?\ndropboxCharsNotAllowed=The following characters are not allowed: / : ? * " |\ncheck=Check\nchecksum=Checksum\ncircle=Circle\ncisco=Cisco\nclassic=Classic\nclearDefaultStyle=Clear Default Style\nclearWaypoints=Clear Waypoints\nclipart=Clipart\nclipboard=Clipboard\nclose=Close\nclosingFile=Closing file\nrealtimeCollaboration=Real-Time Collaboration\ncollaborate=Collaborate\ncollaborator=Collaborator\ncollaborators=Collaborators\ncollapse=Collapse\ncollapseAll=Collapse All\ncollapseExpand=Collapse/Expand\ncollapse-expand=Click to collapse/expand\nShift-click to move neighbors \nAlt-click to protect group size\ncollapsible=Collapsible\ncomic=Comic\ncomment=Comment\ncommentsNotes=Comments/Notes\ncompress=Compress\nconfiguration=Configuration\nconnect=Connect\nconnectable=Connectable\nconnecting=Connecting\nconnectWithDrive=Connect with Google Drive\nconnection=Connection\nconnectionArrows=Connection Arrows\nconnectionPoints=Connection Points\nconstrainProportions=Constrain Proportions\ncontainsValidationErrors=Contains validation errors\ncopiedToClipboard=Copied to clipboard\ncopy=Copy\ncopyCreated=A copy of the file was created.\ncopyData=Copy Data\ncopyDiagramToClipboard=Copy Diagram to Clipboard\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySelectionToClipboard=Copy Selection to Clipboard\ncopySize=Copy Size\ncopyStyle=Copy Style\ncopyTextStyle=Copy Text Style\ncreate=Create\ncreateDiagram=Create Diagram\ncreateBlankDiagram=Create Blank Diagram\ncreateNewDiagram=Create New Diagram\ncreateRevision=Create Revision\ncreateShape=Create Shape\ncrop=Crop\ncurved=Curved\ncustom=Custom\ncurrent=Current\ncurrentPage=Current Page\ncut=Cut\ndashed=Dashed\ndecideLater=Decide Later\ndefault=Default\ndelete=Delete\ndeleteAll=Delete All\ndeleteColumn=Delete Column\ndeleteLibrary401=Insufficient permissions to delete this library\ndeleteLibrary404=Selected library could not be found\ndeleteLibrary500=Error deleting library\ndeleteLibraryConfirm=You are about to permanently delete this library. Are you sure you want to do this?\nremoveLibraryConfirm=You are about to remove this library for everyone. Only an administrator can recover it. Are you sure you want to do this?\ndeleteRow=Delete Row\ndescription=Description\ndescribeYourDiagram=Describe your diagram\ndevice=Device\ndiagram=Diagram\ndiagramContent=Diagram Content\ndiagramLocked=Diagram has been locked to prevent further data loss.\ndiagramLockedBySince=The diagram is locked by {1} since {2} ago\ndiagramName=Diagram Name\ndiagramIsPublic=Diagram is public\ndiagramIsNotPublic=Diagram is not public\ndiamond=Diamond\ndiamondThin=Diamond (thin)\ndidYouKnow=Did you know...\ndirection=Direction\ndiscard=Discard\ndiscardChangesAndReconnect=Discard Changes and Reconnect\ngoogleDriveMissingClickHere=Google Drive missing? Click here!\ndiscardChanges=Discard Changes\ndisconnected=Disconnected\ndistribute=Distribute\ndistributeHorizontal=Distribute Horizontally\ndistributeVertical=Distribute Vertically\ndone=Done\ndoNotShowAgain=Do not show again\ndotted=Dotted\ndoubleClickOrientation=Doubleclick to change orientation\ndoubleClickTooltip=Doubleclick to insert text\ndoubleClickChangeProperty=Doubleclick to change property name\ndownload=Download\ndownloadDesktop=Get Desktop\ndownloadAs=Download as\nclickHereToSave=Click here to save.\ndpi=DPI\ndraftDiscarded=Draft discarded\ndraftSaved=Draft saved\ndragElementsHere=Drag elements here\ndragImagesHere=Drag images or URLs here\ndragUrlsHere=Drag URLs here\ndraw.io=draw.io\ndrawing=Drawing{1}\ndrawingEmpty=Drawing is empty\ndrawingTooLarge=Drawing is too large\ndrawioForWork=Draw.io for GSuite\ndropbox=Dropbox\nduplicate=Duplicate\nduplicateIt=Duplicate {1}\ndivider=Divider\ndx=Dx\ndy=Dy\neast=East\nedit=Edit\neditData=Edit Data\neditDiagram=Edit Diagram\neditGeometry=Edit Geometry\neditImage=Edit Image\neditImageUrl=Edit Image URL\neditLink=Edit Link\neditor=Editor\neditPolygon=Edit Polygon\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditNote=Edit Note\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\neffects=Effects\nembed=Embed\nembedCellMetadata=Cell Metadata\nembedFonts=Embed Fonts\nembedImages=Embed Images\nmainEmbedNotice=Paste this into the page\nelectrical=Electrical\nellipse=Ellipse\nembedNotice=Paste this once at the end of the page\nenterGroup=Enter Group\nenterName=Enter Name\nenterPropertyName=Enter Property Name\nenterValue=Enter Value\nentityRelation=Entity Relation\nentityRelationshipDiagram=Entity Relationship Diagram\nerror=Error\nerrorDeletingFile=Error deleting file\nerrorLoadingFile=Error loading file\nerrorRenamingFile=Error renaming file\nerrorRenamingFileNotFound=Error renaming file. File was not found.\nerrorRenamingFileForbidden=Error renaming file. Insufficient access rights.\nerrorSavingDraft=Error saving draft\nerrorSavingFile=Error saving file\nerrorSavingFileUnknown=Error authorizing with Google\'s servers. Please refresh the page to re-attempt.\nerrorSavingFileForbidden=Error saving file. Insufficient access rights.\nerrorSavingFileNameConflict=Could not save diagram. Current page already contains file named \'{1}\'.\nerrorSavingFileNotFound=Error saving file. File was not found.\nerrorSavingFileReadOnlyMode=Could not save diagram while read-only mode is active.\nerrorSavingFileSessionTimeout=Your session has ended. Please <a target=\'_blank\' href=\'{1}\'>{2}</a> and return to this tab to try to save again.\nerrorSendingFeedback=Error sending feedback.\nerrorUpdatingPreview=Error updating preview.\nexit=Exit\nexitGroup=Exit Group\nexpand=Expand\nexpandAll=Expand All\nexplore=Explore\nexport=Export\nexporting=Exporting\nexportAs=Export as\nexportOptionsDisabled=Export options disabled\nexportOptionsDisabledDetails=The owner has disabled options to download, print or copy for commenters and viewers on this file.\nexternalChanges=External Changes\nextras=Extras\nfailedToSaveTryReconnect=Failed to save, trying to reconnect\nfeatureRequest=Feature Request\nfeedback=Feedback\nfeedbackSent=Feedback successfully sent.\nfloorplans=Floorplans\nfile=File\nfileChangedOverwriteDialog=The file has been modified. Do you want to save the file and overwrite those changes?\nfileChangedSyncDialog=The file has been modified.\nfileChangedSync=The file has been modified. Click here to synchronize.\noverwrite=Overwrite\nsynchronize=Synchronize\nfilename=Filename\nfileExists=File already exists\nfileMovedToTrash=File was moved to trash\nfileNearlyFullSeeFaq=File nearly full, please see FAQ\nfileNotFound=File not found\nrepositoryNotFound=Repository not found\nfileNotFoundOrDenied=The file was not found. It does not exist or you do not have access.\nfileNotLoaded=File not loaded\nfileNotSaved=File not saved\nfileOpenLocation=How would you like to open these file(s)?\nfiletypeHtml=.html causes file to save as HTML with redirect to cloud URL\nfiletypePng=.png causes file to save as PNG with embedded data\nfiletypeSvg=.svg causes file to save as SVG with embedded data\nfileWillBeSavedInAppFolder={1} will be saved in the app folder.\nfill=Fill\nfillColor=Fill Color\nfilterCards=Filter Cards\nfind=Find\nfindInDiagram=Find in Diagram\nfit=Fit\nfitContainer=Resize Container\nfitIntoContainer=Fit into Container\nfitPage=Fit Page\nfitPageWidth=Fit Page Width\nfitTextToShape=Fit Text to Shape\nfitTo=Fit to\nfitToSheetsAcross=sheet(s) across\nfitToBy=by\nfitToSheetsDown=sheet(s) down\nfitTwoPages=Two Pages\nfitWindow=Fit Window\nflip=Flip\nflipH=Flip Horizontal\nflipV=Flip Vertical\nflowAnimation=Flow Animation\nflowchart=Flowchart\nfolder=Folder\nfont=Font\nfontColor=Font Color\nfontFamily=Font Family\nfontSize=Font Size\nforbidden=You are not authorized to access this file\nforceDirected=Force-directed\nformat=Format\nformatAnimatedGif=Animated GIF\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatJson=JSON\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatVsdx=VSDX\nformatWebp=WebP\nformatXml=XML\nforum=Discussion/Help Forums\nfreehand=Freehand\nfromTemplate=From Template\nfromTemplateUrl=From Template URL\nfromText=From Text\nfromUrl=From URL\nfromThisPage=From this page\nfullscreen=Fullscreen\ngap=Gap\ngcp=GCP\ngDriveAppFilesOnly=Only files created or opened with draw.io in Google Drive are listed. To add another file, open it once at app.diagrams.net.\ngeneral=General\ngetNotionChromeExtension=Get the Notion Chrome Extension\ngithub=GitHub\ngitlab=GitLab\ngliffy=Gliffy\nglobal=Global\ngoogleDocs=Google Docs\ngoogleDrive=Google Drive\ngoogleGadget=Google Gadget\ngoogleSharingNotAvailable=Sharing is only available via Google Drive. Please click Open below and share from the more actions menu:\ngoogleSlides=Google Slides\ngoogleSites=Google Sites\ngoogleSheets=Google Sheets\ngradient=Gradient\ngradientColor=Color\ngrid=Grid\ngridColor=Grid Color\ngridSize=Grid Size\ngroup=Group\ngroupPadding=Group Padding\nguides=Guides\nheading=Heading\nheight=Height\nhelp=Help\nhelpTranslate=Help us translate this application\nhide=Hide\nhideIt=Hide {1}\nhidden=Hidden\nshiftClickShowOnly=Shift+click: show only {1}\nhighContrast=High Contrast\nhome=Home\nhorizontal=Horizontal\nhorizontalFlow=Horizontal Flow\nhorizontalTree=Horizontal Tree\nhowTranslate=How good is the translation in your language?\nhtml=HTML\nhtmlText=HTML Text\nicons=Icons\nid=ID\niframe=IFrame\nignore=Ignore\nimage=Image\nimageClicked=Image copied to clipboard\nimageUrl=Image URL\nimages=Images\nimagePreviewError=This image couldn\'t be loaded for preview. Please check the URL.\nimageTooBig=Image too big\nimgur=Imgur\nimmediate=Immediate\nimport=Import\nimportFrom=Import from\nincludeCopyOfMyDiagram=Include a copy of my diagram\nincreaseIndent=Increase Indent\ndecreaseIndent=Decrease Indent\ninherit=Inherit\ninitialPage=Initial Page\ninitialView=Initial View\ninsert=Insert\ninsertColumnBefore=Insert Column Left\ninsertColumnAfter=Insert Column Right\ninsertDiagramFromClipboard=Insert Diagram from Clipboard\ninsertEllipse=Insert Ellipse\ninsertImage=Insert Image\ninsertHorizontalRule=Insert Horizontal Rule\ninsertLink=Insert Link\ninsertPage=Insert Page\ninsertRectangle=Insert Rectangle\ninsertRhombus=Insert Rhombus\ninsertRowBefore=Insert Row Above\ninsertRowAfter=Insert Row After\ninsertText=Insert Text\ninserting=Inserting\ninstallApp=Install App\ninvalidFilename=Diagram names must not contain the following characters: / | : ; { } < > & + ? = "\ninvalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://www.drawio.com/doc/faq/license-drawio-confluence-jira-cloud">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\ninvertSelection=Invert Selection\nisometric=Isometric\nios=iOS\nitalic=Italic\nkennedy=Kennedy\nkeyboardShortcuts=Keyboard Shortcuts\nlabels=Labels\nlabelPadding=Label Padding\nlabelWidth=Label Width\nlayers=Layers\nlandscape=Landscape\nlanguage=Language\nleanMapping=Lean Mapping\nlastChange=Last change {1} ago\nlessThanAMinute=less than a minute\nlibavoidAutoRoute=Auto-route around shapes\nlibavoidUnavailable=Orthogonal routing is not available in this browser.\nlicensingError=Licensing Error\nlicenseHasExpired=The license for {1} has expired on {2}. Click here.\nlicenseRequired=This feature requires draw.io to be licensed.\nlicenseWillExpire=The license for {1} will expire on {2}. Click here.\nlight=Light\nlineJumps=Line Jumps\nlinkAccountRequired=If the diagram is not public a Google account is required to view the link.\nlinkIcons=Link Icons\nlinkText=Link Text\ntooltipIcons=Tooltip Icons\nlist=List\nminute=minute\nminutes=minutes\nhours=hours\ndays=days\nmonths=months\nyears=years\nrestartForChangeRequired=Changes will take effect after a restart of the application.\nlaneColor=Lanecolor\nlanguageCode=Language Code\nlastModified=Last modified\nlayout=Layout\nleft=Left\nleftAlign=Left Align\nleftToRight=Left to Right\nlibraryTooltip=Drag and drop shapes here or click + to insert. Double click to edit.\nlightbox=Lightbox\nlightboxAnimationHint=Plays automatically when the page is shown in lightbox mode.\nline=Line\nlineend=Line End\nlineheight=Line Height\nlinestart=Line Start\nlinewidth=Linewidth\nlink=Link\nlinks=Links\nloading=Loading\nlock=Lock\nlocked=Locked\nlockUnlock=Lock/Unlock\nloggedOut=Logged Out\nlogIn=log in\nloop=Loop\nlucidchart=Lucidchart\nmaps=Maps\nmathematicalTypesetting=Mathematical Typesetting\nmakeCopy=Make a Copy\nmanual=Manual\nmaximize=Maximize\nmerge=Merge\nmermaid=Mermaid\nmethod=Method\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nminimize=Minimize\nmisc=Misc\nmockups=Mockups\nmodern=Modern\nmodificationDate=Modification date\nmodifiedBy=Modified by\nmore=More\nmoreResults=More Results\nmoreShapes=More Shapes\nmove=Move\nmoveToFolder=Move to Folder\nmoving=Moving\nmoveSelectionTo=Move Selection to {1}\nmultipleValues=Multiple values\nmyDrive=My Drive\nmyFiles=My Files\nname=Name\nnavigation=Navigation\nnetwork=Network\nnetworking=Networking\nnew=New\nnewChat=New Chat\nnewLibrary=New Library\nnextPage=Next Page\nno=No\nnoPickFolder=No, pick folder\nnoAttachments=No attachments found\nnoColor=No Color\nnoFiles=No Files\nnoFileSelected=No file selected\nnoAnimationsInDiagram=No animations found in diagram\nnoLibraries=No libraries found\nnoMoreResults=No more results\nnone=None\nnoOtherViewers=No other viewers\nnoPlugins=No plugins\nnoPreview=No preview\nnoResponse=No response from server\nnoResultsFor=No results for \'{1}\'\nnoRevisions=No revisions\nnoSearchResults=No search results found\nnoStepsYet=No steps yet. Add the first step below.\nnoPageContentOrNotSaved=No anchors found on this page or it hasn\'t been saved yet\nnormal=Normal\nnorth=North\nnotADiagramFile=Not a diagram file\nnotALibraryFile=Not a library file\nnotAvailable=Not available\nnotAUtf8File=Not a UTF-8 file\nnotConnected=Not connected\nnote=Note\nnotes=Notes\nnotion=Notion\nnotSatisfiedWithImport=Not satisfied with the import?\nnotUsingService=Not using {1}?\nnumberedList=Numbered List\noffline=Offline\naddToLibrary=Add to Library\nanimation=Animation\nbool=Boolean\ncannotMoveOneDrive=Moving a file between accounts is not supported yet.\ncode=Code\ncolor=Color\ndispName=Display Name\nenum=Enumeration\nenumList=Enum List\nfast=Fast\nfloat=Float\nforever=Forever\nint=Int\ninvalid=invalid\nloops=Loops\nmedium=Medium\nslow=Slow\nspeed=Speed\nstring=String\nmanage=Manage\nofflineLanguages=Languages available offline\nok=OK\noneDrive=OneDrive\nonline=Online\nopacity=Opacity\nopen=Open\nopenArrow=Open Arrow\nopenExistingDiagram=Open Existing Diagram\nopenFile=Open File\nopenFrom=Open from\nopenLibrary=Open Library\nopenLibraryFrom=Open Library from\nopenLink=Open Link\nopenInNewWindow=Open in New Window\nopenInThisWindow=Open in This Window\nopenIt=Open {1}\nopenRecent=Open Recent\nopenRepairedCopy=Open repaired copy\nopenSupported=Supported formats are files saved from this software (.xml), .vsdx and .gliffy\noptions=Options\norganic=Organic\norgChart=Org Chart\northogonal=Orthogonal\northogonalRouting=Orthogonal Routing\notherViewer=other viewer\notherViewers=other viewers\noutline=Outline\noval=Oval\npage=Page\npageContent=Page Content\npageNotFound=Page not found\npageWithNumber=Page-{1}\npages=Pages\npageTabs=Page Tabs\npageView=Page View\npageSetup=Page Setup\npageScale=Page Scale\npan=Pan\npanTooltip=Space+Drag to pan\npaperSize=Paper Size\npattern=Pattern\nparallels=Parallels\npaste=Paste\npasteData=Paste Data\npasteHere=Paste Here\npasteResponse=Paste Response\npasteSize=Paste Size\npasteStyle=Paste Style\npasteTextStyle=Paste Text Style\nperimeter=Perimeter\npermissionAnyone=Anyone can edit\npermissionAuthor=Owner and admins can edit\npickFolder=Pick a folder\npickLibraryDialogTitle=Select Library\npublicDiagramUrl=Public URL of the diagram\nplaceholders=Placeholders\nplantUml=PlantUML\nplugins=Plugins\npluginUrl=Plugin URL\npluginWarning=The page has requested to load the following plugin(s):\n \n {1}\n \n Would you like to load these plugin(s) now?\n \n NOTE : Only allow plugins to run if you fully understand the security implications of doing so.\n\nplusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone).\npolygon=Polygon\nportrait=Portrait\npoint=Point\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\npresentationMode=Presentation Mode\nprint=Print\nprocEng=Process Engineering\nproject=Project\npriority=Priority\nprocessForHiringNewEmployee=Process for hiring a new employee\npromptOnly=Prompt Only\npromptTooLarge=Only {1} characters allowed in the free version using the draw.io model\npromptWithDiagram=Prompt with Diagram\npromptWithSelection=Prompt with Selection\nproperties=Properties\npublish=Publish\nquickStart=Quick Start Video\nrack=Rack\nradial=Radial\nradialTree=Radial Tree\nreadOnly=Read-only\nreconnecting=Reconnecting\nrecentlyUpdated=Recently Updated\nrecentlyViewed=Recently Viewed\nrectangle=Rectangle\nredirectToNewApp=This file was created or modified in a newer version of this app. You will be redirected now.\nrealtimeTimeout=It looks like you\'ve made a few changes while offline. We\'re sorry, these changes cannot be saved.\nredo=Redo\nrefresh=Refresh\nregularExpression=Regular Expression\nrelative=Relative\nrelativeUrlNotAllowed=Relative URL not allowed\nretry=Retry\nrememberMe=Remember Me\nrememberThisSetting=Remember This Setting\nremoveFormat=Clear Formatting\nremoveFromGroup=Remove from Group\nremoveIt=Remove {1}\nremoveWaypoint=Remove Waypoint\nrename=Rename\nrenamed=Renamed\nrenameIt=Rename {1}\nrenaming=Renaming\nreplace=Replace\nreplaceIt={1} already exists. Do you want to replace it?\nreplaceExistingDrawing=Replace Existing Drawing\nrequired=required\nrequirementDiagram=Requirement Diagram\nresetView=Reset View\nresize=Resize\nresizeLargeImages=Do you want to resize large images to make the application run faster?\nretina=Retina\nresponsive=Responsive\nrestore=Restore\nrestoreBackupCopy=Open backup as copy\nrecover=Recover…\nrecoverTitle=Recover file\nrecoverVersionFrom=Version from {1}\nrecoverPreviousVersion=Previous version\nrecoveryVersionDesc=A previously saved version. Complete, but any changes made since then are not included.\nrecoveryRepairedDesc=The current file with a best-effort repair. Recent, but content after the damaged point may be missing.\nrecoveryWarning=This is a best-effort recovery and may be missing content. It will open as a new unsaved copy and your original file is not changed. Continue?\nrestoring=Restoring\nretryingIn=Retrying in {1} second(s)\nretryingLoad=Load failed. Retrying...\nretryingLogin=Login time out. Retrying...\nreverse=Reverse\nrevision=Revision\nrevisionHistory=Revision History\nrhombus=Rhombus\nright=Right\nrightAlign=Right Align\nrightToLeft=Right to Left\nrotate=Rotate\nrotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees\nrotation=Rotation\nrounded=Rounded\nrunLastLayout=Run Last Layout\nsave=Save\nsaveAndExit=Save & Exit\nsaveAs=Save as\nsaveAsXmlFile=Save as XML file?\nsaved=Saved\nsaveDiagramFirst=Please save the diagram first\nsaveDiagramsTo=Save diagrams to\nsaveLibrary403=Insufficient permissions to edit this library\nsaveLibrary500=There was an error while saving the library\nsaveLibraryReadOnly=Could not save library while read-only mode is active\nsaving=Saving\nscratchpad=Scratchpad\nscrollbars=Scrollbars\nsearch=Search\nsearchImages=Search Images\nsearchShapes=Search Shapes\nsearchShapesInOpenLibraries=Search Shapes in Open Libraries\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectedPage=Selected Page\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselection=Selection\nselectNone=Select None\nselectObjectsInLayer=Select Objects in Layer\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nsequenceDiagram=Sequence Diagram\nserviceUnavailableOrBlocked=Service unavailable or blocked\nsessionExpired=Your session has expired. Please refresh the browser window.\nsessionTimeoutOnSave=Your session has timed out and you have been disconnected from the Google Drive. Press OK to login and save.\nsetAsDefaultStyle=Set as Default Style\nsettings=Settings\nshadow=Shadow\nshadows=Shadows\nshape=Shape\nshapeDeleted=Shape deleted\nshapes=Shapes\nshare=Share\nshareCursor=Share Mouse Cursor\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsaveItToGoogleDriveToCollaborate=You\'ll need to save "{1}" to Google Drive before you can collaborate.\nsaveToGoogleDrive=Save to Google Drive\nsharp=Sharp\nshow=Show\nshowRemoteCursors=Show Remote Mouse Cursors\nsidebarTooltip=Click or drag and drop shapes. Shift+click to change selection. Alt+click to insert and connect.\nsigns=Signs\nsignOut=Sign out\nsimple=Simple\nsimpleArrow=Simple Arrow\nsimpleViewer=Simple Viewer\nsize=Size\nsketch=Sketch\nsmoothing=Smoothing\nsnapToGrid=Snap to Grid\nsolid=Solid\nsortPages=Sort Pages\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstateDiagram=State Diagram\nstandard=Standard\nstartDrawing=Start Drawing\nstopDrawing=Stop Drawing\nstarting=Starting\nstraight=Straight\nstrikethrough=Strikethrough\nstrokeColor=Line Color\nstress=Stress\nstyle=Style\nsubscript=Subscript\nsummary=Summary\nsuperscript=Superscript\nsupport=Support\nswap=Swap\nswimlaneDiagram=Swimlane Diagram\nsysml=SysML\ntags=Tags\ntable=Table\ntables=Tables\ntakeOver=Take Over\ntargetSpacing=Target Spacing\ntemplate=Template\ntemplates=Templates\ntext=Text\ntextAlignment=Text Alignment\ntextOpacity=Text Opacity\ntheme=Theme\ntimeout=Timeout\ntitle=Title\nto=to\ntoBack=To Back\ntoFront=To Front\ntooLargeUseDownload=Too large, use download instead.\ntoolbar=Toolbar\ntooltips=Tooltips\ntop=Top\ntopAlign=Top Align\ntopLeft=Top Left\ntopRight=Top Right\ntransparent=Transparent\ntransparentBackground=Transparent Background\ntrello=Trello\ntryAgain=Try again\ntryOpeningViaThisPage=Try opening via this page, then click "Open with draw.io" button in the top right corner.\nturn=Rotate Shape Only by 90°\ntype=Type\ntypeSlashToSearch=Type / to search\numl=UML\nunassigned=Unassigned\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunlock=Unlock\nunmerge=Unmerge\nunsavedChanges=Unsaved changes\nunsavedChangesClickHereToSave=Unsaved changes. Click here to save.\nuntitled=Untitled\nuntitledDiagram=Untitled Diagram\nuntitledLayer=Untitled Layer\nuntitledLibrary=Untitled Library\nunknownError=Unknown error\nunknownUser=Unknown user\nupdateDiagramFromClipboard=Update diagram from clipboard\nupdateExistingDrawing=Update existing drawing\nupdateFile=Update {1}\nupdatingDocument=Updating document. Please wait...\nupdatingPreview=Updating preview. Please wait...\nupdatingSelection=Updating selection. Please wait...\nupload=Upload\nurl=URL\nuseBlackAndWhite=Use Black and White\nuseCurrent=Use Current\nuseCurrentSettings=Use Current Settings\nuseOffline=Use Offline\nuserDefined=User-defined\nuseRootFolder=Use root folder?\nuserManual=User Manual\nvertical=Vertical\nverticalFlow=Vertical Flow\nverticalTree=Vertical Tree\nview=View\nviewerSettings=Viewer Settings\nviewUrl=Link to view: {1}\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwhere=Where\nwidth=Width\nwiki=Wiki\nwordWrap=Word Wrap\nwritingDirection=Writing Direction\nyes=Yes\nyourEmailAddress=Your email address\nzoom=Zoom\nzoomIn=Zoom In\nzoomOut=Zoom Out\nbusinessprocess=Business Processes\ncharts=Charts\nengineering=Engineering\nflowcharts=Flowcharts\ngmdl=Material Design\nmindmaps=Mindmaps\nnetworkdiagrams=Network Diagrams\nnothingIsSelected=Nothing is selected\nother=Other\nsoftwaredesign=Software Design\nvenndiagrams=Venn Diagrams\nwebEmailOrOther=Web, email or any other internet address\nwebLink=Web Link\nwireframes=Wireframes\nproperty=Property\nvalue=Value\nshowMore=Show More\nshowLess=Show Less\nmyDiagrams=My Diagrams\nallDiagrams=All Diagrams\nrecentlyUsed=Recently Used\nlistView=List View\ngridView=Grid View\nresultsFor=Results for \'{1}\'\noneDriveCharsNotAllowed=The following characters are not allowed: ~ " # % * : < > ? / { | }\noneDriveInvalidDeviceName=The specified device name is invalid\nofficeNotLoggedOD=You are not logged in to OneDrive. Please open draw.io task pane and login first.\nofficeSelectSingleDiag=Please select a single draw.io diagram only without other contents.\nofficeSelectDiag=Please select a draw.io diagram.\nofficeCannotFindDiagram=Cannot find a draw.io diagram in the selection\nnoDiagrams=No diagrams found\nauthFailed=Authentication failed\nofficeFailedAuthMsg=Unable to successfully authenticate user or authorize application.\nconvertingDiagramFailed=Converting diagram failed\nofficeCopyImgErrMsg=Due to some limitations in the host application, the image could not be inserted. Please manually copy the image then paste it to the document.\ninsertingImageFailed=Inserting image failed\nofficeCopyImgInst=Instructions: Right-click the image below. Select "Copy image" from the context menu. Then, in the document, right-click and select "Paste" from the context menu.\nfolderEmpty=Folder is empty\nrecent=Recent\nsharedWithMe=Shared With Me\nsharepointSites=Sharepoint Sites\nerrorFetchingFolder=Error fetching folder items\nerrorAuthOD=Error authenticating to OneDrive\nofficeMainHeader=Adds draw.io diagrams to your document.\nofficeStepsHeader=This add-in performs the following steps:\nofficeStep1=Connects to Microsoft OneDrive, Google Drive or your device.\nofficeStep2=Select a draw.io diagram.\nofficeStep3=Insert the diagram into the document.\nofficeAuthPopupInfo=Please complete the authentication in the pop-up window.\nofficeSelDiag=Select draw.io Diagram:\nfiles=Files\nshared=Shared\nsharepoint=Sharepoint\nofficeManualUpdateInst=Instructions: Copy draw.io diagram from the document. Then, in the box below, right-click and select "Paste" from the context menu.\nofficeClickToEdit=Click icon to start editing:\npasteDiagram=Paste draw.io diagram here\nconnectOD=Connect to OneDrive\nselectChildren=Select Children\nselectSiblings=Select Siblings\nselectParent=Select Parent\nselectDescendants=Select Descendants\nlastSaved=Last saved {1} ago\nresolve=Resolve\nreopen=Re-open\nshowResolved=Show Resolved\nreply=Reply\nobjectNotFound=Object not found\nreOpened=Re-opened\nmarkedAsResolved=Marked as resolved\nnoCommentsFound=No comments found\nmentionNoNotify=People you mention are not notified\ncomments=Comments\ntimeAgo={1} ago\nconfluenceCloud=Confluence Cloud\nlibraries=Libraries\nconfAnchor=Confluence Page Anchor\nconfTimeout=The connection has timed out\nconfSrvTakeTooLong=The server at {1} is taking too long to respond.\nconfCannotInsertNew=Cannot insert draw.io diagram to a new Confluence page\nconfSaveTry=Please save the page and try again.\nconfCannotGetID=Unable to determine page ID\nconfContactAdmin=Please contact your Confluence administrator.\nreadErr=Read Error\neditingErr=Editing Error\nconfExtEditNotPossible=This diagram cannot be edited externally. Please try editing it while editing the page\nconfEditedExt=Diagram/Page edited externally\ndiagNotFound=Diagram Not Found\nconfEditedExtRefresh=Diagram/Page is edited externally. Please refresh the page.\nconfCannotEditDraftDelOrExt=Cannot edit diagrams in a draft page, diagram is deleted from the page, or diagram is edited externally. Please check the page.\nretBack=Return back\nconfDiagNotPublished=The diagram does not belong to a published page\ncreatedByDraw=Created by draw.io\nfilenameShort=Filename too short\ninvalidChars=Invalid characters\nalreadyExst={1} already exists\ndraftReadErr=Draft read error\ndiagCantLoad=Diagram cannot be loaded\ndraftWriteErr=Draft write error\ndraftCantCreate=Draft could not be created\nconfDuplName=Duplicate diagram name detected. Please pick another name.\nconfSessionExpired=Looks like your session expired. Log in again to keep working.\nlogin=Login\ndrawPrev=draw.io preview\ndrawDiag=draw.io diagram\ninvalidCallFnNotFound=Invalid Call: {1} not found\ninvalidCallErrOccured=Invalid Call: An error occurred, {1}\nanonymous=Anonymous\nconfGotoPage=Go to containing page\nshowComments=Show Comments\nconfError=Error: {1}\ngliffyImport=Gliffy Import\ngliffyImportInst1=Click the "Start Import" button to import all Gliffy diagrams to draw.io.\ngliffyImportInst2=Please note that the import procedure will take some time and the browser window must remain open until the import is completed.\nstartImport=Start Import\ndrawConfig=draw.io Configuration\ncustomLib=Custom Libraries\ncustomTemp=Custom Templates\npageIdsExp=Page IDs Export\ndrawReindex=draw.io re-indexing\nworking=Working\ndrawConfigNotFoundInst=draw.io Configuration Space (DRAWIOCONFIG) does not exist. This space is needed to store draw.io configuration files and custom libraries/templates.\ncreateConfSp=Create Config Space\nunexpErrRefresh=Unexpected error, please refresh the page and try again.\nconfigJSONInst=Write draw.io JSON configuration in the editor below then click save. If you need help, please refer to\nthisPage=this page\ncurCustLib=Current Custom Libraries\nlibName=Library Name\ndrawConfID=draw.io Config ID\naddLibInst=Click the "Add Library" button to upload a new library.\naddLib=Add Library\ncustomTempInst1=Custom templates are draw.io diagrams saved in children pages of\ncustomTempInst2=For more details, please refer to\ntempsPage=Templates page\npageIdsExpInst1=Select export target, then click the "Start Export" button to export all pages IDs.\npageIdsExpInst2=Please note that the export procedure will take some time and the browser window must remain open until the export is completed.\nstartExp=Start Export\nrefreshDrawIndex=Refresh draw.io Diagrams Index\nreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.\nreindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.\nstartIndexing=Start Indexing\nconfAPageFoundFetch=Page "{1}" found. Fetching\nconfAAllDiagDone=All {1} diagrams processed. Process finished.\nconfAStartedProcessing=Started processing page "{1}"\nconfAAllDiagInPageDone=All {1} diagrams in page "{2}" processed successfully.\nconfAPartialDiagDone={1} out of {2} {3} diagrams in page "{4}" processed successfully.\nconfAUpdatePageFailed=Updating page "{1}" failed.\nconfANoDiagFoundInPage=No {1} diagrams found in page "{2}".\nconfAFetchPageFailed=Fetching the page failed.\nconfANoDiagFound=No {1} diagrams found. Process finished.\nconfASearchFailed=Searching for {1} diagrams failed. Please try again later.\nconfAGliffyDiagFound={2} diagram "{1}" found. Importing\nconfAGliffyDiagImported={2} diagram "{1}" imported successfully.\nconfASavingImpGliffyFailed=Saving imported {2} diagram "{1}" failed.\nconfAImportedFromByDraw=Imported from "{1}" by draw.io\nconfAImportGliffyFailed=Importing {2} diagram "{1}" failed.\nconfAFetchGliffyFailed=Fetching {2} diagram "{1}" failed.\nconfACheckBrokenDiagLnk=Checking for broken diagrams links.\nconfADelDiagLinkOf=Deleting diagram link of "{1}"\nconfADupLnk=(duplicate link)\nconfADelDiagLnkFailed=Deleting diagram link of "{1}" failed.\nconfAUnexpErrProcessPage=Unexpected error during processing the page with id: {1}\nconfADiagFoundIndex=Diagram "{1}" found. Indexing\nconfADiagIndexSucc=Diagram "{1}" indexed successfully.\nconfAIndexDiagFailed=Indexing diagram "{1}" failed.\nconfASkipDiagOtherPage=Skipped "{1}" as it belongs to another page!\nconfADiagUptoDate=Diagram "{1}" is up to date.\nconfACheckPagesWDraw=Checking pages having draw.io diagrams.\nconfAErrOccured=An error occurred!\nsavedSucc=Saved successfully\nconfASaveFailedErr=Saving failed (unexpected error)\ncharacter=Character\nconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachment\nconfALibPageDesc=This page contains draw.io custom libraries as attachments\nconfATempPageDesc=This page contains draw.io custom templates as attachments\nconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templates\nconfANoCustLib=No Custom Libraries\ndelFailed=Delete failed!\nshowID=Show ID\nconfAIncorrectLibFileType=Incorrect file type. Libraries should be XML files.\nuploading=Uploading\nconfALibExist=This library already exists\nconfAUploadSucc=Uploaded successfully\nconfAUploadFailErr=Upload failed (unexpected error)\nhiResPreview=High Resolution Preview\nofficeNotLoggedGD=You are not logged in to Google Drive. Please open draw.io task pane and login first.\nofficePopupInfo=Please complete the process in the pop-up window.\npickODFile=Pick OneDrive File\ncreateODFile=Create OneDrive File\npickGDriveFile=Pick Google Drive File\ncreateGDriveFile=Create Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\ntryVssDraw=Try importing the file at {1}\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nminTwoPoints=At least 2 points required\nconfEditDraftDelOrExt=This diagram is in a draft page, is deleted from the page, or is edited externally. It will be saved as a new attachment version and may not be reflected in the page.\nconfDiagEditedExt=Diagram is edited in another session. It will be saved as a new attachment version but the page will show other session\'s modifications.\nmacroNotFound=Macro Not Found\nconfAInvalidPageIdsFormat=Incorrect Page IDs file format\nconfACollectingCurPages=Collecting current pages\nconfABuildingPagesMap=Building pages mapping\nconfAProcessDrawDiag=Started processing imported draw.io diagrams\nconfAProcessDrawDiagDone=Finished processing imported draw.io diagrams\nconfAProcessImpPages=Started processing imported pages\nconfAErrPrcsDiagInPage=Error processing draw.io diagrams in page "{1}"\nconfAPrcsDiagInPage=Processing draw.io diagrams in page "{1}"\nconfAImpDiagram=Importing diagram "{1}"\nconfAImpDiagramFailed=Importing diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\nconfAImpDiagramError=Error importing diagram "{1}". Cannot fetch or save the diagram. Cannot fix this diagram links.\nconfAUpdateDgrmCCFailed=Updating link to diagram "{1}" failed.\nconfImpDiagramSuccess=Updating diagram "{1}" done successfully.\nconfANoLnksInDrgm=No links to update in: {1}\nconfAUpdateLnkToPg=Updated link to page: "{1}" in diagram: "{2}"\nconfAUpdateLBLnkToPg=Updated lightbox link to page: "{1}" in diagram: "{2}"\nconfAUpdateLnkBase=Updated base URL from: "{1}" to: "{2}" in diagram: "{3}"\nconfAPageIdsImpDone=Page IDs import finished\nconfAPrcsMacrosInPage=Processing draw.io macros in page "{1}"\nconfAErrFetchPage=Error fetching page "{1}"\nconfAFixingMacro=Fixing macro of diagram "{1}"\nconfAErrReadingExpFile=Error reading export file\nconfAPrcsDiagInPageDone=Processing draw.io diagrams in page "{1}" finished\nconfAFixingMacroSkipped=Fixing macro of diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\npageIdsExpTrg=Export target\nconfALucidDiagImgImported={2} diagram "{1}" image extracted successfully\nconfASavingLucidDiagImgFailed=Extracting {2} diagram "{1}" image failed\nconfGetInfoFailed=Fetching file info from {1} failed.\nconfCheckCacheFailed=Cannot get cached file info.\nconfReadFileErr=Cannot read "{1}" file from {2}.\nconfSaveCacheFailed=Unexpected error. Cannot save cached file\norgChartType=Org Chart Type\nlinear=Linear\nhanger2=Hanger 2\nhanger4=Hanger 4\nfishbone1=Fishbone 1\nfishbone2=Fishbone 2\n1ColumnLeft=Single Column Left\n1ColumnRight=Single Column Right\nsmart=Smart\nparentChildSpacing=Parent Child Spacing\nsiblingSpacing=Sibling Spacing\nconfNoPermErr=Sorry, you don\'t have enough permissions to view this embedded diagram from page {1}\ncopyAsImage=Copy as Image\ncopyAsText=Copy as Text\ncopyAsSvg=Copy as SVG\nlucidImport=Lucidchart Import\nlucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.\ninstallFirst=Please install {1} first\ndrawioChromeExt=draw.io Chrome Extension\nloginFirstThen=Please login to {1} first, then {2}\nerrFetchDocList=Error: Couldn\'t fetch documents list\nbuiltinPlugins=Built-in Plugins\nextPlugins=External Plugins\nbackupFound=Backup file found\nchromeOnly=This feature only works in Google Chrome\nmsgDeleted=This message has been deleted\nconfAErrFetchDrawList=Error fetching diagrams list. Some diagrams are skipped.\nconfAErrCheckDrawDiag=Cannot check diagram {1}\nconfAErrFetchPageList=Error fetching pages list\nconfADiagImportIncom={1} diagram "{2}" is imported partially and may have missing shapes\ninvalidSel=Invalid selection\ndiagNameEmptyErr=Diagram name cannot be empty\nopenDiagram=Open Diagram\nnewDiagram=New diagram\neditable=Editable\nconfAReimportStarted=Re-import {1} diagrams started...\nspaceFilter=Filter by Spaces\ncurViewState=Current Viewer State\npageLayers=Page and Layers\ncustomize=Customize\nfirstPage=First Page (All Layers)\ncurEditorState=Current Editor State\nnoAnchorsFound=No anchors found\nattachment=Attachment\ncurDiagram=Current Diagram\nrecentDiags=Recent Diagrams\ncsvImport=CSV Import\nchooseFile=Choose a File...\nchoose=Choose\ngdriveFname=Google Drive filename\nwidthOfViewer=Width of the Viewer (px)\nheightOfViewer=Height of the Viewer (px)\nautoSetViewerSize=Automatically set the size of the viewer\nthumbnail=Thumbnail\nprevInDraw=Preview in draw.io\nonedriveFname=OneDrive filename\ndiagFname=Diagram filename\ndiagUrl=Diagram URL\nshowDiag=Show Diagram\ndiagPreview=Diagram Preview\ncsvFileUrl=CSV File URL\ngenerate=Generate\nselectDiag2Insert=Please select a diagram to insert it.\nerrShowingDiag=Unexpected error. Cannot show diagram\nnoRecentDiags=No recent diagrams found\nfetchingRecentFailed=Failed to fetch recent diagrams\nuseSrch2FindDiags=Use the search box to find draw.io diagrams\ncantReadChckPerms=Cannot read the specified diagram. Please check you have read permission on that file.\ncantFetchChckPerms=Cannot fetch diagram info. Please check you have read permission on that file.\nsearchFailed=Searching failed. Please try again later.\nplsTypeStr=Please type a search string.\nunsupportedFileChckUrl=Unsupported file. Please check the specified URL\ndiagNotFoundChckUrl=Diagram not found or cannot be accessed. Please check the specified URL\ncsvNotFoundChckUrl=CSV file not found or cannot be accessed. Please check the specified URL\ncantReadUpload=Cannot read the uploaded diagram\nselect=Select\nerrCantGetIdType=Unexpected Error: Cannot get content id or type.\nerrGAuthWinBlocked=Error: Google Authentication window blocked\nauthDrawAccess=Authorize draw.io to access {1}\nconnTimeout=The connection has timed out\nerrAuthSrvc=Error authenticating to {1}\nplsSelectFile=Please select a file\nmustBgtZ={1} must be greater than zero\ncantLoadPrev=Cannot load file preview.\nerrAccessFile=Error: Access Denied. You do not have permission to access "{1}".\nnoPrevAvail=No preview is available.\npersonalAccNotSup=Personal accounts are not supported.\nerrSavingTryLater=Error occurred during saving, please try again later.\nplsEnterFld=Please enter {1}\ninvalidDiagUrl=Invalid Diagram URL\nunsupportedVsdx=Unsupported vsdx file\nunsupportedImg=Unsupported image file\nunsupportedFormat=Unsupported file format\nplsSelectSingleFile=Please select a single file only\nattCorrupt=Attachment file "{1}" is corrupted\nloadAttFailed=Failed to load attachment "{1}"\nembedDrawDiag=Embed draw.io Diagram\naddDiagram=Add Diagram\nembedDiagram=Embed Diagram\neditOwningPg=Edit Owning Page\ndeepIndexing=Deep Indexing (including diagrams that aren\'t used in any page)\nconfADeepIndexStarted=Deep indexing started\nconfADeepIndexDone=Deep indexing done\nofficeNoDiagramsSelected=No diagrams found in the selection\nofficeNoDiagramsInDoc=No diagrams found in the document\nofficeNotSupported=This feature is not supported in this host application\nsomeImagesFailed={1} out of {2} failed due to the following errors\nimportingNoUsedDiagrams=Importing {1} Diagrams not used in pages\nimportingDrafts=Importing {1} Diagrams in drafts\nprocessingDrafts=Processing drafts\nupdatingDrafts=Updating drafts\nupdateDrafts=Update drafts\nnotifications=Notifications\ndrawioImp=draw.io Import\nconfALibsImp=Importing draw.io Libraries\nconfALibsImpFailed=Importing {1} library failed\ncontributors=Contributors\ndrawDiagrams=draw.io Diagrams\nerrFileNotFoundOrNoPer=Error: Access Denied. File not found or you do not have permission to access "{1}" on {2}.\nconfACheckPagesWEmbed=Checking pages having embedded draw.io diagrams.\nconfADelBrokenEmbedDiagLnk=Removing broken embedded diagram links\nreplaceWith=Replace with\nreplaceAll=Replace All\nconfASkipDiagModified=Skipped "{1}" as it was modified after initial import\nreplFind=Replace/Find\nmatchesRepl={1} matches replaced\ndraftErrDataLoss=An error occurred while reading the draft file. The diagram cannot be edited now to prevent any possible data loss. Please try again later or contact support.\nibm=IBM\nlinkToDiagramHint=Add a link to this diagram. The diagram can only be edited from the page that owns it.\nlinkToDiagram=Link to Diagram\nchangedBy=Changed By\nlastModifiedOn=Last Modified on\nsearchResults=Search Results\nshowAllTemps=Show All Templates\nnotionToken=Notion Token\nselectDB=Select Database\nnoDBs=No Databases\ndiagramEdited={1} diagram "{2}" edited\nconfDraftPermissionErr=Draft cannot be written. Do you have attachment write/read permission on this page?\nconfFileTooBigErr=File size is too large. Pease check "Attachment Maximum Size" of "Attachment Settings" in Confluence Configuration.\nowner=Owner\nrepository=Repository\nbranch=Branch\nmeters=Meters\nteamsNoEditingMsg=Editor functionality is only available in Desktop environment (in MS Teams App or a web browser)\ncontactOwner=Contact Owner\nviewerOnlyMsg=You cannot edit the diagrams in the mobile platform, please use the desktop client or a web browser.\nwebsite=Website\ncheck4Updates=Check for Updates\nattWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...\nconfPartialPageList=We couldn\'t fetch all pages due to an error in Confluence. Continuing using {1} pages only.\nspellCheck=Spell Checker\nnoChange=No Change\nlblToSvg=Convert Labels to SVG\nautoRotateLabel=Rotate with Edge\ntxtSettings=Text Settings\nLinksLost=Links will be lost\narcSize=Arc Size\neditConnectionPoints=Edit Connection Points\nnotInOffline=Not supported while offline\nnotInDesktop=Not supported in Desktop App\nconfConfigSpaceArchived=draw.io Configuration space (DRAWIOCONFIG) is archived. Please restore it first.\nconfACleanOldVerStarted=Cleaning old diagram draft versions started\nconfACleanOldVerDone=Cleaning old diagram draft versions finished\nconfACleaningFile=Cleaning diagram draft "{1}" old versions\nconfAFileCleaned=Cleaning diagram draft "{1}" done\nconfAFileCleanFailed=Cleaning diagram draft "{1}" failed\nconfACleanOnly=Clean Diagram Drafts Only\nbrush=Brush\nopenDevTools=Open Developer Tools\nautoBkp=Automatic Backup\nconfAIgnoreCollectErr=Ignore collecting current pages errors\ndrafts=Drafts\ndraftSaveInt=Draft Save Interval [sec] (0 to disable)\npluginsDisabled=External plugins disabled.\nextExpNotConfigured=External image service is not configured\npathFilename=Path/Filename\nconfAHugeInstances=Very Large Instances\nconfAHugeInstancesDesc=If this instance includes 100,000+ pages, it is faster to request the current instance pages list from Atlassian. Please contact our support for more details.\nchoosePageIDsFile=Choose current page IDs csv file\nchooseDrawioPsgesFile=Choose pages with draw.io diagrams csv file\nprivate=Private\ndiagramTooLarge=The diagram is too large, please reduce its size and try again.\nselectAdminUsers=Select Admin Users\nxyzTeam={1} Team\naddTeamTitle=Adding a new draw.io Team\naddTeamInst1=To create a new draw.io Team, you need to create a new Atlassian group with "drawio-" prefix (e.g, a group named "drawio-marketing").\naddTeamInst2=Then, configure which team member can edit/add configuration, templates, and libraries from this page.\ndrawioTeams=draw.io Teams\nmembers=Members\nadminEditors=Admins/Editors\nallowAll=Allow All\nnoTeams=No teams found\nerrorLoadingTeams=Error loading teams\nnoTeamMembers=No team members found\nerrLoadTMembers=Error loading team members\nerrCreateTeamPage=Error creating team "{1}" page in "draw.io Configuration" space, please check you have the required permissions.\ngotoConfigPage=Please create the space from draw.io "Configuration" page.\nnoAdminsSelected=No admins/editors selected\nerrCreateConfigFile=Error creating "configuration.json" file, please check you have the required permissions.\nerrSetPageRestr=Error setting page restrictions\nnotAdmin4Team=You are not an admin for this team\nconfigUpdated=Configuration updated, restart the editor if you want to work with last configuration.\noutOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.\nconfAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)\nconfA403ErrFaq=There are ({1}) 403 error(s). The current users must have add (write) permissions on all pages and attachments. Even admins sometimes are not allowed to write to some pages via page restrictions\nconfA404ErrFaq=There are ({1}) 404 error(s). The attachment/page is not found. This is due to improper migration or the diagram file (an attachment of the page) is deleted.\nconfA404AttErrFaq=There are ({1}) 404 "File not found" error(s). The diagram file (an attachment of the page) does not exist. If it exists on the same page in the source site, the migration did not copy it, so copy the attachment manually or re-migrate the attachments. If it is missing in the source site also, the diagram was deleted before the migration.\nconfA404NoEditErrFaq=There are ({1}) 404 "Cannot find a page" error(s) for pages that were fetched successfully. These pages exist but could not be updated, this usually means the current user has no edit permission on them (page restrictions) or they are archived. Re-run the process with a user that can edit these pages.\nconfA500ErrFaq=There are ({1}) 500 error(s). An internal server error in Confluence Cloud. Such errors are due to overloading the server and usually fixed by retrying the process.\nconfAOtherErrFaq=There are ({1}) other error(s). Please check the error description. If the description is not clear, please contact our support.\nconfAPageNoEditPerm=The page exists but could not be updated, this usually means the current user has no edit permission on it or the page is archived.\nconfAMacroInComment=draw.io macros inside page comments are not converted, skipped comment "{1}" (id {2})\nconfAReplaceBaseUrl=Replace base URL in diagram links when no page ID mapping is found\ndrawSvgPrev=draw.io SVG preview\ngoogleFonts=Google Fonts\ndiagDupl=Duplicate diagram detected\ndiagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We\'ve created an independent copy. Please open the editor again.\ndiagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.\nconfCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?\nconfCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.\nconfALogsPageDesc=This page contains logs of draw.io long running services as attachments\nconfEditOnlyInPageEditor=Can only be edited within Confluence page editor\nconfEvalWarn=Evaluation License - Not for Production Use\notherUsersEditing=Other user(s) are editing this diagram\nfirstTimeGD=First time to access this file?\ndrawioGDAppNotInstalled=draw.io Google Drive app is not installed, please install it first\nConfDC415Error=Saving drafts is blocked. If you have the "Attachment Checker for Confluence" app, enable "Always allow draw.io attachments" in its File Type Blocking settings. Update the app if that option is missing.\nremove=Remove\nselectPgLyr=Select Page and Layers\nerrGenPreview=There was an error generating a diagram preview. Please consult technical support.\nattAccessErr=Diagram attachment access error: cannot display diagram\nwidthIntOrFixed=Width must be a valid integer or of value \'fixed\'\ndupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected\ncantDupPickDiffName=Could not duplicate diagram. Please choose a different name.\nownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.\ncantDupTryLater=Could not duplicate diagram. Please try again later.\ncantEditLnkd=Cannot edit linked diagram\ndiagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?\ndiagInTemps=draw.io diagrams in templates\ndiagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.\nconfDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.\nconfConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.\ntryCurPageOnErr=Try finding the diagram attachment on the macro page when the linked page fails\nconfAExtSrvcNoSupported=Embedded diagrams from external services or urls are not supported.\ngliffyVersionPinning=Import Gliffy pinned version instead of the latest version\nconfEmbedUpload=For a better editing experience, please use the regular draw.io macro to insert a blank diagram, then from (File menu → Import From → Device...) select the file you want to upload and embed.\nconfPublishErr=Another update conflicted with your publish, please try the operation again\nconfACacheMapping=Cache Page IDs Mapping\nconfARemImpPages=Remember Imported Pages\nconfAGMTitle=Gliffy migration\nconfAGMStoredState=Stored state & reports\nconfAGMTabDryRun=Dry run\nconfAGMTabImport=Import\nconfAGMReadOnly=Read-only\nconfAGMWrites=Writes to pages\nconfAGMLoading=Loading migration state...\nconfAGMLoadFailed=Loading the migration state failed. Reload the page to try again.\nconfAGMStepScan=Scan & scope\nconfAGMStepDryRun=Dry run\nconfAGMStepReview=Review & report\nconfAGMScanTitle=Where your Gliffy diagrams live\nconfAGMScanSub=Scanning reads pages and counts Gliffy macros - it never modifies anything. Scans checkpoint as they go and resume if interrupted. Results are cached: rescanning is manual.\nconfAGMScanSite=Scan site\nconfAGMScanning=Scanning...\nconfAGMResumeScan=Resume scan\nconfAGMRescan=Rescan site\nconfAGMRescanConfirm=Rescan the site? The inventory is rebuilt; dry-run results and review verdicts are kept and re-matched by diagram.\nconfAGMScanMetaDone=Last scan finished {1} after {2} - {3} spaces contain Gliffy - {4} pages - {5} diagrams\nconfAGMScanMetaPaused=Scan paused - resumes from its checkpoint\nconfAGMScanMetaNone=Not scanned yet - scan to build the space inventory\nconfAGMPause=Pause\nconfAGMSearchSpaces=Search spaces by name or key...\nconfAGMSelectAll=Select all {1} with diagrams\nconfAGMSelectLive=All except archived ({1})\nconfAGMClear=Clear\nconfAGMShowArchived=Show archived\nconfAGMArchived=archived\nconfAGMSpace=Space\nconfAGMKey=Key\nconfAGMPages=Pages\nconfAGMDiagrams=Diagrams\nconfAGMNotImportable=Not importable\nconfAGMNoSpaces=No spaces yet - run a scan to build the inventory.\nconfAGMSpaceFoot=Showing {1} of {2} spaces, largest first.\nconfAGMSpaceFootMore=Showing the largest {1} of {2} matching spaces - search to narrow.\nconfAGMScope=Scope\nconfAGMScopeTotals={1} spaces - {2} diagrams - {3} pages\nconfAGMStartDryRunArrow=Start dry run →\nconfAGMDryTitle=Dry run - converts locally, changes nothing\nconfAGMDrySub=Every diagram in scope is downloaded and converted in this browser, and every affected page gets a permission check. Nothing is written to Confluence; diagram data never leaves this machine. Safe to close the tab - the run resumes from its last checkpoint.\nconfAGMDryNone=No dry run yet\nconfAGMDryRunning=Dry run in progress\nconfAGMDryPaused=Dry run paused\nconfAGMDryDone=Dry run complete - nothing was changed\nconfAGMInterrupted=interrupted\nconfAGMDone=done\nconfAGMStarted=Started {1}\nconfAGMFinished=finished {1}\nconfAGMStartDry=Start dry run\nconfAGMRerunDry=Run dry run again\nconfAGMResumeCheckpoint=Resume from checkpoint\nconfAGMSafeClose=Safe to close this tab at any time.\nconfAGMGenReport=Generate report\nconfAGMOfProcessed=of {1} processed\nconfAGMConvClean=converted clean\nconfAGMConvWarn=converter warnings\nconfAGMStalePins=version pin warnings\nconfAGMStalePin=The Gliffy macro pins version {1} but the latest is {2} - version pinning is off, so the latest was used; verify the conversion matches what the page displayed\nconfAGMPinnedOld=Imported the pinned version {1}; the latest is {2} - verify this is the version the page really displayed\nconfAGMPinFellBack=The pinned version {1} was not found - the latest ({2}) was used instead\nconfAGMPinResetNotice=draw.io update: Gliffy version pin handling changed - pins are now off by default (cloud Gliffy displays the latest version) and every pin that differs from the latest is flagged for review. The previous dry run used the old rules, so run a fresh dry run.\nconfAGMVersionPinning=Import the Gliffy version pinned in each macro instead of the latest (rarely needed - e.g. content migrated from Confluence Data Center)\nconfAGMPinToggleConfirm=Changing version pinning re-keys every diagram: the current dry run, review verdicts and import state will be discarded, and a fresh dry run is needed. Continue?\nconfAGMAlreadyImp=previously imported\nconfAGMFailed=failed\nconfAGMWriteBlocked=write-blocked\nconfAGMLeft=left\nconfAGMProblems=Problems so far - grouped, full detail in the stored files\nconfAGMNoPageEdit=no page edit\nconfAGMBlockedRow={1} pages ({2} diagrams) this user cannot edit - fix permissions or leave them Gliffy\nconfAGMReasonDraft=Gliffy draft stored on gliffy.com - no attachment to convert\nconfAGMReasonAttMissing=Diagram attachment no longer exists\nconfAGMReasonTooLarge=Exceeds converter limits\nconfAGMReasonConvert=Conversion failed\nconfAGMReasonFetch=Downloading the diagram failed\nconfAGMReasonSave=Saving failed\nconfAGMReasonAttInfo=Attachment lookup failed\nconfAGMReasonOther=Other error\nconfAGMNoEditPerm=No permission to edit "{1}" - its diagrams cannot be imported by this user\nconfAGMDiagConverted=Converted {2} diagram "{1}" (dry run, nothing written)\nconfAGMReviewTitle=Review a sample against the Gliffy previews\nconfAGMReviewSub=Left: the preview image Gliffy stored. Right: a live render of the draw.io conversion - what the page will show after import. Rate with the keyboard; verdicts are saved continuously and feed the report and the import.\nconfAGMReviewNeedsDry=Finish a dry run first - the review works on its results.\nconfAGMSample=Sample\nconfAGMSampleNote=of {1} converted - flagged first, then random across spaces\nconfAGMCustomPct=Custom %\nconfAGMApply=Apply\nconfAGMFilterSample=Sample\nconfAGMFilterUnreviewed=Unreviewed\nconfAGMFilterFlagged=Flagged\nconfAGMFilterFailed=Failed\nconfAGMSideBySide=Side by side\nconfAGMLiveRender=live render of conversion\nconfAGMStoredPreview=stored preview image\nconfAGMNoPreview=No preview image stored by Gliffy - compare against the diagram on its page.\nconfAGMGliffyPreviewAlt=Gliffy preview\nconfAGMNoDrawio=No draw.io version to show.\nconfAGMPreviewFailed=Rendering the conversion failed.\nconfAGMNotConverted=not converted\nconfAGMFailedReason=Not converted ({1}). See the problems list and the report.\nconfAGMFlickHint=A/B - press X or click to flip\nconfAGMConverterWarning=converter warning\nconfAGMNothingHere=Nothing to review in this filter\nconfAGMMatch=Match\nconfAGMMinor=Minor differences\nconfAGMMajor=Major differences\nconfAGMMatchL=match\nconfAGMMinorL=minor\nconfAGMMajorL=major\nconfAGMLeftInSample=left in sample\nconfAGMOfReviewed=of {1} reviewed\nconfAGMNotePlaceholder=Optional note - included in the report\nconfAGMPrivacy=The report contains ratings, notes, diagram names and converter warnings - never diagram contents. Diagram names are only sent to draw.io if you opt in below.\nconfAGMSendNamesOptIn=Include diagram names\nconfAGMSendReport=Send report to draw.io\nconfAGMSendConfirm=Send the migration report summary to draw.io? It contains counts, failure reasons and review verdicts.\nconfAGMSendDone=Report sent to draw.io. Reference: {1} - please quote it when contacting support.\nconfAGMGenerating=Generating report...\nconfAGMReportSaved=Report saved as {1} with the migration state.\nconfAGMOpenState=Open\nconfAGMReportFailed=Generating the report failed.\nconfAGMImpTitle=Import - writes to pages\nconfAGMImpSub=Consumes the latest dry run: scope, permission checks and review verdicts. Gliffy macros are replaced with draw.io macros and a .drawio attachment is added per diagram. Nothing is deleted - Gliffy attachments stay in place and every page edit is a normal Confluence version, so reverting a page restores its Gliffy macros.\nconfAGMImpNeedsDry=Import is disabled until a dry run has completed. Run it from the Dry run tab - it changes nothing.\nconfAGMImpReady={1} diagrams ready\nconfAGMImpSkipFail={1} failed conversions will be skipped and listed\nconfAGMImpBlocked={1} diagrams on {2} blocked pages stay Gliffy until permissions are fixed\nconfAGMImpAll=Import everything that converted\nconfAGMImpAllD=Review verdicts ride along in the log for follow-up\nconfAGMImpHold=Hold back "Major differences"\nconfAGMImpHoldN=Hold back "Major differences" ({1} rated)\nconfAGMImpHoldD=Diagrams rated Major in review stay Gliffy for a later pass\nconfAGMAdvanced=Advanced (defaults are right for almost everyone)\nconfAGMAddLabel=Add a label to every modified page (for CQL follow-up)\nconfAGMCheckDrift=Check for changes since dry run\nconfAGMDriftChecking=Checking pages for changes since the dry run...\nconfAGMDriftResult={1} pages changed and {2} gone since the dry run (checked {3}). Changed pages are re-verified during import.\nconfAGMDriftRecommend=More than 10% drift - running a fresh dry run first is recommended.\nconfAGMDriftUnknown=The dry run is {1} days old. Check for changes before importing.\nconfAGMImpNone=Not started\nconfAGMImpRunning=Import in progress\nconfAGMImpPaused=Import paused\nconfAGMImpDone=Import finished\nconfAGMStartImport=Start import - {1} diagrams\nconfAGMImpConfirm=Start the import? Up to {1} diagrams across {2} pages will be converted to draw.io macros. Nothing is deleted and every page edit is a normal Confluence version.\nconfAGMOfPages=of {1} pages\nconfAGMImported=diagrams imported\nconfAGMSkipped=skipped\nconfAGMErrors=errors\nconfAGMHeldBack=Held back "{1}" (rated Major differences in review)\nconfAGMSkippedFailed=Skipped "{1}" (failed in the dry run: {2})\nconfAGMPageBlocked=Skipped page "{1}" (no edit permission)\nconfAGMReimportPass=Processing pages labeled for re-import...\nconfAGMReassure=Interruptions resume from the last checkpoint - already-imported diagrams are never redone. The import log is stored with the migration state and downloadable.\nconfAGMImpSummary=Import finished {1}: {2} diagrams imported across {3} pages.\nconfAGMImpSummary2={1} held back - {2} skipped (failed) - {3} blocked - {4} errors.\nconfAGMImpSummary3=The run log and report are stored with the migration state.\nconfAGMRunAnother=Run another import\nconfAGMImpReportSaved=Run report saved as {1} with the migration state.\nconfAGMHttpFaq={1} requests failed with 403/404. These are usually permission problems - the API also returns 404 for content the user cannot read. See\nconfAGMFullscreen=Fullscreen\nconfAGMClose=Close\nconfAGMStatePageDesc=State and reports of the Gliffy to draw.io migration. Managed by the draw.io app; do not edit the attachments manually.\nconfABrokenDiagLnk=Broken diagram link (custom content) "{1}"\nconfACCDupEntry=duplicate entry\nconfACCInvalid=invalid content\nconfACCAttMissing=attachment is missing or has an older version\nconfAChkTabTitle=Integrity Check (Beta)\nconfAChkTitle=draw.io Diagrams Integrity Check\nconfAChkInst1=Scans all pages with draw.io macros and checks that every diagram has its attachment, preview image and diagram link (custom content) with the versions the macro points to. It also reports broken, duplicate and unused diagram links.\nconfAChkInst2=The check is read-only and changes nothing. It can take some time and the browser window must remain open until it finishes.\nconfAChkDownloadOpt=Download each diagram and verify its content instead of only checking it exists (slower, detects corrupted files)\nconfAChkStart=Start Integrity Check\nconfAChkStatChecked=Diagrams checked\nconfAChkStatOk=OK\nconfAChkStatBroken=Broken\nconfAChkStatWarn=With warnings\nconfAChkStatCC=Broken diagram links\nconfAChkStatOrphans=Unused embed links\nconfAChkLog=Log\nconfAChkFilterAll=All\nconfAChkFilterIssues=Issues only\nconfAChkProgLinks=Checking diagram links ({1} of {2})\nconfAChkProgPages=Checking pages with {3} macros ({1} of {2})\nconfAChkEta=~{1} remaining\nconfAChkEstimating=estimating…\nconfAChkDiag=Checking diagram "{1}"\nconfAChkDiagOK=Diagram "{1}" is OK\nconfAChkMacroNoName=Found a diagram macro without a diagram name (possibly a never-edited macro)\nconfAChkPageInfoBroken=Diagram "{1}": the page referenced by the macro (by space and title) cannot be resolved\nconfAChkCCMissing=Diagram "{1}": its diagram link (custom content) is missing or broken (the diagram works, but is excluded from search and diagram listings)\nconfAChkCCNoRef=Diagram "{1}": the macro has no diagram link (custom content) reference\nconfAChkCCOther=Diagram "{1}": the macro references a missing diagram link (custom content), but a valid one exists for this diagram\nconfAChkCCMismatch=Diagram "{1}": its diagram link (custom content) does not match the macro (page, name, or version)\nconfAChkDiagPageMissing=Diagram "{1}": the page ({2}) that holds the diagram attachment is not found\nconfAChkAttMissing=Diagram "{1}": the diagram attachment is not found\nconfAChkAttOldVer=Diagram "{1}": the diagram attachment version ({2}) is older than the version in the macro ({3})\nconfAChkAttFetchFailed=Diagram "{1}": fetching the attachments of page ({2}) failed\nconfAChkPrevMissing=Diagram "{1}": the preview image ({2}) is not found\nconfAChkPrevOldVer=Diagram "{1}": the preview image version ({2}) is older than the version in the macro ({3})\nconfAChkPrevOutOfSync=Diagram "{1}": the preview image (of diagram version {2}) is out of sync with the diagram (version {3})\nconfAChkPrevPageFailed=Diagram "{1}": fetching the attachments of the preview image page ({2}) failed\nconfAChkDiagInvalid=Diagram "{1}": the diagram content is not a valid draw.io file\nconfAChkDiagDownFailed=Diagram "{1}": downloading the diagram failed\nconfAChkEmbedCC=Checking embedded diagram links (custom contents)...\nconfAChkOrphanEmbedCC=Embedded diagram link (custom content) "{1}" is not referenced by any macro\nconfAChkSummary=Integrity check finished: {1} macros checked, {2} OK, {3} broken, {4} with warnings. Diagram links (custom contents): {5} broken, {6} unused embedded diagram links\ndelCachedData=Delete Cached Data\nk15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?\ndrawioUninstalled=draw.io has been uninstalled, the editor will now close\nconfAttachmentArchived=Diagram belongs to an archived page and cannot be loaded. Restore the page (ID: {1}) to load it.\nconfDiagramMacroDowngrade=The diagram is saved but the page macro cannot be updated as the diagraam revision in the macro is newer. Please edit the diagram from Confluence page editor.\nDCSave500Error=Another Confluence operation interrupted saving, retry #{1}\nconfAppNotInstalled=draw.io diagrams Confluence App is not installed.\nplsInstallAppInConf=Please install/connect this App in Confluence to be able to access the diagrams (in addition to draw.io Confluence app)\nm365=Microsoft 365\nnodeSpacing=Node Spacing\nrankSpacing=Rank Spacing\npolyline=Polyline\nlayeringStrategy=Layering Strategy\nnetworkSimplex=Network Simplex\nlongestPath=Longest Path\ncoffmanGraham=Coffman-Graham\nweighting=Weighting\nmodelOrder=Model Order\ndescendants=Descendants\nconstraint=Constraint\nfan=Fan\noptimization=Optimization\nedgeLength=Edge Length\nedgeLengthByPosition=Edge Length by Position\ncrossingMinimization=Crossing Minimization\niterations=Iterations\nrepulsivePower=Repulsive Power\nresizeNodes=Resize Nodes\nuseSelectionAsRoot=Use Selection as Root\nuseSelectionAsRoots=Use Selection as Roots\nanonymize=Anonymize\nconnector=Connector\nextractText=Extract Text\nlegacyLayouts=Legacy Layouts\nedgeStyle=Edge Style\ncorners=Corners\nkeepStyle=Keep Existing Style\nopenLucidSite=Open Lucidchart Site in another tab and login to your account, then come back to this tab and click the "Start Import" button again.\npreviewSaveNoPermission=You do not have permission to save the preview image. The source page may be restricted or you may not have edit permission on the page. This only affects this page export to PDF/Word.\npreserveOrigin=Preserve Origin\nsharedStems=Bundle Outgoing Connections\ndraftLoadedWUnpublishedChanges=The diagram has loaded from a draft with unpublished changes. It is different from the published version.\nhachure=Hachure\nhatch=Hatch\ndots=Dots\ncrossHatch=Cross Hatch\nzigzag=ZigZag\nzigzagLine=ZigZag Line\nsysFonts=System Fonts\nwebfonts=Web Fonts\nfontname=Font Name\nfontUrl=Font URL\ncreatingDiagram=Generating diagram. Please wait\nconfAFixPageStorage=Remove invalid page storage format elements (Warning: May cause data loss)\ncfgAiActions=AI Actions (JSON)\ncfgAiConfigs=AI Configs (JSON)\ncfgAiGlobals=AI Globals (JSON)\ncfgAiModels=AI Models (JSON)\ncfgAppendCustomLibraries=Append Custom Libraries\ncfgAppendCustomLibrariesHelp=Custom libraries appear after built-in ones\ncfgAutoCropViewer=Auto Crop Viewer\ncfgAutoCropViewerHelp=Auto-crop viewer to fit diagram bounds\ncfgAutosaveDelay=Autosave Delay (ms)\ncfgBrowserTranslate=Browser Translate\ncfgBrowserTranslateHelp=Mirror diagram text for browser translation engines (e.g. Chrome Translate)\ncfgClaudeApiKey=Claude API Key\ncfgColorNames=Color Names (JSON)\ncfgColorNamesHelp=Map of colour codes to display names (tooltips)\ncfgCompact=Compact UI\ncfgCompactHelp=Enable compact user interface mode\ncfgCompressStyles=Compress Styles\ncfgCompressStylesHelp=Deduplicate repeated inline images and stencils into a shared lookup table. Only readable by draw.io 29.3.1 and later.\ncfgCompressXml=Compress XML\ncfgCompressXmlHelp=Compress XML output in saved files\ncfgCopyOnConnect=Copy on Connect\ncfgCopyOnConnectHelp=Create a copy of the source shape for connections that end on the canvas\ncfgCss=CSS Rules\ncfgCssHelp=CSS rules to customize the draw.io user interface\ncfgCustomCss=Custom CSS (alternative)\ncfgCustomCssHelp=Injected as a separate style element\ncfgCustomTemplates=Custom Templates (JSON)\ncfgCustomTemplatesHelp=Templates added to the sections of the template dialog\ncfgDarkColor=Dark Mode Background\ncfgDarkColorVar=Dark Color CSS Variable\ncfgDebug=Debug\ncfgDebugHelp=Enable debug output\ncfgDefaultAdaptiveColors=Adaptive Colors\ncfgDefaultConnectable=Default Connectable\ncfgDefaultConnectableHelp=Shapes are connectable by default\ncfgDefaultConnectionArrowsEnabled=Connection Arrows\ncfgDefaultConnectionArrowsEnabledHelp=Show arrows when hovering connections\ncfgDefaultDarkGridColor=Default Grid Color (Dark Mode)\ncfgDefaultDarkPageBackgroundColor=Default Page Background (Dark Mode)\ncfgDefaultEdgeLength=Default Edge Length\ncfgDefaultFileType=Default File Type\ncfgDefaultFoldingEnabled=Folding Enabled\ncfgDefaultFoldingEnabledHelp=Enable shape folding (collapse/expand)\ncfgDefaultGridColor=Default Grid Color\ncfgDefaultGridEnabled=Grid Enabled\ncfgDefaultGridEnabledHelp=Show grid on canvas\ncfgDefaultGridSize=Default Grid Size\ncfgDefaultLanguages=Default Languages\ncfgDefaultLanguagesHelp=Language bundles installed for offline use on startup\ncfgDefaultLibraries=Default Libraries\ncfgDefaultLibrariesHelp=Semicolon-separated library keys shown in sidebar on startup\ncfgDefaultPageBackgroundColor=Default Page Background\ncfgDefaultPageVisible=Page Visible\ncfgDefaultPageVisibleHelp=Show page outline on canvas\ncfgDefaultTextStyle=Default Text Style\ncfgDefaultTransparentGroups=Automatic Group Size\ncfgDefaultTransparentGroupsHelp=New groups automatically resize to fit their children (transparentBounds=1)\ncfgDesktopAutoSync=Desktop Auto Sync\ncfgDesktopAutoSyncHelp=Auto-sync when local file changes\ncfgDisableVersioning=Disable Versioning\ncfgDisableVersioningHelp=Disable diagram versioning\ncfgEmbedSvgFonts=Embed SVG Fonts\ncfgEmbedSvgFontsHelp=Default for embedding fonts as data URIs in exported and saved SVG files, can be overridden per file in the file properties\ncfgEmptyDiagramXml=Empty Diagram XML\ncfgEmptyLibraryXml=Empty Library XML\ncfgEnableAi=Enable AI\ncfgEnableAiHelp=Enable AI diagram generation\ncfgEnableAnimations=Enable Animations\ncfgEnableAnimationsHelp=Enable shape and layout animations\ncfgEnableCssDarkMode=CSS Dark Mode\ncfgEnableCssDarkMode2=CSS Dark Mode\ncfgEnableCssDarkMode2Help=Enable CSS-based dark mode for viewer diagrams\ncfgEnableCssDarkModeHelp=Use CSS for dark mode rendering\ncfgEnableCustomGitLabUrl=Enable Custom GitLab URL\ncfgEnableCustomGitLabUrlHelp=Allow ?gitlab= / ?gitlab-id= URL parameters to override the default GitLab server. Enable only for self-hosted GitLab deployments.\ncfgEnableCustomLibraries=Enable Custom Libraries\ncfgEnableCustomLibrariesHelp=Allow open and new library functions\ncfgEnableDistanceGuides=Distance Guides\ncfgEnableDistanceGuidesHelp=Snap shapes to equal distances between the surrounding shapes while moving (default on)\ncfgEnableExportUrl=Enable Export URL\ncfgEnableExportUrlHelp=Enable the export URL feature\ncfgEnableInlineToolbar=Inline Toolbar\ncfgEnableInlineToolbarHelp=Enable the inline toolbar on selection\ncfgEnableLightDarkColors=Light/Dark Colors\ncfgEnableLightDarkColorsHelp=Use CSS light-dark() color function\ncfgEnableLocalFonts=Local Fonts\ncfgEnableLocalFontsHelp=Scan and list locally installed fonts in the font picker\ncfgEnableNativeClipboard=Native Clipboard\ncfgEnableNativeClipboardHelp=Use native system clipboard\ncfgEnablePositionGuides=Position Guides\ncfgEnablePositionGuidesHelp=Snap shapes to the edges and centers of the other shapes while moving (default on)\ncfgEnableSizeGuides=Size Guides\ncfgEnableSizeGuidesHelp=Snap the size of a shape to the sizes of the other shapes while resizing (default on)\ncfgEnableWindowDocking=Window Docking\ncfgEnableWindowDockingHelp=Enable window docking\ncfgExpandLibraries=Expand Libraries\ncfgExpandLibrariesHelp=Libraries expanded by default\ncfgExpandPatternsForPrint=Expand Patterns for Print\ncfgExpandPatternsForPrintHelp=Expand patterns to visible graphics during print/PDF export\ncfgExperimental=Experimental feature\ncfgFitDiagramOnLoad=Fit Diagram on Load\ncfgFitDiagramOnLoadHelp=Fit diagram to window on load\ncfgFitDiagramOnPage=Fit Diagram on Page\ncfgFitDiagramOnPageHelp=Fit diagram to page size\ncfgFoldingIconSize=Folding Icon Size\ncfgFontCss=Font CSS (@font-face rules)\ncfgFontCssHelp=Added before preset colors in the colour dialog\ncfgForceSimpleViewer=Force Simple Viewer\ncfgForceSimpleViewerHelp=Force simple viewer for all diagrams\ncfgForeignObjectImages=Foreign Object Images\ncfgForeignObjectImagesHelp=Replace foreignObject with images\ncfgGeminiApiKey=Gemini API Key\ncfgGenerateSVGs=Generate SVGs\ncfgGenerateSVGsHelp=Generate SVG previews for diagrams\ncfgGlobalVars=Global Variables (JSON)\ncfgGlobalVarsHelp=Global placeholders available in all diagrams\ncfgGptApiKey=OpenAI API Key\ncfgGptUrl=Custom GPT URL\ncfgGridSteps=Grid Steps\ncfgHiResPreview=Hi-Res Preview\ncfgHiResPreviewHelp=Generate high-resolution preview images\ncfgIncludeDiagram=Include Diagram in Export\ncfgIncludeDiagramHelp=Include diagram data in export dialogs\ncfgInlineExtIcons=Inline Icon Search Results\ncfgInlineExtIconsHelp=Insert icon search results as embedded images instead of remote references\ncfgInplaceEdits=In-place Edits\ncfgInplaceEdits2=In-place Edits\ncfgInplaceEdits2Help=Allow launching editor from viewer\ncfgInplaceEditsHelp=Allow launching the editor from the viewer\ncfgInsertAnimations=Insert Animations\ncfgInsertAnimationsHelp=Show pop animation when inserting shapes from the sidebar\ncfgIntersectionSelect=Intersection Select\ncfgIntersectionSelectHelp=Select cells by intersection rather than containment\ncfgKeyboardShortcuts=Keyboard Shortcuts (JSON)\ncfgKeyboardShortcutsHelp=Custom keyboard shortcuts. Entries are {keyCode, control, shift, alt, action} where keyCode is a key code or single character and action is an action name, or null to remove a binding.\ncfgLibraries=Libraries (JSON)\ncfgLibrariesHelp=Custom library sections for the left panel\ncfgLockdown=Lockdown\ncfgLockdown2=Lockdown\ncfgLockdown2Help=Disable data transmission outside Confluence\ncfgLockdownHelp=Disable data transmission apart from storage\ncfgMathOutputSize=Math Output Size\ncfgMathOutputSizeHelp=Size labels, view bounds and initial fit to the rendered math output instead of the formula source\ncfgMaxImageBytes=Max Image Bytes\ncfgMaxImageSize=Max Image Size (px)\ncfgMermaid=Mermaid Config (JSON)\ncfgMermaidHelp=Default Mermaid settings such as theme and colours for all diagrams\ncfgNoAutoFocus=No Auto Focus\ncfgNoAutoFocusHelp=Disable auto-focus on startup\ncfgNoResizers=No Resizers\ncfgNoResizersHelp=Hide shape resize handles\ncfgNotSet=Not set (use default)\ncfgOneDriveInlinePicker=OneDrive Inline Picker\ncfgOneDriveInlinePickerHelp=Use inline picker for OneDrive\ncfgOptimizeHtmlLabels=Optimize HTML Labels\ncfgOptimizeHtmlLabelsHelp=Remove unnecessary spans from HTML labels when editing stops\ncfgOverride=Override\ncfgOverrideHelp=Ignore user settings stored in the browser so the defaults in this configuration always apply\ncfgPageFormatHeight=Page Height (1/10 inch)\ncfgPageFormatHeightHelp=Page format: US Letter = 850 x 1100, A4 = 827 x 1169\ncfgPageFormatWidth=Page Width (1/10 inch)\ncfgPassiveScroll=Passive Scroll\ncfgPassiveScrollHelp=Enable passive scroll event listeners\ncfgPasteAtMousePointer=Paste at Mouse\ncfgPasteAtMousePointerHelp=Paste elements at mouse pointer location\ncfgPreserveViewState=Preserve View State\ncfgPreserveViewStateHelp=Preserve view state in embed mode\ncfgRemoveImageMetadata=Remove Image Metadata\ncfgRemoveImageMetadataHelp=Strip metadata from images\ncfgReplaceSvgDataUris=Replace SVG Data URIs\ncfgReplaceSvgDataUrisHelp=Replace data URIs with SVG sub-trees in export\ncfgResources=Language Resources (JSON)\ncfgResourcesHelp=Overrides existing or adds new language resources for user interface text. Maps resource keys to strings, or to objects with one entry per language code and main as the fallback.\ncfgRestrictExport=Restrict Export\ncfgRestrictExportHelp=Disable exporting diagrams to other formats\ncfgSearchSettings=Search settings (e.g. grid, font, dark mode, compressXml...)\ncfgSectionAIConfiguration=AI Configuration\ncfgSectionAppearance=Appearance\ncfgSectionCanvasGrid=Canvas & Grid\ncfgSectionCollaborationAdvanced=Collaboration & Advanced\ncfgSectionColorSchemes=Color Schemes\ncfgSectionColors=Colors\ncfgSectionConfluenceCloud=Confluence Cloud\ncfgSectionConfluenceServerDataCenter=Confluence Server / Data Center\ncfgSectionCustomCSS=Custom CSS\ncfgSectionDefaultStyles=Default Styles\ncfgSectionEmbedding=Embedding\ncfgSectionExportSecurity=Export & Security\ncfgSectionFonts=Fonts\ncfgSectionGeneral=General\ncfgSectionLibraries=Libraries\ncfgSectionMenuCustomization=Menu Customization\ncfgSectionSidebarPanels=Sidebar & Panels\ncfgSelectParentLayer=Select Parent Layer\ncfgSelectParentLayerHelp=Selects parent layer for current selection\ncfgSettingsName=Settings Name\ncfgSettingsNameHelp=Key for storing user settings in local storage\ncfgShadowBlur=Shadow Blur\ncfgShadowColor=Shadow Color\ncfgShadowOffsetX=Shadow Offset X\ncfgShadowOffsetY=Shadow Offset Y\ncfgShadowOpacity=Shadow Opacity\ncfgShapePicker=Shape Picker (JSON)\ncfgShapePickerHelp=Custom shape picker entries for the sidebar\ncfgShareCursorPosition=Share Cursor Position\ncfgShareCursorPositionHelp=Share cursor in real-time collaboration\ncfgShowConnectHandle=Show Connect Handle\ncfgShowConnectHandleHelp=Show connection handle on hover\ncfgShowLinkIcons=Show Link Icons\ncfgShowLinkIconsHelp=Show link icons on shapes\ncfgShowNoteIcons=Show Note Icons\ncfgShowNoteIconsHelp=Show note icons on shapes\ncfgShowRemoteCursors=Show Remote Cursors\ncfgShowRemoteCursorsHelp=Display other users\' cursors\ncfgShowSplashOnStart=Show Splash on Start\ncfgShowSplashOnStartHelp=Show the splash screen with storage options on startup\ncfgShowTooltipIcons=Show Tooltip Icons\ncfgShowTooltipIconsHelp=Show tooltip icons on shapes\ncfgSidebarTitleSize=Title Font Size (pt)\ncfgSidebarTitles=Sidebar Titles\ncfgSidebarTitlesHelp=Show titles in the sidebar\ncfgSidebarWidth=Sidebar Width\ncfgSimpleLabels=Simple Labels\ncfgSimpleLabelsHelp=Disable word wrap and HTML for labels\ncfgSimpleViewer=Simple Viewer\ncfgSimpleViewerHelp=Use simple viewer for all diagrams\ncfgStopEditingOnEnter=Stop Editing on Enter\ncfgStopEditingOnEnterHelp=Enter key stops label editing, Shift+Enter inserts a line break\ncfgStyles=Styles (JSON)\ncfgStylesHelp=Colours for the Style tab. Keys: commonStyle, vertexStyle, edgeStyle, graph.\ncfgSwimlaneSelectionEnabled=Swimlane Body Selection\ncfgSwimlaneSelectionEnabledHelp=Click an empty swimlane body to select the swimlane (default on)\ncfgTemplateFile=Template File URL\ncfgTemplateFileHelp=Sections shown in the template dialog. Leave empty for all.\ncfgThumbHeight=Thumbnail Height\ncfgThumbWidth=Thumbnail Width\ncfgTooltipFontSize=Tooltip Font Size (px)\ncfgTooltipMaxWidth=Tooltip Max Width (px)\ncfgTranslateDiagrams=Translate Diagrams\ncfgTranslateDiagramsHelp=Enable automatic translation of diagram labels\ncfgUi=UI Theme\ncfgUpdateDefaultStyle=Update Default Style\ncfgUpdateDefaultStyleHelp=Update defaults when styles change\ncfgUseInternalClipboard=Use Internal Clipboard\ncfgUseInternalClipboardHelp=Use internal clipboard instead of native\ncfgVersion=Version\ncfgVersionHelp=Configuration version identifier\ncfgViewerCanExceedPageWidth=Viewer Can Exceed Page Width\ncfgViewerCanExceedPageWidthHelp=Allow the viewer to exceed the page width\ncfgViewerTimeout=Viewer Timeout\ncfgZoomFactor=Zoom Factor\ncfgZoomWheel=Zoom with Mouse Wheel\ncfgZoomWheelHelp=Use mouse wheel for zoom without modifiers\ncfgEnabled=Enabled\npartialResponse=Partial response\nactor=Actor\ncallout=Callout\ncard=Card\ncloud=Cloud\ncross=Cross\ncube=Cube\ncylinder=Cylinder\ndelay=Delay\ndisplay=Display\ndocument=Document\nhexagon=Hexagon\nparallelogram=Parallelogram\npentagon=Pentagon\nprocess=Process\nsquare=Square\nstar=Star\nstep=Step\ntape=Tape\ntrapezoid=Trapezoid\ntriangle=Triangle\n');Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;+DrawioComment.prototype.deleteComment=function(b,d){b()};DrawioUser=function(b,d,m,p,t){this.id=b;this.email=d;this.displayName=m;this.pictureUrl=p;this.locale=t};mxResources.parse('about=About\naiFreeModelHint=Start a new chat or shorten your message to send more.\naboutDrawio=About draw.io\naccessDenied=Access Denied\naccounts=Accounts\naction=Action\nactualSize=Actual Size\nadaptiveColors=Adaptive Colors\nadd=Add\naddAccount=Add Account\naddedFile=Added {1}\naddImages=Add Images\naddImageUrl=Add Image URL\naddLayer=Add Layer\naddProperty=Add Property\naddress=Address\naddToExistingDrawing=Add to Existing Drawing\naddToScratchpad=Add to Scratchpad\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nsmartTemplate=Smart Template\nalign=Align\nalignment=Alignment\nalignCellsLeft=Align Left\nalignCellsCenter=Align Center\nalignCellsRight=Align Right\nalignCellsTop=Align Top\nalignCellsMiddle=Align Middle\nalignCellsBottom=Align Bottom\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSelectedObjectsInThisLayer=All selected objects are in this layer\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\nallCells=All cells\nanimations=Flow Animations\ncell=cell\ncells=cells\nexcluded=Excluded\nexcludeSelection=Exclude selected cells\nlayer=Layer\nselectLayers=Select layers\ntransition=Transition\nmatch=Match\nmatchAll=All\nmatchAllHint=Match cells that have every selected tag (AND)\nmatchAny=Any\nmatchAnyHint=Match cells that have at least one selected tag (OR)\nduration=Duration (ms)\nfadeIn=Fade In\nfadeOut=Fade Out\nfadeTo=Fade To\nflow=Flow\nflowOff=Flow Off\nflowOn=Flow On\nhighlight=Highlight\nnoTagsInDiagram=No tags in this diagram yet.\noptional=optional\npopIn=Pop In\npopOut=Pop Out\nreorder=Drag to reorder\nreset=Reset\nscroll=Scroll To\nselectByTags=Select by tags\nselectCellsInDiagram=Select cells in diagram\ntag=Tag\nsetOpacity=Set Opacity\ntiming=Timing\ntoggle=Toggle\ntoggleStyle=Toggle Style\nuseSelection=Use selected cells\nvisibilityActions=Visibility\nwait=Wait\nwipeIn=Wipe In\nwipeOut=Wipe Out\narc=Arc\nareYouSure=Are you sure?\nensureDataSaved=Please ensure your data is saved before closing.\nallChangesSaved=All changes saved\nallChangesSavedInDrive=All changes saved in Drive\nallowPopups=Allow pop-ups to avoid this dialog.\nallowRelativeUrl=Allow relative URL\nalreadyConnected=Nodes already connected\nappearance=Appearance\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narea=Area\narrow=Arrow\narrows=Arrows\naskMeAnything=Ask me anything\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosizeText=Automatic Font Size\nautosize=Autosize\nattach=Attach\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nbeta=beta\nblankDrawing=Blank Drawing\nblankDiagram=Blank Diagram\nblock=Block\nblockquote=Blockquote\nblog=Blog\nbold=Bold\nbootstrap=Bootstrap\nborder=Border\nborderColor=Border Color\nborderWidth=Border Width\nbottom=Bottom\nbottomAlign=Bottom Align\nbottomLeft=Bottom Left\nbottomRight=Bottom Right\nbpmn=BPMN\nbringForward=Bring Forward\nbrowser=Browser\nbulletedList=Bulleted List\nbusiness=Business\nbusy=Operation in progress\ncabinets=Cabinets\ncancel=Cancel\ncenter=Center\ncannotLoad=Load attempts failed. Please try again later.\ncannotLogin=Log in attempts failed. Please try again later.\ncannotOpenFile=Cannot open file\nchange=Change\nchangeOrientation=Change Orientation\nchangeUser=Change User\nchangeStorage=Change Storage\nchangesNotSaved=Changes have not been saved\ncharactersRemaining={1} characters remaining\nclassDiagram=Class Diagram\nclosePath=Close Path\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nclickToAdd=Click on canvas to add points\ncollaborativeEditingNotice=Important Notice for Collaborative Editing\ncompare=Compare\ncompressed=Compressed\ncommitMessage=Commit Message\nconfigLinkWarn=This link configures draw.io. Only click OK if you trust whoever gave you it!\nconfigLinkConfirm=Click OK to configure and restart draw.io.\ncontainer=Container\ncsv=CSV\ncurrentLayer=Current Layer\ndark=Dark\ndiagramLanguage=Diagram Language\ndiagramType=Diagram Type\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndictate=Dictate\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndisabled=Disabled\ndraftFound=A draft for \'{1}\' has been found. Load it into the editor or discard it to continue.\ndraftRevisionMismatch=There is a different version of this diagram on a shared draft of this page. Please edit the diagram from the draft to ensure you are working with the latest version.\nselectDraft=Select a draft to continue editing:\ndragAndDropNotSupported=Drag and drop not supported for images. Would you like to import instead?\ndropboxCharsNotAllowed=The following characters are not allowed: / : ? * " |\ncheck=Check\nchecksum=Checksum\ncircle=Circle\ncisco=Cisco\nclassic=Classic\nclearDefaultStyle=Clear Default Style\nclearWaypoints=Clear Waypoints\nclipart=Clipart\nclipboard=Clipboard\nclose=Close\nclosingFile=Closing file\nrealtimeCollaboration=Real-Time Collaboration\ncollaborate=Collaborate\ncollaborator=Collaborator\ncollaborators=Collaborators\ncollapse=Collapse\ncollapseAll=Collapse All\ncollapseExpand=Collapse/Expand\ncollapse-expand=Click to collapse/expand\nShift-click to move neighbors \nAlt-click to protect group size\ncollapsible=Collapsible\ncomic=Comic\ncomment=Comment\ncommentsNotes=Comments/Notes\ncompress=Compress\nconfiguration=Configuration\nconnect=Connect\nconnectable=Connectable\nconnecting=Connecting\nconnectWithDrive=Connect with Google Drive\nconnection=Connection\nconnectionArrows=Connection Arrows\nconnectionPoints=Connection Points\nconstrainProportions=Constrain Proportions\ncontainsValidationErrors=Contains validation errors\ncopiedToClipboard=Copied to clipboard\ncopy=Copy\ncopyCreated=A copy of the file was created.\ncopyData=Copy Data\ncopyDiagramToClipboard=Copy Diagram to Clipboard\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySelectionToClipboard=Copy Selection to Clipboard\ncopySize=Copy Size\ncopyStyle=Copy Style\ncopyTextStyle=Copy Text Style\ncreate=Create\ncreateDiagram=Create Diagram\ncreateBlankDiagram=Create Blank Diagram\ncreateNewDiagram=Create New Diagram\ncreateRevision=Create Revision\ncreateShape=Create Shape\ncrop=Crop\ncurved=Curved\ncustom=Custom\ncurrent=Current\ncurrentPage=Current Page\ncut=Cut\ndashed=Dashed\ndecideLater=Decide Later\ndefault=Default\ndelete=Delete\ndeleteAll=Delete All\ndeleteColumn=Delete Column\ndeleteLibrary401=Insufficient permissions to delete this library\ndeleteLibrary404=Selected library could not be found\ndeleteLibrary500=Error deleting library\ndeleteLibraryConfirm=You are about to permanently delete this library. Are you sure you want to do this?\nremoveLibraryConfirm=You are about to remove this library for everyone. Only an administrator can recover it. Are you sure you want to do this?\ndeleteRow=Delete Row\ndescription=Description\ndescribeYourDiagram=Describe your diagram\ndevice=Device\ndiagram=Diagram\ndiagramContent=Diagram Content\ndiagramLocked=Diagram has been locked to prevent further data loss.\ndiagramLockedBySince=The diagram is locked by {1} since {2} ago\ndiagramName=Diagram Name\ndiagramIsPublic=Diagram is public\ndiagramIsNotPublic=Diagram is not public\ndiamond=Diamond\ndiamondThin=Diamond (thin)\ndidYouKnow=Did you know...\ndirection=Direction\ndiscard=Discard\ndiscardChangesAndReconnect=Discard Changes and Reconnect\ngoogleDriveMissingClickHere=Google Drive missing? Click here!\ndiscardChanges=Discard Changes\ndisconnected=Disconnected\ndistribute=Distribute\ndistributeHorizontal=Distribute Horizontally\ndistributeVertical=Distribute Vertically\ndone=Done\ndoNotShowAgain=Do not show again\ndotted=Dotted\ndoubleClickOrientation=Doubleclick to change orientation\ndoubleClickTooltip=Doubleclick to insert text\ndoubleClickChangeProperty=Doubleclick to change property name\ndownload=Download\ndownloadDesktop=Get Desktop\ndownloadAs=Download as\nclickHereToSave=Click here to save.\ndpi=DPI\ndraftDiscarded=Draft discarded\ndraftSaved=Draft saved\ndragElementsHere=Drag elements here\ndragImagesHere=Drag images or URLs here\ndragUrlsHere=Drag URLs here\ndraw.io=draw.io\ndrawing=Drawing{1}\ndrawingEmpty=Drawing is empty\ndrawingTooLarge=Drawing is too large\ndrawioForWork=Draw.io for GSuite\ndropbox=Dropbox\nduplicate=Duplicate\nduplicateIt=Duplicate {1}\ndivider=Divider\ndx=Dx\ndy=Dy\neast=East\nedit=Edit\neditData=Edit Data\neditDiagram=Edit Diagram\neditGeometry=Edit Geometry\neditImage=Edit Image\neditImageUrl=Edit Image URL\neditLink=Edit Link\neditor=Editor\neditPolygon=Edit Polygon\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditNote=Edit Note\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\neffects=Effects\nembed=Embed\nembedCellMetadata=Cell Metadata\nembedFonts=Embed Fonts\nembedImages=Embed Images\nmainEmbedNotice=Paste this into the page\nelectrical=Electrical\nellipse=Ellipse\nembedNotice=Paste this once at the end of the page\nenterGroup=Enter Group\nenterName=Enter Name\nenterPropertyName=Enter Property Name\nenterValue=Enter Value\nentityRelation=Entity Relation\nentityRelationshipDiagram=Entity Relationship Diagram\nerror=Error\nerrorDeletingFile=Error deleting file\nerrorLoadingFile=Error loading file\nerrorRenamingFile=Error renaming file\nerrorRenamingFileNotFound=Error renaming file. File was not found.\nerrorRenamingFileForbidden=Error renaming file. Insufficient access rights.\nerrorSavingDraft=Error saving draft\nerrorSavingFile=Error saving file\nerrorSavingFileUnknown=Error authorizing with Google\'s servers. Please refresh the page to re-attempt.\nerrorSavingFileForbidden=Error saving file. Insufficient access rights.\nerrorSavingFileNameConflict=Could not save diagram. Current page already contains file named \'{1}\'.\nerrorSavingFileNotFound=Error saving file. File was not found.\nerrorSavingFileReadOnlyMode=Could not save diagram while read-only mode is active.\nerrorSavingFileSessionTimeout=Your session has ended. Please <a target=\'_blank\' href=\'{1}\'>{2}</a> and return to this tab to try to save again.\nerrorSendingFeedback=Error sending feedback.\nerrorUpdatingPreview=Error updating preview.\nexit=Exit\nexitGroup=Exit Group\nexpand=Expand\nexpandAll=Expand All\nexplore=Explore\nexport=Export\nexporting=Exporting\nexportAs=Export as\nexportOptionsDisabled=Export options disabled\nexportOptionsDisabledDetails=The owner has disabled options to download, print or copy for commenters and viewers on this file.\nexternalChanges=External Changes\nextras=Extras\nfailedToSaveTryReconnect=Failed to save, trying to reconnect\nfeatureRequest=Feature Request\nfeedback=Feedback\nfeedbackSent=Feedback successfully sent.\nfloorplans=Floorplans\nfile=File\nfileChangedOverwriteDialog=The file has been modified. Do you want to save the file and overwrite those changes?\nfileChangedSyncDialog=The file has been modified.\nfileChangedSync=The file has been modified. Click here to synchronize.\noverwrite=Overwrite\nsynchronize=Synchronize\nfilename=Filename\nfileExists=File already exists\nfileMovedToTrash=File was moved to trash\nfileNearlyFullSeeFaq=File nearly full, please see FAQ\nfileNotFound=File not found\nrepositoryNotFound=Repository not found\nfileNotFoundOrDenied=The file was not found. It does not exist or you do not have access.\nfileNotLoaded=File not loaded\nfileNotSaved=File not saved\nfileOpenLocation=How would you like to open these file(s)?\nfiletypeHtml=.html causes file to save as HTML with redirect to cloud URL\nfiletypePng=.png causes file to save as PNG with embedded data\nfiletypeSvg=.svg causes file to save as SVG with embedded data\nfileWillBeSavedInAppFolder={1} will be saved in the app folder.\nfill=Fill\nfillColor=Fill Color\nfilterCards=Filter Cards\nfind=Find\nfindInDiagram=Find in Diagram\nfit=Fit\nfitContainer=Resize Container\nfitIntoContainer=Fit into Container\nfitPage=Fit Page\nfitPageWidth=Fit Page Width\nfitTextToShape=Fit Text to Shape\nfitTo=Fit to\nfitToSheetsAcross=sheet(s) across\nfitToBy=by\nfitToSheetsDown=sheet(s) down\nfitTwoPages=Two Pages\nfitWindow=Fit Window\nflip=Flip\nflipH=Flip Horizontal\nflipV=Flip Vertical\nflowAnimation=Flow Animation\nflowchart=Flowchart\nfolder=Folder\nfont=Font\nfontColor=Font Color\nfontFamily=Font Family\nfontSize=Font Size\nforbidden=You are not authorized to access this file\nforceDirected=Force-directed\nformat=Format\nformatAnimatedGif=Animated GIF\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatJson=JSON\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatVsdx=VSDX\nformatWebp=WebP\nformatXml=XML\nforum=Discussion/Help Forums\nfreehand=Freehand\nfromTemplate=From Template\nfromTemplateUrl=From Template URL\nfromText=From Text\nfromUrl=From URL\nfromThisPage=From this page\nfullscreen=Fullscreen\ngap=Gap\ngcp=GCP\ngDriveAppFilesOnly=Only files created or opened with draw.io in Google Drive are listed. To add another file, open it once at app.diagrams.net.\ngeneral=General\ngetNotionChromeExtension=Get the Notion Chrome Extension\ngithub=GitHub\ngitlab=GitLab\ngliffy=Gliffy\nglobal=Global\ngoogleDocs=Google Docs\ngoogleDrive=Google Drive\ngoogleGadget=Google Gadget\ngoogleSharingNotAvailable=Sharing is only available via Google Drive. Please click Open below and share from the more actions menu:\ngoogleSlides=Google Slides\ngoogleSites=Google Sites\ngoogleSheets=Google Sheets\ngradient=Gradient\ngradientColor=Color\ngrid=Grid\ngridColor=Grid Color\ngridSize=Grid Size\ngroup=Group\ngroupPadding=Group Padding\nguides=Guides\nheading=Heading\nheight=Height\nhelp=Help\nhelpTranslate=Help us translate this application\nhide=Hide\nhideIt=Hide {1}\nhidden=Hidden\nshiftClickShowOnly=Shift+click: show only {1}\nhighContrast=High Contrast\nhome=Home\nhorizontal=Horizontal\nhorizontalFlow=Horizontal Flow\nhorizontalTree=Horizontal Tree\nhowTranslate=How good is the translation in your language?\nhtml=HTML\nhtmlText=HTML Text\nicons=Icons\nid=ID\niframe=IFrame\nignore=Ignore\nimage=Image\nimageClicked=Image copied to clipboard\nimageUrl=Image URL\nimages=Images\nimagePreviewError=This image couldn\'t be loaded for preview. Please check the URL.\nimageTooBig=Image too big\nimgur=Imgur\nimmediate=Immediate\nimport=Import\nimportFrom=Import from\nincludeCopyOfMyDiagram=Include a copy of my diagram\nincreaseIndent=Increase Indent\ndecreaseIndent=Decrease Indent\ninherit=Inherit\ninitialPage=Initial Page\ninitialView=Initial View\ninsert=Insert\ninsertColumnBefore=Insert Column Left\ninsertColumnAfter=Insert Column Right\ninsertDiagramFromClipboard=Insert Diagram from Clipboard\ninsertEllipse=Insert Ellipse\ninsertImage=Insert Image\ninsertHorizontalRule=Insert Horizontal Rule\ninsertLink=Insert Link\ninsertPage=Insert Page\ninsertRectangle=Insert Rectangle\ninsertRhombus=Insert Rhombus\ninsertRowBefore=Insert Row Above\ninsertRowAfter=Insert Row After\ninsertText=Insert Text\ninserting=Inserting\ninstallApp=Install App\ninvalidFilename=Diagram names must not contain the following characters: / | : ; { } < > & + ? = "\ninvalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://www.drawio.com/doc/faq/license-drawio-confluence-jira-cloud">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\ninvertSelection=Invert Selection\nisometric=Isometric\nios=iOS\nitalic=Italic\nkennedy=Kennedy\nkeyboardShortcuts=Keyboard Shortcuts\nlabels=Labels\nlabelPadding=Label Padding\nlabelWidth=Label Width\nlayers=Layers\nlandscape=Landscape\nlanguage=Language\nleanMapping=Lean Mapping\nlastChange=Last change {1} ago\nlessThanAMinute=less than a minute\nlibavoidAutoRoute=Auto-route around shapes\nlibavoidUnavailable=Orthogonal routing is not available in this browser.\nlicensingError=Licensing Error\nlicenseHasExpired=The license for {1} has expired on {2}. Click here.\nlicenseRequired=This feature requires draw.io to be licensed.\nlicenseWillExpire=The license for {1} will expire on {2}. Click here.\nlight=Light\nlineJumps=Line Jumps\nlinkAccountRequired=If the diagram is not public a Google account is required to view the link.\nlinkIcons=Link Icons\nlinkText=Link Text\ntooltipIcons=Tooltip Icons\nlist=List\nminute=minute\nminutes=minutes\nhours=hours\ndays=days\nmonths=months\nyears=years\nrestartForChangeRequired=Changes will take effect after a restart of the application.\nlaneColor=Lanecolor\nlanguageCode=Language Code\nlastModified=Last modified\nlayout=Layout\nleft=Left\nleftAlign=Left Align\nleftToRight=Left to Right\nlibraryTooltip=Drag and drop shapes here or click + to insert. Double click to edit.\nlightbox=Lightbox\nlightboxAnimationHint=Plays automatically when the page is shown in lightbox mode.\nline=Line\nlineend=Line End\nlineheight=Line Height\nlinestart=Line Start\nlinewidth=Linewidth\nlink=Link\nlinks=Links\nloading=Loading\nlock=Lock\nlocked=Locked\nlockUnlock=Lock/Unlock\nloggedOut=Logged Out\nlogIn=log in\nloop=Loop\nlucidchart=Lucidchart\nmaps=Maps\nmathematicalTypesetting=Mathematical Typesetting\nmakeCopy=Make a Copy\nmanual=Manual\nmaximize=Maximize\nmerge=Merge\nmermaid=Mermaid\nmethod=Method\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nminimize=Minimize\nmisc=Misc\nmockups=Mockups\nmodern=Modern\nmodificationDate=Modification date\nmodifiedBy=Modified by\nmore=More\nmoreResults=More Results\nmoreShapes=More Shapes\nmove=Move\nmoveToFolder=Move to Folder\nmoving=Moving\nmoveSelectionTo=Move Selection to {1}\nmultipleValues=Multiple values\nmyDrive=My Drive\nmyFiles=My Files\nname=Name\nnavigation=Navigation\nnetwork=Network\nnetworking=Networking\nnew=New\nnewChat=New Chat\nnewLibrary=New Library\nnextPage=Next Page\nno=No\nnoPickFolder=No, pick folder\nnoAttachments=No attachments found\nnoColor=No Color\nnoFiles=No Files\nnoFileSelected=No file selected\nnoAnimationsInDiagram=No animations found in diagram\nnoLibraries=No libraries found\nnoMoreResults=No more results\nnone=None\nnoOtherViewers=No other viewers\nnoPlugins=No plugins\nnoPreview=No preview\nnoResponse=No response from server\nnoResultsFor=No results for \'{1}\'\nnoRevisions=No revisions\nnoSearchResults=No search results found\nnoStepsYet=No steps yet. Add the first step below.\nnoPageContentOrNotSaved=No anchors found on this page or it hasn\'t been saved yet\nnormal=Normal\nnorth=North\nnotADiagramFile=Not a diagram file\nnotALibraryFile=Not a library file\nnotAvailable=Not available\nnotAUtf8File=Not a UTF-8 file\nnotConnected=Not connected\nnote=Note\nnotes=Notes\nnotion=Notion\nnotSatisfiedWithImport=Not satisfied with the import?\nnotUsingService=Not using {1}?\nnumberedList=Numbered List\noffline=Offline\naddToLibrary=Add to Library\nanimation=Animation\nbool=Boolean\ncannotMoveOneDrive=Moving a file between accounts is not supported yet.\ncode=Code\ncolor=Color\ndispName=Display Name\nenum=Enumeration\nenumList=Enum List\nfast=Fast\nfloat=Float\nforever=Forever\nint=Int\ninvalid=invalid\nloops=Loops\nmedium=Medium\nslow=Slow\nspeed=Speed\nstring=String\nmanage=Manage\nofflineLanguages=Languages available offline\nok=OK\noneDrive=OneDrive\nonline=Online\nopacity=Opacity\nopen=Open\nopenArrow=Open Arrow\nopenExistingDiagram=Open Existing Diagram\nopenFile=Open File\nopenFrom=Open from\nopenLibrary=Open Library\nopenLibraryFrom=Open Library from\nopenLink=Open Link\nopenInNewWindow=Open in New Window\nopenInThisWindow=Open in This Window\nopenIt=Open {1}\nopenRecent=Open Recent\nopenRepairedCopy=Open repaired copy\nopenSupported=Supported formats are files saved from this software (.xml), .vsdx and .gliffy\noptions=Options\norganic=Organic\norgChart=Org Chart\northogonal=Orthogonal\northogonalRouting=Orthogonal Routing\notherViewer=other viewer\notherViewers=other viewers\noutline=Outline\noval=Oval\npage=Page\npageContent=Page Content\npageNotFound=Page not found\npageWithNumber=Page-{1}\npages=Pages\npageTabs=Page Tabs\npageView=Page View\npageSetup=Page Setup\npageScale=Page Scale\npan=Pan\npanTooltip=Space+Drag to pan\npaperSize=Paper Size\npattern=Pattern\nparallels=Parallels\npaste=Paste\npasteData=Paste Data\npasteHere=Paste Here\npasteResponse=Paste Response\npasteSize=Paste Size\npasteStyle=Paste Style\npasteTextStyle=Paste Text Style\nperimeter=Perimeter\npermissionAnyone=Anyone can edit\npermissionAuthor=Owner and admins can edit\npickFolder=Pick a folder\npickLibraryDialogTitle=Select Library\npublicDiagramUrl=Public URL of the diagram\nplaceholders=Placeholders\nplantUml=PlantUML\nplugins=Plugins\npluginUrl=Plugin URL\npluginWarning=The page has requested to load the following plugin(s):\n \n {1}\n \n Would you like to load these plugin(s) now?\n \n NOTE : Only allow plugins to run if you fully understand the security implications of doing so.\n\nplusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone).\npolygon=Polygon\nportrait=Portrait\npoint=Point\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\npresentationMode=Presentation Mode\nprint=Print\nprocEng=Process Engineering\nproject=Project\npriority=Priority\nprocessForHiringNewEmployee=Process for hiring a new employee\npromptOnly=Prompt Only\npromptTooLarge=Only {1} characters allowed in the free version using the draw.io model\npromptWithDiagram=Prompt with Diagram\npromptWithSelection=Prompt with Selection\nproperties=Properties\npublish=Publish\nquickStart=Quick Start Video\nrack=Rack\nradial=Radial\nradialTree=Radial Tree\nreadOnly=Read-only\nreconnecting=Reconnecting\nrecentlyUpdated=Recently Updated\nrecentlyViewed=Recently Viewed\nrectangle=Rectangle\nredirectToNewApp=This file was created or modified in a newer version of this app. You will be redirected now.\nrealtimeTimeout=It looks like you\'ve made a few changes while offline. We\'re sorry, these changes cannot be saved.\nredo=Redo\nrefresh=Refresh\nregularExpression=Regular Expression\nrelative=Relative\nrelativeUrlNotAllowed=Relative URL not allowed\nretry=Retry\nrememberMe=Remember Me\nrememberThisSetting=Remember This Setting\nremoveFormat=Clear Formatting\nremoveFromGroup=Remove from Group\nremoveIt=Remove {1}\nremoveWaypoint=Remove Waypoint\nrename=Rename\nrenamed=Renamed\nrenameIt=Rename {1}\nrenaming=Renaming\nreplace=Replace\nreplaceIt={1} already exists. Do you want to replace it?\nreplaceExistingDrawing=Replace Existing Drawing\nrequired=required\nrequirementDiagram=Requirement Diagram\nresetView=Reset View\nresize=Resize\nresizeLargeImages=Do you want to resize large images to make the application run faster?\nretina=Retina\nresponsive=Responsive\nrestore=Restore\nrestoreBackupCopy=Open backup as copy\nrecover=Recover…\nrecoverTitle=Recover file\nrecoverVersionFrom=Version from {1}\nrecoverPreviousVersion=Previous version\nrecoveryVersionDesc=A previously saved version. Complete, but any changes made since then are not included.\nrecoveryRepairedDesc=The current file with a best-effort repair. Recent, but content after the damaged point may be missing.\nrecoveryWarning=This is a best-effort recovery and may be missing content. It will open as a new unsaved copy and your original file is not changed. Continue?\nrestoring=Restoring\nretryingIn=Retrying in {1} second(s)\nretryingLoad=Load failed. Retrying...\nretryingLogin=Login time out. Retrying...\nreverse=Reverse\nrevision=Revision\nrevisionHistory=Revision History\nrhombus=Rhombus\nright=Right\nrightAlign=Right Align\nrightToLeft=Right to Left\nrotate=Rotate\nrotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees\nrotation=Rotation\nrounded=Rounded\nrunLastLayout=Run Last Layout\nsave=Save\nsaveAndExit=Save & Exit\nsaveAs=Save as\nsaveAsXmlFile=Save as XML file?\nsaved=Saved\nsaveDiagramFirst=Please save the diagram first\nsaveDiagramsTo=Save diagrams to\nsaveLibrary403=Insufficient permissions to edit this library\nsaveLibrary500=There was an error while saving the library\nsaveLibraryReadOnly=Could not save library while read-only mode is active\nsaving=Saving\nscratchpad=Scratchpad\nscrollbars=Scrollbars\nsearch=Search\nsearchImages=Search Images\nsearchShapes=Search Shapes\nsearchShapesInOpenLibraries=Search Shapes in Open Libraries\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectedPage=Selected Page\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselection=Selection\nselectNone=Select None\nselectObjectsInLayer=Select Objects in Layer\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nsequenceDiagram=Sequence Diagram\nserviceUnavailableOrBlocked=Service unavailable or blocked\nsessionExpired=Your session has expired. Please refresh the browser window.\nsessionTimeoutOnSave=Your session has timed out and you have been disconnected from the Google Drive. Press OK to login and save.\nsetAsDefaultStyle=Set as Default Style\nsettings=Settings\nshadow=Shadow\nshadows=Shadows\nshape=Shape\nshapeDeleted=Shape deleted\nshapes=Shapes\nshare=Share\nshareCursor=Share Mouse Cursor\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsaveItToGoogleDriveToCollaborate=You\'ll need to save "{1}" to Google Drive before you can collaborate.\nsaveToGoogleDrive=Save to Google Drive\nsharp=Sharp\nshow=Show\nshowRemoteCursors=Show Remote Mouse Cursors\nsidebarTooltip=Click or drag and drop shapes. Shift+click to change selection. Alt+click to insert and connect.\nsigns=Signs\nsignOut=Sign out\nsimple=Simple\nsimpleArrow=Simple Arrow\nsimpleViewer=Simple Viewer\nsize=Size\nsketch=Sketch\nsmoothing=Smoothing\nsnapToGrid=Snap to Grid\nsolid=Solid\nsortPages=Sort Pages\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstateDiagram=State Diagram\nstandard=Standard\nstartDrawing=Start Drawing\nstopDrawing=Stop Drawing\nstarting=Starting\nstraight=Straight\nstrikethrough=Strikethrough\nstrokeColor=Line Color\nstress=Stress\nstyle=Style\nsubscript=Subscript\nsummary=Summary\nsuperscript=Superscript\nsupport=Support\nswap=Swap\nswimlaneDiagram=Swimlane Diagram\nsysml=SysML\ntags=Tags\ntable=Table\ntables=Tables\ntakeOver=Take Over\ntargetSpacing=Target Spacing\ntemplate=Template\ntemplates=Templates\ntext=Text\ntextAlignment=Text Alignment\ntextOpacity=Text Opacity\ntheme=Theme\ntimeout=Timeout\ntitle=Title\nto=to\ntoBack=To Back\ntoFront=To Front\ntooLargeUseDownload=Too large, use download instead.\ntoolbar=Toolbar\ntooltips=Tooltips\ntop=Top\ntopAlign=Top Align\ntopLeft=Top Left\ntopRight=Top Right\ntransparent=Transparent\ntransparentBackground=Transparent Background\ntrello=Trello\ntryAgain=Try again\ntryOpeningViaThisPage=Try opening via this page, then click "Open with draw.io" button in the top right corner.\nturn=Rotate Shape Only by 90°\ntype=Type\ntypeSlashToSearch=Type / to search\numl=UML\nunassigned=Unassigned\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunlock=Unlock\nunmerge=Unmerge\nunsavedChanges=Unsaved changes\nunsavedChangesClickHereToSave=Unsaved changes. Click here to save.\nuntitled=Untitled\nuntitledDiagram=Untitled Diagram\nuntitledLayer=Untitled Layer\nuntitledLibrary=Untitled Library\nunknownError=Unknown error\nunknownUser=Unknown user\nupdateDiagramFromClipboard=Update diagram from clipboard\nupdateExistingDrawing=Update existing drawing\nupdateFile=Update {1}\nupdatingDocument=Updating document. Please wait...\nupdatingPreview=Updating preview. Please wait...\nupdatingSelection=Updating selection. Please wait...\nupload=Upload\nurl=URL\nuseBlackAndWhite=Use Black and White\nuseCurrent=Use Current\nuseCurrentSettings=Use Current Settings\nuseOffline=Use Offline\nuserDefined=User-defined\nuseRootFolder=Use root folder?\nuserManual=User Manual\nvertical=Vertical\nverticalFlow=Vertical Flow\nverticalTree=Vertical Tree\nview=View\nviewerSettings=Viewer Settings\nviewUrl=Link to view: {1}\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwhere=Where\nwidth=Width\nwiki=Wiki\nwordWrap=Word Wrap\nwritingDirection=Writing Direction\nyes=Yes\nyourEmailAddress=Your email address\nzoom=Zoom\nzoomIn=Zoom In\nzoomOut=Zoom Out\nbusinessprocess=Business Processes\ncharts=Charts\nengineering=Engineering\nflowcharts=Flowcharts\ngmdl=Material Design\nmindmaps=Mindmaps\nnetworkdiagrams=Network Diagrams\nnothingIsSelected=Nothing is selected\nother=Other\nsoftwaredesign=Software Design\nvenndiagrams=Venn Diagrams\nwebEmailOrOther=Web, email or any other internet address\nwebLink=Web Link\nwireframes=Wireframes\nproperty=Property\nvalue=Value\nshowMore=Show More\nshowLess=Show Less\nmyDiagrams=My Diagrams\nallDiagrams=All Diagrams\nrecentlyUsed=Recently Used\nlistView=List View\ngridView=Grid View\nresultsFor=Results for \'{1}\'\noneDriveCharsNotAllowed=The following characters are not allowed: ~ " # % * : < > ? / { | }\noneDriveInvalidDeviceName=The specified device name is invalid\nofficeNotLoggedOD=You are not logged in to OneDrive. Please open draw.io task pane and login first.\nofficeSelectSingleDiag=Please select a single draw.io diagram only without other contents.\nofficeSelectDiag=Please select a draw.io diagram.\nofficeCannotFindDiagram=Cannot find a draw.io diagram in the selection\nnoDiagrams=No diagrams found\nauthFailed=Authentication failed\nofficeFailedAuthMsg=Unable to successfully authenticate user or authorize application.\nconvertingDiagramFailed=Converting diagram failed\nofficeCopyImgErrMsg=Due to some limitations in the host application, the image could not be inserted. Please manually copy the image then paste it to the document.\ninsertingImageFailed=Inserting image failed\nofficeCopyImgInst=Instructions: Right-click the image below. Select "Copy image" from the context menu. Then, in the document, right-click and select "Paste" from the context menu.\nfolderEmpty=Folder is empty\nrecent=Recent\nsharedWithMe=Shared With Me\nsharepointSites=Sharepoint Sites\nerrorFetchingFolder=Error fetching folder items\nerrorAuthOD=Error authenticating to OneDrive\nofficeMainHeader=Adds draw.io diagrams to your document.\nofficeStepsHeader=This add-in performs the following steps:\nofficeStep1=Connects to Microsoft OneDrive, Google Drive or your device.\nofficeStep2=Select a draw.io diagram.\nofficeStep3=Insert the diagram into the document.\nofficeAuthPopupInfo=Please complete the authentication in the pop-up window.\nofficeSelDiag=Select draw.io Diagram:\nfiles=Files\nshared=Shared\nsharepoint=Sharepoint\nofficeManualUpdateInst=Instructions: Copy draw.io diagram from the document. Then, in the box below, right-click and select "Paste" from the context menu.\nofficeClickToEdit=Click icon to start editing:\npasteDiagram=Paste draw.io diagram here\nconnectOD=Connect to OneDrive\nselectChildren=Select Children\nselectSiblings=Select Siblings\nselectParent=Select Parent\nselectDescendants=Select Descendants\nlastSaved=Last saved {1} ago\nresolve=Resolve\nreopen=Re-open\nshowResolved=Show Resolved\nreply=Reply\nobjectNotFound=Object not found\nreOpened=Re-opened\nmarkedAsResolved=Marked as resolved\nnoCommentsFound=No comments found\nmentionNoNotify=People you mention are not notified\ncomments=Comments\ntimeAgo={1} ago\nconfluenceCloud=Confluence Cloud\nlibraries=Libraries\nconfAnchor=Confluence Page Anchor\nconfTimeout=The connection has timed out\nconfSrvTakeTooLong=The server at {1} is taking too long to respond.\nconfCannotInsertNew=Cannot insert draw.io diagram to a new Confluence page\nconfSaveTry=Please save the page and try again.\nconfCannotGetID=Unable to determine page ID\nconfContactAdmin=Please contact your Confluence administrator.\nreadErr=Read Error\neditingErr=Editing Error\nconfExtEditNotPossible=This diagram cannot be edited externally. Please try editing it while editing the page\nconfEditedExt=Diagram/Page edited externally\ndiagNotFound=Diagram Not Found\nconfEditedExtRefresh=Diagram/Page is edited externally. Please refresh the page.\nconfCannotEditDraftDelOrExt=Cannot edit diagrams in a draft page, diagram is deleted from the page, or diagram is edited externally. Please check the page.\nretBack=Return back\nconfDiagNotPublished=The diagram does not belong to a published page\ncreatedByDraw=Created by draw.io\nfilenameShort=Filename too short\ninvalidChars=Invalid characters\nalreadyExst={1} already exists\ndraftReadErr=Draft read error\ndiagCantLoad=Diagram cannot be loaded\ndraftWriteErr=Draft write error\ndraftCantCreate=Draft could not be created\nconfDuplName=Duplicate diagram name detected. Please pick another name.\nconfSessionExpired=Looks like your session expired. Log in again to keep working.\nlogin=Login\ndrawPrev=draw.io preview\ndrawDiag=draw.io diagram\ninvalidCallFnNotFound=Invalid Call: {1} not found\ninvalidCallErrOccured=Invalid Call: An error occurred, {1}\nanonymous=Anonymous\nconfGotoPage=Go to containing page\nshowComments=Show Comments\nconfError=Error: {1}\ngliffyImport=Gliffy Import\ngliffyImportInst1=Click the "Start Import" button to import all Gliffy diagrams to draw.io.\ngliffyImportInst2=Please note that the import procedure will take some time and the browser window must remain open until the import is completed.\nstartImport=Start Import\ndrawConfig=draw.io Configuration\ncustomLib=Custom Libraries\ncustomTemp=Custom Templates\npageIdsExp=Page IDs Export\ndrawReindex=draw.io re-indexing\nworking=Working\ndrawConfigNotFoundInst=draw.io Configuration Space (DRAWIOCONFIG) does not exist. This space is needed to store draw.io configuration files and custom libraries/templates.\ncreateConfSp=Create Config Space\nunexpErrRefresh=Unexpected error, please refresh the page and try again.\nconfigJSONInst=Write draw.io JSON configuration in the editor below then click save. If you need help, please refer to\nthisPage=this page\ncurCustLib=Current Custom Libraries\nlibName=Library Name\ndrawConfID=draw.io Config ID\naddLibInst=Click the "Add Library" button to upload a new library.\naddLib=Add Library\ncustomTempInst1=Custom templates are draw.io diagrams saved in children pages of\ncustomTempInst2=For more details, please refer to\ntempsPage=Templates page\npageIdsExpInst1=Select export target, then click the "Start Export" button to export all pages IDs.\npageIdsExpInst2=Please note that the export procedure will take some time and the browser window must remain open until the export is completed.\nstartExp=Start Export\nrefreshDrawIndex=Refresh draw.io Diagrams Index\nreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.\nreindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.\nreindexInst3=Indexing pauses while the computer is asleep or offline and resumes when the connection returns, so keep the computer awake until "Re-indexing finished" is shown.\nstartIndexing=Start Indexing\nconfAPageFoundFetch=Page "{1}" found. Fetching\nconfAAllDiagDone=All {1} diagrams processed. Process finished.\nconfAStartedProcessing=Started processing page "{1}"\nconfAAllDiagInPageDone=All {1} diagrams in page "{2}" processed successfully.\nconfAPartialDiagDone={1} out of {2} {3} diagrams in page "{4}" processed successfully.\nconfAUpdatePageFailed=Updating page "{1}" failed.\nconfANoDiagFoundInPage=No {1} diagrams found in page "{2}".\nconfAFetchPageFailed=Fetching the page failed.\nconfANoDiagFound=No {1} diagrams found. Process finished.\nconfASearchFailed=Searching for {1} diagrams failed. Please try again later.\nconfAGliffyDiagFound={2} diagram "{1}" found. Importing\nconfAGliffyDiagImported={2} diagram "{1}" imported successfully.\nconfASavingImpGliffyFailed=Saving imported {2} diagram "{1}" failed.\nconfAImportedFromByDraw=Imported from "{1}" by draw.io\nconfAImportGliffyFailed=Importing {2} diagram "{1}" failed.\nconfAFetchGliffyFailed=Fetching {2} diagram "{1}" failed.\nconfACheckBrokenDiagLnk=Checking for broken diagrams links.\nconfADelDiagLinkOf=Deleting diagram link of "{1}"\nconfADupLnk=(duplicate link)\nconfADelDiagLnkFailed=Deleting diagram link of "{1}" failed.\nconfAUnexpErrProcessPage=Unexpected error during processing the page with id: {1}\nconfADiagFoundIndex=Diagram "{1}" found. Indexing\nconfADiagIndexSucc=Diagram "{1}" indexed successfully.\nconfAIndexDiagFailed=Indexing diagram "{1}" failed.\nconfASkipDiagOtherPage=Skipped "{1}" as it belongs to another page!\nconfADiagUptoDate=Diagram "{1}" is up to date.\nconfACheckPagesWDraw=Checking pages having draw.io diagrams.\nconfAErrOccured=An error occurred!\nsavedSucc=Saved successfully\nconfASaveFailedErr=Saving failed (unexpected error)\ncharacter=Character\nconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachment\nconfALibPageDesc=This page contains draw.io custom libraries as attachments\nconfATempPageDesc=This page contains draw.io custom templates as attachments\nconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templates\nconfANoCustLib=No Custom Libraries\ndelFailed=Delete failed!\nshowID=Show ID\nconfAIncorrectLibFileType=Incorrect file type. Libraries should be XML files.\nuploading=Uploading\nconfALibExist=This library already exists\nconfAUploadSucc=Uploaded successfully\nconfAUploadFailErr=Upload failed (unexpected error)\nhiResPreview=High Resolution Preview\nofficeNotLoggedGD=You are not logged in to Google Drive. Please open draw.io task pane and login first.\nofficePopupInfo=Please complete the process in the pop-up window.\npickODFile=Pick OneDrive File\ncreateODFile=Create OneDrive File\npickGDriveFile=Pick Google Drive File\ncreateGDriveFile=Create Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\ntryVssDraw=Try importing the file at {1}\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nminTwoPoints=At least 2 points required\nconfEditDraftDelOrExt=This diagram is in a draft page, is deleted from the page, or is edited externally. It will be saved as a new attachment version and may not be reflected in the page.\nconfDiagEditedExt=Diagram is edited in another session. It will be saved as a new attachment version but the page will show other session\'s modifications.\nmacroNotFound=Macro Not Found\nconfAInvalidPageIdsFormat=Incorrect Page IDs file format\nconfACollectingCurPages=Collecting current pages\nconfABuildingPagesMap=Building pages mapping\nconfAProcessDrawDiag=Started processing imported draw.io diagrams\nconfAProcessDrawDiagDone=Finished processing imported draw.io diagrams\nconfAProcessImpPages=Started processing imported pages\nconfAErrPrcsDiagInPage=Error processing draw.io diagrams in page "{1}"\nconfAPrcsDiagInPage=Processing draw.io diagrams in page "{1}"\nconfAImpDiagram=Importing diagram "{1}"\nconfAImpDiagramFailed=Importing diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\nconfAImpDiagramError=Error importing diagram "{1}". Cannot fetch or save the diagram. Cannot fix this diagram links.\nconfAUpdateDgrmCCFailed=Updating link to diagram "{1}" failed.\nconfImpDiagramSuccess=Updating diagram "{1}" done successfully.\nconfANoLnksInDrgm=No links to update in: {1}\nconfAUpdateLnkToPg=Updated link to page: "{1}" in diagram: "{2}"\nconfAUpdateLBLnkToPg=Updated lightbox link to page: "{1}" in diagram: "{2}"\nconfAUpdateLnkBase=Updated base URL from: "{1}" to: "{2}" in diagram: "{3}"\nconfAPageIdsImpDone=Page IDs import finished\nconfAPrcsMacrosInPage=Processing draw.io macros in page "{1}"\nconfAErrFetchPage=Error fetching page "{1}"\nconfAFixingMacro=Fixing macro of diagram "{1}"\nconfAErrReadingExpFile=Error reading export file\nconfAPrcsDiagInPageDone=Processing draw.io diagrams in page "{1}" finished\nconfAFixingMacroSkipped=Fixing macro of diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\npageIdsExpTrg=Export target\nconfALucidDiagImgImported={2} diagram "{1}" image extracted successfully\nconfASavingLucidDiagImgFailed=Extracting {2} diagram "{1}" image failed\nconfGetInfoFailed=Fetching file info from {1} failed.\nconfCheckCacheFailed=Cannot get cached file info.\nconfReadFileErr=Cannot read "{1}" file from {2}.\nconfSaveCacheFailed=Unexpected error. Cannot save cached file\norgChartType=Org Chart Type\nlinear=Linear\nhanger2=Hanger 2\nhanger4=Hanger 4\nfishbone1=Fishbone 1\nfishbone2=Fishbone 2\n1ColumnLeft=Single Column Left\n1ColumnRight=Single Column Right\nsmart=Smart\nparentChildSpacing=Parent Child Spacing\nsiblingSpacing=Sibling Spacing\nconfNoPermErr=Sorry, you don\'t have enough permissions to view this embedded diagram from page {1}\ncopyAsImage=Copy as Image\ncopyAsText=Copy as Text\ncopyAsSvg=Copy as SVG\nlucidImport=Lucidchart Import\nlucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.\ninstallFirst=Please install {1} first\ndrawioChromeExt=draw.io Chrome Extension\nloginFirstThen=Please login to {1} first, then {2}\nerrFetchDocList=Error: Couldn\'t fetch documents list\nbuiltinPlugins=Built-in Plugins\nextPlugins=External Plugins\nbackupFound=Backup file found\nchromeOnly=This feature only works in Google Chrome\nmsgDeleted=This message has been deleted\nconfAErrFetchDrawList=Error fetching diagrams list. Some diagrams are skipped.\nconfAErrCheckDrawDiag=Cannot check diagram {1}\nconfAErrFetchPageList=Error fetching pages list\nconfADiagImportIncom={1} diagram "{2}" is imported partially and may have missing shapes\ninvalidSel=Invalid selection\ndiagNameEmptyErr=Diagram name cannot be empty\nopenDiagram=Open Diagram\nnewDiagram=New diagram\neditable=Editable\nconfAReimportStarted=Re-import {1} diagrams started...\nspaceFilter=Filter by Spaces\ncurViewState=Current Viewer State\npageLayers=Page and Layers\ncustomize=Customize\nfirstPage=First Page (All Layers)\ncurEditorState=Current Editor State\nnoAnchorsFound=No anchors found\nattachment=Attachment\ncurDiagram=Current Diagram\nrecentDiags=Recent Diagrams\ncsvImport=CSV Import\nchooseFile=Choose a File...\nchoose=Choose\ngdriveFname=Google Drive filename\nwidthOfViewer=Width of the Viewer (px)\nheightOfViewer=Height of the Viewer (px)\nautoSetViewerSize=Automatically set the size of the viewer\nthumbnail=Thumbnail\nprevInDraw=Preview in draw.io\nonedriveFname=OneDrive filename\ndiagFname=Diagram filename\ndiagUrl=Diagram URL\nshowDiag=Show Diagram\ndiagPreview=Diagram Preview\ncsvFileUrl=CSV File URL\ngenerate=Generate\nselectDiag2Insert=Please select a diagram to insert it.\nerrShowingDiag=Unexpected error. Cannot show diagram\nnoRecentDiags=No recent diagrams found\nfetchingRecentFailed=Failed to fetch recent diagrams\nuseSrch2FindDiags=Use the search box to find draw.io diagrams\ncantReadChckPerms=Cannot read the specified diagram. Please check you have read permission on that file.\ncantFetchChckPerms=Cannot fetch diagram info. Please check you have read permission on that file.\nsearchFailed=Searching failed. Please try again later.\nplsTypeStr=Please type a search string.\nunsupportedFileChckUrl=Unsupported file. Please check the specified URL\ndiagNotFoundChckUrl=Diagram not found or cannot be accessed. Please check the specified URL\ncsvNotFoundChckUrl=CSV file not found or cannot be accessed. Please check the specified URL\ncantReadUpload=Cannot read the uploaded diagram\nselect=Select\nerrCantGetIdType=Unexpected Error: Cannot get content id or type.\nerrGAuthWinBlocked=Error: Google Authentication window blocked\nauthDrawAccess=Authorize draw.io to access {1}\nconnTimeout=The connection has timed out\nerrAuthSrvc=Error authenticating to {1}\nplsSelectFile=Please select a file\nmustBgtZ={1} must be greater than zero\ncantLoadPrev=Cannot load file preview.\nerrAccessFile=Error: Access Denied. You do not have permission to access "{1}".\nnoPrevAvail=No preview is available.\npersonalAccNotSup=Personal accounts are not supported.\nerrSavingTryLater=Error occurred during saving, please try again later.\nplsEnterFld=Please enter {1}\ninvalidDiagUrl=Invalid Diagram URL\nunsupportedVsdx=Unsupported vsdx file\nunsupportedImg=Unsupported image file\nunsupportedFormat=Unsupported file format\nplsSelectSingleFile=Please select a single file only\nattCorrupt=Attachment file "{1}" is corrupted\nloadAttFailed=Failed to load attachment "{1}"\nembedDrawDiag=Embed draw.io Diagram\naddDiagram=Add Diagram\nembedDiagram=Embed Diagram\neditOwningPg=Edit Owning Page\ndeepIndexing=Deep Indexing (including diagrams that aren\'t used in any page)\nconfADeepIndexStarted=Deep indexing started\nconfADeepIndexDone=Deep indexing done\nofficeNoDiagramsSelected=No diagrams found in the selection\nofficeNoDiagramsInDoc=No diagrams found in the document\nofficeNotSupported=This feature is not supported in this host application\nsomeImagesFailed={1} out of {2} failed due to the following errors\nimportingNoUsedDiagrams=Importing {1} Diagrams not used in pages\nimportingDrafts=Importing {1} Diagrams in drafts\nprocessingDrafts=Processing drafts\nupdatingDrafts=Updating drafts\nupdateDrafts=Update drafts\nnotifications=Notifications\ndrawioImp=draw.io Import\nconfALibsImp=Importing draw.io Libraries\nconfALibsImpFailed=Importing {1} library failed\ncontributors=Contributors\ndrawDiagrams=draw.io Diagrams\nerrFileNotFoundOrNoPer=Error: Access Denied. File not found or you do not have permission to access "{1}" on {2}.\nconfACheckPagesWEmbed=Checking pages having embedded draw.io diagrams.\nconfADelBrokenEmbedDiagLnk=Removing broken embedded diagram links\nreplaceWith=Replace with\nreplaceAll=Replace All\nconfASkipDiagModified=Skipped "{1}" as it was modified after initial import\nreplFind=Replace/Find\nmatchesRepl={1} matches replaced\ndraftErrDataLoss=An error occurred while reading the draft file. The diagram cannot be edited now to prevent any possible data loss. Please try again later or contact support.\nibm=IBM\nlinkToDiagramHint=Add a link to this diagram. The diagram can only be edited from the page that owns it.\nlinkToDiagram=Link to Diagram\nchangedBy=Changed By\nlastModifiedOn=Last Modified on\nsearchResults=Search Results\nshowAllTemps=Show All Templates\nnotionToken=Notion Token\nselectDB=Select Database\nnoDBs=No Databases\ndiagramEdited={1} diagram "{2}" edited\nconfDraftPermissionErr=Draft cannot be written. Do you have attachment write/read permission on this page?\nconfFileTooBigErr=File size is too large. Pease check "Attachment Maximum Size" of "Attachment Settings" in Confluence Configuration.\nowner=Owner\nrepository=Repository\nbranch=Branch\nmeters=Meters\nteamsNoEditingMsg=Editor functionality is only available in Desktop environment (in MS Teams App or a web browser)\ncontactOwner=Contact Owner\nviewerOnlyMsg=You cannot edit the diagrams in the mobile platform, please use the desktop client or a web browser.\nwebsite=Website\ncheck4Updates=Check for Updates\nattWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...\nconfPartialPageList=We couldn\'t fetch all pages due to an error in Confluence. Continuing using {1} pages only.\nspellCheck=Spell Checker\nnoChange=No Change\nlblToSvg=Convert Labels to SVG\nautoRotateLabel=Rotate with Edge\ntxtSettings=Text Settings\nLinksLost=Links will be lost\narcSize=Arc Size\neditConnectionPoints=Edit Connection Points\nnotInOffline=Not supported while offline\nnotInDesktop=Not supported in Desktop App\nconfConfigSpaceArchived=draw.io Configuration space (DRAWIOCONFIG) is archived. Please restore it first.\nconfACleanOldVerStarted=Cleaning old diagram draft versions started\nconfACleanOldVerDone=Cleaning old diagram draft versions finished\nconfACleaningFile=Cleaning diagram draft "{1}" old versions\nconfAFileCleaned=Cleaning diagram draft "{1}" done\nconfAFileCleanFailed=Cleaning diagram draft "{1}" failed\nconfACleanOnly=Clean Diagram Drafts Only\nbrush=Brush\nopenDevTools=Open Developer Tools\nautoBkp=Automatic Backup\nconfAIgnoreCollectErr=Ignore collecting current pages errors\ndrafts=Drafts\ndraftSaveInt=Draft Save Interval [sec] (0 to disable)\npluginsDisabled=External plugins disabled.\nextExpNotConfigured=External image service is not configured\npathFilename=Path/Filename\nconfAHugeInstances=Very Large Instances\nconfAHugeInstancesDesc=If this instance includes 100,000+ pages, it is faster to request the current instance pages list from Atlassian. Please contact our support for more details.\nchoosePageIDsFile=Choose current page IDs csv file\nchooseDrawioPsgesFile=Choose pages with draw.io diagrams csv file\nprivate=Private\ndiagramTooLarge=The diagram is too large, please reduce its size and try again.\nselectAdminUsers=Select Admin Users\nxyzTeam={1} Team\naddTeamTitle=Adding a new draw.io Team\naddTeamInst1=To create a new draw.io Team, you need to create a new Atlassian group with "drawio-" prefix (e.g, a group named "drawio-marketing").\naddTeamInst2=Then, configure which team member can edit/add configuration, templates, and libraries from this page.\ndrawioTeams=draw.io Teams\nmembers=Members\nadminEditors=Admins/Editors\nallowAll=Allow All\nnoTeams=No teams found\nerrorLoadingTeams=Error loading teams\nnoTeamMembers=No team members found\nerrLoadTMembers=Error loading team members\nerrCreateTeamPage=Error creating team "{1}" page in "draw.io Configuration" space, please check you have the required permissions.\ngotoConfigPage=Please create the space from draw.io "Configuration" page.\nnoAdminsSelected=No admins/editors selected\nerrCreateConfigFile=Error creating "configuration.json" file, please check you have the required permissions.\nerrSetPageRestr=Error setting page restrictions\nnotAdmin4Team=You are not an admin for this team\nconfigUpdated=Configuration updated, restart the editor if you want to work with last configuration.\noutOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.\nconfAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)\nconfA403ErrFaq=There are ({1}) 403 error(s). The current users must have add (write) permissions on all pages and attachments. Even admins sometimes are not allowed to write to some pages via page restrictions\nconfA404ErrFaq=There are ({1}) 404 error(s). The attachment/page is not found. This is due to improper migration or the diagram file (an attachment of the page) is deleted.\nconfA404AttErrFaq=There are ({1}) 404 "File not found" error(s). The diagram file (an attachment of the page) does not exist. If it exists on the same page in the source site, the migration did not copy it, so copy the attachment manually or re-migrate the attachments. If it is missing in the source site also, the diagram was deleted before the migration.\nconfA404NoEditErrFaq=There are ({1}) 404 "Cannot find a page" error(s) for pages that were fetched successfully. These pages exist but could not be updated, this usually means the current user has no edit permission on them (page restrictions) or they are archived. Re-run the process with a user that can edit these pages.\nconfA500ErrFaq=There are ({1}) 500 error(s). An internal server error in Confluence Cloud. Such errors are due to overloading the server and usually fixed by retrying the process.\nconfAOtherErrFaq=There are ({1}) other error(s). Please check the error description. If the description is not clear, please contact our support.\nconfAPageNoEditPerm=The page exists but could not be updated, this usually means the current user has no edit permission on it or the page is archived.\nconfAMacroInComment=draw.io macros inside page comments are not converted, skipped comment "{1}" (id {2})\nconfAReplaceBaseUrl=Replace base URL in diagram links when no page ID mapping is found\ndrawSvgPrev=draw.io SVG preview\ngoogleFonts=Google Fonts\ndiagDupl=Duplicate diagram detected\ndiagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We\'ve created an independent copy. Please open the editor again.\ndiagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.\nconfCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?\nconfCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.\nconfALogsPageDesc=This page contains logs of draw.io long running services as attachments\nconfEditOnlyInPageEditor=Can only be edited within Confluence page editor\nconfEvalWarn=Evaluation License - Not for Production Use\notherUsersEditing=Other user(s) are editing this diagram\nfirstTimeGD=First time to access this file?\ndrawioGDAppNotInstalled=draw.io Google Drive app is not installed, please install it first\nConfDC415Error=Saving drafts is blocked. If you have the "Attachment Checker for Confluence" app, enable "Always allow draw.io attachments" in its File Type Blocking settings. Update the app if that option is missing.\nremove=Remove\nselectPgLyr=Select Page and Layers\nerrGenPreview=There was an error generating a diagram preview. Please consult technical support.\nattAccessErr=Diagram attachment access error: cannot display diagram\nwidthIntOrFixed=Width must be a valid integer or of value \'fixed\'\ndupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected\ncantDupPickDiffName=Could not duplicate diagram. Please choose a different name.\nownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.\ncantDupTryLater=Could not duplicate diagram. Please try again later.\ncantEditLnkd=Cannot edit linked diagram\ndiagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?\ndiagInTemps=draw.io diagrams in templates\ndiagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.\nconfDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.\nconfConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.\ntryCurPageOnErr=Try finding the diagram attachment on the macro page when the linked page fails\nconfAExtSrvcNoSupported=Embedded diagrams from external services or urls are not supported.\ngliffyVersionPinning=Import Gliffy pinned version instead of the latest version\nconfEmbedUpload=For a better editing experience, please use the regular draw.io macro to insert a blank diagram, then from (File menu → Import From → Device...) select the file you want to upload and embed.\nconfPublishErr=Another update conflicted with your publish, please try the operation again\nconfACacheMapping=Cache Page IDs Mapping\nconfARemImpPages=Remember Imported Pages\nconfAGMTitle=Gliffy migration\nconfAGMStoredState=Stored state & reports\nconfAGMTabDryRun=Dry run\nconfAGMTabImport=Import\nconfAGMReadOnly=Read-only\nconfAGMWrites=Writes to pages\nconfAGMLoading=Loading migration state...\nconfAGMLoadFailed=Loading the migration state failed. Reload the page to try again.\nconfAGMStepScan=Scan & scope\nconfAGMStepDryRun=Dry run\nconfAGMStepReview=Review & report\nconfAGMScanTitle=Where your Gliffy diagrams live\nconfAGMScanSub=Scanning reads pages and counts Gliffy macros - it never modifies anything. Scans checkpoint as they go and resume if interrupted. Results are cached: rescanning is manual.\nconfAGMScanSite=Scan site\nconfAGMScanning=Scanning...\nconfAGMResumeScan=Resume scan\nconfAGMRescan=Rescan site\nconfAGMRescanConfirm=Rescan the site? The inventory is rebuilt; dry-run results and review verdicts are kept and re-matched by diagram.\nconfAGMScanMetaDone=Last scan finished {1} after {2} - {3} spaces contain Gliffy - {4} pages - {5} diagrams\nconfAGMScanMetaPaused=Scan paused - resumes from its checkpoint\nconfAGMScanMetaNone=Not scanned yet - scan to build the space inventory\nconfAGMPause=Pause\nconfAGMSearchSpaces=Search spaces by name or key...\nconfAGMSelectAll=Select all {1} with diagrams\nconfAGMSelectLive=All except archived ({1})\nconfAGMClear=Clear\nconfAGMShowArchived=Show archived\nconfAGMArchived=archived\nconfAGMSpace=Space\nconfAGMKey=Key\nconfAGMPages=Pages\nconfAGMDiagrams=Diagrams\nconfAGMNotImportable=Not importable\nconfAGMNoSpaces=No spaces yet - run a scan to build the inventory.\nconfAGMSpaceFoot=Showing {1} of {2} spaces, largest first.\nconfAGMSpaceFootMore=Showing the largest {1} of {2} matching spaces - search to narrow.\nconfAGMScope=Scope\nconfAGMScopeTotals={1} spaces - {2} diagrams - {3} pages\nconfAGMStartDryRunArrow=Start dry run →\nconfAGMDryTitle=Dry run - converts locally, changes nothing\nconfAGMDrySub=Every diagram in scope is downloaded and converted in this browser, and every affected page gets a permission check. Nothing is written to Confluence; diagram data never leaves this machine. Safe to close the tab - the run resumes from its last checkpoint.\nconfAGMDryNone=No dry run yet\nconfAGMDryRunning=Dry run in progress\nconfAGMDryPaused=Dry run paused\nconfAGMDryDone=Dry run complete - nothing was changed\nconfAGMInterrupted=interrupted\nconfAGMDone=done\nconfAGMStarted=Started {1}\nconfAGMFinished=finished {1}\nconfAGMStartDry=Start dry run\nconfAGMRerunDry=Run dry run again\nconfAGMResumeCheckpoint=Resume from checkpoint\nconfAGMSafeClose=Safe to close this tab at any time.\nconfAGMGenReport=Generate report\nconfAGMOfProcessed=of {1} processed\nconfAGMConvClean=converted clean\nconfAGMConvWarn=converter warnings\nconfAGMStalePins=version pin warnings\nconfAGMStalePin=The Gliffy macro pins version {1} but the latest is {2} - version pinning is off, so the latest was used; verify the conversion matches what the page displayed\nconfAGMPinnedOld=Imported the pinned version {1}; the latest is {2} - verify this is the version the page really displayed\nconfAGMPinFellBack=The pinned version {1} was not found - the latest ({2}) was used instead\nconfAGMPinResetNotice=draw.io update: Gliffy version pin handling changed - pins are now off by default (cloud Gliffy displays the latest version) and every pin that differs from the latest is flagged for review. The previous dry run used the old rules, so run a fresh dry run.\nconfAGMVersionPinning=Import the Gliffy version pinned in each macro instead of the latest (rarely needed - e.g. content migrated from Confluence Data Center)\nconfAGMPinToggleConfirm=Changing version pinning re-keys every diagram: the current dry run, review verdicts and import state will be discarded, and a fresh dry run is needed. Continue?\nconfAGMAlreadyImp=previously imported\nconfAGMFailed=failed\nconfAGMWriteBlocked=write-blocked\nconfAGMLeft=left\nconfAGMProblems=Problems so far - grouped, full detail in the stored files\nconfAGMNoPageEdit=no page edit\nconfAGMBlockedRow={1} pages ({2} diagrams) this user cannot edit - fix permissions or leave them Gliffy\nconfAGMReasonDraft=Gliffy draft stored on gliffy.com - no attachment to convert\nconfAGMReasonAttMissing=Diagram attachment no longer exists\nconfAGMReasonTooLarge=Exceeds converter limits\nconfAGMReasonConvert=Conversion failed\nconfAGMReasonFetch=Downloading the diagram failed\nconfAGMReasonSave=Saving failed\nconfAGMReasonAttInfo=Attachment lookup failed\nconfAGMReasonOther=Other error\nconfAGMNoEditPerm=No permission to edit "{1}" - its diagrams cannot be imported by this user\nconfAGMDiagConverted=Converted {2} diagram "{1}" (dry run, nothing written)\nconfAGMReviewTitle=Review a sample against the Gliffy previews\nconfAGMReviewSub=Left: the preview image Gliffy stored. Right: a live render of the draw.io conversion - what the page will show after import. Rate with the keyboard; verdicts are saved continuously and feed the report and the import.\nconfAGMReviewNeedsDry=Finish a dry run first - the review works on its results.\nconfAGMSample=Sample\nconfAGMSampleNote=of {1} converted - flagged first, then random across spaces\nconfAGMCustomPct=Custom %\nconfAGMApply=Apply\nconfAGMFilterSample=Sample\nconfAGMFilterUnreviewed=Unreviewed\nconfAGMFilterFlagged=Flagged\nconfAGMFilterFailed=Failed\nconfAGMSideBySide=Side by side\nconfAGMLiveRender=live render of conversion\nconfAGMStoredPreview=stored preview image\nconfAGMNoPreview=No preview image stored by Gliffy - compare against the diagram on its page.\nconfAGMGliffyPreviewAlt=Gliffy preview\nconfAGMNoDrawio=No draw.io version to show.\nconfAGMPreviewFailed=Rendering the conversion failed.\nconfAGMNotConverted=not converted\nconfAGMFailedReason=Not converted ({1}). See the problems list and the report.\nconfAGMFlickHint=A/B - press X or click to flip\nconfAGMConverterWarning=converter warning\nconfAGMNothingHere=Nothing to review in this filter\nconfAGMMatch=Match\nconfAGMMinor=Minor differences\nconfAGMMajor=Major differences\nconfAGMMatchL=match\nconfAGMMinorL=minor\nconfAGMMajorL=major\nconfAGMLeftInSample=left in sample\nconfAGMOfReviewed=of {1} reviewed\nconfAGMNotePlaceholder=Optional note - included in the report\nconfAGMPrivacy=The report contains ratings, notes, diagram names and converter warnings - never diagram contents. Diagram names are only sent to draw.io if you opt in below.\nconfAGMSendNamesOptIn=Include diagram names\nconfAGMSendReport=Send report to draw.io\nconfAGMSendConfirm=Send the migration report summary to draw.io? It contains counts, failure reasons and review verdicts.\nconfAGMSendDone=Report sent to draw.io. Reference: {1} - please quote it when contacting support.\nconfAGMGenerating=Generating report...\nconfAGMReportSaved=Report saved as {1} with the migration state.\nconfAGMOpenState=Open\nconfAGMReportFailed=Generating the report failed.\nconfAGMImpTitle=Import - writes to pages\nconfAGMImpSub=Consumes the latest dry run: scope, permission checks and review verdicts. Gliffy macros are replaced with draw.io macros and a .drawio attachment is added per diagram. Nothing is deleted - Gliffy attachments stay in place and every page edit is a normal Confluence version, so reverting a page restores its Gliffy macros.\nconfAGMImpNeedsDry=Import is disabled until a dry run has completed. Run it from the Dry run tab - it changes nothing.\nconfAGMImpReady={1} diagrams ready\nconfAGMImpSkipFail={1} failed conversions will be skipped and listed\nconfAGMImpBlocked={1} diagrams on {2} blocked pages stay Gliffy until permissions are fixed\nconfAGMImpAll=Import everything that converted\nconfAGMImpAllD=Review verdicts ride along in the log for follow-up\nconfAGMImpHold=Hold back "Major differences"\nconfAGMImpHoldN=Hold back "Major differences" ({1} rated)\nconfAGMImpHoldD=Diagrams rated Major in review stay Gliffy for a later pass\nconfAGMAdvanced=Advanced (defaults are right for almost everyone)\nconfAGMAddLabel=Add a label to every modified page (for CQL follow-up)\nconfAGMCheckDrift=Check for changes since dry run\nconfAGMDriftChecking=Checking pages for changes since the dry run...\nconfAGMDriftResult={1} pages changed and {2} gone since the dry run (checked {3}). Changed pages are re-verified during import.\nconfAGMDriftRecommend=More than 10% drift - running a fresh dry run first is recommended.\nconfAGMDriftUnknown=The dry run is {1} days old. Check for changes before importing.\nconfAGMImpNone=Not started\nconfAGMImpRunning=Import in progress\nconfAGMImpPaused=Import paused\nconfAGMImpDone=Import finished\nconfAGMStartImport=Start import - {1} diagrams\nconfAGMImpConfirm=Start the import? Up to {1} diagrams across {2} pages will be converted to draw.io macros. Nothing is deleted and every page edit is a normal Confluence version.\nconfAGMOfPages=of {1} pages\nconfAGMImported=diagrams imported\nconfAGMSkipped=skipped\nconfAGMErrors=errors\nconfAGMHeldBack=Held back "{1}" (rated Major differences in review)\nconfAGMSkippedFailed=Skipped "{1}" (failed in the dry run: {2})\nconfAGMPageBlocked=Skipped page "{1}" (no edit permission)\nconfAGMReimportPass=Processing pages labeled for re-import...\nconfAGMReassure=Interruptions resume from the last checkpoint - already-imported diagrams are never redone. The import log is stored with the migration state and downloadable.\nconfAGMImpSummary=Import finished {1}: {2} diagrams imported across {3} pages.\nconfAGMImpSummary2={1} held back - {2} skipped (failed) - {3} blocked - {4} errors.\nconfAGMImpSummary3=The run log and report are stored with the migration state.\nconfAGMRunAnother=Run another import\nconfAGMImpReportSaved=Run report saved as {1} with the migration state.\nconfAGMHttpFaq={1} requests failed with 403/404. These are usually permission problems - the API also returns 404 for content the user cannot read. See\nconfAGMFullscreen=Fullscreen\nconfAGMClose=Close\nconfAGMStatePageDesc=State and reports of the Gliffy to draw.io migration. Managed by the draw.io app; do not edit the attachments manually.\nconfABrokenDiagLnk=Broken diagram link (custom content) "{1}"\nconfACCDupEntry=duplicate entry\nconfACCInvalid=invalid content\nconfACCAttMissing=attachment is missing or has an older version\nconfAChkTabTitle=Integrity Check (Beta)\nconfAChkTitle=draw.io Diagrams Integrity Check\nconfAChkInst1=Scans all pages with draw.io macros and checks that every diagram has its attachment, preview image and diagram link (custom content) with the versions the macro points to. It also reports broken, duplicate and unused diagram links.\nconfAChkInst2=The check is read-only and changes nothing. It can take some time and the browser window must remain open until it finishes.\nconfAChkDownloadOpt=Download each diagram and verify its content instead of only checking it exists (slower, detects corrupted files)\nconfAChkStart=Start Integrity Check\nconfAChkStatChecked=Diagrams checked\nconfAChkStatOk=OK\nconfAChkStatBroken=Broken\nconfAChkStatWarn=With warnings\nconfAChkStatCC=Broken diagram links\nconfAChkStatOrphans=Unused embed links\nconfAChkLog=Log\nconfAChkFilterAll=All\nconfAChkFilterIssues=Issues only\nconfAChkProgLinks=Checking diagram links ({1} of {2})\nconfAChkProgPages=Checking pages with {3} macros ({1} of {2})\nconfAChkEta=~{1} remaining\nconfAChkEstimating=estimating…\nconfAChkDiag=Checking diagram "{1}"\nconfAChkDiagOK=Diagram "{1}" is OK\nconfAChkMacroNoName=Found a diagram macro without a diagram name (possibly a never-edited macro)\nconfAChkPageInfoBroken=Diagram "{1}": the page referenced by the macro (by space and title) cannot be resolved\nconfAChkCCMissing=Diagram "{1}": its diagram link (custom content) is missing or broken (the diagram works, but is excluded from search and diagram listings)\nconfAChkCCNoRef=Diagram "{1}": the macro has no diagram link (custom content) reference\nconfAChkCCOther=Diagram "{1}": the macro references a missing diagram link (custom content), but a valid one exists for this diagram\nconfAChkCCMismatch=Diagram "{1}": its diagram link (custom content) does not match the macro (page, name, or version)\nconfAChkDiagPageMissing=Diagram "{1}": the page ({2}) that holds the diagram attachment is not found\nconfAChkAttMissing=Diagram "{1}": the diagram attachment is not found\nconfAChkAttOldVer=Diagram "{1}": the diagram attachment version ({2}) is older than the version in the macro ({3})\nconfAChkAttFetchFailed=Diagram "{1}": fetching the attachments of page ({2}) failed\nconfAChkPrevMissing=Diagram "{1}": the preview image ({2}) is not found\nconfAChkPrevOldVer=Diagram "{1}": the preview image version ({2}) is older than the version in the macro ({3})\nconfAChkPrevOutOfSync=Diagram "{1}": the preview image (of diagram version {2}) is out of sync with the diagram (version {3})\nconfAChkPrevPageFailed=Diagram "{1}": fetching the attachments of the preview image page ({2}) failed\nconfAChkDiagInvalid=Diagram "{1}": the diagram content is not a valid draw.io file\nconfAChkDiagDownFailed=Diagram "{1}": downloading the diagram failed\nconfAChkEmbedCC=Checking embedded diagram links (custom contents)...\nconfAChkOrphanEmbedCC=Embedded diagram link (custom content) "{1}" is not referenced by any macro\nconfAChkSummary=Integrity check finished: {1} macros checked, {2} OK, {3} broken, {4} with warnings. Diagram links (custom contents): {5} broken, {6} unused embedded diagram links\ndelCachedData=Delete Cached Data\nk15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?\ndrawioUninstalled=draw.io has been uninstalled, the editor will now close\nconfAttachmentArchived=Diagram belongs to an archived page and cannot be loaded. Restore the page (ID: {1}) to load it.\nconfDiagramMacroDowngrade=The diagram is saved but the page macro cannot be updated as the diagraam revision in the macro is newer. Please edit the diagram from Confluence page editor.\nDCSave500Error=Another Confluence operation interrupted saving, retry #{1}\nconfAppNotInstalled=draw.io diagrams Confluence App is not installed.\nplsInstallAppInConf=Please install/connect this App in Confluence to be able to access the diagrams (in addition to draw.io Confluence app)\nm365=Microsoft 365\nnodeSpacing=Node Spacing\nrankSpacing=Rank Spacing\npolyline=Polyline\nlayeringStrategy=Layering Strategy\nnetworkSimplex=Network Simplex\nlongestPath=Longest Path\ncoffmanGraham=Coffman-Graham\nweighting=Weighting\nmodelOrder=Model Order\ndescendants=Descendants\nconstraint=Constraint\nfan=Fan\noptimization=Optimization\nedgeLength=Edge Length\nedgeLengthByPosition=Edge Length by Position\ncrossingMinimization=Crossing Minimization\niterations=Iterations\nrepulsivePower=Repulsive Power\nresizeNodes=Resize Nodes\nuseSelectionAsRoot=Use Selection as Root\nuseSelectionAsRoots=Use Selection as Roots\nanonymize=Anonymize\nconnector=Connector\nextractText=Extract Text\nlegacyLayouts=Legacy Layouts\nedgeStyle=Edge Style\ncorners=Corners\nkeepStyle=Keep Existing Style\nopenLucidSite=Open Lucidchart Site in another tab and login to your account, then come back to this tab and click the "Start Import" button again.\npreviewSaveNoPermission=You do not have permission to save the preview image. The source page may be restricted or you may not have edit permission on the page. This only affects this page export to PDF/Word.\npreserveOrigin=Preserve Origin\nsharedStems=Bundle Outgoing Connections\ndraftLoadedWUnpublishedChanges=The diagram has loaded from a draft with unpublished changes. It is different from the published version.\nhachure=Hachure\nhatch=Hatch\ndots=Dots\ncrossHatch=Cross Hatch\nzigzag=ZigZag\nzigzagLine=ZigZag Line\nsysFonts=System Fonts\nwebfonts=Web Fonts\nfontname=Font Name\nfontUrl=Font URL\ncreatingDiagram=Generating diagram. Please wait\nconfAFixPageStorage=Remove invalid page storage format elements (Warning: May cause data loss)\ncfgAiActions=AI Actions (JSON)\ncfgAiConfigs=AI Configs (JSON)\ncfgAiGlobals=AI Globals (JSON)\ncfgAiModels=AI Models (JSON)\ncfgAppendCustomLibraries=Append Custom Libraries\ncfgAppendCustomLibrariesHelp=Custom libraries appear after built-in ones\ncfgAutoCropViewer=Auto Crop Viewer\ncfgAutoCropViewerHelp=Auto-crop viewer to fit diagram bounds\ncfgAutosaveDelay=Autosave Delay (ms)\ncfgBrowserTranslate=Browser Translate\ncfgBrowserTranslateHelp=Mirror diagram text for browser translation engines (e.g. Chrome Translate)\ncfgClaudeApiKey=Claude API Key\ncfgColorNames=Color Names (JSON)\ncfgColorNamesHelp=Map of colour codes to display names (tooltips)\ncfgCompact=Compact UI\ncfgCompactHelp=Enable compact user interface mode\ncfgCompressStyles=Compress Styles\ncfgCompressStylesHelp=Deduplicate repeated inline images and stencils into a shared lookup table. Only readable by draw.io 29.3.1 and later.\ncfgCompressXml=Compress XML\ncfgCompressXmlHelp=Compress XML output in saved files\ncfgCopyOnConnect=Copy on Connect\ncfgCopyOnConnectHelp=Create a copy of the source shape for connections that end on the canvas\ncfgCss=CSS Rules\ncfgCssHelp=CSS rules to customize the draw.io user interface\ncfgCustomCss=Custom CSS (alternative)\ncfgCustomCssHelp=Injected as a separate style element\ncfgCustomTemplates=Custom Templates (JSON)\ncfgCustomTemplatesHelp=Templates added to the sections of the template dialog\ncfgDarkColor=Dark Mode Background\ncfgDarkColorVar=Dark Color CSS Variable\ncfgDebug=Debug\ncfgDebugHelp=Enable debug output\ncfgDefaultAdaptiveColors=Adaptive Colors\ncfgDefaultConnectable=Default Connectable\ncfgDefaultConnectableHelp=Shapes are connectable by default\ncfgDefaultConnectionArrowsEnabled=Connection Arrows\ncfgDefaultConnectionArrowsEnabledHelp=Show arrows when hovering connections\ncfgDefaultDarkGridColor=Default Grid Color (Dark Mode)\ncfgDefaultDarkPageBackgroundColor=Default Page Background (Dark Mode)\ncfgDefaultEdgeLength=Default Edge Length\ncfgDefaultFileType=Default File Type\ncfgDefaultFoldingEnabled=Folding Enabled\ncfgDefaultFoldingEnabledHelp=Enable shape folding (collapse/expand)\ncfgDefaultGridColor=Default Grid Color\ncfgDefaultGridEnabled=Grid Enabled\ncfgDefaultGridEnabledHelp=Show grid on canvas\ncfgDefaultGridSize=Default Grid Size\ncfgDefaultLanguages=Default Languages\ncfgDefaultLanguagesHelp=Language bundles installed for offline use on startup\ncfgDefaultLibraries=Default Libraries\ncfgDefaultLibrariesHelp=Semicolon-separated library keys shown in sidebar on startup\ncfgDefaultPageBackgroundColor=Default Page Background\ncfgDefaultPageVisible=Page Visible\ncfgDefaultPageVisibleHelp=Show page outline on canvas\ncfgDefaultTextStyle=Default Text Style\ncfgDefaultTransparentGroups=Automatic Group Size\ncfgDefaultTransparentGroupsHelp=New groups automatically resize to fit their children (transparentBounds=1)\ncfgDesktopAutoSync=Desktop Auto Sync\ncfgDesktopAutoSyncHelp=Auto-sync when local file changes\ncfgDisableVersioning=Disable Versioning\ncfgDisableVersioningHelp=Disable diagram versioning\ncfgEmbedSvgFonts=Embed SVG Fonts\ncfgEmbedSvgFontsHelp=Default for embedding fonts as data URIs in exported and saved SVG files, can be overridden per file in the file properties\ncfgEmptyDiagramXml=Empty Diagram XML\ncfgEmptyLibraryXml=Empty Library XML\ncfgEnableAi=Enable AI\ncfgEnableAiHelp=Enable AI diagram generation\ncfgEnableAnimations=Enable Animations\ncfgEnableAnimationsHelp=Enable shape and layout animations\ncfgEnableCssDarkMode=CSS Dark Mode\ncfgEnableCssDarkMode2=CSS Dark Mode\ncfgEnableCssDarkMode2Help=Enable CSS-based dark mode for viewer diagrams\ncfgEnableCssDarkModeHelp=Use CSS for dark mode rendering\ncfgEnableCustomGitLabUrl=Enable Custom GitLab URL\ncfgEnableCustomGitLabUrlHelp=Allow ?gitlab= / ?gitlab-id= URL parameters to override the default GitLab server. Enable only for self-hosted GitLab deployments.\ncfgEnableCustomLibraries=Enable Custom Libraries\ncfgEnableCustomLibrariesHelp=Allow open and new library functions\ncfgEnableDistanceGuides=Distance Guides\ncfgEnableDistanceGuidesHelp=Snap shapes to equal distances between the surrounding shapes while moving (default on)\ncfgEnableExportUrl=Enable Export URL\ncfgEnableExportUrlHelp=Enable the export URL feature\ncfgEnableInlineToolbar=Inline Toolbar\ncfgEnableInlineToolbarHelp=Enable the inline toolbar on selection\ncfgEnableLightDarkColors=Light/Dark Colors\ncfgEnableLightDarkColorsHelp=Use CSS light-dark() color function\ncfgEnableLocalFonts=Local Fonts\ncfgEnableLocalFontsHelp=Scan and list locally installed fonts in the font picker\ncfgEnableNativeClipboard=Native Clipboard\ncfgEnableNativeClipboardHelp=Use native system clipboard\ncfgEnablePositionGuides=Position Guides\ncfgEnablePositionGuidesHelp=Snap shapes to the edges and centers of the other shapes while moving (default on)\ncfgEnableSizeGuides=Size Guides\ncfgEnableSizeGuidesHelp=Snap the size of a shape to the sizes of the other shapes while resizing (default on)\ncfgEnableWindowDocking=Window Docking\ncfgEnableWindowDockingHelp=Enable window docking\ncfgExpandLibraries=Expand Libraries\ncfgExpandLibrariesHelp=Libraries expanded by default\ncfgExpandPatternsForPrint=Expand Patterns for Print\ncfgExpandPatternsForPrintHelp=Expand patterns to visible graphics during print/PDF export\ncfgExperimental=Experimental feature\ncfgFitDiagramOnLoad=Fit Diagram on Load\ncfgFitDiagramOnLoadHelp=Fit diagram to window on load\ncfgFitDiagramOnPage=Fit Diagram on Page\ncfgFitDiagramOnPageHelp=Fit diagram to page size\ncfgFoldingIconSize=Folding Icon Size\ncfgFontCss=Font CSS (@font-face rules)\ncfgFontCssHelp=Added before preset colors in the colour dialog\ncfgForceSimpleViewer=Force Simple Viewer\ncfgForceSimpleViewerHelp=Force simple viewer for all diagrams\ncfgForeignObjectImages=Foreign Object Images\ncfgForeignObjectImagesHelp=Replace foreignObject with images\ncfgGeminiApiKey=Gemini API Key\ncfgGenerateSVGs=Generate SVGs\ncfgGenerateSVGsHelp=Generate SVG previews for diagrams\ncfgGlobalVars=Global Variables (JSON)\ncfgGlobalVarsHelp=Global placeholders available in all diagrams\ncfgGptApiKey=OpenAI API Key\ncfgGptUrl=Custom GPT URL\ncfgGridSteps=Grid Steps\ncfgHiResPreview=Hi-Res Preview\ncfgHiResPreviewHelp=Generate high-resolution preview images\ncfgIncludeDiagram=Include Diagram in Export\ncfgIncludeDiagramHelp=Include diagram data in export dialogs\ncfgInlineExtIcons=Inline Icon Search Results\ncfgInlineExtIconsHelp=Insert icon search results as embedded images instead of remote references\ncfgInplaceEdits=In-place Edits\ncfgInplaceEdits2=In-place Edits\ncfgInplaceEdits2Help=Allow launching editor from viewer\ncfgInplaceEditsHelp=Allow launching the editor from the viewer\ncfgInsertAnimations=Insert Animations\ncfgInsertAnimationsHelp=Show pop animation when inserting shapes from the sidebar\ncfgIntersectionSelect=Intersection Select\ncfgIntersectionSelectHelp=Select cells by intersection rather than containment\ncfgKeyboardShortcuts=Keyboard Shortcuts (JSON)\ncfgKeyboardShortcutsHelp=Custom keyboard shortcuts. Entries are {keyCode, control, shift, alt, action} where keyCode is a key code or single character and action is an action name, or null to remove a binding.\ncfgLibraries=Libraries (JSON)\ncfgLibrariesHelp=Custom library sections for the left panel\ncfgLockdown=Lockdown\ncfgLockdown2=Lockdown\ncfgLockdown2Help=Disable data transmission outside Confluence\ncfgLockdownHelp=Disable data transmission apart from storage\ncfgMathOutputSize=Math Output Size\ncfgMathOutputSizeHelp=Size labels, view bounds and initial fit to the rendered math output instead of the formula source\ncfgMaxImageBytes=Max Image Bytes\ncfgMaxImageSize=Max Image Size (px)\ncfgMermaid=Mermaid Config (JSON)\ncfgMermaidHelp=Default Mermaid settings such as theme and colours for all diagrams\ncfgNoAutoFocus=No Auto Focus\ncfgNoAutoFocusHelp=Disable auto-focus on startup\ncfgNoResizers=No Resizers\ncfgNoResizersHelp=Hide shape resize handles\ncfgNotSet=Not set (use default)\ncfgOneDriveInlinePicker=OneDrive Inline Picker\ncfgOneDriveInlinePickerHelp=Use inline picker for OneDrive\ncfgOptimizeHtmlLabels=Optimize HTML Labels\ncfgOptimizeHtmlLabelsHelp=Remove unnecessary spans from HTML labels when editing stops\ncfgOverride=Override\ncfgOverrideHelp=Ignore user settings stored in the browser so the defaults in this configuration always apply\ncfgPageFormatHeight=Page Height (1/10 inch)\ncfgPageFormatHeightHelp=Page format: US Letter = 850 x 1100, A4 = 827 x 1169\ncfgPageFormatWidth=Page Width (1/10 inch)\ncfgPassiveScroll=Passive Scroll\ncfgPassiveScrollHelp=Enable passive scroll event listeners\ncfgPasteAtMousePointer=Paste at Mouse\ncfgPasteAtMousePointerHelp=Paste elements at mouse pointer location\ncfgPreserveViewState=Preserve View State\ncfgPreserveViewStateHelp=Preserve view state in embed mode\ncfgRemoveImageMetadata=Remove Image Metadata\ncfgRemoveImageMetadataHelp=Strip metadata from images\ncfgReplaceSvgDataUris=Replace SVG Data URIs\ncfgReplaceSvgDataUrisHelp=Replace data URIs with SVG sub-trees in export\ncfgResources=Language Resources (JSON)\ncfgResourcesHelp=Overrides existing or adds new language resources for user interface text. Maps resource keys to strings, or to objects with one entry per language code and main as the fallback.\ncfgRestrictExport=Restrict Export\ncfgRestrictExportHelp=Disable exporting diagrams to other formats\ncfgSearchSettings=Search settings (e.g. grid, font, dark mode, compressXml...)\ncfgSectionAIConfiguration=AI Configuration\ncfgSectionAppearance=Appearance\ncfgSectionCanvasGrid=Canvas & Grid\ncfgSectionCollaborationAdvanced=Collaboration & Advanced\ncfgSectionColorSchemes=Color Schemes\ncfgSectionColors=Colors\ncfgSectionConfluenceCloud=Confluence Cloud\ncfgSectionConfluenceServerDataCenter=Confluence Server / Data Center\ncfgSectionCustomCSS=Custom CSS\ncfgSectionDefaultStyles=Default Styles\ncfgSectionEmbedding=Embedding\ncfgSectionExportSecurity=Export & Security\ncfgSectionFonts=Fonts\ncfgSectionGeneral=General\ncfgSectionLibraries=Libraries\ncfgSectionMenuCustomization=Menu Customization\ncfgSectionSidebarPanels=Sidebar & Panels\ncfgSelectParentLayer=Select Parent Layer\ncfgSelectParentLayerHelp=Selects parent layer for current selection\ncfgSettingsName=Settings Name\ncfgSettingsNameHelp=Key for storing user settings in local storage\ncfgShadowBlur=Shadow Blur\ncfgShadowColor=Shadow Color\ncfgShadowOffsetX=Shadow Offset X\ncfgShadowOffsetY=Shadow Offset Y\ncfgShadowOpacity=Shadow Opacity\ncfgShapePicker=Shape Picker (JSON)\ncfgShapePickerHelp=Custom shape picker entries for the sidebar\ncfgShareCursorPosition=Share Cursor Position\ncfgShareCursorPositionHelp=Share cursor in real-time collaboration\ncfgShowConnectHandle=Show Connect Handle\ncfgShowConnectHandleHelp=Show connection handle on hover\ncfgShowLinkIcons=Show Link Icons\ncfgShowLinkIconsHelp=Show link icons on shapes\ncfgShowNoteIcons=Show Note Icons\ncfgShowNoteIconsHelp=Show note icons on shapes\ncfgShowRemoteCursors=Show Remote Cursors\ncfgShowRemoteCursorsHelp=Display other users\' cursors\ncfgShowSplashOnStart=Show Splash on Start\ncfgShowSplashOnStartHelp=Show the splash screen with storage options on startup\ncfgShowTooltipIcons=Show Tooltip Icons\ncfgShowTooltipIconsHelp=Show tooltip icons on shapes\ncfgSidebarTitleSize=Title Font Size (pt)\ncfgSidebarTitles=Sidebar Titles\ncfgSidebarTitlesHelp=Show titles in the sidebar\ncfgSidebarWidth=Sidebar Width\ncfgSimpleLabels=Simple Labels\ncfgSimpleLabelsHelp=Disable word wrap and HTML for labels\ncfgSimpleViewer=Simple Viewer\ncfgSimpleViewerHelp=Use simple viewer for all diagrams\ncfgStopEditingOnEnter=Stop Editing on Enter\ncfgStopEditingOnEnterHelp=Enter key stops label editing, Shift+Enter inserts a line break\ncfgStyles=Styles (JSON)\ncfgStylesHelp=Colours for the Style tab. Keys: commonStyle, vertexStyle, edgeStyle, graph.\ncfgSwimlaneSelectionEnabled=Swimlane Body Selection\ncfgSwimlaneSelectionEnabledHelp=Click an empty swimlane body to select the swimlane (default on)\ncfgTemplateFile=Template File URL\ncfgTemplateFileHelp=Sections shown in the template dialog. Leave empty for all.\ncfgThumbHeight=Thumbnail Height\ncfgThumbWidth=Thumbnail Width\ncfgTooltipFontSize=Tooltip Font Size (px)\ncfgTooltipMaxWidth=Tooltip Max Width (px)\ncfgTranslateDiagrams=Translate Diagrams\ncfgTranslateDiagramsHelp=Enable automatic translation of diagram labels\ncfgUi=UI Theme\ncfgUpdateDefaultStyle=Update Default Style\ncfgUpdateDefaultStyleHelp=Update defaults when styles change\ncfgUseInternalClipboard=Use Internal Clipboard\ncfgUseInternalClipboardHelp=Use internal clipboard instead of native\ncfgVersion=Version\ncfgVersionHelp=Configuration version identifier\ncfgViewerCanExceedPageWidth=Viewer Can Exceed Page Width\ncfgViewerCanExceedPageWidthHelp=Allow the viewer to exceed the page width\ncfgViewerTimeout=Viewer Timeout\ncfgZoomFactor=Zoom Factor\ncfgZoomWheel=Zoom with Mouse Wheel\ncfgZoomWheelHelp=Use mouse wheel for zoom without modifiers\ncfgEnabled=Enabled\npartialResponse=Partial response\nactor=Actor\ncallout=Callout\ncard=Card\ncloud=Cloud\ncross=Cross\ncube=Cube\ncylinder=Cylinder\ndelay=Delay\ndisplay=Display\ndocument=Document\nhexagon=Hexagon\nparallelogram=Parallelogram\npentagon=Pentagon\nprocess=Process\nsquare=Square\nstar=Star\nstep=Step\ntape=Tape\ntrapezoid=Trapezoid\ntriangle=Triangle\n');Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;Graph.prototype.defaultThemes.darkTheme=Graph.prototype.defaultThemes["default-style2"];Editor.currentTheme="";window.uiTheme="";GraphViewer=function(b,d,m){this.init(b,d,m)};mxUtils.extend(GraphViewer,mxEventSource);GraphViewer.prototype.editBlankUrl="1"==urlParams.dev?"https://test.draw.io/":"https://app.diagrams.net/";GraphViewer.prototype.imageBaseUrl=window.DRAWIO_BASE_URL+"/";GraphViewer.prototype.toolbarHeight="BackCompat"==document.compatMode?24:26;GraphViewer.prototype.lightboxChrome=!0;GraphViewer.prototype.lightboxZIndex=999;GraphViewer.prototype.toolbarZIndex=999;GraphViewer.prototype.autoFit=!1;GraphViewer.prototype.autoCrop=!1;GraphViewer.prototype.autoOrigin=!0;GraphViewer.prototype.center=!1;GraphViewer.prototype.forceCenter=!1;GraphViewer.prototype.allowZoomIn=!1;GraphViewer.prototype.allowZoomOut=!0;GraphViewer.prototype.showTitleAsTooltip=!1;GraphViewer.prototype.checkVisibleState=!0;GraphViewer.prototype.minHeight=28;GraphViewer.prototype.minWidth=100;GraphViewer.prototype.responsive=!1;GraphViewer.prototype.darkMode=null;GraphViewer.prototype.showLinkIcons=!1;GraphViewer.prototype.showTooltipIcons=!1;GraphViewer.prototype.showNoteIcons=!0;@@ -7277,7 +7280,31 @@ null!=c&&(a.setFillColor("#999C95"),c.drawShape(a,this,5,5,10,10));break;case "enull!=c&&(a.setFillColor("#5EA3E4"),c.drawShape(a,this,5,5,10,10))}switch(e){case "blocker":c=mxStencilRegistry.getStencil("mxgraph.atlassian.no");null!=c&&(a.setFillColor("#CE0000"),c.drawShape(a,this,85,5,10,10));break;case "critical":c=mxStencilRegistry.getStencil("mxgraph.atlassian.critical");null!=c&&(a.setFillColor("#CE0000"),c.drawShape(a,this,86,3,8,14));break;case "major":c=mxStencilRegistry.getStencil("mxgraph.atlassian.double_up");null!=c&&(a.setFillColor("#CE0000"),c.drawShape(a,this,85,5,10,10));break;case "minor":c=mxStencilRegistry.getStencil("mxgraph.atlassian.double");null!=c&&(a.setFillColor("#2A8735"),c.drawShape(a,this,85,5,10,10));break;case "trivial":c=mxStencilRegistry.getStencil("mxgraph.atlassian.single"),null!=c&&(a.setFillColor("#9AA1B2"),c.drawShape(a,this,85,5,10,10))}a.setFillColor("#FFFFFD");a.setFontColor("#4E6B89");switch(d){case "todo":a.rect(b-45,5,40,20);a.fill();a.text(b-25,15,0,0,"TO DO",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);break;case "inProgress":a.rect(b-85,5,80,20);a.fill();a.text(b-45,15,0,0,"IN PROGRESS",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);break;case "inReview":a.rect(b-75,5,70,20);a.fill();a.text(b-40,15,0,0,"IN REVIEW",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);break;case "done":a.rect(b-45,5,40,20);a.fill();a.text(b-25,15,0,0,"DONE",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);break;default:e=mxUtils.getValue(this.style,"issueStatusWidth",6.5*-d.length),a.rect(b-e-5,5,e,20),a.fill(),a.text(b-7,15,0,0,d,mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)}};mxCellRenderer.registerShape(mxAtlassianJiraIssue.prototype.cst.ISSUE,mxAtlassianJiraIssue);function mxShapeBasicCross(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=.5}mxUtils.extend(mxShapeBasicCross,mxActor);mxShapeBasicCross.prototype.cst={CROSS:"mxgraph.basic.cross2"};+d.length),a.rect(b-e-5,5,e,20),a.fill(),a.text(b-7,15,0,0,d,mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)}};mxCellRenderer.registerShape(mxAtlassianJiraIssue.prototype.cst.ISSUE,mxAtlassianJiraIssue);function mxShapeAtlassian2Icon(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAtlassian2Icon,mxShape);+mxShapeAtlassian2Icon.prototype.customProperties=[{name:"tileShape",dispName:"Tile Shape",type:"enum",defVal:"square",enumList:[{val:"square",dispName:"Rounded Square"},{val:"hex",dispName:"Hexagon"}]},{name:"tileColor",dispName:"Tile Color",type:"color",defVal:"#1868DB",primary:!0},{name:"tileOutlineColor",dispName:"Tile Outline",type:"color",defVal:"#DDDEE1",primary:!0},{name:"wordmarkColor",dispName:"Text Color",type:"color",defVal:"#101214",primary:!0},{name:"glyphScale",dispName:"Icon Scale",+type:"float",min:0,defVal:1}];mxShapeAtlassian2Icon.prototype.cst={SHAPE_ICON:"mxgraph.atlassian2.icon"};mxShapeAtlassian2Icon.HEX_ASPECT=.8971;mxShapeAtlassian2Icon.HEX_GLYPH_FACTOR=.8971;+mxShapeAtlassian2Icon.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getColorValue(this.style,"tileColor","none"),g="none"!=f,h=mxUtils.getValue(this.style,"atlassian2Wordmark",null),k=c,l=0;null!=h&&(l=String(mxUtils.getValue(this.style,"atlassian2LockupBox","1 0")).split(" "),k=parseFloat(l[0]),k=isNaN(k)||0>=k?c:c/k,c=parseFloat(l[1]||0),l=isNaN(c)?0:k*c);b=null!=h?Math.min(b,k*this.tileAspect()):b;a.translate(d,e);g&&this.background(a,0,l,b,k,f);a.setShadow(!1);this.foreground(a,+0,l,b,k,g,null!=h);null!=h&&this.wordmark(a,k,h,b,l)};mxShapeAtlassian2Icon.prototype.iconData=function(a,d,e,b){a=mxUtils.getValue(a,e,null);null==a&&null!=d&&null!=d.desc&&(a=d.desc.getAttribute(b));return null!=a&&""!=a?String(a):null};mxShapeAtlassian2Icon.prototype.parseBox=function(a){if(null==a)return null;a=String(a).split(" ");a=[parseFloat(a[0]),parseFloat(a[1]),parseFloat(a[2]),parseFloat(a[3])];return!isNaN(a[0])&&!isNaN(a[1])&&0<a[2]&&0<a[3]?a:null};+mxShapeAtlassian2Icon.prototype.parseLayout=function(a){var d=String(null!=a?a:"").split(" ");a=parseFloat(d[0]);var e=parseFloat(d[1]);d=parseFloat(d[2]);return[isNaN(a)?.3:a,isNaN(e)||0>=e?.65:e,isNaN(d)?0:d]};+mxShapeAtlassian2Icon.prototype.tileBounds=function(a){if("hex"!=mxUtils.getValue(this.style,"tileShape","square"))return null;var d=this.parseBox(this.iconData(this.style,a,"atlassian2TileBounds","tile"));return null!=d?d:null!=a&&"hex"==mxUtils.getValue(this.style,"tileShape","square")?(d=a.h0*mxShapeAtlassian2Icon.HEX_ASPECT,[(a.w0-d)/2,0,d,a.h0]):null};+mxShapeAtlassian2Icon.prototype.tileAspect=function(){if("hex"!=mxUtils.getValue(this.style,"tileShape","square"))return 1;var a=this.parseBox(mxUtils.getValue(this.style,"atlassian2TileBounds",null));return null!=a?a[2]/a[3]:mxShapeAtlassian2Icon.HEX_ASPECT};+mxShapeAtlassian2Icon.prototype.background=function(a,d,e,b,c,f){var g=mxUtils.getColorValue(this.style,mxConstants.STYLE_GRADIENTCOLOR,"none"),h=mxUtils.getValue(this.style,"gradientDirection","south"),k=mxUtils.getColorValue(this.style,"tileOutlineColor","none");"none"==g?a.setFillColor(f):a.setGradient(f,g,0,0,b,c,h);"none"!=k?(f=Math.max(1,b/24),g=f/2,a.setStrokeColor(k),a.setStrokeWidth(f),this.tilePath(a,d,e,b,c,g),a.fillAndStroke(),a.setStrokeColor(this.stroke),a.setStrokeWidth(this.strokewidth)):+(this.tilePath(a,d,e,b,c,0),a.fill())};+mxShapeAtlassian2Icon.prototype.tilePath=function(a,d,e,b,c,f){if("hex"==mxUtils.getValue(this.style,"tileShape","square")){var g=c-2*f,h=b-2*f;c=Math.max(0,.1146*g-.5*f);d+=b/2;e+=f;g=[[d,e],[d+h/2,e+g/4],[d+h/2,e+3*g/4],[d,e+g],[d-h/2,e+3*g/4],[d-h/2,e+g/4]];h=c/Math.sqrt(3);e=[];for(f=0;6>f;f++){d=g[f];b=g[(f+1)%6];var k=b[0]-d[0],l=b[1]-d[1],m=Math.sqrt(k*k+l*l);e.push([d[0]+k*h/m,d[1]+l*h/m,b[0]-k*h/m,b[1]-l*h/m])}a.begin();a.moveTo(e[0][0],e[0][1]);for(f=0;6>f;f++)a.lineTo(e[f][2],e[f][3]),+g=e[(f+1)%6],a.arcTo(c,c,0,0,1,g[0],g[1]);a.close()}else a.roundrect(d+f,e+f,b-2*f,c-2*f,.25*b-f,.25*c-f)};+mxShapeAtlassian2Icon.prototype.foreground=function(a,d,e,b,c,f,g){var h=mxUtils.getValue(this.style,"atlassian2Icon",null),k=null;null!=h&&(k=mxStencilRegistry.getStencil(h));if(null!=k){a.setFillColor(mxUtils.getColorValue(this.style,mxConstants.STYLE_FILLCOLOR,"none"));if(f||g){var l=this.tileBounds(k);null!=l?(f=d-l[0]*b/l[2],g=e-l[1]*c/l[3],h=b*k.w0/l[2],l=c*k.h0/l[3]):(f=d,g=e,h=b,l=c)}else f=this.parseBox(this.iconData(this.style,k,"atlassian2IconBounds","ink"))||[4,4,16,16],g=f[1],h=f[2],+l=f[3],f=d-f[0]*b/h,g=e-g*c/l,h=b*k.w0/h,l=c*k.h0/l;var m=parseFloat(mxUtils.getValue(this.style,"glyphScale",1));m=isNaN(m)?1:m;1!=m&&(f=d+b/2+(f-(d+b/2))*m,g=e+c/2+(g-(e+c/2))*m,h*=m,l*=m);k.drawShape(a,this,f,g,h,l)}};+mxShapeAtlassian2Icon.prototype.wordmark=function(a,d,e,b,c){e=mxStencilRegistry.getStencil(e);c=c||0;if(null!=e){var f=this.parseLayout(mxUtils.getValue(this.style,"atlassian2Lockup",null)),g=f[0],h=d*f[1];f=f[2];var k=h*e.w0/e.h0,l=mxUtils.getValue(this.style,"atlassian2Wordmark2",null);l=null!=l?mxStencilRegistry.getStencil(l):null;if(null!=l){var m=this.parseLayout(mxUtils.getValue(this.style,"atlassian2Lockup2",null)),n=d*m[1],p=n*l.w0/l.h0;a.setFillColor(mxUtils.getColorValue(this.style,mxConstants.STYLE_FILLCOLOR,+"none"));l.drawShape(a,this,b+d*m[0],c+d*(.5+m[2])-n/2,p,n);b+=d*m[0]+p}a.setFillColor(mxUtils.getColorValue(this.style,"wordmarkColor","none"));e.drawShape(a,this,b+d*g,c+d*(.5+f)-h/2,k,h)}};+mxShapeAtlassian2Icon.prototype.getConstraints=function(a,d,e){function b(l,m,n){l=new mxConnectionConstraint(new mxPoint(Math.round(1E3*l)/1E3,Math.round(1E3*m)/1E3),!1);l.name=n;c.push(l)}d=mxUtils.getColorValue(a,"tileColor","none");var c=[];if(null!=mxUtils.getValue(a,"atlassian2Wordmark",null))return c.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(1,+.5),!1)),c.push(new mxConnectionConstraint(new mxPoint(1,1),!1)),c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),c.push(new mxConnectionConstraint(new mxPoint(0,1),!1)),c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1)),c;if("none"!=d)"hex"==mxUtils.getValue(a,"tileShape","square")?(b(.5,0,"N"),b(1,.5,"E"),b(.5,1,"S"),b(0,.5,"W"),b(.75,.125,"NE"),b(.75,.875,"SE"),b(.25,.875,"SW"),b(.25,.125,"NW")):(b(.5,0,"N"),b(1,.5,"E"),b(.5,1,"S"),b(0,.5,"W"),d=.25*(1-Math.SQRT1_2),b(1-d,d,"NE"),+b(1-d,1-d,"SE"),b(d,1-d,"SW"),b(d,d,"NW")),b(.5,.5,"C");else{d=mxUtils.getValue(a,"atlassian2Icon",null);d=null!=d?mxStencilRegistry.getStencil(d):null;var f=this.parseBox(this.iconData(a,d,"atlassian2IconBounds","ink"));if(null!=d&&null!=d.constraints&&null!=f){a=f[0];e=f[1];var g=f[2];f=f[3];for(var h=0;h<d.constraints.length;h++){var k=d.constraints[h].point;k=new mxConnectionConstraint(new mxPoint(Math.min(1,Math.max(0,(k.x*d.w0-a)/g)),Math.min(1,Math.max(0,(k.y*d.h0-e)/f))),!1);k.name=d.constraints[h].name;+c.push(k)}}else c.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1)),c.push(new mxConnectionConstraint(new mxPoint(1,1),!1)),c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),c.push(new mxConnectionConstraint(new mxPoint(0,1),!1)),c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1))}return c};+mxShapeAtlassian2Icon.prototype.styleChanged=function(a,d,e){if("tileColor"==a||"tileOutlineColor"==a||"wordmarkColor"==a){var b="prev_"+a,c=mxUtils.getColorValue(e.style,a,"none");if(null==d||"none"==d)"none"!=c&&(this[b]=c);else if(null!=this[b]&&(c=this[b],this[b]=null,d!=c)){e.view.graph.setCellStyles(a,c,[e.cell]);return}}if("tileShape"==a){var f=mxUtils.getValue(e.style,"tileShape","square"),g=null!=d&&""!=d?d:"square";if(f!=g){b=e.view.graph;c=b.getCellGeometry(e.cell);var h="hex"==f?mxShapeAtlassian2Icon.HEX_ASPECT:+1,k="hex"==g?mxShapeAtlassian2Icon.HEX_ASPECT:1;if(null!=c&&b.getModel().isVertex(e.cell)&&h!=k){c=c.clone();if(null!=mxUtils.getValue(e.style,"atlassian2Wordmark",null)){var l=String(mxUtils.getValue(e.style,"atlassian2LockupBox","1 0")).split(" ");l=parseFloat(l[0]);l=isNaN(l)||0>=l?1:l;c.width+=c.height/l*(k-h)}else h=k/h,c.x+=c.width*(1-h)/2,c.width*=h;b.getModel().setGeometry(e.cell,c)}b=mxUtils.getValue(e.style,"atlassian2Icon",null);b=null!=b?mxStencilRegistry.getStencil(b):null;c=parseFloat(this.iconData(e.style,+b,"atlassian2HexScale","hexscale"));b=c=isNaN(c)?mxShapeAtlassian2Icon.HEX_GLYPH_FACTOR:c;c/=mxShapeAtlassian2Icon.HEX_GLYPH_FACTOR;h=parseFloat(mxUtils.getValue(e.style,"glyphScale",1));h=isNaN(h)?1:h;g="hex"==g?b:c;5E-4>Math.abs(h-("hex"==f?b:c))&&e.view.graph.setCellStyles("glyphScale",5E-4>Math.abs(g-1)?null:String(Math.round(1E4*g)/1E4),[e.cell])}}"tileColor"==a&&(a=mxUtils.getColorValue(e.style,"tileColor","none"),d=null!=d&&"none"!=d,"none"!=a!=d&&null==mxUtils.getValue(e.style,"atlassian2Wordmark",+null)&&(b=e.view.graph,c=b.getCellGeometry(e.cell),a=16/24,f=16/24,g=mxUtils.getValue(e.style,"atlassian2Icon",null),g=null!=g?mxStencilRegistry.getStencil(g):null,h=this.parseBox(this.iconData(e.style,g,"atlassian2IconBounds","ink")),null!=g&&null!=h&&(f=this.tileBounds(g),a=h[2]/(null!=f?f[2]:g.w0),f=h[3]/(null!=f?f[3]:g.h0)),null!=c&&b.getModel().isVertex(e.cell)&&(c=c.clone(),a=d?1/a:a,d=d?1/f:f,c.x+=c.width*(1-a)/2,c.y+=c.height*(1-d)/2,c.width*=a,c.height*=d,b.getModel().setGeometry(e.cell,+c))))};mxCellRenderer.registerShape(mxShapeAtlassian2Icon.prototype.cst.SHAPE_ICON,mxShapeAtlassian2Icon);function mxShapeBasicCross(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=.5}mxUtils.extend(mxShapeBasicCross,mxActor);mxShapeBasicCross.prototype.cst={CROSS:"mxgraph.basic.cross2"};mxShapeBasicCross.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));a.begin();a.moveTo(.5*b+d,0);a.lineTo(.5*b+d,.5*c-d);a.lineTo(b,.5*c-d);a.lineTo(b,.5*c+d);a.lineTo(.5*b+d,.5*c+d);a.lineTo(.5*b+d,c);a.lineTo(.5*b-d,c);a.lineTo(.5*b-d,.5*c+d);a.lineTo(0,.5*c+d);a.lineTo(0,.5*c-d);a.lineTo(.5*b-d,.5*c-d);a.lineTo(.5*b-d,0);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeBasicCross.prototype.cst.CROSS,mxShapeBasicCross);mxShapeBasicCross.prototype.constraints=null;Graph.handleFactory[mxShapeBasicCross.prototype.cst.CROSS]=function(a){return[Graph.createHandle(a,["dx"],function(d){var e=Math.max(0,Math.min(d.width/2,d.width/2,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx))));return new mxPoint(d.x+d.width/2+e,d.y+d.height/2-e)},function(d,e){this.state.style.dx=Math.round(100*Math.max(0,Math.min(d.height/2,d.width/2,e.x-d.x-d.width/2)))/100})]};diff --git a/src/main/webapp/js/viewer.min.js b/src/main/webapp/js/viewer.min.jsindex 2db57ec44..ba08bf229 100644--- a/src/main/webapp/js/viewer.min.js+++ b/src/main/webapp/js/viewer.min.js@@ -13,7 +13,7 @@ var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456a.charCodeAt(c+1);56320<=e&&57343>=e&&(d=((d&1023)<<10)+(e&1023)+65536,c++)}128>d?b+=String.fromCharCode(d):(2048>d?b+=String.fromCharCode(d>>6|192):(65536>d?b+=String.fromCharCode(d>>12|224):(b+=String.fromCharCode(d>>18|240),b+=String.fromCharCode(d>>12&63|128)),b+=String.fromCharCode(d>>6&63|128)),b+=String.fromCharCode(d&63|128))}return b},_utf8_decode:function(a){var b="",c=0;for(c1=c2=0;c<a.length;){var d=a.charCodeAt(c);if(128>d)b+=String.fromCharCode(d),c++;else if(191<d&&224>d)c2=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|c2&63),c+=2;else if(240>d)c2=a.charCodeAt(c+1),c3=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(c2&63)<<6|c3&63),c+=3;else{c2=a.charCodeAt(c+1);c3=a.charCodeAt(c+2);var e=a.charCodeAt(c+3);b+=String.fromCodePoint((d&7)<<18|(c2&63)<<12|(c3&63)<<6|e&63);c+=4}}return b}};window.urlParams=window.urlParams||{};if(null==window.mxIsElectron||"1"==urlParams.embed)window.mxIsElectron=!1;window.isLocalStorage=window.isLocalStorage||!1;window.mxLoadSettings=window.mxLoadSettings||"1"!=urlParams.configure;window.isSvgBrowser=!0;window.isMermaidEnabled="function"===typeof structuredClone;window.DRAWIO_BASE_URL=window.DRAWIO_BASE_URL||(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)?window.location.protocol+"//"+window.location.hostname:"https://app.diagrams.net");window.DRAWIO_SERVER_URL=window.DRAWIO_SERVER_URL||window.location.origin+window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+"/";window.DRAWIO_LIGHTBOX_URL=window.DRAWIO_LIGHTBOX_URL||"https://viewer.diagrams.net";-window.EXPORT_URL=window.EXPORT_URL||"https://convert.diagrams.net/node/export";window.DRAW_MATH_URL=window.DRAW_MATH_URL||"math4/es5";window.VSS_CONVERT_URL=window.VSS_CONVERT_URL||"https://convert.diagrams.net/VsdConverter/api/converter";window.REALTIME_URL=window.REALTIME_URL||window.DRAWIO_SERVER_URL+"cache";window.DRAWIO_GITLAB_URL=window.DRAWIO_GITLAB_URL||"https://gitlab.com";window.DRAWIO_GITLAB_ID=window.DRAWIO_GITLAB_ID||"2b14debc5feeb18ba65358d863ec870e4cc9294b28c3c941cb3014eb4af9a9b4";+window.EXPORT_URL="undefined"===typeof window.EXPORT_URL?"https://convert.diagrams.net/node/export":window.EXPORT_URL;window.DRAW_MATH_URL=window.DRAW_MATH_URL||"math4/es5";window.VSS_CONVERT_URL=window.VSS_CONVERT_URL||"https://convert.diagrams.net/VsdConverter/api/converter";window.REALTIME_URL=window.REALTIME_URL||window.DRAWIO_SERVER_URL+"cache";window.DRAWIO_GITLAB_URL=window.DRAWIO_GITLAB_URL||"https://gitlab.com";window.DRAWIO_GITLAB_ID=window.DRAWIO_GITLAB_ID||"2b14debc5feeb18ba65358d863ec870e4cc9294b28c3c941cb3014eb4af9a9b4";window.DRAWIO_GITHUB_URL=window.DRAWIO_GITHUB_URL||"https://github.com";window.DRAWIO_GITHUB_API_URL=window.DRAWIO_GITHUB_API_URL||"https://api.github.com";window.DRAWIO_GITHUB_ID=window.DRAWIO_GITHUB_ID||"Iv1.98d62f0431e40543";window.DRAWIO_DROPBOX_ID=window.DRAWIO_DROPBOX_ID||"jg02tc0onwmhlgm";window.SAVE_URL=window.SAVE_URL||window.DRAWIO_SERVER_URL+"save";window.PROXY_URL=window.PROXY_URL||window.DRAWIO_SERVER_URL+"proxy";window.DRAWIO_VIEWER_URL=window.DRAWIO_VIEWER_URL||null;window.NOTIFICATIONS_URL=window.NOTIFICATIONS_URL||(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)?window.DRAWIO_SERVER_URL+"notifications":null);window.RT_WEBSOCKET_URL=window.RT_WEBSOCKET_URL||"wss://"+("test.draw.io"==window.location.hostname?"app.diagrams.net":window.location.hostname)+"/rt";window.DRAWIO_ATLASSIAN_PROMPT_LENGTH=null!=window.DRAWIO_ATLASSIAN_PROMPT_LENGTH?window.DRAWIO_ATLASSIAN_PROMPT_LENGTH:1E5;window.SHAPES_PATH=window.SHAPES_PATH||"shapes";window.GRAPH_IMAGE_PATH=window.GRAPH_IMAGE_PATH||"img";window.ICONSEARCH_PATH=window.ICONSEARCH_PATH||(urlParams.dev&&"file:"!=window.location.protocol?"iconSearch2":window.DRAWIO_SERVER_URL+"iconSearch2");window.ICON_SERVICE_PATH=window.ICON_SERVICE_PATH||(urlParams.dev&&"file:"!=window.location.protocol?"api/icons":window.DRAWIO_SERVER_URL+"api/icons");window.TEMPLATE_PATH=window.TEMPLATE_PATH||"templates";@@ -30,8 +30,8 @@ window.uiTheme=window.uiTheme||function(){var a=urlParams.ui;"1"==urlParams.extAb),-1!==c&&c===b&&(window.DRAWIO_LOG_URL="https://log.draw.io")))})();"1"==urlParams["gapi-stealth"]&&(urlParams.stealth="1");if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==urlParams.local||"1"==urlParams.lockdown)urlParams.picker="1"==urlParams["gapi-stealth"]?"1":"0",urlParams.gapi="1"==urlParams["gapi-stealth"]?"1":"0",urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0";"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],FORBID_ATTR:["data-icon","data-icon-content"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ALLOW_DATA_ATTR:!1,ADD_ATTR:"target content pointer-events requiredFeatures data-font-src data-action data-title data-message data-link data-effect data-lucid-type data-lucid-content".split(" ")};-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:"31.4.2",IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),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.")&&+window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL="undefined"===typeof window.EXPORT_URL?"/export":window.EXPORT_URL;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:"31.4.4",IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor),IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints,IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userAgent),IS_GC:/Google Inc/.test(navigator.vendor),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:-1<navigator.userAgent.toLowerCase().indexOf("firefox"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS||"[object SVGForeignObjectElement]"!==document.createElementNS("http://www.w3.org/2000/svg","foreignObject").toString()||0<=navigator.userAgent.indexOf("Opera/"),IS_WIN:0<navigator.appVersion.indexOf("Win"),IS_MAC:0<navigator.appVersion.indexOf("Mac"),IS_CHROMEOS:/\bCrOS\b/.test(navigator.appVersion),@@ -990,16 +990,16 @@ mxPrintPreview.prototype.title=null;mxPrintPreview.prototype.pageSelector=null;mmxPrintPreview.prototype.getDoctype=function(){var a="";8==document.documentMode?a='<meta http-equiv="X-UA-Compatible" content="IE=8">':8<document.documentMode&&(a='\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]--\x3e');return a};mxPrintPreview.prototype.appendGraph=function(a,b,c,d,e,f,g,k,l){this.graph=a;this.scale=null!=b?b:1/a.pageScale;this.x0=c;this.y0=d;this.open(null,null,e,f,g,k,l)};mxPrintPreview.prototype.getPageClassCss=function(a,b){var c=this.pageMargin,d=this.pixelsPerInch,e=(b.width/d).toFixed(2)+"in "+(b.height/d).toFixed(2)+"in";b="@page "+a+" {\n margin: 0;\n size: "+mxUtils.htmlEntities(e)+";\n}\n."+a+" {\n page: "+a+";\n"+(mxClient.IS_SF?" padding: "+mxUtils.htmlEntities((c/d).toFixed(2))+"in;\n":"")+" width: "+mxUtils.htmlEntities((b.width/d).toFixed(2))+"in;\n height: "+mxUtils.htmlEntities((b.height/d).toFixed(2))+"in;\n}\n";mxClient.IS_SF||(b+="."+a+" > svg {\n margin: "+mxUtils.htmlEntities((c/d).toFixed(2))+"in;\n}\n");return b};-mxPrintPreview.prototype.open=function(a,b,c,d,e,f,g){c=null;try{var k=this.graph.cellRenderer.initializeOverlay,l=null!=f;f=mxRectangle.fromRectangle(null!=f?f:this.pageFormat);var m=f.width+1,n=f.height+1;this.printOverlays&&(this.graph.cellRenderer.initializeOverlay=function(H,F){F.init(H.view.getDrawPane())});this.printControls&&(this.graph.cellRenderer.initControl=function(H,F,J,I){F.dialect=H.view.graph.dialect;F.init(H.view.getDrawPane())});this.wnd=null!=b?b:this.wnd;b=!1;null==this.wnd&&-(b=!0,this.wnd=window.open());var p=this.wnd.document;if(b){var q=this.getDoctype();null!=q&&0<q.length&&p.writeln(q);"CSS1Compat"===document.compatMode&&p.writeln("<!DOCTYPE html>");p.writeln("<html>");p.writeln("<head>");this.writeHead(p,a);p.writeln("</head>");p.writeln("<body>")}var r=mxRectangle.fromRectangle(null!=g?this.graph.getBoundingBox(g):this.graph.getGraphBounds()),t=this.graph.getView().getScale(),u=t/this.scale,v=this.graph.getView().getTranslate();this.autoOrigin||(this.x0-=v.x*this.scale,-this.y0-=v.y*this.scale,r.width+=r.x,r.height+=r.y,r.x=0,this.border=r.y=0);var y=m-2*this.border,A=n-2*this.border;n+=this.marginTop+this.marginBottom;r.width/=u;r.height/=u;var z=Math.max(1,Math.ceil((r.width+this.x0)/y)),x=Math.max(1,Math.ceil((r.height+this.y0)/A));this.pageCount=z*x;var C=null;l&&(null==this.pendingCss&&(this.pageFormatClass={},this.pendingCss=""),C=mxUtils.htmlEntities("gePageFormat-"+String(f.width).replace(/\./g,"_")+"-"+String(f.height).replace(/\./g,"_")),null==this.pageFormatClass[C]&&-(this.pageFormatClass[C]=!0,this.pendingCss+=this.getPageClassCss(C,f)));var D=mxUtils.bind(this,function(H){null!=this.borderColor&&(H.style.borderColor=this.borderColor,H.style.borderStyle="solid",H.style.borderWidth="1px");H.style.background=this.backgroundColor;null!=C?H.classList.add(C):(H.style.width=f.width+"px",H.style.height=f.height+"px");p.body.appendChild(H)}),B=this.getCoverPages(m,n);if(null!=B)for(var E=0;E<B.length;E++)D(B[E],!0);var K=this.getAppendices(m,n);for(E=0;E<x;E++){var G=-E*A/this.scale-this.y0/this.scale+(r.y-v.y*t)/t-E;for(a=0;a<z;a++){if(null==this.wnd)return null;var L=a*y/this.scale-this.x0/this.scale+(r.x-v.x*t)/t-a;g=E*z+a+1;c=p.createElement("div");c.style.display="flex";c.style.alignItems="center";c.style.justifyContent="center";var Q=new mxRectangle(L,G,y,A);this.addGraphFragment(-L,-G,this.scale,g,c,Q);null!=e&&0==E&&0==a&&c.setAttribute("id",e);D(c,!0)}}if(null!=K)for(E=0;E<K.length;E++)D(K[E],E<K.length-1);b&&!d&&this.closeDocument();this.wnd.focus()}catch(H){null!=+mxPrintPreview.prototype.open=function(a,b,c,d,e,f,g){c=null;try{var k=this.graph.cellRenderer.initializeOverlay,l=null!=f;f=mxRectangle.fromRectangle(null!=f?f:this.pageFormat);var m=f.width+1,n=f.height+1,p=null;l&&(null==this.pendingCss&&(this.pageFormatClass={},this.pendingCss=""),p=mxUtils.htmlEntities("gePageFormat-"+String(f.width).replace(/\./g,"_")+"-"+String(f.height).replace(/\./g,"_")),null==this.pageFormatClass[p]&&(this.pageFormatClass[p]=!0,this.pendingCss+=this.getPageClassCss(p,f)));+this.printOverlays&&(this.graph.cellRenderer.initializeOverlay=function(H,F){F.init(H.view.getDrawPane())});this.printControls&&(this.graph.cellRenderer.initControl=function(H,F,J,I){F.dialect=H.view.graph.dialect;F.init(H.view.getDrawPane())});this.wnd=null!=b?b:this.wnd;b=!1;null==this.wnd&&(b=!0,this.wnd=window.open());var q=this.wnd.document;if(b){var r=this.getDoctype();null!=r&&0<r.length&&q.writeln(r);"CSS1Compat"===document.compatMode&&q.writeln("<!DOCTYPE html>");q.writeln("<html>");q.writeln("<head>");+this.writeHead(q,a);q.writeln("</head>");q.writeln("<body>")}var t=mxRectangle.fromRectangle(null!=g?this.graph.getBoundingBox(g):this.graph.getGraphBounds()),u=this.graph.getView().getScale(),v=u/this.scale,y=this.graph.getView().getTranslate();this.autoOrigin||(this.x0-=y.x*this.scale,this.y0-=y.y*this.scale,t.width+=t.x,t.height+=t.y,t.x=0,this.border=t.y=0);var A=m-2*this.border,z=n-2*this.border;n+=this.marginTop+this.marginBottom;t.width/=v;t.height/=v;var x=Math.max(1,Math.ceil((t.width+this.x0)/+A)),C=Math.max(1,Math.ceil((t.height+this.y0)/z));this.pageCount=x*C;var D=mxUtils.bind(this,function(H){null!=this.borderColor&&(H.style.borderColor=this.borderColor,H.style.borderStyle="solid",H.style.borderWidth="1px");H.style.background=this.backgroundColor;null!=p?H.classList.add(p):(H.style.width=f.width+"px",H.style.height=f.height+"px");q.body.appendChild(H)}),B=this.getCoverPages(m,n);if(null!=B)for(var E=0;E<B.length;E++)D(B[E],!0);var K=this.getAppendices(m,n);for(E=0;E<C;E++){var G=E*+z/this.scale-this.y0/this.scale+(t.y-y.y*u)/u-E;for(a=0;a<x;a++){if(null==this.wnd)return null;var L=a*A/this.scale-this.x0/this.scale+(t.x-y.x*u)/u-a;g=E*x+a+1;c=q.createElement("div");c.style.display="flex";c.style.alignItems="center";c.style.justifyContent="center";var Q=new mxRectangle(L,G,A,z);this.addGraphFragment(-L,-G,this.scale,g,c,Q);null!=e&&0==E&&0==a&&c.setAttribute("id",e);D(c,!0)}}if(null!=K)for(E=0;E<K.length;E++)D(K[E],E<K.length-1);b&&!d&&this.closeDocument();this.wnd.focus()}catch(H){null!=c&&null!=c.parentNode&&c.parentNode.removeChild(c),null!=window.console&&console.error(H)}finally{this.graph.cellRenderer.initializeOverlay=k}return this.wnd};mxPrintPreview.prototype.addPendingCss=function(a){if(null!=this.pendingCss){var b=a.createElement("style");b.setAttribute("type","text/css");b.appendChild(a.createTextNode(this.pendingCss));a.getElementsByTagName("head")[0].appendChild(b);this.pendingCss=null}};mxPrintPreview.prototype.closeDocument=function(){try{if(null!=this.wnd&&null!=this.wnd.document){var a=this.wnd.document;this.writePostfix(a);a.writeln("</body>");a.writeln("</html>");a.close();this.addPendingCss(a);mxEvent.release(a.body)}}catch(b){}};-mxPrintPreview.prototype.writeHead=function(a,b){null!=this.title&&a.writeln("<title>"+mxUtils.htmlEntities(this.title)+"</title>");var c=mxClient.basePath;"/src"==c.substring(c.length-4)&&(c=c.substring(0,c.length-4));mxClient.link("stylesheet",c+"/css/common.css",a);a.writeln('<style type="text/css">');a.writeln(this.defaultCss);c=this.pageFormat;this.addPageCss&&null!=c&&(c=(c.width/this.pixelsPerInch).toFixed(2)+"in "+(c.height/this.pixelsPerInch).toFixed(2)+"in",a.writeln("@page {"),a.writeln(" margin: "+-mxUtils.htmlEntities((this.pageMargin/this.pixelsPerInch).toFixed(2))+"in;"),a.writeln(" size: "+mxUtils.htmlEntities(c)+";"),a.writeln("}"));null!=b&&a.writeln(mxUtils.htmlEntities(b,!1,!1,!1));a.writeln("</style>")};mxPrintPreview.prototype.writePostfix=function(a){};mxPrintPreview.prototype.getRoot=function(){var a=this.graph.view.currentRoot;null==a&&(a=this.graph.getModel().getRoot());return a};mxPrintPreview.prototype.useCssTransforms=function(){return!mxClient.NO_FO&&!mxClient.IS_SF};-mxPrintPreview.prototype.isCellVisible=function(a){return!0};mxPrintPreview.prototype.drawBackgroundImage=function(a){a.redraw()};+mxPrintPreview.prototype.writeHead=function(a,b){null!=this.title&&a.writeln("<title>"+mxUtils.htmlEntities(this.title)+"</title>");var c=mxClient.basePath;"/src"==c.substring(c.length-4)&&(c=c.substring(0,c.length-4));mxClient.link("stylesheet",c+"/css/common.css",a);a.writeln('<style type="text/css">');a.writeln(this.defaultCss);c=this.pageFormat;this.addPageCss&&null!=c&&null==this.pendingCss&&(c=(c.width/this.pixelsPerInch).toFixed(2)+"in "+(c.height/this.pixelsPerInch).toFixed(2)+"in",a.writeln("@page {"),+a.writeln(" margin: "+mxUtils.htmlEntities((this.pageMargin/this.pixelsPerInch).toFixed(2))+"in;"),a.writeln(" size: "+mxUtils.htmlEntities(c)+";"),a.writeln("}"));null!=b&&a.writeln(b.replace(/<\/style/gi,"<\\/style"));a.writeln("</style>")};mxPrintPreview.prototype.writePostfix=function(a){};mxPrintPreview.prototype.getRoot=function(){var a=this.graph.view.currentRoot;null==a&&(a=this.graph.getModel().getRoot());return a};+mxPrintPreview.prototype.useCssTransforms=function(){return!mxClient.NO_FO&&!mxClient.IS_SF};mxPrintPreview.prototype.isCellVisible=function(a){return!0};mxPrintPreview.prototype.drawBackgroundImage=function(a){a.redraw()};mxPrintPreview.prototype.addGraphFragment=function(a,b,c,d,e,f){var g=this.graph.getView();d=this.graph.container;this.graph.container=e;var k=g.getCanvas(),l=g.getBackgroundPane(),m=g.getDrawPane(),n=g.getOverlayPane(),p=c;if(this.graph.dialect==mxConstants.DIALECT_SVG){if(g.createSvg(),this.useCssTransforms()){var q=g.getDrawPane().parentNode;q.setAttribute("transformOrigin","0 0");q.setAttribute("transform","scale("+c+","+c+")translate("+a+","+b+")");c=1;b=a=0}}else g.createHtml();q=g.isEventsEnabled();g.setEventsEnabled(!1);var r=this.graph.isEnabled();this.graph.setEnabled(!1);var t=g.getTranslate();g.translate=new mxPoint(a,b);var u=this.graph.selectionCellsHandler.updateHandler;this.graph.selectionCellsHandler.updateHandler=function(){};var v=this.graph.cellRenderer.redraw,y=g.states,A=g.scale,z=null;if(this.printBackgroundImage){var x=this.getBackgroundImage();null!=x&&(z=new mxRectangle(Math.round(a*A+x.x),Math.round(b*A+x.y),x.width-1,x.height-1),z=new mxImageShape(z,x.src),z.dialect=this.graph.dialect)}if(this.clipping){var C=new mxRectangle((f.x+t.x+1.5)*A,(f.y+t.y+1.5)*A,(f.width-1.5)*A/p,(f.height-1.5)*A/p),D=this;this.graph.cellRenderer.redraw=function(E,K,G){if(null!=E){var L=y.get(E.cell);if(null!=L&&(L=g.getBoundingBox(L,!1),null!=L&&0<L.width&&0<L.height&&!mxUtils.intersects(C,L))||!D.isCellVisible(E.cell))return}v.apply(this,arguments)};null!=z&&(a=new mxRectangle(z.bounds.x*A+(t.x-a)*A,z.bounds.y*A+(t.y-b)*A,z.bounds.width*A,z.bounds.height*A),mxUtils.intersects(C,a)||(z=null))}null!=z&&(z.init(g.backgroundPane),@@ -2205,7 +2205,7 @@ this.keyHandler=this.createKeyHandler(b);this.getKeyHandler=function(){return keMenus.prototype.defaultFont),this.toolbar.setFontSize(t.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),P=this.getSelectionState(),null!=this.toolbar.edgeStyleMenu&&(ia=this.getImageForEdgeStyle(t.currentEdgeStyle),0==P.edges.length&&(this.toolbar.edgeStyleMenu.style.backgroundImage="url("+ia+")")),null!=this.toolbar.edgeShapeMenu&&(k=this.getImageForEdgeShape(t.currentEdgeStyle),0==P.edges.length&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+k+")")))}));null!=this.toolbar&&(b=mxUtils.bind(this,function(){var H=t.currentVertexStyle.fontFamily||"Helvetica",P=String(t.currentVertexStyle.fontSize||"12"),T=t.getView().getState(t.getSelectionCell());null!=T&&(H=T.style[mxConstants.STYLE_FONTFAMILY]||H,P=T.style[mxConstants.STYLE_FONTSIZE]||P,10<H.length&&(H=H.substring(0,8)+"..."));this.toolbar.setFontName(H);this.toolbar.setFontSize(P)}),t.getSelectionModel().addListener(mxEvent.CHANGE,b),t.getModel().addListener(mxEvent.CHANGE,b));t.addListener(mxEvent.CELLS_ADDED,function(H,P){H=P.getProperty("cells");P=P.getProperty("parent");null!=P&&t.getModel().isLayer(P)&&!t.isCellVisible(P)&&null!=H&&0<H.length&&t.getModel().setVisible(P,!0)});Graph.selectParentLayer&&t.selectionModel.addListener(mxEvent.CHANGE,function(){if(t.isEnabled()&&!t.isSelectionEmpty()){var H=t.getLayerForCells(t.getSelectionCells());null!=H&&t.setDefaultParent(H)}});this.gestureHandler=mxUtils.bind(this,function(H){this.isHideCurrentMenuEvent(H)&&this.hideCurrentMenu()});mxEvent.addGestureListeners(document,-this.gestureHandler);var v=null;this.resizeHandler=mxUtils.bind(this,function(){null!=v&&window.clearTimeout(v);v=window.setTimeout(mxUtils.bind(this,function(){v=null;this.windowResized()}),100)});mxEvent.addListener(window,"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});mxEvent.addListener(window,"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&!window.navigator.standalone&&"undefined"!==typeof Menus&&(this.scrollHandler=+this.gestureHandler);var u=null;this.resizeHandler=mxUtils.bind(this,function(){null!=u&&window.clearTimeout(u);u=window.setTimeout(mxUtils.bind(this,function(){u=null;this.windowResized()}),100)});mxEvent.addListener(window,"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});mxEvent.addListener(window,"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&!window.navigator.standalone&&"undefined"!==typeof Menus&&(this.scrollHandler=mxUtils.bind(this,function(){window.scrollTo(0,0)}),mxEvent.addListener(window,"scroll",this.scrollHandler));this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.resetScrollbars()}));this.addListener("gridEnabledChanged",mxUtils.bind(this,function(){t.view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,function(){t.view.validateBackground()}));t.addListener("gridSizeChanged",mxUtils.bind(this,function(){t.isGridEnabled()&&t.view.validateBackground()}));this.editor.resetGraph()}this.init();t.standalone||this.open()};EditorUi.compactUi=!0;EditorUi.parsePng=function(b,d,m){function p(D,O){var F=n;n+=O;return D.substring(F,n)}function t(D){D=p(D,4);return D.charCodeAt(3)+(D.charCodeAt(2)<<8)+(D.charCodeAt(1)<<16)+(D.charCodeAt(0)<<24)}var n=0;if(p(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=m&&m();else if(p(b,4),"IHDR"!=p(b,4))null!=m&&m();else{p(b,17);do{m=t(b);var y=p(b,4);if(null!=d&&d(n-8,y,m))break;value=p(b,m);p(b,4);if("IEND"==y)break}while(m)}};mxUtils.extend(EditorUi,mxEventSource);@@ -2312,16 +2312,16 @@ document.body))&&D(mxUtils.bind(this,function(X){"1"==urlParams.close||y.closeBtY&&Math.abs(this.startX-ea.getGraphX())<Y&&Math.abs(this.startY-ea.getGraphY())<Y&&(0<parseFloat(m.chromelessToolbar.style.opacity||0)?E():J(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var aa=b.view.validate,ja=new mxPoint,ka=!1,ua=null;b.view.validate=function(){if(null!=b.container&&mxUtils.hasScrollbars(b.container)){if(null!=m.currentPage&&ua!=m.currentPage){ua=m.currentPage;ka=!0;var X=b.getBoundingBoxFromGeometry(b.model.getCells(),!0,null,!0);null==X&&(X=new mxRectangle(b.view.translate.x*b.view.scale,b.view.translate.y*b.view.scale));X=b.getPageLayout(X,ja,1);var ea=b.getDefaultTranslate(X);this.x0=X.x;this.y0=X.y;if(ea.x!=this.translate.x||ea.y!=this.translate.y)this.invalidate(),this.translate.x=ea.x,this.translate.y=ea.y}ea=b.getPagePadding();var oa=b.getPageSize();X=ea.x-(this.x0||0)*oa.width;ea=ea.y-(this.y0||0)*oa.height;if(this.translate.x!=X||this.translate.y!=ea)this.invalidate(),this.translate.x=X,this.translate.y=ea}aa.apply(this,arguments)};if(!b.isViewer()){var Ca=b.sizeDidChange;b.sizeDidChange=function(){var X=ka;ka=!1;if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var ea=this.getPageLayout(),oa=this.getDefaultTranslate(ea),la=this.view.translate.x,ca=this.view.translate.y;if(oa.x!=la||oa.y!=ca){this.view.x0=ea.x;this.view.y0=ea.y;this.autoTranslate=!0;this.view.setTranslate(oa.x,oa.y);this.autoTranslate=!1;X||(this.container.scrollLeft+=Math.round((oa.x--la)*this.view.scale),this.container.scrollTop+=Math.round((oa.y-ca)*this.view.scale));return}}Ca.apply(this,arguments)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var ia=b.view.getBackgroundPane(),k=b.view.getDrawPane();b.cumulativeZoomFactor=1;var v=null,H=null,P=null,T=null,W=null,ha=function(X){null!=v&&window.clearTimeout(v);0<=X&&window.setTimeout(function(){if(!b.isMouseDown||T)v=window.setTimeout(mxUtils.bind(this,function(){if(b.isFastZoomEnabled()){null!=+la)*this.view.scale),this.container.scrollTop+=Math.round((oa.y-ca)*this.view.scale));return}}Ca.apply(this,arguments)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var ia=b.view.getBackgroundPane(),k=b.view.getDrawPane();b.cumulativeZoomFactor=1;var u=null,H=null,P=null,T=null,W=null,ha=function(X){null!=u&&window.clearTimeout(u);0<=X&&window.setTimeout(function(){if(!b.isMouseDown||T)u=window.setTimeout(mxUtils.bind(this,function(){if(b.isFastZoomEnabled()){null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node&&(mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,"transform-origin",null),mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,"transform",null));k.style.transformOrigin="";ia.style.transformOrigin="";mxClient.IS_SF?(k.style.transform="scale(1)",ia.style.transform="scale(1)",window.setTimeout(function(){k.style.transform="";ia.style.transform=""},0)):(k.style.transform="",ia.style.transform="");b.view.getDecoratorPane().style.opacity="";b.view.getOverlayPane().style.opacity="";for(var ea=b.container.querySelectorAll(".geHint"),oa=0;oa<ea.length;oa++)ea[oa].style.opacity=""}ea=new mxPoint(b.container.scrollLeft,b.container.scrollTop);var la=mxUtils.getOffset(b.container),ca=b.view.scale;oa=b.view.translate.x;var ta=b.view.translate.y,xa=0,qa=0;null!=H&&(xa=b.container.offsetWidth/2-H.x+la.x,qa=b.container.offsetHeight/2-H.y+la.y);var Ba=null==d&&mxUtils.hasScrollbars(b.container);b.zoom(b.cumulativeZoomFactor,Ba?!1:null,b.isFastZoomEnabled()?20:null,Ba);var na=b.view.scale;na!=ca&&(Ba?(ca=na/ca,xa=null!=H?H.x-la.x:b.container.clientWidth/2,la=null!=H?H.y-la.y:b.container.clientHeight/2,null!=P&&(xa-=ea.x-P.x,la-=ea.y-P.y),b.container.scrollLeft=Math.round(ea.x*ca+xa*(ca-1)+(b.view.translate.x-oa)*na),b.container.scrollTop=Math.round(ea.y*ca+la*(ca-1)+(b.view.translate.y-ta)*na)):(null!=P&&(xa+=ea.x-P.x,qa+=ea.y-P.y),null!=d&&m.chromelessResize(!1,null,xa*(b.cumulativeZoomFactor-1),qa*(b.cumulativeZoomFactor-1)),!mxUtils.hasScrollbars(b.container)||-0==xa&&0==qa||(b.container.scrollLeft-=xa*(b.cumulativeZoomFactor-1),b.container.scrollTop-=qa*(b.cumulativeZoomFactor-1))));null!=W&&k.setAttribute("filter",W);b.fireEvent(new mxEventObject("zoomPreviewComplete"));b.cumulativeZoomFactor=1;W=T=H=P=v=null}),null!=X?X:b.isFastZoomEnabled()?m.wheelZoomDelay:m.lazyZoomDelay)},0)};b.lazyZoom=function(X,ea,oa,la,ca){la=null!=la?la:this.zoomFactor;(ea=ea||!b.scrollbars)&&(H=new mxPoint(b.container.offsetLeft+b.container.clientWidth/2,b.container.offsetTop++0==xa&&0==qa||(b.container.scrollLeft-=xa*(b.cumulativeZoomFactor-1),b.container.scrollTop-=qa*(b.cumulativeZoomFactor-1))));null!=W&&k.setAttribute("filter",W);b.fireEvent(new mxEventObject("zoomPreviewComplete"));b.cumulativeZoomFactor=1;W=T=H=P=u=null}),null!=X?X:b.isFastZoomEnabled()?m.wheelZoomDelay:m.lazyZoomDelay)},0)};b.lazyZoom=function(X,ea,oa,la,ca){la=null!=la?la:this.zoomFactor;(ea=ea||!b.scrollbars)&&(H=new mxPoint(b.container.offsetLeft+b.container.clientWidth/2,b.container.offsetTop+b.container.clientHeight/2));ca?1!=la&&(X?.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale+.05)/this.view.scale:(this.cumulativeZoomFactor*=la,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale):.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale-.05)/this.view.scale:(this.cumulativeZoomFactor/=la,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale)):this.cumulativeZoomFactor=this.getZoomStep(this.view.scale*this.cumulativeZoomFactor,X)/this.view.scale;this.cumulativeZoomFactor=Math.max(.05,Math.min(this.view.scale*this.cumulativeZoomFactor,160))/this.view.scale;if(b.isFastZoomEnabled()){null==W&&""!=k.getAttribute("filter")&&(W=k.getAttribute("filter"),k.removeAttribute("filter"));P=new mxPoint(b.container.scrollLeft,b.container.scrollTop);X=Math.round(Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100*20)/(20*this.view.scale);la=ea||null==H?b.container.scrollLeft+b.container.clientWidth/2:H.x+b.container.scrollLeft-b.container.offsetLeft;ca=ea||null==H?b.container.scrollTop+b.container.clientHeight/2:H.y+b.container.scrollTop-b.container.offsetTop;k.style.transformOrigin=la+"px "+ca+"px";k.style.transform="scale("+X+")";ia.style.transformOrigin=la+"px "+ca+"px";ia.style.transform="scale("+X+")";null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node?(la=b.view.backgroundPageShape.node,mxUtils.setPrefixedStyle(la.style,"transform-origin",(ea||null==H?b.container.clientWidth/2+b.container.scrollLeft-la.offsetLeft+"px":H.x+b.container.scrollLeft-la.offsetLeft-b.container.offsetLeft+"px")+" "+(ea||null==H?b.container.clientHeight/2+b.container.scrollTop-la.offsetTop+"px":H.y+b.container.scrollTop-la.offsetTop-b.container.offsetTop+"px")),mxUtils.setPrefixedStyle(la.style,"transform","scale("+X+")")):b.view.validateBackgroundStyles(X,la,ca);b.view.getDecoratorPane().style.opacity="0";-b.view.getOverlayPane().style.opacity="0";ea=b.container.querySelectorAll(".geHint");for(la=0;la<ea.length;la++)ea[la].style.opacity="0";b.fireEvent(new mxEventObject("zoomPreview","factor",X))}ha(b.isFastZoomEnabled()?oa:0)};mxEvent.addGestureListeners(b.container,function(X){null!=v&&window.clearTimeout(v)},null,function(X){1!=b.cumulativeZoomFactor&&ha(0)});mxEvent.addListener(b.container,"scroll",function(X){null==v||b.isMouseDown||1==b.cumulativeZoomFactor||ha(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,+b.view.getOverlayPane().style.opacity="0";ea=b.container.querySelectorAll(".geHint");for(la=0;la<ea.length;la++)ea[la].style.opacity="0";b.fireEvent(new mxEventObject("zoomPreview","factor",X))}ha(b.isFastZoomEnabled()?oa:0)};mxEvent.addGestureListeners(b.container,function(X){null!=u&&window.clearTimeout(u)},null,function(X){1!=b.cumulativeZoomFactor&&ha(0)});mxEvent.addListener(b.container,"scroll",function(X){null==u||b.isMouseDown||1==b.cumulativeZoomFactor||ha(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(X,ea,oa,la,ca){b.fireEvent(new mxEventObject("wheel"));if(null==b.freehand||!b.freehand.isDrawing())if(Editor.passiveScroll&&!oa&&b.isScrollWheelEvent(X))null!=window.parent&&window.parent!=window&&window.parent.postMessage(JSON.stringify({event:"scrollWheel",deltaX:null!=X.deltaX?X.deltaX:0,deltaY:null!=X.deltaY?X.deltaY:ea?-60:60}),"*");else if(null==this.dialogs||0==this.dialogs.length)if(!b.scrollbars&&!oa&&b.isScrollWheelEvent(X))la=b.view.getTranslate(),ca=40/b.view.scale,mxEvent.isShiftDown(X)?b.view.setTranslate(la.x+(ea?-ca:ca),la.y):b.view.setTranslate(la.x,la.y+(ea?ca:-ca));else if(oa||b.isZoomWheelEvent(X))for(var ta=mxEvent.getSource(X);null!=ta;){if(ta==b.container){b.tooltipHandler.hideTooltip();la=null!=la&&null!=ca?new mxPoint(la,ca):new mxPoint(mxEvent.getClientX(X),mxEvent.getClientY(X));ca=null!=H?new mxPoint(H.x,H.y):null;ta=b.cumulativeZoomFactor;H=la;T=oa;oa=b.zoomFactor;var xa=!1,qa=null;X.ctrlKey&&null!=X.deltaY&&40>Math.abs(X.deltaY)&&Math.round(X.deltaY)!=X.deltaY?(oa=1+Math.abs(X.deltaY)/20*(oa-1),xa=!0):null!=X.movementY&&"pointermove"==X.type&&(oa=1+Math.max(1,Math.abs(X.movementY))/20*(oa-1),xa=!0,qa=-1);b.lazyZoom(ea,null,qa,oa,xa);null!=ca&&1!=ta&&b.isFastZoomEnabled()&&b.scrollbars&&(ea=b.cumulativeZoomFactor,oa=ea/ta,xa=1-ea,.001<Math.abs(xa)&&(H=new mxPoint((la.x*(1-oa)+oa*ca.x*(1-ta))/xa,(la.y*(1-oa)+oa*ca.y*(1-ta))/xa),la=H.x+b.container.scrollLeft-b.container.offsetLeft,ca=H.y+b.container.scrollTop-b.container.offsetTop,k.style.transformOrigin=la+"px "+@@ -2449,37 +2449,37 @@ mxImageShape.prototype.getImageCssVars=function(b){var d=String(this.image),m=nud?b.push(d):0==b.length&&(m="")),0<b.length&&(m=b.join("; "))));return m};(function(){var b=mxStencil.prototype.parseColor;mxStencil.prototype.parseColor=function(d,m,p,t,n){return"default"==t&&null!=n?"fillcolor"==p.nodeName?n.shapeBackgroundColor:n.shapeForegroundColor:b.apply(this,arguments)}})();(function(){var b=mxResources.get;mxResources.get=function(d,m,p){null==p&&(p=d);return b.apply(this,[d,m,p])}})();(function(){var b=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(d,m,p,t,n,y,D,O){var F=b.apply(this,arguments);if(null!=m){var N=F.getElementsByTagName("img");0<N.length&&(N[0].className="geButton")}return F}})();Graph=function(b,d,m,p,t,n){mxGraph.call(this,b,d,m,p);this.themes=t||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=n?n:!1;b=this.baseUrl;d=b.indexOf("//");this.domainPathUrl=this.domainUrl="";0<d&&(d=b.indexOf("/",d+2),0<d&&(this.domainUrl=b.substring(0,d)),d=b.lastIndexOf("/"),0<d&&(this.domainPathUrl=b.substring(0,d+1)));this.isHtmlLabel=function(ia){ia=this.getCurrentCellStyle(ia);-return null!=ia?"1"==ia.html||"wrap"==ia[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var y=null,D=null,O=null,F=null,N=!1,R=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(ia,k){if("mouseDown"==k.getProperty("eventName")&&this.isEnabled()){ia=k.getProperty("event");var v=ia.getState();k=this.view.scale;if(!mxEvent.isAltDown(ia.getEvent())&&null!=v&&(R=this.isCellSelected(v.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(ia.getEvent()))){var H=-this.selectionCellsHandler.getHandler(v.cell);if(null==H||null==H.getHandleForEvent(ia)){var P=new mxRectangle(ia.getGraphX()-1,ia.getGraphY()-1),T=mxEvent.isTouchEvent(ia.getEvent())?mxShape.prototype.svgStrokeTolerance-1:(mxShape.prototype.svgStrokeTolerance+2)/2;H=T+2;P.grow(T);if(this.isTableCell(v.cell)&&this.isCellMovable(v.cell)&&!this.isCellSelected(v.cell)&&!(mxUtils.contains(v,ia.getGraphX()-H,ia.getGraphY()-H)&&mxUtils.contains(v,ia.getGraphX()-H,ia.getGraphY()+H)&&mxUtils.contains(v,ia.getGraphX()+-H,ia.getGraphY()+H)&&mxUtils.contains(v,ia.getGraphX()+H,ia.getGraphY()-H))){var W=this.model.getParent(v.cell);H=this.model.getParent(W);if(!this.isCellSelected(H)){T*=k;var ha=2*T;if(this.model.getChildAt(H,0)!=W&&mxUtils.intersects(P,new mxRectangle(v.x,v.y-T,v.width,ha))||this.model.getChildAt(W,0)!=v.cell&&mxUtils.intersects(P,new mxRectangle(v.x-T,v.y,ha,v.height))||mxUtils.intersects(P,new mxRectangle(v.x,v.y+v.height-T,v.width,ha))||mxUtils.intersects(P,new mxRectangle(v.x+v.width-T,v.y,ha,-v.height)))W=this.selectionCellsHandler.isHandled(H),this.selectCellForEvent(H,ia.getEvent()),H=this.selectionCellsHandler.getHandler(H),null!=H&&(T=H.getHandleForEvent(ia),null!=T&&(H.start(ia.getGraphX(),ia.getGraphY(),T),H.blockDelayedSelection=!W,ia.consume()))}}for(;!ia.isConsumed()&&null!=v&&(this.isTableCell(v.cell)||this.isTableRow(v.cell)||this.isTable(v.cell));)this.isSwimlane(v.cell)&&this.isCellMovable(v.cell)&&(H=this.getActualStartSize(v.cell),(0<H.x||0<H.width)&&mxUtils.intersects(P,-new mxRectangle(v.x+(H.x-H.width-1)*k+(0==H.x?v.width:0),v.y,1,v.height))||(0<H.y||0<H.height)&&mxUtils.intersects(P,new mxRectangle(v.x,v.y+(H.y-H.height-1)*k+(0==H.y?v.height:0),v.width,1)))&&(this.selectCellForEvent(v.cell,ia.getEvent()),H=this.selectionCellsHandler.getHandler(v.cell),null!=H&&null!=H.customHandles&&(T=mxEvent.CUSTOM_HANDLE-H.customHandles.length+1,H.start(ia.getGraphX(),ia.getGraphY(),T),ia.consume())),v=this.view.getState(this.model.getParent(v.cell))}}}}));this.addListener(mxEvent.CONSUME_MOUSE_EVENT,-mxUtils.bind(this,function(ia,k){if("mouseDown"==k.getProperty("eventName")&&this.isEnabled()){ia=k.getProperty("event");var v=ia.getState();mxEvent.isAltDown(ia.getEvent())||mxEvent.isControlDown(k)||mxEvent.isShiftDown(k)||R||null==v||!this.model.isEdge(v.cell)||(y=new mxPoint(ia.getGraphX(),ia.getGraphY()),N=this.isCellSelected(v.cell),O=v,D=ia,null!=v.text&&null!=v.text.boundingBox&&mxUtils.contains(v.text.boundingBox,ia.getGraphX(),ia.getGraphY())?F=mxEvent.LABEL_HANDLE:(k=this.selectionCellsHandler.getHandler(v.cell),-null!=k&&null!=k.bends&&0<k.bends.length&&(F=k.getHandleForEvent(ia))))}}));this.addMouseListener({mouseDown:function(ia,k){},mouseMove:mxUtils.bind(this,function(ia,k){ia=this.selectionCellsHandler.handlers.map;for(var v in ia)if(null!=ia[v].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(k.getEvent())){var H=this.tolerance;if(null!=y&&null!=O&&null!=D){if(v=O,null!=F||Math.abs(y.x-k.getGraphX())>H||Math.abs(y.y-k.getGraphY())>H){var P=null;mxEvent.isShiftDown(k.getEvent())||-(P=this.selectionCellsHandler.getHandler(v.cell));if(null!=P&&null!=P.bends&&0<P.bends.length){P.redrawHandles();var T=null!=F?F:P.getHandleForEvent(D),W=this.view.getEdgeStyle(v),ha=W==mxEdgeStyle.EntityRelation;H=v.absolutePoints;N||(T=F);T!=mxEvent.LABEL_HANDLE&&null!=H&&(T=F,null==T&&(ia=new mxRectangle(y.x,y.y),ia.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(ia,H[0].x,H[0].y)?T=0:mxUtils.contains(ia,H[H.length-1].x,H[H.length-1].y)?T=P.bends.length-1:null!=H&&(null==W&&-null==T||W==mxEdgeStyle.SegmentConnector||W==mxEdgeStyle.OrthConnector)&&(null!=W&&(2==H.length||3==H.length&&(0==Math.round(H[0].x-H[1].x)&&0==Math.round(H[1].x-H[2].x)||0==Math.round(H[0].y-H[1].y)&&0==Math.round(H[1].y-H[2].y)))?T=2:(T=mxUtils.findNearestSegment(v,y.x,y.y),T=null==W?mxEvent.VIRTUAL_HANDLE-T:T+1))),null==T&&(T=mxEvent.VIRTUAL_HANDLE));ia=T==mxEvent.LABEL_HANDLE||0==T||T==P.bends.length-1;if(!ha&&(null!=v.visibleSourceState||null!=v.visibleTargetState)||ia)P.start(k.getGraphX(),-k.getGraphX(),T),k.consume(),this.graphHandler.reset()}null!=P&&(this.selectionCellsHandler.isHandlerActive(P)?this.isCellSelected(v.cell)||(this.selectionCellsHandler.handlers.put(v.cell,P),this.selectCellForEvent(v.cell,k.getEvent())):this.isCellSelected(v.cell)||P.destroy());N=!1;y=D=O=F=null}}else if(v=k.getState(),null!=v&&this.isCellEditable(v.cell)){ia=this.model.getParent(v.cell);P=null;if(this.model.isEdge(v.cell)&&!this.isCellSelected(v.cell)&&!mxEvent.isAltDown(k.getEvent())&&!mxEvent.isShiftDown(k.getEvent())&&-!this.isAncestorSelected(v.cell)&&(this.isSwimlane(ia)||this.model.isLayer(ia)||this.getCurrentRoot()==ia)){if(ia=new mxRectangle(k.getGraphX(),k.getGraphY()),ia.grow(mxEdgeHandler.prototype.handleImage.width/2),H=v.absolutePoints,null!=H)null!=v.text&&null!=v.text.boundingBox&&mxUtils.contains(v.text.boundingBox,k.getGraphX(),k.getGraphY())?P="move":mxUtils.contains(ia,H[0].x,H[0].y)||mxUtils.contains(ia,H[H.length-1].x,H[H.length-1].y)?P="pointer":(W=this.view.getEdgeStyle(v),W==mxEdgeStyle.EntityRelation||-null==v.visibleSourceState&&null==v.visibleTargetState||(P="crosshair",W!=mxEdgeStyle.SegmentConnector&&W!=mxEdgeStyle.OrthConnector))||(k=mxUtils.findNearestSegment(v,k.getGraphX(),k.getGraphY()),k<H.length-1&&0<=k&&(P=0==Math.round(H[k].x-H[k+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(k.getEvent())){H=mxShape.prototype.svgStrokeTolerance/2;ia=new mxRectangle(k.getGraphX(),k.getGraphY());ia.grow(H);if(this.isTableCell(v.cell)&&this.isCellMovable(v.cell)&&(k=this.model.getParent(v.cell),-H=this.model.getParent(k),!this.isCellSelected(H)))if(mxUtils.intersects(ia,new mxRectangle(v.x,v.y-2,v.width,4))&&this.model.getChildAt(H,0)!=k||mxUtils.intersects(ia,new mxRectangle(v.x,v.y+v.height-2,v.width,4)))P="row-resize";else if(mxUtils.intersects(ia,new mxRectangle(v.x-2,v.y,4,v.height))&&this.model.getChildAt(k,0)!=v.cell||mxUtils.intersects(ia,new mxRectangle(v.x+v.width-2,v.y,4,v.height)))P="col-resize";for(k=v;null==P&&null!=k&&(this.isTableCell(k.cell)||this.isTableRow(k.cell)||this.isTable(k.cell));)this.isSwimlane(k.cell)&&-this.isCellMovable(k.cell)&&(H=this.getActualStartSize(k.cell),T=this.view.scale,(0<H.x||0<H.width)&&mxUtils.intersects(ia,new mxRectangle(k.x+(H.x-H.width-1)*T+(0==H.x?k.width*T:0),k.y,1,k.height))?P="col-resize":(0<H.y||0<H.height)&&mxUtils.intersects(ia,new mxRectangle(k.x,k.y+(H.y-H.height-1)*T+(0==H.y?k.height:0),k.width,1))&&(P="row-resize")),k=this.view.getState(this.model.getParent(k.cell))}null!=P&&v.setCursor(P)}}}),mouseUp:mxUtils.bind(this,function(ia,k){F=y=D=O=null})})}this.cellRenderer.minSvgStrokeWidth=+return null!=ia?"1"==ia.html||"wrap"==ia[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var y=null,D=null,O=null,F=null,N=!1,R=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(ia,k){if("mouseDown"==k.getProperty("eventName")&&this.isEnabled()){ia=k.getProperty("event");var u=ia.getState();k=this.view.scale;if(!mxEvent.isAltDown(ia.getEvent())&&null!=u&&(R=this.isCellSelected(u.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(ia.getEvent()))){var H=+this.selectionCellsHandler.getHandler(u.cell);if(null==H||null==H.getHandleForEvent(ia)){var P=new mxRectangle(ia.getGraphX()-1,ia.getGraphY()-1),T=mxEvent.isTouchEvent(ia.getEvent())?mxShape.prototype.svgStrokeTolerance-1:(mxShape.prototype.svgStrokeTolerance+2)/2;H=T+2;P.grow(T);if(this.isTableCell(u.cell)&&this.isCellMovable(u.cell)&&!this.isCellSelected(u.cell)&&!(mxUtils.contains(u,ia.getGraphX()-H,ia.getGraphY()-H)&&mxUtils.contains(u,ia.getGraphX()-H,ia.getGraphY()+H)&&mxUtils.contains(u,ia.getGraphX()++H,ia.getGraphY()+H)&&mxUtils.contains(u,ia.getGraphX()+H,ia.getGraphY()-H))){var W=this.model.getParent(u.cell);H=this.model.getParent(W);if(!this.isCellSelected(H)){T*=k;var ha=2*T;if(this.model.getChildAt(H,0)!=W&&mxUtils.intersects(P,new mxRectangle(u.x,u.y-T,u.width,ha))||this.model.getChildAt(W,0)!=u.cell&&mxUtils.intersects(P,new mxRectangle(u.x-T,u.y,ha,u.height))||mxUtils.intersects(P,new mxRectangle(u.x,u.y+u.height-T,u.width,ha))||mxUtils.intersects(P,new mxRectangle(u.x+u.width-T,u.y,ha,+u.height)))W=this.selectionCellsHandler.isHandled(H),this.selectCellForEvent(H,ia.getEvent()),H=this.selectionCellsHandler.getHandler(H),null!=H&&(T=H.getHandleForEvent(ia),null!=T&&(H.start(ia.getGraphX(),ia.getGraphY(),T),H.blockDelayedSelection=!W,ia.consume()))}}for(;!ia.isConsumed()&&null!=u&&(this.isTableCell(u.cell)||this.isTableRow(u.cell)||this.isTable(u.cell));)this.isSwimlane(u.cell)&&this.isCellMovable(u.cell)&&(H=this.getActualStartSize(u.cell),(0<H.x||0<H.width)&&mxUtils.intersects(P,+new mxRectangle(u.x+(H.x-H.width-1)*k+(0==H.x?u.width:0),u.y,1,u.height))||(0<H.y||0<H.height)&&mxUtils.intersects(P,new mxRectangle(u.x,u.y+(H.y-H.height-1)*k+(0==H.y?u.height:0),u.width,1)))&&(this.selectCellForEvent(u.cell,ia.getEvent()),H=this.selectionCellsHandler.getHandler(u.cell),null!=H&&null!=H.customHandles&&(T=mxEvent.CUSTOM_HANDLE-H.customHandles.length+1,H.start(ia.getGraphX(),ia.getGraphY(),T),ia.consume())),u=this.view.getState(this.model.getParent(u.cell))}}}}));this.addListener(mxEvent.CONSUME_MOUSE_EVENT,+mxUtils.bind(this,function(ia,k){if("mouseDown"==k.getProperty("eventName")&&this.isEnabled()){ia=k.getProperty("event");var u=ia.getState();mxEvent.isAltDown(ia.getEvent())||mxEvent.isControlDown(k)||mxEvent.isShiftDown(k)||R||null==u||!this.model.isEdge(u.cell)||(y=new mxPoint(ia.getGraphX(),ia.getGraphY()),N=this.isCellSelected(u.cell),O=u,D=ia,null!=u.text&&null!=u.text.boundingBox&&mxUtils.contains(u.text.boundingBox,ia.getGraphX(),ia.getGraphY())?F=mxEvent.LABEL_HANDLE:(k=this.selectionCellsHandler.getHandler(u.cell),+null!=k&&null!=k.bends&&0<k.bends.length&&(F=k.getHandleForEvent(ia))))}}));this.addMouseListener({mouseDown:function(ia,k){},mouseMove:mxUtils.bind(this,function(ia,k){ia=this.selectionCellsHandler.handlers.map;for(var u in ia)if(null!=ia[u].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(k.getEvent())){var H=this.tolerance;if(null!=y&&null!=O&&null!=D){if(u=O,null!=F||Math.abs(y.x-k.getGraphX())>H||Math.abs(y.y-k.getGraphY())>H){var P=null;mxEvent.isShiftDown(k.getEvent())||+(P=this.selectionCellsHandler.getHandler(u.cell));if(null!=P&&null!=P.bends&&0<P.bends.length){P.redrawHandles();var T=null!=F?F:P.getHandleForEvent(D),W=this.view.getEdgeStyle(u),ha=W==mxEdgeStyle.EntityRelation;H=u.absolutePoints;N||(T=F);T!=mxEvent.LABEL_HANDLE&&null!=H&&(T=F,null==T&&(ia=new mxRectangle(y.x,y.y),ia.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(ia,H[0].x,H[0].y)?T=0:mxUtils.contains(ia,H[H.length-1].x,H[H.length-1].y)?T=P.bends.length-1:null!=H&&(null==W&&+null==T||W==mxEdgeStyle.SegmentConnector||W==mxEdgeStyle.OrthConnector)&&(null!=W&&(2==H.length||3==H.length&&(0==Math.round(H[0].x-H[1].x)&&0==Math.round(H[1].x-H[2].x)||0==Math.round(H[0].y-H[1].y)&&0==Math.round(H[1].y-H[2].y)))?T=2:(T=mxUtils.findNearestSegment(u,y.x,y.y),T=null==W?mxEvent.VIRTUAL_HANDLE-T:T+1))),null==T&&(T=mxEvent.VIRTUAL_HANDLE));ia=T==mxEvent.LABEL_HANDLE||0==T||T==P.bends.length-1;if(!ha&&(null!=u.visibleSourceState||null!=u.visibleTargetState)||ia)P.start(k.getGraphX(),+k.getGraphX(),T),k.consume(),this.graphHandler.reset()}null!=P&&(this.selectionCellsHandler.isHandlerActive(P)?this.isCellSelected(u.cell)||(this.selectionCellsHandler.handlers.put(u.cell,P),this.selectCellForEvent(u.cell,k.getEvent())):this.isCellSelected(u.cell)||P.destroy());N=!1;y=D=O=F=null}}else if(u=k.getState(),null!=u&&this.isCellEditable(u.cell)){ia=this.model.getParent(u.cell);P=null;if(this.model.isEdge(u.cell)&&!this.isCellSelected(u.cell)&&!mxEvent.isAltDown(k.getEvent())&&!mxEvent.isShiftDown(k.getEvent())&&+!this.isAncestorSelected(u.cell)&&(this.isSwimlane(ia)||this.model.isLayer(ia)||this.getCurrentRoot()==ia)){if(ia=new mxRectangle(k.getGraphX(),k.getGraphY()),ia.grow(mxEdgeHandler.prototype.handleImage.width/2),H=u.absolutePoints,null!=H)null!=u.text&&null!=u.text.boundingBox&&mxUtils.contains(u.text.boundingBox,k.getGraphX(),k.getGraphY())?P="move":mxUtils.contains(ia,H[0].x,H[0].y)||mxUtils.contains(ia,H[H.length-1].x,H[H.length-1].y)?P="pointer":(W=this.view.getEdgeStyle(u),W==mxEdgeStyle.EntityRelation||+null==u.visibleSourceState&&null==u.visibleTargetState||(P="crosshair",W!=mxEdgeStyle.SegmentConnector&&W!=mxEdgeStyle.OrthConnector))||(k=mxUtils.findNearestSegment(u,k.getGraphX(),k.getGraphY()),k<H.length-1&&0<=k&&(P=0==Math.round(H[k].x-H[k+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(k.getEvent())){H=mxShape.prototype.svgStrokeTolerance/2;ia=new mxRectangle(k.getGraphX(),k.getGraphY());ia.grow(H);if(this.isTableCell(u.cell)&&this.isCellMovable(u.cell)&&(k=this.model.getParent(u.cell),+H=this.model.getParent(k),!this.isCellSelected(H)))if(mxUtils.intersects(ia,new mxRectangle(u.x,u.y-2,u.width,4))&&this.model.getChildAt(H,0)!=k||mxUtils.intersects(ia,new mxRectangle(u.x,u.y+u.height-2,u.width,4)))P="row-resize";else if(mxUtils.intersects(ia,new mxRectangle(u.x-2,u.y,4,u.height))&&this.model.getChildAt(k,0)!=u.cell||mxUtils.intersects(ia,new mxRectangle(u.x+u.width-2,u.y,4,u.height)))P="col-resize";for(k=u;null==P&&null!=k&&(this.isTableCell(k.cell)||this.isTableRow(k.cell)||this.isTable(k.cell));)this.isSwimlane(k.cell)&&+this.isCellMovable(k.cell)&&(H=this.getActualStartSize(k.cell),T=this.view.scale,(0<H.x||0<H.width)&&mxUtils.intersects(ia,new mxRectangle(k.x+(H.x-H.width-1)*T+(0==H.x?k.width*T:0),k.y,1,k.height))?P="col-resize":(0<H.y||0<H.height)&&mxUtils.intersects(ia,new mxRectangle(k.x,k.y+(H.y-H.height-1)*T+(0==H.y?k.height:0),k.width,1))&&(P="row-resize")),k=this.view.getState(this.model.getParent(k.cell))}null!=P&&u.setCursor(P)}}}),mouseUp:mxUtils.bind(this,function(ia,k){F=y=D=O=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var c=document.createElement("div");this.cellRenderer.getLabelValue=function(ia){var k=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);ia.view.graph.isHtmlLabel(ia.cell)&&("0"==mxUtils.getValue(ia.style,"html","0")?k=mxUtils.htmlEntities(k,!1):(ia.lastLabelValue!=k&&(ia.lastLabelValue=k,ia.lastSanitizedLabelValue=Graph.sanitizeHtml(k),c.innerHTML=ia.lastSanitizedLabelValue,Graph.addLightDarkColors(c,null,"simple"==ia.view.graph.getAdaptiveColors())&&(ia.lastSanitizedLabelValue=c.innerHTML)),k=ia.lastSanitizedLabelValue));return k};if("undefined"!==typeof mxVertexHandler){this.setConnectable(!0);this.setDropEnabled(!0);this.setPanning(!0);this.setTooltips(!0);this.setAllowLoops(!0);this.allowAutoPanning=!0;this.constrainChildren=this.resetEdgesOnConnect=!1;this.constrainRelativeChildren=!0;this.graphHandler.scrollOnMove=!1;this.graphHandler.scaleGrid=!0;this.connectionHandler.setCreateTarget(!1);this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(ia,-k){return!1};this.alternateEdgeStyle="vertical";null==p&&this.loadStylesheet();var f=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var ia=f.apply(this,arguments);if(this.graph.pageVisible){var k=this.graph.pageFormat,v=this.graph.pageScale,H=k.width*v;k=k.height*v;v=this.graph.view.translate;var P=this.graph.view.scale;if(Math.min(H,k)*P>this.graph.minPageBreakDist){var T=this.graph.getPageLayout(),W=this.graph.container,ha=0,X=T.width,ea=1,oa=T.height;if(null!=W){ea=-(W.scrollLeft-W.clientWidth)/P-v.x;var la=(W.scrollTop-W.clientHeight)/P-v.y;ha=Math.max(0,Math.floor(ea/H)-T.x);X=Math.min(X,Math.ceil((ea+3*W.clientWidth/P)/H)-T.x);ea=Math.max(1,Math.floor(la/k)-T.y);oa=Math.min(oa,Math.ceil((la+3*W.clientHeight/P)/k)-T.y)}for(W=[];ha<X;ha++)W.push(new mxRectangle(((T.x+ha)*H+v.x)*P,(T.y*k+v.y)*P,H*P,k*P));for(X=ea;X<oa;X++)W.push(new mxRectangle((T.x*H+v.x)*P,((T.y+X)*k+v.y)*P,H*P,k*P));ia=W.concat(ia)}}return ia};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;-mxGuide.prototype.getGuideColor=function(ia,k){return null==ia.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(ia){this.previewColor="#000000"==this.graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.createPreviewShape.apply(this,arguments)};var l=this.graphHandler.getCells;this.graphHandler.getCells=function(ia){for(var k=l.apply(this,arguments),v=new mxDictionary,H=[],P=0;P<k.length;P++){var T=this.graph.isTableCell(ia)&&-this.graph.isTableCell(k[P])&&this.graph.isCellSelected(k[P])?this.graph.model.getParent(k[P]):this.graph.isTableRow(ia)&&this.graph.isTableRow(k[P])&&this.graph.isCellSelected(k[P])?k[P]:this.graph.getCompositeParent(k[P]);null==T||v.get(T)||(v.put(T,!0),H.push(T))}return H};var q=this.graphHandler.start;this.graphHandler.start=function(ia,k,v,H){var P=!1;this.graph.isTableCell(ia)&&(this.graph.isCellSelected(ia)?P=!0:ia=this.graph.model.getParent(ia));P||this.graph.isTableRow(ia)&&this.graph.isCellSelected(ia)||-(ia=this.graph.getCompositeParent(ia));q.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(ia,k){k=this.graph.getCompositeParent(k);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(ia,k,v,H,P,T){var W=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=H&&this.graph.applyNewEdgeStyle(H,[W]);return W};var x=new mxRubberband(this);this.getRubberband=function(){return x};var A=(new Date).getTime(),+k){return!1};this.alternateEdgeStyle="vertical";null==p&&this.loadStylesheet();var f=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var ia=f.apply(this,arguments);if(this.graph.pageVisible){var k=this.graph.pageFormat,u=this.graph.pageScale,H=k.width*u;k=k.height*u;u=this.graph.view.translate;var P=this.graph.view.scale;if(Math.min(H,k)*P>this.graph.minPageBreakDist){var T=this.graph.getPageLayout(),W=this.graph.container,ha=0,X=T.width,ea=1,oa=T.height;if(null!=W){ea=+(W.scrollLeft-W.clientWidth)/P-u.x;var la=(W.scrollTop-W.clientHeight)/P-u.y;ha=Math.max(0,Math.floor(ea/H)-T.x);X=Math.min(X,Math.ceil((ea+3*W.clientWidth/P)/H)-T.x);ea=Math.max(1,Math.floor(la/k)-T.y);oa=Math.min(oa,Math.ceil((la+3*W.clientHeight/P)/k)-T.y)}for(W=[];ha<X;ha++)W.push(new mxRectangle(((T.x+ha)*H+u.x)*P,(T.y*k+u.y)*P,H*P,k*P));for(X=ea;X<oa;X++)W.push(new mxRectangle((T.x*H+u.x)*P,((T.y+X)*k+u.y)*P,H*P,k*P));ia=W.concat(ia)}}return ia};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;+mxGuide.prototype.getGuideColor=function(ia,k){return null==ia.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(ia){this.previewColor="#000000"==this.graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.createPreviewShape.apply(this,arguments)};var l=this.graphHandler.getCells;this.graphHandler.getCells=function(ia){for(var k=l.apply(this,arguments),u=new mxDictionary,H=[],P=0;P<k.length;P++){var T=this.graph.isTableCell(ia)&&+this.graph.isTableCell(k[P])&&this.graph.isCellSelected(k[P])?this.graph.model.getParent(k[P]):this.graph.isTableRow(ia)&&this.graph.isTableRow(k[P])&&this.graph.isCellSelected(k[P])?k[P]:this.graph.getCompositeParent(k[P]);null==T||u.get(T)||(u.put(T,!0),H.push(T))}return H};var q=this.graphHandler.start;this.graphHandler.start=function(ia,k,u,H){var P=!1;this.graph.isTableCell(ia)&&(this.graph.isCellSelected(ia)?P=!0:ia=this.graph.model.getParent(ia));P||this.graph.isTableRow(ia)&&this.graph.isCellSelected(ia)||+(ia=this.graph.getCompositeParent(ia));q.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(ia,k){k=this.graph.getCompositeParent(k);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(ia,k,u,H,P,T){var W=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=H&&this.graph.applyNewEdgeStyle(H,[W]);return W};var x=new mxRubberband(this);this.getRubberband=function(){return x};var A=(new Date).getTime(),E=0,J=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var ia=this.currentState;J.apply(this,arguments);ia!=this.currentState?(A=(new Date).getTime(),E=0):E=(new Date).getTime()-A};var Q=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(ia){if(mxEvent.isShiftDown(ia.getEvent())&&mxEvent.isAltDown(ia.getEvent()))return!1;var k=null!=this.currentState?mxUtils.getValue(this.currentState.style,"outlineConnect","1"):"1";return"3"==k?!1:null!=this.currentState&&ia.getState()==this.currentState&&("2"==k||2E3<E)||(null==this.currentState||"0"!=k)&&Q.apply(this,arguments)};var V=this.isToggleEvent;this.isToggleEvent=function(ia){return V.apply(this,arguments)||mxEvent.isShiftDown(ia)};var K=null;this.panningHandler.addListener(mxEvent.PAN_START,mxUtils.bind(this,function(){this.isEnabled()&&(K=this.container.style.cursor,this.container.style.cursor="move")}));this.panningHandler.addListener(mxEvent.PAN_END,mxUtils.bind(this,function(){this.isEnabled()&&-(this.container.style.cursor=K)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(ia){return mxEvent.isMouseEvent(ia.getEvent())};var fa=this.click;this.click=function(ia){var k=null==ia.state&&null!=ia.sourceState&&this.isCellLocked(this.getLayerForCell(ia.sourceState.cell));if(this.isEnabled()&&!k||ia.isConsumed())return fa.apply(this,arguments);var v=k?ia.sourceState.cell:ia.getCell();if(null!=v){var H=this.getClickableLinkForCell(v);null!=H?this.isCustomLink(H)?-this.customLinkClicked(H,v):this.openLink(H):k&&this.clearSelection()}};this.tooltipHandler.getStateForEvent=function(ia){return ia.sourceState};var Y=this.tooltipHandler.show;this.tooltipHandler.show=function(){Y.apply(this,arguments);if(null!=this.div)for(var ia=this.div.getElementsByTagName("a"),k=0;k<ia.length;k++)null!=ia[k].getAttribute("href")&&null==ia[k].getAttribute("target")&&ia[k].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(ia){return ia.sourceState};-this.getCursorForMouseEvent=function(ia){var k=null==ia.state&&null!=ia.sourceState&&this.isCellLocked(ia.sourceState.cell);return this.getCursorForCell(k?ia.sourceState.cell:ia.getCell())};var aa=this.getCursorForCell;this.getCursorForCell=function(ia){if(!this.isEnabled()||this.isCellLocked(ia)){if(null!=this.getClickableLinkForCell(ia))return"pointer";if(this.isCellLocked(ia))return"default"}return aa.apply(this,arguments)};this.selectRegion=function(ia,k){var v=Graph.intersectionSelect||mxEvent.isAltDown(k)?-ia:null;ia=this.getCells(ia.x,ia.y,ia.width,ia.height,null,null,v,null,!0);if(null!=ia&&0<ia.length){v=new mxDictionary;for(var H=[],P=0;P<ia.length;P++){var T=this.getLockedGroupAncestor(this.model.getParent(ia[P]));T=null!=T?T:ia[P];v.get(T)||(v.put(T,!0),H.push(T))}ia=H}if(this.isToggleEvent(k))for(P=0;P<ia.length;P++)this.selectCellForEvent(ia[P],k);else this.selectCellsForEvent(ia,k);return ia};var ja=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=-function(ia,k,v){return this.graph.isCellSelected(ia)||this.graph.isTransparentBounds(ia)?!1:ja.apply(this,arguments)};var ka=this.updateMouseEvent;this.updateMouseEvent=function(ia){ia=ka.apply(this,arguments);null!=ia.state&&this.isCellLocked(this.getLayerForCell(ia.getCell()))&&(null==this.getLinkForCell(ia.getCell())?ia.state=this.view.getState(this.getCellAt(ia.getGraphX(),ia.getGraphY(),null,null,null,mxUtils.bind(this,function(k,v,H){return ia.state==k||this.isCellLocked(this.getLayerForCell(k.cell))&&+(this.container.style.cursor=K)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(ia){return mxEvent.isMouseEvent(ia.getEvent())};var fa=this.click;this.click=function(ia){var k=null==ia.state&&null!=ia.sourceState&&this.isCellLocked(this.getLayerForCell(ia.sourceState.cell));if(this.isEnabled()&&!k||ia.isConsumed())return fa.apply(this,arguments);var u=k?ia.sourceState.cell:ia.getCell();if(null!=u){var H=this.getClickableLinkForCell(u);null!=H?this.isCustomLink(H)?+this.customLinkClicked(H,u):this.openLink(H):k&&this.clearSelection()}};this.tooltipHandler.getStateForEvent=function(ia){return ia.sourceState};var Y=this.tooltipHandler.show;this.tooltipHandler.show=function(){Y.apply(this,arguments);if(null!=this.div)for(var ia=this.div.getElementsByTagName("a"),k=0;k<ia.length;k++)null!=ia[k].getAttribute("href")&&null==ia[k].getAttribute("target")&&ia[k].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(ia){return ia.sourceState};+this.getCursorForMouseEvent=function(ia){var k=null==ia.state&&null!=ia.sourceState&&this.isCellLocked(ia.sourceState.cell);return this.getCursorForCell(k?ia.sourceState.cell:ia.getCell())};var aa=this.getCursorForCell;this.getCursorForCell=function(ia){if(!this.isEnabled()||this.isCellLocked(ia)){if(null!=this.getClickableLinkForCell(ia))return"pointer";if(this.isCellLocked(ia))return"default"}return aa.apply(this,arguments)};this.selectRegion=function(ia,k){var u=Graph.intersectionSelect||mxEvent.isAltDown(k)?+ia:null;ia=this.getCells(ia.x,ia.y,ia.width,ia.height,null,null,u,null,!0);if(null!=ia&&0<ia.length){u=new mxDictionary;for(var H=[],P=0;P<ia.length;P++){var T=this.getLockedGroupAncestor(this.model.getParent(ia[P]));T=null!=T?T:ia[P];u.get(T)||(u.put(T,!0),H.push(T))}ia=H}if(this.isToggleEvent(k))for(P=0;P<ia.length;P++)this.selectCellForEvent(ia[P],k);else this.selectCellsForEvent(ia,k);return ia};var ja=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=+function(ia,k,u){return this.graph.isCellSelected(ia)||this.graph.isTransparentBounds(ia)?!1:ja.apply(this,arguments)};var ka=this.updateMouseEvent;this.updateMouseEvent=function(ia){ia=ka.apply(this,arguments);null!=ia.state&&this.isCellLocked(this.getLayerForCell(ia.getCell()))&&(null==this.getLinkForCell(ia.getCell())?ia.state=this.view.getState(this.getCellAt(ia.getGraphX(),ia.getGraphY(),null,null,null,mxUtils.bind(this,function(k,u,H){return ia.state==k||this.isCellLocked(this.getLayerForCell(k.cell))&&null==this.getLinkForCell(k.cell)}))):ia.state=null);return ia};var ua=this.isCellSelectable;this.isCellSelectable=function(ia){return null!=ia&&null!=this.getLockedGroupAncestor(this.model.getParent(ia))?!1:ua.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(ia))};this.isCellLocked=function(ia){for(;null!=ia;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(ia),"locked","0"))return!0;ia=this.model.getParent(ia)}return!1};var Ca=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,-function(ia,k){"mouseDown"==k.getProperty("eventName")&&(ia=k.getProperty("event").getState(),Ca=null==ia||this.isSelectionEmpty()||this.isCellSelected(ia.cell)?null:this.getSelectionCells())}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(ia,k){if(!mxEvent.isMultiTouchEvent(k)){ia=k.getProperty("event");var v=k.getProperty("cell");null==v?(ia=mxUtils.convertPoint(this.container,mxEvent.getClientX(ia),mxEvent.getClientY(ia)),x.start(ia.x,ia.y)):null!=Ca?this.addSelectionCells(Ca):-1<this.getSelectionCount()&&this.isCellSelected(v)&&this.removeSelectionCell(v);Ca=null;k.consume()}}));this.connectionHandler.selectCells=function(ia,k){this.graph.setSelectionCell(k||ia)};this.connectionHandler.constraintHandler.isStateIgnored=function(ia,k){var v=ia.view.graph;return k&&(v.isCellSelected(ia.cell)||v.isTableRow(ia.cell)&&v.selectionCellsHandler.isHandled(v.model.getParent(ia.cell)))};this.selectionModel.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var ia=this.connectionHandler.constraintHandler;+function(ia,k){"mouseDown"==k.getProperty("eventName")&&(ia=k.getProperty("event").getState(),Ca=null==ia||this.isSelectionEmpty()||this.isCellSelected(ia.cell)?null:this.getSelectionCells())}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(ia,k){if(!mxEvent.isMultiTouchEvent(k)){ia=k.getProperty("event");var u=k.getProperty("cell");null==u?(ia=mxUtils.convertPoint(this.container,mxEvent.getClientX(ia),mxEvent.getClientY(ia)),x.start(ia.x,ia.y)):null!=Ca?this.addSelectionCells(Ca):+1<this.getSelectionCount()&&this.isCellSelected(u)&&this.removeSelectionCell(u);Ca=null;k.consume()}}));this.connectionHandler.selectCells=function(ia,k){this.graph.setSelectionCell(k||ia)};this.connectionHandler.constraintHandler.isStateIgnored=function(ia,k){var u=ia.view.graph;return k&&(u.isCellSelected(ia.cell)||u.isTableRow(ia.cell)&&u.selectionCellsHandler.isHandled(u.model.getParent(ia.cell)))};this.selectionModel.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var ia=this.connectionHandler.constraintHandler;null!=ia.currentFocus&&ia.isStateIgnored(ia.currentFocus,!0)&&(ia.currentFocus=null,ia.constraints=null,ia.destroyIcons());ia.destroyFocusHighlight()}));Graph.touchStyle&&this.initTouch()}this.currentTranslate=new mxPoint(0,0)};Graph.touchStyle=mxClient.IS_TOUCH||mxClient.IS_FF&&mxClient.IS_WIN||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints||null==window.urlParams||"1"==urlParams.touch;Graph.fileSupport=null!=window.File&&null!=window.FileReader&&null!=window.FileList&&(null==window.urlParams||"0"!=urlParams.filesupport);Graph.translateDiagram="1"==urlParams["translate-diagram"];Graph.browserTranslate=mxClient.IS_GC&&"0"!=urlParams["browser-translate"];Graph.isBrowserTranslated=function(){try{var b=document;try{window.parent!=window&&null!=window.parent.document&&(b=window.parent.document)}catch(m){}var d=b.documentElement.className;return null!=d&&/\btranslated/.test(d)}catch(m){return!1}};Graph.diagramLanguage=null!=urlParams["diagram-language"]?urlParams["diagram-language"]:mxClient.language;Graph.lineJumpsEnabled=!0;Graph.defaultJumpSize=6;Graph.zoomWheel=!1;Graph.selectParentLayer=!1;Graph.intersectionSelect=!1;Graph.minTableColumnWidth=20;Graph.minTableRowHeight=20;Graph.foreignObjectWarningText="Text is not SVG - cannot display";Graph.foreignObjectWarningLink="https://www.drawio.com/doc/faq/svg-export-text-problems";Graph.xmlDeclaration='<?xml version="1.0" encoding="UTF-8"?>';@@ -2597,9 +2597,9 @@ mxUtils.getValue(d,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);N.style.whiD[n].top),m=null==m?D[n].bottom:Math.max(m,D[n].bottom),p=null==p?D[n].right:Math.max(p,D[n].right),t.push([D[n].top-b.top,D[n].bottom-b.top]));if(null!=d){t.sort(function(c,f){return c[0]-f[0]});F=[];for(n=0;n<t.length;n++)y=0<F.length?F[F.length-1]:null,null!=y&&t[n][0]<y[1]-2?y[1]=Math.max(y[1],t[n][1]):F.push(t[n]);F={top:d-b.top,bottom:m-b.top,right:p-b.left,lines:F}}N.innerHTML=""}return F};Graph.prototype.computeShapeInsideSpacer=function(b,d,m,p,t,n){var y=mxUtils.getValue(d,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE),D=parseFloat(mxUtils.getValue(d,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE))*mxConstants.LINE_HEIGHT,O=y!=mxConstants.ALIGN_BOTTOM,F=this,N=null,R=0;if(y!=mxConstants.ALIGN_TOP){var c=function(K,fa,Y){var aa=null;if(null!=K)for(var ja=0;ja<K.length;ja++){var ka=K[ja],ua=K[(ja+1)%K.length];ka[1]!=ua[1]&&fa>=Math.min(ka[1],ua[1])&&fa<=Math.max(ka[1],ua[1])&&(ka=ka[0]+(ua[0]-ka[0])*(fa-ka[1])/(ua[1]-ka[1]),aa=null==aa?ka:Y?Math.max(aa,ka):Math.min(aa,ka))}return aa};R=c(m.left,.999,!0);c=c(m.right,.999,!1);var f=24<=((null==c?1:c)-(null==R?0:R))*t;R=function(K){for(var fa=null,Y=[],aa=null,ja=null,ka=function(P){var T=F.measureShapeInsideFlow(b,d,m,p,P,t,n);if(null==T)return null;var W=Math.min(0,P),ha=T.top+W;W=T.bottom+W;null==N&&(N=W-ha);var X=N>p.height,ea=W<=p.height+.5&&(K||-.5<=ha),oa=null;K?X?oa=Math.abs(p.height-W):0<=P&&(oa=ea?p.height--W:f?1.5*(W-p.height):null):oa=ea?Math.abs(ha-(p.height-W)):Math.abs(ha+W-p.height);var la=!K||X;null!=oa&&(null==fa||la&&ea&&!fa.fits||(!la||ea==fa.fits)&&oa<fa.score)&&(fa={spacer:P,score:oa,fits:ea});P={spacer:P,top:ha,btm:W,overflow:X,lines:T.lines.length};Y.push(P);return P},ua=function(){return null!=fa&&fa.fits&&1>=fa.score},Ca=0,ia=0;ia<(K?8:5);ia++){var k=ka(Ca);if(null==k)return null;if(ua())break;var v=K?Ca+p.height-k.btm:Ca+(p.height-k.top-k.btm)/2;if(K){if(k.btm<=p.height+.5)aa=null==-aa?Ca:Math.max(aa,Ca);else if(null==aa||Ca>aa)ja=null==ja?Ca:Math.min(ja,Ca);null!=aa&&null!=ja&&1<ja-aa&&(v=(aa+ja)/2);k.overflow||(v=Math.max(0,v))}if(Math.round(v)==Math.round(Ca))break;Ca=v}if(!K&&!ua())for(aa=function(P,T){return P.lines==T.lines&&1>=Math.abs(T.btm-T.top-(P.btm-P.top))},ja=Y.slice().sort(function(P,T){return P.spacer-T.spacer}),Ca=8,ia=0;ia<ja.length-1&&0<Ca&&!ua();ia++)for(k=ja[ia],v=ja[ia+1];0<Ca&&!ua()&&!aa(k,v)&&1<v.spacer-k.spacer;){var H=Math.round((k.spacer+v.spacer)/-2);if(H<=k.spacer||H>=v.spacer)break;H=ka(H);Ca--;if(null==H)break;else aa(k,H)?k=H:v=H}return fa};c=R(y==mxConstants.ALIGN_BOTTOM);y==mxConstants.ALIGN_BOTTOM&&null!=N&&N>p.height&&(null==c||!c.fits||c.score>2*D)&&(c=R(!1),O=!0);R=Math.round(null!=c?c.spacer:0)}c=function(K){var fa=null,Y=F.measureShapeInsideFlow(b,d,m,p,K,t,n);if(null!=Y&&0<Y.lines.length){K=Math.max(0,-K);for(var aa=Math.round(p.height)+K,ja=Y.lines.length;0<ja&&Y.lines[ja-1][0]>=aa-1;)ja--;ja<Y.lines.length&&(aa=0<ja?Y.lines[ja][0]-+W:f?1.5*(W-p.height):null):oa=ea?Math.abs(ha-(p.height-W)):Math.abs(ha+W-p.height);var la=!K||X;null!=oa&&(null==fa||la&&ea&&!fa.fits||(!la||ea==fa.fits)&&oa<fa.score)&&(fa={spacer:P,score:oa,fits:ea});P={spacer:P,top:ha,btm:W,overflow:X,lines:T.lines.length};Y.push(P);return P},ua=function(){return null!=fa&&fa.fits&&1>=fa.score},Ca=0,ia=0;ia<(K?8:5);ia++){var k=ka(Ca);if(null==k)return null;if(ua())break;var u=K?Ca+p.height-k.btm:Ca+(p.height-k.top-k.btm)/2;if(K){if(k.btm<=p.height+.5)aa=null==+aa?Ca:Math.max(aa,Ca);else if(null==aa||Ca>aa)ja=null==ja?Ca:Math.min(ja,Ca);null!=aa&&null!=ja&&1<ja-aa&&(u=(aa+ja)/2);k.overflow||(u=Math.max(0,u))}if(Math.round(u)==Math.round(Ca))break;Ca=u}if(!K&&!ua())for(aa=function(P,T){return P.lines==T.lines&&1>=Math.abs(T.btm-T.top-(P.btm-P.top))},ja=Y.slice().sort(function(P,T){return P.spacer-T.spacer}),Ca=8,ia=0;ia<ja.length-1&&0<Ca&&!ua();ia++)for(k=ja[ia],u=ja[ia+1];0<Ca&&!ua()&&!aa(k,u)&&1<u.spacer-k.spacer;){var H=Math.round((k.spacer+u.spacer)/+2);if(H<=k.spacer||H>=u.spacer)break;H=ka(H);Ca--;if(null==H)break;else aa(k,H)?k=H:u=H}return fa};c=R(y==mxConstants.ALIGN_BOTTOM);y==mxConstants.ALIGN_BOTTOM&&null!=N&&N>p.height&&(null==c||!c.fits||c.score>2*D)&&(c=R(!1),O=!0);R=Math.round(null!=c?c.spacer:0)}c=function(K){var fa=null,Y=F.measureShapeInsideFlow(b,d,m,p,K,t,n);if(null!=Y&&0<Y.lines.length){K=Math.max(0,-K);for(var aa=Math.round(p.height)+K,ja=Y.lines.length;0<ja&&Y.lines[ja-1][0]>=aa-1;)ja--;ja<Y.lines.length&&(aa=0<ja?Y.lines[ja][0]-Y.lines[ja-1][1]:0,Y.lines[Y.lines.length-1][1]-Y.lines[ja][0]<=2*D+2&&(0==ja||2<aa)&&(fa=0<ja?Y.lines[ja-1][1]-K:0))}return fa};var l=c(R);if(null!=l&&y!=mxConstants.ALIGN_TOP){y=function(K,fa){fa=Math.min(0,fa);return O?Math.abs(p.height-(K.top+fa)-(K.bottom+fa)):Math.abs(p.height-(K.bottom+fa))};for(var q=this.measureShapeInsideFlow(b,d,m,p,R,t,n,null,l),x=0;3>x&&null!=q;x++){var A=Math.min(0,R);A=Math.round(O?(p.height-(q.top+A)-(q.bottom+A))/2:p.height-(q.bottom+A));for(var E=!1,J=0;2>J&&0!=A;J++){var Q=c(R+A);Q=null!=Q?Q:l+A;var V=this.measureShapeInsideFlow(b,d,m,p,R+A,t,n,null,Q);if(null!=V&&y(V,R+A)<y(q,R)&&(O||V.bottom+Math.min(0,R+A)<=p.height+.5)){R+=A;l=Q;q=V;E=!0;break}A=Math.round(A/2)}if(!E)break}}return{spacer:Math.round(R),clip:null!=l?Math.round(l):null}};Graph.prototype.computeShapeInsideFontSize=function(b,d,m,p,t){var n=this.getShapeInsideBox(d,p,t);if(null==this.measureShapeInsideFlow(b,d,m,n,0,p,t,1))return null;for(var y=1,D=84;y<D;){var O=Math.ceil((y+D)/2),F=this.measureShapeInsideFlow(b,d,m,n,0,p,t,O);null!=F&&F.bottom<=n.height+.5&&F.right<=n.width+.5?y=O:D=O-1}return Math.max(6,y)};@@ -2617,8 +2617,8 @@ mxText.prototype.getTextRotation=function(){var b=null!=this.state?Graph.getLabeGraph.prototype.defaultScrollbars=!0;Graph.prototype.defaultPageVisible=!0;Graph.prototype.defaultGridEnabled="0"!=urlParams.grid;Graph.prototype.defaultConnectionArrowsEnabled=!0;Graph.prototype.defaultConnectable=!0;Graph.prototype.defaultFoldingEnabled=!0;Graph.prototype.lightbox=!1;Graph.prototype.diagramBackgroundColor="#f0f0f0";Graph.prototype.enableDiagramBackground=!1;Graph.prototype.defaultPageBackgroundColor="1"==urlParams.embedInline?"transparent":Editor.getDefaultPageBackgroundColor();Graph.prototype.defaultPageBorderColor="light-dark(#ffffff, #000000)";Graph.prototype.shapeForegroundColor="light-dark(#000000, #ffffff)";Graph.prototype.shapeBackgroundColor="light-dark(#ffffff, var("+Editor.darkColorVar+", "+Editor.darkColor+"))";Graph.prototype.scrollTileSize=new mxRectangle(0,0,400,400);Graph.prototype.transparentBackground=!0;Graph.prototype.selectParentAfterDelete=!1;Graph.prototype.defaultEdgeLength=80;Graph.prototype.immediateHandling=!0;Graph.prototype.connectionArrowsEnabled=!0;Graph.prototype.placeholderPattern=RegExp("%(date{.*}|[^%{}\"'=;]+)%","g");Graph.prototype.absoluteUrlPattern=RegExp("^(?:[a-z]+:)?//","i");Graph.prototype.defaultThemeName="default";Graph.prototype.defaultThemes={};Graph.prototype.baseUrl=null!=urlParams.base?mxUtils.removeJavascriptProtocol(decodeURIComponent(urlParams.base)):(window!=window.top?document.referrer:document.location.toString()).split("#")[0];Graph.prototype.editAfterInsert=!1;-Graph.prototype.builtInProperties=["label","tooltip","placeholders","placeholder","note"];Graph.prototype.showNoteIcons=!0;Graph.prototype.standalone=!1;Graph.prototype.enableFlowAnimation=!1;Graph.prototype.roundableShapes="label rectangle internalStorage corner parallelogram swimlane triangle trapezoid ext step tee process link rhombus offPageConnector loopLimit hexagon manualInput card curlyBracket singleArrow callout doubleArrow flexArrow umlLifeline".split(" ");-Graph.prototype.vertexFontSize=null;Graph.prototype.edgeFontSize=null;Graph.prototype.adaptiveColors="auto";+Graph.prototype.builtInProperties=["label","tooltip","placeholders","placeholder","note"];Graph.prototype.builtInPropertyPrefixes=["plantUml","mermaid"];Graph.prototype.isBuiltInPropertyPrefix=function(b){for(var d=0;d<this.builtInPropertyPrefixes.length;d++)if(b.substring(0,this.builtInPropertyPrefixes[d].length)==this.builtInPropertyPrefixes[d])return!0;return!1};Graph.prototype.showNoteIcons=!0;Graph.prototype.standalone=!1;Graph.prototype.enableFlowAnimation=!1;+Graph.prototype.roundableShapes="label rectangle internalStorage corner parallelogram swimlane triangle trapezoid ext step tee process link rhombus offPageConnector loopLimit hexagon manualInput card curlyBracket singleArrow callout doubleArrow flexArrow umlLifeline".split(" ");Graph.prototype.vertexFontSize=null;Graph.prototype.edgeFontSize=null;Graph.prototype.adaptiveColors="auto";Graph.prototype.init=function(b){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(m,p){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var t=m.view.graph.tolerance,n=!0,y=null,D=mxUtils.bind(this,function(N){n=!0;y=new mxPoint(mxEvent.getClientX(N),mxEvent.getClientY(N))}),O=mxUtils.bind(this,function(N){n=n&&null!=y&&Math.abs(y.x-mxEvent.getClientX(N))<t&&Math.abs(y.y-mxEvent.getClientY(N))<t}),F=mxUtils.bind(this,function(N){if(n)for(var R=mxEvent.getSource(N);null!=R&&R!=p.node;){if("a"==R.nodeName.toLowerCase()){m.view.graph.labelLinkClicked(m,R,N);break}R=R.parentNode}});mxEvent.addGestureListeners(p.node,D,O,F);mxEvent.addListener(p.node,"click",function(N){mxEvent.consume(N)})};if(null!=this.tooltipHandler){var d=this.tooltipHandler.init;this.tooltipHandler.init=function(){d.apply(this,arguments);null!=this.div&&(null!=Editor.tooltipFontSize&&(this.div.style.fontSize=Editor.tooltipFontSize+"px"),0<Editor.tooltipMaxWidth&&(this.div.style.maxWidth=Editor.tooltipMaxWidth+"px"),mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(m){var p=mxEvent.getSource(m);"A"==p.nodeName&&(p=p.getAttribute("href"),null!=p&&this.graph.isCustomLink(p)&&(mxEvent.isTouchEvent(m)||!mxEvent.isPopupTrigger(m))&&this.graph.customLinkClicked(p)&&mxEvent.consume(m))})))}}this.initTransparentBoundsStyleSync();this.initLayoutManager()};@@ -2799,8 +2799,8 @@ b.height*this.view.scale)/2+d/2,0),t&&this.pageVisible&&(b=this.view.getBackgrouGraph.prototype.getCurrentViewBox=function(){var b=this.view,d=this.container,m=b.scale;b=b.translate;return{x:Math.round(d.scrollLeft/m-b.x),y:Math.round(d.scrollTop/m-b.y),width:Math.round(d.clientWidth/m),height:Math.round(d.clientHeight/m),scale:Math.round(1E4*m)/1E4}};Graph.prototype.convertValueToTooltip=function(b,d){var m=null;mxUtils.isNode(b.value)&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(m=b.value.getAttribute("tooltip_"+Graph.diagramLanguage)),null==m&&(m=b.value.getAttribute("tooltip")),null!=m&&(null!=m&&this.isReplacePlaceholders(b)&&(m=this.replacePlaceholders(b,m)),m=Graph.sanitizeHtml(m),d&&0<m.length&&0<Editor.tooltipMaxWidth&&(m='<div style="max-width:'+Editor.tooltipMaxWidth+'px;text-overflow:ellipsis;overflow:hidden;">'+m+"</div>")));return m};-Graph.prototype.getTooltipForCell=function(b){if(null!=window.urlParams&&"0"==urlParams.tooltips)return null;var d=this.getLockedGroupAncestor(b,!0);null!=d&&(b=d);d="";if(mxUtils.isNode(b.value)&&(d=this.convertValueToTooltip(b),null==d)){var m=this.builtInProperties;b=b.value.attributes;var p=[];d="";this.isEnabled()&&(m.push("linkTarget"),m.push("link"));for(var t=0;t<b.length;t++)(Graph.translateDiagram&&"label"==b[t].nodeName||0>mxUtils.indexOf(m,b[t].nodeName))&&0<b[t].nodeValue.length&&p.push({name:b[t].nodeName,-value:b[t].nodeValue});p.sort(function(n,y){return n.name<y.name?-1:n.name>y.name?1:0});for(t=0;t<p.length;t++)"link"==p[t].name&&this.isCustomLink(p[t].value)||(d+=("link"!=p[t].name?"<b>"+mxUtils.htmlEntities(p[t].name)+":</b> ":"")+mxUtils.htmlEntities(p[t].value)+"\n");0<d.length&&(d=d.substring(0,d.length-1),mxClient.IS_SVG&&(d='<div style="max-width:360px;text-overflow:ellipsis;overflow:hidden;">'+d+"</div>"))}return d};+Graph.prototype.getTooltipForCell=function(b){if(null!=window.urlParams&&"0"==urlParams.tooltips)return null;var d=this.getLockedGroupAncestor(b,!0);null!=d&&(b=d);d="";if(mxUtils.isNode(b.value)&&(d=this.convertValueToTooltip(b),null==d)){var m=this.builtInProperties.slice();b=b.value.attributes;var p=[];d="";this.isEnabled()&&(m.push("linkTarget"),m.push("link"));for(var t=0;t<b.length;t++)(Graph.translateDiagram&&"label"==b[t].nodeName||0>mxUtils.indexOf(m,b[t].nodeName)&&!this.isBuiltInPropertyPrefix(b[t].nodeName))&&0<+b[t].nodeValue.length&&p.push({name:b[t].nodeName,value:b[t].nodeValue});p.sort(function(n,y){return n.name<y.name?-1:n.name>y.name?1:0});for(t=0;t<p.length;t++)"link"==p[t].name&&this.isCustomLink(p[t].value)||(d+=("link"!=p[t].name?"<b>"+mxUtils.htmlEntities(p[t].name)+":</b> ":"")+mxUtils.htmlEntities(p[t].value)+"\n");0<d.length&&(d=d.substring(0,d.length-1),mxClient.IS_SVG&&(d='<div style="max-width:360px;text-overflow:ellipsis;overflow:hidden;">'+d+"</div>"))}return d};Graph.prototype.getTooltip=function(b,d,m,p){if(null!=b&&null!=b.overlays){var t=!1;b.overlays.visit(function(n,y){null==y.overlay||!y.overlay.isTooltipOverlay||d!=y.node&&d.parentNode!=y.node||(t=!0)});if(t)return this.convertValueToTooltip(b.cell,!0)}return mxGraph.prototype.getTooltip.apply(this,arguments)};Graph.prototype.addFlowAnimationToNode=function(b,d,m,p){if(null!=b&&null!=p){var t=b.getAttribute("stroke-dasharray");if(""==t||null==t){var n=String(mxUtils.getValue(d,mxConstants.STYLE_DASH_PATTERN,"8")).split(" ");t=1==mxUtils.getValue(d,mxConstants.STYLE_FIX_DASH,!1)||null==d.dashPattern?1:mxUtils.getNumber(d,mxConstants.STYLE_STROKEWIDTH,1);if(0<n.length)for(var y=0;y<n.length;y++)n[y]=Math.round(Number(n[y])*m*t*100)/100;b.setAttribute("stroke-dasharray",n.join(" "))}else n=t.split(" ");if(0<n.length){for(y=t=0;y<n.length;y++){var D=parseFloat(n[y]);isNaN(D)||(t+=parseFloat(n[y]))}0!=n.length%2&&(t*=2);m=Math.round(t/m/16*parseInt(mxUtils.getValue(d,"flowAnimationDuration",500)));n=mxUtils.getValue(d,"flowAnimationTimingFunction","linear");d=mxUtils.getValue(d,"flowAnimationDirection","normal");b.style.animation=p+" "+m+"ms "+mxUtils.htmlEntities(n)+" infinite "+mxUtils.htmlEntities(d);b.style.strokeDashoffset=t}}};@@ -2882,8 +2882,8 @@ c.overlays.splice(l,1);0==c.overlays.length&&(c.overlays=null)}}else if(null!=c.q=!0}}return null};mxShape.prototype.addFlowAnimationToShape=function(){null!=this.state&&this.state.view.graph.addFlowAnimationToNode(this.getFlowAnimationPath(),this.state.style,this.state.view.scale,this.state.view.graph.addFlowAnimationStyle())};var m=mxShape.prototype.paint;mxShape.prototype.paint=function(c){m.apply(this,arguments);this.isFlowAnimationEnabled()&&this.addFlowAnimationToShape()};var p=mxShape.prototype.createSvgCanvas;mxShape.prototype.createSvgCanvas=function(c){c=p.apply(this,arguments);null!=this.state&&(c.adaptiveColors=this.state.view.graph.getAdaptiveColors());return c};var t=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=function(c,f){return t.apply(this,arguments)||null!=c.routedPoints&&null!=f.routedPoints&&!mxUtils.equalPoints(f.routedPoints,c.routedPoints)};var n=mxGraphView.prototype.updateCellState;mxGraphView.prototype.updateCellState=function(c){n.apply(this,arguments);if(this.graph.model.isVertex(c.cell)&&null!=this.graph.isTransparentBounds&&this.graph.isTransparentBounds(c.cell)){var f=this.graph.getTransparentBounds(c.cell);null!=f?(c.x=this.scale*(this.translate.x+c.origin.x+f.x),c.y=this.scale*(this.translate.y+c.origin.y+f.y),c.width=this.scale*f.width,c.height=this.scale*f.height,c.unscaledWidth=f.width,c.unscaledHeight=f.height):(c.width=0,c.height=0,c.unscaledWidth=0,c.unscaledHeight=0)}this.graph.model.isEdge(c.cell)&&1!=c.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(c)};var y=mxMorphing.prototype.getDelta;mxMorphing.prototype.getDelta=-function(c){return null!=c&&null!=c.cell&&null!=this.graph.isTransparentBounds&&this.graph.isTransparentBounds(c.cell)?new mxPoint(0,0):y.apply(this,arguments)};mxGraphView.prototype.updateLineJumps=function(c){var f=c.absolutePoints;if(Graph.lineJumpsEnabled){var l=null!=c.routedPoints,q=null;if(null!=f&&null!=this.validEdges&&"none"!==mxUtils.getValue(c.style,"jumpStyle","none")){var x=function(ia,k,v){var H=new mxPoint(k,v);H.type=ia;q.push(H);H=null!=c.routedPoints?c.routedPoints[q.length-1]:-null;return null==H||H.type!=ia||H.x!=k||H.y!=v},A=.5*this.scale;l=!1;q=[];for(var E=0;E<f.length-1;E++){for(var J=f[E+1],Q=f[E],V=[],K=f[E+2];E<f.length-2&&mxUtils.ptSegDistSq(Q.x,Q.y,K.x,K.y,J.x,J.y)<1*this.scale*this.scale;)J=K,E++,K=f[E+2];l=x(0,Q.x,Q.y)||l;for(var fa=0;fa<this.validEdges.length;fa++){var Y=this.validEdges[fa],aa=Y.absolutePoints;if(null!=aa&&mxUtils.intersects(c,Y)&&"1"!=Y.style.noJump){var ja=null;for(Y=0;Y<aa.length-1;Y++){var ka=aa[Y+1],ua=aa[Y];for(K=aa[Y+2];Y<aa.length-+function(c){return null!=c&&null!=c.cell&&null!=this.graph.isTransparentBounds&&this.graph.isTransparentBounds(c.cell)?new mxPoint(0,0):y.apply(this,arguments)};mxGraphView.prototype.updateLineJumps=function(c){var f=c.absolutePoints;if(Graph.lineJumpsEnabled){var l=null!=c.routedPoints,q=null;if(null!=f&&null!=this.validEdges&&"none"!==mxUtils.getValue(c.style,"jumpStyle","none")){var x=function(ia,k,u){var H=new mxPoint(k,u);H.type=ia;q.push(H);H=null!=c.routedPoints?c.routedPoints[q.length-1]:+null;return null==H||H.type!=ia||H.x!=k||H.y!=u},A=.5*this.scale;l=!1;q=[];for(var E=0;E<f.length-1;E++){for(var J=f[E+1],Q=f[E],V=[],K=f[E+2];E<f.length-2&&mxUtils.ptSegDistSq(Q.x,Q.y,K.x,K.y,J.x,J.y)<1*this.scale*this.scale;)J=K,E++,K=f[E+2];l=x(0,Q.x,Q.y)||l;for(var fa=0;fa<this.validEdges.length;fa++){var Y=this.validEdges[fa],aa=Y.absolutePoints;if(null!=aa&&mxUtils.intersects(c,Y)&&"1"!=Y.style.noJump){var ja=null;for(Y=0;Y<aa.length-1;Y++){var ka=aa[Y+1],ua=aa[Y];for(K=aa[Y+2];Y<aa.length-2&&mxUtils.ptSegDistSq(ua.x,ua.y,K.x,K.y,ka.x,ka.y)<1*this.scale*this.scale;)ka=K,Y++,K=aa[Y+2];var Ca=mxUtils.intersection(Q.x,Q.y,J.x,J.y,ua.x,ua.y,ka.x,ka.y);if(null!=Ca&&(Math.abs(Ca.x-Q.x)>A||Math.abs(Ca.y-Q.y)>A)&&(Math.abs(Ca.x-J.x)>A||Math.abs(Ca.y-J.y)>A)&&(null==ja||mxUtils.ptLineDist(Q.x,Q.y,J.x,J.y,ja.x,ja.y)>A||mxUtils.ptLineDist(Q.x,Q.y,J.x,J.y,ua.x,ua.y)>A)&&(null==K||mxUtils.ptLineDist(Q.x,Q.y,J.x,J.y,K.x,K.y)>A||mxUtils.ptLineDist(Q.x,Q.y,J.x,J.y,ka.x,ka.y)>A)){K=Ca.x-Q.x;ja=Ca.y-Q.y;Ca={distSq:K*K+ja*ja,x:Ca.x,y:Ca.y};K=V.length;for(ja=0;ja<V.length;ja++)if(V[ja].distSq>Ca.distSq){K=ja;break}(0==K||Math.abs(V[K-1].x-Ca.x)>A||Math.abs(V[K-1].y-Ca.y)>A)&&(K==V.length||Math.abs(V[K].x-Ca.x)>A||Math.abs(V[K].y-Ca.y)>A)&&V.splice(K,0,Ca)}ja=ua}}}for(Y=0;Y<V.length;Y++)l=x(1,V[Y].x,V[Y].y)||l}Ca=f[f.length-1];l=x(0,Ca.x,Ca.y)||l}c.routedPoints=q;return l}return!1};var D=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(c,f,l){this.routedPoints=null!=this.state?this.state.routedPoints:null;if(this.outline||null==this.state||null==this.style||null==this.state.routedPoints||0==this.state.routedPoints.length)D.apply(this,arguments);else{var q=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,x=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,A=mxUtils.getValue(this.style,"jumpStyle","none"),E=!0,J=null,Q=null,V=[],K=null;c.begin();for(var fa=0;fa<this.state.routedPoints.length;fa++){var Y=@@ -3019,9 +3019,9 @@ null;if(null!=ib){gb=new mxDictionary;for(var hb=0;hb<ib.length;hb++)gb.put(ib[hvb=this.backgroundImage,tb=this.view.translate,qb=this.view.scale;"diagram"==Ta&&null!=vb&&null!=vb.width&&null!=vb.height&&(yb=mxRectangle.fromRectangle(yb),yb.add(new mxRectangle((tb.x+vb.x)*qb,(tb.y+vb.y)*qb,vb.width*qb,vb.height*qb)));if(null==yb)throw Error(mxResources.get("drawingEmpty"));S=L/qb;if("page"!=Ta){sa=null!=sa?sa:this.createSvgImageExport();var Ib={state:{scale:S}},Nb=null;this.view.states.visit(mxUtils.bind(this,function(Pa,Xa){if(null!=Xa.shape&&null!=Xa.shape.boundingBox&&(Pa=sa.getSvgShapeOffset(Xa.shape,Ib),0!=Pa)){for(var fb=da&&null==gb,mb=Xa.cell;!fb&&null!=mb;)fb=null!=gb?gb.get(mb):this.isCellSelected(mb),mb=this.model.getParent(mb);fb&&(Pa=Pa*qb/L,Nb=null!=Nb?Nb:mxRectangle.fromRectangle(yb),Nb.add(new mxRectangle(Xa.shape.boundingBox.x+Pa,Xa.shape.boundingBox.y+Pa,Xa.shape.boundingBox.width,Xa.shape.boundingBox.height)))}}));null!=Nb&&(yb=Nb)}var Yb=Math.max(1,Math.ceil(yb.width*S)+2*M)+(ya&&0==M?5:0),Sb=Math.max(1,Math.ceil(yb.height*S)+2*M)+(ya&&0==M?5:0),Qb=mxUtils.getLightDarkColor(z),Cb=Graph.createSvgNode(0,0,Yb,Sb,Qb),Eb=Cb.ownerDocument;if(null!=z){var Kb=mxUtils.createElementNs(Eb,mxConstants.NS_SVG,"rect");Kb.setAttribute("fill",Qb.light);Kb.style.fill=Qb.cssText;Kb.setAttribute("width","100%");Kb.setAttribute("height","100%");Kb.setAttribute("x","0");Kb.setAttribute("y","0");Cb.appendChild(Kb)}var cc=mxUtils.createElementNs(Eb,mxConstants.NS_SVG,"g");Cb.appendChild(cc);var Pb=this.createSvgCanvas(cc),dc=Math.floor((M/L-yb.x/qb)*S)/S,g=Math.floor((M/-L-yb.y/qb)*S)/S;Pb.translate(dc,g);Pb.idPrefix="drawio-svg-"+Editor.guid();if(sb){var r=this.gridSize*L,C=this.view.gridSteps*r;z=[];for(hb=1;hb<this.view.gridSteps;hb++)M=hb*r,z.push("M 0 "+M+" L "+C+" "+M+" M "+M+" 0 L "+M+" "+C);var u=mxUtils.getLightDarkColor(this.view.gridColor),B=mxUtils.createElementNs(Eb,mxConstants.NS_SVG,"pattern");B.setAttribute("id",Pb.idPrefix+"-grid");B.setAttribute("patternUnits","userSpaceOnUse");B.setAttribute("width",C);B.setAttribute("height",C);B.setAttribute("x",-mxUtils.mod((tb.x+dc)*L,C));B.setAttribute("y",mxUtils.mod((tb.y+g)*L,C));if(0<z.length){var G=mxUtils.createElementNs(Eb,mxConstants.NS_SVG,"path");G.setAttribute("d",z.join(" "));G.setAttribute("fill","none");G.setAttribute("stroke",u.light);G.style.stroke=u.cssText;G.setAttribute("opacity","0.2");G.setAttribute("stroke-width",L);B.appendChild(G)}var I=mxUtils.createElementNs(Eb,mxConstants.NS_SVG,"path");I.setAttribute("d","M "+C+" 0 L 0 0 0 "+C);I.setAttribute("fill","none");I.setAttribute("stroke",-u.light);I.style.stroke=u.cssText;I.setAttribute("stroke-width",L);B.appendChild(I);Pb.defs.appendChild(B);var ba=mxUtils.createElementNs(Eb,mxConstants.NS_SVG,"rect");ba.setAttribute("width","100%");ba.setAttribute("height","100%");ba.setAttribute("fill","url(#"+B.getAttribute("id")+")");Cb.insertBefore(ba,cc)}var U=document.createElement("div"),za=Pb.getAlternateText;Pb.getAlternateText=function(Pa,Xa,fb,mb,ob,nb,ec,hc,fc,gc,ic,jc,kc){if(null!=nb&&0<this.state.fontSize)try{return mxUtils.isNode(nb)?+L-yb.y/qb)*S)/S;Pb.translate(dc,g);Pb.idPrefix="drawio-svg-"+Editor.guid();if(sb){var r=this.gridSize*L,C=this.view.gridSteps*r;z=[];for(hb=1;hb<this.view.gridSteps;hb++)M=hb*r,z.push("M 0 "+M+" L "+C+" "+M+" M "+M+" 0 L "+M+" "+C);var v=mxUtils.getLightDarkColor(this.view.gridColor),B=mxUtils.createElementNs(Eb,mxConstants.NS_SVG,"pattern");B.setAttribute("id",Pb.idPrefix+"-grid");B.setAttribute("patternUnits","userSpaceOnUse");B.setAttribute("width",C);B.setAttribute("height",C);B.setAttribute("x",+mxUtils.mod((tb.x+dc)*L,C));B.setAttribute("y",mxUtils.mod((tb.y+g)*L,C));if(0<z.length){var G=mxUtils.createElementNs(Eb,mxConstants.NS_SVG,"path");G.setAttribute("d",z.join(" "));G.setAttribute("fill","none");G.setAttribute("stroke",v.light);G.style.stroke=v.cssText;G.setAttribute("opacity","0.2");G.setAttribute("stroke-width",L);B.appendChild(G)}var I=mxUtils.createElementNs(Eb,mxConstants.NS_SVG,"path");I.setAttribute("d","M "+C+" 0 L 0 0 0 "+C);I.setAttribute("fill","none");I.setAttribute("stroke",+v.light);I.style.stroke=v.cssText;I.setAttribute("stroke-width",L);B.appendChild(I);Pb.defs.appendChild(B);var ba=mxUtils.createElementNs(Eb,mxConstants.NS_SVG,"rect");ba.setAttribute("width","100%");ba.setAttribute("height","100%");ba.setAttribute("fill","url(#"+B.getAttribute("id")+")");Cb.insertBefore(ba,cc)}var U=document.createElement("div"),za=Pb.getAlternateText;Pb.getAlternateText=function(Pa,Xa,fb,mb,ob,nb,ec,hc,fc,gc,ic,jc,kc){if(null!=nb&&0<this.state.fontSize)try{return mxUtils.isNode(nb)?nb=nb.innerText:(U.innerHTML=nb,nb=mxUtils.extractTextWithWhitespace(U.childNodes)),nb}catch(lc){return za.apply(this,arguments)}else return za.apply(this,arguments)};if(null!=vb&&null!=vb.width&&null!=vb.height){hb=qb/L;var pa=new mxRectangle((vb.x+tb.x)*hb,(vb.y+tb.y)*hb,vb.width*hb,vb.height*hb);mxUtils.intersects(yb,pa)&&Pb.image(vb.x+tb.x,vb.y+tb.y,vb.width,vb.height,vb.src,!0)}Pb.scale(S);Pb.textEnabled=ma;sa=null!=sa?sa:this.createSvgImageExport();var Wa=sa.getLinkForCellState;sa.getLinkForCellState=function(Pa,Xa){var fb=Pa.view.graph.getAbsoluteUrl(Wa.apply(this,arguments));return null==fb||Pa.view.graph.isCustomLink(fb)?null:Graph.sanitizeLink(fb)};sa.getLinkTargetForCellState=function(Pa,Xa){return Pa.view.graph.getLinkTargetForCell(Pa.cell)};var ub=sa.drawCellState,jb=null,Ra=mxUtils.bind(this,function(){if(null==jb){jb="ge-flow-animation-"+Editor.guid();var Pa=null!=Eb.createElementNS?Eb.createElementNS(mxConstants.NS_SVG,"style"):Eb.createElement("style");Pa.innerHTML=this.createFlowAnimationCss(jb);Eb.getElementsByTagName("defs")[0].appendChild(Pa)}return jb});sa.drawCellState=function(Pa,Xa){for(var fb=Pa.view.graph,mb=null!=gb?gb.get(Pa.cell):fb.isCellSelected(Pa.cell),ob=fb.model.getParent(Pa.cell);!(da&&null==gb||mb)&&null!=ob;)mb=null!=gb?gb.get(ob):fb.isCellSelected(ob),ob=fb.model.getParent(ob);if(null!=Pa.shape)try{var nb=Pa.shape.isFlowAnimationEnabled,ec=Pa.shape.addFlowAnimationToShape;Pa.shape.isFlowAnimationEnabled=function(){return bb&&fb.model.isEdge(Pa.cell)&&"1"==mxUtils.getValue(Pa.style,@@ -3094,7 +3094,7 @@ var ua=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=funct(z=null);return z};mxCellEditor.prototype.getBorderColor=function(z){z=mxUtils.getValue(z.style,mxConstants.STYLE_LABEL_BORDERCOLOR,null);z==mxConstants.NONE&&(z=null);return z};mxCellEditor.prototype.getMinimumSize=function(z){var L=this.graph.getView().scale;return new mxRectangle(0,0,null==z.text?30:z.text.size*L+20,30)};mxGraphHandlerIsValidDropTarget=mxGraphHandler.prototype.isValidDropTarget;mxGraphHandler.prototype.isValidDropTarget=function(z,L){return mxGraphHandlerIsValidDropTarget.apply(this,arguments)&&!mxEvent.isAltDown(L.getEvent)};var Ca=mxGraphHandler.prototype.getInitialCellForEvent;mxGraphHandler.prototype.getInitialCellForEvent=function(z){var L=Ca.apply(this,arguments);if(null!=L){var M=this.graph.getLockedGroupAncestor(this.graph.model.getParent(L));null!=M&&(L=M)}return L};var ia=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=function(z,L,M){var S=this.graph.model.getParent(z);if(null!=S){if(this.graph.isSelectParentFirst(S))return!this.graph.isCellSelected(S)&&!this.graph.isSiblingSelected(z);if(this.graph.isTransparentBounds(S))return!1}return ia.apply(this,arguments)};var k=mxConstraintHandler.prototype.getCellForEvent;mxConstraintHandler.prototype.getCellForEvent=function(z,L){var M=k.apply(this,arguments),S=null!=L?L.x:z.getGraphX(),Z=null!=L?L.y:z.getGraphY();if(null!=M&&this.graph.model.isEdge(M)){var da=this.graph.model;M=this.graph.getCellAt(S,Z,null,!0,!1,function(sa){return da.isEdge(da.getParent(sa.cell))});if(null!=M&&!this.graph.isCellConnectable(M)){var ma=-da.getParent(M);da.isVertex(ma)&&this.graph.isCellConnectable(ma)&&(M=ma)}M=this.graph.isCellLocked(M)?null:M}null==M||null!=this.currentFocus&&this.currentFocus.cell==M||(S=this.graph.getBorderContainer(M,S,Z),null!=S&&(M=S));return M};var v=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){for(var z=v.apply(this,arguments),L=this.graph,M=new mxDictionary,S=[],Z=0;Z<z.length;Z++)null==M.get(z[Z])&&(M.put(z[Z],!0),S.push(z[Z]));+da.getParent(M);da.isVertex(ma)&&this.graph.isCellConnectable(ma)&&(M=ma)}M=this.graph.isCellLocked(M)?null:M}null==M||null!=this.currentFocus&&this.currentFocus.cell==M||(S=this.graph.getBorderContainer(M,S,Z),null!=S&&(M=S));return M};var u=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){for(var z=u.apply(this,arguments),L=this.graph,M=new mxDictionary,S=[],Z=0;Z<z.length;Z++)null==M.get(z[Z])&&(M.put(z[Z],!0),S.push(z[Z]));for(Z=0;Z<z.length;Z++)for(var da=L.model.getParent(z[Z]);null!=da&&L.isTransparentBounds(da);)null==M.get(da)&&(M.put(da,!0),S.push(da)),da=L.model.getParent(da);return S};mxGraphView.prototype.formatUnitText=function(z){return z?d(z,this.unit):z};mxGraphHandler.prototype.updateHint=function(z){if(null!=this.pBounds&&(null!=this.shape||this.livePreviewActive)){null==this.hint&&(this.hint=b(),this.graph.container.appendChild(this.hint));var L=this.graph.view.translate,M=this.graph.view.scale;z=this.roundLength((this.bounds.x+this.currentDx)/M-L.x);L=this.roundLength((this.bounds.y+this.currentDy)/M-L.y);M=this.graph.view.unit;this.hint.innerHTML=d(z,M)+", "+d(L,M);this.hint.style.left=this.pBounds.x+this.currentDx+Math.round((this.pBounds.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=this.pBounds.y+this.currentDy+this.pBounds.height+Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(null!=this.hint.parentNode&&this.hint.parentNode.removeChild(this.hint),this.hint=null)};var H=mxStackLayout.prototype.resizeCell;mxStackLayout.prototype.resizeCell=function(z,L){H.apply(this,arguments);var M=this.graph.getCellStyle(z);if(null==M.childLayout){var S=this.graph.model.getParent(z),Z=null!=S?this.graph.getCellGeometry(S):null;if(null!=Z&&(M=this.graph.getCellStyle(S),"stackLayout"==M.childLayout)){var da=parseFloat(mxUtils.getValue(M,"stackBorder",mxStackLayout.prototype.border));M="1"==mxUtils.getValue(M,"horizontalStack","1");var ma=this.graph.getActualStartSize(S);Z=Z.clone();@@ -3224,309 +3224,309 @@ this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var Vb=this.destroyCornerHandles();null!=this.linkHint&&(null!=this.linkHint.parentNode&&this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getSelectionModel().removeListener(this.changeHandler),this.graph.getModel().removeListener(this.changeHandler),this.changeHandler=null);null!=this.editingHandler&&(this.graph.removeListener(this.editingHandler),this.editingHandler=null)};var Hb=mxEdgeHandler.prototype.redrawHandles;mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(Hb.apply(this),null!=this.state&&null!=this.linkHint)){var z=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(z=new mxRectangle(z.x,z.y,z.width,z.height),z.add(this.state.text.bounds));this.linkHint.style.left=z.x+z.width/2+"px";this.linkHint.style.top=Math.round(z.y+z.height+Editor.hintOffset)+"px";this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":""}};var Ab=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=function(){Ab.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var Db=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){Db.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();(function(){function b(g,r,C){mxShape.call(this);this.line=g;this.stroke=r;this.strokewidth=null!=C?C:1;this.updateBoundsFromLine()}function d(){mxSwimlane.call(this)}function m(){mxSwimlane.call(this)}function p(){mxCylinder.call(this)}function t(){mxConnector.call(this)}function n(){mxCylinder.call(this)}function y(){mxActor.call(this)}function D(){mxCylinder.call(this)}function O(){mxCylinder.call(this)}function F(){mxCylinder.call(this)}function N(){mxCylinder.call(this)}function R(){mxShape.call(this)}-function c(){mxShape.call(this)}function f(g,r,C,u){mxShape.call(this);this.bounds=g;this.fill=r;this.stroke=C;this.strokewidth=null!=u?u:1}function l(){mxActor.call(this)}function q(){mxCylinder.call(this)}function x(){mxCylinder.call(this)}function A(){mxShape.call(this)}function E(){mxActor.call(this)}function J(){mxActor.call(this)}function Q(){mxActor.call(this)}function V(){mxActor.call(this)}function K(){mxActor.call(this)}function fa(){mxActor.call(this)}function Y(){mxActor.call(this)}function aa(g,+function c(){mxShape.call(this)}function f(g,r,C,v){mxShape.call(this);this.bounds=g;this.fill=r;this.stroke=C;this.strokewidth=null!=v?v:1}function l(){mxActor.call(this)}function q(){mxCylinder.call(this)}function x(){mxCylinder.call(this)}function A(){mxShape.call(this)}function E(){mxActor.call(this)}function J(){mxActor.call(this)}function Q(){mxActor.call(this)}function V(){mxActor.call(this)}function K(){mxActor.call(this)}function fa(){mxActor.call(this)}function Y(){mxActor.call(this)}function aa(g,r){this.canvas=g;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.defaultVariation=r;this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,aa.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,aa.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,aa.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,aa.prototype.quadTo);this.originalCurveTo=-this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,aa.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,aa.prototype.arcTo)}function ja(){mxRectangleShape.call(this)}function ka(){mxRectangleShape.call(this)}function ua(){mxActor.call(this)}function Ca(){mxActor.call(this)}function ia(){mxActor.call(this)}function k(){mxActor.call(this)}function v(){mxRectangleShape.call(this)}function H(){mxRectangleShape.call(this)}function P(){mxCylinder.call(this)}-function T(){mxShape.call(this)}function W(){mxShape.call(this)}function ha(){mxEllipse.call(this)}function X(){mxShape.call(this)}function ea(){mxShape.call(this)}function oa(g,r){function C(){mxShape.call(this)}mxUtils.extend(C,mxShape);C.prototype.iconSize=r;C.prototype.paintBackground=function(u,B,G,I,ba){ba=Math.min(this.iconSize,I,ba);B+=(I-ba)/2;g.prototype.hasOwnProperty("paintVertexShape")?g.prototype.paintVertexShape.call(this,u,B,G,ba,ba):(g.prototype.paintBackground.call(this,u,B,G,ba,-ba),"function"===typeof g.prototype.paintForeground&&g.prototype.paintForeground.call(this,u,B,G,ba,ba))};return C}function la(){mxShape.call(this)}function ca(){mxShape.call(this)}function ta(){mxShape.call(this)}function xa(){mxShape.call(this)}function qa(){mxShape.call(this)}function Ba(){mxRectangleShape.call(this)}function na(){mxShape.call(this)}function ra(){mxShape.call(this)}function va(){mxShape.call(this)}function Ha(){mxShape.call(this)}function La(){mxShape.call(this)}function Ga(){mxCylinder.call(this)}+this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,aa.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,aa.prototype.arcTo)}function ja(){mxRectangleShape.call(this)}function ka(){mxRectangleShape.call(this)}function ua(){mxActor.call(this)}function Ca(){mxActor.call(this)}function ia(){mxActor.call(this)}function k(){mxActor.call(this)}function u(){mxRectangleShape.call(this)}function H(){mxRectangleShape.call(this)}function P(){mxCylinder.call(this)}+function T(){mxShape.call(this)}function W(){mxShape.call(this)}function ha(){mxEllipse.call(this)}function X(){mxShape.call(this)}function ea(){mxShape.call(this)}function oa(g,r){function C(){mxShape.call(this)}mxUtils.extend(C,mxShape);C.prototype.iconSize=r;C.prototype.paintBackground=function(v,B,G,I,ba){ba=Math.min(this.iconSize,I,ba);B+=(I-ba)/2;g.prototype.hasOwnProperty("paintVertexShape")?g.prototype.paintVertexShape.call(this,v,B,G,ba,ba):(g.prototype.paintBackground.call(this,v,B,G,ba,+ba),"function"===typeof g.prototype.paintForeground&&g.prototype.paintForeground.call(this,v,B,G,ba,ba))};return C}function la(){mxShape.call(this)}function ca(){mxShape.call(this)}function ta(){mxShape.call(this)}function xa(){mxShape.call(this)}function qa(){mxShape.call(this)}function Ba(){mxRectangleShape.call(this)}function na(){mxShape.call(this)}function ra(){mxShape.call(this)}function va(){mxShape.call(this)}function Ha(){mxShape.call(this)}function La(){mxShape.call(this)}function Ga(){mxCylinder.call(this)}function Da(){mxCylinder.call(this)}function Qa(){mxRectangleShape.call(this)}function Ka(){mxDoubleEllipse.call(this)}function Na(){mxDoubleEllipse.call(this)}function Oa(){mxArrowConnector.call(this);this.spacing=0}function Fa(){mxArrowConnector.call(this);this.spacing=0}function Aa(){mxActor.call(this)}function Ja(){mxRectangleShape.call(this)}function Ia(){mxActor.call(this)}function Sa(){mxActor.call(this)}function ab(){mxActor.call(this)}function Va(){mxActor.call(this)}function db(){mxActor.call(this)}function Ea(){mxActor.call(this)}function $a(){mxActor.call(this)}function cb(){mxActor.call(this)}function Za(){mxActor.call(this)}function eb(){mxActor.call(this)}function lb(){mxEllipse.call(this)}function wb(){mxEllipse.call(this)}function rb(){mxEllipse.call(this)}function xb(){mxRhombus.call(this)}function Jb(){mxEllipse.call(this)}function Fb(){mxEllipse.call(this)}function Tb(){mxEllipse.call(this)}function Rb(){mxEllipse.call(this)}function $b(){mxActor.call(this)}function Mb(){mxActor.call(this)}-function Wb(){mxActor.call(this)}function zb(g,r,C,u){mxShape.call(this);this.bounds=g;this.fill=r;this.stroke=C;this.strokewidth=null!=u?u:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=!0;this.indent=2;this.rectOutline="single"}function Ub(){mxConnector.call(this)}function Lb(){mxConnector.call(this)}function Xb(){mxActor.call(this)}function bc(g,r,C,u,B,G,I,ba,U,za){I+=U;var pa=u.clone();u.x-=B*(2*I+U);u.y-=G*(2*I+U);B*=I+U;G*=I+U;return function(){g.ellipse(pa.x-B-I,pa.y-G-I,2*+function Wb(){mxActor.call(this)}function zb(g,r,C,v){mxShape.call(this);this.bounds=g;this.fill=r;this.stroke=C;this.strokewidth=null!=v?v:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=!0;this.indent=2;this.rectOutline="single"}function Ub(){mxConnector.call(this)}function Lb(){mxConnector.call(this)}function Xb(){mxActor.call(this)}function bc(g,r,C,v,B,G,I,ba,U,za){I+=U;var pa=v.clone();v.x-=B*(2*I+U);v.y-=G*(2*I+U);B*=I+U;G*=I+U;return function(){g.ellipse(pa.x-B-I,pa.y-G-I,2*I,2*I);za?g.fillAndStroke():g.stroke()}}function Gb(){mxRectangleShape.call(this)}function Ob(){mxActor.call(this)}function ac(){mxShape.call(this)}function Zb(){mxShape.call(this)}function Vb(){mxActor.call(this)}function Bb(){mxActor.call(this)}function Hb(){mxActor.call(this)}function Ab(){mxActor.call(this)}function Db(){mxConnector.call(this)}var z=mxShape.prototype.getLabelMargins;mxShape.prototype.getLabelMargins=function(g){if(null!=this.stencil&&null!=this.stencil.desc&&null!=this.style){if(null==-this.stencil.labelBounds){for(var r=this.stencil.desc.getElementsByTagName("labelBounds"),C=[],u=0;u<r.length;u++)C.push({condition:r[u].getAttribute("if"),x:Number(r[u].getAttribute("x")||0),y:Number(r[u].getAttribute("y")||0),w:Number(r[u].getAttribute("w")||this.stencil.w0),h:Number(r[u].getAttribute("h")||this.stencil.h0)});this.stencil.labelBounds=C}for(u=0;u<this.stencil.labelBounds.length;u++)if(r=this.stencil.labelBounds[u],null==r.condition||"1"==mxUtils.getValue(this.style,r.condition,"0")){u=-this.stencil.computeAspect(this.style,g.x,g.y,g.width,g.height);C=u.x-g.x+r.x*u.width;var B=u.y-g.y+r.y*u.height;return new mxRectangle(C,B,g.width-C-r.w*u.width,g.height-B-r.h*u.height)}}return z.apply(this,arguments)};mxUtils.extend(b,mxShape);b.prototype.updateBoundsFromLine=function(){var g=null;if(null!=this.line)for(var r=0;r<this.line.length;r++){var C=this.line[r];null!=C&&(C=new mxRectangle(C.x,C.y,this.strokewidth,this.strokewidth),null==g?g=C:g.add(C))}this.bounds=null!=g?g:new mxRectangle};-b.prototype.paintVertexShape=function(g,r,C,u,B){this.paintTableLine(g,this.line,0,0)};b.prototype.paintTableLine=function(g,r,C,u){if(null!=r){var B=null;g.begin();for(var G=0;G<r.length;G++){var I=r[G];null!=I&&(null==B?g.moveTo(I.x+C,I.y+u):null!=B&&g.lineTo(I.x+C,I.y+u));B=I}g.end();g.stroke()}};b.prototype.intersectsRectangle=function(g){var r=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=this.line)for(var C=null,u=0;u<this.line.length&&!r;u++){var B=this.line[u];null!=-B&&null!=C&&(r=mxUtils.rectangleIntersectsSegment(g,C,B));C=B}return r};mxCellRenderer.registerShape("tableLine",b);mxUtils.extend(d,mxSwimlane);d.prototype.fixedHeaderDefault=!1;d.prototype.paintVertexShape=function(g,r,C,u,B){var G=null!=this.state?this.state.view.graph.isCellCollapsed(this.state.cell):!1,I=this.isHorizontal(),ba=this.getTitleSize(),U=mxUtils.getValue(this.style,mxConstants.STYLE_FIXED_HEADER,this.fixedHeaderDefault);0==ba&&this.isRounded&&!this.outline?(U=mxShape.prototype.getArcSize.call(this,-u,B),g.begin(),g.roundrect(r,C,u,B,U,U),g.fillAndStroke()):0==ba&&!U||this.outline?Tb.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),g.translate(-r,-C));G||this.outline||!(I&&ba<B||!I&&ba<u)||this.paintForeground(g,r,C,u,B)};d.prototype.paintForeground=function(g,r,C,u,B){if(null!=this.state){var G=this.flipH,I=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var ba=G;G=I;I=ba}g.rotate(-this.getShapeRotation(),-G,I,r+u/2,C+B/2);s=this.scale;r=this.bounds.x/s;C=this.bounds.y/s;u=this.bounds.width/s;B=this.bounds.height/s;this.paintTableForeground(g,r,C,u,B)}};d.prototype.paintTableForeground=function(g,r,C,u,B){u=this.state.view.graph.getTableLines(this.state.cell,"0"!=mxUtils.getValue(this.state.style,"rowLines","1"),"0"!=mxUtils.getValue(this.state.style,"columnLines","1"));for(B=0;B<u.length;B++)b.prototype.paintTableLine(g,u[B],r,C)};d.prototype.configurePointerEvents=function(g){0==this.getTitleSize()?-g.pointerEvents=!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",d);mxUtils.extend(m,d);m.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",m);var L=mxSwimlane.prototype.paintVertexShape;mxSwimlane.prototype.paintVertexShape=function(g,r,C,u,B){L.apply(this,arguments);if(null!=this.state&&!this.outline){var G=this.state.view.graph;if((null!=this.fill&&this.fill!=mxConstants.NONE||null!=this.laneFill&&this.laneFill!=-mxConstants.NONE)&&null!=G.paintTableCellLines){var I=this.state.cell;if(null!=G.isTableRow&&G.isTableRow(I)){var ba=this.getTitleSize();this.isHorizontal()?G.paintTableCellLines(g,I,0,0,u,Math.min(ba,B),this.stroke,this.strokewidth):G.paintTableCellLines(g,I,0,0,Math.min(ba,u),B,this.stroke,this.strokewidth)}else G.paintTableCellLines(g,I,0,0,u,B,this.stroke,this.strokewidth)}}};mxUtils.extend(p,mxCylinder);p.prototype.size=20;p.prototype.darkOpacity=0;p.prototype.darkOpacity2=0;p.prototype.paintVertexShape=-function(g,r,C,u,B){var G=Math.max(0,Math.min(u,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),ba=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity2",this.darkOpacity2))));g.translate(r,C);g.begin();g.moveTo(0,0);g.lineTo(u-G,0);g.lineTo(u,G);g.lineTo(u,B);g.lineTo(G,B);g.lineTo(0,B-G);g.lineTo(0,0);g.close();g.end();g.fillAndStroke();this.outline||(g.setShadow(!1),-0!=I&&(g.setFillAlpha(Math.abs(I)),g.setFillColor(0>I?"#FFFFFF":"#000000"),g.begin(),g.moveTo(0,0),g.lineTo(u-G,0),g.lineTo(u,G),g.lineTo(G,G),g.close(),g.fill()),0!=ba&&(g.setFillAlpha(Math.abs(ba)),g.setFillColor(0>ba?"#FFFFFF":"#000000"),g.begin(),g.moveTo(0,0),g.lineTo(G,G),g.lineTo(G,B),g.lineTo(0,B-G),g.close(),g.fill()),g.begin(),g.moveTo(G,B),g.lineTo(G,G),g.lineTo(0,0),g.moveTo(G,G),g.lineTo(u,G),g.end(),g.stroke())};p.prototype.getLabelMargins=function(g){return mxUtils.getValue(this.style,-"boundedLbl",!1)?(g=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(g,g,0,0)):null};mxCellRenderer.registerShape("cube",p);var M=Math.tan(mxUtils.toRadians(30)),S=(.5-M)/2;mxCellRenderer.registerShape("isoRectangle",y);mxUtils.extend(t,mxConnector);t.prototype.paintEdgeShape=function(g,r){var C=this.createMarker(g,r,!0),u=this.createMarker(g,r,!1);g.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&g.setDashed(this.isDashed,-null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);g.setShadow(!1);g.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);g.setStrokeColor(this.stroke);g.setFillColor(this.stroke);g.setDashed(!1);null!=C&&C();null!=u&&u()};mxCellRenderer.registerShape("wire",t);mxUtils.extend(n,mxCylinder);n.prototype.size=6;n.prototype.paintVertexShape=function(g,r,C,u,B){g.setFillColor(this.stroke);var G=Math.max(0,parseFloat(mxUtils.getValue(this.style,-"size",this.size))-2)+2*this.strokewidth;g.ellipse(r+.5*(u-G),C+.5*(B-G),G,G);g.fill();g.setFillColor(mxConstants.NONE);g.rect(r,C,u,B);g.fill()};mxCellRenderer.registerShape("waypoint",n);mxUtils.extend(y,mxActor);y.prototype.size=20;y.prototype.redrawPath=function(g,r,C,u,B){r=Math.min(u,B/M);g.translate((u-r)/2,(B-r)/2+r/4);g.moveTo(0,.25*r);g.lineTo(.5*r,r*S);g.lineTo(r,.25*r);g.lineTo(.5*r,(.5-S)*r);g.lineTo(0,.25*r);g.close();g.end()};mxCellRenderer.registerShape("isoRectangle",y);mxUtils.extend(D,-mxCylinder);D.prototype.size=20;D.prototype.redrawPath=function(g,r,C,u,B,G){r=Math.min(u,B/(.5+M));G?(g.moveTo(0,.25*r),g.lineTo(.5*r,(.5-S)*r),g.lineTo(r,.25*r),g.moveTo(.5*r,(.5-S)*r),g.lineTo(.5*r,(1-S)*r)):(g.translate((u-r)/2,(B-r)/2),g.moveTo(0,.25*r),g.lineTo(.5*r,r*S),g.lineTo(r,.25*r),g.lineTo(r,.75*r),g.lineTo(.5*r,(1-S)*r),g.lineTo(0,.75*r),g.close());g.end()};mxCellRenderer.registerShape("isoCube",D);mxUtils.extend(O,mxCylinder);O.prototype.redrawPath=function(g,r,C,u,B,G){r=Math.min(B/-2,Math.round(B/8)+this.strokewidth-1);if(G&&null!=this.fill||!G&&null==this.fill)g.moveTo(0,r),g.curveTo(0,2*r,u,2*r,u,r),G||(g.stroke(),g.begin()),g.translate(0,r/2),g.moveTo(0,r),g.curveTo(0,2*r,u,2*r,u,r),G||(g.stroke(),g.begin()),g.translate(0,r/2),g.moveTo(0,r),g.curveTo(0,2*r,u,2*r,u,r),G||(g.stroke(),g.begin()),g.translate(0,-r);G||(g.moveTo(0,r),g.curveTo(0,-r/3,u,-r/3,u,r),g.lineTo(u,B-r),g.curveTo(u,B+r/3,0,B+r/3,0,B-r),g.close())};O.prototype.getLabelMargins=function(g){return new mxRectangle(0,-2.5*Math.min(g.height/2,Math.round(g.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",O);mxUtils.extend(F,mxCylinder);F.prototype.size=30;F.prototype.darkOpacity=0;F.prototype.paintVertexShape=function(g,r,C,u,B){var G=Math.max(0,Math.min(u,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));g.translate(r,C);g.begin();g.moveTo(0,0);g.lineTo(u-G,0);g.lineTo(u,-G);g.lineTo(u,B);g.lineTo(0,B);g.lineTo(0,0);g.close();g.end();g.fillAndStroke();this.outline||(g.setShadow(!1),0!=I&&(g.setFillAlpha(Math.abs(I)),g.setFillColor(0>I?"#FFFFFF":"#000000"),g.begin(),g.moveTo(u-G,0),g.lineTo(u-G,G),g.lineTo(u,G),g.close(),g.fill()),g.begin(),g.moveTo(u-G,0),g.lineTo(u-G,G),g.lineTo(u,G),g.end(),g.stroke())};mxCellRenderer.registerShape("note",F);mxUtils.extend(N,F);mxCellRenderer.registerShape("note2",N);N.prototype.getLabelMargins=function(g){if(mxUtils.getValue(this.style,-"boundedLbl",!1)){var r=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(g.height*this.scale,r*this.scale),0,0)}return null};mxUtils.extend(R,mxShape);R.prototype.isoAngle=15;R.prototype.paintVertexShape=function(g,r,C,u,B){var G=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;G=Math.min(u*Math.tan(G),.5*B);g.translate(r,C);g.begin();g.moveTo(.5*u,0);g.lineTo(u,G);g.lineTo(u,B-G);g.lineTo(.5*u,B);g.lineTo(0,B-G);g.lineTo(0,-G);g.close();g.fillAndStroke();g.setShadow(!1);g.begin();g.moveTo(0,G);g.lineTo(.5*u,2*G);g.lineTo(u,G);g.moveTo(.5*u,2*G);g.lineTo(.5*u,B);g.stroke()};mxCellRenderer.registerShape("isoCube2",R);mxUtils.extend(c,mxShape);c.prototype.size=15;c.prototype.paintVertexShape=function(g,r,C,u,B){var G=Math.max(0,Math.min(.5*B,parseFloat(mxUtils.getValue(this.style,"size",this.size))));g.translate(r,C);0==G?(g.rect(0,0,u,B),g.fillAndStroke()):(g.begin(),g.moveTo(0,G),g.arcTo(.5*u,G,0,0,1,.5*u,0),g.arcTo(.5*-u,G,0,0,1,u,G),g.lineTo(u,B-G),g.arcTo(.5*u,G,0,0,1,.5*u,B),g.arcTo(.5*u,G,0,0,1,0,B-G),g.close(),g.fillAndStroke(),g.setShadow(!1),g.begin(),g.moveTo(u,G),g.arcTo(.5*u,G,0,0,1,.5*u,2*G),g.arcTo(.5*u,G,0,0,1,0,G),g.stroke())};mxCellRenderer.registerShape("cylinder2",c);mxUtils.extend(f,mxCylinder);f.prototype.size=15;f.prototype.paintVertexShape=function(g,r,C,u,B){var G=Math.max(0,Math.min(.5*B,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),I=mxUtils.getValue(this.style,"lid",!0);g.translate(r,-C);0==G?(g.rect(0,0,u,B),g.fillAndStroke()):(g.begin(),I?(g.moveTo(0,G),g.arcTo(.5*u,G,0,0,1,.5*u,0),g.arcTo(.5*u,G,0,0,1,u,G)):(g.moveTo(0,0),g.arcTo(.5*u,G,0,0,0,.5*u,G),g.arcTo(.5*u,G,0,0,0,u,0)),g.lineTo(u,B-G),g.arcTo(.5*u,G,0,0,1,.5*u,B),g.arcTo(.5*u,G,0,0,1,0,B-G),g.close(),g.fillAndStroke(),g.setShadow(!1),I&&(g.begin(),g.moveTo(u,G),g.arcTo(.5*u,G,0,0,1,.5*u,2*G),g.arcTo(.5*u,G,0,0,1,0,G),g.stroke()))};mxCellRenderer.registerShape("cylinder3",f);mxUtils.extend(l,mxActor);l.prototype.redrawPath=-function(g,r,C,u,B){g.moveTo(0,0);g.quadTo(u/2,.5*B,u,0);g.quadTo(.5*u,B/2,u,B);g.quadTo(u/2,.5*B,0,B);g.quadTo(.5*u,B/2,0,0);g.end()};mxCellRenderer.registerShape("switch",l);mxUtils.extend(q,mxCylinder);q.prototype.tabWidth=60;q.prototype.tabHeight=20;q.prototype.tabPosition="right";q.prototype.arcSize=.1;q.prototype.isRoundable=function(){return!0};q.prototype.paintVertexShape=function(g,r,C,u,B){g.translate(r,C);r=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));-C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var G=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),I=mxUtils.getValue(this.style,"rounded",!1),ba=mxUtils.getValue(this.style,"absoluteArcSize",!1),U=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));ba||(U*=Math.min(u,B));U=Math.min(U,.5*u,.5*(B-C));r=Math.max(r,U);r=Math.min(u-U,r);I||(U=0);g.begin();"left"==G?(g.moveTo(Math.max(U,0),C),g.lineTo(Math.max(U,0),0),g.lineTo(r,-0),g.lineTo(r,C)):(g.moveTo(u-r,C),g.lineTo(u-r,0),g.lineTo(u-Math.max(U,0),0),g.lineTo(u-Math.max(U,0),C));I?(g.moveTo(0,U+C),g.arcTo(U,U,0,0,1,U,C),g.lineTo(u-U,C),g.arcTo(U,U,0,0,1,u,U+C),g.lineTo(u,B-U),g.arcTo(U,U,0,0,1,u-U,B),g.lineTo(U,B),g.arcTo(U,U,0,0,1,0,B-U)):(g.moveTo(0,C),g.lineTo(u,C),g.lineTo(u,B),g.lineTo(0,B));g.close();g.fillAndStroke();g.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(g.begin(),g.moveTo(u-30,C+20),g.lineTo(u-20,C+10),g.lineTo(u-10,-C+20),g.close(),g.stroke())};mxCellRenderer.registerShape("folder",q);q.prototype.getLabelMargins=function(g){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var r=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var C=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;r=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var u=mxUtils.getValue(this.style,"rounded",!1),B=mxUtils.getValue(this.style,"absoluteArcSize",!1),G=parseFloat(mxUtils.getValue(this.style,-"arcSize",this.arcSize));B||(G*=Math.min(g.width,g.height));G=Math.min(G,.5*g.width,.5*(g.height-r));u||(G=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(G,0,Math.min(g.width,g.width-C),Math.min(g.height,g.height-r)):new mxRectangle(Math.min(g.width,g.width-C),0,G,Math.min(g.height,g.height-r))}return new mxRectangle(0,Math.min(g.height,r),0,0)}return null};mxUtils.extend(x,mxCylinder);x.prototype.arcSize=.1;x.prototype.paintVertexShape=function(g,r,C,-u,B){g.translate(r,C);var G=mxUtils.getValue(this.style,"rounded",!1),I=mxUtils.getValue(this.style,"absoluteArcSize",!1);r=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));C=mxUtils.getValue(this.style,"umlStateConnection",null);I||(r*=Math.min(u,B));r=Math.min(r,.5*u,.5*B);G||(r=0);G=0;null!=C&&(G=10);g.begin();g.moveTo(G,r);g.arcTo(r,r,0,0,1,G+r,0);g.lineTo(u-r,0);g.arcTo(r,r,0,0,1,u,r);g.lineTo(u,B-r);g.arcTo(r,r,0,0,1,u-r,B);g.lineTo(G+r,B);g.arcTo(r,r,0,0,1,G,B-r);g.close();g.fillAndStroke();-g.setShadow(!1);"collapseState"==mxUtils.getValue(this.style,"umlStateSymbol",null)&&(g.roundrect(u-40,B-20,10,10,3,3),g.stroke(),g.roundrect(u-20,B-20,10,10,3,3),g.stroke(),g.begin(),g.moveTo(u-30,B-15),g.lineTo(u-20,B-15),g.stroke());"connPointRefEntry"==C?(g.ellipse(0,.5*B-10,20,20),g.fillAndStroke()):"connPointRefExit"==C&&(g.ellipse(0,.5*B-10,20,20),g.fillAndStroke(),g.begin(),g.moveTo(5,.5*B-5),g.lineTo(15,.5*B+5),g.moveTo(15,.5*B-5),g.lineTo(5,.5*B+5),g.stroke())};x.prototype.getLabelMargins=-function(g){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};mxCellRenderer.registerShape("umlState",x);mxUtils.extend(A,mxShape);A.prototype.featureColor="#666666";A.prototype.paintVertexShape=function(g,r,C,u,B){var G=mxUtils.getValue(this.style,"smileyType","happy"),I=mxUtils.getValue(this.style,"smileyFeatureColor",A.prototype.featureColor);g.translate(r,C);r=Math.min(u,B)/2;g.ellipse(u/-2-r,B/2-r,2*r,2*r);g.fillAndStroke();r=Math.min(u,B)/30;u/=2;B/=2;g.setFillColor(I);g.setStrokeColor(I);g.setStrokeWidth(2*r);I=1.5*r;C=5*r;var ba=5*r;g.ellipse(u-C-I,B-ba-I,2*I,2*I);g.fillAndStroke();g.ellipse(u+C-I,B-ba-I,2*I,2*I);g.fillAndStroke();g.setStrokeWidth(1*r);g.setFillColor("#000000");"happy"==G?(G=u,I=B+2*r,g.begin(),g.moveTo(G+7.5*r,I),g.arcTo(7.5*r,7.5*r,0,1,1,G-7.5*r,I),g.lineTo(G-6.818*r,I),g.arcTo(6.818*r,6.818*r,0,1,0,G+6.818*r,I),g.close(),g.fillAndStroke()):"sad"==G?(G=u,I=B+-7*r,g.begin(),g.moveTo(G-7.5*r,I),g.arcTo(7.5*r,7.5*r,0,1,1,G+7.5*r,I),g.lineTo(G+6.818*r,I),g.arcTo(6.818*r,6.818*r,0,1,0,G-6.818*r,I),g.close(),g.fillAndStroke()):(g.begin(),g.moveTo(u-5*r,B+7*r),g.lineTo(u+5*r,B+7*r),g.stroke())};mxCellRenderer.registerShape("smileyFace",A);mxUtils.extend(E,mxActor);E.prototype.size=30;E.prototype.isRoundable=function(){return!0};E.prototype.redrawPath=function(g,r,C,u,B){r=Math.max(0,Math.min(u,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));-C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(r,0),new mxPoint(u,0),new mxPoint(u,B),new mxPoint(0,B),new mxPoint(0,r)],this.isRounded,C,!0);g.end()};mxCellRenderer.registerShape("card",E);mxUtils.extend(J,mxActor);J.prototype.size=.4;J.prototype.redrawPath=function(g,r,C,u,B){r=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));g.moveTo(0,r/2);g.quadTo(u/4,1.4*r,u/2,r/2);g.quadTo(3*u/4,r*(1-1.4),-u,r/2);g.lineTo(u,B-r/2);g.quadTo(3*u/4,B-1.4*r,u/2,B-r/2);g.quadTo(u/4,B-r*(1-1.4),0,B-r/2);g.lineTo(0,r/2);g.close();g.end()};J.prototype.getLabelBounds=function(g){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var r=mxUtils.getValue(this.style,"size",this.size),C=g.width,u=g.height;if(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return r*=u,new mxRectangle(g.x,g.y+r,C,u-2*r);r*=C;return new mxRectangle(g.x+r,g.y,C-2*r,u)}return g};-mxCellRenderer.registerShape("tape",J);mxUtils.extend(Q,mxActor);Q.prototype.size=.3;Q.prototype.getLabelMargins=function(g){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*g.height):null};Q.prototype.redrawPath=function(g,r,C,u,B){r=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));g.moveTo(0,0);g.lineTo(u,0);g.lineTo(u,B-r/2);g.quadTo(3*u/4,B-1.4*r,u/2,B-r/2);g.quadTo(u/4,B-r*(1--1.4),0,B-r/2);g.lineTo(0,r/2);g.close();g.end()};mxCellRenderer.registerShape("document",Q);var Z=mxCylinder.prototype.getCylinderSize;mxCylinder.prototype.getCylinderSize=function(g,r,C,u){var B=mxUtils.getValue(this.style,"size");return null!=B?u*Math.max(0,Math.min(1,B)):Z.apply(this,arguments)};mxCylinder.prototype.getLabelMargins=function(g){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var r=2*mxUtils.getValue(this.style,"size",.15);return new mxRectangle(0,Math.min(this.maxHeight*this.scale,+this.stencil.labelBounds){for(var r=this.stencil.desc.getElementsByTagName("labelBounds"),C=[],v=0;v<r.length;v++)C.push({condition:r[v].getAttribute("if"),x:Number(r[v].getAttribute("x")||0),y:Number(r[v].getAttribute("y")||0),w:Number(r[v].getAttribute("w")||this.stencil.w0),h:Number(r[v].getAttribute("h")||this.stencil.h0)});this.stencil.labelBounds=C}for(v=0;v<this.stencil.labelBounds.length;v++)if(r=this.stencil.labelBounds[v],null==r.condition||"1"==mxUtils.getValue(this.style,r.condition,"0")){v=+this.stencil.computeAspect(this.style,g.x,g.y,g.width,g.height);C=v.x-g.x+r.x*v.width;var B=v.y-g.y+r.y*v.height;return new mxRectangle(C,B,g.width-C-r.w*v.width,g.height-B-r.h*v.height)}}return z.apply(this,arguments)};mxUtils.extend(b,mxShape);b.prototype.updateBoundsFromLine=function(){var g=null;if(null!=this.line)for(var r=0;r<this.line.length;r++){var C=this.line[r];null!=C&&(C=new mxRectangle(C.x,C.y,this.strokewidth,this.strokewidth),null==g?g=C:g.add(C))}this.bounds=null!=g?g:new mxRectangle};+b.prototype.paintVertexShape=function(g,r,C,v,B){this.paintTableLine(g,this.line,0,0)};b.prototype.paintTableLine=function(g,r,C,v){if(null!=r){var B=null;g.begin();for(var G=0;G<r.length;G++){var I=r[G];null!=I&&(null==B?g.moveTo(I.x+C,I.y+v):null!=B&&g.lineTo(I.x+C,I.y+v));B=I}g.end();g.stroke()}};b.prototype.intersectsRectangle=function(g){var r=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=this.line)for(var C=null,v=0;v<this.line.length&&!r;v++){var B=this.line[v];null!=+B&&null!=C&&(r=mxUtils.rectangleIntersectsSegment(g,C,B));C=B}return r};mxCellRenderer.registerShape("tableLine",b);mxUtils.extend(d,mxSwimlane);d.prototype.fixedHeaderDefault=!1;d.prototype.paintVertexShape=function(g,r,C,v,B){var G=null!=this.state?this.state.view.graph.isCellCollapsed(this.state.cell):!1,I=this.isHorizontal(),ba=this.getTitleSize(),U=mxUtils.getValue(this.style,mxConstants.STYLE_FIXED_HEADER,this.fixedHeaderDefault);0==ba&&this.isRounded&&!this.outline?(U=mxShape.prototype.getArcSize.call(this,+v,B),g.begin(),g.roundrect(r,C,v,B,U,U),g.fillAndStroke()):0==ba&&!U||this.outline?Tb.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),g.translate(-r,-C));G||this.outline||!(I&&ba<B||!I&&ba<v)||this.paintForeground(g,r,C,v,B)};d.prototype.paintForeground=function(g,r,C,v,B){if(null!=this.state){var G=this.flipH,I=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var ba=G;G=I;I=ba}g.rotate(-this.getShapeRotation(),+G,I,r+v/2,C+B/2);s=this.scale;r=this.bounds.x/s;C=this.bounds.y/s;v=this.bounds.width/s;B=this.bounds.height/s;this.paintTableForeground(g,r,C,v,B)}};d.prototype.paintTableForeground=function(g,r,C,v,B){v=this.state.view.graph.getTableLines(this.state.cell,"0"!=mxUtils.getValue(this.state.style,"rowLines","1"),"0"!=mxUtils.getValue(this.state.style,"columnLines","1"));for(B=0;B<v.length;B++)b.prototype.paintTableLine(g,v[B],r,C)};d.prototype.configurePointerEvents=function(g){0==this.getTitleSize()?+g.pointerEvents=!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",d);mxUtils.extend(m,d);m.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",m);var L=mxSwimlane.prototype.paintVertexShape;mxSwimlane.prototype.paintVertexShape=function(g,r,C,v,B){L.apply(this,arguments);if(null!=this.state&&!this.outline){var G=this.state.view.graph;if((null!=this.fill&&this.fill!=mxConstants.NONE||null!=this.laneFill&&this.laneFill!=+mxConstants.NONE)&&null!=G.paintTableCellLines){var I=this.state.cell;if(null!=G.isTableRow&&G.isTableRow(I)){var ba=this.getTitleSize();this.isHorizontal()?G.paintTableCellLines(g,I,0,0,v,Math.min(ba,B),this.stroke,this.strokewidth):G.paintTableCellLines(g,I,0,0,Math.min(ba,v),B,this.stroke,this.strokewidth)}else G.paintTableCellLines(g,I,0,0,v,B,this.stroke,this.strokewidth)}}};mxUtils.extend(p,mxCylinder);p.prototype.size=20;p.prototype.darkOpacity=0;p.prototype.darkOpacity2=0;p.prototype.paintVertexShape=+function(g,r,C,v,B){var G=Math.max(0,Math.min(v,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),ba=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity2",this.darkOpacity2))));g.translate(r,C);g.begin();g.moveTo(0,0);g.lineTo(v-G,0);g.lineTo(v,G);g.lineTo(v,B);g.lineTo(G,B);g.lineTo(0,B-G);g.lineTo(0,0);g.close();g.end();g.fillAndStroke();this.outline||(g.setShadow(!1),+0!=I&&(g.setFillAlpha(Math.abs(I)),g.setFillColor(0>I?"#FFFFFF":"#000000"),g.begin(),g.moveTo(0,0),g.lineTo(v-G,0),g.lineTo(v,G),g.lineTo(G,G),g.close(),g.fill()),0!=ba&&(g.setFillAlpha(Math.abs(ba)),g.setFillColor(0>ba?"#FFFFFF":"#000000"),g.begin(),g.moveTo(0,0),g.lineTo(G,G),g.lineTo(G,B),g.lineTo(0,B-G),g.close(),g.fill()),g.begin(),g.moveTo(G,B),g.lineTo(G,G),g.lineTo(0,0),g.moveTo(G,G),g.lineTo(v,G),g.end(),g.stroke())};p.prototype.getLabelMargins=function(g){return mxUtils.getValue(this.style,+"boundedLbl",!1)?(g=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(g,g,0,0)):null};mxCellRenderer.registerShape("cube",p);var M=Math.tan(mxUtils.toRadians(30)),S=(.5-M)/2;mxCellRenderer.registerShape("isoRectangle",y);mxUtils.extend(t,mxConnector);t.prototype.paintEdgeShape=function(g,r){var C=this.createMarker(g,r,!0),v=this.createMarker(g,r,!1);g.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&g.setDashed(this.isDashed,+null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);g.setShadow(!1);g.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);g.setStrokeColor(this.stroke);g.setFillColor(this.stroke);g.setDashed(!1);null!=C&&C();null!=v&&v()};mxCellRenderer.registerShape("wire",t);mxUtils.extend(n,mxCylinder);n.prototype.size=6;n.prototype.paintVertexShape=function(g,r,C,v,B){g.setFillColor(this.stroke);var G=Math.max(0,parseFloat(mxUtils.getValue(this.style,+"size",this.size))-2)+2*this.strokewidth;g.ellipse(r+.5*(v-G),C+.5*(B-G),G,G);g.fill();g.setFillColor(mxConstants.NONE);g.rect(r,C,v,B);g.fill()};mxCellRenderer.registerShape("waypoint",n);mxUtils.extend(y,mxActor);y.prototype.size=20;y.prototype.redrawPath=function(g,r,C,v,B){r=Math.min(v,B/M);g.translate((v-r)/2,(B-r)/2+r/4);g.moveTo(0,.25*r);g.lineTo(.5*r,r*S);g.lineTo(r,.25*r);g.lineTo(.5*r,(.5-S)*r);g.lineTo(0,.25*r);g.close();g.end()};mxCellRenderer.registerShape("isoRectangle",y);mxUtils.extend(D,+mxCylinder);D.prototype.size=20;D.prototype.redrawPath=function(g,r,C,v,B,G){r=Math.min(v,B/(.5+M));G?(g.moveTo(0,.25*r),g.lineTo(.5*r,(.5-S)*r),g.lineTo(r,.25*r),g.moveTo(.5*r,(.5-S)*r),g.lineTo(.5*r,(1-S)*r)):(g.translate((v-r)/2,(B-r)/2),g.moveTo(0,.25*r),g.lineTo(.5*r,r*S),g.lineTo(r,.25*r),g.lineTo(r,.75*r),g.lineTo(.5*r,(1-S)*r),g.lineTo(0,.75*r),g.close());g.end()};mxCellRenderer.registerShape("isoCube",D);mxUtils.extend(O,mxCylinder);O.prototype.redrawPath=function(g,r,C,v,B,G){r=Math.min(B/+2,Math.round(B/8)+this.strokewidth-1);if(G&&null!=this.fill||!G&&null==this.fill)g.moveTo(0,r),g.curveTo(0,2*r,v,2*r,v,r),G||(g.stroke(),g.begin()),g.translate(0,r/2),g.moveTo(0,r),g.curveTo(0,2*r,v,2*r,v,r),G||(g.stroke(),g.begin()),g.translate(0,r/2),g.moveTo(0,r),g.curveTo(0,2*r,v,2*r,v,r),G||(g.stroke(),g.begin()),g.translate(0,-r);G||(g.moveTo(0,r),g.curveTo(0,-r/3,v,-r/3,v,r),g.lineTo(v,B-r),g.curveTo(v,B+r/3,0,B+r/3,0,B-r),g.close())};O.prototype.getLabelMargins=function(g){return new mxRectangle(0,+2.5*Math.min(g.height/2,Math.round(g.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",O);mxUtils.extend(F,mxCylinder);F.prototype.size=30;F.prototype.darkOpacity=0;F.prototype.paintVertexShape=function(g,r,C,v,B){var G=Math.max(0,Math.min(v,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));g.translate(r,C);g.begin();g.moveTo(0,0);g.lineTo(v-G,0);g.lineTo(v,+G);g.lineTo(v,B);g.lineTo(0,B);g.lineTo(0,0);g.close();g.end();g.fillAndStroke();this.outline||(g.setShadow(!1),0!=I&&(g.setFillAlpha(Math.abs(I)),g.setFillColor(0>I?"#FFFFFF":"#000000"),g.begin(),g.moveTo(v-G,0),g.lineTo(v-G,G),g.lineTo(v,G),g.close(),g.fill()),g.begin(),g.moveTo(v-G,0),g.lineTo(v-G,G),g.lineTo(v,G),g.end(),g.stroke())};mxCellRenderer.registerShape("note",F);mxUtils.extend(N,F);mxCellRenderer.registerShape("note2",N);N.prototype.getLabelMargins=function(g){if(mxUtils.getValue(this.style,+"boundedLbl",!1)){var r=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(g.height*this.scale,r*this.scale),0,0)}return null};mxUtils.extend(R,mxShape);R.prototype.isoAngle=15;R.prototype.paintVertexShape=function(g,r,C,v,B){var G=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;G=Math.min(v*Math.tan(G),.5*B);g.translate(r,C);g.begin();g.moveTo(.5*v,0);g.lineTo(v,G);g.lineTo(v,B-G);g.lineTo(.5*v,B);g.lineTo(0,B-G);g.lineTo(0,+G);g.close();g.fillAndStroke();g.setShadow(!1);g.begin();g.moveTo(0,G);g.lineTo(.5*v,2*G);g.lineTo(v,G);g.moveTo(.5*v,2*G);g.lineTo(.5*v,B);g.stroke()};mxCellRenderer.registerShape("isoCube2",R);mxUtils.extend(c,mxShape);c.prototype.size=15;c.prototype.paintVertexShape=function(g,r,C,v,B){var G=Math.max(0,Math.min(.5*B,parseFloat(mxUtils.getValue(this.style,"size",this.size))));g.translate(r,C);0==G?(g.rect(0,0,v,B),g.fillAndStroke()):(g.begin(),g.moveTo(0,G),g.arcTo(.5*v,G,0,0,1,.5*v,0),g.arcTo(.5*+v,G,0,0,1,v,G),g.lineTo(v,B-G),g.arcTo(.5*v,G,0,0,1,.5*v,B),g.arcTo(.5*v,G,0,0,1,0,B-G),g.close(),g.fillAndStroke(),g.setShadow(!1),g.begin(),g.moveTo(v,G),g.arcTo(.5*v,G,0,0,1,.5*v,2*G),g.arcTo(.5*v,G,0,0,1,0,G),g.stroke())};mxCellRenderer.registerShape("cylinder2",c);mxUtils.extend(f,mxCylinder);f.prototype.size=15;f.prototype.paintVertexShape=function(g,r,C,v,B){var G=Math.max(0,Math.min(.5*B,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),I=mxUtils.getValue(this.style,"lid",!0);g.translate(r,+C);0==G?(g.rect(0,0,v,B),g.fillAndStroke()):(g.begin(),I?(g.moveTo(0,G),g.arcTo(.5*v,G,0,0,1,.5*v,0),g.arcTo(.5*v,G,0,0,1,v,G)):(g.moveTo(0,0),g.arcTo(.5*v,G,0,0,0,.5*v,G),g.arcTo(.5*v,G,0,0,0,v,0)),g.lineTo(v,B-G),g.arcTo(.5*v,G,0,0,1,.5*v,B),g.arcTo(.5*v,G,0,0,1,0,B-G),g.close(),g.fillAndStroke(),g.setShadow(!1),I&&(g.begin(),g.moveTo(v,G),g.arcTo(.5*v,G,0,0,1,.5*v,2*G),g.arcTo(.5*v,G,0,0,1,0,G),g.stroke()))};mxCellRenderer.registerShape("cylinder3",f);mxUtils.extend(l,mxActor);l.prototype.redrawPath=+function(g,r,C,v,B){g.moveTo(0,0);g.quadTo(v/2,.5*B,v,0);g.quadTo(.5*v,B/2,v,B);g.quadTo(v/2,.5*B,0,B);g.quadTo(.5*v,B/2,0,0);g.end()};mxCellRenderer.registerShape("switch",l);mxUtils.extend(q,mxCylinder);q.prototype.tabWidth=60;q.prototype.tabHeight=20;q.prototype.tabPosition="right";q.prototype.arcSize=.1;q.prototype.isRoundable=function(){return!0};q.prototype.paintVertexShape=function(g,r,C,v,B){g.translate(r,C);r=Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));+C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var G=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),I=mxUtils.getValue(this.style,"rounded",!1),ba=mxUtils.getValue(this.style,"absoluteArcSize",!1),U=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));ba||(U*=Math.min(v,B));U=Math.min(U,.5*v,.5*(B-C));r=Math.max(r,U);r=Math.min(v-U,r);I||(U=0);g.begin();"left"==G?(g.moveTo(Math.max(U,0),C),g.lineTo(Math.max(U,0),0),g.lineTo(r,+0),g.lineTo(r,C)):(g.moveTo(v-r,C),g.lineTo(v-r,0),g.lineTo(v-Math.max(U,0),0),g.lineTo(v-Math.max(U,0),C));I?(g.moveTo(0,U+C),g.arcTo(U,U,0,0,1,U,C),g.lineTo(v-U,C),g.arcTo(U,U,0,0,1,v,U+C),g.lineTo(v,B-U),g.arcTo(U,U,0,0,1,v-U,B),g.lineTo(U,B),g.arcTo(U,U,0,0,1,0,B-U)):(g.moveTo(0,C),g.lineTo(v,C),g.lineTo(v,B),g.lineTo(0,B));g.close();g.fillAndStroke();g.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(g.begin(),g.moveTo(v-30,C+20),g.lineTo(v-20,C+10),g.lineTo(v-10,+C+20),g.close(),g.stroke())};mxCellRenderer.registerShape("folder",q);q.prototype.getLabelMargins=function(g){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var r=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var C=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;r=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var v=mxUtils.getValue(this.style,"rounded",!1),B=mxUtils.getValue(this.style,"absoluteArcSize",!1),G=parseFloat(mxUtils.getValue(this.style,+"arcSize",this.arcSize));B||(G*=Math.min(g.width,g.height));G=Math.min(G,.5*g.width,.5*(g.height-r));v||(G=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(G,0,Math.min(g.width,g.width-C),Math.min(g.height,g.height-r)):new mxRectangle(Math.min(g.width,g.width-C),0,G,Math.min(g.height,g.height-r))}return new mxRectangle(0,Math.min(g.height,r),0,0)}return null};mxUtils.extend(x,mxCylinder);x.prototype.arcSize=.1;x.prototype.paintVertexShape=function(g,r,C,+v,B){g.translate(r,C);var G=mxUtils.getValue(this.style,"rounded",!1),I=mxUtils.getValue(this.style,"absoluteArcSize",!1);r=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));C=mxUtils.getValue(this.style,"umlStateConnection",null);I||(r*=Math.min(v,B));r=Math.min(r,.5*v,.5*B);G||(r=0);G=0;null!=C&&(G=10);g.begin();g.moveTo(G,r);g.arcTo(r,r,0,0,1,G+r,0);g.lineTo(v-r,0);g.arcTo(r,r,0,0,1,v,r);g.lineTo(v,B-r);g.arcTo(r,r,0,0,1,v-r,B);g.lineTo(G+r,B);g.arcTo(r,r,0,0,1,G,B-r);g.close();g.fillAndStroke();+g.setShadow(!1);"collapseState"==mxUtils.getValue(this.style,"umlStateSymbol",null)&&(g.roundrect(v-40,B-20,10,10,3,3),g.stroke(),g.roundrect(v-20,B-20,10,10,3,3),g.stroke(),g.begin(),g.moveTo(v-30,B-15),g.lineTo(v-20,B-15),g.stroke());"connPointRefEntry"==C?(g.ellipse(0,.5*B-10,20,20),g.fillAndStroke()):"connPointRefExit"==C&&(g.ellipse(0,.5*B-10,20,20),g.fillAndStroke(),g.begin(),g.moveTo(5,.5*B-5),g.lineTo(15,.5*B+5),g.moveTo(15,.5*B-5),g.lineTo(5,.5*B+5),g.stroke())};x.prototype.getLabelMargins=+function(g){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};mxCellRenderer.registerShape("umlState",x);mxUtils.extend(A,mxShape);A.prototype.featureColor="#666666";A.prototype.paintVertexShape=function(g,r,C,v,B){var G=mxUtils.getValue(this.style,"smileyType","happy"),I=mxUtils.getValue(this.style,"smileyFeatureColor",A.prototype.featureColor);g.translate(r,C);r=Math.min(v,B)/2;g.ellipse(v/+2-r,B/2-r,2*r,2*r);g.fillAndStroke();r=Math.min(v,B)/30;v/=2;B/=2;g.setFillColor(I);g.setStrokeColor(I);g.setStrokeWidth(2*r);I=1.5*r;C=5*r;var ba=5*r;g.ellipse(v-C-I,B-ba-I,2*I,2*I);g.fillAndStroke();g.ellipse(v+C-I,B-ba-I,2*I,2*I);g.fillAndStroke();g.setStrokeWidth(1*r);g.setFillColor("#000000");"happy"==G?(G=v,I=B+2*r,g.begin(),g.moveTo(G+7.5*r,I),g.arcTo(7.5*r,7.5*r,0,1,1,G-7.5*r,I),g.lineTo(G-6.818*r,I),g.arcTo(6.818*r,6.818*r,0,1,0,G+6.818*r,I),g.close(),g.fillAndStroke()):"sad"==G?(G=v,I=B++7*r,g.begin(),g.moveTo(G-7.5*r,I),g.arcTo(7.5*r,7.5*r,0,1,1,G+7.5*r,I),g.lineTo(G+6.818*r,I),g.arcTo(6.818*r,6.818*r,0,1,0,G-6.818*r,I),g.close(),g.fillAndStroke()):(g.begin(),g.moveTo(v-5*r,B+7*r),g.lineTo(v+5*r,B+7*r),g.stroke())};mxCellRenderer.registerShape("smileyFace",A);mxUtils.extend(E,mxActor);E.prototype.size=30;E.prototype.isRoundable=function(){return!0};E.prototype.redrawPath=function(g,r,C,v,B){r=Math.max(0,Math.min(v,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));+C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(r,0),new mxPoint(v,0),new mxPoint(v,B),new mxPoint(0,B),new mxPoint(0,r)],this.isRounded,C,!0);g.end()};mxCellRenderer.registerShape("card",E);mxUtils.extend(J,mxActor);J.prototype.size=.4;J.prototype.redrawPath=function(g,r,C,v,B){r=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));g.moveTo(0,r/2);g.quadTo(v/4,1.4*r,v/2,r/2);g.quadTo(3*v/4,r*(1-1.4),+v,r/2);g.lineTo(v,B-r/2);g.quadTo(3*v/4,B-1.4*r,v/2,B-r/2);g.quadTo(v/4,B-r*(1-1.4),0,B-r/2);g.lineTo(0,r/2);g.close();g.end()};J.prototype.getLabelBounds=function(g){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var r=mxUtils.getValue(this.style,"size",this.size),C=g.width,v=g.height;if(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return r*=v,new mxRectangle(g.x,g.y+r,C,v-2*r);r*=C;return new mxRectangle(g.x+r,g.y,C-2*r,v)}return g};+mxCellRenderer.registerShape("tape",J);mxUtils.extend(Q,mxActor);Q.prototype.size=.3;Q.prototype.getLabelMargins=function(g){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*g.height):null};Q.prototype.redrawPath=function(g,r,C,v,B){r=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));g.moveTo(0,0);g.lineTo(v,0);g.lineTo(v,B-r/2);g.quadTo(3*v/4,B-1.4*r,v/2,B-r/2);g.quadTo(v/4,B-r*(1-+1.4),0,B-r/2);g.lineTo(0,r/2);g.close();g.end()};mxCellRenderer.registerShape("document",Q);var Z=mxCylinder.prototype.getCylinderSize;mxCylinder.prototype.getCylinderSize=function(g,r,C,v){var B=mxUtils.getValue(this.style,"size");return null!=B?v*Math.max(0,Math.min(1,B)):Z.apply(this,arguments)};mxCylinder.prototype.getLabelMargins=function(g){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var r=2*mxUtils.getValue(this.style,"size",.15);return new mxRectangle(0,Math.min(this.maxHeight*this.scale,g.height*r),0,0)}return null};f.prototype.getLabelMargins=function(g){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var r=mxUtils.getValue(this.style,"size",15);mxUtils.getValue(this.style,"lid",!0)||(r/=2);return new mxRectangle(0,Math.min(g.height*this.scale,2*r*this.scale),0,Math.max(0,.3*r*this.scale))}return null};q.prototype.getLabelMargins=function(g){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var r=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,-"labelInHeader",!1)){var C=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;r=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var u=mxUtils.getValue(this.style,"rounded",!1),B=mxUtils.getValue(this.style,"absoluteArcSize",!1),G=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));B||(G*=Math.min(g.width,g.height));G=Math.min(G,.5*g.width,.5*(g.height-r));u||(G=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(G,0,Math.min(g.width,g.width-+"labelInHeader",!1)){var C=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;r=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var v=mxUtils.getValue(this.style,"rounded",!1),B=mxUtils.getValue(this.style,"absoluteArcSize",!1),G=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));B||(G*=Math.min(g.width,g.height));G=Math.min(G,.5*g.width,.5*(g.height-r));v||(G=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(G,0,Math.min(g.width,g.width-C),Math.min(g.height,g.height-r)):new mxRectangle(Math.min(g.width,g.width-C),0,G,Math.min(g.height,g.height-r))}return new mxRectangle(0,Math.min(g.height,r),0,0)}return null};x.prototype.getLabelMargins=function(g){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};N.prototype.getLabelMargins=function(g){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var r=mxUtils.getValue(this.style,"size",-15);return new mxRectangle(0,Math.min(g.height*this.scale,r*this.scale),0,Math.max(0,r*this.scale))}return null};mxUtils.extend(V,mxActor);V.prototype.size=.2;V.prototype.fixedSize=20;V.prototype.isRoundable=function(){return!0};V.prototype.redrawPath=function(g,r,C,u,B){r="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,-mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,B),new mxPoint(r,0),new mxPoint(u,0),new mxPoint(u-r,B)],this.isRounded,C,!0);g.end()};mxCellRenderer.registerShape("parallelogram",V);mxUtils.extend(K,mxActor);K.prototype.size=.2;K.prototype.fixedSize=20;K.prototype.isRoundable=function(){return!0};K.prototype.redrawPath=function(g,r,C,u,B){r="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*u,parseFloat(mxUtils.getValue(this.style,"size",-this.fixedSize)))):u*Math.max(0,Math.min(.5,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,B),new mxPoint(r,0),new mxPoint(u-r,0),new mxPoint(u,B)],this.isRounded,C,!0)};mxCellRenderer.registerShape("trapezoid",K);mxUtils.extend(fa,mxActor);fa.prototype.size=.5;fa.prototype.redrawPath=function(g,r,C,u,B){g.setFillColor(null);r=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,-"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(u,0),new mxPoint(r,0),new mxPoint(r,B/2),new mxPoint(0,B/2),new mxPoint(r,B/2),new mxPoint(r,B),new mxPoint(u,B)],this.isRounded,C,!1);g.end()};mxCellRenderer.registerShape("curlyBracket",fa);mxUtils.extend(Y,mxActor);Y.prototype.redrawPath=function(g,r,C,u,B){g.setStrokeWidth(1);g.setFillColor(this.stroke);r=u/5;g.rect(0,0,r,B);g.fillAndStroke();g.rect(2*r,0,r,B);-g.fillAndStroke();g.rect(4*r,0,r,B);g.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",Y);aa.prototype.moveTo=function(g,r){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=g;this.lastY=r;this.firstX=g;this.firstY=r};aa.prototype.close=function(){null!=this.firstX&&null!=this.firstY&&(this.lineTo(this.firstX,this.firstY),this.originalClose.apply(this.canvas,arguments));this.originalClose.apply(this.canvas,arguments)};aa.prototype.quadTo=function(g,r,C,u){this.originalQuadTo.apply(this.canvas,-arguments);this.lastX=C;this.lastY=u};aa.prototype.curveTo=function(g,r,C,u,B,G){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=B;this.lastY=G};aa.prototype.arcTo=function(g,r,C,u,B,G,I){this.originalArcTo.apply(this.canvas,arguments);this.lastX=G;this.lastY=I};aa.prototype.lineTo=function(g,r){if(null!=this.lastX&&null!=this.lastY){var C=function(pa){return"number"===typeof pa?pa?0>pa?-1:1:pa===pa?0:NaN:NaN},u=Math.abs(g-this.lastX),B=Math.abs(r-this.lastY),G=Math.sqrt(u*u+B*B);if(2>-G){this.originalLineTo.apply(this.canvas,arguments);this.lastX=g;this.lastY=r;return}var I=Math.round(G/10),ba=this.defaultVariation;5>I&&(I=5,ba/=3);var U=C(g-this.lastX)*u/I;C=C(r-this.lastY)*B/I;u/=G;B/=G;for(G=0;G<I;G++){var za=(Math.random()-.5)*ba;this.originalLineTo.call(this.canvas,U*G+this.lastX-za*B,C*G+this.lastY-za*u)}this.originalLineTo.call(this.canvas,g,r)}else this.originalLineTo.apply(this.canvas,arguments);this.lastX=g;this.lastY=r};aa.prototype.destroy=function(){this.canvas.lineTo=+15);return new mxRectangle(0,Math.min(g.height*this.scale,r*this.scale),0,Math.max(0,r*this.scale))}return null};mxUtils.extend(V,mxActor);V.prototype.size=.2;V.prototype.fixedSize=20;V.prototype.isRoundable=function(){return!0};V.prototype.redrawPath=function(g,r,C,v,B){r="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,+mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,B),new mxPoint(r,0),new mxPoint(v,0),new mxPoint(v-r,B)],this.isRounded,C,!0);g.end()};mxCellRenderer.registerShape("parallelogram",V);mxUtils.extend(K,mxActor);K.prototype.size=.2;K.prototype.fixedSize=20;K.prototype.isRoundable=function(){return!0};K.prototype.redrawPath=function(g,r,C,v,B){r="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*v,parseFloat(mxUtils.getValue(this.style,"size",+this.fixedSize)))):v*Math.max(0,Math.min(.5,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,B),new mxPoint(r,0),new mxPoint(v-r,0),new mxPoint(v,B)],this.isRounded,C,!0)};mxCellRenderer.registerShape("trapezoid",K);mxUtils.extend(fa,mxActor);fa.prototype.size=.5;fa.prototype.redrawPath=function(g,r,C,v,B){g.setFillColor(null);r=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,+"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(v,0),new mxPoint(r,0),new mxPoint(r,B/2),new mxPoint(0,B/2),new mxPoint(r,B/2),new mxPoint(r,B),new mxPoint(v,B)],this.isRounded,C,!1);g.end()};mxCellRenderer.registerShape("curlyBracket",fa);mxUtils.extend(Y,mxActor);Y.prototype.redrawPath=function(g,r,C,v,B){g.setStrokeWidth(1);g.setFillColor(this.stroke);r=v/5;g.rect(0,0,r,B);g.fillAndStroke();g.rect(2*r,0,r,B);+g.fillAndStroke();g.rect(4*r,0,r,B);g.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",Y);aa.prototype.moveTo=function(g,r){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=g;this.lastY=r;this.firstX=g;this.firstY=r};aa.prototype.close=function(){null!=this.firstX&&null!=this.firstY&&(this.lineTo(this.firstX,this.firstY),this.originalClose.apply(this.canvas,arguments));this.originalClose.apply(this.canvas,arguments)};aa.prototype.quadTo=function(g,r,C,v){this.originalQuadTo.apply(this.canvas,+arguments);this.lastX=C;this.lastY=v};aa.prototype.curveTo=function(g,r,C,v,B,G){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=B;this.lastY=G};aa.prototype.arcTo=function(g,r,C,v,B,G,I){this.originalArcTo.apply(this.canvas,arguments);this.lastX=G;this.lastY=I};aa.prototype.lineTo=function(g,r){if(null!=this.lastX&&null!=this.lastY){var C=function(pa){return"number"===typeof pa?pa?0>pa?-1:1:pa===pa?0:NaN:NaN},v=Math.abs(g-this.lastX),B=Math.abs(r-this.lastY),G=Math.sqrt(v*v+B*B);if(2>+G){this.originalLineTo.apply(this.canvas,arguments);this.lastX=g;this.lastY=r;return}var I=Math.round(G/10),ba=this.defaultVariation;5>I&&(I=5,ba/=3);var U=C(g-this.lastX)*v/I;C=C(r-this.lastY)*B/I;v/=G;B/=G;for(G=0;G<I;G++){var za=(Math.random()-.5)*ba;this.originalLineTo.call(this.canvas,U*G+this.lastX-za*B,C*G+this.lastY-za*v)}this.originalLineTo.call(this.canvas,g,r)}else this.originalLineTo.apply(this.canvas,arguments);this.lastX=g;this.lastY=r};aa.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo};var da=mxShape.prototype.beforePaint;mxShape.prototype.beforePaint=function(g){da.apply(this,arguments);null==g.handJiggle&&(g.handJiggle=this.createHandJiggle(g))};var ma=mxShape.prototype.afterPaint;mxShape.prototype.afterPaint=function(g){ma.apply(this,arguments);null!=g.handJiggle&&(g.handJiggle.destroy(),delete g.handJiggle)};var sa=mxShape.prototype.updateBoundingBox;mxShape.prototype.updateBoundingBox=function(){sa.apply(this,arguments);if(!(this.useSvgBoundingBox||null==this.boundingBox||this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")&&"0"==mxUtils.getValue(this.style,"comic","0"))){var g=this.getSvgBoundingBox();null!=g&&(this.augmentShadowBoundingBox(g),this.boundingBox.add(g))}};mxShape.prototype.createComicCanvas=function(g){return new aa(g,mxUtils.getValue(this.style,"jiggle",Editor.sketchDefaultJiggle))};mxShape.prototype.createHandJiggle=function(g){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"comic","0")?null:this.createComicCanvas(g)};var wa=mxRectangleShape.prototype.isHtmlAllowed;mxRectangleShape.prototype.isHtmlAllowed=function(){return!this.outline&&(null==this.style||"0"==mxUtils.getValue(this.style,"comic","0")&&"0"==mxUtils.getValue(this.style,"sketch","1"==urlParams.rough?"1":"0"))&&wa.apply(this,-arguments)};var ya=mxRectangleShape.prototype.paintBackground;mxRectangleShape.prototype.paintBackground=function(g,r,C,u,B){if(null==g.handJiggle||g.handJiggle.constructor!=aa)ya.apply(this,arguments);else{var G=!0;null!=this.style&&(G="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(G||null!=this.fill&&this.fill!=mxConstants.NONE||null!=this.stroke&&this.stroke!=mxConstants.NONE)G||null!=this.fill&&this.fill!=mxConstants.NONE||(g.pointerEvents=!1),g.begin(),this.isRounded?-("1"==mxUtils.getValue(this.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?G=Math.min(u/2,Math.min(B/2,mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2)):(G=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,G=Math.min(u*G,B*G)),g.moveTo(r+G,C),g.lineTo(r+u-G,C),g.quadTo(r+u,C,r+u,C+G),g.lineTo(r+u,C+B-G),g.quadTo(r+u,C+B,r+u-G,C+B),g.lineTo(r+G,C+B),g.quadTo(r,C+B,r,C+B-G),g.lineTo(r,C+G),g.quadTo(r,C,r+G,C)):(g.moveTo(r,-C),g.lineTo(r+u,C),g.lineTo(r+u,C+B),g.lineTo(r,C+B),g.lineTo(r,C)),g.close(),g.end(),g.fillAndStroke()}};mxUtils.extend(ja,mxRectangleShape);ja.prototype.size=.1;ja.prototype.fixedSize=!1;ja.prototype.isHtmlAllowed=function(){return!1};ja.prototype.getLabelBounds=function(g){if(mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,!0)==(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)){var r=g.width,C=g.height;g=new mxRectangle(g.x,-g.y,r,C);var u=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),B=parseFloat(mxUtils.getValue(this.style,"size",this.size));u?B=Math.max(0,Math.min(r,B*this.scale)):(B=r*Math.max(0,Math.min(1,B)),this.isRounded&&(u=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,B=Math.max(B,Math.min(r*u,C*u))));g.x+=Math.round(B);g.width-=Math.round(2*B);return g}return g};ja.prototype.paintForeground=function(g,r,C,u,B){var G=mxUtils.getValue(this.style,-"fixedSize",this.fixedSize),I=parseFloat(mxUtils.getValue(this.style,"size",this.size));I=G?Math.max(0,Math.min(u,I)):u*Math.max(0,Math.min(1,I));this.isRounded&&(G=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,I=Math.max(I,Math.min(u*G,B*G)));I=Math.round(I);g.begin();g.moveTo(r+I,C);g.lineTo(r+I,C+B);g.moveTo(r+u-I,C);g.lineTo(r+u-I,C+B);g.end();g.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("process",-ja);mxCellRenderer.registerShape("process2",ja);mxUtils.extend(ka,mxRectangleShape);ka.prototype.paintBackground=function(g,r,C,u,B){g.setFillColor(mxConstants.NONE);g.rect(r,C,u,B);g.fill()};ka.prototype.paintForeground=function(g,r,C,u,B){};mxCellRenderer.registerShape("transparent",ka);mxUtils.extend(ua,mxHexagon);ua.prototype.size=30;ua.prototype.position=.5;ua.prototype.position2=.5;ua.prototype.base=20;ua.prototype.getLabelMargins=function(){return new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,-"size",this.size))*this.scale)};ua.prototype.isRoundable=function(){return!0};ua.prototype.redrawPath=function(g,r,C,u,B){r=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var G=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),I=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2)))),ba=Math.max(0,Math.min(u,-parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(g,[new mxPoint(0,0),new mxPoint(u,0),new mxPoint(u,B-C),new mxPoint(Math.min(u,G+ba),B-C),new mxPoint(I,B),new mxPoint(Math.max(0,G),B-C),new mxPoint(0,B-C)],this.isRounded,r,!0,[4])};mxCellRenderer.registerShape("callout",ua);mxUtils.extend(Ca,mxActor);Ca.prototype.tipX=-.25;Ca.prototype.tipY=1;Ca.prototype.base=20;Ca.prototype.maxTipOffset=100;Ca.prototype.isRoundable=function(){return!0};Ca.prototype.getTipOffset=function(){var g=-this.maxTipOffset,r=parseFloat(mxUtils.getValue(this.style,"tipX",this.tipX)),C=parseFloat(mxUtils.getValue(this.style,"tipY",this.tipY));return new mxPoint(Math.max(-g,Math.min(g,isFinite(r)?r:this.tipX)),Math.max(-g,Math.min(g,isFinite(C)?C:this.tipY)))};Ca.prototype.getTailPoints=function(g,r){var C=this.getTipOffset(),u=C.x*g;C=C.y*r;if(Math.abs(u)<=g/2&&Math.abs(C)<=r/2)return null;var B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,G=parseFloat(mxUtils.getValue(this.style,-"base",this.base));G=isFinite(G)?Math.max(0,G):this.base;B=this.isRounded?B:0;var I=new mxPoint(g/2+u,r/2+C);if(Math.abs(u)*r>=Math.abs(C)*g&&0!=u)return B=Math.min(B,r/2),G=Math.max(0,Math.min(G,r-2*B))/2,C=r/2+g/2*C/Math.abs(u),C=Math.max(B+G,Math.min(r-B-G,C)),0<u?{points:[new mxPoint(g,C-G),I,new mxPoint(g,C+G)],index:2}:{points:[new mxPoint(0,C+G),I,new mxPoint(0,C-G)],index:4};B=Math.min(B,g/2);G=Math.max(0,Math.min(G,g-2*B))/2;u=g/2+r/2*u/Math.abs(C);u=Math.max(B+G,Math.min(g-B-G,u));return 0<-C?{points:[new mxPoint(u+G,r),I,new mxPoint(u-G,r)],index:3}:{points:[new mxPoint(u-G,0),I,new mxPoint(u+G,0)],index:1}};Ca.prototype.redrawPath=function(g,r,C,u,B){r=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;C=[new mxPoint(0,0),new mxPoint(u,0),new mxPoint(u,B),new mxPoint(0,B)];u=this.getTailPoints(u,B);B=null;null!=u&&(C.splice.apply(C,[u.index,0].concat(u.points)),B=[u.index,u.index+1,u.index+2]);this.addPoints(g,C,this.isRounded,r,!0,B)};Ca.prototype.getShapeBoundingBox=-function(){var g=mxShape.prototype.getShapeBoundingBox.apply(this,arguments);if(null!=g&&null!=this.bounds){var r=this.createBoundingBox(),C=this.scale,u=r.width/C,B=r.height/C,G=this.getTailPoints(u,B);if(null!=G){var I=G.points[1],ba=r.x+r.width/2;r=r.y+r.height/2;C=new mxRectangle(ba+(I.x-u/2)*C*(this.flipH?-1:1),r+(I.y-B/2)*C*(this.flipV?-1:1),0,0);this.augmentBoundingBox(C);u=G.points[0].x-I.x;B=G.points[0].y-I.y;var U=G.points[2].x-I.x;G=G.points[2].y-I.y;I=Math.sqrt(u*u+B*B);var za=Math.sqrt(U*-U+G*G);0<I&&0<za&&(G=Math.sqrt((1-Math.max(-1,Math.min(1,(u*U+B*G)/(I*za))))/2),C.grow(((0<G?Math.min(10,1/G):10)-1)*this.strokewidth*this.scale/2));G=this.getShapeRotation();0!=G&&(C=mxUtils.getBoundingBox(C,G,new mxPoint(ba,r)));g.add(C)}}return g};mxCellRenderer.registerShape("wedgeCallout",Ca);mxUtils.extend(ia,mxActor);ia.prototype.size=.2;ia.prototype.fixedSize=20;ia.prototype.isRoundable=function(){return!0};ia.prototype.redrawPath=function(g,r,C,u,B){r="0"!=mxUtils.getValue(this.style,"fixedSize",-"0")?Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,0),new mxPoint(u-r,0),new mxPoint(u,B/2),new mxPoint(u-r,B),new mxPoint(0,B),new mxPoint(r,B/2)],this.isRounded,C,!0);g.end()};mxCellRenderer.registerShape("step",ia);mxUtils.extend(k,mxHexagon);k.prototype.size=-.25;k.prototype.fixedSize=20;k.prototype.isRoundable=function(){return!0};k.prototype.redrawPath=function(g,r,C,u,B){r="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*u,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(r,0),new mxPoint(u-r,0),new mxPoint(u,.5*B),-new mxPoint(u-r,B),new mxPoint(r,B),new mxPoint(0,.5*B)],this.isRounded,C,!0)};mxCellRenderer.registerShape("hexagon",k);mxUtils.extend(v,mxRectangleShape);v.prototype.isHtmlAllowed=function(){return!1};v.prototype.paintForeground=function(g,r,C,u,B){var G=Math.min(u/5,B/5)+1;g.begin();g.moveTo(r+u/2,C+G);g.lineTo(r+u/2,C+B-G);g.moveTo(r+G,C+B/2);g.lineTo(r+u-G,C+B/2);g.end();g.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("plus",v);var Ma=-mxRhombus.prototype.paintVertexShape;mxRhombus.prototype.getLabelBounds=function(g){if(1==this.style["double"]){var r=(2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(g.x+r,g.y+r,g.width-2*r,g.height-2*r)}return g};mxRhombus.prototype.paintVertexShape=function(g,r,C,u,B){Ma.apply(this,arguments);var G=r,I=C,ba=u,U=B;if(!this.outline&&1==this.style["double"]){var za=2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||-0);r+=za;C+=za;u-=2*za;B-=2*za;0<u&&0<B&&(g.setShadow(!1),Ma.apply(this,[g,r,C,u,B]))}this.glass&&!this.outline&&null!=this.fill&&this.fill!=mxConstants.NONE&&this.paintGlassEffect(g,G,I,ba,U,0)};mxShape.prototype.paintGlassEffect=function(g,r,C,u,B,G){var I=Math.ceil(this.strokewidth/2);g.setGradient("#ffffff","#ffffff",r,C,u,.6*B,"south",.9,.1);g.begin();this.paintGlassEffectPath(g,r,C,u,B,I,G);g.close();g.fill()};mxShape.prototype.paintGlassEffectPath=function(g,r,C,u,B,G,I){I+=2*G;this.isRounded?-(g.moveTo(r-G+I,C-G),g.quadTo(r-G,C-G,r-G,C-G+I),g.lineTo(r-G,C+.4*B),g.quadTo(r+.5*u,C+.7*B,r+u+G,C+.4*B),g.lineTo(r+u+G,C-G+I),g.quadTo(r+u+G,C-G,r+u+G-I,C-G)):(g.moveTo(r-G,C-G),g.lineTo(r-G,C+.4*B),g.quadTo(r+.5*u,C+.7*B,r+u+G,C+.4*B),g.lineTo(r+u+G,C-G))};mxEllipse.prototype.paintGlassEffectPath=function(g,r,C,u,B,G,I){I=u/2+G;G=B/2+G;r+=u/2;C+=B/2;g.moveTo(r-I,C);g.curveTo(r-I,C-.5522847498*G,r-.5522847498*I,C-G,r,C-G);g.curveTo(r+.5522847498*I,C-G,r+I,C-.5522847498*G,r+I,C);g.quadTo(r,C+.2*-B,r-I,C)};mxRhombus.prototype.paintGlassEffectPath=function(g,r,C,u,B,G,I){G=u/2;I=B/2;var ba=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(r,C+I),new mxPoint(r+G,C),new mxPoint(r+u,C+I)],this.isRounded,ba,!1);g.quadTo(r+G,C+.7*B,r,C+I)};var Ya=mxEllipse.prototype.paintVertexShape;mxEllipse.prototype.paintVertexShape=function(g,r,C,u,B){Ya.apply(this,arguments);this.glass&&!this.outline&&null!=this.fill&&this.fill!=mxConstants.NONE&&-this.paintGlassEffect(g,r,C,u,B,0)};mxUtils.extend(H,mxRectangleShape);H.prototype.isHtmlAllowed=function(){return!1};H.prototype.getLabelBounds=function(g){if(1==this.style["double"]){var r=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(g.x+r,g.y+r,g.width-2*r,g.height-2*r)}return g};H.prototype.paintForeground=function(g,r,C,u,B){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var G=Math.max(2,this.strokewidth+-1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);r+=G;C+=G;u-=2*G;B-=2*G;0<u&&0<B&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}g.setDashed(!1);G=0;do{var I=mxCellRenderer.defaultShapes[this.style["symbol"+G]];if(null!=I){var ba=this.style["symbol"+G+"Align"],U=this.style["symbol"+G+"VerticalAlign"],za=this.style["symbol"+G+"Width"],pa=this.style["symbol"+G+"Height"],Wa=this.style["symbol"+G+"Spacing"]||0,ub=this.style["symbol"+G+"VSpacing"]||Wa,jb=this.style["symbol"+G+-"ArcSpacing"];null!=jb&&(jb*=this.getArcSize(u+this.strokewidth,B+this.strokewidth),Wa+=jb,ub+=jb);jb=r;var Ra=C;jb=ba==mxConstants.ALIGN_CENTER?jb+(u-za)/2:ba==mxConstants.ALIGN_RIGHT?jb+(u-za-Wa):jb+Wa;Ra=U==mxConstants.ALIGN_MIDDLE?Ra+(B-pa)/2:U==mxConstants.ALIGN_BOTTOM?Ra+(B-pa-ub):Ra+ub;g.save();ba=new I;ba.style=this.style;I.prototype.paintVertexShape.call(ba,g,jb,Ra,za,pa);g.restore()}G++}while(null!=I)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",-H);mxUtils.extend(P,mxCylinder);P.prototype.redrawPath=function(g,r,C,u,B,G){G?(g.moveTo(0,0),g.lineTo(u/2,B/2),g.lineTo(u,0),g.end()):(g.moveTo(0,0),g.lineTo(u,0),g.lineTo(u,B),g.lineTo(0,B),g.close())};mxCellRenderer.registerShape("message",P);mxUtils.extend(T,mxShape);T.prototype.paintBackground=function(g,r,C,u,B){g.translate(r,C);g.ellipse(u/4,0,u/2,B/4);g.fillAndStroke();g.begin();g.moveTo(u/2,B/4);g.lineTo(u/2,2*B/3);g.moveTo(u/2,B/3);g.lineTo(0,B/3);g.moveTo(u/2,B/3);g.lineTo(u,B/3);g.moveTo(u/-2,2*B/3);g.lineTo(0,B);g.moveTo(u/2,2*B/3);g.lineTo(u,B);g.end();g.stroke()};mxCellRenderer.registerShape("umlActor",T);mxUtils.extend(W,mxShape);W.prototype.getLabelMargins=function(g){return new mxRectangle(g.width/6,0,0,0)};W.prototype.paintBackground=function(g,r,C,u,B){g.translate(r,C);g.begin();g.moveTo(0,B/4);g.lineTo(0,3*B/4);g.end();g.stroke();g.begin();g.moveTo(0,B/2);g.lineTo(u/6,B/2);g.end();g.stroke();g.ellipse(u/6,0,5*u/6,B);g.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",-W);mxUtils.extend(ha,mxEllipse);ha.prototype.paintVertexShape=function(g,r,C,u,B){mxEllipse.prototype.paintVertexShape.apply(this,arguments);g.begin();g.moveTo(r+u/8,C+B);g.lineTo(r+7*u/8,C+B);g.end();g.stroke()};mxCellRenderer.registerShape("umlEntity",ha);mxUtils.extend(X,mxShape);X.prototype.paintVertexShape=function(g,r,C,u,B){g.translate(r,C);g.begin();g.moveTo(u,0);g.lineTo(0,B);g.moveTo(0,0);g.lineTo(u,B);g.end();g.stroke()};mxCellRenderer.registerShape("umlDestroy",X);mxUtils.extend(ea,mxShape);-ea.prototype.getLabelBounds=function(g){return new mxRectangle(g.x,g.y+g.height/8,g.width,7*g.height/8)};ea.prototype.paintBackground=function(g,r,C,u,B){g.translate(r,C);g.begin();g.moveTo(3*u/8,B/8*1.1);g.lineTo(5*u/8,0);g.end();g.stroke();g.ellipse(0,B/8,u,7*B/8);g.fillAndStroke()};ea.prototype.paintForeground=function(g,r,C,u,B){g.begin();g.moveTo(3*u/8,B/8*1.1);g.lineTo(5*u/8,B/4);g.end();g.stroke()};mxCellRenderer.registerShape("umlControl",ea);mxUtils.extend(la,mxShape);la.prototype.iconSize=-44;la.prototype.paintBackground=function(g,r,C,u,B){B=Math.min(this.iconSize,u,B);var G=.9*B,I=.45*B;r=r+u/2-B/2;u=C+B/2;var ba=r+.175*G;G=ba-G;g.begin();g.moveTo(G,u-I/2);g.lineTo(G,u+I/2);g.end();g.stroke();g.begin();g.moveTo(G,u);g.lineTo(ba,u);g.end();g.stroke();g.ellipse(r,C,B,B);g.fillAndStroke()};mxCellRenderer.registerShape("seqBoundary",la);mxCellRenderer.registerShape("seqControl",oa(ea,44));mxCellRenderer.registerShape("seqEntity",oa(ha,44));mxUtils.extend(ca,mxShape);ca.prototype.paintBackground=-function(g,r,C,u,B){var G=B/2,I=G/(2.5+B/50);g.save();g.translate(r,C);g.begin();g.moveTo(I,0);g.lineTo(u-I,0);g.arcTo(I,G,0,0,1,u-I,B);g.lineTo(I,B);g.arcTo(I,G,0,0,1,I,0);g.close();g.fillAndStroke();g.restore()};ca.prototype.paintForeground=function(g,r,C,u,B){var G=B/2,I=G/(2.5+B/50);g.save();g.translate(r,C);g.begin();g.moveTo(u-I,0);g.arcTo(I,G,0,0,0,u-I,B);g.stroke();g.restore()};mxCellRenderer.registerShape("seqQueue",ca);mxUtils.extend(ta,mxShape);ta.prototype.paintBackground=function(g,r,-C,u,B){g.rect(r+6,C-6,u,B);g.fillAndStroke();g.rect(r,C,u,B);g.fillAndStroke()};mxCellRenderer.registerShape("seqCollections",ta);mxUtils.extend(xa,mxShape);xa.prototype.paintBackground=function(g,r,C,u,B){B=u/3;var G=u/3,I=B/2,ba=I/(2.5+B/50);g.translate(r+(u-B)/2,C);g.begin();g.moveTo(0,ba);g.arcTo(I,ba,0,0,0,B,ba);g.arcTo(I,ba,0,0,0,0,ba);g.lineTo(0,G-ba);g.arcTo(I,ba,0,0,0,B,G-ba);g.lineTo(B,ba);g.fillAndStroke()};mxCellRenderer.registerShape("seqDatabase",xa);mxUtils.extend(qa,mxShape);qa.prototype.paintBackground=-function(g,r,C,u,B){r+=u/2;C+=15;u=C+15;B=u+20;var G=u+10,I=B+15;g.ellipse(r-15,C-15,30,30);g.fillAndStroke();g.begin();g.moveTo(r,u);g.lineTo(r,B);g.moveTo(r-18,G);g.lineTo(r+18,G);g.moveTo(r,B);g.lineTo(r-16,I);g.moveTo(r,B);g.lineTo(r+16,I);g.stroke()};mxCellRenderer.registerShape("seqActorStick",qa);mxUtils.extend(Ba,mxRectangleShape);Ba.prototype.size=40;Ba.prototype.isHtmlAllowed=function(){return!1};Ba.prototype.isMirrored=function(){return"1"==mxUtils.getValue(this.style,"lifelineMirror",-"0")};Ba.prototype.getHeadSize=function(g){return Math.max(0,Math.min(this.isMirrored()?g/2:g,parseFloat(mxUtils.getValue(this.style,"size",this.size))))};Ba.prototype.getLabelBounds=function(g){var r=Math.max(0,Math.min(this.isMirrored()?g.height/2:g.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(g.x,g.y,g.width,r)};Ba.prototype.paintBackground=function(g,r,C,u,B){var G=this.getHeadSize(B),I=this.isMirrored(),ba=mxUtils.getValue(this.style,"participant");-null==ba||null==this.state?(mxRectangleShape.prototype.paintBackground.call(this,g,r,C,u,G),I&&mxRectangleShape.prototype.paintBackground.call(this,g,r,C+B-G,u,G)):(ba=this.state.view.graph.cellRenderer.getShape(ba),null!=ba&&ba!=Ba&&(ba=new ba,ba.apply(this.state),g.save(),ba.paintVertexShape(g,r,C,u,G),g.restore(),I&&(g.save(),ba.paintVertexShape(g,r,C+B-G,u,G),g.restore())));B=I?B-G:B;G<B&&(g.setDashed("1"==mxUtils.getValue(this.style,"lifelineDashed","1")),g.begin(),g.moveTo(r+u/2,C+G),g.lineTo(r+-u/2,C+B),g.end(),g.stroke())};Ba.prototype.paintForeground=function(g,r,C,u,B){var G=mxUtils.getValue(this.style,"participant"),I=this.getHeadSize(B),ba=this.isMirrored();null==G&&(mxRectangleShape.prototype.paintForeground.call(this,g,r,C,u,Math.min(B,I)),ba&&mxRectangleShape.prototype.paintForeground.call(this,g,r,C+B-I,u,I));ba&&this.paintMirrorLabel(g,r,C+B-I,u,I)};Ba.prototype.paintMirrorLabel=function(g,r,C,u,B){var G=null!=this.state?this.state.view.graph.getLabel(this.state.cell):null;this.mirrorLabelValue=+arguments)};var ya=mxRectangleShape.prototype.paintBackground;mxRectangleShape.prototype.paintBackground=function(g,r,C,v,B){if(null==g.handJiggle||g.handJiggle.constructor!=aa)ya.apply(this,arguments);else{var G=!0;null!=this.style&&(G="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(G||null!=this.fill&&this.fill!=mxConstants.NONE||null!=this.stroke&&this.stroke!=mxConstants.NONE)G||null!=this.fill&&this.fill!=mxConstants.NONE||(g.pointerEvents=!1),g.begin(),this.isRounded?+("1"==mxUtils.getValue(this.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?G=Math.min(v/2,Math.min(B/2,mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2)):(G=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,G=Math.min(v*G,B*G)),g.moveTo(r+G,C),g.lineTo(r+v-G,C),g.quadTo(r+v,C,r+v,C+G),g.lineTo(r+v,C+B-G),g.quadTo(r+v,C+B,r+v-G,C+B),g.lineTo(r+G,C+B),g.quadTo(r,C+B,r,C+B-G),g.lineTo(r,C+G),g.quadTo(r,C,r+G,C)):(g.moveTo(r,+C),g.lineTo(r+v,C),g.lineTo(r+v,C+B),g.lineTo(r,C+B),g.lineTo(r,C)),g.close(),g.end(),g.fillAndStroke()}};mxUtils.extend(ja,mxRectangleShape);ja.prototype.size=.1;ja.prototype.fixedSize=!1;ja.prototype.isHtmlAllowed=function(){return!1};ja.prototype.getLabelBounds=function(g){if(mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,!0)==(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)){var r=g.width,C=g.height;g=new mxRectangle(g.x,+g.y,r,C);var v=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),B=parseFloat(mxUtils.getValue(this.style,"size",this.size));v?B=Math.max(0,Math.min(r,B*this.scale)):(B=r*Math.max(0,Math.min(1,B)),this.isRounded&&(v=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,B=Math.max(B,Math.min(r*v,C*v))));g.x+=Math.round(B);g.width-=Math.round(2*B);return g}return g};ja.prototype.paintForeground=function(g,r,C,v,B){var G=mxUtils.getValue(this.style,+"fixedSize",this.fixedSize),I=parseFloat(mxUtils.getValue(this.style,"size",this.size));I=G?Math.max(0,Math.min(v,I)):v*Math.max(0,Math.min(1,I));this.isRounded&&(G=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,I=Math.max(I,Math.min(v*G,B*G)));I=Math.round(I);g.begin();g.moveTo(r+I,C);g.lineTo(r+I,C+B);g.moveTo(r+v-I,C);g.lineTo(r+v-I,C+B);g.end();g.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("process",+ja);mxCellRenderer.registerShape("process2",ja);mxUtils.extend(ka,mxRectangleShape);ka.prototype.paintBackground=function(g,r,C,v,B){g.setFillColor(mxConstants.NONE);g.rect(r,C,v,B);g.fill()};ka.prototype.paintForeground=function(g,r,C,v,B){};mxCellRenderer.registerShape("transparent",ka);mxUtils.extend(ua,mxHexagon);ua.prototype.size=30;ua.prototype.position=.5;ua.prototype.position2=.5;ua.prototype.base=20;ua.prototype.getLabelMargins=function(){return new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,+"size",this.size))*this.scale)};ua.prototype.isRoundable=function(){return!0};ua.prototype.redrawPath=function(g,r,C,v,B){r=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var G=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),I=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2)))),ba=Math.max(0,Math.min(v,+parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(g,[new mxPoint(0,0),new mxPoint(v,0),new mxPoint(v,B-C),new mxPoint(Math.min(v,G+ba),B-C),new mxPoint(I,B),new mxPoint(Math.max(0,G),B-C),new mxPoint(0,B-C)],this.isRounded,r,!0,[4])};mxCellRenderer.registerShape("callout",ua);mxUtils.extend(Ca,mxActor);Ca.prototype.tipX=-.25;Ca.prototype.tipY=1;Ca.prototype.base=20;Ca.prototype.maxTipOffset=100;Ca.prototype.isRoundable=function(){return!0};Ca.prototype.getTipOffset=function(){var g=+this.maxTipOffset,r=parseFloat(mxUtils.getValue(this.style,"tipX",this.tipX)),C=parseFloat(mxUtils.getValue(this.style,"tipY",this.tipY));return new mxPoint(Math.max(-g,Math.min(g,isFinite(r)?r:this.tipX)),Math.max(-g,Math.min(g,isFinite(C)?C:this.tipY)))};Ca.prototype.getTailPoints=function(g,r){var C=this.getTipOffset(),v=C.x*g;C=C.y*r;if(Math.abs(v)<=g/2&&Math.abs(C)<=r/2)return null;var B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,G=parseFloat(mxUtils.getValue(this.style,+"base",this.base));G=isFinite(G)?Math.max(0,G):this.base;B=this.isRounded?B:0;var I=new mxPoint(g/2+v,r/2+C);if(Math.abs(v)*r>=Math.abs(C)*g&&0!=v)return B=Math.min(B,r/2),G=Math.max(0,Math.min(G,r-2*B))/2,C=r/2+g/2*C/Math.abs(v),C=Math.max(B+G,Math.min(r-B-G,C)),0<v?{points:[new mxPoint(g,C-G),I,new mxPoint(g,C+G)],index:2}:{points:[new mxPoint(0,C+G),I,new mxPoint(0,C-G)],index:4};B=Math.min(B,g/2);G=Math.max(0,Math.min(G,g-2*B))/2;v=g/2+r/2*v/Math.abs(C);v=Math.max(B+G,Math.min(g-B-G,v));return 0<+C?{points:[new mxPoint(v+G,r),I,new mxPoint(v-G,r)],index:3}:{points:[new mxPoint(v-G,0),I,new mxPoint(v+G,0)],index:1}};Ca.prototype.redrawPath=function(g,r,C,v,B){r=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;C=[new mxPoint(0,0),new mxPoint(v,0),new mxPoint(v,B),new mxPoint(0,B)];v=this.getTailPoints(v,B);B=null;null!=v&&(C.splice.apply(C,[v.index,0].concat(v.points)),B=[v.index,v.index+1,v.index+2]);this.addPoints(g,C,this.isRounded,r,!0,B)};Ca.prototype.getShapeBoundingBox=+function(){var g=mxShape.prototype.getShapeBoundingBox.apply(this,arguments);if(null!=g&&null!=this.bounds){var r=this.createBoundingBox(),C=this.scale,v=r.width/C,B=r.height/C,G=this.getTailPoints(v,B);if(null!=G){var I=G.points[1],ba=r.x+r.width/2;r=r.y+r.height/2;C=new mxRectangle(ba+(I.x-v/2)*C*(this.flipH?-1:1),r+(I.y-B/2)*C*(this.flipV?-1:1),0,0);this.augmentBoundingBox(C);v=G.points[0].x-I.x;B=G.points[0].y-I.y;var U=G.points[2].x-I.x;G=G.points[2].y-I.y;I=Math.sqrt(v*v+B*B);var za=Math.sqrt(U*+U+G*G);0<I&&0<za&&(G=Math.sqrt((1-Math.max(-1,Math.min(1,(v*U+B*G)/(I*za))))/2),C.grow(((0<G?Math.min(10,1/G):10)-1)*this.strokewidth*this.scale/2));G=this.getShapeRotation();0!=G&&(C=mxUtils.getBoundingBox(C,G,new mxPoint(ba,r)));g.add(C)}}return g};mxCellRenderer.registerShape("wedgeCallout",Ca);mxUtils.extend(ia,mxActor);ia.prototype.size=.2;ia.prototype.fixedSize=20;ia.prototype.isRoundable=function(){return!0};ia.prototype.redrawPath=function(g,r,C,v,B){r="0"!=mxUtils.getValue(this.style,"fixedSize",+"0")?Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,0),new mxPoint(v-r,0),new mxPoint(v,B/2),new mxPoint(v-r,B),new mxPoint(0,B),new mxPoint(r,B/2)],this.isRounded,C,!0);g.end()};mxCellRenderer.registerShape("step",ia);mxUtils.extend(k,mxHexagon);k.prototype.size=+.25;k.prototype.fixedSize=20;k.prototype.isRoundable=function(){return!0};k.prototype.redrawPath=function(g,r,C,v,B){r="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*v,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(r,0),new mxPoint(v-r,0),new mxPoint(v,.5*B),+new mxPoint(v-r,B),new mxPoint(r,B),new mxPoint(0,.5*B)],this.isRounded,C,!0)};mxCellRenderer.registerShape("hexagon",k);mxUtils.extend(u,mxRectangleShape);u.prototype.isHtmlAllowed=function(){return!1};u.prototype.paintForeground=function(g,r,C,v,B){var G=Math.min(v/5,B/5)+1;g.begin();g.moveTo(r+v/2,C+G);g.lineTo(r+v/2,C+B-G);g.moveTo(r+G,C+B/2);g.lineTo(r+v-G,C+B/2);g.end();g.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("plus",u);var Ma=+mxRhombus.prototype.paintVertexShape;mxRhombus.prototype.getLabelBounds=function(g){if(1==this.style["double"]){var r=(2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(g.x+r,g.y+r,g.width-2*r,g.height-2*r)}return g};mxRhombus.prototype.paintVertexShape=function(g,r,C,v,B){Ma.apply(this,arguments);var G=r,I=C,ba=v,U=B;if(!this.outline&&1==this.style["double"]){var za=2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||+0);r+=za;C+=za;v-=2*za;B-=2*za;0<v&&0<B&&(g.setShadow(!1),Ma.apply(this,[g,r,C,v,B]))}this.glass&&!this.outline&&null!=this.fill&&this.fill!=mxConstants.NONE&&this.paintGlassEffect(g,G,I,ba,U,0)};mxShape.prototype.paintGlassEffect=function(g,r,C,v,B,G){var I=Math.ceil(this.strokewidth/2);g.setGradient("#ffffff","#ffffff",r,C,v,.6*B,"south",.9,.1);g.begin();this.paintGlassEffectPath(g,r,C,v,B,I,G);g.close();g.fill()};mxShape.prototype.paintGlassEffectPath=function(g,r,C,v,B,G,I){I+=2*G;this.isRounded?+(g.moveTo(r-G+I,C-G),g.quadTo(r-G,C-G,r-G,C-G+I),g.lineTo(r-G,C+.4*B),g.quadTo(r+.5*v,C+.7*B,r+v+G,C+.4*B),g.lineTo(r+v+G,C-G+I),g.quadTo(r+v+G,C-G,r+v+G-I,C-G)):(g.moveTo(r-G,C-G),g.lineTo(r-G,C+.4*B),g.quadTo(r+.5*v,C+.7*B,r+v+G,C+.4*B),g.lineTo(r+v+G,C-G))};mxEllipse.prototype.paintGlassEffectPath=function(g,r,C,v,B,G,I){I=v/2+G;G=B/2+G;r+=v/2;C+=B/2;g.moveTo(r-I,C);g.curveTo(r-I,C-.5522847498*G,r-.5522847498*I,C-G,r,C-G);g.curveTo(r+.5522847498*I,C-G,r+I,C-.5522847498*G,r+I,C);g.quadTo(r,C+.2*+B,r-I,C)};mxRhombus.prototype.paintGlassEffectPath=function(g,r,C,v,B,G,I){G=v/2;I=B/2;var ba=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(r,C+I),new mxPoint(r+G,C),new mxPoint(r+v,C+I)],this.isRounded,ba,!1);g.quadTo(r+G,C+.7*B,r,C+I)};var Ya=mxEllipse.prototype.paintVertexShape;mxEllipse.prototype.paintVertexShape=function(g,r,C,v,B){Ya.apply(this,arguments);this.glass&&!this.outline&&null!=this.fill&&this.fill!=mxConstants.NONE&&+this.paintGlassEffect(g,r,C,v,B,0)};mxUtils.extend(H,mxRectangleShape);H.prototype.isHtmlAllowed=function(){return!1};H.prototype.getLabelBounds=function(g){if(1==this.style["double"]){var r=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(g.x+r,g.y+r,g.width-2*r,g.height-2*r)}return g};H.prototype.paintForeground=function(g,r,C,v,B){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var G=Math.max(2,this.strokewidth++1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);r+=G;C+=G;v-=2*G;B-=2*G;0<v&&0<B&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}g.setDashed(!1);G=0;do{var I=mxCellRenderer.defaultShapes[this.style["symbol"+G]];if(null!=I){var ba=this.style["symbol"+G+"Align"],U=this.style["symbol"+G+"VerticalAlign"],za=this.style["symbol"+G+"Width"],pa=this.style["symbol"+G+"Height"],Wa=this.style["symbol"+G+"Spacing"]||0,ub=this.style["symbol"+G+"VSpacing"]||Wa,jb=this.style["symbol"+G++"ArcSpacing"];null!=jb&&(jb*=this.getArcSize(v+this.strokewidth,B+this.strokewidth),Wa+=jb,ub+=jb);jb=r;var Ra=C;jb=ba==mxConstants.ALIGN_CENTER?jb+(v-za)/2:ba==mxConstants.ALIGN_RIGHT?jb+(v-za-Wa):jb+Wa;Ra=U==mxConstants.ALIGN_MIDDLE?Ra+(B-pa)/2:U==mxConstants.ALIGN_BOTTOM?Ra+(B-pa-ub):Ra+ub;g.save();ba=new I;ba.style=this.style;I.prototype.paintVertexShape.call(ba,g,jb,Ra,za,pa);g.restore()}G++}while(null!=I)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",+H);mxUtils.extend(P,mxCylinder);P.prototype.redrawPath=function(g,r,C,v,B,G){G?(g.moveTo(0,0),g.lineTo(v/2,B/2),g.lineTo(v,0),g.end()):(g.moveTo(0,0),g.lineTo(v,0),g.lineTo(v,B),g.lineTo(0,B),g.close())};mxCellRenderer.registerShape("message",P);mxUtils.extend(T,mxShape);T.prototype.paintBackground=function(g,r,C,v,B){g.translate(r,C);g.ellipse(v/4,0,v/2,B/4);g.fillAndStroke();g.begin();g.moveTo(v/2,B/4);g.lineTo(v/2,2*B/3);g.moveTo(v/2,B/3);g.lineTo(0,B/3);g.moveTo(v/2,B/3);g.lineTo(v,B/3);g.moveTo(v/+2,2*B/3);g.lineTo(0,B);g.moveTo(v/2,2*B/3);g.lineTo(v,B);g.end();g.stroke()};mxCellRenderer.registerShape("umlActor",T);mxUtils.extend(W,mxShape);W.prototype.getLabelMargins=function(g){return new mxRectangle(g.width/6,0,0,0)};W.prototype.paintBackground=function(g,r,C,v,B){g.translate(r,C);g.begin();g.moveTo(0,B/4);g.lineTo(0,3*B/4);g.end();g.stroke();g.begin();g.moveTo(0,B/2);g.lineTo(v/6,B/2);g.end();g.stroke();g.ellipse(v/6,0,5*v/6,B);g.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",+W);mxUtils.extend(ha,mxEllipse);ha.prototype.paintVertexShape=function(g,r,C,v,B){mxEllipse.prototype.paintVertexShape.apply(this,arguments);g.begin();g.moveTo(r+v/8,C+B);g.lineTo(r+7*v/8,C+B);g.end();g.stroke()};mxCellRenderer.registerShape("umlEntity",ha);mxUtils.extend(X,mxShape);X.prototype.paintVertexShape=function(g,r,C,v,B){g.translate(r,C);g.begin();g.moveTo(v,0);g.lineTo(0,B);g.moveTo(0,0);g.lineTo(v,B);g.end();g.stroke()};mxCellRenderer.registerShape("umlDestroy",X);mxUtils.extend(ea,mxShape);+ea.prototype.getLabelBounds=function(g){return new mxRectangle(g.x,g.y+g.height/8,g.width,7*g.height/8)};ea.prototype.paintBackground=function(g,r,C,v,B){g.translate(r,C);g.begin();g.moveTo(3*v/8,B/8*1.1);g.lineTo(5*v/8,0);g.end();g.stroke();g.ellipse(0,B/8,v,7*B/8);g.fillAndStroke()};ea.prototype.paintForeground=function(g,r,C,v,B){g.begin();g.moveTo(3*v/8,B/8*1.1);g.lineTo(5*v/8,B/4);g.end();g.stroke()};mxCellRenderer.registerShape("umlControl",ea);mxUtils.extend(la,mxShape);la.prototype.iconSize=+44;la.prototype.paintBackground=function(g,r,C,v,B){B=Math.min(this.iconSize,v,B);var G=.9*B,I=.45*B;r=r+v/2-B/2;v=C+B/2;var ba=r+.175*G;G=ba-G;g.begin();g.moveTo(G,v-I/2);g.lineTo(G,v+I/2);g.end();g.stroke();g.begin();g.moveTo(G,v);g.lineTo(ba,v);g.end();g.stroke();g.ellipse(r,C,B,B);g.fillAndStroke()};mxCellRenderer.registerShape("seqBoundary",la);mxCellRenderer.registerShape("seqControl",oa(ea,44));mxCellRenderer.registerShape("seqEntity",oa(ha,44));mxUtils.extend(ca,mxShape);ca.prototype.paintBackground=+function(g,r,C,v,B){var G=B/2,I=G/(2.5+B/50);g.save();g.translate(r,C);g.begin();g.moveTo(I,0);g.lineTo(v-I,0);g.arcTo(I,G,0,0,1,v-I,B);g.lineTo(I,B);g.arcTo(I,G,0,0,1,I,0);g.close();g.fillAndStroke();g.restore()};ca.prototype.paintForeground=function(g,r,C,v,B){var G=B/2,I=G/(2.5+B/50);g.save();g.translate(r,C);g.begin();g.moveTo(v-I,0);g.arcTo(I,G,0,0,0,v-I,B);g.stroke();g.restore()};mxCellRenderer.registerShape("seqQueue",ca);mxUtils.extend(ta,mxShape);ta.prototype.paintBackground=function(g,r,+C,v,B){g.rect(r+6,C-6,v,B);g.fillAndStroke();g.rect(r,C,v,B);g.fillAndStroke()};mxCellRenderer.registerShape("seqCollections",ta);mxUtils.extend(xa,mxShape);xa.prototype.paintBackground=function(g,r,C,v,B){B=v/3;var G=v/3,I=B/2,ba=I/(2.5+B/50);g.translate(r+(v-B)/2,C);g.begin();g.moveTo(0,ba);g.arcTo(I,ba,0,0,0,B,ba);g.arcTo(I,ba,0,0,0,0,ba);g.lineTo(0,G-ba);g.arcTo(I,ba,0,0,0,B,G-ba);g.lineTo(B,ba);g.fillAndStroke()};mxCellRenderer.registerShape("seqDatabase",xa);mxUtils.extend(qa,mxShape);qa.prototype.paintBackground=+function(g,r,C,v,B){r+=v/2;C+=15;v=C+15;B=v+20;var G=v+10,I=B+15;g.ellipse(r-15,C-15,30,30);g.fillAndStroke();g.begin();g.moveTo(r,v);g.lineTo(r,B);g.moveTo(r-18,G);g.lineTo(r+18,G);g.moveTo(r,B);g.lineTo(r-16,I);g.moveTo(r,B);g.lineTo(r+16,I);g.stroke()};mxCellRenderer.registerShape("seqActorStick",qa);mxUtils.extend(Ba,mxRectangleShape);Ba.prototype.size=40;Ba.prototype.isHtmlAllowed=function(){return!1};Ba.prototype.isMirrored=function(){return"1"==mxUtils.getValue(this.style,"lifelineMirror",+"0")};Ba.prototype.getHeadSize=function(g){return Math.max(0,Math.min(this.isMirrored()?g/2:g,parseFloat(mxUtils.getValue(this.style,"size",this.size))))};Ba.prototype.getLabelBounds=function(g){var r=Math.max(0,Math.min(this.isMirrored()?g.height/2:g.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(g.x,g.y,g.width,r)};Ba.prototype.paintBackground=function(g,r,C,v,B){var G=this.getHeadSize(B),I=this.isMirrored(),ba=mxUtils.getValue(this.style,"participant");+null==ba||null==this.state?(mxRectangleShape.prototype.paintBackground.call(this,g,r,C,v,G),I&&mxRectangleShape.prototype.paintBackground.call(this,g,r,C+B-G,v,G)):(ba=this.state.view.graph.cellRenderer.getShape(ba),null!=ba&&ba!=Ba&&(ba=new ba,ba.apply(this.state),g.save(),ba.paintVertexShape(g,r,C,v,G),g.restore(),I&&(g.save(),ba.paintVertexShape(g,r,C+B-G,v,G),g.restore())));B=I?B-G:B;G<B&&(g.setDashed("1"==mxUtils.getValue(this.style,"lifelineDashed","1")),g.begin(),g.moveTo(r+v/2,C+G),g.lineTo(r++v/2,C+B),g.end(),g.stroke())};Ba.prototype.paintForeground=function(g,r,C,v,B){var G=mxUtils.getValue(this.style,"participant"),I=this.getHeadSize(B),ba=this.isMirrored();null==G&&(mxRectangleShape.prototype.paintForeground.call(this,g,r,C,v,Math.min(B,I)),ba&&mxRectangleShape.prototype.paintForeground.call(this,g,r,C+B-I,v,I));ba&&this.paintMirrorLabel(g,r,C+B-I,v,I)};Ba.prototype.paintMirrorLabel=function(g,r,C,v,B){var G=null!=this.state?this.state.view.graph.getLabel(this.state.cell):null;this.mirrorLabelValue=G;if(null!=G&&""!=G){g.setFontColor(mxUtils.getValue(this.style,mxConstants.STYLE_FONTCOLOR,"black"));g.setFontBackgroundColor(mxUtils.getValue(this.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null));g.setFontBorderColor(mxUtils.getValue(this.style,mxConstants.STYLE_LABEL_BORDERCOLOR,null));g.setFontFamily(mxUtils.getValue(this.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY));g.setFontSize(parseFloat(mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE)));g.setFontStyle(parseInt(mxUtils.getValue(this.style,mxConstants.STYLE_FONTSTYLE,0)));var I=mxUtils.getValue(this.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),ba=mxUtils.getValue(this.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE),U=parseInt(mxUtils.getValue(this.style,mxConstants.STYLE_SPACING,2)),za=parseFloat(mxUtils.getValue(this.style,mxConstants.STYLE_SPACING_TOP,0))+U,pa=parseFloat(mxUtils.getValue(this.style,mxConstants.STYLE_SPACING_BOTTOM,0))+U,Wa=parseFloat(mxUtils.getValue(this.style,-mxConstants.STYLE_SPACING_LEFT,0))+U;U=parseFloat(mxUtils.getValue(this.style,mxConstants.STYLE_SPACING_RIGHT,0))+U;r=I==mxConstants.ALIGN_LEFT?r+Wa:I==mxConstants.ALIGN_RIGHT?r+u-U:r+u/2;C=ba==mxConstants.ALIGN_TOP?C+za+1:ba==mxConstants.ALIGN_BOTTOM?C+B-pa-1:C+B/2;B="wrap"==mxUtils.getValue(this.style,mxConstants.STYLE_WHITE_SPACE,null);za="1"==mxUtils.getValue(this.style,"html","0")?"html":"";"html"==za&&(G=Graph.sanitizeHtml(G));g.text(r,C,B?u-Wa-U:0,0,G,I,ba,B,za,null,!1,0,null)}};mxCellRenderer.registerShape("umlLifeline",+mxConstants.STYLE_SPACING_LEFT,0))+U;U=parseFloat(mxUtils.getValue(this.style,mxConstants.STYLE_SPACING_RIGHT,0))+U;r=I==mxConstants.ALIGN_LEFT?r+Wa:I==mxConstants.ALIGN_RIGHT?r+v-U:r+v/2;C=ba==mxConstants.ALIGN_TOP?C+za+1:ba==mxConstants.ALIGN_BOTTOM?C+B-pa-1:C+B/2;B="wrap"==mxUtils.getValue(this.style,mxConstants.STYLE_WHITE_SPACE,null);za="1"==mxUtils.getValue(this.style,"html","0")?"html":"";"html"==za&&(G=Graph.sanitizeHtml(G));g.text(r,C,B?v-Wa-U:0,0,G,I,ba,B,za,null,!1,0,null)}};mxCellRenderer.registerShape("umlLifeline",Ba);var Ta=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=function(g,r){return Ta.apply(this,arguments)||void 0!==r.mirrorLabelValue&&r.mirrorLabelValue!=g.view.graph.getLabel(g.cell)};mxUtils.extend(na,mxShape);na.prototype.width=60;na.prototype.height=30;na.prototype.corner=10;na.prototype.configurePointerEvents=function(g){var r=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);null==this.style||null!=r&&r!=mxConstants.NONE&&0!=-this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(g.pointerEvents=!1)};na.prototype.getLabelMargins=function(g){return new mxRectangle(0,0,g.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),g.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};na.prototype.paintBackground=function(g,r,C,u,B){var G=this.corner,I=Math.min(u,Math.max(G,parseFloat(mxUtils.getValue(this.style,"width",this.width)))),-ba=Math.min(B,Math.max(1.5*G,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),U=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);U!=mxConstants.NONE&&(g.setFillColor(U),g.rect(r,C,u,B),g.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(g,r,C,u,B),g.setGradient(this.fill,this.gradient,r,C,u,B,this.gradientDirection)):g.setFillColor(this.fill);g.pointerEvents=!0;g.begin();g.moveTo(r,-C);g.lineTo(r+I,C);g.lineTo(r+I,C+Math.max(0,ba-1.5*G));g.lineTo(r+Math.max(0,I-G),C+ba);g.lineTo(r,C+ba);g.close();g.fillAndStroke();this.configurePointerEvents(g);g.begin();g.moveTo(r+I,C);g.lineTo(r+u,C);g.lineTo(r+u,C+B);g.lineTo(r,C+B);g.lineTo(r,C+ba);g.stroke()};mxCellRenderer.registerShape("umlFrame",na);mxPerimeter.CenterPerimeter=function(g,r,C,u){return new mxPoint(g.getCenterX(),g.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=-function(g,r,C,u){u=Ba.prototype.size;var B=g.y+g.height;null!=r&&(u=mxUtils.getValue(r.style,"size",u)*r.view.scale,"1"==mxUtils.getValue(r.style,"lifelineMirror","0")&&(B-=u));r=parseFloat(r.style[mxConstants.STYLE_STROKEWIDTH]||1)*r.view.scale/2-1;C.x<g.getCenterX()&&(r=-1*(r+1));return new mxPoint(g.getCenterX()+r,Math.min(B,Math.max(g.y+u,C.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=function(g,r,C,u){u=!0;return mxPerimeter.RectanglePerimeter.apply(this,-arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",mxPerimeter.OrthogonalPerimeter);mxPerimeter.BackbonePerimeter=function(g,r,C,u){u=parseFloat(r.style[mxConstants.STYLE_STROKEWIDTH]||1)*r.view.scale/2-1;null!=r.style.backboneSize&&(u+=parseFloat(r.style.backboneSize)*r.view.scale/2-1);if("south"==r.style[mxConstants.STYLE_DIRECTION]||"north"==r.style[mxConstants.STYLE_DIRECTION])return C.x<g.getCenterX()&&(u=-1*(u+1)),new mxPoint(g.getCenterX()+u,Math.min(g.y+g.height,Math.max(g.y,C.y)));-C.y<g.getCenterY()&&(u=-1*(u+1));return new mxPoint(Math.min(g.x+g.width,Math.max(g.x,C.x)),g.getCenterY()+u)};mxStyleRegistry.putValue("backbonePerimeter",mxPerimeter.BackbonePerimeter);mxPerimeter.CalloutPerimeter=function(g,r,C,u){return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(g,new mxRectangle(0,0,0,Math.max(0,Math.min(g.height,parseFloat(mxUtils.getValue(r.style,"size",ua.prototype.size))*r.view.scale))),r.style),r,C,u)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);-mxPerimeter.ParallelogramPerimeter=function(g,r,C,u){var B="0"!=mxUtils.getValue(r.style,"fixedSize","0"),G=B?V.prototype.fixedSize:V.prototype.size;null!=r&&(G=mxUtils.getValue(r.style,"size",G));B&&(G*=r.view.scale);var I=g.x,ba=g.y,U=g.width,za=g.height;r=null!=r?mxUtils.getValue(r.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;r==mxConstants.DIRECTION_NORTH||r==mxConstants.DIRECTION_SOUTH?(B=B?Math.max(0,Math.min(za,G)):za*Math.max(0,Math.min(1,G)),ba=-[new mxPoint(I,ba),new mxPoint(I+U,ba+B),new mxPoint(I+U,ba+za),new mxPoint(I,ba+za-B),new mxPoint(I,ba)]):(B=B?Math.max(0,Math.min(.5*U,G)):U*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I+B,ba),new mxPoint(I+U,ba),new mxPoint(I+U-B,ba+za),new mxPoint(I,ba+za),new mxPoint(I+B,ba)]);za=g.getCenterX();g=g.getCenterY();g=new mxPoint(za,g);u&&(C.x<I||C.x>I+U?g.y=C.y:g.x=C.x);return mxUtils.getPerimeterPoint(ba,g,C)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=-function(g,r,C,u){var B="0"!=mxUtils.getValue(r.style,"fixedSize","0"),G=B?K.prototype.fixedSize:K.prototype.size;null!=r&&(G=mxUtils.getValue(r.style,"size",G));B&&(G*=r.view.scale);var I=g.x,ba=g.y,U=g.width,za=g.height;r=null!=r?mxUtils.getValue(r.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;r==mxConstants.DIRECTION_EAST?(B=B?Math.max(0,Math.min(.5*U,G)):U*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I+B,ba),new mxPoint(I+U-B,ba),new mxPoint(I+U,ba+za),+this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(g.pointerEvents=!1)};na.prototype.getLabelMargins=function(g){return new mxRectangle(0,0,g.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),g.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};na.prototype.paintBackground=function(g,r,C,v,B){var G=this.corner,I=Math.min(v,Math.max(G,parseFloat(mxUtils.getValue(this.style,"width",this.width)))),+ba=Math.min(B,Math.max(1.5*G,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),U=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);U!=mxConstants.NONE&&(g.setFillColor(U),g.rect(r,C,v,B),g.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(g,r,C,v,B),g.setGradient(this.fill,this.gradient,r,C,v,B,this.gradientDirection)):g.setFillColor(this.fill);g.pointerEvents=!0;g.begin();g.moveTo(r,+C);g.lineTo(r+I,C);g.lineTo(r+I,C+Math.max(0,ba-1.5*G));g.lineTo(r+Math.max(0,I-G),C+ba);g.lineTo(r,C+ba);g.close();g.fillAndStroke();this.configurePointerEvents(g);g.begin();g.moveTo(r+I,C);g.lineTo(r+v,C);g.lineTo(r+v,C+B);g.lineTo(r,C+B);g.lineTo(r,C+ba);g.stroke()};mxCellRenderer.registerShape("umlFrame",na);mxPerimeter.CenterPerimeter=function(g,r,C,v){return new mxPoint(g.getCenterX(),g.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=+function(g,r,C,v){v=Ba.prototype.size;var B=g.y+g.height;null!=r&&(v=mxUtils.getValue(r.style,"size",v)*r.view.scale,"1"==mxUtils.getValue(r.style,"lifelineMirror","0")&&(B-=v));r=parseFloat(r.style[mxConstants.STYLE_STROKEWIDTH]||1)*r.view.scale/2-1;C.x<g.getCenterX()&&(r=-1*(r+1));return new mxPoint(g.getCenterX()+r,Math.min(B,Math.max(g.y+v,C.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=function(g,r,C,v){v=!0;return mxPerimeter.RectanglePerimeter.apply(this,+arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",mxPerimeter.OrthogonalPerimeter);mxPerimeter.BackbonePerimeter=function(g,r,C,v){v=parseFloat(r.style[mxConstants.STYLE_STROKEWIDTH]||1)*r.view.scale/2-1;null!=r.style.backboneSize&&(v+=parseFloat(r.style.backboneSize)*r.view.scale/2-1);if("south"==r.style[mxConstants.STYLE_DIRECTION]||"north"==r.style[mxConstants.STYLE_DIRECTION])return C.x<g.getCenterX()&&(v=-1*(v+1)),new mxPoint(g.getCenterX()+v,Math.min(g.y+g.height,Math.max(g.y,C.y)));+C.y<g.getCenterY()&&(v=-1*(v+1));return new mxPoint(Math.min(g.x+g.width,Math.max(g.x,C.x)),g.getCenterY()+v)};mxStyleRegistry.putValue("backbonePerimeter",mxPerimeter.BackbonePerimeter);mxPerimeter.CalloutPerimeter=function(g,r,C,v){return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(g,new mxRectangle(0,0,0,Math.max(0,Math.min(g.height,parseFloat(mxUtils.getValue(r.style,"size",ua.prototype.size))*r.view.scale))),r.style),r,C,v)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);+mxPerimeter.ParallelogramPerimeter=function(g,r,C,v){var B="0"!=mxUtils.getValue(r.style,"fixedSize","0"),G=B?V.prototype.fixedSize:V.prototype.size;null!=r&&(G=mxUtils.getValue(r.style,"size",G));B&&(G*=r.view.scale);var I=g.x,ba=g.y,U=g.width,za=g.height;r=null!=r?mxUtils.getValue(r.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;r==mxConstants.DIRECTION_NORTH||r==mxConstants.DIRECTION_SOUTH?(B=B?Math.max(0,Math.min(za,G)):za*Math.max(0,Math.min(1,G)),ba=+[new mxPoint(I,ba),new mxPoint(I+U,ba+B),new mxPoint(I+U,ba+za),new mxPoint(I,ba+za-B),new mxPoint(I,ba)]):(B=B?Math.max(0,Math.min(.5*U,G)):U*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I+B,ba),new mxPoint(I+U,ba),new mxPoint(I+U-B,ba+za),new mxPoint(I,ba+za),new mxPoint(I+B,ba)]);za=g.getCenterX();g=g.getCenterY();g=new mxPoint(za,g);v&&(C.x<I||C.x>I+U?g.y=C.y:g.x=C.x);return mxUtils.getPerimeterPoint(ba,g,C)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=+function(g,r,C,v){var B="0"!=mxUtils.getValue(r.style,"fixedSize","0"),G=B?K.prototype.fixedSize:K.prototype.size;null!=r&&(G=mxUtils.getValue(r.style,"size",G));B&&(G*=r.view.scale);var I=g.x,ba=g.y,U=g.width,za=g.height;r=null!=r?mxUtils.getValue(r.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;r==mxConstants.DIRECTION_EAST?(B=B?Math.max(0,Math.min(.5*U,G)):U*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I+B,ba),new mxPoint(I+U-B,ba),new mxPoint(I+U,ba+za),new mxPoint(I,ba+za),new mxPoint(I+B,ba)]):r==mxConstants.DIRECTION_WEST?(B=B?Math.max(0,Math.min(U,G)):U*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I,ba),new mxPoint(I+U,ba),new mxPoint(I+U-B,ba+za),new mxPoint(I+B,ba+za),new mxPoint(I,ba)]):r==mxConstants.DIRECTION_NORTH?(B=B?Math.max(0,Math.min(za,G)):za*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I,ba+B),new mxPoint(I+U,ba),new mxPoint(I+U,ba+za),new mxPoint(I,ba+za-B),new mxPoint(I,ba+B)]):(B=B?Math.max(0,Math.min(za,G)):za*Math.max(0,Math.min(1,-G)),ba=[new mxPoint(I,ba),new mxPoint(I+U,ba+B),new mxPoint(I+U,ba+za-B),new mxPoint(I,ba+za),new mxPoint(I,ba)]);za=g.getCenterX();g=g.getCenterY();g=new mxPoint(za,g);u&&(C.x<I||C.x>I+U?g.y=C.y:g.x=C.x);return mxUtils.getPerimeterPoint(ba,g,C)};mxStyleRegistry.putValue("trapezoidPerimeter",mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(g,r,C,u){var B="0"!=mxUtils.getValue(r.style,"fixedSize","0"),G=B?ia.prototype.fixedSize:ia.prototype.size;null!=r&&(G=mxUtils.getValue(r.style,+G)),ba=[new mxPoint(I,ba),new mxPoint(I+U,ba+B),new mxPoint(I+U,ba+za-B),new mxPoint(I,ba+za),new mxPoint(I,ba)]);za=g.getCenterX();g=g.getCenterY();g=new mxPoint(za,g);v&&(C.x<I||C.x>I+U?g.y=C.y:g.x=C.x);return mxUtils.getPerimeterPoint(ba,g,C)};mxStyleRegistry.putValue("trapezoidPerimeter",mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(g,r,C,v){var B="0"!=mxUtils.getValue(r.style,"fixedSize","0"),G=B?ia.prototype.fixedSize:ia.prototype.size;null!=r&&(G=mxUtils.getValue(r.style,"size",G));B&&(G*=r.view.scale);var I=g.x,ba=g.y,U=g.width,za=g.height,pa=g.getCenterX();g=g.getCenterY();r=null!=r?mxUtils.getValue(r.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;r==mxConstants.DIRECTION_EAST?(B=B?Math.max(0,Math.min(U,G)):U*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I,ba),new mxPoint(I+U-B,ba),new mxPoint(I+U,g),new mxPoint(I+U-B,ba+za),new mxPoint(I,ba+za),new mxPoint(I+B,g),new mxPoint(I,ba)]):r==mxConstants.DIRECTION_WEST?(B=B?Math.max(0,Math.min(U,G)):U*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I+B,ba),new mxPoint(I+U,ba),new mxPoint(I+U-B,g),new mxPoint(I+U,ba+za),new mxPoint(I+B,ba+za),new mxPoint(I,g),new mxPoint(I+B,ba)]):r==mxConstants.DIRECTION_NORTH?(B=B?Math.max(0,Math.min(za,G)):za*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I,ba+B),new mxPoint(pa,ba),new mxPoint(I+U,ba+B),new mxPoint(I+U,ba+za),new mxPoint(pa,ba+za-B),new mxPoint(I,ba+za),new mxPoint(I,ba+B)]):(B=B?Math.max(0,Math.min(za,G)):za*Math.max(0,Math.min(1,G)),-ba=[new mxPoint(I,ba),new mxPoint(pa,ba+B),new mxPoint(I+U,ba),new mxPoint(I+U,ba+za-B),new mxPoint(pa,ba+za),new mxPoint(I,ba+za-B),new mxPoint(I,ba)]);pa=new mxPoint(pa,g);u&&(C.x<I||C.x>I+U?pa.y=C.y:pa.x=C.x);return mxUtils.getPerimeterPoint(ba,pa,C)};mxStyleRegistry.putValue("stepPerimeter",mxPerimeter.StepPerimeter);mxPerimeter.HexagonPerimeter2=function(g,r,C,u){var B="0"!=mxUtils.getValue(r.style,"fixedSize","0"),G=B?k.prototype.fixedSize:k.prototype.size;null!=r&&(G=mxUtils.getValue(r.style,+ba=[new mxPoint(I,ba),new mxPoint(pa,ba+B),new mxPoint(I+U,ba),new mxPoint(I+U,ba+za-B),new mxPoint(pa,ba+za),new mxPoint(I,ba+za-B),new mxPoint(I,ba)]);pa=new mxPoint(pa,g);v&&(C.x<I||C.x>I+U?pa.y=C.y:pa.x=C.x);return mxUtils.getPerimeterPoint(ba,pa,C)};mxStyleRegistry.putValue("stepPerimeter",mxPerimeter.StepPerimeter);mxPerimeter.HexagonPerimeter2=function(g,r,C,v){var B="0"!=mxUtils.getValue(r.style,"fixedSize","0"),G=B?k.prototype.fixedSize:k.prototype.size;null!=r&&(G=mxUtils.getValue(r.style,"size",G));B&&(G*=r.view.scale);var I=g.x,ba=g.y,U=g.width,za=g.height,pa=g.getCenterX();g=g.getCenterY();r=null!=r?mxUtils.getValue(r.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;r==mxConstants.DIRECTION_NORTH||r==mxConstants.DIRECTION_SOUTH?(B=B?Math.max(0,Math.min(za,G)):za*Math.max(0,Math.min(1,G)),ba=[new mxPoint(pa,ba),new mxPoint(I+U,ba+B),new mxPoint(I+U,ba+za-B),new mxPoint(pa,ba+za),new mxPoint(I,ba+za-B),new mxPoint(I,ba+B),new mxPoint(pa,ba)]):-(B=B?Math.max(0,Math.min(U,G)):U*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I+B,ba),new mxPoint(I+U-B,ba),new mxPoint(I+U,g),new mxPoint(I+U-B,ba+za),new mxPoint(I+B,ba+za),new mxPoint(I,g),new mxPoint(I+B,ba)]);pa=new mxPoint(pa,g);u&&(C.x<I||C.x>I+U?pa.y=C.y:pa.x=C.x);return mxUtils.getPerimeterPoint(ba,pa,C)};mxStyleRegistry.putValue("hexagonPerimeter2",mxPerimeter.HexagonPerimeter2);mxUtils.extend(ra,mxShape);ra.prototype.size=10;ra.prototype.paintBackground=function(g,r,C,u,B){var G=parseFloat(mxUtils.getValue(this.style,-"size",this.size));g.translate(r,C);g.ellipse((u-G)/2,0,G,G);g.fillAndStroke();g.begin();g.moveTo(u/2,G);g.lineTo(u/2,B);g.end();g.stroke()};mxCellRenderer.registerShape("lollipop",ra);mxUtils.extend(va,mxShape);va.prototype.size=10;va.prototype.inset=2;va.prototype.paintBackground=function(g,r,C,u,B){var G=parseFloat(mxUtils.getValue(this.style,"size",this.size)),I=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;g.translate(r,C);g.begin();g.moveTo(u/2,G+I);g.lineTo(u/-2,B);g.end();g.stroke();g.begin();g.moveTo((u-G)/2-I,G/2);g.quadTo((u-G)/2-I,G+I,u/2,G+I);g.quadTo((u+G)/2+I,G+I,(u+G)/2+I,G/2);g.end();g.stroke()};mxCellRenderer.registerShape("requires",va);mxUtils.extend(Ha,mxShape);Ha.prototype.paintBackground=function(g,r,C,u,B){g.translate(r,C);g.begin();g.moveTo(0,0);g.quadTo(u,0,u,B/2);g.quadTo(u,B,0,B);g.end();g.stroke()};mxCellRenderer.registerShape("requiredInterface",Ha);mxUtils.extend(La,mxShape);La.prototype.inset=2;La.prototype.paintBackground=function(g,-r,C,u,B){var G=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;g.translate(r,C);g.ellipse(0,G,u-2*G,B-2*G);g.fillAndStroke();g.begin();g.moveTo(u/2,0);g.quadTo(u,0,u,B/2);g.quadTo(u,B,u/2,B);g.end();g.stroke()};mxCellRenderer.registerShape("providedRequiredInterface",La);mxUtils.extend(Ga,mxCylinder);Ga.prototype.jettyWidth=20;Ga.prototype.jettyHeight=10;Ga.prototype.redrawPath=function(g,r,C,u,B,G){var I=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));-r=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));C=I/2;I=C+I/2;var ba=Math.min(r,B-r),U=Math.min(ba+2*r,B-r);G?(g.moveTo(C,ba),g.lineTo(I,ba),g.lineTo(I,ba+r),g.lineTo(C,ba+r),g.moveTo(C,U),g.lineTo(I,U),g.lineTo(I,U+r),g.lineTo(C,U+r)):(g.moveTo(C,0),g.lineTo(u,0),g.lineTo(u,B),g.lineTo(C,B),g.lineTo(C,U+r),g.lineTo(0,U+r),g.lineTo(0,U),g.lineTo(C,U),g.lineTo(C,ba+r),g.lineTo(0,ba+r),g.lineTo(0,ba),g.lineTo(C,ba),g.close());g.end()};mxCellRenderer.registerShape("module",-Ga);mxUtils.extend(Da,mxCylinder);Da.prototype.jettyWidth=32;Da.prototype.jettyHeight=12;Da.prototype.redrawPath=function(g,r,C,u,B,G){var I=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));r=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));C=I/2;I=C+I/2;var ba=.3*B-r/2,U=.7*B-r/2;G?(g.moveTo(C,ba),g.lineTo(I,ba),g.lineTo(I,ba+r),g.lineTo(C,ba+r),g.moveTo(C,U),g.lineTo(I,U),g.lineTo(I,U+r),g.lineTo(C,U+r)):(g.moveTo(C,0),g.lineTo(u,0),g.lineTo(u,B),g.lineTo(C,-B),g.lineTo(C,U+r),g.lineTo(0,U+r),g.lineTo(0,U),g.lineTo(C,U),g.lineTo(C,ba+r),g.lineTo(0,ba+r),g.lineTo(0,ba),g.lineTo(C,ba),g.close());g.end()};mxCellRenderer.registerShape("component",Da);mxUtils.extend(Qa,mxRectangleShape);Qa.prototype.paintForeground=function(g,r,C,u,B){var G=u/2,I=B/2,ba=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;g.begin();this.addPoints(g,[new mxPoint(r+G,C),new mxPoint(r+u,C+I),new mxPoint(r+G,C+B),new mxPoint(r,C+I)],this.isRounded,-ba,!0);g.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Qa);mxUtils.extend(Ka,mxDoubleEllipse);Ka.prototype.outerStroke=!0;Ka.prototype.paintVertexShape=function(g,r,C,u,B){var G=Math.min(4,Math.min(u/5,B/5));0<u&&0<B&&(g.ellipse(r+G,C+G,u-2*G,B-2*G),g.fillAndStroke());g.setShadow(!1);this.outerStroke&&(g.ellipse(r,C,u,B),g.stroke())};mxCellRenderer.registerShape("endState",Ka);mxUtils.extend(Na,Ka);Na.prototype.outerStroke=+(B=B?Math.max(0,Math.min(U,G)):U*Math.max(0,Math.min(1,G)),ba=[new mxPoint(I+B,ba),new mxPoint(I+U-B,ba),new mxPoint(I+U,g),new mxPoint(I+U-B,ba+za),new mxPoint(I+B,ba+za),new mxPoint(I,g),new mxPoint(I+B,ba)]);pa=new mxPoint(pa,g);v&&(C.x<I||C.x>I+U?pa.y=C.y:pa.x=C.x);return mxUtils.getPerimeterPoint(ba,pa,C)};mxStyleRegistry.putValue("hexagonPerimeter2",mxPerimeter.HexagonPerimeter2);mxUtils.extend(ra,mxShape);ra.prototype.size=10;ra.prototype.paintBackground=function(g,r,C,v,B){var G=parseFloat(mxUtils.getValue(this.style,+"size",this.size));g.translate(r,C);g.ellipse((v-G)/2,0,G,G);g.fillAndStroke();g.begin();g.moveTo(v/2,G);g.lineTo(v/2,B);g.end();g.stroke()};mxCellRenderer.registerShape("lollipop",ra);mxUtils.extend(va,mxShape);va.prototype.size=10;va.prototype.inset=2;va.prototype.paintBackground=function(g,r,C,v,B){var G=parseFloat(mxUtils.getValue(this.style,"size",this.size)),I=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;g.translate(r,C);g.begin();g.moveTo(v/2,G+I);g.lineTo(v/+2,B);g.end();g.stroke();g.begin();g.moveTo((v-G)/2-I,G/2);g.quadTo((v-G)/2-I,G+I,v/2,G+I);g.quadTo((v+G)/2+I,G+I,(v+G)/2+I,G/2);g.end();g.stroke()};mxCellRenderer.registerShape("requires",va);mxUtils.extend(Ha,mxShape);Ha.prototype.paintBackground=function(g,r,C,v,B){g.translate(r,C);g.begin();g.moveTo(0,0);g.quadTo(v,0,v,B/2);g.quadTo(v,B,0,B);g.end();g.stroke()};mxCellRenderer.registerShape("requiredInterface",Ha);mxUtils.extend(La,mxShape);La.prototype.inset=2;La.prototype.paintBackground=function(g,+r,C,v,B){var G=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;g.translate(r,C);g.ellipse(0,G,v-2*G,B-2*G);g.fillAndStroke();g.begin();g.moveTo(v/2,0);g.quadTo(v,0,v,B/2);g.quadTo(v,B,v/2,B);g.end();g.stroke()};mxCellRenderer.registerShape("providedRequiredInterface",La);mxUtils.extend(Ga,mxCylinder);Ga.prototype.jettyWidth=20;Ga.prototype.jettyHeight=10;Ga.prototype.redrawPath=function(g,r,C,v,B,G){var I=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));+r=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));C=I/2;I=C+I/2;var ba=Math.min(r,B-r),U=Math.min(ba+2*r,B-r);G?(g.moveTo(C,ba),g.lineTo(I,ba),g.lineTo(I,ba+r),g.lineTo(C,ba+r),g.moveTo(C,U),g.lineTo(I,U),g.lineTo(I,U+r),g.lineTo(C,U+r)):(g.moveTo(C,0),g.lineTo(v,0),g.lineTo(v,B),g.lineTo(C,B),g.lineTo(C,U+r),g.lineTo(0,U+r),g.lineTo(0,U),g.lineTo(C,U),g.lineTo(C,ba+r),g.lineTo(0,ba+r),g.lineTo(0,ba),g.lineTo(C,ba),g.close());g.end()};mxCellRenderer.registerShape("module",+Ga);mxUtils.extend(Da,mxCylinder);Da.prototype.jettyWidth=32;Da.prototype.jettyHeight=12;Da.prototype.redrawPath=function(g,r,C,v,B,G){var I=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));r=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));C=I/2;I=C+I/2;var ba=.3*B-r/2,U=.7*B-r/2;G?(g.moveTo(C,ba),g.lineTo(I,ba),g.lineTo(I,ba+r),g.lineTo(C,ba+r),g.moveTo(C,U),g.lineTo(I,U),g.lineTo(I,U+r),g.lineTo(C,U+r)):(g.moveTo(C,0),g.lineTo(v,0),g.lineTo(v,B),g.lineTo(C,+B),g.lineTo(C,U+r),g.lineTo(0,U+r),g.lineTo(0,U),g.lineTo(C,U),g.lineTo(C,ba+r),g.lineTo(0,ba+r),g.lineTo(0,ba),g.lineTo(C,ba),g.close());g.end()};mxCellRenderer.registerShape("component",Da);mxUtils.extend(Qa,mxRectangleShape);Qa.prototype.paintForeground=function(g,r,C,v,B){var G=v/2,I=B/2,ba=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;g.begin();this.addPoints(g,[new mxPoint(r+G,C),new mxPoint(r+v,C+I),new mxPoint(r+G,C+B),new mxPoint(r,C+I)],this.isRounded,+ba,!0);g.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Qa);mxUtils.extend(Ka,mxDoubleEllipse);Ka.prototype.outerStroke=!0;Ka.prototype.paintVertexShape=function(g,r,C,v,B){var G=Math.min(4,Math.min(v/5,B/5));0<v&&0<B&&(g.ellipse(r+G,C+G,v-2*G,B-2*G),g.fillAndStroke());g.setShadow(!1);this.outerStroke&&(g.ellipse(r,C,v,B),g.stroke())};mxCellRenderer.registerShape("endState",Ka);mxUtils.extend(Na,Ka);Na.prototype.outerStroke=!1;mxCellRenderer.registerShape("startState",Na);mxUtils.extend(Oa,mxArrowConnector);Oa.prototype.defaultWidth=4;Oa.prototype.isOpenEnded=function(){return!0};Oa.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};Oa.prototype.isArrowRounded=function(){return this.isRounded};mxCellRenderer.registerShape("link",Oa);mxUtils.extend(Fa,mxArrowConnector);Fa.prototype.defaultWidth=10;Fa.prototype.defaultArrowWidth=20;Fa.prototype.getStartArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"startWidth",this.defaultArrowWidth)};Fa.prototype.getEndArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"endWidth",this.defaultArrowWidth)};Fa.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};mxCellRenderer.registerShape("flexArrow",Fa);mxUtils.extend(Aa,mxActor);Aa.prototype.size=30;Aa.prototype.isRoundable=function(){return!0};-Aa.prototype.getLabelMargins=function(g){return mxUtils.getValue(this.style,"boundedLbl",!1)?(g=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(0,g,0,0)):null};Aa.prototype.redrawPath=function(g,r,C,u,B){r=Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size)));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,B),new mxPoint(0,r),new mxPoint(u,0),new mxPoint(u,B)],this.isRounded,C,-!0);g.end()};mxCellRenderer.registerShape("manualInput",Aa);mxUtils.extend(Ja,mxRectangleShape);Ja.prototype.dx=20;Ja.prototype.dy=20;Ja.prototype.isHtmlAllowed=function(){return!1};Ja.prototype.paintForeground=function(g,r,C,u,B){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var G=0;if(this.isRounded){var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;G=Math.max(G,Math.min(u*I,B*I))}I=Math.max(G,Math.min(u,parseFloat(mxUtils.getValue(this.style,-"dx",this.dx))));G=Math.max(G,Math.min(B,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));g.begin();g.moveTo(r,C+G);g.lineTo(r+u,C+G);g.end();g.stroke();g.begin();g.moveTo(r+I,C);g.lineTo(r+I,C+B);g.end();g.stroke()};mxCellRenderer.registerShape("internalStorage",Ja);mxUtils.extend(Ia,mxActor);Ia.prototype.dx=20;Ia.prototype.dy=20;Ia.prototype.isRoundable=function(){return!0};Ia.prototype.redrawPath=function(g,r,C,u,B){r=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));-C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var G=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,0),new mxPoint(u,0),new mxPoint(u,C),new mxPoint(r,C),new mxPoint(r,B),new mxPoint(0,B)],this.isRounded,G,!0);g.end()};mxCellRenderer.registerShape("corner",Ia);mxUtils.extend(Sa,mxActor);Sa.prototype.redrawPath=function(g,r,C,u,B){g.moveTo(0,-0);g.lineTo(0,B);g.end();g.moveTo(u,0);g.lineTo(u,B);g.end();g.moveTo(0,B/2);g.lineTo(u,B/2);g.end()};mxCellRenderer.registerShape("crossbar",Sa);mxUtils.extend(ab,mxActor);ab.prototype.dx=20;ab.prototype.dy=20;ab.prototype.isRoundable=function(){return!0};ab.prototype.redrawPath=function(g,r,C,u,B){r=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",-this.size));var G=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,0),new mxPoint(u,0),new mxPoint(u,C),new mxPoint((u+r)/2,C),new mxPoint((u+r)/2,B),new mxPoint((u-r)/2,B),new mxPoint((u-r)/2,C),new mxPoint(0,C)],this.isRounded,G,!0);g.end()};mxCellRenderer.registerShape("tee",ab);mxUtils.extend(Va,mxActor);Va.prototype.arrowWidth=.3;Va.prototype.arrowSize=.2;Va.prototype.isRoundable=function(){return!0};Va.prototype.redrawPath=function(g,-r,C,u,B){var G=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth))));r=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize))));C=(B-G)/2;G=C+G;var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,C),new mxPoint(u-r,C),new mxPoint(u-r,0),new mxPoint(u,B/2),new mxPoint(u-r,B),new mxPoint(u-r,G),new mxPoint(0,G)],this.isRounded,I,!0);g.end()};mxCellRenderer.registerShape("singleArrow",-Va);mxUtils.extend(db,mxActor);db.prototype.isRoundable=function(){return!0};db.prototype.redrawPath=function(g,r,C,u,B){var G=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",Va.prototype.arrowWidth))));r=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Va.prototype.arrowSize))));C=(B-G)/2;G=C+G;var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,B/2),new mxPoint(r,0),new mxPoint(r,-C),new mxPoint(u-r,C),new mxPoint(u-r,0),new mxPoint(u,B/2),new mxPoint(u-r,B),new mxPoint(u-r,G),new mxPoint(r,G),new mxPoint(r,B)],this.isRounded,I,!0);g.end()};mxCellRenderer.registerShape("doubleArrow",db);mxUtils.extend(Ea,mxActor);Ea.prototype.size=.1;Ea.prototype.fixedSize=20;Ea.prototype.redrawPath=function(g,r,C,u,B){r="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,-"size",this.size))));g.moveTo(r,0);g.lineTo(u,0);g.quadTo(u-2*r,B/2,u,B);g.lineTo(r,B);g.quadTo(r-2*r,B/2,r,0);g.close();g.end()};mxCellRenderer.registerShape("dataStorage",Ea);mxUtils.extend($a,mxActor);$a.prototype.redrawPath=function(g,r,C,u,B){g.moveTo(0,0);g.quadTo(u,0,u,B/2);g.quadTo(u,B,0,B);g.close();g.end()};mxCellRenderer.registerShape("or",$a);mxUtils.extend(cb,mxActor);cb.prototype.redrawPath=function(g,r,C,u,B){g.moveTo(0,0);g.quadTo(u,0,u,B/2);g.quadTo(u,B,0,B);g.quadTo(u/2,B/2,0,0);-g.close();g.end()};mxCellRenderer.registerShape("xor",cb);mxUtils.extend(Za,mxActor);Za.prototype.size=20;Za.prototype.isRoundable=function(){return!0};Za.prototype.redrawPath=function(g,r,C,u,B){r=Math.min(u/2,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(r,0),new mxPoint(u-r,0),new mxPoint(u,.8*r),new mxPoint(u,B),new mxPoint(0,B),new mxPoint(0,.8*r)],this.isRounded,-C,!0);g.end()};mxCellRenderer.registerShape("loopLimit",Za);mxUtils.extend(eb,mxActor);eb.prototype.size=.375;eb.prototype.isRoundable=function(){return!0};eb.prototype.redrawPath=function(g,r,C,u,B){r=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,0),new mxPoint(u,0),new mxPoint(u,B-r),new mxPoint(u/2,B),new mxPoint(0,B-r)],this.isRounded,C,!0);-g.end()};mxCellRenderer.registerShape("offPageConnector",eb);mxUtils.extend(lb,mxEllipse);lb.prototype.paintVertexShape=function(g,r,C,u,B){mxEllipse.prototype.paintVertexShape.apply(this,arguments);g.begin();g.moveTo(r+u/2,C+B);g.lineTo(r+u,C+B);g.end();g.stroke()};mxCellRenderer.registerShape("tapeData",lb);mxUtils.extend(wb,mxEllipse);wb.prototype.paintVertexShape=function(g,r,C,u,B){mxEllipse.prototype.paintVertexShape.apply(this,arguments);g.setShadow(!1);g.begin();g.moveTo(r,C+B/2);g.lineTo(r+-u,C+B/2);g.end();g.stroke();g.begin();g.moveTo(r+u/2,C);g.lineTo(r+u/2,C+B);g.end();g.stroke()};mxCellRenderer.registerShape("orEllipse",wb);mxUtils.extend(rb,mxEllipse);rb.prototype.paintVertexShape=function(g,r,C,u,B){mxEllipse.prototype.paintVertexShape.apply(this,arguments);g.setShadow(!1);g.begin();g.moveTo(r+.145*u,C+.145*B);g.lineTo(r+.855*u,C+.855*B);g.end();g.stroke();g.begin();g.moveTo(r+.855*u,C+.145*B);g.lineTo(r+.145*u,C+.855*B);g.end();g.stroke()};mxCellRenderer.registerShape("sumEllipse",-rb);mxUtils.extend(xb,mxRhombus);xb.prototype.paintVertexShape=function(g,r,C,u,B){mxRhombus.prototype.paintVertexShape.apply(this,arguments);g.setShadow(!1);g.begin();g.moveTo(r,C+B/2);g.lineTo(r+u,C+B/2);g.end();g.stroke()};mxCellRenderer.registerShape("sortShape",xb);mxUtils.extend(Jb,mxEllipse);Jb.prototype.paintVertexShape=function(g,r,C,u,B){g.begin();g.moveTo(r,C);g.lineTo(r+u,C);g.lineTo(r+u/2,C+B/2);g.close();g.fillAndStroke();g.begin();g.moveTo(r,C+B);g.lineTo(r+u,C+B);g.lineTo(r+u/2,C+-B/2);g.close();g.fillAndStroke()};mxCellRenderer.registerShape("collate",Jb);mxUtils.extend(Fb,mxEllipse);Fb.prototype.paintVertexShape=function(g,r,C,u,B){var G=g.state.strokeWidth/2,I=10+2*G,ba=C+B-I/2;g.begin();g.moveTo(r,C);g.lineTo(r,C+B);g.moveTo(r+G,ba);g.lineTo(r+G+I,ba-I/2);g.moveTo(r+G,ba);g.lineTo(r+G+I,ba+I/2);g.moveTo(r+G,ba);g.lineTo(r+u-G,ba);g.moveTo(r+u,C);g.lineTo(r+u,C+B);g.moveTo(r+u-G,ba);g.lineTo(r+u-I-G,ba-I/2);g.moveTo(r+u-G,ba);g.lineTo(r+u-I-G,ba+I/2);g.end();g.stroke()};-mxCellRenderer.registerShape("dimension",Fb);mxUtils.extend(Tb,mxEllipse);Tb.prototype.drawHidden=!0;Tb.prototype.paintVertexShape=function(g,r,C,u,B){this.outline||g.setStrokeColor(null);if(null!=this.style){var G=g.pointerEvents,I=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||I||(g.pointerEvents=!1);var ba="1"==mxUtils.getValue(this.style,"top","1"),U="1"==mxUtils.getValue(this.style,"left","1"),za="1"==mxUtils.getValue(this.style,-"right","1"),pa="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||I||this.outline||ba||za||pa||U?(g.rect(r,C,u,B),g.fill(),g.pointerEvents=G,g.setStrokeColor(this.stroke),g.setLineCap("square"),g.begin(),g.moveTo(r,C),this.outline||ba?g.lineTo(r+u,C):g.moveTo(r+u,C),this.outline||za?g.lineTo(r+u,C+B):g.moveTo(r+u,C+B),this.outline||pa?g.lineTo(r,C+B):g.moveTo(r,C+B),(this.outline||U)&&g.lineTo(r,C),g.end(),g.stroke(),g.setLineCap("flat")):g.setStrokeColor(this.stroke)}null==this.state||-this.outline||null==this.fill||this.fill==mxConstants.NONE||(G=this.state.view.graph,null!=G.paintTableCellLines&&G.paintTableCellLines(g,this.state.cell,r,C,u,B,this.stroke,this.strokewidth))};mxCellRenderer.registerShape("partialRectangle",Tb);mxUtils.extend(Rb,mxEllipse);Rb.prototype.paintVertexShape=function(g,r,C,u,B){mxEllipse.prototype.paintVertexShape.apply(this,arguments);g.setShadow(!1);g.begin();"vertical"==mxUtils.getValue(this.style,"line")?(g.moveTo(r+u/2,C),g.lineTo(r+u/2,C+B)):(g.moveTo(r,-C+B/2),g.lineTo(r+u,C+B/2));g.end();g.stroke()};mxCellRenderer.registerShape("lineEllipse",Rb);mxUtils.extend($b,mxActor);$b.prototype.redrawPath=function(g,r,C,u,B){r=Math.min(u,B/2);g.moveTo(0,0);g.lineTo(u-r,0);g.quadTo(u,0,u,B/2);g.quadTo(u,B,u-r,B);g.lineTo(0,B);g.close();g.end()};mxCellRenderer.registerShape("delay",$b);mxUtils.extend(Mb,mxActor);Mb.prototype.size=.2;Mb.prototype.redrawPath=function(g,r,C,u,B){r=Math.min(B,u);var G=Math.max(0,Math.min(r,r*parseFloat(mxUtils.getValue(this.style,-"size",this.size))));r=(B-G)/2;C=r+G;var I=(u-G)/2;G=I+G;g.moveTo(0,r);g.lineTo(I,r);g.lineTo(I,0);g.lineTo(G,0);g.lineTo(G,r);g.lineTo(u,r);g.lineTo(u,C);g.lineTo(G,C);g.lineTo(G,B);g.lineTo(I,B);g.lineTo(I,C);g.lineTo(0,C);g.close();g.end()};mxCellRenderer.registerShape("cross",Mb);mxUtils.extend(Wb,mxActor);Wb.prototype.size=.25;Wb.prototype.redrawPath=function(g,r,C,u,B){r=Math.min(u,B/2);C=Math.min(u-r,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*u);g.moveTo(0,B/2);g.lineTo(C,-0);g.lineTo(u-r,0);g.quadTo(u,0,u,B/2);g.quadTo(u,B,u-r,B);g.lineTo(C,B);g.close();g.end()};mxCellRenderer.registerShape("display",Wb);mxUtils.extend(zb,mxActor);zb.prototype.cst={RECT2:"mxgraph.basic.rect"};zb.prototype.customProperties=[{name:"rectStyle",dispName:"Style",type:"enum",defVal:"square",enumList:[{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"size",dispName:"Corner Size",+Aa.prototype.getLabelMargins=function(g){return mxUtils.getValue(this.style,"boundedLbl",!1)?(g=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(0,g,0,0)):null};Aa.prototype.redrawPath=function(g,r,C,v,B){r=Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size)));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,B),new mxPoint(0,r),new mxPoint(v,0),new mxPoint(v,B)],this.isRounded,C,+!0);g.end()};mxCellRenderer.registerShape("manualInput",Aa);mxUtils.extend(Ja,mxRectangleShape);Ja.prototype.dx=20;Ja.prototype.dy=20;Ja.prototype.isHtmlAllowed=function(){return!1};Ja.prototype.paintForeground=function(g,r,C,v,B){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var G=0;if(this.isRounded){var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;G=Math.max(G,Math.min(v*I,B*I))}I=Math.max(G,Math.min(v,parseFloat(mxUtils.getValue(this.style,+"dx",this.dx))));G=Math.max(G,Math.min(B,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));g.begin();g.moveTo(r,C+G);g.lineTo(r+v,C+G);g.end();g.stroke();g.begin();g.moveTo(r+I,C);g.lineTo(r+I,C+B);g.end();g.stroke()};mxCellRenderer.registerShape("internalStorage",Ja);mxUtils.extend(Ia,mxActor);Ia.prototype.dx=20;Ia.prototype.dy=20;Ia.prototype.isRoundable=function(){return!0};Ia.prototype.redrawPath=function(g,r,C,v,B){r=Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));+C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var G=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,0),new mxPoint(v,0),new mxPoint(v,C),new mxPoint(r,C),new mxPoint(r,B),new mxPoint(0,B)],this.isRounded,G,!0);g.end()};mxCellRenderer.registerShape("corner",Ia);mxUtils.extend(Sa,mxActor);Sa.prototype.redrawPath=function(g,r,C,v,B){g.moveTo(0,+0);g.lineTo(0,B);g.end();g.moveTo(v,0);g.lineTo(v,B);g.end();g.moveTo(0,B/2);g.lineTo(v,B/2);g.end()};mxCellRenderer.registerShape("crossbar",Sa);mxUtils.extend(ab,mxActor);ab.prototype.dx=20;ab.prototype.dy=20;ab.prototype.isRoundable=function(){return!0};ab.prototype.redrawPath=function(g,r,C,v,B){r=Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",+this.size));var G=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,0),new mxPoint(v,0),new mxPoint(v,C),new mxPoint((v+r)/2,C),new mxPoint((v+r)/2,B),new mxPoint((v-r)/2,B),new mxPoint((v-r)/2,C),new mxPoint(0,C)],this.isRounded,G,!0);g.end()};mxCellRenderer.registerShape("tee",ab);mxUtils.extend(Va,mxActor);Va.prototype.arrowWidth=.3;Va.prototype.arrowSize=.2;Va.prototype.isRoundable=function(){return!0};Va.prototype.redrawPath=function(g,+r,C,v,B){var G=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth))));r=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize))));C=(B-G)/2;G=C+G;var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,C),new mxPoint(v-r,C),new mxPoint(v-r,0),new mxPoint(v,B/2),new mxPoint(v-r,B),new mxPoint(v-r,G),new mxPoint(0,G)],this.isRounded,I,!0);g.end()};mxCellRenderer.registerShape("singleArrow",+Va);mxUtils.extend(db,mxActor);db.prototype.isRoundable=function(){return!0};db.prototype.redrawPath=function(g,r,C,v,B){var G=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",Va.prototype.arrowWidth))));r=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Va.prototype.arrowSize))));C=(B-G)/2;G=C+G;var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,B/2),new mxPoint(r,0),new mxPoint(r,+C),new mxPoint(v-r,C),new mxPoint(v-r,0),new mxPoint(v,B/2),new mxPoint(v-r,B),new mxPoint(v-r,G),new mxPoint(r,G),new mxPoint(r,B)],this.isRounded,I,!0);g.end()};mxCellRenderer.registerShape("doubleArrow",db);mxUtils.extend(Ea,mxActor);Ea.prototype.size=.1;Ea.prototype.fixedSize=20;Ea.prototype.redrawPath=function(g,r,C,v,B){r="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,+"size",this.size))));g.moveTo(r,0);g.lineTo(v,0);g.quadTo(v-2*r,B/2,v,B);g.lineTo(r,B);g.quadTo(r-2*r,B/2,r,0);g.close();g.end()};mxCellRenderer.registerShape("dataStorage",Ea);mxUtils.extend($a,mxActor);$a.prototype.redrawPath=function(g,r,C,v,B){g.moveTo(0,0);g.quadTo(v,0,v,B/2);g.quadTo(v,B,0,B);g.close();g.end()};mxCellRenderer.registerShape("or",$a);mxUtils.extend(cb,mxActor);cb.prototype.redrawPath=function(g,r,C,v,B){g.moveTo(0,0);g.quadTo(v,0,v,B/2);g.quadTo(v,B,0,B);g.quadTo(v/2,B/2,0,0);+g.close();g.end()};mxCellRenderer.registerShape("xor",cb);mxUtils.extend(Za,mxActor);Za.prototype.size=20;Za.prototype.isRoundable=function(){return!0};Za.prototype.redrawPath=function(g,r,C,v,B){r=Math.min(v/2,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(r,0),new mxPoint(v-r,0),new mxPoint(v,.8*r),new mxPoint(v,B),new mxPoint(0,B),new mxPoint(0,.8*r)],this.isRounded,+C,!0);g.end()};mxCellRenderer.registerShape("loopLimit",Za);mxUtils.extend(eb,mxActor);eb.prototype.size=.375;eb.prototype.isRoundable=function(){return!0};eb.prototype.redrawPath=function(g,r,C,v,B){r=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(g,[new mxPoint(0,0),new mxPoint(v,0),new mxPoint(v,B-r),new mxPoint(v/2,B),new mxPoint(0,B-r)],this.isRounded,C,!0);+g.end()};mxCellRenderer.registerShape("offPageConnector",eb);mxUtils.extend(lb,mxEllipse);lb.prototype.paintVertexShape=function(g,r,C,v,B){mxEllipse.prototype.paintVertexShape.apply(this,arguments);g.begin();g.moveTo(r+v/2,C+B);g.lineTo(r+v,C+B);g.end();g.stroke()};mxCellRenderer.registerShape("tapeData",lb);mxUtils.extend(wb,mxEllipse);wb.prototype.paintVertexShape=function(g,r,C,v,B){mxEllipse.prototype.paintVertexShape.apply(this,arguments);g.setShadow(!1);g.begin();g.moveTo(r,C+B/2);g.lineTo(r++v,C+B/2);g.end();g.stroke();g.begin();g.moveTo(r+v/2,C);g.lineTo(r+v/2,C+B);g.end();g.stroke()};mxCellRenderer.registerShape("orEllipse",wb);mxUtils.extend(rb,mxEllipse);rb.prototype.paintVertexShape=function(g,r,C,v,B){mxEllipse.prototype.paintVertexShape.apply(this,arguments);g.setShadow(!1);g.begin();g.moveTo(r+.145*v,C+.145*B);g.lineTo(r+.855*v,C+.855*B);g.end();g.stroke();g.begin();g.moveTo(r+.855*v,C+.145*B);g.lineTo(r+.145*v,C+.855*B);g.end();g.stroke()};mxCellRenderer.registerShape("sumEllipse",+rb);mxUtils.extend(xb,mxRhombus);xb.prototype.paintVertexShape=function(g,r,C,v,B){mxRhombus.prototype.paintVertexShape.apply(this,arguments);g.setShadow(!1);g.begin();g.moveTo(r,C+B/2);g.lineTo(r+v,C+B/2);g.end();g.stroke()};mxCellRenderer.registerShape("sortShape",xb);mxUtils.extend(Jb,mxEllipse);Jb.prototype.paintVertexShape=function(g,r,C,v,B){g.begin();g.moveTo(r,C);g.lineTo(r+v,C);g.lineTo(r+v/2,C+B/2);g.close();g.fillAndStroke();g.begin();g.moveTo(r,C+B);g.lineTo(r+v,C+B);g.lineTo(r+v/2,C++B/2);g.close();g.fillAndStroke()};mxCellRenderer.registerShape("collate",Jb);mxUtils.extend(Fb,mxEllipse);Fb.prototype.paintVertexShape=function(g,r,C,v,B){var G=g.state.strokeWidth/2,I=10+2*G,ba=C+B-I/2;g.begin();g.moveTo(r,C);g.lineTo(r,C+B);g.moveTo(r+G,ba);g.lineTo(r+G+I,ba-I/2);g.moveTo(r+G,ba);g.lineTo(r+G+I,ba+I/2);g.moveTo(r+G,ba);g.lineTo(r+v-G,ba);g.moveTo(r+v,C);g.lineTo(r+v,C+B);g.moveTo(r+v-G,ba);g.lineTo(r+v-I-G,ba-I/2);g.moveTo(r+v-G,ba);g.lineTo(r+v-I-G,ba+I/2);g.end();g.stroke()};+mxCellRenderer.registerShape("dimension",Fb);mxUtils.extend(Tb,mxEllipse);Tb.prototype.drawHidden=!0;Tb.prototype.paintVertexShape=function(g,r,C,v,B){this.outline||g.setStrokeColor(null);if(null!=this.style){var G=g.pointerEvents,I=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||I||(g.pointerEvents=!1);var ba="1"==mxUtils.getValue(this.style,"top","1"),U="1"==mxUtils.getValue(this.style,"left","1"),za="1"==mxUtils.getValue(this.style,+"right","1"),pa="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||I||this.outline||ba||za||pa||U?(g.rect(r,C,v,B),g.fill(),g.pointerEvents=G,g.setStrokeColor(this.stroke),g.setLineCap("square"),g.begin(),g.moveTo(r,C),this.outline||ba?g.lineTo(r+v,C):g.moveTo(r+v,C),this.outline||za?g.lineTo(r+v,C+B):g.moveTo(r+v,C+B),this.outline||pa?g.lineTo(r,C+B):g.moveTo(r,C+B),(this.outline||U)&&g.lineTo(r,C),g.end(),g.stroke(),g.setLineCap("flat")):g.setStrokeColor(this.stroke)}null==this.state||+this.outline||null==this.fill||this.fill==mxConstants.NONE||(G=this.state.view.graph,null!=G.paintTableCellLines&&G.paintTableCellLines(g,this.state.cell,r,C,v,B,this.stroke,this.strokewidth))};mxCellRenderer.registerShape("partialRectangle",Tb);mxUtils.extend(Rb,mxEllipse);Rb.prototype.paintVertexShape=function(g,r,C,v,B){mxEllipse.prototype.paintVertexShape.apply(this,arguments);g.setShadow(!1);g.begin();"vertical"==mxUtils.getValue(this.style,"line")?(g.moveTo(r+v/2,C),g.lineTo(r+v/2,C+B)):(g.moveTo(r,+C+B/2),g.lineTo(r+v,C+B/2));g.end();g.stroke()};mxCellRenderer.registerShape("lineEllipse",Rb);mxUtils.extend($b,mxActor);$b.prototype.redrawPath=function(g,r,C,v,B){r=Math.min(v,B/2);g.moveTo(0,0);g.lineTo(v-r,0);g.quadTo(v,0,v,B/2);g.quadTo(v,B,v-r,B);g.lineTo(0,B);g.close();g.end()};mxCellRenderer.registerShape("delay",$b);mxUtils.extend(Mb,mxActor);Mb.prototype.size=.2;Mb.prototype.redrawPath=function(g,r,C,v,B){r=Math.min(B,v);var G=Math.max(0,Math.min(r,r*parseFloat(mxUtils.getValue(this.style,+"size",this.size))));r=(B-G)/2;C=r+G;var I=(v-G)/2;G=I+G;g.moveTo(0,r);g.lineTo(I,r);g.lineTo(I,0);g.lineTo(G,0);g.lineTo(G,r);g.lineTo(v,r);g.lineTo(v,C);g.lineTo(G,C);g.lineTo(G,B);g.lineTo(I,B);g.lineTo(I,C);g.lineTo(0,C);g.close();g.end()};mxCellRenderer.registerShape("cross",Mb);mxUtils.extend(Wb,mxActor);Wb.prototype.size=.25;Wb.prototype.redrawPath=function(g,r,C,v,B){r=Math.min(v,B/2);C=Math.min(v-r,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*v);g.moveTo(0,B/2);g.lineTo(C,+0);g.lineTo(v-r,0);g.quadTo(v,0,v,B/2);g.quadTo(v,B,v-r,B);g.lineTo(C,B);g.close();g.end()};mxCellRenderer.registerShape("display",Wb);mxUtils.extend(zb,mxActor);zb.prototype.cst={RECT2:"mxgraph.basic.rect"};zb.prototype.customProperties=[{name:"rectStyle",dispName:"Style",type:"enum",defVal:"square",enumList:[{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"size",dispName:"Corner Size",type:"float",defVal:10},{name:"absoluteCornerSize",dispName:"Abs. Corner Size",type:"bool",defVal:!0},{name:"indent",dispName:"Indent",type:"float",defVal:2},{name:"rectOutline",dispName:"Outline",type:"enum",defVal:"single",enumList:[{val:"single",dispName:"Single"},{val:"double",dispName:"Double"},{val:"frame",dispName:"Frame"}]},{name:"fillColor2",dispName:"Inside Fill Color",type:"color",defVal:"none"},{name:"gradientColor2",dispName:"Inside Gradient Color",type:"color",defVal:"none"},{name:"gradientDirection2",dispName:"Inside Gradient Direction",type:"enum",defVal:"south",enumList:[{val:"south",dispName:"South"},{val:"west",dispName:"West"},{val:"north",dispName:"North"},{val:"east",dispName:"East"}]},{name:"top",dispName:"Top Line",type:"bool",defVal:!0},{name:"right",dispName:"Right",type:"bool",defVal:!0},{name:"bottom",dispName:"Bottom Line",type:"bool",defVal:!0},{name:"left",dispName:"Left ",type:"bool",defVal:!0},{name:"topLeftStyle",dispName:"Top Left Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"topRightStyle",dispName:"Top Right Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"bottomRightStyle",dispName:"Bottom Right Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"bottomLeftStyle",dispName:"Bottom Left Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",-dispName:"Fold"}]}];zb.prototype.paintVertexShape=function(g,r,C,u,B){g.translate(r,C);this.strictDrawShape(g,0,0,u,B)};zb.prototype.strictDrawShape=function(g,r,C,u,B,G){var I=G&&G.rectStyle?G.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),ba=G&&G.absoluteCornerSize?G.absoluteCornerSize:mxUtils.getValue(this.style,"absoluteCornerSize",this.absoluteCornerSize),U=G&&G.size?G.size:Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),za=G&&G.rectOutline?-G.rectOutline:mxUtils.getValue(this.style,"rectOutline",this.rectOutline),pa=G&&G.indent?G.indent:Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"indent",this.indent)))),Wa=G&&G.dashed?G.dashed:mxUtils.getValue(this.style,"dashed",!1),ub=G&&G.dashPattern?G.dashPattern:mxUtils.getValue(this.style,"dashPattern",null),jb=G&&G.relIndent?G.relIndent:Math.max(0,Math.min(50,pa)),Ra=G&&G.top?G.top:mxUtils.getValue(this.style,"top",!0),Ua=G&&G.right?G.right:mxUtils.getValue(this.style,"right",+dispName:"Fold"}]}];zb.prototype.paintVertexShape=function(g,r,C,v,B){g.translate(r,C);this.strictDrawShape(g,0,0,v,B)};zb.prototype.strictDrawShape=function(g,r,C,v,B,G){var I=G&&G.rectStyle?G.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),ba=G&&G.absoluteCornerSize?G.absoluteCornerSize:mxUtils.getValue(this.style,"absoluteCornerSize",this.absoluteCornerSize),U=G&&G.size?G.size:Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),za=G&&G.rectOutline?+G.rectOutline:mxUtils.getValue(this.style,"rectOutline",this.rectOutline),pa=G&&G.indent?G.indent:Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"indent",this.indent)))),Wa=G&&G.dashed?G.dashed:mxUtils.getValue(this.style,"dashed",!1),ub=G&&G.dashPattern?G.dashPattern:mxUtils.getValue(this.style,"dashPattern",null),jb=G&&G.relIndent?G.relIndent:Math.max(0,Math.min(50,pa)),Ra=G&&G.top?G.top:mxUtils.getValue(this.style,"top",!0),Ua=G&&G.right?G.right:mxUtils.getValue(this.style,"right",!0),Pa=G&&G.bottom?G.bottom:mxUtils.getValue(this.style,"bottom",!0),Xa=G&&G.left?G.left:mxUtils.getValue(this.style,"left",!0),fb=G&&G.topLeftStyle?G.topLeftStyle:mxUtils.getValue(this.style,"topLeftStyle","default"),mb=G&&G.topRightStyle?G.topRightStyle:mxUtils.getValue(this.style,"topRightStyle","default"),ob=G&&G.bottomRightStyle?G.bottomRightStyle:mxUtils.getValue(this.style,"bottomRightStyle","default"),nb=G&&G.bottomLeftStyle?G.bottomLeftStyle:mxUtils.getValue(this.style,"bottomLeftStyle","default"),ec=G&&G.fillColor?G.fillColor:mxUtils.getValue(this.style,"fillColor","#ffffff");G&&G.strokeColor||mxUtils.getValue(this.style,"strokeColor","#000000");var hc=G&&G.strokeWidth?G.strokeWidth:mxUtils.getValue(this.style,"strokeWidth","1"),fc=G&&G.fillColor2?G.fillColor2:mxUtils.getValue(this.style,"fillColor2","none"),gc=G&&G.gradientColor2?G.gradientColor2:mxUtils.getValue(this.style,"gradientColor2","none"),ic=G&&G.gradientDirection2?G.gradientDirection2:mxUtils.getValue(this.style,"gradientDirection2",-"south"),jc=G&&G.opacity?G.opacity:mxUtils.getValue(this.style,"opacity","100"),kc=Math.max(0,Math.min(50,U));G=zb.prototype;g.setDashed(Wa);ub&&""!=ub&&g.setDashPattern(ub);g.setStrokeWidth(hc);U=Math.min(.5*B,.5*u,U);ba||(U=kc*Math.min(u,B)/100);U=Math.min(U,.5*Math.min(u,B));ba||(pa=Math.min(jb*Math.min(u,B)/100));pa=Math.min(pa,.5*Math.min(u,B)-U);(Ra||Ua||Pa||Xa)&&"frame"!=za&&(g.begin(),Ra?G.moveNW(g,r,C,u,B,I,fb,U,Xa):g.moveTo(0,0),Ra&&G.paintNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,-mb,U,Ua),Ua&&G.paintNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),Pa&&G.paintSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),Xa&&G.paintSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),g.close(),g.fill(),g.setShadow(!1),g.setFillColor(fc),Wa=ba=jc,"none"==fc&&(ba=0),"none"==gc&&(Wa=0),g.setGradient(fc,gc,0,0,u,B,ic,ba,Wa),g.begin(),Ra?G.moveNWInner(g,r,C,u,B,I,fb,U,pa,Ra,Xa):g.moveTo(pa,0),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),Xa&&Pa&&G.paintSWInner(g,r,C,u,B,-I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),Pa&&Ua&&G.paintSEInner(g,r,C,u,B,I,ob,U,pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),Ua&&Ra&&G.paintNEInner(g,r,C,u,B,I,mb,U,pa),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),Ra&&Xa&&G.paintNWInner(g,r,C,u,B,I,fb,U,pa),g.fill(),"none"==ec&&(g.begin(),G.paintFolds(g,r,C,u,B,I,fb,mb,ob,nb,U,Ra,Ua,Pa,Xa),g.stroke()));Ra||Ua||Pa||!Xa?Ra||Ua||!Pa||Xa?!Ra&&!Ua&&Pa&&Xa?"frame"!=za?(g.begin(),G.moveSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,-B,I,nb,U,Xa),G.paintSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),"double"==za&&(G.moveNWInner(g,r,C,u,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,r,C,u,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa)),g.stroke()):(g.begin(),G.moveSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.paintSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),G.lineNWInner(g,r,C,u,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,-r,C,u,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),g.close(),g.fillAndStroke()):Ra||!Ua||Pa||Xa?!Ra&&Ua&&!Pa&&Xa?"frame"!=za?(g.begin(),G.moveSW(g,r,C,u,B,I,fb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),"double"==za&&(G.moveNWInner(g,r,C,u,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa)),g.stroke(),g.begin(),G.moveNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),"double"==za&&(G.moveSEInner(g,r,C,u,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua)),-g.stroke()):(g.begin(),G.moveSW(g,r,C,u,B,I,fb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),G.lineNWInner(g,r,C,u,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),g.close(),g.fillAndStroke(),g.begin(),G.moveNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.lineSEInner(g,r,C,u,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),g.close(),g.fillAndStroke()):!Ra&&Ua&&Pa&&!Xa?"frame"!=za?(g.begin(),G.moveNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.paintSE(g,-r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),"double"==za&&(G.moveSWInner(g,r,C,u,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,u,B,I,ob,U,pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua)),g.stroke()):(g.begin(),G.moveNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.paintSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.lineSWInner(g,r,C,u,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,u,B,I,ob,-U,pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),g.close(),g.fillAndStroke()):!Ra&&Ua&&Pa&&Xa?"frame"!=za?(g.begin(),G.moveNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.paintSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.paintSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),"double"==za&&(G.moveNWInner(g,r,C,u,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,r,C,u,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,-r,C,u,B,I,ob,U,pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua)),g.stroke()):(g.begin(),G.moveNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.paintSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.paintSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),G.lineNWInner(g,r,C,u,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,r,C,u,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,u,B,I,ob,U,pa),G.paintRightInner(g,-r,C,u,B,I,mb,U,pa,Ra,Ua),g.close(),g.fillAndStroke()):!Ra||Ua||Pa||Xa?Ra&&!Ua&&!Pa&&Xa?"frame"!=za?(g.begin(),G.moveSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),G.paintNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),"double"==za&&(G.moveNEInner(g,r,C,u,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,u,B,I,fb,U,pa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa)),g.stroke()):(g.begin(),G.moveSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),G.paintNW(g,-r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.lineNEInner(g,r,C,u,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,u,B,I,fb,U,pa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),g.close(),g.fillAndStroke()):Ra&&!Ua&&Pa&&!Xa?"frame"!=za?(g.begin(),G.moveNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),"double"==za&&(G.moveNEInner(g,r,C,u,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra)),g.stroke(),g.begin(),G.moveSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,-r,C,u,B,I,nb,U,Xa),"double"==za&&(G.moveSWInner(g,r,C,u,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa)),g.stroke()):(g.begin(),G.moveNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.lineNEInner(g,r,C,u,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),g.close(),g.fillAndStroke(),g.begin(),G.moveSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.lineSWInner(g,r,C,u,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),g.close(),g.fillAndStroke()):-Ra&&!Ua&&Pa&&Xa?"frame"!=za?(g.begin(),G.moveSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.paintSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),G.paintNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),"double"==za&&(G.moveNEInner(g,r,C,u,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,u,B,I,fb,U,pa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,r,C,u,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa)),g.stroke()):-(g.begin(),G.moveSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.paintSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),G.paintNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.lineNEInner(g,r,C,u,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,u,B,I,fb,U,pa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,r,C,u,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),g.close(),g.fillAndStroke()):Ra&&Ua&&!Pa&&!Xa?"frame"!=-za?(g.begin(),G.moveNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.paintNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),"double"==za&&(G.moveSEInner(g,r,C,u,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,u,B,I,mb,U,pa),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra)),g.stroke()):(g.begin(),G.moveNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.paintNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.lineSEInner(g,r,C,u,B,I,ob,U,pa,-Pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,u,B,I,mb,U,pa),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),g.close(),g.fillAndStroke()):Ra&&Ua&&!Pa&&Xa?"frame"!=za?(g.begin(),G.moveSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),G.paintNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.paintNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),"double"==za&&(G.moveSEInner(g,r,C,u,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,-r,C,u,B,I,mb,U,pa),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,u,B,I,fb,U,pa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa)),g.stroke()):(g.begin(),G.moveSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),G.paintNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.paintNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.lineSEInner(g,r,C,u,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,u,B,I,mb,U,pa),G.paintTopInner(g,r,C,u,B,-I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,u,B,I,fb,U,pa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),g.close(),g.fillAndStroke()):Ra&&Ua&&Pa&&!Xa?"frame"!=za?(g.begin(),G.moveNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.paintNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.paintSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),"double"==za&&(G.moveSWInner(g,r,C,u,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,u,B,I,ob,U,pa),G.paintRightInner(g,-r,C,u,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,u,B,I,mb,U,pa),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra)),g.stroke()):(g.begin(),G.moveNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.paintNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.paintSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.lineSWInner(g,r,C,u,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,u,B,I,ob,U,pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,-r,C,u,B,I,mb,U,pa),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),g.close(),g.fillAndStroke()):Ra&&Ua&&Pa&&Xa&&("frame"!=za?(g.begin(),G.moveNW(g,r,C,u,B,I,fb,U,Xa),G.paintNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.paintNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.paintSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.paintSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),g.close(),"double"==za&&(G.moveSWInner(g,r,C,u,B,I,nb,U,pa,Xa),G.paintSWInner(g,r,-C,u,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,u,B,I,ob,U,pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,u,B,I,mb,U,pa),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,u,B,I,fb,U,pa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),g.close()),g.stroke()):(g.begin(),G.moveNW(g,r,C,u,B,I,fb,U,Xa),G.paintNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.paintNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.paintSE(g,-r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.paintSW(g,r,C,u,B,I,nb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),g.close(),G.moveSWInner(g,r,C,u,B,I,nb,U,pa,Xa),G.paintSWInner(g,r,C,u,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,u,B,I,ob,U,pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,u,B,I,mb,U,pa),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,u,B,I,fb,U,pa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa),g.close(),-g.fillAndStroke())):"frame"!=za?(g.begin(),G.moveNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),"double"==za&&(G.moveNEInner(g,r,C,u,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra)),g.stroke()):(g.begin(),G.moveNW(g,r,C,u,B,I,fb,U,Xa),G.paintTop(g,r,C,u,B,I,mb,U,Ua),G.lineNEInner(g,r,C,u,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,u,B,I,fb,U,pa,Xa,Ra),g.close(),g.fillAndStroke()):"frame"!=za?(g.begin(),G.moveNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),"double"==za&&(G.moveSEInner(g,-r,C,u,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua)),g.stroke()):(g.begin(),G.moveNE(g,r,C,u,B,I,mb,U,Ra),G.paintRight(g,r,C,u,B,I,ob,U,Pa),G.lineSEInner(g,r,C,u,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,u,B,I,mb,U,pa,Ra,Ua),g.close(),g.fillAndStroke()):"frame"!=za?(g.begin(),G.moveSE(g,r,C,u,B,I,ob,U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),"double"==za&&(G.moveSWInner(g,r,C,u,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa)),g.stroke()):(g.begin(),G.moveSE(g,r,C,u,B,I,ob,-U,Ua),G.paintBottom(g,r,C,u,B,I,nb,U,Xa),G.lineSWInner(g,r,C,u,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,u,B,I,ob,U,pa,Ua,Pa),g.close(),g.fillAndStroke()):"frame"!=za?(g.begin(),G.moveSW(g,r,C,u,B,I,fb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),"double"==za&&(G.moveNWInner(g,r,C,u,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,u,B,I,nb,U,pa,Pa,Xa)),g.stroke()):(g.begin(),G.moveSW(g,r,C,u,B,I,fb,U,Pa),G.paintLeft(g,r,C,u,B,I,fb,U,Ra),G.lineNWInner(g,r,C,u,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,u,B,I,nb,U,-pa,Pa,Xa),g.close(),g.fillAndStroke());g.begin();G.paintFolds(g,r,C,u,B,I,fb,mb,ob,nb,U,Ra,Ua,Pa,Xa);g.stroke()};zb.prototype.moveNW=function(g,r,C,u,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.moveTo(0,0):g.moveTo(0,ba)};zb.prototype.moveNE=function(g,r,C,u,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.moveTo(u,0):g.moveTo(u-ba,0)};zb.prototype.moveSE=function(g,r,C,u,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.moveTo(u,B):g.moveTo(u,B-ba)};zb.prototype.moveSW=-function(g,r,C,u,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.moveTo(0,B):g.moveTo(ba,B)};zb.prototype.paintNW=function(g,r,C,u,B,G,I,ba,U){if(U)if("rounded"==I||"default"==I&&"rounded"==G||"invRound"==I||"default"==I&&"invRound"==G){r=0;if("rounded"==I||"default"==I&&"rounded"==G)r=1;g.arcTo(ba,ba,0,0,r,ba,0)}else("snip"==I||"default"==I&&"snip"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(ba,0);else g.lineTo(0,0)};zb.prototype.paintTop=function(g,r,C,u,B,G,I,ba,U){"square"==I||-"default"==I&&"square"==G||!U?g.lineTo(u,0):g.lineTo(u-ba,0)};zb.prototype.paintNE=function(g,r,C,u,B,G,I,ba,U){if(U)if("rounded"==I||"default"==I&&"rounded"==G||"invRound"==I||"default"==I&&"invRound"==G){r=0;if("rounded"==I||"default"==I&&"rounded"==G)r=1;g.arcTo(ba,ba,0,0,r,u,ba)}else("snip"==I||"default"==I&&"snip"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(u,ba);else g.lineTo(u,0)};zb.prototype.paintRight=function(g,r,C,u,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.lineTo(u,-B):g.lineTo(u,B-ba)};zb.prototype.paintLeft=function(g,r,C,u,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.lineTo(0,0):g.lineTo(0,ba)};zb.prototype.paintSE=function(g,r,C,u,B,G,I,ba,U){if(U)if("rounded"==I||"default"==I&&"rounded"==G||"invRound"==I||"default"==I&&"invRound"==G){r=0;if("rounded"==I||"default"==I&&"rounded"==G)r=1;g.arcTo(ba,ba,0,0,r,u-ba,B)}else("snip"==I||"default"==I&&"snip"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(u-ba,B);else g.lineTo(u,B)};zb.prototype.paintBottom=-function(g,r,C,u,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.lineTo(0,B):g.lineTo(ba,B)};zb.prototype.paintSW=function(g,r,C,u,B,G,I,ba,U){if(U)if("rounded"==I||"default"==I&&"rounded"==G||"invRound"==I||"default"==I&&"invRound"==G){r=0;if("rounded"==I||"default"==I&&"rounded"==G)r=1;g.arcTo(ba,ba,0,0,r,0,B-ba)}else("snip"==I||"default"==I&&"snip"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(0,B-ba);else g.lineTo(0,B)};zb.prototype.paintNWInner=function(g,r,C,u,B,G,I,ba,U){if("rounded"==-I||"default"==I&&"rounded"==G)g.arcTo(ba-.5*U,ba-.5*U,0,0,0,U,.5*U+ba);else if("invRound"==I||"default"==I&&"invRound"==G)g.arcTo(ba+U,ba+U,0,0,1,U,U+ba);else if("snip"==I||"default"==I&&"snip"==G)g.lineTo(U,.5*U+ba);else if("fold"==I||"default"==I&&"fold"==G)g.lineTo(U+ba,U+ba),g.lineTo(U,U+ba)};zb.prototype.paintTopInner=function(g,r,C,u,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.lineTo(0,U):za&&!pa?g.lineTo(U,0):za?"square"==I||"default"==I&&"square"==G?g.lineTo(U,U):"rounded"==I||"default"==I&&"rounded"==-G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(ba+.5*U,U):g.lineTo(ba+U,U):g.lineTo(0,U):g.lineTo(0,0)};zb.prototype.paintNEInner=function(g,r,C,u,B,G,I,ba,U){if("rounded"==I||"default"==I&&"rounded"==G)g.arcTo(ba-.5*U,ba-.5*U,0,0,0,u-ba-.5*U,U);else if("invRound"==I||"default"==I&&"invRound"==G)g.arcTo(ba+U,ba+U,0,0,1,u-ba-U,U);else if("snip"==I||"default"==I&&"snip"==G)g.lineTo(u-ba-.5*U,U);else if("fold"==I||"default"==I&&"fold"==G)g.lineTo(u-ba-U,ba+U),g.lineTo(u-ba-U,U)};zb.prototype.paintRightInner=-function(g,r,C,u,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.lineTo(u-U,0):za&&!pa?g.lineTo(u,U):za?"square"==I||"default"==I&&"square"==G?g.lineTo(u-U,U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(u-U,ba+.5*U):g.lineTo(u-U,ba+U):g.lineTo(u-U,0):g.lineTo(u,0)};zb.prototype.paintLeftInner=function(g,r,C,u,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.lineTo(U,B):za&&!pa?g.lineTo(0,B-U):za?"square"==I||"default"==I&&"square"==G?g.lineTo(U,B-U):"rounded"==I||"default"==I&&"rounded"==-G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(U,B-ba-.5*U):g.lineTo(U,B-ba-U):g.lineTo(U,B):g.lineTo(0,B)};zb.prototype.paintSEInner=function(g,r,C,u,B,G,I,ba,U){if("rounded"==I||"default"==I&&"rounded"==G)g.arcTo(ba-.5*U,ba-.5*U,0,0,0,u-U,B-ba-.5*U);else if("invRound"==I||"default"==I&&"invRound"==G)g.arcTo(ba+U,ba+U,0,0,1,u-U,B-ba-U);else if("snip"==I||"default"==I&&"snip"==G)g.lineTo(u-U,B-ba-.5*U);else if("fold"==I||"default"==I&&"fold"==G)g.lineTo(u-ba-U,B-ba-U),g.lineTo(u-U,B-ba-U)};zb.prototype.paintBottomInner=-function(g,r,C,u,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.lineTo(u,B-U):za&&!pa?g.lineTo(u-U,B):"square"==I||"default"==I&&"square"==G||!za?g.lineTo(u-U,B-U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(u-ba-.5*U,B-U):g.lineTo(u-ba-U,B-U):g.lineTo(u,B)};zb.prototype.paintSWInner=function(g,r,C,u,B,G,I,ba,U,za){if(!za)g.lineTo(U,B);else if("square"==I||"default"==I&&"square"==G)g.lineTo(U,B-U);else if("rounded"==I||"default"==I&&"rounded"==G)g.arcTo(ba-.5*U,ba-.5*-U,0,0,0,ba+.5*U,B-U);else if("invRound"==I||"default"==I&&"invRound"==G)g.arcTo(ba+U,ba+U,0,0,1,ba+U,B-U);else if("snip"==I||"default"==I&&"snip"==G)g.lineTo(ba+.5*U,B-U);else if("fold"==I||"default"==I&&"fold"==G)g.lineTo(U+ba,B-ba-U),g.lineTo(U+ba,B-U)};zb.prototype.moveSWInner=function(g,r,C,u,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==G?g.moveTo(U,B-U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.moveTo(U,B-ba-.5*U):("invRound"==I||"default"==I&&"invRound"==-G||"fold"==I||"default"==I&&"fold"==G)&&g.moveTo(U,B-ba-U):g.moveTo(0,B-U)};zb.prototype.lineSWInner=function(g,r,C,u,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==G?g.lineTo(U,B-U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(U,B-ba-.5*U):("invRound"==I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(U,B-ba-U):g.lineTo(0,B-U)};zb.prototype.moveSEInner=function(g,r,C,u,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==-G?g.moveTo(u-U,B-U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.moveTo(u-U,B-ba-.5*U):("invRound"==I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.moveTo(u-U,B-ba-U):g.moveTo(u-U,B)};zb.prototype.lineSEInner=function(g,r,C,u,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==G?g.lineTo(u-U,B-U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(u-U,B-ba-.5*U):("invRound"==I||"default"==I&&"invRound"==-G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(u-U,B-ba-U):g.lineTo(u-U,B)};zb.prototype.moveNEInner=function(g,r,C,u,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==G||za?g.moveTo(u-U,U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.moveTo(u-U,ba+.5*U):("invRound"==I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.moveTo(u-U,ba+U):g.moveTo(u,U)};zb.prototype.lineNEInner=function(g,r,C,u,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==-G||za?g.lineTo(u-U,U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(u-U,ba+.5*U):("invRound"==I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(u-U,ba+U):g.lineTo(u,U)};zb.prototype.moveNWInner=function(g,r,C,u,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.moveTo(U,0):za&&!pa?g.moveTo(0,U):"square"==I||"default"==I&&"square"==G?g.moveTo(U,U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.moveTo(U,ba+.5*U):("invRound"==-I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.moveTo(U,ba+U):g.moveTo(0,0)};zb.prototype.lineNWInner=function(g,r,C,u,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.lineTo(U,0):za&&!pa?g.lineTo(0,U):"square"==I||"default"==I&&"square"==G?g.lineTo(U,U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(U,ba+.5*U):("invRound"==I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(U,ba+U):g.lineTo(0,0)};zb.prototype.paintFolds=function(g,-r,C,u,B,G,I,ba,U,za,pa,Wa,ub,jb,Ra){if("fold"==G||"fold"==I||"fold"==ba||"fold"==U||"fold"==za)("fold"==I||"default"==I&&"fold"==G)&&Wa&&Ra&&(g.moveTo(0,pa),g.lineTo(pa,pa),g.lineTo(pa,0)),("fold"==ba||"default"==ba&&"fold"==G)&&Wa&&ub&&(g.moveTo(u-pa,0),g.lineTo(u-pa,pa),g.lineTo(u,pa)),("fold"==U||"default"==U&&"fold"==G)&&jb&&ub&&(g.moveTo(u-pa,B),g.lineTo(u-pa,B-pa),g.lineTo(u,B-pa)),("fold"==za||"default"==za&&"fold"==G)&&jb&&Ra&&(g.moveTo(0,B-pa),g.lineTo(pa,B-pa),g.lineTo(pa,B))};mxCellRenderer.registerShape(zb.prototype.cst.RECT2,-zb);zb.prototype.constraints=null;mxUtils.extend(Ub,mxConnector);Ub.prototype.origPaintEdgeShape=Ub.prototype.paintEdgeShape;Ub.prototype.paintEdgeShape=function(g,r){for(var C=[],u=0;u<r.length;u++)C.push(mxUtils.clone(r[u]));u=g.state.dashed;var B=g.state.fixDash;Ub.prototype.origPaintEdgeShape.apply(this,[g,C]);3<=g.state.strokeWidth&&(C=mxUtils.getValue(this.style,"fillColor",null),null!=C&&(g.setStrokeColor(C),g.setStrokeWidth(g.state.strokeWidth-2),g.setDashed(u,B),Ub.prototype.origPaintEdgeShape.apply(this,-[g,r])))};mxCellRenderer.registerShape("filledEdge",Ub);mxUtils.extend(Lb,mxConnector);Lb.prototype.defaultWidth=4;Lb.prototype.getEdgeWidth=function(){return Math.max(0,mxUtils.getNumber(this.style,"width",this.defaultWidth))};Lb.prototype.getFlowAnimationPath=function(){return mxShape.prototype.getFlowAnimationPath.call(this,2)||mxShape.prototype.getFlowAnimationPath.call(this)};Lb.prototype.origPaintEdgeShape=Lb.prototype.paintEdgeShape;Lb.prototype.paintEdgeShape=function(g,r){for(var C=[],u=-0;u<r.length;u++)C.push(mxUtils.clone(r[u]));u=g.state.dashed;var B=g.state.fixDash,G=this.getEdgeWidth();g.setStrokeWidth(G+2*this.strokewidth);g.setDashed(!1);Lb.prototype.origPaintEdgeShape.apply(this,[g,C]);C=mxUtils.getValue(this.style,"fillColor",null);null!=C&&(g.setStrokeWidth(G),g.setStrokeColor(C),g.setDashed(u,B),Lb.prototype.origPaintEdgeShape.apply(this,[g,r]))};mxCellRenderer.registerShape("pipe",Lb);mxUtils.extend(Xb,mxRectangleShape);Xb.prototype.size=10;Xb.prototype.isRoundable=function(){return!0};-Xb.prototype.paintVertexShape=function(g,r,C,u,B){g.translate(r,C);r=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,null);null!=r&&r!=mxConstants.NONE&&(g.setStrokeColor("none"),g.begin(),g.rect(0,0,u,B),g.fillAndStroke(),g.setStrokeColor(this.stroke));var G=Math.max(5,parseFloat(mxUtils.getValue(this.style,"size",this.size)));r=B/2;C=this.strokewidth;C=this.isRounded?C/2:C;B-=C;G=Math.max(1,Math.round(u/G)-1);var I=u/(G+1),ba=I/2;g.begin();g.moveTo(0,r);if(this.isRounded){g.curveTo(.4*ba,-r-.4*(r-C),.6*ba,C,ba,C);for(var U=0;U<G;U++){var za=ba+U*I,pa=za+I,Wa=0==U%2?B:C;g.curveTo(za+.4*I,0==U%2?C:B,pa-.4*I,Wa,pa,Wa)}B=0==G%2?C:B;g.curveTo(ba+G*I+.4*ba,B,u-.4*ba,r-(B==C?1:-1)*(r-C)*.4,u,r)}else{g.lineTo(ba,C);for(U=0;U<G;U++)pa=ba+(U+1)*I,Wa=0==U%2?B:C,g.lineTo(pa,Wa);g.lineTo(u,r)}g.stroke()};mxCellRenderer.registerShape("zigzag",Xb);"undefined"!==typeof StyleFormatPanel&&function(){var g=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var r=-this.editorUi.getSelectionState(),C=g.apply(this,arguments);"umlFrame"==r.style.shape&&C.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return C}}();mxMarker.addMarker("dash",function(g,r,C,u,B,G,I,ba,U,za){var pa=B*(I+U+1),Wa=G*(I+U+1);return function(){g.begin();g.moveTo(u.x-pa/2-Wa/2,u.y-Wa/2+pa/2);g.lineTo(u.x+Wa/2-3*pa/2,u.y-3*Wa/2-pa/2);g.stroke()}});mxMarker.addMarker("box",function(g,r,C,u,B,G,I,ba,U,za){var pa=B*(I+U+1),Wa=G*(I+U+1),ub=u.x+pa/2,-jb=u.y+Wa/2;u.x-=pa;u.y-=Wa;return function(){g.begin();g.moveTo(ub-pa/2-Wa/2,jb-Wa/2+pa/2);g.lineTo(ub-pa/2+Wa/2,jb-Wa/2-pa/2);g.lineTo(ub+Wa/2-3*pa/2,jb-3*Wa/2-pa/2);g.lineTo(ub-Wa/2-3*pa/2,jb-3*Wa/2+pa/2);g.close();za?g.fillAndStroke():g.stroke()}});mxMarker.addMarker("cross",function(g,r,C,u,B,G,I,ba,U,za){var pa=B*(I+U+1),Wa=G*(I+U+1);return function(){g.begin();g.moveTo(u.x-pa/2-Wa/2,u.y-Wa/2+pa/2);g.lineTo(u.x+Wa/2-3*pa/2,u.y-3*Wa/2-pa/2);g.moveTo(u.x-pa/2+Wa/2,u.y-Wa/2-pa/2);g.lineTo(u.x--Wa/2-3*pa/2,u.y-3*Wa/2+pa/2);g.stroke()}});mxMarker.addMarker("circle",bc);mxMarker.addMarker("circlePlus",function(g,r,C,u,B,G,I,ba,U,za){var pa=u.clone(),Wa=bc.apply(this,arguments),ub=B*(I+2*U),jb=G*(I+2*U);return function(){Wa.apply(this,arguments);g.begin();g.moveTo(pa.x-B*U,pa.y-G*U);g.lineTo(pa.x-2*ub+B*U,pa.y-2*jb+G*U);g.moveTo(pa.x-ub-jb+G*U,pa.y-jb+ub-B*U);g.lineTo(pa.x+jb-ub-G*U,pa.y-jb-ub+B*U);g.stroke()}});mxMarker.addMarker("halfCircle",function(g,r,C,u,B,G,I,ba,U,za){var pa=B*(I+U+-1),Wa=G*(I+U+1),ub=u.clone();u.x-=pa;u.y-=Wa;return function(){g.begin();g.moveTo(ub.x-Wa,ub.y+pa);g.quadTo(u.x-Wa,u.y+pa,u.x,u.y);g.quadTo(u.x+Wa,u.y-pa,ub.x+Wa,ub.y-pa);g.stroke()}});mxMarker.addMarker("async",function(g,r,C,u,B,G,I,ba,U,za){r=B*U*1.118;C=G*U*1.118;B*=I+U;G*=I+U;var pa=u.clone();pa.x-=r;pa.y-=C;u.x+=-B-r;u.y+=-G-C;return function(){g.begin();g.moveTo(pa.x,pa.y);ba?g.lineTo(pa.x-B-G/2,pa.y-G+B/2):g.lineTo(pa.x+G/2-B,pa.y-G-B/2);g.lineTo(pa.x-B,pa.y-G);g.close();za?g.fillAndStroke():-g.stroke()}});mxMarker.addMarker("openAsync",function(g){g=null!=g?g:2;return function(r,C,u,B,G,I,ba,U,za,pa){G*=ba+za;I*=ba+za;var Wa=B.clone();return function(){r.begin();r.moveTo(Wa.x,Wa.y);U?r.lineTo(Wa.x-G-I/g,Wa.y-I+G/g):r.lineTo(Wa.x+I/g-G,Wa.y-I-G/g);r.stroke()}}}(2));mxMarker.addMarker("mermaidExtension",function(){var g=17/6;return function(r,C,u,B,G,I,ba,U,za,pa){G*=ba+za;I*=ba+za;var Wa=B.clone();B.x-=G;B.y-=I;return function(){r.begin();r.moveTo(Wa.x,Wa.y);r.lineTo(Wa.x-G-I/g,Wa.y-I+-G/g);r.lineTo(Wa.x-G+I/g,Wa.y-I-G/g);r.close();pa?r.fillAndStroke():r.stroke()}}}());mxMarker.addMarker("mermaidDiamond",function(g,r,C,u,B,G,I,ba,U,za){var pa=17/6;B*=I+U;G*=I+U;var Wa=u.clone();u.x-=B;u.y-=G;return function(){g.begin();g.moveTo(Wa.x,Wa.y);g.lineTo(Wa.x-B/2-G/pa,Wa.y-G/2+B/pa);g.lineTo(Wa.x-B,Wa.y-G);g.lineTo(Wa.x-B/2+G/pa,Wa.y-G/2-B/pa);g.close();za?g.fillAndStroke():g.stroke()}});mxUtils.extend(Gb,mxRectangleShape);Gb.prototype.arcStartY=25;Gb.prototype.arcMidY=-25;Gb.prototype.arcEndY=-25;Gb.prototype.paintForeground=function(g,r,C,u,B){mxRectangleShape.prototype.paintForeground.apply(this,arguments);if(null!=this.state){var G=this.state.view.graph;if(null==G.cellEditor||G.cellEditor.editingCell!=this.state.cell)if(G=G.convertValueToString(this.state.cell),null!=G&&0!=G.length){var I=parseFloat(mxUtils.getValue(this.style,"arcStartY",this.arcStartY)),ba=parseFloat(mxUtils.getValue(this.style,"arcMidY",this.arcMidY)),U=parseFloat(mxUtils.getValue(this.style,"arcEndY",this.arcEndY)),+"south"),jc=G&&G.opacity?G.opacity:mxUtils.getValue(this.style,"opacity","100"),kc=Math.max(0,Math.min(50,U));G=zb.prototype;g.setDashed(Wa);ub&&""!=ub&&g.setDashPattern(ub);g.setStrokeWidth(hc);U=Math.min(.5*B,.5*v,U);ba||(U=kc*Math.min(v,B)/100);U=Math.min(U,.5*Math.min(v,B));ba||(pa=Math.min(jb*Math.min(v,B)/100));pa=Math.min(pa,.5*Math.min(v,B)-U);(Ra||Ua||Pa||Xa)&&"frame"!=za&&(g.begin(),Ra?G.moveNW(g,r,C,v,B,I,fb,U,Xa):g.moveTo(0,0),Ra&&G.paintNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,+mb,U,Ua),Ua&&G.paintNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),Pa&&G.paintSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),Xa&&G.paintSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),g.close(),g.fill(),g.setShadow(!1),g.setFillColor(fc),Wa=ba=jc,"none"==fc&&(ba=0),"none"==gc&&(Wa=0),g.setGradient(fc,gc,0,0,v,B,ic,ba,Wa),g.begin(),Ra?G.moveNWInner(g,r,C,v,B,I,fb,U,pa,Ra,Xa):g.moveTo(pa,0),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),Xa&&Pa&&G.paintSWInner(g,r,C,v,B,+I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),Pa&&Ua&&G.paintSEInner(g,r,C,v,B,I,ob,U,pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),Ua&&Ra&&G.paintNEInner(g,r,C,v,B,I,mb,U,pa),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),Ra&&Xa&&G.paintNWInner(g,r,C,v,B,I,fb,U,pa),g.fill(),"none"==ec&&(g.begin(),G.paintFolds(g,r,C,v,B,I,fb,mb,ob,nb,U,Ra,Ua,Pa,Xa),g.stroke()));Ra||Ua||Pa||!Xa?Ra||Ua||!Pa||Xa?!Ra&&!Ua&&Pa&&Xa?"frame"!=za?(g.begin(),G.moveSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,+B,I,nb,U,Xa),G.paintSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),"double"==za&&(G.moveNWInner(g,r,C,v,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,r,C,v,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa)),g.stroke()):(g.begin(),G.moveSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.paintSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),G.lineNWInner(g,r,C,v,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,+r,C,v,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),g.close(),g.fillAndStroke()):Ra||!Ua||Pa||Xa?!Ra&&Ua&&!Pa&&Xa?"frame"!=za?(g.begin(),G.moveSW(g,r,C,v,B,I,fb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),"double"==za&&(G.moveNWInner(g,r,C,v,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa)),g.stroke(),g.begin(),G.moveNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),"double"==za&&(G.moveSEInner(g,r,C,v,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua)),+g.stroke()):(g.begin(),G.moveSW(g,r,C,v,B,I,fb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),G.lineNWInner(g,r,C,v,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),g.close(),g.fillAndStroke(),g.begin(),G.moveNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.lineSEInner(g,r,C,v,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),g.close(),g.fillAndStroke()):!Ra&&Ua&&Pa&&!Xa?"frame"!=za?(g.begin(),G.moveNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.paintSE(g,+r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),"double"==za&&(G.moveSWInner(g,r,C,v,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,v,B,I,ob,U,pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua)),g.stroke()):(g.begin(),G.moveNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.paintSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.lineSWInner(g,r,C,v,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,v,B,I,ob,+U,pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),g.close(),g.fillAndStroke()):!Ra&&Ua&&Pa&&Xa?"frame"!=za?(g.begin(),G.moveNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.paintSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.paintSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),"double"==za&&(G.moveNWInner(g,r,C,v,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,r,C,v,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,+r,C,v,B,I,ob,U,pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua)),g.stroke()):(g.begin(),G.moveNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.paintSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.paintSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),G.lineNWInner(g,r,C,v,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,r,C,v,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,v,B,I,ob,U,pa),G.paintRightInner(g,+r,C,v,B,I,mb,U,pa,Ra,Ua),g.close(),g.fillAndStroke()):!Ra||Ua||Pa||Xa?Ra&&!Ua&&!Pa&&Xa?"frame"!=za?(g.begin(),G.moveSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),G.paintNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),"double"==za&&(G.moveNEInner(g,r,C,v,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,v,B,I,fb,U,pa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa)),g.stroke()):(g.begin(),G.moveSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),G.paintNW(g,+r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.lineNEInner(g,r,C,v,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,v,B,I,fb,U,pa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),g.close(),g.fillAndStroke()):Ra&&!Ua&&Pa&&!Xa?"frame"!=za?(g.begin(),G.moveNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),"double"==za&&(G.moveNEInner(g,r,C,v,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra)),g.stroke(),g.begin(),G.moveSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,+r,C,v,B,I,nb,U,Xa),"double"==za&&(G.moveSWInner(g,r,C,v,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa)),g.stroke()):(g.begin(),G.moveNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.lineNEInner(g,r,C,v,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),g.close(),g.fillAndStroke(),g.begin(),G.moveSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.lineSWInner(g,r,C,v,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),g.close(),g.fillAndStroke()):+Ra&&!Ua&&Pa&&Xa?"frame"!=za?(g.begin(),G.moveSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.paintSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),G.paintNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),"double"==za&&(G.moveNEInner(g,r,C,v,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,v,B,I,fb,U,pa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,r,C,v,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa)),g.stroke()):+(g.begin(),G.moveSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.paintSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),G.paintNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.lineNEInner(g,r,C,v,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,v,B,I,fb,U,pa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),G.paintSWInner(g,r,C,v,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),g.close(),g.fillAndStroke()):Ra&&Ua&&!Pa&&!Xa?"frame"!=+za?(g.begin(),G.moveNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.paintNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),"double"==za&&(G.moveSEInner(g,r,C,v,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,v,B,I,mb,U,pa),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra)),g.stroke()):(g.begin(),G.moveNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.paintNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.lineSEInner(g,r,C,v,B,I,ob,U,pa,+Pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,v,B,I,mb,U,pa),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),g.close(),g.fillAndStroke()):Ra&&Ua&&!Pa&&Xa?"frame"!=za?(g.begin(),G.moveSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),G.paintNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.paintNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),"double"==za&&(G.moveSEInner(g,r,C,v,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,+r,C,v,B,I,mb,U,pa),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,v,B,I,fb,U,pa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa)),g.stroke()):(g.begin(),G.moveSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),G.paintNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.paintNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.lineSEInner(g,r,C,v,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,v,B,I,mb,U,pa),G.paintTopInner(g,r,C,v,B,+I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,v,B,I,fb,U,pa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),g.close(),g.fillAndStroke()):Ra&&Ua&&Pa&&!Xa?"frame"!=za?(g.begin(),G.moveNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.paintNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.paintSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),"double"==za&&(G.moveSWInner(g,r,C,v,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,v,B,I,ob,U,pa),G.paintRightInner(g,+r,C,v,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,v,B,I,mb,U,pa),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra)),g.stroke()):(g.begin(),G.moveNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.paintNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.paintSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.lineSWInner(g,r,C,v,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,v,B,I,ob,U,pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,+r,C,v,B,I,mb,U,pa),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),g.close(),g.fillAndStroke()):Ra&&Ua&&Pa&&Xa&&("frame"!=za?(g.begin(),G.moveNW(g,r,C,v,B,I,fb,U,Xa),G.paintNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.paintNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.paintSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.paintSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),g.close(),"double"==za&&(G.moveSWInner(g,r,C,v,B,I,nb,U,pa,Xa),G.paintSWInner(g,r,+C,v,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,v,B,I,ob,U,pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,v,B,I,mb,U,pa),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,v,B,I,fb,U,pa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),g.close()),g.stroke()):(g.begin(),G.moveNW(g,r,C,v,B,I,fb,U,Xa),G.paintNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.paintNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.paintSE(g,+r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.paintSW(g,r,C,v,B,I,nb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),g.close(),G.moveSWInner(g,r,C,v,B,I,nb,U,pa,Xa),G.paintSWInner(g,r,C,v,B,I,nb,U,pa,Pa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),G.paintSEInner(g,r,C,v,B,I,ob,U,pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),G.paintNEInner(g,r,C,v,B,I,mb,U,pa),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),G.paintNWInner(g,r,C,v,B,I,fb,U,pa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa),g.close(),+g.fillAndStroke())):"frame"!=za?(g.begin(),G.moveNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),"double"==za&&(G.moveNEInner(g,r,C,v,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra)),g.stroke()):(g.begin(),G.moveNW(g,r,C,v,B,I,fb,U,Xa),G.paintTop(g,r,C,v,B,I,mb,U,Ua),G.lineNEInner(g,r,C,v,B,I,mb,U,pa,Ua),G.paintTopInner(g,r,C,v,B,I,fb,U,pa,Xa,Ra),g.close(),g.fillAndStroke()):"frame"!=za?(g.begin(),G.moveNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),"double"==za&&(G.moveSEInner(g,+r,C,v,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua)),g.stroke()):(g.begin(),G.moveNE(g,r,C,v,B,I,mb,U,Ra),G.paintRight(g,r,C,v,B,I,ob,U,Pa),G.lineSEInner(g,r,C,v,B,I,ob,U,pa,Pa),G.paintRightInner(g,r,C,v,B,I,mb,U,pa,Ra,Ua),g.close(),g.fillAndStroke()):"frame"!=za?(g.begin(),G.moveSE(g,r,C,v,B,I,ob,U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),"double"==za&&(G.moveSWInner(g,r,C,v,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa)),g.stroke()):(g.begin(),G.moveSE(g,r,C,v,B,I,ob,+U,Ua),G.paintBottom(g,r,C,v,B,I,nb,U,Xa),G.lineSWInner(g,r,C,v,B,I,nb,U,pa,Xa),G.paintBottomInner(g,r,C,v,B,I,ob,U,pa,Ua,Pa),g.close(),g.fillAndStroke()):"frame"!=za?(g.begin(),G.moveSW(g,r,C,v,B,I,fb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),"double"==za&&(G.moveNWInner(g,r,C,v,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,v,B,I,nb,U,pa,Pa,Xa)),g.stroke()):(g.begin(),G.moveSW(g,r,C,v,B,I,fb,U,Pa),G.paintLeft(g,r,C,v,B,I,fb,U,Ra),G.lineNWInner(g,r,C,v,B,I,fb,U,pa,Ra,Xa),G.paintLeftInner(g,r,C,v,B,I,nb,U,+pa,Pa,Xa),g.close(),g.fillAndStroke());g.begin();G.paintFolds(g,r,C,v,B,I,fb,mb,ob,nb,U,Ra,Ua,Pa,Xa);g.stroke()};zb.prototype.moveNW=function(g,r,C,v,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.moveTo(0,0):g.moveTo(0,ba)};zb.prototype.moveNE=function(g,r,C,v,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.moveTo(v,0):g.moveTo(v-ba,0)};zb.prototype.moveSE=function(g,r,C,v,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.moveTo(v,B):g.moveTo(v,B-ba)};zb.prototype.moveSW=+function(g,r,C,v,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.moveTo(0,B):g.moveTo(ba,B)};zb.prototype.paintNW=function(g,r,C,v,B,G,I,ba,U){if(U)if("rounded"==I||"default"==I&&"rounded"==G||"invRound"==I||"default"==I&&"invRound"==G){r=0;if("rounded"==I||"default"==I&&"rounded"==G)r=1;g.arcTo(ba,ba,0,0,r,ba,0)}else("snip"==I||"default"==I&&"snip"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(ba,0);else g.lineTo(0,0)};zb.prototype.paintTop=function(g,r,C,v,B,G,I,ba,U){"square"==I||+"default"==I&&"square"==G||!U?g.lineTo(v,0):g.lineTo(v-ba,0)};zb.prototype.paintNE=function(g,r,C,v,B,G,I,ba,U){if(U)if("rounded"==I||"default"==I&&"rounded"==G||"invRound"==I||"default"==I&&"invRound"==G){r=0;if("rounded"==I||"default"==I&&"rounded"==G)r=1;g.arcTo(ba,ba,0,0,r,v,ba)}else("snip"==I||"default"==I&&"snip"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(v,ba);else g.lineTo(v,0)};zb.prototype.paintRight=function(g,r,C,v,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.lineTo(v,+B):g.lineTo(v,B-ba)};zb.prototype.paintLeft=function(g,r,C,v,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.lineTo(0,0):g.lineTo(0,ba)};zb.prototype.paintSE=function(g,r,C,v,B,G,I,ba,U){if(U)if("rounded"==I||"default"==I&&"rounded"==G||"invRound"==I||"default"==I&&"invRound"==G){r=0;if("rounded"==I||"default"==I&&"rounded"==G)r=1;g.arcTo(ba,ba,0,0,r,v-ba,B)}else("snip"==I||"default"==I&&"snip"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(v-ba,B);else g.lineTo(v,B)};zb.prototype.paintBottom=+function(g,r,C,v,B,G,I,ba,U){"square"==I||"default"==I&&"square"==G||!U?g.lineTo(0,B):g.lineTo(ba,B)};zb.prototype.paintSW=function(g,r,C,v,B,G,I,ba,U){if(U)if("rounded"==I||"default"==I&&"rounded"==G||"invRound"==I||"default"==I&&"invRound"==G){r=0;if("rounded"==I||"default"==I&&"rounded"==G)r=1;g.arcTo(ba,ba,0,0,r,0,B-ba)}else("snip"==I||"default"==I&&"snip"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(0,B-ba);else g.lineTo(0,B)};zb.prototype.paintNWInner=function(g,r,C,v,B,G,I,ba,U){if("rounded"==+I||"default"==I&&"rounded"==G)g.arcTo(ba-.5*U,ba-.5*U,0,0,0,U,.5*U+ba);else if("invRound"==I||"default"==I&&"invRound"==G)g.arcTo(ba+U,ba+U,0,0,1,U,U+ba);else if("snip"==I||"default"==I&&"snip"==G)g.lineTo(U,.5*U+ba);else if("fold"==I||"default"==I&&"fold"==G)g.lineTo(U+ba,U+ba),g.lineTo(U,U+ba)};zb.prototype.paintTopInner=function(g,r,C,v,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.lineTo(0,U):za&&!pa?g.lineTo(U,0):za?"square"==I||"default"==I&&"square"==G?g.lineTo(U,U):"rounded"==I||"default"==I&&"rounded"==+G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(ba+.5*U,U):g.lineTo(ba+U,U):g.lineTo(0,U):g.lineTo(0,0)};zb.prototype.paintNEInner=function(g,r,C,v,B,G,I,ba,U){if("rounded"==I||"default"==I&&"rounded"==G)g.arcTo(ba-.5*U,ba-.5*U,0,0,0,v-ba-.5*U,U);else if("invRound"==I||"default"==I&&"invRound"==G)g.arcTo(ba+U,ba+U,0,0,1,v-ba-U,U);else if("snip"==I||"default"==I&&"snip"==G)g.lineTo(v-ba-.5*U,U);else if("fold"==I||"default"==I&&"fold"==G)g.lineTo(v-ba-U,ba+U),g.lineTo(v-ba-U,U)};zb.prototype.paintRightInner=+function(g,r,C,v,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.lineTo(v-U,0):za&&!pa?g.lineTo(v,U):za?"square"==I||"default"==I&&"square"==G?g.lineTo(v-U,U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(v-U,ba+.5*U):g.lineTo(v-U,ba+U):g.lineTo(v-U,0):g.lineTo(v,0)};zb.prototype.paintLeftInner=function(g,r,C,v,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.lineTo(U,B):za&&!pa?g.lineTo(0,B-U):za?"square"==I||"default"==I&&"square"==G?g.lineTo(U,B-U):"rounded"==I||"default"==I&&"rounded"==+G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(U,B-ba-.5*U):g.lineTo(U,B-ba-U):g.lineTo(U,B):g.lineTo(0,B)};zb.prototype.paintSEInner=function(g,r,C,v,B,G,I,ba,U){if("rounded"==I||"default"==I&&"rounded"==G)g.arcTo(ba-.5*U,ba-.5*U,0,0,0,v-U,B-ba-.5*U);else if("invRound"==I||"default"==I&&"invRound"==G)g.arcTo(ba+U,ba+U,0,0,1,v-U,B-ba-U);else if("snip"==I||"default"==I&&"snip"==G)g.lineTo(v-U,B-ba-.5*U);else if("fold"==I||"default"==I&&"fold"==G)g.lineTo(v-ba-U,B-ba-U),g.lineTo(v-U,B-ba-U)};zb.prototype.paintBottomInner=+function(g,r,C,v,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.lineTo(v,B-U):za&&!pa?g.lineTo(v-U,B):"square"==I||"default"==I&&"square"==G||!za?g.lineTo(v-U,B-U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(v-ba-.5*U,B-U):g.lineTo(v-ba-U,B-U):g.lineTo(v,B)};zb.prototype.paintSWInner=function(g,r,C,v,B,G,I,ba,U,za){if(!za)g.lineTo(U,B);else if("square"==I||"default"==I&&"square"==G)g.lineTo(U,B-U);else if("rounded"==I||"default"==I&&"rounded"==G)g.arcTo(ba-.5*U,ba-.5*+U,0,0,0,ba+.5*U,B-U);else if("invRound"==I||"default"==I&&"invRound"==G)g.arcTo(ba+U,ba+U,0,0,1,ba+U,B-U);else if("snip"==I||"default"==I&&"snip"==G)g.lineTo(ba+.5*U,B-U);else if("fold"==I||"default"==I&&"fold"==G)g.lineTo(U+ba,B-ba-U),g.lineTo(U+ba,B-U)};zb.prototype.moveSWInner=function(g,r,C,v,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==G?g.moveTo(U,B-U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.moveTo(U,B-ba-.5*U):("invRound"==I||"default"==I&&"invRound"==+G||"fold"==I||"default"==I&&"fold"==G)&&g.moveTo(U,B-ba-U):g.moveTo(0,B-U)};zb.prototype.lineSWInner=function(g,r,C,v,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==G?g.lineTo(U,B-U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(U,B-ba-.5*U):("invRound"==I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(U,B-ba-U):g.lineTo(0,B-U)};zb.prototype.moveSEInner=function(g,r,C,v,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==+G?g.moveTo(v-U,B-U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.moveTo(v-U,B-ba-.5*U):("invRound"==I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.moveTo(v-U,B-ba-U):g.moveTo(v-U,B)};zb.prototype.lineSEInner=function(g,r,C,v,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==G?g.lineTo(v-U,B-U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(v-U,B-ba-.5*U):("invRound"==I||"default"==I&&"invRound"==+G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(v-U,B-ba-U):g.lineTo(v-U,B)};zb.prototype.moveNEInner=function(g,r,C,v,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==G||za?g.moveTo(v-U,U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.moveTo(v-U,ba+.5*U):("invRound"==I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.moveTo(v-U,ba+U):g.moveTo(v,U)};zb.prototype.lineNEInner=function(g,r,C,v,B,G,I,ba,U,za){za?"square"==I||"default"==I&&"square"==+G||za?g.lineTo(v-U,U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(v-U,ba+.5*U):("invRound"==I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(v-U,ba+U):g.lineTo(v,U)};zb.prototype.moveNWInner=function(g,r,C,v,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.moveTo(U,0):za&&!pa?g.moveTo(0,U):"square"==I||"default"==I&&"square"==G?g.moveTo(U,U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.moveTo(U,ba+.5*U):("invRound"==+I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.moveTo(U,ba+U):g.moveTo(0,0)};zb.prototype.lineNWInner=function(g,r,C,v,B,G,I,ba,U,za,pa){za||pa?!za&&pa?g.lineTo(U,0):za&&!pa?g.lineTo(0,U):"square"==I||"default"==I&&"square"==G?g.lineTo(U,U):"rounded"==I||"default"==I&&"rounded"==G||"snip"==I||"default"==I&&"snip"==G?g.lineTo(U,ba+.5*U):("invRound"==I||"default"==I&&"invRound"==G||"fold"==I||"default"==I&&"fold"==G)&&g.lineTo(U,ba+U):g.lineTo(0,0)};zb.prototype.paintFolds=function(g,+r,C,v,B,G,I,ba,U,za,pa,Wa,ub,jb,Ra){if("fold"==G||"fold"==I||"fold"==ba||"fold"==U||"fold"==za)("fold"==I||"default"==I&&"fold"==G)&&Wa&&Ra&&(g.moveTo(0,pa),g.lineTo(pa,pa),g.lineTo(pa,0)),("fold"==ba||"default"==ba&&"fold"==G)&&Wa&&ub&&(g.moveTo(v-pa,0),g.lineTo(v-pa,pa),g.lineTo(v,pa)),("fold"==U||"default"==U&&"fold"==G)&&jb&&ub&&(g.moveTo(v-pa,B),g.lineTo(v-pa,B-pa),g.lineTo(v,B-pa)),("fold"==za||"default"==za&&"fold"==G)&&jb&&Ra&&(g.moveTo(0,B-pa),g.lineTo(pa,B-pa),g.lineTo(pa,B))};mxCellRenderer.registerShape(zb.prototype.cst.RECT2,+zb);zb.prototype.constraints=null;mxUtils.extend(Ub,mxConnector);Ub.prototype.origPaintEdgeShape=Ub.prototype.paintEdgeShape;Ub.prototype.paintEdgeShape=function(g,r){for(var C=[],v=0;v<r.length;v++)C.push(mxUtils.clone(r[v]));v=g.state.dashed;var B=g.state.fixDash;Ub.prototype.origPaintEdgeShape.apply(this,[g,C]);3<=g.state.strokeWidth&&(C=mxUtils.getValue(this.style,"fillColor",null),null!=C&&(g.setStrokeColor(C),g.setStrokeWidth(g.state.strokeWidth-2),g.setDashed(v,B),Ub.prototype.origPaintEdgeShape.apply(this,+[g,r])))};mxCellRenderer.registerShape("filledEdge",Ub);mxUtils.extend(Lb,mxConnector);Lb.prototype.defaultWidth=4;Lb.prototype.getEdgeWidth=function(){return Math.max(0,mxUtils.getNumber(this.style,"width",this.defaultWidth))};Lb.prototype.getFlowAnimationPath=function(){return mxShape.prototype.getFlowAnimationPath.call(this,2)||mxShape.prototype.getFlowAnimationPath.call(this)};Lb.prototype.origPaintEdgeShape=Lb.prototype.paintEdgeShape;Lb.prototype.paintEdgeShape=function(g,r){for(var C=[],v=+0;v<r.length;v++)C.push(mxUtils.clone(r[v]));v=g.state.dashed;var B=g.state.fixDash,G=this.getEdgeWidth();g.setStrokeWidth(G+2*this.strokewidth);g.setDashed(!1);Lb.prototype.origPaintEdgeShape.apply(this,[g,C]);C=mxUtils.getValue(this.style,"fillColor",null);null!=C&&(g.setStrokeWidth(G),g.setStrokeColor(C),g.setDashed(v,B),Lb.prototype.origPaintEdgeShape.apply(this,[g,r]))};mxCellRenderer.registerShape("pipe",Lb);mxUtils.extend(Xb,mxRectangleShape);Xb.prototype.size=10;Xb.prototype.isRoundable=function(){return!0};+Xb.prototype.paintVertexShape=function(g,r,C,v,B){g.translate(r,C);r=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,null);null!=r&&r!=mxConstants.NONE&&(g.setStrokeColor("none"),g.begin(),g.rect(0,0,v,B),g.fillAndStroke(),g.setStrokeColor(this.stroke));var G=Math.max(5,parseFloat(mxUtils.getValue(this.style,"size",this.size)));r=B/2;C=this.strokewidth;C=this.isRounded?C/2:C;B-=C;G=Math.max(1,Math.round(v/G)-1);var I=v/(G+1),ba=I/2;g.begin();g.moveTo(0,r);if(this.isRounded){g.curveTo(.4*ba,+r-.4*(r-C),.6*ba,C,ba,C);for(var U=0;U<G;U++){var za=ba+U*I,pa=za+I,Wa=0==U%2?B:C;g.curveTo(za+.4*I,0==U%2?C:B,pa-.4*I,Wa,pa,Wa)}B=0==G%2?C:B;g.curveTo(ba+G*I+.4*ba,B,v-.4*ba,r-(B==C?1:-1)*(r-C)*.4,v,r)}else{g.lineTo(ba,C);for(U=0;U<G;U++)pa=ba+(U+1)*I,Wa=0==U%2?B:C,g.lineTo(pa,Wa);g.lineTo(v,r)}g.stroke()};mxCellRenderer.registerShape("zigzag",Xb);"undefined"!==typeof StyleFormatPanel&&function(){var g=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var r=+this.editorUi.getSelectionState(),C=g.apply(this,arguments);"umlFrame"==r.style.shape&&C.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return C}}();mxMarker.addMarker("dash",function(g,r,C,v,B,G,I,ba,U,za){var pa=B*(I+U+1),Wa=G*(I+U+1);return function(){g.begin();g.moveTo(v.x-pa/2-Wa/2,v.y-Wa/2+pa/2);g.lineTo(v.x+Wa/2-3*pa/2,v.y-3*Wa/2-pa/2);g.stroke()}});mxMarker.addMarker("box",function(g,r,C,v,B,G,I,ba,U,za){var pa=B*(I+U+1),Wa=G*(I+U+1),ub=v.x+pa/2,+jb=v.y+Wa/2;v.x-=pa;v.y-=Wa;return function(){g.begin();g.moveTo(ub-pa/2-Wa/2,jb-Wa/2+pa/2);g.lineTo(ub-pa/2+Wa/2,jb-Wa/2-pa/2);g.lineTo(ub+Wa/2-3*pa/2,jb-3*Wa/2-pa/2);g.lineTo(ub-Wa/2-3*pa/2,jb-3*Wa/2+pa/2);g.close();za?g.fillAndStroke():g.stroke()}});mxMarker.addMarker("cross",function(g,r,C,v,B,G,I,ba,U,za){var pa=B*(I+U+1),Wa=G*(I+U+1);return function(){g.begin();g.moveTo(v.x-pa/2-Wa/2,v.y-Wa/2+pa/2);g.lineTo(v.x+Wa/2-3*pa/2,v.y-3*Wa/2-pa/2);g.moveTo(v.x-pa/2+Wa/2,v.y-Wa/2-pa/2);g.lineTo(v.x-+Wa/2-3*pa/2,v.y-3*Wa/2+pa/2);g.stroke()}});mxMarker.addMarker("circle",bc);mxMarker.addMarker("circlePlus",function(g,r,C,v,B,G,I,ba,U,za){var pa=v.clone(),Wa=bc.apply(this,arguments),ub=B*(I+2*U),jb=G*(I+2*U);return function(){Wa.apply(this,arguments);g.begin();g.moveTo(pa.x-B*U,pa.y-G*U);g.lineTo(pa.x-2*ub+B*U,pa.y-2*jb+G*U);g.moveTo(pa.x-ub-jb+G*U,pa.y-jb+ub-B*U);g.lineTo(pa.x+jb-ub-G*U,pa.y-jb-ub+B*U);g.stroke()}});mxMarker.addMarker("halfCircle",function(g,r,C,v,B,G,I,ba,U,za){var pa=B*(I+U++1),Wa=G*(I+U+1),ub=v.clone();v.x-=pa;v.y-=Wa;return function(){g.begin();g.moveTo(ub.x-Wa,ub.y+pa);g.quadTo(v.x-Wa,v.y+pa,v.x,v.y);g.quadTo(v.x+Wa,v.y-pa,ub.x+Wa,ub.y-pa);g.stroke()}});mxMarker.addMarker("async",function(g,r,C,v,B,G,I,ba,U,za){r=B*U*1.118;C=G*U*1.118;B*=I+U;G*=I+U;var pa=v.clone();pa.x-=r;pa.y-=C;v.x+=-B-r;v.y+=-G-C;return function(){g.begin();g.moveTo(pa.x,pa.y);ba?g.lineTo(pa.x-B-G/2,pa.y-G+B/2):g.lineTo(pa.x+G/2-B,pa.y-G-B/2);g.lineTo(pa.x-B,pa.y-G);g.close();za?g.fillAndStroke():+g.stroke()}});mxMarker.addMarker("openAsync",function(g){g=null!=g?g:2;return function(r,C,v,B,G,I,ba,U,za,pa){G*=ba+za;I*=ba+za;var Wa=B.clone();return function(){r.begin();r.moveTo(Wa.x,Wa.y);U?r.lineTo(Wa.x-G-I/g,Wa.y-I+G/g):r.lineTo(Wa.x+I/g-G,Wa.y-I-G/g);r.stroke()}}}(2));mxMarker.addMarker("mermaidExtension",function(){var g=17/6;return function(r,C,v,B,G,I,ba,U,za,pa){G*=ba+za;I*=ba+za;var Wa=B.clone();B.x-=G;B.y-=I;return function(){r.begin();r.moveTo(Wa.x,Wa.y);r.lineTo(Wa.x-G-I/g,Wa.y-I++G/g);r.lineTo(Wa.x-G+I/g,Wa.y-I-G/g);r.close();pa?r.fillAndStroke():r.stroke()}}}());mxMarker.addMarker("mermaidDiamond",function(g,r,C,v,B,G,I,ba,U,za){var pa=17/6;B*=I+U;G*=I+U;var Wa=v.clone();v.x-=B;v.y-=G;return function(){g.begin();g.moveTo(Wa.x,Wa.y);g.lineTo(Wa.x-B/2-G/pa,Wa.y-G/2+B/pa);g.lineTo(Wa.x-B,Wa.y-G);g.lineTo(Wa.x-B/2+G/pa,Wa.y-G/2-B/pa);g.close();za?g.fillAndStroke():g.stroke()}});mxUtils.extend(Gb,mxRectangleShape);Gb.prototype.arcStartY=25;Gb.prototype.arcMidY=-25;Gb.prototype.arcEndY=+25;Gb.prototype.paintForeground=function(g,r,C,v,B){mxRectangleShape.prototype.paintForeground.apply(this,arguments);if(null!=this.state){var G=this.state.view.graph;if(null==G.cellEditor||G.cellEditor.editingCell!=this.state.cell)if(G=G.convertValueToString(this.state.cell),null!=G&&0!=G.length){var I=parseFloat(mxUtils.getValue(this.style,"arcStartY",this.arcStartY)),ba=parseFloat(mxUtils.getValue(this.style,"arcMidY",this.arcMidY)),U=parseFloat(mxUtils.getValue(this.style,"arcEndY",this.arcEndY)),za=mxUtils.getValue(this.style,"curveType","round");if(null!=g.root&&"function"===typeof g.getBaseUrl){null!=this._curvedTextGroup&&null!=this._curvedTextGroup.parentNode&&this._curvedTextGroup.parentNode.removeChild(this._curvedTextGroup);this._curvedTextGroup=null;g.translate(r,C);var pa=g.state,Wa=parseFloat(mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE)),ub=Wa/2,jb=(I+U)/2,Ra=Math.max(Math.abs(Gb.prototype.arcMidY),Math.min(jb,B-jb));ba=Math.max(-Ra,Math.min(Ra,-ba));var Ua=jb+ba;ba=Math.min(I,U,Ua);Ra=Math.max(I,U,Ua);jb=Ra-ba;var Pa=mxUtils.getValue(this.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);this._curveYOffset=jb=Pa==mxConstants.ALIGN_TOP?ub-ba:Pa==mxConstants.ALIGN_BOTTOM?B-ub-Ra:(B-jb)/2-ba;Pa=u-ub;ba=(ub+pa.dx)*pa.scale;I=(I+jb+pa.dy)*pa.scale;Ra=((ub+Pa)/2+pa.dx)*pa.scale;Ua=(Ua+jb+pa.dy)*pa.scale;ub=(Pa+pa.dx)*pa.scale;U=(U+jb+pa.dy)*pa.scale;"round"==za?(Pa=Math.sqrt((ub-ba)*(ub-ba)+(U-I)*(U-I)),za=(ba+ub)/2,jb=(I+U)/2,+ba));var Ua=jb+ba;ba=Math.min(I,U,Ua);Ra=Math.max(I,U,Ua);jb=Ra-ba;var Pa=mxUtils.getValue(this.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);this._curveYOffset=jb=Pa==mxConstants.ALIGN_TOP?ub-ba:Pa==mxConstants.ALIGN_BOTTOM?B-ub-Ra:(B-jb)/2-ba;Pa=v-ub;ba=(ub+pa.dx)*pa.scale;I=(I+jb+pa.dy)*pa.scale;Ra=((ub+Pa)/2+pa.dx)*pa.scale;Ua=(Ua+jb+pa.dy)*pa.scale;ub=(Pa+pa.dx)*pa.scale;U=(U+jb+pa.dy)*pa.scale;"round"==za?(Pa=Math.sqrt((ub-ba)*(ub-ba)+(U-I)*(U-I)),za=(ba+ub)/2,jb=(I+U)/2,za=Math.sqrt((Ra-za)*(Ra-za)+(Ua-jb)*(Ua-jb)),.5>za?(za="M "+g.format(ba)+" "+g.format(I)+" L "+g.format(ub)+" "+g.format(U),ba=Pa):(Pa/=2,jb=Pa*Pa/(2*za)+za/2,Ua=0<(ub-ba)*(Ua-I)-(U-I)*(Ra-ba)?0:1,Ra=za>Pa?1:0,za="M "+g.format(ba)+" "+g.format(I)+" A "+g.format(jb)+" "+g.format(jb)+" 0 "+Ra+" "+Ua+" "+g.format(ub)+" "+g.format(U),ba=2*Math.asin(Math.min(1,Pa/jb)),Ra&&(ba=2*Math.PI-ba),ba*=jb)):(za="M "+g.format(ba)+" "+g.format(I)+" Q "+g.format(Ra)+" "+g.format(Ua)+" "+g.format(ub)+" "+g.format(U),jb=Ra-ba,Pa=Ua-I,Ra=ub-Ra,Ua=U-Ua,ba=ub-ba,I=U-I,ba=(Math.sqrt(jb*jb+Pa*Pa)+Math.sqrt(Ra*Ra+Ua*Ua)+Math.sqrt(ba*ba+I*I))/2);U=(g.idPrefix||"")+"ctp-"+mxObjectIdentity.get(this);Ra=(I=!mxClient.IS_CHROMEAPP&&g.root.ownerDocument==document)?g.getBaseUrl().replace(/([\(\)])/g,"\\$1"):"";ub=g.createElement("g");Ua=pa.transform||"";0<Ua.length&&ub.setAttribute("transform",Ua);1>pa.alpha&&ub.setAttribute("opacity",pa.alpha);Ua=g.createElement("defs");jb=g.createElement("path");jb.setAttribute("id",U);jb.setAttribute("d",za);Ua.appendChild(jb);ub.appendChild(Ua);za=g.createElement("text");jb=mxUtils.getValue(this.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);Pa=mxUtils.getValue(this.style,mxConstants.STYLE_FONTCOLOR,"#000000");Ua=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSTYLE,0);za.setAttribute("font-size",Wa*pa.scale+"px");za.setAttribute("font-family",mxUtils.parseCssFontFamily(jb));za.setAttribute("fill",Pa);(Ua&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&za.setAttribute("font-weight","bold");(Ua&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC&&za.setAttribute("font-style","italic");pa=[];(Ua&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&pa.push("underline");(Ua&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&pa.push("line-through");0<pa.length&&(za.setAttribute("text-decoration",pa.join(" ")),(Ua&mxConstants.FONT_UNDERLINE_DOTTED)==mxConstants.FONT_UNDERLINE_DOTTED&&(za.style.textDecorationStyle="dotted"));Wa=mxUtils.getValue(this.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);Ua="middle";pa="50%";Wa==mxConstants.ALIGN_LEFT?(Ua="start",pa="0%"):Wa==mxConstants.ALIGN_RIGHT&&(Ua="end",pa="100%");za.setAttribute("text-anchor",Ua);za.setAttribute("dominant-baseline","central");Wa=g.createElement("textPath");Wa.setAttribute("startOffset",pa);pa=(I?Ra:"")+"#"+U;Wa.setAttribute("href",pa);I&&Wa.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",pa);Wa.setAttribute("textLength",ba);Wa.setAttribute("lengthAdjust","spacing");mxUtils.write(Wa,G);-za.appendChild(Wa);ub.appendChild(za);g.root.appendChild(ub);this._curvedTextGroup=ub}else g.text(r+u/2,C+B/2,0,0,G,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,!1,"",null,!1,0)}}};Gb.prototype.destroy=function(){null!=this._curvedTextGroup&&null!=this._curvedTextGroup.parentNode&&this._curvedTextGroup.parentNode.removeChild(this._curvedTextGroup);this._curvedTextGroup=null;mxRectangleShape.prototype.destroy.apply(this,arguments)};mxCellRenderer.registerShape("curvedText",Gb);mxUtils.extend(Ob,-mxActor);Ob.prototype.tabSize=8;Ob.prototype.tabInset=4;Ob.prototype.holeSize=1;Ob.prototype.isRoundable=function(){return!1};Ob.prototype.redrawPath=function(g,r,C,u,B){r=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"tabSize",this.tabSize))));var G=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"tabInset",this.tabInset))));C=(B-G)/2;G=C+G;g.moveTo(0,C);g.lineTo(0,G);g.lineTo(r,B);g.lineTo(u,B);g.lineTo(u,0);g.lineTo(r,0);g.close();g.end()};Ob.prototype.paintVertexShape=-function(g,r,C,u,B){mxActor.prototype.paintVertexShape.apply(this,arguments);var G=Math.max(0,parseFloat(mxUtils.getValue(this.style,"holeSize",this.holeSize)));if(!(0>=G)){var I=parseFloat(mxUtils.getValue(this.style,"tabSize",this.tabSize)),ba=mxUtils.getValue(this.style,"holeColor",mxUtils.getValue(this.style,mxConstants.STYLE_FONTCOLOR,"#333333"));g.setFillColor(ba);g.setStrokeColor(ba);g.begin();g.ellipse(I/2-G,B/2-G,2*G,2*G);g.fillAndStroke()}};Ob.prototype.getLabelBounds=function(g){var r=-parseFloat(mxUtils.getValue(this.style,"tabSize",this.tabSize))*this.scale;return new mxRectangle(g.x+r,g.y,g.width-r,g.height)};mxCellRenderer.registerShape("gitTag",Ob);mxUtils.extend(ac,mxShape);ac.prototype.paintVertexShape=function(g,r,C,u,B){var G=mxUtils.getValue(this.style,"innerColor","#ECECFF");g.translate(r,C);g.ellipse(0,0,u,B);g.fillAndStroke();r=.6*Math.min(u,B);u=(u-r)/2;B=(B-r)/2;g.setFillColor(G);g.setStrokeColor(G);g.ellipse(u,B,r,r);g.fillAndStroke()};mxCellRenderer.registerShape("gitMergeCommit",-ac);mxUtils.extend(Zb,mxShape);Zb.prototype.paintVertexShape=function(g,r,C,u,B){var G=mxUtils.getValue(this.style,"featureColor","#fff");g.translate(r,C);r=u/2;C=B/2;var I=Math.min(u,B)/20;g.ellipse(0,0,u,B);g.fillAndStroke();g.setFillColor(G);g.setStrokeColor(G);g.setStrokeWidth(0);u=2.75*I;g.ellipse(r-3*I-u,C+2*I-u,2*u,2*u);g.fillAndStroke();g.ellipse(r+3*I-u,C+2*I-u,2*u,2*u);g.fillAndStroke();g.setStrokeWidth(1*I);g.begin();g.moveTo(r+3*I,C+1*I);g.lineTo(r,C-5*I);g.stroke();g.begin();g.moveTo(r--3*I,C+1*I);g.lineTo(r,C-5*I);g.stroke()};mxCellRenderer.registerShape("gitCherryPick",Zb);mxUtils.extend(Vb,mxActor);Vb.prototype.isRoundable=function(){return!1};Vb.prototype.redrawPath=function(g,r,C,u,B){r=.8*u;B*=.8;C=.15*r;u=.8*C;var G=.1*r,I=.1*B;g.moveTo(G,I);G+=.25*r;I+=.1*-B;g.arcTo(C,C,0,0,0,G,I);G+=.25*r;I+=0;g.arcTo(C,C,0,0,0,G,I);G+=.25*r;I+=0;g.arcTo(C,C,0,0,0,G,I);G+=.25*r;I+=.1*B;g.arcTo(C,C,0,0,0,G,I);G+=.15*r;I+=.33*B;g.arcTo(C,C,0,0,0,G,I);G+=0;I+=.34*B;g.arcTo(u,u,0,0,0,G,I);G+=-.15*-r;I+=.33*B;g.arcTo(C,C,0,0,0,G,I);G+=.25*-r;I+=.15*B;g.arcTo(C,C,0,0,0,G,I);G+=.25*-r;I+=0;g.arcTo(C,C,0,0,0,G,I);G+=.25*-r;I+=0;g.arcTo(C,C,0,0,0,G,I);G+=.25*-r;I+=.15*-B;g.arcTo(C,C,0,0,0,G,I);G+=.1*-r;I+=.33*-B;g.arcTo(C,C,0,0,0,G,I);G+=0;I+=.34*-B;g.arcTo(u,u,0,0,0,G,I);g.arcTo(C,C,0,0,0,G+.1*r,I+.33*-B);g.close();g.end()};Vb.prototype.getLabelBounds=function(g){var r=.1*g.width,C=.1*g.height;return new mxRectangle(g.x+r,g.y+C,g.width-2*r,g.height-2*C)};mxCellRenderer.registerShape("mindmapBang",-Vb);mxUtils.extend(Bb,mxActor);Bb.prototype.isRoundable=function(){return!1};Bb.prototype.redrawPath=function(g,r,C,u,B){g.moveTo(0,0);g.lineTo(0,B);g.quadTo(2*u,B/2,0,0);g.close();g.end()};mxCellRenderer.registerShape("ishikawaHead",Bb);mxUtils.extend(Hb,mxActor);Hb.prototype.isRoundable=function(){return!1};Hb.prototype.redrawPath=function(g,r,C,u,B){r=B/4;g.moveTo(0,0);g.lineTo(r,B/2);g.lineTo(0,B);g.lineTo(u,B);g.lineTo(u,0);g.close();g.end()};Hb.prototype.getLabelBounds=function(g){var r=g.height/-4;return new mxRectangle(g.x+r,g.y,g.width-r,g.height)};mxCellRenderer.registerShape("mermaidOdd",Hb);mxUtils.extend(Ab,mxActor);Ab.prototype.isRoundable=function(){return!1};Ab.prototype.paintVertexShape=function(g,r,C,u,B){g.setLineJoin&&g.setLineJoin("round");mxActor.prototype.paintVertexShape.apply(this,arguments)};Ab.prototype.redrawPath=function(g,r,C,u,B){var G={};mxUtils.getValue(this.style,"dirs","right").split(/[,| ]+/).forEach(function(I){I=I.trim().toLowerCase();"x"===I?(G.right=!0,G.left=-!0):"y"===I?(G.up=!0,G.down=!0):I&&(G[I]=!0)});C=parseFloat(mxUtils.getValue(this.style,"nodePadding","8"));r=B/2;C/=2;u=G.right&&G.left&&G.up&&G.down?[[0,0],[r,0],[u/2,2*C],[u-r,0],[u,0],[u,-B/3],[u+2*C,-B/2],[u,-2*B/3],[u,-B],[u-r,-B],[u/2,-B-2*C],[r,-B],[0,-B],[0,-2*B/3],[-2*C,-B/2],[0,-B/3]]:G.right&&G.left&&G.up?[[r,0],[u-r,0],[u,-B/2],[u-r,-B],[r,-B],[0,-B/2]]:G.right&&G.left&&G.down?[[0,0],[r,-B],[u-r,-B],[u,0]]:G.right&&G.up&&G.down?[[0,0],[u,-r],[u,-B+r],[0,-B]]:G.left&&G.up&&G.down?[[u,-0],[0,-r],[0,-B+r],[u,-B]]:G.right&&G.left?[[r,0],[r,-C],[u-r,-C],[u-r,0],[u,-B/2],[u-r,-B],[u-r,-B+C],[r,-B+C],[r,-B],[0,-B/2]]:G.up&&G.down?[[u/2,0],[0,-C],[r,-C],[r,-B+C],[0,-B+C],[u/2,-B],[u,-B+C],[u-r,-B+C],[u-r,-C],[u,-C]]:G.right&&G.up?[[0,0],[u,-r],[0,-B]]:G.right&&G.down?[[0,0],[u,0],[0,-B]]:G.left&&G.up?[[u,0],[0,-r],[u,-B]]:G.left&&G.down?[[u,0],[0,0],[u,-B]]:G.right?[[r,-C],[u-r,-C],[u-r,0],[u,-B/2],[u-r,-B],[u-r,-B+C],[r,-B+C]]:G.left?[[r,0],[r,-C],[u-r,-C],[u-r,-B+C],[r,-B+C],[r,-B],-[0,-B/2]]:G.up?[[r,-C],[r,-B+C],[0,-B+C],[u/2,-B],[u,-B+C],[u-r,-B+C],[u-r,-C]]:G.down?[[u/2,0],[0,-C],[r,-C],[r,-B+C],[u-r,-B+C],[u-r,-C],[u,-C]]:[[0,0],[u,0],[u,-B],[0,-B]];g.moveTo(u[0][0],B+u[0][1]);for(r=1;r<u.length;r++)g.lineTo(u[r][0],B+u[r][1]);g.close();g.end()};mxCellRenderer.registerShape("mermaidBlockArrow",Ab);mxUtils.extend(Db,mxConnector);Db.prototype.defaultWidth=10;Db.prototype.getEdgeWidth=function(){return Math.max(1,mxUtils.getNumber(this.style,"width",this.defaultWidth))};Db.prototype.getSvgScreenOffset=-function(){return 0};Db.prototype.augmentBoundingBox=function(g){mxShape.prototype.augmentBoundingBox.apply(this,arguments);var r=(this.getEdgeWidth()/2+this.strokewidth)*this.scale;g.y-=r;g.height+=2*r};Db.prototype.paintEdgeShape=function(g,r){var C=r[0],u=r[r.length-1];if(null!=C&&null!=u){r=C.x;C=C.y;var B=u.x;u=u.y;for(var G=(r+B)/2,I=this.getEdgeWidth()/2,ba=[],U=[],za=0;32>=za;za++){var pa=za/32,Wa=1-pa,ub=Wa*Wa*Wa*r+3*Wa*Wa*pa*G+3*Wa*pa*pa*G+pa*pa*pa*B,jb=Wa*Wa*Wa*C+3*Wa*Wa*pa*C+3*Wa*pa*pa*-u+pa*pa*pa*u,Ra=3*Wa*Wa*(G-r)+3*pa*pa*(B-G);Wa=6*Wa*pa*(u-C);pa=Math.sqrt(Ra*Ra+Wa*Wa);0==pa&&(Ra=1,Wa=0,pa=1);Wa=-Wa/pa*I;Ra=Ra/pa*I;ba.push(new mxPoint(ub+Wa,jb+Ra));U.push(new mxPoint(ub-Wa,jb-Ra))}g.begin();g.moveTo(ba[0].x,ba[0].y);for(za=1;32>=za;za++)g.lineTo(ba[za].x,ba[za].y);for(za=32;0<=za;za--)g.lineTo(U[za].x,U[za].y);g.close();r=g.node;g.fillAndStroke();null!=r&&null!=r.setAttribute&&null!=r.parentNode&&(g=r.getAttribute("style"),r.setAttribute("style",(null!=g&&""!=g?g+";":"")+"mix-blend-mode:multiply"))}};-mxCellRenderer.registerShape("mermaidSankeyLink",Db);if("undefined"!==typeof mxVertexHandler){var ib=function(g,r,C){return kb(g,["width"],r,function(u,B,G,I,ba){ba=g.shape.getEdgeWidth()*g.view.scale+C;return new mxPoint(I.x+B*u/4+G*ba/2,I.y+G*u/4-B*ba/2)},function(u,B,G,I,ba,U){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));g.style.width=Math.round(Math.round(2*u)/g.view.scale-C)})},kb=function(g,r,C,u,B){return qb(g,r,function(G){var I=g.absolutePoints;if(null!=I&&0<I.length){var ba=-I.length-1;G=g.view.translate;var U=g.view.scale,za=C?I[0]:I[ba];I=C?I[1]:I[ba-1];ba=I.x-za.x;var pa=I.y-za.y,Wa=Math.sqrt(ba*ba+pa*pa);za=u.call(this,Wa,ba/Wa,pa/Wa,za,I);return new mxPoint(za.x/U-G.x,za.y/U-G.y)}return null},function(G,I,ba){var U=g.absolutePoints,za=U.length-1;G=g.view.translate;var pa=g.view.scale,Wa=C?U[0]:U[za];U=C?U[1]:U[za-1];za=U.x-Wa.x;var ub=U.y-Wa.y,jb=Math.sqrt(za*za+ub*ub);I.x=(I.x+G.x)*pa;I.y=(I.y+G.y)*pa;B.call(this,jb,za/jb,ub/jb,Wa,U,I,ba)})},pb=function(g,r){return function(C){return[kb(C,-["startWidth"],!0,function(u,B,G,I,ba){ba=mxUtils.getNumber(C.style,"startWidth",g)*C.view.scale+r;return new mxPoint(I.x+B*u/4+G*ba/2,I.y+G*u/4-B*ba/2)},function(u,B,G,I,ba,U){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));C.style.startWidth=Math.round(2*u)/C.view.scale-r})]}},sb=function(g){return function(r){return[qb(r,["arrowWidth","arrowSize"],function(C){var u=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"arrowWidth",Va.prototype.arrowWidth))),B=Math.max(0,Math.min(g,-mxUtils.getValue(this.state.style,"arrowSize",Va.prototype.arrowSize)));return new mxPoint(C.x+(1-B)*C.width,C.y+(1-u)*C.height/2)},function(C,u){this.state.style.arrowWidth=Math.max(0,Math.min(1,Math.abs(C.y+C.height/2-u.y)/C.height*2));this.state.style.arrowSize=Math.max(0,Math.min(g,(C.x+C.width-u.x)/C.width))})]}},gb=function(g){return function(r){return[qb(r,["size"],function(C){var u=Math.max(0,Math.min(.5*C.height,parseFloat(mxUtils.getValue(this.state.style,"size",g))));return new mxPoint(C.x,-C.y+u)},function(C,u){this.state.style.size=Math.max(0,u.y-C.y)},!0)]}},hb=function(g,r,C){return function(u){var B=[qb(u,["size"],function(G){var I=Math.max(0,Math.min(G.width,Math.min(G.height,parseFloat(mxUtils.getValue(this.state.style,"size",r)))))*g;return new mxPoint(G.x+I,G.y+I)},function(G,I){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(G.width,I.x-G.x),Math.min(G.height,I.y-G.y)))/g)},!1)];C&&mxUtils.getValue(u.style,mxConstants.STYLE_ROUNDED,!1)&&B.push(tb(u));return B}},-bb=function(g,r,C,u,B){C=null!=C?C:.5;return function(G){var I=[qb(G,["size"],function(ba){var U=null!=B?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,za=parseFloat(mxUtils.getValue(this.state.style,"size",U?B:g));return new mxPoint(ba.x+Math.max(0,Math.min(.5*ba.width,za*(U?1:ba.width))),ba.getCenterY())},function(ba,U,za){ba=null!=B&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?U.x-ba.x:Math.max(0,Math.min(C,(U.x-ba.x)/ba.width));this.state.style.size=ba},!1,u)];r&&mxUtils.getValue(G.style,-mxConstants.STYLE_ROUNDED,!1)&&I.push(tb(G));return I}},yb=function(g,r,C){g=null!=g?g:.5;return function(u){var B=[qb(u,["size"],function(G){var I=null!=C?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,ba=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,"size",I?C:r)));return new mxPoint(G.x+Math.min(.75*G.width*g,ba*(I?.75:.75*G.width)),G.y+G.height/4)},function(G,I){G=null!=C&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?I.x-G.x:Math.max(0,Math.min(g,(I.x-G.x)/G.width*-.75));this.state.style.size=G},!1,!0)];mxUtils.getValue(u.style,mxConstants.STYLE_ROUNDED,!1)&&B.push(tb(u));return B}},vb=function(){return function(g){var r=[];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r}},tb=function(g,r){return qb(g,[mxConstants.STYLE_ARCSIZE],function(C){var u=null!=r?r:C.height/8;if("1"==mxUtils.getValue(g.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)){var B=mxUtils.getValue(g.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;return new mxPoint(C.x+-C.width-Math.min(C.width/2,B),C.y+u)}B=Math.max(0,parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)))/100;return new mxPoint(C.x+C.width-Math.min(Math.max(C.width/2,C.height/2),Math.min(C.width,C.height)*B),C.y+u)},function(C,u,B){"1"==mxUtils.getValue(g.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(C.width,2*(C.x+C.width-u.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=-Math.round(Math.min(50,Math.max(0,100*(C.width-u.x+C.x)/Math.min(C.width,C.height))))})},qb=function(g,r,C,u,B,G,I){var ba=new mxHandle(g,null,mxVertexHandler.prototype.secondaryHandleImage);ba.execute=function(za){for(var pa=0;pa<r.length;pa++)this.copyStyle(r[pa]);I&&I(za)};ba.getPosition=C;ba.setPosition=u;ba.ignoreGrid=null!=B?B:!0;if(G){var U=ba.positionChanged;ba.positionChanged=function(){U.apply(this,arguments);g.view.invalidate(this.state.cell);g.view.validate()}}return ba},Ib={link:function(g){return[ib(g,-!0,10),ib(g,!1,10)]},pipe:function(g){return[ib(g,!0,10),ib(g,!1,10)]},flexArrow:function(g){var r=g.view.graph.gridSize/g.view.scale,C=[];mxUtils.getValue(g.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(C.push(kb(g,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!0,function(u,B,G,I,ba){u=(g.shape.getEdgeWidth()-g.shape.strokewidth)*g.view.scale;ba=3*mxUtils.getNumber(g.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*g.view.scale;return new mxPoint(I.x+-B*(ba+g.shape.strokewidth*g.view.scale)+G*u/2,I.y+G*(ba+g.shape.strokewidth*g.view.scale)-B*u/2)},function(u,B,G,I,ba,U,za){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));B=mxUtils.ptLineDist(I.x,I.y,I.x+G,I.y-B,U.x,U.y);g.style[mxConstants.STYLE_STARTSIZE]=Math.round((B-g.shape.strokewidth)/3/g.view.scale);g.style.width=Math.round(2*u/g.view.scale);if(mxEvent.isShiftDown(za.getEvent())||mxEvent.isControlDown(za.getEvent()))g.style[mxConstants.STYLE_ENDSIZE]=g.style[mxConstants.STYLE_STARTSIZE];-mxEvent.isAltDown(za.getEvent())||Math.abs(parseFloat(g.style[mxConstants.STYLE_STARTSIZE])-parseFloat(g.style[mxConstants.STYLE_ENDSIZE]))<r/6&&(g.style[mxConstants.STYLE_STARTSIZE]=g.style[mxConstants.STYLE_ENDSIZE])})),C.push(kb(g,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!0,function(u,B,G,I,ba){u=(g.shape.getStartArrowWidth()-g.shape.strokewidth)*g.view.scale;ba=3*mxUtils.getNumber(g.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*g.view.scale;-return new mxPoint(I.x+B*(ba+g.shape.strokewidth*g.view.scale)+G*u/2,I.y+G*(ba+g.shape.strokewidth*g.view.scale)-B*u/2)},function(u,B,G,I,ba,U,za){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));B=mxUtils.ptLineDist(I.x,I.y,I.x+G,I.y-B,U.x,U.y);g.style[mxConstants.STYLE_STARTSIZE]=Math.round((B-g.shape.strokewidth)/3/g.view.scale);g.style.startWidth=Math.round(Math.max(0,Math.round(2*u)-g.shape.getEdgeWidth())/g.view.scale);if(mxEvent.isShiftDown(za.getEvent())||mxEvent.isControlDown(za.getEvent()))g.style[mxConstants.STYLE_ENDSIZE]=+za.appendChild(Wa);ub.appendChild(za);g.root.appendChild(ub);this._curvedTextGroup=ub}else g.text(r+v/2,C+B/2,0,0,G,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,!1,"",null,!1,0)}}};Gb.prototype.destroy=function(){null!=this._curvedTextGroup&&null!=this._curvedTextGroup.parentNode&&this._curvedTextGroup.parentNode.removeChild(this._curvedTextGroup);this._curvedTextGroup=null;mxRectangleShape.prototype.destroy.apply(this,arguments)};mxCellRenderer.registerShape("curvedText",Gb);mxUtils.extend(Ob,+mxActor);Ob.prototype.tabSize=8;Ob.prototype.tabInset=4;Ob.prototype.holeSize=1;Ob.prototype.isRoundable=function(){return!1};Ob.prototype.redrawPath=function(g,r,C,v,B){r=Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"tabSize",this.tabSize))));var G=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"tabInset",this.tabInset))));C=(B-G)/2;G=C+G;g.moveTo(0,C);g.lineTo(0,G);g.lineTo(r,B);g.lineTo(v,B);g.lineTo(v,0);g.lineTo(r,0);g.close();g.end()};Ob.prototype.paintVertexShape=+function(g,r,C,v,B){mxActor.prototype.paintVertexShape.apply(this,arguments);var G=Math.max(0,parseFloat(mxUtils.getValue(this.style,"holeSize",this.holeSize)));if(!(0>=G)){var I=parseFloat(mxUtils.getValue(this.style,"tabSize",this.tabSize)),ba=mxUtils.getValue(this.style,"holeColor",mxUtils.getValue(this.style,mxConstants.STYLE_FONTCOLOR,"#333333"));g.setFillColor(ba);g.setStrokeColor(ba);g.begin();g.ellipse(I/2-G,B/2-G,2*G,2*G);g.fillAndStroke()}};Ob.prototype.getLabelBounds=function(g){var r=+parseFloat(mxUtils.getValue(this.style,"tabSize",this.tabSize))*this.scale;return new mxRectangle(g.x+r,g.y,g.width-r,g.height)};mxCellRenderer.registerShape("gitTag",Ob);mxUtils.extend(ac,mxShape);ac.prototype.paintVertexShape=function(g,r,C,v,B){var G=mxUtils.getValue(this.style,"innerColor","#ECECFF");g.translate(r,C);g.ellipse(0,0,v,B);g.fillAndStroke();r=.6*Math.min(v,B);v=(v-r)/2;B=(B-r)/2;g.setFillColor(G);g.setStrokeColor(G);g.ellipse(v,B,r,r);g.fillAndStroke()};mxCellRenderer.registerShape("gitMergeCommit",+ac);mxUtils.extend(Zb,mxShape);Zb.prototype.paintVertexShape=function(g,r,C,v,B){var G=mxUtils.getValue(this.style,"featureColor","#fff");g.translate(r,C);r=v/2;C=B/2;var I=Math.min(v,B)/20;g.ellipse(0,0,v,B);g.fillAndStroke();g.setFillColor(G);g.setStrokeColor(G);g.setStrokeWidth(0);v=2.75*I;g.ellipse(r-3*I-v,C+2*I-v,2*v,2*v);g.fillAndStroke();g.ellipse(r+3*I-v,C+2*I-v,2*v,2*v);g.fillAndStroke();g.setStrokeWidth(1*I);g.begin();g.moveTo(r+3*I,C+1*I);g.lineTo(r,C-5*I);g.stroke();g.begin();g.moveTo(r-+3*I,C+1*I);g.lineTo(r,C-5*I);g.stroke()};mxCellRenderer.registerShape("gitCherryPick",Zb);mxUtils.extend(Vb,mxActor);Vb.prototype.isRoundable=function(){return!1};Vb.prototype.redrawPath=function(g,r,C,v,B){r=.8*v;B*=.8;C=.15*r;v=.8*C;var G=.1*r,I=.1*B;g.moveTo(G,I);G+=.25*r;I+=.1*-B;g.arcTo(C,C,0,0,0,G,I);G+=.25*r;I+=0;g.arcTo(C,C,0,0,0,G,I);G+=.25*r;I+=0;g.arcTo(C,C,0,0,0,G,I);G+=.25*r;I+=.1*B;g.arcTo(C,C,0,0,0,G,I);G+=.15*r;I+=.33*B;g.arcTo(C,C,0,0,0,G,I);G+=0;I+=.34*B;g.arcTo(v,v,0,0,0,G,I);G+=+.15*-r;I+=.33*B;g.arcTo(C,C,0,0,0,G,I);G+=.25*-r;I+=.15*B;g.arcTo(C,C,0,0,0,G,I);G+=.25*-r;I+=0;g.arcTo(C,C,0,0,0,G,I);G+=.25*-r;I+=0;g.arcTo(C,C,0,0,0,G,I);G+=.25*-r;I+=.15*-B;g.arcTo(C,C,0,0,0,G,I);G+=.1*-r;I+=.33*-B;g.arcTo(C,C,0,0,0,G,I);G+=0;I+=.34*-B;g.arcTo(v,v,0,0,0,G,I);g.arcTo(C,C,0,0,0,G+.1*r,I+.33*-B);g.close();g.end()};Vb.prototype.getLabelBounds=function(g){var r=.1*g.width,C=.1*g.height;return new mxRectangle(g.x+r,g.y+C,g.width-2*r,g.height-2*C)};mxCellRenderer.registerShape("mindmapBang",+Vb);mxUtils.extend(Bb,mxActor);Bb.prototype.isRoundable=function(){return!1};Bb.prototype.redrawPath=function(g,r,C,v,B){g.moveTo(0,0);g.lineTo(0,B);g.quadTo(2*v,B/2,0,0);g.close();g.end()};mxCellRenderer.registerShape("ishikawaHead",Bb);mxUtils.extend(Hb,mxActor);Hb.prototype.isRoundable=function(){return!1};Hb.prototype.redrawPath=function(g,r,C,v,B){r=B/4;g.moveTo(0,0);g.lineTo(r,B/2);g.lineTo(0,B);g.lineTo(v,B);g.lineTo(v,0);g.close();g.end()};Hb.prototype.getLabelBounds=function(g){var r=g.height/+4;return new mxRectangle(g.x+r,g.y,g.width-r,g.height)};mxCellRenderer.registerShape("mermaidOdd",Hb);mxUtils.extend(Ab,mxActor);Ab.prototype.isRoundable=function(){return!1};Ab.prototype.paintVertexShape=function(g,r,C,v,B){g.setLineJoin&&g.setLineJoin("round");mxActor.prototype.paintVertexShape.apply(this,arguments)};Ab.prototype.redrawPath=function(g,r,C,v,B){var G={};mxUtils.getValue(this.style,"dirs","right").split(/[,| ]+/).forEach(function(I){I=I.trim().toLowerCase();"x"===I?(G.right=!0,G.left=+!0):"y"===I?(G.up=!0,G.down=!0):I&&(G[I]=!0)});C=parseFloat(mxUtils.getValue(this.style,"nodePadding","8"));r=B/2;C/=2;v=G.right&&G.left&&G.up&&G.down?[[0,0],[r,0],[v/2,2*C],[v-r,0],[v,0],[v,-B/3],[v+2*C,-B/2],[v,-2*B/3],[v,-B],[v-r,-B],[v/2,-B-2*C],[r,-B],[0,-B],[0,-2*B/3],[-2*C,-B/2],[0,-B/3]]:G.right&&G.left&&G.up?[[r,0],[v-r,0],[v,-B/2],[v-r,-B],[r,-B],[0,-B/2]]:G.right&&G.left&&G.down?[[0,0],[r,-B],[v-r,-B],[v,0]]:G.right&&G.up&&G.down?[[0,0],[v,-r],[v,-B+r],[0,-B]]:G.left&&G.up&&G.down?[[v,+0],[0,-r],[0,-B+r],[v,-B]]:G.right&&G.left?[[r,0],[r,-C],[v-r,-C],[v-r,0],[v,-B/2],[v-r,-B],[v-r,-B+C],[r,-B+C],[r,-B],[0,-B/2]]:G.up&&G.down?[[v/2,0],[0,-C],[r,-C],[r,-B+C],[0,-B+C],[v/2,-B],[v,-B+C],[v-r,-B+C],[v-r,-C],[v,-C]]:G.right&&G.up?[[0,0],[v,-r],[0,-B]]:G.right&&G.down?[[0,0],[v,0],[0,-B]]:G.left&&G.up?[[v,0],[0,-r],[v,-B]]:G.left&&G.down?[[v,0],[0,0],[v,-B]]:G.right?[[r,-C],[v-r,-C],[v-r,0],[v,-B/2],[v-r,-B],[v-r,-B+C],[r,-B+C]]:G.left?[[r,0],[r,-C],[v-r,-C],[v-r,-B+C],[r,-B+C],[r,-B],+[0,-B/2]]:G.up?[[r,-C],[r,-B+C],[0,-B+C],[v/2,-B],[v,-B+C],[v-r,-B+C],[v-r,-C]]:G.down?[[v/2,0],[0,-C],[r,-C],[r,-B+C],[v-r,-B+C],[v-r,-C],[v,-C]]:[[0,0],[v,0],[v,-B],[0,-B]];g.moveTo(v[0][0],B+v[0][1]);for(r=1;r<v.length;r++)g.lineTo(v[r][0],B+v[r][1]);g.close();g.end()};mxCellRenderer.registerShape("mermaidBlockArrow",Ab);mxUtils.extend(Db,mxConnector);Db.prototype.defaultWidth=10;Db.prototype.getEdgeWidth=function(){return Math.max(1,mxUtils.getNumber(this.style,"width",this.defaultWidth))};Db.prototype.getSvgScreenOffset=+function(){return 0};Db.prototype.augmentBoundingBox=function(g){mxShape.prototype.augmentBoundingBox.apply(this,arguments);var r=(this.getEdgeWidth()/2+this.strokewidth)*this.scale;g.y-=r;g.height+=2*r};Db.prototype.paintEdgeShape=function(g,r){var C=r[0],v=r[r.length-1];if(null!=C&&null!=v){r=C.x;C=C.y;var B=v.x;v=v.y;for(var G=(r+B)/2,I=this.getEdgeWidth()/2,ba=[],U=[],za=0;32>=za;za++){var pa=za/32,Wa=1-pa,ub=Wa*Wa*Wa*r+3*Wa*Wa*pa*G+3*Wa*pa*pa*G+pa*pa*pa*B,jb=Wa*Wa*Wa*C+3*Wa*Wa*pa*C+3*Wa*pa*pa*+v+pa*pa*pa*v,Ra=3*Wa*Wa*(G-r)+3*pa*pa*(B-G);Wa=6*Wa*pa*(v-C);pa=Math.sqrt(Ra*Ra+Wa*Wa);0==pa&&(Ra=1,Wa=0,pa=1);Wa=-Wa/pa*I;Ra=Ra/pa*I;ba.push(new mxPoint(ub+Wa,jb+Ra));U.push(new mxPoint(ub-Wa,jb-Ra))}g.begin();g.moveTo(ba[0].x,ba[0].y);for(za=1;32>=za;za++)g.lineTo(ba[za].x,ba[za].y);for(za=32;0<=za;za--)g.lineTo(U[za].x,U[za].y);g.close();r=g.node;g.fillAndStroke();null!=r&&null!=r.setAttribute&&null!=r.parentNode&&(g=r.getAttribute("style"),r.setAttribute("style",(null!=g&&""!=g?g+";":"")+"mix-blend-mode:multiply"))}};+mxCellRenderer.registerShape("mermaidSankeyLink",Db);if("undefined"!==typeof mxVertexHandler){var ib=function(g,r,C){return kb(g,["width"],r,function(v,B,G,I,ba){ba=g.shape.getEdgeWidth()*g.view.scale+C;return new mxPoint(I.x+B*v/4+G*ba/2,I.y+G*v/4-B*ba/2)},function(v,B,G,I,ba,U){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));g.style.width=Math.round(Math.round(2*v)/g.view.scale-C)})},kb=function(g,r,C,v,B){return qb(g,r,function(G){var I=g.absolutePoints;if(null!=I&&0<I.length){var ba=+I.length-1;G=g.view.translate;var U=g.view.scale,za=C?I[0]:I[ba];I=C?I[1]:I[ba-1];ba=I.x-za.x;var pa=I.y-za.y,Wa=Math.sqrt(ba*ba+pa*pa);za=v.call(this,Wa,ba/Wa,pa/Wa,za,I);return new mxPoint(za.x/U-G.x,za.y/U-G.y)}return null},function(G,I,ba){var U=g.absolutePoints,za=U.length-1;G=g.view.translate;var pa=g.view.scale,Wa=C?U[0]:U[za];U=C?U[1]:U[za-1];za=U.x-Wa.x;var ub=U.y-Wa.y,jb=Math.sqrt(za*za+ub*ub);I.x=(I.x+G.x)*pa;I.y=(I.y+G.y)*pa;B.call(this,jb,za/jb,ub/jb,Wa,U,I,ba)})},pb=function(g,r){return function(C){return[kb(C,+["startWidth"],!0,function(v,B,G,I,ba){ba=mxUtils.getNumber(C.style,"startWidth",g)*C.view.scale+r;return new mxPoint(I.x+B*v/4+G*ba/2,I.y+G*v/4-B*ba/2)},function(v,B,G,I,ba,U){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));C.style.startWidth=Math.round(2*v)/C.view.scale-r})]}},sb=function(g){return function(r){return[qb(r,["arrowWidth","arrowSize"],function(C){var v=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"arrowWidth",Va.prototype.arrowWidth))),B=Math.max(0,Math.min(g,+mxUtils.getValue(this.state.style,"arrowSize",Va.prototype.arrowSize)));return new mxPoint(C.x+(1-B)*C.width,C.y+(1-v)*C.height/2)},function(C,v){this.state.style.arrowWidth=Math.max(0,Math.min(1,Math.abs(C.y+C.height/2-v.y)/C.height*2));this.state.style.arrowSize=Math.max(0,Math.min(g,(C.x+C.width-v.x)/C.width))})]}},gb=function(g){return function(r){return[qb(r,["size"],function(C){var v=Math.max(0,Math.min(.5*C.height,parseFloat(mxUtils.getValue(this.state.style,"size",g))));return new mxPoint(C.x,+C.y+v)},function(C,v){this.state.style.size=Math.max(0,v.y-C.y)},!0)]}},hb=function(g,r,C){return function(v){var B=[qb(v,["size"],function(G){var I=Math.max(0,Math.min(G.width,Math.min(G.height,parseFloat(mxUtils.getValue(this.state.style,"size",r)))))*g;return new mxPoint(G.x+I,G.y+I)},function(G,I){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(G.width,I.x-G.x),Math.min(G.height,I.y-G.y)))/g)},!1)];C&&mxUtils.getValue(v.style,mxConstants.STYLE_ROUNDED,!1)&&B.push(tb(v));return B}},+bb=function(g,r,C,v,B){C=null!=C?C:.5;return function(G){var I=[qb(G,["size"],function(ba){var U=null!=B?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,za=parseFloat(mxUtils.getValue(this.state.style,"size",U?B:g));return new mxPoint(ba.x+Math.max(0,Math.min(.5*ba.width,za*(U?1:ba.width))),ba.getCenterY())},function(ba,U,za){ba=null!=B&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?U.x-ba.x:Math.max(0,Math.min(C,(U.x-ba.x)/ba.width));this.state.style.size=ba},!1,v)];r&&mxUtils.getValue(G.style,+mxConstants.STYLE_ROUNDED,!1)&&I.push(tb(G));return I}},yb=function(g,r,C){g=null!=g?g:.5;return function(v){var B=[qb(v,["size"],function(G){var I=null!=C?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,ba=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,"size",I?C:r)));return new mxPoint(G.x+Math.min(.75*G.width*g,ba*(I?.75:.75*G.width)),G.y+G.height/4)},function(G,I){G=null!=C&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?I.x-G.x:Math.max(0,Math.min(g,(I.x-G.x)/G.width*+.75));this.state.style.size=G},!1,!0)];mxUtils.getValue(v.style,mxConstants.STYLE_ROUNDED,!1)&&B.push(tb(v));return B}},vb=function(){return function(g){var r=[];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r}},tb=function(g,r){return qb(g,[mxConstants.STYLE_ARCSIZE],function(C){var v=null!=r?r:C.height/8;if("1"==mxUtils.getValue(g.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)){var B=mxUtils.getValue(g.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;return new mxPoint(C.x++C.width-Math.min(C.width/2,B),C.y+v)}B=Math.max(0,parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)))/100;return new mxPoint(C.x+C.width-Math.min(Math.max(C.width/2,C.height/2),Math.min(C.width,C.height)*B),C.y+v)},function(C,v,B){"1"==mxUtils.getValue(g.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(C.width,2*(C.x+C.width-v.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=+Math.round(Math.min(50,Math.max(0,100*(C.width-v.x+C.x)/Math.min(C.width,C.height))))})},qb=function(g,r,C,v,B,G,I){var ba=new mxHandle(g,null,mxVertexHandler.prototype.secondaryHandleImage);ba.execute=function(za){for(var pa=0;pa<r.length;pa++)this.copyStyle(r[pa]);I&&I(za)};ba.getPosition=C;ba.setPosition=v;ba.ignoreGrid=null!=B?B:!0;if(G){var U=ba.positionChanged;ba.positionChanged=function(){U.apply(this,arguments);g.view.invalidate(this.state.cell);g.view.validate()}}return ba},Ib={link:function(g){return[ib(g,+!0,10),ib(g,!1,10)]},pipe:function(g){return[ib(g,!0,10),ib(g,!1,10)]},flexArrow:function(g){var r=g.view.graph.gridSize/g.view.scale,C=[];mxUtils.getValue(g.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(C.push(kb(g,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!0,function(v,B,G,I,ba){v=(g.shape.getEdgeWidth()-g.shape.strokewidth)*g.view.scale;ba=3*mxUtils.getNumber(g.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*g.view.scale;return new mxPoint(I.x++B*(ba+g.shape.strokewidth*g.view.scale)+G*v/2,I.y+G*(ba+g.shape.strokewidth*g.view.scale)-B*v/2)},function(v,B,G,I,ba,U,za){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));B=mxUtils.ptLineDist(I.x,I.y,I.x+G,I.y-B,U.x,U.y);g.style[mxConstants.STYLE_STARTSIZE]=Math.round((B-g.shape.strokewidth)/3/g.view.scale);g.style.width=Math.round(2*v/g.view.scale);if(mxEvent.isShiftDown(za.getEvent())||mxEvent.isControlDown(za.getEvent()))g.style[mxConstants.STYLE_ENDSIZE]=g.style[mxConstants.STYLE_STARTSIZE];+mxEvent.isAltDown(za.getEvent())||Math.abs(parseFloat(g.style[mxConstants.STYLE_STARTSIZE])-parseFloat(g.style[mxConstants.STYLE_ENDSIZE]))<r/6&&(g.style[mxConstants.STYLE_STARTSIZE]=g.style[mxConstants.STYLE_ENDSIZE])})),C.push(kb(g,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!0,function(v,B,G,I,ba){v=(g.shape.getStartArrowWidth()-g.shape.strokewidth)*g.view.scale;ba=3*mxUtils.getNumber(g.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*g.view.scale;+return new mxPoint(I.x+B*(ba+g.shape.strokewidth*g.view.scale)+G*v/2,I.y+G*(ba+g.shape.strokewidth*g.view.scale)-B*v/2)},function(v,B,G,I,ba,U,za){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));B=mxUtils.ptLineDist(I.x,I.y,I.x+G,I.y-B,U.x,U.y);g.style[mxConstants.STYLE_STARTSIZE]=Math.round((B-g.shape.strokewidth)/3/g.view.scale);g.style.startWidth=Math.round(Math.max(0,Math.round(2*v)-g.shape.getEdgeWidth())/g.view.scale);if(mxEvent.isShiftDown(za.getEvent())||mxEvent.isControlDown(za.getEvent()))g.style[mxConstants.STYLE_ENDSIZE]=g.style[mxConstants.STYLE_STARTSIZE],g.style.endWidth=g.style.startWidth;mxEvent.isAltDown(za.getEvent())||(Math.abs(parseFloat(g.style[mxConstants.STYLE_STARTSIZE])-parseFloat(g.style[mxConstants.STYLE_ENDSIZE]))<r/6&&(g.style[mxConstants.STYLE_STARTSIZE]=g.style[mxConstants.STYLE_ENDSIZE]),Math.abs(parseFloat(g.style.startWidth)-parseFloat(g.style.endWidth))<r&&(g.style.startWidth=g.style.endWidth))})));mxUtils.getValue(g.style,mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE&&(C.push(kb(g,-["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(u,B,G,I,ba){u=(g.shape.getEdgeWidth()-g.shape.strokewidth)*g.view.scale;ba=3*mxUtils.getNumber(g.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*g.view.scale;return new mxPoint(I.x+B*(ba+g.shape.strokewidth*g.view.scale)-G*u/2,I.y+G*(ba+g.shape.strokewidth*g.view.scale)+B*u/2)},function(u,B,G,I,ba,U,za){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));B=mxUtils.ptLineDist(I.x,I.y,I.x+G,I.y-B,U.x,U.y);-g.style[mxConstants.STYLE_ENDSIZE]=Math.round((B-g.shape.strokewidth)/3/g.view.scale);g.style.width=Math.round(2*u/g.view.scale);if(mxEvent.isShiftDown(za.getEvent())||mxEvent.isControlDown(za.getEvent()))g.style[mxConstants.STYLE_STARTSIZE]=g.style[mxConstants.STYLE_ENDSIZE];mxEvent.isAltDown(za.getEvent())||Math.abs(parseFloat(g.style[mxConstants.STYLE_ENDSIZE])-parseFloat(g.style[mxConstants.STYLE_STARTSIZE]))<r/6&&(g.style[mxConstants.STYLE_ENDSIZE]=g.style[mxConstants.STYLE_STARTSIZE])})),C.push(kb(g,-["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(u,B,G,I,ba){u=(g.shape.getEndArrowWidth()-g.shape.strokewidth)*g.view.scale;ba=3*mxUtils.getNumber(g.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*g.view.scale;return new mxPoint(I.x+B*(ba+g.shape.strokewidth*g.view.scale)-G*u/2,I.y+G*(ba+g.shape.strokewidth*g.view.scale)+B*u/2)},function(u,B,G,I,ba,U,za){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));B=mxUtils.ptLineDist(I.x,I.y,I.x+-G,I.y-B,U.x,U.y);g.style[mxConstants.STYLE_ENDSIZE]=Math.round((B-g.shape.strokewidth)/3/g.view.scale);g.style.endWidth=Math.round(Math.max(0,Math.round(2*u)-g.shape.getEdgeWidth())/g.view.scale);if(mxEvent.isShiftDown(za.getEvent())||mxEvent.isControlDown(za.getEvent()))g.style[mxConstants.STYLE_STARTSIZE]=g.style[mxConstants.STYLE_ENDSIZE],g.style.startWidth=g.style.endWidth;mxEvent.isAltDown(za.getEvent())||(Math.abs(parseFloat(g.style[mxConstants.STYLE_ENDSIZE])-parseFloat(g.style[mxConstants.STYLE_STARTSIZE]))<-r/6&&(g.style[mxConstants.STYLE_ENDSIZE]=g.style[mxConstants.STYLE_STARTSIZE]),Math.abs(parseFloat(g.style.endWidth)-parseFloat(g.style.startWidth))<r&&(g.style.endWidth=g.style.startWidth))})));return C},swimlane:function(g){var r=[];if(mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED)){var C=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));r.push(tb(g,C/2))}r.push(qb(g,[mxConstants.STYLE_STARTSIZE],function(u){var B=parseFloat(mxUtils.getValue(g.style,-mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));return 1==mxUtils.getValue(g.style,mxConstants.STYLE_HORIZONTAL,1)?new mxPoint(u.getCenterX(),u.y+Math.max(0,Math.min(u.height,B))):new mxPoint(u.x+Math.max(0,Math.min(u.width,B)),u.getCenterY())},function(u,B){g.style[mxConstants.STYLE_STARTSIZE]=1==mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,1)?Math.round(Math.max(0,Math.min(u.height,B.y-u.y))):Math.round(Math.max(0,Math.min(u.width,B.x-u.x)))},!1,null,function(u){var B=-g.view.graph;if(!mxEvent.isShiftDown(u.getEvent())&&!mxEvent.isControlDown(u.getEvent())&&(B.isTableRow(g.cell)||B.isTableCell(g.cell))){u=B.getSwimlaneDirection(g.style);var G=B.model.getParent(g.cell);G=B.model.getChildCells(G,!0);for(var I=[],ba=0;ba<G.length;ba++)G[ba]!=g.cell&&B.isSwimlane(G[ba])&&B.getSwimlaneDirection(B.getCurrentCellStyle(G[ba]))==u&&I.push(G[ba]);B.setCellStyles(mxConstants.STYLE_STARTSIZE,g.style[mxConstants.STYLE_STARTSIZE],I)}}));return r},label:vb(),ext:vb(),rectangle:vb(),+["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(v,B,G,I,ba){v=(g.shape.getEdgeWidth()-g.shape.strokewidth)*g.view.scale;ba=3*mxUtils.getNumber(g.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*g.view.scale;return new mxPoint(I.x+B*(ba+g.shape.strokewidth*g.view.scale)-G*v/2,I.y+G*(ba+g.shape.strokewidth*g.view.scale)+B*v/2)},function(v,B,G,I,ba,U,za){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));B=mxUtils.ptLineDist(I.x,I.y,I.x+G,I.y-B,U.x,U.y);+g.style[mxConstants.STYLE_ENDSIZE]=Math.round((B-g.shape.strokewidth)/3/g.view.scale);g.style.width=Math.round(2*v/g.view.scale);if(mxEvent.isShiftDown(za.getEvent())||mxEvent.isControlDown(za.getEvent()))g.style[mxConstants.STYLE_STARTSIZE]=g.style[mxConstants.STYLE_ENDSIZE];mxEvent.isAltDown(za.getEvent())||Math.abs(parseFloat(g.style[mxConstants.STYLE_ENDSIZE])-parseFloat(g.style[mxConstants.STYLE_STARTSIZE]))<r/6&&(g.style[mxConstants.STYLE_ENDSIZE]=g.style[mxConstants.STYLE_STARTSIZE])})),C.push(kb(g,+["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(v,B,G,I,ba){v=(g.shape.getEndArrowWidth()-g.shape.strokewidth)*g.view.scale;ba=3*mxUtils.getNumber(g.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*g.view.scale;return new mxPoint(I.x+B*(ba+g.shape.strokewidth*g.view.scale)-G*v/2,I.y+G*(ba+g.shape.strokewidth*g.view.scale)+B*v/2)},function(v,B,G,I,ba,U,za){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ba.x,ba.y,U.x,U.y));B=mxUtils.ptLineDist(I.x,I.y,I.x++G,I.y-B,U.x,U.y);g.style[mxConstants.STYLE_ENDSIZE]=Math.round((B-g.shape.strokewidth)/3/g.view.scale);g.style.endWidth=Math.round(Math.max(0,Math.round(2*v)-g.shape.getEdgeWidth())/g.view.scale);if(mxEvent.isShiftDown(za.getEvent())||mxEvent.isControlDown(za.getEvent()))g.style[mxConstants.STYLE_STARTSIZE]=g.style[mxConstants.STYLE_ENDSIZE],g.style.startWidth=g.style.endWidth;mxEvent.isAltDown(za.getEvent())||(Math.abs(parseFloat(g.style[mxConstants.STYLE_ENDSIZE])-parseFloat(g.style[mxConstants.STYLE_STARTSIZE]))<+r/6&&(g.style[mxConstants.STYLE_ENDSIZE]=g.style[mxConstants.STYLE_STARTSIZE]),Math.abs(parseFloat(g.style.endWidth)-parseFloat(g.style.startWidth))<r&&(g.style.endWidth=g.style.startWidth))})));return C},swimlane:function(g){var r=[];if(mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED)){var C=parseFloat(mxUtils.getValue(g.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));r.push(tb(g,C/2))}r.push(qb(g,[mxConstants.STYLE_STARTSIZE],function(v){var B=parseFloat(mxUtils.getValue(g.style,+mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));return 1==mxUtils.getValue(g.style,mxConstants.STYLE_HORIZONTAL,1)?new mxPoint(v.getCenterX(),v.y+Math.max(0,Math.min(v.height,B))):new mxPoint(v.x+Math.max(0,Math.min(v.width,B)),v.getCenterY())},function(v,B){g.style[mxConstants.STYLE_STARTSIZE]=1==mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,1)?Math.round(Math.max(0,Math.min(v.height,B.y-v.y))):Math.round(Math.max(0,Math.min(v.width,B.x-v.x)))},!1,null,function(v){var B=+g.view.graph;if(!mxEvent.isShiftDown(v.getEvent())&&!mxEvent.isControlDown(v.getEvent())&&(B.isTableRow(g.cell)||B.isTableCell(g.cell))){v=B.getSwimlaneDirection(g.style);var G=B.model.getParent(g.cell);G=B.model.getChildCells(G,!0);for(var I=[],ba=0;ba<G.length;ba++)G[ba]!=g.cell&&B.isSwimlane(G[ba])&&B.getSwimlaneDirection(B.getCurrentCellStyle(G[ba]))==v&&I.push(G[ba]);B.setCellStyles(mxConstants.STYLE_STARTSIZE,g.style[mxConstants.STYLE_STARTSIZE],I)}}));return r},label:vb(),ext:vb(),rectangle:vb(),triangle:vb(),rhombus:vb(),umlLifeline:function(g){return[qb(g,["size"],function(r){var C=Math.max(0,Math.min(r.height,parseFloat(mxUtils.getValue(this.state.style,"size",Ba.prototype.size))));return new mxPoint(r.getCenterX(),r.y+C)},function(r,C){this.state.style.size=Math.round(Math.max(0,Math.min(r.height,C.y-r.y)))},!1)]},umlFrame:function(g){return[qb(g,["width","height"],function(r){var C=Math.max(na.prototype.corner,Math.min(r.width,mxUtils.getValue(this.state.style,"width",na.prototype.width))),-u=Math.max(1.5*na.prototype.corner,Math.min(r.height,mxUtils.getValue(this.state.style,"height",na.prototype.height)));return new mxPoint(r.x+C,r.y+u)},function(r,C){this.state.style.width=Math.round(Math.max(na.prototype.corner,Math.min(r.width,C.x-r.x)));this.state.style.height=Math.round(Math.max(1.5*na.prototype.corner,Math.min(r.height,C.y-r.y)))},!1)]},process:function(g){var r=[qb(g,["size"],function(C){var u="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),B=parseFloat(mxUtils.getValue(this.state.style,-"size",ja.prototype.size));return u?new mxPoint(C.x+B,C.y+C.height/4):new mxPoint(C.x+C.width*B,C.y+C.height/4)},function(C,u){C="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(.5*C.width,u.x-C.x)):Math.max(0,Math.min(.5,(u.x-C.x)/C.width));this.state.style.size=C},!1)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r},cross:function(g){return[qb(g,["size"],function(r){var C=Math.min(r.width,r.height);C=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,-"size",Mb.prototype.size)))*C/2;return new mxPoint(r.getCenterX()-C,r.getCenterY()-C)},function(r,C){var u=Math.min(r.width,r.height);this.state.style.size=Math.max(0,Math.min(1,Math.min(Math.max(0,r.getCenterY()-C.y)/u*2,Math.max(0,r.getCenterX()-C.x)/u*2)))})]},note:function(g){return[qb(g,["size"],function(r){var C=Math.max(0,Math.min(r.width,Math.min(r.height,parseFloat(mxUtils.getValue(this.state.style,"size",F.prototype.size)))));return new mxPoint(r.x+r.width-C,r.y+C)},function(r,C){this.state.style.size=-Math.round(Math.max(0,Math.min(Math.min(r.width,r.x+r.width-C.x),Math.min(r.height,C.y-r.y))))})]},note2:function(g){return[qb(g,["size"],function(r){var C=Math.max(0,Math.min(r.width,Math.min(r.height,parseFloat(mxUtils.getValue(this.state.style,"size",N.prototype.size)))));return new mxPoint(r.x+r.width-C,r.y+C)},function(r,C){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(r.width,r.x+r.width-C.x),Math.min(r.height,C.y-r.y))))})]},manualInput:function(g){var r=[qb(g,["size"],function(C){var u=-Math.max(0,Math.min(C.height,mxUtils.getValue(this.state.style,"size",Aa.prototype.size)));return new mxPoint(C.x+C.width/4,C.y+3*u/4)},function(C,u){this.state.style.size=Math.round(Math.max(0,Math.min(C.height,4*(u.y-C.y)/3)))},!1)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r},dataStorage:function(g){return[qb(g,["size"],function(r){var C="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),u=parseFloat(mxUtils.getValue(this.state.style,"size",C?Ea.prototype.fixedSize:-Ea.prototype.size));return new mxPoint(r.x+r.width-u*(C?1:r.width),r.getCenterY())},function(r,C){r="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(r.width,r.x+r.width-C.x)):Math.max(0,Math.min(1,(r.x+r.width-C.x)/r.width));this.state.style.size=r},!1)]},callout:function(g){var r=[qb(g,["size","position"],function(C){var u=Math.max(0,Math.min(C.height,mxUtils.getValue(this.state.style,"size",ua.prototype.size))),B=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,-"position",ua.prototype.position)));mxUtils.getValue(this.state.style,"base",ua.prototype.base);return new mxPoint(C.x+B*C.width,C.y+C.height-u)},function(C,u){mxUtils.getValue(this.state.style,"base",ua.prototype.base);this.state.style.size=Math.round(Math.max(0,Math.min(C.height,C.y+C.height-u.y)));this.state.style.position=Math.round(100*Math.max(0,Math.min(1,(u.x-C.x)/C.width)))/100},!1),qb(g,["position2"],function(C){var u=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position2",ua.prototype.position2)));-return new mxPoint(C.x+u*C.width,C.y+C.height)},function(C,u){this.state.style.position2=Math.round(100*Math.max(0,Math.min(1,(u.x-C.x)/C.width)))/100},!1),qb(g,["base"],function(C){var u=Math.max(0,Math.min(C.height,mxUtils.getValue(this.state.style,"size",ua.prototype.size))),B=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ua.prototype.position))),G=Math.max(0,Math.min(C.width,mxUtils.getValue(this.state.style,"base",ua.prototype.base)));return new mxPoint(C.x+Math.min(C.width,-B*C.width+G),C.y+C.height-u)},function(C,u){var B=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ua.prototype.position)));this.state.style.base=Math.round(Math.max(0,Math.min(C.width,u.x-C.x-B*C.width)))},!1)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r},wedgeCallout:function(g){var r=[qb(g,["tipX","tipY"],function(C){var u=null!=this.state.shape?this.state.shape.getTipOffset():new mxPoint(Ca.prototype.tipX,Ca.prototype.tipY);return new mxPoint(C.getCenterX()+-u.x*C.width,C.getCenterY()+u.y*C.height)},function(C,u){var B=Ca.prototype.maxTipOffset;this.state.style.tipX=Math.round(1E3*Math.max(-B,Math.min(B,(u.x-C.getCenterX())/Math.max(1,C.width))))/1E3;this.state.style.tipY=Math.round(1E3*Math.max(-B,Math.min(B,(u.y-C.getCenterY())/Math.max(1,C.height))))/1E3},!1)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r},internalStorage:function(g){var r=[qb(g,["dx","dy"],function(C){var u=Math.max(0,Math.min(C.width,mxUtils.getValue(this.state.style,-"dx",Ja.prototype.dx))),B=Math.max(0,Math.min(C.height,mxUtils.getValue(this.state.style,"dy",Ja.prototype.dy)));return new mxPoint(C.x+u,C.y+B)},function(C,u){this.state.style.dx=Math.round(Math.max(0,Math.min(C.width,u.x-C.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(C.height,u.y-C.y)))},!1)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r},module:function(g){return[qb(g,["jettyWidth","jettyHeight"],function(r){var C=Math.max(0,Math.min(r.width,mxUtils.getValue(this.state.style,-"jettyWidth",Ga.prototype.jettyWidth))),u=Math.max(0,Math.min(r.height,mxUtils.getValue(this.state.style,"jettyHeight",Ga.prototype.jettyHeight)));return new mxPoint(r.x+C/2,r.y+2*u)},function(r,C){this.state.style.jettyWidth=Math.round(2*Math.max(0,Math.min(r.width,C.x-r.x)));this.state.style.jettyHeight=Math.round(Math.max(0,Math.min(r.height,C.y-r.y))/2)})]},corner:function(g){return[qb(g,["dx","dy"],function(r){var C=Math.max(0,Math.min(r.width,mxUtils.getValue(this.state.style,"dx",Ia.prototype.dx))),-u=Math.max(0,Math.min(r.height,mxUtils.getValue(this.state.style,"dy",Ia.prototype.dy)));return new mxPoint(r.x+C,r.y+u)},function(r,C){this.state.style.dx=Math.round(Math.max(0,Math.min(r.width,C.x-r.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(r.height,C.y-r.y)))},!1)]},tee:function(g){return[qb(g,["dx","dy"],function(r){var C=Math.max(0,Math.min(r.width,mxUtils.getValue(this.state.style,"dx",ab.prototype.dx))),u=Math.max(0,Math.min(r.height,mxUtils.getValue(this.state.style,"dy",ab.prototype.dy)));-return new mxPoint(r.x+(r.width+C)/2,r.y+u)},function(r,C){this.state.style.dx=Math.round(Math.max(0,2*Math.min(r.width/2,C.x-r.x-r.width/2)));this.state.style.dy=Math.round(Math.max(0,Math.min(r.height,C.y-r.y)))},!1)]},singleArrow:sb(1),doubleArrow:sb(.5),"mxgraph.arrows2.wedgeArrow":pb(20,20),"mxgraph.arrows2.wedgeArrowDashed":pb(20,20),"mxgraph.arrows2.wedgeArrowDashed2":pb(20,20),folder:function(g){return[qb(g,["tabWidth","tabHeight"],function(r){var C=Math.max(0,Math.min(r.width,mxUtils.getValue(this.state.style,-"tabWidth",q.prototype.tabWidth))),u=Math.max(0,Math.min(r.height,mxUtils.getValue(this.state.style,"tabHeight",q.prototype.tabHeight)));mxUtils.getValue(this.state.style,"tabPosition",q.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(C=r.width-C);return new mxPoint(r.x+C,r.y+u)},function(r,C){var u=Math.max(0,Math.min(r.width,C.x-r.x));mxUtils.getValue(this.state.style,"tabPosition",q.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(u=r.width-u);this.state.style.tabWidth=Math.round(u);this.state.style.tabHeight=+v=Math.max(1.5*na.prototype.corner,Math.min(r.height,mxUtils.getValue(this.state.style,"height",na.prototype.height)));return new mxPoint(r.x+C,r.y+v)},function(r,C){this.state.style.width=Math.round(Math.max(na.prototype.corner,Math.min(r.width,C.x-r.x)));this.state.style.height=Math.round(Math.max(1.5*na.prototype.corner,Math.min(r.height,C.y-r.y)))},!1)]},process:function(g){var r=[qb(g,["size"],function(C){var v="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),B=parseFloat(mxUtils.getValue(this.state.style,+"size",ja.prototype.size));return v?new mxPoint(C.x+B,C.y+C.height/4):new mxPoint(C.x+C.width*B,C.y+C.height/4)},function(C,v){C="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(.5*C.width,v.x-C.x)):Math.max(0,Math.min(.5,(v.x-C.x)/C.width));this.state.style.size=C},!1)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r},cross:function(g){return[qb(g,["size"],function(r){var C=Math.min(r.width,r.height);C=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,+"size",Mb.prototype.size)))*C/2;return new mxPoint(r.getCenterX()-C,r.getCenterY()-C)},function(r,C){var v=Math.min(r.width,r.height);this.state.style.size=Math.max(0,Math.min(1,Math.min(Math.max(0,r.getCenterY()-C.y)/v*2,Math.max(0,r.getCenterX()-C.x)/v*2)))})]},note:function(g){return[qb(g,["size"],function(r){var C=Math.max(0,Math.min(r.width,Math.min(r.height,parseFloat(mxUtils.getValue(this.state.style,"size",F.prototype.size)))));return new mxPoint(r.x+r.width-C,r.y+C)},function(r,C){this.state.style.size=+Math.round(Math.max(0,Math.min(Math.min(r.width,r.x+r.width-C.x),Math.min(r.height,C.y-r.y))))})]},note2:function(g){return[qb(g,["size"],function(r){var C=Math.max(0,Math.min(r.width,Math.min(r.height,parseFloat(mxUtils.getValue(this.state.style,"size",N.prototype.size)))));return new mxPoint(r.x+r.width-C,r.y+C)},function(r,C){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(r.width,r.x+r.width-C.x),Math.min(r.height,C.y-r.y))))})]},manualInput:function(g){var r=[qb(g,["size"],function(C){var v=+Math.max(0,Math.min(C.height,mxUtils.getValue(this.state.style,"size",Aa.prototype.size)));return new mxPoint(C.x+C.width/4,C.y+3*v/4)},function(C,v){this.state.style.size=Math.round(Math.max(0,Math.min(C.height,4*(v.y-C.y)/3)))},!1)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r},dataStorage:function(g){return[qb(g,["size"],function(r){var C="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),v=parseFloat(mxUtils.getValue(this.state.style,"size",C?Ea.prototype.fixedSize:+Ea.prototype.size));return new mxPoint(r.x+r.width-v*(C?1:r.width),r.getCenterY())},function(r,C){r="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(r.width,r.x+r.width-C.x)):Math.max(0,Math.min(1,(r.x+r.width-C.x)/r.width));this.state.style.size=r},!1)]},callout:function(g){var r=[qb(g,["size","position"],function(C){var v=Math.max(0,Math.min(C.height,mxUtils.getValue(this.state.style,"size",ua.prototype.size))),B=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,+"position",ua.prototype.position)));mxUtils.getValue(this.state.style,"base",ua.prototype.base);return new mxPoint(C.x+B*C.width,C.y+C.height-v)},function(C,v){mxUtils.getValue(this.state.style,"base",ua.prototype.base);this.state.style.size=Math.round(Math.max(0,Math.min(C.height,C.y+C.height-v.y)));this.state.style.position=Math.round(100*Math.max(0,Math.min(1,(v.x-C.x)/C.width)))/100},!1),qb(g,["position2"],function(C){var v=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position2",ua.prototype.position2)));+return new mxPoint(C.x+v*C.width,C.y+C.height)},function(C,v){this.state.style.position2=Math.round(100*Math.max(0,Math.min(1,(v.x-C.x)/C.width)))/100},!1),qb(g,["base"],function(C){var v=Math.max(0,Math.min(C.height,mxUtils.getValue(this.state.style,"size",ua.prototype.size))),B=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ua.prototype.position))),G=Math.max(0,Math.min(C.width,mxUtils.getValue(this.state.style,"base",ua.prototype.base)));return new mxPoint(C.x+Math.min(C.width,+B*C.width+G),C.y+C.height-v)},function(C,v){var B=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ua.prototype.position)));this.state.style.base=Math.round(Math.max(0,Math.min(C.width,v.x-C.x-B*C.width)))},!1)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r},wedgeCallout:function(g){var r=[qb(g,["tipX","tipY"],function(C){var v=null!=this.state.shape?this.state.shape.getTipOffset():new mxPoint(Ca.prototype.tipX,Ca.prototype.tipY);return new mxPoint(C.getCenterX()++v.x*C.width,C.getCenterY()+v.y*C.height)},function(C,v){var B=Ca.prototype.maxTipOffset;this.state.style.tipX=Math.round(1E3*Math.max(-B,Math.min(B,(v.x-C.getCenterX())/Math.max(1,C.width))))/1E3;this.state.style.tipY=Math.round(1E3*Math.max(-B,Math.min(B,(v.y-C.getCenterY())/Math.max(1,C.height))))/1E3},!1)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r},internalStorage:function(g){var r=[qb(g,["dx","dy"],function(C){var v=Math.max(0,Math.min(C.width,mxUtils.getValue(this.state.style,+"dx",Ja.prototype.dx))),B=Math.max(0,Math.min(C.height,mxUtils.getValue(this.state.style,"dy",Ja.prototype.dy)));return new mxPoint(C.x+v,C.y+B)},function(C,v){this.state.style.dx=Math.round(Math.max(0,Math.min(C.width,v.x-C.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(C.height,v.y-C.y)))},!1)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(tb(g));return r},module:function(g){return[qb(g,["jettyWidth","jettyHeight"],function(r){var C=Math.max(0,Math.min(r.width,mxUtils.getValue(this.state.style,+"jettyWidth",Ga.prototype.jettyWidth))),v=Math.max(0,Math.min(r.height,mxUtils.getValue(this.state.style,"jettyHeight",Ga.prototype.jettyHeight)));return new mxPoint(r.x+C/2,r.y+2*v)},function(r,C){this.state.style.jettyWidth=Math.round(2*Math.max(0,Math.min(r.width,C.x-r.x)));this.state.style.jettyHeight=Math.round(Math.max(0,Math.min(r.height,C.y-r.y))/2)})]},corner:function(g){return[qb(g,["dx","dy"],function(r){var C=Math.max(0,Math.min(r.width,mxUtils.getValue(this.state.style,"dx",Ia.prototype.dx))),+v=Math.max(0,Math.min(r.height,mxUtils.getValue(this.state.style,"dy",Ia.prototype.dy)));return new mxPoint(r.x+C,r.y+v)},function(r,C){this.state.style.dx=Math.round(Math.max(0,Math.min(r.width,C.x-r.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(r.height,C.y-r.y)))},!1)]},tee:function(g){return[qb(g,["dx","dy"],function(r){var C=Math.max(0,Math.min(r.width,mxUtils.getValue(this.state.style,"dx",ab.prototype.dx))),v=Math.max(0,Math.min(r.height,mxUtils.getValue(this.state.style,"dy",ab.prototype.dy)));+return new mxPoint(r.x+(r.width+C)/2,r.y+v)},function(r,C){this.state.style.dx=Math.round(Math.max(0,2*Math.min(r.width/2,C.x-r.x-r.width/2)));this.state.style.dy=Math.round(Math.max(0,Math.min(r.height,C.y-r.y)))},!1)]},singleArrow:sb(1),doubleArrow:sb(.5),"mxgraph.arrows2.wedgeArrow":pb(20,20),"mxgraph.arrows2.wedgeArrowDashed":pb(20,20),"mxgraph.arrows2.wedgeArrowDashed2":pb(20,20),folder:function(g){return[qb(g,["tabWidth","tabHeight"],function(r){var C=Math.max(0,Math.min(r.width,mxUtils.getValue(this.state.style,+"tabWidth",q.prototype.tabWidth))),v=Math.max(0,Math.min(r.height,mxUtils.getValue(this.state.style,"tabHeight",q.prototype.tabHeight)));mxUtils.getValue(this.state.style,"tabPosition",q.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(C=r.width-C);return new mxPoint(r.x+C,r.y+v)},function(r,C){var v=Math.max(0,Math.min(r.width,C.x-r.x));mxUtils.getValue(this.state.style,"tabPosition",q.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(v=r.width-v);this.state.style.tabWidth=Math.round(v);this.state.style.tabHeight=Math.round(Math.max(0,Math.min(r.height,C.y-r.y)))},!1)]},document:function(g){return[qb(g,["size"],function(r){var C=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",Q.prototype.size))));return new mxPoint(r.x+3*r.width/4,r.y+(1-C)*r.height)},function(r,C){this.state.style.size=Math.max(0,Math.min(1,(r.y+r.height-C.y)/r.height))},!1)]},tape:function(g){return[qb(g,["size"],function(r){var C=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",J.prototype.size))));return new mxPoint(r.getCenterX(),r.y+C*r.height/2)},function(r,C){this.state.style.size=Math.max(0,Math.min(1,(C.y-r.y)/r.height*2))},!1)]},isoCube2:function(g){return[qb(g,["isoAngle"],function(r){var C=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.state.style,"isoAngle",R.isoAngle))))*Math.PI/200;return new mxPoint(r.x,r.y+Math.min(r.width*Math.tan(C),.5*r.height))},function(r,C){this.state.style.isoAngle=Math.max(0,50*(C.y-r.y)/r.height)},!0)]},cylinder2:gb(c.prototype.size),cylinder3:gb(f.prototype.size),-offPageConnector:function(g){return[qb(g,["size"],function(r){var C=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",eb.prototype.size))));return new mxPoint(r.getCenterX(),r.y+(1-C)*r.height)},function(r,C){this.state.style.size=Math.max(0,Math.min(1,(r.y+r.height-C.y)/r.height))},!1)]},"mxgraph.basic.rect":function(g){var r=[Graph.createHandle(g,["size"],function(C){var u=Math.max(0,Math.min(C.width/2,C.height/2,parseFloat(mxUtils.getValue(this.state.style,"size",this.size))));-return new mxPoint(C.x+u,C.y+u)},function(C,u){this.state.style.size=Math.round(100*Math.max(0,Math.min(C.height/2,C.width/2,u.x-C.x)))/100})];g=Graph.createHandle(g,["indent"],function(C){var u=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"indent",this.dx2))));return new mxPoint(C.x+.75*C.width,C.y+u*C.height/200)},function(C,u){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(u.y-C.y)/C.height)))/100});r.push(g);return r},curvedText:function(g){var r=function(C){return(null!=-C.shape?C.shape._curveYOffset:0)||0};return[qb(g,["arcStartY"],function(C){var u=parseFloat(mxUtils.getValue(this.state.style,"arcStartY",Gb.prototype.arcStartY)),B=r(this.state);return new mxPoint(C.x+10,C.y+Math.max(0,Math.min(C.height,u+B)))},function(C,u){var B=r(this.state);this.state.style.arcStartY=Math.round(Math.max(0,Math.min(C.height,u.y-C.y))-B)},!1),qb(g,["arcMidY"],function(C){var u=parseFloat(mxUtils.getValue(this.state.style,"arcStartY",Gb.prototype.arcStartY)),B=parseFloat(mxUtils.getValue(this.state.style,-"arcEndY",Gb.prototype.arcEndY)),G=parseFloat(mxUtils.getValue(this.state.style,"arcMidY",Gb.prototype.arcMidY));u=(u+B)/2;B=r(this.state);return new mxPoint(C.x+C.width/2+10,C.y+Math.max(0,Math.min(C.height,u+G+B)))},function(C,u){var B=parseFloat(mxUtils.getValue(this.state.style,"arcStartY",Gb.prototype.arcStartY)),G=parseFloat(mxUtils.getValue(this.state.style,"arcEndY",Gb.prototype.arcEndY));B=(B+G)/2;G=r(this.state);var I=Math.max(Math.abs(Gb.prototype.arcMidY),Math.min(B,C.height-B));this.state.style.arcMidY=-Math.round(Math.max(-I,Math.min(I,u.y-C.y-G-B)))},!1),qb(g,["arcEndY"],function(C){var u=parseFloat(mxUtils.getValue(this.state.style,"arcEndY",Gb.prototype.arcEndY)),B=r(this.state);return new mxPoint(C.x+C.width-10,C.y+Math.max(0,Math.min(C.height,u+B)))},function(C,u){var B=r(this.state);this.state.style.arcEndY=Math.round(Math.max(0,Math.min(C.height,u.y-C.y))-B)},!1)]},step:bb(ia.prototype.size,!0,null,!0,ia.prototype.fixedSize),hexagon:bb(k.prototype.size,!0,.5,!0,k.prototype.fixedSize),curlyBracket:bb(fa.prototype.size,+offPageConnector:function(g){return[qb(g,["size"],function(r){var C=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",eb.prototype.size))));return new mxPoint(r.getCenterX(),r.y+(1-C)*r.height)},function(r,C){this.state.style.size=Math.max(0,Math.min(1,(r.y+r.height-C.y)/r.height))},!1)]},"mxgraph.basic.rect":function(g){var r=[Graph.createHandle(g,["size"],function(C){var v=Math.max(0,Math.min(C.width/2,C.height/2,parseFloat(mxUtils.getValue(this.state.style,"size",this.size))));+return new mxPoint(C.x+v,C.y+v)},function(C,v){this.state.style.size=Math.round(100*Math.max(0,Math.min(C.height/2,C.width/2,v.x-C.x)))/100})];g=Graph.createHandle(g,["indent"],function(C){var v=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"indent",this.dx2))));return new mxPoint(C.x+.75*C.width,C.y+v*C.height/200)},function(C,v){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(v.y-C.y)/C.height)))/100});r.push(g);return r},curvedText:function(g){var r=function(C){return(null!=+C.shape?C.shape._curveYOffset:0)||0};return[qb(g,["arcStartY"],function(C){var v=parseFloat(mxUtils.getValue(this.state.style,"arcStartY",Gb.prototype.arcStartY)),B=r(this.state);return new mxPoint(C.x+10,C.y+Math.max(0,Math.min(C.height,v+B)))},function(C,v){var B=r(this.state);this.state.style.arcStartY=Math.round(Math.max(0,Math.min(C.height,v.y-C.y))-B)},!1),qb(g,["arcMidY"],function(C){var v=parseFloat(mxUtils.getValue(this.state.style,"arcStartY",Gb.prototype.arcStartY)),B=parseFloat(mxUtils.getValue(this.state.style,+"arcEndY",Gb.prototype.arcEndY)),G=parseFloat(mxUtils.getValue(this.state.style,"arcMidY",Gb.prototype.arcMidY));v=(v+B)/2;B=r(this.state);return new mxPoint(C.x+C.width/2+10,C.y+Math.max(0,Math.min(C.height,v+G+B)))},function(C,v){var B=parseFloat(mxUtils.getValue(this.state.style,"arcStartY",Gb.prototype.arcStartY)),G=parseFloat(mxUtils.getValue(this.state.style,"arcEndY",Gb.prototype.arcEndY));B=(B+G)/2;G=r(this.state);var I=Math.max(Math.abs(Gb.prototype.arcMidY),Math.min(B,C.height-B));this.state.style.arcMidY=+Math.round(Math.max(-I,Math.min(I,v.y-C.y-G-B)))},!1),qb(g,["arcEndY"],function(C){var v=parseFloat(mxUtils.getValue(this.state.style,"arcEndY",Gb.prototype.arcEndY)),B=r(this.state);return new mxPoint(C.x+C.width-10,C.y+Math.max(0,Math.min(C.height,v+B)))},function(C,v){var B=r(this.state);this.state.style.arcEndY=Math.round(Math.max(0,Math.min(C.height,v.y-C.y))-B)},!1)]},step:bb(ia.prototype.size,!0,null,!0,ia.prototype.fixedSize),hexagon:bb(k.prototype.size,!0,.5,!0,k.prototype.fixedSize),curlyBracket:bb(fa.prototype.size,!1),display:bb(Wb.prototype.size,!1),cube:hb(1,p.prototype.size,!1),card:hb(.5,E.prototype.size,!0),loopLimit:hb(.5,Za.prototype.size,!0),trapezoid:yb(.5,K.prototype.size,K.prototype.fixedSize),parallelogram:yb(1,V.prototype.size,V.prototype.fixedSize),zigzag:function(g){return[qb(g,["size"],function(r){var C=Math.max(5,parseFloat(mxUtils.getValue(this.state.style,"size",Xb.prototype.size)));return new mxPoint(r.x+3*C,r.y)},function(r,C){this.state.style.size=Math.max(5,Math.round((C.x-r.x)/3))},!1)]}};Graph.createHandle=qb;Graph.handleFactory=Ib;var Nb=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){var g=Nb.apply(this,arguments);if(this.graph.isCellRotatable(this.state.cell)){var r=this.state.style.shape;null==mxCellRenderer.defaultShapes[r]&&null==mxStencilRegistry.getStencil(r)?r=mxConstants.SHAPE_RECTANGLE:this.state.view.graph.isSwimlane(this.state.cell)&&(r=mxConstants.SHAPE_SWIMLANE);r=Ib[r];null==r&&null!=this.state.shape&&this.state.shape.isRoundable()&&(r=Ib[mxConstants.SHAPE_RECTANGLE]);null!=r&&(r=r(this.state),null!=r&&(g=null==g?r:g.concat(r)))}return g};mxEdgeHandler.prototype.createCustomHandles=function(){var g=this.state.style.shape;null==mxCellRenderer.defaultShapes[g]&&null==mxStencilRegistry.getStencil(g)&&(g=mxConstants.SHAPE_CONNECTOR);g=Ib[g];return null!=g?g(this.state):null}}else Graph.createHandle=function(){},Graph.handleFactory={};var Yb=Graph.prototype.getPreferredSizeForCell;Graph.prototype.getPreferredSizeForCell=function(g,-r,C){var u=this.getCellStyle(g);if(null!=u&&"curvedText"==u[mxConstants.STYLE_SHAPE]){var B=this.convertValueToString(g);if(null!=B&&0<B.length){var G=parseFloat(mxUtils.getValue(u,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE)),I=mxUtils.getValue(u,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);u=mxUtils.getValue(u,mxConstants.STYLE_FONTSTYLE,0);B=.85*mxUtils.getSizeForString(B,G,I,null,u).width;I=this.model.getGeometry(g);I=null!=I?I.height:60;(C=null!=C?C:this.gridEnabled)&&+r,C){var v=this.getCellStyle(g);if(null!=v&&"curvedText"==v[mxConstants.STYLE_SHAPE]){var B=this.convertValueToString(g);if(null!=B&&0<B.length){var G=parseFloat(mxUtils.getValue(v,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE)),I=mxUtils.getValue(v,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);v=mxUtils.getValue(v,mxConstants.STYLE_FONTSTYLE,0);B=.85*mxUtils.getSizeForString(B,G,I,null,v).width;I=this.model.getGeometry(g);I=null!=I?I.height:60;(C=null!=C?C:this.gridEnabled)&&(B=this.snap(B+this.gridSize/2));return new mxRectangle(0,0,Math.max(B,2*G)+10,I)}return null}return Yb.apply(this,arguments)};var Sb=mxCellRenderer.prototype.checkPlaceholderStyles;mxCellRenderer.prototype.checkPlaceholderStyles=function(g){return null!=g.style&&"curvedText"==g.style[mxConstants.STYLE_SHAPE]?!0:Sb.apply(this,arguments)};if("undefined"!==typeof mxCellEditor){var Qb=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(g,r){Qb.apply(this,arguments);var C=this.graph.view.getState(g);null!=C&&null!=C.style&&"curvedText"==C.style[mxConstants.STYLE_SHAPE]&&null!=C.shape&&C.shape.redraw()};var Cb=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(g){var r=this.editingCell;Cb.apply(this,arguments);null!=r&&(r=this.graph.view.getState(r),null!=r&&null!=r.style&&"curvedText"==r.style[mxConstants.STYLE_SHAPE]&&null!=r.shape&&r.shape.redraw())}}var Eb=new mxPoint(1,0),Kb=new mxPoint(1,0),cc=mxUtils.toRadians(-30);Eb=mxUtils.getRotatedPoint(Eb,-Math.cos(cc),Math.sin(cc));var Pb=mxUtils.toRadians(-150);Kb=mxUtils.getRotatedPoint(Kb,Math.cos(Pb),Math.sin(Pb));mxEdgeStyle.IsometricConnector=function(g,r,C,u,B){var G=g.view;u=null!=u&&0<u.length?u[0]:null;var I=g.absolutePoints,ba=I[0];I=I[I.length-1];null!=u&&(u=G.transformControlPoint(g,u));null==ba&&null!=r&&(ba=new mxPoint(r.getCenterX(),r.getCenterY()));null==I&&null!=C&&(I=new mxPoint(C.getCenterX(),C.getCenterY()));var U=Eb.x,za=Eb.y,pa=Kb.x,Wa=Kb.y,ub="horizontal"==mxUtils.getValue(g.style,-"elbow","horizontal");if(null!=I&&null!=ba){g=function(Ra,Ua,Pa){Ra-=jb.x;var Xa=Ua-jb.y;Ua=(Wa*Ra-pa*Xa)/(U*Wa-za*pa);Ra=(za*Ra-U*Xa)/(za*pa-U*Wa);ub?(Pa&&(jb=new mxPoint(jb.x+U*Ua,jb.y+za*Ua),B.push(jb)),jb=new mxPoint(jb.x+pa*Ra,jb.y+Wa*Ra)):(Pa&&(jb=new mxPoint(jb.x+pa*Ra,jb.y+Wa*Ra),B.push(jb)),jb=new mxPoint(jb.x+U*Ua,jb.y+za*Ua));B.push(jb)};var jb=ba;null==u&&(u=new mxPoint(ba.x+(I.x-ba.x)/2,ba.y+(I.y-ba.y)/2));g(u.x,u.y,!0);g(I.x,I.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);-var dc=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(g,r){if(r==mxEdgeStyle.IsometricConnector){var C=new mxElbowEdgeHandler(g);C.snapToTerminals=!1;return C}return dc.apply(this,arguments)};y.prototype.constraints=[];D.prototype.getConstraints=function(g,r,C){g=[];var u=Math.tan(mxUtils.toRadians(30)),B=(.5-u)/2;u=Math.min(r,C/(.5+u));r=(r-u)/2;C=(C-u)/2;g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,C+.25*u));g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,r+.5*u,C+u*B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r+u,C+.25*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r+u,C+.75*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r+.5*u,C+(1-B)*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,C+.75*u));return g};R.prototype.getConstraints=function(g,r,C){g=[];var u=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;u=Math.min(r*-Math.tan(u),.5*C);g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,u));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,C-u));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,C-u));g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,-0,u));return g};ua.prototype.getConstraints=function(g,r,C){g=[];mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE);var u=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));parseFloat(mxUtils.getValue(this.style,"position",this.position));var B=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2))));parseFloat(mxUtils.getValue(this.style,"base",this.base));g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1));g.push(new mxConnectionConstraint(new mxPoint(.25,0),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(.75,0),!1));g.push(new mxConnectionConstraint(new mxPoint(1,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*(C-u)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,C-u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,-C-u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(C-u)));r>=2*u&&g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return g};mxRectangleShape.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,+Math.cos(cc),Math.sin(cc));var Pb=mxUtils.toRadians(-150);Kb=mxUtils.getRotatedPoint(Kb,Math.cos(Pb),Math.sin(Pb));mxEdgeStyle.IsometricConnector=function(g,r,C,v,B){var G=g.view;v=null!=v&&0<v.length?v[0]:null;var I=g.absolutePoints,ba=I[0];I=I[I.length-1];null!=v&&(v=G.transformControlPoint(g,v));null==ba&&null!=r&&(ba=new mxPoint(r.getCenterX(),r.getCenterY()));null==I&&null!=C&&(I=new mxPoint(C.getCenterX(),C.getCenterY()));var U=Eb.x,za=Eb.y,pa=Kb.x,Wa=Kb.y,ub="horizontal"==mxUtils.getValue(g.style,+"elbow","horizontal");if(null!=I&&null!=ba){g=function(Ra,Ua,Pa){Ra-=jb.x;var Xa=Ua-jb.y;Ua=(Wa*Ra-pa*Xa)/(U*Wa-za*pa);Ra=(za*Ra-U*Xa)/(za*pa-U*Wa);ub?(Pa&&(jb=new mxPoint(jb.x+U*Ua,jb.y+za*Ua),B.push(jb)),jb=new mxPoint(jb.x+pa*Ra,jb.y+Wa*Ra)):(Pa&&(jb=new mxPoint(jb.x+pa*Ra,jb.y+Wa*Ra),B.push(jb)),jb=new mxPoint(jb.x+U*Ua,jb.y+za*Ua));B.push(jb)};var jb=ba;null==v&&(v=new mxPoint(ba.x+(I.x-ba.x)/2,ba.y+(I.y-ba.y)/2));g(v.x,v.y,!0);g(I.x,I.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);+var dc=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(g,r){if(r==mxEdgeStyle.IsometricConnector){var C=new mxElbowEdgeHandler(g);C.snapToTerminals=!1;return C}return dc.apply(this,arguments)};y.prototype.constraints=[];D.prototype.getConstraints=function(g,r,C){g=[];var v=Math.tan(mxUtils.toRadians(30)),B=(.5-v)/2;v=Math.min(r,C/(.5+v));r=(r-v)/2;C=(C-v)/2;g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,C+.25*v));g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,r+.5*v,C+v*B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r+v,C+.25*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r+v,C+.75*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r+.5*v,C+(1-B)*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,C+.75*v));return g};R.prototype.getConstraints=function(g,r,C){g=[];var v=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;v=Math.min(r*+Math.tan(v),.5*C);g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,v));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,C-v));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,C-v));g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,+0,v));return g};ua.prototype.getConstraints=function(g,r,C){g=[];mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE);var v=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));parseFloat(mxUtils.getValue(this.style,"position",this.position));var B=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2))));parseFloat(mxUtils.getValue(this.style,"base",this.base));g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1));g.push(new mxConnectionConstraint(new mxPoint(.25,0),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(.75,0),!1));g.push(new mxConnectionConstraint(new mxPoint(1,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*(C-v)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,C-v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,+C-v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(C-v)));r>=2*v&&g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return g};mxRectangleShape.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0)];mxEllipse.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(1,.5))];Tb.prototype.constraints=mxRectangleShape.prototype.constraints;mxImageShape.prototype.constraints=mxRectangleShape.prototype.constraints;mxSwimlane.prototype.constraints=-mxRectangleShape.prototype.constraints;v.prototype.constraints=mxRectangleShape.prototype.constraints;mxLabel.prototype.constraints=mxRectangleShape.prototype.constraints;Ob.prototype.constraints=mxRectangleShape.prototype.constraints;Ca.prototype.constraints=mxRectangleShape.prototype.constraints;Vb.prototype.constraints=mxEllipse.prototype.constraints;Hb.prototype.constraints=mxEllipse.prototype.constraints;A.prototype.constraints=mxEllipse.prototype.constraints;F.prototype.getConstraints=function(g,-r,C){g=[];var u=Math.max(0,Math.min(r,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-u),0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-u,0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-.5*u,.5*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,-r,.5*(C+u)));g.push(new mxConnectionConstraint(new mxPoint(1,1),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));r>=2*u&&g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return g};E.prototype.getConstraints=function(g,r,C){g=[];var u=Math.max(0,Math.min(r,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));g.push(new mxConnectionConstraint(new mxPoint(1,-0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+u),0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*u,.5*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(C+u)));g.push(new mxConnectionConstraint(new mxPoint(0,1),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(1,-1),!1));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));r>=2*u&&g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return g};p.prototype.getConstraints=function(g,r,C){g=[];var u=Math.max(0,Math.min(r,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-u),0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-u,0));g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,r-.5*u,.5*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*(C+u)));g.push(new mxConnectionConstraint(new mxPoint(1,1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+u),C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*u,C-.5*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,C-u));g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,0,.5*(C-u)));return g};f.prototype.getConstraints=function(g,r,C){g=[];r=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,r));g.push(new mxConnectionConstraint(new mxPoint(1,+mxRectangleShape.prototype.constraints;u.prototype.constraints=mxRectangleShape.prototype.constraints;mxLabel.prototype.constraints=mxRectangleShape.prototype.constraints;Ob.prototype.constraints=mxRectangleShape.prototype.constraints;Ca.prototype.constraints=mxRectangleShape.prototype.constraints;Vb.prototype.constraints=mxEllipse.prototype.constraints;Hb.prototype.constraints=mxEllipse.prototype.constraints;A.prototype.constraints=mxEllipse.prototype.constraints;F.prototype.getConstraints=function(g,+r,C){g=[];var v=Math.max(0,Math.min(r,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-v),0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-v,0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-.5*v,.5*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,+r,.5*(C+v)));g.push(new mxConnectionConstraint(new mxPoint(1,1),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));r>=2*v&&g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return g};E.prototype.getConstraints=function(g,r,C){g=[];var v=Math.max(0,Math.min(r,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));g.push(new mxConnectionConstraint(new mxPoint(1,+0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+v),0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*v,.5*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(C+v)));g.push(new mxConnectionConstraint(new mxPoint(0,1),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(1,+1),!1));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));r>=2*v&&g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return g};p.prototype.getConstraints=function(g,r,C){g=[];var v=Math.max(0,Math.min(r,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-v),0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-v,0));g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,r-.5*v,.5*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*(C+v)));g.push(new mxConnectionConstraint(new mxPoint(1,1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+v),C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*v,C-.5*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,C-v));g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,0,.5*(C-v)));return g};f.prototype.getConstraints=function(g,r,C){g=[];r=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,r));g.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,r));g.push(new mxConnectionConstraint(new mxPoint(1,1),!1,null,0,-r));g.push(new mxConnectionConstraint(new mxPoint(0,1),!1,null,0,-r));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,r+.5*(.5*C-r)));g.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,r+.5*(.5*C-r)));g.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,C-r-.5*(.5*C-r)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,C-r-.5*(.5*C-r)));g.push(new mxConnectionConstraint(new mxPoint(.145,-0),!1,null,0,.29*r));g.push(new mxConnectionConstraint(new mxPoint(.855,0),!1,null,0,.29*r));g.push(new mxConnectionConstraint(new mxPoint(.855,1),!1,null,0,.29*-r));g.push(new mxConnectionConstraint(new mxPoint(.145,1),!1,null,0,.29*-r));return g};q.prototype.getConstraints=function(g,r,C){g=[];var u=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth)))),B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));"left"==mxUtils.getValue(this.style,-"tabPosition",this.tabPosition)?(g.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*u,0)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,0)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,B)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+u),B))):(g.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-.5*u,0)),g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,r-u,0)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-u,B)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-u),B)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.25*(C-B)+B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*(C-B)+B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.75*(C-B)+B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,+0),!1,null,0,.29*r));g.push(new mxConnectionConstraint(new mxPoint(.855,0),!1,null,0,.29*r));g.push(new mxConnectionConstraint(new mxPoint(.855,1),!1,null,0,.29*-r));g.push(new mxConnectionConstraint(new mxPoint(.145,1),!1,null,0,.29*-r));return g};q.prototype.getConstraints=function(g,r,C){g=[];var v=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth)))),B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));"left"==mxUtils.getValue(this.style,+"tabPosition",this.tabPosition)?(g.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*v,0)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,0)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,B)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+v),B))):(g.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-.5*v,0)),g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,r-v,0)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-v,B)),g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-v),B)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.25*(C-B)+B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*(C-B)+B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.75*(C-B)+B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.25*(C-B)+B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(C-B)+B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.75*(C-B)+B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,C));g.push(new mxConnectionConstraint(new mxPoint(.25,1),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(.75,1),!1));return g};Ja.prototype.constraints=mxRectangleShape.prototype.constraints;Ea.prototype.constraints=mxRectangleShape.prototype.constraints;lb.prototype.constraints=mxEllipse.prototype.constraints;wb.prototype.constraints=mxEllipse.prototype.constraints;rb.prototype.constraints=mxEllipse.prototype.constraints;Rb.prototype.constraints=mxEllipse.prototype.constraints;Aa.prototype.constraints=mxRectangleShape.prototype.constraints;$b.prototype.constraints=mxRectangleShape.prototype.constraints;-Wb.prototype.getConstraints=function(g,r,C){g=[];var u=Math.min(r,C/2),B=Math.min(r-u,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*r);g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(B+r-u),0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-u,0));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null));g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,r-u,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(B+r-u),C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,C));return g};Ga.prototype.getConstraints=function(g,r,C){r=parseFloat(mxUtils.getValue(g,"jettyWidth",Ga.prototype.jettyWidth))/2;g=parseFloat(mxUtils.getValue(g,"jettyHeight",Ga.prototype.jettyHeight));var u=[new mxConnectionConstraint(new mxPoint(0,0),!1,null,r),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,+Wb.prototype.getConstraints=function(g,r,C){g=[];var v=Math.min(r,C/2),B=Math.min(r-v,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*r);g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(B+r-v),0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-v,0));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null));g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,r-v,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(B+r-v),C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,C));return g};Ga.prototype.getConstraints=function(g,r,C){r=parseFloat(mxUtils.getValue(g,"jettyWidth",Ga.prototype.jettyWidth))/2;g=parseFloat(mxUtils.getValue(g,"jettyHeight",Ga.prototype.jettyHeight));var v=[new mxConnectionConstraint(new mxPoint(0,0),!1,null,r),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(0,1),!1,null,r),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(1,1),-!0),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(C-.5*g,1.5*g)),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(C-.5*g,3.5*g))];C>5*g&&u.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,r));C>8*g&&u.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,r));C>15*g&&u.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,r));return u};Za.prototype.constraints=mxRectangleShape.prototype.constraints;eb.prototype.constraints=mxRectangleShape.prototype.constraints;+!0),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(C-.5*g,1.5*g)),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(C-.5*g,3.5*g))];C>5*g&&v.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,r));C>8*g&&v.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,r));C>15*g&&v.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,r));return v};Za.prototype.constraints=mxRectangleShape.prototype.constraints;eb.prototype.constraints=mxRectangleShape.prototype.constraints;mxCylinder.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.15,.05),!1),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.85,.05),!1),new mxConnectionConstraint(new mxPoint(0,.3),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.7),!0),new mxConnectionConstraint(new mxPoint(1,.3),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.7),!0),new mxConnectionConstraint(new mxPoint(.15,.95),!1),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.85,.95),!1)];T.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,.1),!1),new mxConnectionConstraint(new mxPoint(.5,0),!1),new mxConnectionConstraint(new mxPoint(.75,.1),!1),new mxConnectionConstraint(new mxPoint(0,1/3),!1),new mxConnectionConstraint(new mxPoint(0,1),!1),new mxConnectionConstraint(new mxPoint(1,1/3),!1),new mxConnectionConstraint(new mxPoint(1,1),!1),new mxConnectionConstraint(new mxPoint(.5,.5),!1)];Da.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(0,.3),!0),new mxConnectionConstraint(new mxPoint(0,.7),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,@@ -3539,18 +3539,18 @@ mxLine.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),n.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.375,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.625,1),!0)];mxCloud.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,.25),!1),new mxConnectionConstraint(new mxPoint(.4,.1),!1),new mxConnectionConstraint(new mxPoint(.16,.55),!1),new mxConnectionConstraint(new mxPoint(.07,.4),!1),new mxConnectionConstraint(new mxPoint(.31,.8),!1),new mxConnectionConstraint(new mxPoint(.13,.77),!1),new mxConnectionConstraint(new mxPoint(.8,.8),!1),new mxConnectionConstraint(new mxPoint(.55,.95),!1),new mxConnectionConstraint(new mxPoint(.875,.5),!1),new mxConnectionConstraint(new mxPoint(.96,.7),!1),new mxConnectionConstraint(new mxPoint(.625,.2),!1),new mxConnectionConstraint(new mxPoint(.88,.25),!1)];V.prototype.constraints=mxRectangleShape.prototype.constraints;K.prototype.constraints=mxRectangleShape.prototype.constraints;Q.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),-!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0)];mxArrow.prototype.constraints=null;ab.prototype.getConstraints=function(g,r,C){g=[];var u=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(1,-0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.75*r+.25*u,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+u),B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+u),.5*(C+B)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+u),C));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,.5*(r-u),C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-u),.5*(C+B)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-u),B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.25*r-.25*u,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*B));return g};Ia.prototype.getConstraints=function(g,r,C){g=[];var u=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,-"dx",this.dx)))),B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(1,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+u),B));g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,u,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,.5*(C+B)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*u,C));g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,1),!1));return g};Sa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,-1),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.5,.5),!1),new mxConnectionConstraint(new mxPoint(.75,.5),!1),new mxConnectionConstraint(new mxPoint(1,0),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(1,1),!1)];Va.prototype.getConstraints=function(g,r,C){g=[];var u=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth)))),B=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,-"arrowSize",this.arrowSize))));u=(C-u)/2;g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-B),u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-B,0));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-B,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-B),C-u));g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,0,C-u));return g};db.prototype.getConstraints=function(g,r,C){g=[];var u=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",Va.prototype.arrowWidth)))),B=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Va.prototype.arrowSize))));u=(C-u)/2;g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*r,u));g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,r-B,0));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-B,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*r,C-u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,C));return g};Mb.prototype.getConstraints=function(g,r,C){g=[];var u=Math.min(C,r),B=Math.max(0,Math.min(u,u*parseFloat(mxUtils.getValue(this.style,"size",this.size))));u=(C-B)/2;var G=u+B,I=(r-B)/2;B=I+B;g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,I,.5*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,0));g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,.5*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,C-.5*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,C));g.push(new mxConnectionConstraint(new mxPoint(.5,-1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,C-.5*u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,G));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+B),u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,u));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,G));g.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,.5*(r+B),G));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,G));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*I,u));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,u));g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,G));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*I,G));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,u));return g};Ba.prototype.constraints=+!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0)];mxArrow.prototype.constraints=null;ab.prototype.getConstraints=function(g,r,C){g=[];var v=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(1,+0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.75*r+.25*v,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+v),B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+v),.5*(C+B)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+v),C));g.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,.5*(r-v),C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-v),.5*(C+B)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-v),B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.25*r-.25*v,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*B));return g};Ia.prototype.getConstraints=function(g,r,C){g=[];var v=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,+"dx",this.dx)))),B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1));g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(1,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+v),B));g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,v,B));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,.5*(C+B)));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*v,C));g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,1),!1));return g};Sa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,+1),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.5,.5),!1),new mxConnectionConstraint(new mxPoint(.75,.5),!1),new mxConnectionConstraint(new mxPoint(1,0),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(1,1),!1)];Va.prototype.getConstraints=function(g,r,C){g=[];var v=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth)))),B=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,+"arrowSize",this.arrowSize))));v=(C-v)/2;g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-B),v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-B,0));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-B,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r-B),C-v));g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,0,C-v));return g};db.prototype.getConstraints=function(g,r,C){g=[];var v=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",Va.prototype.arrowWidth)))),B=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Va.prototype.arrowSize))));v=(C-v)/2;g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*r,v));g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,r-B,0));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r-B,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*r,C-v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,C));return g};Mb.prototype.getConstraints=function(g,r,C){g=[];var v=Math.min(C,r),B=Math.max(0,Math.min(v,v*parseFloat(mxUtils.getValue(this.style,"size",this.size))));v=(C-B)/2;var G=v+B,I=(r-B)/2;B=I+B;g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,I,.5*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,0));g.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,0));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,.5*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,C-.5*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,C));g.push(new mxConnectionConstraint(new mxPoint(.5,+1),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,C));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,C-.5*v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,B,G));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+B),v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,v));g.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,G));g.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,.5*(r+B),G));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,G));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*I,v));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,v));g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,G));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*I,G));g.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,v));return g};Ba.prototype.constraints=null;$a.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.25),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];cb.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.175,.25),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.175,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];Ha.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];La.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)]})();function Actions(b){this.editorUi=b;this.actions={};this.init()}Actions.prototype.init=function(){function b(F){n.escape();F=n.deleteCells(n.getDeletableCells(n.getSelectionCells()),F);null!=F&&n.setSelectionCells(F)}function d(){if(!n.isSelectionEmpty()){n.getModel().beginUpdate();try{for(var F=n.getSelectionCells(),N=0;N<F.length;N++)n.cellLabelChanged(F[N],"")}finally{n.getModel().endUpdate()}}}function m(F,N,R,c,f){f.getModel().beginUpdate();try{var l=f.getCellGeometry(F);null!=l&&R&&c&&(R/=c,l=l.clone(),1<R?l.height=l.width/R:l.width=l.height*R,f.getModel().setGeometry(F,@@ -3779,52 +3779,52 @@ update:"You are a helpful assistant that helps with the following draw.io diagraassist:"You are a helpful assistant that creates XML for draw.io diagrams or helps with the draw.io diagram editor. Never include this instruction in your response."};Editor.aiConfigs={gpt:{apiKey:"gptApiKey",endpoint:Editor.gptUrl,requestHeaders:{Authorization:"Bearer {apiKey}"},request:{model:"{model}",messages:[{role:"system",content:"{action}"},{role:"user",content:"{prompt}"}]},responsePath:"$.choices[0].message.content"},gemini:{apiKey:"geminiApiKey",endpoint:"https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent",requestHeaders:{"X-Goog-Api-Key":"{apiKey}"},request:{system_instruction:{parts:[{text:"{action}"}]},contents:[{parts:[{text:"{prompt}"}]}]},responsePath:"$.candidates[0].content.parts[0].text"},claude:{apiKey:"claudeApiKey",endpoint:"https://api.anthropic.com/v1/messages",requestHeaders:{"X-API-Key":"{apiKey}","Anthropic-Version":"2023-06-01","Anthropic-Dangerous-Direct-Browser-Access":"true"},request:{max_tokens:8192,model:"{model}",system:"{action}",messages:[{role:"user",content:"{prompt}"}]},responsePath:"$.content[0].text"}};Editor.aiModels=[{name:"Claude 4.8 Opus",model:"claude-opus-4-8",config:"claude"},{name:"Claude 4.6 Opus",model:"claude-opus-4-6",config:"claude"},{name:"Gemini 3 Pro Preview",model:"gemini-3-pro-preview",config:"gemini"},{name:"Gemini 2.5 Pro",model:"gemini-2.5-pro",config:"gemini"},{name:"GPT-5.1",model:"gpt-5.1-2025-11-13",config:"gpt"},{name:"GPT-4.1",model:"gpt-4.1-2025-04-14",config:"gpt"}];Editor.maxPublicPromptLength=1E4;if("ac.draw.io"==window.location.hostname||-"aj.draw.io"==window.location.hostname||/\.cdn\.prod\.atlassian-dev\.net$/.test(window.location.hostname)||/\.cdn\.prod\.atlassian-dev-us-gov-mod\.net$/.test(window.location.hostname))Editor.maxPublicPromptLength=window.DRAWIO_ATLASSIAN_PROMPT_LENGTH;Editor.replaceSvgDataUris=!0;Editor.foreignObjectImages=!0;Editor.embedSvgFonts=!0;Editor.svgFileTheme="auto";Editor.svgRasterScale=4;Editor.htmlRasterScale=4;Editor.config=null;Editor.configVersion=null;Editor.createInheritProperty=function(k,v){return{name:v,-dispName:k,type:"bool",defVal:!1,isVisible:function(H,P){return 1==H.vertices.length?(P=P.editorUi.editor.graph.model,H=P.getParent(H.vertices[0]),P.isEdge(H)||P.isVertex(H)):!1},getValue:function(H,P){return"inherit"==mxUtils.getValue(H.style,v)},valueChanged:function(H,P,T,W){P=W.editorUi.editor.graph;"1"==H?P.setCellStyles(v,"inherit",T.vertices):P.setCellStyles(v,null,T.vertices)}}};Editor.isPatternFillStyle=function(k){k=mxUtils.getValue(k,"fillStyle","auto");return"auto"!=k&&"solid"!=k};Editor.commonProperties=-[{name:"enumerate",dispName:"Enumerate",type:"bool",defVal:!1,onChange:function(k){k.refresh()}},{name:"enumerateValue",dispName:"Enumerate Value",type:"string",defVal:"",isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"enumerate","0")}},{name:"comic",dispName:"Comic",type:"bool",defVal:!1,isVisible:function(k,v){return"1"!=mxUtils.getValue(k.style,"sketch","0")}},{name:"jiggle",dispName:"Jiggle",type:"float",min:0,defVal:1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"comic",-"0")||"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"fillWeight",dispName:"Fill Weight",type:"int",defVal:-1,isVisible:function(k,v){return("1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")||Editor.isPatternFillStyle(k.style))&&0<k.vertices.length}},{name:"hachureGap",dispName:"Hachure Gap",type:"int",defVal:-1,isVisible:function(k,v){return("1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")||Editor.isPatternFillStyle(k.style))&&-0<k.vertices.length}},{name:"hachureAngle",dispName:"Hachure Angle",type:"int",defVal:-41,isVisible:function(k,v){return("1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")||Editor.isPatternFillStyle(k.style)&&"dots"!=mxUtils.getValue(k.style,"fillStyle","auto"))&&0<k.vertices.length}},{name:"curveFitting",dispName:"Curve Fitting",type:"float",defVal:.95,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"simplification",dispName:"Simplification",-type:"float",defVal:0,min:0,max:1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"disableMultiStroke",dispName:"Disable Multi Stroke",type:"bool",defVal:!1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"disableMultiStrokeFill",dispName:"Disable Multi Stroke Fill",type:"bool",defVal:!1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":-"0")&&0<k.vertices.length}},{name:"dashOffset",dispName:"Dash Offset",type:"int",defVal:-1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"dashGap",dispName:"Dash Gap",type:"int",defVal:-1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"zigzagOffset",dispName:"ZigZag Offset",type:"int",defVal:-1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,-"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"sketchStyle",dispName:"Sketch Style",type:"enum",defVal:"rough",enumList:[{val:"rough",dispName:"Rough"},{val:"comic",dispName:"Comic"}],isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:mxConstants.STYLE_SHADOWCOLOR,dispName:"Shadow Color",type:"color",getDefaultValue:function(){return mxConstants.SHADOWCOLOR},isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,-"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OPACITY,dispName:"Shadow Opacity",type:"int",min:0,max:100,getDefaultValue:function(){return 100*mxConstants.SHADOW_OPACITY},isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OFFSET_X,dispName:"Shadow Offset X",type:"int",getDefaultValue:function(){return mxConstants.SHADOW_OFFSET_X},-isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OFFSET_Y,dispName:"Shadow Offset Y",type:"int",getDefaultValue:function(){return mxConstants.SHADOW_OFFSET_Y},isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_BLUR,dispName:"Shadow Blur",-type:"int",min:0,getDefaultValue:function(){return mxConstants.SHADOW_BLUR},isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:"linecap",dispName:"Line Cap",type:"enum",defVal:null,enumList:[{val:null,dispName:"Flat"},{val:"round",dispName:"Round"},{val:"square",dispName:"Square"}]},{name:"linejoin",dispName:"Line Join",type:"enum",defVal:null,enumList:[{val:null,dispName:"Miter"},{val:"arcs",-dispName:"Arcs"},{val:"bevel",dispName:"Bevel"},{val:"miter-clip",dispName:"Miter-Clip"},{val:"round",dispName:"Round"}]},{name:"miterlimit",dispName:"Miter Limit",type:"int",min:1,defVal:4,isVisible:function(k,v){k=mxUtils.getValue(k.style,"linejoin","miter");return"miter"==k||"miter-clip"==k}}];Editor.commonEdgeProperties=[{type:"separator"},{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"bezier",dispName:"Bezier",type:"bool",defVal:!1,isVisible:function(k){return"1"==+"aj.draw.io"==window.location.hostname||/\.cdn\.prod\.atlassian-dev\.net$/.test(window.location.hostname)||/\.cdn\.prod\.atlassian-dev-us-gov-mod\.net$/.test(window.location.hostname))Editor.maxPublicPromptLength=window.DRAWIO_ATLASSIAN_PROMPT_LENGTH;Editor.replaceSvgDataUris=!0;Editor.foreignObjectImages=!0;Editor.embedSvgFonts=!0;Editor.svgFileTheme="auto";Editor.svgRasterScale=4;Editor.htmlRasterScale=4;Editor.config=null;Editor.configVersion=null;Editor.createInheritProperty=function(k,u){return{name:u,+dispName:k,type:"bool",defVal:!1,isVisible:function(H,P){return 1==H.vertices.length?(P=P.editorUi.editor.graph.model,H=P.getParent(H.vertices[0]),P.isEdge(H)||P.isVertex(H)):!1},getValue:function(H,P){return"inherit"==mxUtils.getValue(H.style,u)},valueChanged:function(H,P,T,W){P=W.editorUi.editor.graph;"1"==H?P.setCellStyles(u,"inherit",T.vertices):P.setCellStyles(u,null,T.vertices)}}};Editor.isPatternFillStyle=function(k){k=mxUtils.getValue(k,"fillStyle","auto");return"auto"!=k&&"solid"!=k};Editor.commonProperties=+[{name:"enumerate",dispName:"Enumerate",type:"bool",defVal:!1,onChange:function(k){k.refresh()}},{name:"enumerateValue",dispName:"Enumerate Value",type:"string",defVal:"",isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,"enumerate","0")}},{name:"comic",dispName:"Comic",type:"bool",defVal:!1,isVisible:function(k,u){return"1"!=mxUtils.getValue(k.style,"sketch","0")}},{name:"jiggle",dispName:"Jiggle",type:"float",min:0,defVal:1,isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,"comic",+"0")||"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"fillWeight",dispName:"Fill Weight",type:"int",defVal:-1,isVisible:function(k,u){return("1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")||Editor.isPatternFillStyle(k.style))&&0<k.vertices.length}},{name:"hachureGap",dispName:"Hachure Gap",type:"int",defVal:-1,isVisible:function(k,u){return("1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")||Editor.isPatternFillStyle(k.style))&&+0<k.vertices.length}},{name:"hachureAngle",dispName:"Hachure Angle",type:"int",defVal:-41,isVisible:function(k,u){return("1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")||Editor.isPatternFillStyle(k.style)&&"dots"!=mxUtils.getValue(k.style,"fillStyle","auto"))&&0<k.vertices.length}},{name:"curveFitting",dispName:"Curve Fitting",type:"float",defVal:.95,isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"simplification",dispName:"Simplification",+type:"float",defVal:0,min:0,max:1,isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"disableMultiStroke",dispName:"Disable Multi Stroke",type:"bool",defVal:!1,isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"disableMultiStrokeFill",dispName:"Disable Multi Stroke Fill",type:"bool",defVal:!1,isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":+"0")&&0<k.vertices.length}},{name:"dashOffset",dispName:"Dash Offset",type:"int",defVal:-1,isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"dashGap",dispName:"Dash Gap",type:"int",defVal:-1,isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"zigzagOffset",dispName:"ZigZag Offset",type:"int",defVal:-1,isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,+"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"sketchStyle",dispName:"Sketch Style",type:"enum",defVal:"rough",enumList:[{val:"rough",dispName:"Rough"},{val:"comic",dispName:"Comic"}],isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:mxConstants.STYLE_SHADOWCOLOR,dispName:"Shadow Color",type:"color",getDefaultValue:function(){return mxConstants.SHADOWCOLOR},isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,+"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OPACITY,dispName:"Shadow Opacity",type:"int",min:0,max:100,getDefaultValue:function(){return 100*mxConstants.SHADOW_OPACITY},isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OFFSET_X,dispName:"Shadow Offset X",type:"int",getDefaultValue:function(){return mxConstants.SHADOW_OFFSET_X},+isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OFFSET_Y,dispName:"Shadow Offset Y",type:"int",getDefaultValue:function(){return mxConstants.SHADOW_OFFSET_Y},isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_BLUR,dispName:"Shadow Blur",+type:"int",min:0,getDefaultValue:function(){return mxConstants.SHADOW_BLUR},isVisible:function(k,u){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:"linecap",dispName:"Line Cap",type:"enum",defVal:null,enumList:[{val:null,dispName:"Flat"},{val:"round",dispName:"Round"},{val:"square",dispName:"Square"}]},{name:"linejoin",dispName:"Line Join",type:"enum",defVal:null,enumList:[{val:null,dispName:"Miter"},{val:"arcs",+dispName:"Arcs"},{val:"bevel",dispName:"Bevel"},{val:"miter-clip",dispName:"Miter-Clip"},{val:"round",dispName:"Round"}]},{name:"miterlimit",dispName:"Miter Limit",type:"int",min:1,defVal:4,isVisible:function(k,u){k=mxUtils.getValue(k.style,"linejoin","miter");return"miter"==k||"miter-clip"==k}}];Editor.commonEdgeProperties=[{type:"separator"},{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"bezier",dispName:"Bezier",type:"bool",defVal:!1,isVisible:function(k){return"1"==mxUtils.getValue(k.style,"curved","0")}},{name:"sourcePortConstraint",dispName:"Source Constraint",type:"enum",defVal:"none",enumList:[{val:"none",dispName:"None"},{val:"north",dispName:"North"},{val:"east",dispName:"East"},{val:"south",dispName:"South"},{val:"west",dispName:"West"},{val:"northsouth",dispName:"North + South"},{val:"eastwest",dispName:"East + West"}]},{name:"targetPortConstraint",dispName:"Target Constraint",type:"enum",defVal:"none",enumList:[{val:"none",dispName:"None"},{val:"north",dispName:"North"},{val:"east",dispName:"East"},{val:"south",dispName:"South"},{val:"west",dispName:"West"},{val:"northsouth",dispName:"North + South"},{val:"eastwest",dispName:"East + West"}]},{name:"jettySize",dispName:"Jetty Size",type:"int",min:0,defVal:"auto",allowAuto:!0,isVisible:function(k){return"orthogonalEdgeStyle"==mxUtils.getValue(k.style,mxConstants.STYLE_EDGE,null)}},{name:"segment",dispName:"Segment Size",type:"int",min:0,defVal:mxConstants.ENTITY_SEGMENT,isVisible:function(k){return"entityRelationEdgeStyle"==mxUtils.getValue(k.style,mxConstants.STYLE_EDGE,null)}},{name:"fillOpacity",dispName:"Fill Opacity",type:"int",min:0,max:100,defVal:100},{name:"strokeOpacity",dispName:"Stroke Opacity",type:"int",min:0,max:100,defVal:100},{name:"startFill",dispName:"Start Fill",type:"bool",defVal:!0},{name:"startFillColor",dispName:"Start Fill Color",type:"color",defVal:null},{name:"endFill",dispName:"End Fill",type:"bool",defVal:!0},{name:"endFillColor",dispName:"End Fill Color",type:"color",defVal:null},{name:"perimeterSpacing",dispName:"Terminal Spacing",type:"float",defVal:0},{name:"anchorPointDirection",dispName:"Anchor Direction",type:"bool",defVal:!0},{name:"snapToPoint",dispName:"Snap to Point",type:"bool",defVal:!1},{name:"dashPattern",dispName:"Dash Pattern",type:"numbers",defVal:""},{name:"fixDash",dispName:"Fixed Dash",type:"bool",defVal:!1},{name:"flowAnimationDuration",dispName:"Flow Duration",type:"int",defVal:500,isVisible:function(k){return"1"==mxUtils.getValue(k.style,"flowAnimation",null)}},{name:"flowAnimationTimingFunction",dispName:"Flow Timing",type:"enum",defVal:"linear",enumList:[{val:"linear",dispName:"Linear"},{val:"ease",dispName:"Ease"},{val:"ease-in",dispName:"Ease-in"},{val:"ease-out",dispName:"Ease-out"},{val:"ease-in-out",dispName:"Ease-in-out"}],isVisible:function(k){return"1"==mxUtils.getValue(k.style,"flowAnimation",null)}},{name:"flowAnimationDirection",dispName:"Flow Direction",type:"enum",defVal:"normal",enumList:[{val:"normal",dispName:"Normal"},{val:"reverse",dispName:"Reverse"},{val:"alternate",dispName:"Alternate"},{val:"alternate-reverse",dispName:"Alternate-Reverse"}],isVisible:function(k){return"1"==mxUtils.getValue(k.style,"flowAnimation",null)}},{name:"editable",dispName:"Editable",type:"bool",defVal:!0},{name:"metaEdit",dispName:"Edit Dialog",type:"bool",defVal:!1},{name:"backgroundOutline",dispName:"Background Outline",type:"bool",defVal:!1},{name:"bendable",dispName:"Bendable",type:"bool",defVal:!0},{name:"movable",dispName:"Movable",type:"bool",defVal:!0},{name:"cloneable",dispName:"Cloneable",-type:"bool",defVal:!0},{name:"deletable",dispName:"Deletable",type:"bool",defVal:!0},{name:"noJump",dispName:"No Jumps",type:"bool",defVal:!1},{name:"ignoreEdge",dispName:"Ignore Edge",type:"bool",defVal:!1},{name:"orthogonalLoop",dispName:"Loop Routing",type:"bool",defVal:!1},{name:"orthogonal",dispName:"Orthogonal",type:"bool",defVal:!1}].concat(Editor.commonProperties);Editor.commonVertexProperties=[{name:"colspan",dispName:"Colspan",type:"int",min:1,defVal:1,isVisible:function(k,v){v=v.editorUi.editor.graph;-return 1==k.vertices.length&&0==k.edges.length&&v.isTableCell(k.vertices[0])}},{name:"rowspan",dispName:"Rowspan",type:"int",min:1,defVal:1,isVisible:function(k,v){v=v.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&v.isTableCell(k.vertices[0])}},{type:"separator"},{name:"resizeLastRow",dispName:"Resize Last Row",type:"bool",getDefaultValue:function(k,v){k=v.editorUi.editor.graph.getCellStyle(1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null);return"1"==mxUtils.getValue(k,-"resizeLastRow","0")},isVisible:function(k,v){v=v.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&v.isTable(k.vertices[0])}},{name:"resizeLast",dispName:"Resize Last Column",type:"bool",getDefaultValue:function(k,v){k=v.editorUi.editor.graph.getCellStyle(1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null);return"1"==mxUtils.getValue(k,"resizeLast","0")},isVisible:function(k,v){v=v.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&v.isTable(k.vertices[0])}},+type:"bool",defVal:!0},{name:"deletable",dispName:"Deletable",type:"bool",defVal:!0},{name:"noJump",dispName:"No Jumps",type:"bool",defVal:!1},{name:"ignoreEdge",dispName:"Ignore Edge",type:"bool",defVal:!1},{name:"orthogonalLoop",dispName:"Loop Routing",type:"bool",defVal:!1},{name:"orthogonal",dispName:"Orthogonal",type:"bool",defVal:!1}].concat(Editor.commonProperties);Editor.commonVertexProperties=[{name:"colspan",dispName:"Colspan",type:"int",min:1,defVal:1,isVisible:function(k,u){u=u.editorUi.editor.graph;+return 1==k.vertices.length&&0==k.edges.length&&u.isTableCell(k.vertices[0])}},{name:"rowspan",dispName:"Rowspan",type:"int",min:1,defVal:1,isVisible:function(k,u){u=u.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&u.isTableCell(k.vertices[0])}},{type:"separator"},{name:"resizeLastRow",dispName:"Resize Last Row",type:"bool",getDefaultValue:function(k,u){k=u.editorUi.editor.graph.getCellStyle(1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null);return"1"==mxUtils.getValue(k,+"resizeLastRow","0")},isVisible:function(k,u){u=u.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&u.isTable(k.vertices[0])}},{name:"resizeLast",dispName:"Resize Last Column",type:"bool",getDefaultValue:function(k,u){k=u.editorUi.editor.graph.getCellStyle(1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null);return"1"==mxUtils.getValue(k,"resizeLast","0")},isVisible:function(k,u){u=u.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&u.isTable(k.vertices[0])}},{name:"fillOpacity",dispName:"Fill Opacity",type:"int",min:0,max:100,defVal:100},{name:"strokeOpacity",dispName:"Stroke Opacity",type:"int",min:0,max:100,defVal:100},{name:"overflow",dispName:"Text Overflow",defVal:"visible",type:"enum",enumList:[{val:"visible",dispName:"Visible"},{val:"hidden",dispName:"Hidden"},{val:"block",dispName:"Block"},{val:"fill",dispName:"Fill"},{val:"width",dispName:"Width"}]},{name:"shapeInsideShape",dispName:"Text Flow Shape",type:"enum",defVal:null,enumList:[{val:null,-dispName:"Automatic"},{val:"dataStorage",dispName:"Data Storage"},{val:"ellipse",dispName:"Ellipse"},{val:"hexagon",dispName:"Hexagon"},{val:"or",dispName:"Or"},{val:"parallelogram",dispName:"Parallelogram"},{val:"rhombus",dispName:"Rhombus"},{val:"step",dispName:"Step"},{val:"trapezoid",dispName:"Trapezoid"},{val:"triangle",dispName:"Triangle"},{val:"xor",dispName:"Xor"}],onChange:function(k,v){if(null!=v&&""!=v){v=k.getSelectionCells();for(var H=[],P=0;P<v.length;P++)k.model.isVertex(v[P])&&H.push(v[P]);+dispName:"Automatic"},{val:"dataStorage",dispName:"Data Storage"},{val:"ellipse",dispName:"Ellipse"},{val:"hexagon",dispName:"Hexagon"},{val:"or",dispName:"Or"},{val:"parallelogram",dispName:"Parallelogram"},{val:"rhombus",dispName:"Rhombus"},{val:"step",dispName:"Step"},{val:"trapezoid",dispName:"Trapezoid"},{val:"triangle",dispName:"Triangle"},{val:"xor",dispName:"Xor"}],onChange:function(k,u){if(null!=u&&""!=u){u=k.getSelectionCells();for(var H=[],P=0;P<u.length;P++)k.model.isVertex(u[P])&&H.push(u[P]);0<H.length&&k.setCellStyles("shapeInside","1",H)}}},{name:"shapeInsidePadding",dispName:"Text Flow Padding",type:"float",min:0,defVal:2},{name:"noLabel",dispName:"Hide Label",type:"bool",defVal:!1},{name:"direction",dispName:"Direction",type:"enum",defVal:"east",enumList:[{val:"north",dispName:"North"},{val:"east",dispName:"East"},{val:"south",dispName:"South"},{val:"west",dispName:"West"}]},{name:"portConstraint",dispName:"Constraint",type:"enum",defVal:"none",enumList:[{val:"none",dispName:"None"},-{val:"north",dispName:"North"},{val:"east",dispName:"East"},{val:"south",dispName:"South"},{val:"west",dispName:"West"},{val:"northsouth",dispName:"North + South"},{val:"eastwest",dispName:"East + West"}]},{name:"portConstraintRotation",dispName:"Rotate Constraint",type:"bool",defVal:!1},{name:"connectable",dispName:"Connectable",type:"bool",getDefaultValue:function(k,v){return v.editorUi.editor.graph.isCellConnectable(0<k.vertices.length&&0==k.edges.length?k.vertices[0]:null)},isVisible:function(k,-v){return 0<k.vertices.length&&0==k.edges.length}},{name:"allowArrows",dispName:"Allow Arrows",type:"bool",defVal:!0},{name:"snapToPoint",dispName:"Snap to Point",type:"bool",defVal:!1},{name:"outlineConnect",dispName:"Outline Connect",defVal:"1",type:"enum",enumList:[{val:"1",dispName:"Default"},{val:"0",dispName:"Delayed"},{val:"2",dispName:"Always"},{val:"3",dispName:"Never"}]},{name:"perimeter",dispName:"Perimeter",defVal:"none",type:"enum",enumList:[{val:"none",dispName:"None"},{val:"rectanglePerimeter",+{val:"north",dispName:"North"},{val:"east",dispName:"East"},{val:"south",dispName:"South"},{val:"west",dispName:"West"},{val:"northsouth",dispName:"North + South"},{val:"eastwest",dispName:"East + West"}]},{name:"portConstraintRotation",dispName:"Rotate Constraint",type:"bool",defVal:!1},{name:"connectable",dispName:"Connectable",type:"bool",getDefaultValue:function(k,u){return u.editorUi.editor.graph.isCellConnectable(0<k.vertices.length&&0==k.edges.length?k.vertices[0]:null)},isVisible:function(k,+u){return 0<k.vertices.length&&0==k.edges.length}},{name:"allowArrows",dispName:"Allow Arrows",type:"bool",defVal:!0},{name:"snapToPoint",dispName:"Snap to Point",type:"bool",defVal:!1},{name:"outlineConnect",dispName:"Outline Connect",defVal:"1",type:"enum",enumList:[{val:"1",dispName:"Default"},{val:"0",dispName:"Delayed"},{val:"2",dispName:"Always"},{val:"3",dispName:"Never"}]},{name:"perimeter",dispName:"Perimeter",defVal:"none",type:"enum",enumList:[{val:"none",dispName:"None"},{val:"rectanglePerimeter",dispName:"Rectangle"},{val:"ellipsePerimeter",dispName:"Ellipse"},{val:"rhombusPerimeter",dispName:"Rhombus"},{val:"trianglePerimeter",dispName:"Triangle"},{val:"hexagonPerimeter2",dispName:"Hexagon"},{val:"lifelinePerimeter",dispName:"Lifeline"},{val:"orthogonalPerimeter",dispName:"Orthogonal"},{val:"backbonePerimeter",dispName:"Backbone"},{val:"calloutPerimeter",dispName:"Callout"},{val:"parallelogramPerimeter",dispName:"Parallelogram"},{val:"trapezoidPerimeter",dispName:"Trapezoid"},{val:"stepPerimeter",-dispName:"Step"},{val:"centerPerimeter",dispName:"Center"}]},{name:"fixDash",dispName:"Fixed Dash",type:"bool",defVal:!1},{name:"container",dispName:"Container",type:"bool",getDefaultValue:function(k,v){k=0<k.vertices.length&&0==k.edges.length?k.vertices[0]:null;v=v.editorUi.editor.graph;return null!=k&&v.isSwimlane(k)},isVisible:function(k,v){return 0<k.vertices.length&&0==k.edges.length}},{name:"containerType",dispName:"Container Type",type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},-{val:"tree",dispName:"Tree"}],isVisible:function(k,v){var H=1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null;v=v.editorUi.editor.graph;return null!=H&&(v.isSwimlane(H)||v.isContainer(H)||0<v.model.getChildCount(H)||null!=k.style.containerType)}},{name:"dropTarget",dispName:"Drop Target",type:"bool",getDefaultValue:function(k,v){k=1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null;v=v.editorUi.editor.graph;return null!=k&&(v.isSwimlane(k)||0<v.model.getChildCount(k))},isVisible:function(k,-v){return 1==k.vertices.length&&0==k.edges.length}},{name:"collapsible",dispName:"Collapsible",type:"bool",getDefaultValue:function(k,v){var H=1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null;v=v.editorUi.editor.graph;return null!=H&&(v.isContainer(H)&&"0"!=k.style.collapsible||!v.isContainer(H)&&"1"==k.style.collapsible)},isVisible:function(k,v){return 1==k.vertices.length&&0==k.edges.length}},{name:"foldingIconSize",dispName:"Folding Icon Size",type:"int",min:1,getDefaultValue:function(k,-v){return v.editorUi.editor.graph.expandedImage.width},isVisible:function(k,v){v=v.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&v.isCellFoldable(k.vertices[0])}},{name:"recursiveResize",dispName:"Resize Children",type:"bool",defVal:!0,isVisible:function(k,v){return 1==k.vertices.length&&0==k.edges.length&&!v.editorUi.editor.graph.isSwimlane(k.vertices[0])&&null==mxUtils.getValue(k.style,"childLayout",null)}},{name:"expand",dispName:"Expand",type:"bool",defVal:!0},{name:"contract",-dispName:"Contract",type:"bool",defVal:!1},{name:"selectParentFirst",dispName:"Select Parent First",type:"bool",defVal:!1,isVisible:function(k,v){if(1!=k.vertices.length||0<k.edges.length)return!1;k=k.vertices[0];v=v.editorUi.editor.graph;return v.isSwimlane(k)||0<v.model.getChildCount(k)}},{name:"part",dispName:"Part",type:"bool",defVal:!1,isVisible:function(k,v){v=v.editorUi.editor.graph.model;return 0<k.vertices.length?v.isVertex(v.getParent(k.vertices[0])):!1}},{name:"editable",dispName:"Editable",-type:"bool",defVal:!0},{name:"editIcon",dispName:"Edit Icon",type:"bool",defVal:!1},{name:"moveIcon",dispName:"Move Icon",type:"bool",defVal:!1,getDefaultValue:function(k,v){k=1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null;v=v.editorUi.editor.graph;return null!=k&&null!=v.isTransparentBounds&&v.isTransparentBounds(k)}},{name:"connectIcon",dispName:"Connect Icon",type:"bool",getDefaultValue:function(k,v){return!0===Editor.showConnectHandle}},{name:"lockedGroup",dispName:"Locked Group",-type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},{val:"0",dispName:"Unlocked"},{val:"1",dispName:"Locked"}],isVisible:function(k,v){return 0<k.vertices.length&&0==k.edges.length}},{name:"lockedGroupIcon",dispName:"Lock Icon",type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},{val:"0",dispName:"Disabled"},{val:"1",dispName:"Visible"}],isVisible:function(k,v){return 0<k.vertices.length&&0==k.edges.length}},{name:"metaEdit",dispName:"Edit Dialog",type:"bool",defVal:!1},{name:"backgroundOutline",-dispName:"Background Outline",type:"bool",defVal:!1},{name:"movable",dispName:"Movable",type:"bool",defVal:!0},{name:"movableLabel",dispName:"Movable Label",type:"bool",defVal:!1,isVisible:function(k,v){k=0<k.vertices.length?v.editorUi.editor.graph.getCellGeometry(k.vertices[0]):null;return null!=k&&!k.relative}},{name:"autosize",dispName:"Autosize",type:"bool",defVal:!1},{name:"autosizeGrid",dispName:"Autosize Grid",type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},{val:"1",dispName:"Enabled"},-{val:"0",dispName:"Disabled"}],isVisible:function(k,v){return 0<k.vertices.length&&v.editorUi.editor.graph.isAutoSizeCell(k.vertices[0])}},{name:"fixedWidth",dispName:"Fixed Width",type:"bool",defVal:!1},{name:"resizable",dispName:"Resizable",type:"bool",defVal:!0},{name:"resizeWidth",dispName:"Resize Width",type:"bool",defVal:!1},{name:"resizeHeight",dispName:"Resize Height",type:"bool",defVal:!1},{name:"rotatable",dispName:"Rotatable",type:"bool",defVal:!0},{name:"cloneable",dispName:"Cloneable",-type:"bool",defVal:!0},{name:"deletable",dispName:"Deletable",type:"bool",defVal:!0},{name:"treeFolding",dispName:"Tree Folding",type:"bool",defVal:!1},{name:"treeMoving",dispName:"Tree Moving",type:"bool",defVal:!1},{name:"pointerEvents",dispName:"Pointer Events",type:"bool",defVal:!0,isVisible:function(k,v){var H=mxUtils.getValue(k.style,mxConstants.STYLE_FILLCOLOR,null);return!mxShape.forceFilledPointerEvents||v.editorUi.editor.graph.isSwimlane(k.vertices[0])||null==H||H==mxConstants.NONE||0==-mxUtils.getValue(k.style,mxConstants.STYLE_FILL_OPACITY,100)||0==mxUtils.getValue(k.style,mxConstants.STYLE_OPACITY,100)||null!=k.style.pointerEvents}},{name:"moveCells",dispName:"Move Cells on Fold",type:"bool",defVal:!1,isVisible:function(k,v){return 0<k.vertices.length&&v.editorUi.editor.graph.isContainer(k.vertices[0])}},{name:"expandToFront",dispName:"Expand to Front",type:"bool",defVal:!1,isVisible:function(k,v){return 0<k.vertices.length&&v.editorUi.editor.graph.isContainer(k.vertices[0])}},+dispName:"Step"},{val:"centerPerimeter",dispName:"Center"}]},{name:"fixDash",dispName:"Fixed Dash",type:"bool",defVal:!1},{name:"container",dispName:"Container",type:"bool",getDefaultValue:function(k,u){k=0<k.vertices.length&&0==k.edges.length?k.vertices[0]:null;u=u.editorUi.editor.graph;return null!=k&&u.isSwimlane(k)},isVisible:function(k,u){return 0<k.vertices.length&&0==k.edges.length}},{name:"containerType",dispName:"Container Type",type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},+{val:"tree",dispName:"Tree"}],isVisible:function(k,u){var H=1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null;u=u.editorUi.editor.graph;return null!=H&&(u.isSwimlane(H)||u.isContainer(H)||0<u.model.getChildCount(H)||null!=k.style.containerType)}},{name:"dropTarget",dispName:"Drop Target",type:"bool",getDefaultValue:function(k,u){k=1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null;u=u.editorUi.editor.graph;return null!=k&&(u.isSwimlane(k)||0<u.model.getChildCount(k))},isVisible:function(k,+u){return 1==k.vertices.length&&0==k.edges.length}},{name:"collapsible",dispName:"Collapsible",type:"bool",getDefaultValue:function(k,u){var H=1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null;u=u.editorUi.editor.graph;return null!=H&&(u.isContainer(H)&&"0"!=k.style.collapsible||!u.isContainer(H)&&"1"==k.style.collapsible)},isVisible:function(k,u){return 1==k.vertices.length&&0==k.edges.length}},{name:"foldingIconSize",dispName:"Folding Icon Size",type:"int",min:1,getDefaultValue:function(k,+u){return u.editorUi.editor.graph.expandedImage.width},isVisible:function(k,u){u=u.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&u.isCellFoldable(k.vertices[0])}},{name:"recursiveResize",dispName:"Resize Children",type:"bool",defVal:!0,isVisible:function(k,u){return 1==k.vertices.length&&0==k.edges.length&&!u.editorUi.editor.graph.isSwimlane(k.vertices[0])&&null==mxUtils.getValue(k.style,"childLayout",null)}},{name:"expand",dispName:"Expand",type:"bool",defVal:!0},{name:"contract",+dispName:"Contract",type:"bool",defVal:!1},{name:"selectParentFirst",dispName:"Select Parent First",type:"bool",defVal:!1,isVisible:function(k,u){if(1!=k.vertices.length||0<k.edges.length)return!1;k=k.vertices[0];u=u.editorUi.editor.graph;return u.isSwimlane(k)||0<u.model.getChildCount(k)}},{name:"part",dispName:"Part",type:"bool",defVal:!1,isVisible:function(k,u){u=u.editorUi.editor.graph.model;return 0<k.vertices.length?u.isVertex(u.getParent(k.vertices[0])):!1}},{name:"editable",dispName:"Editable",+type:"bool",defVal:!0},{name:"editIcon",dispName:"Edit Icon",type:"bool",defVal:!1},{name:"moveIcon",dispName:"Move Icon",type:"bool",defVal:!1,getDefaultValue:function(k,u){k=1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null;u=u.editorUi.editor.graph;return null!=k&&null!=u.isTransparentBounds&&u.isTransparentBounds(k)}},{name:"connectIcon",dispName:"Connect Icon",type:"bool",getDefaultValue:function(k,u){return!0===Editor.showConnectHandle}},{name:"lockedGroup",dispName:"Locked Group",+type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},{val:"0",dispName:"Unlocked"},{val:"1",dispName:"Locked"}],isVisible:function(k,u){return 0<k.vertices.length&&0==k.edges.length}},{name:"lockedGroupIcon",dispName:"Lock Icon",type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},{val:"0",dispName:"Disabled"},{val:"1",dispName:"Visible"}],isVisible:function(k,u){return 0<k.vertices.length&&0==k.edges.length}},{name:"metaEdit",dispName:"Edit Dialog",type:"bool",defVal:!1},{name:"backgroundOutline",+dispName:"Background Outline",type:"bool",defVal:!1},{name:"movable",dispName:"Movable",type:"bool",defVal:!0},{name:"movableLabel",dispName:"Movable Label",type:"bool",defVal:!1,isVisible:function(k,u){k=0<k.vertices.length?u.editorUi.editor.graph.getCellGeometry(k.vertices[0]):null;return null!=k&&!k.relative}},{name:"autosize",dispName:"Autosize",type:"bool",defVal:!1},{name:"autosizeGrid",dispName:"Autosize Grid",type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},{val:"1",dispName:"Enabled"},+{val:"0",dispName:"Disabled"}],isVisible:function(k,u){return 0<k.vertices.length&&u.editorUi.editor.graph.isAutoSizeCell(k.vertices[0])}},{name:"fixedWidth",dispName:"Fixed Width",type:"bool",defVal:!1},{name:"resizable",dispName:"Resizable",type:"bool",defVal:!0},{name:"resizeWidth",dispName:"Resize Width",type:"bool",defVal:!1},{name:"resizeHeight",dispName:"Resize Height",type:"bool",defVal:!1},{name:"rotatable",dispName:"Rotatable",type:"bool",defVal:!0},{name:"cloneable",dispName:"Cloneable",+type:"bool",defVal:!0},{name:"deletable",dispName:"Deletable",type:"bool",defVal:!0},{name:"treeFolding",dispName:"Tree Folding",type:"bool",defVal:!1},{name:"treeMoving",dispName:"Tree Moving",type:"bool",defVal:!1},{name:"pointerEvents",dispName:"Pointer Events",type:"bool",defVal:!0,isVisible:function(k,u){var H=mxUtils.getValue(k.style,mxConstants.STYLE_FILLCOLOR,null);return!mxShape.forceFilledPointerEvents||u.editorUi.editor.graph.isSwimlane(k.vertices[0])||null==H||H==mxConstants.NONE||0==+mxUtils.getValue(k.style,mxConstants.STYLE_FILL_OPACITY,100)||0==mxUtils.getValue(k.style,mxConstants.STYLE_OPACITY,100)||null!=k.style.pointerEvents}},{name:"moveCells",dispName:"Move Cells on Fold",type:"bool",defVal:!1,isVisible:function(k,u){return 0<k.vertices.length&&u.editorUi.editor.graph.isContainer(k.vertices[0])}},{name:"expandToFront",dispName:"Expand to Front",type:"bool",defVal:!1,isVisible:function(k,u){return 0<k.vertices.length&&u.editorUi.editor.graph.isContainer(k.vertices[0])}},Editor.createInheritProperty("Inherit Font Family",mxConstants.STYLE_FONTFAMILY),Editor.createInheritProperty("Inherit Font Size",mxConstants.STYLE_FONTSIZE),Editor.createInheritProperty("Inherit Font Color",mxConstants.STYLE_FONTCOLOR),Editor.createInheritProperty("Inherit Fill Color",mxConstants.STYLE_FILLCOLOR),Editor.createInheritProperty("Inherit Stroke Color",mxConstants.STYLE_STROKECOLOR)].concat(Editor.commonProperties);Editor.defaultCsvValue='##\n## Example CSV import. Use ## for comments and # for configuration. Paste CSV below.\n## The following names are reserved and should not be used (or ignored):\n## id, tooltip, placeholder(s), link and label (see below)\n##\n#\n## Node label with placeholders and HTML.\n## Default is \'%name_of_first_column%\'.\n#\n# label: %name%<br><i style="color:gray;">%position%</i><br><a href="mailto:%email%">Email</a>\n#\n## Node style (placeholders are replaced once).\n## Default is the current style for nodes.\n#\n# style: label;image=%image%;whiteSpace=wrap;html=1;rounded=1;fillColor=%fill%;strokeColor=%stroke%;\n#\n## Parent style for nodes with child nodes (placeholders are replaced once).\n#\n# parentstyle: swimlane;whiteSpace=wrap;html=1;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeLast=0;collapsible=1;\n#\n## Style to be used for objects not in the CSV. If this is - then such objects are ignored,\n## else they are created using this as their style, eg. whiteSpace=wrap;html=1;\n#\n# unknownStyle: -\n#\n## Optional column name that contains a reference to a named style in styles.\n## Default is the current style for nodes.\n#\n# stylename: -\n#\n## JSON for named styles of the form {"name": "style", "name": "style"} where style is a cell style with\n## placeholders that are replaced once.\n#\n# styles: -\n#\n## JSON for variables in styles of the form {"name": "value", "name": "value"} where name is a string\n## that will replace a placeholder in a style.\n#\n# vars: -\n#\n## Optional column name that contains a reference to a named label in labels.\n## Default is the current label.\n#\n# labelname: -\n#\n## JSON for named labels of the form {"name": "label", "name": "label"} where label is a cell label with\n## placeholders.\n#\n# labels: -\n#\n## Uses the given column name as the identity for cells (updates existing cells).\n## Default is no identity (empty value or -).\n#\n# identity: -\n#\n## Uses the given column name as the parent reference for cells. Default is no parent (empty or -).\n## The identity above is used for resolving the reference so it must be specified.\n#\n# parent: -\n#\n## Adds a prefix to the identity of cells to make sure they do not collide with existing cells (whose\n## IDs are numbers from 0..n, sometimes with a GUID prefix in the context of realtime collaboration).\n## Default is csvimport-.\n#\n# namespace: csvimport-\n#\n## Connections between rows ("from": source colum, "to": target column).\n## Label, style and invert are optional. Defaults are \'\', current style and false.\n## If placeholders are used in the style, they are replaced with data from the source.\n## An optional placeholders can be set to target to use data from the target instead.\n## In addition to label, an optional fromlabel and tolabel can be used to name the column\n## that contains the text for the label in the edges source or target (invert ignored).\n## In addition to those, an optional source and targetlabel can be used to specify a label\n## that contains placeholders referencing the respective columns in the source or target row.\n## The label is created in the form fromlabel + sourcelabel + label + tolabel + targetlabel.\n## Additional labels can be added by using an optional labels array with entries of the\n## form {"label": string, "x": number, "y": number, "dx": number, "dy": number} where\n## x is from -1 to 1 along the edge, y is orthogonal, and dx/dy are offsets in pixels.\n## An optional placeholders with the string value "source" or "target" can be specified\n## to replace placeholders in the additional label with data from the source or target.\n## An optional data object can be specified to define the metadata for the connector.\n## The target column may contain a comma-separated list of values.\n## Multiple connect entries are allowed.\n#\n# connect: {"from": "manager", "to": "name", "invert": true, "label": "manages", \\\n# "style": "curved=1;endArrow=blockThin;endFill=1;fontSize=11;"}\n# connect: {"from": "refs", "to": "id", "style": "curved=1;fontSize=11;"}\n#\n## Node x-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# left: \n#\n## Node y-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# top: \n#\n## Node width. Possible value is a number (in px), auto or an @ sign followed by a column\n## name that contains the value for the width. Default is auto.\n#\n# width: auto\n#\n## Node height. Possible value is a number (in px), auto, width or an @ sign followed by a column\n## name that contains the value for the height. Default is auto.\n#\n# height: auto\n#\n## Collapsed state for vertices. Possible values are true or false. Default is false.\n#\n# collapsed: false\n#\n## Padding for autosize. Default is 0.\n#\n# padding: -12\n#\n## Comma-separated list of ignored columns for metadata. (These can be\n## used for connections and styles but will not be added as metadata.)\n#\n# ignore: id,image,fill,stroke,refs,manager\n#\n## Column to be renamed to link attribute (used as link).\n#\n# link: url\n#\n## Spacing between nodes. Default is 40.\n#\n# nodespacing: 40\n#\n## Spacing between levels of hierarchical layouts. Default is 100.\n#\n# levelspacing: 100\n#\n## Spacing between parallel edges. Default is 40. Use 0 to disable.\n#\n# edgespacing: 40\n#\n## Name or JSON of layout. Possible values are auto, none, verticaltree, horizontaltree,\n## verticalflow, horizontalflow, organic, circle, orgchart, the ELK shorthands\n## elkRadial, elkOrganic, elkStress, libavoid (orthogonal edge routing), parallels\n## (spread overlapping parallel edges), or a JSON string as used in Layout, Apply.\n## Default is auto.\n#\n# layout: auto\n#\n## ---- CSV below this line. First line are column names. ----\nname,position,id,location,manager,email,fill,stroke,refs,url,image\nTessa Miller,CFO,emi,Office 1,,[email protected],default,#6c8ebf,,https://app.diagrams.net,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-3-128.png\nEdward Morrison,Brand Manager,emo,Office 2,Tessa Miller,[email protected],default,#82b366,,https://app.diagrams.net,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-10-3-128.png\nAlison Donovan,System Admin,rdo,Office 3,Tessa Miller,[email protected],default,#82b366,"emo,tva",https://app.diagrams.net,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-2-128.png\nEvan Valet,HR Director,tva,Office 4,Tessa Miller,[email protected],default,#82b366,,https://app.diagrams.net,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-9-2-128.png\n';-Editor.canvasSupported=!1;(function(){try{var k=document.createElement("canvas");Editor.canvasSupported=!(!k.getContext||!k.getContext("2d"))}catch(v){}})();Editor.useCanvasForExport=!1;(function(){try{var k=document.createElement("canvas"),v=new Image;v.onload=function(){try{k.getContext("2d").drawImage(v,0,0);var H=k.toDataURL("image/png");Editor.useCanvasForExport=null!=H&&6<H.length}catch(P){}};v.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(H){}})();-Editor.jpgSupported=!1;Editor.webpSupported=!1;(function(){try{var k=document.createElement("canvas");k.width=k.height=1;var v=k.toDataURL("image/jpeg");Editor.jpgSupported=null!==v.match("image/jpeg");v=k.toDataURL("image/webp");Editor.webpSupported=null!==v.match("image/webp")}catch(H){}})();Editor.loadCompatibleCss=function(k){mxUtils.lightDarkColorSupported||mxUtils.get(k||"styles/grapheditor.css",mxUtils.bind(this,function(v){if(200<=v.getStatus()&&299>=v.getStatus()){var H=document.createElement("style");-H.type="text/css";var P=H.appendChild,T=document,W=T.createTextNode;v=v.getText().replace(/light-dark\(\s*(var\([^\)]+\)|[^,]+)\s*,\s*(var\([^\)]+\)|[^)]+)\s*\)/g,"$1");try{CSS.supports("selector(:has(*))")||(v=v.replace(/:has\(/g,":not(")+"\n.geFormatTitleContainer { overflow: hidden !important; }\n.geRuler+.geRuler { margin-top: 14px !important; }\n.geDiagramContainer { margin: 0 !important; }")}catch(ha){}P.call(H,W.call(T,v));document.head.appendChild(H)}}))};Editor.replacePlaceholders=function(k,-v){var H=[];if(null!=k&&null!=v){for(var P=RegExp("{([^{}\"'=;]+)}","g"),T,W=0;T=P.exec(k);){var ha=T[0];if(2<ha.length){var X=v(ha.substring(1,ha.length-1)),ea=ha;null!=X&&(ea=X);H.push(k.substring(W,T.index)+ea);W=T.index+ha.length}}H.push(k.substring(W))}return H.join("")};Editor.executeSimpleJsonPath=function(k,v){v=v.replace(/^\$\.?/,"").split(".");v=$jscomp.makeIterator(v);for(var H=v.next();!H.done;H=v.next()){var P=H.value;if(!k)return[];if(H=P.match(/([^\[]+)\[(\d+)\]/))if(P=H[1],H=parseInt(H[2]),-k=k[P],Array.isArray(k)&&H<k.length)k=k[H];else return[];else k=k[P]}return void 0!==k?[k]:[]};Editor.createRoughCanvas=function(k){var v=rough.canvas({getContext:function(){return k}});v.draw=function(H){var P=H.sets||[];H=H.options||this.getDefaultOptions();for(var T=0;T<P.length;T++){var W=P[T];switch(W.type){case "path":null!=H.stroke&&this._drawToContext(k,W,H);break;case "fillPath":this._drawToContext(k,W,H);break;case "fillSketch":this.fillSketch(k,W,H)}}};v.fillSketch=function(H,P,T){var W=+Editor.canvasSupported=!1;(function(){try{var k=document.createElement("canvas");Editor.canvasSupported=!(!k.getContext||!k.getContext("2d"))}catch(u){}})();Editor.useCanvasForExport=!1;(function(){try{var k=document.createElement("canvas"),u=new Image;u.onload=function(){try{k.getContext("2d").drawImage(u,0,0);var H=k.toDataURL("image/png");Editor.useCanvasForExport=null!=H&&6<H.length}catch(P){}};u.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(H){}})();+Editor.jpgSupported=!1;Editor.webpSupported=!1;(function(){try{var k=document.createElement("canvas");k.width=k.height=1;var u=k.toDataURL("image/jpeg");Editor.jpgSupported=null!==u.match("image/jpeg");u=k.toDataURL("image/webp");Editor.webpSupported=null!==u.match("image/webp")}catch(H){}})();Editor.loadCompatibleCss=function(k){mxUtils.lightDarkColorSupported||mxUtils.get(k||"styles/grapheditor.css",mxUtils.bind(this,function(u){if(200<=u.getStatus()&&299>=u.getStatus()){var H=document.createElement("style");+H.type="text/css";var P=H.appendChild,T=document,W=T.createTextNode;u=u.getText().replace(/light-dark\(\s*(var\([^\)]+\)|[^,]+)\s*,\s*(var\([^\)]+\)|[^)]+)\s*\)/g,"$1");try{CSS.supports("selector(:has(*))")||(u=u.replace(/:has\(/g,":not(")+"\n.geFormatTitleContainer { overflow: hidden !important; }\n.geRuler+.geRuler { margin-top: 14px !important; }\n.geDiagramContainer { margin: 0 !important; }")}catch(ha){}P.call(H,W.call(T,u));document.head.appendChild(H)}}))};Editor.replacePlaceholders=function(k,+u){var H=[];if(null!=k&&null!=u){for(var P=RegExp("{([^{}\"'=;]+)}","g"),T,W=0;T=P.exec(k);){var ha=T[0];if(2<ha.length){var X=u(ha.substring(1,ha.length-1)),ea=ha;null!=X&&(ea=X);H.push(k.substring(W,T.index)+ea);W=T.index+ha.length}}H.push(k.substring(W))}return H.join("")};Editor.executeSimpleJsonPath=function(k,u){u=u.replace(/^\$\.?/,"").split(".");u=$jscomp.makeIterator(u);for(var H=u.next();!H.done;H=u.next()){var P=H.value;if(!k)return[];if(H=P.match(/([^\[]+)\[(\d+)\]/))if(P=H[1],H=parseInt(H[2]),+k=k[P],Array.isArray(k)&&H<k.length)k=k[H];else return[];else k=k[P]}return void 0!==k?[k]:[]};Editor.createRoughCanvas=function(k){var u=rough.canvas({getContext:function(){return k}});u.draw=function(H){var P=H.sets||[];H=H.options||this.getDefaultOptions();for(var T=0;T<P.length;T++){var W=P[T];switch(W.type){case "path":null!=H.stroke&&this._drawToContext(k,W,H);break;case "fillPath":this._drawToContext(k,W,H);break;case "fillSketch":this.fillSketch(k,W,H)}}};u.fillSketch=function(H,P,T){var W=k.state.strokeColor,ha=k.state.strokeWidth,X=k.state.strokeAlpha,ea=k.state.dashed,oa=T.fillWeight;0>oa&&(oa=T.strokeWidth/2);k.setStrokeAlpha(k.state.fillAlpha);k.setStrokeColor(T.fill||"");k.setStrokeWidth(oa);k.setDashed(!1);oa=null!=H.root?H.root.lastChild:null;this._drawToContext(H,P,T);null!=H.root&&null!=H.root.lastChild&&H.root.lastChild!=oa&&"path"==H.root.lastChild.nodeName&&H.root.lastChild.setAttribute("data-rough-fill","1");k.setDashed(ea);k.setStrokeWidth(ha);k.setStrokeColor(W);k.setStrokeAlpha(X)};-v._drawToContext=function(H,P,T){H.begin();for(var W=0;W<P.ops.length;W++){var ha=P.ops[W],X=ha.data;switch(ha.op){case "move":H.moveTo(X[0],X[1]);break;case "bcurveTo":H.curveTo(X[0],X[1],X[2],X[3],X[4],X[5]);break;case "lineTo":H.lineTo(X[0],X[1])}}H.end();"fillPath"===P.type&&T.filled?H.fill():H.stroke()};return v};(function(){function k(W,ha,X){this.canvas=W;this.rc=ha;this.shape=X;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=+u._drawToContext=function(H,P,T){H.begin();for(var W=0;W<P.ops.length;W++){var ha=P.ops[W],X=ha.data;switch(ha.op){case "move":H.moveTo(X[0],X[1]);break;case "bcurveTo":H.curveTo(X[0],X[1],X[2],X[3],X[4],X[5]);break;case "lineTo":H.lineTo(X[0],X[1])}}H.end();"fillPath"===P.type&&T.filled?H.fill():H.stroke()};return u};(function(){function k(W,ha,X){this.canvas=W;this.rc=ha;this.shape=X;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,k.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,k.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,k.prototype.rect);this.originalRoundrect=this.canvas.roundrect;this.canvas.roundrect=mxUtils.bind(this,k.prototype.roundrect);this.originalEllipse=this.canvas.ellipse;this.canvas.ellipse=mxUtils.bind(this,k.prototype.ellipse);this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,k.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,k.prototype.moveTo);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,k.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,k.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,k.prototype.arcTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,k.prototype.close);this.originalFill=this.canvas.fill;this.canvas.fill=mxUtils.bind(this,k.prototype.fill);this.originalStroke=this.canvas.stroke;this.canvas.stroke=mxUtils.bind(this,k.prototype.stroke);this.originalFillAndStroke=this.canvas.fillAndStroke;this.canvas.fillAndStroke=mxUtils.bind(this,k.prototype.fillAndStroke);this.path=[];this.passThrough=!1}k.prototype.moveOp="M";k.prototype.lineOp="L";k.prototype.quadOp="Q";k.prototype.curveOp="C";k.prototype.closeOp="Z";k.prototype.getStyle=function(W,ha){var X=1;if(null!=this.shape.state){var ea=@@ -3839,119 +3839,120 @@ this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,W,ha,X,!0)))};k.prototype.roundrect=function(W,ha,X,ea,oa,la){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(W+oa,ha),this.lineTo(W+X-oa,ha),this.quadTo(W+X,ha,W+X,ha+la),this.lineTo(W+X,ha+ea-la),this.quadTo(W+X,ha+ea,W+X-oa,ha+ea),this.lineTo(W+oa,ha+ea),this.quadTo(W,ha+ea,W,ha+ea-la),this.lineTo(W,ha+la),this.quadTo(W,ha,W+oa,ha))};k.prototype.drawPath=function(W){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),W)}catch(X){}this.passThrough=!1}else if(null!=this.nextShape){for(var ha in W)this.nextShape.options[ha]=W[ha];W.stroke!=mxConstants.NONE&&null!=W.stroke||delete this.nextShape.options.stroke;W.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};k.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};k.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};k.prototype.fillAndStroke=function(){this.passThrough?this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};k.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo;this.canvas.close=this.originalClose;this.canvas.fill=-this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(W){return new k(W,Editor.createRoughCanvas(W),this)};var v=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(W){return this.outline||-null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?v.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(W):this.createRoughCanvas(W)};var H=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(W,ha,X,ea,oa){null!=W.handJiggle&&W.handJiggle.passThrough||H.apply(this,arguments)};var P=mxShape.prototype.paint;mxShape.prototype.paint=function(W){var ha=W.addTolerance,X=!0;null!=this.style&&(X="1"==+this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(W){return new k(W,Editor.createRoughCanvas(W),this)};var u=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(W){return this.outline||+null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?u.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(W):this.createRoughCanvas(W)};var H=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(W,ha,X,ea,oa){null!=W.handJiggle&&W.handJiggle.passThrough||H.apply(this,arguments)};var P=mxShape.prototype.paint;mxShape.prototype.paint=function(W){var ha=W.addTolerance,X=!0;null!=this.style&&(X="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=W.handJiggle&&W.handJiggle.constructor==k&&!this.outline){W.save();var ea=this.fill,oa=this.stroke;this.stroke=this.fill=null;var la=this.configurePointerEvents,ca=W.setStrokeColor;W.setStrokeColor=function(){};var ta=W.setFillColor;W.setFillColor=function(){};X||null==ea||(this.configurePointerEvents=function(){});W.handJiggle.passThrough=!0;P.apply(this,arguments);W.handJiggle.passThrough=!1;W.setFillColor=ta;W.setStrokeColor=ca;this.configurePointerEvents=la;this.stroke=oa;this.fill=ea;W.restore();X&&null!=ea&&(W.addTolerance=function(){})}P.apply(this,arguments);W.addTolerance=ha};var T=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(W,ha,X,ea,oa,la){null!=W.handJiggle&&W.handJiggle.constructor==k?(W.handJiggle.passThrough=!0,T.apply(this,arguments),W.handJiggle.passThrough=!1):T.apply(this,arguments)}})();Editor.fastCompress=function(k){return null==k||0==k.length||"undefined"===typeof pako?-k:Graph.arrayBufferToString(pako.deflateRaw(k))};Editor.fastDecompress=function(k){return null==k||0==k.length||"undefined"===typeof pako?k:pako.inflateRaw(Graph.stringToArrayBuffer(atob(k)),{to:"string"})};Editor.extractGraphModel=function(k,v,H){if(null!=k&&"undefined"!==typeof pako){var P=k.ownerDocument.getElementsByTagName("div"),T=[];if(null!=P&&0<P.length)for(var W=0;W<P.length;W++)if("mxgraph"==P[W].getAttribute("class")){T.push(P[W]);break}0<T.length&&(P=T[0].getAttribute("data-mxgraph"),+k:Graph.arrayBufferToString(pako.deflateRaw(k))};Editor.fastDecompress=function(k){return null==k||0==k.length||"undefined"===typeof pako?k:pako.inflateRaw(Graph.stringToArrayBuffer(atob(k)),{to:"string"})};Editor.extractGraphModel=function(k,u,H){if(null!=k&&"undefined"!==typeof pako){var P=k.ownerDocument.getElementsByTagName("div"),T=[];if(null!=P&&0<P.length)for(var W=0;W<P.length;W++)if("mxgraph"==P[W].getAttribute("class")){T.push(P[W]);break}0<T.length&&(P=T[0].getAttribute("data-mxgraph"),null!=P?(T=JSON.parse(P),null!=T&&null!=T.xml&&(k=mxUtils.parseXml(T.xml),k=k.documentElement)):(T=T[0].getElementsByTagName("div"),0<T.length&&(P=mxUtils.getTextContent(T[0]),P=Graph.decompress(P,null,H),0<P.length&&(k=mxUtils.parseXml(P),k=k.documentElement))))}if(null!=k&&"svg"==k.nodeName)if(P=k.getAttribute("content"),null!=P&&"<"!=P.charAt(0)&&"%"!=P.charAt(0)&&(P=unescape(window.atob?atob(P):Base64.decode(cont,P))),null!=P&&"%"==P.charAt(0)&&(P=decodeURIComponent(P)),null!=P&&0<P.length)k=-mxUtils.parseXml(P).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==k||v||(T=null,"diagram"==k.nodeName?T=k:"mxfile"==k.nodeName&&(P=k.getElementsByTagName("diagram"),0<P.length&&(T=P[Math.max(0,Math.min(P.length-1,urlParams.page||0))])),null!=T&&(k=Editor.parseDiagramNode(T,H)));null==k||"mxGraphModel"==k.nodeName||v&&"mxfile"==k.nodeName||(k=null);return k};Editor.parseDiagramNode=function(k,v,H){Editor.validateDiagramNode(k);var P=mxUtils.trim(mxUtils.getTextContent(k)),-T=null;0<P.length?(v=Graph.decompress(P,null,v),null!=v&&0<v.length&&(T=mxUtils.parseXml(v).documentElement)):(k=mxUtils.getChildNodes(k),0<k.length&&(T=k[0],H&&(T=Editor.parseDiagramNode(T,v,!1)),v=mxUtils.createXmlDocument(),v.appendChild(v.importNode(T,!0)),T=v.documentElement));return T};Editor.getDiagramNodeXml=function(k){Editor.validateDiagramNode(k);var v=mxUtils.getNodeValue(k),H=null;0<v.length?H=Graph.decompress(v):(k=k.getElementsByTagName("mxGraphModel"),null!=k&&0<k.length&&(H=mxUtils.getXml(k[0])));-return H};Editor.validateDiagramNode=function(k){if(0==mxUtils.trim(mxUtils.getTextContent(k)).length&&0==mxUtils.getChildNodes(k).length){var v=new mxCodec,H=new mxGraphModel;k.appendChild(v.encode(H))}return k};Editor.extractGraphModelFromPdf=function(k){var v=null;k=k.substring(k.indexOf(",")+1);k=window.atob&&!mxClient.IS_SF?atob(k):Base64.decode(k,!0);if("%PDF-1.7"==k.substring(0,8)){for(var H=k.indexOf("EmbeddedFile");-1<H;){var P=k.indexOf("stream",H)+9;if(0<k.substring(H,P).indexOf("application#2Fvnd.jgraph.mxfile")){var T=+mxUtils.parseXml(P).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==k||u||(T=null,"diagram"==k.nodeName?T=k:"mxfile"==k.nodeName&&(P=k.getElementsByTagName("diagram"),0<P.length&&(T=P[Math.max(0,Math.min(P.length-1,urlParams.page||0))])),null!=T&&(k=Editor.parseDiagramNode(T,H)));null==k||"mxGraphModel"==k.nodeName||u&&"mxfile"==k.nodeName||(k=null);return k};Editor.parseDiagramNode=function(k,u,H){Editor.validateDiagramNode(k);var P=mxUtils.trim(mxUtils.getTextContent(k)),+T=null;0<P.length?(u=Graph.decompress(P,null,u),null!=u&&0<u.length&&(T=mxUtils.parseXml(u).documentElement)):(k=mxUtils.getChildNodes(k),0<k.length&&(T=k[0],H&&(T=Editor.parseDiagramNode(T,u,!1)),u=mxUtils.createXmlDocument(),u.appendChild(u.importNode(T,!0)),T=u.documentElement));return T};Editor.getDiagramNodeXml=function(k){Editor.validateDiagramNode(k);var u=mxUtils.getNodeValue(k),H=null;0<u.length?H=Graph.decompress(u):(k=k.getElementsByTagName("mxGraphModel"),null!=k&&0<k.length&&(H=mxUtils.getXml(k[0])));+return H};Editor.validateDiagramNode=function(k){if(0==mxUtils.trim(mxUtils.getTextContent(k)).length&&0==mxUtils.getChildNodes(k).length){var u=new mxCodec,H=new mxGraphModel;k.appendChild(u.encode(H))}return k};Editor.extractGraphModelFromPdf=function(k){var u=null;k=k.substring(k.indexOf(",")+1);k=window.atob&&!mxClient.IS_SF?atob(k):Base64.decode(k,!0);if("%PDF-1.7"==k.substring(0,8)){for(var H=k.indexOf("EmbeddedFile");-1<H;){var P=k.indexOf("stream",H)+9;if(0<k.substring(H,P).indexOf("application#2Fvnd.jgraph.mxfile")){var T=k.indexOf("endstream",P-1);try{return pako.inflateRaw(Graph.stringToArrayBuffer(k.substring(P,T)),{to:"string"})}catch(ca){}}H=k.indexOf("EmbeddedFile",H+1)}for(H=k.indexOf("/ObjStm");0<H;){P=k.indexOf("stream",H)+9;T=k.indexOf("endstream",P-1);try{var W=pako.inflateRaw(Graph.stringToArrayBuffer(k.substring(P,T)),{to:"string"}),ha=W.indexOf("/Subject <");if(0<ha){var X=W.substring(ha+14,W.indexOf(">",ha));if(null!=X){P=X;T=[];for(var ea=0;ea<P.length;ea+=2){var oa=P.substr(ea,2);"00"!=oa&&T.push(String.fromCharCode(parseInt(oa,-16)))}v=T.join("")}break}}catch(ca){}H=k.indexOf("/ObjStm",H+1)}}if(null==v&&"%PDF-"==k.substring(0,5)){W="";X=ha=0;var la=[];for(oa=null;X<k.length;){H=k.charCodeAt(X);X+=1;10!=H&&(W+=String.fromCharCode(H));H=="/Subject (%3Cmxfile".charCodeAt(ha)?ha++:ha=0;if(19==ha&&(P=k.indexOf("%3C%2Fmxfile%3E",X)+15,X-=9,P>X)){v=k.substring(X,P);break}10==H&&("endobj"==W?oa=null:"obj"==W.substring(W.length-3,W.length)||"xref"==W||"trailer"==W?(oa=[],la[W.split(" ")[0]]=oa):null!=oa&&oa.push(W),W="")}}null==-v&&null!=la&&(v=Editor.extractGraphModelFromXref(la));null!=v&&(v=decodeURIComponent(v.replace(/\\([\\()])/g,"$1").replace(/\\\(/g,"(").replace(/\\\)/g,")")));return v};Editor.extractGraphModelFromXref=function(k){var v=k.trailer,H=null;null!=v&&(v=/.* \/Info (\d+) (\d+) R/g.exec(v.join("\n")),null!=v&&0<v.length&&(v=k[v[1]],null!=v&&(v=/.* \/Subject (\d+) (\d+) R/g.exec(v.join("\n")),null!=v&&0<v.length&&(k=k[v[1]],null!=k&&(k=k.join("\n"),H=k.substring(1,k.length-1))))));return H};Editor.extractParserError=-function(k,v){var H=null;k=null!=k?k.getElementsByTagName("parsererror"):null;null!=k&&0<k.length&&(H=v||mxResources.get("invalidChars"),v=k[0].getElementsByTagName("div"),0<v.length&&(H=mxUtils.getTextContent(v[0])));return null!=H?mxUtils.trim(H):H};Editor.addRetryToError=function(k,v){null!=k&&(k=null!=k.error?k.error:k,null==k.retry&&(k.retry=v))};Editor.mermaidToDrawio=function(k,v,H){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(k,v,H)};Editor.configure=function(k){if(null!=+16)))}u=T.join("")}break}}catch(ca){}H=k.indexOf("/ObjStm",H+1)}}if(null==u&&"%PDF-"==k.substring(0,5)){W="";X=ha=0;var la=[];for(oa=null;X<k.length;){H=k.charCodeAt(X);X+=1;10!=H&&(W+=String.fromCharCode(H));H=="/Subject (%3Cmxfile".charCodeAt(ha)?ha++:ha=0;if(19==ha&&(P=k.indexOf("%3C%2Fmxfile%3E",X)+15,X-=9,P>X)){u=k.substring(X,P);break}10==H&&("endobj"==W?oa=null:"obj"==W.substring(W.length-3,W.length)||"xref"==W||"trailer"==W?(oa=[],la[W.split(" ")[0]]=oa):null!=oa&&oa.push(W),W="")}}null==+u&&null!=la&&(u=Editor.extractGraphModelFromXref(la));null!=u&&(u=decodeURIComponent(u.replace(/\\([\\()])/g,"$1").replace(/\\\(/g,"(").replace(/\\\)/g,")")));return u};Editor.extractGraphModelFromXref=function(k){var u=k.trailer,H=null;null!=u&&(u=/.* \/Info (\d+) (\d+) R/g.exec(u.join("\n")),null!=u&&0<u.length&&(u=k[u[1]],null!=u&&(u=/.* \/Subject (\d+) (\d+) R/g.exec(u.join("\n")),null!=u&&0<u.length&&(k=k[u[1]],null!=k&&(k=k.join("\n"),H=k.substring(1,k.length-1))))));return H};Editor.extractParserError=+function(k,u){var H=null;k=null!=k?k.getElementsByTagName("parsererror"):null;null!=k&&0<k.length&&(H=u||mxResources.get("invalidChars"),u=k[0].getElementsByTagName("div"),0<u.length&&(H=mxUtils.getTextContent(u[0])));return null!=H?mxUtils.trim(H):H};Editor.addRetryToError=function(k,u){null!=k&&(k=null!=k.error?k.error:k,null==k.retry&&(k.retry=u))};Editor.mermaidToDrawio=function(k,u,H){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(k,u,H)};Editor.configure=function(k){if(null!=k){Editor.config=k;Editor.configVersion=k.version;k.debug&&(urlParams.test="1");k.passiveScroll&&(Editor.passiveScroll=!0);k.noResizers&&(Editor.noResizers=!0);k.preserveViewState&&(Editor.preserveViewState=!0);null!=k.passThroughKeys&&(Editor.passThroughKeys=k.passThroughKeys);null!=k.keyboardShortcuts&&(Array.isArray(k.keyboardShortcuts)?Editor.keyboardShortcuts=k.keyboardShortcuts:EditorUi.debug("Configuration Error: Array expected for keyboardShortcuts"));k.suppressNewWindows&&(Editor.suppressNewWindows=-!0,Editor.popupsAllowed=!1);k.useInternalClipboard&&(EditorUi.prototype.useInternalClipboard=k.useInternalClipboard);if(null!=k.customCss){var v=document.createElement("style");v.type="text/css";v.appendChild(document.createTextNode(k.customCss));document.head.appendChild(v)}null!=k.resources&&("object"!==typeof k.resources||Array.isArray(k.resources)?EditorUi.debug("Configuration Error: Object expected for resources"):(Editor.customResources=k.resources,Editor.applyCustomResources()));null!=k.enableLocalFonts&&-(Editor.enableLocalFonts=k.enableLocalFonts);null!=k.enableCustomGitLabUrl&&(Editor.enableCustomGitLabUrl=k.enableCustomGitLabUrl);null!=k.defaultFonts&&(Menus.prototype.defaultFonts=k.defaultFonts);null!=k.presetColors&&(ColorDialog.prototype.presetColors=k.presetColors);null!=k.defaultColors&&(ColorDialog.prototype.defaultColors=k.defaultColors);null!=k.colorNames&&(ColorDialog.prototype.colorNames=k.colorNames);null!=k.defaultColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=k.defaultColorSchemes);-null!=k.defaultEdgeLength&&(Graph.prototype.defaultEdgeLength=k.defaultEdgeLength);null!=k.selectParentLayer&&(Graph.selectParentLayer=k.selectParentLayer);null!=k.intersectionSelect&&(Graph.intersectionSelect=k.intersectionSelect);null!=k.swimlaneSelectionEnabled&&(Graph.prototype.swimlaneSelectionEnabled=k.swimlaneSelectionEnabled);null!=k.autosaveDelay&&(DrawioFile.prototype.autosaveDelay=k.autosaveDelay);null!=k.templateFile&&(EditorUi.templateFile=k.templateFile);null!=k.enabledTemplateSections&&-(Array.isArray(k.enabledTemplateSections)?EditorUi.enabledTemplateSections=k.enabledTemplateSections:EditorUi.debug("Configuration Error: Array expected for enabledTemplateSections"));null!=k.customTemplates&&(Array.isArray(k.customTemplates)?EditorUi.customTemplates=k.customTemplates:EditorUi.debug("Configuration Error: Array expected for customTemplates"));null!=k.styles&&(Array.isArray(k.styles)?Editor.styles=k.styles:EditorUi.debug("Configuration Error: Array expected for styles"));null!=k.globalVars&&-(Editor.globalVars=k.globalVars);null!=k.defaultFileType&&(Editor.defaultFileType=k.defaultFileType);null!=k.compressXml&&(Editor.defaultCompressed=k.compressXml,Editor.compressXml=k.compressXml);null!=k.compressStyles&&(v=mxCodecRegistry.getCodec(mxGraphModel),null!=v&&(v.enableStyleCompression=k.compressStyles));null!=k.includeDiagram&&(Editor.defaultIncludeDiagram=k.includeDiagram);null!=k.simpleLabels&&(Editor.simpleLabels=k.simpleLabels);null!=k.optimizeHtmlLabels&&(Editor.optimizeHtmlLabels=+!0,Editor.popupsAllowed=!1);k.useInternalClipboard&&(EditorUi.prototype.useInternalClipboard=k.useInternalClipboard);if(null!=k.customCss){var u=document.createElement("style");u.type="text/css";u.appendChild(document.createTextNode(k.customCss));document.head.appendChild(u)}null!=k.resources&&("object"!==typeof k.resources||Array.isArray(k.resources)?EditorUi.debug("Configuration Error: Object expected for resources"):(Editor.customResources=k.resources,Editor.applyCustomResources()));null!=k.enableLocalFonts&&+(Editor.enableLocalFonts=k.enableLocalFonts);null!=k.enableCustomGitLabUrl&&(Editor.enableCustomGitLabUrl=k.enableCustomGitLabUrl);null!=k.defaultFonts&&(Menus.prototype.defaultFonts=k.defaultFonts,Editor.addAllowedFontUrls(k.defaultFonts));null!=k.presetColors&&(ColorDialog.prototype.presetColors=k.presetColors);null!=k.defaultColors&&(ColorDialog.prototype.defaultColors=k.defaultColors);null!=k.colorNames&&(ColorDialog.prototype.colorNames=k.colorNames);null!=k.defaultColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=+k.defaultColorSchemes);null!=k.defaultEdgeLength&&(Graph.prototype.defaultEdgeLength=k.defaultEdgeLength);null!=k.selectParentLayer&&(Graph.selectParentLayer=k.selectParentLayer);null!=k.intersectionSelect&&(Graph.intersectionSelect=k.intersectionSelect);null!=k.swimlaneSelectionEnabled&&(Graph.prototype.swimlaneSelectionEnabled=k.swimlaneSelectionEnabled);null!=k.autosaveDelay&&(DrawioFile.prototype.autosaveDelay=k.autosaveDelay);null!=k.templateFile&&(EditorUi.templateFile=k.templateFile);null!=+k.enabledTemplateSections&&(Array.isArray(k.enabledTemplateSections)?EditorUi.enabledTemplateSections=k.enabledTemplateSections:EditorUi.debug("Configuration Error: Array expected for enabledTemplateSections"));null!=k.customTemplates&&(Array.isArray(k.customTemplates)?EditorUi.customTemplates=k.customTemplates:EditorUi.debug("Configuration Error: Array expected for customTemplates"));null!=k.styles&&(Array.isArray(k.styles)?Editor.styles=k.styles:EditorUi.debug("Configuration Error: Array expected for styles"));+null!=k.globalVars&&(Editor.globalVars=k.globalVars);null!=k.defaultFileType&&(Editor.defaultFileType=k.defaultFileType);null!=k.compressXml&&(Editor.defaultCompressed=k.compressXml,Editor.compressXml=k.compressXml);null!=k.compressStyles&&(u=mxCodecRegistry.getCodec(mxGraphModel),null!=u&&(u.enableStyleCompression=k.compressStyles));null!=k.includeDiagram&&(Editor.defaultIncludeDiagram=k.includeDiagram);null!=k.simpleLabels&&(Editor.simpleLabels=k.simpleLabels);null!=k.optimizeHtmlLabels&&(Editor.optimizeHtmlLabels=k.optimizeHtmlLabels);null!=k.mathOutputSize&&(Editor.mathOutputSize=k.mathOutputSize);null!=k.mermaid&&("object"!==typeof k.mermaid||Array.isArray(k.mermaid)?EditorUi.debug("Configuration Error: Object expected for mermaid"):EditorUi.defaultMermaidConfig=k.mermaid);null!=k.pasteAtMousePointer&&(Editor.pasteAtMousePointer=k.pasteAtMousePointer);null!=k.fitDiagramOnLoad&&(Editor.fitDiagramOnLoad=k.fitDiagramOnLoad);null!=k.fitDiagramOnPage&&(Editor.fitDiagramOnPage=k.fitDiagramOnPage);null!=k.showLinkIcons&&-(Editor.showLinkIcons=k.showLinkIcons);null!=k.showTooltipIcons&&(Editor.showTooltipIcons=k.showTooltipIcons);null!=k.showNoteIcons&&(Editor.showNoteIcons=k.showNoteIcons);null!=k.tooltipFontSize&&(v=parseInt(k.tooltipFontSize),!isNaN(v)&&0<v?Editor.tooltipFontSize=v:EditorUi.debug("Configuration Error: Int > 0 expected for tooltipFontSize"));null!=k.tooltipMaxWidth&&(v=parseInt(k.tooltipMaxWidth),!isNaN(v)&&0<=v?Editor.tooltipMaxWidth=v:EditorUi.debug("Configuration Error: Int >= 0 expected for tooltipMaxWidth"));+(Editor.showLinkIcons=k.showLinkIcons);null!=k.showTooltipIcons&&(Editor.showTooltipIcons=k.showTooltipIcons);null!=k.showNoteIcons&&(Editor.showNoteIcons=k.showNoteIcons);null!=k.tooltipFontSize&&(u=parseInt(k.tooltipFontSize),!isNaN(u)&&0<u?Editor.tooltipFontSize=u:EditorUi.debug("Configuration Error: Int > 0 expected for tooltipFontSize"));null!=k.tooltipMaxWidth&&(u=parseInt(k.tooltipMaxWidth),!isNaN(u)&&0<=u?Editor.tooltipMaxWidth=u:EditorUi.debug("Configuration Error: Int >= 0 expected for tooltipMaxWidth"));null!=k.expandPatternsForPrint&&(Editor.expandPatternsForPrint=k.expandPatternsForPrint);null!=k.showConnectHandle&&(Editor.showConnectHandle=k.showConnectHandle);null!=k.enableInlineToolbar&&(Editor.enableInlineToolbar=k.enableInlineToolbar);null!=k.enableSizeGuides&&"undefined"!==typeof mxVertexHandler&&(mxVertexHandler.prototype.sizeGuidesEnabled=k.enableSizeGuides);null!=k.enablePositionGuides&&"undefined"!==typeof mxGuide&&(mxGuide.prototype.positionEnabled=k.enablePositionGuides);null!=k.enableDistanceGuides&&"undefined"!==typeof mxGuide&&(mxGuide.prototype.distanceEnabled=k.enableDistanceGuides);null!=k.defaultTransparentGroups&&(Editor.defaultTransparentGroups=k.defaultTransparentGroups);null!=k.oneDriveInlinePicker&&(Editor.oneDriveInlinePicker=k.oneDriveInlinePicker);null!=k.enableNativeClipboard&&(Editor.enableNativeClipboard=k.enableNativeClipboard);null!=k.enableExportUrl&&(Editor.enableExportUrl=k.enableExportUrl);null!=k.defaultAdaptiveColors?Graph.defaultAdaptiveColors=k.defaultAdaptiveColors:0==k.enableCssDarkMode&&(Graph.defaultAdaptiveColors="simple");null!=k.enableLightDarkColors&&(mxUtils.lightDarkColorSupported=k.enableLightDarkColors);null!=k.darkColor&&(Editor.darkColor=k.darkColor);null!=k.darkColorVar&&(Editor.darkColorVar=k.darkColorVar);null!=k.defaultPageBackgroundColor&&(Editor.pageBackgroundColor=k.defaultPageBackgroundColor);null!=k.defaultDarkPageBackgroundColor&&(Editor.darkPageBackgroundColor=k.defaultDarkPageBackgroundColor);null!=k.defaultGridColor&&(mxGraphView.prototype.defaultGridColor=k.defaultGridColor);null!=k.defaultDarkGridColor&&(mxGraphView.prototype.defaultDarkGridColor=k.defaultDarkGridColor);mxGraphView.prototype.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultDarkGridColor:mxGraphView.prototype.defaultGridColor;Graph.prototype.defaultPageBackgroundColor=Editor.getDefaultPageBackgroundColor();Graph.prototype.shapeBackgroundColor="light-dark(#ffffff, var("+Editor.darkColorVar+", "+Editor.darkColor+"))";null!=k.settingsName&&(Editor.configurationKey="."+k.settingsName+-"-configuration",Editor.settingsKey="."+k.settingsName+"-config",mxSettings.key=Editor.settingsKey);null!=k.customFonts&&(Menus.prototype.defaultFonts=k.customFonts.concat(Menus.prototype.defaultFonts));null!=k.customPresetColors&&(ColorDialog.prototype.presetColors=k.customPresetColors.concat(ColorDialog.prototype.presetColors));null!=k.customColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=k.customColorSchemes.concat(StyleFormatPanel.prototype.defaultColorSchemes));if(null!=k.css){v=-document.createElement("style");v.setAttribute("type","text/css");v.appendChild(document.createTextNode(k.css));var H=document.getElementsByTagName("script")[0];H.parentNode.insertBefore(v,H)}null!=k.expandLibraries&&(Sidebar.prototype.expandLibraries=k.expandLibraries);null!=k.appendCustomLibraries&&(Sidebar.prototype.appendCustomLibraries=k.appendCustomLibraries);null!=k.libraries&&(Sidebar.prototype.customEntries=k.libraries);null!=k.enabledLibraries&&(Array.isArray(k.enabledLibraries)?Sidebar.prototype.enabledLibraries=-k.enabledLibraries:EditorUi.debug("Configuration Error: Array expected for enabledLibraries"));null!=k.defaultLibraries&&(Sidebar.prototype.defaultEntries=k.defaultLibraries);null!=k.defaultCustomLibraries&&(Editor.defaultCustomLibraries=k.defaultCustomLibraries);null!=k.defaultLanguages&&(Array.isArray(k.defaultLanguages)?Editor.defaultLanguages=k.defaultLanguages:EditorUi.debug("Configuration Error: Array expected for defaultLanguages"));null!=k.enableCustomLibraries&&(Editor.enableCustomLibraries=-k.enableCustomLibraries);null!=k.inlineExtIcons&&(Editor.inlineExtIcons=k.inlineExtIcons);null!=k.defaultVertexStyle&&(Graph.prototype.defaultVertexStyle=k.defaultVertexStyle);null!=k.defaultEdgeStyle&&(Graph.prototype.defaultEdgeStyle=k.defaultEdgeStyle);null!=k.shapePicker&&(EditorUi.prototype.defaultShapePickerEntries=k.shapePicker.shapes);null!=k.defaultPageVisible&&(Graph.prototype.defaultPageVisible=k.defaultPageVisible);null!=k.defaultGridEnabled&&(Graph.prototype.defaultGridEnabled=k.defaultGridEnabled);-null!=k.defaultConnectionArrowsEnabled&&(Graph.prototype.defaultConnectionArrowsEnabled=k.defaultConnectionArrowsEnabled,Graph.prototype.connectionArrowsEnabled=k.defaultConnectionArrowsEnabled);null!=k.defaultConnectable&&(Graph.prototype.defaultConnectable=k.defaultConnectable);null!=k.copyOnConnect&&(mxConnectionHandler.prototype.createTarget=k.copyOnConnect);null!=k.stopEditingOnEnter&&(mxGraph.prototype.enterStopsCellEditing=k.stopEditingOnEnter);null!=k.defaultFoldingEnabled&&(Graph.prototype.defaultFoldingEnabled=-k.defaultFoldingEnabled);null!=k.foldingIconSize&&Graph.updateFoldingImages(k.foldingIconSize);null!=k.zoomWheel&&(Graph.zoomWheel=k.zoomWheel);null!=k.browserTranslate&&(Graph.browserTranslate=k.browserTranslate);null!=k.zoomFactor&&(v=parseFloat(k.zoomFactor),!isNaN(v)&&1<v?Graph.prototype.zoomFactor=v:EditorUi.debug("Configuration Error: Float > 1 expected for zoomFactor"));null!=k.defaultGridSize&&(v=parseInt(k.defaultGridSize),!isNaN(v)&&0<v?mxGraph.prototype.gridSize=v:EditorUi.debug("Configuration Error: Int > 0 expected for defaultGridSize"));-null!=k.gridSteps&&(v=parseInt(k.gridSteps),!isNaN(v)&&0<v?mxGraphView.prototype.gridSteps=v:EditorUi.debug("Configuration Error: Int > 0 expected for gridSteps"));null!=k.pageFormat&&(v=parseInt(k.pageFormat.width),H=parseInt(k.pageFormat.height),!isNaN(v)&&0<v&&!isNaN(H)&&0<H?(mxGraph.prototype.defaultPageFormat=new mxRectangle(0,0,v,H),mxGraph.prototype.pageFormat=mxGraph.prototype.defaultPageFormat):EditorUi.debug("Configuration Error: {width: int, height: int} expected for pageFormat"));null!=-k.thumbWidth&&(Sidebar.prototype.thumbWidth=k.thumbWidth);null!=k.thumbHeight&&(Sidebar.prototype.thumbHeight=k.thumbHeight);null!=k.emptyLibraryXml&&(EditorUi.prototype.emptyLibraryXml=k.emptyLibraryXml);null!=k.emptyDiagramXml&&(EditorUi.prototype.emptyDiagramXml=k.emptyDiagramXml);null!=k.sidebarWidth&&(EditorUi.prototype.hsplitPosition=k.sidebarWidth);null!=k.updateDefaultStyle&&(EditorUi.prototype.updateDefaultStyle=k.updateDefaultStyle);null!=k.sidebarTitles&&(Sidebar.prototype.sidebarTitles=-k.sidebarTitles);null!=k.sidebarTitleSize&&(v=parseInt(k.sidebarTitleSize),!isNaN(v)&&0<v?Sidebar.prototype.sidebarTitleSize=v:EditorUi.debug("Configuration Error: Int > 0 expected for sidebarTitleSize"));null!=k.fontCss&&("string"===typeof k.fontCss?Editor.configureFontCss(k.fontCss):EditorUi.debug("Configuration Error: String expected for fontCss"));null!=k.autosaveDelay&&(v=parseInt(k.autosaveDelay),!isNaN(v)&&0<v?DrawioFile.prototype.autosaveDelay=v:EditorUi.debug("Configuration Error: Int > 0 expected for autosaveDelay"));+"-configuration",Editor.settingsKey="."+k.settingsName+"-config",mxSettings.key=Editor.settingsKey);null!=k.customFonts&&(Menus.prototype.defaultFonts=k.customFonts.concat(Menus.prototype.defaultFonts),Editor.addAllowedFontUrls(k.customFonts));null!=k.customPresetColors&&(ColorDialog.prototype.presetColors=k.customPresetColors.concat(ColorDialog.prototype.presetColors));null!=k.customColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=k.customColorSchemes.concat(StyleFormatPanel.prototype.defaultColorSchemes));+if(null!=k.css){u=document.createElement("style");u.setAttribute("type","text/css");u.appendChild(document.createTextNode(k.css));var H=document.getElementsByTagName("script")[0];H.parentNode.insertBefore(u,H)}null!=k.expandLibraries&&(Sidebar.prototype.expandLibraries=k.expandLibraries);null!=k.appendCustomLibraries&&(Sidebar.prototype.appendCustomLibraries=k.appendCustomLibraries);null!=k.libraries&&(Sidebar.prototype.customEntries=k.libraries);null!=k.enabledLibraries&&(Array.isArray(k.enabledLibraries)?+Sidebar.prototype.enabledLibraries=k.enabledLibraries:EditorUi.debug("Configuration Error: Array expected for enabledLibraries"));null!=k.defaultLibraries&&(Sidebar.prototype.defaultEntries=k.defaultLibraries);null!=k.defaultCustomLibraries&&(Editor.defaultCustomLibraries=k.defaultCustomLibraries);null!=k.defaultLanguages&&(Array.isArray(k.defaultLanguages)?Editor.defaultLanguages=k.defaultLanguages:EditorUi.debug("Configuration Error: Array expected for defaultLanguages"));null!=k.enableCustomLibraries&&+(Editor.enableCustomLibraries=k.enableCustomLibraries);null!=k.inlineExtIcons&&(Editor.inlineExtIcons=k.inlineExtIcons);null!=k.defaultVertexStyle&&(Graph.prototype.defaultVertexStyle=k.defaultVertexStyle);null!=k.defaultEdgeStyle&&(Graph.prototype.defaultEdgeStyle=k.defaultEdgeStyle);null!=k.shapePicker&&(EditorUi.prototype.defaultShapePickerEntries=k.shapePicker.shapes);null!=k.defaultPageVisible&&(Graph.prototype.defaultPageVisible=k.defaultPageVisible);null!=k.defaultGridEnabled&&(Graph.prototype.defaultGridEnabled=+k.defaultGridEnabled);null!=k.defaultConnectionArrowsEnabled&&(Graph.prototype.defaultConnectionArrowsEnabled=k.defaultConnectionArrowsEnabled,Graph.prototype.connectionArrowsEnabled=k.defaultConnectionArrowsEnabled);null!=k.defaultConnectable&&(Graph.prototype.defaultConnectable=k.defaultConnectable);null!=k.copyOnConnect&&(mxConnectionHandler.prototype.createTarget=k.copyOnConnect);null!=k.stopEditingOnEnter&&(mxGraph.prototype.enterStopsCellEditing=k.stopEditingOnEnter);null!=k.defaultFoldingEnabled&&+(Graph.prototype.defaultFoldingEnabled=k.defaultFoldingEnabled);null!=k.foldingIconSize&&Graph.updateFoldingImages(k.foldingIconSize);null!=k.zoomWheel&&(Graph.zoomWheel=k.zoomWheel);null!=k.browserTranslate&&(Graph.browserTranslate=k.browserTranslate);null!=k.zoomFactor&&(u=parseFloat(k.zoomFactor),!isNaN(u)&&1<u?Graph.prototype.zoomFactor=u:EditorUi.debug("Configuration Error: Float > 1 expected for zoomFactor"));null!=k.defaultGridSize&&(u=parseInt(k.defaultGridSize),!isNaN(u)&&0<u?mxGraph.prototype.gridSize=+u:EditorUi.debug("Configuration Error: Int > 0 expected for defaultGridSize"));null!=k.gridSteps&&(u=parseInt(k.gridSteps),!isNaN(u)&&0<u?mxGraphView.prototype.gridSteps=u:EditorUi.debug("Configuration Error: Int > 0 expected for gridSteps"));null!=k.pageFormat&&(u=parseInt(k.pageFormat.width),H=parseInt(k.pageFormat.height),!isNaN(u)&&0<u&&!isNaN(H)&&0<H?(mxGraph.prototype.defaultPageFormat=new mxRectangle(0,0,u,H),mxGraph.prototype.pageFormat=mxGraph.prototype.defaultPageFormat):EditorUi.debug("Configuration Error: {width: int, height: int} expected for pageFormat"));+null!=k.thumbWidth&&(Sidebar.prototype.thumbWidth=k.thumbWidth);null!=k.thumbHeight&&(Sidebar.prototype.thumbHeight=k.thumbHeight);null!=k.emptyLibraryXml&&(EditorUi.prototype.emptyLibraryXml=k.emptyLibraryXml);null!=k.emptyDiagramXml&&(EditorUi.prototype.emptyDiagramXml=k.emptyDiagramXml);null!=k.sidebarWidth&&(EditorUi.prototype.hsplitPosition=k.sidebarWidth);null!=k.updateDefaultStyle&&(EditorUi.prototype.updateDefaultStyle=k.updateDefaultStyle);null!=k.sidebarTitles&&(Sidebar.prototype.sidebarTitles=+k.sidebarTitles);null!=k.sidebarTitleSize&&(u=parseInt(k.sidebarTitleSize),!isNaN(u)&&0<u?Sidebar.prototype.sidebarTitleSize=u:EditorUi.debug("Configuration Error: Int > 0 expected for sidebarTitleSize"));null!=k.fontCss&&("string"===typeof k.fontCss?Editor.configureFontCss(k.fontCss):EditorUi.debug("Configuration Error: String expected for fontCss"));null!=k.autosaveDelay&&(u=parseInt(k.autosaveDelay),!isNaN(u)&&0<u?DrawioFile.prototype.autosaveDelay=u:EditorUi.debug("Configuration Error: Int > 0 expected for autosaveDelay"));null!=k.maxImageBytes&&(EditorUi.prototype.maxImageBytes=k.maxImageBytes);null!=k.maxImageSize&&(EditorUi.prototype.maxImageSize=k.maxImageSize);null!=k.shareCursorPosition&&(EditorUi.prototype.shareCursorPosition=k.shareCursorPosition);null!=k.showRemoteCursors&&(EditorUi.prototype.showRemoteCursors=k.showRemoteCursors);null!=k.restrictExport&&(DrawioFile.RESTRICT_EXPORT=k.restrictExport);null!=k.removeImageMetadata&&(Editor.removeImageMetadata=k.removeImageMetadata);null!=k.defaultTextStyle&&(Editor.defaultTextStyle=k.defaultTextStyle);null!=k.replaceSvgDataUris&&(Editor.replaceSvgDataUris=k.replaceSvgDataUris);null!=k.foreignObjectImages&&(Editor.foreignObjectImages=k.foreignObjectImages);null!=k.embedSvgFonts&&(Editor.embedSvgFonts=k.embedSvgFonts);null!=k.shadowColor&&(mxConstants.SHADOW_COLOR=k.shadowColor);null!=k.shadowOpacity&&(mxConstants.SHADOW_OPACITY=k.shadowOpacity);null!=k.shadowOffsetX&&(mxConstants.SHADOW_OFFSET_X=k.shadowOffsetX);null!=k.shadowOffsetY&&(mxConstants.SHADOW_OFFSET_Y=k.shadowOffsetY);null!=k.shadowBlur&&(mxConstants.SHADOW_BLUR=k.shadowBlur);null!=k.enableAnimations&&(Editor.enableAnimations=k.enableAnimations);null!=k.insertAnimations&&(Editor.insertAnimations=k.insertAnimations);null!=k.enableWindowDocking&&(Editor.enableWindowDocking=k.enableWindowDocking);null!=k.compact&&(EditorUi.prototype.defaultCompact=k.compact);null!=k.noAutoFocus&&(EditorUi.prototype.noAutoFocus=k.noAutoFocus);if(null!=k.hideMenuItems)if(Array.isArray(k.hideMenuItems))for(Menus.prototype.hiddenMenuItems=-{},v=0;v<k.hideMenuItems.length;v++)Menus.prototype.hiddenMenuItems[k.hideMenuItems[v]]=!0;else EditorUi.debug("Configuration Error: Array expected for hideMenuItems");if(null!=k.hideMenus)if(Array.isArray(k.hideMenus)){var P={};for(v=0;v<k.hideMenus.length;v++)P[k.hideMenus[v]]=!0;Menus.prototype.defaultMenuItems=Menus.prototype.defaultMenuItems.filter(function(T){return!P[T]})}else EditorUi.debug("Configuration Error: Array expected for hideMenus");null!=k.enableAi&&(Editor.enableAi=k.enableAi);+{},u=0;u<k.hideMenuItems.length;u++)Menus.prototype.hiddenMenuItems[k.hideMenuItems[u]]=!0;else EditorUi.debug("Configuration Error: Array expected for hideMenuItems");if(null!=k.hideMenus)if(Array.isArray(k.hideMenus)){var P={};for(u=0;u<k.hideMenus.length;u++)P[k.hideMenus[u]]=!0;Menus.prototype.defaultMenuItems=Menus.prototype.defaultMenuItems.filter(function(T){return!P[T]})}else EditorUi.debug("Configuration Error: Array expected for hideMenus");null!=k.enableAi&&(Editor.enableAi=k.enableAi);null!=k.enableChatGpt&&(Editor.enableAi=k.enableChatGpt);null!=k.gptApiKey&&(Editor.aiGlobals.gptApiKey=k.gptApiKey);null!=k.geminiApiKey&&(Editor.aiGlobals.geminiApiKey=k.geminiApiKey);null!=k.claudeApiKey&&(Editor.aiGlobals.claudeApiKey=k.claudeApiKey);null!=k.gptUrl&&null!=Editor.aiConfigs.gpt&&(Editor.aiConfigs.gpt.endpoint=k.gptUrl);null!=k.aiActions&&(Editor.aiActions=k.aiActions);null!=k.aiGlobals&&(Editor.aiGlobals=k.aiGlobals);null!=k.aiConfigs&&(Editor.aiConfigs=k.aiConfigs);null!=k.aiModels&&-(Editor.aiModels=k.aiModels)}};Editor.applyCustomResources=function(){if(null!=Editor.customResources){var k=null!=mxClient.language?mxClient.language.toLowerCase():null,v=null!=k?k.indexOf("-"):-1,H;for(H in Editor.customResources){var P=Editor.customResources[H];null!=P&&"object"===typeof P&&(P=(null!=k?P[k]:null)||(0<v?P[k.substring(0,v)]:null)||P.main);"string"===typeof P&&(mxResources.resources[H]=P)}}};var b=mxResources.parse;mxResources.parse=function(k){b.apply(this,arguments);Editor.applyCustomResources()};-Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.expandSvgPatterns=function(k){function v(ea,oa){ea=ea.getAttribute("fill");if(null==ea||0!==ea.indexOf("url("))return null;ea=ea.match(/url\([^#]*#([^)"]+)\)?/);if(null==ea)return null;ea=ea[1];try{var la=oa.querySelector("#"+CSS.escape(ea));return null!=la&&"pattern"===la.nodeName?la:null}catch(ca){return null}}function H(ea,oa,la){var ca,ta,xa;try{var qa=ea.getBBox()}catch(Ja){return}if(0!==+(Editor.aiModels=k.aiModels)}};Editor.applyCustomResources=function(){if(null!=Editor.customResources){var k=null!=mxClient.language?mxClient.language.toLowerCase():null,u=null!=k?k.indexOf("-"):-1,H;for(H in Editor.customResources){var P=Editor.customResources[H];null!=P&&"object"===typeof P&&(P=(null!=k?P[k]:null)||(0<u?P[k.substring(0,u)]:null)||P.main);"string"===typeof P&&(mxResources.resources[H]=P)}}};var b=mxResources.parse;mxResources.parse=function(k){b.apply(this,arguments);Editor.applyCustomResources()};+Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.expandSvgPatterns=function(k){function u(ea,oa){ea=ea.getAttribute("fill");if(null==ea||0!==ea.indexOf("url("))return null;ea=ea.match(/url\([^#]*#([^)"]+)\)?/);if(null==ea)return null;ea=ea[1];try{var la=oa.querySelector("#"+CSS.escape(ea));return null!=la&&"pattern"===la.nodeName?la:null}catch(ca){return null}}function H(ea,oa,la){var ca,ta,xa;try{var qa=ea.getBBox()}catch(Ja){return}if(0!==qa.width&&0!==qa.height){var Ba=parseFloat(oa.getAttribute("width")),na=parseFloat(oa.getAttribute("height"));if(!(isNaN(Ba)||isNaN(na)||0>=Ba||0>=na)){var ra=oa.getAttribute("patternTransform");var va=ta=ca=0;var Ha=xa=1;if(null!=ra){var La=ra.match(/translate\(\s*([^,\s]+)[,\s]+([^)]+)\)/);null!=La&&(ca=parseFloat(La[1]),ta=parseFloat(La[2]));La=ra.match(/rotate\(\s*([^)]+)\)/);null!=La&&(va=parseFloat(La[1])*Math.PI/180);ra=ra.match(/scale\(\s*([^,\s)]+)(?:[,\s]+([^)]+))?\)/);null!=ra&&(xa=parseFloat(ra[1]),Ha=null!=ra[2]?parseFloat(ra[2]):xa)}var Ga=[{x:qa.x,y:qa.y},{x:qa.x+qa.width,y:qa.y},{x:qa.x+qa.width,y:qa.y+qa.height},{x:qa.x,y:qa.y+qa.height}],Da=Infinity;qa=Infinity;La=ra=-Infinity;for(var Qa=0;Qa<Ga.length;Qa++){var Ka=Ga[Qa].x-ca;var Na=Ga[Qa].y-ta,Oa=Math.cos(-va),Fa=Math.sin(-va);var Aa=(Ka*Oa-Na*Fa)/xa;Ka=(Ka*Fa+Na*Oa)/Ha;Da=Math.min(Da,Aa);qa=Math.min(qa,Ka);ra=Math.max(ra,Aa);La=Math.max(La,Ka)}Da=Math.floor(Da/Ba)-1;qa=Math.floor(qa/na)-1;ra=Math.ceil(ra/Ba)+1;Aa=Math.ceil(La/na)+1;if(!(1E4<(ra-Da)*(Aa-qa))){Qa=T+ ++P;La=la.ownerDocument.createElementNS("http://www.w3.org/2000/svg","clipPath");La.setAttribute("id",Qa);Ga=ea.cloneNode(!0);Ga.removeAttribute("fill");Ga.removeAttribute("fill-opacity");Ga.removeAttribute("stroke");Ga.removeAttribute("stroke-width");Ga.removeAttribute("stroke-opacity");Ga.removeAttribute("style");Ga.removeAttribute("pointer-events");Ga.setAttribute("fill","black");La.appendChild(Ga);Ga=la.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");Ga.setAttribute("clip-path","url(#"+Qa+")");Qa=ea.getAttribute("fill-opacity");null!=Qa&&Ga.setAttribute("opacity",Qa);Qa=la.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");Qa.setAttribute("transform","translate("+ca+","+ta+")"+(0!==va?" rotate("+180*va/Math.PI+")":"")+" scale("+xa+(Ha!==xa?","+Ha:"")+")");ta=T+ ++P;ca=la.ownerDocument.createElementNS("http://www.w3.org/2000/svg","clipPath");ca.setAttribute("id",ta);va=la.ownerDocument.createElementNS("http://www.w3.org/2000/svg","rect");va.setAttribute("x","0");va.setAttribute("y","0");va.setAttribute("width",Ba);va.setAttribute("height",na);ca.appendChild(va);oa=oa.childNodes;for(va=Da;va<ra;va++)for(xa=qa;xa<Aa;xa++){Ha=la.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");Ha.setAttribute("transform","translate("+va*Ba+","+xa*na+")");Ha.setAttribute("clip-path","url(#"+ta+")");for(Da=0;Da<oa.length;Da++)1===oa[Da].nodeType&&Ha.appendChild(oa[Da].cloneNode(!0));Qa.appendChild(Ha)}Ga.appendChild(Qa);Ba=la.querySelector("defs");-null==Ba&&(Ba=la.ownerDocument.createElementNS("http://www.w3.org/2000/svg","defs"),la.insertBefore(Ba,la.firstChild));Ba.appendChild(La);Ba.appendChild(ca);ea.parentNode.insertBefore(Ga,ea.nextSibling);ea.setAttribute("fill","none");ea.style.fill=""}}}}for(var P=0,T="expand-pattern-clip-"+Editor.guid(8)+"-",W=k.querySelectorAll('[fill^="url("]'),ha=0;ha<W.length;ha++){var X=v(W[ha],k);null!=X&&H(W[ha],X,k)}W=k.querySelectorAll("[style]");for(ha=0;ha<W.length;ha++)X=W[ha].getAttribute("style"),null!=-X&&-1!==X.indexOf("url(")&&(X=v(W[ha],k),null!=X&&H(W[ha],X,k))};Editor.configureFontCss=function(k){if(null!=k){Editor.prototype.fontCss=k;var v=document.getElementsByTagName("script")[0];if(null!=v&&null!=v.parentNode){var H=document.createElement("style");H.setAttribute("type","text/css");H.appendChild(document.createTextNode(k));v.parentNode.insertBefore(H,v);k=k.split("url(");for(H=1;H<k.length;H++){var P=k[H].indexOf(")");P=Editor.trimCssUrl(k[H].substring(0,P));var T=document.createElement("link");-T.setAttribute("rel","preload");T.setAttribute("href",P);T.setAttribute("as","font");T.setAttribute("crossorigin","");v.parentNode.insertBefore(T,v)}}}};Editor.trimCssUrl=function(k){return k.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GOOGLE_FONTS_CSS2="https://fonts.googleapis.com/css2?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=-20;Editor.guid=function(k){k=null!=k?k:Editor.GUID_LENGTH;for(var v=[],H=0;H<k;H++)v.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));return v.join("")};Editor.updateStatusInterval=1E4;Editor.prototype.appName="draw.io";Editor.prototype.diagramFileTypes=[{description:"diagramXmlDesc",extension:"drawio",mimeType:"text/xml"},{description:"diagramPngDesc",extension:"png",mimeType:"image/png"},{description:"diagramSvgDesc",extension:"svg",mimeType:"image/svg"},-{description:"diagramHtmlDesc",extension:"html",mimeType:"text/html"}];Editor.prototype.libraryFileTypes=[{description:"Library (.drawiolib, .xml)",extensions:["drawiolib","xml"]}];Editor.prototype.fileExtensions=[{ext:"html",title:"filetypeHtml"},{ext:"png",title:"filetypePng"},{ext:"svg",title:"filetypeSvg"}];Editor.prototype.timeout=25E3;Editor.prototype.generateTimeout=9E4;Editor.prototype.editButtonLink=null!=urlParams.edit?decodeURIComponent(urlParams.edit):null;Editor.prototype.crossOriginImages=-!0;var d=Editor.prototype.setGraphXml;Editor.prototype.setGraphXml=function(k){k=null!=k&&"mxlibrary"!=k.nodeName?this.extractGraphModel(k):null;if(null!=k){var v=Editor.extractParserError(k,mxResources.get("invalidOrMissingFile"));if(v)throw EditorUi.debug("Editor.setGraphXml ParserError",[this],"node",[k],"cause",[v]),Error(mxResources.get("notADiagramFile")+" ("+v+")");if("mxGraphModel"==k.nodeName){v=k.getAttribute("style")||"default-style2";if("1"==urlParams.embed||null!=v&&""!=v)v!=this.graph.currentStyle&&-(H=null!=this.graph.themes?this.graph.themes[v]:mxUtils.load(STYLE_PATH+"/"+v+".xml").getDocumentElement(),null!=H&&(P=new mxCodec(H.ownerDocument),P.decode(H,this.graph.getStylesheet())));else{var H=null!=this.graph.themes?this.graph.themes["default-old"]:mxUtils.load(STYLE_PATH+"/default-old.xml").getDocumentElement();if(null!=H){var P=new mxCodec(H.ownerDocument);P.decode(H,this.graph.getStylesheet())}}this.graph.currentStyle=v;this.graph.mathEnabled="1"==urlParams.math||"1"==k.getAttribute("math");-this.graph.setAdaptiveColors(k.getAttribute("adaptiveColors"));v=k.getAttribute("backgroundImage");null!=v?this.graph.setBackgroundImage(this.graph.parseBackgroundImage(v)):this.graph.setBackgroundImage(null);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();this.graph.setShadowVisible("1"==k.getAttribute("shadow"),!1);if(v=k.getAttribute("extFonts"))try{for(v=v.split("|").map(function(T){T=T.split("^");return{name:T[0],-url:T[1]}}),H=0;H<v.length;H++)this.graph.addExtFont(v[H].name,v[H].url)}catch(T){console.log("ExtFonts format error: "+T.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}d.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||"Invalid data",toString:function(){return this.message}};};var m=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(k,v){k=null!=k?k:!0;var H=m.apply(this,arguments);null!=this.graph.currentStyle&&-"default-style2"!=this.graph.currentStyle&&H.setAttribute("style",this.graph.currentStyle);var P=this.graph.getBackgroundImageObject(this.graph.backgroundImage,v);null!=P&&H.setAttribute("backgroundImage",JSON.stringify(P));H.setAttribute("math",this.graph.mathEnabled?"1":"0");H.setAttribute("shadow",this.graph.shadowVisible?"1":"0");null!=this.graph.adaptiveColors?H.setAttribute("adaptiveColors",this.graph.adaptiveColors):H.removeAttribute("adaptiveColors");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&-(P=this.graph.extFonts.map(function(T){return T.name+"^"+T.url}),H.setAttribute("extFonts",P.join("|")));return H};Editor.prototype.isDataSvg=function(k){try{var v=mxUtils.parseXml(k).documentElement.getAttribute("content");if(null!=v&&(null!=v&&"<"!=v.charAt(0)&&"%"!=v.charAt(0)&&(v=unescape(window.atob?atob(v):Base64.decode(cont,v))),null!=v&&"%"==v.charAt(0)&&(v=decodeURIComponent(v)),null!=v&&0<v.length)){var H=mxUtils.parseXml(v).documentElement;return"mxfile"==H.nodeName||"mxGraphModel"==H.nodeName}}catch(P){}return!1};-Editor.prototype.extractGraphModel=function(k,v,H){return Editor.extractGraphModel.apply(this,arguments)};var p=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.setAdaptiveColors(null);this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();p.apply(this,arguments)};var t=Editor.prototype.updateGraphComponents;-Editor.prototype.updateGraphComponents=function(){t.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.safeMathJaxFilterUrl=function(k,v){var H=(v.replace(/[\t\n\r]/g,"").replace(/^[\u0000-\u0020]+/,"").match(/^([a-z][a-z0-9+.\-]*):/i)||[null,""])[1].toLowerCase(),P=k.allow.URLs;return"all"===P||"safe"===P&&(k.options.safeProtocols[H]||!H)?v:null};Editor.safeMathJaxFilterUrl.drawioPatched=-!0;Editor.patchMathJaxUrlFilter=function(k){k=null!=k?k:"undefined"!==typeof MathJax?MathJax:null;if(null!=k){var v=null!=k._&&null!=k._.ui&&null!=k._.ui.safe&&null!=k._.ui.safe.SafeMethods?k._.ui.safe.SafeMethods.SafeMethods:null;null==v||null==v.filterURL||v.filterURL.drawioPatched||(v.filterURL=Editor.safeMathJaxFilterUrl);k=null!=k.startup?k.startup.document:null;null==k||null==k.safe||null==k.safe.filterMethods||null==k.safe.filterMethods.filterURL||k.safe.filterMethods.filterURL.drawioPatched||-(k.safe.filterMethods.filterURL=Editor.safeMathJaxFilterUrl)}};Editor.safeMathJaxDataMacro=function(k,v,H,P){var T=k.setAttribute;k.setAttribute=function(W,ha,X){if("string"!==typeof ha||"data-"!==ha.substring(0,5)||ha.match(Editor.safeMathJaxDataPattern))return T.apply(this,arguments)};try{return v.apply(this,[H,P])}finally{k.setAttribute=T}};Editor.safeMathJaxDataPattern=/^data-mjx-/;Editor.patchMathJaxDataMacro=function(k){k=null!=k?k:"undefined"!==typeof MathJax?MathJax:null;k=null!=k&&null!=-k._&&null!=k._.input?k._.input.tex:null;if(null!=k&&null!=k.MapHandler&&null!=k.NodeUtil){var v=k.MapHandler.MapHandler.getMap("html_macros");v=null!=v&&null!=v.lookup?v.lookup("data"):null;if(null!=v&&null!=v._func&&!v._func.drawioPatched){var H=k.NodeUtil["default"],P=v._func;k=function(T,W){return Editor.safeMathJaxDataMacro(H,P,T,W)};k.drawioPatched=!0;v._func=k}}};Editor.patchMathJaxSafeFilters=function(k){Editor.patchMathJaxUrlFilter(k);Editor.patchMathJaxDataMacro(k)};Editor.initMath=function(k,-v){if("undefined"===typeof window.MathJax){var H=function(){P=null;Editor.mathJaxRendering=!1;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};k=null!=k?k:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var P=null;Editor.mathJaxRendering=!1;Editor.doMathJaxRender=function(ha){Editor.patchMathJaxSafeFilters();null!=MathJax.startup&&null!=MathJax.startup.output&&null!=MathJax.startup.output.options&&null!=MathJax.startup.output.options.linebreaks&&-(MathJax.startup.output.options.linebreaks.inline=!1);try{null==P?(MathJax.typesetClear([ha]),MathJax.typeset([ha]),H()):P!=ha&&Editor.mathJaxQueue.push(ha)}catch(X){MathJax.typesetClear([ha]),null!=X.retry?(P=ha,Editor.mathJaxRendering=!0,X.retry.then(function(){MathJax.typesetPromise([ha]).then(H)["catch"](function(ea){console.log("Error in MathJax.typesetPromise: "+ea.toString());H()})})["catch"](function(ea){console.log("Error in MathJax.retry: "+ea.toString());H()})):null!=window.console&&console.log("Error in MathJax.typeset: "+-X.toString())}};window.MathJax=null!=v?v:{options:{skipHtmlTags:{"[+]":["text"]},ignoreHtmlClass:"geDisableMathJax"},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe","[tex]/html"],paths:{fonts:DRAW_MATH_URL+"/fonts"}},output:{font:"mathjax-tex"},startup:{pageReady:function(){for(var ha=0;ha<Editor.mathJaxQueue.length;ha++)Editor.doMathJaxRender(Editor.mathJaxQueue[ha])}}};Editor.MathJaxRender=function(ha){"undefined"!==typeof MathJax&&-"function"===typeof MathJax.typeset?Editor.doMathJaxRender(ha):Editor.mathJaxQueue.push(ha)};Editor.onMathJaxDone=function(){};var T=Editor.prototype.init;Editor.prototype.init=function(){T.apply(this,arguments);var ha=mxUtils.bind(this,function(oa,la){null!=this.graph.container&&this.graph.mathEnabled&&(Editor.mathOutputSize&&(this.graph.container.style.visibility="hidden"),Editor.MathJaxRender(this.graph.container))});this.graph.model.addListener(mxEvent.CHANGE,ha);this.graph.addListener(mxEvent.REFRESH,-ha);var X=this.graph,ea=Editor.onMathJaxDone;Editor.onMathJaxDone=function(){null!=ea&&ea.apply(this,arguments);Editor.mathOutputSize&&null!=X&&X.mathEnabled&&(X.refreshMathBounds(),null!=X.container&&(X.container.style.visibility=""))}};v=document.getElementsByTagName("script");if(null!=v&&0<v.length){var W=document.createElement("script");W.setAttribute("type","text/javascript");W.setAttribute("src",k);v[0].parentNode.appendChild(W)}}};Editor.containsMath=function(k){return null!=k&&(0<=k.indexOf("$")||-0<=k.indexOf("\\(")||0<=k.indexOf("\\[")||0<=k.indexOf("\\begin{"))};(function(){var k=Graph.prototype.getPreferredSizeForCell,v=null;Graph.prototype.getPreferredSizeForCell=function(H,P,T){if(!Editor.mathOutputSize||!this.mathEnabled||"undefined"===typeof MathJax||"function"!==typeof MathJax.typeset||this.model.isEdge(H))return k.apply(this,arguments);var W=this.view.createState(H);W=null!=W?this.cellRenderer.getLabelValue(W):null;if(null==W||0===W.length||!Editor.containsMath(W))return k.apply(this,-arguments);var ha=mxUtils.getSizeForString;mxUtils.getSizeForString=function(X,ea,oa,la){null==v&&(v=document.createElement("div"),v.style.cssText="position:absolute;visibility:hidden;left:-10000px;top:-10000px;display:inline-block;",document.body.appendChild(v));v.style.fontSize=ea+"px";v.style.fontFamily=oa;null!=la&&0<la?(v.style.width=la+"px",v.style.whiteSpace="normal"):(v.style.width="",v.style.whiteSpace="nowrap");MathJax.typesetClear([v]);v.innerHTML=Graph.sanitizeHtml(X);try{MathJax.typeset([v]);-var ca=v.getBoundingClientRect();return new mxRectangle(0,0,ca.width,ca.height)}catch(ta){return ha.apply(this,arguments)}};try{return k.apply(this,arguments)}finally{mxUtils.getSizeForString=ha}}})();Graph.prototype.refreshMathBounds=function(){if(Editor.mathOutputSize&&this.mathEnabled){var k=this.view,v=!1;k.states.visit(mxUtils.bind(this,function(P,T){null!=T&&null!=T.text&&(P=this.cellRenderer.getLabelValue(T),"string"===typeof P&&Editor.containsMath(P)&&(T.text.updateBoundingBox(),v=!0))}));-if(v){var H=null!=k.currentRoot?k.currentRoot:this.model.getRoot();H=k.getState(H);null!=H&&(H=k.getBoundingBox(H,!0,!1),k.setGraphBounds(null!=H?H:k.getEmptyBounds()),this.sizeDidChange());this.fireEvent(new mxEventObject("mathRefreshed"))}}};(function(){var k=EditorUi.prototype.initialFitDiagram;EditorUi.prototype.initialFitDiagram=function(v){k.apply(this,arguments);var H=this.editor.graph;if(Editor.mathOutputSize&&null!=H&&H.mathEnabled){var P=arguments,T=this,W=!1,ha=function(){W||(W=!0,H.removeListener(ha),-H.zoomTo(1),T.resetScrollbars(),k.apply(T,P))};H.addListener("mathRefreshed",ha);Promise.resolve().then(function(){W||"undefined"===typeof MathJax||"function"!==typeof MathJax.typeset||null!=Editor.mathJaxQueue&&0<Editor.mathJaxQueue.length||Editor.mathJaxRendering||H.removeListener(ha)})}}})();Editor.prototype.csvToArray=function(k){if(0<k.length){var v="",H=[""],P=0,T=!0,W;k=$jscomp.makeIterator(k);for(W=k.next();!W.done;W=k.next())W=W.value,'"'===W?(T&&W===v&&(H[P]+=W),T=!T):","===W&&T?W=H[++P]=-"":H[P]+=W,v=W;return H}return[]};Editor.prototype.getProxiedUrl=function(k){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&!this.isCorsEnabledForUrl(k)){var v=EditorUi.isVisioFilename(k);v=/\.png$/i.test(k)||/\.pdf$/i.test(k)||v;var H="t="+(new Date).getTime();k=PROXY_URL+"?url="+encodeURIComponent(k)+"&"+H+(v?"&base64=1":"")}return k};Editor.prototype.isCorsEnabledForUrl=function(k){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||k.substring(0,-window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));return null!=this.corsRegExp&&this.corsRegExp.test(k)||"https://raw.githubusercontent.com/"===k.substring(0,34)||"https://icons.diagrams.net/"===k.substring(0,27)||"https://fonts.googleapis.com/"===k.substring(0,29)||"https://fonts.gstatic.com/"===k.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var k=new mxUrlConverter;-k.updateBaseUrl();var v=k.convert,H=this;k.convert=function(P){null!=P&&navigator.onLine&&("http://"!=P.substring(0,7)&&"https://"!=P.substring(0,8)||P.substring(0,k.baseUrl.length)==k.baseUrl||H.crossOriginImages&&H.isCorsEnabledForUrl(P)?"chrome-extension://"!=P.substring(0,19)&&(P=v.apply(this,arguments)):P=PROXY_URL+"?url="+encodeURIComponent(P));return P};return k};Editor.createSvgDataUri=function(k){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(k)))};Editor.prototype.convertImageToDataUri=-function(k,v,H,P,T){try{var W=!0,ha=window.setTimeout(mxUtils.bind(this,function(){W=!1;v(k)}),this.timeout),X=mxUtils.bind(this,function(){null!=P?this.convertImageToDataUri(k,v,H,P,!0):v(k)});if(/(\.svg)$/i.test(k)&&!T)mxUtils.get(k,mxUtils.bind(this,function(oa){window.clearTimeout(ha);W&&(200>oa.getStatus()||299<oa.getStatus()?X():v(Editor.createSvgDataUri(oa.getText())))}),mxUtils.bind(this,function(){window.clearTimeout(ha);W&&X()}));else{var ea=new Image;this.crossOriginImages&&(ea.crossOrigin=-"anonymous");ea.onload=function(){window.clearTimeout(ha);if(W)try{P=null!=P&&T?P:1;var oa=document.createElement("canvas");oa.height=ea.height*P;oa.width=ea.width*P;var la=oa.getContext("2d");la.scale(P,P);la.drawImage(ea,0,0);v(oa.toDataURL())}catch(ca){v(k)}};ea.onerror=function(){window.clearTimeout(ha);W&&(null!=H?H():v(k))};ea.src=k}}catch(oa){null!=H?H():v(k)}};Editor.prototype.convertImages=function(k,v,H,P){function T(){0<W.length?W.shift()():v(k)}null==P&&(P=this.createImageUrlConverter());-var W=[],ha=H||{};H=mxUtils.bind(this,function(ca,ta){ca=k.getElementsByTagName(ca);for(var xa=0;xa<ca.length;xa++)mxUtils.bind(this,function(qa){W.push(mxUtils.bind(this,function(){try{if(null!=qa){var Ba=P.convert(qa.getAttribute(ta));if(null!=Ba&&"data:"!=Ba.substring(0,5)){var na=ha[Ba];null==na?this.convertImageToDataUri(Ba,function(ra){null!=ra&&(ha[Ba]=ra,qa.setAttribute(ta,ra));T()},null,Editor.svgRasterScale):(qa.setAttribute(ta,na),T())}else null!=Ba&&qa.setAttribute(ta,Ba),T()}}catch(ra){T()}}))})(ca[xa])});-var X={},ea=function(){var ca=k.getElementsByTagName("defs")[0];null==ca&&(ca=k.ownerDocument,ca=null!=ca.createElementNS?ca.createElementNS(mxConstants.NS_SVG,"defs"):ca.createElement("defs"),k.insertBefore(ca,k.firstChild));return ca},oa=mxUtils.bind(this,function(){for(var ca=k.getElementsByTagName("use"),ta=0;ta<ca.length;ta++)mxUtils.bind(this,function(xa){W.push(mxUtils.bind(this,function(){try{var qa=xa.getAttribute("href");null==qa&&(qa=xa.getAttribute("xlink:href"));if(null!=qa&&"#"!=qa.charAt(0)&&-"data:"!=qa.substring(0,5)){var Ba=P.convert(qa),na=function(va){va=Graph.createSvgImageSymbol(ea(),X,va,!0);null!=va&&(xa.setAttribute("href","#"+va),xa.setAttribute("xlink:href","#"+va));T()},ra=ha[Ba];null==ra?this.convertImageToDataUri(Ba,function(va){null!=va&&va!=Ba&&(ha[Ba]=va);na(va)}):na(ra)}else T()}catch(va){T()}}))})(ca[ta])}),la=mxUtils.bind(this,function(){W.push(mxUtils.bind(this,function(){try{for(var ca=k.getElementsByTagName("image"),ta=[],xa=0;xa<ca.length;xa++)ta.push(ca[xa]);-var qa={},Ba={},na=[],ra=function(){for(var Oa=k.getElementsByTagName("use"),Fa=0;Fa<Oa.length;Fa++){var Aa=Oa[Fa].getAttribute("href");null==Aa&&(Aa=Oa[Fa].getAttribute("xlink:href"));null!=Aa&&null!=qa[Aa]&&(Oa[Fa].setAttribute("href","#"+qa[Aa]),Oa[Fa].setAttribute("xlink:href","#"+qa[Aa]))}},va=function(Oa,Fa){for(var Aa=null!=k.ownerDocument.createElementNS?k.ownerDocument.createElementNS(mxConstants.NS_SVG,"use"):k.ownerDocument.createElement("use"),Ja=Oa.attributes,Ia=0;Ia<Ja.length;Ia++){var Sa=-Ja[Ia].name;"href"!=Sa&&"xlink:href"!=Sa&&"preserveAspectRatio"!=Sa&&Aa.setAttribute(Sa,Ja[Ia].value)}Aa.setAttribute("href","#"+Fa);Aa.setAttribute("xlink:href","#"+Fa);Oa.parentNode.replaceChild(Aa,Oa)};for(xa=0;xa<ta.length;xa++){var Ha=ta[xa];ca=Ha;var La=!0;if("symbol"==Ha.parentNode.nodeName)if(null==Ha.getAttribute("id")&&"mx-image-"==String(Ha.parentNode.getAttribute("id")||"").substring(0,9))ca=Ha.parentNode,La=!1;else continue;else"mx-image-"==String(Ha.getAttribute("id")||"").substring(0,-9)&&(La=!1);var Ga=Ha.getAttribute("xlink:href");if(null!=Ga&&"data:"==Ga.substring(0,5)){var Da=ca.getAttribute("preserveAspectRatio")||"";if("data:image/svg+xml"==Ga.substring(0,18)){var Qa="mx-symbol-"+mxUtils.hashCode(Ga+"|"+("none"!=Da)),Ka=k.querySelector('[id="'+Qa+'"]');if(null!=Ka&&"symbol"==Ka.nodeName){La?va(Ha,Qa):(qa["#"+ca.getAttribute("id")]=Qa,ca.parentNode.removeChild(ca));continue}}null==Ba[Ga]&&(Ba[Ga]={},na.push(Ga));null==Ba[Ga][Da]&&(Ba[Ga][Da]=[]);Ba[Ga][Da].push({node:ca,inline:La})}}ra();-var Na=function(){for(var Oa=null,Fa=null;0<na.length&&null==Oa;){Oa=na.pop();Fa=Ba[Oa];var Aa=0,Ja=0,Ia;for(Ia in Fa)Aa++,Ja=Math.max(Ja,Fa[Ia].length);2>Aa&&2>Ja&&(Oa=null)}if(null==Oa)T();else{var Sa=new Image;Sa.onload=function(){try{var ab=Sa.naturalWidth,Va=Sa.naturalHeight;if(0<ab&&0<Va){var db=k.ownerDocument,Ea=0,$a;for($a in Fa)Ea++;var cb=function(Fb){return null!=db.createElementNS?db.createElementNS(mxConstants.NS_SVG,Fb):db.createElement(Fb)},Za=function(){var Fb=cb("image");Fb.setAttribute("width",-ab);Fb.setAttribute("height",Va);null==Fb.setAttributeNS?Fb.setAttribute("xlink:href",Oa):Fb.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",Oa);return Fb},eb=null;if(1<Ea){for(eb="mx-data-"+mxUtils.hashCode(Oa);null!=k.querySelector('[id="'+eb+'"]');)eb+="-1";var lb=Za();lb.setAttribute("id",eb);ea().appendChild(lb)}for($a in Fa){var wb=Fa[$a];Ea=null;for(lb=0;lb<wb.length&&null==Ea;lb++)wb[lb].inline||(Ea=wb[lb].node.getAttribute("id"));if(null==Ea)for(Ea="mx-image-"+mxUtils.hashCode(Oa+"|"+$a);null!=-k.querySelector('[id="'+Ea+'"]');)Ea+="-1";var rb=cb("symbol");rb.setAttribute("id",Ea);rb.setAttribute("viewBox","0 0 "+ab+" "+Va);""!=$a&&rb.setAttribute("preserveAspectRatio",$a);if(null!=eb){var xb=cb("use");xb.setAttribute("href","#"+eb);xb.setAttribute("xlink:href","#"+eb);rb.appendChild(xb)}else rb.appendChild(Za());ea().appendChild(rb);for(lb=0;lb<wb.length;lb++){var Jb=wb[lb].node;wb[lb].inline?va(Jb,Ea):(Jb.getAttribute("id")!=Ea&&(qa["#"+Jb.getAttribute("id")]=Ea),Jb.parentNode.removeChild(Jb))}}ra()}}catch(Fb){}Na()};-Sa.onerror=function(){Na()};Sa.src=Oa}};Na()}catch(Oa){T()}}))});H("image","xlink:href");H("img","src");oa();la();T()};Editor.base64Encode=function(k){for(var v="",H=0,P=k.length,T,W,ha;H<P;){T=k.charCodeAt(H++)&255;if(H==P){v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T>>2);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&3)<<4);v+="==";break}W=k.charCodeAt(H++);if(H==P){v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T>>-2);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&3)<<4|(W&240)>>4);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((W&15)<<2);v+="=";break}ha=k.charCodeAt(H++);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T>>2);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&3)<<4|(W&240)>>4);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((W&15)<<2|(ha&192)>>-6);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(ha&63)}return v};Editor.prototype.loadUrl=function(k,v,H,P,T,W,ha,X){try{var ea=!ha&&(P||/(\.png)($|\?)/i.test(k)||/(\.jpe?g)($|\?)/i.test(k)||/(\.gif)($|\?)/i.test(k)||/(\.pdf)($|\?)/i.test(k));T=null!=T?T:!0;var oa=mxUtils.bind(this,function(){mxUtils.get(k,mxUtils.bind(this,function(la){200<=la.getStatus()&&299>=la.getStatus()?null!=v&&(la=la.getText(),ea&&(W=null!=W?W:"data:image/png;base64,",la=W+Editor.base64Encode(la)),-v(la)):null!=H&&(0==la.getStatus()?H({message:mxResources.get("accessDenied")},la):404==la.getStatus()?H({message:mxResources.get("fileNotFound"),code:la.getStatus()},la):H({message:this.getErrorMessage(la)},la))}),function(la){null!=H&&H({message:mxResources.get("error")+" "+la.getStatus()})},ea,this.timeout,function(){T&&null!=H&&H({code:App.ERROR_TIMEOUT,retry:oa})},X)});oa()}catch(la){null!=H&&H(la)}};Editor.prototype.getErrorMessage=function(k){var v=mxResources.get("error")+" "+k.getStatus();-try{var H=k.getText(),P=JSON.parse(H);null!=P&&null!=P.error&&null!=P.error.message&&(v=P.error.message+" ("+v+")")}catch(T){}return v};Editor.prototype.absoluteCssFonts=function(k){var v=null;if(null!=k){var H=k.split("url(");if(0<H.length){v=[H[0]];k=window.location.pathname;var P=null!=k?k.lastIndexOf("/"):-1;0<=P&&(k=k.substring(0,P+1));P=document.getElementsByTagName("base");var T=null;null!=P&&0<P.length&&(T=P[0].getAttribute("href"));for(var W=1;W<H.length;W++)if(P=H[W].indexOf(")"),0<P){var ha=-Editor.trimCssUrl(H[W].substring(0,P));this.graph.isRelativeUrl(ha)&&(ha=null!=T?T+ha:window.location.protocol+"//"+window.location.hostname+("/"==ha.charAt(0)?"":k)+ha);v.push('url("'+ha+'"'+H[W].substring(P))}else v.push(H[W])}else v=[k]}return null!=v?v.join(""):null};Editor.prototype.mapFontUrl=function(k,v,H){/^https?:\/\//.test(v)&&!this.isCorsEnabledForUrl(v)&&(v=PROXY_URL+"?url="+encodeURIComponent(v));H(k,v)};Editor.prototype.embedCssFonts=function(k,v){var H=k.split("url("),P=0;null==this.cachedFonts&&-(this.cachedFonts=Object.create(null));var T=mxUtils.bind(this,function(){if(0==P){for(var ea=[H[0]],oa=1;oa<H.length;oa++){var la=H[oa].indexOf(")");ea.push('url("');ea.push(this.cachedFonts[Editor.trimCssUrl(H[oa].substring(0,la))]);ea.push('"'+H[oa].substring(la))}v(ea.join(""))}});if(0<H.length){for(k=1;k<H.length;k++){var W=H[k].indexOf(")"),ha=null,X=H[k].indexOf("format(",W);0<X&&(ha=Editor.trimCssUrl(H[k].substring(X+7,H[k].indexOf(")",X))));mxUtils.bind(this,function(ea){var oa=this.cachedFonts[ea];-if(null==oa){var la=[];this.cachedFonts[ea]=la;P++;oa="application/x-font-ttf";if("svg"==ha||/(\.svg)($|\?)/i.test(ea))oa="image/svg+xml";else if("otf"==ha||"embedded-opentype"==ha||/(\.otf)($|\?)/i.test(ea))oa="application/x-font-opentype";else if("woff"==ha||/(\.woff)($|\?)/i.test(ea))oa="application/font-woff";else if("woff2"==ha||/(\.woff2)($|\?)/i.test(ea))oa="application/font-woff2";else if("eot"==ha||/(\.eot)($|\?)/i.test(ea))oa="application/vnd.ms-fontobject";else if("sfnt"==ha||/(\.sfnt)($|\?)/i.test(ea))oa=-"application/font-sfnt";var ca=mxUtils.bind(this,function(ta){this.cachedFonts[ea]=ta;P--;T();for(ta=0;ta<la.length;ta++)la[ta]()});this.mapFontUrl(oa,ea,mxUtils.bind(this,function(ta,xa){this.loadUrl(xa,function(qa){ca(qa)},function(qa){ca(ea)},!0,null,"data:"+ta+";charset=utf-8;base64,")}))}else"string"!=typeof oa&&(P++,oa.push(function(){P--;T()}))})(Editor.trimCssUrl(H[k].substring(0,W)),ha)}T()}else v(k)};Editor.prototype.loadFonts=function(k){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,-mxUtils.bind(this,function(v){this.resolvedFontCss=v;null!=k&&k()})):null!=k&&k()};Editor.prototype.createGoogleFontCache=function(){var k={},v;for(v in Graph.fontMapping)Graph.isCssFontUrl(v)&&(k[v]=Graph.fontMapping[v]);return k};Editor.prototype.embedExtFonts=function(k,v){v=this.graph.getCustomFonts(v);if(0<v.length){var H=[],P=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var T=mxUtils.bind(this,function(){0==P&&this.embedCssFonts(H.join(""),k)}),W=-0;W<v.length;W++)mxUtils.bind(this,function(ha,X){Graph.isCssFontUrl(X)?null==this.cachedGoogleFonts[X]?(P++,this.loadUrl(Graph.rewriteGoogleFontUrl(X),mxUtils.bind(this,function(ea){this.cachedGoogleFonts[X]=ea;H.push(ea+"\n");P--;T()}),mxUtils.bind(this,function(ea){P--;H.push('@import url("'+Graph.escapeCssString(X)+'");\n');T()}))):H.push(this.cachedGoogleFonts[X]+"\n"):H.push('@font-face {font-family: "'+Graph.escapeCssString(ha)+'";src: url("'+Graph.escapeCssString(X)+'")}\n')})(v[W].name,v[W].url);-T()}else k()};Editor.prototype.addMathCss=function(k){k=k.getElementsByTagName("defs");if(null!=k&&0<k.length)for(var v=document.getElementsByTagName("style"),H=0;H<v.length;H++){var P=mxUtils.getTextContent(v[H]);0>P.indexOf("mxPageSelector")&&0<P.indexOf("MathJax")&&k[0].appendChild(v[H].cloneNode(!0))}};Editor.prototype.addFontCss=function(k,v){v=null!=v?v:this.absoluteCssFonts(this.fontCss);if(null!=v){var H=mxUtils.getSvgDefs(k),P=v.split("\n");v=[];for(var T=[],W=0;W<P.length;W++)"@import"==-P[W].substring(0,7)?v.push(P[W]):T.push(P[W]);k=k.ownerDocument;k=null!=k.createElementNS?k.createElementNS(mxConstants.NS_SVG,"style"):k.createElement("style");k.setAttribute("type","text/css");0<v.length&&(mxUtils.setTextContent(k,v.join("\n")),H.appendChild(k));0<T.length&&(k=k.cloneNode(!1),mxUtils.setTextContent(k,T.join("\n")),H.appendChild(k))}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||Editor.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(k,-v,H){var P=mxClient.IS_FF?8192:16384;return Math.min(H,Math.min(P/k,P/v))};Editor.prototype.exportToCanvas=function(k,v,H,P,T,W,ha,X,ea,oa,la,ca,ta,xa,qa,Ba,na,ra){try{W=null!=W?W:!0;ha=null!=ha?ha:!0;ca=null!=ca?ca:this.graph;ta=null!=ta?ta:0;var va=ea?null:ca.background;va==mxConstants.NONE&&(va=null);null==va&&(va=P);null==va&&0==ea&&(va=Editor.getDefaultPageBackgroundColor());this.convertImages(ca.getSvg(null,null,ta,xa,null,ha,null,null,null,oa,null,Ba,na,ra),mxUtils.bind(this,function(Ha){try{Ha.style.setProperty("-webkit-font-smoothing",-"antialiased");Ha.style.setProperty("-moz-osx-font-smoothing","grayscale");var La=new Image;La.onload=mxUtils.bind(this,function(){try{var Da=function(){mxClient.IS_SF?window.setTimeout(function(){Oa.drawImage(La,0,0);k(Qa,Ha)},0):(Oa.drawImage(La,0,0),k(Qa,Ha))},Qa=document.createElement("canvas"),Ka=parseInt(Ha.getAttribute("width")),Na=parseInt(Ha.getAttribute("height"));X=null!=X?X:1;null!=v&&(X=W?Math.min(1,Math.min(3*v/(4*Na),v/Ka)):v/Ka);X=this.getMaxCanvasScale(Ka,Na,X);Ka=Math.ceil(X*Ka);+null==Ba&&(Ba=la.ownerDocument.createElementNS("http://www.w3.org/2000/svg","defs"),la.insertBefore(Ba,la.firstChild));Ba.appendChild(La);Ba.appendChild(ca);ea.parentNode.insertBefore(Ga,ea.nextSibling);ea.setAttribute("fill","none");ea.style.fill=""}}}}for(var P=0,T="expand-pattern-clip-"+Editor.guid(8)+"-",W=k.querySelectorAll('[fill^="url("]'),ha=0;ha<W.length;ha++){var X=u(W[ha],k);null!=X&&H(W[ha],X,k)}W=k.querySelectorAll("[style]");for(ha=0;ha<W.length;ha++)X=W[ha].getAttribute("style"),null!=+X&&-1!==X.indexOf("url(")&&(X=u(W[ha],k),null!=X&&H(W[ha],X,k))};Editor.addAllowedFontUrl=function(k){"string"===typeof k&&0<k.length&&(Graph.allowedFontUrls[k]=!0)};Editor.addAllowedFontUrls=function(k){if(Array.isArray(k))for(var u=0;u<k.length;u++)null!=k[u]&&"object"===typeof k[u]&&Editor.addAllowedFontUrl(k[u].fontUrl)};Editor.configureFontCss=function(k){if(null!=k){Editor.prototype.fontCss=k;for(var u=k.split("url("),H=1;H<u.length;H++){var P=u[H].indexOf(")");0<P&&Editor.addAllowedFontUrl(Editor.trimCssUrl(u[H].substring(0,+P)))}u=document.getElementsByTagName("script")[0];if(null!=u&&null!=u.parentNode)for(H=document.createElement("style"),H.setAttribute("type","text/css"),H.appendChild(document.createTextNode(k)),u.parentNode.insertBefore(H,u),k=k.split("url("),H=1;H<k.length;H++){P=k[H].indexOf(")");P=Editor.trimCssUrl(k[H].substring(0,P));var T=document.createElement("link");T.setAttribute("rel","preload");T.setAttribute("href",P);T.setAttribute("as","font");T.setAttribute("crossorigin","");u.parentNode.insertBefore(T,+u)}}};Editor.trimCssUrl=function(k){return k.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GOOGLE_FONTS_CSS2="https://fonts.googleapis.com/css2?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(k){k=null!=k?k:Editor.GUID_LENGTH;for(var u=[],H=0;H<k;H++)u.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*+Editor.GUID_ALPHABET.length)));return u.join("")};Editor.updateStatusInterval=1E4;Editor.prototype.appName="draw.io";Editor.prototype.diagramFileTypes=[{description:"diagramXmlDesc",extension:"drawio",mimeType:"text/xml"},{description:"diagramPngDesc",extension:"png",mimeType:"image/png"},{description:"diagramSvgDesc",extension:"svg",mimeType:"image/svg"},{description:"diagramHtmlDesc",extension:"html",mimeType:"text/html"}];Editor.prototype.libraryFileTypes=[{description:"Library (.drawiolib, .xml)",+extensions:["drawiolib","xml"]}];Editor.prototype.fileExtensions=[{ext:"html",title:"filetypeHtml"},{ext:"png",title:"filetypePng"},{ext:"svg",title:"filetypeSvg"}];Editor.prototype.timeout=25E3;Editor.prototype.generateTimeout=9E4;Editor.prototype.editButtonLink=null!=urlParams.edit?decodeURIComponent(urlParams.edit):null;Editor.prototype.crossOriginImages=!0;var d=Editor.prototype.setGraphXml;Editor.prototype.setGraphXml=function(k){k=null!=k&&"mxlibrary"!=k.nodeName?this.extractGraphModel(k):null;+if(null!=k){var u=Editor.extractParserError(k,mxResources.get("invalidOrMissingFile"));if(u)throw EditorUi.debug("Editor.setGraphXml ParserError",[this],"node",[k],"cause",[u]),Error(mxResources.get("notADiagramFile")+" ("+u+")");if("mxGraphModel"==k.nodeName){u=k.getAttribute("style")||"default-style2";if("1"==urlParams.embed||null!=u&&""!=u)u!=this.graph.currentStyle&&(H=null!=this.graph.themes?this.graph.themes[u]:mxUtils.load(STYLE_PATH+"/"+u+".xml").getDocumentElement(),null!=H&&(P=new mxCodec(H.ownerDocument),+P.decode(H,this.graph.getStylesheet())));else{var H=null!=this.graph.themes?this.graph.themes["default-old"]:mxUtils.load(STYLE_PATH+"/default-old.xml").getDocumentElement();if(null!=H){var P=new mxCodec(H.ownerDocument);P.decode(H,this.graph.getStylesheet())}}this.graph.currentStyle=u;this.graph.mathEnabled="1"==urlParams.math||"1"==k.getAttribute("math");this.graph.setAdaptiveColors(k.getAttribute("adaptiveColors"));u=k.getAttribute("backgroundImage");null!=u?this.graph.setBackgroundImage(this.graph.parseBackgroundImage(u)):+this.graph.setBackgroundImage(null);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();this.graph.setShadowVisible("1"==k.getAttribute("shadow"),!1);if(u=k.getAttribute("extFonts"))try{for(u=u.split("|").map(function(T){T=T.split("^");return{name:T[0],url:T[1]}}),H=0;H<u.length;H++)this.graph.addExtFont(u[H].name,u[H].url)}catch(T){console.log("ExtFonts format error: "+T.message)}else null!=this.graph.extFonts&&+0<this.graph.extFonts.length&&(this.graph.extFonts=[])}d.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||"Invalid data",toString:function(){return this.message}};};var m=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(k,u){k=null!=k?k:!0;var H=m.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&H.setAttribute("style",this.graph.currentStyle);var P=this.graph.getBackgroundImageObject(this.graph.backgroundImage,+u);null!=P&&H.setAttribute("backgroundImage",JSON.stringify(P));H.setAttribute("math",this.graph.mathEnabled?"1":"0");H.setAttribute("shadow",this.graph.shadowVisible?"1":"0");null!=this.graph.adaptiveColors?H.setAttribute("adaptiveColors",this.graph.adaptiveColors):H.removeAttribute("adaptiveColors");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(P=this.graph.extFonts.map(function(T){return T.name+"^"+T.url}),H.setAttribute("extFonts",P.join("|")));return H};Editor.prototype.isDataSvg=+function(k){try{var u=mxUtils.parseXml(k).documentElement.getAttribute("content");if(null!=u&&(null!=u&&"<"!=u.charAt(0)&&"%"!=u.charAt(0)&&(u=unescape(window.atob?atob(u):Base64.decode(cont,u))),null!=u&&"%"==u.charAt(0)&&(u=decodeURIComponent(u)),null!=u&&0<u.length)){var H=mxUtils.parseXml(u).documentElement;return"mxfile"==H.nodeName||"mxGraphModel"==H.nodeName}}catch(P){}return!1};Editor.prototype.extractGraphModel=function(k,u,H){return Editor.extractGraphModel.apply(this,arguments)};var p=+Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.setAdaptiveColors(null);this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();p.apply(this,arguments)};var t=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){t.apply(this,arguments);this.graph.useCssTransforms=+!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.safeMathJaxFilterUrl=function(k,u){var H=(u.replace(/[\t\n\r]/g,"").replace(/^[\u0000-\u0020]+/,"").match(/^([a-z][a-z0-9+.\-]*):/i)||[null,""])[1].toLowerCase(),P=k.allow.URLs;return"all"===P||"safe"===P&&(k.options.safeProtocols[H]||!H)?u:null};Editor.safeMathJaxFilterUrl.drawioPatched=!0;Editor.patchMathJaxUrlFilter=function(k){k=null!=k?k:"undefined"!==typeof MathJax?MathJax:+null;if(null!=k){var u=null!=k._&&null!=k._.ui&&null!=k._.ui.safe&&null!=k._.ui.safe.SafeMethods?k._.ui.safe.SafeMethods.SafeMethods:null;null==u||null==u.filterURL||u.filterURL.drawioPatched||(u.filterURL=Editor.safeMathJaxFilterUrl);k=null!=k.startup?k.startup.document:null;null==k||null==k.safe||null==k.safe.filterMethods||null==k.safe.filterMethods.filterURL||k.safe.filterMethods.filterURL.drawioPatched||(k.safe.filterMethods.filterURL=Editor.safeMathJaxFilterUrl)}};Editor.safeMathJaxDataMacro=+function(k,u,H,P){var T=k.setAttribute;k.setAttribute=function(W,ha,X){if("string"!==typeof ha||"data-"!==ha.substring(0,5)||ha.match(Editor.safeMathJaxDataPattern))return T.apply(this,arguments)};try{return u.apply(this,[H,P])}finally{k.setAttribute=T}};Editor.safeMathJaxDataPattern=/^data-mjx-/;Editor.patchMathJaxDataMacro=function(k){k=null!=k?k:"undefined"!==typeof MathJax?MathJax:null;k=null!=k&&null!=k._&&null!=k._.input?k._.input.tex:null;if(null!=k&&null!=k.MapHandler&&null!=k.NodeUtil){var u=+k.MapHandler.MapHandler.getMap("html_macros");u=null!=u&&null!=u.lookup?u.lookup("data"):null;if(null!=u&&null!=u._func&&!u._func.drawioPatched){var H=k.NodeUtil["default"],P=u._func;k=function(T,W){return Editor.safeMathJaxDataMacro(H,P,T,W)};k.drawioPatched=!0;u._func=k}}};Editor.patchMathJaxSafeFilters=function(k){Editor.patchMathJaxUrlFilter(k);Editor.patchMathJaxDataMacro(k)};Editor.initMath=function(k,u){if("undefined"===typeof window.MathJax){var H=function(){P=null;Editor.mathJaxRendering=+!1;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};k=null!=k?k:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var P=null;Editor.mathJaxRendering=!1;Editor.doMathJaxRender=function(ha){Editor.patchMathJaxSafeFilters();null!=MathJax.startup&&null!=MathJax.startup.output&&null!=MathJax.startup.output.options&&null!=MathJax.startup.output.options.linebreaks&&(MathJax.startup.output.options.linebreaks.inline=!1);try{null==P?(MathJax.typesetClear([ha]),+MathJax.typeset([ha]),H()):P!=ha&&Editor.mathJaxQueue.push(ha)}catch(X){MathJax.typesetClear([ha]),null!=X.retry?(P=ha,Editor.mathJaxRendering=!0,X.retry.then(function(){MathJax.typesetPromise([ha]).then(H)["catch"](function(ea){console.log("Error in MathJax.typesetPromise: "+ea.toString());H()})})["catch"](function(ea){console.log("Error in MathJax.retry: "+ea.toString());H()})):null!=window.console&&console.log("Error in MathJax.typeset: "+X.toString())}};window.MathJax=null!=u?u:{options:{skipHtmlTags:{"[+]":["text"]},+ignoreHtmlClass:"geDisableMathJax"},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe","[tex]/html"],paths:{fonts:DRAW_MATH_URL+"/fonts"}},output:{font:"mathjax-tex"},startup:{pageReady:function(){for(var ha=0;ha<Editor.mathJaxQueue.length;ha++)Editor.doMathJaxRender(Editor.mathJaxQueue[ha])}}};Editor.MathJaxRender=function(ha){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(ha):Editor.mathJaxQueue.push(ha)};+Editor.onMathJaxDone=function(){};var T=Editor.prototype.init;Editor.prototype.init=function(){T.apply(this,arguments);var ha=mxUtils.bind(this,function(oa,la){null!=this.graph.container&&this.graph.mathEnabled&&(Editor.mathOutputSize&&(this.graph.container.style.visibility="hidden"),Editor.MathJaxRender(this.graph.container))});this.graph.model.addListener(mxEvent.CHANGE,ha);this.graph.addListener(mxEvent.REFRESH,ha);var X=this.graph,ea=Editor.onMathJaxDone;Editor.onMathJaxDone=function(){null!=+ea&&ea.apply(this,arguments);Editor.mathOutputSize&&null!=X&&X.mathEnabled&&(X.refreshMathBounds(),null!=X.container&&(X.container.style.visibility=""))}};u=document.getElementsByTagName("script");if(null!=u&&0<u.length){var W=document.createElement("script");W.setAttribute("type","text/javascript");W.setAttribute("src",k);u[0].parentNode.appendChild(W)}}};Editor.containsMath=function(k){return null!=k&&(0<=k.indexOf("$")||0<=k.indexOf("\\(")||0<=k.indexOf("\\[")||0<=k.indexOf("\\begin{"))};(function(){var k=+Graph.prototype.getPreferredSizeForCell,u=null;Graph.prototype.getPreferredSizeForCell=function(H,P,T){if(!Editor.mathOutputSize||!this.mathEnabled||"undefined"===typeof MathJax||"function"!==typeof MathJax.typeset||this.model.isEdge(H))return k.apply(this,arguments);var W=this.view.createState(H);W=null!=W?this.cellRenderer.getLabelValue(W):null;if(null==W||0===W.length||!Editor.containsMath(W))return k.apply(this,arguments);var ha=mxUtils.getSizeForString;mxUtils.getSizeForString=function(X,ea,+oa,la){null==u&&(u=document.createElement("div"),u.style.cssText="position:absolute;visibility:hidden;left:-10000px;top:-10000px;display:inline-block;",document.body.appendChild(u));u.style.fontSize=ea+"px";u.style.fontFamily=oa;null!=la&&0<la?(u.style.width=la+"px",u.style.whiteSpace="normal"):(u.style.width="",u.style.whiteSpace="nowrap");MathJax.typesetClear([u]);u.innerHTML=Graph.sanitizeHtml(X);try{MathJax.typeset([u]);var ca=u.getBoundingClientRect();return new mxRectangle(0,0,ca.width,ca.height)}catch(ta){return ha.apply(this,+arguments)}};try{return k.apply(this,arguments)}finally{mxUtils.getSizeForString=ha}}})();Graph.prototype.refreshMathBounds=function(){if(Editor.mathOutputSize&&this.mathEnabled){var k=this.view,u=!1;k.states.visit(mxUtils.bind(this,function(P,T){null!=T&&null!=T.text&&(P=this.cellRenderer.getLabelValue(T),"string"===typeof P&&Editor.containsMath(P)&&(T.text.updateBoundingBox(),u=!0))}));if(u){var H=null!=k.currentRoot?k.currentRoot:this.model.getRoot();H=k.getState(H);null!=H&&(H=k.getBoundingBox(H,+!0,!1),k.setGraphBounds(null!=H?H:k.getEmptyBounds()),this.sizeDidChange());this.fireEvent(new mxEventObject("mathRefreshed"))}}};(function(){var k=EditorUi.prototype.initialFitDiagram;EditorUi.prototype.initialFitDiagram=function(u){k.apply(this,arguments);var H=this.editor.graph;if(Editor.mathOutputSize&&null!=H&&H.mathEnabled){var P=arguments,T=this,W=!1,ha=function(){W||(W=!0,H.removeListener(ha),H.zoomTo(1),T.resetScrollbars(),k.apply(T,P))};H.addListener("mathRefreshed",ha);Promise.resolve().then(function(){W||+"undefined"===typeof MathJax||"function"!==typeof MathJax.typeset||null!=Editor.mathJaxQueue&&0<Editor.mathJaxQueue.length||Editor.mathJaxRendering||H.removeListener(ha)})}}})();Editor.prototype.csvToArray=function(k){if(0<k.length){var u="",H=[""],P=0,T=!0,W;k=$jscomp.makeIterator(k);for(W=k.next();!W.done;W=k.next())W=W.value,'"'===W?(T&&W===u&&(H[P]+=W),T=!T):","===W&&T?W=H[++P]="":H[P]+=W,u=W;return H}return[]};Editor.prototype.getProxiedUrl=function(k){if((/test\.draw\.io$/.test(window.location.hostname)||+/app\.diagrams\.net$/.test(window.location.hostname))&&!this.isCorsEnabledForUrl(k)){var u=EditorUi.isVisioFilename(k);u=/\.png$/i.test(k)||/\.pdf$/i.test(k)||u;var H="t="+(new Date).getTime();k=PROXY_URL+"?url="+encodeURIComponent(k)+"&"+H+(u?"&base64=1":"")}return k};Editor.prototype.isCorsEnabledForUrl=function(k){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||k.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=+new RegExp(decodeURIComponent(urlParams.cors)));return null!=this.corsRegExp&&this.corsRegExp.test(k)||"https://raw.githubusercontent.com/"===k.substring(0,34)||"https://icons.diagrams.net/"===k.substring(0,27)||"https://fonts.googleapis.com/"===k.substring(0,29)||"https://fonts.gstatic.com/"===k.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var k=new mxUrlConverter;k.updateBaseUrl();var u=k.convert,H=this;k.convert=function(P){null!=P&&navigator.onLine&&("http://"!=P.substring(0,+7)&&"https://"!=P.substring(0,8)||P.substring(0,k.baseUrl.length)==k.baseUrl||H.crossOriginImages&&H.isCorsEnabledForUrl(P)?"chrome-extension://"!=P.substring(0,19)&&(P=u.apply(this,arguments)):P=PROXY_URL+"?url="+encodeURIComponent(P));return P};return k};Editor.createSvgDataUri=function(k){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(k)))};Editor.prototype.convertImageToDataUri=function(k,u,H,P,T){try{var W=!0,ha=window.setTimeout(mxUtils.bind(this,function(){W=!1;u(k)}),+this.timeout),X=mxUtils.bind(this,function(){null!=P?this.convertImageToDataUri(k,u,H,P,!0):u(k)});if(/(\.svg)$/i.test(k)&&!T)mxUtils.get(k,mxUtils.bind(this,function(oa){window.clearTimeout(ha);W&&(200>oa.getStatus()||299<oa.getStatus()?X():u(Editor.createSvgDataUri(oa.getText())))}),mxUtils.bind(this,function(){window.clearTimeout(ha);W&&X()}));else{var ea=new Image;this.crossOriginImages&&(ea.crossOrigin="anonymous");ea.onload=function(){window.clearTimeout(ha);if(W)try{P=null!=P&&T?P:1;var oa=+document.createElement("canvas");oa.height=ea.height*P;oa.width=ea.width*P;var la=oa.getContext("2d");la.scale(P,P);la.drawImage(ea,0,0);u(oa.toDataURL())}catch(ca){u(k)}};ea.onerror=function(){window.clearTimeout(ha);W&&(null!=H?H():u(k))};ea.src=k}}catch(oa){null!=H?H():u(k)}};Editor.prototype.convertImages=function(k,u,H,P){function T(){0<W.length?W.shift()():u(k)}null==P&&(P=this.createImageUrlConverter());var W=[],ha=H||{};H=mxUtils.bind(this,function(ca,ta){ca=k.getElementsByTagName(ca);for(var xa=+0;xa<ca.length;xa++)mxUtils.bind(this,function(qa){W.push(mxUtils.bind(this,function(){try{if(null!=qa){var Ba=P.convert(qa.getAttribute(ta));if(null!=Ba&&"data:"!=Ba.substring(0,5)){var na=ha[Ba];null==na?this.convertImageToDataUri(Ba,function(ra){null!=ra&&(ha[Ba]=ra,qa.setAttribute(ta,ra));T()},null,Editor.svgRasterScale):(qa.setAttribute(ta,na),T())}else null!=Ba&&qa.setAttribute(ta,Ba),T()}}catch(ra){T()}}))})(ca[xa])});var X={},ea=function(){var ca=k.getElementsByTagName("defs")[0];null==ca&&+(ca=k.ownerDocument,ca=null!=ca.createElementNS?ca.createElementNS(mxConstants.NS_SVG,"defs"):ca.createElement("defs"),k.insertBefore(ca,k.firstChild));return ca},oa=mxUtils.bind(this,function(){for(var ca=k.getElementsByTagName("use"),ta=0;ta<ca.length;ta++)mxUtils.bind(this,function(xa){W.push(mxUtils.bind(this,function(){try{var qa=xa.getAttribute("href");null==qa&&(qa=xa.getAttribute("xlink:href"));if(null!=qa&&"#"!=qa.charAt(0)&&"data:"!=qa.substring(0,5)){var Ba=P.convert(qa),na=function(va){va=+Graph.createSvgImageSymbol(ea(),X,va,!0);null!=va&&(xa.setAttribute("href","#"+va),xa.setAttribute("xlink:href","#"+va));T()},ra=ha[Ba];null==ra?this.convertImageToDataUri(Ba,function(va){null!=va&&va!=Ba&&(ha[Ba]=va);na(va)}):na(ra)}else T()}catch(va){T()}}))})(ca[ta])}),la=mxUtils.bind(this,function(){W.push(mxUtils.bind(this,function(){try{for(var ca=k.getElementsByTagName("image"),ta=[],xa=0;xa<ca.length;xa++)ta.push(ca[xa]);var qa={},Ba={},na=[],ra=function(){for(var Oa=k.getElementsByTagName("use"),+Fa=0;Fa<Oa.length;Fa++){var Aa=Oa[Fa].getAttribute("href");null==Aa&&(Aa=Oa[Fa].getAttribute("xlink:href"));null!=Aa&&null!=qa[Aa]&&(Oa[Fa].setAttribute("href","#"+qa[Aa]),Oa[Fa].setAttribute("xlink:href","#"+qa[Aa]))}},va=function(Oa,Fa){for(var Aa=null!=k.ownerDocument.createElementNS?k.ownerDocument.createElementNS(mxConstants.NS_SVG,"use"):k.ownerDocument.createElement("use"),Ja=Oa.attributes,Ia=0;Ia<Ja.length;Ia++){var Sa=Ja[Ia].name;"href"!=Sa&&"xlink:href"!=Sa&&"preserveAspectRatio"!=Sa&&Aa.setAttribute(Sa,+Ja[Ia].value)}Aa.setAttribute("href","#"+Fa);Aa.setAttribute("xlink:href","#"+Fa);Oa.parentNode.replaceChild(Aa,Oa)};for(xa=0;xa<ta.length;xa++){var Ha=ta[xa];ca=Ha;var La=!0;if("symbol"==Ha.parentNode.nodeName)if(null==Ha.getAttribute("id")&&"mx-image-"==String(Ha.parentNode.getAttribute("id")||"").substring(0,9))ca=Ha.parentNode,La=!1;else continue;else"mx-image-"==String(Ha.getAttribute("id")||"").substring(0,9)&&(La=!1);var Ga=Ha.getAttribute("xlink:href");if(null!=Ga&&"data:"==Ga.substring(0,+5)){var Da=ca.getAttribute("preserveAspectRatio")||"";if("data:image/svg+xml"==Ga.substring(0,18)){var Qa="mx-symbol-"+mxUtils.hashCode(Ga+"|"+("none"!=Da)),Ka=k.querySelector('[id="'+Qa+'"]');if(null!=Ka&&"symbol"==Ka.nodeName){La?va(Ha,Qa):(qa["#"+ca.getAttribute("id")]=Qa,ca.parentNode.removeChild(ca));continue}}null==Ba[Ga]&&(Ba[Ga]={},na.push(Ga));null==Ba[Ga][Da]&&(Ba[Ga][Da]=[]);Ba[Ga][Da].push({node:ca,inline:La})}}ra();var Na=function(){for(var Oa=null,Fa=null;0<na.length&&null==Oa;){Oa=+na.pop();Fa=Ba[Oa];var Aa=0,Ja=0,Ia;for(Ia in Fa)Aa++,Ja=Math.max(Ja,Fa[Ia].length);2>Aa&&2>Ja&&(Oa=null)}if(null==Oa)T();else{var Sa=new Image;Sa.onload=function(){try{var ab=Sa.naturalWidth,Va=Sa.naturalHeight;if(0<ab&&0<Va){var db=k.ownerDocument,Ea=0,$a;for($a in Fa)Ea++;var cb=function(Fb){return null!=db.createElementNS?db.createElementNS(mxConstants.NS_SVG,Fb):db.createElement(Fb)},Za=function(){var Fb=cb("image");Fb.setAttribute("width",ab);Fb.setAttribute("height",Va);null==Fb.setAttributeNS?+Fb.setAttribute("xlink:href",Oa):Fb.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",Oa);return Fb},eb=null;if(1<Ea){for(eb="mx-data-"+mxUtils.hashCode(Oa);null!=k.querySelector('[id="'+eb+'"]');)eb+="-1";var lb=Za();lb.setAttribute("id",eb);ea().appendChild(lb)}for($a in Fa){var wb=Fa[$a];Ea=null;for(lb=0;lb<wb.length&&null==Ea;lb++)wb[lb].inline||(Ea=wb[lb].node.getAttribute("id"));if(null==Ea)for(Ea="mx-image-"+mxUtils.hashCode(Oa+"|"+$a);null!=k.querySelector('[id="'+Ea+'"]');)Ea+="-1";var rb=+cb("symbol");rb.setAttribute("id",Ea);rb.setAttribute("viewBox","0 0 "+ab+" "+Va);""!=$a&&rb.setAttribute("preserveAspectRatio",$a);if(null!=eb){var xb=cb("use");xb.setAttribute("href","#"+eb);xb.setAttribute("xlink:href","#"+eb);rb.appendChild(xb)}else rb.appendChild(Za());ea().appendChild(rb);for(lb=0;lb<wb.length;lb++){var Jb=wb[lb].node;wb[lb].inline?va(Jb,Ea):(Jb.getAttribute("id")!=Ea&&(qa["#"+Jb.getAttribute("id")]=Ea),Jb.parentNode.removeChild(Jb))}}ra()}}catch(Fb){}Na()};Sa.onerror=function(){Na()};+Sa.src=Oa}};Na()}catch(Oa){T()}}))});H("image","xlink:href");H("img","src");oa();la();T()};Editor.base64Encode=function(k){for(var u="",H=0,P=k.length,T,W,ha;H<P;){T=k.charCodeAt(H++)&255;if(H==P){u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T>>2);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&3)<<4);u+="==";break}W=k.charCodeAt(H++);if(H==P){u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T>>2);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&+3)<<4|(W&240)>>4);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((W&15)<<2);u+="=";break}ha=k.charCodeAt(H++);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T>>2);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&3)<<4|(W&240)>>4);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((W&15)<<2|(ha&192)>>6);u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(ha&+63)}return u};Editor.prototype.loadUrl=function(k,u,H,P,T,W,ha,X){try{var ea=!ha&&(P||/(\.png)($|\?)/i.test(k)||/(\.jpe?g)($|\?)/i.test(k)||/(\.gif)($|\?)/i.test(k)||/(\.pdf)($|\?)/i.test(k));T=null!=T?T:!0;var oa=mxUtils.bind(this,function(){mxUtils.get(k,mxUtils.bind(this,function(la){200<=la.getStatus()&&299>=la.getStatus()?null!=u&&(la=la.getText(),ea&&(W=null!=W?W:"data:image/png;base64,",la=W+Editor.base64Encode(la)),u(la)):null!=H&&(0==la.getStatus()?H({message:mxResources.get("accessDenied")},+la):404==la.getStatus()?H({message:mxResources.get("fileNotFound"),code:la.getStatus()},la):H({message:this.getErrorMessage(la)},la))}),function(la){null!=H&&H({message:mxResources.get("error")+" "+la.getStatus()})},ea,this.timeout,function(){T&&null!=H&&H({code:App.ERROR_TIMEOUT,retry:oa})},X)});oa()}catch(la){null!=H&&H(la)}};Editor.prototype.getErrorMessage=function(k){var u=mxResources.get("error")+" "+k.getStatus();try{var H=k.getText(),P=JSON.parse(H);null!=P&&null!=P.error&&null!=P.error.message&&+(u=P.error.message+" ("+u+")")}catch(T){}return u};Editor.prototype.absoluteCssFonts=function(k){var u=null;if(null!=k){var H=k.split("url(");if(0<H.length){u=[H[0]];k=window.location.pathname;var P=null!=k?k.lastIndexOf("/"):-1;0<=P&&(k=k.substring(0,P+1));P=document.getElementsByTagName("base");var T=null;null!=P&&0<P.length&&(T=P[0].getAttribute("href"));for(var W=1;W<H.length;W++)if(P=H[W].indexOf(")"),0<P){var ha=Editor.trimCssUrl(H[W].substring(0,P));this.graph.isRelativeUrl(ha)&&(ha=null!=+T?T+ha:window.location.protocol+"//"+window.location.hostname+("/"==ha.charAt(0)?"":k)+ha);u.push('url("'+ha+'"'+H[W].substring(P))}else u.push(H[W])}else u=[k]}return null!=u?u.join(""):null};Editor.prototype.mapFontUrl=function(k,u,H){/^https?:\/\//.test(u)&&!this.isCorsEnabledForUrl(u)&&(u=PROXY_URL+"?url="+encodeURIComponent(u));H(k,u)};Editor.prototype.embedCssFonts=function(k,u){var H=k.split("url("),P=0;null==this.cachedFonts&&(this.cachedFonts=Object.create(null));var T=mxUtils.bind(this,+function(){if(0==P){for(var ea=[H[0]],oa=1;oa<H.length;oa++){var la=H[oa].indexOf(")");ea.push('url("');ea.push(this.cachedFonts[Editor.trimCssUrl(H[oa].substring(0,la))]);ea.push('"'+H[oa].substring(la))}u(ea.join(""))}});if(0<H.length){for(k=1;k<H.length;k++){var W=H[k].indexOf(")"),ha=null,X=H[k].indexOf("format(",W);0<X&&(ha=Editor.trimCssUrl(H[k].substring(X+7,H[k].indexOf(")",X))));mxUtils.bind(this,function(ea){var oa=this.cachedFonts[ea];if(null==oa){var la=[];this.cachedFonts[ea]=la;P++;+oa="application/x-font-ttf";if("svg"==ha||/(\.svg)($|\?)/i.test(ea))oa="image/svg+xml";else if("otf"==ha||"embedded-opentype"==ha||/(\.otf)($|\?)/i.test(ea))oa="application/x-font-opentype";else if("woff"==ha||/(\.woff)($|\?)/i.test(ea))oa="application/font-woff";else if("woff2"==ha||/(\.woff2)($|\?)/i.test(ea))oa="application/font-woff2";else if("eot"==ha||/(\.eot)($|\?)/i.test(ea))oa="application/vnd.ms-fontobject";else if("sfnt"==ha||/(\.sfnt)($|\?)/i.test(ea))oa="application/font-sfnt";var ca=+mxUtils.bind(this,function(ta){this.cachedFonts[ea]=ta;P--;T();for(ta=0;ta<la.length;ta++)la[ta]()});this.mapFontUrl(oa,ea,mxUtils.bind(this,function(ta,xa){this.loadUrl(xa,function(qa){ca(qa)},function(qa){ca(ea)},!0,null,"data:"+ta+";charset=utf-8;base64,")}))}else"string"!=typeof oa&&(P++,oa.push(function(){P--;T()}))})(Editor.trimCssUrl(H[k].substring(0,W)),ha)}T()}else u(k)};Editor.prototype.loadFonts=function(k){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,+mxUtils.bind(this,function(u){this.resolvedFontCss=u;null!=k&&k()})):null!=k&&k()};Editor.prototype.createGoogleFontCache=function(){var k={},u;for(u in Graph.fontMapping)Graph.isCssFontUrl(u)&&(k[u]=Graph.fontMapping[u]);return k};Editor.prototype.embedExtFonts=function(k,u){u=this.graph.getCustomFonts(u);if(0<u.length){var H=[],P=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var T=mxUtils.bind(this,function(){0==P&&this.embedCssFonts(H.join(""),k)}),W=+0;W<u.length;W++)mxUtils.bind(this,function(ha,X){Graph.isCssFontUrl(X)?null==this.cachedGoogleFonts[X]?(P++,this.loadUrl(Graph.rewriteGoogleFontUrl(X),mxUtils.bind(this,function(ea){this.cachedGoogleFonts[X]=ea;H.push(ea+"\n");P--;T()}),mxUtils.bind(this,function(ea){P--;H.push('@import url("'+Graph.escapeCssString(X)+'");\n');T()}))):H.push(this.cachedGoogleFonts[X]+"\n"):H.push('@font-face {font-family: "'+Graph.escapeCssString(ha)+'";src: url("'+Graph.escapeCssString(X)+'")}\n')})(u[W].name,u[W].url);+T()}else k()};Editor.prototype.addMathCss=function(k){k=k.getElementsByTagName("defs");if(null!=k&&0<k.length)for(var u=document.getElementsByTagName("style"),H=0;H<u.length;H++){var P=mxUtils.getTextContent(u[H]);0>P.indexOf("mxPageSelector")&&0<P.indexOf("MathJax")&&k[0].appendChild(u[H].cloneNode(!0))}};Editor.prototype.addFontCss=function(k,u){u=null!=u?u:this.absoluteCssFonts(this.fontCss);if(null!=u){var H=mxUtils.getSvgDefs(k),P=u.split("\n");u=[];for(var T=[],W=0;W<P.length;W++)"@import"==+P[W].substring(0,7)?u.push(P[W]):T.push(P[W]);k=k.ownerDocument;k=null!=k.createElementNS?k.createElementNS(mxConstants.NS_SVG,"style"):k.createElement("style");k.setAttribute("type","text/css");0<u.length&&(mxUtils.setTextContent(k,u.join("\n")),H.appendChild(k));0<T.length&&(k=k.cloneNode(!1),mxUtils.setTextContent(k,T.join("\n")),H.appendChild(k))}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||Editor.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(k,+u,H){var P=mxClient.IS_FF?8192:16384;return Math.min(H,Math.min(P/k,P/u))};Editor.prototype.exportToCanvas=function(k,u,H,P,T,W,ha,X,ea,oa,la,ca,ta,xa,qa,Ba,na,ra){try{W=null!=W?W:!0;ha=null!=ha?ha:!0;ca=null!=ca?ca:this.graph;ta=null!=ta?ta:0;var va=ea?null:ca.background;va==mxConstants.NONE&&(va=null);null==va&&(va=P);null==va&&0==ea&&(va=Editor.getDefaultPageBackgroundColor());this.convertImages(ca.getSvg(null,null,ta,xa,null,ha,null,null,null,oa,null,Ba,na,ra),mxUtils.bind(this,function(Ha){try{Ha.style.setProperty("-webkit-font-smoothing",+"antialiased");Ha.style.setProperty("-moz-osx-font-smoothing","grayscale");var La=new Image;La.onload=mxUtils.bind(this,function(){try{var Da=function(){mxClient.IS_SF?window.setTimeout(function(){Oa.drawImage(La,0,0);k(Qa,Ha)},0):(Oa.drawImage(La,0,0),k(Qa,Ha))},Qa=document.createElement("canvas"),Ka=parseInt(Ha.getAttribute("width")),Na=parseInt(Ha.getAttribute("height"));X=null!=X?X:1;null!=u&&(X=W?Math.min(1,Math.min(3*u/(4*Na),u/Ka)):u/Ka);X=this.getMaxCanvasScale(Ka,Na,X);Ka=Math.ceil(X*Ka);Na=Math.ceil(X*Na);Qa.setAttribute("width",Ka);Qa.setAttribute("height",Na);var Oa=Qa.getContext("2d");if(null!=va){var Fa=mxUtils.getLightDarkColor(va);Oa.beginPath();Oa.rect(0,0,Ka,Na);Oa.fillStyle="dark"==Ba&&"none"!=ca.getAdaptiveColors()?Fa.dark:Fa.light;Oa.fill()}1!=X&&Oa.scale(X,X);if(qa){var Aa=ca.view,Ja=Aa.scale;Aa.scale=1;var Ia=btoa(unescape(encodeURIComponent(Aa.createSvgGrid(Aa.gridColor))));Aa.scale=Ja;Ia="data:image/svg+xml;base64,"+Ia;var Sa=ca.gridSize*Aa.gridSteps*X,ab=ca.getGraphBounds(),Va=Aa.translate.x*Ja,db=Aa.translate.y*Ja,Ea=Va+(ab.x-Va)/Ja-ta,$a=db+(ab.y-db)/Ja-ta,cb=new Image;cb.onload=function(){try{for(var Za=-Math.round(Sa-mxUtils.mod((Va-Ea)*X,Sa)),eb=-Math.round(Sa-mxUtils.mod((db-$a)*X,Sa));Za<Ka;Za+=Sa)for(var lb=eb;lb<Na;lb+=Sa)Oa.drawImage(cb,Za/X,lb/X);Da()}catch(wb){null!=T&&T(wb)}};cb.onerror=function(Za){null!=T&&T(Za)};cb.src=Ia}else Da()}catch(Za){null!=T&&T(Za)}});La.onerror=function(Da){null!=T&&T(Da)};oa&&this.graph.addSvgShadow(Ha);this.graph.mathEnabled&&this.addMathCss(Ha);var Ga=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(Ha,this.resolvedFontCss),La.src=Editor.createSvgDataUri(mxUtils.getXml(Ha))}catch(Da){null!=T&&T(Da)}});this.embedExtFonts(mxUtils.bind(this,function(Da){try{null!=Da&&this.addFontCss(Ha,Da),this.loadFonts(Ga)}catch(Qa){null!=T&&T(Qa)}}))}catch(Da){null!=T&&T(Da)}}),H,la)}catch(Ha){null!=T&&T(Ha)}};Editor.crcTable=[];for(var n=0;256>n;n++)for(var y=n,D=0;8>D;D++)y=1==(y&1)?3988292384^y>>>1:y>>>-1,Editor.crcTable[n]=y;Editor.updateCRC=function(k,v,H,P){for(var T=0;T<P;T++)k=Editor.crcTable[(k^v.charCodeAt(H+T))&255]^k>>>8;return k};Editor.crc32=function(k){for(var v=-1,H=0;H<k.length;H++)v=v>>>8^Editor.crcTable[(v^k.charCodeAt(H))&255];return(v^-1)>>>0};Editor.writeGraphModelToPng=function(k,v,H,P,T){function W(la,ca){var ta=ea;ea+=ca;return la.substring(ta,ea)}function ha(la){la=W(la,4);return la.charCodeAt(3)+(la.charCodeAt(2)<<8)+(la.charCodeAt(1)<<16)+(la.charCodeAt(0)<<24)}function X(la){return String.fromCharCode(la>>-24&255,la>>16&255,la>>8&255,la&255)}k=k.substring(k.indexOf(",")+1);k=window.atob?atob(k):Base64.decode(k,!0);var ea=0;if(W(k,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=T&&T();else if(W(k,4),"IHDR"!=W(k,4))null!=T&&T();else{W(k,17);T=k.substring(0,ea);do{var oa=ha(k);if("IDAT"==W(k,4)){T=k.substring(0,ea-8);"pHYs"==v&&"dpi"==H?(H=Math.round(P/.0254),H=X(H)+X(H)+String.fromCharCode(1)):H=H+String.fromCharCode(0)+("zTXt"==v?String.fromCharCode(0):"")+P;P=4294967295;P=-Editor.updateCRC(P,v,0,4);P=Editor.updateCRC(P,H,0,H.length);T+=X(H.length)+v+H+X(P^4294967295);T+=k.substring(ea-8,k.length);break}T+=k.substring(ea-8,ea-4+oa);W(k,oa);W(k,4)}while(oa);return"data:image/png;base64,"+(window.btoa?btoa(T):Base64.encode(T,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var O=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(k,v){O.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);-mxSettings.save()};var F=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){F.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(k,v,H){var P=null;if(null!=H)return null;null!=k.editor.graph.getModel().getParent(v)?P=v.getId():null!=k.currentPage&&(P=k.currentPage.getId());return P});if(null!=window.StyleFormatPanel){var N=Format.prototype.init;Format.prototype.init=+1,Editor.crcTable[n]=y;Editor.updateCRC=function(k,u,H,P){for(var T=0;T<P;T++)k=Editor.crcTable[(k^u.charCodeAt(H+T))&255]^k>>>8;return k};Editor.crc32=function(k){for(var u=-1,H=0;H<k.length;H++)u=u>>>8^Editor.crcTable[(u^k.charCodeAt(H))&255];return(u^-1)>>>0};Editor.writeGraphModelToPng=function(k,u,H,P,T){function W(la,ca){var ta=ea;ea+=ca;return la.substring(ta,ea)}function ha(la){la=W(la,4);return la.charCodeAt(3)+(la.charCodeAt(2)<<8)+(la.charCodeAt(1)<<16)+(la.charCodeAt(0)<<24)}function X(la){return String.fromCharCode(la>>+24&255,la>>16&255,la>>8&255,la&255)}k=k.substring(k.indexOf(",")+1);k=window.atob?atob(k):Base64.decode(k,!0);var ea=0;if(W(k,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=T&&T();else if(W(k,4),"IHDR"!=W(k,4))null!=T&&T();else{W(k,17);T=k.substring(0,ea);do{var oa=ha(k);if("IDAT"==W(k,4)){T=k.substring(0,ea-8);"pHYs"==u&&"dpi"==H?(H=Math.round(P/.0254),H=X(H)+X(H)+String.fromCharCode(1)):H=H+String.fromCharCode(0)+("zTXt"==u?String.fromCharCode(0):"")+P;P=4294967295;P=+Editor.updateCRC(P,u,0,4);P=Editor.updateCRC(P,H,0,H.length);T+=X(H.length)+u+H+X(P^4294967295);T+=k.substring(ea-8,k.length);break}T+=k.substring(ea-8,ea-4+oa);W(k,oa);W(k,4)}while(oa);return"data:image/png;base64,"+(window.btoa?btoa(T):Base64.encode(T,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var O=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(k,u){O.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);+mxSettings.save()};var F=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){F.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(k,u,H){var P=null;if(null!=H)return null;null!=k.editor.graph.getModel().getParent(u)?P=u.getId():null!=k.currentPage&&(P=k.currentPage.getId());return P});if(null!=window.StyleFormatPanel){var N=Format.prototype.init;Format.prototype.init=function(){N.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var R=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?R.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(k){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var c=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=-function(k){k=c.apply(this,arguments);var v=this.editorUi,H=v.editor.graph;if(H.isEnabled()){var P=v.getCurrentFile();null!=P&&P.isAutosaveOptional()&&k.appendChild(this.createOption(mxResources.get("autosave"),function(){return v.editor.autosave},function(W){v.editor.setAutosave(W);v.editor.autosave&&P.isModified()&&P.fileChanged()},{install:function(W){this.listener=function(){W(v.editor.autosave)};v.editor.addListener("autosaveChanged",this.listener)},destroy:function(){v.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&-H.isEnabled()&&"undefined"!==typeof MathJax){var T=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return H.mathEnabled},function(W){v.actions.get("mathematicalTypesetting").funct()},{install:function(W){this.listener=function(){W(H.mathEnabled)};v.addListener("mathEnabledChanged",this.listener)},destroy:function(){v.removeListener(this.listener)}});k.appendChild(T);(!v.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&T.appendChild(v.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting"))}return k};-mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1},{name:"footerSize",dispName:"Footer Size",type:"float",min:0,defVal:0},{name:"footerColor",dispName:"Footer Color",type:"color",defVal:null,primary:!0,isVisible:function(k,v){return 0<mxUtils.getValue(k.style,"footerSize",0)}}];mxCellRenderer.defaultShapes.ellipse.prototype.customProperties=-[{name:"centerRadius",dispName:"Center Radius",type:"float",min:0,defVal:0},{name:"centerColor",dispName:"Center Color",type:"color",defVal:null,primary:!0,isVisible:function(k,v){return 0<mxUtils.getValue(k.style,"centerRadius",0)}}];mxCellRenderer.defaultShapes.link.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,defVal:4}];mxCellRenderer.defaultShapes.zigzag.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:5,defVal:20}];mxCellRenderer.defaultShapes.flexArrow.prototype.customProperties=+function(k){k=c.apply(this,arguments);var u=this.editorUi,H=u.editor.graph;if(H.isEnabled()){var P=u.getCurrentFile();null!=P&&P.isAutosaveOptional()&&k.appendChild(this.createOption(mxResources.get("autosave"),function(){return u.editor.autosave},function(W){u.editor.setAutosave(W);u.editor.autosave&&P.isModified()&&P.fileChanged()},{install:function(W){this.listener=function(){W(u.editor.autosave)};u.editor.addListener("autosaveChanged",this.listener)},destroy:function(){u.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&+H.isEnabled()&&"undefined"!==typeof MathJax){var T=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return H.mathEnabled},function(W){u.actions.get("mathematicalTypesetting").funct()},{install:function(W){this.listener=function(){W(H.mathEnabled)};u.addListener("mathEnabledChanged",this.listener)},destroy:function(){u.removeListener(this.listener)}});k.appendChild(T);(!u.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&T.appendChild(u.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting"))}return k};+mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1},{name:"footerSize",dispName:"Footer Size",type:"float",min:0,defVal:0},{name:"footerColor",dispName:"Footer Color",type:"color",defVal:null,primary:!0,isVisible:function(k,u){return 0<mxUtils.getValue(k.style,"footerSize",0)}}];mxCellRenderer.defaultShapes.ellipse.prototype.customProperties=+[{name:"centerRadius",dispName:"Center Radius",type:"float",min:0,defVal:0},{name:"centerColor",dispName:"Center Color",type:"color",defVal:null,primary:!0,isVisible:function(k,u){return 0<mxUtils.getValue(k.style,"centerRadius",0)}}];mxCellRenderer.defaultShapes.link.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,defVal:4}];mxCellRenderer.defaultShapes.zigzag.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:5,defVal:20}];mxCellRenderer.defaultShapes.flexArrow.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,defVal:10},{name:"startWidth",dispName:"Start Width",type:"float",min:0,defVal:20},{name:"endWidth",dispName:"End Width",type:"float",min:0,defVal:20}];mxCellRenderer.defaultShapes.process.prototype.customProperties=[{name:"size",dispName:"Indent",type:"float",min:0,max:.5,defVal:.1}];mxCellRenderer.defaultShapes.rhombus.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,max:50,defVal:mxConstants.LINE_ARCSIZE},{name:"double",dispName:"Double",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.partialRectangle.prototype.customProperties=[{name:"top",dispName:"Top Line",type:"bool",defVal:!0},{name:"bottom",dispName:"Bottom Line",type:"bool",defVal:!0},{name:"left",dispName:"Left Line",type:"bool",defVal:!0},{name:"right",dispName:"Right Line",type:"bool",defVal:!0}];mxCellRenderer.defaultShapes.parallelogram.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"size",dispName:"Slope Angle",type:"float",min:0,max:1,defVal:.2,isVisible:function(k){return"0"==mxUtils.getValue(k.style,"fixedSize","0")}},{name:"size",dispName:"Slope Angle",type:"float",min:0,defVal:20,isVisible:function(k){return"1"==mxUtils.getValue(k.style,"fixedSize","0")}}];mxCellRenderer.defaultShapes.hexagon.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"size",dispName:"Slope Angle",type:"float",min:0,max:1,@@ -3964,12 +3965,12 @@ dispName:"Dark Opacity",type:"float",min:-1,max:1,defVal:0},{name:"darkOpacity2"{name:"size",dispName:"Callout Length",type:"float",min:0,defVal:30},{name:"position",dispName:"Callout Position",type:"float",min:0,max:1,defVal:.5},{name:"position2",dispName:"Callout Tip Position",type:"float",min:0,max:1,defVal:.5}];mxCellRenderer.defaultShapes.wedgeCallout.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"tipX",dispName:"Tip X",type:"float",min:-100,max:100,defVal:-.25},{name:"tipY",dispName:"Tip Y",type:"float",min:-100,max:100,defVal:1},{name:"base",dispName:"Callout Width",type:"float",min:0,defVal:20}];mxCellRenderer.defaultShapes.folder.prototype.customProperties=[{name:"tabWidth",dispName:"Tab Width",type:"float"},{name:"tabHeight",dispName:"Tab Height",type:"float"},{name:"tabPosition",dispName:"Tap Position",type:"enum",enumList:[{val:"left",dispName:"Left"},{val:"right",dispName:"Right"}]},{name:"boundedLbl",dispName:"Bounded Label",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.swimlane.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:15},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1},{name:"startSize",dispName:"Header Size",type:"float"},{name:"footerSize",dispName:"Footer Size",type:"float",min:0,defVal:0},{name:"swimlaneHead",dispName:"Head Border",type:"bool",defVal:!0},{name:"swimlaneBody",dispName:"Body Border",type:"bool",defVal:!0},{name:"horizontal",dispName:"Horizontal",type:"bool",defVal:!0},{name:"separatorColor",dispName:"Separator Color",-type:"color",defVal:null},{name:"fixedHeader",dispName:"Fixed Header",type:"bool",defVal:!0,getDefaultValue:function(k,v){k=mxCellRenderer.defaultShapes[mxUtils.getValue(k.style,"shape","")];return null!=k&&null!=k.prototype.fixedHeaderDefault?k.prototype.fixedHeaderDefault?"1":"0":"1"}}];mxCellRenderer.defaultShapes.table.prototype.customProperties=[{name:"rowLines",dispName:"Row Lines",type:"bool",defVal:!0},{name:"columnLines",dispName:"Column Lines",type:"bool",defVal:!0},{name:"fixedRows",dispName:"Fixed Rows",+type:"color",defVal:null},{name:"fixedHeader",dispName:"Fixed Header",type:"bool",defVal:!0,getDefaultValue:function(k,u){k=mxCellRenderer.defaultShapes[mxUtils.getValue(k.style,"shape","")];return null!=k&&null!=k.prototype.fixedHeaderDefault?k.prototype.fixedHeaderDefault?"1":"0":"1"}}];mxCellRenderer.defaultShapes.table.prototype.customProperties=[{name:"rowLines",dispName:"Row Lines",type:"bool",defVal:!0},{name:"columnLines",dispName:"Column Lines",type:"bool",defVal:!0},{name:"fixedRows",dispName:"Fixed Rows",type:"bool",defVal:!1},{name:"resizeLast",dispName:"Resize Last Column",type:"bool",defVal:!1},{name:"resizeLastRow",dispName:"Resize Last Row",type:"bool",defVal:!1}].concat(mxCellRenderer.defaultShapes.swimlane.prototype.customProperties).concat(mxCellRenderer.defaultShapes.partialRectangle.prototype.customProperties);mxCellRenderer.defaultShapes.tableRow.prototype.customProperties=mxCellRenderer.defaultShapes.swimlane.prototype.customProperties.concat(mxCellRenderer.defaultShapes.partialRectangle.prototype.customProperties);mxCellRenderer.defaultShapes.doubleEllipse.prototype.customProperties=[{name:"margin",dispName:"Indent",type:"float",min:0,defVal:4}];mxCellRenderer.defaultShapes.ext.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:15},{name:"double",dispName:"Double",type:"bool",defVal:!1},{name:"margin",dispName:"Indent",type:"float",min:0,defVal:0}];mxCellRenderer.defaultShapes.curlyBracket.prototype.customProperties=[{name:"rounded",dispName:"Rounded",type:"bool",defVal:!0},{name:"size",dispName:"Size",type:"float",min:0,max:1,defVal:.5}];mxCellRenderer.defaultShapes.image.prototype.customProperties=[{name:"imageAspect",dispName:"Fixed Image Aspect",type:"bool",defVal:!0}];mxCellRenderer.defaultShapes.label.prototype.customProperties=[{name:"imageAspect",dispName:"Fixed Image Aspect",type:"bool",defVal:!0},{name:"imageAlign",dispName:"Image Align",type:"enum",enumList:[{val:"left",dispName:"Left"},{val:"center",dispName:"Center"},{val:"right",dispName:"Right"}],defVal:"left"},{name:"imageVerticalAlign",dispName:"Image Vertical Align",type:"enum",enumList:[{val:"top",dispName:"Top"},{val:"middle",dispName:"Middle"},{val:"bottom",dispName:"Bottom"}],defVal:"middle"},{name:"imageWidth",dispName:"Image Width",type:"float",min:0,defVal:24},{name:"imageHeight",dispName:"Image Height",type:"float",min:0,defVal:24},{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:12},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1},{name:"footerSize",dispName:"Footer Size",-type:"float",min:0,defVal:0},{name:"footerColor",dispName:"Footer Color",type:"color",defVal:null,primary:!0,isVisible:function(k,v){return 0<mxUtils.getValue(k.style,"footerSize",0)}}];mxCellRenderer.defaultShapes.dataStorage.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:0,max:1,defVal:.1}];mxCellRenderer.defaultShapes.manualInput.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:0,defVal:30},{name:"arcSize",dispName:"Arc Size",type:"float",min:0,+type:"float",min:0,defVal:0},{name:"footerColor",dispName:"Footer Color",type:"color",defVal:null,primary:!0,isVisible:function(k,u){return 0<mxUtils.getValue(k.style,"footerSize",0)}}];mxCellRenderer.defaultShapes.dataStorage.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:0,max:1,defVal:.1}];mxCellRenderer.defaultShapes.manualInput.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:0,defVal:30},{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:20},{name:"boundedLbl",dispName:"Bounded Label",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.loopLimit.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:0,defVal:20},{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:20}];mxCellRenderer.defaultShapes.offPageConnector.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:0,defVal:38},{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:20}];mxCellRenderer.defaultShapes.display.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:0,max:1,defVal:.25}];mxCellRenderer.defaultShapes.singleArrow.prototype.customProperties=[{name:"arrowWidth",dispName:"Arrow Width",type:"float",min:0,max:1,defVal:.3},{name:"arrowSize",dispName:"Arrowhead Length",type:"float",min:0,max:1,defVal:.2}];mxCellRenderer.defaultShapes.doubleArrow.prototype.customProperties=[{name:"arrowWidth",dispName:"Arrow Width",type:"float",min:0,max:1,defVal:.3},{name:"arrowSize",dispName:"Arrowhead Length",type:"float",min:0,max:1,defVal:.2}];mxCellRenderer.defaultShapes.cross.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:0,max:1,defVal:.2}];mxCellRenderer.defaultShapes.corner.prototype.customProperties=[{name:"dx",dispName:"Width1",type:"float",min:0,defVal:20},{name:"dy",dispName:"Width2",type:"float",min:0,defVal:20}];mxCellRenderer.defaultShapes.tee.prototype.customProperties=[{name:"dx",dispName:"Width1",type:"float",min:0,defVal:20},{name:"dy",dispName:"Width2",type:"float",min:0,@@ -3979,7 +3980,7 @@ font:"#ffffff"},{fill:"#008a00",stroke:"#005700",font:"#ffffff"},{fill:"#1ba1e2"{fill:"#6d8764",stroke:"#3A5431",font:"#ffffff"},{fill:"#647687",stroke:"#314354",font:"#ffffff"},{fill:"#76608a",stroke:"#432D57",font:"#ffffff"},{fill:"#a0522d",stroke:"#6D1F00",font:"#ffffff"}],[{fill:"",stroke:""},{fill:mxConstants.NONE,stroke:""},{fill:"#fad7ac",stroke:"#b46504"},{fill:"#fad9d5",stroke:"#ae4132"},{fill:"#b0e3e6",stroke:"#0e8088"},{fill:"#b1ddf0",stroke:"#10739e"},{fill:"#d0cee2",stroke:"#56517e"},{fill:"#bac8d3",stroke:"#23445d"}],[{fill:"",stroke:""},{fill:"#f5f5f5",stroke:"#666666",gradient:"#b3b3b3"},{fill:"#dae8fc",stroke:"#6c8ebf",gradient:"#7ea6e0"},{fill:"#d5e8d4",stroke:"#82b366",gradient:"#97d077"},{fill:"#ffcd28",stroke:"#d79b00",gradient:"#ffa500"},{fill:"#fff2cc",stroke:"#d6b656",gradient:"#ffd966"},{fill:"#f8cecc",stroke:"#b85450",gradient:"#ea6b66"},{fill:"#e6d0de",stroke:"#996185",gradient:"#d5739d"}],[{fill:"",stroke:""},{fill:"#eeeeee",stroke:"#36393d"},{fill:"#f9f7ed",stroke:"#36393d"},{fill:"#ffcc99",stroke:"#36393d"},{fill:"#cce5ff",stroke:"#36393d"},{fill:"#ffff88",stroke:"#36393d"},{fill:"#cdeb8b",stroke:"#36393d"},{fill:"#ffcccc",stroke:"#36393d"}]];StyleFormatPanel.prototype.customColorSchemes=null;var f=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init=function(){var k=this.editorUi.getSelectionState();null!=this.defaultColorSchemes&&0<this.defaultColorSchemes.length&&0<k.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));f.apply(this,arguments);null!=k.customProperties&&this.container.appendChild(this.addProperties(this.createPanel(),-k.customProperties,k))};var l=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(k){var v=this.editorUi.getSelectionState();1==v.cells.length?this.addActions(k,["copyStyle","pasteStyle"]):1<=v.cells.length&&this.addActions(k,["pasteStyle","pasteData"]);l.apply(this,arguments);return k};EditorUi.prototype.propertiesCollapsed=!0;BaseFormatPanel.prototype.addProperties=function(k,v,H,P){function T(Oa,Fa,Aa,Ja,Ia){if(null!=Aa.valueChanged)Aa.valueChanged(Fa,Ia,H,ca);+k.customProperties,k))};var l=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(k){var u=this.editorUi.getSelectionState();1==u.cells.length?this.addActions(k,["copyStyle","pasteStyle"]):1<=u.cells.length&&this.addActions(k,["pasteStyle","pasteData"]);l.apply(this,arguments);return k};EditorUi.prototype.propertiesCollapsed=!0;BaseFormatPanel.prototype.addProperties=function(k,u,H,P){function T(Oa,Fa,Aa,Ja,Ia){if(null!=Aa.valueChanged)Aa.valueChanged(Fa,Ia,H,ca);else{ta.getModel().beginUpdate();try{Ia=[];var Sa=[];if(null!=Aa.index){for(var ab=[],Va=Aa.parentRow.nextSibling;Va&&Va.getAttribute("data-pName")==Oa;)ab.push(Va.getAttribute("data-pValue")),Va=Va.nextSibling;Aa.index<ab.length?null!=Ja?ab.splice(Ja,1):ab[Aa.index]=Fa:ab.push(Fa);null!=Aa.size&&ab.length>Aa.size&&(ab=ab.slice(0,Aa.size));Fa=ab.join(",");null!=Aa.countProperty&&(ta.setCellStyles(Aa.countProperty,ab.length,ta.getSelectionCells()),Ia.push(Aa.countProperty),Sa.push(ab.length))}ta.setCellStyles(Oa,Fa,ta.getSelectionCells());Ia.push(Oa);Sa.push(Fa);if(null!=Aa.dependentProps)for(Oa=0;Oa<Aa.dependentProps.length;Oa++){var db=Aa.dependentPropsDefVal[Oa],Ea=Aa.dependentPropsVals[Oa];if(Ea.length>Fa)Ea=Ea.slice(0,Fa);else for(var $a=Ea.length;$a<Fa;$a++)Ea.push(db);Ea=Ea.join(",");ta.setCellStyles(Aa.dependentProps[Oa],Ea,ta.getSelectionCells());Ia.push(Aa.dependentProps[Oa]);Sa.push(Ea)}if("function"==typeof Aa.onChange)Aa.onChange(ta,Fa);ca.editorUi.fireEvent(new mxEventObject("styleChanged","keys",Ia,"values",Sa,"cells",ta.getSelectionCells()))}finally{ta.getModel().endUpdate()}}}function W(Oa,Fa){Fa.style.left="0px";Fa.style.top="0px";Fa.style.position="relative";Fa.style.right="0px";Fa.style.bottom="0px";Fa.style.width="100%";Fa.style.maxWidth="100%";Fa.style.maxHeight="100%";Fa.style.textAlign="left"}function ha(Oa,Fa,Aa){function Ja(Sa){if(null==Sa||Sa==mxConstants.NONE)Ia.style.background="url('"+Dialog.prototype.noColorImage+"')";else if("default"==Sa)Ia.style.background="";else{var ab=@@ -3998,12 +3999,12 @@ xb?parseInt(rb):rb)+"")}catch(Fb){}T(Oa,Jb,Aa,null,wb)}var lb=mxEvent.getSource(rb.keyCode&&eb()});wb.focus();mxEvent.addListener(wb,"blur",function(){eb()})}}))}Aa.isDeletable&&(Ia=mxUtils.button("-",mxUtils.bind(ca,function(Za){T(Oa,"",Aa,Aa.index);mxEvent.consume(Za)})),Ia.style.height="16px",Ia.style.width="25px",Ia.style.float="right",Ia.className="geColorBtn",db.appendChild(Ia));Va.appendChild(db);return Va}var ca=this,ta=this.editorUi.editor.graph,xa=[],qa=document.createElement("table");qa.className="geProperties geFullWidthElement";var Ba=document.createElement("tr");Ba.className="gePropHeader";var na=document.createElement("th");na.className="gePropHeaderCell";na.style.paddingLeft="16px";na.style.backgroundRepeat="no-repeat";na.style.backgroundPosition="-2px 50%";na.style.backgroundSize="20px";mxUtils.write(na,mxResources.get("property"));Ba.style.cursor="pointer";var ra=function(){var Oa=qa.querySelectorAll(".gePropNonHeaderRow");if(ca.editorUi.propertiesCollapsed){na.style.backgroundImage="url('"+Editor.arrowRightImage+"')";var Fa="none";for(var Aa=k.childNodes.length-1;0<=Aa;Aa--)try{var Ja=k.childNodes[Aa],Ia=Ja.nodeName.toUpperCase();"INPUT"!=Ia&&"SELECT"!=Ia||k.removeChild(Ja)}catch(Sa){}}else na.style.backgroundImage="url('"+Editor.arrowDownImage+"')",Fa="";for(Aa=0;Aa<Oa.length;Aa++)Oa[Aa].style.display=Fa};mxEvent.addListener(Ba,"click",function(){ca.editorUi.propertiesCollapsed=!ca.editorUi.propertiesCollapsed;ra()});Ba.appendChild(na);var va=document.createElement("th");va.className="gePropHeaderCell";va.style.paddingLeft="4px";mxUtils.write(va,mxResources.get("value"));-Ba.appendChild(va);qa.appendChild(Ba);var Ha=va=!1;Ba=null;1==H.vertices.length&&0==H.edges.length?Ba=H.vertices[0].id:0==H.vertices.length&&1==H.edges.length&&(Ba=H.edges[0].id);null==Ba||P||(qa.appendChild(la("id",mxUtils.htmlEntities(Ba),{dispName:"id",type:"readOnly"},!0,!1)),null!=H.style&&null!=H.style.shape&&qa.appendChild(la("shape",mxUtils.htmlEntities(H.style.shape),{dispName:"shape",type:"readOnly"},!0,!1)));for(var La in v)if(P=v[La],("function"!=typeof P.isVisible||P.isVisible(H,this))&&-!P.primary){var Ga=null!=P.getValue?P.getValue(H,this):null!=H.style[La]?mxUtils.htmlEntities(H.style[La]+""):null!=P.getDefaultValue?P.getDefaultValue(H,this):P.defVal;if("separator"==P.type)Ha=!Ha;else{if("staticArr"==P.type)P.size=parseInt(H.style[P.sizeProperty]||v[P.sizeProperty].defVal)||0;else if(null!=P.dependentProps){var Da=P.dependentProps,Qa=[],Ka=[];for(Ba=0;Ba<Da.length;Ba++)if(null!=v[Da[Ba]]){var Na=H.style[Da[Ba]];Ka.push(v[Da[Ba]].subDefVal);Qa.push(null!=Na?Na.split(","):[])}P.dependentPropsDefVal=-Ka;P.dependentPropsVals=Qa}qa.appendChild(la(La,Ga,P,va,Ha));va=!va}}for(Ba=0;Ba<xa.length;Ba++)for(P=xa[Ba],v=P.parentRow,La=0;La<P.values.length;La++)va=la(P.name,P.values[La],{type:P.type,parentRow:P.parentRow,isDeletable:P.isDeletable,index:La,defVal:P.defVal,countProperty:P.countProperty,size:P.size},0==La%2,P.flipBkg),v.parentNode.insertBefore(va,v.nextSibling),v=va;k.appendChild(qa);ra();return k};StyleFormatPanel.prototype.addStyles=function(k){if(null!=this.defaultColorSchemes){var v=this.editorUi,-H=v.editor.graph,P=document.createElement("div");P.style.padding="6px 20px 0 24px";k.appendChild(P);var T=document.createElement("div");T.className="geSwitcher";T.style.padding="4px 18px 6px 0px";for(var W=[],ha=0;ha<this.defaultColorSchemes.length;ha++){var X=document.createElement("div");X.className="geSwitcherDot";mxUtils.bind(this,function(ta){mxEvent.addListener(X,"click",mxUtils.bind(this,function(){ea(ta)}))})(ha);W.push(X);T.appendChild(X)}var ea=mxUtils.bind(this,function(ta){null!=W[ta]&&+Ba.appendChild(va);qa.appendChild(Ba);var Ha=va=!1;Ba=null;1==H.vertices.length&&0==H.edges.length?Ba=H.vertices[0].id:0==H.vertices.length&&1==H.edges.length&&(Ba=H.edges[0].id);null==Ba||P||(qa.appendChild(la("id",mxUtils.htmlEntities(Ba),{dispName:"id",type:"readOnly"},!0,!1)),null!=H.style&&null!=H.style.shape&&qa.appendChild(la("shape",mxUtils.htmlEntities(H.style.shape),{dispName:"shape",type:"readOnly"},!0,!1)));for(var La in u)if(P=u[La],("function"!=typeof P.isVisible||P.isVisible(H,this))&&+!P.primary){var Ga=null!=P.getValue?P.getValue(H,this):null!=H.style[La]?mxUtils.htmlEntities(H.style[La]+""):null!=P.getDefaultValue?P.getDefaultValue(H,this):P.defVal;if("separator"==P.type)Ha=!Ha;else{if("staticArr"==P.type)P.size=parseInt(H.style[P.sizeProperty]||u[P.sizeProperty].defVal)||0;else if(null!=P.dependentProps){var Da=P.dependentProps,Qa=[],Ka=[];for(Ba=0;Ba<Da.length;Ba++)if(null!=u[Da[Ba]]){var Na=H.style[Da[Ba]];Ka.push(u[Da[Ba]].subDefVal);Qa.push(null!=Na?Na.split(","):[])}P.dependentPropsDefVal=+Ka;P.dependentPropsVals=Qa}qa.appendChild(la(La,Ga,P,va,Ha));va=!va}}for(Ba=0;Ba<xa.length;Ba++)for(P=xa[Ba],u=P.parentRow,La=0;La<P.values.length;La++)va=la(P.name,P.values[La],{type:P.type,parentRow:P.parentRow,isDeletable:P.isDeletable,index:La,defVal:P.defVal,countProperty:P.countProperty,size:P.size},0==La%2,P.flipBkg),u.parentNode.insertBefore(va,u.nextSibling),u=va;k.appendChild(qa);ra();return k};StyleFormatPanel.prototype.addStyles=function(k){if(null!=this.defaultColorSchemes){var u=this.editorUi,+H=u.editor.graph,P=document.createElement("div");P.style.padding="6px 20px 0 24px";k.appendChild(P);var T=document.createElement("div");T.className="geSwitcher";T.style.padding="4px 18px 6px 0px";for(var W=[],ha=0;ha<this.defaultColorSchemes.length;ha++){var X=document.createElement("div");X.className="geSwitcherDot";mxUtils.bind(this,function(ta){mxEvent.addListener(X,"click",mxUtils.bind(this,function(){ea(ta)}))})(ha);W.push(X);T.appendChild(X)}var ea=mxUtils.bind(this,function(ta){null!=W[ta]&&(null!=this.format.currentScheme&&null!=W[this.format.currentScheme]&&(W[this.format.currentScheme].style.background="transparent"),this.format.currentScheme=ta,oa(this.defaultColorSchemes[this.format.currentScheme]),W[this.format.currentScheme].style.background="#84d7ff")}),oa=mxUtils.bind(this,function(ta){var xa=mxUtils.clone(H.defaultVertexStyle);xa[mxConstants.STYLE_STROKECOLOR]=null!=xa[mxConstants.STYLE_STROKECOLOR]?xa[mxConstants.STYLE_STROKECOLOR]:"default";xa[mxConstants.STYLE_FILLCOLOR]=-null!=xa[mxConstants.STYLE_FILLCOLOR]?xa[mxConstants.STYLE_FILLCOLOR]:"default";xa[mxConstants.STYLE_FONTCOLOR]=null!=xa[mxConstants.STYLE_FONTCOLOR]?xa[mxConstants.STYLE_FONTCOLOR]:"default";H.replaceDefaultColors(new mxCell,xa);var qa=mxUtils.bind(this,function(na){var ra=mxUtils.button("",mxUtils.bind(this,function(La){H.getModel().beginUpdate();try{for(var Ga=v.getSelectionState().cells,Da=H.getModel(),Qa=[],Ka=0<Ga.length,Na=0;Na<Ga.length;Na++){var Oa=Da.isVertex(Ga[Na])&&Da.isEdge(Da.getParent(Ga[Na])),+null!=xa[mxConstants.STYLE_FILLCOLOR]?xa[mxConstants.STYLE_FILLCOLOR]:"default";xa[mxConstants.STYLE_FONTCOLOR]=null!=xa[mxConstants.STYLE_FONTCOLOR]?xa[mxConstants.STYLE_FONTCOLOR]:"default";H.replaceDefaultColors(new mxCell,xa);var qa=mxUtils.bind(this,function(na){var ra=mxUtils.button("",mxUtils.bind(this,function(La){H.getModel().beginUpdate();try{for(var Ga=u.getSelectionState().cells,Da=H.getModel(),Qa=[],Ka=0<Ga.length,Na=0;Na<Ga.length;Na++){var Oa=Da.isVertex(Ga[Na])&&Da.isEdge(Da.getParent(Ga[Na])),Fa=H.getCellStyle(Ga[Na]),Aa=null!=Fa&&"image"==Fa.shape,Ja=H.getCellGeometry(Ga[Na]);Qa.push({isLabel:Aa||Oa&&(null==Ja||0>=Ja.width||0>=Ja.height)});Oa||Aa||(Ka=!1)}for(Na=0;Na<Ga.length;Na++){var Ia=Qa[Na];if(Ka||!Ia.isLabel){var Sa=Ia.isLabel?mxConstants.STYLE_LABEL_BACKGROUNDCOLOR:mxConstants.STYLE_FILLCOLOR,ab=Ia.isLabel?mxConstants.STYLE_LABEL_BORDERCOLOR:mxConstants.STYLE_STROKECOLOR,Va=Da.getStyle(Ga[Na]);null!=Va&&"string"!==typeof Va&&(Va=String(Va));null!=na?(mxEvent.isShiftDown(La)||(Va=""==na.fill||null==na.fill?mxUtils.setStyle(Va,Sa,null):mxUtils.setStyle(Va,Sa,na.fill),Ia.isLabel||(Va=""==na.gradient||null==na.gradient?mxUtils.setStyle(Va,mxConstants.STYLE_GRADIENTCOLOR,null):mxUtils.setStyle(Va,mxConstants.STYLE_GRADIENTCOLOR,na.gradient)),mxEvent.isControlDown(La)||mxClient.IS_MAC&&mxEvent.isMetaDown(La)||!Da.isVertex(Ga[Na])||(Va=""==na.font||null==na.font?mxUtils.setStyle(Va,mxConstants.STYLE_FONTCOLOR,null):mxUtils.setStyle(Va,mxConstants.STYLE_FONTCOLOR,na.font))),mxEvent.isAltDown(La)||(Va=""==na.stroke||null==na.stroke?mxUtils.setStyle(Va,ab,null):mxUtils.setStyle(Va,ab,na.stroke))):(Va=mxUtils.setStyle(Va,Sa,null),Va=mxUtils.setStyle(Va,ab,null),Ia.isLabel||(Va=mxUtils.setStyle(Va,mxConstants.STYLE_GRADIENTCOLOR,null)),Da.isVertex(Ga[Na])&&(Va=mxUtils.setStyle(Va,mxConstants.STYLE_FONTCOLOR,null)));Da.setStyle(Ga[Na],Va)}}}finally{H.getModel().endUpdate()}}));ra.className="geStyleButton";ra.style.width="36px";ra.style.height=10>=this.defaultColorSchemes.length?@@ -4013,128 +4014,129 @@ ra.style.borderRightColor);null!=na.title&&ra.setAttribute("title",na.title)}elsmxUtils.getLightDarkColor(na.gradient).light+") 100%)",va.style.clipPath="polygon(0 100%, 100% 0, 100% 100%)",va.style.backgroundColor="transparent",P.appendChild(va),va.style.marginLeft="-42px",mxEvent.addListener(va,"click",function(){ra.click()}))});P.innerText="";if(null!=ta)for(var Ba=0;Ba<ta.length;Ba++)0<Ba&&0==mxUtils.mod(Ba,4)&&mxUtils.br(P),qa(ta[Ba])});null==this.format.currentScheme?ea(Math.min(W.length-1,Editor.isDarkMode()?1:"1"==urlParams.sketch?5:0)):ea(this.format.currentScheme);ha=10>=this.defaultColorSchemes.length?43:23;var la=document.createElement("div");la.className="geButton";la.style.cssText="position:absolute;left:0px;bottom:"+ha+"px;width:20px;background-image:url("+Editor.chevronLeftImage+");";mxEvent.addListener(la,"click",mxUtils.bind(this,function(){ea(mxUtils.mod(this.format.currentScheme-1,this.defaultColorSchemes.length))}));var ca=document.createElement("div");ca.className="geButton";ca.style.cssText="position:absolute;left:186px;bottom:"+ha+"px;width:20px;background-image:url("+Editor.chevronRightImage+");";1<this.defaultColorSchemes.length&&(k.appendChild(la),k.appendChild(ca));mxEvent.addListener(ca,"click",mxUtils.bind(this,function(){ea(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));oa(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&k.appendChild(T)}return k}}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=Object.create(null);Graph.isGoogleFontUrl=function(k){return k.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS||k.substring(0,Editor.GOOGLE_FONTS_CSS2.length)==Editor.GOOGLE_FONTS_CSS2};Graph.isCssFontUrl=function(k){return Graph.isGoogleFontUrl(k)};Graph.rewriteGoogleFontUrl=function(k){null!=k&&k.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS&&(k=Editor.GOOGLE_FONTS_CSS2+-k.substring(Editor.GOOGLE_FONTS.length)+":wght@400;500");return k};Graph.escapeCssString=function(k){return null!=k?String(k).replace(/[\x00-\x1f\x7f"\\]/g,function(v){return"\\"+v.charCodeAt(0).toString(16)+" "}):k};Graph.createFontElement=function(k,v){var H=Graph.fontMapping[v];null==H&&Graph.isCssFontUrl(v)?(k=document.createElement("link"),k.setAttribute("rel","stylesheet"),k.setAttribute("type","text/css"),k.setAttribute("charset","UTF-8"),k.setAttribute("href",Graph.rewriteGoogleFontUrl(v))):-(null==H&&(H='@font-face {\nfont-family: "'+Graph.escapeCssString(k)+'";\nsrc: url("'+Graph.escapeCssString(v)+'");\n}'),k=document.createElement("style"),mxUtils.write(k,H));return k};Graph.addRecentCustomFont=function(k,v){};Graph.addFont=function(k,v,H,P){if(null!=k&&0<k.length&&null!=v&&0<v.length){P=null!=P?P:Graph.customFontElements;var T=k.toLowerCase();if("helvetica"!=T&&"arial"!=k&&"sans-serif"!=T){var W=P[T];null!=W&&W.url!=v&&(null!=W.elt.parentNode&&W.elt.parentNode.removeChild(W.elt),-W=null);null==W?(W=v,"http:"==v.substring(0,5)&&(W=PROXY_URL+"?url="+encodeURIComponent(v)),W={name:k,url:v,elt:Graph.createFontElement(k,W)},P[T]=W,v=P==Graph.customFontElements?document.getElementsByTagName("head")[0]:null,null!=H&&("link"==W.elt.nodeName.toLowerCase()?(W.elt.onload=H,W.elt.onerror=H):H()),null!=v&&v.appendChild(W.elt)):null!=H&&H()}else null!=H&&H()}else null!=H&&H();return k};Graph.getFontUrl=function(k,v){k=Graph.customFontElements[k.toLowerCase()];null!=k&&(v=k.url);return v};-Graph.processFontAttributes=function(k){k=k.getElementsByTagName("*");for(var v=0;v<k.length;v++){var H=k[v].getAttribute("data-font-src");if(null!=H){var P="FONT"==k[v].nodeName.toUpperCase()?k[v].getAttribute("face"):k[v].style.fontFamily;null!=P&&Graph.addFont(P,H)}}};Graph.processFontStyle=function(k){if(null!=k){var v=mxUtils.getValue(k,"fontSource",null);if(null!=v){var H=mxUtils.getValue(k,mxConstants.STYLE_FONTFAMILY,null);if(null!=H)try{Graph.addFont(H,decodeURIComponent(v))}catch(P){}}}return k};-Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible="0"!=urlParams.pv;mxConnectionHandler.prototype.createTarget="1"==urlParams.sketch;Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;-var q=Graph.prototype.init;Graph.prototype.init=function(){function k(T){v=T}q.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var v=null;mxEvent.addListener(this.container,"mouseenter",k);mxEvent.addListener(this.container,"mousemove",k);mxEvent.addListener(this.container,"mouseleave",function(T){v=null});this.isMouseInsertPoint=function(){return null!=v};var H=this.getInsertPoint;this.getInsertPoint=function(T){return null==v||T?H.apply(this,arguments):-this.getPointForEvent(v)};var P=this.layoutManager.getLayout;this.layoutManager.getLayout=function(T){var W=this.graph.getCellStyle(T);if(null!=W&&"rack"==W.childLayout){var ha=new mxStackLayout(this.graph,!1);ha.gridSize=null!=W.rackUnitSize?parseFloat(W.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;ha.marginLeft=W.marginLeft||0;ha.marginRight=W.marginRight||0;ha.marginTop=W.marginTop||0;ha.marginBottom=W.marginBottom||0;ha.allowGaps=W.allowGaps||0;ha.horizontal=-"1"==mxUtils.getValue(W,"horizontalRack","0");ha.resizeParent=!1;ha.fill=!0;return ha}return P.apply(this,arguments)};this.updateGlobalUrlVariables()};var x=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(k,v){return Graph.processFontStyle(x.apply(this,arguments))};var A=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(k,v,H,P,T,W,ha,X,ea,oa,la,ca){A.apply(this,arguments);Graph.processFontAttributes(ca)};var E=mxText.prototype.redraw;-mxText.prototype.redraw=function(){E.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(k,v,H,P){function T(){for(var Ba=X.getSelectionCells(),na=[],ra=0;ra<Ba.length;ra++)X.isCellVisible(Ba[ra])&&na.push(Ba[ra]);X.setSelectionCells(na)}function W(Ba){X.setHiddenTags(Ba?[]:ea.slice());T();X.refresh()}function ha(Ba,na){la.innerText="";if(0<Ba.length){var ra=document.createElement("table");ra.setAttribute("cellpadding",-"2");ra.style.boxSizing="border-box";ra.style.tableLayout="fixed";ra.style.width="100%";var va=document.createElement("tbody");if(null!=Ba&&0<Ba.length)for(var Ha=0;Ha<Ba.length;Ha++)(function(La){function Ga(){var Fa=X.getCellsForTags([La],null,null,!0);X.isEnabled()?X.setSelectionCells(Fa):X.highlightCells(Fa,null,null,70)}var Da=0>mxUtils.indexOf(X.hiddenTags,La),Qa=document.createElement("tr"),Ka=document.createElement("td");Ka.style.align="center";Ka.style.width="16px";var Na=document.createElement("img");-Na.setAttribute("src",Da?Editor.visibleImage:Editor.hiddenImage);Na.setAttribute("title",mxResources.get(Da?"hideIt":"show",[La])+"\n"+mxResources.get("shiftClickShowOnly",[La]));mxUtils.setOpacity(Na,Da?75:25);Na.className="geAdaptiveAsset";Na.style.verticalAlign="middle";Na.style.cursor="pointer";Na.style.width="16px";if(v||Editor.isDarkMode())Na.style.filter="invert(100%)";Ka.appendChild(Na);mxEvent.addListener(Na,"click",function(Fa){if(mxEvent.isShiftDown(Fa)){for(var Aa=[],Ja=0;Ja<ea.length;Ja++)ea[Ja]!==-La&&Aa.push(ea[Ja]);var Ia=0<Aa.length;for(Ja=0;Ja<Aa.length;Ja++)if(0>mxUtils.indexOf(X.hiddenTags,Aa[Ja])){Ia=!1;break}Ia&&0>mxUtils.indexOf(X.hiddenTags,La)?X.setHiddenTags([]):X.setHiddenTags(Aa)}else X.toggleHiddenTag(La);T();X.refresh();mxEvent.consume(Fa)});Qa.appendChild(Ka);Ka=document.createElement("td");Ka.style.align="center";Ka.style.width="16px";Na=document.createElement("img");Na.setAttribute("src",Editor.selectImage);Na.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(Na,-Da?75:25);Na.className="geAdaptiveAsset";Na.style.verticalAlign="middle";Na.style.cursor="pointer";Na.style.width="16px";if(v||Editor.isDarkMode())Na.style.filter="invert(100%)";mxEvent.addListener(Na,"click",function(Fa){W(!0);Ga();mxEvent.consume(Fa)});Ka.appendChild(Na);Qa.appendChild(Ka);Ka=document.createElement("td");Ka.style.overflow="hidden";Ka.style.whiteSpace="nowrap";Ka.style.textOverflow="ellipsis";Ka.style.verticalAlign="middle";Ka.style.cursor="pointer";Ka.setAttribute("title",La);a=-document.createElement("a");mxUtils.write(a,La);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,Da?100:40);Ka.appendChild(a);mxEvent.addListener(Ka,"click",function(Fa){if(mxEvent.isShiftDown(Fa))W(!0),Ga();else if(Da&&0<X.hiddenTags.length)W(!0);else{var Aa=ea.slice(),Ja=mxUtils.indexOf(Aa,La);Aa.splice(Ja,1);X.setHiddenTags(Aa);T();X.refresh()}mxEvent.consume(Fa)});Qa.appendChild(Ka);if(X.isEnabled()){Ka=document.createElement("td");Ka.style.verticalAlign="middle";-Ka.style.textAlign="center";Ka.style.width="18px";if(null==na){Ka.style.align="center";Ka.style.width="16px";Na=document.createElement("img");Na.setAttribute("src",Editor.trashImage);Na.setAttribute("title",mxResources.get("removeIt",[La]));mxUtils.setOpacity(Na,Da?75:25);Na.className="geAdaptiveAsset";Na.style.verticalAlign="middle";Na.style.cursor="pointer";Na.style.width="16px";if(v||Editor.isDarkMode())Na.style.filter="invert(100%)";mxEvent.addListener(Na,"click",function(Fa){var Aa=mxUtils.indexOf(ea,-La);0<=Aa&&ea.splice(Aa,1);X.removeTagsForCells(X.model.getDescendants(X.model.getRoot()),[La]);X.refresh();mxEvent.consume(Fa)});Ka.appendChild(Na)}else{var Oa=document.createElement("input");Oa.setAttribute("type","checkbox");Oa.style.margin="0px";Oa.defaultChecked=null!=na&&0<=mxUtils.indexOf(na,La);Oa.checked=Oa.defaultChecked;Oa.style.background="transparent";Oa.setAttribute("title",mxResources.get(Oa.defaultChecked?"removeIt":"add",[La]));mxEvent.addListener(Oa,"change",function(Fa){Oa.checked?-X.addTagsForCells(X.getSelectionCells(),[La]):X.removeTagsForCells(X.getSelectionCells(),[La]);mxEvent.consume(Fa)});Ka.appendChild(Oa)}Qa.appendChild(Ka)}va.appendChild(Qa)})(Ba[Ha]);ra.appendChild(va);la.appendChild(ra)}}var X=this,ea=X.hiddenTags.slice(),oa=document.createElement("div");oa.style.userSelect="none";oa.style.overflow="hidden";oa.style.padding="10px";oa.style.height="100%";var la=document.createElement("div");la.style.position="absolute";la.style.boxSizing="border-box";la.style.userSelect=-"none";la.style.overflow="auto";la.style.padding="3px";la.style.left="0px";la.style.right="0px";la.style.top="0px";la.style.bottom="0px";oa.appendChild(la);X.addListener(mxEvent.ROOT,function(){ea=X.hiddenTags.slice()});var ca=mxUtils.bind(this,function(Ba,na){if(k()){Ba=X.getAllTags();for(na=0;na<Ba.length;na++)0>mxUtils.indexOf(ea,Ba[na])&&ea.push(Ba[na]);ea.sort();X.isSelectionEmpty()?ha(ea):ha(ea,X.getCommonTagsForCells(X.getSelectionCells()))}});X.selectionModel.addListener(mxEvent.CHANGE,ca);-X.model.addListener(mxEvent.CHANGE,ca);X.addListener(mxEvent.REFRESH,ca);var ta=document.createElement("div");ta.className="geToolbarContainer geDialogToolbar";ta.style.position="absolute";ta.style.display="flex";ta.style.bottom="0px";ta.style.left="0px";ta.style.right="0px";ta.style.height="32px";ta.style.overflow="hidden";ta.style.padding="3px 4px 4px 4px";ta.style.borderWidth="1px 0px 0px 0px";ta.style.borderStyle="solid";ta.style.whiteSpace="nowrap";if(X.isEnabled()){la.style.bottom="32px";var xa=-document.createElement("a");xa.className="geButton";var qa=xa.cloneNode(!1);qa.style.backgroundImage="url("+Editor.visibleImage+")";qa.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(qa,"click",function(Ba){X.setHiddenTags([]);mxEvent.isShiftDown(Ba)||(ea=X.hiddenTags.slice());T();X.refresh();mxEvent.consume(Ba)});ta.appendChild(qa);null!=H&&(xa=xa.cloneNode(!1),xa.style.backgroundImage="url("+Editor.plusImage+")",xa.setAttribute("title",mxResources.get("add")),mxEvent.addListener(xa,-"click",function(Ba){H(ea,function(na){ea=na;ca()});mxEvent.consume(Ba)}),ta.appendChild(xa));oa.appendChild(ta)}null!=P&&ta.appendChild(P);return{div:oa,refresh:ca}};Graph.prototype.getCustomFonts=function(k){k=null!=k?k:Graph.customFontElements;var v=this.extFonts;v=null!=v?v.slice():[];for(var H in k){var P=k[H];v.push({name:P.name,url:P.url})}return v};Graph.prototype.getExtFontCss=function(k){k=this.getCustomFonts(k);for(var v="",H="",P=0;P<k.length;P++){var T=k[P].name,W=k[P].url;Graph.isCssFontUrl(W)?-v+='@import url("'+Graph.escapeCssString(Graph.rewriteGoogleFontUrl(W))+'");\n':H+='@font-face {\nfont-family: "'+Graph.escapeCssString(T)+'";\nsrc: url("'+Graph.escapeCssString(W)+'");\n}\n'}return v+H};Graph.prototype.setFont=function(k,v){Graph.addFont(k,v);var H=Editor.guid();document.execCommand("fontname",!1,H);for(var P=this.cellEditor.textarea.getElementsByTagName("font"),T=!1,W=0;W<P.length;W++)P[W].getAttribute("face")==H&&(T=!0,P[W].setAttribute("face",k),null!=v?P[W].setAttribute("data-font-src",-v):P[W].removeAttribute("data-font-src"));T||document.execCommand("fontname",!1,k)};var J=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return J.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var k=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=k)for(var v in k)this.globalVars[v]=-k[v]}catch(H){null!=window.console&&console.log("Error in vars URL parameter: "+H)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var Q=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(k){var v=Q.apply(this,arguments);null==v&&null!=this.globalVars&&(v=this.globalVars[k]);return v};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var k=this.themes["default-style2"];this.defaultStylesheet=-(new mxCodec(k.ownerDocument)).decode(k)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var V=Graph.prototype.getSvg;Graph.prototype.getSvg=function(k,v,H,P,T,W,ha,X,ea,oa,la,ca,ta,xa,qa,Ba,na){if(Editor.mathOutputSize&&this.mathEnabled&&null!=this.container&&document.body.contains(this.container)&&"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset){if(0==this.container.getElementsByTagName("mjx-container").length)try{MathJax.typeset([this.container])}catch(Ga){}this.refreshMathBounds()}var ra=-V.apply(this,arguments);if(null!=ca){var va=ra.getAttribute("style");null==va&&(va="");ca="auto"==ca||"none"==this.getAdaptiveColors()?"none"==this.getAdaptiveColors()?"light":"light dark":ca;ra.setAttribute("style",va+(" color-scheme: "+ca+";"))}var Ha=la?this.getExtFontCss():"";if(0<Ha.length){var La=ra.ownerDocument;va=null!=La.createElementNS?La.createElementNS(mxConstants.NS_SVG,"style"):La.createElement("style");null!=La.setAttributeNS?va.setAttributeNS("type","text/css"):va.setAttribute("type",-"text/css");va.appendChild(La.createTextNode(Ha));ra.getElementsByTagName("defs")[0].appendChild(va)}Editor.replaceSvgDataUris&&null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&EditorUi.embedSvgImages(ra);this.mathEnabled&&(document.body.appendChild(ra),Editor.MathJaxRender(ra),ra.parentNode.removeChild(ra),va=ra.ownerDocument.getElementById("MJX-SVG-styles"),null!=va&&ra.getElementsByTagName("defs")[0].appendChild(va.cloneNode(!0)));return ra};var K=mxCellRenderer.prototype.destroy;-mxCellRenderer.prototype.destroy=function(k){K.apply(this,arguments);null!=k.secondLabel&&(k.secondLabel.destroy(),k.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(k){return[k.shape,k.text,k.secondLabel,k.control]};var fa=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){fa.apply(this,arguments);this.enumerationState=0};var Y=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(k){null!=k.shape&&this.redrawEnumerationState(k);-return Y.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(k){k=mxUtils.safeDecodeURIComponent(mxUtils.getValue(k.style,"enumerateValue",""));""==k&&(k=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(k)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(k){var v="1"==mxUtils.getValue(k.style,"enumerate",0);v&&null==k.secondLabel?(k.secondLabel=new mxText("",new mxRectangle,-mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),k.secondLabel.size=12,k.secondLabel.state=k,k.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(k,k.secondLabel)):v||null==k.secondLabel||(k.secondLabel.destroy(),k.secondLabel=null);v=k.secondLabel;if(null!=v){var H=k.view.scale,P=this.createEnumerationValue(k);k=this.graph.model.isVertex(k.cell)?new mxRectangle(k.x+k.width-4*H,k.y+4*H,0,0):mxRectangle.fromPoint(k.view.getPoint(k));v.bounds.equals(k)&&v.value==-P&&v.scale==H||(v.bounds=k,v.value=P,v.scale=H,v.redraw())}};var aa=Graph.prototype.refresh;Graph.prototype.refresh=function(){this.refreshBackgroundImage();aa.apply(this,arguments)};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundImage())};var ja=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){ja.apply(this,arguments);this.currentStyle=-"default-style2"};Graph.prototype.handleCustomLink=function(k,v){"data:action/json,"==k.substring(0,17)&&(k=JSON.parse(k.substring(17)),null!=k.actions&&this.executeCustomActions(Graph.flattenAnimationActions(k.actions),null,v))};Graph.flattenAnimationActions=function(k){if(!Array.isArray(k))return k;for(var v=[],H=0;H<k.length;H++){var P=k[H];if(null!=P&&null!=P.animation&&Array.isArray(P.animation.steps)){P=Graph.flattenAnimationActions(P.animation.steps);for(var T=0;T<P.length;T++)v.push(P[T])}else v.push(P)}return v};-Graph.smoothScrollContainer=function(k,v,H,P,T,W){W=W||600;if(v!==P||H!==T){k.scrollLeft=v;k.scrollTop=H;var ha="undefined"!=typeof performance&&null!=performance.now?performance.now():Date.now(),X=P-v,ea=T-H,oa=function(la){la=Math.min(1,(la-ha)/W);var ca=1-Math.pow(1-la,3);k.scrollLeft=v+X*ca;k.scrollTop=H+ea*ca;1>la&&window.requestAnimationFrame(oa)};window.requestAnimationFrame(oa)}};Graph.applyTransformTransition=function(k,v){v=v||600;var H=k.view.getDrawPane(),P=null!=H?H.parentNode:null;if(null!=-P){var T=P.style.transition;P.style.transition="transform "+v+"ms cubic-bezier(0.16, 1, 0.3, 1)";k.armTransformTransition=!0;var W=function(){P.style.transition=T||"";k.armTransformTransition=!1;P.removeEventListener("transitionend",W)};P.addEventListener("transitionend",W);window.setTimeout(W,v+100)}};Graph.prototype.fitBoundsCssTransform=function(k,v){var H=null!=v?v:10;v=this.view.graphBounds;var P=Math.max(v.x,k.x),T=Math.max(v.y,k.y),W=Math.max(1,Math.min(v.x+v.width,k.x+k.width)-P),ha=Math.max(1,-Math.min(v.y+v.height,k.y+k.height)-T),X=this.container.clientWidth-H,ea=this.container.clientHeight-H;k=Math.floor(20*Math.min(X/W,ea/ha))/20;this.view.scaleAndTranslate(k,-v.x,-v.y);P=(P-v.x)*k-Math.max((X-W*k)/2+H/2,0);H=(T-v.y)*k-Math.max((ea-ha*k)/2+H/2,0);W=this.getBorder();T=v.width*k+2*W-this.container.clientWidth;v=v.height*k+2*W-this.container.clientHeight;this.container.scrollLeft=0>T?0:Math.max(0,Math.min(P,T));this.container.scrollTop=0>v?0:Math.max(0,Math.min(H,v))};Graph.prototype.isGraphTornDown=-function(){return!0===this.destroyed||null==this.container};Graph.prototype.smoothFitWindow=function(k,v,H){if(this.isGraphTornDown())null!=H&&H();else{var P=this.container,T=P.scrollLeft,W=P.scrollTop;this.useCssTransforms?(Graph.applyTransformTransition(this,600),this.fitBoundsCssTransform(k,v)):this.fitWindow(k,v);Graph.smoothScrollContainer(P,T,W,P.scrollLeft,P.scrollTop,600);null!=H&&window.setTimeout(H,600)}};Graph.prototype.scrollCellToVisibleCssTransform=function(k,v){var H=this.view.getState(k);-if(null!=H){var P=this.view.graphBounds,T=this.view.scale;this.view.translate.x===-P.x&&this.view.translate.y===-P.y||this.view.scaleAndTranslate(T,-P.x,-P.y);k=this.container.clientWidth;var W=this.container.clientHeight,ha=this.getBorder(),X=P.width*T+2*ha-k;ha=P.height*T+2*ha-W;if(null!=v){var ea=(H.x-P.x)*T,oa=(H.y-P.y)*T,la=(H.x+H.width-P.x)*T;P=(H.y+H.height-P.y)*T;var ca=this.container.scrollLeft;H=this.container.scrollTop;ea-v<ca?ca=ea-v:la+v>ca+k&&(ca=la+v-k);oa-v<H?H=oa-v:P+v>H+W&&(H=P+-v-W)}else ca=(H.x+H.width/2-P.x)*T-k/2,H=(H.y+H.height/2-P.y)*T-W/2;this.container.scrollLeft=0>X?0:Math.max(0,Math.min(ca,X));this.container.scrollTop=0>ha?0:Math.max(0,Math.min(H,ha))}};Graph.prototype.scrollCellToVisibleBorder=function(k,v){null==v?this.scrollCellToVisible(k):(k=this.view.getState(k),null!=k&&this.scrollRectToVisible(new mxRectangle(-this.view.translate.x+k.x-v,-this.view.translate.y+k.y-v,k.width+2*v,k.height+2*v)))};Graph.prototype.smoothScrollCellToVisible=function(k,v,H){if(this.isGraphTornDown())null!=-H&&H();else{var P=this.container,T=P.scrollLeft,W=P.scrollTop;this.useCssTransforms?this.scrollCellToVisibleCssTransform(k,v):this.scrollCellToVisibleBorder(k,v);Graph.smoothScrollContainer(P,T,W,P.scrollLeft,P.scrollTop,600);null!=H&&window.setTimeout(H,600)}};Graph.prototype.toggleCellsTransient=function(k){k=this.getNodesForCells(k);for(var v=0;v<k.length;v++){var H=k[v].style.opacity;H=""===H||null===H||0<parseFloat(H);k[v].style.opacity=H?0:1}};Graph.prototype.setCellStylesTransient=function(k,-v,H){for(var P=0;P<H.length;P++){var T=this.view.getState(H[P]);null!=T&&null!=T.style&&(null==v?delete T.style[k]:T.style[k]=v,null!=T.shape&&(T.shape.apply(T),T.shape.redraw()),null!=T.text&&(T.text.apply(T),T.text.redraw()))}};Graph.prototype.toggleCellStylesTransient=function(k,v,H){null==v&&(v="0");for(var P=0;P<H.length;P++){var T=this.view.getState(H[P]);if(null!=T&&null!=T.style){var W=mxUtils.getValue(T.style,k,v)?"0":"1";T.style[k]=W;null!=T.shape&&(T.shape.apply(T),T.shape.redraw());null!=-T.text&&(T.text.apply(T),T.text.redraw())}}};Graph.prototype.executeCustomActions=function(k,v,H){if(this.executingCustomActions)this.stoppingCustomActions=!0,null!=this.pendingWaitThread&&window.clearTimeout(this.pendingWaitThread),null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions"));else{this.executingCustomActions=!0;var P=!1,T=0,W=0,ha=mxUtils.bind(this,function(){P||(P=!0,this.model.beginUpdate())}),X=mxUtils.bind(this,-function(){P&&(P=!1,this.model.endUpdate())}),ea=null==H,oa=function(xa){return null!=xa.transient?xa.transient:ea},la=mxUtils.bind(this,function(){0<T&&T--;0==T&&ta()}),ca=mxUtils.bind(this,function(){if(this.isGraphTornDown())this.stoppingCustomActions=this.executingCustomActions=!1,null!=v&&v();else if(W<k.length){do{var xa=this.stoppingCustomActions,qa=k[W++],Ba=[];if(null!=qa.open)if(X(),this.isCustomLink(qa.open)){if(!this.customLinkClicked(qa.open,H)){this.stoppingCustomActions=this.executingCustomActions=-!1;null!=v&&v();return}}else this.openLink(qa.open);null==qa.wait||xa||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;la()}),T++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=qa.wait?parseInt(qa.wait):1E3),X());null!=qa.opacity&&null!=qa.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(qa.opacity,!0)),qa.opacity.value);null!=qa.fadeIn&&(T++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(qa.fadeIn,-!0)),0,1,la,xa?0:qa.fadeIn.delay));null!=qa.fadeOut&&(T++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(qa.fadeOut,!0)),1,0,la,xa?0:qa.fadeOut.delay));if(null!=qa.fadeTo&&null!=qa.fadeTo.value){T++;var na=this.getNodesForCells(this.getCellsForAction(qa.fadeTo,!0)),ra=xa?0:null!=qa.fadeTo.delay?qa.fadeTo.delay:1E3;Graph.setTransitionForNodes(na,"all "+ra+"ms ease-in-out");Graph.setOpacityForNodes(na,qa.fadeTo.value);window.setTimeout(function(){Graph.setTransitionForNodes(na,null);la()},-ra)}null!=qa.flow&&(ra=this.getCellsForAction(qa.flow,!0),Editor.toggleFlowAnimation(this,ra,!1===qa.flow.start?"stop":!0===qa.flow.start?"start":"toggle"));null!=qa.wipeIn&&(Ba=Ba.concat(this.createWipeAnimations(this.getCellsForAction(qa.wipeIn,!0),!0)));null!=qa.wipeOut&&(Ba=Ba.concat(this.createWipeAnimations(this.getCellsForAction(qa.wipeOut,!0),!1)));null!=qa.popIn&&(Ba=Ba.concat(this.createPopAnimations(this.getCellsForAction(qa.popIn,!0),!0)));null!=qa.popOut&&(Ba=Ba.concat(this.createPopAnimations(this.getCellsForAction(qa.popOut,-!0),!1)));null!=qa.toggle&&(oa(qa.toggle)?this.toggleCellsTransient(this.getCellsForAction(qa.toggle,!0)):(ha(),this.toggleCells(this.getCellsForAction(qa.toggle,!0,!0))));null!=qa.show&&(ra=this.getCellsForAction(qa.show,!0),Graph.setOpacityForNodes(this.getNodesForCells(ra),1),oa(qa.show)||(ha(),this.setCellsVisible(this.getCellsForAction(qa.show,!0,!0),!0)));null!=qa.hide&&(ra=this.getCellsForAction(qa.hide,!0),Graph.setOpacityForNodes(this.getNodesForCells(ra),0),oa(qa.hide)||(ha(),this.setCellsVisible(this.getCellsForAction(qa.hide,-!0,!0),!1)));if(null!=qa.toggleStyle&&null!=qa.toggleStyle.key){ra=this.getCellsForAction(qa.toggleStyle,!0);var va=null!=qa.toggleStyle.defaultValue?qa.toggleStyle.defaultValue:"0";oa(qa.toggleStyle)?this.toggleCellStylesTransient(qa.toggleStyle.key,va,ra):(ha(),this.toggleCellStyles(qa.toggleStyle.key,va,ra))}null!=qa.style&&null!=qa.style.key&&(ra=this.getCellsForAction(qa.style,!0),oa(qa.style)?this.setCellStylesTransient(qa.style.key,qa.style.value,ra):(ha(),this.setCellStyles(qa.style.key,qa.style.value,-ra)));ra=[];null!=qa.select&&this.isEnabled()&&(ra=this.getCellsForAction(qa.select),this.setSelectionCells(ra));null!=qa.highlight&&(ra=this.getCellsForAction(qa.highlight),this.highlightCells(ra,qa.highlight.color,qa.highlight.duration,qa.highlight.opacity));null!=qa.scroll&&(ra=this.getCellsForAction(qa.scroll));if(null!=qa.viewbox){va=qa.viewbox;if(null!=va.cells||null!=va.tags||null!=va.layers){var Ha=this.getBoundingBox(this.getCellsForAction(va));if(null!=Ha){var La=this.useCssTransforms?1:-this.view.scale,Ga=this.useCssTransforms?new mxPoint(0,0):this.view.translate,Da=null==va.border||""===va.border||isNaN(parseFloat(va.border))?null:2*parseFloat(va.border);va={x:Ha.x/La-Ga.x,y:Ha.y/La-Ga.y,width:Math.max(1,Ha.width/La),height:Math.max(1,Ha.height/La),border:Da,smooth:va.smooth}}else va=null}null!=va&&(!0!==va.smooth||xa?this.useCssTransforms?this.fitBoundsCssTransform(va,va.border):this.fitWindow(va,va.border):(T++,this.smoothFitWindow(va,va.border,la)))}0<ra.length&&(va=null==qa.scroll||-null==qa.scroll.border||""===qa.scroll.border||isNaN(parseFloat(qa.scroll.border))?null:parseFloat(qa.scroll.border),null==qa.scroll||!0!==qa.scroll.smooth||xa?this.useCssTransforms?this.scrollCellToVisibleCssTransform(ra[0],va):this.scrollCellToVisibleBorder(ra[0],va):(T++,this.smoothScrollCellToVisible(ra[0],va,la)));null!=H&&null!=qa.explore&&Graph.exploreFromCell(this,H,qa.explore);if(null!=qa.tags){if(null!=qa.tags.toggle)for(va=qa.tags.toggle,0==va.length&&(va=this.getAllTags()),ra=0;ra<va.length;ra++)this.toggleHiddenTag(va[ra]);-va=null;null!=qa.tags.hidden&&(null==va&&(va=[]),va=va.concat(qa.tags.hidden));if(null!=qa.tags.visible)for(null==va&&(va=[]),Ha=this.getAllTags(),ra=0;ra<Ha.length;ra++)0>mxUtils.indexOf(qa.tags.visible,Ha[ra])&&0>mxUtils.indexOf(va,Ha[ra])&&va.push(Ha[ra]);null!=va&&this.setHiddenTags(va);this.refresh()}if(0<Ba.length){T++;ra=null!=qa.steps?qa.steps:30;va=qa.delay;Ha=["wipeIn","wipeOut","popIn","popOut"];La=null;for(Ga=0;Ga<Ha.length;Ga++)Da=qa[Ha[Ga]],null!=Da&&null!=Da.delay&&(La=null==La?Da.delay:-Math.max(La,Da.delay));null!=La&&(va=La/ra);this.executeAnimations(Ba,la,xa?1:ra,xa?0:va)}}while(W<k.length&&!0===k[W].immediate&&!this.stoppingCustomActions);0==T?ta():X()}else this.stoppingCustomActions=this.executingCustomActions=!1,X(),null!=v&&v()}),ta=mxUtils.bind(this,function(){try{ca()}catch(xa){throw this.stoppingCustomActions=this.executingCustomActions=!1,X(),xa;}});ta()}};Graph.prototype.doUpdateCustomLinksForCell=function(k,v){var H=this.getLinkForCell(v);null!=H&&"data:action/json,"==-H.substring(0,17)&&this.setLinkForCell(v,this.updateCustomLink(k,H));if(this.isHtmlLabel(v)){var P=document.createElement("div");P.innerHTML=Graph.sanitizeHtml(this.getLabel(v));for(var T=P.getElementsByTagName("a"),W=!1,ha=0;ha<T.length;ha++)H=T[ha].getAttribute("href"),null!=H&&"data:action/json,"==H.substring(0,17)&&(T[ha].setAttribute("href",this.updateCustomLink(k,H)),W=!0);W&&this.labelChanged(v,P.innerHTML)}};Graph.prototype.updateCustomLink=function(k,v){if("data:action/json,"==v.substring(0,-17))try{var H=JSON.parse(v.substring(17));null!=H.actions&&(this.updateCustomLinkActions(k,H.actions),v="data:action/json,"+JSON.stringify(H))}catch(P){}return v};Graph.prototype.updateCustomLinkActions=function(k,v){for(var H=0;H<v.length;H++){var P=v[H],T;for(T in P)this.updateCustomLinkAction(k,P[T],"cells"),this.updateCustomLinkAction(k,P[T],"excludeCells"),this.updateCustomLinkAction(k,P[T],"layers")}};Graph.prototype.updateCustomLinkAction=function(k,v,H){if(null!=v&&null!=v[H]){for(var P=[],-T=0;T<v[H].length;T++)if("*"==v[H][T])P.push(v[H][T]);else{var W=k[v[H][T]];null!=W?""!=W&&P.push(W):P.push(v[H][T])}v[H]=P}};Graph.prototype.getCellsForAction=function(k,v,H){var P="or"===k.tagsMatch?"or":"and",T={},W=[],ha=function(X){for(var ea=0;ea<X.length;ea++){var oa=X[ea].id;T[oa]||(T[oa]=!0,W.push(X[ea]))}};ha(this.getCellsById(k.cells));ha(this.getCellsForTags(k.tags,null,v,!1,P));ha(H?this.getLayerCells(k.layers):this.getCellsForLayers(k.layers));if(null!=k.excludeCells&&0<k.excludeCells.length){v=-{};P=!1;for(H=0;H<k.excludeCells.length;H++){if("*"===k.excludeCells[H]){P=!0;break}v[k.excludeCells[H]]=!0}if(P)return[];k=[];for(H=0;H<W.length;H++)v[W[H].id]||k.push(W[H]);return k}return W};Graph.prototype.getCellsById=function(k){var v=[];if(null!=k)for(var H=0;H<k.length;H++)if("*"==k[H]){var P=this.model.getRoot();v=v.concat(this.model.filterDescendants(function(W){return W!=P},P))}else{var T=this.model.getCell(k[H]);null!=T&&v.push(T)}return v};Graph.prototype.getCellsForLayers=function(k){var v=-[];if(Array.isArray(k))for(var H=0;H<k.length;H++){var P=this.model.getCell(k[H]);null!=P&&(v=v.concat(this.model.filterDescendants(function(T){return T!=P},P)))}return v};Graph.prototype.getLayerCells=function(k){var v=[];if(Array.isArray(k))for(var H=0;H<k.length;H++){var P=this.model.getCell(k[H]);null!=P&&v.push(P)}return v};var ka=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(k){return ka.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(k))};Graph.prototype.setHiddenTags=-function(k){this.hiddenTags=k;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(k){var v=mxUtils.indexOf(this.hiddenTags,k);0>v?this.hiddenTags.push(k):0<=v&&this.hiddenTags.splice(v,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(k){if(null==k||0==k.length||0==this.hiddenTags.length)return!1;k=k.split(" ");if(k.length>this.hiddenTags.length)return!1;for(var v=0;v<k.length;v++)if(0>mxUtils.indexOf(this.hiddenTags,-k[v]))return!1;return!0};Graph.prototype.getCellsForTags=function(k,v,H,P,T){var W=[];T="or"===T;if(null!=k){v=null!=v?v:this.model.getDescendants(this.model.getRoot());for(var ha=0,X={},ea=0;ea<k.length;ea++)0<k[ea].length&&(X[k[ea]]=!0,ha++);for(ea=0;ea<v.length;ea++)if(H&&this.model.getParent(v[ea])==this.model.root||this.model.isVertex(v[ea])||this.model.isEdge(v[ea])){var oa=this.getTagsForCell(v[ea]),la=!1;if(0<oa.length&&(oa=oa.split(" "),T||oa.length>=k.length)){for(var ca=la=0;ca<oa.length&&-la<ha;ca++)null!=X[oa[ca]]&&la++;la=T?0<la:la==ha}la&&(1!=P||this.isCellVisible(v[ea]))&&W.push(v[ea])}}return W};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(k){for(var v=null,H=[],P=0;P<k.length;P++){var T=this.getTagsForCell(k[P]);H=[];if(0<T.length){T=T.split(" ");for(var W={},ha=0;ha<T.length;ha++)if(null==v||null!=v[T[ha]])W[T[ha]]=!0,H.push(T[ha]);v=W}else return[]}return H};-Graph.prototype.getTagsForCells=function(k){for(var v=[],H={},P=0;P<k.length;P++){var T=this.getTagsForCell(k[P]);if(0<T.length){T=T.split(" ");for(var W=0;W<T.length;W++)null==H[T[W]]&&(H[T[W]]=!0,v.push(T[W]))}}return v};Graph.prototype.getTagsForCell=function(k){return this.getAttributeForCell(k,"tags","")};Graph.prototype.addTagsForCells=function(k,v){if(0<k.length&&0<v.length){this.model.beginUpdate();try{for(var H=0;H<k.length;H++){for(var P=this.getTagsForCell(k[H]),T=P.split(" "),W=!1,ha=-0;ha<v.length;ha++){var X=mxUtils.trim(v[ha]);""!=X&&0>mxUtils.indexOf(T,X)&&(P=0<P.length?P+" "+X:X,W=!0)}W&&this.setAttributeForCell(k[H],"tags",P)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(k,v){if(0<k.length&&0<v.length){this.model.beginUpdate();try{for(var H=0;H<k.length;H++){var P=this.getTagsForCell(k[H]);if(0<P.length){for(var T=P.split(" "),W=!1,ha=0;ha<v.length;ha++){var X=mxUtils.indexOf(T,v[ha]);0<=X&&(T.splice(X,1),W=!0)}W&&this.setAttributeForCell(k[H],-"tags",T.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(k){this.model.beginUpdate();try{for(var v=0;v<k.length;v++)this.model.setVisible(k[v],!this.model.isVisible(k[v]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(k,v){this.model.beginUpdate();try{for(var H=0;H<k.length;H++)this.model.setVisible(k[H],v)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=function(k,v,H,P){for(var T=0;T<k.length;T++)this.highlightCell(k[T],-v,H,P)};Graph.prototype.highlightCell=function(k,v,H,P,T){v=null!=v?v:mxConstants.DEFAULT_VALID_COLOR;H=null!=H?H:1E3;k=this.view.getState(k);var W=null;null!=k&&(T=null!=T?T:4,T=Math.max(T+1,mxUtils.getValue(k.style,mxConstants.STYLE_STROKEWIDTH,1)+T),W=new mxCellHighlight(this,v,T,!1),null!=P&&(W.opacity=P),W.highlight(k),window.setTimeout(function(){null!=W.shape&&(mxUtils.setPrefixedStyle(W.shape.node.style,"transition","all 1200ms ease-in-out"),W.shape.node.style.opacity=0);window.setTimeout(function(){W.destroy()},-1200)},H));return W};Graph.prototype.addSvgShadow=function(k,v,H,P){P=null!=P?P:!0;var T=Math.ceil(this.svgShadowSize*this.svgShadowBlur);null!=H&&H||(v=null!=v?v:k.getElementsByTagName("g")[0],null!=v&&(this.updateShadowFilter(v,!0),!isNaN(parseInt(k.getAttribute("width")))&&P&&(k.setAttribute("width",parseInt(k.getAttribute("width"))+T),k.setAttribute("height",parseInt(k.getAttribute("height"))+T),v=k.getAttribute("viewBox"),null!=v&&0<v.length&&(v=v.split(" "),3<v.length&&(w=parseFloat(v[2])+T,-h=parseFloat(v[3])+T,k.setAttribute("viewBox",v[0]+" "+v[1]+" "+w+" "+h))))));return T};Graph.prototype.updateShadowFilter=function(k,v){mxClient.IS_SF||(v?(v=mxUtils.getLightDarkColor(this.svgShadowColor,this.svgShadowOpacity),k.style.filter="drop-shadow("+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowBlur)/100+"px "+v.cssText+")"):k.style.filter="")};Graph.prototype.setShadowVisible=function(k,v){v=null!=v?v:!0;this.shadowVisible=-k;this.updateShadowFilter(this.view.getDrawPane(),this.shadowVisible);v&&this.fireEvent(new mxEventObject("shadowVisibleChanged"));return Math.ceil(this.svgShadowSize*this.svgShadowBlur)};Graph.prototype.checkDefaultParent=function(){null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer())};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var k=this.model.getChildCount(this.model.root),v=0;do var H=this.model.getChildAt(this.model.root,-v);while(v++<k&&"1"==mxUtils.getValue(this.getCellStyle(H),"locked","0"));null!=H&&this.setDefaultParent(H)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.bpmn2=-[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.c4=[SHAPES_PATH+"/mxC4.js"];mxStencilRegistry.libraries.cisco19=[SHAPES_PATH+"/mxCisco19.js",STENCIL_PATH+"/cisco19.xml"];mxStencilRegistry.libraries.cisco_safe=[SHAPES_PATH+"/mxCiscoSafe.js",STENCIL_PATH+"/cisco_safe/architecture.xml",STENCIL_PATH+"/cisco_safe/business_icons.xml",STENCIL_PATH+"/cisco_safe/capability.xml",STENCIL_PATH+"/cisco_safe/design.xml",STENCIL_PATH+"/cisco_safe/iot_things_icons.xml",-STENCIL_PATH+"/cisco_safe/people_places_things_icons.xml",STENCIL_PATH+"/cisco_safe/security_icons.xml",STENCIL_PATH+"/cisco_safe/technology_icons.xml",STENCIL_PATH+"/cisco_safe/threat.xml"];mxStencilRegistry.libraries.dfd=[SHAPES_PATH+"/mxDFD.js"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.kubernetes=[SHAPES_PATH+"/mxKubernetes.js",STENCIL_PATH+"/kubernetes.xml",STENCIL_PATH+"/kubernetes2.xml"];mxStencilRegistry.libraries.flowchart=[SHAPES_PATH+"/mxFlowchart.js",-STENCIL_PATH+"/flowchart.xml"];mxStencilRegistry.libraries.ios=[SHAPES_PATH+"/mockup/mxMockupiOS.js"];mxStencilRegistry.libraries.rackGeneral=[SHAPES_PATH+"/rack/mxRack.js",STENCIL_PATH+"/rack/general.xml"];mxStencilRegistry.libraries.rackF5=[STENCIL_PATH+"/rack/f5.xml"];mxStencilRegistry.libraries.lean_mapping=[SHAPES_PATH+"/mxLeanMap.js",STENCIL_PATH+"/lean_mapping.xml"];mxStencilRegistry.libraries.basic=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/basic.xml"];mxStencilRegistry.libraries.ios7icons=-[STENCIL_PATH+"/ios7/icons.xml"];mxStencilRegistry.libraries.ios7ui=[SHAPES_PATH+"/ios7/mxIOS7Ui.js",STENCIL_PATH+"/ios7/misc.xml"];mxStencilRegistry.libraries.android=[SHAPES_PATH+"/mxAndroid.js",STENCIL_PATH+"/android/android.xml"];mxStencilRegistry.libraries["electrical/abstract"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/abstract.xml"];mxStencilRegistry.libraries["electrical/logic_gates"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/logic_gates.xml"];mxStencilRegistry.libraries["electrical/miscellaneous"]=-[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/miscellaneous.xml"];mxStencilRegistry.libraries["electrical/signal_sources"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/signal_sources.xml"];mxStencilRegistry.libraries["electrical/electro-mechanical"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/electro-mechanical.xml"];mxStencilRegistry.libraries["electrical/transmission"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/transmission.xml"];mxStencilRegistry.libraries.infographic=-[SHAPES_PATH+"/mxInfographic.js"];mxStencilRegistry.libraries["mockup/buttons"]=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];-mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",SHAPES_PATH+-"/mxBasic.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+"/gmdl.xml"];mxStencilRegistry.libraries.gcp2=[SHAPES_PATH+"/mxGCP2.js",STENCIL_PATH+"/gcp2.xml"];mxStencilRegistry.libraries.ibm=[SHAPES_PATH+"/mxIBM.js",STENCIL_PATH+"/ibm.xml"];mxStencilRegistry.libraries.ibmcloud=[STENCIL_PATH+"/ibm_cloud.xml"];mxStencilRegistry.libraries.cabinets=[SHAPES_PATH+"/mxCabinets.js",STENCIL_PATH+"/cabinets.xml"];mxStencilRegistry.libraries.archimate=-[SHAPES_PATH+"/mxArchiMate.js"];mxStencilRegistry.libraries.archimate4=[SHAPES_PATH+"/mxArchiMate3.js",SHAPES_PATH+"/mxArchiMate4.js"];mxStencilRegistry.libraries.archimate3=[SHAPES_PATH+"/mxArchiMate3.js"];mxStencilRegistry.libraries.sysml=[SHAPES_PATH+"/mxSysML.js"];mxStencilRegistry.libraries.eip=[SHAPES_PATH+"/mxEip.js",STENCIL_PATH+"/eip.xml"];mxStencilRegistry.libraries.networks=[SHAPES_PATH+"/mxNetworks.js",STENCIL_PATH+"/networks.xml"];mxStencilRegistry.libraries.networks2=[SHAPES_PATH+"/mxNetworks2.js",-STENCIL_PATH+"/networks2.xml"];mxStencilRegistry.libraries.aws3d=[SHAPES_PATH+"/mxAWS3D.js",STENCIL_PATH+"/aws3d.xml"];mxStencilRegistry.libraries.aws4=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.aws4b=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.uml25=[SHAPES_PATH+"/mxUML25.js"];mxStencilRegistry.libraries.veeam=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam.xml"];mxStencilRegistry.libraries.veeam2=-[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam2.xml"];mxStencilRegistry.libraries.pid2inst=[SHAPES_PATH+"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxStencilRegistry.libraries.salesforce=[STENCIL_PATH+"/salesforce.xml"];-mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=function(k){var v=null;null!=k&&0<k.length&&("ER"==k.substring(0,2)?v="mxgraph.er":"sysML"==k.substring(0,5)&&(v="mxgraph.sysml"));return v};var ua=mxMarker.createMarker;mxMarker.createMarker=function(k,v,H,P,T,W,ha,X,ea,oa){if(null!=H&&null==mxMarker.markers[H]){var la=this.getPackageForType(H);null!=la&&mxStencilRegistry.getStencil(la)}return ua.apply(this,-arguments)};var Ca=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(k,v,H,P,T,W){"1"==mxUtils.getValue(v.style,"lineShape",null)&&k.setFillColor(mxUtils.getValue(v.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return Ca.apply(this,arguments)};PrintDialog.prototype.create=function(k,v,H,P){function T(){ra.value=Math.max(1,Math.min(ta,Math.max(parseInt(ra.value),parseInt(na.value))));na.value=Math.max(1,Math.min(ta,Math.min(parseInt(ra.value),parseInt(na.value))))}function W(rb){k.lastPrintPagesRadioChecked=-Ba.checked;k.lastPrintSelectionOnlyChecked=va.checked;k.lastPrintCropRadioChecked=La.checked;k.lastPrintFitRadioChecked=Ga.checked;Ba.checked&&na.value<ra.value?(k.lastPrintPagesFromInput=na.value,k.lastPrintPagesToInput=ra.value):(k.lastPrintPagesFromInput=null,k.lastPrintPagesToInput=null);db.value=Math.max(1,Math.min(1600,parseInt(db.value)))+"%";k.lastPrintZoom=db.value;k.lastPrintBorder=Va.value;k.lastPrintGrid=Ea.checked;k.lastPrintShadow=$a.checked;k.lastPrintTransparent=cb.checked;k.lastPrintInclude=-Za.checked;k.lastPrintIcons=eb.checked;k.lastPrintSheetsAcross=Sa.value;k.lastPrintSheetsDown=ab.value;var xb={};xb.border=parseInt(Va.value);xb.scale=parseInt(db.value)/100;xb.grid=Ea.checked;xb.shadows=$a.checked;xb.transparent=cb.checked;xb.includeCopy=Za.checked;xb.icons=eb.checked&&EditorUi.isElectronApp;xb.sheetsAcross=parseInt(Sa.value);xb.sheetsDown=parseInt(ab.value);xb.pagesFrom=parseInt(na.value);xb.pagesTo=parseInt(ra.value);xb.allPages=xa.checked;xb.selection=va.checked;xb.pageView=Ha.checked;-xb.crop=La.checked;xb.fit=Ga.checked;return null!=H?H(!rb,xb):k.print(!rb,xb)}function ha(rb){try{k.hideDialog(),null!=H?W(rb):k.spinner.spin(document.body,mxResources.get("updatingPreview"))&&window.setTimeout(function(){try{W(rb),k.spinner.stop()}catch(xb){k.handleError(xb)}},0)}catch(xb){k.handleError(xb)}}var X=k.editor.graph,ea=document.createElement("div");ea.style.display="flex";ea.style.flexDirection="column";ea.style.minHeight="0";var oa=document.createElement("div");oa.style.flex="1 1 auto";-oa.style.minHeight="0";oa.style.overflowY="auto";ea.appendChild(oa);var la=document.createElement("h3");mxUtils.write(la,v||mxResources.get("print"));oa.appendChild(la);var ca=1,ta=1;la=document.createElement("div");la.className="geDialogSection";la.style.whiteSpace="nowrap";var xa=document.createElement("input");xa.style.marginRight="8px";xa.setAttribute("type","radio");xa.setAttribute("name","pages-printdialog");xa.setAttribute("id","gePrintDlgAllPages");var qa=document.createElement("div");qa.className=-"geDialogCheckRow";qa.appendChild(xa);v=document.createElement("label");v.setAttribute("for","gePrintDlgAllPages");mxUtils.write(v,mxResources.get("allPages"));qa.appendChild(v);la.appendChild(qa);var Ba=document.createElement("input");Ba.style.marginRight="8px";Ba.setAttribute("type","radio");Ba.setAttribute("name","pages-printdialog");Ba.setAttribute("id","gePrintDlgPages");qa=document.createElement("div");qa.className="geDialogCheckRow";qa.appendChild(Ba);v=document.createElement("label");v.setAttribute("for",-"gePrintDlgPages");mxUtils.write(v,mxResources.get("pages")+":");qa.appendChild(v);var na=document.createElement("input");na.style.margin="0 4px";na.setAttribute("value","1");na.setAttribute("type","number");na.setAttribute("min","1");na.style.width="40px";qa.appendChild(na);v=document.createElement("span");mxUtils.write(v,mxResources.get("to"));qa.appendChild(v);var ra=na.cloneNode(!0);qa.appendChild(ra);mxEvent.addListener(na,"focus",function(){Ba.checked=!0});mxEvent.addListener(ra,"focus",function(){Ba.checked=-!0});mxEvent.addListener(na,"change",T);mxEvent.addListener(ra,"change",T);if(null!=k.pages&&(ta=k.pages.length,null!=k.currentPage))for(v=0;v<ta;v++)if(k.currentPage==k.pages[v]){ca=v+1;break}null!=k.lastPrintPagesFromInput&&null!=k.lastPrintPagesToInput?(na.value=Math.min(ta,Math.max(1,k.lastPrintPagesFromInput)),ra.value=Math.min(ta,Math.max(1,k.lastPrintPagesToInput))):(na.value=ca,ra.value=ca);na.setAttribute("max",ta);ra.setAttribute("max",ta);v=mxUtils.button(mxResources.get("currentPage"),-function(rb){na.value=ca;ra.value=ca;Ba.checked=!0});v.className="geBtn";v.setAttribute("title",mxResources.get("currentPage"));v.style.marginLeft="4px";v.style.maxWidth="100px";qa.appendChild(v);la.appendChild(qa);1<ta&&oa.appendChild(la);qa=document.createElement("div");qa.className="geDialogCheckRow";var va=document.createElement("input");va.setAttribute("name","pages-printdialog");va.setAttribute("type",1==ta?"checkbox":"radio");va.setAttribute("id","gePrintDlgSelectionOnly");va.style.marginRight=-"8px";X.isSelectionEmpty()&&va.setAttribute("disabled","disabled");X.isEnabled()&&(qa.appendChild(va),v=document.createElement("label"),v.setAttribute("for","gePrintDlgSelectionOnly"),mxUtils.write(v,mxResources.get("selectionOnly")),qa.appendChild(v));X.isEnabled()&&(1<ta?la.appendChild(qa):(v=document.createElement("div"),v.className="geDialogSection",v.appendChild(qa),oa.appendChild(v)));!k.isPagesEnabled()||k.lastPrintPagesRadioChecked?Ba.checked=!0:!X.isSelectionEmpty()&&k.lastPrintSelectionOnlyChecked?-va.checked=!0:xa.checked=!0;X=k.addAdvancedSection(oa);oa=X.content;la=document.createElement("div");la.className="geDialogCheckRow";var Ha=document.createElement("input");Ha.style.marginRight="8px";Ha.setAttribute("type","radio");Ha.setAttribute("name","printSize");Ha.setAttribute("id","gePrintDlgPageView");la.appendChild(Ha);v=document.createElement("label");v.setAttribute("for","gePrintDlgPageView");mxUtils.write(v,mxResources.get("pageView"));la.appendChild(v);mxEvent.addListener(la,"click",function(){Ha.checked=-!0});oa.appendChild(la);la=document.createElement("div");la.className="geDialogCheckRow";var La=document.createElement("input");La.style.marginRight="8px";La.setAttribute("type","radio");La.setAttribute("name","printSize");La.setAttribute("id","gePrintDlgCrop");la.appendChild(La);v=document.createElement("label");v.setAttribute("for","gePrintDlgCrop");mxUtils.write(v,mxResources.get("crop"));la.appendChild(v);mxEvent.addListener(la,"click",function(){La.checked=!0});oa.appendChild(la);la=document.createElement("div");-la.className="geDialogCheckRow";la.style.alignItems="flex-start";var Ga=document.createElement("input");Ga.style.marginTop="4px";Ga.setAttribute("type","radio");Ga.setAttribute("name","printSize");la.appendChild(Ga);qa=document.createElement("table");qa.style.display="inline-block";qa.style.borderSpacing="0";var Da=document.createElement("tbody"),Qa=document.createElement("tr"),Ka=Qa.cloneNode(!0),Na=document.createElement("td"),Oa=Na.cloneNode(!0),Fa=Na.cloneNode(!0),Aa=Na.cloneNode(!0),Ja=Na.cloneNode(!0),-Ia=Na.cloneNode(!0);Na.style.textAlign="right";Aa.style.textAlign="right";mxUtils.write(Na,mxResources.get("fitTo"));mxEvent.addListener(la,"click",function(rb){mxEvent.getSource(rb)!=Ga&&(Ga.checked=!Ga.checked)});var Sa=document.createElement("input");Sa.style.margin="0 2px";Sa.style.boxSizing="border-box";Sa.setAttribute("value",k.lastPrintSheetsAcross||"1");Sa.setAttribute("min","1");Sa.setAttribute("type","number");Sa.style.width="40px";Oa.appendChild(Sa);v=document.createElement("span");mxUtils.write(v,-mxResources.get("fitToSheetsAcross"));Fa.appendChild(v);mxUtils.write(Aa,mxResources.get("fitToBy"));var ab=Sa.cloneNode(!0);ab.setAttribute("value",k.lastPrintSheetsDown||"1");Ja.appendChild(ab);mxEvent.addListener(Sa,"click",function(rb){Ga.checked=!0;mxEvent.consume(rb)});mxEvent.addListener(ab,"click",function(rb){Ga.checked=!0;mxEvent.consume(rb)});k.lastPrintCropRadioChecked?La.checked=!0:k.lastPrintFitRadioChecked?Ga.checked=!0:Ha.checked=!0;v=document.createElement("span");mxUtils.write(v,-mxResources.get("fitToSheetsDown"));Ia.appendChild(v);Qa.appendChild(Na);Qa.appendChild(Oa);Qa.appendChild(Fa);Ka.appendChild(Aa);Ka.appendChild(Ja);Ka.appendChild(Ia);Da.appendChild(Qa);Da.appendChild(Ka);qa.appendChild(Da);la.appendChild(qa);oa.appendChild(la);oa=document.createElement("div");oa.className="geDialogSection";v=document.createElement("div");v.className="geDialogFormRow";la=document.createElement("label");la.className="geDialogFormLabel";la.setAttribute("for","gePrintDlgBorder");mxUtils.write(la,-mxResources.get("borderWidth"));v.appendChild(la);var Va=document.createElement("input");Va.setAttribute("type","number");Va.setAttribute("min","0");Va.setAttribute("id","gePrintDlgBorder");Va.style.width="40px";Va.value=null!=k.lastPrintBorder?k.lastPrintBorder:mxPrintPreview.prototype.pageMargin;v.appendChild(Va);la=document.createElement("label");la.setAttribute("for","gePrintDlgZoom");la.style.marginLeft="12px";la.style.marginRight="4px";mxUtils.write(la,mxResources.get("zoom"));v.appendChild(la);-var db=document.createElement("input");db.setAttribute("id","gePrintDlgZoom");db.style.width="60px";db.value=null!=k.lastPrintZoom?k.lastPrintZoom:"100%";v.appendChild(db);oa.appendChild(v);la=document.createElement("div");la.className="geDialogCheckRow";var Ea=document.createElement("input");Ea.setAttribute("type","checkbox");Ea.setAttribute("id","gePrintDlgGrid");Ea.style.marginRight="8px";Ea.checked=null!=k.lastPrintGrid?k.lastPrintGrid:!1;la.appendChild(Ea);v=document.createElement("label");v.setAttribute("for",-"gePrintDlgGrid");mxUtils.write(v,mxResources.get("grid"));la.appendChild(v);oa.appendChild(la);la=document.createElement("div");la.className="geDialogCheckRow";var $a=document.createElement("input");$a.setAttribute("type","checkbox");$a.setAttribute("id","gePrintDlgShadows");$a.style.marginRight="8px";$a.checked=null!=k.lastPrintShadow?k.lastPrintShadow:!1;la.appendChild($a);v=document.createElement("label");v.setAttribute("for","gePrintDlgShadows");mxUtils.write(v,mxResources.get("shadows"));la.appendChild(v);-k.isOffline()&&!mxClient.IS_CHROMEAPP||la.appendChild(k.createHelpIcon("https://www.drawio.com/docs/manual/export/print-diagram/#shadows-in-print-and-pdf-export"));Editor.enableShadowOption||(la.style.display="none");oa.appendChild(la);var cb=document.createElement("input");cb.setAttribute("type","checkbox");cb.setAttribute("id","gePrintDlgTransparent");cb.style.marginRight="8px";cb.checked=null!=k.lastPrintTransparent?k.lastPrintTransparent:!1;null!=H&&(la=document.createElement("div"),la.className=-"geDialogCheckRow",la.appendChild(cb),v=document.createElement("label"),v.setAttribute("for","gePrintDlgTransparent"),mxUtils.write(v,mxResources.get("transparentBackground")),la.appendChild(v),oa.appendChild(la));var Za=document.createElement("input");Za.setAttribute("type","checkbox");Za.setAttribute("id","gePrintDlgInclude");Za.style.marginRight="8px";Za.checked=null!=k.lastPrintInclude?k.lastPrintInclude:Editor.defaultIncludeDiagram;null==H||mxClient.IS_CHROMEAPP||"draw.io"!=k.getServiceName()||-(la=document.createElement("div"),la.className="geDialogCheckRow",la.appendChild(Za),v=document.createElement("label"),v.setAttribute("for","gePrintDlgInclude"),mxUtils.write(v,mxResources.get("includeCopyOfMyDiagram")),la.appendChild(v),oa.appendChild(la));var eb=document.createElement("input");eb.setAttribute("type","checkbox");eb.setAttribute("id","gePrintDlgIcons");eb.style.marginRight="8px";eb.checked=null!=k.lastPrintIcons?k.lastPrintIcons:!1;null!=H&&EditorUi.isElectronApp&&(la=document.createElement("div"),-la.className="geDialogCheckRow",la.appendChild(eb),v=document.createElement("label"),v.setAttribute("for","gePrintDlgIcons"),mxUtils.write(v,mxResources.get("notes")),la.appendChild(v),oa.appendChild(la));X.wrapper.appendChild(oa);v=document.createElement("div");v.style.flex="0 0 auto";v.style.marginTop="16px";v.style.textAlign="right";v.style.whiteSpace="nowrap";k.isOffline()&&!mxClient.IS_CHROMEAPP||null!=H||v.appendChild(k.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));X=mxUtils.button(mxResources.get("cancel"),-function(){k.hideDialog()});X.className="geBtn";k.editor.cancelFirst&&v.appendChild(X);PrintDialog.previewEnabled&&null==H&&(oa=mxUtils.button(mxResources.get("preview"),function(){ha(!1)}),oa.className="geBtn",v.appendChild(oa));P=null!=P?P:null!=H?"export":PrintDialog.previewEnabled?"print":"ok";P=mxUtils.button(mxResources.get(P),function(){ha(!0)});P.className="geBtn gePrimaryBtn";v.appendChild(P);k.editor.cancelFirst||v.appendChild(X);ea.appendChild(v);if(k.editor.isChromelessView()){var lb=-function(){Editor.isDarkMode()?(ea.classList.add("geDarkMode"),ea.style.colorScheme="dark"):(ea.classList.remove("geDarkMode"),ea.style.colorScheme="light")};k.addListener("darkModeChanged",lb);lb();var wb=function(rb,xb){rb=xb.getProperty("dialog");ea.parentNode==rb.container&&(k.editor.removeListener(wb),k.removeListener(lb))};k.editor.addListener("hideDialog",wb)}this.container=ea};var ia=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=function(){null==this.page&&(this.page=-this.ui.currentPage);if(this.page!=this.ui.currentPage){if(null!=this.page.viewState){this.ignoreColor||(this.page.viewState.background=this.color);if(!this.ignoreImage){var k=this.image;null!=k&&null!=k.src&&Graph.isPageLink(k.src)&&(k={originalSrc:k.src});this.page.viewState.backgroundImage=k}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.adaptiveColors&&(this.page.viewState.adaptiveColors=this.adaptiveColors);-null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else ia.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.adaptiveColors&&this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(k=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=k?k:"default"),null!=this.shadowVisible&&this.shadowVisible!=-this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.parseAnimationScript=function(k){var v=[];if(null==k)return v;var H=function(ea){if(null!=ea)return ea=parseFloat(ea),!isNaN(ea)&&0<=ea?ea:void 0},P={fade:!0,pop:!0,wipe:!0};k=k.split("\n");for(var T=0;T<k.length;T++){var W=mxUtils.trim(k[T]);if(""!=W&&"#"!=W.charAt(0)){W=W.split(/\s+/);var ha={action:W[0],cell:W[1],arg:W[2]};if("wait"==ha.action){if(ha.delay=-parseFloat(ha.cell),isNaN(ha.delay)||0>ha.delay)ha.delay=1E3}else if("setOpacity"==ha.action)ha.opacity=parseFloat(W[2]),isNaN(ha.opacity)&&(ha.opacity=1),ha.opacity=Math.max(0,Math.min(1,ha.opacity)),ha.duration=H(W[3]),ha.arg=void 0;else if("show"==ha.action){if(null!=ha.arg&&!P[ha.arg]){var X=H(ha.arg);null!=X&&(ha.duration=X,ha.arg=void 0)}null==ha.duration&&(ha.duration=H(W[3]))}else"hide"==ha.action&&(ha.duration=H(W[2]),ha.arg=void 0);v.push(ha)}}return v};Editor.animationFadeDelay=400;Editor.canBatchAnimationSteps=-function(k,v){return k.action!=v.action||"wait"==k.action||(k.arg||"")!=(v.arg||"")||(null!=k.opacity?k.opacity:"")!=(null!=v.opacity?v.opacity:"")||(null!=k.duration?k.duration:"")!=(null!=v.duration?v.duration:"")?!1:!0};Editor.convertLegacyAnimationStep=function(k){if("wait"==k.action)return{wait:k.delay};var v="all"==k.cell?"*":k.cell;if(null==v)return null;var H={cells:[v]};if(null!=k.duration)H.delay=k.duration;else if("show"==k.action&&"fade"==k.arg)H.delay=Editor.animationFadeDelay;else if("hide"==-k.action||"setOpacity"==k.action)H.delay=Editor.animationFadeDelay;return"show"==k.action?"fade"==k.arg?{fadeIn:H}:"pop"==k.arg?{popIn:H}:{wipeIn:H}:"hide"==k.action?{fadeOut:H}:"setOpacity"==k.action?(H.value=k.opacity,{fadeTo:H}):"flow"==k.action?(v={cells:[v]},"start"==k.arg?v.start=!0:"stop"==k.arg&&(v.start=!1),{flow:v}):null};Editor.convertLegacyAnimation=function(k){k=Editor.parseAnimationScript(k);for(var v=[{opacity:{cells:["*"],value:0}}],H=null,P=function(){null!=H&&(v.push(H),H=null)},-T=function(X){null==H&&(H={});for(var ea in X){var oa=X[ea],la;if(la=null!=H[ea]&&null!=oa&&Array.isArray(H[ea].cells)&&Array.isArray(oa.cells))la=H[ea],la=la.delay===oa.delay&&la.value===oa.value&&la.start===oa.start;if(la)for(la=0;la<oa.cells.length;la++)H[ea].cells.push(oa.cells[la]);else null!=H[ea]&&(P(),H={}),H[ea]=oa}},W=0;W<k.length;W++){var ha=Editor.convertLegacyAnimationStep(k[W]);null!=ha&&(null!=ha.wait?(P(),v.push(ha)):T(ha))}P();return{animation:{steps:v}}};Editor.parseAnimationData=-function(k){var v=function(P){null==P&&(P={});Array.isArray(P.steps)||(P.steps=[]);P.loop=null==P.loop?!0:!!P.loop;P.enabled=null==P.enabled?!0:!!P.enabled;return P};if(null==k||""===k)return v({steps:[]});if("string"==typeof k){var H=mxUtils.trim(k);return"{"==H.charAt(0)||"["==H.charAt(0)?Editor.parseAnimationData(JSON.parse(H)):v(Editor.convertLegacyAnimation(k).animation)}return null!=k.animation&&null!=k.animation.steps?v(k.animation):Array.isArray(k.steps)?v(k):v({steps:[]})};Editor.AnimationPlayer=-function(k,v){this.graph=k;this.data=Editor.parseAnimationData(v);this.cancelled=this.running=!1;this.snapshot=null};Editor.ANIMATION_ALL="*";Editor.collectAnimatableCells=function(k){var v=[],H;for(H in k.cells){var P=k.cells[H];(k.isVertex(P)||k.isEdge(P))&&v.push(P)}return v};Editor.AnimationPlayer.prototype.collectReferencedCells=function(){for(var k=this.data.steps||[],v={},H=[],P=0;P<k.length;P++){var T=k[P],W;for(W in T)if("wait"!=W&&"open"!=W){var ha=T[W];if("object"===typeof ha&&null!=ha){ha=-this.graph.getCellsForAction(ha,!0);for(var X=0;X<ha.length;X++)v[ha[X].id]||(v[ha[X].id]=!0,H.push(ha[X]))}}}return H};Editor.AnimationPlayer.prototype.snapshotOpacity=function(){var k=this.collectReferencedCells();k=this.graph.getNodesForCells(k);this.snapshot=[];for(var v=0;v<k.length;v++)this.snapshot.push({node:k[v],opacity:k[v].style.opacity})};Editor.AnimationPlayer.prototype.restoreOpacity=function(){if(null!=this.snapshot){for(var k=0;k<this.snapshot.length;k++)Graph.setTransitionForNodes([this.snapshot[k].node],-null),this.snapshot[k].node.style.opacity=this.snapshot[k].opacity;this.snapshot=null}};Editor.AnimationPlayer.prototype.play=function(k){if(!this.running&&null!=this.graph&&!this.graph.isGraphTornDown()){k=k||{};this.running=!0;this.cancelled=!1;this.graph.stoppingCustomActions=!1;this.graph.view.validate();var v=this,H=this.data.steps||[],P=function(W,ha){if(null==v.graph||v.graph.isGraphTornDown())v.running=!1;else if(v.cancelled||W>=H.length)ha();else{for(var X=W+1;X<H.length&&!0===H[X].immediate&&-!v.cancelled;)X++;if("function"==typeof k.onStep)try{k.onStep(W,X)}catch(ea){}v.graph.executeCustomActions(Graph.flattenAnimationActions(H.slice(W,X)),function(){P(X,ha)},null)}},T=function(){null==v.graph||v.graph.isGraphTornDown()?v.running=!1:v.cancelled?(v.restoreOpacity(),v.running=!1):(v.snapshotOpacity(),P(0,function(){if(v.cancelled)v.restoreOpacity(),v.running=!1;else{if("function"==typeof k.onStep)try{k.onStep(-1)}catch(W){}k.loop?(v.graph.refresh(),v.restoreOpacity(),window.setTimeout(T,-0)):(v.running=!1,v.restoreOpacity(),null!=k.done&&k.done())}}))};k.defer?window.setTimeout(T,0):T()}};Editor.AnimationPlayer.prototype.stop=function(){this.cancelled=!0;null!=this.graph&&(this.graph.stoppingCustomActions=!0);for(var k=[],v=this.collectReferencedCells(),H=0;H<v.length;H++)this.graph.getModel().isEdge(v[H])&&k.push(v[H]);0<k.length&&Editor.toggleFlowAnimation(this.graph,k,"stop")};Editor.toggleFlowAnimation=function(k,v,H){H=H||"toggle";for(var P=0;P<v.length;P++)if(k.getModel().isEdge(v[P])){var T=-k.view.getState(v[P]);if(null!=T&&null!=T.shape){var W=null!=T.shape.getFlowAnimationPath?T.shape.getFlowAnimationPath():null;if(null!=W){var ha="mxEdgeFlow"==W.getAttribute("class"),X="start"==H||"toggle"==H&&!ha;ha="stop"==H||"toggle"==H&&ha;T="1"==mxUtils.getValue(T.style,mxConstants.STYLE_DASHED,"0");ha?(W.removeAttribute("class"),T||W.removeAttribute("stroke-dasharray")):X&&(W.setAttribute("class","mxEdgeFlow"),T||W.setAttribute("stroke-dasharray","8"))}}}};Editor.playAnimationOnGraph=function(k,-v){var H=k.getModel().getRoot(),P=null;null!=H.value&&"object"==typeof H.value&&(P=H.value.getAttribute("animation"));if(null==P||""==P)return null;try{var T=Editor.parseAnimationData(P)}catch(ha){return null}if(!T.steps||0==T.steps.length||!1===T.enabled)return null;H={};if(null!=v)for(var W in v)H[W]=v[W];null==H.loop&&(H.loop=T.loop);null==H.defer&&(H.defer=!0);k=new Editor.AnimationPlayer(k,T);k.play(H);return k};Editor.installAnimationStyles=function(){if(!Editor.animationStylesInstalled){Editor.animationStylesInstalled=-!0;try{var k=document.createElement("style");k.type="text/css";k.appendChild(document.createTextNode(".mxEdgeFlow { animation: mxEdgeFlow 0.5s linear infinite; }@keyframes mxEdgeFlow { to { stroke-dashoffset: -16; } }"));document.getElementsByTagName("head")[0].appendChild(k)}catch(v){}}};Editor.installAnimationStyles()})();(function(){EditorUi.VERSION="31.4.2";EditorUi.CSV_ELK_LAYOUTS={verticalflow:{layout:"elkLayered",config:{"elk.direction":"DOWN","elk.layered.layering.strategy":"LONGEST_PATH","elk.layered.nodePlacement.bk.fixedAlignment":"BALANCED","elk.edgeRouting":"POLYLINE",edgeStyle:"elkCompat",includeEdgeLabels:!1,includeVertexLabels:!1,portSpread:!0,resizeNodes:!1}},horizontalflow:{layout:"elkLayered",config:{"elk.direction":"RIGHT","elk.layered.layering.strategy":"LONGEST_PATH","elk.layered.nodePlacement.bk.fixedAlignment":"BALANCED",+STYLE_PATH+'/fonts/ArchitectsDaughter-Regular.ttf) format("truetype"); }'};Graph.customFontElements=Object.create(null);Graph.allowedFontUrls=Object.create(null);Graph.isValidFontUrl=function(k){if("string"!==typeof k||0==k.length)return!1;if(Graph.allowedFontUrls[k])return!0;k=k.replace(/^[\x00-\x20]+/,"").replace(/[\x00-\x20]+$/,"").replace(/[\t\n\r]/g,"");return/^https?:\/\//i.test(k)||/^data:/i.test(k)||!/^[a-zA-Z][a-zA-Z0-9+.\-]*:/.test(k)&&!/^[\\\/]/.test(k)};Graph.isGoogleFontUrl=function(k){return k.substring(0,+Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS||k.substring(0,Editor.GOOGLE_FONTS_CSS2.length)==Editor.GOOGLE_FONTS_CSS2};Graph.isCssFontUrl=function(k){return Graph.isGoogleFontUrl(k)};Graph.rewriteGoogleFontUrl=function(k){null!=k&&k.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS&&(k=Editor.GOOGLE_FONTS_CSS2+k.substring(Editor.GOOGLE_FONTS.length)+":wght@400;500");return k};Graph.escapeCssString=function(k){return null!=k?String(k).replace(/[\x00-\x1f\x7f"\\]/g,function(u){return"\\"++u.charCodeAt(0).toString(16)+" "}):k};Graph.createFontElement=function(k,u){var H=Graph.fontMapping[u];null==H&&Graph.isCssFontUrl(u)?(k=document.createElement("link"),k.setAttribute("rel","stylesheet"),k.setAttribute("type","text/css"),k.setAttribute("charset","UTF-8"),k.setAttribute("href",Graph.rewriteGoogleFontUrl(u))):(null==H&&(H='@font-face {\nfont-family: "'+Graph.escapeCssString(k)+'";\nsrc: url("'+Graph.escapeCssString(u)+'");\n}'),k=document.createElement("style"),mxUtils.write(k,H));return k};+Graph.addRecentCustomFont=function(k,u){};Graph.addFont=function(k,u,H,P){if(null!=k&&0<k.length&&Graph.isValidFontUrl(u)){P=null!=P?P:Graph.customFontElements;var T=k.toLowerCase();if("helvetica"!=T&&"arial"!=k&&"sans-serif"!=T){var W=P[T];null!=W&&W.url!=u&&(null!=W.elt.parentNode&&W.elt.parentNode.removeChild(W.elt),W=null);null==W?(W=u,"http:"==u.substring(0,5)&&(W=PROXY_URL+"?url="+encodeURIComponent(u)),W={name:k,url:u,elt:Graph.createFontElement(k,W)},P[T]=W,u=P==Graph.customFontElements?document.getElementsByTagName("head")[0]:+null,null!=H&&("link"==W.elt.nodeName.toLowerCase()?(W.elt.onload=H,W.elt.onerror=H):H()),null!=u&&u.appendChild(W.elt)):null!=H&&H()}else null!=H&&H()}else null!=H&&H();return k};Graph.getFontUrl=function(k,u){k=Graph.customFontElements[k.toLowerCase()];null!=k&&(u=k.url);return u};Graph.processFontAttributes=function(k){k=k.getElementsByTagName("*");for(var u=0;u<k.length;u++){var H=k[u].getAttribute("data-font-src");if(null!=H){var P="FONT"==k[u].nodeName.toUpperCase()?k[u].getAttribute("face"):+k[u].style.fontFamily;null!=P&&Graph.addFont(P,H)}}};Graph.processFontStyle=function(k){if(null!=k){var u=mxUtils.getValue(k,"fontSource",null);if(null!=u){var H=mxUtils.getValue(k,mxConstants.STYLE_FONTFAMILY,null);if(null!=H)try{Graph.addFont(H,decodeURIComponent(u))}catch(P){}}}return k};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible="0"!=urlParams.pv;+mxConnectionHandler.prototype.createTarget="1"==urlParams.sketch;Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var q=Graph.prototype.init;Graph.prototype.init=function(){function k(T){u=T}q.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var u=null;mxEvent.addListener(this.container,+"mouseenter",k);mxEvent.addListener(this.container,"mousemove",k);mxEvent.addListener(this.container,"mouseleave",function(T){u=null});this.isMouseInsertPoint=function(){return null!=u};var H=this.getInsertPoint;this.getInsertPoint=function(T){return null==u||T?H.apply(this,arguments):this.getPointForEvent(u)};var P=this.layoutManager.getLayout;this.layoutManager.getLayout=function(T){var W=this.graph.getCellStyle(T);if(null!=W&&"rack"==W.childLayout){var ha=new mxStackLayout(this.graph,!1);ha.gridSize=+null!=W.rackUnitSize?parseFloat(W.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;ha.marginLeft=W.marginLeft||0;ha.marginRight=W.marginRight||0;ha.marginTop=W.marginTop||0;ha.marginBottom=W.marginBottom||0;ha.allowGaps=W.allowGaps||0;ha.horizontal="1"==mxUtils.getValue(W,"horizontalRack","0");ha.resizeParent=!1;ha.fill=!0;return ha}return P.apply(this,arguments)};this.updateGlobalUrlVariables()};var x=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=+function(k,u){return Graph.processFontStyle(x.apply(this,arguments))};var A=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(k,u,H,P,T,W,ha,X,ea,oa,la,ca){A.apply(this,arguments);Graph.processFontAttributes(ca)};var E=mxText.prototype.redraw;mxText.prototype.redraw=function(){E.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(k,u,H,P){function T(){for(var Ba=X.getSelectionCells(),+na=[],ra=0;ra<Ba.length;ra++)X.isCellVisible(Ba[ra])&&na.push(Ba[ra]);X.setSelectionCells(na)}function W(Ba){X.setHiddenTags(Ba?[]:ea.slice());T();X.refresh()}function ha(Ba,na){la.innerText="";if(0<Ba.length){var ra=document.createElement("table");ra.setAttribute("cellpadding","2");ra.style.boxSizing="border-box";ra.style.tableLayout="fixed";ra.style.width="100%";var va=document.createElement("tbody");if(null!=Ba&&0<Ba.length)for(var Ha=0;Ha<Ba.length;Ha++)(function(La){function Ga(){var Fa=X.getCellsForTags([La],+null,null,!0);X.isEnabled()?X.setSelectionCells(Fa):X.highlightCells(Fa,null,null,70)}var Da=0>mxUtils.indexOf(X.hiddenTags,La),Qa=document.createElement("tr"),Ka=document.createElement("td");Ka.style.align="center";Ka.style.width="16px";var Na=document.createElement("img");Na.setAttribute("src",Da?Editor.visibleImage:Editor.hiddenImage);Na.setAttribute("title",mxResources.get(Da?"hideIt":"show",[La])+"\n"+mxResources.get("shiftClickShowOnly",[La]));mxUtils.setOpacity(Na,Da?75:25);Na.className="geAdaptiveAsset";+Na.style.verticalAlign="middle";Na.style.cursor="pointer";Na.style.width="16px";if(u||Editor.isDarkMode())Na.style.filter="invert(100%)";Ka.appendChild(Na);mxEvent.addListener(Na,"click",function(Fa){if(mxEvent.isShiftDown(Fa)){for(var Aa=[],Ja=0;Ja<ea.length;Ja++)ea[Ja]!==La&&Aa.push(ea[Ja]);var Ia=0<Aa.length;for(Ja=0;Ja<Aa.length;Ja++)if(0>mxUtils.indexOf(X.hiddenTags,Aa[Ja])){Ia=!1;break}Ia&&0>mxUtils.indexOf(X.hiddenTags,La)?X.setHiddenTags([]):X.setHiddenTags(Aa)}else X.toggleHiddenTag(La);+T();X.refresh();mxEvent.consume(Fa)});Qa.appendChild(Ka);Ka=document.createElement("td");Ka.style.align="center";Ka.style.width="16px";Na=document.createElement("img");Na.setAttribute("src",Editor.selectImage);Na.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(Na,Da?75:25);Na.className="geAdaptiveAsset";Na.style.verticalAlign="middle";Na.style.cursor="pointer";Na.style.width="16px";if(u||Editor.isDarkMode())Na.style.filter="invert(100%)";mxEvent.addListener(Na,"click",function(Fa){W(!0);+Ga();mxEvent.consume(Fa)});Ka.appendChild(Na);Qa.appendChild(Ka);Ka=document.createElement("td");Ka.style.overflow="hidden";Ka.style.whiteSpace="nowrap";Ka.style.textOverflow="ellipsis";Ka.style.verticalAlign="middle";Ka.style.cursor="pointer";Ka.setAttribute("title",La);a=document.createElement("a");mxUtils.write(a,La);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,Da?100:40);Ka.appendChild(a);mxEvent.addListener(Ka,"click",function(Fa){if(mxEvent.isShiftDown(Fa))W(!0),+Ga();else if(Da&&0<X.hiddenTags.length)W(!0);else{var Aa=ea.slice(),Ja=mxUtils.indexOf(Aa,La);Aa.splice(Ja,1);X.setHiddenTags(Aa);T();X.refresh()}mxEvent.consume(Fa)});Qa.appendChild(Ka);if(X.isEnabled()){Ka=document.createElement("td");Ka.style.verticalAlign="middle";Ka.style.textAlign="center";Ka.style.width="18px";if(null==na){Ka.style.align="center";Ka.style.width="16px";Na=document.createElement("img");Na.setAttribute("src",Editor.trashImage);Na.setAttribute("title",mxResources.get("removeIt",+[La]));mxUtils.setOpacity(Na,Da?75:25);Na.className="geAdaptiveAsset";Na.style.verticalAlign="middle";Na.style.cursor="pointer";Na.style.width="16px";if(u||Editor.isDarkMode())Na.style.filter="invert(100%)";mxEvent.addListener(Na,"click",function(Fa){var Aa=mxUtils.indexOf(ea,La);0<=Aa&&ea.splice(Aa,1);X.removeTagsForCells(X.model.getDescendants(X.model.getRoot()),[La]);X.refresh();mxEvent.consume(Fa)});Ka.appendChild(Na)}else{var Oa=document.createElement("input");Oa.setAttribute("type","checkbox");+Oa.style.margin="0px";Oa.defaultChecked=null!=na&&0<=mxUtils.indexOf(na,La);Oa.checked=Oa.defaultChecked;Oa.style.background="transparent";Oa.setAttribute("title",mxResources.get(Oa.defaultChecked?"removeIt":"add",[La]));mxEvent.addListener(Oa,"change",function(Fa){Oa.checked?X.addTagsForCells(X.getSelectionCells(),[La]):X.removeTagsForCells(X.getSelectionCells(),[La]);mxEvent.consume(Fa)});Ka.appendChild(Oa)}Qa.appendChild(Ka)}va.appendChild(Qa)})(Ba[Ha]);ra.appendChild(va);la.appendChild(ra)}}var X=+this,ea=X.hiddenTags.slice(),oa=document.createElement("div");oa.style.userSelect="none";oa.style.overflow="hidden";oa.style.padding="10px";oa.style.height="100%";var la=document.createElement("div");la.style.position="absolute";la.style.boxSizing="border-box";la.style.userSelect="none";la.style.overflow="auto";la.style.padding="3px";la.style.left="0px";la.style.right="0px";la.style.top="0px";la.style.bottom="0px";oa.appendChild(la);X.addListener(mxEvent.ROOT,function(){ea=X.hiddenTags.slice()});+var ca=mxUtils.bind(this,function(Ba,na){if(k()){Ba=X.getAllTags();for(na=0;na<Ba.length;na++)0>mxUtils.indexOf(ea,Ba[na])&&ea.push(Ba[na]);ea.sort();X.isSelectionEmpty()?ha(ea):ha(ea,X.getCommonTagsForCells(X.getSelectionCells()))}});X.selectionModel.addListener(mxEvent.CHANGE,ca);X.model.addListener(mxEvent.CHANGE,ca);X.addListener(mxEvent.REFRESH,ca);var ta=document.createElement("div");ta.className="geToolbarContainer geDialogToolbar";ta.style.position="absolute";ta.style.display="flex";ta.style.bottom=+"0px";ta.style.left="0px";ta.style.right="0px";ta.style.height="32px";ta.style.overflow="hidden";ta.style.padding="3px 4px 4px 4px";ta.style.borderWidth="1px 0px 0px 0px";ta.style.borderStyle="solid";ta.style.whiteSpace="nowrap";if(X.isEnabled()){la.style.bottom="32px";var xa=document.createElement("a");xa.className="geButton";var qa=xa.cloneNode(!1);qa.style.backgroundImage="url("+Editor.visibleImage+")";qa.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(qa,"click",function(Ba){X.setHiddenTags([]);+mxEvent.isShiftDown(Ba)||(ea=X.hiddenTags.slice());T();X.refresh();mxEvent.consume(Ba)});ta.appendChild(qa);null!=H&&(xa=xa.cloneNode(!1),xa.style.backgroundImage="url("+Editor.plusImage+")",xa.setAttribute("title",mxResources.get("add")),mxEvent.addListener(xa,"click",function(Ba){H(ea,function(na){ea=na;ca()});mxEvent.consume(Ba)}),ta.appendChild(xa));oa.appendChild(ta)}null!=P&&ta.appendChild(P);return{div:oa,refresh:ca}};Graph.prototype.getCustomFonts=function(k){k=null!=k?k:Graph.customFontElements;+var u=[];if(null!=this.extFonts)for(var H=0;H<this.extFonts.length;H++)Graph.isValidFontUrl(this.extFonts[H].url)&&u.push(this.extFonts[H]);for(var P in k)H=k[P],Graph.isValidFontUrl(H.url)&&u.push({name:H.name,url:H.url});return u};Graph.prototype.getExtFontCss=function(k){k=this.getCustomFonts(k);for(var u="",H="",P=0;P<k.length;P++){var T=k[P].name,W=k[P].url;Graph.isCssFontUrl(W)?u+='@import url("'+Graph.escapeCssString(Graph.rewriteGoogleFontUrl(W))+'");\n':H+='@font-face {\nfont-family: "'++Graph.escapeCssString(T)+'";\nsrc: url("'+Graph.escapeCssString(W)+'");\n}\n'}return u+H};Graph.prototype.setFont=function(k,u){Graph.addFont(k,u);var H=Editor.guid();document.execCommand("fontname",!1,H);for(var P=this.cellEditor.textarea.getElementsByTagName("font"),T=!1,W=0;W<P.length;W++)P[W].getAttribute("face")==H&&(T=!0,P[W].setAttribute("face",k),null!=u?P[W].setAttribute("data-font-src",u):P[W].removeAttribute("data-font-src"));T||document.execCommand("fontname",!1,k)};var J=Graph.prototype.isFastZoomEnabled;+Graph.prototype.isFastZoomEnabled=function(){return J.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var k=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=k)for(var u in k)this.globalVars[u]=k[u]}catch(H){null!=window.console&&console.log("Error in vars URL parameter: "+H)}};Graph.prototype.getExportVariables=+function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var Q=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(k){var u=Q.apply(this,arguments);null==u&&null!=this.globalVars&&(u=this.globalVars[k]);return u};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var k=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(k.ownerDocument)).decode(k)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};+var V=Graph.prototype.getSvg;Graph.prototype.getSvg=function(k,u,H,P,T,W,ha,X,ea,oa,la,ca,ta,xa,qa,Ba,na){if(Editor.mathOutputSize&&this.mathEnabled&&null!=this.container&&document.body.contains(this.container)&&"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset){if(0==this.container.getElementsByTagName("mjx-container").length)try{MathJax.typeset([this.container])}catch(Ga){}this.refreshMathBounds()}var ra=V.apply(this,arguments);if(null!=ca){var va=ra.getAttribute("style");null==+va&&(va="");ca="auto"==ca||"none"==this.getAdaptiveColors()?"none"==this.getAdaptiveColors()?"light":"light dark":ca;ra.setAttribute("style",va+(" color-scheme: "+ca+";"))}var Ha=la?this.getExtFontCss():"";if(0<Ha.length){var La=ra.ownerDocument;va=null!=La.createElementNS?La.createElementNS(mxConstants.NS_SVG,"style"):La.createElement("style");null!=La.setAttributeNS?va.setAttributeNS("type","text/css"):va.setAttribute("type","text/css");va.appendChild(La.createTextNode(Ha));ra.getElementsByTagName("defs")[0].appendChild(va)}Editor.replaceSvgDataUris&&+null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&EditorUi.embedSvgImages(ra);this.mathEnabled&&(document.body.appendChild(ra),Editor.MathJaxRender(ra),ra.parentNode.removeChild(ra),va=ra.ownerDocument.getElementById("MJX-SVG-styles"),null!=va&&ra.getElementsByTagName("defs")[0].appendChild(va.cloneNode(!0)));return ra};var K=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(k){K.apply(this,arguments);null!=k.secondLabel&&(k.secondLabel.destroy(),k.secondLabel=+null)};mxCellRenderer.prototype.getShapesForState=function(k){return[k.shape,k.text,k.secondLabel,k.control]};var fa=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){fa.apply(this,arguments);this.enumerationState=0};var Y=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(k){null!=k.shape&&this.redrawEnumerationState(k);return Y.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(k){k=mxUtils.safeDecodeURIComponent(mxUtils.getValue(k.style,+"enumerateValue",""));""==k&&(k=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(k)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(k){var u="1"==mxUtils.getValue(k.style,"enumerate",0);u&&null==k.secondLabel?(k.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),k.secondLabel.size=12,k.secondLabel.state=k,k.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,+this.graph.cellRenderer.initializeLabel(k,k.secondLabel)):u||null==k.secondLabel||(k.secondLabel.destroy(),k.secondLabel=null);u=k.secondLabel;if(null!=u){var H=k.view.scale,P=this.createEnumerationValue(k);k=this.graph.model.isVertex(k.cell)?new mxRectangle(k.x+k.width-4*H,k.y+4*H,0,0):mxRectangle.fromPoint(k.view.getPoint(k));u.bounds.equals(k)&&u.value==P&&u.scale==H||(u.bounds=k,u.value=P,u.scale=H,u.redraw())}};var aa=Graph.prototype.refresh;Graph.prototype.refresh=function(){this.refreshBackgroundImage();+aa.apply(this,arguments)};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundImage())};var ja=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){ja.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=function(k,u){"data:action/json,"==k.substring(0,17)&&(k=JSON.parse(k.substring(17)),null!=k.actions&&+this.executeCustomActions(Graph.flattenAnimationActions(k.actions),null,u))};Graph.flattenAnimationActions=function(k){if(!Array.isArray(k))return k;for(var u=[],H=0;H<k.length;H++){var P=k[H];if(null!=P&&null!=P.animation&&Array.isArray(P.animation.steps)){P=Graph.flattenAnimationActions(P.animation.steps);for(var T=0;T<P.length;T++)u.push(P[T])}else u.push(P)}return u};Graph.smoothScrollContainer=function(k,u,H,P,T,W){W=W||600;if(u!==P||H!==T){k.scrollLeft=u;k.scrollTop=H;var ha="undefined"!=typeof performance&&+null!=performance.now?performance.now():Date.now(),X=P-u,ea=T-H,oa=function(la){la=Math.min(1,(la-ha)/W);var ca=1-Math.pow(1-la,3);k.scrollLeft=u+X*ca;k.scrollTop=H+ea*ca;1>la&&window.requestAnimationFrame(oa)};window.requestAnimationFrame(oa)}};Graph.applyTransformTransition=function(k,u){u=u||600;var H=k.view.getDrawPane(),P=null!=H?H.parentNode:null;if(null!=P){var T=P.style.transition;P.style.transition="transform "+u+"ms cubic-bezier(0.16, 1, 0.3, 1)";k.armTransformTransition=!0;var W=function(){P.style.transition=+T||"";k.armTransformTransition=!1;P.removeEventListener("transitionend",W)};P.addEventListener("transitionend",W);window.setTimeout(W,u+100)}};Graph.prototype.fitBoundsCssTransform=function(k,u){var H=null!=u?u:10;u=this.view.graphBounds;var P=Math.max(u.x,k.x),T=Math.max(u.y,k.y),W=Math.max(1,Math.min(u.x+u.width,k.x+k.width)-P),ha=Math.max(1,Math.min(u.y+u.height,k.y+k.height)-T),X=this.container.clientWidth-H,ea=this.container.clientHeight-H;k=Math.floor(20*Math.min(X/W,ea/ha))/20;this.view.scaleAndTranslate(k,+-u.x,-u.y);P=(P-u.x)*k-Math.max((X-W*k)/2+H/2,0);H=(T-u.y)*k-Math.max((ea-ha*k)/2+H/2,0);W=this.getBorder();T=u.width*k+2*W-this.container.clientWidth;u=u.height*k+2*W-this.container.clientHeight;this.container.scrollLeft=0>T?0:Math.max(0,Math.min(P,T));this.container.scrollTop=0>u?0:Math.max(0,Math.min(H,u))};Graph.prototype.isGraphTornDown=function(){return!0===this.destroyed||null==this.container};Graph.prototype.smoothFitWindow=function(k,u,H){if(this.isGraphTornDown())null!=H&&H();else{var P=+this.container,T=P.scrollLeft,W=P.scrollTop;this.useCssTransforms?(Graph.applyTransformTransition(this,600),this.fitBoundsCssTransform(k,u)):this.fitWindow(k,u);Graph.smoothScrollContainer(P,T,W,P.scrollLeft,P.scrollTop,600);null!=H&&window.setTimeout(H,600)}};Graph.prototype.scrollCellToVisibleCssTransform=function(k,u){var H=this.view.getState(k);if(null!=H){var P=this.view.graphBounds,T=this.view.scale;this.view.translate.x===-P.x&&this.view.translate.y===-P.y||this.view.scaleAndTranslate(T,-P.x,+-P.y);k=this.container.clientWidth;var W=this.container.clientHeight,ha=this.getBorder(),X=P.width*T+2*ha-k;ha=P.height*T+2*ha-W;if(null!=u){var ea=(H.x-P.x)*T,oa=(H.y-P.y)*T,la=(H.x+H.width-P.x)*T;P=(H.y+H.height-P.y)*T;var ca=this.container.scrollLeft;H=this.container.scrollTop;ea-u<ca?ca=ea-u:la+u>ca+k&&(ca=la+u-k);oa-u<H?H=oa-u:P+u>H+W&&(H=P+u-W)}else ca=(H.x+H.width/2-P.x)*T-k/2,H=(H.y+H.height/2-P.y)*T-W/2;this.container.scrollLeft=0>X?0:Math.max(0,Math.min(ca,X));this.container.scrollTop=0>+ha?0:Math.max(0,Math.min(H,ha))}};Graph.prototype.scrollCellToVisibleBorder=function(k,u){null==u?this.scrollCellToVisible(k):(k=this.view.getState(k),null!=k&&this.scrollRectToVisible(new mxRectangle(-this.view.translate.x+k.x-u,-this.view.translate.y+k.y-u,k.width+2*u,k.height+2*u)))};Graph.prototype.smoothScrollCellToVisible=function(k,u,H){if(this.isGraphTornDown())null!=H&&H();else{var P=this.container,T=P.scrollLeft,W=P.scrollTop;this.useCssTransforms?this.scrollCellToVisibleCssTransform(k,+u):this.scrollCellToVisibleBorder(k,u);Graph.smoothScrollContainer(P,T,W,P.scrollLeft,P.scrollTop,600);null!=H&&window.setTimeout(H,600)}};Graph.prototype.toggleCellsTransient=function(k){k=this.getNodesForCells(k);for(var u=0;u<k.length;u++){var H=k[u].style.opacity;H=""===H||null===H||0<parseFloat(H);k[u].style.opacity=H?0:1}};Graph.prototype.setCellStylesTransient=function(k,u,H){for(var P=0;P<H.length;P++){var T=this.view.getState(H[P]);null!=T&&null!=T.style&&(null==u?delete T.style[k]:T.style[k]=+u,null!=T.shape&&(T.shape.apply(T),T.shape.redraw()),null!=T.text&&(T.text.apply(T),T.text.redraw()))}};Graph.prototype.toggleCellStylesTransient=function(k,u,H){null==u&&(u="0");for(var P=0;P<H.length;P++){var T=this.view.getState(H[P]);if(null!=T&&null!=T.style){var W=mxUtils.getValue(T.style,k,u)?"0":"1";T.style[k]=W;null!=T.shape&&(T.shape.apply(T),T.shape.redraw());null!=T.text&&(T.text.apply(T),T.text.redraw())}}};Graph.prototype.executeCustomActions=function(k,u,H){if(this.executingCustomActions)this.stoppingCustomActions=+!0,null!=this.pendingWaitThread&&window.clearTimeout(this.pendingWaitThread),null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions"));else{this.executingCustomActions=!0;var P=!1,T=0,W=0,ha=mxUtils.bind(this,function(){P||(P=!0,this.model.beginUpdate())}),X=mxUtils.bind(this,function(){P&&(P=!1,this.model.endUpdate())}),ea=null==H,oa=function(xa){return null!=xa.transient?xa.transient:ea},la=mxUtils.bind(this,function(){0<+T&&T--;0==T&&ta()}),ca=mxUtils.bind(this,function(){if(this.isGraphTornDown())this.stoppingCustomActions=this.executingCustomActions=!1,null!=u&&u();else if(W<k.length){do{var xa=this.stoppingCustomActions,qa=k[W++],Ba=[];if(null!=qa.open)if(X(),this.isCustomLink(qa.open)){if(!this.customLinkClicked(qa.open,H)){this.stoppingCustomActions=this.executingCustomActions=!1;null!=u&&u();return}}else this.openLink(qa.open);null==qa.wait||xa||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=+this.pendingExecuteNextAction=null;la()}),T++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=qa.wait?parseInt(qa.wait):1E3),X());null!=qa.opacity&&null!=qa.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(qa.opacity,!0)),qa.opacity.value);null!=qa.fadeIn&&(T++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(qa.fadeIn,!0)),0,1,la,xa?0:qa.fadeIn.delay));null!=qa.fadeOut&&(T++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(qa.fadeOut,+!0)),1,0,la,xa?0:qa.fadeOut.delay));if(null!=qa.fadeTo&&null!=qa.fadeTo.value){T++;var na=this.getNodesForCells(this.getCellsForAction(qa.fadeTo,!0)),ra=xa?0:null!=qa.fadeTo.delay?qa.fadeTo.delay:1E3;Graph.setTransitionForNodes(na,"all "+ra+"ms ease-in-out");Graph.setOpacityForNodes(na,qa.fadeTo.value);window.setTimeout(function(){Graph.setTransitionForNodes(na,null);la()},ra)}null!=qa.flow&&(ra=this.getCellsForAction(qa.flow,!0),Editor.toggleFlowAnimation(this,ra,!1===qa.flow.start?"stop":!0===qa.flow.start?+"start":"toggle"));null!=qa.wipeIn&&(Ba=Ba.concat(this.createWipeAnimations(this.getCellsForAction(qa.wipeIn,!0),!0)));null!=qa.wipeOut&&(Ba=Ba.concat(this.createWipeAnimations(this.getCellsForAction(qa.wipeOut,!0),!1)));null!=qa.popIn&&(Ba=Ba.concat(this.createPopAnimations(this.getCellsForAction(qa.popIn,!0),!0)));null!=qa.popOut&&(Ba=Ba.concat(this.createPopAnimations(this.getCellsForAction(qa.popOut,!0),!1)));null!=qa.toggle&&(oa(qa.toggle)?this.toggleCellsTransient(this.getCellsForAction(qa.toggle,+!0)):(ha(),this.toggleCells(this.getCellsForAction(qa.toggle,!0,!0))));null!=qa.show&&(ra=this.getCellsForAction(qa.show,!0),Graph.setOpacityForNodes(this.getNodesForCells(ra),1),oa(qa.show)||(ha(),this.setCellsVisible(this.getCellsForAction(qa.show,!0,!0),!0)));null!=qa.hide&&(ra=this.getCellsForAction(qa.hide,!0),Graph.setOpacityForNodes(this.getNodesForCells(ra),0),oa(qa.hide)||(ha(),this.setCellsVisible(this.getCellsForAction(qa.hide,!0,!0),!1)));if(null!=qa.toggleStyle&&null!=qa.toggleStyle.key){ra=+this.getCellsForAction(qa.toggleStyle,!0);var va=null!=qa.toggleStyle.defaultValue?qa.toggleStyle.defaultValue:"0";oa(qa.toggleStyle)?this.toggleCellStylesTransient(qa.toggleStyle.key,va,ra):(ha(),this.toggleCellStyles(qa.toggleStyle.key,va,ra))}null!=qa.style&&null!=qa.style.key&&(ra=this.getCellsForAction(qa.style,!0),oa(qa.style)?this.setCellStylesTransient(qa.style.key,qa.style.value,ra):(ha(),this.setCellStyles(qa.style.key,qa.style.value,ra)));ra=[];null!=qa.select&&this.isEnabled()&&(ra=this.getCellsForAction(qa.select),+this.setSelectionCells(ra));null!=qa.highlight&&(ra=this.getCellsForAction(qa.highlight),this.highlightCells(ra,qa.highlight.color,qa.highlight.duration,qa.highlight.opacity));null!=qa.scroll&&(ra=this.getCellsForAction(qa.scroll));if(null!=qa.viewbox){va=qa.viewbox;if(null!=va.cells||null!=va.tags||null!=va.layers){var Ha=this.getBoundingBox(this.getCellsForAction(va));if(null!=Ha){var La=this.useCssTransforms?1:this.view.scale,Ga=this.useCssTransforms?new mxPoint(0,0):this.view.translate,Da=null==+va.border||""===va.border||isNaN(parseFloat(va.border))?null:2*parseFloat(va.border);va={x:Ha.x/La-Ga.x,y:Ha.y/La-Ga.y,width:Math.max(1,Ha.width/La),height:Math.max(1,Ha.height/La),border:Da,smooth:va.smooth}}else va=null}null!=va&&(!0!==va.smooth||xa?this.useCssTransforms?this.fitBoundsCssTransform(va,va.border):this.fitWindow(va,va.border):(T++,this.smoothFitWindow(va,va.border,la)))}0<ra.length&&(va=null==qa.scroll||null==qa.scroll.border||""===qa.scroll.border||isNaN(parseFloat(qa.scroll.border))?+null:parseFloat(qa.scroll.border),null==qa.scroll||!0!==qa.scroll.smooth||xa?this.useCssTransforms?this.scrollCellToVisibleCssTransform(ra[0],va):this.scrollCellToVisibleBorder(ra[0],va):(T++,this.smoothScrollCellToVisible(ra[0],va,la)));null!=H&&null!=qa.explore&&Graph.exploreFromCell(this,H,qa.explore);if(null!=qa.tags){if(null!=qa.tags.toggle)for(va=qa.tags.toggle,0==va.length&&(va=this.getAllTags()),ra=0;ra<va.length;ra++)this.toggleHiddenTag(va[ra]);va=null;null!=qa.tags.hidden&&(null==va&&(va=+[]),va=va.concat(qa.tags.hidden));if(null!=qa.tags.visible)for(null==va&&(va=[]),Ha=this.getAllTags(),ra=0;ra<Ha.length;ra++)0>mxUtils.indexOf(qa.tags.visible,Ha[ra])&&0>mxUtils.indexOf(va,Ha[ra])&&va.push(Ha[ra]);null!=va&&this.setHiddenTags(va);this.refresh()}if(0<Ba.length){T++;ra=null!=qa.steps?qa.steps:30;va=qa.delay;Ha=["wipeIn","wipeOut","popIn","popOut"];La=null;for(Ga=0;Ga<Ha.length;Ga++)Da=qa[Ha[Ga]],null!=Da&&null!=Da.delay&&(La=null==La?Da.delay:Math.max(La,Da.delay));null!=La&&(va=La/+ra);this.executeAnimations(Ba,la,xa?1:ra,xa?0:va)}}while(W<k.length&&!0===k[W].immediate&&!this.stoppingCustomActions);0==T?ta():X()}else this.stoppingCustomActions=this.executingCustomActions=!1,X(),null!=u&&u()}),ta=mxUtils.bind(this,function(){try{ca()}catch(xa){throw this.stoppingCustomActions=this.executingCustomActions=!1,X(),xa;}});ta()}};Graph.prototype.doUpdateCustomLinksForCell=function(k,u){var H=this.getLinkForCell(u);null!=H&&"data:action/json,"==H.substring(0,17)&&this.setLinkForCell(u,+this.updateCustomLink(k,H));if(this.isHtmlLabel(u)){var P=document.createElement("div");P.innerHTML=Graph.sanitizeHtml(this.getLabel(u));for(var T=P.getElementsByTagName("a"),W=!1,ha=0;ha<T.length;ha++)H=T[ha].getAttribute("href"),null!=H&&"data:action/json,"==H.substring(0,17)&&(T[ha].setAttribute("href",this.updateCustomLink(k,H)),W=!0);W&&this.labelChanged(u,P.innerHTML)}};Graph.prototype.updateCustomLink=function(k,u){if("data:action/json,"==u.substring(0,17))try{var H=JSON.parse(u.substring(17));+null!=H.actions&&(this.updateCustomLinkActions(k,H.actions),u="data:action/json,"+JSON.stringify(H))}catch(P){}return u};Graph.prototype.updateCustomLinkActions=function(k,u){for(var H=0;H<u.length;H++){var P=u[H],T;for(T in P)this.updateCustomLinkAction(k,P[T],"cells"),this.updateCustomLinkAction(k,P[T],"excludeCells"),this.updateCustomLinkAction(k,P[T],"layers")}};Graph.prototype.updateCustomLinkAction=function(k,u,H){if(null!=u&&null!=u[H]){for(var P=[],T=0;T<u[H].length;T++)if("*"==u[H][T])P.push(u[H][T]);+else{var W=k[u[H][T]];null!=W?""!=W&&P.push(W):P.push(u[H][T])}u[H]=P}};Graph.prototype.getCellsForAction=function(k,u,H){var P="or"===k.tagsMatch?"or":"and",T={},W=[],ha=function(X){for(var ea=0;ea<X.length;ea++){var oa=X[ea].id;T[oa]||(T[oa]=!0,W.push(X[ea]))}};ha(this.getCellsById(k.cells));ha(this.getCellsForTags(k.tags,null,u,!1,P));ha(H?this.getLayerCells(k.layers):this.getCellsForLayers(k.layers));if(null!=k.excludeCells&&0<k.excludeCells.length){u={};P=!1;for(H=0;H<k.excludeCells.length;H++){if("*"===+k.excludeCells[H]){P=!0;break}u[k.excludeCells[H]]=!0}if(P)return[];k=[];for(H=0;H<W.length;H++)u[W[H].id]||k.push(W[H]);return k}return W};Graph.prototype.getCellsById=function(k){var u=[];if(null!=k)for(var H=0;H<k.length;H++)if("*"==k[H]){var P=this.model.getRoot();u=u.concat(this.model.filterDescendants(function(W){return W!=P},P))}else{var T=this.model.getCell(k[H]);null!=T&&u.push(T)}return u};Graph.prototype.getCellsForLayers=function(k){var u=[];if(Array.isArray(k))for(var H=0;H<k.length;H++){var P=+this.model.getCell(k[H]);null!=P&&(u=u.concat(this.model.filterDescendants(function(T){return T!=P},P)))}return u};Graph.prototype.getLayerCells=function(k){var u=[];if(Array.isArray(k))for(var H=0;H<k.length;H++){var P=this.model.getCell(k[H]);null!=P&&u.push(P)}return u};var ka=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(k){return ka.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(k))};Graph.prototype.setHiddenTags=function(k){this.hiddenTags=k;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};+Graph.prototype.toggleHiddenTag=function(k){var u=mxUtils.indexOf(this.hiddenTags,k);0>u?this.hiddenTags.push(k):0<=u&&this.hiddenTags.splice(u,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(k){if(null==k||0==k.length||0==this.hiddenTags.length)return!1;k=k.split(" ");if(k.length>this.hiddenTags.length)return!1;for(var u=0;u<k.length;u++)if(0>mxUtils.indexOf(this.hiddenTags,k[u]))return!1;return!0};Graph.prototype.getCellsForTags=function(k,u,H,+P,T){var W=[];T="or"===T;if(null!=k){u=null!=u?u:this.model.getDescendants(this.model.getRoot());for(var ha=0,X={},ea=0;ea<k.length;ea++)0<k[ea].length&&(X[k[ea]]=!0,ha++);for(ea=0;ea<u.length;ea++)if(H&&this.model.getParent(u[ea])==this.model.root||this.model.isVertex(u[ea])||this.model.isEdge(u[ea])){var oa=this.getTagsForCell(u[ea]),la=!1;if(0<oa.length&&(oa=oa.split(" "),T||oa.length>=k.length)){for(var ca=la=0;ca<oa.length&&la<ha;ca++)null!=X[oa[ca]]&&la++;la=T?0<la:la==ha}la&&(1!=P||this.isCellVisible(u[ea]))&&+W.push(u[ea])}}return W};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(k){for(var u=null,H=[],P=0;P<k.length;P++){var T=this.getTagsForCell(k[P]);H=[];if(0<T.length){T=T.split(" ");for(var W={},ha=0;ha<T.length;ha++)if(null==u||null!=u[T[ha]])W[T[ha]]=!0,H.push(T[ha]);u=W}else return[]}return H};Graph.prototype.getTagsForCells=function(k){for(var u=[],H={},P=0;P<k.length;P++){var T=+this.getTagsForCell(k[P]);if(0<T.length){T=T.split(" ");for(var W=0;W<T.length;W++)null==H[T[W]]&&(H[T[W]]=!0,u.push(T[W]))}}return u};Graph.prototype.getTagsForCell=function(k){return this.getAttributeForCell(k,"tags","")};Graph.prototype.addTagsForCells=function(k,u){if(0<k.length&&0<u.length){this.model.beginUpdate();try{for(var H=0;H<k.length;H++){for(var P=this.getTagsForCell(k[H]),T=P.split(" "),W=!1,ha=0;ha<u.length;ha++){var X=mxUtils.trim(u[ha]);""!=X&&0>mxUtils.indexOf(T,X)&&(P=0<P.length?+P+" "+X:X,W=!0)}W&&this.setAttributeForCell(k[H],"tags",P)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(k,u){if(0<k.length&&0<u.length){this.model.beginUpdate();try{for(var H=0;H<k.length;H++){var P=this.getTagsForCell(k[H]);if(0<P.length){for(var T=P.split(" "),W=!1,ha=0;ha<u.length;ha++){var X=mxUtils.indexOf(T,u[ha]);0<=X&&(T.splice(X,1),W=!0)}W&&this.setAttributeForCell(k[H],"tags",T.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(k){this.model.beginUpdate();+try{for(var u=0;u<k.length;u++)this.model.setVisible(k[u],!this.model.isVisible(k[u]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(k,u){this.model.beginUpdate();try{for(var H=0;H<k.length;H++)this.model.setVisible(k[H],u)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=function(k,u,H,P){for(var T=0;T<k.length;T++)this.highlightCell(k[T],u,H,P)};Graph.prototype.highlightCell=function(k,u,H,P,T){u=null!=u?u:mxConstants.DEFAULT_VALID_COLOR;H=null!=H?H:1E3;+k=this.view.getState(k);var W=null;null!=k&&(T=null!=T?T:4,T=Math.max(T+1,mxUtils.getValue(k.style,mxConstants.STYLE_STROKEWIDTH,1)+T),W=new mxCellHighlight(this,u,T,!1),null!=P&&(W.opacity=P),W.highlight(k),window.setTimeout(function(){null!=W.shape&&(mxUtils.setPrefixedStyle(W.shape.node.style,"transition","all 1200ms ease-in-out"),W.shape.node.style.opacity=0);window.setTimeout(function(){W.destroy()},1200)},H));return W};Graph.prototype.addSvgShadow=function(k,u,H,P){P=null!=P?P:!0;var T=Math.ceil(this.svgShadowSize*+this.svgShadowBlur);null!=H&&H||(u=null!=u?u:k.getElementsByTagName("g")[0],null!=u&&(this.updateShadowFilter(u,!0),!isNaN(parseInt(k.getAttribute("width")))&&P&&(k.setAttribute("width",parseInt(k.getAttribute("width"))+T),k.setAttribute("height",parseInt(k.getAttribute("height"))+T),u=k.getAttribute("viewBox"),null!=u&&0<u.length&&(u=u.split(" "),3<u.length&&(w=parseFloat(u[2])+T,h=parseFloat(u[3])+T,k.setAttribute("viewBox",u[0]+" "+u[1]+" "+w+" "+h))))));return T};Graph.prototype.updateShadowFilter=+function(k,u){mxClient.IS_SF||(u?(u=mxUtils.getLightDarkColor(this.svgShadowColor,this.svgShadowOpacity),k.style.filter="drop-shadow("+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowBlur)/100+"px "+u.cssText+")"):k.style.filter="")};Graph.prototype.setShadowVisible=function(k,u){u=null!=u?u:!0;this.shadowVisible=k;this.updateShadowFilter(this.view.getDrawPane(),this.shadowVisible);u&&this.fireEvent(new mxEventObject("shadowVisibleChanged"));+return Math.ceil(this.svgShadowSize*this.svgShadowBlur)};Graph.prototype.checkDefaultParent=function(){null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer())};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var k=this.model.getChildCount(this.model.root),u=0;do var H=this.model.getChildAt(this.model.root,u);while(u++<k&&"1"==mxUtils.getValue(this.getCellStyle(H),"locked","0"));null!=H&&this.setDefaultParent(H)}};+mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.bpmn2=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.c4=+[SHAPES_PATH+"/mxC4.js"];mxStencilRegistry.libraries.cisco19=[SHAPES_PATH+"/mxCisco19.js",STENCIL_PATH+"/cisco19.xml"];mxStencilRegistry.libraries.cisco_safe=[SHAPES_PATH+"/mxCiscoSafe.js",STENCIL_PATH+"/cisco_safe/architecture.xml",STENCIL_PATH+"/cisco_safe/business_icons.xml",STENCIL_PATH+"/cisco_safe/capability.xml",STENCIL_PATH+"/cisco_safe/design.xml",STENCIL_PATH+"/cisco_safe/iot_things_icons.xml",STENCIL_PATH+"/cisco_safe/people_places_things_icons.xml",STENCIL_PATH+"/cisco_safe/security_icons.xml",+STENCIL_PATH+"/cisco_safe/technology_icons.xml",STENCIL_PATH+"/cisco_safe/threat.xml"];mxStencilRegistry.libraries.dfd=[SHAPES_PATH+"/mxDFD.js"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.kubernetes=[SHAPES_PATH+"/mxKubernetes.js",STENCIL_PATH+"/kubernetes.xml",STENCIL_PATH+"/kubernetes2.xml"];mxStencilRegistry.libraries.flowchart=[SHAPES_PATH+"/mxFlowchart.js",STENCIL_PATH+"/flowchart.xml"];mxStencilRegistry.libraries.ios=[SHAPES_PATH+"/mockup/mxMockupiOS.js"];+mxStencilRegistry.libraries.rackGeneral=[SHAPES_PATH+"/rack/mxRack.js",STENCIL_PATH+"/rack/general.xml"];mxStencilRegistry.libraries.rackF5=[STENCIL_PATH+"/rack/f5.xml"];mxStencilRegistry.libraries.lean_mapping=[SHAPES_PATH+"/mxLeanMap.js",STENCIL_PATH+"/lean_mapping.xml"];mxStencilRegistry.libraries.basic=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/basic.xml"];mxStencilRegistry.libraries.ios7icons=[STENCIL_PATH+"/ios7/icons.xml"];mxStencilRegistry.libraries.ios7ui=[SHAPES_PATH+"/ios7/mxIOS7Ui.js",+STENCIL_PATH+"/ios7/misc.xml"];mxStencilRegistry.libraries.android=[SHAPES_PATH+"/mxAndroid.js",STENCIL_PATH+"/android/android.xml"];mxStencilRegistry.libraries["electrical/abstract"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/abstract.xml"];mxStencilRegistry.libraries["electrical/logic_gates"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/logic_gates.xml"];mxStencilRegistry.libraries["electrical/miscellaneous"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/miscellaneous.xml"];+mxStencilRegistry.libraries["electrical/signal_sources"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/signal_sources.xml"];mxStencilRegistry.libraries["electrical/electro-mechanical"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/electro-mechanical.xml"];mxStencilRegistry.libraries["electrical/transmission"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/transmission.xml"];mxStencilRegistry.libraries.infographic=[SHAPES_PATH+"/mxInfographic.js"];mxStencilRegistry.libraries["mockup/buttons"]=+[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",+STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=+[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+"/gmdl.xml"];mxStencilRegistry.libraries.gcp2=[SHAPES_PATH+"/mxGCP2.js",STENCIL_PATH+"/gcp2.xml"];mxStencilRegistry.libraries.ibm=[SHAPES_PATH+"/mxIBM.js",STENCIL_PATH+"/ibm.xml"];mxStencilRegistry.libraries.ibmcloud=[STENCIL_PATH+"/ibm_cloud.xml"];mxStencilRegistry.libraries.cabinets=[SHAPES_PATH+"/mxCabinets.js",STENCIL_PATH+"/cabinets.xml"];mxStencilRegistry.libraries.archimate=[SHAPES_PATH+"/mxArchiMate.js"];mxStencilRegistry.libraries.archimate4=[SHAPES_PATH++"/mxArchiMate3.js",SHAPES_PATH+"/mxArchiMate4.js"];mxStencilRegistry.libraries.archimate3=[SHAPES_PATH+"/mxArchiMate3.js"];mxStencilRegistry.libraries.sysml=[SHAPES_PATH+"/mxSysML.js"];mxStencilRegistry.libraries.eip=[SHAPES_PATH+"/mxEip.js",STENCIL_PATH+"/eip.xml"];mxStencilRegistry.libraries.networks=[SHAPES_PATH+"/mxNetworks.js",STENCIL_PATH+"/networks.xml"];mxStencilRegistry.libraries.networks2=[SHAPES_PATH+"/mxNetworks2.js",STENCIL_PATH+"/networks2.xml"];mxStencilRegistry.libraries.atlassian2=+[SHAPES_PATH+"/mxAtlassian2.js",STENCIL_PATH+"/atlassian2.xml"];mxStencilRegistry.libraries.aws3d=[SHAPES_PATH+"/mxAWS3D.js",STENCIL_PATH+"/aws3d.xml"];mxStencilRegistry.libraries.aws4=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.aws4b=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.uml25=[SHAPES_PATH+"/mxUML25.js"];mxStencilRegistry.libraries.veeam=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam.xml"];+mxStencilRegistry.libraries.veeam2=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam2.xml"];mxStencilRegistry.libraries.pid2inst=[SHAPES_PATH+"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxStencilRegistry.libraries.salesforce=+[STENCIL_PATH+"/salesforce.xml"];mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=function(k){var u=null;null!=k&&0<k.length&&("ER"==k.substring(0,2)?u="mxgraph.er":"sysML"==k.substring(0,5)&&(u="mxgraph.sysml"));return u};var ua=mxMarker.createMarker;mxMarker.createMarker=function(k,u,H,P,T,W,ha,X,ea,oa){if(null!=H&&null==mxMarker.markers[H]){var la=this.getPackageForType(H);+null!=la&&mxStencilRegistry.getStencil(la)}return ua.apply(this,arguments)};var Ca=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(k,u,H,P,T,W){"1"==mxUtils.getValue(u.style,"lineShape",null)&&k.setFillColor(mxUtils.getValue(u.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return Ca.apply(this,arguments)};PrintDialog.prototype.create=function(k,u,H,P){function T(){ra.value=Math.max(1,Math.min(ta,Math.max(parseInt(ra.value),parseInt(na.value))));na.value=Math.max(1,Math.min(ta,+Math.min(parseInt(ra.value),parseInt(na.value))))}function W(rb){k.lastPrintPagesRadioChecked=Ba.checked;k.lastPrintSelectionOnlyChecked=va.checked;k.lastPrintCropRadioChecked=La.checked;k.lastPrintFitRadioChecked=Ga.checked;Ba.checked&&na.value<ra.value?(k.lastPrintPagesFromInput=na.value,k.lastPrintPagesToInput=ra.value):(k.lastPrintPagesFromInput=null,k.lastPrintPagesToInput=null);db.value=Math.max(1,Math.min(1600,parseInt(db.value)))+"%";k.lastPrintZoom=db.value;k.lastPrintBorder=Va.value;k.lastPrintGrid=+Ea.checked;k.lastPrintShadow=$a.checked;k.lastPrintTransparent=cb.checked;k.lastPrintInclude=Za.checked;k.lastPrintIcons=eb.checked;k.lastPrintSheetsAcross=Sa.value;k.lastPrintSheetsDown=ab.value;var xb={};xb.border=parseInt(Va.value);xb.scale=parseInt(db.value)/100;xb.grid=Ea.checked;xb.shadows=$a.checked;xb.transparent=cb.checked;xb.includeCopy=Za.checked;xb.icons=eb.checked&&EditorUi.isElectronApp;xb.sheetsAcross=parseInt(Sa.value);xb.sheetsDown=parseInt(ab.value);xb.pagesFrom=parseInt(na.value);+xb.pagesTo=parseInt(ra.value);xb.allPages=xa.checked;xb.selection=va.checked;xb.pageView=Ha.checked;xb.crop=La.checked;xb.fit=Ga.checked;return null!=H?H(!rb,xb):k.print(!rb,xb)}function ha(rb){try{k.hideDialog(),null!=H?W(rb):k.spinner.spin(document.body,mxResources.get("updatingPreview"))&&window.setTimeout(function(){try{W(rb),k.spinner.stop()}catch(xb){k.handleError(xb)}},0)}catch(xb){k.handleError(xb)}}var X=k.editor.graph,ea=document.createElement("div");ea.style.display="flex";ea.style.flexDirection=+"column";ea.style.minHeight="0";var oa=document.createElement("div");oa.style.flex="1 1 auto";oa.style.minHeight="0";oa.style.overflowY="auto";ea.appendChild(oa);var la=document.createElement("h3");mxUtils.write(la,u||mxResources.get("print"));oa.appendChild(la);var ca=1,ta=1;la=document.createElement("div");la.className="geDialogSection";la.style.whiteSpace="nowrap";var xa=document.createElement("input");xa.style.marginRight="8px";xa.setAttribute("type","radio");xa.setAttribute("name","pages-printdialog");+xa.setAttribute("id","gePrintDlgAllPages");var qa=document.createElement("div");qa.className="geDialogCheckRow";qa.appendChild(xa);u=document.createElement("label");u.setAttribute("for","gePrintDlgAllPages");mxUtils.write(u,mxResources.get("allPages"));qa.appendChild(u);la.appendChild(qa);var Ba=document.createElement("input");Ba.style.marginRight="8px";Ba.setAttribute("type","radio");Ba.setAttribute("name","pages-printdialog");Ba.setAttribute("id","gePrintDlgPages");qa=document.createElement("div");+qa.className="geDialogCheckRow";qa.appendChild(Ba);u=document.createElement("label");u.setAttribute("for","gePrintDlgPages");mxUtils.write(u,mxResources.get("pages")+":");qa.appendChild(u);var na=document.createElement("input");na.style.margin="0 4px";na.setAttribute("value","1");na.setAttribute("type","number");na.setAttribute("min","1");na.style.width="40px";qa.appendChild(na);u=document.createElement("span");mxUtils.write(u,mxResources.get("to"));qa.appendChild(u);var ra=na.cloneNode(!0);qa.appendChild(ra);+mxEvent.addListener(na,"focus",function(){Ba.checked=!0});mxEvent.addListener(ra,"focus",function(){Ba.checked=!0});mxEvent.addListener(na,"change",T);mxEvent.addListener(ra,"change",T);if(null!=k.pages&&(ta=k.pages.length,null!=k.currentPage))for(u=0;u<ta;u++)if(k.currentPage==k.pages[u]){ca=u+1;break}null!=k.lastPrintPagesFromInput&&null!=k.lastPrintPagesToInput?(na.value=Math.min(ta,Math.max(1,k.lastPrintPagesFromInput)),ra.value=Math.min(ta,Math.max(1,k.lastPrintPagesToInput))):(na.value=ca,ra.value=+ca);na.setAttribute("max",ta);ra.setAttribute("max",ta);u=mxUtils.button(mxResources.get("currentPage"),function(rb){na.value=ca;ra.value=ca;Ba.checked=!0});u.className="geBtn";u.setAttribute("title",mxResources.get("currentPage"));u.style.marginLeft="4px";u.style.maxWidth="100px";qa.appendChild(u);la.appendChild(qa);1<ta&&oa.appendChild(la);qa=document.createElement("div");qa.className="geDialogCheckRow";var va=document.createElement("input");va.setAttribute("name","pages-printdialog");va.setAttribute("type",+1==ta?"checkbox":"radio");va.setAttribute("id","gePrintDlgSelectionOnly");va.style.marginRight="8px";X.isSelectionEmpty()&&va.setAttribute("disabled","disabled");X.isEnabled()&&(qa.appendChild(va),u=document.createElement("label"),u.setAttribute("for","gePrintDlgSelectionOnly"),mxUtils.write(u,mxResources.get("selectionOnly")),qa.appendChild(u));X.isEnabled()&&(1<ta?la.appendChild(qa):(u=document.createElement("div"),u.className="geDialogSection",u.appendChild(qa),oa.appendChild(u)));!k.isPagesEnabled()||+k.lastPrintPagesRadioChecked?Ba.checked=!0:!X.isSelectionEmpty()&&k.lastPrintSelectionOnlyChecked?va.checked=!0:xa.checked=!0;X=k.addAdvancedSection(oa);oa=X.content;la=document.createElement("div");la.className="geDialogCheckRow";var Ha=document.createElement("input");Ha.style.marginRight="8px";Ha.setAttribute("type","radio");Ha.setAttribute("name","printSize");Ha.setAttribute("id","gePrintDlgPageView");la.appendChild(Ha);u=document.createElement("label");u.setAttribute("for","gePrintDlgPageView");+mxUtils.write(u,mxResources.get("pageView"));la.appendChild(u);mxEvent.addListener(la,"click",function(){Ha.checked=!0});oa.appendChild(la);la=document.createElement("div");la.className="geDialogCheckRow";var La=document.createElement("input");La.style.marginRight="8px";La.setAttribute("type","radio");La.setAttribute("name","printSize");La.setAttribute("id","gePrintDlgCrop");la.appendChild(La);u=document.createElement("label");u.setAttribute("for","gePrintDlgCrop");mxUtils.write(u,mxResources.get("crop"));+la.appendChild(u);mxEvent.addListener(la,"click",function(){La.checked=!0});oa.appendChild(la);la=document.createElement("div");la.className="geDialogCheckRow";la.style.alignItems="flex-start";var Ga=document.createElement("input");Ga.style.marginTop="4px";Ga.setAttribute("type","radio");Ga.setAttribute("name","printSize");la.appendChild(Ga);qa=document.createElement("table");qa.style.display="inline-block";qa.style.borderSpacing="0";var Da=document.createElement("tbody"),Qa=document.createElement("tr"),+Ka=Qa.cloneNode(!0),Na=document.createElement("td"),Oa=Na.cloneNode(!0),Fa=Na.cloneNode(!0),Aa=Na.cloneNode(!0),Ja=Na.cloneNode(!0),Ia=Na.cloneNode(!0);Na.style.textAlign="right";Aa.style.textAlign="right";mxUtils.write(Na,mxResources.get("fitTo"));mxEvent.addListener(la,"click",function(rb){mxEvent.getSource(rb)!=Ga&&(Ga.checked=!Ga.checked)});var Sa=document.createElement("input");Sa.style.margin="0 2px";Sa.style.boxSizing="border-box";Sa.setAttribute("value",k.lastPrintSheetsAcross||"1");Sa.setAttribute("min",+"1");Sa.setAttribute("type","number");Sa.style.width="40px";Oa.appendChild(Sa);u=document.createElement("span");mxUtils.write(u,mxResources.get("fitToSheetsAcross"));Fa.appendChild(u);mxUtils.write(Aa,mxResources.get("fitToBy"));var ab=Sa.cloneNode(!0);ab.setAttribute("value",k.lastPrintSheetsDown||"1");Ja.appendChild(ab);mxEvent.addListener(Sa,"click",function(rb){Ga.checked=!0;mxEvent.consume(rb)});mxEvent.addListener(ab,"click",function(rb){Ga.checked=!0;mxEvent.consume(rb)});k.lastPrintCropRadioChecked?+La.checked=!0:k.lastPrintFitRadioChecked?Ga.checked=!0:Ha.checked=!0;u=document.createElement("span");mxUtils.write(u,mxResources.get("fitToSheetsDown"));Ia.appendChild(u);Qa.appendChild(Na);Qa.appendChild(Oa);Qa.appendChild(Fa);Ka.appendChild(Aa);Ka.appendChild(Ja);Ka.appendChild(Ia);Da.appendChild(Qa);Da.appendChild(Ka);qa.appendChild(Da);la.appendChild(qa);oa.appendChild(la);oa=document.createElement("div");oa.className="geDialogSection";u=document.createElement("div");u.className="geDialogFormRow";+la=document.createElement("label");la.className="geDialogFormLabel";la.setAttribute("for","gePrintDlgBorder");mxUtils.write(la,mxResources.get("borderWidth"));u.appendChild(la);var Va=document.createElement("input");Va.setAttribute("type","number");Va.setAttribute("min","0");Va.setAttribute("id","gePrintDlgBorder");Va.style.width="40px";Va.value=null!=k.lastPrintBorder?k.lastPrintBorder:mxPrintPreview.prototype.pageMargin;u.appendChild(Va);la=document.createElement("label");la.setAttribute("for",+"gePrintDlgZoom");la.style.marginLeft="12px";la.style.marginRight="4px";mxUtils.write(la,mxResources.get("zoom"));u.appendChild(la);var db=document.createElement("input");db.setAttribute("id","gePrintDlgZoom");db.style.width="60px";db.value=null!=k.lastPrintZoom?k.lastPrintZoom:"100%";u.appendChild(db);oa.appendChild(u);la=document.createElement("div");la.className="geDialogCheckRow";var Ea=document.createElement("input");Ea.setAttribute("type","checkbox");Ea.setAttribute("id","gePrintDlgGrid");Ea.style.marginRight=+"8px";Ea.checked=null!=k.lastPrintGrid?k.lastPrintGrid:!1;la.appendChild(Ea);u=document.createElement("label");u.setAttribute("for","gePrintDlgGrid");mxUtils.write(u,mxResources.get("grid"));la.appendChild(u);oa.appendChild(la);la=document.createElement("div");la.className="geDialogCheckRow";var $a=document.createElement("input");$a.setAttribute("type","checkbox");$a.setAttribute("id","gePrintDlgShadows");$a.style.marginRight="8px";$a.checked=null!=k.lastPrintShadow?k.lastPrintShadow:!1;la.appendChild($a);+u=document.createElement("label");u.setAttribute("for","gePrintDlgShadows");mxUtils.write(u,mxResources.get("shadows"));la.appendChild(u);k.isOffline()&&!mxClient.IS_CHROMEAPP||la.appendChild(k.createHelpIcon("https://www.drawio.com/docs/manual/export/print-diagram/#shadows-in-print-and-pdf-export"));Editor.enableShadowOption||(la.style.display="none");oa.appendChild(la);var cb=document.createElement("input");cb.setAttribute("type","checkbox");cb.setAttribute("id","gePrintDlgTransparent");cb.style.marginRight=+"8px";cb.checked=null!=k.lastPrintTransparent?k.lastPrintTransparent:!1;null!=H&&(la=document.createElement("div"),la.className="geDialogCheckRow",la.appendChild(cb),u=document.createElement("label"),u.setAttribute("for","gePrintDlgTransparent"),mxUtils.write(u,mxResources.get("transparentBackground")),la.appendChild(u),oa.appendChild(la));var Za=document.createElement("input");Za.setAttribute("type","checkbox");Za.setAttribute("id","gePrintDlgInclude");Za.style.marginRight="8px";Za.checked=null!=+k.lastPrintInclude?k.lastPrintInclude:Editor.defaultIncludeDiagram;null==H||mxClient.IS_CHROMEAPP||"draw.io"!=k.getServiceName()||(la=document.createElement("div"),la.className="geDialogCheckRow",la.appendChild(Za),u=document.createElement("label"),u.setAttribute("for","gePrintDlgInclude"),mxUtils.write(u,mxResources.get("includeCopyOfMyDiagram")),la.appendChild(u),oa.appendChild(la));var eb=document.createElement("input");eb.setAttribute("type","checkbox");eb.setAttribute("id","gePrintDlgIcons");+eb.style.marginRight="8px";eb.checked=null!=k.lastPrintIcons?k.lastPrintIcons:!1;null!=H&&EditorUi.isElectronApp&&(la=document.createElement("div"),la.className="geDialogCheckRow",la.appendChild(eb),u=document.createElement("label"),u.setAttribute("for","gePrintDlgIcons"),mxUtils.write(u,mxResources.get("notes")),la.appendChild(u),oa.appendChild(la));X.wrapper.appendChild(oa);u=document.createElement("div");u.style.flex="0 0 auto";u.style.marginTop="16px";u.style.textAlign="right";u.style.whiteSpace=+"nowrap";k.isOffline()&&!mxClient.IS_CHROMEAPP||null!=H||u.appendChild(k.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));X=mxUtils.button(mxResources.get("cancel"),function(){k.hideDialog()});X.className="geBtn";k.editor.cancelFirst&&u.appendChild(X);PrintDialog.previewEnabled&&null==H&&(oa=mxUtils.button(mxResources.get("preview"),function(){ha(!1)}),oa.className="geBtn",u.appendChild(oa));P=null!=P?P:null!=H?"export":PrintDialog.previewEnabled?"print":"ok";P=mxUtils.button(mxResources.get(P),+function(){ha(!0)});P.className="geBtn gePrimaryBtn";u.appendChild(P);k.editor.cancelFirst||u.appendChild(X);ea.appendChild(u);if(k.editor.isChromelessView()){var lb=function(){Editor.isDarkMode()?(ea.classList.add("geDarkMode"),ea.style.colorScheme="dark"):(ea.classList.remove("geDarkMode"),ea.style.colorScheme="light")};k.addListener("darkModeChanged",lb);lb();var wb=function(rb,xb){rb=xb.getProperty("dialog");ea.parentNode==rb.container&&(k.editor.removeListener(wb),k.removeListener(lb))};k.editor.addListener("hideDialog",+wb)}this.container=ea};var ia=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=function(){null==this.page&&(this.page=this.ui.currentPage);if(this.page!=this.ui.currentPage){if(null!=this.page.viewState){this.ignoreColor||(this.page.viewState.background=this.color);if(!this.ignoreImage){var k=this.image;null!=k&&null!=k.src&&Graph.isPageLink(k.src)&&(k={originalSrc:k.src});this.page.viewState.backgroundImage=k}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=+this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.adaptiveColors&&(this.page.viewState.adaptiveColors=this.adaptiveColors);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else ia.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.adaptiveColors&&this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(k=this.ui.editor.graph.adaptiveColors,+this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=k?k:"default"),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.parseAnimationScript=function(k){var u=[];if(null==k)return u;var H=function(ea){if(null!=ea)return ea=parseFloat(ea),!isNaN(ea)&&0<=ea?ea:void 0},P={fade:!0,pop:!0,wipe:!0};k=k.split("\n");for(var T=0;T<k.length;T++){var W=+mxUtils.trim(k[T]);if(""!=W&&"#"!=W.charAt(0)){W=W.split(/\s+/);var ha={action:W[0],cell:W[1],arg:W[2]};if("wait"==ha.action){if(ha.delay=parseFloat(ha.cell),isNaN(ha.delay)||0>ha.delay)ha.delay=1E3}else if("setOpacity"==ha.action)ha.opacity=parseFloat(W[2]),isNaN(ha.opacity)&&(ha.opacity=1),ha.opacity=Math.max(0,Math.min(1,ha.opacity)),ha.duration=H(W[3]),ha.arg=void 0;else if("show"==ha.action){if(null!=ha.arg&&!P[ha.arg]){var X=H(ha.arg);null!=X&&(ha.duration=X,ha.arg=void 0)}null==ha.duration&&+(ha.duration=H(W[3]))}else"hide"==ha.action&&(ha.duration=H(W[2]),ha.arg=void 0);u.push(ha)}}return u};Editor.animationFadeDelay=400;Editor.canBatchAnimationSteps=function(k,u){return k.action!=u.action||"wait"==k.action||(k.arg||"")!=(u.arg||"")||(null!=k.opacity?k.opacity:"")!=(null!=u.opacity?u.opacity:"")||(null!=k.duration?k.duration:"")!=(null!=u.duration?u.duration:"")?!1:!0};Editor.convertLegacyAnimationStep=function(k){if("wait"==k.action)return{wait:k.delay};var u="all"==k.cell?"*":k.cell;+if(null==u)return null;var H={cells:[u]};if(null!=k.duration)H.delay=k.duration;else if("show"==k.action&&"fade"==k.arg)H.delay=Editor.animationFadeDelay;else if("hide"==k.action||"setOpacity"==k.action)H.delay=Editor.animationFadeDelay;return"show"==k.action?"fade"==k.arg?{fadeIn:H}:"pop"==k.arg?{popIn:H}:{wipeIn:H}:"hide"==k.action?{fadeOut:H}:"setOpacity"==k.action?(H.value=k.opacity,{fadeTo:H}):"flow"==k.action?(u={cells:[u]},"start"==k.arg?u.start=!0:"stop"==k.arg&&(u.start=!1),{flow:u}):null};+Editor.convertLegacyAnimation=function(k){k=Editor.parseAnimationScript(k);for(var u=[{opacity:{cells:["*"],value:0}}],H=null,P=function(){null!=H&&(u.push(H),H=null)},T=function(X){null==H&&(H={});for(var ea in X){var oa=X[ea],la;if(la=null!=H[ea]&&null!=oa&&Array.isArray(H[ea].cells)&&Array.isArray(oa.cells))la=H[ea],la=la.delay===oa.delay&&la.value===oa.value&&la.start===oa.start;if(la)for(la=0;la<oa.cells.length;la++)H[ea].cells.push(oa.cells[la]);else null!=H[ea]&&(P(),H={}),H[ea]=oa}},W=0;W<+k.length;W++){var ha=Editor.convertLegacyAnimationStep(k[W]);null!=ha&&(null!=ha.wait?(P(),u.push(ha)):T(ha))}P();return{animation:{steps:u}}};Editor.parseAnimationData=function(k){var u=function(P){null==P&&(P={});Array.isArray(P.steps)||(P.steps=[]);P.loop=null==P.loop?!0:!!P.loop;P.enabled=null==P.enabled?!0:!!P.enabled;return P};if(null==k||""===k)return u({steps:[]});if("string"==typeof k){var H=mxUtils.trim(k);return"{"==H.charAt(0)||"["==H.charAt(0)?Editor.parseAnimationData(JSON.parse(H)):+u(Editor.convertLegacyAnimation(k).animation)}return null!=k.animation&&null!=k.animation.steps?u(k.animation):Array.isArray(k.steps)?u(k):u({steps:[]})};Editor.AnimationPlayer=function(k,u){this.graph=k;this.data=Editor.parseAnimationData(u);this.cancelled=this.running=!1;this.snapshot=null};Editor.ANIMATION_ALL="*";Editor.collectAnimatableCells=function(k){var u=[],H;for(H in k.cells){var P=k.cells[H];(k.isVertex(P)||k.isEdge(P))&&u.push(P)}return u};Editor.AnimationPlayer.prototype.collectReferencedCells=+function(){for(var k=this.data.steps||[],u={},H=[],P=0;P<k.length;P++){var T=k[P],W;for(W in T)if("wait"!=W&&"open"!=W){var ha=T[W];if("object"===typeof ha&&null!=ha){ha=this.graph.getCellsForAction(ha,!0);for(var X=0;X<ha.length;X++)u[ha[X].id]||(u[ha[X].id]=!0,H.push(ha[X]))}}}return H};Editor.AnimationPlayer.prototype.snapshotOpacity=function(){var k=this.collectReferencedCells();k=this.graph.getNodesForCells(k);this.snapshot=[];for(var u=0;u<k.length;u++)this.snapshot.push({node:k[u],opacity:k[u].style.opacity})};+Editor.AnimationPlayer.prototype.restoreOpacity=function(){if(null!=this.snapshot){for(var k=0;k<this.snapshot.length;k++)Graph.setTransitionForNodes([this.snapshot[k].node],null),this.snapshot[k].node.style.opacity=this.snapshot[k].opacity;this.snapshot=null}};Editor.AnimationPlayer.prototype.play=function(k){if(!this.running&&null!=this.graph&&!this.graph.isGraphTornDown()){k=k||{};this.running=!0;this.cancelled=!1;this.graph.stoppingCustomActions=!1;this.graph.view.validate();var u=this,H=this.data.steps||+[],P=function(W,ha){if(null==u.graph||u.graph.isGraphTornDown())u.running=!1;else if(u.cancelled||W>=H.length)ha();else{for(var X=W+1;X<H.length&&!0===H[X].immediate&&!u.cancelled;)X++;if("function"==typeof k.onStep)try{k.onStep(W,X)}catch(ea){}u.graph.executeCustomActions(Graph.flattenAnimationActions(H.slice(W,X)),function(){P(X,ha)},null)}},T=function(){null==u.graph||u.graph.isGraphTornDown()?u.running=!1:u.cancelled?(u.restoreOpacity(),u.running=!1):(u.snapshotOpacity(),P(0,function(){if(u.cancelled)u.restoreOpacity(),+u.running=!1;else{if("function"==typeof k.onStep)try{k.onStep(-1)}catch(W){}k.loop?(u.graph.refresh(),u.restoreOpacity(),window.setTimeout(T,0)):(u.running=!1,u.restoreOpacity(),null!=k.done&&k.done())}}))};k.defer?window.setTimeout(T,0):T()}};Editor.AnimationPlayer.prototype.stop=function(){this.cancelled=!0;null!=this.graph&&(this.graph.stoppingCustomActions=!0);for(var k=[],u=this.collectReferencedCells(),H=0;H<u.length;H++)this.graph.getModel().isEdge(u[H])&&k.push(u[H]);0<k.length&&Editor.toggleFlowAnimation(this.graph,+k,"stop")};Editor.toggleFlowAnimation=function(k,u,H){H=H||"toggle";for(var P=0;P<u.length;P++)if(k.getModel().isEdge(u[P])){var T=k.view.getState(u[P]);if(null!=T&&null!=T.shape){var W=null!=T.shape.getFlowAnimationPath?T.shape.getFlowAnimationPath():null;if(null!=W){var ha="mxEdgeFlow"==W.getAttribute("class"),X="start"==H||"toggle"==H&&!ha;ha="stop"==H||"toggle"==H&&ha;T="1"==mxUtils.getValue(T.style,mxConstants.STYLE_DASHED,"0");ha?(W.removeAttribute("class"),T||W.removeAttribute("stroke-dasharray")):+X&&(W.setAttribute("class","mxEdgeFlow"),T||W.setAttribute("stroke-dasharray","8"))}}}};Editor.playAnimationOnGraph=function(k,u){var H=k.getModel().getRoot(),P=null;null!=H.value&&"object"==typeof H.value&&(P=H.value.getAttribute("animation"));if(null==P||""==P)return null;try{var T=Editor.parseAnimationData(P)}catch(ha){return null}if(!T.steps||0==T.steps.length||!1===T.enabled)return null;H={};if(null!=u)for(var W in u)H[W]=u[W];null==H.loop&&(H.loop=T.loop);null==H.defer&&(H.defer=!0);k=new Editor.AnimationPlayer(k,+T);k.play(H);return k};Editor.installAnimationStyles=function(){if(!Editor.animationStylesInstalled){Editor.animationStylesInstalled=!0;try{var k=document.createElement("style");k.type="text/css";k.appendChild(document.createTextNode(".mxEdgeFlow { animation: mxEdgeFlow 0.5s linear infinite; }@keyframes mxEdgeFlow { to { stroke-dashoffset: -16; } }"));document.getElementsByTagName("head")[0].appendChild(k)}catch(u){}}};Editor.installAnimationStyles()})();(function(){EditorUi.VERSION="31.4.4";EditorUi.CSV_ELK_LAYOUTS={verticalflow:{layout:"elkLayered",config:{"elk.direction":"DOWN","elk.layered.layering.strategy":"LONGEST_PATH","elk.layered.nodePlacement.bk.fixedAlignment":"BALANCED","elk.edgeRouting":"POLYLINE",edgeStyle:"elkCompat",includeEdgeLabels:!1,includeVertexLabels:!1,portSpread:!0,resizeNodes:!1}},horizontalflow:{layout:"elkLayered",config:{"elk.direction":"RIGHT","elk.layered.layering.strategy":"LONGEST_PATH","elk.layered.nodePlacement.bk.fixedAlignment":"BALANCED","elk.edgeRouting":"POLYLINE",edgeStyle:"elkCompat",includeEdgeLabels:!1,includeVertexLabels:!1,portSpread:!0,resizeNodes:!1}},elkRadial:{layout:"elkRadial",config:{edgeStyle:"elkCompat"}},elkOrganic:{layout:"elkOrganic",config:{edgeStyle:"elkCompat"}},elkStress:{layout:"elkStress",config:{edgeStyle:"elkCompat"}}};EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)||/.*\.cdn\.prod\.atlassian-dev\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&"test.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.enabledTemplateSections=null;EditorUi.customTemplates=null;EditorUi.cacheUrl=window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;EditorUi.nativeFileSupport=!mxClient.IS_OP&&!EditorUi.isElectronApp&&@@ -4158,45 +4160,45 @@ EditorUi.prototype.insertTemplateEnabled=!0;EditorUi.prototype.closableScratchpafunction(c){this.shareCursorPosition=c;Editor.isSettingsEnabled()&&(mxSettings.settings.shareCursorPosition=c,mxSettings.save());this.fireEvent(new mxEventObject("shareCursorPositionChanged"))};EditorUi.prototype.isShareCursorPosition=function(){return this.shareCursorPosition};EditorUi.prototype.setShowRemoteCursors=function(c){this.showRemoteCursors=c;Editor.isSettingsEnabled()&&(mxSettings.settings.showRemoteCursors=c,mxSettings.save());this.fireEvent(new mxEventObject("showRemoteCursorsChanged"))};EditorUi.prototype.isShowRemoteCursors=function(){return this.showRemoteCursors};EditorUi.prototype.setMathEnabled=function(c){var f=this.editor.graph;f.mathEnabled=c;null!=f.view.backgroundImage&&(f.view.backgroundImage.destroy(),f.view.backgroundImage=null);this.editor.updateGraphComponents();f.refresh();f.defaultMathEnabled=c;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(c){return this.editor.graph.mathEnabled};EditorUi.prototype.setAdaptiveColors=function(c){this.editor.graph.setAdaptiveColors(c);this.editor.graph.view.clear();this.fireEvent(new mxEventObject("adaptiveColorsChanged"))};EditorUi.prototype.isStandaloneApp=function(){return mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||this.isOfflineApp()};EditorUi.prototype.isOfflineApp=function(){return"1"==urlParams.offline};EditorUi.prototype.isOffline=function(c){return this.isOfflineApp()||!navigator.onLine&&!EditorUi.isElectronApp||!c&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};-EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,f,l){var q=null==c||null==f;l=null!=l?l:24;var x=new Spinner({lines:12,length:l,width:Math.round(l/3),radius:Math.round(l/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),A=this.timeout,E=x.spin,J=null,Q=null,V=mxUtils.bind(this,function(Y){null!=Y&&Y()}),K=this;x.spin=function(Y,aa,-ja,ka){ka=null!=ka?ka:A;var ua=!1;if(!this.active){var Ca=Date.now();null!=ja&&(J=window.setTimeout(function(){x.stop();J=null;ja({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:Q})},ka));q&&(f=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0)/2,c=document.body.clientWidth/2-2);Y==document.body&&"1"==urlParams.embedInline&&(Y=K.diagramContainer,c=Y.scrollLeft+Y.clientWidth/2,f=Y.scrollTop+Y.clientHeight/2);E.call(this,Y);"1"==urlParams.embedInline&&-null!=x.el&&(x.el.style.marginTop=Y.scrollTop+"px",x.el.style.marginLeft=Y.scrollLeft+"px");this.active=!0;null!=aa&&(ua=document.createElement("div"),ua.className="geSpinnerStatus",ua.setAttribute("title",aa),Y==document.body?(ua.style.left=Math.max(0,c)+"px",ua.style.top=Math.max(0,f+66)+"px"):(ua.style.left="50%",ua.style.top="50%",ua.style.marginTop="70px"),"..."!=aa.substring(aa.length-3,aa.length)&&"!"!=aa.charAt(aa.length-1)&&(aa+="..."),ua.innerText=aa,Y.appendChild(ua),x.status=ua);this.pause=-mxUtils.bind(this,function(){var ia=V;this.active&&(ka=Math.max(0,ka-(Date.now()-Ca)),ia=mxUtils.bind(this,function(k){this.spin(Y,aa,ja,ka);if(null!=k)try{k(),Q=mxUtils.bind(this,function(){this.spin(Y,aa,ja,ka);try{k()}catch(v){null!=ja&&ja(v)}})}catch(v){null!=ja&&ja(v)}}));this.stop();return ia});ua=!0}return ua};var fa=x.stop;x.stop=function(){fa.call(this);this.active&&(this.active=!1,null!=J&&(window.clearTimeout(J),J=null),null!=x.status&&null!=x.status.parentNode&&x.status.parentNode.removeChild(x.status),-x.status=null)};x.pause=function(){return V};return x};EditorUi.prototype.isCompatibleString=function(c){try{if(c=mxUtils.trim(c),"<"==c.charAt(0)){var f=mxUtils.parseXml(c),l=this.editor.extractGraphModel(f.documentElement,!0);return null!=l&&0==l.getElementsByTagName("parsererror").length}}catch(q){}return!1};EditorUi.isVisioFilename=function(c){return/(\.v(dx|sdx?))($|\?)/i.test(c)||/(\.vs(x|sx?))($|\?)/i.test(c)};EditorUi.prototype.isVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&-207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&4==c.charCodeAt(3)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&6==c.charCodeAt(3))};EditorUi.prototype.isRemoteVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&-26==c.charCodeAt(6)&&225==c.charCodeAt(7)||60==c.charCodeAt(0)&&63==c.charCodeAt(1)&&120==c.charCodeAt(2)&&109==c.charCodeAt(3)&&108==c.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(c){var f=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var l=f.getFunction,q=this.editor.graph,x=this;f.getFunction=function(A){if(q.isSelectionEmpty()&&null!=x.pages&&0<x.pages.length){var E=x.getSelectedPageIndex();if(mxEvent.isShiftDown(A)){if(37==-A.keyCode)return function(){0<E&&x.movePage(E,E-1)};if(38==A.keyCode)return function(){0<E&&x.movePage(E,0)};if(39==A.keyCode)return function(){E<x.pages.length-1&&x.movePage(E,E+1)};if(40==A.keyCode)return function(){E<x.pages.length-1&&x.movePage(E,x.pages.length-1)}}else if(mxEvent.isControlDown(A)||mxClient.IS_MAC&&mxEvent.isMetaDown(A)){if(37==A.keyCode)return function(){0<E&&x.selectNextPage(!1)};if(38==A.keyCode)return function(){0<E&&x.selectPage(x.pages[0])};if(39==A.keyCode)return function(){E<-x.pages.length-1&&x.selectNextPage(!0)};if(40==A.keyCode)return function(){E<x.pages.length-1&&x.selectPage(x.pages[x.pages.length-1])}}}return!(65<=A.keyCode&&90>=A.keyCode)||q.isSelectionEmpty()||mxEvent.isAltDown(A)||mxEvent.isShiftDown(A)||mxEvent.isControlDown(A)||mxClient.IS_MAC&&mxEvent.isMetaDown(A)?l.apply(this,arguments):null}}return f};var d=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=function(c){var f=d.apply(this,arguments);if(null==f)try{var l=-c.indexOf("<mxfile ");if(0<=l){var q=c.lastIndexOf("</mxfile>");q>l&&(f=c.substring(l,q+15).replace(/>/g,">").replace(/</g,"<").replace(/\\"/g,'"').replace(/\n/g,""))}else{var x=mxUtils.parseXml(c),A=this.editor.extractGraphModel(x.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);f=null!=A?mxUtils.getXml(A):""}}catch(E){}return f};EditorUi.prototype.validateFileData=function(c){if(null!=c&&0<c.length){var f=c.indexOf('<meta charset="utf-8">');-0<=f&&(c=c.slice(0,f)+'<meta charset="utf-8"/>'+c.slice(f+23-1,c.length));c=Graph.zapGremlins(c)}return c};EditorUi.prototype.repairFileData=function(c){c=mxUtils.trim(c||"");if(0==c.length)return null;var f=c.replace(/<\/([A-Za-z_][\w.\-]*)(\s*)(?=<)/g,"</$1>$2"),l=f.lastIndexOf(">");f.lastIndexOf("<")>l&&(f=mxUtils.trim(f.substring(0,l+1)));if("</mxfile>"!=f.substring(f.length-9)){l=[];for(var q=/<(\/?)([A-Za-z_][\w.\-]*)[^>]*?(\/?)>/g,x;null!=(x=q.exec(f));)"/"==x[1]?0<l.length&&l[l.length-1]==-x[2]&&l.pop():"/"!=x[3]&&l.push(x[2]);for(q=l.length-1;0<=q;q--)f+="</"+l[q]+">"}return f!=c?f:null};EditorUi.prototype.isFileDataLoadable=function(c){try{c=this.validateFileData(c);var f=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;if(null==f||null!=Editor.extractParserError(f))return!1;var l=this.editor.extractGraphModel(f,!0);return null!=(null!=l?l:f)}catch(q){return!1}};EditorUi.prototype.getRecoveryData=function(c,f,l,q){var x=null;try{var A=this.repairFileData(f);null!=A&&A!=-f&&this.isFileDataLoadable(A)&&(x={type:"repair",label:mxResources.get("openRepairedCopy"),description:mxResources.get("recoveryRepairedDesc"),data:A,lossy:!0})}catch(J){}var E=mxUtils.bind(this,function(J){var Q=[];null!=J&&null!=J.data&&Q.push(J);null!=x&&Q.push(x);q(Q)});null!=c&&"function"===typeof c.getRecoveryVersion?c.getRecoveryVersion(mxUtils.bind(this,function(J){E(J)}),mxUtils.bind(this,function(){E(null)})):E(null)};EditorUi.prototype.openRecoveredCopy=function(c,f){c=new LocalFile(this,-c.data,mxResources.get("copyOf",[f||this.defaultFilename]),!0);this.fileLoaded(c)&&c.fileChanged()};EditorUi.prototype.showRecoveryDialog=function(c,f){c=new RecoveryDialog(this,c,mxUtils.bind(this,function(l){this.hideDialog();this.openRecoveredCopy(l,f)}),mxUtils.bind(this,function(){this.hideDialog()}));this.showDialog(c.container,380,null,!0,!0)};EditorUi.prototype.formatRecoveryDate=function(c){c=new Date(c);return!isNaN(c.getTime())&&0<=c.getTime()?c.toLocaleString():null};EditorUi.prototype.replaceFileData=-function(c,f){EditorUi.debug("EditorUi.replaceFileData",[this],"data",[c],"patches",f);c=this.validateFileData(c);c=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var l=null!=c?this.editor.extractGraphModel(c,!0):null;null!=l&&(c=l);if(null!=c){l=this.editor.graph;l.model.beginUpdate();try{var q=null!=this.pages?this.pages.slice():null,x=c.getElementsByTagName("diagram");if(1<x.length||1==x.length&&x[0].hasAttribute("name")){this.fileNode=c;l.defaultExportLinkTarget=c.getAttribute("linkTarget");-this.pages=null!=this.pages?this.pages:[];for(var A=x.length-1;0<=A;A--){var E=this.updatePageRoot(new DiagramPage(x[A]));null==E.getName()&&E.setName(mxResources.get("pageWithNumber",[A+1]));l.model.execute(new ChangePage(this,E,0==A?E:null,0))}}else null==this.fileNode&&(this.fileNode=c.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(c.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),l.model.execute(new ChangePage(this,-this.currentPage,this.currentPage,0))),this.editor.setGraphXml(c),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,l.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=q)for(A=0;A<q.length;A++)l.model.execute(new ChangePage(this,q[A],null));var J=this.getCurrentFile();null!=J&&J.fileReplaced(f)}finally{l.model.endUpdate()}}};EditorUi.prototype.createFileData=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y){f=null!=f?f:this.editor.graph;x=null!=x?x:!1;-Q=null!=Q?Q:!0;V=null!=V?V:this.defaultCompact;K=null!=K?K:!Editor.defaultCompressed;var aa=null;if(null==l||l.getMode()==App.MODE_DEVICE||l.getMode()==App.MODE_BROWSER)var ja="_blank";else aa=ja=q;if(null==c)return"";var ka=c;if("mxfile"!=ka.nodeName.toLowerCase()){if(K){var ua=c.ownerDocument.createElement("diagram");ua.setAttribute("name",mxResources.get("pageWithNumber",[1]));ua.setAttribute("id",Editor.guid());ua.appendChild(c)}else{ua=Graph.zapGremlins(mxUtils.getXml(c));ka=Graph.compress(ua);-if(Graph.decompress(ka)!=ua)return ua;ua=c.ownerDocument.createElement("diagram");ua.setAttribute("name",mxResources.get("pageWithNumber",[1]));ua.setAttribute("id",Editor.guid());mxUtils.setTextContent(ua,ka)}ka=c.ownerDocument.createElement("mxfile");ka.appendChild(ua)}V?(ka=ka.cloneNode(!0),ka.removeAttribute("modified"),ka.removeAttribute("host"),ka.removeAttribute("agent"),ka.removeAttribute("etag"),ka.removeAttribute("userAgent"),ka.removeAttribute("version"),ka.removeAttribute("editor"),ka.removeAttribute("type")):-(ka.removeAttribute("userAgent"),ka.removeAttribute("modified"),ka.removeAttribute("version"),ka.removeAttribute("editor"),ka.removeAttribute("pages"),ka.removeAttribute("type"),ka.removeAttribute("etag"),mxClient.IS_CHROMEAPP?ka.setAttribute("host","Chrome"):EditorUi.isElectronApp?ka.setAttribute("host","Electron"):ka.setAttribute("host",window.location.hostname),1<ka.getElementsByTagName("diagram").length&&null!=this.pages&&ka.setAttribute("pages",this.pages.length));null!=fa&&(ka=ka.cloneNode(!0),-ka.setAttribute("scale",fa));null!=Y&&(ka=ka.cloneNode(!0),ka.setAttribute("border",Y));c=K?mxUtils.getPrettyXml(ka):mxUtils.getXml(ka);if(!A&&!x&&(E||null!=l&&/(\.html)$/i.test(l.getTitle())))c=this.getHtml2(mxUtils.getXml(ka),f,null!=l?l.getTitle():null,ja,aa);else if(A||!x&&null!=l&&/(\.svg)$/i.test(l.getTitle()))null==l||l.getMode()!=App.MODE_DEVICE&&l.getMode()!=App.MODE_BROWSER||(q=null),l=this.getSvgFileProperties(ka),c=this.getEmbeddedSvg(c,f,q,null,J,Q,aa,null,null,l.scale,l.border,null,-Editor.svgFileTheme,null,l.embedFonts);return c};EditorUi.prototype.getXmlFileData=function(c,f,l,q){c=null!=c?c:!0;f=null!=f?f:!1;l=null!=l?l:!Editor.defaultCompressed;var x=this.editor.getGraphXml(c,q);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(Q){var V=Q.getElementsByTagName("mxGraphModel"),K=0<V.length?V[0]:null;V=Q;null==K&&l?(K=mxUtils.getNodeValue(Q),0<K.length&&(K=Graph.decompress(K),null!=K&&0<K.length&&(V=Q.cloneNode(!1),V.appendChild(mxUtils.parseXml(K).documentElement)))):-null==K||l?V=Q.cloneNode(!0):(V=Q.cloneNode(!1),mxUtils.setTextContent(V,Graph.compressNode(K)));x.appendChild(V)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(x),x=this.fileNode.cloneNode(!1),f)c(this.currentPage.node);else for(f=0;f<this.pages.length;f++){var A=this.pages[f],E=A.node;if(A!=this.currentPage)if(A.needsUpdate){var J=new mxCodec(mxUtils.createXmlDocument());J=J.encode(new mxGraphModel(A.root));this.editor.graph.saveViewState(A.viewState,J,null,-q);EditorUi.removeChildNodes(E);E.appendChild(J);delete A.needsUpdate}else q&&(this.updatePageRoot(A),null!=A.viewState.backgroundImage&&null!=A.viewState.backgroundImage.originalSrc&&(J=new mxCodec(mxUtils.createXmlDocument()),J=J.encode(new mxGraphModel(A.root)),this.editor.graph.saveViewState(A.viewState,J,null,q,A),E=E.cloneNode(!1),E.appendChild(J)));c(E)}return x};EditorUi.prototype.anonymizeString=function(c,f){for(var l=[],q=0;q<c.length;q++){var x=c.charAt(q);0<=EditorUi.ignoredAnonymizedChars.indexOf(x)?-l.push(x):isNaN(parseInt(x))?x.toLowerCase()!=x?l.push(String.fromCharCode(65+Math.round(25*Math.random()))):x.toUpperCase()!=x?l.push(String.fromCharCode(97+Math.round(25*Math.random()))):/\s/.test(x)?l.push(" "):l.push("?"):l.push(f?"0":Math.round(9*Math.random()))}return l.join("")};EditorUi.prototype.anonymizeXml=function(c){function f(E,J,Q){if(E.hasAttribute(J)){var V=E.getAttribute(J);null!=V&&0<V.length&&(Q&&0<=V.indexOf("<")?(A.innerHTML=Graph.sanitizeHtml(V),l(A),V=A.innerHTML):V=x.anonymizeString(V),-E.setAttribute(J,V))}}function l(E){null!=E.nodeValue&&(E.nodeValue=x.anonymizeString(E.nodeValue));if(E.nodeType==mxConstants.NODETYPE_ELEMENT)for(E=E.firstChild;null!=E;)l(E),E=E.nextSibling}function q(E){if(E.nodeType==mxConstants.NODETYPE_ELEMENT){if("mxCell"==E.nodeName)f(E,"value",!0);else if("object"==E.nodeName||"UserObject"==E.nodeName)for(var J=0;J<E.attributes.length;J++){var Q=E.attributes[J];"id"!=Q.name&&"style"!=Q.name&&"placeholders"!=Q.name&&"vertex"!=Q.name&&"edge"!=Q.name&&"parent"!=-Q.name&&"connectable"!=Q.name&&"visible"!=Q.name&&"collapsed"!=Q.name&&"source"!=Q.name&&"target"!=Q.name&&(Q.value=x.anonymizeString(Q.value))}else"diagram"==E.nodeName&&f(E,"name",!1);for(E=E.firstChild;null!=E;)q(E),E=E.nextSibling}}var x=this,A=document.createElement("div");c=mxUtils.parseXml(c);q(c.documentElement);return mxUtils.getPrettyXml(c.documentElement)};EditorUi.prototype.anonymizePatch=function(c){c=JSON.parse(JSON.stringify(c));if(null!=c[EditorUi.DIFF_INSERT])for(var f=0;f<c[EditorUi.DIFF_INSERT].length;f++)try{var l=-mxUtils.parseXml(c[EditorUi.DIFF_INSERT][f].data).documentElement.cloneNode(!1);null!=l.getAttribute("name")&&l.setAttribute("name",this.anonymizeString(l.getAttribute("name")));c[EditorUi.DIFF_INSERT][f].data=mxUtils.getXml(l)}catch(A){c[EditorUi.DIFF_INSERT][f].data=A.message}if(null!=c[EditorUi.DIFF_UPDATE]){for(var q in c[EditorUi.DIFF_UPDATE]){var x=c[EditorUi.DIFF_UPDATE][q];null!=x.name&&(x.name=this.anonymizeString(x.name));null!=x.cells&&(f=mxUtils.bind(this,function(A){var E=x.cells[A];-if(null!=E){for(var J in E)null!=E[J].value&&(E[J].value="["+E[J].value.length+"]"),null!=E[J].xmlValue&&(E[J].xmlValue="["+E[J].xmlValue.length+"]"),null!=E[J].style&&(E[J].style="["+E[J].style.length+"]"),mxUtils.isEmptyObject(E[J])&&delete E[J];mxUtils.isEmptyObject(E)&&delete x.cells[A]}}),f(EditorUi.DIFF_INSERT),f(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(x.cells)&&delete x.cells);mxUtils.isEmptyObject(x)&&delete c[EditorUi.DIFF_UPDATE][q]}mxUtils.isEmptyObject(c[EditorUi.DIFF_UPDATE])&&delete c[EditorUi.DIFF_UPDATE]}return c};-EditorUi.prototype.anonymizeAttributes=function(c,f){if(null!=c.attributes)for(var l=0;l<c.attributes.length;l++)"as"!=c.attributes[l].name&&c.setAttribute(c.attributes[l].name,this.anonymizeString(c.attributes[l].value,f));if(null!=c.childNodes)for(l=0;l<c.childNodes.length;l++)this.anonymizeAttributes(c.childNodes[l],f)};EditorUi.prototype.anonymizeNode=function(c,f){f=c.getElementsByTagName("mxCell");for(var l=0;l<f.length;l++)null!=f[l].getAttribute("value")&&f[l].setAttribute("value","["+f[l].getAttribute("value").length+-"]"),null!=f[l].getAttribute("xmlValue")&&f[l].setAttribute("xmlValue","["+f[l].getAttribute("xmlValue").length+"]"),null!=f[l].getAttribute("style")&&f[l].setAttribute("style","["+f[l].getAttribute("style").length+"]"),null!=f[l].parentNode&&"root"!=f[l].parentNode.nodeName&&null!=f[l].parentNode.parentNode&&(f[l].setAttribute("id",f[l].parentNode.getAttribute("id")),f[l].parentNode.parentNode.replaceChild(f[l],f[l].parentNode));return c};EditorUi.prototype.synchronizeCurrentFile=function(c){var f=-this.getCurrentFile();null!=f&&(f.savingFile?this.handleError({message:mxResources.get("busy")}):!c&&f.invalidChecksum?f.handleFileError(null,!0):this.spinner.spin(document.body,mxResources.get("updatingDocument"))&&(f.clearAutosave(),this.clearStatus(),c?f.reloadFile(mxUtils.bind(this,function(){this.spinner.stop();f.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(l){this.spinner.stop();f.handleFileError(l,!0)})):f.synchronizeFile(mxUtils.bind(this,function(){f.handleFileSuccess("manual"==-DrawioFile.SYNC)}),mxUtils.bind(this,function(l){f.handleFileError(l,!0)}))))};EditorUi.prototype.getFileData=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y){x=null!=x?x:!0;A=null!=A?A:!1;V=null!=V?V:!Editor.defaultCompressed;var aa=this.editor.graph;if((f||!c&&null!=Q&&/(\.svg)$/i.test(Q.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var ja=aa.getGlobalVariable;aa=this.createTemporaryGraph(aa.getStylesheet());aa.setBackgroundImage=this.editor.graph.setBackgroundImage;aa.background=this.editor.graph.background;-var ka=null!=this.pages?this.pages[0]:null;null==ka||this.currentPage==ka?aa.setBackgroundImage(this.editor.graph.backgroundImage):null!=ka.viewState&&null!=ka.viewState&&aa.setBackgroundImage(ka.viewState.backgroundImage);aa.getGlobalVariable=function(ua){return"page"==ua&&null!=ka?ka.getName():"pagenumber"==ua?1:ja.apply(this,arguments)};document.body.appendChild(aa.container);null!=ka&&aa.model.setRoot(ka.root)}E=null!=E?E:this.getXmlFileData(x,A,V,K);Q=null!=Q?Q:this.getCurrentFile();c=this.createFileData(E,-aa,Q,window.location.href,c,f,l,q,x,J,V,fa,Y);aa!=this.editor.graph&&aa.container.parentNode.removeChild(aa.container);return c};EditorUi.prototype.getHtml=function(c,f,l,q,x,A){A=null!=A?A:!0;var E=null,J=EditorUi.drawHost+"/js/embed-static.min.js";if(null!=f){E=A?f.getGraphBounds():f.getBoundingBox(f.getSelectionCells());var Q=f.view.scale;A=Math.floor(E.x/Q-f.view.translate.x);Q=Math.floor(E.y/Q-f.view.translate.y);E=f.background;null==x&&(f=this.getBasenames().join(";"),0<f.length&&(J=EditorUi.drawHost+-"/embed.js?s="+f));c.setAttribute("x0",A);c.setAttribute("y0",Q)}null!=c&&(c.setAttribute("pan","1"),c.setAttribute("zoom","1"),c.setAttribute("resize","0"),c.setAttribute("fit","0"),c.setAttribute("border","20"),c.setAttribute("links","1"),null!=q&&c.setAttribute("edit",q));null!=x&&(x=x.replace(/&/g,"&"));c=null!=c?Graph.zapGremlins(mxUtils.getXml(c)):"";q=Graph.compress(c);Graph.decompress(q)!=c&&(q=encodeURIComponent(c));return(null==x?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':-"")+"<!DOCTYPE html>\n<html"+(null!=x?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==x?null!=l?"<title>"+mxUtils.htmlEntities(l)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=x?'<meta http-equiv="refresh" content="0;URL=\''+x+"'\"/>\n":"")+"</head>\n<body"+(null==x&&null!=E&&E!=mxConstants.NONE?' style="background-color:'+E+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'+q+"</div>\n</div>\n"+-(null==x?'<script type="text/javascript" src="'+J+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+x+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(c,f,l,q,x){f=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=x&&(x=x.replace(/&/g,"&"));c={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,resize:!0,-xml:Graph.zapGremlins(c),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(c.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==x?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=x?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==x?null!=l?"<title>"+mxUtils.htmlEntities(l)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=x?'<meta http-equiv="refresh" content="0;URL=\''++EditorUi.prototype.isRemoteExportEnabled=function(){return!this.isOffline()&&"string"===typeof EXPORT_URL&&/^(https?:\/\/|\/)/i.test(EXPORT_URL)};EditorUi.prototype.isPrintPdfExport=function(){return this.printPdfExport||!this.isRemoteExportEnabled()};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,f,l){var q=null==c||null==f;l=null!=l?l:24;var x=new Spinner({lines:12,length:l,width:Math.round(l/+3),radius:Math.round(l/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),A=this.timeout,E=x.spin,J=null,Q=null,V=mxUtils.bind(this,function(Y){null!=Y&&Y()}),K=this;x.spin=function(Y,aa,ja,ka){ka=null!=ka?ka:A;var ua=!1;if(!this.active){var Ca=Date.now();null!=ja&&(J=window.setTimeout(function(){x.stop();J=null;ja({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:Q})},ka));q&&(f=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||+0)/2,c=document.body.clientWidth/2-2);Y==document.body&&"1"==urlParams.embedInline&&(Y=K.diagramContainer,c=Y.scrollLeft+Y.clientWidth/2,f=Y.scrollTop+Y.clientHeight/2);E.call(this,Y);"1"==urlParams.embedInline&&null!=x.el&&(x.el.style.marginTop=Y.scrollTop+"px",x.el.style.marginLeft=Y.scrollLeft+"px");this.active=!0;null!=aa&&(ua=document.createElement("div"),ua.className="geSpinnerStatus",ua.setAttribute("title",aa),Y==document.body?(ua.style.left=Math.max(0,c)+"px",ua.style.top=Math.max(0,f+66)++"px"):(ua.style.left="50%",ua.style.top="50%",ua.style.marginTop="70px"),"..."!=aa.substring(aa.length-3,aa.length)&&"!"!=aa.charAt(aa.length-1)&&(aa+="..."),ua.innerText=aa,Y.appendChild(ua),x.status=ua);this.pause=mxUtils.bind(this,function(){var ia=V;this.active&&(ka=Math.max(0,ka-(Date.now()-Ca)),ia=mxUtils.bind(this,function(k){this.spin(Y,aa,ja,ka);if(null!=k)try{k(),Q=mxUtils.bind(this,function(){this.spin(Y,aa,ja,ka);try{k()}catch(u){null!=ja&&ja(u)}})}catch(u){null!=ja&&ja(u)}}));this.stop();+return ia});ua=!0}return ua};var fa=x.stop;x.stop=function(){fa.call(this);this.active&&(this.active=!1,null!=J&&(window.clearTimeout(J),J=null),null!=x.status&&null!=x.status.parentNode&&x.status.parentNode.removeChild(x.status),x.status=null)};x.pause=function(){return V};return x};EditorUi.prototype.isCompatibleString=function(c){try{if(c=mxUtils.trim(c),"<"==c.charAt(0)){var f=mxUtils.parseXml(c),l=this.editor.extractGraphModel(f.documentElement,!0);return null!=l&&0==l.getElementsByTagName("parsererror").length}}catch(q){}return!1};+EditorUi.isVisioFilename=function(c){return/(\.v(dx|sdx?))($|\?)/i.test(c)||/(\.vs(x|sx?))($|\?)/i.test(c)};EditorUi.prototype.isVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&4==c.charCodeAt(3)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&6==c.charCodeAt(3))};+EditorUi.prototype.isRemoteVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||60==c.charCodeAt(0)&&63==c.charCodeAt(1)&&120==c.charCodeAt(2)&&109==c.charCodeAt(3)&&108==c.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(c){var f=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var l=+f.getFunction,q=this.editor.graph,x=this;f.getFunction=function(A){if(q.isSelectionEmpty()&&null!=x.pages&&0<x.pages.length){var E=x.getSelectedPageIndex();if(mxEvent.isShiftDown(A)){if(37==A.keyCode)return function(){0<E&&x.movePage(E,E-1)};if(38==A.keyCode)return function(){0<E&&x.movePage(E,0)};if(39==A.keyCode)return function(){E<x.pages.length-1&&x.movePage(E,E+1)};if(40==A.keyCode)return function(){E<x.pages.length-1&&x.movePage(E,x.pages.length-1)}}else if(mxEvent.isControlDown(A)||mxClient.IS_MAC&&+mxEvent.isMetaDown(A)){if(37==A.keyCode)return function(){0<E&&x.selectNextPage(!1)};if(38==A.keyCode)return function(){0<E&&x.selectPage(x.pages[0])};if(39==A.keyCode)return function(){E<x.pages.length-1&&x.selectNextPage(!0)};if(40==A.keyCode)return function(){E<x.pages.length-1&&x.selectPage(x.pages[x.pages.length-1])}}}return!(65<=A.keyCode&&90>=A.keyCode)||q.isSelectionEmpty()||mxEvent.isAltDown(A)||mxEvent.isShiftDown(A)||mxEvent.isControlDown(A)||mxClient.IS_MAC&&mxEvent.isMetaDown(A)?l.apply(this,+arguments):null}}return f};var d=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=function(c){var f=d.apply(this,arguments);if(null==f)try{var l=c.indexOf("<mxfile ");if(0<=l){var q=c.lastIndexOf("</mxfile>");q>l&&(f=c.substring(l,q+15).replace(/>/g,">").replace(/</g,"<").replace(/\\"/g,'"').replace(/\n/g,""))}else{var x=mxUtils.parseXml(c),A=this.editor.extractGraphModel(x.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);+f=null!=A?mxUtils.getXml(A):""}}catch(E){}return f};EditorUi.prototype.validateFileData=function(c){if(null!=c&&0<c.length){var f=c.indexOf('<meta charset="utf-8">');0<=f&&(c=c.slice(0,f)+'<meta charset="utf-8"/>'+c.slice(f+23-1,c.length));c=Graph.zapGremlins(c)}return c};EditorUi.prototype.repairFileData=function(c){c=mxUtils.trim(c||"");if(0==c.length)return null;var f=c.replace(/<\/([A-Za-z_][\w.\-]*)(\s*)(?=<)/g,"</$1>$2"),l=f.lastIndexOf(">");f.lastIndexOf("<")>l&&(f=mxUtils.trim(f.substring(0,+l+1)));if("</mxfile>"!=f.substring(f.length-9)){l=[];for(var q=/<(\/?)([A-Za-z_][\w.\-]*)[^>]*?(\/?)>/g,x;null!=(x=q.exec(f));)"/"==x[1]?0<l.length&&l[l.length-1]==x[2]&&l.pop():"/"!=x[3]&&l.push(x[2]);for(q=l.length-1;0<=q;q--)f+="</"+l[q]+">"}return f!=c?f:null};EditorUi.prototype.isFileDataLoadable=function(c){try{c=this.validateFileData(c);var f=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;if(null==f||null!=Editor.extractParserError(f))return!1;var l=this.editor.extractGraphModel(f,+!0);return null!=(null!=l?l:f)}catch(q){return!1}};EditorUi.prototype.getRecoveryData=function(c,f,l,q){var x=null;try{var A=this.repairFileData(f);null!=A&&A!=f&&this.isFileDataLoadable(A)&&(x={type:"repair",label:mxResources.get("openRepairedCopy"),description:mxResources.get("recoveryRepairedDesc"),data:A,lossy:!0})}catch(J){}var E=mxUtils.bind(this,function(J){var Q=[];null!=J&&null!=J.data&&Q.push(J);null!=x&&Q.push(x);q(Q)});null!=c&&"function"===typeof c.getRecoveryVersion?c.getRecoveryVersion(mxUtils.bind(this,+function(J){E(J)}),mxUtils.bind(this,function(){E(null)})):E(null)};EditorUi.prototype.openRecoveredCopy=function(c,f){c=new LocalFile(this,c.data,mxResources.get("copyOf",[f||this.defaultFilename]),!0);this.fileLoaded(c)&&c.fileChanged()};EditorUi.prototype.showRecoveryDialog=function(c,f){c=new RecoveryDialog(this,c,mxUtils.bind(this,function(l){this.hideDialog();this.openRecoveredCopy(l,f)}),mxUtils.bind(this,function(){this.hideDialog()}));this.showDialog(c.container,380,null,!0,!0)};EditorUi.prototype.formatRecoveryDate=+function(c){c=new Date(c);return!isNaN(c.getTime())&&0<=c.getTime()?c.toLocaleString():null};EditorUi.prototype.replaceFileData=function(c,f){EditorUi.debug("EditorUi.replaceFileData",[this],"data",[c],"patches",f);c=this.validateFileData(c);c=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var l=null!=c?this.editor.extractGraphModel(c,!0):null;null!=l&&(c=l);if(null!=c){l=this.editor.graph;l.model.beginUpdate();try{var q=null!=this.pages?this.pages.slice():null,x=c.getElementsByTagName("diagram");+if(1<x.length||1==x.length&&x[0].hasAttribute("name")){this.fileNode=c;l.defaultExportLinkTarget=c.getAttribute("linkTarget");this.pages=null!=this.pages?this.pages:[];for(var A=x.length-1;0<=A;A--){var E=this.updatePageRoot(new DiagramPage(x[A]));null==E.getName()&&E.setName(mxResources.get("pageWithNumber",[A+1]));l.model.execute(new ChangePage(this,E,0==A?E:null,0))}}else null==this.fileNode&&(this.fileNode=c.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(c.ownerDocument.createElement("diagram")),+this.currentPage.setName(mxResources.get("pageWithNumber",[1])),l.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0))),this.editor.setGraphXml(c),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,l.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=q)for(A=0;A<q.length;A++)l.model.execute(new ChangePage(this,q[A],null));var J=this.getCurrentFile();null!=J&&J.fileReplaced(f)}finally{l.model.endUpdate()}}};EditorUi.prototype.createFileData=+function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y){f=null!=f?f:this.editor.graph;x=null!=x?x:!1;Q=null!=Q?Q:!0;V=null!=V?V:this.defaultCompact;K=null!=K?K:!Editor.defaultCompressed;var aa=null;if(null==l||l.getMode()==App.MODE_DEVICE||l.getMode()==App.MODE_BROWSER)var ja="_blank";else aa=ja=q;if(null==c)return"";var ka=c;if("mxfile"!=ka.nodeName.toLowerCase()){if(K){var ua=c.ownerDocument.createElement("diagram");ua.setAttribute("name",mxResources.get("pageWithNumber",[1]));ua.setAttribute("id",Editor.guid());+ua.appendChild(c)}else{ua=Graph.zapGremlins(mxUtils.getXml(c));ka=Graph.compress(ua);if(Graph.decompress(ka)!=ua)return ua;ua=c.ownerDocument.createElement("diagram");ua.setAttribute("name",mxResources.get("pageWithNumber",[1]));ua.setAttribute("id",Editor.guid());mxUtils.setTextContent(ua,ka)}ka=c.ownerDocument.createElement("mxfile");ka.appendChild(ua)}V?(ka=ka.cloneNode(!0),ka.removeAttribute("modified"),ka.removeAttribute("host"),ka.removeAttribute("agent"),ka.removeAttribute("etag"),ka.removeAttribute("userAgent"),+ka.removeAttribute("version"),ka.removeAttribute("editor"),ka.removeAttribute("type")):(ka.removeAttribute("userAgent"),ka.removeAttribute("modified"),ka.removeAttribute("version"),ka.removeAttribute("editor"),ka.removeAttribute("pages"),ka.removeAttribute("type"),ka.removeAttribute("etag"),mxClient.IS_CHROMEAPP?ka.setAttribute("host","Chrome"):EditorUi.isElectronApp?ka.setAttribute("host","Electron"):ka.setAttribute("host",window.location.hostname),1<ka.getElementsByTagName("diagram").length&&null!=+this.pages&&ka.setAttribute("pages",this.pages.length));null!=fa&&(ka=ka.cloneNode(!0),ka.setAttribute("scale",fa));null!=Y&&(ka=ka.cloneNode(!0),ka.setAttribute("border",Y));c=K?mxUtils.getPrettyXml(ka):mxUtils.getXml(ka);if(!A&&!x&&(E||null!=l&&/(\.html)$/i.test(l.getTitle())))c=this.getHtml2(mxUtils.getXml(ka),f,null!=l?l.getTitle():null,ja,aa);else if(A||!x&&null!=l&&/(\.svg)$/i.test(l.getTitle()))null==l||l.getMode()!=App.MODE_DEVICE&&l.getMode()!=App.MODE_BROWSER||(q=null),l=this.getSvgFileProperties(ka),+c=this.getEmbeddedSvg(c,f,q,null,J,Q,aa,null,null,l.scale,l.border,null,Editor.svgFileTheme,null,l.embedFonts);return c};EditorUi.prototype.getXmlFileData=function(c,f,l,q){c=null!=c?c:!0;f=null!=f?f:!1;l=null!=l?l:!Editor.defaultCompressed;var x=this.editor.getGraphXml(c,q);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(Q){var V=Q.getElementsByTagName("mxGraphModel"),K=0<V.length?V[0]:null;V=Q;null==K&&l?(K=mxUtils.getNodeValue(Q),0<K.length&&(K=Graph.decompress(K),null!=K&&0<K.length&&+(V=Q.cloneNode(!1),V.appendChild(mxUtils.parseXml(K).documentElement)))):null==K||l?V=Q.cloneNode(!0):(V=Q.cloneNode(!1),mxUtils.setTextContent(V,Graph.compressNode(K)));x.appendChild(V)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(x),x=this.fileNode.cloneNode(!1),f)c(this.currentPage.node);else for(f=0;f<this.pages.length;f++){var A=this.pages[f],E=A.node;if(A!=this.currentPage)if(A.needsUpdate){var J=new mxCodec(mxUtils.createXmlDocument());J=J.encode(new mxGraphModel(A.root));+this.editor.graph.saveViewState(A.viewState,J,null,q);EditorUi.removeChildNodes(E);E.appendChild(J);delete A.needsUpdate}else q&&(this.updatePageRoot(A),null!=A.viewState.backgroundImage&&null!=A.viewState.backgroundImage.originalSrc&&(J=new mxCodec(mxUtils.createXmlDocument()),J=J.encode(new mxGraphModel(A.root)),this.editor.graph.saveViewState(A.viewState,J,null,q,A),E=E.cloneNode(!1),E.appendChild(J)));c(E)}return x};EditorUi.prototype.anonymizeString=function(c,f){for(var l=[],q=0;q<c.length;q++){var x=+c.charAt(q);0<=EditorUi.ignoredAnonymizedChars.indexOf(x)?l.push(x):isNaN(parseInt(x))?x.toLowerCase()!=x?l.push(String.fromCharCode(65+Math.round(25*Math.random()))):x.toUpperCase()!=x?l.push(String.fromCharCode(97+Math.round(25*Math.random()))):/\s/.test(x)?l.push(" "):l.push("?"):l.push(f?"0":Math.round(9*Math.random()))}return l.join("")};EditorUi.prototype.anonymizeXml=function(c){function f(E,J,Q){if(E.hasAttribute(J)){var V=E.getAttribute(J);null!=V&&0<V.length&&(Q&&0<=V.indexOf("<")?(A.innerHTML=+Graph.sanitizeHtml(V),l(A),V=A.innerHTML):V=x.anonymizeString(V),E.setAttribute(J,V))}}function l(E){null!=E.nodeValue&&(E.nodeValue=x.anonymizeString(E.nodeValue));if(E.nodeType==mxConstants.NODETYPE_ELEMENT)for(E=E.firstChild;null!=E;)l(E),E=E.nextSibling}function q(E){if(E.nodeType==mxConstants.NODETYPE_ELEMENT){if("mxCell"==E.nodeName)f(E,"value",!0);else if("object"==E.nodeName||"UserObject"==E.nodeName)for(var J=0;J<E.attributes.length;J++){var Q=E.attributes[J];"id"!=Q.name&&"style"!=Q.name&&+"placeholders"!=Q.name&&"vertex"!=Q.name&&"edge"!=Q.name&&"parent"!=Q.name&&"connectable"!=Q.name&&"visible"!=Q.name&&"collapsed"!=Q.name&&"source"!=Q.name&&"target"!=Q.name&&(Q.value=x.anonymizeString(Q.value))}else"diagram"==E.nodeName&&f(E,"name",!1);for(E=E.firstChild;null!=E;)q(E),E=E.nextSibling}}var x=this,A=document.createElement("div");c=mxUtils.parseXml(c);q(c.documentElement);return mxUtils.getPrettyXml(c.documentElement)};EditorUi.prototype.anonymizePatch=function(c){c=JSON.parse(JSON.stringify(c));+if(null!=c[EditorUi.DIFF_INSERT])for(var f=0;f<c[EditorUi.DIFF_INSERT].length;f++)try{var l=mxUtils.parseXml(c[EditorUi.DIFF_INSERT][f].data).documentElement.cloneNode(!1);null!=l.getAttribute("name")&&l.setAttribute("name",this.anonymizeString(l.getAttribute("name")));c[EditorUi.DIFF_INSERT][f].data=mxUtils.getXml(l)}catch(A){c[EditorUi.DIFF_INSERT][f].data=A.message}if(null!=c[EditorUi.DIFF_UPDATE]){for(var q in c[EditorUi.DIFF_UPDATE]){var x=c[EditorUi.DIFF_UPDATE][q];null!=x.name&&(x.name=this.anonymizeString(x.name));+null!=x.cells&&(f=mxUtils.bind(this,function(A){var E=x.cells[A];if(null!=E){for(var J in E)null!=E[J].value&&(E[J].value="["+E[J].value.length+"]"),null!=E[J].xmlValue&&(E[J].xmlValue="["+E[J].xmlValue.length+"]"),null!=E[J].style&&(E[J].style="["+E[J].style.length+"]"),mxUtils.isEmptyObject(E[J])&&delete E[J];mxUtils.isEmptyObject(E)&&delete x.cells[A]}}),f(EditorUi.DIFF_INSERT),f(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(x.cells)&&delete x.cells);mxUtils.isEmptyObject(x)&&delete c[EditorUi.DIFF_UPDATE][q]}mxUtils.isEmptyObject(c[EditorUi.DIFF_UPDATE])&&+delete c[EditorUi.DIFF_UPDATE]}return c};EditorUi.prototype.anonymizeAttributes=function(c,f){if(null!=c.attributes)for(var l=0;l<c.attributes.length;l++)"as"!=c.attributes[l].name&&c.setAttribute(c.attributes[l].name,this.anonymizeString(c.attributes[l].value,f));if(null!=c.childNodes)for(l=0;l<c.childNodes.length;l++)this.anonymizeAttributes(c.childNodes[l],f)};EditorUi.prototype.anonymizeNode=function(c,f){f=c.getElementsByTagName("mxCell");for(var l=0;l<f.length;l++)null!=f[l].getAttribute("value")&&+f[l].setAttribute("value","["+f[l].getAttribute("value").length+"]"),null!=f[l].getAttribute("xmlValue")&&f[l].setAttribute("xmlValue","["+f[l].getAttribute("xmlValue").length+"]"),null!=f[l].getAttribute("style")&&f[l].setAttribute("style","["+f[l].getAttribute("style").length+"]"),null!=f[l].parentNode&&"root"!=f[l].parentNode.nodeName&&null!=f[l].parentNode.parentNode&&(f[l].setAttribute("id",f[l].parentNode.getAttribute("id")),f[l].parentNode.parentNode.replaceChild(f[l],f[l].parentNode));return c};+EditorUi.prototype.synchronizeCurrentFile=function(c){var f=this.getCurrentFile();null!=f&&(f.savingFile?this.handleError({message:mxResources.get("busy")}):!c&&f.invalidChecksum?f.handleFileError(null,!0):this.spinner.spin(document.body,mxResources.get("updatingDocument"))&&(f.clearAutosave(),this.clearStatus(),c?f.reloadFile(mxUtils.bind(this,function(){this.spinner.stop();f.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(l){this.spinner.stop();f.handleFileError(l,!0)})):+f.synchronizeFile(mxUtils.bind(this,function(){f.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(l){f.handleFileError(l,!0)}))))};EditorUi.prototype.getFileData=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y){x=null!=x?x:!0;A=null!=A?A:!1;V=null!=V?V:!Editor.defaultCompressed;var aa=this.editor.graph;if((f||!c&&null!=Q&&/(\.svg)$/i.test(Q.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var ja=aa.getGlobalVariable;aa=this.createTemporaryGraph(aa.getStylesheet());aa.setBackgroundImage=+this.editor.graph.setBackgroundImage;aa.background=this.editor.graph.background;var ka=null!=this.pages?this.pages[0]:null;null==ka||this.currentPage==ka?aa.setBackgroundImage(this.editor.graph.backgroundImage):null!=ka.viewState&&null!=ka.viewState&&aa.setBackgroundImage(ka.viewState.backgroundImage);aa.getGlobalVariable=function(ua){return"page"==ua&&null!=ka?ka.getName():"pagenumber"==ua?1:ja.apply(this,arguments)};document.body.appendChild(aa.container);null!=ka&&aa.model.setRoot(ka.root)}E=null!=+E?E:this.getXmlFileData(x,A,V,K);Q=null!=Q?Q:this.getCurrentFile();c=this.createFileData(E,aa,Q,window.location.href,c,f,l,q,x,J,V,fa,Y);aa!=this.editor.graph&&aa.container.parentNode.removeChild(aa.container);return c};EditorUi.prototype.getHtml=function(c,f,l,q,x,A){A=null!=A?A:!0;var E=null,J=EditorUi.drawHost+"/js/embed-static.min.js";if(null!=f){E=A?f.getGraphBounds():f.getBoundingBox(f.getSelectionCells());var Q=f.view.scale;A=Math.floor(E.x/Q-f.view.translate.x);Q=Math.floor(E.y/Q-f.view.translate.y);+E=f.background;null==x&&(f=this.getBasenames().join(";"),0<f.length&&(J=EditorUi.drawHost+"/embed.js?s="+f));c.setAttribute("x0",A);c.setAttribute("y0",Q)}null!=c&&(c.setAttribute("pan","1"),c.setAttribute("zoom","1"),c.setAttribute("resize","0"),c.setAttribute("fit","0"),c.setAttribute("border","20"),c.setAttribute("links","1"),null!=q&&c.setAttribute("edit",q));null!=x&&(x=x.replace(/&/g,"&"));c=null!=c?Graph.zapGremlins(mxUtils.getXml(c)):"";q=Graph.compress(c);Graph.decompress(q)!=c&&(q=encodeURIComponent(c));+return(null==x?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=x?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==x?null!=l?"<title>"+mxUtils.htmlEntities(l)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=x?'<meta http-equiv="refresh" content="0;URL=\''+x+"'\"/>\n":"")+"</head>\n<body"+(null==x&&null!=E&&E!=mxConstants.NONE?' style="background-color:'+E+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'++q+"</div>\n</div>\n"+(null==x?'<script type="text/javascript" src="'+J+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+x+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(c,f,l,q,x){f=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=x&&(x=x.replace(/&/g,"&"));c={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,+resize:!0,xml:Graph.zapGremlins(c),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(c.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==x?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=x?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==x?null!=l?"<title>"+mxUtils.htmlEntities(l)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=x?'<meta http-equiv="refresh" content="0;URL=\''+x+"'\"/>\n":"")+'<meta charset="utf-8"/>\n</head>\n<body>\n<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(c))+'"></div>\n'+(null==x?'<script type="text/javascript" src="'+f+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+x+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.updateFileVars=function(){var c=null!=this.fileNode?this.fileNode.getAttribute("vars"):null;if(c!==this.fileVarsStr&&(this.fileVarsStr=c,this.fileVars=null,null!=c&&0<c.length))try{this.fileVars=JSON.parse(c)}catch(f){}};EditorUi.prototype.setFileData=function(c,f){c=this.validateFileData(c);this.pages=this.fileNode=this.currentPage=null;f=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var l=Editor.extractParserError(f,mxResources.get("invalidOrMissingFile"));if(l)throw EditorUi.debug("EditorUi.setFileData ParserError",[this],"data",[c],"node",[f],"cause",[l]),Error(mxResources.get("notADiagramFile")+" ("+l+")");c=null!=f?this.editor.extractGraphModel(f,!0):null;null!=c&&(f=c);if(null!=f&&"mxfile"==f.nodeName&&(c=f.getElementsByTagName("diagram"),l={},0<c.length)){var q=this.getHashObject(),x=null;this.fileNode=f;this.editor.graph.defaultExportLinkTarget=f.getAttribute("linkTarget");this.pages=[];for(var A=0;A<c.length;A++){null==c[A].getAttribute("id")&&c[A].setAttribute("id",A);f=new DiagramPage(c[A]);null==f.getName()&&@@ -4205,21 +4207,21 @@ new DiagramPage(f.ownerDocument.createElement("diagram")),this.currentPage.setNaV=Q.getChildren(Q.root);for(A=0;A<V.length;A++){var K=V[A];Q.setVisible(K,J[K.id]||!1)}}catch(fa){}};EditorUi.prototype.fileStats=function(c,f){try{if(null!=c&&5E5<c.getSize()&&""!==c.getHash()&&"draw.io"==this.getServiceName()){var l=f.getElementsByTagName("diagram");f={};f.modified=c.getLastModifiedDate();f.fileMode=c.getMode();f.fileSize=c.getSize();f.fileHash=c.getHash();f.pages=l.length;f.redundantStencils=0;f.redundantImages=0;f.redundantSize=0;f.stencils=0;f.images=0;for(var q=f.cells=0;q<l.length;q++){var x=l[q].getElementsByTagName("mxCell");f.cells+=x.length;for(var A={},E=0;E<x.length;E++){var J=x[E].getAttribute("style");if(null!=J)for(var Q=J.split(";"),V=0;V<Q.length;V++){var K=Q[V];if(K.startsWith("image=data:")||K.startsWith("shape=stencil("))null==A[K]?A[K]=1:A[K]++}}for(var fa in A){var Y=A[fa];fa.startsWith("shape=stencil(")?f.stencils+=Y:f.images+=Y;1<Y&&(f.redundantSize+=fa.length*(Y-1),fa.startsWith("shape=stencil(")?f.redundantStencils+=Y-1:f.redundantImages+=Y-1)}}EditorUi.logEvent({category:c.getMode().toUpperCase()+"-FILE-STATS-"+c.getHash(),action:"size_"+c.getSize(),label:JSON.stringify(f)})}}catch(aa){}};EditorUi.prototype.getBaseFilename=function(c){var f=this.getCurrentFile();f=null!=f&&null!=f.getTitle()?f.getTitle():this.defaultFilename;if(/(\.xml)$/i.test(f)||/(\.html)$/i.test(f)||/(\.svg)$/i.test(f)||/(\.png)$/i.test(f))f=f.substring(0,f.lastIndexOf("."));/(\.drawio)$/i.test(f)&&(f=f.substring(0,f.lastIndexOf(".")));!c&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&-0<this.currentPage.getName().length&&(f=f+"-"+this.currentPage.getName());return f};EditorUi.prototype.downloadFile=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka,ua,Ca){try{q=null!=q?q:this.editor.graph.isSelectionEmpty();var ia=this.getBaseFilename(!x),k=ia+("xml"==c||"pdf"==c&&K?".drawio":"")+"."+c;if("xml"==c){var v=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,q,x,null,null,null,f);this.saveData(k,c,v,"text/xml")}else if("html"==c)v=this.getHtml2(this.getFileData(!0),this.editor.graph,-ia),this.saveData(k,c,v,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))if("xmlpng"==c?k=ia+".png":"jpeg"==c&&(k=ia+".jpg"),"1"==urlParams.embed&&"json"==urlParams.proto&&this.embedExportProtocol){var H=this.embedMessageSource||window.opener||window.parent;this.spinner.spin(document.body,mxResources.get("exporting"))&&this.createDownloadRequest(k,c,q,"1",E,x,J,Q,V,K,fa,void 0,void 0,!A,Y,aa,ja,ka,ua,Ca).send(mxUtils.bind(this,function(X){this.spinner.stop();+0<this.currentPage.getName().length&&(f=f+"-"+this.currentPage.getName());return f};EditorUi.prototype.downloadFile=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka,ua,Ca){try{q=null!=q?q:this.editor.graph.isSelectionEmpty();var ia=this.getBaseFilename(!x),k=ia+("xml"==c||"pdf"==c&&K?".drawio":"")+"."+c;if("xml"==c){var u=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,q,x,null,null,null,f);this.saveData(k,c,u,"text/xml")}else if("html"==c)u=this.getHtml2(this.getFileData(!0),this.editor.graph,+ia),this.saveData(k,c,u,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))if("xmlpng"==c?k=ia+".png":"jpeg"==c&&(k=ia+".jpg"),"1"==urlParams.embed&&"json"==urlParams.proto&&this.embedExportProtocol){var H=this.embedMessageSource||window.opener||window.parent;this.spinner.spin(document.body,mxResources.get("exporting"))&&this.createDownloadRequest(k,c,q,"1",E,x,J,Q,V,K,fa,void 0,void 0,!A,Y,aa,ja,ka,ua,Ca).send(mxUtils.bind(this,function(X){this.spinner.stop();if(200<=X.getStatus()&&299>=X.getStatus()){var ea=this.createLoadMessage("export");ea.format=c;ea.filename=k;ea.data="data:application/pdf;base64,"+X.getText();ea.xml=this.getFileData(!0);H.postMessage(JSON.stringify(ea),"*")}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(){this.spinner.stop();this.handleError({message:mxResources.get("errorSavingFile")})}))}else this.saveRequest(k,c,mxUtils.bind(this,function(X,ea){try{return this.createDownloadRequest(X,c,q,ea,E,x,J,Q,V,K,fa,void 0,void 0,!A,Y,aa,ja,ka,ua,Ca)}catch(oa){this.handleError(oa)}}));else{var P=null,T=mxUtils.bind(this,function(X){X.length<=MAX_REQUEST_SIZE?this.saveData(k,"svg",X,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(P)}))});if("svg"==c){var W=this.editor.graph.background;if(E||W==mxConstants.NONE)W=null;var ha=this.editor.graph.getSvg(W,null,null,null,null,q);l&&this.editor.graph.addSvgShadow(ha);-this.editor.convertImages(ha,mxUtils.bind(this,mxUtils.bind(this,function(X){this.spinner.stop();T(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(X))})))}else k=ia+".svg",P=this.getFileData(!1,!0,null,mxUtils.bind(this,function(X){this.spinner.stop();T(X)}),q)}}catch(X){this.handleError(X)}};EditorUi.prototype.createDownloadRequest=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka,ua,Ca,ia,k){c=this.downloadRequestBuilder(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka,ua,Ca,ia,k);f="";for(var v in c)l=-c[v],null!=l&&(f+=v+"="+encodeURIComponent(l)+"&");return new mxXmlRequest(EXPORT_URL,f)};EditorUi.prototype.downloadRequestBuilder=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka,ua,Ca,ia,k){var v=this.editor.graph,H=v.getGraphBounds();l=this.getFileData(!0,null,null,null,l,0==A?!1:"xmlpng"!=f,null,null,null,!Editor.defaultCompressed,"pdf"==f);var P=null,T=null,W=null;if(!EditorUi.isElectronApp&&(H.width*H.height>MAX_AREA||l.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};-V=V?"1":"0";"pdf"==f&&(null!=K?(P=K.from,T=K.to):0==A&&(W="1"));"xmlpng"==f&&(V="1",f="png");if(("xmlpng"==f||"svg"==f)&&null!=this.pages&&null!=this.currentPage)for(A=0;A<this.pages.length;A++)if(this.pages[A]==this.currentPage){P=A;break}A=v.background;"png"!=f&&"pdf"!=f&&"svg"!=f||!x?x||null!=A&&A!=mxConstants.NONE||(A="#ffffff"):A=mxConstants.NONE;x={globalVars:v.getExportVariables()};null!=K&&null!=K.from&&(x.globalVars.pagenumber=K.from+1);Q&&(x.grid={size:v.gridSize,steps:v.view.gridSteps,-color:Editor.isDarkMode()&&"pdf"==f?mxGraphView.prototype.defaultGridColor:v.view.gridColor});Graph.translateDiagram&&(x.diagramLanguage=Graph.diagramLanguage);Q=this.getHiddenTagsMap();null!=Q&&(x.hiddenTags=Q);return{format:f,from:P,to:T,allPages:W,bg:null!=A?A:mxConstants.NONE,base64:q,embedXml:V,xml:l,filename:null!=c?c:"",extras:JSON.stringify(x),scale:E,border:J,pageMargin:ja,w:fa&&isFinite(fa)?fa:null,h:Y&&isFinite(Y)?Y:null,crop:null!=aa&&aa?"1":"0",fit:null!=ka&&ka?"1":"0",shadows:null!=+this.editor.convertImages(ha,mxUtils.bind(this,mxUtils.bind(this,function(X){this.spinner.stop();T(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(X))})))}else k=ia+".svg",P=this.getFileData(!1,!0,null,mxUtils.bind(this,function(X){this.spinner.stop();T(X)}),q)}}catch(X){this.handleError(X)}};EditorUi.prototype.createDownloadRequest=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka,ua,Ca,ia,k){c=this.downloadRequestBuilder(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka,ua,Ca,ia,k);f="";for(var u in c)l=+c[u],null!=l&&(f+=u+"="+encodeURIComponent(l)+"&");return new mxXmlRequest(EXPORT_URL,f)};EditorUi.prototype.downloadRequestBuilder=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka,ua,Ca,ia,k){var u=this.editor.graph,H=u.getGraphBounds();l=this.getFileData(!0,null,null,null,l,0==A?!1:"xmlpng"!=f,null,null,null,!Editor.defaultCompressed,"pdf"==f);var P=null,T=null,W=null;if(!EditorUi.isElectronApp&&(H.width*H.height>MAX_AREA||l.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};+V=V?"1":"0";"pdf"==f&&(null!=K?(P=K.from,T=K.to):0==A&&(W="1"));"xmlpng"==f&&(V="1",f="png");if(("xmlpng"==f||"svg"==f)&&null!=this.pages&&null!=this.currentPage)for(A=0;A<this.pages.length;A++)if(this.pages[A]==this.currentPage){P=A;break}A=u.background;"png"!=f&&"pdf"!=f&&"svg"!=f||!x?x||null!=A&&A!=mxConstants.NONE||(A="#ffffff"):A=mxConstants.NONE;x={globalVars:u.getExportVariables()};null!=K&&null!=K.from&&(x.globalVars.pagenumber=K.from+1);Q&&(x.grid={size:u.gridSize,steps:u.view.gridSteps,+color:Editor.isDarkMode()&&"pdf"==f?mxGraphView.prototype.defaultGridColor:u.view.gridColor});Graph.translateDiagram&&(x.diagramLanguage=Graph.diagramLanguage);Q=this.getHiddenTagsMap();null!=Q&&(x.hiddenTags=Q);return{format:f,from:P,to:T,allPages:W,bg:null!=A?A:mxConstants.NONE,base64:q,embedXml:V,xml:l,filename:null!=c?c:"",extras:JSON.stringify(x),scale:E,border:J,pageMargin:ja,w:fa&&isFinite(fa)?fa:null,h:Y&&isFinite(Y)?Y:null,crop:null!=aa&&aa?"1":"0",fit:null!=ka&&ka?"1":"0",shadows:null!=ia&&ia?"1":"0",sheetsAcross:ua,sheetsDown:Ca,icons:null!=k&&k?"1":"0"}};EditorUi.prototype.getHiddenTagsMap=function(){var c=this.editor.graph,f={},l=!1;if(null!=this.pages)for(var q=0;q<this.pages.length;q++){var x=this.pages[q],A=x==this.currentPage?c.hiddenTags:null!=x.viewState?x.viewState.hiddenTags:null;null!=A&&0<A.length&&(f[x.getId()]=A,l=!0)}else null!=c.hiddenTags&&0<c.hiddenTags.length&&(f[0]=c.hiddenTags,l=!0);return l?f:null};EditorUi.prototype.setMode=function(c,f){this.mode=c};EditorUi.prototype.getDiagramId=function(){var c=window.location.hash;null!=c&&0<c.length&&(c=c.substring(1));if(null!=c&&1<c.length){var f=c.indexOf("#");0<=f&&(c=c.substring(0,f))}return c};EditorUi.prototype.getHashObject=function(){var c=window.location.hash,f={};if(null!=c&&0<c.length){var l=c.lastIndexOf("#");if(0<l){c=decodeURIComponent(c.substring(l+1));try{f=JSON.parse(c)}catch(q){}}}return f};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&null!=this.currentPage&&""!=this.currentFile.getHash()){var c=this.getHashObject();c.pageId=this.currentPage.getId();this.setHashObject(c)}else this.setHashObject(null)};EditorUi.prototype.setHashObject=function(c){if(Editor.enableHashObjects){var f=window.location.hash;if(null==f||""==f)f="#";var l=f.lastIndexOf("#");0<l&&(f=f.substring(0,l));try{null==c||mxUtils.isEmptyObject(c)||(f=f+"#"+encodeURIComponent(JSON.stringify(c)))}catch(q){}0<l&&0<f.lastIndexOf("#")?window.location.hash=f:window.location.replace(f)}};EditorUi.prototype.loadDescriptor=function(c,f,l){var q=window.location.hash,x=mxUtils.bind(this,function(E){var J=null!=c.data?c.data:"";null!=E&&0<E.length&&(0<J.length&&(J+="\n"),J+=E);E=new LocalFile(this,"csv"!=c.format&&0<J.length?J:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);E.getHash=function(){return q};this.fileLoaded(E);"csv"==c.format&&this.importCsv(J,mxUtils.bind(this,function(Y){this.editor.undoManager.clear();this.editor.setModified(!1);this.clearStatus()}));if(null!=c.update){var Q=null!=c.interval?parseInt(c.interval):6E4,V=null,K=mxUtils.bind(this,function(){var Y=this.currentPage;mxUtils.post(c.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(aa){Y===this.currentPage&&(200<=aa.getStatus()&&300>=aa.getStatus()?(this.updateDiagram(aa.getText()),fa()):this.handleError({message:mxResources.get("error")+" "+aa.getStatus()}))}),mxUtils.bind(this,function(aa){this.handleError(aa)}))}),fa=mxUtils.bind(this,function(){window.clearTimeout(V);-V=window.setTimeout(K,Q)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){fa();K()}));fa();K()}null!=f&&f()});if(null!=c.url&&0<c.url.length){var A=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(A,mxUtils.bind(this,function(E){x(E)}),mxUtils.bind(this,function(E){null!=l&&l(E)}))}else x("")};EditorUi.prototype.updateDiagram=function(c){function f(k){var v=new mxCellOverlay(k.image||x.warningImage,k.tooltip,k.align,k.valign,k.offset);v.addListener(mxEvent.CLICK,function(H,-P){q.alert(k.tooltip)});return v}var l=null,q=this;if(null!=c&&0<c.length&&(l=mxUtils.parseXml(c),c=null!=l?l.documentElement:null,null!=c&&"updates"==c.nodeName)){var x=this.editor.graph,A=x.getModel();A.beginUpdate();var E=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var J=A.getCell(c.getAttribute("id"));if(null!=J){try{var Q=c.getAttribute("value");if(null!=Q){var V=mxUtils.parseXml(Q).documentElement;if(null!=V)if("1"==V.getAttribute("replace-value"))A.setValue(J,V);else for(var K=+V=window.setTimeout(K,Q)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){fa();K()}));fa();K()}null!=f&&f()});if(null!=c.url&&0<c.url.length){var A=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(A,mxUtils.bind(this,function(E){x(E)}),mxUtils.bind(this,function(E){null!=l&&l(E)}))}else x("")};EditorUi.prototype.updateDiagram=function(c){function f(k){var u=new mxCellOverlay(k.image||x.warningImage,k.tooltip,k.align,k.valign,k.offset);u.addListener(mxEvent.CLICK,function(H,+P){q.alert(k.tooltip)});return u}var l=null,q=this;if(null!=c&&0<c.length&&(l=mxUtils.parseXml(c),c=null!=l?l.documentElement:null,null!=c&&"updates"==c.nodeName)){var x=this.editor.graph,A=x.getModel();A.beginUpdate();var E=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var J=A.getCell(c.getAttribute("id"));if(null!=J){try{var Q=c.getAttribute("value");if(null!=Q){var V=mxUtils.parseXml(Q).documentElement;if(null!=V)if("1"==V.getAttribute("replace-value"))A.setValue(J,V);else for(var K=V.attributes,fa=0;fa<K.length;fa++)x.setAttributeForCell(J,K[fa].nodeName,0<K[fa].nodeValue.length?K[fa].nodeValue:null)}}catch(k){null!=window.console&&console.log("Error in value for "+J.id+": "+k)}try{var Y=c.getAttribute("style");null!=Y&&x.model.setStyle(J,Y)}catch(k){null!=window.console&&console.log("Error in style for "+J.id+": "+k)}try{var aa=c.getAttribute("icon");if(null!=aa){var ja=0<aa.length?JSON.parse(aa):null;null!=ja&&ja.append||x.removeCellOverlays(J);null!=ja&&x.addCellOverlay(J,f(ja))}}catch(k){null!=window.console&&console.log("Error in icon for "+J.id+": "+k)}try{var ka=c.getAttribute("geometry");if(null!=ka){ka=JSON.parse(ka);var ua=x.getCellGeometry(J);if(null!=ua){ua=ua.clone();for(key in ka){var Ca=parseFloat(ka[key]);"dx"==key?ua.x+=Ca:"dy"==key?ua.y+=Ca:"dw"==key?ua.width+=Ca:"dh"==key?ua.height+=Ca:ua[key]=parseFloat(ka[key])}x.model.setGeometry(J,ua)}}}catch(k){null!=window.console&&console.log("Error in icon for "+J.id+": "+k)}}}else if("model"==c.nodeName){for(var ia=c.firstChild;null!=ia&&ia.nodeType!=mxConstants.NODETYPE_ELEMENT;)ia=ia.nextSibling;null!=ia&&(new mxCodec(c.firstChild)).decode(ia,A)}else if("view"==c.nodeName){if(c.hasAttribute("scale")&&(x.view.scale=parseFloat(c.getAttribute("scale"))),c.hasAttribute("dx")||c.hasAttribute("dy"))x.view.translate=new mxPoint(parseFloat(c.getAttribute("dx")||0),parseFloat(c.getAttribute("dy")||0))}else"fit"==c.nodeName&&(E=c.hasAttribute("max-scale")?parseFloat(c.getAttribute("max-scale")):1);c=c.nextSibling}}finally{A.endUpdate()}null!=@@ -4248,16 +4250,16 @@ null==l&&(l=c.getTitle(),null!=l&&/(\.xml)$/i.test(l)&&(l=l.substring(0,l.lastInq.style.position="relative";var fa=document.createElement("img");fa.className="geLibraryButton";fa.setAttribute("src",Editor.crossImage);fa.setAttribute("title",mxResources.get("close"));var Y=null;if(".scratchpad"!=c.title||this.closableScratchpad)K.appendChild(fa),mxEvent.addListener(fa,"click",mxUtils.bind(this,function(ia){if(!mxEvent.isConsumed(ia)){var k=mxUtils.bind(this,function(){null!=A&&mxUtils.remove(A,this.openLibraries);this.closeLibrary(c)});null!=Y?this.confirm(mxResources.get("allChangesLost"),null,k,mxResources.get("cancel"),mxResources.get("discardChanges")):k();mxEvent.consume(ia)}}));if(c.isEditable()){var aa=this.editor.graph,ja=null;l=mxUtils.bind(this,function(ia){this.showLibraryDialog(c.getTitle(),V,f,c,c.getMode());mxEvent.consume(ia)});var ka=mxUtils.bind(this,function(ia){c.setModified(!0);c.isAutosave()?(null!=ja&&null!=ja.parentNode&&ja.parentNode.removeChild(ja),ja=fa.cloneNode(!1),ja.setAttribute("src",Editor.spinImage),ja.setAttribute("title",mxResources.get("saving")),ja.style.cursor="default",ja.style.marginRight="2px",ja.style.marginTop="-2px",K.insertBefore(ja,K.firstChild),this.saveLibrary(c.getTitle(),f,c,c.getMode(),!0,!0,function(){null!=ja&&null!=ja.parentNode&&ja.parentNode.removeChild(ja)})):null==Y&&(Y=fa.cloneNode(!1),Y.setAttribute("src",Editor.saveImage),Y.setAttribute("title",mxResources.get("save")),K.insertBefore(Y,K.firstChild),mxEvent.addListener(Y,"click",mxUtils.bind(this,function(k){this.saveLibrary(c.getTitle(),f,c,c.getMode(),c.constructor==-LocalLibrary,!0,function(){null==Y||c.isModified()||(Y.parentNode.removeChild(Y),Y=null)});mxEvent.consume(k)})))}),ua=mxUtils.bind(this,function(ia,k,v,H){ia=aa.cloneCells(mxUtils.sortCells(aa.model.getTopmostCells(ia)));for(var P=0;P<ia.length;P++){var T=aa.getCellGeometry(ia[P]);null!=T&&T.translate(-k.x,-k.y)}V.appendChild(this.sidebar.createVertexTemplateFromCells(ia,k.width,k.height,H||"",!0,null,!1));ia=mxUtils.getXml(this.editor.graph.encodeCells(ia));Editor.defaultCompressed&&(ia=Graph.compress(ia));-k={xml:ia,w:k.width,h:k.height};null!=H&&(k.title=H);f.push(k);ka(v);null!=J&&null!=J.parentNode&&0<f.length&&(J.parentNode.removeChild(J),J=null)}),Ca=mxUtils.bind(this,function(ia){if(aa.isSelectionEmpty())aa.getRubberband().isActive()?(aa.getRubberband().execute(ia),aa.getRubberband().reset()):null!=ia&&null!=mxEvent.getSource(ia)&&mxEvent.getSource(ia).classList.contains("geLibraryButton")&&this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var k=-aa.getSelectionCells(),v=aa.view.getBounds(k);if(null!=v&&0<v.width&&0<v.height){var H=aa.view.scale;v.x/=H;v.y/=H;v.width/=H;v.height/=H;v.x-=aa.view.translate.x;v.y-=aa.view.translate.y;ua(k,v)}else this.showError(mxResources.get("error"),mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(ia)});mxEvent.addGestureListeners(V,function(){},mxUtils.bind(this,function(ia){aa.isMouseDown&&null!=aa.panningManager&&null!=aa.graphHandler.first&&(aa.graphHandler.suspend(),null!=aa.graphHandler.hint&&+LocalLibrary,!0,function(){null==Y||c.isModified()||(Y.parentNode.removeChild(Y),Y=null)});mxEvent.consume(k)})))}),ua=mxUtils.bind(this,function(ia,k,u,H){ia=aa.cloneCells(mxUtils.sortCells(aa.model.getTopmostCells(ia)));for(var P=0;P<ia.length;P++){var T=aa.getCellGeometry(ia[P]);null!=T&&T.translate(-k.x,-k.y)}V.appendChild(this.sidebar.createVertexTemplateFromCells(ia,k.width,k.height,H||"",!0,null,!1));ia=mxUtils.getXml(this.editor.graph.encodeCells(ia));Editor.defaultCompressed&&(ia=Graph.compress(ia));+k={xml:ia,w:k.width,h:k.height};null!=H&&(k.title=H);f.push(k);ka(u);null!=J&&null!=J.parentNode&&0<f.length&&(J.parentNode.removeChild(J),J=null)}),Ca=mxUtils.bind(this,function(ia){if(aa.isSelectionEmpty())aa.getRubberband().isActive()?(aa.getRubberband().execute(ia),aa.getRubberband().reset()):null!=ia&&null!=mxEvent.getSource(ia)&&mxEvent.getSource(ia).classList.contains("geLibraryButton")&&this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var k=+aa.getSelectionCells(),u=aa.view.getBounds(k);if(null!=u&&0<u.width&&0<u.height){var H=aa.view.scale;u.x/=H;u.y/=H;u.width/=H;u.height/=H;u.x-=aa.view.translate.x;u.y-=aa.view.translate.y;ua(k,u)}else this.showError(mxResources.get("error"),mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(ia)});mxEvent.addGestureListeners(V,function(){},mxUtils.bind(this,function(ia){aa.isMouseDown&&null!=aa.panningManager&&null!=aa.graphHandler.first&&(aa.graphHandler.suspend(),null!=aa.graphHandler.hint&&(aa.graphHandler.hint.style.visibility="hidden"),V.style.backgroundColor="light-dark(#fefefe, #000000)",V.style.cursor="copy",aa.panningManager.stop(),aa.autoScroll=!1,mxEvent.consume(ia))}),mxUtils.bind(this,function(ia){aa.isMouseDown&&null!=aa.panningManager&&null!=aa.graphHandler&&(V.style.backgroundColor="",V.style.cursor="default",this.sidebar.showTooltips=!0,aa.panningManager.stop(),aa.graphHandler.reset(),aa.isMouseDown=!1,aa.autoScroll=!0,Ca(ia),mxEvent.consume(ia))}));mxEvent.addListener(V,"mouseleave",mxUtils.bind(this,function(ia){aa.isMouseDown&&null!=aa.graphHandler.first&&(aa.graphHandler.resume(),null!=aa.graphHandler.hint&&(aa.graphHandler.hint.style.visibility="visible"),V.style.backgroundColor="",V.style.cursor="",aa.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(V,"dragover",mxUtils.bind(this,function(ia){V.style.backgroundColor="light-dark(#fefefe, #000000)";ia.dataTransfer.dropEffect="copy";V.style.cursor="copy";this.sidebar.hideTooltip();ia.stopPropagation();-ia.preventDefault()})),mxEvent.addListener(V,"drop",mxUtils.bind(this,function(ia){V.style.cursor="";V.style.backgroundColor="";0<ia.dataTransfer.files.length&&this.importFiles(ia.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(k,v,H,P,T,W,ha,X,ea){if(null!=k&&"image/"==v.substring(0,6))k="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(k),k=[new mxCell("",new mxGeometry(0,0,T,W),k)],k[0].vertex=!0,ua(k,new mxRectangle(0,+ia.preventDefault()})),mxEvent.addListener(V,"drop",mxUtils.bind(this,function(ia){V.style.cursor="";V.style.backgroundColor="";0<ia.dataTransfer.files.length&&this.importFiles(ia.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(k,u,H,P,T,W,ha,X,ea){if(null!=k&&"image/"==u.substring(0,6))k="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(k),k=[new mxCell("",new mxGeometry(0,0,T,W),k)],k[0].vertex=!0,ua(k,new mxRectangle(0,0,T,W),ia,mxEvent.isAltDown(ia)?null:ha.substring(0,ha.lastIndexOf(".")).replace(/_/g," ")),null!=J&&null!=J.parentNode&&0<f.length&&(J.parentNode.removeChild(J),J=null);else{var oa=!1,la=mxUtils.bind(this,function(ca,ta){null!=ca&&"application/pdf"==ta&&(ta=Editor.extractGraphModelFromPdf(ca),null!=ta&&0<ta.length&&(ca=ta));if(null!=ca)if(ca=mxUtils.parseXml(ca),"mxlibrary"==ca.documentElement.nodeName)try{var xa=JSON.parse(mxUtils.getTextContent(ca.documentElement));Q(xa,V);f=f.concat(xa);ka(ia);this.spinner.stop();oa=!0}catch(ra){}else if("mxfile"==ca.documentElement.nodeName)try{var qa=ca.documentElement.getElementsByTagName("diagram");for(xa=0;xa<qa.length;xa++){var Ba=this.stringToCells(Editor.getDiagramNodeXml(qa[xa])),na=this.editor.graph.getBoundingBoxFromGeometry(Ba);null!=na&&ua(Ba,new mxRectangle(0,0,na.width,na.height),ia)}oa=!0}catch(ra){null!=window.console&&console.log("error in drop handler:",ra)}oa||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=J&&null!=J.parentNode&&0<f.length&&(J.parentNode.removeChild(J),J=null)});null!=ea&&null!=ha&&EditorUi.isVisioFilename(ha)?this.importVisio(ea,function(ca){la(ca,"text/xml")},null,ha):this.isGliffyData(k,ha)&&null!=ea?this.importGliffy(k,mxUtils.bind(this,function(ca){this.spinner.stop();la(ca,"text/xml")}),mxUtils.bind(this,function(ca){this.spinner.stop();this.handleError({message:mxResources.get(null!=ca&&413==ca.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile"))}),-ha):la(k,v)}}));ia.stopPropagation();ia.preventDefault()})),mxEvent.addListener(V,"dragleave",function(ia){V.style.cursor="";V.style.backgroundColor="";ia.stopPropagation();ia.preventDefault()}));fa=fa.cloneNode(!1);fa.setAttribute("src",Editor.editImage);fa.setAttribute("title",mxResources.get("edit"));K.insertBefore(fa,K.firstChild);mxEvent.addListener(fa,"click",l);l=fa.cloneNode(!1);l.setAttribute("src",Editor.plusImage);l.setAttribute("title",mxResources.get("add"));K.insertBefore(l,K.firstChild);+ha):la(k,u)}}));ia.stopPropagation();ia.preventDefault()})),mxEvent.addListener(V,"dragleave",function(ia){V.style.cursor="";V.style.backgroundColor="";ia.stopPropagation();ia.preventDefault()}));fa=fa.cloneNode(!1);fa.setAttribute("src",Editor.editImage);fa.setAttribute("title",mxResources.get("edit"));K.insertBefore(fa,K.firstChild);mxEvent.addListener(fa,"click",l);l=fa.cloneNode(!1);l.setAttribute("src",Editor.plusImage);l.setAttribute("title",mxResources.get("add"));K.insertBefore(l,K.firstChild);mxEvent.addListener(l,"click",Ca);".scratchpad"==c.title&&(this.addSelectionToScratchpad=Ca);this.isOffline()||".scratchpad"!=c.title||null==EditorUi.scratchpadHelpLink||(l=this.createHelpIcon(EditorUi.scratchpadHelpLink,!0),l.className="geLibraryButton",K.insertBefore(l,K.firstChild))}q.appendChild(K);this.editor.fireEvent(new mxEventObject("libraryLoaded"))}};EditorUi.prototype.addLibraryEntries=function(c,f){for(var l=0;l<c.length;l++)try{var q=c[l],x=q.data;if(null!=x){x="data:"==x.substring(0,5)?this.convertDataUri(x):x;var A="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==q.aspect&&(A+="aspect=fixed;");A=A+"image="+x+";";null!=q.style&&(A+=q.style);f.appendChild(this.sidebar.createVertexTemplate(A,q.w,q.h,"",q.title||"",!1,null,!0))}else if(null!=q.xml){var E=this.stringToCells("<"==q.xml.charAt(0)?q.xml:Graph.decompress(q.xml)),J=0==E.length?mxResources.get("drawingEmpty"):null!=q.title?q.title:"";f.appendChild(this.sidebar.createVertexTemplateFromCells(E,q.w,q.h,J,!0,null,!0))}}catch(Q){J=null!=Q.message?mxResources.get("error")+": "+Q.message:String(Q),A=this.sidebar.createVertexTemplateFromCells(null,q.w,q.h,J,!0,null,!0),f.appendChild(A)}};EditorUi.prototype.getResource=function(c){return null!=c?c[mxLanguage]||c.main:null};"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"sketch"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(Editor.configurationKey=".sketch-configuration",@@ -4266,7 +4268,7 @@ else{if(0<J.length){var Q=JSON.parse(J);localStorage.setItem(f,JSON.stringify(Q)null,X,mxResources.get("cancel"),mxResources.get("discardChanges")):X()}function A(){ka=!0;V.hideDialog()}function E(X,ea){var oa=document.createElement("div");oa.style.padding="4px 16px";oa.style.cursor="pointer";oa.style.fontSize="13px";oa.style.borderBottom=ea?"2px solid #29b6f2":"2px solid transparent";oa.style.fontWeight=ea?"bold":"normal";oa.style.color=ea?"":"#888";oa.style.userSelect="none";mxUtils.write(oa,X);return oa}function J(X,ea){X.style.borderBottomColor=ea?"#29b6f2":"transparent";X.style.fontWeight=ea?"bold":"normal";X.style.color=ea?"":"#888"}function Q(X){if(X!==aa){if("json"===aa)try{var ea=JSON.parse(T.value);Y=ea;H.setConfig(ea)}catch(oa){}else"json"===X&&null!=Y&&(T.value=JSON.stringify(Y,null,2));k.style.display="editor"===X?"":"none";P.style.display="json"===X?"":"none";J(Ca,"editor"===X);J(ia,"json"===X);"json"===X&&T.focus();aa=X}}var V=this,K=localStorage.getItem(f),fa={};try{null!=K&&(fa=JSON.parse(K))}catch(X){}var Y=fa,aa="editor",ja=!1,ka=!1;c=document.createElement("div");c.style.position="absolute";c.style.top="20px";c.style.bottom="20px";c.style.left="20px";c.style.right="20px";var ua=document.createElement("div");ua.style.position="absolute";ua.style.left="0";ua.style.right="0";ua.style.top="0";ua.style.height="28px";ua.style.display="flex";ua.style.alignItems="end";ua.style.borderBottom="1px solid #d0d0d0";var Ca=E(mxResources.get("editor"),!0),ia=E(mxResources.get("formatJson"),!1);ua.appendChild(Ca);ua.appendChild(ia);c.appendChild(ua);var k=document.createElement("div");-k.style.position="absolute";k.style.left="0";k.style.right="0";k.style.top="30px";k.style.bottom="50px";ua={};try{var v=V.editor.graph;null!=v.currentVertexStyle&&(ua.currentVertexStyle=v.currentVertexStyle);null!=v.currentEdgeStyle&&(ua.currentEdgeStyle=v.currentEdgeStyle)}catch(X){}var H=DrawioConfigEditor.install(k,{initialConfig:fa,editorContext:ua,darkMode:null!=Editor.isDarkMode&&Editor.isDarkMode(),highContrast:V.isHighContrast(),onConfigChanged:function(X){Y=X;ja=!0}}),P=document.createElement("div");+k.style.position="absolute";k.style.left="0";k.style.right="0";k.style.top="30px";k.style.bottom="50px";ua={};try{var u=V.editor.graph;null!=u.currentVertexStyle&&(ua.currentVertexStyle=u.currentVertexStyle);null!=u.currentEdgeStyle&&(ua.currentEdgeStyle=u.currentEdgeStyle)}catch(X){}var H=DrawioConfigEditor.install(k,{initialConfig:fa,editorContext:ua,darkMode:null!=Editor.isDarkMode&&Editor.isDarkMode(),highContrast:V.isHighContrast(),onConfigChanged:function(X){Y=X;ja=!0}}),P=document.createElement("div");P.style.position="absolute";P.style.left="0";P.style.right="0";P.style.top="30px";P.style.bottom="50px";P.style.display="none";var T=document.createElement("textarea");T.setAttribute("wrap","off");T.setAttribute("spellcheck","false");T.setAttribute("autocorrect","off");T.setAttribute("autocomplete","off");T.setAttribute("autocapitalize","off");T.style.resize="none";T.style.outline="none";T.style.boxSizing="border-box";T.style.width="100%";T.style.height="100%";try{T.value=null!=K?JSON.stringify(JSON.parse(K),null,2):""}catch(X){T.value=K||""}mxEvent.addListener(T,"input",function(){ja=!0});P.appendChild(T);c.appendChild(k);c.appendChild(P);mxEvent.addListener(Ca,"click",function(){Q("editor")});mxEvent.addListener(ia,"click",function(){Q("json")});var W=document.createElement("div");W.style.position="absolute";W.style.left="0";W.style.right="0";W.style.bottom="0";W.style.height="46px";W.style.display="flex";W.style.whiteSpace="nowrap";W.style.alignItems="center";W.style.justifyContent="end";W.style.paddingTop="10px";W.style.paddingBottom="10px";W.style.boxSizing="border-box";null==q||V.isOffline()||W.appendChild(V.createHelpIcon(q));if(null!=l)for(q=0;q<l.length;q++)(function(X,ea,oa){X=mxUtils.button(X,function(la){"json"!==aa&&null!=Y&&(T.value=JSON.stringify(Y,null,2));ea(la,T)});null!=oa&&X.setAttribute("title",oa);X.className="geBtn";W.appendChild(X)})(l[q][0],l[q][1],l[q][2]);q=mxUtils.button(mxResources.get("close"),function(){x(A)});q.setAttribute("title","Escape");q.className="geBtn";var ha=mxUtils.button(mxResources.get("apply"),@@ -4276,7 +4278,7 @@ for(var V=!1===navigator.onLine,K=Object.create(null),fa=0;fa<x.length;fa++){var"10px";l.style.left="16px";l.style.right="16px";var q=document.createElement("div");q.style.position="absolute";q.style.left="0";q.style.right="0";q.style.top="0";q.style.bottom="46px";q.style.overflow="auto";l.appendChild(q);var x=[];f.getOfflineLanguages(function(Q){for(var V=Object.create(null),K=0;K<Q.length;K++)V[Q[K]]=!0;Q=[];for(var fa in mxLanguageMap)"i18n"!=fa&&""!=mxLanguageMap[fa]&&Q.push({code:fa,name:mxLanguageMap[fa]});Q.sort(function(aa,ja){return aa.name.localeCompare(ja.name)});K=document.createElement("div");K.style.padding="8px 4px 0 4px";K.style.color="#888";mxUtils.write(K,mxResources.get("offlineLanguages",null,"Languages available offline"));q.appendChild(K);var Y=document.createElement("div");Y.style.display="grid";Y.style.gridTemplateColumns="repeat(auto-fill, minmax(170px, 1fr))";Y.style.gap="2px 16px";Y.style.padding="8px 4px";Y.style.cursor="pointer";for(K=0;K<Q.length;K++)(function(aa,ja){var ka=document.createElement("label");ka.style.display="flex";ka.style.alignItems="center";ka.style.padding="4px";ka.style.overflow="hidden";ka.style.whiteSpace="nowrap";var ua=document.createElement("span");ua.style.display="inline-flex";ua.style.alignItems="center";ua.style.justifyContent="center";ua.style.position="relative";ua.style.width="16px";ua.style.height="16px";ua.style.margin="0 8px 0 0";ua.style.flexShrink="0";var Ca=document.createElement("input");Ca.setAttribute("type","checkbox");Ca.style.margin="0";Ca.checked="en"==aa||1==V[aa];x.push({code:aa,box:Ca,row:ka});-mxEvent.addListener(Ca,"change",function(){Ca.style.display="none";var k=f.createSpinner(null,null,4);k.spin(ua);var v=function(){f.getOfflineLanguages(function(H){k.stop();Ca.style.display="";Ca.checked=0<=mxUtils.indexOf(H,aa);c()});f.updateOfflineLanguages()};Ca.checked?fetch("resources/dia_"+aa+".txt").then(v,v):f.removeOfflineLanguage(aa,v)});ua.appendChild(Ca);ka.appendChild(ua);var ia=document.createElement("span");ia.style.overflow="hidden";ia.style.textOverflow="ellipsis";ia.style.lineHeight=+mxEvent.addListener(Ca,"change",function(){Ca.style.display="none";var k=f.createSpinner(null,null,4);k.spin(ua);var u=function(){f.getOfflineLanguages(function(H){k.stop();Ca.style.display="";Ca.checked=0<=mxUtils.indexOf(H,aa);c()});f.updateOfflineLanguages()};Ca.checked?fetch("resources/dia_"+aa+".txt").then(u,u):f.removeOfflineLanguage(aa,u)});ua.appendChild(Ca);ka.appendChild(ua);var ia=document.createElement("span");ia.style.overflow="hidden";ia.style.textOverflow="ellipsis";ia.style.lineHeight="normal";mxUtils.write(ia,ja);ka.appendChild(ia);Y.appendChild(ka)})(Q[K].code,Q[K].name);q.appendChild(Y);c()});var A=function(){c()};mxEvent.addListener(window,"online",A);mxEvent.addListener(window,"offline",A);var E=document.createElement("div");E.style.position="absolute";E.style.left="0";E.style.right="0";E.style.bottom="0";E.style.height="46px";E.style.display="flex";E.style.whiteSpace="nowrap";E.style.alignItems="center";E.style.justifyContent="end";E.style.paddingTop="10px";E.style.paddingBottom="10px";E.style.boxSizing="border-box";var J=mxUtils.button(mxResources.get("close"),function(){f.hideDialog()});J.setAttribute("title","Escape");J.className="geBtn gePrimaryBtn";E.appendChild(J);l.appendChild(E);this.showDialog(l,480,460,!0,!0,function(){mxEvent.removeListener(window,"online",A);mxEvent.removeListener(window,"offline",A)})};EditorUi.prototype.showBackgroundImageDialog=function(c,f,l,q){c=null!=c?c:mxUtils.bind(this,function(x,A,E){A||(x=new ChangePageSetup(this,q?E:null,x),x.ignoreColor=!q,this.editor.graph.model.execute(x))});c=new BackgroundImageDialog(this,c,f,l,q);this.showDialog(c.container,400,null,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,f,l,q,x){c=new LibraryDialog(this,c,f,l,q,x);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(A){A&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}),!1,!1,new mxRectangle(0,0,480,320));c.init()};EditorUi.prototype.getCollapsedSections=function(){return mxSettings.getCollapsedSections()};@@ -4331,14 +4333,14 @@ K||null!=V&&0<V.length){var aa=l("_blank"==K?null:V,K==App.MODE_DEVICE||"downloac.querySelectorAll("[data-icon-content]"),l=0;l<f.length;l++)"g"==f[l].nodeName&&f[l].hasAttribute("data-icon")||f[l].removeAttribute("data-icon-content");if(null!=c.querySelector("[data-icon-content]")){f=c.ownerDocument;l=null!=f.createElementNS?f.createElementNS(mxConstants.NS_SVG,"style"):f.createElement("style");l.appendChild(f.createTextNode(".geSvgPopup { display: inline-block; box-sizing: border-box; max-width: 100%; max-height: 100%; overflow: auto; background-color: #ffffff; border: 1px solid #c0c0c0; border-radius: 4px; box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.25); padding: 8px; color: #000000; font-family: Helvetica, Arial, sans-serif; font-size: 12px; word-break: break-word; } @media (prefers-color-scheme: dark) { .geSvgPopup { background-color: #2a252f; border-color: #505050; color: #ffffff; } } @media print { [data-icon], .geSvgPopup { display: none; } }"));c.appendChild(l);l=null!=f.createElementNS?f.createElementNS(mxConstants.NS_SVG,"script"):f.createElement("script");l.setAttribute("type","text/javascript");var q='(function() {\nvar svg = document.documentElement;\nvar fo = null, active = null, pinned = false, thread = null;\nfunction hide() {\nif (fo != null && fo.parentNode != null) { fo.parentNode.removeChild(fo); }\nfo = null; active = null; pinned = false;\n}\nfunction cancel() {\nif (thread != null) { window.clearTimeout(thread); thread = null; }\n}\nfunction schedule() {\ncancel();\nif (!pinned) { thread = window.setTimeout(hide, 300); }\n}\nfunction show(icon) {\ncancel();\nif (active == icon) { return; }\nhide();\nvar content = icon.getAttribute("data-icon-content");\nif (content == null || content == "") { return; }\nvar x = parseFloat(icon.getAttribute("x"));\nvar y = parseFloat(icon.getAttribute("y"));\nvar w = parseFloat(icon.getAttribute("width"));\nif (isNaN(x) || isNaN(y)) {\ntry { var bb = icon.getBBox(); x = bb.x; y = bb.y; w = bb.width; }\ncatch (e) { x = 0; y = 0; }\n}\nif (isNaN(w) || w <= 0) { w = 16; }\nvar vb = (svg.viewBox != null && svg.viewBox.baseVal != null &&\nsvg.viewBox.baseVal.width > 0) ? svg.viewBox.baseVal : null;\nvar maxW = (vb != null) ? vb.width : (svg.clientWidth || 800);\nvar maxH = (vb != null) ? vb.height : (svg.clientHeight || 600);\nvar pw = Math.max(60, Math.min(320, maxW - 4));\nvar ph = Math.max(40, Math.min(220, maxH - 4));\nfo = document.createElementNS("http://www.w3.org/2000/svg", "foreignObject");\nfo.setAttribute("width", pw);\nfo.setAttribute("height", ph);\nvar div = document.createElementNS("http://www.w3.org/1999/xhtml", "div");\ndiv.setAttribute("class", "geSvgPopup");\ndiv.innerHTML = content;\ndiv.addEventListener("mouseenter", cancel);\ndiv.addEventListener("mouseleave", schedule);\nfo.appendChild(div);\nsvg.appendChild(fo);\nvar mw = div.offsetWidth;\nvar mh = div.offsetHeight;\nif (mw > 0) { pw = Math.min(pw, mw + 2); }\nif (mh > 0) { ph = Math.min(ph, mh + 2); }\nvar px = x + w + 4;\nvar py = y;\nif (vb != null) {\npx = Math.max(vb.x, Math.min(px, vb.x + vb.width - pw - 2));\npy = Math.max(vb.y, Math.min(py, vb.y + vb.height - ph - 2));\n}\nfo.setAttribute("x", px);\nfo.setAttribute("y", py);\nfo.setAttribute("width", pw);\nfo.setAttribute("height", ph);\nactive = icon;\n}\nvar icons = document.querySelectorAll("g[data-icon][data-icon-content]");\nfor (var i = 0; i < icons.length; i++) {\n(function(icon) {\nicon.addEventListener("click", function(evt) {\nif (active == icon) { hide(); }\nelse { show(icon); pinned = true; }\nevt.preventDefault();\nevt.stopPropagation();\n});\nicon.addEventListener("mouseenter", function() {\nif (pinned) { cancel(); }\nelse { show(icon); }\n});\nicon.addEventListener("mouseleave", schedule);\n})(icons[i]);\n}\ndocument.addEventListener("mousedown", function(evt) {\nif (fo != null && (active == null || !active.contains(evt.target)) &&\n!fo.contains(evt.target)) { hide(); }\n});\ndocument.addEventListener("keydown", function(evt) {\nif (evt.keyCode == 27) { hide(); }\n});\n})();'.replace(/\n/g," ");l.appendChild(f.createCDATASection(q));c.appendChild(l)}};EditorUi.prototype.exportSvg=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka,ua){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(la){Editor.addRetryToError(la,mxUtils.bind(this,function(){this.exportSvg(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka,ua)}));this.handleError(la)})))try{var Ca=this.editor.graph.isSelectionEmpty();l=null!=l?l:Ca;var ia=f?null:this.editor.graph.background;ia==mxConstants.NONE&&-(ia=null);null==ia&&0==f&&(ia=this.editor.graph.shapeBackgroundColor);var k=this.editor.graph.addForeignObjectWarning;Editor.foreignObjectImages&&(this.editor.graph.addForeignObjectWarning=function(){});var v=mxUtils.lightDarkColorSupported,H=mxUtils.preferDarkColor;if("light"==K||"dark"==K)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor="dark"==K;ua&&(E=Math.max(null!=E?E:0,Math.ceil(16*c)));var P=this.editor.graph.createSvgImageExport(x,ja,ua,"self"==V?"_top":"_blank"),T=Object.create(null),-W=this.getSvgWithFontLookup(T,P,mxUtils.bind(this,function(){return this.editor.graph.getSvg(ia,c,E,J,null,l,null,P,"blank"==V?"_blank":"self"==V?"_top":null,null,null,K,fa,null,null,null,ka)}));mxUtils.lightDarkColorSupported=v;mxUtils.preferDarkColor=H;this.editor.graph.addForeignObjectWarning=k;q&&this.editor.graph.addSvgShadow(W);ua&&this.addSvgIconHandlers(W);var ha=this.getBaseFilename()+(x?".drawio":"")+".svg";aa=null!=aa?aa:mxUtils.bind(this,function(la){this.isLocalFileSave()||la.length<=+(ia=null);null==ia&&0==f&&(ia=this.editor.graph.shapeBackgroundColor);var k=this.editor.graph.addForeignObjectWarning;Editor.foreignObjectImages&&(this.editor.graph.addForeignObjectWarning=function(){});var u=mxUtils.lightDarkColorSupported,H=mxUtils.preferDarkColor;if("light"==K||"dark"==K)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor="dark"==K;ua&&(E=Math.max(null!=E?E:0,Math.ceil(16*c)));var P=this.editor.graph.createSvgImageExport(x,ja,ua,"self"==V?"_top":"_blank"),T=Object.create(null),+W=this.getSvgWithFontLookup(T,P,mxUtils.bind(this,function(){return this.editor.graph.getSvg(ia,c,E,J,null,l,null,P,"blank"==V?"_blank":"self"==V?"_top":null,null,null,K,fa,null,null,null,ka)}));mxUtils.lightDarkColorSupported=u;mxUtils.preferDarkColor=H;this.editor.graph.addForeignObjectWarning=k;q&&this.editor.graph.addSvgShadow(W);ua&&this.addSvgIconHandlers(W);var ha=this.getBaseFilename()+(x?".drawio":"")+".svg";aa=null!=aa?aa:mxUtils.bind(this,function(la){this.isLocalFileSave()||la.length<=MAX_REQUEST_SIZE?this.saveData(ha,"svg",la,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(la)}))});var X=mxUtils.bind(this,function(la){this.spinner.stop();x&&la.setAttribute("content",this.getFileData(!0,null,null,null,l,Q,null,null,null,null,null,c,E));aa(Graph.xmlDeclaration+"\n"+(x?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(la))});this.editor.graph.mathEnabled&&this.editor.addMathCss(W);var ea=mxUtils.bind(this,function(la){Editor.replaceSvgDataUris&&A&&EditorUi.embedSvgImages(la);Editor.foreignObjectImages&&Y?this.replaceAlternateContent(la,K,X):X(la)}),oa=mxUtils.bind(this,function(la){A&&!this.isOffline()&&Editor.canvasSupported?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(la,ea,this.thumbImageCache)):ea(la)});this.embedFonts(W,oa,Y?!0:!1,T)}catch(la){this.handleError(la)}};EditorUi.prototype.replaceAlternateContent=function(c,f,l){function q(fa,Y,aa,ja,ka){var ua=mxUtils.createElementNs(c.ownerDocument,mxConstants.NS_SVG,"image");ua.setAttribute("x",Y);ua.setAttribute("y",aa+.5);ua.setAttribute("width",ja.width);ua.setAttribute("height",ja.height);null==ua.setAttributeNS?ua.setAttribute("xlink:href",ka):ua.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",ka);fa.replaceChild(ua,fa.lastChild);J()}function x(){if(E<K.length)K[E++](x)}var A="";f=c.getElementsByTagName("style");for(var E=0;E<f.length;E++)A+=f[E].innerHTML;f=c.getElementsByTagName("switch");-counter=f.length;var J=mxUtils.bind(this,function(){counter--;0==counter&&l(c)}),Q={},V={},K=[];for(E=0;E<f.length;E++)mxUtils.bind(this,function(fa){var Y=fa.getElementsByTagName("div");if(0<Y.length)try{var aa=Y[0].cloneNode(!0),ja=parseInt(aa.style.marginLeft),ka=parseInt(aa.style.paddingTop),ua=aa.getElementsByTagName("div")[1],Ca=Y=!1,ia=aa.style.alignItems,k=aa.style.justifyContent;if(null!=aa.style.writingMode){var v=aa.style.writingMode;Ca="vertical-"==v.substring(0,9);Y="-rl"==v.substring(v.length--3)}var H=!Ca&&"1px"==aa.style.width||Ca&&"1px"==aa.style.height;if(!Ca&&"1px"==aa.style.height||Ca&&"1px"==aa.style.width)aa.style.alignItems=Ca&&Y?"unsafe flex-end":"unsafe flex-start";H&&(aa.style.justifyContent="unsafe flex-start");aa.style.paddingTop="";aa.style.marginLeft="";var P=aa.outerHTML,T=Q[P];null==T&&(aa.style.position="absolute",aa.style.visibility="hidden",document.body.appendChild(aa),v=1,v="1px"==aa.style.width?ua.offsetWidth:parseInt(aa.style.width),H=1,H="1px"==aa.style.height?-ua.offsetHeight:parseInt(aa.style.height),document.body.removeChild(aa),T=new mxRectangle(ja,ka,v,H),Q[P]=T);"1px"==aa.style.height&&("unsafe center"==ia?ka-=T.height/2:"unsafe flex-end"==ia&&(ka-=T.height));if("1px"==aa.style.width)if(!Ca&&"unsafe center"==k||Ca&&"unsafe center"==ia)ja-=T.width/2;else if(!Ca&&"unsafe flex-end"==k||Ca&&(!Y&&"unsafe flex-end"==ia||Y&&"unsafe flex-start"==ia))ja-=T.width;T=new mxRectangle(ja,ka,T.width,T.height+parseInt(ua.style.fontSize)/4);K.push(mxUtils.bind(this,+counter=f.length;var J=mxUtils.bind(this,function(){counter--;0==counter&&l(c)}),Q={},V={},K=[];for(E=0;E<f.length;E++)mxUtils.bind(this,function(fa){var Y=fa.getElementsByTagName("div");if(0<Y.length)try{var aa=Y[0].cloneNode(!0),ja=parseInt(aa.style.marginLeft),ka=parseInt(aa.style.paddingTop),ua=aa.getElementsByTagName("div")[1],Ca=Y=!1,ia=aa.style.alignItems,k=aa.style.justifyContent;if(null!=aa.style.writingMode){var u=aa.style.writingMode;Ca="vertical-"==u.substring(0,9);Y="-rl"==u.substring(u.length-+3)}var H=!Ca&&"1px"==aa.style.width||Ca&&"1px"==aa.style.height;if(!Ca&&"1px"==aa.style.height||Ca&&"1px"==aa.style.width)aa.style.alignItems=Ca&&Y?"unsafe flex-end":"unsafe flex-start";H&&(aa.style.justifyContent="unsafe flex-start");aa.style.paddingTop="";aa.style.marginLeft="";var P=aa.outerHTML,T=Q[P];null==T&&(aa.style.position="absolute",aa.style.visibility="hidden",document.body.appendChild(aa),u=1,u="1px"==aa.style.width?ua.offsetWidth:parseInt(aa.style.width),H=1,H="1px"==aa.style.height?+ua.offsetHeight:parseInt(aa.style.height),document.body.removeChild(aa),T=new mxRectangle(ja,ka,u,H),Q[P]=T);"1px"==aa.style.height&&("unsafe center"==ia?ka-=T.height/2:"unsafe flex-end"==ia&&(ka-=T.height));if("1px"==aa.style.width)if(!Ca&&"unsafe center"==k||Ca&&"unsafe center"==ia)ja-=T.width/2;else if(!Ca&&"unsafe flex-end"==k||Ca&&(!Y&&"unsafe flex-end"==ia||Y&&"unsafe flex-start"==ia))ja-=T.width;T=new mxRectangle(ja,ka,T.width,T.height+parseInt(ua.style.fontSize)/4);K.push(mxUtils.bind(this,function(W){var ha=V[P];null==ha?Graph.htmlToPng(P,T.width,T.height,mxUtils.bind(this,function(X){q(fa,ja,ka,T,X);V[P]=X;W()}),A):(q(fa,ja,ka,T,ha),W())}))}catch(W){J()}else J()})(f[E]);0==counter&&l(c);E=0;x()};EditorUi.prototype.addRadiobox=function(c,f,l,q,x,A,E){return this.addCheckbox(c,l,q,x,A,E,!0,f)};EditorUi.prototype.addCheckbox=function(c,f,l,q,x,A,E,J,Q){A=null!=A?A:!0;var V=document.createElement("input");V.style.marginRight="8px";V.setAttribute("type",E?"radio":"checkbox");E="geCheckbox-"+Editor.guid();V.id=E;null!=J&&V.setAttribute("name",J);l&&(V.setAttribute("checked","checked"),V.defaultChecked=!0);q&&V.setAttribute("disabled","disabled");A&&(Q?(x=document.createElement("div"),x.className="geDialogCheckRow",x.appendChild(V),l=document.createElement("label"),mxUtils.write(l,f),l.setAttribute("for",E),x.appendChild(l),c.appendChild(x),V.checkRow=x):(V.style.marginTop="16px",c.appendChild(V),l=document.createElement("label"),mxUtils.write(l,f),l.setAttribute("for",E),c.appendChild(l),x||mxUtils.br(c)));return V};EditorUi.prototype.addAdvancedSection=function(c,f){var l=document.createElement("div");l.className="geCollapsibleTitle";mxUtils.write(l,mxResources.get(f||"advanced"));var q=document.createElement("div");q.className="geCollapsibleContent geCollapsed";f=document.createElement("div");f.className="geDialogSection";q.appendChild(f);var x=function(A){if(A!==l.classList.contains("geExpanded")&&(l.classList.toggle("geExpanded"),q.classList.toggle("geCollapsed"),A=l.closest(".geDialog"),@@ -4362,28 +4364,28 @@ var E=document.createElement("select");E.className="geBtn";E.style.margin="0 4pxJ)}));x.appendChild(A)}A=document.createElement("div");A.className="geDialogSection";var V=this.addLinkSection(A),K=this.addPagesRow(A);Q=document.createElement("div");Q.className="geDialogCheckRow";var fa=document.createElement("input");fa.setAttribute("type","checkbox");fa.setAttribute("checked","checked");fa.defaultChecked=!0;fa.style.marginRight="8px";Q.appendChild(fa);var Y=document.createElement("label");mxUtils.write(Y,mxResources.get("zoom")+":");Q.appendChild(Y);var aa=document.createElement("input");aa.setAttribute("type","text");aa.style.width="60px";aa.style.marginLeft="4px";aa.value="100%";Q.appendChild(aa);A.appendChild(Q);var ja=this.addCheckbox(A,mxResources.get("fit"),!0,null,null,null,null,null,!0),ka=this.addCheckbox(A,mxResources.get("lightbox"),!0,null,null,null,null,null,!0);x.appendChild(A);A=this.addAdvancedSection(x).content;var ua=document.createElement("select");ua.style.maxWidth="260px";Q=document.createElement("option");Q.setAttribute("value","light");mxUtils.write(Q,mxResources.get("light"));ua.appendChild(Q);Q=document.createElement("option");Q.setAttribute("value","dark");mxUtils.write(Q,mxResources.get("dark"));ua.appendChild(Q);Q=document.createElement("option");Q.setAttribute("value","auto");mxUtils.write(Q,mxResources.get("automatic"));Q.setAttribute("selected","selected");ua.appendChild(Q);Q=document.createElement("div");Q.className="geDialogFormRow";Y=document.createElement("span");Y.className="geDialogFormLabel";mxUtils.write(Y,mxResources.get("appearance")+":");Q.appendChild(Y);-Q.appendChild(ua);A.appendChild(Q);var Ca=null;if(EditorUi.enableHtmlEditOption){Ca=this.addEditButton(A,ka);var ia=Ca.getEditInput();mxEvent.addListener(ka,"change",function(){ka.checked?ia.removeAttribute("disabled"):ia.setAttribute("disabled","disabled");ia.checked&&ka.checked?Ca.getEditSelect().removeAttribute("disabled"):Ca.getEditSelect().setAttribute("disabled","disabled")})}var k=this.addCheckbox(A,mxResources.get("layers"),!0,null,null,null,null,null,!0),v=this.addCheckbox(A,mxResources.get("tags"),-!0,null,null,null,null,null,!0),H=this.addCheckbox(A,mxResources.get("useCurrentSettings"),!0,null,null,null,null,null,!0);H.checkRow.style.paddingLeft="24px";var P=this.addCheckbox(A,mxResources.get("linkIcons"),!1,null,null,null,null,null,!0),T=this.addCheckbox(A,mxResources.get("tooltipIcons"),!1,null,null,null,null,null,!0);mxEvent.addListener(v,"change",function(){v.checked?H.removeAttribute("disabled"):H.setAttribute("disabled","disabled")});mxEvent.addListener(ka,"change",function(){ka.checked?-(P.removeAttribute("disabled"),T.removeAttribute("disabled")):(P.setAttribute("disabled","disabled"),T.setAttribute("disabled","disabled"))});c=new CustomDialog(this,x,mxUtils.bind(this,function(){q("url"==E.value?l:null,fa.checked,aa.value,V.getTarget(),V.getColor(),ja.checked,null!=K.row&&"allPages"==K.select.value,k.checked,v.checked,ka.checked,null!=Ca?Ca.getLink():null,null!=ua?ua.value:null,v.checked&&H.checked,P.checked,T.checked)}),null,c,f);this.showDialog(c.container,360,null,!0,!0);E.focus()};+Q.appendChild(ua);A.appendChild(Q);var Ca=null;if(EditorUi.enableHtmlEditOption){Ca=this.addEditButton(A,ka);var ia=Ca.getEditInput();mxEvent.addListener(ka,"change",function(){ka.checked?ia.removeAttribute("disabled"):ia.setAttribute("disabled","disabled");ia.checked&&ka.checked?Ca.getEditSelect().removeAttribute("disabled"):Ca.getEditSelect().setAttribute("disabled","disabled")})}var k=this.addCheckbox(A,mxResources.get("layers"),!0,null,null,null,null,null,!0),u=this.addCheckbox(A,mxResources.get("tags"),+!0,null,null,null,null,null,!0),H=this.addCheckbox(A,mxResources.get("useCurrentSettings"),!0,null,null,null,null,null,!0);H.checkRow.style.paddingLeft="24px";var P=this.addCheckbox(A,mxResources.get("linkIcons"),!1,null,null,null,null,null,!0),T=this.addCheckbox(A,mxResources.get("tooltipIcons"),!1,null,null,null,null,null,!0);mxEvent.addListener(u,"change",function(){u.checked?H.removeAttribute("disabled"):H.setAttribute("disabled","disabled")});mxEvent.addListener(ka,"change",function(){ka.checked?+(P.removeAttribute("disabled"),T.removeAttribute("disabled")):(P.setAttribute("disabled","disabled"),T.setAttribute("disabled","disabled"))});c=new CustomDialog(this,x,mxUtils.bind(this,function(){q("url"==E.value?l:null,fa.checked,aa.value,V.getTarget(),V.getColor(),ja.checked,null!=K.row&&"allPages"==K.select.value,k.checked,u.checked,ka.checked,null!=Ca?Ca.getLink():null,null!=ua?ua.value:null,u.checked&&H.checked,P.checked,T.checked)}),null,c,f);this.showDialog(c.container,360,null,!0,!0);E.focus()};EditorUi.prototype.showPublishLinkDialog=function(c,f,l,q,x,A,E,J,Q,V,K,fa){var Y=document.createElement("div");Y.style.whiteSpace="nowrap";var aa=document.createElement("h3");mxUtils.write(aa,c||mxResources.get("publish"));Y.appendChild(aa);var ja=document.createElement("select");ja.className="geBtn";ja.style.margin="0 4px 8px 4px";ja.style.width="calc(100% - 8px)";ja.style.boxSizing="border-box";x=null!=x?x:"https://www.drawio.com/docs/manual/export/publish-link/";c=document.createElement("option");mxUtils.write(c,mxResources.get("includeCopyOfMyDiagram"));c.setAttribute("value","copy");ja.appendChild(c);c=document.createElement("option");mxUtils.write(c,mxResources.get("authorizationRequired"));c.setAttribute("value","auth");ja.appendChild(c);null==J||""==J.getHash()||J.getMode()==App.MODE_DEVICE||J.getMode()==App.MODE_BROWSER?c.setAttribute("disabled","disabled"):ja.value="auth";J=document.createElement("option");J.setAttribute("value","public");ja.appendChild(J);null!=E?(mxUtils.write(J,mxResources.get("publicDiagramUrl")),J.setAttribute("title",E),ja.value="public"):(mxUtils.write(J,mxResources.get("publicDiagramUrl")+" ("+mxResources.get("diagramIsNotPublic")+")"),J.setAttribute("disabled","disabled"));Y.appendChild(ja);mxUtils.br(Y);E=document.createElement("div");E.className="geDialogSection";var ka=null,ua=null;if(null!=f||null!=l)f=document.createElement("div"),f.className="geDialogInlineFields",J=document.createElement("div"),J.className="geDialogInlineField",c=document.createElement("label"),mxUtils.write(c,mxResources.get("width")+":"),J.appendChild(c),ka=document.createElement("input"),ka.setAttribute("type","text"),ka.value="100%",J.appendChild(ka),f.appendChild(J),J=document.createElement("div"),J.className="geDialogInlineField",c=document.createElement("label"),mxUtils.write(c,mxResources.get("height")+":"),J.appendChild(c),ua=document.createElement("input"),ua.setAttribute("type","text"),ua.value=l+"px",J.appendChild(ua),f.appendChild(J),E.appendChild(f);var Ca=this.addLinkSection(E,-q),ia=V?this.addCheckbox(E,mxResources.get("transparentBackground"),!1,null,null,null,null,null,!0):null,k=this.addPagesRow(E),v=k.select;null==k.row||fa||(l=function(){k.row.style.display="copy"==ja.value?"":"none"},mxEvent.addListener(ja,"change",l),l());var H=null;if(null!=this.pages&&1<this.pages.length){l=document.createElement("div");l.className="geDialogFormRow";V=document.createElement("span");V.className="geDialogFormLabel";mxUtils.write(V,mxResources.get("initialPage",null,"Initial Page")+-":");l.appendChild(V);H=document.createElement("select");H.style.maxWidth="260px";for(V=0;V<this.pages.length;V++)fa=document.createElement("option"),mxUtils.write(fa,this.pages[V].getName()),fa.setAttribute("value",V),this.pages[V]==this.currentPage&&fa.setAttribute("selected","selected"),H.appendChild(fa);l.appendChild(H);E.appendChild(l);l=function(){"none"!=k.row.style.display&&"currentPage"==v.value?H.setAttribute("disabled","disabled"):H.removeAttribute("disabled")};mxEvent.addListener(v,"change",+q),ia=V?this.addCheckbox(E,mxResources.get("transparentBackground"),!1,null,null,null,null,null,!0):null,k=this.addPagesRow(E),u=k.select;null==k.row||fa||(l=function(){k.row.style.display="copy"==ja.value?"":"none"},mxEvent.addListener(ja,"change",l),l());var H=null;if(null!=this.pages&&1<this.pages.length){l=document.createElement("div");l.className="geDialogFormRow";V=document.createElement("span");V.className="geDialogFormLabel";mxUtils.write(V,mxResources.get("initialPage",null,"Initial Page")++":");l.appendChild(V);H=document.createElement("select");H.style.maxWidth="260px";for(V=0;V<this.pages.length;V++)fa=document.createElement("option"),mxUtils.write(fa,this.pages[V].getName()),fa.setAttribute("value",V),this.pages[V]==this.currentPage&&fa.setAttribute("selected","selected"),H.appendChild(fa);l.appendChild(H);E.appendChild(l);l=function(){"none"!=k.row.style.display&&"currentPage"==u.value?H.setAttribute("disabled","disabled"):H.removeAttribute("disabled")};mxEvent.addListener(u,"change",l);mxEvent.addListener(ja,"change",l);l()}var P=this.addCheckbox(E,mxResources.get("lightbox"),!0,null,null,!q,null,null,!0);q&&null!=P.checkRow&&(P.checkRow.style.display="none");Y.appendChild(E);q=this.addAdvancedSection(Y).content;var T=document.createElement("select");T.style.maxWidth="260px";l=document.createElement("option");l.setAttribute("value","0");mxUtils.write(l,mxResources.get("light"));T.appendChild(l);l=document.createElement("option");l.setAttribute("value","1");mxUtils.write(l,mxResources.get("dark"));T.appendChild(l);l=document.createElement("option");l.setAttribute("value","auto");mxUtils.write(l,mxResources.get("automatic"));l.setAttribute("selected","selected");T.appendChild(l);K&&(K=document.createElement("div"),K.className="geDialogFormRow",l=document.createElement("span"),l.className="geDialogFormLabel",mxUtils.write(l,mxResources.get("appearance")+":"),K.appendChild(l),K.appendChild(T),q.appendChild(K));var W=this.addEditButton(q,P),ha=W.getEditInput(),X=this.addCheckbox(q,mxResources.get("layers"),!0,null,null,null,null,null,!0),ea=this.addCheckbox(q,mxResources.get("tags"),!0,null,null,null,null,null,!0),oa=this.addCheckbox(q,mxResources.get("useCurrentSettings"),!0,null,null,null,null,null,!0);oa.checkRow.style.paddingLeft="24px";var la=this.addCheckbox(q,mxResources.get("linkIcons"),!1,null,null,null,null,null,!0),ca=this.addCheckbox(q,mxResources.get("tooltipIcons"),!1,null,null,null,null,null,!0);mxEvent.addListener(ea,"change",function(){ea.checked?oa.removeAttribute("disabled"):oa.setAttribute("disabled","disabled")});mxEvent.addListener(P,"change",function(){P.checked?(X.removeAttribute("disabled"),ha.removeAttribute("disabled"),ea.removeAttribute("disabled"),la.removeAttribute("disabled"),ca.removeAttribute("disabled"),ea.checked&&oa.removeAttribute("disabled")):(X.setAttribute("disabled","disabled"),ha.setAttribute("disabled","disabled"),ea.setAttribute("disabled","disabled"),oa.setAttribute("disabled","disabled"),la.setAttribute("disabled","disabled"),ca.setAttribute("disabled","disabled"));ha.checked&&-P.checked?W.getEditSelect().removeAttribute("disabled"):W.getEditSelect().setAttribute("disabled","disabled")});x=new CustomDialog(this,Y,mxUtils.bind(this,function(){Q(Ca.getTarget(),Ca.getColor(),null==H||0>=H.selectedIndex||null!=H.getAttribute("disabled")?null:this.pages[H.selectedIndex],P.checked,W.getLink(),X.checked,null!=ka?ka.value:null,null!=ua?ua.value:null,ea.checked,ja.value,null!=ia?ia.checked:!1,T.value,"allPages"==v.value,ea.checked&&oa.checked,la.checked,ca.checked)}),null,mxResources.get("create"),+P.checked?W.getEditSelect().removeAttribute("disabled"):W.getEditSelect().setAttribute("disabled","disabled")});x=new CustomDialog(this,Y,mxUtils.bind(this,function(){Q(Ca.getTarget(),Ca.getColor(),null==H||0>=H.selectedIndex||null!=H.getAttribute("disabled")?null:this.pages[H.selectedIndex],P.checked,W.getLink(),X.checked,null!=ka?ka.value:null,null!=ua?ua.value:null,ea.checked,ja.value,null!=ia?ia.checked:!1,T.value,"allPages"==u.value,ea.checked&&oa.checked,la.checked,ca.checked)}),null,mxResources.get("create"),x,A);this.showDialog(x.container,360,null,!0,!0);null!=ka?(ka.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?ka.select():document.execCommand("selectAll",!1,null)):ja.focus()};EditorUi.prototype.showRemoteExportDialog=function(c,f,l,q,x){var A=document.createElement("div");A.style.whiteSpace="nowrap";var E=document.createElement("h3");mxUtils.write(E,mxResources.get("image"));A.appendChild(E);if(x){E=document.createElement("div");E.className="geDialogSection";var J=document.createElement("div");J.className="geDialogFormRow";var Q=document.createElement("span");Q.className="geDialogFormLabel";mxUtils.write(Q,mxResources.get("zoom")+":");J.appendChild(Q);var V=document.createElement("input");V.setAttribute("type","text");V.value=this.lastExportZoom||"100%";J.appendChild(V);E.appendChild(J);J=document.createElement("div");J.className="geDialogFormRow";Q=document.createElement("span");Q.className="geDialogFormLabel";mxUtils.write(Q,mxResources.get("borderWidth")+":");J.appendChild(Q);var K=document.createElement("input");K.setAttribute("type","text");K.value=this.lastExportBorder||"0";J.appendChild(K);E.appendChild(J);A.appendChild(E)}E=document.createElement("div");E.className="geDialogSection";var fa=this.addCheckbox(E,mxResources.get("selectionOnly"),this.lastExportSelectionOnly&&!this.editor.graph.isSelectionEmpty(),this.editor.graph.isSelectionEmpty(),null,null,null,null,!0),Y=q?null:this.addCheckbox(E,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram,null,null,null,null,null,!0);J=this.editor.graph;var aa=J.background==mxConstants.NONE||null==J.background,ja=q?null:this.addCheckbox(E,mxResources.get("transparentBackground"),null!=this.lastExportTransparent?this.lastExportTransparent:aa,null,null,null,null,null,!0);A.appendChild(E);c=new CustomDialog(this,A,mxUtils.bind(this,function(){this.lastExportSelectionOnly=fa.checked;x&&(this.lastExportZoom=V.value,this.lastExportBorder=K.value);null!=ja&&(this.lastExportTransparent=ja.checked==aa?null:ja.checked);var ka=parseInt(V.value)/100||1,ua=parseInt(K.value)||0;l(!fa.checked,null!=Y?Y.checked:!1,null!=ja?ja.checked:!1,ka,ua)}),null,c,f);this.showDialog(c.container,340,null,!0,!0)};EditorUi.prototype.showExportDialog=function(c,f,l,q,x,A,E,J,Q){function V(){return Math.max(0,parseFloat(ka.value)||100)/100}function K(){var Oa=V();Ba.value=Math.floor(ta*Oa);na.value=Math.floor(xa*Oa)}E=null!=E?E:Editor.defaultIncludeDiagram;var fa=document.createElement("div");fa.style.whiteSpace="nowrap";var Y=this.editor.graph,aa=document.createElement("h3");mxUtils.write(aa,c);fa.appendChild(aa);c=document.createElement("div");c.className="geDialogSection";aa=document.createElement("div");aa.className="geDialogFormRow";var ja=document.createElement("span");ja.className="geDialogFormLabel";mxUtils.write(ja,mxResources.get("zoom")+":");aa.appendChild(ja);var ka=document.createElement("input");ka.setAttribute("type","text");ka.value=this.lastExportZoom||"100%";aa.appendChild(ka);c.appendChild(aa);fa.appendChild(c);c=document.createElement("div");-c.className="geDialogSection";var ua=this.addCheckbox(c,mxResources.get("selectionOnly"),this.lastExportSelectionOnly&&!Y.isSelectionEmpty(),Y.isSelectionEmpty(),null,null,null,null,!0),Ca=document.createElement("input");Ca.setAttribute("disabled","disabled");Ca.setAttribute("type","checkbox");var ia=document.createElement("select");ia.style.marginLeft="8px";var k=["selectionOnly","diagram","page"];aa={};for(ja=0;ja<k.length;ja++)if(!Y.isSelectionEmpty()||"selectionOnly"!=k[ja]){var v=document.createElement("option");-mxUtils.write(v,mxResources.get(k[ja]));v.setAttribute("value",k[ja]);ia.appendChild(v);aa[k[ja]]=v}Q?(ja=document.createElement("div"),ja.className="geDialogFormRow",A=document.createElement("span"),A.className="geDialogFormLabel",mxUtils.write(A,mxResources.get("size")+":"),ja.appendChild(A),ia.style.marginLeft="0",ja.appendChild(ia),c.appendChild(ja),mxEvent.addListener(ia,"change",function(){"selectionOnly"==ia.value&&(ua.checked=!0)})):A&&(A=document.createElement("div"),A.className="geDialogCheckRow",+c.className="geDialogSection";var ua=this.addCheckbox(c,mxResources.get("selectionOnly"),this.lastExportSelectionOnly&&!Y.isSelectionEmpty(),Y.isSelectionEmpty(),null,null,null,null,!0),Ca=document.createElement("input");Ca.setAttribute("disabled","disabled");Ca.setAttribute("type","checkbox");var ia=document.createElement("select");ia.style.marginLeft="8px";var k=["selectionOnly","diagram","page"];aa={};for(ja=0;ja<k.length;ja++)if(!Y.isSelectionEmpty()||"selectionOnly"!=k[ja]){var u=document.createElement("option");+mxUtils.write(u,mxResources.get(k[ja]));u.setAttribute("value",k[ja]);ia.appendChild(u);aa[k[ja]]=u}Q?(ja=document.createElement("div"),ja.className="geDialogFormRow",A=document.createElement("span"),A.className="geDialogFormLabel",mxUtils.write(A,mxResources.get("size")+":"),ja.appendChild(A),ia.style.marginLeft="0",ja.appendChild(ia),c.appendChild(ja),mxEvent.addListener(ia,"change",function(){"selectionOnly"==ia.value&&(ua.checked=!0)})):A&&(A=document.createElement("div"),A.className="geDialogCheckRow",A.appendChild(Ca),ja=document.createElement("label"),mxUtils.write(ja,mxResources.get("crop")),A.appendChild(ja),c.appendChild(A),mxEvent.addListener(ua,"change",function(){ua.checked?Ca.removeAttribute("disabled"):Ca.setAttribute("disabled","disabled")}));Y.isSelectionEmpty()?Q&&null!=ua.checkRow&&null!=ua.checkRow.parentNode&&ua.checkRow.parentNode.removeChild(ua.checkRow):(ia.value=this.lastExportSelectionOnly?"selectionOnly":"diagram",Ca.setAttribute("checked","checked"),Ca.defaultChecked=!0,mxEvent.addListener(ua,"change",function(){ia.value=ua.checked?"selectionOnly":"diagram"}));var H=!Y.isSelectionEmpty()&&this.lastExportSelectionOnly?"selectionOnly":"diagram";Q&&null!=this.lastExportType&&null!=aa[this.lastExportType]&&(ia.value=this.lastExportType,"selectionOnly"==this.lastExportType&&(ua.checked=!0));var P="jpeg"!=J&&"webp"!=J,T=this.addCheckbox(c,mxResources.get("transparentBackground"),P&&null!=this.lastExportTransparent?this.lastExportTransparent:!1,null,null,P,null,null,!0);fa.appendChild(c);c=document.createElement("div");c.className="geDialogSection";aa=!1;A=null!=this.pages?this.pages.length:1;var W=this.addCheckbox(c,mxResources.get("includeCopyOfMyDiagram")+(1<A?":":""),E,null,null,"jpeg"!=J&&"webp"!=J,null,null,!0);"jpeg"!=J&&"webp"!=J&&(aa=!0);var ha=document.createElement("select");ha.style.maxWidth="260px";if("png"==J||"svg"==J)E=function(){W.checked?ha.removeAttribute("disabled"):ha.setAttribute("disabled","disabled")},ja=document.createElement("option"),ja.setAttribute("value",@@ -4406,14 +4408,14 @@ this.lastExportDpi=!isNaN(Oa)&&0<Oa&&100!=Oa?Oa:null}Q&&(this.lastExportType=ia.ea.checked,oa.checked&&f,"png"==J&&0<parseInt(va.value)&&100!=parseInt(va.value)?parseInt(va.value):null,la.checked&&f)}),null,l,q);this.showDialog(l.container,360,null,!0,!0,null,null,null,null,!0);ka.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?ka.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(c,f,l,q,x,A,E){var J=document.createElement("div"),Q=this.editor.graph;if(null!=f){var V=document.createElement("h3");mxUtils.write(V,f);J.appendChild(V)}f=document.createElement("div");f.className="geDialogSection";var K=E?this.addPagesRow(f):null,fa=this.addCheckbox(f,mxResources.get("fit"),!0,null,null,null,null,null,!0),Y=this.addCheckbox(f,mxResources.get("shadow"),Q.shadowVisible&&q,!q,null,null,null,null,!0),aa=this.addCheckbox(f,l,!1,null,null,null,null,null,!0),ja=this.addCheckbox(f,mxResources.get("lightbox"),!0,null,null,null,null,null,!0);J.appendChild(f);l=this.addAdvancedSection(J).content;var ka=null;A&&(ka=document.createElement("select"),ka.style.maxWidth="260px",A=document.createElement("option"),A.setAttribute("value","light"),mxUtils.write(A,mxResources.get("light")),ka.appendChild(A),A=document.createElement("option"),A.setAttribute("value","dark"),mxUtils.write(A,mxResources.get("dark")),ka.appendChild(A),mxUtils.lightDarkColorSupported?(A=document.createElement("option"),A.setAttribute("value","auto"),mxUtils.write(A,mxResources.get("automatic")),ka.appendChild(A),ka.value="auto"):ka.value=Editor.isDarkMode()?"dark":"light",-A=document.createElement("div"),A.className="geDialogFormRow",q=document.createElement("span"),q.className="geDialogFormLabel",mxUtils.write(q,mxResources.get("appearance")+":"),A.appendChild(q),A.appendChild(ka),l.appendChild(A));var ua=this.addEditButton(l,ja),Ca=ua.getEditInput(),ia=1<Q.model.getChildCount(Q.model.getRoot()),k=this.addCheckbox(l,mxResources.get("layers"),ia,!ia,null,null,null,null,!0),v=this.addCheckbox(l,mxResources.get("linkIcons"),!1,null,null,null,null,null,!0),H=this.addCheckbox(l,-mxResources.get("tooltipIcons"),!1,null,null,null,null,null,!0);mxEvent.addListener(ja,"change",function(){ja.checked?(ia&&k.removeAttribute("disabled"),null!=K&&K.select.removeAttribute("disabled"),Ca.removeAttribute("disabled"),v.removeAttribute("disabled"),H.removeAttribute("disabled")):(null!=K&&K.select.setAttribute("disabled","disabled"),k.setAttribute("disabled","disabled"),Ca.setAttribute("disabled","disabled"),v.setAttribute("disabled","disabled"),H.setAttribute("disabled","disabled"));Ca.checked&&-ja.checked?ua.getEditSelect().removeAttribute("disabled"):ua.getEditSelect().setAttribute("disabled","disabled")});x=new CustomDialog(this,J,mxUtils.bind(this,function(){c(fa.checked,Y.checked,aa.checked,ja.checked,ua.getLink(),k.checked,v.checked,H.checked,null!=ka?ka.value:null,null!=K?null!=K.row&&"allPages"==K.select.value:null)}),null,mxResources.get("embed"),x);this.showDialog(x.container,280,null,!0,!0)};EditorUi.prototype.createEmbedImage=function(c,f,l,q,x,A,E,J,Q,V){function K(ka){var ua=+A=document.createElement("div"),A.className="geDialogFormRow",q=document.createElement("span"),q.className="geDialogFormLabel",mxUtils.write(q,mxResources.get("appearance")+":"),A.appendChild(q),A.appendChild(ka),l.appendChild(A));var ua=this.addEditButton(l,ja),Ca=ua.getEditInput(),ia=1<Q.model.getChildCount(Q.model.getRoot()),k=this.addCheckbox(l,mxResources.get("layers"),ia,!ia,null,null,null,null,!0),u=this.addCheckbox(l,mxResources.get("linkIcons"),!1,null,null,null,null,null,!0),H=this.addCheckbox(l,+mxResources.get("tooltipIcons"),!1,null,null,null,null,null,!0);mxEvent.addListener(ja,"change",function(){ja.checked?(ia&&k.removeAttribute("disabled"),null!=K&&K.select.removeAttribute("disabled"),Ca.removeAttribute("disabled"),u.removeAttribute("disabled"),H.removeAttribute("disabled")):(null!=K&&K.select.setAttribute("disabled","disabled"),k.setAttribute("disabled","disabled"),Ca.setAttribute("disabled","disabled"),u.setAttribute("disabled","disabled"),H.setAttribute("disabled","disabled"));Ca.checked&&+ja.checked?ua.getEditSelect().removeAttribute("disabled"):ua.getEditSelect().setAttribute("disabled","disabled")});x=new CustomDialog(this,J,mxUtils.bind(this,function(){c(fa.checked,Y.checked,aa.checked,ja.checked,ua.getLink(),k.checked,u.checked,H.checked,null!=ka?ka.value:null,null!=K?null!=K.row&&"allPages"==K.select.value:null)}),null,mxResources.get("embed"),x);this.showDialog(x.container,280,null,!0,!0)};EditorUi.prototype.createEmbedImage=function(c,f,l,q,x,A,E,J,Q,V){function K(ka){var ua=" ",Ca="";q&&(ua=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(null!=Y?"&page="+Y:"")+(x?"&edit=_blank":"")+(A?"&layers=1":"")+(E?"&link-icons=1":"")+(J?"&tooltip-icons=1":"")+"');}})(this);\"",Ca+="cursor:pointer;");c&&(Ca+="max-width:100%;");var ia="";l&&(ia=' width="'+Math.round(fa.width)+'" height="'+Math.round(fa.height)+'"');Q('<img src="'+ka+'"'+ia+(""!=Ca?' style="'+Ca+'"':"")+ua+"/>")}var fa=this.editor.graph.getGraphBounds(),Y=this.getSelectedPageIndex();if(this.editor.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(ka){var ua=q?this.getFileData(!0):null;ka=this.createImageDataUri(ka,ua,"png");K(ka)}),null,null,null,mxUtils.bind(this,function(ka){V({message:mxResources.get("unknownError")})}),-null,!0,l?2:1,null,f,null,null,Editor.defaultBorder);else if(f=this.getFileData(!0),fa.width*fa.height<=MAX_AREA&&f.length<=MAX_REQUEST_SIZE){var aa="";l&&(aa="&w="+Math.round(2*fa.width)+"&h="+Math.round(2*fa.height));var ja=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(q?"1":"0")+aa+"&xml="+encodeURIComponent(f));ja.send(mxUtils.bind(this,function(){200<=ja.getStatus()&&299>=ja.getStatus()?K("data:image/png;base64,"+ja.getText()):V({message:mxResources.get("unknownError")})}))}else V({message:mxResources.get("drawingTooLarge")})};-EditorUi.prototype.createEmbedSvg=function(c,f,l,q,x,A,E,J,Q,V,K){Q=null!=Q?Q:"auto";V=null!=V?V:!0;var fa=this.getSelectedPageIndex(),Y=mxUtils.lightDarkColorSupported,aa=mxUtils.preferDarkColor;if("light"==Q||"dark"==Q)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor="dark"==Q;var ja=null;try{ja=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!l,Q)}finally{mxUtils.lightDarkColorSupported=Y,mxUtils.preferDarkColor=aa}Q=ja.getElementsByTagName("a");if(null!=Q)for(Y=-0;Y<Q.length;Y++)aa=Q[Y].getAttribute("href"),null!=aa&&"#"==aa.charAt(0)&&"_blank"==Q[Y].getAttribute("target")&&Q[Y].removeAttribute("target");q&&ja.setAttribute("content",this.getFileData(!0,null,null,null,null,!V));f&&this.editor.graph.addSvgShadow(ja);if(l){var ka=" ",ua="";q&&(ka="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"++null,!0,l?2:1,null,f,null,null,Editor.defaultBorder);else if(this.isRemoteExportEnabled())if(f=this.getFileData(!0),fa.width*fa.height<=MAX_AREA&&f.length<=MAX_REQUEST_SIZE){var aa="";l&&(aa="&w="+Math.round(2*fa.width)+"&h="+Math.round(2*fa.height));var ja=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(q?"1":"0")+aa+"&xml="+encodeURIComponent(f));ja.send(mxUtils.bind(this,function(){200<=ja.getStatus()&&299>=ja.getStatus()?K("data:image/png;base64,"+ja.getText()):V({message:mxResources.get("unknownError")})}))}else V({message:mxResources.get("drawingTooLarge")});+else V({message:mxResources.get("notAvailable")})};EditorUi.prototype.createEmbedSvg=function(c,f,l,q,x,A,E,J,Q,V,K){Q=null!=Q?Q:"auto";V=null!=V?V:!0;var fa=this.getSelectedPageIndex(),Y=mxUtils.lightDarkColorSupported,aa=mxUtils.preferDarkColor;if("light"==Q||"dark"==Q)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor="dark"==Q;var ja=null;try{ja=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!l,Q)}finally{mxUtils.lightDarkColorSupported=Y,mxUtils.preferDarkColor=+aa}Q=ja.getElementsByTagName("a");if(null!=Q)for(Y=0;Y<Q.length;Y++)aa=Q[Y].getAttribute("href"),null!=aa&&"#"==aa.charAt(0)&&"_blank"==Q[Y].getAttribute("target")&&Q[Y].removeAttribute("target");q&&ja.setAttribute("content",this.getFileData(!0,null,null,null,null,!V));f&&this.editor.graph.addSvgShadow(ja);if(l){var ka=" ",ua="";q&&(ka="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(V&&null!=fa?"&page="+fa:"")+(x?"&edit=_blank":"")+(A?"&layers=1":"")+(E?"&link-icons=1":"")+(J?"&tooltip-icons=1":"")+"');}})(this);\"",ua+="cursor:pointer;");c&&(ua+="max-width:100%;");this.editor.convertImages(ja,mxUtils.bind(this,function(Ca){K('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(Ca))+'"'+(""!=ua?' style="'+ua+'"':"")+ka+"/>")}))}else ua="",q&&(ja.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(V&&null!=fa?"&page="+fa:"")+(x?"&edit=_blank":"")+(A?"&layers=1":"")+(E?"&link-icons=1":"")+(J?"&tooltip-icons=1":"")+"');}}})(this);"),ua+="cursor:pointer;"),c&&(c=parseInt(ja.getAttribute("width")),f=parseInt(ja.getAttribute("height")),ja.setAttribute("viewBox","-0.5 -0.5 "+c+" "+f),ua+="max-width:100%;max-height:"+f+"px;",ja.removeAttribute("height")),""!=ua&&(c=ja.getAttribute("style"),ja.setAttribute("style",(null!=c&&0<c.length?c+" ":"")+ua)),this.editor.addFontCss(ja),this.editor.graph.mathEnabled&&this.editor.addMathCss(ja),K(mxUtils.getXml(ja))};EditorUi.prototype.timeSince=function(c){c=Math.floor((new Date-c)/1E3);var f=Math.floor(c/31536E3);if(1<f)return f+" "+mxResources.get("years");f=Math.floor(c/2592E3);if(1<f)return f+" "+mxResources.get("months");f=Math.floor(c/86400);if(1<f)return f+" "+mxResources.get("days");f=Math.floor(c/3600);if(1<f)return f+" "+mxResources.get("hours");f=Math.floor(c/60);return 1<f?f+" "+mxResources.get("minutes"):1==f?f+" "+@@ -4423,15 +4425,15 @@ function(c){return{notes:null!=c&&"true"==c.getAttribute("notes")}};EditorUi.prothis.editor.graph.setBackgroundImage;var Q=this.pages[0];this.currentPage==Q?A.setBackgroundImage(this.editor.graph.backgroundImage):null!=Q.viewState&&null!=Q.viewState&&A.setBackgroundImage(Q.viewState.backgroundImage);A.getGlobalVariable=function(V){return"page"==V?Q.getName():"pagenumber"==V?1:J.apply(this,arguments)};document.body.appendChild(A.container);A.model.setRoot(Q.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(V){try{null==E&&(E=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var K=V.toDataURL("image/png");K=Editor.writeGraphModelToPng(K,"tEXt","mxfile",encodeURIComponent(E));c(K.substring(K.lastIndexOf(",")+1));A!=this.editor.graph&&A.container.parentNode.removeChild(A.container)}catch(fa){null!=f&&f(fa)}}),null,null,null,mxUtils.bind(this,function(V){null!=f&&f(V)}),null,null,q,null,A.shadowVisible,null,A,x,null,null,null,"diagram",null)}catch(V){null!=f&&f(V)}};EditorUi.prototype.getSvgWithFontLookup=function(c,f,l){var q=Graph.addFont;Graph.addFont=function(A,E,J,Q){q.call(this,A,E,J,c)};var x=f.drawCellState;f.drawCellState=function(A,E){null!=A&&Graph.processFontStyle(A.style);x.apply(this,arguments)};try{return l()}finally{Graph.addFont=q}};EditorUi.prototype.getEmbeddedSvg=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja){J=null!=J?J:!0;K=null!=K?K:0;var ka=null!=Q?Q:f.background;ka==mxConstants.NONE&&(ka=null);null==ka&&"none"==f.getAdaptiveColors()&&(ka="#ffffff");var ua=this.editor.graph.createSvgImageExport(null!=c,aa);E=Object.create(null);-Q=this.getSvgWithFontLookup(E,ua,function(){return f.getSvg(ka,V,K,null,null,A,null,ua,null,f.shadowVisible||fa,null,Y,"diagram")});(f.shadowVisible||fa)&&f.addSvgShadow(Q,null,null,0==K);null!=c&&Q.setAttribute("content",c);null!=l&&Q.setAttribute("resource",l);var Ca=mxUtils.bind(this,function(v){v=(q?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(v);null!=x&&x(v);return v});f.mathEnabled&&this.editor.addMathCss(Q);if(null!=x)this.embedFonts(Q,mxUtils.bind(this,-function(v){J?this.editor.convertImages(v,mxUtils.bind(this,function(H){Ca(H)})):Ca(v)}),ja,E);else{var ia=!1;this.embedFonts(Q,function(){ia=!0},ja,E);if(!ia)try{null==this.editor.resolvedFontCss&&this.editor.addFontCss(Q);var k=this.editor.graph.getExtFontCss(E);0<k.length&&this.editor.addFontCss(Q,k)}catch(v){}return Ca(Q)}};EditorUi.prototype.embedFonts=function(c,f,l,q){if(l=null!=l?l:Editor.embedSvgFonts)this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&+Q=this.getSvgWithFontLookup(E,ua,function(){return f.getSvg(ka,V,K,null,null,A,null,ua,null,f.shadowVisible||fa,null,Y,"diagram")});(f.shadowVisible||fa)&&f.addSvgShadow(Q,null,null,0==K);null!=c&&Q.setAttribute("content",c);null!=l&&Q.setAttribute("resource",l);var Ca=mxUtils.bind(this,function(u){u=(q?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(u);null!=x&&x(u);return u});f.mathEnabled&&this.editor.addMathCss(Q);if(null!=x)this.embedFonts(Q,mxUtils.bind(this,+function(u){J?this.editor.convertImages(u,mxUtils.bind(this,function(H){Ca(H)})):Ca(u)}),ja,E);else{var ia=!1;this.embedFonts(Q,function(){ia=!0},ja,E);if(!ia)try{null==this.editor.resolvedFontCss&&this.editor.addFontCss(Q);var k=this.editor.graph.getExtFontCss(E);0<k.length&&this.editor.addFontCss(Q,k)}catch(u){}return Ca(Q)}};EditorUi.prototype.embedFonts=function(c,f,l,q){if(l=null!=l?l:Editor.embedSvgFonts)this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&this.editor.addFontCss(c,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(A){try{null!=A&&this.editor.addFontCss(c,A),f(c)}catch(E){f(c)}}),q)}catch(A){f(c)}}));else{try{this.editor.addFontCss(c);var x=this.editor.graph.getExtFontCss(q);0<x.length&&this.editor.addFontCss(c,x)}catch(A){}f(c)}};EditorUi.prototype.exportImage=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y){Q=null!=Q?Q:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(ja){Editor.addRetryToError(ja,mxUtils.bind(this,function(){this.exportImage(c,f,l,q,x,A,E,J,Q,V,K,fa,Y)}));this.handleError(ja)}))){var aa=this.editor.graph.isSelectionEmpty();l=null!=l?l:aa;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(ja){this.spinner.stop();try{this.saveCanvas(ja,x?this.getFileData(!0,null,null,null,l,J,null,null,null,null,null,c,A):null,Q,null==this.pages||0==this.pages.length,K)}catch(ka){this.handleError(ka)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(ja){this.spinner.stop();this.handleError(ja)}),null,l,c||1,f,q,null,null,A,E,V,fa,Y)}catch(ja){this.spinner.stop(),this.handleError(ja)}}};EditorUi.prototype.isCorsEnabledForUrl=function(c){return this.editor.isCorsEnabledForUrl(c)};EditorUi.prototype.addLocalPagesToMapping=function(c){c=null!=c?c:{};if(null!=this.pages)for(var f=0;f<this.pages.length;f++)c[this.pages[f].getId()]=this.pages[f].getId();return c};EditorUi.prototype.importXml=function(c,f,l,q,x,A,E){EditorUi.debug("EditorUi.importXml",[this],"xml",[c],"dx",[f],"dy",[l],"crop",[q],"noErrorHandling",[x],"addNewPage",[A],"applyDefaultStyles",[E]);f=null!=f?f:0;l=null!=l?l:0;var J=[];try{if(null!=c&&0<c.length){var Q=null!=this.pages?this.pages.length:0,V=this.isDiagramEmpty(),K=this.currentPage,fa=this.editor.graph;fa.model.beginUpdate();try{var Y=mxUtils.parseXml(c);c={};var aa=this.editor.extractGraphModel(Y.documentElement,null!=this.pages);if(null!=aa&&"mxfile"==aa.nodeName&&null!=this.pages){var ja=aa.getElementsByTagName("diagram");if(0<ja.length){Y=[];var ka=0;if(1==ja.length&&!A){if(null!=this.currentPage&&(c[ja[0].getAttribute("id")]=this.currentPage.getId(),this.isBlankFile())){var ua=ja[0].getAttribute("name");null!=ua&&""!=ua&&this.editor.graph.model.execute(new RenamePage(this,this.currentPage,ua))}aa=Editor.parseDiagramNode(ja[0]);q=!1;ka=1}for(;ka<ja.length;ka++){var Ca=ja[ka].getAttribute("id");ja[ka].removeAttribute("id");var ia=this.updatePageRoot(new DiagramPage(ja[ka]));c[Ca]=ja[ka].getAttribute("id");var k=this.pages.length;-null==ia.getName()&&ia.setName(mxResources.get("pageWithNumber",[k+1]));fa.model.execute(new ChangePage(this,ia,ia,k,0<ka));Y.push(ia)}this.updatePageLinks(c,Y)}}if(null!=aa&&"mxGraphModel"===aa.nodeName){J=fa.importGraphModel(aa,f,l,q);if(null!=J)for(this.addLocalPagesToMapping(c),ka=0;ka<J.length;ka++)this.updatePageLinksForCell(c,J[ka]);var v=fa.parseBackgroundImage(aa.getAttribute("backgroundImage"));if(null!=v&&null!=v.originalSrc&&this.updateBackgroundPageLink(c,v)){var H=new ChangePageSetup(this,-null,v);H.ignoreColor=!0;fa.model.execute(H)}}E&&fa.pasteCellStyles(fa.includeDescendants(J),fa.defaultVertexStyle,fa.defaultEdgeStyle);!A&&K!=this.currentPage&&null!=this.pages&&1<this.pages.length&&V&&1==Q&&this.removePage(K)}finally{fa.model.endUpdate()}}}catch(P){if(x)throw P;this.handleError(P)}return J};EditorUi.prototype.updatePageLinks=function(c,f){for(var l=0;l<f.length;l++)this.updatePageLinksForCell(c,f[l].root),f[l]!=this.currentPage&&(f[l].needsUpdate=!0),null!=f[l].viewState&&this.updateBackgroundPageLink(c,+null==ia.getName()&&ia.setName(mxResources.get("pageWithNumber",[k+1]));fa.model.execute(new ChangePage(this,ia,ia,k,0<ka));Y.push(ia)}this.updatePageLinks(c,Y)}}if(null!=aa&&"mxGraphModel"===aa.nodeName){J=fa.importGraphModel(aa,f,l,q);if(null!=J)for(this.addLocalPagesToMapping(c),ka=0;ka<J.length;ka++)this.updatePageLinksForCell(c,J[ka]);var u=fa.parseBackgroundImage(aa.getAttribute("backgroundImage"));if(null!=u&&null!=u.originalSrc&&this.updateBackgroundPageLink(c,u)){var H=new ChangePageSetup(this,+null,u);H.ignoreColor=!0;fa.model.execute(H)}}E&&fa.pasteCellStyles(fa.includeDescendants(J),fa.defaultVertexStyle,fa.defaultEdgeStyle);!A&&K!=this.currentPage&&null!=this.pages&&1<this.pages.length&&V&&1==Q&&this.removePage(K)}finally{fa.model.endUpdate()}}}catch(P){if(x)throw P;this.handleError(P)}return J};EditorUi.prototype.updatePageLinks=function(c,f){for(var l=0;l<f.length;l++)this.updatePageLinksForCell(c,f[l].root),f[l]!=this.currentPage&&(f[l].needsUpdate=!0),null!=f[l].viewState&&this.updateBackgroundPageLink(c,f[l].viewState.backgroundImage)&&(f[l]==this.currentPage&&this.editor.graph.setViewState(f[l].viewState,!0),f[l].needsUpdate=!0)};EditorUi.prototype.updateBackgroundPageLink=function(c,f){var l=!1;try{if(null!=f&&Graph.isPageLink(f.originalSrc)){var q=c[f.originalSrc.substring(f.originalSrc.indexOf(",")+1)];null!=q&&(f.originalSrc="data:page/id,"+q,l=!0)}}catch(x){}return l};EditorUi.prototype.updatePageLinksForCell=function(c,f){var l=document.createElement("div"),q=this.editor.graph,x=q.getLinkForCell(f);null!=x&&q.setLinkForCell(f,this.updatePageLink(c,x));if(q.isHtmlLabel(f)){l.innerHTML=Graph.sanitizeHtml(q.getLabel(f));for(var A=l.getElementsByTagName("a"),E=!1,J=0;J<A.length;J++)x=A[J].getAttribute("href"),null!=x&&(A[J].setAttribute("href",this.updatePageLink(c,x)),E=!0);E&&q.labelChanged(f,l.innerHTML)}for(J=0;J<q.model.getChildCount(f);J++)this.updatePageLinksForCell(c,q.model.getChildAt(f,J))};EditorUi.prototype.updatePageLink=function(c,f){if(Graph.isPageLink(f)){var l=c[f.substring(f.indexOf(",")+1)];f=null!=l?"data:page/id,"+l:null}else if("data:action/json,"==f.substring(0,17))try{var q=JSON.parse(f.substring(17));if(null!=q.actions){for(var x=0;x<q.actions.length;x++){var A=q.actions[x];if(null!=A.open&&Graph.isPageLink(A.open)){var E=A.open.substring(A.open.indexOf(",")+1);l=c[E];null!=l?A.open="data:page/id,"+l:null==this.getPageById(E)&&delete A.open}}f="data:action/json,"+JSON.stringify(q)}}catch(J){}return f};EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||@@ -4493,16 +4495,16 @@ function(c,f,l,q,x,A,E,J,Q,V,K,fa){V=null!=V?V:!0;var Y=!1,aa=null,ja=mxUtils.binull),Q=!0)),Q||(K=this.editor.graph,Q=c.indexOf(";"),0<Q&&(c=c.substring(0,Q)+c.substring(c.indexOf(",",Q+1))),V&&K.isGridEnabled()&&(l=K.snap(l),q=K.snap(q)),Q="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;","image/svg"==f.substring(0,9)&&(Q+="editableCssRules=.*;"),aa=[K.insertVertex(null,null,"",l,q,x,A,Q+"image="+c+";")]);else if(/(\.*<graphml )/.test(c))Y=!0,this.importGraphML(c,ja);else if(null!=Q&&null!=E&&EditorUi.isVisioFilename(E))Y=!0,this.importVisio(Q,ja);else if(this.isGliffyData(c,E)){Y=!0;var ka=mxUtils.bind(this,function(Ca){this.importGliffy(Ca,ja,mxUtils.bind(this,function(ia){null!=J&&(J(null),this.showError(mxResources.get("error"),null!=ia&&413==ia.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError")))}),E)});if(null!=c)ka(c);else{var ua=new FileReader;ua.onload=function(){ka(ua.result)};ua.readAsText(Q)}}else 0==c.indexOf("PK")&&null!=Q?(Y=!0,this.importZipFile(Q,ja,mxUtils.bind(this,function(){aa=this.insertTextAt(this.validateFileData(c),l,q,!0,null,V);J(aa)}))):/(\.v(sd|dx))($|\?)/i.test(E)||/(\.vs(s|x))($|\?)/i.test(E)||(aa=this.insertTextAt(this.validateFileData(c),l,q,!0,null,V,null,null!=fa?mxEvent.isControlDown(fa):null));Y||null==J||J(aa);return aa};EditorUi.prototype.importFiles=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y){q=null!=q?q:this.maxImageSize;V=null!=V?V:this.maxImageBytes;var aa=null!=f&&null!=l,ja=!0;f=null!=f?f:0;l=null!=l?l:0;var ka=!1;if(!mxClient.IS_CHROMEAPP&&null!=c)for(var ua=-K||this.resampleThreshold,Ca=0;Ca<c.length;Ca++)if("image/svg"!==c[Ca].type.substring(0,9)&&"image/"===c[Ca].type.substring(0,6)&&c[Ca].size>ua){ka=!0;break}EditorUi.debug("EditorUi.importFiles",[this],"files",[c],"x",[f],"y",[l],"maxSize",[q],"maxBytes",[V],"resampleThreshold",[this.resampleThreshold],"largeImages",[ka],"crop",[aa],"resizeImages",[ja],"ignoreEmbeddedXml",[fa],"evt",[Y]);var ia=mxUtils.bind(this,function(){var k=this.editor.graph,v=k.gridSize;x=null!=x?x:mxUtils.bind(this,function(ea,+K||this.resampleThreshold,Ca=0;Ca<c.length;Ca++)if("image/svg"!==c[Ca].type.substring(0,9)&&"image/"===c[Ca].type.substring(0,6)&&c[Ca].size>ua){ka=!0;break}EditorUi.debug("EditorUi.importFiles",[this],"files",[c],"x",[f],"y",[l],"maxSize",[q],"maxBytes",[V],"resampleThreshold",[this.resampleThreshold],"largeImages",[ka],"crop",[aa],"resizeImages",[ja],"ignoreEmbeddedXml",[fa],"evt",[Y]);var ia=mxUtils.bind(this,function(){var k=this.editor.graph,u=k.gridSize;x=null!=x?x:mxUtils.bind(this,function(ea,oa,la,ca,ta,xa,qa,Ba,na){try{if(null!=ea&&"<mxlibrary"==ea.substring(0,10))return this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,ea,qa)),this.showSidebar(),null;this.isCompatibleString(ea)&&1==c.length&&null!=Y&&"drop"==Y.type&&this.isBlankFile()&&!this.canUndo()&&(aa=!1,ca=la=0);return this.importFile(ea,oa,la,ca,ta,xa,qa,Ba,na,aa,fa,Y)}catch(ra){return this.handleError(ra),null}});A=null!=A?A:mxUtils.bind(this,function(ea){k.setSelectionCells(ea)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var H=this.currentPage,P=c.length,T=P,W=[],ha=mxUtils.bind(this,function(ea,oa){W[ea]=oa;if(0==--T){this.spinner.stop();if(null!=J)J(W);else{var la=[];k.getModel().beginUpdate();try{for(ea=0;ea<W.length;ea++){var ca=W[ea]();null!=ca&&(la=la.concat(ca))}}finally{k.getModel().endUpdate()}}H!=this.currentPage&&window.setTimeout(mxUtils.bind(this,function(){this.actions.get("resetView").funct()}),0);A(la)}}),X=0;X<P;X++)mxUtils.bind(this,function(ea){var oa=c[ea];if(null!=oa){var la=new FileReader;la.onload=mxUtils.bind(this,function(ca){if(null==E||E(oa))try{if("image/"==oa.type.substring(0,6))if("image/svg"==oa.type.substring(0,9)){var ta=Graph.clipSvgDataUri(ca.target.result),xa=ta.indexOf(","),qa=decodeURIComponent(escape(atob(ta.substring(xa+1)))),Ba=mxUtils.parseXml(qa),na=Ba.getElementsByTagName("svg");if(0<na.length){var ra=na[0],va=fa?null:ra.getAttribute("content");null!=va&&"<"!=va.charAt(0)&&"%"!=va.charAt(0)&&(va=unescape(window.atob?atob(va):Base64.decode(va,!0)));null!=va&&"%"==va.charAt(0)&&(va=decodeURIComponent(va));null==va||"<mxfile "!==va.substring(0,8)&&"<mxGraphModel>"!==va.substring(0,14)&&"<mxGraphModel "!==va.substring(0,14)?ha(ea,mxUtils.bind(this,function(){try{if(null!=Ba){var Ga=Ba.getElementsByTagName("svg");if(0<Ga.length){var Da=Ga[0],Qa=Da.getAttribute("width"),Ka=Da.getAttribute("height");Qa=null!=Qa&&"%"!=Qa.charAt(Qa.length-1)?parseFloat(Qa):NaN;Ka=null!=Ka&&"%"!=Ka.charAt(Ka.length-1)?parseFloat(Ka):NaN;var Na=Da.getAttribute("viewBox");-if(null==Na||0==Na.length)Da.setAttribute("viewBox","0 0 "+Qa+" "+Ka);else if(isNaN(Qa)||isNaN(Ka)){var Oa=Na.split(" ");3<Oa.length&&(Qa=parseFloat(Oa[2]),Ka=parseFloat(Oa[3]))}ta=Editor.createSvgDataUri(mxUtils.getXml(Da));var Fa=Math.min(1,Math.min(q/Math.max(1,Qa)),q/Math.max(1,Ka)),Aa=x(ta,oa.type,f+ea*v,l+ea*v,Math.max(1,Math.round(Qa*Fa)),Math.max(1,Math.round(Ka*Fa)),oa.name);if(null!=Aa&&(isNaN(Qa)||isNaN(Ka))){var Ja=new Image;Ja.onload=mxUtils.bind(this,function(){Qa=Math.max(1,Ja.width);-Ka=Math.max(1,Ja.height);Aa[0].geometry.width=Qa;Aa[0].geometry.height=Ka;Da.setAttribute("viewBox","0 0 "+Qa+" "+Ka);ta=Editor.createSvgDataUri(mxUtils.getXml(Da));var Ia=ta.indexOf(";");0<Ia&&(ta=ta.substring(0,Ia)+ta.substring(ta.indexOf(",",Ia+1)));k.setCellStyles("image",ta,[Aa[0]])});Ja.src=Editor.createSvgDataUri(mxUtils.getXml(Da))}return Aa}}}catch(Ia){}return null})):ha(ea,mxUtils.bind(this,function(){return x(va,"text/xml",f+ea*v,l+ea*v,0,0,oa.name)}))}else ha(ea,mxUtils.bind(this,function(){return null}))}else{xa=-!1;if("image/png"==oa.type){var Ha=fa?null:this.extractGraphModelFromPng(ca.target.result);if(null!=Ha&&0<Ha.length){var La=new Image;La.src=ca.target.result;ha(ea,mxUtils.bind(this,function(){return x(Ha,"text/xml",f+ea*v,l+ea*v,La.width,La.height,oa.name)}));xa=!0}}xa||(mxClient.IS_CHROMEAPP?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("dragAndDropNotSupported"),mxResources.get("cancel"),mxUtils.bind(this,function(){}),null,mxResources.get("ok"),mxUtils.bind(this,-function(){this.actions.get("import").funct()}))):this.loadImage(ca.target.result,mxUtils.bind(this,function(Ga){this.resizeImage(Ga,Editor.stripImageMetadata(ca.target.result,Editor.removeImageMetadata),mxUtils.bind(this,function(Da,Qa,Ka){ha(ea,mxUtils.bind(this,function(){if(null!=Da&&Da.length<V){var Na=ja&&this.isResampleImageSize(oa.size,K)?Math.min(1,Math.min(q/Qa,q/Ka)):1;return x(Da,oa.type,f+ea*v,l+ea*v,Math.round(Qa*Na),Math.round(Ka*Na),oa.name)}this.handleError({message:mxResources.get("imageTooBig")});-return null}))}),ja,q,K,oa.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else ta=ca.target.result,x(ta,oa.type,f+ea*v,l+ea*v,240,160,oa.name,function(Ga){ha(ea,function(){return Ga})},oa)}catch(Ga){ha(ea,mxUtils.bind(this,function(){return null})),null!=window.console&&console.error(Ga,oa)}else ha(ea,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(oa.name)?x(null,oa.type,f+ea*v,l+ea*v,240,160,oa.name,function(ca){ha(ea,+if(null==Na||0==Na.length)Da.setAttribute("viewBox","0 0 "+Qa+" "+Ka);else if(isNaN(Qa)||isNaN(Ka)){var Oa=Na.split(" ");3<Oa.length&&(Qa=parseFloat(Oa[2]),Ka=parseFloat(Oa[3]))}ta=Editor.createSvgDataUri(mxUtils.getXml(Da));var Fa=Math.min(1,Math.min(q/Math.max(1,Qa)),q/Math.max(1,Ka)),Aa=x(ta,oa.type,f+ea*u,l+ea*u,Math.max(1,Math.round(Qa*Fa)),Math.max(1,Math.round(Ka*Fa)),oa.name);if(null!=Aa&&(isNaN(Qa)||isNaN(Ka))){var Ja=new Image;Ja.onload=mxUtils.bind(this,function(){Qa=Math.max(1,Ja.width);+Ka=Math.max(1,Ja.height);Aa[0].geometry.width=Qa;Aa[0].geometry.height=Ka;Da.setAttribute("viewBox","0 0 "+Qa+" "+Ka);ta=Editor.createSvgDataUri(mxUtils.getXml(Da));var Ia=ta.indexOf(";");0<Ia&&(ta=ta.substring(0,Ia)+ta.substring(ta.indexOf(",",Ia+1)));k.setCellStyles("image",ta,[Aa[0]])});Ja.src=Editor.createSvgDataUri(mxUtils.getXml(Da))}return Aa}}}catch(Ia){}return null})):ha(ea,mxUtils.bind(this,function(){return x(va,"text/xml",f+ea*u,l+ea*u,0,0,oa.name)}))}else ha(ea,mxUtils.bind(this,function(){return null}))}else{xa=+!1;if("image/png"==oa.type){var Ha=fa?null:this.extractGraphModelFromPng(ca.target.result);if(null!=Ha&&0<Ha.length){var La=new Image;La.src=ca.target.result;ha(ea,mxUtils.bind(this,function(){return x(Ha,"text/xml",f+ea*u,l+ea*u,La.width,La.height,oa.name)}));xa=!0}}xa||(mxClient.IS_CHROMEAPP?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("dragAndDropNotSupported"),mxResources.get("cancel"),mxUtils.bind(this,function(){}),null,mxResources.get("ok"),mxUtils.bind(this,+function(){this.actions.get("import").funct()}))):this.loadImage(ca.target.result,mxUtils.bind(this,function(Ga){this.resizeImage(Ga,Editor.stripImageMetadata(ca.target.result,Editor.removeImageMetadata),mxUtils.bind(this,function(Da,Qa,Ka){ha(ea,mxUtils.bind(this,function(){if(null!=Da&&Da.length<V){var Na=ja&&this.isResampleImageSize(oa.size,K)?Math.min(1,Math.min(q/Qa,q/Ka)):1;return x(Da,oa.type,f+ea*u,l+ea*u,Math.round(Qa*Na),Math.round(Ka*Na),oa.name)}this.handleError({message:mxResources.get("imageTooBig")});+return null}))}),ja,q,K,oa.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else ta=ca.target.result,x(ta,oa.type,f+ea*u,l+ea*u,240,160,oa.name,function(Ga){ha(ea,function(){return Ga})},oa)}catch(Ga){ha(ea,mxUtils.bind(this,function(){return null})),null!=window.console&&console.error(Ga,oa)}else ha(ea,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(oa.name)?x(null,oa.type,f+ea*u,l+ea*u,240,160,oa.name,function(ca){ha(ea,function(){return ca})},oa):"image"==oa.type.substring(0,5)||"application/pdf"==oa.type?la.readAsDataURL(oa):la.readAsText(oa)}})(X)});if(ka){ka=[];for(Ca=0;Ca<c.length;Ca++)ka.push(c[Ca]);c=ka;this.confirmImageResize(function(k){ja=k;ia()},Q)}else ia()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(c,f){f=null!=f?f:!1;var l=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},q=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,x=function(A,E){if(A||f)mxSettings.setResizeImages(A?E:null),mxSettings.save();l();c(E)};null==q||f?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(A){x(A,!0)},function(A){x(A,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?226:200,!0,!0):x(!1,q)};EditorUi.prototype.isResampleImageSize=function(c,f){f=null!=f?f:this.resampleThreshold;return c>f};EditorUi.prototype.resizeImage=function(c,f,l,q,x,A,E){x=null!=x?x:this.maxImageSize;var J=Math.max(1,c.width),Q=Math.max(1,c.height),V=f;if(q&&this.isResampleImageSize(null!=E?E:f.length,A))try{var K=Math.max(J/x,Q/x);if(1<K){var fa=Math.round(J/K),Y=Math.round(Q/@@ -4537,8 +4539,8 @@ ca);var qa=f.getModel().getGeometry(ta);null!=qa&&null!=qa.points&&0<qa.points.lfunction(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}q=mxUtils.bind(this,function(){this.updateCommentOverlays()});this.addListener("commentsChanged",q);this.addListener("darkModeChanged",q);this.editor.addListener("pageSelected",q);this.editor.addListener("fileLoaded",mxUtils.bind(this,function(){this.commentOverlays=null;this.refreshCommentCache()}));if(Editor.passiveScroll){var ua=f.getCenterInsertPoint;f.getCenterInsertPoint=function(ca){if(null!=this._contextMenuPoint){var ta=this._contextMenuPoint;ca=null!=ca?ca:new mxRectangle;return new mxPoint(f.snap(ta.x-(ca.width||0)/2),f.snap(ta.y-(ca.height||0)/2))}return ua.apply(this,arguments)};var Ca=f.popupMenuHandler.hideMenu;f.popupMenuHandler.hideMenu=function(){Ca.apply(this,arguments);window.setTimeout(function(){f._contextMenuPoint=null;f._contextMenuScreenPoint=null},0)}}this.dependsOnLanguage(mxUtils.bind(this,function(){this.defaultFilename=mxResources.get("untitledDiagram");this.defaultLibraryName=mxResources.get("untitledLibrary")}));var ia=f.getExportVariables;f.getExportVariables=function(){var ca=ia.apply(this,arguments),ta=c.getCurrentFile();null!=ta&&(ca.filename=ta.getTitle());c.updateFileVars();if(null!=c.fileVars)for(var xa in c.fileVars)null==ca[xa]&&(ca[xa]=c.fileVars[xa]);ca.pagecount=null!=c.pages?c.pages.length:1;ca.page=null!=c.currentPage?c.currentPage.getName():"";ca.pagenumber=null!=c.pages&&null!=c.currentPage?mxUtils.indexOf(c.pages,-c.currentPage)+1:1;return ca};var k=f.getGlobalVariable;f.getGlobalVariable=function(ca){var ta=c.getCurrentFile();if("filename"==ca&&null!=ta)return ta.getTitle();if("page"==ca&&null!=c.currentPage)return c.currentPage.getName();if("pagenumber"==ca)return null!=c.currentPage&&null!=c.pages?mxUtils.indexOf(c.pages,c.currentPage)+1:1;if("pagecount"==ca)return null!=c.pages?c.pages.length:1;ta=k.apply(this,arguments);null==ta&&(c.updateFileVars(),null!=c.fileVars&&(ta=c.fileVars[ca]));return ta};var v=-null,H=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var ca=this.getCurrentFile(),ta=null!=ca&&null!=ca.getTitle()?ca.getTitle():this.defaultFilename;v!=ta&&ca==H&&(f.invalidateDescendantsWithPlaceholders(f.model.getRoot()),f.view.validate());v=ta;H=ca}));var P=f.labelLinkClicked;f.labelLinkClicked=function(ca,ta,xa){var qa=ta.getAttribute("href");if(null==qa||!f.isCustomLink(qa)||!mxEvent.isTouchEvent(xa)&&mxEvent.isPopupTrigger(xa))P.apply(this,arguments);else{if(!f.isEnabled()||+c.currentPage)+1:1;return ca};var k=f.getGlobalVariable;f.getGlobalVariable=function(ca){var ta=c.getCurrentFile();if("filename"==ca&&null!=ta)return ta.getTitle();if("page"==ca&&null!=c.currentPage)return c.currentPage.getName();if("pagenumber"==ca)return null!=c.currentPage&&null!=c.pages?mxUtils.indexOf(c.pages,c.currentPage)+1:1;if("pagecount"==ca)return null!=c.pages?c.pages.length:1;ta=k.apply(this,arguments);null==ta&&(c.updateFileVars(),null!=c.fileVars&&(ta=c.fileVars[ca]));return ta};var u=+null,H=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var ca=this.getCurrentFile(),ta=null!=ca&&null!=ca.getTitle()?ca.getTitle():this.defaultFilename;u!=ta&&ca==H&&(f.invalidateDescendantsWithPlaceholders(f.model.getRoot()),f.view.validate());u=ta;H=ca}));var P=f.labelLinkClicked;f.labelLinkClicked=function(ca,ta,xa){var qa=ta.getAttribute("href");if(null==qa||!f.isCustomLink(qa)||!mxEvent.isTouchEvent(xa)&&mxEvent.isPopupTrigger(xa))P.apply(this,arguments);else{if(!f.isEnabled()||null!=ca&&f.isCellLocked(ca.cell))f.customLinkClicked(qa),f.getRubberband().reset();mxEvent.consume(xa)}};this.editor.getOrCreateFilename=function(){var ca=c.defaultFilename,ta=c.getCurrentFile();null!=ta&&(ca=null!=ta.getTitle()?ta.getTitle():ca);return ca};q=this.actions.get("print");q.setEnabled(!mxClient.IS_IOS||!navigator.standalone);q.visible=q.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(77,!0,"editGeometry",!0),this.keyHandler.bindAction(75,!0,"tags"),this.keyHandler.bindAction(65,!1,"insertText"),this.keyHandler.bindAction(83,!1,"insertNote"),this.keyHandler.bindAction(68,!1,"insertRectangle"),this.keyHandler.bindAction(70,!1,"insertEllipse"),this.keyHandler.bindAction(76,!1,"insertLink"),this.keyHandler.bindAction(82,!1,"insertRhombus"),this.keyHandler.bindAction(67,!1,"insertEdge"),this.keyHandler.bindAction(88,!1,"insertFreehand"),this.keyHandler.bindAction(75,!0,"toggleShapes",!0),this.keyHandler.bindAction(54,!0,"adaptiveColors",!0),this.altShiftActions[81]="copyStyle",this.altShiftActions[87]="pasteStyle",this.altShiftActions[83]="synchronize",this.ctrlAltActions[84]="runLastLayout",this.installKeyboardShortcuts(),"1"==urlParams.embedInline&&(document.body.classList.add("geEmbedInline"),Editor.passiveScroll&&document.body.classList.add("geInlineNoUi"),Editor.passiveScroll||f.addListener(mxEvent.ESCAPE,function(ca,ta){null!=ta&&f.isEnabled()&&!f.isEditing()&&null!=ta.getProperty("event")&&c.actions.get("exit").funct()})),@@ -4599,8 +4601,8 @@ f=0:0<=c.indexOf("bottom")&&(f=q-E);J=Math.max(0,Math.min(J,l-A));f=Math.max(0,Mvar x=this.dockManager,A=!1,E=null,J=q.setLocation;q.setLocation=function(K,fa){(null==this.dockState||this._undocking||this._relayouting)&&J.call(this,K,fa)};var Q=q.setSize;q.setSize=function(K,fa){if(null!=this.dockState){mxWindow.prototype.setSize.call(this,K,fa);K=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;fa=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var Y=parseInt(this.div.style.width),aa=parseInt(this.div.style.height),ja=this.getX(),ka=this.getY();this._dockOffsetX=this._dockAnchorRight?K-ja-Y:ja;this._dockOffsetY=this._dockAnchorBottom?fa-ka-aa:ka;x.pinToEdge(this)}else Q.call(this,K,fa)};q.addListener(mxEvent.MOVE_START,function(K,fa){A=!0;E=null;null!=q.dockState&&(q._undocking=!0,x.undock(q),q._undocking=!1)});q.addListener(mxEvent.MOVE,function(K,fa){A&&(K=x.getDockZone(q.getX(),q.getY(),q.div),K!=E&&(E=K,null!=K?x.showPreview(K,q):x.hidePreview()))});q.addListener(mxEvent.MOVE_END,function(K,fa){A=!1;x.hidePreview();null!=E&&x.dock(q,E);E=null});q.addListener(mxEvent.DOCK,function(K,fa){if(null!=q.resize){K=fa.getProperty("side");var Y=0<=K.indexOf("right"),aa=0<=K.indexOf("bottom");if(Y||aa){K=q.resize;K.parentNode.removeChild(K);q.resize=null;K=document.createElement("img");K.style.position="absolute";K.style.zIndex="2";K.setAttribute("src",mxWindow.prototype.resizeImage);Y?K.style.left="0px":K.style.right="0px";aa?K.style.top="0px":K.style.bottom="0px";K.style.cursor=Y!=aa?"nesw-resize":"nwse-resize";var ja=-null,ka=null,ua=null,Ca=null,ia=function(v){if(null!=ja&&null!=ka){var H=mxEvent.getClientX(v)-ja,P=mxEvent.getClientY(v)-ka;q.setSize(Y?ua-H:ua+H,aa?Ca-P:Ca+P);q.fireEvent(new mxEventObject(mxEvent.RESIZE,"event",v));mxEvent.consume(v)}},k=function(v){null!=ja&&null!=ka&&(ka=ja=null,mxEvent.removeGestureListeners(document,null,ia,k),q.fireEvent(new mxEventObject(mxEvent.RESIZE_END,"event",v)),mxEvent.consume(v))};mxEvent.addGestureListeners(K,function(v){q.activate();ja=mxEvent.getClientX(v);ka=-mxEvent.getClientY(v);ua=q.div.offsetWidth;Ca=q.div.offsetHeight;mxEvent.addGestureListeners(document,null,ia,k);q.fireEvent(new mxEventObject(mxEvent.RESIZE_START,"event",v));mxEvent.consume(v)},ia,k);q.div.appendChild(K);q.resize=K;q._dockResize=!0}}});q.addListener(mxEvent.UNDOCK,function(K,fa){q._dockResize&&(null!=q.resize&&(q.resize.parentNode.removeChild(q.resize),q.resize=null),q.setResizable(!0),q._dockResize=!1)});q.addListener(mxEvent.NORMALIZE,function(K,fa){null!=q.dockState&&x.pinToEdge(q)});+null,ka=null,ua=null,Ca=null,ia=function(u){if(null!=ja&&null!=ka){var H=mxEvent.getClientX(u)-ja,P=mxEvent.getClientY(u)-ka;q.setSize(Y?ua-H:ua+H,aa?Ca-P:Ca+P);q.fireEvent(new mxEventObject(mxEvent.RESIZE,"event",u));mxEvent.consume(u)}},k=function(u){null!=ja&&null!=ka&&(ka=ja=null,mxEvent.removeGestureListeners(document,null,ia,k),q.fireEvent(new mxEventObject(mxEvent.RESIZE_END,"event",u)),mxEvent.consume(u))};mxEvent.addGestureListeners(K,function(u){q.activate();ja=mxEvent.getClientX(u);ka=+mxEvent.getClientY(u);ua=q.div.offsetWidth;Ca=q.div.offsetHeight;mxEvent.addGestureListeners(document,null,ia,k);q.fireEvent(new mxEventObject(mxEvent.RESIZE_START,"event",u));mxEvent.consume(u)},ia,k);q.div.appendChild(K);q.resize=K;q._dockResize=!0}}});q.addListener(mxEvent.UNDOCK,function(K,fa){q._dockResize&&(null!=q.resize&&(q.resize.parentNode.removeChild(q.resize),q.resize=null),q.setResizable(!0),q._dockResize=!1)});q.addListener(mxEvent.NORMALIZE,function(K,fa){null!=q.dockState&&x.pinToEdge(q)});q.addListener(mxEvent.MAXIMIZE,function(K,fa){null!=q.dockState&&(q._undocking=!0,x.undock(q),q._undocking=!1)});q.addListener(mxEvent.SHOW,function(K,fa){null!=q.dockState&&x.pinToEdge(q)});var V=c.destroy;c.destroy=function(){x.removeWindow(q);V.apply(this,arguments)}}};EditorUi.prototype.switchThemeConstants=function(c){var f=this.editor.graph;f.defaultEdgeLength=Graph.prototype.defaultEdgeLength;f.defaultGridEnabled=Graph.prototype.defaultGridEnabled;f.defaultPageVisible=Graph.prototype.defaultPageVisible;null!=this.menus&&(this.menus.autoPopup="simple"!=c&&"sketch"!=c);if("simple"==c||"sketch"==c){Editor.fitWindowBorders=new mxRectangle(60,30,30,30);if(null==Editor.config||null==Editor.config.defaultEdgeLength)f.defaultEdgeLength=120;null==urlParams.grid&&(f.defaultGridEnabled=!1);null==urlParams.pv&&(f.defaultPageVisible=!1)}else Editor.fitWindowBorders=null};EditorUi.prototype.isPageMenuVisible=function(){return null!=this.pages&&("0"!=urlParams.pages||1<this.pages.length||Editor.pagesVisible)};EditorUi.prototype.isThemeMenuVisible=function(){return("1"!=urlParams.embed||"1"==urlParams.themes&&null==urlParams.ui&&"1"!=urlParams.sketch)&&"1"!=urlParams.extAuth&&this.mode!=App.MODE_ATLAS};EditorUi.prototype.switchCssForTheme=function(c){};EditorUi.prototype.createMainMenuForTheme=function(c){};EditorUi.prototype.createFooterMenuForTheme=function(c){};EditorUi.prototype.createPickerMenuForTheme=function(c){};EditorUi.prototype.getNetworkStatus=function(){var c=null;if(this.isOffline(!0))c=@@ -4662,7 +4664,7 @@ mxUtils.sortCells(f.getExportableCells(f.model.getTopmostCells(f.getSelectionCel(E.lastPasteXml=c,E.pasteCounter=0);var Q=E.pasteCounter*E.gridSize;if(l||this.isCompatibleString(c)){E.model.beginUpdate();try{if(A=this.importXml(c,Q,Q),null!=J){var V=E.getBoundingBoxFromGeometry(A,!0);if(null!=V){var K=Math.round(E.snap(J.x)),fa=Math.round(E.snap(J.y));E.cellsMoved(A,K-V.x,fa-V.y)}}}finally{E.model.endUpdate()}E.setSelectionCells(A)}else if(f&&1==E.getSelectionCount()){f=E.getStartEditingCell(E.getSelectionCell(),q);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c)&&"image"==E.getCurrentCellStyle(f)[mxConstants.STYLE_SHAPE])E.setCellStyles(mxConstants.STYLE_IMAGE,c,[f]);else{E.model.beginUpdate();try{E.labelChanged(f,c),Graph.isLink(c)&&E.setLinkForCell(f,c)}finally{E.model.endUpdate()}}E.setSelectionCell(f)}else J=null!=J?J:E.getInsertPoint(),E.isMouseInsertPoint()&&(Q=0,E.lastPasteXml==c&&0<E.pasteCounter&&E.pasteCounter--),A=this.insertTextAt(c,J.x+Q,J.y+Q,x),E.setSelectionCells(A);E.isSelectionEmpty()||(E.scrollCellToVisible(E.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(E.view.getState(E.getSelectionCell())));return A};EditorUi.prototype.pasteCells=function(c,f,l,q){if(!mxEvent.isConsumed(c)){var x=c.clipboardData,A=this.editor.graph,E=!1,J=f;if(l&&null!=x&&x.getData){var Q=x.getData("text/plain"),V=!1;if(null!=Q&&0<Q.length&&"%3CmxGraphModel%3E"==Q.substring(0,18))try{var K=decodeURIComponent(Q);this.isCompatibleString(K)&&(V=!0,Q=K)}catch(ia){}V=V?null:x.getData("text/html");null!=V&&0<V.length?(J=this.parseHtmlData(V),E="text/plain"!=J.getAttribute("data-type")):null!=Q&&0<Q.length&&(J=document.createElement("div"),mxUtils.setTextContent(J,-Q))}Q=J.getElementsByTagName("span");if(null!=Q&&0<Q.length&&"application/vnd.lucid.chart.objects"===Q[0].getAttribute("data-lucid-type"))l=Q[0].getAttribute("data-lucid-content"),null!=l&&0<l.length&&(this.convertLucidChart(l,mxUtils.bind(this,function(ia){var k=this.editor.graph;k.lastPasteXml==ia?k.pasteCounter++:(k.lastPasteXml=ia,k.pasteCounter=0);var v=k.pasteCounter*k.gridSize;k.setSelectionCells(this.importXml(ia,v,v));k.scrollCellToVisible(k.getSelectionCell())}),mxUtils.bind(this,function(ia){this.handleError(ia)})),+Q))}Q=J.getElementsByTagName("span");if(null!=Q&&0<Q.length&&"application/vnd.lucid.chart.objects"===Q[0].getAttribute("data-lucid-type"))l=Q[0].getAttribute("data-lucid-content"),null!=l&&0<l.length&&(this.convertLucidChart(l,mxUtils.bind(this,function(ia){var k=this.editor.graph;k.lastPasteXml==ia?k.pasteCounter++:(k.lastPasteXml=ia,k.pasteCounter=0);var u=k.pasteCounter*k.gridSize;k.setSelectionCells(this.importXml(ia,u,u));k.scrollCellToVisible(k.getSelectionCell())}),mxUtils.bind(this,function(ia){this.handleError(ia)})),mxEvent.consume(c));else{var fa=!1,Y="";Y=E?null!=J.textContent&&"<mxfile"==J.textContent.substring(0,7)&&"</mxfile>"==J.textContent.substring(J.textContent.length-9)||"<mxGraphModel"==J.textContent.substring(0,13)&&"</mxGraphModel>"==J.textContent.substring(J.textContent.length-15)?J.textContent.replace(/\u00a0/g," "):J.innerHTML:mxUtils.trim(null==J.innerText?mxUtils.getTextContent(J):J.innerText);try{var aa=Y.lastIndexOf("%3E");0<=aa&&aa<Y.length-3&&(Y=Y.substring(0,aa+3))}catch(ia){}try{Q=J.getElementsByTagName("span"),(K=null!=Q&&0<Q.length?mxUtils.trim(decodeURIComponent(Q[0].textContent)):decodeURIComponent(Y))&&(this.isCompatibleString(K)||0==K.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":'))&&(fa=!0,Y=K)}catch(ia){}K=null;try{if(!fa&&""==J.textContent)for(aa=0;aa<x.items.length;aa++){var ja=x.items[aa];if("file"===ja.kind){K=ja.getAsFile();break}}}catch(ia){}EditorUi.debug("EditorUi.pasteCells",[this],"evt",[c],"realElt",[f.outerHTML],"elt",[J.outerHTML],"useEvent",l,"pasteAsLabel",q,"xml",[Y],"compat",fa,"asHtml",E,"data",x,"items",[x.items.length],"files",[x.files.length],"types",[JSON.stringify(x.types)],"blob",[K]);try{if(fa||null==K)if(null!=Y&&0<Y.length){if(0==Y.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":')){var ua=mxUtils.bind(this,function(){this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})}),Ca=mxUtils.bind(this,function(){if("undefined"===typeof MiroImporter)ua();else try{Y=(new MiroImporter).importMiroJson(JSON.parse(Y)),this.pasteXml(Y,@@ -4680,18 +4682,18 @@ else E.text().then(mxUtils.bind(this,function(J){EditorUi.debug("EditorUi.readTyl.length;)l[0].parentNode.removeChild(l[0]);if(null!=f.firstChild&&f.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=f.firstChild.nextSibling&&f.firstChild.nextSibling.nodeType==mxConstants.NODETYPE_ELEMENT&&"META"==f.firstChild.nodeName&&"A"==f.firstChild.nextSibling.nodeName&&null==f.firstChild.nextSibling.nextSibling){var q=null==f.firstChild.nextSibling.innerText?mxUtils.getTextContent(f.firstChild.nextSibling):f.firstChild.nextSibling.innerText;q==f.firstChild.nextSibling.getAttribute("href")&&(mxUtils.setTextContent(f,q),asHtml=!1)}if(""==f.textContent&&(l=f.getElementsByTagName("img"),1==l.length&&(q=l[0].getAttribute("src"),l=null,null!=q))){if(Editor.isPngDataUrl(q)){var x=Editor.extractGraphModelFromPng(q);null!=x&&0<x.length&&(l=x)}else if("data:image/svg+xml;base64,"==q.substring(0,26)){img=this.base64ToBlob(q.substring(q.indexOf(",")+1),"image/svg+xml");q=Graph.getSvgFromDataUri(q);try{x=mxUtils.parseXml(q).documentElement.getAttribute("content"),this.isCompatibleString(x)&&(l=x)}catch(A){}}null!=l&&(mxUtils.setTextContent(f,l),asHtml=!1)}asHtml?Graph.removePasteFormatting(f):f.setAttribute("data-type","text/plain")}EditorUi.debug("EditorUi.parseHtmlData",[this],"data",[c],"elt",[f],"asHtml",asHtml);return f};EditorUi.prototype.showPrintDialog=function(c,f,l){this.showDialog((new PrintDialog(this,c,f,l)).container,360,null,!0,!0)};EditorUi.prototype.print=function(c,f){var l=this.editor,q=l.graph,x=this.getPageIndex(this.currentPage),A=null!=x?x+1:1,E=mxUtils.bind(this,-function(k,v,H,P){var T=k.useCssTransforms,W=k.currentTranslate,ha=k.currentScale,X=k.view.translate,ea=k.view.scale;k.useCssTransforms&&(k.useCssTransforms=!1,k.currentTranslate=new mxPoint(0,0),k.currentScale=1,k.view.translate=new mxPoint(0,0),k.view.scale=1);var oa=k.getGraphBounds(),la=0,ca=0,ta=mxRectangle.fromRectangle(k.pageFormat),xa=f.fit||f.crop||!k.pageVisible,qa=f.scale;ta.width*=k.pageScale;ta.height*=k.pageScale;var Ba=1;if(f.fit){Ba=f.sheetsAcross;var na=f.sheetsDown;isNaN(qa)||(ta.width=+function(k,u,H,P){var T=k.useCssTransforms,W=k.currentTranslate,ha=k.currentScale,X=k.view.translate,ea=k.view.scale;k.useCssTransforms&&(k.useCssTransforms=!1,k.currentTranslate=new mxPoint(0,0),k.currentScale=1,k.view.translate=new mxPoint(0,0),k.view.scale=1);var oa=k.getGraphBounds(),la=0,ca=0,ta=mxRectangle.fromRectangle(k.pageFormat),xa=f.fit||f.crop||!k.pageVisible,qa=f.scale;ta.width*=k.pageScale;ta.height*=k.pageScale;var Ba=1;if(f.fit){Ba=f.sheetsAcross;var na=f.sheetsDown;isNaN(qa)||(ta.width=Math.ceil(ta.width*qa),ta.height=Math.ceil(ta.height*qa));Ba=Math.min(ta.height*na/(oa.height/k.view.scale),ta.width*Ba/(oa.width/k.view.scale))}else Ba=isNaN(qa)?1:qa;Ba*=1;!xa&&k.pageVisible?(qa=k.getPageLayout(),la-=qa.x*ta.width,ca-=qa.y*ta.height):xa=!0;f.crop&&(f.selection&&(oa=q.getBoundingBox(q.getSelectionCells())),ta.width=(oa.width+1)*Ba/k.view.scale,ta.height=(oa.height+1)*Ba/k.view.scale);ta.width*=1;ta.height*=1;P=null!=P?"page/id,"+P:null;oa=f.selection?k.getBoundingBox(k.getSelectionCells()):-k.getGraphBounds();if(null!=oa){qa=k.view.scale/Ba;na=oa.width;var ra=oa.height,va=la,Ha=ca;xa||(va-=k.view.translate.x*Ba,Ha-=k.view.translate.y*Ba,na+=oa.x,ra+=oa.y);K+=Math.max(1,Math.ceil((na/qa+va)/(ta.width+1)))*Math.max(1,Math.ceil((ra/qa+Ha)/(ta.height+1)))}fa=fa||K>this.maxPrintPageCount;if(!fa)if(null==v){v=PrintDialog.createPrintPreview(k,Ba,null,0,la,ca,xa);v.title=this.getBaseFilename(!0);v.pageSelector=!1;v.mathEnabled=!1;la=f.border;isNaN(la)||(v.pageMargin=la);var La=v.writeHead;v.writeHead=-function(Qa,Ka){Ka=null!=Ka?Ka:"";f.shadows||(Ka+='g[style*="filter: drop-shadow("] {\n filter: none !important;{\n}\n');mxClient.IS_GC&&(Ka+="@media print {\n .MathJax svg { shape-rendering: crispEdges; }\n}\n");null!=l.fontCss&&(Ka+=l.fontCss);La.apply(this,arguments);for(var Na=k.getCustomFonts(),Oa=0;Oa<Na.length;Oa++){var Fa=Na[Oa].name,Aa=Na[Oa].url;Graph.isCssFontUrl(Aa)?Qa.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(Aa))+'" charset="UTF-8" type="text/css">'):-(Qa.writeln('<style type="text/css">'),Qa.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Graph.escapeCssString(Fa))+'";\nsrc: url("'+mxUtils.htmlEntities(Graph.escapeCssString(Aa))+'");\n}'),Qa.writeln("</style>"))}};if(Editor.replaceSvgDataUris){var Ga=v.drawBackgroundImage;v.drawBackgroundImage=function(Qa){Ga.apply(this,arguments);null!=Qa.node&&(EditorUi.embedSvgImages(Qa.node),q.disableSvgLinks(Qa.node,function(Ka){Ka.setAttribute("href","javascript:void(0)")}))}}var Da=v.addGraphFragment;-v.addGraphFragment=function(Qa,Ka,Na,Oa,Fa,Aa){Da.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:Fa.classList.add("geDisableMathJax");if(this.graph.shadowVisible)for(var Ja=Fa.getElementsByTagName("svg"),Ia=0;Ia<Ja.length;Ia++)k.addSvgShadow(Ja[Ia])};f.grid&&(v.gridSize=k.gridSize,v.gridSteps=k.view.gridSteps,v.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:k.view.gridColor);v.isCellVisible=f.selection?function(Qa){return k.isCellSelected(Qa)&&-k.isCellVisible(Qa)}:function(Qa){return k.isCellVisible(Qa)};v.open(null,null,H,!0,P,ta,f.selection?k.getSelectionCells():null)}else{oa=k.background;if(null==oa||""==oa||oa==mxConstants.NONE)oa="#ffffff";v.backgroundColor=oa;v.autoOrigin=xa;f.grid&&(v.gridSize=k.gridSize,v.gridSteps=k.view.gridSteps,v.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:k.view.gridColor);v.isCellVisible=f.selection?function(Qa){return k.isCellSelected(Qa)&&k.isCellVisible(Qa)}:function(Qa){return k.isCellVisible(Qa)};-v.appendGraph(k,Ba,la,ca,H,!0,P,ta,f.selection?k.getSelectionCells():null);H=k.getCustomFonts();if(null!=v.wnd)for(ta=0;ta<H.length;ta++)la=H[ta].name,ca=H[ta].url,Graph.isCssFontUrl(ca)?v.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(ca)+'" charset="UTF-8" type="text/css">'):(v.wnd.document.writeln('<style type="text/css">'),v.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Graph.escapeCssString(la))+'";\nsrc: url("'+mxUtils.htmlEntities(Graph.escapeCssString(ca))+-'");\n}'),v.wnd.document.writeln("</style>"))}T&&(k.useCssTransforms=T,k.currentTranslate=W,k.currentScale=ha,k.view.translate=X,k.view.scale=ea);return v}),J=f.pagesFrom,Q=f.pagesTo,V=!f.allPages,K=0,fa=!1;x=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,f);else{V&&(V=f.selection||J==A&&Q==A);if(!V&&null!=this.pages&&this.pages.length){V=0;A=this.pages.length-1;f.allPages||(V=parseInt(J)-1,A=parseInt(Q)-1);for(var Y=V;Y<=A&&!fa;Y++){var aa=this.pages[Y];J=aa==this.currentPage?q:null;-if(null==J){J=this.createTemporaryGraph(q.stylesheet);J.shapeForegroundColor=q.shapeForegroundColor;J.shapeBackgroundColor=q.shapeBackgroundColor;Q=!0;var ja=V=!1,ka=null,ua=null;null==aa.viewState&&null==aa.root&&this.updatePageRoot(aa);null!=aa.viewState&&(Q=aa.viewState.pageVisible,V=aa.viewState.mathEnabled,ja=aa.viewState.shadowVisible,ka=aa.viewState.background,ua=aa.viewState.backgroundImage,J.pageFormat=aa.viewState.pageFormat,J.gridSize=aa.viewState.gridSize,J.hiddenTags=aa.viewState.hiddenTags||-[]);null!=ua&&null!=ua.originalSrc&&(ua=this.createImageForPageLink(ua.originalSrc,aa));J.background=ka;J.backgroundImage=null!=ua?new mxImage(ua.src,ua.width,ua.height,ua.x,ua.y):null;J.pageVisible=Q;J.mathEnabled=V;J.shadowVisible=ja;var Ca=J.getGraphBounds;J.getGraphBounds=function(){var k=Ca.apply(this,arguments),v=this.backgroundImage;if(null!=v&&null!=v.width&&null!=v.height){var H=this.view.translate,P=this.view.scale;k=mxRectangle.fromRectangle(k);k.add(new mxRectangle((H.x+v.x)*P,(H.y+v.y)*-P,v.width*P,v.height*P))}return k};var ia=J.getGlobalVariable;J.getGlobalVariable=function(k){return"page"==k?aa.getName():"pagenumber"==k?Y+1:"pagecount"==k?null!=this.pages?this.pages.length:1:ia.apply(this,arguments)};document.body.appendChild(J.container);this.updatePageRoot(aa);J.model.setRoot(aa.root)}x=E(J,x,Y!=A,aa.getId());J!=q&&J.container.parentNode.removeChild(J.container)}}else x=E(q);if(fa)return null!=x&&null!=x.wnd&&x.wnd!=window&&x.wnd.close(),this.handleError({message:mxResources.get("drawingTooLarge")}),+k.getGraphBounds();if(null!=oa){qa=k.view.scale/Ba;na=oa.width;var ra=oa.height,va=la,Ha=ca;xa||(va-=k.view.translate.x*Ba,Ha-=k.view.translate.y*Ba,na+=oa.x,ra+=oa.y);K+=Math.max(1,Math.ceil((na/qa+va)/(ta.width+1)))*Math.max(1,Math.ceil((ra/qa+Ha)/(ta.height+1)))}fa=fa||K>this.maxPrintPageCount;if(!fa)if(null==u){u=PrintDialog.createPrintPreview(k,Ba,null,0,la,ca,xa);u.title=this.getBaseFilename(!0);u.pageSelector=!1;u.mathEnabled=!1;la=f.border;isNaN(la)||(u.pageMargin=la);var La=u.writeHead;u.writeHead=+function(Qa,Ka){Ka=null!=Ka?Ka:"";f.shadows||(Ka+='g[style*="filter: drop-shadow("] {\n filter: none !important;\n}\n');mxClient.IS_GC&&(Ka+="@media print {\n .MathJax svg { shape-rendering: crispEdges; }\n}\n");null!=l.fontCss&&(Ka+=l.fontCss);La.apply(this,arguments);for(var Na=k.getCustomFonts(),Oa=0;Oa<Na.length;Oa++){var Fa=Na[Oa].name,Aa=Na[Oa].url;Graph.isCssFontUrl(Aa)?Qa.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(Aa))+'" charset="UTF-8" type="text/css">'):+(Qa.writeln('<style type="text/css">'),Qa.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Graph.escapeCssString(Fa))+'";\nsrc: url("'+mxUtils.htmlEntities(Graph.escapeCssString(Aa))+'");\n}'),Qa.writeln("</style>"))}};if(Editor.replaceSvgDataUris){var Ga=u.drawBackgroundImage;u.drawBackgroundImage=function(Qa){Ga.apply(this,arguments);null!=Qa.node&&(EditorUi.embedSvgImages(Qa.node),q.disableSvgLinks(Qa.node,function(Ka){Ka.setAttribute("href","javascript:void(0)")}))}}var Da=u.addGraphFragment;+u.addGraphFragment=function(Qa,Ka,Na,Oa,Fa,Aa){Da.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:Fa.classList.add("geDisableMathJax");if(this.graph.shadowVisible)for(var Ja=Fa.getElementsByTagName("svg"),Ia=0;Ia<Ja.length;Ia++)k.addSvgShadow(Ja[Ia])};f.grid&&(u.gridSize=k.gridSize,u.gridSteps=k.view.gridSteps,u.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:k.view.gridColor);u.isCellVisible=f.selection?function(Qa){return k.isCellSelected(Qa)&&+k.isCellVisible(Qa)}:function(Qa){return k.isCellVisible(Qa)};u.open(null,null,H,!0,P,ta,f.selection?k.getSelectionCells():null)}else{oa=k.background;if(null==oa||""==oa||oa==mxConstants.NONE)oa="#ffffff";u.backgroundColor=oa;u.autoOrigin=xa;f.grid&&(u.gridSize=k.gridSize,u.gridSteps=k.view.gridSteps,u.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:k.view.gridColor);u.isCellVisible=f.selection?function(Qa){return k.isCellSelected(Qa)&&k.isCellVisible(Qa)}:function(Qa){return k.isCellVisible(Qa)};+u.appendGraph(k,Ba,la,ca,H,!0,P,ta,f.selection?k.getSelectionCells():null);H=k.getCustomFonts();if(null!=u.wnd)for(ta=0;ta<H.length;ta++)la=H[ta].name,ca=H[ta].url,Graph.isCssFontUrl(ca)?u.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(ca))+'" charset="UTF-8" type="text/css">'):(u.wnd.document.writeln('<style type="text/css">'),u.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Graph.escapeCssString(la))+'";\nsrc: url("'++mxUtils.htmlEntities(Graph.escapeCssString(ca))+'");\n}'),u.wnd.document.writeln("</style>"))}T&&(k.useCssTransforms=T,k.currentTranslate=W,k.currentScale=ha,k.view.translate=X,k.view.scale=ea);return u}),J=f.pagesFrom,Q=f.pagesTo,V=!f.allPages,K=0,fa=!1;x=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,f);else{V&&(V=f.selection||J==A&&Q==A);if(!V&&null!=this.pages&&this.pages.length){V=0;A=this.pages.length-1;f.allPages||(V=parseInt(J)-1,A=parseInt(Q)-1);for(var Y=V;Y<=A&&!fa;Y++){var aa=+this.pages[Y];J=aa==this.currentPage?q:null;if(null==J){J=this.createTemporaryGraph(q.stylesheet);J.shapeForegroundColor=q.shapeForegroundColor;J.shapeBackgroundColor=q.shapeBackgroundColor;Q=!0;var ja=V=!1,ka=null,ua=null;null==aa.viewState&&null==aa.root&&this.updatePageRoot(aa);null!=aa.viewState&&(Q=aa.viewState.pageVisible,V=aa.viewState.mathEnabled,ja=aa.viewState.shadowVisible,ka=aa.viewState.background,ua=aa.viewState.backgroundImage,J.pageFormat=aa.viewState.pageFormat,J.gridSize=aa.viewState.gridSize,+J.hiddenTags=aa.viewState.hiddenTags||[]);null!=ua&&null!=ua.originalSrc&&(ua=this.createImageForPageLink(ua.originalSrc,aa));J.background=ka;J.backgroundImage=null!=ua?new mxImage(ua.src,ua.width,ua.height,ua.x,ua.y):null;J.pageVisible=Q;J.mathEnabled=V;J.shadowVisible=ja;var Ca=J.getGraphBounds;J.getGraphBounds=function(){var k=Ca.apply(this,arguments),u=this.backgroundImage;if(null!=u&&null!=u.width&&null!=u.height){var H=this.view.translate,P=this.view.scale;k=mxRectangle.fromRectangle(k);k.add(new mxRectangle((H.x++u.x)*P,(H.y+u.y)*P,u.width*P,u.height*P))}return k};var ia=J.getGlobalVariable;J.getGlobalVariable=function(k){return"page"==k?aa.getName():"pagenumber"==k?Y+1:"pagecount"==k?null!=this.pages?this.pages.length:1:ia.apply(this,arguments)};document.body.appendChild(J.container);this.updatePageRoot(aa);J.model.setRoot(aa.root)}x=E(J,x,Y!=A,aa.getId());J!=q&&J.container.parentNode.removeChild(J.container)}}else x=E(q);if(fa)return null!=x&&null!=x.wnd&&x.wnd!=window&&x.wnd.close(),this.handleError({message:mxResources.get("drawingTooLarge")}),null;if(null==x||null==x.wnd)this.handleError({message:mxResources.get("errorUpdatingPreview")});else{x.mathEnabled&&(E=x.wnd.document,c||(x.wnd.IMMEDIATE_PRINT=!0),E.writeln('<script type="text/javascript" src="js/math-print.js">\x3c/script>'));x.closeDocument();if(Editor.expandPatternsForPrint&&null!=x.wnd)for(E=x.wnd.document.getElementsByTagName("svg"),Y=0;Y<E.length;Y++)Editor.expandSvgPatterns(E[Y]);Graph.rewritePageLinks(x.wnd.document,!0);x.mathEnabled||c||PrintDialog.printPreview(x)}return x}};EditorUi.prototype.addFileDropHandler=function(c){if(Graph.fileSupport)for(var f=null,l=0;l<c.length;l++)mxEvent.addListener(c[l],"dragleave",function(q){null!=f&&(f.parentNode.removeChild(f),f=null);q.stopPropagation();q.preventDefault()}),mxEvent.addListener(c[l],"dragover",mxUtils.bind(this,function(q){(this.editor.graph.isEnabled()||"1"!=urlParams.embed)&&null==f&&(f=this.highlightElement());q.stopPropagation();q.preventDefault()})),mxEvent.addListener(c[l],"drop",mxUtils.bind(this,function(q){null!=f&&(f.parentNode.removeChild(f),f=null);if(this.editor.graph.isEnabled()||"1"!=urlParams.embed)if(0<q.dataTransfer.files.length)this.hideDialog(),"1"==urlParams.embed?this.importFiles(q.dataTransfer.files,0,0,this.maxImageSize,null,null,null,null,!mxEvent.isControlDown(q)&&!mxEvent.isShiftDown(q)):this.openFiles(q.dataTransfer.files,!0);else{var x=this.extractGraphModelFromEvent(q);if(null==x){var A=null!=q.dataTransfer?q.dataTransfer:q.clipboardData;null!=A&&(10==document.documentMode||11==document.documentMode?@@ -4735,8 +4737,8 @@ Ea=null:"%"==Ea.charAt(0)?Ea=decodeURIComponent(Ea):"<"!=Ea.charAt(0)&&(Ea=GraphK.button);null!=K.modified&&(this.editor.modified=K.modified);return}if("layout"==K.action){this.executeLayoutSpec(K.layouts);return}if("prompt"==K.action){this.spinner.stop();var ua=new FilenameDialog(this,K.defaultValue||"",null!=K.okKey?mxResources.get(K.okKey):K.ok,function(Ea){null!=Ea?J.postMessage(JSON.stringify({event:"prompt",value:Ea,message:K}),"*"):J.postMessage(JSON.stringify({event:"prompt-cancel",message:K}),"*")},null!=K.titleKey?mxResources.get(K.titleKey):K.title,null,null,null,null,function(){J.postMessage(JSON.stringify({event:"prompt-cancel",message:K}),"*")});this.showDialog(ua.container,300,80,!0,!1);ua.init();return}if("draft"==K.action){var Ca=aa(K.xml);this.spinner.stop();ua=new DraftDialog(this,mxResources.get("draftFound",[K.name||this.defaultFilename]),Ca,mxUtils.bind(this,function(){this.hideDialog();J.postMessage(JSON.stringify({event:"draft",result:"edit",message:K}),"*")}),mxUtils.bind(this,function(){this.hideDialog();J.postMessage(JSON.stringify({event:"draft",result:"discard",message:K}),"*")}),K.editKey?mxResources.get(K.editKey):null,K.discardKey?mxResources.get(K.discardKey):null,K.ignore?mxUtils.bind(this,function(){this.hideDialog();J.postMessage(JSON.stringify({event:"draft",result:"ignore",message:K}),"*")}):null);this.showDialog(ua.container,640,480,!0,!1,mxUtils.bind(this,function(Ea){Ea&&this.actions.get("exit").funct()}));try{ua.init()}catch(Ea){J.postMessage(JSON.stringify({event:"draft",error:Ea.toString(),message:K}),"*")}return}if("template"==-K.action){this.spinner.stop();var ia=1==K.enableRecent,k=1==K.enableSearch,v=1==K.enableCustomTemp;ua=new NewDialog(this,!1,K.templatesOnly?!1:null!=K.callback,mxUtils.bind(this,function(Ea,$a,cb,Za){Ea=Ea||this.emptyDiagramXml;null!=K.callback?J.postMessage(JSON.stringify({event:"template",xml:Ea,blank:Ea==this.emptyDiagramXml,name:$a,tempUrl:cb,libs:Za,builtIn:!0,message:K}),"*"):(c(Ea,V,Ea!=this.emptyDiagramXml,K.toSketch),this.editor.modified||this.clearStatus())}),null,null,null,null,null,null,-null,ia?mxUtils.bind(this,function(Ea){this.remoteInvoke("getRecentDiagrams",[null],null,Ea,function(){Ea(null,"Network Error!")})}):null,k?mxUtils.bind(this,function(Ea,$a){this.remoteInvoke("searchDiagrams",[Ea,null],null,$a,function(){$a(null,"Network Error!")})}):null,mxUtils.bind(this,function(Ea,$a,cb){J.postMessage(JSON.stringify({event:"template",docUrl:Ea,info:$a,name:cb}),"*")}),null,null,v?mxUtils.bind(this,function(Ea){this.remoteInvoke("getCustomTemplates",null,null,Ea,function(){Ea({},+K.action){this.spinner.stop();var ia=1==K.enableRecent,k=1==K.enableSearch,u=1==K.enableCustomTemp;ua=new NewDialog(this,!1,K.templatesOnly?!1:null!=K.callback,mxUtils.bind(this,function(Ea,$a,cb,Za){Ea=Ea||this.emptyDiagramXml;null!=K.callback?J.postMessage(JSON.stringify({event:"template",xml:Ea,blank:Ea==this.emptyDiagramXml,name:$a,tempUrl:cb,libs:Za,builtIn:!0,message:K}),"*"):(c(Ea,V,Ea!=this.emptyDiagramXml,K.toSketch),this.editor.modified||this.clearStatus())}),null,null,null,null,null,null,+null,ia?mxUtils.bind(this,function(Ea){this.remoteInvoke("getRecentDiagrams",[null],null,Ea,function(){Ea(null,"Network Error!")})}):null,k?mxUtils.bind(this,function(Ea,$a){this.remoteInvoke("searchDiagrams",[Ea,null],null,$a,function(){$a(null,"Network Error!")})}):null,mxUtils.bind(this,function(Ea,$a,cb){J.postMessage(JSON.stringify({event:"template",docUrl:Ea,info:$a,name:cb}),"*")}),null,null,u?mxUtils.bind(this,function(Ea){this.remoteInvoke("getCustomTemplates",null,null,Ea,function(){Ea({},0)})}):null,1==K.withoutType,null,K.templatesOnly);this.showDialog(ua.container,620,460,!0,!1,mxUtils.bind(this,function(Ea){null!=this.sidebar&&this.sidebar.hideTooltip();Ea&&!K.noExitOnCancel&&this.actions.get("exit").funct()}));ua.init();return}if("textContent"==K.action){var H=this.getDiagramTextContent();J.postMessage(JSON.stringify({event:"textContent",data:H,message:K}),"*");return}if("status"==K.action){this.updateStatus(mxUtils.bind(this,function(){null!=K.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(K.messageKey))):null!=K.message&&this.editor.setStatus(mxUtils.htmlEntities(K.message))}));null!=K.modified&&(this.editor.modified=K.modified);return}if("spinner"==K.action){var P=null!=K.messageKey?mxResources.get(K.messageKey):K.message;null==K.show||K.show?this.spinner.spin(document.body,P):this.spinner.stop();return}if("exit"==K.action){this.actions.get("exit").funct();return}if("viewport"==K.action){if(null!=K.viewport){var T=this.editor.graph,W=T.view.translate.x,ha=T.view.translate.y;this.embedViewport=K.viewport;T.refresh();this.diagramContainer.scrollTop-=(ha-T.view.translate.y)*T.view.scale;this.diagramContainer.scrollLeft-=(W-T.view.translate.x)*T.view.scale;this.fireEvent(new mxEventObject("embedViewportChanged"))}return}if("invokeAction"==K.action){var X=this.actions.get(K.actionName);null!=X&&X.funct();return}if("resetEditor"==K.action){T=this.editor.graph;T.isEditing()&&T.stopEditing(!1);this.hideCurrentMenu();T.popupMenuHandler.hideMenu();T.clearSelection();return}if("fit"==K.action){T=this.editor.graph;@@ -4746,11 +4748,11 @@ null!=oa&&this.restoreScrollState(oa);return}if("snapshot"==K.action){this.sendEthis.editor.graph&&T.container.parentNode.removeChild(T.container);ta(Ea)}),qa=K.pageId||(null!=this.pages?K.currentPage?this.currentPage.getId():this.pages[0].getId():null);if(this.editor.isExportToCanvas()){var Ba=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=qa){var Ea=T.getGlobalVariable;T=this.createTemporaryGraph(T.getStylesheet());for(var $a,cb=0;cb<this.pages.length;cb++)if(this.pages[cb].getId()==qa){$a=this.updatePageRoot(this.pages[cb]);break}null==$a&&($a=this.currentPage);T.getGlobalVariable=function(wb){return"page"==wb?$a.getName():"pagenumber"==wb?1:Ea.apply(this,arguments)};document.body.appendChild(T.container);T.model.setRoot($a.root)}if(null!=K.layerIds){var Za=T.model,eb=Za.getChildCells(Za.getRoot()),lb=Object.create(null);for(cb=0;cb<K.layerIds.length;cb++)lb[K.layerIds[cb]]=!0;for(cb=0;cb<eb.length;cb++)Za.setVisible(eb[cb],lb[eb[cb].id]||!1)}cb=null;K.keepTheme&&(cb=Editor.isDarkMode()?"dark":"light");null==K.width&&0<this.maxCanvasExportArea&&(eb=T.getGraphBounds(),lb=null!=K.border?K.border:0,Za=Math.ceil(eb.width/T.view.scale)+2*lb,eb=Math.ceil(eb.height/T.view.scale)+2*lb,lb=null!=K.scale?K.scale:1,Za*eb*lb*lb>this.maxCanvasExportArea&&(K.scale=Math.sqrt(this.maxCanvasExportArea/(Za*eb))));this.editor.exportToCanvas(mxUtils.bind(this,function(wb){xa(wb.toDataURL("image/png"))}),K.width,null,K.background,mxUtils.bind(this,function(){xa(null)}),null,null,K.scale,K.transparent,K.shadow,null,T,K.border,null,K.grid,cb,K.size)});null!=K.xml&&-0<K.xml.length&&(l=!0,this.setFileData(ca),l=!1);Ba()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==K.format?"1":"0")+(null!=qa?"&pageId="+qa:"")+(null!=K.layerIds&&0<K.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:K.layerIds})):"")+(null!=K.scale?"&scale="+K.scale:"")+"&base64=1&xml="+encodeURIComponent(ca))).send(mxUtils.bind(this,function(Ea){200<=Ea.getStatus()&&299>=Ea.getStatus()?ta("data:image/png;base64,"+Ea.getText()):xa(null)}),mxUtils.bind(this,-function(){xa(null)}))}}else if(Ba=mxUtils.bind(this,function(){var Ea=this.createLoadMessage("export");Ea.message=K;if("html2"==K.format||"html"==K.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var $a=this.getXmlFileData();Ea.xml=mxUtils.getXml($a);Ea.data=this.getFileData(null,null,!0,null,null,null,$a);Ea.format=K.format}else if("html"==K.format)$a=this.editor.getGraphXml(),Ea.data=this.getHtml($a,this.editor.graph),Ea.xml=mxUtils.getXml($a),Ea.format=K.format;else{if("xml"==-K.format)Ea.xml=this.getFileData(!0),Ea.format=K.format,J.postMessage(JSON.stringify(Ea),"*");else if("json"==K.format)Ea.format=K.format,Ea.data=this.createJsonForExport(0!=K.allPages,1==K.includeData,1==K.compressed,1==K.selection),J.postMessage(JSON.stringify(Ea),"*");else{mxSvgCanvas2D.prototype.foAltText=null;var cb=null!=K.background?K.background:this.editor.graph.background;cb==mxConstants.NONE&&(cb=null);Ea.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);Ea.format="svg";-var Za=mxUtils.bind(this,function(rb){this.editor.graph.setEnabled(!0);this.spinner.stop();Ea.data=K.asText?rb:Editor.createSvgDataUri(rb);J.postMessage(JSON.stringify(Ea),"*")}),eb="auto";K.keepTheme&&(eb=Editor.isDarkMode()?"dark":"light");null!=K.theme&&(eb=K.theme);if("xmlsvg"==K.format){if(null==K.spin&&null==K.spinKey||this.spinner.spin(document.body,null!=K.spinKey?mxResources.get(K.spinKey):K.spin)){eb=null;if(this.isAutoDarkMode()||Editor.isDarkMode())eb="auto";null!=K.theme&&(eb=K.theme);-this.getEmbeddedSvg(Ea.xml,this.editor.graph,null,!0,Za,null,null,K.embedImages,cb,K.scale,K.border,K.shadow,eb,K.embedCellMetadata,K.embedFonts)}}else if(null==K.spin&&null==K.spinKey||this.spinner.spin(document.body,null!=K.spinKey?mxResources.get(K.spinKey):K.spin)){this.editor.graph.setEnabled(!1);var lb=this.editor.graph.createSvgImageExport(!1,K.embedCellMetadata?!0:!1);$a=Object.create(null);var wb=this.getSvgWithFontLookup($a,lb,mxUtils.bind(this,function(){return this.editor.graph.getSvg(cb,+0<K.xml.length&&(l=!0,this.setFileData(ca),l=!1);Ba()}else this.isRemoteExportEnabled()?(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==K.format?"1":"0")+(null!=qa?"&pageId="+qa:"")+(null!=K.layerIds&&0<K.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:K.layerIds})):"")+(null!=K.scale?"&scale="+K.scale:"")+"&base64=1&xml="+encodeURIComponent(ca))).send(mxUtils.bind(this,function(Ea){200<=Ea.getStatus()&&299>=Ea.getStatus()?ta("data:image/png;base64,"+Ea.getText()):+xa(null)}),mxUtils.bind(this,function(){xa(null)})):xa(null)}}else if(Ba=mxUtils.bind(this,function(){var Ea=this.createLoadMessage("export");Ea.message=K;if("html2"==K.format||"html"==K.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var $a=this.getXmlFileData();Ea.xml=mxUtils.getXml($a);Ea.data=this.getFileData(null,null,!0,null,null,null,$a);Ea.format=K.format}else if("html"==K.format)$a=this.editor.getGraphXml(),Ea.data=this.getHtml($a,this.editor.graph),Ea.xml=mxUtils.getXml($a),+Ea.format=K.format;else{if("xml"==K.format)Ea.xml=this.getFileData(!0),Ea.format=K.format,J.postMessage(JSON.stringify(Ea),"*");else if("json"==K.format)Ea.format=K.format,Ea.data=this.createJsonForExport(0!=K.allPages,1==K.includeData,1==K.compressed,1==K.selection),J.postMessage(JSON.stringify(Ea),"*");else{mxSvgCanvas2D.prototype.foAltText=null;var cb=null!=K.background?K.background:this.editor.graph.background;cb==mxConstants.NONE&&(cb=null);Ea.xml=this.getFileData(!0,null,null,null,null,null,+null,null,null,!1);Ea.format="svg";var Za=mxUtils.bind(this,function(rb){this.editor.graph.setEnabled(!0);this.spinner.stop();Ea.data=K.asText?rb:Editor.createSvgDataUri(rb);J.postMessage(JSON.stringify(Ea),"*")}),eb="auto";K.keepTheme&&(eb=Editor.isDarkMode()?"dark":"light");null!=K.theme&&(eb=K.theme);if("xmlsvg"==K.format){if(null==K.spin&&null==K.spinKey||this.spinner.spin(document.body,null!=K.spinKey?mxResources.get(K.spinKey):K.spin)){eb=null;if(this.isAutoDarkMode()||Editor.isDarkMode())eb=+"auto";null!=K.theme&&(eb=K.theme);this.getEmbeddedSvg(Ea.xml,this.editor.graph,null,!0,Za,null,null,K.embedImages,cb,K.scale,K.border,K.shadow,eb,K.embedCellMetadata,K.embedFonts)}}else if(null==K.spin&&null==K.spinKey||this.spinner.spin(document.body,null!=K.spinKey?mxResources.get(K.spinKey):K.spin)){this.editor.graph.setEnabled(!1);var lb=this.editor.graph.createSvgImageExport(!1,K.embedCellMetadata?!0:!1);$a=Object.create(null);var wb=this.getSvgWithFontLookup($a,lb,mxUtils.bind(this,function(){return this.editor.graph.getSvg(cb,K.scale,K.border,null,null,null,null,lb,null,this.editor.graph.shadowVisible||K.shadow,null,eb)}));(this.editor.graph.shadowVisible||K.shadow)&&this.editor.graph.addSvgShadow(wb);this.embedFonts(wb,mxUtils.bind(this,function(rb){K.embedImages||null==K.embedImages?this.editor.convertImages(rb,mxUtils.bind(this,function(xb){Za(mxUtils.getXml(xb))})):Za(mxUtils.getXml(rb))}),K.embedFonts,$a)}}return}J.postMessage(JSON.stringify(Ea),"*")}),null!=K.xml&&0<K.xml.length){if(this.editor.graph.mathEnabled){var na=Editor.onMathJaxDone;Editor.onMathJaxDone=function(){na.apply(this,arguments);Ba()}}l=!0;this.setFileData(K.xml);l=!1;this.editor.graph.mathEnabled||Ba()}else Ba();return}if("load"==K.action){ja=K.toSketch;q=1==K.autosave;this.embedDiffSync=null!=K.diffSync&&!1!==K.diffSync;this.embedDiffSyncPatchOnly="object"===typeof K.diffSync&&null!=K.diffSync&&1==K.diffSync.patchOnly;this.embedExportProtocol=1==K.exportProtocol;var ra=K.sourceMetadata||null;Y=null!=K.layout?K.layout:null;this.hideDialog();null!=K.modified&&null==urlParams.modified&&(urlParams.modified=K.modified);null!=K.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=K.saveAndExit);if("1"==urlParams.saveAndExit||"1"==urlParams.publishClose)if(this.actions.get("save").shortcut=null,!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(83,!0,"saveAndExit"),"1"!=urlParams.noSaveBtn&&(this.actions.get("save").shortcut=Editor.ctrlKey+"+"+Editor.shiftKey+"+S",this.keyHandler.bindAction(83,!0,"save",!0));null!=@@ -4791,20 +4793,20 @@ E("orgChartType",J);var fa=document.createElement("input");fa.type="number";fa.vconfig:{branchOptimizer:l,parentChildSpacing:q,siblingSpacing:x}})},f||null,mxResources.get("apply"),"https://www.drawio.com/docs/manual/layouts/org-chart-layout/");this.showDialog(f.container,355,null,!0,!0)};EditorUi.prototype.loadOrgChartLayouts=function(c,f){this.createTimeout(null,mxUtils.bind(this,function(l){var q=mxUtils.bind(this,function(){this.loadingOrgChart=!1;l.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),this.spinner.stop(),c())}),x=mxUtils.bind(this,function(A){this.loadingOrgChart=!1;l.clear()&&this.handleError(A)});if("undefined"!==typeof mxOrgChartLayout||this.loadingOrgChart||this.isOffline(!0))q();else if(f||this.spinner.spin(document.body,mxResources.get("loading")))this.loadingOrgChart=!0,"1"==urlParams.dev?mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",q,null,null,null,x)},null,null,null,x)},null,null,null,x)},null,null,null,x):mxscript(window.DRAWIO_SERVER_URL+"js/orgchart.min.js",q,null,null,null,x)}),onerror)};EditorUi.prototype.importCsv=function(c,f,l,q){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c,f,l)}),q)};EditorUi.prototype.doImportCsv=function(c,f,l){try{var q=c.split("\n"),x=[],A=[],E=[],J=Object.create(null);if(0<q.length){var Q=Object.create(null);l=null!=l?l:this.editor.graph;var V=null,K=null,fa=null,Y=null,aa=null,ja=null,ka=null,ua="whiteSpace=wrap;html=1;",-Ca=null,ia=null,k="",v="auto",H="auto",P=!1,T=null,W=null,ha=40,X=40,ea=100,oa=0,la=mxUtils.bind(this,function(){null!=f?f(eb):(l.setSelectionCells(eb),l.scrollCellToVisible(l.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),0)}),ca=l.getFreeInsertPoint(!0),ta=ca.x,xa=ca.y;ca=xa;var qa=null,Ba="auto";ia=null;for(var na=[],ra=null,va=null,Ha=0;Ha<q.length&&"#"==q[Ha].charAt(0);){c=q[Ha].replace(/\r$/,"");for(Ha++;Ha<q.length&&+Ca=null,ia=null,k="",u="auto",H="auto",P=!1,T=null,W=null,ha=40,X=40,ea=100,oa=0,la=mxUtils.bind(this,function(){null!=f?f(eb):(l.setSelectionCells(eb),l.scrollCellToVisible(l.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),0)}),ca=l.getFreeInsertPoint(!0),ta=ca.x,xa=ca.y;ca=xa;var qa=null,Ba="auto";ia=null;for(var na=[],ra=null,va=null,Ha=0;Ha<q.length&&"#"==q[Ha].charAt(0);){c=q[Ha].replace(/\r$/,"");for(Ha++;Ha<q.length&&"\\"==c.charAt(c.length-1)&&"#"==q[Ha].charAt(0);)c=c.substring(0,c.length-1)+mxUtils.trim(q[Ha].substring(1)),Ha++;if("#"!=c.charAt(1)){var La=c.indexOf(":");if(0<La){var Ga=mxUtils.trim(c.substring(1,La)),Da=mxUtils.trim(c.substring(La+1));"label"==Ga?qa=Graph.sanitizeHtml(Da):"labelname"==Ga&&0<Da.length&&"-"!=Da?aa=Da:"labels"==Ga&&0<Da.length&&"-"!=Da?ka=JSON.parse(Da):"style"==Ga?K=Da:"parentstyle"==Ga?ua=Da:"unknownStyle"==Ga&&"-"!=Da?ja=Da:"stylename"==Ga&&0<Da.length&&"-"!=Da?Y=Da:"styles"==-Ga&&0<Da.length&&"-"!=Da?fa=JSON.parse(Da):"vars"==Ga&&0<Da.length&&"-"!=Da?V=JSON.parse(Da):"identity"==Ga&&0<Da.length&&"-"!=Da?Ca=Da:"parent"==Ga&&0<Da.length&&"-"!=Da?ia=Da:"namespace"==Ga&&0<Da.length&&"-"!=Da?k=Da:"width"==Ga?v=Da:"height"==Ga?H=Da:"collapsed"==Ga&&"-"!=Da?P="true"==Da:"left"==Ga&&0<Da.length?T=Da:"top"==Ga&&0<Da.length?W=Da:"ignore"==Ga?va=Da.split(","):"connect"==Ga?na.push(JSON.parse(Da)):"link"==Ga?ra=Da:"padding"==Ga?oa=parseFloat(Da):"edgespacing"==Ga?ha=parseFloat(Da):+Ga&&0<Da.length&&"-"!=Da?fa=JSON.parse(Da):"vars"==Ga&&0<Da.length&&"-"!=Da?V=JSON.parse(Da):"identity"==Ga&&0<Da.length&&"-"!=Da?Ca=Da:"parent"==Ga&&0<Da.length&&"-"!=Da?ia=Da:"namespace"==Ga&&0<Da.length&&"-"!=Da?k=Da:"width"==Ga?u=Da:"height"==Ga?H=Da:"collapsed"==Ga&&"-"!=Da?P="true"==Da:"left"==Ga&&0<Da.length?T=Da:"top"==Ga&&0<Da.length?W=Da:"ignore"==Ga?va=Da.split(","):"connect"==Ga?na.push(JSON.parse(Da)):"link"==Ga?ra=Da:"padding"==Ga?oa=parseFloat(Da):"edgespacing"==Ga?ha=parseFloat(Da):"nodespacing"==Ga?X=parseFloat(Da):"levelspacing"==Ga?ea=parseFloat(Da):"layout"==Ga&&(Ba=Da)}}}if(null==q[Ha])throw Error(mxResources.get("invalidOrMissingFile"));var Qa=this.editor.csvToArray(q[Ha].replace(/\r$/,""));La=c=null;Ga=[];for(Da=0;Da<Qa.length;Da++)Ca==Qa[Da]&&(c=Da),ia==Qa[Da]&&(La=Da),Ga.push(mxUtils.trim(Qa[Da]).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,""));null==qa&&(qa="%"+Ga[0]+"%");if(null!=na)for(var Ka=0;Ka<na.length;Ka++)null==Q[na[Ka].to]&&(Q[na[Ka].to]=Object.create(null));Ca=[];for(Da=Ha+1;Da<q.length;Da++){var Na=this.editor.csvToArray(q[Da].replace(/\r$/,""));if(null==Na){var Oa=40<q[Da].length?q[Da].substring(0,40)+"...":q[Da];throw Error(Oa+" ("+Da+"):\n"+mxResources.get("containsValidationErrors"));}0<Na.length&&Ca.push(Na)}l.model.beginUpdate();try{for(Da=0;Da<Ca.length;Da++){Na=Ca[Da];var Fa=null,Aa=null!=c?k+Na[c]:null;q=!1;null!=Aa&&(Fa=l.model.getCell(Aa),q=null==Fa||0<=mxUtils.indexOf(x,Fa));var Ja=new mxCell(qa,new mxGeometry(ta,ca,0,0),K||"whiteSpace=wrap;html=1;");Ja.collapsed=P;Ja.vertex=!0;Ja.id=Aa;null==Fa||q||l.model.setCollapsed(Fa,P);for(var Ia=0;Ia<Na.length;Ia++)l.setAttributeForCell(Ja,Ga[Ia],Na[Ia]),null==Fa||q||l.setAttributeForCell(Fa,Ga[Ia],Na[Ia]);if(null!=aa&&null!=ka){var Sa=Ja.getAttribute(aa),ab=null!=Sa&&Object.prototype.hasOwnProperty.call(ka,Sa)?ka[Sa]:null;null!=ab&&(l.labelChanged(Ja,ab),null==Fa||q||l.cellLabelChanged(Fa,ab))}if(null!=Y&&null!=fa){var Va=Ja.getAttribute(Y),db=null!=Va&&Object.prototype.hasOwnProperty.call(fa,Va)?fa[Va]:null;null!=db&&(Ja.style=db)}l.setAttributeForCell(Ja,"placeholders","1");Ja.style=l.replacePlaceholders(Ja,Ja.style,V);null==Fa||q?l.fireEvent(new mxEventObject("cellsInserted","cells",[Ja])):(l.model.setStyle(Fa,Ja.style),0>mxUtils.indexOf(E,Fa)&&E.push(Fa),l.fireEvent(new mxEventObject("cellsInserted","cells",[Fa])));q=null!=Fa;Fa=Ja;if(!q)for(Ka=0;Ka<na.length;Ka++)Q[na[Ka].to][Fa.getAttribute(na[Ka].to)]=Fa;null!=ra&&"link"!=ra&&(l.setLinkForCell(Fa,Fa.getAttribute(ra)),l.setAttributeForCell(Fa,-ra,null));var Ea=l.getPreferredSizeForCell(Fa);ia=null!=La?l.model.getCell(k+Na[La]):null;if(Fa.vertex){Oa=null!=ia?0:ta;Ha=null!=ia?0:xa;null!=T&&null!=Fa.getAttribute(T)&&(Fa.geometry.x=Oa+parseFloat(Fa.getAttribute(T)));null!=W&&null!=Fa.getAttribute(W)&&(Fa.geometry.y=Ha+parseFloat(Fa.getAttribute(W)));var $a="@"==v.charAt(0)?Fa.getAttribute(v.substring(1)):null;Fa.geometry.width=null!=$a&&"auto"!=$a?parseFloat(Fa.getAttribute(v.substring(1))):"auto"==v||"auto"==$a?Ea.width+oa:parseFloat(v);var cb=-"@"==H.charAt(0)?Fa.getAttribute(H.substring(1)):null;Fa.geometry.height=null!=cb&&"auto"!=cb&&"width"!=H?parseFloat(cb):"auto"==H||"auto"==cb?Ea.height+oa:"width"==H?Fa.geometry.width:parseFloat(H);ca+=Fa.geometry.height+X}q?(null==J[Aa]&&(J[Aa]=[]),J[Aa].push(Fa)):(x.push(Fa),null!=ia?(ia.style=l.replacePlaceholders(ia,ua,V),l.addCell(Fa,ia),A.push(ia)):E.push(l.addCell(Fa)))}for(Da=0;Da<A.length;Da++)$a="@"==v.charAt(0)?A[Da].getAttribute(v.substring(1)):null,cb="@"==H.charAt(0)?A[Da].getAttribute(H.substring(1)):-null,"auto"!=v&&"auto"!=$a||"auto"!=H&&"auto"!=cb||l.updateGroupBounds([A[Da]],oa,!0);var Za=E.slice(),eb=E.slice();for(Ka=0;Ka<na.length;Ka++){var lb=na[Ka];for(Da=0;Da<x.length;Da++){Fa=x[Da];var wb=mxUtils.bind(this,function(Bb,Hb,Ab){var Db=Hb.getAttribute(Ab.from);if(null!=Db&&""!=Db){Db=Db.split(",");for(var z=0;z<Db.length;z++){var L=Q[Ab.to][Db[z]];if(null==L&&null!=ja){L=new mxCell(Db[z],new mxGeometry(ta,xa,0,0),ja);L.style=l.replacePlaceholders(Hb,L.style,V);var M=l.getPreferredSizeForCell(L);+ra,null));var Ea=l.getPreferredSizeForCell(Fa);ia=null!=La?l.model.getCell(k+Na[La]):null;if(Fa.vertex){Oa=null!=ia?0:ta;Ha=null!=ia?0:xa;null!=T&&null!=Fa.getAttribute(T)&&(Fa.geometry.x=Oa+parseFloat(Fa.getAttribute(T)));null!=W&&null!=Fa.getAttribute(W)&&(Fa.geometry.y=Ha+parseFloat(Fa.getAttribute(W)));var $a="@"==u.charAt(0)?Fa.getAttribute(u.substring(1)):null;Fa.geometry.width=null!=$a&&"auto"!=$a?parseFloat(Fa.getAttribute(u.substring(1))):"auto"==u||"auto"==$a?Ea.width+oa:parseFloat(u);var cb=+"@"==H.charAt(0)?Fa.getAttribute(H.substring(1)):null;Fa.geometry.height=null!=cb&&"auto"!=cb&&"width"!=H?parseFloat(cb):"auto"==H||"auto"==cb?Ea.height+oa:"width"==H?Fa.geometry.width:parseFloat(H);ca+=Fa.geometry.height+X}q?(null==J[Aa]&&(J[Aa]=[]),J[Aa].push(Fa)):(x.push(Fa),null!=ia?(ia.style=l.replacePlaceholders(ia,ua,V),l.addCell(Fa,ia),A.push(ia)):E.push(l.addCell(Fa)))}for(Da=0;Da<A.length;Da++)$a="@"==u.charAt(0)?A[Da].getAttribute(u.substring(1)):null,cb="@"==H.charAt(0)?A[Da].getAttribute(H.substring(1)):+null,"auto"!=u&&"auto"!=$a||"auto"!=H&&"auto"!=cb||l.updateGroupBounds([A[Da]],oa,!0);var Za=E.slice(),eb=E.slice();for(Ka=0;Ka<na.length;Ka++){var lb=na[Ka];for(Da=0;Da<x.length;Da++){Fa=x[Da];var wb=mxUtils.bind(this,function(Bb,Hb,Ab){var Db=Hb.getAttribute(Ab.from);if(null!=Db&&""!=Db){Db=Db.split(",");for(var z=0;z<Db.length;z++){var L=Q[Ab.to][Db[z]];if(null==L&&null!=ja){L=new mxCell(Db[z],new mxGeometry(ta,xa,0,0),ja);L.style=l.replacePlaceholders(Hb,L.style,V);var M=l.getPreferredSizeForCell(L);L.geometry.width=M.width+oa;L.geometry.height=M.height+oa;Q[Ab.to][Db[z]]=L;L.vertex=!0;L.id=Db[z];E.push(l.addCell(L))}if(null!=L){M=Ab.label;null!=Ab.fromlabel&&(M=(Hb.getAttribute(Ab.fromlabel)||"")+(M||""));null!=Ab.sourcelabel&&(M=l.replacePlaceholders(Hb,Ab.sourcelabel,V)+(M||""));null!=Ab.tolabel&&(M=(M||"")+(L.getAttribute(Ab.tolabel)||""));null!=Ab.targetlabel&&(M=(M||"")+l.replacePlaceholders(L,Ab.targetlabel,V));var S="target"==Ab.placeholders==!Ab.invert?L:Bb;S=null!=Ab.style?l.replacePlaceholders(S,Ab.style,V):l.createCurrentEdgeStyle();M=l.insertEdge(null,null,M||"",Ab.invert?L:Bb,Ab.invert?Bb:L,S);if(null!=Ab.labels)for(S=0;S<Ab.labels.length;S++){var Z=Ab.labels[S],da=new mxCell(Z.label||S,new mxGeometry(null!=Z.x?Z.x:0,null!=Z.y?Z.y:0,0,0),"resizable=0;html=1;");da.vertex=!0;da.connectable=!1;da.geometry.relative=!0;null!=Z.placeholders&&(da.value=l.replacePlaceholders("target"==Z.placeholders==!Ab.invert?L:Bb,da.value,V));if(null!=Z.dx||null!=Z.dy)da.geometry.offset=new mxPoint(null!=Z.dx?Z.dx:0,null!=Z.dy?Z.dy:0);M.insert(da)}if(null!=Ab.data)for(var ma in Ab.data)l.setAttributeForCell(M,ma,Ab.data[ma]);eb.push(M);mxUtils.remove(Ab.invert?Bb:L,Za)}}}});wb(Fa,Fa,lb);if(null!=J[Fa.id])for(Ia=0;Ia<J[Fa.id].length;Ia++)wb(Fa,J[Fa.id][Ia],lb)}}if(null!=va)for(Da=0;Da<x.length;Da++)for(Fa=x[Da],Ia=0;Ia<va.length;Ia++)l.setAttributeForCell(Fa,mxUtils.trim(va[Ia]),null);if(0<E.length){var rb=new mxParallelEdgeLayout(l);rb.spacing=ha;rb.checkOverlap=!0;var xb=function(){0<rb.spacing&&rb.execute(l.getDefaultParent());-var Bb=0,Hb=0;0<E.length&&(Hb=l.getCellGeometry(E[0]),Bb=Math.round(l.snap(Hb.x))-Hb.x,Hb=Math.round(l.snap(Hb.y))-Hb.y);for(var Ab=0;Ab<E.length;Ab++){var Db=l.getCellGeometry(E[Ab]);Db.x=Math.round(Db.x+Bb);Db.y=Math.round(Db.y+Hb);"auto"==v&&(Db.width=Math.round(l.snap(Db.width)));"auto"==H&&(Db.height=Math.round(l.snap(Db.height)))}};"auto"==Ba&&1==Za.length&&(Ba=eb.length==2*E.length-1?"verticaltree":"verticalflow");var Jb="organic"==Ba||null!=EditorUi.CSV_ELK_LAYOUTS[Ba]?null:this.resolveLayoutList(Ba);+var Bb=0,Hb=0;0<E.length&&(Hb=l.getCellGeometry(E[0]),Bb=Math.round(l.snap(Hb.x))-Hb.x,Hb=Math.round(l.snap(Hb.y))-Hb.y);for(var Ab=0;Ab<E.length;Ab++){var Db=l.getCellGeometry(E[Ab]);Db.x=Math.round(Db.x+Bb);Db.y=Math.round(Db.y+Hb);"auto"==u&&(Db.width=Math.round(l.snap(Db.width)));"auto"==H&&(Db.height=Math.round(l.snap(Db.height)))}};"auto"==Ba&&1==Za.length&&(Ba=eb.length==2*E.length-1?"verticaltree":"verticalflow");var Jb="organic"==Ba||null!=EditorUi.CSV_ELK_LAYOUTS[Ba]?null:this.resolveLayoutList(Ba);if(null!=Jb){var Fb=la;l.view.validate();var Tb=l.createLayouts(Jb);this.scopeLayoutsToCells(Tb,eb);this.executeLayouts(Tb,function(){xb();Fb()});la=null}else if("circle"==Ba){var Rb=new mxCircleLayout(l);Rb.disableEdgeStyle=!1;Rb.resetEdges=!1;var $b=Rb.isVertexIgnored;Rb.isVertexIgnored=function(Bb){return $b.apply(this,arguments)||0>mxUtils.indexOf(E,Bb)};this.executeLayout(function(){Rb.execute(l.getDefaultParent());xb()},!0,la);la=null}else if("verticaltree"==Ba||"horizontaltree"==Ba){l.view.validate();var Mb=new mxCompactTreeLayout(l,"horizontaltree"==Ba);Mb.levelDistance=X;Mb.edgeRouting=!1;Mb.resetEdges=!1;Mb.sortEdges=!0;var Wb=Mb.isVertexIgnored;Mb.isVertexIgnored=function(Bb){return Wb.apply(this,arguments)||0>mxUtils.indexOf(E,Bb)};this.executeLayout(function(){Mb.execute(l.getDefaultParent(),0<Za.length?Za[0]:null)},!0,la);la=null}else if("orgchart"==Ba){l.view.validate();var zb=new mxOrgChartLayout(l,2,ea,X),Ub=zb.isVertexIgnored;zb.isVertexIgnored=function(Bb){return Ub.apply(this,arguments)||0>mxUtils.indexOf(E,Bb)};this.executeLayout(function(){zb.execute(l.getDefaultParent());xb()},!0,la);la=null}else if("organic"==Ba||"auto"==Ba&&eb.length>E.length){l.view.validate();var Lb=new mxFastOrganicLayout(l);Lb.forceConstant=3*X;Lb.disableEdgeStyle=!1;Lb.resetEdges=!1;var Xb=Lb.isVertexIgnored;Lb.isVertexIgnored=function(Bb){return Xb.apply(this,arguments)||0>mxUtils.indexOf(E,Bb)};this.executeLayout(function(){Lb.execute(l.getDefaultParent());xb()},!0,la);la=null}else if(null!=EditorUi.CSV_ELK_LAYOUTS[Ba]){l.view.validate();@@ -4822,51 +4824,52 @@ x="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=f&&f.isEditable();tthis.actions.get("moveToFolder").setEnabled(null!=f);this.actions.get("makeCopy").setEnabled(null!=f&&!f.isRestricted());this.actions.get("editDiagram").setEnabled(q&&(null==f||!f.isRestricted()));this.actions.get("publishLink").setEnabled(null!=f&&!f.isRestricted());this.actions.get("removeFormat").setEnabled(c.isEnabled()&&!c.isSelectionEmpty()&&!c.isEditing());this.actions.get("tags").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("layers").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("outline").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("rename").setEnabled(null!=f&&f.isRenamable()||"1"==urlParams.embed);this.actions.get("close").setEnabled(null!=f);this.actions.get("properties").setEnabled(null!=f);this.menus.get("publish").setEnabled(null!=f&&!f.isRestricted());f=this.actions.get("findReplace");f.setEnabled("none"!=this.diagramContainer.style.display);f.label=mxResources.get("find")+(c.isEnabled()?"/"+mxResources.get("replace"):"");c=c.view.getState(c.getSelectionCell());this.actions.get("editShape").setEnabled(q&&null!=c&&null!=c.shape&&null!=c.shape.stencil)};var R=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);R.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(c,f,l,q,x,A,E,J){var Q=c.editor.graph;-if("xml"==l)c.hideDialog(),c.saveData(f,"xml",mxUtils.getXml(c.editor.getGraphXml()),"text/xml");else if("svg"==l)c.hideDialog(),c.saveData(f,"svg",mxUtils.getXml(Q.getSvg(q,x,A)),"image/svg+xml");else{var V=c.getFileData(!0,null,null,null,null,!0),K=Q.getGraphBounds(),fa=Math.floor(K.width*x/Q.view.scale),Y=Math.floor(K.height*x/Q.view.scale);if(V.length<=MAX_REQUEST_SIZE&&fa*Y<MAX_AREA)if(c.hideDialog(),"png"!=l&&"jpg"!=l&&"jpeg"!=l||!c.editor.isExportToCanvas()){var aa={globalVars:Q.getExportVariables()};-J&&(aa.grid={size:Q.gridSize,steps:Q.view.gridSteps,color:Q.view.gridColor});c.saveRequest(f,l,function(ja,ka){return new mxXmlRequest(EXPORT_URL,"format="+l+"&base64="+(ka||"0")+(null!=ja?"&filename="+encodeURIComponent(ja):"")+"&extras="+encodeURIComponent(JSON.stringify(aa))+(0<E?"&dpi="+E:"")+"&bg="+(null!=q?q:"none")+"&w="+fa+"&h="+Y+"&border="+A+"&xml="+encodeURIComponent(V))})}else"png"==l?c.exportImage(x,null==q||"none"==q,!0,!1,!1,A,!0,!1,null,J,E):c.exportImage(x,!1,!0,!1,!1,A,!0,!1,"jpeg",-J);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var c=this.editor.graph,f="";if(null!=this.pages)for(var l=0;l<this.pages.length;l++){var q=c;this.currentPage!=this.pages[l]&&(q=this.createTemporaryGraph(c.getStylesheet()),this.updatePageRoot(this.pages[l]),q.model.setRoot(this.pages[l].root));f+=this.pages[l].getName()+" "+q.getIndexableText()+" "}else f=c.getIndexableText();this.editor.graph.setEnabled(!0);-return f};EditorUi.prototype.writeJsonLabel=function(c,f,l){if(null!=f&&""!=f){if(this.editor.graph.isHtmlLabel(c)&&(c=document.createElement("div"),c.innerHTML=Graph.sanitizeHtml(f),0<c.getElementsByTagName("*").length)){l.label=mxUtils.trim(mxUtils.extractTextWithWhitespace([c]));l.html=f;return}l.label=f}};EditorUi.prototype.getJsonForExportCell=function(c,f){var l={id:c.getId()};l.type=f?"layer":c.edge?"edge":c.vertex?"node":"group";f||(f=c.getParent(),null!=f&&(l.parent=f.getId()));c.edge&&(null!=-c.source&&(l.source=c.source.getId()),null!=c.target&&(l.target=c.target.getId()));f=c.value;if(null!=f&&mxUtils.isNode(f)){this.writeJsonLabel(c,f.getAttribute("label"),l);c=f.attributes;f={};for(var q=0,x=0;x<c.length;x++){var A=c[x].nodeName;"label"!=A&&"placeholders"!=A&&"id"!=A&&(f[A]=c[x].nodeValue,q++)}0<q&&(l.metadata=f)}else"string"===typeof f&&this.writeJsonLabel(c,f,l);return l};EditorUi.prototype.getJsonForPage=function(c,f){var l=this.editor.graph.getModel();var q=null==c||c==this.currentPage?-l.getRoot():this.updatePageRoot(c).root;var x=[],A=mxUtils.bind(this,function(K,fa){x.push(this.getJsonForExportCell(K,fa));fa=K.getChildCount();for(var Y=0;Y<fa;Y++)A(K.getChildAt(Y),!1)});if(null!=f){q={};for(var E=0;E<f.length;E++)q[f[E].getId()]=!0;for(E=0;E<f.length;E++){for(var J=f[E],Q=J.getParent(),V=!1;null!=Q;){if(q[Q.getId()]){V=!0;break}Q=Q.getParent()}V||A(J,l.isLayer(J))}}else for(f=q.getChildCount(),E=0;E<f;E++)A(q.getChildAt(E),!0);E={};null!=c&&(E.id=c.getId(),E.name=c.getName());-E.cells=x;return E};EditorUi.prototype.createJsonForExport=function(c,f,l,q){var x={version:EditorUi.VERSION};f&&(x.data=mxUtils.getXml(this.getXmlFileData(!q,!c,!l)));f=[];if(q)f.push(this.getJsonForPage(this.currentPage,this.editor.graph.getSelectionCells()));else if(c&&null!=this.pages)for(c=0;c<this.pages.length;c++)f.push(this.getJsonForPage(this.pages[c]));else f.push(this.getJsonForPage(this.currentPage));x.pages=f;return x};EditorUi.prototype.showRemotelyStoredLibrary=function(c){var f={},-l=document.createElement("div");l.style.whiteSpace="nowrap";var q=document.createElement("h3");mxUtils.write(q,mxUtils.htmlEntities(c));l.appendChild(q);var x=document.createElement("div");x.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";x.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var A={};try{var E=mxSettings.getCustomLibraries();for(c=0;c<E.length;c++){var J=E[c];if("R"==J.substring(0,1)){var Q=JSON.parse(decodeURIComponent(J.substring(1)));-A[Q[0]]={id:Q[0],title:Q[1],downloadUrl:Q[2]}}}}catch(V){}this.remoteInvoke("getCustomLibraries",null,null,function(V){x.innerText="";if(0==V.length)x.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var K=0;K<V.length;K++){var fa=V[K];A[fa.id]&&(f[fa.id]=fa);var Y=this.addCheckbox(x,fa.title,A[fa.id]);(function(aa,ja){mxEvent.addListener(ja,"change",function(){this.checked?f[aa.id]=aa:delete f[aa.id]})})(fa,-Y)}},mxUtils.bind(this,function(V){x.innerText="";var K=document.createElement("div");K.style.padding="8px";K.style.textAlign="center";mxUtils.write(K,mxResources.get("error")+": ");mxUtils.write(K,null!=V&&null!=V.message?V.message:mxResources.get("unknownError"));x.appendChild(K)}));l.appendChild(x);l=new CustomDialog(this,l,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));var V=0,K;for(K in f)null==A[K]&&(V++,mxUtils.bind(this,function(fa){this.remoteInvoke("getFileContent",-[fa.downloadUrl],null,mxUtils.bind(this,function(Y){V--;0==V&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,Y,fa)),this.showSidebar()}catch(aa){this.handleError(aa,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){V--;0==V&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(f[K]));for(K in A)f[K]||this.closeLibrary(new RemoteLibrary(this,null,A[K]));0==V&&this.spinner.stop()}),null,null,"https://www.drawio.com/doc/faq/custom-libraries-confluence-cloud");-this.showDialog(l.container,340,390,!0,!0,null,null,null,null,!0)};EditorUi.prototype.remoteInvokableFns={getDiagramTextContent:{isAsync:!1},getLocalStorageFile:{isAsync:!1,allowedDomains:["app.diagrams.net"]},getLocalStorageFileNames:{isAsync:!1,allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}};EditorUi.prototype.remoteInvokeCallbacks=[];EditorUi.prototype.remoteInvokeQueue=[];EditorUi.prototype.handleRemoteInvokeReady=function(c){this.remoteWin=-c;for(var f=0;f<this.remoteInvokeQueue.length;f++)c.postMessage(this.remoteInvokeQueue[f],"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var f=c.msgMarkers,l=null!=f?f.callbackId:null,q="number"===typeof l&&0<=l&&l<this.remoteInvokeCallbacks.length?this.remoteInvokeCallbacks[l]:null;if(null==q)throw Error("No callback for "+(null!=f?f.callbackId:"null"));c.error?q.error&&q.error(c.error.errResp):q.callback&&q.callback.apply(this,c.resp);this.remoteInvokeCallbacks[l]=-null};EditorUi.prototype.remoteInvoke=function(c,f,l,q,x){var A=!0,E=window.setTimeout(mxUtils.bind(this,function(){A=!1;x({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),J=mxUtils.bind(this,function(){window.clearTimeout(E);A&&q.apply(this,arguments)}),Q=mxUtils.bind(this,function(){window.clearTimeout(E);A&&x.apply(this,arguments)});l=l||{};l.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:J,error:Q});c=JSON.stringify({event:"remoteInvoke",-funtionName:c,functionArgs:f,msgMarkers:l});null!=this.remoteWin?this.remoteWin.postMessage(c,"*"):this.remoteInvokeQueue.push(c)};EditorUi.prototype.handleRemoteInvoke=function(c,f){var l=mxUtils.bind(this,function(V,K){var fa={event:"remoteInvokeResponse",msgMarkers:c.msgMarkers};null!=K?fa.error={errResp:K}:null!=V&&(fa.resp=V);this.remoteWin.postMessage(JSON.stringify(fa),"*")});try{var q=c.funtionName,x=null!=q&&Object.prototype.hasOwnProperty.call(this.remoteInvokableFns,q)?this.remoteInvokableFns[q]:-null;if(null!=x&&"function"===typeof this[q]){if(x.allowedDomains){for(var A=!1,E=0;E<x.allowedDomains.length;E++)if(f=="https://"+x.allowedDomains[E]){A=!0;break}if(!A){l(null,"Invalid Call: "+q+" is not allowed.");return}}var J=c.functionArgs;Array.isArray(J)||(J=[]);if(x.isAsync)J.push(function(){l(Array.prototype.slice.apply(arguments))}),J.push(function(V){l(null,V||"Unkown Error")}),this[q].apply(this,J);else{var Q=this[q].apply(this,J);l([Q])}}else l(null,"Invalid Call: "+q+" is not found.")}catch(V){l(null,-"Invalid Call: An error occurred, "+V.message)}};EditorUi.prototype.openDatabase=function(c,f){if(null==this.database){var l=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=l)try{var q=l.open("database",2);q.onupgradeneeded=function(x){try{var A=q.result;1>x.oldVersion&&A.createObjectStore("objects",{keyPath:"key"});2>x.oldVersion&&(A.createObjectStore("files",{keyPath:"title"}),A.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(E){null!=-f&&f(E)}};q.onsuccess=mxUtils.bind(this,function(x){try{var A=q.result;this.database=A;EditorUi.migrateStorageFiles&&(StorageFile.migrate(A),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(E){if((!E||"1"==urlParams.forceMigration)&&"1"==urlParams.forceMigration){var J=document.createElement("iframe");J.style.display="none";J.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+-urlParams.forceMigration);document.body.appendChild(J);var Q=!0,V=!1,K,fa=0,Y=mxUtils.bind(this,function(){V=!0;this.setDatabaseItem(".drawioMigrated3",!0);J.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),aa=mxUtils.bind(this,function(){fa++;ja()}),ja=mxUtils.bind(this,function(){try{if(fa>=K.length)Y();else{var ua=K[fa];StorageFile.getFileContent(this,ua,mxUtils.bind(this,function(Ca){null==Ca||".scratchpad"==ua&&Ca==this.emptyLibraryXml?J.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",-funtionName:"getLocalStorageFile",functionArgs:[ua]}),"*"):aa()}),aa)}}catch(Ca){console.log(Ca)}}),ka=mxUtils.bind(this,function(ua){try{this.setDatabaseItem(null,[{title:ua.title,size:ua.data.length,lastModified:Date.now(),type:ua.isLib?"L":"F"},{title:ua.title,data:ua.data}],aa,aa,["filesInfo","files"])}catch(Ca){console.log(Ca)}});E=mxUtils.bind(this,function(ua){try{if(ua.source==J.contentWindow){var Ca={};try{Ca=JSON.parse(ua.data)}catch(ia){}"init"==Ca.event?(J.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),-"*"),J.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=Ca.event||V||(Q?null!=Ca.resp&&0<Ca.resp.length&&null!=Ca.resp[0]?(K=Ca.resp[0],Q=!1,ja()):Y():null!=Ca.resp&&0<Ca.resp.length&&null!=Ca.resp[0]?ka(Ca.resp[0]):aa())}}catch(ia){console.log(ia)}});window.addEventListener("message",E)}})));c(A);A.onversionchange=function(){A.close()}}catch(E){null!=f?f(E):null!=window.console&&console.warn(E)}});q.onerror=f;q.onblocked=-function(){}}catch(x){null!=f?f(x):null!=window.console&&console.error(x)}else null!=f&&f(Error("IndexedDB not supported"))}else c(this.database)};EditorUi.prototype.setDatabaseItem=function(c,f,l,q,x){this.openDatabase(mxUtils.bind(this,function(A){try{x=x||"objects";Array.isArray(x)||(x=[x],c=[c],f=[f]);var E=A.transaction(x,"readwrite");E.oncomplete=l;E.onerror=q;for(A=0;A<x.length;A++)E.objectStore(x[A]).put(null!=c&&null!=c[A]?{key:c[A],data:f[A]}:f[A])}catch(J){null!=q&&q(J)}}),q)};EditorUi.prototype.removeDatabaseItem=-function(c,f,l,q){this.openDatabase(mxUtils.bind(this,function(x){try{q=q||"objects";Array.isArray(q)||(q=[q],c=[c]);var A=x.transaction(q,"readwrite");A.oncomplete=f;A.onerror=l;for(x=0;x<q.length;x++)A.objectStore(q[x]).delete(c[x])}catch(E){null!=l&&l(E)}}),l)};EditorUi.prototype.getDatabaseItem=function(c,f,l,q){this.openDatabase(mxUtils.bind(this,function(x){try{q=q||"objects";var A=x.transaction([q],"readonly").objectStore(q).get(c);A.onsuccess=function(){f(A.result)};A.onerror=l}catch(E){null!=-l&&l(E)}}),l)};EditorUi.prototype.getDatabaseItems=function(c,f,l){this.openDatabase(mxUtils.bind(this,function(q){try{l=l||"objects";var x=q.transaction([l],"readonly").objectStore(l).openCursor(IDBKeyRange.lowerBound(0)),A=[];x.onsuccess=function(E){null==E.target.result?c(A):(A.push(E.target.result.value),E.target.result.continue())};x.onerror=f}catch(E){null!=f&&f(E)}}),f)};EditorUi.prototype.getDatabaseItemKeys=function(c,f,l){this.openDatabase(mxUtils.bind(this,function(q){try{l=l||"objects";-var x=q.transaction([l],"readonly").objectStore(l).getAllKeys();x.onsuccess=function(){c(x.result)};x.onerror=f}catch(A){null!=f&&f(A)}}),f)};EditorUi.prototype.commentsSupported=function(){var c=this.getCurrentFile();return null!=c?c.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsSaveNeeded():!1};-EditorUi.prototype.getComments=function(c,f){var l=this.getCurrentFile();null!=l?l.getComments(c,f):c([])};EditorUi.prototype.addComment=function(c,f,l){var q=this.getCurrentFile();null!=q?q.addComment(c,f,l):f(Date.now())};EditorUi.prototype.canReplyToReplies=function(){var c=this.getCurrentFile();return null!=c?c.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.anchoredCommentsSupported=function(){var c=-this.getCurrentFile();return null!=c?c.anchoredCommentsSupported():!1};EditorUi.prototype.mentionsSupported=function(){var c=this.getCurrentFile();return null!=c?c.mentionsSupported():!1};EditorUi.prototype.freeMentionsSupported=function(){var c=this.getCurrentFile();return null!=c?c.freeMentionsSupported():!1};EditorUi.prototype.mentionsLiveSearch=function(){var c=this.getCurrentFile();return null!=c?c.mentionsLiveSearch():!1};EditorUi.prototype.mentionNotificationsSupported=function(){var c=this.getCurrentFile();-return null!=c?c.mentionNotificationsSupported():!0};EditorUi.prototype.getMentionCandidates=function(c,f,l){var q=this.getCurrentFile();null!=q?q.getMentionCandidates(c,f,l):c([])};EditorUi.prototype.serializeMention=function(c){return"+"+c.email};EditorUi.prototype.parseMentionTokens=function(c){for(var f=/[+@]([A-Za-z0-9.!#$%&'*/=?^_`{|}~+\-]+@[A-Za-z0-9.\-]+\.[A-Za-z]{2,})/g,l=[],q=0,x;null!=(x=f.exec(c));)x.index>q&&l.push(c.substring(q,x.index)),l.push({email:x[1]}),q=x.index+x[0].length;q<-c.length&&l.push(c.substring(q));return l};EditorUi.prototype.getCommentCacheTarget=function(){var c=this.getCurrentFile();return null!=c?c:this};EditorUi.prototype.refreshCommentCache=function(c,f){if(this.commentsSupported()){var l=this.getCommentCacheTarget();if(null!=l.commentCacheCallbacks)l.commentCacheCallbacks.push([c,f]);else{l.commentCacheCallbacks=[[c,f]];var q=mxUtils.bind(this,function(x,A){var E=l.commentCacheCallbacks;l.commentCacheCallbacks=null;for(var J=0;null!=E&&J<E.length;J++)if(null!=-E[J][x])E[J][x](A)});this.getComments(mxUtils.bind(this,function(x){this.getCommentCacheTarget()==l&&(l.commentCache=x,this.fireEvent(new mxEventObject("commentsChanged")));q(0,x)}),mxUtils.bind(this,function(x){q(1,x)}))}}else null!=c&&c(null)};EditorUi.prototype.commentsUpdated=function(){if(this.commentsSupported()){var c=this.getCurrentFile();null!=c&&null!=c.sync&&c.sync.sendCommentsChangedMessage();this.refreshCommentCache()}};EditorUi.prototype.getUnresolvedCommentCount=function(){var c=this.getCommentCacheTarget().commentCache,-f=0;if(null!=c)for(var l=0;l<c.length;l++)c[l].isResolved||f++;return f};EditorUi.prototype.getCommentAnchorCells=function(c){var f=c.getAnchorCellIds(),l=[];if(null!=f&&0<f.length){c=c.getAnchorPageId();var q=null==c?this.currentPage:this.getPageById(c);if(null!=q)if(q==this.currentPage)for(c=0;c<f.length;c++)q=this.editor.graph.model.getCell(f[c]),null!=q&&l.push(q);else{try{this.updatePageRoot(q)}catch(J){return l}if(null!=q.root){var x={},A=0;for(c=0;c<f.length;c++)x[f[c]]||(x[f[c]]=!0,A++);var E=-function(J){if(0<A){x[J.getId()]&&(x[J.getId()]=!1,l.push(J),A--);for(var Q=0;Q<J.getChildCount();Q++)E(J.getChildAt(Q))}};E(q.root)}}}return l};EditorUi.prototype.gotoCommentAnchor=function(c){var f=c.getAnchorPageId();if(null!=f&&null!=this.currentPage&&f!=this.currentPage.getId()){f=this.getPageById(f);if(null==f)return!1;this.selectPage(f)}f=this.editor.graph;var l=c.getAnchorCellIds();if(null!=l&&0<l.length){c=[];for(var q=0;q<l.length;q++){var x=f.model.getCell(l[q]);null!=x&&c.push(x)}return 0<-c.length?(f.isEnabled()?f.setSelectionCells(c):f.highlightCells(c,"#0071e3",2E3),f.scrollCellToVisible(c[0]),!0):!1}l=c.getAnchorRect();null!=l&&0<l.w&&0<l.h&&f.fitWindow(new mxRectangle(l.x,l.y,l.w,l.h),0);c=c.getAnchorPoint();if(null!=c){l=f.view.scale;q=f.view.translate;f=f.container;f.scrollLeft=Math.round((c.x+q.x)*l-f.clientWidth/2);f.scrollTop=Math.round((c.y+q.y)*l-f.clientHeight/2);var A=document.createElement("div");A.className="geCommentAnchorMarker";A.style.left=Math.round((c.x+q.x)*l)+-"px";A.style.top=Math.round((c.y+q.y)*l)+"px";f.appendChild(A);window.setTimeout(function(){null!=A.parentNode&&A.parentNode.removeChild(A)},2E3)}return!0};EditorUi.prototype.addCommentsBadge=function(c){var f=document.createElement("span");f.className="geCommentsBadge";f.style.display="none";c.appendChild(f);c=mxUtils.bind(this,function(){var l=this.getUnresolvedCommentCount();f.style.display=0<l?"":"none";f.innerText="";mxUtils.write(f,99<l?"99+":String(l))});this.addListener("commentsChanged",-c);this.editor.addListener("fileLoaded",c);c();return f};EditorUi.prototype.installCommentDragSource=function(c){var f=this,l=document.createElement("div");l.style.width="24px";l.style.height="24px";l.style.backgroundImage="url("+Editor.lightDarkCommentImage+")";l.style.backgroundSize="100% 100%";l.style.opacity="0.9";c=mxUtils.makeDraggable(c,function(){return f.editor.graph},function(x,A,E,J,Q){null!=f.currentPage&&null!=f.menus&&null!=f.menus.showCommentsWindow&&(x=null!=E?{p:f.currentPage.getId(),-c:E.id}:{p:f.currentPage.getId(),pt:{x:Math.round(J),y:Math.round(Q)}},f.menus.showCommentsWindow(null,x))},l);var q=c.mouseDown;c.mouseDown=function(x){mxEvent.isMouseEvent(x)&&!mxEvent.isPopupTrigger(x)&&f.commentsSupported()&&f.anchoredCommentsSupported()&&f.canComment()&&q.apply(this,arguments)};return c};EditorUi.prototype.updateCommentOverlays=function(){var c=this.editor.graph;if(null!=this.commentOverlays)for(var f=0;f<this.commentOverlays.length;f++)c.removeCellOverlay(this.commentOverlays[f].cell,-this.commentOverlays[f].overlay);this.commentOverlays=null;var l=this.getCurrentFile();if(null!=l&&l.anchoredCommentsSupported()&&null!=l.commentCache&&!this.editor.isChromelessView()){var q=null!=this.currentPage?this.currentPage.getId():null,x={};for(f=0;f<l.commentCache.length;f++){var A=l.commentCache[f],E=A.getAnchorCellIds();if(!A.isResolved&&null!=E&&A.getAnchorPageId()==q)for(A=0;A<E.length;A++)x[E[A]]=!0}this.commentOverlays=[];for(var J in x)mxUtils.bind(this,function(Q){var V=c.model.getCell(Q);-if(null!=V){var K=new mxCellOverlay(new mxImage(Editor.lightDarkCommentImage,16,16),mxResources.get("comments"),mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM,new mxPoint(8,8));K.isCommentOverlay=!0;K.cursor="pointer";K.addListener(mxEvent.CLICK,mxUtils.bind(this,function(){null!=this.menus&&null!=this.menus.showCommentsWindow&&this.menus.showCommentsWindow(Q)}));c.addCellOverlay(V,K);this.commentOverlays.push({cell:V,overlay:K})}})(J)}};EditorUi.prototype.newComment=function(c,f){var l=this.getCurrentFile();-return null!=l?l.newComment(c,f):new DrawioComment(this,null,c,Date.now(),Date.now(),!1,f)};EditorUi.prototype.isRevisionHistorySupported=function(){var c=this.getCurrentFile();return null!=c&&c.isRevisionHistorySupported()};EditorUi.prototype.getRevisions=function(c,f){var l=this.getCurrentFile();null!=l&&l.getRevisions?l.getRevisions(c,f):f({message:mxResources.get("unknownError")})};EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==-DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.vsdxExportEnabled=function(){return"atlassian"==this.getServiceName()};EditorUi.prototype.addRemoteServiceSecurityCheck=function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,f,l,q,x,A,E,J){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,f,l,q,x,A,E,J)};EditorUi.prototype.loadFonts=-function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,f)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(c)};-EditorUi.prototype.exportToCanvas=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,f,l,q){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(c,-f,l,q)};EditorUi.prototype.convertImageToDataUri=function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,f)};EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=function(c,f,l,q){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(c,f,l,q)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");-return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,f,l,q,x){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,f,l,q,x)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var c=[],f=0;f<localStorage.length;f++){var l=localStorage.key(f),q=localStorage.getItem(l);if(0<l.length&&(".scratchpad"==l||"."!=l.charAt(0))&&0<q.length){var x=-"<mxfile "===q.substring(0,8)||"<?xml"===q.substring(0,5)||"\x3c!--[if IE]>"===q.substring(0,12);q="<mxlibrary>"===q.substring(0,11);(x||q)&&c.push(l)}}return c};EditorUi.prototype.getLocalStorageFile=function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;var f=localStorage.getItem(c);return{title:c,data:f,isLib:"<mxlibrary>"===f.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();+if("xml"==l)c.hideDialog(),c.saveData(f,"xml",mxUtils.getXml(c.editor.getGraphXml()),"text/xml");else if("svg"==l)c.hideDialog(),c.saveData(f,"svg",mxUtils.getXml(Q.getSvg(q,x,A)),"image/svg+xml");else{var V=c.getFileData(!0,null,null,null,null,!0),K=Q.getGraphBounds(),fa=Math.floor(K.width*x/Q.view.scale),Y=Math.floor(K.height*x/Q.view.scale);if(V.length<=MAX_REQUEST_SIZE&&fa*Y<MAX_AREA)if(c.hideDialog(),"png"!=l&&"jpg"!=l&&"jpeg"!=l||!c.editor.isExportToCanvas())if(c.isRemoteExportEnabled()){var aa=+{globalVars:Q.getExportVariables()};J&&(aa.grid={size:Q.gridSize,steps:Q.view.gridSteps,color:Q.view.gridColor});c.saveRequest(f,l,function(ja,ka){return new mxXmlRequest(EXPORT_URL,"format="+l+"&base64="+(ka||"0")+(null!=ja?"&filename="+encodeURIComponent(ja):"")+"&extras="+encodeURIComponent(JSON.stringify(aa))+(0<E?"&dpi="+E:"")+"&bg="+(null!=q?q:"none")+"&w="+fa+"&h="+Y+"&border="+A+"&xml="+encodeURIComponent(V))})}else c.handleError({message:mxResources.get("notAvailable")});else"png"==l?c.exportImage(x,+null==q||"none"==q,!0,!1,!1,A,!0,!1,null,J,E):c.exportImage(x,!1,!0,!1,!1,A,!0,!1,"jpeg",J);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var c=this.editor.graph,f="";if(null!=this.pages)for(var l=0;l<this.pages.length;l++){var q=c;this.currentPage!=this.pages[l]&&(q=this.createTemporaryGraph(c.getStylesheet()),this.updatePageRoot(this.pages[l]),q.model.setRoot(this.pages[l].root));f+=this.pages[l].getName()++" "+q.getIndexableText()+" "}else f=c.getIndexableText();this.editor.graph.setEnabled(!0);return f};EditorUi.prototype.writeJsonLabel=function(c,f,l){if(null!=f&&""!=f){if(this.editor.graph.isHtmlLabel(c)&&(c=document.createElement("div"),c.innerHTML=Graph.sanitizeHtml(f),0<c.getElementsByTagName("*").length)){l.label=mxUtils.trim(mxUtils.extractTextWithWhitespace([c]));l.html=f;return}l.label=f}};EditorUi.prototype.getJsonForExportCell=function(c,f){var l={id:c.getId()};l.type=f?"layer":c.edge?"edge":+c.vertex?"node":"group";f||(f=c.getParent(),null!=f&&(l.parent=f.getId()));c.edge&&(null!=c.source&&(l.source=c.source.getId()),null!=c.target&&(l.target=c.target.getId()));f=c.value;if(null!=f&&mxUtils.isNode(f)){this.writeJsonLabel(c,f.getAttribute("label"),l);c=f.attributes;f={};for(var q=0,x=0;x<c.length;x++){var A=c[x].nodeName;"label"!=A&&"placeholders"!=A&&"id"!=A&&(f[A]=c[x].nodeValue,q++)}0<q&&(l.metadata=f)}else"string"===typeof f&&this.writeJsonLabel(c,f,l);return l};EditorUi.prototype.getJsonForPage=+function(c,f){var l=this.editor.graph.getModel();var q=null==c||c==this.currentPage?l.getRoot():this.updatePageRoot(c).root;var x=[],A=mxUtils.bind(this,function(K,fa){x.push(this.getJsonForExportCell(K,fa));fa=K.getChildCount();for(var Y=0;Y<fa;Y++)A(K.getChildAt(Y),!1)});if(null!=f){q={};for(var E=0;E<f.length;E++)q[f[E].getId()]=!0;for(E=0;E<f.length;E++){for(var J=f[E],Q=J.getParent(),V=!1;null!=Q;){if(q[Q.getId()]){V=!0;break}Q=Q.getParent()}V||A(J,l.isLayer(J))}}else for(f=q.getChildCount(),+E=0;E<f;E++)A(q.getChildAt(E),!0);E={};null!=c&&(E.id=c.getId(),E.name=c.getName());E.cells=x;return E};EditorUi.prototype.createJsonForExport=function(c,f,l,q){var x={version:EditorUi.VERSION};f&&(x.data=mxUtils.getXml(this.getXmlFileData(!q,!c,!l)));f=[];if(q)f.push(this.getJsonForPage(this.currentPage,this.editor.graph.getSelectionCells()));else if(c&&null!=this.pages)for(c=0;c<this.pages.length;c++)f.push(this.getJsonForPage(this.pages[c]));else f.push(this.getJsonForPage(this.currentPage));x.pages=+f;return x};EditorUi.prototype.showRemotelyStoredLibrary=function(c){var f={},l=document.createElement("div");l.style.whiteSpace="nowrap";var q=document.createElement("h3");mxUtils.write(q,mxUtils.htmlEntities(c));l.appendChild(q);var x=document.createElement("div");x.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";x.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var A={};try{var E=mxSettings.getCustomLibraries();for(c=0;c<+E.length;c++){var J=E[c];if("R"==J.substring(0,1)){var Q=JSON.parse(decodeURIComponent(J.substring(1)));A[Q[0]]={id:Q[0],title:Q[1],downloadUrl:Q[2]}}}}catch(V){}this.remoteInvoke("getCustomLibraries",null,null,function(V){x.innerText="";if(0==V.length)x.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var K=0;K<V.length;K++){var fa=V[K];A[fa.id]&&(f[fa.id]=fa);var Y=this.addCheckbox(x,fa.title,A[fa.id]);+(function(aa,ja){mxEvent.addListener(ja,"change",function(){this.checked?f[aa.id]=aa:delete f[aa.id]})})(fa,Y)}},mxUtils.bind(this,function(V){x.innerText="";var K=document.createElement("div");K.style.padding="8px";K.style.textAlign="center";mxUtils.write(K,mxResources.get("error")+": ");mxUtils.write(K,null!=V&&null!=V.message?V.message:mxResources.get("unknownError"));x.appendChild(K)}));l.appendChild(x);l=new CustomDialog(this,l,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));+var V=0,K;for(K in f)null==A[K]&&(V++,mxUtils.bind(this,function(fa){this.remoteInvoke("getFileContent",[fa.downloadUrl],null,mxUtils.bind(this,function(Y){V--;0==V&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,Y,fa)),this.showSidebar()}catch(aa){this.handleError(aa,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){V--;0==V&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(f[K]));for(K in A)f[K]||this.closeLibrary(new RemoteLibrary(this,+null,A[K]));0==V&&this.spinner.stop()}),null,null,"https://www.drawio.com/doc/faq/custom-libraries-confluence-cloud");this.showDialog(l.container,340,390,!0,!0,null,null,null,null,!0)};EditorUi.prototype.remoteInvokableFns={getDiagramTextContent:{isAsync:!1},getLocalStorageFile:{isAsync:!1,allowedDomains:["app.diagrams.net"]},getLocalStorageFileNames:{isAsync:!1,allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}};EditorUi.prototype.remoteInvokeCallbacks=+[];EditorUi.prototype.remoteInvokeQueue=[];EditorUi.prototype.handleRemoteInvokeReady=function(c){this.remoteWin=c;for(var f=0;f<this.remoteInvokeQueue.length;f++)c.postMessage(this.remoteInvokeQueue[f],"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var f=c.msgMarkers,l=null!=f?f.callbackId:null,q="number"===typeof l&&0<=l&&l<this.remoteInvokeCallbacks.length?this.remoteInvokeCallbacks[l]:null;if(null==q)throw Error("No callback for "+(null!=f?f.callbackId:+"null"));c.error?q.error&&q.error(c.error.errResp):q.callback&&q.callback.apply(this,c.resp);this.remoteInvokeCallbacks[l]=null};EditorUi.prototype.remoteInvoke=function(c,f,l,q,x){var A=!0,E=window.setTimeout(mxUtils.bind(this,function(){A=!1;x({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),J=mxUtils.bind(this,function(){window.clearTimeout(E);A&&q.apply(this,arguments)}),Q=mxUtils.bind(this,function(){window.clearTimeout(E);A&&x.apply(this,arguments)});l=l||{};l.callbackId=+this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:J,error:Q});c=JSON.stringify({event:"remoteInvoke",funtionName:c,functionArgs:f,msgMarkers:l});null!=this.remoteWin?this.remoteWin.postMessage(c,"*"):this.remoteInvokeQueue.push(c)};EditorUi.prototype.handleRemoteInvoke=function(c,f){var l=mxUtils.bind(this,function(V,K){var fa={event:"remoteInvokeResponse",msgMarkers:c.msgMarkers};null!=K?fa.error={errResp:K}:null!=V&&(fa.resp=V);this.remoteWin.postMessage(JSON.stringify(fa),+"*")});try{var q=c.funtionName,x=null!=q&&Object.prototype.hasOwnProperty.call(this.remoteInvokableFns,q)?this.remoteInvokableFns[q]:null;if(null!=x&&"function"===typeof this[q]){if(x.allowedDomains){for(var A=!1,E=0;E<x.allowedDomains.length;E++)if(f=="https://"+x.allowedDomains[E]){A=!0;break}if(!A){l(null,"Invalid Call: "+q+" is not allowed.");return}}var J=c.functionArgs;Array.isArray(J)||(J=[]);if(x.isAsync)J.push(function(){l(Array.prototype.slice.apply(arguments))}),J.push(function(V){l(null,+V||"Unkown Error")}),this[q].apply(this,J);else{var Q=this[q].apply(this,J);l([Q])}}else l(null,"Invalid Call: "+q+" is not found.")}catch(V){l(null,"Invalid Call: An error occurred, "+V.message)}};EditorUi.prototype.openDatabase=function(c,f){if(null==this.database){var l=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=l)try{var q=l.open("database",2);q.onupgradeneeded=function(x){try{var A=q.result;1>x.oldVersion&&A.createObjectStore("objects",{keyPath:"key"});2>x.oldVersion&&+(A.createObjectStore("files",{keyPath:"title"}),A.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(E){null!=f&&f(E)}};q.onsuccess=mxUtils.bind(this,function(x){try{var A=q.result;this.database=A;EditorUi.migrateStorageFiles&&(StorageFile.migrate(A),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(E){if((!E||+"1"==urlParams.forceMigration)&&"1"==urlParams.forceMigration){var J=document.createElement("iframe");J.style.display="none";J.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+urlParams.forceMigration);document.body.appendChild(J);var Q=!0,V=!1,K,fa=0,Y=mxUtils.bind(this,function(){V=!0;this.setDatabaseItem(".drawioMigrated3",!0);J.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),aa=mxUtils.bind(this,function(){fa++;+ja()}),ja=mxUtils.bind(this,function(){try{if(fa>=K.length)Y();else{var ua=K[fa];StorageFile.getFileContent(this,ua,mxUtils.bind(this,function(Ca){null==Ca||".scratchpad"==ua&&Ca==this.emptyLibraryXml?J.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",functionArgs:[ua]}),"*"):aa()}),aa)}}catch(Ca){console.log(Ca)}}),ka=mxUtils.bind(this,function(ua){try{this.setDatabaseItem(null,[{title:ua.title,size:ua.data.length,lastModified:Date.now(),type:ua.isLib?+"L":"F"},{title:ua.title,data:ua.data}],aa,aa,["filesInfo","files"])}catch(Ca){console.log(Ca)}});E=mxUtils.bind(this,function(ua){try{if(ua.source==J.contentWindow){var Ca={};try{Ca=JSON.parse(ua.data)}catch(ia){}"init"==Ca.event?(J.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),J.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=Ca.event||V||(Q?null!=Ca.resp&&0<Ca.resp.length&&null!=+Ca.resp[0]?(K=Ca.resp[0],Q=!1,ja()):Y():null!=Ca.resp&&0<Ca.resp.length&&null!=Ca.resp[0]?ka(Ca.resp[0]):aa())}}catch(ia){console.log(ia)}});window.addEventListener("message",E)}})));c(A);A.onversionchange=function(){A.close()}}catch(E){null!=f?f(E):null!=window.console&&console.warn(E)}});q.onerror=f;q.onblocked=function(){}}catch(x){null!=f?f(x):null!=window.console&&console.error(x)}else null!=f&&f(Error("IndexedDB not supported"))}else c(this.database)};EditorUi.prototype.setDatabaseItem=function(c,+f,l,q,x){this.openDatabase(mxUtils.bind(this,function(A){try{x=x||"objects";Array.isArray(x)||(x=[x],c=[c],f=[f]);var E=A.transaction(x,"readwrite");E.oncomplete=l;E.onerror=q;for(A=0;A<x.length;A++)E.objectStore(x[A]).put(null!=c&&null!=c[A]?{key:c[A],data:f[A]}:f[A])}catch(J){null!=q&&q(J)}}),q)};EditorUi.prototype.removeDatabaseItem=function(c,f,l,q){this.openDatabase(mxUtils.bind(this,function(x){try{q=q||"objects";Array.isArray(q)||(q=[q],c=[c]);var A=x.transaction(q,"readwrite");A.oncomplete=+f;A.onerror=l;for(x=0;x<q.length;x++)A.objectStore(q[x]).delete(c[x])}catch(E){null!=l&&l(E)}}),l)};EditorUi.prototype.getDatabaseItem=function(c,f,l,q){this.openDatabase(mxUtils.bind(this,function(x){try{q=q||"objects";var A=x.transaction([q],"readonly").objectStore(q).get(c);A.onsuccess=function(){f(A.result)};A.onerror=l}catch(E){null!=l&&l(E)}}),l)};EditorUi.prototype.getDatabaseItems=function(c,f,l){this.openDatabase(mxUtils.bind(this,function(q){try{l=l||"objects";var x=q.transaction([l],"readonly").objectStore(l).openCursor(IDBKeyRange.lowerBound(0)),+A=[];x.onsuccess=function(E){null==E.target.result?c(A):(A.push(E.target.result.value),E.target.result.continue())};x.onerror=f}catch(E){null!=f&&f(E)}}),f)};EditorUi.prototype.getDatabaseItemKeys=function(c,f,l){this.openDatabase(mxUtils.bind(this,function(q){try{l=l||"objects";var x=q.transaction([l],"readonly").objectStore(l).getAllKeys();x.onsuccess=function(){c(x.result)};x.onerror=f}catch(A){null!=f&&f(A)}}),f)};EditorUi.prototype.commentsSupported=function(){var c=this.getCurrentFile();return null!=+c?c.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(c,f){var l=this.getCurrentFile();null!=l?l.getComments(c,f):c([])};EditorUi.prototype.addComment=function(c,f,l){var q=this.getCurrentFile();null!=q?q.addComment(c,f,l):f(Date.now())};EditorUi.prototype.canReplyToReplies=+function(){var c=this.getCurrentFile();return null!=c?c.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.anchoredCommentsSupported=function(){var c=this.getCurrentFile();return null!=c?c.anchoredCommentsSupported():!1};EditorUi.prototype.mentionsSupported=function(){var c=this.getCurrentFile();return null!=c?c.mentionsSupported():!1};EditorUi.prototype.freeMentionsSupported=function(){var c=this.getCurrentFile();+return null!=c?c.freeMentionsSupported():!1};EditorUi.prototype.mentionsLiveSearch=function(){var c=this.getCurrentFile();return null!=c?c.mentionsLiveSearch():!1};EditorUi.prototype.mentionNotificationsSupported=function(){var c=this.getCurrentFile();return null!=c?c.mentionNotificationsSupported():!0};EditorUi.prototype.getMentionCandidates=function(c,f,l){var q=this.getCurrentFile();null!=q?q.getMentionCandidates(c,f,l):c([])};EditorUi.prototype.serializeMention=function(c){return"+"+c.email};+EditorUi.prototype.parseMentionTokens=function(c){for(var f=/[+@]([A-Za-z0-9.!#$%&'*/=?^_`{|}~+\-]+@[A-Za-z0-9.\-]+\.[A-Za-z]{2,})/g,l=[],q=0,x;null!=(x=f.exec(c));)x.index>q&&l.push(c.substring(q,x.index)),l.push({email:x[1]}),q=x.index+x[0].length;q<c.length&&l.push(c.substring(q));return l};EditorUi.prototype.getCommentCacheTarget=function(){var c=this.getCurrentFile();return null!=c?c:this};EditorUi.prototype.refreshCommentCache=function(c,f){if(this.commentsSupported()){var l=this.getCommentCacheTarget();+if(null!=l.commentCacheCallbacks)l.commentCacheCallbacks.push([c,f]);else{l.commentCacheCallbacks=[[c,f]];var q=mxUtils.bind(this,function(x,A){var E=l.commentCacheCallbacks;l.commentCacheCallbacks=null;for(var J=0;null!=E&&J<E.length;J++)if(null!=E[J][x])E[J][x](A)});this.getComments(mxUtils.bind(this,function(x){this.getCommentCacheTarget()==l&&(l.commentCache=x,this.fireEvent(new mxEventObject("commentsChanged")));q(0,x)}),mxUtils.bind(this,function(x){q(1,x)}))}}else null!=c&&c(null)};EditorUi.prototype.commentsUpdated=+function(){if(this.commentsSupported()){var c=this.getCurrentFile();null!=c&&null!=c.sync&&c.sync.sendCommentsChangedMessage();this.refreshCommentCache()}};EditorUi.prototype.getUnresolvedCommentCount=function(){var c=this.getCommentCacheTarget().commentCache,f=0;if(null!=c)for(var l=0;l<c.length;l++)c[l].isResolved||f++;return f};EditorUi.prototype.getCommentAnchorCells=function(c){var f=c.getAnchorCellIds(),l=[];if(null!=f&&0<f.length){c=c.getAnchorPageId();var q=null==c?this.currentPage:this.getPageById(c);+if(null!=q)if(q==this.currentPage)for(c=0;c<f.length;c++)q=this.editor.graph.model.getCell(f[c]),null!=q&&l.push(q);else{try{this.updatePageRoot(q)}catch(J){return l}if(null!=q.root){var x={},A=0;for(c=0;c<f.length;c++)x[f[c]]||(x[f[c]]=!0,A++);var E=function(J){if(0<A){x[J.getId()]&&(x[J.getId()]=!1,l.push(J),A--);for(var Q=0;Q<J.getChildCount();Q++)E(J.getChildAt(Q))}};E(q.root)}}}return l};EditorUi.prototype.gotoCommentAnchor=function(c){var f=c.getAnchorPageId();if(null!=f&&null!=this.currentPage&&+f!=this.currentPage.getId()){f=this.getPageById(f);if(null==f)return!1;this.selectPage(f)}f=this.editor.graph;var l=c.getAnchorCellIds();if(null!=l&&0<l.length){c=[];for(var q=0;q<l.length;q++){var x=f.model.getCell(l[q]);null!=x&&c.push(x)}return 0<c.length?(f.isEnabled()?f.setSelectionCells(c):f.highlightCells(c,"#0071e3",2E3),f.scrollCellToVisible(c[0]),!0):!1}l=c.getAnchorRect();null!=l&&0<l.w&&0<l.h&&f.fitWindow(new mxRectangle(l.x,l.y,l.w,l.h),0);c=c.getAnchorPoint();if(null!=c){l=f.view.scale;+q=f.view.translate;f=f.container;f.scrollLeft=Math.round((c.x+q.x)*l-f.clientWidth/2);f.scrollTop=Math.round((c.y+q.y)*l-f.clientHeight/2);var A=document.createElement("div");A.className="geCommentAnchorMarker";A.style.left=Math.round((c.x+q.x)*l)+"px";A.style.top=Math.round((c.y+q.y)*l)+"px";f.appendChild(A);window.setTimeout(function(){null!=A.parentNode&&A.parentNode.removeChild(A)},2E3)}return!0};EditorUi.prototype.addCommentsBadge=function(c){var f=document.createElement("span");f.className=+"geCommentsBadge";f.style.display="none";c.appendChild(f);c=mxUtils.bind(this,function(){var l=this.getUnresolvedCommentCount();f.style.display=0<l?"":"none";f.innerText="";mxUtils.write(f,99<l?"99+":String(l))});this.addListener("commentsChanged",c);this.editor.addListener("fileLoaded",c);c();return f};EditorUi.prototype.installCommentDragSource=function(c){var f=this,l=document.createElement("div");l.style.width="24px";l.style.height="24px";l.style.backgroundImage="url("+Editor.lightDarkCommentImage++")";l.style.backgroundSize="100% 100%";l.style.opacity="0.9";c=mxUtils.makeDraggable(c,function(){return f.editor.graph},function(x,A,E,J,Q){null!=f.currentPage&&null!=f.menus&&null!=f.menus.showCommentsWindow&&(x=null!=E?{p:f.currentPage.getId(),c:E.id}:{p:f.currentPage.getId(),pt:{x:Math.round(J),y:Math.round(Q)}},f.menus.showCommentsWindow(null,x))},l);var q=c.mouseDown;c.mouseDown=function(x){mxEvent.isMouseEvent(x)&&!mxEvent.isPopupTrigger(x)&&f.commentsSupported()&&f.anchoredCommentsSupported()&&+f.canComment()&&q.apply(this,arguments)};return c};EditorUi.prototype.updateCommentOverlays=function(){var c=this.editor.graph;if(null!=this.commentOverlays)for(var f=0;f<this.commentOverlays.length;f++)c.removeCellOverlay(this.commentOverlays[f].cell,this.commentOverlays[f].overlay);this.commentOverlays=null;var l=this.getCurrentFile();if(null!=l&&l.anchoredCommentsSupported()&&null!=l.commentCache&&!this.editor.isChromelessView()){var q=null!=this.currentPage?this.currentPage.getId():null,x={};+for(f=0;f<l.commentCache.length;f++){var A=l.commentCache[f],E=A.getAnchorCellIds();if(!A.isResolved&&null!=E&&A.getAnchorPageId()==q)for(A=0;A<E.length;A++)x[E[A]]=!0}this.commentOverlays=[];for(var J in x)mxUtils.bind(this,function(Q){var V=c.model.getCell(Q);if(null!=V){var K=new mxCellOverlay(new mxImage(Editor.lightDarkCommentImage,16,16),mxResources.get("comments"),mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM,new mxPoint(8,8));K.isCommentOverlay=!0;K.cursor="pointer";K.addListener(mxEvent.CLICK,+mxUtils.bind(this,function(){null!=this.menus&&null!=this.menus.showCommentsWindow&&this.menus.showCommentsWindow(Q)}));c.addCellOverlay(V,K);this.commentOverlays.push({cell:V,overlay:K})}})(J)}};EditorUi.prototype.newComment=function(c,f){var l=this.getCurrentFile();return null!=l?l.newComment(c,f):new DrawioComment(this,null,c,Date.now(),Date.now(),!1,f)};EditorUi.prototype.isRevisionHistorySupported=function(){var c=this.getCurrentFile();return null!=c&&c.isRevisionHistorySupported()};EditorUi.prototype.getRevisions=+function(c,f){var l=this.getCurrentFile();null!=l&&l.getRevisions?l.getRevisions(c,f):f({message:mxResources.get("unknownError")})};EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.vsdxExportEnabled=function(){return"atlassian"==this.getServiceName()};EditorUi.prototype.addRemoteServiceSecurityCheck=+function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,f,l,q,x,A,E,J){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,f,l,q,x,A,E,J)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=+function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,f)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,f,l,q,x,A,E,J,Q,V,K,fa,Y,aa,ja,ka)};EditorUi.prototype.createImageUrlConverter=+function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,f,l,q){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(c,f,l,q)};EditorUi.prototype.convertImageToDataUri=function(c,f){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,f)};EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");+return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=function(c,f,l,q){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(c,f,l,q)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,f,l,q,x){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,f,l,q,x)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==+localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var c=[],f=0;f<localStorage.length;f++){var l=localStorage.key(f),q=localStorage.getItem(l);if(0<l.length&&(".scratchpad"==l||"."!=l.charAt(0))&&0<q.length){var x="<mxfile "===q.substring(0,8)||"<?xml"===q.substring(0,5)||"\x3c!--[if IE]>"===q.substring(0,12);q="<mxlibrary>"===q.substring(0,11);(x||q)&&c.push(l)}}return c};EditorUi.prototype.getLocalStorageFile=function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&+"1"!=urlParams.forceMigration)return null;var f=localStorage.getItem(c);return{title:c,data:f,isLib:"<mxlibrary>"===f.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();var CommentsWindow=function(b,d,m,p,t,n){function y(){for(var na=T.getElementsByTagName("div"),ra=0,va=0;va<na.length;va++)"none"!=na[va].style.display&&na[va].parentNode==T&&ra++;W.style.display=0==ra?"block":"none"}function D(na){for(var ra=0;ra<ia.length;ra++)if(null!=ia[ra].email&&null!=na&&ia[ra].email.toLowerCase()==na.toLowerCase())return ia[ra].displayName||na;return na}function O(na){var ra=document.createElement("span");ra.className="geCommentMention";ra.setAttribute("data-mention",b.serializeMention(na));null!=na.email&&ra.setAttribute("data-email",na.email);ra.contentEditable="false";mxUtils.write(ra,"@"+(na.displayName||(null!=na.email?D(na.email):na.id)));return ra}function F(na,ra){na.innerText="";ra=null!=ra?ra:"";if(aa){ra=b.parseMentionTokens(ra);for(var va=0;va<ra.length;va++)"string"===typeof ra[va]?mxUtils.write(na,ra[va]):na.appendChild(O(ra[va]))}else mxUtils.write(na,ra)}function N(na,ra,va,Ha){function La(Za){for(var eb in ab)for(var lb=0;lb<ab[eb].length;lb++)Za(ab[eb][lb],"down"==eb?Ea:"move"==eb?$a:cb)}function Ga(Za){Za=mxUtils.convertPoint(Na,mxEvent.getClientX(Za),mxEvent.getClientY(Za));return new mxPoint(Za.x/Ka.view.scale-Ka.view.translate.x,Za.y/Ka.view.scale-Ka.view.translate.y)}function Da(){La(function(Za,eb){document.removeEventListener(Za,eb,!0)});document.removeEventListener("keydown",db,!0);window.setTimeout(function(){document.removeEventListener("click",Va,!0)},0);Na.classList.remove("geCommentAnchorPicking");Ka.setEnabled(Oa);null!=Fa&&null!=Fa.parentNode&&@@ -4895,9 +4898,9 @@ Ia.className="geCommentMentionImg",Ia.innerHTML='<svg viewBox="0 0 16 16" width=Editor.userImage);Sa.appendChild(Ia);Ia=document.createElement("span");mxUtils.write(Ia,Ja.displayName||Ja.email);Sa.appendChild(Ia);Ja.isGroup&&(Ia=document.createElement("span"),Ia.className="geCommentMentionGroupTag",mxUtils.write(Ia,mxResources.get("group")),Sa.appendChild(Ia));null!=Ja.displayName&&null!=Ja.email&&(Ia=document.createElement("span"),Ia.className="geCommentMentionMail",mxUtils.write(Ia,Ja.email),Sa.appendChild(Ia));mxEvent.addListener(Sa,"mousedown",function(ab){Ha(Ja);ab.preventDefault();mxEvent.consume(ab)});Da.appendChild(Sa)})(Ka[Aa],Aa)}var Da=null,Qa=0,Ka=[],Na=null,Oa=null,Fa=null;mxEvent.addListener(na,"keydown",function(Aa){null==Da||mxEvent.isConsumed(Aa)||(40==Aa.keyCode||38==Aa.keyCode?(Qa=(Qa+(40==Aa.keyCode?1:Ka.length-1))%Ka.length,La(),Aa.preventDefault(),mxEvent.consume(Aa)):13!=Aa.keyCode&&9!=Aa.keyCode||mxEvent.isControlDown(Aa)||mxEvent.isMetaDown(Aa)?27==Aa.keyCode&&(ra(),Aa.preventDefault(),mxEvent.consume(Aa)):(Ha(Ka[Qa]),Aa.preventDefault(),mxEvent.consume(Aa)))});mxEvent.addListener(na,"input",La);mxEvent.addListener(na,"keyup",function(Aa){37!=Aa.keyCode&&39!=Aa.keyCode&&35!=Aa.keyCode&&36!=Aa.keyCode||La()});mxEvent.addListener(na,"blur",function(){window.setTimeout(ra,200)});mxEvent.addListener(na,"paste",function(Aa){Aa.preventDefault();Aa=null!=Aa.clipboardData?Aa.clipboardData.getData("text/plain"):null;null!=Aa&&0<Aa.length&&document.execCommand("insertText",!1,Aa)})}function x(na,ra){if(aa){var va=document.createElement("div");va.contentEditable=!0;-F(va,na);q(va)}else va=document.createElement("textarea"),va.value=na;va.className="geCommentEditTxtArea";va.style.minHeight=ra+"px";return va}function A(na,ra,va,Ha){function La(){ra.removeChild(Na);ra.removeChild(Fa);Da.style.display="block";Ga.style.display="block"}v={div:ra,comment:na,saveCallback:va,deleteOnCancel:Ha};for(var Ga=ra.querySelector(".geCommentTxt"),Da=ra.querySelector(".geCommentActionsList"),Qa=ra.querySelectorAll(".geCommentEditTxtArea, .geCommentEditBtns, .geCommentAnchorRowEdit"),-Ka=0;Ka<Qa.length;Ka++)Qa[Ka].parentNode==ra&&ra.removeChild(Qa[Ka]);var Na=x(na.content,Ga.offsetHeight);ra.insertBefore(Na,Ga);var Oa=null;Ca&&null==na.id&&null==na.pCommentId&&(Oa=document.createElement("div"),Oa.className="geCommentAnchorRow geCommentAnchorRowEdit",f(na,Oa,!0),ra.insertBefore(Oa,Ga));var Fa=document.createElement("div");Fa.className="geCommentEditBtns";var Aa=mxUtils.button(mxResources.get("cancel"),function(){Ha?(ra.parentNode.removeChild(ra),y()):La();v=null});Aa.className=-"geCommentEditBtn";Fa.appendChild(Aa);var Ja=mxUtils.button(mxResources.get("save"),function(){na.content=l(Na);F(Ga,na.content);La();null!=Oa&&f(na,Oa,!1);va(na);v=null});mxEvent.addListener(Na,"keydown",mxUtils.bind(this,function(Ia){mxEvent.isConsumed(Ia)||((mxEvent.isControlDown(Ia)||mxClient.IS_MAC&&mxEvent.isMetaDown(Ia))&&13==Ia.keyCode?(Ja.click(),mxEvent.consume(Ia)):27==Ia.keyCode&&(Aa.click(),mxEvent.consume(Ia)))}));Ja.focus();Ja.className="geCommentEditBtn gePrimaryBtn";Fa.appendChild(Ja);+F(va,na);q(va)}else va=document.createElement("textarea"),va.value=na;va.className="geCommentEditTxtArea";va.style.minHeight=ra+"px";return va}function A(na,ra,va,Ha){function La(){ra.removeChild(Na);ra.removeChild(Fa);Da.style.display="block";Ga.style.display="block"}u={div:ra,comment:na,saveCallback:va,deleteOnCancel:Ha};for(var Ga=ra.querySelector(".geCommentTxt"),Da=ra.querySelector(".geCommentActionsList"),Qa=ra.querySelectorAll(".geCommentEditTxtArea, .geCommentEditBtns, .geCommentAnchorRowEdit"),+Ka=0;Ka<Qa.length;Ka++)Qa[Ka].parentNode==ra&&ra.removeChild(Qa[Ka]);var Na=x(na.content,Ga.offsetHeight);ra.insertBefore(Na,Ga);var Oa=null;Ca&&null==na.id&&null==na.pCommentId&&(Oa=document.createElement("div"),Oa.className="geCommentAnchorRow geCommentAnchorRowEdit",f(na,Oa,!0),ra.insertBefore(Oa,Ga));var Fa=document.createElement("div");Fa.className="geCommentEditBtns";var Aa=mxUtils.button(mxResources.get("cancel"),function(){Ha?(ra.parentNode.removeChild(ra),y()):La();u=null});Aa.className=+"geCommentEditBtn";Fa.appendChild(Aa);var Ja=mxUtils.button(mxResources.get("save"),function(){na.content=l(Na);F(Ga,na.content);La();null!=Oa&&f(na,Oa,!1);va(na);u=null});mxEvent.addListener(Na,"keydown",mxUtils.bind(this,function(Ia){mxEvent.isConsumed(Ia)||((mxEvent.isControlDown(Ia)||mxClient.IS_MAC&&mxEvent.isMetaDown(Ia))&&13==Ia.keyCode?(Ja.click(),mxEvent.consume(Ia)):27==Ia.keyCode&&(Aa.click(),mxEvent.consume(Ia)))}));Ja.focus();Ja.className="geCommentEditBtn gePrimaryBtn";Fa.appendChild(Ja);ra.insertBefore(Fa,Ga);Da.style.display="none";Ga.style.display="none";Na.focus()}function E(na,ra){ra.innerText="";na=new Date(na.modifiedDate);var va=b.timeSince(na);null==va&&(va=mxResources.get("lessThanAMinute"));mxUtils.write(ra,mxResources.get("timeAgo",[va],"{1} ago"));ra.setAttribute("title",na.toLocaleDateString()+" "+na.toLocaleTimeString())}function J(na){var ra=document.createElement("img");ra.className="geCommentBusyImg";ra.src=IMAGE_PATH+"/spin.gif";na.appendChild(ra);na.busyImg=ra}function Q(na){na.style.border="1px solid red";na.busyImg.parentNode==na&&na.removeChild(na.busyImg)}function V(na){na.style.border="";na.busyImg.parentNode==na&&na.removeChild(na.busyImg)}function K(na,ra,va,Ha,La){function Ga(Ja,Ia,Sa){var ab=document.createElement("li");ab.className="geCommentAction";var Va=document.createElement("a");Va.className="geCommentActionLnk";mxUtils.write(Va,Ja);ab.appendChild(Va);mxEvent.addListener(Va,"click",function(db){Ia(db,na);db.preventDefault();mxEvent.consume(db)});Aa.appendChild(ab);Sa&&(ab.style.display="none")}function Da(){function Ja(ab){Ia.push(Sa);if(null!=ab.replies)for(var Va=0;Va<ab.replies.length;Va++)Sa=Sa.nextSibling,Ja(ab.replies[Va])}var Ia=[],Sa=Ka;Ja(na);return{pdiv:Sa,replies:Ia}}function Qa(Ja,Ia,Sa,ab,Va){function db(){J(Za);na.addReply(cb,function(eb){cb.id=eb;na.replies.push(cb);V(Za);Sa&&Sa();b.commentsUpdated()},function(eb){Ea();Q(Za);b.handleError(eb,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},ab,Va)}function Ea(){A(cb,@@ -4908,16 +4911,16 @@ var Aa=document.createElement("ul");Aa.className="geCommentActionsList";Na.appenJa()},na.isResolved),Ga(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){J(Ka);na.deleteComment(function(Ja){if(!0===Ja){Ja=Ka.querySelector(".geCommentTxt");Ja.innerText="";mxUtils.write(Ja,mxResources.get("msgDeleted"));var Ia=Ka.querySelectorAll(".geCommentAction");for(Ja=0;Ja<Ia.length;Ja++)Ia[Ja].parentNode.removeChild(Ia[Ja]);V(Ka);Ka.style.opacity="0.5"}else{Ia=Da(na).replies;for(Ja=0;Ja<Ia.length;Ja++)T.removeChild(Ia[Ja]);for(Ja=0;Ja<ra.length;Ja++)if(ra[Ja]==na){ra.splice(Ja,1);break}W.style.display=0==T.getElementsByTagName("div").length?"block":"none"}b.commentsUpdated()},function(Ja){Q(Ka);b.handleError(Ja,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},na.isResolved));fa||na.isLocked||0!=Ha||Ga(na.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(Ja){function Ia(){var Sa=Ja.target;Sa.innerText="";na.isResolved=!na.isResolved;mxUtils.write(Sa,na.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var ab=na.isResolved?"none":"",Va=Da(na).replies,db="light-dark("+(na.isResolved?"ghostWhite":"white")+", transparent)",Ea=0;Ea<Va.length;Ea++){Va[Ea].style.backgroundColor=db;for(var $a=Va[Ea].querySelectorAll(".geCommentAction"),cb=0;cb<$a.length;cb++)$a[cb]!=Sa.parentNode&&($a[cb].style.display=ab);la||(Va[Ea].style.display="none")}y()}na.isResolved?Qa(mxResources.get("reOpened")+": ",!0,Ia,!1,!0):Qa(mxResources.get("markedAsResolved"),!1,Ia,!0)});Ka.appendChild(Na);null!=va?T.insertBefore(Ka,-va.nextSibling):T.appendChild(Ka);for(va=0;null!=na.replies&&va<na.replies.length;va++)Na=na.replies[va],Na.isResolved=na.isResolved,K(Na,na.replies,null,Ha+1,La);null!=v&&(v.comment.id==na.id?(La=na.content,na.content=v.comment.content,A(na,Ka,v.saveCallback,v.deleteOnCancel),na.content=La):null==v.comment.id&&v.comment.pCommentId==na.id&&(T.appendChild(v.div),A(v.comment,v.div,v.saveCallback,v.deleteOnCancel)));return Ka}}var fa=!b.canComment(),Y=b.canReplyToReplies(),aa=b.mentionsSupported(),ja=-aa&&b.mentionsLiveSearch(),ka=aa&&b.freeMentionsSupported(),ua=!aa||b.mentionNotificationsSupported(),Ca=b.anchoredCommentsSupported(),ia=[],k=null,v=null,H=document.createElement("div");H.className="geCommentsWin";var P=EditorUi.compactUi?"26px":"30px",T=document.createElement("div");T.className="geCommentsList";T.style.bottom=parseInt(P)+7+"px";H.appendChild(T);var W=document.createElement("span");W.style.cssText="display:none;padding-top:10px;text-align:center;";mxUtils.write(W,mxResources.get("noCommentsFound"));+va.nextSibling):T.appendChild(Ka);for(va=0;null!=na.replies&&va<na.replies.length;va++)Na=na.replies[va],Na.isResolved=na.isResolved,K(Na,na.replies,null,Ha+1,La);null!=u&&(u.comment.id==na.id?(La=na.content,na.content=u.comment.content,A(na,Ka,u.saveCallback,u.deleteOnCancel),na.content=La):null==u.comment.id&&u.comment.pCommentId==na.id&&(T.appendChild(u.div),A(u.comment,u.div,u.saveCallback,u.deleteOnCancel)));return Ka}}var fa=!b.canComment(),Y=b.canReplyToReplies(),aa=b.mentionsSupported(),ja=+aa&&b.mentionsLiveSearch(),ka=aa&&b.freeMentionsSupported(),ua=!aa||b.mentionNotificationsSupported(),Ca=b.anchoredCommentsSupported(),ia=[],k=null,u=null,H=document.createElement("div");H.className="geCommentsWin";var P=EditorUi.compactUi?"26px":"30px",T=document.createElement("div");T.className="geCommentsList";T.style.bottom=parseInt(P)+7+"px";H.appendChild(T);var W=document.createElement("span");W.style.cssText="display:none;padding-top:10px;text-align:center;";mxUtils.write(W,mxResources.get("noCommentsFound"));var ha=document.createElement("div");ha.className="geToolbarContainer geCommentsToolbar";ha.style.height=P;ha.style.padding="3px 4px 4px 4px";P=document.createElement("a");P.className="geButton";aa&&!ja&&b.getMentionCandidates(function(na){ia=na;na=T.querySelectorAll(".geCommentMention[data-email]");for(var ra=0;ra<na.length;ra++)na[ra].innerText="",mxUtils.write(na[ra],"@"+D(na[ra].getAttribute("data-email")))},function(){});var X=mxUtils.bind(this,function(na){function ra(){A(va,Ha,function(La){J(Ha);b.addComment(La,function(Ga){La.id=Ga;ca.push(La);V(Ha);b.commentsUpdated()},function(Ga){Q(Ha);ra();b.handleError(Ga,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},!0)}if(!fa){var va=b.newComment("",b.getCurrentUser());va.anchor=null!=na?na:null;var Ha=K(va,ca,null,0);ra()}});this.startNewComment=X;if(!fa){var ea=P.cloneNode();ea.style.backgroundImage="url("+Editor.plusImage+")";ea.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(ea,"click",function(na){X();na.preventDefault();mxEvent.consume(na)});ha.appendChild(ea)}var oa=P.cloneNode();oa.style.backgroundImage="url("+Editor.checkImage+")";oa.setAttribute("title",mxResources.get("showResolved"));var la=!1;mxEvent.addListener(oa,"click",function(na){(la=!la)?oa.classList.add("geActiveItem"):oa.classList.remove("geActiveItem");qa();na.preventDefault();mxEvent.consume(na)});ha.appendChild(oa);b.commentsRefreshNeeded()&&(ea=P.cloneNode(),ea.style.backgroundImage="url("+Editor.refreshImage+")",ea.setAttribute("title",mxResources.get("refresh")),mxEvent.addListener(ea,"click",function(na){qa();na.preventDefault();mxEvent.consume(na)}),ha.appendChild(ea));b.commentsSaveNeeded()&&(P=P.cloneNode(),P.innerHTML='<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',P.setAttribute("title",mxResources.get("save")),P.className="geButton geAdaptiveAsset",mxEvent.addListener(P,"click",function(na){n();na.preventDefault();mxEvent.consume(na)}),ha.appendChild(P));H.appendChild(ha);var ca=[],ta=function(na){if(null!=k){for(var ra=T.childNodes,va=0;va<ra.length;va++)if(null!=ra[va].getAttribute&&null!=ra[va].getAttribute("data-anchor-cell")&&0<=mxUtils.indexOf(ra[va].getAttribute("data-anchor-cell").split(","),k)){T.scrollTop=ra[va].offsetTop-T.offsetTop;k=null;break}na&&(k=null)}};this.scrollToCell=function(na){k=na;ta(!1)};var xa=mxUtils.bind(this,function(na){function ra(Ha){if(null!=Ha){Ha.sort(function(Ga,Da){return new Date(Ga.modifiedDate)-new Date(Da.modifiedDate)});for(var La=0;La<Ha.length;La++)ra(Ha[La].replies)}}-na.sort(function(Ha,La){return new Date(Ha.modifiedDate)-new Date(La.modifiedDate)});if(null!=v){var va=v.div.querySelector(".geCommentEditTxtArea");null!=va&&(v.comment.content=l(va))}va=T.scrollTop;T.innerText="";T.appendChild(W);W.style.display="block";ca=na;for(na=0;na<ca.length;na++)ra(ca[na].replies),K(ca[na],ca,null,0,la);null!=v&&null==v.comment.id&&null==v.comment.pCommentId&&(T.appendChild(v.div),A(v.comment,v.div,v.saveCallback,v.deleteOnCancel));T.scrollTop=va;ta(!0)}),qa=mxUtils.bind(this,-function(){this.hasError=!1;if(null!=v)try{v.div=v.div.cloneNode(!0);var na=v.div.querySelector(".geCommentEditTxtArea"),ra=v.div.querySelector(".geCommentEditBtns");v.comment.content=l(na);na.parentNode.removeChild(na);ra.parentNode.removeChild(ra)}catch(va){b.handleError(va)}Y=b.canReplyToReplies();b.commentsSupported()?(null!=b.getCommentCacheTarget().commentCache?null==v&&xa(b.getCommentCacheTarget().commentCache):T.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+-'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>",b.refreshCommentCache(mxUtils.bind(this,function(va){null!=va&&null!=v&&xa(va)}),mxUtils.bind(this,function(va){null==b.getCommentCacheTarget().commentCache&&(T.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(va&&va.message?": "+va.message:"")),this.hasError=!0)}))):T.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))}),Ba=mxUtils.bind(this,function(){if(null==v){var na=b.getCommentCacheTarget().commentCache;+na.sort(function(Ha,La){return new Date(Ha.modifiedDate)-new Date(La.modifiedDate)});if(null!=u){var va=u.div.querySelector(".geCommentEditTxtArea");null!=va&&(u.comment.content=l(va))}va=T.scrollTop;T.innerText="";T.appendChild(W);W.style.display="block";ca=na;for(na=0;na<ca.length;na++)ra(ca[na].replies),K(ca[na],ca,null,0,la);null!=u&&null==u.comment.id&&null==u.comment.pCommentId&&(T.appendChild(u.div),A(u.comment,u.div,u.saveCallback,u.deleteOnCancel));T.scrollTop=va;ta(!0)}),qa=mxUtils.bind(this,+function(){this.hasError=!1;if(null!=u)try{u.div=u.div.cloneNode(!0);var na=u.div.querySelector(".geCommentEditTxtArea"),ra=u.div.querySelector(".geCommentEditBtns");u.comment.content=l(na);na.parentNode.removeChild(na);ra.parentNode.removeChild(ra)}catch(va){b.handleError(va)}Y=b.canReplyToReplies();b.commentsSupported()?(null!=b.getCommentCacheTarget().commentCache?null==u&&xa(b.getCommentCacheTarget().commentCache):T.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH++'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>",b.refreshCommentCache(mxUtils.bind(this,function(va){null!=va&&null!=u&&xa(va)}),mxUtils.bind(this,function(va){null==b.getCommentCacheTarget().commentCache&&(T.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(va&&va.message?": "+va.message:"")),this.hasError=!0)}))):T.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))}),Ba=mxUtils.bind(this,function(){if(null==u){var na=b.getCommentCacheTarget().commentCache;null!=na&&(this.hasError=!1,xa(na))}});b.addListener("commentsChanged",Ba);qa();this.refreshComments=qa;ha=mxUtils.bind(this,function(){function na(Ga){var Da=va[Ga.id];if(null!=Da)for(E(Ga,Da),Da=0;null!=Ga.replies&&Da<Ga.replies.length;Da++)na(Ga.replies[Da])}if(this.window.isVisible()){for(var ra=T.querySelectorAll(".geCommentDate"),va={},Ha=0;Ha<ra.length;Ha++){var La=ra[Ha];va[La.getAttribute("data-commentId")]=La}for(Ha=0;Ha<ca.length;Ha++)na(ca[Ha])}});setInterval(ha,6E4);this.refreshCommentsTime=ha;this.window=new mxWindow(mxResources.get("comments"),H,d,m,p,t,!0,!0);this.window.minimumSize=new mxRectangle(0,0,260,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!0,function(){b.removeListener(Ba)})},ConfirmDialog=function(b,d,m,p,t,n,y,D,O,F,N){var R=document.createElement("div");R.style.textAlign="center";N=null!=N?N:44;var c=document.createElement("div");c.style.padding="6px";c.style.overflow="auto";c.style.maxHeight=N+"px";c.style.lineHeight="1.2em";mxUtils.write(c,d);R.appendChild(c);null!=F&&(c=document.createElement("div"),c.style.padding="6px 0 6px 0",d=document.createElement("img"),d.setAttribute("src",F),c.appendChild(d),R.appendChild(c));F=document.createElement("div");F.style.textAlign="center";F.style.whiteSpace="nowrap";var f=document.createElement("input");f.setAttribute("type",@@ -5002,36 +5005,36 @@ this.setCurrentMenu(F,d)}mxEvent.consume(O)});mxEvent.addGestureListeners(p,y,nuEditorUi.prototype.createPageMenu=function(b,d){return mxUtils.bind(this,function(m,p){1!=urlParams.embed&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=this.getServiceName()||navigator.standalone||m.addItem(mxResources.get("openInNewWindow"),null,mxUtils.bind(this,function(){this.editor.editAsNew(this.getFileData(!0,null,null,null,!0,!0))}),p));this.editor.graph.isEnabled()&&(this.menus.addMenuItems(m,["duplicatePage","-"],p),this.currentPage==b&&1<this.pages.length&&this.menus.addSubmenu("movePage",m,p,mxResources.get("move")),this.menus.addMenuItems(m,["removePage","renamePage"],p))})};(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(p,t,n,y,D){t=null!=t?t:!1;null==n&&(n=this.getFoldableCells(this.getSelectionCells(),p));this.stopEditing();this.model.beginUpdate();try{for(var O=n.slice(),F=0;F<n.length;F++)"1"==mxUtils.getValue(this.getCurrentCellStyle(n[F]),"treeFolding","0")&&this.foldTreeCell(p,n[F]);n=O;n=b.apply(this,arguments)}finally{this.model.endUpdate()}return n};Graph.prototype.foldTreeCell=function(p,t){this.model.beginUpdate();try{var n=[];this.traverse(t,!0,mxUtils.bind(this,function(D,O){var F=null!=O&&this.isTreeEdge(O);F&&n.push(O);D==t||null!=O&&!F||n.push(D);return(null==O||F)&&(D==t||!this.model.isCollapsed(D))}));this.model.setCollapsed(t,p);for(var y=0;y<n.length;y++)this.model.setVisible(n[y],!p)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(p){return!this.isEdgeIgnored(p)};Graph.prototype.getTreeEdges=function(p,t,n,y,D,O){return this.model.filterCells(this.getEdges(p,t,n,y,D,O),mxUtils.bind(this,-function(F){return this.isTreeEdge(F)}))};Graph.prototype.getIncomingTreeEdges=function(p,t){return this.getTreeEdges(p,t,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(p,t){return this.getTreeEdges(p,t,!1,!0,!1)};var d=EditorUi.prototype.init;EditorUi.prototype.init=function(){d.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function p(k){return J.isVertex(k)&&n(k)}function t(k){var v=!1;null!=k&&(v="1"==-E.getCurrentCellStyle(k).treeMoving);return v}function n(k){var v=!1;null!=k&&(k=J.getParent(k),v=E.view.getState(k),v="tree"==(null!=v?v.style:E.getCellStyle(k)).containerType);return v}function y(k){for(;null!=k&&!n(k);)k=J.getParent(k);return null!=k?J.getParent(k):null}function D(k){var v=!1;null!=k&&(k=J.getParent(k),v=E.view.getState(k),E.view.getState(k),v=null!=(null!=v?v.style:E.getCellStyle(k)).childLayout);return v}function O(k,v){function H(la,ca){null!=la&&(T.cut.get(la)||(T.cut.put(la,+function(F){return this.isTreeEdge(F)}))};Graph.prototype.getIncomingTreeEdges=function(p,t){return this.getTreeEdges(p,t,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(p,t){return this.getTreeEdges(p,t,!1,!0,!1)};var d=EditorUi.prototype.init;EditorUi.prototype.init=function(){d.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function p(k){return J.isVertex(k)&&n(k)}function t(k){var u=!1;null!=k&&(u="1"==+E.getCurrentCellStyle(k).treeMoving);return u}function n(k){var u=!1;null!=k&&(k=J.getParent(k),u=E.view.getState(k),u="tree"==(null!=u?u.style:E.getCellStyle(k)).containerType);return u}function y(k){for(;null!=k&&!n(k);)k=J.getParent(k);return null!=k?J.getParent(k):null}function D(k){var u=!1;null!=k&&(k=J.getParent(k),u=E.view.getState(k),E.view.getState(k),u=null!=(null!=u?u.style:E.getCellStyle(k)).childLayout);return u}function O(k,u){function H(la,ca){null!=la&&(T.cut.get(la)||(T.cut.put(la,!0),T.cells.push(la)),ca&&!W.get(la)&&(W.put(la,!0),ha.push(la)))}function P(la){if(!T.deleted.get(la)){T.deleted.put(la,!0);T.cells.push(la);la=E.getAllEdges([la]);for(var ca=0;ca<la.length;ca++)H(la[ca],!0)}}for(var T={cells:[],deleted:new mxDictionary,cut:new mxDictionary,cascaded:[]},W=new mxDictionary,ha=[],X=0;X<k.length;X++){var ea=k[X];J.isEdge(ea)?H(ea,!1):J.isVertex(ea)&&null!=y(ea)?P(ea):null!=ea&&T.cells.push(ea)}for(;0<ha.length;)if(k=J.getTerminal(ha.shift(),!1),null!=k&&!T.deleted.get(k)&&-J.isVertex(k)&&(X=y(k),null!=X&&(null==v||!v.get(X)))){X=E.getIncomingTreeEdges(k);ea=!0;for(var oa=0;oa<X.length;oa++)if(!T.cut.get(X[oa])){ea=!1;break}ea&&(T.cascaded.push(k),P(k))}return T}function F(k){k=E.view.getState(k);if(null!=k){var v=E.getIncomingTreeEdges(k.cell);if(0<v.length&&(v=E.view.getState(v[0]),null!=v&&(v=v.absolutePoints,null!=v&&0<v.length&&(v=v[v.length-1],null!=v)))){if(v.y==k.y&&Math.abs(v.x-k.getCenterX())<k.width/2)return mxConstants.DIRECTION_SOUTH;if(v.y==k.y+k.height&&-Math.abs(v.x-k.getCenterX())<k.width/2)return mxConstants.DIRECTION_NORTH;if(v.x>k.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function N(k,v,H){if(null!=H){for(var P=E.getCurrentCellStyle(v),T=["treeFolding","treeMoving","newEdgeStyle"],W=0;W<T.length;W++)null!=P[T[W]]&&(null==H.style||0>H.style.indexOf(T[W]+"="))&&(H.style=mxUtils.setStyle(H.style,T[W],P[T[W]]));null!=H.geometry&&null!=v.geometry&&(H.geometry.x=v.geometry.x,H.geometry.y=v.geometry.y);E.model.getTerminal(k[0],-!1)==k[1]&&E.model.setTerminal(k[0],H,!1);k[1]=H}return k}function R(k,v,H){v=null!=v?v:!0;E.model.beginUpdate();try{var P=E.model.getParent(k),T=E.getIncomingTreeEdges(k),W=N(E.cloneCells([T[0],k]),k,H);E.model.setTerminal(W[0],E.model.getTerminal(T[0],!0),!0);var ha=F(k),X=P.geometry;ha==mxConstants.DIRECTION_SOUTH||ha==mxConstants.DIRECTION_NORTH?W[1].geometry.x+=v?k.geometry.width+10:-W[1].geometry.width-10:W[1].geometry.y+=v?k.geometry.height+10:-W[1].geometry.height-10;E.view.currentRoot!=P&&-(W[1].geometry.x-=X.x,W[1].geometry.y-=X.y);var ea=E.view.getState(k),oa=E.view.scale;if(null!=ea){var la=mxRectangle.fromRectangle(ea);ha==mxConstants.DIRECTION_SOUTH||ha==mxConstants.DIRECTION_NORTH?la.x+=(v?k.geometry.width+10:-W[1].geometry.width-10)*oa:la.y+=(v?k.geometry.height+10:-W[1].geometry.height-10)*oa;var ca=E.getOutgoingTreeEdges(E.model.getTerminal(T[0],!0));if(null!=ca){var ta=ha==mxConstants.DIRECTION_SOUTH||ha==mxConstants.DIRECTION_NORTH;for(X=T=H=0;X<ca.length;X++){var xa=E.model.getTerminal(ca[X],-!1);if(ha==F(xa)){var qa=E.view.getState(xa);xa!=k&&null!=qa&&(ta&&v!=qa.getCenterX()<ea.getCenterX()||!ta&&v!=qa.getCenterY()<ea.getCenterY())&&mxUtils.intersects(la,qa)&&(H=10+Math.max(H,(Math.min(la.x+la.width,qa.x+qa.width)-Math.max(la.x,qa.x))/oa),T=10+Math.max(T,(Math.min(la.y+la.height,qa.y+qa.height)-Math.max(la.y,qa.y))/oa))}}ta?T=0:H=0;for(X=0;X<ca.length;X++)if(xa=E.model.getTerminal(ca[X],!1),ha==F(xa)&&(qa=E.view.getState(xa),xa!=k&&null!=qa&&(ta&&v!=qa.getCenterX()<ea.getCenterX()||-!ta&&v!=qa.getCenterY()<ea.getCenterY()))){var Ba=[];E.traverse(qa.cell,!0,function(na,ra){var va=null!=ra&&E.isTreeEdge(ra);va&&Ba.push(ra);(null==ra||va)&&Ba.push(na);return null==ra||va});E.moveCells(Ba,(v?1:-1)*H,(v?1:-1)*T)}}}return E.addCells(W,P)}finally{E.model.endUpdate()}}function c(k,v){E.model.beginUpdate();try{var H=F(k),P=E.getIncomingTreeEdges(k),T=N(E.cloneCells([P[0],k]),k,v);E.model.setTerminal(P[0],T[1],!1);E.model.setTerminal(T[0],T[1],!0);E.model.setTerminal(T[0],k,!1);var W=+J.isVertex(k)&&(X=y(k),null!=X&&(null==u||!u.get(X)))){X=E.getIncomingTreeEdges(k);ea=!0;for(var oa=0;oa<X.length;oa++)if(!T.cut.get(X[oa])){ea=!1;break}ea&&(T.cascaded.push(k),P(k))}return T}function F(k){k=E.view.getState(k);if(null!=k){var u=E.getIncomingTreeEdges(k.cell);if(0<u.length&&(u=E.view.getState(u[0]),null!=u&&(u=u.absolutePoints,null!=u&&0<u.length&&(u=u[u.length-1],null!=u)))){if(u.y==k.y&&Math.abs(u.x-k.getCenterX())<k.width/2)return mxConstants.DIRECTION_SOUTH;if(u.y==k.y+k.height&&+Math.abs(u.x-k.getCenterX())<k.width/2)return mxConstants.DIRECTION_NORTH;if(u.x>k.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function N(k,u,H){if(null!=H){for(var P=E.getCurrentCellStyle(u),T=["treeFolding","treeMoving","newEdgeStyle"],W=0;W<T.length;W++)null!=P[T[W]]&&(null==H.style||0>H.style.indexOf(T[W]+"="))&&(H.style=mxUtils.setStyle(H.style,T[W],P[T[W]]));null!=H.geometry&&null!=u.geometry&&(H.geometry.x=u.geometry.x,H.geometry.y=u.geometry.y);E.model.getTerminal(k[0],+!1)==k[1]&&E.model.setTerminal(k[0],H,!1);k[1]=H}return k}function R(k,u,H){u=null!=u?u:!0;E.model.beginUpdate();try{var P=E.model.getParent(k),T=E.getIncomingTreeEdges(k),W=N(E.cloneCells([T[0],k]),k,H);E.model.setTerminal(W[0],E.model.getTerminal(T[0],!0),!0);var ha=F(k),X=P.geometry;ha==mxConstants.DIRECTION_SOUTH||ha==mxConstants.DIRECTION_NORTH?W[1].geometry.x+=u?k.geometry.width+10:-W[1].geometry.width-10:W[1].geometry.y+=u?k.geometry.height+10:-W[1].geometry.height-10;E.view.currentRoot!=P&&+(W[1].geometry.x-=X.x,W[1].geometry.y-=X.y);var ea=E.view.getState(k),oa=E.view.scale;if(null!=ea){var la=mxRectangle.fromRectangle(ea);ha==mxConstants.DIRECTION_SOUTH||ha==mxConstants.DIRECTION_NORTH?la.x+=(u?k.geometry.width+10:-W[1].geometry.width-10)*oa:la.y+=(u?k.geometry.height+10:-W[1].geometry.height-10)*oa;var ca=E.getOutgoingTreeEdges(E.model.getTerminal(T[0],!0));if(null!=ca){var ta=ha==mxConstants.DIRECTION_SOUTH||ha==mxConstants.DIRECTION_NORTH;for(X=T=H=0;X<ca.length;X++){var xa=E.model.getTerminal(ca[X],+!1);if(ha==F(xa)){var qa=E.view.getState(xa);xa!=k&&null!=qa&&(ta&&u!=qa.getCenterX()<ea.getCenterX()||!ta&&u!=qa.getCenterY()<ea.getCenterY())&&mxUtils.intersects(la,qa)&&(H=10+Math.max(H,(Math.min(la.x+la.width,qa.x+qa.width)-Math.max(la.x,qa.x))/oa),T=10+Math.max(T,(Math.min(la.y+la.height,qa.y+qa.height)-Math.max(la.y,qa.y))/oa))}}ta?T=0:H=0;for(X=0;X<ca.length;X++)if(xa=E.model.getTerminal(ca[X],!1),ha==F(xa)&&(qa=E.view.getState(xa),xa!=k&&null!=qa&&(ta&&u!=qa.getCenterX()<ea.getCenterX()||+!ta&&u!=qa.getCenterY()<ea.getCenterY()))){var Ba=[];E.traverse(qa.cell,!0,function(na,ra){var va=null!=ra&&E.isTreeEdge(ra);va&&Ba.push(ra);(null==ra||va)&&Ba.push(na);return null==ra||va});E.moveCells(Ba,(u?1:-1)*H,(u?1:-1)*T)}}}return E.addCells(W,P)}finally{E.model.endUpdate()}}function c(k,u){E.model.beginUpdate();try{var H=F(k),P=E.getIncomingTreeEdges(k),T=N(E.cloneCells([P[0],k]),k,u);E.model.setTerminal(P[0],T[1],!1);E.model.setTerminal(T[0],T[1],!0);E.model.setTerminal(T[0],k,!1);var W=E.model.getParent(k),ha=W.geometry,X=[];E.view.currentRoot!=W&&(T[1].geometry.x-=ha.x,T[1].geometry.y-=ha.y);E.traverse(k,!0,function(la,ca){var ta=null!=ca&&E.isTreeEdge(ca);ta&&X.push(ca);(null==ca||ta)&&X.push(la);return null==ca||ta});var ea=k.geometry.width+40,oa=k.geometry.height+40;H==mxConstants.DIRECTION_SOUTH?ea=0:H==mxConstants.DIRECTION_NORTH?(ea=0,oa=-oa):H==mxConstants.DIRECTION_WEST?(ea=-ea,oa=0):H==mxConstants.DIRECTION_EAST&&(oa=0);E.moveCells(X,ea,oa);return E.addCells(T,W)}finally{E.model.endUpdate()}}-function f(k,v,H){E.model.beginUpdate();try{var P=E.model.getParent(k),T=E.getIncomingTreeEdges(k),W=F(k);0==T.length&&(T=[E.createEdge(P,null,"",null,null,E.createCurrentEdgeStyle())],W=v);var ha=N(E.cloneCells([T[0],k]),k,H);E.model.setTerminal(ha[0],k,!0);null==E.model.getTerminal(ha[0],!1)&&(E.model.setTerminal(ha[0],ha[1],!1),E.applyNewEdgeStyle(ha[1],[ha[0]],W));T=E.getOutgoingTreeEdges(k);var X=P.geometry;v=[];E.view.currentRoot==P&&(X=new mxRectangle);for(H=0;H<T.length;H++){var ea=E.model.getTerminal(T[H],-!1);null!=ea&&v.push(ea)}var oa=E.view.getBounds(v),la=E.view.translate,ca=E.view.scale;W==mxConstants.DIRECTION_SOUTH?(ha[1].geometry.x=null==oa?k.geometry.x+(k.geometry.width-ha[1].geometry.width)/2:(oa.x+oa.width)/ca-la.x-X.x+10,ha[1].geometry.y+=k.geometry.height-X.y+40):W==mxConstants.DIRECTION_NORTH?(ha[1].geometry.x=null==oa?k.geometry.x+(k.geometry.width-ha[1].geometry.width)/2:(oa.x+oa.width)/ca-la.x+-X.x+10,ha[1].geometry.y-=ha[1].geometry.height+X.y+40):(ha[1].geometry.x=W==mxConstants.DIRECTION_WEST?-ha[1].geometry.x-(ha[1].geometry.width+X.x+40):ha[1].geometry.x+(k.geometry.width-X.x+40),ha[1].geometry.y=null==oa?k.geometry.y+(k.geometry.height-ha[1].geometry.height)/2:(oa.y+oa.height)/ca-la.y+-X.y+10);return E.addCells(ha,P)}finally{E.model.endUpdate()}}function l(k,v,H){k=E.getOutgoingTreeEdges(k);H=E.view.getState(H);var P=[];if(null!=H&&null!=k){for(var T=0;T<k.length;T++){var W=E.view.getState(E.model.getTerminal(k[T],!1));null!=W&&(!v&&Math.min(W.x+W.width,H.x+H.width)>=Math.max(W.x,H.x)||-v&&Math.min(W.y+W.height,H.y+H.height)>=Math.max(W.y,H.y))&&P.push(W)}P.sort(function(ha,X){return v?ha.x+ha.width-X.x-X.width:ha.y+ha.height-X.y-X.height})}return P}function q(k,v){var H=F(k),P=v==mxConstants.DIRECTION_EAST||v==mxConstants.DIRECTION_WEST;(H==mxConstants.DIRECTION_EAST||H==mxConstants.DIRECTION_WEST)==P&&H!=v?A.actions.get("selectParent").funct():H==v?(v=E.getOutgoingTreeEdges(k),null!=v&&0<v.length&&E.setSelectionCell(E.model.getTerminal(v[0],!1))):(H=E.getIncomingTreeEdges(k),null!=-H&&0<H.length&&(P=l(E.model.getTerminal(H[0],!0),P,k),k=E.view.getState(k),null!=k&&(k=mxUtils.indexOf(P,k),0<=k&&(k+=v==mxConstants.DIRECTION_NORTH||v==mxConstants.DIRECTION_WEST?-1:1,0<=k&&k<=P.length-1&&E.setSelectionCell(P[k].cell)))))}function x(k){return(t(k)||p(k))&&!D(k)&&0<E.getOutgoingTreeEdges(k).length&&!E.isCellCollapsed(k)}var A=this,E=A.editor.graph,J=E.getModel(),Q=A.menus.createPopupMenu;A.menus.createPopupMenu=function(k,v,H){Q.apply(this,arguments);if(1==E.getSelectionCount()){v=-E.getSelectionCell();var P=E.getOutgoingTreeEdges(v);k.addSeparator();0<P.length&&(p(E.getSelectionCell())&&this.addMenuItems(k,["selectChildren"],null,H),this.addMenuItems(k,["selectDescendants"],null,H));p(E.getSelectionCell())?(k.addSeparator(),0<E.getIncomingTreeEdges(v).length&&this.addMenuItems(k,["selectSiblings","selectParent"],null,H)):0<E.model.getEdgeCount(v)&&this.addMenuItems(k,["selectConnections"],null,H)}};A.actions.addAction("selectChildren",function(k){if(E.isEnabled()&&1==E.getSelectionCount()){var v=-E.getSelectionCell();k=mxEvent.isControlDown(k)?null:E.getOutgoingTreeEdges(v);if(null!=k&&0<k.length){v=[];for(var H=0;H<k.length;H++)v.push(E.model.getTerminal(k[H],!1));E.setSelectionCells(v)}else E.setSelectionCells(E.model.getChildren(v))}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+C");A.actions.addAction("selectDescendants",function(k){var v=E.getSelectionCell();if(E.isEnabled()&&null!=v){var H=[];mxEvent.isControlDown(k)||E.traverse(v,!0,function(P,T){var W=null!=T&&E.isTreeEdge(T);W&&-mxEvent.isControlDown(k)&&H.push(T);(null==T||W)&&H.push(P);return null==T||W});if(0==H.length||1==H.length&&H[0]==v)H=E.model.getDescendants(v);E.setSelectionCells(H)}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+X");A.actions.addAction("selectParent",function(k){var v=E.getSelectionCell();E.isEnabled()&&null!=v&&(k=mxEvent.isControlDown(k)?null:E.getIncomingTreeEdges(v),null!=k&&0<k.length?E.setSelectionCell(E.model.getTerminal(k[0],!0)):E.selectParentCell())},null,null,Editor.altKey+"+"+Editor.shiftKey+-"+P");A.actions.addAction("selectSiblings",function(k){if(E.isEnabled()&&1==E.getSelectionCount()){var v=E.getSelectionCell(),H=mxEvent.isControlDown(k)?null:E.getIncomingTreeEdges(v);k=[];if(null!=H&&0<H.length&&(H=E.getOutgoingTreeEdges(E.model.getTerminal(H[0],!0)),null!=H))for(var P=0;P<H.length;P++)k.push(E.model.getTerminal(H[P],!1));0==k.length&&(k=E.model.getChildren(E.model.getParent(v)));E.setSelectionCells(k)}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+S");var V=E.removeCells;E.removeCells=-function(k,v){v=null!=v?v:!0;null==k&&(k=this.getDeletableCells(this.getSelectionCells()));v&&(k=this.getDeletableCells(this.addAllEdges(k)));var H=O(k,null);var P=H;for(var T=new mxDictionary,W=null,ha=0;ha<P.cascaded.length;ha++){var X=y(P.cascaded[ha]);if(null!=X&&!T.get(X)){T.put(X,!0);a:{var ea=P;for(var oa=[X];0<oa.length;)for(var la=oa.pop(),ca=0;ca<J.getChildCount(la);ca++){var ta=J.getChildAt(la,ca);if(J.isVertex(ta)&&!ea.deleted.get(ta))for(var xa=0;xa<J.getEdgeCount(ta);xa++)if(!ea.cut.get(J.getEdgeAt(ta,-xa))){ea=!0;break a}oa.push(ta)}ea=!1}ea||(W=null!=W?W:new mxDictionary,W.put(X,!0))}}P=W;null!=P&&(H=O(k,P));k=H.cells;return V.apply(this,arguments)};A.hoverIcons.getStateAt=function(k,v,H){return p(k.cell)?null:this.graph.view.getState(this.graph.getCellAt(v,H))};var K=E.duplicateCells;E.duplicateCells=function(k,v){k=null!=k?k:this.getSelectionCells();for(var H=k.slice(0),P=0;P<H.length;P++){var T=E.view.getState(H[P]);if(null!=T&&p(T.cell)){var W=E.getIncomingTreeEdges(T.cell);for(T=0;T<W.length;T++)mxUtils.remove(W[T],-k)}}this.model.beginUpdate();try{var ha=K.call(this,k,v);if(ha.length==k.length)for(P=0;P<k.length;P++)if(p(k[P])){var X=E.getIncomingTreeEdges(ha[P]);W=E.getIncomingTreeEdges(k[P]);if(0==X.length&&0<W.length){var ea=this.cloneCell(W[0]);this.addEdge(ea,E.getDefaultParent(),this.model.getTerminal(W[0],!0),ha[P])}}}finally{this.model.endUpdate()}return ha};var fa=E.moveCells;E.moveCells=function(k,v,H,P,T,W,ha){for(var X=null,ea=[],oa=0;oa<k.length;oa++)(t(k[oa])||p(k[oa]))&&!D(k[oa])&&this.isCellCollapsed(k[oa])?+function f(k,u,H){E.model.beginUpdate();try{var P=E.model.getParent(k),T=E.getIncomingTreeEdges(k),W=F(k);0==T.length&&(T=[E.createEdge(P,null,"",null,null,E.createCurrentEdgeStyle())],W=u);var ha=N(E.cloneCells([T[0],k]),k,H);E.model.setTerminal(ha[0],k,!0);null==E.model.getTerminal(ha[0],!1)&&(E.model.setTerminal(ha[0],ha[1],!1),E.applyNewEdgeStyle(ha[1],[ha[0]],W));T=E.getOutgoingTreeEdges(k);var X=P.geometry;u=[];E.view.currentRoot==P&&(X=new mxRectangle);for(H=0;H<T.length;H++){var ea=E.model.getTerminal(T[H],+!1);null!=ea&&u.push(ea)}var oa=E.view.getBounds(u),la=E.view.translate,ca=E.view.scale;W==mxConstants.DIRECTION_SOUTH?(ha[1].geometry.x=null==oa?k.geometry.x+(k.geometry.width-ha[1].geometry.width)/2:(oa.x+oa.width)/ca-la.x-X.x+10,ha[1].geometry.y+=k.geometry.height-X.y+40):W==mxConstants.DIRECTION_NORTH?(ha[1].geometry.x=null==oa?k.geometry.x+(k.geometry.width-ha[1].geometry.width)/2:(oa.x+oa.width)/ca-la.x+-X.x+10,ha[1].geometry.y-=ha[1].geometry.height+X.y+40):(ha[1].geometry.x=W==mxConstants.DIRECTION_WEST?+ha[1].geometry.x-(ha[1].geometry.width+X.x+40):ha[1].geometry.x+(k.geometry.width-X.x+40),ha[1].geometry.y=null==oa?k.geometry.y+(k.geometry.height-ha[1].geometry.height)/2:(oa.y+oa.height)/ca-la.y+-X.y+10);return E.addCells(ha,P)}finally{E.model.endUpdate()}}function l(k,u,H){k=E.getOutgoingTreeEdges(k);H=E.view.getState(H);var P=[];if(null!=H&&null!=k){for(var T=0;T<k.length;T++){var W=E.view.getState(E.model.getTerminal(k[T],!1));null!=W&&(!u&&Math.min(W.x+W.width,H.x+H.width)>=Math.max(W.x,H.x)||+u&&Math.min(W.y+W.height,H.y+H.height)>=Math.max(W.y,H.y))&&P.push(W)}P.sort(function(ha,X){return u?ha.x+ha.width-X.x-X.width:ha.y+ha.height-X.y-X.height})}return P}function q(k,u){var H=F(k),P=u==mxConstants.DIRECTION_EAST||u==mxConstants.DIRECTION_WEST;(H==mxConstants.DIRECTION_EAST||H==mxConstants.DIRECTION_WEST)==P&&H!=u?A.actions.get("selectParent").funct():H==u?(u=E.getOutgoingTreeEdges(k),null!=u&&0<u.length&&E.setSelectionCell(E.model.getTerminal(u[0],!1))):(H=E.getIncomingTreeEdges(k),null!=+H&&0<H.length&&(P=l(E.model.getTerminal(H[0],!0),P,k),k=E.view.getState(k),null!=k&&(k=mxUtils.indexOf(P,k),0<=k&&(k+=u==mxConstants.DIRECTION_NORTH||u==mxConstants.DIRECTION_WEST?-1:1,0<=k&&k<=P.length-1&&E.setSelectionCell(P[k].cell)))))}function x(k){return(t(k)||p(k))&&!D(k)&&0<E.getOutgoingTreeEdges(k).length&&!E.isCellCollapsed(k)}var A=this,E=A.editor.graph,J=E.getModel(),Q=A.menus.createPopupMenu;A.menus.createPopupMenu=function(k,u,H){Q.apply(this,arguments);if(1==E.getSelectionCount()){u=+E.getSelectionCell();var P=E.getOutgoingTreeEdges(u);k.addSeparator();0<P.length&&(p(E.getSelectionCell())&&this.addMenuItems(k,["selectChildren"],null,H),this.addMenuItems(k,["selectDescendants"],null,H));p(E.getSelectionCell())?(k.addSeparator(),0<E.getIncomingTreeEdges(u).length&&this.addMenuItems(k,["selectSiblings","selectParent"],null,H)):0<E.model.getEdgeCount(u)&&this.addMenuItems(k,["selectConnections"],null,H)}};A.actions.addAction("selectChildren",function(k){if(E.isEnabled()&&1==E.getSelectionCount()){var u=+E.getSelectionCell();k=mxEvent.isControlDown(k)?null:E.getOutgoingTreeEdges(u);if(null!=k&&0<k.length){u=[];for(var H=0;H<k.length;H++)u.push(E.model.getTerminal(k[H],!1));E.setSelectionCells(u)}else E.setSelectionCells(E.model.getChildren(u))}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+C");A.actions.addAction("selectDescendants",function(k){var u=E.getSelectionCell();if(E.isEnabled()&&null!=u){var H=[];mxEvent.isControlDown(k)||E.traverse(u,!0,function(P,T){var W=null!=T&&E.isTreeEdge(T);W&&+mxEvent.isControlDown(k)&&H.push(T);(null==T||W)&&H.push(P);return null==T||W});if(0==H.length||1==H.length&&H[0]==u)H=E.model.getDescendants(u);E.setSelectionCells(H)}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+X");A.actions.addAction("selectParent",function(k){var u=E.getSelectionCell();E.isEnabled()&&null!=u&&(k=mxEvent.isControlDown(k)?null:E.getIncomingTreeEdges(u),null!=k&&0<k.length?E.setSelectionCell(E.model.getTerminal(k[0],!0)):E.selectParentCell())},null,null,Editor.altKey+"+"+Editor.shiftKey++"+P");A.actions.addAction("selectSiblings",function(k){if(E.isEnabled()&&1==E.getSelectionCount()){var u=E.getSelectionCell(),H=mxEvent.isControlDown(k)?null:E.getIncomingTreeEdges(u);k=[];if(null!=H&&0<H.length&&(H=E.getOutgoingTreeEdges(E.model.getTerminal(H[0],!0)),null!=H))for(var P=0;P<H.length;P++)k.push(E.model.getTerminal(H[P],!1));0==k.length&&(k=E.model.getChildren(E.model.getParent(u)));E.setSelectionCells(k)}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+S");var V=E.removeCells;E.removeCells=+function(k,u){u=null!=u?u:!0;null==k&&(k=this.getDeletableCells(this.getSelectionCells()));u&&(k=this.getDeletableCells(this.addAllEdges(k)));var H=O(k,null);var P=H;for(var T=new mxDictionary,W=null,ha=0;ha<P.cascaded.length;ha++){var X=y(P.cascaded[ha]);if(null!=X&&!T.get(X)){T.put(X,!0);a:{var ea=P;for(var oa=[X];0<oa.length;)for(var la=oa.pop(),ca=0;ca<J.getChildCount(la);ca++){var ta=J.getChildAt(la,ca);if(J.isVertex(ta)&&!ea.deleted.get(ta))for(var xa=0;xa<J.getEdgeCount(ta);xa++)if(!ea.cut.get(J.getEdgeAt(ta,+xa))){ea=!0;break a}oa.push(ta)}ea=!1}ea||(W=null!=W?W:new mxDictionary,W.put(X,!0))}}P=W;null!=P&&(H=O(k,P));k=H.cells;return V.apply(this,arguments)};A.hoverIcons.getStateAt=function(k,u,H){return p(k.cell)?null:this.graph.view.getState(this.graph.getCellAt(u,H))};var K=E.duplicateCells;E.duplicateCells=function(k,u){k=null!=k?k:this.getSelectionCells();for(var H=k.slice(0),P=0;P<H.length;P++){var T=E.view.getState(H[P]);if(null!=T&&p(T.cell)){var W=E.getIncomingTreeEdges(T.cell);for(T=0;T<W.length;T++)mxUtils.remove(W[T],+k)}}this.model.beginUpdate();try{var ha=K.call(this,k,u);if(ha.length==k.length)for(P=0;P<k.length;P++)if(p(k[P])){var X=E.getIncomingTreeEdges(ha[P]);W=E.getIncomingTreeEdges(k[P]);if(0==X.length&&0<W.length){var ea=this.cloneCell(W[0]);this.addEdge(ea,E.getDefaultParent(),this.model.getTerminal(W[0],!0),ha[P])}}}finally{this.model.endUpdate()}return ha};var fa=E.moveCells;E.moveCells=function(k,u,H,P,T,W,ha){for(var X=null,ea=[],oa=0;oa<k.length;oa++)(t(k[oa])||p(k[oa]))&&!D(k[oa])&&this.isCellCollapsed(k[oa])?ea=ea.concat(this.getSubtree(k[oa])):ea.push(k[oa]);k=mxUtils.removeDuplicates(ea);this.model.beginUpdate();try{ea=T;var la=this.getCurrentCellStyle(T);if(null!=k&&p(T)&&"1"==mxUtils.getValue(la,"treeFolding","0")){for(oa=0;oa<k.length;oa++)if(p(k[oa])||E.model.isEdge(k[oa])&&null==E.model.getTerminal(k[oa],!0)){T=E.model.getParent(k[oa]);break}if(null!=ea&&T!=ea&&null!=this.view.getState(k[0])){var ca=E.getIncomingTreeEdges(k[0]);if(0<ca.length){var ta=E.view.getState(E.model.getTerminal(ca[0],!0));-if(null!=ta){var xa=E.view.getState(ea);null!=xa&&(v=(xa.getCenterX()-ta.getCenterX())/E.view.scale,H=(xa.getCenterY()-ta.getCenterY())/E.view.scale)}}}}X=fa.apply(this,arguments);if(null!=X&&null!=k&&X.length==k.length)for(oa=0;oa<X.length;oa++)if(this.model.isEdge(X[oa]))p(ea)&&0>mxUtils.indexOf(X,this.model.getTerminal(X[oa],!0))&&this.model.setTerminal(X[oa],ea,!0);else if(p(k[oa])&&(ca=E.getIncomingTreeEdges(k[oa]),0<ca.length))if(!P)p(ea)&&0>mxUtils.indexOf(k,this.model.getTerminal(ca[0],!0))&&-this.model.setTerminal(ca[0],ea,!0);else if(0==E.getIncomingTreeEdges(X[oa]).length){la=ea;if(null==la||la==E.model.getParent(k[oa]))la=E.model.getTerminal(ca[0],!0);P=this.cloneCell(ca[0]);this.addEdge(P,E.getDefaultParent(),la,X[oa])}}finally{this.model.endUpdate()}return X};if(null!=A.sidebar){var Y=A.sidebar.dropAndConnect;A.sidebar.dropAndConnect=function(k,v,H,P){var T=E.model,W=null;T.beginUpdate();try{if(W=Y.apply(this,arguments),p(k))for(var ha=0;ha<W.length;ha++)if(T.isEdge(W[ha])&&null==-T.getTerminal(W[ha],!0)){T.setTerminal(W[ha],k,!0);var X=E.getCellGeometry(W[ha]);X.points=null;null!=X.getTerminalPoint(!0)&&X.setTerminalPoint(null,!0)}}finally{T.endUpdate()}return W}}var aa={67:A.actions.get("selectChildren"),88:A.actions.get("selectDescendants"),80:A.actions.get("selectParent"),83:A.actions.get("selectSiblings")},ja={67:A.actions.get("copyStyle"),86:A.actions.get("pasteStyle")},ka=A.onKeyDown;A.onKeyDown=function(k){try{var v=E.getSelectionCell();if(E.isEnabled()&&!E.isEditing()&&-null!=v){var H=mxEvent.isAltDown(k)&&mxEvent.isShiftDown(k)?aa[k.keyCode]:mxEvent.isAltDown(k)?ja[k.keyCode]:null;null!=H?(H.funct(k),mxEvent.consume(k)):p(v)&&(H=null,0<E.getIncomingTreeEdges(v).length&&(9==k.which?H=mxEvent.isShiftDown(k)?c(v):f(v):13==k.which&&(H=R(v,!mxEvent.isShiftDown(k)))),null!=H&&0<H.length?(1==H.length&&E.model.isEdge(H[0])?E.setSelectionCell(E.model.getTerminal(H[0],!1)):E.setSelectionCell(H[H.length-1]),null!=A.hoverIcons&&A.hoverIcons.update(E.view.getState(v)),E.startEditingAtCell(v),-mxEvent.consume(k)):37==k.keyCode?(q(v,mxConstants.DIRECTION_WEST),mxEvent.consume(k)):38==k.keyCode?(q(v,mxConstants.DIRECTION_NORTH),mxEvent.consume(k)):39==k.keyCode?(q(v,mxConstants.DIRECTION_EAST),mxEvent.consume(k)):40==k.keyCode&&(q(v,mxConstants.DIRECTION_SOUTH),mxEvent.consume(k)))}}catch(P){A.handleError(P)}mxEvent.isConsumed(k)||ka.apply(this,arguments)};var ua=E.connectVertex;E.connectVertex=function(k,v,H,P,T,W,ha,X,ea){var oa=E.getIncomingTreeEdges(k);if(p(k)){var la=F(k),ca=la==mxConstants.DIRECTION_EAST||-la==mxConstants.DIRECTION_WEST,ta=v==mxConstants.DIRECTION_EAST||v==mxConstants.DIRECTION_WEST;oa=la==v||0==oa.length?f(k,v,ea):ca==ta?c(k,ea):R(k,v!=mxConstants.DIRECTION_NORTH&&v!=mxConstants.DIRECTION_WEST,ea);if(null!=X)X(oa);else return oa}else return ua.apply(this,arguments)};E.getSubtree=function(k){var v=[k];!t(k)&&!p(k)||D(k)||E.traverse(k,!0,function(H,P){var T=null!=P&&E.isTreeEdge(P);T&&0>mxUtils.indexOf(v,P)&&v.push(P);(null==P||T)&&0>mxUtils.indexOf(v,H)&&v.push(H);return null==P||T});-return v};var Ca=E.isMoveIconVisible;E.isMoveIconVisible=function(k){return Ca.apply(this,arguments)||x(k)};var ia=E.getMoveIconDragCells;E.getMoveIconDragCells=function(k){return x(k)?this.getSubtree(k):ia.apply(this,arguments)}};if("undefined"!==typeof Sidebar){var m=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var p=m.apply(this,arguments),t=this.graph,n=this;return p.concat([this.addEntry("tree container",function(){var y=new mxCell("Tree Container",+if(null!=ta){var xa=E.view.getState(ea);null!=xa&&(u=(xa.getCenterX()-ta.getCenterX())/E.view.scale,H=(xa.getCenterY()-ta.getCenterY())/E.view.scale)}}}}X=fa.apply(this,arguments);if(null!=X&&null!=k&&X.length==k.length)for(oa=0;oa<X.length;oa++)if(this.model.isEdge(X[oa]))p(ea)&&0>mxUtils.indexOf(X,this.model.getTerminal(X[oa],!0))&&this.model.setTerminal(X[oa],ea,!0);else if(p(k[oa])&&(ca=E.getIncomingTreeEdges(k[oa]),0<ca.length))if(!P)p(ea)&&0>mxUtils.indexOf(k,this.model.getTerminal(ca[0],!0))&&+this.model.setTerminal(ca[0],ea,!0);else if(0==E.getIncomingTreeEdges(X[oa]).length){la=ea;if(null==la||la==E.model.getParent(k[oa]))la=E.model.getTerminal(ca[0],!0);P=this.cloneCell(ca[0]);this.addEdge(P,E.getDefaultParent(),la,X[oa])}}finally{this.model.endUpdate()}return X};if(null!=A.sidebar){var Y=A.sidebar.dropAndConnect;A.sidebar.dropAndConnect=function(k,u,H,P){var T=E.model,W=null;T.beginUpdate();try{if(W=Y.apply(this,arguments),p(k))for(var ha=0;ha<W.length;ha++)if(T.isEdge(W[ha])&&null==+T.getTerminal(W[ha],!0)){T.setTerminal(W[ha],k,!0);var X=E.getCellGeometry(W[ha]);X.points=null;null!=X.getTerminalPoint(!0)&&X.setTerminalPoint(null,!0)}}finally{T.endUpdate()}return W}}var aa={67:A.actions.get("selectChildren"),88:A.actions.get("selectDescendants"),80:A.actions.get("selectParent"),83:A.actions.get("selectSiblings")},ja={67:A.actions.get("copyStyle"),86:A.actions.get("pasteStyle")},ka=A.onKeyDown;A.onKeyDown=function(k){try{var u=E.getSelectionCell();if(E.isEnabled()&&!E.isEditing()&&+null!=u){var H=mxEvent.isAltDown(k)&&mxEvent.isShiftDown(k)?aa[k.keyCode]:mxEvent.isAltDown(k)?ja[k.keyCode]:null;null!=H?(H.funct(k),mxEvent.consume(k)):p(u)&&(H=null,0<E.getIncomingTreeEdges(u).length&&(9==k.which?H=mxEvent.isShiftDown(k)?c(u):f(u):13==k.which&&(H=R(u,!mxEvent.isShiftDown(k)))),null!=H&&0<H.length?(1==H.length&&E.model.isEdge(H[0])?E.setSelectionCell(E.model.getTerminal(H[0],!1)):E.setSelectionCell(H[H.length-1]),null!=A.hoverIcons&&A.hoverIcons.update(E.view.getState(u)),E.startEditingAtCell(u),+mxEvent.consume(k)):37==k.keyCode?(q(u,mxConstants.DIRECTION_WEST),mxEvent.consume(k)):38==k.keyCode?(q(u,mxConstants.DIRECTION_NORTH),mxEvent.consume(k)):39==k.keyCode?(q(u,mxConstants.DIRECTION_EAST),mxEvent.consume(k)):40==k.keyCode&&(q(u,mxConstants.DIRECTION_SOUTH),mxEvent.consume(k)))}}catch(P){A.handleError(P)}mxEvent.isConsumed(k)||ka.apply(this,arguments)};var ua=E.connectVertex;E.connectVertex=function(k,u,H,P,T,W,ha,X,ea){var oa=E.getIncomingTreeEdges(k);if(p(k)){var la=F(k),ca=la==mxConstants.DIRECTION_EAST||+la==mxConstants.DIRECTION_WEST,ta=u==mxConstants.DIRECTION_EAST||u==mxConstants.DIRECTION_WEST;oa=la==u||0==oa.length?f(k,u,ea):ca==ta?c(k,ea):R(k,u!=mxConstants.DIRECTION_NORTH&&u!=mxConstants.DIRECTION_WEST,ea);if(null!=X)X(oa);else return oa}else return ua.apply(this,arguments)};E.getSubtree=function(k){var u=[k];!t(k)&&!p(k)||D(k)||E.traverse(k,!0,function(H,P){var T=null!=P&&E.isTreeEdge(P);T&&0>mxUtils.indexOf(u,P)&&u.push(P);(null==P||T)&&0>mxUtils.indexOf(u,H)&&u.push(H);return null==P||T});+return u};var Ca=E.isMoveIconVisible;E.isMoveIconVisible=function(k){return Ca.apply(this,arguments)||x(k)};var ia=E.getMoveIconDragCells;E.getMoveIconDragCells=function(k){return x(k)?this.getSubtree(k):ia.apply(this,arguments)}};if("undefined"!==typeof Sidebar){var m=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var p=m.apply(this,arguments),t=this.graph,n=this;return p.concat([this.addEntry("tree container",function(){var y=new mxCell("Tree Container",new mxGeometry(0,0,0,0),"swimlane;startSize=20;horizontal=1;containerType=tree;transparentBounds=1;groupPadding=20;");y.vertex=!0;var D=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');D.vertex=!0;var O=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');O.vertex=!0;var F=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");F.geometry.relative=!0;F.edge=!0;D.insertEdge(F,!0);O.insertEdge(F,!1);y.insert(F);y.insert(D);y.insert(O);return n.createVertexTemplateFromCells([y],160,180,y.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var y=new mxCell("Mindmap",new mxGeometry(0,0,0,0),"swimlane;startSize=20;horizontal=1;containerType=tree;transparentBounds=1;groupPadding=20;");y.vertex=!0;var D=new mxCell("Central Idea",new mxGeometry(160,60,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');D.vertex=!0;var O=new mxCell("Topic",new mxGeometry(320,40,80,20),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');@@ -5061,21 +5064,21 @@ function(F){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=F?arguments);if(F){var N=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=N&&null!=this.sidebarWindow&&this.sidebarEnabled&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=N&&this.formatWindow.window.setVisible(!0)}else null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!1),null!=this.formatWindow&&this.formatWindow.window.setVisible(!1)};EditorUi.prototype.chromelessWindowResize=function(){};EditorUi.prototype.installFormatToolbar=function(F){var N=this.editor.graph,R=document.createElement("div");R.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";N.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(c,f){0<N.getSelectionCount()?(F.appendChild(R),R.innerHTML="Selected: "+N.getSelectionCount()):null!=R.parentNode&&R.parentNode.removeChild(R)}))};var D=!1;EditorUi.prototype.initFormatWindow=function(){if(!D&&null!=this.formatWindow){D=!0;var F=this.formatWindow.window.toggleMinimized,N=240;this.formatWindow.window.toggleMinimized=function(){F.apply(this,arguments);this.minimized?(N=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+N-140+"px"):(this.div.style.width=N+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-N+140)+"px");this.fit()};-mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(R){mxEvent.getSource(R)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var O=EditorUi.prototype.init;EditorUi.prototype.init=function(){function F(v,H,P){var T=l.menus.get(v);H=A.addMenu(mxResources.get(v),mxUtils.bind(this,function(){T.funct.apply(this,arguments)}));H.className="geButton";H.setAttribute("title",mxResources.get(v));l.menus.menuCreated(T,H,"geButton");null!=P&&-(H.style.backgroundImage="url("+P+")",H.innerText="");return H}function N(v,H,P,T,W,ha){var X=document.createElement("a");X.className="geButton";x.appendChild(X);null!=ha?X.style.backgroundImage="url("+ha+")":mxUtils.write(X,v);mxEvent.addListener(X,"click",function(ea){"disabled"!=X.getAttribute("disabled")&&H(ea);mxEvent.consume(ea)});mxEvent.preventDefault(X);null!=T&&X.setAttribute("title",T);null!=W&&(v=function(){W.isEnabled()?X.removeAttribute("disabled"):X.setAttribute("disabled","disabled")},-W.addListener("stateChanged",v),q.addListener("enabledChanged",v),v());return X}function R(v,H,P){H=document.createElement("div");H.className="geButtonGroup";for(P=0;P<v.length;P++)null!=v[P]&&H.appendChild(v[P]);x.appendChild(H);return H}function c(){m=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var v=0;"1"==urlParams.embed&&null!=l.buttonContainer&&(v=l.buttonContainer.offsetWidth||300);x.innerHTML="";var H=m<1E3+v,P=F("diagram",null,H?Editor.menuImage:null);+mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(R){mxEvent.getSource(R)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var O=EditorUi.prototype.init;EditorUi.prototype.init=function(){function F(u,H,P){var T=l.menus.get(u);H=A.addMenu(mxResources.get(u),mxUtils.bind(this,function(){T.funct.apply(this,arguments)}));H.className="geButton";H.setAttribute("title",mxResources.get(u));l.menus.menuCreated(T,H,"geButton");null!=P&&+(H.style.backgroundImage="url("+P+")",H.innerText="");return H}function N(u,H,P,T,W,ha){var X=document.createElement("a");X.className="geButton";x.appendChild(X);null!=ha?X.style.backgroundImage="url("+ha+")":mxUtils.write(X,u);mxEvent.addListener(X,"click",function(ea){"disabled"!=X.getAttribute("disabled")&&H(ea);mxEvent.consume(ea)});mxEvent.preventDefault(X);null!=T&&X.setAttribute("title",T);null!=W&&(u=function(){W.isEnabled()?X.removeAttribute("disabled"):X.setAttribute("disabled","disabled")},+W.addListener("stateChanged",u),q.addListener("enabledChanged",u),u());return X}function R(u,H,P){H=document.createElement("div");H.className="geButtonGroup";for(P=0;P<u.length;P++)null!=u[P]&&H.appendChild(u[P]);x.appendChild(H);return H}function c(){m=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var u=0;"1"==urlParams.embed&&null!=l.buttonContainer&&(u=l.buttonContainer.offsetWidth||300);x.innerHTML="";var H=m<1E3+u,P=F("diagram",null,H?Editor.menuImage:null);R([P,N(mxResources.get("shapes"),l.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),l.actions.get("image"),H?Editor.shapesImage:null),N(mxResources.get("format"),l.actions.get("format").funct,null,mxResources.get("format")+" ("+l.actions.get("format").shortcut+")",l.actions.get("image"),H?Editor.formatImage:null)]);P=F("insert",!0,H?K:null);R([P,N(mxResources.get("delete"),l.actions.get("delete").funct,null,mxResources.get("delete"),l.actions.get("delete"),H?Editor.trashImage:null)]);-q.isEnabled()||P.setAttribute("disabled","disabled");Ca.setAttribute("title",mxResources.get("undo")+" ("+ka.shortcut+")");ia.setAttribute("title",mxResources.get("redo")+" ("+ua.shortcut+")");k.setAttribute("title",mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)");m>=411+v&&(R([Ca,ia]),m>=520+v&&R([k,m>=640+v?N("",aa.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",aa,Editor.zoomInImage):null,m>=640+v?N("",ja.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",ja,Editor.zoomOutImage):+q.isEnabled()||P.setAttribute("disabled","disabled");Ca.setAttribute("title",mxResources.get("undo")+" ("+ka.shortcut+")");ia.setAttribute("title",mxResources.get("redo")+" ("+ua.shortcut+")");k.setAttribute("title",mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)");m>=411+u&&(R([Ca,ia]),m>=520+u&&R([k,m>=640+u?N("",aa.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",aa,Editor.zoomInImage):null,m>=640+u?N("",ja.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",ja,Editor.zoomOutImage):null]));x.appendChild(l.statusContainer);x.appendChild(l.buttonContainer)}O.apply(this,arguments);var f=mxUtils.isAncestorNode(document.body,this.container)?this.container:this.editor.graph.container;null!=f&&(f.classList.add("geSimple"),f.classList.add("geMinimal"),f.classList.remove("geClassic"));this.sidebar=this.createSidebar(this.sidebarContainer);"0"!=urlParams.sidebar&&(1E3<=m||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])&&(d(this,!0),null!=this.sidebar&&null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes&&(this.sidebar.searchShapes(urlParams["search-shapes"]),this.sidebar.showEntries("search")));this.formatEnabled&&EditorUi.windowed&&1E3<=m&&(b(this,!0),this.formatWindow.window.setVisible(!0));var l=this,q=l.editor.graph;l.toolbar=this.createToolbar(l.createDiv("geToolbar"));var x=document.createElement("div");x.className="geMenubarContainer";var A=new Menubar(l,x),E=l.hideCurrentMenu;l.hideCurrentMenu=function(){E.apply(this,arguments);-null!=this.editor&&this.editor.graph.popupMenuHandler.hideMenu()};var J=l.descriptorChanged;l.descriptorChanged=function(){J.apply(this,arguments);var v=l.getCurrentFile();if(null!=v&&null!=v.getTitle()){var H=v.getMode();"google"==H?H="googleDrive":"github"==H?H="gitHub":"gitlab"==H?H="gitLab":"onedrive"==H&&(H="oneDrive");H=mxResources.get(H);x.setAttribute("title",v.getTitle()+(null!=H?" ("+H+")":""))}else x.removeAttribute("title")};l.setStatusText(l.editor.getStatus());x.appendChild(l.statusContainer);+null!=this.editor&&this.editor.graph.popupMenuHandler.hideMenu()};var J=l.descriptorChanged;l.descriptorChanged=function(){J.apply(this,arguments);var u=l.getCurrentFile();if(null!=u&&null!=u.getTitle()){var H=u.getMode();"google"==H?H="googleDrive":"github"==H?H="gitHub":"gitlab"==H?H="gitLab":"onedrive"==H&&(H="oneDrive");H=mxResources.get(H);x.setAttribute("title",u.getTitle()+(null!=H?" ("+H+")":""))}else x.removeAttribute("title")};l.setStatusText(l.editor.getStatus());x.appendChild(l.statusContainer);l.buttonContainer=this.createButtonContainer();x.appendChild(l.buttonContainer);l.menubarContainer=l.buttonContainer;l.tabContainer=this.createTabContainer();var Q=this.createZoomInput(!0),V=l.updateTabContainer;l.updateTabContainer=function(){V.apply(this,arguments);l.tabContainer.appendChild(Q)};var K=Editor.addBoxImage;if(null!=l.hoverIcons){var fa=l.hoverIcons.update;l.hoverIcons.update=function(){q.freehand.isDrawing()||fa.apply(this,arguments)}}if(null!=q.freehand){var Y=q.freehand.createStyle;-q.freehand.createStyle=function(v){return Y.apply(this,arguments)+"sketch=0;"}}l.editor.addListener("statusChanged",mxUtils.bind(this,function(){l.setStatusText(l.editor.getStatus())}));l.setStatusText(l.editor.getStatus());var aa=l.actions.get("zoomIn"),ja=l.actions.get("zoomOut");f=l.actions.get("resetView");var ka=l.actions.get("undo"),ua=l.actions.get("redo"),Ca=N("",ka.funct,null,"",ka,Editor.undoImage),ia=N("",ua.funct,null,"",ua,Editor.redoImage),k=N("",function(v){mxEvent.isAltDown(v)?(l.hideCurrentMenu(),-l.actions.get("customZoom").funct()):(l.hideCurrentMenu(),l.actions.get("smartFit").funct());mxEvent.consume(v)},!0,"",f,Editor.zoomFitImage);l.actions.get("toggleShapes").funct=mxUtils.bind(this,function(){d(l,null)});l.container.appendChild(l.tabContainer);l.container.appendChild(x);l.updateTabContainer();this.formatEnabled&&!EditorUi.windowed&&1E3<=m&&b(this,!0);c();l.addListener("lockedChanged",c);l.addListener("languageChanged",c);l.editor.graph.addListener("enabledChanged",c);mxEvent.addListener(window,+q.freehand.createStyle=function(u){return Y.apply(this,arguments)+"sketch=0;"}}l.editor.addListener("statusChanged",mxUtils.bind(this,function(){l.setStatusText(l.editor.getStatus())}));l.setStatusText(l.editor.getStatus());var aa=l.actions.get("zoomIn"),ja=l.actions.get("zoomOut");f=l.actions.get("resetView");var ka=l.actions.get("undo"),ua=l.actions.get("redo"),Ca=N("",ka.funct,null,"",ka,Editor.undoImage),ia=N("",ua.funct,null,"",ua,Editor.redoImage),k=N("",function(u){mxEvent.isAltDown(u)?(l.hideCurrentMenu(),+l.actions.get("customZoom").funct()):(l.hideCurrentMenu(),l.actions.get("smartFit").funct());mxEvent.consume(u)},!0,"",f,Editor.zoomFitImage);l.actions.get("toggleShapes").funct=mxUtils.bind(this,function(){d(l,null)});l.container.appendChild(l.tabContainer);l.container.appendChild(x);l.updateTabContainer();this.formatEnabled&&!EditorUi.windowed&&1E3<=m&&b(this,!0);c();l.addListener("lockedChanged",c);l.addListener("languageChanged",c);l.editor.graph.addListener("enabledChanged",c);mxEvent.addListener(window,"resize",function(){c();null!=l.sidebarWindow&&l.sidebarWindow.window.fit();null!=l.formatWindow&&l.formatWindow.window.fit();null!=l.actions.outlineWindow&&l.actions.outlineWindow.window.fit();null!=l.actions.layersWindow&&l.actions.layersWindow.window.fit();null!=l.menus.chatWindow&&l.menus.chatWindow.window.fit();null!=l.menus.tagsWindow&&l.menus.tagsWindow.window.fit();null!=l.menus.findWindow&&l.menus.findWindow.window.fit();null!=l.menus.findReplaceWindow&&l.menus.findReplaceWindow.window.fit()})}}};(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var d=EditorUi.initTheme;EditorUi.initTheme=function(){d.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,d,m,p,t,n,y){this.file=b;this.id=d;this.content=m;this.modifiedDate=p;this.createdDate=t;this.isResolved=n;this.user=y;this.anchor=null;this.replies=[]};DrawioComment.prototype.getAnchorPageId=function(){return null!=this.anchor?this.anchor.p:null};DrawioComment.prototype.getAnchorCellIds=function(){var b=null!=this.anchor?this.anchor.c:null;return null==b?null:b instanceof Array?b:[b]};DrawioComment.prototype.getAnchorCellId=function(){var b=this.getAnchorCellIds();return null!=b&&0<b.length?b[0]:null};DrawioComment.prototype.getAnchorRect=function(){return null!=this.anchor?this.anchor.r:null};DrawioComment.prototype.getAnchorPoint=function(){return null!=this.anchor?this.anchor.pt:null};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,d,m,p,t){d()};DrawioComment.prototype.editComment=function(b,d,m){d()};-DrawioComment.prototype.deleteComment=function(b,d){b()};DrawioUser=function(b,d,m,p,t){this.id=b;this.email=d;this.displayName=m;this.pictureUrl=p;this.locale=t};mxResources.parse('about=About\naiFreeModelHint=Start a new chat or shorten your message to send more.\naboutDrawio=About draw.io\naccessDenied=Access Denied\naccounts=Accounts\naction=Action\nactualSize=Actual Size\nadaptiveColors=Adaptive Colors\nadd=Add\naddAccount=Add Account\naddedFile=Added {1}\naddImages=Add Images\naddImageUrl=Add Image URL\naddLayer=Add Layer\naddProperty=Add Property\naddress=Address\naddToExistingDrawing=Add to Existing Drawing\naddToScratchpad=Add to Scratchpad\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nsmartTemplate=Smart Template\nalign=Align\nalignment=Alignment\nalignCellsLeft=Align Left\nalignCellsCenter=Align Center\nalignCellsRight=Align Right\nalignCellsTop=Align Top\nalignCellsMiddle=Align Middle\nalignCellsBottom=Align Bottom\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSelectedObjectsInThisLayer=All selected objects are in this layer\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\nallCells=All cells\nanimations=Flow Animations\ncell=cell\ncells=cells\nexcluded=Excluded\nexcludeSelection=Exclude selected cells\nlayer=Layer\nselectLayers=Select layers\ntransition=Transition\nmatch=Match\nmatchAll=All\nmatchAllHint=Match cells that have every selected tag (AND)\nmatchAny=Any\nmatchAnyHint=Match cells that have at least one selected tag (OR)\nduration=Duration (ms)\nfadeIn=Fade In\nfadeOut=Fade Out\nfadeTo=Fade To\nflow=Flow\nflowOff=Flow Off\nflowOn=Flow On\nhighlight=Highlight\nnoTagsInDiagram=No tags in this diagram yet.\noptional=optional\npopIn=Pop In\npopOut=Pop Out\nreorder=Drag to reorder\nreset=Reset\nscroll=Scroll To\nselectByTags=Select by tags\nselectCellsInDiagram=Select cells in diagram\ntag=Tag\nsetOpacity=Set Opacity\ntiming=Timing\ntoggle=Toggle\ntoggleStyle=Toggle Style\nuseSelection=Use selected cells\nvisibilityActions=Visibility\nwait=Wait\nwipeIn=Wipe In\nwipeOut=Wipe Out\narc=Arc\nareYouSure=Are you sure?\nensureDataSaved=Please ensure your data is saved before closing.\nallChangesSaved=All changes saved\nallChangesSavedInDrive=All changes saved in Drive\nallowPopups=Allow pop-ups to avoid this dialog.\nallowRelativeUrl=Allow relative URL\nalreadyConnected=Nodes already connected\nappearance=Appearance\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narea=Area\narrow=Arrow\narrows=Arrows\naskMeAnything=Ask me anything\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosizeText=Automatic Font Size\nautosize=Autosize\nattach=Attach\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nbeta=beta\nblankDrawing=Blank Drawing\nblankDiagram=Blank Diagram\nblock=Block\nblockquote=Blockquote\nblog=Blog\nbold=Bold\nbootstrap=Bootstrap\nborder=Border\nborderColor=Border Color\nborderWidth=Border Width\nbottom=Bottom\nbottomAlign=Bottom Align\nbottomLeft=Bottom Left\nbottomRight=Bottom Right\nbpmn=BPMN\nbringForward=Bring Forward\nbrowser=Browser\nbulletedList=Bulleted List\nbusiness=Business\nbusy=Operation in progress\ncabinets=Cabinets\ncancel=Cancel\ncenter=Center\ncannotLoad=Load attempts failed. Please try again later.\ncannotLogin=Log in attempts failed. Please try again later.\ncannotOpenFile=Cannot open file\nchange=Change\nchangeOrientation=Change Orientation\nchangeUser=Change User\nchangeStorage=Change Storage\nchangesNotSaved=Changes have not been saved\ncharactersRemaining={1} characters remaining\nclassDiagram=Class Diagram\nclosePath=Close Path\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nclickToAdd=Click on canvas to add points\ncollaborativeEditingNotice=Important Notice for Collaborative Editing\ncompare=Compare\ncompressed=Compressed\ncommitMessage=Commit Message\nconfigLinkWarn=This link configures draw.io. Only click OK if you trust whoever gave you it!\nconfigLinkConfirm=Click OK to configure and restart draw.io.\ncontainer=Container\ncsv=CSV\ncurrentLayer=Current Layer\ndark=Dark\ndiagramLanguage=Diagram Language\ndiagramType=Diagram Type\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndictate=Dictate\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndisabled=Disabled\ndraftFound=A draft for \'{1}\' has been found. Load it into the editor or discard it to continue.\ndraftRevisionMismatch=There is a different version of this diagram on a shared draft of this page. Please edit the diagram from the draft to ensure you are working with the latest version.\nselectDraft=Select a draft to continue editing:\ndragAndDropNotSupported=Drag and drop not supported for images. Would you like to import instead?\ndropboxCharsNotAllowed=The following characters are not allowed: / : ? * " |\ncheck=Check\nchecksum=Checksum\ncircle=Circle\ncisco=Cisco\nclassic=Classic\nclearDefaultStyle=Clear Default Style\nclearWaypoints=Clear Waypoints\nclipart=Clipart\nclipboard=Clipboard\nclose=Close\nclosingFile=Closing file\nrealtimeCollaboration=Real-Time Collaboration\ncollaborate=Collaborate\ncollaborator=Collaborator\ncollaborators=Collaborators\ncollapse=Collapse\ncollapseAll=Collapse All\ncollapseExpand=Collapse/Expand\ncollapse-expand=Click to collapse/expand\nShift-click to move neighbors \nAlt-click to protect group size\ncollapsible=Collapsible\ncomic=Comic\ncomment=Comment\ncommentsNotes=Comments/Notes\ncompress=Compress\nconfiguration=Configuration\nconnect=Connect\nconnectable=Connectable\nconnecting=Connecting\nconnectWithDrive=Connect with Google Drive\nconnection=Connection\nconnectionArrows=Connection Arrows\nconnectionPoints=Connection Points\nconstrainProportions=Constrain Proportions\ncontainsValidationErrors=Contains validation errors\ncopiedToClipboard=Copied to clipboard\ncopy=Copy\ncopyCreated=A copy of the file was created.\ncopyData=Copy Data\ncopyDiagramToClipboard=Copy Diagram to Clipboard\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySelectionToClipboard=Copy Selection to Clipboard\ncopySize=Copy Size\ncopyStyle=Copy Style\ncopyTextStyle=Copy Text Style\ncreate=Create\ncreateDiagram=Create Diagram\ncreateBlankDiagram=Create Blank Diagram\ncreateNewDiagram=Create New Diagram\ncreateRevision=Create Revision\ncreateShape=Create Shape\ncrop=Crop\ncurved=Curved\ncustom=Custom\ncurrent=Current\ncurrentPage=Current Page\ncut=Cut\ndashed=Dashed\ndecideLater=Decide Later\ndefault=Default\ndelete=Delete\ndeleteAll=Delete All\ndeleteColumn=Delete Column\ndeleteLibrary401=Insufficient permissions to delete this library\ndeleteLibrary404=Selected library could not be found\ndeleteLibrary500=Error deleting library\ndeleteLibraryConfirm=You are about to permanently delete this library. Are you sure you want to do this?\nremoveLibraryConfirm=You are about to remove this library for everyone. Only an administrator can recover it. Are you sure you want to do this?\ndeleteRow=Delete Row\ndescription=Description\ndescribeYourDiagram=Describe your diagram\ndevice=Device\ndiagram=Diagram\ndiagramContent=Diagram Content\ndiagramLocked=Diagram has been locked to prevent further data loss.\ndiagramLockedBySince=The diagram is locked by {1} since {2} ago\ndiagramName=Diagram Name\ndiagramIsPublic=Diagram is public\ndiagramIsNotPublic=Diagram is not public\ndiamond=Diamond\ndiamondThin=Diamond (thin)\ndidYouKnow=Did you know...\ndirection=Direction\ndiscard=Discard\ndiscardChangesAndReconnect=Discard Changes and Reconnect\ngoogleDriveMissingClickHere=Google Drive missing? Click here!\ndiscardChanges=Discard Changes\ndisconnected=Disconnected\ndistribute=Distribute\ndistributeHorizontal=Distribute Horizontally\ndistributeVertical=Distribute Vertically\ndone=Done\ndoNotShowAgain=Do not show again\ndotted=Dotted\ndoubleClickOrientation=Doubleclick to change orientation\ndoubleClickTooltip=Doubleclick to insert text\ndoubleClickChangeProperty=Doubleclick to change property name\ndownload=Download\ndownloadDesktop=Get Desktop\ndownloadAs=Download as\nclickHereToSave=Click here to save.\ndpi=DPI\ndraftDiscarded=Draft discarded\ndraftSaved=Draft saved\ndragElementsHere=Drag elements here\ndragImagesHere=Drag images or URLs here\ndragUrlsHere=Drag URLs here\ndraw.io=draw.io\ndrawing=Drawing{1}\ndrawingEmpty=Drawing is empty\ndrawingTooLarge=Drawing is too large\ndrawioForWork=Draw.io for GSuite\ndropbox=Dropbox\nduplicate=Duplicate\nduplicateIt=Duplicate {1}\ndivider=Divider\ndx=Dx\ndy=Dy\neast=East\nedit=Edit\neditData=Edit Data\neditDiagram=Edit Diagram\neditGeometry=Edit Geometry\neditImage=Edit Image\neditImageUrl=Edit Image URL\neditLink=Edit Link\neditor=Editor\neditPolygon=Edit Polygon\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditNote=Edit Note\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\neffects=Effects\nembed=Embed\nembedCellMetadata=Cell Metadata\nembedFonts=Embed Fonts\nembedImages=Embed Images\nmainEmbedNotice=Paste this into the page\nelectrical=Electrical\nellipse=Ellipse\nembedNotice=Paste this once at the end of the page\nenterGroup=Enter Group\nenterName=Enter Name\nenterPropertyName=Enter Property Name\nenterValue=Enter Value\nentityRelation=Entity Relation\nentityRelationshipDiagram=Entity Relationship Diagram\nerror=Error\nerrorDeletingFile=Error deleting file\nerrorLoadingFile=Error loading file\nerrorRenamingFile=Error renaming file\nerrorRenamingFileNotFound=Error renaming file. File was not found.\nerrorRenamingFileForbidden=Error renaming file. Insufficient access rights.\nerrorSavingDraft=Error saving draft\nerrorSavingFile=Error saving file\nerrorSavingFileUnknown=Error authorizing with Google\'s servers. Please refresh the page to re-attempt.\nerrorSavingFileForbidden=Error saving file. Insufficient access rights.\nerrorSavingFileNameConflict=Could not save diagram. Current page already contains file named \'{1}\'.\nerrorSavingFileNotFound=Error saving file. File was not found.\nerrorSavingFileReadOnlyMode=Could not save diagram while read-only mode is active.\nerrorSavingFileSessionTimeout=Your session has ended. Please <a target=\'_blank\' href=\'{1}\'>{2}</a> and return to this tab to try to save again.\nerrorSendingFeedback=Error sending feedback.\nerrorUpdatingPreview=Error updating preview.\nexit=Exit\nexitGroup=Exit Group\nexpand=Expand\nexpandAll=Expand All\nexplore=Explore\nexport=Export\nexporting=Exporting\nexportAs=Export as\nexportOptionsDisabled=Export options disabled\nexportOptionsDisabledDetails=The owner has disabled options to download, print or copy for commenters and viewers on this file.\nexternalChanges=External Changes\nextras=Extras\nfailedToSaveTryReconnect=Failed to save, trying to reconnect\nfeatureRequest=Feature Request\nfeedback=Feedback\nfeedbackSent=Feedback successfully sent.\nfloorplans=Floorplans\nfile=File\nfileChangedOverwriteDialog=The file has been modified. Do you want to save the file and overwrite those changes?\nfileChangedSyncDialog=The file has been modified.\nfileChangedSync=The file has been modified. Click here to synchronize.\noverwrite=Overwrite\nsynchronize=Synchronize\nfilename=Filename\nfileExists=File already exists\nfileMovedToTrash=File was moved to trash\nfileNearlyFullSeeFaq=File nearly full, please see FAQ\nfileNotFound=File not found\nrepositoryNotFound=Repository not found\nfileNotFoundOrDenied=The file was not found. It does not exist or you do not have access.\nfileNotLoaded=File not loaded\nfileNotSaved=File not saved\nfileOpenLocation=How would you like to open these file(s)?\nfiletypeHtml=.html causes file to save as HTML with redirect to cloud URL\nfiletypePng=.png causes file to save as PNG with embedded data\nfiletypeSvg=.svg causes file to save as SVG with embedded data\nfileWillBeSavedInAppFolder={1} will be saved in the app folder.\nfill=Fill\nfillColor=Fill Color\nfilterCards=Filter Cards\nfind=Find\nfindInDiagram=Find in Diagram\nfit=Fit\nfitContainer=Resize Container\nfitIntoContainer=Fit into Container\nfitPage=Fit Page\nfitPageWidth=Fit Page Width\nfitTextToShape=Fit Text to Shape\nfitTo=Fit to\nfitToSheetsAcross=sheet(s) across\nfitToBy=by\nfitToSheetsDown=sheet(s) down\nfitTwoPages=Two Pages\nfitWindow=Fit Window\nflip=Flip\nflipH=Flip Horizontal\nflipV=Flip Vertical\nflowAnimation=Flow Animation\nflowchart=Flowchart\nfolder=Folder\nfont=Font\nfontColor=Font Color\nfontFamily=Font Family\nfontSize=Font Size\nforbidden=You are not authorized to access this file\nforceDirected=Force-directed\nformat=Format\nformatAnimatedGif=Animated GIF\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatJson=JSON\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatVsdx=VSDX\nformatWebp=WebP\nformatXml=XML\nforum=Discussion/Help Forums\nfreehand=Freehand\nfromTemplate=From Template\nfromTemplateUrl=From Template URL\nfromText=From Text\nfromUrl=From URL\nfromThisPage=From this page\nfullscreen=Fullscreen\ngap=Gap\ngcp=GCP\ngDriveAppFilesOnly=Only files created or opened with draw.io in Google Drive are listed. To add another file, open it once at app.diagrams.net.\ngeneral=General\ngetNotionChromeExtension=Get the Notion Chrome Extension\ngithub=GitHub\ngitlab=GitLab\ngliffy=Gliffy\nglobal=Global\ngoogleDocs=Google Docs\ngoogleDrive=Google Drive\ngoogleGadget=Google Gadget\ngoogleSharingNotAvailable=Sharing is only available via Google Drive. Please click Open below and share from the more actions menu:\ngoogleSlides=Google Slides\ngoogleSites=Google Sites\ngoogleSheets=Google Sheets\ngradient=Gradient\ngradientColor=Color\ngrid=Grid\ngridColor=Grid Color\ngridSize=Grid Size\ngroup=Group\ngroupPadding=Group Padding\nguides=Guides\nheading=Heading\nheight=Height\nhelp=Help\nhelpTranslate=Help us translate this application\nhide=Hide\nhideIt=Hide {1}\nhidden=Hidden\nshiftClickShowOnly=Shift+click: show only {1}\nhighContrast=High Contrast\nhome=Home\nhorizontal=Horizontal\nhorizontalFlow=Horizontal Flow\nhorizontalTree=Horizontal Tree\nhowTranslate=How good is the translation in your language?\nhtml=HTML\nhtmlText=HTML Text\nicons=Icons\nid=ID\niframe=IFrame\nignore=Ignore\nimage=Image\nimageClicked=Image copied to clipboard\nimageUrl=Image URL\nimages=Images\nimagePreviewError=This image couldn\'t be loaded for preview. Please check the URL.\nimageTooBig=Image too big\nimgur=Imgur\nimmediate=Immediate\nimport=Import\nimportFrom=Import from\nincludeCopyOfMyDiagram=Include a copy of my diagram\nincreaseIndent=Increase Indent\ndecreaseIndent=Decrease Indent\ninherit=Inherit\ninitialPage=Initial Page\ninitialView=Initial View\ninsert=Insert\ninsertColumnBefore=Insert Column Left\ninsertColumnAfter=Insert Column Right\ninsertDiagramFromClipboard=Insert Diagram from Clipboard\ninsertEllipse=Insert Ellipse\ninsertImage=Insert Image\ninsertHorizontalRule=Insert Horizontal Rule\ninsertLink=Insert Link\ninsertPage=Insert Page\ninsertRectangle=Insert Rectangle\ninsertRhombus=Insert Rhombus\ninsertRowBefore=Insert Row Above\ninsertRowAfter=Insert Row After\ninsertText=Insert Text\ninserting=Inserting\ninstallApp=Install App\ninvalidFilename=Diagram names must not contain the following characters: / | : ; { } < > & + ? = "\ninvalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://www.drawio.com/doc/faq/license-drawio-confluence-jira-cloud">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\ninvertSelection=Invert Selection\nisometric=Isometric\nios=iOS\nitalic=Italic\nkennedy=Kennedy\nkeyboardShortcuts=Keyboard Shortcuts\nlabels=Labels\nlabelPadding=Label Padding\nlabelWidth=Label Width\nlayers=Layers\nlandscape=Landscape\nlanguage=Language\nleanMapping=Lean Mapping\nlastChange=Last change {1} ago\nlessThanAMinute=less than a minute\nlibavoidAutoRoute=Auto-route around shapes\nlibavoidUnavailable=Orthogonal routing is not available in this browser.\nlicensingError=Licensing Error\nlicenseHasExpired=The license for {1} has expired on {2}. Click here.\nlicenseRequired=This feature requires draw.io to be licensed.\nlicenseWillExpire=The license for {1} will expire on {2}. Click here.\nlight=Light\nlineJumps=Line Jumps\nlinkAccountRequired=If the diagram is not public a Google account is required to view the link.\nlinkIcons=Link Icons\nlinkText=Link Text\ntooltipIcons=Tooltip Icons\nlist=List\nminute=minute\nminutes=minutes\nhours=hours\ndays=days\nmonths=months\nyears=years\nrestartForChangeRequired=Changes will take effect after a restart of the application.\nlaneColor=Lanecolor\nlanguageCode=Language Code\nlastModified=Last modified\nlayout=Layout\nleft=Left\nleftAlign=Left Align\nleftToRight=Left to Right\nlibraryTooltip=Drag and drop shapes here or click + to insert. Double click to edit.\nlightbox=Lightbox\nlightboxAnimationHint=Plays automatically when the page is shown in lightbox mode.\nline=Line\nlineend=Line End\nlineheight=Line Height\nlinestart=Line Start\nlinewidth=Linewidth\nlink=Link\nlinks=Links\nloading=Loading\nlock=Lock\nlocked=Locked\nlockUnlock=Lock/Unlock\nloggedOut=Logged Out\nlogIn=log in\nloop=Loop\nlucidchart=Lucidchart\nmaps=Maps\nmathematicalTypesetting=Mathematical Typesetting\nmakeCopy=Make a Copy\nmanual=Manual\nmaximize=Maximize\nmerge=Merge\nmermaid=Mermaid\nmethod=Method\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nminimize=Minimize\nmisc=Misc\nmockups=Mockups\nmodern=Modern\nmodificationDate=Modification date\nmodifiedBy=Modified by\nmore=More\nmoreResults=More Results\nmoreShapes=More Shapes\nmove=Move\nmoveToFolder=Move to Folder\nmoving=Moving\nmoveSelectionTo=Move Selection to {1}\nmultipleValues=Multiple values\nmyDrive=My Drive\nmyFiles=My Files\nname=Name\nnavigation=Navigation\nnetwork=Network\nnetworking=Networking\nnew=New\nnewChat=New Chat\nnewLibrary=New Library\nnextPage=Next Page\nno=No\nnoPickFolder=No, pick folder\nnoAttachments=No attachments found\nnoColor=No Color\nnoFiles=No Files\nnoFileSelected=No file selected\nnoAnimationsInDiagram=No animations found in diagram\nnoLibraries=No libraries found\nnoMoreResults=No more results\nnone=None\nnoOtherViewers=No other viewers\nnoPlugins=No plugins\nnoPreview=No preview\nnoResponse=No response from server\nnoResultsFor=No results for \'{1}\'\nnoRevisions=No revisions\nnoSearchResults=No search results found\nnoStepsYet=No steps yet. Add the first step below.\nnoPageContentOrNotSaved=No anchors found on this page or it hasn\'t been saved yet\nnormal=Normal\nnorth=North\nnotADiagramFile=Not a diagram file\nnotALibraryFile=Not a library file\nnotAvailable=Not available\nnotAUtf8File=Not a UTF-8 file\nnotConnected=Not connected\nnote=Note\nnotes=Notes\nnotion=Notion\nnotSatisfiedWithImport=Not satisfied with the import?\nnotUsingService=Not using {1}?\nnumberedList=Numbered List\noffline=Offline\naddToLibrary=Add to Library\nanimation=Animation\nbool=Boolean\ncannotMoveOneDrive=Moving a file between accounts is not supported yet.\ncode=Code\ncolor=Color\ndispName=Display Name\nenum=Enumeration\nenumList=Enum List\nfast=Fast\nfloat=Float\nforever=Forever\nint=Int\ninvalid=invalid\nloops=Loops\nmedium=Medium\nslow=Slow\nspeed=Speed\nstring=String\nmanage=Manage\nofflineLanguages=Languages available offline\nok=OK\noneDrive=OneDrive\nonline=Online\nopacity=Opacity\nopen=Open\nopenArrow=Open Arrow\nopenExistingDiagram=Open Existing Diagram\nopenFile=Open File\nopenFrom=Open from\nopenLibrary=Open Library\nopenLibraryFrom=Open Library from\nopenLink=Open Link\nopenInNewWindow=Open in New Window\nopenInThisWindow=Open in This Window\nopenIt=Open {1}\nopenRecent=Open Recent\nopenRepairedCopy=Open repaired copy\nopenSupported=Supported formats are files saved from this software (.xml), .vsdx and .gliffy\noptions=Options\norganic=Organic\norgChart=Org Chart\northogonal=Orthogonal\northogonalRouting=Orthogonal Routing\notherViewer=other viewer\notherViewers=other viewers\noutline=Outline\noval=Oval\npage=Page\npageContent=Page Content\npageNotFound=Page not found\npageWithNumber=Page-{1}\npages=Pages\npageTabs=Page Tabs\npageView=Page View\npageSetup=Page Setup\npageScale=Page Scale\npan=Pan\npanTooltip=Space+Drag to pan\npaperSize=Paper Size\npattern=Pattern\nparallels=Parallels\npaste=Paste\npasteData=Paste Data\npasteHere=Paste Here\npasteResponse=Paste Response\npasteSize=Paste Size\npasteStyle=Paste Style\npasteTextStyle=Paste Text Style\nperimeter=Perimeter\npermissionAnyone=Anyone can edit\npermissionAuthor=Owner and admins can edit\npickFolder=Pick a folder\npickLibraryDialogTitle=Select Library\npublicDiagramUrl=Public URL of the diagram\nplaceholders=Placeholders\nplantUml=PlantUML\nplugins=Plugins\npluginUrl=Plugin URL\npluginWarning=The page has requested to load the following plugin(s):\n \n {1}\n \n Would you like to load these plugin(s) now?\n \n NOTE : Only allow plugins to run if you fully understand the security implications of doing so.\n\nplusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone).\npolygon=Polygon\nportrait=Portrait\npoint=Point\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\npresentationMode=Presentation Mode\nprint=Print\nprocEng=Process Engineering\nproject=Project\npriority=Priority\nprocessForHiringNewEmployee=Process for hiring a new employee\npromptOnly=Prompt Only\npromptTooLarge=Only {1} characters allowed in the free version using the draw.io model\npromptWithDiagram=Prompt with Diagram\npromptWithSelection=Prompt with Selection\nproperties=Properties\npublish=Publish\nquickStart=Quick Start Video\nrack=Rack\nradial=Radial\nradialTree=Radial Tree\nreadOnly=Read-only\nreconnecting=Reconnecting\nrecentlyUpdated=Recently Updated\nrecentlyViewed=Recently Viewed\nrectangle=Rectangle\nredirectToNewApp=This file was created or modified in a newer version of this app. You will be redirected now.\nrealtimeTimeout=It looks like you\'ve made a few changes while offline. We\'re sorry, these changes cannot be saved.\nredo=Redo\nrefresh=Refresh\nregularExpression=Regular Expression\nrelative=Relative\nrelativeUrlNotAllowed=Relative URL not allowed\nretry=Retry\nrememberMe=Remember Me\nrememberThisSetting=Remember This Setting\nremoveFormat=Clear Formatting\nremoveFromGroup=Remove from Group\nremoveIt=Remove {1}\nremoveWaypoint=Remove Waypoint\nrename=Rename\nrenamed=Renamed\nrenameIt=Rename {1}\nrenaming=Renaming\nreplace=Replace\nreplaceIt={1} already exists. Do you want to replace it?\nreplaceExistingDrawing=Replace Existing Drawing\nrequired=required\nrequirementDiagram=Requirement Diagram\nresetView=Reset View\nresize=Resize\nresizeLargeImages=Do you want to resize large images to make the application run faster?\nretina=Retina\nresponsive=Responsive\nrestore=Restore\nrestoreBackupCopy=Open backup as copy\nrecover=Recover…\nrecoverTitle=Recover file\nrecoverVersionFrom=Version from {1}\nrecoverPreviousVersion=Previous version\nrecoveryVersionDesc=A previously saved version. Complete, but any changes made since then are not included.\nrecoveryRepairedDesc=The current file with a best-effort repair. Recent, but content after the damaged point may be missing.\nrecoveryWarning=This is a best-effort recovery and may be missing content. It will open as a new unsaved copy and your original file is not changed. Continue?\nrestoring=Restoring\nretryingIn=Retrying in {1} second(s)\nretryingLoad=Load failed. Retrying...\nretryingLogin=Login time out. Retrying...\nreverse=Reverse\nrevision=Revision\nrevisionHistory=Revision History\nrhombus=Rhombus\nright=Right\nrightAlign=Right Align\nrightToLeft=Right to Left\nrotate=Rotate\nrotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees\nrotation=Rotation\nrounded=Rounded\nrunLastLayout=Run Last Layout\nsave=Save\nsaveAndExit=Save & Exit\nsaveAs=Save as\nsaveAsXmlFile=Save as XML file?\nsaved=Saved\nsaveDiagramFirst=Please save the diagram first\nsaveDiagramsTo=Save diagrams to\nsaveLibrary403=Insufficient permissions to edit this library\nsaveLibrary500=There was an error while saving the library\nsaveLibraryReadOnly=Could not save library while read-only mode is active\nsaving=Saving\nscratchpad=Scratchpad\nscrollbars=Scrollbars\nsearch=Search\nsearchImages=Search Images\nsearchShapes=Search Shapes\nsearchShapesInOpenLibraries=Search Shapes in Open Libraries\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectedPage=Selected Page\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselection=Selection\nselectNone=Select None\nselectObjectsInLayer=Select Objects in Layer\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nsequenceDiagram=Sequence Diagram\nserviceUnavailableOrBlocked=Service unavailable or blocked\nsessionExpired=Your session has expired. Please refresh the browser window.\nsessionTimeoutOnSave=Your session has timed out and you have been disconnected from the Google Drive. Press OK to login and save.\nsetAsDefaultStyle=Set as Default Style\nsettings=Settings\nshadow=Shadow\nshadows=Shadows\nshape=Shape\nshapeDeleted=Shape deleted\nshapes=Shapes\nshare=Share\nshareCursor=Share Mouse Cursor\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsaveItToGoogleDriveToCollaborate=You\'ll need to save "{1}" to Google Drive before you can collaborate.\nsaveToGoogleDrive=Save to Google Drive\nsharp=Sharp\nshow=Show\nshowRemoteCursors=Show Remote Mouse Cursors\nsidebarTooltip=Click or drag and drop shapes. Shift+click to change selection. Alt+click to insert and connect.\nsigns=Signs\nsignOut=Sign out\nsimple=Simple\nsimpleArrow=Simple Arrow\nsimpleViewer=Simple Viewer\nsize=Size\nsketch=Sketch\nsmoothing=Smoothing\nsnapToGrid=Snap to Grid\nsolid=Solid\nsortPages=Sort Pages\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstateDiagram=State Diagram\nstandard=Standard\nstartDrawing=Start Drawing\nstopDrawing=Stop Drawing\nstarting=Starting\nstraight=Straight\nstrikethrough=Strikethrough\nstrokeColor=Line Color\nstress=Stress\nstyle=Style\nsubscript=Subscript\nsummary=Summary\nsuperscript=Superscript\nsupport=Support\nswap=Swap\nswimlaneDiagram=Swimlane Diagram\nsysml=SysML\ntags=Tags\ntable=Table\ntables=Tables\ntakeOver=Take Over\ntargetSpacing=Target Spacing\ntemplate=Template\ntemplates=Templates\ntext=Text\ntextAlignment=Text Alignment\ntextOpacity=Text Opacity\ntheme=Theme\ntimeout=Timeout\ntitle=Title\nto=to\ntoBack=To Back\ntoFront=To Front\ntooLargeUseDownload=Too large, use download instead.\ntoolbar=Toolbar\ntooltips=Tooltips\ntop=Top\ntopAlign=Top Align\ntopLeft=Top Left\ntopRight=Top Right\ntransparent=Transparent\ntransparentBackground=Transparent Background\ntrello=Trello\ntryAgain=Try again\ntryOpeningViaThisPage=Try opening via this page, then click "Open with draw.io" button in the top right corner.\nturn=Rotate Shape Only by 90°\ntype=Type\ntypeSlashToSearch=Type / to search\numl=UML\nunassigned=Unassigned\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunlock=Unlock\nunmerge=Unmerge\nunsavedChanges=Unsaved changes\nunsavedChangesClickHereToSave=Unsaved changes. Click here to save.\nuntitled=Untitled\nuntitledDiagram=Untitled Diagram\nuntitledLayer=Untitled Layer\nuntitledLibrary=Untitled Library\nunknownError=Unknown error\nunknownUser=Unknown user\nupdateDiagramFromClipboard=Update diagram from clipboard\nupdateExistingDrawing=Update existing drawing\nupdateFile=Update {1}\nupdatingDocument=Updating document. Please wait...\nupdatingPreview=Updating preview. Please wait...\nupdatingSelection=Updating selection. Please wait...\nupload=Upload\nurl=URL\nuseBlackAndWhite=Use Black and White\nuseCurrent=Use Current\nuseCurrentSettings=Use Current Settings\nuseOffline=Use Offline\nuserDefined=User-defined\nuseRootFolder=Use root folder?\nuserManual=User Manual\nvertical=Vertical\nverticalFlow=Vertical Flow\nverticalTree=Vertical Tree\nview=View\nviewerSettings=Viewer Settings\nviewUrl=Link to view: {1}\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwhere=Where\nwidth=Width\nwiki=Wiki\nwordWrap=Word Wrap\nwritingDirection=Writing Direction\nyes=Yes\nyourEmailAddress=Your email address\nzoom=Zoom\nzoomIn=Zoom In\nzoomOut=Zoom Out\nbusinessprocess=Business Processes\ncharts=Charts\nengineering=Engineering\nflowcharts=Flowcharts\ngmdl=Material Design\nmindmaps=Mindmaps\nnetworkdiagrams=Network Diagrams\nnothingIsSelected=Nothing is selected\nother=Other\nsoftwaredesign=Software Design\nvenndiagrams=Venn Diagrams\nwebEmailOrOther=Web, email or any other internet address\nwebLink=Web Link\nwireframes=Wireframes\nproperty=Property\nvalue=Value\nshowMore=Show More\nshowLess=Show Less\nmyDiagrams=My Diagrams\nallDiagrams=All Diagrams\nrecentlyUsed=Recently Used\nlistView=List View\ngridView=Grid View\nresultsFor=Results for \'{1}\'\noneDriveCharsNotAllowed=The following characters are not allowed: ~ " # % * : < > ? / { | }\noneDriveInvalidDeviceName=The specified device name is invalid\nofficeNotLoggedOD=You are not logged in to OneDrive. Please open draw.io task pane and login first.\nofficeSelectSingleDiag=Please select a single draw.io diagram only without other contents.\nofficeSelectDiag=Please select a draw.io diagram.\nofficeCannotFindDiagram=Cannot find a draw.io diagram in the selection\nnoDiagrams=No diagrams found\nauthFailed=Authentication failed\nofficeFailedAuthMsg=Unable to successfully authenticate user or authorize application.\nconvertingDiagramFailed=Converting diagram failed\nofficeCopyImgErrMsg=Due to some limitations in the host application, the image could not be inserted. Please manually copy the image then paste it to the document.\ninsertingImageFailed=Inserting image failed\nofficeCopyImgInst=Instructions: Right-click the image below. Select "Copy image" from the context menu. Then, in the document, right-click and select "Paste" from the context menu.\nfolderEmpty=Folder is empty\nrecent=Recent\nsharedWithMe=Shared With Me\nsharepointSites=Sharepoint Sites\nerrorFetchingFolder=Error fetching folder items\nerrorAuthOD=Error authenticating to OneDrive\nofficeMainHeader=Adds draw.io diagrams to your document.\nofficeStepsHeader=This add-in performs the following steps:\nofficeStep1=Connects to Microsoft OneDrive, Google Drive or your device.\nofficeStep2=Select a draw.io diagram.\nofficeStep3=Insert the diagram into the document.\nofficeAuthPopupInfo=Please complete the authentication in the pop-up window.\nofficeSelDiag=Select draw.io Diagram:\nfiles=Files\nshared=Shared\nsharepoint=Sharepoint\nofficeManualUpdateInst=Instructions: Copy draw.io diagram from the document. Then, in the box below, right-click and select "Paste" from the context menu.\nofficeClickToEdit=Click icon to start editing:\npasteDiagram=Paste draw.io diagram here\nconnectOD=Connect to OneDrive\nselectChildren=Select Children\nselectSiblings=Select Siblings\nselectParent=Select Parent\nselectDescendants=Select Descendants\nlastSaved=Last saved {1} ago\nresolve=Resolve\nreopen=Re-open\nshowResolved=Show Resolved\nreply=Reply\nobjectNotFound=Object not found\nreOpened=Re-opened\nmarkedAsResolved=Marked as resolved\nnoCommentsFound=No comments found\nmentionNoNotify=People you mention are not notified\ncomments=Comments\ntimeAgo={1} ago\nconfluenceCloud=Confluence Cloud\nlibraries=Libraries\nconfAnchor=Confluence Page Anchor\nconfTimeout=The connection has timed out\nconfSrvTakeTooLong=The server at {1} is taking too long to respond.\nconfCannotInsertNew=Cannot insert draw.io diagram to a new Confluence page\nconfSaveTry=Please save the page and try again.\nconfCannotGetID=Unable to determine page ID\nconfContactAdmin=Please contact your Confluence administrator.\nreadErr=Read Error\neditingErr=Editing Error\nconfExtEditNotPossible=This diagram cannot be edited externally. Please try editing it while editing the page\nconfEditedExt=Diagram/Page edited externally\ndiagNotFound=Diagram Not Found\nconfEditedExtRefresh=Diagram/Page is edited externally. Please refresh the page.\nconfCannotEditDraftDelOrExt=Cannot edit diagrams in a draft page, diagram is deleted from the page, or diagram is edited externally. Please check the page.\nretBack=Return back\nconfDiagNotPublished=The diagram does not belong to a published page\ncreatedByDraw=Created by draw.io\nfilenameShort=Filename too short\ninvalidChars=Invalid characters\nalreadyExst={1} already exists\ndraftReadErr=Draft read error\ndiagCantLoad=Diagram cannot be loaded\ndraftWriteErr=Draft write error\ndraftCantCreate=Draft could not be created\nconfDuplName=Duplicate diagram name detected. Please pick another name.\nconfSessionExpired=Looks like your session expired. Log in again to keep working.\nlogin=Login\ndrawPrev=draw.io preview\ndrawDiag=draw.io diagram\ninvalidCallFnNotFound=Invalid Call: {1} not found\ninvalidCallErrOccured=Invalid Call: An error occurred, {1}\nanonymous=Anonymous\nconfGotoPage=Go to containing page\nshowComments=Show Comments\nconfError=Error: {1}\ngliffyImport=Gliffy Import\ngliffyImportInst1=Click the "Start Import" button to import all Gliffy diagrams to draw.io.\ngliffyImportInst2=Please note that the import procedure will take some time and the browser window must remain open until the import is completed.\nstartImport=Start Import\ndrawConfig=draw.io Configuration\ncustomLib=Custom Libraries\ncustomTemp=Custom Templates\npageIdsExp=Page IDs Export\ndrawReindex=draw.io re-indexing\nworking=Working\ndrawConfigNotFoundInst=draw.io Configuration Space (DRAWIOCONFIG) does not exist. This space is needed to store draw.io configuration files and custom libraries/templates.\ncreateConfSp=Create Config Space\nunexpErrRefresh=Unexpected error, please refresh the page and try again.\nconfigJSONInst=Write draw.io JSON configuration in the editor below then click save. If you need help, please refer to\nthisPage=this page\ncurCustLib=Current Custom Libraries\nlibName=Library Name\ndrawConfID=draw.io Config ID\naddLibInst=Click the "Add Library" button to upload a new library.\naddLib=Add Library\ncustomTempInst1=Custom templates are draw.io diagrams saved in children pages of\ncustomTempInst2=For more details, please refer to\ntempsPage=Templates page\npageIdsExpInst1=Select export target, then click the "Start Export" button to export all pages IDs.\npageIdsExpInst2=Please note that the export procedure will take some time and the browser window must remain open until the export is completed.\nstartExp=Start Export\nrefreshDrawIndex=Refresh draw.io Diagrams Index\nreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.\nreindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.\nstartIndexing=Start Indexing\nconfAPageFoundFetch=Page "{1}" found. Fetching\nconfAAllDiagDone=All {1} diagrams processed. Process finished.\nconfAStartedProcessing=Started processing page "{1}"\nconfAAllDiagInPageDone=All {1} diagrams in page "{2}" processed successfully.\nconfAPartialDiagDone={1} out of {2} {3} diagrams in page "{4}" processed successfully.\nconfAUpdatePageFailed=Updating page "{1}" failed.\nconfANoDiagFoundInPage=No {1} diagrams found in page "{2}".\nconfAFetchPageFailed=Fetching the page failed.\nconfANoDiagFound=No {1} diagrams found. Process finished.\nconfASearchFailed=Searching for {1} diagrams failed. Please try again later.\nconfAGliffyDiagFound={2} diagram "{1}" found. Importing\nconfAGliffyDiagImported={2} diagram "{1}" imported successfully.\nconfASavingImpGliffyFailed=Saving imported {2} diagram "{1}" failed.\nconfAImportedFromByDraw=Imported from "{1}" by draw.io\nconfAImportGliffyFailed=Importing {2} diagram "{1}" failed.\nconfAFetchGliffyFailed=Fetching {2} diagram "{1}" failed.\nconfACheckBrokenDiagLnk=Checking for broken diagrams links.\nconfADelDiagLinkOf=Deleting diagram link of "{1}"\nconfADupLnk=(duplicate link)\nconfADelDiagLnkFailed=Deleting diagram link of "{1}" failed.\nconfAUnexpErrProcessPage=Unexpected error during processing the page with id: {1}\nconfADiagFoundIndex=Diagram "{1}" found. Indexing\nconfADiagIndexSucc=Diagram "{1}" indexed successfully.\nconfAIndexDiagFailed=Indexing diagram "{1}" failed.\nconfASkipDiagOtherPage=Skipped "{1}" as it belongs to another page!\nconfADiagUptoDate=Diagram "{1}" is up to date.\nconfACheckPagesWDraw=Checking pages having draw.io diagrams.\nconfAErrOccured=An error occurred!\nsavedSucc=Saved successfully\nconfASaveFailedErr=Saving failed (unexpected error)\ncharacter=Character\nconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachment\nconfALibPageDesc=This page contains draw.io custom libraries as attachments\nconfATempPageDesc=This page contains draw.io custom templates as attachments\nconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templates\nconfANoCustLib=No Custom Libraries\ndelFailed=Delete failed!\nshowID=Show ID\nconfAIncorrectLibFileType=Incorrect file type. Libraries should be XML files.\nuploading=Uploading\nconfALibExist=This library already exists\nconfAUploadSucc=Uploaded successfully\nconfAUploadFailErr=Upload failed (unexpected error)\nhiResPreview=High Resolution Preview\nofficeNotLoggedGD=You are not logged in to Google Drive. Please open draw.io task pane and login first.\nofficePopupInfo=Please complete the process in the pop-up window.\npickODFile=Pick OneDrive File\ncreateODFile=Create OneDrive File\npickGDriveFile=Pick Google Drive File\ncreateGDriveFile=Create Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\ntryVssDraw=Try importing the file at {1}\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nminTwoPoints=At least 2 points required\nconfEditDraftDelOrExt=This diagram is in a draft page, is deleted from the page, or is edited externally. It will be saved as a new attachment version and may not be reflected in the page.\nconfDiagEditedExt=Diagram is edited in another session. It will be saved as a new attachment version but the page will show other session\'s modifications.\nmacroNotFound=Macro Not Found\nconfAInvalidPageIdsFormat=Incorrect Page IDs file format\nconfACollectingCurPages=Collecting current pages\nconfABuildingPagesMap=Building pages mapping\nconfAProcessDrawDiag=Started processing imported draw.io diagrams\nconfAProcessDrawDiagDone=Finished processing imported draw.io diagrams\nconfAProcessImpPages=Started processing imported pages\nconfAErrPrcsDiagInPage=Error processing draw.io diagrams in page "{1}"\nconfAPrcsDiagInPage=Processing draw.io diagrams in page "{1}"\nconfAImpDiagram=Importing diagram "{1}"\nconfAImpDiagramFailed=Importing diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\nconfAImpDiagramError=Error importing diagram "{1}". Cannot fetch or save the diagram. Cannot fix this diagram links.\nconfAUpdateDgrmCCFailed=Updating link to diagram "{1}" failed.\nconfImpDiagramSuccess=Updating diagram "{1}" done successfully.\nconfANoLnksInDrgm=No links to update in: {1}\nconfAUpdateLnkToPg=Updated link to page: "{1}" in diagram: "{2}"\nconfAUpdateLBLnkToPg=Updated lightbox link to page: "{1}" in diagram: "{2}"\nconfAUpdateLnkBase=Updated base URL from: "{1}" to: "{2}" in diagram: "{3}"\nconfAPageIdsImpDone=Page IDs import finished\nconfAPrcsMacrosInPage=Processing draw.io macros in page "{1}"\nconfAErrFetchPage=Error fetching page "{1}"\nconfAFixingMacro=Fixing macro of diagram "{1}"\nconfAErrReadingExpFile=Error reading export file\nconfAPrcsDiagInPageDone=Processing draw.io diagrams in page "{1}" finished\nconfAFixingMacroSkipped=Fixing macro of diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\npageIdsExpTrg=Export target\nconfALucidDiagImgImported={2} diagram "{1}" image extracted successfully\nconfASavingLucidDiagImgFailed=Extracting {2} diagram "{1}" image failed\nconfGetInfoFailed=Fetching file info from {1} failed.\nconfCheckCacheFailed=Cannot get cached file info.\nconfReadFileErr=Cannot read "{1}" file from {2}.\nconfSaveCacheFailed=Unexpected error. Cannot save cached file\norgChartType=Org Chart Type\nlinear=Linear\nhanger2=Hanger 2\nhanger4=Hanger 4\nfishbone1=Fishbone 1\nfishbone2=Fishbone 2\n1ColumnLeft=Single Column Left\n1ColumnRight=Single Column Right\nsmart=Smart\nparentChildSpacing=Parent Child Spacing\nsiblingSpacing=Sibling Spacing\nconfNoPermErr=Sorry, you don\'t have enough permissions to view this embedded diagram from page {1}\ncopyAsImage=Copy as Image\ncopyAsText=Copy as Text\ncopyAsSvg=Copy as SVG\nlucidImport=Lucidchart Import\nlucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.\ninstallFirst=Please install {1} first\ndrawioChromeExt=draw.io Chrome Extension\nloginFirstThen=Please login to {1} first, then {2}\nerrFetchDocList=Error: Couldn\'t fetch documents list\nbuiltinPlugins=Built-in Plugins\nextPlugins=External Plugins\nbackupFound=Backup file found\nchromeOnly=This feature only works in Google Chrome\nmsgDeleted=This message has been deleted\nconfAErrFetchDrawList=Error fetching diagrams list. Some diagrams are skipped.\nconfAErrCheckDrawDiag=Cannot check diagram {1}\nconfAErrFetchPageList=Error fetching pages list\nconfADiagImportIncom={1} diagram "{2}" is imported partially and may have missing shapes\ninvalidSel=Invalid selection\ndiagNameEmptyErr=Diagram name cannot be empty\nopenDiagram=Open Diagram\nnewDiagram=New diagram\neditable=Editable\nconfAReimportStarted=Re-import {1} diagrams started...\nspaceFilter=Filter by Spaces\ncurViewState=Current Viewer State\npageLayers=Page and Layers\ncustomize=Customize\nfirstPage=First Page (All Layers)\ncurEditorState=Current Editor State\nnoAnchorsFound=No anchors found\nattachment=Attachment\ncurDiagram=Current Diagram\nrecentDiags=Recent Diagrams\ncsvImport=CSV Import\nchooseFile=Choose a File...\nchoose=Choose\ngdriveFname=Google Drive filename\nwidthOfViewer=Width of the Viewer (px)\nheightOfViewer=Height of the Viewer (px)\nautoSetViewerSize=Automatically set the size of the viewer\nthumbnail=Thumbnail\nprevInDraw=Preview in draw.io\nonedriveFname=OneDrive filename\ndiagFname=Diagram filename\ndiagUrl=Diagram URL\nshowDiag=Show Diagram\ndiagPreview=Diagram Preview\ncsvFileUrl=CSV File URL\ngenerate=Generate\nselectDiag2Insert=Please select a diagram to insert it.\nerrShowingDiag=Unexpected error. Cannot show diagram\nnoRecentDiags=No recent diagrams found\nfetchingRecentFailed=Failed to fetch recent diagrams\nuseSrch2FindDiags=Use the search box to find draw.io diagrams\ncantReadChckPerms=Cannot read the specified diagram. Please check you have read permission on that file.\ncantFetchChckPerms=Cannot fetch diagram info. Please check you have read permission on that file.\nsearchFailed=Searching failed. Please try again later.\nplsTypeStr=Please type a search string.\nunsupportedFileChckUrl=Unsupported file. Please check the specified URL\ndiagNotFoundChckUrl=Diagram not found or cannot be accessed. Please check the specified URL\ncsvNotFoundChckUrl=CSV file not found or cannot be accessed. Please check the specified URL\ncantReadUpload=Cannot read the uploaded diagram\nselect=Select\nerrCantGetIdType=Unexpected Error: Cannot get content id or type.\nerrGAuthWinBlocked=Error: Google Authentication window blocked\nauthDrawAccess=Authorize draw.io to access {1}\nconnTimeout=The connection has timed out\nerrAuthSrvc=Error authenticating to {1}\nplsSelectFile=Please select a file\nmustBgtZ={1} must be greater than zero\ncantLoadPrev=Cannot load file preview.\nerrAccessFile=Error: Access Denied. You do not have permission to access "{1}".\nnoPrevAvail=No preview is available.\npersonalAccNotSup=Personal accounts are not supported.\nerrSavingTryLater=Error occurred during saving, please try again later.\nplsEnterFld=Please enter {1}\ninvalidDiagUrl=Invalid Diagram URL\nunsupportedVsdx=Unsupported vsdx file\nunsupportedImg=Unsupported image file\nunsupportedFormat=Unsupported file format\nplsSelectSingleFile=Please select a single file only\nattCorrupt=Attachment file "{1}" is corrupted\nloadAttFailed=Failed to load attachment "{1}"\nembedDrawDiag=Embed draw.io Diagram\naddDiagram=Add Diagram\nembedDiagram=Embed Diagram\neditOwningPg=Edit Owning Page\ndeepIndexing=Deep Indexing (including diagrams that aren\'t used in any page)\nconfADeepIndexStarted=Deep indexing started\nconfADeepIndexDone=Deep indexing done\nofficeNoDiagramsSelected=No diagrams found in the selection\nofficeNoDiagramsInDoc=No diagrams found in the document\nofficeNotSupported=This feature is not supported in this host application\nsomeImagesFailed={1} out of {2} failed due to the following errors\nimportingNoUsedDiagrams=Importing {1} Diagrams not used in pages\nimportingDrafts=Importing {1} Diagrams in drafts\nprocessingDrafts=Processing drafts\nupdatingDrafts=Updating drafts\nupdateDrafts=Update drafts\nnotifications=Notifications\ndrawioImp=draw.io Import\nconfALibsImp=Importing draw.io Libraries\nconfALibsImpFailed=Importing {1} library failed\ncontributors=Contributors\ndrawDiagrams=draw.io Diagrams\nerrFileNotFoundOrNoPer=Error: Access Denied. File not found or you do not have permission to access "{1}" on {2}.\nconfACheckPagesWEmbed=Checking pages having embedded draw.io diagrams.\nconfADelBrokenEmbedDiagLnk=Removing broken embedded diagram links\nreplaceWith=Replace with\nreplaceAll=Replace All\nconfASkipDiagModified=Skipped "{1}" as it was modified after initial import\nreplFind=Replace/Find\nmatchesRepl={1} matches replaced\ndraftErrDataLoss=An error occurred while reading the draft file. The diagram cannot be edited now to prevent any possible data loss. Please try again later or contact support.\nibm=IBM\nlinkToDiagramHint=Add a link to this diagram. The diagram can only be edited from the page that owns it.\nlinkToDiagram=Link to Diagram\nchangedBy=Changed By\nlastModifiedOn=Last Modified on\nsearchResults=Search Results\nshowAllTemps=Show All Templates\nnotionToken=Notion Token\nselectDB=Select Database\nnoDBs=No Databases\ndiagramEdited={1} diagram "{2}" edited\nconfDraftPermissionErr=Draft cannot be written. Do you have attachment write/read permission on this page?\nconfFileTooBigErr=File size is too large. Pease check "Attachment Maximum Size" of "Attachment Settings" in Confluence Configuration.\nowner=Owner\nrepository=Repository\nbranch=Branch\nmeters=Meters\nteamsNoEditingMsg=Editor functionality is only available in Desktop environment (in MS Teams App or a web browser)\ncontactOwner=Contact Owner\nviewerOnlyMsg=You cannot edit the diagrams in the mobile platform, please use the desktop client or a web browser.\nwebsite=Website\ncheck4Updates=Check for Updates\nattWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...\nconfPartialPageList=We couldn\'t fetch all pages due to an error in Confluence. Continuing using {1} pages only.\nspellCheck=Spell Checker\nnoChange=No Change\nlblToSvg=Convert Labels to SVG\nautoRotateLabel=Rotate with Edge\ntxtSettings=Text Settings\nLinksLost=Links will be lost\narcSize=Arc Size\neditConnectionPoints=Edit Connection Points\nnotInOffline=Not supported while offline\nnotInDesktop=Not supported in Desktop App\nconfConfigSpaceArchived=draw.io Configuration space (DRAWIOCONFIG) is archived. Please restore it first.\nconfACleanOldVerStarted=Cleaning old diagram draft versions started\nconfACleanOldVerDone=Cleaning old diagram draft versions finished\nconfACleaningFile=Cleaning diagram draft "{1}" old versions\nconfAFileCleaned=Cleaning diagram draft "{1}" done\nconfAFileCleanFailed=Cleaning diagram draft "{1}" failed\nconfACleanOnly=Clean Diagram Drafts Only\nbrush=Brush\nopenDevTools=Open Developer Tools\nautoBkp=Automatic Backup\nconfAIgnoreCollectErr=Ignore collecting current pages errors\ndrafts=Drafts\ndraftSaveInt=Draft Save Interval [sec] (0 to disable)\npluginsDisabled=External plugins disabled.\nextExpNotConfigured=External image service is not configured\npathFilename=Path/Filename\nconfAHugeInstances=Very Large Instances\nconfAHugeInstancesDesc=If this instance includes 100,000+ pages, it is faster to request the current instance pages list from Atlassian. Please contact our support for more details.\nchoosePageIDsFile=Choose current page IDs csv file\nchooseDrawioPsgesFile=Choose pages with draw.io diagrams csv file\nprivate=Private\ndiagramTooLarge=The diagram is too large, please reduce its size and try again.\nselectAdminUsers=Select Admin Users\nxyzTeam={1} Team\naddTeamTitle=Adding a new draw.io Team\naddTeamInst1=To create a new draw.io Team, you need to create a new Atlassian group with "drawio-" prefix (e.g, a group named "drawio-marketing").\naddTeamInst2=Then, configure which team member can edit/add configuration, templates, and libraries from this page.\ndrawioTeams=draw.io Teams\nmembers=Members\nadminEditors=Admins/Editors\nallowAll=Allow All\nnoTeams=No teams found\nerrorLoadingTeams=Error loading teams\nnoTeamMembers=No team members found\nerrLoadTMembers=Error loading team members\nerrCreateTeamPage=Error creating team "{1}" page in "draw.io Configuration" space, please check you have the required permissions.\ngotoConfigPage=Please create the space from draw.io "Configuration" page.\nnoAdminsSelected=No admins/editors selected\nerrCreateConfigFile=Error creating "configuration.json" file, please check you have the required permissions.\nerrSetPageRestr=Error setting page restrictions\nnotAdmin4Team=You are not an admin for this team\nconfigUpdated=Configuration updated, restart the editor if you want to work with last configuration.\noutOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.\nconfAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)\nconfA403ErrFaq=There are ({1}) 403 error(s). The current users must have add (write) permissions on all pages and attachments. Even admins sometimes are not allowed to write to some pages via page restrictions\nconfA404ErrFaq=There are ({1}) 404 error(s). The attachment/page is not found. This is due to improper migration or the diagram file (an attachment of the page) is deleted.\nconfA404AttErrFaq=There are ({1}) 404 "File not found" error(s). The diagram file (an attachment of the page) does not exist. If it exists on the same page in the source site, the migration did not copy it, so copy the attachment manually or re-migrate the attachments. If it is missing in the source site also, the diagram was deleted before the migration.\nconfA404NoEditErrFaq=There are ({1}) 404 "Cannot find a page" error(s) for pages that were fetched successfully. These pages exist but could not be updated, this usually means the current user has no edit permission on them (page restrictions) or they are archived. Re-run the process with a user that can edit these pages.\nconfA500ErrFaq=There are ({1}) 500 error(s). An internal server error in Confluence Cloud. Such errors are due to overloading the server and usually fixed by retrying the process.\nconfAOtherErrFaq=There are ({1}) other error(s). Please check the error description. If the description is not clear, please contact our support.\nconfAPageNoEditPerm=The page exists but could not be updated, this usually means the current user has no edit permission on it or the page is archived.\nconfAMacroInComment=draw.io macros inside page comments are not converted, skipped comment "{1}" (id {2})\nconfAReplaceBaseUrl=Replace base URL in diagram links when no page ID mapping is found\ndrawSvgPrev=draw.io SVG preview\ngoogleFonts=Google Fonts\ndiagDupl=Duplicate diagram detected\ndiagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We\'ve created an independent copy. Please open the editor again.\ndiagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.\nconfCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?\nconfCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.\nconfALogsPageDesc=This page contains logs of draw.io long running services as attachments\nconfEditOnlyInPageEditor=Can only be edited within Confluence page editor\nconfEvalWarn=Evaluation License - Not for Production Use\notherUsersEditing=Other user(s) are editing this diagram\nfirstTimeGD=First time to access this file?\ndrawioGDAppNotInstalled=draw.io Google Drive app is not installed, please install it first\nConfDC415Error=Saving drafts is blocked. If you have the "Attachment Checker for Confluence" app, enable "Always allow draw.io attachments" in its File Type Blocking settings. Update the app if that option is missing.\nremove=Remove\nselectPgLyr=Select Page and Layers\nerrGenPreview=There was an error generating a diagram preview. Please consult technical support.\nattAccessErr=Diagram attachment access error: cannot display diagram\nwidthIntOrFixed=Width must be a valid integer or of value \'fixed\'\ndupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected\ncantDupPickDiffName=Could not duplicate diagram. Please choose a different name.\nownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.\ncantDupTryLater=Could not duplicate diagram. Please try again later.\ncantEditLnkd=Cannot edit linked diagram\ndiagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?\ndiagInTemps=draw.io diagrams in templates\ndiagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.\nconfDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.\nconfConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.\ntryCurPageOnErr=Try finding the diagram attachment on the macro page when the linked page fails\nconfAExtSrvcNoSupported=Embedded diagrams from external services or urls are not supported.\ngliffyVersionPinning=Import Gliffy pinned version instead of the latest version\nconfEmbedUpload=For a better editing experience, please use the regular draw.io macro to insert a blank diagram, then from (File menu → Import From → Device...) select the file you want to upload and embed.\nconfPublishErr=Another update conflicted with your publish, please try the operation again\nconfACacheMapping=Cache Page IDs Mapping\nconfARemImpPages=Remember Imported Pages\nconfAGMTitle=Gliffy migration\nconfAGMStoredState=Stored state & reports\nconfAGMTabDryRun=Dry run\nconfAGMTabImport=Import\nconfAGMReadOnly=Read-only\nconfAGMWrites=Writes to pages\nconfAGMLoading=Loading migration state...\nconfAGMLoadFailed=Loading the migration state failed. Reload the page to try again.\nconfAGMStepScan=Scan & scope\nconfAGMStepDryRun=Dry run\nconfAGMStepReview=Review & report\nconfAGMScanTitle=Where your Gliffy diagrams live\nconfAGMScanSub=Scanning reads pages and counts Gliffy macros - it never modifies anything. Scans checkpoint as they go and resume if interrupted. Results are cached: rescanning is manual.\nconfAGMScanSite=Scan site\nconfAGMScanning=Scanning...\nconfAGMResumeScan=Resume scan\nconfAGMRescan=Rescan site\nconfAGMRescanConfirm=Rescan the site? The inventory is rebuilt; dry-run results and review verdicts are kept and re-matched by diagram.\nconfAGMScanMetaDone=Last scan finished {1} after {2} - {3} spaces contain Gliffy - {4} pages - {5} diagrams\nconfAGMScanMetaPaused=Scan paused - resumes from its checkpoint\nconfAGMScanMetaNone=Not scanned yet - scan to build the space inventory\nconfAGMPause=Pause\nconfAGMSearchSpaces=Search spaces by name or key...\nconfAGMSelectAll=Select all {1} with diagrams\nconfAGMSelectLive=All except archived ({1})\nconfAGMClear=Clear\nconfAGMShowArchived=Show archived\nconfAGMArchived=archived\nconfAGMSpace=Space\nconfAGMKey=Key\nconfAGMPages=Pages\nconfAGMDiagrams=Diagrams\nconfAGMNotImportable=Not importable\nconfAGMNoSpaces=No spaces yet - run a scan to build the inventory.\nconfAGMSpaceFoot=Showing {1} of {2} spaces, largest first.\nconfAGMSpaceFootMore=Showing the largest {1} of {2} matching spaces - search to narrow.\nconfAGMScope=Scope\nconfAGMScopeTotals={1} spaces - {2} diagrams - {3} pages\nconfAGMStartDryRunArrow=Start dry run →\nconfAGMDryTitle=Dry run - converts locally, changes nothing\nconfAGMDrySub=Every diagram in scope is downloaded and converted in this browser, and every affected page gets a permission check. Nothing is written to Confluence; diagram data never leaves this machine. Safe to close the tab - the run resumes from its last checkpoint.\nconfAGMDryNone=No dry run yet\nconfAGMDryRunning=Dry run in progress\nconfAGMDryPaused=Dry run paused\nconfAGMDryDone=Dry run complete - nothing was changed\nconfAGMInterrupted=interrupted\nconfAGMDone=done\nconfAGMStarted=Started {1}\nconfAGMFinished=finished {1}\nconfAGMStartDry=Start dry run\nconfAGMRerunDry=Run dry run again\nconfAGMResumeCheckpoint=Resume from checkpoint\nconfAGMSafeClose=Safe to close this tab at any time.\nconfAGMGenReport=Generate report\nconfAGMOfProcessed=of {1} processed\nconfAGMConvClean=converted clean\nconfAGMConvWarn=converter warnings\nconfAGMStalePins=version pin warnings\nconfAGMStalePin=The Gliffy macro pins version {1} but the latest is {2} - version pinning is off, so the latest was used; verify the conversion matches what the page displayed\nconfAGMPinnedOld=Imported the pinned version {1}; the latest is {2} - verify this is the version the page really displayed\nconfAGMPinFellBack=The pinned version {1} was not found - the latest ({2}) was used instead\nconfAGMPinResetNotice=draw.io update: Gliffy version pin handling changed - pins are now off by default (cloud Gliffy displays the latest version) and every pin that differs from the latest is flagged for review. The previous dry run used the old rules, so run a fresh dry run.\nconfAGMVersionPinning=Import the Gliffy version pinned in each macro instead of the latest (rarely needed - e.g. content migrated from Confluence Data Center)\nconfAGMPinToggleConfirm=Changing version pinning re-keys every diagram: the current dry run, review verdicts and import state will be discarded, and a fresh dry run is needed. Continue?\nconfAGMAlreadyImp=previously imported\nconfAGMFailed=failed\nconfAGMWriteBlocked=write-blocked\nconfAGMLeft=left\nconfAGMProblems=Problems so far - grouped, full detail in the stored files\nconfAGMNoPageEdit=no page edit\nconfAGMBlockedRow={1} pages ({2} diagrams) this user cannot edit - fix permissions or leave them Gliffy\nconfAGMReasonDraft=Gliffy draft stored on gliffy.com - no attachment to convert\nconfAGMReasonAttMissing=Diagram attachment no longer exists\nconfAGMReasonTooLarge=Exceeds converter limits\nconfAGMReasonConvert=Conversion failed\nconfAGMReasonFetch=Downloading the diagram failed\nconfAGMReasonSave=Saving failed\nconfAGMReasonAttInfo=Attachment lookup failed\nconfAGMReasonOther=Other error\nconfAGMNoEditPerm=No permission to edit "{1}" - its diagrams cannot be imported by this user\nconfAGMDiagConverted=Converted {2} diagram "{1}" (dry run, nothing written)\nconfAGMReviewTitle=Review a sample against the Gliffy previews\nconfAGMReviewSub=Left: the preview image Gliffy stored. Right: a live render of the draw.io conversion - what the page will show after import. Rate with the keyboard; verdicts are saved continuously and feed the report and the import.\nconfAGMReviewNeedsDry=Finish a dry run first - the review works on its results.\nconfAGMSample=Sample\nconfAGMSampleNote=of {1} converted - flagged first, then random across spaces\nconfAGMCustomPct=Custom %\nconfAGMApply=Apply\nconfAGMFilterSample=Sample\nconfAGMFilterUnreviewed=Unreviewed\nconfAGMFilterFlagged=Flagged\nconfAGMFilterFailed=Failed\nconfAGMSideBySide=Side by side\nconfAGMLiveRender=live render of conversion\nconfAGMStoredPreview=stored preview image\nconfAGMNoPreview=No preview image stored by Gliffy - compare against the diagram on its page.\nconfAGMGliffyPreviewAlt=Gliffy preview\nconfAGMNoDrawio=No draw.io version to show.\nconfAGMPreviewFailed=Rendering the conversion failed.\nconfAGMNotConverted=not converted\nconfAGMFailedReason=Not converted ({1}). See the problems list and the report.\nconfAGMFlickHint=A/B - press X or click to flip\nconfAGMConverterWarning=converter warning\nconfAGMNothingHere=Nothing to review in this filter\nconfAGMMatch=Match\nconfAGMMinor=Minor differences\nconfAGMMajor=Major differences\nconfAGMMatchL=match\nconfAGMMinorL=minor\nconfAGMMajorL=major\nconfAGMLeftInSample=left in sample\nconfAGMOfReviewed=of {1} reviewed\nconfAGMNotePlaceholder=Optional note - included in the report\nconfAGMPrivacy=The report contains ratings, notes, diagram names and converter warnings - never diagram contents. Diagram names are only sent to draw.io if you opt in below.\nconfAGMSendNamesOptIn=Include diagram names\nconfAGMSendReport=Send report to draw.io\nconfAGMSendConfirm=Send the migration report summary to draw.io? It contains counts, failure reasons and review verdicts.\nconfAGMSendDone=Report sent to draw.io. Reference: {1} - please quote it when contacting support.\nconfAGMGenerating=Generating report...\nconfAGMReportSaved=Report saved as {1} with the migration state.\nconfAGMOpenState=Open\nconfAGMReportFailed=Generating the report failed.\nconfAGMImpTitle=Import - writes to pages\nconfAGMImpSub=Consumes the latest dry run: scope, permission checks and review verdicts. Gliffy macros are replaced with draw.io macros and a .drawio attachment is added per diagram. Nothing is deleted - Gliffy attachments stay in place and every page edit is a normal Confluence version, so reverting a page restores its Gliffy macros.\nconfAGMImpNeedsDry=Import is disabled until a dry run has completed. Run it from the Dry run tab - it changes nothing.\nconfAGMImpReady={1} diagrams ready\nconfAGMImpSkipFail={1} failed conversions will be skipped and listed\nconfAGMImpBlocked={1} diagrams on {2} blocked pages stay Gliffy until permissions are fixed\nconfAGMImpAll=Import everything that converted\nconfAGMImpAllD=Review verdicts ride along in the log for follow-up\nconfAGMImpHold=Hold back "Major differences"\nconfAGMImpHoldN=Hold back "Major differences" ({1} rated)\nconfAGMImpHoldD=Diagrams rated Major in review stay Gliffy for a later pass\nconfAGMAdvanced=Advanced (defaults are right for almost everyone)\nconfAGMAddLabel=Add a label to every modified page (for CQL follow-up)\nconfAGMCheckDrift=Check for changes since dry run\nconfAGMDriftChecking=Checking pages for changes since the dry run...\nconfAGMDriftResult={1} pages changed and {2} gone since the dry run (checked {3}). Changed pages are re-verified during import.\nconfAGMDriftRecommend=More than 10% drift - running a fresh dry run first is recommended.\nconfAGMDriftUnknown=The dry run is {1} days old. Check for changes before importing.\nconfAGMImpNone=Not started\nconfAGMImpRunning=Import in progress\nconfAGMImpPaused=Import paused\nconfAGMImpDone=Import finished\nconfAGMStartImport=Start import - {1} diagrams\nconfAGMImpConfirm=Start the import? Up to {1} diagrams across {2} pages will be converted to draw.io macros. Nothing is deleted and every page edit is a normal Confluence version.\nconfAGMOfPages=of {1} pages\nconfAGMImported=diagrams imported\nconfAGMSkipped=skipped\nconfAGMErrors=errors\nconfAGMHeldBack=Held back "{1}" (rated Major differences in review)\nconfAGMSkippedFailed=Skipped "{1}" (failed in the dry run: {2})\nconfAGMPageBlocked=Skipped page "{1}" (no edit permission)\nconfAGMReimportPass=Processing pages labeled for re-import...\nconfAGMReassure=Interruptions resume from the last checkpoint - already-imported diagrams are never redone. The import log is stored with the migration state and downloadable.\nconfAGMImpSummary=Import finished {1}: {2} diagrams imported across {3} pages.\nconfAGMImpSummary2={1} held back - {2} skipped (failed) - {3} blocked - {4} errors.\nconfAGMImpSummary3=The run log and report are stored with the migration state.\nconfAGMRunAnother=Run another import\nconfAGMImpReportSaved=Run report saved as {1} with the migration state.\nconfAGMHttpFaq={1} requests failed with 403/404. These are usually permission problems - the API also returns 404 for content the user cannot read. See\nconfAGMFullscreen=Fullscreen\nconfAGMClose=Close\nconfAGMStatePageDesc=State and reports of the Gliffy to draw.io migration. Managed by the draw.io app; do not edit the attachments manually.\nconfABrokenDiagLnk=Broken diagram link (custom content) "{1}"\nconfACCDupEntry=duplicate entry\nconfACCInvalid=invalid content\nconfACCAttMissing=attachment is missing or has an older version\nconfAChkTabTitle=Integrity Check (Beta)\nconfAChkTitle=draw.io Diagrams Integrity Check\nconfAChkInst1=Scans all pages with draw.io macros and checks that every diagram has its attachment, preview image and diagram link (custom content) with the versions the macro points to. It also reports broken, duplicate and unused diagram links.\nconfAChkInst2=The check is read-only and changes nothing. It can take some time and the browser window must remain open until it finishes.\nconfAChkDownloadOpt=Download each diagram and verify its content instead of only checking it exists (slower, detects corrupted files)\nconfAChkStart=Start Integrity Check\nconfAChkStatChecked=Diagrams checked\nconfAChkStatOk=OK\nconfAChkStatBroken=Broken\nconfAChkStatWarn=With warnings\nconfAChkStatCC=Broken diagram links\nconfAChkStatOrphans=Unused embed links\nconfAChkLog=Log\nconfAChkFilterAll=All\nconfAChkFilterIssues=Issues only\nconfAChkProgLinks=Checking diagram links ({1} of {2})\nconfAChkProgPages=Checking pages with {3} macros ({1} of {2})\nconfAChkEta=~{1} remaining\nconfAChkEstimating=estimating…\nconfAChkDiag=Checking diagram "{1}"\nconfAChkDiagOK=Diagram "{1}" is OK\nconfAChkMacroNoName=Found a diagram macro without a diagram name (possibly a never-edited macro)\nconfAChkPageInfoBroken=Diagram "{1}": the page referenced by the macro (by space and title) cannot be resolved\nconfAChkCCMissing=Diagram "{1}": its diagram link (custom content) is missing or broken (the diagram works, but is excluded from search and diagram listings)\nconfAChkCCNoRef=Diagram "{1}": the macro has no diagram link (custom content) reference\nconfAChkCCOther=Diagram "{1}": the macro references a missing diagram link (custom content), but a valid one exists for this diagram\nconfAChkCCMismatch=Diagram "{1}": its diagram link (custom content) does not match the macro (page, name, or version)\nconfAChkDiagPageMissing=Diagram "{1}": the page ({2}) that holds the diagram attachment is not found\nconfAChkAttMissing=Diagram "{1}": the diagram attachment is not found\nconfAChkAttOldVer=Diagram "{1}": the diagram attachment version ({2}) is older than the version in the macro ({3})\nconfAChkAttFetchFailed=Diagram "{1}": fetching the attachments of page ({2}) failed\nconfAChkPrevMissing=Diagram "{1}": the preview image ({2}) is not found\nconfAChkPrevOldVer=Diagram "{1}": the preview image version ({2}) is older than the version in the macro ({3})\nconfAChkPrevOutOfSync=Diagram "{1}": the preview image (of diagram version {2}) is out of sync with the diagram (version {3})\nconfAChkPrevPageFailed=Diagram "{1}": fetching the attachments of the preview image page ({2}) failed\nconfAChkDiagInvalid=Diagram "{1}": the diagram content is not a valid draw.io file\nconfAChkDiagDownFailed=Diagram "{1}": downloading the diagram failed\nconfAChkEmbedCC=Checking embedded diagram links (custom contents)...\nconfAChkOrphanEmbedCC=Embedded diagram link (custom content) "{1}" is not referenced by any macro\nconfAChkSummary=Integrity check finished: {1} macros checked, {2} OK, {3} broken, {4} with warnings. Diagram links (custom contents): {5} broken, {6} unused embedded diagram links\ndelCachedData=Delete Cached Data\nk15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?\ndrawioUninstalled=draw.io has been uninstalled, the editor will now close\nconfAttachmentArchived=Diagram belongs to an archived page and cannot be loaded. Restore the page (ID: {1}) to load it.\nconfDiagramMacroDowngrade=The diagram is saved but the page macro cannot be updated as the diagraam revision in the macro is newer. Please edit the diagram from Confluence page editor.\nDCSave500Error=Another Confluence operation interrupted saving, retry #{1}\nconfAppNotInstalled=draw.io diagrams Confluence App is not installed.\nplsInstallAppInConf=Please install/connect this App in Confluence to be able to access the diagrams (in addition to draw.io Confluence app)\nm365=Microsoft 365\nnodeSpacing=Node Spacing\nrankSpacing=Rank Spacing\npolyline=Polyline\nlayeringStrategy=Layering Strategy\nnetworkSimplex=Network Simplex\nlongestPath=Longest Path\ncoffmanGraham=Coffman-Graham\nweighting=Weighting\nmodelOrder=Model Order\ndescendants=Descendants\nconstraint=Constraint\nfan=Fan\noptimization=Optimization\nedgeLength=Edge Length\nedgeLengthByPosition=Edge Length by Position\ncrossingMinimization=Crossing Minimization\niterations=Iterations\nrepulsivePower=Repulsive Power\nresizeNodes=Resize Nodes\nuseSelectionAsRoot=Use Selection as Root\nuseSelectionAsRoots=Use Selection as Roots\nanonymize=Anonymize\nconnector=Connector\nextractText=Extract Text\nlegacyLayouts=Legacy Layouts\nedgeStyle=Edge Style\ncorners=Corners\nkeepStyle=Keep Existing Style\nopenLucidSite=Open Lucidchart Site in another tab and login to your account, then come back to this tab and click the "Start Import" button again.\npreviewSaveNoPermission=You do not have permission to save the preview image. The source page may be restricted or you may not have edit permission on the page. This only affects this page export to PDF/Word.\npreserveOrigin=Preserve Origin\nsharedStems=Bundle Outgoing Connections\ndraftLoadedWUnpublishedChanges=The diagram has loaded from a draft with unpublished changes. It is different from the published version.\nhachure=Hachure\nhatch=Hatch\ndots=Dots\ncrossHatch=Cross Hatch\nzigzag=ZigZag\nzigzagLine=ZigZag Line\nsysFonts=System Fonts\nwebfonts=Web Fonts\nfontname=Font Name\nfontUrl=Font URL\ncreatingDiagram=Generating diagram. Please wait\nconfAFixPageStorage=Remove invalid page storage format elements (Warning: May cause data loss)\ncfgAiActions=AI Actions (JSON)\ncfgAiConfigs=AI Configs (JSON)\ncfgAiGlobals=AI Globals (JSON)\ncfgAiModels=AI Models (JSON)\ncfgAppendCustomLibraries=Append Custom Libraries\ncfgAppendCustomLibrariesHelp=Custom libraries appear after built-in ones\ncfgAutoCropViewer=Auto Crop Viewer\ncfgAutoCropViewerHelp=Auto-crop viewer to fit diagram bounds\ncfgAutosaveDelay=Autosave Delay (ms)\ncfgBrowserTranslate=Browser Translate\ncfgBrowserTranslateHelp=Mirror diagram text for browser translation engines (e.g. Chrome Translate)\ncfgClaudeApiKey=Claude API Key\ncfgColorNames=Color Names (JSON)\ncfgColorNamesHelp=Map of colour codes to display names (tooltips)\ncfgCompact=Compact UI\ncfgCompactHelp=Enable compact user interface mode\ncfgCompressStyles=Compress Styles\ncfgCompressStylesHelp=Deduplicate repeated inline images and stencils into a shared lookup table. Only readable by draw.io 29.3.1 and later.\ncfgCompressXml=Compress XML\ncfgCompressXmlHelp=Compress XML output in saved files\ncfgCopyOnConnect=Copy on Connect\ncfgCopyOnConnectHelp=Create a copy of the source shape for connections that end on the canvas\ncfgCss=CSS Rules\ncfgCssHelp=CSS rules to customize the draw.io user interface\ncfgCustomCss=Custom CSS (alternative)\ncfgCustomCssHelp=Injected as a separate style element\ncfgCustomTemplates=Custom Templates (JSON)\ncfgCustomTemplatesHelp=Templates added to the sections of the template dialog\ncfgDarkColor=Dark Mode Background\ncfgDarkColorVar=Dark Color CSS Variable\ncfgDebug=Debug\ncfgDebugHelp=Enable debug output\ncfgDefaultAdaptiveColors=Adaptive Colors\ncfgDefaultConnectable=Default Connectable\ncfgDefaultConnectableHelp=Shapes are connectable by default\ncfgDefaultConnectionArrowsEnabled=Connection Arrows\ncfgDefaultConnectionArrowsEnabledHelp=Show arrows when hovering connections\ncfgDefaultDarkGridColor=Default Grid Color (Dark Mode)\ncfgDefaultDarkPageBackgroundColor=Default Page Background (Dark Mode)\ncfgDefaultEdgeLength=Default Edge Length\ncfgDefaultFileType=Default File Type\ncfgDefaultFoldingEnabled=Folding Enabled\ncfgDefaultFoldingEnabledHelp=Enable shape folding (collapse/expand)\ncfgDefaultGridColor=Default Grid Color\ncfgDefaultGridEnabled=Grid Enabled\ncfgDefaultGridEnabledHelp=Show grid on canvas\ncfgDefaultGridSize=Default Grid Size\ncfgDefaultLanguages=Default Languages\ncfgDefaultLanguagesHelp=Language bundles installed for offline use on startup\ncfgDefaultLibraries=Default Libraries\ncfgDefaultLibrariesHelp=Semicolon-separated library keys shown in sidebar on startup\ncfgDefaultPageBackgroundColor=Default Page Background\ncfgDefaultPageVisible=Page Visible\ncfgDefaultPageVisibleHelp=Show page outline on canvas\ncfgDefaultTextStyle=Default Text Style\ncfgDefaultTransparentGroups=Automatic Group Size\ncfgDefaultTransparentGroupsHelp=New groups automatically resize to fit their children (transparentBounds=1)\ncfgDesktopAutoSync=Desktop Auto Sync\ncfgDesktopAutoSyncHelp=Auto-sync when local file changes\ncfgDisableVersioning=Disable Versioning\ncfgDisableVersioningHelp=Disable diagram versioning\ncfgEmbedSvgFonts=Embed SVG Fonts\ncfgEmbedSvgFontsHelp=Default for embedding fonts as data URIs in exported and saved SVG files, can be overridden per file in the file properties\ncfgEmptyDiagramXml=Empty Diagram XML\ncfgEmptyLibraryXml=Empty Library XML\ncfgEnableAi=Enable AI\ncfgEnableAiHelp=Enable AI diagram generation\ncfgEnableAnimations=Enable Animations\ncfgEnableAnimationsHelp=Enable shape and layout animations\ncfgEnableCssDarkMode=CSS Dark Mode\ncfgEnableCssDarkMode2=CSS Dark Mode\ncfgEnableCssDarkMode2Help=Enable CSS-based dark mode for viewer diagrams\ncfgEnableCssDarkModeHelp=Use CSS for dark mode rendering\ncfgEnableCustomGitLabUrl=Enable Custom GitLab URL\ncfgEnableCustomGitLabUrlHelp=Allow ?gitlab= / ?gitlab-id= URL parameters to override the default GitLab server. Enable only for self-hosted GitLab deployments.\ncfgEnableCustomLibraries=Enable Custom Libraries\ncfgEnableCustomLibrariesHelp=Allow open and new library functions\ncfgEnableDistanceGuides=Distance Guides\ncfgEnableDistanceGuidesHelp=Snap shapes to equal distances between the surrounding shapes while moving (default on)\ncfgEnableExportUrl=Enable Export URL\ncfgEnableExportUrlHelp=Enable the export URL feature\ncfgEnableInlineToolbar=Inline Toolbar\ncfgEnableInlineToolbarHelp=Enable the inline toolbar on selection\ncfgEnableLightDarkColors=Light/Dark Colors\ncfgEnableLightDarkColorsHelp=Use CSS light-dark() color function\ncfgEnableLocalFonts=Local Fonts\ncfgEnableLocalFontsHelp=Scan and list locally installed fonts in the font picker\ncfgEnableNativeClipboard=Native Clipboard\ncfgEnableNativeClipboardHelp=Use native system clipboard\ncfgEnablePositionGuides=Position Guides\ncfgEnablePositionGuidesHelp=Snap shapes to the edges and centers of the other shapes while moving (default on)\ncfgEnableSizeGuides=Size Guides\ncfgEnableSizeGuidesHelp=Snap the size of a shape to the sizes of the other shapes while resizing (default on)\ncfgEnableWindowDocking=Window Docking\ncfgEnableWindowDockingHelp=Enable window docking\ncfgExpandLibraries=Expand Libraries\ncfgExpandLibrariesHelp=Libraries expanded by default\ncfgExpandPatternsForPrint=Expand Patterns for Print\ncfgExpandPatternsForPrintHelp=Expand patterns to visible graphics during print/PDF export\ncfgExperimental=Experimental feature\ncfgFitDiagramOnLoad=Fit Diagram on Load\ncfgFitDiagramOnLoadHelp=Fit diagram to window on load\ncfgFitDiagramOnPage=Fit Diagram on Page\ncfgFitDiagramOnPageHelp=Fit diagram to page size\ncfgFoldingIconSize=Folding Icon Size\ncfgFontCss=Font CSS (@font-face rules)\ncfgFontCssHelp=Added before preset colors in the colour dialog\ncfgForceSimpleViewer=Force Simple Viewer\ncfgForceSimpleViewerHelp=Force simple viewer for all diagrams\ncfgForeignObjectImages=Foreign Object Images\ncfgForeignObjectImagesHelp=Replace foreignObject with images\ncfgGeminiApiKey=Gemini API Key\ncfgGenerateSVGs=Generate SVGs\ncfgGenerateSVGsHelp=Generate SVG previews for diagrams\ncfgGlobalVars=Global Variables (JSON)\ncfgGlobalVarsHelp=Global placeholders available in all diagrams\ncfgGptApiKey=OpenAI API Key\ncfgGptUrl=Custom GPT URL\ncfgGridSteps=Grid Steps\ncfgHiResPreview=Hi-Res Preview\ncfgHiResPreviewHelp=Generate high-resolution preview images\ncfgIncludeDiagram=Include Diagram in Export\ncfgIncludeDiagramHelp=Include diagram data in export dialogs\ncfgInlineExtIcons=Inline Icon Search Results\ncfgInlineExtIconsHelp=Insert icon search results as embedded images instead of remote references\ncfgInplaceEdits=In-place Edits\ncfgInplaceEdits2=In-place Edits\ncfgInplaceEdits2Help=Allow launching editor from viewer\ncfgInplaceEditsHelp=Allow launching the editor from the viewer\ncfgInsertAnimations=Insert Animations\ncfgInsertAnimationsHelp=Show pop animation when inserting shapes from the sidebar\ncfgIntersectionSelect=Intersection Select\ncfgIntersectionSelectHelp=Select cells by intersection rather than containment\ncfgKeyboardShortcuts=Keyboard Shortcuts (JSON)\ncfgKeyboardShortcutsHelp=Custom keyboard shortcuts. Entries are {keyCode, control, shift, alt, action} where keyCode is a key code or single character and action is an action name, or null to remove a binding.\ncfgLibraries=Libraries (JSON)\ncfgLibrariesHelp=Custom library sections for the left panel\ncfgLockdown=Lockdown\ncfgLockdown2=Lockdown\ncfgLockdown2Help=Disable data transmission outside Confluence\ncfgLockdownHelp=Disable data transmission apart from storage\ncfgMathOutputSize=Math Output Size\ncfgMathOutputSizeHelp=Size labels, view bounds and initial fit to the rendered math output instead of the formula source\ncfgMaxImageBytes=Max Image Bytes\ncfgMaxImageSize=Max Image Size (px)\ncfgMermaid=Mermaid Config (JSON)\ncfgMermaidHelp=Default Mermaid settings such as theme and colours for all diagrams\ncfgNoAutoFocus=No Auto Focus\ncfgNoAutoFocusHelp=Disable auto-focus on startup\ncfgNoResizers=No Resizers\ncfgNoResizersHelp=Hide shape resize handles\ncfgNotSet=Not set (use default)\ncfgOneDriveInlinePicker=OneDrive Inline Picker\ncfgOneDriveInlinePickerHelp=Use inline picker for OneDrive\ncfgOptimizeHtmlLabels=Optimize HTML Labels\ncfgOptimizeHtmlLabelsHelp=Remove unnecessary spans from HTML labels when editing stops\ncfgOverride=Override\ncfgOverrideHelp=Ignore user settings stored in the browser so the defaults in this configuration always apply\ncfgPageFormatHeight=Page Height (1/10 inch)\ncfgPageFormatHeightHelp=Page format: US Letter = 850 x 1100, A4 = 827 x 1169\ncfgPageFormatWidth=Page Width (1/10 inch)\ncfgPassiveScroll=Passive Scroll\ncfgPassiveScrollHelp=Enable passive scroll event listeners\ncfgPasteAtMousePointer=Paste at Mouse\ncfgPasteAtMousePointerHelp=Paste elements at mouse pointer location\ncfgPreserveViewState=Preserve View State\ncfgPreserveViewStateHelp=Preserve view state in embed mode\ncfgRemoveImageMetadata=Remove Image Metadata\ncfgRemoveImageMetadataHelp=Strip metadata from images\ncfgReplaceSvgDataUris=Replace SVG Data URIs\ncfgReplaceSvgDataUrisHelp=Replace data URIs with SVG sub-trees in export\ncfgResources=Language Resources (JSON)\ncfgResourcesHelp=Overrides existing or adds new language resources for user interface text. Maps resource keys to strings, or to objects with one entry per language code and main as the fallback.\ncfgRestrictExport=Restrict Export\ncfgRestrictExportHelp=Disable exporting diagrams to other formats\ncfgSearchSettings=Search settings (e.g. grid, font, dark mode, compressXml...)\ncfgSectionAIConfiguration=AI Configuration\ncfgSectionAppearance=Appearance\ncfgSectionCanvasGrid=Canvas & Grid\ncfgSectionCollaborationAdvanced=Collaboration & Advanced\ncfgSectionColorSchemes=Color Schemes\ncfgSectionColors=Colors\ncfgSectionConfluenceCloud=Confluence Cloud\ncfgSectionConfluenceServerDataCenter=Confluence Server / Data Center\ncfgSectionCustomCSS=Custom CSS\ncfgSectionDefaultStyles=Default Styles\ncfgSectionEmbedding=Embedding\ncfgSectionExportSecurity=Export & Security\ncfgSectionFonts=Fonts\ncfgSectionGeneral=General\ncfgSectionLibraries=Libraries\ncfgSectionMenuCustomization=Menu Customization\ncfgSectionSidebarPanels=Sidebar & Panels\ncfgSelectParentLayer=Select Parent Layer\ncfgSelectParentLayerHelp=Selects parent layer for current selection\ncfgSettingsName=Settings Name\ncfgSettingsNameHelp=Key for storing user settings in local storage\ncfgShadowBlur=Shadow Blur\ncfgShadowColor=Shadow Color\ncfgShadowOffsetX=Shadow Offset X\ncfgShadowOffsetY=Shadow Offset Y\ncfgShadowOpacity=Shadow Opacity\ncfgShapePicker=Shape Picker (JSON)\ncfgShapePickerHelp=Custom shape picker entries for the sidebar\ncfgShareCursorPosition=Share Cursor Position\ncfgShareCursorPositionHelp=Share cursor in real-time collaboration\ncfgShowConnectHandle=Show Connect Handle\ncfgShowConnectHandleHelp=Show connection handle on hover\ncfgShowLinkIcons=Show Link Icons\ncfgShowLinkIconsHelp=Show link icons on shapes\ncfgShowNoteIcons=Show Note Icons\ncfgShowNoteIconsHelp=Show note icons on shapes\ncfgShowRemoteCursors=Show Remote Cursors\ncfgShowRemoteCursorsHelp=Display other users\' cursors\ncfgShowSplashOnStart=Show Splash on Start\ncfgShowSplashOnStartHelp=Show the splash screen with storage options on startup\ncfgShowTooltipIcons=Show Tooltip Icons\ncfgShowTooltipIconsHelp=Show tooltip icons on shapes\ncfgSidebarTitleSize=Title Font Size (pt)\ncfgSidebarTitles=Sidebar Titles\ncfgSidebarTitlesHelp=Show titles in the sidebar\ncfgSidebarWidth=Sidebar Width\ncfgSimpleLabels=Simple Labels\ncfgSimpleLabelsHelp=Disable word wrap and HTML for labels\ncfgSimpleViewer=Simple Viewer\ncfgSimpleViewerHelp=Use simple viewer for all diagrams\ncfgStopEditingOnEnter=Stop Editing on Enter\ncfgStopEditingOnEnterHelp=Enter key stops label editing, Shift+Enter inserts a line break\ncfgStyles=Styles (JSON)\ncfgStylesHelp=Colours for the Style tab. Keys: commonStyle, vertexStyle, edgeStyle, graph.\ncfgSwimlaneSelectionEnabled=Swimlane Body Selection\ncfgSwimlaneSelectionEnabledHelp=Click an empty swimlane body to select the swimlane (default on)\ncfgTemplateFile=Template File URL\ncfgTemplateFileHelp=Sections shown in the template dialog. Leave empty for all.\ncfgThumbHeight=Thumbnail Height\ncfgThumbWidth=Thumbnail Width\ncfgTooltipFontSize=Tooltip Font Size (px)\ncfgTooltipMaxWidth=Tooltip Max Width (px)\ncfgTranslateDiagrams=Translate Diagrams\ncfgTranslateDiagramsHelp=Enable automatic translation of diagram labels\ncfgUi=UI Theme\ncfgUpdateDefaultStyle=Update Default Style\ncfgUpdateDefaultStyleHelp=Update defaults when styles change\ncfgUseInternalClipboard=Use Internal Clipboard\ncfgUseInternalClipboardHelp=Use internal clipboard instead of native\ncfgVersion=Version\ncfgVersionHelp=Configuration version identifier\ncfgViewerCanExceedPageWidth=Viewer Can Exceed Page Width\ncfgViewerCanExceedPageWidthHelp=Allow the viewer to exceed the page width\ncfgViewerTimeout=Viewer Timeout\ncfgZoomFactor=Zoom Factor\ncfgZoomWheel=Zoom with Mouse Wheel\ncfgZoomWheelHelp=Use mouse wheel for zoom without modifiers\ncfgEnabled=Enabled\npartialResponse=Partial response\nactor=Actor\ncallout=Callout\ncard=Card\ncloud=Cloud\ncross=Cross\ncube=Cube\ncylinder=Cylinder\ndelay=Delay\ndisplay=Display\ndocument=Document\nhexagon=Hexagon\nparallelogram=Parallelogram\npentagon=Pentagon\nprocess=Process\nsquare=Square\nstar=Star\nstep=Step\ntape=Tape\ntrapezoid=Trapezoid\ntriangle=Triangle\n');Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;+DrawioComment.prototype.deleteComment=function(b,d){b()};DrawioUser=function(b,d,m,p,t){this.id=b;this.email=d;this.displayName=m;this.pictureUrl=p;this.locale=t};mxResources.parse('about=About\naiFreeModelHint=Start a new chat or shorten your message to send more.\naboutDrawio=About draw.io\naccessDenied=Access Denied\naccounts=Accounts\naction=Action\nactualSize=Actual Size\nadaptiveColors=Adaptive Colors\nadd=Add\naddAccount=Add Account\naddedFile=Added {1}\naddImages=Add Images\naddImageUrl=Add Image URL\naddLayer=Add Layer\naddProperty=Add Property\naddress=Address\naddToExistingDrawing=Add to Existing Drawing\naddToScratchpad=Add to Scratchpad\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nsmartTemplate=Smart Template\nalign=Align\nalignment=Alignment\nalignCellsLeft=Align Left\nalignCellsCenter=Align Center\nalignCellsRight=Align Right\nalignCellsTop=Align Top\nalignCellsMiddle=Align Middle\nalignCellsBottom=Align Bottom\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSelectedObjectsInThisLayer=All selected objects are in this layer\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\nallCells=All cells\nanimations=Flow Animations\ncell=cell\ncells=cells\nexcluded=Excluded\nexcludeSelection=Exclude selected cells\nlayer=Layer\nselectLayers=Select layers\ntransition=Transition\nmatch=Match\nmatchAll=All\nmatchAllHint=Match cells that have every selected tag (AND)\nmatchAny=Any\nmatchAnyHint=Match cells that have at least one selected tag (OR)\nduration=Duration (ms)\nfadeIn=Fade In\nfadeOut=Fade Out\nfadeTo=Fade To\nflow=Flow\nflowOff=Flow Off\nflowOn=Flow On\nhighlight=Highlight\nnoTagsInDiagram=No tags in this diagram yet.\noptional=optional\npopIn=Pop In\npopOut=Pop Out\nreorder=Drag to reorder\nreset=Reset\nscroll=Scroll To\nselectByTags=Select by tags\nselectCellsInDiagram=Select cells in diagram\ntag=Tag\nsetOpacity=Set Opacity\ntiming=Timing\ntoggle=Toggle\ntoggleStyle=Toggle Style\nuseSelection=Use selected cells\nvisibilityActions=Visibility\nwait=Wait\nwipeIn=Wipe In\nwipeOut=Wipe Out\narc=Arc\nareYouSure=Are you sure?\nensureDataSaved=Please ensure your data is saved before closing.\nallChangesSaved=All changes saved\nallChangesSavedInDrive=All changes saved in Drive\nallowPopups=Allow pop-ups to avoid this dialog.\nallowRelativeUrl=Allow relative URL\nalreadyConnected=Nodes already connected\nappearance=Appearance\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narea=Area\narrow=Arrow\narrows=Arrows\naskMeAnything=Ask me anything\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosizeText=Automatic Font Size\nautosize=Autosize\nattach=Attach\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nbeta=beta\nblankDrawing=Blank Drawing\nblankDiagram=Blank Diagram\nblock=Block\nblockquote=Blockquote\nblog=Blog\nbold=Bold\nbootstrap=Bootstrap\nborder=Border\nborderColor=Border Color\nborderWidth=Border Width\nbottom=Bottom\nbottomAlign=Bottom Align\nbottomLeft=Bottom Left\nbottomRight=Bottom Right\nbpmn=BPMN\nbringForward=Bring Forward\nbrowser=Browser\nbulletedList=Bulleted List\nbusiness=Business\nbusy=Operation in progress\ncabinets=Cabinets\ncancel=Cancel\ncenter=Center\ncannotLoad=Load attempts failed. Please try again later.\ncannotLogin=Log in attempts failed. Please try again later.\ncannotOpenFile=Cannot open file\nchange=Change\nchangeOrientation=Change Orientation\nchangeUser=Change User\nchangeStorage=Change Storage\nchangesNotSaved=Changes have not been saved\ncharactersRemaining={1} characters remaining\nclassDiagram=Class Diagram\nclosePath=Close Path\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nclickToAdd=Click on canvas to add points\ncollaborativeEditingNotice=Important Notice for Collaborative Editing\ncompare=Compare\ncompressed=Compressed\ncommitMessage=Commit Message\nconfigLinkWarn=This link configures draw.io. Only click OK if you trust whoever gave you it!\nconfigLinkConfirm=Click OK to configure and restart draw.io.\ncontainer=Container\ncsv=CSV\ncurrentLayer=Current Layer\ndark=Dark\ndiagramLanguage=Diagram Language\ndiagramType=Diagram Type\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndictate=Dictate\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndisabled=Disabled\ndraftFound=A draft for \'{1}\' has been found. Load it into the editor or discard it to continue.\ndraftRevisionMismatch=There is a different version of this diagram on a shared draft of this page. Please edit the diagram from the draft to ensure you are working with the latest version.\nselectDraft=Select a draft to continue editing:\ndragAndDropNotSupported=Drag and drop not supported for images. Would you like to import instead?\ndropboxCharsNotAllowed=The following characters are not allowed: / : ? * " |\ncheck=Check\nchecksum=Checksum\ncircle=Circle\ncisco=Cisco\nclassic=Classic\nclearDefaultStyle=Clear Default Style\nclearWaypoints=Clear Waypoints\nclipart=Clipart\nclipboard=Clipboard\nclose=Close\nclosingFile=Closing file\nrealtimeCollaboration=Real-Time Collaboration\ncollaborate=Collaborate\ncollaborator=Collaborator\ncollaborators=Collaborators\ncollapse=Collapse\ncollapseAll=Collapse All\ncollapseExpand=Collapse/Expand\ncollapse-expand=Click to collapse/expand\nShift-click to move neighbors \nAlt-click to protect group size\ncollapsible=Collapsible\ncomic=Comic\ncomment=Comment\ncommentsNotes=Comments/Notes\ncompress=Compress\nconfiguration=Configuration\nconnect=Connect\nconnectable=Connectable\nconnecting=Connecting\nconnectWithDrive=Connect with Google Drive\nconnection=Connection\nconnectionArrows=Connection Arrows\nconnectionPoints=Connection Points\nconstrainProportions=Constrain Proportions\ncontainsValidationErrors=Contains validation errors\ncopiedToClipboard=Copied to clipboard\ncopy=Copy\ncopyCreated=A copy of the file was created.\ncopyData=Copy Data\ncopyDiagramToClipboard=Copy Diagram to Clipboard\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySelectionToClipboard=Copy Selection to Clipboard\ncopySize=Copy Size\ncopyStyle=Copy Style\ncopyTextStyle=Copy Text Style\ncreate=Create\ncreateDiagram=Create Diagram\ncreateBlankDiagram=Create Blank Diagram\ncreateNewDiagram=Create New Diagram\ncreateRevision=Create Revision\ncreateShape=Create Shape\ncrop=Crop\ncurved=Curved\ncustom=Custom\ncurrent=Current\ncurrentPage=Current Page\ncut=Cut\ndashed=Dashed\ndecideLater=Decide Later\ndefault=Default\ndelete=Delete\ndeleteAll=Delete All\ndeleteColumn=Delete Column\ndeleteLibrary401=Insufficient permissions to delete this library\ndeleteLibrary404=Selected library could not be found\ndeleteLibrary500=Error deleting library\ndeleteLibraryConfirm=You are about to permanently delete this library. Are you sure you want to do this?\nremoveLibraryConfirm=You are about to remove this library for everyone. Only an administrator can recover it. Are you sure you want to do this?\ndeleteRow=Delete Row\ndescription=Description\ndescribeYourDiagram=Describe your diagram\ndevice=Device\ndiagram=Diagram\ndiagramContent=Diagram Content\ndiagramLocked=Diagram has been locked to prevent further data loss.\ndiagramLockedBySince=The diagram is locked by {1} since {2} ago\ndiagramName=Diagram Name\ndiagramIsPublic=Diagram is public\ndiagramIsNotPublic=Diagram is not public\ndiamond=Diamond\ndiamondThin=Diamond (thin)\ndidYouKnow=Did you know...\ndirection=Direction\ndiscard=Discard\ndiscardChangesAndReconnect=Discard Changes and Reconnect\ngoogleDriveMissingClickHere=Google Drive missing? Click here!\ndiscardChanges=Discard Changes\ndisconnected=Disconnected\ndistribute=Distribute\ndistributeHorizontal=Distribute Horizontally\ndistributeVertical=Distribute Vertically\ndone=Done\ndoNotShowAgain=Do not show again\ndotted=Dotted\ndoubleClickOrientation=Doubleclick to change orientation\ndoubleClickTooltip=Doubleclick to insert text\ndoubleClickChangeProperty=Doubleclick to change property name\ndownload=Download\ndownloadDesktop=Get Desktop\ndownloadAs=Download as\nclickHereToSave=Click here to save.\ndpi=DPI\ndraftDiscarded=Draft discarded\ndraftSaved=Draft saved\ndragElementsHere=Drag elements here\ndragImagesHere=Drag images or URLs here\ndragUrlsHere=Drag URLs here\ndraw.io=draw.io\ndrawing=Drawing{1}\ndrawingEmpty=Drawing is empty\ndrawingTooLarge=Drawing is too large\ndrawioForWork=Draw.io for GSuite\ndropbox=Dropbox\nduplicate=Duplicate\nduplicateIt=Duplicate {1}\ndivider=Divider\ndx=Dx\ndy=Dy\neast=East\nedit=Edit\neditData=Edit Data\neditDiagram=Edit Diagram\neditGeometry=Edit Geometry\neditImage=Edit Image\neditImageUrl=Edit Image URL\neditLink=Edit Link\neditor=Editor\neditPolygon=Edit Polygon\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditNote=Edit Note\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\neffects=Effects\nembed=Embed\nembedCellMetadata=Cell Metadata\nembedFonts=Embed Fonts\nembedImages=Embed Images\nmainEmbedNotice=Paste this into the page\nelectrical=Electrical\nellipse=Ellipse\nembedNotice=Paste this once at the end of the page\nenterGroup=Enter Group\nenterName=Enter Name\nenterPropertyName=Enter Property Name\nenterValue=Enter Value\nentityRelation=Entity Relation\nentityRelationshipDiagram=Entity Relationship Diagram\nerror=Error\nerrorDeletingFile=Error deleting file\nerrorLoadingFile=Error loading file\nerrorRenamingFile=Error renaming file\nerrorRenamingFileNotFound=Error renaming file. File was not found.\nerrorRenamingFileForbidden=Error renaming file. Insufficient access rights.\nerrorSavingDraft=Error saving draft\nerrorSavingFile=Error saving file\nerrorSavingFileUnknown=Error authorizing with Google\'s servers. Please refresh the page to re-attempt.\nerrorSavingFileForbidden=Error saving file. Insufficient access rights.\nerrorSavingFileNameConflict=Could not save diagram. Current page already contains file named \'{1}\'.\nerrorSavingFileNotFound=Error saving file. File was not found.\nerrorSavingFileReadOnlyMode=Could not save diagram while read-only mode is active.\nerrorSavingFileSessionTimeout=Your session has ended. Please <a target=\'_blank\' href=\'{1}\'>{2}</a> and return to this tab to try to save again.\nerrorSendingFeedback=Error sending feedback.\nerrorUpdatingPreview=Error updating preview.\nexit=Exit\nexitGroup=Exit Group\nexpand=Expand\nexpandAll=Expand All\nexplore=Explore\nexport=Export\nexporting=Exporting\nexportAs=Export as\nexportOptionsDisabled=Export options disabled\nexportOptionsDisabledDetails=The owner has disabled options to download, print or copy for commenters and viewers on this file.\nexternalChanges=External Changes\nextras=Extras\nfailedToSaveTryReconnect=Failed to save, trying to reconnect\nfeatureRequest=Feature Request\nfeedback=Feedback\nfeedbackSent=Feedback successfully sent.\nfloorplans=Floorplans\nfile=File\nfileChangedOverwriteDialog=The file has been modified. Do you want to save the file and overwrite those changes?\nfileChangedSyncDialog=The file has been modified.\nfileChangedSync=The file has been modified. Click here to synchronize.\noverwrite=Overwrite\nsynchronize=Synchronize\nfilename=Filename\nfileExists=File already exists\nfileMovedToTrash=File was moved to trash\nfileNearlyFullSeeFaq=File nearly full, please see FAQ\nfileNotFound=File not found\nrepositoryNotFound=Repository not found\nfileNotFoundOrDenied=The file was not found. It does not exist or you do not have access.\nfileNotLoaded=File not loaded\nfileNotSaved=File not saved\nfileOpenLocation=How would you like to open these file(s)?\nfiletypeHtml=.html causes file to save as HTML with redirect to cloud URL\nfiletypePng=.png causes file to save as PNG with embedded data\nfiletypeSvg=.svg causes file to save as SVG with embedded data\nfileWillBeSavedInAppFolder={1} will be saved in the app folder.\nfill=Fill\nfillColor=Fill Color\nfilterCards=Filter Cards\nfind=Find\nfindInDiagram=Find in Diagram\nfit=Fit\nfitContainer=Resize Container\nfitIntoContainer=Fit into Container\nfitPage=Fit Page\nfitPageWidth=Fit Page Width\nfitTextToShape=Fit Text to Shape\nfitTo=Fit to\nfitToSheetsAcross=sheet(s) across\nfitToBy=by\nfitToSheetsDown=sheet(s) down\nfitTwoPages=Two Pages\nfitWindow=Fit Window\nflip=Flip\nflipH=Flip Horizontal\nflipV=Flip Vertical\nflowAnimation=Flow Animation\nflowchart=Flowchart\nfolder=Folder\nfont=Font\nfontColor=Font Color\nfontFamily=Font Family\nfontSize=Font Size\nforbidden=You are not authorized to access this file\nforceDirected=Force-directed\nformat=Format\nformatAnimatedGif=Animated GIF\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatJson=JSON\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatVsdx=VSDX\nformatWebp=WebP\nformatXml=XML\nforum=Discussion/Help Forums\nfreehand=Freehand\nfromTemplate=From Template\nfromTemplateUrl=From Template URL\nfromText=From Text\nfromUrl=From URL\nfromThisPage=From this page\nfullscreen=Fullscreen\ngap=Gap\ngcp=GCP\ngDriveAppFilesOnly=Only files created or opened with draw.io in Google Drive are listed. To add another file, open it once at app.diagrams.net.\ngeneral=General\ngetNotionChromeExtension=Get the Notion Chrome Extension\ngithub=GitHub\ngitlab=GitLab\ngliffy=Gliffy\nglobal=Global\ngoogleDocs=Google Docs\ngoogleDrive=Google Drive\ngoogleGadget=Google Gadget\ngoogleSharingNotAvailable=Sharing is only available via Google Drive. Please click Open below and share from the more actions menu:\ngoogleSlides=Google Slides\ngoogleSites=Google Sites\ngoogleSheets=Google Sheets\ngradient=Gradient\ngradientColor=Color\ngrid=Grid\ngridColor=Grid Color\ngridSize=Grid Size\ngroup=Group\ngroupPadding=Group Padding\nguides=Guides\nheading=Heading\nheight=Height\nhelp=Help\nhelpTranslate=Help us translate this application\nhide=Hide\nhideIt=Hide {1}\nhidden=Hidden\nshiftClickShowOnly=Shift+click: show only {1}\nhighContrast=High Contrast\nhome=Home\nhorizontal=Horizontal\nhorizontalFlow=Horizontal Flow\nhorizontalTree=Horizontal Tree\nhowTranslate=How good is the translation in your language?\nhtml=HTML\nhtmlText=HTML Text\nicons=Icons\nid=ID\niframe=IFrame\nignore=Ignore\nimage=Image\nimageClicked=Image copied to clipboard\nimageUrl=Image URL\nimages=Images\nimagePreviewError=This image couldn\'t be loaded for preview. Please check the URL.\nimageTooBig=Image too big\nimgur=Imgur\nimmediate=Immediate\nimport=Import\nimportFrom=Import from\nincludeCopyOfMyDiagram=Include a copy of my diagram\nincreaseIndent=Increase Indent\ndecreaseIndent=Decrease Indent\ninherit=Inherit\ninitialPage=Initial Page\ninitialView=Initial View\ninsert=Insert\ninsertColumnBefore=Insert Column Left\ninsertColumnAfter=Insert Column Right\ninsertDiagramFromClipboard=Insert Diagram from Clipboard\ninsertEllipse=Insert Ellipse\ninsertImage=Insert Image\ninsertHorizontalRule=Insert Horizontal Rule\ninsertLink=Insert Link\ninsertPage=Insert Page\ninsertRectangle=Insert Rectangle\ninsertRhombus=Insert Rhombus\ninsertRowBefore=Insert Row Above\ninsertRowAfter=Insert Row After\ninsertText=Insert Text\ninserting=Inserting\ninstallApp=Install App\ninvalidFilename=Diagram names must not contain the following characters: / | : ; { } < > & + ? = "\ninvalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://www.drawio.com/doc/faq/license-drawio-confluence-jira-cloud">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\ninvertSelection=Invert Selection\nisometric=Isometric\nios=iOS\nitalic=Italic\nkennedy=Kennedy\nkeyboardShortcuts=Keyboard Shortcuts\nlabels=Labels\nlabelPadding=Label Padding\nlabelWidth=Label Width\nlayers=Layers\nlandscape=Landscape\nlanguage=Language\nleanMapping=Lean Mapping\nlastChange=Last change {1} ago\nlessThanAMinute=less than a minute\nlibavoidAutoRoute=Auto-route around shapes\nlibavoidUnavailable=Orthogonal routing is not available in this browser.\nlicensingError=Licensing Error\nlicenseHasExpired=The license for {1} has expired on {2}. Click here.\nlicenseRequired=This feature requires draw.io to be licensed.\nlicenseWillExpire=The license for {1} will expire on {2}. Click here.\nlight=Light\nlineJumps=Line Jumps\nlinkAccountRequired=If the diagram is not public a Google account is required to view the link.\nlinkIcons=Link Icons\nlinkText=Link Text\ntooltipIcons=Tooltip Icons\nlist=List\nminute=minute\nminutes=minutes\nhours=hours\ndays=days\nmonths=months\nyears=years\nrestartForChangeRequired=Changes will take effect after a restart of the application.\nlaneColor=Lanecolor\nlanguageCode=Language Code\nlastModified=Last modified\nlayout=Layout\nleft=Left\nleftAlign=Left Align\nleftToRight=Left to Right\nlibraryTooltip=Drag and drop shapes here or click + to insert. Double click to edit.\nlightbox=Lightbox\nlightboxAnimationHint=Plays automatically when the page is shown in lightbox mode.\nline=Line\nlineend=Line End\nlineheight=Line Height\nlinestart=Line Start\nlinewidth=Linewidth\nlink=Link\nlinks=Links\nloading=Loading\nlock=Lock\nlocked=Locked\nlockUnlock=Lock/Unlock\nloggedOut=Logged Out\nlogIn=log in\nloop=Loop\nlucidchart=Lucidchart\nmaps=Maps\nmathematicalTypesetting=Mathematical Typesetting\nmakeCopy=Make a Copy\nmanual=Manual\nmaximize=Maximize\nmerge=Merge\nmermaid=Mermaid\nmethod=Method\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nminimize=Minimize\nmisc=Misc\nmockups=Mockups\nmodern=Modern\nmodificationDate=Modification date\nmodifiedBy=Modified by\nmore=More\nmoreResults=More Results\nmoreShapes=More Shapes\nmove=Move\nmoveToFolder=Move to Folder\nmoving=Moving\nmoveSelectionTo=Move Selection to {1}\nmultipleValues=Multiple values\nmyDrive=My Drive\nmyFiles=My Files\nname=Name\nnavigation=Navigation\nnetwork=Network\nnetworking=Networking\nnew=New\nnewChat=New Chat\nnewLibrary=New Library\nnextPage=Next Page\nno=No\nnoPickFolder=No, pick folder\nnoAttachments=No attachments found\nnoColor=No Color\nnoFiles=No Files\nnoFileSelected=No file selected\nnoAnimationsInDiagram=No animations found in diagram\nnoLibraries=No libraries found\nnoMoreResults=No more results\nnone=None\nnoOtherViewers=No other viewers\nnoPlugins=No plugins\nnoPreview=No preview\nnoResponse=No response from server\nnoResultsFor=No results for \'{1}\'\nnoRevisions=No revisions\nnoSearchResults=No search results found\nnoStepsYet=No steps yet. Add the first step below.\nnoPageContentOrNotSaved=No anchors found on this page or it hasn\'t been saved yet\nnormal=Normal\nnorth=North\nnotADiagramFile=Not a diagram file\nnotALibraryFile=Not a library file\nnotAvailable=Not available\nnotAUtf8File=Not a UTF-8 file\nnotConnected=Not connected\nnote=Note\nnotes=Notes\nnotion=Notion\nnotSatisfiedWithImport=Not satisfied with the import?\nnotUsingService=Not using {1}?\nnumberedList=Numbered List\noffline=Offline\naddToLibrary=Add to Library\nanimation=Animation\nbool=Boolean\ncannotMoveOneDrive=Moving a file between accounts is not supported yet.\ncode=Code\ncolor=Color\ndispName=Display Name\nenum=Enumeration\nenumList=Enum List\nfast=Fast\nfloat=Float\nforever=Forever\nint=Int\ninvalid=invalid\nloops=Loops\nmedium=Medium\nslow=Slow\nspeed=Speed\nstring=String\nmanage=Manage\nofflineLanguages=Languages available offline\nok=OK\noneDrive=OneDrive\nonline=Online\nopacity=Opacity\nopen=Open\nopenArrow=Open Arrow\nopenExistingDiagram=Open Existing Diagram\nopenFile=Open File\nopenFrom=Open from\nopenLibrary=Open Library\nopenLibraryFrom=Open Library from\nopenLink=Open Link\nopenInNewWindow=Open in New Window\nopenInThisWindow=Open in This Window\nopenIt=Open {1}\nopenRecent=Open Recent\nopenRepairedCopy=Open repaired copy\nopenSupported=Supported formats are files saved from this software (.xml), .vsdx and .gliffy\noptions=Options\norganic=Organic\norgChart=Org Chart\northogonal=Orthogonal\northogonalRouting=Orthogonal Routing\notherViewer=other viewer\notherViewers=other viewers\noutline=Outline\noval=Oval\npage=Page\npageContent=Page Content\npageNotFound=Page not found\npageWithNumber=Page-{1}\npages=Pages\npageTabs=Page Tabs\npageView=Page View\npageSetup=Page Setup\npageScale=Page Scale\npan=Pan\npanTooltip=Space+Drag to pan\npaperSize=Paper Size\npattern=Pattern\nparallels=Parallels\npaste=Paste\npasteData=Paste Data\npasteHere=Paste Here\npasteResponse=Paste Response\npasteSize=Paste Size\npasteStyle=Paste Style\npasteTextStyle=Paste Text Style\nperimeter=Perimeter\npermissionAnyone=Anyone can edit\npermissionAuthor=Owner and admins can edit\npickFolder=Pick a folder\npickLibraryDialogTitle=Select Library\npublicDiagramUrl=Public URL of the diagram\nplaceholders=Placeholders\nplantUml=PlantUML\nplugins=Plugins\npluginUrl=Plugin URL\npluginWarning=The page has requested to load the following plugin(s):\n \n {1}\n \n Would you like to load these plugin(s) now?\n \n NOTE : Only allow plugins to run if you fully understand the security implications of doing so.\n\nplusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone).\npolygon=Polygon\nportrait=Portrait\npoint=Point\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\npresentationMode=Presentation Mode\nprint=Print\nprocEng=Process Engineering\nproject=Project\npriority=Priority\nprocessForHiringNewEmployee=Process for hiring a new employee\npromptOnly=Prompt Only\npromptTooLarge=Only {1} characters allowed in the free version using the draw.io model\npromptWithDiagram=Prompt with Diagram\npromptWithSelection=Prompt with Selection\nproperties=Properties\npublish=Publish\nquickStart=Quick Start Video\nrack=Rack\nradial=Radial\nradialTree=Radial Tree\nreadOnly=Read-only\nreconnecting=Reconnecting\nrecentlyUpdated=Recently Updated\nrecentlyViewed=Recently Viewed\nrectangle=Rectangle\nredirectToNewApp=This file was created or modified in a newer version of this app. You will be redirected now.\nrealtimeTimeout=It looks like you\'ve made a few changes while offline. We\'re sorry, these changes cannot be saved.\nredo=Redo\nrefresh=Refresh\nregularExpression=Regular Expression\nrelative=Relative\nrelativeUrlNotAllowed=Relative URL not allowed\nretry=Retry\nrememberMe=Remember Me\nrememberThisSetting=Remember This Setting\nremoveFormat=Clear Formatting\nremoveFromGroup=Remove from Group\nremoveIt=Remove {1}\nremoveWaypoint=Remove Waypoint\nrename=Rename\nrenamed=Renamed\nrenameIt=Rename {1}\nrenaming=Renaming\nreplace=Replace\nreplaceIt={1} already exists. Do you want to replace it?\nreplaceExistingDrawing=Replace Existing Drawing\nrequired=required\nrequirementDiagram=Requirement Diagram\nresetView=Reset View\nresize=Resize\nresizeLargeImages=Do you want to resize large images to make the application run faster?\nretina=Retina\nresponsive=Responsive\nrestore=Restore\nrestoreBackupCopy=Open backup as copy\nrecover=Recover…\nrecoverTitle=Recover file\nrecoverVersionFrom=Version from {1}\nrecoverPreviousVersion=Previous version\nrecoveryVersionDesc=A previously saved version. Complete, but any changes made since then are not included.\nrecoveryRepairedDesc=The current file with a best-effort repair. Recent, but content after the damaged point may be missing.\nrecoveryWarning=This is a best-effort recovery and may be missing content. It will open as a new unsaved copy and your original file is not changed. Continue?\nrestoring=Restoring\nretryingIn=Retrying in {1} second(s)\nretryingLoad=Load failed. Retrying...\nretryingLogin=Login time out. Retrying...\nreverse=Reverse\nrevision=Revision\nrevisionHistory=Revision History\nrhombus=Rhombus\nright=Right\nrightAlign=Right Align\nrightToLeft=Right to Left\nrotate=Rotate\nrotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees\nrotation=Rotation\nrounded=Rounded\nrunLastLayout=Run Last Layout\nsave=Save\nsaveAndExit=Save & Exit\nsaveAs=Save as\nsaveAsXmlFile=Save as XML file?\nsaved=Saved\nsaveDiagramFirst=Please save the diagram first\nsaveDiagramsTo=Save diagrams to\nsaveLibrary403=Insufficient permissions to edit this library\nsaveLibrary500=There was an error while saving the library\nsaveLibraryReadOnly=Could not save library while read-only mode is active\nsaving=Saving\nscratchpad=Scratchpad\nscrollbars=Scrollbars\nsearch=Search\nsearchImages=Search Images\nsearchShapes=Search Shapes\nsearchShapesInOpenLibraries=Search Shapes in Open Libraries\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectedPage=Selected Page\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselection=Selection\nselectNone=Select None\nselectObjectsInLayer=Select Objects in Layer\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nsequenceDiagram=Sequence Diagram\nserviceUnavailableOrBlocked=Service unavailable or blocked\nsessionExpired=Your session has expired. Please refresh the browser window.\nsessionTimeoutOnSave=Your session has timed out and you have been disconnected from the Google Drive. Press OK to login and save.\nsetAsDefaultStyle=Set as Default Style\nsettings=Settings\nshadow=Shadow\nshadows=Shadows\nshape=Shape\nshapeDeleted=Shape deleted\nshapes=Shapes\nshare=Share\nshareCursor=Share Mouse Cursor\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsaveItToGoogleDriveToCollaborate=You\'ll need to save "{1}" to Google Drive before you can collaborate.\nsaveToGoogleDrive=Save to Google Drive\nsharp=Sharp\nshow=Show\nshowRemoteCursors=Show Remote Mouse Cursors\nsidebarTooltip=Click or drag and drop shapes. Shift+click to change selection. Alt+click to insert and connect.\nsigns=Signs\nsignOut=Sign out\nsimple=Simple\nsimpleArrow=Simple Arrow\nsimpleViewer=Simple Viewer\nsize=Size\nsketch=Sketch\nsmoothing=Smoothing\nsnapToGrid=Snap to Grid\nsolid=Solid\nsortPages=Sort Pages\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstateDiagram=State Diagram\nstandard=Standard\nstartDrawing=Start Drawing\nstopDrawing=Stop Drawing\nstarting=Starting\nstraight=Straight\nstrikethrough=Strikethrough\nstrokeColor=Line Color\nstress=Stress\nstyle=Style\nsubscript=Subscript\nsummary=Summary\nsuperscript=Superscript\nsupport=Support\nswap=Swap\nswimlaneDiagram=Swimlane Diagram\nsysml=SysML\ntags=Tags\ntable=Table\ntables=Tables\ntakeOver=Take Over\ntargetSpacing=Target Spacing\ntemplate=Template\ntemplates=Templates\ntext=Text\ntextAlignment=Text Alignment\ntextOpacity=Text Opacity\ntheme=Theme\ntimeout=Timeout\ntitle=Title\nto=to\ntoBack=To Back\ntoFront=To Front\ntooLargeUseDownload=Too large, use download instead.\ntoolbar=Toolbar\ntooltips=Tooltips\ntop=Top\ntopAlign=Top Align\ntopLeft=Top Left\ntopRight=Top Right\ntransparent=Transparent\ntransparentBackground=Transparent Background\ntrello=Trello\ntryAgain=Try again\ntryOpeningViaThisPage=Try opening via this page, then click "Open with draw.io" button in the top right corner.\nturn=Rotate Shape Only by 90°\ntype=Type\ntypeSlashToSearch=Type / to search\numl=UML\nunassigned=Unassigned\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunlock=Unlock\nunmerge=Unmerge\nunsavedChanges=Unsaved changes\nunsavedChangesClickHereToSave=Unsaved changes. Click here to save.\nuntitled=Untitled\nuntitledDiagram=Untitled Diagram\nuntitledLayer=Untitled Layer\nuntitledLibrary=Untitled Library\nunknownError=Unknown error\nunknownUser=Unknown user\nupdateDiagramFromClipboard=Update diagram from clipboard\nupdateExistingDrawing=Update existing drawing\nupdateFile=Update {1}\nupdatingDocument=Updating document. Please wait...\nupdatingPreview=Updating preview. Please wait...\nupdatingSelection=Updating selection. Please wait...\nupload=Upload\nurl=URL\nuseBlackAndWhite=Use Black and White\nuseCurrent=Use Current\nuseCurrentSettings=Use Current Settings\nuseOffline=Use Offline\nuserDefined=User-defined\nuseRootFolder=Use root folder?\nuserManual=User Manual\nvertical=Vertical\nverticalFlow=Vertical Flow\nverticalTree=Vertical Tree\nview=View\nviewerSettings=Viewer Settings\nviewUrl=Link to view: {1}\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwhere=Where\nwidth=Width\nwiki=Wiki\nwordWrap=Word Wrap\nwritingDirection=Writing Direction\nyes=Yes\nyourEmailAddress=Your email address\nzoom=Zoom\nzoomIn=Zoom In\nzoomOut=Zoom Out\nbusinessprocess=Business Processes\ncharts=Charts\nengineering=Engineering\nflowcharts=Flowcharts\ngmdl=Material Design\nmindmaps=Mindmaps\nnetworkdiagrams=Network Diagrams\nnothingIsSelected=Nothing is selected\nother=Other\nsoftwaredesign=Software Design\nvenndiagrams=Venn Diagrams\nwebEmailOrOther=Web, email or any other internet address\nwebLink=Web Link\nwireframes=Wireframes\nproperty=Property\nvalue=Value\nshowMore=Show More\nshowLess=Show Less\nmyDiagrams=My Diagrams\nallDiagrams=All Diagrams\nrecentlyUsed=Recently Used\nlistView=List View\ngridView=Grid View\nresultsFor=Results for \'{1}\'\noneDriveCharsNotAllowed=The following characters are not allowed: ~ " # % * : < > ? / { | }\noneDriveInvalidDeviceName=The specified device name is invalid\nofficeNotLoggedOD=You are not logged in to OneDrive. Please open draw.io task pane and login first.\nofficeSelectSingleDiag=Please select a single draw.io diagram only without other contents.\nofficeSelectDiag=Please select a draw.io diagram.\nofficeCannotFindDiagram=Cannot find a draw.io diagram in the selection\nnoDiagrams=No diagrams found\nauthFailed=Authentication failed\nofficeFailedAuthMsg=Unable to successfully authenticate user or authorize application.\nconvertingDiagramFailed=Converting diagram failed\nofficeCopyImgErrMsg=Due to some limitations in the host application, the image could not be inserted. Please manually copy the image then paste it to the document.\ninsertingImageFailed=Inserting image failed\nofficeCopyImgInst=Instructions: Right-click the image below. Select "Copy image" from the context menu. Then, in the document, right-click and select "Paste" from the context menu.\nfolderEmpty=Folder is empty\nrecent=Recent\nsharedWithMe=Shared With Me\nsharepointSites=Sharepoint Sites\nerrorFetchingFolder=Error fetching folder items\nerrorAuthOD=Error authenticating to OneDrive\nofficeMainHeader=Adds draw.io diagrams to your document.\nofficeStepsHeader=This add-in performs the following steps:\nofficeStep1=Connects to Microsoft OneDrive, Google Drive or your device.\nofficeStep2=Select a draw.io diagram.\nofficeStep3=Insert the diagram into the document.\nofficeAuthPopupInfo=Please complete the authentication in the pop-up window.\nofficeSelDiag=Select draw.io Diagram:\nfiles=Files\nshared=Shared\nsharepoint=Sharepoint\nofficeManualUpdateInst=Instructions: Copy draw.io diagram from the document. Then, in the box below, right-click and select "Paste" from the context menu.\nofficeClickToEdit=Click icon to start editing:\npasteDiagram=Paste draw.io diagram here\nconnectOD=Connect to OneDrive\nselectChildren=Select Children\nselectSiblings=Select Siblings\nselectParent=Select Parent\nselectDescendants=Select Descendants\nlastSaved=Last saved {1} ago\nresolve=Resolve\nreopen=Re-open\nshowResolved=Show Resolved\nreply=Reply\nobjectNotFound=Object not found\nreOpened=Re-opened\nmarkedAsResolved=Marked as resolved\nnoCommentsFound=No comments found\nmentionNoNotify=People you mention are not notified\ncomments=Comments\ntimeAgo={1} ago\nconfluenceCloud=Confluence Cloud\nlibraries=Libraries\nconfAnchor=Confluence Page Anchor\nconfTimeout=The connection has timed out\nconfSrvTakeTooLong=The server at {1} is taking too long to respond.\nconfCannotInsertNew=Cannot insert draw.io diagram to a new Confluence page\nconfSaveTry=Please save the page and try again.\nconfCannotGetID=Unable to determine page ID\nconfContactAdmin=Please contact your Confluence administrator.\nreadErr=Read Error\neditingErr=Editing Error\nconfExtEditNotPossible=This diagram cannot be edited externally. Please try editing it while editing the page\nconfEditedExt=Diagram/Page edited externally\ndiagNotFound=Diagram Not Found\nconfEditedExtRefresh=Diagram/Page is edited externally. Please refresh the page.\nconfCannotEditDraftDelOrExt=Cannot edit diagrams in a draft page, diagram is deleted from the page, or diagram is edited externally. Please check the page.\nretBack=Return back\nconfDiagNotPublished=The diagram does not belong to a published page\ncreatedByDraw=Created by draw.io\nfilenameShort=Filename too short\ninvalidChars=Invalid characters\nalreadyExst={1} already exists\ndraftReadErr=Draft read error\ndiagCantLoad=Diagram cannot be loaded\ndraftWriteErr=Draft write error\ndraftCantCreate=Draft could not be created\nconfDuplName=Duplicate diagram name detected. Please pick another name.\nconfSessionExpired=Looks like your session expired. Log in again to keep working.\nlogin=Login\ndrawPrev=draw.io preview\ndrawDiag=draw.io diagram\ninvalidCallFnNotFound=Invalid Call: {1} not found\ninvalidCallErrOccured=Invalid Call: An error occurred, {1}\nanonymous=Anonymous\nconfGotoPage=Go to containing page\nshowComments=Show Comments\nconfError=Error: {1}\ngliffyImport=Gliffy Import\ngliffyImportInst1=Click the "Start Import" button to import all Gliffy diagrams to draw.io.\ngliffyImportInst2=Please note that the import procedure will take some time and the browser window must remain open until the import is completed.\nstartImport=Start Import\ndrawConfig=draw.io Configuration\ncustomLib=Custom Libraries\ncustomTemp=Custom Templates\npageIdsExp=Page IDs Export\ndrawReindex=draw.io re-indexing\nworking=Working\ndrawConfigNotFoundInst=draw.io Configuration Space (DRAWIOCONFIG) does not exist. This space is needed to store draw.io configuration files and custom libraries/templates.\ncreateConfSp=Create Config Space\nunexpErrRefresh=Unexpected error, please refresh the page and try again.\nconfigJSONInst=Write draw.io JSON configuration in the editor below then click save. If you need help, please refer to\nthisPage=this page\ncurCustLib=Current Custom Libraries\nlibName=Library Name\ndrawConfID=draw.io Config ID\naddLibInst=Click the "Add Library" button to upload a new library.\naddLib=Add Library\ncustomTempInst1=Custom templates are draw.io diagrams saved in children pages of\ncustomTempInst2=For more details, please refer to\ntempsPage=Templates page\npageIdsExpInst1=Select export target, then click the "Start Export" button to export all pages IDs.\npageIdsExpInst2=Please note that the export procedure will take some time and the browser window must remain open until the export is completed.\nstartExp=Start Export\nrefreshDrawIndex=Refresh draw.io Diagrams Index\nreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.\nreindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.\nreindexInst3=Indexing pauses while the computer is asleep or offline and resumes when the connection returns, so keep the computer awake until "Re-indexing finished" is shown.\nstartIndexing=Start Indexing\nconfAPageFoundFetch=Page "{1}" found. Fetching\nconfAAllDiagDone=All {1} diagrams processed. Process finished.\nconfAStartedProcessing=Started processing page "{1}"\nconfAAllDiagInPageDone=All {1} diagrams in page "{2}" processed successfully.\nconfAPartialDiagDone={1} out of {2} {3} diagrams in page "{4}" processed successfully.\nconfAUpdatePageFailed=Updating page "{1}" failed.\nconfANoDiagFoundInPage=No {1} diagrams found in page "{2}".\nconfAFetchPageFailed=Fetching the page failed.\nconfANoDiagFound=No {1} diagrams found. Process finished.\nconfASearchFailed=Searching for {1} diagrams failed. Please try again later.\nconfAGliffyDiagFound={2} diagram "{1}" found. Importing\nconfAGliffyDiagImported={2} diagram "{1}" imported successfully.\nconfASavingImpGliffyFailed=Saving imported {2} diagram "{1}" failed.\nconfAImportedFromByDraw=Imported from "{1}" by draw.io\nconfAImportGliffyFailed=Importing {2} diagram "{1}" failed.\nconfAFetchGliffyFailed=Fetching {2} diagram "{1}" failed.\nconfACheckBrokenDiagLnk=Checking for broken diagrams links.\nconfADelDiagLinkOf=Deleting diagram link of "{1}"\nconfADupLnk=(duplicate link)\nconfADelDiagLnkFailed=Deleting diagram link of "{1}" failed.\nconfAUnexpErrProcessPage=Unexpected error during processing the page with id: {1}\nconfADiagFoundIndex=Diagram "{1}" found. Indexing\nconfADiagIndexSucc=Diagram "{1}" indexed successfully.\nconfAIndexDiagFailed=Indexing diagram "{1}" failed.\nconfASkipDiagOtherPage=Skipped "{1}" as it belongs to another page!\nconfADiagUptoDate=Diagram "{1}" is up to date.\nconfACheckPagesWDraw=Checking pages having draw.io diagrams.\nconfAErrOccured=An error occurred!\nsavedSucc=Saved successfully\nconfASaveFailedErr=Saving failed (unexpected error)\ncharacter=Character\nconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachment\nconfALibPageDesc=This page contains draw.io custom libraries as attachments\nconfATempPageDesc=This page contains draw.io custom templates as attachments\nconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templates\nconfANoCustLib=No Custom Libraries\ndelFailed=Delete failed!\nshowID=Show ID\nconfAIncorrectLibFileType=Incorrect file type. Libraries should be XML files.\nuploading=Uploading\nconfALibExist=This library already exists\nconfAUploadSucc=Uploaded successfully\nconfAUploadFailErr=Upload failed (unexpected error)\nhiResPreview=High Resolution Preview\nofficeNotLoggedGD=You are not logged in to Google Drive. Please open draw.io task pane and login first.\nofficePopupInfo=Please complete the process in the pop-up window.\npickODFile=Pick OneDrive File\ncreateODFile=Create OneDrive File\npickGDriveFile=Pick Google Drive File\ncreateGDriveFile=Create Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\ntryVssDraw=Try importing the file at {1}\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nminTwoPoints=At least 2 points required\nconfEditDraftDelOrExt=This diagram is in a draft page, is deleted from the page, or is edited externally. It will be saved as a new attachment version and may not be reflected in the page.\nconfDiagEditedExt=Diagram is edited in another session. It will be saved as a new attachment version but the page will show other session\'s modifications.\nmacroNotFound=Macro Not Found\nconfAInvalidPageIdsFormat=Incorrect Page IDs file format\nconfACollectingCurPages=Collecting current pages\nconfABuildingPagesMap=Building pages mapping\nconfAProcessDrawDiag=Started processing imported draw.io diagrams\nconfAProcessDrawDiagDone=Finished processing imported draw.io diagrams\nconfAProcessImpPages=Started processing imported pages\nconfAErrPrcsDiagInPage=Error processing draw.io diagrams in page "{1}"\nconfAPrcsDiagInPage=Processing draw.io diagrams in page "{1}"\nconfAImpDiagram=Importing diagram "{1}"\nconfAImpDiagramFailed=Importing diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\nconfAImpDiagramError=Error importing diagram "{1}". Cannot fetch or save the diagram. Cannot fix this diagram links.\nconfAUpdateDgrmCCFailed=Updating link to diagram "{1}" failed.\nconfImpDiagramSuccess=Updating diagram "{1}" done successfully.\nconfANoLnksInDrgm=No links to update in: {1}\nconfAUpdateLnkToPg=Updated link to page: "{1}" in diagram: "{2}"\nconfAUpdateLBLnkToPg=Updated lightbox link to page: "{1}" in diagram: "{2}"\nconfAUpdateLnkBase=Updated base URL from: "{1}" to: "{2}" in diagram: "{3}"\nconfAPageIdsImpDone=Page IDs import finished\nconfAPrcsMacrosInPage=Processing draw.io macros in page "{1}"\nconfAErrFetchPage=Error fetching page "{1}"\nconfAFixingMacro=Fixing macro of diagram "{1}"\nconfAErrReadingExpFile=Error reading export file\nconfAPrcsDiagInPageDone=Processing draw.io diagrams in page "{1}" finished\nconfAFixingMacroSkipped=Fixing macro of diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\npageIdsExpTrg=Export target\nconfALucidDiagImgImported={2} diagram "{1}" image extracted successfully\nconfASavingLucidDiagImgFailed=Extracting {2} diagram "{1}" image failed\nconfGetInfoFailed=Fetching file info from {1} failed.\nconfCheckCacheFailed=Cannot get cached file info.\nconfReadFileErr=Cannot read "{1}" file from {2}.\nconfSaveCacheFailed=Unexpected error. Cannot save cached file\norgChartType=Org Chart Type\nlinear=Linear\nhanger2=Hanger 2\nhanger4=Hanger 4\nfishbone1=Fishbone 1\nfishbone2=Fishbone 2\n1ColumnLeft=Single Column Left\n1ColumnRight=Single Column Right\nsmart=Smart\nparentChildSpacing=Parent Child Spacing\nsiblingSpacing=Sibling Spacing\nconfNoPermErr=Sorry, you don\'t have enough permissions to view this embedded diagram from page {1}\ncopyAsImage=Copy as Image\ncopyAsText=Copy as Text\ncopyAsSvg=Copy as SVG\nlucidImport=Lucidchart Import\nlucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.\ninstallFirst=Please install {1} first\ndrawioChromeExt=draw.io Chrome Extension\nloginFirstThen=Please login to {1} first, then {2}\nerrFetchDocList=Error: Couldn\'t fetch documents list\nbuiltinPlugins=Built-in Plugins\nextPlugins=External Plugins\nbackupFound=Backup file found\nchromeOnly=This feature only works in Google Chrome\nmsgDeleted=This message has been deleted\nconfAErrFetchDrawList=Error fetching diagrams list. Some diagrams are skipped.\nconfAErrCheckDrawDiag=Cannot check diagram {1}\nconfAErrFetchPageList=Error fetching pages list\nconfADiagImportIncom={1} diagram "{2}" is imported partially and may have missing shapes\ninvalidSel=Invalid selection\ndiagNameEmptyErr=Diagram name cannot be empty\nopenDiagram=Open Diagram\nnewDiagram=New diagram\neditable=Editable\nconfAReimportStarted=Re-import {1} diagrams started...\nspaceFilter=Filter by Spaces\ncurViewState=Current Viewer State\npageLayers=Page and Layers\ncustomize=Customize\nfirstPage=First Page (All Layers)\ncurEditorState=Current Editor State\nnoAnchorsFound=No anchors found\nattachment=Attachment\ncurDiagram=Current Diagram\nrecentDiags=Recent Diagrams\ncsvImport=CSV Import\nchooseFile=Choose a File...\nchoose=Choose\ngdriveFname=Google Drive filename\nwidthOfViewer=Width of the Viewer (px)\nheightOfViewer=Height of the Viewer (px)\nautoSetViewerSize=Automatically set the size of the viewer\nthumbnail=Thumbnail\nprevInDraw=Preview in draw.io\nonedriveFname=OneDrive filename\ndiagFname=Diagram filename\ndiagUrl=Diagram URL\nshowDiag=Show Diagram\ndiagPreview=Diagram Preview\ncsvFileUrl=CSV File URL\ngenerate=Generate\nselectDiag2Insert=Please select a diagram to insert it.\nerrShowingDiag=Unexpected error. Cannot show diagram\nnoRecentDiags=No recent diagrams found\nfetchingRecentFailed=Failed to fetch recent diagrams\nuseSrch2FindDiags=Use the search box to find draw.io diagrams\ncantReadChckPerms=Cannot read the specified diagram. Please check you have read permission on that file.\ncantFetchChckPerms=Cannot fetch diagram info. Please check you have read permission on that file.\nsearchFailed=Searching failed. Please try again later.\nplsTypeStr=Please type a search string.\nunsupportedFileChckUrl=Unsupported file. Please check the specified URL\ndiagNotFoundChckUrl=Diagram not found or cannot be accessed. Please check the specified URL\ncsvNotFoundChckUrl=CSV file not found or cannot be accessed. Please check the specified URL\ncantReadUpload=Cannot read the uploaded diagram\nselect=Select\nerrCantGetIdType=Unexpected Error: Cannot get content id or type.\nerrGAuthWinBlocked=Error: Google Authentication window blocked\nauthDrawAccess=Authorize draw.io to access {1}\nconnTimeout=The connection has timed out\nerrAuthSrvc=Error authenticating to {1}\nplsSelectFile=Please select a file\nmustBgtZ={1} must be greater than zero\ncantLoadPrev=Cannot load file preview.\nerrAccessFile=Error: Access Denied. You do not have permission to access "{1}".\nnoPrevAvail=No preview is available.\npersonalAccNotSup=Personal accounts are not supported.\nerrSavingTryLater=Error occurred during saving, please try again later.\nplsEnterFld=Please enter {1}\ninvalidDiagUrl=Invalid Diagram URL\nunsupportedVsdx=Unsupported vsdx file\nunsupportedImg=Unsupported image file\nunsupportedFormat=Unsupported file format\nplsSelectSingleFile=Please select a single file only\nattCorrupt=Attachment file "{1}" is corrupted\nloadAttFailed=Failed to load attachment "{1}"\nembedDrawDiag=Embed draw.io Diagram\naddDiagram=Add Diagram\nembedDiagram=Embed Diagram\neditOwningPg=Edit Owning Page\ndeepIndexing=Deep Indexing (including diagrams that aren\'t used in any page)\nconfADeepIndexStarted=Deep indexing started\nconfADeepIndexDone=Deep indexing done\nofficeNoDiagramsSelected=No diagrams found in the selection\nofficeNoDiagramsInDoc=No diagrams found in the document\nofficeNotSupported=This feature is not supported in this host application\nsomeImagesFailed={1} out of {2} failed due to the following errors\nimportingNoUsedDiagrams=Importing {1} Diagrams not used in pages\nimportingDrafts=Importing {1} Diagrams in drafts\nprocessingDrafts=Processing drafts\nupdatingDrafts=Updating drafts\nupdateDrafts=Update drafts\nnotifications=Notifications\ndrawioImp=draw.io Import\nconfALibsImp=Importing draw.io Libraries\nconfALibsImpFailed=Importing {1} library failed\ncontributors=Contributors\ndrawDiagrams=draw.io Diagrams\nerrFileNotFoundOrNoPer=Error: Access Denied. File not found or you do not have permission to access "{1}" on {2}.\nconfACheckPagesWEmbed=Checking pages having embedded draw.io diagrams.\nconfADelBrokenEmbedDiagLnk=Removing broken embedded diagram links\nreplaceWith=Replace with\nreplaceAll=Replace All\nconfASkipDiagModified=Skipped "{1}" as it was modified after initial import\nreplFind=Replace/Find\nmatchesRepl={1} matches replaced\ndraftErrDataLoss=An error occurred while reading the draft file. The diagram cannot be edited now to prevent any possible data loss. Please try again later or contact support.\nibm=IBM\nlinkToDiagramHint=Add a link to this diagram. The diagram can only be edited from the page that owns it.\nlinkToDiagram=Link to Diagram\nchangedBy=Changed By\nlastModifiedOn=Last Modified on\nsearchResults=Search Results\nshowAllTemps=Show All Templates\nnotionToken=Notion Token\nselectDB=Select Database\nnoDBs=No Databases\ndiagramEdited={1} diagram "{2}" edited\nconfDraftPermissionErr=Draft cannot be written. Do you have attachment write/read permission on this page?\nconfFileTooBigErr=File size is too large. Pease check "Attachment Maximum Size" of "Attachment Settings" in Confluence Configuration.\nowner=Owner\nrepository=Repository\nbranch=Branch\nmeters=Meters\nteamsNoEditingMsg=Editor functionality is only available in Desktop environment (in MS Teams App or a web browser)\ncontactOwner=Contact Owner\nviewerOnlyMsg=You cannot edit the diagrams in the mobile platform, please use the desktop client or a web browser.\nwebsite=Website\ncheck4Updates=Check for Updates\nattWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...\nconfPartialPageList=We couldn\'t fetch all pages due to an error in Confluence. Continuing using {1} pages only.\nspellCheck=Spell Checker\nnoChange=No Change\nlblToSvg=Convert Labels to SVG\nautoRotateLabel=Rotate with Edge\ntxtSettings=Text Settings\nLinksLost=Links will be lost\narcSize=Arc Size\neditConnectionPoints=Edit Connection Points\nnotInOffline=Not supported while offline\nnotInDesktop=Not supported in Desktop App\nconfConfigSpaceArchived=draw.io Configuration space (DRAWIOCONFIG) is archived. Please restore it first.\nconfACleanOldVerStarted=Cleaning old diagram draft versions started\nconfACleanOldVerDone=Cleaning old diagram draft versions finished\nconfACleaningFile=Cleaning diagram draft "{1}" old versions\nconfAFileCleaned=Cleaning diagram draft "{1}" done\nconfAFileCleanFailed=Cleaning diagram draft "{1}" failed\nconfACleanOnly=Clean Diagram Drafts Only\nbrush=Brush\nopenDevTools=Open Developer Tools\nautoBkp=Automatic Backup\nconfAIgnoreCollectErr=Ignore collecting current pages errors\ndrafts=Drafts\ndraftSaveInt=Draft Save Interval [sec] (0 to disable)\npluginsDisabled=External plugins disabled.\nextExpNotConfigured=External image service is not configured\npathFilename=Path/Filename\nconfAHugeInstances=Very Large Instances\nconfAHugeInstancesDesc=If this instance includes 100,000+ pages, it is faster to request the current instance pages list from Atlassian. Please contact our support for more details.\nchoosePageIDsFile=Choose current page IDs csv file\nchooseDrawioPsgesFile=Choose pages with draw.io diagrams csv file\nprivate=Private\ndiagramTooLarge=The diagram is too large, please reduce its size and try again.\nselectAdminUsers=Select Admin Users\nxyzTeam={1} Team\naddTeamTitle=Adding a new draw.io Team\naddTeamInst1=To create a new draw.io Team, you need to create a new Atlassian group with "drawio-" prefix (e.g, a group named "drawio-marketing").\naddTeamInst2=Then, configure which team member can edit/add configuration, templates, and libraries from this page.\ndrawioTeams=draw.io Teams\nmembers=Members\nadminEditors=Admins/Editors\nallowAll=Allow All\nnoTeams=No teams found\nerrorLoadingTeams=Error loading teams\nnoTeamMembers=No team members found\nerrLoadTMembers=Error loading team members\nerrCreateTeamPage=Error creating team "{1}" page in "draw.io Configuration" space, please check you have the required permissions.\ngotoConfigPage=Please create the space from draw.io "Configuration" page.\nnoAdminsSelected=No admins/editors selected\nerrCreateConfigFile=Error creating "configuration.json" file, please check you have the required permissions.\nerrSetPageRestr=Error setting page restrictions\nnotAdmin4Team=You are not an admin for this team\nconfigUpdated=Configuration updated, restart the editor if you want to work with last configuration.\noutOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.\nconfAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)\nconfA403ErrFaq=There are ({1}) 403 error(s). The current users must have add (write) permissions on all pages and attachments. Even admins sometimes are not allowed to write to some pages via page restrictions\nconfA404ErrFaq=There are ({1}) 404 error(s). The attachment/page is not found. This is due to improper migration or the diagram file (an attachment of the page) is deleted.\nconfA404AttErrFaq=There are ({1}) 404 "File not found" error(s). The diagram file (an attachment of the page) does not exist. If it exists on the same page in the source site, the migration did not copy it, so copy the attachment manually or re-migrate the attachments. If it is missing in the source site also, the diagram was deleted before the migration.\nconfA404NoEditErrFaq=There are ({1}) 404 "Cannot find a page" error(s) for pages that were fetched successfully. These pages exist but could not be updated, this usually means the current user has no edit permission on them (page restrictions) or they are archived. Re-run the process with a user that can edit these pages.\nconfA500ErrFaq=There are ({1}) 500 error(s). An internal server error in Confluence Cloud. Such errors are due to overloading the server and usually fixed by retrying the process.\nconfAOtherErrFaq=There are ({1}) other error(s). Please check the error description. If the description is not clear, please contact our support.\nconfAPageNoEditPerm=The page exists but could not be updated, this usually means the current user has no edit permission on it or the page is archived.\nconfAMacroInComment=draw.io macros inside page comments are not converted, skipped comment "{1}" (id {2})\nconfAReplaceBaseUrl=Replace base URL in diagram links when no page ID mapping is found\ndrawSvgPrev=draw.io SVG preview\ngoogleFonts=Google Fonts\ndiagDupl=Duplicate diagram detected\ndiagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We\'ve created an independent copy. Please open the editor again.\ndiagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.\nconfCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?\nconfCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.\nconfALogsPageDesc=This page contains logs of draw.io long running services as attachments\nconfEditOnlyInPageEditor=Can only be edited within Confluence page editor\nconfEvalWarn=Evaluation License - Not for Production Use\notherUsersEditing=Other user(s) are editing this diagram\nfirstTimeGD=First time to access this file?\ndrawioGDAppNotInstalled=draw.io Google Drive app is not installed, please install it first\nConfDC415Error=Saving drafts is blocked. If you have the "Attachment Checker for Confluence" app, enable "Always allow draw.io attachments" in its File Type Blocking settings. Update the app if that option is missing.\nremove=Remove\nselectPgLyr=Select Page and Layers\nerrGenPreview=There was an error generating a diagram preview. Please consult technical support.\nattAccessErr=Diagram attachment access error: cannot display diagram\nwidthIntOrFixed=Width must be a valid integer or of value \'fixed\'\ndupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected\ncantDupPickDiffName=Could not duplicate diagram. Please choose a different name.\nownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.\ncantDupTryLater=Could not duplicate diagram. Please try again later.\ncantEditLnkd=Cannot edit linked diagram\ndiagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?\ndiagInTemps=draw.io diagrams in templates\ndiagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.\nconfDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.\nconfConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.\ntryCurPageOnErr=Try finding the diagram attachment on the macro page when the linked page fails\nconfAExtSrvcNoSupported=Embedded diagrams from external services or urls are not supported.\ngliffyVersionPinning=Import Gliffy pinned version instead of the latest version\nconfEmbedUpload=For a better editing experience, please use the regular draw.io macro to insert a blank diagram, then from (File menu → Import From → Device...) select the file you want to upload and embed.\nconfPublishErr=Another update conflicted with your publish, please try the operation again\nconfACacheMapping=Cache Page IDs Mapping\nconfARemImpPages=Remember Imported Pages\nconfAGMTitle=Gliffy migration\nconfAGMStoredState=Stored state & reports\nconfAGMTabDryRun=Dry run\nconfAGMTabImport=Import\nconfAGMReadOnly=Read-only\nconfAGMWrites=Writes to pages\nconfAGMLoading=Loading migration state...\nconfAGMLoadFailed=Loading the migration state failed. Reload the page to try again.\nconfAGMStepScan=Scan & scope\nconfAGMStepDryRun=Dry run\nconfAGMStepReview=Review & report\nconfAGMScanTitle=Where your Gliffy diagrams live\nconfAGMScanSub=Scanning reads pages and counts Gliffy macros - it never modifies anything. Scans checkpoint as they go and resume if interrupted. Results are cached: rescanning is manual.\nconfAGMScanSite=Scan site\nconfAGMScanning=Scanning...\nconfAGMResumeScan=Resume scan\nconfAGMRescan=Rescan site\nconfAGMRescanConfirm=Rescan the site? The inventory is rebuilt; dry-run results and review verdicts are kept and re-matched by diagram.\nconfAGMScanMetaDone=Last scan finished {1} after {2} - {3} spaces contain Gliffy - {4} pages - {5} diagrams\nconfAGMScanMetaPaused=Scan paused - resumes from its checkpoint\nconfAGMScanMetaNone=Not scanned yet - scan to build the space inventory\nconfAGMPause=Pause\nconfAGMSearchSpaces=Search spaces by name or key...\nconfAGMSelectAll=Select all {1} with diagrams\nconfAGMSelectLive=All except archived ({1})\nconfAGMClear=Clear\nconfAGMShowArchived=Show archived\nconfAGMArchived=archived\nconfAGMSpace=Space\nconfAGMKey=Key\nconfAGMPages=Pages\nconfAGMDiagrams=Diagrams\nconfAGMNotImportable=Not importable\nconfAGMNoSpaces=No spaces yet - run a scan to build the inventory.\nconfAGMSpaceFoot=Showing {1} of {2} spaces, largest first.\nconfAGMSpaceFootMore=Showing the largest {1} of {2} matching spaces - search to narrow.\nconfAGMScope=Scope\nconfAGMScopeTotals={1} spaces - {2} diagrams - {3} pages\nconfAGMStartDryRunArrow=Start dry run →\nconfAGMDryTitle=Dry run - converts locally, changes nothing\nconfAGMDrySub=Every diagram in scope is downloaded and converted in this browser, and every affected page gets a permission check. Nothing is written to Confluence; diagram data never leaves this machine. Safe to close the tab - the run resumes from its last checkpoint.\nconfAGMDryNone=No dry run yet\nconfAGMDryRunning=Dry run in progress\nconfAGMDryPaused=Dry run paused\nconfAGMDryDone=Dry run complete - nothing was changed\nconfAGMInterrupted=interrupted\nconfAGMDone=done\nconfAGMStarted=Started {1}\nconfAGMFinished=finished {1}\nconfAGMStartDry=Start dry run\nconfAGMRerunDry=Run dry run again\nconfAGMResumeCheckpoint=Resume from checkpoint\nconfAGMSafeClose=Safe to close this tab at any time.\nconfAGMGenReport=Generate report\nconfAGMOfProcessed=of {1} processed\nconfAGMConvClean=converted clean\nconfAGMConvWarn=converter warnings\nconfAGMStalePins=version pin warnings\nconfAGMStalePin=The Gliffy macro pins version {1} but the latest is {2} - version pinning is off, so the latest was used; verify the conversion matches what the page displayed\nconfAGMPinnedOld=Imported the pinned version {1}; the latest is {2} - verify this is the version the page really displayed\nconfAGMPinFellBack=The pinned version {1} was not found - the latest ({2}) was used instead\nconfAGMPinResetNotice=draw.io update: Gliffy version pin handling changed - pins are now off by default (cloud Gliffy displays the latest version) and every pin that differs from the latest is flagged for review. The previous dry run used the old rules, so run a fresh dry run.\nconfAGMVersionPinning=Import the Gliffy version pinned in each macro instead of the latest (rarely needed - e.g. content migrated from Confluence Data Center)\nconfAGMPinToggleConfirm=Changing version pinning re-keys every diagram: the current dry run, review verdicts and import state will be discarded, and a fresh dry run is needed. Continue?\nconfAGMAlreadyImp=previously imported\nconfAGMFailed=failed\nconfAGMWriteBlocked=write-blocked\nconfAGMLeft=left\nconfAGMProblems=Problems so far - grouped, full detail in the stored files\nconfAGMNoPageEdit=no page edit\nconfAGMBlockedRow={1} pages ({2} diagrams) this user cannot edit - fix permissions or leave them Gliffy\nconfAGMReasonDraft=Gliffy draft stored on gliffy.com - no attachment to convert\nconfAGMReasonAttMissing=Diagram attachment no longer exists\nconfAGMReasonTooLarge=Exceeds converter limits\nconfAGMReasonConvert=Conversion failed\nconfAGMReasonFetch=Downloading the diagram failed\nconfAGMReasonSave=Saving failed\nconfAGMReasonAttInfo=Attachment lookup failed\nconfAGMReasonOther=Other error\nconfAGMNoEditPerm=No permission to edit "{1}" - its diagrams cannot be imported by this user\nconfAGMDiagConverted=Converted {2} diagram "{1}" (dry run, nothing written)\nconfAGMReviewTitle=Review a sample against the Gliffy previews\nconfAGMReviewSub=Left: the preview image Gliffy stored. Right: a live render of the draw.io conversion - what the page will show after import. Rate with the keyboard; verdicts are saved continuously and feed the report and the import.\nconfAGMReviewNeedsDry=Finish a dry run first - the review works on its results.\nconfAGMSample=Sample\nconfAGMSampleNote=of {1} converted - flagged first, then random across spaces\nconfAGMCustomPct=Custom %\nconfAGMApply=Apply\nconfAGMFilterSample=Sample\nconfAGMFilterUnreviewed=Unreviewed\nconfAGMFilterFlagged=Flagged\nconfAGMFilterFailed=Failed\nconfAGMSideBySide=Side by side\nconfAGMLiveRender=live render of conversion\nconfAGMStoredPreview=stored preview image\nconfAGMNoPreview=No preview image stored by Gliffy - compare against the diagram on its page.\nconfAGMGliffyPreviewAlt=Gliffy preview\nconfAGMNoDrawio=No draw.io version to show.\nconfAGMPreviewFailed=Rendering the conversion failed.\nconfAGMNotConverted=not converted\nconfAGMFailedReason=Not converted ({1}). See the problems list and the report.\nconfAGMFlickHint=A/B - press X or click to flip\nconfAGMConverterWarning=converter warning\nconfAGMNothingHere=Nothing to review in this filter\nconfAGMMatch=Match\nconfAGMMinor=Minor differences\nconfAGMMajor=Major differences\nconfAGMMatchL=match\nconfAGMMinorL=minor\nconfAGMMajorL=major\nconfAGMLeftInSample=left in sample\nconfAGMOfReviewed=of {1} reviewed\nconfAGMNotePlaceholder=Optional note - included in the report\nconfAGMPrivacy=The report contains ratings, notes, diagram names and converter warnings - never diagram contents. Diagram names are only sent to draw.io if you opt in below.\nconfAGMSendNamesOptIn=Include diagram names\nconfAGMSendReport=Send report to draw.io\nconfAGMSendConfirm=Send the migration report summary to draw.io? It contains counts, failure reasons and review verdicts.\nconfAGMSendDone=Report sent to draw.io. Reference: {1} - please quote it when contacting support.\nconfAGMGenerating=Generating report...\nconfAGMReportSaved=Report saved as {1} with the migration state.\nconfAGMOpenState=Open\nconfAGMReportFailed=Generating the report failed.\nconfAGMImpTitle=Import - writes to pages\nconfAGMImpSub=Consumes the latest dry run: scope, permission checks and review verdicts. Gliffy macros are replaced with draw.io macros and a .drawio attachment is added per diagram. Nothing is deleted - Gliffy attachments stay in place and every page edit is a normal Confluence version, so reverting a page restores its Gliffy macros.\nconfAGMImpNeedsDry=Import is disabled until a dry run has completed. Run it from the Dry run tab - it changes nothing.\nconfAGMImpReady={1} diagrams ready\nconfAGMImpSkipFail={1} failed conversions will be skipped and listed\nconfAGMImpBlocked={1} diagrams on {2} blocked pages stay Gliffy until permissions are fixed\nconfAGMImpAll=Import everything that converted\nconfAGMImpAllD=Review verdicts ride along in the log for follow-up\nconfAGMImpHold=Hold back "Major differences"\nconfAGMImpHoldN=Hold back "Major differences" ({1} rated)\nconfAGMImpHoldD=Diagrams rated Major in review stay Gliffy for a later pass\nconfAGMAdvanced=Advanced (defaults are right for almost everyone)\nconfAGMAddLabel=Add a label to every modified page (for CQL follow-up)\nconfAGMCheckDrift=Check for changes since dry run\nconfAGMDriftChecking=Checking pages for changes since the dry run...\nconfAGMDriftResult={1} pages changed and {2} gone since the dry run (checked {3}). Changed pages are re-verified during import.\nconfAGMDriftRecommend=More than 10% drift - running a fresh dry run first is recommended.\nconfAGMDriftUnknown=The dry run is {1} days old. Check for changes before importing.\nconfAGMImpNone=Not started\nconfAGMImpRunning=Import in progress\nconfAGMImpPaused=Import paused\nconfAGMImpDone=Import finished\nconfAGMStartImport=Start import - {1} diagrams\nconfAGMImpConfirm=Start the import? Up to {1} diagrams across {2} pages will be converted to draw.io macros. Nothing is deleted and every page edit is a normal Confluence version.\nconfAGMOfPages=of {1} pages\nconfAGMImported=diagrams imported\nconfAGMSkipped=skipped\nconfAGMErrors=errors\nconfAGMHeldBack=Held back "{1}" (rated Major differences in review)\nconfAGMSkippedFailed=Skipped "{1}" (failed in the dry run: {2})\nconfAGMPageBlocked=Skipped page "{1}" (no edit permission)\nconfAGMReimportPass=Processing pages labeled for re-import...\nconfAGMReassure=Interruptions resume from the last checkpoint - already-imported diagrams are never redone. The import log is stored with the migration state and downloadable.\nconfAGMImpSummary=Import finished {1}: {2} diagrams imported across {3} pages.\nconfAGMImpSummary2={1} held back - {2} skipped (failed) - {3} blocked - {4} errors.\nconfAGMImpSummary3=The run log and report are stored with the migration state.\nconfAGMRunAnother=Run another import\nconfAGMImpReportSaved=Run report saved as {1} with the migration state.\nconfAGMHttpFaq={1} requests failed with 403/404. These are usually permission problems - the API also returns 404 for content the user cannot read. See\nconfAGMFullscreen=Fullscreen\nconfAGMClose=Close\nconfAGMStatePageDesc=State and reports of the Gliffy to draw.io migration. Managed by the draw.io app; do not edit the attachments manually.\nconfABrokenDiagLnk=Broken diagram link (custom content) "{1}"\nconfACCDupEntry=duplicate entry\nconfACCInvalid=invalid content\nconfACCAttMissing=attachment is missing or has an older version\nconfAChkTabTitle=Integrity Check (Beta)\nconfAChkTitle=draw.io Diagrams Integrity Check\nconfAChkInst1=Scans all pages with draw.io macros and checks that every diagram has its attachment, preview image and diagram link (custom content) with the versions the macro points to. It also reports broken, duplicate and unused diagram links.\nconfAChkInst2=The check is read-only and changes nothing. It can take some time and the browser window must remain open until it finishes.\nconfAChkDownloadOpt=Download each diagram and verify its content instead of only checking it exists (slower, detects corrupted files)\nconfAChkStart=Start Integrity Check\nconfAChkStatChecked=Diagrams checked\nconfAChkStatOk=OK\nconfAChkStatBroken=Broken\nconfAChkStatWarn=With warnings\nconfAChkStatCC=Broken diagram links\nconfAChkStatOrphans=Unused embed links\nconfAChkLog=Log\nconfAChkFilterAll=All\nconfAChkFilterIssues=Issues only\nconfAChkProgLinks=Checking diagram links ({1} of {2})\nconfAChkProgPages=Checking pages with {3} macros ({1} of {2})\nconfAChkEta=~{1} remaining\nconfAChkEstimating=estimating…\nconfAChkDiag=Checking diagram "{1}"\nconfAChkDiagOK=Diagram "{1}" is OK\nconfAChkMacroNoName=Found a diagram macro without a diagram name (possibly a never-edited macro)\nconfAChkPageInfoBroken=Diagram "{1}": the page referenced by the macro (by space and title) cannot be resolved\nconfAChkCCMissing=Diagram "{1}": its diagram link (custom content) is missing or broken (the diagram works, but is excluded from search and diagram listings)\nconfAChkCCNoRef=Diagram "{1}": the macro has no diagram link (custom content) reference\nconfAChkCCOther=Diagram "{1}": the macro references a missing diagram link (custom content), but a valid one exists for this diagram\nconfAChkCCMismatch=Diagram "{1}": its diagram link (custom content) does not match the macro (page, name, or version)\nconfAChkDiagPageMissing=Diagram "{1}": the page ({2}) that holds the diagram attachment is not found\nconfAChkAttMissing=Diagram "{1}": the diagram attachment is not found\nconfAChkAttOldVer=Diagram "{1}": the diagram attachment version ({2}) is older than the version in the macro ({3})\nconfAChkAttFetchFailed=Diagram "{1}": fetching the attachments of page ({2}) failed\nconfAChkPrevMissing=Diagram "{1}": the preview image ({2}) is not found\nconfAChkPrevOldVer=Diagram "{1}": the preview image version ({2}) is older than the version in the macro ({3})\nconfAChkPrevOutOfSync=Diagram "{1}": the preview image (of diagram version {2}) is out of sync with the diagram (version {3})\nconfAChkPrevPageFailed=Diagram "{1}": fetching the attachments of the preview image page ({2}) failed\nconfAChkDiagInvalid=Diagram "{1}": the diagram content is not a valid draw.io file\nconfAChkDiagDownFailed=Diagram "{1}": downloading the diagram failed\nconfAChkEmbedCC=Checking embedded diagram links (custom contents)...\nconfAChkOrphanEmbedCC=Embedded diagram link (custom content) "{1}" is not referenced by any macro\nconfAChkSummary=Integrity check finished: {1} macros checked, {2} OK, {3} broken, {4} with warnings. Diagram links (custom contents): {5} broken, {6} unused embedded diagram links\ndelCachedData=Delete Cached Data\nk15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?\ndrawioUninstalled=draw.io has been uninstalled, the editor will now close\nconfAttachmentArchived=Diagram belongs to an archived page and cannot be loaded. Restore the page (ID: {1}) to load it.\nconfDiagramMacroDowngrade=The diagram is saved but the page macro cannot be updated as the diagraam revision in the macro is newer. Please edit the diagram from Confluence page editor.\nDCSave500Error=Another Confluence operation interrupted saving, retry #{1}\nconfAppNotInstalled=draw.io diagrams Confluence App is not installed.\nplsInstallAppInConf=Please install/connect this App in Confluence to be able to access the diagrams (in addition to draw.io Confluence app)\nm365=Microsoft 365\nnodeSpacing=Node Spacing\nrankSpacing=Rank Spacing\npolyline=Polyline\nlayeringStrategy=Layering Strategy\nnetworkSimplex=Network Simplex\nlongestPath=Longest Path\ncoffmanGraham=Coffman-Graham\nweighting=Weighting\nmodelOrder=Model Order\ndescendants=Descendants\nconstraint=Constraint\nfan=Fan\noptimization=Optimization\nedgeLength=Edge Length\nedgeLengthByPosition=Edge Length by Position\ncrossingMinimization=Crossing Minimization\niterations=Iterations\nrepulsivePower=Repulsive Power\nresizeNodes=Resize Nodes\nuseSelectionAsRoot=Use Selection as Root\nuseSelectionAsRoots=Use Selection as Roots\nanonymize=Anonymize\nconnector=Connector\nextractText=Extract Text\nlegacyLayouts=Legacy Layouts\nedgeStyle=Edge Style\ncorners=Corners\nkeepStyle=Keep Existing Style\nopenLucidSite=Open Lucidchart Site in another tab and login to your account, then come back to this tab and click the "Start Import" button again.\npreviewSaveNoPermission=You do not have permission to save the preview image. The source page may be restricted or you may not have edit permission on the page. This only affects this page export to PDF/Word.\npreserveOrigin=Preserve Origin\nsharedStems=Bundle Outgoing Connections\ndraftLoadedWUnpublishedChanges=The diagram has loaded from a draft with unpublished changes. It is different from the published version.\nhachure=Hachure\nhatch=Hatch\ndots=Dots\ncrossHatch=Cross Hatch\nzigzag=ZigZag\nzigzagLine=ZigZag Line\nsysFonts=System Fonts\nwebfonts=Web Fonts\nfontname=Font Name\nfontUrl=Font URL\ncreatingDiagram=Generating diagram. Please wait\nconfAFixPageStorage=Remove invalid page storage format elements (Warning: May cause data loss)\ncfgAiActions=AI Actions (JSON)\ncfgAiConfigs=AI Configs (JSON)\ncfgAiGlobals=AI Globals (JSON)\ncfgAiModels=AI Models (JSON)\ncfgAppendCustomLibraries=Append Custom Libraries\ncfgAppendCustomLibrariesHelp=Custom libraries appear after built-in ones\ncfgAutoCropViewer=Auto Crop Viewer\ncfgAutoCropViewerHelp=Auto-crop viewer to fit diagram bounds\ncfgAutosaveDelay=Autosave Delay (ms)\ncfgBrowserTranslate=Browser Translate\ncfgBrowserTranslateHelp=Mirror diagram text for browser translation engines (e.g. Chrome Translate)\ncfgClaudeApiKey=Claude API Key\ncfgColorNames=Color Names (JSON)\ncfgColorNamesHelp=Map of colour codes to display names (tooltips)\ncfgCompact=Compact UI\ncfgCompactHelp=Enable compact user interface mode\ncfgCompressStyles=Compress Styles\ncfgCompressStylesHelp=Deduplicate repeated inline images and stencils into a shared lookup table. Only readable by draw.io 29.3.1 and later.\ncfgCompressXml=Compress XML\ncfgCompressXmlHelp=Compress XML output in saved files\ncfgCopyOnConnect=Copy on Connect\ncfgCopyOnConnectHelp=Create a copy of the source shape for connections that end on the canvas\ncfgCss=CSS Rules\ncfgCssHelp=CSS rules to customize the draw.io user interface\ncfgCustomCss=Custom CSS (alternative)\ncfgCustomCssHelp=Injected as a separate style element\ncfgCustomTemplates=Custom Templates (JSON)\ncfgCustomTemplatesHelp=Templates added to the sections of the template dialog\ncfgDarkColor=Dark Mode Background\ncfgDarkColorVar=Dark Color CSS Variable\ncfgDebug=Debug\ncfgDebugHelp=Enable debug output\ncfgDefaultAdaptiveColors=Adaptive Colors\ncfgDefaultConnectable=Default Connectable\ncfgDefaultConnectableHelp=Shapes are connectable by default\ncfgDefaultConnectionArrowsEnabled=Connection Arrows\ncfgDefaultConnectionArrowsEnabledHelp=Show arrows when hovering connections\ncfgDefaultDarkGridColor=Default Grid Color (Dark Mode)\ncfgDefaultDarkPageBackgroundColor=Default Page Background (Dark Mode)\ncfgDefaultEdgeLength=Default Edge Length\ncfgDefaultFileType=Default File Type\ncfgDefaultFoldingEnabled=Folding Enabled\ncfgDefaultFoldingEnabledHelp=Enable shape folding (collapse/expand)\ncfgDefaultGridColor=Default Grid Color\ncfgDefaultGridEnabled=Grid Enabled\ncfgDefaultGridEnabledHelp=Show grid on canvas\ncfgDefaultGridSize=Default Grid Size\ncfgDefaultLanguages=Default Languages\ncfgDefaultLanguagesHelp=Language bundles installed for offline use on startup\ncfgDefaultLibraries=Default Libraries\ncfgDefaultLibrariesHelp=Semicolon-separated library keys shown in sidebar on startup\ncfgDefaultPageBackgroundColor=Default Page Background\ncfgDefaultPageVisible=Page Visible\ncfgDefaultPageVisibleHelp=Show page outline on canvas\ncfgDefaultTextStyle=Default Text Style\ncfgDefaultTransparentGroups=Automatic Group Size\ncfgDefaultTransparentGroupsHelp=New groups automatically resize to fit their children (transparentBounds=1)\ncfgDesktopAutoSync=Desktop Auto Sync\ncfgDesktopAutoSyncHelp=Auto-sync when local file changes\ncfgDisableVersioning=Disable Versioning\ncfgDisableVersioningHelp=Disable diagram versioning\ncfgEmbedSvgFonts=Embed SVG Fonts\ncfgEmbedSvgFontsHelp=Default for embedding fonts as data URIs in exported and saved SVG files, can be overridden per file in the file properties\ncfgEmptyDiagramXml=Empty Diagram XML\ncfgEmptyLibraryXml=Empty Library XML\ncfgEnableAi=Enable AI\ncfgEnableAiHelp=Enable AI diagram generation\ncfgEnableAnimations=Enable Animations\ncfgEnableAnimationsHelp=Enable shape and layout animations\ncfgEnableCssDarkMode=CSS Dark Mode\ncfgEnableCssDarkMode2=CSS Dark Mode\ncfgEnableCssDarkMode2Help=Enable CSS-based dark mode for viewer diagrams\ncfgEnableCssDarkModeHelp=Use CSS for dark mode rendering\ncfgEnableCustomGitLabUrl=Enable Custom GitLab URL\ncfgEnableCustomGitLabUrlHelp=Allow ?gitlab= / ?gitlab-id= URL parameters to override the default GitLab server. Enable only for self-hosted GitLab deployments.\ncfgEnableCustomLibraries=Enable Custom Libraries\ncfgEnableCustomLibrariesHelp=Allow open and new library functions\ncfgEnableDistanceGuides=Distance Guides\ncfgEnableDistanceGuidesHelp=Snap shapes to equal distances between the surrounding shapes while moving (default on)\ncfgEnableExportUrl=Enable Export URL\ncfgEnableExportUrlHelp=Enable the export URL feature\ncfgEnableInlineToolbar=Inline Toolbar\ncfgEnableInlineToolbarHelp=Enable the inline toolbar on selection\ncfgEnableLightDarkColors=Light/Dark Colors\ncfgEnableLightDarkColorsHelp=Use CSS light-dark() color function\ncfgEnableLocalFonts=Local Fonts\ncfgEnableLocalFontsHelp=Scan and list locally installed fonts in the font picker\ncfgEnableNativeClipboard=Native Clipboard\ncfgEnableNativeClipboardHelp=Use native system clipboard\ncfgEnablePositionGuides=Position Guides\ncfgEnablePositionGuidesHelp=Snap shapes to the edges and centers of the other shapes while moving (default on)\ncfgEnableSizeGuides=Size Guides\ncfgEnableSizeGuidesHelp=Snap the size of a shape to the sizes of the other shapes while resizing (default on)\ncfgEnableWindowDocking=Window Docking\ncfgEnableWindowDockingHelp=Enable window docking\ncfgExpandLibraries=Expand Libraries\ncfgExpandLibrariesHelp=Libraries expanded by default\ncfgExpandPatternsForPrint=Expand Patterns for Print\ncfgExpandPatternsForPrintHelp=Expand patterns to visible graphics during print/PDF export\ncfgExperimental=Experimental feature\ncfgFitDiagramOnLoad=Fit Diagram on Load\ncfgFitDiagramOnLoadHelp=Fit diagram to window on load\ncfgFitDiagramOnPage=Fit Diagram on Page\ncfgFitDiagramOnPageHelp=Fit diagram to page size\ncfgFoldingIconSize=Folding Icon Size\ncfgFontCss=Font CSS (@font-face rules)\ncfgFontCssHelp=Added before preset colors in the colour dialog\ncfgForceSimpleViewer=Force Simple Viewer\ncfgForceSimpleViewerHelp=Force simple viewer for all diagrams\ncfgForeignObjectImages=Foreign Object Images\ncfgForeignObjectImagesHelp=Replace foreignObject with images\ncfgGeminiApiKey=Gemini API Key\ncfgGenerateSVGs=Generate SVGs\ncfgGenerateSVGsHelp=Generate SVG previews for diagrams\ncfgGlobalVars=Global Variables (JSON)\ncfgGlobalVarsHelp=Global placeholders available in all diagrams\ncfgGptApiKey=OpenAI API Key\ncfgGptUrl=Custom GPT URL\ncfgGridSteps=Grid Steps\ncfgHiResPreview=Hi-Res Preview\ncfgHiResPreviewHelp=Generate high-resolution preview images\ncfgIncludeDiagram=Include Diagram in Export\ncfgIncludeDiagramHelp=Include diagram data in export dialogs\ncfgInlineExtIcons=Inline Icon Search Results\ncfgInlineExtIconsHelp=Insert icon search results as embedded images instead of remote references\ncfgInplaceEdits=In-place Edits\ncfgInplaceEdits2=In-place Edits\ncfgInplaceEdits2Help=Allow launching editor from viewer\ncfgInplaceEditsHelp=Allow launching the editor from the viewer\ncfgInsertAnimations=Insert Animations\ncfgInsertAnimationsHelp=Show pop animation when inserting shapes from the sidebar\ncfgIntersectionSelect=Intersection Select\ncfgIntersectionSelectHelp=Select cells by intersection rather than containment\ncfgKeyboardShortcuts=Keyboard Shortcuts (JSON)\ncfgKeyboardShortcutsHelp=Custom keyboard shortcuts. Entries are {keyCode, control, shift, alt, action} where keyCode is a key code or single character and action is an action name, or null to remove a binding.\ncfgLibraries=Libraries (JSON)\ncfgLibrariesHelp=Custom library sections for the left panel\ncfgLockdown=Lockdown\ncfgLockdown2=Lockdown\ncfgLockdown2Help=Disable data transmission outside Confluence\ncfgLockdownHelp=Disable data transmission apart from storage\ncfgMathOutputSize=Math Output Size\ncfgMathOutputSizeHelp=Size labels, view bounds and initial fit to the rendered math output instead of the formula source\ncfgMaxImageBytes=Max Image Bytes\ncfgMaxImageSize=Max Image Size (px)\ncfgMermaid=Mermaid Config (JSON)\ncfgMermaidHelp=Default Mermaid settings such as theme and colours for all diagrams\ncfgNoAutoFocus=No Auto Focus\ncfgNoAutoFocusHelp=Disable auto-focus on startup\ncfgNoResizers=No Resizers\ncfgNoResizersHelp=Hide shape resize handles\ncfgNotSet=Not set (use default)\ncfgOneDriveInlinePicker=OneDrive Inline Picker\ncfgOneDriveInlinePickerHelp=Use inline picker for OneDrive\ncfgOptimizeHtmlLabels=Optimize HTML Labels\ncfgOptimizeHtmlLabelsHelp=Remove unnecessary spans from HTML labels when editing stops\ncfgOverride=Override\ncfgOverrideHelp=Ignore user settings stored in the browser so the defaults in this configuration always apply\ncfgPageFormatHeight=Page Height (1/10 inch)\ncfgPageFormatHeightHelp=Page format: US Letter = 850 x 1100, A4 = 827 x 1169\ncfgPageFormatWidth=Page Width (1/10 inch)\ncfgPassiveScroll=Passive Scroll\ncfgPassiveScrollHelp=Enable passive scroll event listeners\ncfgPasteAtMousePointer=Paste at Mouse\ncfgPasteAtMousePointerHelp=Paste elements at mouse pointer location\ncfgPreserveViewState=Preserve View State\ncfgPreserveViewStateHelp=Preserve view state in embed mode\ncfgRemoveImageMetadata=Remove Image Metadata\ncfgRemoveImageMetadataHelp=Strip metadata from images\ncfgReplaceSvgDataUris=Replace SVG Data URIs\ncfgReplaceSvgDataUrisHelp=Replace data URIs with SVG sub-trees in export\ncfgResources=Language Resources (JSON)\ncfgResourcesHelp=Overrides existing or adds new language resources for user interface text. Maps resource keys to strings, or to objects with one entry per language code and main as the fallback.\ncfgRestrictExport=Restrict Export\ncfgRestrictExportHelp=Disable exporting diagrams to other formats\ncfgSearchSettings=Search settings (e.g. grid, font, dark mode, compressXml...)\ncfgSectionAIConfiguration=AI Configuration\ncfgSectionAppearance=Appearance\ncfgSectionCanvasGrid=Canvas & Grid\ncfgSectionCollaborationAdvanced=Collaboration & Advanced\ncfgSectionColorSchemes=Color Schemes\ncfgSectionColors=Colors\ncfgSectionConfluenceCloud=Confluence Cloud\ncfgSectionConfluenceServerDataCenter=Confluence Server / Data Center\ncfgSectionCustomCSS=Custom CSS\ncfgSectionDefaultStyles=Default Styles\ncfgSectionEmbedding=Embedding\ncfgSectionExportSecurity=Export & Security\ncfgSectionFonts=Fonts\ncfgSectionGeneral=General\ncfgSectionLibraries=Libraries\ncfgSectionMenuCustomization=Menu Customization\ncfgSectionSidebarPanels=Sidebar & Panels\ncfgSelectParentLayer=Select Parent Layer\ncfgSelectParentLayerHelp=Selects parent layer for current selection\ncfgSettingsName=Settings Name\ncfgSettingsNameHelp=Key for storing user settings in local storage\ncfgShadowBlur=Shadow Blur\ncfgShadowColor=Shadow Color\ncfgShadowOffsetX=Shadow Offset X\ncfgShadowOffsetY=Shadow Offset Y\ncfgShadowOpacity=Shadow Opacity\ncfgShapePicker=Shape Picker (JSON)\ncfgShapePickerHelp=Custom shape picker entries for the sidebar\ncfgShareCursorPosition=Share Cursor Position\ncfgShareCursorPositionHelp=Share cursor in real-time collaboration\ncfgShowConnectHandle=Show Connect Handle\ncfgShowConnectHandleHelp=Show connection handle on hover\ncfgShowLinkIcons=Show Link Icons\ncfgShowLinkIconsHelp=Show link icons on shapes\ncfgShowNoteIcons=Show Note Icons\ncfgShowNoteIconsHelp=Show note icons on shapes\ncfgShowRemoteCursors=Show Remote Cursors\ncfgShowRemoteCursorsHelp=Display other users\' cursors\ncfgShowSplashOnStart=Show Splash on Start\ncfgShowSplashOnStartHelp=Show the splash screen with storage options on startup\ncfgShowTooltipIcons=Show Tooltip Icons\ncfgShowTooltipIconsHelp=Show tooltip icons on shapes\ncfgSidebarTitleSize=Title Font Size (pt)\ncfgSidebarTitles=Sidebar Titles\ncfgSidebarTitlesHelp=Show titles in the sidebar\ncfgSidebarWidth=Sidebar Width\ncfgSimpleLabels=Simple Labels\ncfgSimpleLabelsHelp=Disable word wrap and HTML for labels\ncfgSimpleViewer=Simple Viewer\ncfgSimpleViewerHelp=Use simple viewer for all diagrams\ncfgStopEditingOnEnter=Stop Editing on Enter\ncfgStopEditingOnEnterHelp=Enter key stops label editing, Shift+Enter inserts a line break\ncfgStyles=Styles (JSON)\ncfgStylesHelp=Colours for the Style tab. Keys: commonStyle, vertexStyle, edgeStyle, graph.\ncfgSwimlaneSelectionEnabled=Swimlane Body Selection\ncfgSwimlaneSelectionEnabledHelp=Click an empty swimlane body to select the swimlane (default on)\ncfgTemplateFile=Template File URL\ncfgTemplateFileHelp=Sections shown in the template dialog. Leave empty for all.\ncfgThumbHeight=Thumbnail Height\ncfgThumbWidth=Thumbnail Width\ncfgTooltipFontSize=Tooltip Font Size (px)\ncfgTooltipMaxWidth=Tooltip Max Width (px)\ncfgTranslateDiagrams=Translate Diagrams\ncfgTranslateDiagramsHelp=Enable automatic translation of diagram labels\ncfgUi=UI Theme\ncfgUpdateDefaultStyle=Update Default Style\ncfgUpdateDefaultStyleHelp=Update defaults when styles change\ncfgUseInternalClipboard=Use Internal Clipboard\ncfgUseInternalClipboardHelp=Use internal clipboard instead of native\ncfgVersion=Version\ncfgVersionHelp=Configuration version identifier\ncfgViewerCanExceedPageWidth=Viewer Can Exceed Page Width\ncfgViewerCanExceedPageWidthHelp=Allow the viewer to exceed the page width\ncfgViewerTimeout=Viewer Timeout\ncfgZoomFactor=Zoom Factor\ncfgZoomWheel=Zoom with Mouse Wheel\ncfgZoomWheelHelp=Use mouse wheel for zoom without modifiers\ncfgEnabled=Enabled\npartialResponse=Partial response\nactor=Actor\ncallout=Callout\ncard=Card\ncloud=Cloud\ncross=Cross\ncube=Cube\ncylinder=Cylinder\ndelay=Delay\ndisplay=Display\ndocument=Document\nhexagon=Hexagon\nparallelogram=Parallelogram\npentagon=Pentagon\nprocess=Process\nsquare=Square\nstar=Star\nstep=Step\ntape=Tape\ntrapezoid=Trapezoid\ntriangle=Triangle\n');Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;Graph.prototype.defaultThemes.darkTheme=Graph.prototype.defaultThemes["default-style2"];Editor.currentTheme="";window.uiTheme="";GraphViewer=function(b,d,m){this.init(b,d,m)};mxUtils.extend(GraphViewer,mxEventSource);GraphViewer.prototype.editBlankUrl="1"==urlParams.dev?"https://test.draw.io/":"https://app.diagrams.net/";GraphViewer.prototype.imageBaseUrl=window.DRAWIO_BASE_URL+"/";GraphViewer.prototype.toolbarHeight="BackCompat"==document.compatMode?24:26;GraphViewer.prototype.lightboxChrome=!0;GraphViewer.prototype.lightboxZIndex=999;GraphViewer.prototype.toolbarZIndex=999;GraphViewer.prototype.autoFit=!1;GraphViewer.prototype.autoCrop=!1;GraphViewer.prototype.autoOrigin=!0;GraphViewer.prototype.center=!1;GraphViewer.prototype.forceCenter=!1;GraphViewer.prototype.allowZoomIn=!1;GraphViewer.prototype.allowZoomOut=!0;GraphViewer.prototype.showTitleAsTooltip=!1;GraphViewer.prototype.checkVisibleState=!0;GraphViewer.prototype.minHeight=28;GraphViewer.prototype.minWidth=100;GraphViewer.prototype.responsive=!1;GraphViewer.prototype.darkMode=null;GraphViewer.prototype.showLinkIcons=!1;GraphViewer.prototype.showTooltipIcons=!1;GraphViewer.prototype.showNoteIcons=!0;diff --git a/src/main/webapp/mxgraph/mxClient.js b/src/main/webapp/mxgraph/mxClient.jsindex 1eca15528..1dd9aae03 100644--- a/src/main/webapp/mxgraph/mxClient.js+++ b/src/main/webapp/mxgraph/mxClient.js@@ -1,4 +1,4 @@-var mxClient={VERSION:"31.4.2",IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),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.")&&+var mxClient={VERSION:"31.4.4",IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor),IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints,IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userAgent),IS_GC:/Google Inc/.test(navigator.vendor),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:-1<navigator.userAgent.toLowerCase().indexOf("firefox"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS||"[object SVGForeignObjectElement]"!==document.createElementNS("http://www.w3.org/2000/svg","foreignObject").toString()||0<=navigator.userAgent.indexOf("Opera/"),IS_WIN:0<navigator.appVersion.indexOf("Win"),IS_MAC:0<navigator.appVersion.indexOf("Mac"),IS_CHROMEOS:/\bCrOS\b/.test(navigator.appVersion),@@ -957,16 +957,16 @@ mxPrintPreview.prototype.title=null;mxPrintPreview.prototype.pageSelector=null;mmxPrintPreview.prototype.getDoctype=function(){var a="";8==document.documentMode?a='<meta http-equiv="X-UA-Compatible" content="IE=8">':8<document.documentMode&&(a='\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]--\x3e');return a};mxPrintPreview.prototype.appendGraph=function(a,b,c,d,e,f,g,k,l){this.graph=a;this.scale=null!=b?b:1/a.pageScale;this.x0=c;this.y0=d;this.open(null,null,e,f,g,k,l)};mxPrintPreview.prototype.getPageClassCss=function(a,b){var c=this.pageMargin,d=this.pixelsPerInch,e=(b.width/d).toFixed(2)+"in "+(b.height/d).toFixed(2)+"in";b="@page "+a+" {\n margin: 0;\n size: "+mxUtils.htmlEntities(e)+";\n}\n."+a+" {\n page: "+a+";\n"+(mxClient.IS_SF?" padding: "+mxUtils.htmlEntities((c/d).toFixed(2))+"in;\n":"")+" width: "+mxUtils.htmlEntities((b.width/d).toFixed(2))+"in;\n height: "+mxUtils.htmlEntities((b.height/d).toFixed(2))+"in;\n}\n";mxClient.IS_SF||(b+="."+a+" > svg {\n margin: "+mxUtils.htmlEntities((c/d).toFixed(2))+"in;\n}\n");return b};-mxPrintPreview.prototype.open=function(a,b,c,d,e,f,g){c=null;try{var k=this.graph.cellRenderer.initializeOverlay,l=null!=f;f=mxRectangle.fromRectangle(null!=f?f:this.pageFormat);var m=f.width+1,n=f.height+1;this.printOverlays&&(this.graph.cellRenderer.initializeOverlay=function(H,F){F.init(H.view.getDrawPane())});this.printControls&&(this.graph.cellRenderer.initControl=function(H,F,J,I){F.dialect=H.view.graph.dialect;F.init(H.view.getDrawPane())});this.wnd=null!=b?b:this.wnd;b=!1;null==this.wnd&&-(b=!0,this.wnd=window.open());var p=this.wnd.document;if(b){var q=this.getDoctype();null!=q&&0<q.length&&p.writeln(q);"CSS1Compat"===document.compatMode&&p.writeln("<!DOCTYPE html>");p.writeln("<html>");p.writeln("<head>");this.writeHead(p,a);p.writeln("</head>");p.writeln("<body>")}var r=mxRectangle.fromRectangle(null!=g?this.graph.getBoundingBox(g):this.graph.getGraphBounds()),t=this.graph.getView().getScale(),u=t/this.scale,v=this.graph.getView().getTranslate();this.autoOrigin||(this.x0-=v.x*this.scale,-this.y0-=v.y*this.scale,r.width+=r.x,r.height+=r.y,r.x=0,this.border=r.y=0);var y=m-2*this.border,A=n-2*this.border;n+=this.marginTop+this.marginBottom;r.width/=u;r.height/=u;var z=Math.max(1,Math.ceil((r.width+this.x0)/y)),x=Math.max(1,Math.ceil((r.height+this.y0)/A));this.pageCount=z*x;var C=null;l&&(null==this.pendingCss&&(this.pageFormatClass={},this.pendingCss=""),C=mxUtils.htmlEntities("gePageFormat-"+String(f.width).replace(/\./g,"_")+"-"+String(f.height).replace(/\./g,"_")),null==this.pageFormatClass[C]&&-(this.pageFormatClass[C]=!0,this.pendingCss+=this.getPageClassCss(C,f)));var D=mxUtils.bind(this,function(H){null!=this.borderColor&&(H.style.borderColor=this.borderColor,H.style.borderStyle="solid",H.style.borderWidth="1px");H.style.background=this.backgroundColor;null!=C?H.classList.add(C):(H.style.width=f.width+"px",H.style.height=f.height+"px");p.body.appendChild(H)}),B=this.getCoverPages(m,n);if(null!=B)for(var E=0;E<B.length;E++)D(B[E],!0);var K=this.getAppendices(m,n);for(E=0;E<x;E++){var G=-E*A/this.scale-this.y0/this.scale+(r.y-v.y*t)/t-E;for(a=0;a<z;a++){if(null==this.wnd)return null;var L=a*y/this.scale-this.x0/this.scale+(r.x-v.x*t)/t-a;g=E*z+a+1;c=p.createElement("div");c.style.display="flex";c.style.alignItems="center";c.style.justifyContent="center";var Q=new mxRectangle(L,G,y,A);this.addGraphFragment(-L,-G,this.scale,g,c,Q);null!=e&&0==E&&0==a&&c.setAttribute("id",e);D(c,!0)}}if(null!=K)for(E=0;E<K.length;E++)D(K[E],E<K.length-1);b&&!d&&this.closeDocument();this.wnd.focus()}catch(H){null!=+mxPrintPreview.prototype.open=function(a,b,c,d,e,f,g){c=null;try{var k=this.graph.cellRenderer.initializeOverlay,l=null!=f;f=mxRectangle.fromRectangle(null!=f?f:this.pageFormat);var m=f.width+1,n=f.height+1,p=null;l&&(null==this.pendingCss&&(this.pageFormatClass={},this.pendingCss=""),p=mxUtils.htmlEntities("gePageFormat-"+String(f.width).replace(/\./g,"_")+"-"+String(f.height).replace(/\./g,"_")),null==this.pageFormatClass[p]&&(this.pageFormatClass[p]=!0,this.pendingCss+=this.getPageClassCss(p,f)));+this.printOverlays&&(this.graph.cellRenderer.initializeOverlay=function(H,F){F.init(H.view.getDrawPane())});this.printControls&&(this.graph.cellRenderer.initControl=function(H,F,J,I){F.dialect=H.view.graph.dialect;F.init(H.view.getDrawPane())});this.wnd=null!=b?b:this.wnd;b=!1;null==this.wnd&&(b=!0,this.wnd=window.open());var q=this.wnd.document;if(b){var r=this.getDoctype();null!=r&&0<r.length&&q.writeln(r);"CSS1Compat"===document.compatMode&&q.writeln("<!DOCTYPE html>");q.writeln("<html>");q.writeln("<head>");+this.writeHead(q,a);q.writeln("</head>");q.writeln("<body>")}var t=mxRectangle.fromRectangle(null!=g?this.graph.getBoundingBox(g):this.graph.getGraphBounds()),u=this.graph.getView().getScale(),v=u/this.scale,y=this.graph.getView().getTranslate();this.autoOrigin||(this.x0-=y.x*this.scale,this.y0-=y.y*this.scale,t.width+=t.x,t.height+=t.y,t.x=0,this.border=t.y=0);var A=m-2*this.border,z=n-2*this.border;n+=this.marginTop+this.marginBottom;t.width/=v;t.height/=v;var x=Math.max(1,Math.ceil((t.width+this.x0)/+A)),C=Math.max(1,Math.ceil((t.height+this.y0)/z));this.pageCount=x*C;var D=mxUtils.bind(this,function(H){null!=this.borderColor&&(H.style.borderColor=this.borderColor,H.style.borderStyle="solid",H.style.borderWidth="1px");H.style.background=this.backgroundColor;null!=p?H.classList.add(p):(H.style.width=f.width+"px",H.style.height=f.height+"px");q.body.appendChild(H)}),B=this.getCoverPages(m,n);if(null!=B)for(var E=0;E<B.length;E++)D(B[E],!0);var K=this.getAppendices(m,n);for(E=0;E<C;E++){var G=E*+z/this.scale-this.y0/this.scale+(t.y-y.y*u)/u-E;for(a=0;a<x;a++){if(null==this.wnd)return null;var L=a*A/this.scale-this.x0/this.scale+(t.x-y.x*u)/u-a;g=E*x+a+1;c=q.createElement("div");c.style.display="flex";c.style.alignItems="center";c.style.justifyContent="center";var Q=new mxRectangle(L,G,A,z);this.addGraphFragment(-L,-G,this.scale,g,c,Q);null!=e&&0==E&&0==a&&c.setAttribute("id",e);D(c,!0)}}if(null!=K)for(E=0;E<K.length;E++)D(K[E],E<K.length-1);b&&!d&&this.closeDocument();this.wnd.focus()}catch(H){null!=c&&null!=c.parentNode&&c.parentNode.removeChild(c),null!=window.console&&console.error(H)}finally{this.graph.cellRenderer.initializeOverlay=k}return this.wnd};mxPrintPreview.prototype.addPendingCss=function(a){if(null!=this.pendingCss){var b=a.createElement("style");b.setAttribute("type","text/css");b.appendChild(a.createTextNode(this.pendingCss));a.getElementsByTagName("head")[0].appendChild(b);this.pendingCss=null}};mxPrintPreview.prototype.closeDocument=function(){try{if(null!=this.wnd&&null!=this.wnd.document){var a=this.wnd.document;this.writePostfix(a);a.writeln("</body>");a.writeln("</html>");a.close();this.addPendingCss(a);mxEvent.release(a.body)}}catch(b){}};-mxPrintPreview.prototype.writeHead=function(a,b){null!=this.title&&a.writeln("<title>"+mxUtils.htmlEntities(this.title)+"</title>");var c=mxClient.basePath;"/src"==c.substring(c.length-4)&&(c=c.substring(0,c.length-4));mxClient.link("stylesheet",c+"/css/common.css",a);a.writeln('<style type="text/css">');a.writeln(this.defaultCss);c=this.pageFormat;this.addPageCss&&null!=c&&(c=(c.width/this.pixelsPerInch).toFixed(2)+"in "+(c.height/this.pixelsPerInch).toFixed(2)+"in",a.writeln("@page {"),a.writeln(" margin: "+-mxUtils.htmlEntities((this.pageMargin/this.pixelsPerInch).toFixed(2))+"in;"),a.writeln(" size: "+mxUtils.htmlEntities(c)+";"),a.writeln("}"));null!=b&&a.writeln(mxUtils.htmlEntities(b,!1,!1,!1));a.writeln("</style>")};mxPrintPreview.prototype.writePostfix=function(a){};mxPrintPreview.prototype.getRoot=function(){var a=this.graph.view.currentRoot;null==a&&(a=this.graph.getModel().getRoot());return a};mxPrintPreview.prototype.useCssTransforms=function(){return!mxClient.NO_FO&&!mxClient.IS_SF};-mxPrintPreview.prototype.isCellVisible=function(a){return!0};mxPrintPreview.prototype.drawBackgroundImage=function(a){a.redraw()};+mxPrintPreview.prototype.writeHead=function(a,b){null!=this.title&&a.writeln("<title>"+mxUtils.htmlEntities(this.title)+"</title>");var c=mxClient.basePath;"/src"==c.substring(c.length-4)&&(c=c.substring(0,c.length-4));mxClient.link("stylesheet",c+"/css/common.css",a);a.writeln('<style type="text/css">');a.writeln(this.defaultCss);c=this.pageFormat;this.addPageCss&&null!=c&&null==this.pendingCss&&(c=(c.width/this.pixelsPerInch).toFixed(2)+"in "+(c.height/this.pixelsPerInch).toFixed(2)+"in",a.writeln("@page {"),+a.writeln(" margin: "+mxUtils.htmlEntities((this.pageMargin/this.pixelsPerInch).toFixed(2))+"in;"),a.writeln(" size: "+mxUtils.htmlEntities(c)+";"),a.writeln("}"));null!=b&&a.writeln(b.replace(/<\/style/gi,"<\\/style"));a.writeln("</style>")};mxPrintPreview.prototype.writePostfix=function(a){};mxPrintPreview.prototype.getRoot=function(){var a=this.graph.view.currentRoot;null==a&&(a=this.graph.getModel().getRoot());return a};+mxPrintPreview.prototype.useCssTransforms=function(){return!mxClient.NO_FO&&!mxClient.IS_SF};mxPrintPreview.prototype.isCellVisible=function(a){return!0};mxPrintPreview.prototype.drawBackgroundImage=function(a){a.redraw()};mxPrintPreview.prototype.addGraphFragment=function(a,b,c,d,e,f){var g=this.graph.getView();d=this.graph.container;this.graph.container=e;var k=g.getCanvas(),l=g.getBackgroundPane(),m=g.getDrawPane(),n=g.getOverlayPane(),p=c;if(this.graph.dialect==mxConstants.DIALECT_SVG){if(g.createSvg(),this.useCssTransforms()){var q=g.getDrawPane().parentNode;q.setAttribute("transformOrigin","0 0");q.setAttribute("transform","scale("+c+","+c+")translate("+a+","+b+")");c=1;b=a=0}}else g.createHtml();q=g.isEventsEnabled();g.setEventsEnabled(!1);var r=this.graph.isEnabled();this.graph.setEnabled(!1);var t=g.getTranslate();g.translate=new mxPoint(a,b);var u=this.graph.selectionCellsHandler.updateHandler;this.graph.selectionCellsHandler.updateHandler=function(){};var v=this.graph.cellRenderer.redraw,y=g.states,A=g.scale,z=null;if(this.printBackgroundImage){var x=this.getBackgroundImage();null!=x&&(z=new mxRectangle(Math.round(a*A+x.x),Math.round(b*A+x.y),x.width-1,x.height-1),z=new mxImageShape(z,x.src),z.dialect=this.graph.dialect)}if(this.clipping){var C=new mxRectangle((f.x+t.x+1.5)*A,(f.y+t.y+1.5)*A,(f.width-1.5)*A/p,(f.height-1.5)*A/p),D=this;this.graph.cellRenderer.redraw=function(E,K,G){if(null!=E){var L=y.get(E.cell);if(null!=L&&(L=g.getBoundingBox(L,!1),null!=L&&0<L.width&&0<L.height&&!mxUtils.intersects(C,L))||!D.isCellVisible(E.cell))return}v.apply(this,arguments)};null!=z&&(a=new mxRectangle(z.bounds.x*A+(t.x-a)*A,z.bounds.y*A+(t.y-b)*A,z.bounds.width*A,z.bounds.height*A),mxUtils.intersects(C,a)||(z=null))}null!=z&&(z.init(g.backgroundPane),diff --git a/src/main/webapp/mxgraph/src/view/mxPrintPreview.js b/src/main/webapp/mxgraph/src/view/mxPrintPreview.jsindex 8bd5ce188..517828abd 100644--- a/src/main/webapp/mxgraph/src/view/mxPrintPreview.js+++ b/src/main/webapp/mxgraph/src/view/mxPrintPreview.js@@ -474,6 +474,28 @@ mxPrintPreview.prototype.open = function(css, targetWindow, forcePageBreaks, kee// Adds 1 px border for pagination to match rendering in applicationvar pw = pageFormat.width + 1;var ph = pageFormat.height + 1;+ var pageClass = null;++ // Adds CSS for individual page formats before the head is written+ // so that writeHead can check if page class CSS is used+ if (customPageFormat)+ {+ if (this.pendingCss == null)+ {+ this.pageFormatClass = {};+ this.pendingCss = '';+ }++ pageClass = mxUtils.htmlEntities('gePageFormat-' ++ String(pageFormat.width).replace(/\./g, '_') + '-' ++ String(pageFormat.height).replace(/\./g, '_'));++ if (this.pageFormatClass[pageClass] == null)+ {+ this.pageFormatClass[pageClass] = true;+ this.pendingCss += this.getPageClassCss(pageClass, pageFormat);+ }+ }// Temporarily overrides the method to redirect rendering of overlays// to the draw pane so that they are visible in the printout@@ -560,27 +582,6 @@ mxPrintPreview.prototype.open = function(css, targetWindow, forcePageBreaks, keevar hpages = Math.max(1, Math.ceil((bounds.width + this.x0) / availableWidth));var vpages = Math.max(1, Math.ceil((bounds.height + this.y0) / availableHeight));this.pageCount = hpages * vpages;- var pageClass = null;-- // Adds CSS for individual page formats- if (customPageFormat)- {- if (this.pendingCss == null)- {- this.pageFormatClass = {};- this.pendingCss = '';- }-- pageClass = mxUtils.htmlEntities('gePageFormat-' +- String(pageFormat.width).replace(/\./g, '_') + '-' +- String(pageFormat.height).replace(/\./g, '_'));-- if (this.pageFormatClass[pageClass] == null)- {- this.pageFormatClass[pageClass] = true;- this.pendingCss += this.getPageClassCss(pageClass, pageFormat);- }- }var addPage = mxUtils.bind(this, function(div){@@ -768,8 +769,8 @@ mxPrintPreview.prototype.writeHead = function(doc, css)doc.writeln(this.defaultCss);var pf = this.pageFormat;- // Sets printer defaults- if (this.addPageCss && pf != null)+ // Sets printer defaults if no page class CSS is used+ if (this.addPageCss && pf != null && this.pendingCss == null){var size = ((pf.width / this.pixelsPerInch)).toFixed(2) + 'in ' +((pf.height / this.pixelsPerInch)).toFixed(2) + 'in';@@ -784,7 +785,9 @@ mxPrintPreview.prototype.writeHead = function(doc, css)if (css != null){- doc.writeln(mxUtils.htmlEntities(css, false, false, false));+ // Entities are not decoded inside style elements so the CSS is+ // written unescaped with the style end tag neutralized+ doc.writeln(css.replace(/<\/style/gi, '<\\/style'));}doc.writeln('</style>');diff --git a/src/main/webapp/resources/dia.txt b/src/main/webapp/resources/dia.txtindex 9bcc45ad7..d21e87102 100644--- a/src/main/webapp/resources/dia.txt+++ b/src/main/webapp/resources/dia.txt@@ -1120,6 +1120,7 @@ startExp=Start ExportrefreshDrawIndex=Refresh draw.io Diagrams IndexreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.reindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.+reindexInst3=Indexing pauses while the computer is asleep or offline and resumes when the connection returns, so keep the computer awake until "Re-indexing finished" is shown.startIndexing=Start IndexingconfAPageFoundFetch=Page "{1}" found. FetchingconfAAllDiagDone=All {1} diagrams processed. Process finished.diff --git a/src/main/webapp/service-worker.js b/src/main/webapp/service-worker.jsindex 22a5edc94..a55e868e7 100644--- a/src/main/webapp/service-worker.js+++ b/src/main/webapp/service-worker.js@@ -26,26 +26,26 @@ self.skipWaiting();var MANIFEST = [{"url":"js/bootstrap.js","revision":"4ead21aa3d21115074a854b492b2e7fd"},{"url":"js/main.js","revision":"a8d40469d3d72ab4b11059362f3dd825"},- {"url":"js/app.min.js","revision":"e874347e09e882fce5c69f22421d0f4d"},+ {"url":"js/app.min.js","revision":"4a0c1de650782f28b091759af71b79f5"},{"url":"js/extensions.min.js","revision":"74cc27055b3ad0b65a654cbdd69edd48"},- {"url":"js/plantuml/drawio-plantuml.min.js","revision":"a14813c26f599561e0ab3d4bd708cd18"},+ {"url":"js/plantuml/drawio-plantuml.min.js","revision":"d43c0a021ae01fcc3f3aec60133eb21f"},{"url":"js/orgchart.min.js","revision":"619d8c4dab47b81868916df31f55478b"},- {"url":"js/stencils.min.js","revision":"24e63109d064c0d6b7902dcd2b3d384f"},- {"url":"js/shapes-14-6-5.min.js","revision":"d91f2a19e3f8a7d5b45bab7403f0f0a6"},+ {"url":"js/stencils.min.js","revision":"d0cdb1ff3da335e9a578f70f165fba23"},+ {"url":"js/shapes-14-6-5.min.js","revision":"2dd5884f665e3a61f789d75eab51fd21"},{"url":"js/math-print.js","revision":"c96445bdae9d555a3a6de81e16ccd6aa"},- {"url":"index.html","revision":"9de11c65ec13b24c73ace7042bc529cc-31.4.2"},- {"url":"open.html","revision":"d71816b3b00e769fc6019fcdd6921662-31.4.2"},+ {"url":"index.html","revision":"9de11c65ec13b24c73ace7042bc529cc-31.4.4"},+ {"url":"open.html","revision":"d71816b3b00e769fc6019fcdd6921662-31.4.4"},{"url":"shortcuts.svg","revision":"e6e8b6ca4cdf380eb5908925fadda599"},{"url":"styles/fonts/ArchitectsDaughter-Regular.ttf","revision":"31c2153c0530e32553b31a49b3d70736"},{"url":"styles/grapheditor.css","revision":"b7a9b0ba308f6db1dc9d195531e820ab"},{"url":"styles/high-contrast.css","revision":"0c0219b1016c8bd6bbf859cfd53b5058"},{"url":"js/dropbox/Dropbox-sdk.min.js","revision":"4b9842892aa37b156db0a8364b7a83b0"},{"url":"js/onedrive/OneDrive.js","revision":"e863f5e6833892f22492211663e3efe9"},- {"url":"js/viewer-static.min.js","revision":"395957f55b02463d5afe0bf681997abe"},- {"url":"connect/jira/editor-1-3-3.html","revision":"41dc8af9576b47f359cff19fff7a41c2-31.4.2"},- {"url":"connect/jira/viewerPanel-1-3-12.html","revision":"4836f5e4308abe57830e441518364f23-31.4.2"},- {"url":"connect/jira/viewerPanel2.html","revision":"0dd1ee1343a46b5c03aedbc587450b84-31.4.2"},- {"url":"connect/jira/fullScreenViewer-1-3-3.html","revision":"abed474e47c0c41a5ad2366b4828f77a-31.4.2"},+ {"url":"js/viewer-static.min.js","revision":"c50552ffcf45735021cfdab558d52958"},+ {"url":"connect/jira/editor-1-3-3.html","revision":"41dc8af9576b47f359cff19fff7a41c2-31.4.4"},+ {"url":"connect/jira/viewerPanel-1-3-12.html","revision":"4836f5e4308abe57830e441518364f23-31.4.4"},+ {"url":"connect/jira/viewerPanel2.html","revision":"0dd1ee1343a46b5c03aedbc587450b84-31.4.4"},+ {"url":"connect/jira/fullScreenViewer-1-3-3.html","revision":"abed474e47c0c41a5ad2366b4828f77a-31.4.4"},{"url":"connect/jira/viewerPanel.js","revision":"85011efa68d638da560871ee2ab3a6fe"},{"url":"connect/jira/spinner.gif","revision":"7d857ab9d86123e93d74d48e958fe743"},{"url":"connect/jira/editor.js","revision":"6264f470f244aec4b62035bbad03eb5e"},@@ -53,17 +53,17 @@ var MANIFEST = [{"url":"connect/jira/fullscreen-viewer.js","revision":"a6be96b8ddc5a25196925713cf34d571"},{"url":"plugins/connectJira.js","revision":"d220cad2edf0d6b161505fe12ae3eaa6"},{"url":"plugins/cConf-comments.js","revision":"faaee24081d7b0fb9af0add3171feaac"},- {"url":"plugins/cConf-1-4-8.js","revision":"abac650f4bacd56df5f586d431e2e6ae"},- {"url":"connect/confluence/connectUtils-1-4-8.js","revision":"f63da159711451f021bd65d84e403986"},+ {"url":"plugins/cConf-1-4-8.js","revision":"3b97d4ae77858b0e90529bd6319bc7de"},+ {"url":"connect/confluence/connectUtils-1-4-8.js","revision":"503da5ee3b1cf6b869b5fcc8a0e6b91e"},{"url":"connect/new_common/cac.js","revision":"b52c73de9d22b867a036ad50c6bfdca2"},{"url":"connect/gdrive_common/gac.js","revision":"c66fdc50ec87002a502cb0779b73a692"},{"url":"connect/onedrive_common/ac.js","revision":"1264ba8705eff0d1337701e5ae962366"},{"url":"connect/confluence/viewer-init.js","revision":"c5e51e32ac74414d8d518af83ee2781f"},- {"url":"connect/confluence/viewer.js","revision":"9128708cd80881dbf6caa06f2c4ebda8"},- {"url":"connect/confluence/viewer-1-4-42.html","revision":"69c1bca25fd4889bf832e8441c972268-31.4.2"},- {"url":"connect/confluence/macroEditor-1-4-8.html","revision":"4ad77ae3f08c19eddac932b2fa8c7068-31.4.2"},+ {"url":"connect/confluence/viewer.js","revision":"092c424361f3c34559cafeafd64407a6"},+ {"url":"connect/confluence/viewer-1-4-42.html","revision":"69c1bca25fd4889bf832e8441c972268-31.4.4"},+ {"url":"connect/confluence/macroEditor-1-4-8.html","revision":"4ad77ae3f08c19eddac932b2fa8c7068-31.4.4"},{"url":"connect/confluence/includeDiagram-1-4-8.js","revision":"c2bf5b089b99006177ca184d65a4a25e"},- {"url":"connect/confluence/includeDiagram.html","revision":"01b04b3f54f1e2e63fcf1df033d24519-31.4.2"},+ {"url":"connect/confluence/includeDiagram.html","revision":"01b04b3f54f1e2e63fcf1df033d24519-31.4.4"},{"url":"connect/confluence/macro-editor.js","revision":"b9000d6c20f30e4068f83bd0b56965ca"},{"url":"math4/es5/ui/safe.js","revision":"70818a3a0b12f623d08897c6db834920"},{"url":"math4/es5/core.js","revision":"dc3ca1e12b086e5ab44e588a7cb6ebb3"},@@ -104,7 +104,7 @@ var MANIFEST = [{"url":"math4/es5/fonts/mathjax-bboldx-font-extension/svg.js","revision":"9a4ce996090d4b84adaec560859c67be"},{"url":"math4/es5/fonts/mathjax-dsfont-font-extension/svg.js","revision":"dec2c6790c441e2a6843f6c11f5b47db"},{"url":"math4/es5/fonts/mathjax-mhchem-font-extension/svg.js","revision":"3e8dd442c15bc792d3718e93cf2e6e4a"},- {"url":"resources/dia.txt","revision":"7bbb3744845cf96c6c25343afe2b9e03"},+ {"url":"resources/dia.txt","revision":"93ef88c0013d188fd10b210e381d2a7f"},{"url":"favicon.ico","revision":"b2bf17349e4b50ce4ba311f079f8bf7d"},{"url":"images/manifest.json","revision":"840dccdf2df72f46a63fb3b32ab6100e"},{"url":"images/logo.png","revision":"e4e0d092abdb1e668b5ec41a7fe0713c"},@@ -303,6 +303,7 @@ var DEV_MANIFEST = ["js/diagramly/sidebar/Sidebar-ArchiMate4.js","js/diagramly/sidebar/Sidebar-Arrows2.js","js/diagramly/sidebar/Sidebar-Atlassian.js",+ "js/diagramly/sidebar/Sidebar-Atlassian2.js","js/diagramly/sidebar/Sidebar-Azure.js","js/diagramly/sidebar/Sidebar-Azure2.js","js/diagramly/sidebar/Sidebar-BPMN.js",diff --git a/src/main/webapp/shapes/mxAtlassian2.js b/src/main/webapp/shapes/mxAtlassian2.jsnew file mode 100644index 000000000..67e6fd653--- /dev/null+++ b/src/main/webapp/shapes/mxAtlassian2.js@@ -0,0 +1,777 @@+/**+ * Copyright (c) 2006-2026, JGraph Holdings Ltd+ */++//**********************************************************************************************************************************************************+//Atlassian app icon: rounded-square or hexagonal tile (tileShape) with a glyph stencil painted in the style fillColor, optionally extended into a logo lockup (icon + wordmark stencils in one shape)+//**********************************************************************************************************************************************************+/**+* Extends mxShape.+*/+function mxShapeAtlassian2Icon(bounds, fill, stroke, strokewidth)+{+ mxShape.call(this);+ this.bounds = bounds;+ this.fill = fill;+ this.stroke = stroke;+ this.strokewidth = (strokewidth != null) ? strokewidth : 1;+};++/**+* Extends mxShape.+*/+mxUtils.extend(mxShapeAtlassian2Icon, mxShape);++mxShapeAtlassian2Icon.prototype.customProperties = [+ // all primary colors -> rows in the Style panel; the tile is toggled via+ // the Tile Color checkbox (no separate visibility key: a tile without a+ // color does not exist). tileShape selects the tile GEOMETRY only. NOT+ // primary: enums render in the Property section only. COMPAT INVARIANT:+ // the default must remain 'square' forever and non-default shapes are+ // written explicitly into styles, so key-less diagrams keep rendering+ // identically.+ {name: 'tileShape', dispName: 'Tile Shape', type: 'enum', defVal: 'square',+ enumList: [{val: 'square', dispName: 'Rounded Square'}, {val: 'hex', dispName: 'Hexagon'}]},+ {name: 'tileColor', dispName: 'Tile Color', type: 'color', defVal: '#1868DB', primary: true},+ {name: 'tileOutlineColor', dispName: 'Tile Outline', type: 'color', defVal: '#DDDEE1', primary: true},+ {name: 'wordmarkColor', dispName: 'Text Color', type: 'color', defVal: '#101214', primary: true},+ // the glyph's scale, canonical to the rounded square (1 = square-native+ // size on any tile shape). Paint-only, about the cell/slot center, and+ // deliberately NOT coupled into the tile on/off resize factors — the+ // tile-off cell hugs the AUTHORED ink. Hex sidebar entries ship an+ // explicit value (HEX_GLYPH_FACTOR, or a per-icon atlassian2HexScale+ // calibration) and the Tile Shape toggle maintains it; the defVal only+ // seeds the Property row for key-less styles+ {name: 'glyphScale', dispName: 'Icon Scale', type: 'float', min: 0, defVal: 1}+];++mxShapeAtlassian2Icon.prototype.cst = {+ SHAPE_ICON : 'mxgraph.atlassian2.icon'+};++// width over height of the reference agent hexagon (identical in both+// upstream icons); the cell geometry of hex icons is authored at this aspect+mxShapeAtlassian2Icon.HEX_ASPECT = 0.8971;++// the UNIFORM hex-native Icon Scale. glyphScale is canonical to the rounded+// square (1 = square-native size on any shape; hex glyph geometry is+// pipeline-normalized to that base — KEEP IN SYNC with the converter's+// HEX_GLYPH_FACTOR). The value equals HEX_ASPECT because that is upstream's+// own design rule: the agent hexagon scales the product glyph by exactly the+// tile-width ratio (verified on jira-coding-agent vs jira to 0.1%). The+// acting value is always EXPLICIT in the style: hex sidebar entries ship+// glyphScale at this constant — or at a per-icon derived calibration, baked+// as the glyph stencil's 'hexscale' attribute, where upstream deviates from+// its own rule (rovo-dev-agent, 0.98) — and the Tile Shape toggle+// (styleChanged) moves it between the shapes' defaults+// proportion-preservingly. Paint itself has no shape-dependent default.+mxShapeAtlassian2Icon.HEX_GLYPH_FACTOR = 0.8971;++/**+* Function: paintVertexShape+*+* Paints the vertex shape.+*/+mxShapeAtlassian2Icon.prototype.paintVertexShape = function(c, x, y, w, h)+{+ // like mxNetworks2: a missing tile color means NO tile — the customProperties+ // defVal only seeds the panel swatch, sidebar styles always set it explicitly+ var tileColor = mxUtils.getColorValue(this.style, 'tileColor', 'none');+ var tileVisible = tileColor != 'none';+ var wordmark = mxUtils.getValue(this.style, 'atlassian2Wordmark', null);+ // lockup: the icon occupies the left slot at the tile's natural aspect+ // (hex tiles are narrower than square ones), the wordmark the rest.+ // atlassian2LockupBox = "k yOff" (set-authored) covers lockups whose text+ // ink rises above or dips below the icon block (descenders, taller caps —+ // e.g. Jira Align, where the text is 1.47x the mark height): the CELL is+ // the full lockup ink box, k = inkHeight/iconHeight, so the icon block+ // renders h/k tall with its top at yOff icon-heights. Absent = "1 0",+ // the icon block IS the ink box (the previous behavior).+ var ih = h;+ var iy = 0;++ if (wordmark != null)+ {+ var lb = String(mxUtils.getValue(this.style, 'atlassian2LockupBox', '1 0')).split(' ');+ var k = parseFloat(lb[0]);+ ih = (isNaN(k) || k <= 0) ? h : h / k;+ var yo = parseFloat(lb[1] || 0);+ iy = (isNaN(yo)) ? 0 : ih * yo;+ }++ var iw = (wordmark != null) ? Math.min(w, ih * this.tileAspect()) : w;+ c.translate(x, y);++ if (tileVisible)+ {+ this.background(c, 0, iy, iw, ih, tileColor);+ }++ c.setShadow(false);+ this.foreground(c, 0, iy, iw, ih, tileVisible, wordmark != null);++ if (wordmark != null)+ {+ this.wordmark(c, ih, wordmark, iw, iy);+ }+};++/**+* Function: iconData+*+* Per-icon DATA with a style-key override: the style key wins when present+* (power-user escape hatch), else the same-meaning attribute on the glyph+* stencil's root node — the pipeline bakes ink / tile / hexscale attributes+* into the stencils, so calibration travels with the glyph and an icon+* swapped by hand in Edit Style brings its own data along. Null when neither+* source has a value.+*/+mxShapeAtlassian2Icon.prototype.iconData = function(style, stencil, styleKey, attr)+{+ var v = mxUtils.getValue(style, styleKey, null);++ if (v == null && stencil != null && stencil.desc != null)+ {+ v = stencil.desc.getAttribute(attr);+ }++ return (v != null && v != '') ? String(v) : null;+};++/**+* Function: parseBox+*+* Parses "x y w h" into an array; null for malformed or non-positive+* dimensions (degenerate boxes would divide into Infinity coordinates).+*/+mxShapeAtlassian2Icon.prototype.parseBox = function(s)+{+ if (s == null)+ {+ return null;+ }++ var b = String(s).split(' ');+ var box = [parseFloat(b[0]), parseFloat(b[1]), parseFloat(b[2]), parseFloat(b[3])];++ return (isNaN(box[0]) || isNaN(box[1]) || !(box[2] > 0) || !(box[3] > 0)) ? null : box;+};++/**+* Function: parseLayout+*+* Parses a lockup layout "gap textHeight verticalOffset" (all relative to+* the icon height) into an array, substituting the set defaults for+* missing or malformed values and a non-positive text height, so the+* wordmark never receives NaN coordinates.+*/+mxShapeAtlassian2Icon.prototype.parseLayout = function(s)+{+ var l = String((s != null) ? s : '').split(' ');+ var gap = parseFloat(l[0]);+ var th = parseFloat(l[1]);+ var vOff = parseFloat(l[2]);++ return [(isNaN(gap)) ? 0.3 : gap, (isNaN(th) || th <= 0) ? 0.65 : th,+ (isNaN(vOff)) ? 0 : vOff];+};++/**+* Function: tileBounds+*+* The tile's own bbox within the glyph stencil canvas, "x y w h" in+* stencil-canvas units: the stencil's 'tile' attribute (baked by the+* pipeline for AUTHORED hex agents, i.e. rovo-dev-agent) or an+* atlassian2TileBounds style override; product-glyph agents and icons+* switched to hex use the synthesized centered box below. Null means the+* tile IS the canvas (square tiles).+*/+mxShapeAtlassian2Icon.prototype.tileBounds = function(stencil)+{+ // only meaningful while the CURRENT shape is hex: the data describes the+ // hex tile's box, and with a square tile the canvas IS the tile (identity+ // mapping) — authored hex data must not leak into other shapes after a+ // Tile Shape switch (it would inflate the glyph by canvas/tile = 1.115)+ if (mxUtils.getValue(this.style, 'tileShape', 'square') != 'hex')+ {+ return null;+ }++ // a malformed/degenerate box falls through to the synthesized default+ var box = this.parseBox(this.iconData(this.style, stencil, 'atlassian2TileBounds', 'tile'));++ if (box != null)+ {+ return box;+ }++ // no explicit bounds but a hex shape (an icon switched via the Tile Shape+ // property): synthesize the centered default hex box so the glyph mapping+ // and toggle factors stay correct for ANY icon, not just the agents+ if (stencil != null && mxUtils.getValue(this.style, 'tileShape', 'square') == 'hex')+ {+ var bw = stencil.h0 * mxShapeAtlassian2Icon.HEX_ASPECT;++ return [(stencil.w0 - bw) / 2, 0, bw, stencil.h0];+ }++ return null;+};++/**+* Function: tileAspect+*+* Width over height of the tile: explicit atlassian2TileBounds when present,+* else the built-in aspect of the current tile shape. Used for the lockup+* icon slot, which needs no stencil.+*/+mxShapeAtlassian2Icon.prototype.tileAspect = function()+{+ // same shape gate as tileBounds: a square tile is always square+ if (mxUtils.getValue(this.style, 'tileShape', 'square') != 'hex')+ {+ return 1;+ }++ // same degenerate-box guard as tileBounds: a malformed or zero-size+ // override would divide into NaN/Infinity slot widths+ var box = this.parseBox(mxUtils.getValue(this.style, 'atlassian2TileBounds', null));++ if (box != null)+ {+ return box[2] / box[3];+ }++ return mxShapeAtlassian2Icon.HEX_ASPECT;+};++mxShapeAtlassian2Icon.prototype.background = function(c, x, y, w, h, tileColor)+{+ // like mxNetworks2: the tile honors the standard gradient style rows+ var gradientColor = mxUtils.getColorValue(this.style, mxConstants.STYLE_GRADIENTCOLOR, 'none');+ var gradientDir = mxUtils.getValue(this.style, 'gradientDirection', 'south');++ var outlineColor = mxUtils.getColorValue(this.style, 'tileOutlineColor', 'none');++ if (gradientColor == 'none')+ {+ c.setFillColor(tileColor);+ }+ else+ {+ c.setGradient(tileColor, gradientColor, 0, 0, w, h, gradientDir);+ }++ if (outlineColor != 'none')+ {+ // reference form (DC family): border 1/24 of the tile, inset by half+ // its width so it stays inside the bounds+ var bw = Math.max(1, w / 24);+ var inset = bw / 2;+ c.setStrokeColor(outlineColor);+ c.setStrokeWidth(bw);+ this.tilePath(c, x, y, w, h, inset);+ c.fillAndStroke();++ // restore the style stroke so the glyph stencil strokes independently+ // (Line in the UI strokes the icon, not the tile)+ c.setStrokeColor(this.stroke);+ c.setStrokeWidth(this.strokewidth);+ }+ else+ {+ this.tilePath(c, x, y, w, h, 0);+ c.fill();+ }+};++/**+* Function: tilePath+*+* Single definition of the tile geometry: the upstream app tile — a rounded+* square with corner radius 6/24 of the tile size — or the agents' pointy-top+* rounded hexagon, optionally inset for a border. A future tile shape variant+* (e.g. a round tile, should Atlassian ever ship one) needs: a branch HERE+* keyed on a new tileShape enum value, that value's Tile Shape enum entry,+* and a corner offset in getConstraints. COMPAT INVARIANT (see tileShape in+* customProperties): 'square' stays the key-less default forever and new+* shapes are written explicitly into styles, so diagrams saved before such+* an addition keep rendering exactly like today.+*/+mxShapeAtlassian2Icon.prototype.tilePath = function(c, x, y, w, h, inset)+{+ if (mxUtils.getValue(this.style, 'tileShape', 'square') == 'hex')+ {+ // upstream agent tile: pointy-top rounded hexagon, corner radius+ // 0.1146 of the tile height (identical in both reference icons). It+ // FILLS the bounds — the natural width/height aspect (0.8971) comes+ // from the authored cell geometry and the tile box (authored+ // atlassian2TileBounds or the synthesized default in tileBounds), so+ // hex cells hug the tile with no side margins+ var hh = h - 2 * inset;+ var hw = w - 2 * inset;+ var r = Math.max(0, hh * 0.1146 - inset * 0.5);+ var cx = x + w / 2;+ var y0 = y + inset;+ var pts = [[cx, y0], [cx + hw / 2, y0 + hh / 4], [cx + hw / 2, y0 + 3 * hh / 4],+ [cx, y0 + hh], [cx - hw / 2, y0 + 3 * hh / 4], [cx - hw / 2, y0 + hh / 4]];+ // per edge: trim the tangent length of a 120 degree corner+ // (r / tan(60deg)) off both ends, then join edges with corner arcs+ var t = r / Math.sqrt(3);+ var seg = [];++ for (var i = 0; i < 6; i++)+ {+ var p = pts[i];+ var n = pts[(i + 1) % 6];+ var dx = n[0] - p[0];+ var dy = n[1] - p[1];+ var len = Math.sqrt(dx * dx + dy * dy);+ seg.push([p[0] + dx * t / len, p[1] + dy * t / len,+ n[0] - dx * t / len, n[1] - dy * t / len]);+ }++ c.begin();+ c.moveTo(seg[0][0], seg[0][1]);++ for (var i = 0; i < 6; i++)+ {+ c.lineTo(seg[i][2], seg[i][3]);+ var nx = seg[(i + 1) % 6];+ c.arcTo(r, r, 0, 0, 1, nx[0], nx[1]);+ }++ c.close();+ }+ else+ {+ c.roundrect(x + inset, y + inset, w - 2 * inset, h - 2 * inset,+ w * 0.25 - inset, h * 0.25 - inset);+ }+};++mxShapeAtlassian2Icon.prototype.foreground = function(c, x, y, w, h, tileVisible, inLockup)+{+ var stencilName = mxUtils.getValue(this.style, 'atlassian2Icon', null);+ var stencil = null;++ if (stencilName != null)+ {+ stencil = mxStencilRegistry.getStencil(stencilName);+ }++ if (stencil != null)+ {+ // missing fill = unchecked Fill row: standard fill-none semantics+ // (the canvas maps 'none' to null), so the glyph goes invisible or+ // stroke-only when Line is set — same as any other shape+ c.setFillColor(mxUtils.getColorValue(this.style, mxConstants.STYLE_FILLCOLOR, 'none'));++ // in a lockup the icon square never rescales to the ink bounds — the+ // wordmark position depends on the fixed square+ var dx, dy, dw, dh;++ if (tileVisible || inLockup)+ {+ var tb = this.tileBounds(stencil);++ if (tb != null)+ {+ // hex tiles are narrower than their canvas: map the tile bbox+ // onto the bounds so the cell hugs the tile with no margins+ // (paint and cell geometry compensate together)+ dx = x - tb[0] * w / tb[2];+ dy = y - tb[1] * h / tb[3];+ dw = w * stencil.w0 / tb[2];+ dh = h * stencil.h0 / tb[3];+ }+ else+ {+ // glyphs are authored in tile coordinates, so with a square+ // tile they paint across the full bounds+ dx = x; dy = y; dw = w; dh = h;+ }+ }+ else+ {+ // no tile: map the glyph's real ink bbox (the stencil's 'ink'+ // attribute, style-overridable as atlassian2IconBounds) onto the+ // bounds, so the cell hugs the visible glyph with no padding —+ // together with the geometry scale in styleChanged the glyph+ // keeps its absolute size when the tile is toggled; 4 4 16 16 is+ // the app-glyph norm fallback+ var box = this.parseBox(this.iconData(this.style, stencil,+ 'atlassian2IconBounds', 'ink')) || [4, 4, 16, 16];+ var bx = box[0];+ var by = box[1];+ var bw = box[2];+ var bh = box[3];+ dx = x - bx * w / bw;+ dy = y - by * h / bh;+ dw = w * stencil.w0 / bw;+ dh = h * stencil.h0 / bh;+ }++ // glyphScale is canonical to the ROUNDED SQUARE: 1 renders the+ // square-native glyph size on ANY tile shape, and the value in the+ // style is the value that acts — no hidden shape defaults. Hex+ // sidebar entries carry an explicit glyphScale (HEX_GLYPH_FACTOR, or+ // the icon's atlassian2HexScale calibration) and the Tile Shape+ // toggle maintains it in styleChanged. Paint-only, about the+ // cell/slot center (see the customProperties note).+ var gs = parseFloat(mxUtils.getValue(this.style, 'glyphScale', 1));+ gs = (isNaN(gs)) ? 1 : gs;++ if (gs != 1)+ {+ dx = (x + w / 2) + (dx - (x + w / 2)) * gs;+ dy = (y + h / 2) + (dy - (y + h / 2)) * gs;+ dw *= gs;+ dh *= gs;+ }++ stencil.drawShape(c, this, dx, dy, dw, dh);+ }+};++/**+* Function: wordmark+*+* Paints the wordmark stencil to the right of the icon square. Layout comes+* from atlassian2Lockup = "gap textHeight verticalOffset", all relative to+* the icon height; the text aspect comes from the stencil itself. An optional+* BRAND segment (atlassian2Wordmark2 + atlassian2Lockup2, same layout format)+* sits between the icon and the wordmark and follows the FILL color like the+* mark it belongs to — e.g. the blue "Atlassian" in the Marketplace lockup;+* the pipeline then measures the main gap from that segment's right edge.+*/+mxShapeAtlassian2Icon.prototype.wordmark = function(c, h, wordmark, iw, iy)+{+ var stencil = mxStencilRegistry.getStencil(wordmark);+ iy = iy || 0;++ if (stencil != null)+ {+ var lk = this.parseLayout(mxUtils.getValue(this.style, 'atlassian2Lockup', null));+ var gap = lk[0];+ var th = h * lk[1];+ var vOff = lk[2];+ var tw = th * stencil.w0 / stencil.h0;+ var x = iw;+ var wm2 = mxUtils.getValue(this.style, 'atlassian2Wordmark2', null);+ var stencil2 = (wm2 != null) ? mxStencilRegistry.getStencil(wm2) : null;++ if (stencil2 != null)+ {+ var lk2 = this.parseLayout(mxUtils.getValue(this.style, 'atlassian2Lockup2', null));+ var th2 = h * lk2[1];+ var tw2 = th2 * stencil2.w0 / stencil2.h0;+ c.setFillColor(mxUtils.getColorValue(this.style, mxConstants.STYLE_FILLCOLOR, 'none'));+ stencil2.drawShape(c, this, x + h * lk2[0],+ iy + h * (0.5 + lk2[2]) - th2 / 2, tw2, th2);+ x += h * lk2[0] + tw2;+ }++ // missing text color = unchecked Text Color row -> invisible wordmark+ // (or stroke-only when Line is set), same semantics as the Fill row+ c.setFillColor(mxUtils.getColorValue(this.style, 'wordmarkColor', 'none'));+ // the pipeline measures the gap from the tile's right edge (or the+ // brand segment's right edge), so the wordmark starts after the icon+ // slot (h for square tiles, narrower for hex) plus the gap; h and iy+ // here are the ICON BLOCK's height and top (see atlassian2LockupBox)+ stencil.drawShape(c, this, x + h * gap, iy + h * (0.5 + vOff) - th / 2, tw, th);+ }+};++/**+* Function: getConstraints+*+* Fixed connection points, following the visible silhouette: on a tile the+* four exact cardinals, one point per corner halfway on the rounding, and+* the center (9). Tile off: the glyph stencil's own silhouette points+* (exact axis intersections for N/S/E/W, ray-cast diagonals, center where+* the artwork covers it), remapped into the ink bounds.+*/+mxShapeAtlassian2Icon.prototype.getConstraints = function(style, w, h)+{+ var tileColor = mxUtils.getColorValue(style, 'tileColor', 'none');+ var constr = [];++ // lockups connect on their overall box+ if (mxUtils.getValue(style, 'atlassian2Wordmark', null) != null)+ {+ constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false));+ constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false));+ constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false));+ constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false));+ constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false));+ constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false));+ constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false));+ constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false));++ return constr;+ }++ function add(x, y, name)+ {+ var mc = new mxConnectionConstraint(new mxPoint(+ Math.round(x * 1000) / 1000, Math.round(y * 1000) / 1000), false);+ mc.name = name;+ constr.push(mc);+ };++ if (tileColor != 'none')+ {+ if (mxUtils.getValue(style, 'tileShape', 'square') == 'hex')+ {+ // hexagon tile fills the bounds: top/bottom points, the vertical+ // edges at mid-height, the four slope-edge midpoints, the center+ add(0.5, 0, 'N');+ add(1, 0.5, 'E');+ add(0.5, 1, 'S');+ add(0, 0.5, 'W');+ add(0.75, 0.125, 'NE');+ add(0.75, 0.875, 'SE');+ add(0.25, 0.875, 'SW');+ add(0.25, 0.125, 'NW');+ }+ else+ {+ // exact cardinals plus ONE point per corner, halfway on the+ // rounding (45 degrees on the corner arc), and the center+ add(0.5, 0, 'N');+ add(1, 0.5, 'E');+ add(0.5, 1, 'S');+ add(0, 0.5, 'W');++ // 45-degree offset from the corner arc center: r * (1 - 1/sqrt(2)),+ // r = 0.25 on the rounded tile+ var d = 0.25 * (1 - Math.SQRT1_2);+ add(1 - d, d, 'NE');+ add(1 - d, 1 - d, 'SE');+ add(d, 1 - d, 'SW');+ add(d, d, 'NW');+ }++ add(0.5, 0.5, 'C');+ }+ else+ {+ // no tile: use the silhouette support points stored in the glyph+ // stencil's connections, remapped from stencil-canvas coordinates+ // into the ink bounds the cell hugs in this mode+ var stencilName = mxUtils.getValue(style, 'atlassian2Icon', null);+ var stencil = (stencilName != null) ? mxStencilRegistry.getStencil(stencilName) : null;+ var box = this.parseBox(this.iconData(style, stencil, 'atlassian2IconBounds', 'ink'));++ if (stencil != null && stencil.constraints != null && box != null)+ {+ var bx = box[0];+ var by = box[1];+ var bw = box[2];+ var bh = box[3];++ for (var i = 0; i < stencil.constraints.length; i++)+ {+ var cp = stencil.constraints[i].point;+ var mc = new mxConnectionConstraint(new mxPoint(+ Math.min(1, Math.max(0, (cp.x * stencil.w0 - bx) / bw)),+ Math.min(1, Math.max(0, (cp.y * stencil.h0 - by) / bh))), false);+ mc.name = stencil.constraints[i].name;+ constr.push(mc);+ }+ }+ else+ {+ constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false));+ constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false));+ constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false));+ constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false));+ constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false));+ constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false));+ constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false));+ constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false));+ }+ }++ return constr;+};++/**+* Function: styleChanged+*+* Called by mxGraph.setCellStyles for every style write (like mxNetworks2).+* Three responsibilities: restore memory for this shape's own color+* checkboxes; resize the cell and maintain glyphScale when the Tile Shape+* toggles (proportion-preserving, per-icon defaults); resize the cell by the+* per-icon ink/tile factors when the tile is toggled off/on via the Tile+* Color checkbox (16/24 is only the fallback for styles without+* atlassian2IconBounds). state.style still carries the previous values here.+*/+mxShapeAtlassian2Icon.prototype.styleChanged = function(key, value, state)+{+ // Restore memory for this shape's OWN color checkboxes (tileColor,+ // tileOutlineColor, wordmarkColor): the Format panel rebuilds its rows+ // after every change, losing the built-in "re-check restores the previous+ // color" closure state, so re-enabling would always apply the row default.+ // The shape instance survives style changes (same technique as+ // prevNetwork2BgColor in mxNetworks2): remember the color on uncheck and+ // rewrite the incoming default on re-check (session-only by design; the+ // swatch is hidden while unchecked, so the checkbox is the only regular+ // write path — a manual Edit Style change in that window is overridden+ // once, acceptable edge). STANDARD keys (fillColor etc.) are deliberately+ // NOT covered: shared Format panel behavior must stay uniform across all+ // shapes, so that fix belongs upstream in the panel. This block is a+ // candidate for hoisting into the shared custom-properties picker — sets+ // with custom color properties would then inherit it declaratively.+ if (key == 'tileColor' || key == 'tileOutlineColor' || key == 'wordmarkColor')+ {+ var prevField = 'prev_' + key;+ var prevValue = mxUtils.getColorValue(state.style, key, 'none');++ if (value == null || value == 'none')+ {+ if (prevValue != 'none')+ {+ this[prevField] = prevValue;+ }+ }+ else if (this[prevField] != null)+ {+ var restore = this[prevField];+ this[prevField] = null;++ if (value != restore)+ {+ // re-enters styleChanged, which then performs the resize once+ state.view.graph.setCellStyles(key, restore, [state.cell]);+ return;+ }+ }+ }++ // shape toggle: a hex tile is HEX_ASPECT as wide as a square one, so the+ // cell width follows the shape (paint and geometry compensate together,+ // same contract as the tile on/off toggle) — lockups adjust by the icon+ // slot delta instead, keeping the wordmark block intact+ if (key == 'tileShape')+ {+ var oldShape = mxUtils.getValue(state.style, 'tileShape', 'square');+ var newShape = (value != null && value != '') ? value : 'square';++ if (oldShape != newShape)+ {+ var graph = state.view.graph;+ var geometry = graph.getCellGeometry(state.cell);+ var oldA = (oldShape == 'hex') ? mxShapeAtlassian2Icon.HEX_ASPECT : 1;+ var newA = (newShape == 'hex') ? mxShapeAtlassian2Icon.HEX_ASPECT : 1;++ if (geometry != null && graph.getModel().isVertex(state.cell) && oldA != newA)+ {+ geometry = geometry.clone();++ if (mxUtils.getValue(state.style, 'atlassian2Wordmark', null) != null)+ {+ // the slot height is the ICON BLOCK, cell height / k+ // when the lockup ink box exceeds the icon block+ var lb = String(mxUtils.getValue(state.style,+ 'atlassian2LockupBox', '1 0')).split(' ');+ var bk = parseFloat(lb[0]);+ bk = (isNaN(bk) || bk <= 0) ? 1 : bk;+ geometry.width += (geometry.height / bk) * (newA - oldA);+ }+ else+ {+ var f = newA / oldA;+ geometry.x += geometry.width * (1 - f) / 2;+ geometry.width *= f;+ }++ graph.getModel().setGeometry(state.cell, geometry);+ }++ // glyphScale is canonical to the square (see foreground) and the+ // acting value always lives in the style. The toggle is+ // PROPORTION-PRESERVING: while the value sits at the old shape's+ // default, switching writes the new shape's default so the mark+ // keeps its mark-to-tile ratio — it scales exactly as much as+ // the tile does. Defaults are per icon: hexDef comes from the+ // glyph stencil's 'hexscale' calibration attribute (0.98 on+ // rovo-dev-agent whose mark runs over the family rule; style key+ // atlassian2HexScale overrides; uniform HEX_GLYPH_FACTOR+ // otherwise) and squareDef = hexDef / the factor — 1 for+ // uncalibrated icons, 1.0924 for rovo-dev-agent. A customized+ // value is the user's and stays verbatim (its square-canonical+ // meaning is shape-independent), so an explicit 1 — the+ // family-rule square inset — survives switching.+ var iconStencilName = mxUtils.getValue(state.style, 'atlassian2Icon', null);+ var iconStencil = (iconStencilName != null) ?+ mxStencilRegistry.getStencil(iconStencilName) : null;+ var iconHex = parseFloat(this.iconData(state.style, iconStencil,+ 'atlassian2HexScale', 'hexscale'));+ iconHex = (isNaN(iconHex)) ? mxShapeAtlassian2Icon.HEX_GLYPH_FACTOR : iconHex;+ var hexDef = iconHex;+ var squareDef = iconHex / mxShapeAtlassian2Icon.HEX_GLYPH_FACTOR;+ var gs = parseFloat(mxUtils.getValue(state.style, 'glyphScale', 1));+ gs = (isNaN(gs)) ? 1 : gs;+ var oldDef = (oldShape == 'hex') ? hexDef : squareDef;+ var newDef = (newShape == 'hex') ? hexDef : squareDef;++ if (Math.abs(gs - oldDef) < 0.0005)+ {+ // re-enters styleChanged for glyphScale — a no-op key there+ state.view.graph.setCellStyles('glyphScale',+ (Math.abs(newDef - 1) < 0.0005) ? null :+ String(Math.round(newDef * 10000) / 10000), [state.cell]);+ }+ }+ }++ if (key == 'tileColor')+ {+ var oldColor = mxUtils.getColorValue(state.style, 'tileColor', 'none');+ var oldVisible = oldColor != 'none';+ var newVisible = value != null && value != 'none';++ // lockup cells keep their geometry: the icon square is fixed and the+ // glyph never rescales to ink bounds there+ if (oldVisible != newVisible &&+ mxUtils.getValue(state.style, 'atlassian2Wordmark', null) == null)+ {+ var graph = state.view.graph;+ var geometry = graph.getCellGeometry(state.cell);+ var fw = 16 / 24;+ var fh = 16 / 24;+ var stencilName = mxUtils.getValue(state.style, 'atlassian2Icon', null);+ var stencil = (stencilName != null) ? mxStencilRegistry.getStencil(stencilName) : null;+ var box = this.parseBox(this.iconData(state.style, stencil,+ 'atlassian2IconBounds', 'ink'));++ // per-icon ink bbox -> the tile-less cell takes the glyph's+ // natural bounds (and natural aspect ratio)+ if (stencil != null && box != null)+ {+ // the tile-on cell hugs the TILE bbox (narrower than the+ // canvas for hex), so the toggle factor is ink over tile —+ // not ink over canvas — or absolute sizes would drift+ var tb = this.tileBounds(stencil);+ fw = box[2] / ((tb != null) ? tb[2] : stencil.w0);+ fh = box[3] / ((tb != null) ? tb[3] : stencil.h0);+ }++ if (geometry != null && graph.getModel().isVertex(state.cell))+ {+ geometry = geometry.clone();+ var sw = (newVisible) ? 1 / fw : fw;+ var sh = (newVisible) ? 1 / fh : fh;+ geometry.x += geometry.width * (1 - sw) / 2;+ geometry.y += geometry.height * (1 - sh) / 2;+ geometry.width *= sw;+ geometry.height *= sh;+ graph.getModel().setGeometry(state.cell, geometry);+ }+ }+ }+};++mxCellRenderer.registerShape(mxShapeAtlassian2Icon.prototype.cst.SHAPE_ICON, mxShapeAtlassian2Icon);diff --git a/src/main/webapp/stencils/atlassian2.xml b/src/main/webapp/stencils/atlassian2.xmlnew file mode 100644index 000000000..62a413cf2--- /dev/null+++ b/src/main/webapp/stencils/atlassian2.xml@@ -0,0 +1 @@+<shapes name="mxgraph.atlassian2"><shape name="admin" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5.16 5 13.68 14"><connections><constraint name="N" perimeter="0" x="0.5" y="0.208"/><constraint name="S" perimeter="0" x="0.5" y="0.792"/><constraint name="W" perimeter="0" x="0.289" y="0.5"/><constraint name="E" perimeter="0" x="0.711" y="0.5"/><constraint name="NE" perimeter="0" x="0.72" y="0.298"/><constraint name="SE" perimeter="0" x="0.72" y="0.702"/><constraint name="SW" perimeter="0" x="0.28" y="0.702"/><constraint name="NW" perimeter="0" x="0.28" y="0.298"/></connections><foreground><path><move x="10.444" y="5"/><line x="13.555" y="5"/><line x="14.535" y="7.61"/><line x="17.285" y="7.153"/><line x="18.84" y="9.847"/><line x="17.07" y="12"/><line x="18.84" y="14.153"/><line x="17.285" y="16.847"/><line x="14.535" y="16.39"/><line x="13.556" y="19"/><line x="10.446" y="19"/><line x="9.466" y="16.39"/><line x="6.716" y="16.847"/><line x="5.161" y="14.153"/><line x="6.931" y="12"/><line x="5.16" y="9.847"/><line x="6.715" y="7.153"/><line x="9.465" y="7.61"/><line x="10.444" y="5"/><close/><move x="12" y="14.625"/><arc rx="2.625" ry="2.625" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0" x="12" y="9.375"/><arc rx="2.625" ry="2.625" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="12" y="14.625"/><close/></path><fillstroke/></foreground></shape><shape name="align" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5.46 5.45 13.09 13.09"><connections><constraint name="N" perimeter="0" x="0.5" y="0.227"/><constraint name="S" perimeter="0" x="0.5" y="0.773"/><constraint name="W" perimeter="0" x="0.227" y="0.5"/><constraint name="E" perimeter="0" x="0.773" y="0.5"/><constraint name="NE" perimeter="0" x="0.764" y="0.236"/><constraint name="SE" perimeter="0" x="0.773" y="0.773"/><constraint name="SW" perimeter="0" x="0.236" y="0.764"/><constraint name="NW" perimeter="0" x="0.227" y="0.227"/></connections><foreground><path><move x="18.545" y="18.545"/><line x="6.281" y="18.545"/><curve x1="5.705" y1="18.545" x2="5.455" y2="18.295" x3="5.455" y3="17.719"/><line x="5.455" y="10.285"/><line x="9.935" y="10.285"/><line x="9.935" y="14.065"/><line x="14.065" y="14.065"/><arc rx="4.49" ry="4.49" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="18.545" y="18.545"/><close/><move x="5.455" y="5.455"/><line x="17.719" y="5.454"/><quad x1="18.545" y1="5.455" x2="18.545" y2="6.28"/><line x="18.545" y="13.715"/><line x="14.065" y="13.715"/><line x="14.065" y="9.935"/><line x="9.91" y="9.935"/><arc rx="4.454" ry="4.454" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="5.455" y="5.455"/><close/></path><fillstroke/></foreground></shape><shape name="analytics" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5.87 5.87 11.82 12.26"><connections><constraint name="N" perimeter="0" x="0.491" y="0.354"/><constraint name="S" perimeter="0" x="0.491" y="0.755"/><constraint name="W" perimeter="0" x="0.245" y="0.5"/><constraint name="E" perimeter="0" x="0.737" y="0.5"/><constraint name="NE" perimeter="0" x="0.737" y="0.245"/><constraint name="SE" perimeter="0" x="0.737" y="0.755"/><constraint name="SW" perimeter="0" x="0.245" y="0.755"/><constraint name="NW" perimeter="0" x="0.372" y="0.427"/><constraint name="C" perimeter="0" x="0.491" y="0.5"/></connections><foreground><path><move x="14.63" y="5.88"/><line x="17.69" y="5.87"/><line x="17.69" y="15.07"/><line x="14.63" y="15.07"/><line x="14.63" y="5.88"/><close/><move x="5.88" y="18.13"/><line x="5.87" y="16.38"/><line x="17.69" y="16.38"/><line x="17.69" y="18.13"/><line x="5.88" y="18.13"/><close/><move x="5.88" y="15.06"/><line x="5.88" y="10.25"/><line x="8.94" y="10.25"/><line x="8.94" y="15.06"/><line x="5.88" y="15.06"/><close/><move x="10.25" y="8.5"/><line x="13.31" y="8.5"/><line x="13.31" y="15.06"/><line x="10.25" y="15.06"/><line x="10.25" y="8.5"/><close/></path><fillstroke/></foreground></shape><shape name="assets" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="4.25 4.25 15 15.01"><connections><constraint name="N" perimeter="0" x="0.49" y="0.272"/><constraint name="S" perimeter="0" x="0.49" y="0.745"/><constraint name="W" perimeter="0" x="0.272" y="0.49"/><constraint name="E" perimeter="0" x="0.745" y="0.49"/><constraint name="NE" perimeter="0" x="0.76" y="0.231"/><constraint name="SE" perimeter="0" x="0.774" y="0.774"/><constraint name="SW" perimeter="0" x="0.231" y="0.76"/><constraint name="NW" perimeter="0" x="0.221" y="0.221"/></connections><foreground><path><move x="8.34" y="11.495"/><line x="8.34" y="13.796"/><line x="6.523" y="13.796"/><line x="6.523" y="11.258"/><arc rx="3.638" ry="3.638" x-axis-rotation="0" large-arc-flag="1" sweep-flag="1" x="11.258" y="6.523"/><line x="13.795" y="6.523"/><line x="13.795" y="8.341"/><line x="11.495" y="8.341"/><arc rx="3.64" ry="3.64" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="8.34" y="11.495"/><close/><move x="7.887" y="9.25"/><arc rx="1.364" ry="1.364" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0" x="7.887" y="6.523"/><arc rx="1.364" ry="1.364" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="7.887" y="9.25"/><close/><move x="19.25" y="7.43"/><arc rx="2.27" ry="2.27" x-axis-rotation="0" large-arc-flag="1" sweep-flag="1" x="14.71" y="7.43"/><arc rx="2.27" ry="2.27" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="19.26" y="7.43"/><close/><move x="7.43" y="19.26"/><arc rx="2.27" ry="2.27" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="7.43" y="14.71"/><arc rx="2.27" ry="2.27" x-axis-rotation="0" large-arc-flag="1" sweep-flag="1" x="7.43" y="19.25"/><close/><move x="16.98" y="19.26"/><arc rx="2.27" ry="2.27" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="16.98" y="14.71"/><arc rx="2.27" ry="2.27" x-axis-rotation="0" large-arc-flag="1" sweep-flag="1" x="16.98" y="19.25"/><close/><move x="13.8" y="16.07"/><line x="13.8" y="17.89"/><line x="10.62" y="17.89"/><line x="10.62" y="16.07"/><line x="13.8" y="16.07"/><close/><move x="16.07" y="10.61"/><line x="17.89" y="10.61"/><line x="17.89" y="13.79"/><line x="16.07" y="13.79"/><line x="16.07" y="10.61"/><close/></path><fillstroke/></foreground></shape><shape name="atlassian" w="23.13" h="23.09" aspect="fixed" strokewidth="inherit" ink="0 0 23.13 23.09"><connections><constraint name="N" perimeter="0" x="0.5" y="0"/><constraint name="S" perimeter="0" x="0.5" y="0.77"/><constraint name="W" perimeter="0" x="0.231" y="0.5"/><constraint name="E" perimeter="0" x="0.769" y="0.5"/><constraint name="SE" perimeter="0" x="0.995" y="0.989"/><constraint name="SW" perimeter="0" x="0.01" y="0.991"/><constraint name="NW" perimeter="0" x="0.384" y="0.276"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="22.878" y="21.711"/><curve x1="23.086" y1="22.128" x2="23.128" y2="22.253" x3="23.128" y3="22.461"/><curve x1="23.128" y1="22.878" x2="22.836" y2="23.086" x3="22.295" y3="23.086"/><line x="14.96" y="23.086"/><curve x1="14.377" y1="23.086" x2="14.127" y2="22.961" x3="13.793" y3="22.295"/><curve x1="10.793" y1="16.252" x2="8.751" y2="12.501" x3="8.751" y3="8.5"/><curve x1="8.751" y1="5.625" x2="9.418" y2="2.875" x3="10.918" y3="0.5"/><curve x1="11.168" y1="0.083" x2="11.418" y2="0" x3="11.626" y3="0"/><curve x1="11.876" y1="0" x2="12.085" y2="0.083" x3="12.293" y3="0.541"/><line x="22.878" y="21.711"/><close/><move x="7.501" y="11.709"/><curve x1="8.501" y1="13.209" x2="9.793" y2="16.043" x3="9.793" y3="18.96"/><curve x1="9.793" y1="20.001" x2="9.709" y2="20.877" x3="9.459" y3="21.877"/><curve x1="9.251" y1="22.669" x2="8.876" y2="23.085" x3="8.376" y3="23.085"/><line x="0.916" y="23.085"/><curve x1="0.291" y1="23.085" x2="0" y2="22.752" x3="0" y3="22.418"/><curve x1="0" y1="22.252" x2="0.041" y2="22.127" x3="0.208" y3="21.793"/><line x="5.501" y="11.21"/><curve x1="5.876" y1="10.459" x2="6.001" y2="10.376" x3="6.209" y3="10.376"/><curve x1="6.417" y1="10.376" x2="6.667" y2="10.46" x3="7.501" y3="11.71"/><close/></path><fillstroke/></foreground></shape><shape name="bamboo" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5 3.5 13.91 16.1"><connections><constraint name="N" perimeter="0" x="0.498" y="0.412"/><constraint name="S" perimeter="0" x="0.498" y="0.817"/><constraint name="W" perimeter="0" x="0.213" y="0.481"/><constraint name="E" perimeter="0" x="0.577" y="0.481"/><constraint name="NE" perimeter="0" x="0.731" y="0.324"/><constraint name="SE" perimeter="0" x="0.71" y="0.725"/><constraint name="SW" perimeter="0" x="0.277" y="0.713"/><constraint name="NW" perimeter="0" x="0.319" y="0.3"/></connections><foreground><path><move x="9.215" y="12.652"/><arc rx="2.75" ry="2.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="11.964" y="15.394"/><line x="11.964" y="19.599"/><arc rx="6.964" ry="6.964" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="5.115" y="13.872"/><line x="5.066" y="13.555"/><line x="9.215" y="12.652"/><close/><move x="18.475" y="12.652"/><arc rx="0.44" ry="0.44" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="18.911" y="13.12"/><curve x1="18.689" y1="16.431" x2="16.128" y2="19.109" x3="12.868" y3="19.534"/><line x="11.964" y="15.394"/><arc rx="2.75" ry="2.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="14.687" y="13.024"/><arc rx="0.44" ry="0.44" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="15.127" y="12.652"/><line x="18.475" y="12.652"/><close/><move x="11.963" y="9.91"/><arc rx="2.75" ry="2.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="9.215" y="12.652"/><line x="5" y="12.652"/><line x="5" y="12.587"/><curve x1="5.033" y1="9.092" x2="7.668" y2="6.213" x3="11.059" y3="5.771"/><line x="11.963" y="9.91"/><close/><move x="11.963" y="3.938"/><arc rx="0.436" ry="0.436" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12.683" y="3.608"/><line x="17.507" y="7.746"/><arc rx="0.436" ry="0.436" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="17.507" y="8.408"/><line x="12.684" y="12.547"/><arc rx="0.436" ry="0.436" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="11.964" y="12.216"/><line x="11.963" y="3.938"/><close/></path><fillstroke/></foreground></shape><shape name="bitbucket" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5.33 6 13.33 12"><connections><constraint name="N" perimeter="0" x="0.5" y="0.25"/><constraint name="S" perimeter="0" x="0.5" y="0.75"/><constraint name="W" perimeter="0" x="0.259" y="0.5"/><constraint name="E" perimeter="0" x="0.741" y="0.5"/><constraint name="NE" perimeter="0" x="0.763" y="0.25"/><constraint name="SE" perimeter="0" x="0.703" y="0.731"/><constraint name="SW" perimeter="0" x="0.297" y="0.731"/><constraint name="NW" perimeter="0" x="0.237" y="0.25"/></connections><foreground><path><move x="17.898" y="11.353"/><line x="16.904" y="17.417"/><curve x1="16.839" y1="17.784" x2="16.58" y2="18" x3="16.213" y3="18"/><line x="7.787" y="18"/><curve x1="7.42" y1="18" x2="7.16" y2="17.784" x3="7.096" y3="17.417"/><line x="5.346" y="6.604"/><curve x1="5.28" y1="6.237" x2="5.476" y2="6" x3="5.82" y3="6"/><line x="18.178" y="6"/><curve x1="18.524" y1="6" x2="18.718" y2="6.237" x3="18.653" y3="6.604"/><line x="18.178" y="9.454"/><curve x1="18.113" y1="9.864" x2="17.875" y2="10.036" x3="17.487" y3="10.036"/><line x="10.055" y="10.036"/><curve x1="9.946" y1="10.036" x2="9.882" y2="10.101" x3="9.903" y3="10.23"/><line x="10.487" y="13.813"/><curve x1="10.508" y1="13.899" x2="10.573" y2="13.964" x3="10.659" y3="13.964"/><line x="13.339" y="13.964"/><curve x1="13.425" y1="13.964" x2="13.489" y2="13.899" x3="13.511" y3="13.813"/><line x="13.921" y="11.223"/><curve x1="13.965" y1="10.899" x2="14.181" y2="10.77" x3="14.484" y3="10.77"/><line x="17.4" y="10.77"/><curve x1="17.832" y1="10.77" x2="17.962" y2="10.986" x3="17.897" y3="11.352"/><close/></path><fillstroke/></foreground></shape><shape name="bitbucket-data-center" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5.37 6.45 13.23 11.92"><connections><constraint name="N" perimeter="0" x="0.5" y="0.269"/><constraint name="S" perimeter="0" x="0.5" y="0.765"/><constraint name="W" perimeter="0" x="0.261" y="0.517"/><constraint name="E" perimeter="0" x="0.739" y="0.517"/><constraint name="NE" perimeter="0" x="0.76" y="0.269"/><constraint name="SE" perimeter="0" x="0.701" y="0.747"/><constraint name="SW" perimeter="0" x="0.298" y="0.747"/><constraint name="NW" perimeter="0" x="0.239" y="0.269"/></connections><foreground><path><move x="17.843" y="11.763"/><line x="16.857" y="17.787"/><curve x1="16.792" y1="18.152" x2="16.535" y2="18.367" x3="16.171" y3="18.367"/><line x="7.81" y="18.367"/><curve x1="7.445" y1="18.367" x2="7.188" y2="18.152" x3="7.124" y3="17.787"/><line x="5.387" y="7.047"/><curve x1="5.323" y1="6.683" x2="5.516" y2="6.447" x3="5.859" y3="6.447"/><line x="18.121" y="6.447"/><curve x1="18.464" y1="6.447" x2="18.657" y2="6.683" x3="18.593" y3="7.047"/><line x="18.121" y="9.877"/><curve x1="18.057" y1="10.284" x2="17.821" y2="10.456" x3="17.435" y3="10.456"/><line x="10.061" y="10.456"/><curve x1="9.954" y1="10.456" x2="9.889" y2="10.52" x3="9.911" y3="10.649"/><line x="10.49" y="14.207"/><curve x1="10.511" y1="14.293" x2="10.575" y2="14.357" x3="10.661" y3="14.357"/><line x="13.319" y="14.357"/><curve x1="13.405" y1="14.357" x2="13.469" y2="14.293" x3="13.491" y3="14.207"/><line x="13.898" y="11.635"/><curve x1="13.941" y1="11.313" x2="14.155" y2="11.185" x3="14.456" y3="11.185"/><line x="17.35" y="11.185"/><curve x1="17.778" y1="11.185" x2="17.907" y2="11.399" x3="17.843" y3="11.763"/><close/></path><fillstroke/></foreground></shape><shape name="chat" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5.44 5.44 13.12 14.06"><connections><constraint name="N" perimeter="0" x="0.5" y="0.227"/><constraint name="S" perimeter="0" x="0.5" y="0.695"/><constraint name="W" perimeter="0" x="0.227" y="0.52"/><constraint name="E" perimeter="0" x="0.773" y="0.52"/><constraint name="NE" perimeter="0" x="0.773" y="0.227"/><constraint name="SE" perimeter="0" x="0.773" y="0.695"/><constraint name="SW" perimeter="0" x="0.227" y="0.812"/><constraint name="NW" perimeter="0" x="0.227" y="0.227"/></connections><foreground><path><move x="18.563" y="16.688"/><line x="10.125" y="16.688"/><line x="5.438" y="19.5"/><line x="5.438" y="5.438"/><line x="18.563" y="5.438"/><line x="18.563" y="16.688"/><close/><move x="11.733" y="7.313"/><line x="11.478" y="7.96"/><curve x1="11.116" y1="8.88" x2="10.935" y2="9.34" x3="10.6" y3="9.687"/><curve x1="10.266" y1="10.033" x2="9.813" y2="10.23" x3="8.906" y3="10.625"/><line x="8.518" y="10.795"/><line x="8.518" y="11.33"/><line x="8.906" y="11.5"/><curve x1="9.813" y1="11.894" x2="10.266" y2="12.092" x3="10.6" y3="12.438"/><curve x1="10.935" y1="12.784" x2="11.116" y2="13.245" x3="11.478" y3="14.165"/><line x="11.733" y="14.813"/><line x="12.268" y="14.813"/><line x="12.523" y="14.165"/><curve x1="12.885" y1="13.245" x2="13.066" y2="12.785" x3="13.4" y3="12.438"/><curve x1="13.735" y1="12.092" x2="14.188" y2="11.894" x3="15.094" y3="11.499"/><line x="15.482" y="11.33"/><line x="15.482" y="10.795"/><line x="15.094" y="10.625"/><curve x1="14.188" y1="10.23" x2="13.734" y2="10.033" x3="13.4" y3="9.687"/><curve x1="13.066" y1="9.34" x2="12.885" y2="8.88" x3="12.523" y3="7.96"/><line x="12.268" y="7.313"/><line x="11.733" y="7.313"/><close/></path><fillstroke/></foreground></shape><shape name="company-hub" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="6.75 5 10.5 14"><connections><constraint name="N" perimeter="0" x="0.5" y="0.208"/><constraint name="S" perimeter="0" x="0.5" y="0.664"/><constraint name="W" perimeter="0" x="0.281" y="0.5"/><constraint name="E" perimeter="0" x="0.719" y="0.5"/><constraint name="NE" perimeter="0" x="0.719" y="0.208"/><constraint name="SE" perimeter="0" x="0.719" y="0.792"/><constraint name="SW" perimeter="0" x="0.281" y="0.792"/><constraint name="NW" perimeter="0" x="0.281" y="0.208"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="6.75" y="19"/><line x="6.75" y="5"/><line x="17.25" y="5"/><line x="17.25" y="19"/><line x="13.313" y="19"/><line x="13.313" y="15.938"/><line x="10.688" y="15.938"/><line x="10.688" y="19"/><line x="6.75" y="19"/><close/><move x="9.375" y="8.063"/><line x="11.125" y="8.063"/><line x="11.125" y="6.75"/><line x="9.375" y="6.75"/><line x="9.375" y="8.063"/><close/><move x="12.875" y="8.063"/><line x="14.625" y="8.063"/><line x="14.625" y="6.75"/><line x="12.875" y="6.75"/><line x="12.875" y="8.063"/><close/><move x="11.125" y="11.125"/><line x="11.125" y="9.813"/><line x="9.375" y="9.813"/><line x="9.375" y="11.125"/><line x="11.125" y="11.125"/><close/><move x="9.375" y="14.188"/><line x="11.125" y="14.188"/><line x="11.125" y="12.875"/><line x="9.375" y="12.875"/><line x="9.375" y="14.188"/><close/><move x="14.625" y="11.125"/><line x="14.625" y="9.813"/><line x="12.875" y="9.813"/><line x="12.875" y="11.125"/><line x="14.625" y="11.125"/><close/><move x="12.875" y="14.188"/><line x="14.625" y="14.188"/><line x="14.625" y="12.875"/><line x="12.875" y="12.875"/><line x="12.875" y="14.188"/><close/></path><fillstroke/></foreground></shape><shape name="compass" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="6 4.5 13.5 13.5"><connections><constraint name="N" perimeter="0" x="0.531" y="0.188"/><constraint name="S" perimeter="0" x="0.531" y="0.75"/><constraint name="W" perimeter="0" x="0.25" y="0.469"/><constraint name="E" perimeter="0" x="0.672" y="0.469"/><constraint name="NE" perimeter="0" x="0.806" y="0.195"/><constraint name="SE" perimeter="0" x="0.671" y="0.733"/><constraint name="SW" perimeter="0" x="0.257" y="0.743"/><constraint name="NW" perimeter="0" x="0.267" y="0.329"/><constraint name="C" perimeter="0" x="0.531" y="0.469"/></connections><foreground><path><move x="12.75" y="7.877"/><line x="12.75" y="4.507"/><line x="18.91" y="4.5"/><line x="18.917" y="4.5"/><arc rx="0.59" ry="0.59" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="19.5" y="5.098"/><line x="19.5" y="11.245"/><line x="16.134" y="11.245"/><line x="16.134" y="7.877"/><line x="12.75" y="7.877"/><close/><move x="12.75" y="14.615"/><line x="12.75" y="11.245"/><line x="16.118" y="11.245"/><line x="16.118" y="17.41"/><arc rx="0.59" ry="0.59" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="15.527" y="18"/><line x="6.583" y="18"/><arc rx="0.59" ry="0.59" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="6" y="17.402"/><line x="6" y="8.467"/><arc rx="0.59" ry="0.59" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="6.591" y="7.877"/><line x="12.751" y="7.877"/><line x="12.751" y="11.245"/><line x="9.373" y="11.245"/><line x="9.373" y="14.615"/><line x="12.75" y="14.615"/><close/></path><fillstroke/></foreground></shape><shape name="confluence" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5.25 5.55 13.5 12.91"><connections><constraint name="N" perimeter="0" x="0.5" y="0.318"/><constraint name="S" perimeter="0" x="0.5" y="0.682"/><constraint name="NE" perimeter="0" x="0.777" y="0.31"/><constraint name="SE" perimeter="0" x="0.698" y="0.754"/><constraint name="SW" perimeter="0" x="0.223" y="0.69"/><constraint name="NW" perimeter="0" x="0.302" y="0.246"/></connections><foreground><path><move x="17.888" y="14.461"/><curve x1="18.206" y1="14.618" x2="18.296" y2="14.82" x3="18.16" y3="15.135"/><line x="16.89" y="17.918"/><curve x1="16.753" y1="18.232" x2="16.458" y2="18.299" x3="16.186" y3="18.165"/><line x="13.509" y="16.908"/><curve x1="12.579" y1="16.459" x2="11.83" y2="16.279" x3="11.194" y3="16.279"/><curve x1="10.469" y1="16.279" x2="9.901" y2="16.593" x3="9.266" y3="17.559"/><line x="8.858" y="18.187"/><curve x1="8.721" y1="18.389" x2="8.631" y2="18.457" x3="8.495" y3="18.457"/><curve x1="8.382" y1="18.457" x2="8.268" y2="18.412" x3="8.132" y3="18.322"/><line x="5.568" y="16.728"/><curve x1="5.318" y1="16.571" x2="5.25" y2="16.459" x3="5.25" y3="16.324"/><curve x1="5.25" y1="16.189" x2="5.295" y2="16.077" x3="5.499" y3="15.763"/><line x="5.749" y="15.381"/><curve x1="7.269" y1="13.047" x2="8.971" y2="12.216" x3="10.968" y3="12.216"/><curve x1="12.669" y1="12.216" x2="13.849" y2="12.508" x3="17.888" y3="14.461"/><close/><move x="6.112" y="9.545"/><curve x1="5.795" y1="9.388" x2="5.704" y2="9.186" x3="5.84" y3="8.872"/><line x="7.111" y="6.09"/><curve x1="7.247" y1="5.775" x2="7.542" y2="5.708" x3="7.814" y3="5.843"/><line x="10.492" y="7.098"/><curve x1="11.422" y1="7.548" x2="12.171" y2="7.728" x3="12.807" y3="7.728"/><curve x1="13.532" y1="7.728" x2="14.1" y2="7.413" x3="14.735" y3="6.448"/><line x="15.143" y="5.82"/><curve x1="15.28" y1="5.617" x2="15.37" y2="5.55" x3="15.506" y3="5.55"/><curve x1="15.62" y1="5.55" x2="15.733" y2="5.595" x3="15.87" y3="5.685"/><line x="18.432" y="7.278"/><curve x1="18.682" y1="7.435" x2="18.75" y2="7.548" x3="18.75" y3="7.682"/><curve x1="18.75" y1="7.817" x2="18.705" y2="7.929" x3="18.501" y3="8.244"/><line x="18.251" y="8.625"/><curve x1="16.731" y1="10.96" x2="15.029" y2="11.79" x3="13.032" y3="11.79"/><curve x1="11.331" y1="11.79" x2="10.151" y2="11.498" x3="6.112" y3="9.545"/><close/></path><fillstroke/></foreground></shape><shape name="confluence-data-center" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5.78 6.09 12.38 11.84"><connections><constraint name="N" perimeter="0" x="0.499" y="0.334"/><constraint name="S" perimeter="0" x="0.499" y="0.667"/><constraint name="NE" perimeter="0" x="0.753" y="0.326"/><constraint name="SE" perimeter="0" x="0.681" y="0.734"/><constraint name="SW" perimeter="0" x="0.245" y="0.675"/><constraint name="NW" perimeter="0" x="0.317" y="0.267"/></connections><foreground><path><move x="17.369" y="14.265"/><curve x1="17.661" y1="14.409" x2="17.744" y2="14.594" x3="17.619" y3="14.883"/><line x="16.454" y="17.435"/><curve x1="16.329" y1="17.723" x2="16.059" y2="17.785" x3="15.809" y3="17.661"/><line x="13.354" y="16.509"/><curve x1="12.502" y1="16.097" x2="11.815" y2="15.932" x3="11.232" y3="15.932"/><curve x1="10.566" y1="15.932" x2="10.046" y2="16.22" x3="9.464" y3="17.105"/><line x="9.089" y="17.682"/><curve x1="8.964" y1="17.867" x2="8.881" y2="17.929" x3="8.756" y3="17.929"/><curve x1="8.653" y1="17.929" x2="8.548" y2="17.888" x3="8.423" y3="17.805"/><line x="6.073" y="16.343"/><curve x1="5.844" y1="16.2" x2="5.781" y2="16.097" x3="5.781" y3="15.973"/><curve x1="5.781" y1="15.849" x2="5.823" y2="15.747" x3="6.01" y3="15.459"/><line x="6.239" y="15.109"/><curve x1="7.633" y1="12.968" x2="9.194" y2="12.207" x3="11.024" y3="12.207"/><curve x1="12.585" y1="12.207" x2="13.666" y2="12.475" x3="17.37" y3="14.265"/><close/><move x="6.572" y="9.757"/><curve x1="6.281" y1="9.613" x2="6.197" y2="9.428" x3="6.322" y3="9.14"/><line x="7.487" y="6.588"/><curve x1="7.612" y1="6.3" x2="7.882" y2="6.238" x3="8.132" y3="6.361"/><line x="10.587" y="7.514"/><curve x1="11.44" y1="7.926" x2="12.127" y2="8.09" x3="12.709" y3="8.09"/><curve x1="13.375" y1="8.09" x2="13.895" y2="7.802" x3="14.478" y3="6.917"/><line x="14.852" y="6.341"/><curve x1="14.977" y1="6.155" x2="15.06" y2="6.094" x3="15.185" y3="6.094"/><curve x1="15.289" y1="6.094" x2="15.393" y2="6.135" x3="15.518" y3="6.217"/><line x="17.87" y="7.679"/><curve x1="18.098" y1="7.823" x2="18.16" y2="7.926" x3="18.16" y3="8.049"/><curve x1="18.16" y1="8.173" x2="18.119" y2="8.276" x3="17.932" y3="8.564"/><line x="17.703" y="8.914"/><curve x1="16.308" y1="11.054" x2="14.748" y2="11.816" x3="12.918" y3="11.816"/><curve x1="11.357" y1="11.816" x2="10.275" y2="11.548" x3="6.572" y3="9.757"/><close/></path><fillstroke/></foreground></shape><shape name="crowd" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5 4.99 14 13.8"><connections><constraint name="N" perimeter="0" x="0.5" y="0.208"/><constraint name="S" perimeter="0" x="0.5" y="0.406"/><constraint name="W" perimeter="0" x="0.215" y="0.495"/><constraint name="E" perimeter="0" x="0.785" y="0.495"/><constraint name="NE" perimeter="0" x="0.787" y="0.316"/><constraint name="SE" perimeter="0" x="0.712" y="0.694"/><constraint name="SW" perimeter="0" x="0.288" y="0.694"/><constraint name="NW" perimeter="0" x="0.213" y="0.316"/></connections><foreground><path><move x="18.71" y="7.463"/><arc rx="0.44" ry="0.44" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="19" y="7.896"/><line x="18.86" y="11.703"/><curve x1="18.757" y1="14.851" x2="17.177" y2="17.192" x3="14.697" y3="18.721"/><arc rx="0.446" ry="0.446" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="14.052" y="18.517"/><line x="12.606" y="15.105"/><arc rx="0.22" ry="0.22" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12.746" y="14.807"/><arc rx="2.585" ry="2.585" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0" x="11.254" y="14.807"/><arc rx="0.22" ry="0.22" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="11.394" y="15.105"/><line x="9.949" y="18.517"/><arc rx="0.446" ry="0.446" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="9.303" y="18.721"/><curve x1="6.824" y1="17.192" x2="5.243" y2="14.851" x3="5.14" y3="11.703"/><line x="5" y="7.896"/><arc rx="0.44" ry="0.44" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="5.29" y="7.463"/><line x="12" y="4.993"/><line x="18.71" y="7.463"/><close/></path><fillstroke/></foreground></shape><shape name="customer-service-management" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5 5 14 14"><connections><constraint name="N" perimeter="0" x="0.5" y="0.208"/><constraint name="S" perimeter="0" x="0.5" y="0.792"/><constraint name="W" perimeter="0" x="0.208" y="0.5"/><constraint name="E" perimeter="0" x="0.792" y="0.5"/><constraint name="NE" perimeter="0" x="0.726" y="0.315"/><constraint name="SE" perimeter="0" x="0.726" y="0.685"/><constraint name="SW" perimeter="0" x="0.267" y="0.792"/><constraint name="NW" perimeter="0" x="0.315" y="0.274"/></connections><foreground><path><move x="16.43" y="17.42"/><arc rx="6.97" ry="6.97" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12" y="19"/><line x="6.4" y="19"/><line x="6.4" y="18.53"/><line x="10.24" y="14.75"/><arc rx="3.25" ry="3.25" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="12" y="15.27"/><curve x1="12.65" y1="15.27" x2="13.25" y2="15.08" x3="13.76" y3="14.76"/><line x="16.43" y="17.42"/><close/><move x="17.42" y="16.43"/><line x="14.76" y="13.76"/><curve x1="15.08" y1="13.25" x2="15.27" y2="12.65" x3="15.27" y3="12"/><curve x1="15.27" y1="11.35" x2="15.08" y2="10.75" x3="14.75" y3="10.24"/><line x="17.42" y="7.57"/><arc rx="6.97" ry="6.97" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="19" y="12"/><arc rx="6.97" ry="6.97" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="17.42" y="16.43"/><close/><move x="16.43" y="6.58"/><line x="13.76" y="9.25"/><arc rx="3.25" ry="3.25" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="12" y="8.73"/><curve x1="11.35" y1="8.73" x2="10.75" y2="8.92" x3="10.24" y3="9.25"/><line x="7.57" y="6.58"/><arc rx="6.97" ry="6.97" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12" y="5"/><curve x1="13.68" y1="5" x2="15.22" y2="5.59" x3="16.43" y3="6.58"/><close/><move x="6.58" y="7.57"/><line x="9.25" y="10.24"/><curve x1="8.92" y1="10.75" x2="8.73" y2="11.35" x3="8.73" y3="12"/><arc rx="3.25" ry="3.25" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="9.25" y="13.76"/><line x="6.58" y="16.43"/><curve x1="5.59" y1="15.22" x2="5" y2="13.68" x3="5" y3="12"/><arc rx="6.97" ry="6.97" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="6.58" y="7.57"/><close/></path><fillstroke/></foreground></shape><shape name="dx" w="48" h="48" aspect="fixed" strokewidth="inherit" ink="8 14 33.75 20"><connections><constraint name="N" perimeter="0" x="0.518" y="0.292"/><constraint name="S" perimeter="0" x="0.518" y="0.707"/><constraint name="W" perimeter="0" x="0.167" y="0.5"/><constraint name="E" perimeter="0" x="0.733" y="0.5"/><constraint name="NE" perimeter="0" x="0.789" y="0.293"/><constraint name="SE" perimeter="0" x="0.757" y="0.708"/><constraint name="SW" perimeter="0" x="0.31" y="0.707"/><constraint name="NW" perimeter="0" x="0.31" y="0.293"/></connections><foreground><path><move x="36.22" y="26.75"/><line x="41.12" y="34"/><line x="36.34" y="34"/><curve x1="35.82" y1="33.4" x2="35.32" y2="32.69" x3="34.87" y3="32.02"/><curve x1="34.19" y1="31" x2="34.19" y2="29.61" x3="34.9" y3="28.61"/><line x="36.22" y="26.75"/><close/><move x="28.92" y="21.25"/><line x="24.02" y="14"/><line x="28.8" y="14"/><curve x1="29.32" y1="14.6" x2="29.82" y2="15.31" x3="30.27" y3="15.98"/><curve x1="30.95" y1="17" x2="30.95" y2="18.39" x3="30.25" y3="19.39"/><line x="28.92" y="21.25"/><close/><move x="35.9" y="15.23"/><curve x1="36.4" y1="14.39" x2="36.97" y2="14.07" x3="37.85" y3="14.07"/><line x="41.75" y="14"/><line x="29.07" y="33.27"/><arc rx="1.46" ry="1.46" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="27.85" y="33.94"/><line x="23.6" y="33.94"/><curve x1="27.67" y1="27.69" x2="31.97" y2="21.57" x3="35.91" y3="15.24"/><close/><move x="8" y="33.93"/><line x="8" y="20.55"/><curve x1="8" y1="19.12" x2="9.13" y2="17.96" x3="10.52" y3="17.96"/><line x="12.28" y="17.96"/><line x="8" y="14.06"/><line x="14.89" y="14.06"/><curve x1="21.05" y1="14.06" x2="24.81" y2="17.94" x3="24.81" y3="24"/><curve x1="24.81" y1="30.06" x2="21.05" y2="33.94" x3="14.89" y3="33.94"/><line x="8" y="33.94"/><close/><move x="12.41" y="30.03"/><line x="14.9" y="30.04"/><curve x1="18.39" y1="30.04" x2="20.36" y2="27.65" x3="20.36" y3="24"/><curve x1="20.36" y1="20.34" x2="18.39" y2="17.96" x3="14.87" y3="17.96"/><line x="12.41" y="17.96"/><line x="12.41" y="30.03"/><close/></path><fillstroke/></foreground></shape><shape name="feedback" w="48" h="48" aspect="fixed" strokewidth="inherit" ink="6 10 33 28"><connections><constraint name="N" perimeter="0" x="0.469" y="0.396"/><constraint name="S" perimeter="0" x="0.469" y="0.625"/><constraint name="W" perimeter="0" x="0.125" y="0.5"/><constraint name="E" perimeter="0" x="0.812" y="0.5"/><constraint name="NE" perimeter="0" x="0.708" y="0.333"/><constraint name="SE" perimeter="0" x="0.708" y="0.667"/><constraint name="SW" perimeter="0" x="0.271" y="0.667"/><constraint name="NW" perimeter="0" x="0.271" y="0.333"/><constraint name="C" perimeter="0" x="0.469" y="0.5"/></connections><foreground><path><move x="20" y="19"/><line x="25" y="19"/><line x="25" y="30"/><line x="20" y="30"/><line x="20" y="19"/><close/><move x="27" y="10"/><line x="32" y="10"/><line x="32" y="38"/><line x="27" y="38"/><line x="27" y="10"/><close/><move x="34" y="16"/><line x="39" y="16"/><line x="39" y="32"/><line x="34" y="32"/><line x="34" y="16"/><close/><move x="13" y="16"/><line x="18" y="16"/><line x="18" y="32"/><line x="13" y="32"/><line x="13" y="16"/><close/><move x="6" y="21"/><line x="11" y="21"/><line x="11" y="28"/><line x="6" y="28"/><line x="6" y="21"/><close/></path><fillstroke/></foreground></shape><shape name="focus" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="3.16 5.54 17.68 12.92"><connections><constraint name="N" perimeter="0" x="0.5" y="0.231"/><constraint name="S" perimeter="0" x="0.5" y="0.769"/><constraint name="W" perimeter="0" x="0.141" y="0.5"/><constraint name="E" perimeter="0" x="0.859" y="0.5"/><constraint name="NE" perimeter="0" x="0.684" y="0.307"/><constraint name="SE" perimeter="0" x="0.684" y="0.693"/><constraint name="SW" perimeter="0" x="0.316" y="0.693"/><constraint name="NW" perimeter="0" x="0.316" y="0.307"/></connections><foreground><path><move x="20.84" y="12.21"/><line x="16.42" y="16.628"/><arc rx="6.25" ry="6.25" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="7.582" y="16.628"/><line x="6.424" y="15.47"/><line x="9.45" y="12.445"/><line x="10.607" y="13.603"/><curve x1="11.376" y1="14.372" x2="12.626" y2="14.372" x3="13.396" y3="13.603"/><line x="14.79" y="12.21"/><arc rx="4.29" ry="4.29" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="20.84" y="12.21"/><close/><move x="3.16" y="11.792"/><line x="3.162" y="11.791"/><line x="7.582" y="7.372"/><arc rx="6.25" ry="6.25" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="16.42" y="7.372"/><line x="17.578" y="8.53"/><line x="14.552" y="11.555"/><line x="13.394" y="10.397"/><arc rx="1.973" ry="1.973" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="10.606" y="10.397"/><line x="9.194" y="11.809"/><arc rx="4.253" ry="4.253" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="3.16" y="11.792"/><close/></path><fillstroke/></foreground></shape><shape name="goals" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5.44 5.44 13.12 13.12"><connections><constraint name="N" perimeter="0" x="0.5" y="0.227"/><constraint name="S" perimeter="0" x="0.5" y="0.773"/><constraint name="W" perimeter="0" x="0.227" y="0.5"/><constraint name="E" perimeter="0" x="0.773" y="0.5"/><constraint name="NE" perimeter="0" x="0.693" y="0.307"/><constraint name="SE" perimeter="0" x="0.693" y="0.693"/><constraint name="SW" perimeter="0" x="0.307" y="0.693"/><constraint name="NW" perimeter="0" x="0.307" y="0.307"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="14.352" y="12"/><arc rx="2.352" ry="2.352" x-axis-rotation="0" large-arc-flag="1" sweep-flag="1" x="9.648" y="12"/><arc rx="2.352" ry="2.352" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="14.352" y="12"/><close/><move x="12" y="18.563"/><arc rx="6.562" ry="6.562" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12" y="5.438"/><arc rx="6.562" ry="6.562" x-axis-rotation="0" large-arc-flag="1" sweep-flag="1" x="12" y="18.563"/><close/><move x="16.102" y="12"/><arc rx="4.102" ry="4.102" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="7.898" y="12"/><arc rx="4.102" ry="4.102" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0" x="16.102" y="12"/><close/></path><fillstroke/></foreground></shape><shape name="guard" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="4.92 5.33 14.17 13.87"><connections><constraint name="N" perimeter="0" x="0.5" y="0.222"/><constraint name="S" perimeter="0" x="0.5" y="0.8"/><constraint name="W" perimeter="0" x="0.217" y="0.511"/><constraint name="E" perimeter="0" x="0.783" y="0.511"/><constraint name="NE" perimeter="0" x="0.789" y="0.228"/><constraint name="SE" perimeter="0" x="0.699" y="0.721"/><constraint name="SW" perimeter="0" x="0.3" y="0.721"/><constraint name="NW" perimeter="0" x="0.211" y="0.228"/><constraint name="C" perimeter="0" x="0.5" y="0.511"/></connections><foreground><path><move x="5.49" y="10.87"/><curve x1="5.117" y1="10.87" x2="4.917" y2="10.67" x3="4.917" y3="10.297"/><line x="4.917" y="5.907"/><curve x1="4.917" y1="5.533" x2="5.116" y2="5.333" x3="5.49" y3="5.333"/><line x="8.234" y="5.333"/><curve x1="8.607" y1="5.333" x2="8.807" y2="5.533" x3="8.807" y3="5.907"/><line x="8.807" y="8.127"/><line x="10.055" y="8.127"/><line x="10.055" y="5.907"/><curve x1="10.055" y1="5.533" x2="10.255" y2="5.333" x3="10.629" y3="5.333"/><line x="13.372" y="5.333"/><curve x1="13.746" y1="5.333" x2="13.946" y2="5.533" x3="13.946" y3="5.907"/><line x="13.946" y="8.127"/><line x="15.193" y="8.127"/><line x="15.193" y="5.907"/><curve x1="15.193" y1="5.533" x2="15.392" y2="5.333" x3="15.766" y3="5.333"/><line x="18.51" y="5.333"/><curve x1="18.884" y1="5.333" x2="19.084" y2="5.533" x3="19.084" y3="5.907"/><line x="19.084" y="10.296"/><curve x1="19.084" y1="10.67" x2="18.884" y2="10.87" x3="18.51" y3="10.87"/><line x="5.49" y="10.87"/><close/><move x="5.715" y="14.71"/><arc rx="8.7" ry="8.7" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="5.215" y="12.217"/><curve x1="5.191" y1="11.893" x2="5.341" y2="11.718" x3="5.69" y3="11.718"/><line x="18.31" y="11.718"/><curve x1="18.659" y1="11.718" x2="18.808" y2="11.868" x3="18.808" y3="12.167"/><arc rx="8.2" ry="8.2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="18.285" y="14.711"/><curve x1="18.135" y1="15.11" x2="17.91" y2="15.284" x3="17.486" y3="15.284"/><line x="6.513" y="15.284"/><curve x1="6.089" y1="15.284" x2="5.864" y2="15.11" x3="5.715" y3="14.711"/><close/><move x="17.262" y="16.781"/><curve x1="16.065" y1="18.253" x2="14.095" y2="19.2" x3="12" y3="19.2"/><curve x1="9.905" y1="19.2" x2="7.884" y2="18.252" x3="6.712" y3="16.78"/><curve x1="6.413" y1="16.382" x2="6.562" y2="16.132" x3="6.862" y3="16.132"/><line x="17.137" y="16.132"/><curve x1="17.437" y1="16.132" x2="17.587" y2="16.382" x3="17.262" y3="16.781"/><close/></path><fillstroke/></foreground></shape><shape name="guard-detect" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="4.92 5.33 14.17 13.87"><connections><constraint name="N" perimeter="0" x="0.5" y="0.222"/><constraint name="S" perimeter="0" x="0.5" y="0.8"/><constraint name="W" perimeter="0" x="0.217" y="0.511"/><constraint name="E" perimeter="0" x="0.783" y="0.511"/><constraint name="NE" perimeter="0" x="0.789" y="0.228"/><constraint name="SE" perimeter="0" x="0.699" y="0.721"/><constraint name="SW" perimeter="0" x="0.3" y="0.721"/><constraint name="NW" perimeter="0" x="0.211" y="0.228"/><constraint name="C" perimeter="0" x="0.5" y="0.511"/></connections><foreground><path><move x="5.49" y="10.87"/><curve x1="5.117" y1="10.87" x2="4.917" y2="10.67" x3="4.917" y3="10.297"/><line x="4.917" y="5.907"/><curve x1="4.917" y1="5.533" x2="5.116" y2="5.333" x3="5.49" y3="5.333"/><line x="8.234" y="5.333"/><curve x1="8.607" y1="5.333" x2="8.807" y2="5.533" x3="8.807" y3="5.907"/><line x="8.807" y="8.127"/><line x="10.055" y="8.127"/><line x="10.055" y="5.907"/><curve x1="10.055" y1="5.533" x2="10.255" y2="5.333" x3="10.629" y3="5.333"/><line x="13.372" y="5.333"/><curve x1="13.746" y1="5.333" x2="13.946" y2="5.533" x3="13.946" y3="5.907"/><line x="13.946" y="8.127"/><line x="15.193" y="8.127"/><line x="15.193" y="5.907"/><curve x1="15.193" y1="5.533" x2="15.392" y2="5.333" x3="15.766" y3="5.333"/><line x="18.51" y="5.333"/><curve x1="18.884" y1="5.333" x2="19.084" y2="5.533" x3="19.084" y3="5.907"/><line x="19.084" y="10.296"/><curve x1="19.084" y1="10.67" x2="18.884" y2="10.87" x3="18.51" y3="10.87"/><line x="5.49" y="10.87"/><close/><move x="5.715" y="14.71"/><arc rx="8.7" ry="8.7" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="5.215" y="12.217"/><curve x1="5.191" y1="11.893" x2="5.341" y2="11.718" x3="5.69" y3="11.718"/><line x="18.31" y="11.718"/><curve x1="18.659" y1="11.718" x2="18.808" y2="11.868" x3="18.808" y3="12.167"/><arc rx="8.2" ry="8.2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="18.285" y="14.711"/><curve x1="18.135" y1="15.11" x2="17.91" y2="15.284" x3="17.486" y3="15.284"/><line x="6.513" y="15.284"/><curve x1="6.089" y1="15.284" x2="5.864" y2="15.11" x3="5.715" y3="14.711"/><close/><move x="17.262" y="16.781"/><curve x1="16.065" y1="18.253" x2="14.095" y2="19.2" x3="12" y3="19.2"/><curve x1="9.905" y1="19.2" x2="7.884" y2="18.252" x3="6.712" y3="16.78"/><curve x1="6.413" y1="16.382" x2="6.562" y2="16.132" x3="6.862" y3="16.132"/><line x="17.137" y="16.132"/><curve x1="17.437" y1="16.132" x2="17.587" y2="16.382" x3="17.262" y3="16.781"/><close/></path><fillstroke/></foreground></shape><shape name="home" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5.88 5 12.25 13.12"><connections><constraint name="N" perimeter="0" x="0.5" y="0.208"/><constraint name="S" perimeter="0" x="0.5" y="0.573"/><constraint name="W" perimeter="0" x="0.245" y="0.482"/><constraint name="E" perimeter="0" x="0.755" y="0.482"/><constraint name="NE" perimeter="0" x="0.755" y="0.445"/><constraint name="SE" perimeter="0" x="0.755" y="0.755"/><constraint name="SW" perimeter="0" x="0.245" y="0.755"/><constraint name="NW" perimeter="0" x="0.245" y="0.445"/><constraint name="C" perimeter="0" x="0.5" y="0.482"/></connections><foreground><path><move x="5.875" y="10.688"/><line x="12" y="5"/><line x="18.125" y="10.688"/><line x="18.125" y="18.125"/><line x="13.75" y="18.125"/><line x="13.75" y="13.75"/><line x="10.25" y="13.75"/><line x="10.25" y="18.125"/><line x="5.875" y="18.125"/><line x="5.875" y="10.688"/><close/></path><fillstroke/></foreground></shape><shape name="hub" w="32" h="32" aspect="fixed" strokewidth="inherit" ink="9 6.67 14 18.67"><connections><constraint name="N" perimeter="0" x="0.5" y="0.208"/><constraint name="S" perimeter="0" x="0.5" y="0.664"/><constraint name="W" perimeter="0" x="0.281" y="0.5"/><constraint name="E" perimeter="0" x="0.719" y="0.5"/><constraint name="NE" perimeter="0" x="0.719" y="0.208"/><constraint name="SE" perimeter="0" x="0.719" y="0.792"/><constraint name="SW" perimeter="0" x="0.281" y="0.792"/><constraint name="NW" perimeter="0" x="0.281" y="0.208"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="9" y="25.333"/><line x="9" y="6.667"/><line x="23" y="6.667"/><line x="23" y="25.333"/><line x="17.75" y="25.333"/><line x="17.75" y="21.25"/><line x="14.25" y="21.25"/><line x="14.25" y="25.333"/><line x="9" y="25.333"/><close/><move x="12.5" y="10.75"/><line x="14.833" y="10.75"/><line x="14.833" y="9"/><line x="12.5" y="9"/><line x="12.5" y="10.75"/><close/><move x="17.167" y="10.75"/><line x="19.5" y="10.75"/><line x="19.5" y="9"/><line x="17.167" y="9"/><line x="17.167" y="10.75"/><close/><move x="14.833" y="14.833"/><line x="14.833" y="13.083"/><line x="12.5" y="13.083"/><line x="12.5" y="14.833"/><line x="14.833" y="14.833"/><close/><move x="12.5" y="18.916"/><line x="14.833" y="18.916"/><line x="14.833" y="17.166"/><line x="12.5" y="17.166"/><line x="12.5" y="18.916"/><close/><move x="19.5" y="14.833"/><line x="19.5" y="13.083"/><line x="17.167" y="13.083"/><line x="17.167" y="14.833"/><line x="19.5" y="14.833"/><close/><move x="17.167" y="18.916"/><line x="19.5" y="18.916"/><line x="19.5" y="17.166"/><line x="17.167" y="17.166"/><line x="17.167" y="18.916"/><close/></path><fillstroke/></foreground></shape><shape name="jira" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="4.32 5.37 14.71 14.83"><connections><constraint name="N" perimeter="0" x="0.487" y="0.224"/><constraint name="S" perimeter="0" x="0.487" y="0.84"/><constraint name="W" perimeter="0" x="0.182" y="0.533"/><constraint name="E" perimeter="0" x="0.793" y="0.533"/><constraint name="NE" perimeter="0" x="0.786" y="0.231"/><constraint name="SE" perimeter="0" x="0.647" y="0.694"/><constraint name="SW" perimeter="0" x="0.377" y="0.643"/><constraint name="NW" perimeter="0" x="0.326" y="0.371"/><constraint name="C" perimeter="0" x="0.487" y="0.533"/></connections><foreground><path><move x="9.051" y="15.434"/><line x="7.734" y="15.434"/><curve x1="5.746" y1="15.434" x2="4.321" y2="14.216" x3="4.321" y3="12.434"/><line x="11.406" y="12.434"/><curve x1="11.773" y1="12.434" x2="12.011" y2="12.694" x3="12.011" y3="13.064"/><line x="12.011" y="20.194"/><curve x1="10.239" y1="20.194" x2="9.051" y2="18.759" x3="9.051" y3="16.76"/><line x="9.051" y="15.434"/><close/><move x="12.551" y="11.891"/><line x="11.233" y="11.891"/><curve x1="9.246" y1="11.891" x2="7.82" y2="10.695" x3="7.82" y3="8.913"/><line x="14.905" y="8.913"/><curve x1="15.272" y1="8.913" x2="15.532" y2="9.152" x3="15.532" y3="9.521"/><line x="15.532" y="16.651"/><curve x1="13.76" y1="16.651" x2="12.551" y2="15.216" x3="12.551" y3="13.217"/><line x="12.551" y="11.891"/><close/><move x="16.071" y="8.369"/><line x="14.754" y="8.369"/><curve x1="12.767" y1="8.369" x2="11.341" y2="7.152" x3="11.341" y3="5.369"/><line x="18.426" y="5.369"/><curve x1="18.793" y1="5.369" x2="19.031" y2="5.631" x3="19.031" y3="5.979"/><line x="19.031" y="13.108"/><curve x1="17.26" y1="13.108" x2="16.071" y2="11.673" x3="16.071" y3="9.674"/><line x="16.071" y="8.369"/><close/></path><fillstroke/></foreground></shape><shape name="jira-coding-agent" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="4.32 5.37 14.71 14.83"><connections><constraint name="N" perimeter="0" x="0.487" y="0.224"/><constraint name="S" perimeter="0" x="0.487" y="0.84"/><constraint name="W" perimeter="0" x="0.182" y="0.533"/><constraint name="E" perimeter="0" x="0.793" y="0.533"/><constraint name="NE" perimeter="0" x="0.786" y="0.231"/><constraint name="SE" perimeter="0" x="0.647" y="0.694"/><constraint name="SW" perimeter="0" x="0.377" y="0.643"/><constraint name="NW" perimeter="0" x="0.326" y="0.371"/><constraint name="C" perimeter="0" x="0.487" y="0.533"/></connections><foreground><path><move x="9.051" y="15.434"/><line x="7.734" y="15.434"/><curve x1="5.746" y1="15.434" x2="4.321" y2="14.216" x3="4.321" y3="12.434"/><line x="11.406" y="12.434"/><curve x1="11.773" y1="12.434" x2="12.011" y2="12.694" x3="12.011" y3="13.064"/><line x="12.011" y="20.194"/><curve x1="10.239" y1="20.194" x2="9.051" y2="18.759" x3="9.051" y3="16.76"/><line x="9.051" y="15.434"/><close/><move x="12.551" y="11.891"/><line x="11.233" y="11.891"/><curve x1="9.246" y1="11.891" x2="7.82" y2="10.695" x3="7.82" y3="8.913"/><line x="14.905" y="8.913"/><curve x1="15.272" y1="8.913" x2="15.532" y2="9.152" x3="15.532" y3="9.521"/><line x="15.532" y="16.651"/><curve x1="13.76" y1="16.651" x2="12.551" y2="15.216" x3="12.551" y3="13.217"/><line x="12.551" y="11.891"/><close/><move x="16.071" y="8.369"/><line x="14.754" y="8.369"/><curve x1="12.767" y1="8.369" x2="11.341" y2="7.152" x3="11.341" y3="5.369"/><line x="18.426" y="5.369"/><curve x1="18.793" y1="5.369" x2="19.031" y2="5.631" x3="19.031" y3="5.979"/><line x="19.031" y="13.108"/><curve x1="17.26" y1="13.108" x2="16.071" y2="11.673" x3="16.071" y3="9.674"/><line x="16.071" y="8.369"/><close/></path><fillstroke/></foreground></shape><shape name="jira-data-center" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="4.12 5.2 15.1 15.21"><connections><constraint name="N" perimeter="0" x="0.486" y="0.216"/><constraint name="S" perimeter="0" x="0.486" y="0.849"/><constraint name="W" perimeter="0" x="0.173" y="0.533"/><constraint name="E" perimeter="0" x="0.801" y="0.533"/><constraint name="NE" perimeter="0" x="0.794" y="0.224"/><constraint name="SE" perimeter="0" x="0.651" y="0.699"/><constraint name="SW" perimeter="0" x="0.374" y="0.647"/><constraint name="NW" perimeter="0" x="0.321" y="0.368"/><constraint name="C" perimeter="0" x="0.486" y="0.533"/></connections><foreground><path><move x="8.974" y="15.523"/><line x="7.62" y="15.523"/><curve x1="5.58" y1="15.523" x2="4.118" y2="14.274" x3="4.118" y3="12.445"/><line x="11.389" y="12.445"/><curve x1="11.766" y1="12.445" x2="12.009" y2="12.713" x3="12.009" y3="13.092"/><line x="12.009" y="20.409"/><curve x1="10.192" y1="20.409" x2="8.973" y2="18.937" x3="8.973" y3="16.884"/><line x="8.974" y="15.523"/><close/><move x="12.565" y="11.887"/><line x="11.213" y="11.887"/><curve x1="9.173" y1="11.887" x2="7.71" y2="10.66" x3="7.71" y3="8.831"/><line x="14.982" y="8.831"/><curve x1="15.358" y1="8.831" x2="15.624" y2="9.076" x3="15.624" y3="9.456"/><line x="15.624" y="16.773"/><curve x1="13.807" y1="16.773" x2="12.565" y2="15.3" x3="12.565" y3="13.248"/><line x="12.565" y="11.887"/><close/><move x="16.179" y="8.273"/><line x="14.826" y="8.273"/><curve x1="12.786" y1="8.273" x2="11.324" y2="7.024" x3="11.324" y3="5.195"/><line x="18.595" y="5.195"/><curve x1="18.972" y1="5.195" x2="19.215" y2="5.463" x3="19.215" y3="5.819"/><line x="19.215" y="13.137"/><curve x1="17.398" y1="13.137" x2="16.179" y2="11.664" x3="16.179" y3="9.612"/><line x="16.179" y="8.273"/><close/></path><fillstroke/></foreground></shape><shape name="jira-product-discovery" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5.62 4.87 13.5 13.5"><connections><constraint name="N" perimeter="0" x="0.516" y="0.234"/><constraint name="S" perimeter="0" x="0.516" y="0.764"/><constraint name="W" perimeter="0" x="0.235" y="0.484"/><constraint name="E" perimeter="0" x="0.768" y="0.484"/><constraint name="NE" perimeter="0" x="0.795" y="0.205"/><constraint name="SE" perimeter="0" x="0.69" y="0.688"/><constraint name="SW" perimeter="0" x="0.312" y="0.688"/><constraint name="NW" perimeter="0" x="0.332" y="0.294"/></connections><foreground><path><move x="13.467" y="4.882"/><arc rx="9.47" ry="9.47" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="18.889" y="4.882"/><curve x1="19.048" y1="4.847" x2="19.154" y2="4.952" x3="19.119" y3="5.111"/><curve x1="18.606" y1="6.961" x2="18.606" y2="8.669" x3="19.119" y3="10.519"/><curve x1="19.154" y1="10.659" x2="19.047" y2="10.783" x3="18.889" y3="10.73"/><arc rx="10.1" ry="10.1" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="13.467" y="10.73"/><curve x1="13.325" y1="10.783" x2="13.202" y2="10.66" x3="13.255" y3="10.519"/><curve x1="13.731" y1="8.669" x2="13.731" y2="6.96" x3="13.255" y3="5.111"/><curve x1="13.202" y1="4.952" x2="13.325" y2="4.847" x3="13.467" y3="4.881"/><close/><move x="14.191" y="11.434"/><line x="18.429" y="11.434"/><line x="18.429" y="11.997"/><curve x1="18.429" y1="15.52" x2="15.551" y2="18.374" x3="12.018" y3="18.374"/><arc rx="6.37" ry="6.37" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="5.625" y="11.997"/><arc rx="6.387" ry="6.387" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12.018" y="5.603"/><curve x1="12.195" y1="5.603" x2="12.372" y2="5.603" x3="12.548" y3="5.62"/><line x="12.548" y="9.83"/><line x="12.195" y="9.83"/><curve x1="10.835" y1="9.83" x2="9.864" y2="10.782" x3="9.864" y3="11.98"/><arc rx="2.153" ry="2.153" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="12.018" y="14.146"/><curve x1="13.219" y1="14.146" x2="14.191" y2="13.124" x3="14.191" y3="11.734"/><line x="14.191" y="11.434"/><close/></path><fillstroke/></foreground></shape><shape name="jira-service-management" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="4.92 3.67 14.11 16.5"><connections><constraint name="N" perimeter="0" x="0.499" y="0.169"/><constraint name="S" perimeter="0" x="0.499" y="0.824"/><constraint name="W" perimeter="0" x="0.233" y="0.497"/><constraint name="E" perimeter="0" x="0.765" y="0.497"/><constraint name="NE" perimeter="0" x="0.569" y="0.368"/><constraint name="SE" perimeter="0" x="0.784" y="0.472"/><constraint name="SW" perimeter="0" x="0.429" y="0.625"/><constraint name="NW" perimeter="0" x="0.214" y="0.521"/></connections><foreground><path><move x="13.744" y="10.156"/><line x="18.322" y="10.156"/><curve x1="19.01" y1="10.156" x2="19.244" y2="10.81" x3="18.825" y3="11.33"/><line x="11.665" y="20.167"/><curve x1="9.351" y1="18.322" x2="9.569" y2="15.404" x3="11.263" y3="13.275"/><line x="13.744" y="10.156"/><close/><move x="10.206" y="13.677"/><line x="5.63" y="13.677"/><curve x1="4.942" y1="13.677" x2="4.707" y2="13.023" x3="5.126" y3="12.504"/><line x="12.286" y="3.667"/><curve x1="14.601" y1="5.511" x2="14.349" y2="8.395" x3="12.672" y3="10.542"/><line x="10.206" y="13.677"/><close/></path><fillstroke/></foreground></shape><shape name="jira-service-management-data-center" w="25" h="24" aspect="fixed" strokewidth="inherit" ink="5.51 3.87 13.76 16.09"><connections><constraint name="N" perimeter="0" x="0.496" y="0.177"/><constraint name="S" perimeter="0" x="0.496" y="0.816"/><constraint name="W" perimeter="0" x="0.247" y="0.497"/><constraint name="E" perimeter="0" x="0.744" y="0.497"/><constraint name="NE" perimeter="0" x="0.561" y="0.371"/><constraint name="SE" perimeter="0" x="0.763" y="0.473"/><constraint name="SW" perimeter="0" x="0.43" y="0.622"/><constraint name="NW" perimeter="0" x="0.229" y="0.52"/></connections><foreground><path><move x="14.117" y="10.203"/><line x="18.581" y="10.203"/><curve x1="19.251" y1="10.203" x2="19.48" y2="10.84" x3="19.071" y3="11.347"/><line x="12.091" y="19.963"/><curve x1="9.834" y1="18.165" x2="10.047" y2="15.32" x3="11.698" y3="13.243"/><line x="14.117" y="10.203"/><close/><move x="10.667" y="13.636"/><line x="6.205" y="13.636"/><curve x1="5.535" y1="13.636" x2="5.306" y2="12.998" x3="5.715" y3="12.492"/><line x="12.696" y="3.875"/><curve x1="14.952" y1="5.674" x2="14.707" y2="8.485" x3="13.072" y3="10.579"/><line x="10.667" y="13.636"/><close/></path><fillstroke/></foreground></shape><shape name="jira_align" w="19.04" h="19.04" aspect="fixed" strokewidth="inherit" ink="0 0 19.04 19.04"><connections><constraint name="N" perimeter="0" x="0.5" y="0"/><constraint name="S" perimeter="0" x="0.5" y="1"/><constraint name="W" perimeter="0" x="0" y="0.5"/><constraint name="E" perimeter="0" x="1" y="0.5"/><constraint name="NE" perimeter="0" x="0.984" y="0.016"/><constraint name="SE" perimeter="0" x="1" y="1"/><constraint name="SW" perimeter="0" x="0.015" y="0.985"/><constraint name="NW" perimeter="0" x="0" y="0"/></connections><foreground><path><move x="19.04" y="19.04"/><line x="1.201" y="19.04"/><curve x1="0.364" y1="19.04" x2="0" y2="18.676" x3="0" y3="17.839"/><line x="0" y="7.026"/><line x="6.516" y="7.026"/><line x="6.516" y="12.523"/><line x="12.523" y="12.523"/><curve x1="16.091" y1="12.523" x2="19.04" y2="15.436" x3="19.04" y3="19.04"/><close/><move x="0" y="0"/><line x="17.839" y="0"/><quad x1="19.04" y1="0.001" x2="19.04" y2="1.201"/><line x="19.04" y="12.013"/><line x="12.523" y="12.013"/><line x="12.523" y="6.517"/><line x="6.48" y="6.517"/><curve x1="2.876" y1="6.517" x2="0" y2="3.604" x3="0" y3="0"/><close/></path><fillstroke/></foreground></shape><shape name="loom" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="4.92 4.92 14.17 14.16"><connections><constraint name="N" perimeter="0" x="0.5" y="0.205"/><constraint name="S" perimeter="0" x="0.5" y="0.795"/><constraint name="W" perimeter="0" x="0.205" y="0.5"/><constraint name="E" perimeter="0" x="0.795" y="0.5"/><constraint name="NE" perimeter="0" x="0.739" y="0.324"/><constraint name="SE" perimeter="0" x="0.739" y="0.676"/><constraint name="SW" perimeter="0" x="0.324" y="0.739"/><constraint name="NW" perimeter="0" x="0.324" y="0.261"/></connections><foreground><path><move x="19.083" y="11.212"/><line x="19.083" y="12.788"/><line x="14.941" y="12.788"/><line x="18.528" y="14.858"/><line x="17.74" y="16.223"/><line x="14.153" y="14.152"/><line x="16.223" y="17.74"/><line x="14.858" y="18.527"/><line x="12.788" y="14.94"/><line x="12.788" y="19.082"/><line x="11.211" y="19.082"/><line x="11.211" y="14.94"/><line x="9.141" y="18.527"/><line x="7.776" y="17.74"/><line x="9.847" y="14.153"/><line x="6.26" y="16.223"/><line x="5.472" y="14.858"/><line x="9.059" y="12.787"/><line x="4.917" y="12.787"/><line x="4.917" y="11.21"/><line x="9.059" y="11.21"/><line x="5.472" y="9.14"/><line x="6.26" y="7.776"/><line x="9.847" y="9.847"/><line x="7.776" y="6.259"/><line x="9.141" y="5.472"/><line x="11.212" y="9.059"/><line x="11.212" y="4.917"/><line x="12.788" y="4.917"/><line x="12.788" y="9.059"/><line x="14.859" y="5.472"/><line x="16.223" y="6.26"/><line x="14.153" y="9.847"/><line x="17.741" y="7.776"/><line x="18.529" y="9.141"/><line x="14.941" y="11.212"/><line x="19.083" y="11.212"/><close/><move x="12" y="14.143"/><arc rx="2.151" ry="2.151" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="12" y="9.841"/><arc rx="2.151" ry="2.151" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0" x="12" y="14.143"/><close/></path><fillstroke/></foreground></shape><shape name="loom-internal" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="4.92 4.92 14.17 14.16"><connections><constraint name="N" perimeter="0" x="0.5" y="0.205"/><constraint name="S" perimeter="0" x="0.5" y="0.795"/><constraint name="W" perimeter="0" x="0.205" y="0.5"/><constraint name="E" perimeter="0" x="0.795" y="0.5"/><constraint name="NE" perimeter="0" x="0.739" y="0.324"/><constraint name="SE" perimeter="0" x="0.739" y="0.676"/><constraint name="SW" perimeter="0" x="0.324" y="0.739"/><constraint name="NW" perimeter="0" x="0.324" y="0.261"/></connections><foreground><path><move x="19.083" y="11.212"/><line x="19.083" y="12.788"/><line x="14.941" y="12.788"/><line x="18.528" y="14.858"/><line x="17.74" y="16.223"/><line x="14.153" y="14.152"/><line x="16.223" y="17.74"/><line x="14.858" y="18.527"/><line x="12.788" y="14.94"/><line x="12.788" y="19.082"/><line x="11.211" y="19.082"/><line x="11.211" y="14.94"/><line x="9.141" y="18.527"/><line x="7.776" y="17.74"/><line x="9.847" y="14.153"/><line x="6.26" y="16.223"/><line x="5.472" y="14.858"/><line x="9.059" y="12.787"/><line x="4.917" y="12.787"/><line x="4.917" y="11.21"/><line x="9.059" y="11.21"/><line x="5.472" y="9.14"/><line x="6.26" y="7.776"/><line x="9.847" y="9.847"/><line x="7.776" y="6.259"/><line x="9.141" y="5.472"/><line x="11.212" y="9.059"/><line x="11.212" y="4.917"/><line x="12.788" y="4.917"/><line x="12.788" y="9.059"/><line x="14.859" y="5.472"/><line x="16.223" y="6.26"/><line x="14.153" y="9.847"/><line x="17.741" y="7.776"/><line x="18.529" y="9.141"/><line x="14.941" y="11.212"/><line x="19.083" y="11.212"/><close/><move x="12" y="14.143"/><arc rx="2.151" ry="2.151" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="12" y="9.841"/><arc rx="2.151" ry="2.151" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0" x="12" y="14.143"/><close/></path><fillstroke/></foreground></shape><shape name="marketplace" w="23.13" h="23.09" aspect="fixed" strokewidth="inherit" ink="0 0 23.13 23.09"><connections><constraint name="N" perimeter="0" x="0.5" y="0"/><constraint name="S" perimeter="0" x="0.5" y="0.77"/><constraint name="W" perimeter="0" x="0.231" y="0.5"/><constraint name="E" perimeter="0" x="0.769" y="0.5"/><constraint name="SE" perimeter="0" x="0.995" y="0.989"/><constraint name="SW" perimeter="0" x="0.01" y="0.991"/><constraint name="NW" perimeter="0" x="0.384" y="0.276"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="22.878" y="21.711"/><curve x1="23.086" y1="22.128" x2="23.128" y2="22.253" x3="23.128" y3="22.461"/><curve x1="23.128" y1="22.878" x2="22.836" y2="23.086" x3="22.295" y3="23.086"/><line x="14.96" y="23.086"/><curve x1="14.377" y1="23.086" x2="14.127" y2="22.961" x3="13.793" y3="22.295"/><curve x1="10.793" y1="16.252" x2="8.751" y2="12.502" x3="8.751" y3="8.5"/><curve x1="8.751" y1="5.626" x2="9.418" y2="2.875" x3="10.918" y3="0.5"/><curve x1="11.168" y1="0.083" x2="11.418" y2="0" x3="11.626" y3="0"/><curve x1="11.876" y1="0" x2="12.085" y2="0.083" x3="12.293" y3="0.541"/><line x="22.878" y="21.711"/><close/><move x="7.501" y="11.71"/><curve x1="8.501" y1="13.21" x2="9.793" y2="16.044" x3="9.793" y3="18.961"/><curve x1="9.793" y1="20.003" x2="9.709" y2="20.878" x3="9.459" y3="21.878"/><curve x1="9.251" y1="22.67" x2="8.876" y2="23.086" x3="8.376" y3="23.086"/><line x="0.916" y="23.086"/><curve x1="0.291" y1="23.086" x2="0" y2="22.753" x3="0" y3="22.42"/><curve x1="0" y1="22.253" x2="0.041" y2="22.128" x3="0.208" y3="21.794"/><line x="5.501" y="11.21"/><curve x1="5.876" y1="10.46" x2="6.001" y2="10.376" x3="6.209" y3="10.376"/><curve x1="6.417" y1="10.376" x2="6.667" y2="10.46" x3="7.501" y3="11.71"/><close/></path><fillstroke/></foreground></shape><shape name="object_blog" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="4 6 16 12"><connections><constraint name="W" perimeter="0" x="0.178" y="0.5"/><constraint name="E" perimeter="0" x="0.833" y="0.5"/><constraint name="NE" perimeter="0" x="0.766" y="0.252"/><constraint name="SE" perimeter="0" x="0.745" y="0.73"/><constraint name="SW" perimeter="0" x="0.302" y="0.687"/><constraint name="NW" perimeter="0" x="0.234" y="0.252"/></connections><foreground><path><move x="4" y="8"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="6" y="6"/><line x="9" y="6"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="11" y="8"/><line x="11" y="14"/><arc rx="4" ry="4" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="7" y="18"/><line x="7" y="16.5"/><arc rx="2.5" ry="2.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="9.5" y="14"/><line x="9.5" y="13"/><line x="6" y="13"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="4" y="11"/><line x="4" y="8"/><close/><move x="9.5" y="11.5"/><line x="9.5" y="8"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="9" y="7.5"/><line x="6" y="7.5"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="5.5" y="8"/><line x="5.5" y="11"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="6" y="11.5"/><line x="9.5" y="11.5"/><close/><move x="13" y="8"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="15" y="6"/><line x="18" y="6"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="20" y="8"/><line x="20" y="14"/><arc rx="4" ry="4" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="16" y="18"/><line x="16" y="16.5"/><arc rx="2.5" ry="2.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="18.5" y="14"/><line x="18.5" y="13"/><line x="15" y="13"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="13" y="11"/><line x="13" y="8"/><close/><move x="18.5" y="11.5"/><line x="18.5" y="8"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="18" y="7.5"/><line x="15" y="7.5"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="14.5" y="8"/><line x="14.5" y="11"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="15" y="11.5"/><line x="18.5" y="11.5"/><close/></path><fillstroke/></foreground></shape><shape name="object_branch" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="6 5.01 11.98 13.96"><connections><constraint name="N" perimeter="0" x="0.5" y="0.667"/><constraint name="S" perimeter="0" x="0.5" y="0.729"/><constraint name="W" perimeter="0" x="0.312" y="0.499"/><constraint name="E" perimeter="0" x="0.688" y="0.499"/><constraint name="NE" perimeter="0" x="0.742" y="0.265"/><constraint name="SE" perimeter="0" x="0.665" y="0.669"/><constraint name="SW" perimeter="0" x="0.256" y="0.73"/><constraint name="NW" perimeter="0" x="0.264" y="0.253"/></connections><foreground><path><move x="8.25" y="6.5"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0" x="8.25" y="8"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="8.25" y="6.5"/><close/><move x="6" y="7.25"/><arc rx="2.25" ry="2.25" x-axis-rotation="0" large-arc-flag="1" sweep-flag="1" x="9" y="9.372"/><line x="9" y="13"/><line x="7.5" y="13"/><line x="7.5" y="9.372"/><arc rx="2.25" ry="2.25" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="6" y="7.25"/><close/><move x="15.75" y="6.5"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0" x="15.75" y="8"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="15.75" y="6.5"/><close/><move x="13.5" y="7.25"/><arc rx="2.25" ry="2.25" x-axis-rotation="0" large-arc-flag="1" sweep-flag="1" x="16.5" y="9.372"/><line x="16.5" y="14.25"/><arc rx="3.25" ry="3.25" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="13.25" y="17.5"/><line x="10.372" y="17.5"/><arc rx="2.25" ry="2.25" x-axis-rotation="0" large-arc-flag="1" sweep-flag="1" x="10.372" y="16"/><line x="13.25" y="16"/><arc rx="1.75" ry="1.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="15" y="14.25"/><line x="15" y="9.372"/><arc rx="2.25" ry="2.25" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="13.5" y="7.25"/><close/><move x="8.25" y="16"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0" x="8.25" y="17.5"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="8.25" y="16"/><close/></path><fillstroke/></foreground></shape><shape name="object_bug" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="4.5 5 15 13.09"><connections><constraint name="N" perimeter="0" x="0.5" y="0.208"/><constraint name="S" perimeter="0" x="0.5" y="0.75"/><constraint name="W" perimeter="0" x="0.188" y="0.481"/><constraint name="E" perimeter="0" x="0.812" y="0.481"/><constraint name="NE" perimeter="0" x="0.732" y="0.237"/><constraint name="SE" perimeter="0" x="0.683" y="0.655"/><constraint name="SW" perimeter="0" x="0.317" y="0.655"/><constraint name="NW" perimeter="0" x="0.268" y="0.237"/></connections><foreground><path><move x="12" y="6.5"/><arc rx="1.5" ry="1.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="10.5" y="8"/><line x="13.5" y="8"/><arc rx="1.5" ry="1.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="12" y="6.5"/><close/><move x="15" y="8.02"/><arc rx="1.5" ry="1.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="15.761" y="8.392"/><line x="16.648" y="7.759"/><line x="17.565" y="5.695"/><line x="18.935" y="6.305"/><line x="17.991" y="8.43"/><arc rx="1.25" ry="1.25" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="17.575" y="8.94"/><line x="16.25" y="9.886"/><line x="16.25" y="11"/><line x="19.5" y="11"/><line x="19.5" y="12.5"/><line x="16.25" y="12.5"/><line x="16.25" y="13.649"/><line x="17.4" y="14.607"/><arc rx="1.25" ry="1.25" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="17.718" y="15.008"/><line x="18.92" y="17.415"/><line x="17.58" y="18.086"/><line x="16.4" y="15.726"/><line x="16" y="15.393"/><arc rx="4" ry="4" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12.25" y="18"/><line x="12.001" y="18"/><arc rx="4.25" ry="4.25" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="8.062" y="15.342"/><line x="7.602" y="15.725"/><line x="6.422" y="18.085"/><line x="5.08" y="17.415"/><line x="6.282" y="15.008"/><arc rx="1.25" ry="1.25" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="6.6" y="14.607"/><line x="7.75" y="13.649"/><line x="7.75" y="12.5"/><line x="4.5" y="12.5"/><line x="4.5" y="11"/><line x="7.75" y="11"/><line x="7.75" y="9.886"/><line x="6.425" y="8.94"/><curve x1="6.243" y1="8.81" x2="6.099" y2="8.634" x3="6.009" y3="8.43"/><line x="5.065" y="6.305"/><line x="6.435" y="5.695"/><line x="7.352" y="7.759"/><line x="8.239" y="8.392"/><curve x1="8.447" y1="8.202" x2="8.71" y2="8.07" x3="9" y3="8.02"/><line x="9" y="8"/><arc rx="3" ry="3" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="15" y="8"/><line x="15" y="8.02"/><close/><move x="14.75" y="14"/><line x="14.75" y="9.5"/><line x="9.25" y="9.5"/><line x="9.25" y="13.943"/><line x="9.285" y="14.169"/><arc rx="2.75" ry="2.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="12" y="16.5"/><line x="12.249" y="16.5"/><arc rx="2.5" ry="2.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="14.749" y="14"/><close/></path><fillstroke/></foreground></shape><shape name="object_calendar" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5 4 14 15"><connections><constraint name="N" perimeter="0" x="0.5" y="0.208"/><constraint name="S" perimeter="0" x="0.5" y="0.792"/><constraint name="W" perimeter="0" x="0.208" y="0.479"/><constraint name="E" perimeter="0" x="0.792" y="0.479"/><constraint name="NE" perimeter="0" x="0.761" y="0.227"/><constraint name="SE" perimeter="0" x="0.773" y="0.761"/><constraint name="SW" perimeter="0" x="0.227" y="0.761"/><constraint name="NW" perimeter="0" x="0.239" y="0.227"/></connections><foreground><path><move x="8.5" y="6.5"/><line x="7" y="6.5"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="6.5" y="7"/><line x="6.5" y="10"/><line x="17.5" y="10"/><line x="17.5" y="7"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="17" y="6.5"/><line x="15.5" y="6.5"/><line x="15.5" y="8.5"/><line x="14" y="8.5"/><line x="14" y="6.5"/><line x="10" y="6.5"/><line x="10" y="8.5"/><line x="8.5" y="8.5"/><line x="8.5" y="6.5"/><close/><move x="6.5" y="11.5"/><line x="6.5" y="17"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="7" y="17.5"/><line x="17" y="17.5"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="17.5" y="17"/><line x="17.5" y="11.5"/><line x="6.5" y="11.5"/><close/><move x="15.5" y="5"/><line x="17" y="5"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="19" y="7"/><line x="19" y="17"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="17" y="19"/><line x="7" y="19"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="5" y="17"/><line x="5" y="7"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="7" y="5"/><line x="8.5" y="5"/><line x="8.5" y="4"/><line x="10" y="4"/><line x="10" y="5"/><line x="14" y="5"/><line x="14" y="4"/><line x="15.5" y="4"/><line x="15.5" y="5"/><close/></path><fillstroke/></foreground></shape><shape name="object_changes" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5 4.97 14 14.06"><connections><constraint name="N" perimeter="0" x="0.5" y="0.333"/><constraint name="S" perimeter="0" x="0.5" y="0.667"/><constraint name="W" perimeter="0" x="0.331" y="0.5"/><constraint name="E" perimeter="0" x="0.669" y="0.5"/><constraint name="NE" perimeter="0" x="0.685" y="0.333"/><constraint name="SE" perimeter="0" x="0.75" y="0.667"/><constraint name="SW" perimeter="0" x="0.315" y="0.667"/><constraint name="NW" perimeter="0" x="0.25" y="0.333"/></connections><foreground><path><move x="18.78" y="8.22"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="18.78" y="9.28"/><line x="15.53" y="12.53"/><line x="14.47" y="11.47"/><line x="16.44" y="9.5"/><line x="6" y="9.5"/><line x="6" y="8"/><line x="16.44" y="8"/><line x="14.47" y="6.03"/><line x="15.53" y="4.97"/><line x="18.78" y="8.22"/><close/><move x="7.56" y="14.5"/><line x="18" y="14.5"/><line x="18" y="16"/><line x="7.56" y="16"/><line x="9.53" y="17.97"/><line x="8.47" y="19.03"/><line x="5.22" y="15.78"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="5.22" y="14.72"/><line x="8.47" y="11.47"/><line x="9.53" y="12.53"/><line x="7.56" y="14.5"/><close/></path><fillstroke/></foreground></shape><shape name="object_code" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="4 4.95 16 14.11"><connections><constraint name="N" perimeter="0" x="0.5" y="0.423"/><constraint name="S" perimeter="0" x="0.5" y="0.577"/><constraint name="W" perimeter="0" x="0.259" y="0.5"/><constraint name="E" perimeter="0" x="0.741" y="0.5"/><constraint name="NE" perimeter="0" x="0.654" y="0.231"/><constraint name="SE" perimeter="0" x="0.664" y="0.723"/><constraint name="SW" perimeter="0" x="0.346" y="0.769"/><constraint name="NW" perimeter="0" x="0.336" y="0.277"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="8.315" y="18.445"/><line x="14.315" y="4.945"/><line x="15.685" y="5.555"/><line x="9.685" y="19.055"/><line x="8.315" y="18.445"/><close/><move x="17.982" y="14"/><line x="15.057" y="11.855"/><line x="15.943" y="10.645"/><line x="19.693" y="13.395"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="19.693" y="14.605"/><line x="15.943" y="17.355"/><line x="15.057" y="16.145"/><line x="17.982" y="14"/><close/><move x="6.018" y="10"/><line x="8.944" y="12.145"/><line x="8.056" y="13.355"/><line x="4.306" y="10.605"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="4.306" y="9.395"/><line x="8.056" y="6.645"/><line x="8.944" y="7.855"/><line x="6.018" y="10"/><close/></path><fillstroke/></foreground></shape><shape name="object_commit" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="9.25 4 5.5 16"><connections><constraint name="N" perimeter="0" x="0.5" y="0.167"/><constraint name="S" perimeter="0" x="0.5" y="0.833"/><constraint name="W" perimeter="0" x="0.385" y="0.5"/><constraint name="E" perimeter="0" x="0.615" y="0.5"/><constraint name="NE" perimeter="0" x="0.531" y="0.167"/><constraint name="SE" perimeter="0" x="0.531" y="0.833"/><constraint name="SW" perimeter="0" x="0.469" y="0.833"/><constraint name="NW" perimeter="0" x="0.469" y="0.167"/></connections><foreground><path><move x="11.25" y="9.354"/><line x="11.25" y="4"/><line x="12.75" y="4"/><line x="12.75" y="9.354"/><arc rx="2.751" ry="2.751" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12.75" y="14.647"/><line x="12.75" y="20"/><line x="11.25" y="20"/><line x="11.25" y="14.646"/><arc rx="2.751" ry="2.751" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="11.25" y="9.354"/><close/><move x="12" y="10.75"/><arc rx="1.25" ry="1.25" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0" x="12" y="13.25"/><arc rx="1.25" ry="1.25" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="12" y="10.75"/><close/></path><fillstroke/></foreground></shape><shape name="object_database" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5 5 14 14"><connections><constraint name="N" perimeter="0" x="0.5" y="0.208"/><constraint name="S" perimeter="0" x="0.5" y="0.792"/><constraint name="W" perimeter="0" x="0.208" y="0.5"/><constraint name="E" perimeter="0" x="0.792" y="0.5"/><constraint name="NE" perimeter="0" x="0.767" y="0.233"/><constraint name="SE" perimeter="0" x="0.767" y="0.767"/><constraint name="SW" perimeter="0" x="0.233" y="0.767"/><constraint name="NW" perimeter="0" x="0.233" y="0.233"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="5" y="7"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="7" y="5"/><line x="17" y="5"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="19" y="7"/><line x="19" y="17"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="17" y="19"/><line x="7" y="19"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="5" y="17"/><line x="5" y="7"/><close/><move x="7" y="6.5"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="6.5" y="7"/><line x="6.5" y="10.5"/><line x="17.5" y="10.5"/><line x="17.5" y="7"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="17" y="6.5"/><line x="7" y="6.5"/><close/><move x="17.5" y="12"/><line x="12.75" y="12"/><line x="12.75" y="14"/><line x="17.5" y="14"/><line x="17.5" y="12"/><close/><move x="17.5" y="15.5"/><line x="12.75" y="15.5"/><line x="12.75" y="17.5"/><line x="17" y="17.5"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="17.5" y="17"/><line x="17.5" y="15.5"/><close/><move x="11.25" y="17.5"/><line x="11.25" y="15.5"/><line x="6.5" y="15.5"/><line x="6.5" y="17"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="7" y="17.5"/><line x="11.25" y="17.5"/><close/><move x="6.5" y="14"/><line x="11.25" y="14"/><line x="11.25" y="12"/><line x="6.5" y="12"/><line x="6.5" y="14"/><close/></path><fillstroke/></foreground></shape><shape name="object_epic" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5.5 4 13 16"><connections><constraint name="N" perimeter="0" x="0.5" y="0.243"/><constraint name="S" perimeter="0" x="0.5" y="0.757"/><constraint name="W" perimeter="0" x="0.266" y="0.5"/><constraint name="E" perimeter="0" x="0.734" y="0.5"/><constraint name="NE" perimeter="0" x="0.606" y="0.177"/><constraint name="SE" perimeter="0" x="0.763" y="0.469"/><constraint name="SW" perimeter="0" x="0.394" y="0.823"/><constraint name="NW" perimeter="0" x="0.237" y="0.531"/></connections><foreground><path><move x="14.271" y="4.05"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="14.75" y="4.75"/><line x="14.75" y="9.385"/><line x="17.897" y="10.015"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="18.304" y="11.255"/><line x="10.554" y="19.755"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="9.25" y="19.25"/><line x="9.25" y="14.615"/><line x="6.103" y="13.985"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="5.696" y="12.745"/><line x="13.446" y="4.245"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="14.27" y="4.05"/><close/><move x="7.698" y="12.776"/><line x="10.75" y="13.386"/><line x="10.75" y="17.316"/><line x="16.302" y="11.226"/><line x="13.25" y="10.616"/><line x="13.25" y="6.686"/><line x="7.698" y="12.776"/><close/></path><fillstroke/></foreground></shape><shape name="object_idea" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="6.53 4 10.95 16"><connections><constraint name="N" perimeter="0" x="0.5" y="0.167"/><constraint name="S" perimeter="0" x="0.5" y="0.833"/><constraint name="W" perimeter="0" x="0.299" y="0.5"/><constraint name="E" perimeter="0" x="0.701" y="0.5"/><constraint name="NE" perimeter="0" x="0.659" y="0.348"/><constraint name="SE" perimeter="0" x="0.646" y="0.626"/><constraint name="SW" perimeter="0" x="0.354" y="0.625"/><constraint name="NW" perimeter="0" x="0.341" y="0.348"/></connections><foreground><path><move x="14" y="16.5"/><line x="10" y="16.5"/><line x="10" y="18"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="10.5" y="18.5"/><line x="13.5" y="18.5"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="14" y="18"/><line x="14" y="16.5"/><close/><move x="12" y="5.5"/><curve x1="8.978" y1="5.5" x2="7.065" y2="8.743" x3="8.527" y3="11.388"/><line x="9.535" y="13.21"/><curve x1="9.838" y1="13.758" x2="9.998" y2="14.374" x3="10" y3="15"/><line x="14" y="15"/><arc rx="3.7" ry="3.7" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="14.465" y="13.21"/><line x="15.473" y="11.388"/><curve x1="16.935" y1="8.743" x2="15.022" y2="5.5" x3="12" y3="5.5"/><close/><move x="15.5" y="18"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="13.5" y="20"/><line x="10.5" y="20"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="8.5" y="18"/><line x="8.5" y="15.012"/><arc rx="2.2" ry="2.2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="8.223" y="13.937"/><line x="7.215" y="12.114"/><curve x1="5.2" y1="8.47" x2="7.835" y2="4" x3="12" y3="4"/><curve x1="16.164" y1="4" x2="18.8" y2="8.47" x3="16.785" y3="12.114"/><line x="15.777" y="13.937"/><arc rx="2.2" ry="2.2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="15.5" y="15.012"/><line x="15.5" y="18"/><close/></path><fillstroke/></foreground></shape><shape name="object_improvement" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="6.47 5 11.06 14"><connections><constraint name="N" perimeter="0" x="0.5" y="0.208"/><constraint name="S" perimeter="0" x="0.5" y="0.792"/><constraint name="W" perimeter="0" x="0.469" y="0.5"/><constraint name="E" perimeter="0" x="0.531" y="0.5"/><constraint name="NE" perimeter="0" x="0.73" y="0.426"/><constraint name="SE" perimeter="0" x="0.531" y="0.792"/><constraint name="SW" perimeter="0" x="0.469" y="0.792"/><constraint name="NW" perimeter="0" x="0.478" y="0.218"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="12.75" y="19"/><line x="11.25" y="19"/><line x="11.25" y="7.56"/><line x="7.53" y="11.28"/><line x="6.47" y="10.22"/><line x="11.47" y="5.22"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12.53" y="5.22"/><line x="17.53" y="10.22"/><line x="16.47" y="11.28"/><line x="12.75" y="7.56"/><line x="12.75" y="19"/><close/></path><fillstroke/></foreground></shape><shape name="object_incident" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5 5 14 14"><connections><constraint name="N" perimeter="0" x="0.5" y="0.208"/><constraint name="S" perimeter="0" x="0.5" y="0.792"/><constraint name="W" perimeter="0" x="0.362" y="0.5"/><constraint name="E" perimeter="0" x="0.638" y="0.5"/><constraint name="NE" perimeter="0" x="0.523" y="0.218"/><constraint name="SE" perimeter="0" x="0.792" y="0.792"/><constraint name="SW" perimeter="0" x="0.208" y="0.792"/><constraint name="NW" perimeter="0" x="0.477" y="0.218"/></connections><foreground><path><move x="12" y="5"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12.696" y="5.471"/><line x="14.896" y="10.971"/><line x="17.508" y="17.5"/><line x="19" y="17.5"/><line x="19" y="19"/><line x="5" y="19"/><line x="5" y="17.5"/><line x="6.492" y="17.5"/><line x="11.304" y="5.471"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12" y="5"/><close/><move x="8.108" y="17.5"/><line x="15.892" y="17.5"/><line x="15.092" y="15.5"/><line x="8.908" y="15.5"/><line x="8.108" y="17.5"/><close/><move x="9.508" y="14"/><line x="14.492" y="14"/><line x="13.692" y="12"/><line x="10.308" y="12"/><line x="9.508" y="14"/><close/><move x="10.908" y="10.5"/><line x="13.092" y="10.5"/><line x="12" y="7.77"/><line x="10.908" y="10.5"/><close/></path><fillstroke/></foreground></shape><shape name="object_new_feature" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5.5 5.5 13 13"><connections><constraint name="N" perimeter="0" x="0.5" y="0.229"/><constraint name="S" perimeter="0" x="0.5" y="0.771"/><constraint name="W" perimeter="0" x="0.229" y="0.5"/><constraint name="E" perimeter="0" x="0.771" y="0.5"/><constraint name="NE" perimeter="0" x="0.771" y="0.469"/><constraint name="SE" perimeter="0" x="0.771" y="0.531"/><constraint name="SW" perimeter="0" x="0.469" y="0.771"/><constraint name="NW" perimeter="0" x="0.469" y="0.229"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="12.75" y="5.5"/><line x="12.75" y="11.25"/><line x="18.5" y="11.25"/><line x="18.5" y="12.75"/><line x="12.75" y="12.75"/><line x="12.75" y="18.5"/><line x="11.25" y="18.5"/><line x="11.25" y="12.75"/><line x="5.5" y="12.75"/><line x="5.5" y="11.25"/><line x="11.25" y="11.25"/><line x="11.25" y="5.5"/><line x="12.75" y="5.5"/><close/></path><fillstroke/></foreground></shape><shape name="object_page" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5 5 14 14"><connections><constraint name="N" perimeter="0" x="0.5" y="0.208"/><constraint name="S" perimeter="0" x="0.5" y="0.792"/><constraint name="W" perimeter="0" x="0.208" y="0.5"/><constraint name="E" perimeter="0" x="0.792" y="0.5"/><constraint name="NE" perimeter="0" x="0.767" y="0.233"/><constraint name="SE" perimeter="0" x="0.767" y="0.767"/><constraint name="SW" perimeter="0" x="0.233" y="0.767"/><constraint name="NW" perimeter="0" x="0.233" y="0.233"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="5" y="7"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="7" y="5"/><line x="17" y="5"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="19" y="7"/><line x="19" y="17"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="17" y="19"/><line x="7" y="19"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="5" y="17"/><line x="5" y="7"/><close/><move x="7" y="6.5"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="6.5" y="7"/><line x="6.5" y="17"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="7" y="17.5"/><line x="17" y="17.5"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="17.5" y="17"/><line x="17.5" y="7"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="17" y="6.5"/><line x="7" y="6.5"/><close/><move x="16" y="10"/><line x="8" y="10"/><line x="8" y="8.5"/><line x="16" y="8.5"/><line x="16" y="10"/><close/><move x="14" y="13.5"/><line x="8" y="13.5"/><line x="8" y="12"/><line x="14" y="12"/><line x="14" y="13.5"/><close/></path><fillstroke/></foreground></shape><shape name="object_page_live_doc" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5 6 15 12.5"><connections><constraint name="N" perimeter="0" x="0.521" y="0.25"/><constraint name="S" perimeter="0" x="0.521" y="0.312"/><constraint name="W" perimeter="0" x="0.208" y="0.51"/><constraint name="E" perimeter="0" x="0.696" y="0.51"/><constraint name="NE" perimeter="0" x="0.792" y="0.25"/><constraint name="SE" perimeter="0" x="0.703" y="0.64"/><constraint name="SW" perimeter="0" x="0.208" y="0.75"/><constraint name="NW" perimeter="0" x="0.208" y="0.25"/></connections><foreground><path><move x="19" y="7.5"/><line x="5" y="7.5"/><line x="5" y="6"/><line x="19" y="6"/><line x="19" y="7.5"/><close/><move x="10" y="12.5"/><line x="5" y="12.5"/><line x="5" y="11"/><line x="10" y="11"/><line x="10" y="12.5"/><close/><move x="10" y="18"/><line x="5" y="18"/><line x="5" y="16.5"/><line x="10" y="16.5"/><line x="10" y="18"/><close/><move x="12.72" y="11.22"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="13.51" y="11.05"/><line x="19.51" y="13.3"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="19.43" y="14.73"/><line x="16.87" y="15.37"/><line x="16.23" y="17.93"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="14.8" y="18.01"/><line x="12.55" y="12.01"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12.72" y="11.22"/><close/></path><fillstroke/></foreground></shape><shape name="object_problem" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="4 4 16 16"><connections><constraint name="N" perimeter="0" x="0.5" y="0.167"/><constraint name="S" perimeter="0" x="0.5" y="0.833"/><constraint name="W" perimeter="0" x="0.167" y="0.5"/><constraint name="E" perimeter="0" x="0.833" y="0.5"/><constraint name="NE" perimeter="0" x="0.736" y="0.264"/><constraint name="SE" perimeter="0" x="0.736" y="0.736"/><constraint name="SW" perimeter="0" x="0.264" y="0.736"/><constraint name="NW" perimeter="0" x="0.264" y="0.264"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="6.343" y="6.343"/><arc rx="8" ry="8" x-axis-rotation="0" large-arc-flag="1" sweep-flag="1" x="17.658" y="17.66"/><arc rx="8" ry="8" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="6.343" y="6.343"/><close/><move x="6.905" y="7.965"/><arc rx="6.5" ry="6.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="16.035" y="17.095"/><line x="6.905" y="7.965"/><close/><move x="16.597" y="7.404"/><arc rx="6.5" ry="6.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="7.965" y="6.904"/><line x="17.095" y="16.034"/><arc rx="6.5" ry="6.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="16.597" y="7.404"/><close/></path><fillstroke/></foreground></shape><shape name="object_pull_request" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="6 5.01 11.97 14"><connections><constraint name="W" perimeter="0" x="0.312" y="0.5"/><constraint name="E" perimeter="0" x="0.688" y="0.5"/><constraint name="NE" perimeter="0" x="0.668" y="0.322"/><constraint name="SE" perimeter="0" x="0.738" y="0.745"/><constraint name="SW" perimeter="0" x="0.262" y="0.745"/><constraint name="NW" perimeter="0" x="0.264" y="0.253"/></connections><foreground><path><move x="8.25" y="6.5"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0" x="8.25" y="8"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="8.25" y="6.5"/><close/><move x="6" y="7.25"/><arc rx="2.25" ry="2.25" x-axis-rotation="0" large-arc-flag="1" sweep-flag="1" x="9" y="9.372"/><line x="9" y="14.628"/><arc rx="2.251" ry="2.251" x-axis-rotation="0" large-arc-flag="1" sweep-flag="1" x="7.5" y="14.628"/><line x="7.5" y="9.372"/><arc rx="2.25" ry="2.25" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="6" y="7.25"/><close/><move x="12" y="6.5"/><line x="13.75" y="6.5"/><arc rx="2.75" ry="2.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="16.5" y="9.25"/><line x="16.5" y="14.628"/><arc rx="2.251" ry="2.251" x-axis-rotation="0" large-arc-flag="1" sweep-flag="1" x="15" y="14.628"/><line x="15" y="9.25"/><curve x1="15" y1="8.56" x2="14.44" y2="8" x3="13.75" y3="8"/><line x="12" y="8"/><line x="12" y="6.5"/><close/><move x="8.25" y="16"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0" x="8.25" y="17.5"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="8.25" y="16"/><close/><move x="15.75" y="16"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0" x="15.75" y="17.5"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="15.75" y="16"/><close/></path><fillstroke/></foreground></shape><shape name="object_question" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="4 4 16 16"><connections><constraint name="N" perimeter="0" x="0.5" y="0.167"/><constraint name="S" perimeter="0" x="0.5" y="0.833"/><constraint name="W" perimeter="0" x="0.167" y="0.5"/><constraint name="E" perimeter="0" x="0.833" y="0.5"/><constraint name="NE" perimeter="0" x="0.736" y="0.264"/><constraint name="SE" perimeter="0" x="0.736" y="0.736"/><constraint name="SW" perimeter="0" x="0.264" y="0.736"/><constraint name="NW" perimeter="0" x="0.264" y="0.264"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="12" y="5.5"/><arc rx="6.5" ry="6.5" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0" x="12" y="18.5"/><arc rx="6.5" ry="6.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="12" y="5.5"/><close/><move x="4" y="12"/><arc rx="8" ry="8" x-axis-rotation="0" large-arc-flag="1" sweep-flag="1" x="20" y="12"/><arc rx="8" ry="8" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="4" y="12"/><close/><move x="12" y="9"/><curve x1="11.414" y1="9" x2="11" y2="9.414" x3="11" y3="10"/><line x="9.5" y="10"/><curve x1="9.5" y1="8.586" x2="10.586" y2="7.5" x3="12" y3="7.5"/><curve x1="13.414" y1="7.5" x2="14.5" y2="8.586" x3="14.5" y3="10"/><curve x1="14.5" y1="11.133" x2="13.787" y2="11.706" x3="13.338" y3="12.058"/><curve x1="12.827" y1="12.46" x2="12.75" y2="12.552" x3="12.75" y3="12.75"/><line x="12.75" y="13.5"/><line x="11.25" y="13.5"/><line x="11.25" y="12.75"/><curve x1="11.25" y1="11.773" x2="11.939" y2="11.243" x3="12.328" y3="10.944"/><line x="12.412" y="10.879"/><curve x1="12.838" y1="10.544" x2="13" y2="10.367" x3="13" y3="10"/><curve x1="13" y1="9.414" x2="12.586" y2="9" x3="12" y3="9"/><close/><move x="13" y="15.5"/><arc rx="1" ry="1" x-axis-rotation="0" large-arc-flag="1" sweep-flag="1" x="11" y="15.5"/><arc rx="1" ry="1" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="13" y="15.5"/><close/></path><fillstroke/></foreground></shape><shape name="object_story" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="6.98 5 10.04 13.98"><connections><constraint name="N" perimeter="0" x="0.5" y="0.208"/><constraint name="S" perimeter="0" x="0.5" y="0.674"/><constraint name="W" perimeter="0" x="0.291" y="0.5"/><constraint name="E" perimeter="0" x="0.709" y="0.5"/><constraint name="NE" perimeter="0" x="0.709" y="0.283"/><constraint name="SE" perimeter="0" x="0.707" y="0.77"/><constraint name="SW" perimeter="0" x="0.294" y="0.771"/><constraint name="NW" perimeter="0" x="0.291" y="0.283"/></connections><foreground><path><move x="15.518" y="7"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="15.018" y="6.5"/><line x="8.983" y="6.5"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="8.483" y="7"/><line x="8.483" y="16.806"/><line x="12" y="14.333"/><line x="12.431" y="14.637"/><line x="15.518" y="16.806"/><line x="15.518" y="7"/><close/><move x="17.018" y="18.202"/><arc rx="0.776" ry="0.776" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="15.896" y="18.896"/><line x="15.797" y="18.836"/><line x="12" y="16.166"/><line x="8.204" y="18.836"/><arc rx="0.775" ry="0.775" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="6.984" y="18.202"/><line x="6.984" y="7"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="8.984" y="5"/><line x="15.019" y="5"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="17.019" y="7"/><line x="17.018" y="18.202"/><close/></path><fillstroke/></foreground></shape><shape name="object_subtask" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5 5 14 14"><connections><constraint name="N" perimeter="0" x="0.5" y="0.227"/><constraint name="S" perimeter="0" x="0.5" y="0.773"/><constraint name="W" perimeter="0" x="0.227" y="0.5"/><constraint name="E" perimeter="0" x="0.773" y="0.5"/><constraint name="SE" perimeter="0" x="0.767" y="0.767"/><constraint name="NW" perimeter="0" x="0.233" y="0.233"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="17.5" y="13.25"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="17" y="12.75"/><line x="12.75" y="12.75"/><line x="12.75" y="17"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="13.25" y="17.5"/><line x="17" y="17.5"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="17.5" y="17"/><line x="17.5" y="13.25"/><close/><move x="11.25" y="7"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="10.75" y="6.5"/><line x="7" y="6.5"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="6.5" y="7"/><line x="6.5" y="10.75"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="7" y="11.25"/><line x="11.25" y="11.25"/><line x="11.25" y="7"/><close/><move x="12.75" y="11.25"/><line x="17" y="11.25"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="19" y="13.25"/><line x="19" y="17"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="17" y="19"/><line x="13.25" y="19"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="11.25" y="17"/><line x="11.25" y="12.75"/><line x="7" y="12.75"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="5" y="10.75"/><line x="5" y="7"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="7" y="5"/><line x="10.75" y="5"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12.75" y="7"/><line x="12.75" y="11.25"/><close/></path><fillstroke/></foreground></shape><shape name="object_task" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5 5 14 14"><connections><constraint name="N" perimeter="0" x="0.5" y="0.208"/><constraint name="S" perimeter="0" x="0.5" y="0.792"/><constraint name="W" perimeter="0" x="0.208" y="0.5"/><constraint name="E" perimeter="0" x="0.792" y="0.5"/><constraint name="NE" perimeter="0" x="0.767" y="0.233"/><constraint name="SE" perimeter="0" x="0.767" y="0.767"/><constraint name="SW" perimeter="0" x="0.233" y="0.767"/><constraint name="NW" perimeter="0" x="0.233" y="0.233"/></connections><foreground><path><move x="5" y="7"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="7" y="5"/><line x="17" y="5"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="19" y="7"/><line x="19" y="17"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="17" y="19"/><line x="7" y="19"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="5" y="17"/><line x="5" y="7"/><close/><move x="7" y="6.5"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="6.5" y="7"/><line x="6.5" y="17"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="7" y="17.5"/><line x="17" y="17.5"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="17.5" y="17"/><line x="17.5" y="7"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="17" y="6.5"/><line x="7" y="6.5"/><close/><move x="16.326" y="9.48"/><line x="11.326" y="15.48"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="10.174" y="15.48"/><line x="7.674" y="12.48"/><line x="8.826" y="11.52"/><line x="10.75" y="13.828"/><line x="15.174" y="8.52"/><line x="16.326" y="9.48"/><close/></path><fillstroke/></foreground></shape><shape name="object_whiteboard" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="4 4.51 14.99 14.49"><connections><constraint name="N" perimeter="0" x="0.479" y="0.226"/><constraint name="S" perimeter="0" x="0.479" y="0.792"/><constraint name="W" perimeter="0" x="0.167" y="0.49"/><constraint name="E" perimeter="0" x="0.79" y="0.49"/><constraint name="NE" perimeter="0" x="0.676" y="0.28"/><constraint name="SE" perimeter="0" x="0.748" y="0.772"/><constraint name="SW" perimeter="0" x="0.323" y="0.646"/><constraint name="NW" perimeter="0" x="0.323" y="0.333"/><constraint name="C" perimeter="0" x="0.479" y="0.49"/></connections><foreground><path><move x="13.162" y="6.177"/><curve x1="12.448" y1="6.459" x2="11.882" y2="6.994" x3="11.713" y3="7.515"/><line x="10.287" y="7.052"/><curve x1="10.637" y1="5.97" x2="11.633" y2="5.168" x3="12.61" y3="4.782"/><curve x1="13.553" y1="4.41" x2="14.858" y2="4.292" x3="15.7" y3="5.157"/><curve x1="16.046" y1="5.513" x2="16.236" y2="5.934" x3="16.248" y3="6.393"/><curve x1="16.259" y1="6.83" x2="16.108" y2="7.22" x3="15.925" y3="7.537"/><curve x1="15.697" y1="7.931" x2="15.368" y2="8.298" x3="15.049" y3="8.611"/><curve x1="16.515" y1="8.475" x2="17.766" y2="8.85" x3="18.47" y3="9.745"/><curve x1="19.297" y1="10.795" x2="19.114" y2="12.209" x3="18.214" y3="13.442"/><line x="17.002" y="12.558"/><curve x1="17.662" y1="11.653" x2="17.558" y2="11.011" x3="17.292" y3="10.673"/><curve x1="16.987" y1="10.286" x2="16.197" y2="9.916" x3="14.768" y3="10.161"/><curve x1="14.247" y1="10.251" x2="13.833" y2="10.299" x3="13.532" y3="10.291"/><arc rx="1.4" ry="1.4" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12.995" y="10.181"/><arc rx="0.9" ry="0.9" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12.65" y="9.903"/><arc rx="0.85" ry="0.85" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12.486" y="9.408"/><arc rx="1.02" ry="1.02" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12.683" y="8.822"/><curve x1="12.76" y1="8.71" x2="12.854" y2="8.607" x3="12.939" y3="8.522"/><curve x1="13.079" y1="8.379" x2="13.262" y2="8.216" x3="13.438" y3="8.058"/><line x="13.539" y="7.968"/><curve x1="13.992" y1="7.561" x2="14.409" y2="7.162" x3="14.626" y3="6.787"/><curve x1="14.728" y1="6.609" x2="14.75" y2="6.495" x3="14.749" y3="6.433"/><curve x1="14.747" y1="6.393" x2="14.739" y2="6.32" x3="14.625" y3="6.203"/><curve x1="14.425" y1="5.999" x2="13.909" y2="5.882" x3="13.161" y3="6.177"/><close/><move x="7.75" y="9.5"/><arc rx="2.25" ry="2.25" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0" x="7.75" y="14"/><arc rx="2.25" ry="2.25" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="7.75" y="9.5"/><close/><move x="4" y="11.75"/><arc rx="3.75" ry="3.75" x-axis-rotation="0" large-arc-flag="1" sweep-flag="1" x="11.5" y="11.75"/><arc rx="3.75" ry="3.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="4" y="11.75"/><close/><move x="14.25" y="12.5"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="14.893" y="12.864"/><line x="17.893" y="17.864"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="17.25" y="19"/><line x="11.25" y="19"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="10.607" y="17.864"/><line x="13.607" y="12.864"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="14.25" y="12.5"/><close/><move x="12.575" y="17.5"/><line x="15.925" y="17.5"/><line x="14.25" y="14.708"/><line x="12.575" y="17.5"/><close/></path><fillstroke/></foreground></shape><shape name="object_work_item" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="4 6 16 12"><connections><constraint name="N" perimeter="0" x="0.5" y="0.25"/><constraint name="S" perimeter="0" x="0.5" y="0.75"/><constraint name="W" perimeter="0" x="0.167" y="0.5"/><constraint name="E" perimeter="0" x="0.833" y="0.5"/><constraint name="NE" perimeter="0" x="0.766" y="0.252"/><constraint name="SE" perimeter="0" x="0.766" y="0.748"/><constraint name="SW" perimeter="0" x="0.234" y="0.748"/><constraint name="NW" perimeter="0" x="0.234" y="0.252"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="18.5" y="8"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="18.1" y="7.51"/><line x="18" y="7.5"/><line x="6" y="7.5"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="5.5" y="8"/><line x="5.5" y="16"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="6" y="16.5"/><line x="18" y="16.5"/><arc rx="0.5" ry="0.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="18.5" y="16"/><line x="18.5" y="8"/><close/><move x="15.573" y="9.983"/><line x="11.573" y="14.733"/><arc rx="0.75" ry="0.75" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="10.427" y="14.733"/><line x="8.427" y="12.358"/><line x="9.573" y="11.392"/><line x="11" y="13.085"/><line x="14.427" y="9.017"/><line x="15.573" y="9.983"/><close/><move x="20" y="16"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="18" y="18"/><line x="6" y="18"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="4" y="16"/><line x="4" y="8"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="6" y="6"/><line x="18" y="6"/><line x="18.204" y="6.01"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="20" y="8"/><line x="20" y="16"/><close/></path><fillstroke/></foreground></shape><shape name="opsgenie" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5.33 4.29 13.49 15.42"><connections><constraint name="N" perimeter="0" x="0.503" y="0.179"/><constraint name="S" perimeter="0" x="0.503" y="0.821"/><constraint name="W" perimeter="0" x="0.309" y="0.5"/><constraint name="E" perimeter="0" x="0.698" y="0.5"/><constraint name="NE" perimeter="0" x="0.665" y="0.341"/><constraint name="SE" perimeter="0" x="0.7" y="0.666"/><constraint name="SW" perimeter="0" x="0.306" y="0.666"/><constraint name="NW" perimeter="0" x="0.342" y="0.341"/><constraint name="C" perimeter="0" x="0.503" y="0.5"/></connections><foreground><path><move x="12.696" y="19.45"/><curve x1="12.206" y1="19.811" x2="11.947" y2="19.786" x3="11.456" y3="19.424"/><curve x1="9.081" y1="17.72" x2="6.886" y2="15.783" x3="5.414" y3="13.769"/><curve x1="5.259" y1="13.562" x2="5.336" y2="13.279" x3="5.569" y3="13.149"/><line x="8.254" y="11.471"/><quad x1="8.604" y1="11.238" x2="8.874" y2="11.548"/><curve x1="9.907" y1="12.736" x2="10.914" y2="13.898" x3="12.076" y3="14.724"/><curve x1="13.238" y1="13.898" x2="14.246" y2="12.736" x3="15.278" y3="11.548"/><quad x1="15.55" y1="11.238" x2="15.898" y2="11.47"/><line x="18.584" y="13.149"/><curve x1="18.816" y1="13.279" x2="18.894" y2="13.562" x3="18.739" y3="13.769"/><curve x1="17.267" y1="15.783" x2="15.072" y2="17.719" x3="12.696" y3="19.449"/><close/><move x="12.076" y="12.038"/><curve x1="9.907" y1="12.038" x2="8.203" y2="10.333" x3="8.203" y3="8.19"/><curve x1="8.203" y1="6.047" x2="9.959" y2="4.29" x3="12.076" y3="4.29"/><curve x1="14.194" y1="4.29" x2="15.95" y2="6.072" x3="15.95" y3="8.19"/><curve x1="15.95" y1="10.308" x2="14.194" y2="12.038" x3="12.076" y3="12.038"/><close/></path><fillstroke/></foreground></shape><shape name="projects" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5.11 6.4 12.38 12.37"><connections><constraint name="N" perimeter="0" x="0.471" y="0.344"/><constraint name="S" perimeter="0" x="0.471" y="0.705"/><constraint name="W" perimeter="0" x="0.29" y="0.524"/><constraint name="E" perimeter="0" x="0.651" y="0.524"/><constraint name="NE" perimeter="0" x="0.728" y="0.267"/><constraint name="SE" perimeter="0" x="0.612" y="0.718"/><constraint name="SW" perimeter="0" x="0.322" y="0.711"/><constraint name="NW" perimeter="0" x="0.277" y="0.383"/><constraint name="C" perimeter="0" x="0.471" y="0.524"/></connections><foreground><path><move x="5.106" y="14.44"/><line x="6.962" y="12.584"/><line x="5.106" y="10.728"/><line x="6.653" y="9.18"/><line x="10.365" y="9.18"/><line x="13.149" y="6.396"/><line x="17.481" y="6.396"/><line x="17.481" y="10.726"/><line x="14.696" y="13.511"/><line x="14.696" y="17.223"/><line x="13.15" y="18.77"/><line x="11.293" y="16.914"/><line x="9.437" y="18.77"/><line x="7.737" y="17.07"/><line x="10.521" y="14.286"/><line x="9.593" y="13.358"/><line x="6.809" y="16.142"/><line x="5.106" y="14.44"/><close/><move x="15.315" y="10.109"/><arc rx="1.094" ry="1.094" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="13.768" y="8.563"/><arc rx="1.094" ry="1.094" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0" x="15.315" y="10.109"/><close/></path><fillstroke/></foreground></shape><shape name="rovo" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5.62 5.06 12.38 13.81"><connections><constraint name="N" perimeter="0" x="0.492" y="0.211"/><constraint name="S" perimeter="0" x="0.492" y="0.786"/><constraint name="W" perimeter="0" x="0.234" y="0.499"/><constraint name="E" perimeter="0" x="0.75" y="0.499"/><constraint name="NE" perimeter="0" x="0.717" y="0.331"/><constraint name="SE" perimeter="0" x="0.721" y="0.664"/><constraint name="SW" perimeter="0" x="0.267" y="0.666"/><constraint name="NW" perimeter="0" x="0.263" y="0.333"/></connections><foreground><path><move x="11.057" y="5.257"/><arc rx="1.57" ry="1.57" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12.596" y="5.272"/><line x="17.217" y="7.94"/><curve x1="17.701" y1="8.219" x2="18" y2="8.737" x3="18" y3="9.294"/><line x="18" y="14.63"/><arc rx="1.56" ry="1.56" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="17.218" y="15.985"/><line x="13.744" y="17.99"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="13.864" y="17.299"/><line x="13.864" y="11.962"/><curve x1="13.864" y1="11.229" x2="13.474" y2="10.553" x3="12.838" y3="10.188"/><line x="10.248" y="8.693"/><line x="10.248" y="6.626"/><quad x1="10.249" y1="6.38" x2="10.322" y2="6.153"/><curve x1="10.439" y1="5.789" x2="10.688" y2="5.473" x3="11.029" y3="5.276"/><line x="11.057" y="5.257"/><close/><move x="9.881" y="5.94"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="9.761" y="6.631"/><line x="9.761" y="11.968"/><arc rx="2.05" ry="2.05" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="10.787" y="13.743"/><line x="13.376" y="15.238"/><line x="13.376" y="17.305"/><arc rx="1.57" ry="1.57" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12.595" y="18.655"/><line x="12.568" y="18.674"/><curve x1="12.089" y1="18.938" x2="11.504" y2="18.933" x3="11.029" y3="18.659"/><line x="6.408" y="15.991"/><curve x1="5.925" y1="15.712" x2="5.625" y2="15.194" x3="5.625" y3="14.637"/><line x="5.625" y="9.3"/><arc rx="1.56" ry="1.56" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="6.408" y="7.945"/><line x="9.881" y="5.94"/><close/></path><fillstroke/></foreground></shape><shape name="rovo-dev" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5.38 4.5 13.41 14.95"><connections><constraint name="N" perimeter="0" x="0.503" y="0.188"/><constraint name="S" perimeter="0" x="0.503" y="0.811"/><constraint name="W" perimeter="0" x="0.224" y="0.499"/><constraint name="E" perimeter="0" x="0.783" y="0.499"/><constraint name="NE" perimeter="0" x="0.747" y="0.317"/><constraint name="SE" perimeter="0" x="0.751" y="0.678"/><constraint name="SW" perimeter="0" x="0.259" y="0.681"/><constraint name="NW" perimeter="0" x="0.255" y="0.32"/></connections><foreground><path><move x="11.26" y="4.71"/><arc rx="1.7" ry="1.7" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12.926" y="4.727"/><line x="17.932" y="7.617"/><curve x1="18.456" y1="7.919" x2="18.78" y2="8.48" x3="18.78" y3="9.084"/><line x="18.78" y="14.864"/><arc rx="1.69" ry="1.69" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="17.932" y="16.331"/><line x="14.169" y="18.503"/><line x="14.193" y="18.433"/><curve x1="14.263" y1="18.217" x2="14.3" y2="17.988" x3="14.3" y3="17.754"/><line x="14.3" y="11.974"/><curve x1="14.3" y1="11.18" x2="13.877" y2="10.448" x3="13.188" y3="10.052"/><line x="10.383" y="8.432"/><line x="10.383" y="6.195"/><quad x1="10.384" y1="5.928" x2="10.463" y2="5.683"/><curve x1="10.589" y1="5.288" x2="10.859" y2="4.946" x3="11.228" y3="4.733"/><line x="11.23" y="4.732"/><line x="11.26" y="4.71"/><close/><move x="9.985" y="5.45"/><arc rx="2.2" ry="2.2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="9.855" y="6.2"/><line x="9.855" y="11.98"/><arc rx="2.22" ry="2.22" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="10.967" y="13.902"/><line x="13.772" y="15.52"/><line x="13.772" y="17.76"/><quad x1="13.771" y1="18.026" x2="13.693" y2="18.273"/><curve x1="13.565" y1="18.667" x2="13.295" y2="19.009" x3="12.925" y3="19.223"/><line x="12.895" y="19.243"/><arc rx="1.7" ry="1.7" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="11.229" y="19.227"/><line x="6.223" y="16.337"/><curve x1="5.699" y1="16.035" x2="5.375" y2="15.474" x3="5.375" y3="14.869"/><line x="5.375" y="9.089"/><arc rx="1.69" ry="1.69" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="6.223" y="7.623"/><line x="9.986" y="5.45"/><close/></path><fillstroke/></foreground></shape><shape name="rovo-dev-agent" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5.89 5.1 12.38 13.8" tile="1.31 0 21.53 24" hexscale="0.98"><connections><constraint name="N" perimeter="0" x="0.503" y="0.212"/><constraint name="S" perimeter="0" x="0.503" y="0.787"/><constraint name="W" perimeter="0" x="0.245" y="0.5"/><constraint name="E" perimeter="0" x="0.761" y="0.5"/><constraint name="NE" perimeter="0" x="0.691" y="0.311"/><constraint name="SE" perimeter="0" x="0.728" y="0.667"/><constraint name="SW" perimeter="0" x="0.312" y="0.687"/><constraint name="NW" perimeter="0" x="0.274" y="0.335"/></connections><foreground><path><move x="10.142" y="5.977"/><arc rx="2.041" ry="2.041" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="10.022" y="6.668"/><line x="10.022" y="12.001"/><arc rx="2.041" ry="2.041" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="11.049" y="13.777"/><line x="11.628" y="14.11"/><line x="13.638" y="15.27"/><line x="13.638" y="17.338"/><arc rx="1.571" ry="1.571" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12.857" y="18.688"/><line x="12.829" y="18.706"/><arc rx="1.571" ry="1.571" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="11.29" y="18.692"/><line x="7.492" y="16.499"/><line x="6.669" y="16.023"/><curve x1="6.185" y1="15.745" x2="5.885" y2="15.228" x3="5.885" y3="14.669"/><line x="5.885" y="9.334"/><arc rx="1.561" ry="1.561" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="6.669" y="7.98"/><line x="10.142" y="5.975"/><close/><move x="12.858" y="5.307"/><line x="16.593" y="7.464"/><line x="17.479" y="7.975"/><curve x1="17.963" y1="8.254" x2="18.262" y2="8.772" x3="18.262" y3="9.33"/><line x="18.262" y="14.665"/><curve x1="18.262" y1="15.225" x2="17.965" y2="15.741" x3="17.479" y3="16.019"/><line x="14.006" y="18.024"/><arc rx="2.041" ry="2.041" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="14.126" y="17.333"/><line x="14.126" y="11.998"/><arc rx="2.041" ry="2.041" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="13.1" y="10.222"/><line x="12.459" y="9.853"/><line x="10.51" y="8.729"/><line x="10.51" y="6.662"/><arc rx="1.571" ry="1.571" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="11.29" y="5.312"/><line x="11.319" y="5.293"/><arc rx="1.571" ry="1.571" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="12.858" y="5.307"/><close/></path><fillstroke/></foreground></shape><shape name="search" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="4.98 5.64 14.22 14.21"><connections><constraint name="N" perimeter="0" x="0.504" y="0.242"/><constraint name="S" perimeter="0" x="0.504" y="0.709"/><constraint name="W" perimeter="0" x="0.215" y="0.531"/><constraint name="E" perimeter="0" x="0.681" y="0.531"/><constraint name="NE" perimeter="0" x="0.664" y="0.366"/><constraint name="SE" perimeter="0" x="0.8" y="0.735"/><constraint name="SW" perimeter="0" x="0.371" y="0.703"/><constraint name="NW" perimeter="0" x="0.266" y="0.316"/><constraint name="C" perimeter="0" x="0.504" y="0.531"/></connections><foreground><path><move x="10.76" y="17.176"/><arc rx="5.791" ry="5.791" x-axis-rotation="0" large-arc-flag="1" sweep-flag="1" x="15.798" y="14.241"/><line x="19.201" y="17.644"/><line x="16.996" y="19.848"/><line x="13.587" y="16.44"/><arc rx="5.77" ry="5.77" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="10.76" y="17.176"/><close/><move x="10.486" y="7.806"/><line x="10.244" y="8.421"/><curve x1="9.9" y1="9.295" x2="9.728" y2="9.733" x3="9.411" y3="10.061"/><curve x1="9.093" y1="10.391" x2="8.662" y2="10.579" x3="7.801" y3="10.954"/><line x="7.431" y="11.114"/><line x="7.431" y="11.624"/><line x="7.801" y="11.784"/><curve x1="8.662" y1="12.16" x2="9.093" y2="12.347" x3="9.411" y3="12.677"/><curve x1="9.728" y1="13.006" x2="9.901" y2="13.443" x3="10.244" y3="14.317"/><line x="10.486" y="14.933"/><line x="10.996" y="14.933"/><line x="11.238" y="14.317"/><curve x1="11.582" y1="13.443" x2="11.754" y2="13.006" x3="12.072" y3="12.677"/><curve x1="12.389" y1="12.347" x2="12.82" y2="12.16" x3="13.682" y3="11.784"/><line x="14.05" y="11.624"/><line x="14.05" y="11.114"/><line x="13.681" y="10.954"/><curve x1="12.82" y1="10.579" x2="12.389" y2="10.391" x3="12.071" y3="10.062"/><curve x1="11.754" y1="9.732" x2="11.582" y2="9.296" x3="11.238" y3="8.422"/><line x="10.996" y="7.806"/><line x="10.486" y="7.806"/><close/></path><fillstroke/></foreground></shape><shape name="statuspage" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="3.75 5.91 16.5 12"><connections><constraint name="N" perimeter="0" x="0.5" y="0.246"/><constraint name="S" perimeter="0" x="0.5" y="0.746"/><constraint name="W" perimeter="0" x="0.242" y="0.496"/><constraint name="E" perimeter="0" x="0.758" y="0.496"/><constraint name="NE" perimeter="0" x="0.717" y="0.298"/><constraint name="SE" perimeter="0" x="0.649" y="0.653"/><constraint name="SW" perimeter="0" x="0.351" y="0.652"/><constraint name="NW" perimeter="0" x="0.283" y="0.298"/><constraint name="C" perimeter="0" x="0.5" y="0.496"/></connections><foreground><path><move x="12" y="9.796"/><curve x1="10.076" y1="9.796" x2="8.204" y2="10.628" x3="6.676" y3="11.914"/><quad x1="6.438" y1="12.141" x2="6.201" y2="12.141"/><curve x1="6.069" y1="12.141" x2="5.938" y2="12.065" x3="5.832" y3="11.939"/><line x="3.908" y="9.771"/><curve x1="3.803" y1="9.645" x2="3.75" y2="9.519" x3="3.75" y3="9.418"/><curve x1="3.75" y1="9.267" x2="3.83" y2="9.141" x3="3.987" y3="8.989"/><curve x1="6.307" y1="7.023" x2="9.127" y2="5.914" x3="12" y3="5.914"/><curve x1="14.873" y1="5.914" x2="17.693" y2="7.023" x3="20.013" y3="8.989"/><curve x1="20.171" y1="9.141" x2="20.25" y2="9.267" x3="20.25" y3="9.418"/><curve x1="20.25" y1="9.518" x2="20.197" y2="9.645" x3="20.092" y3="9.771"/><line x="18.168" y="11.939"/><curve x1="18.062" y1="12.065" x2="17.93" y2="12.141" x3="17.798" y3="12.141"/><quad x1="17.562" y1="12.141" x2="17.324" y2="11.914"/><curve x1="15.795" y1="10.628" x2="13.924" y2="9.796" x3="12" y3="9.796"/><close/><move x="12" y="17.914"/><curve x1="9.865" y1="17.914" x2="8.125" y2="16.25" x3="8.125" y3="14.234"/><curve x1="8.125" y1="12.216" x2="9.865" y2="10.552" x3="12" y3="10.552"/><curve x1="14.135" y1="10.552" x2="15.875" y2="12.192" x3="15.875" y3="14.233"/><curve x1="15.875" y1="16.274" x2="14.135" y2="17.913" x3="12" y3="17.913"/><close/></path><fillstroke/></foreground></shape><shape name="studio" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5.44 4.5 13.12 14.06"><connections><constraint name="N" perimeter="0" x="0.5" y="0.232"/><constraint name="S" perimeter="0" x="0.5" y="0.773"/><constraint name="W" perimeter="0" x="0.227" y="0.48"/><constraint name="E" perimeter="0" x="0.773" y="0.48"/><constraint name="NE" perimeter="0" x="0.617" y="0.383"/><constraint name="SE" perimeter="0" x="0.663" y="0.633"/><constraint name="SW" perimeter="0" x="0.383" y="0.614"/><constraint name="NW" perimeter="0" x="0.227" y="0.3"/><constraint name="C" perimeter="0" x="0.5" y="0.48"/></connections><foreground><path><move x="10.594" y="18.563"/><line x="10.594" y="10.593"/><line x="18.563" y="10.593"/><line x="18.563" y="18.563"/><line x="10.594" y="18.563"/><close/><move x="14.402" y="12.075"/><line x="14.239" y="12.504"/><curve x1="14.004" y1="13.119" x2="13.887" y2="13.426" x3="13.667" y3="13.659"/><curve x1="13.447" y1="13.892" x2="13.147" y2="14.027" x3="12.547" y3="14.297"/><line x="12.325" y="14.397"/><line x="12.325" y="14.754"/><line x="12.547" y="14.853"/><curve x1="13.147" y1="15.123" x2="13.447" y2="15.258" x3="13.667" y3="15.491"/><curve x1="13.887" y1="15.724" x2="14.004" y2="16.031" x3="14.239" y3="16.647"/><line x="14.402" y="17.075"/><line x="14.749" y="17.075"/><line x="14.912" y="16.646"/><curve x1="15.147" y1="16.031" x2="15.264" y2="15.724" x3="15.484" y3="15.491"/><curve x1="15.704" y1="15.258" x2="16.004" y2="15.123" x3="16.604" y3="14.853"/><line x="16.825" y="14.753"/><line x="16.825" y="14.396"/><line x="16.605" y="14.296"/><curve x1="16.004" y1="14.027" x2="15.704" y2="13.892" x3="15.484" y3="13.659"/><curve x1="15.264" y1="13.426" x2="15.147" y2="13.119" x3="14.912" y3="12.504"/><line x="14.748" y="12.075"/><line x="14.402" y="12.075"/><close/><move x="14.813" y="7.195"/><line x="14.813" y="9.187"/><line x="9.188" y="9.187"/><line x="9.188" y="14.742"/><line x="5.438" y="12.585"/><line x="5.438" y="7.195"/><line x="10.125" y="4.5"/><line x="14.813" y="7.195"/><close/></path><fillstroke/></foreground></shape><shape name="talent" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="3.5 3.68 17 16.17"><connections><constraint name="N" perimeter="0" x="0.5" y="0.153"/><constraint name="S" perimeter="0" x="0.5" y="0.712"/><constraint name="W" perimeter="0" x="0.219" y="0.49"/><constraint name="E" perimeter="0" x="0.781" y="0.49"/><constraint name="NE" perimeter="0" x="0.843" y="0.39"/><constraint name="SE" perimeter="0" x="0.73" y="0.806"/><constraint name="SW" perimeter="0" x="0.27" y="0.806"/><constraint name="NW" perimeter="0" x="0.157" y="0.39"/></connections><foreground><path><move x="9.297" y="8.753"/><line x="11.574" y="3.68"/><line x="12.432" y="3.68"/><line x="14.709" y="8.753"/><line x="20.238" y="9.351"/><line x="20.503" y="10.167"/><line x="16.382" y="13.901"/><line x="17.522" y="19.343"/><line x="16.827" y="19.848"/><line x="12.003" y="17.082"/><line x="7.179" y="19.848"/><line x="6.484" y="19.343"/><line x="7.624" y="13.901"/><line x="3.503" y="10.168"/><line x="3.768" y="9.351"/><line x="9.297" y="8.753"/><close/><move x="10.074" y="15.168"/><arc rx="3.6" ry="3.6" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="11.85" y="15.651"/><line x="11.903" y="15.651"/><arc rx="3.6" ry="3.6" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="13.789" y="15.103"/><line x="13.789" y="14.49"/><arc rx="1.857" ry="1.857" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="10.074" y="14.49"/><line x="10.074" y="15.168"/><close/><move x="11.932" y="12.034"/><arc rx="1.393" ry="1.393" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0" x="11.932" y="9.248"/><arc rx="1.393" ry="1.393" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="11.932" y="12.034"/><close/></path><fillstroke/></foreground></shape><shape name="teams" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="5 6 14 12"><connections><constraint name="N" perimeter="0" x="0.5" y="0.73"/><constraint name="NE" perimeter="0" x="0.728" y="0.266"/><constraint name="SE" perimeter="0" x="0.792" y="0.75"/><constraint name="SW" perimeter="0" x="0.208" y="0.75"/><constraint name="NW" perimeter="0" x="0.278" y="0.271"/></connections><foreground><path><move x="8.06" y="11.25"/><arc rx="2.63" ry="2.63" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="8.06" y="6"/><arc rx="2.63" ry="2.63" x-axis-rotation="0" large-arc-flag="1" sweep-flag="1" x="8.06" y="11.25"/><close/><move x="15.94" y="11.25"/><arc rx="2.63" ry="2.63" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="15.94" y="6"/><arc rx="2.63" ry="2.63" x-axis-rotation="0" large-arc-flag="1" sweep-flag="1" x="15.94" y="11.25"/><close/><move x="16.11" y="12.56"/><arc rx="2.89" ry="2.89" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="19" y="15.46"/><line x="19" y="18"/><line x="11.78" y="18"/><line x="13.44" y="14.33"/><arc rx="2.89" ry="2.89" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="16.11" y="12.56"/><close/><move x="5" y="15.63"/><arc rx="3.06" ry="3.06" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="8.06" y="12.56"/><line x="8.5" y="12.56"/><arc rx="2.63" ry="2.63" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="11.12" y="15.19"/><line x="9.81" y="18"/><line x="5" y="18"/><line x="5" y="15.63"/><close/></path><fillstroke/></foreground></shape><shape name="trello" w="24" h="24" aspect="fixed" strokewidth="inherit" ink="4.43 4.43 15.14 13.81"><connections><constraint name="W" perimeter="0" x="0.185" y="0.472"/><constraint name="E" perimeter="0" x="0.815" y="0.472"/><constraint name="NE" perimeter="0" x="0.798" y="0.191"/><constraint name="SE" perimeter="0" x="0.804" y="0.52"/><constraint name="SW" perimeter="0" x="0.202" y="0.753"/><constraint name="NW" perimeter="0" x="0.202" y="0.191"/></connections><foreground><path><move x="9.39" y="18.23"/><line x="5.38" y="18.24"/><curve x1="4.85" y1="18.24" x2="4.43" y2="17.81" x3="4.43" y3="17.29"/><line x="4.43" y="5.38"/><arc rx="0.95" ry="0.95" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="5.38" y="4.43"/><line x="9.39" y="4.43"/><arc rx="0.95" ry="0.95" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="10.34" y="5.38"/><line x="10.34" y="17.28"/><arc rx="0.95" ry="0.95" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="9.39" y="18.23"/><close/><move x="18.62" y="12.77"/><line x="14.61" y="12.77"/><curve x1="14.08" y1="12.77" x2="13.66" y2="12.34" x3="13.66" y3="11.82"/><line x="13.66" y="5.38"/><arc rx="0.95" ry="0.95" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="14.61" y="4.43"/><line x="18.62" y="4.43"/><arc rx="0.95" ry="0.95" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="19.57" y="5.38"/><line x="19.57" y="11.82"/><arc rx="0.95" ry="0.95" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="18.62" y="12.77"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_admin" w="84.99" h="22.05" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.322"/><constraint name="W" perimeter="0" x="0.05" y="0.5"/><constraint name="E" perimeter="0" x="0.998" y="0.5"/><constraint name="NE" perimeter="0" x="0.8" y="0.045"/><constraint name="SE" perimeter="0" x="0.725" y="0.986"/><constraint name="SW" perimeter="0" x="0.192" y="0.986"/><constraint name="NW" perimeter="0" x="0.093" y="0.073"/></connections><foreground><path><move x="84.99" y="12.76"/><line x="84.99" y="21.75"/><line x="82.35" y="21.75"/><line x="82.35" y="12.49"/><curve x1="82.35" y1="9.73" x2="81.25" y2="8.5" x3="78.73" y3="8.5"/><curve x1="76.28" y1="8.5" x2="74.59" y2="10.13" x3="74.59" y3="13.22"/><line x="74.59" y="21.75"/><line x="71.95" y="21.75"/><line x="71.95" y="6.41"/><line x="74.59" y="6.41"/><line x="74.59" y="8.92"/><curve x1="75.57" y1="7.11" x2="77.38" y2="6.1" x3="79.44" y3="6.1"/><curve x1="82.97" y1="6.1" x2="84.99" y2="8.52" x3="84.99" y3="12.76"/><close/><move x="64.84" y="2.36"/><curve x1="64.84" y1="1.19" x2="65.61" y2="0.52" x3="66.68" y3="0.52"/><curve x1="67.75" y1="0.52" x2="68.52" y2="1.19" x3="68.52" y3="2.36"/><curve x1="68.52" y1="3.53" x2="67.75" y2="4.2" x3="66.68" y3="4.2"/><curve x1="65.61" y1="4.2" x2="64.84" y2="3.53" x3="64.84" y3="2.36"/><close/><move x="65.33" y="21.74"/><line x="65.33" y="6.41"/><line x="67.97" y="6.41"/><line x="67.97" y="21.74"/><line x="65.33" y="21.74"/><close/><move x="51.26" y="13.22"/><line x="51.26" y="21.75"/><line x="48.62" y="21.75"/><line x="48.62" y="12.49"/><curve x1="48.62" y1="9.73" x2="47.52" y2="8.5" x3="45" y3="8.5"/><curve x1="42.55" y1="8.5" x2="40.86" y2="10.13" x3="40.86" y3="13.22"/><line x="40.86" y="21.75"/><line x="38.22" y="21.75"/><line x="38.22" y="6.41"/><line x="40.86" y="6.41"/><line x="40.86" y="8.92"/><curve x1="41.84" y1="7.11" x2="43.65" y2="6.1" x3="45.71" y3="6.1"/><curve x1="48.32" y1="6.1" x2="50.1" y2="7.42" x3="50.86" y3="9.84"/><curve x1="51.72" y1="7.48" x2="53.77" y2="6.1" x3="56.32" y3="6.1"/><curve x1="59.76" y1="6.1" x2="61.66" y2="8.43" x3="61.66" y3="12.76"/><line x="61.66" y="21.75"/><line x="59.02" y="21.75"/><line x="59.02" y="13.23"/><curve x1="59.02" y1="10.07" x2="57.92" y2="8.51" x3="55.4" y3="8.51"/><curve x1="52.95" y1="8.51" x2="51.26" y2="10.14" x3="51.26" y3="13.23"/><close/><move x="22.94" y="14.08"/><curve x1="22.94" y1="17.76" x2="24.41" y2="19.6" x3="27.14" y3="19.6"/><curve x1="29.5" y1="19.6" x2="31.62" y2="18.1" x3="31.62" y3="14.69"/><line x="31.62" y="13.46"/><curve x1="31.62" y1="10.06" x2="29.69" y2="8.55" x3="27.45" y3="8.55"/><curve x1="24.48" y1="8.55" x2="22.94" y2="10.51" x3="22.94" y3="14.07"/><close/><move x="31.62" y="21.74"/><line x="31.62" y="18.98"/><curve x1="30.64" y1="21" x2="28.8" y2="22.05" x3="26.44" y3="22.05"/><curve x1="22.36" y1="22.05" x2="20.31" y2="18.59" x3="20.31" y3="14.08"/><curve x1="20.31" y1="9.76" x2="22.46" y2="6.11" x3="26.75" y3="6.11"/><curve x1="28.99" y1="6.11" x2="30.71" y2="7.12" x3="31.63" y3="9.12"/><line x="31.63" y="0"/><line x="34.27" y="0"/><line x="34.27" y="21.74"/><line x="31.62" y="21.74"/><close/><move x="9.6" y="17.73"/><curve x1="8.07" y1="17.73" x2="6.5" y2="17.55" x3="4.79" y3="17.21"/><line x="3.1" y="21.75"/><line x="0" y="21.75"/><line x="7.94" y="1.6"/><line x="11.44" y="1.6"/><line x="19.38" y="21.75"/><line x="16.28" y="21.75"/><line x="14.59" y="17.18"/><curve x1="12.78" y1="17.55" x2="11.22" y2="17.73" x3="9.59" y3="17.73"/><close/><move x="9.59" y="15.28"/><curve x1="10.88" y1="15.28" x2="12.2" y2="15.13" x3="13.76" y3="14.88"/><line x="9.68" y="3.84"/><line x="5.6" y="14.91"/><curve x1="7.1" y1="15.16" x2="8.36" y2="15.28" x3="9.59" y3="15.28"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_align" w="65.76" h="27.9" aspect="fixed" strokewidth="inherit"><connections><constraint name="W" perimeter="0" x="0.047" y="0.5"/><constraint name="E" perimeter="0" x="1" y="0.5"/><constraint name="NE" perimeter="0" x="0.702" y="0.23"/><constraint name="SE" perimeter="0" x="0.699" y="0.957"/><constraint name="SW" perimeter="0" x="0.248" y="0.78"/><constraint name="NW" perimeter="0" x="0.323" y="0"/></connections><foreground><path><move x="65.76" y="12.76"/><line x="65.76" y="21.75"/><line x="63.12" y="21.75"/><line x="63.12" y="12.49"/><curve x1="63.12" y1="9.73" x2="62.02" y2="8.5" x3="59.5" y3="8.5"/><curve x1="57.05" y1="8.5" x2="55.36" y2="10.13" x3="55.36" y3="13.22"/><line x="55.36" y="21.75"/><line x="52.73" y="21.75"/><line x="52.73" y="6.41"/><line x="55.37" y="6.41"/><line x="55.37" y="8.93"/><curve x1="56.35" y1="7.12" x2="58.16" y2="6.11" x3="60.22" y3="6.11"/><curve x1="63.75" y1="6.11" x2="65.77" y2="8.53" x3="65.77" y3="12.77"/><close/><move x="46.17" y="20.52"/><line x="46.17" y="18.99"/><curve x1="45.19" y1="21.01" x2="43.35" y2="22.06" x3="40.99" y3="22.06"/><curve x1="36.94" y1="22.06" x2="34.92" y2="18.6" x3="34.92" y3="14.09"/><curve x1="34.92" y1="9.77" x2="37.04" y2="6.12" x3="41.3" y3="6.12"/><curve x1="43.54" y1="6.12" x2="45.26" y2="7.13" x3="46.18" y3="9.13"/><line x="46.18" y="6.41"/><line x="48.76" y="6.41"/><line x="48.76" y="20.36"/><curve x1="48.76" y1="24.87" x2="46.64" y2="27.9" x3="41.15" y3="27.9"/><curve x1="38.57" y1="27.9" x2="37.16" y2="27.56" x3="35.69" y3="27.07"/><line x="35.69" y="24.49"/><curve x1="37.38" y1="25.04" x2="39.12" y2="25.41" x3="41.03" y3="25.41"/><curve x1="44.86" y1="25.41" x2="46.18" y2="23.36" x3="46.18" y3="20.5"/><close/><move x="37.5" y="14.06"/><curve x1="37.5" y1="17.74" x2="38.97" y2="19.58" x3="41.7" y3="19.58"/><curve x1="44.06" y1="19.58" x2="46.18" y2="18.08" x3="46.18" y3="14.67"/><line x="46.18" y="13.44"/><curve x1="46.18" y1="10.04" x2="44.25" y2="8.53" x3="42.01" y3="8.53"/><curve x1="39.04" y1="8.53" x2="37.5" y2="10.49" x3="37.5" y3="14.05"/><close/><move x="28.73" y="2.36"/><curve x1="28.73" y1="1.19" x2="29.5" y2="0.52" x3="30.57" y3="0.52"/><curve x1="31.64" y1="0.52" x2="32.41" y2="1.19" x3="32.41" y3="2.36"/><curve x1="32.41" y1="3.53" x2="31.64" y2="4.2" x3="30.57" y3="4.2"/><curve x1="29.5" y1="4.2" x2="28.73" y2="3.53" x3="28.73" y3="2.36"/><close/><move x="29.22" y="21.74"/><line x="29.22" y="6.41"/><line x="31.86" y="6.41"/><line x="31.86" y="21.74"/><line x="29.22" y="21.74"/><close/><move x="26.68" y="21.71"/><curve x1="26.47" y1="21.77" x2="26.01" y2="21.83" x3="25.33" y3="21.83"/><curve x1="22.82" y1="21.83" x2="21.22" y2="20.64" x3="21.22" y3="17.81"/><line x="21.22" y="0"/><line x="23.86" y="0"/><line x="23.86" y="17.51"/><curve x1="23.86" y1="18.89" x2="24.78" y2="19.38" x3="25.92" y3="19.38"/><curve x1="26.2" y1="19.38" x2="26.38" y2="19.38" x3="26.69" y3="19.35"/><line x="26.68" y="21.71"/><close/><move x="9.6" y="17.73"/><curve x1="8.07" y1="17.73" x2="6.5" y2="17.55" x3="4.78" y3="17.21"/><line x="3.09" y="21.75"/><line x="0" y="21.75"/><line x="7.94" y="1.6"/><line x="11.44" y="1.6"/><line x="19.38" y="21.75"/><line x="16.28" y="21.75"/><line x="14.59" y="17.18"/><curve x1="12.78" y1="17.55" x2="11.22" y2="17.73" x3="9.59" y3="17.73"/><close/><move x="9.59" y="15.28"/><curve x1="10.88" y1="15.28" x2="12.2" y2="15.13" x3="13.76" y3="14.88"/><line x="9.68" y="3.84"/><line x="5.6" y="14.91"/><curve x1="7.1" y1="15.16" x2="8.36" y2="15.28" x3="9.59" y3="15.28"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_analytics" w="120.81" h="27.91" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.693"/><constraint name="W" perimeter="0" x="0.025" y="0.5"/><constraint name="E" perimeter="0" x="0.983" y="0.5"/><constraint name="NE" perimeter="0" x="0.765" y="0.036"/><constraint name="SE" perimeter="0" x="0.765" y="0.779"/><constraint name="SW" perimeter="0" x="0" y="0.779"/><constraint name="NW" perimeter="0" x="0.22" y="0.233"/></connections><foreground><path><move x="120.81" y="17.57"/><curve x1="120.81" y1="20.12" x2="119.15" y2="22.05" x3="115.05" y3="22.05"/><curve x1="112.75" y1="22.05" x2="110.88" y2="21.53" x3="109.71" y3="20.92"/><line x="109.71" y="18.13"/><curve x1="111.03" y1="18.9" x2="113.24" y2="19.63" x3="115.17" y3="19.63"/><curve x1="117.19" y1="19.63" x2="118.24" y2="18.8" x3="118.24" y3="17.61"/><curve x1="118.24" y1="16.44" x2="117.35" y2="15.77" x3="114.44" y3="15.06"/><curve x1="111.04" y1="14.23" x2="109.59" y2="12.91" x3="109.59" y3="10.4"/><curve x1="109.59" y1="7.73" x2="111.65" y2="6.11" x3="115.14" y3="6.11"/><curve x1="117.13" y1="6.11" x2="118.94" y2="6.6" x3="120.08" y3="7.21"/><line x="120.08" y="9.94"/><curve x1="118.24" y1="9.02" x2="116.74" y2="8.53" x3="115.11" y3="8.53"/><curve x1="113.18" y1="8.53" x2="112.14" y2="9.2" x3="112.14" y3="10.4"/><curve x1="112.14" y1="11.47" x2="112.88" y2="12.15" x3="115.7" y3="12.82"/><curve x1="119.1" y1="13.65" x2="120.82" y2="14.91" x3="120.82" y3="17.57"/><close/><move x="107.22" y="18.98"/><line x="107.22" y="21.34"/><curve x1="106.3" y1="21.83" x2="104.89" y2="22.05" x3="103.48" y3="22.05"/><curve x1="98.02" y1="22.05" x2="95.48" y2="18.74" x3="95.48" y3="14.05"/><curve x1="95.48" y1="9.42" x2="98.03" y2="6.11" x3="103.48" y3="6.11"/><curve x1="104.86" y1="6.11" x2="105.93" y2="6.29" x3="107.13" y3="6.85"/><line x="107.13" y="9.3"/><curve x1="106.15" y1="8.84" x2="105.11" y2="8.56" x3="103.66" y3="8.56"/><curve x1="99.67" y1="8.56" x2="98.05" y2="11.08" x3="98.05" y3="14.05"/><curve x1="98.05" y1="17.02" x2="99.71" y2="19.54" x3="103.72" y3="19.54"/><curve x1="105.28" y1="19.54" x2="106.27" y2="19.33" x3="107.22" y3="18.99"/><close/><move x="89.28" y="2.36"/><curve x1="89.28" y1="1.2" x2="90.05" y2="0.52" x3="91.12" y3="0.52"/><curve x1="92.19" y1="0.52" x2="92.96" y2="1.2" x3="92.96" y3="2.36"/><curve x1="92.96" y1="3.52" x2="92.19" y2="4.2" x3="91.12" y3="4.2"/><curve x1="90.05" y1="4.2" x2="89.28" y2="3.53" x3="89.28" y3="2.36"/><close/><move x="89.77" y="21.74"/><line x="89.77" y="6.41"/><line x="92.41" y="6.41"/><line x="92.41" y="21.74"/><line x="89.77" y="21.74"/><close/><move x="82.31" y="16.99"/><curve x1="82.31" y1="18.34" x2="83.11" y2="19.26" x3="84.73" y3="19.26"/><curve x1="85.34" y1="19.26" x2="85.93" y2="19.14" x3="86.39" y3="19.05"/><line x="86.39" y="21.6"/><curve x1="85.93" y1="21.72" x2="85.41" y2="21.85" x3="84.61" y3="21.85"/><curve x1="81.33" y1="21.85" x2="79.73" y2="19.92" x3="79.73" y3="17.07"/><line x="79.73" y="8.88"/><line x="77.25" y="8.88"/><line x="77.25" y="6.41"/><line x="79.73" y="6.41"/><line x="79.73" y="3.16"/><line x="82.31" y="3.16"/><line x="82.31" y="6.41"/><line x="86.39" y="6.41"/><line x="86.39" y="8.86"/><line x="82.31" y="8.86"/><line x="82.31" y="16.99"/><close/><move x="68.19" y="20.76"/><line x="66.47" y="20.76"/><line x="60.92" y="6.41"/><line x="63.74" y="6.41"/><line x="68.65" y="19.54"/><line x="73.56" y="6.41"/><line x="76.38" y="6.41"/><line x="70.58" y="21.25"/><curve x1="68.86" y1="25.64" x2="67.88" y2="27.91" x3="63.99" y3="27.91"/><curve x1="62.67" y1="27.91" x2="61.94" y2="27.79" x3="61.17" y3="27.48"/><line x="61.17" y="25.21"/><curve x1="62.06" y1="25.49" x2="63.07" y2="25.58" x3="63.84" y3="25.58"/><curve x1="65.99" y1="25.58" x2="66.94" y2="24.11" x3="68.2" y3="20.77"/><close/><move x="60.4" y="21.71"/><curve x1="60.19" y1="21.77" x2="59.73" y2="21.83" x3="59.05" y3="21.83"/><curve x1="56.54" y1="21.83" x2="54.94" y2="20.64" x3="54.94" y3="17.81"/><line x="54.94" y="0"/><line x="57.58" y="0"/><line x="57.58" y="17.51"/><curve x1="57.58" y1="18.89" x2="58.5" y2="19.38" x3="59.64" y3="19.38"/><curve x1="59.92" y1="19.38" x2="60.1" y2="19.38" x3="60.41" y3="19.35"/><line x="60.4" y="21.71"/><close/><move x="39.65" y="14.08"/><curve x1="39.65" y1="17.76" x2="41.12" y2="19.6" x3="43.85" y3="19.6"/><curve x1="46.21" y1="19.6" x2="48.33" y2="18.1" x3="48.33" y3="14.69"/><line x="48.33" y="13.46"/><curve x1="48.33" y1="10.06" x2="46.4" y2="8.55" x3="44.16" y3="8.55"/><curve x1="41.19" y1="8.55" x2="39.65" y2="10.51" x3="39.65" y3="14.07"/><close/><move x="48.33" y="21.74"/><line x="48.33" y="18.98"/><curve x1="47.35" y1="21" x2="45.51" y2="22.05" x3="43.15" y3="22.05"/><curve x1="39.07" y1="22.05" x2="37.02" y2="18.58" x3="37.02" y3="14.08"/><curve x1="37.02" y1="9.76" x2="39.17" y2="6.11" x3="43.46" y3="6.11"/><curve x1="45.7" y1="6.11" x2="47.42" y2="7.12" x3="48.34" y3="9.12"/><line x="48.34" y="6.41"/><line x="50.98" y="6.41"/><line x="50.98" y="21.74"/><line x="48.33" y="21.74"/><close/><move x="34.25" y="12.76"/><line x="34.25" y="21.75"/><line x="31.61" y="21.75"/><line x="31.61" y="12.49"/><curve x1="31.61" y1="9.73" x2="30.51" y2="8.5" x3="27.99" y3="8.5"/><curve x1="25.54" y1="8.5" x2="23.85" y2="10.13" x3="23.85" y3="13.22"/><line x="23.85" y="21.75"/><line x="21.22" y="21.75"/><line x="21.22" y="6.41"/><line x="23.86" y="6.41"/><line x="23.86" y="8.92"/><curve x1="24.84" y1="7.11" x2="26.65" y2="6.1" x3="28.71" y3="6.1"/><curve x1="32.24" y1="6.1" x2="34.26" y2="8.52" x3="34.26" y3="12.76"/><close/><move x="9.6" y="17.73"/><curve x1="8.07" y1="17.73" x2="6.5" y2="17.55" x3="4.79" y3="17.21"/><line x="3.1" y="21.75"/><line x="0" y="21.75"/><line x="7.94" y="1.6"/><line x="11.44" y="1.6"/><line x="19.38" y="21.75"/><line x="16.28" y="21.75"/><line x="14.59" y="17.18"/><curve x1="12.78" y1="17.55" x2="11.22" y2="17.73" x3="9.59" y3="17.73"/><close/><move x="9.59" y="15.28"/><curve x1="10.88" y1="15.28" x2="12.2" y2="15.13" x3="13.76" y3="14.88"/><line x="9.68" y="3.84"/><line x="5.6" y="14.91"/><curve x1="7.1" y1="15.16" x2="8.36" y2="15.28" x3="9.59" y3="15.28"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_assets" w="85.95" h="20.45" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.242"/><constraint name="S" perimeter="0" x="0.5" y="0.97"/><constraint name="W" perimeter="0" x="0.046" y="0.5"/><constraint name="E" perimeter="0" x="0.909" y="0.5"/><constraint name="NE" perimeter="0" x="0.793" y="0.076"/><constraint name="SE" perimeter="0" x="0.839" y="0.98"/><constraint name="SW" perimeter="0" x="0.275" y="0.99"/><constraint name="NW" perimeter="0" x="0.249" y="0.307"/></connections><foreground><path><move x="85.95" y="15.97"/><curve x1="85.95" y1="18.52" x2="84.29" y2="20.45" x3="80.19" y3="20.45"/><curve x1="77.89" y1="20.45" x2="76.02" y2="19.93" x3="74.85" y3="19.32"/><line x="74.85" y="16.53"/><curve x1="76.17" y1="17.3" x2="78.38" y2="18.03" x3="80.31" y3="18.03"/><curve x1="82.33" y1="18.03" x2="83.38" y2="17.2" x3="83.38" y3="16.01"/><curve x1="83.38" y1="14.85" x2="82.49" y2="14.17" x3="79.58" y3="13.47"/><curve x1="76.18" y1="12.64" x2="74.74" y2="11.32" x3="74.74" y3="8.81"/><curve x1="74.74" y1="6.14" x2="76.8" y2="4.52" x3="80.29" y3="4.52"/><curve x1="82.28" y1="4.52" x2="84.09" y2="5.01" x3="85.23" y3="5.62"/><line x="85.23" y="8.35"/><curve x1="83.39" y1="7.43" x2="81.89" y2="6.94" x3="80.26" y3="6.94"/><curve x1="78.33" y1="6.94" x2="77.29" y2="7.61" x3="77.29" y3="8.81"/><curve x1="77.29" y1="9.88" x2="78.03" y2="10.56" x3="80.85" y3="11.23"/><curve x1="84.25" y1="12.06" x2="85.97" y2="13.32" x3="85.97" y3="15.98"/><close/><move x="68.2" y="15.39"/><curve x1="68.2" y1="16.74" x2="69" y2="17.66" x3="70.62" y3="17.66"/><curve x1="71.23" y1="17.66" x2="71.82" y2="17.54" x3="72.28" y3="17.45"/><line x="72.28" y="20"/><curve x1="71.82" y1="20.12" x2="71.3" y2="20.25" x3="70.5" y3="20.25"/><curve x1="67.22" y1="20.25" x2="65.62" y2="18.32" x3="65.62" y3="15.47"/><line x="65.62" y="7.28"/><line x="63.14" y="7.28"/><line x="63.14" y="4.81"/><line x="65.62" y="4.81"/><line x="65.62" y="1.56"/><line x="68.2" y="1.56"/><line x="68.2" y="4.81"/><line x="72.28" y="4.81"/><line x="72.28" y="7.26"/><line x="68.2" y="7.26"/><line x="68.2" y="15.39"/><close/><move x="54.67" y="6.89"/><curve x1="51.88" y1="6.89" x2="50.47" y2="8.7" x3="50.19" y3="11.37"/><line x="58.75" y="11.37"/><curve x1="58.6" y1="8.52" x2="57.31" y2="6.89" x3="54.67" y3="6.89"/><close/><move x="60.56" y="19.53"/><curve x1="59.3" y1="20.21" x2="57.37" y2="20.45" x3="55.81" y3="20.45"/><curve x1="50.08" y1="20.45" x2="47.56" y2="17.14" x3="47.56" y3="12.45"/><curve x1="47.56" y1="7.82" x2="50.14" y2="4.51" x3="54.8" y3="4.51"/><curve x1="59.52" y1="4.51" x2="61.42" y2="7.79" x3="61.42" y3="12.45"/><line x="61.42" y="13.65"/><line x="50.22" y="13.65"/><curve x1="50.59" y1="16.26" x2="52.27" y2="17.94" x3="55.89" y3="17.94"/><curve x1="57.67" y1="17.94" x2="59.17" y2="17.6" x3="60.55" y3="17.11"/><line x="60.56" y="19.53"/><close/><move x="45.43" y="15.97"/><curve x1="45.43" y1="18.52" x2="43.77" y2="20.45" x3="39.66" y3="20.45"/><curve x1="37.36" y1="20.45" x2="35.49" y2="19.93" x3="34.32" y3="19.32"/><line x="34.32" y="16.53"/><curve x1="35.64" y1="17.3" x2="37.85" y2="18.03" x3="39.78" y3="18.03"/><curve x1="41.8" y1="18.03" x2="42.85" y2="17.2" x3="42.85" y3="16.01"/><curve x1="42.85" y1="14.85" x2="41.96" y2="14.17" x3="39.05" y3="13.47"/><curve x1="35.65" y1="12.64" x2="34.2" y2="11.32" x3="34.2" y3="8.81"/><curve x1="34.2" y1="6.14" x2="36.26" y2="4.52" x3="39.75" y3="4.52"/><curve x1="41.74" y1="4.52" x2="43.55" y2="5.01" x3="44.69" y3="5.62"/><line x="44.69" y="8.35"/><curve x1="42.85" y1="7.43" x2="41.35" y2="6.94" x3="39.72" y3="6.94"/><curve x1="37.79" y1="6.94" x2="36.75" y2="7.61" x3="36.75" y3="8.81"/><curve x1="36.75" y1="9.88" x2="37.49" y2="10.56" x3="40.31" y3="11.23"/><curve x1="43.71" y1="12.06" x2="45.43" y2="13.32" x3="45.43" y3="15.98"/><close/><move x="31.8" y="15.97"/><curve x1="31.8" y1="18.52" x2="30.14" y2="20.45" x3="26.04" y3="20.45"/><curve x1="23.74" y1="20.45" x2="21.87" y2="19.93" x3="20.7" y3="19.32"/><line x="20.7" y="16.53"/><curve x1="22.02" y1="17.3" x2="24.23" y2="18.03" x3="26.16" y3="18.03"/><curve x1="28.18" y1="18.03" x2="29.23" y2="17.2" x3="29.23" y3="16.01"/><curve x1="29.23" y1="14.85" x2="28.34" y2="14.17" x3="25.43" y3="13.47"/><curve x1="22.03" y1="12.64" x2="20.59" y2="11.32" x3="20.59" y3="8.81"/><curve x1="20.59" y1="6.14" x2="22.65" y2="4.52" x3="26.14" y3="4.52"/><curve x1="28.13" y1="4.52" x2="29.94" y2="5.01" x3="31.08" y3="5.62"/><line x="31.08" y="8.35"/><curve x1="29.24" y1="7.43" x2="27.74" y2="6.94" x3="26.11" y3="6.94"/><curve x1="24.18" y1="6.94" x2="23.14" y2="7.61" x3="23.14" y3="8.81"/><curve x1="23.14" y1="9.88" x2="23.88" y2="10.56" x3="26.7" y3="11.23"/><curve x1="30.1" y1="12.06" x2="31.82" y2="13.32" x3="31.82" y3="15.98"/><close/><move x="9.6" y="16.13"/><curve x1="8.07" y1="16.13" x2="6.5" y2="15.95" x3="4.79" y3="15.61"/><line x="3.1" y="20.15"/><line x="0" y="20.15"/><line x="7.94" y="0"/><line x="11.44" y="0"/><line x="19.38" y="20.15"/><line x="16.28" y="20.15"/><line x="14.59" y="15.58"/><curve x1="12.78" y1="15.95" x2="11.22" y2="16.13" x3="9.59" y3="16.13"/><close/><move x="9.59" y="13.68"/><curve x1="10.88" y1="13.68" x2="12.2" y2="13.53" x3="13.76" y3="13.28"/><line x="9.68" y="2.24"/><line x="5.6" y="13.31"/><curve x1="7.1" y1="13.56" x2="8.36" y2="13.68" x3="9.59" y3="13.68"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_atlassian" w="165.47" h="20.67" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.005"/><constraint name="S" perimeter="0" x="0.5" y="0.996"/><constraint name="W" perimeter="0" x="0.021" y="0.5"/><constraint name="E" perimeter="0" x="1" y="0.5"/><constraint name="NE" perimeter="0" x="1" y="0.01"/><constraint name="SE" perimeter="0" x="0.784" y="0.986"/><constraint name="SW" perimeter="0" x="0.236" y="0.986"/><constraint name="NW" perimeter="0" x="0.215" y="0.01"/></connections><foreground><path><move x="91.018" y="14.368"/><curve x1="91.018" y1="18.048" x2="88.824" y2="20.596" x3="83.162" y3="20.596"/><curve x1="79.128" y1="20.596" x2="77.004" y2="19.676" x3="75.377" y3="18.898"/><line x="75.377" y="14.085"/><curve x1="77.429" y1="15.288" x2="80.543" y2="16.208" x3="83.162" y3="16.208"/><curve x1="85.427" y1="16.208" x2="86.135" y2="15.571" x3="86.135" y3="14.51"/><curve x1="86.135" y1="13.448" x2="85.427" y2="12.952" x3="82.242" y3="12.245"/><curve x1="76.792" y1="11.183" x2="75.447" y2="8.847" x3="75.447" y3="5.875"/><close/><move x="75.447" y="6.016"/><curve x1="75.447" y1="2.336" x2="78.137" y2="0.071" x3="83.374" y3="0.071"/><curve x1="86.135" y1="0.071" x2="88.47" y2="0.637" x3="90.027" y3="1.416"/><line x="90.027" y="6.016"/><curve x1="87.833" y1="5.026" x2="85.568" y2="4.318" x3="83.233" y3="4.318"/><curve x1="81.322" y1="4.318" x2="80.26" y2="4.813" x3="80.26" y3="5.946"/><curve x1="80.26" y1="6.866" x2="80.968" y2="7.503" x3="83.87" y3="8.14"/><curve x1="89.178" y1="9.272" x2="91.018" y2="10.9" x3="91.018" y3="14.438"/><close/><move x="147.922" y="0.213"/><line x="154.717" y="0.213"/><line x="159.6" y="9.414"/><line x="161.228" y="13.235"/><line x="161.228" y="0.213"/><line x="165.475" y="0.213"/><line x="165.475" y="20.385"/><line x="160.096" y="20.385"/><line x="154.009" y="9.061"/><line x="152.24" y="5.026"/><line x="152.24" y="20.383"/><line x="147.922" y="20.383"/><line x="147.922" y="0.213"/><close/><move x="120.603" y="0.213"/><line x="120.603" y="20.383"/><line x="115.932" y="20.383"/><line x="115.932" y="0.213"/><line x="120.603" y="0.213"/><close/><move x="110.553" y="14.367"/><curve x1="110.553" y1="18.119" x2="108.288" y2="20.667" x3="102.696" y3="20.667"/><curve x1="98.662" y1="20.667" x2="96.539" y2="19.747" x3="94.911" y3="18.968"/><line x="94.911" y="14.156"/><curve x1="96.963" y1="15.359" x2="100.078" y2="16.279" x3="102.696" y3="16.279"/><curve x1="104.961" y1="16.279" x2="105.669" y2="15.642" x3="105.669" y3="14.58"/><curve x1="105.669" y1="13.519" x2="104.961" y2="13.023" x3="101.776" y3="12.316"/><curve x1="96.326" y1="11.254" x2="94.982" y2="8.918" x3="94.982" y3="5.946"/><curve x1="94.982" y1="2.265" x2="97.671" y2="0" x3="102.909" y3="0"/><curve x1="105.669" y1="0" x2="108.005" y2="0.566" x3="109.562" y3="1.346"/><line x="109.562" y="5.946"/><curve x1="107.368" y1="4.955" x2="105.103" y2="4.247" x3="102.767" y3="4.247"/><curve x1="100.856" y1="4.247" x2="99.795" y2="4.742" x3="99.795" y3="5.875"/><curve x1="99.795" y1="6.795" x2="100.502" y2="7.432" x3="103.404" y3="8.069"/><curve x1="108.712" y1="9.201" x2="110.553" y2="10.829" x3="110.553" y3="14.367"/><close/><move x="39.069" y="0.213"/><line x="43.74" y="0.213"/><line x="43.74" y="15.996"/><line x="50.18" y="15.996"/><line x="48.694" y="20.383"/><line x="39.069" y="20.383"/><line x="39.069" y="0.213"/><close/><move x="20.03" y="0.213"/><line x="35.53" y="0.213"/><line x="35.53" y="4.53"/><line x="29.938" y="4.53"/><line x="29.938" y="20.384"/><line x="25.197" y="20.384"/><line x="25.197" y="4.53"/><line x="20.03" y="4.53"/><line x="20.03" y="0.213"/><close/><move x="13.164" y="0.213"/><curve x1="13.164" y1="0.213" x2="20.172" y2="20.384" x3="20.242" y3="20.384"/><line x="14.863" y="20.384"/><line x="13.872" y="16.986"/><curve x1="12.669" y1="17.34" x2="11.395" y2="17.553" x3="10.121" y3="17.553"/><curve x1="8.847" y1="17.553" x2="7.573" y2="17.34" x3="6.369" y3="16.987"/><line x="5.379" y="20.383"/><line x="0" y="20.383"/><line x="7.007" y="0.213"/><line x="13.164" y="0.213"/><close/><move x="10.05" y="13.306"/><line x="10.05" y="13.307"/><arc rx="9.6" ry="9.6" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="12.598" y="12.953"/><line x="10.05" y="4.177"/><line x="7.502" y="12.952"/><curve x1="8.28" y1="13.165" x2="9.13" y2="13.306" x3="10.05" y3="13.306"/><close/><move x="65.326" y="0.213"/><line x="72.334" y="20.384"/><line x="66.955" y="20.384"/><line x="65.964" y="16.986"/><curve x1="64.761" y1="17.34" x2="63.487" y2="17.553" x3="62.213" y3="17.553"/><curve x1="60.939" y1="17.553" x2="59.665" y2="17.34" x3="58.462" y3="16.987"/><line x="57.472" y="20.383"/><line x="52.092" y="20.383"/><line x="59.17" y="0.213"/><line x="65.326" y="0.213"/><close/><move x="62.212" y="13.306"/><arc rx="9.6" ry="9.6" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="64.76" y="12.952"/><line x="62.212" y="4.176"/><line x="59.664" y="12.952"/><curve x1="60.442" y1="13.165" x2="61.292" y2="13.306" x3="62.212" y3="13.306"/><close/><move x="137.518" y="0.213"/><line x="144.596" y="20.384"/><line x="139.217" y="20.384"/><line x="138.226" y="16.986"/><curve x1="137.023" y1="17.34" x2="135.749" y2="17.553" x3="134.475" y3="17.553"/><curve x1="133.201" y1="17.553" x2="131.927" y2="17.34" x3="130.724" y3="16.987"/><line x="129.733" y="20.383"/><line x="124.354" y="20.383"/><line x="131.361" y="0.213"/><line x="137.518" y="0.213"/><close/><move x="134.475" y="13.306"/><arc rx="10" ry="10" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="137.023" y="12.952"/><line x="134.475" y="4.176"/><line x="131.927" y="12.952"/><curve x1="132.705" y1="13.165" x2="133.555" y2="13.306" x3="134.475" y3="13.306"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_bamboo" w="110.18" h="22.06" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.282"/><constraint name="W" perimeter="0" x="0" y="0.5"/><constraint name="E" perimeter="0" x="0.996" y="0.5"/><constraint name="NE" perimeter="0" x="0.768" y="0.284"/><constraint name="SE" perimeter="0" x="0.811" y="0.972"/><constraint name="SW" perimeter="0" x="0.193" y="0.972"/><constraint name="NW" perimeter="0" x="0" y="0.073"/></connections><foreground><path><move x="102.94" y="22.05"/><curve x1="98.34" y1="22.05" x2="95.64" y2="18.65" x3="95.64" y3="14.05"/><curve x1="95.64" y1="9.45" x2="98.34" y2="6.11" x3="102.94" y3="6.11"/><curve x1="107.51" y1="6.11" x2="110.18" y2="9.45" x3="110.18" y3="14.05"/><curve x1="110.18" y1="18.65" x2="107.51" y2="22.05" x3="102.94" y3="22.05"/><close/><move x="102.94" y="8.56"/><curve x1="99.66" y1="8.56" x2="98.22" y2="11.14" x3="98.22" y3="14.05"/><curve x1="98.22" y1="16.96" x2="99.66" y2="19.6" x3="102.94" y3="19.6"/><curve x1="106.19" y1="19.6" x2="107.6" y2="16.96" x3="107.6" y3="14.05"/><curve x1="107.6" y1="11.14" x2="106.19" y2="8.56" x3="102.94" y3="8.56"/><close/><move x="86.26" y="22.05"/><curve x1="81.66" y1="22.05" x2="78.96" y2="18.65" x3="78.96" y3="14.05"/><curve x1="78.96" y1="9.45" x2="81.66" y2="6.11" x3="86.26" y3="6.11"/><curve x1="90.83" y1="6.11" x2="93.5" y2="9.45" x3="93.5" y3="14.05"/><curve x1="93.5" y1="18.65" x2="90.83" y2="22.05" x3="86.26" y3="22.05"/><close/><move x="86.26" y="8.56"/><curve x1="82.98" y1="8.56" x2="81.54" y2="11.14" x3="81.54" y3="14.05"/><curve x1="81.54" y1="16.96" x2="82.98" y2="19.6" x3="86.26" y3="19.6"/><curve x1="89.51" y1="19.6" x2="90.92" y2="16.96" x3="90.92" y3="14.05"/><curve x1="90.92" y1="11.14" x2="89.51" y2="8.56" x3="86.26" y3="8.56"/><close/><move x="74.19" y="14.08"/><curve x1="74.19" y1="10.4" x2="72.72" y2="8.56" x3="69.99" y3="8.56"/><curve x1="67.63" y1="8.56" x2="65.51" y2="10.06" x3="65.51" y3="13.47"/><line x="65.51" y="14.7"/><curve x1="65.51" y1="18.1" x2="67.44" y2="19.61" x3="69.68" y3="19.61"/><curve x1="72.66" y1="19.61" x2="74.19" y2="17.65" x3="74.19" y3="14.09"/><close/><move x="70.39" y="22.06"/><curve x1="68.15" y1="22.06" x2="66.43" y2="21.05" x3="65.51" y3="19.06"/><line x="65.51" y="21.76"/><line x="62.87" y="21.76"/><line x="62.87" y="0"/><line x="65.51" y="0"/><line x="65.51" y="9.17"/><curve x1="66.49" y1="7.15" x2="68.33" y2="6.1" x3="70.69" y3="6.1"/><curve x1="74.77" y1="6.1" x2="76.82" y2="9.57" x3="76.82" y3="14.07"/><curve x1="76.82" y1="18.39" x2="74.67" y2="22.04" x3="70.38" y3="22.04"/><close/><move x="48.8" y="13.22"/><line x="48.8" y="21.75"/><line x="46.16" y="21.75"/><line x="46.16" y="12.49"/><curve x1="46.16" y1="9.73" x2="45.06" y2="8.5" x3="42.54" y3="8.5"/><curve x1="40.09" y1="8.5" x2="38.4" y2="10.13" x3="38.4" y3="13.22"/><line x="38.4" y="21.75"/><line x="35.76" y="21.75"/><line x="35.76" y="6.41"/><line x="38.4" y="6.41"/><line x="38.4" y="8.93"/><curve x1="39.38" y1="7.12" x2="41.19" y2="6.11" x3="43.25" y3="6.11"/><curve x1="45.86" y1="6.11" x2="47.64" y2="7.43" x3="48.4" y3="9.85"/><curve x1="49.26" y1="7.49" x2="51.31" y2="6.11" x3="53.86" y3="6.11"/><curve x1="57.29" y1="6.11" x2="59.2" y2="8.44" x3="59.2" y3="12.77"/><line x="59.2" y="21.76"/><line x="56.56" y="21.76"/><line x="56.56" y="13.24"/><curve x1="56.56" y1="10.08" x2="55.46" y2="8.52" x3="52.94" y3="8.52"/><curve x1="50.49" y1="8.52" x2="48.8" y2="10.15" x3="48.8" y3="13.24"/><close/><move x="20.48" y="14.08"/><curve x1="20.48" y1="17.76" x2="21.95" y2="19.6" x3="24.68" y3="19.6"/><curve x1="27.04" y1="19.6" x2="29.16" y2="18.1" x3="29.16" y3="14.69"/><line x="29.16" y="13.46"/><curve x1="29.16" y1="10.06" x2="27.23" y2="8.55" x3="24.99" y3="8.55"/><curve x1="22.02" y1="8.55" x2="20.48" y2="10.51" x3="20.48" y3="14.07"/><close/><move x="29.16" y="21.74"/><line x="29.16" y="18.98"/><curve x1="28.18" y1="21" x2="26.34" y2="22.05" x3="23.98" y3="22.05"/><curve x1="19.9" y1="22.05" x2="17.85" y2="18.59" x3="17.85" y3="14.08"/><curve x1="17.85" y1="9.76" x2="20" y2="6.11" x3="24.29" y3="6.11"/><curve x1="26.53" y1="6.11" x2="28.25" y2="7.12" x3="29.17" y3="9.12"/><line x="29.17" y="6.41"/><line x="31.81" y="6.41"/><line x="31.81" y="21.74"/><line x="29.16" y="21.74"/><close/><move x="8.93" y="12.7"/><line x="2.74" y="12.7"/><line x="2.74" y="18.99"/><line x="9" y="18.99"/><curve x1="11.64" y1="18.99" x2="12.83" y2="18.04" x3="12.83" y3="16.02"/><curve x1="12.83" y1="13.87" x2="11.7" y2="12.71" x3="8.94" y3="12.71"/><close/><move x="8.05" y="4.25"/><line x="2.75" y="4.25"/><line x="2.75" y="10.26"/><line x="8.06" y="10.26"/><curve x1="10.67" y1="10.26" x2="11.74" y2="9.06" x3="11.74" y3="7.13"/><curve x1="11.74" y1="5.17" x2="10.58" y2="4.25" x3="8.06" y3="4.25"/><close/><move x="0" y="21.76"/><line x="0" y="1.6"/><line x="8.43" y="1.6"/><curve x1="12.54" y1="1.6" x2="14.53" y2="3.62" x3="14.53" y3="6.88"/><curve x1="14.53" y1="9.3" x2="13.43" y2="10.81" x3="11.16" y3="11.36"/><curve x1="14.13" y1="11.85" x2="15.61" y2="13.48" x3="15.61" y3="16.33"/><curve x1="15.61" y1="19.55" x2="13.43" y2="21.76" x3="8.93" y3="21.76"/><line x="0" y="21.76"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_bitbucket" w="122.23" h="22.06" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.878"/><constraint name="W" perimeter="0" x="0" y="0.5"/><constraint name="E" perimeter="0" x="0.967" y="0.5"/><constraint name="NE" perimeter="0" x="0.763" y="0.291"/><constraint name="SE" perimeter="0" x="0.794" y="0.985"/><constraint name="SW" perimeter="0" x="0.226" y="0.931"/><constraint name="NW" perimeter="0" x="0.216" y="0.143"/></connections><foreground><path><move x="118.15" y="16.99"/><curve x1="118.15" y1="18.34" x2="118.95" y2="19.26" x3="120.57" y3="19.26"/><curve x1="121.18" y1="19.26" x2="121.77" y2="19.14" x3="122.23" y3="19.05"/><line x="122.23" y="21.6"/><arc rx="6.3" ry="6.3" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="120.45" y="21.85"/><curve x1="117.17" y1="21.85" x2="115.57" y2="19.92" x3="115.57" y3="17.07"/><line x="115.57" y="8.88"/><line x="113.09" y="8.88"/><line x="113.09" y="6.41"/><line x="115.57" y="6.41"/><line x="115.57" y="3.16"/><line x="118.15" y="3.16"/><line x="118.15" y="6.41"/><line x="122.23" y="6.41"/><line x="122.23" y="8.86"/><line x="118.15" y="8.86"/><line x="118.15" y="16.99"/><close/><move x="104.62" y="8.5"/><curve x1="101.83" y1="8.5" x2="100.42" y2="10.31" x3="100.14" y3="12.98"/><line x="108.7" y="12.98"/><curve x1="108.55" y1="10.13" x2="107.26" y2="8.5" x3="104.62" y3="8.5"/><close/><move x="110.51" y="21.14"/><curve x1="109.25" y1="21.81" x2="107.32" y2="22.06" x3="105.76" y3="22.06"/><curve x1="100.03" y1="22.06" x2="97.51" y2="18.75" x3="97.51" y3="14.06"/><curve x1="97.51" y1="9.43" x2="100.09" y2="6.12" x3="104.75" y3="6.12"/><curve x1="109.47" y1="6.12" x2="111.37" y2="9.4" x3="111.37" y3="14.06"/><line x="111.37" y="15.26"/><line x="100.18" y="15.26"/><curve x1="100.55" y1="17.87" x2="102.23" y2="19.55" x3="105.85" y3="19.55"/><curve x1="107.63" y1="19.55" x2="109.13" y2="19.21" x3="110.51" y3="18.72"/><line x="110.51" y="21.14"/><close/><move x="86.68" y="21.74"/><line x="84.04" y="21.74"/><line x="84.04" y="0"/><line x="86.68" y="0"/><line x="86.68" y="13.59"/><line x="93.28" y="6.41"/><line x="96.72" y="6.41"/><line x="89.51" y="13.95"/><line x="97.02" y="21.74"/><line x="93.43" y="21.74"/><line x="86.68" y="14.56"/><line x="86.68" y="21.74"/><close/><move x="81.04" y="18.98"/><line x="81.04" y="21.34"/><curve x1="80.12" y1="21.83" x2="78.71" y2="22.05" x3="77.3" y3="22.05"/><curve x1="71.84" y1="22.05" x2="69.3" y2="18.74" x3="69.3" y3="14.05"/><curve x1="69.3" y1="9.42" x2="71.85" y2="6.11" x3="77.3" y3="6.11"/><curve x1="78.68" y1="6.11" x2="79.75" y2="6.29" x3="80.95" y3="6.85"/><line x="80.95" y="9.3"/><curve x1="79.97" y1="8.84" x2="78.93" y2="8.56" x3="77.49" y3="8.56"/><curve x1="73.5" y1="8.56" x2="71.88" y2="11.08" x3="71.88" y3="14.05"/><curve x1="71.88" y1="17.02" x2="73.54" y2="19.54" x3="77.55" y3="19.54"/><curve x1="79.11" y1="19.54" x2="80.1" y2="19.33" x3="81.05" y3="18.99"/><close/><move x="53.19" y="15.4"/><line x="53.19" y="6.41"/><line x="55.83" y="6.41"/><line x="55.83" y="15.67"/><curve x1="55.83" y1="18.43" x2="56.93" y2="19.66" x3="59.45" y3="19.66"/><curve x1="61.9" y1="19.66" x2="63.59" y2="18.03" x3="63.59" y3="14.94"/><line x="63.59" y="6.41"/><line x="66.23" y="6.41"/><line x="66.23" y="21.74"/><line x="63.59" y="21.74"/><line x="63.59" y="19.23"/><curve x1="62.61" y1="21.04" x2="60.8" y2="22.05" x3="58.75" y3="22.05"/><curve x1="55.22" y1="22.05" x2="53.2" y2="19.63" x3="53.2" y3="15.4"/><close/><move x="47.8" y="14.08"/><curve x1="47.8" y1="10.4" x2="46.33" y2="8.56" x3="43.6" y3="8.56"/><curve x1="41.24" y1="8.56" x2="39.12" y2="10.06" x3="39.12" y3="13.47"/><line x="39.12" y="14.7"/><curve x1="39.12" y1="18.1" x2="41.05" y2="19.61" x3="43.29" y3="19.61"/><curve x1="46.27" y1="19.61" x2="47.8" y2="17.65" x3="47.8" y3="14.09"/><close/><move x="44" y="22.06"/><curve x1="41.76" y1="22.06" x2="40.04" y2="21.05" x3="39.12" y3="19.06"/><line x="39.12" y="21.76"/><line x="36.48" y="21.76"/><line x="36.48" y="0"/><line x="39.12" y="0"/><line x="39.12" y="9.17"/><curve x1="40.1" y1="7.15" x2="41.94" y2="6.1" x3="44.3" y3="6.1"/><curve x1="48.38" y1="6.1" x2="50.43" y2="9.57" x3="50.43" y3="14.07"/><curve x1="50.43" y1="18.39" x2="48.28" y2="22.04" x3="43.99" y3="22.04"/><close/><move x="29.03" y="16.99"/><curve x1="29.03" y1="18.34" x2="29.83" y2="19.26" x3="31.45" y3="19.26"/><curve x1="32.06" y1="19.26" x2="32.65" y2="19.14" x3="33.11" y3="19.05"/><line x="33.11" y="21.6"/><curve x1="32.65" y1="21.72" x2="32.13" y2="21.85" x3="31.33" y3="21.85"/><curve x1="28.05" y1="21.85" x2="26.45" y2="19.92" x3="26.45" y3="17.07"/><line x="26.45" y="8.88"/><line x="23.97" y="8.88"/><line x="23.97" y="6.41"/><line x="26.45" y="6.41"/><line x="26.45" y="3.16"/><line x="29.03" y="3.16"/><line x="29.03" y="6.41"/><line x="33.11" y="6.41"/><line x="33.11" y="8.86"/><line x="29.03" y="8.86"/><line x="29.03" y="16.99"/><close/><move x="18.27" y="2.36"/><curve x1="18.27" y1="1.2" x2="19.04" y2="0.52" x3="20.11" y3="0.52"/><curve x1="21.18" y1="0.52" x2="21.95" y2="1.2" x3="21.95" y3="2.36"/><curve x1="21.95" y1="3.52" x2="21.18" y2="4.2" x3="20.11" y3="4.2"/><curve x1="19.04" y1="4.2" x2="18.27" y2="3.53" x3="18.27" y3="2.36"/><close/><move x="18.76" y="21.74"/><line x="18.76" y="6.41"/><line x="21.4" y="6.41"/><line x="21.4" y="21.74"/><line x="18.76" y="21.74"/><close/><move x="8.93" y="12.7"/><line x="2.74" y="12.7"/><line x="2.74" y="18.99"/><line x="9" y="18.99"/><curve x1="11.64" y1="18.99" x2="12.83" y2="18.04" x3="12.83" y3="16.02"/><curve x1="12.83" y1="13.87" x2="11.7" y2="12.71" x3="8.94" y3="12.71"/><close/><move x="8.05" y="4.25"/><line x="2.75" y="4.25"/><line x="2.75" y="10.26"/><line x="8.06" y="10.26"/><curve x1="10.67" y1="10.26" x2="11.74" y2="9.06" x3="11.74" y3="7.13"/><curve x1="11.74" y1="5.17" x2="10.57" y2="4.25" x3="8.06" y3="4.25"/><close/><move x="0" y="21.76"/><line x="0" y="1.6"/><line x="8.43" y="1.6"/><curve x1="12.54" y1="1.6" x2="14.53" y2="3.62" x3="14.53" y3="6.87"/><curve x1="14.53" y1="9.29" x2="13.43" y2="10.8" x3="11.16" y3="11.35"/><curve x1="14.13" y1="11.84" x2="15.61" y2="13.47" x3="15.61" y3="16.32"/><curve x1="15.61" y1="19.54" x2="13.43" y2="21.75" x3="8.92" y3="21.75"/><line x="0" y="21.76"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_bitbucket_data_center" w="122.23" h="22.06" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.878"/><constraint name="W" perimeter="0" x="0" y="0.5"/><constraint name="E" perimeter="0" x="0.967" y="0.5"/><constraint name="NE" perimeter="0" x="0.763" y="0.291"/><constraint name="SE" perimeter="0" x="0.794" y="0.985"/><constraint name="SW" perimeter="0" x="0.226" y="0.931"/><constraint name="NW" perimeter="0" x="0.216" y="0.143"/></connections><foreground><path><move x="118.15" y="16.99"/><curve x1="118.15" y1="18.34" x2="118.95" y2="19.26" x3="120.57" y3="19.26"/><curve x1="121.18" y1="19.26" x2="121.77" y2="19.14" x3="122.23" y3="19.05"/><line x="122.23" y="21.6"/><curve x1="121.77" y1="21.72" x2="121.25" y2="21.85" x3="120.45" y3="21.85"/><curve x1="117.17" y1="21.85" x2="115.57" y2="19.92" x3="115.57" y3="17.07"/><line x="115.57" y="8.88"/><line x="113.09" y="8.88"/><line x="113.09" y="6.41"/><line x="115.57" y="6.41"/><line x="115.57" y="3.16"/><line x="118.15" y="3.16"/><line x="118.15" y="6.41"/><line x="122.23" y="6.41"/><line x="122.23" y="8.86"/><line x="118.15" y="8.86"/><line x="118.15" y="16.99"/><close/><move x="104.62" y="8.5"/><curve x1="101.83" y1="8.5" x2="100.42" y2="10.31" x3="100.14" y3="12.98"/><line x="108.7" y="12.98"/><curve x1="108.55" y1="10.13" x2="107.26" y2="8.5" x3="104.62" y3="8.5"/><close/><move x="110.51" y="21.14"/><curve x1="109.25" y1="21.82" x2="107.32" y2="22.06" x3="105.76" y3="22.06"/><curve x1="100.03" y1="22.06" x2="97.51" y2="18.75" x3="97.51" y3="14.06"/><curve x1="97.51" y1="9.43" x2="100.09" y2="6.12" x3="104.75" y3="6.12"/><curve x1="109.47" y1="6.12" x2="111.37" y2="9.4" x3="111.37" y3="14.06"/><line x="111.37" y="15.26"/><line x="100.18" y="15.26"/><curve x1="100.55" y1="17.87" x2="102.24" y2="19.55" x3="105.85" y3="19.55"/><curve x1="107.63" y1="19.55" x2="109.13" y2="19.21" x3="110.51" y3="18.72"/><line x="110.51" y="21.14"/><close/><move x="86.68" y="21.74"/><line x="84.04" y="21.74"/><line x="84.04" y="0"/><line x="86.68" y="0"/><line x="86.68" y="13.59"/><line x="93.28" y="6.41"/><line x="96.72" y="6.41"/><line x="89.51" y="13.95"/><line x="97.02" y="21.74"/><line x="93.43" y="21.74"/><line x="86.68" y="14.56"/><line x="86.68" y="21.74"/><close/><move x="81.04" y="18.98"/><line x="81.04" y="21.34"/><curve x1="80.12" y1="21.83" x2="78.71" y2="22.05" x3="77.3" y3="22.05"/><curve x1="71.84" y1="22.05" x2="69.3" y2="18.74" x3="69.3" y3="14.05"/><curve x1="69.3" y1="9.42" x2="71.85" y2="6.11" x3="77.3" y3="6.11"/><curve x1="78.68" y1="6.11" x2="79.75" y2="6.29" x3="80.95" y3="6.85"/><line x="80.95" y="9.3"/><curve x1="79.97" y1="8.84" x2="78.93" y2="8.56" x3="77.48" y3="8.56"/><curve x1="73.49" y1="8.56" x2="71.87" y2="11.07" x3="71.87" y3="14.05"/><curve x1="71.87" y1="17.03" x2="73.53" y2="19.54" x3="77.54" y3="19.54"/><curve x1="79.1" y1="19.54" x2="80.09" y2="19.33" x3="81.04" y3="18.99"/><close/><move x="53.19" y="15.4"/><line x="53.19" y="6.41"/><line x="55.83" y="6.41"/><line x="55.83" y="15.67"/><curve x1="55.83" y1="18.43" x2="56.93" y2="19.66" x3="59.45" y3="19.66"/><curve x1="61.9" y1="19.66" x2="63.59" y2="18.04" x3="63.59" y3="14.94"/><line x="63.59" y="6.41"/><line x="66.23" y="6.41"/><line x="66.23" y="21.74"/><line x="63.59" y="21.74"/><line x="63.59" y="19.23"/><curve x1="62.61" y1="21.04" x2="60.8" y2="22.05" x3="58.74" y3="22.05"/><curve x1="55.21" y1="22.05" x2="53.19" y2="19.63" x3="53.19" y3="15.4"/><close/><move x="47.8" y="14.08"/><curve x1="47.8" y1="10.4" x2="46.33" y2="8.56" x3="43.6" y3="8.56"/><curve x1="41.24" y1="8.56" x2="39.12" y2="10.06" x3="39.12" y3="13.47"/><line x="39.12" y="14.7"/><curve x1="39.12" y1="18.1" x2="41.05" y2="19.61" x3="43.29" y3="19.61"/><curve x1="46.27" y1="19.61" x2="47.8" y2="17.65" x3="47.8" y3="14.09"/><close/><move x="44" y="22.06"/><curve x1="41.76" y1="22.06" x2="40.04" y2="21.05" x3="39.12" y3="19.06"/><line x="39.12" y="21.76"/><line x="36.48" y="21.76"/><line x="36.48" y="0"/><line x="39.12" y="0"/><line x="39.12" y="9.17"/><curve x1="40.1" y1="7.15" x2="41.94" y2="6.1" x3="44.3" y3="6.1"/><curve x1="48.38" y1="6.1" x2="50.43" y2="9.57" x3="50.43" y3="14.07"/><curve x1="50.43" y1="18.39" x2="48.28" y2="22.04" x3="43.99" y3="22.04"/><close/><move x="29.03" y="16.99"/><curve x1="29.03" y1="18.34" x2="29.83" y2="19.26" x3="31.45" y3="19.26"/><curve x1="32.06" y1="19.26" x2="32.65" y2="19.14" x3="33.11" y3="19.05"/><line x="33.11" y="21.6"/><arc rx="6.3" ry="6.3" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="31.33" y="21.85"/><curve x1="28.05" y1="21.85" x2="26.45" y2="19.92" x3="26.45" y3="17.07"/><line x="26.45" y="8.88"/><line x="23.97" y="8.88"/><line x="23.97" y="6.41"/><line x="26.45" y="6.41"/><line x="26.45" y="3.16"/><line x="29.03" y="3.16"/><line x="29.03" y="6.41"/><line x="33.11" y="6.41"/><line x="33.11" y="8.86"/><line x="29.03" y="8.86"/><line x="29.03" y="16.99"/><close/><move x="18.27" y="2.36"/><curve x1="18.27" y1="1.2" x2="19.04" y2="0.52" x3="20.11" y3="0.52"/><curve x1="21.18" y1="0.52" x2="21.95" y2="1.2" x3="21.95" y3="2.36"/><curve x1="21.95" y1="3.52" x2="21.18" y2="4.2" x3="20.11" y3="4.2"/><curve x1="19.04" y1="4.2" x2="18.27" y2="3.53" x3="18.27" y3="2.36"/><close/><move x="18.76" y="21.74"/><line x="18.76" y="6.41"/><line x="21.4" y="6.41"/><line x="21.4" y="21.74"/><line x="18.76" y="21.74"/><close/><move x="8.93" y="12.7"/><line x="2.74" y="12.7"/><line x="2.74" y="18.99"/><line x="9" y="18.99"/><curve x1="11.64" y1="18.99" x2="12.83" y2="18.04" x3="12.83" y3="16.02"/><curve x1="12.83" y1="13.87" x2="11.7" y2="12.71" x3="8.94" y3="12.71"/><close/><move x="8.05" y="4.25"/><line x="2.75" y="4.25"/><line x="2.75" y="10.26"/><line x="8.06" y="10.26"/><curve x1="10.67" y1="10.26" x2="11.74" y2="9.06" x3="11.74" y3="7.13"/><curve x1="11.74" y1="5.17" x2="10.58" y2="4.25" x3="8.06" y3="4.25"/><close/><move x="0" y="21.76"/><line x="0" y="1.6"/><line x="8.43" y="1.6"/><curve x1="12.54" y1="1.6" x2="14.53" y2="3.62" x3="14.53" y3="6.88"/><curve x1="14.53" y1="9.3" x2="13.43" y2="10.81" x3="11.16" y3="11.36"/><curve x1="14.13" y1="11.85" x2="15.61" y2="13.48" x3="15.61" y3="16.33"/><curve x1="15.61" y1="19.55" x2="13.43" y2="21.76" x3="8.93" y3="21.76"/><line x="0" y="21.76"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_chat" w="60.36" h="22.06" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.338"/><constraint name="S" perimeter="0" x="0.5" y="0.986"/><constraint name="W" perimeter="0" x="0.001" y="0.5"/><constraint name="E" perimeter="0" x="0.932" y="0.5"/><constraint name="NE" perimeter="0" x="0.763" y="0.291"/><constraint name="SE" perimeter="0" x="0.704" y="0.991"/><constraint name="SW" perimeter="0" x="0.313" y="0.986"/><constraint name="NW" perimeter="0" x="0.313" y="0"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="56.28" y="16.99"/><curve x1="56.28" y1="18.34" x2="57.08" y2="19.26" x3="58.7" y3="19.26"/><curve x1="59.31" y1="19.26" x2="59.9" y2="19.14" x3="60.36" y3="19.05"/><line x="60.36" y="21.6"/><curve x1="59.9" y1="21.72" x2="59.38" y2="21.85" x3="58.58" y3="21.85"/><curve x1="55.3" y1="21.85" x2="53.7" y2="19.92" x3="53.7" y3="17.07"/><line x="53.7" y="8.88"/><line x="51.22" y="8.88"/><line x="51.22" y="6.41"/><line x="53.7" y="6.41"/><line x="53.7" y="3.16"/><line x="56.28" y="3.16"/><line x="56.28" y="6.41"/><line x="60.36" y="6.41"/><line x="60.36" y="8.86"/><line x="56.28" y="8.86"/><line x="56.28" y="16.99"/><close/><move x="37.34" y="14.08"/><curve x1="37.34" y1="17.76" x2="38.81" y2="19.6" x3="41.54" y3="19.6"/><curve x1="43.9" y1="19.6" x2="46.02" y2="18.1" x3="46.02" y3="14.69"/><line x="46.02" y="13.46"/><curve x1="46.02" y1="10.06" x2="44.09" y2="8.55" x3="41.85" y3="8.55"/><curve x1="38.88" y1="8.55" x2="37.34" y2="10.51" x3="37.34" y3="14.07"/><close/><move x="46.02" y="21.74"/><line x="46.02" y="18.98"/><curve x1="45.04" y1="21" x2="43.2" y2="22.05" x3="40.84" y3="22.05"/><curve x1="36.76" y1="22.05" x2="34.71" y2="18.59" x3="34.71" y3="14.08"/><curve x1="34.71" y1="9.76" x2="36.86" y2="6.11" x3="41.15" y3="6.11"/><curve x1="43.39" y1="6.11" x2="45.11" y2="7.12" x3="46.03" y3="9.12"/><line x="46.03" y="6.41"/><line x="48.67" y="6.41"/><line x="48.67" y="21.74"/><line x="46.02" y="21.74"/><close/><move x="31.92" y="12.76"/><line x="31.92" y="21.75"/><line x="29.28" y="21.75"/><line x="29.28" y="13.23"/><curve x1="29.28" y1="10.07" x2="28.18" y2="8.51" x3="25.66" y3="8.51"/><curve x1="23.21" y1="8.51" x2="21.52" y2="10.14" x3="21.52" y3="13.23"/><line x="21.52" y="21.76"/><line x="18.88" y="21.76"/><line x="18.88" y="0"/><line x="21.52" y="0"/><line x="21.52" y="8.95"/><curve x1="22.53" y1="7.14" x2="24.37" y2="6.1" x3="26.58" y3="6.1"/><curve x1="30.02" y1="6.1" x2="31.92" y2="8.43" x3="31.92" y3="12.76"/><close/><move x="15.7" y="18.19"/><line x="15.7" y="20.86"/><curve x1="14.44" y1="21.69" x2="12.45" y2="22.06" x3="10.36" y3="22.06"/><curve x1="3.74" y1="22.06" x2="0" y2="18.07" x3="0" y3="11.73"/><curve x1="0" y1="5.6" x2="3.74" y2="1.3" x3="10.3" y3="1.3"/><curve x1="12.26" y1="1.3" x2="14.23" y2="1.67" x3="15.67" y3="2.71"/><line x="15.67" y="5.38"/><curve x1="14.23" y1="4.46" x2="12.63" y2="3.97" x3="10.3" y3="3.97"/><curve x1="5.58" y1="3.97" x2="2.76" y2="7.1" x3="2.76" y3="11.73"/><curve x1="2.76" y1="16.36" x2="5.67" y2="19.43" x3="10.46" y3="19.43"/><curve x1="12.58" y1="19.43" x2="14.23" y2="18.94" x3="15.7" y3="18.2"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_company_hub" w="95.99" h="13.24" aspect="fixed" strokewidth="inherit"><connections><constraint name="W" perimeter="0" x="0.001" y="0.5"/><constraint name="E" perimeter="0" x="1" y="0.5"/><constraint name="NE" perimeter="0" x="0.794" y="0.01"/><constraint name="SW" perimeter="0" x="0.246" y="0.779"/><constraint name="NW" perimeter="0" x="0.234" y="0.203"/></connections><foreground><path><move x="92.85" y="10.45"/><quad x1="92.21" y1="10.45" x2="91.78" y2="10.24"/><arc rx="2.3" ry="2.3" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="91.08" y="9.71"/><arc rx="3" ry="3" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="90.68" y="9.1"/><line x="90.58" y="9.1"/><line x="90.58" y="10.32"/><line x="88.69" y="10.32"/><line x="88.69" y="0.13"/><line x="90.62" y="0.13"/><line x="90.62" y="3.95"/><line x="90.69" y="3.95"/><arc rx="3" ry="3" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="91.09" y="3.34"/><quad x1="91.35" y1="3.02" x2="91.78" y2="2.8"/><quad x1="92.21" y1="2.58" x2="92.87" y2="2.58"/><quad x1="93.74" y1="2.58" x2="94.44" y2="3.02"/><quad x1="95.15" y1="3.46" x2="95.57" y2="4.34"/><quad x1="95.99" y1="5.21" x2="95.99" y2="6.51"/><quad x1="95.99" y1="7.77" x2="95.58" y2="8.66"/><quad x1="95.17" y1="9.53" x2="94.46" y2="9.99"/><arc rx="2.87" ry="2.87" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="92.86" y="10.45"/><close/><move x="92.3" y="8.9"/><quad x1="92.87" y1="8.9" x2="93.25" y2="8.59"/><arc rx="1.9" ry="1.9" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="93.82" y="7.74"/><quad x1="94.02" y1="7.2" x2="94.02" y2="6.51"/><quad x1="94.02" y1="5.82" x2="93.82" y2="5.29"/><arc rx="1.8" ry="1.8" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="93.25" y="4.46"/><quad x1="92.87" y1="4.15" x2="92.3" y2="4.15"/><quad x1="91.75" y1="4.15" x2="91.36" y2="4.44"/><quad x1="90.98" y1="4.73" x2="90.78" y2="5.27"/><quad x1="90.58" y1="5.8" x2="90.58" y2="6.51"/><quad x1="90.58" y1="7.22" x2="90.78" y2="7.76"/><quad x1="90.99" y1="8.3" x2="91.37" y2="8.6"/><quad x1="91.76" y1="8.9" x2="92.31" y2="8.9"/><close/><move x="82.66" y="10.42"/><quad x1="81.87" y1="10.42" x2="81.27" y2="10.08"/><arc rx="2.34" ry="2.34" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="80.35" y="9.1"/><quad x1="80.02" y1="8.45" x2="80.02" y2="7.55"/><line x="80.02" y="2.69"/><line x="81.95" y="2.69"/><line x="81.95" y="7.23"/><quad x1="81.95" y1="7.98" x2="82.33" y2="8.39"/><quad x1="82.71" y1="8.8" x2="83.38" y2="8.81"/><quad x1="83.84" y1="8.81" x2="84.19" y2="8.62"/><arc rx="1.4" ry="1.4" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="84.74" y="8.05"/><quad x1="84.94" y1="7.67" x2="84.94" y2="7.15"/><line x="84.94" y="2.7"/><line x="86.87" y="2.7"/><line x="86.87" y="10.32"/><line x="85.05" y="10.32"/><line x="85.03" y="8.42"/><line x="85.15" y="8.42"/><quad x1="84.84" y1="9.4" x2="84.22" y2="9.91"/><quad x1="83.6" y1="10.42" x2="82.66" y2="10.42"/><close/><move x="69.65" y="10.32"/><line x="69.65" y="0.13"/><line x="71.61" y="0.13"/><line x="71.61" y="4.29"/><line x="76.19" y="4.29"/><line x="76.19" y="0.13"/><line x="78.16" y="0.13"/><line x="78.16" y="10.32"/><line x="76.19" y="10.32"/><line x="76.19" y="5.93"/><line x="71.61" y="5.93"/><line x="71.61" y="10.32"/><line x="69.65" y="10.32"/><close/><move x="57.76" y="13.03"/><line x="58.21" y="11.56"/><line x="58.44" y="11.62"/><quad x1="58.85" y1="11.73" x2="59.17" y2="11.68"/><arc rx="0.83" ry="0.83" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="59.69" y="11.41"/><quad x1="59.89" y1="11.19" x2="59.96" y2="10.79"/><line x="60.04" y="10.35"/><line x="57.16" y="2.68"/><line x="59.2" y="2.68"/><line x="60.54" y="6.73"/><quad x1="60.78" y1="7.48" x2="60.93" y2="8.22"/><quad x1="61.09" y1="8.97" x2="61.27" y2="9.76"/><line x="60.8" y="9.76"/><line x="61.17" y="8.22"/><quad x1="61.35" y1="7.47" x2="61.6" y2="6.73"/><line x="63" y="2.68"/><line x="65.02" y="2.68"/><line x="61.76" y="11.26"/><quad x1="61.53" y1="11.88" x2="61.17" y2="12.32"/><quad x1="60.82" y1="12.76" x2="60.29" y2="13"/><quad x1="59.77" y1="13.24" x2="59.04" y2="13.24"/><quad x1="58.64" y1="13.24" x2="58.3" y2="13.18"/><arc rx="2.5" ry="2.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="57.77" y="13.04"/><close/><move x="51.33" y="5.87"/><line x="51.33" y="10.32"/><line x="49.4" y="10.32"/><line x="49.4" y="2.68"/><line x="51.22" y="2.68"/><line x="51.26" y="4.58"/><line x="51.13" y="4.58"/><quad x1="51.44" y1="3.61" x2="52.05" y2="3.1"/><quad x1="52.67" y1="2.59" x2="53.62" y2="2.59"/><quad x1="54.41" y1="2.59" x2="54.99" y2="2.93"/><quad x1="55.58" y1="3.27" x2="55.91" y2="3.91"/><quad x1="56.24" y1="4.55" x2="56.24" y2="5.46"/><line x="56.24" y="10.32"/><line x="54.32" y="10.32"/><line x="54.32" y="5.78"/><quad x1="54.32" y1="5.04" x2="53.94" y2="4.62"/><quad x1="53.56" y1="4.2" x2="52.89" y2="4.2"/><quad x1="52.44" y1="4.2" x2="52.08" y2="4.4"/><arc rx="1.34" ry="1.34" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="51.53" y="4.97"/><quad x1="51.33" y1="5.34" x2="51.33" y2="5.87"/><close/><move x="43.41" y="10.45"/><arc rx="2.9" ry="2.9" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="41.82" y="9.99"/><quad x1="41.12" y1="9.53" x2="40.7" y2="8.66"/><quad x1="40.29" y1="7.78" x2="40.29" y2="6.51"/><quad x1="40.29" y1="5.22" x2="40.71" y2="4.34"/><quad x1="41.13" y1="3.47" x2="41.84" y2="3.02"/><arc rx="2.9" ry="2.9" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="43.42" y="2.58"/><quad x1="44.08" y1="2.58" x2="44.51" y2="2.81"/><quad x1="44.94" y1="3.03" x2="45.2" y2="3.35"/><quad x1="45.46" y1="3.67" x2="45.6" y2="3.96"/><line x="45.68" y="3.96"/><line x="45.68" y="2.68"/><line x="47.59" y="2.68"/><line x="47.59" y="10.32"/><line x="45.69" y="10.32"/><line x="45.69" y="9.1"/><line x="45.61" y="9.1"/><arc rx="2.6" ry="2.6" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="45.2" y="9.71"/><quad x1="44.93" y1="10.03" x2="44.5" y2="10.24"/><quad x1="44.07" y1="10.45" x2="43.42" y2="10.45"/><close/><move x="43.99" y="8.9"/><quad x1="44.54" y1="8.9" x2="44.93" y2="8.6"/><quad x1="45.31" y1="8.3" x2="45.51" y2="7.76"/><quad x1="45.72" y1="7.22" x2="45.72" y2="6.51"/><quad x1="45.72" y1="5.79" x2="45.52" y2="5.26"/><quad x1="45.32" y1="4.73" x2="44.94" y2="4.43"/><quad x1="44.56" y1="4.14" x2="44" y2="4.14"/><quad x1="43.43" y1="4.14" x2="43.04" y2="4.44"/><arc rx="1.85" ry="1.85" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="42.46" y="5.27"/><arc rx="3.6" ry="3.6" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="42.27" y="6.5"/><quad x1="42.27" y1="7.19" x2="42.47" y2="7.73"/><quad x1="42.67" y1="8.27" x2="43.05" y2="8.58"/><quad x1="43.44" y1="8.89" x2="44" y2="8.89"/><close/><move x="31.82" y="13.18"/><line x="31.82" y="2.68"/><line x="33.71" y="2.68"/><line x="33.71" y="3.96"/><line x="33.81" y="3.96"/><quad x1="33.95" y1="3.67" x2="34.21" y2="3.35"/><quad x1="34.47" y1="3.03" x2="34.9" y2="2.81"/><quad x1="35.33" y1="2.59" x2="35.99" y2="2.59"/><quad x1="36.86" y1="2.59" x2="37.56" y2="3.03"/><quad x1="38.27" y1="3.47" x2="38.69" y2="4.35"/><quad x1="39.11" y1="5.22" x2="39.11" y2="6.52"/><quad x1="39.11" y1="7.78" x2="38.7" y2="8.67"/><quad x1="38.29" y1="9.54" x2="37.58" y2="10"/><arc rx="2.87" ry="2.87" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="35.98" y="10.46"/><quad x1="35.34" y1="10.46" x2="34.91" y2="10.25"/><arc rx="2.3" ry="2.3" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="34.21" y="9.72"/><arc rx="3" ry="3" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="33.81" y="9.11"/><line x="33.74" y="9.11"/><line x="33.74" y="13.18"/><line x="31.82" y="13.18"/><close/><move x="35.43" y="8.9"/><quad x1="36" y1="8.9" x2="36.38" y2="8.59"/><quad x1="36.76" y1="8.28" x2="36.95" y2="7.74"/><quad x1="37.15" y1="7.2" x2="37.15" y2="6.51"/><quad x1="37.15" y1="5.82" x2="36.95" y2="5.29"/><arc rx="1.8" ry="1.8" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="36.38" y="4.46"/><quad x1="36" y1="4.15" x2="35.43" y2="4.15"/><quad x1="34.87" y1="4.15" x2="34.49" y2="4.44"/><quad x1="34.11" y1="4.73" x2="33.91" y2="5.27"/><quad x1="33.71" y1="5.8" x2="33.71" y2="6.51"/><quad x1="33.71" y1="7.22" x2="33.91" y2="7.76"/><quad x1="34.12" y1="8.3" x2="34.5" y2="8.6"/><quad x1="34.89" y1="8.9" x2="35.44" y2="8.9"/><close/><move x="19.12" y="10.32"/><line x="19.12" y="2.68"/><line x="20.92" y="2.68"/><line x="21" y="4.55"/><line x="20.86" y="4.55"/><quad x1="21.03" y1="3.85" x2="21.37" y2="3.42"/><quad x1="21.72" y1="2.98" x2="22.18" y2="2.78"/><quad x1="22.65" y1="2.57" x2="23.15" y2="2.57"/><quad x1="23.98" y1="2.57" x2="24.48" y2="3.09"/><quad x1="24.99" y1="3.61" x2="25.21" y2="4.66"/><line x="24.99" y="4.66"/><quad x1="25.15" y1="3.95" x2="25.54" y2="3.48"/><quad x1="25.93" y1="3.02" x2="26.45" y2="2.79"/><quad x1="26.98" y1="2.56" x2="27.57" y2="2.56"/><quad x1="28.26" y1="2.56" x2="28.81" y2="2.86"/><quad x1="29.37" y1="3.16" x2="29.68" y2="3.74"/><quad x1="30" y1="4.32" x2="30" y2="5.16"/><line x="30" y="10.32"/><line x="28.08" y="10.32"/><line x="28.08" y="5.5"/><quad x1="28.08" y1="4.83" x2="27.71" y2="4.5"/><arc rx="1.32" ry="1.32" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="26.82" y="4.18"/><quad x1="26.42" y1="4.18" x2="26.12" y2="4.36"/><arc rx="1.2" ry="1.2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="25.66" y="4.85"/><quad x1="25.5" y1="5.17" x2="25.5" y2="5.58"/><line x="25.5" y="10.32"/><line x="23.63" y="10.32"/><line x="23.63" y="5.43"/><quad x1="23.63" y1="4.86" x2="23.28" y2="4.52"/><quad x1="22.94" y1="4.18" x2="22.39" y2="4.18"/><quad x1="22.02" y1="4.18" x2="21.71" y2="4.35"/><arc rx="1.2" ry="1.2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="21.22" y="4.86"/><quad x1="21.04" y1="5.19" x2="21.04" y2="5.67"/><line x="21.04" y="10.32"/><line x="19.12" y="10.32"/><close/><move x="13.94" y="10.47"/><quad x1="12.81" y1="10.47" x2="11.97" y2="9.98"/><arc rx="3.3" ry="3.3" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="10.69" y="8.6"/><quad x1="10.24" y1="7.71" x2="10.24" y2="6.54"/><quad x1="10.24" y1="5.36" x2="10.69" y2="4.47"/><quad x1="11.14" y1="3.57" x2="11.97" y2="3.08"/><quad x1="12.8" y1="2.59" x2="13.94" y2="2.59"/><quad x1="15.08" y1="2.59" x2="15.9" y2="3.08"/><quad x1="16.73" y1="3.57" x2="17.19" y2="4.47"/><quad x1="17.64" y1="5.36" x2="17.64" y2="6.54"/><quad x1="17.64" y1="7.72" x2="17.19" y2="8.61"/><quad x1="16.74" y1="9.5" x2="15.9" y2="9.99"/><quad x1="15.07" y1="10.48" x2="13.94" y2="10.48"/><close/><move x="13.94" y="8.95"/><quad x1="14.52" y1="8.95" x2="14.91" y2="8.64"/><quad x1="15.3" y1="8.32" x2="15.49" y2="7.77"/><arc rx="3.7" ry="3.7" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="15.68" y="6.54"/><arc rx="3.7" ry="3.7" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="15.49" y="5.31"/><arc rx="1.87" ry="1.87" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="14.91" y="4.45"/><quad x1="14.52" y1="4.13" x2="13.94" y2="4.13"/><quad x1="13.36" y1="4.13" x2="12.97" y2="4.45"/><quad x1="12.59" y1="4.77" x2="12.39" y2="5.31"/><quad x1="12.2" y1="5.85" x2="12.2" y2="6.54"/><quad x1="12.2" y1="7.22" x2="12.39" y2="7.77"/><quad x1="12.59" y1="8.32" x2="12.97" y2="8.64"/><quad x1="13.36" y1="8.95" x2="13.94" y2="8.95"/><close/><move x="4.69" y="10.46"/><quad x1="3.34" y1="10.46" x2="2.28" y2="9.84"/><quad x1="1.22" y1="9.22" x2="0.61" y2="8.05"/><quad x1="0" y1="6.88" x2="0" y2="5.23"/><quad x1="0" y1="3.58" x2="0.62" y2="2.41"/><quad x1="1.24" y1="1.23" x2="2.3" y2="0.62"/><quad x1="3.37" y1="0" x2="4.7" y2="0"/><quad x1="5.55" y1="0" x2="6.29" y2="0.24"/><quad x1="7.04" y1="0.48" x2="7.61" y2="0.94"/><quad x1="8.18" y1="1.4" x2="8.55" y2="2.06"/><quad x1="8.92" y1="2.72" x2="9.04" y2="3.57"/><line x="7.06" y="3.57"/><arc rx="2.2" ry="2.2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="6.78" y="2.8"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="6.27" y="2.23"/><quad x1="5.97" y1="1.99" x2="5.58" y2="1.87"/><arc rx="2.8" ry="2.8" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="4.75" y="1.75"/><quad x1="3.94" y1="1.75" x2="3.32" y2="2.16"/><quad x1="2.7" y1="2.56" x2="2.35" y2="3.34"/><quad x1="2.01" y1="4.12" x2="2.01" y2="5.23"/><quad x1="2.01" y1="6.36" x2="2.36" y2="7.14"/><quad x1="2.71" y1="7.91" x2="3.32" y2="8.31"/><arc rx="2.6" ry="2.6" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="4.75" y="8.71"/><quad x1="5.2" y1="8.71" x2="5.58" y2="8.59"/><quad x1="5.97" y1="8.47" x2="6.28" y2="8.23"/><quad x1="6.6" y1="7.99" x2="6.8" y2="7.66"/><quad x1="7.01" y1="7.32" x2="7.09" y2="6.89"/><line x="9.07" y="6.89"/><quad x1="8.98" y1="7.61" x2="8.64" y2="8.25"/><arc rx="4.2" ry="4.2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="7.74" y="9.4"/><arc rx="4.2" ry="4.2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="6.42" y="10.19"/><quad x1="5.66" y1="10.47" x2="4.73" y2="10.47"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_compass" w="120.56" h="26.44" aspect="fixed" strokewidth="inherit"><connections><constraint name="W" perimeter="0" x="0.003" y="0.5"/><constraint name="E" perimeter="0" x="0.99" y="0.5"/><constraint name="NE" perimeter="0" x="0.766" y="0.194"/><constraint name="SE" perimeter="0" x="0.766" y="0.773"/><constraint name="SW" perimeter="0" x="0.22" y="0.779"/><constraint name="NW" perimeter="0" x="0.207" y="0.182"/></connections><foreground><path><move x="120.56" y="16.27"/><curve x1="120.56" y1="18.82" x2="118.9" y2="20.75" x3="114.8" y3="20.75"/><curve x1="112.5" y1="20.75" x2="110.63" y2="20.23" x3="109.46" y3="19.62"/><line x="109.46" y="16.83"/><curve x1="110.78" y1="17.6" x2="112.99" y2="18.33" x3="114.92" y3="18.33"/><curve x1="116.94" y1="18.33" x2="117.99" y2="17.5" x3="117.99" y3="16.31"/><curve x1="117.99" y1="15.15" x2="117.1" y2="14.47" x3="114.19" y3="13.76"/><curve x1="110.79" y1="12.93" x2="109.34" y2="11.61" x3="109.34" y3="9.1"/><curve x1="109.34" y1="6.43" x2="111.4" y2="4.81" x3="114.89" y3="4.81"/><curve x1="116.88" y1="4.81" x2="118.69" y2="5.3" x3="119.83" y3="5.91"/><line x="119.83" y="8.64"/><curve x1="117.99" y1="7.72" x2="116.49" y2="7.23" x3="114.86" y3="7.23"/><curve x1="112.93" y1="7.23" x2="111.89" y2="7.91" x3="111.89" y3="9.1"/><curve x1="111.89" y1="10.17" x2="112.63" y2="10.85" x3="115.45" y3="11.52"/><curve x1="118.85" y1="12.35" x2="120.57" y2="13.61" x3="120.57" y3="16.27"/><close/><move x="106.94" y="16.27"/><curve x1="106.94" y1="18.82" x2="105.28" y2="20.75" x3="101.18" y3="20.75"/><curve x1="98.88" y1="20.75" x2="97.01" y2="20.23" x3="95.84" y3="19.62"/><line x="95.84" y="16.83"/><curve x1="97.16" y1="17.6" x2="99.37" y2="18.33" x3="101.3" y3="18.33"/><curve x1="103.32" y1="18.33" x2="104.37" y2="17.5" x3="104.37" y3="16.31"/><curve x1="104.37" y1="15.15" x2="103.48" y2="14.47" x3="100.57" y3="13.76"/><curve x1="97.17" y1="12.93" x2="95.73" y2="11.61" x3="95.73" y3="9.1"/><curve x1="95.73" y1="6.43" x2="97.79" y2="4.81" x3="101.28" y3="4.81"/><curve x1="103.27" y1="4.81" x2="105.08" y2="5.3" x3="106.22" y3="5.91"/><line x="106.22" y="8.64"/><curve x1="104.38" y1="7.72" x2="102.88" y2="7.23" x3="101.25" y3="7.23"/><curve x1="99.32" y1="7.23" x2="98.28" y2="7.91" x3="98.28" y3="9.1"/><curve x1="98.28" y1="10.17" x2="99.02" y2="10.85" x3="101.84" y3="11.52"/><curve x1="105.24" y1="12.35" x2="106.96" y2="13.61" x3="106.96" y3="16.27"/><close/><move x="81.06" y="12.78"/><curve x1="81.06" y1="16.46" x2="82.53" y2="18.3" x3="85.26" y3="18.3"/><curve x1="87.62" y1="18.3" x2="89.74" y2="16.8" x3="89.74" y3="13.39"/><line x="89.74" y="12.16"/><curve x1="89.74" y1="8.76" x2="87.81" y2="7.25" x3="85.57" y3="7.25"/><curve x1="82.6" y1="7.25" x2="81.06" y2="9.21" x3="81.06" y3="12.77"/><close/><move x="89.74" y="20.44"/><line x="89.74" y="17.68"/><curve x1="88.76" y1="19.7" x2="86.92" y2="20.75" x3="84.56" y3="20.75"/><curve x1="80.48" y1="20.75" x2="78.43" y2="17.29" x3="78.43" y3="12.78"/><curve x1="78.43" y1="8.46" x2="80.58" y2="4.81" x3="84.87" y3="4.81"/><curve x1="87.11" y1="4.81" x2="88.83" y2="5.82" x3="89.75" y3="7.82"/><line x="89.75" y="5.12"/><line x="92.39" y="5.12"/><line x="92.39" y="20.45"/><line x="89.74" y="20.44"/><close/><move x="73.65" y="12.78"/><curve x1="73.65" y1="9.1" x2="72.18" y2="7.26" x3="69.45" y3="7.26"/><curve x1="67.09" y1="7.26" x2="64.97" y2="8.76" x3="64.97" y3="12.17"/><line x="64.97" y="13.4"/><curve x1="64.97" y1="16.8" x2="66.9" y2="18.31" x3="69.14" y3="18.31"/><curve x1="72.12" y1="18.31" x2="73.65" y2="16.35" x3="73.65" y3="12.79"/><close/><move x="69.85" y="20.76"/><curve x1="67.61" y1="20.76" x2="65.89" y2="19.75" x3="64.97" y3="17.76"/><line x="64.97" y="26.44"/><line x="62.33" y="26.44"/><line x="62.33" y="5.11"/><line x="64.97" y="5.11"/><line x="64.97" y="7.87"/><curve x1="65.95" y1="5.85" x2="67.79" y2="4.8" x3="70.15" y3="4.8"/><curve x1="74.23" y1="4.8" x2="76.28" y2="8.27" x3="76.28" y3="12.77"/><curve x1="76.28" y1="17.09" x2="74.13" y2="20.74" x3="69.84" y3="20.74"/><close/><move x="48.27" y="11.92"/><line x="48.27" y="20.45"/><line x="45.63" y="20.45"/><line x="45.63" y="11.19"/><curve x1="45.63" y1="8.43" x2="44.53" y2="7.2" x3="42.01" y3="7.2"/><curve x1="39.56" y1="7.2" x2="37.87" y2="8.83" x3="37.87" y3="11.92"/><line x="37.87" y="20.45"/><line x="35.23" y="20.45"/><line x="35.23" y="5.11"/><line x="37.87" y="5.11"/><line x="37.87" y="7.62"/><curve x1="38.85" y1="5.81" x2="40.66" y2="4.8" x3="42.72" y3="4.8"/><curve x1="45.33" y1="4.8" x2="47.11" y2="6.12" x3="47.87" y3="8.54"/><curve x1="48.73" y1="6.18" x2="50.78" y2="4.8" x3="53.33" y3="4.8"/><curve x1="56.76" y1="4.8" x2="58.67" y2="7.13" x3="58.67" y3="11.46"/><line x="58.67" y="20.45"/><line x="56.03" y="20.45"/><line x="56.03" y="11.92"/><curve x1="56.03" y1="8.76" x2="54.93" y2="7.2" x3="52.41" y3="7.2"/><curve x1="49.96" y1="7.2" x2="48.27" y2="8.83" x3="48.27" y3="11.92"/><close/><move x="24.93" y="20.75"/><curve x1="20.33" y1="20.75" x2="17.63" y2="17.35" x3="17.63" y3="12.75"/><curve x1="17.63" y1="8.15" x2="20.33" y2="4.81" x3="24.93" y3="4.81"/><curve x1="29.5" y1="4.81" x2="32.17" y2="8.15" x3="32.17" y3="12.75"/><curve x1="32.17" y1="17.35" x2="29.5" y2="20.75" x3="24.93" y3="20.75"/><close/><move x="24.93" y="7.26"/><curve x1="21.65" y1="7.26" x2="20.21" y2="9.84" x3="20.21" y3="12.75"/><curve x1="20.21" y1="15.66" x2="21.65" y2="18.3" x3="24.93" y3="18.3"/><curve x1="28.18" y1="18.3" x2="29.59" y2="15.66" x3="29.59" y3="12.75"/><curve x1="29.59" y1="9.84" x2="28.18" y2="7.26" x3="24.93" y3="7.26"/><close/><move x="15.7" y="16.89"/><line x="15.7" y="19.56"/><curve x1="14.44" y1="20.39" x2="12.45" y2="20.76" x3="10.36" y3="20.76"/><curve x1="3.74" y1="20.76" x2="0" y2="16.77" x3="0" y3="10.43"/><curve x1="0" y1="4.3" x2="3.74" y2="0" x3="10.3" y3="0"/><curve x1="12.26" y1="0" x2="14.23" y2="0.37" x3="15.67" y3="1.41"/><line x="15.67" y="4.08"/><curve x1="14.23" y1="3.16" x2="12.63" y2="2.67" x3="10.3" y3="2.67"/><curve x1="5.58" y1="2.67" x2="2.76" y2="5.8" x3="2.76" y3="10.43"/><curve x1="2.76" y1="15.06" x2="5.67" y2="18.13" x3="10.46" y3="18.13"/><curve x1="12.58" y1="18.13" x2="14.23" y2="17.64" x3="15.7" y3="16.9"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_confluence" w="146.68" h="22.12" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.831"/><constraint name="W" perimeter="0" x="0" y="0.5"/><constraint name="E" perimeter="0" x="0.998" y="0.5"/><constraint name="NE" perimeter="0" x="0.754" y="0.279"/><constraint name="SE" perimeter="0" x="0.792" y="0.986"/><constraint name="SW" perimeter="0" x="0.24" y="0.986"/><constraint name="NW" perimeter="0" x="0.018" y="0.193"/></connections><foreground><path><move x="139.93" y="8.56"/><curve x1="137.14" y1="8.56" x2="135.73" y2="10.37" x3="135.45" y3="13.04"/><line x="144.01" y="13.04"/><curve x1="143.86" y1="10.19" x2="142.57" y2="8.56" x3="139.93" y3="8.56"/><close/><move x="145.82" y="21.2"/><curve x1="144.56" y1="21.88" x2="142.63" y2="22.12" x3="141.07" y3="22.12"/><curve x1="135.34" y1="22.12" x2="132.82" y2="18.81" x3="132.82" y3="14.12"/><curve x1="132.82" y1="9.49" x2="135.4" y2="6.18" x3="140.06" y3="6.18"/><curve x1="144.78" y1="6.18" x2="146.68" y2="9.46" x3="146.68" y3="14.12"/><line x="146.68" y="15.32"/><line x="135.48" y="15.32"/><curve x1="135.85" y1="17.93" x2="137.54" y2="19.61" x3="141.15" y3="19.61"/><curve x1="142.93" y1="19.61" x2="144.43" y2="19.27" x3="145.81" y3="18.78"/><line x="145.82" y="21.2"/><close/><move x="130.72" y="19.04"/><line x="130.72" y="21.4"/><curve x1="129.8" y1="21.89" x2="128.39" y2="22.11" x3="126.98" y3="22.11"/><curve x1="121.52" y1="22.11" x2="118.98" y2="18.8" x3="118.98" y3="14.11"/><curve x1="118.98" y1="9.48" x2="121.53" y2="6.17" x3="126.98" y3="6.17"/><curve x1="128.36" y1="6.17" x2="129.43" y2="6.35" x3="130.63" y3="6.91"/><line x="130.63" y="9.36"/><curve x1="129.65" y1="8.9" x2="128.61" y2="8.62" x3="127.17" y3="8.62"/><curve x1="123.18" y1="8.62" x2="121.56" y2="11.13" x3="121.56" y3="14.11"/><curve x1="121.56" y1="17.09" x2="123.22" y2="19.6" x3="127.23" y3="19.6"/><curve x1="128.79" y1="19.6" x2="129.78" y2="19.39" x3="130.73" y3="19.05"/><close/><move x="116.22" y="12.82"/><line x="116.22" y="21.81"/><line x="113.58" y="21.81"/><line x="113.58" y="12.55"/><curve x1="113.58" y1="9.79" x2="112.48" y2="8.56" x3="109.96" y3="8.56"/><curve x1="107.51" y1="8.56" x2="105.82" y2="10.19" x3="105.82" y3="13.28"/><line x="105.82" y="21.81"/><line x="103.18" y="21.81"/><line x="103.18" y="6.47"/><line x="105.82" y="6.47"/><line x="105.82" y="8.99"/><curve x1="106.8" y1="7.18" x2="108.61" y2="6.17" x3="110.67" y3="6.17"/><curve x1="114.2" y1="6.17" x2="116.22" y2="8.59" x3="116.22" y3="12.83"/><close/><move x="93.3" y="8.56"/><curve x1="90.51" y1="8.56" x2="89.1" y2="10.37" x3="88.82" y3="13.04"/><line x="97.38" y="13.04"/><curve x1="97.23" y1="10.19" x2="95.94" y2="8.56" x3="93.3" y3="8.56"/><close/><move x="99.19" y="21.2"/><curve x1="97.93" y1="21.88" x2="96" y2="22.12" x3="94.44" y3="22.12"/><curve x1="88.71" y1="22.12" x2="86.19" y2="18.81" x3="86.19" y3="14.12"/><curve x1="86.19" y1="9.49" x2="88.77" y2="6.18" x3="93.43" y3="6.18"/><curve x1="98.15" y1="6.18" x2="100.05" y2="9.46" x3="100.05" y3="14.12"/><line x="100.05" y="15.32"/><line x="88.86" y="15.32"/><curve x1="89.23" y1="17.93" x2="90.92" y2="19.61" x3="94.53" y3="19.61"/><curve x1="96.31" y1="19.61" x2="97.81" y2="19.27" x3="99.19" y3="18.78"/><line x="99.19" y="21.2"/><close/><move x="70.09" y="15.46"/><line x="70.09" y="6.47"/><line x="72.73" y="6.47"/><line x="72.73" y="15.73"/><curve x1="72.73" y1="18.49" x2="73.83" y2="19.72" x3="76.35" y3="19.72"/><curve x1="78.8" y1="19.72" x2="80.49" y2="18.1" x3="80.49" y3="15"/><line x="80.49" y="6.47"/><line x="83.13" y="6.47"/><line x="83.13" y="21.8"/><line x="80.49" y="21.8"/><line x="80.49" y="19.29"/><curve x1="79.51" y1="21.1" x2="77.7" y2="22.11" x3="75.65" y3="22.11"/><curve x1="72.12" y1="22.11" x2="70.1" y2="19.69" x3="70.1" y3="15.46"/><close/><move x="67.86" y="21.77"/><curve x1="67.65" y1="21.83" x2="67.19" y2="21.89" x3="66.51" y3="21.89"/><curve x1="64" y1="21.89" x2="62.4" y2="20.7" x3="62.4" y3="17.87"/><line x="62.4" y="0.06"/><line x="65.04" y="0.06"/><line x="65.04" y="17.57"/><curve x1="65.04" y1="18.95" x2="65.96" y2="19.44" x3="67.1" y3="19.44"/><curve x1="67.38" y1="19.44" x2="67.56" y2="19.44" x3="67.87" y3="19.41"/><line x="67.86" y="21.77"/><close/><move x="55.59" y="4.85"/><line x="55.59" y="6.47"/><line x="59.55" y="6.47"/><line x="59.55" y="8.92"/><line x="55.59" y="8.92"/><line x="55.59" y="21.8"/><line x="53.01" y="21.8"/><line x="53.01" y="8.92"/><line x="50.53" y="8.92"/><line x="50.53" y="6.47"/><line x="53.01" y="6.47"/><line x="53.01" y="4.78"/><curve x1="53.01" y1="1.93" x2="54.6" y2="0" x3="57.89" y3="0"/><curve x1="58.69" y1="0" x2="59.21" y2="0.12" x3="59.67" y3="0.25"/><line x="59.67" y="2.67"/><arc rx="8.7" ry="8.7" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="58.01" y="2.52"/><curve x1="56.39" y1="2.52" x2="55.59" y2="3.47" x3="55.59" y3="4.85"/><close/><move x="48.27" y="12.82"/><line x="48.27" y="21.81"/><line x="45.63" y="21.81"/><line x="45.63" y="12.55"/><curve x1="45.63" y1="9.79" x2="44.53" y2="8.56" x3="42.01" y3="8.56"/><curve x1="39.56" y1="8.56" x2="37.87" y2="10.19" x3="37.87" y3="13.28"/><line x="37.87" y="21.81"/><line x="35.23" y="21.81"/><line x="35.23" y="6.47"/><line x="37.87" y="6.47"/><line x="37.87" y="8.99"/><curve x1="38.85" y1="7.18" x2="40.66" y2="6.17" x3="42.72" y3="6.17"/><curve x1="46.25" y1="6.17" x2="48.27" y2="8.59" x3="48.27" y3="12.83"/><close/><move x="24.93" y="22.11"/><curve x1="20.33" y1="22.11" x2="17.63" y2="18.71" x3="17.63" y3="14.11"/><curve x1="17.63" y1="9.51" x2="20.33" y2="6.17" x3="24.93" y3="6.17"/><curve x1="29.5" y1="6.17" x2="32.17" y2="9.51" x3="32.17" y3="14.11"/><curve x1="32.17" y1="18.71" x2="29.5" y2="22.11" x3="24.93" y3="22.11"/><close/><move x="24.93" y="8.62"/><curve x1="21.65" y1="8.62" x2="20.21" y2="11.2" x3="20.21" y3="14.11"/><curve x1="20.21" y1="17.02" x2="21.65" y2="19.66" x3="24.93" y3="19.66"/><curve x1="28.18" y1="19.66" x2="29.59" y2="17.02" x3="29.59" y3="14.11"/><curve x1="29.59" y1="11.2" x2="28.18" y2="8.62" x3="24.93" y3="8.62"/><close/><move x="15.7" y="18.25"/><line x="15.7" y="20.92"/><curve x1="14.44" y1="21.75" x2="12.45" y2="22.12" x3="10.36" y3="22.12"/><curve x1="3.74" y1="22.12" x2="0" y2="18.13" x3="0" y3="11.79"/><curve x1="0" y1="5.66" x2="3.74" y2="1.36" x3="10.3" y3="1.36"/><curve x1="12.26" y1="1.36" x2="14.23" y2="1.73" x3="15.67" y3="2.77"/><line x="15.67" y="5.44"/><curve x1="14.23" y1="4.52" x2="12.63" y2="4.03" x3="10.3" y3="4.03"/><curve x1="5.58" y1="4.03" x2="2.76" y2="7.16" x3="2.76" y3="11.79"/><curve x1="2.76" y1="16.42" x2="5.67" y2="19.49" x3="10.46" y3="19.49"/><curve x1="12.58" y1="19.49" x2="14.23" y2="19" x3="15.7" y3="18.26"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_confluence_data_center" w="146.68" h="22.12" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.831"/><constraint name="W" perimeter="0" x="0" y="0.5"/><constraint name="E" perimeter="0" x="0.998" y="0.5"/><constraint name="NE" perimeter="0" x="0.754" y="0.279"/><constraint name="SE" perimeter="0" x="0.792" y="0.986"/><constraint name="SW" perimeter="0" x="0.24" y="0.986"/><constraint name="NW" perimeter="0" x="0.018" y="0.193"/></connections><foreground><path><move x="139.93" y="8.56"/><curve x1="137.14" y1="8.56" x2="135.73" y2="10.37" x3="135.45" y3="13.04"/><line x="144.01" y="13.04"/><curve x1="143.86" y1="10.19" x2="142.57" y2="8.56" x3="139.93" y3="8.56"/><close/><move x="145.82" y="21.2"/><curve x1="144.56" y1="21.88" x2="142.63" y2="22.12" x3="141.07" y3="22.12"/><curve x1="135.34" y1="22.12" x2="132.82" y2="18.81" x3="132.82" y3="14.12"/><curve x1="132.82" y1="9.49" x2="135.4" y2="6.18" x3="140.06" y3="6.18"/><curve x1="144.78" y1="6.18" x2="146.68" y2="9.46" x3="146.68" y3="14.12"/><line x="146.68" y="15.32"/><line x="135.48" y="15.32"/><curve x1="135.85" y1="17.93" x2="137.54" y2="19.61" x3="141.15" y3="19.61"/><curve x1="142.93" y1="19.61" x2="144.43" y2="19.27" x3="145.81" y3="18.78"/><line x="145.82" y="21.2"/><close/><move x="130.72" y="19.04"/><line x="130.72" y="21.4"/><curve x1="129.8" y1="21.89" x2="128.39" y2="22.11" x3="126.98" y3="22.11"/><curve x1="121.52" y1="22.11" x2="118.98" y2="18.8" x3="118.98" y3="14.11"/><curve x1="118.98" y1="9.48" x2="121.53" y2="6.17" x3="126.98" y3="6.17"/><curve x1="128.36" y1="6.17" x2="129.43" y2="6.35" x3="130.63" y3="6.91"/><line x="130.63" y="9.36"/><curve x1="129.65" y1="8.9" x2="128.61" y2="8.62" x3="127.16" y3="8.62"/><curve x1="123.17" y1="8.62" x2="121.55" y2="11.13" x3="121.55" y3="14.11"/><curve x1="121.55" y1="17.09" x2="123.21" y2="19.6" x3="127.22" y3="19.6"/><curve x1="128.78" y1="19.6" x2="129.77" y2="19.39" x3="130.72" y3="19.05"/><close/><move x="116.22" y="12.82"/><line x="116.22" y="21.81"/><line x="113.58" y="21.81"/><line x="113.58" y="12.55"/><curve x1="113.58" y1="9.79" x2="112.48" y2="8.56" x3="109.96" y3="8.56"/><curve x1="107.51" y1="8.56" x2="105.82" y2="10.19" x3="105.82" y3="13.28"/><line x="105.82" y="21.81"/><line x="103.18" y="21.81"/><line x="103.18" y="6.47"/><line x="105.82" y="6.47"/><line x="105.82" y="8.99"/><curve x1="106.8" y1="7.18" x2="108.61" y2="6.17" x3="110.67" y3="6.17"/><curve x1="114.2" y1="6.17" x2="116.22" y2="8.59" x3="116.22" y3="12.83"/><close/><move x="93.3" y="8.56"/><curve x1="90.51" y1="8.56" x2="89.1" y2="10.37" x3="88.82" y3="13.04"/><line x="97.38" y="13.04"/><curve x1="97.23" y1="10.19" x2="95.94" y2="8.56" x3="93.3" y3="8.56"/><close/><move x="99.19" y="21.2"/><curve x1="97.93" y1="21.88" x2="96" y2="22.12" x3="94.44" y3="22.12"/><curve x1="88.71" y1="22.12" x2="86.19" y2="18.81" x3="86.19" y3="14.12"/><curve x1="86.19" y1="9.49" x2="88.77" y2="6.18" x3="93.43" y3="6.18"/><curve x1="98.15" y1="6.18" x2="100.05" y2="9.46" x3="100.05" y3="14.12"/><line x="100.05" y="15.32"/><line x="88.86" y="15.32"/><curve x1="89.23" y1="17.93" x2="90.92" y2="19.61" x3="94.53" y3="19.61"/><curve x1="96.31" y1="19.61" x2="97.81" y2="19.27" x3="99.19" y3="18.78"/><line x="99.19" y="21.2"/><close/><move x="70.09" y="15.46"/><line x="70.09" y="6.47"/><line x="72.73" y="6.47"/><line x="72.73" y="15.73"/><curve x1="72.73" y1="18.49" x2="73.83" y2="19.72" x3="76.35" y3="19.72"/><curve x1="78.8" y1="19.72" x2="80.49" y2="18.1" x3="80.49" y3="15"/><line x="80.49" y="6.47"/><line x="83.13" y="6.47"/><line x="83.13" y="21.8"/><line x="80.49" y="21.8"/><line x="80.49" y="19.29"/><curve x1="79.51" y1="21.1" x2="77.7" y2="22.11" x3="75.64" y3="22.11"/><curve x1="72.11" y1="22.11" x2="70.09" y2="19.69" x3="70.09" y3="15.46"/><close/><move x="67.86" y="21.77"/><curve x1="67.65" y1="21.83" x2="67.19" y2="21.89" x3="66.51" y3="21.89"/><curve x1="64" y1="21.89" x2="62.4" y2="20.69" x3="62.4" y3="17.87"/><line x="62.4" y="0.06"/><line x="65.04" y="0.06"/><line x="65.04" y="17.57"/><curve x1="65.04" y1="18.95" x2="65.96" y2="19.44" x3="67.1" y3="19.44"/><curve x1="67.38" y1="19.44" x2="67.56" y2="19.44" x3="67.87" y3="19.41"/><line x="67.86" y="21.77"/><close/><move x="55.59" y="4.85"/><line x="55.59" y="6.47"/><line x="59.55" y="6.47"/><line x="59.55" y="8.92"/><line x="55.59" y="8.92"/><line x="55.59" y="21.8"/><line x="53.01" y="21.8"/><line x="53.01" y="8.92"/><line x="50.53" y="8.92"/><line x="50.53" y="6.47"/><line x="53.01" y="6.47"/><line x="53.01" y="4.78"/><curve x1="53.01" y1="1.93" x2="54.6" y2="0" x3="57.89" y3="0"/><curve x1="58.69" y1="0" x2="59.21" y2="0.12" x3="59.67" y3="0.25"/><line x="59.67" y="2.67"/><arc rx="8.7" ry="8.7" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="58.01" y="2.52"/><curve x1="56.39" y1="2.52" x2="55.59" y2="3.47" x3="55.59" y3="4.85"/><close/><move x="48.27" y="12.82"/><line x="48.27" y="21.81"/><line x="45.63" y="21.81"/><line x="45.63" y="12.55"/><curve x1="45.63" y1="9.79" x2="44.53" y2="8.56" x3="42.01" y3="8.56"/><curve x1="39.56" y1="8.56" x2="37.87" y2="10.19" x3="37.87" y3="13.28"/><line x="37.87" y="21.81"/><line x="35.23" y="21.81"/><line x="35.23" y="6.47"/><line x="37.87" y="6.47"/><line x="37.87" y="8.99"/><curve x1="38.85" y1="7.18" x2="40.66" y2="6.17" x3="42.72" y3="6.17"/><curve x1="46.25" y1="6.17" x2="48.27" y2="8.59" x3="48.27" y3="12.83"/><close/><move x="24.93" y="22.11"/><curve x1="20.33" y1="22.11" x2="17.63" y2="18.71" x3="17.63" y3="14.11"/><curve x1="17.63" y1="9.51" x2="20.33" y2="6.17" x3="24.93" y3="6.17"/><curve x1="29.5" y1="6.17" x2="32.17" y2="9.51" x3="32.17" y3="14.11"/><curve x1="32.17" y1="18.71" x2="29.5" y2="22.11" x3="24.93" y3="22.11"/><close/><move x="24.93" y="8.62"/><curve x1="21.65" y1="8.62" x2="20.21" y2="11.2" x3="20.21" y3="14.11"/><curve x1="20.21" y1="17.02" x2="21.65" y2="19.66" x3="24.93" y3="19.66"/><curve x1="28.18" y1="19.66" x2="29.59" y2="17.02" x3="29.59" y3="14.11"/><curve x1="29.59" y1="11.2" x2="28.18" y2="8.62" x3="24.93" y3="8.62"/><close/><move x="15.7" y="18.25"/><line x="15.7" y="20.92"/><curve x1="14.44" y1="21.75" x2="12.45" y2="22.12" x3="10.36" y3="22.12"/><curve x1="3.74" y1="22.12" x2="0" y2="18.13" x3="0" y3="11.79"/><curve x1="0" y1="5.66" x2="3.74" y2="1.36" x3="10.3" y3="1.36"/><curve x1="12.26" y1="1.36" x2="14.23" y2="1.73" x3="15.67" y3="2.77"/><line x="15.67" y="5.44"/><curve x1="14.23" y1="4.52" x2="12.63" y2="4.03" x3="10.3" y3="4.03"/><curve x1="5.58" y1="4.03" x2="2.76" y2="7.16" x3="2.76" y3="11.79"/><curve x1="2.76" y1="16.42" x2="5.67" y2="19.49" x3="10.46" y3="19.49"/><curve x1="12.58" y1="19.49" x2="14.23" y2="19" x3="15.7" y3="18.26"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_crowd" w="84.07" h="22.06" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.503"/><constraint name="S" perimeter="0" x="0.5" y="0.771"/><constraint name="W" perimeter="0" x="0.001" y="0.5"/><constraint name="E" perimeter="0" x="1" y="0.5"/><constraint name="NE" perimeter="0" x="1" y="0"/><constraint name="SE" perimeter="0" x="0.758" y="0.985"/><constraint name="SW" perimeter="0" x="0.15" y="0.993"/><constraint name="NW" perimeter="0" x="0.165" y="0.082"/></connections><foreground><path><move x="72.74" y="14.08"/><curve x1="72.74" y1="17.76" x2="74.21" y2="19.6" x3="76.94" y3="19.6"/><curve x1="79.3" y1="19.6" x2="81.42" y2="18.1" x3="81.42" y3="14.69"/><line x="81.42" y="13.46"/><curve x1="81.42" y1="10.06" x2="79.49" y2="8.55" x3="77.25" y3="8.55"/><curve x1="74.28" y1="8.55" x2="72.74" y2="10.51" x3="72.74" y3="14.07"/><close/><move x="81.42" y="21.74"/><line x="81.42" y="18.98"/><curve x1="80.44" y1="21" x2="78.6" y2="22.05" x3="76.24" y3="22.05"/><curve x1="72.16" y1="22.05" x2="70.11" y2="18.59" x3="70.11" y3="14.08"/><curve x1="70.11" y1="9.76" x2="72.26" y2="6.11" x3="76.55" y3="6.11"/><curve x1="78.79" y1="6.11" x2="80.51" y2="7.12" x3="81.43" y3="9.12"/><line x="81.43" y="0"/><line x="84.07" y="0"/><line x="84.07" y="21.74"/><line x="81.42" y="21.74"/><close/><move x="63.7" y="21.74"/><line x="60.33" y="21.74"/><line x="57.69" y="14.32"/><line x="56.28" y="9.6"/><line x="54.87" y="14.32"/><line x="52.23" y="21.74"/><line x="48.86" y="21.74"/><line x="43.22" y="6.41"/><line x="46.13" y="6.41"/><line x="50.55" y="19.41"/><line x="55.03" y="6.41"/><line x="57.54" y="6.41"/><line x="62.02" y="19.41"/><line x="66.43" y="6.41"/><line x="69.34" y="6.41"/><line x="63.7" y="21.74"/><close/><move x="35.23" y="22.05"/><curve x1="30.63" y1="22.05" x2="27.93" y2="18.65" x3="27.93" y3="14.05"/><curve x1="27.93" y1="9.45" x2="30.63" y2="6.11" x3="35.23" y3="6.11"/><curve x1="39.8" y1="6.11" x2="42.47" y2="9.45" x3="42.47" y3="14.05"/><curve x1="42.47" y1="18.65" x2="39.8" y2="22.05" x3="35.23" y3="22.05"/><close/><move x="35.23" y="8.56"/><curve x1="31.95" y1="8.56" x2="30.51" y2="11.14" x3="30.51" y3="14.05"/><curve x1="30.51" y1="16.96" x2="31.95" y2="19.6" x3="35.23" y3="19.6"/><curve x1="38.48" y1="19.6" x2="39.89" y2="16.96" x3="39.89" y3="14.05"/><curve x1="39.89" y1="11.14" x2="38.48" y2="8.56" x3="35.23" y3="8.56"/><close/><move x="21.46" y="12.7"/><line x="21.46" y="21.75"/><line x="18.88" y="21.75"/><line x="18.88" y="6.41"/><line x="21.46" y="6.41"/><line x="21.46" y="9.11"/><curve x1="22.35" y1="7.3" x2="23.88" y2="6.01" x3="26.89" y3="6.2"/><line x="26.89" y="8.78"/><curve x1="23.52" y1="8.44" x2="21.46" y2="9.46" x3="21.46" y3="12.71"/><close/><move x="15.7" y="18.19"/><line x="15.7" y="20.86"/><curve x1="14.44" y1="21.69" x2="12.45" y2="22.06" x3="10.36" y3="22.06"/><curve x1="3.74" y1="22.06" x2="0" y2="18.07" x3="0" y3="11.73"/><curve x1="0" y1="5.6" x2="3.74" y2="1.3" x3="10.3" y3="1.3"/><curve x1="12.26" y1="1.3" x2="14.23" y2="1.67" x3="15.67" y3="2.71"/><line x="15.67" y="5.38"/><curve x1="14.23" y1="4.46" x2="12.63" y2="3.97" x3="10.3" y3="3.97"/><curve x1="5.58" y1="3.97" x2="2.76" y2="7.1" x3="2.76" y3="11.73"/><curve x1="2.76" y1="16.36" x2="5.67" y2="19.43" x3="10.46" y3="19.43"/><curve x1="12.58" y1="19.43" x2="14.23" y2="18.94" x3="15.7" y3="18.2"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_customer_service_management" w="414.71" h="27.38" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.206"/><constraint name="W" perimeter="0" x="0.001" y="0.5"/><constraint name="E" perimeter="0" x="0.99" y="0.5"/><constraint name="SE" perimeter="0" x="0.757" y="0.97"/></connections><foreground><path><move x="410.63" y="16.47"/><curve x1="410.63" y1="17.82" x2="411.43" y2="18.74" x3="413.05" y3="18.74"/><curve x1="413.66" y1="18.74" x2="414.25" y2="18.62" x3="414.71" y3="18.53"/><line x="414.71" y="21.08"/><curve x1="414.25" y1="21.2" x2="413.73" y2="21.33" x3="412.93" y3="21.33"/><curve x1="409.65" y1="21.33" x2="408.05" y2="19.4" x3="408.05" y3="16.55"/><line x="408.05" y="8.36"/><line x="405.57" y="8.36"/><line x="405.57" y="5.89"/><line x="408.05" y="5.89"/><line x="408.05" y="2.64"/><line x="410.63" y="2.64"/><line x="410.63" y="5.89"/><line x="414.71" y="5.89"/><line x="414.71" y="8.34"/><line x="410.63" y="8.34"/><line x="410.63" y="16.47"/><close/><move x="403.3" y="12.24"/><line x="403.3" y="21.23"/><line x="400.66" y="21.23"/><line x="400.66" y="11.97"/><curve x1="400.66" y1="9.21" x2="399.56" y2="7.98" x3="397.04" y3="7.98"/><curve x1="394.59" y1="7.98" x2="392.9" y2="9.61" x3="392.9" y3="12.7"/><line x="392.9" y="21.23"/><line x="390.26" y="21.23"/><line x="390.26" y="5.89"/><line x="392.9" y="5.89"/><line x="392.9" y="8.41"/><curve x1="393.88" y1="6.6" x2="395.69" y2="5.59" x3="397.75" y3="5.59"/><curve x1="401.28" y1="5.59" x2="403.3" y2="8.01" x3="403.3" y3="12.25"/><close/><move x="380.38" y="7.98"/><curve x1="377.59" y1="7.98" x2="376.18" y2="9.79" x3="375.9" y3="12.46"/><line x="384.46" y="12.46"/><curve x1="384.31" y1="9.61" x2="383.02" y2="7.98" x3="380.38" y3="7.98"/><close/><move x="386.27" y="20.62"/><curve x1="385.01" y1="21.3" x2="383.08" y2="21.54" x3="381.52" y3="21.54"/><curve x1="375.79" y1="21.54" x2="373.27" y2="18.23" x3="373.27" y3="13.54"/><curve x1="373.27" y1="8.91" x2="375.85" y2="5.6" x3="380.51" y3="5.6"/><curve x1="385.23" y1="5.6" x2="387.13" y2="8.88" x3="387.13" y3="13.54"/><line x="387.13" y="14.74"/><line x="375.94" y="14.74"/><curve x1="376.31" y1="17.35" x2="378" y2="19.03" x3="381.61" y3="19.03"/><curve x1="383.39" y1="19.03" x2="384.89" y2="18.69" x3="386.27" y3="18.2"/><line x="386.27" y="20.62"/><close/><move x="360.11" y="12.7"/><line x="360.11" y="21.23"/><line x="357.47" y="21.23"/><line x="357.47" y="11.97"/><curve x1="357.47" y1="9.21" x2="356.37" y2="7.98" x3="353.85" y3="7.98"/><curve x1="351.4" y1="7.98" x2="349.71" y2="9.61" x3="349.71" y3="12.7"/><line x="349.71" y="21.23"/><line x="347.07" y="21.23"/><line x="347.07" y="5.89"/><line x="349.71" y="5.89"/><line x="349.71" y="8.41"/><curve x1="350.69" y1="6.6" x2="352.5" y2="5.59" x3="354.56" y3="5.59"/><curve x1="357.17" y1="5.59" x2="358.95" y2="6.91" x3="359.71" y3="9.33"/><curve x1="360.57" y1="6.97" x2="362.62" y2="5.59" x3="365.17" y3="5.59"/><curve x1="368.61" y1="5.59" x2="370.51" y2="7.92" x3="370.51" y3="12.25"/><line x="370.51" y="21.24"/><line x="367.87" y="21.24"/><line x="367.87" y="12.72"/><curve x1="367.87" y1="9.56" x2="366.77" y2="8" x3="364.25" y3="8"/><curve x1="361.8" y1="8" x2="360.11" y2="9.63" x3="360.11" y3="12.72"/><close/><move x="337.19" y="7.98"/><curve x1="334.4" y1="7.98" x2="332.99" y2="9.79" x3="332.71" y3="12.46"/><line x="341.27" y="12.46"/><curve x1="341.12" y1="9.61" x2="339.83" y2="7.98" x3="337.19" y3="7.98"/><close/><move x="343.08" y="20.62"/><curve x1="341.82" y1="21.3" x2="339.89" y2="21.54" x3="338.33" y3="21.54"/><curve x1="332.6" y1="21.54" x2="330.08" y2="18.23" x3="330.08" y3="13.54"/><curve x1="330.08" y1="8.91" x2="332.66" y2="5.6" x3="337.32" y3="5.6"/><curve x1="342.04" y1="5.6" x2="343.94" y2="8.88" x3="343.94" y3="13.54"/><line x="343.94" y="14.74"/><line x="332.75" y="14.74"/><curve x1="333.12" y1="17.35" x2="334.81" y2="19.03" x3="338.42" y3="19.03"/><curve x1="340.2" y1="19.03" x2="341.7" y2="18.69" x3="343.08" y3="18.2"/><line x="343.08" y="20.62"/><close/><move x="324.44" y="20"/><line x="324.44" y="18.47"/><curve x1="323.46" y1="20.49" x2="321.62" y2="21.54" x3="319.26" y3="21.54"/><curve x1="315.21" y1="21.54" x2="313.19" y2="18.08" x3="313.19" y3="13.57"/><curve x1="313.19" y1="9.25" x2="315.31" y2="5.6" x3="319.57" y3="5.6"/><curve x1="321.81" y1="5.6" x2="323.53" y2="6.61" x3="324.45" y3="8.61"/><line x="324.45" y="5.89"/><line x="327.03" y="5.89"/><line x="327.03" y="19.84"/><curve x1="327.03" y1="24.35" x2="324.91" y2="27.38" x3="319.43" y3="27.38"/><curve x1="316.85" y1="27.38" x2="315.44" y2="27.04" x3="313.97" y3="26.55"/><line x="313.97" y="23.97"/><curve x1="315.66" y1="24.52" x2="317.41" y2="24.89" x3="319.31" y3="24.89"/><curve x1="323.14" y1="24.89" x2="324.46" y2="22.84" x3="324.46" y3="19.98"/><close/><move x="315.78" y="13.54"/><curve x1="315.78" y1="17.22" x2="317.25" y2="19.06" x3="319.98" y3="19.06"/><curve x1="322.34" y1="19.06" x2="324.46" y2="17.56" x3="324.46" y3="14.15"/><line x="324.46" y="12.92"/><curve x1="324.46" y1="9.52" x2="322.53" y2="8.01" x3="320.29" y3="8.01"/><curve x1="317.32" y1="8.01" x2="315.78" y2="9.97" x3="315.78" y3="13.53"/><close/><move x="298.82" y="13.56"/><curve x1="298.82" y1="17.24" x2="300.29" y2="19.08" x3="303.02" y3="19.08"/><curve x1="305.38" y1="19.08" x2="307.5" y2="17.58" x3="307.5" y3="14.17"/><line x="307.5" y="12.94"/><curve x1="307.5" y1="9.54" x2="305.57" y2="8.03" x3="303.33" y3="8.03"/><curve x1="300.36" y1="8.03" x2="298.82" y2="9.99" x3="298.82" y3="13.55"/><close/><move x="307.5" y="21.22"/><line x="307.5" y="18.46"/><curve x1="306.52" y1="20.48" x2="304.68" y2="21.53" x3="302.32" y3="21.53"/><curve x1="298.24" y1="21.53" x2="296.19" y2="18.07" x3="296.19" y3="13.56"/><curve x1="296.19" y1="9.24" x2="298.34" y2="5.59" x3="302.63" y3="5.59"/><curve x1="304.87" y1="5.59" x2="306.59" y2="6.6" x3="307.51" y3="8.6"/><line x="307.51" y="5.89"/><line x="310.15" y="5.89"/><line x="310.15" y="21.22"/><line x="307.5" y="21.22"/><close/><move x="293.42" y="12.24"/><line x="293.42" y="21.23"/><line x="290.78" y="21.23"/><line x="290.78" y="11.97"/><curve x1="290.78" y1="9.21" x2="289.68" y2="7.98" x3="287.16" y3="7.98"/><curve x1="284.71" y1="7.98" x2="283.02" y2="9.61" x3="283.02" y3="12.7"/><line x="283.02" y="21.23"/><line x="280.38" y="21.23"/><line x="280.38" y="5.89"/><line x="283.02" y="5.89"/><line x="283.02" y="8.41"/><curve x1="284" y1="6.6" x2="285.81" y2="5.59" x3="287.87" y3="5.59"/><curve x1="291.4" y1="5.59" x2="293.42" y2="8.01" x3="293.42" y3="12.25"/><close/><move x="265.09" y="13.56"/><curve x1="265.09" y1="17.24" x2="266.56" y2="19.08" x3="269.29" y3="19.08"/><curve x1="271.65" y1="19.08" x2="273.77" y2="17.58" x3="273.77" y3="14.17"/><line x="273.77" y="12.94"/><curve x1="273.77" y1="9.54" x2="271.84" y2="8.03" x3="269.6" y3="8.03"/><curve x1="266.63" y1="8.03" x2="265.09" y2="9.99" x3="265.09" y3="13.55"/><close/><move x="273.77" y="21.22"/><line x="273.77" y="18.46"/><curve x1="272.79" y1="20.48" x2="270.95" y2="21.53" x3="268.59" y3="21.53"/><curve x1="264.51" y1="21.53" x2="262.46" y2="18.07" x3="262.46" y3="13.56"/><curve x1="262.46" y1="9.24" x2="264.61" y2="5.59" x3="268.9" y3="5.59"/><curve x1="271.14" y1="5.59" x2="272.86" y2="6.6" x3="273.78" y3="8.6"/><line x="273.78" y="5.89"/><line x="276.42" y="5.89"/><line x="276.42" y="21.22"/><line x="273.77" y="21.22"/><close/><move x="242.33" y="10.21"/><line x="239.57" y="2.73"/><line x="239.57" y="21.22"/><line x="236.81" y="21.22"/><line x="236.81" y="1.08"/><line x="241.59" y="1.08"/><line x="246.16" y="12.64"/><line x="248.03" y="18.19"/><line x="249.9" y="12.64"/><line x="254.5" y="1.08"/><line x="258.95" y="1.08"/><line x="258.95" y="21.23"/><line x="256.19" y="21.23"/><line x="256.19" y="2.95"/><line x="253.83" y="10.22"/><line x="249.38" y="21.23"/><line x="246.71" y="21.23"/><line x="242.33" y="10.21"/><close/><move x="220.82" y="7.98"/><curve x1="218.03" y1="7.98" x2="216.62" y2="9.79" x3="216.34" y3="12.46"/><line x="224.9" y="12.46"/><curve x1="224.75" y1="9.61" x2="223.46" y2="7.98" x3="220.82" y3="7.98"/><close/><move x="226.71" y="20.62"/><curve x1="225.45" y1="21.3" x2="223.52" y2="21.54" x3="221.96" y3="21.54"/><curve x1="216.23" y1="21.54" x2="213.71" y2="18.23" x3="213.71" y3="13.54"/><curve x1="213.71" y1="8.91" x2="216.29" y2="5.6" x3="220.95" y3="5.6"/><curve x1="225.67" y1="5.6" x2="227.57" y2="8.88" x3="227.57" y3="13.54"/><line x="227.57" y="14.74"/><line x="216.38" y="14.74"/><curve x1="216.75" y1="17.35" x2="218.44" y2="19.03" x3="222.05" y3="19.03"/><curve x1="223.83" y1="19.03" x2="225.33" y2="18.69" x3="226.71" y3="18.2"/><line x="226.71" y="20.62"/><close/><move x="211.61" y="18.46"/><line x="211.61" y="20.82"/><curve x1="210.69" y1="21.31" x2="209.28" y2="21.53" x3="207.87" y3="21.53"/><curve x1="202.41" y1="21.53" x2="199.87" y2="18.22" x3="199.87" y3="13.53"/><curve x1="199.87" y1="8.9" x2="202.42" y2="5.59" x3="207.87" y3="5.59"/><curve x1="209.25" y1="5.59" x2="210.32" y2="5.77" x3="211.52" y3="6.33"/><line x="211.52" y="8.78"/><curve x1="210.54" y1="8.32" x2="209.5" y2="8.04" x3="208.05" y3="8.04"/><curve x1="204.06" y1="8.04" x2="202.44" y2="10.55" x3="202.44" y3="13.53"/><curve x1="202.44" y1="16.51" x2="204.1" y2="19.02" x3="208.11" y3="19.02"/><curve x1="209.67" y1="19.02" x2="210.66" y2="18.81" x3="211.61" y3="18.47"/><close/><move x="193.68" y="1.84"/><curve x1="193.68" y1="0.68" x2="194.45" y2="0" x3="195.52" y3="0"/><curve x1="196.59" y1="0" x2="197.36" y2="0.68" x3="197.36" y3="1.84"/><curve x1="197.36" y1="3" x2="196.59" y2="3.68" x3="195.52" y3="3.68"/><curve x1="194.45" y1="3.68" x2="193.68" y2="3.01" x3="193.68" y3="1.84"/><close/><move x="194.17" y="21.22"/><line x="194.17" y="5.89"/><line x="196.81" y="5.89"/><line x="196.81" y="21.22"/><line x="194.17" y="21.22"/><close/><move x="185.93" y="21.22"/><line x="182.4" y="21.22"/><line x="176.46" y="5.89"/><line x="179.22" y="5.89"/><line x="184.19" y="18.98"/><line x="189.13" y="5.89"/><line x="191.89" y="5.89"/><line x="185.93" y="21.22"/><close/><move x="170.48" y="12.18"/><line x="170.48" y="21.23"/><line x="167.9" y="21.23"/><line x="167.9" y="5.89"/><line x="170.48" y="5.89"/><line x="170.48" y="8.59"/><curve x1="171.37" y1="6.78" x2="172.9" y2="5.49" x3="175.91" y3="5.68"/><line x="175.91" y="8.26"/><curve x1="172.54" y1="7.92" x2="170.48" y2="8.94" x3="170.48" y3="12.19"/><close/><move x="158.02" y="7.98"/><curve x1="155.23" y1="7.98" x2="153.82" y2="9.79" x3="153.54" y3="12.46"/><line x="162.1" y="12.46"/><curve x1="161.95" y1="9.61" x2="160.66" y2="7.98" x3="158.02" y3="7.98"/><close/><move x="163.91" y="20.62"/><curve x1="162.65" y1="21.3" x2="160.72" y2="21.54" x3="159.16" y3="21.54"/><curve x1="153.43" y1="21.54" x2="150.91" y2="18.23" x3="150.91" y3="13.54"/><curve x1="150.91" y1="8.91" x2="153.49" y2="5.6" x3="158.15" y3="5.6"/><curve x1="162.87" y1="5.6" x2="164.77" y2="8.88" x3="164.77" y3="13.54"/><line x="164.77" y="14.74"/><line x="153.58" y="14.74"/><curve x1="153.95" y1="17.35" x2="155.63" y2="19.03" x3="159.25" y3="19.03"/><curve x1="161.03" y1="19.03" x2="162.53" y2="18.69" x3="163.91" y3="18.2"/><line x="163.91" y="20.62"/><close/><move x="148.58" y="15.67"/><curve x1="148.58" y1="19.17" x2="146.5" y2="21.53" x3="141.5" y3="21.53"/><curve x1="137.61" y1="21.53" x2="135.8" y2="20.76" x3="134.23" y3="19.97"/><line x="134.23" y="17.15"/><curve x1="136.1" y1="18.13" x2="138.98" y2="18.84" x3="141.65" y3="18.84"/><curve x1="144.69" y1="18.84" x2="145.82" y2="17.64" x3="145.82" y3="15.87"/><curve x1="145.82" y1="14.09" x2="144.72" y2="13.14" x3="140.88" y3="12.22"/><curve x1="136.34" y1="11.12" x2="134.32" y2="9.55" x3="134.32" y3="6.24"/><curve x1="134.32" y1="3.11" x2="136.71" y2="0.78" x3="141.4" y3="0.78"/><curve x1="144.31" y1="0.78" x2="146.18" y2="1.49" x3="147.56" y3="2.25"/><line x="147.56" y="5.01"/><curve x1="145.54" y1="3.85" x2="143.36" y2="3.48" x3="141.27" y3="3.48"/><curve x1="138.63" y1="3.48" x2="137.07" y2="4.4" x3="137.07" y3="6.24"/><curve x1="137.07" y1="7.9" x2="138.36" y2="8.72" x3="141.92" y3="9.61"/><curve x1="146.18" y1="10.68" x2="148.57" y2="12.06" x3="148.57" y3="15.68"/><close/><move x="122.17" y="12.18"/><line x="122.17" y="21.23"/><line x="119.59" y="21.23"/><line x="119.59" y="5.89"/><line x="122.17" y="5.89"/><line x="122.17" y="8.59"/><curve x1="123.06" y1="6.78" x2="124.59" y2="5.49" x3="127.6" y3="5.68"/><line x="127.6" y="8.26"/><curve x1="124.23" y1="7.92" x2="122.17" y2="8.94" x3="122.17" y3="12.19"/><close/><move x="109.71" y="7.98"/><curve x1="106.92" y1="7.98" x2="105.51" y2="9.79" x3="105.23" y3="12.46"/><line x="113.79" y="12.46"/><curve x1="113.64" y1="9.61" x2="112.35" y2="7.98" x3="109.71" y3="7.98"/><close/><move x="115.6" y="20.62"/><curve x1="114.34" y1="21.3" x2="112.41" y2="21.54" x3="110.85" y3="21.54"/><curve x1="105.12" y1="21.54" x2="102.6" y2="18.23" x3="102.6" y3="13.54"/><curve x1="102.6" y1="8.91" x2="105.18" y2="5.6" x3="109.84" y3="5.6"/><curve x1="114.56" y1="5.6" x2="116.46" y2="8.88" x3="116.46" y3="13.54"/><line x="116.46" y="14.74"/><line x="105.27" y="14.74"/><curve x1="105.64" y1="17.35" x2="107.33" y2="19.03" x3="110.94" y3="19.03"/><curve x1="112.72" y1="19.03" x2="114.22" y2="18.69" x3="115.6" y3="18.2"/><line x="115.6" y="20.62"/><close/><move x="89.45" y="12.7"/><line x="89.45" y="21.23"/><line x="86.81" y="21.23"/><line x="86.81" y="11.97"/><curve x1="86.81" y1="9.21" x2="85.71" y2="7.98" x3="83.19" y3="7.98"/><curve x1="80.74" y1="7.98" x2="79.05" y2="9.61" x3="79.05" y3="12.7"/><line x="79.05" y="21.23"/><line x="76.41" y="21.23"/><line x="76.41" y="5.89"/><line x="79.05" y="5.89"/><line x="79.05" y="8.41"/><curve x1="80.03" y1="6.6" x2="81.84" y2="5.59" x3="83.9" y3="5.59"/><curve x1="86.51" y1="5.59" x2="88.29" y2="6.91" x3="89.05" y3="9.33"/><curve x1="89.91" y1="6.97" x2="91.96" y2="5.59" x3="94.51" y3="5.59"/><curve x1="97.95" y1="5.59" x2="99.85" y2="7.92" x3="99.85" y3="12.25"/><line x="99.85" y="21.24"/><line x="97.21" y="21.24"/><line x="97.21" y="12.72"/><curve x1="97.21" y1="9.56" x2="96.11" y2="8" x3="93.59" y3="8"/><curve x1="91.14" y1="8" x2="89.45" y2="9.63" x3="89.45" y3="12.72"/><close/><move x="66.11" y="21.53"/><curve x1="61.51" y1="21.53" x2="58.81" y2="18.13" x3="58.81" y3="13.53"/><curve x1="58.81" y1="8.93" x2="61.51" y2="5.59" x3="66.11" y3="5.59"/><curve x1="70.68" y1="5.59" x2="73.35" y2="8.93" x3="73.35" y3="13.53"/><curve x1="73.35" y1="18.13" x2="70.68" y2="21.53" x3="66.11" y3="21.53"/><close/><move x="66.11" y="8.04"/><curve x1="62.83" y1="8.04" x2="61.39" y2="10.62" x3="61.39" y3="13.53"/><curve x1="61.39" y1="16.44" x2="62.83" y2="19.08" x3="66.11" y3="19.08"/><curve x1="69.36" y1="19.08" x2="70.77" y2="16.44" x3="70.77" y3="13.53"/><curve x1="70.77" y1="10.62" x2="69.36" y2="8.04" x3="66.11" y3="8.04"/><close/><move x="52.87" y="16.47"/><curve x1="52.87" y1="17.82" x2="53.67" y2="18.74" x3="55.29" y3="18.74"/><curve x1="55.9" y1="18.74" x2="56.49" y2="18.62" x3="56.95" y3="18.53"/><line x="56.95" y="21.08"/><arc rx="6.3" ry="6.3" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="55.17" y="21.33"/><curve x1="51.89" y1="21.33" x2="50.29" y2="19.4" x3="50.29" y3="16.55"/><line x="50.29" y="8.36"/><line x="47.81" y="8.36"/><line x="47.81" y="5.89"/><line x="50.29" y="5.89"/><line x="50.29" y="2.64"/><line x="52.87" y="2.64"/><line x="52.87" y="5.89"/><line x="56.95" y="5.89"/><line x="56.95" y="8.34"/><line x="52.87" y="8.34"/><line x="52.87" y="16.47"/><close/><move x="46.17" y="17.05"/><curve x1="46.17" y1="19.6" x2="44.51" y2="21.53" x3="40.4" y3="21.53"/><curve x1="38.1" y1="21.53" x2="36.23" y2="21.01" x3="35.06" y3="20.4"/><line x="35.06" y="17.61"/><curve x1="36.38" y1="18.38" x2="38.59" y2="19.11" x3="40.52" y3="19.11"/><curve x1="42.54" y1="19.11" x2="43.59" y2="18.28" x3="43.59" y3="17.09"/><curve x1="43.59" y1="15.93" x2="42.7" y2="15.25" x3="39.79" y3="14.55"/><curve x1="36.39" y1="13.72" x2="34.95" y2="12.4" x3="34.95" y3="9.89"/><curve x1="34.95" y1="7.22" x2="37" y2="5.6" x3="40.5" y3="5.6"/><curve x1="42.49" y1="5.6" x2="44.3" y2="6.09" x3="45.44" y3="6.7"/><line x="45.44" y="9.43"/><curve x1="43.6" y1="8.51" x2="42.1" y2="8.02" x3="40.47" y3="8.02"/><curve x1="38.54" y1="8.02" x2="37.5" y2="8.7" x3="37.5" y3="9.89"/><curve x1="37.5" y1="10.96" x2="38.24" y2="11.64" x3="41.06" y3="12.31"/><curve x1="44.46" y1="13.14" x2="46.18" y2="14.4" x3="46.18" y3="17.06"/><close/><move x="18.58" y="14.88"/><line x="18.58" y="5.89"/><line x="21.22" y="5.89"/><line x="21.22" y="15.15"/><curve x1="21.22" y1="17.91" x2="22.32" y2="19.14" x3="24.84" y3="19.14"/><curve x1="27.29" y1="19.14" x2="28.98" y2="17.51" x3="28.98" y3="14.42"/><line x="28.98" y="5.89"/><line x="31.62" y="5.89"/><line x="31.62" y="21.22"/><line x="28.98" y="21.22"/><line x="28.98" y="18.71"/><curve x1="28" y1="20.52" x2="26.19" y2="21.53" x3="24.14" y3="21.53"/><curve x1="20.61" y1="21.53" x2="18.59" y2="19.11" x3="18.59" y3="14.88"/><close/><move x="15.7" y="17.67"/><line x="15.7" y="20.34"/><curve x1="14.44" y1="21.17" x2="12.45" y2="21.54" x3="10.36" y3="21.54"/><curve x1="3.74" y1="21.54" x2="0" y2="17.55" x3="0" y3="11.21"/><curve x1="0" y1="5.08" x2="3.74" y2="0.78" x3="10.3" y3="0.78"/><curve x1="12.26" y1="0.78" x2="14.23" y2="1.15" x3="15.67" y3="2.19"/><line x="15.67" y="4.86"/><curve x1="14.23" y1="3.94" x2="12.63" y2="3.45" x3="10.3" y3="3.45"/><curve x1="5.58" y1="3.45" x2="2.76" y2="6.58" x3="2.76" y3="11.21"/><curve x1="2.76" y1="15.84" x2="5.67" y2="18.91" x3="10.46" y3="18.91"/><curve x1="12.58" y1="18.91" x2="14.23" y2="18.42" x3="15.7" y3="17.68"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_feedback" w="125.5" h="22.05" aspect="fixed" strokewidth="inherit"><connections><constraint name="W" perimeter="0" x="0" y="0.5"/><constraint name="E" perimeter="0" x="0.962" y="0.5"/><constraint name="SE" perimeter="0" x="0.804" y="0.941"/><constraint name="SW" perimeter="0" x="0.187" y="0.999"/><constraint name="NW" perimeter="0" x="0" y="0.072"/></connections><foreground><path><move x="115.164" y="21.744"/><line x="112.526" y="21.744"/><line x="112.526" y="0"/><line x="115.164" y="0"/><line x="115.164" y="13.585"/><line x="121.757" y="6.41"/><line x="125.192" y="6.41"/><line x="117.985" y="13.954"/><line x="125.498" y="21.744"/><line x="121.91" y="21.744"/><line x="115.164" y="14.567"/><line x="115.164" y="21.744"/><close/><move x="109.516" y="18.983"/><line x="109.516" y="21.345"/><curve x1="108.596" y1="21.835" x2="107.185" y2="22.05" x3="105.774" y3="22.05"/><curve x1="100.316" y1="22.05" x2="97.77" y2="18.738" x3="97.77" y3="14.046"/><curve x1="97.77" y1="9.416" x2="100.316" y2="6.103" x3="105.774" y3="6.103"/><curve x1="107.154" y1="6.103" x2="108.228" y2="6.287" x3="109.424" y3="6.839"/><line x="109.424" y="9.293"/><curve x1="108.442" y1="8.833" x2="107.4" y2="8.557" x3="105.958" y3="8.557"/><curve x1="101.972" y1="8.557" x2="100.346" y2="11.071" x3="100.346" y3="14.046"/><curve x1="100.346" y1="17.021" x2="102.002" y2="19.536" x3="106.02" y3="19.536"/><curve x1="107.584" y1="19.536" x2="108.565" y2="19.321" x3="109.516" y3="18.983"/><close/><move x="83.398" y="14.077"/><curve x1="83.398" y1="17.757" x2="84.87" y2="19.597" x3="87.599" y3="19.597"/><curve x1="89.96" y1="19.597" x2="92.076" y2="18.094" x3="92.076" y3="14.69"/><line x="92.076" y="13.463"/><curve x1="92.076" y1="10.059" x2="90.144" y2="8.557" x3="87.906" y3="8.557"/><curve x1="84.931" y1="8.557" x2="83.398" y2="10.519" x3="83.398" y3="14.077"/><close/><move x="92.076" y="21.743"/><line x="92.076" y="18.983"/><curve x1="91.095" y1="21.007" x2="89.255" y2="22.05" x3="86.894" y3="22.05"/><curve x1="82.815" y1="22.05" x2="80.76" y2="18.585" x3="80.76" y3="14.077"/><curve x1="80.76" y1="9.753" x2="82.907" y2="6.103" x3="87.2" y3="6.103"/><curve x1="89.439" y1="6.103" x2="91.156" y2="7.115" x3="92.076" y3="9.109"/><line x="92.076" y="6.41"/><line x="94.714" y="6.41"/><line x="94.714" y="21.743"/><line x="92.076" y="21.743"/><close/><move x="75.986" y="14.077"/><curve x1="75.986" y1="10.397" x2="74.514" y2="8.557" x3="71.785" y3="8.557"/><curve x1="69.423" y1="8.557" x2="67.307" y2="10.059" x3="67.307" y3="13.463"/><line x="67.307" y="14.69"/><curve x1="67.307" y1="18.094" x2="69.239" y2="19.597" x3="71.478" y3="19.597"/><curve x1="74.453" y1="19.597" x2="75.986" y2="17.634" x3="75.986" y3="14.077"/><close/><move x="72.183" y="22.05"/><curve x1="69.945" y1="22.05" x2="68.227" y2="21.038" x3="67.307" y3="19.045"/><line x="67.307" y="21.743"/><line x="64.67" y="21.743"/><line x="64.67" y="0.002"/><line x="67.307" y="0.002"/><line x="67.307" y="9.172"/><curve x1="68.289" y1="7.147" x2="70.129" y2="6.104" x3="72.49" y3="6.104"/><curve x1="76.569" y1="6.104" x2="78.623" y2="9.57" x3="78.623" y3="14.078"/><curve x1="78.623" y1="18.402" x2="76.477" y2="22.051" x3="72.183" y3="22.051"/><close/><move x="49.377" y="14.077"/><curve x1="49.377" y1="17.757" x2="50.849" y2="19.597" x3="53.577" y3="19.597"/><curve x1="55.939" y1="19.597" x2="58.055" y2="18.094" x3="58.055" y3="14.69"/><line x="58.055" y="13.463"/><curve x1="58.055" y1="10.059" x2="56.123" y2="8.557" x3="53.885" y3="8.557"/><curve x1="50.91" y1="8.557" x2="49.377" y2="10.52" x3="49.377" y3="14.077"/><close/><move x="58.055" y="21.743"/><line x="58.055" y="18.983"/><curve x1="57.074" y1="21.007" x2="55.234" y2="22.05" x3="52.873" y3="22.05"/><curve x1="48.793" y1="22.05" x2="46.739" y2="18.585" x3="46.739" y3="14.077"/><curve x1="46.739" y1="9.753" x2="48.886" y2="6.103" x3="53.179" y3="6.103"/><curve x1="55.418" y1="6.103" x2="57.135" y2="7.116" x3="58.055" y3="9.109"/><line x="58.055" y="0"/><line x="60.693" y="0"/><line x="60.693" y="21.743"/><line x="58.055" y="21.743"/><close/><move x="37.772" y="8.495"/><curve x1="34.982" y1="8.495" x2="33.571" y2="10.305" x3="33.295" y3="12.973"/><line x="41.85" y="12.973"/><curve x1="41.697" y1="10.121" x2="40.41" y2="8.495" x3="37.772" y3="8.495"/><close/><move x="43.66" y="21.13"/><curve x1="42.402" y1="21.805" x2="40.47" y2="22.05" x3="38.906" y3="22.05"/><curve x1="33.172" y1="22.05" x2="30.657" y2="18.738" x3="30.657" y3="14.046"/><curve x1="30.657" y1="9.416" x2="33.233" y2="6.103" x3="37.894" y3="6.103"/><curve x1="42.617" y1="6.103" x2="44.519" y2="9.385" x3="44.519" y3="14.046"/><line x="44.519" y="15.242"/><line x="33.325" y="15.242"/><curve x1="33.693" y1="17.849" x2="35.38" y2="19.535" x3="38.998" y3="19.535"/><curve x1="40.778" y1="19.535" x2="42.28" y2="19.198" x3="43.66" y3="18.707"/><line x="43.66" y="21.13"/><close/><move x="21.69" y="8.495"/><curve x1="18.9" y1="8.495" x2="17.488" y2="10.305" x3="17.213" y3="12.973"/><line x="25.769" y="12.973"/><curve x1="25.615" y1="10.121" x2="24.327" y2="8.495" x3="21.689" y3="8.495"/><close/><move x="27.577" y="21.13"/><curve x1="26.319" y1="21.805" x2="24.387" y2="22.05" x3="22.823" y3="22.05"/><curve x1="17.089" y1="22.05" x2="14.574" y2="18.738" x3="14.574" y3="14.046"/><curve x1="14.574" y1="9.416" x2="17.15" y2="6.103" x3="21.812" y3="6.103"/><curve x1="26.534" y1="6.103" x2="28.435" y2="9.385" x3="28.435" y3="14.046"/><line x="28.435" y="15.242"/><line x="17.244" y="15.242"/><curve x1="17.612" y1="17.849" x2="19.299" y2="19.535" x3="22.918" y3="19.535"/><curve x1="24.696" y1="19.535" x2="26.198" y2="19.198" x3="27.578" y3="18.707"/><line x="27.577" y="21.13"/><close/><move x="11.898" y="14.23"/><line x="2.76" y="14.23"/><line x="2.76" y="21.744"/><line x="0" y="21.744"/><line x="0" y="1.596"/><line x="12.94" y="1.596"/><line x="12.94" y="4.233"/><line x="2.76" y="4.233"/><line x="2.76" y="11.593"/><line x="11.898" y="11.593"/><line x="11.898" y="14.23"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_focus" w="73.3" h="20.45" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.237"/><constraint name="S" perimeter="0" x="0.5" y="0.983"/><constraint name="W" perimeter="0" x="0" y="0.5"/><constraint name="E" perimeter="0" x="0.893" y="0.5"/><constraint name="NE" perimeter="0" x="0.765" y="0.235"/><constraint name="SE" perimeter="0" x="0.738" y="0.964"/><constraint name="SW" perimeter="0" x="0.256" y="0.971"/><constraint name="NW" perimeter="0" x="0.177" y="0"/></connections><foreground><path><move x="73.3" y="15.97"/><curve x1="73.3" y1="18.52" x2="71.64" y2="20.45" x3="67.54" y3="20.45"/><curve x1="65.24" y1="20.45" x2="63.37" y2="19.93" x3="62.2" y3="19.32"/><line x="62.2" y="16.53"/><curve x1="63.52" y1="17.3" x2="65.73" y2="18.03" x3="67.66" y3="18.03"/><curve x1="69.68" y1="18.03" x2="70.73" y2="17.2" x3="70.73" y3="16.01"/><curve x1="70.73" y1="14.85" x2="69.84" y2="14.17" x3="66.93" y3="13.47"/><curve x1="63.53" y1="12.64" x2="62.08" y2="11.32" x3="62.08" y3="8.81"/><curve x1="62.08" y1="6.14" x2="64.14" y2="4.52" x3="67.63" y3="4.52"/><curve x1="69.62" y1="4.52" x2="71.43" y2="5.01" x3="72.57" y3="5.62"/><line x="72.57" y="8.35"/><curve x1="70.73" y1="7.43" x2="69.23" y2="6.94" x3="67.6" y3="6.94"/><curve x1="65.67" y1="6.94" x2="64.63" y2="7.62" x3="64.63" y3="8.81"/><curve x1="64.63" y1="9.88" x2="65.37" y2="10.56" x3="68.19" y3="11.23"/><curve x1="71.59" y1="12.06" x2="73.31" y2="13.32" x3="73.31" y3="15.98"/><close/><move x="45.71" y="13.8"/><line x="45.71" y="4.81"/><line x="48.35" y="4.81"/><line x="48.35" y="14.07"/><curve x1="48.35" y1="16.83" x2="49.45" y2="18.06" x3="51.97" y3="18.06"/><curve x1="54.42" y1="18.06" x2="56.11" y2="16.44" x3="56.11" y3="13.34"/><line x="56.11" y="4.81"/><line x="58.75" y="4.81"/><line x="58.75" y="20.14"/><line x="56.11" y="20.14"/><line x="56.11" y="17.63"/><curve x1="55.13" y1="19.44" x2="53.32" y2="20.45" x3="51.26" y3="20.45"/><curve x1="47.73" y1="20.45" x2="45.71" y2="18.03" x3="45.71" y3="13.8"/><close/><move x="43" y="17.38"/><line x="43" y="19.74"/><curve x1="42.08" y1="20.23" x2="40.67" y2="20.45" x3="39.26" y3="20.45"/><curve x1="33.8" y1="20.45" x2="31.26" y2="17.14" x3="31.26" y3="12.45"/><curve x1="31.26" y1="7.82" x2="33.81" y2="4.51" x3="39.26" y3="4.51"/><curve x1="40.64" y1="4.51" x2="41.71" y2="4.69" x3="42.91" y3="5.25"/><line x="42.91" y="7.7"/><curve x1="41.93" y1="7.24" x2="40.89" y2="6.96" x3="39.44" y3="6.96"/><curve x1="35.45" y1="6.96" x2="33.83" y2="9.47" x3="33.83" y3="12.45"/><curve x1="33.83" y1="15.43" x2="35.49" y2="17.94" x3="39.5" y3="17.94"/><curve x1="41.06" y1="17.94" x2="42.05" y2="17.73" x3="43" y3="17.39"/><close/><move x="21.87" y="20.45"/><curve x1="17.27" y1="20.45" x2="14.57" y2="17.05" x3="14.57" y3="12.45"/><curve x1="14.57" y1="7.85" x2="17.27" y2="4.51" x3="21.87" y3="4.51"/><curve x1="26.44" y1="4.51" x2="29.11" y2="7.85" x3="29.11" y3="12.45"/><curve x1="29.11" y1="17.05" x2="26.44" y2="20.45" x3="21.87" y3="20.45"/><close/><move x="21.87" y="6.96"/><curve x1="18.59" y1="6.96" x2="17.15" y2="9.54" x3="17.15" y3="12.45"/><curve x1="17.15" y1="15.36" x2="18.59" y2="18" x3="21.87" y3="18"/><curve x1="25.12" y1="18" x2="26.53" y2="15.36" x3="26.53" y3="12.45"/><curve x1="26.53" y1="9.54" x2="25.12" y2="6.96" x3="21.87" y3="6.96"/><close/><move x="11.9" y="12.63"/><line x="2.76" y="12.63"/><line x="2.76" y="20.14"/><line x="0" y="20.14"/><line x="0" y="0"/><line x="12.94" y="0"/><line x="12.94" y="2.64"/><line x="2.76" y="2.64"/><line x="2.76" y="10"/><line x="11.9" y="10"/><line x="11.9" y="12.63"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_goals" w="74.32" h="22.05" aspect="fixed" strokewidth="inherit"><connections><constraint name="W" perimeter="0" x="0.001" y="0.5"/><constraint name="E" perimeter="0" x="0.885" y="0.5"/><constraint name="NE" perimeter="0" x="0.75" y="0"/><constraint name="SE" perimeter="0" x="0.697" y="0.986"/><constraint name="SW" perimeter="0" x="0.144" y="1"/><constraint name="NW" perimeter="0" x="0.154" y="0.057"/></connections><foreground><path><move x="74.32" y="17.57"/><curve x1="74.32" y1="20.12" x2="72.66" y2="22.05" x3="68.55" y3="22.05"/><curve x1="66.25" y1="22.05" x2="64.38" y2="21.53" x3="63.21" y3="20.92"/><line x="63.21" y="18.13"/><curve x1="64.53" y1="18.9" x2="66.74" y2="19.63" x3="68.67" y3="19.63"/><curve x1="70.69" y1="19.63" x2="71.74" y2="18.8" x3="71.74" y3="17.61"/><curve x1="71.74" y1="16.45" x2="70.85" y2="15.77" x3="67.94" y3="15.07"/><curve x1="64.54" y1="14.24" x2="63.1" y2="12.92" x3="63.1" y3="10.41"/><curve x1="63.1" y1="7.74" x2="65.15" y2="6.12" x3="68.65" y3="6.12"/><curve x1="70.64" y1="6.12" x2="72.45" y2="6.61" x3="73.59" y3="7.22"/><line x="73.59" y="9.95"/><curve x1="71.75" y1="9.03" x2="70.25" y2="8.54" x3="68.62" y3="8.54"/><curve x1="66.69" y1="8.54" x2="65.65" y2="9.22" x3="65.65" y3="10.41"/><curve x1="65.65" y1="11.48" x2="66.39" y2="12.16" x3="69.21" y3="12.83"/><curve x1="72.61" y1="13.66" x2="74.33" y2="14.92" x3="74.33" y3="17.58"/><close/><move x="61.21" y="21.71"/><curve x1="61" y1="21.77" x2="60.54" y2="21.83" x3="59.86" y3="21.83"/><curve x1="57.35" y1="21.83" x2="55.75" y2="20.64" x3="55.75" y3="17.81"/><line x="55.75" y="0"/><line x="58.39" y="0"/><line x="58.39" y="17.51"/><curve x1="58.39" y1="18.89" x2="59.31" y2="19.38" x3="60.45" y3="19.38"/><curve x1="60.73" y1="19.38" x2="60.91" y2="19.38" x3="61.22" y3="19.35"/><line x="61.21" y="21.71"/><close/><move x="40.46" y="14.08"/><curve x1="40.46" y1="17.76" x2="41.93" y2="19.6" x3="44.66" y3="19.6"/><curve x1="47.02" y1="19.6" x2="49.14" y2="18.1" x3="49.14" y3="14.69"/><line x="49.14" y="13.46"/><curve x1="49.14" y1="10.06" x2="47.21" y2="8.55" x3="44.97" y3="8.55"/><curve x1="42" y1="8.55" x2="40.46" y2="10.51" x3="40.46" y3="14.07"/><close/><move x="49.14" y="21.74"/><line x="49.14" y="18.98"/><curve x1="48.16" y1="21" x2="46.32" y2="22.05" x3="43.96" y3="22.05"/><curve x1="39.88" y1="22.05" x2="37.83" y2="18.59" x3="37.83" y3="14.08"/><curve x1="37.83" y1="9.76" x2="39.98" y2="6.11" x3="44.27" y3="6.11"/><curve x1="46.51" y1="6.11" x2="48.23" y2="7.12" x3="49.15" y3="9.12"/><line x="49.15" y="6.41"/><line x="51.79" y="6.41"/><line x="51.79" y="21.74"/><line x="49.14" y="21.74"/><close/><move x="28.44" y="22.05"/><curve x1="23.84" y1="22.05" x2="21.14" y2="18.65" x3="21.14" y3="14.05"/><curve x1="21.14" y1="9.45" x2="23.84" y2="6.11" x3="28.44" y3="6.11"/><curve x1="33.01" y1="6.11" x2="35.68" y2="9.45" x3="35.68" y3="14.05"/><curve x1="35.68" y1="18.65" x2="33.01" y2="22.05" x3="28.44" y3="22.05"/><close/><move x="28.44" y="8.56"/><curve x1="25.16" y1="8.56" x2="23.72" y2="11.14" x3="23.72" y3="14.05"/><curve x1="23.72" y1="16.96" x2="25.16" y2="19.6" x3="28.44" y3="19.6"/><curve x1="31.69" y1="19.6" x2="33.1" y2="16.96" x3="33.1" y3="14.05"/><curve x1="33.1" y1="11.14" x2="31.69" y2="8.56" x3="28.44" y3="8.56"/><close/><move x="17.48" y="20.61"/><curve x1="15.89" y1="21.56" x2="12.94" y2="22.05" x3="10.67" y3="22.05"/><curve x1="3.74" y1="22.05" x2="0" y2="17.82" x3="0" y3="11.72"/><curve x1="0" y1="5.16" x2="4.26" y2="1.26" x3="11.44" y3="1.26"/><curve x1="13.04" y1="1.26" x2="14.91" y2="1.44" x3="16.68" y3="2.06"/><line x="16.68" y="4.82"/><curve x1="15.15" y1="4.21" x2="13.34" y2="3.93" x3="11.47" y3="3.93"/><curve x1="5.49" y1="3.93" x2="2.76" y2="6.91" x3="2.76" y3="11.66"/><curve x1="2.76" y1="16.32" x2="5.52" y2="19.42" x3="11.32" y3="19.42"/><curve x1="12.27" y1="19.42" x2="13.59" y2="19.33" x3="14.72" y3="18.99"/><line x="14.72" y="13.38"/><line x="9.57" y="13.38"/><line x="9.57" y="10.74"/><line x="17.48" y="10.74"/><line x="17.48" y="20.61"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_guard" w="78.5" h="22.05" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.38"/><constraint name="S" perimeter="0" x="0.5" y="0.904"/><constraint name="W" perimeter="0" x="0.001" y="0.5"/><constraint name="E" perimeter="0" x="1" y="0.5"/><constraint name="NE" perimeter="0" x="1" y="0"/><constraint name="SE" perimeter="0" x="0.739" y="0.986"/><constraint name="SW" perimeter="0" x="0.314" y="0.98"/><constraint name="NW" perimeter="0" x="0.154" y="0.058"/></connections><foreground><path><move x="67.17" y="14.08"/><curve x1="67.17" y1="17.76" x2="68.64" y2="19.6" x3="71.37" y3="19.6"/><curve x1="73.73" y1="19.6" x2="75.85" y2="18.1" x3="75.85" y3="14.69"/><line x="75.85" y="13.46"/><curve x1="75.85" y1="10.06" x2="73.92" y2="8.55" x3="71.68" y3="8.55"/><curve x1="68.71" y1="8.55" x2="67.17" y2="10.51" x3="67.17" y3="14.07"/><close/><move x="75.85" y="21.74"/><line x="75.85" y="18.98"/><curve x1="74.87" y1="21" x2="73.03" y2="22.05" x3="70.67" y3="22.05"/><curve x1="66.59" y1="22.05" x2="64.54" y2="18.59" x3="64.54" y3="14.08"/><curve x1="64.54" y1="9.76" x2="66.69" y2="6.11" x3="70.98" y3="6.11"/><curve x1="73.22" y1="6.11" x2="74.94" y2="7.12" x3="75.86" y3="9.12"/><line x="75.86" y="0"/><line x="78.5" y="0"/><line x="78.5" y="21.74"/><line x="75.85" y="21.74"/><close/><move x="58.05" y="12.7"/><line x="58.05" y="21.75"/><line x="55.47" y="21.75"/><line x="55.47" y="6.41"/><line x="58.05" y="6.41"/><line x="58.05" y="9.11"/><curve x1="58.94" y1="7.3" x2="60.47" y2="6.01" x3="63.48" y3="6.2"/><line x="63.48" y="8.78"/><curve x1="60.11" y1="8.44" x2="58.05" y2="9.45" x3="58.05" y3="12.71"/><close/><move x="40.19" y="14.08"/><curve x1="40.19" y1="17.76" x2="41.66" y2="19.6" x3="44.39" y3="19.6"/><curve x1="46.75" y1="19.6" x2="48.87" y2="18.1" x3="48.87" y3="14.69"/><line x="48.87" y="13.46"/><curve x1="48.87" y1="10.06" x2="46.94" y2="8.55" x3="44.7" y3="8.55"/><curve x1="41.73" y1="8.55" x2="40.19" y2="10.51" x3="40.19" y3="14.07"/><close/><move x="48.87" y="21.74"/><line x="48.87" y="18.98"/><curve x1="47.89" y1="21" x2="46.05" y2="22.05" x3="43.69" y3="22.05"/><curve x1="39.61" y1="22.05" x2="37.56" y2="18.59" x3="37.56" y3="14.08"/><curve x1="37.56" y1="9.76" x2="39.71" y2="6.11" x3="44" y3="6.11"/><curve x1="46.24" y1="6.11" x2="47.96" y2="7.12" x3="48.88" y3="9.12"/><line x="48.88" y="6.41"/><line x="51.52" y="6.41"/><line x="51.52" y="21.74"/><line x="48.87" y="21.74"/><close/><move x="21.45" y="15.4"/><line x="21.45" y="6.41"/><line x="24.09" y="6.41"/><line x="24.09" y="15.67"/><curve x1="24.09" y1="18.43" x2="25.19" y2="19.66" x3="27.71" y3="19.66"/><curve x1="30.16" y1="19.66" x2="31.85" y2="18.04" x3="31.85" y3="14.94"/><line x="31.85" y="6.41"/><line x="34.49" y="6.41"/><line x="34.49" y="21.74"/><line x="31.85" y="21.74"/><line x="31.85" y="19.23"/><curve x1="30.87" y1="21.04" x2="29.06" y2="22.05" x3="27.01" y3="22.05"/><curve x1="23.48" y1="22.05" x2="21.46" y2="19.63" x3="21.46" y3="15.4"/><close/><move x="17.48" y="20.61"/><curve x1="15.89" y1="21.56" x2="12.94" y2="22.05" x3="10.67" y3="22.05"/><curve x1="3.74" y1="22.05" x2="0" y2="17.82" x3="0" y3="11.72"/><curve x1="0" y1="5.16" x2="4.26" y2="1.26" x3="11.44" y3="1.26"/><curve x1="13.04" y1="1.26" x2="14.91" y2="1.44" x3="16.68" y3="2.06"/><line x="16.68" y="4.82"/><curve x1="15.15" y1="4.21" x2="13.34" y2="3.93" x3="11.47" y3="3.93"/><curve x1="5.49" y1="3.93" x2="2.76" y2="6.91" x3="2.76" y3="11.66"/><curve x1="2.76" y1="16.32" x2="5.52" y2="19.42" x3="11.32" y3="19.42"/><curve x1="12.27" y1="19.42" x2="13.59" y2="19.33" x3="14.72" y3="18.99"/><line x="14.72" y="13.38"/><line x="9.57" y="13.38"/><line x="9.57" y="10.74"/><line x="17.48" y="10.74"/><line x="17.48" y="20.61"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_guard_detect" w="89.56" h="10.49" aspect="fixed" strokewidth="inherit"><connections><constraint name="W" perimeter="0" x="0" y="0.5"/><constraint name="E" perimeter="0" x="0.981" y="0.5"/><constraint name="NE" perimeter="0" x="0.981" y="0.082"/><constraint name="SE" perimeter="0" x="0.761" y="0.978"/><constraint name="SW" perimeter="0" x="0.226" y="0.914"/><constraint name="NW" perimeter="0" x="0.015" y="0.133"/></connections><foreground><path><move x="89.36" y="2.68"/><line x="89.36" y="4.16"/><line x="84.92" y="4.16"/><line x="84.92" y="2.68"/><line x="89.36" y="2.68"/><close/><move x="85.98" y="0.86"/><line x="87.9" y="0.86"/><line x="87.9" y="8.13"/><quad x1="87.9" y1="8.51" x2="88.07" y2="8.7"/><quad x1="88.24" y1="8.89" x2="88.63" y2="8.89"/><arc rx="3" ry="3" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="88.95" y="8.86"/><arc rx="5" ry="5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="89.27" y="8.8"/><line x="89.56" y="10.26"/><arc rx="3.4" ry="3.4" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="88.93" y="10.39"/><arc rx="5" ry="5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="88.31" y="10.43"/><quad x1="87.18" y1="10.43" x2="86.58" y2="9.88"/><quad x1="85.99" y1="9.32" x2="85.99" y2="8.29"/><line x="85.98" y="0.86"/><close/><move x="80.85" y="10.47"/><quad x1="79.72" y1="10.47" x2="78.89" y2="9.98"/><arc rx="3.3" ry="3.3" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="77.61" y="8.6"/><quad x1="77.16" y1="7.71" x2="77.16" y2="6.54"/><quad x1="77.16" y1="5.36" x2="77.61" y2="4.47"/><arc rx="3.3" ry="3.3" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="78.89" y="3.08"/><quad x1="79.72" y1="2.59" x2="80.85" y2="2.59"/><quad x1="81.51" y1="2.59" x2="82.07" y2="2.76"/><quad x1="82.63" y1="2.93" x2="83.07" y2="3.25"/><quad x1="83.51" y1="3.57" x2="83.8" y2="4.03"/><quad x1="84.09" y1="4.49" x2="84.21" y2="5.06"/><line x="82.41" y="5.42"/><quad x1="82.35" y1="5.12" x2="82.21" y2="4.88"/><arc rx="1.5" ry="1.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="81.88" y="4.48"/><arc rx="1.3" ry="1.3" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="81.44" y="4.22"/><arc rx="1.6" ry="1.6" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="80.88" y="4.13"/><quad x1="80.3" y1="4.13" x2="79.91" y2="4.44"/><quad x1="79.52" y1="4.75" x2="79.32" y2="5.3"/><quad x1="79.12" y1="5.84" x2="79.12" y2="6.54"/><quad x1="79.12" y1="7.24" x2="79.32" y2="7.78"/><quad x1="79.52" y1="8.32" x2="79.91" y2="8.64"/><quad x1="80.3" y1="8.95" x2="80.88" y2="8.95"/><quad x1="81.2" y1="8.95" x2="81.45" y2="8.86"/><quad x1="81.71" y1="8.77" x2="81.91" y2="8.59"/><arc rx="1.6" ry="1.6" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="82.25" y="8.17"/><quad x1="82.39" y1="7.92" x2="82.45" y2="7.61"/><line x="84.24" y="7.96"/><quad x1="84.12" y1="8.56" x2="83.84" y2="9.02"/><quad x1="83.56" y1="9.48" x2="83.11" y2="9.81"/><arc rx="3.3" ry="3.3" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="82.11" y="10.32"/><quad x1="81.55" y1="10.49" x2="80.88" y2="10.49"/><close/><move x="72.59" y="10.47"/><quad x1="71.43" y1="10.47" x2="70.59" y2="9.99"/><arc rx="3.26" ry="3.26" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="69.3" y="8.62"/><quad x1="68.85" y1="7.74" x2="68.85" y2="6.54"/><quad x1="68.85" y1="5.36" x2="69.29" y2="4.48"/><arc rx="3.4" ry="3.4" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="70.55" y="3.09"/><quad x1="71.37" y1="2.59" x2="72.48" y2="2.59"/><quad x1="73.21" y1="2.59" x2="73.84" y2="2.82"/><quad x1="74.48" y1="3.05" x2="74.97" y2="3.53"/><quad x1="75.46" y1="4" x2="75.74" y2="4.73"/><quad x1="76.02" y1="5.46" x2="76.02" y2="6.45"/><line x="76.02" y="7.02"/><line x="69.68" y="7.02"/><line x="69.68" y="5.77"/><line x="75.07" y="5.77"/><line x="74.17" y="6.12"/><quad x1="74.17" y1="5.5" x2="73.98" y2="5.04"/><arc rx="1.54" ry="1.54" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="73.41" y="4.32"/><quad x1="73.04" y1="4.06" x2="72.48" y2="4.06"/><quad x1="71.93" y1="4.06" x2="71.54" y2="4.32"/><quad x1="71.15" y1="4.58" x2="70.95" y2="5.02"/><quad x1="70.75" y1="5.46" x2="70.75" y2="6.01"/><line x="70.75" y="6.89"/><quad x1="70.75" y1="7.58" x2="70.98" y2="8.06"/><quad x1="71.22" y1="8.53" x2="71.64" y2="8.77"/><quad x1="72.06" y1="9.01" x2="72.62" y2="9.01"/><quad x1="72.99" y1="9.01" x2="73.3" y2="8.9"/><quad x1="73.61" y1="8.79" x2="73.83" y2="8.59"/><quad x1="74.05" y1="8.38" x2="74.17" y2="8.07"/><line x="75.92" y="8.41"/><quad x1="75.74" y1="9.03" x2="75.28" y2="9.5"/><quad x1="74.83" y1="9.96" x2="74.15" y2="10.23"/><quad x1="73.47" y1="10.48" x2="72.61" y2="10.48"/><close/><move x="67.94" y="2.68"/><line x="67.94" y="4.16"/><line x="63.5" y="4.16"/><line x="63.5" y="2.68"/><line x="67.94" y="2.68"/><close/><move x="64.56" y="0.86"/><line x="66.48" y="0.86"/><line x="66.48" y="8.13"/><quad x1="66.48" y1="8.51" x2="66.65" y2="8.7"/><quad x1="66.82" y1="8.89" x2="67.21" y2="8.89"/><quad x1="67.33" y1="8.89" x2="67.53" y2="8.86"/><quad x1="67.74" y1="8.83" x2="67.85" y2="8.8"/><line x="68.14" y="10.26"/><quad x1="67.83" y1="10.36" x2="67.5" y2="10.39"/><arc rx="5" ry="5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="66.88" y="10.43"/><quad x1="65.75" y1="10.43" x2="65.15" y2="9.88"/><quad x1="64.56" y1="9.32" x2="64.56" y2="8.29"/><line x="64.56" y="0.86"/><close/><move x="59.37" y="10.47"/><quad x1="58.21" y1="10.47" x2="57.37" y2="9.99"/><arc rx="3.26" ry="3.26" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="56.08" y="8.62"/><quad x1="55.63" y1="7.74" x2="55.63" y2="6.54"/><quad x1="55.63" y1="5.36" x2="56.07" y2="4.48"/><arc rx="3.4" ry="3.4" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="57.33" y="3.09"/><quad x1="58.15" y1="2.59" x2="59.26" y2="2.59"/><quad x1="59.98" y1="2.59" x2="60.62" y2="2.82"/><quad x1="61.26" y1="3.05" x2="61.76" y2="3.53"/><quad x1="62.25" y1="4" x2="62.53" y2="4.73"/><quad x1="62.81" y1="5.46" x2="62.81" y2="6.45"/><line x="62.81" y="7.02"/><line x="56.47" y="7.02"/><line x="56.47" y="5.77"/><line x="61.86" y="5.77"/><line x="60.96" y="6.12"/><arc rx="2.8" ry="2.8" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="60.77" y="5.04"/><arc rx="1.55" ry="1.55" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="60.2" y="4.32"/><quad x1="59.83" y1="4.06" x2="59.27" y2="4.06"/><quad x1="58.72" y1="4.06" x2="58.33" y2="4.32"/><quad x1="57.94" y1="4.58" x2="57.74" y2="5.02"/><quad x1="57.54" y1="5.46" x2="57.54" y2="6.01"/><line x="57.54" y="6.89"/><quad x1="57.54" y1="7.58" x2="57.77" y2="8.06"/><quad x1="58.01" y1="8.53" x2="58.43" y2="8.77"/><quad x1="58.85" y1="9.01" x2="59.41" y2="9.01"/><quad x1="59.78" y1="9.01" x2="60.09" y2="8.9"/><quad x1="60.4" y1="8.79" x2="60.62" y2="8.59"/><arc rx="1.4" ry="1.4" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="60.96" y="8.07"/><line x="62.71" y="8.41"/><quad x1="62.53" y1="9.03" x2="62.07" y2="9.5"/><quad x1="61.62" y1="9.96" x2="60.94" y2="10.23"/><quad x1="60.26" y1="10.48" x2="59.4" y2="10.48"/><close/><move x="49.41" y="10.32"/><line x="46.81" y="10.32"/><line x="46.81" y="8.63"/><line x="49.33" y="8.63"/><quad x1="50.35" y1="8.63" x2="51.04" y2="8.26"/><quad x1="51.73" y1="7.89" x2="52.07" y2="7.14"/><quad x1="52.42" y1="6.38" x2="52.42" y2="5.23"/><quad x1="52.42" y1="4.08" x2="52.07" y2="3.33"/><arc rx="2.32" ry="2.32" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="51.05" y="2.21"/><quad x1="50.37" y1="1.84" x2="49.36" y2="1.84"/><line x="46.75" y="1.84"/><line x="46.75" y="0.14"/><line x="49.46" y="0.14"/><quad x1="50.98" y1="0.14" x2="52.08" y2="0.75"/><arc rx="4.1" ry="4.1" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="53.77" y="2.5"/><quad x1="54.37" y1="3.64" x2="54.37" y2="5.23"/><quad x1="54.37" y1="6.82" x2="53.78" y2="7.97"/><arc rx="4.1" ry="4.1" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="52.08" y="9.73"/><quad x1="50.96" y1="10.32" x2="49.41" y2="10.32"/><close/><move x="47.86" y="0.13"/><line x="47.86" y="10.32"/><line x="45.9" y="10.32"/><line x="45.9" y="0.13"/><line x="47.86" y="0.13"/><close/><move x="36.43" y="10.45"/><arc rx="2.9" ry="2.9" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="34.83" y="9.99"/><quad x1="34.12" y1="9.53" x2="33.71" y2="8.66"/><quad x1="33.3" y1="7.78" x2="33.3" y2="6.51"/><quad x1="33.3" y1="5.22" x2="33.72" y2="4.34"/><quad x1="34.14" y1="3.47" x2="34.85" y2="3.02"/><arc rx="2.9" ry="2.9" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="36.42" y="2.58"/><quad x1="37.08" y1="2.58" x2="37.51" y2="2.81"/><quad x1="37.94" y1="3.03" x2="38.2" y2="3.35"/><quad x1="38.47" y1="3.67" x2="38.6" y2="3.96"/><line x="38.67" y="3.96"/><line x="38.67" y="0.13"/><line x="40.59" y="0.13"/><line x="40.59" y="10.32"/><line x="38.7" y="10.32"/><line x="38.7" y="9.1"/><line x="38.6" y="9.1"/><arc rx="2.8" ry="2.8" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="38.2" y="9.71"/><quad x1="37.93" y1="10.02" x2="37.5" y2="10.24"/><quad x1="37.07" y1="10.45" x2="36.43" y2="10.45"/><close/><move x="36.99" y="8.9"/><quad x1="37.54" y1="8.9" x2="37.93" y2="8.6"/><quad x1="38.31" y1="8.3" x2="38.51" y2="7.76"/><quad x1="38.72" y1="7.22" x2="38.72" y2="6.51"/><quad x1="38.72" y1="5.79" x2="38.52" y2="5.26"/><quad x1="38.32" y1="4.73" x2="37.93" y2="4.43"/><quad x1="37.55" y1="4.14" x2="36.99" y2="4.14"/><quad x1="36.42" y1="4.14" x2="36.04" y2="4.45"/><arc rx="1.85" ry="1.85" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="35.46" y="5.28"/><arc rx="3.6" ry="3.6" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="35.27" y="6.5"/><quad x1="35.27" y1="7.19" x2="35.46" y2="7.73"/><quad x1="35.66" y1="8.27" x2="36.04" y2="8.58"/><quad x1="36.43" y1="8.89" x2="36.99" y2="8.89"/><close/><move x="28.31" y="10.32"/><line x="28.31" y="2.68"/><line x="30.18" y="2.68"/><line x="30.18" y="3.99"/><line x="30.26" y="3.99"/><quad x1="30.46" y1="3.31" x2="30.97" y2="2.94"/><arc rx="1.93" ry="1.93" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="32.13" y="2.58"/><quad x1="32.28" y1="2.58" x2="32.47" y2="2.6"/><quad x1="32.65" y1="2.61" x2="32.79" y2="2.64"/><line x="32.79" y="4.38"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="32.41" y="4.31"/><arc rx="5" ry="5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="31.93" y="4.28"/><quad x1="31.45" y1="4.28" x2="31.07" y2="4.49"/><arc rx="1.5" ry="1.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="30.47" y="5.06"/><arc rx="1.65" ry="1.65" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="30.26" y="5.91"/><line x="30.26" y="10.32"/><line x="28.31" y="10.32"/><close/><move x="22.33" y="10.45"/><arc rx="2.9" ry="2.9" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="20.74" y="9.99"/><quad x1="20.04" y1="9.53" x2="19.62" y2="8.66"/><quad x1="19.21" y1="7.78" x2="19.21" y2="6.51"/><quad x1="19.21" y1="5.22" x2="19.63" y2="4.34"/><quad x1="20.05" y1="3.47" x2="20.77" y2="3.02"/><arc rx="2.9" ry="2.9" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="22.35" y="2.58"/><quad x1="23.01" y1="2.58" x2="23.44" y2="2.81"/><quad x1="23.87" y1="3.03" x2="24.13" y2="3.35"/><quad x1="24.39" y1="3.67" x2="24.53" y2="3.96"/><line x="24.61" y="3.96"/><line x="24.61" y="2.68"/><line x="26.52" y="2.68"/><line x="26.52" y="10.32"/><line x="24.62" y="10.32"/><line x="24.62" y="9.1"/><line x="24.54" y="9.1"/><arc rx="2.6" ry="2.6" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="24.13" y="9.71"/><quad x1="23.86" y1="10.03" x2="23.43" y2="10.24"/><quad x1="23" y1="10.45" x2="22.35" y2="10.45"/><close/><move x="22.92" y="8.9"/><quad x1="23.48" y1="8.9" x2="23.86" y2="8.6"/><quad x1="24.24" y1="8.3" x2="24.44" y2="7.76"/><quad x1="24.65" y1="7.22" x2="24.65" y2="6.51"/><quad x1="24.65" y1="5.79" x2="24.45" y2="5.26"/><quad x1="24.25" y1="4.73" x2="23.87" y2="4.43"/><quad x1="23.49" y1="4.13" x2="22.93" y2="4.14"/><quad x1="22.36" y1="4.14" x2="21.97" y2="4.44"/><arc rx="1.85" ry="1.85" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="21.39" y="5.27"/><arc rx="3.6" ry="3.6" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="21.2" y="6.5"/><quad x1="21.2" y1="7.19" x2="21.4" y2="7.73"/><quad x1="21.6" y1="8.27" x2="21.98" y2="8.58"/><quad x1="22.37" y1="8.89" x2="22.93" y2="8.89"/><close/><move x="13.5" y="10.42"/><quad x1="12.71" y1="10.42" x2="12.11" y2="10.08"/><arc rx="2.34" ry="2.34" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="11.19" y="9.1"/><quad x1="10.86" y1="8.45" x2="10.86" y2="7.55"/><line x="10.86" y="2.69"/><line x="12.79" y="2.69"/><line x="12.79" y="7.23"/><quad x1="12.79" y1="7.98" x2="13.17" y2="8.39"/><quad x1="13.55" y1="8.8" x2="14.22" y2="8.81"/><quad x1="14.68" y1="8.81" x2="15.03" y2="8.62"/><quad x1="15.38" y1="8.42" x2="15.58" y2="8.05"/><quad x1="15.78" y1="7.68" x2="15.78" y2="7.15"/><line x="15.78" y="2.7"/><line x="17.71" y="2.7"/><line x="17.71" y="10.32"/><line x="15.89" y="10.32"/><line x="15.87" y="8.42"/><line x="15.99" y="8.42"/><quad x1="15.68" y1="9.4" x2="15.06" y2="9.91"/><quad x1="14.44" y1="10.42" x2="13.5" y2="10.42"/><close/><move x="4.55" y="10.46"/><quad x1="3.26" y1="10.46" x2="2.23" y2="9.82"/><quad x1="1.21" y1="9.19" x2="0.6" y2="8.02"/><quad x1="0" y1="6.85" x2="0" y2="5.25"/><quad x1="0" y1="3.6" x2="0.62" y2="2.43"/><quad x1="1.24" y1="1.26" x2="2.3" y2="0.63"/><quad x1="3.37" y1="0" x2="4.71" y2="0"/><quad x1="5.56" y1="0" x2="6.29" y2="0.25"/><quad x1="7.03" y1="0.5" x2="7.6" y2="0.95"/><quad x1="8.17" y1="1.41" x2="8.54" y2="2.04"/><arc rx="3.8" ry="3.8" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="9.03" y="3.41"/><line x="7.02" y="3.41"/><arc rx="2.3" ry="2.3" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="6.7" y="2.72"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="6.2" y="2.2"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="5.54" y="1.87"/><arc rx="2.6" ry="2.6" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="4.73" y="1.75"/><quad x1="3.92" y1="1.75" x2="3.3" y2="2.15"/><quad x1="2.68" y1="2.55" x2="2.33" y2="3.33"/><quad x1="1.98" y1="4.1" x2="1.98" y2="5.22"/><quad x1="1.98" y1="6.33" x2="2.33" y2="7.11"/><quad x1="2.68" y1="7.89" x2="3.31" y2="8.3"/><quad x1="3.95" y1="8.7" x2="4.79" y2="8.7"/><quad x1="5.55" y1="8.7" x2="6.09" y2="8.41"/><arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="6.92" y="7.58"/><quad x1="7.21" y1="7.03" x2="7.21" y2="6.29"/><line x="7.63" y="6.29"/><line x="7.63" y="7.14"/><quad x1="7.63" y1="7.8" x2="7.47" y2="8.4"/><quad x1="7.31" y1="9" x2="6.94" y2="9.46"/><quad x1="6.59" y1="9.93" x2="5.99" y2="10.19"/><quad x1="5.4" y1="10.46" x2="4.54" y2="10.46"/><close/><move x="7.78" y="10.32"/><line x="7.52" y="7.89"/><line x="7.52" y="6.46"/><line x="4.93" y="6.46"/><line x="4.93" y="4.94"/><line x="9.12" y="4.94"/><line x="9.12" y="10.32"/><line x="7.78" y="10.32"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_home" w="77.28" h="20.46" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.235"/><constraint name="S" perimeter="0" x="0.5" y="0.985"/><constraint name="W" perimeter="0" x="0" y="0.5"/><constraint name="E" perimeter="0" x="0.998" y="0.5"/><constraint name="NE" perimeter="0" x="0.767" y="0.304"/><constraint name="SE" perimeter="0" x="0.785" y="0.985"/><constraint name="SW" perimeter="0" x="0.173" y="0.985"/><constraint name="NW" perimeter="0" x="0.173" y="0"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="70.53" y="6.9"/><curve x1="67.74" y1="6.9" x2="66.33" y2="8.71" x3="66.05" y3="11.38"/><line x="74.61" y="11.38"/><curve x1="74.46" y1="8.53" x2="73.17" y2="6.9" x3="70.53" y3="6.9"/><close/><move x="76.42" y="19.54"/><curve x1="75.16" y1="20.22" x2="73.23" y2="20.46" x3="71.67" y3="20.46"/><curve x1="65.94" y1="20.46" x2="63.42" y2="17.15" x3="63.42" y3="12.46"/><curve x1="63.42" y1="7.83" x2="66" y2="4.52" x3="70.66" y3="4.52"/><curve x1="75.38" y1="4.52" x2="77.28" y2="7.8" x3="77.28" y3="12.46"/><line x="77.28" y="13.66"/><line x="66.09" y="13.66"/><curve x1="66.46" y1="16.27" x2="68.15" y2="17.95" x3="71.76" y3="17.95"/><curve x1="73.54" y1="17.95" x2="75.04" y2="17.61" x3="76.42" y3="17.12"/><line x="76.42" y="19.54"/><close/><move x="50.26" y="11.62"/><line x="50.26" y="20.15"/><line x="47.62" y="20.15"/><line x="47.62" y="10.89"/><curve x1="47.62" y1="8.13" x2="46.52" y2="6.9" x3="44" y3="6.9"/><curve x1="41.55" y1="6.9" x2="39.86" y2="8.53" x3="39.86" y3="11.62"/><line x="39.86" y="20.15"/><line x="37.22" y="20.15"/><line x="37.22" y="4.81"/><line x="39.86" y="4.81"/><line x="39.86" y="7.33"/><curve x1="40.84" y1="5.52" x2="42.65" y2="4.51" x3="44.71" y3="4.51"/><curve x1="47.32" y1="4.51" x2="49.1" y2="5.83" x3="49.86" y3="8.25"/><curve x1="50.72" y1="5.89" x2="52.77" y2="4.51" x3="55.32" y3="4.51"/><curve x1="58.75" y1="4.51" x2="60.66" y2="6.84" x3="60.66" y3="11.17"/><line x="60.66" y="20.16"/><line x="58.02" y="20.16"/><line x="58.02" y="11.64"/><curve x1="58.02" y1="8.48" x2="56.92" y2="6.92" x3="54.4" y3="6.92"/><curve x1="51.95" y1="6.92" x2="50.26" y2="8.55" x3="50.26" y3="11.64"/><close/><move x="26.93" y="20.45"/><curve x1="22.33" y1="20.45" x2="19.63" y2="17.05" x3="19.63" y3="12.45"/><curve x1="19.63" y1="7.85" x2="22.33" y2="4.51" x3="26.93" y3="4.51"/><curve x1="31.5" y1="4.51" x2="34.17" y2="7.85" x3="34.17" y3="12.45"/><curve x1="34.17" y1="17.05" x2="31.5" y2="20.45" x3="26.93" y3="20.45"/><close/><move x="26.93" y="6.96"/><curve x1="23.65" y1="6.96" x2="22.21" y2="9.54" x3="22.21" y3="12.45"/><curve x1="22.21" y1="15.36" x2="23.65" y2="18" x3="26.93" y3="18"/><curve x1="30.18" y1="18" x2="31.59" y2="15.36" x3="31.59" y3="12.45"/><curve x1="31.59" y1="9.54" x2="30.18" y2="6.96" x3="26.93" y3="6.96"/><close/><move x="13.37" y="0"/><line x="16.13" y="0"/><line x="16.13" y="20.15"/><line x="13.37" y="20.15"/><line x="13.37" y="11.44"/><line x="2.76" y="11.44"/><line x="2.76" y="20.15"/><line x="0" y="20.15"/><line x="0" y="0"/><line x="2.76" y="0"/><line x="2.76" y="8.8"/><line x="13.37" y="8.8"/><line x="13.37" y="0"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_hub" w="51.21" h="22.06" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.888"/><constraint name="S" perimeter="0" x="0.5" y="0.999"/><constraint name="W" perimeter="0" x="0" y="0.5"/><constraint name="E" perimeter="0" x="0.993" y="0.5"/><constraint name="NE" perimeter="0" x="0.728" y="0"/><constraint name="SE" perimeter="0" x="0.728" y="0.986"/><constraint name="SW" perimeter="0" x="0.315" y="0.986"/><constraint name="NW" perimeter="0" x="0.261" y="0.073"/></connections><foreground><path><move x="48.58" y="14.08"/><curve x1="48.58" y1="10.4" x2="47.11" y2="8.56" x3="44.38" y3="8.56"/><curve x1="42.02" y1="8.56" x2="39.9" y2="10.06" x3="39.9" y3="13.47"/><line x="39.9" y="14.7"/><curve x1="39.9" y1="18.1" x2="41.83" y2="19.61" x3="44.07" y3="19.61"/><curve x1="47.05" y1="19.61" x2="48.58" y2="17.65" x3="48.58" y3="14.09"/><close/><move x="44.78" y="22.06"/><curve x1="42.54" y1="22.06" x2="40.82" y2="21.05" x3="39.9" y3="19.06"/><line x="39.9" y="21.76"/><line x="37.26" y="21.76"/><line x="37.26" y="0"/><line x="39.9" y="0"/><line x="39.9" y="9.17"/><curve x1="40.88" y1="7.15" x2="42.72" y2="6.1" x3="45.08" y3="6.1"/><curve x1="49.16" y1="6.1" x2="51.21" y2="9.57" x3="51.21" y3="14.07"/><curve x1="51.21" y1="18.39" x2="49.06" y2="22.04" x3="44.77" y3="22.04"/><close/><move x="20.25" y="15.4"/><line x="20.25" y="6.41"/><line x="22.89" y="6.41"/><line x="22.89" y="15.67"/><curve x1="22.89" y1="18.43" x2="23.99" y2="19.66" x3="26.51" y3="19.66"/><curve x1="28.96" y1="19.66" x2="30.65" y2="18.04" x3="30.65" y3="14.94"/><line x="30.65" y="6.41"/><line x="33.29" y="6.41"/><line x="33.29" y="21.74"/><line x="30.65" y="21.74"/><line x="30.65" y="19.23"/><curve x1="29.67" y1="21.04" x2="27.86" y2="22.05" x3="25.81" y3="22.05"/><curve x1="22.28" y1="22.05" x2="20.26" y2="19.63" x3="20.26" y3="15.4"/><close/><move x="13.37" y="1.6"/><line x="16.13" y="1.6"/><line x="16.13" y="21.75"/><line x="13.37" y="21.75"/><line x="13.37" y="13.04"/><line x="2.76" y="13.04"/><line x="2.76" y="21.75"/><line x="0" y="21.75"/><line x="0" y="1.6"/><line x="2.76" y="1.6"/><line x="2.76" y="10.4"/><line x="13.37" y="10.4"/><line x="13.37" y="1.6"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_jira" w="42.04" h="21.53" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.274"/><constraint name="S" perimeter="0" x="0.5" y="0.986"/><constraint name="W" perimeter="0" x="0.142" y="0.5"/><constraint name="E" perimeter="0" x="1" y="0.5"/><constraint name="NE" perimeter="0" x="0.841" y="0.262"/><constraint name="SE" perimeter="0" x="0.78" y="0.993"/><constraint name="SW" perimeter="0" x="0.295" y="0.986"/><constraint name="NW" perimeter="0" x="0.287" y="0.049"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="30.71" y="13.56"/><curve x1="30.71" y1="17.24" x2="32.18" y2="19.08" x3="34.91" y3="19.08"/><curve x1="37.27" y1="19.08" x2="39.39" y2="17.58" x3="39.39" y3="14.17"/><line x="39.39" y="12.94"/><curve x1="39.39" y1="9.54" x2="37.46" y2="8.03" x3="35.22" y3="8.03"/><curve x1="32.24" y1="8.03" x2="30.71" y2="9.99" x3="30.71" y3="13.55"/><close/><move x="39.39" y="21.22"/><line x="39.39" y="18.46"/><curve x1="38.41" y1="20.48" x2="36.57" y2="21.53" x3="34.21" y3="21.53"/><curve x1="30.13" y1="21.53" x2="28.08" y2="18.07" x3="28.08" y3="13.56"/><curve x1="28.08" y1="9.24" x2="30.23" y2="5.59" x3="34.52" y3="5.59"/><curve x1="36.76" y1="5.59" x2="38.48" y2="6.6" x3="39.4" y3="8.6"/><line x="39.4" y="5.89"/><line x="42.04" y="5.89"/><line x="42.04" y="21.22"/><line x="39.39" y="21.22"/><close/><move x="21.6" y="12.18"/><line x="21.6" y="21.23"/><line x="19.02" y="21.23"/><line x="19.02" y="5.89"/><line x="21.6" y="5.89"/><line x="21.6" y="8.59"/><curve x1="22.49" y1="6.78" x2="24.02" y2="5.49" x3="27.03" y3="5.68"/><line x="27.03" y="8.26"/><curve x1="23.66" y1="7.92" x2="21.6" y2="8.93" x3="21.6" y3="12.19"/><close/><move x="11.91" y="1.84"/><curve x1="11.91" y1="0.67" x2="12.68" y2="0" x3="13.75" y3="0"/><curve x1="14.82" y1="0" x2="15.59" y2="0.67" x3="15.59" y3="1.84"/><curve x1="15.59" y1="3.01" x2="14.82" y2="3.68" x3="13.75" y3="3.68"/><curve x1="12.68" y1="3.68" x2="11.91" y2="3.01" x3="11.91" y3="1.84"/><close/><move x="12.4" y="21.22"/><line x="12.4" y="5.89"/><line x="15.04" y="5.89"/><line x="15.04" y="21.22"/><line x="12.4" y="21.22"/><close/><move x="5.98" y="15.27"/><line x="5.98" y="1.08"/><line x="8.74" y="1.08"/><line x="8.74" y="15.09"/><curve x1="8.74" y1="18.8" x2="7.11" y2="21.35" x3="3.31" y3="21.35"/><curve x1="1.87" y1="21.35" x2="0.76" y2="21.1" x3="0" y3="20.83"/><line x="0" y="18.16"/><curve x1="0.83" y1="18.5" x2="1.84" y2="18.68" x3="2.85" y3="18.68"/><curve x1="5.18" y1="18.68" x2="5.98" y2="17.27" x3="5.98" y3="15.28"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_jira_align" w="114.69" h="27.91" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.057"/><constraint name="S" perimeter="0" x="0.5" y="0.634"/><constraint name="W" perimeter="0" x="0.052" y="0.5"/><constraint name="E" perimeter="0" x="1" y="0.5"/><constraint name="NE" perimeter="0" x="0.705" y="0.036"/><constraint name="SE" perimeter="0" x="0.827" y="0.957"/><constraint name="SW" perimeter="0" x="0" y="0.765"/><constraint name="NW" perimeter="0" x="0.211" y="0.235"/></connections><foreground><path><move x="114.686" y="12.757"/><line x="114.686" y="21.742"/><line x="112.048" y="21.742"/><line x="112.048" y="12.482"/><curve x1="112.048" y1="9.722" x2="110.944" y2="8.494" x3="108.43" y3="8.494"/><curve x1="105.976" y1="8.494" x2="104.29" y2="10.12" x3="104.29" y3="13.217"/><line x="104.29" y="21.742"/><line x="101.652" y="21.742"/><line x="101.652" y="6.409"/><line x="104.29" y="6.409"/><line x="104.29" y="8.924"/><curve x1="105.271" y1="7.114" x2="107.08" y2="6.102" x3="109.135" y3="6.102"/><curve x1="112.662" y1="6.102" x2="114.686" y2="8.525" x3="114.686" y3="12.757"/><close/><move x="95.097" y="20.516"/><line x="95.097" y="18.982"/><curve x1="94.115" y1="21.006" x2="92.275" y2="22.049" x3="89.914" y3="22.049"/><curve x1="85.866" y1="22.049" x2="83.842" y2="18.584" x3="83.842" y3="14.076"/><curve x1="83.842" y1="9.752" x2="85.958" y2="6.102" x3="90.221" y3="6.102"/><curve x1="92.459" y1="6.102" x2="94.177" y2="7.114" x3="95.097" y3="9.108"/><line x="95.097" y="6.409"/><line x="97.673" y="6.409"/><line x="97.673" y="20.362"/><curve x1="97.673" y1="24.87" x2="95.557" y2="27.906" x3="90.067" y3="27.906"/><curve x1="87.491" y1="27.906" x2="86.081" y2="27.569" x3="84.609" y3="27.078"/><line x="84.609" y="24.502"/><curve x1="86.295" y1="25.054" x2="88.043" y2="25.422" x3="89.945" y3="25.422"/><curve x1="93.778" y1="25.422" x2="95.097" y2="23.368" x3="95.097" y3="20.516"/><close/><move x="86.418" y="14.076"/><curve x1="86.418" y1="17.756" x2="87.89" y2="19.596" x3="90.619" y3="19.596"/><curve x1="92.981" y1="19.596" x2="95.097" y2="18.093" x3="95.097" y3="14.689"/><line x="95.097" y="13.462"/><curve x1="95.097" y1="10.058" x2="93.165" y2="8.556" x3="90.926" y3="8.556"/><curve x1="87.951" y1="8.556" x2="86.418" y2="10.518" x3="86.418" y3="14.076"/><close/><move x="77.653" y="2.362"/><curve x1="77.653" y1="1.196" x2="78.419" y2="0.522" x3="79.493" y3="0.522"/><curve x1="80.566" y1="0.522" x2="81.333" y2="1.196" x3="81.333" y3="2.362"/><curve x1="81.333" y1="3.528" x2="80.566" y2="4.202" x3="79.493" y3="4.202"/><curve x1="78.419" y1="4.202" x2="77.653" y2="3.527" x3="77.653" y3="2.362"/><close/><move x="78.143" y="21.742"/><line x="78.143" y="6.41"/><line x="80.781" y="6.41"/><line x="80.781" y="21.744"/><line x="78.143" y="21.744"/><line x="78.143" y="21.742"/><close/><move x="75.606" y="21.712"/><curve x1="75.391" y1="21.773" x2="74.931" y2="21.834" x3="74.257" y3="21.834"/><curve x1="71.742" y1="21.834" x2="70.147" y2="20.638" x3="70.147" y3="17.817"/><line x="70.147" y="0"/><line x="72.785" y="0"/><line x="72.785" y="17.51"/><curve x1="72.785" y1="18.89" x2="73.705" y2="19.381" x3="74.839" y3="19.381"/><curve x1="75.115" y1="19.381" x2="75.299" y2="19.381" x3="75.606" y3="19.351"/><line x="75.606" y="21.711"/><line x="75.606" y="21.712"/><close/><move x="58.523" y="17.725"/><curve x1="56.989" y1="17.725" x2="55.425" y2="17.541" x3="53.708" y3="17.204"/><line x="52.021" y="21.743"/><line x="48.924" y="21.743"/><line x="56.866" y="1.595"/><line x="60.362" y="1.595"/><line x="68.305" y="21.743"/><line x="65.208" y="21.743"/><line x="63.521" y="17.173"/><curve x1="61.711" y1="17.541" x2="60.148" y2="17.725" x3="58.522" y3="17.725"/><line x="58.523" y="17.725"/><close/><move x="58.523" y="15.272"/><curve x1="59.81" y1="15.272" x2="61.129" y2="15.119" x3="62.693" y3="14.873"/><line x="58.614" y="3.833"/><line x="54.536" y="14.903"/><curve x1="56.038" y1="15.149" x2="57.296" y2="15.272" x3="58.522" y3="15.272"/><line x="58.523" y="15.272"/><close/><move x="30.716" y="14.076"/><curve x1="30.716" y1="17.756" x2="32.188" y2="19.596" x3="34.918" y3="19.596"/><curve x1="37.278" y1="19.596" x2="39.395" y2="18.093" x3="39.395" y3="14.689"/><line x="39.395" y="13.462"/><curve x1="39.395" y1="10.058" x2="37.463" y2="8.556" x3="35.225" y3="8.556"/><curve x1="32.25" y1="8.556" x2="30.716" y2="10.518" x3="30.716" y3="14.076"/><close/><move x="39.395" y="21.742"/><line x="39.395" y="18.982"/><curve x1="38.414" y1="21.006" x2="36.573" y2="22.049" x3="34.212" y3="22.049"/><curve x1="30.133" y1="22.049" x2="28.079" y2="18.584" x3="28.079" y3="14.076"/><curve x1="28.079" y1="9.752" x2="30.225" y2="6.102" x3="34.519" y3="6.102"/><curve x1="36.758" y1="6.102" x2="38.475" y2="7.114" x3="39.395" y3="9.108"/><line x="39.395" y="6.409"/><line x="42.032" y="6.409"/><line x="42.032" y="21.742"/><line x="39.395" y="21.742"/><close/><move x="21.603" y="12.696"/><line x="21.603" y="21.743"/><line x="19.026" y="21.743"/><line x="19.026" y="6.409"/><line x="21.602" y="6.409"/><line x="21.602" y="9.108"/><curve x1="22.492" y1="7.298" x2="24.025" y2="6.011" x3="27.03" y3="6.195"/><line x="27.03" y="8.771"/><curve x1="23.657" y1="8.433" x2="21.602" y2="9.445" x3="21.602" y3="12.696"/><line x="21.603" y="12.696"/><close/><move x="11.917" y="2.362"/><curve x1="11.917" y1="1.196" x2="12.684" y2="0.522" x3="13.757" y3="0.522"/><curve x1="14.83" y1="0.522" x2="15.597" y2="1.196" x3="15.597" y3="2.362"/><curve x1="15.597" y1="3.528" x2="14.83" y2="4.202" x3="13.757" y3="4.202"/><curve x1="12.684" y1="4.202" x2="11.917" y2="3.527" x3="11.917" y3="2.362"/><close/><move x="12.407" y="21.742"/><line x="12.407" y="6.41"/><line x="15.045" y="6.41"/><line x="15.045" y="21.744"/><line x="12.408" y="21.744"/><line x="12.407" y="21.742"/><close/><move x="5.98" y="15.793"/><line x="5.98" y="1.595"/><line x="8.74" y="1.595"/><line x="8.74" y="15.609"/><curve x1="8.74" y1="19.319" x2="7.114" y2="21.865" x3="3.312" y3="21.865"/><curve x1="1.87" y1="21.865" x2="0.766" y2="21.62" x3="0" y3="21.344"/><line x="0" y="18.676"/><curve x1="0.828" y1="19.013" x2="1.84" y2="19.197" x3="2.852" y3="19.197"/><curve x1="5.182" y1="19.197" x2="5.98" y2="17.787" x3="5.98" y3="15.793"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_jira_data_center" w="42.04" h="21.53" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.274"/><constraint name="S" perimeter="0" x="0.5" y="0.986"/><constraint name="W" perimeter="0" x="0.142" y="0.5"/><constraint name="E" perimeter="0" x="1" y="0.5"/><constraint name="NE" perimeter="0" x="0.841" y="0.262"/><constraint name="SE" perimeter="0" x="0.78" y="0.993"/><constraint name="SW" perimeter="0" x="0.295" y="0.986"/><constraint name="NW" perimeter="0" x="0.287" y="0.049"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="30.71" y="13.56"/><curve x1="30.71" y1="17.24" x2="32.18" y2="19.08" x3="34.91" y3="19.08"/><curve x1="37.27" y1="19.08" x2="39.39" y2="17.58" x3="39.39" y3="14.17"/><line x="39.39" y="12.94"/><curve x1="39.39" y1="9.54" x2="37.46" y2="8.03" x3="35.22" y3="8.03"/><curve x1="32.24" y1="8.03" x2="30.71" y2="9.99" x3="30.71" y3="13.55"/><close/><move x="39.39" y="21.22"/><line x="39.39" y="18.46"/><curve x1="38.41" y1="20.48" x2="36.57" y2="21.53" x3="34.21" y3="21.53"/><curve x1="30.13" y1="21.53" x2="28.08" y2="18.06" x3="28.08" y3="13.56"/><curve x1="28.08" y1="9.24" x2="30.23" y2="5.59" x3="34.52" y3="5.59"/><curve x1="36.76" y1="5.59" x2="38.48" y2="6.6" x3="39.4" y3="8.6"/><line x="39.4" y="5.89"/><line x="42.04" y="5.89"/><line x="42.04" y="21.22"/><line x="39.39" y="21.22"/><close/><move x="21.6" y="12.18"/><line x="21.6" y="21.23"/><line x="19.02" y="21.23"/><line x="19.02" y="5.89"/><line x="21.6" y="5.89"/><line x="21.6" y="8.59"/><curve x1="22.49" y1="6.78" x2="24.02" y2="5.49" x3="27.03" y3="5.68"/><line x="27.03" y="8.26"/><curve x1="23.66" y1="7.92" x2="21.6" y2="8.93" x3="21.6" y3="12.19"/><close/><move x="11.91" y="1.84"/><curve x1="11.91" y1="0.67" x2="12.68" y2="0" x3="13.75" y3="0"/><curve x1="14.82" y1="0" x2="15.59" y2="0.67" x3="15.59" y3="1.84"/><curve x1="15.59" y1="3.01" x2="14.82" y2="3.68" x3="13.75" y3="3.68"/><curve x1="12.68" y1="3.68" x2="11.91" y2="3.01" x3="11.91" y3="1.84"/><close/><move x="12.4" y="21.22"/><line x="12.4" y="5.89"/><line x="15.04" y="5.89"/><line x="15.04" y="21.22"/><line x="12.4" y="21.22"/><close/><move x="5.98" y="15.27"/><line x="5.98" y="1.08"/><line x="8.74" y="1.08"/><line x="8.74" y="15.09"/><curve x1="8.74" y1="18.8" x2="7.11" y2="21.35" x3="3.31" y3="21.35"/><curve x1="1.87" y1="21.35" x2="0.76" y2="21.11" x3="0" y3="20.83"/><line x="0" y="18.16"/><curve x1="0.83" y1="18.5" x2="1.84" y2="18.68" x3="2.85" y3="18.68"/><curve x1="5.18" y1="18.68" x2="5.98" y2="17.27" x3="5.98" y3="15.28"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_jira_product_discovery" w="285.76" h="27.9" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.23"/><constraint name="W" perimeter="0" x="0.021" y="0.5"/><constraint name="E" perimeter="0" x="0.99" y="0.5"/><constraint name="NE" perimeter="0" x="0.956" y="0.23"/><constraint name="SE" perimeter="0" x="0.971" y="0.94"/><constraint name="NW" perimeter="0" x="0.021" y="0.057"/></connections><foreground><path><move x="277.57" y="20.76"/><line x="275.85" y="20.76"/><line x="270.31" y="6.41"/><line x="273.13" y="6.41"/><line x="278.04" y="19.54"/><line x="282.94" y="6.41"/><line x="285.76" y="6.41"/><line x="279.96" y="21.25"/><curve x1="278.24" y1="25.64" x2="277.26" y2="27.9" x3="273.37" y3="27.9"/><curve x1="272.05" y1="27.9" x2="271.31" y2="27.78" x3="270.55" y3="27.47"/><line x="270.55" y="25.2"/><curve x1="271.44" y1="25.48" x2="272.45" y2="25.57" x3="273.22" y3="25.57"/><curve x1="275.37" y1="25.57" x2="276.32" y2="24.1" x3="277.58" y3="20.75"/><close/><move x="264.33" y="12.7"/><line x="264.33" y="21.75"/><line x="261.75" y="21.75"/><line x="261.75" y="6.41"/><line x="264.33" y="6.41"/><line x="264.33" y="9.11"/><curve x1="265.22" y1="7.3" x2="266.75" y2="6.01" x3="269.76" y3="6.2"/><line x="269.76" y="8.78"/><curve x1="266.39" y1="8.44" x2="264.33" y2="9.45" x3="264.33" y3="12.71"/><close/><move x="251.86" y="8.5"/><curve x1="249.07" y1="8.5" x2="247.66" y2="10.31" x3="247.38" y3="12.98"/><line x="255.94" y="12.98"/><curve x1="255.79" y1="10.13" x2="254.5" y2="8.5" x3="251.86" y3="8.5"/><close/><move x="257.75" y="21.14"/><curve x1="256.49" y1="21.82" x2="254.56" y2="22.06" x3="253" y3="22.06"/><curve x1="247.27" y1="22.06" x2="244.75" y2="18.75" x3="244.75" y3="14.06"/><curve x1="244.75" y1="9.43" x2="247.33" y2="6.12" x3="251.99" y3="6.12"/><curve x1="256.71" y1="6.12" x2="258.61" y2="9.4" x3="258.61" y3="14.06"/><line x="258.61" y="15.26"/><line x="247.42" y="15.26"/><curve x1="247.79" y1="17.87" x2="249.48" y2="19.55" x3="253.09" y3="19.55"/><curve x1="254.87" y1="19.55" x2="256.37" y2="19.21" x3="257.75" y3="18.72"/><line x="257.75" y="21.14"/><close/><move x="238.03" y="21.74"/><line x="234.5" y="21.74"/><line x="228.56" y="6.41"/><line x="231.32" y="6.41"/><line x="236.29" y="19.51"/><line x="241.22" y="6.41"/><line x="243.98" y="6.41"/><line x="238.03" y="21.74"/><close/><move x="220.57" y="22.05"/><curve x1="215.97" y1="22.05" x2="213.27" y2="18.65" x3="213.27" y3="14.05"/><curve x1="213.27" y1="9.45" x2="215.97" y2="6.11" x3="220.57" y3="6.11"/><curve x1="225.14" y1="6.11" x2="227.81" y2="9.45" x3="227.81" y3="14.05"/><curve x1="227.81" y1="18.65" x2="225.14" y2="22.05" x3="220.57" y3="22.05"/><close/><move x="220.57" y="8.56"/><curve x1="217.29" y1="8.56" x2="215.85" y2="11.14" x3="215.85" y3="14.05"/><curve x1="215.85" y1="16.96" x2="217.29" y2="19.6" x3="220.57" y3="19.6"/><curve x1="223.82" y1="19.6" x2="225.23" y2="16.96" x3="225.23" y3="14.05"/><curve x1="225.23" y1="11.14" x2="223.82" y2="8.56" x3="220.57" y3="8.56"/><close/><move x="211.18" y="18.98"/><line x="211.18" y="21.34"/><curve x1="210.26" y1="21.83" x2="208.85" y2="22.05" x3="207.44" y3="22.05"/><curve x1="201.98" y1="22.05" x2="199.44" y2="18.74" x3="199.44" y3="14.05"/><curve x1="199.44" y1="9.42" x2="201.99" y2="6.11" x3="207.44" y3="6.11"/><curve x1="208.82" y1="6.11" x2="209.89" y2="6.29" x3="211.09" y3="6.85"/><line x="211.09" y="9.3"/><curve x1="210.11" y1="8.84" x2="209.07" y2="8.56" x3="207.63" y3="8.56"/><curve x1="203.64" y1="8.56" x2="202.02" y2="11.07" x3="202.02" y3="14.05"/><curve x1="202.02" y1="17.03" x2="203.68" y2="19.54" x3="207.69" y3="19.54"/><curve x1="209.25" y1="19.54" x2="210.24" y2="19.33" x3="211.19" y3="18.99"/><close/><move x="197.31" y="17.57"/><curve x1="197.31" y1="20.12" x2="195.65" y2="22.05" x3="191.55" y3="22.05"/><curve x1="189.25" y1="22.05" x2="187.38" y2="21.53" x3="186.21" y3="20.92"/><line x="186.21" y="18.13"/><curve x1="187.53" y1="18.9" x2="189.74" y2="19.63" x3="191.67" y3="19.63"/><curve x1="193.69" y1="19.63" x2="194.74" y2="18.8" x3="194.74" y3="17.61"/><curve x1="194.74" y1="16.45" x2="193.85" y2="15.77" x3="190.94" y3="15.07"/><curve x1="187.54" y1="14.24" x2="186.09" y2="12.92" x3="186.09" y3="10.41"/><curve x1="186.09" y1="7.74" x2="188.15" y2="6.12" x3="191.64" y3="6.12"/><curve x1="193.63" y1="6.12" x2="195.44" y2="6.61" x3="196.58" y3="7.22"/><line x="196.58" y="9.95"/><curve x1="194.74" y1="9.03" x2="193.24" y2="8.54" x3="191.61" y3="8.54"/><curve x1="189.68" y1="8.54" x2="188.64" y2="9.22" x3="188.64" y3="10.41"/><curve x1="188.64" y1="11.48" x2="189.38" y2="12.16" x3="192.2" y3="12.83"/><curve x1="195.6" y1="13.66" x2="197.32" y2="14.92" x3="197.32" y3="17.58"/><close/><move x="179.62" y="2.36"/><curve x1="179.62" y1="1.2" x2="180.39" y2="0.52" x3="181.46" y3="0.52"/><curve x1="182.53" y1="0.52" x2="183.3" y2="1.2" x3="183.3" y3="2.36"/><curve x1="183.3" y1="3.52" x2="182.53" y2="4.2" x3="181.46" y3="4.2"/><curve x1="180.39" y1="4.2" x2="179.62" y2="3.53" x3="179.62" y3="2.36"/><close/><move x="180.11" y="21.74"/><line x="180.11" y="6.41"/><line x="182.75" y="6.41"/><line x="182.75" y="21.74"/><line x="180.11" y="21.74"/><close/><move x="167.37" y="4.23"/><line x="162.83" y="4.23"/><line x="162.83" y="19.1"/><line x="167.52" y="19.1"/><curve x1="172.12" y1="19.1" x2="174.42" y2="16.68" x3="174.42" y3="11.8"/><curve x1="174.42" y1="6.89" x2="172.24" y2="4.23" x3="167.37" y3="4.23"/><close/><move x="160.07" y="21.74"/><line x="160.07" y="1.6"/><line x="167.49" y="1.6"/><curve x1="174.02" y1="1.6" x2="177.18" y2="5.68" x3="177.18" y3="11.72"/><curve x1="177.18" y1="17.82" x2="173.99" y2="21.75" x3="167.49" y3="21.75"/><line x="160.07" y="21.74"/><close/><move x="146.66" y="16.99"/><curve x1="146.66" y1="18.34" x2="147.46" y2="19.26" x3="149.08" y3="19.26"/><curve x1="149.69" y1="19.26" x2="150.28" y2="19.14" x3="150.74" y3="19.05"/><line x="150.74" y="21.6"/><curve x1="150.28" y1="21.72" x2="149.76" y2="21.85" x3="148.96" y3="21.85"/><curve x1="145.68" y1="21.85" x2="144.08" y2="19.92" x3="144.08" y3="17.07"/><line x="144.08" y="8.88"/><line x="141.6" y="8.88"/><line x="141.6" y="6.41"/><line x="144.08" y="6.41"/><line x="144.08" y="3.16"/><line x="146.66" y="3.16"/><line x="146.66" y="6.41"/><line x="150.74" y="6.41"/><line x="150.74" y="8.86"/><line x="146.66" y="8.86"/><line x="146.66" y="16.99"/><close/><move x="140" y="18.98"/><line x="140" y="21.34"/><curve x1="139.08" y1="21.83" x2="137.67" y2="22.05" x3="136.26" y3="22.05"/><curve x1="130.8" y1="22.05" x2="128.26" y2="18.74" x3="128.26" y3="14.05"/><curve x1="128.26" y1="9.42" x2="130.81" y2="6.11" x3="136.26" y3="6.11"/><curve x1="137.64" y1="6.11" x2="138.71" y2="6.29" x3="139.91" y3="6.85"/><line x="139.91" y="9.3"/><curve x1="138.93" y1="8.84" x2="137.89" y2="8.56" x3="136.45" y3="8.56"/><curve x1="132.46" y1="8.56" x2="130.84" y2="11.07" x3="130.84" y3="14.05"/><curve x1="130.84" y1="17.03" x2="132.5" y2="19.54" x3="136.51" y3="19.54"/><curve x1="138.07" y1="19.54" x2="139.06" y2="19.33" x3="140.01" y3="18.99"/><close/><move x="112.15" y="15.4"/><line x="112.15" y="6.41"/><line x="114.79" y="6.41"/><line x="114.79" y="15.67"/><curve x1="114.79" y1="18.43" x2="115.89" y2="19.66" x3="118.41" y3="19.66"/><curve x1="120.86" y1="19.66" x2="122.55" y2="18.04" x3="122.55" y3="14.94"/><line x="122.55" y="6.41"/><line x="125.19" y="6.41"/><line x="125.19" y="21.74"/><line x="122.55" y="21.74"/><line x="122.55" y="19.23"/><curve x1="121.57" y1="21.04" x2="119.76" y2="22.05" x3="117.71" y3="22.05"/><curve x1="114.18" y1="22.05" x2="112.16" y2="19.63" x3="112.16" y3="15.4"/><close/><move x="97.17" y="14.08"/><curve x1="97.17" y1="17.76" x2="98.64" y2="19.6" x3="101.37" y3="19.6"/><curve x1="103.73" y1="19.6" x2="105.85" y2="18.1" x3="105.85" y3="14.69"/><line x="105.85" y="13.46"/><curve x1="105.85" y1="10.06" x2="103.92" y2="8.55" x3="101.68" y3="8.55"/><curve x1="98.71" y1="8.55" x2="97.17" y2="10.51" x3="97.17" y3="14.07"/><close/><move x="105.85" y="21.74"/><line x="105.85" y="18.98"/><curve x1="104.87" y1="21" x2="103.03" y2="22.05" x3="100.67" y3="22.05"/><curve x1="96.59" y1="22.05" x2="94.54" y2="18.59" x3="94.54" y3="14.08"/><curve x1="94.54" y1="9.76" x2="96.69" y2="6.11" x3="100.98" y3="6.11"/><curve x1="103.22" y1="6.11" x2="104.94" y2="7.12" x3="105.86" y3="9.12"/><line x="105.86" y="0"/><line x="108.5" y="0"/><line x="108.5" y="21.74"/><line x="105.85" y="21.74"/><close/><move x="85.15" y="22.05"/><curve x1="80.55" y1="22.05" x2="77.85" y2="18.65" x3="77.85" y3="14.05"/><curve x1="77.85" y1="9.45" x2="80.55" y2="6.11" x3="85.15" y3="6.11"/><curve x1="89.72" y1="6.11" x2="92.39" y2="9.45" x3="92.39" y3="14.05"/><curve x1="92.39" y1="18.65" x2="89.72" y2="22.05" x3="85.15" y3="22.05"/><close/><move x="85.15" y="8.56"/><curve x1="81.87" y1="8.56" x2="80.43" y2="11.14" x3="80.43" y3="14.05"/><curve x1="80.43" y1="16.96" x2="81.87" y2="19.6" x3="85.15" y3="19.6"/><curve x1="88.4" y1="19.6" x2="89.81" y2="16.96" x3="89.81" y3="14.05"/><curve x1="89.81" y1="11.14" x2="88.4" y2="8.56" x3="85.15" y3="8.56"/><close/><move x="71.37" y="12.7"/><line x="71.37" y="21.75"/><line x="68.79" y="21.75"/><line x="68.79" y="6.41"/><line x="71.37" y="6.41"/><line x="71.37" y="9.11"/><curve x1="72.26" y1="7.3" x2="73.79" y2="6.01" x3="76.8" y3="6.2"/><line x="76.8" y="8.78"/><curve x1="73.43" y1="8.44" x2="71.37" y2="9.45" x3="71.37" y3="12.71"/><close/><move x="66.37" y="8.31"/><curve x1="66.37" y1="12.7" x2="63.92" y2="15.15" x3="58.89" y3="15.15"/><line x="54.87" y="15.15"/><line x="54.87" y="21.74"/><line x="52.11" y="21.74"/><line x="52.11" y="1.6"/><line x="58.89" y="1.6"/><curve x1="63.92" y1="1.6" x2="66.37" y2="4.18" x3="66.37" y3="8.32"/><close/><move x="58.58" y="12.52"/><curve x1="62.14" y1="12.64" x2="63.52" y2="10.96" x3="63.52" y3="8.38"/><curve x1="63.52" y1="5.93" x2="62.14" y2="4.24" x3="58.58" y3="4.24"/><line x="54.87" y="4.24"/><line x="54.87" y="12.52"/><line x="58.58" y="12.52"/><close/><move x="30.71" y="14.08"/><curve x1="30.71" y1="17.76" x2="32.18" y2="19.6" x3="34.91" y3="19.6"/><curve x1="37.27" y1="19.6" x2="39.39" y2="18.1" x3="39.39" y3="14.69"/><line x="39.39" y="13.46"/><curve x1="39.39" y1="10.06" x2="37.46" y2="8.55" x3="35.22" y3="8.55"/><curve x1="32.24" y1="8.55" x2="30.71" y2="10.51" x3="30.71" y3="14.07"/><close/><move x="39.39" y="21.74"/><line x="39.39" y="18.98"/><curve x1="38.41" y1="21" x2="36.57" y2="22.05" x3="34.21" y3="22.05"/><curve x1="30.13" y1="22.05" x2="28.08" y2="18.59" x3="28.08" y3="14.08"/><curve x1="28.08" y1="9.76" x2="30.23" y2="6.11" x3="34.52" y3="6.11"/><curve x1="36.76" y1="6.11" x2="38.48" y2="7.12" x3="39.4" y3="9.12"/><line x="39.4" y="6.41"/><line x="42.04" y="6.41"/><line x="42.04" y="21.74"/><line x="39.39" y="21.74"/><close/><move x="21.6" y="12.7"/><line x="21.6" y="21.75"/><line x="19.02" y="21.75"/><line x="19.02" y="6.41"/><line x="21.6" y="6.41"/><line x="21.6" y="9.11"/><curve x1="22.49" y1="7.3" x2="24.02" y2="6.01" x3="27.03" y3="6.2"/><line x="27.03" y="8.78"/><curve x1="23.66" y1="8.44" x2="21.6" y2="9.45" x3="21.6" y3="12.71"/><close/><move x="11.91" y="2.36"/><curve x1="11.91" y1="1.2" x2="12.68" y2="0.52" x3="13.75" y3="0.52"/><curve x1="14.82" y1="0.52" x2="15.59" y2="1.2" x3="15.59" y3="2.36"/><curve x1="15.59" y1="3.52" x2="14.82" y2="4.2" x3="13.75" y3="4.2"/><curve x1="12.68" y1="4.2" x2="11.91" y2="3.53" x3="11.91" y3="2.36"/><close/><move x="12.4" y="21.74"/><line x="12.4" y="6.41"/><line x="15.04" y="6.41"/><line x="15.04" y="21.74"/><line x="12.4" y="21.74"/><close/><move x="5.98" y="15.79"/><line x="5.98" y="1.6"/><line x="8.74" y="1.6"/><line x="8.74" y="15.61"/><curve x1="8.74" y1="19.32" x2="7.11" y2="21.87" x3="3.31" y3="21.87"/><curve x1="1.87" y1="21.87" x2="0.76" y2="21.63" x3="0" y3="21.35"/><line x="0" y="18.68"/><curve x1="0.83" y1="19.02" x2="1.84" y2="19.2" x3="2.85" y3="19.2"/><curve x1="5.18" y1="19.2" x2="5.98" y2="17.79" x3="5.98" y3="15.8"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_jira_service_management" w="330.84" h="27.38" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.529"/><constraint name="W" perimeter="0" x="0.018" y="0.5"/><constraint name="E" perimeter="0" x="0.988" y="0.5"/></connections><foreground><path><move x="326.76" y="16.47"/><curve x1="326.76" y1="17.82" x2="327.56" y2="18.74" x3="329.18" y3="18.74"/><curve x1="329.79" y1="18.74" x2="330.38" y2="18.62" x3="330.84" y3="18.53"/><line x="330.84" y="21.08"/><arc rx="6.3" ry="6.3" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="329.06" y="21.33"/><curve x1="325.78" y1="21.33" x2="324.18" y2="19.4" x3="324.18" y3="16.55"/><line x="324.18" y="8.36"/><line x="321.7" y="8.36"/><line x="321.7" y="5.89"/><line x="324.18" y="5.89"/><line x="324.18" y="2.64"/><line x="326.76" y="2.64"/><line x="326.76" y="5.89"/><line x="330.84" y="5.89"/><line x="330.84" y="8.34"/><line x="326.76" y="8.34"/><line x="326.76" y="16.47"/><close/><move x="319.44" y="12.24"/><line x="319.44" y="21.23"/><line x="316.8" y="21.23"/><line x="316.8" y="11.97"/><curve x1="316.8" y1="9.21" x2="315.7" y2="7.98" x3="313.18" y3="7.98"/><curve x1="310.73" y1="7.98" x2="309.04" y2="9.61" x3="309.04" y3="12.7"/><line x="309.04" y="21.23"/><line x="306.4" y="21.23"/><line x="306.4" y="5.89"/><line x="309.04" y="5.89"/><line x="309.04" y="8.41"/><curve x1="310.02" y1="6.6" x2="311.83" y2="5.59" x3="313.89" y3="5.59"/><curve x1="317.42" y1="5.59" x2="319.44" y2="8.01" x3="319.44" y3="12.25"/><close/><move x="296.52" y="7.98"/><curve x1="293.73" y1="7.98" x2="292.32" y2="9.79" x3="292.04" y3="12.46"/><line x="300.6" y="12.46"/><curve x1="300.45" y1="9.61" x2="299.16" y2="7.98" x3="296.52" y3="7.98"/><close/><move x="302.41" y="20.62"/><curve x1="301.15" y1="21.3" x2="299.22" y2="21.54" x3="297.66" y3="21.54"/><curve x1="291.93" y1="21.54" x2="289.41" y2="18.23" x3="289.41" y3="13.54"/><curve x1="289.41" y1="8.91" x2="291.99" y2="5.6" x3="296.65" y3="5.6"/><curve x1="301.37" y1="5.6" x2="303.27" y2="8.88" x3="303.27" y3="13.54"/><line x="303.27" y="14.74"/><line x="292.08" y="14.74"/><curve x1="292.45" y1="17.35" x2="294.14" y2="19.03" x3="297.75" y3="19.03"/><curve x1="299.53" y1="19.03" x2="301.03" y2="18.69" x3="302.41" y3="18.2"/><line x="302.41" y="20.62"/><close/><move x="276.25" y="12.7"/><line x="276.25" y="21.23"/><line x="273.61" y="21.23"/><line x="273.61" y="11.97"/><curve x1="273.61" y1="9.21" x2="272.51" y2="7.98" x3="269.99" y3="7.98"/><curve x1="267.54" y1="7.98" x2="265.85" y2="9.61" x3="265.85" y3="12.7"/><line x="265.85" y="21.23"/><line x="263.21" y="21.23"/><line x="263.21" y="5.89"/><line x="265.85" y="5.89"/><line x="265.85" y="8.41"/><curve x1="266.83" y1="6.6" x2="268.64" y2="5.59" x3="270.7" y3="5.59"/><curve x1="273.31" y1="5.59" x2="275.09" y2="6.91" x3="275.85" y3="9.33"/><curve x1="276.71" y1="6.97" x2="278.76" y2="5.59" x3="281.31" y3="5.59"/><curve x1="284.74" y1="5.59" x2="286.65" y2="7.92" x3="286.65" y3="12.25"/><line x="286.65" y="21.24"/><line x="284.01" y="21.24"/><line x="284.01" y="12.72"/><curve x1="284.01" y1="9.56" x2="282.91" y2="8" x3="280.39" y3="8"/><curve x1="277.94" y1="8" x2="276.25" y2="9.63" x3="276.25" y3="12.72"/><close/><move x="253.33" y="7.98"/><curve x1="250.54" y1="7.98" x2="249.13" y2="9.79" x3="248.85" y3="12.46"/><line x="257.41" y="12.46"/><curve x1="257.26" y1="9.61" x2="255.97" y2="7.98" x3="253.33" y3="7.98"/><close/><move x="259.22" y="20.62"/><curve x1="257.96" y1="21.3" x2="256.03" y2="21.54" x3="254.47" y3="21.54"/><curve x1="248.74" y1="21.54" x2="246.22" y2="18.23" x3="246.22" y3="13.54"/><curve x1="246.22" y1="8.91" x2="248.8" y2="5.6" x3="253.46" y3="5.6"/><curve x1="258.18" y1="5.6" x2="260.08" y2="8.88" x3="260.08" y3="13.54"/><line x="260.08" y="14.74"/><line x="248.89" y="14.74"/><curve x1="249.26" y1="17.35" x2="250.95" y2="19.03" x3="254.56" y3="19.03"/><curve x1="256.34" y1="19.03" x2="257.84" y2="18.69" x3="259.22" y3="18.2"/><line x="259.22" y="20.62"/><close/><move x="240.58" y="20"/><line x="240.58" y="18.47"/><curve x1="239.6" y1="20.49" x2="237.76" y2="21.54" x3="235.4" y3="21.54"/><curve x1="231.35" y1="21.54" x2="229.33" y2="18.08" x3="229.33" y3="13.57"/><curve x1="229.33" y1="9.25" x2="231.45" y2="5.6" x3="235.71" y3="5.6"/><curve x1="237.95" y1="5.6" x2="239.67" y2="6.61" x3="240.59" y3="8.61"/><line x="240.59" y="5.89"/><line x="243.17" y="5.89"/><line x="243.17" y="19.84"/><curve x1="243.17" y1="24.35" x2="241.05" y2="27.38" x3="235.57" y3="27.38"/><curve x1="232.99" y1="27.38" x2="231.58" y2="27.04" x3="230.11" y3="26.55"/><line x="230.11" y="23.97"/><curve x1="231.8" y1="24.52" x2="233.55" y2="24.89" x3="235.45" y3="24.89"/><curve x1="239.28" y1="24.89" x2="240.6" y2="22.84" x3="240.6" y3="19.98"/><close/><move x="231.92" y="13.54"/><curve x1="231.92" y1="17.22" x2="233.39" y2="19.06" x3="236.12" y3="19.06"/><curve x1="238.48" y1="19.06" x2="240.6" y2="17.56" x3="240.6" y3="14.15"/><line x="240.6" y="12.92"/><curve x1="240.6" y1="9.52" x2="238.67" y2="8.01" x3="236.43" y3="8.01"/><curve x1="233.46" y1="8.01" x2="231.92" y2="9.97" x3="231.92" y3="13.53"/><close/><move x="214.95" y="13.56"/><curve x1="214.95" y1="17.24" x2="216.42" y2="19.08" x3="219.15" y3="19.08"/><curve x1="221.51" y1="19.08" x2="223.63" y2="17.58" x3="223.63" y3="14.17"/><line x="223.63" y="12.94"/><curve x1="223.63" y1="9.54" x2="221.7" y2="8.03" x3="219.46" y3="8.03"/><curve x1="216.49" y1="8.03" x2="214.95" y2="9.99" x3="214.95" y3="13.55"/><close/><move x="223.63" y="21.22"/><line x="223.63" y="18.46"/><curve x1="222.65" y1="20.48" x2="220.81" y2="21.53" x3="218.45" y3="21.53"/><curve x1="214.37" y1="21.53" x2="212.32" y2="18.07" x3="212.32" y3="13.56"/><curve x1="212.32" y1="9.24" x2="214.47" y2="5.59" x3="218.76" y3="5.59"/><curve x1="221" y1="5.59" x2="222.72" y2="6.6" x3="223.64" y3="8.6"/><line x="223.64" y="5.89"/><line x="226.28" y="5.89"/><line x="226.28" y="21.22"/><line x="223.63" y="21.22"/><close/><move x="209.56" y="12.24"/><line x="209.56" y="21.23"/><line x="206.92" y="21.23"/><line x="206.92" y="11.97"/><curve x1="206.92" y1="9.21" x2="205.82" y2="7.98" x3="203.3" y3="7.98"/><curve x1="200.85" y1="7.98" x2="199.16" y2="9.61" x3="199.16" y3="12.7"/><line x="199.16" y="21.23"/><line x="196.52" y="21.23"/><line x="196.52" y="5.89"/><line x="199.16" y="5.89"/><line x="199.16" y="8.41"/><curve x1="200.14" y1="6.6" x2="201.95" y2="5.59" x3="204.01" y3="5.59"/><curve x1="207.54" y1="5.59" x2="209.56" y2="8.01" x3="209.56" y3="12.25"/><close/><move x="181.23" y="13.56"/><curve x1="181.23" y1="17.24" x2="182.7" y2="19.08" x3="185.43" y3="19.08"/><curve x1="187.79" y1="19.08" x2="189.91" y2="17.58" x3="189.91" y3="14.17"/><line x="189.91" y="12.94"/><curve x1="189.91" y1="9.54" x2="187.98" y2="8.03" x3="185.74" y3="8.03"/><curve x1="182.77" y1="8.03" x2="181.23" y2="9.99" x3="181.23" y3="13.55"/><close/><move x="189.91" y="21.22"/><line x="189.91" y="18.46"/><curve x1="188.93" y1="20.48" x2="187.09" y2="21.53" x3="184.73" y3="21.53"/><curve x1="180.65" y1="21.53" x2="178.6" y2="18.07" x3="178.6" y3="13.56"/><curve x1="178.6" y1="9.24" x2="180.75" y2="5.59" x3="185.04" y3="5.59"/><curve x1="187.28" y1="5.59" x2="189" y2="6.6" x3="189.92" y3="8.6"/><line x="189.92" y="5.89"/><line x="192.56" y="5.89"/><line x="192.56" y="21.22"/><line x="189.91" y="21.22"/><close/><move x="158.47" y="10.21"/><line x="155.71" y="2.73"/><line x="155.71" y="21.22"/><line x="152.95" y="21.22"/><line x="152.95" y="1.08"/><line x="157.73" y="1.08"/><line x="162.3" y="12.64"/><line x="164.17" y="18.19"/><line x="166.04" y="12.64"/><line x="170.64" y="1.08"/><line x="175.09" y="1.08"/><line x="175.09" y="21.23"/><line x="172.33" y="21.23"/><line x="172.33" y="2.95"/><line x="169.97" y="10.22"/><line x="165.52" y="21.23"/><line x="162.85" y="21.23"/><line x="158.47" y="10.21"/><close/><move x="136.95" y="7.98"/><curve x1="134.16" y1="7.98" x2="132.75" y2="9.79" x3="132.47" y3="12.46"/><line x="141.03" y="12.46"/><curve x1="140.88" y1="9.61" x2="139.59" y2="7.98" x3="136.95" y3="7.98"/><close/><move x="142.84" y="20.62"/><curve x1="141.58" y1="21.3" x2="139.65" y2="21.54" x3="138.09" y3="21.54"/><curve x1="132.36" y1="21.54" x2="129.84" y2="18.23" x3="129.84" y3="13.54"/><curve x1="129.84" y1="8.91" x2="132.42" y2="5.6" x3="137.08" y3="5.6"/><curve x1="141.8" y1="5.6" x2="143.7" y2="8.88" x3="143.7" y3="13.54"/><line x="143.7" y="14.74"/><line x="132.51" y="14.74"/><curve x1="132.88" y1="17.35" x2="134.56" y2="19.03" x3="138.18" y3="19.03"/><curve x1="139.96" y1="19.03" x2="141.46" y2="18.69" x3="142.84" y3="18.2"/><line x="142.84" y="20.62"/><close/><move x="127.75" y="18.46"/><line x="127.75" y="20.82"/><curve x1="126.83" y1="21.31" x2="125.42" y2="21.53" x3="124.01" y3="21.53"/><curve x1="118.55" y1="21.53" x2="116.01" y2="18.22" x3="116.01" y3="13.53"/><curve x1="116.01" y1="8.9" x2="118.56" y2="5.59" x3="124.01" y3="5.59"/><curve x1="125.39" y1="5.59" x2="126.46" y2="5.77" x3="127.66" y3="6.33"/><line x="127.66" y="8.78"/><curve x1="126.68" y1="8.32" x2="125.64" y2="8.04" x3="124.2" y3="8.04"/><curve x1="120.21" y1="8.04" x2="118.59" y2="10.55" x3="118.59" y3="13.53"/><curve x1="118.59" y1="16.51" x2="120.25" y2="19.02" x3="124.26" y3="19.02"/><curve x1="125.82" y1="19.02" x2="126.81" y2="18.81" x3="127.76" y3="18.47"/><close/><move x="109.81" y="1.84"/><curve x1="109.81" y1="0.67" x2="110.58" y2="0" x3="111.65" y3="0"/><curve x1="112.72" y1="0" x2="113.49" y2="0.67" x3="113.49" y3="1.84"/><curve x1="113.49" y1="3.01" x2="112.72" y2="3.68" x3="111.65" y3="3.68"/><curve x1="110.58" y1="3.68" x2="109.81" y2="3.01" x3="109.81" y3="1.84"/><close/><move x="110.3" y="21.22"/><line x="110.3" y="5.89"/><line x="112.94" y="5.89"/><line x="112.94" y="21.22"/><line x="110.3" y="21.22"/><close/><move x="102.07" y="21.22"/><line x="98.54" y="21.22"/><line x="92.6" y="5.89"/><line x="95.36" y="5.89"/><line x="100.33" y="18.99"/><line x="105.26" y="5.89"/><line x="108.02" y="5.89"/><line x="102.07" y="21.22"/><close/><move x="86.62" y="12.18"/><line x="86.62" y="21.23"/><line x="84.04" y="21.23"/><line x="84.04" y="5.89"/><line x="86.62" y="5.89"/><line x="86.62" y="8.59"/><curve x1="87.51" y1="6.78" x2="89.04" y2="5.49" x3="92.05" y3="5.68"/><line x="92.05" y="8.26"/><curve x1="88.68" y1="7.92" x2="86.62" y2="8.93" x3="86.62" y3="12.19"/><close/><move x="74.15" y="7.98"/><curve x1="71.36" y1="7.98" x2="69.95" y2="9.79" x3="69.67" y3="12.46"/><line x="78.23" y="12.46"/><curve x1="78.08" y1="9.61" x2="76.79" y2="7.98" x3="74.15" y3="7.98"/><close/><move x="80.04" y="20.62"/><curve x1="78.78" y1="21.3" x2="76.85" y2="21.54" x3="75.29" y3="21.54"/><curve x1="69.56" y1="21.54" x2="67.04" y2="18.23" x3="67.04" y3="13.54"/><curve x1="67.04" y1="8.91" x2="69.62" y2="5.6" x3="74.28" y3="5.6"/><curve x1="79" y1="5.6" x2="80.9" y2="8.88" x3="80.9" y3="13.54"/><line x="80.9" y="14.74"/><line x="69.71" y="14.74"/><curve x1="70.08" y1="17.35" x2="71.77" y2="19.03" x3="75.38" y3="19.03"/><curve x1="77.16" y1="19.03" x2="78.66" y2="18.69" x3="80.04" y3="18.2"/><line x="80.04" y="20.62"/><close/><move x="64.71" y="15.67"/><curve x1="64.71" y1="19.17" x2="62.63" y2="21.53" x3="57.63" y3="21.53"/><curve x1="53.74" y1="21.53" x2="51.93" y2="20.76" x3="50.36" y3="19.97"/><line x="50.36" y="17.15"/><curve x1="52.23" y1="18.13" x2="55.11" y2="18.84" x3="57.78" y3="18.84"/><curve x1="60.82" y1="18.84" x2="61.95" y2="17.64" x3="61.95" y3="15.87"/><curve x1="61.95" y1="14.09" x2="60.85" y2="13.14" x3="57.01" y3="12.22"/><curve x1="52.47" y1="11.12" x2="50.45" y2="9.55" x3="50.45" y3="6.24"/><curve x1="50.45" y1="3.11" x2="52.84" y2="0.78" x3="57.53" y3="0.78"/><curve x1="60.44" y1="0.78" x2="62.31" y2="1.49" x3="63.69" y3="2.25"/><line x="63.69" y="5.01"/><curve x1="61.67" y1="3.85" x2="59.49" y2="3.48" x3="57.4" y3="3.48"/><curve x1="54.76" y1="3.48" x2="53.2" y2="4.4" x3="53.2" y3="6.24"/><curve x1="53.2" y1="7.9" x2="54.49" y2="8.72" x3="58.04" y3="9.61"/><curve x1="62.3" y1="10.68" x2="64.7" y2="12.06" x3="64.7" y3="15.68"/><close/><move x="30.71" y="13.56"/><curve x1="30.71" y1="17.24" x2="32.18" y2="19.08" x3="34.91" y3="19.08"/><curve x1="37.27" y1="19.08" x2="39.39" y2="17.58" x3="39.39" y3="14.17"/><line x="39.39" y="12.94"/><curve x1="39.39" y1="9.54" x2="37.46" y2="8.03" x3="35.22" y3="8.03"/><curve x1="32.24" y1="8.03" x2="30.71" y2="9.99" x3="30.71" y3="13.55"/><close/><move x="39.39" y="21.22"/><line x="39.39" y="18.46"/><curve x1="38.41" y1="20.48" x2="36.57" y2="21.53" x3="34.21" y3="21.53"/><curve x1="30.13" y1="21.53" x2="28.08" y2="18.07" x3="28.08" y3="13.56"/><curve x1="28.08" y1="9.24" x2="30.23" y2="5.59" x3="34.52" y3="5.59"/><curve x1="36.76" y1="5.59" x2="38.48" y2="6.6" x3="39.4" y3="8.6"/><line x="39.4" y="5.89"/><line x="42.04" y="5.89"/><line x="42.04" y="21.22"/><line x="39.39" y="21.22"/><close/><move x="21.6" y="12.18"/><line x="21.6" y="21.23"/><line x="19.02" y="21.23"/><line x="19.02" y="5.89"/><line x="21.6" y="5.89"/><line x="21.6" y="8.59"/><curve x1="22.49" y1="6.78" x2="24.02" y2="5.49" x3="27.03" y3="5.68"/><line x="27.03" y="8.26"/><curve x1="23.66" y1="7.92" x2="21.6" y2="8.93" x3="21.6" y3="12.19"/><close/><move x="11.91" y="1.84"/><curve x1="11.91" y1="0.67" x2="12.68" y2="0" x3="13.75" y3="0"/><curve x1="14.82" y1="0" x2="15.59" y2="0.67" x3="15.59" y3="1.84"/><curve x1="15.59" y1="3.01" x2="14.82" y2="3.68" x3="13.75" y3="3.68"/><curve x1="12.68" y1="3.68" x2="11.91" y2="3.01" x3="11.91" y3="1.84"/><close/><move x="12.4" y="21.22"/><line x="12.4" y="5.89"/><line x="15.04" y="5.89"/><line x="15.04" y="21.22"/><line x="12.4" y="21.22"/><close/><move x="5.98" y="15.27"/><line x="5.98" y="1.08"/><line x="8.74" y="1.08"/><line x="8.74" y="15.09"/><curve x1="8.74" y1="18.8" x2="7.11" y2="21.35" x3="3.31" y3="21.35"/><curve x1="1.87" y1="21.35" x2="0.76" y2="21.1" x3="0" y3="20.83"/><line x="0" y="18.16"/><curve x1="0.83" y1="18.5" x2="1.84" y2="18.68" x3="2.85" y3="18.68"/><curve x1="5.18" y1="18.68" x2="5.98" y2="17.27" x3="5.98" y3="15.28"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_jira_service_management_data_center" w="330.84" h="27.38" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.529"/><constraint name="W" perimeter="0" x="0.018" y="0.5"/><constraint name="E" perimeter="0" x="0.988" y="0.5"/></connections><foreground><path><move x="326.76" y="16.47"/><curve x1="326.76" y1="17.82" x2="327.56" y2="18.74" x3="329.18" y3="18.74"/><curve x1="329.79" y1="18.74" x2="330.38" y2="18.62" x3="330.84" y3="18.53"/><line x="330.84" y="21.08"/><curve x1="330.38" y1="21.2" x2="329.86" y2="21.33" x3="329.06" y3="21.33"/><curve x1="325.78" y1="21.33" x2="324.18" y2="19.4" x3="324.18" y3="16.55"/><line x="324.18" y="8.36"/><line x="321.7" y="8.36"/><line x="321.7" y="5.89"/><line x="324.18" y="5.89"/><line x="324.18" y="2.64"/><line x="326.76" y="2.64"/><line x="326.76" y="5.89"/><line x="330.84" y="5.89"/><line x="330.84" y="8.34"/><line x="326.76" y="8.34"/><line x="326.76" y="16.47"/><close/><move x="319.44" y="12.24"/><line x="319.44" y="21.23"/><line x="316.8" y="21.23"/><line x="316.8" y="11.97"/><curve x1="316.8" y1="9.21" x2="315.7" y2="7.98" x3="313.18" y3="7.98"/><curve x1="310.73" y1="7.98" x2="309.04" y2="9.61" x3="309.04" y3="12.7"/><line x="309.04" y="21.23"/><line x="306.4" y="21.23"/><line x="306.4" y="5.89"/><line x="309.04" y="5.89"/><line x="309.04" y="8.41"/><curve x1="310.02" y1="6.6" x2="311.83" y2="5.59" x3="313.89" y3="5.59"/><curve x1="317.42" y1="5.59" x2="319.44" y2="8.01" x3="319.44" y3="12.25"/><close/><move x="296.52" y="7.98"/><curve x1="293.73" y1="7.98" x2="292.32" y2="9.79" x3="292.04" y3="12.46"/><line x="300.6" y="12.46"/><curve x1="300.45" y1="9.61" x2="299.16" y2="7.98" x3="296.52" y3="7.98"/><close/><move x="302.41" y="20.62"/><curve x1="301.15" y1="21.3" x2="299.22" y2="21.54" x3="297.66" y3="21.54"/><curve x1="291.93" y1="21.54" x2="289.41" y2="18.23" x3="289.41" y3="13.54"/><curve x1="289.41" y1="8.91" x2="291.99" y2="5.6" x3="296.65" y3="5.6"/><curve x1="301.37" y1="5.6" x2="303.27" y2="8.88" x3="303.27" y3="13.54"/><line x="303.27" y="14.74"/><line x="292.08" y="14.74"/><curve x1="292.45" y1="17.35" x2="294.14" y2="19.03" x3="297.75" y3="19.03"/><curve x1="299.53" y1="19.03" x2="301.03" y2="18.69" x3="302.41" y3="18.2"/><line x="302.41" y="20.62"/><close/><move x="276.25" y="12.7"/><line x="276.25" y="21.23"/><line x="273.61" y="21.23"/><line x="273.61" y="11.97"/><curve x1="273.61" y1="9.21" x2="272.51" y2="7.98" x3="269.99" y3="7.98"/><curve x1="267.54" y1="7.98" x2="265.85" y2="9.61" x3="265.85" y3="12.7"/><line x="265.85" y="21.23"/><line x="263.21" y="21.23"/><line x="263.21" y="5.89"/><line x="265.85" y="5.89"/><line x="265.85" y="8.41"/><curve x1="266.83" y1="6.6" x2="268.64" y2="5.59" x3="270.7" y3="5.59"/><curve x1="273.31" y1="5.59" x2="275.09" y2="6.91" x3="275.85" y3="9.33"/><curve x1="276.71" y1="6.97" x2="278.76" y2="5.59" x3="281.31" y3="5.59"/><curve x1="284.74" y1="5.59" x2="286.65" y2="7.92" x3="286.65" y3="12.25"/><line x="286.65" y="21.24"/><line x="284.01" y="21.24"/><line x="284.01" y="12.72"/><curve x1="284.01" y1="9.56" x2="282.91" y2="8" x3="280.39" y3="8"/><curve x1="277.94" y1="8" x2="276.25" y2="9.63" x3="276.25" y3="12.72"/><close/><move x="253.33" y="7.98"/><curve x1="250.54" y1="7.98" x2="249.13" y2="9.79" x3="248.85" y3="12.46"/><line x="257.41" y="12.46"/><curve x1="257.26" y1="9.61" x2="255.97" y2="7.98" x3="253.33" y3="7.98"/><close/><move x="259.22" y="20.62"/><curve x1="257.96" y1="21.3" x2="256.03" y2="21.54" x3="254.47" y3="21.54"/><curve x1="248.74" y1="21.54" x2="246.22" y2="18.23" x3="246.22" y3="13.54"/><curve x1="246.22" y1="8.91" x2="248.8" y2="5.6" x3="253.46" y3="5.6"/><curve x1="258.18" y1="5.6" x2="260.08" y2="8.88" x3="260.08" y3="13.54"/><line x="260.08" y="14.74"/><line x="248.89" y="14.74"/><curve x1="249.26" y1="17.35" x2="250.95" y2="19.03" x3="254.56" y3="19.03"/><curve x1="256.34" y1="19.03" x2="257.84" y2="18.69" x3="259.22" y3="18.2"/><line x="259.22" y="20.62"/><close/><move x="240.58" y="20"/><line x="240.58" y="18.47"/><curve x1="239.6" y1="20.49" x2="237.76" y2="21.54" x3="235.4" y3="21.54"/><curve x1="231.35" y1="21.54" x2="229.33" y2="18.08" x3="229.33" y3="13.57"/><curve x1="229.33" y1="9.25" x2="231.45" y2="5.6" x3="235.71" y3="5.6"/><curve x1="237.95" y1="5.6" x2="239.67" y2="6.61" x3="240.59" y3="8.61"/><line x="240.59" y="5.89"/><line x="243.17" y="5.89"/><line x="243.17" y="19.84"/><curve x1="243.17" y1="24.35" x2="241.05" y2="27.38" x3="235.57" y3="27.38"/><curve x1="232.99" y1="27.38" x2="231.58" y2="27.04" x3="230.11" y3="26.55"/><line x="230.11" y="23.97"/><curve x1="231.8" y1="24.52" x2="233.55" y2="24.89" x3="235.45" y3="24.89"/><curve x1="239.28" y1="24.89" x2="240.6" y2="22.84" x3="240.6" y3="19.98"/><close/><move x="231.92" y="13.54"/><curve x1="231.92" y1="17.22" x2="233.39" y2="19.06" x3="236.12" y3="19.06"/><curve x1="238.48" y1="19.06" x2="240.6" y2="17.56" x3="240.6" y3="14.15"/><line x="240.6" y="12.92"/><curve x1="240.6" y1="9.52" x2="238.67" y2="8.01" x3="236.43" y3="8.01"/><curve x1="233.46" y1="8.01" x2="231.92" y2="9.97" x3="231.92" y3="13.53"/><close/><move x="214.95" y="13.56"/><curve x1="214.95" y1="17.24" x2="216.42" y2="19.08" x3="219.15" y3="19.08"/><curve x1="221.51" y1="19.08" x2="223.63" y2="17.58" x3="223.63" y3="14.17"/><line x="223.63" y="12.94"/><curve x1="223.63" y1="9.54" x2="221.7" y2="8.03" x3="219.46" y3="8.03"/><curve x1="216.49" y1="8.03" x2="214.95" y2="9.99" x3="214.95" y3="13.55"/><close/><move x="223.63" y="21.22"/><line x="223.63" y="18.46"/><curve x1="222.65" y1="20.48" x2="220.81" y2="21.53" x3="218.45" y3="21.53"/><curve x1="214.37" y1="21.53" x2="212.32" y2="18.07" x3="212.32" y3="13.56"/><curve x1="212.32" y1="9.24" x2="214.47" y2="5.59" x3="218.76" y3="5.59"/><curve x1="221" y1="5.59" x2="222.72" y2="6.6" x3="223.64" y3="8.6"/><line x="223.64" y="5.89"/><line x="226.28" y="5.89"/><line x="226.28" y="21.22"/><line x="223.63" y="21.22"/><close/><move x="209.56" y="12.24"/><line x="209.56" y="21.23"/><line x="206.92" y="21.23"/><line x="206.92" y="11.97"/><curve x1="206.92" y1="9.21" x2="205.82" y2="7.98" x3="203.3" y3="7.98"/><curve x1="200.85" y1="7.98" x2="199.16" y2="9.61" x3="199.16" y3="12.7"/><line x="199.16" y="21.23"/><line x="196.52" y="21.23"/><line x="196.52" y="5.89"/><line x="199.16" y="5.89"/><line x="199.16" y="8.41"/><curve x1="200.14" y1="6.6" x2="201.95" y2="5.59" x3="204.01" y3="5.59"/><curve x1="207.54" y1="5.59" x2="209.56" y2="8.01" x3="209.56" y3="12.25"/><close/><move x="181.23" y="13.56"/><curve x1="181.23" y1="17.24" x2="182.7" y2="19.08" x3="185.43" y3="19.08"/><curve x1="187.79" y1="19.08" x2="189.91" y2="17.58" x3="189.91" y3="14.17"/><line x="189.91" y="12.94"/><curve x1="189.91" y1="9.54" x2="187.98" y2="8.03" x3="185.74" y3="8.03"/><curve x1="182.77" y1="8.03" x2="181.23" y2="9.99" x3="181.23" y3="13.55"/><close/><move x="189.91" y="21.22"/><line x="189.91" y="18.46"/><curve x1="188.93" y1="20.48" x2="187.09" y2="21.53" x3="184.73" y3="21.53"/><curve x1="180.65" y1="21.53" x2="178.6" y2="18.07" x3="178.6" y3="13.56"/><curve x1="178.6" y1="9.24" x2="180.75" y2="5.59" x3="185.04" y3="5.59"/><curve x1="187.28" y1="5.59" x2="189" y2="6.6" x3="189.92" y3="8.6"/><line x="189.92" y="5.89"/><line x="192.56" y="5.89"/><line x="192.56" y="21.22"/><line x="189.91" y="21.22"/><close/><move x="158.47" y="10.21"/><line x="155.71" y="2.73"/><line x="155.71" y="21.22"/><line x="152.95" y="21.22"/><line x="152.95" y="1.08"/><line x="157.73" y="1.08"/><line x="162.3" y="12.64"/><line x="164.17" y="18.19"/><line x="166.04" y="12.64"/><line x="170.64" y="1.08"/><line x="175.09" y="1.08"/><line x="175.09" y="21.23"/><line x="172.33" y="21.23"/><line x="172.33" y="2.95"/><line x="169.97" y="10.22"/><line x="165.52" y="21.23"/><line x="162.85" y="21.23"/><line x="158.47" y="10.21"/><close/><move x="136.95" y="7.98"/><curve x1="134.16" y1="7.98" x2="132.75" y2="9.79" x3="132.47" y3="12.46"/><line x="141.03" y="12.46"/><curve x1="140.88" y1="9.61" x2="139.59" y2="7.98" x3="136.95" y3="7.98"/><close/><move x="142.84" y="20.62"/><curve x1="141.58" y1="21.3" x2="139.65" y2="21.54" x3="138.09" y3="21.54"/><curve x1="132.36" y1="21.54" x2="129.84" y2="18.23" x3="129.84" y3="13.54"/><curve x1="129.84" y1="8.91" x2="132.42" y2="5.6" x3="137.08" y3="5.6"/><curve x1="141.8" y1="5.6" x2="143.7" y2="8.88" x3="143.7" y3="13.54"/><line x="143.7" y="14.74"/><line x="132.51" y="14.74"/><curve x1="132.88" y1="17.35" x2="134.56" y2="19.03" x3="138.18" y3="19.03"/><curve x1="139.96" y1="19.03" x2="141.46" y2="18.69" x3="142.84" y3="18.2"/><line x="142.84" y="20.62"/><close/><move x="127.75" y="18.46"/><line x="127.75" y="20.82"/><curve x1="126.83" y1="21.31" x2="125.42" y2="21.53" x3="124.01" y3="21.53"/><curve x1="118.55" y1="21.53" x2="116.01" y2="18.22" x3="116.01" y3="13.53"/><curve x1="116.01" y1="8.9" x2="118.56" y2="5.59" x3="124.01" y3="5.59"/><curve x1="125.39" y1="5.59" x2="126.46" y2="5.77" x3="127.66" y3="6.33"/><line x="127.66" y="8.78"/><curve x1="126.68" y1="8.32" x2="125.64" y2="8.04" x3="124.2" y3="8.04"/><curve x1="120.21" y1="8.04" x2="118.59" y2="10.55" x3="118.59" y3="13.53"/><curve x1="118.59" y1="16.51" x2="120.25" y2="19.02" x3="124.26" y3="19.02"/><curve x1="125.82" y1="19.02" x2="126.81" y2="18.81" x3="127.76" y3="18.47"/><close/><move x="109.81" y="1.84"/><curve x1="109.81" y1="0.68" x2="110.58" y2="0" x3="111.65" y3="0"/><curve x1="112.72" y1="0" x2="113.49" y2="0.68" x3="113.49" y3="1.84"/><curve x1="113.49" y1="3" x2="112.72" y2="3.68" x3="111.65" y3="3.68"/><curve x1="110.58" y1="3.68" x2="109.81" y2="3.01" x3="109.81" y3="1.84"/><close/><move x="110.3" y="21.22"/><line x="110.3" y="5.89"/><line x="112.94" y="5.89"/><line x="112.94" y="21.22"/><line x="110.3" y="21.22"/><close/><move x="102.07" y="21.22"/><line x="98.54" y="21.22"/><line x="92.6" y="5.89"/><line x="95.36" y="5.89"/><line x="100.33" y="18.99"/><line x="105.26" y="5.89"/><line x="108.02" y="5.89"/><line x="102.07" y="21.22"/><close/><move x="86.62" y="12.18"/><line x="86.62" y="21.23"/><line x="84.04" y="21.23"/><line x="84.04" y="5.89"/><line x="86.62" y="5.89"/><line x="86.62" y="8.59"/><curve x1="87.51" y1="6.78" x2="89.04" y2="5.49" x3="92.05" y3="5.68"/><line x="92.05" y="8.26"/><curve x1="88.68" y1="7.92" x2="86.62" y2="8.94" x3="86.62" y3="12.19"/><close/><move x="74.15" y="7.98"/><curve x1="71.36" y1="7.98" x2="69.95" y2="9.79" x3="69.67" y3="12.46"/><line x="78.23" y="12.46"/><curve x1="78.08" y1="9.61" x2="76.79" y2="7.98" x3="74.15" y3="7.98"/><close/><move x="80.04" y="20.62"/><curve x1="78.78" y1="21.3" x2="76.85" y2="21.54" x3="75.29" y3="21.54"/><curve x1="69.56" y1="21.54" x2="67.04" y2="18.23" x3="67.04" y3="13.54"/><curve x1="67.04" y1="8.91" x2="69.62" y2="5.6" x3="74.28" y3="5.6"/><curve x1="79" y1="5.6" x2="80.9" y2="8.88" x3="80.9" y3="13.54"/><line x="80.9" y="14.74"/><line x="69.71" y="14.74"/><curve x1="70.08" y1="17.35" x2="71.77" y2="19.03" x3="75.38" y3="19.03"/><curve x1="77.16" y1="19.03" x2="78.66" y2="18.69" x3="80.04" y3="18.2"/><line x="80.04" y="20.62"/><close/><move x="64.71" y="15.67"/><curve x1="64.71" y1="19.17" x2="62.63" y2="21.53" x3="57.63" y3="21.53"/><curve x1="53.74" y1="21.53" x2="51.93" y2="20.76" x3="50.36" y3="19.97"/><line x="50.36" y="17.15"/><curve x1="52.23" y1="18.13" x2="55.11" y2="18.84" x3="57.78" y3="18.84"/><curve x1="60.82" y1="18.84" x2="61.95" y2="17.64" x3="61.95" y3="15.87"/><curve x1="61.95" y1="14.1" x2="60.85" y2="13.14" x3="57.01" y3="12.22"/><curve x1="52.47" y1="11.12" x2="50.45" y2="9.55" x3="50.45" y3="6.24"/><curve x1="50.45" y1="3.11" x2="52.84" y2="0.78" x3="57.53" y3="0.78"/><curve x1="60.44" y1="0.78" x2="62.31" y2="1.49" x3="63.69" y3="2.25"/><line x="63.69" y="5.01"/><curve x1="61.67" y1="3.84" x2="59.49" y2="3.48" x3="57.4" y3="3.48"/><curve x1="54.76" y1="3.48" x2="53.2" y2="4.4" x3="53.2" y3="6.24"/><curve x1="53.2" y1="7.9" x2="54.49" y2="8.72" x3="58.04" y3="9.61"/><curve x1="62.3" y1="10.68" x2="64.7" y2="12.06" x3="64.7" y3="15.68"/><close/><move x="30.71" y="13.56"/><curve x1="30.71" y1="17.24" x2="32.18" y2="19.08" x3="34.91" y3="19.08"/><curve x1="37.27" y1="19.08" x2="39.39" y2="17.58" x3="39.39" y3="14.17"/><line x="39.39" y="12.94"/><curve x1="39.39" y1="9.54" x2="37.46" y2="8.03" x3="35.22" y3="8.03"/><curve x1="32.25" y1="8.03" x2="30.71" y2="9.99" x3="30.71" y3="13.55"/><close/><move x="39.39" y="21.22"/><line x="39.39" y="18.46"/><curve x1="38.41" y1="20.48" x2="36.57" y2="21.53" x3="34.21" y3="21.53"/><curve x1="30.13" y1="21.53" x2="28.08" y2="18.07" x3="28.08" y3="13.56"/><curve x1="28.08" y1="9.24" x2="30.23" y2="5.59" x3="34.52" y3="5.59"/><curve x1="36.76" y1="5.59" x2="38.48" y2="6.6" x3="39.4" y3="8.6"/><line x="39.4" y="5.89"/><line x="42.04" y="5.89"/><line x="42.04" y="21.22"/><line x="39.39" y="21.22"/><close/><move x="21.6" y="12.18"/><line x="21.6" y="21.23"/><line x="19.02" y="21.23"/><line x="19.02" y="5.89"/><line x="21.6" y="5.89"/><line x="21.6" y="8.59"/><curve x1="22.49" y1="6.78" x2="24.02" y2="5.49" x3="27.03" y3="5.68"/><line x="27.03" y="8.26"/><curve x1="23.66" y1="7.92" x2="21.6" y2="8.94" x3="21.6" y3="12.19"/><close/><move x="11.91" y="1.84"/><curve x1="11.91" y1="0.68" x2="12.68" y2="0" x3="13.75" y3="0"/><curve x1="14.82" y1="0" x2="15.59" y2="0.68" x3="15.59" y3="1.84"/><curve x1="15.59" y1="3" x2="14.82" y2="3.68" x3="13.75" y3="3.68"/><curve x1="12.68" y1="3.68" x2="11.91" y2="3.01" x3="11.91" y3="1.84"/><close/><move x="12.4" y="21.22"/><line x="12.4" y="5.89"/><line x="15.04" y="5.89"/><line x="15.04" y="21.22"/><line x="12.4" y="21.22"/><close/><move x="5.98" y="15.27"/><line x="5.98" y="1.08"/><line x="8.74" y="1.08"/><line x="8.74" y="15.09"/><curve x1="8.74" y1="18.8" x2="7.11" y2="21.35" x3="3.31" y3="21.35"/><curve x1="1.87" y1="21.35" x2="0.76" y2="21.11" x3="0" y3="20.83"/><line x="0" y="18.16"/><curve x1="0.83" y1="18.5" x2="1.84" y2="18.68" x3="2.85" y3="18.68"/><curve x1="5.18" y1="18.68" x2="5.98" y2="17.27" x3="5.98" y3="15.28"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_loom" w="59.9" h="21.84" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.3"/><constraint name="S" perimeter="0" x="0.5" y="0.995"/><constraint name="W" perimeter="0" x="0" y="0.5"/><constraint name="E" perimeter="0" x="0.998" y="0.5"/><constraint name="NE" perimeter="0" x="0.787" y="0.303"/><constraint name="SE" perimeter="0" x="0.783" y="0.981"/><constraint name="SW" perimeter="0" x="0.287" y="0.941"/><constraint name="NW" perimeter="0" x="0" y="0"/></connections><foreground><path><move x="0" y="21.41"/><line x="0" y="0"/><line x="3.93" y="0"/><line x="3.93" y="21.41"/><line x="0" y="21.41"/><close/><move x="37.7" y="6.86"/><line x="41.45" y="6.86"/><line x="41.45" y="8.64"/><curve x1="42.25" y1="7.22" x2="44.11" y2="6.45" x3="45.71" y3="6.45"/><curve x1="47.69" y1="6.45" x2="49.29" y2="7.31" x3="50.03" y3="8.88"/><curve x1="51.18" y1="7.11" x2="52.72" y2="6.46" x3="54.64" y3="6.46"/><curve x1="57.33" y1="6.46" x2="59.9" y2="8.09" x3="59.9" y3="11.99"/><line x="59.9" y="21.42"/><line x="56.09" y="21.42"/><line x="56.09" y="12.79"/><curve x1="56.09" y1="11.22" x2="55.32" y2="10.04" x3="53.52" y3="10.04"/><curve x1="51.84" y1="10.04" x2="50.83" y2="11.34" x3="50.83" y3="12.91"/><line x="50.83" y="21.43"/><line x="46.93" y="21.43"/><line x="46.93" y="12.8"/><curve x1="46.93" y1="11.23" x2="46.13" y2="10.05" x3="44.36" y3="10.05"/><curve x1="42.65" y1="10.05" x2="41.64" y2="11.32" x3="41.64" y3="12.92"/><line x="41.64" y="21.44"/><line x="37.71" y="21.44"/><line x="37.7" y="6.86"/><close/><move x="12.81" y="21.84"/><curve x1="8.38" y1="21.84" x2="5.18" y2="18.56" x3="5.18" y3="14.14"/><curve x1="5.18" y1="9.8" x2="8.38" y2="6.44" x3="12.82" y3="6.44"/><curve x1="17.28" y1="6.44" x2="20.45" y2="9.83" x3="20.45" y3="14.14"/><curve x1="20.45" y1="18.52" x2="17.24" y2="21.84" x3="12.82" y3="21.84"/><close/><move x="12.82" y="10"/><arc rx="4.15" ry="4.15" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="8.68" y="14.14"/><arc rx="4.15" ry="4.15" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="12.82" y="18.28"/><arc rx="4.15" ry="4.15" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="16.96" y="14.14"/><arc rx="4.15" ry="4.15" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="12.82" y="10"/><close/><move x="28.84" y="21.84"/><curve x1="24.41" y1="21.84" x2="21.21" y2="18.56" x3="21.21" y3="14.14"/><curve x1="21.21" y1="9.8" x2="24.41" y2="6.44" x3="28.84" y3="6.44"/><curve x1="33.3" y1="6.44" x2="36.48" y2="9.83" x3="36.48" y3="14.14"/><curve x1="36.48" y1="18.52" x2="33.27" y2="21.84" x3="28.85" y3="21.84"/><close/><move x="28.85" y="9.95"/><curve x1="26.54" y1="9.95" x2="24.66" y2="11.83" x3="24.66" y3="14.14"/><curve x1="24.66" y1="16.45" x2="26.54" y2="18.33" x3="28.85" y3="18.33"/><curve x1="31.16" y1="18.33" x2="33.04" y2="16.45" x3="33.04" y3="14.14"/><curve x1="33.04" y1="11.83" x2="31.16" y2="9.95" x3="28.85" y3="9.95"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_loom_internal" w="59.9" h="21.84" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.3"/><constraint name="S" perimeter="0" x="0.5" y="0.995"/><constraint name="W" perimeter="0" x="0" y="0.5"/><constraint name="E" perimeter="0" x="0.998" y="0.5"/><constraint name="NE" perimeter="0" x="0.787" y="0.303"/><constraint name="SE" perimeter="0" x="0.783" y="0.981"/><constraint name="SW" perimeter="0" x="0.287" y="0.941"/><constraint name="NW" perimeter="0" x="0" y="0"/></connections><foreground><path><move x="0" y="21.41"/><line x="0" y="0"/><line x="3.93" y="0"/><line x="3.93" y="21.41"/><line x="0" y="21.41"/><close/><move x="37.7" y="6.86"/><line x="41.45" y="6.86"/><line x="41.45" y="8.64"/><curve x1="42.25" y1="7.22" x2="44.11" y2="6.45" x3="45.71" y3="6.45"/><curve x1="47.69" y1="6.45" x2="49.29" y2="7.31" x3="50.03" y3="8.88"/><curve x1="51.18" y1="7.11" x2="52.72" y2="6.46" x3="54.64" y3="6.46"/><curve x1="57.33" y1="6.46" x2="59.9" y2="8.09" x3="59.9" y3="11.99"/><line x="59.9" y="21.42"/><line x="56.09" y="21.42"/><line x="56.09" y="12.79"/><curve x1="56.09" y1="11.22" x2="55.32" y2="10.04" x3="53.52" y3="10.04"/><curve x1="51.84" y1="10.04" x2="50.83" y2="11.34" x3="50.83" y3="12.91"/><line x="50.83" y="21.43"/><line x="46.93" y="21.43"/><line x="46.93" y="12.8"/><curve x1="46.93" y1="11.23" x2="46.13" y2="10.05" x3="44.36" y3="10.05"/><curve x1="42.65" y1="10.05" x2="41.64" y2="11.32" x3="41.64" y3="12.92"/><line x="41.64" y="21.44"/><line x="37.71" y="21.44"/><line x="37.7" y="6.86"/><close/><move x="12.81" y="21.84"/><curve x1="8.38" y1="21.84" x2="5.18" y2="18.56" x3="5.18" y3="14.14"/><curve x1="5.18" y1="9.8" x2="8.38" y2="6.44" x3="12.82" y3="6.44"/><curve x1="17.28" y1="6.44" x2="20.45" y2="9.83" x3="20.45" y3="14.14"/><curve x1="20.45" y1="18.52" x2="17.24" y2="21.84" x3="12.82" y3="21.84"/><close/><move x="12.82" y="10"/><arc rx="4.15" ry="4.15" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="8.68" y="14.14"/><arc rx="4.15" ry="4.15" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="12.82" y="18.28"/><arc rx="4.15" ry="4.15" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="16.96" y="14.14"/><arc rx="4.15" ry="4.15" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="12.82" y="10"/><close/><move x="28.84" y="21.84"/><curve x1="24.41" y1="21.84" x2="21.21" y2="18.56" x3="21.21" y3="14.14"/><curve x1="21.21" y1="9.8" x2="24.41" y2="6.44" x3="28.84" y3="6.44"/><curve x1="33.3" y1="6.44" x2="36.48" y2="9.83" x3="36.48" y3="14.14"/><curve x1="36.48" y1="18.52" x2="33.27" y2="21.84" x3="28.85" y3="21.84"/><close/><move x="28.85" y="9.95"/><curve x1="26.54" y1="9.95" x2="24.66" y2="11.83" x3="24.66" y3="14.14"/><curve x1="24.66" y1="16.45" x2="26.54" y2="18.33" x3="28.85" y3="18.33"/><curve x1="31.16" y1="18.33" x2="33.04" y2="16.45" x3="33.04" y3="14.14"/><curve x1="33.04" y1="11.83" x2="31.16" y2="9.95" x3="28.85" y3="9.95"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_marketplace" w="164.06" h="27.72" aspect="fixed" strokewidth="inherit"><connections><constraint name="W" perimeter="0" x="0" y="0.5"/><constraint name="E" perimeter="0" x="1" y="0.5"/><constraint name="NE" perimeter="0" x="0.772" y="0.222"/><constraint name="SE" perimeter="0" x="0.77" y="0.794"/><constraint name="SW" perimeter="0" x="0.241" y="0.784"/><constraint name="NW" perimeter="0" x="0" y="0.058"/></connections><foreground><path><move x="157.317" y="8.494"/><curve x1="154.527" y1="8.494" x2="153.116" y2="10.304" x3="152.84" y3="12.972"/><line x="161.396" y="12.972"/><curve x1="161.243" y1="10.12" x2="159.955" y2="8.494" x3="157.317" y3="8.494"/><close/><move x="163.205" y="21.129"/><curve x1="161.948" y1="21.804" x2="160.016" y2="22.049" x3="158.452" y3="22.049"/><curve x1="152.717" y1="22.049" x2="150.203" y2="18.737" x3="150.203" y3="14.045"/><curve x1="150.203" y1="9.415" x2="152.779" y2="6.102" x3="157.44" y3="6.102"/><curve x1="162.163" y1="6.102" x2="164.064" y2="9.384" x3="164.064" y3="14.045"/><line x="164.064" y="15.241"/><line x="152.871" y="15.241"/><curve x1="153.239" y1="17.848" x2="154.925" y2="19.534" x3="158.544" y3="19.534"/><curve x1="160.323" y1="19.534" x2="161.825" y2="19.197" x3="163.205" y3="18.706"/><line x="163.205" y="21.129"/><close/><move x="148.112" y="18.982"/><line x="148.112" y="21.344"/><curve x1="147.192" y1="21.834" x2="145.781" y2="22.049" x3="144.371" y3="22.049"/><curve x1="138.912" y1="22.049" x2="136.367" y2="18.737" x3="136.367" y3="14.045"/><curve x1="136.367" y1="9.415" x2="138.912" y2="6.102" x3="144.371" y3="6.102"/><curve x1="145.751" y1="6.102" x2="146.824" y2="6.286" x3="148.02" y3="6.838"/><line x="148.02" y="9.292"/><curve x1="147.039" y1="8.832" x2="145.996" y2="8.556" x3="144.555" y3="8.556"/><curve x1="140.568" y1="8.556" x2="138.943" y2="11.07" x3="138.943" y3="14.045"/><curve x1="138.943" y1="17.02" x2="140.599" y2="19.535" x3="144.616" y3="19.535"/><curve x1="146.18" y1="19.535" x2="147.161" y2="19.32" x3="148.112" y3="18.982"/><close/><move x="121.994" y="14.076"/><curve x1="121.994" y1="17.756" x2="123.466" y2="19.596" x3="126.195" y3="19.596"/><curve x1="128.556" y1="19.596" x2="130.672" y2="18.093" x3="130.672" y3="14.689"/><line x="130.672" y="13.462"/><curve x1="130.672" y1="10.058" x2="128.74" y2="8.556" x3="126.502" y3="8.556"/><curve x1="123.527" y1="8.556" x2="121.994" y2="10.518" x3="121.994" y3="14.076"/><close/><move x="130.672" y="21.742"/><line x="130.672" y="18.982"/><curve x1="129.691" y1="21.006" x2="127.851" y2="22.049" x3="125.49" y3="22.049"/><curve x1="121.411" y1="22.049" x2="119.356" y2="18.584" x3="119.356" y3="14.076"/><curve x1="119.356" y1="9.752" x2="121.503" y2="6.102" x3="125.796" y3="6.102"/><curve x1="128.035" y1="6.102" x2="129.752" y2="7.114" x3="130.672" y3="9.108"/><line x="130.672" y="6.409"/><line x="133.31" y="6.409"/><line x="133.31" y="21.742"/><line x="130.672" y="21.742"/><close/><move x="117.889" y="21.711"/><curve x1="117.674" y1="21.773" x2="117.214" y2="21.834" x3="116.539" y3="21.834"/><curve x1="114.025" y1="21.834" x2="112.43" y2="20.638" x3="112.43" y3="17.817"/><line x="112.43" y="0"/><line x="115.067" y="0"/><line x="115.067" y="17.51"/><curve x1="115.067" y1="18.89" x2="115.987" y2="19.38" x3="117.122" y3="19.38"/><curve x1="117.398" y1="19.38" x2="117.582" y2="19.38" x3="117.889" y3="19.35"/><line x="117.889" y="21.711"/><close/><move x="106.736" y="14.076"/><curve x1="106.736" y1="10.396" x2="105.264" y2="8.556" x3="102.534" y3="8.556"/><curve x1="100.173" y1="8.556" x2="98.057" y2="10.058" x3="98.057" y3="13.462"/><line x="98.057" y="14.689"/><curve x1="98.057" y1="18.093" x2="99.989" y2="19.596" x3="102.228" y3="19.596"/><curve x1="105.202" y1="19.596" x2="106.736" y2="17.633" x3="106.736" y3="14.076"/><close/><move x="102.933" y="22.049"/><curve x1="100.694" y1="22.049" x2="98.977" y2="21.037" x3="98.057" y3="19.044"/><line x="98.057" y="27.722"/><line x="95.42" y="27.722"/><line x="95.42" y="6.41"/><line x="98.057" y="6.41"/><line x="98.057" y="9.17"/><curve x1="99.038" y1="7.146" x2="100.878" y2="6.103" x3="103.24" y3="6.103"/><curve x1="107.318" y1="6.103" x2="109.373" y2="9.569" x3="109.373" y3="14.077"/><curve x1="109.373" y1="18.401" x2="107.226" y2="22.05" x3="102.933" y3="22.05"/><line x="102.933" y="22.049"/><close/><move x="87.958" y="16.989"/><curve x1="87.958" y1="18.339" x2="88.756" y2="19.259" x3="90.381" y3="19.259"/><curve x1="90.994" y1="19.259" x2="91.577" y2="19.136" x3="92.037" y3="19.044"/><line x="92.037" y="21.589"/><arc rx="6.3" ry="6.3" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="90.258" y="21.834"/><curve x1="86.977" y1="21.834" x2="85.382" y2="19.902" x3="85.382" y3="17.05"/><line x="85.382" y="8.862"/><line x="82.898" y="8.862"/><line x="82.898" y="6.41"/><line x="85.382" y="6.41"/><line x="85.382" y="3.16"/><line x="87.958" y="3.16"/><line x="87.958" y="6.41"/><line x="92.037" y="6.41"/><line x="92.037" y="8.863"/><line x="87.958" y="8.863"/><line x="87.958" y="16.989"/><close/><move x="74.421" y="8.494"/><curve x1="71.631" y1="8.494" x2="70.22" y2="10.304" x3="69.944" y3="12.972"/><line x="78.5" y="12.972"/><curve x1="78.347" y1="10.12" x2="77.059" y2="8.494" x3="74.421" y3="8.494"/><close/><move x="80.309" y="21.129"/><curve x1="79.052" y1="21.804" x2="77.12" y2="22.049" x3="75.556" y3="22.049"/><curve x1="69.821" y1="22.049" x2="67.307" y2="18.737" x3="67.307" y3="14.045"/><curve x1="67.307" y1="9.415" x2="69.883" y2="6.102" x3="74.544" y3="6.102"/><curve x1="79.267" y1="6.102" x2="81.168" y2="9.384" x3="81.168" y3="14.045"/><line x="81.168" y="15.241"/><line x="69.975" y="15.241"/><curve x1="70.343" y1="17.848" x2="72.029" y2="19.534" x3="75.648" y3="19.534"/><curve x1="77.427" y1="19.534" x2="78.929" y2="19.197" x3="80.309" y3="18.706"/><line x="80.309" y="21.129"/><close/><move x="56.489" y="21.742"/><line x="53.852" y="21.742"/><line x="53.852" y="0"/><line x="56.489" y="0"/><line x="56.489" y="13.585"/><line x="63.082" y="6.409"/><line x="66.517" y="6.409"/><line x="59.31" y="13.953"/><line x="66.824" y="21.743"/><line x="63.236" y="21.743"/><line x="56.489" y="14.565"/><line x="56.489" y="21.742"/><close/><move x="46.156" y="12.696"/><line x="46.156" y="21.742"/><line x="43.58" y="21.742"/><line x="43.58" y="6.41"/><line x="46.156" y="6.41"/><line x="46.156" y="9.109"/><curve x1="47.045" y1="7.299" x2="48.578" y2="6.011" x3="51.584" y3="6.195"/><line x="51.584" y="8.77"/><curve x1="48.21" y1="8.433" x2="46.156" y2="9.445" x3="46.156" y3="12.696"/><close/><move x="28.287" y="14.076"/><curve x1="28.287" y1="17.756" x2="29.759" y2="19.596" x3="32.488" y3="19.596"/><curve x1="34.849" y1="19.596" x2="36.965" y2="18.093" x3="36.965" y3="14.689"/><line x="36.965" y="13.462"/><curve x1="36.965" y1="10.058" x2="35.033" y2="8.556" x3="32.795" y3="8.556"/><curve x1="29.82" y1="8.556" x2="28.287" y2="10.518" x3="28.287" y3="14.076"/><close/><move x="36.965" y="21.742"/><line x="36.965" y="18.982"/><curve x1="35.984" y1="21.006" x2="34.144" y2="22.049" x3="31.783" y3="22.049"/><curve x1="27.704" y1="22.049" x2="25.649" y2="18.584" x3="25.649" y3="14.076"/><curve x1="25.649" y1="9.752" x2="27.796" y2="6.102" x3="32.089" y3="6.102"/><curve x1="34.328" y1="6.102" x2="36.045" y2="7.114" x3="36.965" y3="9.108"/><line x="36.965" y="6.409"/><line x="39.603" y="6.409"/><line x="39.603" y="21.742"/><line x="36.965" y="21.742"/><close/><move x="5.52" y="10.733"/><line x="2.76" y="3.25"/><line x="2.76" y="21.742"/><line x="0" y="21.742"/><line x="0" y="1.594"/><line x="4.784" y="1.594"/><line x="9.353" y="13.156"/><line x="11.224" y="18.706"/><line x="13.095" y="13.156"/><line x="17.695" y="1.594"/><line x="22.141" y="1.594"/><line x="22.141" y="21.742"/><line x="19.381" y="21.742"/><line x="19.381" y="3.465"/><line x="17.02" y="10.733"/><line x="12.573" y="21.743"/><line x="9.905" y="21.743"/><line x="5.52" y="10.733"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_opsgenie" w="122.21" h="27.38" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.227"/><constraint name="S" perimeter="0" x="0.5" y="0.986"/><constraint name="W" perimeter="0" x="0.002" y="0.5"/><constraint name="E" perimeter="0" x="1" y="0.5"/><constraint name="NE" perimeter="0" x="0.784" y="0.22"/><constraint name="SE" perimeter="0" x="0.993" y="0.753"/><constraint name="SW" perimeter="0" x="0.183" y="0.994"/><constraint name="NW" perimeter="0" x="0.221" y="0.232"/></connections><foreground><path><move x="115.46" y="7.98"/><curve x1="112.67" y1="7.98" x2="111.26" y2="9.79" x3="110.98" y3="12.46"/><line x="119.54" y="12.46"/><curve x1="119.39" y1="9.61" x2="118.1" y2="7.98" x3="115.46" y3="7.98"/><close/><move x="121.35" y="20.62"/><curve x1="120.09" y1="21.29" x2="118.16" y2="21.54" x3="116.6" y3="21.54"/><curve x1="110.87" y1="21.54" x2="108.35" y2="18.23" x3="108.35" y3="13.54"/><curve x1="108.35" y1="8.91" x2="110.93" y2="5.6" x3="115.59" y3="5.6"/><curve x1="120.31" y1="5.6" x2="122.21" y2="8.88" x3="122.21" y3="13.54"/><line x="122.21" y="14.74"/><line x="111.02" y="14.74"/><curve x1="111.39" y1="17.35" x2="113.08" y2="19.03" x3="116.69" y3="19.03"/><curve x1="118.47" y1="19.03" x2="119.97" y2="18.69" x3="121.35" y3="18.2"/><line x="121.35" y="20.62"/><close/><move x="102.16" y="1.84"/><curve x1="102.16" y1="0.68" x2="102.93" y2="0" x3="104" y3="0"/><curve x1="105.07" y1="0" x2="105.84" y2="0.68" x3="105.84" y3="1.84"/><curve x1="105.84" y1="3" x2="105.07" y2="3.68" x3="104" y3="3.68"/><curve x1="102.93" y1="3.68" x2="102.16" y2="3.01" x3="102.16" y3="1.84"/><close/><move x="102.65" y="21.22"/><line x="102.65" y="5.89"/><line x="105.29" y="5.89"/><line x="105.29" y="21.22"/><line x="102.65" y="21.22"/><close/><move x="98.97" y="12.24"/><line x="98.97" y="21.23"/><line x="96.33" y="21.23"/><line x="96.33" y="11.97"/><curve x1="96.33" y1="9.21" x2="95.23" y2="7.98" x3="92.71" y3="7.98"/><curve x1="90.26" y1="7.98" x2="88.57" y2="9.61" x3="88.57" y3="12.7"/><line x="88.57" y="21.23"/><line x="85.93" y="21.23"/><line x="85.93" y="5.89"/><line x="88.57" y="5.89"/><line x="88.57" y="8.4"/><curve x1="89.55" y1="6.59" x2="91.36" y2="5.58" x3="93.42" y3="5.58"/><curve x1="96.95" y1="5.58" x2="98.97" y2="8" x3="98.97" y3="12.24"/><close/><move x="76.05" y="7.98"/><curve x1="73.26" y1="7.98" x2="71.85" y2="9.79" x3="71.57" y3="12.46"/><line x="80.13" y="12.46"/><curve x1="79.98" y1="9.61" x2="78.69" y2="7.98" x3="76.05" y3="7.98"/><close/><move x="81.94" y="20.62"/><curve x1="80.68" y1="21.29" x2="78.75" y2="21.54" x3="77.19" y3="21.54"/><curve x1="71.46" y1="21.54" x2="68.94" y2="18.23" x3="68.94" y3="13.54"/><curve x1="68.94" y1="8.91" x2="71.52" y2="5.6" x3="76.18" y3="5.6"/><curve x1="80.9" y1="5.6" x2="82.8" y2="8.88" x3="82.8" y3="13.54"/><line x="82.8" y="14.74"/><line x="71.61" y="14.74"/><curve x1="71.98" y1="17.35" x2="73.67" y2="19.03" x3="77.28" y3="19.03"/><curve x1="79.06" y1="19.03" x2="80.56" y2="18.69" x3="81.94" y3="18.2"/><line x="81.94" y="20.62"/><close/><move x="63.3" y="20"/><line x="63.3" y="18.47"/><curve x1="62.32" y1="20.49" x2="60.48" y2="21.54" x3="58.12" y3="21.54"/><curve x1="54.07" y1="21.54" x2="52.05" y2="18.07" x3="52.05" y3="13.57"/><curve x1="52.05" y1="9.25" x2="54.17" y2="5.6" x3="58.43" y3="5.6"/><curve x1="60.67" y1="5.6" x2="62.39" y2="6.61" x3="63.31" y3="8.61"/><line x="63.31" y="5.89"/><line x="65.89" y="5.89"/><line x="65.89" y="19.84"/><curve x1="65.89" y1="24.35" x2="63.77" y2="27.38" x3="58.29" y3="27.38"/><curve x1="55.71" y1="27.38" x2="54.3" y2="27.04" x3="52.83" y3="26.55"/><line x="52.83" y="23.97"/><curve x1="54.52" y1="24.52" x2="56.27" y2="24.89" x3="58.17" y3="24.89"/><curve x1="62" y1="24.89" x2="63.32" y2="22.83" x3="63.32" y3="19.98"/><close/><move x="54.64" y="13.54"/><curve x1="54.64" y1="17.22" x2="56.11" y2="19.06" x3="58.84" y3="19.06"/><curve x1="61.2" y1="19.06" x2="63.32" y2="17.56" x3="63.32" y3="14.15"/><line x="63.32" y="12.92"/><curve x1="63.32" y1="9.52" x2="61.39" y2="8.01" x3="59.15" y3="8.01"/><curve x1="56.18" y1="8.01" x2="54.64" y2="9.97" x3="54.64" y3="13.53"/><close/><move x="49.92" y="17.05"/><curve x1="49.92" y1="19.6" x2="48.26" y2="21.53" x3="44.16" y3="21.53"/><curve x1="41.86" y1="21.53" x2="39.99" y2="21.01" x3="38.82" y3="20.4"/><line x="38.82" y="17.61"/><curve x1="40.14" y1="18.38" x2="42.35" y2="19.11" x3="44.28" y3="19.11"/><curve x1="46.3" y1="19.11" x2="47.35" y2="18.28" x3="47.35" y3="17.09"/><curve x1="47.35" y1="15.92" x2="46.46" y2="15.25" x3="43.55" y3="14.54"/><curve x1="40.15" y1="13.71" x2="38.7" y2="12.39" x3="38.7" y3="9.88"/><curve x1="38.7" y1="7.21" x2="40.76" y2="5.59" x3="44.25" y3="5.59"/><curve x1="46.24" y1="5.59" x2="48.05" y2="6.08" x3="49.19" y3="6.69"/><line x="49.19" y="9.42"/><curve x1="47.35" y1="8.5" x2="45.85" y2="8.01" x3="44.22" y3="8.01"/><curve x1="42.29" y1="8.01" x2="41.25" y2="8.68" x3="41.25" y3="9.88"/><curve x1="41.25" y1="10.95" x2="41.99" y2="11.63" x3="44.81" y3="12.3"/><curve x1="48.21" y1="13.13" x2="49.93" y2="14.39" x3="49.93" y3="17.05"/><close/><move x="33.64" y="13.56"/><curve x1="33.64" y1="9.88" x2="32.17" y2="8.04" x3="29.44" y3="8.04"/><curve x1="27.08" y1="8.04" x2="24.96" y2="9.54" x3="24.96" y3="12.95"/><line x="24.96" y="14.18"/><curve x1="24.96" y1="17.58" x2="26.89" y2="19.09" x3="29.13" y3="19.09"/><curve x1="32.11" y1="19.09" x2="33.64" y2="17.13" x3="33.64" y3="13.57"/><close/><move x="29.84" y="21.54"/><curve x1="27.6" y1="21.54" x2="25.88" y2="20.53" x3="24.96" y3="18.53"/><line x="24.96" y="27.21"/><line x="22.32" y="27.21"/><line x="22.32" y="5.89"/><line x="24.96" y="5.89"/><line x="24.96" y="8.65"/><curve x1="25.94" y1="6.63" x2="27.78" y2="5.58" x3="30.14" y3="5.58"/><curve x1="34.22" y1="5.58" x2="36.27" y2="9.05" x3="36.27" y3="13.55"/><curve x1="36.27" y1="17.87" x2="34.12" y2="21.52" x3="29.83" y3="21.52"/><close/><move x="9.72" y="21.53"/><curve x1="3.5" y1="21.53" x2="0" y2="17.24" x3="0" y3="11.1"/><curve x1="0" y1="5.03" x2="3.5" y2="0.77" x3="9.72" y3="0.77"/><curve x1="15.92" y1="0.77" x2="19.41" y2="5.03" x3="19.41" y3="11.11"/><curve x1="19.41" y1="17.24" x2="15.91" y2="21.54" x3="9.72" y3="21.54"/><close/><move x="9.72" y="3.42"/><curve x1="4.75" y1="3.42" x2="2.76" y2="6.95" x3="2.76" y3="11.12"/><curve x1="2.76" y1="15.38" x2="4.75" y2="18.91" x3="9.72" y3="18.91"/><curve x1="14.66" y1="18.91" x2="16.65" y2="15.38" x3="16.65" y3="11.12"/><curve x1="16.65" y1="6.95" x2="14.66" y2="3.42" x3="9.72" y3="3.42"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_projects" w="101.5" h="27.26" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.308"/><constraint name="S" perimeter="0" x="0.5" y="0.683"/><constraint name="W" perimeter="0" x="0" y="0.5"/><constraint name="E" perimeter="0" x="0.983" y="0.5"/><constraint name="NE" perimeter="0" x="0.825" y="0.096"/><constraint name="SE" perimeter="0" x="0.76" y="0.763"/><constraint name="SW" perimeter="0" x="0" y="0.778"/><constraint name="NW" perimeter="0" x="0.209" y="0.234"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="101.5" y="17.04"/><curve x1="101.5" y1="19.59" x2="99.84" y2="21.52" x3="95.73" y3="21.52"/><curve x1="93.43" y1="21.52" x2="91.56" y2="21" x3="90.39" y3="20.39"/><line x="90.39" y="17.6"/><curve x1="91.71" y1="18.37" x2="93.92" y2="19.1" x3="95.85" y3="19.1"/><curve x1="97.87" y1="19.1" x2="98.92" y2="18.27" x3="98.92" y3="17.08"/><curve x1="98.92" y1="15.91" x2="98.03" y2="15.24" x3="95.12" y3="14.53"/><curve x1="91.72" y1="13.7" x2="90.28" y2="12.38" x3="90.28" y3="9.87"/><curve x1="90.28" y1="7.2" x2="92.33" y2="5.58" x3="95.83" y3="5.58"/><curve x1="97.82" y1="5.58" x2="99.63" y2="6.07" x3="100.77" y3="6.68"/><line x="100.77" y="9.41"/><curve x1="98.93" y1="8.49" x2="97.43" y2="8" x3="95.8" y3="8"/><curve x1="93.87" y1="8" x2="92.83" y2="8.67" x3="92.83" y3="9.87"/><curve x1="92.83" y1="10.94" x2="93.57" y2="11.62" x3="96.39" y3="12.29"/><curve x1="99.79" y1="13.12" x2="101.51" y2="14.38" x3="101.51" y3="17.04"/><close/><move x="83.76" y="16.46"/><curve x1="83.76" y1="17.81" x2="84.56" y2="18.73" x3="86.18" y3="18.73"/><curve x1="86.79" y1="18.73" x2="87.38" y2="18.61" x3="87.84" y3="18.52"/><line x="87.84" y="21.07"/><curve x1="87.38" y1="21.19" x2="86.86" y2="21.32" x3="86.06" y3="21.32"/><curve x1="82.78" y1="21.32" x2="81.18" y2="19.39" x3="81.18" y3="16.54"/><line x="81.18" y="8.35"/><line x="78.7" y="8.35"/><line x="78.7" y="5.88"/><line x="81.18" y="5.88"/><line x="81.18" y="2.63"/><line x="83.76" y="2.63"/><line x="83.76" y="5.88"/><line x="87.84" y="5.88"/><line x="87.84" y="8.33"/><line x="83.76" y="8.33"/><line x="83.76" y="16.46"/><close/><move x="77.1" y="18.45"/><line x="77.1" y="20.81"/><curve x1="76.18" y1="21.3" x2="74.77" y2="21.52" x3="73.36" y3="21.52"/><curve x1="67.9" y1="21.52" x2="65.36" y2="18.21" x3="65.36" y3="13.52"/><curve x1="65.36" y1="8.89" x2="67.91" y2="5.58" x3="73.36" y3="5.58"/><curve x1="74.74" y1="5.58" x2="75.81" y2="5.76" x3="77.01" y3="6.32"/><line x="77.01" y="8.77"/><curve x1="76.03" y1="8.31" x2="74.99" y2="8.03" x3="73.54" y3="8.03"/><curve x1="69.55" y1="8.03" x2="67.93" y2="10.55" x3="67.93" y3="13.52"/><curve x1="67.93" y1="16.49" x2="69.59" y2="19.01" x3="73.6" y3="19.01"/><curve x1="75.16" y1="19.01" x2="76.15" y2="18.8" x3="77.1" y3="18.46"/><close/><move x="56.39" y="7.97"/><curve x1="53.6" y1="7.97" x2="52.19" y2="9.78" x3="51.91" y3="12.45"/><line x="60.47" y="12.45"/><curve x1="60.32" y1="9.6" x2="59.03" y2="7.97" x3="56.39" y3="7.97"/><close/><move x="62.28" y="20.61"/><curve x1="61.02" y1="21.28" x2="59.09" y2="21.53" x3="57.53" y3="21.53"/><curve x1="51.8" y1="21.53" x2="49.28" y2="18.22" x3="49.28" y3="13.53"/><curve x1="49.28" y1="8.9" x2="51.86" y2="5.59" x3="56.52" y3="5.59"/><curve x1="61.24" y1="5.59" x2="63.14" y2="8.87" x3="63.14" y3="13.53"/><line x="63.14" y="14.73"/><line x="51.94" y="14.73"/><curve x1="52.31" y1="17.34" x2="53.99" y2="19.02" x3="57.61" y3="19.02"/><curve x1="59.39" y1="19.02" x2="60.89" y2="18.68" x3="62.27" y3="18.19"/><line x="62.28" y="20.61"/><close/><move x="40.76" y="27.13"/><line x="40.76" y="24.77"/><curve x1="41.07" y1="24.8" x2="41.25" y2="24.8" x3="41.53" y3="24.8"/><curve x1="42.66" y1="24.8" x2="43.58" y2="24.31" x3="43.58" y3="22.93"/><line x="43.58" y="5.88"/><line x="46.22" y="5.88"/><line x="46.22" y="23.24"/><curve x1="46.22" y1="26.06" x2="44.63" y2="27.26" x3="42.11" y3="27.26"/><curve x1="41.44" y1="27.26" x2="40.98" y2="27.2" x3="40.76" y3="27.14"/><close/><move x="43.06" y="1.84"/><curve x1="43.06" y1="0.68" x2="43.83" y2="0" x3="44.9" y3="0"/><curve x1="45.97" y1="0" x2="46.74" y2="0.68" x3="46.74" y3="1.84"/><curve x1="46.74" y1="3" x2="45.97" y2="3.68" x3="44.9" y3="3.68"/><curve x1="43.83" y1="3.68" x2="43.06" y2="3.01" x3="43.06" y3="1.84"/><close/><move x="33.03" y="21.52"/><curve x1="28.43" y1="21.52" x2="25.73" y2="18.12" x3="25.73" y3="13.52"/><curve x1="25.73" y1="8.92" x2="28.43" y2="5.58" x3="33.03" y3="5.58"/><curve x1="37.6" y1="5.58" x2="40.27" y2="8.92" x3="40.27" y3="13.52"/><curve x1="40.27" y1="18.12" x2="37.6" y2="21.52" x3="33.03" y3="21.52"/><close/><move x="33.03" y="8.03"/><curve x1="29.75" y1="8.03" x2="28.31" y2="10.61" x3="28.31" y3="13.52"/><curve x1="28.31" y1="16.43" x2="29.75" y2="19.07" x3="33.03" y3="19.07"/><curve x1="36.28" y1="19.07" x2="37.69" y2="16.43" x3="37.69" y3="13.52"/><curve x1="37.69" y1="10.61" x2="36.28" y2="8.03" x3="33.03" y3="8.03"/><close/><move x="19.26" y="12.17"/><line x="19.26" y="21.22"/><line x="16.68" y="21.22"/><line x="16.68" y="5.88"/><line x="19.26" y="5.88"/><line x="19.26" y="8.58"/><curve x1="20.15" y1="6.77" x2="21.68" y2="5.48" x3="24.69" y3="5.67"/><line x="24.69" y="8.25"/><curve x1="21.32" y1="7.91" x2="19.26" y2="8.92" x3="19.26" y3="12.18"/><close/><move x="14.26" y="7.78"/><curve x1="14.26" y1="12.17" x2="11.81" y2="14.62" x3="6.78" y3="14.62"/><line x="2.76" y="14.62"/><line x="2.76" y="21.21"/><line x="0" y="21.21"/><line x="0" y="1.07"/><line x="6.78" y="1.07"/><curve x1="11.81" y1="1.07" x2="14.26" y2="3.65" x3="14.26" y3="7.79"/><close/><move x="6.47" y="11.99"/><curve x1="10.03" y1="12.11" x2="11.41" y2="10.43" x3="11.41" y3="7.85"/><curve x1="11.41" y1="5.4" x2="10.03" y2="3.71" x3="6.47" y3="3.71"/><line x="2.76" y="3.71"/><line x="2.76" y="11.99"/><line x="6.47" y="11.99"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_rovo" w="62.56" h="20.45" aspect="fixed" strokewidth="inherit"><connections><constraint name="W" perimeter="0" x="0" y="0.5"/><constraint name="E" perimeter="0" x="0.996" y="0.5"/><constraint name="NE" perimeter="0" x="0.755" y="0.235"/><constraint name="SE" perimeter="0" x="0.884" y="1"/><constraint name="SW" perimeter="0" x="0.243" y="0.985"/><constraint name="NW" perimeter="0" x="0.114" y="0"/></connections><foreground><path><move x="55.32" y="20.45"/><curve x1="50.72" y1="20.45" x2="48.02" y2="17.05" x3="48.02" y3="12.45"/><curve x1="48.02" y1="7.85" x2="50.72" y2="4.51" x3="55.32" y3="4.51"/><curve x1="59.89" y1="4.51" x2="62.56" y2="7.85" x3="62.56" y3="12.45"/><curve x1="62.56" y1="17.05" x2="59.89" y2="20.45" x3="55.32" y3="20.45"/><close/><move x="55.32" y="6.96"/><curve x1="52.04" y1="6.96" x2="50.6" y2="9.54" x3="50.6" y3="12.45"/><curve x1="50.6" y1="15.36" x2="52.04" y2="18" x3="55.32" y3="18"/><curve x1="58.57" y1="18" x2="59.98" y2="15.36" x3="59.98" y3="12.45"/><curve x1="59.98" y1="9.54" x2="58.57" y2="6.96" x3="55.32" y3="6.96"/><close/><move x="41.3" y="20.14"/><line x="37.77" y="20.14"/><line x="31.83" y="4.81"/><line x="34.59" y="4.81"/><line x="39.56" y="17.91"/><line x="44.49" y="4.81"/><line x="47.25" y="4.81"/><line x="41.3" y="20.14"/><close/><move x="23.84" y="20.45"/><curve x1="19.24" y1="20.45" x2="16.54" y2="17.05" x3="16.54" y3="12.45"/><curve x1="16.54" y1="7.85" x2="19.24" y2="4.51" x3="23.84" y3="4.51"/><curve x1="28.41" y1="4.51" x2="31.08" y2="7.85" x3="31.08" y3="12.45"/><curve x1="31.08" y1="17.05" x2="28.41" y2="20.45" x3="23.84" y3="20.45"/><close/><move x="23.84" y="6.96"/><curve x1="20.56" y1="6.96" x2="19.12" y2="9.54" x3="19.12" y3="12.45"/><curve x1="19.12" y1="15.36" x2="20.56" y2="18" x3="23.84" y3="18"/><curve x1="27.09" y1="18" x2="28.5" y2="15.36" x3="28.5" y3="12.45"/><curve x1="28.5" y1="9.54" x2="27.09" y2="6.96" x3="23.84" y3="6.96"/><close/><move x="6.8" y="2.63"/><line x="2.75" y="2.63"/><line x="2.75" y="9.99"/><line x="6.8" y="9.99"/><curve x1="10.39" y1="9.99" x2="11.49" y2="8.61" x3="11.49" y3="6.31"/><curve x1="11.49" y1="4.13" x2="10.36" y2="2.63" x3="6.8" y3="2.63"/><close/><move x="14.25" y="6.25"/><curve x1="14.25" y1="9.29" x2="12.96" y2="11.34" x3="10.29" y3="12.2"/><line x="15.23" y="20.14"/><line x="11.98" y="20.14"/><line x="7.54" y="12.63"/><line x="2.76" y="12.63"/><line x="2.76" y="20.14"/><line x="0" y="20.14"/><line x="0" y="0"/><line x="7.12" y="0"/><curve x1="11.93" y1="0" x2="14.27" y2="2.39" x3="14.27" y3="6.26"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_rovo_dev" w="121.7" h="20.46" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.344"/><constraint name="S" perimeter="0" x="0.5" y="0.874"/><constraint name="W" perimeter="0" x="0" y="0.5"/><constraint name="E" perimeter="0" x="0.983" y="0.5"/><constraint name="NE" perimeter="0" x="0.977" y="0.235"/><constraint name="SE" perimeter="0" x="0.799" y="0.993"/><constraint name="SW" perimeter="0" x="0.196" y="1"/><constraint name="NW" perimeter="0" x="0" y="0"/></connections><foreground><path><move x="115.75" y="20.14"/><line x="112.22" y="20.14"/><line x="106.28" y="4.81"/><line x="109.04" y="4.81"/><line x="114.01" y="17.91"/><line x="118.94" y="4.81"/><line x="121.7" y="4.81"/><line x="115.75" y="20.14"/><close/><move x="98.11" y="6.9"/><curve x1="95.32" y1="6.9" x2="93.91" y2="8.71" x3="93.63" y3="11.38"/><line x="102.19" y="11.38"/><curve x1="102.04" y1="8.53" x2="100.75" y2="6.9" x3="98.11" y3="6.9"/><close/><move x="104" y="19.54"/><curve x1="102.74" y1="20.22" x2="100.81" y2="20.46" x3="99.25" y3="20.46"/><curve x1="93.52" y1="20.46" x2="91" y2="17.15" x3="91" y3="12.46"/><curve x1="91" y1="7.83" x2="93.58" y2="4.52" x3="98.24" y3="4.52"/><curve x1="102.96" y1="4.52" x2="104.86" y2="7.8" x3="104.86" y3="12.46"/><line x="104.86" y="13.66"/><line x="93.67" y="13.66"/><curve x1="94.04" y1="16.27" x2="95.72" y2="17.95" x3="99.34" y3="17.95"/><curve x1="101.12" y1="17.95" x2="102.62" y2="17.61" x3="104" y3="17.12"/><line x="104" y="19.54"/><close/><move x="78.87" y="2.63"/><line x="74.33" y="2.63"/><line x="74.33" y="17.5"/><line x="79.02" y="17.5"/><curve x1="83.62" y1="17.5" x2="85.92" y2="15.08" x3="85.92" y3="10.2"/><curve x1="85.92" y1="5.29" x2="83.74" y2="2.63" x3="78.87" y3="2.63"/><close/><move x="71.57" y="20.14"/><line x="71.57" y="0"/><line x="78.99" y="0"/><curve x1="85.52" y1="0" x2="88.68" y2="4.08" x3="88.68" y3="10.12"/><curve x1="88.68" y1="16.22" x2="85.49" y2="20.15" x3="78.99" y3="20.15"/><line x="71.57" y="20.14"/><close/><move x="55.31" y="20.45"/><curve x1="50.71" y1="20.45" x2="48.01" y2="17.05" x3="48.01" y3="12.45"/><curve x1="48.01" y1="7.85" x2="50.71" y2="4.51" x3="55.31" y3="4.51"/><curve x1="59.88" y1="4.51" x2="62.55" y2="7.85" x3="62.55" y3="12.45"/><curve x1="62.55" y1="17.05" x2="59.88" y2="20.45" x3="55.31" y3="20.45"/><close/><move x="55.31" y="6.96"/><curve x1="52.03" y1="6.96" x2="50.59" y2="9.54" x3="50.59" y3="12.45"/><curve x1="50.59" y1="15.36" x2="52.03" y2="18" x3="55.31" y3="18"/><curve x1="58.56" y1="18" x2="59.97" y2="15.36" x3="59.97" y3="12.45"/><curve x1="59.97" y1="9.54" x2="58.56" y2="6.96" x3="55.31" y3="6.96"/><close/><move x="41.3" y="20.14"/><line x="37.77" y="20.14"/><line x="31.82" y="4.81"/><line x="34.58" y="4.81"/><line x="39.55" y="17.91"/><line x="44.49" y="4.81"/><line x="47.25" y="4.81"/><line x="41.3" y="20.14"/><close/><move x="23.84" y="20.45"/><curve x1="19.24" y1="20.45" x2="16.54" y2="17.05" x3="16.54" y3="12.45"/><curve x1="16.54" y1="7.85" x2="19.24" y2="4.51" x3="23.84" y3="4.51"/><curve x1="28.41" y1="4.51" x2="31.08" y2="7.85" x3="31.08" y3="12.45"/><curve x1="31.08" y1="17.05" x2="28.41" y2="20.45" x3="23.84" y3="20.45"/><close/><move x="23.84" y="6.96"/><curve x1="20.56" y1="6.96" x2="19.12" y2="9.54" x3="19.12" y3="12.45"/><curve x1="19.12" y1="15.36" x2="20.56" y2="18" x3="23.84" y3="18"/><curve x1="27.09" y1="18" x2="28.5" y2="15.36" x3="28.5" y3="12.45"/><curve x1="28.5" y1="9.54" x2="27.09" y2="6.96" x3="23.84" y3="6.96"/><close/><move x="6.8" y="2.63"/><line x="2.75" y="2.63"/><line x="2.75" y="9.99"/><line x="6.8" y="9.99"/><curve x1="10.39" y1="9.99" x2="11.49" y2="8.61" x3="11.49" y3="6.31"/><curve x1="11.49" y1="4.13" x2="10.36" y2="2.63" x3="6.8" y3="2.63"/><close/><move x="14.25" y="6.25"/><curve x1="14.25" y1="9.29" x2="12.96" y2="11.34" x3="10.29" y3="12.2"/><line x="15.23" y="20.14"/><line x="11.98" y="20.14"/><line x="7.54" y="12.63"/><line x="2.76" y="12.63"/><line x="2.76" y="20.14"/><line x="0" y="20.14"/><line x="0" y="0"/><line x="7.12" y="0"/><curve x1="11.93" y1="0" x2="14.27" y2="2.39" x3="14.27" y3="6.26"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_rovo_dev_agent" w="121.7" h="20.46" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.344"/><constraint name="S" perimeter="0" x="0.5" y="0.875"/><constraint name="W" perimeter="0" x="0" y="0.5"/><constraint name="E" perimeter="0" x="0.983" y="0.5"/><constraint name="NE" perimeter="0" x="0.977" y="0.236"/><constraint name="SE" perimeter="0" x="0.799" y="0.993"/><constraint name="SW" perimeter="0" x="0.196" y="1"/><constraint name="NW" perimeter="0" x="0" y="0"/></connections><foreground><path><move x="115.75" y="20.15"/><line x="112.22" y="20.15"/><line x="106.27" y="4.82"/><line x="109.03" y="4.82"/><line x="114" y="17.92"/><line x="118.94" y="4.83"/><line x="121.7" y="4.83"/><line x="115.75" y="20.15"/><close/><move x="98.11" y="6.9"/><curve x1="95.32" y1="6.9" x2="93.91" y2="8.71" x3="93.63" y3="11.38"/><line x="102.19" y="11.38"/><curve x1="102.04" y1="8.53" x2="100.75" y2="6.9" x3="98.11" y3="6.9"/><close/><move x="104" y="19.54"/><curve x1="102.74" y1="20.21" x2="100.81" y2="20.46" x3="99.25" y3="20.46"/><curve x1="93.52" y1="20.46" x2="91" y2="17.15" x3="91" y3="12.46"/><curve x1="91" y1="7.83" x2="93.58" y2="4.52" x3="98.24" y3="4.52"/><curve x1="102.96" y1="4.52" x2="104.86" y2="7.8" x3="104.86" y3="12.46"/><line x="104.86" y="13.66"/><line x="93.66" y="13.66"/><curve x1="94.03" y1="16.27" x2="95.71" y2="17.95" x3="99.33" y3="17.95"/><curve x1="101.11" y1="17.95" x2="102.61" y2="17.61" x3="103.99" y3="17.12"/><line x="104" y="19.54"/><close/><move x="78.87" y="2.64"/><line x="74.33" y="2.64"/><line x="74.33" y="17.51"/><line x="79.02" y="17.51"/><curve x1="83.62" y1="17.51" x2="85.92" y2="15.09" x3="85.92" y3="10.21"/><curve x1="85.92" y1="5.3" x2="83.74" y2="2.64" x3="78.87" y3="2.64"/><close/><move x="71.57" y="20.15"/><line x="71.57" y="0"/><line x="78.99" y="0"/><curve x1="85.52" y1="0" x2="88.68" y2="4.08" x3="88.68" y3="10.12"/><curve x1="88.68" y1="16.22" x2="85.49" y2="20.15" x3="78.99" y3="20.15"/><line x="71.57" y="20.15"/><close/><move x="55.32" y="20.46"/><curve x1="50.72" y1="20.46" x2="48.02" y2="17.06" x3="48.02" y3="12.46"/><curve x1="48.02" y1="7.86" x2="50.72" y2="4.52" x3="55.32" y3="4.52"/><curve x1="59.89" y1="4.52" x2="62.56" y2="7.86" x3="62.56" y3="12.46"/><curve x1="62.56" y1="17.06" x2="59.89" y2="20.46" x3="55.32" y3="20.46"/><close/><move x="55.32" y="6.97"/><curve x1="52.04" y1="6.97" x2="50.6" y2="9.55" x3="50.6" y3="12.46"/><curve x1="50.6" y1="15.37" x2="52.04" y2="18.01" x3="55.32" y3="18.01"/><curve x1="58.57" y1="18.01" x2="59.98" y2="15.37" x3="59.98" y3="12.46"/><curve x1="59.98" y1="9.55" x2="58.57" y2="6.97" x3="55.32" y3="6.97"/><close/><move x="41.3" y="20.15"/><line x="37.77" y="20.15"/><line x="31.82" y="4.82"/><line x="34.58" y="4.82"/><line x="39.55" y="17.92"/><line x="44.49" y="4.83"/><line x="47.25" y="4.83"/><line x="41.3" y="20.15"/><close/><move x="23.84" y="20.46"/><curve x1="19.24" y1="20.46" x2="16.54" y2="17.06" x3="16.54" y3="12.46"/><curve x1="16.54" y1="7.86" x2="19.24" y2="4.52" x3="23.84" y3="4.52"/><curve x1="28.41" y1="4.52" x2="31.08" y2="7.86" x3="31.08" y3="12.46"/><curve x1="31.08" y1="17.06" x2="28.41" y2="20.46" x3="23.84" y3="20.46"/><close/><move x="23.84" y="6.97"/><curve x1="20.56" y1="6.97" x2="19.12" y2="9.55" x3="19.12" y3="12.46"/><curve x1="19.12" y1="15.37" x2="20.56" y2="18.01" x3="23.84" y3="18.01"/><curve x1="27.09" y1="18.01" x2="28.5" y2="15.37" x3="28.5" y3="12.46"/><curve x1="28.5" y1="9.55" x2="27.09" y2="6.97" x3="23.84" y3="6.97"/><close/><move x="6.81" y="2.64"/><line x="2.76" y="2.64"/><line x="2.76" y="10"/><line x="6.81" y="10"/><curve x1="10.4" y1="10" x2="11.5" y2="8.62" x3="11.5" y3="6.32"/><curve x1="11.5" y1="4.14" x2="10.37" y2="2.64" x3="6.81" y3="2.64"/><close/><move x="14.26" y="6.26"/><curve x1="14.26" y1="9.3" x2="12.97" y2="11.35" x3="10.3" y3="12.21"/><line x="15.24" y="20.15"/><line x="11.99" y="20.15"/><line x="7.54" y="12.64"/><line x="2.76" y="12.64"/><line x="2.76" y="20.15"/><line x="0" y="20.15"/><line x="0" y="0"/><line x="7.11" y="0"/><curve x1="11.93" y1="0" x2="14.26" y2="2.39" x3="14.26" y3="6.26"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_search" w="87.53" h="22.06" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.387"/><constraint name="S" perimeter="0" x="0.5" y="0.885"/><constraint name="W" perimeter="0" x="0.026" y="0.5"/><constraint name="E" perimeter="0" x="0.999" y="0.5"/><constraint name="NE" perimeter="0" x="0.851" y="0"/><constraint name="SE" perimeter="0" x="0.817" y="0.967"/><constraint name="SW" perimeter="0" x="0.285" y="1"/><constraint name="NW" perimeter="0" x="0.021" y="0.129"/></connections><foreground><path><move x="87.53" y="12.76"/><line x="87.53" y="21.75"/><line x="84.89" y="21.75"/><line x="84.89" y="13.23"/><curve x1="84.89" y1="10.07" x2="83.79" y2="8.51" x3="81.27" y3="8.51"/><curve x1="78.82" y1="8.51" x2="77.13" y2="10.14" x3="77.13" y3="13.23"/><line x="77.13" y="21.76"/><line x="74.49" y="21.76"/><line x="74.49" y="0"/><line x="77.13" y="0"/><line x="77.13" y="8.96"/><curve x1="78.14" y1="7.15" x2="79.98" y2="6.11" x3="82.19" y3="6.11"/><curve x1="85.63" y1="6.11" x2="87.53" y2="8.44" x3="87.53" y3="12.77"/><close/><move x="71.48" y="18.98"/><line x="71.48" y="21.34"/><curve x1="70.56" y1="21.83" x2="69.15" y2="22.05" x3="67.74" y3="22.05"/><curve x1="62.28" y1="22.05" x2="59.74" y2="18.74" x3="59.74" y3="14.05"/><curve x1="59.74" y1="9.42" x2="62.29" y2="6.11" x3="67.74" y3="6.11"/><curve x1="69.12" y1="6.11" x2="70.19" y2="6.29" x3="71.39" y3="6.85"/><line x="71.39" y="9.3"/><curve x1="70.41" y1="8.84" x2="69.37" y2="8.56" x3="67.93" y3="8.56"/><curve x1="63.94" y1="8.56" x2="62.32" y2="11.08" x3="62.32" y3="14.05"/><curve x1="62.32" y1="17.02" x2="63.98" y2="19.54" x3="67.99" y3="19.54"/><curve x1="69.55" y1="19.54" x2="70.54" y2="19.33" x3="71.49" y3="18.99"/><close/><move x="53.26" y="12.7"/><line x="53.26" y="21.75"/><line x="50.68" y="21.75"/><line x="50.68" y="6.41"/><line x="53.26" y="6.41"/><line x="53.26" y="9.11"/><curve x1="54.15" y1="7.3" x2="55.68" y2="6.01" x3="58.69" y3="6.2"/><line x="58.69" y="8.78"/><curve x1="55.32" y1="8.44" x2="53.26" y2="9.45" x3="53.26" y3="12.71"/><close/><move x="35.39" y="14.08"/><curve x1="35.39" y1="17.76" x2="36.86" y2="19.6" x3="39.59" y3="19.6"/><curve x1="41.95" y1="19.6" x2="44.07" y2="18.1" x3="44.07" y3="14.69"/><line x="44.07" y="13.46"/><curve x1="44.07" y1="10.06" x2="42.14" y2="8.55" x3="39.9" y3="8.55"/><curve x1="36.93" y1="8.55" x2="35.39" y2="10.51" x3="35.39" y3="14.07"/><close/><move x="44.07" y="21.74"/><line x="44.07" y="18.98"/><curve x1="43.09" y1="21" x2="41.25" y2="22.05" x3="38.89" y3="22.05"/><curve x1="34.81" y1="22.05" x2="32.76" y2="18.58" x3="32.76" y3="14.08"/><curve x1="32.76" y1="9.76" x2="34.91" y2="6.11" x3="39.2" y3="6.11"/><curve x1="41.44" y1="6.11" x2="43.16" y2="7.12" x3="44.08" y3="9.12"/><line x="44.08" y="6.41"/><line x="46.72" y="6.41"/><line x="46.72" y="21.74"/><line x="44.07" y="21.74"/><close/><move x="23.79" y="8.5"/><curve x1="21" y1="8.5" x2="19.59" y2="10.31" x3="19.31" y3="12.98"/><line x="27.87" y="12.98"/><curve x1="27.72" y1="10.13" x2="26.43" y2="8.5" x3="23.79" y3="8.5"/><close/><move x="29.68" y="21.14"/><curve x1="28.42" y1="21.81" x2="26.49" y2="22.06" x3="24.93" y3="22.06"/><curve x1="19.2" y1="22.06" x2="16.68" y2="18.75" x3="16.68" y3="14.06"/><curve x1="16.68" y1="9.43" x2="19.26" y2="6.12" x3="23.92" y3="6.12"/><curve x1="28.64" y1="6.12" x2="30.54" y2="9.4" x3="30.54" y3="14.06"/><line x="30.54" y="15.26"/><line x="19.34" y="15.26"/><curve x1="19.71" y1="17.87" x2="21.4" y2="19.55" x3="25.01" y3="19.55"/><curve x1="26.79" y1="19.55" x2="28.29" y2="19.21" x3="29.67" y3="18.72"/><line x="29.68" y="21.14"/><close/><move x="14.35" y="16.19"/><curve x1="14.35" y1="19.69" x2="12.27" y2="22.05" x3="7.27" y3="22.05"/><curve x1="3.38" y1="22.05" x2="1.57" y2="21.28" x3="0" y3="20.49"/><line x="0" y="17.67"/><curve x1="1.87" y1="18.65" x2="4.75" y2="19.36" x3="7.42" y3="19.36"/><curve x1="10.46" y1="19.36" x2="11.59" y2="18.16" x3="11.59" y3="16.39"/><curve x1="11.59" y1="14.62" x2="10.49" y2="13.66" x3="6.65" y3="12.74"/><curve x1="2.11" y1="11.64" x2="0.09" y2="10.07" x3="0.09" y3="6.76"/><curve x1="0.09" y1="3.63" x2="2.48" y2="1.3" x3="7.17" y3="1.3"/><curve x1="10.08" y1="1.3" x2="11.95" y2="2.01" x3="13.33" y3="2.77"/><line x="13.33" y="5.53"/><curve x1="11.31" y1="4.37" x2="9.13" y2="4" x3="7.04" y3="4"/><curve x1="4.4" y1="4" x2="2.84" y2="4.92" x3="2.84" y3="6.76"/><curve x1="2.84" y1="8.42" x2="4.13" y2="9.24" x3="7.69" y3="10.13"/><curve x1="11.95" y1="11.2" x2="14.35" y2="12.58" x3="14.35" y3="16.2"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_statuspage" w="150.42" h="26.6" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.196"/><constraint name="S" perimeter="0" x="0.5" y="0.772"/><constraint name="W" perimeter="0" x="0.073" y="0.5"/><constraint name="E" perimeter="0" x="1" y="0.5"/><constraint name="NE" perimeter="0" x="0.775" y="0.192"/><constraint name="SE" perimeter="0" x="0.812" y="0.987"/><constraint name="SW" perimeter="0" x="0.227" y="0.778"/><constraint name="NW" perimeter="0" x="0.224" y="0.181"/></connections><foreground><path><move x="143.67" y="7.2"/><curve x1="140.88" y1="7.2" x2="139.47" y2="9.01" x3="139.19" y3="11.68"/><line x="147.75" y="11.68"/><curve x1="147.6" y1="8.83" x2="146.31" y2="7.2" x3="143.67" y3="7.2"/><close/><move x="149.56" y="19.84"/><curve x1="148.3" y1="20.52" x2="146.37" y2="20.76" x3="144.81" y3="20.76"/><curve x1="139.08" y1="20.76" x2="136.56" y2="17.45" x3="136.56" y3="12.76"/><curve x1="136.56" y1="8.13" x2="139.14" y2="4.82" x3="143.8" y3="4.82"/><curve x1="148.52" y1="4.82" x2="150.42" y2="8.1" x3="150.42" y3="12.76"/><line x="150.42" y="13.96"/><line x="139.23" y="13.96"/><curve x1="139.6" y1="16.57" x2="141.28" y2="18.25" x3="144.9" y3="18.25"/><curve x1="146.68" y1="18.25" x2="148.18" y2="17.91" x3="149.56" y3="17.42"/><line x="149.56" y="19.84"/><close/><move x="130.92" y="19.22"/><line x="130.92" y="17.69"/><curve x1="129.94" y1="19.71" x2="128.1" y2="20.76" x3="125.74" y3="20.76"/><curve x1="121.69" y1="20.76" x2="119.67" y2="17.3" x3="119.67" y3="12.79"/><curve x1="119.67" y1="8.47" x2="121.79" y2="4.82" x3="126.05" y3="4.82"/><curve x1="128.29" y1="4.82" x2="130.01" y2="5.83" x3="130.93" y3="7.83"/><line x="130.93" y="5.11"/><line x="133.51" y="5.11"/><line x="133.51" y="19.06"/><curve x1="133.51" y1="23.57" x2="131.39" y2="26.6" x3="125.9" y3="26.6"/><curve x1="123.32" y1="26.6" x2="121.91" y2="26.26" x3="120.44" y3="25.77"/><line x="120.44" y="23.19"/><curve x1="122.13" y1="23.74" x2="123.87" y2="24.11" x3="125.78" y3="24.11"/><curve x1="129.61" y1="24.11" x2="130.93" y2="22.06" x3="130.93" y3="19.2"/><close/><move x="122.25" y="12.76"/><curve x1="122.25" y1="16.44" x2="123.72" y2="18.28" x3="126.45" y3="18.28"/><curve x1="128.81" y1="18.28" x2="130.93" y2="16.78" x3="130.93" y3="13.37"/><line x="130.93" y="12.14"/><curve x1="130.93" y1="8.74" x2="129" y2="7.23" x3="126.76" y3="7.23"/><curve x1="123.79" y1="7.23" x2="122.25" y2="9.19" x3="122.25" y3="12.75"/><close/><move x="105.29" y="12.78"/><curve x1="105.29" y1="16.46" x2="106.76" y2="18.3" x3="109.49" y3="18.3"/><curve x1="111.85" y1="18.3" x2="113.97" y2="16.8" x3="113.97" y3="13.39"/><line x="113.97" y="12.16"/><curve x1="113.97" y1="8.76" x2="112.04" y2="7.25" x3="109.8" y3="7.25"/><curve x1="106.83" y1="7.25" x2="105.29" y2="9.21" x3="105.29" y3="12.77"/><close/><move x="113.97" y="20.44"/><line x="113.97" y="17.68"/><curve x1="112.99" y1="19.7" x2="111.15" y2="20.75" x3="108.79" y3="20.75"/><curve x1="104.71" y1="20.75" x2="102.66" y2="17.29" x3="102.66" y3="12.78"/><curve x1="102.66" y1="8.46" x2="104.81" y2="4.81" x3="109.1" y3="4.81"/><curve x1="111.34" y1="4.81" x2="113.06" y2="5.82" x3="113.98" y3="7.82"/><line x="113.98" y="5.11"/><line x="116.62" y="5.11"/><line x="116.62" y="20.44"/><line x="113.97" y="20.44"/><close/><move x="97.88" y="12.78"/><curve x1="97.88" y1="9.1" x2="96.41" y2="7.26" x3="93.68" y3="7.26"/><curve x1="91.32" y1="7.26" x2="89.2" y2="8.76" x3="89.2" y3="12.17"/><line x="89.2" y="13.4"/><curve x1="89.2" y1="16.8" x2="91.13" y2="18.31" x3="93.37" y3="18.31"/><curve x1="96.35" y1="18.31" x2="97.88" y2="16.35" x3="97.88" y3="12.79"/><close/><move x="94.08" y="20.76"/><curve x1="91.84" y1="20.76" x2="90.12" y2="19.75" x3="89.2" y3="17.76"/><line x="89.2" y="26.44"/><line x="86.56" y="26.44"/><line x="86.56" y="5.11"/><line x="89.2" y="5.11"/><line x="89.2" y="7.87"/><curve x1="90.18" y1="5.85" x2="92.02" y2="4.8" x3="94.38" y3="4.8"/><curve x1="98.46" y1="4.8" x2="100.51" y2="8.27" x3="100.51" y3="12.77"/><curve x1="100.51" y1="17.09" x2="98.36" y2="20.74" x3="94.07" y3="20.74"/><close/><move x="83.52" y="16.27"/><curve x1="83.52" y1="18.82" x2="81.86" y2="20.75" x3="77.75" y3="20.75"/><curve x1="75.45" y1="20.75" x2="73.58" y2="20.23" x3="72.41" y3="19.62"/><line x="72.41" y="16.83"/><curve x1="73.73" y1="17.6" x2="75.94" y2="18.33" x3="77.87" y3="18.33"/><curve x1="79.89" y1="18.33" x2="80.94" y2="17.5" x3="80.94" y3="16.31"/><curve x1="80.94" y1="15.15" x2="80.05" y2="14.47" x3="77.14" y3="13.77"/><curve x1="73.74" y1="12.94" x2="72.3" y2="11.62" x3="72.3" y3="9.11"/><curve x1="72.3" y1="6.44" x2="74.35" y2="4.82" x3="77.85" y3="4.82"/><curve x1="79.84" y1="4.82" x2="81.65" y2="5.31" x3="82.79" y3="5.92"/><line x="82.79" y="8.65"/><curve x1="80.95" y1="7.73" x2="79.45" y2="7.24" x3="77.82" y3="7.24"/><curve x1="75.89" y1="7.24" x2="74.85" y2="7.92" x3="74.85" y3="9.11"/><curve x1="74.85" y1="10.18" x2="75.59" y2="10.86" x3="78.41" y3="11.53"/><curve x1="81.81" y1="12.36" x2="83.53" y2="13.62" x3="83.53" y3="16.28"/><close/><move x="55.92" y="14.1"/><line x="55.92" y="5.11"/><line x="58.56" y="5.11"/><line x="58.56" y="14.37"/><curve x1="58.56" y1="17.13" x2="59.66" y2="18.36" x3="62.18" y3="18.36"/><curve x1="64.63" y1="18.36" x2="66.32" y2="16.74" x3="66.32" y3="13.64"/><line x="66.32" y="5.11"/><line x="68.96" y="5.11"/><line x="68.96" y="20.44"/><line x="66.32" y="20.44"/><line x="66.32" y="17.93"/><curve x1="65.34" y1="19.74" x2="63.53" y2="20.75" x3="61.48" y3="20.75"/><curve x1="57.95" y1="20.75" x2="55.93" y2="18.33" x3="55.93" y3="14.1"/><close/><move x="48.77" y="15.69"/><curve x1="48.77" y1="17.04" x2="49.57" y2="17.96" x3="51.19" y3="17.96"/><curve x1="51.8" y1="17.96" x2="52.39" y2="17.84" x3="52.85" y3="17.75"/><line x="52.85" y="20.3"/><curve x1="52.39" y1="20.42" x2="51.87" y2="20.55" x3="51.07" y3="20.55"/><curve x1="47.79" y1="20.55" x2="46.19" y2="18.62" x3="46.19" y3="15.77"/><line x="46.19" y="7.58"/><line x="43.71" y="7.58"/><line x="43.71" y="5.11"/><line x="46.19" y="5.11"/><line x="46.19" y="1.86"/><line x="48.77" y="1.86"/><line x="48.77" y="5.11"/><line x="52.85" y="5.11"/><line x="52.85" y="7.56"/><line x="48.77" y="7.56"/><line x="48.77" y="15.69"/><close/><move x="29.82" y="12.78"/><curve x1="29.82" y1="16.46" x2="31.29" y2="18.3" x3="34.02" y3="18.3"/><curve x1="36.38" y1="18.3" x2="38.5" y2="16.8" x3="38.5" y3="13.39"/><line x="38.5" y="12.16"/><curve x1="38.5" y1="8.76" x2="36.57" y2="7.25" x3="34.33" y3="7.25"/><curve x1="31.36" y1="7.25" x2="29.82" y2="9.21" x3="29.82" y3="12.77"/><close/><move x="38.5" y="20.44"/><line x="38.5" y="17.68"/><curve x1="37.52" y1="19.7" x2="35.68" y2="20.75" x3="33.32" y3="20.75"/><curve x1="29.24" y1="20.75" x2="27.19" y2="17.29" x3="27.19" y3="12.78"/><curve x1="27.19" y1="8.46" x2="29.34" y2="4.81" x3="33.63" y3="4.81"/><curve x1="35.87" y1="4.81" x2="37.59" y2="5.82" x3="38.51" y3="7.82"/><line x="38.51" y="5.11"/><line x="41.15" y="5.11"/><line x="41.15" y="20.44"/><line x="38.5" y="20.44"/><close/><move x="21.24" y="15.69"/><curve x1="21.24" y1="17.04" x2="22.04" y2="17.96" x3="23.66" y3="17.96"/><curve x1="24.27" y1="17.96" x2="24.86" y2="17.84" x3="25.32" y3="17.75"/><line x="25.32" y="20.3"/><curve x1="24.86" y1="20.42" x2="24.34" y2="20.55" x3="23.54" y3="20.55"/><curve x1="20.26" y1="20.55" x2="18.66" y2="18.62" x3="18.66" y3="15.77"/><line x="18.66" y="7.58"/><line x="16.18" y="7.58"/><line x="16.18" y="5.11"/><line x="18.66" y="5.11"/><line x="18.66" y="1.86"/><line x="21.24" y="1.86"/><line x="21.24" y="5.11"/><line x="25.32" y="5.11"/><line x="25.32" y="7.56"/><line x="21.24" y="7.56"/><line x="21.24" y="15.69"/><close/><move x="14.35" y="14.89"/><curve x1="14.35" y1="18.39" x2="12.27" y2="20.75" x3="7.27" y3="20.75"/><curve x1="3.38" y1="20.75" x2="1.57" y2="19.98" x3="0" y3="19.19"/><line x="0" y="16.37"/><curve x1="1.87" y1="17.35" x2="4.75" y2="18.06" x3="7.42" y3="18.06"/><curve x1="10.46" y1="18.06" x2="11.59" y2="16.86" x3="11.59" y3="15.09"/><curve x1="11.59" y1="13.32" x2="10.49" y2="12.36" x3="6.65" y3="11.44"/><curve x1="2.11" y1="10.34" x2="0.09" y2="8.77" x3="0.09" y3="5.46"/><curve x1="0.09" y1="2.33" x2="2.48" y2="0" x3="7.17" y3="0"/><curve x1="10.08" y1="0" x2="11.95" y2="0.71" x3="13.33" y3="1.47"/><line x="13.33" y="4.23"/><curve x1="11.31" y1="3.07" x2="9.13" y2="2.7" x3="7.04" y3="2.7"/><curve x1="4.4" y1="2.7" x2="2.84" y2="3.62" x3="2.84" y3="5.46"/><curve x1="2.84" y1="7.12" x2="4.13" y2="7.94" x3="7.68" y3="8.83"/><curve x1="11.94" y1="9.9" x2="14.34" y2="11.28" x3="14.34" y3="14.9"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_studio" w="82.66" h="22.05" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.291"/><constraint name="S" perimeter="0" x="0.5" y="0.986"/><constraint name="W" perimeter="0" x="0.028" y="0.5"/><constraint name="E" perimeter="0" x="0.995" y="0.5"/><constraint name="NE" perimeter="0" x="0.675" y="0"/><constraint name="SE" perimeter="0" x="0.707" y="0.986"/><constraint name="SW" perimeter="0" x="0.271" y="0.987"/><constraint name="NW" perimeter="0" x="0.226" y="0.143"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="75.42" y="22.05"/><curve x1="70.82" y1="22.05" x2="68.12" y2="18.65" x3="68.12" y3="14.05"/><curve x1="68.12" y1="9.45" x2="70.82" y2="6.11" x3="75.42" y3="6.11"/><curve x1="79.99" y1="6.11" x2="82.66" y2="9.45" x3="82.66" y3="14.05"/><curve x1="82.66" y1="18.65" x2="79.99" y2="22.05" x3="75.42" y3="22.05"/><close/><move x="75.42" y="8.56"/><curve x1="72.14" y1="8.56" x2="70.7" y2="11.14" x3="70.7" y3="14.05"/><curve x1="70.7" y1="16.96" x2="72.14" y2="19.6" x3="75.42" y3="19.6"/><curve x1="78.67" y1="19.6" x2="80.08" y2="16.96" x3="80.08" y3="14.05"/><curve x1="80.08" y1="11.14" x2="78.67" y2="8.56" x3="75.42" y3="8.56"/><close/><move x="61.94" y="2.36"/><curve x1="61.94" y1="1.19" x2="62.71" y2="0.52" x3="63.78" y3="0.52"/><curve x1="64.85" y1="0.52" x2="65.62" y2="1.19" x3="65.62" y3="2.36"/><curve x1="65.62" y1="3.53" x2="64.85" y2="4.2" x3="63.78" y3="4.2"/><curve x1="62.71" y1="4.2" x2="61.94" y2="3.53" x3="61.94" y3="2.36"/><close/><move x="62.43" y="21.74"/><line x="62.43" y="6.41"/><line x="65.07" y="6.41"/><line x="65.07" y="21.74"/><line x="62.43" y="21.74"/><close/><move x="47.13" y="14.08"/><curve x1="47.13" y1="17.76" x2="48.6" y2="19.6" x3="51.33" y3="19.6"/><curve x1="53.69" y1="19.6" x2="55.81" y2="18.1" x3="55.81" y3="14.69"/><line x="55.81" y="13.46"/><curve x1="55.81" y1="10.06" x2="53.88" y2="8.55" x3="51.64" y3="8.55"/><curve x1="48.67" y1="8.55" x2="47.13" y2="10.51" x3="47.13" y3="14.07"/><close/><move x="55.81" y="21.74"/><line x="55.81" y="18.98"/><curve x1="54.83" y1="21" x2="52.99" y2="22.05" x3="50.63" y3="22.05"/><curve x1="46.55" y1="22.05" x2="44.5" y2="18.58" x3="44.5" y3="14.08"/><curve x1="44.5" y1="9.76" x2="46.65" y2="6.11" x3="50.94" y3="6.11"/><curve x1="53.18" y1="6.11" x2="54.9" y2="7.12" x3="55.82" y3="9.12"/><line x="55.82" y="0"/><line x="58.46" y="0"/><line x="58.46" y="21.74"/><line x="55.81" y="21.74"/><close/><move x="28.4" y="15.4"/><line x="28.4" y="6.41"/><line x="31.04" y="6.41"/><line x="31.04" y="15.67"/><curve x1="31.04" y1="18.43" x2="32.14" y2="19.66" x3="34.66" y3="19.66"/><curve x1="37.11" y1="19.66" x2="38.8" y2="18.03" x3="38.8" y3="14.94"/><line x="38.8" y="6.41"/><line x="41.44" y="6.41"/><line x="41.44" y="21.74"/><line x="38.8" y="21.74"/><line x="38.8" y="19.23"/><curve x1="37.82" y1="21.04" x2="36.01" y2="22.05" x3="33.95" y3="22.05"/><curve x1="30.42" y1="22.05" x2="28.4" y2="19.63" x3="28.4" y3="15.4"/><close/><move x="21.24" y="16.99"/><curve x1="21.24" y1="18.34" x2="22.04" y2="19.26" x3="23.66" y3="19.26"/><curve x1="24.27" y1="19.26" x2="24.86" y2="19.14" x3="25.32" y3="19.05"/><line x="25.32" y="21.6"/><arc rx="6.3" ry="6.3" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="23.54" y="21.85"/><curve x1="20.26" y1="21.85" x2="18.66" y2="19.92" x3="18.66" y3="17.07"/><line x="18.66" y="8.88"/><line x="16.18" y="8.88"/><line x="16.18" y="6.41"/><line x="18.66" y="6.41"/><line x="18.66" y="3.16"/><line x="21.24" y="3.16"/><line x="21.24" y="6.41"/><line x="25.32" y="6.41"/><line x="25.32" y="8.86"/><line x="21.24" y="8.86"/><line x="21.24" y="16.99"/><close/><move x="14.35" y="16.19"/><curve x1="14.35" y1="19.69" x2="12.27" y2="22.05" x3="7.27" y3="22.05"/><curve x1="3.38" y1="22.05" x2="1.57" y2="21.28" x3="0" y3="20.49"/><line x="0" y="17.67"/><curve x1="1.87" y1="18.65" x2="4.75" y2="19.36" x3="7.42" y3="19.36"/><curve x1="10.46" y1="19.36" x2="11.59" y2="18.16" x3="11.59" y3="16.39"/><curve x1="11.59" y1="14.62" x2="10.49" y2="13.66" x3="6.65" y3="12.74"/><curve x1="2.11" y1="11.64" x2="0.09" y2="10.07" x3="0.09" y3="6.76"/><curve x1="0.09" y1="3.63" x2="2.48" y2="1.3" x3="7.17" y3="1.3"/><curve x1="10.08" y1="1.3" x2="11.95" y2="2.01" x3="13.33" y3="2.77"/><line x="13.33" y="5.53"/><curve x1="11.31" y1="4.37" x2="9.13" y2="4" x3="7.04" y3="4"/><curve x1="4.4" y1="4" x2="2.84" y2="4.92" x3="2.84" y3="6.76"/><curve x1="2.84" y1="8.42" x2="4.13" y2="9.24" x3="7.69" y3="10.13"/><curve x1="11.95" y1="11.2" x2="14.35" y2="12.58" x3="14.35" y3="16.2"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_talent" w="80.9" h="22.06" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.439"/><constraint name="S" perimeter="0" x="0.5" y="0.835"/><constraint name="W" perimeter="0" x="0.076" y="0.5"/><constraint name="E" perimeter="0" x="0.95" y="0.5"/><constraint name="NE" perimeter="0" x="0.781" y="0.279"/><constraint name="SE" perimeter="0" x="0.73" y="0.986"/><constraint name="SW" perimeter="0" x="0.32" y="0.985"/><constraint name="NW" perimeter="0" x="0.187" y="0.073"/></connections><foreground><path><move x="76.82" y="16.99"/><curve x1="76.82" y1="18.34" x2="77.62" y2="19.26" x3="79.24" y3="19.26"/><curve x1="79.85" y1="19.26" x2="80.44" y2="19.14" x3="80.9" y3="19.05"/><line x="80.9" y="21.6"/><curve x1="80.44" y1="21.72" x2="79.92" y2="21.85" x3="79.12" y3="21.85"/><curve x1="75.84" y1="21.85" x2="74.24" y2="19.92" x3="74.24" y3="17.07"/><line x="74.24" y="8.88"/><line x="71.76" y="8.88"/><line x="71.76" y="6.41"/><line x="74.24" y="6.41"/><line x="74.24" y="3.16"/><line x="76.82" y="3.16"/><line x="76.82" y="6.41"/><line x="80.9" y="6.41"/><line x="80.9" y="8.86"/><line x="76.82" y="8.86"/><line x="76.82" y="16.99"/><close/><move x="69.49" y="12.76"/><line x="69.49" y="21.75"/><line x="66.85" y="21.75"/><line x="66.85" y="12.49"/><curve x1="66.85" y1="9.73" x2="65.75" y2="8.5" x3="63.23" y3="8.5"/><curve x1="60.78" y1="8.5" x2="59.09" y2="10.13" x3="59.09" y3="13.22"/><line x="59.09" y="21.75"/><line x="56.45" y="21.75"/><line x="56.45" y="6.41"/><line x="59.09" y="6.41"/><line x="59.09" y="8.92"/><curve x1="60.07" y1="7.11" x2="61.88" y2="6.1" x3="63.94" y3="6.1"/><curve x1="67.47" y1="6.1" x2="69.49" y2="8.52" x3="69.49" y3="12.76"/><close/><move x="46.57" y="8.5"/><curve x1="43.78" y1="8.5" x2="42.37" y2="10.31" x3="42.09" y3="12.98"/><line x="50.65" y="12.98"/><curve x1="50.5" y1="10.13" x2="49.21" y2="8.5" x3="46.57" y3="8.5"/><close/><move x="52.46" y="21.14"/><curve x1="51.2" y1="21.81" x2="49.27" y2="22.06" x3="47.71" y3="22.06"/><curve x1="41.98" y1="22.06" x2="39.46" y2="18.75" x3="39.46" y3="14.06"/><curve x1="39.46" y1="9.43" x2="42.04" y2="6.12" x3="46.7" y3="6.12"/><curve x1="51.42" y1="6.12" x2="53.32" y2="9.4" x3="53.32" y3="14.06"/><line x="53.32" y="15.26"/><line x="42.12" y="15.26"/><curve x1="42.49" y1="17.87" x2="44.18" y2="19.55" x3="47.79" y3="19.55"/><curve x1="49.57" y1="19.55" x2="51.07" y2="19.21" x3="52.45" y3="18.72"/><line x="52.46" y="21.14"/><close/><move x="37.99" y="21.71"/><curve x1="37.78" y1="21.77" x2="37.32" y2="21.83" x3="36.64" y3="21.83"/><curve x1="34.13" y1="21.83" x2="32.53" y2="20.64" x3="32.53" y3="17.81"/><line x="32.53" y="0"/><line x="35.17" y="0"/><line x="35.17" y="17.51"/><curve x1="35.17" y1="18.89" x2="36.09" y2="19.38" x3="37.23" y3="19.38"/><curve x1="37.51" y1="19.38" x2="37.69" y2="19.38" x3="38" y3="19.35"/><line x="37.99" y="21.71"/><close/><move x="17.24" y="14.08"/><curve x1="17.24" y1="17.76" x2="18.71" y2="19.6" x3="21.44" y3="19.6"/><curve x1="23.8" y1="19.6" x2="25.92" y2="18.1" x3="25.92" y3="14.69"/><line x="25.92" y="13.46"/><curve x1="25.92" y1="10.06" x2="23.99" y2="8.55" x3="21.75" y3="8.55"/><curve x1="18.78" y1="8.55" x2="17.24" y2="10.51" x3="17.24" y3="14.07"/><close/><move x="25.92" y="21.74"/><line x="25.92" y="18.98"/><curve x1="24.94" y1="21" x2="23.1" y2="22.05" x3="20.74" y3="22.05"/><curve x1="16.66" y1="22.05" x2="14.61" y2="18.58" x3="14.61" y3="14.08"/><curve x1="14.61" y1="9.76" x2="16.76" y2="6.11" x3="21.05" y3="6.11"/><curve x1="23.29" y1="6.11" x2="25.01" y2="7.12" x3="25.93" y3="9.12"/><line x="25.93" y="6.41"/><line x="28.57" y="6.41"/><line x="28.57" y="21.74"/><line x="25.92" y="21.74"/><close/><move x="0" y="1.6"/><line x="15.09" y="1.6"/><line x="15.09" y="4.24"/><line x="8.92" y="4.24"/><line x="8.92" y="21.75"/><line x="6.16" y="21.75"/><line x="6.16" y="4.23"/><line x="0" y="4.23"/><line x="0" y="1.6"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_teams" w="86.3" h="20.45" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.235"/><constraint name="S" perimeter="0" x="0.5" y="0.985"/><constraint name="W" perimeter="0" x="0.071" y="0.5"/><constraint name="E" perimeter="0" x="0.909" y="0.5"/><constraint name="NE" perimeter="0" x="0.787" y="0.226"/><constraint name="SE" perimeter="0" x="0.714" y="0.985"/><constraint name="SW" perimeter="0" x="0.272" y="0.999"/><constraint name="NW" perimeter="0" x="0.175" y="0"/><constraint name="C" perimeter="0" x="0.5" y="0.5"/></connections><foreground><path><move x="86.3" y="15.97"/><curve x1="86.3" y1="18.52" x2="84.64" y2="20.45" x3="80.53" y3="20.45"/><curve x1="78.23" y1="20.45" x2="76.36" y2="19.93" x3="75.19" y3="19.32"/><line x="75.19" y="16.53"/><curve x1="76.51" y1="17.3" x2="78.72" y2="18.03" x3="80.65" y3="18.03"/><curve x1="82.67" y1="18.03" x2="83.72" y2="17.2" x3="83.72" y3="16.01"/><curve x1="83.72" y1="14.85" x2="82.83" y2="14.17" x3="79.92" y3="13.47"/><curve x1="76.52" y1="12.64" x2="75.08" y2="11.32" x3="75.08" y3="8.81"/><curve x1="75.08" y1="6.14" x2="77.13" y2="4.52" x3="80.63" y3="4.52"/><curve x1="82.62" y1="4.52" x2="84.43" y2="5.01" x3="85.57" y3="5.62"/><line x="85.57" y="8.35"/><curve x1="83.73" y1="7.43" x2="82.23" y2="6.94" x3="80.6" y3="6.94"/><curve x1="78.67" y1="6.94" x2="77.63" y2="7.61" x3="77.63" y3="8.81"/><curve x1="77.63" y1="9.88" x2="78.37" y2="10.56" x3="81.19" y3="11.23"/><curve x1="84.59" y1="12.06" x2="86.31" y2="13.32" x3="86.31" y3="15.98"/><close/><move x="61.65" y="11.62"/><line x="61.65" y="20.15"/><line x="59.01" y="20.15"/><line x="59.01" y="10.89"/><curve x1="59.01" y1="8.13" x2="57.91" y2="6.9" x3="55.39" y3="6.9"/><curve x1="52.94" y1="6.9" x2="51.25" y2="8.53" x3="51.25" y3="11.62"/><line x="51.25" y="20.15"/><line x="48.61" y="20.15"/><line x="48.61" y="4.81"/><line x="51.25" y="4.81"/><line x="51.25" y="7.33"/><curve x1="52.23" y1="5.52" x2="54.04" y2="4.51" x3="56.1" y3="4.51"/><curve x1="58.71" y1="4.51" x2="60.49" y2="5.83" x3="61.25" y3="8.25"/><curve x1="62.11" y1="5.89" x2="64.16" y2="4.51" x3="66.71" y3="4.51"/><curve x1="70.15" y1="4.51" x2="72.05" y2="6.84" x3="72.05" y3="11.17"/><line x="72.05" y="20.16"/><line x="69.41" y="20.16"/><line x="69.41" y="11.64"/><curve x1="69.41" y1="8.48" x2="68.31" y2="6.92" x3="65.79" y3="6.92"/><curve x1="63.34" y1="6.92" x2="61.65" y2="8.55" x3="61.65" y3="11.64"/><close/><move x="33.32" y="12.48"/><curve x1="33.32" y1="16.16" x2="34.79" y2="18" x3="37.52" y3="18"/><curve x1="39.88" y1="18" x2="42" y2="16.5" x3="42" y3="13.09"/><line x="42" y="11.86"/><curve x1="42" y1="8.46" x2="40.07" y2="6.95" x3="37.83" y3="6.95"/><curve x1="34.86" y1="6.95" x2="33.32" y2="8.91" x3="33.32" y3="12.47"/><close/><move x="42" y="20.14"/><line x="42" y="17.38"/><curve x1="41.02" y1="19.4" x2="39.18" y2="20.45" x3="36.82" y3="20.45"/><curve x1="32.74" y1="20.45" x2="30.69" y2="16.99" x3="30.69" y3="12.48"/><curve x1="30.69" y1="8.16" x2="32.84" y2="4.51" x3="37.13" y3="4.51"/><curve x1="39.37" y1="4.51" x2="41.09" y2="5.52" x3="42.01" y3="7.52"/><line x="42.01" y="4.81"/><line x="44.65" y="4.81"/><line x="44.65" y="20.14"/><line x="42" y="20.14"/><close/><move x="21.71" y="6.89"/><curve x1="18.92" y1="6.89" x2="17.51" y2="8.7" x3="17.23" y3="11.37"/><line x="25.79" y="11.37"/><curve x1="25.64" y1="8.52" x2="24.35" y2="6.89" x3="21.71" y3="6.89"/><close/><move x="27.6" y="19.53"/><curve x1="26.34" y1="20.21" x2="24.41" y2="20.45" x3="22.85" y3="20.45"/><curve x1="17.12" y1="20.45" x2="14.6" y2="17.14" x3="14.6" y3="12.45"/><curve x1="14.6" y1="7.82" x2="17.18" y2="4.51" x3="21.84" y3="4.51"/><curve x1="26.56" y1="4.51" x2="28.46" y2="7.79" x3="28.46" y3="12.45"/><line x="28.46" y="13.65"/><line x="17.27" y="13.65"/><curve x1="17.64" y1="16.26" x2="19.33" y2="17.94" x3="22.94" y3="17.94"/><curve x1="24.72" y1="17.94" x2="26.22" y2="17.6" x3="27.6" y3="17.11"/><line x="27.6" y="19.53"/><close/><move x="0" y="0"/><line x="15.09" y="0"/><line x="15.09" y="2.64"/><line x="8.92" y="2.64"/><line x="8.92" y="20.15"/><line x="6.16" y="20.15"/><line x="6.16" y="2.63"/><line x="0" y="2.63"/><line x="0" y="0"/><close/></path><fillstroke/></foreground></shape><shape name="wordmark_trello" w="71.93" h="22.06" aspect="fixed" strokewidth="inherit"><connections><constraint name="N" perimeter="0" x="0.5" y="0.31"/><constraint name="S" perimeter="0" x="0.5" y="0.992"/><constraint name="W" perimeter="0" x="0.086" y="0.5"/><constraint name="E" perimeter="0" x="0.994" y="0.5"/><constraint name="NE" perimeter="0" x="0.702" y="0"/><constraint name="SE" perimeter="0" x="0.762" y="0.989"/><constraint name="SW" perimeter="0" x="0.264" y="0.986"/><constraint name="NW" perimeter="0" x="0.21" y="0.073"/></connections><foreground><path><move x="64.69" y="22.05"/><curve x1="60.09" y1="22.05" x2="57.39" y2="18.65" x3="57.39" y3="14.05"/><curve x1="57.39" y1="9.45" x2="60.09" y2="6.11" x3="64.69" y3="6.11"/><curve x1="69.26" y1="6.11" x2="71.93" y2="9.45" x3="71.93" y3="14.05"/><curve x1="71.93" y1="18.65" x2="69.26" y2="22.05" x3="64.69" y3="22.05"/><close/><move x="64.69" y="8.56"/><curve x1="61.41" y1="8.56" x2="59.97" y2="11.14" x3="59.97" y3="14.05"/><curve x1="59.97" y1="16.96" x2="61.41" y2="19.6" x3="64.69" y3="19.6"/><curve x1="67.94" y1="19.6" x2="69.35" y2="16.96" x3="69.35" y3="14.05"/><curve x1="69.35" y1="11.14" x2="67.94" y2="8.56" x3="64.69" y3="8.56"/><close/><move x="55.93" y="21.71"/><curve x1="55.72" y1="21.77" x2="55.26" y2="21.83" x3="54.58" y3="21.83"/><curve x1="52.07" y1="21.83" x2="50.47" y2="20.64" x3="50.47" y3="17.81"/><line x="50.47" y="0"/><line x="53.11" y="0"/><line x="53.11" y="17.51"/><curve x1="53.11" y1="18.89" x2="54.03" y2="19.38" x3="55.17" y3="19.38"/><curve x1="55.45" y1="19.38" x2="55.63" y2="19.38" x3="55.94" y3="19.35"/><line x="55.93" y="21.71"/><close/><move x="47.93" y="21.71"/><curve x1="47.72" y1="21.77" x2="47.26" y2="21.83" x3="46.58" y3="21.83"/><curve x1="44.07" y1="21.83" x2="42.47" y2="20.64" x3="42.47" y3="17.81"/><line x="42.47" y="0"/><line x="45.11" y="0"/><line x="45.11" y="17.51"/><curve x1="45.11" y1="18.89" x2="46.03" y2="19.38" x3="47.17" y3="19.38"/><curve x1="47.45" y1="19.38" x2="47.63" y2="19.38" x3="47.94" y3="19.35"/><line x="47.93" y="21.71"/><close/><move x="32.58" y="8.5"/><curve x1="29.79" y1="8.5" x2="28.38" y2="10.31" x3="28.1" y3="12.98"/><line x="36.66" y="12.98"/><curve x1="36.51" y1="10.13" x2="35.22" y2="8.5" x3="32.58" y3="8.5"/><close/><move x="38.47" y="21.14"/><curve x1="37.21" y1="21.81" x2="35.28" y2="22.06" x3="33.72" y3="22.06"/><curve x1="27.99" y1="22.06" x2="25.47" y2="18.75" x3="25.47" y3="14.06"/><curve x1="25.47" y1="9.43" x2="28.05" y2="6.12" x3="32.71" y3="6.12"/><curve x1="37.43" y1="6.12" x2="39.33" y2="9.4" x3="39.33" y3="14.06"/><line x="39.33" y="15.26"/><line x="28.14" y="15.26"/><curve x1="28.51" y1="17.87" x2="30.19" y2="19.55" x3="33.81" y3="19.55"/><curve x1="35.59" y1="19.55" x2="37.09" y2="19.21" x3="38.47" y3="18.72"/><line x="38.47" y="21.14"/><close/><move x="18.99" y="12.7"/><line x="18.99" y="21.75"/><line x="16.41" y="21.75"/><line x="16.41" y="6.41"/><line x="18.99" y="6.41"/><line x="18.99" y="9.11"/><curve x1="19.88" y1="7.3" x2="21.41" y2="6.01" x3="24.42" y3="6.2"/><line x="24.42" y="8.78"/><curve x1="21.05" y1="8.44" x2="18.99" y2="9.45" x3="18.99" y3="12.71"/><close/><move x="0" y="1.6"/><line x="15.09" y="1.6"/><line x="15.09" y="4.24"/><line x="8.92" y="4.24"/><line x="8.92" y="21.75"/><line x="6.16" y="21.75"/><line x="6.16" y="4.23"/><line x="0" y="4.23"/><line x="0" y="1.6"/><close/></path><fillstroke/></foreground></shape></shapes>\ No newline at end of file